mirror of
https://github.com/standardnotes/server
synced 2026-05-08 12:57:34 -04:00
Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fb7029f5c1 | |||
| cc4b4f9bf8 | |||
| b048d6d7e3 | |||
| cffc1f442f | |||
| 91fe710741 | |||
| 5a1eb9fdac | |||
| a64ef6e750 | |||
| 47d2012b3d | |||
| 2c99cd2e21 | |||
| 435cd2f66a | |||
| 372b12dfc2 | |||
| 3a12f5c1c4 | |||
| 781de224b6 | |||
| eff09454c3 | |||
| 473feba6a8 | |||
| e9f0704fb0 | |||
| 8c99469d88 | |||
| 8ec1311dfc | |||
| e48cca6b45 |
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "all",
|
||||||
|
"printWidth": 120,
|
||||||
|
"semi": false
|
||||||
|
}
|
||||||
@@ -3,6 +3,34 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [2.12.13](https://github.com/standardnotes/server/compare/@standardnotes/analytics@2.12.12...@standardnotes/analytics@2.12.13) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/analytics
|
||||||
|
|
||||||
|
## [2.12.12](https://github.com/standardnotes/server/compare/@standardnotes/analytics@2.12.11...@standardnotes/analytics@2.12.12) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/analytics
|
||||||
|
|
||||||
|
## [2.12.11](https://github.com/standardnotes/server/compare/@standardnotes/analytics@2.12.10...@standardnotes/analytics@2.12.11) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/analytics
|
||||||
|
|
||||||
|
## [2.12.10](https://github.com/standardnotes/server/compare/@standardnotes/analytics@2.12.9...@standardnotes/analytics@2.12.10) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/analytics
|
||||||
|
|
||||||
|
## [2.12.9](https://github.com/standardnotes/server/compare/@standardnotes/analytics@2.12.8...@standardnotes/analytics@2.12.9) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/analytics
|
||||||
|
|
||||||
|
## [2.12.8](https://github.com/standardnotes/server/compare/@standardnotes/analytics@2.12.7...@standardnotes/analytics@2.12.8) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/analytics
|
||||||
|
|
||||||
|
## [2.12.7](https://github.com/standardnotes/server/compare/@standardnotes/analytics@2.12.6...@standardnotes/analytics@2.12.7) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/analytics
|
||||||
|
|
||||||
## [2.12.6](https://github.com/standardnotes/server/compare/@standardnotes/analytics@2.12.5...@standardnotes/analytics@2.12.6) (2022-12-07)
|
## [2.12.6](https://github.com/standardnotes/server/compare/@standardnotes/analytics@2.12.5...@standardnotes/analytics@2.12.6) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/analytics
|
**Note:** Version bump only for package @standardnotes/analytics
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/analytics",
|
"name": "@standardnotes/analytics",
|
||||||
"version": "2.12.6",
|
"version": "2.12.13",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,34 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.39.17](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.39.16...@standardnotes/api-gateway@1.39.17) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/api-gateway
|
||||||
|
|
||||||
|
## [1.39.16](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.39.15...@standardnotes/api-gateway@1.39.16) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/api-gateway
|
||||||
|
|
||||||
|
## [1.39.15](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.39.14...@standardnotes/api-gateway@1.39.15) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/api-gateway
|
||||||
|
|
||||||
|
## [1.39.14](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.39.13...@standardnotes/api-gateway@1.39.14) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/api-gateway
|
||||||
|
|
||||||
|
## [1.39.13](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.39.12...@standardnotes/api-gateway@1.39.13) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/api-gateway
|
||||||
|
|
||||||
|
## [1.39.12](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.39.11...@standardnotes/api-gateway@1.39.12) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/api-gateway
|
||||||
|
|
||||||
|
## [1.39.11](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.39.10...@standardnotes/api-gateway@1.39.11) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/api-gateway
|
||||||
|
|
||||||
## [1.39.10](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.39.9...@standardnotes/api-gateway@1.39.10) (2022-12-07)
|
## [1.39.10](https://github.com/standardnotes/api-gateway/compare/@standardnotes/api-gateway@1.39.9...@standardnotes/api-gateway@1.39.10) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/api-gateway
|
**Note:** Version bump only for package @standardnotes/api-gateway
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/api-gateway",
|
"name": "@standardnotes/api-gateway",
|
||||||
"version": "1.39.10",
|
"version": "1.39.17",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,40 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.64.7](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.64.6...@standardnotes/auth-server@1.64.7) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/auth-server
|
||||||
|
|
||||||
|
## [1.64.6](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.64.5...@standardnotes/auth-server@1.64.6) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/auth-server
|
||||||
|
|
||||||
|
## [1.64.5](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.64.4...@standardnotes/auth-server@1.64.5) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/auth-server
|
||||||
|
|
||||||
|
## [1.64.4](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.64.3...@standardnotes/auth-server@1.64.4) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/auth-server
|
||||||
|
|
||||||
|
## [1.64.3](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.64.2...@standardnotes/auth-server@1.64.3) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/auth-server
|
||||||
|
|
||||||
|
## [1.64.2](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.64.1...@standardnotes/auth-server@1.64.2) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/auth-server
|
||||||
|
|
||||||
|
## [1.64.1](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.64.0...@standardnotes/auth-server@1.64.1) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/auth-server
|
||||||
|
|
||||||
|
# [1.64.0](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.63.2...@standardnotes/auth-server@1.64.0) (2022-12-07)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **auth:** replace user signed in events with email requested ([e48cca6](https://github.com/standardnotes/server/commit/e48cca6b45b02876f2d82b726c1d2f124d90b587))
|
||||||
|
|
||||||
## [1.63.2](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.63.1...@standardnotes/auth-server@1.63.2) (2022-12-07)
|
## [1.63.2](https://github.com/standardnotes/server/compare/@standardnotes/auth-server@1.63.1...@standardnotes/auth-server@1.63.2) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/auth-server
|
**Note:** Version bump only for package @standardnotes/auth-server
|
||||||
|
|||||||
@@ -1,136 +0,0 @@
|
|||||||
import 'reflect-metadata'
|
|
||||||
|
|
||||||
import 'newrelic'
|
|
||||||
|
|
||||||
import { Stream } from 'stream'
|
|
||||||
|
|
||||||
import { Logger } from 'winston'
|
|
||||||
import * as dayjs from 'dayjs'
|
|
||||||
import * as utc from 'dayjs/plugin/utc'
|
|
||||||
|
|
||||||
import { UserRepositoryInterface } from '../src/Domain/User/UserRepositoryInterface'
|
|
||||||
import { ContainerConfigLoader } from '../src/Bootstrap/Container'
|
|
||||||
import TYPES from '../src/Bootstrap/Types'
|
|
||||||
import { Env } from '../src/Bootstrap/Env'
|
|
||||||
import { SettingServiceInterface } from '../src/Domain/Setting/SettingServiceInterface'
|
|
||||||
import { DomainEventFactoryInterface } from '../src/Domain/Event/DomainEventFactoryInterface'
|
|
||||||
import { UserSubscriptionRepositoryInterface } from '../src/Domain/Subscription/UserSubscriptionRepositoryInterface'
|
|
||||||
import { DomainEventPublisherInterface } from '@standardnotes/domain-events'
|
|
||||||
import { MuteMarketingEmailsOption, SettingName } from '@standardnotes/settings'
|
|
||||||
import { EmailMessageIdentifier } from '@standardnotes/common'
|
|
||||||
import { TimerInterface } from '@standardnotes/time'
|
|
||||||
|
|
||||||
const inputArgs = process.argv.slice(2)
|
|
||||||
const emailMessageIdentifier = inputArgs[0]
|
|
||||||
|
|
||||||
const sendEmailCampaign = async (
|
|
||||||
userRepository: UserRepositoryInterface,
|
|
||||||
settingService: SettingServiceInterface,
|
|
||||||
userSubscriptionRepository: UserSubscriptionRepositoryInterface,
|
|
||||||
timer: TimerInterface,
|
|
||||||
domainEventFactory: DomainEventFactoryInterface,
|
|
||||||
domainEventPublisher: DomainEventPublisherInterface,
|
|
||||||
logger: Logger,
|
|
||||||
): Promise<void> => {
|
|
||||||
const stream = await userRepository.streamAll()
|
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
stream
|
|
||||||
.pipe(
|
|
||||||
new Stream.Transform({
|
|
||||||
objectMode: true,
|
|
||||||
transform: async (rawUserData, _encoding, callback) => {
|
|
||||||
try {
|
|
||||||
const emailsMutedSetting = await settingService.findSettingWithDecryptedValue({
|
|
||||||
userUuid: rawUserData.user_uuid,
|
|
||||||
settingName: SettingName.MuteMarketingEmails,
|
|
||||||
})
|
|
||||||
|
|
||||||
if (emailsMutedSetting === null || emailsMutedSetting.value === MuteMarketingEmailsOption.Muted) {
|
|
||||||
callback()
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
let activeSubscription = false
|
|
||||||
let subscriptionPlanName = null
|
|
||||||
|
|
||||||
const userSubscription = await userSubscriptionRepository.findOneByUserUuid(rawUserData.user_uuid)
|
|
||||||
if (userSubscription !== null) {
|
|
||||||
activeSubscription =
|
|
||||||
!userSubscription.cancelled && userSubscription.endsAt > timer.getTimestampInMicroseconds()
|
|
||||||
subscriptionPlanName = userSubscription.planName
|
|
||||||
}
|
|
||||||
|
|
||||||
await domainEventPublisher.publish(
|
|
||||||
domainEventFactory.createEmailMessageRequestedEvent({
|
|
||||||
userEmail: rawUserData.user_email,
|
|
||||||
messageIdentifier: emailMessageIdentifier as EmailMessageIdentifier,
|
|
||||||
context: {
|
|
||||||
activeSubscription,
|
|
||||||
subscriptionPlanName,
|
|
||||||
muteEmailsSettingUuid: emailsMutedSetting.uuid,
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
} catch (error) {
|
|
||||||
logger.error(`Could not process user ${rawUserData.user_uuid}: ${(error as Error).message}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
callback()
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
.on('finish', resolve)
|
|
||||||
.on('error', reject)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const container = new ContainerConfigLoader()
|
|
||||||
void container.load().then((container) => {
|
|
||||||
dayjs.extend(utc)
|
|
||||||
|
|
||||||
const env: Env = new Env()
|
|
||||||
env.load()
|
|
||||||
|
|
||||||
const logger: Logger = container.get(TYPES.Logger)
|
|
||||||
|
|
||||||
logger.info(`Starting email campaign for email ${emailMessageIdentifier} ...`)
|
|
||||||
|
|
||||||
if (!emailMessageIdentifier) {
|
|
||||||
logger.error('No email message identifier passed as argument. Skipped sending.')
|
|
||||||
|
|
||||||
process.exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
const userRepository: UserRepositoryInterface = container.get(TYPES.UserRepository)
|
|
||||||
const settingService: SettingServiceInterface = container.get(TYPES.SettingService)
|
|
||||||
const userSubscriptionRepository: UserSubscriptionRepositoryInterface = container.get(
|
|
||||||
TYPES.UserSubscriptionRepository,
|
|
||||||
)
|
|
||||||
const timer: TimerInterface = container.get(TYPES.Timer)
|
|
||||||
const domainEventFactory: DomainEventFactoryInterface = container.get(TYPES.DomainEventFactory)
|
|
||||||
const domainEventPublisher: DomainEventPublisherInterface = container.get(TYPES.DomainEventPublisher)
|
|
||||||
|
|
||||||
Promise.resolve(
|
|
||||||
sendEmailCampaign(
|
|
||||||
userRepository,
|
|
||||||
settingService,
|
|
||||||
userSubscriptionRepository,
|
|
||||||
timer,
|
|
||||||
domainEventFactory,
|
|
||||||
domainEventPublisher,
|
|
||||||
logger,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.then(() => {
|
|
||||||
logger.info(`${emailMessageIdentifier} email campaign complete.`)
|
|
||||||
|
|
||||||
process.exit(0)
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
logger.error(`Could not finish ${emailMessageIdentifier} email campaign: ${error.message}`)
|
|
||||||
|
|
||||||
process.exit(1)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
@@ -50,12 +50,6 @@ case "$COMMAND" in
|
|||||||
yarn workspace @standardnotes/auth-server daily-backup:one_drive
|
yarn workspace @standardnotes/auth-server daily-backup:one_drive
|
||||||
;;
|
;;
|
||||||
|
|
||||||
'email-campaign' )
|
|
||||||
echo "[Docker] Starting Email Campaign Sending..."
|
|
||||||
MESSAGE_IDENTIFIER=$1 && shift 1
|
|
||||||
yarn workspace @standardnotes/auth-server email-campaign $MESSAGE_IDENTIFIER
|
|
||||||
;;
|
|
||||||
|
|
||||||
'content-recalculation' )
|
'content-recalculation' )
|
||||||
echo "[Docker] Starting Content Size Recalculation..."
|
echo "[Docker] Starting Content Size Recalculation..."
|
||||||
yarn workspace @standardnotes/auth-server content-recalculation
|
yarn workspace @standardnotes/auth-server content-recalculation
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ module.exports = {
|
|||||||
transform: {
|
transform: {
|
||||||
...tsjPreset.transform,
|
...tsjPreset.transform,
|
||||||
},
|
},
|
||||||
coveragePathIgnorePatterns: ['/Bootstrap/', '/InversifyExpressUtils/', '/Infra/', '/Projection/'],
|
coveragePathIgnorePatterns: ['/Bootstrap/', '/InversifyExpressUtils/', '/Infra/', '/Projection/', '/Domain/Email/'],
|
||||||
setupFilesAfterEnv: ['./test-setup.ts'],
|
setupFilesAfterEnv: ['./test-setup.ts'],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/auth-server",
|
"name": "@standardnotes/auth-server",
|
||||||
"version": "1.63.2",
|
"version": "1.64.7",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
@@ -26,7 +26,6 @@
|
|||||||
"daily-backup:one_drive": "yarn node dist/bin/backup.js one_drive daily",
|
"daily-backup:one_drive": "yarn node dist/bin/backup.js one_drive daily",
|
||||||
"weekly-backup:email": "yarn node dist/bin/backup.js email weekly",
|
"weekly-backup:email": "yarn node dist/bin/backup.js email weekly",
|
||||||
"content-recalculation": "yarn node dist/bin/content.js",
|
"content-recalculation": "yarn node dist/bin/content.js",
|
||||||
"email-campaign": "yarn node dist/bin/email.js",
|
|
||||||
"typeorm": "typeorm-ts-node-commonjs",
|
"typeorm": "typeorm-ts-node-commonjs",
|
||||||
"upgrade:snjs": "yarn ncu -u '@standardnotes/*'"
|
"upgrade:snjs": "yarn ncu -u '@standardnotes/*'"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { html } from './user-signed-in.html'
|
||||||
|
|
||||||
|
export function getSubject(email: string): string {
|
||||||
|
return `New sign-in for ${email}`
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getBody(email: string, device: string, browser: string, date: Date): string {
|
||||||
|
const body = html
|
||||||
|
|
||||||
|
return body
|
||||||
|
.replace('%%EMAIL%%', email)
|
||||||
|
.replace('%%DEVICE%%', device)
|
||||||
|
.replace('%%BROWSER%%', browser)
|
||||||
|
.replace('%%TIME_AND_DATE%%', date.toLocaleString())
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
export const html = `
|
||||||
|
<div>
|
||||||
|
<p>Hello,</p>
|
||||||
|
<p>We've detected a new sign-in to your account %%EMAIL%%.</p>
|
||||||
|
<p>
|
||||||
|
<b>Device type</b>: %%DEVICE%%
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>Browser type</b>: %%BROWSER%%
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>Time and date</strong>: <span>%%TIME_AND_DATE%%</span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
If this was you, please disregard this email. If it wasn't you, we recommend signing into your account and
|
||||||
|
changing your password immediately, then enabling 2FA.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Thanks,
|
||||||
|
<br />
|
||||||
|
SN
|
||||||
|
</p>
|
||||||
|
<a href="https://app.standardnotes.com/?settings=account">Mute these emails</a>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
|
|
||||||
import { EmailMessageIdentifier, JSONString, ProtocolVersion, RoleName, Uuid } from '@standardnotes/common'
|
import { JSONString, ProtocolVersion, RoleName, Uuid } from '@standardnotes/common'
|
||||||
import {
|
import {
|
||||||
AccountDeletionRequestedEvent,
|
AccountDeletionRequestedEvent,
|
||||||
UserEmailChangedEvent,
|
UserEmailChangedEvent,
|
||||||
@@ -10,17 +10,16 @@ import {
|
|||||||
EmailBackupRequestedEvent,
|
EmailBackupRequestedEvent,
|
||||||
CloudBackupRequestedEvent,
|
CloudBackupRequestedEvent,
|
||||||
ListedAccountRequestedEvent,
|
ListedAccountRequestedEvent,
|
||||||
UserSignedInEvent,
|
|
||||||
UserDisabledSessionUserAgentLoggingEvent,
|
UserDisabledSessionUserAgentLoggingEvent,
|
||||||
SharedSubscriptionInvitationCreatedEvent,
|
SharedSubscriptionInvitationCreatedEvent,
|
||||||
SharedSubscriptionInvitationCanceledEvent,
|
SharedSubscriptionInvitationCanceledEvent,
|
||||||
PredicateVerifiedEvent,
|
PredicateVerifiedEvent,
|
||||||
DomainEventService,
|
DomainEventService,
|
||||||
EmailMessageRequestedEvent,
|
|
||||||
WebSocketMessageRequestedEvent,
|
WebSocketMessageRequestedEvent,
|
||||||
ExitDiscountApplyRequestedEvent,
|
ExitDiscountApplyRequestedEvent,
|
||||||
UserContentSizeRecalculationRequestedEvent,
|
UserContentSizeRecalculationRequestedEvent,
|
||||||
MuteEmailsSettingChangedEvent,
|
MuteEmailsSettingChangedEvent,
|
||||||
|
EmailRequestedEvent,
|
||||||
} from '@standardnotes/domain-events'
|
} from '@standardnotes/domain-events'
|
||||||
import { Predicate, PredicateVerificationResult } from '@standardnotes/predicates'
|
import { Predicate, PredicateVerificationResult } from '@standardnotes/predicates'
|
||||||
import { TimerInterface } from '@standardnotes/time'
|
import { TimerInterface } from '@standardnotes/time'
|
||||||
@@ -102,13 +101,15 @@ export class DomainEventFactory implements DomainEventFactoryInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
createEmailMessageRequestedEvent(dto: {
|
createEmailRequestedEvent(dto: {
|
||||||
userEmail: string
|
userEmail: string
|
||||||
messageIdentifier: EmailMessageIdentifier
|
messageIdentifier: string
|
||||||
context: Record<string, unknown>
|
level: string
|
||||||
}): EmailMessageRequestedEvent {
|
body: string
|
||||||
|
subject: string
|
||||||
|
}): EmailRequestedEvent {
|
||||||
return {
|
return {
|
||||||
type: 'EMAIL_MESSAGE_REQUESTED',
|
type: 'EMAIL_REQUESTED',
|
||||||
createdAt: this.timer.getUTCDate(),
|
createdAt: this.timer.getUTCDate(),
|
||||||
meta: {
|
meta: {
|
||||||
correlation: {
|
correlation: {
|
||||||
@@ -202,28 +203,6 @@ export class DomainEventFactory implements DomainEventFactoryInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
createUserSignedInEvent(dto: {
|
|
||||||
userUuid: string
|
|
||||||
userEmail: string
|
|
||||||
device: string
|
|
||||||
browser: string
|
|
||||||
signInAlertEnabled: boolean
|
|
||||||
muteSignInEmailsSettingUuid: Uuid
|
|
||||||
}): UserSignedInEvent {
|
|
||||||
return {
|
|
||||||
type: 'USER_SIGNED_IN',
|
|
||||||
createdAt: this.timer.getUTCDate(),
|
|
||||||
meta: {
|
|
||||||
correlation: {
|
|
||||||
userIdentifier: dto.userUuid,
|
|
||||||
userIdentifierType: 'uuid',
|
|
||||||
},
|
|
||||||
origin: DomainEventService.Auth,
|
|
||||||
},
|
|
||||||
payload: dto,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
createListedAccountRequestedEvent(userUuid: string, userEmail: string): ListedAccountRequestedEvent {
|
createListedAccountRequestedEvent(userUuid: string, userEmail: string): ListedAccountRequestedEvent {
|
||||||
return {
|
return {
|
||||||
type: 'LISTED_ACCOUNT_REQUESTED',
|
type: 'LISTED_ACCOUNT_REQUESTED',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Uuid, RoleName, EmailMessageIdentifier, ProtocolVersion, JSONString } from '@standardnotes/common'
|
import { Uuid, RoleName, ProtocolVersion, JSONString } from '@standardnotes/common'
|
||||||
import { Predicate, PredicateVerificationResult } from '@standardnotes/predicates'
|
import { Predicate, PredicateVerificationResult } from '@standardnotes/predicates'
|
||||||
import {
|
import {
|
||||||
AccountDeletionRequestedEvent,
|
AccountDeletionRequestedEvent,
|
||||||
@@ -9,35 +9,28 @@ import {
|
|||||||
OfflineSubscriptionTokenCreatedEvent,
|
OfflineSubscriptionTokenCreatedEvent,
|
||||||
EmailBackupRequestedEvent,
|
EmailBackupRequestedEvent,
|
||||||
ListedAccountRequestedEvent,
|
ListedAccountRequestedEvent,
|
||||||
UserSignedInEvent,
|
|
||||||
UserDisabledSessionUserAgentLoggingEvent,
|
UserDisabledSessionUserAgentLoggingEvent,
|
||||||
SharedSubscriptionInvitationCreatedEvent,
|
SharedSubscriptionInvitationCreatedEvent,
|
||||||
SharedSubscriptionInvitationCanceledEvent,
|
SharedSubscriptionInvitationCanceledEvent,
|
||||||
PredicateVerifiedEvent,
|
PredicateVerifiedEvent,
|
||||||
EmailMessageRequestedEvent,
|
|
||||||
WebSocketMessageRequestedEvent,
|
WebSocketMessageRequestedEvent,
|
||||||
ExitDiscountApplyRequestedEvent,
|
ExitDiscountApplyRequestedEvent,
|
||||||
UserContentSizeRecalculationRequestedEvent,
|
UserContentSizeRecalculationRequestedEvent,
|
||||||
MuteEmailsSettingChangedEvent,
|
MuteEmailsSettingChangedEvent,
|
||||||
|
EmailRequestedEvent,
|
||||||
} from '@standardnotes/domain-events'
|
} from '@standardnotes/domain-events'
|
||||||
import { InviteeIdentifierType } from '../SharedSubscription/InviteeIdentifierType'
|
import { InviteeIdentifierType } from '../SharedSubscription/InviteeIdentifierType'
|
||||||
|
|
||||||
export interface DomainEventFactoryInterface {
|
export interface DomainEventFactoryInterface {
|
||||||
createUserContentSizeRecalculationRequestedEvent(userUuid: string): UserContentSizeRecalculationRequestedEvent
|
createUserContentSizeRecalculationRequestedEvent(userUuid: string): UserContentSizeRecalculationRequestedEvent
|
||||||
createWebSocketMessageRequestedEvent(dto: { userUuid: Uuid; message: JSONString }): WebSocketMessageRequestedEvent
|
createWebSocketMessageRequestedEvent(dto: { userUuid: Uuid; message: JSONString }): WebSocketMessageRequestedEvent
|
||||||
createEmailMessageRequestedEvent(dto: {
|
createEmailRequestedEvent(dto: {
|
||||||
userEmail: string
|
userEmail: string
|
||||||
messageIdentifier: EmailMessageIdentifier
|
messageIdentifier: string
|
||||||
context: Record<string, unknown>
|
level: string
|
||||||
}): EmailMessageRequestedEvent
|
body: string
|
||||||
createUserSignedInEvent(dto: {
|
subject: string
|
||||||
userUuid: string
|
}): EmailRequestedEvent
|
||||||
userEmail: string
|
|
||||||
device: string
|
|
||||||
browser: string
|
|
||||||
signInAlertEnabled: boolean
|
|
||||||
muteSignInEmailsSettingUuid: Uuid
|
|
||||||
}): UserSignedInEvent
|
|
||||||
createListedAccountRequestedEvent(userUuid: string, userEmail: string): ListedAccountRequestedEvent
|
createListedAccountRequestedEvent(userUuid: string, userEmail: string): ListedAccountRequestedEvent
|
||||||
createUserRegisteredEvent(dto: {
|
createUserRegisteredEvent(dto: {
|
||||||
userUuid: string
|
userUuid: string
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import 'reflect-metadata'
|
import 'reflect-metadata'
|
||||||
|
|
||||||
import { DomainEventPublisherInterface, UserSignedInEvent } from '@standardnotes/domain-events'
|
import { DomainEventPublisherInterface, EmailRequestedEvent } from '@standardnotes/domain-events'
|
||||||
import { Logger } from 'winston'
|
import { Logger } from 'winston'
|
||||||
|
|
||||||
import { AuthResponseFactoryInterface } from '../Auth/AuthResponseFactoryInterface'
|
import { AuthResponseFactoryInterface } from '../Auth/AuthResponseFactoryInterface'
|
||||||
@@ -10,10 +10,6 @@ import { SessionServiceInterface } from '../Session/SessionServiceInterface'
|
|||||||
import { User } from '../User/User'
|
import { User } from '../User/User'
|
||||||
import { UserRepositoryInterface } from '../User/UserRepositoryInterface'
|
import { UserRepositoryInterface } from '../User/UserRepositoryInterface'
|
||||||
import { SignIn } from './SignIn'
|
import { SignIn } from './SignIn'
|
||||||
import { RoleServiceInterface } from '../Role/RoleServiceInterface'
|
|
||||||
import { SettingServiceInterface } from '../Setting/SettingServiceInterface'
|
|
||||||
import { Setting } from '../Setting/Setting'
|
|
||||||
import { MuteSignInEmailsOption } from '@standardnotes/settings'
|
|
||||||
import { PKCERepositoryInterface } from '../User/PKCERepositoryInterface'
|
import { PKCERepositoryInterface } from '../User/PKCERepositoryInterface'
|
||||||
import { CrypterInterface } from '../Encryption/CrypterInterface'
|
import { CrypterInterface } from '../Encryption/CrypterInterface'
|
||||||
import { ProtocolVersion } from '@standardnotes/common'
|
import { ProtocolVersion } from '@standardnotes/common'
|
||||||
@@ -26,10 +22,7 @@ describe('SignIn', () => {
|
|||||||
let domainEventPublisher: DomainEventPublisherInterface
|
let domainEventPublisher: DomainEventPublisherInterface
|
||||||
let domainEventFactory: DomainEventFactoryInterface
|
let domainEventFactory: DomainEventFactoryInterface
|
||||||
let sessionService: SessionServiceInterface
|
let sessionService: SessionServiceInterface
|
||||||
let roleService: RoleServiceInterface
|
|
||||||
let logger: Logger
|
let logger: Logger
|
||||||
let settingService: SettingServiceInterface
|
|
||||||
let setting: Setting
|
|
||||||
let pkceRepository: PKCERepositoryInterface
|
let pkceRepository: PKCERepositoryInterface
|
||||||
let crypter: CrypterInterface
|
let crypter: CrypterInterface
|
||||||
|
|
||||||
@@ -40,8 +33,6 @@ describe('SignIn', () => {
|
|||||||
domainEventPublisher,
|
domainEventPublisher,
|
||||||
domainEventFactory,
|
domainEventFactory,
|
||||||
sessionService,
|
sessionService,
|
||||||
roleService,
|
|
||||||
settingService,
|
|
||||||
pkceRepository,
|
pkceRepository,
|
||||||
crypter,
|
crypter,
|
||||||
logger,
|
logger,
|
||||||
@@ -68,27 +59,12 @@ describe('SignIn', () => {
|
|||||||
domainEventPublisher.publish = jest.fn()
|
domainEventPublisher.publish = jest.fn()
|
||||||
|
|
||||||
domainEventFactory = {} as jest.Mocked<DomainEventFactoryInterface>
|
domainEventFactory = {} as jest.Mocked<DomainEventFactoryInterface>
|
||||||
domainEventFactory.createUserSignedInEvent = jest.fn().mockReturnValue({} as jest.Mocked<UserSignedInEvent>)
|
domainEventFactory.createEmailRequestedEvent = jest.fn().mockReturnValue({} as jest.Mocked<EmailRequestedEvent>)
|
||||||
|
|
||||||
sessionService = {} as jest.Mocked<SessionServiceInterface>
|
sessionService = {} as jest.Mocked<SessionServiceInterface>
|
||||||
sessionService.getOperatingSystemInfoFromUserAgent = jest.fn().mockReturnValue('iOS 1')
|
sessionService.getOperatingSystemInfoFromUserAgent = jest.fn().mockReturnValue('iOS 1')
|
||||||
sessionService.getBrowserInfoFromUserAgent = jest.fn().mockReturnValue('Firefox 1')
|
sessionService.getBrowserInfoFromUserAgent = jest.fn().mockReturnValue('Firefox 1')
|
||||||
|
|
||||||
roleService = {} as jest.Mocked<RoleServiceInterface>
|
|
||||||
roleService.userHasPermission = jest.fn().mockReturnValue(true)
|
|
||||||
|
|
||||||
setting = {
|
|
||||||
uuid: '3-4-5',
|
|
||||||
value: MuteSignInEmailsOption.NotMuted,
|
|
||||||
} as jest.Mocked<Setting>
|
|
||||||
|
|
||||||
settingService = {} as jest.Mocked<SettingServiceInterface>
|
|
||||||
settingService.findSettingWithDecryptedValue = jest.fn().mockReturnValue(setting)
|
|
||||||
settingService.createOrReplace = jest.fn().mockReturnValue({
|
|
||||||
status: 'created',
|
|
||||||
setting,
|
|
||||||
})
|
|
||||||
|
|
||||||
pkceRepository = {} as jest.Mocked<PKCERepositoryInterface>
|
pkceRepository = {} as jest.Mocked<PKCERepositoryInterface>
|
||||||
pkceRepository.removeCodeChallenge = jest.fn().mockReturnValue(true)
|
pkceRepository.removeCodeChallenge = jest.fn().mockReturnValue(true)
|
||||||
|
|
||||||
@@ -118,18 +94,33 @@ describe('SignIn', () => {
|
|||||||
authResponse: { foo: 'bar' },
|
authResponse: { foo: 'bar' },
|
||||||
})
|
})
|
||||||
|
|
||||||
expect(domainEventFactory.createUserSignedInEvent).toHaveBeenCalledWith({
|
expect(domainEventFactory.createEmailRequestedEvent).toHaveBeenCalled()
|
||||||
browser: 'Firefox 1',
|
|
||||||
device: 'iOS 1',
|
|
||||||
userEmail: 'test@test.com',
|
|
||||||
userUuid: '1-2-3',
|
|
||||||
signInAlertEnabled: true,
|
|
||||||
muteSignInEmailsSettingUuid: '3-4-5',
|
|
||||||
})
|
|
||||||
expect(domainEventPublisher.publish).toHaveBeenCalled()
|
expect(domainEventPublisher.publish).toHaveBeenCalled()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should not sign in a user without code verifier', async () => {
|
it('should not sign in 004 user without code verifier', async () => {
|
||||||
|
expect(
|
||||||
|
await createUseCase().execute({
|
||||||
|
email: 'test@test.te',
|
||||||
|
password: 'qweqwe123123',
|
||||||
|
userAgent: 'Google Chrome',
|
||||||
|
apiVersion: '20190520',
|
||||||
|
ephemeralSession: false,
|
||||||
|
}),
|
||||||
|
).toEqual({
|
||||||
|
success: false,
|
||||||
|
errorCode: 410,
|
||||||
|
errorMessage: 'Please update your client application.',
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
it('should not sign in 005 user without code verifier', async () => {
|
||||||
|
user = {
|
||||||
|
uuid: '1-2-3',
|
||||||
|
email: 'test@test.com',
|
||||||
|
version: '005',
|
||||||
|
} as jest.Mocked<User>
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await createUseCase().execute({
|
await createUseCase().execute({
|
||||||
email: 'test@test.te',
|
email: 'test@test.te',
|
||||||
@@ -160,92 +151,10 @@ describe('SignIn', () => {
|
|||||||
authResponse: { foo: 'bar' },
|
authResponse: { foo: 'bar' },
|
||||||
})
|
})
|
||||||
|
|
||||||
expect(domainEventFactory.createUserSignedInEvent).toHaveBeenCalledWith({
|
expect(domainEventFactory.createEmailRequestedEvent).toHaveBeenCalled()
|
||||||
browser: 'Firefox 1',
|
|
||||||
device: 'iOS 1',
|
|
||||||
userEmail: 'test@test.com',
|
|
||||||
userUuid: '1-2-3',
|
|
||||||
signInAlertEnabled: true,
|
|
||||||
muteSignInEmailsSettingUuid: '3-4-5',
|
|
||||||
})
|
|
||||||
expect(domainEventPublisher.publish).toHaveBeenCalled()
|
expect(domainEventPublisher.publish).toHaveBeenCalled()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should sign in a user and disable sign in alert if setting is configured', async () => {
|
|
||||||
setting = {
|
|
||||||
uuid: '3-4-5',
|
|
||||||
value: MuteSignInEmailsOption.Muted,
|
|
||||||
} as jest.Mocked<Setting>
|
|
||||||
|
|
||||||
settingService.findSettingWithDecryptedValue = jest.fn().mockReturnValue(setting)
|
|
||||||
|
|
||||||
expect(
|
|
||||||
await createUseCase().execute({
|
|
||||||
email: 'test@test.te',
|
|
||||||
password: 'qweqwe123123',
|
|
||||||
userAgent: 'Google Chrome',
|
|
||||||
apiVersion: '20190520',
|
|
||||||
ephemeralSession: false,
|
|
||||||
codeVerifier: 'test',
|
|
||||||
}),
|
|
||||||
).toEqual({
|
|
||||||
success: true,
|
|
||||||
authResponse: { foo: 'bar' },
|
|
||||||
})
|
|
||||||
|
|
||||||
expect(domainEventFactory.createUserSignedInEvent).toHaveBeenCalledWith({
|
|
||||||
browser: 'Firefox 1',
|
|
||||||
device: 'iOS 1',
|
|
||||||
userEmail: 'test@test.com',
|
|
||||||
userUuid: '1-2-3',
|
|
||||||
signInAlertEnabled: false,
|
|
||||||
muteSignInEmailsSettingUuid: '3-4-5',
|
|
||||||
})
|
|
||||||
expect(domainEventPublisher.publish).toHaveBeenCalled()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should sign in a user and create mute sign in email setting if it does not exist', async () => {
|
|
||||||
settingService.findSettingWithDecryptedValue = jest.fn().mockReturnValue(null)
|
|
||||||
|
|
||||||
expect(
|
|
||||||
await createUseCase().execute({
|
|
||||||
email: 'test@test.te',
|
|
||||||
password: 'qweqwe123123',
|
|
||||||
userAgent: 'Google Chrome',
|
|
||||||
apiVersion: '20190520',
|
|
||||||
ephemeralSession: false,
|
|
||||||
codeVerifier: 'test',
|
|
||||||
}),
|
|
||||||
).toEqual({
|
|
||||||
success: true,
|
|
||||||
authResponse: { foo: 'bar' },
|
|
||||||
})
|
|
||||||
|
|
||||||
expect(domainEventFactory.createUserSignedInEvent).toHaveBeenCalledWith({
|
|
||||||
browser: 'Firefox 1',
|
|
||||||
device: 'iOS 1',
|
|
||||||
userEmail: 'test@test.com',
|
|
||||||
userUuid: '1-2-3',
|
|
||||||
signInAlertEnabled: true,
|
|
||||||
muteSignInEmailsSettingUuid: '3-4-5',
|
|
||||||
})
|
|
||||||
expect(domainEventPublisher.publish).toHaveBeenCalled()
|
|
||||||
expect(settingService.createOrReplace).toHaveBeenCalledWith({
|
|
||||||
props: {
|
|
||||||
name: 'MUTE_SIGN_IN_EMAILS',
|
|
||||||
sensitive: false,
|
|
||||||
serverEncryptionVersion: 0,
|
|
||||||
unencryptedValue: 'not_muted',
|
|
||||||
},
|
|
||||||
user: {
|
|
||||||
email: 'test@test.com',
|
|
||||||
encryptedPassword: '$2a$11$K3g6XoTau8VmLJcai1bB0eD9/YvBSBRtBhMprJOaVZ0U3SgasZH3a',
|
|
||||||
uuid: '1-2-3',
|
|
||||||
version: '004',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should sign in a user even if publishing a sign in event fails', async () => {
|
it('should sign in a user even if publishing a sign in event fails', async () => {
|
||||||
domainEventPublisher.publish = jest.fn().mockImplementation(() => {
|
domainEventPublisher.publish = jest.fn().mockImplementation(() => {
|
||||||
throw new Error('Oops')
|
throw new Error('Oops')
|
||||||
|
|||||||
@@ -1,18 +1,12 @@
|
|||||||
import * as bcrypt from 'bcryptjs'
|
import * as bcrypt from 'bcryptjs'
|
||||||
import { DomainEventPublisherInterface } from '@standardnotes/domain-events'
|
import { DomainEventPublisherInterface } from '@standardnotes/domain-events'
|
||||||
import { PermissionName } from '@standardnotes/features'
|
|
||||||
import { MuteSignInEmailsOption, SettingName } from '@standardnotes/settings'
|
|
||||||
|
|
||||||
import { inject, injectable } from 'inversify'
|
import { inject, injectable } from 'inversify'
|
||||||
import { Logger } from 'winston'
|
import { Logger } from 'winston'
|
||||||
import TYPES from '../../Bootstrap/Types'
|
import TYPES from '../../Bootstrap/Types'
|
||||||
import { AuthResponseFactoryResolverInterface } from '../Auth/AuthResponseFactoryResolverInterface'
|
import { AuthResponseFactoryResolverInterface } from '../Auth/AuthResponseFactoryResolverInterface'
|
||||||
import { EncryptionVersion } from '../Encryption/EncryptionVersion'
|
|
||||||
import { DomainEventFactoryInterface } from '../Event/DomainEventFactoryInterface'
|
import { DomainEventFactoryInterface } from '../Event/DomainEventFactoryInterface'
|
||||||
import { RoleServiceInterface } from '../Role/RoleServiceInterface'
|
|
||||||
import { SessionServiceInterface } from '../Session/SessionServiceInterface'
|
import { SessionServiceInterface } from '../Session/SessionServiceInterface'
|
||||||
import { Setting } from '../Setting/Setting'
|
|
||||||
import { SettingServiceInterface } from '../Setting/SettingServiceInterface'
|
|
||||||
import { User } from '../User/User'
|
import { User } from '../User/User'
|
||||||
import { UserRepositoryInterface } from '../User/UserRepositoryInterface'
|
import { UserRepositoryInterface } from '../User/UserRepositoryInterface'
|
||||||
import { SignInDTO } from './SignInDTO'
|
import { SignInDTO } from './SignInDTO'
|
||||||
@@ -21,8 +15,10 @@ import { UseCaseInterface } from './UseCaseInterface'
|
|||||||
import { PKCERepositoryInterface } from '../User/PKCERepositoryInterface'
|
import { PKCERepositoryInterface } from '../User/PKCERepositoryInterface'
|
||||||
import { CrypterInterface } from '../Encryption/CrypterInterface'
|
import { CrypterInterface } from '../Encryption/CrypterInterface'
|
||||||
import { SignInDTOV2Challenged } from './SignInDTOV2Challenged'
|
import { SignInDTOV2Challenged } from './SignInDTOV2Challenged'
|
||||||
import { ProtocolVersion } from '@standardnotes/common'
|
import { leftVersionGreaterThanOrEqualToRight, ProtocolVersion } from '@standardnotes/common'
|
||||||
import { HttpStatusCode } from '@standardnotes/api'
|
import { HttpStatusCode } from '@standardnotes/api'
|
||||||
|
import { EmailLevel } from '@standardnotes/domain-core'
|
||||||
|
import { getBody, getSubject } from '../Email/UserSignedIn'
|
||||||
|
|
||||||
@injectable()
|
@injectable()
|
||||||
export class SignIn implements UseCaseInterface {
|
export class SignIn implements UseCaseInterface {
|
||||||
@@ -33,8 +29,6 @@ export class SignIn implements UseCaseInterface {
|
|||||||
@inject(TYPES.DomainEventPublisher) private domainEventPublisher: DomainEventPublisherInterface,
|
@inject(TYPES.DomainEventPublisher) private domainEventPublisher: DomainEventPublisherInterface,
|
||||||
@inject(TYPES.DomainEventFactory) private domainEventFactory: DomainEventFactoryInterface,
|
@inject(TYPES.DomainEventFactory) private domainEventFactory: DomainEventFactoryInterface,
|
||||||
@inject(TYPES.SessionService) private sessionService: SessionServiceInterface,
|
@inject(TYPES.SessionService) private sessionService: SessionServiceInterface,
|
||||||
@inject(TYPES.RoleService) private roleService: RoleServiceInterface,
|
|
||||||
@inject(TYPES.SettingService) private settingService: SettingServiceInterface,
|
|
||||||
@inject(TYPES.PKCERepository) private pkceRepository: PKCERepositoryInterface,
|
@inject(TYPES.PKCERepository) private pkceRepository: PKCERepositoryInterface,
|
||||||
@inject(TYPES.Crypter) private crypter: CrypterInterface,
|
@inject(TYPES.Crypter) private crypter: CrypterInterface,
|
||||||
@inject(TYPES.Logger) private logger: Logger,
|
@inject(TYPES.Logger) private logger: Logger,
|
||||||
@@ -65,7 +59,12 @@ export class SignIn implements UseCaseInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.version === ProtocolVersion.V004 && !performingCodeChallengedSignIn) {
|
const userVersionIs004OrGreater = leftVersionGreaterThanOrEqualToRight(
|
||||||
|
user.version as ProtocolVersion,
|
||||||
|
ProtocolVersion.V004,
|
||||||
|
)
|
||||||
|
|
||||||
|
if (userVersionIs004OrGreater && !performingCodeChallengedSignIn) {
|
||||||
return {
|
return {
|
||||||
success: false,
|
success: false,
|
||||||
errorMessage: 'Please update your client application.',
|
errorMessage: 'Please update your client application.',
|
||||||
@@ -109,18 +108,18 @@ export class SignIn implements UseCaseInterface {
|
|||||||
|
|
||||||
private async sendSignInEmailNotification(user: User, userAgent: string): Promise<void> {
|
private async sendSignInEmailNotification(user: User, userAgent: string): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const muteSignInEmailsSetting = await this.findOrCreateMuteSignInEmailsSetting(user)
|
|
||||||
|
|
||||||
await this.domainEventPublisher.publish(
|
await this.domainEventPublisher.publish(
|
||||||
this.domainEventFactory.createUserSignedInEvent({
|
this.domainEventFactory.createEmailRequestedEvent({
|
||||||
userUuid: user.uuid,
|
|
||||||
userEmail: user.email,
|
userEmail: user.email,
|
||||||
device: this.sessionService.getOperatingSystemInfoFromUserAgent(userAgent),
|
level: EmailLevel.LEVELS.SignIn,
|
||||||
browser: this.sessionService.getBrowserInfoFromUserAgent(userAgent),
|
body: getBody(
|
||||||
signInAlertEnabled:
|
user.email,
|
||||||
(await this.roleService.userHasPermission(user.uuid, PermissionName.SignInAlerts)) &&
|
this.sessionService.getOperatingSystemInfoFromUserAgent(userAgent),
|
||||||
muteSignInEmailsSetting.value === MuteSignInEmailsOption.NotMuted,
|
this.sessionService.getBrowserInfoFromUserAgent(userAgent),
|
||||||
muteSignInEmailsSettingUuid: muteSignInEmailsSetting.uuid,
|
new Date(),
|
||||||
|
),
|
||||||
|
messageIdentifier: 'SIGN_IN',
|
||||||
|
subject: getSubject(user.email),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -128,29 +127,6 @@ export class SignIn implements UseCaseInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async findOrCreateMuteSignInEmailsSetting(user: User): Promise<Setting> {
|
|
||||||
const existingMuteSignInEmailsSetting = await this.settingService.findSettingWithDecryptedValue({
|
|
||||||
userUuid: user.uuid,
|
|
||||||
settingName: SettingName.MuteSignInEmails,
|
|
||||||
})
|
|
||||||
|
|
||||||
if (existingMuteSignInEmailsSetting !== null) {
|
|
||||||
return existingMuteSignInEmailsSetting
|
|
||||||
}
|
|
||||||
|
|
||||||
const createSettingResult = await this.settingService.createOrReplace({
|
|
||||||
user,
|
|
||||||
props: {
|
|
||||||
name: SettingName.MuteSignInEmails,
|
|
||||||
sensitive: false,
|
|
||||||
unencryptedValue: MuteSignInEmailsOption.NotMuted,
|
|
||||||
serverEncryptionVersion: EncryptionVersion.Unencrypted,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
return createSettingResult.setting
|
|
||||||
}
|
|
||||||
|
|
||||||
private isCodeChallengedVersion(dto: SignInDTO): dto is SignInDTOV2Challenged {
|
private isCodeChallengedVersion(dto: SignInDTO): dto is SignInDTOV2Challenged {
|
||||||
return (dto as SignInDTOV2Challenged).codeVerifier !== undefined
|
return (dto as SignInDTOV2Challenged).codeVerifier !== undefined
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,34 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.9.47](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.9.46...@standardnotes/domain-events-infra@1.9.47) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/domain-events-infra
|
||||||
|
|
||||||
|
## [1.9.46](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.9.45...@standardnotes/domain-events-infra@1.9.46) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/domain-events-infra
|
||||||
|
|
||||||
|
## [1.9.45](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.9.44...@standardnotes/domain-events-infra@1.9.45) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/domain-events-infra
|
||||||
|
|
||||||
|
## [1.9.44](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.9.43...@standardnotes/domain-events-infra@1.9.44) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/domain-events-infra
|
||||||
|
|
||||||
|
## [1.9.43](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.9.42...@standardnotes/domain-events-infra@1.9.43) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/domain-events-infra
|
||||||
|
|
||||||
|
## [1.9.42](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.9.41...@standardnotes/domain-events-infra@1.9.42) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/domain-events-infra
|
||||||
|
|
||||||
|
## [1.9.41](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.9.40...@standardnotes/domain-events-infra@1.9.41) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/domain-events-infra
|
||||||
|
|
||||||
## [1.9.40](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.9.39...@standardnotes/domain-events-infra@1.9.40) (2022-12-07)
|
## [1.9.40](https://github.com/standardnotes/server/compare/@standardnotes/domain-events-infra@1.9.39...@standardnotes/domain-events-infra@1.9.40) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/domain-events-infra
|
**Note:** Version bump only for package @standardnotes/domain-events-infra
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/domain-events-infra",
|
"name": "@standardnotes/domain-events-infra",
|
||||||
"version": "1.9.40",
|
"version": "1.9.47",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,48 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [2.98.4](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.98.3...@standardnotes/domain-events@2.98.4) (2022-12-09)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **domain-events:** remove unused event ([cc4b4f9](https://github.com/standardnotes/server/commit/cc4b4f9bf831b9aabec7d506d977ee1df50d5222))
|
||||||
|
|
||||||
|
## [2.98.3](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.98.2...@standardnotes/domain-events@2.98.3) (2022-12-08)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **domain-events:** remove unused event ([cffc1f4](https://github.com/standardnotes/server/commit/cffc1f442f3c6f781c4468ac96245e13f57115d5))
|
||||||
|
|
||||||
|
## [2.98.2](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.98.1...@standardnotes/domain-events@2.98.2) (2022-12-08)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **domain-events:** remove unused event ([5a1eb9f](https://github.com/standardnotes/server/commit/5a1eb9fdacb8cfe8fde06df9e83fef1753b1a619))
|
||||||
|
|
||||||
|
## [2.98.1](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.98.0...@standardnotes/domain-events@2.98.1) (2022-12-08)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **domain-events:** remove unused event ([47d2012](https://github.com/standardnotes/server/commit/47d2012b3d96eddf5f6304f158659dc764f9b1c4))
|
||||||
|
|
||||||
|
# [2.98.0](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.97.0...@standardnotes/domain-events@2.98.0) (2022-12-08)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **domain-events:** remove unused events and add attachments option for sending emails ([435cd2f](https://github.com/standardnotes/server/commit/435cd2f66a1332a294001e87eed3ece1b8b991ae))
|
||||||
|
|
||||||
|
# [2.97.0](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.96.0...@standardnotes/domain-events@2.97.0) (2022-12-08)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **domain-events:** remove unused account reset requested event ([3a12f5c](https://github.com/standardnotes/server/commit/3a12f5c1c40ab6cb236b963bad2a987bacef55e4))
|
||||||
|
|
||||||
|
# [2.96.0](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.95.0...@standardnotes/domain-events@2.96.0) (2022-12-07)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **auth:** replace user signed in events with email requested ([e48cca6](https://github.com/standardnotes/server/commit/e48cca6b45b02876f2d82b726c1d2f124d90b587))
|
||||||
|
|
||||||
# [2.95.0](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.94.1...@standardnotes/domain-events@2.95.0) (2022-12-07)
|
# [2.95.0](https://github.com/standardnotes/server/compare/@standardnotes/domain-events@2.94.1...@standardnotes/domain-events@2.95.0) (2022-12-07)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/domain-events",
|
"name": "@standardnotes/domain-events",
|
||||||
"version": "2.95.0",
|
"version": "2.98.4",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
import { AccountClaimRequestedEventPayload } from './AccountClaimRequestedEventPayload'
|
|
||||||
|
|
||||||
export interface AccountClaimRequestedEvent extends DomainEventInterface {
|
|
||||||
type: 'ACCOUNT_CLAIM_REQUESTED'
|
|
||||||
payload: AccountClaimRequestedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
export interface AccountClaimRequestedEventPayload {
|
|
||||||
email: string
|
|
||||||
token: string
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
|
|
||||||
import { AccountResetRequestedEventPayload } from './AccountResetRequestedEventPayload'
|
|
||||||
|
|
||||||
export interface AccountResetRequestedEvent extends DomainEventInterface {
|
|
||||||
type: 'ACCOUNT_RESET_REQUESTED'
|
|
||||||
payload: AccountResetRequestedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
export interface AccountResetRequestedEventPayload {
|
|
||||||
resetRequestToken: string
|
|
||||||
userEmail: string
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
import { ActivationCodeRequestedEventPayload } from './ActivationCodeRequestedEventPayload'
|
|
||||||
|
|
||||||
export interface ActivationCodeRequestedEvent extends DomainEventInterface {
|
|
||||||
type: 'ACTIVATION_CODE_REQUESTED'
|
|
||||||
payload: ActivationCodeRequestedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
export interface ActivationCodeRequestedEventPayload {
|
|
||||||
userEmail: string
|
|
||||||
offlineFeaturesToken: string
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
|
|
||||||
import { DiscountAppliedEventPayload } from './DiscountAppliedEventPayload'
|
|
||||||
|
|
||||||
export interface DiscountAppliedEvent extends DomainEventInterface {
|
|
||||||
type: 'DISCOUNT_APPLIED'
|
|
||||||
payload: DiscountAppliedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
export interface DiscountAppliedEventPayload {
|
|
||||||
userEmail: string
|
|
||||||
discountRate: number
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
import { EmailMessageRequestedEventPayload } from './EmailMessageRequestedEventPayload'
|
|
||||||
|
|
||||||
export interface EmailMessageRequestedEvent extends DomainEventInterface {
|
|
||||||
type: 'EMAIL_MESSAGE_REQUESTED'
|
|
||||||
payload: EmailMessageRequestedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
export interface EmailMessageRequestedEventPayload {
|
|
||||||
userEmail: string
|
|
||||||
messageIdentifier: string
|
|
||||||
context: Record<string, unknown>
|
|
||||||
}
|
|
||||||
@@ -4,4 +4,10 @@ export interface EmailRequestedEventPayload {
|
|||||||
level: string
|
level: string
|
||||||
subject: string
|
subject: string
|
||||||
body: string
|
body: string
|
||||||
|
attachments?: Array<{
|
||||||
|
filePath: string
|
||||||
|
fileName: string
|
||||||
|
attachmentFileName: string
|
||||||
|
attachmentContentType: string
|
||||||
|
}>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
|
|
||||||
import { InvoiceGeneratedEventPayload } from './InvoiceGeneratedEventPayload'
|
|
||||||
|
|
||||||
export interface InvoiceGeneratedEvent extends DomainEventInterface {
|
|
||||||
type: 'INVOICE_GENERATED'
|
|
||||||
payload: InvoiceGeneratedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
export interface InvoiceGeneratedEventPayload {
|
|
||||||
userEmail: string
|
|
||||||
invoiceNumber: string
|
|
||||||
paymentDateFormatted: string
|
|
||||||
s3BucketName: string
|
|
||||||
s3InvoiceObjectKey: string
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
|
|
||||||
import { RefundRequestedEventPayload } from './RefundRequestedEventPayload'
|
|
||||||
|
|
||||||
export interface RefundRequestedEvent extends DomainEventInterface {
|
|
||||||
type: 'REFUND_REQUESTED'
|
|
||||||
payload: RefundRequestedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
export interface RefundRequestedEventPayload {
|
|
||||||
userEmail: string
|
|
||||||
refundProcessingLink: string
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
|
|
||||||
import { StudentDiscountApprovedEventPayload } from './StudentDiscountApprovedEventPayload'
|
|
||||||
|
|
||||||
export interface StudentDiscountApprovedEvent extends DomainEventInterface {
|
|
||||||
type: 'STUDENT_DISCOUNT_APPROVED'
|
|
||||||
payload: StudentDiscountApprovedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
export interface StudentDiscountApprovedEventPayload {
|
|
||||||
userEmail: string
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
|
|
||||||
import { StudentDiscountRequestedEventPayload } from './StudentDiscountRequestedEventPayload'
|
|
||||||
|
|
||||||
export interface StudentDiscountRequestedEvent extends DomainEventInterface {
|
|
||||||
type: 'STUDENT_DISCOUNT_REQUESTED'
|
|
||||||
payload: StudentDiscountRequestedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
export interface StudentDiscountRequestedEventPayload {
|
|
||||||
studentEmail: string
|
|
||||||
userEmail: string
|
|
||||||
adminApprovalLink: string
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
|
|
||||||
import { SubscriptionRateAdjustedEventPayload } from './SubscriptionRateAdjustedEventPayload'
|
|
||||||
|
|
||||||
export interface SubscriptionRateAdjustedEvent extends DomainEventInterface {
|
|
||||||
type: 'SUBSCRIPTION_RATE_ADJUSTED'
|
|
||||||
payload: SubscriptionRateAdjustedEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
export interface SubscriptionRateAdjustedEventPayload {
|
|
||||||
userEmail: string
|
|
||||||
newRateFormatted: string
|
|
||||||
refundAmountInDollarsFormatted: string
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
import { DomainEventInterface } from './DomainEventInterface'
|
|
||||||
import { UserSignedInEventPayload } from './UserSignedInEventPayload'
|
|
||||||
|
|
||||||
export interface UserSignedInEvent extends DomainEventInterface {
|
|
||||||
type: 'USER_SIGNED_IN'
|
|
||||||
payload: UserSignedInEventPayload
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
import { Uuid } from '@standardnotes/common'
|
|
||||||
|
|
||||||
export interface UserSignedInEventPayload {
|
|
||||||
userUuid: string
|
|
||||||
userEmail: string
|
|
||||||
signInAlertEnabled: boolean
|
|
||||||
muteSignInEmailsSettingUuid: Uuid
|
|
||||||
device: string
|
|
||||||
browser?: string
|
|
||||||
}
|
|
||||||
@@ -1,17 +1,9 @@
|
|||||||
export * from './Event/AccountClaimRequestedEvent'
|
|
||||||
export * from './Event/AccountClaimRequestedEventPayload'
|
|
||||||
export * from './Event/AccountDeletionRequestedEvent'
|
export * from './Event/AccountDeletionRequestedEvent'
|
||||||
export * from './Event/AccountDeletionRequestedEventPayload'
|
export * from './Event/AccountDeletionRequestedEventPayload'
|
||||||
export * from './Event/AccountResetRequestedEvent'
|
|
||||||
export * from './Event/AccountResetRequestedEventPayload'
|
|
||||||
export * from './Event/ActivationCodeRequestedEvent'
|
|
||||||
export * from './Event/ActivationCodeRequestedEventPayload'
|
|
||||||
export * from './Event/CloudBackupRequestedEvent'
|
export * from './Event/CloudBackupRequestedEvent'
|
||||||
export * from './Event/CloudBackupRequestedEventPayload'
|
export * from './Event/CloudBackupRequestedEventPayload'
|
||||||
export * from './Event/DailyAnalyticsReportGeneratedEvent'
|
export * from './Event/DailyAnalyticsReportGeneratedEvent'
|
||||||
export * from './Event/DailyAnalyticsReportGeneratedEventPayload'
|
export * from './Event/DailyAnalyticsReportGeneratedEventPayload'
|
||||||
export * from './Event/DiscountAppliedEvent'
|
|
||||||
export * from './Event/DiscountAppliedEventPayload'
|
|
||||||
export * from './Event/DiscountApplyRequestedEvent'
|
export * from './Event/DiscountApplyRequestedEvent'
|
||||||
export * from './Event/DiscountApplyRequestedEventPayload'
|
export * from './Event/DiscountApplyRequestedEventPayload'
|
||||||
export * from './Event/DiscountWithdrawRequestedEvent'
|
export * from './Event/DiscountWithdrawRequestedEvent'
|
||||||
@@ -28,8 +20,6 @@ export * from './Event/EmailBackupAttachmentCreatedEvent'
|
|||||||
export * from './Event/EmailBackupAttachmentCreatedEventPayload'
|
export * from './Event/EmailBackupAttachmentCreatedEventPayload'
|
||||||
export * from './Event/EmailBackupRequestedEvent'
|
export * from './Event/EmailBackupRequestedEvent'
|
||||||
export * from './Event/EmailBackupRequestedEventPayload'
|
export * from './Event/EmailBackupRequestedEventPayload'
|
||||||
export * from './Event/EmailMessageRequestedEvent'
|
|
||||||
export * from './Event/EmailMessageRequestedEventPayload'
|
|
||||||
export * from './Event/EmailRequestedEvent'
|
export * from './Event/EmailRequestedEvent'
|
||||||
export * from './Event/EmailRequestedEventPayload'
|
export * from './Event/EmailRequestedEventPayload'
|
||||||
export * from './Event/ExitDiscountAppliedEvent'
|
export * from './Event/ExitDiscountAppliedEvent'
|
||||||
@@ -46,8 +36,6 @@ export * from './Event/FileUploadedEvent'
|
|||||||
export * from './Event/FileUploadedEventPayload'
|
export * from './Event/FileUploadedEventPayload'
|
||||||
export * from './Event/GoogleDriveBackupFailedEvent'
|
export * from './Event/GoogleDriveBackupFailedEvent'
|
||||||
export * from './Event/GoogleDriveBackupFailedEventPayload'
|
export * from './Event/GoogleDriveBackupFailedEventPayload'
|
||||||
export * from './Event/InvoiceGeneratedEvent'
|
|
||||||
export * from './Event/InvoiceGeneratedEventPayload'
|
|
||||||
export * from './Event/ItemDumpedEvent'
|
export * from './Event/ItemDumpedEvent'
|
||||||
export * from './Event/ItemDumpedEventPayload'
|
export * from './Event/ItemDumpedEventPayload'
|
||||||
export * from './Event/ItemRevisionCreationRequestedEvent'
|
export * from './Event/ItemRevisionCreationRequestedEvent'
|
||||||
@@ -74,8 +62,6 @@ export * from './Event/PredicateVerificationRequestedEvent'
|
|||||||
export * from './Event/PredicateVerificationRequestedEventPayload'
|
export * from './Event/PredicateVerificationRequestedEventPayload'
|
||||||
export * from './Event/PredicateVerifiedEvent'
|
export * from './Event/PredicateVerifiedEvent'
|
||||||
export * from './Event/PredicateVerifiedEventPayload'
|
export * from './Event/PredicateVerifiedEventPayload'
|
||||||
export * from './Event/RefundRequestedEvent'
|
|
||||||
export * from './Event/RefundRequestedEventPayload'
|
|
||||||
export * from './Event/RefundProcessedEvent'
|
export * from './Event/RefundProcessedEvent'
|
||||||
export * from './Event/RefundProcessedEventPayload'
|
export * from './Event/RefundProcessedEventPayload'
|
||||||
export * from './Event/RevisionsCopyRequestedEvent'
|
export * from './Event/RevisionsCopyRequestedEvent'
|
||||||
@@ -86,16 +72,10 @@ export * from './Event/SharedSubscriptionInvitationCanceledEvent'
|
|||||||
export * from './Event/SharedSubscriptionInvitationCanceledEventPayload'
|
export * from './Event/SharedSubscriptionInvitationCanceledEventPayload'
|
||||||
export * from './Event/SharedSubscriptionInvitationCreatedEvent'
|
export * from './Event/SharedSubscriptionInvitationCreatedEvent'
|
||||||
export * from './Event/SharedSubscriptionInvitationCreatedEventPayload'
|
export * from './Event/SharedSubscriptionInvitationCreatedEventPayload'
|
||||||
export * from './Event/StudentDiscountApprovedEvent'
|
|
||||||
export * from './Event/StudentDiscountApprovedEventPayload'
|
|
||||||
export * from './Event/StudentDiscountRequestedEvent'
|
|
||||||
export * from './Event/StudentDiscountRequestedEventPayload'
|
|
||||||
export * from './Event/SubscriptionCancelledEvent'
|
export * from './Event/SubscriptionCancelledEvent'
|
||||||
export * from './Event/SubscriptionCancelledEventPayload'
|
export * from './Event/SubscriptionCancelledEventPayload'
|
||||||
export * from './Event/SubscriptionPurchasedEvent'
|
export * from './Event/SubscriptionPurchasedEvent'
|
||||||
export * from './Event/SubscriptionPurchasedEventPayload'
|
export * from './Event/SubscriptionPurchasedEventPayload'
|
||||||
export * from './Event/SubscriptionRateAdjustedEvent'
|
|
||||||
export * from './Event/SubscriptionRateAdjustedEventPayload'
|
|
||||||
export * from './Event/SubscriptionReactivatedEvent'
|
export * from './Event/SubscriptionReactivatedEvent'
|
||||||
export * from './Event/SubscriptionReactivatedEventPayload'
|
export * from './Event/SubscriptionReactivatedEventPayload'
|
||||||
export * from './Event/SubscriptionReassignedEvent'
|
export * from './Event/SubscriptionReassignedEvent'
|
||||||
@@ -120,8 +100,6 @@ export * from './Event/UserRegisteredEvent'
|
|||||||
export * from './Event/UserRegisteredEventPayload'
|
export * from './Event/UserRegisteredEventPayload'
|
||||||
export * from './Event/UserRolesChangedEvent'
|
export * from './Event/UserRolesChangedEvent'
|
||||||
export * from './Event/UserRolesChangedEventPayload'
|
export * from './Event/UserRolesChangedEventPayload'
|
||||||
export * from './Event/UserSignedInEvent'
|
|
||||||
export * from './Event/UserSignedInEventPayload'
|
|
||||||
export * from './Event/WebSocketMessageRequestedEvent'
|
export * from './Event/WebSocketMessageRequestedEvent'
|
||||||
export * from './Event/WebSocketMessageRequestedEventPayload'
|
export * from './Event/WebSocketMessageRequestedEventPayload'
|
||||||
export * from './Event/WorkspaceInviteAcceptedEvent'
|
export * from './Event/WorkspaceInviteAcceptedEvent'
|
||||||
|
|||||||
@@ -3,6 +3,41 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.6.44](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.43...@standardnotes/event-store@1.6.44) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/event-store
|
||||||
|
|
||||||
|
## [1.6.43](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.42...@standardnotes/event-store@1.6.43) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/event-store
|
||||||
|
|
||||||
|
## [1.6.42](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.41...@standardnotes/event-store@1.6.42) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/event-store
|
||||||
|
|
||||||
|
## [1.6.41](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.40...@standardnotes/event-store@1.6.41) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/event-store
|
||||||
|
|
||||||
|
## [1.6.40](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.39...@standardnotes/event-store@1.6.40) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/event-store
|
||||||
|
|
||||||
|
## [1.6.39](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.38...@standardnotes/event-store@1.6.39) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/event-store
|
||||||
|
|
||||||
|
## [1.6.38](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.37...@standardnotes/event-store@1.6.38) (2022-12-07)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **event-store:** add email requested subscription ([eff0945](https://github.com/standardnotes/server/commit/eff09454c3a28b0124b74c2850fed19313b9e2b2))
|
||||||
|
* **event-store:** reduce handlers ([473feba](https://github.com/standardnotes/server/commit/473feba6a8f008c9d73238be82e1d197082464c0))
|
||||||
|
|
||||||
|
## [1.6.37](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.36...@standardnotes/event-store@1.6.37) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/event-store
|
||||||
|
|
||||||
## [1.6.36](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.35...@standardnotes/event-store@1.6.36) (2022-12-07)
|
## [1.6.36](https://github.com/standardnotes/server/compare/@standardnotes/event-store@1.6.35...@standardnotes/event-store@1.6.36) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/event-store
|
**Note:** Version bump only for package @standardnotes/event-store
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/event-store",
|
"name": "@standardnotes/event-store",
|
||||||
"version": "1.6.36",
|
"version": "1.6.44",
|
||||||
"description": "Event Store Service",
|
"description": "Event Store Service",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "dist/src/index.js",
|
"main": "dist/src/index.js",
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ export class ContainerConfigLoader {
|
|||||||
['LISTED_ACCOUNT_REQUESTED', container.get(TYPES.EventHandler)],
|
['LISTED_ACCOUNT_REQUESTED', container.get(TYPES.EventHandler)],
|
||||||
['LISTED_ACCOUNT_CREATED', container.get(TYPES.EventHandler)],
|
['LISTED_ACCOUNT_CREATED', container.get(TYPES.EventHandler)],
|
||||||
['LISTED_ACCOUNT_DELETED', container.get(TYPES.EventHandler)],
|
['LISTED_ACCOUNT_DELETED', container.get(TYPES.EventHandler)],
|
||||||
['USER_SIGNED_IN', container.get(TYPES.EventHandler)],
|
['EMAIL_REQUESTED', container.get(TYPES.EventHandler)],
|
||||||
['SHARED_SUBSCRIPTION_INVITATION_CREATED', container.get(TYPES.EventHandler)],
|
['SHARED_SUBSCRIPTION_INVITATION_CREATED', container.get(TYPES.EventHandler)],
|
||||||
['EMAIL_BACKUP_ATTACHMENT_CREATED', container.get(TYPES.EventHandler)],
|
['EMAIL_BACKUP_ATTACHMENT_CREATED', container.get(TYPES.EventHandler)],
|
||||||
['EMAIL_BACKUP_REQUESTED', container.get(TYPES.EventHandler)],
|
['EMAIL_BACKUP_REQUESTED', container.get(TYPES.EventHandler)],
|
||||||
|
|||||||
@@ -3,6 +3,34 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.8.43](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.8.42...@standardnotes/files-server@1.8.43) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/files-server
|
||||||
|
|
||||||
|
## [1.8.42](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.8.41...@standardnotes/files-server@1.8.42) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/files-server
|
||||||
|
|
||||||
|
## [1.8.41](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.8.40...@standardnotes/files-server@1.8.41) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/files-server
|
||||||
|
|
||||||
|
## [1.8.40](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.8.39...@standardnotes/files-server@1.8.40) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/files-server
|
||||||
|
|
||||||
|
## [1.8.39](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.8.38...@standardnotes/files-server@1.8.39) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/files-server
|
||||||
|
|
||||||
|
## [1.8.38](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.8.37...@standardnotes/files-server@1.8.38) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/files-server
|
||||||
|
|
||||||
|
## [1.8.37](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.8.36...@standardnotes/files-server@1.8.37) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/files-server
|
||||||
|
|
||||||
## [1.8.36](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.8.35...@standardnotes/files-server@1.8.36) (2022-12-07)
|
## [1.8.36](https://github.com/standardnotes/files/compare/@standardnotes/files-server@1.8.35...@standardnotes/files-server@1.8.36) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/files-server
|
**Note:** Version bump only for package @standardnotes/files-server
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/files-server",
|
"name": "@standardnotes/files-server",
|
||||||
"version": "1.8.36",
|
"version": "1.8.43",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,34 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.9.16](https://github.com/standardnotes/server/compare/@standardnotes/revisions-server@1.9.15...@standardnotes/revisions-server@1.9.16) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/revisions-server
|
||||||
|
|
||||||
|
## [1.9.15](https://github.com/standardnotes/server/compare/@standardnotes/revisions-server@1.9.14...@standardnotes/revisions-server@1.9.15) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/revisions-server
|
||||||
|
|
||||||
|
## [1.9.14](https://github.com/standardnotes/server/compare/@standardnotes/revisions-server@1.9.13...@standardnotes/revisions-server@1.9.14) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/revisions-server
|
||||||
|
|
||||||
|
## [1.9.13](https://github.com/standardnotes/server/compare/@standardnotes/revisions-server@1.9.12...@standardnotes/revisions-server@1.9.13) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/revisions-server
|
||||||
|
|
||||||
|
## [1.9.12](https://github.com/standardnotes/server/compare/@standardnotes/revisions-server@1.9.11...@standardnotes/revisions-server@1.9.12) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/revisions-server
|
||||||
|
|
||||||
|
## [1.9.11](https://github.com/standardnotes/server/compare/@standardnotes/revisions-server@1.9.10...@standardnotes/revisions-server@1.9.11) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/revisions-server
|
||||||
|
|
||||||
|
## [1.9.10](https://github.com/standardnotes/server/compare/@standardnotes/revisions-server@1.9.9...@standardnotes/revisions-server@1.9.10) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/revisions-server
|
||||||
|
|
||||||
## [1.9.9](https://github.com/standardnotes/server/compare/@standardnotes/revisions-server@1.9.8...@standardnotes/revisions-server@1.9.9) (2022-12-07)
|
## [1.9.9](https://github.com/standardnotes/server/compare/@standardnotes/revisions-server@1.9.8...@standardnotes/revisions-server@1.9.9) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/revisions-server
|
**Note:** Version bump only for package @standardnotes/revisions-server
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/revisions-server",
|
"name": "@standardnotes/revisions-server",
|
||||||
"version": "1.9.9",
|
"version": "1.9.16",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,34 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.14.8](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.14.7...@standardnotes/scheduler-server@1.14.8) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/scheduler-server
|
||||||
|
|
||||||
|
## [1.14.7](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.14.6...@standardnotes/scheduler-server@1.14.7) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/scheduler-server
|
||||||
|
|
||||||
|
## [1.14.6](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.14.5...@standardnotes/scheduler-server@1.14.6) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/scheduler-server
|
||||||
|
|
||||||
|
## [1.14.5](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.14.4...@standardnotes/scheduler-server@1.14.5) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/scheduler-server
|
||||||
|
|
||||||
|
## [1.14.4](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.14.3...@standardnotes/scheduler-server@1.14.4) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/scheduler-server
|
||||||
|
|
||||||
|
## [1.14.3](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.14.2...@standardnotes/scheduler-server@1.14.3) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/scheduler-server
|
||||||
|
|
||||||
|
## [1.14.2](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.14.1...@standardnotes/scheduler-server@1.14.2) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/scheduler-server
|
||||||
|
|
||||||
## [1.14.1](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.14.0...@standardnotes/scheduler-server@1.14.1) (2022-12-07)
|
## [1.14.1](https://github.com/standardnotes/server/compare/@standardnotes/scheduler-server@1.14.0...@standardnotes/scheduler-server@1.14.1) (2022-12-07)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/scheduler-server",
|
"name": "@standardnotes/scheduler-server",
|
||||||
"version": "1.14.1",
|
"version": "1.14.8",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,34 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.20.16](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.20.15...@standardnotes/syncing-server@1.20.16) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/syncing-server
|
||||||
|
|
||||||
|
## [1.20.15](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.20.14...@standardnotes/syncing-server@1.20.15) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/syncing-server
|
||||||
|
|
||||||
|
## [1.20.14](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.20.13...@standardnotes/syncing-server@1.20.14) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/syncing-server
|
||||||
|
|
||||||
|
## [1.20.13](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.20.12...@standardnotes/syncing-server@1.20.13) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/syncing-server
|
||||||
|
|
||||||
|
## [1.20.12](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.20.11...@standardnotes/syncing-server@1.20.12) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/syncing-server
|
||||||
|
|
||||||
|
## [1.20.11](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.20.10...@standardnotes/syncing-server@1.20.11) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/syncing-server
|
||||||
|
|
||||||
|
## [1.20.10](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.20.9...@standardnotes/syncing-server@1.20.10) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/syncing-server
|
||||||
|
|
||||||
## [1.20.9](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.20.8...@standardnotes/syncing-server@1.20.9) (2022-12-07)
|
## [1.20.9](https://github.com/standardnotes/syncing-server-js/compare/@standardnotes/syncing-server@1.20.8...@standardnotes/syncing-server@1.20.9) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/syncing-server
|
**Note:** Version bump only for package @standardnotes/syncing-server
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/syncing-server",
|
"name": "@standardnotes/syncing-server",
|
||||||
"version": "1.20.9",
|
"version": "1.20.16",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,34 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.4.44](https://github.com/standardnotes/server/compare/@standardnotes/websockets-server@1.4.43...@standardnotes/websockets-server@1.4.44) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/websockets-server
|
||||||
|
|
||||||
|
## [1.4.43](https://github.com/standardnotes/server/compare/@standardnotes/websockets-server@1.4.42...@standardnotes/websockets-server@1.4.43) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/websockets-server
|
||||||
|
|
||||||
|
## [1.4.42](https://github.com/standardnotes/server/compare/@standardnotes/websockets-server@1.4.41...@standardnotes/websockets-server@1.4.42) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/websockets-server
|
||||||
|
|
||||||
|
## [1.4.41](https://github.com/standardnotes/server/compare/@standardnotes/websockets-server@1.4.40...@standardnotes/websockets-server@1.4.41) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/websockets-server
|
||||||
|
|
||||||
|
## [1.4.40](https://github.com/standardnotes/server/compare/@standardnotes/websockets-server@1.4.39...@standardnotes/websockets-server@1.4.40) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/websockets-server
|
||||||
|
|
||||||
|
## [1.4.39](https://github.com/standardnotes/server/compare/@standardnotes/websockets-server@1.4.38...@standardnotes/websockets-server@1.4.39) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/websockets-server
|
||||||
|
|
||||||
|
## [1.4.38](https://github.com/standardnotes/server/compare/@standardnotes/websockets-server@1.4.37...@standardnotes/websockets-server@1.4.38) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/websockets-server
|
||||||
|
|
||||||
## [1.4.37](https://github.com/standardnotes/server/compare/@standardnotes/websockets-server@1.4.36...@standardnotes/websockets-server@1.4.37) (2022-12-07)
|
## [1.4.37](https://github.com/standardnotes/server/compare/@standardnotes/websockets-server@1.4.36...@standardnotes/websockets-server@1.4.37) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/websockets-server
|
**Note:** Version bump only for package @standardnotes/websockets-server
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/websockets-server",
|
"name": "@standardnotes/websockets-server",
|
||||||
"version": "1.4.37",
|
"version": "1.4.44",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,34 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.17.43](https://github.com/standardnotes/server/compare/@standardnotes/workspace-server@1.17.42...@standardnotes/workspace-server@1.17.43) (2022-12-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/workspace-server
|
||||||
|
|
||||||
|
## [1.17.42](https://github.com/standardnotes/server/compare/@standardnotes/workspace-server@1.17.41...@standardnotes/workspace-server@1.17.42) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/workspace-server
|
||||||
|
|
||||||
|
## [1.17.41](https://github.com/standardnotes/server/compare/@standardnotes/workspace-server@1.17.40...@standardnotes/workspace-server@1.17.41) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/workspace-server
|
||||||
|
|
||||||
|
## [1.17.40](https://github.com/standardnotes/server/compare/@standardnotes/workspace-server@1.17.39...@standardnotes/workspace-server@1.17.40) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/workspace-server
|
||||||
|
|
||||||
|
## [1.17.39](https://github.com/standardnotes/server/compare/@standardnotes/workspace-server@1.17.38...@standardnotes/workspace-server@1.17.39) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/workspace-server
|
||||||
|
|
||||||
|
## [1.17.38](https://github.com/standardnotes/server/compare/@standardnotes/workspace-server@1.17.37...@standardnotes/workspace-server@1.17.38) (2022-12-08)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/workspace-server
|
||||||
|
|
||||||
|
## [1.17.37](https://github.com/standardnotes/server/compare/@standardnotes/workspace-server@1.17.36...@standardnotes/workspace-server@1.17.37) (2022-12-07)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @standardnotes/workspace-server
|
||||||
|
|
||||||
## [1.17.36](https://github.com/standardnotes/server/compare/@standardnotes/workspace-server@1.17.35...@standardnotes/workspace-server@1.17.36) (2022-12-07)
|
## [1.17.36](https://github.com/standardnotes/server/compare/@standardnotes/workspace-server@1.17.35...@standardnotes/workspace-server@1.17.36) (2022-12-07)
|
||||||
|
|
||||||
**Note:** Version bump only for package @standardnotes/workspace-server
|
**Note:** Version bump only for package @standardnotes/workspace-server
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/workspace-server",
|
"name": "@standardnotes/workspace-server",
|
||||||
"version": "1.17.36",
|
"version": "1.17.43",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0 <19.0.0"
|
"node": ">=18.0.0 <19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user