@oneuptime/common 10.2.2 → 10.2.4
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/Index.ts +6 -0
- package/Models/DatabaseModels/StatusPage.ts +43 -0
- package/Models/DatabaseModels/StatusPageOidc.ts +689 -0
- package/Models/DatabaseModels/UserNotificationRule.ts +49 -0
- package/Models/DatabaseModels/UserNotificationSetting.ts +17 -0
- package/Models/DatabaseModels/UserOnCallLogTimeline.ts +48 -0
- package/Models/DatabaseModels/UserWebhook.ts +290 -0
- package/Models/DatabaseModels/WebhookLog.ts +992 -0
- package/Server/API/StatusPageAPI.ts +78 -3
- package/Server/API/UserWebhookAPI.ts +159 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1778506655291-AddProjectOIDC.ts +1 -1
- package/Server/Infrastructure/Postgres/SchemaMigrations/1778514515756-MigrationName.ts +259 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1778521361934-MigrationName.ts +17 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1778522070962-AddStatusPageOIDC.ts +63 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +6 -0
- package/Server/Services/Index.ts +2 -0
- package/Server/Services/ScheduledMaintenanceService.ts +34 -0
- package/Server/Services/StatusPageOidcService.ts +10 -0
- package/Server/Services/StatusPageSubscriberService.ts +101 -0
- package/Server/Services/UserNotificationRuleService.ts +213 -1
- package/Server/Services/UserNotificationSettingService.ts +95 -0
- package/Server/Services/UserWebhookService.ts +208 -0
- package/Server/Services/WebhookLogService.ts +15 -0
- package/Server/Services/WebhookService.ts +126 -0
- package/Server/Utils/StatusPageSubscriberWebhook.ts +39 -0
- package/Types/Permission.ts +58 -0
- package/Types/Webhook/WebhookMessage.ts +8 -0
- package/Types/WebhookStatus.ts +6 -0
- package/build/dist/Models/DatabaseModels/Index.js +6 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPage.js +45 -0
- package/build/dist/Models/DatabaseModels/StatusPage.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPageOidc.js +718 -0
- package/build/dist/Models/DatabaseModels/StatusPageOidc.js.map +1 -0
- package/build/dist/Models/DatabaseModels/UserNotificationRule.js +49 -0
- package/build/dist/Models/DatabaseModels/UserNotificationRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/UserNotificationSetting.js +19 -0
- package/build/dist/Models/DatabaseModels/UserNotificationSetting.js.map +1 -1
- package/build/dist/Models/DatabaseModels/UserOnCallLogTimeline.js +48 -0
- package/build/dist/Models/DatabaseModels/UserOnCallLogTimeline.js.map +1 -1
- package/build/dist/Models/DatabaseModels/UserWebhook.js +307 -0
- package/build/dist/Models/DatabaseModels/UserWebhook.js.map +1 -0
- package/build/dist/Models/DatabaseModels/WebhookLog.js +1021 -0
- package/build/dist/Models/DatabaseModels/WebhookLog.js.map +1 -0
- package/build/dist/Server/API/StatusPageAPI.js +80 -35
- package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
- package/build/dist/Server/API/UserWebhookAPI.js +99 -0
- package/build/dist/Server/API/UserWebhookAPI.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1778506655291-AddProjectOIDC.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1778514515756-MigrationName.js +94 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1778514515756-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1778521361934-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1778521361934-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1778522070962-AddStatusPageOIDC.js +28 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1778522070962-AddStatusPageOIDC.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +6 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Services/Index.js +2 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceService.js +31 -2
- package/build/dist/Server/Services/ScheduledMaintenanceService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageOidcService.js +9 -0
- package/build/dist/Server/Services/StatusPageOidcService.js.map +1 -0
- package/build/dist/Server/Services/StatusPageSubscriberService.js +99 -4
- package/build/dist/Server/Services/StatusPageSubscriberService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationRuleService.js +178 -21
- package/build/dist/Server/Services/UserNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationSettingService.js +84 -1
- package/build/dist/Server/Services/UserNotificationSettingService.js.map +1 -1
- package/build/dist/Server/Services/UserWebhookService.js +190 -0
- package/build/dist/Server/Services/UserWebhookService.js.map +1 -0
- package/build/dist/Server/Services/WebhookLogService.js +13 -0
- package/build/dist/Server/Services/WebhookLogService.js.map +1 -0
- package/build/dist/Server/Services/WebhookService.js +92 -0
- package/build/dist/Server/Services/WebhookService.js.map +1 -0
- package/build/dist/Server/Utils/StatusPageSubscriberWebhook.js +19 -0
- package/build/dist/Server/Utils/StatusPageSubscriberWebhook.js.map +1 -0
- package/build/dist/Types/Permission.js +50 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Webhook/WebhookMessage.js +2 -0
- package/build/dist/Types/Webhook/WebhookMessage.js.map +1 -0
- package/build/dist/Types/WebhookStatus.js +7 -0
- package/build/dist/Types/WebhookStatus.js.map +1 -0
- package/package.json +1 -1
|
@@ -148,6 +148,7 @@ import ShortLink from "./ShortLink";
|
|
|
148
148
|
import SmsLog from "./SmsLog";
|
|
149
149
|
import WhatsAppLog from "./WhatsAppLog";
|
|
150
150
|
import TelegramLog from "./TelegramLog";
|
|
151
|
+
import WebhookLog from "./WebhookLog";
|
|
151
152
|
import PushNotificationLog from "./PushNotificationLog";
|
|
152
153
|
import WorkspaceNotificationLog from "./WorkspaceNotificationLog";
|
|
153
154
|
// Status Page
|
|
@@ -167,6 +168,7 @@ import StatusPagePrivateUserSession from "./StatusPagePrivateUserSession";
|
|
|
167
168
|
import StatusPageResource from "./StatusPageResource";
|
|
168
169
|
import StatusPageSCIM from "./StatusPageSCIM";
|
|
169
170
|
import StatusPageSSO from "./StatusPageSso";
|
|
171
|
+
import StatusPageOIDC from "./StatusPageOidc";
|
|
170
172
|
import StatusPageSubscriber from "./StatusPageSubscriber";
|
|
171
173
|
import StatusPageSubscriberNotificationTemplate from "./StatusPageSubscriberNotificationTemplate";
|
|
172
174
|
import StatusPageSubscriberNotificationTemplateStatusPage from "./StatusPageSubscriberNotificationTemplateStatusPage";
|
|
@@ -185,6 +187,7 @@ import UserEmail from "./UserEmail";
|
|
|
185
187
|
import UserPush from "./UserPush";
|
|
186
188
|
import UserWhatsApp from "./UserWhatsApp";
|
|
187
189
|
import UserTelegram from "./UserTelegram";
|
|
190
|
+
import UserWebhook from "./UserWebhook";
|
|
188
191
|
// User Notification Rules
|
|
189
192
|
import UserNotificationRule from "./UserNotificationRule";
|
|
190
193
|
import UserNotificationSetting from "./UserNotificationSetting";
|
|
@@ -442,6 +445,7 @@ const AllModelTypes: Array<{
|
|
|
442
445
|
ProjectSSO,
|
|
443
446
|
ProjectOIDC,
|
|
444
447
|
StatusPageSSO,
|
|
448
|
+
StatusPageOIDC,
|
|
445
449
|
StatusPageSCIM,
|
|
446
450
|
|
|
447
451
|
MonitorProbe,
|
|
@@ -458,6 +462,7 @@ const AllModelTypes: Array<{
|
|
|
458
462
|
SmsLog,
|
|
459
463
|
WhatsAppLog,
|
|
460
464
|
TelegramLog,
|
|
465
|
+
WebhookLog,
|
|
461
466
|
PushNotificationLog,
|
|
462
467
|
WorkspaceNotificationLog,
|
|
463
468
|
CallLog,
|
|
@@ -469,6 +474,7 @@ const AllModelTypes: Array<{
|
|
|
469
474
|
UserPush,
|
|
470
475
|
UserWhatsApp,
|
|
471
476
|
UserTelegram,
|
|
477
|
+
UserWebhook,
|
|
472
478
|
UserIncomingCallNumber,
|
|
473
479
|
|
|
474
480
|
UserNotificationRule,
|
|
@@ -1462,6 +1462,49 @@ export default class StatusPage extends BaseModel {
|
|
|
1462
1462
|
})
|
|
1463
1463
|
public enableMicrosoftTeamsSubscribers?: boolean = undefined;
|
|
1464
1464
|
|
|
1465
|
+
@ColumnAccessControl({
|
|
1466
|
+
create: [
|
|
1467
|
+
Permission.ProjectOwner,
|
|
1468
|
+
Permission.ProjectAdmin,
|
|
1469
|
+
Permission.ProjectMember,
|
|
1470
|
+
Permission.StatusPageManager,
|
|
1471
|
+
Permission.CreateProjectStatusPage,
|
|
1472
|
+
],
|
|
1473
|
+
read: [
|
|
1474
|
+
Permission.ProjectOwner,
|
|
1475
|
+
Permission.ProjectAdmin,
|
|
1476
|
+
Permission.ProjectMember,
|
|
1477
|
+
Permission.Viewer,
|
|
1478
|
+
Permission.StatusPageManager,
|
|
1479
|
+
Permission.ReadProjectStatusPage,
|
|
1480
|
+
Permission.ReadAllProjectResources,
|
|
1481
|
+
],
|
|
1482
|
+
update: [
|
|
1483
|
+
Permission.ProjectOwner,
|
|
1484
|
+
Permission.ProjectAdmin,
|
|
1485
|
+
Permission.ProjectMember,
|
|
1486
|
+
Permission.StatusPageManager,
|
|
1487
|
+
Permission.EditProjectStatusPage,
|
|
1488
|
+
],
|
|
1489
|
+
})
|
|
1490
|
+
@TableColumn({
|
|
1491
|
+
isDefaultValueColumn: true,
|
|
1492
|
+
type: TableColumnType.Boolean,
|
|
1493
|
+
title: "Enable Webhook Subscribers",
|
|
1494
|
+
description: "Can Webhook subscribers subscribe to this Status Page?",
|
|
1495
|
+
defaultValue: false,
|
|
1496
|
+
})
|
|
1497
|
+
@Column({
|
|
1498
|
+
type: ColumnType.Boolean,
|
|
1499
|
+
default: false,
|
|
1500
|
+
})
|
|
1501
|
+
@ColumnBillingAccessControl({
|
|
1502
|
+
read: PlanType.Free,
|
|
1503
|
+
update: PlanType.Scale,
|
|
1504
|
+
create: PlanType.Free,
|
|
1505
|
+
})
|
|
1506
|
+
public enableWebhookSubscribers?: boolean = undefined;
|
|
1507
|
+
|
|
1465
1508
|
@ColumnAccessControl({
|
|
1466
1509
|
create: [
|
|
1467
1510
|
Permission.ProjectOwner,
|