* create utils service * getLastSyncHistoryId * getHistory * add historyTypes messageAdded and messageDeleted * getMessageIdsAndThreadIdsNotInDatabase * wip * fix messageThreadId null * no need to fetch threads anymore * get messagesAdded in partial sync * adding errors * save lastSyncHistoryId * improve * renaming * create partial sync job * improve partial sync * adding messages with partial sync is working * now adding messages with partial sync is working * deleting messages and empty threads is working * wip * wip * fix bug to delete threads * update partial sync to cover edge cases * renaming * modify ambiguous naming * renaming
26 lines
1001 B
TypeScript
26 lines
1001 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { FeatureFlagEntity } from 'src/core/feature-flag/feature-flag.entity';
|
|
import { TypeORMModule } from 'src/database/typeorm/typeorm.module';
|
|
import { DataSourceModule } from 'src/metadata/data-source/data-source.module';
|
|
import { GmailFullSyncCommand } from 'src/workspace/messaging/commands/gmail-full-sync.command';
|
|
import { GmailPartialSyncCommand } from 'src/workspace/messaging/commands/gmail-partial-sync.command';
|
|
import { MessagingModule } from 'src/workspace/messaging/messaging.module';
|
|
import { MessagingUtilsService } from 'src/workspace/messaging/services/messaging-utils.service';
|
|
|
|
@Module({
|
|
imports: [
|
|
MessagingModule,
|
|
DataSourceModule,
|
|
TypeORMModule,
|
|
TypeOrmModule.forFeature([FeatureFlagEntity], 'core'),
|
|
],
|
|
providers: [
|
|
GmailFullSyncCommand,
|
|
GmailPartialSyncCommand,
|
|
MessagingUtilsService,
|
|
],
|
|
})
|
|
export class FetchWorkspaceMessagesCommandsModule {}
|