Compare commits

...

5 Commits

Author SHA1 Message Date
standardci
83085052f8 chore(release): publish new version
- @standardnotes/api-gateway@1.1.6
 - @standardnotes/auth-server@1.1.6
 - @standardnotes/files-server@1.1.6
 - @standardnotes/scheduler-server@1.2.0
 - @standardnotes/syncing-server@1.1.6
2022-06-27 07:25:46 +00:00
Karol Sójko
eda618d845 Merge branch 'main' of github.com:standardnotes/server 2022-06-27 09:25:04 +02:00
Karol Sójko
8d4280f4ca feat: add context for requesting email message 2022-06-27 09:24:43 +02:00
standardci
b57816bba4 chore(release): publish new version
- @standardnotes/api-gateway@1.1.5
 - @standardnotes/auth-server@1.1.5
 - @standardnotes/files-server@1.1.5
 - @standardnotes/scheduler-server@1.1.5
 - @standardnotes/syncing-server@1.1.5
2022-06-27 04:59:52 +00:00
Karol Sójko
b6db194a22 fix: upgrade sentry node sdk 2022-06-27 06:59:15 +02:00
30 changed files with 212 additions and 134 deletions

86
.pnp.cjs generated
View File

@@ -63,6 +63,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@lerna-lite/cli", "npm:1.5.1"],\
["@lerna-lite/list", "npm:1.5.1"],\
["@lerna-lite/run", "npm:1.5.1"],\
["@sentry/node", "npm:7.3.0"],\
["@types/jest", "npm:28.1.3"],\
["@types/newrelic", "npm:7.0.3"],\
["@types/node", "npm:18.0.0"],\
@@ -2305,52 +2306,39 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["@sentry/core", [\
["npm:6.19.7", {\
"packageLocation": "./.yarn/cache/@sentry-core-npm-6.19.7-4cbb62d040-d212e8ef07.zip/node_modules/@sentry/core/",\
["npm:7.3.0", {\
"packageLocation": "./.yarn/cache/@sentry-core-npm-7.3.0-8e7d2a21e6-1768568404.zip/node_modules/@sentry/core/",\
"packageDependencies": [\
["@sentry/core", "npm:6.19.7"],\
["@sentry/hub", "npm:6.19.7"],\
["@sentry/minimal", "npm:6.19.7"],\
["@sentry/types", "npm:6.19.7"],\
["@sentry/utils", "npm:6.19.7"],\
["@sentry/core", "npm:7.3.0"],\
["@sentry/hub", "npm:7.3.0"],\
["@sentry/types", "npm:7.3.0"],\
["@sentry/utils", "npm:7.3.0"],\
["tslib", "npm:1.14.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["@sentry/hub", [\
["npm:6.19.7", {\
"packageLocation": "./.yarn/cache/@sentry-hub-npm-6.19.7-6469362c23-10bb1c5cba.zip/node_modules/@sentry/hub/",\
["npm:7.3.0", {\
"packageLocation": "./.yarn/cache/@sentry-hub-npm-7.3.0-b5d4219eb3-a052a7c940.zip/node_modules/@sentry/hub/",\
"packageDependencies": [\
["@sentry/hub", "npm:6.19.7"],\
["@sentry/types", "npm:6.19.7"],\
["@sentry/utils", "npm:6.19.7"],\
["tslib", "npm:1.14.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["@sentry/minimal", [\
["npm:6.19.7", {\
"packageLocation": "./.yarn/cache/@sentry-minimal-npm-6.19.7-7527a9814c-9153ac426e.zip/node_modules/@sentry/minimal/",\
"packageDependencies": [\
["@sentry/minimal", "npm:6.19.7"],\
["@sentry/hub", "npm:6.19.7"],\
["@sentry/types", "npm:6.19.7"],\
["@sentry/hub", "npm:7.3.0"],\
["@sentry/types", "npm:7.3.0"],\
["@sentry/utils", "npm:7.3.0"],\
["tslib", "npm:1.14.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["@sentry/node", [\
["npm:6.19.7", {\
"packageLocation": "./.yarn/cache/@sentry-node-npm-6.19.7-edcd5da482-2293b0d1d1.zip/node_modules/@sentry/node/",\
["npm:7.3.0", {\
"packageLocation": "./.yarn/cache/@sentry-node-npm-7.3.0-ae73eb5bb5-a92c2d2d1b.zip/node_modules/@sentry/node/",\
"packageDependencies": [\
["@sentry/node", "npm:6.19.7"],\
["@sentry/core", "npm:6.19.7"],\
["@sentry/hub", "npm:6.19.7"],\
["@sentry/types", "npm:6.19.7"],\
["@sentry/utils", "npm:6.19.7"],\
["@sentry/node", "npm:7.3.0"],\
["@sentry/core", "npm:7.3.0"],\
["@sentry/hub", "npm:7.3.0"],\
["@sentry/types", "npm:7.3.0"],\
["@sentry/utils", "npm:7.3.0"],\
["cookie", "npm:0.4.2"],\
["https-proxy-agent", "npm:5.0.1"],\
["lru_map", "npm:0.3.3"],\
@@ -2360,20 +2348,20 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["@sentry/types", [\
["npm:6.19.7", {\
"packageLocation": "./.yarn/cache/@sentry-types-npm-6.19.7-f75535a9f4-f46ef74a33.zip/node_modules/@sentry/types/",\
["npm:7.3.0", {\
"packageLocation": "./.yarn/cache/@sentry-types-npm-7.3.0-4a455bc29c-3ddbc3c7eb.zip/node_modules/@sentry/types/",\
"packageDependencies": [\
["@sentry/types", "npm:6.19.7"]\
["@sentry/types", "npm:7.3.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["@sentry/utils", [\
["npm:6.19.7", {\
"packageLocation": "./.yarn/cache/@sentry-utils-npm-6.19.7-d61c6c8632-a000223b9c.zip/node_modules/@sentry/utils/",\
["npm:7.3.0", {\
"packageLocation": "./.yarn/cache/@sentry-utils-npm-7.3.0-a4b6fc94f0-2696b1bfad.zip/node_modules/@sentry/utils/",\
"packageDependencies": [\
["@sentry/utils", "npm:6.19.7"],\
["@sentry/types", "npm:6.19.7"],\
["@sentry/utils", "npm:7.3.0"],\
["@sentry/types", "npm:7.3.0"],\
["tslib", "npm:1.14.1"]\
],\
"linkType": "HARD"\
@@ -2456,7 +2444,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
"packageDependencies": [\
["@standardnotes/api-gateway", "workspace:packages/api-gateway"],\
["@newrelic/winston-enricher", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:2.1.2"],\
["@sentry/node", "npm:6.19.7"],\
["@sentry/node", "npm:7.3.0"],\
["@standardnotes/analytics", "npm:1.6.0"],\
["@standardnotes/auth", "npm:3.19.2"],\
["@standardnotes/domain-events", "npm:2.29.0"],\
@@ -2519,7 +2507,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
"packageDependencies": [\
["@standardnotes/auth-server", "workspace:packages/auth"],\
["@newrelic/winston-enricher", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:2.1.2"],\
["@sentry/node", "npm:6.19.7"],\
["@sentry/node", "npm:7.3.0"],\
["@standardnotes/analytics", "npm:1.6.0"],\
["@standardnotes/api", "npm:1.1.13"],\
["@standardnotes/auth", "npm:3.19.3"],\
@@ -2612,6 +2600,16 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@standardnotes/scheduler", "npm:1.1.1"]\
],\
"linkType": "HARD"\
}],\
["npm:2.32.3", {\
"packageLocation": "./.yarn/cache/@standardnotes-domain-events-npm-2.32.3-d2cd9a7c7f-ea6151d137.zip/node_modules/@standardnotes/domain-events/",\
"packageDependencies": [\
["@standardnotes/domain-events", "npm:2.32.3"],\
["@standardnotes/auth", "npm:3.19.3"],\
["@standardnotes/features", "npm:1.45.5"],\
["@standardnotes/scheduler", "npm:1.1.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["@standardnotes/domain-events-infra", [\
@@ -2672,7 +2670,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
"packageLocation": "./packages/files/",\
"packageDependencies": [\
["@standardnotes/files-server", "workspace:packages/files"],\
["@sentry/node", "npm:6.19.7"],\
["@sentry/node", "npm:7.3.0"],\
["@standardnotes/auth", "npm:3.19.3"],\
["@standardnotes/common", "npm:1.23.0"],\
["@standardnotes/config", "npm:2.0.1"],\
@@ -2770,8 +2768,9 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
"packageDependencies": [\
["@standardnotes/scheduler-server", "workspace:packages/scheduler"],\
["@newrelic/winston-enricher", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:2.1.2"],\
["@sentry/node", "npm:7.3.0"],\
["@standardnotes/common", "npm:1.23.0"],\
["@standardnotes/domain-events", "npm:2.32.2"],\
["@standardnotes/domain-events", "npm:2.32.3"],\
["@standardnotes/domain-events-infra", "npm:1.5.2"],\
["@standardnotes/scheduler", "npm:1.1.1"],\
["@standardnotes/time", "npm:1.7.0"],\
@@ -2807,6 +2806,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@lerna-lite/cli", "npm:1.5.1"],\
["@lerna-lite/list", "npm:1.5.1"],\
["@lerna-lite/run", "npm:1.5.1"],\
["@sentry/node", "npm:7.3.0"],\
["@types/jest", "npm:28.1.3"],\
["@types/newrelic", "npm:7.0.3"],\
["@types/node", "npm:18.0.0"],\
@@ -2869,7 +2869,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
"packageDependencies": [\
["@standardnotes/syncing-server", "workspace:packages/syncing-server"],\
["@newrelic/winston-enricher", "virtual:04783e12400851b8a3d76e71495851cc94959db6e62f04cb0a31190080629440b182d8c8eb4d7f2b04e281912f2783a5fd4d2c3c6ab68d38b7097246c93f4c19#npm:2.1.2"],\
["@sentry/node", "npm:6.19.7"],\
["@sentry/node", "npm:7.3.0"],\
["@standardnotes/analytics", "npm:1.6.0"],\
["@standardnotes/auth", "npm:3.19.3"],\
["@standardnotes/common", "npm:1.23.0"],\

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -59,6 +59,7 @@
},
"packageManager": "yarn@3.2.1",
"dependencies": {
"@sentry/node": "^7.3.0",
"newrelic": "^8.14.1"
}
}

View File

@@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.1.6](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.1.5...@standardnotes/api-gateway@1.1.6) (2022-06-27)
**Note:** Version bump only for package @standardnotes/api-gateway
## [1.1.5](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.1.4...@standardnotes/api-gateway@1.1.5) (2022-06-27)
### Bug Fixes
* upgrade sentry node sdk ([b6db194](https://github.com/standardnotes/api-gateway/commit/b6db194a22ff1d0afe96c291d545b408c0a5c373))
## [1.1.4](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.1.3...@standardnotes/api-gateway@1.1.4) (2022-06-24)
### Bug Fixes

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/api-gateway",
"version": "1.1.4",
"version": "1.1.6",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -21,7 +21,7 @@
},
"dependencies": {
"@newrelic/winston-enricher": "^2.1.0",
"@sentry/node": "^6.16.1",
"@sentry/node": "^7.3.0",
"@standardnotes/analytics": "^1.4.0",
"@standardnotes/auth": "3.19.2",
"@standardnotes/domain-events": "2.29.0",

View File

@@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.1.6](https://github.com/standardnotes/auth/compare/@standardnotes/auth-server@1.1.5...@standardnotes/auth-server@1.1.6) (2022-06-27)
**Note:** Version bump only for package @standardnotes/auth-server
## [1.1.5](https://github.com/standardnotes/auth/compare/@standardnotes/auth-server@1.1.4...@standardnotes/auth-server@1.1.5) (2022-06-27)
### Bug Fixes
* upgrade sentry node sdk ([b6db194](https://github.com/standardnotes/auth/commit/b6db194a22ff1d0afe96c291d545b408c0a5c373))
## [1.1.4](https://github.com/standardnotes/auth/compare/@standardnotes/auth-server@1.1.3...@standardnotes/auth-server@1.1.4) (2022-06-24)
### Bug Fixes

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/auth-server",
"version": "1.1.4",
"version": "1.1.6",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -29,7 +29,7 @@
},
"dependencies": {
"@newrelic/winston-enricher": "^2.1.0",
"@sentry/node": "^6.16.1",
"@sentry/node": "^7.3.0",
"@standardnotes/analytics": "^1.6.0",
"@standardnotes/api": "^1.1.13",
"@standardnotes/auth": "^3.19.2",

View File

@@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.1.6](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.1.5...@standardnotes/files-server@1.1.6) (2022-06-27)
**Note:** Version bump only for package @standardnotes/files-server
## [1.1.5](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.1.4...@standardnotes/files-server@1.1.5) (2022-06-27)
### Bug Fixes
* upgrade sentry node sdk ([b6db194](https://github.com/standardnotes/files/commit/b6db194a22ff1d0afe96c291d545b408c0a5c373))
## [1.1.4](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.1.3...@standardnotes/files-server@1.1.4) (2022-06-24)
### Bug Fixes

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/files-server",
"version": "1.1.4",
"version": "1.1.6",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -24,7 +24,7 @@
"worker": "yarn node dist/bin/worker.js"
},
"dependencies": {
"@sentry/node": "^6.16.1",
"@sentry/node": "^7.3.0",
"@standardnotes/auth": "^3.18.9",
"@standardnotes/common": "^1.19.4",
"@standardnotes/domain-events": "^2.27.6",

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.2.0](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.1.5...@standardnotes/scheduler-server@1.2.0) (2022-06-27)
### Features
* add context for requesting email message ([8d4280f](https://github.com/standardnotes/server/commit/8d4280f4ca57151198880620cc9504aba720f2f3))
## [1.1.5](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.1.4...@standardnotes/scheduler-server@1.1.5) (2022-06-27)
### Bug Fixes
* upgrade sentry node sdk ([b6db194](https://github.com/standardnotes/server/commit/b6db194a22ff1d0afe96c291d545b408c0a5c373))
## [1.1.4](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.1.3...@standardnotes/scheduler-server@1.1.4) (2022-06-24)
### Bug Fixes

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/scheduler-server",
"version": "1.1.4",
"version": "1.2.0",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -23,8 +23,9 @@
},
"dependencies": {
"@newrelic/winston-enricher": "^2.1.0",
"@sentry/node": "^7.3.0",
"@standardnotes/common": "^1.23.0",
"@standardnotes/domain-events": "^2.32.0",
"@standardnotes/domain-events": "^2.32.3",
"@standardnotes/domain-events-infra": "^1.5.0",
"@standardnotes/scheduler": "^1.1.0",
"@standardnotes/time": "^1.7.0",

View File

@@ -21,7 +21,13 @@ describe('DomainEventFactory', () => {
it('should create a EMAIL_MESSAGE_REQUESTED event', () => {
expect(
createFactory().createEmailMessageRequestedEvent('test@test.te', EmailMessageIdentifier.ENCOURAGE_EMAIL_BACKUPS),
createFactory().createEmailMessageRequestedEvent({
userEmail: 'test@test.te',
messageIdentifier: EmailMessageIdentifier.ENCOURAGE_EMAIL_BACKUPS,
context: {
foo: 'bar',
},
}),
).toEqual({
createdAt: expect.any(Date),
meta: {
@@ -34,6 +40,9 @@ describe('DomainEventFactory', () => {
payload: {
messageIdentifier: 'ENCOURAGE_EMAIL_BACKUPS',
userEmail: 'test@test.te',
context: {
foo: 'bar',
},
},
type: 'EMAIL_MESSAGE_REQUESTED',
})

View File

@@ -16,24 +16,22 @@ import { DomainEventFactoryInterface } from './DomainEventFactoryInterface'
export class DomainEventFactory implements DomainEventFactoryInterface {
constructor(@inject(TYPES.Timer) private timer: TimerInterface) {}
createEmailMessageRequestedEvent(
userEmail: string,
messageIdentifier: EmailMessageIdentifier,
): EmailMessageRequestedEvent {
createEmailMessageRequestedEvent(dto: {
userEmail: string
messageIdentifier: EmailMessageIdentifier
context: Record<string, unknown>
}): EmailMessageRequestedEvent {
return {
type: 'EMAIL_MESSAGE_REQUESTED',
createdAt: this.timer.getUTCDate(),
meta: {
correlation: {
userIdentifier: userEmail,
userIdentifier: dto.userEmail,
userIdentifierType: 'email',
},
origin: DomainEventService.Scheduler,
},
payload: {
messageIdentifier,
userEmail,
},
payload: dto,
}
}

View File

@@ -6,8 +6,9 @@ import { Predicate } from '../Predicate/Predicate'
export interface DomainEventFactoryInterface {
createPredicateVerificationRequestedEvent(job: Job, predicate: Predicate): PredicateVerificationRequestedEvent
createEmailMessageRequestedEvent(
userEmail: string,
messageIdentifier: EmailMessageIdentifier,
): EmailMessageRequestedEvent
createEmailMessageRequestedEvent(dto: {
userEmail: string
messageIdentifier: EmailMessageIdentifier
context: Record<string, unknown>
}): EmailMessageRequestedEvent
}

View File

@@ -67,10 +67,11 @@ describe('JobDoneInterpreter', () => {
await createInterpreter().interpret('1-2-3')
expect(domainEventFactory.createEmailMessageRequestedEvent).toHaveBeenCalledWith(
'test@test.te',
'ENCOURAGE_EMAIL_BACKUPS',
)
expect(domainEventFactory.createEmailMessageRequestedEvent).toHaveBeenCalledWith({
context: {},
messageIdentifier: 'ENCOURAGE_EMAIL_BACKUPS',
userEmail: 'test@test.te',
})
expect(domainEventPublisher.publish).toHaveBeenCalled()
})
@@ -110,6 +111,7 @@ describe('JobDoneInterpreter', () => {
name: JobName.ENCOURAGE_SUBSCRIPTION_PURCHASING,
userIdentifier: 'test@test.te',
userIdentifierType: 'email',
createdAt: 123,
} as jest.Mocked<Job>)
predicateRepository.findByJobUuid = jest
.fn()
@@ -119,10 +121,11 @@ describe('JobDoneInterpreter', () => {
await createInterpreter().interpret('1-2-3')
expect(domainEventFactory.createEmailMessageRequestedEvent).toHaveBeenCalledWith(
'test@test.te',
'ENCOURAGE_SUBSCRIPTION_PURCHASING',
)
expect(domainEventFactory.createEmailMessageRequestedEvent).toHaveBeenCalledWith({
context: { userRegisteredAt: 123 },
messageIdentifier: 'ENCOURAGE_SUBSCRIPTION_PURCHASING',
userEmail: 'test@test.te',
})
expect(domainEventPublisher.publish).toHaveBeenCalled()
})
@@ -148,7 +151,11 @@ describe('JobDoneInterpreter', () => {
await createInterpreter().interpret('1-2-3')
expect(domainEventFactory.createEmailMessageRequestedEvent).toHaveBeenCalledWith('test@test.te', 'EXIT_INTERVIEW')
expect(domainEventFactory.createEmailMessageRequestedEvent).toHaveBeenCalledWith({
context: {},
messageIdentifier: 'EXIT_INTERVIEW',
userEmail: 'test@test.te',
})
expect(domainEventPublisher.publish).toHaveBeenCalled()
})

View File

@@ -41,7 +41,7 @@ export class JobDoneInterpreter implements JobDoneInterpreterInterface {
return
case JobName.ENCOURAGE_SUBSCRIPTION_PURCHASING:
if (job.userIdentifierType === 'email') {
await this.requestSubscriptionPurchaseEncouragementEmail(job.userIdentifier)
await this.requestSubscriptionPurchaseEncouragementEmail(job)
}
return
case JobName.EXIT_INTERVIEW:
@@ -56,25 +56,33 @@ export class JobDoneInterpreter implements JobDoneInterpreterInterface {
private async requestEmailBackupEncouragementEmail(userEmail: string): Promise<void> {
await this.domainEventPublisher.publish(
this.domainEventFactory.createEmailMessageRequestedEvent(
this.domainEventFactory.createEmailMessageRequestedEvent({
userEmail,
EmailMessageIdentifier.ENCOURAGE_EMAIL_BACKUPS,
),
messageIdentifier: EmailMessageIdentifier.ENCOURAGE_EMAIL_BACKUPS,
context: {},
}),
)
}
private async requestSubscriptionPurchaseEncouragementEmail(userEmail: string): Promise<void> {
private async requestSubscriptionPurchaseEncouragementEmail(job: Job): Promise<void> {
await this.domainEventPublisher.publish(
this.domainEventFactory.createEmailMessageRequestedEvent(
userEmail,
EmailMessageIdentifier.ENCOURAGE_SUBSCRIPTION_PURCHASING,
),
this.domainEventFactory.createEmailMessageRequestedEvent({
userEmail: job.userIdentifier,
messageIdentifier: EmailMessageIdentifier.ENCOURAGE_SUBSCRIPTION_PURCHASING,
context: {
userRegisteredAt: job.createdAt,
},
}),
)
}
private async requestExitInterviewEmail(userEmail: string): Promise<void> {
await this.domainEventPublisher.publish(
this.domainEventFactory.createEmailMessageRequestedEvent(userEmail, EmailMessageIdentifier.EXIT_INTERVIEW),
this.domainEventFactory.createEmailMessageRequestedEvent({
userEmail,
messageIdentifier: EmailMessageIdentifier.EXIT_INTERVIEW,
context: {},
}),
)
}

View File

@@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.1.6](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.1.5...@standardnotes/syncing-server@1.1.6) (2022-06-27)
**Note:** Version bump only for package @standardnotes/syncing-server
## [1.1.5](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.1.4...@standardnotes/syncing-server@1.1.5) (2022-06-27)
### Bug Fixes
* upgrade sentry node sdk ([b6db194](https://github.com/standardnotes/syncing-server-js/commit/b6db194a22ff1d0afe96c291d545b408c0a5c373))
## [1.1.4](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.1.3...@standardnotes/syncing-server@1.1.4) (2022-06-24)
### Bug Fixes

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/syncing-server",
"version": "1.1.4",
"version": "1.1.6",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -23,7 +23,7 @@
},
"dependencies": {
"@newrelic/winston-enricher": "^2.1.0",
"@sentry/node": "^6.16.1",
"@sentry/node": "^7.3.0",
"@standardnotes/analytics": "^1.6.0",
"@standardnotes/auth": "^3.19.2",
"@standardnotes/common": "^1.22.0",

View File

@@ -1654,71 +1654,59 @@ __metadata:
languageName: node
linkType: hard
"@sentry/core@npm:6.19.7":
version: 6.19.7
resolution: "@sentry/core@npm:6.19.7"
"@sentry/core@npm:7.3.0":
version: 7.3.0
resolution: "@sentry/core@npm:7.3.0"
dependencies:
"@sentry/hub": 6.19.7
"@sentry/minimal": 6.19.7
"@sentry/types": 6.19.7
"@sentry/utils": 6.19.7
"@sentry/hub": 7.3.0
"@sentry/types": 7.3.0
"@sentry/utils": 7.3.0
tslib: ^1.9.3
checksum: d212e8ef07114549de4a93b81f8bfa217ca1550ca7a5eeaa611e5629faef78ff72663ce561ffa2cff48f3dc556745ef65177044f9965cdd3cbccf617cf3bf675
checksum: 176856840462c881c9a2ea30c5af209b64516201e5d7978e3960473fead6fc10547c556185e3636a2eade6856b293d190212825f9e8ff6fe4331fcdb0f6c213a
languageName: node
linkType: hard
"@sentry/hub@npm:6.19.7":
version: 6.19.7
resolution: "@sentry/hub@npm:6.19.7"
"@sentry/hub@npm:7.3.0":
version: 7.3.0
resolution: "@sentry/hub@npm:7.3.0"
dependencies:
"@sentry/types": 6.19.7
"@sentry/utils": 6.19.7
"@sentry/types": 7.3.0
"@sentry/utils": 7.3.0
tslib: ^1.9.3
checksum: 10bb1c5cba1b0f1e27a3dd0a186c22f94aeaf11c4662890ab07b2774f46f46af78d61e3ba71d76edc750a7b45af86edd032f35efecdb4efa2eaf551080ccdcb1
checksum: a052a7c940e1f6af16ca2c61f1e184eaf0d7874598ec4eae3a28c8b5ea6a19cf3b89106768aaeea19deb9816bdd316ec0218764c2e66cc92a87e2e404d6e0dd6
languageName: node
linkType: hard
"@sentry/minimal@npm:6.19.7":
version: 6.19.7
resolution: "@sentry/minimal@npm:6.19.7"
"@sentry/node@npm:^7.3.0":
version: 7.3.0
resolution: "@sentry/node@npm:7.3.0"
dependencies:
"@sentry/hub": 6.19.7
"@sentry/types": 6.19.7
tslib: ^1.9.3
checksum: 9153ac426ee056fc34c5be898f83d74ec08f559d69f544c5944ec05e584b62ed356b92d1a9b08993a7022ad42b5661c3d72881221adc19bee5fc1af3ad3864a8
languageName: node
linkType: hard
"@sentry/node@npm:^6.16.1":
version: 6.19.7
resolution: "@sentry/node@npm:6.19.7"
dependencies:
"@sentry/core": 6.19.7
"@sentry/hub": 6.19.7
"@sentry/types": 6.19.7
"@sentry/utils": 6.19.7
"@sentry/core": 7.3.0
"@sentry/hub": 7.3.0
"@sentry/types": 7.3.0
"@sentry/utils": 7.3.0
cookie: ^0.4.1
https-proxy-agent: ^5.0.0
lru_map: ^0.3.3
tslib: ^1.9.3
checksum: 2293b0d1d1f9fac3a451eb94f820bc27721c8edddd1f373064666ddd6272f0a4c70dbe58c6c4b3d3ccaf4578aab8f466d71ee69f6f6ff93521bbb02dfe829ce5
checksum: a92c2d2d1b05136b3c04f39cb87bf459519619c7e4f548f4e2a34145e868edd1ccdd505bcf5d3ff56872ea994530c263deb7ce4c498e9f4e39111c5fcacd342f
languageName: node
linkType: hard
"@sentry/types@npm:6.19.7":
version: 6.19.7
resolution: "@sentry/types@npm:6.19.7"
checksum: f46ef74a33376ad6ea9b128115515c58eb9369d89293c60aa67abca26b5d5d519aa4d0a736db56ae0d75ffd816643d62187018298523cbc2e6c2fb3a6b2a9035
"@sentry/types@npm:7.3.0":
version: 7.3.0
resolution: "@sentry/types@npm:7.3.0"
checksum: 3ddbc3c7ebf2caad2d97a4c7a25f14791f642f7baadfa3c02857e433c0377ca7e6df4d3fc7e197717f2d6f8fca876178d01c827b5c1b42adba92115c62e18daf
languageName: node
linkType: hard
"@sentry/utils@npm:6.19.7":
version: 6.19.7
resolution: "@sentry/utils@npm:6.19.7"
"@sentry/utils@npm:7.3.0":
version: 7.3.0
resolution: "@sentry/utils@npm:7.3.0"
dependencies:
"@sentry/types": 6.19.7
"@sentry/types": 7.3.0
tslib: ^1.9.3
checksum: a000223b9c646c64e3565e79cace1eeb75114342b768367c4dddd646476c215eb1bddfb70c63f05e2352d3bce2d7d415344e4757a001605d0e01ac74da5dd306
checksum: 2696b1bfad1ad2e8e2aa7dd822fb0546d680b06aa302c3a8e8c8da0577fb9938da094f3eda589b2a1c216e1c84a81a5119b30136fd013de9c3a4513aece55d05
languageName: node
linkType: hard
@@ -1773,7 +1761,7 @@ __metadata:
resolution: "@standardnotes/api-gateway@workspace:packages/api-gateway"
dependencies:
"@newrelic/winston-enricher": ^2.1.0
"@sentry/node": ^6.16.1
"@sentry/node": ^7.3.0
"@standardnotes/analytics": ^1.4.0
"@standardnotes/auth": 3.19.2
"@standardnotes/domain-events": 2.29.0
@@ -1828,7 +1816,7 @@ __metadata:
resolution: "@standardnotes/auth-server@workspace:packages/auth"
dependencies:
"@newrelic/winston-enricher": ^2.1.0
"@sentry/node": ^6.16.1
"@sentry/node": ^7.3.0
"@standardnotes/analytics": ^1.6.0
"@standardnotes/api": ^1.1.13
"@standardnotes/auth": ^3.19.2
@@ -1958,7 +1946,7 @@ __metadata:
languageName: node
linkType: hard
"@standardnotes/domain-events@npm:^2.27.6, @standardnotes/domain-events@npm:^2.29.0, @standardnotes/domain-events@npm:^2.31.1, @standardnotes/domain-events@npm:^2.32.0, @standardnotes/domain-events@npm:^2.32.2":
"@standardnotes/domain-events@npm:^2.27.6, @standardnotes/domain-events@npm:^2.29.0, @standardnotes/domain-events@npm:^2.31.1, @standardnotes/domain-events@npm:^2.32.2":
version: 2.32.2
resolution: "@standardnotes/domain-events@npm:2.32.2"
dependencies:
@@ -1969,6 +1957,17 @@ __metadata:
languageName: node
linkType: hard
"@standardnotes/domain-events@npm:^2.32.3":
version: 2.32.3
resolution: "@standardnotes/domain-events@npm:2.32.3"
dependencies:
"@standardnotes/auth": ^3.19.3
"@standardnotes/features": ^1.45.5
"@standardnotes/scheduler": ^1.1.1
checksum: ea6151d1376cbb99ffb9ff7bcc70c6e7e426c00176283ea29e8befc7719c0d67ca26f262239c8ac06147fc5d4546110cb7ee0995fd78c6ac353e6f43791554ac
languageName: node
linkType: hard
"@standardnotes/encryption@npm:^1.8.19":
version: 1.8.19
resolution: "@standardnotes/encryption@npm:1.8.19"
@@ -1994,7 +1993,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@standardnotes/files-server@workspace:packages/files"
dependencies:
"@sentry/node": ^6.16.1
"@sentry/node": ^7.3.0
"@standardnotes/auth": ^3.18.9
"@standardnotes/common": ^1.19.4
"@standardnotes/config": 2.0.1
@@ -2077,8 +2076,9 @@ __metadata:
resolution: "@standardnotes/scheduler-server@workspace:packages/scheduler"
dependencies:
"@newrelic/winston-enricher": ^2.1.0
"@sentry/node": ^7.3.0
"@standardnotes/common": ^1.23.0
"@standardnotes/domain-events": ^2.32.0
"@standardnotes/domain-events": ^2.32.3
"@standardnotes/domain-events-infra": ^1.5.0
"@standardnotes/scheduler": ^1.1.0
"@standardnotes/time": ^1.7.0
@@ -2121,6 +2121,7 @@ __metadata:
"@lerna-lite/cli": ^1.5.1
"@lerna-lite/list": ^1.5.1
"@lerna-lite/run": ^1.5.1
"@sentry/node": ^7.3.0
"@types/jest": ^28.1.3
"@types/newrelic": ^7.0.3
"@types/node": ^18.0.0
@@ -2175,7 +2176,7 @@ __metadata:
resolution: "@standardnotes/syncing-server@workspace:packages/syncing-server"
dependencies:
"@newrelic/winston-enricher": ^2.1.0
"@sentry/node": ^6.16.1
"@sentry/node": ^7.3.0
"@standardnotes/analytics": ^1.6.0
"@standardnotes/auth": ^3.19.2
"@standardnotes/common": ^1.22.0