Compare commits

..

24 Commits

Author SHA1 Message Date
standardci
7e343d25e6 chore(release): publish new version
- @standardnotes/api-gateway@1.6.7
 - @standardnotes/auth-server@1.11.6
 - @standardnotes/domain-events-infra@1.7.9
 - @standardnotes/event-store@1.1.8
 - @standardnotes/files-server@1.5.6
 - @standardnotes/scheduler-server@1.5.5
 - @standardnotes/syncing-server@1.6.7
2022-07-12 18:21:48 +00:00
Karol Sójko
a6a9ddbe46 chore(dep): upgrade winston 2022-07-12 20:20:16 +02:00
standardci
8d501660a4 chore(release): publish new version
- @standardnotes/api-gateway@1.6.6
 - @standardnotes/auth-server@1.11.5
 - @standardnotes/files-server@1.5.5
 - @standardnotes/syncing-server@1.6.6
2022-07-12 18:16:11 +00:00
Karol Sójko
bb877069d5 chore(dep): upgrade prettyjson 2022-07-12 20:14:33 +02:00
Karol Sójko
48d65cebf9 chore(dep): upgrade @types/prettyjson 2022-07-12 20:13:50 +02:00
standardci
9e7e8df387 chore(release): publish new version
- @standardnotes/api-gateway@1.6.5
 - @standardnotes/auth-server@1.11.4
 - @standardnotes/event-store@1.1.7
 - @standardnotes/files-server@1.5.4
 - @standardnotes/scheduler-server@1.5.4
 - @standardnotes/syncing-server@1.6.5
2022-07-12 13:26:46 +00:00
Karol Sójko
8a44970965 chore(dep): upgrade dotenv 2022-07-12 15:24:35 +02:00
standardci
e551541d57 chore(release): publish new version
- @standardnotes/api-gateway@1.6.4
 - @standardnotes/auth-server@1.11.3
 - @standardnotes/domain-events-infra@1.7.8
 - @standardnotes/domain-events@2.41.0
 - @standardnotes/event-store@1.1.6
 - @standardnotes/files-server@1.5.3
 - @standardnotes/scheduler-server@1.5.3
 - @standardnotes/syncing-server@1.6.4
2022-07-12 11:53:16 +00:00
Karol Sójko
a091e8d2bf feat(domain-events): add discount withdraw requested event 2022-07-12 13:51:16 +02:00
Karol Sójko
4d1e8b48e6 Revert "fix: dependabot configuration"
This reverts commit 13307cf7bd.
2022-07-12 13:39:05 +02:00
Karol Sójko
13307cf7bd fix: dependabot configuration 2022-07-12 13:37:08 +02:00
standardci
03548d17ff chore(release): publish new version
- @standardnotes/api-gateway@1.6.3
 - @standardnotes/auth-server@1.11.2
 - @standardnotes/domain-events-infra@1.7.7
 - @standardnotes/domain-events@2.40.0
 - @standardnotes/event-store@1.1.5
 - @standardnotes/files-server@1.5.2
 - @standardnotes/scheduler-server@1.5.2
 - @standardnotes/syncing-server@1.6.3
2022-07-12 11:21:33 +00:00
Karol Sójko
c3de4fcbab feat: add discount apply requested event 2022-07-12 13:19:23 +02:00
Karol Sójko
741262d031 fix: dependabot configuration 2022-07-12 11:17:00 +02:00
Karol Sójko
5a60961470 feat: create dependabot configuration 2022-07-12 09:55:47 +02:00
standardci
3462b60e47 chore(release): publish new version
- @standardnotes/event-store@1.1.4
 - @standardnotes/syncing-server@1.6.2
2022-07-11 10:57:54 +00:00
Karol Sójko
239d4ce4ec fix: add email backup tracing events 2022-07-11 12:56:25 +02:00
Karol Sójko
fc5cea11b5 fix: log errors on not being able to create a backup file 2022-07-11 12:56:25 +02:00
standardci
c54d721694 chore(release): publish new version
- @standardnotes/event-store@1.1.3
2022-07-11 10:41:44 +00:00
Karol Sójko
88d16d5392 fix: order of bindings 2022-07-11 12:39:29 +02:00
standardci
f1b22415c3 chore(release): publish new version
- @standardnotes/api-gateway@1.6.2
 - @standardnotes/auth-server@1.11.1
 - @standardnotes/domain-events-infra@1.7.6
 - @standardnotes/domain-events@2.39.1
 - @standardnotes/event-store@1.1.2
 - @standardnotes/files-server@1.5.1
 - @standardnotes/scheduler-server@1.5.1
 - @standardnotes/syncing-server@1.6.1
2022-07-11 10:36:50 +00:00
Karol Sójko
b4fae4b800 fix: remove unused MailBackupAttachmentTooBigEvent 2022-07-11 12:35:18 +02:00
standardci
b172177142 chore(release): publish new version
- @standardnotes/event-store@1.1.1
2022-07-11 10:17:12 +00:00
Karol Sójko
3fc11c5381 fix: optional migrations path 2022-07-11 12:15:40 +02:00
39 changed files with 467 additions and 254 deletions

142
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,142 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/analytics"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/api-gateway"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/auth"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/common"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/domain-events"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/domain-events-infra"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/event-store"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/files"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/predicates"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/scheduler"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/security"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/settings"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/sncrypto-node"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/syncing-server"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/time"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "moughxyz"
- "karolsojko"

83
.pnp.cjs generated
View File

