|
@@ -157,6 +157,7 @@ import { SharedVaultSnjsFilter } from '../Domain/Item/SaveRule/SharedVaultSnjsFi
|
|
import { UpdateStorageQuotaUsedInSharedVault } from '../Domain/UseCase/SharedVaults/UpdateStorageQuotaUsedInSharedVault/UpdateStorageQuotaUsedInSharedVault'
|
|
import { UpdateStorageQuotaUsedInSharedVault } from '../Domain/UseCase/SharedVaults/UpdateStorageQuotaUsedInSharedVault/UpdateStorageQuotaUsedInSharedVault'
|
|
import { SharedVaultFileUploadedEventHandler } from '../Domain/Handler/SharedVaultFileUploadedEventHandler'
|
|
import { SharedVaultFileUploadedEventHandler } from '../Domain/Handler/SharedVaultFileUploadedEventHandler'
|
|
import { SharedVaultFileRemovedEventHandler } from '../Domain/Handler/SharedVaultFileRemovedEventHandler'
|
|
import { SharedVaultFileRemovedEventHandler } from '../Domain/Handler/SharedVaultFileRemovedEventHandler'
|
|
|
|
+import { AddNotificationsForUsers } from '../Domain/UseCase/Messaging/AddNotificationsForUsers/AddNotificationsForUsers'
|
|
|
|
|
|
export class ContainerConfigLoader {
|
|
export class ContainerConfigLoader {
|
|
private readonly DEFAULT_CONTENT_SIZE_TRANSFER_LIMIT = 10_000_000
|
|
private readonly DEFAULT_CONTENT_SIZE_TRANSFER_LIMIT = 10_000_000
|
|
@@ -562,6 +563,14 @@ export class ContainerConfigLoader {
|
|
.toConstantValue(
|
|
.toConstantValue(
|
|
new AddNotificationForUser(container.get(TYPES.Sync_NotificationRepository), container.get(TYPES.Sync_Timer)),
|
|
new AddNotificationForUser(container.get(TYPES.Sync_NotificationRepository), container.get(TYPES.Sync_Timer)),
|
|
)
|
|
)
|
|
|
|
+ container
|
|
|
|
+ .bind<AddNotificationsForUsers>(TYPES.Sync_AddNotificationsForUsers)
|
|
|
|
+ .toConstantValue(
|
|
|
|
+ new AddNotificationsForUsers(
|
|
|
|
+ container.get<SharedVaultUserRepositoryInterface>(TYPES.Sync_SharedVaultUserRepository),
|
|
|
|
+ container.get<AddNotificationForUser>(TYPES.Sync_AddNotificationForUser),
|
|
|
|
+ ),
|
|
|
|
+ )
|
|
container
|
|
container
|
|
.bind<RemoveNotificationsForUser>(TYPES.Sync_RemoveNotificationsForUser)
|
|
.bind<RemoveNotificationsForUser>(TYPES.Sync_RemoveNotificationsForUser)
|
|
.toConstantValue(new RemoveNotificationsForUser(container.get(TYPES.Sync_NotificationRepository)))
|
|
.toConstantValue(new RemoveNotificationsForUser(container.get(TYPES.Sync_NotificationRepository)))
|
|
@@ -831,6 +840,7 @@ export class ContainerConfigLoader {
|
|
.toConstantValue(
|
|
.toConstantValue(
|
|
new SharedVaultFileUploadedEventHandler(
|
|
new SharedVaultFileUploadedEventHandler(
|
|
container.get<UpdateStorageQuotaUsedInSharedVault>(TYPES.Sync_UpdateStorageQuotaUsedInSharedVault),
|
|
container.get<UpdateStorageQuotaUsedInSharedVault>(TYPES.Sync_UpdateStorageQuotaUsedInSharedVault),
|
|
|
|
+ container.get<AddNotificationsForUsers>(TYPES.Sync_AddNotificationsForUsers),
|
|
container.get<winston.Logger>(TYPES.Sync_Logger),
|
|
container.get<winston.Logger>(TYPES.Sync_Logger),
|
|
),
|
|
),
|
|
)
|
|
)
|
|
@@ -839,6 +849,7 @@ export class ContainerConfigLoader {
|
|
.toConstantValue(
|
|
.toConstantValue(
|
|
new SharedVaultFileRemovedEventHandler(
|
|
new SharedVaultFileRemovedEventHandler(
|
|
container.get<UpdateStorageQuotaUsedInSharedVault>(TYPES.Sync_UpdateStorageQuotaUsedInSharedVault),
|
|
container.get<UpdateStorageQuotaUsedInSharedVault>(TYPES.Sync_UpdateStorageQuotaUsedInSharedVault),
|
|
|
|
+ container.get<AddNotificationsForUsers>(TYPES.Sync_AddNotificationsForUsers),
|
|
container.get<winston.Logger>(TYPES.Sync_Logger),
|
|
container.get<winston.Logger>(TYPES.Sync_Logger),
|
|
),
|
|
),
|
|
)
|
|
)
|