@oneuptime/common 7.0.4039 → 7.0.4064

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.
Files changed (92) hide show
  1. package/Models/DatabaseModels/Index.ts +9 -1
  2. package/Models/DatabaseModels/OnCallDutyPolicy.ts +20 -0
  3. package/Models/DatabaseModels/OnCallDutyPolicyFeed.ts +527 -0
  4. package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.ts +426 -0
  5. package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.ts +425 -0
  6. package/Server/API/SlackAPI.ts +14 -0
  7. package/Server/Infrastructure/Postgres/SchemaMigrations/1744804990712-MigrationName.ts +17 -0
  8. package/Server/Infrastructure/Postgres/SchemaMigrations/1744809770336-MigrationName.ts +173 -0
  9. package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +4 -0
  10. package/Server/Services/OnCallDutyPolicyEscalationRuleScheduleService.ts +71 -2
  11. package/Server/Services/OnCallDutyPolicyEscalationRuleService.ts +14 -0
  12. package/Server/Services/OnCallDutyPolicyEscalationRuleTeamService.ts +69 -2
  13. package/Server/Services/OnCallDutyPolicyEscalationRuleUserService.ts +77 -2
  14. package/Server/Services/OnCallDutyPolicyExecutionLogService.ts +1 -1
  15. package/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.ts +1 -1
  16. package/Server/Services/OnCallDutyPolicyFeedService.ts +156 -0
  17. package/Server/Services/OnCallDutyPolicyOwnerTeamService.ts +181 -0
  18. package/Server/Services/OnCallDutyPolicyOwnerUserService.ts +174 -0
  19. package/Server/Services/OnCallDutyPolicyScheduleService.ts +101 -9
  20. package/Server/Services/OnCallDutyPolicyService.ts +219 -1
  21. package/Server/Services/OnCallDutyPolicyUserOverrideService.ts +184 -1
  22. package/Server/Services/WorkspaceNotificationRuleService.ts +93 -0
  23. package/Server/Utils/StartServer.ts +5 -2
  24. package/Server/Utils/Workspace/Slack/Actions/ActionTypes.ts +3 -0
  25. package/Server/Utils/Workspace/Slack/Actions/OnCallDutyPolicy.ts +48 -0
  26. package/Server/Utils/Workspace/Slack/Messages/OnCallDutyPolicy.ts +62 -0
  27. package/Server/Utils/Workspace/WorkspaceMessages/OnCallDutyPolicy.ts +75 -0
  28. package/Types/Permission.ts +112 -7
  29. package/Types/Workspace/NotificationRules/EventType.ts +1 -0
  30. package/Types/Workspace/NotificationRules/NotificationRuleCondition.ts +5 -0
  31. package/UI/webpack-middleware.js +65 -0
  32. package/build/dist/Models/DatabaseModels/Index.js +8 -0
  33. package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
  34. package/build/dist/Models/DatabaseModels/OnCallDutyPolicy.js +20 -0
  35. package/build/dist/Models/DatabaseModels/OnCallDutyPolicy.js.map +1 -1
  36. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyFeed.js +549 -0
  37. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyFeed.js.map +1 -0
  38. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +442 -0
  39. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js.map +1 -0
  40. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +441 -0
  41. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js.map +1 -0
  42. package/build/dist/Server/API/SlackAPI.js +11 -0
  43. package/build/dist/Server/API/SlackAPI.js.map +1 -1
  44. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1744804990712-MigrationName.js +12 -0
  45. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1744804990712-MigrationName.js.map +1 -0
  46. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1744809770336-MigrationName.js +66 -0
  47. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1744809770336-MigrationName.js.map +1 -0
  48. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +4 -0
  49. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
  50. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleScheduleService.js +52 -3
  51. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleScheduleService.js.map +1 -1
  52. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js +12 -0
  53. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js.map +1 -1
  54. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleTeamService.js +52 -3
  55. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleTeamService.js.map +1 -1
  56. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleUserService.js +63 -3
  57. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleUserService.js.map +1 -1
  58. package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js +1 -1
  59. package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js.map +1 -1
  60. package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js +1 -1
  61. package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js.map +1 -1
  62. package/build/dist/Server/Services/OnCallDutyPolicyFeedService.js +119 -0
  63. package/build/dist/Server/Services/OnCallDutyPolicyFeedService.js.map +1 -0
  64. package/build/dist/Server/Services/OnCallDutyPolicyOwnerTeamService.js +161 -0
  65. package/build/dist/Server/Services/OnCallDutyPolicyOwnerTeamService.js.map +1 -0
  66. package/build/dist/Server/Services/OnCallDutyPolicyOwnerUserService.js +154 -0
  67. package/build/dist/Server/Services/OnCallDutyPolicyOwnerUserService.js.map +1 -0
  68. package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js +87 -20
  69. package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js.map +1 -1
  70. package/build/dist/Server/Services/OnCallDutyPolicyService.js +174 -2
  71. package/build/dist/Server/Services/OnCallDutyPolicyService.js.map +1 -1
  72. package/build/dist/Server/Services/OnCallDutyPolicyUserOverrideService.js +122 -0
  73. package/build/dist/Server/Services/OnCallDutyPolicyUserOverrideService.js.map +1 -1
  74. package/build/dist/Server/Services/WorkspaceNotificationRuleService.js +71 -0
  75. package/build/dist/Server/Services/WorkspaceNotificationRuleService.js.map +1 -1
  76. package/build/dist/Server/Utils/StartServer.js +5 -2
  77. package/build/dist/Server/Utils/StartServer.js.map +1 -1
  78. package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js +2 -0
  79. package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js.map +1 -1
  80. package/build/dist/Server/Utils/Workspace/Slack/Actions/OnCallDutyPolicy.js +50 -0
  81. package/build/dist/Server/Utils/Workspace/Slack/Actions/OnCallDutyPolicy.js.map +1 -0
  82. package/build/dist/Server/Utils/Workspace/Slack/Messages/OnCallDutyPolicy.js +52 -0
  83. package/build/dist/Server/Utils/Workspace/Slack/Messages/OnCallDutyPolicy.js.map +1 -0
  84. package/build/dist/Server/Utils/Workspace/WorkspaceMessages/OnCallDutyPolicy.js +69 -0
  85. package/build/dist/Server/Utils/Workspace/WorkspaceMessages/OnCallDutyPolicy.js.map +1 -0
  86. package/build/dist/Types/Permission.js +95 -7
  87. package/build/dist/Types/Permission.js.map +1 -1
  88. package/build/dist/Types/Workspace/NotificationRules/EventType.js +1 -0
  89. package/build/dist/Types/Workspace/NotificationRules/EventType.js.map +1 -1
  90. package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js +4 -0
  91. package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js.map +1 -1
  92. package/package.json +2 -2
