From 6b8516594ff8885fde7a1497dd721c3b95e5504c Mon Sep 17 00:00:00 2001 From: brendan colloran Date: Wed, 3 Jan 2024 13:58:32 -0800 Subject: [PATCH 01/11] move code quality deps to root, update config, temporarily downgrade some errors to warnings --- .eslintignore | 3 +- .eslintrc.cjs | 27 ++- docs/package.json | 3 +- package-lock.json | 418 ++++++++++++++++++++-------------------- package.json | 10 + web-admin/package.json | 12 +- web-auth/package.json | 10 +- web-common/package.json | 10 +- web-local/package.json | 14 +- 9 files changed, 256 insertions(+), 251 deletions(-) diff --git a/.eslintignore b/.eslintignore index 9e0b7458176..758873f1d97 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ web-admin/build -web-local/build \ No newline at end of file +web-local/build +**/svelte.config.js \ No newline at end of file diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 1f1bdffbe5b..33e20a1c10f 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -3,6 +3,7 @@ module.exports = { extends: [ "eslint:recommended", "plugin:@typescript-eslint/recommended", + 'plugin:@typescript-eslint/recommended-type-checked', 'plugin:svelte/recommended', "prettier", ], @@ -12,6 +13,8 @@ module.exports = { sourceType: "module", ecmaVersion: 2019, extraFileExtensions: [".svelte"], + project: true, + tsconfigRootDir: __dirname, }, env: { browser: true, @@ -23,7 +26,7 @@ module.exports = { files: ['*.svelte'], parser: 'svelte-eslint-parser', parserOptions: { - parser: '@typescript-eslint/parser' + parser: '@typescript-eslint/parser', } } ], @@ -32,6 +35,28 @@ module.exports = { "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }], "@typescript-eslint/ban-ts-comment": "warn", + "@typescript-eslint/no-unsafe-assignment": "warn", + "@typescript-eslint/no-unsafe-member-access": "warn", + "@typescript-eslint/no-unsafe-argument": "warn", + "@typescript-eslint/no-unsafe-member-access":"warn", + "@typescript-eslint/no-unsafe-call":"warn", + "@typescript-eslint/no-unsafe-assignment":"warn", + "@typescript-eslint/no-unsafe-argument":"warn", + "@typescript-eslint/no-unsafe-return":"warn", + "@typescript-eslint/no-floating-promises":"warn", + "@typescript-eslint/no-explicit-any":"warn", + "@typescript-eslint/no-unnecessary-type-assertion":"warn", + "@typescript-eslint/unbound-method":"warn", + "@typescript-eslint/require-await":"warn", + "@typescript-eslint/restrict-template-expressions":"warn", + "@typescript-eslint/no-redundant-type-constituents":"warn", + "@typescript-eslint/no-unsafe-enum-comparison":"warn", + "@typescript-eslint/no-misused-promises":"warn", + "@typescript-eslint/no-duplicate-enum-values":"warn", + "@typescript-eslint/ban-ts-comment":"warn", + "@typescript-eslint/await-thenable":"warn", + "@typescript-eslint/no-implied-eval":"warn", + "@typescript-eslint/no-base-to-string":"warn", "svelte/no-at-html-tags": "warn", }, }; diff --git a/docs/package.json b/docs/package.json index 47f6a997d29..d8d8ecf76ce 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,11 +15,12 @@ "@docusaurus/theme-mermaid": "2.4.3", "@mdx-js/react": "^1.6.22", "@tsconfig/docusaurus": "^1.0.5", + "@typescript-eslint/eslint-plugin": "^6.17.0", "clsx": "^1.1.1", "docusaurus-gtm-plugin": "^0.0.2", "prism-react-renderer": "^1.3.3", - "react-dom": "^17.0.2", "react": "^17.0.2", + "react-dom": "^17.0.2", "redocusaurus": "^1.1.2", "tailwindcss": "^3.0.23", "typescript": "^4.6.4" diff --git a/package-lock.json b/package-lock.json index 5c2266d7b8b..5a9dc55008e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,17 @@ "web-auth", "web-common", "web-local" - ] + ], + "devDependencies": { + "@typescript-eslint/eslint-plugin": "^6.17.0", + "@typescript-eslint/parser": "^6.17.0", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-svelte": "^2.35.1", + "prettier": "^3.1.1", + "prettier-plugin-svelte": "^3.1.2", + "typescript": "^5.3.3" + } }, "docs": { "version": "0.0.1", @@ -25,6 +35,7 @@ "@docusaurus/theme-mermaid": "2.4.3", "@mdx-js/react": "^1.6.22", "@tsconfig/docusaurus": "^1.0.5", + "@typescript-eslint/eslint-plugin": "^6.17.0", "clsx": "^1.1.1", "docusaurus-gtm-plugin": "^0.0.2", "prism-react-renderer": "^1.3.3", @@ -35,6 +46,19 @@ "typescript": "^4.6.4" } }, + "docs/node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", "dev": true, @@ -3290,9 +3314,10 @@ } }, "node_modules/@eslint/js": { - "version": "8.55.0", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", "dev": true, - "license": "MIT", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } @@ -6866,6 +6891,21 @@ "node": ">=10" } }, + "node_modules/@storybook/cli/node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/@storybook/cli/node_modules/semver": { "version": "7.5.4", "dev": true, @@ -6948,6 +6988,21 @@ "url": "https://opencollective.com/storybook" } }, + "node_modules/@storybook/codemod/node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/@storybook/components": { "version": "7.5.3", "dev": true, @@ -9000,31 +9055,33 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.62.0", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.17.0.tgz", + "integrity": "sha512-Vih/4xLXmY7V490dGwBQJTpIZxH4ZFH6eCVmQ4RFkB+wmaCTDAx4dtgoWwMNGKLkqRY1L6rPqzEbjorRnDo4rQ==", "dev": true, - "license": "MIT", "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/type-utils": "6.17.0", + "@typescript-eslint/utils": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", "debug": "^4.3.4", "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -9034,8 +9091,9 @@ }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -9045,8 +9103,9 @@ }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -9059,28 +9118,31 @@ }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { "version": "4.0.0", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, "node_modules/@typescript-eslint/parser": { - "version": "5.62.0", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.17.0.tgz", + "integrity": "sha512-C4bBaX2orvhK+LlwrY8oWGmSl4WolCfYm513gEccdWZj0CwGadbIADb0FtVEcI+WzUyjyoBj2JRP8g25E6IB8A==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", "debug": "^4.3.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -9089,15 +9151,16 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.62.0", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.17.0.tgz", + "integrity": "sha512-RX7a8lwgOi7am0k17NUO0+ZmMOX4PpjLtLRgLmT1d3lBYdWH4ssBUbwdmc5pdRX8rXon8v9x8vaoOSpkHfcXGA==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -9105,24 +9168,25 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.62.0", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.17.0.tgz", + "integrity": "sha512-hDXcWmnbtn4P2B37ka3nil3yi3VCQO2QEB9gBiHJmQp5wmyQWqnjA85+ZcE8c4FqnaB6lBwMrPkgd4aBYz3iNg==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "@typescript-eslint/utils": "6.17.0", "debug": "^4.3.4", - "tsutils": "^3.21.0" + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "*" + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -9131,11 +9195,12 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.62.0", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.17.0.tgz", + "integrity": "sha512-qRKs9tvc3a4RBcL/9PXtKSehI/q8wuU9xYJxe97WFxnzH8NWWtcW3ffNS+EWg8uPvIerhjsEZ+rHtDqOCiH57A==", "dev": true, - "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -9143,20 +9208,22 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.62.0", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.17.0.tgz", + "integrity": "sha512-gVQe+SLdNPfjlJn5VNGhlOhrXz4cajwFd5kAgWtZ9dCZf4XJf8xmgCTLIqec7aha3JwgLI2CK6GY1043FRxZwg==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -9168,10 +9235,20 @@ } } }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -9179,10 +9256,26 @@ "node": ">=10" } }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -9195,38 +9288,40 @@ }, "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { "version": "4.0.0", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, "node_modules/@typescript-eslint/utils": { - "version": "5.62.0", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.17.0.tgz", + "integrity": "sha512-LofsSPjN/ITNkzV47hxas2JCsNCEnGhVvocfyOcLzT9c/tSZE7SfhS/iWtzP1lKNOEfLhRTZz6xqI8N2RzweSQ==", "dev": true, - "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "semver": "^7.5.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0" } }, "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -9236,8 +9331,9 @@ }, "node_modules/@typescript-eslint/utils/node_modules/semver": { "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -9250,19 +9346,21 @@ }, "node_modules/@typescript-eslint/utils/node_modules/yallist": { "version": "4.0.0", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.62.0", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.17.0.tgz", + "integrity": "sha512-H6VwB/k3IuIeQOyYczyyKN8wH6ed8EwliaYHLxOIhyF0dYEIsN8+Bk3GE19qafeMKyZJJHP8+O1HiFhFLUNKSg==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" + "@typescript-eslint/types": "6.17.0", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -13680,14 +13778,15 @@ } }, "node_modules/eslint": { - "version": "8.55.0", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.55.0", + "@eslint/js": "8.56.0", "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -13745,9 +13844,10 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.10.0", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", "dev": true, - "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -13757,8 +13857,9 @@ }, "node_modules/eslint-plugin-svelte": { "version": "2.35.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.35.1.tgz", + "integrity": "sha512-IF8TpLnROSGy98Z3NrsKXWDSCbNY2ReHDcrYTuXZMbfX7VmESISR78TWgO9zdg4Dht1X8coub5jKwHzP0ExRug==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@jridgewell/sourcemap-codec": "^1.4.14", @@ -18760,11 +18861,6 @@ "dev": true, "license": "MIT" }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "dev": true, - "license": "MIT" - }, "node_modules/negotiator": { "version": "0.6.3", "dev": true, @@ -20831,26 +20927,28 @@ } }, "node_modules/prettier": { - "version": "2.8.8", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", "dev": true, - "license": "MIT", "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" } }, "node_modules/prettier-plugin-svelte": { - "version": "2.10.1", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-3.1.2.tgz", + "integrity": "sha512-7xfMZtwgAWHMT0iZc8jN4o65zgbAQ3+O32V6W7pXrqNvKnHnkoyQCGCbKeUyXKZLbYE0YhFRnamfxfkEGxm8qA==", "dev": true, - "license": "MIT", "peerDependencies": { - "prettier": "^1.16.4 || ^2.0.0", - "svelte": "^3.2.0 || ^4.0.0-next.0" + "prettier": "^3.0.0", + "svelte": "^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0" } }, "node_modules/pretty-error": { @@ -24170,18 +24268,6 @@ "svelte": "^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0" } }, - "node_modules/svelte-check/node_modules/typescript": { - "version": "5.3.2", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "node_modules/svelte-eslint-parser": { "version": "0.33.1", "dev": true, @@ -25544,6 +25630,18 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/ts-dedent": { "version": "2.2.0", "dev": true, @@ -25581,25 +25679,6 @@ "dev": true, "license": "0BSD" }, - "node_modules/tsutils": { - "version": "3.21.0", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "dev": true, - "license": "0BSD" - }, "node_modules/type-check": { "version": "0.4.0", "dev": true, @@ -25717,15 +25796,16 @@ } }, "node_modules/typescript": { - "version": "4.9.5", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/ua-parser-js": { @@ -27730,24 +27810,16 @@ "@sveltejs/adapter-static": "^1.0.0", "@sveltejs/kit": "^1.20.4", "@tanstack/svelte-query": "npm:@rilldata/svelte-query@4.29.20-0.0.3", - "@typescript-eslint/eslint-plugin": "^5.27.0", - "@typescript-eslint/parser": "^5.27.0", "autoprefixer": "^10.4.13", "axios": "^0.27.2", "cronstrue": "^2.41.0", - "eslint": "^8.16.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-svelte": "^2.35.1", "orval": "^6.12.0", "postcss": "^8.4.21", - "prettier": "^2.6.2", - "prettier-plugin-svelte": "^2.10.1", "svelte": "^4.0.0", "svelte-check": "^3.4.3", "svelte-popperjs": "^1.3.2", "svelte-preprocess": "^5.0.3", - "tailwindcss": "^3.2.7", - "typescript": "^5.0.0" + "tailwindcss": "^3.2.7" } }, "web-admin/node_modules/@rilldata/svelte-query": { @@ -27781,18 +27853,6 @@ "svelte": ">=3 <5" } }, - "web-admin/node_modules/typescript": { - "version": "5.3.2", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "web-auth": { "version": "0.0.1", "devDependencies": { @@ -27805,24 +27865,16 @@ "@sveltejs/adapter-static": "^2.0.2", "@sveltejs/kit": "^1.20.4", "@types/auth0-js": "^9.14.7", - "@typescript-eslint/eslint-plugin": "^5.45.0", - "@typescript-eslint/parser": "^5.45.0", "auth0-js": "^9.20.2", "autoprefixer": "^10.4.13", "dotenv": "^16.0.3", - "eslint": "^8.28.0", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-svelte": "^2.35.1", "postcss": "^8.4.21", - "prettier": "^2.8.0", - "prettier-plugin-svelte": "^2.10.1", "rollup-plugin-css-only": "^4.3.0", "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-svelte": "^7.1.5", "svelte": "^4.0.0", "svelte-check": "^3.4.3", "tailwindcss": "^3.2.7", - "typescript": "^5.0.0", "vite": "^4.0.0" } }, @@ -27834,18 +27886,6 @@ "@sveltejs/kit": "^1.5.0" } }, - "web-auth/node_modules/typescript": { - "version": "5.3.2", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "web-common": { "version": "0.0.1", "devDependencies": { @@ -27872,8 +27912,6 @@ "@tanstack/svelte-table": "^8.9.5", "@tanstack/svelte-virtual": "^3.0.1", "@testing-library/svelte": "^4.0.0", - "@typescript-eslint/eslint-plugin": "^5.27.0", - "@typescript-eslint/parser": "^5.27.0", "@vitest/coverage-c8": "^0.31.0", "autoprefixer": "^10.4.13", "bits-ui": "^0.11.8", @@ -27887,17 +27925,12 @@ "d3-shape": "^3.1.0", "d3-time-format": "^4.1.0", "date-fns": "^2.30.0", - "eslint": "^8.16.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-svelte": "^2.35.1", "jsdom": "^23.0.1", "litepicker": "^2.0.12", "lucide-svelte": "^0.298.0", "luxon": "^3.4.3", "match-sorter": "^6.3.1", "orval": "^6.12.0", - "prettier": "^2.6.2", - "prettier-plugin-svelte": "^2.10.1", "regular-table": "^0.5.9", "storybook": "^7.0.18", "svelte": "^4.0.0", @@ -27906,7 +27939,6 @@ "tailwind-merge": "^2.1.0", "tailwind-variants": "^0.1.19", "tailwindcss": "^3.2.7", - "typescript": "^5.0.0", "ua-parser-js": "^1.0.2", "uuid": "^9.0.0", "vitest": "^0.31.0", @@ -27970,18 +28002,6 @@ "node": ">=6" } }, - "web-common/node_modules/typescript": { - "version": "5.3.2", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "web-local": { "name": "@rilldata/rill", "version": "0.15.0", @@ -27991,22 +28011,14 @@ "@sveltejs/adapter-static": "^1.0.0", "@sveltejs/kit": "^1.20.4", "@tanstack/svelte-query": "npm:@rilldata/svelte-query@4.29.20-0.0.3", - "@typescript-eslint/eslint-plugin": "^5.16.0", - "@typescript-eslint/parser": "^5.16.0", "autoprefixer": "^10.4.4", "axios": "^0.27.2", - "eslint": "^8.12.0", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-svelte": "^2.35.1", "playwright": "^1.33.0", "postcss-load-config": "^3.1.3", - "prettier": "^2.6.1", - "prettier-plugin-svelte": "^2.10.1", "svelte": "^4.0.0", "svelte-check": "^3.4.3", "svelte-preprocess": "^5.0.3", - "tree-kill": "^1.2.2", - "typescript": "^5.0.0" + "tree-kill": "^1.2.2" } }, "web-local/node_modules/@rilldata/svelte-query": { @@ -28039,18 +28051,6 @@ "peerDependencies": { "svelte": ">=3 <5" } - }, - "web-local/node_modules/typescript": { - "version": "5.3.2", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } } } } diff --git a/package.json b/package.json index 9afd1d85183..d41bf3d86a6 100644 --- a/package.json +++ b/package.json @@ -21,5 +21,15 @@ "@rgossiaux/svelte-headlessui": { "svelte": "^4.0.0" } + }, + "devDependencies": { + "@typescript-eslint/eslint-plugin": "^6.17.0", + "@typescript-eslint/parser": "^6.17.0", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-svelte": "^2.35.1", + "prettier": "^3.1.1", + "prettier-plugin-svelte": "^3.1.2", + "typescript": "^5.3.3" } } diff --git a/web-admin/package.json b/web-admin/package.json index 7642003f3c6..c99fd455c20 100644 --- a/web-admin/package.json +++ b/web-admin/package.json @@ -20,24 +20,16 @@ "@sveltejs/adapter-static": "^1.0.0", "@sveltejs/kit": "^1.20.4", "@tanstack/svelte-query": "npm:@rilldata/svelte-query@4.29.20-0.0.3", - "@typescript-eslint/eslint-plugin": "^5.27.0", - "@typescript-eslint/parser": "^5.27.0", "autoprefixer": "^10.4.13", "axios": "^0.27.2", "cronstrue": "^2.41.0", - "eslint": "^8.16.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-svelte": "^2.35.1", "orval": "^6.12.0", "postcss": "^8.4.21", - "prettier": "^2.6.2", - "prettier-plugin-svelte": "^2.10.1", "svelte": "^4.0.0", "svelte-check": "^3.4.3", "svelte-popperjs": "^1.3.2", "svelte-preprocess": "^5.0.3", - "tailwindcss": "^3.2.7", - "typescript": "^5.0.0" + "tailwindcss": "^3.2.7" }, "type": "module" -} \ No newline at end of file +} diff --git a/web-auth/package.json b/web-auth/package.json index 3a256643e72..2e7f9da0890 100644 --- a/web-auth/package.json +++ b/web-auth/package.json @@ -22,25 +22,17 @@ "@sveltejs/adapter-static": "^2.0.2", "@sveltejs/kit": "^1.20.4", "@types/auth0-js": "^9.14.7", - "@typescript-eslint/eslint-plugin": "^5.45.0", - "@typescript-eslint/parser": "^5.45.0", "auth0-js": "^9.20.2", "autoprefixer": "^10.4.13", "dotenv": "^16.0.3", - "eslint": "^8.28.0", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-svelte": "^2.35.1", "postcss": "^8.4.21", - "prettier": "^2.8.0", - "prettier-plugin-svelte": "^2.10.1", "rollup-plugin-css-only": "^4.3.0", "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-svelte": "^7.1.5", "svelte": "^4.0.0", "svelte-check": "^3.4.3", "tailwindcss": "^3.2.7", - "typescript": "^5.0.0", "vite": "^4.0.0" }, "type": "module" -} \ No newline at end of file +} diff --git a/web-common/package.json b/web-common/package.json index a9f7b6d8e8a..44a54c69b33 100644 --- a/web-common/package.json +++ b/web-common/package.json @@ -36,8 +36,6 @@ "@tanstack/svelte-table": "^8.9.5", "@tanstack/svelte-virtual": "^3.0.1", "@testing-library/svelte": "^4.0.0", - "@typescript-eslint/eslint-plugin": "^5.27.0", - "@typescript-eslint/parser": "^5.27.0", "@vitest/coverage-c8": "^0.31.0", "autoprefixer": "^10.4.13", "bits-ui": "^0.11.8", @@ -51,26 +49,20 @@ "d3-shape": "^3.1.0", "d3-time-format": "^4.1.0", "date-fns": "^2.30.0", - "eslint": "^8.16.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-svelte": "^2.35.1", "jsdom": "^23.0.1", "litepicker": "^2.0.12", "lucide-svelte": "^0.298.0", "luxon": "^3.4.3", "match-sorter": "^6.3.1", "orval": "^6.12.0", - "prettier": "^2.6.2", - "prettier-plugin-svelte": "^2.10.1", "regular-table": "^0.5.9", "storybook": "^7.0.18", "svelte": "^4.0.0", "svelte-forms-lib": "^2.0.1", "svelte-preprocess": "^5.0.4", - "tailwindcss": "^3.2.7", "tailwind-merge": "^2.1.0", "tailwind-variants": "^0.1.19", - "typescript": "^5.0.0", + "tailwindcss": "^3.2.7", "ua-parser-js": "^1.0.2", "uuid": "^9.0.0", "vitest": "^0.31.0", diff --git a/web-local/package.json b/web-local/package.json index b23551b1f75..cf1e0c2af57 100644 --- a/web-local/package.json +++ b/web-local/package.json @@ -20,21 +20,13 @@ "@sveltejs/adapter-static": "^1.0.0", "@sveltejs/kit": "^1.20.4", "@tanstack/svelte-query": "npm:@rilldata/svelte-query@4.29.20-0.0.3", - "@typescript-eslint/eslint-plugin": "^5.16.0", - "@typescript-eslint/parser": "^5.16.0", "autoprefixer": "^10.4.4", "axios": "^0.27.2", - "eslint": "^8.12.0", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-svelte": "^2.35.1", "playwright": "^1.33.0", "postcss-load-config": "^3.1.3", - "prettier": "^2.6.1", - "prettier-plugin-svelte": "^2.10.1", "svelte": "^4.0.0", "svelte-check": "^3.4.3", "svelte-preprocess": "^5.0.3", - "tree-kill": "^1.2.2", - "typescript": "^5.0.0" - } -} \ No newline at end of file + "tree-kill": "^1.2.2" + } +} From b7a8f04d82b8c4544063dea54ce6c0e9b8108c25 Mon Sep 17 00:00:00 2001 From: brendan colloran Date: Wed, 3 Jan 2024 14:34:43 -0800 Subject: [PATCH 02/11] cleanup --- .eslintrc.cjs | 42 +++++++++++++++++++++--------------------- docs/package.json | 1 - 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 33e20a1c10f..a4610cec283 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -3,8 +3,8 @@ module.exports = { extends: [ "eslint:recommended", "plugin:@typescript-eslint/recommended", - 'plugin:@typescript-eslint/recommended-type-checked', - 'plugin:svelte/recommended', + "plugin:@typescript-eslint/recommended-type-checked", + "plugin:svelte/recommended", "prettier", ], parser: "@typescript-eslint/parser", @@ -38,25 +38,25 @@ module.exports = { "@typescript-eslint/no-unsafe-assignment": "warn", "@typescript-eslint/no-unsafe-member-access": "warn", "@typescript-eslint/no-unsafe-argument": "warn", - "@typescript-eslint/no-unsafe-member-access":"warn", - "@typescript-eslint/no-unsafe-call":"warn", - "@typescript-eslint/no-unsafe-assignment":"warn", - "@typescript-eslint/no-unsafe-argument":"warn", - "@typescript-eslint/no-unsafe-return":"warn", - "@typescript-eslint/no-floating-promises":"warn", - "@typescript-eslint/no-explicit-any":"warn", - "@typescript-eslint/no-unnecessary-type-assertion":"warn", - "@typescript-eslint/unbound-method":"warn", - "@typescript-eslint/require-await":"warn", - "@typescript-eslint/restrict-template-expressions":"warn", - "@typescript-eslint/no-redundant-type-constituents":"warn", - "@typescript-eslint/no-unsafe-enum-comparison":"warn", - "@typescript-eslint/no-misused-promises":"warn", - "@typescript-eslint/no-duplicate-enum-values":"warn", - "@typescript-eslint/ban-ts-comment":"warn", - "@typescript-eslint/await-thenable":"warn", - "@typescript-eslint/no-implied-eval":"warn", - "@typescript-eslint/no-base-to-string":"warn", + "@typescript-eslint/no-unsafe-member-access": "warn", + "@typescript-eslint/no-unsafe-call": "warn", + "@typescript-eslint/no-unsafe-assignment": "warn", + "@typescript-eslint/no-unsafe-argument": "warn", + "@typescript-eslint/no-unsafe-return": "warn", + "@typescript-eslint/no-floating-promises": "warn", + "@typescript-eslint/no-explicit-any": "warn", + "@typescript-eslint/no-unnecessary-type-assertion": "warn", + "@typescript-eslint/unbound-method": "warn", + "@typescript-eslint/require-await": "warn", + "@typescript-eslint/restrict-template-expressions": "warn", + "@typescript-eslint/no-redundant-type-constituents": "warn", + "@typescript-eslint/no-unsafe-enum-comparison": "warn", + "@typescript-eslint/no-misused-promises": "warn", + "@typescript-eslint/no-duplicate-enum-values": "warn", + "@typescript-eslint/ban-ts-comment": "warn", + "@typescript-eslint/await-thenable": "warn", + "@typescript-eslint/no-implied-eval": "warn", + "@typescript-eslint/no-base-to-string": "warn", "svelte/no-at-html-tags": "warn", }, }; diff --git a/docs/package.json b/docs/package.json index d8d8ecf76ce..4ae5673879a 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,7 +15,6 @@ "@docusaurus/theme-mermaid": "2.4.3", "@mdx-js/react": "^1.6.22", "@tsconfig/docusaurus": "^1.0.5", - "@typescript-eslint/eslint-plugin": "^6.17.0", "clsx": "^1.1.1", "docusaurus-gtm-plugin": "^0.0.2", "prism-react-renderer": "^1.3.3", From e5a769301f6b286928d017ff7a633dbac7eb397b Mon Sep 17 00:00:00 2001 From: brendan colloran Date: Wed, 3 Jan 2024 15:11:51 -0800 Subject: [PATCH 03/11] update prettier config for prettier 3.x --- .prettierignore | 1 + package-lock.json | 1 - prettier.config.js | 6 ++++++ tsconfig.json | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 prettier.config.js diff --git a/.prettierignore b/.prettierignore index 462df345e23..da5184be4ca 100644 --- a/.prettierignore +++ b/.prettierignore @@ -18,6 +18,7 @@ proto/ .env *.sql +*.bin *.csv *.csv.gz *.tsv diff --git a/package-lock.json b/package-lock.json index 5a9dc55008e..23b262226d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,7 +35,6 @@ "@docusaurus/theme-mermaid": "2.4.3", "@mdx-js/react": "^1.6.22", "@tsconfig/docusaurus": "^1.0.5", - "@typescript-eslint/eslint-plugin": "^6.17.0", "clsx": "^1.1.1", "docusaurus-gtm-plugin": "^0.0.2", "prism-react-renderer": "^1.3.3", diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 00000000000..1ad7058cca8 --- /dev/null +++ b/prettier.config.js @@ -0,0 +1,6 @@ +/** @type {import("prettier").Config} */ +const config = { + plugins: ["prettier-plugin-svelte"], +}; + +export default config; diff --git a/tsconfig.json b/tsconfig.json index 626e574dc78..d87d0907401 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -43,5 +43,6 @@ "**/*.d.ts", "**/*.ts", "**/*.svelte", + "prettier.config.js", ] } From 19a8e5f3cd9f7a4a84946ffee18104cd4c26947c Mon Sep 17 00:00:00 2001 From: brendan colloran Date: Wed, 3 Jan 2024 15:23:05 -0800 Subject: [PATCH 04/11] run prettier --- web-admin/src/app.html | 2 +- .../client/gen/admin-service/admin-service.ts | 604 +++++++++--------- .../authentication/AvatarButton.svelte | 2 +- .../features/dashboards/listing/selectors.ts | 38 +- web-admin/src/features/errors/error-utils.ts | 14 +- .../features/navigation/Breadcrumbs.svelte | 4 +- .../src/features/projects/ProjectCard.svelte | 2 +- .../projects/ProjectDashboardsListener.svelte | 2 +- .../ProjectDeploymentStatusChip.svelte | 6 +- .../projects/ProjectGithubConnection.svelte | 2 +- .../projects/ProjectParseErrors.svelte | 2 +- .../src/features/projects/ProjectTabs.svelte | 4 +- .../src/features/projects/download-report.ts | 2 +- .../src/features/projects/getProjectErrors.ts | 6 +- .../src/features/projects/invalidations.ts | 6 +- web-admin/src/features/projects/selectors.ts | 6 +- .../metadata/ReportMetadata.svelte | 10 +- .../metadata/RunNowButton.svelte | 2 +- .../features/scheduled-reports/selectors.ts | 10 +- .../features/telemetry/initCloudMetrics.ts | 2 +- .../view-as-user/ViewAsUserPopover.svelte | 2 +- .../view-as-user/clearViewedAsUser.ts | 4 +- .../features/view-as-user/setViewedAsUser.ts | 4 +- .../src/routes/-/auth/device/+page.svelte | 4 +- .../src/routes/-/github/connect/+page.svelte | 2 +- .../-/github/connect/retry-auth/+page.svelte | 2 +- .../github/connect/retry-install/+page.svelte | 2 +- .../[organization]/[project]/+layout.svelte | 2 +- .../[project]/[dashboard]/+page.svelte | 4 +- web-auth/rollup.config.js | 2 +- web-auth/src/app.html | 2 +- web-auth/src/components/Auth.svelte | 20 +- web-auth/src/template.html | 2 +- web-common/src/components/BarAndLabel.svelte | 4 +- .../button-group/ButtonGroup.spec.ts | 4 +- .../button-group/ButtonGroup.svelte | 6 +- .../components/button-group/SubButton.svelte | 8 +- web-common/src/components/button/classes.ts | 4 +- .../calls-to-action/CTAButton.svelte | 2 +- web-common/src/components/card/Card.svelte | 12 +- .../chip/core/RemoveChipButton.svelte | 2 +- .../column-profile/ColumnProfile.svelte | 6 +- .../column-types/NestedProfile.svelte | 6 +- .../column-types/NumericProfile.svelte | 16 +- .../column-types/TimestampProfile.svelte | 4 +- .../column-types/VarcharProfile.svelte | 8 +- .../column-types/details/NumericPlot.svelte | 2 +- .../column-types/details/TopK.svelte | 10 +- .../src/components/column-profile/queries.ts | 46 +- .../src/components/column-profile/utils.ts | 2 +- .../actions/forward-events-action-factory.ts | 4 +- .../data-graphic/actions/outline.ts | 10 +- .../actions/scrub-action-factory.ts | 6 +- .../timestamp-profile/TimestampDetail.svelte | 14 +- .../TimestampMouseoverAnnotation.svelte | 6 +- .../timestamp-profile/TimestampPaths.svelte | 16 +- .../timestamp-profile/TimestampSpark.svelte | 2 +- .../timestamp-profile/ZoomWindow.svelte | 2 +- .../elements/GraphicContext.svelte | 2 +- .../data-graphic/guides/Axis.svelte | 4 +- .../data-graphic/guides/Grid.svelte | 4 +- .../data-graphic/guides/PointLabel.svelte | 14 +- .../marks/HistogramPrimitive.svelte | 2 +- .../components/data-graphic/marks/Line.svelte | 8 +- .../marks/MultiMetricMouseoverLabel.svelte | 45 +- .../components/data-graphic/marks/Rug.svelte | 2 +- .../marks/prevent-vertical-overlap.ts | 2 +- .../data-graphic/marks/sparkline.ts | 8 +- .../src/components/data-graphic/utils.ts | 22 +- .../src/components/data-types/type-utils.ts | 2 +- .../components/date-picker/Litepicker.spec.ts | 4 +- .../components/date-picker/custom-picker.js | 22 +- .../src/components/date-picker/datetime.ts | 46 +- .../DropdownMenuCheckboxItem.svelte | 2 +- .../dropdown-menu/DropdownMenuContent.svelte | 2 +- .../dropdown-menu/DropdownMenuItem.svelte | 2 +- .../DropdownMenuRadioItem.svelte | 2 +- .../DropdownMenuSubContent.svelte | 2 +- .../DropdownMenuSubTrigger.svelte | 2 +- .../src/components/editor/YAMLEditor.spec.ts | 2 +- .../editor/dispatch-events/index.ts | 2 +- .../editor/indent-guide/index.spec.ts | 14 +- .../components/editor/indent-guide/index.ts | 4 +- .../editor/line-status/highlighter.spec.ts | 14 +- .../editor/line-status/highlighter.ts | 2 +- .../line-status/line-number-gutter.spec.ts | 2 +- .../editor/line-status/line-number-gutter.ts | 10 +- .../line-status/line-status-gutter.spec.ts | 4 +- .../editor/line-status/line-status-gutter.ts | 8 +- .../src/components/editor/presets/base.ts | 2 +- .../floating-element/FloatingElement.svelte | 10 +- .../forms/MultiSelectCombobox.svelte | 2 +- .../src/components/menu-v2/MenuItem.svelte | 2 +- .../src/components/menu/core/MenuItem.svelte | 4 +- .../menu/triggers/SelectButton.svelte | 4 +- .../menu/wrappers/WithSelectMenu.svelte | 6 +- web-common/src/components/modal/offset.d.ts | 2 +- web-common/src/components/modal/offset.js | 5 +- web-common/src/components/modal/scroll.d.ts | 2 +- web-common/src/components/modal/scroll.js | 4 +- .../notifications/notificationStore.ts | 2 +- .../preview-table/PreviewTable.svelte | 6 +- .../SeachableFilterButton.svelte | 2 +- .../SearchableFilterChip.svelte | 2 +- .../SearchableFilterDropdown.svelte | 4 +- web-common/src/components/tag/Tag.svelte | 2 +- .../components/tooltip/SlidingWords.svelte | 6 +- .../components/tooltip/StackingWord.svelte | 12 +- .../src/components/tooltip/Tooltip.svelte | 2 +- .../virtualized-table/core/Cell.svelte | 8 +- .../virtualized-table/drag-table-cell.ts | 2 +- .../sections/PinnedColumns.svelte | 6 +- .../dashboards/DashboardAssets.svelte | 26 +- .../src/features/dashboards/actions/index.ts | 18 +- .../big-number/MeasureBigNumber.svelte | 11 +- .../big-number/MeasuresContainer.svelte | 12 +- .../dashboards/dashboard-fetch-mocks.ts | 4 +- .../features/dashboards/dashboard-queries.ts | 2 +- .../features/dashboards/dashboard-utils.ts | 4 +- .../dimension-table/DimensionDisplay.svelte | 14 +- .../dimension-table/DimensionTable.svelte | 8 +- .../dimension-table-export-utils.ts | 10 +- .../dimension-table-utils.spec.ts | 2 +- .../dimension-table/dimension-table-utils.ts | 56 +- .../dimension-table/export-toplist.ts | 2 +- .../dashboards/filters/Filters.svelte | 4 +- .../dashboards/filters/formatFilters.ts | 2 +- .../dashboards/filters/getDisplayName.ts | 2 +- .../granular-access-policies/updateDevJWT.ts | 2 +- .../useDashboardPolicyCheck.ts | 4 +- .../granular-access-policies/useDevJWT.ts | 2 +- .../dashboards/leaderboard/Leaderboard.svelte | 8 +- .../LeaderboardContextColumnMenu.svelte | 2 +- .../leaderboard/LeaderboardControls.svelte | 10 +- .../leaderboard/LeaderboardListItem.svelte | 4 +- .../leaderboard/leaderboard-utils.ts | 16 +- .../features/dashboards/pivot/Pivot.svelte | 41 +- .../proto-state/dashboard-url-state.spec.ts | 42 +- .../proto-state/dashboard-url-state.ts | 8 +- .../dashboards/proto-state/fromProto.ts | 20 +- .../dashboards/proto-state/proto.spec.ts | 4 +- .../dashboards/proto-state/toProto.ts | 8 +- .../dashboards/rows-viewer/RowsViewer.svelte | 6 +- .../rows-viewer/RowsViewerAccordion.svelte | 6 +- .../src/features/dashboards/selectors.ts | 28 +- .../features/dashboards/selectors/index.ts | 20 +- .../dashboards/show-hide-selectors.spec.ts | 40 +- .../dashboards/show-hide-selectors.ts | 18 +- .../state-managers/actions/comparison.ts | 2 +- .../state-managers/actions/context-columns.ts | 4 +- .../state-managers/actions/core-actions.ts | 2 +- .../actions/dimension-filters.ts | 8 +- .../state-managers/actions/dimension-table.ts | 4 +- .../state-managers/actions/dimensions.ts | 2 +- .../state-managers/actions/index.ts | 14 +- .../state-managers/actions/sorting.ts | 2 +- .../state-managers/actions/types.ts | 4 +- .../state-managers/memoize-metrics-store.ts | 2 +- .../selectors/active-measure.ts | 10 +- .../state-managers/selectors/comparisons.ts | 2 +- .../selectors/dashboard-queries.ts | 16 +- .../selectors/dimension-filters.ts | 18 +- .../selectors/dimension-table.ts | 20 +- .../state-managers/selectors/dimensions.ts | 12 +- .../state-managers/selectors/index.ts | 30 +- .../state-managers/selectors/measures.ts | 2 +- .../state-managers/selectors/time-range.ts | 2 +- .../state-managers/state-managers.ts | 10 +- .../stores/DashboardStateProvider.svelte | 2 +- .../stores/dashboard-store-defaults.ts | 18 +- .../stores/dashboard-stores-test-data.ts | 20 +- .../stores/dashboard-stores.spec.ts | 72 +-- .../dashboards/stores/dashboard-stores.ts | 76 +-- .../time-controls/ComparisonSelector.svelte | 8 +- .../time-controls/CustomTimeRangeInput.svelte | 12 +- .../time-controls/NoTimeDimensionCTA.svelte | 4 +- .../TimeComparisonSelector.svelte | 6 +- .../time-controls/TimeControls.svelte | 16 +- .../time-controls/TimeRangeScrubChip.svelte | 2 +- .../time-controls/TimeRangeSelector.svelte | 16 +- .../time-controls/TimeZoneSelector.svelte | 2 +- .../time-controls/time-control-store.spec.ts | 70 +- .../time-controls/time-control-store.ts | 66 +- .../time-controls/time-range-store.ts | 26 +- .../time-range-utils.spec.disabled.ts | 6 +- .../time-controls/time-range-utils.ts | 16 +- .../time-dimension-details/TDDHeader.svelte | 2 +- .../time-dimension-details/TDDIcons.ts | 2 +- .../time-dimension-details/TDDTable.svelte | 12 +- .../TimeDimensionDisplay.svelte | 12 +- .../time-dimension-data-store.ts | 44 +- .../dashboards/time-dimension-details/util.ts | 2 +- .../time-series/MeasureChart.svelte | 10 +- .../time-series/MeasureScrub.svelte | 16 +- .../time-series/MeasureValueMouseover.svelte | 4 +- .../dashboards/time-series/MeasureZoom.svelte | 2 +- .../MetricsTimeSeriesCharts.svelte | 20 +- .../TimeSeriesChartContainer.svelte | 6 +- .../time-series/multiple-dimension-queries.ts | 40 +- .../time-series/round-to-nearest-time-unit.ts | 2 +- .../time-series/timeseries-data-store.ts | 22 +- .../time-series/totals-data-store.ts | 6 +- .../dashboards/time-series/utils.spec.ts | 4 +- .../features/dashboards/time-series/utils.ts | 14 +- .../features/dashboards/user-preferences.ts | 2 +- .../dashboards/workspace/Dashboard.svelte | 4 +- .../dashboards/workspace/DashboardCTAs.svelte | 4 +- .../entity-management/RenameAssetModal.svelte | 6 +- .../features/entity-management/Spinner.svelte | 21 +- .../src/features/entity-management/actions.ts | 4 +- .../entity-management/entity-mappers.ts | 12 +- .../entity-management/file-artifacts-store.ts | 12 +- .../entity-management/file-selectors.ts | 8 +- .../features/entity-management/name-utils.ts | 4 +- .../resource-invalidations.ts | 22 +- .../entity-management/resource-selectors.ts | 23 +- .../resource-status-utils.ts | 22 +- .../entity-management/resources-store.ts | 16 +- .../entity-management/watch-files-client.ts | 8 +- .../watch-resources-client.ts | 4 +- web-common/src/features/feature-flags.ts | 2 +- .../generic-yaml-editor/actions/index.ts | 4 +- .../src/features/metrics-views/errors.ts | 4 +- .../metrics-views/metrics-internal-store.ts | 2 +- .../workspace/GoToDashboardButton.svelte | 6 +- .../workspace/editor/MetricsEditor.svelte | 4 +- .../workspace/editor/Placeholder.svelte | 6 +- .../workspace/editor/create-placeholder.ts | 4 +- .../workspace/editor/update-metrics.ts | 8 +- .../inspector/MetricsInspector.svelte | 4 +- .../models/createDashboardFromModel.ts | 28 +- web-common/src/features/models/createModel.ts | 4 +- .../models/navigation/ModelMenuItems.svelte | 8 +- web-common/src/features/models/selectors.ts | 12 +- .../src/features/models/utils/Debounce.ts | 4 +- .../src/features/models/utils/embedded.ts | 12 +- .../utils/get-table-references/index.ts | 12 +- .../models/utils/sanitize-query.test.ts | 4 +- .../workspace/CreateDashboardButton.svelte | 4 +- .../features/models/workspace/Editor.svelte | 18 +- .../models/workspace/ModelBody.svelte | 12 +- .../workspace/ModelWorkspaceHeader.svelte | 8 +- .../features/models/workspace/export-table.ts | 2 +- .../inspector/ModelInspectorHeader.svelte | 16 +- .../workspace/inspector/References.svelte | 10 +- .../models/workspace/inspector/utils.ts | 6 +- .../BaseScheduledReportForm.svelte | 2 +- .../CreateScheduledReportDialog.svelte | 6 +- .../EditScheduledReportDialog.svelte | 14 +- .../features/scheduled-reports/time-utils.ts | 2 +- .../src/features/sources/createDashboard.ts | 20 +- .../src/features/sources/createModel.ts | 8 +- .../editor/BeforeLeavingUnsavedSource.svelte | 4 +- .../sources/editor/SourceEditor.svelte | 6 +- .../editor/SourceUnsavedIndicator.svelte | 2 +- .../features/sources/errors/ErrorPane.svelte | 2 +- .../sources/extract-table-name.spec.ts | 8 +- web-common/src/features/sources/group-uris.ts | 25 +- .../sources/inspector/SourceInspector.svelte | 8 +- .../sources/modal/AddSourceModal.svelte | 6 +- .../features/sources/modal/FileDrop.svelte | 6 +- .../sources/modal/LocalSourceUpload.svelte | 6 +- .../sources/modal/RemoteSourceForm.svelte | 2 +- .../sources/modal/RequestConnectorForm.svelte | 2 +- .../sources/modal/SourceImportedModal.svelte | 2 +- .../features/sources/modal/createSource.ts | 4 +- .../sources/modal/duplicateNameUtils.spec.ts | 12 +- .../sources/modal/duplicateNameUtils.ts | 4 +- .../src/features/sources/modal/errors.ts | 4 +- .../src/features/sources/modal/file-upload.ts | 12 +- .../sources/modal/possible-file-extensions.ts | 4 +- .../sources/modal/submitRemoteSourceForm.ts | 12 +- .../src/features/sources/modal/yupSchemas.ts | 20 +- .../sources/navigation/SourceMenuItems.svelte | 16 +- .../sources/navigation/TableAssets.svelte | 4 +- .../src/features/sources/refreshSource.ts | 12 +- web-common/src/features/sources/selectors.ts | 20 +- .../features/sources/source-imported-utils.ts | 6 +- .../src/features/sources/sourceUtils.ts | 12 +- .../src/features/sources/sources-store.ts | 2 +- .../workspace/SourceWorkspaceBody.svelte | 8 +- .../workspace/SourceWorkspaceHeader.svelte | 12 +- web-common/src/features/themes/actions.ts | 8 +- web-common/src/features/themes/color-utils.ts | 2 +- .../src/features/welcome/EmptyProject.svelte | 4 +- .../src/features/welcome/ProjectCards.svelte | 2 +- .../src/features/welcome/TitleContent.svelte | 2 +- .../welcome/is-project-initialized.ts | 6 +- web-common/src/layout/BasicLayout.svelte | 2 +- .../layout/BlockingOverlayContainer.svelte | 2 +- web-common/src/layout/app-store.ts | 2 +- .../src/layout/navigation/Navigation.svelte | 6 +- .../src/layout/navigation/navigation-utils.ts | 2 +- .../workspace/HorizontalSplitter.svelte | 4 +- .../src/layout/workspace/Inspector.svelte | 6 +- .../workspace/WorkspaceContainer.svelte | 10 +- .../layout/workspace/WorkspaceHeader.svelte | 4 +- .../src/lib/actions/shift-click-action.ts | 2 +- .../src/lib/actions/truncate-middle-text.ts | 4 +- web-common/src/lib/arrayUtils.ts | 2 +- web-common/src/lib/convertTimestampPreview.ts | 2 +- web-common/src/lib/duckdb-data-types.ts | 2 +- web-common/src/lib/formatters.ts | 4 +- .../number-formatting/format-measure-value.ts | 6 +- .../lib/number-formatting/humanizer-types.ts | 4 +- .../src/lib/number-formatting/humanizer.ts | 4 +- .../proper-fraction-formatter.ts | 2 +- .../SingleDigitTimesPowerOfTen.spec.ts | 2 +- .../strategies/SingleDigitTimesPowerOfTen.ts | 7 +- .../number-formatting/strategies/intervals.ts | 10 +- .../lib/number-formatting/strategies/none.ts | 2 +- .../per-range.default-generic-nums.spec.ts | 2 +- .../strategies/per-range.spec.ts | 12 +- .../number-formatting/strategies/per-range.ts | 16 +- .../utils/format-with-order-of-magnitude.ts | 2 +- web-common/src/lib/shadcn.ts | 6 +- .../src/lib/time/comparisons/index.spec.ts | 6 +- web-common/src/lib/time/comparisons/index.ts | 32 +- web-common/src/lib/time/grains/index.spec.ts | 22 +- web-common/src/lib/time/grains/index.ts | 8 +- web-common/src/lib/time/ranges/index.spec.ts | 2 +- web-common/src/lib/time/ranges/index.ts | 36 +- .../src/lib/time/ranges/iso-ranges.spec.ts | 14 +- web-common/src/lib/time/ranges/iso-ranges.ts | 16 +- .../src/lib/time/transforms/index.spec.ts | 18 +- web-common/src/lib/time/transforms/index.ts | 18 +- web-common/src/lib/transitions/slide-right.ts | 2 +- web-common/src/lib/url-utils.spec.ts | 8 +- web-common/src/lib/url-utils.ts | 2 +- web-common/src/lib/waitUtils.ts | 4 +- web-common/src/metrics/ActiveEventHandler.ts | 15 +- .../src/metrics/BehaviourEventHandler.ts | 12 +- web-common/src/metrics/ErrorEventHandler.ts | 8 +- .../metrics/service/BehaviourEventFactory.ts | 20 +- .../src/metrics/service/ErrorEventFactory.ts | 12 +- .../metrics/service/MetricsEventFactory.ts | 2 +- .../src/metrics/service/MetricsService.ts | 6 +- .../service/ProductHealthEventFactory.ts | 4 +- web-common/src/metrics/service/ServiceBase.ts | 8 +- .../exponential-backoff-tracker.ts | 2 +- .../runtime-client/fetch-streaming-wrapper.ts | 2 +- .../connector-service/connector-service.ts | 168 ++--- .../gen/query-service/query-service.ts | 342 +++++----- .../gen/runtime-service/runtime-service.ts | 280 ++++---- web-common/src/runtime-client/http-client.ts | 2 +- .../runtime-client/http-request-queue/Heap.ts | 2 +- .../http-request-queue/HttpRequestQueue.ts | 2 +- .../HttpRequestQueueTypes.ts | 4 +- web-common/src/runtime-client/invalidation.ts | 38 +- .../src/runtime-client/manual-clients.ts | 2 +- .../runtime-client/watch-request-client.ts | 4 +- web-local/src/app.html | 2 +- web-local/src/lib/util/Config.ts | 2 +- web-local/src/lib/util/cliConfirmation.ts | 2 +- .../src/lib/util/command-click-action.ts | 2 +- .../dashboard/[name]/+page.svelte | 4 +- .../dashboard/[name]/edit/+page.svelte | 2 +- .../(application)/model/[name]/+page.svelte | 2 +- .../(application)/source/[name]/+page.svelte | 2 +- .../src/routes/dev/data-graphic/_utils.ts | 2 +- .../routes/dev/data-graphic/metrics.svelte | 2 +- .../routes/dev/data-graphic/reactive.svelte | 2 +- .../dev/data-graphic/small-multiples.svelte | 4 +- .../leaderboard-and-dim-table-sort.spec.ts | 32 +- .../dashboard-flows/number-formatting.spec.ts | 30 +- .../time-controls-from-config.spec.ts | 30 +- web-local/test/ui/dashboards.spec.ts | 68 +- web-local/test/ui/models.spec.ts | 4 +- web-local/test/ui/sources.spec.ts | 2 +- web-local/test/ui/utils/commonHelpers.ts | 8 +- web-local/test/ui/utils/dashboardHelpers.ts | 44 +- web-local/test/ui/utils/dataSpecifcHelpers.ts | 2 +- web-local/test/ui/utils/helpers.ts | 16 +- web-local/test/ui/utils/sourceHelpers.ts | 6 +- .../test/ui/utils/startRuntimeForEachTest.ts | 4 +- web-local/test/ui/utils/waitHelpers.ts | 2 +- 376 files changed, 2468 insertions(+), 2383 deletions(-) diff --git a/web-admin/src/app.html b/web-admin/src/app.html index 1e38d3a2249..f87a969d65f 100644 --- a/web-admin/src/app.html +++ b/web-admin/src/app.html @@ -1,4 +1,4 @@ - + diff --git a/web-admin/src/client/gen/admin-service/admin-service.ts b/web-admin/src/client/gen/admin-service/admin-service.ts index 7ea57d26849..c1193f53ad6 100644 --- a/web-admin/src/client/gen/admin-service/admin-service.ts +++ b/web-admin/src/client/gen/admin-service/admin-service.ts @@ -131,7 +131,7 @@ import { httpClient } from "../../http-client"; */ export const adminServiceTriggerReconcile = ( deploymentId: string, - adminServiceTriggerReconcileBodyBody: AdminServiceTriggerReconcileBodyBody + adminServiceTriggerReconcileBodyBody: AdminServiceTriggerReconcileBodyBody, ) => { return httpClient({ url: `/v1/deployments/${deploymentId}/reconcile`, @@ -143,7 +143,7 @@ export const adminServiceTriggerReconcile = ( export const getAdminServiceTriggerReconcileMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -183,7 +183,7 @@ export type AdminServiceTriggerReconcileMutationError = RpcStatus; */ export const createAdminServiceTriggerReconcile = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -202,7 +202,7 @@ export const createAdminServiceTriggerReconcile = < */ export const adminServiceTriggerRefreshSources = ( deploymentId: string, - adminServiceTriggerRefreshSourcesBody: AdminServiceTriggerRefreshSourcesBody + adminServiceTriggerRefreshSourcesBody: AdminServiceTriggerRefreshSourcesBody, ) => { return httpClient({ url: `/v1/deployments/${deploymentId}/refresh`, @@ -214,7 +214,7 @@ export const adminServiceTriggerRefreshSources = ( export const getAdminServiceTriggerRefreshSourcesMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -254,7 +254,7 @@ export type AdminServiceTriggerRefreshSourcesMutationError = RpcStatus; */ export const createAdminServiceTriggerRefreshSources = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -274,7 +274,7 @@ If the caller has not granted access to the repository, instructions for grantin */ export const adminServiceGetGithubRepoStatus = ( params?: AdminServiceGetGithubRepoStatusParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/github/repositories`, @@ -285,14 +285,14 @@ export const adminServiceGetGithubRepoStatus = ( }; export const getAdminServiceGetGithubRepoStatusQueryKey = ( - params?: AdminServiceGetGithubRepoStatusParams + params?: AdminServiceGetGithubRepoStatusParams, ) => { return [`/v1/github/repositories`, ...(params ? [params] : [])] as const; }; export const getAdminServiceGetGithubRepoStatusQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceGetGithubRepoStatusParams, options?: { @@ -301,7 +301,7 @@ export const getAdminServiceGetGithubRepoStatusQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -331,7 +331,7 @@ If the caller has not granted access to the repository, instructions for grantin */ export const createAdminServiceGetGithubRepoStatus = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceGetGithubRepoStatusParams, options?: { @@ -340,11 +340,11 @@ export const createAdminServiceGetGithubRepoStatus = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetGithubRepoStatusQueryOptions( params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -362,7 +362,7 @@ export const createAdminServiceGetGithubRepoStatus = < */ export const adminServiceListOrganizations = ( params?: AdminServiceListOrganizationsParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations`, @@ -373,14 +373,14 @@ export const adminServiceListOrganizations = ( }; export const getAdminServiceListOrganizationsQueryKey = ( - params?: AdminServiceListOrganizationsParams + params?: AdminServiceListOrganizationsParams, ) => { return [`/v1/organizations`, ...(params ? [params] : [])] as const; }; export const getAdminServiceListOrganizationsQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceListOrganizationsParams, options?: { @@ -389,7 +389,7 @@ export const getAdminServiceListOrganizationsQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -417,7 +417,7 @@ export type AdminServiceListOrganizationsQueryError = RpcStatus; */ export const createAdminServiceListOrganizations = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceListOrganizationsParams, options?: { @@ -426,11 +426,11 @@ export const createAdminServiceListOrganizations = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListOrganizationsQueryOptions( params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -447,7 +447,7 @@ export const createAdminServiceListOrganizations = < * @summary CreateOrganization creates a new organization */ export const adminServiceCreateOrganization = ( - v1CreateOrganizationRequest: V1CreateOrganizationRequest + v1CreateOrganizationRequest: V1CreateOrganizationRequest, ) => { return httpClient({ url: `/v1/organizations`, @@ -459,7 +459,7 @@ export const adminServiceCreateOrganization = ( export const getAdminServiceCreateOrganizationMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -499,7 +499,7 @@ export type AdminServiceCreateOrganizationMutationError = RpcStatus; */ export const createAdminServiceCreateOrganization = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -518,7 +518,7 @@ export const createAdminServiceCreateOrganization = < */ export const adminServiceGetOrganization = ( name: string, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${name}`, @@ -533,7 +533,7 @@ export const getAdminServiceGetOrganizationQueryKey = (name: string) => { export const getAdminServiceGetOrganizationQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( name: string, options?: { @@ -542,7 +542,7 @@ export const getAdminServiceGetOrganizationQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -575,7 +575,7 @@ export type AdminServiceGetOrganizationQueryError = RpcStatus; */ export const createAdminServiceGetOrganization = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( name: string, options?: { @@ -584,11 +584,11 @@ export const createAdminServiceGetOrganization = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetOrganizationQueryOptions( name, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -613,7 +613,7 @@ export const adminServiceDeleteOrganization = (name: string) => { export const getAdminServiceDeleteOrganizationMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -652,7 +652,7 @@ export type AdminServiceDeleteOrganizationMutationError = RpcStatus; */ export const createAdminServiceDeleteOrganization = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -671,7 +671,7 @@ export const createAdminServiceDeleteOrganization = < */ export const adminServiceUpdateOrganization = ( name: string, - adminServiceUpdateOrganizationBody: AdminServiceUpdateOrganizationBody + adminServiceUpdateOrganizationBody: AdminServiceUpdateOrganizationBody, ) => { return httpClient({ url: `/v1/organizations/${name}`, @@ -683,7 +683,7 @@ export const adminServiceUpdateOrganization = ( export const getAdminServiceUpdateOrganizationMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -723,7 +723,7 @@ export type AdminServiceUpdateOrganizationMutationError = RpcStatus; */ export const createAdminServiceUpdateOrganization = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -743,7 +743,7 @@ export const createAdminServiceUpdateOrganization = < export const adminServiceListOrganizationInvites = ( organization: string, params?: AdminServiceListOrganizationInvitesParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organization}/invites`, @@ -755,7 +755,7 @@ export const adminServiceListOrganizationInvites = ( export const getAdminServiceListOrganizationInvitesQueryKey = ( organization: string, - params?: AdminServiceListOrganizationInvitesParams + params?: AdminServiceListOrganizationInvitesParams, ) => { return [ `/v1/organizations/${organization}/invites`, @@ -765,7 +765,7 @@ export const getAdminServiceListOrganizationInvitesQueryKey = ( export const getAdminServiceListOrganizationInvitesQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, params?: AdminServiceListOrganizationInvitesParams, @@ -775,7 +775,7 @@ export const getAdminServiceListOrganizationInvitesQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -810,7 +810,7 @@ export type AdminServiceListOrganizationInvitesQueryError = RpcStatus; */ export const createAdminServiceListOrganizationInvites = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, params?: AdminServiceListOrganizationInvitesParams, @@ -820,12 +820,12 @@ export const createAdminServiceListOrganizationInvites = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListOrganizationInvitesQueryOptions( organization, params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -844,7 +844,7 @@ export const createAdminServiceListOrganizationInvites = < export const adminServiceListOrganizationMembers = ( organization: string, params?: AdminServiceListOrganizationMembersParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organization}/members`, @@ -856,7 +856,7 @@ export const adminServiceListOrganizationMembers = ( export const getAdminServiceListOrganizationMembersQueryKey = ( organization: string, - params?: AdminServiceListOrganizationMembersParams + params?: AdminServiceListOrganizationMembersParams, ) => { return [ `/v1/organizations/${organization}/members`, @@ -866,7 +866,7 @@ export const getAdminServiceListOrganizationMembersQueryKey = ( export const getAdminServiceListOrganizationMembersQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, params?: AdminServiceListOrganizationMembersParams, @@ -876,7 +876,7 @@ export const getAdminServiceListOrganizationMembersQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -911,7 +911,7 @@ export type AdminServiceListOrganizationMembersQueryError = RpcStatus; */ export const createAdminServiceListOrganizationMembers = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, params?: AdminServiceListOrganizationMembersParams, @@ -921,12 +921,12 @@ export const createAdminServiceListOrganizationMembers = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListOrganizationMembersQueryOptions( organization, params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -944,7 +944,7 @@ export const createAdminServiceListOrganizationMembers = < */ export const adminServiceAddOrganizationMember = ( organization: string, - adminServiceAddOrganizationMemberBodyBody: AdminServiceAddOrganizationMemberBodyBody + adminServiceAddOrganizationMemberBodyBody: AdminServiceAddOrganizationMemberBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/members`, @@ -956,7 +956,7 @@ export const adminServiceAddOrganizationMember = ( export const getAdminServiceAddOrganizationMemberMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -996,7 +996,7 @@ export type AdminServiceAddOrganizationMemberMutationError = RpcStatus; */ export const createAdminServiceAddOrganizationMember = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1016,7 +1016,7 @@ export const createAdminServiceAddOrganizationMember = < export const adminServiceRemoveOrganizationMember = ( organization: string, email: string, - params?: AdminServiceRemoveOrganizationMemberParams + params?: AdminServiceRemoveOrganizationMemberParams, ) => { return httpClient({ url: `/v1/organizations/${organization}/members/${email}`, @@ -1027,7 +1027,7 @@ export const adminServiceRemoveOrganizationMember = ( export const getAdminServiceRemoveOrganizationMemberMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1078,7 +1078,7 @@ export type AdminServiceRemoveOrganizationMemberMutationError = RpcStatus; */ export const createAdminServiceRemoveOrganizationMember = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1102,7 +1102,7 @@ export const createAdminServiceRemoveOrganizationMember = < export const adminServiceSetOrganizationMemberRole = ( organization: string, email: string, - adminServiceSetOrganizationMemberRoleBodyBody: AdminServiceSetOrganizationMemberRoleBodyBody + adminServiceSetOrganizationMemberRoleBodyBody: AdminServiceSetOrganizationMemberRoleBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/members/${email}`, @@ -1114,7 +1114,7 @@ export const adminServiceSetOrganizationMemberRole = ( export const getAdminServiceSetOrganizationMemberRoleMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1166,7 +1166,7 @@ export type AdminServiceSetOrganizationMemberRoleMutationError = RpcStatus; */ export const createAdminServiceSetOrganizationMemberRole = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1196,7 +1196,7 @@ export const adminServiceLeaveOrganization = (organization: string) => { export const getAdminServiceLeaveOrganizationMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1235,7 +1235,7 @@ export type AdminServiceLeaveOrganizationMutationError = RpcStatus; */ export const createAdminServiceLeaveOrganization = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1255,7 +1255,7 @@ export const createAdminServiceLeaveOrganization = < export const adminServiceGetDeploymentCredentials = ( organization: string, project: string, - adminServiceGetDeploymentCredentialsBody: AdminServiceGetDeploymentCredentialsBody + adminServiceGetDeploymentCredentialsBody: AdminServiceGetDeploymentCredentialsBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/credentials`, @@ -1268,7 +1268,7 @@ export const adminServiceGetDeploymentCredentials = ( export const getAdminServiceGetDeploymentCredentialsQueryKey = ( organization: string, project: string, - adminServiceGetDeploymentCredentialsBody: AdminServiceGetDeploymentCredentialsBody + adminServiceGetDeploymentCredentialsBody: AdminServiceGetDeploymentCredentialsBody, ) => { return [ `/v1/organizations/${organization}/projects/${project}/credentials`, @@ -1278,7 +1278,7 @@ export const getAdminServiceGetDeploymentCredentialsQueryKey = ( export const getAdminServiceGetDeploymentCredentialsQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -1289,7 +1289,7 @@ export const getAdminServiceGetDeploymentCredentialsQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -1298,7 +1298,7 @@ export const getAdminServiceGetDeploymentCredentialsQueryOptions = < getAdminServiceGetDeploymentCredentialsQueryKey( organization, project, - adminServiceGetDeploymentCredentialsBody + adminServiceGetDeploymentCredentialsBody, ); const queryFn: QueryFunction< @@ -1307,7 +1307,7 @@ export const getAdminServiceGetDeploymentCredentialsQueryOptions = < adminServiceGetDeploymentCredentials( organization, project, - adminServiceGetDeploymentCredentialsBody + adminServiceGetDeploymentCredentialsBody, ); return { @@ -1332,7 +1332,7 @@ export type AdminServiceGetDeploymentCredentialsQueryError = RpcStatus; */ export const createAdminServiceGetDeploymentCredentials = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -1343,13 +1343,13 @@ export const createAdminServiceGetDeploymentCredentials = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetDeploymentCredentialsQueryOptions( organization, project, adminServiceGetDeploymentCredentialsBody, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -1368,7 +1368,7 @@ export const createAdminServiceGetDeploymentCredentials = < export const adminServiceGetGitCredentials = ( organization: string, project: string, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/git-credentials`, @@ -1379,7 +1379,7 @@ export const adminServiceGetGitCredentials = ( export const getAdminServiceGetGitCredentialsQueryKey = ( organization: string, - project: string + project: string, ) => { return [ `/v1/organizations/${organization}/projects/${project}/git-credentials`, @@ -1388,7 +1388,7 @@ export const getAdminServiceGetGitCredentialsQueryKey = ( export const getAdminServiceGetGitCredentialsQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -1398,7 +1398,7 @@ export const getAdminServiceGetGitCredentialsQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -1433,7 +1433,7 @@ export type AdminServiceGetGitCredentialsQueryError = RpcStatus; */ export const createAdminServiceGetGitCredentials = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -1443,12 +1443,12 @@ export const createAdminServiceGetGitCredentials = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetGitCredentialsQueryOptions( organization, project, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -1467,7 +1467,7 @@ export const createAdminServiceGetGitCredentials = < export const adminServiceGetIFrame = ( organization: string, project: string, - adminServiceGetIFrameBody: AdminServiceGetIFrameBody + adminServiceGetIFrameBody: AdminServiceGetIFrameBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/iframe`, @@ -1479,7 +1479,7 @@ export const adminServiceGetIFrame = ( export const getAdminServiceGetIFrameMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1518,7 +1518,7 @@ export type AdminServiceGetIFrameMutationError = RpcStatus; */ export const createAdminServiceGetIFrame = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1538,7 +1538,7 @@ export const adminServiceListProjectInvites = ( organization: string, project: string, params?: AdminServiceListProjectInvitesParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/invites`, @@ -1551,7 +1551,7 @@ export const adminServiceListProjectInvites = ( export const getAdminServiceListProjectInvitesQueryKey = ( organization: string, project: string, - params?: AdminServiceListProjectInvitesParams + params?: AdminServiceListProjectInvitesParams, ) => { return [ `/v1/organizations/${organization}/projects/${project}/invites`, @@ -1561,7 +1561,7 @@ export const getAdminServiceListProjectInvitesQueryKey = ( export const getAdminServiceListProjectInvitesQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -1572,7 +1572,7 @@ export const getAdminServiceListProjectInvitesQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -1607,7 +1607,7 @@ export type AdminServiceListProjectInvitesQueryError = RpcStatus; */ export const createAdminServiceListProjectInvites = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -1618,13 +1618,13 @@ export const createAdminServiceListProjectInvites = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListProjectInvitesQueryOptions( organization, project, params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -1644,7 +1644,7 @@ export const adminServiceListProjectMembers = ( organization: string, project: string, params?: AdminServiceListProjectMembersParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/members`, @@ -1657,7 +1657,7 @@ export const adminServiceListProjectMembers = ( export const getAdminServiceListProjectMembersQueryKey = ( organization: string, project: string, - params?: AdminServiceListProjectMembersParams + params?: AdminServiceListProjectMembersParams, ) => { return [ `/v1/organizations/${organization}/projects/${project}/members`, @@ -1667,7 +1667,7 @@ export const getAdminServiceListProjectMembersQueryKey = ( export const getAdminServiceListProjectMembersQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -1678,7 +1678,7 @@ export const getAdminServiceListProjectMembersQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -1713,7 +1713,7 @@ export type AdminServiceListProjectMembersQueryError = RpcStatus; */ export const createAdminServiceListProjectMembers = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -1724,13 +1724,13 @@ export const createAdminServiceListProjectMembers = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListProjectMembersQueryOptions( organization, project, params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -1749,7 +1749,7 @@ export const createAdminServiceListProjectMembers = < export const adminServiceAddProjectMember = ( organization: string, project: string, - adminServiceAddOrganizationMemberBodyBody: AdminServiceAddOrganizationMemberBodyBody + adminServiceAddOrganizationMemberBodyBody: AdminServiceAddOrganizationMemberBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/members`, @@ -1761,7 +1761,7 @@ export const adminServiceAddProjectMember = ( export const getAdminServiceAddProjectMemberMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1813,7 +1813,7 @@ export type AdminServiceAddProjectMemberMutationError = RpcStatus; */ export const createAdminServiceAddProjectMember = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1837,7 +1837,7 @@ export const createAdminServiceAddProjectMember = < export const adminServiceRemoveProjectMember = ( organization: string, project: string, - email: string + email: string, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/members/${email}`, @@ -1847,7 +1847,7 @@ export const adminServiceRemoveProjectMember = ( export const getAdminServiceRemoveProjectMemberMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1886,7 +1886,7 @@ export type AdminServiceRemoveProjectMemberMutationError = RpcStatus; */ export const createAdminServiceRemoveProjectMember = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1907,7 +1907,7 @@ export const adminServiceSetProjectMemberRole = ( organization: string, project: string, email: string, - adminServiceSetOrganizationMemberRoleBodyBody: AdminServiceSetOrganizationMemberRoleBodyBody + adminServiceSetOrganizationMemberRoleBodyBody: AdminServiceSetOrganizationMemberRoleBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/members/${email}`, @@ -1919,7 +1919,7 @@ export const adminServiceSetProjectMemberRole = ( export const getAdminServiceSetProjectMemberRoleMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1974,7 +1974,7 @@ export type AdminServiceSetProjectMemberRoleMutationError = RpcStatus; */ export const createAdminServiceSetProjectMemberRole = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -1999,7 +1999,7 @@ export const createAdminServiceSetProjectMemberRole = < export const adminServiceCreateReport = ( organization: string, project: string, - adminServiceCreateReportBodyBody: AdminServiceCreateReportBodyBody + adminServiceCreateReportBodyBody: AdminServiceCreateReportBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/reports`, @@ -2011,7 +2011,7 @@ export const adminServiceCreateReport = ( export const getAdminServiceCreateReportMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2063,7 +2063,7 @@ export type AdminServiceCreateReportMutationError = RpcStatus; */ export const createAdminServiceCreateReport = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2086,7 +2086,7 @@ export const createAdminServiceCreateReport = < export const adminServiceGenerateReportYAML = ( organization: string, project: string, - adminServiceCreateReportBodyBody: AdminServiceCreateReportBodyBody + adminServiceCreateReportBodyBody: AdminServiceCreateReportBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/reports/-/yaml`, @@ -2099,7 +2099,7 @@ export const adminServiceGenerateReportYAML = ( export const getAdminServiceGenerateReportYAMLQueryKey = ( organization: string, project: string, - adminServiceCreateReportBodyBody: AdminServiceCreateReportBodyBody + adminServiceCreateReportBodyBody: AdminServiceCreateReportBodyBody, ) => { return [ `/v1/organizations/${organization}/projects/${project}/reports/-/yaml`, @@ -2109,7 +2109,7 @@ export const getAdminServiceGenerateReportYAMLQueryKey = ( export const getAdminServiceGenerateReportYAMLQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -2120,7 +2120,7 @@ export const getAdminServiceGenerateReportYAMLQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -2129,7 +2129,7 @@ export const getAdminServiceGenerateReportYAMLQueryOptions = < getAdminServiceGenerateReportYAMLQueryKey( organization, project, - adminServiceCreateReportBodyBody + adminServiceCreateReportBodyBody, ); const queryFn: QueryFunction< @@ -2138,7 +2138,7 @@ export const getAdminServiceGenerateReportYAMLQueryOptions = < adminServiceGenerateReportYAML( organization, project, - adminServiceCreateReportBodyBody + adminServiceCreateReportBodyBody, ); return { @@ -2163,7 +2163,7 @@ export type AdminServiceGenerateReportYAMLQueryError = RpcStatus; */ export const createAdminServiceGenerateReportYAML = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -2174,13 +2174,13 @@ export const createAdminServiceGenerateReportYAML = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGenerateReportYAMLQueryOptions( organization, project, adminServiceCreateReportBodyBody, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -2199,7 +2199,7 @@ export const createAdminServiceGenerateReportYAML = < export const adminServiceDeleteReport = ( organization: string, project: string, - name: string + name: string, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/reports/${name}`, @@ -2209,7 +2209,7 @@ export const adminServiceDeleteReport = ( export const getAdminServiceDeleteReportMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2248,7 +2248,7 @@ export type AdminServiceDeleteReportMutationError = RpcStatus; */ export const createAdminServiceDeleteReport = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2268,7 +2268,7 @@ export const adminServiceEditReport = ( organization: string, project: string, name: string, - adminServiceCreateReportBodyBody: AdminServiceCreateReportBodyBody + adminServiceCreateReportBodyBody: AdminServiceCreateReportBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/reports/${name}`, @@ -2280,7 +2280,7 @@ export const adminServiceEditReport = ( export const getAdminServiceEditReportMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2335,7 +2335,7 @@ export type AdminServiceEditReportMutationError = RpcStatus; */ export const createAdminServiceEditReport = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2360,7 +2360,7 @@ export const adminServiceTriggerReport = ( organization: string, project: string, name: string, - adminServiceTriggerReconcileBodyBody: AdminServiceTriggerReconcileBodyBody + adminServiceTriggerReconcileBodyBody: AdminServiceTriggerReconcileBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/reports/${name}/trigger`, @@ -2372,7 +2372,7 @@ export const adminServiceTriggerReport = ( export const getAdminServiceTriggerReportMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2427,7 +2427,7 @@ export type AdminServiceTriggerReportMutationError = RpcStatus; */ export const createAdminServiceTriggerReport = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2452,7 +2452,7 @@ export const adminServiceUnsubscribeReport = ( organization: string, project: string, name: string, - adminServiceTriggerReconcileBodyBody: AdminServiceTriggerReconcileBodyBody + adminServiceTriggerReconcileBodyBody: AdminServiceTriggerReconcileBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/reports/${name}/unsubscribe`, @@ -2464,7 +2464,7 @@ export const adminServiceUnsubscribeReport = ( export const getAdminServiceUnsubscribeReportMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2519,7 +2519,7 @@ export type AdminServiceUnsubscribeReportMutationError = RpcStatus; */ export const createAdminServiceUnsubscribeReport = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2545,7 +2545,7 @@ export const adminServiceSearchProjectUsers = ( organization: string, project: string, params?: AdminServiceSearchProjectUsersParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organization}/projects/${project}/users/search`, @@ -2558,7 +2558,7 @@ export const adminServiceSearchProjectUsers = ( export const getAdminServiceSearchProjectUsersQueryKey = ( organization: string, project: string, - params?: AdminServiceSearchProjectUsersParams + params?: AdminServiceSearchProjectUsersParams, ) => { return [ `/v1/organizations/${organization}/projects/${project}/users/search`, @@ -2568,7 +2568,7 @@ export const getAdminServiceSearchProjectUsersQueryKey = ( export const getAdminServiceSearchProjectUsersQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -2579,7 +2579,7 @@ export const getAdminServiceSearchProjectUsersQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -2614,7 +2614,7 @@ export type AdminServiceSearchProjectUsersQueryError = RpcStatus; */ export const createAdminServiceSearchProjectUsers = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, project: string, @@ -2625,13 +2625,13 @@ export const createAdminServiceSearchProjectUsers = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceSearchProjectUsersQueryOptions( organization, project, params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -2649,7 +2649,7 @@ export const createAdminServiceSearchProjectUsers = < */ export const adminServiceListWhitelistedDomains = ( organization: string, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organization}/whitelisted`, @@ -2659,14 +2659,14 @@ export const adminServiceListWhitelistedDomains = ( }; export const getAdminServiceListWhitelistedDomainsQueryKey = ( - organization: string + organization: string, ) => { return [`/v1/organizations/${organization}/whitelisted`] as const; }; export const getAdminServiceListWhitelistedDomainsQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, options?: { @@ -2675,7 +2675,7 @@ export const getAdminServiceListWhitelistedDomainsQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -2709,7 +2709,7 @@ export type AdminServiceListWhitelistedDomainsQueryError = RpcStatus; */ export const createAdminServiceListWhitelistedDomains = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organization: string, options?: { @@ -2718,11 +2718,11 @@ export const createAdminServiceListWhitelistedDomains = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListWhitelistedDomainsQueryOptions( organization, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -2740,7 +2740,7 @@ export const createAdminServiceListWhitelistedDomains = < */ export const adminServiceCreateWhitelistedDomain = ( organization: string, - adminServiceCreateWhitelistedDomainBody: AdminServiceCreateWhitelistedDomainBody + adminServiceCreateWhitelistedDomainBody: AdminServiceCreateWhitelistedDomainBody, ) => { return httpClient({ url: `/v1/organizations/${organization}/whitelisted`, @@ -2752,7 +2752,7 @@ export const adminServiceCreateWhitelistedDomain = ( export const getAdminServiceCreateWhitelistedDomainMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2792,7 +2792,7 @@ export type AdminServiceCreateWhitelistedDomainMutationError = RpcStatus; */ export const createAdminServiceCreateWhitelistedDomain = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2811,7 +2811,7 @@ export const createAdminServiceCreateWhitelistedDomain = < */ export const adminServiceRemoveWhitelistedDomain = ( organization: string, - domain: string + domain: string, ) => { return httpClient({ url: `/v1/organizations/${organization}/whitelisted/${domain}`, @@ -2821,7 +2821,7 @@ export const adminServiceRemoveWhitelistedDomain = ( export const getAdminServiceRemoveWhitelistedDomainMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2860,7 +2860,7 @@ export type AdminServiceRemoveWhitelistedDomainMutationError = RpcStatus; */ export const createAdminServiceRemoveWhitelistedDomain = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -2880,7 +2880,7 @@ export const createAdminServiceRemoveWhitelistedDomain = < export const adminServiceListProjectsForOrganization = ( organizationName: string, params?: AdminServiceListProjectsForOrganizationParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/projects`, @@ -2892,7 +2892,7 @@ export const adminServiceListProjectsForOrganization = ( export const getAdminServiceListProjectsForOrganizationQueryKey = ( organizationName: string, - params?: AdminServiceListProjectsForOrganizationParams + params?: AdminServiceListProjectsForOrganizationParams, ) => { return [ `/v1/organizations/${organizationName}/projects`, @@ -2902,7 +2902,7 @@ export const getAdminServiceListProjectsForOrganizationQueryKey = ( export const getAdminServiceListProjectsForOrganizationQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, params?: AdminServiceListProjectsForOrganizationParams, @@ -2912,7 +2912,7 @@ export const getAdminServiceListProjectsForOrganizationQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -2920,7 +2920,7 @@ export const getAdminServiceListProjectsForOrganizationQueryOptions = < queryOptions?.queryKey ?? getAdminServiceListProjectsForOrganizationQueryKey( organizationName, - params + params, ); const queryFn: QueryFunction< @@ -2950,7 +2950,7 @@ export type AdminServiceListProjectsForOrganizationQueryError = RpcStatus; */ export const createAdminServiceListProjectsForOrganization = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, params?: AdminServiceListProjectsForOrganizationParams, @@ -2960,12 +2960,12 @@ export const createAdminServiceListProjectsForOrganization = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListProjectsForOrganizationQueryOptions( organizationName, params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -2983,7 +2983,7 @@ export const createAdminServiceListProjectsForOrganization = < */ export const adminServiceCreateProject = ( organizationName: string, - adminServiceCreateProjectBody: AdminServiceCreateProjectBody + adminServiceCreateProjectBody: AdminServiceCreateProjectBody, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/projects`, @@ -2995,7 +2995,7 @@ export const adminServiceCreateProject = ( export const getAdminServiceCreateProjectMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3035,7 +3035,7 @@ export type AdminServiceCreateProjectMutationError = RpcStatus; */ export const createAdminServiceCreateProject = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3054,7 +3054,7 @@ export const createAdminServiceCreateProject = < export const adminServiceGetProject = ( organizationName: string, name: string, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/projects/${name}`, @@ -3065,14 +3065,14 @@ export const adminServiceGetProject = ( export const getAdminServiceGetProjectQueryKey = ( organizationName: string, - name: string + name: string, ) => { return [`/v1/organizations/${organizationName}/projects/${name}`] as const; }; export const getAdminServiceGetProjectQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, name: string, @@ -3082,7 +3082,7 @@ export const getAdminServiceGetProjectQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -3116,7 +3116,7 @@ export type AdminServiceGetProjectQueryError = RpcStatus; */ export const createAdminServiceGetProject = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, name: string, @@ -3126,12 +3126,12 @@ export const createAdminServiceGetProject = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetProjectQueryOptions( organizationName, name, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -3149,7 +3149,7 @@ export const createAdminServiceGetProject = < */ export const adminServiceDeleteProject = ( organizationName: string, - name: string + name: string, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/projects/${name}`, @@ -3159,7 +3159,7 @@ export const adminServiceDeleteProject = ( export const getAdminServiceDeleteProjectMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3198,7 +3198,7 @@ export type AdminServiceDeleteProjectMutationError = RpcStatus; */ export const createAdminServiceDeleteProject = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3217,7 +3217,7 @@ export const createAdminServiceDeleteProject = < export const adminServiceUpdateProject = ( organizationName: string, name: string, - adminServiceUpdateProjectBody: AdminServiceUpdateProjectBody + adminServiceUpdateProjectBody: AdminServiceUpdateProjectBody, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/projects/${name}`, @@ -3229,7 +3229,7 @@ export const adminServiceUpdateProject = ( export const getAdminServiceUpdateProjectMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3281,7 +3281,7 @@ export type AdminServiceUpdateProjectMutationError = RpcStatus; */ export const createAdminServiceUpdateProject = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3304,7 +3304,7 @@ export const createAdminServiceUpdateProject = < export const adminServiceGetProjectVariables = ( organizationName: string, name: string, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/projects/${name}/variables`, @@ -3315,7 +3315,7 @@ export const adminServiceGetProjectVariables = ( export const getAdminServiceGetProjectVariablesQueryKey = ( organizationName: string, - name: string + name: string, ) => { return [ `/v1/organizations/${organizationName}/projects/${name}/variables`, @@ -3324,7 +3324,7 @@ export const getAdminServiceGetProjectVariablesQueryKey = ( export const getAdminServiceGetProjectVariablesQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, name: string, @@ -3334,7 +3334,7 @@ export const getAdminServiceGetProjectVariablesQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -3369,7 +3369,7 @@ export type AdminServiceGetProjectVariablesQueryError = RpcStatus; */ export const createAdminServiceGetProjectVariables = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, name: string, @@ -3379,12 +3379,12 @@ export const createAdminServiceGetProjectVariables = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetProjectVariablesQueryOptions( organizationName, name, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -3403,7 +3403,7 @@ export const createAdminServiceGetProjectVariables = < export const adminServiceUpdateProjectVariables = ( organizationName: string, name: string, - adminServiceUpdateProjectVariablesBody: AdminServiceUpdateProjectVariablesBody + adminServiceUpdateProjectVariablesBody: AdminServiceUpdateProjectVariablesBody, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/projects/${name}/variables`, @@ -3415,7 +3415,7 @@ export const adminServiceUpdateProjectVariables = ( export const getAdminServiceUpdateProjectVariablesMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3467,7 +3467,7 @@ export type AdminServiceUpdateProjectVariablesMutationError = RpcStatus; */ export const createAdminServiceUpdateProjectVariables = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3490,7 +3490,7 @@ export const createAdminServiceUpdateProjectVariables = < */ export const adminServiceListServices = ( organizationName: string, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/services`, @@ -3500,14 +3500,14 @@ export const adminServiceListServices = ( }; export const getAdminServiceListServicesQueryKey = ( - organizationName: string + organizationName: string, ) => { return [`/v1/organizations/${organizationName}/services`] as const; }; export const getAdminServiceListServicesQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, options?: { @@ -3516,7 +3516,7 @@ export const getAdminServiceListServicesQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -3550,7 +3550,7 @@ export type AdminServiceListServicesQueryError = RpcStatus; */ export const createAdminServiceListServices = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, options?: { @@ -3559,11 +3559,11 @@ export const createAdminServiceListServices = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListServicesQueryOptions( organizationName, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -3581,7 +3581,7 @@ export const createAdminServiceListServices = < */ export const adminServiceCreateService = ( organizationName: string, - params?: AdminServiceCreateServiceParams + params?: AdminServiceCreateServiceParams, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/services`, @@ -3592,7 +3592,7 @@ export const adminServiceCreateService = ( export const getAdminServiceCreateServiceMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3631,7 +3631,7 @@ export type AdminServiceCreateServiceMutationError = RpcStatus; */ export const createAdminServiceCreateService = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3649,7 +3649,7 @@ export const createAdminServiceCreateService = < */ export const adminServiceDeleteService = ( organizationName: string, - name: string + name: string, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/services/${name}`, @@ -3659,7 +3659,7 @@ export const adminServiceDeleteService = ( export const getAdminServiceDeleteServiceMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3698,7 +3698,7 @@ export type AdminServiceDeleteServiceMutationError = RpcStatus; */ export const createAdminServiceDeleteService = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3717,7 +3717,7 @@ export const createAdminServiceDeleteService = < export const adminServiceUpdateService = ( organizationName: string, name: string, - adminServiceUpdateServiceBody: AdminServiceUpdateServiceBody + adminServiceUpdateServiceBody: AdminServiceUpdateServiceBody, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/services/${name}`, @@ -3729,7 +3729,7 @@ export const adminServiceUpdateService = ( export const getAdminServiceUpdateServiceMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3781,7 +3781,7 @@ export type AdminServiceUpdateServiceMutationError = RpcStatus; */ export const createAdminServiceUpdateService = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3804,7 +3804,7 @@ export const createAdminServiceUpdateService = < export const adminServiceListServiceAuthTokens = ( organizationName: string, serviceName: string, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/services/${serviceName}/tokens`, @@ -3815,7 +3815,7 @@ export const adminServiceListServiceAuthTokens = ( export const getAdminServiceListServiceAuthTokensQueryKey = ( organizationName: string, - serviceName: string + serviceName: string, ) => { return [ `/v1/organizations/${organizationName}/services/${serviceName}/tokens`, @@ -3824,7 +3824,7 @@ export const getAdminServiceListServiceAuthTokensQueryKey = ( export const getAdminServiceListServiceAuthTokensQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, serviceName: string, @@ -3834,7 +3834,7 @@ export const getAdminServiceListServiceAuthTokensQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -3869,7 +3869,7 @@ export type AdminServiceListServiceAuthTokensQueryError = RpcStatus; */ export const createAdminServiceListServiceAuthTokens = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( organizationName: string, serviceName: string, @@ -3879,12 +3879,12 @@ export const createAdminServiceListServiceAuthTokens = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListServiceAuthTokensQueryOptions( organizationName, serviceName, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -3903,7 +3903,7 @@ export const createAdminServiceListServiceAuthTokens = < export const adminServiceIssueServiceAuthToken = ( organizationName: string, serviceName: string, - adminServiceTriggerReconcileBodyBody: AdminServiceTriggerReconcileBodyBody + adminServiceTriggerReconcileBodyBody: AdminServiceTriggerReconcileBodyBody, ) => { return httpClient({ url: `/v1/organizations/${organizationName}/services/${serviceName}/tokens`, @@ -3915,7 +3915,7 @@ export const adminServiceIssueServiceAuthToken = ( export const getAdminServiceIssueServiceAuthTokenMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -3952,7 +3952,7 @@ export const getAdminServiceIssueServiceAuthTokenMutationOptions = < return adminServiceIssueServiceAuthToken( organizationName, serviceName, - data + data, ); }; @@ -3971,7 +3971,7 @@ export type AdminServiceIssueServiceAuthTokenMutationError = RpcStatus; */ export const createAdminServiceIssueServiceAuthToken = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4002,7 +4002,7 @@ export const getAdminServicePingQueryKey = () => { export const getAdminServicePingQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >(options?: { query?: CreateQueryOptions< Awaited>, @@ -4035,7 +4035,7 @@ export type AdminServicePingQueryError = RpcStatus; */ export const createAdminServicePing = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >(options?: { query?: CreateQueryOptions< Awaited>, @@ -4059,7 +4059,7 @@ export const createAdminServicePing = < * @summary TriggerRedeploy creates a new deployment and teardown the old deployment for production deployment */ export const adminServiceTriggerRedeploy = ( - v1TriggerRedeployRequest: V1TriggerRedeployRequest + v1TriggerRedeployRequest: V1TriggerRedeployRequest, ) => { return httpClient({ url: `/v1/projects/-/redeploy`, @@ -4071,7 +4071,7 @@ export const adminServiceTriggerRedeploy = ( export const getAdminServiceTriggerRedeployMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4110,7 +4110,7 @@ export type AdminServiceTriggerRedeployMutationError = RpcStatus; */ export const createAdminServiceTriggerRedeploy = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4130,7 +4130,7 @@ export const createAdminServiceTriggerRedeploy = < export const adminServiceGetRepoMeta = ( projectId: string, params?: AdminServiceGetRepoMetaParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/projects/${projectId}/repo/meta`, @@ -4142,7 +4142,7 @@ export const adminServiceGetRepoMeta = ( export const getAdminServiceGetRepoMetaQueryKey = ( projectId: string, - params?: AdminServiceGetRepoMetaParams + params?: AdminServiceGetRepoMetaParams, ) => { return [ `/v1/projects/${projectId}/repo/meta`, @@ -4152,7 +4152,7 @@ export const getAdminServiceGetRepoMetaQueryKey = ( export const getAdminServiceGetRepoMetaQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( projectId: string, params?: AdminServiceGetRepoMetaParams, @@ -4162,7 +4162,7 @@ export const getAdminServiceGetRepoMetaQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -4196,7 +4196,7 @@ export type AdminServiceGetRepoMetaQueryError = RpcStatus; */ export const createAdminServiceGetRepoMeta = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( projectId: string, params?: AdminServiceGetRepoMetaParams, @@ -4206,12 +4206,12 @@ export const createAdminServiceGetRepoMeta = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetRepoMetaQueryOptions( projectId, params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -4230,7 +4230,7 @@ export const createAdminServiceGetRepoMeta = < export const adminServicePullVirtualRepo = ( projectId: string, params?: AdminServicePullVirtualRepoParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/projects/${projectId}/repo/virtual`, @@ -4242,7 +4242,7 @@ export const adminServicePullVirtualRepo = ( export const getAdminServicePullVirtualRepoQueryKey = ( projectId: string, - params?: AdminServicePullVirtualRepoParams + params?: AdminServicePullVirtualRepoParams, ) => { return [ `/v1/projects/${projectId}/repo/virtual`, @@ -4252,7 +4252,7 @@ export const getAdminServicePullVirtualRepoQueryKey = ( export const getAdminServicePullVirtualRepoQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( projectId: string, params?: AdminServicePullVirtualRepoParams, @@ -4262,7 +4262,7 @@ export const getAdminServicePullVirtualRepoQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -4296,7 +4296,7 @@ export type AdminServicePullVirtualRepoQueryError = RpcStatus; */ export const createAdminServicePullVirtualRepo = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( projectId: string, params?: AdminServicePullVirtualRepoParams, @@ -4306,12 +4306,12 @@ export const createAdminServicePullVirtualRepo = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServicePullVirtualRepoQueryOptions( projectId, params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -4330,7 +4330,7 @@ export const createAdminServicePullVirtualRepo = < export const adminServiceGetReportMeta = ( projectId: string, params?: AdminServiceGetReportMetaParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/projects/${projectId}/reports/meta`, @@ -4342,7 +4342,7 @@ export const adminServiceGetReportMeta = ( export const getAdminServiceGetReportMetaQueryKey = ( projectId: string, - params?: AdminServiceGetReportMetaParams + params?: AdminServiceGetReportMetaParams, ) => { return [ `/v1/projects/${projectId}/reports/meta`, @@ -4352,7 +4352,7 @@ export const getAdminServiceGetReportMetaQueryKey = ( export const getAdminServiceGetReportMetaQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( projectId: string, params?: AdminServiceGetReportMetaParams, @@ -4362,7 +4362,7 @@ export const getAdminServiceGetReportMetaQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -4396,7 +4396,7 @@ export type AdminServiceGetReportMetaQueryError = RpcStatus; */ export const createAdminServiceGetReportMeta = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( projectId: string, params?: AdminServiceGetReportMetaParams, @@ -4406,12 +4406,12 @@ export const createAdminServiceGetReportMeta = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetReportMetaQueryOptions( projectId, params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -4436,7 +4436,7 @@ export const adminServiceRevokeServiceAuthToken = (tokenId: string) => { export const getAdminServiceRevokeServiceAuthTokenMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4475,7 +4475,7 @@ export type AdminServiceRevokeServiceAuthTokenMutationError = RpcStatus; */ export const createAdminServiceRevokeServiceAuthToken = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4506,7 +4506,7 @@ export const getAdminServiceListSuperusersQueryKey = () => { export const getAdminServiceListSuperusersQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >(options?: { query?: CreateQueryOptions< Awaited>, @@ -4540,7 +4540,7 @@ export type AdminServiceListSuperusersQueryError = RpcStatus; */ export const createAdminServiceListSuperusers = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >(options?: { query?: CreateQueryOptions< Awaited>, @@ -4564,7 +4564,7 @@ export const createAdminServiceListSuperusers = < * @summary SetSuperuser adds/remove a superuser */ export const adminServiceSetSuperuser = ( - v1SetSuperuserRequest: V1SetSuperuserRequest + v1SetSuperuserRequest: V1SetSuperuserRequest, ) => { return httpClient({ url: `/v1/superuser/members`, @@ -4576,7 +4576,7 @@ export const adminServiceSetSuperuser = ( export const getAdminServiceSetSuperuserMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4615,7 +4615,7 @@ export type AdminServiceSetSuperuserMutationError = RpcStatus; */ export const createAdminServiceSetSuperuser = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4633,7 +4633,7 @@ export const createAdminServiceSetSuperuser = < */ export const adminServiceSearchProjectNames = ( params?: AdminServiceSearchProjectNamesParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/superuser/projects/search`, @@ -4644,7 +4644,7 @@ export const adminServiceSearchProjectNames = ( }; export const getAdminServiceSearchProjectNamesQueryKey = ( - params?: AdminServiceSearchProjectNamesParams + params?: AdminServiceSearchProjectNamesParams, ) => { return [ `/v1/superuser/projects/search`, @@ -4654,7 +4654,7 @@ export const getAdminServiceSearchProjectNamesQueryKey = ( export const getAdminServiceSearchProjectNamesQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceSearchProjectNamesParams, options?: { @@ -4663,7 +4663,7 @@ export const getAdminServiceSearchProjectNamesQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -4691,7 +4691,7 @@ export type AdminServiceSearchProjectNamesQueryError = RpcStatus; */ export const createAdminServiceSearchProjectNames = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceSearchProjectNamesParams, options?: { @@ -4700,11 +4700,11 @@ export const createAdminServiceSearchProjectNames = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceSearchProjectNamesQueryOptions( params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -4721,7 +4721,7 @@ export const createAdminServiceSearchProjectNames = < * @summary SudoUpdateOrganizationQuotas update the quotas available for orgs */ export const adminServiceSudoUpdateOrganizationQuotas = ( - v1SudoUpdateOrganizationQuotasRequest: V1SudoUpdateOrganizationQuotasRequest + v1SudoUpdateOrganizationQuotasRequest: V1SudoUpdateOrganizationQuotasRequest, ) => { return httpClient({ url: `/v1/superuser/quotas/organization`, @@ -4733,7 +4733,7 @@ export const adminServiceSudoUpdateOrganizationQuotas = ( export const getAdminServiceSudoUpdateOrganizationQuotasMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4774,7 +4774,7 @@ export type AdminServiceSudoUpdateOrganizationQuotasMutationError = RpcStatus; */ export const createAdminServiceSudoUpdateOrganizationQuotas = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4792,7 +4792,7 @@ export const createAdminServiceSudoUpdateOrganizationQuotas = < * @summary SudoUpdateUserQuotas update the quotas for users */ export const adminServiceSudoUpdateUserQuotas = ( - v1SudoUpdateUserQuotasRequest: V1SudoUpdateUserQuotasRequest + v1SudoUpdateUserQuotasRequest: V1SudoUpdateUserQuotasRequest, ) => { return httpClient({ url: `/v1/superuser/quotas/user`, @@ -4804,7 +4804,7 @@ export const adminServiceSudoUpdateUserQuotas = ( export const getAdminServiceSudoUpdateUserQuotasMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4844,7 +4844,7 @@ export type AdminServiceSudoUpdateUserQuotasMutationError = RpcStatus; */ export const createAdminServiceSudoUpdateUserQuotas = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4863,7 +4863,7 @@ export const createAdminServiceSudoUpdateUserQuotas = < */ export const adminServiceSudoGetResource = ( params?: AdminServiceSudoGetResourceParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/superuser/resource`, @@ -4874,14 +4874,14 @@ export const adminServiceSudoGetResource = ( }; export const getAdminServiceSudoGetResourceQueryKey = ( - params?: AdminServiceSudoGetResourceParams + params?: AdminServiceSudoGetResourceParams, ) => { return [`/v1/superuser/resource`, ...(params ? [params] : [])] as const; }; export const getAdminServiceSudoGetResourceQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceSudoGetResourceParams, options?: { @@ -4890,7 +4890,7 @@ export const getAdminServiceSudoGetResourceQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -4918,7 +4918,7 @@ export type AdminServiceSudoGetResourceQueryError = RpcStatus; */ export const createAdminServiceSudoGetResource = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceSudoGetResourceParams, options?: { @@ -4927,11 +4927,11 @@ export const createAdminServiceSudoGetResource = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceSudoGetResourceQueryOptions( params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -4945,7 +4945,7 @@ export const createAdminServiceSudoGetResource = < }; export const adminServiceTelemetry = ( - v1TelemetryRequest: V1TelemetryRequest + v1TelemetryRequest: V1TelemetryRequest, ) => { return httpClient({ url: `/v1/telemetry`, @@ -4957,7 +4957,7 @@ export const adminServiceTelemetry = ( export const getAdminServiceTelemetryMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -4993,7 +4993,7 @@ export type AdminServiceTelemetryMutationError = RpcStatus; export const createAdminServiceTelemetry = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5019,7 +5019,7 @@ export const adminServiceRevokeCurrentAuthToken = () => { export const getAdminServiceRevokeCurrentAuthTokenMutationOptions = < TError = RpcStatus, TVariables = void, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5057,7 +5057,7 @@ export type AdminServiceRevokeCurrentAuthTokenMutationError = RpcStatus; export const createAdminServiceRevokeCurrentAuthToken = < TError = RpcStatus, TVariables = void, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5075,7 +5075,7 @@ export const createAdminServiceRevokeCurrentAuthToken = < * @summary IssueRepresentativeAuthToken returns the temporary token for given email */ export const adminServiceIssueRepresentativeAuthToken = ( - v1IssueRepresentativeAuthTokenRequest: V1IssueRepresentativeAuthTokenRequest + v1IssueRepresentativeAuthTokenRequest: V1IssueRepresentativeAuthTokenRequest, ) => { return httpClient({ url: `/v1/tokens/represent`, @@ -5087,7 +5087,7 @@ export const adminServiceIssueRepresentativeAuthToken = ( export const getAdminServiceIssueRepresentativeAuthTokenMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5128,7 +5128,7 @@ export type AdminServiceIssueRepresentativeAuthTokenMutationError = RpcStatus; */ export const createAdminServiceIssueRepresentativeAuthToken = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5147,7 +5147,7 @@ export const createAdminServiceIssueRepresentativeAuthToken = < */ export const adminServiceGetUser = ( params?: AdminServiceGetUserParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/users`, @@ -5158,14 +5158,14 @@ export const adminServiceGetUser = ( }; export const getAdminServiceGetUserQueryKey = ( - params?: AdminServiceGetUserParams + params?: AdminServiceGetUserParams, ) => { return [`/v1/users`, ...(params ? [params] : [])] as const; }; export const getAdminServiceGetUserQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceGetUserParams, options?: { @@ -5174,7 +5174,7 @@ export const getAdminServiceGetUserQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -5202,7 +5202,7 @@ export type AdminServiceGetUserQueryError = RpcStatus; */ export const createAdminServiceGetUser = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceGetUserParams, options?: { @@ -5211,7 +5211,7 @@ export const createAdminServiceGetUser = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetUserQueryOptions(params, options); @@ -5230,7 +5230,7 @@ export const createAdminServiceGetUser = < */ export const adminServiceListBookmarks = ( params?: AdminServiceListBookmarksParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/users/bookmarks`, @@ -5241,14 +5241,14 @@ export const adminServiceListBookmarks = ( }; export const getAdminServiceListBookmarksQueryKey = ( - params?: AdminServiceListBookmarksParams + params?: AdminServiceListBookmarksParams, ) => { return [`/v1/users/bookmarks`, ...(params ? [params] : [])] as const; }; export const getAdminServiceListBookmarksQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceListBookmarksParams, options?: { @@ -5257,7 +5257,7 @@ export const getAdminServiceListBookmarksQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -5285,7 +5285,7 @@ export type AdminServiceListBookmarksQueryError = RpcStatus; */ export const createAdminServiceListBookmarks = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceListBookmarksParams, options?: { @@ -5294,11 +5294,11 @@ export const createAdminServiceListBookmarks = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceListBookmarksQueryOptions( params, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -5315,7 +5315,7 @@ export const createAdminServiceListBookmarks = < * @summary CreateBookmark creates a bookmark for the given user for the given project */ export const adminServiceCreateBookmark = ( - v1CreateBookmarkRequest: V1CreateBookmarkRequest + v1CreateBookmarkRequest: V1CreateBookmarkRequest, ) => { return httpClient({ url: `/v1/users/bookmarks`, @@ -5327,7 +5327,7 @@ export const adminServiceCreateBookmark = ( export const getAdminServiceCreateBookmarkMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5366,7 +5366,7 @@ export type AdminServiceCreateBookmarkMutationError = RpcStatus; */ export const createAdminServiceCreateBookmark = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5384,7 +5384,7 @@ export const createAdminServiceCreateBookmark = < */ export const adminServiceGetBookmark = ( bookmarkId: string, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/users/bookmarks/${bookmarkId}`, @@ -5399,7 +5399,7 @@ export const getAdminServiceGetBookmarkQueryKey = (bookmarkId: string) => { export const getAdminServiceGetBookmarkQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( bookmarkId: string, options?: { @@ -5408,7 +5408,7 @@ export const getAdminServiceGetBookmarkQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -5441,7 +5441,7 @@ export type AdminServiceGetBookmarkQueryError = RpcStatus; */ export const createAdminServiceGetBookmark = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( bookmarkId: string, options?: { @@ -5450,11 +5450,11 @@ export const createAdminServiceGetBookmark = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceGetBookmarkQueryOptions( bookmarkId, - options + options, ); const query = createQuery(queryOptions) as CreateQueryResult< @@ -5479,7 +5479,7 @@ export const adminServiceRemoveBookmark = (bookmarkId: string) => { export const getAdminServiceRemoveBookmarkMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5518,7 +5518,7 @@ export type AdminServiceRemoveBookmarkMutationError = RpcStatus; */ export const createAdminServiceRemoveBookmark = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5548,7 +5548,7 @@ export const getAdminServiceGetCurrentUserQueryKey = () => { export const getAdminServiceGetCurrentUserQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >(options?: { query?: CreateQueryOptions< Awaited>, @@ -5582,7 +5582,7 @@ export type AdminServiceGetCurrentUserQueryError = RpcStatus; */ export const createAdminServiceGetCurrentUser = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >(options?: { query?: CreateQueryOptions< Awaited>, @@ -5606,7 +5606,7 @@ export const createAdminServiceGetCurrentUser = < * @summary UpdateUserPreferences updates the preferences for the user */ export const adminServiceUpdateUserPreferences = ( - v1UpdateUserPreferencesRequest: V1UpdateUserPreferencesRequest + v1UpdateUserPreferencesRequest: V1UpdateUserPreferencesRequest, ) => { return httpClient({ url: `/v1/users/preferences`, @@ -5618,7 +5618,7 @@ export const adminServiceUpdateUserPreferences = ( export const getAdminServiceUpdateUserPreferencesMutationOptions = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5658,7 +5658,7 @@ export type AdminServiceUpdateUserPreferencesMutationError = RpcStatus; */ export const createAdminServiceUpdateUserPreferences = < TError = RpcStatus, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, @@ -5677,7 +5677,7 @@ export const createAdminServiceUpdateUserPreferences = < */ export const adminServiceSearchUsers = ( params?: AdminServiceSearchUsersParams, - signal?: AbortSignal + signal?: AbortSignal, ) => { return httpClient({ url: `/v1/users/search`, @@ -5688,14 +5688,14 @@ export const adminServiceSearchUsers = ( }; export const getAdminServiceSearchUsersQueryKey = ( - params?: AdminServiceSearchUsersParams + params?: AdminServiceSearchUsersParams, ) => { return [`/v1/users/search`, ...(params ? [params] : [])] as const; }; export const getAdminServiceSearchUsersQueryOptions = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceSearchUsersParams, options?: { @@ -5704,7 +5704,7 @@ export const getAdminServiceSearchUsersQueryOptions = < TError, TData >; - } + }, ) => { const { query: queryOptions } = options ?? {}; @@ -5732,7 +5732,7 @@ export type AdminServiceSearchUsersQueryError = RpcStatus; */ export const createAdminServiceSearchUsers = < TData = Awaited>, - TError = RpcStatus + TError = RpcStatus, >( params?: AdminServiceSearchUsersParams, options?: { @@ -5741,7 +5741,7 @@ export const createAdminServiceSearchUsers = < TError, TData >; - } + }, ): CreateQueryResult & { queryKey: QueryKey } => { const queryOptions = getAdminServiceSearchUsersQueryOptions(params, options); diff --git a/web-admin/src/features/authentication/AvatarButton.svelte b/web-admin/src/features/authentication/AvatarButton.svelte index 0ba70b8d6a8..927ec304dd7 100644 --- a/web-admin/src/features/authentication/AvatarButton.svelte +++ b/web-admin/src/features/authentication/AvatarButton.svelte @@ -15,7 +15,7 @@ function handleAskForHelp() { window.open( "https://discord.com/invite/ngVV4KzEGv?utm_source=rill&utm_medium=rill-cloud-avatar-menu", - "_blank" + "_blank", ); } diff --git a/web-admin/src/features/dashboards/listing/selectors.ts b/web-admin/src/features/dashboards/listing/selectors.ts index 2fb7a8bcf1d..5e59df6e7ff 100644 --- a/web-admin/src/features/dashboards/listing/selectors.ts +++ b/web-admin/src/features/dashboards/listing/selectors.ts @@ -33,7 +33,7 @@ export interface DashboardListItem { // TODO: use the creator pattern to get rid of the raw call to http endpoint export async function getDashboardsForProject( - projectData: V1GetProjectResponse + projectData: V1GetProjectResponse, ): Promise { // There may not be a prodDeployment if the project was hibernated if (!projectData.prodDeployment) { @@ -43,7 +43,7 @@ export async function getDashboardsForProject( // Hack: in development, the runtime host is actually on port 8081 const runtimeHost = projectData.prodDeployment.runtimeHost.replace( "localhost:9091", - "localhost:8081" + "localhost:8081", ); const axios = Axios.create({ @@ -55,7 +55,7 @@ export async function getDashboardsForProject( // TODO: use resource API const catalogEntriesResponse = await axios.get( - `/v1/instances/${projectData.prodDeployment.runtimeInstanceId}/resources?kind=${ResourceKind.MetricsView}` + `/v1/instances/${projectData.prodDeployment.runtimeInstanceId}/resources?kind=${ResourceKind.MetricsView}`, ); const catalogEntries = catalogEntriesResponse.data?.resources as V1Resource[]; @@ -65,14 +65,14 @@ export async function getDashboardsForProject( export function useDashboards(instanceId: string) { return useFilteredResources(instanceId, ResourceKind.MetricsView, (data) => - data.resources.filter((res) => !!res.metricsView?.state?.validSpec) + data.resources.filter((res) => !!res.metricsView?.state?.validSpec), ); } export function useDashboardsLastUpdated( instanceId: string, organization: string, - project: string + project: string, ) { return derived( [ @@ -89,11 +89,11 @@ export function useDashboardsLastUpdated( const max = Math.max( ...dashboardsResp.data.map((res) => - new Date(res.meta.stateUpdatedOn).getTime() - ) + new Date(res.meta.stateUpdatedOn).getTime(), + ), ); return new Date(max); - } + }, ); } @@ -147,17 +147,17 @@ export function useDashboardsStatus(instanceId: string) { } }, }, - } + }, ); } export function listenAndInvalidateDashboards( queryClient: QueryClient, - instanceId: string + instanceId: string, ) { const store = derived( [useDashboardsStatus(instanceId), useDashboards(instanceId)], - (state) => state + (state) => state, ); const dashboards = new Map(); @@ -184,12 +184,12 @@ export function listenAndInvalidateDashboards( if (dashboards.has(dashboardResource.meta.name.name)) { // if the dashboard existed then check if it was updated since last seen const prevStateUpdatedOn = dashboards.get( - dashboardResource.meta.name.name + dashboardResource.meta.name.name, ); if (prevStateUpdatedOn.getTime() < stateUpdatedOn.getTime()) { // invalidate if it was updated refreshResource(queryClient, instanceId, dashboardResource).then(() => - invalidateMetricsViewData(queryClient, instanceId, false) + invalidateMetricsViewData(queryClient, instanceId, false), ); dashboardChanged = true; } @@ -211,7 +211,7 @@ export function listenAndInvalidateDashboards( if (dashboardChanged) { // Temporary to refresh useDashboardsV2 from below queryClient.resetQueries( - getRuntimeServiceListResourcesQueryKey(instanceId) + getRuntimeServiceListResourcesQueryKey(instanceId), ); } }); @@ -231,11 +231,11 @@ export interface DashboardResource { function getDashboardRefreshedOn( dashboard: V1Resource, - allResources: V1Resource[] + allResources: V1Resource[], ): string | undefined { const refName = dashboard.meta.refs[0]; const refTable = allResources.find( - (r) => r.meta?.name?.name === refName?.name + (r) => r.meta?.name?.name === refName?.name, ); return ( refTable?.model?.state.refreshedOn || refTable?.source?.state.refreshedOn @@ -244,7 +244,7 @@ function getDashboardRefreshedOn( // This iteration of `useDashboards` returns the above `DashboardResource` type, which includes `refreshedOn` export function useDashboardsV2( - instanceId: string + instanceId: string, ): CreateQueryResult { return createRuntimeServiceListResources(instanceId, undefined, { query: { @@ -262,14 +262,14 @@ export function useDashboardsV2( // This iteration of `useDashboard` returns the above `DashboardResource` type, which includes `refreshedOn` export function useDashboardV2( instanceId: string, - name: string + name: string, ): CreateQueryResult { return createRuntimeServiceListResources(instanceId, undefined, { query: { enabled: !!instanceId && !!name, select: (data) => { const dashboard = data.resources.find( - (res) => res.meta.name.name === name + (res) => res.meta.name.name === name, ); const refreshedOn = getDashboardRefreshedOn(dashboard, data.resources); return { resource: dashboard, refreshedOn }; diff --git a/web-admin/src/features/errors/error-utils.ts b/web-admin/src/features/errors/error-utils.ts index 9eb6a7850a2..b318cedb487 100644 --- a/web-admin/src/features/errors/error-utils.ts +++ b/web-admin/src/features/errors/error-utils.ts @@ -24,7 +24,7 @@ export function createGlobalErrorCallback(queryClient: QueryClient) { query.queryKey[0] as string, "", "unknown error", - screenName + screenName, ); return; } else { @@ -32,14 +32,14 @@ export function createGlobalErrorCallback(queryClient: QueryClient) { query.queryKey[0] as string, error.response?.status + "" ?? error.status, (error.response?.data as RpcStatus)?.message ?? error.message, - screenName + screenName, ); } // If unauthorized to the admin server, redirect to login page if (isAdminServerQuery(query) && error.response?.status === 401) { goto( - `${ADMIN_URL}/auth/login?redirect=${window.location.origin}${window.location.pathname}` + `${ADMIN_URL}/auth/login?redirect=${window.location.origin}${window.location.pathname}`, ); return; } @@ -88,7 +88,7 @@ export function createGlobalErrorCallback(queryClient: QueryClient) { } function createErrorStoreStateFromAxiosError( - error: AxiosError + error: AxiosError, ): ErrorStoreState { // Handle network errors if (error.message === "Network Error") { @@ -137,7 +137,7 @@ function createErrorStoreStateFromAxiosError( } export function createErrorPagePropsFromRoutingError( - statusCode: number + statusCode: number, ): ErrorStoreState { if (statusCode === 404) { return { @@ -160,7 +160,7 @@ export function addJavascriptErrorListeners() { errorEvent?.fireJavascriptErrorBoundaryEvent( errorEvt.error?.stack ?? "", errorEvt.message, - getScreenNameFromPage(get(page)) + getScreenNameFromPage(get(page)), ); }; const unhandledRejectionHandler = (rejectionEvent: PromiseRejectionEvent) => { @@ -177,7 +177,7 @@ export function addJavascriptErrorListeners() { errorEvent?.fireJavascriptErrorBoundaryEvent( stack, message, - getScreenNameFromPage(get(page)) + getScreenNameFromPage(get(page)), ); }; diff --git a/web-admin/src/features/navigation/Breadcrumbs.svelte b/web-admin/src/features/navigation/Breadcrumbs.svelte index 8c1516a88ae..95bd7f20ed5 100644 --- a/web-admin/src/features/navigation/Breadcrumbs.svelte +++ b/web-admin/src/features/navigation/Breadcrumbs.svelte @@ -48,7 +48,7 @@ query: { enabled: !!$organization.data?.organization, }, - } + }, ); $: onProjectPage = isProjectPage($page); @@ -56,7 +56,7 @@ $: dashboards = useDashboards(instanceId); let currentResource: V1Resource; $: currentResource = $dashboards?.data?.find( - (listing) => listing.meta.name.name === $page.params.dashboard + (listing) => listing.meta.name.name === $page.params.dashboard, ); $: currentDashboardName = currentResource?.meta?.name?.name; let currentDashboard: V1MetricsViewSpec; diff --git a/web-admin/src/features/projects/ProjectCard.svelte b/web-admin/src/features/projects/ProjectCard.svelte index a0b13f644c7..c0f601de7d8 100644 --- a/web-admin/src/features/projects/ProjectCard.svelte +++ b/web-admin/src/features/projects/ProjectCard.svelte @@ -28,7 +28,7 @@

listing.meta.name.name + (listing) => listing.meta.name.name, ); return invalidateDashboardsQueries(queryClient, dashboardNames); } diff --git a/web-admin/src/features/projects/ProjectGithubConnection.svelte b/web-admin/src/features/projects/ProjectGithubConnection.svelte index 31fc7e2fa69..909cdd998ad 100644 --- a/web-admin/src/features/projects/ProjectGithubConnection.svelte +++ b/web-admin/src/features/projects/ProjectGithubConnection.svelte @@ -20,7 +20,7 @@ $: githubLastSynced = useDashboardsLastUpdated( $runtime.instanceId, organization, - project + project, ); diff --git a/web-admin/src/features/projects/ProjectParseErrors.svelte b/web-admin/src/features/projects/ProjectParseErrors.svelte index fa7abc525b5..a4a0f188fcd 100644 --- a/web-admin/src/features/projects/ProjectParseErrors.svelte +++ b/web-admin/src/features/projects/ProjectParseErrors.svelte @@ -18,7 +18,7 @@ $: if ($proj.data?.prodDeployment?.runtimeInstanceId && hasReadAccess) errors = getProjectErrors( queryClient, - $proj.data?.prodDeployment?.runtimeInstanceId + $proj.data?.prodDeployment?.runtimeInstanceId, ); diff --git a/web-admin/src/features/projects/ProjectTabs.svelte b/web-admin/src/features/projects/ProjectTabs.svelte index 5362924ffb1..3c5dc975d4f 100644 --- a/web-admin/src/features/projects/ProjectTabs.svelte +++ b/web-admin/src/features/projects/ProjectTabs.svelte @@ -59,9 +59,9 @@ // We use DOM manipulation here because the library does not support controlled tabs // See: https://github.com/rgossiaux/svelte-headlessui/issues/80 const dashboardTab = Array.from( - document.querySelectorAll('button[role="tab"]') + document.querySelectorAll('button[role="tab"]'), ).find( - (el) => (el as HTMLElement).innerText === "Dashboards" + (el) => (el as HTMLElement).innerText === "Dashboards", ) as HTMLButtonElement; dashboardTab.click(); } diff --git a/web-admin/src/features/projects/download-report.ts b/web-admin/src/features/projects/download-report.ts index dd3281d0060..02f0175c962 100644 --- a/web-admin/src/features/projects/download-report.ts +++ b/web-admin/src/features/projects/download-report.ts @@ -19,7 +19,7 @@ export type DownloadReportRequest = { export function createDownloadReportMutation< TError = { response: { data: RpcStatus } }, - TContext = unknown + TContext = unknown, >(options?: { mutation?: CreateMutationOptions< Awaited>, diff --git a/web-admin/src/features/projects/getProjectErrors.ts b/web-admin/src/features/projects/getProjectErrors.ts index f6ed2fbab65..01046775f59 100644 --- a/web-admin/src/features/projects/getProjectErrors.ts +++ b/web-admin/src/features/projects/getProjectErrors.ts @@ -9,7 +9,7 @@ import { derived, Readable } from "svelte/store"; export function getProjectErrors( queryClient: QueryClient, - instanceId: string + instanceId: string, ): Readable> { return derived( [ @@ -23,13 +23,13 @@ export function getProjectErrors( resourcesResp.data?.resources ?.filter( (r) => - !!r.meta.reconcileError && MainResourceKinds[r.meta.name.kind] + !!r.meta.reconcileError && MainResourceKinds[r.meta.name.kind], ) .map((r) => ({ filePath: r.meta.filePaths[0], // TODO: handle multiple files mapping to same resource message: r.meta.reconcileError, })) ?? []; return [...projectParserErrors, ...resourceErrors]; - } + }, ); } diff --git a/web-admin/src/features/projects/invalidations.ts b/web-admin/src/features/projects/invalidations.ts index 2e332ddd4b0..a2b185562f3 100644 --- a/web-admin/src/features/projects/invalidations.ts +++ b/web-admin/src/features/projects/invalidations.ts @@ -3,20 +3,20 @@ import type { QueryClient } from "@tanstack/svelte-query"; export async function invalidateDashboardsQueries( queryClient: QueryClient, - dashboardNames: Array + dashboardNames: Array, ) { // TODO: do a greater refactor of invalidations and make this O(N) instead of O(NM) queryClient.removeQueries({ predicate: (query) => dashboardNames.some((dashboardName) => - invalidationForMetricsViewData(query, dashboardName) + invalidationForMetricsViewData(query, dashboardName), ), type: "inactive", }); return queryClient.invalidateQueries({ predicate: (query) => dashboardNames.some((dashboardName) => - invalidationForMetricsViewData(query, dashboardName) + invalidationForMetricsViewData(query, dashboardName), ), type: "active", }); diff --git a/web-admin/src/features/projects/selectors.ts b/web-admin/src/features/projects/selectors.ts index b4c5eeb336c..b661203e85f 100644 --- a/web-admin/src/features/projects/selectors.ts +++ b/web-admin/src/features/projects/selectors.ts @@ -67,7 +67,7 @@ export function useProjectRuntime(orgName: string, projName: string) { // Hack: in development, the runtime host is actually on port 8081 host: data.prodDeployment.runtimeHost.replace( "localhost:9091", - "localhost:8081" + "localhost:8081", ), instanceId: data.prodDeployment.runtimeInstanceId, jwt: data?.jwt, @@ -90,14 +90,14 @@ export function useProjectMembersEmails(organization: string, project: string) { .map((member) => member.userEmail as string); }, }, - } + }, ); } // This function returns the most recent refreshedOn date of all the project's resources. // In the future, we really should display the refreshedOn date for all resources individually. export function useProjectDataLastRefreshed( - instanceId: string + instanceId: string, ): CreateQueryResult { return createRuntimeServiceListResources(instanceId, undefined, { query: { diff --git a/web-admin/src/features/scheduled-reports/metadata/ReportMetadata.svelte b/web-admin/src/features/scheduled-reports/metadata/ReportMetadata.svelte index af0d0ac6aa7..2a4d1f3949d 100644 --- a/web-admin/src/features/scheduled-reports/metadata/ReportMetadata.svelte +++ b/web-admin/src/features/scheduled-reports/metadata/ReportMetadata.svelte @@ -30,7 +30,7 @@ $: reportQuery = useReport($runtime.instanceId, report); $: isReportCreatedByCode = useIsReportCreatedByCode( $runtime.instanceId, - report + report, ); // Get dashboard @@ -45,7 +45,7 @@ $reportQuery.data.resource.report.spec.refreshSchedule.cron, { verbose: true, - } + }, ); // Actions @@ -64,7 +64,7 @@ name: $reportQuery.data.resource.meta.name.name, }); queryClient.invalidateQueries( - getRuntimeServiceListResourcesQueryKey($runtime.instanceId) + getRuntimeServiceListResourcesQueryKey($runtime.instanceId), ); goto(`/${organization}/${project}/-/reports`); } @@ -92,7 +92,7 @@ {exportFormatToPrettyString( - $reportQuery.data.resource.report.spec.exportFormat + $reportQuery.data.resource.report.spec.exportFormat, )} • @@ -154,7 +154,7 @@ {formatNextRunOn( $reportQuery.data.resource.report.state.nextRunOn, - $reportQuery.data.resource.report.spec.refreshSchedule.timeZone + $reportQuery.data.resource.report.spec.refreshSchedule.timeZone, )} diff --git a/web-admin/src/features/scheduled-reports/metadata/RunNowButton.svelte b/web-admin/src/features/scheduled-reports/metadata/RunNowButton.svelte index 31ca01e0fec..03b694cf1b1 100644 --- a/web-admin/src/features/scheduled-reports/metadata/RunNowButton.svelte +++ b/web-admin/src/features/scheduled-reports/metadata/RunNowButton.svelte @@ -42,7 +42,7 @@ getRuntimeServiceGetResourceQueryKey($runtime.instanceId, { "name.name": report, "name.kind": ResourceKind.Report, - }) + }), ); await new Promise((resolve) => setTimeout(resolve, 1000)); } diff --git a/web-admin/src/features/scheduled-reports/selectors.ts b/web-admin/src/features/scheduled-reports/selectors.ts index 13994eee5de..d436d0f7120 100644 --- a/web-admin/src/features/scheduled-reports/selectors.ts +++ b/web-admin/src/features/scheduled-reports/selectors.ts @@ -29,7 +29,7 @@ export function useReportDashboardName(instanceId: string, name: string) { query: { select: (data) => { const queryArgsJson = JSON.parse( - data.resource.report.spec.queryArgsJson + data.resource.report.spec.queryArgsJson, ); return ( @@ -39,14 +39,14 @@ export function useReportDashboardName(instanceId: string, name: string) { ); }, }, - } + }, ); } export function useReportOwnerName( organization: string, project: string, - ownerId: string + ownerId: string, ) { return createAdminServiceSearchProjectUsers( organization, @@ -60,7 +60,7 @@ export function useReportOwnerName( query: { select: (data) => data.users.find((u) => u.id === ownerId)?.displayName, }, - } + }, ); } @@ -76,6 +76,6 @@ export function useIsReportCreatedByCode(instanceId: string, name: string) { select: (data) => !data.resource.report.spec.annotations["admin_owner_user_id"], }, - } + }, ); } diff --git a/web-admin/src/features/telemetry/initCloudMetrics.ts b/web-admin/src/features/telemetry/initCloudMetrics.ts index f9a2451e3b4..dbe79bce7f1 100644 --- a/web-admin/src/features/telemetry/initCloudMetrics.ts +++ b/web-admin/src/features/telemetry/initCloudMetrics.ts @@ -17,7 +17,7 @@ export async function initCloudMetrics() { new ProductHealthEventFactory(), new BehaviourEventFactory(), new ErrorEventFactory(), - ]) + ]), ); const commonUserMetrics = await collectCommonUserFields(); diff --git a/web-admin/src/features/view-as-user/ViewAsUserPopover.svelte b/web-admin/src/features/view-as-user/ViewAsUserPopover.svelte index ed24b78463e..fca7ad2a53b 100644 --- a/web-admin/src/features/view-as-user/ViewAsUserPopover.svelte +++ b/web-admin/src/features/view-as-user/ViewAsUserPopover.svelte @@ -21,7 +21,7 @@ $: projectUsers = createAdminServiceSearchProjectUsers( organization, project, - { emailQuery: "%", pageSize: 1000, pageToken: undefined } + { emailQuery: "%", pageSize: 1000, pageToken: undefined }, ); const dispatch = createEventDispatcher(); diff --git a/web-admin/src/features/view-as-user/clearViewedAsUser.ts b/web-admin/src/features/view-as-user/clearViewedAsUser.ts index a889171ce7f..ac332174146 100644 --- a/web-admin/src/features/view-as-user/clearViewedAsUser.ts +++ b/web-admin/src/features/view-as-user/clearViewedAsUser.ts @@ -26,7 +26,7 @@ export function clearViewedAsUserAfterNavigate(queryClient: QueryClient) { clearViewedAsUserWithinProject( queryClient, nav.to.params.organization, - nav.to.params.project + nav.to.params.project, ); } @@ -40,7 +40,7 @@ export function clearViewedAsUserAfterNavigate(queryClient: QueryClient) { export async function clearViewedAsUserWithinProject( queryClient: QueryClient, organization: string, - project: string + project: string, ) { viewAsUserStore.set(null); diff --git a/web-admin/src/features/view-as-user/setViewedAsUser.ts b/web-admin/src/features/view-as-user/setViewedAsUser.ts index 562bcde0c91..a579f8d4a4c 100644 --- a/web-admin/src/features/view-as-user/setViewedAsUser.ts +++ b/web-admin/src/features/view-as-user/setViewedAsUser.ts @@ -14,7 +14,7 @@ export async function setViewedAsUser( queryClient: QueryClient, organization: string, project: string, - user: V1User + user: V1User, ) { viewAsUserStore.set(user); @@ -25,7 +25,7 @@ export async function setViewedAsUser( project, { userId: user.id, - } + }, ), queryFn: () => adminServiceGetDeploymentCredentials(organization, project, { diff --git a/web-admin/src/routes/-/auth/device/+page.svelte b/web-admin/src/routes/-/auth/device/+page.svelte index b1b11b301e4..1b050c5b8d0 100644 --- a/web-admin/src/routes/-/auth/device/+page.svelte +++ b/web-admin/src/routes/-/auth/device/+page.svelte @@ -29,7 +29,7 @@ { method: "POST", credentials: "include", - } + }, ).then((response) => { if (response.ok) { if (redirectURL && redirectURL !== "") { @@ -58,7 +58,7 @@ { method: "POST", credentials: "include", - } + }, ).then((response) => { if (response.ok) { errorMsg = "User code rejected, this page can be closed now"; diff --git a/web-admin/src/routes/-/github/connect/+page.svelte b/web-admin/src/routes/-/github/connect/+page.svelte index 1fb74972972..aa9a9818307 100644 --- a/web-admin/src/routes/-/github/connect/+page.svelte +++ b/web-admin/src/routes/-/github/connect/+page.svelte @@ -13,7 +13,7 @@ const urlParams = new URLSearchParams(window.location.search); const redirectURL = urlParams.get("redirect"); const remote = new URL(decodeURIComponent(redirectURL)).searchParams.get( - "remote" + "remote", ); const user = createAdminServiceGetCurrentUser({ query: { diff --git a/web-admin/src/routes/-/github/connect/retry-auth/+page.svelte b/web-admin/src/routes/-/github/connect/retry-auth/+page.svelte index 4678cb5ab00..292901081f1 100644 --- a/web-admin/src/routes/-/github/connect/retry-auth/+page.svelte +++ b/web-admin/src/routes/-/github/connect/retry-auth/+page.svelte @@ -27,7 +27,7 @@ function handleGoToGithub() { window.location.href = encodeURI( - ADMIN_URL + "/github/auth/login?remote=" + remote + ADMIN_URL + "/github/auth/login?remote=" + remote, ); } diff --git a/web-admin/src/routes/-/github/connect/retry-install/+page.svelte b/web-admin/src/routes/-/github/connect/retry-install/+page.svelte index 7a4c9ba48a1..ee2c325f63a 100644 --- a/web-admin/src/routes/-/github/connect/retry-install/+page.svelte +++ b/web-admin/src/routes/-/github/connect/retry-install/+page.svelte @@ -26,7 +26,7 @@ }); function handleGoToGithub() { window.location.href = encodeURI( - ADMIN_URL + "/github/connect?remote=" + remote + ADMIN_URL + "/github/connect?remote=" + remote, ); } diff --git a/web-admin/src/routes/[organization]/[project]/+layout.svelte b/web-admin/src/routes/[organization]/[project]/+layout.svelte index f3377d70d40..d0439274a5c 100644 --- a/web-admin/src/routes/[organization]/[project]/+layout.svelte +++ b/web-admin/src/routes/[organization]/[project]/+layout.svelte @@ -12,7 +12,7 @@ $: projRuntime = useProjectRuntime( $page.params.organization, - $page.params.project + $page.params.project, ); const user = createAdminServiceGetCurrentUser(); diff --git a/web-admin/src/routes/[organization]/[project]/[dashboard]/+page.svelte b/web-admin/src/routes/[organization]/[project]/[dashboard]/+page.svelte index 4caa1c7d6fa..40a1881ae74 100644 --- a/web-admin/src/routes/[organization]/[project]/[dashboard]/+page.svelte +++ b/web-admin/src/routes/[organization]/[project]/[dashboard]/+page.svelte @@ -56,7 +56,7 @@ getRuntimeServiceGetResourceQueryKey(instanceId, { "name.name": dashboardName, "name.kind": ResourceKind.MetricsView, - }) + }), ); } } @@ -64,7 +64,7 @@ async function getDashboardsAndInvalidate() { const dashboardListings = await getDashboardsForProject($project.data); const dashboardNames = dashboardListings.map( - (listing) => listing.meta.name.name + (listing) => listing.meta.name.name, ); return invalidateDashboardsQueries(queryClient, dashboardNames); } diff --git a/web-auth/rollup.config.js b/web-auth/rollup.config.js index d9549f736ff..fcf57f070ad 100644 --- a/web-auth/rollup.config.js +++ b/web-auth/rollup.config.js @@ -45,7 +45,7 @@ function inlineSvelte(template) { // Replace all environment variables environmentVars.forEach((envVar) => { bundle[file].code = bundle[file].code.replace(`"%%${envVar}%%"`, () => - JSON.stringify(process.env[envVar]) + JSON.stringify(process.env[envVar]), ); }); }, diff --git a/web-auth/src/app.html b/web-auth/src/app.html index f689b85e259..8b6a06b38cb 100644 --- a/web-auth/src/app.html +++ b/web-auth/src/app.html @@ -1,4 +1,4 @@ - + diff --git a/web-auth/src/components/Auth.svelte b/web-auth/src/components/Auth.svelte index 3973b3551cb..135cd4b1cc2 100644 --- a/web-auth/src/components/Auth.svelte +++ b/web-auth/src/components/Auth.svelte @@ -33,7 +33,7 @@ function initConfig() { const config = JSON.parse( - decodeURIComponent(escape(window.atob(configParams))) + decodeURIComponent(escape(window.atob(configParams))), ); if (config?.extraParams?.screen_hint === "signup") { @@ -55,7 +55,7 @@ redirectUri: config.callbackURL, responseType: "code", }, - config.internalOptions + config.internalOptions, ); webAuth = new auth0.WebAuth(params); @@ -104,7 +104,7 @@ (err) => { if (err) displayError({ message: err?.description }); isEmailDisabled = false; - } + }, ); } else { webAuth.redirect.signupAndLogin( @@ -120,14 +120,14 @@ typeof err?.description === "string" ? err.description : typeof err?.policy === "string" - ? err.policy - : typeof err?.error_description === "string" - ? err.error_description - : err?.message; + ? err.policy + : typeof err?.error_description === "string" + ? err.error_description + : err?.message; if (err) displayError({ message: errorText }); isEmailDisabled = false; - } + }, ); } } catch (err) { @@ -142,7 +142,7 @@ if ( disableForgotPassDomainsArr.some((domain) => - email.toLowerCase().endsWith(domain.toLowerCase()) + email.toLowerCase().endsWith(domain.toLowerCase()), ) ) { return displayError({ @@ -158,7 +158,7 @@ (err, resp) => { if (err) displayError({ message: err?.description }); else alert(resp); - } + }, ); } diff --git a/web-auth/src/template.html b/web-auth/src/template.html index a2e3e1121fd..4e6e8b9f96d 100644 --- a/web-auth/src/template.html +++ b/web-auth/src/template.html @@ -1,4 +1,4 @@ - + diff --git a/web-common/src/components/BarAndLabel.svelte b/web-common/src/components/BarAndLabel.svelte index cc4a1a82f81..7d9c3164229 100644 --- a/web-common/src/components/BarAndLabel.svelte +++ b/web-common/src/components/BarAndLabel.svelte @@ -34,8 +34,8 @@ {customBackgroundColor !== '' ? customBackgroundColor : showBackground - ? 'bg-gray-100 dark:bg-gray-700' - : 'bg-transparent'} + ? 'bg-gray-100 dark:bg-gray-700' + : 'bg-transparent'} " style:flex="1" > diff --git a/web-common/src/components/button-group/ButtonGroup.spec.ts b/web-common/src/components/button-group/ButtonGroup.spec.ts index baaf1b32aaf..caa85371c95 100644 --- a/web-common/src/components/button-group/ButtonGroup.spec.ts +++ b/web-common/src/components/button-group/ButtonGroup.spec.ts @@ -92,7 +92,7 @@ describe("ButtonGroup - adding buttons", () => { values: [1, 2, 3], selected: [1, 2, 3], disabled: [], - } + }, ); component = component_before; unmount = unmount_before; @@ -169,7 +169,7 @@ describe("ButtonGroup - removing buttons", () => { values: [1, 2, 3, 4, 5], selected: [1, 2], disabled: [4], - } + }, ); component = component_before; unmount = unmount_before; diff --git a/web-common/src/components/button-group/ButtonGroup.svelte b/web-common/src/components/button-group/ButtonGroup.svelte index 9ed6da47e84..be18ecc63fb 100644 --- a/web-common/src/components/button-group/ButtonGroup.svelte +++ b/web-common/src/components/button-group/ButtonGroup.svelte @@ -39,12 +39,12 @@ typeof subButtonKey !== "string" ) { throw new Error( - `Subbutton value must be a number or string. Received ${typeof subButtonKey}.` + `Subbutton value must be a number or string. Received ${typeof subButtonKey}.`, ); } if (get(subButtons).includes(subButtonKey)) { throw new Error( - `Subbutton with value ${subButtonKey} already registered. Subbutton values must be unique.` + `Subbutton with value ${subButtonKey} already registered. Subbutton values must be unique.`, ); } subButtons.set([...get(subButtons), subButtonKey]); @@ -60,7 +60,7 @@ selectedKeys.update((current) => current.findIndex((key) => key === subButtonKey) === -1 ? current - : current.filter((key) => key !== subButtonKey) + : current.filter((key) => key !== subButtonKey), ); }); }, diff --git a/web-common/src/components/button-group/SubButton.svelte b/web-common/src/components/button-group/SubButton.svelte index 1d6e596b57b..ff8b05d4ce0 100644 --- a/web-common/src/components/button-group/SubButton.svelte +++ b/web-common/src/components/button-group/SubButton.svelte @@ -38,8 +38,8 @@ $: bgStyle = disabled ? "bg-white" : isSelected - ? "bg-gray-100 hover:bg-gray-200 " - : "bg-white hover:bg-gray-50 "; + ? "bg-gray-100 hover:bg-gray-200 " + : "bg-white hover:bg-gray-50 "; // This is needed to make sure that the left and right most child // elements don't break out of the border drawn by the parent element @@ -52,8 +52,8 @@ $: tooltipText = disabled ? tooltips?.disabled : isSelected - ? tooltips?.selected - : tooltips?.unselected; + ? tooltips?.selected + : tooltips?.unselected; diff --git a/web-common/src/components/button/classes.ts b/web-common/src/components/button/classes.ts index 5c13615787b..1ea15471a89 100644 --- a/web-common/src/components/button/classes.ts +++ b/web-common/src/components/button/classes.ts @@ -38,8 +38,8 @@ export function buttonClasses({ type === "highlighted" ? "min-h-[32px]" : compact - ? "h-auto" - : "min-h-[28px]" + ? "h-auto" + : "min-h-[28px]" } `; } diff --git a/web-common/src/components/calls-to-action/CTAButton.svelte b/web-common/src/components/calls-to-action/CTAButton.svelte index b962d627920..c575640f7b0 100644 --- a/web-common/src/components/calls-to-action/CTAButton.svelte +++ b/web-common/src/components/calls-to-action/CTAButton.svelte @@ -28,7 +28,7 @@