-
-
Notifications
You must be signed in to change notification settings - Fork 658
/
services.ts
116 lines (115 loc) · 6.07 KB
/
services.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import { AccessService } from '../services/access-service';
import AddonService from '../services/addon-service';
import ProjectService from '../features/project/project-service';
import StateService from '../services/state-service';
import StrategyService from '../services/strategy-service';
import TagTypeService from '../features/tag-type/tag-type-service';
import TagService from '../services/tag-service';
import ClientInstanceService from '../features/metrics/instance/instance-service';
import ContextService from '../services/context-service';
import VersionService from '../services/version-service';
import { ApiTokenService } from '../services/api-token-service';
import { EmailService } from '../services/email-service';
import UserService from '../services/user-service';
import ResetTokenService from '../services/reset-token-service';
import FeatureTypeService from '../services/feature-type-service';
import EventService from '../features/events/event-service';
import HealthService from '../services/health-service';
import SettingService from '../services/setting-service';
import SessionService from '../services/session-service';
import UserFeedbackService from '../services/user-feedback-service';
import FeatureToggleService from '../features/feature-toggle/feature-toggle-service';
import EnvironmentService from '../features/project-environments/environment-service';
import FeatureTagService from '../services/feature-tag-service';
import ProjectHealthService from '../services/project-health-service';
import ClientMetricsServiceV2 from '../features/metrics/client-metrics/metrics-service-v2';
import UserSplashService from '../services/user-splash-service';
import { OpenApiService } from '../services/openapi-service';
import { ClientSpecService } from '../services/client-spec-service';
import { PlaygroundService } from '../features/playground/playground-service';
import { GroupService } from '../services/group-service';
import { ProxyService } from '../proxy/proxy-service';
import EdgeService from '../services/edge-service';
import PatService from '../services/pat-service';
import { PublicSignupTokenService } from '../services/public-signup-token-service';
import { LastSeenService } from '../features/metrics/last-seen/last-seen-service';
import { InstanceStatsService } from '../features/instance-stats/instance-stats-service';
import { FavoritesService } from '../services/favorites-service';
import MaintenanceService from '../features/maintenance/maintenance-service';
import { AccountService } from '../services/account-service';
import { SchedulerService } from '../features/scheduler/scheduler-service';
import { Knex } from 'knex';
import {
IExportService,
IImportService,
} from '../features/export-import-toggles/export-import-service';
import { ISegmentService } from '../features/segment/segment-service-interface';
import ConfigurationRevisionService from '../features/feature-toggle/configuration-revision-service';
import EventAnnouncerService from '../services/event-announcer-service';
import { IPrivateProjectChecker } from '../features/private-project/privateProjectCheckerType';
import { DependentFeaturesService } from '../features/dependent-features/dependent-features-service';
import { WithTransactional } from '../db/transaction';
import { ClientFeatureToggleService } from '../features/client-feature-toggles/client-feature-toggle-service';
import { FeatureSearchService } from '../features/feature-search/feature-search-service';
import { InactiveUsersService } from '../users/inactive/inactive-users-service';
export interface IUnleashServices {
accessService: AccessService;
accountService: AccountService;
addonService: AddonService;
apiTokenService: ApiTokenService;
clientInstanceService: ClientInstanceService;
clientMetricsServiceV2: ClientMetricsServiceV2;
contextService: ContextService;
emailService: EmailService;
environmentService: EnvironmentService;
transactionalEnvironmentService: WithTransactional<EnvironmentService>;
eventService: EventService;
edgeService: EdgeService;
featureTagService: FeatureTagService;
featureToggleService: FeatureToggleService;
/** @deprecated use featureToggleService instead, both are interchangeable */
featureToggleServiceV2: FeatureToggleService;
featureTypeService: FeatureTypeService;
groupService: GroupService;
healthService: HealthService;
projectHealthService: ProjectHealthService;
projectService: ProjectService;
playgroundService: PlaygroundService;
proxyService: ProxyService;
publicSignupTokenService: PublicSignupTokenService;
resetTokenService: ResetTokenService;
sessionService: SessionService;
settingService: SettingService;
stateService: StateService;
strategyService: StrategyService;
tagService: TagService;
tagTypeService: TagTypeService;
transactionalTagTypeService: WithTransactional<TagTypeService>;
userFeedbackService: UserFeedbackService;
userService: UserService;
versionService: VersionService;
userSplashService: UserSplashService;
segmentService: ISegmentService;
openApiService: OpenApiService;
clientSpecService: ClientSpecService;
patService: PatService;
lastSeenService: LastSeenService;
instanceStatsService: InstanceStatsService;
favoritesService: FavoritesService;
maintenanceService: MaintenanceService;
exportService: IExportService;
importService: WithTransactional<IImportService>;
configurationRevisionService: ConfigurationRevisionService;
schedulerService: SchedulerService;
eventAnnouncerService: EventAnnouncerService;
transactionalFeatureToggleService: (
db: Knex.Transaction,
) => FeatureToggleService;
transactionalGroupService: (db: Knex.Transaction) => GroupService;
privateProjectChecker: IPrivateProjectChecker;
dependentFeaturesService: DependentFeaturesService;
transactionalDependentFeaturesService: WithTransactional<DependentFeaturesService>;
clientFeatureToggleService: ClientFeatureToggleService;
featureSearchService: FeatureSearchService;
inactiveUsersService: InactiveUsersService;
}