From db05846ce32e80ab8a724974fb86f2854a605ca3 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Mon, 29 Jan 2024 11:15:50 +0100 Subject: [PATCH 01/11] chore: update core --- core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core b/core index 2dfe92a..c6250c8 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 2dfe92a70d647278e512a91dfb060e4480739df2 +Subproject commit c6250c80b565531a8f4bfbb802ee944dc764257d From e606537f29a4ead5b6fd7e62054b28814ab92e57 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Mon, 29 Jan 2024 11:32:43 +0100 Subject: [PATCH 02/11] chore: update deps --- pnpm-lock.yaml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 61a6cc2..6a6fee2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -201,6 +201,15 @@ importers: core: dependencies: + '@analytics/core': + specifier: ^0.12.7 + version: 0.12.7(@types/dlv@1.1.4) + '@analytics/google-analytics': + specifier: ^1.0.7 + version: 1.0.7 + '@analytics/simple-analytics': + specifier: ^0.4.0 + version: 0.4.0 '@anatine/zod-openapi': specifier: ^2.1.0 version: 2.2.0(openapi3-ts@4.1.2)(zod@3.22.4) @@ -756,6 +765,9 @@ importers: unidecode: specifier: ^0.1.8 version: 0.1.8 + use-analytics: + specifier: ^1.1.0 + version: 1.1.0(react@16.14.0) use-debounce: specifier: ^3.3.0 version: 3.4.3(react@16.14.0) @@ -1200,6 +1212,34 @@ packages: '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.19 + /@analytics/core@0.12.7(@types/dlv@1.1.4): + resolution: {integrity: sha512-etmIPCoxWLoUZ/o1o2zvIk4cdVHa8I1xUQtTuLA+YXQ4SsFbm75ZoMXJBqWrNSENpqCJgoL6hizl5uTbkNN+1Q==} + dependencies: + '@analytics/global-storage-utils': 0.1.7 + '@analytics/type-utils': 0.6.2 + analytics-utils: 1.0.12(@types/dlv@1.1.4) + transitivePeerDependencies: + - '@types/dlv' + dev: false + + /@analytics/global-storage-utils@0.1.7: + resolution: {integrity: sha512-V+spzGLZYm4biZT4uefaylm80SrLXf8WOTv9hCgA46cLcyxx3LD4GCpssp1lj+RcWLl/uXJQBRO4Mnn/o1x6Gw==} + dependencies: + '@analytics/type-utils': 0.6.2 + dev: false + + /@analytics/google-analytics@1.0.7: + resolution: {integrity: sha512-KZ69NaMIi5kOcouzqI8cu7tZgQl7ziGiRahfU6zniUf32G8bv7wQDh73JFz1NwO6gBPloUc+5BzEoWzScM5Rgw==} + dev: false + + /@analytics/simple-analytics@0.4.0: + resolution: {integrity: sha512-WM/6CNRGWBxh/oTalkqTE0oOa+3RUrH8+hlJeRLlbCiHCJR5hUHhDBxLF9cRQ/YeIykU+HOeREnxjTmxPlM17A==} + dev: false + + /@analytics/type-utils@0.6.2: + resolution: {integrity: sha512-TD+xbmsBLyYy/IxFimW/YL/9L2IEnM7/EoV9Aeh56U64Ify8o27HJcKjo38XY9Tcn0uOq1AX3thkKgvtWvwFQg==} + dev: false + /@anatine/zod-openapi@1.14.2(openapi3-ts@2.0.2)(zod@3.22.4): resolution: {integrity: sha512-q0qHfnuNYVKu0Swrnnvfj9971AEyW7c8v9jCOZGCl5ZbyGMNG4RPyJkRcMi/JC8CRfdOe0IDfNm1nNsi2avprg==} peerDependencies: @@ -8344,6 +8384,10 @@ packages: resolution: {integrity: sha512-mIenTfsIe586/yzsyfql69KRnA75S8SVXQbTLpDejRrjH0QSJcpu3AUOi/Vjnt9IOsXKxPhJfGpQUNMueIU1fQ==} dev: true + /@types/dlv@1.1.4: + resolution: {integrity: sha512-m8KmImw4Jt+4rIgupwfivrWEOnj1LzkmKkqbh075uG13eTQ1ZxHWT6T0vIdSQhLIjQCiR0n0lZdtyDOPO1x2Mw==} + dev: false + /@types/dom4@2.0.2: resolution: {integrity: sha512-Rt4IC1T7xkCWa0OG1oSsPa0iqnxlDeQqKXZAHrQGLb7wFGncWm85MaxKUjAGejOrUynOgWlFi4c6S6IyJwoK4g==} dev: false @@ -9636,6 +9680,16 @@ packages: - supports-color dev: false + /analytics-utils@1.0.12(@types/dlv@1.1.4): + resolution: {integrity: sha512-WvV2YWgsnXLxaY0QYux0crpBAg/0JA763NmbMVz22jKhMPo7dpTBet8G2IlF7ixTjLDzGlkHk1ZaKqqQmjJ+4w==} + peerDependencies: + '@types/dlv': ^1.0.0 + dependencies: + '@analytics/type-utils': 0.6.2 + '@types/dlv': 1.1.4 + dlv: 1.1.3 + dev: false + /ansi-align@2.0.0: resolution: {integrity: sha512-TdlOggdA/zURfMYa7ABC66j+oqfMew58KpJMbUlH3bcZP1b+cBHIHDDn5uH9INsxrHBPjsqM0tDB4jPTF/vgJA==} dependencies: @@ -12914,6 +12968,10 @@ packages: /discontinuous-range@1.0.0: resolution: {integrity: sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==} + /dlv@1.1.3: + resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} + dev: false + /doctrine@2.1.0: resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} engines: {node: '>=0.10.0'} @@ -25892,6 +25950,17 @@ packages: punycode: 1.4.1 qs: 6.11.2 + /use-analytics@1.1.0(react@16.14.0): + resolution: {integrity: sha512-1PMT5doiCoTm6ng9PscCHuFgl8vYNSFgGizXuFlmEBqnaRJ+KnygKnETUbBJ1W7MJPWQeHwA5Mys9t7b4P8ijw==} + engines: {node: '>=10'} + peerDependencies: + react: '>=16' + dependencies: + hoist-non-react-statics: 3.3.2 + react: 16.14.0 + tiny-invariant: 1.3.1 + dev: false + /use-debounce@3.4.3(react@16.14.0): resolution: {integrity: sha512-nxy+opOxDccWfhMl36J5BSCTpvcj89iaQk2OZWLAtBJQj7ISCtx1gh+rFbdjGfMl6vtCZf6gke/kYvrkVfHMoA==} peerDependencies: From 7faedcf825c810f0d0e7dedfdf9d1977fe8de209 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 22 May 2024 16:26:59 +0200 Subject: [PATCH 03/11] chore: update core --- core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core b/core index c6250c8..defad6d 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit c6250c80b565531a8f4bfbb802ee944dc764257d +Subproject commit defad6dffbe0fd69ae96bcef2baf4e57e68c9e89 From 4a55bdc59a0fb64732e9562ea2e4423d14e4e5c1 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 22 May 2024 17:41:27 +0200 Subject: [PATCH 04/11] feat: add authtoken login --- pnpm-lock.yaml | 668 +++++++++++++++++++++++++++++++--------- src/lib/client-types.ts | 8 +- src/lib/client.ts | 98 ++++-- src/lib/proxies.ts | 22 +- test/import.test.ts | 28 +- test/utils/setup.ts | 9 +- 6 files changed, 633 insertions(+), 200 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6a6fee2..bfac5e0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,7 +128,7 @@ importers: version: 8.0.3 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + version: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) mdast-util-find-and-replace: specifier: ^3.0.1 version: 3.0.1 @@ -170,7 +170,7 @@ importers: version: 21.0.1 tsup: specifier: ^7.2.0 - version: 7.2.0(@swc/core@1.3.84)(ts-node@10.9.1)(typescript@5.2.2) + version: 7.2.0(@swc/core@1.3.84)(ts-node@10.9.2)(typescript@5.2.2) tsx: specifier: ^3.12.7 version: 3.12.10 @@ -283,8 +283,8 @@ importers: specifier: ^0.20.0 version: 0.20.7 '@google-cloud/storage': - specifier: ^5.8.1 - version: 5.20.5 + specifier: ^7.9.0 + version: 7.11.1 '@lezer/common': specifier: ^1.0.1 version: 1.0.4 @@ -435,6 +435,9 @@ importers: cors: specifier: ^2.8.5 version: 2.8.5 + countries-and-timezones: + specifier: ^3.6.0 + version: 3.6.0 crypto: specifier: ^1.0.1 version: 1.0.1 @@ -496,8 +499,8 @@ importers: specifier: ^1.0.3 version: 1.0.3 google-auth-library: - specifier: ^8.1.1 - version: 8.9.0 + specifier: ^9.7.0 + version: 9.10.0 graphlib: specifier: ^2.1.8 version: 2.1.8 @@ -591,6 +594,9 @@ importers: passport: specifier: ^0.5.0 version: 0.5.3 + passport-http-bearer: + specifier: ^1.0.1 + version: 1.0.1 passport-local: specifier: ^1.0.0 version: 1.0.0 @@ -740,7 +746,7 @@ importers: version: 2.1.5(@types/node@18.17.15)(@types/validator@13.11.1)(reflect-metadata@0.1.13)(sequelize@6.33.0) sequelize-typescript-generator: specifier: ^10.1.2 - version: 10.1.2(@types/node@18.17.15)(@types/validator@13.11.1)(pg@8.11.3)(reflect-metadata@0.1.13)(typescript@5.2.2) + version: 10.1.2(@types/node@18.17.15)(@types/validator@13.11.1)(pg@8.11.3)(reflect-metadata@0.1.13)(typescript@5.4.5) sitemap: specifier: ^6.2.0 version: 6.4.0 @@ -762,6 +768,9 @@ importers: tmp-promise: specifier: ^2.0.1 version: 2.1.1 + ts-node: + specifier: ^10.9.2 + version: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.4.5) unidecode: specifier: ^0.1.8 version: 0.1.8 @@ -807,7 +816,7 @@ importers: devDependencies: '@blueprintjs/eslint-plugin': specifier: ^2.5.2 - version: 2.9.1(typescript@5.2.2) + version: 2.9.1(typescript@5.4.5) '@jest/globals': specifier: ^29.7.0 version: 29.7.0 @@ -831,13 +840,13 @@ importers: version: 6.4.0(@storybook/addons@6.5.16)(@storybook/api@6.5.16)(@storybook/components@6.5.16)(@storybook/core-events@6.5.16)(@storybook/theming@6.5.16)(react-dom@16.14.0)(react@16.14.0) '@storybook/addon-storyshots': specifier: ^6.4.0 - version: 6.5.16(@storybook/react@6.5.16)(eslint@8.49.0)(jest@29.7.0)(preact@10.17.1)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12)(webpack@4.47.0) + version: 6.5.16(@storybook/react@6.5.16)(eslint@8.49.0)(jest@29.7.0)(preact@10.17.1)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12)(webpack@4.47.0) '@storybook/addon-viewport': specifier: ^6.4.0 version: 6.5.16(react-dom@16.14.0)(react@16.14.0) '@storybook/react': specifier: ^6.4.0 - version: 6.5.16(@babel/core@7.22.19)(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(require-from-string@2.0.2)(typescript@5.2.2)(webpack-cli@3.3.12) + version: 6.5.16(@babel/core@7.22.19)(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(require-from-string@2.0.2)(typescript@5.4.5)(webpack-cli@3.3.12) '@types/amqplib': specifier: ^0.5.3 version: 0.5.17 @@ -928,6 +937,9 @@ importers: '@types/passport': specifier: ^0.4.7 version: 0.4.7 + '@types/passport-http-bearer': + specifier: ^1.0.41 + version: 1.0.41 '@types/pegjs': specifier: ^0.10.3 version: 0.10.3 @@ -960,10 +972,10 @@ importers: version: 3.4.11 '@typescript-eslint/eslint-plugin': specifier: ^6.0.0 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) + version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.4.5) '@typescript-eslint/parser': specifier: ^6.0.0 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) + version: 6.7.0(eslint@8.49.0)(typescript@5.4.5) autoprefixer: specifier: ^9.5.0 version: 9.8.8 @@ -1029,7 +1041,7 @@ importers: version: 1.2.3 jest: specifier: ^29.5.0 - version: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + version: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) jest-environment-jsdom: specifier: ^29.5.0 version: 29.7.0 @@ -1083,19 +1095,16 @@ importers: version: 1.4.5(webpack@4.47.0) ts-jest: specifier: ^29.1.0 - version: 29.1.1(@babel/core@7.22.19)(@jest/types@29.6.3)(esbuild@0.18.20)(jest@29.7.0)(typescript@5.2.2) + version: 29.1.1(@babel/core@7.22.19)(@jest/types@29.6.3)(esbuild@0.18.20)(jest@29.7.0)(typescript@5.4.5) ts-loader: specifier: ^8.0.11 - version: 8.4.0(typescript@5.2.2)(webpack@4.47.0) + version: 8.4.0(typescript@5.4.5)(webpack@4.47.0) ts-morph: specifier: ^21.0.1 version: 21.0.1 - ts-node: - specifier: ^10.9.1 - version: 10.9.1(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) typescript: - specifier: ^5.2.2 - version: 5.2.2 + specifier: ^5.3.3 + version: 5.4.5 webpack: specifier: ^4.41.5 version: 4.47.0(webpack-cli@3.3.12) @@ -1297,7 +1306,7 @@ packages: fetch-ponyfill: 7.1.0 fflate: 0.7.4 semver: 7.5.4 - typescript: 5.2.2 + typescript: 5.4.5 validate-npm-package-name: 5.0.0 transitivePeerDependencies: - encoding @@ -3473,10 +3482,10 @@ packages: tslib: 1.10.0 dev: false - /@blueprintjs/eslint-plugin@2.9.1(typescript@5.2.2): + /@blueprintjs/eslint-plugin@2.9.1(typescript@5.4.5): resolution: {integrity: sha512-tNahTcWBJF5l/FtwDNH/HA6zllaHyXTfRYXp3BuGxK0vNpllw+0wiL9ulXmlRlVvSgTU+kfHx/KNdEV887F+lQ==} dependencies: - '@typescript-eslint/utils': 5.62.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/utils': 5.62.0(eslint@8.49.0)(typescript@5.4.5) eslint: 8.49.0 transitivePeerDependencies: - supports-color @@ -4064,13 +4073,13 @@ packages: '@types/node': 20.4.7 chalk: 4.1.2 cosmiconfig: 8.3.6(typescript@5.2.2) - cosmiconfig-typescript-loader: 4.4.0(@types/node@20.4.7)(cosmiconfig@8.3.6)(ts-node@10.9.1)(typescript@5.2.2) + cosmiconfig-typescript-loader: 4.4.0(@types/node@20.4.7)(cosmiconfig@8.3.6)(ts-node@10.9.2)(typescript@5.4.5) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 resolve-from: 5.0.0 - ts-node: 10.9.1(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) - typescript: 5.2.2 + ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) + typescript: 5.4.5 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -4157,7 +4166,6 @@ packages: engines: {node: '>=12'} dependencies: '@jridgewell/trace-mapping': 0.3.9 - dev: true /@dabh/diagnostics@2.0.3: resolution: {integrity: sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==} @@ -5109,10 +5117,12 @@ packages: /@google-cloud/paginator@3.0.7: resolution: {integrity: sha512-jJNutk0arIQhmpUUQJPJErsojqo834KcyB6X7a1mxuic8i1tKXxde8E69IZxNZawRIlZdIK2QY4WALvlK5MzYQ==} engines: {node: '>=10'} + requiresBuild: true dependencies: arrify: 2.0.1 extend: 3.0.2 dev: false + optional: true /@google-cloud/paginator@4.0.1: resolution: {integrity: sha512-6G1ui6bWhNyHjmbYwavdN7mpVPRBtyDg/bfqBTAlwr413On2TnFNfDxc9UhTJctkgoCDgQXEKiRPLPR9USlkbQ==} @@ -5122,6 +5132,14 @@ packages: extend: 3.0.2 dev: true + /@google-cloud/paginator@5.0.0: + resolution: {integrity: sha512-87aeg6QQcEPxGCOthnpUjvw4xAZ57G7pL8FS0C4e/81fr3FjkpUpibf1s2v5XGyGhUVGF4Jfg7yEcxqn2iUw1w==} + engines: {node: '>=14.0.0'} + dependencies: + arrify: 2.0.1 + extend: 3.0.2 + dev: false + /@google-cloud/precise-date@3.0.1: resolution: {integrity: sha512-crK2rgNFfvLoSgcKJY7ZBOLW91IimVNmPfi1CL+kMTf78pTJYd29XqEVedAeBu4DwCJc0EDIp1MpctLgoPq+Uw==} engines: {node: '>=12.0.0'} @@ -5130,17 +5148,29 @@ packages: /@google-cloud/projectify@2.1.1: resolution: {integrity: sha512-+rssMZHnlh0twl122gXY4/aCrk0G1acBqkHFfYddtsqpYXGxA29nj9V5V9SfC+GyOG00l650f6lG9KL+EpFEWQ==} engines: {node: '>=10'} + requiresBuild: true dev: false + optional: true /@google-cloud/projectify@3.0.0: resolution: {integrity: sha512-HRkZsNmjScY6Li8/kb70wjGlDDyLkVk3KvoEo9uIoxSjYLJasGiCch9+PqRVDOCGUFvEIqyogl+BeqILL4OJHA==} engines: {node: '>=12.0.0'} dev: true + /@google-cloud/projectify@4.0.0: + resolution: {integrity: sha512-MmaX6HeSvyPbWGwFq7mXdo0uQZLGBYCwziiLIGq5JVX+/bdI3SAq6bP98trV5eTWfLuvsMcIC1YJOF2vfteLFA==} + engines: {node: '>=14.0.0'} + dev: false + /@google-cloud/promisify@2.0.4: resolution: {integrity: sha512-j8yRSSqswWi1QqUGKVEKOG03Q7qOoZP6/h2zN2YO+F5h2+DHU0bSrHCK9Y7lo2DI9fBd8qGAw795sf+3Jva4yA==} engines: {node: '>=10'} + /@google-cloud/promisify@4.0.0: + resolution: {integrity: sha512-Orxzlfb9c67A15cq2JQEyVc7wEsmFBmHjZWZYQMUyJ1qivXyMwdyNOs9odi79hze+2zqdTtu1E19IM/FtqZ10g==} + engines: {node: '>=14'} + dev: false + /@google-cloud/pubsub@3.7.5: resolution: {integrity: sha512-4Qrry4vIToth5mqduVslltWVsyb7DR8OhnkBA3F7XiE0jgQsiuUfwp/RB2F559aXnRbwcfmjvP4jSuEaGcjrCQ==} engines: {node: '>=12.0.0'} @@ -5169,6 +5199,7 @@ packages: /@google-cloud/storage@5.20.5: resolution: {integrity: sha512-lOs/dCyveVF8TkVFnFSF7IGd0CJrTm91qiK6JLu+Z8qiT+7Ag0RyVhxZIWkhiACqwABo7kSHDm8FdH8p2wxSSw==} engines: {node: '>=10'} + requiresBuild: true dependencies: '@google-cloud/paginator': 3.0.7 '@google-cloud/projectify': 2.1.1 @@ -5197,6 +5228,31 @@ packages: - encoding - supports-color dev: false + optional: true + + /@google-cloud/storage@7.11.1: + resolution: {integrity: sha512-tibLSvgw7nDohMyIelt26kBpJ59YGWA2Rzep++DFNzEzKaSuCSp56Se9iM13ZlM3j5nLzR21IBkpRN58CmvCIw==} + engines: {node: '>=14'} + dependencies: + '@google-cloud/paginator': 5.0.0 + '@google-cloud/projectify': 4.0.0 + '@google-cloud/promisify': 4.0.0 + abort-controller: 3.0.0 + async-retry: 1.3.3 + duplexify: 4.1.3 + fast-xml-parser: 4.4.0 + gaxios: 6.6.0 + google-auth-library: 9.10.0 + html-entities: 2.5.2 + mime: 3.0.0 + p-limit: 3.1.0 + retry-request: 7.0.2 + teeny-request: 9.0.0 + uuid: 8.3.2 + transitivePeerDependencies: + - encoding + - supports-color + dev: false /@grpc/grpc-js@1.6.12: resolution: {integrity: sha512-JmvQ03OTSpVd9JTlj/K3IWHSz4Gk/JMLUTtW7Zb0KvO1LcOYGATh5cNuRYzCAeDR3O8wq+q8FZe97eO9MBrkUw==} @@ -5335,7 +5391,7 @@ packages: slash: 3.0.0 dev: true - /@jest/core@29.7.0(ts-node@10.9.1): + /@jest/core@29.7.0(ts-node@10.9.2): resolution: {integrity: sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -5356,7 +5412,7 @@ packages: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + jest-config: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -5626,7 +5682,6 @@ packages: dependencies: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 - dev: true /@jsdevtools/ono@7.1.3: resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} @@ -6374,7 +6429,7 @@ packages: jest-runtime: '>=28' dependencies: '@jest/transform': 29.7.0 - jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) jest-runtime: 29.7.0 dev: true @@ -7082,7 +7137,7 @@ packages: react-select: 3.2.0(react-dom@16.14.0)(react@16.14.0) dev: true - /@storybook/addon-storyshots@6.5.16(@storybook/react@6.5.16)(eslint@8.49.0)(jest@29.7.0)(preact@10.17.1)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12)(webpack@4.47.0): + /@storybook/addon-storyshots@6.5.16(@storybook/react@6.5.16)(eslint@8.49.0)(jest@29.7.0)(preact@10.17.1)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12)(webpack@4.47.0): resolution: {integrity: sha512-5pQrRM1PUtg8YM1odgUQyQeo6DDaMBF9CnIMwgioDrSBMHf+SqQ2MBgW/4GYbfrBYhhrML1d/QbbpwPJ7eb1Bg==} peerDependencies: '@angular/core': '>=6.0.0' @@ -7137,18 +7192,18 @@ packages: '@storybook/addons': 6.5.16(react-dom@16.14.0)(react@16.14.0) '@storybook/babel-plugin-require-context-hook': 1.0.1 '@storybook/client-api': 6.5.16(react-dom@16.14.0)(react@16.14.0) - '@storybook/core': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12)(webpack@4.47.0) - '@storybook/core-client': 6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack@4.47.0) - '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/core': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12)(webpack@4.47.0) + '@storybook/core-client': 6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack@4.47.0) + '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) '@storybook/csf': 0.0.2--canary.4566f4d.1 - '@storybook/react': 6.5.16(@babel/core@7.22.19)(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(require-from-string@2.0.2)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/react': 6.5.16(@babel/core@7.22.19)(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(require-from-string@2.0.2)(typescript@5.4.5)(webpack-cli@3.3.12) '@types/glob': 7.2.0 '@types/jest': 26.0.24 '@types/jest-specific-snapshot': 0.5.6 core-js: 3.32.2 glob: 7.2.3 global: 4.4.0 - jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) jest-specific-snapshot: 4.0.0(jest@29.7.0) preact: 10.17.1 preact-render-to-string: 5.2.6(preact@10.17.1) @@ -7254,7 +7309,7 @@ packages: resolution: {integrity: sha512-WM4vjgSVi8epvGiYfru7BtC3f0tGwNs7QK3Uc4xQn4t5hHQvISnCqbNrHdDYmNW56Do+bBztE8SwP6NGUvd7ww==} dev: true - /@storybook/builder-webpack4@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12): + /@storybook/builder-webpack4@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12): resolution: {integrity: sha512-YqDIrVNsUo8r9xc6AxsYDLxVYtMgl5Bxk+8/h1adsOko+jAFhdg6hOcAVxEmoSI0TMASOOVMFlT2hr23ppN2rQ==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -7272,7 +7327,7 @@ packages: '@storybook/client-api': 6.5.16(react-dom@16.14.0)(react@16.14.0) '@storybook/client-logger': 6.5.16 '@storybook/components': 6.5.16(react-dom@16.14.0)(react@16.14.0) - '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) '@storybook/core-events': 6.5.16 '@storybook/node-logger': 6.5.16 '@storybook/preview-web': 6.5.16(react-dom@16.14.0)(react@16.14.0) @@ -7290,12 +7345,12 @@ packages: css-loader: 3.6.0(webpack@4.47.0) file-loader: 6.2.0(webpack@4.47.0) find-up: 5.0.0 - fork-ts-checker-webpack-plugin: 4.1.6(eslint@8.49.0)(typescript@5.2.2)(webpack@4.47.0) + fork-ts-checker-webpack-plugin: 4.1.6(eslint@8.49.0)(typescript@5.4.5)(webpack@4.47.0) glob: 7.2.3 glob-promise: 3.4.0(glob@7.2.3) global: 4.4.0 html-webpack-plugin: 4.5.2(webpack@4.47.0) - pnp-webpack-plugin: 1.6.4(typescript@5.2.2) + pnp-webpack-plugin: 1.6.4(typescript@5.4.5) postcss: 7.0.39 postcss-flexbugs-fixes: 4.2.1 postcss-loader: 4.3.0(postcss@7.0.39)(webpack@4.47.0) @@ -7306,7 +7361,7 @@ packages: style-loader: 1.3.0(webpack@4.47.0) terser-webpack-plugin: 4.2.3(webpack@4.47.0) ts-dedent: 2.2.0 - typescript: 5.2.2 + typescript: 5.4.5 url-loader: 4.1.1(file-loader@6.2.0)(webpack@4.47.0) util-deprecate: 1.0.2 webpack: 4.47.0(webpack-cli@3.3.12) @@ -7408,7 +7463,7 @@ packages: util-deprecate: 1.0.2 dev: true - /@storybook/core-client@6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack@4.47.0): + /@storybook/core-client@6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack@4.47.0): resolution: {integrity: sha512-14IRaDrVtKrQ+gNWC0wPwkCNfkZOKghYV/swCUnQX3rP99defsZK8Hc7xHIYoAiOP5+sc3sweRAxgmFiJeQ1Ig==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -7439,13 +7494,13 @@ packages: react-dom: 16.14.0(react@16.14.0) regenerator-runtime: 0.13.11 ts-dedent: 2.2.0 - typescript: 5.2.2 + typescript: 5.4.5 unfetch: 4.2.0 util-deprecate: 1.0.2 webpack: 4.47.0(webpack-cli@3.3.12) dev: true - /@storybook/core-common@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12): + /@storybook/core-common@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12): resolution: {integrity: sha512-2qtnKP3TTOzt2cp6LXKRTh7XrI9z5VanMnMTgeoFcA5ebnndD4V6BExQUdYPClE/QooLx6blUWNgS9dFEpjSqQ==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -7489,7 +7544,7 @@ packages: express: 4.18.2 file-system-cache: 1.1.0 find-up: 5.0.0 - fork-ts-checker-webpack-plugin: 6.5.3(eslint@8.49.0)(typescript@5.2.2)(webpack@4.47.0) + fork-ts-checker-webpack-plugin: 6.5.3(eslint@8.49.0)(typescript@5.4.5)(webpack@4.47.0) fs-extra: 9.1.0 glob: 7.2.3 handlebars: 4.7.8 @@ -7505,7 +7560,7 @@ packages: slash: 3.0.0 telejson: 6.0.8 ts-dedent: 2.2.0 - typescript: 5.2.2 + typescript: 5.4.5 util-deprecate: 1.0.2 webpack: 4.47.0(webpack-cli@3.3.12) transitivePeerDependencies: @@ -7522,7 +7577,7 @@ packages: core-js: 3.32.2 dev: true - /@storybook/core-server@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12): + /@storybook/core-server@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12): resolution: {integrity: sha512-/3NPfmNyply395Dm0zaVZ8P9aruwO+tPx4D6/jpw8aqrRSwvAMndPMpoMCm0NXcpSm5rdX+Je4S3JW6JcggFkA==} peerDependencies: '@storybook/builder-webpack5': '*' @@ -7539,17 +7594,17 @@ packages: optional: true dependencies: '@discoveryjs/json-ext': 0.5.7 - '@storybook/builder-webpack4': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) - '@storybook/core-client': 6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack@4.47.0) - '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/builder-webpack4': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) + '@storybook/core-client': 6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack@4.47.0) + '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) '@storybook/core-events': 6.5.16 '@storybook/csf': 0.0.2--canary.4566f4d.1 '@storybook/csf-tools': 6.5.16 - '@storybook/manager-webpack4': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/manager-webpack4': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) '@storybook/node-logger': 6.5.16 '@storybook/semver': 7.3.2 '@storybook/store': 6.5.16(react-dom@16.14.0)(react@16.14.0) - '@storybook/telemetry': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/telemetry': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) '@types/node': 16.18.50 '@types/node-fetch': 2.6.5 '@types/pretty-hrtime': 1.0.1 @@ -7580,7 +7635,7 @@ packages: slash: 3.0.0 telejson: 6.0.8 ts-dedent: 2.2.0 - typescript: 5.2.2 + typescript: 5.4.5 util-deprecate: 1.0.2 watchpack: 2.4.0 webpack: 4.47.0(webpack-cli@3.3.12) @@ -7599,7 +7654,7 @@ packages: - webpack-command dev: true - /@storybook/core@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12)(webpack@4.47.0): + /@storybook/core@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12)(webpack@4.47.0): resolution: {integrity: sha512-CEF3QFTsm/VMnMKtRNr4rRdLeIkIG0g1t26WcmxTdSThNPBd8CsWzQJ7Jqu7CKiut+MU4A1LMOwbwCE5F2gmyA==} peerDependencies: '@storybook/builder-webpack5': '*' @@ -7616,11 +7671,11 @@ packages: typescript: optional: true dependencies: - '@storybook/core-client': 6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack@4.47.0) - '@storybook/core-server': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/core-client': 6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack@4.47.0) + '@storybook/core-server': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) react: 16.14.0 react-dom: 16.14.0(react@16.14.0) - typescript: 5.2.2 + typescript: 5.4.5 webpack: 4.47.0(webpack-cli@3.3.12) transitivePeerDependencies: - '@storybook/mdx2-csf' @@ -7683,7 +7738,7 @@ packages: - supports-color dev: true - /@storybook/manager-webpack4@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12): + /@storybook/manager-webpack4@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12): resolution: {integrity: sha512-5VJZwmQU6AgdsBPsYdu886UKBHQ9SJEnFMaeUxKEclXk+iRsmbzlL4GHKyVd6oGX/ZaecZtcHPR6xrzmA4Ziew==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -7697,8 +7752,8 @@ packages: '@babel/plugin-transform-template-literals': 7.22.5(@babel/core@7.22.19) '@babel/preset-react': 7.22.15(@babel/core@7.22.19) '@storybook/addons': 6.5.16(react-dom@16.14.0)(react@16.14.0) - '@storybook/core-client': 6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack@4.47.0) - '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/core-client': 6.5.16(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack@4.47.0) + '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) '@storybook/node-logger': 6.5.16 '@storybook/theming': 6.5.16(react-dom@16.14.0)(react@16.14.0) '@storybook/ui': 6.5.16(react-dom@16.14.0)(react@16.14.0) @@ -7715,7 +7770,7 @@ packages: fs-extra: 9.1.0 html-webpack-plugin: 4.5.2(webpack@4.47.0) node-fetch: 2.7.0 - pnp-webpack-plugin: 1.6.4(typescript@5.2.2) + pnp-webpack-plugin: 1.6.4(typescript@5.4.5) react: 16.14.0 react-dom: 16.14.0(react@16.14.0) read-pkg-up: 7.0.1 @@ -7725,7 +7780,7 @@ packages: telejson: 6.0.8 terser-webpack-plugin: 4.2.3(webpack@4.47.0) ts-dedent: 2.2.0 - typescript: 5.2.2 + typescript: 5.4.5 url-loader: 4.1.1(file-loader@6.2.0)(webpack@4.47.0) util-deprecate: 1.0.2 webpack: 4.47.0(webpack-cli@3.3.12) @@ -7796,7 +7851,7 @@ packages: util-deprecate: 1.0.2 dev: true - /@storybook/react-docgen-typescript-plugin@1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0(typescript@5.2.2)(webpack@4.47.0): + /@storybook/react-docgen-typescript-plugin@1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0(typescript@5.4.5)(webpack@4.47.0): resolution: {integrity: sha512-eVg3BxlOm2P+chijHBTByr90IZVUtgRW56qEOLX7xlww2NBuKrcavBlcmn+HH7GIUktquWkMPtvy6e0W0NgA5w==} peerDependencies: typescript: '>= 3.x' @@ -7807,15 +7862,15 @@ packages: find-cache-dir: 3.3.2 flat-cache: 3.1.0 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.2.2) + react-docgen-typescript: 2.2.2(typescript@5.4.5) tslib: 2.6.2 - typescript: 5.2.2 + typescript: 5.4.5 webpack: 4.47.0(webpack-cli@3.3.12) transitivePeerDependencies: - supports-color dev: true - /@storybook/react@6.5.16(@babel/core@7.22.19)(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(require-from-string@2.0.2)(typescript@5.2.2)(webpack-cli@3.3.12): + /@storybook/react@6.5.16(@babel/core@7.22.19)(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(require-from-string@2.0.2)(typescript@5.4.5)(webpack-cli@3.3.12): resolution: {integrity: sha512-cBtNlOzf/MySpNLBK22lJ8wFU22HnfTB2xJyBk7W7Zi71Lm7Uxkhv1Pz8HdiQndJ0SlsAAQOWjQYsSZsGkZIaA==} engines: {node: '>=10.13.0'} hasBin: true @@ -7849,12 +7904,12 @@ packages: '@pmmmwh/react-refresh-webpack-plugin': 0.5.11(react-refresh@0.11.0)(webpack@4.47.0) '@storybook/addons': 6.5.16(react-dom@16.14.0)(react@16.14.0) '@storybook/client-logger': 6.5.16 - '@storybook/core': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12)(webpack@4.47.0) - '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/core': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12)(webpack@4.47.0) + '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) '@storybook/csf': 0.0.2--canary.4566f4d.1 '@storybook/docs-tools': 6.5.16(react-dom@16.14.0)(react@16.14.0) '@storybook/node-logger': 6.5.16 - '@storybook/react-docgen-typescript-plugin': 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0(typescript@5.2.2)(webpack@4.47.0) + '@storybook/react-docgen-typescript-plugin': 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0(typescript@5.4.5)(webpack@4.47.0) '@storybook/semver': 7.3.2 '@storybook/store': 6.5.16(react-dom@16.14.0)(react@16.14.0) '@types/estree': 0.0.51 @@ -7880,7 +7935,7 @@ packages: regenerator-runtime: 0.13.11 require-from-string: 2.0.2 ts-dedent: 2.2.0 - typescript: 5.2.2 + typescript: 5.4.5 util-deprecate: 1.0.2 webpack: 4.47.0(webpack-cli@3.3.12) transitivePeerDependencies: @@ -7951,11 +8006,11 @@ packages: util-deprecate: 1.0.2 dev: true - /@storybook/telemetry@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12): + /@storybook/telemetry@6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12): resolution: {integrity: sha512-CWr5Uko1l9jJW88yTXsZTj/3GTabPvw0o7pDPOXPp8JRZiJTxv1JFaFCafhK9UzYbgcRuGfCC8kEWPZims7iKA==} dependencies: '@storybook/client-logger': 6.5.16 - '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.2.2)(webpack-cli@3.3.12) + '@storybook/core-common': 6.5.16(eslint@8.49.0)(react-dom@16.14.0)(react@16.14.0)(typescript@5.4.5)(webpack-cli@3.3.12) chalk: 4.1.2 core-js: 3.32.2 detect-package-manager: 2.0.1 @@ -8026,7 +8081,6 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true - dev: true optional: true /@swc/core-darwin-x64@1.3.84: @@ -8035,7 +8089,6 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true - dev: true optional: true /@swc/core-linux-arm-gnueabihf@1.3.84: @@ -8044,7 +8097,6 @@ packages: cpu: [arm] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-linux-arm64-gnu@1.3.84: @@ -8053,7 +8105,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-linux-arm64-musl@1.3.84: @@ -8062,7 +8113,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-linux-x64-gnu@1.3.84: @@ -8071,7 +8121,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-linux-x64-musl@1.3.84: @@ -8080,7 +8129,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-win32-arm64-msvc@1.3.84: @@ -8089,7 +8137,6 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true - dev: true optional: true /@swc/core-win32-ia32-msvc@1.3.84: @@ -8098,7 +8145,6 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true - dev: true optional: true /@swc/core-win32-x64-msvc@1.3.84: @@ -8107,7 +8153,6 @@ packages: cpu: [x64] os: [win32] requiresBuild: true - dev: true optional: true /@swc/core@1.3.84: @@ -8132,7 +8177,6 @@ packages: '@swc/core-win32-arm64-msvc': 1.3.84 '@swc/core-win32-ia32-msvc': 1.3.84 '@swc/core-win32-x64-msvc': 1.3.84 - dev: true /@swc/jest@0.2.29(@swc/core@1.3.84): resolution: {integrity: sha512-8reh5RvHBsSikDC3WGCd5ZTd2BXKkyOdK7QwynrCH58jk2cQFhhHhFBg/jvnWZehUQe/EoOImLENc9/DwbBFow==} @@ -8147,7 +8191,6 @@ packages: /@swc/types@0.1.4: resolution: {integrity: sha512-z/G02d+59gyyUb7KYhKi9jOhicek6QD2oMaotUyG+lUkybpXoV49dY9bj7Ah5Q+y7knK2jU67UTX9FyfGzaxQg==} - dev: true /@tootallnate/once@2.0.0: resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} @@ -8195,18 +8238,20 @@ packages: /@tsconfig/node10@1.0.9: resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} - dev: true /@tsconfig/node12@1.0.11: resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} - dev: true /@tsconfig/node14@1.0.3: resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} - dev: true /@tsconfig/node16@1.0.4: resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + + /@types/accepts@1.3.7: + resolution: {integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==} + dependencies: + '@types/node': 18.17.15 dev: true /@types/amqplib@0.5.17: @@ -8267,7 +8312,6 @@ packages: /@types/caseless@0.12.3: resolution: {integrity: sha512-ZD/NsIJYq/2RH+hY7lXmstfp/v9djGt9ah+xRQ3pcgR79qiKsG4pLl25AI7IcXxVO8dH9GiBE5rAknC0ePntlw==} - dev: true /@types/cheerio@0.22.32: resolution: {integrity: sha512-4RrpCp5ufWTLb6/1RCOjazRhUM6DTD79l763det29n8kLmPB7XeN46cxlUf2GsSF+0g6CbWT5nYl8C/Gs15bdg==} @@ -8309,6 +8353,10 @@ packages: dependencies: '@types/node': 18.17.15 + /@types/content-disposition@0.5.8: + resolution: {integrity: sha512-QVSSvno3dE0MgO76pJhmv4Qyi/j0Yk9pBp0Y7TJ2Tlj+KCgJWY6qX7nnxCOLkZ3VYRSIk1WTxCvwUSdx6CCLdg==} + dev: true + /@types/cookie-parser@1.4.4: resolution: {integrity: sha512-Var+aj5I6ZgIqsQ05N2V8q5OBrFfZXtIGWWDSrEYLIbMw758obagSwdGcLCjwh1Ga7M7+wj0SDIAaAC/WT7aaA==} dependencies: @@ -8319,6 +8367,15 @@ packages: resolution: {integrity: sha512-t73xJJrvdTjXrn4jLS9VSGRbz0nUY3cl2DMGDU48lKl+HR9dbbjW2A9r3g40VA++mQpy6uuHg33gy7du2BKpog==} dev: true + /@types/cookies@0.9.0: + resolution: {integrity: sha512-40Zk8qR147RABiQ7NQnBzWzDcjKzNrntB5BAmeGCb2p/MIyOE+4BVvc17wumsUqUw00bJYqoXFHYygQnEFh4/Q==} + dependencies: + '@types/connect': 3.4.36 + '@types/express': 4.17.17 + '@types/keygrip': 1.0.6 + '@types/node': 18.17.15 + dev: true + /@types/cors@2.8.14: resolution: {integrity: sha512-RXHUvNWYICtbP6s18PnOCaqToK8y14DnLd75c6HfyKf228dxy7pHNOQkxPtvXKp/hINFMDjbYzsj63nnpPMSRQ==} dependencies: @@ -8518,6 +8575,10 @@ packages: '@types/uglify-js': 3.17.2 dev: false + /@types/http-assert@1.5.5: + resolution: {integrity: sha512-4+tE/lwdAahgZT1g30Jkdm9PzFRde0xwxBNUyRsCitRvCQB90iuA2uJYdUnhnANRcqGXaWOGY4FEoxeElNAK2g==} + dev: true + /@types/http-errors@2.0.1: resolution: {integrity: sha512-/K3ds8TRAfBvi5vfjuz8y6+GiAYBZ0x4tXv1Av6CWBWn0IlADc+ZX9pMq7oU0fNQPnBwIZl3rmeLp6SBApbxSQ==} @@ -8614,12 +8675,35 @@ packages: resolution: {integrity: sha512-+2FW2CcT0K3P+JMR8YG846bmDwplKUTsWgT2ENwdQ1UdVfRk3GQrh6Mi4sTopy30gI8Uau5CEqHTDZ6YvWIUPA==} dev: true + /@types/keygrip@1.0.6: + resolution: {integrity: sha512-lZuNAY9xeJt7Bx4t4dx0rYCDqGPW8RXhQZK1td7d4H6E9zYbLoOtjBvfwdTKpsyxQI/2jv+armjX/RW+ZNpXOQ==} + dev: true + /@types/keyv@3.1.4: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: '@types/node': 18.17.15 dev: true + /@types/koa-compose@3.2.8: + resolution: {integrity: sha512-4Olc63RY+MKvxMwVknCUDhRQX1pFQoBZ/lXcRLP69PQkEpze/0cr8LNqJQe5NFb/b19DWi2a5bTi2VAlQzhJuA==} + dependencies: + '@types/koa': 2.15.0 + dev: true + + /@types/koa@2.15.0: + resolution: {integrity: sha512-7QFsywoE5URbuVnG3loe03QXuGajrnotr3gQkXcEBShORai23MePfFYdhz90FEtBBpkyIYQbVD+evKtloCgX3g==} + dependencies: + '@types/accepts': 1.3.7 + '@types/content-disposition': 0.5.8 + '@types/cookies': 0.9.0 + '@types/http-assert': 1.5.5 + '@types/http-errors': 2.0.1 + '@types/keygrip': 1.0.6 + '@types/koa-compose': 3.2.8 + '@types/node': 18.17.15 + dev: true + /@types/linkify-it@3.0.5: resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==} dev: true @@ -8794,6 +8878,14 @@ packages: resolution: {integrity: sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw==} dev: true + /@types/passport-http-bearer@1.0.41: + resolution: {integrity: sha512-ecW+9e8C+0id5iz3YZ+uIarsk/vaRPkKSajt1i1Am66t0mC9gDfQDKXZz9fnPOW2xKUufbmCSou4005VM94Feg==} + dependencies: + '@types/express': 4.17.17 + '@types/koa': 2.15.0 + '@types/passport': 0.4.7 + dev: true + /@types/passport@0.4.7: resolution: {integrity: sha512-EePlxNYx5tf3n0yjdPXX0/zDOv0UCwjMyQo4UkWGlhHteNDItAj7TfDdLttSThVMKQz3uCW7lsGzMuml0f8g9Q==} dependencies: @@ -8931,7 +9023,6 @@ packages: '@types/node': 18.17.15 '@types/tough-cookie': 4.0.3 form-data: 2.5.1 - dev: true /@types/responselike@1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} @@ -9031,7 +9122,6 @@ packages: /@types/tough-cookie@4.0.3: resolution: {integrity: sha512-THo502dA5PzG/sfQH+42Lw3fvmYkceefOspdCwpHRul8ik2Jv1K8I5OZz1AT3/rs46kwgMCe9bSBmDLYkkOMGg==} - dev: true /@types/triple-beam@1.3.5: resolution: {integrity: sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==} @@ -9143,7 +9233,36 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@5.62.0(eslint@8.49.0)(typescript@5.2.2): + /@typescript-eslint/eslint-plugin@6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.4.5): + resolution: {integrity: sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@eslint-community/regexpp': 4.8.1 + '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 6.7.0 + '@typescript-eslint/type-utils': 6.7.0(eslint@8.49.0)(typescript@5.4.5) + '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 6.7.0 + debug: 4.3.4(supports-color@5.5.0) + eslint: 8.49.0 + graphemer: 1.4.0 + ignore: 5.2.4 + natural-compare: 1.4.0 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@5.4.5) + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/parser@5.62.0(eslint@8.49.0)(typescript@5.4.5): resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -9155,10 +9274,10 @@ packages: dependencies: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.2.2) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.4.5) debug: 4.3.4(supports-color@5.5.0) eslint: 8.49.0 - typescript: 5.2.2 + typescript: 5.4.5 transitivePeerDependencies: - supports-color dev: false @@ -9184,6 +9303,27 @@ packages: - supports-color dev: true + /@typescript-eslint/parser@6.7.0(eslint@8.49.0)(typescript@5.4.5): + resolution: {integrity: sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': 6.7.0 + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 6.7.0 + debug: 4.3.4(supports-color@5.5.0) + eslint: 8.49.0 + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/scope-manager@5.62.0: resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -9219,6 +9359,26 @@ packages: - supports-color dev: true + /@typescript-eslint/type-utils@6.7.0(eslint@8.49.0)(typescript@5.4.5): + resolution: {integrity: sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.4.5) + '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.4.5) + debug: 4.3.4(supports-color@5.5.0) + eslint: 8.49.0 + ts-api-utils: 1.0.3(typescript@5.4.5) + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/types@5.62.0: resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -9228,7 +9388,7 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/typescript-estree@5.62.0(typescript@5.2.2): + /@typescript-eslint/typescript-estree@5.62.0(typescript@5.4.5): resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -9243,8 +9403,8 @@ packages: globby: 11.1.0 is-glob: 4.0.3 semver: 7.5.4 - tsutils: 3.21.0(typescript@5.2.2) - typescript: 5.2.2 + tsutils: 3.21.0(typescript@5.4.5) + typescript: 5.4.5 transitivePeerDependencies: - supports-color @@ -9269,7 +9429,28 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@5.62.0(eslint@8.49.0)(typescript@5.2.2): + /@typescript-eslint/typescript-estree@6.7.0(typescript@5.4.5): + resolution: {integrity: sha512-dPvkXj3n6e9yd/0LfojNU8VMUGHWiLuBZvbM6V6QYD+2qxqInE7J+J/ieY2iGwR9ivf/R/haWGkIj04WVUeiSQ==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/visitor-keys': 6.7.0 + debug: 4.3.4(supports-color@5.5.0) + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@5.4.5) + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/utils@5.62.0(eslint@8.49.0)(typescript@5.4.5): resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -9280,7 +9461,7 @@ packages: '@types/semver': 7.5.2 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.2.2) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.4.5) eslint: 8.49.0 eslint-scope: 5.1.1 semver: 7.5.4 @@ -9308,6 +9489,25 @@ packages: - typescript dev: true + /@typescript-eslint/utils@6.7.0(eslint@8.49.0)(typescript@5.4.5): + resolution: {integrity: sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.49.0) + '@types/json-schema': 7.0.12 + '@types/semver': 7.5.2 + '@typescript-eslint/scope-manager': 6.7.0 + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.4.5) + eslint: 8.49.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + /@typescript-eslint/visitor-keys@5.62.0: resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -9510,7 +9710,6 @@ packages: /acorn-walk@8.2.0: resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} engines: {node: '>=0.4.0'} - dev: true /acorn@6.4.2: resolution: {integrity: sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==} @@ -9556,7 +9755,6 @@ packages: debug: 4.3.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color - dev: true /aggregate-error@3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} @@ -9898,7 +10096,6 @@ packages: /arg@4.1.3: resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - dev: true /arg@5.0.2: resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} @@ -12053,7 +12250,7 @@ packages: object-assign: 4.1.1 vary: 1.1.2 - /cosmiconfig-typescript-loader@4.4.0(@types/node@20.4.7)(cosmiconfig@8.3.6)(ts-node@10.9.1)(typescript@5.2.2): + /cosmiconfig-typescript-loader@4.4.0(@types/node@20.4.7)(cosmiconfig@8.3.6)(ts-node@10.9.2)(typescript@5.4.5): resolution: {integrity: sha512-BabizFdC3wBHhbI4kJh0VkQP9GkBfoHPydD0COMce1nJ1kJAB3F2TmJ/I7diULBKtmEWSwEbuN/KDtgnmUUVmw==} engines: {node: '>=v14.21.3'} peerDependencies: @@ -12064,8 +12261,8 @@ packages: dependencies: '@types/node': 20.4.7 cosmiconfig: 8.3.6(typescript@5.2.2) - ts-node: 10.9.1(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) - typescript: 5.2.2 + ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) + typescript: 5.4.5 dev: true /cosmiconfig@5.2.1: @@ -12115,6 +12312,11 @@ packages: typescript: 5.2.2 dev: true + /countries-and-timezones@3.6.0: + resolution: {integrity: sha512-8/nHBCs1eKeQ1jnsZVGdqrLYxS8nPcfJn8PnmxdJXWRLZdXsGFR8gnVhRjatGDBjqmPm7H+FtYpBYTPWd0Eiqg==} + engines: {node: '>=8.x', npm: '>=5.x'} + dev: false + /cp-file@7.0.0: resolution: {integrity: sha512-0Cbj7gyvFVApzpK/uhCtQ/9kE9UnYpxMzaq5nQQC/Dh4iaj5fxp7iEFIullrYwzj8nf0qnsI1Qsx34hAeAebvw==} engines: {node: '>=8'} @@ -12199,7 +12401,7 @@ packages: safe-buffer: 5.2.1 sha.js: 2.4.11 - /create-jest@29.7.0(@types/node@18.17.15)(ts-node@10.9.1): + /create-jest@29.7.0(@types/node@18.17.15)(ts-node@10.9.2): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -12208,7 +12410,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + jest-config: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -12220,7 +12422,6 @@ packages: /create-require@1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - dev: true /crelt@1.0.6: resolution: {integrity: sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==} @@ -13136,6 +13337,15 @@ packages: readable-stream: 3.6.2 stream-shift: 1.0.1 + /duplexify@4.1.3: + resolution: {integrity: sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==} + dependencies: + end-of-stream: 1.4.4 + inherits: 2.0.4 + readable-stream: 3.6.2 + stream-shift: 1.0.3 + dev: false + /eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} requiresBuild: true @@ -13254,7 +13464,9 @@ packages: /ent@2.2.0: resolution: {integrity: sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==} + requiresBuild: true dev: false + optional: true /entities@2.1.0: resolution: {integrity: sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==} @@ -13729,7 +13941,7 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.4.5) debug: 3.2.7(supports-color@5.5.0) eslint: 8.49.0 eslint-import-resolver-node: 0.3.9 @@ -13747,7 +13959,7 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.4.5) array-includes: 3.1.7 array.prototype.findlastindex: 1.2.3 array.prototype.flat: 1.3.2 @@ -14436,6 +14648,13 @@ packages: strnum: 1.0.5 dev: false + /fast-xml-parser@4.4.0: + resolution: {integrity: sha512-kLY3jFlwIYwBNDojclKsNAC12sfD6NwW74QB2CoNGPvtVxjliYehVunB3HYyNi+n4Tt1dAcgwYvmKF/Z18flqg==} + hasBin: true + dependencies: + strnum: 1.0.5 + dev: false + /fastest-stable-stringify@2.0.2: resolution: {integrity: sha512-bijHueCGd0LqqNK9b5oCMHc0MluJAx0cwqASgbWMvkO01lCYgIhacVRLcaDz3QnyYIRNJRDwMb41VuT6pHJ91Q==} dev: false @@ -14871,7 +15090,7 @@ packages: resolution: {integrity: sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==} dev: false - /fork-ts-checker-webpack-plugin@4.1.6(eslint@8.49.0)(typescript@5.2.2)(webpack@4.47.0): + /fork-ts-checker-webpack-plugin@4.1.6(eslint@8.49.0)(typescript@5.4.5)(webpack@4.47.0): resolution: {integrity: sha512-DUxuQaKoqfNne8iikd14SAkh5uw4+8vNifp6gmA73yYNS6ywLIWSLD/n/mBzHQRpW3J7rbATEakmiA8JvkTyZw==} engines: {node: '>=6.11.5', yarn: '>=1.0.0'} peerDependencies: @@ -14892,14 +15111,14 @@ packages: minimatch: 3.1.2 semver: 5.7.2 tapable: 1.1.3 - typescript: 5.2.2 + typescript: 5.4.5 webpack: 4.47.0(webpack-cli@3.3.12) worker-rpc: 0.1.1 transitivePeerDependencies: - supports-color dev: true - /fork-ts-checker-webpack-plugin@6.5.3(eslint@8.49.0)(typescript@5.2.2)(webpack@4.47.0): + /fork-ts-checker-webpack-plugin@6.5.3(eslint@8.49.0)(typescript@5.4.5)(webpack@4.47.0): resolution: {integrity: sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==} engines: {node: '>=10', yarn: '>=1.0.0'} peerDependencies: @@ -14927,7 +15146,7 @@ packages: schema-utils: 2.7.0 semver: 7.5.4 tapable: 1.1.3 - typescript: 5.2.2 + typescript: 5.4.5 webpack: 4.47.0(webpack-cli@3.3.12) dev: true @@ -14956,7 +15175,6 @@ packages: asynckit: 0.4.0 combined-stream: 1.0.8 mime-types: 2.1.35 - dev: true /form-data@4.0.0: resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} @@ -15159,6 +15377,21 @@ packages: transitivePeerDependencies: - encoding - supports-color + dev: true + + /gaxios@6.6.0: + resolution: {integrity: sha512-bpOZVQV5gthH/jVCSuYuokRo2bTKOcuBiVWpjmTn6C5Agl5zclGfTljuGsQZxwwDBkli+YhZhP4TdlqTnhOezQ==} + engines: {node: '>=14'} + dependencies: + extend: 3.0.2 + https-proxy-agent: 7.0.2 + is-stream: 2.0.1 + node-fetch: 2.7.0 + uuid: 9.0.1 + transitivePeerDependencies: + - encoding + - supports-color + dev: false /gcp-metadata@4.3.1: resolution: {integrity: sha512-x850LS5N7V1F3UcV7PoupzGsyD6iVwTVvsh3tbXfkctZnBnjW5yu5z1/3k3SehF7TyoTIe78rJs02GMMy+LF+A==} @@ -15179,6 +15412,18 @@ packages: transitivePeerDependencies: - encoding - supports-color + dev: true + + /gcp-metadata@6.1.0: + resolution: {integrity: sha512-Jh/AIwwgaxan+7ZUUmRLCjtchyDiqh4KjBJ5tW3plBZb5iL/BPcso8A5DlzeD9qlw0duCamnNdpFjxwaT0KyKg==} + engines: {node: '>=14'} + dependencies: + gaxios: 6.6.0 + json-bigint: 1.0.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: false /gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} @@ -15532,6 +15777,22 @@ packages: transitivePeerDependencies: - encoding - supports-color + dev: true + + /google-auth-library@9.10.0: + resolution: {integrity: sha512-ol+oSa5NbcGdDqA+gZ3G3mev59OHBZksBTxY/tYwjtcp1H/scAFwJfSQU9/1RALoyZ7FslNbke8j4i3ipwlyuQ==} + engines: {node: '>=14'} + dependencies: + base64-js: 1.5.1 + ecdsa-sig-formatter: 1.0.11 + gaxios: 6.6.0 + gcp-metadata: 6.1.0 + gtoken: 7.1.0 + jws: 4.0.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: false /google-gax@2.30.5: resolution: {integrity: sha512-Jey13YrAN2hfpozHzbtrwEfEHdStJh1GwaQ2+Akh1k0Tv/EuNVSuBtHZoKSBm5wBMvNsxTsEIZ/152NrYyZgxQ==} @@ -15596,6 +15857,7 @@ packages: hasBin: true dependencies: node-forge: 1.3.1 + dev: true /gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} @@ -15662,6 +15924,18 @@ packages: transitivePeerDependencies: - encoding - supports-color + dev: true + + /gtoken@7.1.0: + resolution: {integrity: sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==} + engines: {node: '>=14.0.0'} + dependencies: + gaxios: 6.6.0 + jws: 4.0.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: false /gud@1.0.0: resolution: {integrity: sha512-zGEOVKFM5sVPPrYs7J5/hYEw2Pof8KCyOwyhG8sAF26mCAeUFAcYPu1mwB7hhpIP29zOIBaDqwuHdLp0jvZXjw==} @@ -15809,7 +16083,9 @@ packages: /hash-stream-validation@0.2.4: resolution: {integrity: sha512-Gjzu0Xn7IagXVkSu9cSFuK1fqzwtLwFhNhVL8IFJijRNMgUttFbBSIAzKuSIrsFMO1+g1RlsoN49zPIbwPDMGQ==} + requiresBuild: true dev: false + optional: true /hash.js@1.1.7: resolution: {integrity: sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==} @@ -15953,6 +16229,10 @@ packages: resolution: {integrity: sha512-igBTJcNNNhvZFRtm8uA6xMY6xYleeDwn3PeBCkDz7tHttv4F2hsDI2aPgNERWzvRcNYHNT3ymRaQzllmXj4YsQ==} dev: true + /html-entities@2.5.2: + resolution: {integrity: sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA==} + dev: false + /html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} dev: true @@ -16113,7 +16393,6 @@ packages: debug: 4.3.4(supports-color@5.5.0) transitivePeerDependencies: - supports-color - dev: true /human-id@1.0.2: resolution: {integrity: sha512-UNopramDEhHJD+VR+ehk8rOslwSfByxPIZyJRfV739NDhN5LF1fa1MqnzKm2lGTQRjNrjK19Q5fhkgIfjlVUKw==} @@ -17182,7 +17461,7 @@ packages: - supports-color dev: true - /jest-cli@29.7.0(@types/node@18.17.15)(ts-node@10.9.1): + /jest-cli@29.7.0(@types/node@18.17.15)(ts-node@10.9.2): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -17192,14 +17471,14 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.1) + '@jest/core': 29.7.0(ts-node@10.9.2) '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + create-jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + jest-config: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -17210,7 +17489,7 @@ packages: - ts-node dev: true - /jest-config@29.7.0(@types/node@18.17.15)(ts-node@10.9.1): + /jest-config@29.7.0(@types/node@18.17.15)(ts-node@10.9.2): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -17245,7 +17524,7 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.1(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) + ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.4.5) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -17640,7 +17919,7 @@ packages: peerDependencies: jest: '>= 26.0.0' dependencies: - jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) jest-snapshot: 26.6.2 transitivePeerDependencies: - supports-color @@ -17715,7 +17994,7 @@ packages: supports-color: 8.1.1 dev: true - /jest@29.7.0(@types/node@18.17.15)(ts-node@10.9.1): + /jest@29.7.0(@types/node@18.17.15)(ts-node@10.9.2): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -17725,10 +18004,10 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.1) + '@jest/core': 29.7.0(ts-node@10.9.2) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + jest-cli: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -18790,7 +19069,6 @@ packages: /make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - dev: true /make-fetch-happen@13.0.0: resolution: {integrity: sha512-7ThobcL8brtGo9CavByQrQi+23aIfgYU++wg4B87AIS8Rb2ZBt/MEaDqzA00Xwv/jUjAjYkLHjVolYuTLKda2A==} @@ -20758,6 +21036,13 @@ packages: resolution: {integrity: sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==} engines: {node: '>=0.10.0'} + /passport-http-bearer@1.0.1: + resolution: {integrity: sha512-SELQM+dOTuMigr9yu8Wo4Fm3ciFfkMq5h/ZQ8ffi4ELgZrX1xh9PlglqZdcUZ1upzJD/whVyt+YWF62s3U6Ipw==} + engines: {node: '>= 0.4.0'} + dependencies: + passport-strategy: 1.0.0 + dev: false + /passport-local-sequelize@0.9.1(pg@8.11.3): resolution: {integrity: sha512-NaSCw870tYAQvsFfrVcSv351JXlLwBFfoOnA0p3M3Vm7yQNudu+D7uDxy4qxmQOtQCUYeNRRsOORdQmu2KBdJg==} engines: {node: '>=10.0.0'} @@ -21065,11 +21350,11 @@ packages: engines: {node: '>=4'} dev: false - /pnp-webpack-plugin@1.6.4(typescript@5.2.2): + /pnp-webpack-plugin@1.6.4(typescript@5.4.5): resolution: {integrity: sha512-7Wjy+9E3WwLOEL30D+m8TSTF7qJJUJLONBnwQp0518siuMxUQUbgZwssaFX+QKlZkjHZcw/IpZCt/H0srrntSg==} engines: {node: '>=6'} dependencies: - ts-pnp: 1.2.0(typescript@5.2.2) + ts-pnp: 1.2.0(typescript@5.4.5) transitivePeerDependencies: - typescript dev: true @@ -21125,7 +21410,7 @@ packages: import-cwd: 2.1.0 dev: true - /postcss-load-config@4.0.1(ts-node@10.9.1): + /postcss-load-config@4.0.1(ts-node@10.9.2): resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==} engines: {node: '>= 14'} peerDependencies: @@ -21138,7 +21423,7 @@ packages: optional: true dependencies: lilconfig: 2.1.0 - ts-node: 10.9.1(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) + ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) yaml: 2.3.2 dev: true @@ -21853,11 +22138,13 @@ packages: /pumpify@2.0.1: resolution: {integrity: sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==} + requiresBuild: true dependencies: duplexify: 4.1.2 inherits: 2.0.4 pump: 3.0.0 dev: false + optional: true /punycode@1.4.1: resolution: {integrity: sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==} @@ -22094,12 +22381,12 @@ packages: react-dom: 16.14.0(react@16.14.0) dev: true - /react-docgen-typescript@2.2.2(typescript@5.2.2): + /react-docgen-typescript@2.2.2(typescript@5.4.5): resolution: {integrity: sha512-tvg2ZtOpOi6QDwsb3GZhOjDkkX0h8Z2gipvTg6OVMUyoYoURhEiRNePT8NZItTVCDh39JJHnLdfCOkzoLbFnTg==} peerDependencies: typescript: '>= 4.3.x' dependencies: - typescript: 5.2.2 + typescript: 5.4.5 dev: true /react-docgen@5.4.3: @@ -23135,12 +23422,14 @@ packages: /retry-request@4.2.2: resolution: {integrity: sha512-xA93uxUD/rogV7BV59agW/JHPGXeREMWiZc9jhcwY4YdZ7QOtC7qbomYg0n4wyk2lJhggjvKvhNX8wln/Aldhg==} engines: {node: '>=8.10.0'} + requiresBuild: true dependencies: debug: 4.3.4(supports-color@5.5.0) extend: 3.0.2 transitivePeerDependencies: - supports-color dev: false + optional: true /retry-request@5.0.2: resolution: {integrity: sha512-wfI3pk7EE80lCIXprqh7ym48IHYdwmAAzESdbU8Q9l7pnRCk9LEhpbOTNKjz6FARLm/Bl5m+4F0ABxOkYUujSQ==} @@ -23152,6 +23441,18 @@ packages: - supports-color dev: true + /retry-request@7.0.2: + resolution: {integrity: sha512-dUOvLMJ0/JJYEn8NrpOaGNE7X3vpI5XlZS/u0ANjqtcZVKnIxP7IgCFwrKTxENw29emmwug53awKtaMm4i9g5w==} + engines: {node: '>=14'} + dependencies: + '@types/request': 2.48.8 + extend: 3.0.2 + teeny-request: 9.0.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: false + /retry@0.12.0: resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} engines: {node: '>= 4'} @@ -23513,20 +23814,20 @@ packages: engines: {node: '>= 10.0.0'} dev: false - /sequelize-typescript-generator@10.1.2(@types/node@18.17.15)(@types/validator@13.11.1)(pg@8.11.3)(reflect-metadata@0.1.13)(typescript@5.2.2): + /sequelize-typescript-generator@10.1.2(@types/node@18.17.15)(@types/validator@13.11.1)(pg@8.11.3)(reflect-metadata@0.1.13)(typescript@5.4.5): resolution: {integrity: sha512-mjIYMpANsKptqkeneJl+JGcUx6WvQn5VQpL6y8kM4acQen0S67aKn0ULhoODEvO4xPncfgWWEeN3GwtZ69iIlw==} hasBin: true peerDependencies: typescript: ^5.0.4 dependencies: '@types/eslint': 8.44.2 - '@typescript-eslint/parser': 5.62.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.49.0)(typescript@5.4.5) change-case: 4.1.2 eslint: 8.49.0 pluralize: 8.0.0 sequelize: 6.33.0(pg@8.11.3) sequelize-typescript: 2.1.5(@types/node@18.17.15)(@types/validator@13.11.1)(reflect-metadata@0.1.13)(sequelize@6.33.0) - typescript: 5.2.2 + typescript: 5.4.5 yargs: 17.7.2 transitivePeerDependencies: - '@types/node' @@ -24223,6 +24524,10 @@ packages: /stream-shift@1.0.1: resolution: {integrity: sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==} + /stream-shift@1.0.3: + resolution: {integrity: sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==} + dev: false + /stream-transform@2.1.3: resolution: {integrity: sha512-9GHUiM5hMiCi6Y03jD2ARC1ettBXkQBoQAe7nJsPknnI0ow10aXjTnew8QtYQmLjzn974BnmWEAJgCY6ZP1DeQ==} dependencies: @@ -24758,6 +25063,7 @@ packages: /teeny-request@7.2.0: resolution: {integrity: sha512-SyY0pek1zWsi0LRVAALem+avzMLc33MKW/JLLakdP4s9+D7+jHcy5x6P+h94g2QNZsAqQNfX5lsbd3WSeJXrrw==} engines: {node: '>=10'} + requiresBuild: true dependencies: http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 @@ -24768,6 +25074,21 @@ packages: - encoding - supports-color dev: false + optional: true + + /teeny-request@9.0.0: + resolution: {integrity: sha512-resvxdc6Mgb7YEThw6G6bExlXKkv6+YbuzGg9xuXxSgxJF7Ozs+o8Y9+2R3sArdWdW8nOokoQb1yrpFB0pQK2g==} + engines: {node: '>=14'} + dependencies: + http-proxy-agent: 5.0.0 + https-proxy-agent: 5.0.1 + node-fetch: 2.7.0 + stream-events: 1.0.5 + uuid: 9.0.1 + transitivePeerDependencies: + - encoding + - supports-color + dev: false /telejson@6.0.8: resolution: {integrity: sha512-nerNXi+j8NK1QEfBHtZUN/aLdDcyupA//9kAboYLrtzZlPLpUfqbVGWb9zz91f/mIjRbAYhbgtnJHY8I1b5MBg==} @@ -25118,6 +25439,15 @@ packages: typescript: 5.2.2 dev: true + /ts-api-utils@1.0.3(typescript@5.4.5): + resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==} + engines: {node: '>=16.13.0'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: 5.4.5 + dev: true + /ts-dedent@2.2.0: resolution: {integrity: sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==} engines: {node: '>=6.10'} @@ -25136,7 +25466,7 @@ packages: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} dev: true - /ts-jest@29.1.1(@babel/core@7.22.19)(@jest/types@29.6.3)(esbuild@0.18.20)(jest@29.7.0)(typescript@5.2.2): + /ts-jest@29.1.1(@babel/core@7.22.19)(@jest/types@29.6.3)(esbuild@0.18.20)(jest@29.7.0)(typescript@5.4.5): resolution: {integrity: sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -25162,17 +25492,17 @@ packages: bs-logger: 0.2.6 esbuild: 0.18.20 fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.1) + jest: 29.7.0(@types/node@18.17.15)(ts-node@10.9.2) jest-util: 29.7.0 json5: 2.2.3 lodash.memoize: 4.1.2 make-error: 1.3.6 semver: 7.5.4 - typescript: 5.2.2 + typescript: 5.4.5 yargs-parser: 21.1.1 dev: true - /ts-loader@8.4.0(typescript@5.2.2)(webpack@4.47.0): + /ts-loader@8.4.0(typescript@5.4.5)(webpack@4.47.0): resolution: {integrity: sha512-6nFY3IZ2//mrPc+ImY3hNWx1vCHyEhl6V+wLmL4CZcm6g1CqX7UKrkc6y0i4FwcfOhxyMPCfaEvh20f4r9GNpw==} engines: {node: '>=10.0.0'} peerDependencies: @@ -25184,7 +25514,7 @@ packages: loader-utils: 2.0.4 micromatch: 4.0.5 semver: 7.5.4 - typescript: 5.2.2 + typescript: 5.4.5 webpack: 4.47.0(webpack-cli@3.3.12) dev: true @@ -25195,8 +25525,8 @@ packages: code-block-writer: 12.0.0 dev: true - /ts-node@10.9.1(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2): - resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + /ts-node@10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: '@swc/core': '>=1.2.50' @@ -25227,7 +25557,38 @@ packages: yn: 3.1.1 dev: true - /ts-pnp@1.2.0(typescript@5.2.2): + /ts-node@10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.4.5): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@swc/core': 1.3.84 + '@tsconfig/node10': 1.0.9 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 18.17.15 + acorn: 8.10.0 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.4.5 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + + /ts-pnp@1.2.0(typescript@5.4.5): resolution: {integrity: sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==} engines: {node: '>=6'} peerDependencies: @@ -25236,7 +25597,7 @@ packages: typescript: optional: true dependencies: - typescript: 5.2.2 + typescript: 5.4.5 dev: true /tsconfck@2.1.2(typescript@5.2.2): @@ -25275,7 +25636,7 @@ packages: /tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - /tsup@7.2.0(@swc/core@1.3.84)(ts-node@10.9.1)(typescript@5.2.2): + /tsup@7.2.0(@swc/core@1.3.84)(ts-node@10.9.2)(typescript@5.2.2): resolution: {integrity: sha512-vDHlczXbgUvY3rWvqFEbSqmC1L7woozbzngMqTtL2PGBODTtWlRwGDDawhvWzr5c1QjKe4OAKqJGfE1xeXUvtQ==} engines: {node: '>=16.14'} hasBin: true @@ -25300,7 +25661,7 @@ packages: execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 - postcss-load-config: 4.0.1(ts-node@10.9.1) + postcss-load-config: 4.0.1(ts-node@10.9.2) resolve-from: 5.0.0 rollup: 3.29.1 source-map: 0.8.0-beta.0 @@ -25312,14 +25673,14 @@ packages: - ts-node dev: true - /tsutils@3.21.0(typescript@5.2.2): + /tsutils@3.21.0(typescript@5.4.5): resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} 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' dependencies: tslib: 1.14.1 - typescript: 5.2.2 + typescript: 5.4.5 /tsx@3.12.10: resolution: {integrity: sha512-2+46h4xvUt1aLDNvk5YBT8Uzw+b7BolGbn7iSMucYqCXZiDc+1IMghLVdw8kKjING32JFOeO+Am9posvjkeclA==} @@ -25505,6 +25866,12 @@ packages: resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} engines: {node: '>=14.17'} hasBin: true + dev: true + + /typescript@5.4.5: + resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} + engines: {node: '>=14.17'} + hasBin: true /uc.micro@1.0.6: resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==} @@ -26033,11 +26400,9 @@ packages: /uuid@9.0.1: resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} hasBin: true - dev: true /v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - dev: true /v8-compile-cache@2.4.0: resolution: {integrity: sha512-ocyWc3bAHBB/guyqJQVI5o4BZkPhznPYUG2ea80Gond/BgNWpap8TOmLSeeQG7bnh2KMISxskdADG59j7zruhw==} @@ -26981,7 +27346,6 @@ packages: /yn@3.1.1: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} engines: {node: '>=6'} - dev: true /yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} diff --git a/src/lib/client-types.ts b/src/lib/client-types.ts index 8a9910a..14a71e5 100644 --- a/src/lib/client-types.ts +++ b/src/lib/client-types.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { createClient } from 'utils/api/client' -import type { GetRequests } from './proxies.js' +import type { GetRequests, RemovedRequests } from './proxies.js' export type Client = ReturnType @@ -60,7 +60,7 @@ export type ProxiedFunction< : never export type ProxiedClient = { - [K in keyof T]: T[K] extends (...args: any[]) => any + [K in Exclude]: T[K] extends (...args: any[]) => any ? K extends GetRequests ? // don't proxy get requests T[K] extends (...args: infer A) => infer R @@ -88,8 +88,8 @@ export type DeepAccess< ? B extends `${infer C}.${infer D}` ? A extends keyof O ? O[A] extends object - ? `${C}.${D}` extends ObjectPath - ? DeepAccess + ? `${C}.${D}` extends infer DeepPath extends ObjectPath + ? DeepAccess : never : never : never diff --git a/src/lib/client.ts b/src/lib/client.ts index 50afe1e..07234e8 100644 --- a/src/lib/client.ts +++ b/src/lib/client.ts @@ -9,7 +9,8 @@ import { proxyClient, proxySDKWithClient, getRequestsMap, - filesRequestMap, + filesRequestsMap, + removedRequestsMap, } from './proxies.js' import type { PClient, DeepInput, DeepMerge } from './client-types.js' @@ -20,6 +21,7 @@ export type PubPubSDK = DeepMerge export class PubPub { #cookie?: string + #authToken?: string loggedIn = false public client!: PClient @@ -77,7 +79,8 @@ export class PubPub { }), communityId: this.communityId, getRequestsMap, - filesRequestsMap: filesRequestMap, + filesRequestsMap, + removedRequestsMap: removedRequestsMap, }) this.client = authenticatedClient @@ -198,30 +201,73 @@ export class PubPub { return poll() } - static async createSDK({ - communityUrl, - email, - password, - }: { - /** - * The URL of the community to connect to - */ - communityUrl: string - /** - * The email to login with - */ - email: string - /** - * The password to login with - */ - password: string - }) { - const [{ id }] = await ( - await fetch(`${communityUrl}/api/communities`) - ).json() - - const sdk = new PubPub(id, communityUrl) - await sdk.login(email, password) + static async createSDK( + options: { + /** + * The URL of the community to connect to + */ + communityUrl: string + } & ( + | { + /** + * The email to login with + */ + email: string + /** + * The password to login with + */ + password: string + } + | { + /** + * The auth token to use + */ + authToken: string + } + ), + ) { + const res = await fetch(`${options.communityUrl}/api/communities`, { + ...('authToken' in options + ? { + headers: { + Authorization: `Bearer ${options.authToken}`, + }, + } + : {}), + }) + + if (res.status === 403) { + throw new Error('Invalid auth token') + } + + const [{ id }] = await res.json() + + const sdk = new PubPub(id, options.communityUrl) + if ('authToken' in options) { + sdk.#authToken = options.authToken + + const client = createClient({ + baseUrl: options.communityUrl, + baseHeaders: { + Authorization: `Bearer ${options.authToken}`, + }, + }) + const authenticatedClient = proxyClient({ + client, + communityId: id, + getRequestsMap, + filesRequestsMap, + removedRequestsMap: removedRequestsMap, + }) + + sdk.client = authenticatedClient + + proxySDKWithClient(sdk, authenticatedClient) + + return sdk as unknown as PubPubSDK + } + + await sdk.login(options.email, options.password) return sdk as unknown as PubPubSDK } } diff --git a/src/lib/proxies.ts b/src/lib/proxies.ts index d705d38..81e3715 100644 --- a/src/lib/proxies.ts +++ b/src/lib/proxies.ts @@ -1,6 +1,17 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { Client, PClient } from './client-types.js' +/** + * Map of requests that should be removed from the client + */ +export const removedRequestsMap = { + authToken: true, + analytics: true, +} as const + +export type RemovedRequestsMap = typeof removedRequestsMap +export type RemovedRequests = keyof RemovedRequestsMap + /** * Map of GET requests, used to correctly proxy the client * @@ -38,13 +49,13 @@ export type GetRequests = keyof GetRequestMap * formData.set(, 'title') * */ -export const filesRequestMap = { +export const filesRequestsMap = { convert: true, importToPub: true, import: true, } as const -export type FilesRequestMap = typeof filesRequestMap +export type FilesRequestMap = typeof filesRequestsMap export type FilesRequests = keyof FilesRequestMap /** * This makes the client a bit nicer to use. The body is flattened and becomes the first arg, IF its not a get request, @@ -65,16 +76,23 @@ export function proxyClient({ communityId, getRequestsMap = {}, filesRequestsMap = {}, + removedRequestsMap = {}, }: { client: Client communityId: string getRequestsMap?: Partial filesRequestsMap?: Partial + removedRequestsMap?: Partial }): PClient { // Recursive function to traverse and proxy the client object function proxyObject>(obj: T) { const newObj = {} for (const [key, value] of Object.entries(obj)) { + // Remove keys from the client + if (removedRequestsMap[key]) { + continue + } + if (typeof value === 'function') { newObj[key] = function (...args) { // Check if this is a GET request diff --git a/test/import.test.ts b/test/import.test.ts index e3928cd..6e4c8e1 100644 --- a/test/import.test.ts +++ b/test/import.test.ts @@ -7,23 +7,24 @@ import { sleep } from './utils/sleep.js' // we need to test imports somewhere else, bc they don't work locally const IMPORT_TEST_COMMUNITY_URL = process.env.IMPORT_TEST_COMMUNITY_URL ?? - ('https://client-test.pubpub.org' as const) + ('https://client-test.duqduq.org' as const) -describe('imports', () => { - let pubpub: PubPubSDK - let pub = {} as Awaited>['body'] +let pubpub: PubPubSDK +let pub = {} as Awaited>['body'] - let removed = false +let removed = false - beforeAll(async () => { - // eslint-disable-next-line no-extra-semi - ;({ pub, pubpub } = await setupSDK({ - url: IMPORT_TEST_COMMUNITY_URL, - email: process.env.IMPORT_TEST_EMAIL ?? process.env.EMAIL, - password: process.env.IMPORT_TEST_PASSWORD ?? process.env.PASSWORD, - })) - }, 30000) +beforeAll(async () => { + // eslint-disable-next-line no-extra-semi + ;({ pub, pubpub } = await setupSDK({ + url: IMPORT_TEST_COMMUNITY_URL, + // email: process.env.IMPORT_TEST_EMAIL ?? process.env.EMAIL, + // password: process.env.IMPORT_TEST_PASSWORD ?? process.env.PASSWORD, + authToken: process.env.IMPORT_TEST_AUTH_TOKEN ?? process.env.AUTH_TOKEN, + })) +}, 30000) +describe('imports', () => { it('should be able to import a docx file to a pub', async () => { try { const imported = await pubpub.pub.text.import({ @@ -47,6 +48,7 @@ describe('imports', () => { throw e } }, 60000) + it('should be able to export a file, and that file should include the manually added test text', async () => { try { const exported = await pubpub.exportPub({ diff --git a/test/utils/setup.ts b/test/utils/setup.ts index 0638252..a7f8728 100644 --- a/test/utils/setup.ts +++ b/test/utils/setup.ts @@ -4,18 +4,21 @@ export async function setupSDK({ url, email = '', password = '', + authToken = '', }: { url: string email?: string password?: string + authToken?: string }) { const pubpub = await PubPub.createSDK({ communityUrl: url, - email, - password, + ...(authToken ? { authToken } : { email, password }), }) - expect(pubpub.loggedIn).toBeTruthy() + if (!authToken) { + expect(pubpub.loggedIn).toBeTruthy() + } const { body } = await pubpub.pub.create() From 4224a447c4b9291ae3f87d395866c0e7a88def1f Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 22 May 2024 17:46:57 +0200 Subject: [PATCH 05/11] docs: update docs --- readme.md | 831 +++++++++++++++++++++++++++++++--------- src/lib/client-types.ts | 35 +- 2 files changed, 668 insertions(+), 198 deletions(-) diff --git a/readme.md b/readme.md index 94664e7..8e65a3b 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,3 @@ - @@ -13,115 +12,416 @@ Official Node.js SDK for [PubPub](https://pubpub.org/). ## Contents -* [Installation](#installation) -* [Usage](#usage) -* [Limitations](#limitations) - * [Creating or deleting communities](#creating-or-deleting-communities) - * [Creating, deleting, or modifying users](#creating-deleting-or-modifying-users) -* [Guides](#guides) - * [Starting](#starting) - * [Querying](#querying) - * [`get`/`GET /api//`](#getget-apimodelsid) - * [`getMany`/`GET /api/`](#getmanyget-apimodels) -* [API](#api) - * [`pubpub.auth`](#pubpubauth) - * [`pubpub.auth.login`](#pubpubauthlogin) - * [`pubpub.auth.logout`](#pubpubauthlogout) - * [`pubpub.collection`](#pubpubcollection) - * [`pubpub.collection.create`](#pubpubcollectioncreate) - * [`pubpub.collection.doi`](#pubpubcollectiondoi) - * [`pubpub.collection.get`](#pubpubcollectionget) - * [`pubpub.collection.getMany`](#pubpubcollectiongetmany) - * [`pubpub.collection.getResource`](#pubpubcollectiongetresource) - * [`pubpub.collection.remove`](#pubpubcollectionremove) - * [`pubpub.collection.update`](#pubpubcollectionupdate) - * [`pubpub.collectionAttribution`](#pubpubcollectionattribution) - * [`pubpub.collectionAttribution.batchCreate`](#pubpubcollectionattributionbatchcreate) - * [`pubpub.collectionAttribution.create`](#pubpubcollectionattributioncreate) - * [`pubpub.collectionAttribution.get`](#pubpubcollectionattributionget) - * [`pubpub.collectionAttribution.getMany`](#pubpubcollectionattributiongetmany) - * [`pubpub.collectionAttribution.remove`](#pubpubcollectionattributionremove) - * [`pubpub.collectionAttribution.update`](#pubpubcollectionattributionupdate) - * [`pubpub.collectionPub`](#pubpubcollectionpub) - * [`pubpub.collectionPub.create`](#pubpubcollectionpubcreate) - * [`pubpub.collectionPub.get`](#pubpubcollectionpubget) - * [`pubpub.collectionPub.remove`](#pubpubcollectionpubremove) - * [`pubpub.collectionPub.update`](#pubpubcollectionpubupdate) - * [`pubpub.community`](#pubpubcommunity) - * [`pubpub.community.create`](#pubpubcommunitycreate) - * [`pubpub.community.get`](#pubpubcommunityget) - * [`pubpub.community.getCommunities`](#pubpubcommunitygetcommunities) - * [`pubpub.community.update`](#pubpubcommunityupdate) - * [`pubpub.customScript`](#pubpubcustomscript) - * [`pubpub.customScript.set`](#pubpubcustomscriptset) - * [`pubpub.facets`](#pubpubfacets) - * [`pubpub.facets.update`](#pubpubfacetsupdate) - * [`pubpub.member`](#pubpubmember) - * [`pubpub.member.create`](#pubpubmembercreate) - * [`pubpub.member.get`](#pubpubmemberget) - * [`pubpub.member.getMany`](#pubpubmembergetmany) - * [`pubpub.member.remove`](#pubpubmemberremove) - * [`pubpub.member.update`](#pubpubmemberupdate) - * [`pubpub.page`](#pubpubpage) - * [`pubpub.page.create`](#pubpubpagecreate) - * [`pubpub.page.get`](#pubpubpageget) - * [`pubpub.page.getMany`](#pubpubpagegetmany) - * [`pubpub.page.remove`](#pubpubpageremove) - * [`pubpub.page.update`](#pubpubpageupdate) - * [`pubpub.pub.doi`](#pubpubpubdoi) - * [`pubpub.pub.get`](#pubpubpubget) - * [`pubpub.pub.getMany`](#pubpubpubgetmany) - * [`pubpub.pub.getResource`](#pubpubpubgetresource) - * [`pubpub.pub.queryMany`](#pubpubpubquerymany) - * [`pubpub.pub.remove`](#pubpubpubremove) - * [`pubpub.pub.text`](#pubpubpubtext) - * [`pubpub.pub.update`](#pubpubpubupdate) - * [`pubpub.pubAttribution`](#pubpubpubattribution) - * [`pubpub.pubAttribution.batchCreate`](#pubpubpubattributionbatchcreate) - * [`pubpub.pubAttribution.create`](#pubpubpubattributioncreate) - * [`pubpub.pubAttribution.get`](#pubpubpubattributionget) - * [`pubpub.pubAttribution.getMany`](#pubpubpubattributiongetmany) - * [`pubpub.pubAttribution.remove`](#pubpubpubattributionremove) - * [`pubpub.pubAttribution.update`](#pubpubpubattributionupdate) - * [`pubpub.pubEdge`](#pubpubpubedge) - * [`pubpub.pubEdge.create`](#pubpubpubedgecreate) - * [`pubpub.pubEdge.get`](#pubpubpubedgeget) - * [`pubpub.pubEdge.remove`](#pubpubpubedgeremove) - * [`pubpub.pubEdge.update`](#pubpubpubedgeupdate) - * [`pubpub.pubEdge.updateApprovedByTarget`](#pubpubpubedgeupdateapprovedbytarget) - * [`pubpub.release`](#pubpubrelease) - * [`pubpub.release.create`](#pubpubreleasecreate) - * [`pubpub.upload`](#pubpubupload) - * [`pubpub.upload.file`](#pubpubuploadfile) - * [`pubpub.upload.policy`](#pubpubuploadpolicy) - * [`pubpub.workerTask`](#pubpubworkertask) - * [`pubpub.workerTask.createExport`](#pubpubworkertaskcreateexport) - * [`pubpub.workerTask.createImport`](#pubpubworkertaskcreateimport) - * [`pubpub.workerTask.get`](#pubpubworkertaskget) - * [Other types](#other-types) - * [Attribution](#attribution) - * [CollectionPub](#collectionpub) - * [Discussion](#discussion) - * [Release](#release) - * [Pub](#pub) - * [Member](#member) - * [Page](#page) - * [Community](#community) - * [Collection](#collection) - * [User](#user) - * [Review](#review) - * [Submission](#submission) - * [Draft](#draft) -* [Contributing](#contributing) - * [Development](#development) - * [Testing](#testing) - * [Publishing](#publishing) - * [Generating docs](#generating-docs) -* [TODO](#todo) -* [FAQ](#faq) - * [How do I get the ID of my community/page/collection?](#how-do-i-get-the-id-of-my-communitypagecollection) - * [Can I run this in the browser?](#can-i-run-this-in-the-browser) -* [License](#license) +- [PubPub SDK](#pubpub-sdk) + - [Contents](#contents) + - [Installation](#installation) + - [Usage](#usage) + - [Limitations](#limitations) + - [Creating or deleting communities](#creating-or-deleting-communities) + - [Creating, deleting, or modifying users](#creating-deleting-or-modifying-users) + - [Guides](#guides) + - [Starting](#starting) + - [Querying](#querying) + - [`get`/`GET /api//`](#getget-apimodelsid) + - [`getMany`/`GET /api/`](#getmanyget-apimodels) + - [Pagination](#pagination) + - [Defaults](#defaults) + - [Example](#example) + - [Sorting](#sorting) + - [Options](#options) + - [Defaults](#defaults-1) + - [Example](#example-1) + - [Includes](#includes) + - [Attributes](#attributes) + - [Default](#default) + - [Example](#example-2) + - [Filter](#filter) + - [Equality](#equality) + - [OR](#or) + - [AND](#and) + - [Existence](#existence) + - [String properties](#string-properties) + - [Enum filters](#enum-filters) + - [`id` filters](#id-filters) + - [`number` or `Date` filters](#number-or-date-filters) + - [API](#api) + - [`pubpub.auth`](#pubpubauth) + - [`pubpub.auth.login`](#pubpubauthlogin) + - [Access](#access) + - [Route Documentation](#route-documentation) + - [Parameters](#parameters) + - [Returns](#returns) + - [`pubpub.auth.logout`](#pubpubauthlogout) + - [Access](#access-1) + - [Route Documentation](#route-documentation-1) + - [Parameters](#parameters-1) + - [Returns](#returns-1) + - [`pubpub.collection`](#pubpubcollection) + - [`pubpub.collection.create`](#pubpubcollectioncreate) + - [Access](#access-2) + - [Route Documentation](#route-documentation-2) + - [Parameters](#parameters-2) + - [Returns](#returns-2) + - [`pubpub.collection.doi`](#pubpubcollectiondoi) + - [`pubpub.collection.doi.deposit`](#pubpubcollectiondoideposit) + - [Access](#access-3) + - [Route Documentation](#route-documentation-3) + - [Parameters](#parameters-3) + - [Returns](#returns-3) + - [`pubpub.collection.doi.preview`](#pubpubcollectiondoipreview) + - [Access](#access-4) + - [Route Documentation](#route-documentation-4) + - [Parameters](#parameters-4) + - [Returns](#returns-4) + - [`pubpub.collection.get`](#pubpubcollectionget) + - [Access](#access-5) + - [Route Documentation](#route-documentation-5) + - [Parameters](#parameters-5) + - [Returns](#returns-5) + - [`pubpub.collection.getMany`](#pubpubcollectiongetmany) + - [Access](#access-6) + - [Route Documentation](#route-documentation-6) + - [Parameters](#parameters-6) + - [Returns](#returns-6) + - [`pubpub.collection.getResource`](#pubpubcollectiongetresource) + - [Access](#access-7) + - [Route Documentation](#route-documentation-7) + - [Parameters](#parameters-7) + - [Returns](#returns-7) + - [`pubpub.collection.remove`](#pubpubcollectionremove) + - [Access](#access-8) + - [Route Documentation](#route-documentation-8) + - [Parameters](#parameters-8) + - [Returns](#returns-8) + - [`pubpub.collection.update`](#pubpubcollectionupdate) + - [Access](#access-9) + - [Route Documentation](#route-documentation-9) + - [Parameters](#parameters-9) + - [Returns](#returns-9) + - [`pubpub.collectionAttribution`](#pubpubcollectionattribution) + - [`pubpub.collectionAttribution.batchCreate`](#pubpubcollectionattributionbatchcreate) + - [Access](#access-10) + - [Route Documentation](#route-documentation-10) + - [Parameters](#parameters-10) + - [Returns](#returns-10) + - [`pubpub.collectionAttribution.create`](#pubpubcollectionattributioncreate) + - [Access](#access-11) + - [Route Documentation](#route-documentation-11) + - [Parameters](#parameters-11) + - [Returns](#returns-11) + - [`pubpub.collectionAttribution.get`](#pubpubcollectionattributionget) + - [Access](#access-12) + - [Route Documentation](#route-documentation-12) + - [Parameters](#parameters-12) + - [Returns](#returns-12) + - [`pubpub.collectionAttribution.getMany`](#pubpubcollectionattributiongetmany) + - [Access](#access-13) + - [Route Documentation](#route-documentation-13) + - [Parameters](#parameters-13) + - [Returns](#returns-13) + - [`pubpub.collectionAttribution.remove`](#pubpubcollectionattributionremove) + - [Access](#access-14) + - [Route Documentation](#route-documentation-14) + - [Parameters](#parameters-14) + - [Returns](#returns-14) + - [`pubpub.collectionAttribution.update`](#pubpubcollectionattributionupdate) + - [Access](#access-15) + - [Route Documentation](#route-documentation-15) + - [Parameters](#parameters-15) + - [Returns](#returns-15) + - [`pubpub.collectionPub`](#pubpubcollectionpub) + - [`pubpub.collectionPub.create`](#pubpubcollectionpubcreate) + - [Access](#access-16) + - [Route Documentation](#route-documentation-16) + - [Parameters](#parameters-16) + - [Returns](#returns-16) + - [`pubpub.collectionPub.get`](#pubpubcollectionpubget) + - [Access](#access-17) + - [Route Documentation](#route-documentation-17) + - [Parameters](#parameters-17) + - [Returns](#returns-17) + - [`pubpub.collectionPub.remove`](#pubpubcollectionpubremove) + - [Access](#access-18) + - [Route Documentation](#route-documentation-18) + - [Parameters](#parameters-18) + - [Returns](#returns-18) + - [`pubpub.collectionPub.update`](#pubpubcollectionpubupdate) + - [Access](#access-19) + - [Route Documentation](#route-documentation-19) + - [Parameters](#parameters-19) + - [Returns](#returns-19) + - [`pubpub.community`](#pubpubcommunity) + - [`pubpub.community.create`](#pubpubcommunitycreate) + - [Access](#access-20) + - [Route Documentation](#route-documentation-20) + - [Parameters](#parameters-20) + - [Returns](#returns-20) + - [`pubpub.community.get`](#pubpubcommunityget) + - [Access](#access-21) + - [Route Documentation](#route-documentation-21) + - [Parameters](#parameters-21) + - [Returns](#returns-21) + - [`pubpub.community.getCommunities`](#pubpubcommunitygetcommunities) + - [Access](#access-22) + - [Route Documentation](#route-documentation-22) + - [Parameters](#parameters-22) + - [Returns](#returns-22) + - [`pubpub.community.update`](#pubpubcommunityupdate) + - [Access](#access-23) + - [Route Documentation](#route-documentation-23) + - [Parameters](#parameters-23) + - [Returns](#returns-23) + - [`pubpub.customScript`](#pubpubcustomscript) + - [`pubpub.customScript.set`](#pubpubcustomscriptset) + - [Example](#example-3) + - [Access](#access-24) + - [Route Documentation](#route-documentation-24) + - [Parameters](#parameters-24) + - [Returns](#returns-24) + - [`pubpub.facets`](#pubpubfacets) + - [`pubpub.facets.update`](#pubpubfacetsupdate) + - [Access](#access-25) + - [Route Documentation](#route-documentation-25) + - [Parameters](#parameters-25) + - [Returns](#returns-25) + - [`pubpub.member`](#pubpubmember) + - [`pubpub.member.create`](#pubpubmembercreate) + - [Access](#access-26) + - [Route Documentation](#route-documentation-26) + - [Parameters](#parameters-26) + - [Returns](#returns-26) + - [`pubpub.member.get`](#pubpubmemberget) + - [Access](#access-27) + - [Route Documentation](#route-documentation-27) + - [Parameters](#parameters-27) + - [Returns](#returns-27) + - [`pubpub.member.getMany`](#pubpubmembergetmany) + - [Access](#access-28) + - [Route Documentation](#route-documentation-28) + - [Parameters](#parameters-28) + - [Returns](#returns-28) + - [`pubpub.member.remove`](#pubpubmemberremove) + - [Access](#access-29) + - [Route Documentation](#route-documentation-29) + - [Parameters](#parameters-29) + - [Returns](#returns-29) + - [`pubpub.member.update`](#pubpubmemberupdate) + - [Access](#access-30) + - [Route Documentation](#route-documentation-30) + - [Parameters](#parameters-30) + - [Returns](#returns-30) + - [`pubpub.page`](#pubpubpage) + - [`pubpub.page.create`](#pubpubpagecreate) + - [Access](#access-31) + - [Route Documentation](#route-documentation-31) + - [Parameters](#parameters-31) + - [Returns](#returns-31) + - [`pubpub.page.get`](#pubpubpageget) + - [Access](#access-32) + - [Route Documentation](#route-documentation-32) + - [Parameters](#parameters-32) + - [Returns](#returns-32) + - [`pubpub.page.getMany`](#pubpubpagegetmany) + - [Access](#access-33) + - [Route Documentation](#route-documentation-33) + - [Parameters](#parameters-33) + - [Returns](#returns-33) + - [`pubpub.page.remove`](#pubpubpageremove) + - [Access](#access-34) + - [Route Documentation](#route-documentation-34) + - [Parameters](#parameters-34) + - [Returns](#returns-34) + - [`pubpub.page.update`](#pubpubpageupdate) + - [Access](#access-35) + - [Route Documentation](#route-documentation-35) + - [Parameters](#parameters-35) + - [Returns](#returns-35) + - [`pubpub.pub.doi`](#pubpubpubdoi) + - [`pubpub.pub.doi.deposit`](#pubpubpubdoideposit) + - [Access](#access-36) + - [Route Documentation](#route-documentation-36) + - [Parameters](#parameters-36) + - [Returns](#returns-36) + - [`pubpub.pub.doi.preview`](#pubpubpubdoipreview) + - [Access](#access-37) + - [Route Documentation](#route-documentation-37) + - [Parameters](#parameters-37) + - [Returns](#returns-37) + - [`pubpub.pub.get`](#pubpubpubget) + - [Access](#access-38) + - [Route Documentation](#route-documentation-38) + - [Parameters](#parameters-38) + - [Returns](#returns-38) + - [`pubpub.pub.getMany`](#pubpubpubgetmany) + - [Access](#access-39) + - [Route Documentation](#route-documentation-39) + - [Parameters](#parameters-39) + - [Returns](#returns-39) + - [`pubpub.pub.getResource`](#pubpubpubgetresource) + - [Access](#access-40) + - [Route Documentation](#route-documentation-40) + - [Parameters](#parameters-40) + - [Returns](#returns-40) + - [`pubpub.pub.queryMany`](#pubpubpubquerymany) + - [Access](#access-41) + - [Route Documentation](#route-documentation-41) + - [Parameters](#parameters-41) + - [Returns](#returns-41) + - [`pubpub.pub.remove`](#pubpubpubremove) + - [Access](#access-42) + - [Route Documentation](#route-documentation-42) + - [Parameters](#parameters-42) + - [Returns](#returns-42) + - [`pubpub.pub.text`](#pubpubpubtext) + - [`pubpub.pub.text.convert`](#pubpubpubtextconvert) + - [Access](#access-43) + - [Route Documentation](#route-documentation-43) + - [Parameters](#parameters-43) + - [Returns](#returns-43) + - [`pubpub.pub.text.get`](#pubpubpubtextget) + - [Access](#access-44) + - [Route Documentation](#route-documentation-44) + - [Parameters](#parameters-44) + - [Returns](#returns-44) + - [`pubpub.pub.text.import`](#pubpubpubtextimport) + - [Access](#access-45) + - [Route Documentation](#route-documentation-45) + - [Parameters](#parameters-45) + - [Returns](#returns-45) + - [`pubpub.pub.text.importOld`](#pubpubpubtextimportold) + - [Access](#access-46) + - [Route Documentation](#route-documentation-46) + - [Parameters](#parameters-46) + - [Returns](#returns-46) + - [`pubpub.pub.text.importToPub`](#pubpubpubtextimporttopub) + - [Access](#access-47) + - [Route Documentation](#route-documentation-47) + - [Parameters](#parameters-47) + - [Returns](#returns-47) + - [`pubpub.pub.text.update`](#pubpubpubtextupdate) + - [Access](#access-48) + - [Route Documentation](#route-documentation-48) + - [Parameters](#parameters-48) + - [Returns](#returns-48) + - [`pubpub.pub.update`](#pubpubpubupdate) + - [Access](#access-49) + - [Route Documentation](#route-documentation-49) + - [Parameters](#parameters-49) + - [Returns](#returns-49) + - [`pubpub.pubAttribution`](#pubpubpubattribution) + - [`pubpub.pubAttribution.batchCreate`](#pubpubpubattributionbatchcreate) + - [Access](#access-50) + - [Route Documentation](#route-documentation-50) + - [Parameters](#parameters-50) + - [Returns](#returns-50) + - [`pubpub.pubAttribution.create`](#pubpubpubattributioncreate) + - [Access](#access-51) + - [Route Documentation](#route-documentation-51) + - [Parameters](#parameters-51) + - [Returns](#returns-51) + - [`pubpub.pubAttribution.get`](#pubpubpubattributionget) + - [Access](#access-52) + - [Route Documentation](#route-documentation-52) + - [Parameters](#parameters-52) + - [Returns](#returns-52) + - [`pubpub.pubAttribution.getMany`](#pubpubpubattributiongetmany) + - [Access](#access-53) + - [Route Documentation](#route-documentation-53) + - [Parameters](#parameters-53) + - [Returns](#returns-53) + - [`pubpub.pubAttribution.remove`](#pubpubpubattributionremove) + - [Access](#access-54) + - [Route Documentation](#route-documentation-54) + - [Parameters](#parameters-54) + - [Returns](#returns-54) + - [`pubpub.pubAttribution.update`](#pubpubpubattributionupdate) + - [Access](#access-55) + - [Route Documentation](#route-documentation-55) + - [Parameters](#parameters-55) + - [Returns](#returns-55) + - [`pubpub.pubEdge`](#pubpubpubedge) + - [`pubpub.pubEdge.create`](#pubpubpubedgecreate) + - [Access](#access-56) + - [Route Documentation](#route-documentation-56) + - [Parameters](#parameters-56) + - [Returns](#returns-56) + - [`pubpub.pubEdge.get`](#pubpubpubedgeget) + - [Access](#access-57) + - [Route Documentation](#route-documentation-57) + - [Parameters](#parameters-57) + - [Returns](#returns-57) + - [`pubpub.pubEdge.remove`](#pubpubpubedgeremove) + - [Access](#access-58) + - [Route Documentation](#route-documentation-58) + - [Parameters](#parameters-58) + - [Returns](#returns-58) + - [`pubpub.pubEdge.update`](#pubpubpubedgeupdate) + - [Access](#access-59) + - [Route Documentation](#route-documentation-59) + - [Parameters](#parameters-59) + - [Returns](#returns-59) + - [`pubpub.pubEdge.updateApprovedByTarget`](#pubpubpubedgeupdateapprovedbytarget) + - [Access](#access-60) + - [Route Documentation](#route-documentation-60) + - [Parameters](#parameters-60) + - [Returns](#returns-60) + - [`pubpub.release`](#pubpubrelease) + - [`pubpub.release.create`](#pubpubreleasecreate) + - [Access](#access-61) + - [Route Documentation](#route-documentation-61) + - [Parameters](#parameters-61) + - [Returns](#returns-61) + - [`pubpub.upload`](#pubpubupload) + - [`pubpub.upload.file`](#pubpubuploadfile) + - [Access](#access-62) + - [Route Documentation](#route-documentation-62) + - [Parameters](#parameters-62) + - [Returns](#returns-62) + - [`pubpub.upload.policy`](#pubpubuploadpolicy) + - [Access](#access-63) + - [Route Documentation](#route-documentation-63) + - [Parameters](#parameters-63) + - [Returns](#returns-63) + - [`pubpub.workerTask`](#pubpubworkertask) + - [`pubpub.workerTask.createExport`](#pubpubworkertaskcreateexport) + - [Access](#access-64) + - [Route Documentation](#route-documentation-64) + - [Parameters](#parameters-64) + - [Returns](#returns-64) + - [`pubpub.workerTask.createImport`](#pubpubworkertaskcreateimport) + - [Access](#access-65) + - [Route Documentation](#route-documentation-65) + - [Parameters](#parameters-65) + - [Returns](#returns-65) + - [`pubpub.workerTask.get`](#pubpubworkertaskget) + - [Access](#access-66) + - [Route Documentation](#route-documentation-66) + - [Parameters](#parameters-66) + - [Returns](#returns-66) + - [Other types](#other-types) + - [Attribution](#attribution) + - [CollectionPub](#collectionpub) + - [Discussion](#discussion) + - [Release](#release) + - [Pub](#pub) + - [Member](#member) + - [Page](#page) + - [Community](#community) + - [Collection](#collection) + - [User](#user) + - [Review](#review) + - [Submission](#submission) + - [Draft](#draft) + - [Contributing](#contributing) + - [Development](#development) + - [Testing](#testing) + - [Publishing](#publishing) + - [Generating docs](#generating-docs) + - [TODO](#todo) + - [FAQ](#faq) + - [How do I get the ID of my community/page/collection?](#how-do-i-get-the-id-of-my-communitypagecollection) + - [Can I run this in the browser?](#can-i-run-this-in-the-browser) + - [License](#license) ## Installation @@ -238,8 +538,8 @@ By providing a `limit` and `offset` parameter, you can paginate the results. ###### Defaults -* `limit`: `10` -* `offset`: `0` +- `limit`: `10` +- `offset`: `0` ###### Example @@ -267,8 +567,8 @@ The `orderBy` parameters can also be some fiels of the model, depending on the m ###### Defaults -* `orderBy`: `createdAt` -* `sortBy`: `DESC` +- `orderBy`: `createdAt` +- `sortBy`: `DESC` ###### Example @@ -1616,11 +1916,11 @@ batchCreate: (input, rest?) => avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined }[] @@ -1668,11 +1968,11 @@ Promise<{ avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined }[] @@ -1697,11 +1997,11 @@ create: (input, rest?) => avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined } @@ -1759,11 +2059,11 @@ Promise<{ avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined } @@ -1788,11 +2088,11 @@ get: (input) => avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined collection?: Collection @@ -1836,11 +2136,11 @@ You need to be an **admin** of this community in order to access this resource. | 'avatar' | 'name' | 'order' + | 'userId' + | 'orcid' | 'isAuthor' | 'roles' | 'affiliation' - | 'orcid' - | 'userId' )[] | undefined } @@ -1860,11 +2160,11 @@ Promise<{ avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined collection?: Collection @@ -1891,11 +2191,11 @@ getMany: (input?) => avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined collection?: Collection @@ -1939,14 +2239,14 @@ You need to be an **admin** of this community in order to access this resource. avatar?: StringFilter name?: StringFilter order?: NumberFilter + userId?: string | boolean | string[] | undefined + orcid?: StringFilter isAuthor?: boolean | undefined roles?: | ( StringFilter )[] | undefined affiliation?: StringFilter - orcid?: StringFilter - userId?: string | boolean | string[] | undefined createdAt?: DateFilter updatedAt?: DateFilter } @@ -1962,11 +2262,11 @@ You need to be an **admin** of this community in order to access this resource. | 'avatar' | 'name' | 'order' + | 'userId' + | 'orcid' | 'isAuthor' | 'roles' | 'affiliation' - | 'orcid' - | 'userId' )[] | undefined } & { @@ -1976,14 +2276,14 @@ You need to be an **admin** of this community in order to access this resource. avatar?: StringFilter name?: StringFilter order?: NumberFilter + userId?: string | boolean | string[] | undefined + orcid?: StringFilter isAuthor?: boolean | undefined roles?: | ( StringFilter )[] | undefined affiliation?: StringFilter - orcid?: StringFilter - userId?: string | boolean | string[] | undefined createdAt?: DateFilter updatedAt?: DateFilter }) @@ -2011,11 +2311,11 @@ Promise<{ avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined collection?: Collection @@ -2091,11 +2391,11 @@ update: (input, rest?) => avatar?: string | null | undefined name?: string | null | undefined order?: number | undefined + userId?: string | null | undefined + orcid?: string | null | undefined isAuthor?: boolean | null | undefined roles?: string[] | null | undefined affiliation?: string | null | undefined - orcid?: string | null | undefined - userId?: string | null | undefined } headers: Headers }> @@ -2152,11 +2452,11 @@ Promise<{ avatar?: string | null | undefined name?: string | null | undefined order?: number | undefined + userId?: string | null | undefined + orcid?: string | null | undefined isAuthor?: boolean | null | undefined roles?: string[] | null | undefined affiliation?: string | null | undefined - orcid?: string | null | undefined - userId?: string | null | undefined } headers: Headers }> @@ -2299,6 +2599,8 @@ You need to be **logged in** and have access to this resource. collectionId: string communityId: string pubId?: string | undefined + limit?: number | undefined + offset?: number | undefined } cache?: RequestCache | undefined extraHeaders?: @@ -2626,13 +2928,23 @@ get: (input) => website: string | null facebook: string | null twitter: string | null + instagram: string | null + mastodon: string | null + linkedin: string | null + bluesky: string | null + github: string | null email: string | null + socialLinksLocation: 'header' | 'footer' | null issn: string | null isFeatured: boolean | null viewHash: string | null editHash: string | null premiumLicenseFlag: boolean | null defaultPubCollections: string[] | null + analyticsSettings: + | { type: 'google-analytics'; credentials: string } + | { type: 'simple-analytics'; credentials: null } + | null spamTagId: string | null organizationId: string | null scopeSummaryId: string | null @@ -2808,13 +3120,29 @@ Promise<{ website: string | null facebook: string | null twitter: string | null + instagram: string | null + mastodon: string | null + linkedin: string | null + bluesky: string | null + github: string | null email: string | null + socialLinksLocation: 'header' | 'footer' | null issn: string | null isFeatured: boolean | null viewHash: string | null editHash: string | null premiumLicenseFlag: boolean | null defaultPubCollections: string[] | null + analyticsSettings: + | { + type: 'google-analytics' + credentials: string + } + | { + type: 'simple-analytics' + credentials: null + } + | null spamTagId: string | null organizationId: string | null scopeSummaryId: string | null @@ -2917,13 +3245,23 @@ getCommunities: (input?) => website: string | null facebook: string | null twitter: string | null + instagram: string | null + mastodon: string | null + linkedin: string | null + bluesky: string | null + github: string | null email: string | null + socialLinksLocation: 'header' | 'footer' | null issn: string | null isFeatured: boolean | null viewHash: string | null editHash: string | null premiumLicenseFlag: boolean | null defaultPubCollections: string[] | null + analyticsSettings: + | { type: 'google-analytics'; credentials: string } + | { type: 'simple-analytics'; credentials: null } + | null spamTagId: string | null organizationId: string | null scopeSummaryId: string | null @@ -3092,13 +3430,29 @@ Promise<{ website: string | null facebook: string | null twitter: string | null + instagram: string | null + mastodon: string | null + linkedin: string | null + bluesky: string | null + github: string | null email: string | null + socialLinksLocation: 'header' | 'footer' | null issn: string | null isFeatured: boolean | null viewHash: string | null editHash: string | null premiumLicenseFlag: boolean | null defaultPubCollections: string[] | null + analyticsSettings: + | { + type: 'google-analytics' + credentials: string + } + | { + type: 'simple-analytics' + credentials: null + } + | null spamTagId: string | null organizationId: string | null scopeSummaryId: string | null @@ -3204,13 +3558,24 @@ update: (input?, rest?) => website?: string | null | undefined facebook?: string | null | undefined twitter?: string | null | undefined + instagram?: string | null | undefined + mastodon?: string | null | undefined + linkedin?: string | null | undefined + bluesky?: string | null | undefined + github?: string | null | undefined email?: string | null | undefined + socialLinksLocation?: 'header' | 'footer' | null | undefined issn?: string | null | undefined isFeatured?: boolean | null | undefined viewHash?: string | null | undefined editHash?: string | null | undefined premiumLicenseFlag?: boolean | null | undefined defaultPubCollections?: string[] | null | undefined + analyticsSettings?: + | { type: 'google-analytics'; credentials: string } + | { type: 'simple-analytics'; credentials: null } + | null + | undefined spamTagId?: string | null | undefined organizationId?: string | null | undefined scopeSummaryId?: string | null | undefined @@ -3238,7 +3603,18 @@ You need to be **logged in** and have access to this resource. accentColorDark: string accentColorLight: string accentTextColor: string + analyticsSettings: + | null + | { + credentials: string + type: 'google-analytics' + } + | { + credentials: null + type: 'simple-analytics' + } avatar: null | string + bluesky: null | string citeAs: null | string defaultPubCollections: null | string[] description: null | string @@ -3271,6 +3647,7 @@ You need to be **logged in** and have access to this resource. )[] footerLogoLink: null | string footerTitle: null | string + github: null | string headerColorType: null | 'light' | 'dark' | 'custom' headerLinks: | null @@ -3300,8 +3677,11 @@ You need to be **logged in** and have access to this resource. hideHeaderLogo: null | boolean hideHero: null | boolean hideNav: null | boolean + instagram: null | string isFeatured: null | boolean issn: null | string + linkedin: null | string + mastodon: null | string navLinks: | null | ( @@ -3348,6 +3728,7 @@ You need to be **logged in** and have access to this resource. premiumLicenseFlag: null | boolean publishAs: null | string scopeSummaryId: null | string + socialLinksLocation: null | 'header' | 'footer' spamTagId: null | string subdomain: string title: string @@ -3515,13 +3896,30 @@ Promise<{ website?: string | null | undefined facebook?: string | null | undefined twitter?: string | null | undefined + instagram?: string | null | undefined + mastodon?: string | null | undefined + linkedin?: string | null | undefined + bluesky?: string | null | undefined + github?: string | null | undefined email?: string | null | undefined + socialLinksLocation?: 'header' | 'footer' | null | undefined issn?: string | null | undefined isFeatured?: boolean | null | undefined viewHash?: string | null | undefined editHash?: string | null | undefined premiumLicenseFlag?: boolean | null | undefined defaultPubCollections?: string[] | null | undefined + analyticsSettings?: + | { + type: 'google-analytics' + credentials: string + } + | { + type: 'simple-analytics' + credentials: null + } + | null + | undefined spamTagId?: string | null | undefined organizationId?: string | null | undefined scopeSummaryId?: string | null | undefined @@ -5920,7 +6318,65 @@ Promise<{ Create a pub and upload a file and import it to a pub. ```ts -import: (input, rest?) => Promise<{ status: 201; body: { pub: { id: string; communityId: string; title: string; description: string | null; avatar: string | null; viewHash: string | null; editHash: string | null; scopeSummaryId: string | null; slug: string; metadata: { mtg_id: string; bibcode: string; mtg_presentation_id: string; } | null; doi: string | null; crossrefDepositRecordId: string | null; attributions: { id: string; pubId: string; title: string | null; avatar: string | null; name: string | null; order: number; isAuthor: boolean | null; roles: string[] | null; affiliation: string | null; orcid: string | null; userId: string | null; createdAt?: string | undefined; updatedAt?: string | undefined; }[]; htmlTitle: string | null; htmlDescription: string | null; customPublishedAt: string | null; labels: { id: string; title: string; color: string; publicApply: boolean; }[] | null; downloads: { createdAt: string; type: "formatted"; url: string; }[] | null; reviewHash: string | null; commentHash: string | null; draftId: string; createdAt?: string | undefined; updatedAt?: string | undefined; }; doc: { type: "doc"; content: any[]; attrs?: Record | undefined; }; }; headers: Headers; }>; +;(input, rest?) => + Promise<{ + status: 201 + body: { + pub: { + id: string + communityId: string + title: string + description: string | null + avatar: string | null + viewHash: string | null + editHash: string | null + scopeSummaryId: string | null + slug: string + metadata: { + mtg_id: string + bibcode: string + mtg_presentation_id: string + } | null + doi: string | null + crossrefDepositRecordId: string | null + attributions: { + id: string + pubId: string + title: string | null + avatar: string | null + name: string | null + order: number + userId: string | null + orcid: string | null + isAuthor: boolean | null + roles: string[] | null + affiliation: string | null + createdAt?: string | undefined + updatedAt?: string | undefined + }[] + htmlTitle: string | null + htmlDescription: string | null + customPublishedAt: string | null + labels: + | { id: string; title: string; color: string; publicApply: boolean }[] + | null + downloads: + | { createdAt: string; type: 'formatted'; url: string }[] + | null + reviewHash: string | null + commentHash: string | null + draftId: string + createdAt?: string | undefined + updatedAt?: string | undefined + } + doc: { + type: 'doc' + content: any[] + attrs?: Record | undefined + } + } + headers: Headers + }> ``` ###### Access @@ -6405,11 +6861,11 @@ batchCreate: (input, rest?) => avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined }[] @@ -6457,11 +6913,11 @@ Promise<{ avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined }[] @@ -6487,11 +6943,11 @@ create: (input, rest?) => avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined } @@ -6552,11 +7008,11 @@ Promise< avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined } @@ -6587,11 +7043,11 @@ get: (input) => avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined pub?: Pub @@ -6635,11 +7091,11 @@ You need to be an **admin** of this community in order to access this resource. | 'avatar' | 'name' | 'order' + | 'userId' + | 'orcid' | 'isAuthor' | 'roles' | 'affiliation' - | 'orcid' - | 'userId' )[] | undefined } @@ -6659,11 +7115,11 @@ Promise<{ avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined pub?: Pub @@ -6690,11 +7146,11 @@ getMany: (input?) => avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined pub?: Pub @@ -6738,14 +7194,14 @@ You need to be an **admin** of this community in order to access this resource. avatar?: StringFilter name?: StringFilter order?: NumberFilter + userId?: string | boolean | string[] | undefined + orcid?: StringFilter isAuthor?: boolean | undefined roles?: | ( StringFilter )[] | undefined affiliation?: StringFilter - orcid?: StringFilter - userId?: string | boolean | string[] | undefined createdAt?: DateFilter updatedAt?: DateFilter } @@ -6761,11 +7217,11 @@ You need to be an **admin** of this community in order to access this resource. | 'avatar' | 'name' | 'order' + | 'userId' + | 'orcid' | 'isAuthor' | 'roles' | 'affiliation' - | 'orcid' - | 'userId' )[] | undefined } & { @@ -6775,14 +7231,14 @@ You need to be an **admin** of this community in order to access this resource. avatar?: StringFilter name?: StringFilter order?: NumberFilter + userId?: string | boolean | string[] | undefined + orcid?: StringFilter isAuthor?: boolean | undefined roles?: | ( StringFilter )[] | undefined affiliation?: StringFilter - orcid?: StringFilter - userId?: string | boolean | string[] | undefined createdAt?: DateFilter updatedAt?: DateFilter }) @@ -6810,11 +7266,11 @@ Promise<{ avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined pub?: Pub @@ -6901,11 +7357,11 @@ update: (input, rest?) => avatar?: string | null | undefined name?: string | null | undefined order?: number | undefined + userId?: string | null | undefined + orcid?: string | null | undefined isAuthor?: boolean | null | undefined roles?: string[] | null | undefined affiliation?: string | null | undefined - orcid?: string | null | undefined - userId?: string | null | undefined } headers: Headers } @@ -6965,11 +7421,11 @@ Promise< avatar?: string | null | undefined name?: string | null | undefined order?: number | undefined + userId?: string | null | undefined + orcid?: string | null | undefined isAuthor?: boolean | null | undefined roles?: string[] | null | undefined affiliation?: string | null | undefined - orcid?: string | null | undefined - userId?: string | null | undefined } headers: Headers } @@ -7993,11 +8449,11 @@ Promise< avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined } @@ -8036,11 +8492,11 @@ Promise< avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined }[] @@ -8121,11 +8577,11 @@ Promise< avatar: string | null name: string | null order: number + userId: string | null + orcid: string | null isAuthor: boolean | null roles: string[] | null affiliation: string | null - orcid: string | null - userId: string | null createdAt?: string | undefined updatedAt?: string | undefined }[] @@ -8277,13 +8733,23 @@ Promise< website: string | null facebook: string | null twitter: string | null + instagram: string | null + mastodon: string | null + linkedin: string | null + bluesky: string | null + github: string | null email: string | null + socialLinksLocation: 'header' | 'footer' | null issn: string | null isFeatured: boolean | null viewHash: string | null editHash: string | null premiumLicenseFlag: boolean | null defaultPubCollections: string[] | null + analyticsSettings: + | { type: 'google-analytics'; credentials: string } + | { type: 'simple-analytics'; credentials: null } + | null spamTagId: string | null organizationId: string | null scopeSummaryId: string | null @@ -8330,8 +8796,8 @@ Promise< website: string | null facebook: string | null twitter: string | null + github: string | null slug: string - orcid: string | null firstName: string lastName: string fullName: string @@ -8340,7 +8806,7 @@ Promise< publicEmail: string | null authRedirectHost: string | null location: string | null - github: string | null + orcid: string | null googleScholar: string | null } ``` @@ -8427,9 +8893,9 @@ pnpm generate-docs ## TODO -* \[ ] Add CORS -* \[ ] Add CRUD methods for discussions -* \[ ] Reorder some methods (make attributions a submethod of pub, for example) +- \[ ] Add CORS +- \[ ] Add CRUD methods for discussions +- \[ ] Reorder some methods (make attributions a submethod of pub, for example) ## FAQ @@ -8444,4 +8910,3 @@ While the SDK was designed to also be run in the browser, we are not yet sending ## License GPL-3.0+, PubPub - diff --git a/src/lib/client-types.ts b/src/lib/client-types.ts index 14a71e5..e14f61f 100644 --- a/src/lib/client-types.ts +++ b/src/lib/client-types.ts @@ -59,21 +59,26 @@ export type ProxiedFunction< : (input: Prettify) => R : never -export type ProxiedClient = { - [K in Exclude]: T[K] extends (...args: any[]) => any - ? K extends GetRequests - ? // don't proxy get requests - T[K] extends (...args: infer A) => infer R - ? A[0] extends { params: any } - ? // ? Q extends Partial - (input: A[0]) => R - : (input?: A[0]) => R - : T[K] - : ProxiedFunction - : T[K] extends object - ? ProxiedClient - : T[K] -} +export type ProxiedClient = Omit< + { + [K in keyof T]: K extends RemovedRequests // do not include removed requests + ? never + : T[K] extends (...args: any[]) => any + ? K extends GetRequests + ? // don't proxy get requests + T[K] extends (...args: infer A) => infer R + ? A[0] extends { params: any } + ? // ? Q extends Partial + (input: A[0]) => R + : (input?: A[0]) => R + : T[K] + : ProxiedFunction + : T[K] extends object + ? ProxiedClient + : T[K] + }, + RemovedRequests +> /** * The raw client inferred from `ts-rest`. From 9769e7af343b59741b4abc102651b0caf6b8c9ed Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 22 May 2024 17:49:06 +0200 Subject: [PATCH 06/11] chore: changeset --- .changeset/rotten-llamas-whisper.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/rotten-llamas-whisper.md diff --git a/.changeset/rotten-llamas-whisper.md b/.changeset/rotten-llamas-whisper.md new file mode 100644 index 0000000..01a6b7c --- /dev/null +++ b/.changeset/rotten-llamas-whisper.md @@ -0,0 +1,5 @@ +--- +'pubpub': minor +--- + +Add ability to authenticate using authorization tokens instead of username/password From ee890885fcc2f7cc772c6987d86389e7d8714aa9 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 22 May 2024 18:05:53 +0200 Subject: [PATCH 07/11] chore: changeset --- .changeset/config.json | 3 +- .changeset/rotten-llamas-whisper.md | 5 - CHANGELOG.md | 31 +++-- package.json | 4 +- pnpm-lock.yaml | 169 +++++++++++++--------------- pnpm-workspace.yaml | 1 + 6 files changed, 101 insertions(+), 112 deletions(-) delete mode 100644 .changeset/rotten-llamas-whisper.md diff --git a/.changeset/config.json b/.changeset/config.json index cee6df8..486d527 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -6,6 +6,5 @@ "linked": [], "access": "public", "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": [] + "updateInternalDependencies": "patch" } diff --git a/.changeset/rotten-llamas-whisper.md b/.changeset/rotten-llamas-whisper.md deleted file mode 100644 index 01a6b7c..0000000 --- a/.changeset/rotten-llamas-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'pubpub': minor ---- - -Add ability to authenticate using authorization tokens instead of username/password diff --git a/CHANGELOG.md b/CHANGELOG.md index c404782..d5a285a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # pubpub-client +## 1.1.0 + +### Minor Changes + +- Add ability to authenticate using authorization tokens instead of username/password +- Update changed types + +## 1.0.1 + +### Patch Changes + +- 726f510: Initial Release + +## 1.0.2 + +### Patch Changes + +- Improve types for facets and certain CRUD operations, make `pubpub.pub.text.importToPub` work + ## 0.9.0 ### Minor Changes @@ -71,15 +90,3 @@ ### Minor Changes - Add the ability to import and export pubs - -## 1.0.1 - -### Patch Changes - -- 726f510: Initial Release - -## 1.0.2 - -### Patch Changes - -- Improve types for facets and certain CRUD operations, make `pubpub.pub.text.importToPub` work diff --git a/package.json b/package.json index 18ad19c..e7ce602 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pubpub/sdk", - "version": "1.0.2", + "version": "1.1.0", "description": "Official PubPub API client for Node.js.", "type": "module", "main": "dist/index.cjs", @@ -64,7 +64,7 @@ }, "devDependencies": { "@arethetypeswrong/cli": "^0.9.0", - "@changesets/cli": "^2.26.0", + "@changesets/cli": "^2.27.3", "@commitlint/cli": "^17.0.0", "@commitlint/config-conventional": "^17.0.0", "@jest/types": "^29.6.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bfac5e0..e31dce7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,8 +52,8 @@ importers: specifier: ^0.9.0 version: 0.9.0 '@changesets/cli': - specifier: ^2.26.0 - version: 2.26.2 + specifier: ^2.27.3 + version: 2.27.3 '@commitlint/cli': specifier: ^17.0.0 version: 17.7.1(@swc/core@1.3.84) @@ -3519,14 +3519,14 @@ packages: tslib: 1.10.0 dev: false - /@changesets/apply-release-plan@6.1.4: - resolution: {integrity: sha512-FMpKF1fRlJyCZVYHr3CbinpZZ+6MwvOtWUuO8uo+svcATEoc1zRDcj23pAurJ2TZ/uVz1wFHH6K3NlACy0PLew==} + /@changesets/apply-release-plan@7.0.1: + resolution: {integrity: sha512-aPdSq/R++HOyfEeBGjEe6LNG8gs0KMSyRETD/J2092OkNq8mOioAxyKjMbvVUdzgr/HTawzMOz7lfw339KnsCA==} dependencies: '@babel/runtime': 7.22.15 - '@changesets/config': 2.3.1 - '@changesets/get-version-range-type': 0.3.2 - '@changesets/git': 2.0.0 - '@changesets/types': 5.2.1 + '@changesets/config': 3.0.0 + '@changesets/get-version-range-type': 0.4.0 + '@changesets/git': 3.0.0 + '@changesets/types': 6.0.0 '@manypkg/get-packages': 1.1.3 detect-indent: 6.1.0 fs-extra: 7.0.1 @@ -3537,51 +3537,50 @@ packages: semver: 7.5.4 dev: true - /@changesets/assemble-release-plan@5.2.4: - resolution: {integrity: sha512-xJkWX+1/CUaOUWTguXEbCDTyWJFECEhmdtbkjhn5GVBGxdP/JwaHBIU9sW3FR6gD07UwZ7ovpiPclQZs+j+mvg==} + /@changesets/assemble-release-plan@6.0.0: + resolution: {integrity: sha512-4QG7NuisAjisbW4hkLCmGW2lRYdPrKzro+fCtZaILX+3zdUELSvYjpL4GTv0E4aM9Mef3PuIQp89VmHJ4y2bfw==} dependencies: '@babel/runtime': 7.22.15 - '@changesets/errors': 0.1.4 - '@changesets/get-dependents-graph': 1.3.6 - '@changesets/types': 5.2.1 + '@changesets/errors': 0.2.0 + '@changesets/get-dependents-graph': 2.0.0 + '@changesets/types': 6.0.0 '@manypkg/get-packages': 1.1.3 semver: 7.5.4 dev: true - /@changesets/changelog-git@0.1.14: - resolution: {integrity: sha512-+vRfnKtXVWsDDxGctOfzJsPhaCdXRYoe+KyWYoq5X/GqoISREiat0l3L8B0a453B2B4dfHGcZaGyowHbp9BSaA==} + /@changesets/changelog-git@0.2.0: + resolution: {integrity: sha512-bHOx97iFI4OClIT35Lok3sJAwM31VbUM++gnMBV16fdbtBhgYu4dxsphBF/0AZZsyAHMrnM0yFcj5gZM1py6uQ==} dependencies: - '@changesets/types': 5.2.1 + '@changesets/types': 6.0.0 dev: true - /@changesets/cli@2.26.2: - resolution: {integrity: sha512-dnWrJTmRR8bCHikJHl9b9HW3gXACCehz4OasrXpMp7sx97ECuBGGNjJhjPhdZNCvMy9mn4BWdplI323IbqsRig==} + /@changesets/cli@2.27.3: + resolution: {integrity: sha512-ve/VpWApILlSs8cr0okNx5C2LKRawI9XZgvfmf58S8sar2nhx5DPJREFXYZBahs0FeTfvH0rdVl+nGe8QF45Ig==} hasBin: true dependencies: '@babel/runtime': 7.22.15 - '@changesets/apply-release-plan': 6.1.4 - '@changesets/assemble-release-plan': 5.2.4 - '@changesets/changelog-git': 0.1.14 - '@changesets/config': 2.3.1 - '@changesets/errors': 0.1.4 - '@changesets/get-dependents-graph': 1.3.6 - '@changesets/get-release-plan': 3.0.17 - '@changesets/git': 2.0.0 - '@changesets/logger': 0.0.5 - '@changesets/pre': 1.0.14 - '@changesets/read': 0.5.9 - '@changesets/types': 5.2.1 - '@changesets/write': 0.2.3 + '@changesets/apply-release-plan': 7.0.1 + '@changesets/assemble-release-plan': 6.0.0 + '@changesets/changelog-git': 0.2.0 + '@changesets/config': 3.0.0 + '@changesets/errors': 0.2.0 + '@changesets/get-dependents-graph': 2.0.0 + '@changesets/get-release-plan': 4.0.0 + '@changesets/git': 3.0.0 + '@changesets/logger': 0.1.0 + '@changesets/pre': 2.0.0 + '@changesets/read': 0.6.0 + '@changesets/types': 6.0.0 + '@changesets/write': 0.3.1 '@manypkg/get-packages': 1.1.3 - '@types/is-ci': 3.0.0 '@types/semver': 7.5.2 ansi-colors: 4.1.3 chalk: 2.4.2 + ci-info: 3.8.0 enquirer: 2.4.1 external-editor: 3.1.0 fs-extra: 7.0.1 human-id: 1.0.2 - is-ci: 3.0.1 meow: 6.1.1 outdent: 0.5.0 p-limit: 2.3.0 @@ -3593,93 +3592,93 @@ packages: tty-table: 4.2.1 dev: true - /@changesets/config@2.3.1: - resolution: {integrity: sha512-PQXaJl82CfIXddUOppj4zWu+987GCw2M+eQcOepxN5s+kvnsZOwjEJO3DH9eVy+OP6Pg/KFEWdsECFEYTtbg6w==} + /@changesets/config@3.0.0: + resolution: {integrity: sha512-o/rwLNnAo/+j9Yvw9mkBQOZySDYyOr/q+wptRLcAVGlU6djOeP9v1nlalbL9MFsobuBVQbZCTp+dIzdq+CLQUA==} dependencies: - '@changesets/errors': 0.1.4 - '@changesets/get-dependents-graph': 1.3.6 - '@changesets/logger': 0.0.5 - '@changesets/types': 5.2.1 + '@changesets/errors': 0.2.0 + '@changesets/get-dependents-graph': 2.0.0 + '@changesets/logger': 0.1.0 + '@changesets/types': 6.0.0 '@manypkg/get-packages': 1.1.3 fs-extra: 7.0.1 micromatch: 4.0.5 dev: true - /@changesets/errors@0.1.4: - resolution: {integrity: sha512-HAcqPF7snsUJ/QzkWoKfRfXushHTu+K5KZLJWPb34s4eCZShIf8BFO3fwq6KU8+G7L5KdtN2BzQAXOSXEyiY9Q==} + /@changesets/errors@0.2.0: + resolution: {integrity: sha512-6BLOQUscTpZeGljvyQXlWOItQyU71kCdGz7Pi8H8zdw6BI0g3m43iL4xKUVPWtG+qrrL9DTjpdn8eYuCQSRpow==} dependencies: extendable-error: 0.1.7 dev: true - /@changesets/get-dependents-graph@1.3.6: - resolution: {integrity: sha512-Q/sLgBANmkvUm09GgRsAvEtY3p1/5OCzgBE5vX3vgb5CvW0j7CEljocx5oPXeQSNph6FXulJlXV3Re/v3K3P3Q==} + /@changesets/get-dependents-graph@2.0.0: + resolution: {integrity: sha512-cafUXponivK4vBgZ3yLu944mTvam06XEn2IZGjjKc0antpenkYANXiiE6GExV/yKdsCnE8dXVZ25yGqLYZmScA==} dependencies: - '@changesets/types': 5.2.1 + '@changesets/types': 6.0.0 '@manypkg/get-packages': 1.1.3 chalk: 2.4.2 fs-extra: 7.0.1 semver: 7.5.4 dev: true - /@changesets/get-release-plan@3.0.17: - resolution: {integrity: sha512-6IwKTubNEgoOZwDontYc2x2cWXfr6IKxP3IhKeK+WjyD6y3M4Gl/jdQvBw+m/5zWILSOCAaGLu2ZF6Q+WiPniw==} + /@changesets/get-release-plan@4.0.0: + resolution: {integrity: sha512-9L9xCUeD/Tb6L/oKmpm8nyzsOzhdNBBbt/ZNcjynbHC07WW4E1eX8NMGC5g5SbM5z/V+MOrYsJ4lRW41GCbg3w==} dependencies: '@babel/runtime': 7.22.15 - '@changesets/assemble-release-plan': 5.2.4 - '@changesets/config': 2.3.1 - '@changesets/pre': 1.0.14 - '@changesets/read': 0.5.9 - '@changesets/types': 5.2.1 + '@changesets/assemble-release-plan': 6.0.0 + '@changesets/config': 3.0.0 + '@changesets/pre': 2.0.0 + '@changesets/read': 0.6.0 + '@changesets/types': 6.0.0 '@manypkg/get-packages': 1.1.3 dev: true - /@changesets/get-version-range-type@0.3.2: - resolution: {integrity: sha512-SVqwYs5pULYjYT4op21F2pVbcrca4qA/bAA3FmFXKMN7Y+HcO8sbZUTx3TAy2VXulP2FACd1aC7f2nTuqSPbqg==} + /@changesets/get-version-range-type@0.4.0: + resolution: {integrity: sha512-hwawtob9DryoGTpixy1D3ZXbGgJu1Rhr+ySH2PvTLHvkZuQ7sRT4oQwMh0hbqZH1weAooedEjRsbrWcGLCeyVQ==} dev: true - /@changesets/git@2.0.0: - resolution: {integrity: sha512-enUVEWbiqUTxqSnmesyJGWfzd51PY4H7mH9yUw0hPVpZBJ6tQZFMU3F3mT/t9OJ/GjyiM4770i+sehAn6ymx6A==} + /@changesets/git@3.0.0: + resolution: {integrity: sha512-vvhnZDHe2eiBNRFHEgMiGd2CT+164dfYyrJDhwwxTVD/OW0FUD6G7+4DIx1dNwkwjHyzisxGAU96q0sVNBns0w==} dependencies: '@babel/runtime': 7.22.15 - '@changesets/errors': 0.1.4 - '@changesets/types': 5.2.1 + '@changesets/errors': 0.2.0 + '@changesets/types': 6.0.0 '@manypkg/get-packages': 1.1.3 is-subdir: 1.2.0 micromatch: 4.0.5 spawndamnit: 2.0.0 dev: true - /@changesets/logger@0.0.5: - resolution: {integrity: sha512-gJyZHomu8nASHpaANzc6bkQMO9gU/ib20lqew1rVx753FOxffnCrJlGIeQVxNWCqM+o6OOleCo/ivL8UAO5iFw==} + /@changesets/logger@0.1.0: + resolution: {integrity: sha512-pBrJm4CQm9VqFVwWnSqKEfsS2ESnwqwH+xR7jETxIErZcfd1u2zBSqrHbRHR7xjhSgep9x2PSKFKY//FAshA3g==} dependencies: chalk: 2.4.2 dev: true - /@changesets/parse@0.3.16: - resolution: {integrity: sha512-127JKNd167ayAuBjUggZBkmDS5fIKsthnr9jr6bdnuUljroiERW7FBTDNnNVyJ4l69PzR57pk6mXQdtJyBCJKg==} + /@changesets/parse@0.4.0: + resolution: {integrity: sha512-TS/9KG2CdGXS27S+QxbZXgr8uPsP4yNJYb4BC2/NeFUj80Rni3TeD2qwWmabymxmrLo7JEsytXH1FbpKTbvivw==} dependencies: - '@changesets/types': 5.2.1 + '@changesets/types': 6.0.0 js-yaml: 3.14.1 dev: true - /@changesets/pre@1.0.14: - resolution: {integrity: sha512-dTsHmxQWEQekHYHbg+M1mDVYFvegDh9j/kySNuDKdylwfMEevTeDouR7IfHNyVodxZXu17sXoJuf2D0vi55FHQ==} + /@changesets/pre@2.0.0: + resolution: {integrity: sha512-HLTNYX/A4jZxc+Sq8D1AMBsv+1qD6rmmJtjsCJa/9MSRybdxh0mjbTvE6JYZQ/ZiQ0mMlDOlGPXTm9KLTU3jyw==} dependencies: '@babel/runtime': 7.22.15 - '@changesets/errors': 0.1.4 - '@changesets/types': 5.2.1 + '@changesets/errors': 0.2.0 + '@changesets/types': 6.0.0 '@manypkg/get-packages': 1.1.3 fs-extra: 7.0.1 dev: true - /@changesets/read@0.5.9: - resolution: {integrity: sha512-T8BJ6JS6j1gfO1HFq50kU3qawYxa4NTbI/ASNVVCBTsKquy2HYwM9r7ZnzkiMe8IEObAJtUVGSrePCOxAK2haQ==} + /@changesets/read@0.6.0: + resolution: {integrity: sha512-ZypqX8+/im1Fm98K4YcZtmLKgjs1kDQ5zHpc2U1qdtNBmZZfo/IBiG162RoP0CUF05tvp2y4IspH11PLnPxuuw==} dependencies: '@babel/runtime': 7.22.15 - '@changesets/git': 2.0.0 - '@changesets/logger': 0.0.5 - '@changesets/parse': 0.3.16 - '@changesets/types': 5.2.1 + '@changesets/git': 3.0.0 + '@changesets/logger': 0.1.0 + '@changesets/parse': 0.4.0 + '@changesets/types': 6.0.0 chalk: 2.4.2 fs-extra: 7.0.1 p-filter: 2.1.0 @@ -3689,15 +3688,15 @@ packages: resolution: {integrity: sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw==} dev: true - /@changesets/types@5.2.1: - resolution: {integrity: sha512-myLfHbVOqaq9UtUKqR/nZA/OY7xFjQMdfgfqeZIBK4d0hA6pgxArvdv8M+6NUzzBsjWLOtvApv8YHr4qM+Kpfg==} + /@changesets/types@6.0.0: + resolution: {integrity: sha512-b1UkfNulgKoWfqyHtzKS5fOZYSJO+77adgL7DLRDr+/7jhChN+QcHnbjiQVOz/U+Ts3PGNySq7diAItzDgugfQ==} dev: true - /@changesets/write@0.2.3: - resolution: {integrity: sha512-Dbamr7AIMvslKnNYsLFafaVORx4H0pvCA2MHqgtNCySMe1blImEyAEOzDmcgKAkgz4+uwoLz7demIrX+JBr/Xw==} + /@changesets/write@0.3.1: + resolution: {integrity: sha512-SyGtMXzH3qFqlHKcvFY2eX+6b0NGiFcNav8AFsYwy5l8hejOeoeTDemu5Yjmke2V5jpzY+pBvM0vCCQ3gdZpfw==} dependencies: '@babel/runtime': 7.22.15 - '@changesets/types': 5.2.1 + '@changesets/types': 6.0.0 fs-extra: 7.0.1 human-id: 1.0.2 prettier: 2.8.8 @@ -8582,12 +8581,6 @@ packages: /@types/http-errors@2.0.1: resolution: {integrity: sha512-/K3ds8TRAfBvi5vfjuz8y6+GiAYBZ0x4tXv1Av6CWBWn0IlADc+ZX9pMq7oU0fNQPnBwIZl3rmeLp6SBApbxSQ==} - /@types/is-ci@3.0.0: - resolution: {integrity: sha512-Q0Op0hdWbYd1iahB+IFNQcWXFq4O0Q5MwQP7uN0souuQ4rPg1vEYcnIOfr1gY+M+6rc8FGoRaBO1mOOvL29sEQ==} - dependencies: - ci-info: 3.8.0 - dev: true - /@types/is-function@1.0.1: resolution: {integrity: sha512-A79HEEiwXTFtfY+Bcbo58M2GRYzCr9itHWzbzHVFNEYCcoU/MMGwYYf721gBrnhpj1s6RGVVha/IgNFnR0Iw/Q==} dev: true @@ -16860,13 +16853,6 @@ packages: dependencies: ci-info: 2.0.0 - /is-ci@3.0.1: - resolution: {integrity: sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==} - hasBin: true - dependencies: - ci-info: 3.8.0 - dev: true - /is-core-module@2.13.0: resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==} dependencies: @@ -17524,7 +17510,7 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.4.5) + ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -25587,6 +25573,7 @@ packages: typescript: 5.4.5 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 + dev: false /ts-pnp@1.2.0(typescript@5.4.5): resolution: {integrity: sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 8d30667..71a3284 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,3 @@ packages: + - '.' - 'core' From 3a6aa44728a84fd10b97fb6b73714b16280e1cc8 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 22 May 2024 18:08:58 +0200 Subject: [PATCH 08/11] chore: update attw --- package.json | 2 +- pnpm-lock.yaml | 111 +++++++++++++++++++++++++++++++++++-------------- 2 files changed, 81 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index e7ce602..5f5c2d4 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "zod-to-json-schema": "^3.21.4" }, "devDependencies": { - "@arethetypeswrong/cli": "^0.9.0", + "@arethetypeswrong/cli": "^0.15.3", "@changesets/cli": "^2.27.3", "@commitlint/cli": "^17.0.0", "@commitlint/config-conventional": "^17.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e31dce7..498795b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,8 +49,8 @@ importers: version: 3.21.4(zod@3.22.4) devDependencies: '@arethetypeswrong/cli': - specifier: ^0.9.0 - version: 0.9.0 + specifier: ^0.15.3 + version: 0.15.3 '@changesets/cli': specifier: ^2.27.3 version: 2.27.3 @@ -1271,8 +1271,8 @@ packages: zod: 3.22.4 dev: false - /@andrewbranch/untar.js@1.0.2: - resolution: {integrity: sha512-hL80MHK3b++pEp6K23+Nl5r5D1F19DRagp2ruCBIv4McyCiLKq67vUNvEQY1aGCAKNZ8GxV23n5MhOm7RwO8Pg==} + /@andrewbranch/untar.js@1.0.3: + resolution: {integrity: sha512-Jh15/qVmrLGhkKJBdXlK1+9tY4lZruYjsgkDFj08ZmDiWVBLJcqkok7Z0/R0In+i1rScBpJlSvrTS2Lm41Pbnw==} dev: true /@apidevtools/json-schema-ref-parser@9.1.2: @@ -1284,32 +1284,30 @@ packages: js-yaml: 4.1.0 dev: true - /@arethetypeswrong/cli@0.9.0: - resolution: {integrity: sha512-QeT3TXtivqfH6LL0kPI2YcqH7IzQ2VKnCwJgVLxsmXKsd7ng8XhpInu0w69OIfEQ5qMaHAdVXyB0pI6NYpY3SQ==} + /@arethetypeswrong/cli@0.15.3: + resolution: {integrity: sha512-sIMA9ZJBWDEg1+xt5RkAEflZuf8+PO8SdKj17x6PtETuUho+qlZJg4DgmKc3q+QwQ9zOB5VLK6jVRbFdNLdUIA==} + engines: {node: '>=18'} hasBin: true dependencies: - '@arethetypeswrong/core': 0.9.0 + '@arethetypeswrong/core': 0.15.1 chalk: 4.1.2 cli-table3: 0.6.3 commander: 10.0.1 - marked: 5.1.2 - marked-terminal: 5.2.0(marked@5.1.2) - node-fetch: 2.7.0 - transitivePeerDependencies: - - encoding + marked: 9.1.6 + marked-terminal: 6.2.0(marked@9.1.6) + semver: 7.5.4 dev: true - /@arethetypeswrong/core@0.9.0: - resolution: {integrity: sha512-Bu6lLtGPBmj1psNwZCZi6avCewl/M+JZ6vGtHA/FkgGWz48vffWIa8d0i8t/QGwxda5WUnGeKaaARkvsivarRg==} + /@arethetypeswrong/core@0.15.1: + resolution: {integrity: sha512-FYp6GBAgsNz81BkfItRz8RLZO03w5+BaeiPma1uCfmxTnxbtuMrI/dbzGiOk8VghO108uFI0oJo0OkewdSHw7g==} + engines: {node: '>=18'} dependencies: - '@andrewbranch/untar.js': 1.0.2 - fetch-ponyfill: 7.1.0 - fflate: 0.7.4 + '@andrewbranch/untar.js': 1.0.3 + fflate: 0.8.2 semver: 7.5.4 - typescript: 5.4.5 + ts-expose-internals-conditionally: 1.0.0-empty.0 + typescript: 5.3.3 validate-npm-package-name: 5.0.0 - transitivePeerDependencies: - - encoding dev: true /@aws-crypto/crc32@3.0.0: @@ -6436,6 +6434,11 @@ packages: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true + /@sindresorhus/is@4.6.0: + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + dev: true + /@sinonjs/commons@1.8.6: resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==} dependencies: @@ -13406,6 +13409,10 @@ packages: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} dev: true + /emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + dev: true + /emojis-list@3.0.0: resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==} engines: {node: '>= 4'} @@ -14687,13 +14694,14 @@ packages: node-fetch: 2.6.13 transitivePeerDependencies: - encoding + dev: false /fetch-retry@5.0.6: resolution: {integrity: sha512-3yurQZ2hD9VISAhJJP9bpYFNQrHHBXE2JxxjY5aLEcDi46RmAzJE2OC9FAde0yis5ElW0jTTzs0zfg/Cca4XqQ==} dev: true - /fflate@0.7.4: - resolution: {integrity: sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw==} + /fflate@0.8.2: + resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} dev: true /figgy-pudding@3.5.2: @@ -19154,19 +19162,19 @@ packages: supports-hyperlinks: 2.3.0 dev: true - /marked-terminal@5.2.0(marked@5.1.2): - resolution: {integrity: sha512-Piv6yNwAQXGFjZSaiNljyNFw7jKDdGrw70FSbtxEyldLsyeuV5ZHm/1wW++kWbrOF1VPnUgYOhB2oLL0ZpnekA==} - engines: {node: '>=14.13.1 || >=16.0.0'} + /marked-terminal@6.2.0(marked@9.1.6): + resolution: {integrity: sha512-ubWhwcBFHnXsjYNsu+Wndpg0zhY4CahSpPlA70PlO0rR9r2sZpkyU+rkCsOWH+KMEkx847UpALON+HWgxowFtw==} + engines: {node: '>=16.0.0'} peerDependencies: - marked: ^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 + marked: '>=1 <12' dependencies: ansi-escapes: 6.2.0 cardinal: 2.1.1 chalk: 5.3.0 cli-table3: 0.6.3 - marked: 5.1.2 - node-emoji: 1.11.0 - supports-hyperlinks: 2.3.0 + marked: 9.1.6 + node-emoji: 2.1.3 + supports-hyperlinks: 3.0.0 dev: true /marked@4.3.0: @@ -19175,8 +19183,8 @@ packages: hasBin: true dev: true - /marked@5.1.2: - resolution: {integrity: sha512-ahRPGXJpjMjwSOlBoTMZAK7ATXkli5qCPxZ21TG44rx1KEo44bii4ekgTDQPNRQ4Kh7JMb9Ub1PVk1NxRSsorg==} + /marked@9.1.6: + resolution: {integrity: sha512-jcByLnIFkd5gSXZmjNvS1TlmRhCXZjIzHYlaGkPlLIekG55JDR2Z4va9tZwCiP+/RDERiNhMOFu01xd6O5ct1Q==} engines: {node: '>= 16'} hasBin: true dev: true @@ -20219,6 +20227,16 @@ packages: lodash: 4.17.21 dev: true + /node-emoji@2.1.3: + resolution: {integrity: sha512-E2WEOVsgs7O16zsURJ/eH8BqhF029wGpEOnv7Urwdo2wmQanOACwJQh0devF9D9RhoZru0+9JXIS0dBXIAz+lA==} + engines: {node: '>=18'} + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + dev: true + /node-fetch@2.6.1: resolution: {integrity: sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==} engines: {node: 4.x || >=6.0.0} @@ -20234,6 +20252,7 @@ packages: optional: true dependencies: whatwg-url: 5.0.0 + dev: false /node-fetch@2.7.0: resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} @@ -24073,6 +24092,13 @@ packages: picocolors: 1.0.0 dev: true + /skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + dependencies: + unicode-emoji-modifier-base: 1.0.0 + dev: true + /slash@2.0.0: resolution: {integrity: sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==} engines: {node: '>=6'} @@ -24941,6 +24967,14 @@ packages: supports-color: 7.2.0 dev: true + /supports-hyperlinks@3.0.0: + resolution: {integrity: sha512-QBDPHyPQDRTy9ku4URNGY5Lah8PAaXs6tAAwp55sL5WCsSW7GIfdf6W5ixfziW+t7wh3GVvHyHHyQ1ESsoRvaA==} + engines: {node: '>=14.18'} + dependencies: + has-flag: 4.0.0 + supports-color: 7.2.0 + dev: true + /supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -25448,6 +25482,10 @@ packages: resolution: {integrity: sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==} dev: false + /ts-expose-internals-conditionally@1.0.0-empty.0: + resolution: {integrity: sha512-F8m9NOF6ZhdOClDVdlM8gj3fDCav4ZIFSs/EI3ksQbAAXVSCN/Jh5OCJDDZWBuBy9psFc6jULGDlPwjMYMhJDw==} + dev: true + /ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} dev: true @@ -25855,6 +25893,12 @@ packages: hasBin: true dev: true + /typescript@5.3.3: + resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} + engines: {node: '>=14.17'} + hasBin: true + dev: true + /typescript@5.4.5: resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} engines: {node: '>=14.17'} @@ -25914,6 +25958,11 @@ packages: engines: {node: '>=4'} dev: true + /unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + dev: true + /unicode-match-property-ecmascript@2.0.0: resolution: {integrity: sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==} engines: {node: '>=4'} From 7fb74814bd7a5ae933e3d06478a0f7bafa0cd581 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 22 May 2024 18:32:14 +0200 Subject: [PATCH 09/11] docs: add minimal docs on how to develop --- development.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 development.md diff --git a/development.md b/development.md new file mode 100644 index 0000000..9fb8b55 --- /dev/null +++ b/development.md @@ -0,0 +1,46 @@ +# Development + +These are internal notes for the development of the project. + +## Installation + +Install dependencies + +```bash +pnpm i +``` + +Setup environment correctly + +```bash +cp .env.example .env +``` + +Look in the usual place for the relevant variables. + +## Running tests + +Before running tests, make sure you load the environment variables from the `.env` file. + +```bash +source .env +``` + +> [!NOTE] +> This is only necessary because I cannot for the life of me find out how to load the environment variables from the `.env` file in the `jest.config.ts` file. + +Then, to run the tests, run + +```bash +pnpm test +``` + +## Publishing + +Just run + +```bash +pnpm publish +``` + +This will create a new release in the `changeset` package. From 2d13a39a2f68a83b8fdeaa11c216cde085612404 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 22 May 2024 18:33:48 +0200 Subject: [PATCH 10/11] docs: add docs on how to add docs --- development.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/development.md b/development.md index 9fb8b55..c650494 100644 --- a/development.md +++ b/development.md @@ -35,6 +35,14 @@ Then, to run the tests, run pnpm test ``` +## Generating updated documentation + +To generate the updated documentation, run + +```bash +pnpm generate-docs +``` + ## Publishing Just run From 7941a424e08bde3f3389852ee8d914064e3ffb92 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 22 May 2024 19:16:34 +0200 Subject: [PATCH 11/11] fix: update types --- .npmrc | 4 +- core | 2 +- package.json | 5 ++- pnpm-lock.yaml | 103 ++++++++++++++++++++++++------------------------- 4 files changed, 57 insertions(+), 57 deletions(-) diff --git a/.npmrc b/.npmrc index 564b33f..94e8370 100644 --- a/.npmrc +++ b/.npmrc @@ -2,4 +2,6 @@ enable-pre-post-scripts=true ignore-workspace-root-check=true hoist-pattern[]=!@types/react -hoist-pattern[]=!@ts-rest/core \ No newline at end of file +hoist-pattern[]=!@ts-rest/core +hoist-pattern[]=!analytics +hoist-pattern[]=!@analytics/* \ No newline at end of file diff --git a/core b/core index defad6d..d846a1b 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit defad6dffbe0fd69ae96bcef2baf4e57e68c9e89 +Subproject commit d846a1b1e6b01f99b1d4c4f189879faba3fed30a diff --git a/package.json b/package.json index 5f5c2d4..864fd0c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "build": "tsup", "postbuild": "attw . -P && size-limit", - "lint": "tsc", + "lint": "tsc --noEmit", "ci": "rm -rf dist && npm run lint && pnpm run test && pnpm run build", "prepublish": "pnpm run ci", "release": "pnpm run ci && changeset publish", @@ -48,6 +48,7 @@ "dist" ], "dependencies": { + "@analytics/core": "^0.12.7", "@anatine/zod-openapi": "^2.2.0", "@ts-rest/core": "github:pubpub/ts-rest#ts-rest-core-v3.30.52-gitpkg", "@types/uuid": "^3.3.0", @@ -107,7 +108,7 @@ "tsx": "^3.12.7", "typedoc": "^0.25.3", "typedoc-plugin-markdown": "4.0.0-next.36", - "typescript": "^5.2.2", + "typescript": "^5.3.3", "unified": "^11.0.4", "unist-util-is": "^6.0.0", "unist-util-visit": "^5.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 498795b..9bdbe0b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: dependencies: + '@analytics/core': + specifier: ^0.12.7 + version: 0.12.7(@types/dlv@1.1.4) '@anatine/zod-openapi': specifier: ^2.2.0 version: 2.2.0(openapi3-ts@4.1.2)(zod@3.22.4) @@ -104,10 +107,10 @@ importers: version: 3.0.2 '@typescript-eslint/eslint-plugin': specifier: ^6.6.0 - version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) + version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.3.3) '@typescript-eslint/parser': specifier: ^6.6.0 - version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) + version: 6.7.0(eslint@8.49.0)(typescript@5.3.3) dotenv: specifier: ^16.3.1 version: 16.3.1 @@ -170,19 +173,19 @@ importers: version: 21.0.1 tsup: specifier: ^7.2.0 - version: 7.2.0(@swc/core@1.3.84)(ts-node@10.9.2)(typescript@5.2.2) + version: 7.2.0(@swc/core@1.3.84)(ts-node@10.9.2)(typescript@5.3.3) tsx: specifier: ^3.12.7 version: 3.12.10 typedoc: specifier: ^0.25.3 - version: 0.25.3(typescript@5.2.2) + version: 0.25.3(typescript@5.3.3) typedoc-plugin-markdown: specifier: 4.0.0-next.36 version: 4.0.0-next.36(typedoc@0.25.3) typescript: - specifier: ^5.2.2 - version: 5.2.2 + specifier: ^5.3.3 + version: 5.3.3 unified: specifier: ^11.0.4 version: 11.0.4 @@ -197,7 +200,7 @@ importers: version: 4.4.9(@types/node@18.17.15) vite-tsconfig-paths: specifier: ^4.2.0 - version: 4.2.1(typescript@5.2.2)(vite@4.4.9) + version: 4.2.1(typescript@5.3.3)(vite@4.4.9) core: dependencies: @@ -4069,13 +4072,13 @@ packages: '@commitlint/types': 17.4.4 '@types/node': 20.4.7 chalk: 4.1.2 - cosmiconfig: 8.3.6(typescript@5.2.2) + cosmiconfig: 8.3.6(typescript@5.3.3) cosmiconfig-typescript-loader: 4.4.0(@types/node@20.4.7)(cosmiconfig@8.3.6)(ts-node@10.9.2)(typescript@5.4.5) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 resolve-from: 5.0.0 - ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) + ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.3.3) typescript: 5.4.5 transitivePeerDependencies: - '@swc/core' @@ -9200,7 +9203,7 @@ packages: resolution: {integrity: sha512-S9q47ByT2pPvD65IvrWp7qppVMpk9WGMbVq9wbWZOHg6tnXSD4vyhao6nOSBwwfDdV2p3Kx9evA9vI+XWTfDvw==} dev: false - /@typescript-eslint/eslint-plugin@6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2): + /@typescript-eslint/eslint-plugin@6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.3.3): resolution: {integrity: sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -9212,10 +9215,10 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.8.1 - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.3.3) '@typescript-eslint/scope-manager': 6.7.0 - '@typescript-eslint/type-utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/type-utils': 6.7.0(eslint@8.49.0)(typescript@5.3.3) + '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.3.3) '@typescript-eslint/visitor-keys': 6.7.0 debug: 4.3.4(supports-color@5.5.0) eslint: 8.49.0 @@ -9223,8 +9226,8 @@ packages: ignore: 5.2.4 natural-compare: 1.4.0 semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@5.2.2) - typescript: 5.2.2 + ts-api-utils: 1.0.3(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -9278,7 +9281,7 @@ packages: - supports-color dev: false - /@typescript-eslint/parser@6.7.0(eslint@8.49.0)(typescript@5.2.2): + /@typescript-eslint/parser@6.7.0(eslint@8.49.0)(typescript@5.3.3): resolution: {integrity: sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -9290,11 +9293,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 6.7.0 '@typescript-eslint/types': 6.7.0 - '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.2.2) + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.3.3) '@typescript-eslint/visitor-keys': 6.7.0 debug: 4.3.4(supports-color@5.5.0) eslint: 8.49.0 - typescript: 5.2.2 + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -9335,7 +9338,7 @@ packages: '@typescript-eslint/visitor-keys': 6.7.0 dev: true - /@typescript-eslint/type-utils@6.7.0(eslint@8.49.0)(typescript@5.2.2): + /@typescript-eslint/type-utils@6.7.0(eslint@8.49.0)(typescript@5.3.3): resolution: {integrity: sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -9345,12 +9348,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.2.2) - '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.3.3) + '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.3.3) debug: 4.3.4(supports-color@5.5.0) eslint: 8.49.0 - ts-api-utils: 1.0.3(typescript@5.2.2) - typescript: 5.2.2 + ts-api-utils: 1.0.3(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -9404,7 +9407,7 @@ packages: transitivePeerDependencies: - supports-color - /@typescript-eslint/typescript-estree@6.7.0(typescript@5.2.2): + /@typescript-eslint/typescript-estree@6.7.0(typescript@5.3.3): resolution: {integrity: sha512-dPvkXj3n6e9yd/0LfojNU8VMUGHWiLuBZvbM6V6QYD+2qxqInE7J+J/ieY2iGwR9ivf/R/haWGkIj04WVUeiSQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -9419,8 +9422,8 @@ packages: globby: 11.1.0 is-glob: 4.0.3 semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@5.2.2) - typescript: 5.2.2 + ts-api-utils: 1.0.3(typescript@5.3.3) + typescript: 5.3.3 transitivePeerDependencies: - supports-color dev: true @@ -9466,7 +9469,7 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.7.0(eslint@8.49.0)(typescript@5.2.2): + /@typescript-eslint/utils@6.7.0(eslint@8.49.0)(typescript@5.3.3): resolution: {integrity: sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -9477,7 +9480,7 @@ packages: '@types/semver': 7.5.2 '@typescript-eslint/scope-manager': 6.7.0 '@typescript-eslint/types': 6.7.0 - '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.2.2) + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.3.3) eslint: 8.49.0 semver: 7.5.4 transitivePeerDependencies: @@ -12256,8 +12259,8 @@ packages: typescript: '>=4' dependencies: '@types/node': 20.4.7 - cosmiconfig: 8.3.6(typescript@5.2.2) - ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) + cosmiconfig: 8.3.6(typescript@5.3.3) + ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.3.3) typescript: 5.4.5 dev: true @@ -12292,7 +12295,7 @@ packages: yaml: 1.10.2 dev: true - /cosmiconfig@8.3.6(typescript@5.2.2): + /cosmiconfig@8.3.6(typescript@5.3.3): resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==} engines: {node: '>=14'} peerDependencies: @@ -12305,7 +12308,7 @@ packages: js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 - typescript: 5.2.2 + typescript: 5.3.3 dev: true /countries-and-timezones@3.6.0: @@ -17518,7 +17521,7 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) + ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.3.3) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -21428,7 +21431,7 @@ packages: optional: true dependencies: lilconfig: 2.1.0 - ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2) + ts-node: 10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.3.3) yaml: 2.3.2 dev: true @@ -25450,13 +25453,13 @@ packages: resolution: {integrity: sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==} dev: true - /ts-api-utils@1.0.3(typescript@5.2.2): + /ts-api-utils@1.0.3(typescript@5.3.3): resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==} engines: {node: '>=16.13.0'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 5.2.2 + typescript: 5.3.3 dev: true /ts-api-utils@1.0.3(typescript@5.4.5): @@ -25549,7 +25552,7 @@ packages: code-block-writer: 12.0.0 dev: true - /ts-node@10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.2.2): + /ts-node@10.9.2(@swc/core@1.3.84)(@types/node@18.17.15)(typescript@5.3.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -25576,7 +25579,7 @@ packages: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.2.2 + typescript: 5.3.3 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 dev: true @@ -25625,7 +25628,7 @@ packages: typescript: 5.4.5 dev: true - /tsconfck@2.1.2(typescript@5.2.2): + /tsconfck@2.1.2(typescript@5.3.3): resolution: {integrity: sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==} engines: {node: ^14.13.1 || ^16 || >=18} hasBin: true @@ -25635,7 +25638,7 @@ packages: typescript: optional: true dependencies: - typescript: 5.2.2 + typescript: 5.3.3 dev: true /tsconfig-paths@3.14.2: @@ -25661,7 +25664,7 @@ packages: /tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - /tsup@7.2.0(@swc/core@1.3.84)(ts-node@10.9.2)(typescript@5.2.2): + /tsup@7.2.0(@swc/core@1.3.84)(ts-node@10.9.2)(typescript@5.3.3): resolution: {integrity: sha512-vDHlczXbgUvY3rWvqFEbSqmC1L7woozbzngMqTtL2PGBODTtWlRwGDDawhvWzr5c1QjKe4OAKqJGfE1xeXUvtQ==} engines: {node: '>=16.14'} hasBin: true @@ -25692,7 +25695,7 @@ packages: source-map: 0.8.0-beta.0 sucrase: 3.34.0 tree-kill: 1.2.2 - typescript: 5.2.2 + typescript: 5.3.3 transitivePeerDependencies: - supports-color - ts-node @@ -25870,10 +25873,10 @@ packages: peerDependencies: typedoc: 0.25.x dependencies: - typedoc: 0.25.3(typescript@5.2.2) + typedoc: 0.25.3(typescript@5.3.3) dev: true - /typedoc@0.25.3(typescript@5.2.2): + /typedoc@0.25.3(typescript@5.3.3): resolution: {integrity: sha512-Ow8Bo7uY1Lwy7GTmphRIMEo6IOZ+yYUyrc8n5KXIZg1svpqhZSWgni2ZrDhe+wLosFS8yswowUzljTAV/3jmWw==} engines: {node: '>= 16'} hasBin: true @@ -25884,13 +25887,7 @@ packages: marked: 4.3.0 minimatch: 9.0.3 shiki: 0.14.5 - typescript: 5.2.2 - dev: true - - /typescript@5.2.2: - resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} - engines: {node: '>=14.17'} - hasBin: true + typescript: 5.3.3 dev: true /typescript@5.3.3: @@ -26551,7 +26548,7 @@ packages: d3-timer: 3.0.1 dev: false - /vite-tsconfig-paths@4.2.1(typescript@5.2.2)(vite@4.4.9): + /vite-tsconfig-paths@4.2.1(typescript@5.3.3)(vite@4.4.9): resolution: {integrity: sha512-GNUI6ZgPqT3oervkvzU+qtys83+75N/OuDaQl7HmOqFTb0pjZsuARrRipsyJhJ3enqV8beI1xhGbToR4o78nSQ==} peerDependencies: vite: '*' @@ -26561,7 +26558,7 @@ packages: dependencies: debug: 4.3.4(supports-color@5.5.0) globrex: 0.1.2 - tsconfck: 2.1.2(typescript@5.2.2) + tsconfck: 2.1.2(typescript@5.3.3) vite: 4.4.9(@types/node@18.17.15) transitivePeerDependencies: - supports-color