@@ -2088,7 +2088,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/newrelic", "npm:7.0.3"],\
["@types/winston", null],\
["newrelic", "npm:8.14.1"],\
["winston", "npm:3.3.3"]\
["winston", "npm:3.8.1"]\
],\
"packagePeers": [\
"@types/newrelic",\
@@ -2714,12 +2714,12 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/jest", "npm:28.1.4"],\
["@types/jsonwebtoken", "npm:8.5.8"],\
["@types/newrelic", "npm:7.0.3"],\
["@types/prettyjson", "npm:0.0.29"],\
["@types/prettyjson", "npm:0.0.30"],\
["@typescript-eslint/eslint-plugin", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:5.30.5"],\
["aws-sdk", "npm:2.1168.0"],\
["axios", "npm:0.24.0"],\
["cors", "npm:2.8.5"],\
["dotenv", "npm:8.2.0"],\
["dotenv", "npm:16.0.1"],\
["eslint", "npm:8.19.0"],\
["eslint-plugin-prettier", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:4.2.1"],\
["express", "npm:4.17.1"],\
@@ -2732,10 +2732,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["newrelic", "npm:8.14.1"],\
["nodemon", "npm:2.0.19"],\
["npm-check-updates", "npm:14.1.1"],\
["prettyjson", "npm:1.2.1"],\
["prettyjson", "npm:1.2.5"],\
["reflect-metadata", "npm:0.1.13"],\
["ts-jest", "virtual:e1128e9ebb31076ea8e955c00397fd108ee8bf0fb2df3b2a603c510b7014a507cfa360bccf848efc1ec8c431656aa94c5ad08bcec32950bdf1278d01cd890e4f#npm:28.0.5"],\
["winston", "npm:3.3.3"]\
["winston", "npm:3.8.1"]\
],\
"linkType": "SOFT"\
}]\
@@ -2778,7 +2778,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/jest", "npm:28.1.4"],\
["@types/newrelic", "npm:7.0.3"],\
["@types/otplib", "npm:10.0.0"],\
["@types/prettyjson", "npm:0.0.29"],\
["@types/prettyjson", "npm:0.0.30"],\
["@types/ua-parser-js", "npm:0.7.36"],\
["@types/uuid", "npm:8.3.4"],\
["@typescript-eslint/eslint-plugin", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:5.30.5"],\
@@ -2788,7 +2788,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["cors", "npm:2.8.5"],\
["crypto-random-string", "npm:3.3.0"],\
["dayjs", "npm:1.11.3"],\
["dotenv", "npm:8.2.0"],\
["dotenv", "npm:16.0.1"],\
["eslint", "npm:8.19.0"],\
["eslint-plugin-prettier", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:4.2.1"],\
["express", "npm:4.17.1"],\
@@ -2801,13 +2801,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["nodemon", "npm:2.0.19"],\
["npm-check-updates", "npm:14.1.1"],\
["otplib", "npm:12.0.1"],\
["prettyjson", "npm:1.2.1"],\
["prettyjson", "npm:1.2.5"],\
["reflect-metadata", "npm:0.1.13"],\
["ts-jest", "virtual:e1128e9ebb31076ea8e955c00397fd108ee8bf0fb2df3b2a603c510b7014a507cfa360bccf848efc1ec8c431656aa94c5ad08bcec32950bdf1278d01cd890e4f#npm:28.0.5"],\
["typeorm", "virtual:31b5a94a105c89c9294c3d524a7f8929fe63ee5a2efadf21951ca4c0cfd2ecf02e8f4ef5a066bbda091f1e3a56e57c6749069a080618c96b22e51131a330fc4a#npm:0.3.7"],\
["ua-parser-js", "npm:1.0.2"],\
["uuid", "npm:8.3.2"],\
["winston", "npm:3.3.3"]\
["winston", "npm:3.8.1"]\
],\
"linkType": "SOFT"\
}]\
@@ -2914,7 +2914,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/nodemailer", "npm:6.4.4"],\
["@typescript-eslint/eslint-plugin", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:5.30.5"],\
["aws-sdk", "npm:2.1168.0"],\
["dotenv", "npm:8.2.0"],\
["dotenv", "npm:16.0.1"],\
["eslint", "npm:8.19.0"],\
["eslint-plugin-prettier", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:4.2.1"],\
["inversify", "npm:6.0.1"],\
@@ -2925,7 +2925,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["reflect-metadata", "npm:0.1.13"],\
["ts-jest", "virtual:e1128e9ebb31076ea8e955c00397fd108ee8bf0fb2df3b2a603c510b7014a507cfa360bccf848efc1ec8c431656aa94c5ad08bcec32950bdf1278d01cd890e4f#npm:28.0.5"],\
["typeorm", "virtual:31b5a94a105c89c9294c3d524a7f8929fe63ee5a2efadf21951ca4c0cfd2ecf02e8f4ef5a066bbda091f1e3a56e57c6749069a080618c96b22e51131a330fc4a#npm:0.3.7"],\
["winston", "npm:3.3.3"]\
["winston", "npm:3.8.1"]\
],\
"linkType": "SOFT"\
}]\
@@ -2963,14 +2963,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/jest", "npm:28.1.4"],\
["@types/jsonwebtoken", "npm:8.5.8"],\
["@types/newrelic", "npm:7.0.3"],\
["@types/prettyjson", "npm:0.0.29"],\
["@types/prettyjson", "npm:0.0.30"],\
["@types/uuid", "npm:8.3.4"],\
["@typescript-eslint/eslint-plugin", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:5.30.5"],\
["aws-sdk", "npm:2.1168.0"],\
["connect-busboy", "npm:1.0.0"],\
["cors", "npm:2.8.5"],\
["dayjs", "npm:1.11.3"],\
["dotenv", "npm:8.6.0"],\
["dotenv", "npm:16.0.1"],\
["eslint", "npm:8.19.0"],\
["eslint-plugin-prettier", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:4.2.1"],\
["express", "npm:4.18.1"],\
@@ -3068,7 +3068,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@typescript-eslint/eslint-plugin", "virtual:c66bf20e88479ada0172094776519a9f51acc4731d22079b60a295bcec7ea42d5545cbce58a77a50d932bf953298799135e99707486e343da6d99ba1d167bdbd#npm:5.30.5"],\
["aws-sdk", "npm:2.1168.0"],\
["dayjs", "npm:1.11.3"],\
["dotenv", "npm:8.2.0"],\
["dotenv", "npm:16.0.1"],\
["eslint-plugin-prettier", "virtual:c66bf20e88479ada0172094776519a9f51acc4731d22079b60a295bcec7ea42d5545cbce58a77a50d932bf953298799135e99707486e343da6d99ba1d167bdbd#npm:4.2.1"],\
["inversify", "npm:5.0.5"],\
["ioredis", "npm:5.1.0"],\
@@ -3079,7 +3079,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["reflect-metadata", "npm:0.1.13"],\
["ts-jest", "virtual:e1128e9ebb31076ea8e955c00397fd108ee8bf0fb2df3b2a603c510b7014a507cfa360bccf848efc1ec8c431656aa94c5ad08bcec32950bdf1278d01cd890e4f#npm:28.0.5"],\
["typeorm", "virtual:31b5a94a105c89c9294c3d524a7f8929fe63ee5a2efadf21951ca4c0cfd2ecf02e8f4ef5a066bbda091f1e3a56e57c6749069a080618c96b22e51131a330fc4a#npm:0.3.7"],\
["winston", "npm:3.3.3"]\
["winston", "npm:3.8.1"]\
],\
"linkType": "SOFT"\
}]\
@@ -3208,14 +3208,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@types/jest", "npm:28.1.4"],\
["@types/jsonwebtoken", "npm:8.5.8"],\
["@types/newrelic", "npm:7.0.3"],\
["@types/prettyjson", "npm:0.0.29"],\
["@types/prettyjson", "npm:0.0.30"],\
["@types/ua-parser-js", "npm:0.7.36"],\
["@types/uuid", "npm:8.3.4"],\
["@typescript-eslint/eslint-plugin", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:5.30.5"],\
["aws-sdk", "npm:2.1168.0"],\
["axios", "npm:0.24.0"],\
["cors", "npm:2.8.5"],\
["dotenv", "npm:8.2.0"],\
["dotenv", "npm:16.0.1"],\
["eslint", "npm:8.19.0"],\
["eslint-plugin-prettier", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:4.2.1"],\
["express", "npm:4.17.1"],\
@@ -3229,13 +3229,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["newrelic", "npm:8.14.1"],\
["nodemon", "npm:2.0.7"],\
["npm-check-updates", "npm:14.1.1"],\
["prettyjson", "npm:1.2.1"],\
["prettyjson", "npm:1.2.5"],\
["reflect-metadata", "npm:0.1.13"],\
["ts-jest", "virtual:e1128e9ebb31076ea8e955c00397fd108ee8bf0fb2df3b2a603c510b7014a507cfa360bccf848efc1ec8c431656aa94c5ad08bcec32950bdf1278d01cd890e4f#npm:28.0.5"],\
["typeorm", "virtual:31b5a94a105c89c9294c3d524a7f8929fe63ee5a2efadf21951ca4c0cfd2ecf02e8f4ef5a066bbda091f1e3a56e57c6749069a080618c96b22e51131a330fc4a#npm:0.3.7"],\
["ua-parser-js", "npm:1.0.2"],\
["uuid", "npm:8.3.2"],\
["winston", "npm:3.3.3"]\
["winston", "npm:3.8.1"]\
],\
"linkType": "SOFT"\
}]\
@@ -3692,10 +3692,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["@types/prettyjson", [\
["npm:0.0.29", {\
"packageLocation": "./.yarn/cache/@types-prettyjson-npm-0.0.29-26ae573a83-9ff6cb225d.zip/node_modules/@types/prettyjson/",\
["npm:0.0.30", {\
"packageLocation": "./.yarn/cache/@types-prettyjson-npm-0.0.30-6b15ac9c9f-bc012fe807.zip/node_modules/@types/prettyjson/",\
"packageDependencies": [\
["@types/prettyjson", "npm:0.0.29"]\
["@types/prettyjson", "npm:0.0.30"]\
],\
"linkType": "HARD"\
}]\
@@ -6271,20 +6271,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["dotenv", "npm:16.0.1"]\
],\
"linkType": "HARD"\
}],\
["npm:8.2.0", {\
"packageLocation": "./.yarn/cache/dotenv-npm-8.2.0-6b21df4d37-ad4c8e0df3.zip/node_modules/dotenv/",\
"packageDependencies": [\
["dotenv", "npm:8.2.0"]\
],\
"linkType": "HARD"\
}],\
["npm:8.6.0", {\
"packageLocation": "./.yarn/cache/dotenv-npm-8.6.0-2ce3e9f7bb-38e902c80b.zip/node_modules/dotenv/",\
"packageDependencies": [\
["dotenv", "npm:8.6.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["duplexer", [\
@@ -11715,15 +11701,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["prettyjson", [\
["npm:1.2.1", {\
"packageLocation": "./.yarn/cache/prettyjson-npm-1.2.1-045c44c3b6-4786cf7cb7.zip/node_modules/prettyjson/",\
"packageDependencies": [\
["prettyjson", "npm:1.2.1"],\
["colors", "npm:1.4.0"],\
["minimist", "npm:1.2.6"]\
],\
"linkType": "HARD"\
}],\
["npm:1.2.5", {\
"packageLocation": "./.yarn/cache/prettyjson-npm-1.2.5-a72b7bf823-e36e8ae4f7.zip/node_modules/prettyjson/",\
"packageDependencies": [\
@@ -14418,22 +14395,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["winston", [\
["npm:3.3.3", {\
"packageLocation": "./.yarn/cache/winston-npm-3.3.3-3fa4527b42-89a0a8db4e.zip/node_modules/winston/",\
"packageDependencies": [\
["winston", "npm:3.3.3"],\
["@dabh/diagnostics", "npm:2.0.3"],\
["async", "npm:3.2.4"],\
["is-stream", "npm:2.0.1"],\
["logform", "npm:2.4.2"],\
["one-time", "npm:1.0.0"],\
["readable-stream", "npm:3.6.0"],\
["stack-trace", "npm:0.0.10"],\
["triple-beam", "npm:1.3.0"],\
["winston-transport", "npm:4.5.0"]\
],\
"linkType": "HARD"\
}],\
["npm:3.8.1", {\
"packageLocation": "./.yarn/cache/winston-npm-3.8.1-b9bfc92cf2-14637222a4.zip/node_modules/winston/",\
"packageDependencies": [\

Binary file not shown.

View File

@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.6.7](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.6.6...@standardnotes/api-gateway@1.6.7) (2022-07-12)
**Note:** Version bump only for package @standardnotes/api-gateway
## [1.6.6](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.6.5...@standardnotes/api-gateway@1.6.6) (2022-07-12)
**Note:** Version bump only for package @standardnotes/api-gateway
## [1.6.5](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.6.4...@standardnotes/api-gateway@1.6.5) (2022-07-12)
**Note:** Version bump only for package @standardnotes/api-gateway
## [1.6.4](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.6.3...@standardnotes/api-gateway@1.6.4) (2022-07-12)
**Note:** Version bump only for package @standardnotes/api-gateway
## [1.6.3](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.6.2...@standardnotes/api-gateway@1.6.3) (2022-07-12)
**Note:** Version bump only for package @standardnotes/api-gateway
## [1.6.2](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.6.1...@standardnotes/api-gateway@1.6.2) (2022-07-11)
**Note:** Version bump only for package @standardnotes/api-gateway
## [1.6.1](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.6.0...@standardnotes/api-gateway@1.6.1) (2022-07-06)
**Note:** Version bump only for package @standardnotes/api-gateway

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/api-gateway",
"version": "1.6.1",
"version": "1.6.7",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -32,7 +32,7 @@
"aws-sdk": "^2.1160.0",
"axios": "0.24.0",
"cors": "2.8.5",
"dotenv": "8.2.0",
"dotenv": "^16.0.1",
"express": "4.17.1",
"helmet": "4.4.1",
"inversify": "^6.0.1",
@@ -40,9 +40,9 @@
"ioredis": "^5.0.6",
"jsonwebtoken": "8.5.1",
"newrelic": "^8.14.1",
"prettyjson": "1.2.1",
"prettyjson": "^1.2.5",
"reflect-metadata": "0.1.13",
"winston": "3.3.3"
"winston": "^3.8.1"
},
"devDependencies": {
"@types/cors": "^2.8.9",
@@ -51,7 +51,7 @@
"@types/jest": "^28.1.3",
"@types/jsonwebtoken": "^8.5.0",
"@types/newrelic": "^7.0.3",
"@types/prettyjson": "^0.0.29",
"@types/prettyjson": "^0.0.30",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"eslint": "^8.14.0",
"eslint-plugin-prettier": "^4.0.0",

View File

@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.11.6](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.11.5...@standardnotes/auth-server@1.11.6) (2022-07-12)
**Note:** Version bump only for package @standardnotes/auth-server
## [1.11.5](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.11.4...@standardnotes/auth-server@1.11.5) (2022-07-12)
**Note:** Version bump only for package @standardnotes/auth-server
## [1.11.4](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.11.3...@standardnotes/auth-server@1.11.4) (2022-07-12)
**Note:** Version bump only for package @standardnotes/auth-server
## [1.11.3](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.11.2...@standardnotes/auth-server@1.11.3) (2022-07-12)
**Note:** Version bump only for package @standardnotes/auth-server
## [1.11.2](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.11.1...@standardnotes/auth-server@1.11.2) (2022-07-12)
**Note:** Version bump only for package @standardnotes/auth-server
## [1.11.1](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.11.0...@standardnotes/auth-server@1.11.1) (2022-07-11)
**Note:** Version bump only for package @standardnotes/auth-server
# [1.11.0](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.10.0...@standardnotes/auth-server@1.11.0) (2022-07-11)
### Features

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/auth-server",
"version": "1.11.0",
"version": "1.11.6",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -51,7 +51,7 @@
"cors": "2.8.5",
"crypto-random-string": "3.3.0",
"dayjs": "^1.11.3",
"dotenv": "8.2.0",
"dotenv": "^16.0.1",
"express": "4.17.1",
"inversify": "^6.0.1",
"inversify-express-utils": "^6.4.3",
@@ -59,12 +59,12 @@
"mysql2": "^2.3.3",
"newrelic": "^8.14.1",
"otplib": "12.0.1",
"prettyjson": "1.2.1",
"prettyjson": "^1.2.5",
"reflect-metadata": "0.1.13",
"typeorm": "^0.3.6",
"ua-parser-js": "1.0.2",
"uuid": "8.3.2",
"winston": "3.3.3"
"winston": "^3.8.1"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.2",
@@ -74,7 +74,7 @@
"@types/jest": "^28.1.3",
"@types/newrelic": "^7.0.3",
"@types/otplib": "^10.0.0",
"@types/prettyjson": "^0.0.29",
"@types/prettyjson": "^0.0.30",
"@types/ua-parser-js": "^0.7.36",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.29.0",

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.7.9](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.7.8...@standardnotes/domain-events-infra@1.7.9) (2022-07-12)
**Note:** Version bump only for package @standardnotes/domain-events-infra
## [1.7.8](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.7.7...@standardnotes/domain-events-infra@1.7.8) (2022-07-12)
**Note:** Version bump only for package @standardnotes/domain-events-infra
## [1.7.7](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.7.6...@standardnotes/domain-events-infra@1.7.7) (2022-07-12)
**Note:** Version bump only for package @standardnotes/domain-events-infra
## [1.7.6](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.7.5...@standardnotes/domain-events-infra@1.7.6) (2022-07-11)
**Note:** Version bump only for package @standardnotes/domain-events-infra
## [1.7.5](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.7.4...@standardnotes/domain-events-infra@1.7.5) (2022-07-06)
**Note:** Version bump only for package @standardnotes/domain-events-infra

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/domain-events-infra",
"version": "1.7.5",
"version": "1.7.9",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -30,7 +30,7 @@
"newrelic": "^8.8.0",
"reflect-metadata": "^0.1.13",
"sqs-consumer": "^5.6.0",
"winston": "^3.6.0"
"winston": "^3.8.1"
},
"devDependencies": {
"@types/ioredis": "^4.28.8",

View File

@@ -3,6 +3,24 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.41.0](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.40.0...@standardnotes/domain-events@2.41.0) (2022-07-12)
### Features
* **domain-events:** add discount withdraw requested event ([a091e8d](https://github.com/standardnotes/server/commit/a091e8d2bf8f6ccaea995841f602205b95180181))
# [2.40.0](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.39.1...@standardnotes/domain-events@2.40.0) (2022-07-12)
### Features
* add discount apply requested event ([c3de4fc](https://github.com/standardnotes/server/commit/c3de4fcbab9f133a6a0659eadf9d9d719ca02a6a))
## [2.39.1](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.39.0...@standardnotes/domain-events@2.39.1) (2022-07-11)
### Bug Fixes
* remove unused MailBackupAttachmentTooBigEvent ([b4fae4b](https://github.com/standardnotes/server/commit/b4fae4b800fdef9bcfb28d8f332c5c0bbf576833))
# [2.39.0](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.38.0...@standardnotes/domain-events@2.39.0) (2022-07-06)
### Features

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/domain-events",
"version": "2.39.0",
"version": "2.41.0",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

View File

@@ -0,0 +1,7 @@
import { DomainEventInterface } from './DomainEventInterface'
import { DiscountApplyRequestedEventPayload } from './DiscountApplyRequestedEventPayload'
export interface DiscountApplyRequestedEvent extends DomainEventInterface {
type: 'DISCOUNT_APPLY_REQUESTED'
payload: DiscountApplyRequestedEventPayload
}

View File

@@ -0,0 +1,4 @@
export interface DiscountApplyRequestedEventPayload {
userEmail: string
discountCode: string
}

View File

@@ -0,0 +1,7 @@
import { DomainEventInterface } from './DomainEventInterface'
import { DiscountWithdrawRequestedEventPayload } from './DiscountWithdrawRequestedEventPayload'
export interface DiscountWithdrawRequestedEvent extends DomainEventInterface {
type: 'DISCOUNT_WITHDRAW_REQUESTED'
payload: DiscountWithdrawRequestedEventPayload
}

View File

@@ -0,0 +1,4 @@
export interface DiscountWithdrawRequestedEventPayload {
userEmail: string
discountCode: string
}

View File

@@ -1,8 +0,0 @@
import { DomainEventInterface } from './DomainEventInterface'
import { MailBackupAttachmentTooBigEventPayload } from './MailBackupAttachmentTooBigEventPayload'
export interface MailBackupAttachmentTooBigEvent extends DomainEventInterface {
type: 'MAIL_BACKUP_ATTACHMENT_TOO_BIG'
payload: MailBackupAttachmentTooBigEventPayload
}

View File

@@ -1,7 +0,0 @@
export interface MailBackupAttachmentTooBigEventPayload {
allowedSize: string
attachmentSize: string
muteEmailsSettingUuid: string
extensionSettingUuid?: string
email: string
}

View File

@@ -8,6 +8,10 @@ export * from './Event/CloudBackupRequestedEvent'
export * from './Event/CloudBackupRequestedEventPayload'
export * from './Event/DailyAnalyticsReportGeneratedEvent'
export * from './Event/DailyAnalyticsReportGeneratedEventPayload'
export * from './Event/DiscountApplyRequestedEvent'
export * from './Event/DiscountApplyRequestedEventPayload'
export * from './Event/DiscountWithdrawRequestedEvent'
export * from './Event/DiscountWithdrawRequestedEventPayload'
export * from './Event/DomainEventInterface'
export * from './Event/DomainEventService'
export * from './Event/DropboxBackupFailedEvent'
@@ -38,8 +42,6 @@ export * from './Event/ListedAccountDeletedEvent'
export * from './Event/ListedAccountDeletedEventPayload'
export * from './Event/ListedAccountRequestedEvent'
export * from './Event/ListedAccountRequestedEventPayload'
export * from './Event/MailBackupAttachmentTooBigEvent'
export * from './Event/MailBackupAttachmentTooBigEventPayload'
export * from './Event/OfflineSubscriptionTokenCreatedEvent'
export * from './Event/OfflineSubscriptionTokenCreatedEventPayload'
export * from './Event/OneDriveBackupFailedEvent'

View File

@@ -3,6 +3,44 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.1.8](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.1.7...@standardnotes/event-store@1.1.8) (2022-07-12)
**Note:** Version bump only for package @standardnotes/event-store
## [1.1.7](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.1.6...@standardnotes/event-store@1.1.7) (2022-07-12)
**Note:** Version bump only for package @standardnotes/event-store
## [1.1.6](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.1.5...@standardnotes/event-store@1.1.6) (2022-07-12)
**Note:** Version bump only for package @standardnotes/event-store
## [1.1.5](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.1.4...@standardnotes/event-store@1.1.5) (2022-07-12)
**Note:** Version bump only for package @standardnotes/event-store
## [1.1.4](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.1.3...@standardnotes/event-store@1.1.4) (2022-07-11)
### Bug Fixes
* add email backup tracing events ([239d4ce](https://github.com/standardnotes/server/commit/239d4ce4eca6a0c5dc0e1346829572a7240569cc))
## [1.1.3](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.1.2...@standardnotes/event-store@1.1.3) (2022-07-11)
### Bug Fixes
* order of bindings ([88d16d5](https://github.com/standardnotes/server/commit/88d16d53925761abed2cb8dc4c7aa5b4b5009357))
## [1.1.2](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.1.1...@standardnotes/event-store@1.1.2) (2022-07-11)
**Note:** Version bump only for package @standardnotes/event-store
## [1.1.1](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.1.0...@standardnotes/event-store@1.1.1) (2022-07-11)
### Bug Fixes
* optional migrations path ([3fc11c5](https://github.com/standardnotes/server/commit/3fc11c538111348723a92f838297ebd821566eb4))
# 1.1.0 (2022-07-11)
### Features

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/event-store",
"version": "1.1.0",
"version": "1.1.8",
"description": "Event Store Service",
"private": true,
"main": "dist/src/index.js",
@@ -35,13 +35,13 @@
"@standardnotes/domain-events-infra": "workspace:*",
"@standardnotes/time": "workspace:*",
"aws-sdk": "^2.1159.0",
"dotenv": "8.2.0",
"dotenv": "^16.0.1",
"inversify": "^6.0.1",
"ioredis": "^5.0.6",
"mysql2": "^2.3.3",
"newrelic": "^8.14.1",
"reflect-metadata": "0.1.13",
"typeorm": "^0.3.6",
"winston": "3.3.3"
"winston": "^3.8.1"
}
}

View File

@@ -48,6 +48,9 @@ export class ContainerConfigLoader {
container.bind(TYPES.SQS_AWS_REGION).toConstantValue(env.get('SQS_AWS_REGION'))
container.bind(TYPES.SQS_QUEUE_URL).toConstantValue(env.get('SQS_QUEUE_URL'))
// ORM
container.bind<Repository<Event>>(TYPES.ORMEventRepository).toConstantValue(AppDataSource.getRepository(Event))
// Handlers
container.bind<EventHandler>(TYPES.EventHandler).to(EventHandler)
@@ -70,11 +73,10 @@ export class ContainerConfigLoader {
['LISTED_ACCOUNT_DELETED', container.get(TYPES.EventHandler)],
['USER_SIGNED_IN', container.get(TYPES.EventHandler)],
['SHARED_SUBSCRIPTION_INVITATION_CREATED', container.get(TYPES.EventHandler)],
['EMAIL_BACKUP_ATTACHMENT_CREATED', container.get(TYPES.EventHandler)],
['EMAIL_BACKUP_REQUESTED', container.get(TYPES.EventHandler)],
])
// ORM
container.bind<Repository<Event>>(TYPES.ORMEventRepository).toConstantValue(AppDataSource.getRepository(Event))
container
.bind<DomainEventMessageHandlerInterface>(TYPES.DomainEventMessageHandler)
.toConstantValue(

View File

@@ -34,7 +34,7 @@ export const AppDataSource = new DataSource({
removeNodeErrorCount: 10,
},
entities: [Event],
migrations: [env.get('DB_MIGRATIONS_PATH')],
migrations: [env.get('DB_MIGRATIONS_PATH', true) ?? 'dist/migrations/*.js'],
migrationsRun: true,
logging: <LoggerOptions>env.get('DB_DEBUG_LEVEL'),
})

View File

@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.5.6](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.5.5...@standardnotes/files-server@1.5.6) (2022-07-12)
**Note:** Version bump only for package @standardnotes/files-server
## [1.5.5](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.5.4...@standardnotes/files-server@1.5.5) (2022-07-12)
**Note:** Version bump only for package @standardnotes/files-server
## [1.5.4](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.5.3...@standardnotes/files-server@1.5.4) (2022-07-12)
**Note:** Version bump only for package @standardnotes/files-server
## [1.5.3](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.5.2...@standardnotes/files-server@1.5.3) (2022-07-12)
**Note:** Version bump only for package @standardnotes/files-server
## [1.5.2](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.5.1...@standardnotes/files-server@1.5.2) (2022-07-12)
**Note:** Version bump only for package @standardnotes/files-server
## [1.5.1](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.5.0...@standardnotes/files-server@1.5.1) (2022-07-11)
**Note:** Version bump only for package @standardnotes/files-server
# [1.5.0](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.4.0...@standardnotes/files-server@1.5.0) (2022-07-06)
### Features

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/files-server",
"version": "1.5.0",
"version": "1.5.6",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -38,7 +38,7 @@
"connect-busboy": "^1.0.0",
"cors": "^2.8.5",
"dayjs": "^1.11.3",
"dotenv": "^8.2.0",
"dotenv": "^16.0.1",
"express": "^4.17.1",
"express-winston": "^4.0.5",
"helmet": "^4.3.1",
@@ -48,10 +48,10 @@
"jsonwebtoken": "^8.5.1",
"newrelic": "^8.14.1",
"nodemon": "^2.0.15",
"prettyjson": "^1.2.1",
"prettyjson": "^1.2.5",
"reflect-metadata": "^0.1.13",
"ts-node": "^10.4.0",
"winston": "^3.3.3"
"winston": "^3.8.1"
},
"devDependencies": {
"@standardnotes/config": "2.4.3",
@@ -62,7 +62,7 @@
"@types/jest": "^28.1.3",
"@types/jsonwebtoken": "^8.5.0",
"@types/newrelic": "^7.0.3",
"@types/prettyjson": "^0.0.29",
"@types/prettyjson": "^0.0.30",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"eslint": "^8.14.0",

View File

@@ -3,6 +3,26 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.5.5](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.5.4...@standardnotes/scheduler-server@1.5.5) (2022-07-12)
**Note:** Version bump only for package @standardnotes/scheduler-server
## [1.5.4](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.5.3...@standardnotes/scheduler-server@1.5.4) (2022-07-12)
**Note:** Version bump only for package @standardnotes/scheduler-server
## [1.5.3](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.5.2...@standardnotes/scheduler-server@1.5.3) (2022-07-12)
**Note:** Version bump only for package @standardnotes/scheduler-server
## [1.5.2](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.5.1...@standardnotes/scheduler-server@1.5.2) (2022-07-12)
**Note:** Version bump only for package @standardnotes/scheduler-server
## [1.5.1](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.5.0...@standardnotes/scheduler-server@1.5.1) (2022-07-11)
**Note:** Version bump only for package @standardnotes/scheduler-server
# [1.5.0](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.4.0...@standardnotes/scheduler-server@1.5.0) (2022-07-06)
### Features

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/scheduler-server",
"version": "1.5.0",
"version": "1.5.5",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -33,14 +33,14 @@
"@standardnotes/time": "workspace:*",
"aws-sdk": "^2.1158.0",
"dayjs": "^1.11.3",
"dotenv": "8.2.0",
"dotenv": "^16.0.1",
"inversify": "5.0.5",
"ioredis": "^5.0.6",
"mysql2": "^2.3.3",
"newrelic": "^8.14.1",
"reflect-metadata": "^0.1.13",
"typeorm": "^0.3.6",
"winston": "3.3.3"
"winston": "^3.8.1"
},
"devDependencies": {
"@types/ioredis": "^4.28.10",

View File

@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.6.7](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.6.6...@standardnotes/syncing-server@1.6.7) (2022-07-12)
**Note:** Version bump only for package @standardnotes/syncing-server
## [1.6.6](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.6.5...@standardnotes/syncing-server@1.6.6) (2022-07-12)
**Note:** Version bump only for package @standardnotes/syncing-server
## [1.6.5](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.6.4...@standardnotes/syncing-server@1.6.5) (2022-07-12)
**Note:** Version bump only for package @standardnotes/syncing-server
## [1.6.4](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.6.3...@standardnotes/syncing-server@1.6.4) (2022-07-12)
**Note:** Version bump only for package @standardnotes/syncing-server
## [1.6.3](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.6.2...@standardnotes/syncing-server@1.6.3) (2022-07-12)
**Note:** Version bump only for package @standardnotes/syncing-server
## [1.6.2](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.6.1...@standardnotes/syncing-server@1.6.2) (2022-07-11)
### Bug Fixes
* log errors on not being able to create a backup file ([fc5cea1](https://github.com/standardnotes/syncing-server-js/commit/fc5cea11b5401f83a0f8cf2b386abbff90bd18d7))
## [1.6.1](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.6.0...@standardnotes/syncing-server@1.6.1) (2022-07-11)
### Bug Fixes
* remove unused MailBackupAttachmentTooBigEvent ([b4fae4b](https://github.com/standardnotes/syncing-server-js/commit/b4fae4b800fdef9bcfb28d8f332c5c0bbf576833))
# [1.6.0](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.5.0...@standardnotes/syncing-server@1.6.0) (2022-07-06)
### Features

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/syncing-server",
"version": "1.6.0",
"version": "1.6.7",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -38,7 +38,7 @@
"aws-sdk": "^2.1159.0",
"axios": "0.24.0",
"cors": "2.8.5",
"dotenv": "8.2.0",
"dotenv": "^16.0.1",
"express": "4.17.1",
"helmet": "4.3.1",
"inversify": "^6.0.1",
@@ -48,12 +48,12 @@
"mysql2": "^2.3.3",
"newrelic": "^8.14.1",
"nodemon": "2.0.7",
"prettyjson": "1.2.1",
"prettyjson": "^1.2.5",
"reflect-metadata": "0.1.13",
"typeorm": "^0.3.6",
"ua-parser-js": "1.0.2",
"uuid": "8.3.2",
"winston": "3.3.3"
"winston": "^3.8.1"
},
"devDependencies": {
"@types/cors": "^2.8.9",
@@ -64,7 +64,7 @@
"@types/jest": "^28.1.3",
"@types/jsonwebtoken": "^8.5.0",
"@types/newrelic": "^7.0.3",
"@types/prettyjson": "^0.0.29",
"@types/prettyjson": "^0.0.30",
"@types/ua-parser-js": "^0.7.36",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.29.0",

View File

@@ -118,33 +118,6 @@ describe('DomainEventFactory', () => {
})
})
it('should create a MAIL_BACKUP_ATTACHMENT_TOO_BIG event', () => {
expect(
createFactory().createMailBackupAttachmentTooBigEvent({
allowedSize: '1000',
attachmentSize: '1500',
muteEmailsSettingUuid: '1-2-3',
email: 'test@test.com',
}),
).toEqual({
createdAt: expect.any(Date),
meta: {
correlation: {
userIdentifier: 'test@test.com',
userIdentifierType: 'email',
},
origin: 'syncing-server',
},
payload: {
email: 'test@test.com',
muteEmailsSettingUuid: '1-2-3',
allowedSize: '1000',
attachmentSize: '1500',
},
type: 'MAIL_BACKUP_ATTACHMENT_TOO_BIG',
})
})
it('should create a EMAIL_ARCHIVE_EXTENSION_SYNCED event', () => {
expect(createFactory().createEmailArchiveExtensionSyncedEvent('1-2-3', '2-3-4')).toEqual({
createdAt: expect.any(Date),

View File

@@ -6,7 +6,6 @@ import {
EmailBackupAttachmentCreatedEvent,
GoogleDriveBackupFailedEvent,
ItemsSyncedEvent,
MailBackupAttachmentTooBigEvent,
OneDriveBackupFailedEvent,
UserRegisteredEvent,
} from '@standardnotes/domain-events'
@@ -91,26 +90,6 @@ export class DomainEventFactory implements DomainEventFactoryInterface {
}
}
createMailBackupAttachmentTooBigEvent(dto: {
allowedSize: string
attachmentSize: string
muteEmailsSettingUuid: string
email: string
}): MailBackupAttachmentTooBigEvent {
return {
type: 'MAIL_BACKUP_ATTACHMENT_TOO_BIG',
createdAt: this.timer.getUTCDate(),
meta: {
correlation: {
userIdentifier: dto.email,
userIdentifierType: 'email',
},
origin: DomainEventService.SyncingServer,
},
payload: dto,
}
}
createItemsSyncedEvent(dto: {
userUuid: string
extensionUrl: string

View File

@@ -5,7 +5,6 @@ import {
EmailBackupAttachmentCreatedEvent,
GoogleDriveBackupFailedEvent,
ItemsSyncedEvent,
MailBackupAttachmentTooBigEvent,
OneDriveBackupFailedEvent,
UserRegisteredEvent,
} from '@standardnotes/domain-events'
@@ -15,12 +14,6 @@ export interface DomainEventFactoryInterface {
createDropboxBackupFailedEvent(muteCloudEmailsSettingUuid: string, email: string): DropboxBackupFailedEvent
createGoogleDriveBackupFailedEvent(muteCloudEmailsSettingUuid: string, email: string): GoogleDriveBackupFailedEvent
createOneDriveBackupFailedEvent(muteCloudEmailsSettingUuid: string, email: string): OneDriveBackupFailedEvent
createMailBackupAttachmentTooBigEvent(dto: {
allowedSize: string
attachmentSize: string
muteEmailsSettingUuid: string
email: string
}): MailBackupAttachmentTooBigEvent
createItemsSyncedEvent(dto: {
userUuid: string
extensionUrl: string

View File

@@ -4,7 +4,6 @@ import {
DomainEventPublisherInterface,
EmailBackupRequestedEvent,
EmailBackupAttachmentCreatedEvent,
MailBackupAttachmentTooBigEvent,
} from '@standardnotes/domain-events'
import { Logger } from 'winston'
import { AuthHttpServiceInterface } from '../Auth/AuthHttpServiceInterface'
@@ -66,9 +65,6 @@ describe('EmailBackupRequestedEventHandler', () => {
domainEventFactory.createEmailBackupAttachmentCreatedEvent = jest
.fn()
.mockReturnValue({} as jest.Mocked<EmailBackupAttachmentCreatedEvent>)
domainEventFactory.createMailBackupAttachmentTooBigEvent = jest
.fn()
.mockReturnValue({} as jest.Mocked<MailBackupAttachmentTooBigEvent>)
itemTransferCalculator = {} as jest.Mocked<ItemTransferCalculatorInterface>
itemTransferCalculator.computeItemUuidBundlesToFetch = jest.fn().mockReturnValue([['1-2-3']])
@@ -76,6 +72,7 @@ describe('EmailBackupRequestedEventHandler', () => {
logger = {} as jest.Mocked<Logger>
logger.debug = jest.fn()
logger.warn = jest.fn()
logger.error = jest.fn()
})
it('should inform that backup attachment for email was created', async () => {

View File

@@ -63,18 +63,22 @@ export class EmailBackupRequestedEventHandler implements DomainEventHandlerInter
this.logger.debug(`Data backed up into: ${backupFileName}`)
if (backupFileName.length !== 0) {
this.logger.debug('Publishing EMAIL_BACKUP_ATTACHMENT_CREATED event')
if (backupFileName.length === 0) {
this.logger.error(`Could not create a backup file for user ${event.payload.userUuid}`)
await this.domainEventPublisher.publish(
this.domainEventFactory.createEmailBackupAttachmentCreatedEvent({
backupFileName,
backupFileIndex: bundleIndex++,
backupFilesTotal: itemUuidBundles.length,
email: authParams.identifier as string,
}),
)
return
}
this.logger.debug('Publishing EMAIL_BACKUP_ATTACHMENT_CREATED event')
await this.domainEventPublisher.publish(
this.domainEventFactory.createEmailBackupAttachmentCreatedEvent({
backupFileName,
backupFileIndex: bundleIndex++,
backupFilesTotal: itemUuidBundles.length,
email: authParams.identifier as string,
}),
)
}
}
}

105
yarn.lock
View File

@@ -1971,12 +1971,12 @@ __metadata:
"@types/jest": ^28.1.3
"@types/jsonwebtoken": ^8.5.0
"@types/newrelic": ^7.0.3
"@types/prettyjson": ^0.0.29
"@types/prettyjson": ^0.0.30
"@typescript-eslint/eslint-plugin": ^5.29.0
aws-sdk: ^2.1160.0
axios: 0.24.0
cors: 2.8.5
dotenv: 8.2.0
dotenv: ^16.0.1
eslint: ^8.14.0
eslint-plugin-prettier: ^4.0.0
express: 4.17.1
@@ -1989,10 +1989,10 @@ __metadata:
newrelic: ^8.14.1
nodemon: ^2.0.16
npm-check-updates: ^14.1.1
prettyjson: 1.2.1
prettyjson: ^1.2.5
reflect-metadata: 0.1.13
ts-jest: ^28.0.1
winston: 3.3.3
winston: ^3.8.1
languageName: unknown
linkType: soft
@@ -2036,7 +2036,7 @@ __metadata:
"@types/jest": ^28.1.3
"@types/newrelic": ^7.0.3
"@types/otplib": ^10.0.0
"@types/prettyjson": ^0.0.29
"@types/prettyjson": ^0.0.30
"@types/ua-parser-js": ^0.7.36
"@types/uuid": ^8.3.0
"@typescript-eslint/eslint-plugin": ^5.29.0
@@ -2046,7 +2046,7 @@ __metadata:
cors: 2.8.5
crypto-random-string: 3.3.0
dayjs: ^1.11.3
dotenv: 8.2.0
dotenv: ^16.0.1
eslint: ^8.14.0
eslint-plugin-prettier: ^4.0.0
express: 4.17.1
@@ -2059,13 +2059,13 @@ __metadata:
nodemon: ^2.0.16
npm-check-updates: ^14.1.1
otplib: 12.0.1
prettyjson: 1.2.1
prettyjson: ^1.2.5
reflect-metadata: 0.1.13
ts-jest: ^28.0.1
typeorm: ^0.3.6
ua-parser-js: 1.0.2
uuid: 8.3.2
winston: 3.3.3
winston: ^3.8.1
languageName: unknown
linkType: soft
@@ -2123,7 +2123,7 @@ __metadata:
reflect-metadata: ^0.1.13
sqs-consumer: ^5.6.0
ts-jest: ^27.1.3
winston: ^3.6.0
winston: ^3.8.1
languageName: unknown
linkType: soft
@@ -2172,7 +2172,7 @@ __metadata:
"@types/nodemailer": ^6.4.1
"@typescript-eslint/eslint-plugin": ^5.30.5
aws-sdk: ^2.1159.0
dotenv: 8.2.0
dotenv: ^16.0.1
eslint: ^8.14.0
eslint-plugin-prettier: ^4.2.1
inversify: ^6.0.1
@@ -2183,7 +2183,7 @@ __metadata:
reflect-metadata: 0.1.13
ts-jest: ^28.0.1
typeorm: ^0.3.6
winston: 3.3.3
winston: ^3.8.1
languageName: unknown
linkType: soft
@@ -2218,14 +2218,14 @@ __metadata:
"@types/jest": ^28.1.3
"@types/jsonwebtoken": ^8.5.0
"@types/newrelic": ^7.0.3
"@types/prettyjson": ^0.0.29
"@types/prettyjson": ^0.0.30
"@types/uuid": ^8.3.0
"@typescript-eslint/eslint-plugin": ^5.29.0
aws-sdk: ^2.1158.0
connect-busboy: ^1.0.0
cors: ^2.8.5
dayjs: ^1.11.3
dotenv: ^8.2.0
dotenv: ^16.0.1
eslint: ^8.14.0
eslint-plugin-prettier: ^4.0.0
express: ^4.17.1
@@ -2239,12 +2239,12 @@ __metadata:
newrelic: ^8.14.1
nodemon: ^2.0.16
npm-check-updates: ^14.1.1
prettyjson: ^1.2.1
prettyjson: ^1.2.5
reflect-metadata: ^0.1.13
ts-jest: ^28.0.1
ts-node: ^10.4.0
uuid: ^8.3.2
winston: ^3.3.3
winston: ^3.8.1
languageName: unknown
linkType: soft
@@ -2316,7 +2316,7 @@ __metadata:
"@typescript-eslint/eslint-plugin": ^5.29.0
aws-sdk: ^2.1158.0
dayjs: ^1.11.3
dotenv: 8.2.0
dotenv: ^16.0.1
eslint-plugin-prettier: ^4.0.0
inversify: 5.0.5
ioredis: ^5.0.6
@@ -2327,7 +2327,7 @@ __metadata:
reflect-metadata: ^0.1.13
ts-jest: ^28.0.5
typeorm: ^0.3.6
winston: 3.3.3
winston: ^3.8.1
languageName: unknown
linkType: soft
@@ -2443,14 +2443,14 @@ __metadata:
"@types/jest": ^28.1.3
"@types/jsonwebtoken": ^8.5.0
"@types/newrelic": ^7.0.3
"@types/prettyjson": ^0.0.29
"@types/prettyjson": ^0.0.30
"@types/ua-parser-js": ^0.7.36
"@types/uuid": ^8.3.0
"@typescript-eslint/eslint-plugin": ^5.29.0
aws-sdk: ^2.1159.0
axios: 0.24.0
cors: 2.8.5
dotenv: 8.2.0
dotenv: ^16.0.1
eslint: ^8.14.0
eslint-plugin-prettier: ^4.0.0
express: 4.17.1
@@ -2464,13 +2464,13 @@ __metadata:
newrelic: ^8.14.1
nodemon: 2.0.7
npm-check-updates: ^14.1.1
prettyjson: 1.2.1
prettyjson: ^1.2.5
reflect-metadata: 0.1.13
ts-jest: ^28.0.1
typeorm: ^0.3.6
ua-parser-js: 1.0.2
uuid: 8.3.2
winston: 3.3.3
winston: ^3.8.1
languageName: unknown
linkType: soft
@@ -2863,10 +2863,10 @@ __metadata:
languageName: node
linkType: hard
"@types/prettyjson@npm:^0.0.29":
version: 0.0.29
resolution: "@types/prettyjson@npm:0.0.29"
checksum: 9ff6cb225de224b602fb5992e67ecdf47196becff3ff0c617c3df56ada3f2da5938650f944ccb70530911bb3cf51e27568fc41a4cb62e03ca95d428c7eb05c9a
"@types/prettyjson@npm:^0.0.30":
version: 0.0.30
resolution: "@types/prettyjson@npm:0.0.30"
checksum: bc012fe807b6c9386576ba33d3c4cce6ecd9900ef1cc98eb386f5cd90a1ad0818e94ee35b6debf955ebeaa692952a9e08dc533f75561bc50b505fecdb5a93318
languageName: node
linkType: hard
@@ -3377,7 +3377,7 @@ __metadata:
languageName: node
linkType: hard
"async@npm:^3.1.0, async@npm:^3.2.3, async@npm:^3.2.4":
"async@npm:^3.2.3, async@npm:^3.2.4":
version: 3.2.4
resolution: "async@npm:3.2.4"
checksum: 43d07459a4e1d09b84a20772414aa684ff4de085cbcaec6eea3c7a8f8150e8c62aa6cd4e699fe8ee93c3a5b324e777d34642531875a0817a35697522c1b02e89
@@ -4180,7 +4180,7 @@ __metadata:
languageName: node
linkType: hard
"colors@npm:1.4.0, colors@npm:^1.1.2":
"colors@npm:1.4.0":
version: 1.4.0
resolution: "colors@npm:1.4.0"
checksum: 98aa2c2418ad87dedf25d781be69dc5fc5908e279d9d30c34d8b702e586a0474605b3a189511482b9d5ed0d20c867515d22749537f7bc546256c6014f3ebdcec
@@ -4876,20 +4876,6 @@ __metadata:
languageName: node
linkType: hard
"dotenv@npm:8.2.0":
version: 8.2.0
resolution: "dotenv@npm:8.2.0"
checksum: ad4c8e0df3e24b4811c8e93377d048a10a9b213dcd9f062483b4a2d3168f08f10ec9c618c23f5639060d230ccdb174c08761479e9baa29610aa978e1ee66df76
languageName: node
linkType: hard
"dotenv@npm:^8.2.0":
version: 8.6.0
resolution: "dotenv@npm:8.6.0"
checksum: 38e902c80b0666ab59e9310a3d24ed237029a7ce34d976796349765ac96b8d769f6df19090f1f471b77a25ca391971efde8a1ea63bb83111bd8bec8e5cc9b2cd
languageName: node
linkType: hard
"duplexer3@npm:^0.1.4":
version: 0.1.4
resolution: "duplexer3@npm:0.1.4"
@@ -8241,7 +8227,7 @@ __metadata:
languageName: node
linkType: hard
"logform@npm:^2.2.0, logform@npm:^2.3.2, logform@npm:^2.4.0":
"logform@npm:^2.3.2, logform@npm:^2.4.0":
version: 2.4.2
resolution: "logform@npm:2.4.2"
dependencies:
@@ -9692,19 +9678,7 @@ __metadata:
languageName: node
linkType: hard
"prettyjson@npm:1.2.1":
version: 1.2.1
resolution: "prettyjson@npm:1.2.1"
dependencies:
colors: ^1.1.2
minimist: ^1.2.0
bin:
prettyjson: ./bin/prettyjson
checksum: 4786cf7cb74ddc2293eaf67587a5f21cee6aa6111a53c0b8ec8d5b77fe5d006b6ca09d2c72d52467772c86130fa95c1acfd3bfab0da0a854b8977ff7db04ebf2
languageName: node
linkType: hard
"prettyjson@npm:^1.2.1":
"prettyjson@npm:^1.2.5":
version: 1.2.5
resolution: "prettyjson@npm:1.2.5"
dependencies:
@@ -12025,7 +11999,7 @@ __metadata:
languageName: node
linkType: hard
"winston-transport@npm:^4.4.0, winston-transport@npm:^4.5.0":
"winston-transport@npm:^4.5.0":
version: 4.5.0
resolution: "winston-transport@npm:4.5.0"
dependencies:
@@ -12036,24 +12010,7 @@ __metadata:
languageName: node
linkType: hard
"winston@npm:3.3.3":
version: 3.3.3
resolution: "winston@npm:3.3.3"
dependencies:
"@dabh/diagnostics": ^2.0.2
async: ^3.1.0
is-stream: ^2.0.0
logform: ^2.2.0
one-time: ^1.0.0
readable-stream: ^3.4.0
stack-trace: 0.0.x
triple-beam: ^1.3.0
winston-transport: ^4.4.0
checksum: 89a0a8db4e577d0df2bee8af67a751663fb80aaa782750b5a0a151a6bf97074dd0eb7c81780e196197735b851c12ea9c176952128fc51fae07a8a5ddba82913a
languageName: node
linkType: hard
"winston@npm:^3.3.3, winston@npm:^3.6.0":
"winston@npm:^3.8.1":
version: 3.8.1
resolution: "winston@npm:3.8.1"
dependencies: