diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 42846cf4da2..ae7a879180c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -394,7 +394,7 @@ importers: nodemon: 2.0.22 prettier: 2.8.7 sinon: 9.2.4 - ts-jest: 27.1.5_4aafjbpmnrfjtrzkyohogv4jce + ts-jest: 27.1.5_cnngzrja2umb46xxazlucyx2qu ts-loader: 9.4.2_rggdtlzfqxxwxudp3onsqdyocm ts-node: 10.9.1_wh2cnrlliuuxb2etxm2m3ttgna tsconfig-paths: 4.1.2 @@ -1152,6 +1152,84 @@ importers: stylelint-scss: 4.6.0_stylelint@15.10.1 typescript: 4.9.5 + enterprise/packages/auth: + specifiers: + '@nestjs/common': '>=9.3.x' + '@nestjs/jwt': '>=9' + '@nestjs/passport': 9.0.3 + '@novu/application-generic': ^0.19.0 + '@novu/dal': ^0.19.0 + '@novu/shared': ^0.19.0 + '@types/chai': ^4.2.11 + '@types/mocha': ^8.0.1 + '@types/node': ^14.6.0 + '@types/sinon': ^9.0.0 + chai: ^4.2.0 + cross-env: ^7.0.3 + mocha: ^8.1.1 + nodemon: ^2.0.3 + passport: 0.6.0 + passport-google-oauth: ^2.0.0 + passport-oauth2: ^1.6.1 + sinon: ^9.2.4 + ts-node: ~10.9.1 + typescript: 4.9.5 + dependencies: + '@nestjs/common': 10.2.2_atc7tu2sld2m3nk4hmwkqn6qde + '@nestjs/jwt': 10.1.0_@nestjs+common@10.2.2 + '@nestjs/passport': 9.0.3_kn4ljbedllcoqpuu4ifhphsdsu + '@novu/application-generic': link:../../../packages/application-generic + '@novu/dal': link:../../../libs/dal + '@novu/shared': link:../../../libs/shared + passport: 0.6.0 + passport-google-oauth: 2.0.0 + passport-oauth2: 1.7.0 + devDependencies: + '@types/chai': 4.3.4 + '@types/mocha': 8.2.3 + '@types/node': 14.18.42 + '@types/sinon': 9.0.11 + chai: 4.3.7 + cross-env: 7.0.3 + mocha: 8.4.0 + nodemon: 2.0.22 + sinon: 9.2.4 + ts-node: 10.9.1_wh2cnrlliuuxb2etxm2m3ttgna + typescript: 4.9.5 + + enterprise/packages/digest-schedule: + specifiers: + '@novu/shared': ^0.19.0 + '@types/chai': ^4.2.11 + '@types/mocha': ^8.0.1 + '@types/node': ^14.6.0 + '@types/sinon': ^9.0.0 + chai: ^4.2.0 + cross-env: ^7.0.3 + date-fns: ^2.29.2 + mocha: ^8.1.1 + nodemon: ^2.0.3 + rrule: ^2.7.2 + sinon: ^9.2.4 + ts-node: ~10.9.1 + typescript: 4.9.5 + dependencies: + '@novu/shared': link:../../../libs/shared + date-fns: 2.29.3 + rrule: 2.7.2 + devDependencies: + '@types/chai': 4.3.4 + '@types/mocha': 8.2.3 + '@types/node': 14.18.42 + '@types/sinon': 9.0.11 + chai: 4.3.7 + cross-env: 7.0.3 + mocha: 8.4.0 + nodemon: 2.0.22 + sinon: 9.2.4 + ts-node: 10.9.1_wh2cnrlliuuxb2etxm2m3ttgna + typescript: 4.9.5 + libs/dal: specifiers: '@aws-sdk/client-s3': ^3.382.0 @@ -15155,6 +15233,26 @@ packages: - webpack-cli dev: true + /@nestjs/common/10.2.2_atc7tu2sld2m3nk4hmwkqn6qde: + resolution: {integrity: sha512-TCOJK2K4FDT3GxFfURjngnjBewS/hizKNFSLBXtX4TTQm0dVQOtESnnVdP14sEiPM6suuWlrGnXW9UDqItGWiQ==} + peerDependencies: + class-transformer: '*' + class-validator: '*' + reflect-metadata: ^0.1.12 + rxjs: ^7.1.0 + peerDependenciesMeta: + class-transformer: + optional: true + class-validator: + optional: true + dependencies: + iterare: 1.2.1 + reflect-metadata: 0.1.13 + rxjs: 7.8.1 + tslib: 2.6.2 + uid: 2.0.2 + dev: false + /@nestjs/common/10.2.2_j3td4gnlgk75ora6o6suo62byy: resolution: {integrity: sha512-TCOJK2K4FDT3GxFfURjngnjBewS/hizKNFSLBXtX4TTQm0dVQOtESnnVdP14sEiPM6suuWlrGnXW9UDqItGWiQ==} peerDependencies: @@ -15382,6 +15480,16 @@ packages: passport: 0.6.0 dev: false + /@nestjs/passport/9.0.3_kn4ljbedllcoqpuu4ifhphsdsu: + resolution: {integrity: sha512-HplSJaimEAz1IOZEu+pdJHHJhQyBOPAYWXYHfAPQvRqWtw4FJF1VXl1Qtk9dcXQX1eKytDtH+qBzNQc19GWNEg==} + peerDependencies: + '@nestjs/common': ^8.0.0 || ^9.0.0 + passport: ^0.4.0 || ^0.5.0 || ^0.6.0 + dependencies: + '@nestjs/common': 10.2.2_atc7tu2sld2m3nk4hmwkqn6qde + passport: 0.6.0 + dev: false + /@nestjs/platform-express/10.2.2_h33h3l6i5mruhsbo3bha6vy2fi: resolution: {integrity: sha512-g5AeXgPQrVm62JOl9FXk0w3Tq1tD4f6ouGikLYs/Aahy0q/Z2HNP9NjXZYpqcjHrpafPYnc3bfBuUwedKW1oHg==} peerDependencies: @@ -26553,7 +26661,7 @@ packages: resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} /buffer-equal-constant-time/1.0.1: - resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} + resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=} dev: false /buffer-from/1.1.2: @@ -27808,7 +27916,7 @@ packages: resolution: {integrity: sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==} /concat-map/0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} /concat-stream/1.6.2: resolution: {integrity: sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==} @@ -31137,7 +31245,7 @@ packages: minimatch: 3.1.2 object.entries: 1.1.6 object.fromentries: 2.0.6 - semver: 6.3.0 + semver: 6.3.1 /eslint-plugin-prettier/4.2.1_6l7kvkw7pbq7sx3iiqo67pyozi: resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} @@ -37332,7 +37440,7 @@ packages: dev: false /json-buffer/3.0.0: - resolution: {integrity: sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==} + resolution: {integrity: sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=} /json-buffer/3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} @@ -41647,6 +41755,27 @@ packages: passport-oauth2: 1.7.0 dev: false + /passport-google-oauth/2.0.0: + resolution: {integrity: sha512-JKxZpBx6wBQXX1/a1s7VmdBgwOugohH+IxCy84aPTZNq/iIPX6u7Mqov1zY7MKRz3niFPol0KJz8zPLBoHKtYA==} + engines: {node: '>= 0.4.0'} + dependencies: + passport-google-oauth1: 1.0.0 + passport-google-oauth20: 2.0.0 + dev: false + + /passport-google-oauth1/1.0.0: + resolution: {integrity: sha512-qpCEhuflJgYrdg5zZIpAq/K3gTqa1CtHjbubsEsidIdpBPLkEVq6tB1I8kBNcH89RdSiYbnKpCBXAZXX/dtx1Q==} + dependencies: + passport-oauth1: 1.3.0 + dev: false + + /passport-google-oauth20/2.0.0: + resolution: {integrity: sha512-KSk6IJ15RoxuGq7D1UKK/8qKhNfzbLeLrG3gkLZ7p4A6DBCcv7xpyQwuXtWdpyR0+E0mwkpjY1VfPOhxQrKzdQ==} + engines: {node: '>= 0.4.0'} + dependencies: + passport-oauth2: 1.7.0 + dev: false + /passport-jwt/4.0.1: resolution: {integrity: sha512-UCKMDYhNuGOBE9/9Ycuoyh7vP6jpeTp/+sfMJl7nLff/t6dps+iaeE0hhNkKN8/HZHcJ7lCdOyDxHdDoxoSvdQ==} dependencies: @@ -41654,6 +41783,15 @@ packages: passport-strategy: 1.0.0 dev: false + /passport-oauth1/1.3.0: + resolution: {integrity: sha512-8T/nX4gwKTw0PjxP1xfD0QhrydQNakzeOpZ6M5Uqdgz9/a/Ag62RmJxnZQ4LkbdXGrRehQHIAHNAu11rCP46Sw==} + engines: {node: '>= 0.4.0'} + dependencies: + oauth: 0.9.15 + passport-strategy: 1.0.0 + utils-merge: 1.0.1 + dev: false + /passport-oauth2/1.7.0: resolution: {integrity: sha512-j2gf34szdTF2Onw3+76alNnaAExlUmHvkc7cL+cmaS5NzHzDP/BvFHJruueQ9XAeNOdpI+CH+PWid8RA7KCwAQ==} engines: {node: '>= 0.4.0'} @@ -41814,7 +41952,7 @@ packages: dev: false /pause/0.0.1: - resolution: {integrity: sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg==} + resolution: {integrity: sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10=} dev: false /pbkdf2/3.1.2: @@ -46101,7 +46239,7 @@ packages: jest-worker: 26.6.2 rollup: 2.79.1 serialize-javascript: 4.0.0 - terser: 5.19.3 + terser: 5.16.9 /rollup-plugin-terser/7.0.2_rollup@3.20.2: resolution: {integrity: sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==} @@ -48707,11 +48845,11 @@ packages: uglify-js: optional: true dependencies: - '@jridgewell/trace-mapping': 0.3.18 + '@jridgewell/trace-mapping': 0.3.19 jest-worker: 27.5.1 schema-utils: 3.1.2 serialize-javascript: 6.0.1 - terser: 5.16.9 + terser: 5.19.3 webpack: 5.76.1 dev: true @@ -48731,11 +48869,11 @@ packages: uglify-js: optional: true dependencies: - '@jridgewell/trace-mapping': 0.3.18 + '@jridgewell/trace-mapping': 0.3.19 jest-worker: 27.5.1 schema-utils: 3.1.2 serialize-javascript: 6.0.1 - terser: 5.16.9 + terser: 5.19.3 webpack: 5.78.0 /terser-webpack-plugin/5.3.9_webpack@5.82.1: @@ -48778,11 +48916,11 @@ packages: uglify-js: optional: true dependencies: - '@jridgewell/trace-mapping': 0.3.18 + '@jridgewell/trace-mapping': 0.3.19 jest-worker: 27.5.1 schema-utils: 3.1.2 serialize-javascript: 6.0.1 - terser: 5.16.9 + terser: 5.19.3 webpack: 5.88.2 /terser-webpack-plugin/5.3.9_zpsjxul5gtyjq5vu5uxru46xsq: @@ -48801,12 +48939,12 @@ packages: uglify-js: optional: true dependencies: - '@jridgewell/trace-mapping': 0.3.18 + '@jridgewell/trace-mapping': 0.3.19 '@swc/core': 1.3.49 jest-worker: 27.5.1 schema-utils: 3.1.2 serialize-javascript: 6.0.1 - terser: 5.16.9 + terser: 5.19.3 webpack: 5.88.2_@swc+core@1.3.49 dev: true @@ -49247,7 +49385,7 @@ packages: yargs-parser: 20.2.9 dev: true - /ts-jest/27.1.5_4aafjbpmnrfjtrzkyohogv4jce: + /ts-jest/27.1.5_cnngzrja2umb46xxazlucyx2qu: resolution: {integrity: sha512-Xv6jBQPoBEvBq/5i2TeSG9tt/nqkbpcurrEG1b+2yfBrcJelOZF9Ml6dmyMh7bcW9JyFbRYpR5rxROSlBLTZHA==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} hasBin: true @@ -49268,7 +49406,6 @@ packages: esbuild: optional: true dependencies: - '@babel/core': 7.22.11 bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 jest: 27.5.1_ts-node@10.9.1