diff --git a/myteamwallet_backend/src/app.module.ts b/myteamwallet_backend/src/app.module.ts index bd5ca45..d3e4f0a 100644 --- a/myteamwallet_backend/src/app.module.ts +++ b/myteamwallet_backend/src/app.module.ts @@ -24,6 +24,7 @@ import { LoggingModule } from './database/logging/logging.module'; import { TranslateModule } from './translate/translate.module'; import { PenaltyModule } from './penalty/penalty.module'; import { RecurringTransactionsModule } from './recurring-transactions/recurring-transactions.module'; +import { CashboxExportModule } from './cashbox-export/cashbox-export.module'; @Module({ imports: [ @@ -59,6 +60,7 @@ import { RecurringTransactionsModule } from './recurring-transactions/recurring- TranslateModule, PenaltyModule, RecurringTransactionsModule, + CashboxExportModule, ], providers: [], }) diff --git a/myteamwallet_backend/src/cashbox-export/cashbox-export.module.ts b/myteamwallet_backend/src/cashbox-export/cashbox-export.module.ts new file mode 100644 index 0000000..36d2d7b --- /dev/null +++ b/myteamwallet_backend/src/cashbox-export/cashbox-export.module.ts @@ -0,0 +1,21 @@ +import { Module } from '@nestjs/common'; +import { TypeOrmModule } from '@nestjs/typeorm'; +import { MailModule } from 'src/mail/mail.module'; +import { Team } from 'src/teams/entities/team.entity'; +import { TeamsModule } from 'src/teams/teams.module'; +import { CashboxExportSubscription } from './entities/cashbox-export-subscription.entity'; +import { CashboxExportController } from './cashbox-export.controller'; +import { CashboxExportService } from './cashbox-export.service'; +import { CashboxExportSubscriptionService } from './cashbox-export-subscription.service'; +import { CashboxExportScheduler } from './cashbox-export.scheduler'; + +@Module({ + controllers: [CashboxExportController], + providers: [CashboxExportService, CashboxExportSubscriptionService, CashboxExportScheduler], + imports: [ + TypeOrmModule.forFeature([Team, CashboxExportSubscription]), + TeamsModule, + MailModule, + ], +}) +export class CashboxExportModule {} diff --git a/myteamwallet_backend/src/database/logging/model/logging-event.type.ts b/myteamwallet_backend/src/database/logging/model/logging-event.type.ts index 2c9d6ec..82013a5 100644 --- a/myteamwallet_backend/src/database/logging/model/logging-event.type.ts +++ b/myteamwallet_backend/src/database/logging/model/logging-event.type.ts @@ -31,6 +31,8 @@ export type LOGEVENT = | 'recurring_transaction_update' | 'recurring_transaction_delete' | 'recurring_transaction_run' + | 'cashbox_export_download' + | 'cashbox_export_subscription_update' | 'cashbox_export_subscription_run' | 'cashbox_export_subscription_run_fail';