-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproviders.ts
62 lines (52 loc) · 1.44 KB
/
providers.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { PresentationRepositoryImpl, UserRepositoryImpl } from './repositories';
import {
UserEntity,
PresentationEntity,
PresentationCommentEntity,
PresentationLikeEntity,
} from './entities';
import { Provider } from '@platform/util-shared';
import { CryptoServiceImpl } from './services';
import {
provideAuthServerFacade,
provideCreatePresentationServerUseCase,
provideCreateUserServerUseCase,
provideCryptoService,
provideFindUserPresentationsServerUseCase,
provideFindUsersServerUseCase,
providePresentationRepository,
providePresentationServerFacade,
provideSignInServerUseCase,
provideSignUpServerUseCase,
provideUserRepository,
provideUserServerFacade,
} from './providers/index';
export const dataSourceAccountProviders: Provider[] = [
/**
* User
*/
provideUserRepository(UserRepositoryImpl),
provideCreateUserServerUseCase(),
provideFindUsersServerUseCase(),
provideUserServerFacade(),
/**
* Auth
*/
provideCryptoService(CryptoServiceImpl),
provideSignInServerUseCase(),
provideSignUpServerUseCase(),
provideAuthServerFacade(),
/**
* Presentation
*/
providePresentationRepository(PresentationRepositoryImpl),
provideCreatePresentationServerUseCase(),
provideFindUserPresentationsServerUseCase(),
providePresentationServerFacade(),
];
export const dataSourceAccountEntities = [
UserEntity,
PresentationEntity,
PresentationCommentEntity,
PresentationLikeEntity,
];