@@ -0,0 +1,52 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import BadDataException from "../../../../../Types/Exception/BadDataException";
11
+ import OnCallDutyPolicyService from "../../../../Services/OnCallDutyPolicyService";
12
+ import SlackActionType from "../Actions/ActionTypes";
13
+ import CaptureSpan from "../../../Telemetry/CaptureSpan";
14
+ export default class SlackIncidentMessages {
15
+ static async getOnCallDutyPolicyCreateMessageBlocks(data) {
16
+ var _a;
17
+ if (!data.onCallDutyPolicyId) {
18
+ throw new BadDataException("On Call Policy ID is required");
19
+ }
20
+ // Slack.
21
+ const blockSlack = [];
22
+ // add divider.
23
+ const dividerBlock = {
24
+ _type: "WorkspacePayloadDivider",
25
+ };
26
+ blockSlack.push(dividerBlock);
27
+ // now add buttons.
28
+ const buttons = [];
29
+ // view data.
30
+ const viewIncidentButton = {
31
+ _type: "WorkspaceMessagePayloadButton",
32
+ title: "🔗 View On-Call Policy",
33
+ url: await OnCallDutyPolicyService.getOnCallDutyPolicyLinkInDashboard(data.projectId, data.onCallDutyPolicyId),
34
+ value: ((_a = data.onCallDutyPolicyId) === null || _a === void 0 ? void 0 : _a.toString()) || "",
35
+ actionId: SlackActionType.ViewOnCallPolicy,
36
+ };
37
+ buttons.push(viewIncidentButton);
38
+ const workspacePayloadButtons = {
39
+ buttons: buttons,
40
+ _type: "WorkspacePayloadButtons",
41
+ };
42
+ blockSlack.push(workspacePayloadButtons);
43
+ return blockSlack;
44
+ }
45
+ }
46
+ __decorate([
47
+ CaptureSpan(),
48
+ __metadata("design:type", Function),
49
+ __metadata("design:paramtypes", [Object]),
50
+ __metadata("design:returntype", Promise)
51
+ ], SlackIncidentMessages, "getOnCallDutyPolicyCreateMessageBlocks", null);
52
+ //# sourceMappingURL=OnCallDutyPolicy.js.map
@@ -0,0 +1 @@
1
+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uB,CAAC,CAAC;QAEzC,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AA/CqB;IADnB,WAAW,EAAE;;;;yEA+Cb"}
@@ -0,0 +1,69 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import NotificationRuleEventType from "../../../../Types/Workspace/NotificationRules/EventType";
11
+ import WorkspaceType from "../../../../Types/Workspace/WorkspaceType";
12
+ import WorkspaceNotificationRuleService from "../../../Services/WorkspaceNotificationRuleService";
13
+ import logger from "../../Logger";
14
+ import SlackOnCallDutyPolicyMessages from "../Slack/Messages/OnCallDutyPolicy";
15
+ import CaptureSpan from "../../Telemetry/CaptureSpan";
16
+ export default class OnCallDutyPolicyWorkspaceMessages {
17
+ static async createChannelsAndInviteUsersToChannels(data) {
18
+ try {
19
+ // we will notify the workspace about the onCallDutyPolicy creation with the bot tokken which is in WorkspaceProjectAuth Table.
20
+ return await WorkspaceNotificationRuleService.createChannelsAndInviteUsersToChannelsBasedOnRules({
21
+ projectId: data.projectId,
22
+ notificationFor: {
23
+ onCallDutyPolicyId: data.onCallDutyPolicyId,
24
+ },
25
+ notificationRuleEventType: NotificationRuleEventType.OnCallDutyPolicy,
26
+ channelNameSiffix: data.onCallDutyPolicyName.toString().toLowerCase(),
27
+ });
28
+ }
29
+ catch (err) {
30
+ // log the error and continue.
31
+ logger.error(err);
32
+ return null;
33
+ }
34
+ }
35
+ static async getOnCallDutyPolicyCreateMessageBlocks(data) {
36
+ const { onCallDutyPolicyId, projectId } = data;
37
+ const slackBlocks = await SlackOnCallDutyPolicyMessages.getOnCallDutyPolicyCreateMessageBlocks({
38
+ onCallDutyPolicyId: onCallDutyPolicyId,
39
+ projectId: projectId,
40
+ });
41
+ const microsoftTeamsBlocks = await SlackOnCallDutyPolicyMessages.getOnCallDutyPolicyCreateMessageBlocks({
42
+ onCallDutyPolicyId: onCallDutyPolicyId,
43
+ projectId: projectId,
44
+ });
45
+ return [
46
+ {
47
+ workspaceType: WorkspaceType.Slack,
48
+ messageBlocks: slackBlocks,
49
+ },
50
+ {
51
+ workspaceType: WorkspaceType.MicrosoftTeams,
52
+ messageBlocks: microsoftTeamsBlocks,
53
+ },
54
+ ];
55
+ }
56
+ }
57
+ __decorate([
58
+ CaptureSpan(),
59
+ __metadata("design:type", Function),
60
+ __metadata("design:paramtypes", [Object]),
61
+ __metadata("design:returntype", Promise)
62
+ ], OnCallDutyPolicyWorkspaceMessages, "createChannelsAndInviteUsersToChannels", null);
63
+ __decorate([
64
+ CaptureSpan(),
65
+ __metadata("design:type", Function),
66
+ __metadata("design:paramtypes", [Object]),
67
+ __metadata("design:returntype", Promise)
68
+ ], OnCallDutyPolicyWorkspaceMessages, "getOnCallDutyPolicyCreateMessageBlocks", null);
69
+ //# sourceMappingURL=OnCallDutyPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnCallDutyPolicy.js","sourceRoot":"","sources":["../../../../../../Server/Utils/Workspace/WorkspaceMessages/OnCallDutyPolicy.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,yBAAyB,MAAM,yDAAyD,CAAC;AAGhG,OAAO,aAAa,MAAM,2CAA2C,CAAC;AACtE,OAAO,gCAEN,MAAM,oDAAoD,CAAC;AAC5D,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,6BAA6B,MAAM,oCAAoC,CAAC;AAC/E,OA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AAE;;;;qFAiCb"}
@@ -179,6 +179,14 @@ var Permission;
179
179
  Permission["DeleteMonitorOwnerUser"] = "DeleteMonitorOwnerUser";
