2023-12-14 11:55:40 -05:00
|
|
|
import { ImmichLogger } from '@app/infra/logger';
|
2024-01-09 17:07:01 -05:00
|
|
|
import { Global, Module, Provider } from '@nestjs/common';
|
2023-11-01 04:13:34 +01:00
|
|
|
import { ActivityService } from './activity';
|
2023-03-26 04:46:48 +02:00
|
|
|
import { AlbumService } from './album';
|
2023-01-18 09:40:15 -05:00
|
|
|
import { APIKeyService } from './api-key';
|
2023-02-25 09:12:03 -05:00
|
|
|
import { AssetService } from './asset';
|
2023-08-24 21:28:50 +02:00
|
|
|
import { AuditService } from './audit';
|
2023-01-23 23:13:42 -05:00
|
|
|
import { AuthService } from './auth';
|
2023-12-21 11:06:26 -05:00
|
|
|
import { DatabaseService } from './database';
|
2023-03-20 11:55:28 -04:00
|
|
|
import { JobService } from './job';
|
2023-09-20 13:16:33 +02:00
|
|
|
import { LibraryService } from './library';
|
2023-02-25 09:12:03 -05:00
|
|
|
import { MediaService } from './media';
|
2023-05-26 08:52:52 -04:00
|
|
|
import { MetadataService } from './metadata';
|
2023-05-15 20:30:53 +03:00
|
|
|
import { PartnerService } from './partner';
|
2023-05-17 13:07:17 -04:00
|
|
|
import { PersonService } from './person';
|
2023-03-02 21:47:08 -05:00
|
|
|
import { SearchService } from './search';
|
2023-03-21 22:49:19 -04:00
|
|
|
import { ServerInfoService } from './server-info';
|
2023-06-01 22:09:57 -04:00
|
|
|
import { SharedLinkService } from './shared-link';
|
2023-02-25 09:12:03 -05:00
|
|
|
import { SmartInfoService } from './smart-info';
|
|
|
|
|
import { StorageService } from './storage';
|
|
|
|
|
import { StorageTemplateService } from './storage-template';
|
2024-01-01 13:16:44 -05:00
|
|
|
import { SystemConfigService } from './system-config';
|
2023-05-31 21:51:28 -04:00
|
|
|
import { TagService } from './tag';
|
2023-05-17 13:07:17 -04:00
|
|
|
import { UserService } from './user';
|
2023-01-11 21:34:36 -05:00
|
|
|
|
|
|
|
|
const providers: Provider[] = [
|
2023-11-01 04:13:34 +01:00
|
|
|
ActivityService,
|
2023-03-26 04:46:48 +02:00
|
|
|
AlbumService,
|
2023-01-18 09:40:15 -05:00
|
|
|
APIKeyService,
|
2023-05-15 20:30:53 +03:00
|
|
|
AssetService,
|
2023-08-24 21:28:50 +02:00
|
|
|
AuditService,
|
2023-01-23 23:13:42 -05:00
|
|
|
AuthService,
|
2023-12-21 11:06:26 -05:00
|
|
|
DatabaseService,
|
2024-01-09 17:07:01 -05:00
|
|
|
ImmichLogger,
|
2023-03-20 11:55:28 -04:00
|
|
|
JobService,
|
2024-01-09 17:07:01 -05:00
|
|
|
LibraryService,
|
2023-02-25 09:12:03 -05:00
|
|
|
MediaService,
|
2023-05-26 08:52:52 -04:00
|
|
|
MetadataService,
|
2023-05-17 13:07:17 -04:00
|
|
|
PersonService,
|
2023-05-15 20:30:53 +03:00
|
|
|
PartnerService,
|
|
|
|
|
SearchService,
|
2023-03-21 22:49:19 -04:00
|
|
|
ServerInfoService,
|
2023-06-01 22:09:57 -04:00
|
|
|
SharedLinkService,
|
2023-02-25 09:12:03 -05:00
|
|
|
SmartInfoService,
|
|
|
|
|
StorageService,
|
|
|
|
|
StorageTemplateService,
|
2023-01-21 11:11:55 -05:00
|
|
|
SystemConfigService,
|
2023-05-31 21:51:28 -04:00
|
|
|
TagService,
|
2023-01-11 21:34:36 -05:00
|
|
|
UserService,
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@Global()
|
2024-01-09 17:07:01 -05:00
|
|
|
@Module({
|
|
|
|
|
imports: [],
|
|
|
|
|
providers: [...providers],
|
|
|
|
|
exports: [...providers],
|
|
|
|
|
})
|
|
|
|
|
export class DomainModule {}
|