Compare commits

..

18 Commits

Author SHA1 Message Date
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
32 changed files with 372 additions and 120 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"

55
.pnp.cjs generated
View File

@@ -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,7 +2732,7 @@ 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"]\
@@ -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,7 +2801,7 @@ 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"],\
@@ -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"],\
@@ -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"],\
@@ -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,7 +3229,7 @@ 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"],\
@@ -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": [\

Binary file not shown.

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.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

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/api-gateway",
"version": "1.6.2",
"version": "1.6.6",
"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,7 +40,7 @@
"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"
},
@@ -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,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [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

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/auth-server",
"version": "1.11.1",
"version": "1.11.5",
"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,7 +59,7 @@
"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",
@@ -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,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [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

View File

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

View File

@@ -3,6 +3,18 @@
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

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/domain-events",
"version": "2.39.1",
"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

@@ -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'

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.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

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/event-store",
"version": "1.1.2",
"version": "1.1.7",
"description": "Event Store Service",
"private": true,
"main": "dist/src/index.js",
@@ -35,7 +35,7 @@
"@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",

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

@@ -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.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

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/files-server",
"version": "1.5.1",
"version": "1.5.5",
"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,7 +48,7 @@
"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"
@@ -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,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [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

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/scheduler-server",
"version": "1.5.1",
"version": "1.5.4",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -33,7 +33,7 @@
"@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",

View File

@@ -3,6 +3,28 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [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

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/syncing-server",
"version": "1.6.1",
"version": "1.6.6",
"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,7 +48,7 @@
"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",
@@ -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

@@ -72,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,
}),
)
}
}
}

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,7 +1989,7 @@ __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
@@ -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,7 +2059,7 @@ __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
@@ -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
@@ -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,7 +2239,7 @@ __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
@@ -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
@@ -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,7 +2464,7 @@ __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
@@ -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
@@ -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"
@@ -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: