@oneuptime/cli 14.0.81 → 14.0.82
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/build/dist/Index.js +145 -4
- package/package.json +1 -1
package/build/dist/Index.js
CHANGED
|
@@ -297804,6 +297804,8 @@ var OnCallDutyPolicyExecutionLog = class extends DatabaseBaseModel {
|
|
|
297804
297804
|
this.executeNextEscalationRuleInMinutes = void 0;
|
|
297805
297805
|
this.onCallPolicyExecutionRepeatCount = void 0;
|
|
297806
297806
|
this.scheduleGapRetryCount = void 0;
|
|
297807
|
+
this.pagingStartsAt = void 0;
|
|
297808
|
+
this.pagingStartedEarlyReason = void 0;
|
|
297807
297809
|
this.triggeredByUser = void 0;
|
|
297808
297810
|
this.triggeredByUserId = void 0;
|
|
297809
297811
|
this.triggeredByWorkflowId = void 0;
|
|
@@ -298959,6 +298961,63 @@ __decorateClass([
|
|
|
298959
298961
|
default: 0
|
|
298960
298962
|
})
|
|
298961
298963
|
], OnCallDutyPolicyExecutionLog.prototype, "scheduleGapRetryCount", 2);
|
|
298964
|
+
__decorateClass([
|
|
298965
|
+
ColumnAccessControl_default({
|
|
298966
|
+
create: [],
|
|
298967
|
+
read: [
|
|
298968
|
+
Permission_default.ProjectOwner,
|
|
298969
|
+
Permission_default.ProjectAdmin,
|
|
298970
|
+
Permission_default.ProjectMember,
|
|
298971
|
+
Permission_default.Viewer,
|
|
298972
|
+
Permission_default.OnCallAdmin,
|
|
298973
|
+
Permission_default.OnCallMember,
|
|
298974
|
+
Permission_default.OnCallViewer,
|
|
298975
|
+
Permission_default.ReadProjectOnCallDutyPolicyExecutionLog
|
|
298976
|
+
],
|
|
298977
|
+
update: []
|
|
298978
|
+
}),
|
|
298979
|
+
TableColumn_default({
|
|
298980
|
+
type: TableColumnType_default.Date,
|
|
298981
|
+
required: false,
|
|
298982
|
+
title: "Paging Starts At",
|
|
298983
|
+
description: "When this run starts paging, when it waited to: an on-call rule that pages only during working hours held it until they began. Empty when it paged straight away.",
|
|
298984
|
+
canReadOnRelationQuery: false,
|
|
298985
|
+
example: "2024-01-15T09:00:00.000Z"
|
|
298986
|
+
}),
|
|
298987
|
+
Column({
|
|
298988
|
+
type: ColumnType_default.Date,
|
|
298989
|
+
nullable: true
|
|
298990
|
+
})
|
|
298991
|
+
], OnCallDutyPolicyExecutionLog.prototype, "pagingStartsAt", 2);
|
|
298992
|
+
__decorateClass([
|
|
298993
|
+
ColumnAccessControl_default({
|
|
298994
|
+
create: [],
|
|
298995
|
+
read: [
|
|
298996
|
+
Permission_default.ProjectOwner,
|
|
298997
|
+
Permission_default.ProjectAdmin,
|
|
298998
|
+
Permission_default.ProjectMember,
|
|
298999
|
+
Permission_default.Viewer,
|
|
299000
|
+
Permission_default.OnCallAdmin,
|
|
299001
|
+
Permission_default.OnCallMember,
|
|
299002
|
+
Permission_default.OnCallViewer,
|
|
299003
|
+
Permission_default.ReadProjectOnCallDutyPolicyExecutionLog
|
|
299004
|
+
],
|
|
299005
|
+
update: []
|
|
299006
|
+
}),
|
|
299007
|
+
TableColumn_default({
|
|
299008
|
+
type: TableColumnType_default.LongText,
|
|
299009
|
+
required: false,
|
|
299010
|
+
title: "Paging Started Early Reason",
|
|
299011
|
+
description: "Why this run started paging before the working hours it waited for began: its record came to match an on-call rule that pages right away. Empty for every other run.",
|
|
299012
|
+
canReadOnRelationQuery: false,
|
|
299013
|
+
example: 'The alert now matches on-call rule "P1 alerts", which pages right away.'
|
|
299014
|
+
}),
|
|
299015
|
+
Column({
|
|
299016
|
+
type: ColumnType_default.LongText,
|
|
299017
|
+
length: ColumnLength_default.LongText,
|
|
299018
|
+
nullable: true
|
|
299019
|
+
})
|
|
299020
|
+
], OnCallDutyPolicyExecutionLog.prototype, "pagingStartedEarlyReason", 2);
|
|
298962
299021
|
__decorateClass([
|
|
298963
299022
|
ColumnAccessControl_default({
|
|
298964
299023
|
create: [
|
|
@@ -393980,8 +394039,90 @@ AlertEpisodeFeed = __decorateClass([
|
|
|
393980
394039
|
})
|
|
393981
394040
|
], AlertEpisodeFeed);
|
|
393982
394041
|
|
|
394042
|
+
// ../Common/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.ts
|
|
394043
|
+
var OnCallRuleWhenToPage = /* @__PURE__ */ ((OnCallRuleWhenToPage2) => {
|
|
394044
|
+
OnCallRuleWhenToPage2["RightAway"] = "Right Away";
|
|
394045
|
+
OnCallRuleWhenToPage2["WorkingHours"] = "Working Hours";
|
|
394046
|
+
return OnCallRuleWhenToPage2;
|
|
394047
|
+
})(OnCallRuleWhenToPage || {});
|
|
394048
|
+
var OnCallRuleWhenToPage_default = OnCallRuleWhenToPage;
|
|
394049
|
+
|
|
394050
|
+
// ../Common/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.ts
|
|
394051
|
+
var OnCallRuleBaseModel = class extends RuleBaseModel {
|
|
394052
|
+
constructor() {
|
|
394053
|
+
super(...arguments);
|
|
394054
|
+
this.whenToPage = void 0;
|
|
394055
|
+
this.workingHours = void 0;
|
|
394056
|
+
this.workingHoursTimezone = void 0;
|
|
394057
|
+
}
|
|
394058
|
+
static {
|
|
394059
|
+
__name(this, "OnCallRuleBaseModel");
|
|
394060
|
+
}
|
|
394061
|
+
getColumnAccessControlForAllColumns() {
|
|
394062
|
+
const dictionary = {
|
|
394063
|
+
...super.getColumnAccessControlForAllColumns()
|
|
394064
|
+
};
|
|
394065
|
+
for (const column of [
|
|
394066
|
+
"whenToPage",
|
|
394067
|
+
"workingHours",
|
|
394068
|
+
"workingHoursTimezone"
|
|
394069
|
+
]) {
|
|
394070
|
+
dictionary[column] = {
|
|
394071
|
+
create: this.createRecordPermissions,
|
|
394072
|
+
read: this.readRecordPermissions,
|
|
394073
|
+
update: this.updateRecordPermissions
|
|
394074
|
+
};
|
|
394075
|
+
}
|
|
394076
|
+
return dictionary;
|
|
394077
|
+
}
|
|
394078
|
+
};
|
|
394079
|
+
__decorateClass([
|
|
394080
|
+
TableColumn_default({
|
|
394081
|
+
required: true,
|
|
394082
|
+
type: TableColumnType_default.ShortText,
|
|
394083
|
+
title: "When to Page",
|
|
394084
|
+
description: "When the on-call policies of this rule page: Right Away, as soon as a record matches it, or Working Hours, only during the working hours of this rule - a record that matches it outside them is paged about when they begin.",
|
|
394085
|
+
defaultValue: OnCallRuleWhenToPage_default.RightAway,
|
|
394086
|
+
isDefaultValueColumn: true,
|
|
394087
|
+
example: OnCallRuleWhenToPage_default.RightAway
|
|
394088
|
+
}),
|
|
394089
|
+
Column({
|
|
394090
|
+
nullable: false,
|
|
394091
|
+
type: ColumnType_default.ShortText,
|
|
394092
|
+
length: ColumnLength_default.ShortText,
|
|
394093
|
+
default: OnCallRuleWhenToPage_default.RightAway
|
|
394094
|
+
})
|
|
394095
|
+
], OnCallRuleBaseModel.prototype, "whenToPage", 2);
|
|
394096
|
+
__decorateClass([
|
|
394097
|
+
TableColumn_default({
|
|
394098
|
+
required: false,
|
|
394099
|
+
type: TableColumnType_default.JSON,
|
|
394100
|
+
title: "Working Hours",
|
|
394101
|
+
description: "When this rule may page, when When to Page is Working Hours: the same daily or weekly windows as an on-call schedule layer's restriction times, read in the time zone of this rule."
|
|
394102
|
+
}),
|
|
394103
|
+
Column({
|
|
394104
|
+
nullable: true,
|
|
394105
|
+
type: ColumnType_default.JSON,
|
|
394106
|
+
transformer: RestrictionTimes.getDatabaseTransformer()
|
|
394107
|
+
})
|
|
394108
|
+
], OnCallRuleBaseModel.prototype, "workingHours", 2);
|
|
394109
|
+
__decorateClass([
|
|
394110
|
+
TableColumn_default({
|
|
394111
|
+
required: false,
|
|
394112
|
+
type: TableColumnType_default.ShortText,
|
|
394113
|
+
title: "Working Hours Time Zone",
|
|
394114
|
+
description: "The IANA time zone the working hours of this rule are in: Europe/London.",
|
|
394115
|
+
example: "Europe/London"
|
|
394116
|
+
}),
|
|
394117
|
+
Column({
|
|
394118
|
+
nullable: true,
|
|
394119
|
+
type: ColumnType_default.ShortText,
|
|
394120
|
+
length: ColumnLength_default.ShortText
|
|
394121
|
+
})
|
|
394122
|
+
], OnCallRuleBaseModel.prototype, "workingHoursTimezone", 2);
|
|
394123
|
+
|
|
393983
394124
|
// ../Common/Models/DatabaseModels/AlertOnCallRule.ts
|
|
393984
|
-
var AlertOnCallRule = class extends
|
|
394125
|
+
var AlertOnCallRule = class extends OnCallRuleBaseModel {
|
|
393985
394126
|
constructor() {
|
|
393986
394127
|
super(...arguments);
|
|
393987
394128
|
this.project = void 0;
|
|
@@ -397471,7 +397612,7 @@ AlertLabelRule = __decorateClass([
|
|
|
397471
397612
|
], AlertLabelRule);
|
|
397472
397613
|
|
|
397473
397614
|
// ../Common/Models/DatabaseModels/AlertEpisodeOnCallRule.ts
|
|
397474
|
-
var AlertEpisodeOnCallRule = class extends
|
|
397615
|
+
var AlertEpisodeOnCallRule = class extends OnCallRuleBaseModel {
|
|
397475
397616
|
constructor() {
|
|
397476
397617
|
super(...arguments);
|
|
397477
397618
|
this.project = void 0;
|
|
@@ -405323,7 +405464,7 @@ IncidentEpisodePublicNote = __decorateClass([
|
|
|
405323
405464
|
], IncidentEpisodePublicNote);
|
|
405324
405465
|
|
|
405325
405466
|
// ../Common/Models/DatabaseModels/IncidentOnCallRule.ts
|
|
405326
|
-
var IncidentOnCallRule = class extends
|
|
405467
|
+
var IncidentOnCallRule = class extends OnCallRuleBaseModel {
|
|
405327
405468
|
constructor() {
|
|
405328
405469
|
super(...arguments);
|
|
405329
405470
|
this.project = void 0;
|
|
@@ -410756,7 +410897,7 @@ ScheduledMaintenanceLabelRule = __decorateClass([
|
|
|
410756
410897
|
], ScheduledMaintenanceLabelRule);
|
|
410757
410898
|
|
|
410758
410899
|
// ../Common/Models/DatabaseModels/IncidentEpisodeOnCallRule.ts
|
|
410759
|
-
var IncidentEpisodeOnCallRule = class extends
|
|
410900
|
+
var IncidentEpisodeOnCallRule = class extends OnCallRuleBaseModel {
|
|
410760
410901
|
constructor() {
|
|
410761
410902
|
super(...arguments);
|
|
410762
410903
|
this.project = void 0;
|