@oneuptime/common 7.0.3831 → 7.0.3864
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/GlobalConfig.ts +22 -4
- package/Models/DatabaseModels/Index.ts +5 -0
- package/Models/DatabaseModels/Monitor.ts +20 -0
- package/Models/DatabaseModels/MonitorFeed.ts +520 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.ts +48 -0
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.ts +502 -0
- package/Models/DatabaseModels/ProjectCallSMSConfig.ts +35 -4
- package/Models/DatabaseModels/UserOnCallLog.ts +43 -0
- package/Server/API/BaseAPI.ts +8 -0
- package/Server/API/BaseAnalyticsAPI.ts +9 -0
- package/Server/API/CommonAPI.ts +2 -0
- package/Server/API/SlackAPI.ts +14 -0
- package/Server/API/StatusAPI.ts +172 -127
- package/Server/API/StatusPageAPI.ts +7 -0
- package/Server/DatabaseConfig.ts +8 -0
- package/Server/Infrastructure/ClickhouseDatabase.ts +4 -0
- package/Server/Infrastructure/GlobalCache.ts +8 -0
- package/Server/Infrastructure/LocalCache.ts +11 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717605043663-InitialMigration.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717678334852-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717839110671-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717849921874-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1717955235341-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718037833516-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718100824584-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718101665865-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718119926223-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718124277321-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718126316684-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718188920011-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718203144945-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718285877004-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718618155447-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718711669847-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1718879960254-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719227548476-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719228104620-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719247426296-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719348009053-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719827175832-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719831213463-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719838746775-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1719915433542-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720024126646-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720532068612-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720538999941-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720785305192-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720805596648-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720806196274-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1720812937067-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721075917289-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721152139648-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721159743714-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721754545771-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1721779190475-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1722031205897-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1722543640526-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1722892318363-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1723825511054-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1723828588502-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724078044172-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725291476867-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725357719072-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725360199561-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725379949648-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725551629492-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725556630384-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725618842598-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725880508430-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725881099935-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725881475134-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725884177663-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725898621366-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725900315712-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725901024444-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725975175669-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1725976810107-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1726831037585-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727101782315-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727102156072-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727102331367-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727103023745-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727104469670-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727192530019-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727193130193-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727193702212-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727194211048-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727194579925-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727894983857-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1727906598804-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1728472625805-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1729682875503-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1730117995642-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1730209089495-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1730223198692-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1731433043136-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1731433309124-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1731435267537-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1731435514287-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1732553444010-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1734435866602-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736364478985-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736364957990-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736365532085-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736675947746-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736703138918-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736780194077-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736780194078-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736787495707-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736787985322-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736788706141-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1736856662868-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1737141420441-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1737713529424-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1737715240684-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1737997557974-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739209832500-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739210586538-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739217257089-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739282331053-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739374537088-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1739569321582-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740164199817-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740419151825-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740430229844-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740597525803-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1740598793630-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741031019972-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741209339971-MigrationName.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741904597606-MigrationName.ts +72 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741908200702-MigrationName.ts +32 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741955609393-MigrationName.ts +38 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741955752685-MigrationName.ts +26 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741957080431-MigrationName.ts +26 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1741959216297-MigrationName.ts +26 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1742302093234-MigrationName.ts +60 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1742305668133-MigrationName.ts +17 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +16 -0
- package/Server/Infrastructure/PostgresDatabase.ts +11 -0
- package/Server/Infrastructure/Queue.ts +6 -0
- package/Server/Infrastructure/QueueWorker.ts +3 -0
- package/Server/Infrastructure/Redis.ts +7 -0
- package/Server/Infrastructure/Semaphore.ts +3 -0
- package/Server/Infrastructure/SocketIO.ts +3 -0
- package/Server/Infrastructure/Status.ts +3 -0
- package/Server/Middleware/BearerTokenAuthorization.ts +2 -0
- package/Server/Middleware/ClusterKeyAuthorization.ts +4 -0
- package/Server/Middleware/CodeRepositoryAuthorization.ts +2 -0
- package/Server/Middleware/NotificationMiddleware.ts +3 -0
- package/Server/Middleware/ProjectAuthorization.ts +6 -0
- package/Server/Middleware/SlackAuthorization.ts +2 -0
- package/Server/Middleware/TelemetryIngest.ts +2 -0
- package/Server/Middleware/UserAuthorization.ts +8 -0
- package/Server/Services/AccessTokenService.ts +7 -0
- package/Server/Services/AlertFeedService.ts +29 -75
- package/Server/Services/AlertInternalNoteService.ts +4 -0
- package/Server/Services/AlertOwnerTeamService.ts +4 -0
- package/Server/Services/AlertOwnerUserService.ts +4 -0
- package/Server/Services/AlertService.ts +24 -2
- package/Server/Services/AlertSeverityService.ts +5 -1
- package/Server/Services/AlertStateService.ts +9 -0
- package/Server/Services/AlertStateTimelineService.ts +6 -0
- package/Server/Services/AnalyticsDatabaseService.ts +17 -0
- package/Server/Services/ApiKeyPermissionService.ts +3 -1
- package/Server/Services/ApiKeyService.ts +2 -1
- package/Server/Services/BillingInvoiceService.ts +3 -0
- package/Server/Services/BillingPaymentMethodService.ts +3 -0
- package/Server/Services/BillingService.ts +25 -0
- package/Server/Services/CallService.ts +6 -1
- package/Server/Services/CopilotActionTypePriorityService.ts +2 -1
- package/Server/Services/CopilotCodeRepositoryService.ts +3 -1
- package/Server/Services/DashboardService.ts +2 -1
- package/Server/Services/DatabaseService.ts +17 -0
- package/Server/Services/DomainService.ts +3 -1
- package/Server/Services/FileService.ts +4 -1
- package/Server/Services/IncidentFeedService.ts +33 -76
- package/Server/Services/IncidentInternalNoteService.ts +4 -0
- package/Server/Services/IncidentOwnerTeamService.ts +4 -0
- package/Server/Services/IncidentOwnerUserService.ts +4 -0
- package/Server/Services/IncidentPublicNoteService.ts +5 -0
- package/Server/Services/IncidentService.ts +25 -1
- package/Server/Services/IncidentSeverityService.ts +5 -1
- package/Server/Services/IncidentStateService.ts +9 -0
- package/Server/Services/IncidentStateTimelineService.ts +6 -0
- package/Server/Services/IncidentTemplateService.ts +3 -0
- package/Server/Services/Index.ts +5 -0
- package/Server/Services/LabelService.ts +2 -1
- package/Server/Services/MailService.ts +2 -0
- package/Server/Services/MonitorFeedService.ts +150 -0
- package/Server/Services/MonitorGroupService.ts +4 -0
- package/Server/Services/MonitorOwnerTeamService.ts +165 -0
- package/Server/Services/MonitorOwnerUserService.ts +158 -0
- package/Server/Services/MonitorService.ts +247 -0
- package/Server/Services/MonitorStatusService.ts +5 -0
- package/Server/Services/MonitorStatusTimelineService.ts +66 -0
- package/Server/Services/NotificationService.ts +3 -0
- package/Server/Services/OnCallDutyPolicyEscalationRuleService.ts +102 -3
- package/Server/Services/OnCallDutyPolicyExecutionLogService.ts +4 -0
- package/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.ts +21 -1
- package/Server/Services/OnCallDutyPolicyScheduleLayerService.ts +3 -0
- package/Server/Services/OnCallDutyPolicyScheduleLayerUserService.ts +5 -0
- package/Server/Services/OnCallDutyPolicyScheduleService.ts +2 -0
- package/Server/Services/OnCallDutyPolicyService.ts +3 -0
- package/Server/Services/OnCallDutyPolicyUserOverrideService.ts +80 -0
- package/Server/Services/OpenTelemetryIngestService.ts +4 -0
- package/Server/Services/ProbeService.ts +7 -0
- package/Server/Services/ProjectCallSMSConfigService.ts +12 -2
- package/Server/Services/ProjectService.ts +15 -0
- package/Server/Services/ProjectUserService.ts +2 -0
- package/Server/Services/ScheduledMaintenanceFeedService.ts +29 -80
- package/Server/Services/ScheduledMaintenanceInternalNoteService.ts +4 -0
- package/Server/Services/ScheduledMaintenanceOwnerTeamService.ts +4 -0
- package/Server/Services/ScheduledMaintenanceOwnerUserService.ts +4 -0
- package/Server/Services/ScheduledMaintenancePublicNoteService.ts +5 -0
- package/Server/Services/ScheduledMaintenanceService.ts +29 -2
- package/Server/Services/ScheduledMaintenanceStateService.ts +8 -0
- package/Server/Services/ScheduledMaintenanceStateTimelineService.ts +7 -0
- package/Server/Services/ScheduledMaintenanceTemplateService.ts +5 -0
- package/Server/Services/ServiceCatalogDependencyService.ts +2 -0
- package/Server/Services/ServiceCatalogMonitorService.ts +2 -0
- package/Server/Services/ServiceCatalogService.ts +2 -0
- package/Server/Services/ServiceCatalogTelemetryServiceService.ts +2 -0
- package/Server/Services/ShortLinkService.ts +5 -0
- package/Server/Services/SmsService.ts +6 -1
- package/Server/Services/StatusPageCertificateService.ts +4 -0
- package/Server/Services/StatusPageDomainService.ts +14 -0
- package/Server/Services/StatusPageFooterLinkService.ts +5 -0
- package/Server/Services/StatusPageGroupService.ts +5 -0
- package/Server/Services/StatusPageHeaderLinkService.ts +5 -0
- package/Server/Services/StatusPageHistoryChartBarColorRuleService.ts +5 -0
- package/Server/Services/StatusPagePrivateUserService.ts +3 -0
- package/Server/Services/StatusPageResourceService.ts +5 -0
- package/Server/Services/StatusPageService.ts +17 -0
- package/Server/Services/StatusPageSubscriberService.ts +11 -2
- package/Server/Services/TeamMemberService.ts +11 -0
- package/Server/Services/TeamPermissionService.ts +7 -0
- package/Server/Services/TeamService.ts +3 -0
- package/Server/Services/TelemetryAttributeService.ts +3 -0
- package/Server/Services/TelemetryIngestionKeyService.ts +2 -0
- package/Server/Services/TelemetryServiceService.ts +3 -0
- package/Server/Services/TelemetryUsageBillingService.ts +3 -0
- package/Server/Services/UserCallService.ts +5 -0
- package/Server/Services/UserEmailService.ts +5 -0
- package/Server/Services/UserNotificationRuleService.ts +19 -0
- package/Server/Services/UserNotificationSettingService.ts +5 -0
- package/Server/Services/UserOnCallLogService.ts +4 -0
- package/Server/Services/UserOnCallLogTimelineService.ts +2 -0
- package/Server/Services/UserService.ts +8 -0
- package/Server/Services/UserSmsService.ts +5 -0
- package/Server/Services/UserTwoFactorAuthService.ts +3 -0
- package/Server/Services/WorkflowService.ts +2 -0
- package/Server/Services/WorkspaceNotificationRuleService.ts +146 -32
- package/Server/Services/WorkspaceProjectAuthTokenService.ts +5 -0
- package/Server/Services/WorkspaceSettingService.ts +3 -0
- package/Server/Services/WorkspaceUserAuthTokenService.ts +4 -0
- package/Server/Types/AnalyticsDatabase/AggregateBy.ts +2 -0
- package/Server/Types/AnalyticsDatabase/ModelPermission.ts +6 -0
- package/Server/Types/AnalyticsDatabase/QueryHelper.ts +5 -0
- package/Server/Types/Billing/MeteredPlan/ActiveMonitoringMeteredPlan.ts +3 -0
- package/Server/Types/Billing/MeteredPlan/AllMeteredPlans.ts +2 -0
- package/Server/Types/Billing/MeteredPlan/ServerMeteredPlan.ts +2 -0
- package/Server/Types/Billing/MeteredPlan/TelemetryMeteredPlan.ts +3 -0
- package/Server/Types/Database/Permissions/AccessControlPermission.ts +6 -0
- package/Server/Types/Database/Permissions/BasePermission.ts +2 -0
- package/Server/Types/Database/Permissions/BillingPermission.ts +2 -0
- package/Server/Types/Database/Permissions/ColumnPermission.ts +6 -0
- package/Server/Types/Database/Permissions/CreatePermission.ts +3 -0
- package/Server/Types/Database/Permissions/DeletePermission.ts +3 -0
- package/Server/Types/Database/Permissions/Index.ts +7 -0
- package/Server/Types/Database/Permissions/PermissionsUtil.ts +2 -0
- package/Server/Types/Database/Permissions/PublicPermission.ts +3 -0
- package/Server/Types/Database/Permissions/QueryPermission.ts +3 -0
- package/Server/Types/Database/Permissions/ReadPermission.ts +3 -0
- package/Server/Types/Database/Permissions/SelectPermission.ts +2 -0
- package/Server/Types/Database/Permissions/TablePermission.ts +4 -0
- package/Server/Types/Database/Permissions/TenantPermission.ts +2 -0
- package/Server/Types/Database/Permissions/UpdatePermission.ts +3 -0
- package/Server/Types/Database/Permissions/UserPermission.ts +2 -0
- package/Server/Types/Database/QueryHelper.ts +25 -0
- package/Server/Types/Database/QueryUtil.ts +2 -0
- package/Server/Types/Database/SelectUtil.ts +2 -0
- package/Server/Types/Domain.ts +2 -0
- package/Server/Types/Markdown.ts +2 -0
- package/Server/Types/Workflow/ComponentCode.ts +2 -0
- package/Server/Types/Workflow/Components/API/Delete.ts +2 -0
- package/Server/Types/Workflow/Components/API/Get.ts +2 -0
- package/Server/Types/Workflow/Components/API/Patch.ts +2 -0
- package/Server/Types/Workflow/Components/API/Post.ts +2 -0
- package/Server/Types/Workflow/Components/API/Put.ts +2 -0
- package/Server/Types/Workflow/Components/API/Utils.ts +3 -0
- package/Server/Types/Workflow/Components/BaseModel/CreateManyBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/CreateOneBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/DeleteOneBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/FindManyBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/FindOneBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.ts +4 -0
- package/Server/Types/Workflow/Components/BaseModel/UpdateManyBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/BaseModel/UpdateOneBaseModel.ts +2 -0
- package/Server/Types/Workflow/Components/Conditions/IfElse.ts +2 -0
- package/Server/Types/Workflow/Components/Email.ts +2 -0
- package/Server/Types/Workflow/Components/JSON/JsonToText.ts +2 -0
- package/Server/Types/Workflow/Components/JSON/MergeJson.ts +2 -0
- package/Server/Types/Workflow/Components/JSON/TextToJson.ts +2 -0
- package/Server/Types/Workflow/Components/JavaScript.ts +2 -0
- package/Server/Types/Workflow/Components/Log.ts +2 -0
- package/Server/Types/Workflow/Components/MicrosoftTeams/SendMessageToChannel.ts +2 -0
- package/Server/Types/Workflow/Components/Schedule.ts +4 -0
- package/Server/Types/Workflow/Components/Slack/SendMessageToChannel.ts +2 -0
- package/Server/Types/Workflow/Components/Webhook.ts +4 -0
- package/Server/Types/Workflow/TriggerCode.ts +5 -0
- package/Server/Utils/APIKey/AccessPermission.ts +5 -0
- package/Server/Utils/Airtable.ts +5 -0
- package/Server/Utils/AnalyticsDatabase/StatementGenerator.ts +2 -0
- package/Server/Utils/Browser.ts +6 -0
- package/Server/Utils/CodeRepository/CodeRepository.ts +23 -0
- package/Server/Utils/CodeRepository/GitHub/GitHub.ts +6 -0
- package/Server/Utils/CodeRepository/HostedCodeRepository/HostedCodeRepository.ts +5 -0
- package/Server/Utils/Cookie.ts +12 -0
- package/Server/Utils/CronTab.ts +2 -0
- package/Server/Utils/Encryption.ts +3 -0
- package/Server/Utils/Execute.ts +2 -0
- package/Server/Utils/Express.ts +6 -0
- package/Server/Utils/Greenlock/Greenlock.ts +251 -303
- package/Server/Utils/JsonWebToken.ts +6 -0
- package/Server/Utils/LocalFile.ts +13 -0
- package/Server/Utils/Monitor/Criteria/APIRequestCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/CompareCriteria.ts +16 -0
- package/Server/Utils/Monitor/Criteria/CustomCodeMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/EvaluateOverTime.ts +2 -0
- package/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/LogMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/Criteria/SyntheticMonitor.ts +2 -0
- package/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.ts +2 -0
- package/Server/Utils/Monitor/MonitorAlert.ts +3 -0
- package/Server/Utils/Monitor/MonitorIncident.ts +3 -0
- package/Server/Utils/Monitor/MonitorResource.ts +3 -0
- package/Server/Utils/Monitor/MonitorStatusTimeline.ts +2 -0
- package/Server/Utils/Realtime.ts +8 -0
- package/Server/Utils/Response.ts +17 -0
- package/Server/Utils/Stream.ts +3 -0
- package/Server/Utils/Telemetry/CaptureSpan.ts +116 -0
- package/Server/Utils/Telemetry/Telemetry.ts +3 -0
- package/Server/Utils/Telemetry.ts +6 -0
- package/Server/Utils/TwoFactorAuth.ts +6 -0
- package/Server/Utils/UserPermission/UserPermission.ts +4 -0
- package/Server/Utils/VM/VMAPI.ts +5 -0
- package/Server/Utils/VM/VMRunner.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Messages/Alert.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Messages/Incident.ts +2 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Messages/ScheduledMaintenance.ts +2 -0
- package/Server/Utils/Workspace/Slack/Actions/ActionTypes.ts +3 -0
- package/Server/Utils/Workspace/Slack/Actions/Alert.ts +11 -0
- package/Server/Utils/Workspace/Slack/Actions/Auth.ts +2 -0
- package/Server/Utils/Workspace/Slack/Actions/Incident.ts +13 -0
- package/Server/Utils/Workspace/Slack/Actions/Monitor.ts +48 -0
- package/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.ts +11 -0
- package/Server/Utils/Workspace/Slack/Messages/Alert.ts +2 -0
- package/Server/Utils/Workspace/Slack/Messages/Incident.ts +2 -0
- package/Server/Utils/Workspace/Slack/Messages/Monitor.ts +60 -0
- package/Server/Utils/Workspace/Slack/Messages/ScheduledMaintenance.ts +2 -0
- package/Server/Utils/Workspace/Slack/Slack.ts +33 -3
- package/Server/Utils/Workspace/Workspace.ts +20 -3
- package/Server/Utils/Workspace/WorkspaceBase.ts +33 -1
- package/Server/Utils/Workspace/WorkspaceMessages/Alert.ts +3 -0
- package/Server/Utils/Workspace/WorkspaceMessages/Incident.ts +3 -0
- package/Server/Utils/Workspace/WorkspaceMessages/Monitor.ts +71 -0
- package/Server/Utils/Workspace/WorkspaceMessages/ScheduledMaintenance.ts +3 -0
- package/Types/CallAndSMS/TwilioConfig.ts +2 -1
- package/Types/Permission.ts +76 -0
- package/Types/Phone.ts +61 -1
- package/Types/Workspace/NotificationRules/EventType.ts +1 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.ts +8 -1
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorNotificationRule.ts +6 -0
- package/UI/Utils/{Telemetry.ts → Telemetry/Telemetry.ts} +1 -1
- package/build/dist/Models/DatabaseModels/GlobalConfig.js +25 -5
- package/build/dist/Models/DatabaseModels/GlobalConfig.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +4 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Monitor.js +20 -0
- package/build/dist/Models/DatabaseModels/Monitor.js.map +1 -1
- package/build/dist/Models/DatabaseModels/MonitorFeed.js +544 -0
- package/build/dist/Models/DatabaseModels/MonitorFeed.js.map +1 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +49 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +516 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProjectCallSMSConfig.js +38 -5
- package/build/dist/Models/DatabaseModels/ProjectCallSMSConfig.js.map +1 -1
- package/build/dist/Models/DatabaseModels/UserOnCallLog.js +44 -0
- package/build/dist/Models/DatabaseModels/UserOnCallLog.js.map +1 -1
- package/build/dist/Server/API/BaseAPI.js +52 -0
- package/build/dist/Server/API/BaseAPI.js.map +1 -1
- package/build/dist/Server/API/BaseAnalyticsAPI.js +58 -0
- package/build/dist/Server/API/BaseAnalyticsAPI.js.map +1 -1
- package/build/dist/Server/API/CommonAPI.js +16 -0
- package/build/dist/Server/API/CommonAPI.js.map +1 -1
- package/build/dist/Server/API/SlackAPI.js +11 -0
- package/build/dist/Server/API/SlackAPI.js.map +1 -1
- package/build/dist/Server/API/StatusAPI.js +146 -97
- package/build/dist/Server/API/StatusAPI.js.map +1 -1
- package/build/dist/Server/API/StatusPageAPI.js +46 -0
- package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
- package/build/dist/Server/DatabaseConfig.js +52 -0
- package/build/dist/Server/DatabaseConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/ClickhouseDatabase.js +28 -0
- package/build/dist/Server/Infrastructure/ClickhouseDatabase.js.map +1 -1
- package/build/dist/Server/Infrastructure/GlobalCache.js +52 -0
- package/build/dist/Server/Infrastructure/GlobalCache.js.map +1 -1
- package/build/dist/Server/Infrastructure/LocalCache.js +72 -0
- package/build/dist/Server/Infrastructure/LocalCache.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717605043663-InitialMigration.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717605043663-InitialMigration.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717678334852-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717678334852-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717839110671-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717839110671-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717849921874-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717849921874-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717955235341-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717955235341-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718037833516-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718037833516-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718100824584-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718100824584-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718101665865-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718101665865-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718119926223-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718119926223-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718124277321-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718124277321-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718126316684-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718126316684-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718188920011-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718188920011-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718203144945-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718203144945-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718285877004-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718285877004-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718618155447-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718618155447-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718711669847-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718711669847-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718879960254-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718879960254-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719227548476-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719227548476-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719228104620-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719228104620-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719247426296-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719247426296-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719348009053-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719348009053-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719827175832-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719827175832-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719831213463-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719831213463-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719838746775-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719838746775-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719915433542-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719915433542-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720024126646-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720024126646-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720532068612-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720532068612-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720538999941-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720538999941-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720785305192-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720785305192-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720805596648-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720805596648-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720806196274-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720806196274-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720812937067-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720812937067-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721075917289-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721075917289-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721152139648-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721152139648-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721159743714-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721159743714-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721754545771-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721754545771-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721779190475-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721779190475-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722031205897-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722031205897-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722543640526-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722543640526-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722892318363-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722892318363-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723825511054-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723825511054-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723828588502-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723828588502-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724078044172-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724078044172-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725291476867-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725291476867-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725357719072-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725357719072-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725360199561-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725360199561-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725379949648-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725379949648-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725551629492-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725551629492-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725556630384-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725556630384-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725618842598-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725618842598-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725880508430-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725880508430-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725881099935-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725881099935-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725881475134-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725881475134-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725884177663-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725884177663-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725898621366-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725898621366-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725900315712-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725900315712-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725901024444-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725901024444-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725975175669-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725975175669-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725976810107-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1725976810107-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1726831037585-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1726831037585-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727101782315-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727101782315-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727102156072-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727102156072-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727102331367-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727102331367-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727103023745-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727103023745-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727104469670-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727104469670-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727192530019-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727192530019-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193130193-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193130193-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193702212-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727193702212-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194211048-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194211048-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194579925-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727194579925-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727894983857-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727894983857-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727906598804-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1727906598804-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1728472625805-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1728472625805-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1729682875503-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1729682875503-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730117995642-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730117995642-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730209089495-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730209089495-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730223198692-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1730223198692-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731433043136-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731433043136-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731433309124-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731433309124-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731435267537-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731435267537-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731435514287-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1731435514287-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1732553444010-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1732553444010-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1734435866602-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1734435866602-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736364478985-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736364478985-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736364957990-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736364957990-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736365532085-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736365532085-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736675947746-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736675947746-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736703138918-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736703138918-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736780194077-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736780194077-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736780194078-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736780194078-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736787495707-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736787495707-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736787985322-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736787985322-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736788706141-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736788706141-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736856662868-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1736856662868-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737141420441-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737141420441-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737713529424-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737713529424-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737715240684-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737715240684-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737997557974-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1737997557974-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739209832500-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739209832500-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739210586538-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739210586538-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739217257089-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739217257089-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739282331053-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739282331053-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739374537088-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739374537088-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739569321582-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1739569321582-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740164199817-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740164199817-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740419151825-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740419151825-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740430229844-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740430229844-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740597525803-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740597525803-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740598793630-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1740598793630-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741031019972-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741031019972-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741209339971-MigrationName.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741209339971-MigrationName.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741904597606-MigrationName.js +52 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741904597606-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741908200702-MigrationName.js +38 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741908200702-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741955609393-MigrationName.js +40 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741955609393-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741955752685-MigrationName.js +36 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741955752685-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741957080431-MigrationName.js +36 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741957080431-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741959216297-MigrationName.js +36 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1741959216297-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1742302093234-MigrationName.js +48 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1742302093234-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1742305668133-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1742305668133-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +16 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Infrastructure/PostgresDatabase.js +70 -0
- package/build/dist/Server/Infrastructure/PostgresDatabase.js.map +1 -1
- package/build/dist/Server/Infrastructure/Queue.js +40 -0
- package/build/dist/Server/Infrastructure/Queue.js.map +1 -1
- package/build/dist/Server/Infrastructure/QueueWorker.js +23 -0
- package/build/dist/Server/Infrastructure/QueueWorker.js.map +1 -1
- package/build/dist/Server/Infrastructure/Redis.js +46 -0
- package/build/dist/Server/Infrastructure/Redis.js.map +1 -1
- package/build/dist/Server/Infrastructure/Semaphore.js +22 -0
- package/build/dist/Server/Infrastructure/Semaphore.js.map +1 -1
- package/build/dist/Server/Infrastructure/SocketIO.js +22 -0
- package/build/dist/Server/Infrastructure/SocketIO.js.map +1 -1
- package/build/dist/Server/Infrastructure/Status.js +22 -0
- package/build/dist/Server/Infrastructure/Status.js.map +1 -1
- package/build/dist/Server/Middleware/BearerTokenAuthorization.js +16 -0
- package/build/dist/Server/Middleware/BearerTokenAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/ClusterKeyAuthorization.js +28 -0
- package/build/dist/Server/Middleware/ClusterKeyAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/CodeRepositoryAuthorization.js +16 -0
- package/build/dist/Server/Middleware/CodeRepositoryAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/NotificationMiddleware.js +22 -0
- package/build/dist/Server/Middleware/NotificationMiddleware.js.map +1 -1
- package/build/dist/Server/Middleware/ProjectAuthorization.js +40 -0
- package/build/dist/Server/Middleware/ProjectAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/SlackAuthorization.js +16 -0
- package/build/dist/Server/Middleware/SlackAuthorization.js.map +1 -1
- package/build/dist/Server/Middleware/TelemetryIngest.js +16 -0
- package/build/dist/Server/Middleware/TelemetryIngest.js.map +1 -1
- package/build/dist/Server/Middleware/UserAuthorization.js +53 -0
- package/build/dist/Server/Middleware/UserAuthorization.js.map +1 -1
- package/build/dist/Server/Services/AccessTokenService.js +49 -0
- package/build/dist/Server/Services/AccessTokenService.js.map +1 -1
- package/build/dist/Server/Services/AlertFeedService.js +37 -47
- package/build/dist/Server/Services/AlertFeedService.js.map +1 -1
- package/build/dist/Server/Services/AlertInternalNoteService.js +28 -0
- package/build/dist/Server/Services/AlertInternalNoteService.js.map +1 -1
- package/build/dist/Server/Services/AlertOwnerTeamService.js +28 -0
- package/build/dist/Server/Services/AlertOwnerTeamService.js.map +1 -1
- package/build/dist/Server/Services/AlertOwnerUserService.js +28 -0
- package/build/dist/Server/Services/AlertOwnerUserService.js.map +1 -1
- package/build/dist/Server/Services/AlertService.js +130 -2
- package/build/dist/Server/Services/AlertService.js.map +1 -1
- package/build/dist/Server/Services/AlertSeverityService.js +34 -0
- package/build/dist/Server/Services/AlertSeverityService.js.map +1 -1
- package/build/dist/Server/Services/AlertStateService.js +59 -0
- package/build/dist/Server/Services/AlertStateService.js.map +1 -1
- package/build/dist/Server/Services/AlertStateTimelineService.js +40 -0
- package/build/dist/Server/Services/AlertStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/AnalyticsDatabaseService.js +108 -0
- package/build/dist/Server/Services/AnalyticsDatabaseService.js.map +1 -1
- package/build/dist/Server/Services/ApiKeyPermissionService.js +22 -0
- package/build/dist/Server/Services/ApiKeyPermissionService.js.map +1 -1
- package/build/dist/Server/Services/ApiKeyService.js +16 -0
- package/build/dist/Server/Services/ApiKeyService.js.map +1 -1
- package/build/dist/Server/Services/BillingInvoiceService.js +22 -0
- package/build/dist/Server/Services/BillingInvoiceService.js.map +1 -1
- package/build/dist/Server/Services/BillingPaymentMethodService.js +22 -0
- package/build/dist/Server/Services/BillingPaymentMethodService.js.map +1 -1
- package/build/dist/Server/Services/BillingService.js +155 -0
- package/build/dist/Server/Services/BillingService.js.map +1 -1
- package/build/dist/Server/Services/CallService.js +19 -2
- package/build/dist/Server/Services/CallService.js.map +1 -1
- package/build/dist/Server/Services/CopilotActionTypePriorityService.js +16 -0
- package/build/dist/Server/Services/CopilotActionTypePriorityService.js.map +1 -1
- package/build/dist/Server/Services/CopilotCodeRepositoryService.js +22 -0
- package/build/dist/Server/Services/CopilotCodeRepositoryService.js.map +1 -1
- package/build/dist/Server/Services/DashboardService.js +16 -0
- package/build/dist/Server/Services/DashboardService.js.map +1 -1
- package/build/dist/Server/Services/DatabaseService.js +108 -0
- package/build/dist/Server/Services/DatabaseService.js.map +1 -1
- package/build/dist/Server/Services/DomainService.js +22 -0
- package/build/dist/Server/Services/DomainService.js.map +1 -1
- package/build/dist/Server/Services/FileService.js +28 -0
- package/build/dist/Server/Services/FileService.js.map +1 -1
- package/build/dist/Server/Services/IncidentFeedService.js +39 -48
- package/build/dist/Server/Services/IncidentFeedService.js.map +1 -1
- package/build/dist/Server/Services/IncidentInternalNoteService.js +28 -0
- package/build/dist/Server/Services/IncidentInternalNoteService.js.map +1 -1
- package/build/dist/Server/Services/IncidentOwnerTeamService.js +28 -0
- package/build/dist/Server/Services/IncidentOwnerTeamService.js.map +1 -1
- package/build/dist/Server/Services/IncidentOwnerUserService.js +28 -0
- package/build/dist/Server/Services/IncidentOwnerUserService.js.map +1 -1
- package/build/dist/Server/Services/IncidentPublicNoteService.js +34 -0
- package/build/dist/Server/Services/IncidentPublicNoteService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +142 -1
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/IncidentSeverityService.js +34 -0
- package/build/dist/Server/Services/IncidentSeverityService.js.map +1 -1
- package/build/dist/Server/Services/IncidentStateService.js +59 -0
- package/build/dist/Server/Services/IncidentStateService.js.map +1 -1
- package/build/dist/Server/Services/IncidentStateTimelineService.js +40 -0
- package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentTemplateService.js +25 -0
- package/build/dist/Server/Services/IncidentTemplateService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +4 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/LabelService.js +16 -0
- package/build/dist/Server/Services/LabelService.js.map +1 -1
- package/build/dist/Server/Services/MailService.js +16 -0
- package/build/dist/Server/Services/MailService.js.map +1 -1
- package/build/dist/Server/Services/MonitorFeedService.js +117 -0
- package/build/dist/Server/Services/MonitorFeedService.js.map +1 -0
- package/build/dist/Server/Services/MonitorGroupService.js +30 -0
- package/build/dist/Server/Services/MonitorGroupService.js.map +1 -1
- package/build/dist/Server/Services/MonitorOwnerTeamService.js +152 -0
- package/build/dist/Server/Services/MonitorOwnerTeamService.js.map +1 -1
- package/build/dist/Server/Services/MonitorOwnerUserService.js +145 -0
- package/build/dist/Server/Services/MonitorOwnerUserService.js.map +1 -1
- package/build/dist/Server/Services/MonitorService.js +308 -0
- package/build/dist/Server/Services/MonitorService.js.map +1 -1
- package/build/dist/Server/Services/MonitorStatusService.js +34 -0
- package/build/dist/Server/Services/MonitorStatusService.js.map +1 -1
- package/build/dist/Server/Services/MonitorStatusTimelineService.js +85 -0
- package/build/dist/Server/Services/MonitorStatusTimelineService.js.map +1 -1
- package/build/dist/Server/Services/NotificationService.js +23 -0
- package/build/dist/Server/Services/NotificationService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js +150 -3
- package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js +28 -0
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js +42 -1
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerService.js +22 -0
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerUserService.js +34 -0
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerUserService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js +16 -0
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyService.js +24 -0
- package/build/dist/Server/Services/OnCallDutyPolicyService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyUserOverrideService.js +71 -0
- package/build/dist/Server/Services/OnCallDutyPolicyUserOverrideService.js.map +1 -0
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +28 -0
- package/build/dist/Server/Services/OpenTelemetryIngestService.js.map +1 -1
- package/build/dist/Server/Services/ProbeService.js +47 -0
- package/build/dist/Server/Services/ProbeService.js.map +1 -1
- package/build/dist/Server/Services/ProjectCallSMSConfigService.js +11 -2
- package/build/dist/Server/Services/ProjectCallSMSConfigService.js.map +1 -1
- package/build/dist/Server/Services/ProjectService.js +94 -0
- package/build/dist/Server/Services/ProjectService.js.map +1 -1
- package/build/dist/Server/Services/ProjectUserService.js +16 -0
- package/build/dist/Server/Services/ProjectUserService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceFeedService.js +37 -47
- package/build/dist/Server/Services/ScheduledMaintenanceFeedService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceInternalNoteService.js +28 -0
- package/build/dist/Server/Services/ScheduledMaintenanceInternalNoteService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerTeamService.js +28 -0
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerTeamService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerUserService.js +28 -0
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerUserService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenancePublicNoteService.js +34 -0
- package/build/dist/Server/Services/ScheduledMaintenancePublicNoteService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceService.js +139 -2
- package/build/dist/Server/Services/ScheduledMaintenanceService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceStateService.js +52 -0
- package/build/dist/Server/Services/ScheduledMaintenanceStateService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js +47 -0
- package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceTemplateService.js +37 -0
- package/build/dist/Server/Services/ScheduledMaintenanceTemplateService.js.map +1 -1
- package/build/dist/Server/Services/ServiceCatalogDependencyService.js +16 -0
- package/build/dist/Server/Services/ServiceCatalogDependencyService.js.map +1 -1
- package/build/dist/Server/Services/ServiceCatalogMonitorService.js +16 -0
- package/build/dist/Server/Services/ServiceCatalogMonitorService.js.map +1 -1
- package/build/dist/Server/Services/ServiceCatalogService.js +16 -0
- package/build/dist/Server/Services/ServiceCatalogService.js.map +1 -1
- package/build/dist/Server/Services/ServiceCatalogTelemetryServiceService.js +16 -0
- package/build/dist/Server/Services/ServiceCatalogTelemetryServiceService.js.map +1 -1
- package/build/dist/Server/Services/ShortLinkService.js +34 -0
- package/build/dist/Server/Services/ShortLinkService.js.map +1 -1
- package/build/dist/Server/Services/SmsService.js +19 -2
- package/build/dist/Server/Services/SmsService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageCertificateService.js +28 -0
- package/build/dist/Server/Services/StatusPageCertificateService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageDomainService.js +88 -0
- package/build/dist/Server/Services/StatusPageDomainService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageFooterLinkService.js +34 -0
- package/build/dist/Server/Services/StatusPageFooterLinkService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageGroupService.js +34 -0
- package/build/dist/Server/Services/StatusPageGroupService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageHeaderLinkService.js +34 -0
- package/build/dist/Server/Services/StatusPageHeaderLinkService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageHistoryChartBarColorRuleService.js +34 -0
- package/build/dist/Server/Services/StatusPageHistoryChartBarColorRuleService.js.map +1 -1
- package/build/dist/Server/Services/StatusPagePrivateUserService.js +22 -0
- package/build/dist/Server/Services/StatusPagePrivateUserService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageResourceService.js +34 -0
- package/build/dist/Server/Services/StatusPageResourceService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageService.js +110 -0
- package/build/dist/Server/Services/StatusPageService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageSubscriberService.js +51 -2
- package/build/dist/Server/Services/StatusPageSubscriberService.js.map +1 -1
- package/build/dist/Server/Services/TeamMemberService.js +71 -0
- package/build/dist/Server/Services/TeamMemberService.js.map +1 -1
- package/build/dist/Server/Services/TeamPermissionService.js +46 -0
- package/build/dist/Server/Services/TeamPermissionService.js.map +1 -1
- package/build/dist/Server/Services/TeamService.js +22 -0
- package/build/dist/Server/Services/TeamService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryAttributeService.js +22 -0
- package/build/dist/Server/Services/TelemetryAttributeService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryIngestionKeyService.js +16 -0
- package/build/dist/Server/Services/TelemetryIngestionKeyService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryServiceService.js +22 -0
- package/build/dist/Server/Services/TelemetryServiceService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryUsageBillingService.js +22 -0
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/UserCallService.js +35 -0
- package/build/dist/Server/Services/UserCallService.js.map +1 -1
- package/build/dist/Server/Services/UserEmailService.js +35 -0
- package/build/dist/Server/Services/UserEmailService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationRuleService.js +110 -0
- package/build/dist/Server/Services/UserNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationSettingService.js +37 -0
- package/build/dist/Server/Services/UserNotificationSettingService.js.map +1 -1
- package/build/dist/Server/Services/UserOnCallLogService.js +28 -0
- package/build/dist/Server/Services/UserOnCallLogService.js.map +1 -1
- package/build/dist/Server/Services/UserOnCallLogTimelineService.js +16 -0
- package/build/dist/Server/Services/UserOnCallLogTimelineService.js.map +1 -1
- package/build/dist/Server/Services/UserService.js +54 -0
- package/build/dist/Server/Services/UserService.js.map +1 -1
- package/build/dist/Server/Services/UserSmsService.js +35 -0
- package/build/dist/Server/Services/UserSmsService.js.map +1 -1
- package/build/dist/Server/Services/UserTwoFactorAuthService.js +22 -0
- package/build/dist/Server/Services/UserTwoFactorAuthService.js.map +1 -1
- package/build/dist/Server/Services/WorkflowService.js +16 -0
- package/build/dist/Server/Services/WorkflowService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js +179 -21
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceProjectAuthTokenService.js +34 -0
- package/build/dist/Server/Services/WorkspaceProjectAuthTokenService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceSettingService.js +22 -0
- package/build/dist/Server/Services/WorkspaceSettingService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceUserAuthTokenService.js +28 -0
- package/build/dist/Server/Services/WorkspaceUserAuthTokenService.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js +16 -0
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js +41 -0
- package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/QueryHelper.js +35 -0
- package/build/dist/Server/Types/AnalyticsDatabase/QueryHelper.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/ActiveMonitoringMeteredPlan.js +23 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/ActiveMonitoringMeteredPlan.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js +17 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/ServerMeteredPlan.js +17 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/ServerMeteredPlan.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/TelemetryMeteredPlan.js +24 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/TelemetryMeteredPlan.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/AccessControlPermission.js +40 -0
- package/build/dist/Server/Types/Database/Permissions/AccessControlPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/BasePermission.js +17 -0
- package/build/dist/Server/Types/Database/Permissions/BasePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/BillingPermission.js +16 -0
- package/build/dist/Server/Types/Database/Permissions/BillingPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/ColumnPermission.js +29 -0
- package/build/dist/Server/Types/Database/Permissions/ColumnPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/CreatePermission.js +23 -0
- package/build/dist/Server/Types/Database/Permissions/CreatePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/DeletePermission.js +22 -0
- package/build/dist/Server/Types/Database/Permissions/DeletePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/Index.js +47 -0
- package/build/dist/Server/Types/Database/Permissions/Index.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/PermissionsUtil.js +16 -0
- package/build/dist/Server/Types/Database/Permissions/PermissionsUtil.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/PublicPermission.js +23 -0
- package/build/dist/Server/Types/Database/Permissions/PublicPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/QueryPermission.js +22 -0
- package/build/dist/Server/Types/Database/Permissions/QueryPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/ReadPermission.js +22 -0
- package/build/dist/Server/Types/Database/Permissions/ReadPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/SelectPermission.js +16 -0
- package/build/dist/Server/Types/Database/Permissions/SelectPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/TablePermission.js +28 -0
- package/build/dist/Server/Types/Database/Permissions/TablePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.js +17 -0
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/UpdatePermission.js +22 -0
- package/build/dist/Server/Types/Database/Permissions/UpdatePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/UserPermission.js +16 -0
- package/build/dist/Server/Types/Database/Permissions/UserPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/QueryHelper.js +155 -0
- package/build/dist/Server/Types/Database/QueryHelper.js.map +1 -1
- package/build/dist/Server/Types/Database/QueryUtil.js +16 -0
- package/build/dist/Server/Types/Database/QueryUtil.js.map +1 -1
- package/build/dist/Server/Types/Database/SelectUtil.js +16 -0
- package/build/dist/Server/Types/Database/SelectUtil.js.map +1 -1
- package/build/dist/Server/Types/Domain.js +16 -0
- package/build/dist/Server/Types/Domain.js.map +1 -1
- package/build/dist/Server/Types/Markdown.js +16 -0
- package/build/dist/Server/Types/Markdown.js.map +1 -1
- package/build/dist/Server/Types/Workflow/ComponentCode.js +16 -0
- package/build/dist/Server/Types/Workflow/ComponentCode.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Delete.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Delete.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Get.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Get.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Patch.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Patch.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Post.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Post.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Put.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/API/Put.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/API/Utils.js +22 -0
- package/build/dist/Server/Types/Workflow/Components/API/Utils.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateManyBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateManyBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateOneBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateOneBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/DeleteOneBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/DeleteOneBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/FindManyBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/FindManyBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/FindOneBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/FindOneBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.js +28 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateManyBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateManyBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateOneBaseModel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateOneBaseModel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Email.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/Email.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/JSON/JsonToText.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/JSON/JsonToText.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/JSON/MergeJson.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/JSON/MergeJson.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/JSON/TextToJson.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/JSON/TextToJson.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/JavaScript.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/JavaScript.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Log.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/Log.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/MicrosoftTeams/SendMessageToChannel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/MicrosoftTeams/SendMessageToChannel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Schedule.js +28 -0
- package/build/dist/Server/Types/Workflow/Components/Schedule.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Slack/SendMessageToChannel.js +16 -0
- package/build/dist/Server/Types/Workflow/Components/Slack/SendMessageToChannel.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Webhook.js +28 -0
- package/build/dist/Server/Types/Workflow/Components/Webhook.js.map +1 -1
- package/build/dist/Server/Types/Workflow/TriggerCode.js +34 -0
- package/build/dist/Server/Types/Workflow/TriggerCode.js.map +1 -1
- package/build/dist/Server/Utils/APIKey/AccessPermission.js +36 -0
- package/build/dist/Server/Utils/APIKey/AccessPermission.js.map +1 -1
- package/build/dist/Server/Utils/Airtable.js +35 -0
- package/build/dist/Server/Utils/Airtable.js.map +1 -1
- package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js +16 -0
- package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js.map +1 -1
- package/build/dist/Server/Utils/Browser.js +40 -0
- package/build/dist/Server/Utils/Browser.js.map +1 -1
- package/build/dist/Server/Utils/CodeRepository/CodeRepository.js +142 -0
- package/build/dist/Server/Utils/CodeRepository/CodeRepository.js.map +1 -1
- package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js +40 -0
- package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js.map +1 -1
- package/build/dist/Server/Utils/CodeRepository/HostedCodeRepository/HostedCodeRepository.js +34 -0
- package/build/dist/Server/Utils/CodeRepository/HostedCodeRepository/HostedCodeRepository.js.map +1 -1
- package/build/dist/Server/Utils/Cookie.js +77 -0
- package/build/dist/Server/Utils/Cookie.js.map +1 -1
- package/build/dist/Server/Utils/CronTab.js +16 -0
- package/build/dist/Server/Utils/CronTab.js.map +1 -1
- package/build/dist/Server/Utils/Encryption.js +22 -0
- package/build/dist/Server/Utils/Encryption.js.map +1 -1
- package/build/dist/Server/Utils/Execute.js +16 -0
- package/build/dist/Server/Utils/Execute.js.map +1 -1
- package/build/dist/Server/Utils/Express.js +42 -1
- package/build/dist/Server/Utils/Express.js.map +1 -1
- package/build/dist/Server/Utils/Greenlock/Greenlock.js +218 -232
- package/build/dist/Server/Utils/Greenlock/Greenlock.js.map +1 -1
- package/build/dist/Server/Utils/JsonWebToken.js +40 -0
- package/build/dist/Server/Utils/JsonWebToken.js.map +1 -1
- package/build/dist/Server/Utils/LocalFile.js +82 -0
- package/build/dist/Server/Utils/LocalFile.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/APIRequestCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/APIRequestCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/CompareCriteria.js +100 -0
- package/build/dist/Server/Utils/Monitor/Criteria/CompareCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/CustomCodeMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/CustomCodeMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/EvaluateOverTime.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/EvaluateOverTime.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/LogMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/LogMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/SyntheticMonitor.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/SyntheticMonitor.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.js +16 -0
- package/build/dist/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js +22 -0
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +22 -0
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorResource.js +22 -0
- package/build/dist/Server/Utils/Monitor/MonitorResource.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorStatusTimeline.js +16 -0
- package/build/dist/Server/Utils/Monitor/MonitorStatusTimeline.js.map +1 -1
- package/build/dist/Server/Utils/Realtime.js +52 -0
- package/build/dist/Server/Utils/Realtime.js.map +1 -1
- package/build/dist/Server/Utils/Response.js +109 -0
- package/build/dist/Server/Utils/Response.js.map +1 -1
- package/build/dist/Server/Utils/Stream.js +23 -0
- package/build/dist/Server/Utils/Stream.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/CaptureSpan.js +84 -0
- package/build/dist/Server/Utils/Telemetry/CaptureSpan.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/Telemetry.js +22 -0
- package/build/dist/Server/Utils/Telemetry/Telemetry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry.js.map +1 -1
- package/build/dist/Server/Utils/TwoFactorAuth.js +40 -0
- package/build/dist/Server/Utils/TwoFactorAuth.js.map +1 -1
- package/build/dist/Server/Utils/UserPermission/UserPermission.js +30 -0
- package/build/dist/Server/Utils/UserPermission/UserPermission.js.map +1 -1
- package/build/dist/Server/Utils/VM/VMAPI.js +34 -0
- package/build/dist/Server/Utils/VM/VMAPI.js.map +1 -1
- package/build/dist/Server/Utils/VM/VMRunner.js +16 -0
- package/build/dist/Server/Utils/VM/VMRunner.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Alert.js +16 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Incident.js +16 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/ScheduledMaintenance.js +16 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Messages/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js +2 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js +70 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Auth.js +16 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Auth.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js +82 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Monitor.js +50 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/Monitor.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.js +70 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Alert.js +16 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Incident.js +16 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Monitor.js +53 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/Monitor.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/ScheduledMaintenance.js +16 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Slack.js +186 -2
- package/build/dist/Server/Utils/Workspace/Slack/Slack.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Workspace.js +53 -0
- package/build/dist/Server/Utils/Workspace/Workspace.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/WorkspaceBase.js +196 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceBase.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Alert.js +22 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Alert.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Incident.js +22 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Monitor.js +69 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/Monitor.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/ScheduledMaintenance.js +22 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Types/Permission.js +64 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Phone.js +32 -0
- package/build/dist/Types/Phone.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/EventType.js +1 -1
- package/build/dist/Types/Workspace/NotificationRules/EventType.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js +7 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorNotificationRule.js +2 -0
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorNotificationRule.js.map +1 -0
- package/build/dist/UI/Utils/{Telemetry.js → Telemetry/Telemetry.js} +1 -1
- package/build/dist/UI/Utils/Telemetry/Telemetry.js.map +1 -0
- package/package.json +2 -2
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorStatusNotificationRule.ts +0 -7
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorStatusNotificationRule.js +0 -2
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleTypes/MonitorStatusNotificationRule.js.map +0 -1
- package/build/dist/UI/Utils/Telemetry.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import BadDataException from "../../../../../Types/Exception/BadDataException";
|
|
2
|
+
import ObjectID from "../../../../../Types/ObjectID";
|
|
3
|
+
import {
|
|
4
|
+
WorkspaceMessageBlock,
|
|
5
|
+
WorkspaceMessagePayloadButton,
|
|
6
|
+
WorkspacePayloadDivider,
|
|
7
|
+
} from "../../../../../Types/Workspace/WorkspaceMessagePayload";
|
|
8
|
+
import MonitorService from "../../../../Services/MonitorService";
|
|
9
|
+
import SlackActionType from "../../../../Utils/Workspace/Slack/Actions/ActionTypes";
|
|
10
|
+
import CaptureSpan from "../../../Telemetry/CaptureSpan";
|
|
11
|
+
|
|
12
|
+
export default class SlackMonitorMessages {
|
|
13
|
+
@CaptureSpan()
|
|
14
|
+
public static async getMonitorCreateMessageBlocks(data: {
|
|
15
|
+
monitorId: ObjectID;
|
|
16
|
+
projectId: ObjectID;
|
|
17
|
+
}): Promise<Array<WorkspaceMessageBlock>> {
|
|
18
|
+
if (!data.monitorId) {
|
|
19
|
+
throw new BadDataException("Monitor ID is required");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Slack.
|
|
23
|
+
|
|
24
|
+
const blockSlack: Array<WorkspaceMessageBlock> = [];
|
|
25
|
+
|
|
26
|
+
// add divider.
|
|
27
|
+
|
|
28
|
+
const dividerBlock: WorkspacePayloadDivider = {
|
|
29
|
+
_type: "WorkspacePayloadDivider",
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
blockSlack.push(dividerBlock);
|
|
33
|
+
|
|
34
|
+
// now add buttons.
|
|
35
|
+
// View data.
|
|
36
|
+
// Execute On Call
|
|
37
|
+
// Acknowledge Monitor
|
|
38
|
+
// Resolve data.
|
|
39
|
+
// Change Monitor State.
|
|
40
|
+
// Add Note.
|
|
41
|
+
|
|
42
|
+
const buttons: Array<WorkspaceMessagePayloadButton> = [];
|
|
43
|
+
|
|
44
|
+
// view data.
|
|
45
|
+
const viewMonitorButton: WorkspaceMessagePayloadButton = {
|
|
46
|
+
_type: "WorkspaceMessagePayloadButton",
|
|
47
|
+
title: "🔗 View Monitor",
|
|
48
|
+
url: await MonitorService.getMonitorLinkInDashboard(
|
|
49
|
+
data.projectId!,
|
|
50
|
+
data.monitorId!,
|
|
51
|
+
),
|
|
52
|
+
value: data.monitorId?.toString() || "",
|
|
53
|
+
actionId: SlackActionType.ViewMonitor,
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
buttons.push(viewMonitorButton);
|
|
57
|
+
|
|
58
|
+
return blockSlack;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -8,8 +8,10 @@ import {
|
|
|
8
8
|
} from "../../../../../Types/Workspace/WorkspaceMessagePayload";
|
|
9
9
|
import ScheduledMaintenanceService from "../../../../Services/ScheduledMaintenanceService";
|
|
10
10
|
import SlackActionType from "../../../../Utils/Workspace/Slack/Actions/ActionTypes";
|
|
11
|
+
import CaptureSpan from "../../../Telemetry/CaptureSpan";
|
|
11
12
|
|
|
12
13
|
export default class SlackScheduledMaintenanceMessages {
|
|
14
|
+
@CaptureSpan()
|
|
13
15
|
public static async getScheduledMaintenanceCreateMessageBlocks(data: {
|
|
14
16
|
scheduledMaintenanceId: ObjectID;
|
|
15
17
|
projectId: ObjectID;
|
|
@@ -29,12 +29,14 @@ import WorkspaceType from "../../../../Types/Workspace/WorkspaceType";
|
|
|
29
29
|
import SlackifyMarkdown from "slackify-markdown";
|
|
30
30
|
import { DropdownOption } from "../../../../UI/Components/Dropdown/Dropdown";
|
|
31
31
|
import OneUptimeDate from "../../../../Types/Date";
|
|
32
|
+
import CaptureSpan from "../../Telemetry/CaptureSpan";
|
|
32
33
|
|
|
33
34
|
export default class SlackUtil extends WorkspaceBase {
|
|
35
|
+
@CaptureSpan()
|
|
34
36
|
public static override async getUsernameFromUserId(data: {
|
|
35
37
|
authToken: string;
|
|
36
38
|
userId: string;
|
|
37
|
-
}): Promise<string> {
|
|
39
|
+
}): Promise<string | null> {
|
|
38
40
|
logger.debug("Getting username from user ID with data:");
|
|
39
41
|
logger.debug(data);
|
|
40
42
|
|
|
@@ -63,7 +65,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
63
65
|
if ((response.jsonData as JSONObject)?.["ok"] !== true) {
|
|
64
66
|
logger.error("Invalid response from Slack API:");
|
|
65
67
|
logger.error(response.jsonData);
|
|
66
|
-
|
|
68
|
+
return null;
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
if (
|
|
@@ -71,7 +73,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
71
73
|
) {
|
|
72
74
|
logger.error("Invalid response from Slack API:");
|
|
73
75
|
logger.error(response.jsonData);
|
|
74
|
-
|
|
76
|
+
return null;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
const username: string = (
|
|
@@ -83,6 +85,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
83
85
|
return username;
|
|
84
86
|
}
|
|
85
87
|
|
|
88
|
+
@CaptureSpan()
|
|
86
89
|
public static override async showModalToUser(data: {
|
|
87
90
|
authToken: string;
|
|
88
91
|
triggerId: string;
|
|
@@ -126,6 +129,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
126
129
|
logger.debug("Modal shown to user successfully.");
|
|
127
130
|
}
|
|
128
131
|
|
|
132
|
+
@CaptureSpan()
|
|
129
133
|
public static override async sendDirectMessageToUser(data: {
|
|
130
134
|
authToken: string;
|
|
131
135
|
workspaceUserId: string;
|
|
@@ -150,6 +154,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
150
154
|
});
|
|
151
155
|
}
|
|
152
156
|
|
|
157
|
+
@CaptureSpan()
|
|
153
158
|
public static override async joinChannel(data: {
|
|
154
159
|
authToken: string;
|
|
155
160
|
channelId: string;
|
|
@@ -189,6 +194,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
189
194
|
logger.debug(data);
|
|
190
195
|
}
|
|
191
196
|
|
|
197
|
+
@CaptureSpan()
|
|
192
198
|
public static override async inviteUserToChannelByChannelId(data: {
|
|
193
199
|
authToken: string;
|
|
194
200
|
channelId: string;
|
|
@@ -240,6 +246,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
240
246
|
logger.debug("User invited to channel successfully.");
|
|
241
247
|
}
|
|
242
248
|
|
|
249
|
+
@CaptureSpan()
|
|
243
250
|
public static override async inviteUserToChannelByChannelName(data: {
|
|
244
251
|
authToken: string;
|
|
245
252
|
channelName: string;
|
|
@@ -267,6 +274,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
267
274
|
});
|
|
268
275
|
}
|
|
269
276
|
|
|
277
|
+
@CaptureSpan()
|
|
270
278
|
public static override async createChannelsIfDoesNotExist(data: {
|
|
271
279
|
authToken: string;
|
|
272
280
|
channelNames: Array<string>;
|
|
@@ -312,6 +320,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
312
320
|
return workspaceChannels;
|
|
313
321
|
}
|
|
314
322
|
|
|
323
|
+
@CaptureSpan()
|
|
315
324
|
public static override async getWorkspaceChannelFromChannelName(data: {
|
|
316
325
|
authToken: string;
|
|
317
326
|
channelName: string;
|
|
@@ -338,6 +347,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
338
347
|
return channels[data.channelName]!;
|
|
339
348
|
}
|
|
340
349
|
|
|
350
|
+
@CaptureSpan()
|
|
341
351
|
public static override async getWorkspaceChannelFromChannelId(data: {
|
|
342
352
|
authToken: string;
|
|
343
353
|
channelId: string;
|
|
@@ -394,6 +404,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
394
404
|
return channel;
|
|
395
405
|
}
|
|
396
406
|
|
|
407
|
+
@CaptureSpan()
|
|
397
408
|
public static override async getAllWorkspaceChannels(data: {
|
|
398
409
|
authToken: string;
|
|
399
410
|
}): Promise<Dictionary<WorkspaceChannel>> {
|
|
@@ -447,12 +458,14 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
447
458
|
return channels;
|
|
448
459
|
}
|
|
449
460
|
|
|
461
|
+
@CaptureSpan()
|
|
450
462
|
public static override getDividerBlock(): JSONObject {
|
|
451
463
|
return {
|
|
452
464
|
type: "divider",
|
|
453
465
|
};
|
|
454
466
|
}
|
|
455
467
|
|
|
468
|
+
@CaptureSpan()
|
|
456
469
|
public static getValuesFromView(data: {
|
|
457
470
|
view: JSONObject;
|
|
458
471
|
}): Dictionary<string | number | Array<string | number> | Date> {
|
|
@@ -508,6 +521,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
508
521
|
return values;
|
|
509
522
|
}
|
|
510
523
|
|
|
524
|
+
@CaptureSpan()
|
|
511
525
|
public static override async sendMessage(data: {
|
|
512
526
|
workspaceMessagePayload: WorkspaceMessagePayload;
|
|
513
527
|
authToken: string; // which auth token should we use to send.
|
|
@@ -609,6 +623,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
609
623
|
return workspaspaceMessageResponse;
|
|
610
624
|
}
|
|
611
625
|
|
|
626
|
+
@CaptureSpan()
|
|
612
627
|
public static override async sendPayloadBlocksToChannel(data: {
|
|
613
628
|
authToken: string;
|
|
614
629
|
workspaceChannel: WorkspaceChannel;
|
|
@@ -654,6 +669,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
654
669
|
};
|
|
655
670
|
}
|
|
656
671
|
|
|
672
|
+
@CaptureSpan()
|
|
657
673
|
public static override getButtonsBlock(data: {
|
|
658
674
|
payloadButtonsBlock: WorkspacePayloadButtons;
|
|
659
675
|
}): JSONObject {
|
|
@@ -674,6 +690,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
674
690
|
return buttonsBlock;
|
|
675
691
|
}
|
|
676
692
|
|
|
693
|
+
@CaptureSpan()
|
|
677
694
|
public static override async createChannel(data: {
|
|
678
695
|
authToken: string;
|
|
679
696
|
channelName: string;
|
|
@@ -740,6 +757,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
740
757
|
return channel;
|
|
741
758
|
}
|
|
742
759
|
|
|
760
|
+
@CaptureSpan()
|
|
743
761
|
public static override getHeaderBlock(data: {
|
|
744
762
|
payloadHeaderBlock: WorkspacePayloadHeader;
|
|
745
763
|
}): JSONObject {
|
|
@@ -759,6 +777,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
759
777
|
return headerBlock;
|
|
760
778
|
}
|
|
761
779
|
|
|
780
|
+
@CaptureSpan()
|
|
762
781
|
public static override getCheckboxBlock(data: {
|
|
763
782
|
payloadCheckboxBlock: WorkspaceCheckboxBlock;
|
|
764
783
|
}): JSONObject {
|
|
@@ -811,6 +830,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
811
830
|
return checkboxBlock;
|
|
812
831
|
}
|
|
813
832
|
|
|
833
|
+
@CaptureSpan()
|
|
814
834
|
public static override getDateTimePickerBlock(data: {
|
|
815
835
|
payloadDateTimePickerBlock: WorkspaceDateTimePickerBlock;
|
|
816
836
|
}): JSONObject {
|
|
@@ -835,6 +855,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
835
855
|
return dateTimePickerBlock;
|
|
836
856
|
}
|
|
837
857
|
|
|
858
|
+
@CaptureSpan()
|
|
838
859
|
public static override getTextAreaBlock(data: {
|
|
839
860
|
payloadTextAreaBlock: WorkspaceTextAreaBlock;
|
|
840
861
|
}): JSONObject {
|
|
@@ -876,6 +897,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
876
897
|
return textAreaBlock;
|
|
877
898
|
}
|
|
878
899
|
|
|
900
|
+
@CaptureSpan()
|
|
879
901
|
public static override getTextBoxBlock(data: {
|
|
880
902
|
payloadTextBoxBlock: WorkspaceTextBoxBlock;
|
|
881
903
|
}): JSONObject {
|
|
@@ -916,6 +938,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
916
938
|
return textBoxBlock;
|
|
917
939
|
}
|
|
918
940
|
|
|
941
|
+
@CaptureSpan()
|
|
919
942
|
public static override getImageBlock(data: {
|
|
920
943
|
payloadImageBlock: WorkspacePayloadImage;
|
|
921
944
|
}): JSONObject {
|
|
@@ -933,6 +956,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
933
956
|
return imageBlock;
|
|
934
957
|
}
|
|
935
958
|
|
|
959
|
+
@CaptureSpan()
|
|
936
960
|
public static override getDropdownBlock(data: {
|
|
937
961
|
payloadDropdownBlock: WorkspaceDropdownBlock;
|
|
938
962
|
}): JSONObject {
|
|
@@ -996,6 +1020,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
996
1020
|
return dropdownBlock;
|
|
997
1021
|
}
|
|
998
1022
|
|
|
1023
|
+
@CaptureSpan()
|
|
999
1024
|
public static override getModalBlock(data: {
|
|
1000
1025
|
payloadModalBlock: WorkspaceModalBlock;
|
|
1001
1026
|
}): JSONObject {
|
|
@@ -1028,6 +1053,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
1028
1053
|
return modalBlock;
|
|
1029
1054
|
}
|
|
1030
1055
|
|
|
1056
|
+
@CaptureSpan()
|
|
1031
1057
|
public static override getMarkdownBlock(data: {
|
|
1032
1058
|
payloadMarkdownBlock: WorkspacePayloadMarkdown;
|
|
1033
1059
|
}): JSONObject {
|
|
@@ -1049,6 +1075,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
1049
1075
|
return markdownBlock;
|
|
1050
1076
|
}
|
|
1051
1077
|
|
|
1078
|
+
@CaptureSpan()
|
|
1052
1079
|
public static override async isUserInDirectMessageChannel(data: {
|
|
1053
1080
|
authToken: string;
|
|
1054
1081
|
userId: string;
|
|
@@ -1093,6 +1120,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
1093
1120
|
return false;
|
|
1094
1121
|
}
|
|
1095
1122
|
|
|
1123
|
+
@CaptureSpan()
|
|
1096
1124
|
public static override async isUserInChannel(data: {
|
|
1097
1125
|
authToken: string;
|
|
1098
1126
|
channelId: string;
|
|
@@ -1163,6 +1191,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
1163
1191
|
return false;
|
|
1164
1192
|
}
|
|
1165
1193
|
|
|
1194
|
+
@CaptureSpan()
|
|
1166
1195
|
public static override getButtonBlock(data: {
|
|
1167
1196
|
payloadButtonBlock: WorkspaceMessagePayloadButton;
|
|
1168
1197
|
}): JSONObject {
|
|
@@ -1188,6 +1217,7 @@ export default class SlackUtil extends WorkspaceBase {
|
|
|
1188
1217
|
return buttonBlock;
|
|
1189
1218
|
}
|
|
1190
1219
|
|
|
1220
|
+
@CaptureSpan()
|
|
1191
1221
|
public static override async sendMessageToChannelViaIncomingWebhook(data: {
|
|
1192
1222
|
url: URL;
|
|
1193
1223
|
text: string;
|
|
@@ -16,8 +16,10 @@ import { MessageBlocksByWorkspaceType } from "../../Services/WorkspaceNotificati
|
|
|
16
16
|
import WorkspaceUserAuthToken from "../../../Models/DatabaseModels/WorkspaceUserAuthToken";
|
|
17
17
|
import WorkspaceUserAuthTokenService from "../../Services/WorkspaceUserAuthTokenService";
|
|
18
18
|
import UserService from "../../Services/UserService";
|
|
19
|
+
import CaptureSpan from "../Telemetry/CaptureSpan";
|
|
19
20
|
|
|
20
21
|
export default class WorkspaceUtil {
|
|
22
|
+
@CaptureSpan()
|
|
21
23
|
public static async getMessageBlocksByMarkdown(data: {
|
|
22
24
|
projectId: ObjectID;
|
|
23
25
|
// this is oneuptime user id.
|
|
@@ -50,13 +52,23 @@ export default class WorkspaceUtil {
|
|
|
50
52
|
if (!projectAuthToken || !projectAuthToken.authToken) {
|
|
51
53
|
userStringToAppend = "";
|
|
52
54
|
} else {
|
|
53
|
-
const workspaceUsername: string =
|
|
55
|
+
const workspaceUsername: string | null =
|
|
54
56
|
await this.getUserNameFromWorkspace({
|
|
55
57
|
userId: workspaceUserToken.workspaceUserId,
|
|
56
58
|
workspaceType: workspaceType,
|
|
57
59
|
authToken: projectAuthToken.authToken,
|
|
58
60
|
});
|
|
59
61
|
|
|
62
|
+
if (!workspaceUsername) {
|
|
63
|
+
const userstring: string =
|
|
64
|
+
await UserService.getUserMarkdownString({
|
|
65
|
+
userId: data.userId,
|
|
66
|
+
projectId: data.projectId,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
userStringToAppend = `${userstring} `;
|
|
70
|
+
}
|
|
71
|
+
|
|
60
72
|
userStringToAppend = `@${workspaceUsername} `;
|
|
61
73
|
}
|
|
62
74
|
} else {
|
|
@@ -83,6 +95,7 @@ export default class WorkspaceUtil {
|
|
|
83
95
|
return messageBlocksByWorkspaceType;
|
|
84
96
|
}
|
|
85
97
|
|
|
98
|
+
@CaptureSpan()
|
|
86
99
|
public static getAllWorkspaceTypes(): Array<WorkspaceType> {
|
|
87
100
|
const workspaceTypes: Array<WorkspaceType> = [];
|
|
88
101
|
|
|
@@ -93,6 +106,7 @@ export default class WorkspaceUtil {
|
|
|
93
106
|
return workspaceTypes;
|
|
94
107
|
}
|
|
95
108
|
|
|
109
|
+
@CaptureSpan()
|
|
96
110
|
public static getWorkspaceTypeUtil(
|
|
97
111
|
workspaceType: WorkspaceType,
|
|
98
112
|
): typeof WorkspaceBase {
|
|
@@ -109,12 +123,13 @@ export default class WorkspaceUtil {
|
|
|
109
123
|
);
|
|
110
124
|
}
|
|
111
125
|
|
|
126
|
+
@CaptureSpan()
|
|
112
127
|
public static async getUserNameFromWorkspace(data: {
|
|
113
128
|
userId: string;
|
|
114
129
|
workspaceType: WorkspaceType;
|
|
115
130
|
authToken: string;
|
|
116
|
-
}): Promise<string> {
|
|
117
|
-
const userName: string = await WorkspaceUtil.getWorkspaceTypeUtil(
|
|
131
|
+
}): Promise<string | null> {
|
|
132
|
+
const userName: string | null = await WorkspaceUtil.getWorkspaceTypeUtil(
|
|
118
133
|
data.workspaceType,
|
|
119
134
|
).getUsernameFromUserId({
|
|
120
135
|
userId: data.userId,
|
|
@@ -124,6 +139,7 @@ export default class WorkspaceUtil {
|
|
|
124
139
|
return userName;
|
|
125
140
|
}
|
|
126
141
|
|
|
142
|
+
@CaptureSpan()
|
|
127
143
|
public static async postMessageToAllWorkspaceChannelsAsBot(data: {
|
|
128
144
|
projectId: ObjectID;
|
|
129
145
|
messagePayloadsByWorkspace: Array<WorkspaceMessagePayload>;
|
|
@@ -191,6 +207,7 @@ export default class WorkspaceUtil {
|
|
|
191
207
|
return responses;
|
|
192
208
|
}
|
|
193
209
|
|
|
210
|
+
@CaptureSpan()
|
|
194
211
|
public static async postToWorkspaceChannels(data: {
|
|
195
212
|
workspaceUserId: string;
|
|
196
213
|
projectOrUserAuthTokenForWorkspace: string;
|
|
@@ -21,6 +21,7 @@ import WorkspaceMessagePayload, {
|
|
|
21
21
|
import WorkspaceType from "../../../Types/Workspace/WorkspaceType";
|
|
22
22
|
import logger from "../Logger";
|
|
23
23
|
import URL from "Common/Types/API/URL";
|
|
24
|
+
import CaptureSpan from "../Telemetry/CaptureSpan";
|
|
24
25
|
|
|
25
26
|
export interface WorkspaceThread {
|
|
26
27
|
channel: WorkspaceChannel;
|
|
@@ -39,6 +40,7 @@ export interface WorkspaceChannel {
|
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
export default class WorkspaceBase {
|
|
43
|
+
@CaptureSpan()
|
|
42
44
|
public static async isUserInDirectMessageChannel(_data: {
|
|
43
45
|
authToken: string;
|
|
44
46
|
userId: string;
|
|
@@ -46,13 +48,15 @@ export default class WorkspaceBase {
|
|
|
46
48
|
}): Promise<boolean> {
|
|
47
49
|
throw new NotImplementedException();
|
|
48
50
|
}
|
|
51
|
+
@CaptureSpan()
|
|
49
52
|
public static async getUsernameFromUserId(_data: {
|
|
50
53
|
authToken: string;
|
|
51
54
|
userId: string;
|
|
52
|
-
}): Promise<string> {
|
|
55
|
+
}): Promise<string | null> {
|
|
53
56
|
throw new NotImplementedException();
|
|
54
57
|
}
|
|
55
58
|
|
|
59
|
+
@CaptureSpan()
|
|
56
60
|
public static async showModalToUser(_data: {
|
|
57
61
|
authToken: string;
|
|
58
62
|
triggerId: string;
|
|
@@ -61,12 +65,14 @@ export default class WorkspaceBase {
|
|
|
61
65
|
throw new NotImplementedException();
|
|
62
66
|
}
|
|
63
67
|
|
|
68
|
+
@CaptureSpan()
|
|
64
69
|
public static getCheckboxBlock(_data: {
|
|
65
70
|
payloadCheckboxBlock: WorkspaceCheckboxBlock;
|
|
66
71
|
}): JSONObject {
|
|
67
72
|
throw new NotImplementedException();
|
|
68
73
|
}
|
|
69
74
|
|
|
75
|
+
@CaptureSpan()
|
|
70
76
|
public static sendDirectMessageToUser(_data: {
|
|
71
77
|
authToken: string;
|
|
72
78
|
workspaceUserId: string;
|
|
@@ -75,6 +81,7 @@ export default class WorkspaceBase {
|
|
|
75
81
|
throw new NotImplementedException();
|
|
76
82
|
}
|
|
77
83
|
|
|
84
|
+
@CaptureSpan()
|
|
78
85
|
public static async joinChannel(_data: {
|
|
79
86
|
authToken: string;
|
|
80
87
|
channelId: string;
|
|
@@ -82,6 +89,7 @@ export default class WorkspaceBase {
|
|
|
82
89
|
throw new NotImplementedException();
|
|
83
90
|
}
|
|
84
91
|
|
|
92
|
+
@CaptureSpan()
|
|
85
93
|
public static async sendPayloadBlocksToChannel(_data: {
|
|
86
94
|
authToken: string;
|
|
87
95
|
workspaceChannel: WorkspaceChannel;
|
|
@@ -90,6 +98,7 @@ export default class WorkspaceBase {
|
|
|
90
98
|
throw new NotImplementedException();
|
|
91
99
|
}
|
|
92
100
|
|
|
101
|
+
@CaptureSpan()
|
|
93
102
|
public static async inviteUsersToChannels(data: {
|
|
94
103
|
authToken: string;
|
|
95
104
|
workspaceChannelInvitationPayload: WorkspaceChannelInvitationPayload;
|
|
@@ -105,6 +114,7 @@ export default class WorkspaceBase {
|
|
|
105
114
|
}
|
|
106
115
|
}
|
|
107
116
|
|
|
117
|
+
@CaptureSpan()
|
|
108
118
|
public static async inviteUsersToChannel(data: {
|
|
109
119
|
authToken: string;
|
|
110
120
|
channelName: string;
|
|
@@ -119,6 +129,7 @@ export default class WorkspaceBase {
|
|
|
119
129
|
}
|
|
120
130
|
}
|
|
121
131
|
|
|
132
|
+
@CaptureSpan()
|
|
122
133
|
public static async inviteUserToChannelByChannelName(_data: {
|
|
123
134
|
authToken: string;
|
|
124
135
|
channelName: string;
|
|
@@ -127,18 +138,21 @@ export default class WorkspaceBase {
|
|
|
127
138
|
throw new NotImplementedException();
|
|
128
139
|
}
|
|
129
140
|
|
|
141
|
+
@CaptureSpan()
|
|
130
142
|
public static getDateTimePickerBlock(_data: {
|
|
131
143
|
payloadDateTimePickerBlock: WorkspaceDateTimePickerBlock;
|
|
132
144
|
}): JSONObject {
|
|
133
145
|
throw new NotImplementedException();
|
|
134
146
|
}
|
|
135
147
|
|
|
148
|
+
@CaptureSpan()
|
|
136
149
|
public static async inviteUserToChannelByChannelId(_data: {
|
|
137
150
|
authToken: string;
|
|
138
151
|
channelId: string;
|
|
139
152
|
workspaceUserId: string;
|
|
140
153
|
}): Promise<void> {}
|
|
141
154
|
|
|
155
|
+
@CaptureSpan()
|
|
142
156
|
public static async createChannelsIfDoesNotExist(_data: {
|
|
143
157
|
authToken: string;
|
|
144
158
|
channelNames: Array<string>;
|
|
@@ -146,6 +160,7 @@ export default class WorkspaceBase {
|
|
|
146
160
|
throw new NotImplementedException();
|
|
147
161
|
}
|
|
148
162
|
|
|
163
|
+
@CaptureSpan()
|
|
149
164
|
public static async getWorkspaceChannelFromChannelId(_data: {
|
|
150
165
|
authToken: string;
|
|
151
166
|
channelId: string;
|
|
@@ -153,6 +168,7 @@ export default class WorkspaceBase {
|
|
|
153
168
|
throw new NotImplementedException();
|
|
154
169
|
}
|
|
155
170
|
|
|
171
|
+
@CaptureSpan()
|
|
156
172
|
public static async sendMessage(_data: {
|
|
157
173
|
workspaceMessagePayload: WorkspaceMessagePayload;
|
|
158
174
|
authToken: string; // which auth token should we use to send.
|
|
@@ -161,12 +177,14 @@ export default class WorkspaceBase {
|
|
|
161
177
|
throw new NotImplementedException();
|
|
162
178
|
}
|
|
163
179
|
|
|
180
|
+
@CaptureSpan()
|
|
164
181
|
public static async getAllWorkspaceChannels(_data: {
|
|
165
182
|
authToken: string;
|
|
166
183
|
}): Promise<Dictionary<WorkspaceChannel>> {
|
|
167
184
|
throw new NotImplementedException();
|
|
168
185
|
}
|
|
169
186
|
|
|
187
|
+
@CaptureSpan()
|
|
170
188
|
public static async getWorkspaceChannelFromChannelName(_data: {
|
|
171
189
|
authToken: string;
|
|
172
190
|
channelName: string;
|
|
@@ -174,6 +192,7 @@ export default class WorkspaceBase {
|
|
|
174
192
|
throw new NotImplementedException();
|
|
175
193
|
}
|
|
176
194
|
|
|
195
|
+
@CaptureSpan()
|
|
177
196
|
public static async createChannel(_data: {
|
|
178
197
|
authToken: string;
|
|
179
198
|
channelName: string;
|
|
@@ -181,28 +200,33 @@ export default class WorkspaceBase {
|
|
|
181
200
|
throw new NotImplementedException();
|
|
182
201
|
}
|
|
183
202
|
|
|
203
|
+
@CaptureSpan()
|
|
184
204
|
public static getHeaderBlock(_data: {
|
|
185
205
|
payloadHeaderBlock: WorkspacePayloadHeader;
|
|
186
206
|
}): JSONObject {
|
|
187
207
|
throw new NotImplementedException();
|
|
188
208
|
}
|
|
189
209
|
|
|
210
|
+
@CaptureSpan()
|
|
190
211
|
public static getDividerBlock(): JSONObject {
|
|
191
212
|
throw new NotImplementedException();
|
|
192
213
|
}
|
|
193
214
|
|
|
215
|
+
@CaptureSpan()
|
|
194
216
|
public static getMarkdownBlock(_data: {
|
|
195
217
|
payloadMarkdownBlock: WorkspacePayloadMarkdown;
|
|
196
218
|
}): JSONObject {
|
|
197
219
|
throw new NotImplementedException();
|
|
198
220
|
}
|
|
199
221
|
|
|
222
|
+
@CaptureSpan()
|
|
200
223
|
public static getButtonBlock(_data: {
|
|
201
224
|
payloadButtonBlock: WorkspaceMessagePayloadButton;
|
|
202
225
|
}): JSONObject {
|
|
203
226
|
throw new NotImplementedException();
|
|
204
227
|
}
|
|
205
228
|
|
|
229
|
+
@CaptureSpan()
|
|
206
230
|
public static getBlocksFromWorkspaceMessagePayload(data: {
|
|
207
231
|
messageBlocks: Array<WorkspaceMessageBlock>;
|
|
208
232
|
}): Array<JSONObject> {
|
|
@@ -285,42 +309,49 @@ export default class WorkspaceBase {
|
|
|
285
309
|
return blocks;
|
|
286
310
|
}
|
|
287
311
|
|
|
312
|
+
@CaptureSpan()
|
|
288
313
|
public static getTextAreaBlock(_data: {
|
|
289
314
|
payloadTextAreaBlock: WorkspaceTextAreaBlock;
|
|
290
315
|
}): JSONObject {
|
|
291
316
|
throw new NotImplementedException();
|
|
292
317
|
}
|
|
293
318
|
|
|
319
|
+
@CaptureSpan()
|
|
294
320
|
public static getTextBoxBlock(_data: {
|
|
295
321
|
payloadTextBoxBlock: WorkspaceTextBoxBlock;
|
|
296
322
|
}): JSONObject {
|
|
297
323
|
throw new NotImplementedException();
|
|
298
324
|
}
|
|
299
325
|
|
|
326
|
+
@CaptureSpan()
|
|
300
327
|
public static getImageBlock(_data: {
|
|
301
328
|
payloadImageBlock: WorkspacePayloadImage;
|
|
302
329
|
}): JSONObject {
|
|
303
330
|
throw new NotImplementedException();
|
|
304
331
|
}
|
|
305
332
|
|
|
333
|
+
@CaptureSpan()
|
|
306
334
|
public static getDropdownBlock(_data: {
|
|
307
335
|
payloadDropdownBlock: WorkspaceDropdownBlock;
|
|
308
336
|
}): JSONObject {
|
|
309
337
|
throw new NotImplementedException();
|
|
310
338
|
}
|
|
311
339
|
|
|
340
|
+
@CaptureSpan()
|
|
312
341
|
public static getModalBlock(_data: {
|
|
313
342
|
payloadModalBlock: WorkspaceModalBlock;
|
|
314
343
|
}): JSONObject {
|
|
315
344
|
throw new NotImplementedException();
|
|
316
345
|
}
|
|
317
346
|
|
|
347
|
+
@CaptureSpan()
|
|
318
348
|
public static getButtonsBlock(_data: {
|
|
319
349
|
payloadButtonsBlock: WorkspacePayloadButtons;
|
|
320
350
|
}): JSONObject {
|
|
321
351
|
throw new NotImplementedException();
|
|
322
352
|
}
|
|
323
353
|
|
|
354
|
+
@CaptureSpan()
|
|
324
355
|
public static async sendMessageToChannelViaIncomingWebhook(_data: {
|
|
325
356
|
url: URL;
|
|
326
357
|
text: string;
|
|
@@ -328,6 +359,7 @@ export default class WorkspaceBase {
|
|
|
328
359
|
throw new NotImplementedException();
|
|
329
360
|
}
|
|
330
361
|
|
|
362
|
+
@CaptureSpan()
|
|
331
363
|
public static async isUserInChannel(_data: {
|
|
332
364
|
authToken: string;
|
|
333
365
|
channelId: string;
|
|
@@ -8,8 +8,10 @@ import WorkspaceNotificationRuleService, {
|
|
|
8
8
|
} from "../../../Services/WorkspaceNotificationRuleService";
|
|
9
9
|
import logger from "../../Logger";
|
|
10
10
|
import SlackAlertMessages from "../Slack/Messages/Alert";
|
|
11
|
+
import CaptureSpan from "../../Telemetry/CaptureSpan";
|
|
11
12
|
|
|
12
13
|
export default class AlertWorkspaceMessages {
|
|
14
|
+
@CaptureSpan()
|
|
13
15
|
public static async createChannelsAndInviteUsersToChannels(data: {
|
|
14
16
|
projectId: ObjectID;
|
|
15
17
|
alertId: ObjectID;
|
|
@@ -37,6 +39,7 @@ export default class AlertWorkspaceMessages {
|
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
@CaptureSpan()
|
|
40
43
|
public static async getAlertCreateMessageBlocks(data: {
|
|
41
44
|
alertId: ObjectID;
|
|
42
45
|
projectId: ObjectID;
|
|
@@ -8,8 +8,10 @@ import WorkspaceNotificationRuleService, {
|
|
|
8
8
|
} from "../../../Services/WorkspaceNotificationRuleService";
|
|
9
9
|
import logger from "../../Logger";
|
|
10
10
|
import SlackIncidentMessages from "../Slack/Messages/Incident";
|
|
11
|
+
import CaptureSpan from "../../Telemetry/CaptureSpan";
|
|
11
12
|
|
|
12
13
|
export default class IncidentWorkspaceMessages {
|
|
14
|
+
@CaptureSpan()
|
|
13
15
|
public static async createChannelsAndInviteUsersToChannels(data: {
|
|
14
16
|
projectId: ObjectID;
|
|
15
17
|
incidentId: ObjectID;
|
|
@@ -36,6 +38,7 @@ export default class IncidentWorkspaceMessages {
|
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
|
|
41
|
+
@CaptureSpan()
|
|
39
42
|
public static async getIncidentCreateMessageBlocks(data: {
|
|
40
43
|
incidentId: ObjectID;
|
|
41
44
|
projectId: ObjectID;
|