From 525c4c9ba743441e9b095516bac84ed1ac2c9efa Mon Sep 17 00:00:00 2001 From: TakSeBiegam Date: Wed, 4 Oct 2023 12:38:28 +0200 Subject: [PATCH 1/7] feat: Init gei notifications --- .../gei-notifications/.eslintrc.json | 18 + .../integrations/gei-notifications/.gitignore | 4 + .../gei-notifications/.graphql-editor.json | 11 + .../gei-notifications/.prettierrc.json | 8 + .../gei-notifications/package-lock.json | 2710 +++++++++++++++++ .../gei-notifications/package.json | 35 + .../gei-notifications/schema.graphql | 232 ++ .../src/Mutation/userMutation.ts | 5 + .../src/PublicQuery/listNotificationGroups.ts | 24 + .../src/Query/publicQuery.ts | 3 + .../gei-notifications/src/Query/userQuery.ts | 7 + .../UserMutation/createNotificationGroup.ts | 22 + .../UserMutation/sendStaticNotification.ts | 11 + .../src/UserQuery/listChannels.ts | 7 + .../src/UserQuery/listNotifications.ts | 41 + .../src/models/AddUserToGroupResultModel.ts | 3 + .../src/models/ChannelModel.ts | 3 + .../CreateNotificationGroupResultModel.ts | 3 + .../DeleteNotificationGroupResultModel.ts | 3 + .../EditNotificationGroupResultModel.ts | 3 + ...eneratePushNotificationTokenResultModel.ts | 3 + .../src/models/GlobalErrorModel.ts | 3 + .../src/models/ListChannelsResultModel.ts | 3 + .../ListNotificationGroupsResultModel.ts | 3 + .../models/ListNotificationsResultModel.ts | 3 + .../MarkNotificationReadedResultModel.ts | 3 + .../src/models/MutationModel.ts | 3 + .../src/models/NotificationGroupModel.ts | 3 + .../src/models/NotificationGroupOpsModel.ts | 3 + .../src/models/NotificationModel.ts | 3 + .../src/models/NotificationReadedModel.ts | 3 + .../src/models/PageOptionsResultModel.ts | 3 + .../src/models/PublicQueryModel.ts | 3 + .../src/models/QueryModel.ts | 3 + .../models/RemoveUserToGroupResultModel.ts | 3 + .../SendStaticNotificationResultModel.ts | 3 + .../src/models/UserMutationModel.ts | 3 + .../src/models/UserQueryModel.ts | 3 + .../gei-notifications/src/models/index.ts | 50 + .../src/utils/dateMiddleware.ts | 29 + .../src/utils/db/collections.ts | 5 + .../gei-notifications/src/utils/db/db.ts | 25 + .../gei-notifications/src/utils/db/orm.ts | 92 + .../gei-notifications/src/utils/envs.ts | 8 + .../gei-notifications/src/utils/middleware.ts | 37 + .../src/utils/pusher/beam.ts | 38 + .../src/utils/pusher/channel.ts | 26 + .../gei-notifications/src/utils/tools.ts | 3 + .../gei-notifications/src/zeus/const.ts | 223 ++ .../gei-notifications/src/zeus/index.ts | 1653 ++++++++++ .../gei-notifications/stucco.json | 49 + .../gei-notifications/tsconfig.json | 20 + 52 files changed, 5465 insertions(+) create mode 100644 packages/integrations/gei-notifications/.eslintrc.json create mode 100644 packages/integrations/gei-notifications/.gitignore create mode 100644 packages/integrations/gei-notifications/.graphql-editor.json create mode 100644 packages/integrations/gei-notifications/.prettierrc.json create mode 100644 packages/integrations/gei-notifications/package-lock.json create mode 100644 packages/integrations/gei-notifications/package.json create mode 100644 packages/integrations/gei-notifications/schema.graphql create mode 100644 packages/integrations/gei-notifications/src/Mutation/userMutation.ts create mode 100644 packages/integrations/gei-notifications/src/PublicQuery/listNotificationGroups.ts create mode 100644 packages/integrations/gei-notifications/src/Query/publicQuery.ts create mode 100644 packages/integrations/gei-notifications/src/Query/userQuery.ts create mode 100644 packages/integrations/gei-notifications/src/UserMutation/createNotificationGroup.ts create mode 100644 packages/integrations/gei-notifications/src/UserMutation/sendStaticNotification.ts create mode 100644 packages/integrations/gei-notifications/src/UserQuery/listChannels.ts create mode 100644 packages/integrations/gei-notifications/src/UserQuery/listNotifications.ts create mode 100644 packages/integrations/gei-notifications/src/models/AddUserToGroupResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/ChannelModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/CreateNotificationGroupResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/DeleteNotificationGroupResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/EditNotificationGroupResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/GeneratePushNotificationTokenResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/GlobalErrorModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/ListChannelsResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/ListNotificationGroupsResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/ListNotificationsResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/MarkNotificationReadedResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/MutationModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/NotificationGroupModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/NotificationGroupOpsModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/NotificationModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/NotificationReadedModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/PageOptionsResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/PublicQueryModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/QueryModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/RemoveUserToGroupResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/SendStaticNotificationResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/UserMutationModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/UserQueryModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/index.ts create mode 100644 packages/integrations/gei-notifications/src/utils/dateMiddleware.ts create mode 100644 packages/integrations/gei-notifications/src/utils/db/collections.ts create mode 100644 packages/integrations/gei-notifications/src/utils/db/db.ts create mode 100644 packages/integrations/gei-notifications/src/utils/db/orm.ts create mode 100644 packages/integrations/gei-notifications/src/utils/envs.ts create mode 100644 packages/integrations/gei-notifications/src/utils/middleware.ts create mode 100644 packages/integrations/gei-notifications/src/utils/pusher/beam.ts create mode 100644 packages/integrations/gei-notifications/src/utils/pusher/channel.ts create mode 100644 packages/integrations/gei-notifications/src/utils/tools.ts create mode 100644 packages/integrations/gei-notifications/src/zeus/const.ts create mode 100644 packages/integrations/gei-notifications/src/zeus/index.ts create mode 100644 packages/integrations/gei-notifications/stucco.json create mode 100644 packages/integrations/gei-notifications/tsconfig.json 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..d2ed75d --- /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..4247301 --- /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 && 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..d452814 --- /dev/null +++ b/packages/integrations/gei-notifications/schema.graphql @@ -0,0 +1,232 @@ +type Query { + userQuery(userId: String!): UserQuery + publicQuery: PublicQuery! +} + +type UserQuery { + listNotifications(input: ListNotificationsInput): ListNotificationsResult! + listChannels(input: ListChannelsInput): ListChannelsResult! + generatePushNotificationToken: GeneratePushNotificationTokenResult! +} + +type Mutation { + userMutation(userId: String!): UserMutation +} + +type UserMutation { + markNotificationReaded(input: MarkNotificationReadedInput!): MarkNotificationReadedResult! + sendStaticNotification(input: SendStaticNotificationInput!): SendStaticNotificationResult! + createNotificationGroup(input: CreateNotificationGroupInput!): CreateNotificationGroupResult! + modifyNotifactionGroup(groupId: String!): NotificationGroupOps +} + +type PublicQuery { + listNotificationGroups(input: ListNotificationGroupsInput): ListNotificationGroupsResult! +} + +type NotificationGroupOps { + """ + if we adding or removing users, duplicates will be reduced + """ + addUserToGroup(userIds: [String!]): AddUserToGroupResult! + removeUserFromGroup(userIds: [String!]): RemoveUserToGroupResult! + editNotificationGroup(input: EditNotificationGroupInput!): EditNotificationGroupResult + deleteNotificationGroup: DeleteNotificationGroupResult! +} + +type GeneratePushNotificationTokenResult { + error: GlobalError + token: String! + exp: Date +} + +input ListChannelsInput { + page: PageOptionsInput +} + +input ListNotificationGroupsInput { + page: PageOptionsInput + filter: ListNotificationGroupsInputFilter +} + +input ListNotificationGroupsInputFilter { + """ + this is a regex searching + """ + name: String + """ + if targetId is filled, this filter will return Notification groups that contains inside specific target + """ + targetId: String + sortDirection: SortDirection + notificationType: NotificationType + startDate: Date + endDate: Date +} + +input ListNotificationsInput { + filter: ListNotificationsInputFilter + page: PageOptionsInput +} + +input ListNotificationsInputFilter { + notificationType: NotificationType + sortDirection: SortDirection + isReaded: Boolean + startDate: Date + endDate: Date +} + +input SendStaticNotificationInput { + channelsId: [String!]! + message: String! + event: String! +} + +type ListChannelsResult { + error: GlobalError + result: [Channel!] + page: PageOptionsResult +} + +type DeleteNotificationGroupResult { + error: GlobalError + result: Boolean +} + +type SendStaticNotificationResult { + error: GlobalError + result: Boolean +} + +type EditNotificationGroupResult { + error: GlobalError + result: Boolean +} + +input EditNotificationGroupInput { + name: String + users: [String!] +} + +type AddUserToGroupResult implements error { + result: Boolean + error: GlobalError +} + +type RemoveUserToGroupResult implements error { + result: Boolean + error: GlobalError +} + +type CreateNotificationGroupResult implements error { + error: GlobalError + result: Boolean +} + +input CreateNotificationGroupInput { + name: String! + users: [String!]! + notificationType: NotificationType! +} + +type MarkNotificationReadedResult { + error: GlobalError + result: Boolean +} + +input MarkNotificationReadedInput { + state: Boolean! + notificationId: String! +} + +type ListNotificationGroupsResult implements error { + error: GlobalError + notificationGroup: [NotificationGroup!] +} + +type ListNotificationsResult implements error { + error: GlobalError + notification: [Notification!] + page: PageOptionsResult +} + +type GlobalError { + message: String! + path: String! +} + +type Notification implements DbEssentials { + body: String! + targetIds: [String!]! + _id: String! + createdAt: Date! + isReaded: Boolean! + notificationType: NotificationType! +} + +type NotificationGroup implements DbEssentials { + targets: [String!]! + notificationType: NotificationType! + name: String! + _id: String! + createdAt: Date! +} + +type NotificationReaded { + userId: String! + notificationId: String! + createdAt: Date! +} + +type Channel { + channelId: String! + createdAt: Date +} + +input PageOptionsInput { + """ + default limit is 10 + """ + limit: Int + """ + count stating from 0 + """ + page: Int +} + +type PageOptionsResult { + count: Int + hasNext: Boolean +} + +interface DbEssentials { + _id: String! + createdAt: Date! +} + +interface error { + error: GlobalError +} + +enum NotificationTargetType { + USER + GROUP +} + +enum SortDirection { + asc + desc +} + +enum NotificationType { + STATIC + PUSH +} + +scalar Date + +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..f0a71fc --- /dev/null +++ b/packages/integrations/gei-notifications/src/Mutation/userMutation.ts @@ -0,0 +1,5 @@ +import { FieldResolveInput } from 'stucco-js'; + +export const handler = async (input: FieldResolveInput) => ({ + userId: 'root', +}); diff --git a/packages/integrations/gei-notifications/src/PublicQuery/listNotificationGroups.ts b/packages/integrations/gei-notifications/src/PublicQuery/listNotificationGroups.ts new file mode 100644 index 0000000..7732728 --- /dev/null +++ b/packages/integrations/gei-notifications/src/PublicQuery/listNotificationGroups.ts @@ -0,0 +1,24 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; +import { orm, prepareDateOptions, preparePageOptions } from '../utils/db/orm.js'; + +export const isNotNullObject = (v: unknown): v is Record => + typeof v === 'object' && v !== null; + +export const handler = async (input: FieldResolveInput) => + resolverFor('PublicQuery', 'listNotificationGroups', async (args, src) => { + const { limit, skip } = preparePageOptions(args.input?.page); + const o = await orm(); + console.log('abc'); + return await o('NotificationGroup') + .collection.find({ + ...(args.input?.filter?.name && { name: { $regex: args.input.filter.name } }), + ...(args.input?.filter?.targetId && { targets: args.input.filter.targetId }), + ...prepareDateOptions(args.input?.filter?.startDate, args.input?.filter?.endDate), + ...(args.input?.filter?.notificationType && { notificationType: args.input.filter.notificationType }), + }) + .limit(limit) + .skip(skip) + .sort({ createdAt: args.input?.filter?.sortDirection ? args.input.filter.sortDirection : 'desc' }) + .toArray(); + })(input.arguments, input.source); diff --git a/packages/integrations/gei-notifications/src/Query/publicQuery.ts b/packages/integrations/gei-notifications/src/Query/publicQuery.ts new file mode 100644 index 0000000..12e933a --- /dev/null +++ b/packages/integrations/gei-notifications/src/Query/publicQuery.ts @@ -0,0 +1,3 @@ +import { FieldResolveInput } from 'stucco-js'; + +export const handler = async (input: FieldResolveInput) => ({}); 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..cad7972 --- /dev/null +++ b/packages/integrations/gei-notifications/src/Query/userQuery.ts @@ -0,0 +1,7 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('Query', 'userQuery', async (args) => ({ + userId: 'root', + }))(input.arguments); diff --git a/packages/integrations/gei-notifications/src/UserMutation/createNotificationGroup.ts b/packages/integrations/gei-notifications/src/UserMutation/createNotificationGroup.ts new file mode 100644 index 0000000..f8f4810 --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserMutation/createNotificationGroup.ts @@ -0,0 +1,22 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; +import { orm } from '../utils/db/orm.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor( + 'UserMutation', + 'createNotificationGroup', + async (args) => + await orm() + .then((o) => + o('NotificationGroup').createWithAutoFields( + '_id', + 'createdAt', + )({ + targets: args.input.users, + name: args.input.name, + notificationType: args.input.notificationType, + }), + ) + .then((r) => r.acknowledged), + )(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..5b970b7 --- /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/channel.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/listChannels.ts b/packages/integrations/gei-notifications/src/UserQuery/listChannels.ts new file mode 100644 index 0000000..b9018af --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserQuery/listChannels.ts @@ -0,0 +1,7 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserQuery', 'listChannels', async (args, src) => { + return src.userId; + })(input.arguments, input.source); diff --git a/packages/integrations/gei-notifications/src/UserQuery/listNotifications.ts b/packages/integrations/gei-notifications/src/UserQuery/listNotifications.ts new file mode 100644 index 0000000..464f9af --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserQuery/listNotifications.ts @@ -0,0 +1,41 @@ +import { FieldResolveInput } from 'stucco-js'; +import { ModelTypes, resolverFor } from '../zeus/index.js'; +import { orm, preparePageOptions, prepareDateOptions } from '../utils/db/orm.js'; +import { errMiddleware, sourceContainUserIdOrThrow } from '../utils/middleware.js'; + +export const checkIfStaticNotificationIsReaded = async ( + o: Awaited>, + notifications: ModelTypes['Notification'][], + isReaded: boolean | null = false, +) => { + const readedNotifications = await o('Notifications').composeRelated( + notifications, + '_id', + 'NotificationReaded', + 'notificationId', + ); + return notifications.filter((notification) => + isReaded + ? readedNotifications.some((rn) => rn._id === notification._id) + : !readedNotifications.some((rn) => rn._id === notification._id), + ); +}; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserQuery', 'listNotifications', async (args, src) => + errMiddleware(async () => { + sourceContainUserIdOrThrow(src); + const { limit, page } = preparePageOptions(args.input?.page); + const o = await orm(); + const notifications = await o('Notifications') + .collection.find({ + ...(args.input?.filter?.notificationType && { notificationType: args.input.filter.notificationType }), + ...prepareDateOptions(args.input?.filter?.startDate, args.input?.filter?.endDate), + }) + .limit(limit) + .skip(page) + .sort({ createdAt: args.input?.filter?.sortDirection ? args.input.filter.sortDirection : 'desc' }) + .toArray(); + return { notification: await checkIfStaticNotificationIsReaded(o, notifications, args.input?.filter?.isReaded) }; + }), + )(input.arguments, input.source); diff --git a/packages/integrations/gei-notifications/src/models/AddUserToGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/AddUserToGroupResultModel.ts new file mode 100644 index 0000000..ec498d4 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/AddUserToGroupResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type AddUserToGroupResultModel = ModelTypes['AddUserToGroupResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/ChannelModel.ts b/packages/integrations/gei-notifications/src/models/ChannelModel.ts new file mode 100644 index 0000000..3690d6f --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/ChannelModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type ChannelModel = ModelTypes['Channel']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/CreateNotificationGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/CreateNotificationGroupResultModel.ts new file mode 100644 index 0000000..1dd8e69 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/CreateNotificationGroupResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type CreateNotificationGroupResultModel = ModelTypes['CreateNotificationGroupResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/DeleteNotificationGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/DeleteNotificationGroupResultModel.ts new file mode 100644 index 0000000..13cdb59 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/DeleteNotificationGroupResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type DeleteNotificationGroupResultModel = ModelTypes['DeleteNotificationGroupResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/EditNotificationGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/EditNotificationGroupResultModel.ts new file mode 100644 index 0000000..e41d3ad --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/EditNotificationGroupResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type EditNotificationGroupResultModel = ModelTypes['EditNotificationGroupResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/GeneratePushNotificationTokenResultModel.ts b/packages/integrations/gei-notifications/src/models/GeneratePushNotificationTokenResultModel.ts new file mode 100644 index 0000000..983287e --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/GeneratePushNotificationTokenResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type GeneratePushNotificationTokenResultModel = ModelTypes['GeneratePushNotificationTokenResult']; \ 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/ListChannelsResultModel.ts b/packages/integrations/gei-notifications/src/models/ListChannelsResultModel.ts new file mode 100644 index 0000000..e1653be --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/ListChannelsResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type ListChannelsResultModel = ModelTypes['ListChannelsResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/ListNotificationGroupsResultModel.ts b/packages/integrations/gei-notifications/src/models/ListNotificationGroupsResultModel.ts new file mode 100644 index 0000000..68c213d --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/ListNotificationGroupsResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type ListNotificationGroupsResultModel = ModelTypes['ListNotificationGroupsResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/ListNotificationsResultModel.ts b/packages/integrations/gei-notifications/src/models/ListNotificationsResultModel.ts new file mode 100644 index 0000000..eaa8df6 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/ListNotificationsResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type ListNotificationsResultModel = ModelTypes['ListNotificationsResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/MarkNotificationReadedResultModel.ts b/packages/integrations/gei-notifications/src/models/MarkNotificationReadedResultModel.ts new file mode 100644 index 0000000..b736d39 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/MarkNotificationReadedResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type MarkNotificationReadedResultModel = ModelTypes['MarkNotificationReadedResult']; \ 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/NotificationGroupModel.ts b/packages/integrations/gei-notifications/src/models/NotificationGroupModel.ts new file mode 100644 index 0000000..4d0d965 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/NotificationGroupModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type NotificationGroupModel = ModelTypes['NotificationGroup']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/NotificationGroupOpsModel.ts b/packages/integrations/gei-notifications/src/models/NotificationGroupOpsModel.ts new file mode 100644 index 0000000..e3bece4 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/NotificationGroupOpsModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type NotificationGroupOpsModel = ModelTypes['NotificationGroupOps']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/NotificationModel.ts b/packages/integrations/gei-notifications/src/models/NotificationModel.ts new file mode 100644 index 0000000..b65c35b --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/NotificationModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type NotificationModel = ModelTypes['Notification']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/NotificationReadedModel.ts b/packages/integrations/gei-notifications/src/models/NotificationReadedModel.ts new file mode 100644 index 0000000..cd242ee --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/NotificationReadedModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type NotificationReadedModel = ModelTypes['NotificationReaded']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/PageOptionsResultModel.ts b/packages/integrations/gei-notifications/src/models/PageOptionsResultModel.ts new file mode 100644 index 0000000..3d70493 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/PageOptionsResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type PageOptionsResultModel = ModelTypes['PageOptionsResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/PublicQueryModel.ts b/packages/integrations/gei-notifications/src/models/PublicQueryModel.ts new file mode 100644 index 0000000..36e8c5a --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/PublicQueryModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type PublicQueryModel = ModelTypes['PublicQuery']; \ 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/RemoveUserToGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/RemoveUserToGroupResultModel.ts new file mode 100644 index 0000000..f97c4ac --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/RemoveUserToGroupResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type RemoveUserToGroupResultModel = ModelTypes['RemoveUserToGroupResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/SendStaticNotificationResultModel.ts b/packages/integrations/gei-notifications/src/models/SendStaticNotificationResultModel.ts new file mode 100644 index 0000000..0c44e11 --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/SendStaticNotificationResultModel.ts @@ -0,0 +1,3 @@ +import { ModelTypes } from '../zeus/index.js'; + +export type SendStaticNotificationResultModel = ModelTypes['SendStaticNotificationResult']; \ 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..a27343d --- /dev/null +++ b/packages/integrations/gei-notifications/src/models/index.ts @@ -0,0 +1,50 @@ +import { QueryModel } from './QueryModel.js' +import { UserQueryModel } from './UserQueryModel.js' +import { MutationModel } from './MutationModel.js' +import { UserMutationModel } from './UserMutationModel.js' +import { PublicQueryModel } from './PublicQueryModel.js' +import { NotificationGroupOpsModel } from './NotificationGroupOpsModel.js' +import { GeneratePushNotificationTokenResultModel } from './GeneratePushNotificationTokenResultModel.js' +import { ListChannelsResultModel } from './ListChannelsResultModel.js' +import { DeleteNotificationGroupResultModel } from './DeleteNotificationGroupResultModel.js' +import { SendStaticNotificationResultModel } from './SendStaticNotificationResultModel.js' +import { EditNotificationGroupResultModel } from './EditNotificationGroupResultModel.js' +import { AddUserToGroupResultModel } from './AddUserToGroupResultModel.js' +import { RemoveUserToGroupResultModel } from './RemoveUserToGroupResultModel.js' +import { CreateNotificationGroupResultModel } from './CreateNotificationGroupResultModel.js' +import { MarkNotificationReadedResultModel } from './MarkNotificationReadedResultModel.js' +import { ListNotificationGroupsResultModel } from './ListNotificationGroupsResultModel.js' +import { ListNotificationsResultModel } from './ListNotificationsResultModel.js' +import { GlobalErrorModel } from './GlobalErrorModel.js' +import { NotificationModel } from './NotificationModel.js' +import { NotificationGroupModel } from './NotificationGroupModel.js' +import { NotificationReadedModel } from './NotificationReadedModel.js' +import { ChannelModel } from './ChannelModel.js' +import { PageOptionsResultModel } from './PageOptionsResultModel.js' + + +export type Models = { + QueryModel: QueryModel; + UserQueryModel: UserQueryModel; + MutationModel: MutationModel; + UserMutationModel: UserMutationModel; + PublicQueryModel: PublicQueryModel; + NotificationGroupOpsModel: NotificationGroupOpsModel; + GeneratePushNotificationTokenResultModel: GeneratePushNotificationTokenResultModel; + ListChannelsResultModel: ListChannelsResultModel; + DeleteNotificationGroupResultModel: DeleteNotificationGroupResultModel; + SendStaticNotificationResultModel: SendStaticNotificationResultModel; + EditNotificationGroupResultModel: EditNotificationGroupResultModel; + AddUserToGroupResultModel: AddUserToGroupResultModel; + RemoveUserToGroupResultModel: RemoveUserToGroupResultModel; + CreateNotificationGroupResultModel: CreateNotificationGroupResultModel; + MarkNotificationReadedResultModel: MarkNotificationReadedResultModel; + ListNotificationGroupsResultModel: ListNotificationGroupsResultModel; + ListNotificationsResultModel: ListNotificationsResultModel; + GlobalErrorModel: GlobalErrorModel; + NotificationModel: NotificationModel; + NotificationGroupModel: NotificationGroupModel; + NotificationReadedModel: NotificationReadedModel; + ChannelModel: ChannelModel; + PageOptionsResultModel: PageOptionsResultModel; +}; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/utils/dateMiddleware.ts b/packages/integrations/gei-notifications/src/utils/dateMiddleware.ts new file mode 100644 index 0000000..de61ebe --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/dateMiddleware.ts @@ -0,0 +1,29 @@ +import { ModelTypes, ResolverInputTypes } from '../zeus'; + +const toDate = (value: unknown): Date | undefined | null => { + if (value === undefined || value === null) return value; + if (typeof value === 'string' || typeof value === 'number') return new Date(value); + throw new Error('Invalid date'); +}; + +export const mapDates = (obj: T, ...dateFields: K[]) => + Object.entries(obj) + .map(([k, v]) => [k, dateFields.includes(k as K) ? toDate(v) : v]) + .reduce( + (pv, [kv, cv]) => ({ + ...pv, + [kv as K]: cv, + }), + {}, + ) as Omit & Record; + +interface MapFn { + (v: T): R; +} + +export const dateMiddleware = ( + map: MapFn, + cb: (typedArg: R, source: unknown) => unknown, +): ((arg: T, source: unknown) => unknown) => { + return (arg: T, source: unknown): unknown => cb(map(arg), source); +}; diff --git a/packages/integrations/gei-notifications/src/utils/db/collections.ts b/packages/integrations/gei-notifications/src/utils/db/collections.ts new file mode 100644 index 0000000..81c6f1d --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/db/collections.ts @@ -0,0 +1,5 @@ +type NotificationGroup = 'NotificationGroup'; +type NotificationReaded = 'NotificationReaded'; +type Notifications = 'Notifications'; + +export type collections = NotificationGroup | NotificationReaded | Notifications; diff --git a/packages/integrations/gei-notifications/src/utils/db/db.ts b/packages/integrations/gei-notifications/src/utils/db/db.ts new file mode 100644 index 0000000..2c5b784 --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/db/db.ts @@ -0,0 +1,25 @@ +import { MongoClient, Db } from "mongodb"; + +let mongoConnection: { db: Db; client: MongoClient } | undefined = undefined; + +async function mongo(): Promise { + if (!mongoConnection) { + const mongoUrl = process.env.MONGO_URL + ? process.env.MONGO_URL + : "mongodb://localhost:27017"; + console.log(mongoUrl) + const client = new MongoClient(mongoUrl); + const c = await client.connect(); + const db = c.db(); + mongoConnection = { + client, + db, + }; + } + return mongoConnection.db; +} + +export async function DB() { + return mongo(); +} + diff --git a/packages/integrations/gei-notifications/src/utils/db/orm.ts b/packages/integrations/gei-notifications/src/utils/db/orm.ts new file mode 100644 index 0000000..29c93cc --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/db/orm.ts @@ -0,0 +1,92 @@ +import { iGraphQL } from 'i-graphql'; +import { ObjectId } from 'mongodb'; +import { Models } from '../../models/index.js'; +import { GlobalError } from '../middleware.js'; +import { collections } from './collections.js'; + +export const orm = async () => { + return iGraphQL< + { + Notifications: Models['NotificationModel']; + NotificationGroup: Models['NotificationGroupModel']; + NotificationReaded: Models['NotificationReadedModel']; + }, + { + _id: () => string; + createdAt: () => Date; + } + >({ + _id: () => new ObjectId().toHexString(), + createdAt: () => new Date(), + }); +}; + +export const MongOrb = await orm(); + +export const mustFindOne = async (col: collections, filter: {}, options: {} | null = null) => { + return orm().then((o) => + o(col) + .collection.findOne(filter, options ? options : {}) + .catch(() => { + throw new GlobalError('mustFindOne returns null', import.meta.url); + }), + ); +}; + +export const mustFindAny = async (col: collections, filter: {} | null = null, options: {} | null = null) => { + return await orm().then((o) => + o(col) + .collection.find(filter ? filter : {}, options ? options : {}) + .toArray() + .catch(() => { + throw new GlobalError('mustFindOne returns null', import.meta.url); + }), + ); +}; + +export type PageOptions = { + limit: number; + page: number; + skip: number; +}; + +export const preparePageOptions = (page?: { limit?: number | null; page?: number | null } | null): PageOptions => { + const lim = page?.limit || 10; + const sk = page?.page || 0; + return { + limit: lim, + page: sk, + skip: lim * sk, + }; +}; + +type preparedDate = { + createdAt?: { + $gte?: Date; + $lte?: Date; + }; +}; + +export const prepareDateOptions = (sd: unknown, ed: unknown): preparedDate => { + const endDate = () => { + if (typeof ed === 'string' && Date.parse(ed) >= 0) { + return new Date(ed); + } + return undefined; + }; + const startDate = () => { + if (typeof sd === 'string' && Date.parse(sd) >= 0) { + return new Date(sd); + } + return undefined; + }; + if (typeof startDate() === 'undefined' && typeof endDate() === 'undefined') { + return {}; + } + return { + createdAt: { + ...(startDate() && { $gte: startDate() }), + ...(endDate() && { $lte: endDate() }), + }, + }; +}; 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..7dedee9 --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/middleware.ts @@ -0,0 +1,37 @@ +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}` } } }; + } +}; + +export const typeGuard = (source: Record, key: keyof T): source is T => key in source; + +export const sourceContainUserIdOrThrow = (source: any) => { + if (!typeGuard(source, 'userId') || typeof source.userId !== 'string') { + throw new GlobalError('input source is malformed', import.meta.url); + } +}; + +export type SourceWithUserId = { + userId: string; +}; + +export const isString = (v: unknown): boolean => typeof v === 'string'; diff --git a/packages/integrations/gei-notifications/src/utils/pusher/beam.ts b/packages/integrations/gei-notifications/src/utils/pusher/beam.ts new file mode 100644 index 0000000..2178185 --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/pusher/beam.ts @@ -0,0 +1,38 @@ +import PushNotifications from '@pusher/push-notifications-server'; +import { getEnv } from '../envs'; +import { GlobalError } from '../middleware'; + +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 sendPushNotification = async (targets: string[], notification: NotificationPayload): Promise => { + 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 true; +}; + +export const generateBeamToken = (userId: string) => { + beamsClient.generateToken(userId); +}; diff --git a/packages/integrations/gei-notifications/src/utils/pusher/channel.ts b/packages/integrations/gei-notifications/src/utils/pusher/channel.ts new file mode 100644 index 0000000..b935680 --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/pusher/channel.ts @@ -0,0 +1,26 @@ +import Pusher from 'pusher'; +import { getEnv } from '../envs'; +import { GlobalError } from '../middleware'; + +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 => { + 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 true; +}; diff --git a/packages/integrations/gei-notifications/src/utils/tools.ts b/packages/integrations/gei-notifications/src/utils/tools.ts new file mode 100644 index 0000000..049cf59 --- /dev/null +++ b/packages/integrations/gei-notifications/src/utils/tools.ts @@ -0,0 +1,3 @@ +export const removeDuplicatesFromArray = (arr1: T[]): T[] => arr1.filter((e, pos, self) => self.indexOf(e) == pos); + +export const sliceByArray = (arr1: T[], arr2: T[]): T[] => arr1.filter((e) => arr2.indexOf(e)); 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..3ef6ce2 --- /dev/null +++ b/packages/integrations/gei-notifications/src/zeus/const.ts @@ -0,0 +1,223 @@ +/* eslint-disable */ + +export const AllTypesProps: Record = { + Query:{ + userQuery:{ + + } + }, + UserQuery:{ + listNotifications:{ + input:"ListNotificationsInput" + }, + listChannels:{ + input:"ListChannelsInput" + } + }, + Mutation:{ + userMutation:{ + + } + }, + UserMutation:{ + markNotificationReaded:{ + input:"MarkNotificationReadedInput" + }, + sendStaticNotification:{ + input:"SendStaticNotificationInput" + }, + createNotificationGroup:{ + input:"CreateNotificationGroupInput" + }, + modifyNotifactionGroup:{ + + } + }, + PublicQuery:{ + listNotificationGroups:{ + input:"ListNotificationGroupsInput" + } + }, + NotificationGroupOps:{ + addUserToGroup:{ + + }, + removeUserFromGroup:{ + + }, + editNotificationGroup:{ + input:"EditNotificationGroupInput" + } + }, + ListChannelsInput:{ + page:"PageOptionsInput" + }, + ListNotificationGroupsInput:{ + page:"PageOptionsInput", + filter:"ListNotificationGroupsInputFilter" + }, + ListNotificationGroupsInputFilter:{ + sortDirection:"SortDirection", + notificationType:"NotificationType", + startDate:"Date", + endDate:"Date" + }, + ListNotificationsInput:{ + filter:"ListNotificationsInputFilter", + page:"PageOptionsInput" + }, + ListNotificationsInputFilter:{ + notificationType:"NotificationType", + sortDirection:"SortDirection", + startDate:"Date", + endDate:"Date" + }, + SendStaticNotificationInput:{ + + }, + EditNotificationGroupInput:{ + + }, + CreateNotificationGroupInput:{ + notificationType:"NotificationType" + }, + MarkNotificationReadedInput:{ + + }, + PageOptionsInput:{ + + }, + NotificationTargetType: "enum" as const, + SortDirection: "enum" as const, + NotificationType: "enum" as const, + Date: `scalar.Date` as const +} + +export const ReturnTypes: Record = { + Query:{ + userQuery:"UserQuery", + publicQuery:"PublicQuery" + }, + UserQuery:{ + listNotifications:"ListNotificationsResult", + listChannels:"ListChannelsResult", + generatePushNotificationToken:"GeneratePushNotificationTokenResult" + }, + Mutation:{ + userMutation:"UserMutation" + }, + UserMutation:{ + markNotificationReaded:"MarkNotificationReadedResult", + sendStaticNotification:"SendStaticNotificationResult", + createNotificationGroup:"CreateNotificationGroupResult", + modifyNotifactionGroup:"NotificationGroupOps" + }, + PublicQuery:{ + listNotificationGroups:"ListNotificationGroupsResult" + }, + NotificationGroupOps:{ + addUserToGroup:"AddUserToGroupResult", + removeUserFromGroup:"RemoveUserToGroupResult", + editNotificationGroup:"EditNotificationGroupResult", + deleteNotificationGroup:"DeleteNotificationGroupResult" + }, + GeneratePushNotificationTokenResult:{ + error:"GlobalError", + token:"String", + exp:"Date" + }, + ListChannelsResult:{ + error:"GlobalError", + result:"Channel", + page:"PageOptionsResult" + }, + DeleteNotificationGroupResult:{ + error:"GlobalError", + result:"Boolean" + }, + SendStaticNotificationResult:{ + error:"GlobalError", + result:"Boolean" + }, + EditNotificationGroupResult:{ + error:"GlobalError", + result:"Boolean" + }, + AddUserToGroupResult:{ + result:"Boolean", + error:"GlobalError" + }, + RemoveUserToGroupResult:{ + result:"Boolean", + error:"GlobalError" + }, + CreateNotificationGroupResult:{ + error:"GlobalError", + result:"Boolean" + }, + MarkNotificationReadedResult:{ + error:"GlobalError", + result:"Boolean" + }, + ListNotificationGroupsResult:{ + error:"GlobalError", + notificationGroup:"NotificationGroup" + }, + ListNotificationsResult:{ + error:"GlobalError", + notification:"Notification", + page:"PageOptionsResult" + }, + GlobalError:{ + message:"String", + path:"String" + }, + Notification:{ + body:"String", + targetIds:"String", + _id:"String", + createdAt:"Date", + isReaded:"Boolean", + notificationType:"NotificationType" + }, + NotificationGroup:{ + targets:"String", + notificationType:"NotificationType", + name:"String", + _id:"String", + createdAt:"Date" + }, + NotificationReaded:{ + userId:"String", + notificationId:"String", + createdAt:"Date" + }, + Channel:{ + channelId:"String", + createdAt:"Date" + }, + PageOptionsResult:{ + count:"Int", + hasNext:"Boolean" + }, + DbEssentials:{ + "...on Notification": "Notification", + "...on NotificationGroup": "NotificationGroup", + _id:"String", + createdAt:"Date" + }, + error:{ + "...on AddUserToGroupResult": "AddUserToGroupResult", + "...on RemoveUserToGroupResult": "RemoveUserToGroupResult", + "...on CreateNotificationGroupResult": "CreateNotificationGroupResult", + "...on ListNotificationGroupsResult": "ListNotificationGroupsResult", + "...on ListNotificationsResult": "ListNotificationsResult", + error:"GlobalError" + }, + Date: `scalar.Date` as const +} + +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..45e14c7 --- /dev/null +++ b/packages/integrations/gei-notifications/src/zeus/index.ts @@ -0,0 +1,1653 @@ +/* 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["DbEssentials"] | GraphQLTypes["error"] +export type ScalarCoders = { + Date?: ScalarResolver; +} +type ZEUS_UNIONS = never + +export type ValueTypes = { + ["Query"]: AliasType<{ +userQuery?: [{ userId: string | Variable},ValueTypes["UserQuery"]], + publicQuery?:ValueTypes["PublicQuery"], + __typename?: boolean | `@${string}` +}>; + ["UserQuery"]: AliasType<{ +listNotifications?: [{ input?: ValueTypes["ListNotificationsInput"] | undefined | null | Variable},ValueTypes["ListNotificationsResult"]], +listChannels?: [{ input?: ValueTypes["ListChannelsInput"] | undefined | null | Variable},ValueTypes["ListChannelsResult"]], + generatePushNotificationToken?:ValueTypes["GeneratePushNotificationTokenResult"], + __typename?: boolean | `@${string}` +}>; + ["Mutation"]: AliasType<{ +userMutation?: [{ userId: string | Variable},ValueTypes["UserMutation"]], + __typename?: boolean | `@${string}` +}>; + ["UserMutation"]: AliasType<{ +markNotificationReaded?: [{ input: ValueTypes["MarkNotificationReadedInput"] | Variable},ValueTypes["MarkNotificationReadedResult"]], +sendStaticNotification?: [{ input: ValueTypes["SendStaticNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], +createNotificationGroup?: [{ input: ValueTypes["CreateNotificationGroupInput"] | Variable},ValueTypes["CreateNotificationGroupResult"]], +modifyNotifactionGroup?: [{ groupId: string | Variable},ValueTypes["NotificationGroupOps"]], + __typename?: boolean | `@${string}` +}>; + ["PublicQuery"]: AliasType<{ +listNotificationGroups?: [{ input?: ValueTypes["ListNotificationGroupsInput"] | undefined | null | Variable},ValueTypes["ListNotificationGroupsResult"]], + __typename?: boolean | `@${string}` +}>; + ["NotificationGroupOps"]: AliasType<{ +addUserToGroup?: [{ userIds?: Array | undefined | null | Variable},ValueTypes["AddUserToGroupResult"]], +removeUserFromGroup?: [{ userIds?: Array | undefined | null | Variable},ValueTypes["RemoveUserToGroupResult"]], +editNotificationGroup?: [{ input: ValueTypes["EditNotificationGroupInput"] | Variable},ValueTypes["EditNotificationGroupResult"]], + deleteNotificationGroup?:ValueTypes["DeleteNotificationGroupResult"], + __typename?: boolean | `@${string}` +}>; + ["GeneratePushNotificationTokenResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + token?:boolean | `@${string}`, + exp?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["ListChannelsInput"]: { + page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable +}; + ["ListNotificationGroupsInput"]: { + page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable, + filter?: ValueTypes["ListNotificationGroupsInputFilter"] | undefined | null | Variable +}; + ["ListNotificationGroupsInputFilter"]: { + /** this is a regex searching */ + name?: string | undefined | null | Variable, + /** if targetId is filled, this filter will return Notification groups that contains inside specific target */ + targetId?: string | undefined | null | Variable, + sortDirection?: ValueTypes["SortDirection"] | undefined | null | Variable, + notificationType?: ValueTypes["NotificationType"] | undefined | null | Variable, + startDate?: ValueTypes["Date"] | undefined | null | Variable, + endDate?: ValueTypes["Date"] | undefined | null | Variable +}; + ["ListNotificationsInput"]: { + filter?: ValueTypes["ListNotificationsInputFilter"] | undefined | null | Variable, + page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable +}; + ["ListNotificationsInputFilter"]: { + notificationType?: ValueTypes["NotificationType"] | undefined | null | Variable, + sortDirection?: ValueTypes["SortDirection"] | undefined | null | Variable, + isReaded?: boolean | undefined | null | Variable, + startDate?: ValueTypes["Date"] | undefined | null | Variable, + endDate?: ValueTypes["Date"] | undefined | null | Variable +}; + ["SendStaticNotificationInput"]: { + channelsId: Array | Variable, + message: string | Variable, + event: string | Variable +}; + ["ListChannelsResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + result?:ValueTypes["Channel"], + page?:ValueTypes["PageOptionsResult"], + __typename?: boolean | `@${string}` +}>; + ["DeleteNotificationGroupResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["SendStaticNotificationResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["EditNotificationGroupResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["EditNotificationGroupInput"]: { + name?: string | undefined | null | Variable, + users?: Array | undefined | null | Variable +}; + ["AddUserToGroupResult"]: AliasType<{ + result?:boolean | `@${string}`, + error?:ValueTypes["GlobalError"], + __typename?: boolean | `@${string}` +}>; + ["RemoveUserToGroupResult"]: AliasType<{ + result?:boolean | `@${string}`, + error?:ValueTypes["GlobalError"], + __typename?: boolean | `@${string}` +}>; + ["CreateNotificationGroupResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["CreateNotificationGroupInput"]: { + name: string | Variable, + users: Array | Variable, + notificationType: ValueTypes["NotificationType"] | Variable +}; + ["MarkNotificationReadedResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["MarkNotificationReadedInput"]: { + state: boolean | Variable, + notificationId: string | Variable +}; + ["ListNotificationGroupsResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + notificationGroup?:ValueTypes["NotificationGroup"], + __typename?: boolean | `@${string}` +}>; + ["ListNotificationsResult"]: AliasType<{ + error?:ValueTypes["GlobalError"], + notification?:ValueTypes["Notification"], + page?:ValueTypes["PageOptionsResult"], + __typename?: boolean | `@${string}` +}>; + ["GlobalError"]: AliasType<{ + message?:boolean | `@${string}`, + path?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["Notification"]: AliasType<{ + body?:boolean | `@${string}`, + targetIds?:boolean | `@${string}`, + _id?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`, + isReaded?:boolean | `@${string}`, + notificationType?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["NotificationGroup"]: AliasType<{ + targets?:boolean | `@${string}`, + notificationType?:boolean | `@${string}`, + name?:boolean | `@${string}`, + _id?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["NotificationReaded"]: AliasType<{ + userId?:boolean | `@${string}`, + notificationId?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["Channel"]: AliasType<{ + channelId?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["PageOptionsInput"]: { + /** default limit is 10 */ + limit?: number | undefined | null | Variable, + /** count stating from 0 */ + page?: number | undefined | null | Variable +}; + ["PageOptionsResult"]: AliasType<{ + count?:boolean | `@${string}`, + hasNext?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["DbEssentials"]:AliasType<{ + _id?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`; + ['...on Notification']?: Omit; + ['...on NotificationGroup']?: Omit; + __typename?: boolean | `@${string}` +}>; + ["error"]:AliasType<{ + error?:ValueTypes["GlobalError"]; + ['...on AddUserToGroupResult']?: Omit; + ['...on RemoveUserToGroupResult']?: Omit; + ['...on CreateNotificationGroupResult']?: Omit; + ['...on ListNotificationGroupsResult']?: Omit; + ['...on ListNotificationsResult']?: Omit; + __typename?: boolean | `@${string}` +}>; + ["NotificationTargetType"]:NotificationTargetType; + ["SortDirection"]:SortDirection; + ["NotificationType"]:NotificationType; + ["Date"]:unknown + } + +export type ResolverInputTypes = { + ["Query"]: AliasType<{ +userQuery?: [{ userId: string},ResolverInputTypes["UserQuery"]], + publicQuery?:ResolverInputTypes["PublicQuery"], + __typename?: boolean | `@${string}` +}>; + ["UserQuery"]: AliasType<{ +listNotifications?: [{ input?: ResolverInputTypes["ListNotificationsInput"] | undefined | null},ResolverInputTypes["ListNotificationsResult"]], +listChannels?: [{ input?: ResolverInputTypes["ListChannelsInput"] | undefined | null},ResolverInputTypes["ListChannelsResult"]], + generatePushNotificationToken?:ResolverInputTypes["GeneratePushNotificationTokenResult"], + __typename?: boolean | `@${string}` +}>; + ["Mutation"]: AliasType<{ +userMutation?: [{ userId: string},ResolverInputTypes["UserMutation"]], + __typename?: boolean | `@${string}` +}>; + ["UserMutation"]: AliasType<{ +markNotificationReaded?: [{ input: ResolverInputTypes["MarkNotificationReadedInput"]},ResolverInputTypes["MarkNotificationReadedResult"]], +sendStaticNotification?: [{ input: ResolverInputTypes["SendStaticNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], +createNotificationGroup?: [{ input: ResolverInputTypes["CreateNotificationGroupInput"]},ResolverInputTypes["CreateNotificationGroupResult"]], +modifyNotifactionGroup?: [{ groupId: string},ResolverInputTypes["NotificationGroupOps"]], + __typename?: boolean | `@${string}` +}>; + ["PublicQuery"]: AliasType<{ +listNotificationGroups?: [{ input?: ResolverInputTypes["ListNotificationGroupsInput"] | undefined | null},ResolverInputTypes["ListNotificationGroupsResult"]], + __typename?: boolean | `@${string}` +}>; + ["NotificationGroupOps"]: AliasType<{ +addUserToGroup?: [{ userIds?: Array | undefined | null},ResolverInputTypes["AddUserToGroupResult"]], +removeUserFromGroup?: [{ userIds?: Array | undefined | null},ResolverInputTypes["RemoveUserToGroupResult"]], +editNotificationGroup?: [{ input: ResolverInputTypes["EditNotificationGroupInput"]},ResolverInputTypes["EditNotificationGroupResult"]], + deleteNotificationGroup?:ResolverInputTypes["DeleteNotificationGroupResult"], + __typename?: boolean | `@${string}` +}>; + ["GeneratePushNotificationTokenResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + token?:boolean | `@${string}`, + exp?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["ListChannelsInput"]: { + page?: ResolverInputTypes["PageOptionsInput"] | undefined | null +}; + ["ListNotificationGroupsInput"]: { + page?: ResolverInputTypes["PageOptionsInput"] | undefined | null, + filter?: ResolverInputTypes["ListNotificationGroupsInputFilter"] | undefined | null +}; + ["ListNotificationGroupsInputFilter"]: { + /** this is a regex searching */ + name?: string | undefined | null, + /** if targetId is filled, this filter will return Notification groups that contains inside specific target */ + targetId?: string | undefined | null, + sortDirection?: ResolverInputTypes["SortDirection"] | undefined | null, + notificationType?: ResolverInputTypes["NotificationType"] | undefined | null, + startDate?: ResolverInputTypes["Date"] | undefined | null, + endDate?: ResolverInputTypes["Date"] | undefined | null +}; + ["ListNotificationsInput"]: { + filter?: ResolverInputTypes["ListNotificationsInputFilter"] | undefined | null, + page?: ResolverInputTypes["PageOptionsInput"] | undefined | null +}; + ["ListNotificationsInputFilter"]: { + notificationType?: ResolverInputTypes["NotificationType"] | undefined | null, + sortDirection?: ResolverInputTypes["SortDirection"] | undefined | null, + isReaded?: boolean | undefined | null, + startDate?: ResolverInputTypes["Date"] | undefined | null, + endDate?: ResolverInputTypes["Date"] | undefined | null +}; + ["SendStaticNotificationInput"]: { + channelsId: Array, + message: string, + event: string +}; + ["ListChannelsResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + result?:ResolverInputTypes["Channel"], + page?:ResolverInputTypes["PageOptionsResult"], + __typename?: boolean | `@${string}` +}>; + ["DeleteNotificationGroupResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["SendStaticNotificationResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["EditNotificationGroupResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["EditNotificationGroupInput"]: { + name?: string | undefined | null, + users?: Array | undefined | null +}; + ["AddUserToGroupResult"]: AliasType<{ + result?:boolean | `@${string}`, + error?:ResolverInputTypes["GlobalError"], + __typename?: boolean | `@${string}` +}>; + ["RemoveUserToGroupResult"]: AliasType<{ + result?:boolean | `@${string}`, + error?:ResolverInputTypes["GlobalError"], + __typename?: boolean | `@${string}` +}>; + ["CreateNotificationGroupResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["CreateNotificationGroupInput"]: { + name: string, + users: Array, + notificationType: ResolverInputTypes["NotificationType"] +}; + ["MarkNotificationReadedResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + result?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["MarkNotificationReadedInput"]: { + state: boolean, + notificationId: string +}; + ["ListNotificationGroupsResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + notificationGroup?:ResolverInputTypes["NotificationGroup"], + __typename?: boolean | `@${string}` +}>; + ["ListNotificationsResult"]: AliasType<{ + error?:ResolverInputTypes["GlobalError"], + notification?:ResolverInputTypes["Notification"], + page?:ResolverInputTypes["PageOptionsResult"], + __typename?: boolean | `@${string}` +}>; + ["GlobalError"]: AliasType<{ + message?:boolean | `@${string}`, + path?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["Notification"]: AliasType<{ + body?:boolean | `@${string}`, + targetIds?:boolean | `@${string}`, + _id?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`, + isReaded?:boolean | `@${string}`, + notificationType?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["NotificationGroup"]: AliasType<{ + targets?:boolean | `@${string}`, + notificationType?:boolean | `@${string}`, + name?:boolean | `@${string}`, + _id?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["NotificationReaded"]: AliasType<{ + userId?:boolean | `@${string}`, + notificationId?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["Channel"]: AliasType<{ + channelId?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["PageOptionsInput"]: { + /** default limit is 10 */ + limit?: number | undefined | null, + /** count stating from 0 */ + page?: number | undefined | null +}; + ["PageOptionsResult"]: AliasType<{ + count?:boolean | `@${string}`, + hasNext?:boolean | `@${string}`, + __typename?: boolean | `@${string}` +}>; + ["DbEssentials"]:AliasType<{ + _id?:boolean | `@${string}`, + createdAt?:boolean | `@${string}`; + ['...on Notification']?: Omit; + ['...on NotificationGroup']?: Omit; + __typename?: boolean | `@${string}` +}>; + ["error"]:AliasType<{ + error?:ResolverInputTypes["GlobalError"]; + ['...on AddUserToGroupResult']?: Omit; + ['...on RemoveUserToGroupResult']?: Omit; + ['...on CreateNotificationGroupResult']?: Omit; + ['...on ListNotificationGroupsResult']?: Omit; + ['...on ListNotificationsResult']?: Omit; + __typename?: boolean | `@${string}` +}>; + ["NotificationTargetType"]:NotificationTargetType; + ["SortDirection"]:SortDirection; + ["NotificationType"]:NotificationType; + ["Date"]:unknown; + ["schema"]: AliasType<{ + query?:ResolverInputTypes["Query"], + mutation?:ResolverInputTypes["Mutation"], + __typename?: boolean | `@${string}` +}> + } + +export type ModelTypes = { + ["Query"]: { + userQuery?: ModelTypes["UserQuery"] | undefined, + publicQuery: ModelTypes["PublicQuery"] +}; + ["UserQuery"]: { + listNotifications: ModelTypes["ListNotificationsResult"], + listChannels: ModelTypes["ListChannelsResult"], + generatePushNotificationToken: ModelTypes["GeneratePushNotificationTokenResult"] +}; + ["Mutation"]: { + userMutation?: ModelTypes["UserMutation"] | undefined +}; + ["UserMutation"]: { + markNotificationReaded: ModelTypes["MarkNotificationReadedResult"], + sendStaticNotification: ModelTypes["SendStaticNotificationResult"], + createNotificationGroup: ModelTypes["CreateNotificationGroupResult"], + modifyNotifactionGroup?: ModelTypes["NotificationGroupOps"] | undefined +}; + ["PublicQuery"]: { + listNotificationGroups: ModelTypes["ListNotificationGroupsResult"] +}; + ["NotificationGroupOps"]: { + /** if we adding or removing users, duplicates will be reduced */ + addUserToGroup: ModelTypes["AddUserToGroupResult"], + removeUserFromGroup: ModelTypes["RemoveUserToGroupResult"], + editNotificationGroup?: ModelTypes["EditNotificationGroupResult"] | undefined, + deleteNotificationGroup: ModelTypes["DeleteNotificationGroupResult"] +}; + ["GeneratePushNotificationTokenResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + token: string, + exp?: ModelTypes["Date"] | undefined +}; + ["ListChannelsInput"]: { + page?: ModelTypes["PageOptionsInput"] | undefined +}; + ["ListNotificationGroupsInput"]: { + page?: ModelTypes["PageOptionsInput"] | undefined, + filter?: ModelTypes["ListNotificationGroupsInputFilter"] | undefined +}; + ["ListNotificationGroupsInputFilter"]: { + /** this is a regex searching */ + name?: string | undefined, + /** if targetId is filled, this filter will return Notification groups that contains inside specific target */ + targetId?: string | undefined, + sortDirection?: ModelTypes["SortDirection"] | undefined, + notificationType?: ModelTypes["NotificationType"] | undefined, + startDate?: ModelTypes["Date"] | undefined, + endDate?: ModelTypes["Date"] | undefined +}; + ["ListNotificationsInput"]: { + filter?: ModelTypes["ListNotificationsInputFilter"] | undefined, + page?: ModelTypes["PageOptionsInput"] | undefined +}; + ["ListNotificationsInputFilter"]: { + notificationType?: ModelTypes["NotificationType"] | undefined, + sortDirection?: ModelTypes["SortDirection"] | undefined, + isReaded?: boolean | undefined, + startDate?: ModelTypes["Date"] | undefined, + endDate?: ModelTypes["Date"] | undefined +}; + ["SendStaticNotificationInput"]: { + channelsId: Array, + message: string, + event: string +}; + ["ListChannelsResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + result?: Array | undefined, + page?: ModelTypes["PageOptionsResult"] | undefined +}; + ["DeleteNotificationGroupResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["SendStaticNotificationResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["EditNotificationGroupResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["EditNotificationGroupInput"]: { + name?: string | undefined, + users?: Array | undefined +}; + ["AddUserToGroupResult"]: { + result?: boolean | undefined, + error?: ModelTypes["GlobalError"] | undefined +}; + ["RemoveUserToGroupResult"]: { + result?: boolean | undefined, + error?: ModelTypes["GlobalError"] | undefined +}; + ["CreateNotificationGroupResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["CreateNotificationGroupInput"]: { + name: string, + users: Array, + notificationType: ModelTypes["NotificationType"] +}; + ["MarkNotificationReadedResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["MarkNotificationReadedInput"]: { + state: boolean, + notificationId: string +}; + ["ListNotificationGroupsResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + notificationGroup?: Array | undefined +}; + ["ListNotificationsResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + notification?: Array | undefined, + page?: ModelTypes["PageOptionsResult"] | undefined +}; + ["GlobalError"]: { + message: string, + path: string +}; + ["Notification"]: { + body: string, + targetIds: Array, + _id: string, + createdAt: ModelTypes["Date"], + isReaded: boolean, + notificationType: ModelTypes["NotificationType"] +}; + ["NotificationGroup"]: { + targets: Array, + notificationType: ModelTypes["NotificationType"], + name: string, + _id: string, + createdAt: ModelTypes["Date"] +}; + ["NotificationReaded"]: { + userId: string, + notificationId: string, + createdAt: ModelTypes["Date"] +}; + ["Channel"]: { + channelId: string, + createdAt?: ModelTypes["Date"] | undefined +}; + ["PageOptionsInput"]: { + /** default limit is 10 */ + limit?: number | undefined, + /** count stating from 0 */ + page?: number | undefined +}; + ["PageOptionsResult"]: { + count?: number | undefined, + hasNext?: boolean | undefined +}; + ["DbEssentials"]: ModelTypes["Notification"] | ModelTypes["NotificationGroup"]; + ["error"]: ModelTypes["AddUserToGroupResult"] | ModelTypes["RemoveUserToGroupResult"] | ModelTypes["CreateNotificationGroupResult"] | ModelTypes["ListNotificationGroupsResult"] | ModelTypes["ListNotificationsResult"]; + ["NotificationTargetType"]:NotificationTargetType; + ["SortDirection"]:SortDirection; + ["NotificationType"]:NotificationType; + ["Date"]:any; + ["schema"]: { + query?: ModelTypes["Query"] | undefined, + mutation?: ModelTypes["Mutation"] | undefined +} + } + +export type GraphQLTypes = { + ["Query"]: { + __typename: "Query", + userQuery?: GraphQLTypes["UserQuery"] | undefined, + publicQuery: GraphQLTypes["PublicQuery"] +}; + ["UserQuery"]: { + __typename: "UserQuery", + listNotifications: GraphQLTypes["ListNotificationsResult"], + listChannels: GraphQLTypes["ListChannelsResult"], + generatePushNotificationToken: GraphQLTypes["GeneratePushNotificationTokenResult"] +}; + ["Mutation"]: { + __typename: "Mutation", + userMutation?: GraphQLTypes["UserMutation"] | undefined +}; + ["UserMutation"]: { + __typename: "UserMutation", + markNotificationReaded: GraphQLTypes["MarkNotificationReadedResult"], + sendStaticNotification: GraphQLTypes["SendStaticNotificationResult"], + createNotificationGroup: GraphQLTypes["CreateNotificationGroupResult"], + modifyNotifactionGroup?: GraphQLTypes["NotificationGroupOps"] | undefined +}; + ["PublicQuery"]: { + __typename: "PublicQuery", + listNotificationGroups: GraphQLTypes["ListNotificationGroupsResult"] +}; + ["NotificationGroupOps"]: { + __typename: "NotificationGroupOps", + /** if we adding or removing users, duplicates will be reduced */ + addUserToGroup: GraphQLTypes["AddUserToGroupResult"], + removeUserFromGroup: GraphQLTypes["RemoveUserToGroupResult"], + editNotificationGroup?: GraphQLTypes["EditNotificationGroupResult"] | undefined, + deleteNotificationGroup: GraphQLTypes["DeleteNotificationGroupResult"] +}; + ["GeneratePushNotificationTokenResult"]: { + __typename: "GeneratePushNotificationTokenResult", + error?: GraphQLTypes["GlobalError"] | undefined, + token: string, + exp?: GraphQLTypes["Date"] | undefined +}; + ["ListChannelsInput"]: { + page?: GraphQLTypes["PageOptionsInput"] | undefined +}; + ["ListNotificationGroupsInput"]: { + page?: GraphQLTypes["PageOptionsInput"] | undefined, + filter?: GraphQLTypes["ListNotificationGroupsInputFilter"] | undefined +}; + ["ListNotificationGroupsInputFilter"]: { + /** this is a regex searching */ + name?: string | undefined, + /** if targetId is filled, this filter will return Notification groups that contains inside specific target */ + targetId?: string | undefined, + sortDirection?: GraphQLTypes["SortDirection"] | undefined, + notificationType?: GraphQLTypes["NotificationType"] | undefined, + startDate?: GraphQLTypes["Date"] | undefined, + endDate?: GraphQLTypes["Date"] | undefined +}; + ["ListNotificationsInput"]: { + filter?: GraphQLTypes["ListNotificationsInputFilter"] | undefined, + page?: GraphQLTypes["PageOptionsInput"] | undefined +}; + ["ListNotificationsInputFilter"]: { + notificationType?: GraphQLTypes["NotificationType"] | undefined, + sortDirection?: GraphQLTypes["SortDirection"] | undefined, + isReaded?: boolean | undefined, + startDate?: GraphQLTypes["Date"] | undefined, + endDate?: GraphQLTypes["Date"] | undefined +}; + ["SendStaticNotificationInput"]: { + channelsId: Array, + message: string, + event: string +}; + ["ListChannelsResult"]: { + __typename: "ListChannelsResult", + error?: GraphQLTypes["GlobalError"] | undefined, + result?: Array | undefined, + page?: GraphQLTypes["PageOptionsResult"] | undefined +}; + ["DeleteNotificationGroupResult"]: { + __typename: "DeleteNotificationGroupResult", + error?: GraphQLTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["SendStaticNotificationResult"]: { + __typename: "SendStaticNotificationResult", + error?: GraphQLTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["EditNotificationGroupResult"]: { + __typename: "EditNotificationGroupResult", + error?: GraphQLTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["EditNotificationGroupInput"]: { + name?: string | undefined, + users?: Array | undefined +}; + ["AddUserToGroupResult"]: { + __typename: "AddUserToGroupResult", + result?: boolean | undefined, + error?: GraphQLTypes["GlobalError"] | undefined +}; + ["RemoveUserToGroupResult"]: { + __typename: "RemoveUserToGroupResult", + result?: boolean | undefined, + error?: GraphQLTypes["GlobalError"] | undefined +}; + ["CreateNotificationGroupResult"]: { + __typename: "CreateNotificationGroupResult", + error?: GraphQLTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["CreateNotificationGroupInput"]: { + name: string, + users: Array, + notificationType: GraphQLTypes["NotificationType"] +}; + ["MarkNotificationReadedResult"]: { + __typename: "MarkNotificationReadedResult", + error?: GraphQLTypes["GlobalError"] | undefined, + result?: boolean | undefined +}; + ["MarkNotificationReadedInput"]: { + state: boolean, + notificationId: string +}; + ["ListNotificationGroupsResult"]: { + __typename: "ListNotificationGroupsResult", + error?: GraphQLTypes["GlobalError"] | undefined, + notificationGroup?: Array | undefined +}; + ["ListNotificationsResult"]: { + __typename: "ListNotificationsResult", + error?: GraphQLTypes["GlobalError"] | undefined, + notification?: Array | undefined, + page?: GraphQLTypes["PageOptionsResult"] | undefined +}; + ["GlobalError"]: { + __typename: "GlobalError", + message: string, + path: string +}; + ["Notification"]: { + __typename: "Notification", + body: string, + targetIds: Array, + _id: string, + createdAt: GraphQLTypes["Date"], + isReaded: boolean, + notificationType: GraphQLTypes["NotificationType"] +}; + ["NotificationGroup"]: { + __typename: "NotificationGroup", + targets: Array, + notificationType: GraphQLTypes["NotificationType"], + name: string, + _id: string, + createdAt: GraphQLTypes["Date"] +}; + ["NotificationReaded"]: { + __typename: "NotificationReaded", + userId: string, + notificationId: string, + createdAt: GraphQLTypes["Date"] +}; + ["Channel"]: { + __typename: "Channel", + channelId: string, + createdAt?: GraphQLTypes["Date"] | undefined +}; + ["PageOptionsInput"]: { + /** default limit is 10 */ + limit?: number | undefined, + /** count stating from 0 */ + page?: number | undefined +}; + ["PageOptionsResult"]: { + __typename: "PageOptionsResult", + count?: number | undefined, + hasNext?: boolean | undefined +}; + ["DbEssentials"]: { + __typename:"Notification" | "NotificationGroup", + _id: string, + createdAt: GraphQLTypes["Date"] + ['...on Notification']: '__union' & GraphQLTypes["Notification"]; + ['...on NotificationGroup']: '__union' & GraphQLTypes["NotificationGroup"]; +}; + ["error"]: { + __typename:"AddUserToGroupResult" | "RemoveUserToGroupResult" | "CreateNotificationGroupResult" | "ListNotificationGroupsResult" | "ListNotificationsResult", + error?: GraphQLTypes["GlobalError"] | undefined + ['...on AddUserToGroupResult']: '__union' & GraphQLTypes["AddUserToGroupResult"]; + ['...on RemoveUserToGroupResult']: '__union' & GraphQLTypes["RemoveUserToGroupResult"]; + ['...on CreateNotificationGroupResult']: '__union' & GraphQLTypes["CreateNotificationGroupResult"]; + ['...on ListNotificationGroupsResult']: '__union' & GraphQLTypes["ListNotificationGroupsResult"]; + ['...on ListNotificationsResult']: '__union' & GraphQLTypes["ListNotificationsResult"]; +}; + ["NotificationTargetType"]: NotificationTargetType; + ["SortDirection"]: SortDirection; + ["NotificationType"]: NotificationType; + ["Date"]: "scalar" & { name: "Date" } + } +export const enum NotificationTargetType { + USER = "USER", + GROUP = "GROUP" +} +export const enum SortDirection { + asc = "asc", + desc = "desc" +} +export const enum NotificationType { + STATIC = "STATIC", + PUSH = "PUSH" +} + +type ZEUS_VARIABLES = { + ["ListChannelsInput"]: ValueTypes["ListChannelsInput"]; + ["ListNotificationGroupsInput"]: ValueTypes["ListNotificationGroupsInput"]; + ["ListNotificationGroupsInputFilter"]: ValueTypes["ListNotificationGroupsInputFilter"]; + ["ListNotificationsInput"]: ValueTypes["ListNotificationsInput"]; + ["ListNotificationsInputFilter"]: ValueTypes["ListNotificationsInputFilter"]; + ["SendStaticNotificationInput"]: ValueTypes["SendStaticNotificationInput"]; + ["EditNotificationGroupInput"]: ValueTypes["EditNotificationGroupInput"]; + ["CreateNotificationGroupInput"]: ValueTypes["CreateNotificationGroupInput"]; + ["MarkNotificationReadedInput"]: ValueTypes["MarkNotificationReadedInput"]; + ["PageOptionsInput"]: ValueTypes["PageOptionsInput"]; + ["NotificationTargetType"]: ValueTypes["NotificationTargetType"]; + ["SortDirection"]: ValueTypes["SortDirection"]; + ["NotificationType"]: ValueTypes["NotificationType"]; + ["Date"]: ValueTypes["Date"]; +} \ 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..ce5e682 --- /dev/null +++ b/packages/integrations/gei-notifications/stucco.json @@ -0,0 +1,49 @@ +{ + "resolvers": { + "Query.userQuery": { + "resolve": { + "name": "lib/Query/userQuery.js" + } + }, + "UserQuery.listNotifications": { + "resolve": { + "name": "lib/UserQuery/listNotifications" + } + }, + "Mutation.userMutation": { + "resolve": { + "name": "lib/Mutation/userMutation" + } + }, + "UserMutation.createNotificationGroup": { + "resolve": { + "name": "lib/UserMutation/createNotificationGroup.js" + } + }, + "UserQuery.listNotificationGroups": { + "resolve": { + "name": "lib/UserQuery/listNotificationGroups" + } + }, + "Query.publicQuery": { + "resolve": { + "name": "lib/Query/publicQuery" + } + }, + "PublicQuery.listNotificationGroups": { + "resolve": { + "name": "lib/PublicQuery/listNotificationGroups" + } + }, + "UserQuery.listChannels": { + "resolve": { + "name": "lib/UserQuery/listChannels" + } + }, + "UserMutation.sendStaticNotification": { + "resolve": { + "name": "lib/UserMutation/sendStaticNotification" + } + } + } +} 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 From 9bfd91a4db663c25abb4f85882f8d281781cae11 Mon Sep 17 00:00:00 2001 From: Pavel Brui Date: Thu, 5 Oct 2023 13:53:50 +0200 Subject: [PATCH 2/7] addGetAuthorize --- package-lock.json | 749 ++++++++++++++++-- package.json | 2 +- .../gei-notifications/package.json | 66 +- .../gei-notifications/schema.graphql | 349 ++++---- .../UserMutation/getChannelAuthorization.ts | 17 + .../GetChannelAuthorizationResultModel.ts | 3 + .../gei-notifications/src/models/index.ts | 2 + .../src/utils/pusher/channel.ts | 6 +- .../gei-notifications/src/zeus/const.ts | 13 + .../gei-notifications/src/zeus/index.ts | 48 ++ .../gei-notifications/stucco.json | 8 + 11 files changed, 1013 insertions(+), 250 deletions(-) create mode 100644 packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts create mode 100644 packages/integrations/gei-notifications/src/models/GetChannelAuthorizationResultModel.ts 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/package.json b/packages/integrations/gei-notifications/package.json index 4247301..043956c 100644 --- a/packages/integrations/gei-notifications/package.json +++ b/packages/integrations/gei-notifications/package.json @@ -1,35 +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 && 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" - } + "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 index d452814..65d6c03 100644 --- a/packages/integrations/gei-notifications/schema.graphql +++ b/packages/integrations/gei-notifications/schema.graphql @@ -1,232 +1,271 @@ -type Query { - userQuery(userId: String!): UserQuery - publicQuery: PublicQuery! +type Query{ + userQuery( + userId: String! + ): UserQuery + publicQuery: PublicQuery! +} + +type UserQuery{ + listNotifications( + input: ListNotificationsInput + ): ListNotificationsResult! + listChannels( + input: ListChannelsInput + ): ListChannelsResult! + generatePushNotificationToken: GeneratePushNotificationTokenResult! +} + +type Mutation{ + userMutation( + userId: String! + ): UserMutation +} + +type UserMutation{ + markNotificationReaded( + input: MarkNotificationReadedInput! + ): MarkNotificationReadedResult! + sendStaticNotification( + input: SendStaticNotificationInput! + ): SendStaticNotificationResult! + getChannelAuthorization( + input: GetChannelAuthorizationInput! + ): GetChannelAuthorizationResult! + createNotificationGroup( + input: CreateNotificationGroupInput! + ): CreateNotificationGroupResult! + modifyNotifactionGroup( + groupId: String! + ): NotificationGroupOps } -type UserQuery { - listNotifications(input: ListNotificationsInput): ListNotificationsResult! - listChannels(input: ListChannelsInput): ListChannelsResult! - generatePushNotificationToken: GeneratePushNotificationTokenResult! +type PublicQuery{ + listNotificationGroups( + input: ListNotificationGroupsInput + ): ListNotificationGroupsResult! } -type Mutation { - userMutation(userId: String!): UserMutation +type NotificationGroupOps{ + """ + if we adding or removing users, duplicates will be reduced + """ + addUserToGroup( + userIds: [String!] + ): AddUserToGroupResult! + removeUserFromGroup( + userIds: [String!] + ): RemoveUserToGroupResult! + editNotificationGroup( + input: EditNotificationGroupInput! + ): EditNotificationGroupResult + deleteNotificationGroup: DeleteNotificationGroupResult! } -type UserMutation { - markNotificationReaded(input: MarkNotificationReadedInput!): MarkNotificationReadedResult! - sendStaticNotification(input: SendStaticNotificationInput!): SendStaticNotificationResult! - createNotificationGroup(input: CreateNotificationGroupInput!): CreateNotificationGroupResult! - modifyNotifactionGroup(groupId: String!): NotificationGroupOps +type GeneratePushNotificationTokenResult{ + error: GlobalError + token: String! + exp: Date } -type PublicQuery { - listNotificationGroups(input: ListNotificationGroupsInput): ListNotificationGroupsResult! +input GetChannelAuthorizationInput{ + targetId: String! + socketId: String! } -type NotificationGroupOps { - """ - if we adding or removing users, duplicates will be reduced - """ - addUserToGroup(userIds: [String!]): AddUserToGroupResult! - removeUserFromGroup(userIds: [String!]): RemoveUserToGroupResult! - editNotificationGroup(input: EditNotificationGroupInput!): EditNotificationGroupResult - deleteNotificationGroup: DeleteNotificationGroupResult! +type GetChannelAuthorizationResult{ + error: GlobalError + auth: String + channel_data: String + shared_secret: String } -type GeneratePushNotificationTokenResult { - error: GlobalError - token: String! - exp: Date +input ListChannelsInput{ + page: PageOptionsInput } -input ListChannelsInput { - page: PageOptionsInput +input ListNotificationGroupsInput{ + page: PageOptionsInput + filter: ListNotificationGroupsInputFilter } -input ListNotificationGroupsInput { - page: PageOptionsInput - filter: ListNotificationGroupsInputFilter +input ListNotificationGroupsInputFilter{ + """ + this is a regex searching + """ + name: String + """ + if targetId is filled, this filter will return Notification groups that contains inside specific target + """ + targetId: String + sortDirection: SortDirection + notificationType: NotificationType + startDate: Date + endDate: Date } -input ListNotificationGroupsInputFilter { - """ - this is a regex searching - """ - name: String - """ - if targetId is filled, this filter will return Notification groups that contains inside specific target - """ - targetId: String - sortDirection: SortDirection - notificationType: NotificationType - startDate: Date - endDate: Date +input ListNotificationsInput{ + filter: ListNotificationsInputFilter + page: PageOptionsInput } -input ListNotificationsInput { - filter: ListNotificationsInputFilter - page: PageOptionsInput +input ListNotificationsInputFilter{ + notificationType: NotificationType + sortDirection: SortDirection + isReaded: Boolean + startDate: Date + endDate: Date } -input ListNotificationsInputFilter { - notificationType: NotificationType - sortDirection: SortDirection - isReaded: Boolean - startDate: Date - endDate: Date +input SendStaticNotificationInput{ + channelsId: [String!]! + message: String! + event: String! } -input SendStaticNotificationInput { - channelsId: [String!]! - message: String! - event: String! +type ListChannelsResult{ + error: GlobalError + result: [Channel!] + page: PageOptionsResult } -type ListChannelsResult { - error: GlobalError - result: [Channel!] - page: PageOptionsResult +type DeleteNotificationGroupResult{ + error: GlobalError + result: Boolean } -type DeleteNotificationGroupResult { - error: GlobalError - result: Boolean +type SendStaticNotificationResult{ + error: GlobalError + result: Boolean } -type SendStaticNotificationResult { - error: GlobalError - result: Boolean +type EditNotificationGroupResult{ + error: GlobalError + result: Boolean } -type EditNotificationGroupResult { - error: GlobalError - result: Boolean +input EditNotificationGroupInput{ + name: String + users: [String!] } -input EditNotificationGroupInput { - name: String - users: [String!] +type AddUserToGroupResult implements error{ + result: Boolean + error: GlobalError } -type AddUserToGroupResult implements error { - result: Boolean - error: GlobalError +type RemoveUserToGroupResult implements error{ + result: Boolean + error: GlobalError } -type RemoveUserToGroupResult implements error { - result: Boolean - error: GlobalError +type CreateNotificationGroupResult implements error{ + error: GlobalError + result: Boolean } -type CreateNotificationGroupResult implements error { - error: GlobalError - result: Boolean +input CreateNotificationGroupInput{ + name: String! + users: [String!]! + notificationType: NotificationType! } -input CreateNotificationGroupInput { - name: String! - users: [String!]! - notificationType: NotificationType! +type MarkNotificationReadedResult{ + error: GlobalError + result: Boolean } -type MarkNotificationReadedResult { - error: GlobalError - result: Boolean +input MarkNotificationReadedInput{ + state: Boolean! + notificationId: String! } -input MarkNotificationReadedInput { - state: Boolean! - notificationId: String! +type ListNotificationGroupsResult implements error{ + error: GlobalError + notificationGroup: [NotificationGroup!] } -type ListNotificationGroupsResult implements error { - error: GlobalError - notificationGroup: [NotificationGroup!] +type ListNotificationsResult implements error{ + error: GlobalError + notification: [Notification!] + page: PageOptionsResult } -type ListNotificationsResult implements error { - error: GlobalError - notification: [Notification!] - page: PageOptionsResult +type GlobalError{ + message: String! + path: String! } -type GlobalError { - message: String! - path: String! +type Notification implements DbEssentials{ + body: String! + targetIds: [String!]! + _id: String! + createdAt: Date! + isReaded: Boolean! + notificationType: NotificationType! } -type Notification implements DbEssentials { - body: String! - targetIds: [String!]! - _id: String! - createdAt: Date! - isReaded: Boolean! - notificationType: NotificationType! +type NotificationGroup implements DbEssentials{ + targets: [String!]! + notificationType: NotificationType! + name: String! + _id: String! + createdAt: Date! } -type NotificationGroup implements DbEssentials { - targets: [String!]! - notificationType: NotificationType! - name: String! - _id: String! - createdAt: Date! +type NotificationReaded{ + userId: String! + notificationId: String! + createdAt: Date! } -type NotificationReaded { - userId: String! - notificationId: String! - createdAt: Date! +type Channel{ + channelId: String! + createdAt: Date } -type Channel { - channelId: String! - createdAt: Date +input PageOptionsInput{ + """ + default limit is 10 + """ + limit: Int + """ + count stating from 0 + """ + page: Int } -input PageOptionsInput { - """ - default limit is 10 - """ - limit: Int - """ - count stating from 0 - """ - page: Int +type PageOptionsResult{ + count: Int + hasNext: Boolean } -type PageOptionsResult { - count: Int - hasNext: Boolean +interface DbEssentials{ + _id: String! + createdAt: Date! } -interface DbEssentials { - _id: String! - createdAt: Date! +interface error{ + error: GlobalError } -interface error { - error: GlobalError +enum NotificationTargetType{ + USER + GROUP } -enum NotificationTargetType { - USER - GROUP +enum SortDirection{ + asc + desc } -enum SortDirection { - asc - desc -} - -enum NotificationType { - STATIC - PUSH +enum NotificationType{ + STATIC + PUSH } scalar Date -schema { - query: Query - mutation: Mutation +schema{ + query: Query + mutation: Mutation } diff --git a/packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts b/packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts new file mode 100644 index 0000000..fed2ce0 --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts @@ -0,0 +1,17 @@ +import { errMiddleware } from './../utils/middleware.js'; +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; +import { channelsClient } from '../utils/pusher/channel.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserMutation', 'getChannelAuthorization', async (args) => + errMiddleware(async () => { + const socketId = args.input.socketId; + const channel = args.input.targetId; + + const auth = channelsClient.authorizeChannel(socketId, channel); + //channelsClient.config.auth = auth + + return auth; + }), + )(input.arguments); 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/index.ts b/packages/integrations/gei-notifications/src/models/index.ts index a27343d..aa0e6d2 100644 --- a/packages/integrations/gei-notifications/src/models/index.ts +++ b/packages/integrations/gei-notifications/src/models/index.ts @@ -5,6 +5,7 @@ import { UserMutationModel } from './UserMutationModel.js' import { PublicQueryModel } from './PublicQueryModel.js' import { NotificationGroupOpsModel } from './NotificationGroupOpsModel.js' import { GeneratePushNotificationTokenResultModel } from './GeneratePushNotificationTokenResultModel.js' +import { GetChannelAuthorizationResultModel } from './GetChannelAuthorizationResultModel.js' import { ListChannelsResultModel } from './ListChannelsResultModel.js' import { DeleteNotificationGroupResultModel } from './DeleteNotificationGroupResultModel.js' import { SendStaticNotificationResultModel } from './SendStaticNotificationResultModel.js' @@ -31,6 +32,7 @@ export type Models = { PublicQueryModel: PublicQueryModel; NotificationGroupOpsModel: NotificationGroupOpsModel; GeneratePushNotificationTokenResultModel: GeneratePushNotificationTokenResultModel; + GetChannelAuthorizationResultModel: GetChannelAuthorizationResultModel; ListChannelsResultModel: ListChannelsResultModel; DeleteNotificationGroupResultModel: DeleteNotificationGroupResultModel; SendStaticNotificationResultModel: SendStaticNotificationResultModel; diff --git a/packages/integrations/gei-notifications/src/utils/pusher/channel.ts b/packages/integrations/gei-notifications/src/utils/pusher/channel.ts index b935680..a2bd2fb 100644 --- a/packages/integrations/gei-notifications/src/utils/pusher/channel.ts +++ b/packages/integrations/gei-notifications/src/utils/pusher/channel.ts @@ -1,8 +1,8 @@ import Pusher from 'pusher'; -import { getEnv } from '../envs'; -import { GlobalError } from '../middleware'; +import { getEnv } from '../envs.js'; +import { GlobalError } from '../middleware.js'; -const channelsClient = new Pusher({ +export const channelsClient = new Pusher({ appId: getEnv('PUSHER_CHANNEL_APP_ID'), key: getEnv('PUSHER_CHANNEL_KEY'), secret: getEnv('PUSHER_CHANNEL_SECRET'), diff --git a/packages/integrations/gei-notifications/src/zeus/const.ts b/packages/integrations/gei-notifications/src/zeus/const.ts index 3ef6ce2..ddb0564 100644 --- a/packages/integrations/gei-notifications/src/zeus/const.ts +++ b/packages/integrations/gei-notifications/src/zeus/const.ts @@ -26,6 +26,9 @@ export const AllTypesProps: Record = { sendStaticNotification:{ input:"SendStaticNotificationInput" }, + getChannelAuthorization:{ + input:"GetChannelAuthorizationInput" + }, createNotificationGroup:{ input:"CreateNotificationGroupInput" }, @@ -48,6 +51,9 @@ export const AllTypesProps: Record = { editNotificationGroup:{ input:"EditNotificationGroupInput" } + }, + GetChannelAuthorizationInput:{ + }, ListChannelsInput:{ page:"PageOptionsInput" @@ -109,6 +115,7 @@ export const ReturnTypes: Record = { UserMutation:{ markNotificationReaded:"MarkNotificationReadedResult", sendStaticNotification:"SendStaticNotificationResult", + getChannelAuthorization:"GetChannelAuthorizationResult", createNotificationGroup:"CreateNotificationGroupResult", modifyNotifactionGroup:"NotificationGroupOps" }, @@ -126,6 +133,12 @@ export const ReturnTypes: Record = { token:"String", exp:"Date" }, + GetChannelAuthorizationResult:{ + error:"GlobalError", + auth:"String", + channel_data:"String", + shared_secret:"String" + }, ListChannelsResult:{ error:"GlobalError", result:"Channel", diff --git a/packages/integrations/gei-notifications/src/zeus/index.ts b/packages/integrations/gei-notifications/src/zeus/index.ts index 45e14c7..29f44ca 100644 --- a/packages/integrations/gei-notifications/src/zeus/index.ts +++ b/packages/integrations/gei-notifications/src/zeus/index.ts @@ -852,6 +852,7 @@ userMutation?: [{ userId: string | Variable},ValueTypes["UserMutati ["UserMutation"]: AliasType<{ markNotificationReaded?: [{ input: ValueTypes["MarkNotificationReadedInput"] | Variable},ValueTypes["MarkNotificationReadedResult"]], sendStaticNotification?: [{ input: ValueTypes["SendStaticNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], +getChannelAuthorization?: [{ input: ValueTypes["GetChannelAuthorizationInput"] | Variable},ValueTypes["GetChannelAuthorizationResult"]], createNotificationGroup?: [{ input: ValueTypes["CreateNotificationGroupInput"] | Variable},ValueTypes["CreateNotificationGroupResult"]], modifyNotifactionGroup?: [{ groupId: string | Variable},ValueTypes["NotificationGroupOps"]], __typename?: boolean | `@${string}` @@ -872,6 +873,17 @@ editNotificationGroup?: [{ input: ValueTypes["EditNotificationGroupInput"] | Var token?:boolean | `@${string}`, exp?: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}` }>; ["ListChannelsInput"]: { page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable @@ -1056,6 +1068,7 @@ userMutation?: [{ userId: string},ResolverInputTypes["UserMutation"]], ["UserMutation"]: AliasType<{ markNotificationReaded?: [{ input: ResolverInputTypes["MarkNotificationReadedInput"]},ResolverInputTypes["MarkNotificationReadedResult"]], sendStaticNotification?: [{ input: ResolverInputTypes["SendStaticNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], +getChannelAuthorization?: [{ input: ResolverInputTypes["GetChannelAuthorizationInput"]},ResolverInputTypes["GetChannelAuthorizationResult"]], createNotificationGroup?: [{ input: ResolverInputTypes["CreateNotificationGroupInput"]},ResolverInputTypes["CreateNotificationGroupResult"]], modifyNotifactionGroup?: [{ groupId: string},ResolverInputTypes["NotificationGroupOps"]], __typename?: boolean | `@${string}` @@ -1076,6 +1089,17 @@ editNotificationGroup?: [{ input: ResolverInputTypes["EditNotificationGroupInput token?:boolean | `@${string}`, exp?: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}` }>; ["ListChannelsInput"]: { page?: ResolverInputTypes["PageOptionsInput"] | undefined | null @@ -1262,6 +1286,7 @@ export type ModelTypes = { ["UserMutation"]: { markNotificationReaded: ModelTypes["MarkNotificationReadedResult"], sendStaticNotification: ModelTypes["SendStaticNotificationResult"], + getChannelAuthorization: ModelTypes["GetChannelAuthorizationResult"], createNotificationGroup: ModelTypes["CreateNotificationGroupResult"], modifyNotifactionGroup?: ModelTypes["NotificationGroupOps"] | undefined }; @@ -1279,6 +1304,16 @@ export type ModelTypes = { error?: ModelTypes["GlobalError"] | undefined, token: string, exp?: ModelTypes["Date"] | undefined +}; + ["GetChannelAuthorizationInput"]: { + targetId: string, + socketId: string +}; + ["GetChannelAuthorizationResult"]: { + error?: ModelTypes["GlobalError"] | undefined, + auth?: string | undefined, + channel_data?: string | undefined, + shared_secret?: string | undefined }; ["ListChannelsInput"]: { page?: ModelTypes["PageOptionsInput"] | undefined @@ -1438,6 +1473,7 @@ export type GraphQLTypes = { __typename: "UserMutation", markNotificationReaded: GraphQLTypes["MarkNotificationReadedResult"], sendStaticNotification: GraphQLTypes["SendStaticNotificationResult"], + getChannelAuthorization: GraphQLTypes["GetChannelAuthorizationResult"], createNotificationGroup: GraphQLTypes["CreateNotificationGroupResult"], modifyNotifactionGroup?: GraphQLTypes["NotificationGroupOps"] | undefined }; @@ -1458,6 +1494,17 @@ export type GraphQLTypes = { error?: GraphQLTypes["GlobalError"] | undefined, token: string, exp?: GraphQLTypes["Date"] | undefined +}; + ["GetChannelAuthorizationInput"]: { + targetId: string, + socketId: string +}; + ["GetChannelAuthorizationResult"]: { + __typename: "GetChannelAuthorizationResult", + error?: GraphQLTypes["GlobalError"] | undefined, + auth?: string | undefined, + channel_data?: string | undefined, + shared_secret?: string | undefined }; ["ListChannelsInput"]: { page?: GraphQLTypes["PageOptionsInput"] | undefined @@ -1636,6 +1683,7 @@ export const enum NotificationType { } type ZEUS_VARIABLES = { + ["GetChannelAuthorizationInput"]: ValueTypes["GetChannelAuthorizationInput"]; ["ListChannelsInput"]: ValueTypes["ListChannelsInput"]; ["ListNotificationGroupsInput"]: ValueTypes["ListNotificationGroupsInput"]; ["ListNotificationGroupsInputFilter"]: ValueTypes["ListNotificationGroupsInputFilter"]; diff --git a/packages/integrations/gei-notifications/stucco.json b/packages/integrations/gei-notifications/stucco.json index ce5e682..02dd6a2 100644 --- a/packages/integrations/gei-notifications/stucco.json +++ b/packages/integrations/gei-notifications/stucco.json @@ -44,6 +44,14 @@ "resolve": { "name": "lib/UserMutation/sendStaticNotification" } + }, + "UserMutation.getChannelAuthorization": { + "resolve": { + "name": "lib/UserMutation/getChannelAuthorization" + } } + }, + "azureOpts": { + "": ["webhook/Mutation/webhook"] } } From b321cb16e33838160c9a786b0ecd4c041f120eac Mon Sep 17 00:00:00 2001 From: Pavel Brui Date: Mon, 9 Oct 2023 11:32:36 +0200 Subject: [PATCH 3/7] clean --- .../src/UserMutation/getChannelAuthorization.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts b/packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts index fed2ce0..c7f877e 100644 --- a/packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts +++ b/packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts @@ -8,10 +8,7 @@ export const handler = async (input: FieldResolveInput) => errMiddleware(async () => { const socketId = args.input.socketId; const channel = args.input.targetId; - const auth = channelsClient.authorizeChannel(socketId, channel); - //channelsClient.config.auth = auth - return auth; }), )(input.arguments); From 225d31f4ea31240d58104c76d823b56d7cc7271b Mon Sep 17 00:00:00 2001 From: Pavel Brui Date: Wed, 11 Oct 2023 13:01:20 +0200 Subject: [PATCH 4/7] addSendPushNotification --- .../gei-notifications/package-lock.json | 5412 ++++++++--------- .../gei-notifications/schema.graphql | 13 + .../src/UserMutation/sendPushNotification.ts | 9 + .../src/utils/pusher/beam.ts | 11 +- .../src/utils/pusher/channel.ts | 8 +- .../gei-notifications/src/zeus/const.ts | 10 + .../gei-notifications/src/zeus/index.ts | 38 + .../gei-notifications/stucco.json | 115 +- 8 files changed, 2850 insertions(+), 2766 deletions(-) create mode 100644 packages/integrations/gei-notifications/src/UserMutation/sendPushNotification.ts diff --git a/packages/integrations/gei-notifications/package-lock.json b/packages/integrations/gei-notifications/package-lock.json index d2ed75d..32bbf56 100644 --- a/packages/integrations/gei-notifications/package-lock.json +++ b/packages/integrations/gei-notifications/package-lock.json @@ -1,2710 +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" - } + "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/schema.graphql b/packages/integrations/gei-notifications/schema.graphql index 65d6c03..df806ad 100644 --- a/packages/integrations/gei-notifications/schema.graphql +++ b/packages/integrations/gei-notifications/schema.graphql @@ -28,6 +28,9 @@ type UserMutation{ sendStaticNotification( input: SendStaticNotificationInput! ): SendStaticNotificationResult! + sendPushNotification( + input: SendPushNotificationInput! + ): SendStaticNotificationResult! getChannelAuthorization( input: GetChannelAuthorizationInput! ): GetChannelAuthorizationResult! @@ -122,6 +125,16 @@ input SendStaticNotificationInput{ event: String! } +input SendPushNotificationInput{ + targets: [String!]! + notification: NotificationPayloadInput! +} + +input NotificationPayloadInput{ + title: String! + body: String! +} + type ListChannelsResult{ error: GlobalError result: [Channel!] diff --git a/packages/integrations/gei-notifications/src/UserMutation/sendPushNotification.ts b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotification.ts new file mode 100644 index 0000000..82e0eab --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotification.ts @@ -0,0 +1,9 @@ +import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; +import { errMiddleware } from '../utils/middleware.js'; +import { sendPushNotification } from '../utils/pusher/beam.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserMutation', 'sendPushNotification', async (args) => + errMiddleware(async () => await sendPushNotification(args.input.targets, args.input.notification)), + )(input.arguments); diff --git a/packages/integrations/gei-notifications/src/utils/pusher/beam.ts b/packages/integrations/gei-notifications/src/utils/pusher/beam.ts index 2178185..9ab60b6 100644 --- a/packages/integrations/gei-notifications/src/utils/pusher/beam.ts +++ b/packages/integrations/gei-notifications/src/utils/pusher/beam.ts @@ -1,6 +1,6 @@ import PushNotifications from '@pusher/push-notifications-server'; -import { getEnv } from '../envs'; -import { GlobalError } from '../middleware'; +import { getEnv } from '../envs.js'; +import { GlobalError } from '../middleware.js'; export type NotificationPayload = { title: string; @@ -12,7 +12,10 @@ const beamsClient = new PushNotifications({ secretKey: getEnv('PUSHER_BEAM_SECRET_KEY'), }); -export const sendPushNotification = async (targets: string[], notification: NotificationPayload): Promise => { +export const sendPushNotification = async ( + targets: string[], + notification: NotificationPayload, +): Promise<{ result: boolean }> => { await beamsClient .publishToUsers(targets, { web: { @@ -30,7 +33,7 @@ export const sendPushNotification = async (targets: string[], notification: Noti .catch((err) => { throw new GlobalError('Failed to send push notification: ' + err, import.meta.url); }); - return true; + return { result: true }; }; export const generateBeamToken = (userId: string) => { diff --git a/packages/integrations/gei-notifications/src/utils/pusher/channel.ts b/packages/integrations/gei-notifications/src/utils/pusher/channel.ts index a2bd2fb..9e6712b 100644 --- a/packages/integrations/gei-notifications/src/utils/pusher/channel.ts +++ b/packages/integrations/gei-notifications/src/utils/pusher/channel.ts @@ -10,7 +10,11 @@ export const channelsClient = new Pusher({ useTLS: true, }); -export const sendStaticNotification = async (targets: string[], event: string, message: string): Promise => { +export const sendStaticNotification = async ( + targets: string[], + event: string, + message: string, +): Promise<{ result: boolean }> => { await Promise.all( targets.map((target) => channelsClient @@ -22,5 +26,5 @@ export const sendStaticNotification = async (targets: string[], event: string, m }), ), ); - return true; + return { result: true }; }; diff --git a/packages/integrations/gei-notifications/src/zeus/const.ts b/packages/integrations/gei-notifications/src/zeus/const.ts index ddb0564..08e3684 100644 --- a/packages/integrations/gei-notifications/src/zeus/const.ts +++ b/packages/integrations/gei-notifications/src/zeus/const.ts @@ -26,6 +26,9 @@ export const AllTypesProps: Record = { sendStaticNotification:{ input:"SendStaticNotificationInput" }, + sendPushNotification:{ + input:"SendPushNotificationInput" + }, getChannelAuthorization:{ input:"GetChannelAuthorizationInput" }, @@ -80,6 +83,12 @@ export const AllTypesProps: Record = { }, SendStaticNotificationInput:{ + }, + SendPushNotificationInput:{ + notification:"NotificationPayloadInput" + }, + NotificationPayloadInput:{ + }, EditNotificationGroupInput:{ @@ -115,6 +124,7 @@ export const ReturnTypes: Record = { UserMutation:{ markNotificationReaded:"MarkNotificationReadedResult", sendStaticNotification:"SendStaticNotificationResult", + sendPushNotification:"SendStaticNotificationResult", getChannelAuthorization:"GetChannelAuthorizationResult", createNotificationGroup:"CreateNotificationGroupResult", modifyNotifactionGroup:"NotificationGroupOps" diff --git a/packages/integrations/gei-notifications/src/zeus/index.ts b/packages/integrations/gei-notifications/src/zeus/index.ts index 29f44ca..6401f49 100644 --- a/packages/integrations/gei-notifications/src/zeus/index.ts +++ b/packages/integrations/gei-notifications/src/zeus/index.ts @@ -852,6 +852,7 @@ userMutation?: [{ userId: string | Variable},ValueTypes["UserMutati ["UserMutation"]: AliasType<{ markNotificationReaded?: [{ input: ValueTypes["MarkNotificationReadedInput"] | Variable},ValueTypes["MarkNotificationReadedResult"]], sendStaticNotification?: [{ input: ValueTypes["SendStaticNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], +sendPushNotification?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], getChannelAuthorization?: [{ input: ValueTypes["GetChannelAuthorizationInput"] | Variable},ValueTypes["GetChannelAuthorizationResult"]], createNotificationGroup?: [{ input: ValueTypes["CreateNotificationGroupInput"] | Variable},ValueTypes["CreateNotificationGroupResult"]], modifyNotifactionGroup?: [{ groupId: string | Variable},ValueTypes["NotificationGroupOps"]], @@ -917,6 +918,14 @@ editNotificationGroup?: [{ input: ValueTypes["EditNotificationGroupInput"] | Var channelsId: Array | Variable, message: string | Variable, event: string | Variable +}; + ["SendPushNotificationInput"]: { + targets: Array | Variable, + notification: ValueTypes["NotificationPayloadInput"] | Variable +}; + ["NotificationPayloadInput"]: { + title: string | Variable, + body: string | Variable }; ["ListChannelsResult"]: AliasType<{ error?:ValueTypes["GlobalError"], @@ -1068,6 +1077,7 @@ userMutation?: [{ userId: string},ResolverInputTypes["UserMutation"]], ["UserMutation"]: AliasType<{ markNotificationReaded?: [{ input: ResolverInputTypes["MarkNotificationReadedInput"]},ResolverInputTypes["MarkNotificationReadedResult"]], sendStaticNotification?: [{ input: ResolverInputTypes["SendStaticNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], +sendPushNotification?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], getChannelAuthorization?: [{ input: ResolverInputTypes["GetChannelAuthorizationInput"]},ResolverInputTypes["GetChannelAuthorizationResult"]], createNotificationGroup?: [{ input: ResolverInputTypes["CreateNotificationGroupInput"]},ResolverInputTypes["CreateNotificationGroupResult"]], modifyNotifactionGroup?: [{ groupId: string},ResolverInputTypes["NotificationGroupOps"]], @@ -1133,6 +1143,14 @@ editNotificationGroup?: [{ input: ResolverInputTypes["EditNotificationGroupInput channelsId: Array, message: string, event: string +}; + ["SendPushNotificationInput"]: { + targets: Array, + notification: ResolverInputTypes["NotificationPayloadInput"] +}; + ["NotificationPayloadInput"]: { + title: string, + body: string }; ["ListChannelsResult"]: AliasType<{ error?:ResolverInputTypes["GlobalError"], @@ -1286,6 +1304,7 @@ export type ModelTypes = { ["UserMutation"]: { markNotificationReaded: ModelTypes["MarkNotificationReadedResult"], sendStaticNotification: ModelTypes["SendStaticNotificationResult"], + sendPushNotification: ModelTypes["SendStaticNotificationResult"], getChannelAuthorization: ModelTypes["GetChannelAuthorizationResult"], createNotificationGroup: ModelTypes["CreateNotificationGroupResult"], modifyNotifactionGroup?: ModelTypes["NotificationGroupOps"] | undefined @@ -1347,6 +1366,14 @@ export type ModelTypes = { channelsId: Array, message: string, event: string +}; + ["SendPushNotificationInput"]: { + targets: Array, + notification: ModelTypes["NotificationPayloadInput"] +}; + ["NotificationPayloadInput"]: { + title: string, + body: string }; ["ListChannelsResult"]: { error?: ModelTypes["GlobalError"] | undefined, @@ -1473,6 +1500,7 @@ export type GraphQLTypes = { __typename: "UserMutation", markNotificationReaded: GraphQLTypes["MarkNotificationReadedResult"], sendStaticNotification: GraphQLTypes["SendStaticNotificationResult"], + sendPushNotification: GraphQLTypes["SendStaticNotificationResult"], getChannelAuthorization: GraphQLTypes["GetChannelAuthorizationResult"], createNotificationGroup: GraphQLTypes["CreateNotificationGroupResult"], modifyNotifactionGroup?: GraphQLTypes["NotificationGroupOps"] | undefined @@ -1538,6 +1566,14 @@ export type GraphQLTypes = { channelsId: Array, message: string, event: string +}; + ["SendPushNotificationInput"]: { + targets: Array, + notification: GraphQLTypes["NotificationPayloadInput"] +}; + ["NotificationPayloadInput"]: { + title: string, + body: string }; ["ListChannelsResult"]: { __typename: "ListChannelsResult", @@ -1690,6 +1726,8 @@ type ZEUS_VARIABLES = { ["ListNotificationsInput"]: ValueTypes["ListNotificationsInput"]; ["ListNotificationsInputFilter"]: ValueTypes["ListNotificationsInputFilter"]; ["SendStaticNotificationInput"]: ValueTypes["SendStaticNotificationInput"]; + ["SendPushNotificationInput"]: ValueTypes["SendPushNotificationInput"]; + ["NotificationPayloadInput"]: ValueTypes["NotificationPayloadInput"]; ["EditNotificationGroupInput"]: ValueTypes["EditNotificationGroupInput"]; ["CreateNotificationGroupInput"]: ValueTypes["CreateNotificationGroupInput"]; ["MarkNotificationReadedInput"]: ValueTypes["MarkNotificationReadedInput"]; diff --git a/packages/integrations/gei-notifications/stucco.json b/packages/integrations/gei-notifications/stucco.json index 02dd6a2..7e5d005 100644 --- a/packages/integrations/gei-notifications/stucco.json +++ b/packages/integrations/gei-notifications/stucco.json @@ -1,57 +1,64 @@ { - "resolvers": { - "Query.userQuery": { - "resolve": { - "name": "lib/Query/userQuery.js" - } + "resolvers": { + "Query.userQuery": { + "resolve": { + "name": "lib/Query/userQuery.js" + } + }, + "UserQuery.listNotifications": { + "resolve": { + "name": "lib/UserQuery/listNotifications" + } + }, + "Mutation.userMutation": { + "resolve": { + "name": "lib/Mutation/userMutation" + } + }, + "UserMutation.createNotificationGroup": { + "resolve": { + "name": "lib/UserMutation/createNotificationGroup.js" + } + }, + "UserQuery.listNotificationGroups": { + "resolve": { + "name": "lib/UserQuery/listNotificationGroups" + } + }, + "Query.publicQuery": { + "resolve": { + "name": "lib/Query/publicQuery" + } + }, + "PublicQuery.listNotificationGroups": { + "resolve": { + "name": "lib/PublicQuery/listNotificationGroups" + } + }, + "UserQuery.listChannels": { + "resolve": { + "name": "lib/UserQuery/listChannels" + } + }, + "UserMutation.sendStaticNotification": { + "resolve": { + "name": "lib/UserMutation/sendStaticNotification" + } + }, + "UserMutation.getChannelAuthorization": { + "resolve": { + "name": "lib/UserMutation/getChannelAuthorization" + } + }, + "UserMutation.sendPushNotification": { + "resolve": { + "name": "lib/UserMutation/sendPushNotification" + } + } }, - "UserQuery.listNotifications": { - "resolve": { - "name": "lib/UserQuery/listNotifications" - } - }, - "Mutation.userMutation": { - "resolve": { - "name": "lib/Mutation/userMutation" - } - }, - "UserMutation.createNotificationGroup": { - "resolve": { - "name": "lib/UserMutation/createNotificationGroup.js" - } - }, - "UserQuery.listNotificationGroups": { - "resolve": { - "name": "lib/UserQuery/listNotificationGroups" - } - }, - "Query.publicQuery": { - "resolve": { - "name": "lib/Query/publicQuery" - } - }, - "PublicQuery.listNotificationGroups": { - "resolve": { - "name": "lib/PublicQuery/listNotificationGroups" - } - }, - "UserQuery.listChannels": { - "resolve": { - "name": "lib/UserQuery/listChannels" - } - }, - "UserMutation.sendStaticNotification": { - "resolve": { - "name": "lib/UserMutation/sendStaticNotification" - } - }, - "UserMutation.getChannelAuthorization": { - "resolve": { - "name": "lib/UserMutation/getChannelAuthorization" - } + "azureOpts": { + "": [ + "webhook/Mutation/webhook" + ] } - }, - "azureOpts": { - "": ["webhook/Mutation/webhook"] - } -} +} \ No newline at end of file From b66bb60bba05086429ae94fcac34e086e109c408 Mon Sep 17 00:00:00 2001 From: Pavel Brui Date: Wed, 11 Oct 2023 16:18:19 +0200 Subject: [PATCH 5/7] addSendPushNotificationToUserAndAuthorization --- .../gei-notifications/schema.graphql | 17 ++++------ .../src/UserMutation/getBeamAuthorization.ts | 11 +++++++ .../src/UserMutation/sendPushNotification.ts | 9 ------ .../sendPushNotificationToInterests.ts | 14 ++++++++ .../sendPushNotificationToUsers.ts | 14 ++++++++ .../src/utils/pusher/beam.ts | 32 ++++++++++++++++--- .../gei-notifications/src/zeus/const.ts | 20 +++++------- .../gei-notifications/src/zeus/index.ts | 30 ++++++++--------- .../gei-notifications/stucco.json | 15 +++++++++ 9 files changed, 110 insertions(+), 52 deletions(-) create mode 100644 packages/integrations/gei-notifications/src/UserMutation/getBeamAuthorization.ts delete mode 100644 packages/integrations/gei-notifications/src/UserMutation/sendPushNotification.ts create mode 100644 packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToInterests.ts create mode 100644 packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToUsers.ts diff --git a/packages/integrations/gei-notifications/schema.graphql b/packages/integrations/gei-notifications/schema.graphql index df806ad..e0dbe44 100644 --- a/packages/integrations/gei-notifications/schema.graphql +++ b/packages/integrations/gei-notifications/schema.graphql @@ -22,24 +22,21 @@ type Mutation{ } type UserMutation{ - markNotificationReaded( - input: MarkNotificationReadedInput! - ): MarkNotificationReadedResult! sendStaticNotification( input: SendStaticNotificationInput! ): SendStaticNotificationResult! - sendPushNotification( + sendPushNotificationToUsers( + input: SendPushNotificationInput! + ): SendStaticNotificationResult! + sendPushNotificationToInterests( input: SendPushNotificationInput! ): SendStaticNotificationResult! getChannelAuthorization( input: GetChannelAuthorizationInput! ): GetChannelAuthorizationResult! - createNotificationGroup( - input: CreateNotificationGroupInput! - ): CreateNotificationGroupResult! - modifyNotifactionGroup( - groupId: String! - ): NotificationGroupOps + getBeamAuthorization( + userId: String + ): GetChannelAuthorizationResult! } type PublicQuery{ diff --git a/packages/integrations/gei-notifications/src/UserMutation/getBeamAuthorization.ts b/packages/integrations/gei-notifications/src/UserMutation/getBeamAuthorization.ts new file mode 100644 index 0000000..aa0e6ef --- /dev/null +++ b/packages/integrations/gei-notifications/src/UserMutation/getBeamAuthorization.ts @@ -0,0 +1,11 @@ +import { FieldResolveInput } from 'stucco-js'; +import { errMiddleware } from '../utils/middleware.js'; +import { generateBeamToken } from '../utils/pusher/beam.js'; +import { resolverFor } from '../zeus/index.js'; + +export const handler = async (input: FieldResolveInput) => + resolverFor('UserMutation', 'getBeamAuthorization', async (args, { userId }) => + errMiddleware(async () => { + return { auth: generateBeamToken(args?.userId || userId).token }; + }), + )(input.arguments, input.source); diff --git a/packages/integrations/gei-notifications/src/UserMutation/sendPushNotification.ts b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotification.ts deleted file mode 100644 index 82e0eab..0000000 --- a/packages/integrations/gei-notifications/src/UserMutation/sendPushNotification.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { FieldResolveInput } from 'stucco-js'; -import { resolverFor } from '../zeus/index.js'; -import { errMiddleware } from '../utils/middleware.js'; -import { sendPushNotification } from '../utils/pusher/beam.js'; - -export const handler = async (input: FieldResolveInput) => - resolverFor('UserMutation', 'sendPushNotification', async (args) => - errMiddleware(async () => await sendPushNotification(args.input.targets, args.input.notification)), - )(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..2e9252f --- /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/pusher/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..94a6113 --- /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 { sendPushNotificationToInterests } from '../utils/pusher/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 sendPushNotificationToInterests(args.input.targets, args.input.notification); + }), + )(input.arguments); diff --git a/packages/integrations/gei-notifications/src/utils/pusher/beam.ts b/packages/integrations/gei-notifications/src/utils/pusher/beam.ts index 9ab60b6..7ca933c 100644 --- a/packages/integrations/gei-notifications/src/utils/pusher/beam.ts +++ b/packages/integrations/gei-notifications/src/utils/pusher/beam.ts @@ -12,12 +12,12 @@ const beamsClient = new PushNotifications({ secretKey: getEnv('PUSHER_BEAM_SECRET_KEY'), }); -export const sendPushNotification = async ( +export const sendPushNotificationToInterests = async ( targets: string[], notification: NotificationPayload, ): Promise<{ result: boolean }> => { await beamsClient - .publishToUsers(targets, { + .publishToInterests(targets, { web: { notification, }, @@ -33,9 +33,33 @@ export const sendPushNotification = async ( .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); +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/zeus/const.ts b/packages/integrations/gei-notifications/src/zeus/const.ts index 08e3684..5c42c93 100644 --- a/packages/integrations/gei-notifications/src/zeus/const.ts +++ b/packages/integrations/gei-notifications/src/zeus/const.ts @@ -20,22 +20,19 @@ export const AllTypesProps: Record = { } }, UserMutation:{ - markNotificationReaded:{ - input:"MarkNotificationReadedInput" - }, sendStaticNotification:{ input:"SendStaticNotificationInput" }, - sendPushNotification:{ + sendPushNotificationToUsers:{ + input:"SendPushNotificationInput" + }, + sendPushNotificationToInterests:{ input:"SendPushNotificationInput" }, getChannelAuthorization:{ input:"GetChannelAuthorizationInput" }, - createNotificationGroup:{ - input:"CreateNotificationGroupInput" - }, - modifyNotifactionGroup:{ + getBeamAuthorization:{ } }, @@ -122,12 +119,11 @@ export const ReturnTypes: Record = { userMutation:"UserMutation" }, UserMutation:{ - markNotificationReaded:"MarkNotificationReadedResult", sendStaticNotification:"SendStaticNotificationResult", - sendPushNotification:"SendStaticNotificationResult", + sendPushNotificationToUsers:"SendStaticNotificationResult", + sendPushNotificationToInterests:"SendStaticNotificationResult", getChannelAuthorization:"GetChannelAuthorizationResult", - createNotificationGroup:"CreateNotificationGroupResult", - modifyNotifactionGroup:"NotificationGroupOps" + getBeamAuthorization:"GetChannelAuthorizationResult" }, PublicQuery:{ listNotificationGroups:"ListNotificationGroupsResult" diff --git a/packages/integrations/gei-notifications/src/zeus/index.ts b/packages/integrations/gei-notifications/src/zeus/index.ts index 6401f49..6f296a2 100644 --- a/packages/integrations/gei-notifications/src/zeus/index.ts +++ b/packages/integrations/gei-notifications/src/zeus/index.ts @@ -850,12 +850,11 @@ userMutation?: [{ userId: string | Variable},ValueTypes["UserMutati __typename?: boolean | `@${string}` }>; ["UserMutation"]: AliasType<{ -markNotificationReaded?: [{ input: ValueTypes["MarkNotificationReadedInput"] | Variable},ValueTypes["MarkNotificationReadedResult"]], sendStaticNotification?: [{ input: ValueTypes["SendStaticNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], -sendPushNotification?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], +sendPushNotificationToUsers?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], +sendPushNotificationToInterests?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], getChannelAuthorization?: [{ input: ValueTypes["GetChannelAuthorizationInput"] | Variable},ValueTypes["GetChannelAuthorizationResult"]], -createNotificationGroup?: [{ input: ValueTypes["CreateNotificationGroupInput"] | Variable},ValueTypes["CreateNotificationGroupResult"]], -modifyNotifactionGroup?: [{ groupId: string | Variable},ValueTypes["NotificationGroupOps"]], +getBeamAuthorization?: [{ userId?: string | undefined | null | Variable},ValueTypes["GetChannelAuthorizationResult"]], __typename?: boolean | `@${string}` }>; ["PublicQuery"]: AliasType<{ @@ -1075,12 +1074,11 @@ userMutation?: [{ userId: string},ResolverInputTypes["UserMutation"]], __typename?: boolean | `@${string}` }>; ["UserMutation"]: AliasType<{ -markNotificationReaded?: [{ input: ResolverInputTypes["MarkNotificationReadedInput"]},ResolverInputTypes["MarkNotificationReadedResult"]], sendStaticNotification?: [{ input: ResolverInputTypes["SendStaticNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], -sendPushNotification?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], +sendPushNotificationToUsers?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], +sendPushNotificationToInterests?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], getChannelAuthorization?: [{ input: ResolverInputTypes["GetChannelAuthorizationInput"]},ResolverInputTypes["GetChannelAuthorizationResult"]], -createNotificationGroup?: [{ input: ResolverInputTypes["CreateNotificationGroupInput"]},ResolverInputTypes["CreateNotificationGroupResult"]], -modifyNotifactionGroup?: [{ groupId: string},ResolverInputTypes["NotificationGroupOps"]], +getBeamAuthorization?: [{ userId?: string | undefined | null},ResolverInputTypes["GetChannelAuthorizationResult"]], __typename?: boolean | `@${string}` }>; ["PublicQuery"]: AliasType<{ @@ -1302,12 +1300,11 @@ export type ModelTypes = { userMutation?: ModelTypes["UserMutation"] | undefined }; ["UserMutation"]: { - markNotificationReaded: ModelTypes["MarkNotificationReadedResult"], - sendStaticNotification: ModelTypes["SendStaticNotificationResult"], - sendPushNotification: ModelTypes["SendStaticNotificationResult"], + sendStaticNotification: ModelTypes["SendStaticNotificationResult"], + sendPushNotificationToUsers: ModelTypes["SendStaticNotificationResult"], + sendPushNotificationToInterests: ModelTypes["SendStaticNotificationResult"], getChannelAuthorization: ModelTypes["GetChannelAuthorizationResult"], - createNotificationGroup: ModelTypes["CreateNotificationGroupResult"], - modifyNotifactionGroup?: ModelTypes["NotificationGroupOps"] | undefined + getBeamAuthorization: ModelTypes["GetChannelAuthorizationResult"] }; ["PublicQuery"]: { listNotificationGroups: ModelTypes["ListNotificationGroupsResult"] @@ -1498,12 +1495,11 @@ export type GraphQLTypes = { }; ["UserMutation"]: { __typename: "UserMutation", - markNotificationReaded: GraphQLTypes["MarkNotificationReadedResult"], sendStaticNotification: GraphQLTypes["SendStaticNotificationResult"], - sendPushNotification: GraphQLTypes["SendStaticNotificationResult"], + sendPushNotificationToUsers: GraphQLTypes["SendStaticNotificationResult"], + sendPushNotificationToInterests: GraphQLTypes["SendStaticNotificationResult"], getChannelAuthorization: GraphQLTypes["GetChannelAuthorizationResult"], - createNotificationGroup: GraphQLTypes["CreateNotificationGroupResult"], - modifyNotifactionGroup?: GraphQLTypes["NotificationGroupOps"] | undefined + getBeamAuthorization: GraphQLTypes["GetChannelAuthorizationResult"] }; ["PublicQuery"]: { __typename: "PublicQuery", diff --git a/packages/integrations/gei-notifications/stucco.json b/packages/integrations/gei-notifications/stucco.json index 7e5d005..e1b2003 100644 --- a/packages/integrations/gei-notifications/stucco.json +++ b/packages/integrations/gei-notifications/stucco.json @@ -54,6 +54,21 @@ "resolve": { "name": "lib/UserMutation/sendPushNotification" } + }, + "UserMutation.getBeamAuthorization": { + "resolve": { + "name": "lib/UserMutation/getBeamAuthorization" + } + }, + "UserMutation.sendPushNotificationToUsers": { + "resolve": { + "name": "lib/UserMutation/sendPushNotificationToUsers" + } + }, + "UserMutation.sendPushNotificationToInterests": { + "resolve": { + "name": "lib/UserMutation/sendPushNotificationToInterests" + } } }, "azureOpts": { From c2f2ff51f9ef78fe7e43fa790cf76fc74fa3f278 Mon Sep 17 00:00:00 2001 From: Pavel Brui Date: Wed, 11 Oct 2023 17:16:45 +0200 Subject: [PATCH 6/7] cleanAll --- .../gei-notifications/schema.graphql | 213 +----- .../src/Mutation/userMutation.ts | 6 +- .../src/PublicQuery/listNotificationGroups.ts | 24 - .../src/Query/publicQuery.ts | 3 - .../gei-notifications/src/Query/userQuery.ts | 4 +- .../UserMutation/createNotificationGroup.ts | 22 - .../sendPushNotificationToInterests.ts | 2 +- .../sendPushNotificationToUsers.ts | 4 +- .../UserMutation/sendStaticNotification.ts | 2 +- .../generatePushNotificationToken.ts} | 8 +- .../getChannelAuthorization.ts | 4 +- .../src/UserQuery/listChannels.ts | 7 - .../src/UserQuery/listNotifications.ts | 41 - .../src/models/AddUserToGroupResultModel.ts | 3 - .../src/models/ChannelModel.ts | 3 - .../CreateNotificationGroupResultModel.ts | 3 - .../DeleteNotificationGroupResultModel.ts | 3 - .../EditNotificationGroupResultModel.ts | 3 - .../src/models/ListChannelsResultModel.ts | 3 - .../ListNotificationGroupsResultModel.ts | 3 - .../models/ListNotificationsResultModel.ts | 3 - .../MarkNotificationReadedResultModel.ts | 3 - .../src/models/NotificationGroupModel.ts | 3 - .../src/models/NotificationGroupOpsModel.ts | 3 - .../src/models/NotificationModel.ts | 3 - .../src/models/NotificationReadedModel.ts | 3 - .../src/models/PageOptionsResultModel.ts | 3 - .../src/models/PublicQueryModel.ts | 3 - .../models/RemoveUserToGroupResultModel.ts | 3 - .../src/models/SendNotificationResultModel.ts | 3 + .../SendStaticNotificationResultModel.ts | 3 - .../gei-notifications/src/models/index.ts | 36 +- .../src/utils/{pusher => }/beam.ts | 4 +- .../src/utils/dateMiddleware.ts | 29 - .../src/utils/db/collections.ts | 5 - .../gei-notifications/src/utils/db/db.ts | 25 - .../gei-notifications/src/utils/db/orm.ts | 92 --- .../gei-notifications/src/utils/middleware.ts | 14 - .../utils/{pusher/channel.ts => pusher.ts} | 4 +- .../gei-notifications/src/utils/tools.ts | 3 - .../gei-notifications/src/zeus/const.ts | 178 +---- .../gei-notifications/src/zeus/index.ts | 701 +----------------- .../gei-notifications/stucco.json | 117 +-- 43 files changed, 116 insertions(+), 1486 deletions(-) delete mode 100644 packages/integrations/gei-notifications/src/PublicQuery/listNotificationGroups.ts delete mode 100644 packages/integrations/gei-notifications/src/Query/publicQuery.ts delete mode 100644 packages/integrations/gei-notifications/src/UserMutation/createNotificationGroup.ts rename packages/integrations/gei-notifications/src/{UserMutation/getBeamAuthorization.ts => UserQuery/generatePushNotificationToken.ts} (57%) rename packages/integrations/gei-notifications/src/{UserMutation => UserQuery}/getChannelAuthorization.ts (77%) delete mode 100644 packages/integrations/gei-notifications/src/UserQuery/listChannels.ts delete mode 100644 packages/integrations/gei-notifications/src/UserQuery/listNotifications.ts delete mode 100644 packages/integrations/gei-notifications/src/models/AddUserToGroupResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/ChannelModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/CreateNotificationGroupResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/DeleteNotificationGroupResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/EditNotificationGroupResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/ListChannelsResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/ListNotificationGroupsResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/ListNotificationsResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/MarkNotificationReadedResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/NotificationGroupModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/NotificationGroupOpsModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/NotificationModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/NotificationReadedModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/PageOptionsResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/PublicQueryModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/RemoveUserToGroupResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/SendNotificationResultModel.ts delete mode 100644 packages/integrations/gei-notifications/src/models/SendStaticNotificationResultModel.ts rename packages/integrations/gei-notifications/src/utils/{pusher => }/beam.ts (94%) delete mode 100644 packages/integrations/gei-notifications/src/utils/dateMiddleware.ts delete mode 100644 packages/integrations/gei-notifications/src/utils/db/collections.ts delete mode 100644 packages/integrations/gei-notifications/src/utils/db/db.ts delete mode 100644 packages/integrations/gei-notifications/src/utils/db/orm.ts rename packages/integrations/gei-notifications/src/utils/{pusher/channel.ts => pusher.ts} (89%) delete mode 100644 packages/integrations/gei-notifications/src/utils/tools.ts diff --git a/packages/integrations/gei-notifications/schema.graphql b/packages/integrations/gei-notifications/schema.graphql index e0dbe44..1378828 100644 --- a/packages/integrations/gei-notifications/schema.graphql +++ b/packages/integrations/gei-notifications/schema.graphql @@ -2,16 +2,12 @@ type Query{ userQuery( userId: String! ): UserQuery - publicQuery: PublicQuery! } type UserQuery{ - listNotifications( - input: ListNotificationsInput - ): ListNotificationsResult! - listChannels( - input: ListChannelsInput - ): ListChannelsResult! + getChannelAuthorization( + input: GetChannelAuthorizationInput! + ): GetChannelAuthorizationResult! generatePushNotificationToken: GeneratePushNotificationTokenResult! } @@ -24,47 +20,18 @@ type Mutation{ type UserMutation{ sendStaticNotification( input: SendStaticNotificationInput! - ): SendStaticNotificationResult! + ): SendNotificationResult! sendPushNotificationToUsers( input: SendPushNotificationInput! - ): SendStaticNotificationResult! + ): SendNotificationResult! sendPushNotificationToInterests( input: SendPushNotificationInput! - ): SendStaticNotificationResult! - getChannelAuthorization( - input: GetChannelAuthorizationInput! - ): GetChannelAuthorizationResult! - getBeamAuthorization( - userId: String - ): GetChannelAuthorizationResult! -} - -type PublicQuery{ - listNotificationGroups( - input: ListNotificationGroupsInput - ): ListNotificationGroupsResult! -} - -type NotificationGroupOps{ - """ - if we adding or removing users, duplicates will be reduced - """ - addUserToGroup( - userIds: [String!] - ): AddUserToGroupResult! - removeUserFromGroup( - userIds: [String!] - ): RemoveUserToGroupResult! - editNotificationGroup( - input: EditNotificationGroupInput! - ): EditNotificationGroupResult - deleteNotificationGroup: DeleteNotificationGroupResult! + ): SendNotificationResult! } type GeneratePushNotificationTokenResult{ error: GlobalError token: String! - exp: Date } input GetChannelAuthorizationInput{ @@ -79,43 +46,6 @@ type GetChannelAuthorizationResult{ shared_secret: String } -input ListChannelsInput{ - page: PageOptionsInput -} - -input ListNotificationGroupsInput{ - page: PageOptionsInput - filter: ListNotificationGroupsInputFilter -} - -input ListNotificationGroupsInputFilter{ - """ - this is a regex searching - """ - name: String - """ - if targetId is filled, this filter will return Notification groups that contains inside specific target - """ - targetId: String - sortDirection: SortDirection - notificationType: NotificationType - startDate: Date - endDate: Date -} - -input ListNotificationsInput{ - filter: ListNotificationsInputFilter - page: PageOptionsInput -} - -input ListNotificationsInputFilter{ - notificationType: NotificationType - sortDirection: SortDirection - isReaded: Boolean - startDate: Date - endDate: Date -} - input SendStaticNotificationInput{ channelsId: [String!]! message: String! @@ -132,149 +62,20 @@ input NotificationPayloadInput{ body: String! } -type ListChannelsResult{ - error: GlobalError - result: [Channel!] - page: PageOptionsResult -} - -type DeleteNotificationGroupResult{ - error: GlobalError - result: Boolean -} - -type SendStaticNotificationResult{ - error: GlobalError - result: Boolean -} - -type EditNotificationGroupResult{ +type SendNotificationResult{ error: GlobalError result: Boolean } -input EditNotificationGroupInput{ - name: String - users: [String!] -} - -type AddUserToGroupResult implements error{ - result: Boolean - error: GlobalError -} - -type RemoveUserToGroupResult implements error{ - result: Boolean - error: GlobalError -} - -type CreateNotificationGroupResult implements error{ - error: GlobalError - result: Boolean -} - -input CreateNotificationGroupInput{ - name: String! - users: [String!]! - notificationType: NotificationType! -} - -type MarkNotificationReadedResult{ - error: GlobalError - result: Boolean -} - -input MarkNotificationReadedInput{ - state: Boolean! - notificationId: String! -} - -type ListNotificationGroupsResult implements error{ - error: GlobalError - notificationGroup: [NotificationGroup!] -} - -type ListNotificationsResult implements error{ - error: GlobalError - notification: [Notification!] - page: PageOptionsResult -} - type GlobalError{ message: String! path: String! } -type Notification implements DbEssentials{ - body: String! - targetIds: [String!]! - _id: String! - createdAt: Date! - isReaded: Boolean! - notificationType: NotificationType! -} - -type NotificationGroup implements DbEssentials{ - targets: [String!]! - notificationType: NotificationType! - name: String! - _id: String! - createdAt: Date! -} - -type NotificationReaded{ - userId: String! - notificationId: String! - createdAt: Date! -} - -type Channel{ - channelId: String! - createdAt: Date -} - -input PageOptionsInput{ - """ - default limit is 10 - """ - limit: Int - """ - count stating from 0 - """ - page: Int -} - -type PageOptionsResult{ - count: Int - hasNext: Boolean -} - -interface DbEssentials{ - _id: String! - createdAt: Date! -} - interface error{ error: GlobalError } -enum NotificationTargetType{ - USER - GROUP -} - -enum SortDirection{ - asc - desc -} - -enum NotificationType{ - STATIC - PUSH -} - -scalar Date - 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 index f0a71fc..7b4013c 100644 --- a/packages/integrations/gei-notifications/src/Mutation/userMutation.ts +++ b/packages/integrations/gei-notifications/src/Mutation/userMutation.ts @@ -1,5 +1,5 @@ import { FieldResolveInput } from 'stucco-js'; +import { resolverFor } from '../zeus/index.js'; -export const handler = async (input: FieldResolveInput) => ({ - userId: 'root', -}); +export const handler = async (input: FieldResolveInput) => + resolverFor('Mutation', 'userMutation', async (args) => args)(input.arguments); diff --git a/packages/integrations/gei-notifications/src/PublicQuery/listNotificationGroups.ts b/packages/integrations/gei-notifications/src/PublicQuery/listNotificationGroups.ts deleted file mode 100644 index 7732728..0000000 --- a/packages/integrations/gei-notifications/src/PublicQuery/listNotificationGroups.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { FieldResolveInput } from 'stucco-js'; -import { resolverFor } from '../zeus/index.js'; -import { orm, prepareDateOptions, preparePageOptions } from '../utils/db/orm.js'; - -export const isNotNullObject = (v: unknown): v is Record => - typeof v === 'object' && v !== null; - -export const handler = async (input: FieldResolveInput) => - resolverFor('PublicQuery', 'listNotificationGroups', async (args, src) => { - const { limit, skip } = preparePageOptions(args.input?.page); - const o = await orm(); - console.log('abc'); - return await o('NotificationGroup') - .collection.find({ - ...(args.input?.filter?.name && { name: { $regex: args.input.filter.name } }), - ...(args.input?.filter?.targetId && { targets: args.input.filter.targetId }), - ...prepareDateOptions(args.input?.filter?.startDate, args.input?.filter?.endDate), - ...(args.input?.filter?.notificationType && { notificationType: args.input.filter.notificationType }), - }) - .limit(limit) - .skip(skip) - .sort({ createdAt: args.input?.filter?.sortDirection ? args.input.filter.sortDirection : 'desc' }) - .toArray(); - })(input.arguments, input.source); diff --git a/packages/integrations/gei-notifications/src/Query/publicQuery.ts b/packages/integrations/gei-notifications/src/Query/publicQuery.ts deleted file mode 100644 index 12e933a..0000000 --- a/packages/integrations/gei-notifications/src/Query/publicQuery.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { FieldResolveInput } from 'stucco-js'; - -export const handler = async (input: FieldResolveInput) => ({}); diff --git a/packages/integrations/gei-notifications/src/Query/userQuery.ts b/packages/integrations/gei-notifications/src/Query/userQuery.ts index cad7972..4362f83 100644 --- a/packages/integrations/gei-notifications/src/Query/userQuery.ts +++ b/packages/integrations/gei-notifications/src/Query/userQuery.ts @@ -2,6 +2,4 @@ import { FieldResolveInput } from 'stucco-js'; import { resolverFor } from '../zeus/index.js'; export const handler = async (input: FieldResolveInput) => - resolverFor('Query', 'userQuery', async (args) => ({ - userId: 'root', - }))(input.arguments); + resolverFor('Query', 'userQuery', async (args) => args)(input.arguments); diff --git a/packages/integrations/gei-notifications/src/UserMutation/createNotificationGroup.ts b/packages/integrations/gei-notifications/src/UserMutation/createNotificationGroup.ts deleted file mode 100644 index f8f4810..0000000 --- a/packages/integrations/gei-notifications/src/UserMutation/createNotificationGroup.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { FieldResolveInput } from 'stucco-js'; -import { resolverFor } from '../zeus/index.js'; -import { orm } from '../utils/db/orm.js'; - -export const handler = async (input: FieldResolveInput) => - resolverFor( - 'UserMutation', - 'createNotificationGroup', - async (args) => - await orm() - .then((o) => - o('NotificationGroup').createWithAutoFields( - '_id', - 'createdAt', - )({ - targets: args.input.users, - name: args.input.name, - notificationType: args.input.notificationType, - }), - ) - .then((r) => r.acknowledged), - )(input.arguments); diff --git a/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToInterests.ts b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToInterests.ts index 2e9252f..b520e98 100644 --- a/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToInterests.ts +++ b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToInterests.ts @@ -1,7 +1,7 @@ import { FieldResolveInput } from 'stucco-js'; import { resolverFor } from '../zeus/index.js'; import { errMiddleware } from '../utils/middleware.js'; -import { sendPushNotificationToInterests } from '../utils/pusher/beam.js'; +import { sendPushNotificationToInterests } from '../utils/beam.js'; export const handler = async (input: FieldResolveInput) => resolverFor('UserMutation', 'sendPushNotificationToInterests', async (args) => diff --git a/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToUsers.ts b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToUsers.ts index 94a6113..501b3fb 100644 --- a/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToUsers.ts +++ b/packages/integrations/gei-notifications/src/UserMutation/sendPushNotificationToUsers.ts @@ -1,7 +1,7 @@ import { FieldResolveInput } from 'stucco-js'; import { resolverFor } from '../zeus/index.js'; import { errMiddleware } from '../utils/middleware.js'; -import { sendPushNotificationToInterests } from '../utils/pusher/beam.js'; +import { sendPushNotificationToUsers } from '../utils/beam.js'; export const handler = async (input: FieldResolveInput) => resolverFor('UserMutation', 'sendPushNotificationToUsers', async (args) => @@ -9,6 +9,6 @@ export const handler = async (input: FieldResolveInput) => 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 sendPushNotificationToInterests(args.input.targets, args.input.notification); + 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 index 5b970b7..1076772 100644 --- a/packages/integrations/gei-notifications/src/UserMutation/sendStaticNotification.ts +++ b/packages/integrations/gei-notifications/src/UserMutation/sendStaticNotification.ts @@ -1,7 +1,7 @@ import { FieldResolveInput } from 'stucco-js'; import { resolverFor } from '../zeus/index.js'; import { errMiddleware } from '../utils/middleware.js'; -import { sendStaticNotification } from '../utils/pusher/channel.js'; +import { sendStaticNotification } from '../utils/pusher.js'; export const handler = async (input: FieldResolveInput) => resolverFor('UserMutation', 'sendStaticNotification', async (args) => diff --git a/packages/integrations/gei-notifications/src/UserMutation/getBeamAuthorization.ts b/packages/integrations/gei-notifications/src/UserQuery/generatePushNotificationToken.ts similarity index 57% rename from packages/integrations/gei-notifications/src/UserMutation/getBeamAuthorization.ts rename to packages/integrations/gei-notifications/src/UserQuery/generatePushNotificationToken.ts index aa0e6ef..95fddf2 100644 --- a/packages/integrations/gei-notifications/src/UserMutation/getBeamAuthorization.ts +++ b/packages/integrations/gei-notifications/src/UserQuery/generatePushNotificationToken.ts @@ -1,11 +1,11 @@ import { FieldResolveInput } from 'stucco-js'; -import { errMiddleware } from '../utils/middleware.js'; -import { generateBeamToken } from '../utils/pusher/beam.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('UserMutation', 'getBeamAuthorization', async (args, { userId }) => + resolverFor('UserQuery', 'generatePushNotificationToken', async (args, { userId }) => errMiddleware(async () => { - return { auth: generateBeamToken(args?.userId || userId).token }; + return generateBeamToken(userId); }), )(input.arguments, input.source); diff --git a/packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts b/packages/integrations/gei-notifications/src/UserQuery/getChannelAuthorization.ts similarity index 77% rename from packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts rename to packages/integrations/gei-notifications/src/UserQuery/getChannelAuthorization.ts index c7f877e..160ad66 100644 --- a/packages/integrations/gei-notifications/src/UserMutation/getChannelAuthorization.ts +++ b/packages/integrations/gei-notifications/src/UserQuery/getChannelAuthorization.ts @@ -1,10 +1,10 @@ import { errMiddleware } from './../utils/middleware.js'; import { FieldResolveInput } from 'stucco-js'; import { resolverFor } from '../zeus/index.js'; -import { channelsClient } from '../utils/pusher/channel.js'; +import { channelsClient } from '../utils/pusher.js'; export const handler = async (input: FieldResolveInput) => - resolverFor('UserMutation', 'getChannelAuthorization', async (args) => + resolverFor('UserQuery', 'getChannelAuthorization', async (args) => errMiddleware(async () => { const socketId = args.input.socketId; const channel = args.input.targetId; diff --git a/packages/integrations/gei-notifications/src/UserQuery/listChannels.ts b/packages/integrations/gei-notifications/src/UserQuery/listChannels.ts deleted file mode 100644 index b9018af..0000000 --- a/packages/integrations/gei-notifications/src/UserQuery/listChannels.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { FieldResolveInput } from 'stucco-js'; -import { resolverFor } from '../zeus/index.js'; - -export const handler = async (input: FieldResolveInput) => - resolverFor('UserQuery', 'listChannels', async (args, src) => { - return src.userId; - })(input.arguments, input.source); diff --git a/packages/integrations/gei-notifications/src/UserQuery/listNotifications.ts b/packages/integrations/gei-notifications/src/UserQuery/listNotifications.ts deleted file mode 100644 index 464f9af..0000000 --- a/packages/integrations/gei-notifications/src/UserQuery/listNotifications.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { FieldResolveInput } from 'stucco-js'; -import { ModelTypes, resolverFor } from '../zeus/index.js'; -import { orm, preparePageOptions, prepareDateOptions } from '../utils/db/orm.js'; -import { errMiddleware, sourceContainUserIdOrThrow } from '../utils/middleware.js'; - -export const checkIfStaticNotificationIsReaded = async ( - o: Awaited>, - notifications: ModelTypes['Notification'][], - isReaded: boolean | null = false, -) => { - const readedNotifications = await o('Notifications').composeRelated( - notifications, - '_id', - 'NotificationReaded', - 'notificationId', - ); - return notifications.filter((notification) => - isReaded - ? readedNotifications.some((rn) => rn._id === notification._id) - : !readedNotifications.some((rn) => rn._id === notification._id), - ); -}; - -export const handler = async (input: FieldResolveInput) => - resolverFor('UserQuery', 'listNotifications', async (args, src) => - errMiddleware(async () => { - sourceContainUserIdOrThrow(src); - const { limit, page } = preparePageOptions(args.input?.page); - const o = await orm(); - const notifications = await o('Notifications') - .collection.find({ - ...(args.input?.filter?.notificationType && { notificationType: args.input.filter.notificationType }), - ...prepareDateOptions(args.input?.filter?.startDate, args.input?.filter?.endDate), - }) - .limit(limit) - .skip(page) - .sort({ createdAt: args.input?.filter?.sortDirection ? args.input.filter.sortDirection : 'desc' }) - .toArray(); - return { notification: await checkIfStaticNotificationIsReaded(o, notifications, args.input?.filter?.isReaded) }; - }), - )(input.arguments, input.source); diff --git a/packages/integrations/gei-notifications/src/models/AddUserToGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/AddUserToGroupResultModel.ts deleted file mode 100644 index ec498d4..0000000 --- a/packages/integrations/gei-notifications/src/models/AddUserToGroupResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type AddUserToGroupResultModel = ModelTypes['AddUserToGroupResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/ChannelModel.ts b/packages/integrations/gei-notifications/src/models/ChannelModel.ts deleted file mode 100644 index 3690d6f..0000000 --- a/packages/integrations/gei-notifications/src/models/ChannelModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type ChannelModel = ModelTypes['Channel']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/CreateNotificationGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/CreateNotificationGroupResultModel.ts deleted file mode 100644 index 1dd8e69..0000000 --- a/packages/integrations/gei-notifications/src/models/CreateNotificationGroupResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type CreateNotificationGroupResultModel = ModelTypes['CreateNotificationGroupResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/DeleteNotificationGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/DeleteNotificationGroupResultModel.ts deleted file mode 100644 index 13cdb59..0000000 --- a/packages/integrations/gei-notifications/src/models/DeleteNotificationGroupResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type DeleteNotificationGroupResultModel = ModelTypes['DeleteNotificationGroupResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/EditNotificationGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/EditNotificationGroupResultModel.ts deleted file mode 100644 index e41d3ad..0000000 --- a/packages/integrations/gei-notifications/src/models/EditNotificationGroupResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type EditNotificationGroupResultModel = ModelTypes['EditNotificationGroupResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/ListChannelsResultModel.ts b/packages/integrations/gei-notifications/src/models/ListChannelsResultModel.ts deleted file mode 100644 index e1653be..0000000 --- a/packages/integrations/gei-notifications/src/models/ListChannelsResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type ListChannelsResultModel = ModelTypes['ListChannelsResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/ListNotificationGroupsResultModel.ts b/packages/integrations/gei-notifications/src/models/ListNotificationGroupsResultModel.ts deleted file mode 100644 index 68c213d..0000000 --- a/packages/integrations/gei-notifications/src/models/ListNotificationGroupsResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type ListNotificationGroupsResultModel = ModelTypes['ListNotificationGroupsResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/ListNotificationsResultModel.ts b/packages/integrations/gei-notifications/src/models/ListNotificationsResultModel.ts deleted file mode 100644 index eaa8df6..0000000 --- a/packages/integrations/gei-notifications/src/models/ListNotificationsResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type ListNotificationsResultModel = ModelTypes['ListNotificationsResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/MarkNotificationReadedResultModel.ts b/packages/integrations/gei-notifications/src/models/MarkNotificationReadedResultModel.ts deleted file mode 100644 index b736d39..0000000 --- a/packages/integrations/gei-notifications/src/models/MarkNotificationReadedResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type MarkNotificationReadedResultModel = ModelTypes['MarkNotificationReadedResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/NotificationGroupModel.ts b/packages/integrations/gei-notifications/src/models/NotificationGroupModel.ts deleted file mode 100644 index 4d0d965..0000000 --- a/packages/integrations/gei-notifications/src/models/NotificationGroupModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type NotificationGroupModel = ModelTypes['NotificationGroup']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/NotificationGroupOpsModel.ts b/packages/integrations/gei-notifications/src/models/NotificationGroupOpsModel.ts deleted file mode 100644 index e3bece4..0000000 --- a/packages/integrations/gei-notifications/src/models/NotificationGroupOpsModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type NotificationGroupOpsModel = ModelTypes['NotificationGroupOps']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/NotificationModel.ts b/packages/integrations/gei-notifications/src/models/NotificationModel.ts deleted file mode 100644 index b65c35b..0000000 --- a/packages/integrations/gei-notifications/src/models/NotificationModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type NotificationModel = ModelTypes['Notification']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/NotificationReadedModel.ts b/packages/integrations/gei-notifications/src/models/NotificationReadedModel.ts deleted file mode 100644 index cd242ee..0000000 --- a/packages/integrations/gei-notifications/src/models/NotificationReadedModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type NotificationReadedModel = ModelTypes['NotificationReaded']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/PageOptionsResultModel.ts b/packages/integrations/gei-notifications/src/models/PageOptionsResultModel.ts deleted file mode 100644 index 3d70493..0000000 --- a/packages/integrations/gei-notifications/src/models/PageOptionsResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type PageOptionsResultModel = ModelTypes['PageOptionsResult']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/PublicQueryModel.ts b/packages/integrations/gei-notifications/src/models/PublicQueryModel.ts deleted file mode 100644 index 36e8c5a..0000000 --- a/packages/integrations/gei-notifications/src/models/PublicQueryModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type PublicQueryModel = ModelTypes['PublicQuery']; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/models/RemoveUserToGroupResultModel.ts b/packages/integrations/gei-notifications/src/models/RemoveUserToGroupResultModel.ts deleted file mode 100644 index f97c4ac..0000000 --- a/packages/integrations/gei-notifications/src/models/RemoveUserToGroupResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type RemoveUserToGroupResultModel = ModelTypes['RemoveUserToGroupResult']; \ 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/SendStaticNotificationResultModel.ts b/packages/integrations/gei-notifications/src/models/SendStaticNotificationResultModel.ts deleted file mode 100644 index 0c44e11..0000000 --- a/packages/integrations/gei-notifications/src/models/SendStaticNotificationResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type SendStaticNotificationResultModel = ModelTypes['SendStaticNotificationResult']; \ 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 index aa0e6d2..488c82e 100644 --- a/packages/integrations/gei-notifications/src/models/index.ts +++ b/packages/integrations/gei-notifications/src/models/index.ts @@ -2,26 +2,10 @@ import { QueryModel } from './QueryModel.js' import { UserQueryModel } from './UserQueryModel.js' import { MutationModel } from './MutationModel.js' import { UserMutationModel } from './UserMutationModel.js' -import { PublicQueryModel } from './PublicQueryModel.js' -import { NotificationGroupOpsModel } from './NotificationGroupOpsModel.js' import { GeneratePushNotificationTokenResultModel } from './GeneratePushNotificationTokenResultModel.js' import { GetChannelAuthorizationResultModel } from './GetChannelAuthorizationResultModel.js' -import { ListChannelsResultModel } from './ListChannelsResultModel.js' -import { DeleteNotificationGroupResultModel } from './DeleteNotificationGroupResultModel.js' -import { SendStaticNotificationResultModel } from './SendStaticNotificationResultModel.js' -import { EditNotificationGroupResultModel } from './EditNotificationGroupResultModel.js' -import { AddUserToGroupResultModel } from './AddUserToGroupResultModel.js' -import { RemoveUserToGroupResultModel } from './RemoveUserToGroupResultModel.js' -import { CreateNotificationGroupResultModel } from './CreateNotificationGroupResultModel.js' -import { MarkNotificationReadedResultModel } from './MarkNotificationReadedResultModel.js' -import { ListNotificationGroupsResultModel } from './ListNotificationGroupsResultModel.js' -import { ListNotificationsResultModel } from './ListNotificationsResultModel.js' +import { SendNotificationResultModel } from './SendNotificationResultModel.js' import { GlobalErrorModel } from './GlobalErrorModel.js' -import { NotificationModel } from './NotificationModel.js' -import { NotificationGroupModel } from './NotificationGroupModel.js' -import { NotificationReadedModel } from './NotificationReadedModel.js' -import { ChannelModel } from './ChannelModel.js' -import { PageOptionsResultModel } from './PageOptionsResultModel.js' export type Models = { @@ -29,24 +13,8 @@ export type Models = { UserQueryModel: UserQueryModel; MutationModel: MutationModel; UserMutationModel: UserMutationModel; - PublicQueryModel: PublicQueryModel; - NotificationGroupOpsModel: NotificationGroupOpsModel; GeneratePushNotificationTokenResultModel: GeneratePushNotificationTokenResultModel; GetChannelAuthorizationResultModel: GetChannelAuthorizationResultModel; - ListChannelsResultModel: ListChannelsResultModel; - DeleteNotificationGroupResultModel: DeleteNotificationGroupResultModel; - SendStaticNotificationResultModel: SendStaticNotificationResultModel; - EditNotificationGroupResultModel: EditNotificationGroupResultModel; - AddUserToGroupResultModel: AddUserToGroupResultModel; - RemoveUserToGroupResultModel: RemoveUserToGroupResultModel; - CreateNotificationGroupResultModel: CreateNotificationGroupResultModel; - MarkNotificationReadedResultModel: MarkNotificationReadedResultModel; - ListNotificationGroupsResultModel: ListNotificationGroupsResultModel; - ListNotificationsResultModel: ListNotificationsResultModel; + SendNotificationResultModel: SendNotificationResultModel; GlobalErrorModel: GlobalErrorModel; - NotificationModel: NotificationModel; - NotificationGroupModel: NotificationGroupModel; - NotificationReadedModel: NotificationReadedModel; - ChannelModel: ChannelModel; - PageOptionsResultModel: PageOptionsResultModel; }; \ No newline at end of file diff --git a/packages/integrations/gei-notifications/src/utils/pusher/beam.ts b/packages/integrations/gei-notifications/src/utils/beam.ts similarity index 94% rename from packages/integrations/gei-notifications/src/utils/pusher/beam.ts rename to packages/integrations/gei-notifications/src/utils/beam.ts index 7ca933c..d2875a3 100644 --- a/packages/integrations/gei-notifications/src/utils/pusher/beam.ts +++ b/packages/integrations/gei-notifications/src/utils/beam.ts @@ -1,6 +1,6 @@ import PushNotifications from '@pusher/push-notifications-server'; -import { getEnv } from '../envs.js'; -import { GlobalError } from '../middleware.js'; +import { getEnv } from './envs.js'; +import { GlobalError } from './middleware.js'; export type NotificationPayload = { title: string; diff --git a/packages/integrations/gei-notifications/src/utils/dateMiddleware.ts b/packages/integrations/gei-notifications/src/utils/dateMiddleware.ts deleted file mode 100644 index de61ebe..0000000 --- a/packages/integrations/gei-notifications/src/utils/dateMiddleware.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { ModelTypes, ResolverInputTypes } from '../zeus'; - -const toDate = (value: unknown): Date | undefined | null => { - if (value === undefined || value === null) return value; - if (typeof value === 'string' || typeof value === 'number') return new Date(value); - throw new Error('Invalid date'); -}; - -export const mapDates = (obj: T, ...dateFields: K[]) => - Object.entries(obj) - .map(([k, v]) => [k, dateFields.includes(k as K) ? toDate(v) : v]) - .reduce( - (pv, [kv, cv]) => ({ - ...pv, - [kv as K]: cv, - }), - {}, - ) as Omit & Record; - -interface MapFn { - (v: T): R; -} - -export const dateMiddleware = ( - map: MapFn, - cb: (typedArg: R, source: unknown) => unknown, -): ((arg: T, source: unknown) => unknown) => { - return (arg: T, source: unknown): unknown => cb(map(arg), source); -}; diff --git a/packages/integrations/gei-notifications/src/utils/db/collections.ts b/packages/integrations/gei-notifications/src/utils/db/collections.ts deleted file mode 100644 index 81c6f1d..0000000 --- a/packages/integrations/gei-notifications/src/utils/db/collections.ts +++ /dev/null @@ -1,5 +0,0 @@ -type NotificationGroup = 'NotificationGroup'; -type NotificationReaded = 'NotificationReaded'; -type Notifications = 'Notifications'; - -export type collections = NotificationGroup | NotificationReaded | Notifications; diff --git a/packages/integrations/gei-notifications/src/utils/db/db.ts b/packages/integrations/gei-notifications/src/utils/db/db.ts deleted file mode 100644 index 2c5b784..0000000 --- a/packages/integrations/gei-notifications/src/utils/db/db.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { MongoClient, Db } from "mongodb"; - -let mongoConnection: { db: Db; client: MongoClient } | undefined = undefined; - -async function mongo(): Promise { - if (!mongoConnection) { - const mongoUrl = process.env.MONGO_URL - ? process.env.MONGO_URL - : "mongodb://localhost:27017"; - console.log(mongoUrl) - const client = new MongoClient(mongoUrl); - const c = await client.connect(); - const db = c.db(); - mongoConnection = { - client, - db, - }; - } - return mongoConnection.db; -} - -export async function DB() { - return mongo(); -} - diff --git a/packages/integrations/gei-notifications/src/utils/db/orm.ts b/packages/integrations/gei-notifications/src/utils/db/orm.ts deleted file mode 100644 index 29c93cc..0000000 --- a/packages/integrations/gei-notifications/src/utils/db/orm.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { iGraphQL } from 'i-graphql'; -import { ObjectId } from 'mongodb'; -import { Models } from '../../models/index.js'; -import { GlobalError } from '../middleware.js'; -import { collections } from './collections.js'; - -export const orm = async () => { - return iGraphQL< - { - Notifications: Models['NotificationModel']; - NotificationGroup: Models['NotificationGroupModel']; - NotificationReaded: Models['NotificationReadedModel']; - }, - { - _id: () => string; - createdAt: () => Date; - } - >({ - _id: () => new ObjectId().toHexString(), - createdAt: () => new Date(), - }); -}; - -export const MongOrb = await orm(); - -export const mustFindOne = async (col: collections, filter: {}, options: {} | null = null) => { - return orm().then((o) => - o(col) - .collection.findOne(filter, options ? options : {}) - .catch(() => { - throw new GlobalError('mustFindOne returns null', import.meta.url); - }), - ); -}; - -export const mustFindAny = async (col: collections, filter: {} | null = null, options: {} | null = null) => { - return await orm().then((o) => - o(col) - .collection.find(filter ? filter : {}, options ? options : {}) - .toArray() - .catch(() => { - throw new GlobalError('mustFindOne returns null', import.meta.url); - }), - ); -}; - -export type PageOptions = { - limit: number; - page: number; - skip: number; -}; - -export const preparePageOptions = (page?: { limit?: number | null; page?: number | null } | null): PageOptions => { - const lim = page?.limit || 10; - const sk = page?.page || 0; - return { - limit: lim, - page: sk, - skip: lim * sk, - }; -}; - -type preparedDate = { - createdAt?: { - $gte?: Date; - $lte?: Date; - }; -}; - -export const prepareDateOptions = (sd: unknown, ed: unknown): preparedDate => { - const endDate = () => { - if (typeof ed === 'string' && Date.parse(ed) >= 0) { - return new Date(ed); - } - return undefined; - }; - const startDate = () => { - if (typeof sd === 'string' && Date.parse(sd) >= 0) { - return new Date(sd); - } - return undefined; - }; - if (typeof startDate() === 'undefined' && typeof endDate() === 'undefined') { - return {}; - } - return { - createdAt: { - ...(startDate() && { $gte: startDate() }), - ...(endDate() && { $lte: endDate() }), - }, - }; -}; diff --git a/packages/integrations/gei-notifications/src/utils/middleware.ts b/packages/integrations/gei-notifications/src/utils/middleware.ts index 7dedee9..b683c21 100644 --- a/packages/integrations/gei-notifications/src/utils/middleware.ts +++ b/packages/integrations/gei-notifications/src/utils/middleware.ts @@ -21,17 +21,3 @@ export const errMiddleware = async (handler: () => Promise): Promise(source: Record, key: keyof T): source is T => key in source; - -export const sourceContainUserIdOrThrow = (source: any) => { - if (!typeGuard(source, 'userId') || typeof source.userId !== 'string') { - throw new GlobalError('input source is malformed', import.meta.url); - } -}; - -export type SourceWithUserId = { - userId: string; -}; - -export const isString = (v: unknown): boolean => typeof v === 'string'; diff --git a/packages/integrations/gei-notifications/src/utils/pusher/channel.ts b/packages/integrations/gei-notifications/src/utils/pusher.ts similarity index 89% rename from packages/integrations/gei-notifications/src/utils/pusher/channel.ts rename to packages/integrations/gei-notifications/src/utils/pusher.ts index 9e6712b..db38c62 100644 --- a/packages/integrations/gei-notifications/src/utils/pusher/channel.ts +++ b/packages/integrations/gei-notifications/src/utils/pusher.ts @@ -1,6 +1,6 @@ import Pusher from 'pusher'; -import { getEnv } from '../envs.js'; -import { GlobalError } from '../middleware.js'; +import { getEnv } from './envs.js'; +import { GlobalError } from './middleware.js'; export const channelsClient = new Pusher({ appId: getEnv('PUSHER_CHANNEL_APP_ID'), diff --git a/packages/integrations/gei-notifications/src/utils/tools.ts b/packages/integrations/gei-notifications/src/utils/tools.ts deleted file mode 100644 index 049cf59..0000000 --- a/packages/integrations/gei-notifications/src/utils/tools.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const removeDuplicatesFromArray = (arr1: T[]): T[] => arr1.filter((e, pos, self) => self.indexOf(e) == pos); - -export const sliceByArray = (arr1: T[], arr2: T[]): T[] => arr1.filter((e) => arr2.indexOf(e)); diff --git a/packages/integrations/gei-notifications/src/zeus/const.ts b/packages/integrations/gei-notifications/src/zeus/const.ts index 5c42c93..2fcca1f 100644 --- a/packages/integrations/gei-notifications/src/zeus/const.ts +++ b/packages/integrations/gei-notifications/src/zeus/const.ts @@ -7,11 +7,8 @@ export const AllTypesProps: Record = { } }, UserQuery:{ - listNotifications:{ - input:"ListNotificationsInput" - }, - listChannels:{ - input:"ListChannelsInput" + getChannelAuthorization:{ + input:"GetChannelAuthorizationInput" } }, Mutation:{ @@ -28,55 +25,10 @@ export const AllTypesProps: Record = { }, sendPushNotificationToInterests:{ input:"SendPushNotificationInput" - }, - getChannelAuthorization:{ - input:"GetChannelAuthorizationInput" - }, - getBeamAuthorization:{ - - } - }, - PublicQuery:{ - listNotificationGroups:{ - input:"ListNotificationGroupsInput" - } - }, - NotificationGroupOps:{ - addUserToGroup:{ - - }, - removeUserFromGroup:{ - - }, - editNotificationGroup:{ - input:"EditNotificationGroupInput" } }, GetChannelAuthorizationInput:{ - }, - ListChannelsInput:{ - page:"PageOptionsInput" - }, - ListNotificationGroupsInput:{ - page:"PageOptionsInput", - filter:"ListNotificationGroupsInputFilter" - }, - ListNotificationGroupsInputFilter:{ - sortDirection:"SortDirection", - notificationType:"NotificationType", - startDate:"Date", - endDate:"Date" - }, - ListNotificationsInput:{ - filter:"ListNotificationsInputFilter", - page:"PageOptionsInput" - }, - ListNotificationsInputFilter:{ - notificationType:"NotificationType", - sortDirection:"SortDirection", - startDate:"Date", - endDate:"Date" }, SendStaticNotificationInput:{ @@ -86,58 +38,28 @@ export const AllTypesProps: Record = { }, NotificationPayloadInput:{ - }, - EditNotificationGroupInput:{ - - }, - CreateNotificationGroupInput:{ - notificationType:"NotificationType" - }, - MarkNotificationReadedInput:{ - - }, - PageOptionsInput:{ - - }, - NotificationTargetType: "enum" as const, - SortDirection: "enum" as const, - NotificationType: "enum" as const, - Date: `scalar.Date` as const + } } export const ReturnTypes: Record = { Query:{ - userQuery:"UserQuery", - publicQuery:"PublicQuery" + userQuery:"UserQuery" }, UserQuery:{ - listNotifications:"ListNotificationsResult", - listChannels:"ListChannelsResult", + getChannelAuthorization:"GetChannelAuthorizationResult", generatePushNotificationToken:"GeneratePushNotificationTokenResult" }, Mutation:{ userMutation:"UserMutation" }, UserMutation:{ - sendStaticNotification:"SendStaticNotificationResult", - sendPushNotificationToUsers:"SendStaticNotificationResult", - sendPushNotificationToInterests:"SendStaticNotificationResult", - getChannelAuthorization:"GetChannelAuthorizationResult", - getBeamAuthorization:"GetChannelAuthorizationResult" - }, - PublicQuery:{ - listNotificationGroups:"ListNotificationGroupsResult" - }, - NotificationGroupOps:{ - addUserToGroup:"AddUserToGroupResult", - removeUserFromGroup:"RemoveUserToGroupResult", - editNotificationGroup:"EditNotificationGroupResult", - deleteNotificationGroup:"DeleteNotificationGroupResult" + sendStaticNotification:"SendNotificationResult", + sendPushNotificationToUsers:"SendNotificationResult", + sendPushNotificationToInterests:"SendNotificationResult" }, GeneratePushNotificationTokenResult:{ error:"GlobalError", - token:"String", - exp:"Date" + token:"String" }, GetChannelAuthorizationResult:{ error:"GlobalError", @@ -145,95 +67,17 @@ export const ReturnTypes: Record = { channel_data:"String", shared_secret:"String" }, - ListChannelsResult:{ - error:"GlobalError", - result:"Channel", - page:"PageOptionsResult" - }, - DeleteNotificationGroupResult:{ - error:"GlobalError", - result:"Boolean" - }, - SendStaticNotificationResult:{ - error:"GlobalError", - result:"Boolean" - }, - EditNotificationGroupResult:{ + SendNotificationResult:{ error:"GlobalError", result:"Boolean" }, - AddUserToGroupResult:{ - result:"Boolean", - error:"GlobalError" - }, - RemoveUserToGroupResult:{ - result:"Boolean", - error:"GlobalError" - }, - CreateNotificationGroupResult:{ - error:"GlobalError", - result:"Boolean" - }, - MarkNotificationReadedResult:{ - error:"GlobalError", - result:"Boolean" - }, - ListNotificationGroupsResult:{ - error:"GlobalError", - notificationGroup:"NotificationGroup" - }, - ListNotificationsResult:{ - error:"GlobalError", - notification:"Notification", - page:"PageOptionsResult" - }, GlobalError:{ message:"String", path:"String" }, - Notification:{ - body:"String", - targetIds:"String", - _id:"String", - createdAt:"Date", - isReaded:"Boolean", - notificationType:"NotificationType" - }, - NotificationGroup:{ - targets:"String", - notificationType:"NotificationType", - name:"String", - _id:"String", - createdAt:"Date" - }, - NotificationReaded:{ - userId:"String", - notificationId:"String", - createdAt:"Date" - }, - Channel:{ - channelId:"String", - createdAt:"Date" - }, - PageOptionsResult:{ - count:"Int", - hasNext:"Boolean" - }, - DbEssentials:{ - "...on Notification": "Notification", - "...on NotificationGroup": "NotificationGroup", - _id:"String", - createdAt:"Date" - }, error:{ - "...on AddUserToGroupResult": "AddUserToGroupResult", - "...on RemoveUserToGroupResult": "RemoveUserToGroupResult", - "...on CreateNotificationGroupResult": "CreateNotificationGroupResult", - "...on ListNotificationGroupsResult": "ListNotificationGroupsResult", - "...on ListNotificationsResult": "ListNotificationsResult", error:"GlobalError" - }, - Date: `scalar.Date` as const + } } export const Ops = { diff --git a/packages/integrations/gei-notifications/src/zeus/index.ts b/packages/integrations/gei-notifications/src/zeus/index.ts index 6f296a2..f0393ce 100644 --- a/packages/integrations/gei-notifications/src/zeus/index.ts +++ b/packages/integrations/gei-notifications/src/zeus/index.ts @@ -827,21 +827,18 @@ 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["DbEssentials"] | GraphQLTypes["error"] +type ZEUS_INTERFACES = GraphQLTypes["error"] export type ScalarCoders = { - Date?: ScalarResolver; } type ZEUS_UNIONS = never export type ValueTypes = { ["Query"]: AliasType<{ userQuery?: [{ userId: string | Variable},ValueTypes["UserQuery"]], - publicQuery?:ValueTypes["PublicQuery"], __typename?: boolean | `@${string}` }>; ["UserQuery"]: AliasType<{ -listNotifications?: [{ input?: ValueTypes["ListNotificationsInput"] | undefined | null | Variable},ValueTypes["ListNotificationsResult"]], -listChannels?: [{ input?: ValueTypes["ListChannelsInput"] | undefined | null | Variable},ValueTypes["ListChannelsResult"]], +getChannelAuthorization?: [{ input: ValueTypes["GetChannelAuthorizationInput"] | Variable},ValueTypes["GetChannelAuthorizationResult"]], generatePushNotificationToken?:ValueTypes["GeneratePushNotificationTokenResult"], __typename?: boolean | `@${string}` }>; @@ -850,28 +847,14 @@ userMutation?: [{ userId: string | Variable},ValueTypes["UserMutati __typename?: boolean | `@${string}` }>; ["UserMutation"]: AliasType<{ -sendStaticNotification?: [{ input: ValueTypes["SendStaticNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], -sendPushNotificationToUsers?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], -sendPushNotificationToInterests?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendStaticNotificationResult"]], -getChannelAuthorization?: [{ input: ValueTypes["GetChannelAuthorizationInput"] | Variable},ValueTypes["GetChannelAuthorizationResult"]], -getBeamAuthorization?: [{ userId?: string | undefined | null | Variable},ValueTypes["GetChannelAuthorizationResult"]], - __typename?: boolean | `@${string}` -}>; - ["PublicQuery"]: AliasType<{ -listNotificationGroups?: [{ input?: ValueTypes["ListNotificationGroupsInput"] | undefined | null | Variable},ValueTypes["ListNotificationGroupsResult"]], - __typename?: boolean | `@${string}` -}>; - ["NotificationGroupOps"]: AliasType<{ -addUserToGroup?: [{ userIds?: Array | undefined | null | Variable},ValueTypes["AddUserToGroupResult"]], -removeUserFromGroup?: [{ userIds?: Array | undefined | null | Variable},ValueTypes["RemoveUserToGroupResult"]], -editNotificationGroup?: [{ input: ValueTypes["EditNotificationGroupInput"] | Variable},ValueTypes["EditNotificationGroupResult"]], - deleteNotificationGroup?:ValueTypes["DeleteNotificationGroupResult"], +sendStaticNotification?: [{ input: ValueTypes["SendStaticNotificationInput"] | Variable},ValueTypes["SendNotificationResult"]], +sendPushNotificationToUsers?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendNotificationResult"]], +sendPushNotificationToInterests?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendNotificationResult"]], __typename?: boolean | `@${string}` }>; ["GeneratePushNotificationTokenResult"]: AliasType<{ error?:ValueTypes["GlobalError"], token?:boolean | `@${string}`, - exp?:boolean | `@${string}`, __typename?: boolean | `@${string}` }>; ["GetChannelAuthorizationInput"]: { @@ -885,34 +868,6 @@ editNotificationGroup?: [{ input: ValueTypes["EditNotificationGroupInput"] | Var shared_secret?:boolean | `@${string}`, __typename?: boolean | `@${string}` }>; - ["ListChannelsInput"]: { - page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable -}; - ["ListNotificationGroupsInput"]: { - page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable, - filter?: ValueTypes["ListNotificationGroupsInputFilter"] | undefined | null | Variable -}; - ["ListNotificationGroupsInputFilter"]: { - /** this is a regex searching */ - name?: string | undefined | null | Variable, - /** if targetId is filled, this filter will return Notification groups that contains inside specific target */ - targetId?: string | undefined | null | Variable, - sortDirection?: ValueTypes["SortDirection"] | undefined | null | Variable, - notificationType?: ValueTypes["NotificationType"] | undefined | null | Variable, - startDate?: ValueTypes["Date"] | undefined | null | Variable, - endDate?: ValueTypes["Date"] | undefined | null | Variable -}; - ["ListNotificationsInput"]: { - filter?: ValueTypes["ListNotificationsInputFilter"] | undefined | null | Variable, - page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable -}; - ["ListNotificationsInputFilter"]: { - notificationType?: ValueTypes["NotificationType"] | undefined | null | Variable, - sortDirection?: ValueTypes["SortDirection"] | undefined | null | Variable, - isReaded?: boolean | undefined | null | Variable, - startDate?: ValueTypes["Date"] | undefined | null | Variable, - endDate?: ValueTypes["Date"] | undefined | null | Variable -}; ["SendStaticNotificationInput"]: { channelsId: Array | Variable, message: string | Variable, @@ -926,146 +881,30 @@ editNotificationGroup?: [{ input: ValueTypes["EditNotificationGroupInput"] | Var title: string | Variable, body: string | Variable }; - ["ListChannelsResult"]: AliasType<{ - error?:ValueTypes["GlobalError"], - result?:ValueTypes["Channel"], - page?:ValueTypes["PageOptionsResult"], - __typename?: boolean | `@${string}` -}>; - ["DeleteNotificationGroupResult"]: AliasType<{ - error?:ValueTypes["GlobalError"], - result?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["SendStaticNotificationResult"]: AliasType<{ - error?:ValueTypes["GlobalError"], - result?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["EditNotificationGroupResult"]: AliasType<{ - error?:ValueTypes["GlobalError"], - result?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["EditNotificationGroupInput"]: { - name?: string | undefined | null | Variable, - users?: Array | undefined | null | Variable -}; - ["AddUserToGroupResult"]: AliasType<{ - result?:boolean | `@${string}`, - error?:ValueTypes["GlobalError"], - __typename?: boolean | `@${string}` -}>; - ["RemoveUserToGroupResult"]: AliasType<{ - result?:boolean | `@${string}`, - error?:ValueTypes["GlobalError"], - __typename?: boolean | `@${string}` -}>; - ["CreateNotificationGroupResult"]: AliasType<{ - error?:ValueTypes["GlobalError"], - result?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["CreateNotificationGroupInput"]: { - name: string | Variable, - users: Array | Variable, - notificationType: ValueTypes["NotificationType"] | Variable -}; - ["MarkNotificationReadedResult"]: AliasType<{ + ["SendNotificationResult"]: AliasType<{ error?:ValueTypes["GlobalError"], result?:boolean | `@${string}`, __typename?: boolean | `@${string}` -}>; - ["MarkNotificationReadedInput"]: { - state: boolean | Variable, - notificationId: string | Variable -}; - ["ListNotificationGroupsResult"]: AliasType<{ - error?:ValueTypes["GlobalError"], - notificationGroup?:ValueTypes["NotificationGroup"], - __typename?: boolean | `@${string}` -}>; - ["ListNotificationsResult"]: AliasType<{ - error?:ValueTypes["GlobalError"], - notification?:ValueTypes["Notification"], - page?:ValueTypes["PageOptionsResult"], - __typename?: boolean | `@${string}` }>; ["GlobalError"]: AliasType<{ message?:boolean | `@${string}`, path?:boolean | `@${string}`, __typename?: boolean | `@${string}` -}>; - ["Notification"]: AliasType<{ - body?:boolean | `@${string}`, - targetIds?:boolean | `@${string}`, - _id?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`, - isReaded?:boolean | `@${string}`, - notificationType?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["NotificationGroup"]: AliasType<{ - targets?:boolean | `@${string}`, - notificationType?:boolean | `@${string}`, - name?:boolean | `@${string}`, - _id?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["NotificationReaded"]: AliasType<{ - userId?:boolean | `@${string}`, - notificationId?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["Channel"]: AliasType<{ - channelId?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["PageOptionsInput"]: { - /** default limit is 10 */ - limit?: number | undefined | null | Variable, - /** count stating from 0 */ - page?: number | undefined | null | Variable -}; - ["PageOptionsResult"]: AliasType<{ - count?:boolean | `@${string}`, - hasNext?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["DbEssentials"]:AliasType<{ - _id?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`; - ['...on Notification']?: Omit; - ['...on NotificationGroup']?: Omit; - __typename?: boolean | `@${string}` }>; ["error"]:AliasType<{ error?:ValueTypes["GlobalError"]; - ['...on AddUserToGroupResult']?: Omit; - ['...on RemoveUserToGroupResult']?: Omit; - ['...on CreateNotificationGroupResult']?: Omit; - ['...on ListNotificationGroupsResult']?: Omit; - ['...on ListNotificationsResult']?: Omit; + __typename?: boolean | `@${string}` -}>; - ["NotificationTargetType"]:NotificationTargetType; - ["SortDirection"]:SortDirection; - ["NotificationType"]:NotificationType; - ["Date"]:unknown +}> } export type ResolverInputTypes = { ["Query"]: AliasType<{ userQuery?: [{ userId: string},ResolverInputTypes["UserQuery"]], - publicQuery?:ResolverInputTypes["PublicQuery"], __typename?: boolean | `@${string}` }>; ["UserQuery"]: AliasType<{ -listNotifications?: [{ input?: ResolverInputTypes["ListNotificationsInput"] | undefined | null},ResolverInputTypes["ListNotificationsResult"]], -listChannels?: [{ input?: ResolverInputTypes["ListChannelsInput"] | undefined | null},ResolverInputTypes["ListChannelsResult"]], +getChannelAuthorization?: [{ input: ResolverInputTypes["GetChannelAuthorizationInput"]},ResolverInputTypes["GetChannelAuthorizationResult"]], generatePushNotificationToken?:ResolverInputTypes["GeneratePushNotificationTokenResult"], __typename?: boolean | `@${string}` }>; @@ -1074,28 +913,14 @@ userMutation?: [{ userId: string},ResolverInputTypes["UserMutation"]], __typename?: boolean | `@${string}` }>; ["UserMutation"]: AliasType<{ -sendStaticNotification?: [{ input: ResolverInputTypes["SendStaticNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], -sendPushNotificationToUsers?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], -sendPushNotificationToInterests?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendStaticNotificationResult"]], -getChannelAuthorization?: [{ input: ResolverInputTypes["GetChannelAuthorizationInput"]},ResolverInputTypes["GetChannelAuthorizationResult"]], -getBeamAuthorization?: [{ userId?: string | undefined | null},ResolverInputTypes["GetChannelAuthorizationResult"]], - __typename?: boolean | `@${string}` -}>; - ["PublicQuery"]: AliasType<{ -listNotificationGroups?: [{ input?: ResolverInputTypes["ListNotificationGroupsInput"] | undefined | null},ResolverInputTypes["ListNotificationGroupsResult"]], - __typename?: boolean | `@${string}` -}>; - ["NotificationGroupOps"]: AliasType<{ -addUserToGroup?: [{ userIds?: Array | undefined | null},ResolverInputTypes["AddUserToGroupResult"]], -removeUserFromGroup?: [{ userIds?: Array | undefined | null},ResolverInputTypes["RemoveUserToGroupResult"]], -editNotificationGroup?: [{ input: ResolverInputTypes["EditNotificationGroupInput"]},ResolverInputTypes["EditNotificationGroupResult"]], - deleteNotificationGroup?:ResolverInputTypes["DeleteNotificationGroupResult"], +sendStaticNotification?: [{ input: ResolverInputTypes["SendStaticNotificationInput"]},ResolverInputTypes["SendNotificationResult"]], +sendPushNotificationToUsers?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendNotificationResult"]], +sendPushNotificationToInterests?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendNotificationResult"]], __typename?: boolean | `@${string}` }>; ["GeneratePushNotificationTokenResult"]: AliasType<{ error?:ResolverInputTypes["GlobalError"], token?:boolean | `@${string}`, - exp?:boolean | `@${string}`, __typename?: boolean | `@${string}` }>; ["GetChannelAuthorizationInput"]: { @@ -1109,34 +934,6 @@ editNotificationGroup?: [{ input: ResolverInputTypes["EditNotificationGroupInput shared_secret?:boolean | `@${string}`, __typename?: boolean | `@${string}` }>; - ["ListChannelsInput"]: { - page?: ResolverInputTypes["PageOptionsInput"] | undefined | null -}; - ["ListNotificationGroupsInput"]: { - page?: ResolverInputTypes["PageOptionsInput"] | undefined | null, - filter?: ResolverInputTypes["ListNotificationGroupsInputFilter"] | undefined | null -}; - ["ListNotificationGroupsInputFilter"]: { - /** this is a regex searching */ - name?: string | undefined | null, - /** if targetId is filled, this filter will return Notification groups that contains inside specific target */ - targetId?: string | undefined | null, - sortDirection?: ResolverInputTypes["SortDirection"] | undefined | null, - notificationType?: ResolverInputTypes["NotificationType"] | undefined | null, - startDate?: ResolverInputTypes["Date"] | undefined | null, - endDate?: ResolverInputTypes["Date"] | undefined | null -}; - ["ListNotificationsInput"]: { - filter?: ResolverInputTypes["ListNotificationsInputFilter"] | undefined | null, - page?: ResolverInputTypes["PageOptionsInput"] | undefined | null -}; - ["ListNotificationsInputFilter"]: { - notificationType?: ResolverInputTypes["NotificationType"] | undefined | null, - sortDirection?: ResolverInputTypes["SortDirection"] | undefined | null, - isReaded?: boolean | undefined | null, - startDate?: ResolverInputTypes["Date"] | undefined | null, - endDate?: ResolverInputTypes["Date"] | undefined | null -}; ["SendStaticNotificationInput"]: { channelsId: Array, message: string, @@ -1150,135 +947,21 @@ editNotificationGroup?: [{ input: ResolverInputTypes["EditNotificationGroupInput title: string, body: string }; - ["ListChannelsResult"]: AliasType<{ - error?:ResolverInputTypes["GlobalError"], - result?:ResolverInputTypes["Channel"], - page?:ResolverInputTypes["PageOptionsResult"], - __typename?: boolean | `@${string}` -}>; - ["DeleteNotificationGroupResult"]: AliasType<{ - error?:ResolverInputTypes["GlobalError"], - result?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["SendStaticNotificationResult"]: AliasType<{ - error?:ResolverInputTypes["GlobalError"], - result?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["EditNotificationGroupResult"]: AliasType<{ - error?:ResolverInputTypes["GlobalError"], - result?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["EditNotificationGroupInput"]: { - name?: string | undefined | null, - users?: Array | undefined | null -}; - ["AddUserToGroupResult"]: AliasType<{ - result?:boolean | `@${string}`, - error?:ResolverInputTypes["GlobalError"], - __typename?: boolean | `@${string}` -}>; - ["RemoveUserToGroupResult"]: AliasType<{ - result?:boolean | `@${string}`, - error?:ResolverInputTypes["GlobalError"], - __typename?: boolean | `@${string}` -}>; - ["CreateNotificationGroupResult"]: AliasType<{ - error?:ResolverInputTypes["GlobalError"], - result?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["CreateNotificationGroupInput"]: { - name: string, - users: Array, - notificationType: ResolverInputTypes["NotificationType"] -}; - ["MarkNotificationReadedResult"]: AliasType<{ + ["SendNotificationResult"]: AliasType<{ error?:ResolverInputTypes["GlobalError"], result?:boolean | `@${string}`, __typename?: boolean | `@${string}` -}>; - ["MarkNotificationReadedInput"]: { - state: boolean, - notificationId: string -}; - ["ListNotificationGroupsResult"]: AliasType<{ - error?:ResolverInputTypes["GlobalError"], - notificationGroup?:ResolverInputTypes["NotificationGroup"], - __typename?: boolean | `@${string}` -}>; - ["ListNotificationsResult"]: AliasType<{ - error?:ResolverInputTypes["GlobalError"], - notification?:ResolverInputTypes["Notification"], - page?:ResolverInputTypes["PageOptionsResult"], - __typename?: boolean | `@${string}` }>; ["GlobalError"]: AliasType<{ message?:boolean | `@${string}`, path?:boolean | `@${string}`, __typename?: boolean | `@${string}` -}>; - ["Notification"]: AliasType<{ - body?:boolean | `@${string}`, - targetIds?:boolean | `@${string}`, - _id?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`, - isReaded?:boolean | `@${string}`, - notificationType?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["NotificationGroup"]: AliasType<{ - targets?:boolean | `@${string}`, - notificationType?:boolean | `@${string}`, - name?:boolean | `@${string}`, - _id?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["NotificationReaded"]: AliasType<{ - userId?:boolean | `@${string}`, - notificationId?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["Channel"]: AliasType<{ - channelId?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["PageOptionsInput"]: { - /** default limit is 10 */ - limit?: number | undefined | null, - /** count stating from 0 */ - page?: number | undefined | null -}; - ["PageOptionsResult"]: AliasType<{ - count?:boolean | `@${string}`, - hasNext?:boolean | `@${string}`, - __typename?: boolean | `@${string}` -}>; - ["DbEssentials"]:AliasType<{ - _id?:boolean | `@${string}`, - createdAt?:boolean | `@${string}`; - ['...on Notification']?: Omit; - ['...on NotificationGroup']?: Omit; - __typename?: boolean | `@${string}` }>; ["error"]:AliasType<{ error?:ResolverInputTypes["GlobalError"]; - ['...on AddUserToGroupResult']?: Omit; - ['...on RemoveUserToGroupResult']?: Omit; - ['...on CreateNotificationGroupResult']?: Omit; - ['...on ListNotificationGroupsResult']?: Omit; - ['...on ListNotificationsResult']?: Omit; + __typename?: boolean | `@${string}` }>; - ["NotificationTargetType"]:NotificationTargetType; - ["SortDirection"]:SortDirection; - ["NotificationType"]:NotificationType; - ["Date"]:unknown; ["schema"]: AliasType<{ query?:ResolverInputTypes["Query"], mutation?:ResolverInputTypes["Mutation"], @@ -1288,38 +971,23 @@ editNotificationGroup?: [{ input: ResolverInputTypes["EditNotificationGroupInput export type ModelTypes = { ["Query"]: { - userQuery?: ModelTypes["UserQuery"] | undefined, - publicQuery: ModelTypes["PublicQuery"] + userQuery?: ModelTypes["UserQuery"] | undefined }; ["UserQuery"]: { - listNotifications: ModelTypes["ListNotificationsResult"], - listChannels: ModelTypes["ListChannelsResult"], + getChannelAuthorization: ModelTypes["GetChannelAuthorizationResult"], generatePushNotificationToken: ModelTypes["GeneratePushNotificationTokenResult"] }; ["Mutation"]: { userMutation?: ModelTypes["UserMutation"] | undefined }; ["UserMutation"]: { - sendStaticNotification: ModelTypes["SendStaticNotificationResult"], - sendPushNotificationToUsers: ModelTypes["SendStaticNotificationResult"], - sendPushNotificationToInterests: ModelTypes["SendStaticNotificationResult"], - getChannelAuthorization: ModelTypes["GetChannelAuthorizationResult"], - getBeamAuthorization: ModelTypes["GetChannelAuthorizationResult"] -}; - ["PublicQuery"]: { - listNotificationGroups: ModelTypes["ListNotificationGroupsResult"] -}; - ["NotificationGroupOps"]: { - /** if we adding or removing users, duplicates will be reduced */ - addUserToGroup: ModelTypes["AddUserToGroupResult"], - removeUserFromGroup: ModelTypes["RemoveUserToGroupResult"], - editNotificationGroup?: ModelTypes["EditNotificationGroupResult"] | undefined, - deleteNotificationGroup: ModelTypes["DeleteNotificationGroupResult"] + sendStaticNotification: ModelTypes["SendNotificationResult"], + sendPushNotificationToUsers: ModelTypes["SendNotificationResult"], + sendPushNotificationToInterests: ModelTypes["SendNotificationResult"] }; ["GeneratePushNotificationTokenResult"]: { error?: ModelTypes["GlobalError"] | undefined, - token: string, - exp?: ModelTypes["Date"] | undefined + token: string }; ["GetChannelAuthorizationInput"]: { targetId: string, @@ -1330,34 +998,6 @@ export type ModelTypes = { auth?: string | undefined, channel_data?: string | undefined, shared_secret?: string | undefined -}; - ["ListChannelsInput"]: { - page?: ModelTypes["PageOptionsInput"] | undefined -}; - ["ListNotificationGroupsInput"]: { - page?: ModelTypes["PageOptionsInput"] | undefined, - filter?: ModelTypes["ListNotificationGroupsInputFilter"] | undefined -}; - ["ListNotificationGroupsInputFilter"]: { - /** this is a regex searching */ - name?: string | undefined, - /** if targetId is filled, this filter will return Notification groups that contains inside specific target */ - targetId?: string | undefined, - sortDirection?: ModelTypes["SortDirection"] | undefined, - notificationType?: ModelTypes["NotificationType"] | undefined, - startDate?: ModelTypes["Date"] | undefined, - endDate?: ModelTypes["Date"] | undefined -}; - ["ListNotificationsInput"]: { - filter?: ModelTypes["ListNotificationsInputFilter"] | undefined, - page?: ModelTypes["PageOptionsInput"] | undefined -}; - ["ListNotificationsInputFilter"]: { - notificationType?: ModelTypes["NotificationType"] | undefined, - sortDirection?: ModelTypes["SortDirection"] | undefined, - isReaded?: boolean | undefined, - startDate?: ModelTypes["Date"] | undefined, - endDate?: ModelTypes["Date"] | undefined }; ["SendStaticNotificationInput"]: { channelsId: Array, @@ -1372,105 +1012,15 @@ export type ModelTypes = { title: string, body: string }; - ["ListChannelsResult"]: { - error?: ModelTypes["GlobalError"] | undefined, - result?: Array | undefined, - page?: ModelTypes["PageOptionsResult"] | undefined -}; - ["DeleteNotificationGroupResult"]: { - error?: ModelTypes["GlobalError"] | undefined, - result?: boolean | undefined -}; - ["SendStaticNotificationResult"]: { - error?: ModelTypes["GlobalError"] | undefined, - result?: boolean | undefined -}; - ["EditNotificationGroupResult"]: { - error?: ModelTypes["GlobalError"] | undefined, - result?: boolean | undefined -}; - ["EditNotificationGroupInput"]: { - name?: string | undefined, - users?: Array | undefined -}; - ["AddUserToGroupResult"]: { - result?: boolean | undefined, - error?: ModelTypes["GlobalError"] | undefined -}; - ["RemoveUserToGroupResult"]: { - result?: boolean | undefined, - error?: ModelTypes["GlobalError"] | undefined -}; - ["CreateNotificationGroupResult"]: { + ["SendNotificationResult"]: { error?: ModelTypes["GlobalError"] | undefined, result?: boolean | undefined -}; - ["CreateNotificationGroupInput"]: { - name: string, - users: Array, - notificationType: ModelTypes["NotificationType"] -}; - ["MarkNotificationReadedResult"]: { - error?: ModelTypes["GlobalError"] | undefined, - result?: boolean | undefined -}; - ["MarkNotificationReadedInput"]: { - state: boolean, - notificationId: string -}; - ["ListNotificationGroupsResult"]: { - error?: ModelTypes["GlobalError"] | undefined, - notificationGroup?: Array | undefined -}; - ["ListNotificationsResult"]: { - error?: ModelTypes["GlobalError"] | undefined, - notification?: Array | undefined, - page?: ModelTypes["PageOptionsResult"] | undefined }; ["GlobalError"]: { message: string, path: string }; - ["Notification"]: { - body: string, - targetIds: Array, - _id: string, - createdAt: ModelTypes["Date"], - isReaded: boolean, - notificationType: ModelTypes["NotificationType"] -}; - ["NotificationGroup"]: { - targets: Array, - notificationType: ModelTypes["NotificationType"], - name: string, - _id: string, - createdAt: ModelTypes["Date"] -}; - ["NotificationReaded"]: { - userId: string, - notificationId: string, - createdAt: ModelTypes["Date"] -}; - ["Channel"]: { - channelId: string, - createdAt?: ModelTypes["Date"] | undefined -}; - ["PageOptionsInput"]: { - /** default limit is 10 */ - limit?: number | undefined, - /** count stating from 0 */ - page?: number | undefined -}; - ["PageOptionsResult"]: { - count?: number | undefined, - hasNext?: boolean | undefined -}; - ["DbEssentials"]: ModelTypes["Notification"] | ModelTypes["NotificationGroup"]; - ["error"]: ModelTypes["AddUserToGroupResult"] | ModelTypes["RemoveUserToGroupResult"] | ModelTypes["CreateNotificationGroupResult"] | ModelTypes["ListNotificationGroupsResult"] | ModelTypes["ListNotificationsResult"]; - ["NotificationTargetType"]:NotificationTargetType; - ["SortDirection"]:SortDirection; - ["NotificationType"]:NotificationType; - ["Date"]:any; + ["error"]: never; ["schema"]: { query?: ModelTypes["Query"] | undefined, mutation?: ModelTypes["Mutation"] | undefined @@ -1480,13 +1030,11 @@ export type ModelTypes = { export type GraphQLTypes = { ["Query"]: { __typename: "Query", - userQuery?: GraphQLTypes["UserQuery"] | undefined, - publicQuery: GraphQLTypes["PublicQuery"] + userQuery?: GraphQLTypes["UserQuery"] | undefined }; ["UserQuery"]: { __typename: "UserQuery", - listNotifications: GraphQLTypes["ListNotificationsResult"], - listChannels: GraphQLTypes["ListChannelsResult"], + getChannelAuthorization: GraphQLTypes["GetChannelAuthorizationResult"], generatePushNotificationToken: GraphQLTypes["GeneratePushNotificationTokenResult"] }; ["Mutation"]: { @@ -1495,29 +1043,14 @@ export type GraphQLTypes = { }; ["UserMutation"]: { __typename: "UserMutation", - sendStaticNotification: GraphQLTypes["SendStaticNotificationResult"], - sendPushNotificationToUsers: GraphQLTypes["SendStaticNotificationResult"], - sendPushNotificationToInterests: GraphQLTypes["SendStaticNotificationResult"], - getChannelAuthorization: GraphQLTypes["GetChannelAuthorizationResult"], - getBeamAuthorization: GraphQLTypes["GetChannelAuthorizationResult"] -}; - ["PublicQuery"]: { - __typename: "PublicQuery", - listNotificationGroups: GraphQLTypes["ListNotificationGroupsResult"] -}; - ["NotificationGroupOps"]: { - __typename: "NotificationGroupOps", - /** if we adding or removing users, duplicates will be reduced */ - addUserToGroup: GraphQLTypes["AddUserToGroupResult"], - removeUserFromGroup: GraphQLTypes["RemoveUserToGroupResult"], - editNotificationGroup?: GraphQLTypes["EditNotificationGroupResult"] | undefined, - deleteNotificationGroup: GraphQLTypes["DeleteNotificationGroupResult"] + sendStaticNotification: GraphQLTypes["SendNotificationResult"], + sendPushNotificationToUsers: GraphQLTypes["SendNotificationResult"], + sendPushNotificationToInterests: GraphQLTypes["SendNotificationResult"] }; ["GeneratePushNotificationTokenResult"]: { __typename: "GeneratePushNotificationTokenResult", error?: GraphQLTypes["GlobalError"] | undefined, - token: string, - exp?: GraphQLTypes["Date"] | undefined + token: string }; ["GetChannelAuthorizationInput"]: { targetId: string, @@ -1529,34 +1062,6 @@ export type GraphQLTypes = { auth?: string | undefined, channel_data?: string | undefined, shared_secret?: string | undefined -}; - ["ListChannelsInput"]: { - page?: GraphQLTypes["PageOptionsInput"] | undefined -}; - ["ListNotificationGroupsInput"]: { - page?: GraphQLTypes["PageOptionsInput"] | undefined, - filter?: GraphQLTypes["ListNotificationGroupsInputFilter"] | undefined -}; - ["ListNotificationGroupsInputFilter"]: { - /** this is a regex searching */ - name?: string | undefined, - /** if targetId is filled, this filter will return Notification groups that contains inside specific target */ - targetId?: string | undefined, - sortDirection?: GraphQLTypes["SortDirection"] | undefined, - notificationType?: GraphQLTypes["NotificationType"] | undefined, - startDate?: GraphQLTypes["Date"] | undefined, - endDate?: GraphQLTypes["Date"] | undefined -}; - ["ListNotificationsInput"]: { - filter?: GraphQLTypes["ListNotificationsInputFilter"] | undefined, - page?: GraphQLTypes["PageOptionsInput"] | undefined -}; - ["ListNotificationsInputFilter"]: { - notificationType?: GraphQLTypes["NotificationType"] | undefined, - sortDirection?: GraphQLTypes["SortDirection"] | undefined, - isReaded?: boolean | undefined, - startDate?: GraphQLTypes["Date"] | undefined, - endDate?: GraphQLTypes["Date"] | undefined }; ["SendStaticNotificationInput"]: { channelsId: Array, @@ -1571,165 +1076,27 @@ export type GraphQLTypes = { title: string, body: string }; - ["ListChannelsResult"]: { - __typename: "ListChannelsResult", - error?: GraphQLTypes["GlobalError"] | undefined, - result?: Array | undefined, - page?: GraphQLTypes["PageOptionsResult"] | undefined -}; - ["DeleteNotificationGroupResult"]: { - __typename: "DeleteNotificationGroupResult", - error?: GraphQLTypes["GlobalError"] | undefined, - result?: boolean | undefined -}; - ["SendStaticNotificationResult"]: { - __typename: "SendStaticNotificationResult", - error?: GraphQLTypes["GlobalError"] | undefined, - result?: boolean | undefined -}; - ["EditNotificationGroupResult"]: { - __typename: "EditNotificationGroupResult", + ["SendNotificationResult"]: { + __typename: "SendNotificationResult", error?: GraphQLTypes["GlobalError"] | undefined, result?: boolean | undefined -}; - ["EditNotificationGroupInput"]: { - name?: string | undefined, - users?: Array | undefined -}; - ["AddUserToGroupResult"]: { - __typename: "AddUserToGroupResult", - result?: boolean | undefined, - error?: GraphQLTypes["GlobalError"] | undefined -}; - ["RemoveUserToGroupResult"]: { - __typename: "RemoveUserToGroupResult", - result?: boolean | undefined, - error?: GraphQLTypes["GlobalError"] | undefined -}; - ["CreateNotificationGroupResult"]: { - __typename: "CreateNotificationGroupResult", - error?: GraphQLTypes["GlobalError"] | undefined, - result?: boolean | undefined -}; - ["CreateNotificationGroupInput"]: { - name: string, - users: Array, - notificationType: GraphQLTypes["NotificationType"] -}; - ["MarkNotificationReadedResult"]: { - __typename: "MarkNotificationReadedResult", - error?: GraphQLTypes["GlobalError"] | undefined, - result?: boolean | undefined -}; - ["MarkNotificationReadedInput"]: { - state: boolean, - notificationId: string -}; - ["ListNotificationGroupsResult"]: { - __typename: "ListNotificationGroupsResult", - error?: GraphQLTypes["GlobalError"] | undefined, - notificationGroup?: Array | undefined -}; - ["ListNotificationsResult"]: { - __typename: "ListNotificationsResult", - error?: GraphQLTypes["GlobalError"] | undefined, - notification?: Array | undefined, - page?: GraphQLTypes["PageOptionsResult"] | undefined }; ["GlobalError"]: { __typename: "GlobalError", message: string, path: string -}; - ["Notification"]: { - __typename: "Notification", - body: string, - targetIds: Array, - _id: string, - createdAt: GraphQLTypes["Date"], - isReaded: boolean, - notificationType: GraphQLTypes["NotificationType"] -}; - ["NotificationGroup"]: { - __typename: "NotificationGroup", - targets: Array, - notificationType: GraphQLTypes["NotificationType"], - name: string, - _id: string, - createdAt: GraphQLTypes["Date"] -}; - ["NotificationReaded"]: { - __typename: "NotificationReaded", - userId: string, - notificationId: string, - createdAt: GraphQLTypes["Date"] -}; - ["Channel"]: { - __typename: "Channel", - channelId: string, - createdAt?: GraphQLTypes["Date"] | undefined -}; - ["PageOptionsInput"]: { - /** default limit is 10 */ - limit?: number | undefined, - /** count stating from 0 */ - page?: number | undefined -}; - ["PageOptionsResult"]: { - __typename: "PageOptionsResult", - count?: number | undefined, - hasNext?: boolean | undefined -}; - ["DbEssentials"]: { - __typename:"Notification" | "NotificationGroup", - _id: string, - createdAt: GraphQLTypes["Date"] - ['...on Notification']: '__union' & GraphQLTypes["Notification"]; - ['...on NotificationGroup']: '__union' & GraphQLTypes["NotificationGroup"]; }; ["error"]: { - __typename:"AddUserToGroupResult" | "RemoveUserToGroupResult" | "CreateNotificationGroupResult" | "ListNotificationGroupsResult" | "ListNotificationsResult", + __typename:never, error?: GraphQLTypes["GlobalError"] | undefined - ['...on AddUserToGroupResult']: '__union' & GraphQLTypes["AddUserToGroupResult"]; - ['...on RemoveUserToGroupResult']: '__union' & GraphQLTypes["RemoveUserToGroupResult"]; - ['...on CreateNotificationGroupResult']: '__union' & GraphQLTypes["CreateNotificationGroupResult"]; - ['...on ListNotificationGroupsResult']: '__union' & GraphQLTypes["ListNotificationGroupsResult"]; - ['...on ListNotificationsResult']: '__union' & GraphQLTypes["ListNotificationsResult"]; -}; - ["NotificationTargetType"]: NotificationTargetType; - ["SortDirection"]: SortDirection; - ["NotificationType"]: NotificationType; - ["Date"]: "scalar" & { name: "Date" } - } -export const enum NotificationTargetType { - USER = "USER", - GROUP = "GROUP" -} -export const enum SortDirection { - asc = "asc", - desc = "desc" -} -export const enum NotificationType { - STATIC = "STATIC", - PUSH = "PUSH" + } + } + type ZEUS_VARIABLES = { ["GetChannelAuthorizationInput"]: ValueTypes["GetChannelAuthorizationInput"]; - ["ListChannelsInput"]: ValueTypes["ListChannelsInput"]; - ["ListNotificationGroupsInput"]: ValueTypes["ListNotificationGroupsInput"]; - ["ListNotificationGroupsInputFilter"]: ValueTypes["ListNotificationGroupsInputFilter"]; - ["ListNotificationsInput"]: ValueTypes["ListNotificationsInput"]; - ["ListNotificationsInputFilter"]: ValueTypes["ListNotificationsInputFilter"]; ["SendStaticNotificationInput"]: ValueTypes["SendStaticNotificationInput"]; ["SendPushNotificationInput"]: ValueTypes["SendPushNotificationInput"]; ["NotificationPayloadInput"]: ValueTypes["NotificationPayloadInput"]; - ["EditNotificationGroupInput"]: ValueTypes["EditNotificationGroupInput"]; - ["CreateNotificationGroupInput"]: ValueTypes["CreateNotificationGroupInput"]; - ["MarkNotificationReadedInput"]: ValueTypes["MarkNotificationReadedInput"]; - ["PageOptionsInput"]: ValueTypes["PageOptionsInput"]; - ["NotificationTargetType"]: ValueTypes["NotificationTargetType"]; - ["SortDirection"]: ValueTypes["SortDirection"]; - ["NotificationType"]: ValueTypes["NotificationType"]; - ["Date"]: ValueTypes["Date"]; } \ No newline at end of file diff --git a/packages/integrations/gei-notifications/stucco.json b/packages/integrations/gei-notifications/stucco.json index e1b2003..30cf27a 100644 --- a/packages/integrations/gei-notifications/stucco.json +++ b/packages/integrations/gei-notifications/stucco.json @@ -1,79 +1,44 @@ { - "resolvers": { - "Query.userQuery": { - "resolve": { - "name": "lib/Query/userQuery.js" - } - }, - "UserQuery.listNotifications": { - "resolve": { - "name": "lib/UserQuery/listNotifications" - } - }, - "Mutation.userMutation": { - "resolve": { - "name": "lib/Mutation/userMutation" - } - }, - "UserMutation.createNotificationGroup": { - "resolve": { - "name": "lib/UserMutation/createNotificationGroup.js" - } - }, - "UserQuery.listNotificationGroups": { - "resolve": { - "name": "lib/UserQuery/listNotificationGroups" - } - }, - "Query.publicQuery": { - "resolve": { - "name": "lib/Query/publicQuery" - } - }, - "PublicQuery.listNotificationGroups": { - "resolve": { - "name": "lib/PublicQuery/listNotificationGroups" - } - }, - "UserQuery.listChannels": { - "resolve": { - "name": "lib/UserQuery/listChannels" - } - }, - "UserMutation.sendStaticNotification": { - "resolve": { - "name": "lib/UserMutation/sendStaticNotification" - } - }, - "UserMutation.getChannelAuthorization": { - "resolve": { - "name": "lib/UserMutation/getChannelAuthorization" - } - }, - "UserMutation.sendPushNotification": { - "resolve": { - "name": "lib/UserMutation/sendPushNotification" - } - }, - "UserMutation.getBeamAuthorization": { - "resolve": { - "name": "lib/UserMutation/getBeamAuthorization" - } - }, - "UserMutation.sendPushNotificationToUsers": { - "resolve": { - "name": "lib/UserMutation/sendPushNotificationToUsers" - } - }, - "UserMutation.sendPushNotificationToInterests": { - "resolve": { - "name": "lib/UserMutation/sendPushNotificationToInterests" - } - } + "resolvers": { + "Query.userQuery": { + "resolve": { + "name": "lib/Query/userQuery.js" + } }, - "azureOpts": { - "": [ - "webhook/Mutation/webhook" - ] + "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.generatePushNotificationToken": { + "resolve": { + "name": "lib/UserQuery/generatePushNotificationToken" + } } -} \ No newline at end of file + } +} From c4e778e3d123b5791e02b9f7de0e6153649fb59c Mon Sep 17 00:00:00 2001 From: Pavel Brui Date: Wed, 11 Oct 2023 17:22:54 +0200 Subject: [PATCH 7/7] last --- .../gei-notifications/schema.graphql | 4 ++-- ...ionToken.ts => getPushNotificationToken.ts} | 2 +- ...GeneratePushNotificationTokenResultModel.ts | 3 --- .../GetPushNotificationTokenResultModel.ts | 3 +++ .../gei-notifications/src/models/index.ts | 4 ++-- .../gei-notifications/src/zeus/const.ts | 4 ++-- .../gei-notifications/src/zeus/index.ts | 18 +++++++++--------- .../integrations/gei-notifications/stucco.json | 4 ++-- 8 files changed, 21 insertions(+), 21 deletions(-) rename packages/integrations/gei-notifications/src/UserQuery/{generatePushNotificationToken.ts => getPushNotificationToken.ts} (81%) delete mode 100644 packages/integrations/gei-notifications/src/models/GeneratePushNotificationTokenResultModel.ts create mode 100644 packages/integrations/gei-notifications/src/models/GetPushNotificationTokenResultModel.ts diff --git a/packages/integrations/gei-notifications/schema.graphql b/packages/integrations/gei-notifications/schema.graphql index 1378828..8c36031 100644 --- a/packages/integrations/gei-notifications/schema.graphql +++ b/packages/integrations/gei-notifications/schema.graphql @@ -8,7 +8,7 @@ type UserQuery{ getChannelAuthorization( input: GetChannelAuthorizationInput! ): GetChannelAuthorizationResult! - generatePushNotificationToken: GeneratePushNotificationTokenResult! + getPushNotificationToken: GetPushNotificationTokenResult! } type Mutation{ @@ -29,7 +29,7 @@ type UserMutation{ ): SendNotificationResult! } -type GeneratePushNotificationTokenResult{ +type GetPushNotificationTokenResult{ error: GlobalError token: String! } diff --git a/packages/integrations/gei-notifications/src/UserQuery/generatePushNotificationToken.ts b/packages/integrations/gei-notifications/src/UserQuery/getPushNotificationToken.ts similarity index 81% rename from packages/integrations/gei-notifications/src/UserQuery/generatePushNotificationToken.ts rename to packages/integrations/gei-notifications/src/UserQuery/getPushNotificationToken.ts index 95fddf2..00d7d6b 100644 --- a/packages/integrations/gei-notifications/src/UserQuery/generatePushNotificationToken.ts +++ b/packages/integrations/gei-notifications/src/UserQuery/getPushNotificationToken.ts @@ -4,7 +4,7 @@ import { generateBeamToken } from '../utils/beam.js'; import { errMiddleware } from '../utils/middleware.js'; export const handler = async (input: FieldResolveInput) => - resolverFor('UserQuery', 'generatePushNotificationToken', async (args, { userId }) => + resolverFor('UserQuery', 'getPushNotificationToken', async (args, { userId }) => errMiddleware(async () => { return generateBeamToken(userId); }), diff --git a/packages/integrations/gei-notifications/src/models/GeneratePushNotificationTokenResultModel.ts b/packages/integrations/gei-notifications/src/models/GeneratePushNotificationTokenResultModel.ts deleted file mode 100644 index 983287e..0000000 --- a/packages/integrations/gei-notifications/src/models/GeneratePushNotificationTokenResultModel.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ModelTypes } from '../zeus/index.js'; - -export type GeneratePushNotificationTokenResultModel = ModelTypes['GeneratePushNotificationTokenResult']; \ 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/index.ts b/packages/integrations/gei-notifications/src/models/index.ts index 488c82e..d817ebc 100644 --- a/packages/integrations/gei-notifications/src/models/index.ts +++ b/packages/integrations/gei-notifications/src/models/index.ts @@ -2,7 +2,7 @@ import { QueryModel } from './QueryModel.js' import { UserQueryModel } from './UserQueryModel.js' import { MutationModel } from './MutationModel.js' import { UserMutationModel } from './UserMutationModel.js' -import { GeneratePushNotificationTokenResultModel } from './GeneratePushNotificationTokenResultModel.js' +import { GetPushNotificationTokenResultModel } from './GetPushNotificationTokenResultModel.js' import { GetChannelAuthorizationResultModel } from './GetChannelAuthorizationResultModel.js' import { SendNotificationResultModel } from './SendNotificationResultModel.js' import { GlobalErrorModel } from './GlobalErrorModel.js' @@ -13,7 +13,7 @@ export type Models = { UserQueryModel: UserQueryModel; MutationModel: MutationModel; UserMutationModel: UserMutationModel; - GeneratePushNotificationTokenResultModel: GeneratePushNotificationTokenResultModel; + GetPushNotificationTokenResultModel: GetPushNotificationTokenResultModel; GetChannelAuthorizationResultModel: GetChannelAuthorizationResultModel; SendNotificationResultModel: SendNotificationResultModel; GlobalErrorModel: GlobalErrorModel; diff --git a/packages/integrations/gei-notifications/src/zeus/const.ts b/packages/integrations/gei-notifications/src/zeus/const.ts index 2fcca1f..afff67d 100644 --- a/packages/integrations/gei-notifications/src/zeus/const.ts +++ b/packages/integrations/gei-notifications/src/zeus/const.ts @@ -47,7 +47,7 @@ export const ReturnTypes: Record = { }, UserQuery:{ getChannelAuthorization:"GetChannelAuthorizationResult", - generatePushNotificationToken:"GeneratePushNotificationTokenResult" + getPushNotificationToken:"GetPushNotificationTokenResult" }, Mutation:{ userMutation:"UserMutation" @@ -57,7 +57,7 @@ export const ReturnTypes: Record = { sendPushNotificationToUsers:"SendNotificationResult", sendPushNotificationToInterests:"SendNotificationResult" }, - GeneratePushNotificationTokenResult:{ + GetPushNotificationTokenResult:{ error:"GlobalError", token:"String" }, diff --git a/packages/integrations/gei-notifications/src/zeus/index.ts b/packages/integrations/gei-notifications/src/zeus/index.ts index f0393ce..3f206a3 100644 --- a/packages/integrations/gei-notifications/src/zeus/index.ts +++ b/packages/integrations/gei-notifications/src/zeus/index.ts @@ -839,7 +839,7 @@ userQuery?: [{ userId: string | Variable},ValueTypes["UserQuery"]], }>; ["UserQuery"]: AliasType<{ getChannelAuthorization?: [{ input: ValueTypes["GetChannelAuthorizationInput"] | Variable},ValueTypes["GetChannelAuthorizationResult"]], - generatePushNotificationToken?:ValueTypes["GeneratePushNotificationTokenResult"], + getPushNotificationToken?:ValueTypes["GetPushNotificationTokenResult"], __typename?: boolean | `@${string}` }>; ["Mutation"]: AliasType<{ @@ -852,7 +852,7 @@ sendPushNotificationToUsers?: [{ input: ValueTypes["SendPushNotificationInput"] sendPushNotificationToInterests?: [{ input: ValueTypes["SendPushNotificationInput"] | Variable},ValueTypes["SendNotificationResult"]], __typename?: boolean | `@${string}` }>; - ["GeneratePushNotificationTokenResult"]: AliasType<{ + ["GetPushNotificationTokenResult"]: AliasType<{ error?:ValueTypes["GlobalError"], token?:boolean | `@${string}`, __typename?: boolean | `@${string}` @@ -905,7 +905,7 @@ userQuery?: [{ userId: string},ResolverInputTypes["UserQuery"]], }>; ["UserQuery"]: AliasType<{ getChannelAuthorization?: [{ input: ResolverInputTypes["GetChannelAuthorizationInput"]},ResolverInputTypes["GetChannelAuthorizationResult"]], - generatePushNotificationToken?:ResolverInputTypes["GeneratePushNotificationTokenResult"], + getPushNotificationToken?:ResolverInputTypes["GetPushNotificationTokenResult"], __typename?: boolean | `@${string}` }>; ["Mutation"]: AliasType<{ @@ -918,7 +918,7 @@ sendPushNotificationToUsers?: [{ input: ResolverInputTypes["SendPushNotification sendPushNotificationToInterests?: [{ input: ResolverInputTypes["SendPushNotificationInput"]},ResolverInputTypes["SendNotificationResult"]], __typename?: boolean | `@${string}` }>; - ["GeneratePushNotificationTokenResult"]: AliasType<{ + ["GetPushNotificationTokenResult"]: AliasType<{ error?:ResolverInputTypes["GlobalError"], token?:boolean | `@${string}`, __typename?: boolean | `@${string}` @@ -975,7 +975,7 @@ export type ModelTypes = { }; ["UserQuery"]: { getChannelAuthorization: ModelTypes["GetChannelAuthorizationResult"], - generatePushNotificationToken: ModelTypes["GeneratePushNotificationTokenResult"] + getPushNotificationToken: ModelTypes["GetPushNotificationTokenResult"] }; ["Mutation"]: { userMutation?: ModelTypes["UserMutation"] | undefined @@ -985,7 +985,7 @@ export type ModelTypes = { sendPushNotificationToUsers: ModelTypes["SendNotificationResult"], sendPushNotificationToInterests: ModelTypes["SendNotificationResult"] }; - ["GeneratePushNotificationTokenResult"]: { + ["GetPushNotificationTokenResult"]: { error?: ModelTypes["GlobalError"] | undefined, token: string }; @@ -1035,7 +1035,7 @@ export type GraphQLTypes = { ["UserQuery"]: { __typename: "UserQuery", getChannelAuthorization: GraphQLTypes["GetChannelAuthorizationResult"], - generatePushNotificationToken: GraphQLTypes["GeneratePushNotificationTokenResult"] + getPushNotificationToken: GraphQLTypes["GetPushNotificationTokenResult"] }; ["Mutation"]: { __typename: "Mutation", @@ -1047,8 +1047,8 @@ export type GraphQLTypes = { sendPushNotificationToUsers: GraphQLTypes["SendNotificationResult"], sendPushNotificationToInterests: GraphQLTypes["SendNotificationResult"] }; - ["GeneratePushNotificationTokenResult"]: { - __typename: "GeneratePushNotificationTokenResult", + ["GetPushNotificationTokenResult"]: { + __typename: "GetPushNotificationTokenResult", error?: GraphQLTypes["GlobalError"] | undefined, token: string }; diff --git a/packages/integrations/gei-notifications/stucco.json b/packages/integrations/gei-notifications/stucco.json index 30cf27a..40803b7 100644 --- a/packages/integrations/gei-notifications/stucco.json +++ b/packages/integrations/gei-notifications/stucco.json @@ -35,9 +35,9 @@ "name": "lib/UserQuery/getChannelAuthorization" } }, - "UserQuery.generatePushNotificationToken": { + "UserQuery.getPushNotificationToken": { "resolve": { - "name": "lib/UserQuery/generatePushNotificationToken" + "name": "lib/UserQuery/getPushNotificationToken" } } }