180
180
  Permission["EditMonitorOwnerUser"] = "EditMonitorOwnerUser";
181
181
  Permission["ReadMonitorOwnerUser"] = "ReadMonitorOwnerUser";
182
+ Permission["CreateOnCallDutyPolicyOwnerTeam"] = "CreateOnCallDutyPolicyOwnerTeam";
183
+ Permission["DeleteOnCallDutyPolicyOwnerTeam"] = "DeleteOnCallDutyPolicyOwnerTeam";
184
+ Permission["EditOnCallDutyPolicyOwnerTeam"] = "EditOnCallDutyPolicyOwnerTeam";
185
+ Permission["ReadOnCallDutyPolicyOwnerTeam"] = "ReadOnCallDutyPolicyOwnerTeam";
186
+ Permission["CreateOnCallDutyPolicyOwnerUser"] = "CreateOnCallDutyPolicyOwner";
187
+ Permission["DeleteOnCallDutyPolicyOwnerUser"] = "DeleteOnCallDutyPolicyOwnerUser";
188
+ Permission["EditOnCallDutyPolicyOwnerUser"] = "EditOnCallDutyPolicyOwnerUser";
189
+ Permission["ReadOnCallDutyPolicyOwnerUser"] = "ReadOnCallDutyPolicyOwnerUser";
182
190
  Permission["CreateMonitorGroupOwnerTeam"] = "CreateMonitorGroupOwnerTeam";
