@oneuptime/common 14.0.92 → 14.0.93
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/Alert.js +8 -1
- package/Models/DatabaseModels/AlertEpisodeMember.d.mts +1 -0
- package/Models/DatabaseModels/AlertEpisodeMember.d.ts +1 -0
- package/Models/DatabaseModels/AlertEpisodeMember.js +50 -0
- package/Models/DatabaseModels/IncidentEpisodeMember.d.mts +1 -0
- package/Models/DatabaseModels/IncidentEpisodeMember.d.ts +1 -0
- package/Models/DatabaseModels/IncidentEpisodeMember.js +50 -0
- package/Models/DatabaseModels/IncomingCallPolicy.js +1 -1
- package/Models/DatabaseModels/LlmProvider.js +1 -1
- package/Models/DatabaseModels/MonitorTemplate.js +10 -4
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +13 -13
- package/Models/DatabaseModels/OnCallDutyPolicy.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +1 -1
- package/Models/DatabaseModels/StatusPage.d.mts +2 -0
- package/Models/DatabaseModels/StatusPage.d.ts +2 -0
- package/Models/DatabaseModels/StatusPage.js +100 -0
- package/Types/Database/BlankColumnValue.d.mts +6 -0
- package/Types/Database/BlankColumnValue.d.ts +6 -0
- package/Types/Database/BlankColumnValue.js +77 -0
- package/Types/Database/BlankColumnValue.mjs +4 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +1 -0
- package/Types/IncomingCall/IncomingCallPolicyRepeat.d.mts +6 -0
- package/Types/IncomingCall/IncomingCallPolicyRepeat.d.ts +6 -0
- package/Types/IncomingCall/IncomingCallPolicyRepeat.js +41 -14
- package/Types/IncomingCall/IncomingCallPolicyRepeat.mjs +3 -0
- package/Types/Monitor/CriteriaFilter.d.mts +1 -0
- package/Types/Monitor/CriteriaFilter.d.ts +1 -0
- package/Types/Monitor/CriteriaFilter.js +9 -0
- package/Types/Monitor/DatabaseMetricCatalog.js +2 -2
- package/Types/Monitor/KubernetesEventAlertTemplates.d.mts +20 -0
- package/Types/Monitor/KubernetesEventAlertTemplates.d.ts +20 -0
- package/Types/Monitor/KubernetesEventAlertTemplates.js +232 -0
- package/Types/Monitor/KubernetesEventAlertTemplates.mjs +8 -0
- package/Types/Monitor/MonitorType.js +12 -2
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +27 -2
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.mts +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.ts +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +31 -1
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.mts +3 -1
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.ts +3 -1
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js +3 -2
- package/Types/Monitor/SnmpMonitor/SnmpMonitorResponse.d.mts +1 -0
- package/Types/Monitor/SnmpMonitor/SnmpMonitorResponse.d.ts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +2 -0
- package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +10 -3
- package/Types/NotificationSetting/NotificationSettingEventType.d.mts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.ts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.js +7 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRepeat.d.mts +7 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRepeat.d.ts +7 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRepeat.js +51 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRepeat.mjs +4 -0
- package/Types/Reminder/ScheduledMaintenanceReminderNeverReminds.d.mts +8 -0
- package/Types/Reminder/ScheduledMaintenanceReminderNeverReminds.d.ts +8 -0
- package/Types/Reminder/ScheduledMaintenanceReminderNeverReminds.js +55 -0
- package/Types/Reminder/ScheduledMaintenanceReminderNeverReminds.mjs +5 -0
- package/Types/Workflow/Templates.js +2 -5
- package/Utils/ColorContrast.d.mts +3 -0
- package/Utils/ColorContrast.d.ts +3 -0
- package/Utils/ColorContrast.js +41 -3
- package/Utils/ColorContrast.mjs +2 -0
- package/Utils/Incident/WhoOpenedItRootCause.d.mts +2 -0
- package/Utils/Incident/WhoOpenedItRootCause.d.ts +2 -0
- package/Utils/Incident/WhoOpenedItRootCause.js +50 -0
- package/Utils/Incident/WhoOpenedItRootCause.mjs +3 -0
- package/Utils/Monitor/SyntheticMonitorStepsUtil.d.mts +18 -0
- package/Utils/Monitor/SyntheticMonitorStepsUtil.d.ts +18 -0
- package/Utils/Monitor/SyntheticMonitorStepsUtil.js +129 -0
- package/Utils/Monitor/SyntheticMonitorStepsUtil.mjs +4 -0
- package/Utils/Rules/RuleRunSummary.d.mts +1 -0
- package/Utils/Rules/RuleRunSummary.d.ts +1 -0
- package/Utils/Rules/RuleRunSummary.js +19 -1
- package/Utils/Rules/RuleRunSummary.mjs +1 -0
- package/Utils/Sms/Gsm7Text.js +9 -1
- package/Utils/Sms/OnCallPageSms.d.mts +2 -0
- package/Utils/Sms/OnCallPageSms.d.ts +2 -0
- package/Utils/Sms/OnCallPageSms.js +19 -2
- package/Utils/Sms/OnCallPageSms.mjs +1 -0
- package/Utils/Sms/SubscriberSms.d.mts +2 -0
- package/Utils/Sms/SubscriberSms.d.ts +2 -0
- package/Utils/Sms/SubscriberSms.js +35 -0
- package/Utils/Sms/SubscriberSms.mjs +3 -0
- package/package.json +1 -1
|
@@ -1971,7 +1971,14 @@ __decorate([
|
|
|
1971
1971
|
Permission_1.default.AlertViewer,
|
|
1972
1972
|
Permission_1.default.ReadAlert,
|
|
1973
1973
|
],
|
|
1974
|
-
update: [
|
|
1974
|
+
update: [
|
|
1975
|
+
Permission_1.default.ProjectOwner,
|
|
1976
|
+
Permission_1.default.ProjectAdmin,
|
|
1977
|
+
Permission_1.default.ProjectMember,
|
|
1978
|
+
Permission_1.default.AlertAdmin,
|
|
1979
|
+
Permission_1.default.AlertMember,
|
|
1980
|
+
Permission_1.default.EditAlert,
|
|
1981
|
+
],
|
|
1975
1982
|
}),
|
|
1976
1983
|
(0, TableColumn_1.default)({
|
|
1977
1984
|
type: TableColumnType_1.default.Markdown,
|
|
@@ -61,6 +61,12 @@ let AlertEpisodeMember = class AlertEpisodeMember extends DatabaseBaseModel_1.de
|
|
|
61
61
|
this.createdByUser = undefined;
|
|
62
62
|
this.createdByUserId = undefined;
|
|
63
63
|
this.isOwnerNotifiedOfAlertAdded = undefined;
|
|
64
|
+
/*
|
|
65
|
+
* Whether the alert was in no episode when this membership was made: its
|
|
66
|
+
* first. Written by OneUptime on every add, whatever a write sends; the
|
|
67
|
+
* index above lets at most one membership of an alert have it.
|
|
68
|
+
*/
|
|
69
|
+
this.isFirstMembership = undefined;
|
|
64
70
|
this.deletedByUser = undefined;
|
|
65
71
|
this.deletedByUserId = undefined;
|
|
66
72
|
}
|
|
@@ -631,6 +637,29 @@ __decorate([
|
|
|
631
637
|
}),
|
|
632
638
|
__metadata("design:type", Boolean)
|
|
633
639
|
], AlertEpisodeMember.prototype, "isOwnerNotifiedOfAlertAdded", void 0);
|
|
640
|
+
__decorate([
|
|
641
|
+
(0, ColumnAccessControl_1.default)({
|
|
642
|
+
create: [],
|
|
643
|
+
read: [],
|
|
644
|
+
update: [],
|
|
645
|
+
}),
|
|
646
|
+
(0, TableColumn_1.default)({
|
|
647
|
+
type: TableColumnType_1.default.Boolean,
|
|
648
|
+
computed: true,
|
|
649
|
+
hideColumnInDocumentation: true,
|
|
650
|
+
required: true,
|
|
651
|
+
isDefaultValueColumn: true,
|
|
652
|
+
title: "Is First Membership",
|
|
653
|
+
description: "Whether the alert was in no other episode when it was added to this one. Set by the server.",
|
|
654
|
+
defaultValue: false,
|
|
655
|
+
}),
|
|
656
|
+
(0, typeorm_1.Column)({
|
|
657
|
+
type: ColumnType_1.default.Boolean,
|
|
658
|
+
nullable: false,
|
|
659
|
+
default: false,
|
|
660
|
+
}),
|
|
661
|
+
__metadata("design:type", Boolean)
|
|
662
|
+
], AlertEpisodeMember.prototype, "isFirstMembership", void 0);
|
|
634
663
|
__decorate([
|
|
635
664
|
(0, ColumnAccessControl_1.default)({
|
|
636
665
|
create: [],
|
|
@@ -779,5 +808,26 @@ AlertEpisodeMember = __decorate([
|
|
|
779
808
|
(0, typeorm_1.Index)(["isOwnerNotifiedOfAlertAdded"], {
|
|
780
809
|
where: '"isOwnerNotifiedOfAlertAdded" = false AND "deletedAt" IS NULL',
|
|
781
810
|
})
|
|
811
|
+
/*
|
|
812
|
+
* AT MOST ONE FIRST MEMBERSHIP PER ALERT (isFirstMembership).
|
|
813
|
+
*
|
|
814
|
+
* A project can allow an alert in only one episode (EpisodeSingleMembership).
|
|
815
|
+
* The member service checks the alert's memberships before it adds one, and
|
|
816
|
+
* two adds of an alert that is in no episode, at the same moment - a person
|
|
817
|
+
* and the grouping engine, two tabs - both found none, and both were added.
|
|
818
|
+
* Every add made while the alert is in no episode is its first membership,
|
|
819
|
+
* and this index takes one per alert: the add that loses the race is refused
|
|
820
|
+
* here, and the service checks it again - refused while the project allows
|
|
821
|
+
* one episode, added as a second membership while it allows several
|
|
822
|
+
* (AlertEpisodeMemberService.create).
|
|
823
|
+
*
|
|
824
|
+
* Partial, so only first memberships are in it; "deletedAt" IS NULL as in
|
|
825
|
+
* the index above. Built online in its own migration (OnlineDdl).
|
|
826
|
+
*/
|
|
827
|
+
,
|
|
828
|
+
(0, typeorm_1.Index)("IDX_AlertEpisodeMember_first_membership", ["alertId"], {
|
|
829
|
+
unique: true,
|
|
830
|
+
where: '"isFirstMembership" = true AND "deletedAt" IS NULL',
|
|
831
|
+
})
|
|
782
832
|
], AlertEpisodeMember);
|
|
783
833
|
exports.default = AlertEpisodeMember;
|
|
@@ -61,6 +61,12 @@ let IncidentEpisodeMember = class IncidentEpisodeMember extends DatabaseBaseMode
|
|
|
61
61
|
this.createdByUser = undefined;
|
|
62
62
|
this.createdByUserId = undefined;
|
|
63
63
|
this.isOwnerNotifiedOfIncidentAdded = undefined;
|
|
64
|
+
/*
|
|
65
|
+
* Whether the incident was in no episode when this membership was made: its
|
|
66
|
+
* first. Written by OneUptime on every add, whatever a write sends; the
|
|
67
|
+
* index above lets at most one membership of an incident have it.
|
|
68
|
+
*/
|
|
69
|
+
this.isFirstMembership = undefined;
|
|
64
70
|
this.deletedByUser = undefined;
|
|
65
71
|
this.deletedByUserId = undefined;
|
|
66
72
|
}
|
|
@@ -631,6 +637,29 @@ __decorate([
|
|
|
631
637
|
}),
|
|
632
638
|
__metadata("design:type", Boolean)
|
|
633
639
|
], IncidentEpisodeMember.prototype, "isOwnerNotifiedOfIncidentAdded", void 0);
|
|
640
|
+
__decorate([
|
|
641
|
+
(0, ColumnAccessControl_1.default)({
|
|
642
|
+
create: [],
|
|
643
|
+
read: [],
|
|
644
|
+
update: [],
|
|
645
|
+
}),
|
|
646
|
+
(0, TableColumn_1.default)({
|
|
647
|
+
type: TableColumnType_1.default.Boolean,
|
|
648
|
+
computed: true,
|
|
649
|
+
hideColumnInDocumentation: true,
|
|
650
|
+
required: true,
|
|
651
|
+
isDefaultValueColumn: true,
|
|
652
|
+
title: "Is First Membership",
|
|
653
|
+
description: "Whether the incident was in no other episode when it was added to this one. Set by the server.",
|
|
654
|
+
defaultValue: false,
|
|
655
|
+
}),
|
|
656
|
+
(0, typeorm_1.Column)({
|
|
657
|
+
type: ColumnType_1.default.Boolean,
|
|
658
|
+
nullable: false,
|
|
659
|
+
default: false,
|
|
660
|
+
}),
|
|
661
|
+
__metadata("design:type", Boolean)
|
|
662
|
+
], IncidentEpisodeMember.prototype, "isFirstMembership", void 0);
|
|
634
663
|
__decorate([
|
|
635
664
|
(0, ColumnAccessControl_1.default)({
|
|
636
665
|
create: [],
|
|
@@ -780,5 +809,26 @@ IncidentEpisodeMember = __decorate([
|
|
|
780
809
|
(0, typeorm_1.Index)(["isOwnerNotifiedOfIncidentAdded"], {
|
|
781
810
|
where: '"isOwnerNotifiedOfIncidentAdded" = false AND "deletedAt" IS NULL',
|
|
782
811
|
})
|
|
812
|
+
/*
|
|
813
|
+
* AT MOST ONE FIRST MEMBERSHIP PER INCIDENT (isFirstMembership).
|
|
814
|
+
*
|
|
815
|
+
* A project can allow an incident in only one episode (EpisodeSingleMembership).
|
|
816
|
+
* The member service checks the incident's memberships before it adds one, and
|
|
817
|
+
* two adds of an incident that is in no episode, at the same moment - a person
|
|
818
|
+
* and the grouping engine, two tabs - both found none, and both were added.
|
|
819
|
+
* Every add made while the incident is in no episode is its first membership,
|
|
820
|
+
* and this index takes one per incident: the add that loses the race is refused
|
|
821
|
+
* here, and the service checks it again - refused while the project allows
|
|
822
|
+
* one episode, added as a second membership while it allows several
|
|
823
|
+
* (IncidentEpisodeMemberService.create).
|
|
824
|
+
*
|
|
825
|
+
* Partial, so only first memberships are in it; "deletedAt" IS NULL as in
|
|
826
|
+
* the index above. Built online in its own migration (OnlineDdl).
|
|
827
|
+
*/
|
|
828
|
+
,
|
|
829
|
+
(0, typeorm_1.Index)("IDX_IncidentEpisodeMember_first_membership", ["incidentId"], {
|
|
830
|
+
unique: true,
|
|
831
|
+
where: '"isFirstMembership" = true AND "deletedAt" IS NULL',
|
|
832
|
+
})
|
|
783
833
|
], IncidentEpisodeMember);
|
|
784
834
|
exports.default = IncidentEpisodeMember;
|
|
@@ -663,7 +663,7 @@ __decorate([
|
|
|
663
663
|
isDefaultValueColumn: true,
|
|
664
664
|
type: TableColumnType_1.default.Number,
|
|
665
665
|
title: "Repeat Policy Times",
|
|
666
|
-
description: "
|
|
666
|
+
description: "How many more times the escalation rules ring again from the first when nobody answers: a whole number of 1 or more while Repeat Policy If No One Answers is on.",
|
|
667
667
|
defaultValue: 1,
|
|
668
668
|
}),
|
|
669
669
|
(0, typeorm_1.Column)({
|
|
@@ -279,7 +279,7 @@ __decorate([
|
|
|
279
279
|
required: false,
|
|
280
280
|
type: TableColumnType_1.default.ShortText,
|
|
281
281
|
title: "Model Name",
|
|
282
|
-
description: "The model to use (e.g., gpt-5.1, claude-sonnet-5-5, llama3.1). For Azure OpenAI / Microsoft Foundry, the deployment's name.",
|
|
282
|
+
description: "The model to use (e.g., gpt-5.1, claude-sonnet-5-5, llama3.1). For Azure OpenAI / Microsoft Foundry, the deployment's name. Optional: left empty, the provider's default model is used, and an OpenAI-compatible server is asked for the first model it lists.",
|
|
283
283
|
}),
|
|
284
284
|
(0, typeorm_1.Column)({
|
|
285
285
|
nullable: true,
|
|
@@ -207,16 +207,22 @@ __decorate([
|
|
|
207
207
|
Permission_1.default.MonitorMember,
|
|
208
208
|
Permission_1.default.EditMonitorTemplate,
|
|
209
209
|
],
|
|
210
|
-
})
|
|
210
|
+
})
|
|
211
|
+
/*
|
|
212
|
+
* Optional: a template's name usually says what it is for, and a
|
|
213
|
+
* description only helps when it does not. It was required, so the
|
|
214
|
+
* create form asked for one every time.
|
|
215
|
+
*/
|
|
216
|
+
,
|
|
211
217
|
(0, TableColumn_1.default)({
|
|
212
|
-
required:
|
|
218
|
+
required: false,
|
|
213
219
|
type: TableColumnType_1.default.LongText,
|
|
214
220
|
canReadOnRelationQuery: true,
|
|
215
221
|
title: "Template Description",
|
|
216
|
-
description: "
|
|
222
|
+
description: "What the template is for, shown in the template list. Optional.",
|
|
217
223
|
}),
|
|
218
224
|
(0, typeorm_1.Column)({
|
|
219
|
-
nullable:
|
|
225
|
+
nullable: true,
|
|
220
226
|
type: ColumnType_1.default.LongText,
|
|
221
227
|
length: ColumnLength_1.default.LongText,
|
|
222
228
|
}),
|
|
@@ -515,8 +515,8 @@ __decorate([
|
|
|
515
515
|
required: false,
|
|
516
516
|
type: TableColumnType_1.default.Boolean,
|
|
517
517
|
canReadOnRelationQuery: true,
|
|
518
|
-
title: "
|
|
519
|
-
description: "
|
|
518
|
+
title: "SNMP Scan",
|
|
519
|
+
description: "The scan method: true for an SNMP scan (the default), which also asks each host that answers ping for its name and vendor over SNMP; false for an ICMP scan, which only pings.",
|
|
520
520
|
defaultValue: true,
|
|
521
521
|
}),
|
|
522
522
|
(0, typeorm_1.Column)({
|
|
@@ -627,7 +627,7 @@ __decorate([
|
|
|
627
627
|
type: TableColumnType_1.default.ShortText,
|
|
628
628
|
canReadOnRelationQuery: true,
|
|
629
629
|
title: "SNMP Version",
|
|
630
|
-
description: "SNMP version tried against every host in the subnet (V1, V2c, V3). Ignored
|
|
630
|
+
description: "SNMP version tried against every host in the subnet (V1, V2c, V3). Ignored on an ICMP scan.",
|
|
631
631
|
example: "V2c",
|
|
632
632
|
}),
|
|
633
633
|
(0, typeorm_1.Column)({
|
|
@@ -669,7 +669,7 @@ __decorate([
|
|
|
669
669
|
required: false,
|
|
670
670
|
type: TableColumnType_1.default.ShortText,
|
|
671
671
|
title: "SNMP Community String",
|
|
672
|
-
description: "Community string tried against every host in the subnet (SNMP v1/v2c). Ignored
|
|
672
|
+
description: "Community string tried against every host in the subnet (SNMP v1/v2c). Ignored on an ICMP scan.",
|
|
673
673
|
example: "public",
|
|
674
674
|
}),
|
|
675
675
|
(0, typeorm_1.Column)({
|
|
@@ -712,7 +712,7 @@ __decorate([
|
|
|
712
712
|
required: false,
|
|
713
713
|
type: TableColumnType_1.default.Number,
|
|
714
714
|
title: "SNMP Port",
|
|
715
|
-
description: "UDP port tried against every host in the subnet. Ignored
|
|
715
|
+
description: "UDP port tried against every host in the subnet. Ignored on an ICMP scan.",
|
|
716
716
|
example: "161",
|
|
717
717
|
}),
|
|
718
718
|
(0, typeorm_1.Column)({
|
|
@@ -755,7 +755,7 @@ __decorate([
|
|
|
755
755
|
required: false,
|
|
756
756
|
type: TableColumnType_1.default.ShortText,
|
|
757
757
|
title: "SNMP v3 Security Level",
|
|
758
|
-
description: "SNMP v3 security level tried against every host: noAuthNoPriv, authNoPriv, or authPriv. Ignored
|
|
758
|
+
description: "SNMP v3 security level tried against every host: noAuthNoPriv, authNoPriv, or authPriv. Ignored on an ICMP scan.",
|
|
759
759
|
example: "authPriv",
|
|
760
760
|
}),
|
|
761
761
|
(0, typeorm_1.Column)({
|
|
@@ -798,7 +798,7 @@ __decorate([
|
|
|
798
798
|
required: false,
|
|
799
799
|
type: TableColumnType_1.default.ShortText,
|
|
800
800
|
title: "SNMP v3 Username",
|
|
801
|
-
description: "SNMP v3 security name (username) tried against every host. Ignored
|
|
801
|
+
description: "SNMP v3 security name (username) tried against every host. Ignored on an ICMP scan.",
|
|
802
802
|
example: "monitoring",
|
|
803
803
|
}),
|
|
804
804
|
(0, typeorm_1.Column)({
|
|
@@ -841,7 +841,7 @@ __decorate([
|
|
|
841
841
|
required: false,
|
|
842
842
|
type: TableColumnType_1.default.ShortText,
|
|
843
843
|
title: "SNMP v3 Authentication Protocol",
|
|
844
|
-
description: "SNMP v3 authentication protocol: MD5, SHA, SHA256, or SHA512. Ignored
|
|
844
|
+
description: "SNMP v3 authentication protocol: MD5, SHA, SHA256, or SHA512. Ignored on an ICMP scan.",
|
|
845
845
|
example: "SHA",
|
|
846
846
|
}),
|
|
847
847
|
(0, typeorm_1.Column)({
|
|
@@ -882,7 +882,7 @@ __decorate([
|
|
|
882
882
|
required: false,
|
|
883
883
|
type: TableColumnType_1.default.LongText,
|
|
884
884
|
title: "SNMP v3 Authentication Key",
|
|
885
|
-
description: "SNMP v3 authentication passphrase tried against every host. Ignored
|
|
885
|
+
description: "SNMP v3 authentication passphrase tried against every host. Ignored on an ICMP scan.",
|
|
886
886
|
}),
|
|
887
887
|
(0, typeorm_1.Column)({
|
|
888
888
|
nullable: true,
|
|
@@ -923,7 +923,7 @@ __decorate([
|
|
|
923
923
|
required: false,
|
|
924
924
|
type: TableColumnType_1.default.ShortText,
|
|
925
925
|
title: "SNMP v3 Privacy Protocol",
|
|
926
|
-
description: "SNMP v3 privacy (encryption) protocol: DES, AES, or AES256. Ignored
|
|
926
|
+
description: "SNMP v3 privacy (encryption) protocol: DES, AES, or AES256. Ignored on an ICMP scan.",
|
|
927
927
|
example: "AES",
|
|
928
928
|
}),
|
|
929
929
|
(0, typeorm_1.Column)({
|
|
@@ -964,7 +964,7 @@ __decorate([
|
|
|
964
964
|
required: false,
|
|
965
965
|
type: TableColumnType_1.default.LongText,
|
|
966
966
|
title: "SNMP v3 Privacy Key",
|
|
967
|
-
description: "SNMP v3 privacy (encryption) passphrase tried against every host. Ignored
|
|
967
|
+
description: "SNMP v3 privacy (encryption) passphrase tried against every host. Ignored on an ICMP scan.",
|
|
968
968
|
}),
|
|
969
969
|
(0, typeorm_1.Column)({
|
|
970
970
|
nullable: true,
|
|
@@ -1181,7 +1181,7 @@ __decorate([
|
|
|
1181
1181
|
type: TableColumnType_1.default.Number,
|
|
1182
1182
|
required: false,
|
|
1183
1183
|
title: "Responded Host Count",
|
|
1184
|
-
description: "Number of hosts that answered the check this scan performed: SNMP responders on
|
|
1184
|
+
description: "Number of hosts that answered the check this scan performed: SNMP responders on an SNMP scan, hosts that answered the ping sweep on an ICMP scan. Managed by the scanning probe.",
|
|
1185
1185
|
}),
|
|
1186
1186
|
(0, typeorm_1.Column)({
|
|
1187
1187
|
type: ColumnType_1.default.Number,
|
|
@@ -1563,7 +1563,7 @@ NetworkDeviceDiscoveryScan = __decorate([
|
|
|
1563
1563
|
singularName: "Network Device Discovery Scan",
|
|
1564
1564
|
pluralName: "Network Device Discovery Scans",
|
|
1565
1565
|
icon: IconProp_1.default.Search,
|
|
1566
|
-
tableDescription: "Network discovery scans that sweep an address space — a CIDR subnet or an octet range — from a probe and report the hosts found, so they can be imported as Network Devices. Every sweep pings;
|
|
1566
|
+
tableDescription: "Network discovery scans that sweep an address space — a CIDR subnet or an octet range — from a probe and report the hosts found, so they can be imported as Network Devices. Every sweep pings; an SNMP scan also queries each live host over SNMP, an ICMP scan asks nothing more.",
|
|
1567
1567
|
}),
|
|
1568
1568
|
(0, typeorm_1.Entity)({
|
|
1569
1569
|
name: "NetworkDeviceDiscoveryScan",
|
|
@@ -675,7 +675,7 @@ __decorate([
|
|
|
675
675
|
type: TableColumnType_1.default.Number,
|
|
676
676
|
canReadOnRelationQuery: true,
|
|
677
677
|
title: "Repeat Policy Times If No One Acknowledges",
|
|
678
|
-
description: "
|
|
678
|
+
description: "How many more times the policy starts again from its first escalation rule when nobody acknowledges: a whole number of 1 or more while Repeat Policy If No One Acknowledges is on.",
|
|
679
679
|
defaultValue: 0,
|
|
680
680
|
}),
|
|
681
681
|
(0, typeorm_1.Column)({
|
|
@@ -341,7 +341,7 @@ __decorate([
|
|
|
341
341
|
required: true,
|
|
342
342
|
type: TableColumnType_1.default.ShortText,
|
|
343
343
|
title: "Stop Reminders When",
|
|
344
|
-
description: "Stop sending reminders once the scheduled maintenance event reaches this state. Select Ongoing to stop reminders when the event starts, or Completed to keep reminding until the event is completed.",
|
|
344
|
+
description: "Stop sending reminders once the scheduled maintenance event reaches this state. Select Ongoing to stop reminders when the event starts, or Completed to keep reminding until the event is completed. Ongoing needs Remind While Event is Scheduled on: a rule that waits for the event to start and stops when it starts would never remind, so it is refused.",
|
|
345
345
|
defaultValue: ScheduledMaintenanceReminderStopState_1.default.Completed,
|
|
346
346
|
isDefaultValueColumn: true,
|
|
347
347
|
canReadOnRelationQuery: true,
|
|
@@ -37,6 +37,8 @@ export default class StatusPage extends BaseModel {
|
|
|
37
37
|
faviconFileId?: ObjectID;
|
|
38
38
|
logoFile?: File;
|
|
39
39
|
logoFileId?: ObjectID;
|
|
40
|
+
darkThemeLogoFile?: File;
|
|
41
|
+
darkThemeLogoFileId?: ObjectID;
|
|
40
42
|
coverImageFile?: File;
|
|
41
43
|
coverImageFileId?: ObjectID;
|
|
42
44
|
headerHTML?: string;
|
|
@@ -37,6 +37,8 @@ export default class StatusPage extends BaseModel {
|
|
|
37
37
|
faviconFileId?: ObjectID;
|
|
38
38
|
logoFile?: File;
|
|
39
39
|
logoFileId?: ObjectID;
|
|
40
|
+
darkThemeLogoFile?: File;
|
|
41
|
+
darkThemeLogoFileId?: ObjectID;
|
|
40
42
|
coverImageFile?: File;
|
|
41
43
|
coverImageFileId?: ObjectID;
|
|
42
44
|
headerHTML?: string;
|
|
@@ -107,6 +107,19 @@ let StatusPage = class StatusPage extends DatabaseBaseModel_1.default {
|
|
|
107
107
|
this.faviconFileId = undefined;
|
|
108
108
|
this.logoFile = undefined;
|
|
109
109
|
this.logoFileId = undefined;
|
|
110
|
+
/*
|
|
111
|
+
* A logo made for a dark background - light lettering - shown instead of
|
|
112
|
+
* the logo wherever the page is dark: on a Dark page, and on one that
|
|
113
|
+
* follows each visitor's device while it is dark. Without one, the logo
|
|
114
|
+
* (made for the light page, and for the emails the page sends, which stay
|
|
115
|
+
* light) sits on a small light backdrop there. Optional, on every plan,
|
|
116
|
+
* with the same access as the logo; the emails always use the logo.
|
|
117
|
+
*
|
|
118
|
+
* Removing the file it points at leaves the page without it (SET NULL),
|
|
119
|
+
* never takes the status page with it.
|
|
120
|
+
*/
|
|
121
|
+
this.darkThemeLogoFile = undefined;
|
|
122
|
+
this.darkThemeLogoFileId = undefined;
|
|
110
123
|
this.coverImageFile = undefined;
|
|
111
124
|
this.coverImageFileId = undefined;
|
|
112
125
|
this.headerHTML = undefined;
|
|
@@ -1031,6 +1044,93 @@ __decorate([
|
|
|
1031
1044
|
}),
|
|
1032
1045
|
__metadata("design:type", ObjectID_1.default)
|
|
1033
1046
|
], StatusPage.prototype, "logoFileId", void 0);
|
|
1047
|
+
__decorate([
|
|
1048
|
+
(0, ColumnAccessControl_1.default)({
|
|
1049
|
+
create: [
|
|
1050
|
+
Permission_1.default.ProjectOwner,
|
|
1051
|
+
Permission_1.default.ProjectAdmin,
|
|
1052
|
+
Permission_1.default.ProjectMember,
|
|
1053
|
+
Permission_1.default.StatusPageAdmin,
|
|
1054
|
+
Permission_1.default.StatusPageMember,
|
|
1055
|
+
Permission_1.default.CreateProjectStatusPage,
|
|
1056
|
+
],
|
|
1057
|
+
read: [
|
|
1058
|
+
Permission_1.default.ProjectOwner,
|
|
1059
|
+
Permission_1.default.ProjectAdmin,
|
|
1060
|
+
Permission_1.default.ProjectMember,
|
|
1061
|
+
Permission_1.default.Viewer,
|
|
1062
|
+
Permission_1.default.StatusPageAdmin,
|
|
1063
|
+
Permission_1.default.StatusPageMember,
|
|
1064
|
+
Permission_1.default.StatusPageViewer,
|
|
1065
|
+
Permission_1.default.ReadProjectStatusPage,
|
|
1066
|
+
],
|
|
1067
|
+
update: [
|
|
1068
|
+
Permission_1.default.ProjectOwner,
|
|
1069
|
+
Permission_1.default.ProjectAdmin,
|
|
1070
|
+
Permission_1.default.ProjectMember,
|
|
1071
|
+
Permission_1.default.StatusPageAdmin,
|
|
1072
|
+
Permission_1.default.StatusPageMember,
|
|
1073
|
+
Permission_1.default.EditProjectStatusPage,
|
|
1074
|
+
],
|
|
1075
|
+
}),
|
|
1076
|
+
(0, TableColumn_1.default)({
|
|
1077
|
+
manyToOneRelationColumn: "darkThemeLogoFileId",
|
|
1078
|
+
type: TableColumnType_1.default.Entity,
|
|
1079
|
+
modelType: File_1.default,
|
|
1080
|
+
title: "Dark Theme Logo",
|
|
1081
|
+
description: "The logo shown where the status page is dark. Without one, the logo is shown on a light backdrop there.",
|
|
1082
|
+
}),
|
|
1083
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
1084
|
+
return File_1.default;
|
|
1085
|
+
}, {
|
|
1086
|
+
eager: false,
|
|
1087
|
+
nullable: true,
|
|
1088
|
+
onDelete: "SET NULL",
|
|
1089
|
+
}),
|
|
1090
|
+
(0, typeorm_1.JoinColumn)({ name: "darkThemeLogoFileId" }),
|
|
1091
|
+
__metadata("design:type", File_1.default)
|
|
1092
|
+
], StatusPage.prototype, "darkThemeLogoFile", void 0);
|
|
1093
|
+
__decorate([
|
|
1094
|
+
(0, ColumnAccessControl_1.default)({
|
|
1095
|
+
create: [
|
|
1096
|
+
Permission_1.default.ProjectOwner,
|
|
1097
|
+
Permission_1.default.ProjectAdmin,
|
|
1098
|
+
Permission_1.default.ProjectMember,
|
|
1099
|
+
Permission_1.default.StatusPageAdmin,
|
|
1100
|
+
Permission_1.default.StatusPageMember,
|
|
1101
|
+
Permission_1.default.CreateProjectStatusPage,
|
|
1102
|
+
],
|
|
1103
|
+
read: [
|
|
1104
|
+
Permission_1.default.ProjectOwner,
|
|
1105
|
+
Permission_1.default.ProjectAdmin,
|
|
1106
|
+
Permission_1.default.ProjectMember,
|
|
1107
|
+
Permission_1.default.Viewer,
|
|
1108
|
+
Permission_1.default.StatusPageAdmin,
|
|
1109
|
+
Permission_1.default.StatusPageMember,
|
|
1110
|
+
Permission_1.default.StatusPageViewer,
|
|
1111
|
+
Permission_1.default.ReadProjectStatusPage,
|
|
1112
|
+
],
|
|
1113
|
+
update: [
|
|
1114
|
+
Permission_1.default.ProjectOwner,
|
|
1115
|
+
Permission_1.default.ProjectAdmin,
|
|
1116
|
+
Permission_1.default.ProjectMember,
|
|
1117
|
+
Permission_1.default.StatusPageAdmin,
|
|
1118
|
+
Permission_1.default.StatusPageMember,
|
|
1119
|
+
Permission_1.default.EditProjectStatusPage,
|
|
1120
|
+
],
|
|
1121
|
+
}),
|
|
1122
|
+
(0, TableColumn_1.default)({
|
|
1123
|
+
type: TableColumnType_1.default.ObjectID,
|
|
1124
|
+
title: "Dark Theme Logo",
|
|
1125
|
+
description: "Status Page Dark Theme Logo File ID",
|
|
1126
|
+
}),
|
|
1127
|
+
(0, typeorm_1.Column)({
|
|
1128
|
+
type: ColumnType_1.default.ObjectID,
|
|
1129
|
+
nullable: true,
|
|
1130
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
1131
|
+
}),
|
|
1132
|
+
__metadata("design:type", ObjectID_1.default)
|
|
1133
|
+
], StatusPage.prototype, "darkThemeLogoFileId", void 0);
|
|
1034
1134
|
__decorate([
|
|
1035
1135
|
(0, ColumnAccessControl_1.default)({
|
|
1036
1136
|
create: [
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSONObject } from "../JSON.mjs";
|
|
2
|
+
import { ColumnMetadataSource } from "./NumericColumnValue.mjs";
|
|
3
|
+
import TableColumnType from "./TableColumnType.mjs";
|
|
4
|
+
export declare function cannotHoldBlank(type: TableColumnType | undefined | null): boolean;
|
|
5
|
+
export declare function isBlankFormValue(value: unknown): boolean;
|
|
6
|
+
export declare function clearBlankColumnValues(json: JSONObject, model: ColumnMetadataSource): JSONObject;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSONObject } from "../JSON";
|
|
2
|
+
import { ColumnMetadataSource } from "./NumericColumnValue";
|
|
3
|
+
import TableColumnType from "./TableColumnType";
|
|
4
|
+
export declare function cannotHoldBlank(type: TableColumnType | undefined | null): boolean;
|
|
5
|
+
export declare function isBlankFormValue(value: unknown): boolean;
|
|
6
|
+
export declare function clearBlankColumnValues(json: JSONObject, model: ColumnMetadataSource): JSONObject;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.cannotHoldBlank = cannotHoldBlank;
|
|
7
|
+
exports.isBlankFormValue = isBlankFormValue;
|
|
8
|
+
exports.clearBlankColumnValues = clearBlankColumnValues;
|
|
9
|
+
const DateColumnValue_1 = require("./DateColumnValue");
|
|
10
|
+
const NumericColumnValue_1 = require("./NumericColumnValue");
|
|
11
|
+
const TableColumnType_1 = __importDefault(require("./TableColumnType"));
|
|
12
|
+
/*
|
|
13
|
+
* WHAT AN EMPTIED NUMBER, DATE OR PORT BOX IS SAVED AS.
|
|
14
|
+
*
|
|
15
|
+
* A form's number box is an <input type="number">, and a DOM input's value
|
|
16
|
+
* is a string: emptied, it hands the form "", and so does an emptied date
|
|
17
|
+
* or port box. A number, date or port column cannot hold "" - Postgres
|
|
18
|
+
* refuses it ("invalid input syntax for type integer"), so emptying an
|
|
19
|
+
* optional number on a form failed the save with an error about a column
|
|
20
|
+
* the reader did not know was wrong. The server leaves a blank alone on
|
|
21
|
+
* purpose (NumericColumnValue: turned into 0 or null there, it would write
|
|
22
|
+
* a value nobody chose, or defeat a column's default), so the form, which
|
|
23
|
+
* knows the reader emptied the box, says what the blank means:
|
|
24
|
+
*
|
|
25
|
+
* - a column that may be empty: none (null) - "Leave empty for no limit",
|
|
26
|
+
* "Leave empty to not track it" - on a Create form and an Edit form
|
|
27
|
+
* alike, whatever the box showed before (a default, a stored value);
|
|
28
|
+
* - a column that may not be empty: the column's default - a sample
|
|
29
|
+
* percentage's 100, a budget's 0 - which is what an untouched Create
|
|
30
|
+
* form would have saved;
|
|
31
|
+
* - a column that may not be empty and has no default: nothing is sent,
|
|
32
|
+
* so an Edit keeps what is stored and a Create is told what is missing.
|
|
33
|
+
*
|
|
34
|
+
* Only a blank: every other value, and every other column, is left exactly
|
|
35
|
+
* as it is. Run by ModelForm on what it is about to send, for every form in
|
|
36
|
+
* the product - it replaces the page-by-page fixes the SLA rules and the
|
|
37
|
+
* session replay policy carried.
|
|
38
|
+
*/
|
|
39
|
+
const COLUMN_TYPES_THAT_CANNOT_HOLD_A_BLANK = new Set([TableColumnType_1.default.Port]);
|
|
40
|
+
// Whether a column of this type can never store an empty string.
|
|
41
|
+
function cannotHoldBlank(type) {
|
|
42
|
+
if (!type) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return ((0, NumericColumnValue_1.isNumericTableColumnType)(type) ||
|
|
46
|
+
(0, DateColumnValue_1.isDateTableColumnType)(type) ||
|
|
47
|
+
COLUMN_TYPES_THAT_CANNOT_HOLD_A_BLANK.has(type));
|
|
48
|
+
}
|
|
49
|
+
// What an emptied box hands the form: a string with nothing in it.
|
|
50
|
+
function isBlankFormValue(value) {
|
|
51
|
+
return typeof value === "string" && value.trim().length === 0;
|
|
52
|
+
}
|
|
53
|
+
/*
|
|
54
|
+
* The blanks of a form's values, for the columns that cannot hold one,
|
|
55
|
+
* replaced with what they mean (see above). In place; returns the values.
|
|
56
|
+
*/
|
|
57
|
+
function clearBlankColumnValues(json, model) {
|
|
58
|
+
for (const key of Object.keys(json)) {
|
|
59
|
+
if (!isBlankFormValue(json[key])) {
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
const metadata = model.getTableColumnMetadata(key);
|
|
63
|
+
if (!metadata || !cannotHoldBlank(metadata.type)) {
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
if (!metadata.required) {
|
|
67
|
+
json[key] = null;
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (metadata.defaultValue !== undefined && metadata.defaultValue !== null) {
|
|
71
|
+
json[key] = metadata.defaultValue;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
delete json[key];
|
|
75
|
+
}
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
@@ -48,6 +48,7 @@ declare enum EmailTemplateType {
|
|
|
48
48
|
IncidentOwnerResourceCreated = "IncidentOwnerResourceCreated.hbs",
|
|
49
49
|
IncidentMemberAdded = "IncidentMemberAdded.hbs",
|
|
50
50
|
IncidentOwnerUnresolvedReminder = "IncidentOwnerUnresolvedReminder.hbs",
|
|
51
|
+
IncidentOwnerSlaBreached = "IncidentOwnerSlaBreached.hbs",
|
|
51
52
|
AlertOwnerAdded = "AlertOwnerAdded.hbs",
|
|
52
53
|
AlertOwnerStateChanged = "AlertOwnerStateChanged.hbs",
|
|
53
54
|
AlertOwnerNotePosted = "AlertOwnerNotePosted.hbs",
|
|
@@ -48,6 +48,7 @@ declare enum EmailTemplateType {
|
|
|
48
48
|
IncidentOwnerResourceCreated = "IncidentOwnerResourceCreated.hbs",
|
|
49
49
|
IncidentMemberAdded = "IncidentMemberAdded.hbs",
|
|
50
50
|
IncidentOwnerUnresolvedReminder = "IncidentOwnerUnresolvedReminder.hbs",
|
|
51
|
+
IncidentOwnerSlaBreached = "IncidentOwnerSlaBreached.hbs",
|
|
51
52
|
AlertOwnerAdded = "AlertOwnerAdded.hbs",
|
|
52
53
|
AlertOwnerStateChanged = "AlertOwnerStateChanged.hbs",
|
|
53
54
|
AlertOwnerNotePosted = "AlertOwnerNotePosted.hbs",
|
|
@@ -51,6 +51,7 @@ var EmailTemplateType;
|
|
|
51
51
|
EmailTemplateType["IncidentOwnerResourceCreated"] = "IncidentOwnerResourceCreated.hbs";
|
|
52
52
|
EmailTemplateType["IncidentMemberAdded"] = "IncidentMemberAdded.hbs";
|
|
53
53
|
EmailTemplateType["IncidentOwnerUnresolvedReminder"] = "IncidentOwnerUnresolvedReminder.hbs";
|
|
54
|
+
EmailTemplateType["IncidentOwnerSlaBreached"] = "IncidentOwnerSlaBreached.hbs";
|
|
54
55
|
EmailTemplateType["AlertOwnerAdded"] = "AlertOwnerAdded.hbs";
|
|
55
56
|
EmailTemplateType["AlertOwnerStateChanged"] = "AlertOwnerStateChanged.hbs";
|
|
56
57
|
EmailTemplateType["AlertOwnerNotePosted"] = "AlertOwnerNotePosted.hbs";
|
|
@@ -3,3 +3,9 @@ export interface IncomingCallPolicyRepeatSettings {
|
|
|
3
3
|
repeatPolicyIfNoOneAnswersTimes?: number | null | undefined;
|
|
4
4
|
}
|
|
5
5
|
export declare function getIncomingCallPolicyRepeatsAllowed(policy: IncomingCallPolicyRepeatSettings | null | undefined): number;
|
|
6
|
+
export declare const INCOMING_CALL_POLICY_REPEAT_COLUMNS: ReadonlyArray<string>;
|
|
7
|
+
export declare const INCOMING_CALL_POLICY_REPEAT_TIMES_REFUSAL: string;
|
|
8
|
+
export declare function getIncomingCallPolicyRepeatRefusal(policy: {
|
|
9
|
+
repeatPolicyIfNoOneAnswers?: unknown;
|
|
10
|
+
repeatPolicyIfNoOneAnswersTimes?: unknown;
|
|
11
|
+
}): string | null;
|
|
@@ -3,3 +3,9 @@ export interface IncomingCallPolicyRepeatSettings {
|
|
|
3
3
|
repeatPolicyIfNoOneAnswersTimes?: number | null | undefined;
|
|
4
4
|
}
|
|
5
5
|
export declare function getIncomingCallPolicyRepeatsAllowed(policy: IncomingCallPolicyRepeatSettings | null | undefined): number;
|
|
6
|
+
export declare const INCOMING_CALL_POLICY_REPEAT_COLUMNS: ReadonlyArray<string>;
|
|
7
|
+
export declare const INCOMING_CALL_POLICY_REPEAT_TIMES_REFUSAL: string;
|
|
8
|
+
export declare function getIncomingCallPolicyRepeatRefusal(policy: {
|
|
9
|
+
repeatPolicyIfNoOneAnswers?: unknown;
|
|
10
|
+
repeatPolicyIfNoOneAnswersTimes?: unknown;
|
|
11
|
+
}): string | null;
|