diff --git a/package-lock.json b/package-lock.json index 4ad6836..8464995 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,8 @@ "packages/integrations/gei-s3", "packages/integrations/gei-stripe", "packages/integrations/gei-crud", - "packages/integrations/gei-basic" + "packages/integrations/gei-basic", + "packages/integrations/gei-bookings" ], "dependencies": { "@types/jest": "^27.4.1", @@ -28,9 +29,9 @@ "eslint": "^8.39.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-react": "^7.25.2", - "graphql-editor-cli": "^0.8.6", + "graphql-editor-cli": "^0.9.0", "jest": "^27.5.1", - "prettier": "^2.4.1", + "prettier": "^2.8.8", "ts-jest": "^27.1.3", "ts-node": "^10.7.0", "typescript": "^4.9.5" @@ -5965,6 +5966,10 @@ "resolved": "packages/integrations/gei-basic", "link": true }, + "node_modules/gei-bookings": { + "resolved": "packages/integrations/gei-bookings", + "link": true + }, "node_modules/gei-crud": { "resolved": "packages/integrations/gei-crud", "link": true @@ -6079,6 +6084,30 @@ "node": ">=10.13.0" } }, + "node_modules/global-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", + "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "dependencies": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, "node_modules/globals": { "version": "13.20.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", @@ -6246,9 +6275,9 @@ } }, "node_modules/graphql-editor-cli": { - "version": "0.8.6", - "resolved": "https://registry.npmjs.org/graphql-editor-cli/-/graphql-editor-cli-0.8.6.tgz", - "integrity": "sha512-LAkIJRyJfQ42LiR1JijCBlyXlr9blicvq2OWdLZyUCbjIgvaT9w4faz1VuwceUeO+HUA1zc5/jZmue1sDuAbDg==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/graphql-editor-cli/-/graphql-editor-cli-0.9.0.tgz", + "integrity": "sha512-0Km8OEcLP8zt5giyPaUCb+ltEL5/YyrrM7fsLoDjm1cgzQLwE+MqneOP6Ixr/fxBKvfLBRLUSPhqggjP4qicWQ==", "dependencies": { "adm-zip": "^0.5.9", "archiver": "^5.3.1", @@ -6260,9 +6289,9 @@ "express": "^4.18.1", "fast-glob": "^3.2.12", "figures": "^5.0.0", - "graphql-js-tree": "^0.1.7", - "graphql-zeus": "^5.2.8", - "graphql-zeus-core": "^5.2.8", + "graphql-js-tree": "^1.0.5", + "graphql-zeus": "^5.3.1", + "graphql-zeus-core": "^5.3.1", "inquirer": "^9.1.2", "mime": "^3.0.0", "node-fetch": "^3.2.10", @@ -6270,11 +6299,12 @@ "ora": "^6.1.2", "picocolors": "^1.0.0", "pkg-install": "^1.0.0", - "pusher-js": "^7.4.0", "qs": "^6.11.0", "run-async": "^2.4.1", "stucco-js": "^0.10.18", "ts-node": "^10.9.1", + "ts-patch": "^3.0.2", + "ws": "^8.14.2", "yargs": "^17.5.1" }, "bin": { @@ -6296,6 +6326,42 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/graphql-editor-cli/node_modules/graphql": { + "version": "15.4.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.4.0.tgz", + "integrity": "sha512-EB3zgGchcabbsU9cFe1j+yxdzKQKAbGUWRb13DsrsMN1yyfmmIq+2+L5MqVWcDCE4V89R5AyUOi7sMOGxdsYtA==", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/graphql-editor-cli/node_modules/graphql-js-tree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-1.0.6.tgz", + "integrity": "sha512-IUOxnT3ESFicPXxxygnWcFLMS5NUEgU1s7Ev7xofnryKPJaLbYCYbj4xMWQacVnb8zj6IsKNIl1N2sIfCtXRLA==", + "dependencies": { + "graphql": "15.4.0" + } + }, + "node_modules/graphql-editor-cli/node_modules/ws": { + "version": "8.14.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", + "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/graphql-js-tree": { "version": "0.1.9", "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-0.1.9.tgz", @@ -6305,13 +6371,13 @@ } }, "node_modules/graphql-zeus": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/graphql-zeus/-/graphql-zeus-5.3.0.tgz", - "integrity": "sha512-w7DzrdCnaXylWK6NJ4fc3Ps4+qzQ68pYoZrCgRwT/Pgf32Jh9e2vUSoUMkge4yXUW2u5th8yVkSakjOOCNsLEw==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/graphql-zeus/-/graphql-zeus-5.3.1.tgz", + "integrity": "sha512-ElMYE8Os+XlhRChs0A+zP+eBDfblXJnFBNt2rFY5xm2CdflDkFWtWCWLlvXYEFdEBrYXcHYz2af2HmrziTFxHw==", "dependencies": { "cross-fetch": "^3.0.4", - "graphql-zeus-core": "*", - "graphql-zeus-jsonschema": "*", + "graphql-zeus-core": "^5.3.1", + "graphql-zeus-jsonschema": "^5.3.1", "yargs": "^16.1.1" }, "bin": { @@ -6319,12 +6385,12 @@ } }, "node_modules/graphql-zeus-core": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/graphql-zeus-core/-/graphql-zeus-core-5.3.0.tgz", - "integrity": "sha512-eYSbCu7cDiku19Ov72R+Wje+J8p3v9qRmug5N91lYIgpywh6P21+wtSEF9zi7XTHY6nGwXON2v8xPRyRkvzVRw==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/graphql-zeus-core/-/graphql-zeus-core-5.3.1.tgz", + "integrity": "sha512-J5j1qTbFCXKEtLrSf1YH9W85WQ9uhvsR8j1I6Qj1vKf3kHik02YYjms6pm8SsKHKXu2h1PSxPOqJqnlRVypEMA==", "dependencies": { "graphql": "^16.5.0", - "graphql-js-tree": "^0.2.5" + "graphql-js-tree": "^1.0.5" }, "peerDependencies": { "graphql-ws": ">=5" @@ -6344,9 +6410,9 @@ } }, "node_modules/graphql-zeus-core/node_modules/graphql-js-tree": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-0.2.8.tgz", - "integrity": "sha512-LsVe8Et7pXeHkqM9QWeoUbMpsI6PQ9XtGNmGWlptyfzqvsfn3rwYWEo4WXug5nr/hlMruLY9usB+gN/ZWA7TyA==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-1.0.6.tgz", + "integrity": "sha512-IUOxnT3ESFicPXxxygnWcFLMS5NUEgU1s7Ev7xofnryKPJaLbYCYbj4xMWQacVnb8zj6IsKNIl1N2sIfCtXRLA==", "dependencies": { "graphql": "15.4.0" } @@ -6360,12 +6426,12 @@ } }, "node_modules/graphql-zeus-jsonschema": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/graphql-zeus-jsonschema/-/graphql-zeus-jsonschema-5.3.0.tgz", - "integrity": "sha512-kLGjV29uCqGIigl/5rCSvzzfhRuH2i8ZJulC93vGrkVBlg8OZXnPCr9obASK7vbfvVxy1KMFWFUvdAXoXKDL4Q==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/graphql-zeus-jsonschema/-/graphql-zeus-jsonschema-5.3.1.tgz", + "integrity": "sha512-54tavKwn+gp3VZZqkN8ruMng4PyOsnMYZfvdFgN8J0XS08L+qnnoo+W3zfGN4X+cGGOhJEre86LrkJrBkX1qGw==", "dependencies": { "graphql": "^16.5.0", - "graphql-js-tree": "^0.2.5", + "graphql-js-tree": "^1.0.5", "json-schema": "^0.3.0" }, "peerDependencies": { @@ -6378,17 +6444,17 @@ } }, "node_modules/graphql-zeus-jsonschema/node_modules/graphql": { - "version": "16.7.1", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.7.1.tgz", - "integrity": "sha512-DRYR9tf+UGU0KOsMcKAlXeFfX89UiiIZ0dRU3mR0yJfu6OjZqUcp68NnFLnqQU5RexygFoDy1EW+ccOYcPfmHg==", + "version": "16.8.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz", + "integrity": "sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==", "engines": { "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, "node_modules/graphql-zeus-jsonschema/node_modules/graphql-js-tree": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-0.2.8.tgz", - "integrity": "sha512-LsVe8Et7pXeHkqM9QWeoUbMpsI6PQ9XtGNmGWlptyfzqvsfn3rwYWEo4WXug5nr/hlMruLY9usB+gN/ZWA7TyA==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-1.0.6.tgz", + "integrity": "sha512-IUOxnT3ESFicPXxxygnWcFLMS5NUEgU1s7Ev7xofnryKPJaLbYCYbj4xMWQacVnb8zj6IsKNIl1N2sIfCtXRLA==", "dependencies": { "graphql": "15.4.0" } @@ -6716,6 +6782,11 @@ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, "node_modules/inquirer": { "version": "9.2.8", "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-9.2.8.tgz", @@ -6976,9 +7047,9 @@ } }, "node_modules/is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", + "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", "dependencies": { "has": "^1.0.3" }, @@ -8289,6 +8360,14 @@ "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==" }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -10805,6 +10884,39 @@ "node": ">=0.4.0" } }, + "node_modules/ts-patch": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/ts-patch/-/ts-patch-3.0.2.tgz", + "integrity": "sha512-iTg8euqiNsNM1VDfOsVIsP0bM4kAVXU38n7TGQSkky7YQX/syh6sDPIRkvSS0HjT8ZOr0pq1h+5Le6jdB3hiJQ==", + "dependencies": { + "chalk": "^4.1.2", + "global-prefix": "^3.0.0", + "minimist": "^1.2.8", + "resolve": "^1.22.2", + "semver": "^7.3.8", + "strip-ansi": "^6.0.1" + }, + "bin": { + "ts-patch": "bin/ts-patch.js", + "tspc": "bin/tspc.js" + } + }, + "node_modules/ts-patch/node_modules/resolve": { + "version": "1.22.6", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.6.tgz", + "integrity": "sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw==", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/tslib": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", @@ -11505,6 +11617,123 @@ } } }, + "packages/integrations/gei-bookings": { + "version": "0.0.6", + "license": "ISC", + "dependencies": { + "dotenv": "^16.0.3", + "dotenv-cli": "^7.0.0", + "fetch": "^1.1.0", + "form-data": "^4.0.0", + "graphql-editor-cli": "^0.8.6", + "i-graphql": "^0.1.2", + "mongodb": "^5.1.0", + "node-fetch": "^3.3.0", + "stucco-js": "^0.10.18" + } + }, + "packages/integrations/gei-bookings/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "packages/integrations/gei-bookings/node_modules/dotenv-cli": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/dotenv-cli/-/dotenv-cli-7.3.0.tgz", + "integrity": "sha512-314CA4TyK34YEJ6ntBf80eUY+t1XaFLyem1k9P0sX1gn30qThZ5qZr/ZwE318gEnzyYP9yj9HJk6SqwE0upkfw==", + "dependencies": { + "cross-spawn": "^7.0.3", + "dotenv": "^16.3.0", + "dotenv-expand": "^10.0.0", + "minimist": "^1.2.6" + }, + "bin": { + "dotenv": "cli.js" + } + }, + "packages/integrations/gei-bookings/node_modules/dotenv-expand": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-10.0.0.tgz", + "integrity": "sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==", + "engines": { + "node": ">=12" + } + }, + "packages/integrations/gei-bookings/node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "packages/integrations/gei-bookings/node_modules/graphql": { + "version": "15.4.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.4.0.tgz", + "integrity": "sha512-EB3zgGchcabbsU9cFe1j+yxdzKQKAbGUWRb13DsrsMN1yyfmmIq+2+L5MqVWcDCE4V89R5AyUOi7sMOGxdsYtA==", + "engines": { + "node": ">= 10.x" + } + }, + "packages/integrations/gei-bookings/node_modules/graphql-editor-cli": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/graphql-editor-cli/-/graphql-editor-cli-0.8.7.tgz", + "integrity": "sha512-HQXM+QFp8PtNVDFxtGg+EpRe+C8ZEGmUM82IQokC/iW7Lnkxtt5OuaRDLB6us3cpAfzrAgbspK632i2vuHu2DA==", + "dependencies": { + "adm-zip": "^0.5.9", + "archiver": "^5.3.1", + "chalk": "^5.0.1", + "clipboardy": "^3.0.0", + "conf": "^10.2.0", + "dotenv": "^16.0.3", + "execa": "^6.1.0", + "express": "^4.18.1", + "fast-glob": "^3.2.12", + "figures": "^5.0.0", + "graphql-js-tree": "^1.0.5", + "graphql-zeus": "^5.3.1", + "graphql-zeus-core": "^5.3.1", + "inquirer": "^9.1.2", + "mime": "^3.0.0", + "node-fetch": "^3.2.10", + "open": "^8.4.0", + "ora": "^6.1.2", + "picocolors": "^1.0.0", + "pkg-install": "^1.0.0", + "pusher-js": "^7.4.0", + "qs": "^6.11.0", + "run-async": "^2.4.1", + "stucco-js": "^0.10.18", + "ts-node": "^10.9.1", + "yargs": "^17.5.1" + }, + "bin": { + "gecli": "lib/index.js", + "graphql-editor-cli": "lib/index.js" + }, + "peerDependencies": { + "typescript": "^4.8.3" + } + }, + "packages/integrations/gei-bookings/node_modules/graphql-js-tree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-1.0.6.tgz", + "integrity": "sha512-IUOxnT3ESFicPXxxygnWcFLMS5NUEgU1s7Ev7xofnryKPJaLbYCYbj4xMWQacVnb8zj6IsKNIl1N2sIfCtXRLA==", + "dependencies": { + "graphql": "15.4.0" + } + }, "packages/integrations/gei-crud": { "version": "0.8.7", "license": "ISC", @@ -11577,9 +11806,19 @@ "ieee754": "^1.1.13" } }, + "packages/integrations/gei-crud/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "packages/integrations/gei-crud/node_modules/cliui": { "version": "7.0.4", - "dev": true, "license": "ISC", "dependencies": { "string-width": "^4.2.0", @@ -11587,32 +11826,80 @@ "wrap-ansi": "^7.0.0" } }, - "packages/integrations/gei-crud/node_modules/graphql-js-tree": { - "version": "0.0.3", - "dev": true, - "license": "MIT", + "packages/integrations/gei-crud/node_modules/graphql": { + "version": "15.4.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.4.0.tgz", + "integrity": "sha512-EB3zgGchcabbsU9cFe1j+yxdzKQKAbGUWRb13DsrsMN1yyfmmIq+2+L5MqVWcDCE4V89R5AyUOi7sMOGxdsYtA==", + "engines": { + "node": ">= 10.x" + } + }, + "packages/integrations/gei-crud/node_modules/graphql-editor-cli": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/graphql-editor-cli/-/graphql-editor-cli-0.8.7.tgz", + "integrity": "sha512-HQXM+QFp8PtNVDFxtGg+EpRe+C8ZEGmUM82IQokC/iW7Lnkxtt5OuaRDLB6us3cpAfzrAgbspK632i2vuHu2DA==", "dependencies": { - "graphql": "^15.4.0" + "adm-zip": "^0.5.9", + "archiver": "^5.3.1", + "chalk": "^5.0.1", + "clipboardy": "^3.0.0", + "conf": "^10.2.0", + "dotenv": "^16.0.3", + "execa": "^6.1.0", + "express": "^4.18.1", + "fast-glob": "^3.2.12", + "figures": "^5.0.0", + "graphql-js-tree": "^1.0.5", + "graphql-zeus": "^5.3.1", + "graphql-zeus-core": "^5.3.1", + "inquirer": "^9.1.2", + "mime": "^3.0.0", + "node-fetch": "^3.2.10", + "open": "^8.4.0", + "ora": "^6.1.2", + "picocolors": "^1.0.0", + "pkg-install": "^1.0.0", + "pusher-js": "^7.4.0", + "qs": "^6.11.0", + "run-async": "^2.4.1", + "stucco-js": "^0.10.18", + "ts-node": "^10.9.1", + "yargs": "^17.5.1" + }, + "bin": { + "gecli": "lib/index.js", + "graphql-editor-cli": "lib/index.js" + }, + "peerDependencies": { + "typescript": "^4.8.3" } }, - "packages/integrations/gei-crud/node_modules/graphql-zeus": { - "version": "4.0.4", - "dev": true, - "license": "MIT", + "packages/integrations/gei-crud/node_modules/graphql-editor-cli/node_modules/graphql-js-tree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-1.0.6.tgz", + "integrity": "sha512-IUOxnT3ESFicPXxxygnWcFLMS5NUEgU1s7Ev7xofnryKPJaLbYCYbj4xMWQacVnb8zj6IsKNIl1N2sIfCtXRLA==", + "dependencies": { + "graphql": "15.4.0" + } + }, + "packages/integrations/gei-crud/node_modules/graphql-editor-cli/node_modules/graphql-zeus": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/graphql-zeus/-/graphql-zeus-5.3.1.tgz", + "integrity": "sha512-ElMYE8Os+XlhRChs0A+zP+eBDfblXJnFBNt2rFY5xm2CdflDkFWtWCWLlvXYEFdEBrYXcHYz2af2HmrziTFxHw==", "dependencies": { "cross-fetch": "^3.0.4", - "graphql": "^15.4.0", - "graphql-js-tree": "0.0.3", + "graphql-zeus-core": "^5.3.1", + "graphql-zeus-jsonschema": "^5.3.1", "yargs": "^16.1.1" }, "bin": { - "zeus": "lib/CLI/index.js" + "zeus": "lib/index.js" } }, - "packages/integrations/gei-crud/node_modules/graphql-zeus/node_modules/yargs": { + "packages/integrations/gei-crud/node_modules/graphql-editor-cli/node_modules/graphql-zeus/node_modules/yargs": { "version": "16.2.0", - "dev": true, - "license": "MIT", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -11626,12 +11913,99 @@ "node": ">=10" } }, - "packages/integrations/gei-crud/node_modules/jsonwebtoken": { - "version": "8.5.1", - "license": "MIT", + "packages/integrations/gei-crud/node_modules/graphql-editor-cli/node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", "dependencies": { - "jws": "^3.2.2", - "lodash.includes": "^4.3.0", + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, + "packages/integrations/gei-crud/node_modules/graphql-editor-cli/node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "engines": { + "node": ">= 6.13.0" + } + }, + "packages/integrations/gei-crud/node_modules/graphql-editor-cli/node_modules/stucco-js": { + "version": "0.10.18", + "resolved": "https://registry.npmjs.org/stucco-js/-/stucco-js-0.10.18.tgz", + "integrity": "sha512-ujDscU16fQejz8ALu3zQm3VGSy1IZzaIe7ipHG1rrbBr6UbH/YnicOhD61IlRmlrSqxBlggzbM2G25OoBQRj9Q==", + "dependencies": { + "@grpc/grpc-js": "^1.3.7", + "bin-version-check": "^5.0.0", + "google-protobuf": "^3.18.0", + "grpc-health-check-ts": "^1.0.2", + "lru-cache": "^6.0.0", + "node-forge": "^1.3.1", + "retry": "^0.13.1", + "stucco-ts-proto-gen": "^0.7.21", + "uuid": "^8.3.2", + "yargs": "^17.2.1" + }, + "bin": { + "stucco": "lib/stucco/cmd.js", + "stucco-js": "lib/cli/cli.js", + "stucco-js.cmd": "lib/cli/cli.cmd", + "stucco.cmd": "lib/stucco/cmd.cmd" + } + }, + "packages/integrations/gei-crud/node_modules/graphql-js-tree": { + "version": "0.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "graphql": "^15.4.0" + } + }, + "packages/integrations/gei-crud/node_modules/graphql-zeus": { + "version": "4.0.4", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-fetch": "^3.0.4", + "graphql": "^15.4.0", + "graphql-js-tree": "0.0.3", + "yargs": "^16.1.1" + }, + "bin": { + "zeus": "lib/CLI/index.js" + } + }, + "packages/integrations/gei-crud/node_modules/graphql-zeus/node_modules/yargs": { + "version": "16.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "packages/integrations/gei-crud/node_modules/jsonwebtoken": { + "version": "8.5.1", + "license": "MIT", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", @@ -11760,7 +12134,6 @@ }, "packages/integrations/gei-crud/node_modules/wrap-ansi": { "version": "7.0.0", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", @@ -11811,6 +12184,17 @@ "@types/ws": "^8.5.4" } }, + "packages/integrations/gei-rest/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "packages/integrations/gei-rest/node_modules/graphql": { "version": "15.4.0", "license": "MIT", @@ -11818,6 +12202,54 @@ "node": ">= 10.x" } }, + "packages/integrations/gei-rest/node_modules/graphql-editor-cli": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/graphql-editor-cli/-/graphql-editor-cli-0.8.7.tgz", + "integrity": "sha512-HQXM+QFp8PtNVDFxtGg+EpRe+C8ZEGmUM82IQokC/iW7Lnkxtt5OuaRDLB6us3cpAfzrAgbspK632i2vuHu2DA==", + "dependencies": { + "adm-zip": "^0.5.9", + "archiver": "^5.3.1", + "chalk": "^5.0.1", + "clipboardy": "^3.0.0", + "conf": "^10.2.0", + "dotenv": "^16.0.3", + "execa": "^6.1.0", + "express": "^4.18.1", + "fast-glob": "^3.2.12", + "figures": "^5.0.0", + "graphql-js-tree": "^1.0.5", + "graphql-zeus": "^5.3.1", + "graphql-zeus-core": "^5.3.1", + "inquirer": "^9.1.2", + "mime": "^3.0.0", + "node-fetch": "^3.2.10", + "open": "^8.4.0", + "ora": "^6.1.2", + "picocolors": "^1.0.0", + "pkg-install": "^1.0.0", + "pusher-js": "^7.4.0", + "qs": "^6.11.0", + "run-async": "^2.4.1", + "stucco-js": "^0.10.18", + "ts-node": "^10.9.1", + "yargs": "^17.5.1" + }, + "bin": { + "gecli": "lib/index.js", + "graphql-editor-cli": "lib/index.js" + }, + "peerDependencies": { + "typescript": "^4.8.3" + } + }, + "packages/integrations/gei-rest/node_modules/graphql-editor-cli/node_modules/graphql-js-tree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-1.0.6.tgz", + "integrity": "sha512-IUOxnT3ESFicPXxxygnWcFLMS5NUEgU1s7Ev7xofnryKPJaLbYCYbj4xMWQacVnb8zj6IsKNIl1N2sIfCtXRLA==", + "dependencies": { + "graphql": "15.4.0" + } + }, "packages/integrations/gei-rest/node_modules/graphql-js-tree": { "version": "0.3.9", "license": "MIT", @@ -11845,7 +12277,7 @@ } }, "packages/integrations/gei-s3": { - "version": "0.6.6", + "version": "0.7.1", "license": "ISC", "dependencies": { "@aws-sdk/client-s3": "^3.410.0", @@ -11859,6 +12291,73 @@ "ws": "^8.8.1" } }, + "packages/integrations/gei-s3/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "packages/integrations/gei-s3/node_modules/graphql": { + "version": "15.4.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.4.0.tgz", + "integrity": "sha512-EB3zgGchcabbsU9cFe1j+yxdzKQKAbGUWRb13DsrsMN1yyfmmIq+2+L5MqVWcDCE4V89R5AyUOi7sMOGxdsYtA==", + "engines": { + "node": ">= 10.x" + } + }, + "packages/integrations/gei-s3/node_modules/graphql-editor-cli": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/graphql-editor-cli/-/graphql-editor-cli-0.8.7.tgz", + "integrity": "sha512-HQXM+QFp8PtNVDFxtGg+EpRe+C8ZEGmUM82IQokC/iW7Lnkxtt5OuaRDLB6us3cpAfzrAgbspK632i2vuHu2DA==", + "dependencies": { + "adm-zip": "^0.5.9", + "archiver": "^5.3.1", + "chalk": "^5.0.1", + "clipboardy": "^3.0.0", + "conf": "^10.2.0", + "dotenv": "^16.0.3", + "execa": "^6.1.0", + "express": "^4.18.1", + "fast-glob": "^3.2.12", + "figures": "^5.0.0", + "graphql-js-tree": "^1.0.5", + "graphql-zeus": "^5.3.1", + "graphql-zeus-core": "^5.3.1", + "inquirer": "^9.1.2", + "mime": "^3.0.0", + "node-fetch": "^3.2.10", + "open": "^8.4.0", + "ora": "^6.1.2", + "picocolors": "^1.0.0", + "pkg-install": "^1.0.0", + "pusher-js": "^7.4.0", + "qs": "^6.11.0", + "run-async": "^2.4.1", + "stucco-js": "^0.10.18", + "ts-node": "^10.9.1", + "yargs": "^17.5.1" + }, + "bin": { + "gecli": "lib/index.js", + "graphql-editor-cli": "lib/index.js" + }, + "peerDependencies": { + "typescript": "^4.8.3" + } + }, + "packages/integrations/gei-s3/node_modules/graphql-js-tree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-1.0.6.tgz", + "integrity": "sha512-IUOxnT3ESFicPXxxygnWcFLMS5NUEgU1s7Ev7xofnryKPJaLbYCYbj4xMWQacVnb8zj6IsKNIl1N2sIfCtXRLA==", + "dependencies": { + "graphql": "15.4.0" + } + }, "packages/integrations/gei-s3/node_modules/ws": { "version": "8.13.0", "license": "MIT", @@ -11901,6 +12400,17 @@ "ws": "^8.12.0" } }, + "packages/integrations/gei-stripe/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "packages/integrations/gei-stripe/node_modules/form-data": { "version": "4.0.0", "license": "MIT", @@ -11913,6 +12423,62 @@ "node": ">= 6" } }, + "packages/integrations/gei-stripe/node_modules/graphql": { + "version": "15.4.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.4.0.tgz", + "integrity": "sha512-EB3zgGchcabbsU9cFe1j+yxdzKQKAbGUWRb13DsrsMN1yyfmmIq+2+L5MqVWcDCE4V89R5AyUOi7sMOGxdsYtA==", + "engines": { + "node": ">= 10.x" + } + }, + "packages/integrations/gei-stripe/node_modules/graphql-editor-cli": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/graphql-editor-cli/-/graphql-editor-cli-0.8.7.tgz", + "integrity": "sha512-HQXM+QFp8PtNVDFxtGg+EpRe+C8ZEGmUM82IQokC/iW7Lnkxtt5OuaRDLB6us3cpAfzrAgbspK632i2vuHu2DA==", + "dependencies": { + "adm-zip": "^0.5.9", + "archiver": "^5.3.1", + "chalk": "^5.0.1", + "clipboardy": "^3.0.0", + "conf": "^10.2.0", + "dotenv": "^16.0.3", + "execa": "^6.1.0", + "express": "^4.18.1", + "fast-glob": "^3.2.12", + "figures": "^5.0.0", + "graphql-js-tree": "^1.0.5", + "graphql-zeus": "^5.3.1", + "graphql-zeus-core": "^5.3.1", + "inquirer": "^9.1.2", + "mime": "^3.0.0", + "node-fetch": "^3.2.10", + "open": "^8.4.0", + "ora": "^6.1.2", + "picocolors": "^1.0.0", + "pkg-install": "^1.0.0", + "pusher-js": "^7.4.0", + "qs": "^6.11.0", + "run-async": "^2.4.1", + "stucco-js": "^0.10.18", + "ts-node": "^10.9.1", + "yargs": "^17.5.1" + }, + "bin": { + "gecli": "lib/index.js", + "graphql-editor-cli": "lib/index.js" + }, + "peerDependencies": { + "typescript": "^4.8.3" + } + }, + "packages/integrations/gei-stripe/node_modules/graphql-js-tree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-1.0.6.tgz", + "integrity": "sha512-IUOxnT3ESFicPXxxygnWcFLMS5NUEgU1s7Ev7xofnryKPJaLbYCYbj4xMWQacVnb8zj6IsKNIl1N2sIfCtXRLA==", + "dependencies": { + "graphql": "15.4.0" + } + }, "packages/integrations/gei-stripe/node_modules/ws": { "version": "8.13.0", "license": "MIT", @@ -11986,6 +12552,17 @@ "ieee754": "^1.1.13" } }, + "packages/integrations/gei-users/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "packages/integrations/gei-users/node_modules/form-data": { "version": "4.0.0", "license": "MIT", @@ -11998,6 +12575,62 @@ "node": ">= 6" } }, + "packages/integrations/gei-users/node_modules/graphql": { + "version": "15.4.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.4.0.tgz", + "integrity": "sha512-EB3zgGchcabbsU9cFe1j+yxdzKQKAbGUWRb13DsrsMN1yyfmmIq+2+L5MqVWcDCE4V89R5AyUOi7sMOGxdsYtA==", + "engines": { + "node": ">= 10.x" + } + }, + "packages/integrations/gei-users/node_modules/graphql-editor-cli": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/graphql-editor-cli/-/graphql-editor-cli-0.8.7.tgz", + "integrity": "sha512-HQXM+QFp8PtNVDFxtGg+EpRe+C8ZEGmUM82IQokC/iW7Lnkxtt5OuaRDLB6us3cpAfzrAgbspK632i2vuHu2DA==", + "dependencies": { + "adm-zip": "^0.5.9", + "archiver": "^5.3.1", + "chalk": "^5.0.1", + "clipboardy": "^3.0.0", + "conf": "^10.2.0", + "dotenv": "^16.0.3", + "execa": "^6.1.0", + "express": "^4.18.1", + "fast-glob": "^3.2.12", + "figures": "^5.0.0", + "graphql-js-tree": "^1.0.5", + "graphql-zeus": "^5.3.1", + "graphql-zeus-core": "^5.3.1", + "inquirer": "^9.1.2", + "mime": "^3.0.0", + "node-fetch": "^3.2.10", + "open": "^8.4.0", + "ora": "^6.1.2", + "picocolors": "^1.0.0", + "pkg-install": "^1.0.0", + "pusher-js": "^7.4.0", + "qs": "^6.11.0", + "run-async": "^2.4.1", + "stucco-js": "^0.10.18", + "ts-node": "^10.9.1", + "yargs": "^17.5.1" + }, + "bin": { + "gecli": "lib/index.js", + "graphql-editor-cli": "lib/index.js" + }, + "peerDependencies": { + "typescript": "^4.8.3" + } + }, + "packages/integrations/gei-users/node_modules/graphql-js-tree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-js-tree/-/graphql-js-tree-1.0.6.tgz", + "integrity": "sha512-IUOxnT3ESFicPXxxygnWcFLMS5NUEgU1s7Ev7xofnryKPJaLbYCYbj4xMWQacVnb8zj6IsKNIl1N2sIfCtXRLA==", + "dependencies": { + "graphql": "15.4.0" + } + }, "packages/integrations/gei-users/node_modules/mongodb": { "version": "4.16.0", "license": "Apache-2.0", diff --git a/package.json b/package.json index 2e15119..0b21a01 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "eslint": "^8.39.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-react": "^7.25.2", - "graphql-editor-cli": "^0.8.6", + "graphql-editor-cli": "^0.9.0", "jest": "^27.5.1", "prettier": "^2.8.8", "ts-jest": "^27.1.3", diff --git a/packages/integrations/gei-notifications/.eslintrc.json b/packages/integrations/gei-notifications/.eslintrc.json new file mode 100644 index 0000000..a106496 --- /dev/null +++ b/packages/integrations/gei-notifications/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "parser": "@typescript-eslint/parser", + "extends": [ + "plugin:@typescript-eslint/recommended", + "plugin:prettier/recommended" + ], + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module" + }, + "plugins": [ + "@typescript-eslint", + "prettier" + ], + "rules": { + "@typescript-eslint/explicit-function-return-type": 0 + } +} \ No newline at end of file diff --git a/packages/integrations/gei-notifications/.gitignore b/packages/integrations/gei-notifications/.gitignore new file mode 100644 index 0000000..964a3d0 --- /dev/null +++ b/packages/integrations/gei-notifications/.gitignore @@ -0,0 +1,4 @@ +.env +/lib +/node_modules +.graphql-editor-auth.json \ No newline at end of file diff --git a/packages/integrations/gei-notifications/.graphql-editor.json b/packages/integrations/gei-notifications/.graphql-editor.json new file mode 100644 index 0000000..4236c2f --- /dev/null +++ b/packages/integrations/gei-notifications/.graphql-editor.json @@ -0,0 +1,11 @@ +{ + "namespace": "editor-integrations", + "project": "gei-notifications", + "projectVersion": "latest", + "typingsEnv": "node", + "typingsHost": "http://localhost:8080/", + "typingsDir": "./src", + "backendSrc": "./src", + "backendLib": "./lib", + "schemaDir": "./" +} \ No newline at end of file diff --git a/packages/integrations/gei-notifications/.prettierrc.json b/packages/integrations/gei-notifications/.prettierrc.json new file mode 100644 index 0000000..1c148ab --- /dev/null +++ b/packages/integrations/gei-notifications/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "arrowParens": "always", + "semi": true, + "trailingComma": "all", + "singleQuote": true, + "printWidth": 120, + "tabWidth": 2 +} \ No newline at end of file diff --git a/packages/integrations/gei-notifications/package-lock.json b/packages/integrations/gei-notifications/package-lock.json new file mode 100644 index 0000000..32bbf56 --- /dev/null +++ b/packages/integrations/gei-notifications/package-lock.json @@ -0,0 +1,2710 @@ +{ + "name": "gei-notifications", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "gei-notifications", + "version": "0.0.0", + "license": "ISC", + "dependencies": { + "@pusher/push-notifications-server": "^1.2.6", + "node-fetch": "^3.2.10", + "pusher": "^5.1.3", + "stucco-js": "^0.10.17", + "ws": "^8.12.0" + }, + "devDependencies": { + "@types/node": "^18.7.18", + "@types/node-fetch": "^2.6.2", + "@types/ws": "^8.5.4", + "@typescript-eslint/eslint-plugin": "^5.38.0", + "@typescript-eslint/parser": "^5.38.0", + "eslint": "^8.23.1", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-prettier": "^4.2.1", + "prettier": "^2.7.1", + "ts-node": "^10.9.1", + "typescript": "^4.8.3" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.0.tgz", + "integrity": "sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", + "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.50.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz", + "integrity": "sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.4.tgz", + "integrity": "sha512-oEnzYiDuEsBydZBtP84BkpduLsE1nSAO4KrhTLHRzNrIQE647fhchmosTQsJdCo8X9zBBt+l5+fNk+m/yCFJ/Q==", + "dependencies": { + "@grpc/proto-loader": "^0.7.8", + "@types/node": ">=12.12.47" + }, + "engines": { + "node": "^8.13.0 || >=10.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.10", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.10.tgz", + "integrity": "sha512-CAqDfoaQ8ykFd9zqBDn4k6iWT9loLAlc2ETmDFS9JCD70gDcnA4L3AFEo2iV7KyAtAAHFW9ftq1Fz+Vsgq80RQ==", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.4", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.11", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz", + "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@pusher/push-notifications-server": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@pusher/push-notifications-server/-/push-notifications-server-1.2.6.tgz", + "integrity": "sha512-BbGmD0YzxSvW2CSTYD1sdDT/zCEuhGIeKuTd6T989sQf1e7UhKY+acLuDvnviM/EBcRxxjGZManOS/9+1Gjyww==", + "dependencies": { + "jsonwebtoken": "^8.4.0" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.13", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", + "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.18.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.0.tgz", + "integrity": "sha512-3xA4X31gHT1F1l38ATDIL9GpRLdwVhnEFC8Uikv5ZLlXATwrCYyPq7ZWHxzxc3J/30SUiwiYT+bQe0/XvKlWbw==" + }, + "node_modules/@types/node-fetch": { + "version": "2.6.6", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.6.tgz", + "integrity": "sha512-95X8guJYhfqiuVVhRFxVQcf4hW/2bCuoPwDasMf/531STFoNoWTT7YDnWdXHEZKqAGUigmpG31r2FE70LwnzJw==", + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "node_modules/@types/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==", + "dev": true + }, + "node_modules/@types/ws": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.6.tgz", + "integrity": "sha512-8B5EO9jLVCy+B58PLHvLDuOD8DRVMgQzq8d55SjLCOn9kqGyqOvy27exVaTio1q1nX5zLu8/6N0n2ThSxOM6tg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", + "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", + "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", + "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/bin-version": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/bin-version/-/bin-version-6.0.0.tgz", + "integrity": "sha512-nk5wEsP4RiKjG+vF+uG8lFsEn4d7Y6FVDamzzftSunXOoOcOOkzcWdKVlGgFFwlUQCj63SgnUkLLGF8v7lufhw==", + "dependencies": { + "execa": "^5.0.0", + "find-versions": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bin-version-check": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-5.1.0.tgz", + "integrity": "sha512-bYsvMqJ8yNGILLz1KP9zKLzQ6YpljV3ln1gqhuLkUtyfGi3qXKGuK2p+U4NAvjVFzDFiBBtOpCOSFNuYYEGZ5g==", + "dependencies": { + "bin-version": "^6.0.0", + "semver": "^7.5.3", + "semver-truncate": "^3.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "engines": { + "node": ">= 12" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.50.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz", + "integrity": "sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.2", + "@eslint/js": "8.50.0", + "@humanwhocodes/config-array": "^0.11.11", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", + "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "eslint": ">=7.28.0", + "prettier": ">=2.0.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/find-versions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-5.1.0.tgz", + "integrity": "sha512-+iwzCJ7C5v5KgcBuueqVoNiHVoQpwiUK5XFLjf0affFTep+Wcw93tPvmb8tqujDNmzhBDPddnWV/qgWSXgq+Hg==", + "dependencies": { + "semver-regex": "^4.0.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz", + "integrity": "sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==", + "dev": true, + "dependencies": { + "flatted": "^3.2.7", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "13.22.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.22.0.tgz", + "integrity": "sha512-H1Ddc/PbZHTDVJSnj8kWptIRSD6AM3pK+mKytuIVF4uoBV7rshFlhhvA58ceJ5wp3Er58w6zj7bykMpYXt3ETw==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/google-protobuf": { + "version": "3.21.2", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.2.tgz", + "integrity": "sha512-3MSOYFO5U9mPGikIYCzK0SaThypfGgS6bHqrUGXG3DPHCrb+txNqeEcns1W0lkGfk0rCyNXm7xB9rMxnCiZOoA==" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/grpc-boom": { + "version": "1.0.29", + "resolved": "https://registry.npmjs.org/grpc-boom/-/grpc-boom-1.0.29.tgz", + "integrity": "sha512-YMQj+p4PHa40EAsASZqp06PgJ0tKxM7IMMyQr1BFho/O251rh7XsG28QEn08CULKlrCGu9xddJ1qfVq9vF7Y6A==" + }, + "node_modules/grpc-health-check-ts": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/grpc-health-check-ts/-/grpc-health-check-ts-1.0.2.tgz", + "integrity": "sha512-xJ7QxPJ5uIW+vCDnzPjce69akJ97Dlw/QnkzVUqMGe/5EJhp/6m3CKNrOg1O2qKHkjrGYo9s53jmNJSEW1A9Vg==", + "dependencies": { + "@grpc/grpc-js": "^1.3.6", + "grpc-boom": "^1.0.28", + "grpc-web": "^1.2.1" + } + }, + "node_modules/grpc-web": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/grpc-web/-/grpc-web-1.4.2.tgz", + "integrity": "sha512-gUxWq42l5ldaRplcKb4Pw5O4XBONWZgz3vxIIXnfIeJj8Jc3wYiq2O4c9xzx/NGbbPEej4rhI62C9eTENwLGNw==" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-base64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-base64/-/is-base64-1.1.0.tgz", + "integrity": "sha512-Nlhg7Z2dVC4/PTvIFkgVVNvPHSO2eR/Yd0XzhGiXCXEvWnptXlXa/clQ8aePPiMuxEGcWfzWbGw2Fe3d+Y3v1g==", + "bin": { + "is_base64": "bin/is-base64", + "is-base64": "bin/is-base64" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=4", + "npm": ">=1.4.28" + } + }, + "node_modules/jsonwebtoken/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/keyv": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", + "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/protobufjs": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", + "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pusher": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/pusher/-/pusher-5.1.3.tgz", + "integrity": "sha512-Bmy5guFxQsbYSFLF3CM7GA2qE1zDJYn51PnNme9QlSjGguvkqUg4nj31PbgiLVDFK2sJvxPfx4JrB2HLgM3kaw==", + "dependencies": { + "@types/node-fetch": "^2.5.7", + "abort-controller": "^3.0.0", + "is-base64": "^1.1.0", + "node-fetch": "^2.6.1", + "tweetnacl": "^1.0.0", + "tweetnacl-util": "^0.15.0" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/pusher/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver-regex": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-4.0.5.tgz", + "integrity": "sha512-hunMQrEy1T6Jr2uEVjrAIqjwWcQTgOAcIM52C8MY1EZSD3DDNft04XzvYKPqjED65bNVVko0YI38nYeEHCX3yw==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semver-truncate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/semver-truncate/-/semver-truncate-3.0.0.tgz", + "integrity": "sha512-LJWA9kSvMolR51oDE6PN3kALBNaUdkxzAGcexw8gjMA8xr5zUqK0JiR3CgARSqanYF3Z1YHvsErb1KDgh+v7Rg==", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stucco-js": { + "version": "0.10.18", + "resolved": "https://registry.npmjs.org/stucco-js/-/stucco-js-0.10.18.tgz", + "integrity": "sha512-ujDscU16fQejz8ALu3zQm3VGSy1IZzaIe7ipHG1rrbBr6UbH/YnicOhD61IlRmlrSqxBlggzbM2G25OoBQRj9Q==", + "dependencies": { + "@grpc/grpc-js": "^1.3.7", + "bin-version-check": "^5.0.0", + "google-protobuf": "^3.18.0", + "grpc-health-check-ts": "^1.0.2", + "lru-cache": "^6.0.0", + "node-forge": "^1.3.1", + "retry": "^0.13.1", + "stucco-ts-proto-gen": "^0.7.21", + "uuid": "^8.3.2", + "yargs": "^17.2.1" + }, + "bin": { + "stucco": "lib/stucco/cmd.js", + "stucco-js": "lib/cli/cli.js", + "stucco-js.cmd": "lib/cli/cli.cmd", + "stucco.cmd": "lib/stucco/cmd.cmd" + } + }, + "node_modules/stucco-ts-proto-gen": { + "version": "0.7.21", + "resolved": "https://registry.npmjs.org/stucco-ts-proto-gen/-/stucco-ts-proto-gen-0.7.21.tgz", + "integrity": "sha512-+Mf0JOnOtamFO+5vB3+pNt6eGgb56jTHPa/S5W9POz2IzeITQRvJNMAGpD5SXxRQSpWPlqqt8v0U/2lg7rfA6A==", + "dependencies": { + "@grpc/grpc-js": "^1.4.1", + "grpc-web": "^1.3.0" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "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 + } + } + }, + "node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tweetnacl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", + "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" + }, + "node_modules/tweetnacl-util": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/tweetnacl-util/-/tweetnacl-util-0.15.1.tgz", + "integrity": "sha512-RKJBIj8lySrShN4w6i/BonWp2Z/uxwC3h4y7xsRrpP59ZboCd0GpEVsOnMDYLMmKBpYhb5TgHzZXy7wTfYFBRw==" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/ws": { + "version": "8.14.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", + "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/packages/integrations/gei-notifications/package.json b/packages/integrations/gei-notifications/package.json new file mode 100644 index 0000000..043956c --- /dev/null +++ b/packages/integrations/gei-notifications/package.json @@ -0,0 +1,35 @@ +{ + "name": "gei-notifications", + "version": "0.0.0", + "description": "Automatically generated by graphql-editor-cli", + "main": "index.js", + "type": "module", + "scripts": { + "start": "gecli dev", + "build": "tsc", + "watch": "tsc --watch", + "update": "gecli codegen models && gecli schema pull && gecli codegen typings" + }, + "author": "GraphQL Editor Centaur Generator", + "license": "ISC", + "devDependencies": { + "@types/node": "^18.7.18", + "@types/node-fetch": "^2.6.2", + "@types/ws": "^8.5.4", + "@typescript-eslint/eslint-plugin": "^5.38.0", + "@typescript-eslint/parser": "^5.38.0", + "eslint": "^8.23.1", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-prettier": "^4.2.1", + "prettier": "^2.7.1", + "ts-node": "^10.9.1", + "typescript": "^4.8.3" + }, + "dependencies": { + "@pusher/push-notifications-server": "^1.2.6", + "node-fetch": "^3.2.10", + "pusher": "^5.1.3", + "stucco-js": "^0.10.17", + "ws": "^8.12.0" + } +} diff --git a/packages/integrations/gei-notifications/schema.graphql b/packages/integrations/gei-notifications/schema.graphql new file mode 100644 index 0000000..8c36031 --- /dev/null +++ b/packages/integrations/gei-notifications/schema.graphql @@ -0,0 +1,82 @@ +type Query{ + userQuery( + userId: String! + ): UserQuery +} + +type UserQuery{ + getChannelAuthorization( + input: GetChannelAuthorizationInput! + ): GetChannelAuthorizationResult! + getPushNotificationToken: GetPushNotificationTokenResult! +} + +type Mutation{ + userMutation( + userId: String! + ): UserMutation +} + +type UserMutation{ + sendStaticNotification( + input: SendStaticNotificationInput! + ): SendNotificationResult! + sendPushNotificationToUsers( + input: SendPushNotificationInput! + ): SendNotificationResult! + sendPushNotificationToInterests( + input: SendPushNotificationInput! + ): SendNotificationResult! +} + +type GetPushNotificationTokenResult{ + error: GlobalError + token: String! +} + +input GetChannelAuthorizationInput{ + targetId: String! + socketId: String! +} + +type GetChannelAuthorizationResult{ + error: GlobalError + auth: String + channel_data: String + shared_secret: String +} + +input SendStaticNotificationInput{ + channelsId: [String!]! + message: String! + event: String! +} + +input SendPushNotificationInput{ + targets: [String!]! + notification: NotificationPayloadInput! +} + +input NotificationPayloadInput{ + title: String! + body: String! +} + +type SendNotificationResult{ + error: GlobalError + result: Boolean +} + +type GlobalError{ + message: String! + path: String! +} + +interface error{ + error: GlobalError +} + +schema{ + query: Query + mutation: Mutation +} diff --git a/packages/integrations/gei-notifications/src/Mutation/userMutation.ts b/packages/integrations/gei-notifications/src/Mutation/userMutation.ts new file mode 100644 index 0000000..7b4013c --- /dev/null +++ b/packages/integrations/gei-notifications/src/Mutation/userMutation.ts @@ -0,0 +1,5 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('Mutation', 'userMutation', async (args) => args)(input.arguments); diff --git a/packages/integrations/gei-notifications/src/Query/userQuery.ts b/packages/integrations/gei-notifications/src/Query/userQuery.ts new file mode 100644 index 0000000..4362f83 --- /dev/null +++ b/packages/integrations/gei-notifications/src/Query/userQuery.ts @@ -0,0 +1,5 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('Query', 'userQuery', async (args) => args)(input.arguments); diff --git a/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToInterests.ts b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToInterests.ts new file mode 100644 index 0000000..b520e98 --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToInterests.ts @@ -0,0 +1,14 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; +import { errMiddleware } from '../utils/middleware.js'; +import { sendPushNotificationToInterests } from '../utils/beam.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserMutation', 'sendPushNotificationToInterests', async (args) => + errMiddleware(async () => { + if (args.input.targets.length > 5000) + throw new Error('A device can be subscribed to a maximum of 5000 Device Interests.'); + + return await sendPushNotificationToInterests(args.input.targets, args.input.notification); + }), + )(input.arguments); diff --git a/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToUsers.ts b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToUsers.ts new file mode 100644 index 0000000..501b3fb --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToUsers.ts @@ -0,0 +1,14 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; +import { errMiddleware } from '../utils/middleware.js'; +import { sendPushNotificationToUsers } from '../utils/beam.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserMutation', 'sendPushNotificationToUsers', async (args) => + errMiddleware(async () => { + if (args.input.targets.length > 100) + throw new Error('A user can be associated with a maximum of 100 devices per platform at any given time'); + + return await sendPushNotificationToUsers(args.input.targets, args.input.notification); + }), + )(input.arguments); diff --git a/packages/integrations/gei-notifications/src/UserMutation/sendStaticNotification.ts b/packages/integrations/gei-notifications/src/UserMutation/sendStaticNotification.ts new file mode 100644 index 0000000..1076772 --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserMutation/sendStaticNotification.ts @@ -0,0 +1,11 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; +import { errMiddleware } from '../utils/middleware.js'; +import { sendStaticNotification } from '../utils/pusher.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserMutation', 'sendStaticNotification', async (args) => + errMiddleware( + async () => await sendStaticNotification(args.input.channelsId, args.input.event, args.input.message), + ), + )(input.arguments); diff --git a/packages/integrations/gei-notifications/src/UserQuery/getChannelAuthorization.ts b/packages/integrations/gei-notifications/src/UserQuery/getChannelAuthorization.ts new file mode 100644 index 0000000..160ad66 --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserQuery/getChannelAuthorization.ts @@ -0,0 +1,14 @@ +import { errMiddleware } from './../utils/middleware.js'; +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; +import { channelsClient } from '../utils/pusher.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserQuery', 'getChannelAuthorization', async (args) => + errMiddleware(async () => { + const socketId = args.input.socketId; + const channel = args.input.targetId; + const auth = channelsClient.authorizeChannel(socketId, channel); + return auth; + }), + )(input.arguments); diff --git a/packages/integrations/gei-notifications/src/UserQuery/getPushNotificationToken.ts b/packages/integrations/gei-notifications/src/UserQuery/getPushNotificationToken.ts new file mode 100644 index 0000000..00d7d6b --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserQuery/getPushNotificationToken.ts @@ -0,0 +1,11 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; +import { generateBeamToken } from '../utils/beam.js'; +import { errMiddleware } from '../utils/middleware.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserQuery', 'getPushNotificationToken', async (args, { userId }) => + errMiddleware(async () => { + return generateBeamToken(userId); + }), + )(input.arguments, input.source); diff --git a/packages/integrations/gei-notifications/src/models/GetChannelAuthorizationResultModel.ts b/packages/integrations/gei-notifications/src/models/GetChannelAuthorizationResultModel.ts new file mode 100644 index 0000000..7090c48 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/GetChannelAuthorizationResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type GetChannelAuthorizationResultModel = ModelTypes['GetChannelAuthorizationResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/GetPushNotificationTokenResultModel.ts b/packages/integrations/gei-notifications/src/models/GetPushNotificationTokenResultModel.ts new file mode 100644 index 0000000..b64a766 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/GetPushNotificationTokenResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type GetPushNotificationTokenResultModel = ModelTypes['GetPushNotificationTokenResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/GlobalErrorModel.ts b/packages/integrations/gei-notifications/src/models/GlobalErrorModel.ts new file mode 100644 index 0000000..85dedcf --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/GlobalErrorModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type GlobalErrorModel = ModelTypes['GlobalError']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/MutationModel.ts b/packages/integrations/gei-notifications/src/models/MutationModel.ts new file mode 100644 index 0000000..441ef31 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/MutationModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type MutationModel = ModelTypes['Mutation']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/QueryModel.ts b/packages/integrations/gei-notifications/src/models/QueryModel.ts new file mode 100644 index 0000000..6a95d67 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/QueryModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type QueryModel = ModelTypes['Query']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/SendNotificationResultModel.ts b/packages/integrations/gei-notifications/src/models/SendNotificationResultModel.ts new file mode 100644 index 0000000..bc65eda --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/SendNotificationResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type SendNotificationResultModel = ModelTypes['SendNotificationResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/UserMutationModel.ts b/packages/integrations/gei-notifications/src/models/UserMutationModel.ts new file mode 100644 index 0000000..cd9b989 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/UserMutationModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type UserMutationModel = ModelTypes['UserMutation']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/UserQueryModel.ts b/packages/integrations/gei-notifications/src/models/UserQueryModel.ts new file mode 100644 index 0000000..0333a64 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/UserQueryModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type UserQueryModel = ModelTypes['UserQuery']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/index.ts b/packages/integrations/gei-notifications/src/models/index.ts new file mode 100644 index 0000000..d817ebc --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/index.ts @@ -0,0 +1,20 @@ +import { QueryModel } from './QueryModel.js' +import { UserQueryModel } from './UserQueryModel.js' +import { MutationModel } from './MutationModel.js' +import { UserMutationModel } from './UserMutationModel.js' +import { GetPushNotificationTokenResultModel } from './GetPushNotificationTokenResultModel.js' +import { GetChannelAuthorizationResultModel } from './GetChannelAuthorizationResultModel.js' +import { SendNotificationResultModel } from './SendNotificationResultModel.js' +import { GlobalErrorModel } from './GlobalErrorModel.js' + + +export type Models = { + QueryModel: QueryModel; + UserQueryModel: UserQueryModel; + MutationModel: MutationModel; + UserMutationModel: UserMutationModel; + GetPushNotificationTokenResultModel: GetPushNotificationTokenResultModel; + GetChannelAuthorizationResultModel: GetChannelAuthorizationResultModel; + SendNotificationResultModel: SendNotificationResultModel; + GlobalErrorModel: GlobalErrorModel; +}; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/utils/beam.ts b/packages/integrations/gei-notifications/src/utils/beam.ts new file mode 100644 index 0000000..d2875a3 --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/beam.ts @@ -0,0 +1,65 @@ +import PushNotifications from '@pusher/push-notifications-server'; +import { getEnv } from './envs.js'; +import { GlobalError } from './middleware.js'; + +export type NotificationPayload = { + title: string; + body: string; +}; + +const beamsClient = new PushNotifications({ + instanceId: getEnv('PUSHER_BEAM_INSTANCE_ID'), + secretKey: getEnv('PUSHER_BEAM_SECRET_KEY'), +}); + +export const sendPushNotificationToInterests = async ( + targets: string[], + notification: NotificationPayload, +): Promise<{ result: boolean }> => { + await beamsClient + .publishToInterests(targets, { + web: { + notification, + }, + fcm: { + notification, + }, + apns: { + aps: { + alert: notification, + }, + }, + }) + .catch((err) => { + throw new GlobalError('Failed to send push notification: ' + err, import.meta.url); + }); + + return { result: true }; +}; + +export const sendPushNotificationToUsers = async ( + targets: string[], + notification: NotificationPayload, +): Promise<{ result: boolean }> => { + await beamsClient + .publishToUsers(targets, { + web: { + notification, + }, + fcm: { + notification, + }, + apns: { + aps: { + alert: notification, + }, + }, + }) + .catch((err) => { + throw new GlobalError('Failed to send push notification: ' + err, import.meta.url); + }); + + return { result: true }; +}; + +export const generateBeamToken = (userId: string) => beamsClient.generateToken(userId); diff --git a/packages/integrations/gei-notifications/src/utils/envs.ts b/packages/integrations/gei-notifications/src/utils/envs.ts new file mode 100644 index 0000000..e3a4076 --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/envs.ts @@ -0,0 +1,8 @@ +export const getEnv = (envName: string) => { + const envValue = process.env[envName]; + if (typeof envValue === "undefined") { + throw new Error(`Please define ${envName}`); + } + return envValue; +}; + diff --git a/packages/integrations/gei-notifications/src/utils/middleware.ts b/packages/integrations/gei-notifications/src/utils/middleware.ts new file mode 100644 index 0000000..b683c21 --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/middleware.ts @@ -0,0 +1,23 @@ +export class GlobalError extends Error { + constructor(public message: string, public path: string) { + super(message); + } +} + +export const errMiddleware = async (handler: () => Promise): Promise => { + try { + return await handler(); + } catch (e) { + if (e instanceof GlobalError) { + return { + response: { + error: { + message: e.message, + path: e.path, + }, + }, + }; + } + return { response: { error: { message: `unknown error: ${e}` } } }; + } +}; diff --git a/packages/integrations/gei-notifications/src/utils/pusher.ts b/packages/integrations/gei-notifications/src/utils/pusher.ts new file mode 100644 index 0000000..db38c62 --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/pusher.ts @@ -0,0 +1,30 @@ +import Pusher from 'pusher'; +import { getEnv } from './envs.js'; +import { GlobalError } from './middleware.js'; + +export const channelsClient = new Pusher({ + appId: getEnv('PUSHER_CHANNEL_APP_ID'), + key: getEnv('PUSHER_CHANNEL_KEY'), + secret: getEnv('PUSHER_CHANNEL_SECRET'), + cluster: getEnv('PUSHER_CHANNEL_CLUSTER'), + useTLS: true, +}); + +export const sendStaticNotification = async ( + targets: string[], + event: string, + message: string, +): Promise<{ result: boolean }> => { + await Promise.all( + targets.map((target) => + channelsClient + .trigger(target, event, { + message, + }) + .catch((err) => { + throw new GlobalError('Failed to send static notification: ' + err, import.meta.url); + }), + ), + ); + return { result: true }; +}; diff --git a/packages/integrations/gei-notifications/src/zeus/const.ts b/packages/integrations/gei-notifications/src/zeus/const.ts new file mode 100644 index 0000000..afff67d --- /dev/null +++ b/packages/integrations/gei-notifications/src/zeus/const.ts @@ -0,0 +1,86 @@ +/* eslint-disable */ + +export const AllTypesProps: Record = { + Query:{ + userQuery:{ + + } + }, + UserQuery:{ + getChannelAuthorization:{ + input:"GetChannelAuthorizationInput" + } + }, + Mutation:{ + userMutation:{ + + } + }, + UserMutation:{ + sendStaticNotification:{ + input:"SendStaticNotificationInput" + }, + sendPushNotificationToUsers:{ + input:"SendPushNotificationInput" + }, + sendPushNotificationToInterests:{ + input:"SendPushNotificationInput" + } + }, + GetChannelAuthorizationInput:{ + + }, + SendStaticNotificationInput:{ + + }, + SendPushNotificationInput:{ + notification:"NotificationPayloadInput" + }, + NotificationPayloadInput:{ + + } +} + +export const ReturnTypes: Record = { + Query:{ + userQuery:"UserQuery" + }, + UserQuery:{ + getChannelAuthorization:"GetChannelAuthorizationResult", + getPushNotificationToken:"GetPushNotificationTokenResult" + }, + Mutation:{ + userMutation:"UserMutation" + }, + UserMutation:{ + sendStaticNotification:"SendNotificationResult", + sendPushNotificationToUsers:"SendNotificationResult", + sendPushNotificationToInterests:"SendNotificationResult" + }, + GetPushNotificationTokenResult:{ + error:"GlobalError", + token:"String" + }, + GetChannelAuthorizationResult:{ + error:"GlobalError", + auth:"String", + channel_data:"String", + shared_secret:"String" + }, + SendNotificationResult:{ + error:"GlobalError", + result:"Boolean" + }, + GlobalError:{ + message:"String", + path:"String" + }, + error:{ + error:"GlobalError" + } +} + +export const Ops = { +query: "Query" as const, + mutation: "Mutation" as const +} \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/zeus/index.ts b/packages/integrations/gei-notifications/src/zeus/index.ts new file mode 100644 index 0000000..3f206a3 --- /dev/null +++ b/packages/integrations/gei-notifications/src/zeus/index.ts @@ -0,0 +1,1102 @@ +/* eslint-disable */ + + +import { AllTypesProps, ReturnTypes, Ops } from './const.js'; +import fetch, { Response } from 'node-fetch'; +import WebSocket from 'ws'; +export const HOST = "http://localhost:8080/" + + +export const HEADERS = {} +export const apiSubscription = (options: chainOptions) => (query: string) => { + try { + const queryString = options[0] + '?query=' + encodeURIComponent(query); + const wsString = queryString.replace('http', 'ws'); + const host = (options.length > 1 && options[1]?.websocket?.[0]) || wsString; + const webSocketOptions = options[1]?.websocket || [host]; + const ws = new WebSocket(...webSocketOptions); + return { + ws, + on: (e: (args: any) => void) => { + ws.onmessage = (event: any) => { + if (event.data) { + const parsed = JSON.parse(event.data); + const data = parsed.data; + return e(data); + } + }; + }, + off: (e: (args: any) => void) => { + ws.onclose = e; + }, + error: (e: (args: any) => void) => { + ws.onerror = e; + }, + open: (e: () => void) => { + ws.onopen = e; + }, + }; + } catch { + throw new Error('No websockets implemented'); + } +}; +const handleFetchResponse = (response: Response): Promise => { + if (!response.ok) { + return new Promise((_, reject) => { + response + .text() + .then((text) => { + try { + reject(JSON.parse(text)); + } catch (err) { + reject(text); + } + }) + .catch(reject); + }); + } + return response.json() as Promise; +}; + +export const apiFetch = + (options: fetchOptions) => + (query: string, variables: Record = {}) => { + const fetchOptions = options[1] || {}; + if (fetchOptions.method && fetchOptions.method === 'GET') { + return fetch(`${options[0]}?query=${encodeURIComponent(query)}`, fetchOptions) + .then(handleFetchResponse) + .then((response: GraphQLResponse) => { + if (response.errors) { + throw new GraphQLError(response); + } + return response.data; + }); + } + return fetch(`${options[0]}`, { + body: JSON.stringify({ query, variables }), + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + ...fetchOptions, + }) + .then(handleFetchResponse) + .then((response: GraphQLResponse) => { + if (response.errors) { + throw new GraphQLError(response); + } + return response.data; + }); + }; + +export const InternalsBuildQuery = ({ + ops, + props, + returns, + options, + scalars, +}: { + props: AllTypesPropsType; + returns: ReturnTypesType; + ops: Operations; + options?: OperationOptions; + scalars?: ScalarDefinition; +}) => { + const ibb = ( + k: string, + o: InputValueType | VType, + p = '', + root = true, + vars: Array<{ name: string; graphQLType: string }> = [], + ): string => { + const keyForPath = purifyGraphQLKey(k); + const newPath = [p, keyForPath].join(SEPARATOR); + if (!o) { + return ''; + } + if (typeof o === 'boolean' || typeof o === 'number') { + return k; + } + if (typeof o === 'string') { + return `${k} ${o}`; + } + if (Array.isArray(o)) { + const args = InternalArgsBuilt({ + props, + returns, + ops, + scalars, + vars, + })(o[0], newPath); + return `${ibb(args ? `${k}(${args})` : k, o[1], p, false, vars)}`; + } + if (k === '__alias') { + return Object.entries(o) + .map(([alias, objectUnderAlias]) => { + if (typeof objectUnderAlias !== 'object' || Array.isArray(objectUnderAlias)) { + throw new Error( + 'Invalid alias it should be __alias:{ YOUR_ALIAS_NAME: { OPERATION_NAME: { ...selectors }}}', + ); + } + const operationName = Object.keys(objectUnderAlias)[0]; + const operation = objectUnderAlias[operationName]; + return ibb(`${alias}:${operationName}`, operation, p, false, vars); + }) + .join('\n'); + } + const hasOperationName = root && options?.operationName ? ' ' + options.operationName : ''; + const keyForDirectives = o.__directives ?? ''; + const query = `{${Object.entries(o) + .filter(([k]) => k !== '__directives') + .map((e) => ibb(...e, [p, `field<>${keyForPath}`].join(SEPARATOR), false, vars)) + .join('\n')}}`; + if (!root) { + return `${k} ${keyForDirectives}${hasOperationName} ${query}`; + } + const varsString = vars.map((v) => `${v.name}: ${v.graphQLType}`).join(', '); + return `${k} ${keyForDirectives}${hasOperationName}${varsString ? `(${varsString})` : ''} ${query}`; + }; + return ibb; +}; + +export const Thunder = + (fn: FetchFunction) => + >( + operation: O, + graphqlOptions?: ThunderGraphQLOptions, + ) => + (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record }) => + fn( + Zeus(operation, o, { + operationOptions: ops, + scalars: graphqlOptions?.scalars, + }), + ops?.variables, + ).then((data) => { + if (graphqlOptions?.scalars) { + return decodeScalarsInResponse({ + response: data, + initialOp: operation, + initialZeusQuery: o as VType, + returns: ReturnTypes, + scalars: graphqlOptions.scalars, + ops: Ops, + }); + } + return data; + }) as Promise>; + +export const Chain = (...options: chainOptions) => Thunder(apiFetch(options)); + +export const SubscriptionThunder = + (fn: SubscriptionFunction) => + >( + operation: O, + graphqlOptions?: ThunderGraphQLOptions, + ) => + (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: ExtractVariables }) => { + const returnedFunction = fn( + Zeus(operation, o, { + operationOptions: ops, + scalars: graphqlOptions?.scalars, + }), + ) as SubscriptionToGraphQL; + if (returnedFunction?.on && graphqlOptions?.scalars) { + const wrapped = returnedFunction.on; + returnedFunction.on = (fnToCall: (args: InputType) => void) => + wrapped((data: InputType) => { + if (graphqlOptions?.scalars) { + return fnToCall( + decodeScalarsInResponse({ + response: data, + initialOp: operation, + initialZeusQuery: o as VType, + returns: ReturnTypes, + scalars: graphqlOptions.scalars, + ops: Ops, + }), + ); + } + return fnToCall(data); + }); + } + return returnedFunction; + }; + +export const Subscription = (...options: chainOptions) => SubscriptionThunder(apiSubscription(options)); +export const Zeus = < + Z extends ValueTypes[R], + O extends keyof typeof Ops, + R extends keyof ValueTypes = GenericOperation, +>( + operation: O, + o: Z | ValueTypes[R], + ops?: { + operationOptions?: OperationOptions; + scalars?: ScalarDefinition; + }, +) => + InternalsBuildQuery({ + props: AllTypesProps, + returns: ReturnTypes, + ops: Ops, + options: ops?.operationOptions, + scalars: ops?.scalars, + })(operation, o as VType); + +export const ZeusSelect = () => ((t: unknown) => t) as SelectionFunction; + +export const Selector = (key: T) => key && ZeusSelect(); + +export const TypeFromSelector = (key: T) => key && ZeusSelect(); +export const Gql = Chain(HOST, { + headers: { + 'Content-Type': 'application/json', + ...HEADERS, + }, +}); + +export const ZeusScalars = ZeusSelect(); + +export const decodeScalarsInResponse = ({ + response, + scalars, + returns, + ops, + initialZeusQuery, + initialOp, +}: { + ops: O; + response: any; + returns: ReturnTypesType; + scalars?: Record; + initialOp: keyof O; + initialZeusQuery: InputValueType | VType; +}) => { + if (!scalars) { + return response; + } + const builder = PrepareScalarPaths({ + ops, + returns, + }); + + const scalarPaths = builder(initialOp as string, ops[initialOp], initialZeusQuery); + if (scalarPaths) { + const r = traverseResponse({ scalarPaths, resolvers: scalars })(initialOp as string, response, [ops[initialOp]]); + return r; + } + return response; +}; + +export const traverseResponse = ({ + resolvers, + scalarPaths, +}: { + scalarPaths: { [x: string]: `scalar.${string}` }; + resolvers: { + [x: string]: ScalarResolver | undefined; + }; +}) => { + const ibb = (k: string, o: InputValueType | VType, p: string[] = []): unknown => { + if (Array.isArray(o)) { + return o.map((eachO) => ibb(k, eachO, p)); + } + if (o == null) { + return o; + } + const scalarPathString = p.join(SEPARATOR); + const currentScalarString = scalarPaths[scalarPathString]; + if (currentScalarString) { + const currentDecoder = resolvers[currentScalarString.split('.')[1]]?.decode; + if (currentDecoder) { + return currentDecoder(o); + } + } + if (typeof o === 'boolean' || typeof o === 'number' || typeof o === 'string' || !o) { + return o; + } + const entries = Object.entries(o).map(([k, v]) => [k, ibb(k, v, [...p, purifyGraphQLKey(k)])] as const); + const objectFromEntries = entries.reduce>((a, [k, v]) => { + a[k] = v; + return a; + }, {}); + return objectFromEntries; + }; + return ibb; +}; + +export type AllTypesPropsType = { + [x: string]: + | undefined + | `scalar.${string}` + | 'enum' + | { + [x: string]: + | undefined + | string + | { + [x: string]: string | undefined; + }; + }; +}; + +export type ReturnTypesType = { + [x: string]: + | { + [x: string]: string | undefined; + } + | `scalar.${string}` + | undefined; +}; +export type InputValueType = { + [x: string]: undefined | boolean | string | number | [any, undefined | boolean | InputValueType] | InputValueType; +}; +export type VType = + | undefined + | boolean + | string + | number + | [any, undefined | boolean | InputValueType] + | InputValueType; + +export type PlainType = boolean | number | string | null | undefined; +export type ZeusArgsType = + | PlainType + | { + [x: string]: ZeusArgsType; + } + | Array; + +export type Operations = Record; + +export type VariableDefinition = { + [x: string]: unknown; +}; + +export const SEPARATOR = '|'; + +export type fetchOptions = Parameters; +type websocketOptions = typeof WebSocket extends new (...args: infer R) => WebSocket ? R : never; +export type chainOptions = [fetchOptions[0], fetchOptions[1] & { websocket?: websocketOptions }] | [fetchOptions[0]]; +export type FetchFunction = (query: string, variables?: Record) => Promise; +export type SubscriptionFunction = (query: string) => any; +type NotUndefined = T extends undefined ? never : T; +export type ResolverType = NotUndefined; + +export type OperationOptions = { + operationName?: string; +}; + +export type ScalarCoder = Record string>; + +export interface GraphQLResponse { + data?: Record; + errors?: Array<{ + message: string; + }>; +} +export class GraphQLError extends Error { + constructor(public response: GraphQLResponse) { + super(''); + console.error(response); + } + toString() { + return 'GraphQL Response Error'; + } +} +export type GenericOperation = O extends keyof typeof Ops ? typeof Ops[O] : never; +export type ThunderGraphQLOptions = { + scalars?: SCLR | ScalarCoders; +}; + +const ExtractScalar = (mappedParts: string[], returns: ReturnTypesType): `scalar.${string}` | undefined => { + if (mappedParts.length === 0) { + return; + } + const oKey = mappedParts[0]; + const returnP1 = returns[oKey]; + if (typeof returnP1 === 'object') { + const returnP2 = returnP1[mappedParts[1]]; + if (returnP2) { + return ExtractScalar([returnP2, ...mappedParts.slice(2)], returns); + } + return undefined; + } + return returnP1 as `scalar.${string}` | undefined; +}; + +export const PrepareScalarPaths = ({ ops, returns }: { returns: ReturnTypesType; ops: Operations }) => { + const ibb = ( + k: string, + originalKey: string, + o: InputValueType | VType, + p: string[] = [], + pOriginals: string[] = [], + root = true, + ): { [x: string]: `scalar.${string}` } | undefined => { + if (!o) { + return; + } + if (typeof o === 'boolean' || typeof o === 'number' || typeof o === 'string') { + const extractionArray = [...pOriginals, originalKey]; + const isScalar = ExtractScalar(extractionArray, returns); + if (isScalar?.startsWith('scalar')) { + const partOfTree = { + [[...p, k].join(SEPARATOR)]: isScalar, + }; + return partOfTree; + } + return {}; + } + if (Array.isArray(o)) { + return ibb(k, k, o[1], p, pOriginals, false); + } + if (k === '__alias') { + return Object.entries(o) + .map(([alias, objectUnderAlias]) => { + if (typeof objectUnderAlias !== 'object' || Array.isArray(objectUnderAlias)) { + throw new Error( + 'Invalid alias it should be __alias:{ YOUR_ALIAS_NAME: { OPERATION_NAME: { ...selectors }}}', + ); + } + const operationName = Object.keys(objectUnderAlias)[0]; + const operation = objectUnderAlias[operationName]; + return ibb(alias, operationName, operation, p, pOriginals, false); + }) + .reduce((a, b) => ({ + ...a, + ...b, + })); + } + const keyName = root ? ops[k] : k; + return Object.entries(o) + .filter(([k]) => k !== '__directives') + .map(([k, v]) => { + // Inline fragments shouldn't be added to the path as they aren't a field + const isInlineFragment = originalKey.match(/^...\s*on/) != null; + return ibb( + k, + k, + v, + isInlineFragment ? p : [...p, purifyGraphQLKey(keyName || k)], + isInlineFragment ? pOriginals : [...pOriginals, purifyGraphQLKey(originalKey)], + false, + ); + }) + .reduce((a, b) => ({ + ...a, + ...b, + })); + }; + return ibb; +}; + +export const purifyGraphQLKey = (k: string) => k.replace(/\([^)]*\)/g, '').replace(/^[^:]*\:/g, ''); + +const mapPart = (p: string) => { + const [isArg, isField] = p.split('<>'); + if (isField) { + return { + v: isField, + __type: 'field', + } as const; + } + return { + v: isArg, + __type: 'arg', + } as const; +}; + +type Part = ReturnType; + +export const ResolveFromPath = (props: AllTypesPropsType, returns: ReturnTypesType, ops: Operations) => { + const ResolvePropsType = (mappedParts: Part[]) => { + const oKey = ops[mappedParts[0].v]; + const propsP1 = oKey ? props[oKey] : props[mappedParts[0].v]; + if (propsP1 === 'enum' && mappedParts.length === 1) { + return 'enum'; + } + if (typeof propsP1 === 'string' && propsP1.startsWith('scalar.') && mappedParts.length === 1) { + return propsP1; + } + if (typeof propsP1 === 'object') { + if (mappedParts.length < 2) { + return 'not'; + } + const propsP2 = propsP1[mappedParts[1].v]; + if (typeof propsP2 === 'string') { + return rpp( + `${propsP2}${SEPARATOR}${mappedParts + .slice(2) + .map((mp) => mp.v) + .join(SEPARATOR)}`, + ); + } + if (typeof propsP2 === 'object') { + if (mappedParts.length < 3) { + return 'not'; + } + const propsP3 = propsP2[mappedParts[2].v]; + if (propsP3 && mappedParts[2].__type === 'arg') { + return rpp( + `${propsP3}${SEPARATOR}${mappedParts + .slice(3) + .map((mp) => mp.v) + .join(SEPARATOR)}`, + ); + } + } + } + }; + const ResolveReturnType = (mappedParts: Part[]) => { + if (mappedParts.length === 0) { + return 'not'; + } + const oKey = ops[mappedParts[0].v]; + const returnP1 = oKey ? returns[oKey] : returns[mappedParts[0].v]; + if (typeof returnP1 === 'object') { + if (mappedParts.length < 2) return 'not'; + const returnP2 = returnP1[mappedParts[1].v]; + if (returnP2) { + return rpp( + `${returnP2}${SEPARATOR}${mappedParts + .slice(2) + .map((mp) => mp.v) + .join(SEPARATOR)}`, + ); + } + } + }; + const rpp = (path: string): 'enum' | 'not' | `scalar.${string}` => { + const parts = path.split(SEPARATOR).filter((l) => l.length > 0); + const mappedParts = parts.map(mapPart); + const propsP1 = ResolvePropsType(mappedParts); + if (propsP1) { + return propsP1; + } + const returnP1 = ResolveReturnType(mappedParts); + if (returnP1) { + return returnP1; + } + return 'not'; + }; + return rpp; +}; + +export const InternalArgsBuilt = ({ + props, + ops, + returns, + scalars, + vars, +}: { + props: AllTypesPropsType; + returns: ReturnTypesType; + ops: Operations; + scalars?: ScalarDefinition; + vars: Array<{ name: string; graphQLType: string }>; +}) => { + const arb = (a: ZeusArgsType, p = '', root = true): string => { + if (typeof a === 'string') { + if (a.startsWith(START_VAR_NAME)) { + const [varName, graphQLType] = a.replace(START_VAR_NAME, '$').split(GRAPHQL_TYPE_SEPARATOR); + const v = vars.find((v) => v.name === varName); + if (!v) { + vars.push({ + name: varName, + graphQLType, + }); + } else { + if (v.graphQLType !== graphQLType) { + throw new Error( + `Invalid variable exists with two different GraphQL Types, "${v.graphQLType}" and ${graphQLType}`, + ); + } + } + return varName; + } + } + const checkType = ResolveFromPath(props, returns, ops)(p); + if (checkType.startsWith('scalar.')) { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const [_, ...splittedScalar] = checkType.split('.'); + const scalarKey = splittedScalar.join('.'); + return (scalars?.[scalarKey]?.encode?.(a) as string) || JSON.stringify(a); + } + if (Array.isArray(a)) { + return `[${a.map((arr) => arb(arr, p, false)).join(', ')}]`; + } + if (typeof a === 'string') { + if (checkType === 'enum') { + return a; + } + return `${JSON.stringify(a)}`; + } + if (typeof a === 'object') { + if (a === null) { + return `null`; + } + const returnedObjectString = Object.entries(a) + .filter(([, v]) => typeof v !== 'undefined') + .map(([k, v]) => `${k}: ${arb(v, [p, k].join(SEPARATOR), false)}`) + .join(',\n'); + if (!root) { + return `{${returnedObjectString}}`; + } + return returnedObjectString; + } + return `${a}`; + }; + return arb; +}; + +export const resolverFor = ( + type: T, + field: Z, + fn: ( + args: Required[Z] extends [infer Input, any] ? Input : any, + source: any, + ) => Z extends keyof ModelTypes[T] ? ModelTypes[T][Z] | Promise | X : never, +) => fn as (args?: any, source?: any) => ReturnType; + +export type UnwrapPromise = T extends Promise ? R : T; +export type ZeusState Promise> = NonNullable>>; +export type ZeusHook< + T extends (...args: any[]) => Record Promise>, + N extends keyof ReturnType, +> = ZeusState[N]>; + +export type WithTypeNameValue = T & { + __typename?: boolean; + __directives?: string; +}; +export type AliasType = WithTypeNameValue & { + __alias?: Record>; +}; +type DeepAnify = { + [P in keyof T]?: any; +}; +type IsPayLoad = T extends [any, infer PayLoad] ? PayLoad : T; +export type ScalarDefinition = Record; + +type IsScalar = S extends 'scalar' & { name: infer T } + ? T extends keyof SCLR + ? SCLR[T]['decode'] extends (s: unknown) => unknown + ? ReturnType + : unknown + : unknown + : S; +type IsArray = T extends Array + ? InputType[] + : InputType; +type FlattenArray = T extends Array ? R : T; +type BaseZeusResolver = boolean | 1 | string | Variable; + +type IsInterfaced, DST, SCLR extends ScalarDefinition> = FlattenArray extends + | ZEUS_INTERFACES + | ZEUS_UNIONS + ? { + [P in keyof SRC]: SRC[P] extends '__union' & infer R + ? P extends keyof DST + ? IsArray + : IsArray + : never; + }[keyof SRC] & { + [P in keyof Omit< + Pick< + SRC, + { + [P in keyof DST]: SRC[P] extends '__union' & infer R ? never : P; + }[keyof DST] + >, + '__typename' + >]: IsPayLoad extends BaseZeusResolver ? IsScalar : IsArray; + } + : { + [P in keyof Pick]: IsPayLoad extends BaseZeusResolver + ? IsScalar + : IsArray; + }; + +export type MapType = SRC extends DeepAnify + ? IsInterfaced + : never; +// eslint-disable-next-line @typescript-eslint/ban-types +export type InputType = IsPayLoad extends { __alias: infer R } + ? { + [P in keyof R]: MapType[keyof MapType]; + } & MapType, '__alias'>, SCLR> + : MapType, SCLR>; +export type SubscriptionToGraphQL = { + ws: WebSocket; + on: (fn: (args: InputType) => void) => void; + off: (fn: (e: { data?: InputType; code?: number; reason?: string; message?: string }) => void) => void; + error: (fn: (e: { data?: InputType; errors?: string[] }) => void) => void; + open: () => void; +}; + +// eslint-disable-next-line @typescript-eslint/ban-types +export type FromSelector = InputType< + GraphQLTypes[NAME], + SELECTOR, + SCLR +>; + +export type ScalarResolver = { + encode?: (s: unknown) => string; + decode?: (s: unknown) => unknown; +}; + +export type SelectionFunction = (t: T | V) => T; + +type BuiltInVariableTypes = { + ['String']: string; + ['Int']: number; + ['Float']: number; + ['ID']: unknown; + ['Boolean']: boolean; +}; +type AllVariableTypes = keyof BuiltInVariableTypes | keyof ZEUS_VARIABLES; +type VariableRequired = `${T}!` | T | `[${T}]` | `[${T}]!` | `[${T}!]` | `[${T}!]!`; +type VR = VariableRequired>; + +export type GraphQLVariableType = VR; + +type ExtractVariableTypeString = T extends VR + ? R1 extends VR + ? R2 extends VR + ? R3 extends VR + ? R4 extends VR + ? R5 + : R4 + : R3 + : R2 + : R1 + : T; + +type DecomposeType = T extends `[${infer R}]` + ? Array> | undefined + : T extends `${infer R}!` + ? NonNullable> + : Type | undefined; + +type ExtractTypeFromGraphQLType = T extends keyof ZEUS_VARIABLES + ? ZEUS_VARIABLES[T] + : T extends keyof BuiltInVariableTypes + ? BuiltInVariableTypes[T] + : any; + +export type GetVariableType = DecomposeType< + T, + ExtractTypeFromGraphQLType> +>; + +type UndefinedKeys = { + [K in keyof T]-?: T[K] extends NonNullable ? never : K; +}[keyof T]; + +type WithNullableKeys = Pick>; +type WithNonNullableKeys = Omit>; + +type OptionalKeys = { + [P in keyof T]?: T[P]; +}; + +export type WithOptionalNullables = OptionalKeys> & WithNonNullableKeys; + +export type Variable = { + ' __zeus_name': Name; + ' __zeus_type': T; +}; + +export type ExtractVariables = Query extends Variable + ? { [key in VName]: GetVariableType } + : Query extends [infer Inputs, infer Outputs] + ? ExtractVariables & ExtractVariables + : Query extends string | number | boolean + ? // eslint-disable-next-line @typescript-eslint/ban-types + {} + : UnionToIntersection<{ [K in keyof Query]: WithOptionalNullables> }[keyof Query]>; + +type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; + +export const START_VAR_NAME = `$ZEUS_VAR`; +export const GRAPHQL_TYPE_SEPARATOR = `__$GRAPHQL__`; + +export const $ = (name: Name, graphqlType: Type) => { + return (START_VAR_NAME + name + GRAPHQL_TYPE_SEPARATOR + graphqlType) as unknown as Variable; +}; +type ZEUS_INTERFACES = GraphQLTypes["error"] +export type ScalarCoders = { +} +type ZEUS_UNIONS = never + +export type ValueTypes = { + ["Query"]: AliasType<{ +userQuery?: [{ userId: string | Variable},ValueTypes["UserQuery"]], + __typename?: boolean | `@${string}` +}>; + ["UserQuery"]: AliasType<{ +getChannelAuthorization?: [{ input: ValueTypes["GetChannelAuthorizationInput"] | Variable},ValueTypes["GetChannelAuthorizationResult"]], + getPushNotificationToken?:ValueTypes["GetPushNotificationTokenResult"], + __typename?: boolean | `@${string}` +}>; + ["Mutation"]: AliasType<{ +userMutation?: [{ userId: string | Variable},ValueTypes["UserMutation"]], + __typename?: boolean | `@${string}` +}>; + ["UserMutation"]: AliasType<{ +sendStaticNotification?: [{ input: ValueTypes["SendStaticNotificationInput"] | Variable},ValueTypes["SendNotificationResult"]], +sendPushNotificationToUsers?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendNotificationResult"]], +sendPushNotificationToInterests?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendNotificationResult"]], + __typename?: boolean | `@${string}` +}>; + ["GetPushNotificationTokenResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + token?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["GetChannelAuthorizationInput"]: { + targetId: string | Variable, + socketId: string | Variable +}; + ["GetChannelAuthorizationResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + auth?:boolean | `@${string}`, + channel_data?:boolean | `@${string}`, + shared_secret?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["SendStaticNotificationInput"]: { + channelsId: Array | Variable, + message: string | Variable, + event: string | Variable +}; + ["SendPushNotificationInput"]: { + targets: Array | Variable, + notification: ValueTypes["NotificationPayloadInput"] | Variable +}; + ["NotificationPayloadInput"]: { + title: string | Variable, + body: string | Variable +}; + ["SendNotificationResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["GlobalError"]: AliasType<{ + message?:boolean | `@${string}`, + path?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["error"]:AliasType<{ + error?:ValueTypes["GlobalError"]; + + __typename?: boolean | `@${string}` +}> + } + +export type ResolverInputTypes = { + ["Query"]: AliasType<{ +userQuery?: [{ userId: string},ResolverInputTypes["UserQuery"]], + __typename?: boolean | `@${string}` +}>; + ["UserQuery"]: AliasType<{ +getChannelAuthorization?: [{ input: ResolverInputTypes["GetChannelAuthorizationInput"]},ResolverInputTypes["GetChannelAuthorizationResult"]], + getPushNotificationToken?:ResolverInputTypes["GetPushNotificationTokenResult"], + __typename?: boolean | `@${string}` +}>; + ["Mutation"]: AliasType<{ +userMutation?: [{ userId: string},ResolverInputTypes["UserMutation"]], + __typename?: boolean | `@${string}` +}>; + ["UserMutation"]: AliasType<{ +sendStaticNotification?: [{ input: ResolverInputTypes["SendStaticNotificationInput"]},ResolverInputTypes["SendNotificationResult"]], +sendPushNotificationToUsers?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendNotificationResult"]], +sendPushNotificationToInterests?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendNotificationResult"]], + __typename?: boolean | `@${string}` +}>; + ["GetPushNotificationTokenResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + token?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["GetChannelAuthorizationInput"]: { + targetId: string, + socketId: string +}; + ["GetChannelAuthorizationResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + auth?:boolean | `@${string}`, + channel_data?:boolean | `@${string}`, + shared_secret?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["SendStaticNotificationInput"]: { + channelsId: Array, + message: string, + event: string +}; + ["SendPushNotificationInput"]: { + targets: Array, + notification: ResolverInputTypes["NotificationPayloadInput"] +}; + ["NotificationPayloadInput"]: { + title: string, + body: string +}; + ["SendNotificationResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["GlobalError"]: AliasType<{ + message?:boolean | `@${string}`, + path?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["error"]:AliasType<{ + error?:ResolverInputTypes["GlobalError"]; + + __typename?: boolean | `@${string}` +}>; + ["schema"]: AliasType<{ + query?:ResolverInputTypes["Query"], + mutation?:ResolverInputTypes["Mutation"], + __typename?: boolean | `@${string}` +}> + } + +export type ModelTypes = { + ["Query"]: { + userQuery?: ModelTypes["UserQuery"] | undefined +}; + ["UserQuery"]: { + getChannelAuthorization: ModelTypes["GetChannelAuthorizationResult"], + getPushNotificationToken: ModelTypes["GetPushNotificationTokenResult"] +}; + ["Mutation"]: { + userMutation?: ModelTypes["UserMutation"] | undefined +}; + ["UserMutation"]: { + sendStaticNotification: ModelTypes["SendNotificationResult"], + sendPushNotificationToUsers: ModelTypes["SendNotificationResult"], + sendPushNotificationToInterests: ModelTypes["SendNotificationResult"] +}; + ["GetPushNotificationTokenResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + token: string +}; + ["GetChannelAuthorizationInput"]: { + targetId: string, + socketId: string +}; + ["GetChannelAuthorizationResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + auth?: string | undefined, + channel_data?: string | undefined, + shared_secret?: string | undefined +}; + ["SendStaticNotificationInput"]: { + channelsId: Array, + message: string, + event: string +}; + ["SendPushNotificationInput"]: { + targets: Array, + notification: ModelTypes["NotificationPayloadInput"] +}; + ["NotificationPayloadInput"]: { + title: string, + body: string +}; + ["SendNotificationResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["GlobalError"]: { + message: string, + path: string +}; + ["error"]: never; + ["schema"]: { + query?: ModelTypes["Query"] | undefined, + mutation?: ModelTypes["Mutation"] | undefined +} + } + +export type GraphQLTypes = { + ["Query"]: { + __typename: "Query", + userQuery?: GraphQLTypes["UserQuery"] | undefined +}; + ["UserQuery"]: { + __typename: "UserQuery", + getChannelAuthorization: GraphQLTypes["GetChannelAuthorizationResult"], + getPushNotificationToken: GraphQLTypes["GetPushNotificationTokenResult"] +}; + ["Mutation"]: { + __typename: "Mutation", + userMutation?: GraphQLTypes["UserMutation"] | undefined +}; + ["UserMutation"]: { + __typename: "UserMutation", + sendStaticNotification: GraphQLTypes["SendNotificationResult"], + sendPushNotificationToUsers: GraphQLTypes["SendNotificationResult"], + sendPushNotificationToInterests: GraphQLTypes["SendNotificationResult"] +}; + ["GetPushNotificationTokenResult"]: { + __typename: "GetPushNotificationTokenResult", + error?: GraphQLTypes["GlobalError"] | undefined, + token: string +}; + ["GetChannelAuthorizationInput"]: { + targetId: string, + socketId: string +}; + ["GetChannelAuthorizationResult"]: { + __typename: "GetChannelAuthorizationResult", + error?: GraphQLTypes["GlobalError"] | undefined, + auth?: string | undefined, + channel_data?: string | undefined, + shared_secret?: string | undefined +}; + ["SendStaticNotificationInput"]: { + channelsId: Array, + message: string, + event: string +}; + ["SendPushNotificationInput"]: { + targets: Array, + notification: GraphQLTypes["NotificationPayloadInput"] +}; + ["NotificationPayloadInput"]: { + title: string, + body: string +}; + ["SendNotificationResult"]: { + __typename: "SendNotificationResult", + error?: GraphQLTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["GlobalError"]: { + __typename: "GlobalError", + message: string, + path: string +}; + ["error"]: { + __typename:never, + error?: GraphQLTypes["GlobalError"] | undefined + +} + } + + +type ZEUS_VARIABLES = { + ["GetChannelAuthorizationInput"]: ValueTypes["GetChannelAuthorizationInput"]; + ["SendStaticNotificationInput"]: ValueTypes["SendStaticNotificationInput"]; + ["SendPushNotificationInput"]: ValueTypes["SendPushNotificationInput"]; + ["NotificationPayloadInput"]: ValueTypes["NotificationPayloadInput"]; +} \ No newline at end of file diff --git a/packages/integrations/gei-notifications/stucco.json b/packages/integrations/gei-notifications/stucco.json new file mode 100644 index 0000000..40803b7 --- /dev/null +++ b/packages/integrations/gei-notifications/stucco.json @@ -0,0 +1,44 @@ +{ + "resolvers": { + "Query.userQuery": { + "resolve": { + "name": "lib/Query/userQuery.js" + } + }, + "Mutation.userMutation": { + "resolve": { + "name": "lib/Mutation/userMutation" + } + }, + "UserMutation.sendStaticNotification": { + "resolve": { + "name": "lib/UserMutation/sendStaticNotification" + } + }, + "UserMutation.getChannelAuthorization": { + "resolve": { + "name": "lib/UserMutation/getChannelAuthorization" + } + }, + "UserMutation.sendPushNotificationToUsers": { + "resolve": { + "name": "lib/UserMutation/sendPushNotificationToUsers" + } + }, + "UserMutation.sendPushNotificationToInterests": { + "resolve": { + "name": "lib/UserMutation/sendPushNotificationToInterests" + } + }, + "UserQuery.getChannelAuthorization": { + "resolve": { + "name": "lib/UserQuery/getChannelAuthorization" + } + }, + "UserQuery.getPushNotificationToken": { + "resolve": { + "name": "lib/UserQuery/getPushNotificationToken" + } + } + } +} diff --git a/packages/integrations/gei-notifications/tsconfig.json b/packages/integrations/gei-notifications/tsconfig.json new file mode 100644 index 0000000..f1c8df2 --- /dev/null +++ b/packages/integrations/gei-notifications/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "skipLibCheck": true, + "moduleResolution": "node", + "target": "es2022", + "module": "es2022", + "declaration": true, + "outDir": "./lib", + "rootDir": "./src", + "strict": true, + "strictNullChecks": true, + "esModuleInterop": true + }, + "include": [ + "./src/**/*" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file