diff --git a/package-lock.json b/package-lock.json index 66e07bcf2e..0ad9db505c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1647,25 +1647,25 @@ } }, "@nodelib/fs.scandir": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz", - "integrity": "sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", + "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", "requires": { - "@nodelib/fs.stat": "2.0.3", + "@nodelib/fs.stat": "2.0.4", "run-parallel": "^1.1.9" } }, "@nodelib/fs.stat": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz", - "integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==" + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", + "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==" }, "@nodelib/fs.walk": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz", - "integrity": "sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", + "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", "requires": { - "@nodelib/fs.scandir": "2.1.3", + "@nodelib/fs.scandir": "2.1.4", "fastq": "^1.6.0" } }, @@ -1700,58 +1700,27 @@ "integrity": "sha512-GtwNB6BNDdsIPAYEdpp3JnOGO/3AJxjPvny53s3HERBdXSJTGQw8IRhiaTEX0b3w9P8+FwFZde4k+qkjn67aVw==" }, "@ts-morph/common": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.1.1.tgz", - "integrity": "sha512-8TLlC85CXgKNoTeqoXtrscPmKDbQCBfwZJ4hqli/QI4STa7sD2H6UqI9LSg8uBV5FYaD0QSdj/mtrCDrELvF+Q==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.7.3.tgz", + "integrity": "sha512-M6Tcu0EZDLL8Ht7WAYz7yJfDZ9eArhqR8XZ9Mk3q8jwU6MKFAttrw3JtW4JhneqTz7pZMv4XaimEdXI0E4K4rg==", "requires": { "@dsherret/to-absolute-glob": "^2.0.2", - "fs-extra": "^8.1.0", - "glob-parent": "^5.1.0", - "globby": "^10.0.1", + "fast-glob": "^3.2.4", "is-negated-glob": "^1.0.0", - "multimatch": "^4.0.0", - "typescript": "~3.7.2" + "mkdirp": "^1.0.4", + "multimatch": "^5.0.0", + "typescript": "~4.1.2" }, "dependencies": { - "array-differ": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-3.0.0.tgz", - "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==" - }, - "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==" - }, - "arrify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", - "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==" - }, - "glob-parent": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz", - "integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==", - "requires": { - "is-glob": "^4.0.1" - } - }, - "multimatch": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-4.0.0.tgz", - "integrity": "sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==", - "requires": { - "@types/minimatch": "^3.0.3", - "array-differ": "^3.0.0", - "array-union": "^2.1.0", - "arrify": "^2.0.1", - "minimatch": "^3.0.4" - } + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" }, "typescript": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.3.tgz", - "integrity": "sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw==" + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz", + "integrity": "sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==" } } }, @@ -1807,11 +1776,6 @@ "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==", "dev": true }, - "@types/events": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", - "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==" - }, "@types/express": { "version": "4.17.2", "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.2.tgz", @@ -1833,23 +1797,6 @@ "@types/range-parser": "*" } }, - "@types/glob": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", - "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==", - "requires": { - "@types/events": "*", - "@types/minimatch": "*", - "@types/node": "*" - }, - "dependencies": { - "@types/node": { - "version": "12.12.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.17.tgz", - "integrity": "sha512-Is+l3mcHvs47sKy+afn2O1rV4ldZFU7W8101cNlOd+MRbjM4Onida8jSZnJdTe/0Pcf25g9BNIUsuugmE6puHA==" - } - } - }, "@types/js-yaml": { "version": "3.12.1", "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.12.1.tgz", @@ -2408,6 +2355,11 @@ "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", "dev": true }, + "array-differ": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-3.0.0.tgz", + "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==" + }, "array-filter": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-1.0.0.tgz", @@ -2420,6 +2372,11 @@ "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", "dev": true }, + "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==" + }, "array-unique": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", @@ -2432,6 +2389,11 @@ "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==", "dev": true }, + "arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==" + }, "asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", @@ -2862,7 +2824,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, "requires": { "fill-range": "^7.0.1" } @@ -3367,9 +3328,9 @@ "dev": true }, "code-block-writer": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-10.1.0.tgz", - "integrity": "sha512-RG9hpXtWFeUWhuUav1YuP/vGcyncW+t90yJLk9fNZs1De2OuHTHKAKThVCokt29PYq5RoJ0QSZaIZ+rvPO23hA==" + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-10.1.1.tgz", + "integrity": "sha512-67ueh2IRGst/51p0n6FvPrnRjAGHY5F8xdjkgrYE7DDzpJe6qA07RYQ9VcoUeo5ATOjSOiWpSL3SWBRRbempMw==" }, "code-point-at": { "version": "1.1.0", @@ -4028,21 +3989,6 @@ } } }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "requires": { - "path-type": "^4.0.0" - }, - "dependencies": { - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" - } - } - }, "doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -4914,46 +4860,18 @@ "dev": true }, "fast-glob": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.1.1.tgz", - "integrity": "sha512-nTCREpBY8w8r+boyFYAx21iL6faSsQynliPHM4Uf56SbkyohCNxpVPEH9xrF5TXKy+IsjkPUHDKiUkzBVRXn9g==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.4.tgz", + "integrity": "sha512-kr/Oo6PX51265qeuCYsyGypiO5uJFgBS0jksyG7FUeCyQzNwYnzrNIMR1NXfkZXsMYXYLRAHgISHBz8gQcxKHQ==", "requires": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.0", "merge2": "^1.3.0", - "micromatch": "^4.0.2" + "micromatch": "^4.0.2", + "picomatch": "^2.2.1" }, "dependencies": { - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "requires": { - "fill-range": "^7.0.1" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "glob-parent": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz", - "integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==", - "requires": { - "is-glob": "^4.0.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" - }, "micromatch": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", @@ -4963,13 +4881,10 @@ "picomatch": "^2.0.5" } }, - "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==", - "requires": { - "is-number": "^7.0.0" - } + "picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" } } }, @@ -4986,11 +4901,11 @@ "dev": true }, "fastq": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.6.0.tgz", - "integrity": "sha512-jmxqQ3Z/nXoeyDmWAzF9kH1aGZSis6e/SbfPmJpUnyZ0ogr6iscHQaml4wsEepEWSdtmpy+eVXmCRIMpxaXqOA==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.10.0.tgz", + "integrity": "sha512-NL2Qc5L3iQEsyYzweq7qfgy5OtXCmGzGvhElGEd/SoFWEMOEczNh5s5ocaF01HDetxz+p8ecjNPA6cZxxIHmzA==", "requires": { - "reusify": "^1.0.0" + "reusify": "^1.0.4" } }, "fd-slicer": { @@ -5030,7 +4945,6 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, "requires": { "to-regex-range": "^5.0.1" } @@ -5275,6 +5189,7 @@ "version": "8.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, "requires": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", @@ -5284,7 +5199,8 @@ "graceful-fs": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", - "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", + "dev": true } } }, @@ -5303,7 +5219,8 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true }, "fsevents": { "version": "2.1.3", @@ -5370,6 +5287,7 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -5383,7 +5301,6 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", - "dev": true, "requires": { "is-glob": "^4.0.1" } @@ -5435,33 +5352,6 @@ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true }, - "globby": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.1.tgz", - "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==", - "requires": { - "@types/glob": "^7.1.1", - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.0.3", - "glob": "^7.1.3", - "ignore": "^5.1.1", - "merge2": "^1.2.3", - "slash": "^3.0.0" - }, - "dependencies": { - "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==" - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" - } - } - }, "graceful-fs": { "version": "4.1.15", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", @@ -5764,11 +5654,6 @@ "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", "dev": true }, - "ignore": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.4.tgz", - "integrity": "sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A==" - }, "import-fresh": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", @@ -5819,6 +5704,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -5827,7 +5713,8 @@ "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true }, "ini": { "version": "1.3.5", @@ -6102,8 +5989,7 @@ "is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" }, "is-plain-object": { "version": "2.0.4", @@ -6444,6 +6330,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -7128,9 +7015,9 @@ "dev": true }, "merge2": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.3.0.tgz", - "integrity": "sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" }, "methods": { "version": "1.1.2", @@ -7769,6 +7656,18 @@ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, + "multimatch": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-5.0.0.tgz", + "integrity": "sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==", + "requires": { + "@types/minimatch": "^3.0.3", + "array-differ": "^3.0.0", + "array-union": "^2.1.0", + "arrify": "^2.0.1", + "minimatch": "^3.0.4" + } + }, "mute-stream": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", @@ -8276,6 +8175,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, "requires": { "wrappy": "1" } @@ -8525,7 +8425,8 @@ "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true }, "path-key": { "version": "2.0.1", @@ -8597,7 +8498,8 @@ "picomatch": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.1.1.tgz", - "integrity": "sha512-OYMyqkKzK7blWO/+XZYP6w8hH0LDvkBvdvKukti+7kqYFCiEAk+gI3DWnryapc0Dau05ugGTy0foQ6mqn4AHYA==" + "integrity": "sha512-OYMyqkKzK7blWO/+XZYP6w8hH0LDvkBvdvKukti+7kqYFCiEAk+gI3DWnryapc0Dau05ugGTy0foQ6mqn4AHYA==", + "dev": true }, "pidtree": { "version": "0.3.0", @@ -9448,9 +9350,9 @@ } }, "run-parallel": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz", - "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==" + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.10.tgz", + "integrity": "sha512-zb/1OuZ6flOlH6tQyMPUrE3x3Ulxjlo9WIVXR4yVYi4H9UXQaeIsPbLn2R3O3vQCnDKkAl2qHiuocKKX4Tz/Sw==" }, "run-queue": { "version": "1.0.3", @@ -10914,7 +10816,6 @@ "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==", - "dev": true, "requires": { "is-number": "^7.0.0" } @@ -10951,13 +10852,13 @@ } }, "ts-morph": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-5.0.0.tgz", - "integrity": "sha512-VP5dFnOzmlsDkSyuGczgVNtyJdYXMxFqMO2Rb0pIeni0o0Cy/nDljETBWhJs4FI4DIWv7Ftq69kgZO8p8w6LCw==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-9.0.0.tgz", + "integrity": "sha512-uhu0I4EDTdHCMptsR1GuEZU3gSKS5p0n41EOEZ69y5klmOAHNzntI0ivcZL5Ip9+G+o8dgQScAKSHeHXN2vEDw==", "requires": { "@dsherret/to-absolute-glob": "^2.0.2", - "@ts-morph/common": "~0.1.0", - "code-block-writer": "^10.0.0" + "@ts-morph/common": "~0.7.0", + "code-block-writer": "^10.1.1" } }, "ts-node": { @@ -12127,7 +12028,8 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, "write": { "version": "1.0.3", diff --git a/package.json b/package.json index 1b66bc0c9d..4abff9212d 100755 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "lodash": "^4.17.15", "prettier": "^1.19.1", "source-map-support": "^0.5.16", - "ts-morph": "^5.0.0" + "ts-morph": "^9.0.0" }, "devDependencies": { "@autorest/test-server": "^3.0.27", diff --git a/src/generators/clientContextFileGenerator.ts b/src/generators/clientContextFileGenerator.ts index fe5ced9609..93e3592be3 100644 --- a/src/generators/clientContextFileGenerator.ts +++ b/src/generators/clientContextFileGenerator.ts @@ -20,7 +20,8 @@ import { formatJsDocParam } from "./utils/parameterUtils"; export function generateClientContext( clientDetails: ClientDetails, packageDetails: PackageDetails, - project: Project + project: Project, + hideClients: boolean ) { const importedModels = new Set(); const clientParams = clientDetails.parameters.filter( @@ -48,6 +49,15 @@ export function generateClientContext( writePackageInfo(sourceFile, packageDetails); const contextClass = buildClass(sourceFile, clientContextClassName); + + if(hideClients) { + contextClass.addJsDoc({ + tags: [{ + tagName: "hidden" + }], + }); + } + writeClassProperties(contextClass, clientParams, importedModels); const classConstructor = buildConstructor(contextClass, { diff --git a/src/generators/clientFileGenerator.ts b/src/generators/clientFileGenerator.ts index 3efb5b4d5c..06741abb49 100644 --- a/src/generators/clientFileGenerator.ts +++ b/src/generators/clientFileGenerator.ts @@ -27,7 +27,7 @@ import { addPagingImports } from "./utils/pagingOperations"; type OperationDeclarationDetails = { name: string; typeName: string }; -export function generateClient(clientDetails: ClientDetails, project: Project) { +export function generateClient(clientDetails: ClientDetails, project: Project, hideClients: boolean) { const clientContextClassName = `${clientDetails.className}Context`; const hasMappers = !!clientDetails.mappers.length; @@ -123,6 +123,14 @@ export function generateClient(clientDetails: ClientDetails, project: Project) { isExported: true }); + if(hideClients) { + clientClass.addJsDoc({ + tags: [{ + tagName: "hidden" + }], + }); + } + const importedModels = new Set(); writeConstructor(clientDetails, clientClass, importedModels); diff --git a/src/typescriptGenerator.ts b/src/typescriptGenerator.ts index 1b39eba8f0..31fbe2c7d8 100755 --- a/src/typescriptGenerator.ts +++ b/src/typescriptGenerator.ts @@ -48,7 +48,7 @@ export async function generateTypeScriptLibrary( host: Host ): Promise { const project = new Project({ - useVirtualFileSystem: true, + useInMemoryFileSystem: true, manipulationSettings: { indentationText: IndentationText.TwoSpaces } @@ -76,6 +76,9 @@ export async function generateTypeScriptLibrary( const shouldGenerateLicense: boolean = (await host.GetValue("license-header")) || false; + const hideClients: boolean = + (await host.GetValue("hide-clients")) || false; + // Skip metadata generation if `generate-metadata` is explicitly false if ((await host.GetValue("generate-metadata")) !== false) { generatePackageJson(clientDetails, packageDetails, project); @@ -86,8 +89,8 @@ export async function generateTypeScriptLibrary( generateApiExtractorConfig(clientDetails, project); } - generateClient(clientDetails, project); - generateClientContext(clientDetails, packageDetails, project); + generateClient(clientDetails, project, hideClients); + generateClientContext(clientDetails, packageDetails, project, hideClients); generateModels(clientDetails, project); generateMappers(clientDetails, project); diff --git a/test/integration/appConfigurationExport.spec.ts b/test/integration/appConfigurationExport.spec.ts new file mode 100644 index 0000000000..2822b6bffd --- /dev/null +++ b/test/integration/appConfigurationExport.spec.ts @@ -0,0 +1,39 @@ +import { AppConfigurationClient } from "./generated/appconfigurationexport/src"; +import * as fs from "fs"; +import { assert } from "chai"; + +describe("Check Hidden Header", () => { + let client: AppConfigurationClient; + + beforeEach(()=>{ + const endpoint: string = "sampleEndPoint"; + client = new AppConfigurationClient(endpoint); + assert.notEqual(client, null); + }) + + it("Client Class File must have Hidden Header", async() => { + const content: string = fs.readFileSync( + "./test/integration/generated/appconfigurationexport/src/appConfigurationClient.ts", + "utf-8" + ); + + const containsHidden = content.includes( + "/** @hidden */\nexport class AppConfigurationClient extends AppConfigurationClientContext {" + ); + + assert.equal(containsHidden, true, "Expected hidden Header missing"); + }); + + it("Client Context Class File must have Hidden Header", async() => { + const content: string = fs.readFileSync( + "./test/integration/generated/appconfigurationexport/src/appConfigurationClientContext.ts", + "utf-8" + ); + + const containsHidden = content.includes( + "/** @hidden */\nexport class AppConfigurationClientContext extends coreHttp.ServiceClient {" + ); + + assert.equal(containsHidden, true, "Expected hidden Header missing"); + }); +}); diff --git a/test/integration/generated/additionalProperties/LICENSE.txt b/test/integration/generated/additionalProperties/LICENSE.txt index 4c529f375c..ccb63b1667 100644 --- a/test/integration/generated/additionalProperties/LICENSE.txt +++ b/test/integration/generated/additionalProperties/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 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 diff --git a/test/integration/generated/additionalProperties/rollup.config.js b/test/integration/generated/additionalProperties/rollup.config.js index 15d46cde26..81dd05584f 100644 --- a/test/integration/generated/additionalProperties/rollup.config.js +++ b/test/integration/generated/additionalProperties/rollup.config.js @@ -10,9 +10,7 @@ import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; import sourcemaps from "rollup-plugin-sourcemaps"; -/** - * @type {rollup.RollupFileOptions} - */ +/** @type {rollup.RollupFileOptions} */ const config = { input: "./esm/additionalPropertiesClient.js", external: ["@azure/core-http"], diff --git a/test/integration/generated/additionalProperties/src/models/index.ts b/test/integration/generated/additionalProperties/src/models/index.ts index 9539ec704c..5a44a419d6 100644 --- a/test/integration/generated/additionalProperties/src/models/index.ts +++ b/test/integration/generated/additionalProperties/src/models/index.ts @@ -9,15 +9,11 @@ import * as coreHttp from "@azure/core-http"; export interface PetAPTrue { - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; id: number; name?: string; - /** - * NOTE: This property will not be serialized. It can only be populated by the server. - */ + /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: boolean; } @@ -27,59 +23,41 @@ export interface ErrorModel { } export interface PetAPObject { - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; id: number; name?: string; - /** - * NOTE: This property will not be serialized. It can only be populated by the server. - */ + /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: boolean; } export interface PetAPString { - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; id: number; name?: string; - /** - * NOTE: This property will not be serialized. It can only be populated by the server. - */ + /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: boolean; } export interface PetAPInProperties { id: number; name?: string; - /** - * NOTE: This property will not be serialized. It can only be populated by the server. - */ + /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: boolean; - /** - * Dictionary of - */ + /** Dictionary of */ additionalProperties?: { [propertyName: string]: number }; } export interface PetAPInPropertiesWithAPString { - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; id: number; name?: string; - /** - * NOTE: This property will not be serialized. It can only be populated by the server. - */ + /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: boolean; odataLocation: string; - /** - * Dictionary of - */ + /** Dictionary of */ additionalProperties?: { [propertyName: string]: number }; } @@ -87,137 +65,83 @@ export type CatAPTrue = PetAPTrue & { friendly?: boolean; }; -/** - * Contains response data for the createAPTrue operation. - */ +/** Contains response data for the createAPTrue operation. */ export type PetsCreateAPTrueResponse = PetAPTrue & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: PetAPTrue; }; }; -/** - * Contains response data for the createCatAPTrue operation. - */ +/** Contains response data for the createCatAPTrue operation. */ export type PetsCreateCatAPTrueResponse = CatAPTrue & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: CatAPTrue; }; }; -/** - * Contains response data for the createAPObject operation. - */ +/** Contains response data for the createAPObject operation. */ export type PetsCreateAPObjectResponse = PetAPObject & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: PetAPObject; }; }; -/** - * Contains response data for the createAPString operation. - */ +/** Contains response data for the createAPString operation. */ export type PetsCreateAPStringResponse = PetAPString & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: PetAPString; }; }; -/** - * Contains response data for the createAPInProperties operation. - */ +/** Contains response data for the createAPInProperties operation. */ export type PetsCreateAPInPropertiesResponse = PetAPInProperties & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: PetAPInProperties; }; }; -/** - * Contains response data for the createAPInPropertiesWithAPString operation. - */ +/** Contains response data for the createAPInPropertiesWithAPString operation. */ export type PetsCreateAPInPropertiesWithAPStringResponse = PetAPInPropertiesWithAPString & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: PetAPInPropertiesWithAPString; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AdditionalPropertiesClientOptionalParams extends coreHttp.ServiceClientOptions { - /** - * server parameter - */ + /** server parameter */ $host?: string; - /** - * Overrides client endpoint. - */ + /** Overrides client endpoint. */ endpoint?: string; } diff --git a/test/integration/generated/additionalProperties/src/operations/pets.ts b/test/integration/generated/additionalProperties/src/operations/pets.ts index 7da81c18e8..706de50a34 100644 --- a/test/integration/generated/additionalProperties/src/operations/pets.ts +++ b/test/integration/generated/additionalProperties/src/operations/pets.ts @@ -25,9 +25,7 @@ import { PetsCreateAPInPropertiesWithAPStringResponse } from "../models"; -/** - * Class representing a Pets. - */ +/** Class representing a Pets. */ export class Pets { private readonly client: AdditionalPropertiesClient; @@ -154,7 +152,6 @@ export class Pets { } } // Operation Specifications - const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); const createAPTrueOperationSpec: coreHttp.OperationSpec = { diff --git a/test/integration/generated/appconfiguration/LICENSE.txt b/test/integration/generated/appconfiguration/LICENSE.txt index 4c529f375c..ccb63b1667 100644 --- a/test/integration/generated/appconfiguration/LICENSE.txt +++ b/test/integration/generated/appconfiguration/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 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 diff --git a/test/integration/generated/appconfiguration/rollup.config.js b/test/integration/generated/appconfiguration/rollup.config.js index 7004d51c29..e3cd47ffb7 100644 --- a/test/integration/generated/appconfiguration/rollup.config.js +++ b/test/integration/generated/appconfiguration/rollup.config.js @@ -10,9 +10,7 @@ import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; import sourcemaps from "rollup-plugin-sourcemaps"; -/** - * @type {rollup.RollupFileOptions} - */ +/** @type {rollup.RollupFileOptions} */ const config = { input: "./esm/appConfigurationClient.js", external: ["@azure/core-http"], diff --git a/test/integration/generated/appconfiguration/src/appConfigurationClient.ts b/test/integration/generated/appconfiguration/src/appConfigurationClient.ts index b52cc9643c..b2d34fcf1c 100644 --- a/test/integration/generated/appconfiguration/src/appConfigurationClient.ts +++ b/test/integration/generated/appconfiguration/src/appConfigurationClient.ts @@ -554,7 +554,6 @@ export class AppConfigurationClient extends AppConfigurationClientContext { } } // Operation Specifications - const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); const getKeysOperationSpec: coreHttp.OperationSpec = { diff --git a/test/integration/generated/appconfiguration/src/models/index.ts b/test/integration/generated/appconfiguration/src/models/index.ts index f7958134ef..9ec61febe6 100644 --- a/test/integration/generated/appconfiguration/src/models/index.ts +++ b/test/integration/generated/appconfiguration/src/models/index.ts @@ -8,64 +8,38 @@ import * as coreHttp from "@azure/core-http"; -/** - * The result of a list request. - */ +/** The result of a list request. */ export interface KeyListResult { - /** - * The collection value. - */ + /** The collection value. */ items?: Key[]; - /** - * The URI that can be used to request the next set of paged results. - */ + /** The URI that can be used to request the next set of paged results. */ nextLink?: string; } export interface Key { - /** - * NOTE: This property will not be serialized. It can only be populated by the server. - */ + /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; } -/** - * Azure App Configuration error object. - */ +/** Azure App Configuration error object. */ export interface ErrorModel { - /** - * The type of the error. - */ + /** The type of the error. */ type?: string; - /** - * A brief summary of the error. - */ + /** A brief summary of the error. */ title?: string; - /** - * The name of the parameter that resulted in the error. - */ + /** The name of the parameter that resulted in the error. */ name?: string; - /** - * A detailed description of the error. - */ + /** A detailed description of the error. */ detail?: string; - /** - * The HTTP status code that the error maps to. - */ + /** The HTTP status code that the error maps to. */ status?: number; } -/** - * The result of a list request. - */ +/** The result of a list request. */ export interface KeyValueListResult { - /** - * The collection value. - */ + /** The collection value. */ items?: KeyValue[]; - /** - * The URI that can be used to request the next set of paged results. - */ + /** The URI that can be used to request the next set of paged results. */ nextLink?: string; } @@ -75,250 +49,150 @@ export interface KeyValue { contentType?: string; value?: string; lastModified?: Date; - /** - * Dictionary of - */ + /** Dictionary of */ tags?: { [propertyName: string]: string }; locked?: boolean; etag?: string; } -/** - * The result of a list request. - */ +/** The result of a list request. */ export interface LabelListResult { - /** - * The collection value. - */ + /** The collection value. */ items?: Label[]; - /** - * The URI that can be used to request the next set of paged results. - */ + /** The URI that can be used to request the next set of paged results. */ nextLink?: string; } export interface Label { - /** - * NOTE: This property will not be serialized. It can only be populated by the server. - */ + /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; } -/** - * Defines headers for AppConfigurationClient_getKeys operation. - */ +/** Defines headers for AppConfigurationClient_getKeys operation. */ export interface AppConfigurationClientGetKeysHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_checkKeys operation. - */ +/** Defines headers for AppConfigurationClient_checkKeys operation. */ export interface AppConfigurationClientCheckKeysHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_getKeyValues operation. - */ +/** Defines headers for AppConfigurationClient_getKeyValues operation. */ export interface AppConfigurationClientGetKeyValuesHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_checkKeyValues operation. - */ +/** Defines headers for AppConfigurationClient_checkKeyValues operation. */ export interface AppConfigurationClientCheckKeyValuesHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_getKeyValue operation. - */ +/** Defines headers for AppConfigurationClient_getKeyValue operation. */ export interface AppConfigurationClientGetKeyValueHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; - /** - * An identifier representing the returned state of the resource. - */ + /** An identifier representing the returned state of the resource. */ eTag?: string; - /** - * A UTC datetime that specifies the last time the resource was modified. - */ + /** A UTC datetime that specifies the last time the resource was modified. */ lastModified?: string; } -/** - * Defines headers for AppConfigurationClient_putKeyValue operation. - */ +/** Defines headers for AppConfigurationClient_putKeyValue operation. */ export interface AppConfigurationClientPutKeyValueHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; - /** - * An identifier representing the returned state of the resource. - */ + /** An identifier representing the returned state of the resource. */ eTag?: string; } -/** - * Defines headers for AppConfigurationClient_deleteKeyValue operation. - */ +/** Defines headers for AppConfigurationClient_deleteKeyValue operation. */ export interface AppConfigurationClientDeleteKeyValueHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; - /** - * An identifier representing the returned state of the resource. - */ + /** An identifier representing the returned state of the resource. */ eTag?: string; } -/** - * Defines headers for AppConfigurationClient_checkKeyValue operation. - */ +/** Defines headers for AppConfigurationClient_checkKeyValue operation. */ export interface AppConfigurationClientCheckKeyValueHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; - /** - * An identifier representing the returned state of the resource. - */ + /** An identifier representing the returned state of the resource. */ eTag?: string; - /** - * A UTC datetime that specifies the last time the resource was modified. - */ + /** A UTC datetime that specifies the last time the resource was modified. */ lastModified?: string; } -/** - * Defines headers for AppConfigurationClient_getLabels operation. - */ +/** Defines headers for AppConfigurationClient_getLabels operation. */ export interface AppConfigurationClientGetLabelsHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_checkLabels operation. - */ +/** Defines headers for AppConfigurationClient_checkLabels operation. */ export interface AppConfigurationClientCheckLabelsHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_putLock operation. - */ +/** Defines headers for AppConfigurationClient_putLock operation. */ export interface AppConfigurationClientPutLockHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; - /** - * An identifier representing the returned state of the resource. - */ + /** An identifier representing the returned state of the resource. */ eTag?: string; } -/** - * Defines headers for AppConfigurationClient_deleteLock operation. - */ +/** Defines headers for AppConfigurationClient_deleteLock operation. */ export interface AppConfigurationClientDeleteLockHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; - /** - * An identifier representing the returned state of the resource. - */ + /** An identifier representing the returned state of the resource. */ eTag?: string; } -/** - * Defines headers for AppConfigurationClient_getRevisions operation. - */ +/** Defines headers for AppConfigurationClient_getRevisions operation. */ export interface AppConfigurationClientGetRevisionsHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_checkRevisions operation. - */ +/** Defines headers for AppConfigurationClient_checkRevisions operation. */ export interface AppConfigurationClientCheckRevisionsHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_getKeysNext operation. - */ +/** Defines headers for AppConfigurationClient_getKeysNext operation. */ export interface AppConfigurationClientGetKeysNextHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_getKeyValuesNext operation. - */ +/** Defines headers for AppConfigurationClient_getKeyValuesNext operation. */ export interface AppConfigurationClientGetKeyValuesNextHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_getLabelsNext operation. - */ +/** Defines headers for AppConfigurationClient_getLabelsNext operation. */ export interface AppConfigurationClientGetLabelsNextHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Defines headers for AppConfigurationClient_getRevisionsNext operation. - */ +/** Defines headers for AppConfigurationClient_getRevisionsNext operation. */ export interface AppConfigurationClientGetRevisionsNextHeaders { - /** - * Enables real-time consistency between requests by providing the returned value in the next request made to the server. - */ + /** Enables real-time consistency between requests by providing the returned value in the next request made to the server. */ syncToken?: string; } -/** - * Known values of {@link Get6ItemsItem} that the service accepts. - */ +/** Known values of {@link Get6ItemsItem} that the service accepts. */ export const enum KnownGet6ItemsItem { Key = "key", Label = "label", @@ -346,9 +220,7 @@ export const enum KnownGet6ItemsItem { */ export type Get6ItemsItem = string; -/** - * Known values of {@link Head6ItemsItem} that the service accepts. - */ +/** Known values of {@link Head6ItemsItem} that the service accepts. */ export const enum KnownHead6ItemsItem { Key = "key", Label = "label", @@ -376,9 +248,7 @@ export const enum KnownHead6ItemsItem { */ export type Head6ItemsItem = string; -/** - * Known values of {@link Get7ItemsItem} that the service accepts. - */ +/** Known values of {@link Get7ItemsItem} that the service accepts. */ export const enum KnownGet7ItemsItem { Key = "key", Label = "label", @@ -406,9 +276,7 @@ export const enum KnownGet7ItemsItem { */ export type Get7ItemsItem = string; -/** - * Known values of {@link Head7ItemsItem} that the service accepts. - */ +/** Known values of {@link Head7ItemsItem} that the service accepts. */ export const enum KnownHead7ItemsItem { Key = "key", Label = "label", @@ -436,9 +304,7 @@ export const enum KnownHead7ItemsItem { */ export type Head7ItemsItem = string; -/** - * Known values of {@link Enum4} that the service accepts. - */ +/** Known values of {@link Enum4} that the service accepts. */ export const enum KnownEnum4 { Key = "key", Label = "label", @@ -466,9 +332,7 @@ export const enum KnownEnum4 { */ export type Enum4 = string; -/** - * Known values of {@link Enum5} that the service accepts. - */ +/** Known values of {@link Enum5} that the service accepts. */ export const enum KnownEnum5 { Key = "key", Label = "label", @@ -496,839 +360,489 @@ export const enum KnownEnum5 { */ export type Enum5 = string; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientGetKeysOptionalParams extends coreHttp.OperationOptions { - /** - * A filter for the name of the returned keys. - */ + /** A filter for the name of the returned keys. */ name?: string; - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; } -/** - * Contains response data for the getKeys operation. - */ +/** Contains response data for the getKeys operation. */ export type AppConfigurationClientGetKeysResponse = AppConfigurationClientGetKeysHeaders & KeyListResult & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyListResult; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientGetKeysHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientCheckKeysOptionalParams extends coreHttp.OperationOptions { - /** - * A filter for the name of the returned keys. - */ + /** A filter for the name of the returned keys. */ name?: string; - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; } -/** - * Contains response data for the checkKeys operation. - */ +/** Contains response data for the checkKeys operation. */ export type AppConfigurationClientCheckKeysResponse = AppConfigurationClientCheckKeysHeaders & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientCheckKeysHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientGetKeyValuesOptionalParams extends coreHttp.OperationOptions { - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * A filter used to match keys. - */ + /** A filter used to match keys. */ key?: string; - /** - * A filter used to match labels - */ + /** A filter used to match labels */ label?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: Get6ItemsItem[]; } -/** - * Contains response data for the getKeyValues operation. - */ +/** Contains response data for the getKeyValues operation. */ export type AppConfigurationClientGetKeyValuesResponse = AppConfigurationClientGetKeyValuesHeaders & KeyValueListResult & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyValueListResult; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientGetKeyValuesHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientCheckKeyValuesOptionalParams extends coreHttp.OperationOptions { - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * A filter used to match keys. - */ + /** A filter used to match keys. */ key?: string; - /** - * A filter used to match labels - */ + /** A filter used to match labels */ label?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: Head6ItemsItem[]; } -/** - * Contains response data for the checkKeyValues operation. - */ +/** Contains response data for the checkKeyValues operation. */ export type AppConfigurationClientCheckKeyValuesResponse = AppConfigurationClientCheckKeyValuesHeaders & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientCheckKeyValuesHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientGetKeyValueOptionalParams extends coreHttp.OperationOptions { - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * The label of the key-value to retrieve. - */ + /** The label of the key-value to retrieve. */ label?: string; - /** - * Used to perform an operation only if the targeted resource's etag matches the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag matches the value provided. */ ifMatch?: string; - /** - * Used to perform an operation only if the targeted resource's etag does not match the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag does not match the value provided. */ ifNoneMatch?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: Get7ItemsItem[]; } -/** - * Contains response data for the getKeyValue operation. - */ +/** Contains response data for the getKeyValue operation. */ export type AppConfigurationClientGetKeyValueResponse = AppConfigurationClientGetKeyValueHeaders & KeyValue & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyValue; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientGetKeyValueHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientPutKeyValueOptionalParams extends coreHttp.OperationOptions { - /** - * The label of the key-value to create. - */ + /** The label of the key-value to create. */ label?: string; - /** - * Used to perform an operation only if the targeted resource's etag matches the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag matches the value provided. */ ifMatch?: string; - /** - * Used to perform an operation only if the targeted resource's etag does not match the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag does not match the value provided. */ ifNoneMatch?: string; - /** - * The key-value to create. - */ + /** The key-value to create. */ entity?: KeyValue; } -/** - * Contains response data for the putKeyValue operation. - */ +/** Contains response data for the putKeyValue operation. */ export type AppConfigurationClientPutKeyValueResponse = AppConfigurationClientPutKeyValueHeaders & KeyValue & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyValue; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientPutKeyValueHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientDeleteKeyValueOptionalParams extends coreHttp.OperationOptions { - /** - * The label of the key-value to delete. - */ + /** The label of the key-value to delete. */ label?: string; - /** - * Used to perform an operation only if the targeted resource's etag matches the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag matches the value provided. */ ifMatch?: string; } -/** - * Contains response data for the deleteKeyValue operation. - */ +/** Contains response data for the deleteKeyValue operation. */ export type AppConfigurationClientDeleteKeyValueResponse = AppConfigurationClientDeleteKeyValueHeaders & KeyValue & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyValue; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientDeleteKeyValueHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientCheckKeyValueOptionalParams extends coreHttp.OperationOptions { - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * The label of the key-value to retrieve. - */ + /** The label of the key-value to retrieve. */ label?: string; - /** - * Used to perform an operation only if the targeted resource's etag matches the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag matches the value provided. */ ifMatch?: string; - /** - * Used to perform an operation only if the targeted resource's etag does not match the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag does not match the value provided. */ ifNoneMatch?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: Head7ItemsItem[]; } -/** - * Contains response data for the checkKeyValue operation. - */ +/** Contains response data for the checkKeyValue operation. */ export type AppConfigurationClientCheckKeyValueResponse = AppConfigurationClientCheckKeyValueHeaders & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientCheckKeyValueHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientGetLabelsOptionalParams extends coreHttp.OperationOptions { - /** - * A filter for the name of the returned labels. - */ + /** A filter for the name of the returned labels. */ name?: string; - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: string[]; } -/** - * Contains response data for the getLabels operation. - */ +/** Contains response data for the getLabels operation. */ export type AppConfigurationClientGetLabelsResponse = AppConfigurationClientGetLabelsHeaders & LabelListResult & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: LabelListResult; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientGetLabelsHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientCheckLabelsOptionalParams extends coreHttp.OperationOptions { - /** - * A filter for the name of the returned labels. - */ + /** A filter for the name of the returned labels. */ name?: string; - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: string[]; } -/** - * Contains response data for the checkLabels operation. - */ +/** Contains response data for the checkLabels operation. */ export type AppConfigurationClientCheckLabelsResponse = AppConfigurationClientCheckLabelsHeaders & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientCheckLabelsHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientPutLockOptionalParams extends coreHttp.OperationOptions { - /** - * The label, if any, of the key-value to lock. - */ + /** The label, if any, of the key-value to lock. */ label?: string; - /** - * Used to perform an operation only if the targeted resource's etag matches the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag matches the value provided. */ ifMatch?: string; - /** - * Used to perform an operation only if the targeted resource's etag does not match the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag does not match the value provided. */ ifNoneMatch?: string; } -/** - * Contains response data for the putLock operation. - */ +/** Contains response data for the putLock operation. */ export type AppConfigurationClientPutLockResponse = AppConfigurationClientPutLockHeaders & KeyValue & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyValue; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientPutLockHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientDeleteLockOptionalParams extends coreHttp.OperationOptions { - /** - * The label, if any, of the key-value to unlock. - */ + /** The label, if any, of the key-value to unlock. */ label?: string; - /** - * Used to perform an operation only if the targeted resource's etag matches the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag matches the value provided. */ ifMatch?: string; - /** - * Used to perform an operation only if the targeted resource's etag does not match the value provided. - */ + /** Used to perform an operation only if the targeted resource's etag does not match the value provided. */ ifNoneMatch?: string; } -/** - * Contains response data for the deleteLock operation. - */ +/** Contains response data for the deleteLock operation. */ export type AppConfigurationClientDeleteLockResponse = AppConfigurationClientDeleteLockHeaders & KeyValue & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyValue; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientDeleteLockHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientGetRevisionsOptionalParams extends coreHttp.OperationOptions { - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * A filter used to match keys. - */ + /** A filter used to match keys. */ key?: string; - /** - * A filter used to match labels - */ + /** A filter used to match labels */ label?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: Enum4[]; } -/** - * Contains response data for the getRevisions operation. - */ +/** Contains response data for the getRevisions operation. */ export type AppConfigurationClientGetRevisionsResponse = AppConfigurationClientGetRevisionsHeaders & KeyValueListResult & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyValueListResult; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientGetRevisionsHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientCheckRevisionsOptionalParams extends coreHttp.OperationOptions { - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * A filter used to match keys. - */ + /** A filter used to match keys. */ key?: string; - /** - * A filter used to match labels - */ + /** A filter used to match labels */ label?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: Enum5[]; } -/** - * Contains response data for the checkRevisions operation. - */ +/** Contains response data for the checkRevisions operation. */ export type AppConfigurationClientCheckRevisionsResponse = AppConfigurationClientCheckRevisionsHeaders & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientCheckRevisionsHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientGetKeysNextOptionalParams extends coreHttp.OperationOptions { - /** - * A filter for the name of the returned keys. - */ + /** A filter for the name of the returned keys. */ name?: string; - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; } -/** - * Contains response data for the getKeysNext operation. - */ +/** Contains response data for the getKeysNext operation. */ export type AppConfigurationClientGetKeysNextResponse = AppConfigurationClientGetKeysNextHeaders & KeyListResult & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyListResult; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientGetKeysNextHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientGetKeyValuesNextOptionalParams extends coreHttp.OperationOptions { - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * A filter used to match keys. - */ + /** A filter used to match keys. */ key?: string; - /** - * A filter used to match labels - */ + /** A filter used to match labels */ label?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: Get6ItemsItem[]; } -/** - * Contains response data for the getKeyValuesNext operation. - */ +/** Contains response data for the getKeyValuesNext operation. */ export type AppConfigurationClientGetKeyValuesNextResponse = AppConfigurationClientGetKeyValuesNextHeaders & KeyValueListResult & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyValueListResult; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientGetKeyValuesNextHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientGetLabelsNextOptionalParams extends coreHttp.OperationOptions { - /** - * A filter for the name of the returned labels. - */ + /** A filter for the name of the returned labels. */ name?: string; - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: string[]; } -/** - * Contains response data for the getLabelsNext operation. - */ +/** Contains response data for the getLabelsNext operation. */ export type AppConfigurationClientGetLabelsNextResponse = AppConfigurationClientGetLabelsNextHeaders & LabelListResult & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: LabelListResult; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientGetLabelsNextHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientGetRevisionsNextOptionalParams extends coreHttp.OperationOptions { - /** - * Instructs the server to return elements that appear after the element referred to by the specified token. - */ + /** Instructs the server to return elements that appear after the element referred to by the specified token. */ after?: string; - /** - * Requests the server to respond with the state of the resource at the specified time. - */ + /** Requests the server to respond with the state of the resource at the specified time. */ acceptDatetime?: string; - /** - * A filter used to match keys. - */ + /** A filter used to match keys. */ key?: string; - /** - * A filter used to match labels - */ + /** A filter used to match labels */ label?: string; - /** - * Used to select what fields are present in the returned resource(s). - */ + /** Used to select what fields are present in the returned resource(s). */ select?: Enum4[]; } -/** - * Contains response data for the getRevisionsNext operation. - */ +/** Contains response data for the getRevisionsNext operation. */ export type AppConfigurationClientGetRevisionsNextResponse = AppConfigurationClientGetRevisionsNextHeaders & KeyValueListResult & { - /** - * The underlying HTTP response. - */ + /** The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ + /** The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ + /** The response body as parsed JSON or XML */ parsedBody: KeyValueListResult; - /** - * The parsed HTTP response headers. - */ + /** The parsed HTTP response headers. */ parsedHeaders: AppConfigurationClientGetRevisionsNextHeaders; }; }; -/** - * Optional parameters. - */ +/** Optional parameters. */ export interface AppConfigurationClientOptionalParams extends coreHttp.ServiceClientOptions { - /** - * Used to guarantee real-time consistency between requests. - */ + /** Used to guarantee real-time consistency between requests. */ syncToken?: string; - /** - * Api Version - */ + /** Api Version */ apiVersion?: string; - /** - * Overrides client endpoint. - */ + /** Overrides client endpoint. */ endpoint?: string; } diff --git a/test/integration/generated/appconfigurationexport/LICENSE.txt b/test/integration/generated/appconfigurationexport/LICENSE.txt new file mode 100644 index 0000000000..ccb63b1667 --- /dev/null +++ b/test/integration/generated/appconfigurationexport/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021 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/test/integration/generated/appconfigurationexport/README.md b/test/integration/generated/appconfigurationexport/README.md new file mode 100644 index 0000000000..d0cbc33653 --- /dev/null +++ b/test/integration/generated/appconfigurationexport/README.md @@ -0,0 +1,27 @@ +## Azure AppConfigurationClient SDK for JavaScript + +This package contains an isomorphic SDK for AppConfigurationClient. + +### Currently supported environments + +- Node.js version 8.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install appconfiguration +``` + +### How to use + +#### Sample code + +Refer the sample code in the [azure-sdk-for-js-samples](https://github.com/Azure/azure-sdk-for-js-samples) repository. + +## 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%2Fcdn%2Farm-cdn%2FREADME.png) \ No newline at end of file diff --git a/test/integration/generated/appconfigurationexport/api-extractor.json b/test/integration/generated/appconfigurationexport/api-extractor.json new file mode 100644 index 0000000000..5fb5b21b56 --- /dev/null +++ b/test/integration/generated/appconfigurationexport/api-extractor.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./esm/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./esm/index.d.ts" + }, + "messages": { + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "extractorMessageReporting": { + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } + } + } +} diff --git a/test/integration/generated/appconfigurationexport/package.json b/test/integration/generated/appconfigurationexport/package.json new file mode 100644 index 0000000000..be3c9589c9 --- /dev/null +++ b/test/integration/generated/appconfigurationexport/package.json @@ -0,0 +1,52 @@ +{ + "name": "appconfiguration", + "author": "Microsoft Corporation", + "description": "A generated SDK for AppConfigurationClient.", + "version": "1.0.0-preview1", + "dependencies": { + "@azure/core-paging": "^1.1.1", + "@azure/core-http": "^1.1.4", + "tslib": "^1.9.3" + }, + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], + "license": "MIT", + "main": "./dist/appconfiguration.js", + "module": "./esm/index.js", + "types": "./esm/index.d.ts", + "devDependencies": { + "typescript": "^3.1.1", + "rollup": "^0.66.2", + "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.4.9", + "@microsoft/api-extractor": "7.9.10" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js", + "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", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "src/**/*.ts", + "README.md", + "rollup.config.js", + "tsconfig.json" + ], + "scripts": { + "build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/appconfiguration.js.map'\" -o ./dist/appconfiguration.min.js ./dist/appconfiguration.js", + "prepack": "npm install && npm run build", + "extract-api": "api-extractor run --local" + }, + "sideEffects": false, + "autoPublish": true +} diff --git a/test/integration/generated/appconfigurationexport/rollup.config.js b/test/integration/generated/appconfigurationexport/rollup.config.js new file mode 100644 index 0000000000..e3cd47ffb7 --- /dev/null +++ b/test/integration/generated/appconfigurationexport/rollup.config.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 rollup from "rollup"; +import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + +/** @type {rollup.RollupFileOptions} */ +const config = { + input: "./esm/appConfigurationClient.js", + external: ["@azure/core-http"], + output: { + file: "./dist/appconfiguration.js", + format: "umd", + name: "Appconfiguration", + sourcemap: true, + globals: { + "@azure/core-http": "coreHttp" + }, + banner: `/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ ` + }, + plugins: [nodeResolve({ module: true }), sourcemaps()] +}; + +export default config; diff --git a/test/integration/generated/appconfigurationexport/src/appConfigurationClient.ts b/test/integration/generated/appconfigurationexport/src/appConfigurationClient.ts new file mode 100644 index 0000000000..7f7904c8ff --- /dev/null +++ b/test/integration/generated/appconfigurationexport/src/appConfigurationClient.ts @@ -0,0 +1,977 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 coreHttp from "@azure/core-http"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import * as Parameters from "./models/parameters"; +import * as Mappers from "./models/mappers"; +import { AppConfigurationClientContext } from "./appConfigurationClientContext"; +import { + AppConfigurationClientOptionalParams, + Key, + AppConfigurationClientGetKeysNextOptionalParams, + AppConfigurationClientGetKeysOptionalParams, + KeyValue, + AppConfigurationClientGetKeyValuesNextOptionalParams, + AppConfigurationClientGetKeyValuesOptionalParams, + Label, + AppConfigurationClientGetLabelsNextOptionalParams, + AppConfigurationClientGetLabelsOptionalParams, + AppConfigurationClientGetRevisionsNextOptionalParams, + AppConfigurationClientGetRevisionsOptionalParams, + AppConfigurationClientGetKeysResponse, + AppConfigurationClientCheckKeysOptionalParams, + AppConfigurationClientCheckKeysResponse, + AppConfigurationClientGetKeyValuesResponse, + AppConfigurationClientCheckKeyValuesOptionalParams, + AppConfigurationClientCheckKeyValuesResponse, + AppConfigurationClientGetKeyValueOptionalParams, + AppConfigurationClientGetKeyValueResponse, + AppConfigurationClientPutKeyValueOptionalParams, + AppConfigurationClientPutKeyValueResponse, + AppConfigurationClientDeleteKeyValueOptionalParams, + AppConfigurationClientDeleteKeyValueResponse, + AppConfigurationClientCheckKeyValueOptionalParams, + AppConfigurationClientCheckKeyValueResponse, + AppConfigurationClientGetLabelsResponse, + AppConfigurationClientCheckLabelsOptionalParams, + AppConfigurationClientCheckLabelsResponse, + AppConfigurationClientPutLockOptionalParams, + AppConfigurationClientPutLockResponse, + AppConfigurationClientDeleteLockOptionalParams, + AppConfigurationClientDeleteLockResponse, + AppConfigurationClientGetRevisionsResponse, + AppConfigurationClientCheckRevisionsOptionalParams, + AppConfigurationClientCheckRevisionsResponse, + AppConfigurationClientGetKeysNextResponse, + AppConfigurationClientGetKeyValuesNextResponse, + AppConfigurationClientGetLabelsNextResponse, + AppConfigurationClientGetRevisionsNextResponse +} from "./models"; + +/** @hidden */ +export class AppConfigurationClient extends AppConfigurationClientContext { + /** + * Initializes a new instance of the AppConfigurationClient class. + * @param endpoint The endpoint of the App Configuration instance to send requests to. + * @param options The parameter options + */ + constructor( + endpoint: string, + options?: AppConfigurationClientOptionalParams + ) { + super(endpoint, options); + } + + /** + * Gets a list of keys. + * @param options The options parameters. + */ + public listKeys( + options?: AppConfigurationClientGetKeysOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.getKeysPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.getKeysPagingPage(options); + } + }; + } + + private async *getKeysPagingPage( + options?: AppConfigurationClientGetKeysOptionalParams + ): AsyncIterableIterator { + let result = await this._getKeys(options); + yield result.items || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._getKeysNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.items || []; + } + } + + private async *getKeysPagingAll( + options?: AppConfigurationClientGetKeysOptionalParams + ): AsyncIterableIterator { + for await (const page of this.getKeysPagingPage(options)) { + yield* page; + } + } + + /** + * Gets a list of key-values. + * @param options The options parameters. + */ + public listKeyValues( + options?: AppConfigurationClientGetKeyValuesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.getKeyValuesPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.getKeyValuesPagingPage(options); + } + }; + } + + private async *getKeyValuesPagingPage( + options?: AppConfigurationClientGetKeyValuesOptionalParams + ): AsyncIterableIterator { + let result = await this._getKeyValues(options); + yield result.items || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._getKeyValuesNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.items || []; + } + } + + private async *getKeyValuesPagingAll( + options?: AppConfigurationClientGetKeyValuesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.getKeyValuesPagingPage(options)) { + yield* page; + } + } + + /** + * Gets a list of labels. + * @param options The options parameters. + */ + public listLabels( + options?: AppConfigurationClientGetLabelsOptionalParams + ): PagedAsyncIterableIterator