183
191
  Permission["DeleteMonitorGroupOwnerTeam"] = "DeleteMonitorGroupOwnerTeam";
184
192
  Permission["EditMonitorGroupOwnerTeam"] = "EditMonitorGroupOwnerTeam";
@@ -326,6 +334,9 @@ var Permission;
326
334
  Permission["CreateIncidentFeed"] = "CreateIncidentFeed";
327
335
  Permission["EditIncidentFeed"] = "EditIncidentFeed";
328
336
  Permission["ReadIncidentFeed"] = "ReadIncidentFeed";
337
+ Permission["CreateOnCallDutyPolicyFeed"] = "CreateOnCallDutyPolicyFeed";
338
+ Permission["EditOnCallDutyPolicyFeed"] = "EditOnCallDutyPolicyFeed";
339
+ Permission["ReadOnCallDutyPolicyFeed"] = "ReadOnCallDutyPolicyFeed";
329
340
  Permission["CreateMonitorFeed"] = "CreateMonitorFeed";
330
341
  Permission["EditMonitorFeed"] = "EditMonitorFeed";
331
342
  Permission["ReadMonitorFeed"] = "ReadMonitorFeed";
@@ -904,21 +915,21 @@ export class PermissionHelper {
904
915
  {
905
916
  permission: Permission.CreateMonitorFeed,
906
917
  title: "Create Monitor Feed",
907
- description: "This permission can create log of an incident in this project.",
918
+ description: "This permission can create log of an monitor in this project.",
908
919
  isAssignableToTenant: true,
909
920
  isAccessControlPermission: false,
910
921
  },
911
922
  {
912
923
  permission: Permission.EditMonitorFeed,
913
924
  title: "Edit Monitor Feed",
914
- description: "This permission can edit log of an incident in this project.",
925
+ description: "This permission can edit log of an monitor in this project.",
915
926
  isAssignableToTenant: true,
916
927
  isAccessControlPermission: false,
917
928
  },
918
929
  {
919
930
  permission: Permission.ReadMonitorFeed,
920
931
  title: "Read Monitor Feed",
921
- description: "This permission can read log of an incident in this project.",
932
+ description: "This permission can read log of an monitor in this project.",
922
933
  isAssignableToTenant: true,
923
934
  isAccessControlPermission: false,
924
935
  },
@@ -943,24 +954,45 @@ export class PermissionHelper {
943
954
  isAssignableToTenant: true,
944
955
  isAccessControlPermission: false,
945
956
  },
957
+ {
958
+ permission: Permission.CreateOnCallDutyPolicyFeed,
959
+ title: "Create On Call Duty Policy Feed",
960
+ description: "This permission can create log of an on-call policy in this project.",
961
+ isAssignableToTenant: true,
962
+ isAccessControlPermission: false,
963
+ },
964
+ {
965
+ permission: Permission.EditOnCallDutyPolicyFeed,
966
+ title: "Edit On Call Duty Policy Feed",
967
+ description: "This permission can edit log of an on-call policy in this project.",
968
+ isAssignableToTenant: true,
969
+ isAccessControlPermission: false,
970
+ },
971
+ {
972
+ permission: Permission.ReadOnCallDutyPolicyFeed,
973
+ title: "Read On Call Duty Policy Feed",
974
+ description: "This permission can read log of an on-call policy in this project.",
975
+ isAssignableToTenant: true,
976
+ isAccessControlPermission: false,
977
+ },
946
978
  {
947
979
  permission: Permission.CreateAlertFeed,
948
980
  title: "Create Alert Feed",
949
- description: "This permission can create log of an incident in this project.",
981
+ description: "This permission can create log of an alert in this project.",
950
982
  isAssignableToTenant: true,
951
983
  isAccessControlPermission: false,
952
984
  },
953
985
  {
954
986
  permission: Permission.EditAlertFeed,
955
987
  title: "Edit Alert Feed",
956
- description: "This permission can edit log of an incident in this project.",
988
+ description: "This permission can edit log of an alert in this project.",
957
989
  isAssignableToTenant: true,
958
990
  isAccessControlPermission: false,
959
991
  },
960
992
  {
961
993
  permission: Permission.ReadAlertFeed,
962
994
  title: "Read Alert Feed",
963
- description: "This permission can read log of an incident in this project.",
995
+ description: "This permission can read log of an alert in this project.",
964
996
  isAssignableToTenant: true,
965
997
  isAccessControlPermission: false,
966
998
  },
@@ -981,7 +1013,7 @@ export class PermissionHelper {
981
1013
  {
982
1014
  permission: Permission.ReadScheduledMaintenanceFeed,
983
1015
  title: "Read Scheduled Maintenance Log",
984
- description: "This permission can read log of an incident in this project.",
1016
+ description: "This permission can read log of an scheduled maintenance in this project.",
985
1017
  isAssignableToTenant: true,
986
1018
  isAccessControlPermission: false,
987
1019
  },
@@ -3470,6 +3502,62 @@ export class PermissionHelper {
3470
3502
  isAssignableToTenant: true,
3471
3503
  isAccessControlPermission: false,
3472
3504
  },
3505
+ {
3506
+ permission: Permission.CreateOnCallDutyPolicyOwnerUser,
3507
+ title: "Create On Call Duty Policy User Owner",
3508
+ description: "This permission can create On Call Duty Policy User Owner this project.",
3509
+ isAssignableToTenant: true,
3510
+ isAccessControlPermission: false,
3511
+ },
3512
+ {
3513
+ permission: Permission.DeleteOnCallDutyPolicyOwnerUser,
3514
+ title: "Delete On Call Duty Policy User Owner",
3515
+ description: "This permission can delete On Call Duty Policy User Owner of this project.",
3516
+ isAssignableToTenant: true,
3517
+ isAccessControlPermission: false,
3518
+ },
3519
+ {
3520
+ permission: Permission.EditOnCallDutyPolicyOwnerUser,
3521
+ title: "Edit On Call Duty Policy User Owner",
3522
+ description: "This permission can edit On Call Duty Policy User Owner of this project.",
3523
+ isAssignableToTenant: true,
3524
+ isAccessControlPermission: false,
3525
+ },
3526
+ {
3527
+ permission: Permission.ReadOnCallDutyPolicyOwnerUser,
3528
+ title: "Read On Call Duty Policy User Owner",
3529
+ description: "This permission can read On Call Duty Policy User Owner of this project.",
3530
+ isAssignableToTenant: true,
3531
+ isAccessControlPermission: false,
3532
+ },
3533
+ {
3534
+ permission: Permission.CreateOnCallDutyPolicyOwnerTeam,
3535
+ title: "Create On Call Duty Policy Team Owner",
3536
+ description: "This permission can create On Call Duty Policy Team Owner this project.",
3537
+ isAssignableToTenant: true,
3538
+ isAccessControlPermission: false,
3539
+ },
3540
+ {
3541
+ permission: Permission.DeleteOnCallDutyPolicyOwnerTeam,
3542
+ title: "Delete On Call Duty Policy Team Owner",
3543
+ description: "This permission can delete On Call Duty Policy Team Owner of this project.",
3544
+ isAssignableToTenant: true,
3545
+ isAccessControlPermission: false,
3546
+ },
3547
+ {
3548
+ permission: Permission.EditOnCallDutyPolicyOwnerTeam,
3549
+ title: "Edit On Call Duty Policy Team Owner",
3550
+ description: "This permission can edit On Call Duty Policy Team Owner of this project.",
3551
+ isAssignableToTenant: true,
3552
+ isAccessControlPermission: false,
3553
+ },
3554
+ {
3555
+ permission: Permission.ReadOnCallDutyPolicyOwnerTeam,
3556
+ title: "Read On Call Duty Policy Team Owner",
3557
+ description: "This permission can read On Call Duty Policy Team Owner of this project.",
3558
+ isAssignableToTenant: true,
3559
+ isAccessControlPermission: false,
3560
+ },
3473
3561
  {
3474
3562
  permission: Permission.CreateMonitorGroupOwnerUser,
3475
3563
  title: "Create Monitor Group User Owner",