Files
oneuptime/Common/Server/Services/Index.ts

445 lines
18 KiB
TypeScript

import AccessTokenService from "./AccessTokenService";
import AcmeCertificateService from "./AcmeCertificateService";
// import LogService from './LogService';
import AnalyticsDatabaseService from "./AnalyticsDatabaseService";
import ApiKeyPermissionService from "./ApiKeyPermissionService";
// API Keys
import ApiKeyService from "./ApiKeyService";
import BaseService from "./BaseService";
import BillingInvoiceService from "./BillingInvoiceService";
import BillingPaymentMethodsService from "./BillingPaymentMethodService";
import BillingService from "./BillingService";
import CallLogService from "./CallLogService";
import CallService from "./CallService";
import DataMigrationService from "./DataMigrationService";
import DomainService from "./DomainService";
import EmailLogService from "./EmailLogService";
import EmailVerificationTokenService from "./EmailVerificationTokenService";
import FileService from "./FileService";
import GreenlockCertificateService from "./GreenlockCertificateService";
// Greenlock
import GreenlockChallengeService from "./GreenlockChallengeService";
import IncidentCustomFieldService from "./IncidentCustomFieldService";
import IncidentInternalNoteService from "./IncidentInternalNoteService";
import IncidentOwnerTeamService from "./IncidentOwnerTeamService";
import IncidentOwnerUserService from "./IncidentOwnerUserService";
import IncidentRoleService from "./IncidentRoleService";
import IncidentMemberService from "./IncidentMemberService";
import IncidentPublicNoteService from "./IncidentPublicNoteService";
// Incidents
import IncidentService from "./IncidentService";
import IncidentSeverityService from "./IncidentSeverityService";
import IncidentStateService from "./IncidentStateService";
import IncidentStateTimelineService from "./IncidentStateTimelineService";
//Labels.
import LabelService from "./LabelService";
import KubernetesClusterService from "./KubernetesClusterService";
import LlmProviderService from "./LlmProviderService";
import LogService from "./LogService";
import MailService from "./MailService";
import MetricService from "./MetricService";
import MonitorCustomFieldService from "./MonitorCustomFieldService";
import MonitorGroupOwnerTeamService from "./MonitorGroupOwnerTeamService";
import MonitorGroupOwnerUserService from "./MonitorGroupOwnerUserService";
import MonitorGroupResourceService from "./MonitorGroupResourceService";
import MonitorGroupService from "./MonitorGroupService";
import MonitorOwnerTeamService from "./MonitorOwnerTeamService";
import MonitorOwnerUserService from "./MonitorOwnerUserService";
import MonitorProbeService from "./MonitorProbeService";
import MonitorSecretService from "./MonitorSecretService";
// Monitors
import MonitorService from "./MonitorService";
import MonitorFeedService from "./MonitorFeedService";
import MonitorStatusService from "./MonitorStatusService";
import MonitorStatusTimelineService from "./MonitorStatusTimelineService";
import NotificationService from "./NotificationService";
import OnCallDutyPolicyCustomFieldService from "./OnCallDutyPolicyCustomFieldService";
import OnCallDutyPolicyEscalationRuleScheduleService from "./OnCallDutyPolicyEscalationRuleScheduleService";
import OnCallDutyPolicyEscalationRuleService from "./OnCallDutyPolicyEscalationRuleService";
import OnCallDutyPolicyEscalationRuleTeamService from "./OnCallDutyPolicyEscalationRuleTeamService";
import OnCallDutyPolicyEscalationRuleUserService from "./OnCallDutyPolicyEscalationRuleUserService";
import OnCallDutyPolicyExecutionLogService from "./OnCallDutyPolicyExecutionLogService";
import OnCallDutyPolicyExecutionLogTimelineService from "./OnCallDutyPolicyExecutionLogTimelineService";
import OnCallDutyPolicyScheduleLayerService from "./OnCallDutyPolicyScheduleLayerService";
import OnCallDutyPolicyScheduleLayerUserService from "./OnCallDutyPolicyScheduleLayerUserService";
import OnCallDutyPolicyScheduleService from "./OnCallDutyPolicyScheduleService";
// On-Call Duty
import OnCallDutyPolicyService from "./OnCallDutyPolicyService";
import ProbeService from "./ProbeService";
import AIAgentService from "./AIAgentService";
import AIAgentOwnerUserService from "./AIAgentOwnerUserService";
import AIAgentOwnerTeamService from "./AIAgentOwnerTeamService";
import AIAgentTaskLogService from "./AIAgentTaskLogService";
import AIAgentTaskPullRequestService from "./AIAgentTaskPullRequestService";
import ProjectCallSMSConfigService from "./ProjectCallSMSConfigService";
import ProjectService from "./ProjectService";
import ProjectUserProfileService from "./ProjectUserProfileService";
import ProfileService from "./ProfileService";
import ProfileSampleService from "./ProfileSampleService";
// Project SMTP Config.
import ProjectSmtpConfigService from "./ProjectSmtpConfigService";
import ProjectSsoService from "./ProjectSsoService";
import PromoCodeService from "./PromoCodeService";
import EnterpriseLicenseService from "./EnterpriseLicenseService";
import OpenSourceDeploymentService from "./OpenSourceDeploymentService";
import ResellerPlanService from "./ResellerPlanService";
import ResellerService from "./ResellerService";
import ScheduledMaintenanceCustomFieldService from "./ScheduledMaintenanceCustomFieldService";
import ScheduledMaintenanceInternalNoteService from "./ScheduledMaintenanceInternalNoteService";
import ScheduledMaintenanceOwnerTeamService from "./ScheduledMaintenanceOwnerTeamService";
import ScheduledMaintenanceOwnerUserService from "./ScheduledMaintenanceOwnerUserService";
import ScheduledMaintenancePublicNoteService from "./ScheduledMaintenancePublicNoteService";
// ScheduledMaintenances
import ScheduledMaintenanceService from "./ScheduledMaintenanceService";
import ScheduledMaintenanceStateService from "./ScheduledMaintenanceStateService";
import ScheduledMaintenanceStateTimelineService from "./ScheduledMaintenanceStateTimelineService";
import ServiceOwnerTeamService from "./ServiceOwnerTeamService";
import ServiceOwnerUserService from "./ServiceOwnerUserService";
import ServiceService from "./ServiceService";
import ServiceMonitorService from "./ServiceMonitorService";
import ServiceCodeRepositoryService from "./ServiceCodeRepositoryService";
import ShortLinkService from "./ShortLinkService";
// SMS Log Service
import SmsLogService from "./SmsLogService";
import WhatsAppLogService from "./WhatsAppLogService";
import SmsService from "./SmsService";
import SpanService from "./SpanService";
import StatusPageAnnouncementService from "./StatusPageAnnouncementService";
import StatusPageAnnouncementTemplateService from "./StatusPageAnnouncementTemplateService";
import StatusPageCustomFieldService from "./StatusPageCustomFieldService";
import DashboardDomainService from "./DashboardDomainService";
import StatusPageDomainService from "./StatusPageDomainService";
import StatusPageFooterLinkService from "./StatusPageFooterLinkService";
import StatusPageGroupService from "./StatusPageGroupService";
import StatusPageHeaderLinkService from "./StatusPageHeaderLinkService";
import StatusPageHistoryChartBarColorRuleService from "./StatusPageHistoryChartBarColorRuleService";
import StatusPageOwnerTeamService from "./StatusPageOwnerTeamService";
import StatusPageOwnerUserService from "./StatusPageOwnerUserService";
import StatusPagePrivateUserService from "./StatusPagePrivateUserService";
import StatusPagePrivateUserSessionService from "./StatusPagePrivateUserSessionService";
import StatusPageResourceService from "./StatusPageResourceService";
// Status Page
import StatusPageService from "./StatusPageService";
import StatusPageSsoService from "./StatusPageSsoService";
import StatusPageSubscriberService from "./StatusPageSubscriberService";
import StatusPageSubscriberNotificationTemplateService from "./StatusPageSubscriberNotificationTemplateService";
import StatusPageSubscriberNotificationTemplateStatusPageService from "./StatusPageSubscriberNotificationTemplateStatusPageService";
import TeamMemberService from "./TeamMemberService";
import TeamMemberCustomFieldService from "./TeamMemberCustomFieldService";
import TeamPermissionService from "./TeamPermissionService";
import TeamComplianceSettingService from "./TeamComplianceSettingService";
// Team
import TeamService from "./TeamService";
import UsageBillingService from "./TelemetryUsageBillingService";
import UserCallService from "./UserCallService";
import UserEmailService from "./UserEmailService";
import UserNotificationRuleService from "./UserNotificationRuleService";
import UserNotificationSettingService from "./UserNotificationSettingService";
import UserOnCallLogService from "./UserOnCallLogService";
import UserOnCallLogTimelineService from "./UserOnCallLogTimelineService";
import UserService from "./UserService";
import UserSessionService from "./UserSessionService";
import UserTotpAuthService from "./UserTotpAuthService";
import UserWebAuthnService from "./UserWebAuthnService";
import UserSmsService from "./UserSmsService";
import UserIncomingCallNumberService from "./UserIncomingCallNumberService";
import UserWhatsAppService from "./UserWhatsAppService";
import WorkflowLogService from "./WorkflowLogService";
// Workflows.
import WorkflowService from "./WorkflowService";
import WorkflowVariablesService from "./WorkflowVariableService";
import AnalyticsBaseModel from "../../Models/AnalyticsModels/AnalyticsBaseModel/AnalyticsBaseModel";
import ServiceDependencyService from "./ServiceDependencyService";
import TelemetryExceptionService from "./TelemetryExceptionService";
import ExceptionInstanceService from "./ExceptionInstanceService";
import ScheduledMaintenanceTemplateService from "./ScheduledMaintenanceTemplateService";
import ScheduledMaintenanceTemplateOwnerTeamService from "./ScheduledMaintenanceTemplateOwnerTeamService";
import ScheduledMaintenanceTemplateOwnerUserService from "./ScheduledMaintenanceTemplateOwnerUserService";
// Alert Services
import AlertStateService from "./AlertStateService";
import AlertService from "./AlertService";
import AlertCustomFieldService from "./AlertCustomFieldService";
import AlertStateTimelineService from "./AlertStateTimelineService";
import AlertInternalNoteService from "./AlertInternalNoteService";
import AlertOwnerTeamService from "./AlertOwnerTeamService";
import AlertOwnerUserService from "./AlertOwnerUserService";
import AlertSeverityService from "./AlertSeverityService";
import AlertNoteTemplateService from "./AlertNoteTemplateService";
// AlertEpisode Services
import AlertEpisodeService from "./AlertEpisodeService";
import AlertEpisodeFeedService from "./AlertEpisodeFeedService";
import AlertEpisodeInternalNoteService from "./AlertEpisodeInternalNoteService";
import AlertEpisodeMemberService from "./AlertEpisodeMemberService";
import AlertEpisodeOwnerTeamService from "./AlertEpisodeOwnerTeamService";
import AlertEpisodeOwnerUserService from "./AlertEpisodeOwnerUserService";
import AlertEpisodeStateTimelineService from "./AlertEpisodeStateTimelineService";
// IncidentEpisode Services
import IncidentEpisodeService from "./IncidentEpisodeService";
import IncidentEpisodeFeedService from "./IncidentEpisodeFeedService";
import IncidentEpisodeInternalNoteService from "./IncidentEpisodeInternalNoteService";
import IncidentEpisodeMemberService from "./IncidentEpisodeMemberService";
import IncidentEpisodeRoleMemberService from "./IncidentEpisodeRoleMemberService";
import IncidentEpisodeOwnerTeamService from "./IncidentEpisodeOwnerTeamService";
import IncidentEpisodeOwnerUserService from "./IncidentEpisodeOwnerUserService";
import IncidentEpisodeStateTimelineService from "./IncidentEpisodeStateTimelineService";
import IncidentEpisodePublicNoteService from "./IncidentEpisodePublicNoteService";
import AlertGroupingRuleService from "./AlertGroupingRuleService";
import IncidentSlaRuleService from "./IncidentSlaRuleService";
import IncidentSlaService from "./IncidentSlaService";
import TableViewService from "./TableViewService";
import ScheduledMaintenanceFeedService from "./ScheduledMaintenanceFeedService";
import AlertFeedService from "./AlertFeedService";
import IncidentFeedService from "./IncidentFeedService";
import MonitorTestService from "./MonitorTestService";
import WorkspaceProjectAuthTokenService from "./WorkspaceProjectAuthTokenService";
import WorkspaceUserAuthTokenService from "./WorkspaceUserAuthTokenService";
import WorkspaceSettingService from "./WorkspaceSettingService";
import WorkspaceNotificationRuleService from "./WorkspaceNotificationRuleService";
import WorkspaceNotificationLogService from "./WorkspaceNotificationLogService";
import WorkspaceNotificationSummaryService from "./WorkspaceNotificationSummaryService";
import OnCallDutyPolicyUserOverrideService from "./OnCallDutyPolicyUserOverrideService";
import MonitorLogService from "./MonitorLogService";
import OnCallDutyPolicyTimeLogService from "./OnCallDutyPolicyTimeLogService";
import ProjectSCIMLogService from "./ProjectSCIMLogService";
import StatusPageSCIMLogService from "./StatusPageSCIMLogService";
const services: Array<BaseService> = [
OnCallDutyPolicyTimeLogService,
AcmeCertificateService,
PromoCodeService,
EnterpriseLicenseService,
OpenSourceDeploymentService,
ResellerService,
ResellerPlanService,
// Import all services in current folder here.
AccessTokenService,
ApiKeyPermissionService,
ApiKeyService,
BillingInvoiceService,
BillingPaymentMethodsService,
BillingService,
CallLogService,
CallService,
DataMigrationService,
DomainService,
EmailLogService,
EmailVerificationTokenService,
FileService,
GreenlockCertificateService,
GreenlockChallengeService,
IncidentCustomFieldService,
IncidentInternalNoteService,
IncidentOwnerTeamService,
IncidentOwnerUserService,
IncidentRoleService,
IncidentMemberService,
IncidentPublicNoteService,
IncidentService,
IncidentSeverityService,
IncidentStateService,
IncidentStateTimelineService,
IncidentFeedService,
LabelService,
KubernetesClusterService,
LlmProviderService,
MailService,
MonitorCustomFieldService,
MonitorOwnerTeamService,
MonitorOwnerUserService,
MonitorProbeService,
MonitorService,
MonitorStatusService,
MonitorStatusTimelineService,
MonitorSecretService,
MonitorFeedService,
NotificationService,
OnCallDutyPolicyCustomFieldService,
OnCallDutyPolicyEscalationRuleService,
OnCallDutyPolicyEscalationRuleTeamService,
OnCallDutyPolicyEscalationRuleUserService,
OnCallDutyPolicyExecutionLogService,
OnCallDutyPolicyExecutionLogTimelineService,
OnCallDutyPolicyService,
OnCallDutyPolicyUserOverrideService,
ProjectService,
ProjectSmtpConfigService,
ProbeService,
AIAgentService,
AIAgentOwnerUserService,
AIAgentOwnerTeamService,
AIAgentTaskLogService,
AIAgentTaskPullRequestService,
ProjectSsoService,
ScheduledMaintenanceCustomFieldService,
ScheduledMaintenanceInternalNoteService,
ScheduledMaintenanceOwnerTeamService,
ScheduledMaintenanceOwnerUserService,
ScheduledMaintenancePublicNoteService,
ScheduledMaintenanceService,
ScheduledMaintenanceStateService,
ScheduledMaintenanceStateTimelineService,
ScheduledMaintenanceFeedService,
ShortLinkService,
SmsLogService,
WhatsAppLogService,
SmsService,
StatusPageAnnouncementService,
StatusPageAnnouncementTemplateService,
StatusPageCustomFieldService,
DashboardDomainService,
StatusPageDomainService,
StatusPageFooterLinkService,
StatusPageGroupService,
StatusPageHeaderLinkService,
StatusPageOwnerTeamService,
StatusPageOwnerUserService,
StatusPagePrivateUserService,
StatusPagePrivateUserSessionService,
StatusPageResourceService,
StatusPageService,
StatusPageSsoService,
StatusPageSubscriberService,
StatusPageSubscriberNotificationTemplateService,
StatusPageSubscriberNotificationTemplateStatusPageService,
StatusPageHistoryChartBarColorRuleService,
TeamMemberService,
TeamMemberCustomFieldService,
TeamPermissionService,
TeamComplianceSettingService,
TeamService,
UserService,
UserSessionService,
UserCallService,
UserEmailService,
UserNotificationRuleService,
UserNotificationSettingService,
UserOnCallLogService,
UserOnCallLogTimelineService,
UserSmsService,
UserIncomingCallNumberService,
UserWhatsAppService,
UserTotpAuthService,
UserWebAuthnService,
WorkflowLogService,
WorkflowService,
WorkflowVariablesService,
// Monitor Group Service
MonitorGroupService,
MonitorGroupResourceService,
MonitorGroupOwnerUserService,
MonitorGroupOwnerTeamService,
// On Call Duty Policy Schedule
OnCallDutyPolicyScheduleService,
OnCallDutyPolicyScheduleLayerUserService,
OnCallDutyPolicyScheduleLayerService,
OnCallDutyPolicyEscalationRuleScheduleService,
UsageBillingService,
ProjectCallSMSConfigService,
ProjectUserProfileService,
ServiceService,
ServiceOwnerTeamService,
ServiceOwnerUserService,
ServiceDependencyService,
ServiceMonitorService,
ServiceCodeRepositoryService,
TelemetryExceptionService,
// scheduled maintenance templates
ScheduledMaintenanceTemplateService,
ScheduledMaintenanceTemplateOwnerTeamService,
ScheduledMaintenanceTemplateOwnerUserService,
AlertStateService,
AlertService,
AlertCustomFieldService,
AlertStateTimelineService,
AlertInternalNoteService,
AlertOwnerTeamService,
AlertOwnerUserService,
AlertSeverityService,
AlertNoteTemplateService,
AlertFeedService,
// AlertEpisode Services
AlertEpisodeService,
AlertEpisodeFeedService,
AlertEpisodeInternalNoteService,
AlertEpisodeMemberService,
AlertEpisodeOwnerTeamService,
AlertEpisodeOwnerUserService,
AlertEpisodeStateTimelineService,
// IncidentEpisode Services
IncidentEpisodeService,
IncidentEpisodeFeedService,
IncidentEpisodeInternalNoteService,
IncidentEpisodeMemberService,
IncidentEpisodeRoleMemberService,
IncidentEpisodeOwnerTeamService,
IncidentEpisodeOwnerUserService,
IncidentEpisodeStateTimelineService,
IncidentEpisodePublicNoteService,
AlertGroupingRuleService,
IncidentSlaRuleService,
IncidentSlaService,
TableViewService,
MonitorTestService,
WorkspaceProjectAuthTokenService,
WorkspaceUserAuthTokenService,
WorkspaceSettingService,
WorkspaceNotificationRuleService,
WorkspaceNotificationLogService,
WorkspaceNotificationSummaryService,
ProjectSCIMLogService,
StatusPageSCIMLogService,
];
export const AnalyticsServices: Array<
AnalyticsDatabaseService<AnalyticsBaseModel>
> = [
LogService,
SpanService,
MetricService,
ExceptionInstanceService,
MonitorLogService,
ProfileService,
ProfileSampleService,
];
export default services;