@oneuptime/common 7.0.4922 → 7.0.4976

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 (168) hide show
  1. package/Models/DatabaseModels/CallLog.ts +578 -0
  2. package/Models/DatabaseModels/EmailLog.ts +579 -0
  3. package/Models/DatabaseModels/IncidentStateTimeline.ts +1 -1
  4. package/Models/DatabaseModels/Index.ts +4 -0
  5. package/Models/DatabaseModels/OnCallDutyPolicy.ts +1 -1
  6. package/Models/DatabaseModels/PushNotificationLog.ts +877 -0
  7. package/Models/DatabaseModels/SmsLog.ts +578 -0
  8. package/Models/DatabaseModels/WorkspaceNotificationLog.ts +931 -0
  9. package/Server/API/StatusPageAPI.ts +2 -0
  10. package/Server/API/UserPushAPI.ts +12 -1
  11. package/Server/Infrastructure/Postgres/SchemaMigrations/1754776130988-MigrationName.ts +259 -0
  12. package/Server/Infrastructure/Postgres/SchemaMigrations/1754828812691-MigrationName.ts +105 -0
  13. package/Server/Infrastructure/Postgres/SchemaMigrations/1754910440587-MigrationName.ts +105 -0
  14. package/Server/Infrastructure/Postgres/SchemaMigrations/1755030730926-MigrationName.ts +101 -0
  15. package/Server/Infrastructure/Postgres/SchemaMigrations/1755088852971-MigrationName.ts +371 -0
  16. package/Server/Infrastructure/Postgres/SchemaMigrations/1755093133870-MigrationName.ts +29 -0
  17. package/Server/Infrastructure/Postgres/SchemaMigrations/1755109893911-MigrationName.ts +23 -0
  18. package/Server/Infrastructure/Postgres/SchemaMigrations/1755110936888-MigrationName.ts +41 -0
  19. package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +16 -0
  20. package/Server/Services/CallService.ts +26 -1
  21. package/Server/Services/Index.ts +2 -0
  22. package/Server/Services/MailService.ts +60 -0
  23. package/Server/Services/OnCallDutyPolicyEscalationRuleUserService.ts +6 -0
  24. package/Server/Services/OnCallDutyPolicyScheduleService.ts +12 -0
  25. package/Server/Services/ProjectService.ts +3 -7
  26. package/Server/Services/PushNotificationLogService.ts +14 -0
  27. package/Server/Services/PushNotificationService.ts +129 -13
  28. package/Server/Services/ScheduledMaintenanceService.ts +4 -0
  29. package/Server/Services/SmsService.ts +25 -0
  30. package/Server/Services/StatusPagePrivateUserService.ts +1 -0
  31. package/Server/Services/StatusPageService.ts +1 -0
  32. package/Server/Services/StatusPageSubscriberService.ts +3 -0
  33. package/Server/Services/TeamMemberService.ts +1 -0
  34. package/Server/Services/UserCallService.ts +1 -0
  35. package/Server/Services/UserEmailService.ts +1 -0
  36. package/Server/Services/UserNotificationRuleService.ts +85 -6
  37. package/Server/Services/UserNotificationSettingService.ts +58 -0
  38. package/Server/Services/UserOnCallLogService.ts +1 -0
  39. package/Server/Services/UserSmsService.ts +1 -0
  40. package/Server/Services/WorkspaceNotificationLogService.ts +276 -0
  41. package/Server/Services/WorkspaceNotificationRuleService.ts +290 -33
  42. package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.ts +21 -6
  43. package/Server/Utils/Workspace/Slack/Actions/Alert.ts +66 -0
  44. package/Server/Utils/Workspace/Slack/Actions/Incident.ts +66 -1
  45. package/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.ts +65 -0
  46. package/Server/Utils/Workspace/Slack/Slack.ts +21 -6
  47. package/Types/Permission.ts +20 -0
  48. package/Types/PushNotification/PushNotificationRequest.ts +4 -1
  49. package/Types/PushNotification/PushStatus.ts +6 -0
  50. package/Types/Workspace/WorkspaceNotificationActionType.ts +8 -0
  51. package/Types/Workspace/WorkspaceNotificationStatus.ts +6 -0
  52. package/Typings/elkjs.d.ts +30 -0
  53. package/UI/Components/Detail/Detail.tsx +1 -1
  54. package/UI/Components/Graphs/ServiceDependencyGraph.tsx +281 -0
  55. package/UI/Components/Tabs/Tab.tsx +8 -9
  56. package/UI/Components/Tabs/Tabs.tsx +17 -16
  57. package/Utils/Uptime/UptimeUtil.ts +20 -1
  58. package/build/dist/Models/DatabaseModels/CallLog.js +580 -0
  59. package/build/dist/Models/DatabaseModels/CallLog.js.map +1 -1
  60. package/build/dist/Models/DatabaseModels/EmailLog.js +580 -0
  61. package/build/dist/Models/DatabaseModels/EmailLog.js.map +1 -1
  62. package/build/dist/Models/DatabaseModels/IncidentStateTimeline.js +1 -1
  63. package/build/dist/Models/DatabaseModels/IncidentStateTimeline.js.map +1 -1
  64. package/build/dist/Models/DatabaseModels/Index.js +4 -0
  65. package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
  66. package/build/dist/Models/DatabaseModels/OnCallDutyPolicy.js +1 -1
  67. package/build/dist/Models/DatabaseModels/OnCallDutyPolicy.js.map +1 -1
  68. package/build/dist/Models/DatabaseModels/PushNotificationLog.js +904 -0
  69. package/build/dist/Models/DatabaseModels/PushNotificationLog.js.map +1 -0
  70. package/build/dist/Models/DatabaseModels/SmsLog.js +580 -0
  71. package/build/dist/Models/DatabaseModels/SmsLog.js.map +1 -1
  72. package/build/dist/Models/DatabaseModels/WorkspaceNotificationLog.js +961 -0
  73. package/build/dist/Models/DatabaseModels/WorkspaceNotificationLog.js.map +1 -0
  74. package/build/dist/Server/API/StatusPageAPI.js +2 -0
  75. package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
  76. package/build/dist/Server/API/UserPushAPI.js +9 -1
  77. package/build/dist/Server/API/UserPushAPI.js.map +1 -1
  78. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1754776130988-MigrationName.js +104 -0
  79. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1754776130988-MigrationName.js.map +1 -0
  80. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1754828812691-MigrationName.js +42 -0
  81. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1754828812691-MigrationName.js.map +1 -0
  82. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1754910440587-MigrationName.js +42 -0
  83. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1754910440587-MigrationName.js.map +1 -0
  84. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755030730926-MigrationName.js +44 -0
  85. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755030730926-MigrationName.js.map +1 -0
  86. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755088852971-MigrationName.js +134 -0
  87. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755088852971-MigrationName.js.map +1 -0
  88. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755093133870-MigrationName.js +16 -0
  89. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755093133870-MigrationName.js.map +1 -0
  90. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755109893911-MigrationName.js +14 -0
  91. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755109893911-MigrationName.js.map +1 -0
  92. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755110936888-MigrationName.js +20 -0
  93. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1755110936888-MigrationName.js.map +1 -0
  94. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +16 -0
  95. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
  96. package/build/dist/Server/Services/CallService.js +12 -1
  97. package/build/dist/Server/Services/CallService.js.map +1 -1
  98. package/build/dist/Server/Services/Index.js +2 -0
  99. package/build/dist/Server/Services/Index.js.map +1 -1
  100. package/build/dist/Server/Services/MailService.js +37 -0
  101. package/build/dist/Server/Services/MailService.js.map +1 -1
  102. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleUserService.js +4 -0
  103. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleUserService.js.map +1 -1
  104. package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js +9 -0
  105. package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js.map +1 -1
  106. package/build/dist/Server/Services/ProjectService.js +3 -5
  107. package/build/dist/Server/Services/ProjectService.js.map +1 -1
  108. package/build/dist/Server/Services/PushNotificationLogService.js +13 -0
  109. package/build/dist/Server/Services/PushNotificationLogService.js.map +1 -0
  110. package/build/dist/Server/Services/PushNotificationService.js +98 -13
  111. package/build/dist/Server/Services/PushNotificationService.js.map +1 -1
  112. package/build/dist/Server/Services/ScheduledMaintenanceService.js +4 -0
  113. package/build/dist/Server/Services/ScheduledMaintenanceService.js.map +1 -1
  114. package/build/dist/Server/Services/SmsService.js +12 -1
  115. package/build/dist/Server/Services/SmsService.js.map +1 -1
  116. package/build/dist/Server/Services/StatusPagePrivateUserService.js +1 -0
  117. package/build/dist/Server/Services/StatusPagePrivateUserService.js.map +1 -1
  118. package/build/dist/Server/Services/StatusPageService.js +1 -0
  119. package/build/dist/Server/Services/StatusPageService.js.map +1 -1
  120. package/build/dist/Server/Services/StatusPageSubscriberService.js +3 -0
  121. package/build/dist/Server/Services/StatusPageSubscriberService.js.map +1 -1
  122. package/build/dist/Server/Services/TeamMemberService.js +1 -0
  123. package/build/dist/Server/Services/TeamMemberService.js.map +1 -1
  124. package/build/dist/Server/Services/UserCallService.js +1 -0
  125. package/build/dist/Server/Services/UserCallService.js.map +1 -1
  126. package/build/dist/Server/Services/UserEmailService.js +1 -0
  127. package/build/dist/Server/Services/UserEmailService.js.map +1 -1
  128. package/build/dist/Server/Services/UserNotificationRuleService.js +70 -6
  129. package/build/dist/Server/Services/UserNotificationRuleService.js.map +1 -1
  130. package/build/dist/Server/Services/UserNotificationSettingService.js +43 -0
  131. package/build/dist/Server/Services/UserNotificationSettingService.js.map +1 -1
  132. package/build/dist/Server/Services/UserOnCallLogService.js +1 -0
  133. package/build/dist/Server/Services/UserOnCallLogService.js.map +1 -1
  134. package/build/dist/Server/Services/UserSmsService.js +1 -0
  135. package/build/dist/Server/Services/UserSmsService.js.map +1 -1
  136. package/build/dist/Server/Services/WorkspaceNotificationLogService.js +181 -0
  137. package/build/dist/Server/Services/WorkspaceNotificationLogService.js.map +1 -0
  138. package/build/dist/Server/Services/WorkspaceNotificationRuleService.js +193 -3
  139. package/build/dist/Server/Services/WorkspaceNotificationRuleService.js.map +1 -1
  140. package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js +19 -6
  141. package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js.map +1 -1
  142. package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js +48 -0
  143. package/build/dist/Server/Utils/Workspace/Slack/Actions/Alert.js.map +1 -1
  144. package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js +48 -1
  145. package/build/dist/Server/Utils/Workspace/Slack/Actions/Incident.js.map +1 -1
  146. package/build/dist/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.js +47 -0
  147. package/build/dist/Server/Utils/Workspace/Slack/Actions/ScheduledMaintenance.js.map +1 -1
  148. package/build/dist/Server/Utils/Workspace/Slack/Slack.js +19 -6
  149. package/build/dist/Server/Utils/Workspace/Slack/Slack.js.map +1 -1
  150. package/build/dist/Types/Permission.js +16 -0
  151. package/build/dist/Types/Permission.js.map +1 -1
  152. package/build/dist/Types/PushNotification/PushStatus.js +7 -0
  153. package/build/dist/Types/PushNotification/PushStatus.js.map +1 -0
  154. package/build/dist/Types/Workspace/WorkspaceNotificationActionType.js +9 -0
  155. package/build/dist/Types/Workspace/WorkspaceNotificationActionType.js.map +1 -0
  156. package/build/dist/Types/Workspace/WorkspaceNotificationStatus.js +7 -0
  157. package/build/dist/Types/Workspace/WorkspaceNotificationStatus.js.map +1 -0
  158. package/build/dist/UI/Components/Detail/Detail.js +1 -1
  159. package/build/dist/UI/Components/Detail/Detail.js.map +1 -1
  160. package/build/dist/UI/Components/Graphs/ServiceDependencyGraph.js +206 -0
  161. package/build/dist/UI/Components/Graphs/ServiceDependencyGraph.js.map +1 -0
  162. package/build/dist/UI/Components/Tabs/Tab.js +6 -5
  163. package/build/dist/UI/Components/Tabs/Tab.js.map +1 -1
  164. package/build/dist/UI/Components/Tabs/Tabs.js +5 -6
  165. package/build/dist/UI/Components/Tabs/Tabs.js.map +1 -1
  166. package/build/dist/Utils/Uptime/UptimeUtil.js +10 -1
  167. package/build/dist/Utils/Uptime/UptimeUtil.js.map +1 -1
  168. package/package.json +2 -1
@@ -0,0 +1,961 @@
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 Project from "./Project";
11
+ import Incident from "./Incident";
12
+ import Alert from "./Alert";
13
+ import ScheduledMaintenance from "./ScheduledMaintenance";
14
+ import StatusPage from "./StatusPage";
15
+ import StatusPageAnnouncement from "./StatusPageAnnouncement";
16
+ import User from "./User";
17
+ import OnCallDutyPolicy from "./OnCallDutyPolicy";
18
+ import OnCallDutyPolicyEscalationRule from "./OnCallDutyPolicyEscalationRule";
19
+ import OnCallDutyPolicySchedule from "./OnCallDutyPolicySchedule";
20
+ import Team from "./Team";
21
+ import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
22
+ import Route from "../../Types/API/Route";
23
+ import ColumnAccessControl from "../../Types/Database/AccessControl/ColumnAccessControl";
24
+ import TableAccessControl from "../../Types/Database/AccessControl/TableAccessControl";
25
+ import ColumnLength from "../../Types/Database/ColumnLength";
26
+ import ColumnType from "../../Types/Database/ColumnType";
27
+ import CrudApiEndpoint from "../../Types/Database/CrudApiEndpoint";
28
+ import EnableDocumentation from "../../Types/Database/EnableDocumentation";
29
+ import EnableWorkflow from "../../Types/Database/EnableWorkflow";
30
+ import TableColumn from "../../Types/Database/TableColumn";
31
+ import TableColumnType from "../../Types/Database/TableColumnType";
32
+ import TableMetadata from "../../Types/Database/TableMetadata";
33
+ import TenantColumn from "../../Types/Database/TenantColumn";
34
+ import IconProp from "../../Types/Icon/IconProp";
35
+ import ObjectID from "../../Types/ObjectID";
36
+ import Permission from "../../Types/Permission";
37
+ import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm";
38
+ import WorkspaceType from "../../Types/Workspace/WorkspaceType";
39
+ import WorkspaceNotificationStatus from "../../Types/Workspace/WorkspaceNotificationStatus";
40
+ import WorkspaceNotificationActionType from "../../Types/Workspace/WorkspaceNotificationActionType";
41
+ let WorkspaceNotificationLog = class WorkspaceNotificationLog extends BaseModel {
42
+ constructor() {
43
+ super(...arguments);
44
+ this.project = undefined;
45
+ this.projectId = undefined;
46
+ this.workspaceType = undefined;
47
+ this.channelId = undefined;
48
+ this.channelName = undefined;
49
+ this.threadId = undefined;
50
+ this.message = undefined;
51
+ this.statusMessage = undefined;
52
+ this.status = undefined;
53
+ this.actionType = undefined;
54
+ // Relations to resources that triggered this message (nullable)
55
+ this.incident = undefined;
56
+ this.incidentId = undefined;
57
+ this.user = undefined;
58
+ this.userId = undefined;
59
+ this.alert = undefined;
60
+ this.alertId = undefined;
61
+ this.scheduledMaintenance = undefined;
62
+ this.scheduledMaintenanceId = undefined;
63
+ this.statusPage = undefined;
64
+ this.statusPageId = undefined;
65
+ this.statusPageAnnouncement = undefined;
66
+ this.statusPageAnnouncementId = undefined;
67
+ this.onCallDutyPolicy = undefined;
68
+ this.onCallDutyPolicyId = undefined;
69
+ this.onCallDutyPolicyEscalationRule = undefined;
70
+ this.onCallDutyPolicyEscalationRuleId = undefined;
71
+ this.onCallDutyPolicySchedule = undefined;
72
+ this.onCallDutyPolicyScheduleId = undefined;
73
+ this.team = undefined;
74
+ this.teamId = undefined;
75
+ this.deletedByUser = undefined;
76
+ this.deletedByUserId = undefined;
77
+ }
78
+ };
79
+ __decorate([
80
+ ColumnAccessControl({
81
+ create: [],
82
+ read: [
83
+ Permission.ProjectOwner,
84
+ Permission.ProjectAdmin,
85
+ Permission.ProjectMember,
86
+ Permission.ReadWorkspaceNotificationLog,
87
+ ],
88
+ update: [],
89
+ }),
90
+ TableColumn({
91
+ manyToOneRelationColumn: "projectId",
92
+ type: TableColumnType.Entity,
93
+ modelType: Project,
94
+ title: "Project",
95
+ description: "Relation to Project Resource in which this object belongs",
96
+ }),
97
+ ManyToOne(() => {
98
+ return Project;
99
+ }, {
100
+ eager: false,
101
+ nullable: true,
102
+ onDelete: "CASCADE",
103
+ orphanedRowAction: "nullify",
104
+ }),
105
+ JoinColumn({ name: "projectId" }),
106
+ __metadata("design:type", Project)
107
+ ], WorkspaceNotificationLog.prototype, "project", void 0);
108
+ __decorate([
109
+ ColumnAccessControl({
110
+ create: [],
111
+ read: [
112
+ Permission.ProjectOwner,
113
+ Permission.ProjectAdmin,
114
+ Permission.ProjectMember,
115
+ Permission.ReadWorkspaceNotificationLog,
116
+ ],
117
+ update: [],
118
+ }),
119
+ Index(),
120
+ TableColumn({
121
+ type: TableColumnType.ObjectID,
122
+ required: true,
123
+ canReadOnRelationQuery: true,
124
+ title: "Project ID",
125
+ description: "ID of your OneUptime Project in which this object belongs",
126
+ }),
127
+ Column({
128
+ type: ColumnType.ObjectID,
129
+ nullable: false,
130
+ transformer: ObjectID.getDatabaseTransformer(),
131
+ }),
132
+ __metadata("design:type", ObjectID)
133
+ ], WorkspaceNotificationLog.prototype, "projectId", void 0);
134
+ __decorate([
135
+ ColumnAccessControl({
136
+ create: [],
137
+ read: [
138
+ Permission.ProjectOwner,
139
+ Permission.ProjectAdmin,
140
+ Permission.ProjectMember,
141
+ Permission.ReadWorkspaceNotificationLog,
142
+ ],
143
+ update: [],
144
+ }),
145
+ TableColumn({
146
+ required: true,
147
+ type: TableColumnType.ShortText,
148
+ title: "Workspace Type",
149
+ description: "Type of Workspace - Slack, Microsoft Teams",
150
+ canReadOnRelationQuery: false,
151
+ }),
152
+ Column({
153
+ nullable: false,
154
+ type: ColumnType.ShortText,
155
+ length: ColumnLength.ShortText,
156
+ }),
157
+ __metadata("design:type", String)
158
+ ], WorkspaceNotificationLog.prototype, "workspaceType", void 0);
159
+ __decorate([
160
+ ColumnAccessControl({
161
+ create: [],
162
+ read: [
163
+ Permission.ProjectOwner,
164
+ Permission.ProjectAdmin,
165
+ Permission.ProjectMember,
166
+ Permission.ReadWorkspaceNotificationLog,
167
+ ],
168
+ update: [],
169
+ }),
170
+ TableColumn({
171
+ required: false,
172
+ type: TableColumnType.ShortText,
173
+ title: "Channel ID",
174
+ description: "Channel ID where the message was sent",
175
+ canReadOnRelationQuery: false,
176
+ }),
177
+ Column({
178
+ nullable: true,
179
+ type: ColumnType.ShortText,
180
+ length: ColumnLength.ShortText,
181
+ }),
182
+ __metadata("design:type", String)
183
+ ], WorkspaceNotificationLog.prototype, "channelId", void 0);
184
+ __decorate([
185
+ ColumnAccessControl({
186
+ create: [],
187
+ read: [
188
+ Permission.ProjectOwner,
189
+ Permission.ProjectAdmin,
190
+ Permission.ProjectMember,
191
+ Permission.ReadWorkspaceNotificationLog,
192
+ ],
193
+ update: [],
194
+ }),
195
+ TableColumn({
196
+ required: false,
197
+ type: TableColumnType.ShortText,
198
+ title: "Channel Name",
199
+ description: "Channel Name where the message was sent",
200
+ canReadOnRelationQuery: false,
201
+ }),
202
+ Column({
203
+ nullable: true,
204
+ type: ColumnType.ShortText,
205
+ length: ColumnLength.ShortText,
206
+ }),
207
+ __metadata("design:type", String)
208
+ ], WorkspaceNotificationLog.prototype, "channelName", void 0);
209
+ __decorate([
210
+ ColumnAccessControl({
211
+ create: [],
212
+ read: [
213
+ Permission.ProjectOwner,
214
+ Permission.ProjectAdmin,
215
+ Permission.ProjectMember,
216
+ Permission.ReadWorkspaceNotificationLog,
217
+ ],
218
+ update: [],
219
+ }),
220
+ TableColumn({
221
+ required: false,
222
+ type: TableColumnType.ShortText,
223
+ title: "Thread ID",
224
+ description: "Thread ID of the message in the channel (if any)",
225
+ canReadOnRelationQuery: false,
226
+ }),
227
+ Column({
228
+ nullable: true,
229
+ type: ColumnType.ShortText,
230
+ length: ColumnLength.ShortText,
231
+ }),
232
+ __metadata("design:type", String)
233
+ ], WorkspaceNotificationLog.prototype, "threadId", void 0);
234
+ __decorate([
235
+ ColumnAccessControl({
236
+ create: [],
237
+ read: [
238
+ Permission.ProjectOwner,
239
+ Permission.ProjectAdmin,
240
+ Permission.ProjectMember,
241
+ Permission.ReadWorkspaceNotificationLog,
242
+ ],
243
+ update: [],
244
+ }),
245
+ TableColumn({
246
+ required: false,
247
+ type: TableColumnType.VeryLongText,
248
+ title: "Message",
249
+ description: "Content of the message",
250
+ canReadOnRelationQuery: false,
251
+ }),
252
+ Column({
253
+ nullable: true,
254
+ type: ColumnType.VeryLongText,
255
+ }),
256
+ __metadata("design:type", String)
257
+ ], WorkspaceNotificationLog.prototype, "message", void 0);
258
+ __decorate([
259
+ ColumnAccessControl({
260
+ create: [],
261
+ read: [
262
+ Permission.ProjectOwner,
263
+ Permission.ProjectAdmin,
264
+ Permission.ProjectMember,
265
+ Permission.ReadWorkspaceNotificationLog,
266
+ ],
267
+ update: [],
268
+ }),
269
+ TableColumn({
270
+ required: false,
271
+ type: TableColumnType.LongText,
272
+ title: "Status Message",
273
+ description: "Status Message (if any)",
274
+ canReadOnRelationQuery: false,
275
+ }),
276
+ Column({
277
+ nullable: true,
278
+ type: ColumnType.LongText,
279
+ length: ColumnLength.LongText,
280
+ }),
281
+ __metadata("design:type", String)
282
+ ], WorkspaceNotificationLog.prototype, "statusMessage", void 0);
283
+ __decorate([
284
+ ColumnAccessControl({
285
+ create: [],
286
+ read: [
287
+ Permission.ProjectOwner,
288
+ Permission.ProjectAdmin,
289
+ Permission.ProjectMember,
290
+ Permission.ReadWorkspaceNotificationLog,
291
+ ],
292
+ update: [],
293
+ }),
294
+ TableColumn({
295
+ required: true,
296
+ type: TableColumnType.ShortText,
297
+ title: "Status",
298
+ description: "Status of the message",
299
+ canReadOnRelationQuery: false,
300
+ }),
301
+ Column({
302
+ nullable: false,
303
+ type: ColumnType.ShortText,
304
+ length: ColumnLength.ShortText,
305
+ }),
306
+ __metadata("design:type", String)
307
+ ], WorkspaceNotificationLog.prototype, "status", void 0);
308
+ __decorate([
309
+ ColumnAccessControl({
310
+ create: [],
311
+ read: [
312
+ Permission.ProjectOwner,
313
+ Permission.ProjectAdmin,
314
+ Permission.ProjectMember,
315
+ Permission.ReadWorkspaceNotificationLog,
316
+ ],
317
+ update: [],
318
+ }),
319
+ TableColumn({
320
+ required: true,
321
+ type: TableColumnType.ShortText,
322
+ title: "Action Type",
323
+ description: "Type of workspace action performed",
324
+ canReadOnRelationQuery: false,
325
+ isDefaultValueColumn: true,
326
+ defaultValue: WorkspaceNotificationActionType.SendMessage,
327
+ }),
328
+ Column({
329
+ nullable: false,
330
+ type: ColumnType.ShortText,
331
+ length: ColumnLength.ShortText,
332
+ default: WorkspaceNotificationActionType.SendMessage,
333
+ }),
334
+ __metadata("design:type", String)
335
+ ], WorkspaceNotificationLog.prototype, "actionType", void 0);
336
+ __decorate([
337
+ ColumnAccessControl({
338
+ create: [],
339
+ read: [
340
+ Permission.ProjectOwner,
341
+ Permission.ProjectAdmin,
342
+ Permission.ProjectMember,
343
+ Permission.ReadWorkspaceNotificationLog,
344
+ ],
345
+ update: [],
346
+ }),
347
+ TableColumn({
348
+ manyToOneRelationColumn: "incidentId",
349
+ type: TableColumnType.Entity,
350
+ modelType: Incident,
351
+ title: "Incident",
352
+ description: "Incident associated with this message (if any)",
353
+ }),
354
+ ManyToOne(() => {
355
+ return Incident;
356
+ }, {
357
+ eager: false,
358
+ nullable: true,
359
+ onDelete: "CASCADE",
360
+ orphanedRowAction: "nullify",
361
+ }),
362
+ JoinColumn({ name: "incidentId" }),
363
+ __metadata("design:type", Incident)
364
+ ], WorkspaceNotificationLog.prototype, "incident", void 0);
365
+ __decorate([
366
+ ColumnAccessControl({
367
+ create: [],
368
+ read: [
369
+ Permission.ProjectOwner,
370
+ Permission.ProjectAdmin,
371
+ Permission.ProjectMember,
372
+ Permission.ReadPushLog,
373
+ ],
374
+ update: [],
375
+ }),
376
+ Index(),
377
+ TableColumn({
378
+ type: TableColumnType.ObjectID,
379
+ required: false,
380
+ canReadOnRelationQuery: true,
381
+ title: "Incident ID",
382
+ description: "ID of Incident associated with this message (if any)",
383
+ }),
384
+ Column({
385
+ type: ColumnType.ObjectID,
386
+ nullable: true,
387
+ transformer: ObjectID.getDatabaseTransformer(),
388
+ }),
389
+ __metadata("design:type", ObjectID)
390
+ ], WorkspaceNotificationLog.prototype, "incidentId", void 0);
391
+ __decorate([
392
+ ColumnAccessControl({
393
+ create: [],
394
+ read: [
395
+ Permission.ProjectOwner,
396
+ Permission.ProjectAdmin,
397
+ Permission.ProjectMember,
398
+ Permission.ReadWorkspaceNotificationLog,
399
+ ],
400
+ update: [],
401
+ }),
402
+ TableColumn({
403
+ manyToOneRelationColumn: "userId",
404
+ type: TableColumnType.Entity,
405
+ modelType: User,
406
+ title: "User",
407
+ description: "User who initiated this workspace notification (if any)",
408
+ }),
409
+ ManyToOne(() => {
410
+ return User;
411
+ }, {
412
+ eager: false,
413
+ nullable: true,
414
+ onDelete: "CASCADE",
415
+ orphanedRowAction: "nullify",
416
+ }),
417
+ JoinColumn({ name: "userId" }),
418
+ __metadata("design:type", User)
419
+ ], WorkspaceNotificationLog.prototype, "user", void 0);
420
+ __decorate([
421
+ ColumnAccessControl({
422
+ create: [],
423
+ read: [
424
+ Permission.ProjectOwner,
425
+ Permission.ProjectAdmin,
426
+ Permission.ProjectMember,
427
+ Permission.ReadWorkspaceNotificationLog,
428
+ ],
429
+ update: [],
430
+ }),
431
+ Index(),
432
+ TableColumn({
433
+ type: TableColumnType.ObjectID,
434
+ required: false,
435
+ canReadOnRelationQuery: true,
436
+ title: "User ID",
437
+ description: "ID of User who initiated this workspace notification (if any)",
438
+ }),
439
+ Column({
440
+ type: ColumnType.ObjectID,
441
+ nullable: true,
442
+ transformer: ObjectID.getDatabaseTransformer(),
443
+ }),
444
+ __metadata("design:type", ObjectID)
445
+ ], WorkspaceNotificationLog.prototype, "userId", void 0);
446
+ __decorate([
447
+ ColumnAccessControl({
448
+ create: [],
449
+ read: [
450
+ Permission.ProjectOwner,
451
+ Permission.ProjectAdmin,
452
+ Permission.ProjectMember,
453
+ Permission.ReadPushLog,
454
+ ],
455
+ update: [],
456
+ }),
457
+ TableColumn({
458
+ manyToOneRelationColumn: "alertId",
459
+ type: TableColumnType.Entity,
460
+ modelType: Alert,
461
+ title: "Alert",
462
+ description: "Alert associated with this message (if any)",
463
+ }),
464
+ ManyToOne(() => {
465
+ return Alert;
466
+ }, {
467
+ eager: false,
468
+ nullable: true,
469
+ onDelete: "CASCADE",
470
+ orphanedRowAction: "nullify",
471
+ }),
472
+ JoinColumn({ name: "alertId" }),
473
+ __metadata("design:type", Alert)
474
+ ], WorkspaceNotificationLog.prototype, "alert", void 0);
475
+ __decorate([
476
+ ColumnAccessControl({
477
+ create: [],
478
+ read: [
479
+ Permission.ProjectOwner,
480
+ Permission.ProjectAdmin,
481
+ Permission.ProjectMember,
482
+ Permission.ReadPushLog,
483
+ ],
484
+ update: [],
485
+ }),
486
+ Index(),
487
+ TableColumn({
488
+ type: TableColumnType.ObjectID,
489
+ required: false,
490
+ canReadOnRelationQuery: true,
491
+ title: "Alert ID",
492
+ description: "ID of Alert associated with this message (if any)",
493
+ }),
494
+ Column({
495
+ type: ColumnType.ObjectID,
496
+ nullable: true,
497
+ transformer: ObjectID.getDatabaseTransformer(),
498
+ }),
499
+ __metadata("design:type", ObjectID)
500
+ ], WorkspaceNotificationLog.prototype, "alertId", void 0);
501
+ __decorate([
502
+ ColumnAccessControl({
503
+ create: [],
504
+ read: [
505
+ Permission.ProjectOwner,
506
+ Permission.ProjectAdmin,
507
+ Permission.ProjectMember,
508
+ Permission.ReadPushLog,
509
+ ],
510
+ update: [],
511
+ }),
512
+ TableColumn({
513
+ manyToOneRelationColumn: "scheduledMaintenanceId",
514
+ type: TableColumnType.Entity,
515
+ modelType: ScheduledMaintenance,
516
+ title: "Scheduled Maintenance",
517
+ description: "Scheduled Maintenance associated with this message (if any)",
518
+ }),
519
+ ManyToOne(() => {
520
+ return ScheduledMaintenance;
521
+ }, {
522
+ eager: false,
523
+ nullable: true,
524
+ onDelete: "CASCADE",
525
+ orphanedRowAction: "nullify",
526
+ }),
527
+ JoinColumn({ name: "scheduledMaintenanceId" }),
528
+ __metadata("design:type", ScheduledMaintenance)
529
+ ], WorkspaceNotificationLog.prototype, "scheduledMaintenance", void 0);
530
+ __decorate([
531
+ ColumnAccessControl({
532
+ create: [],
533
+ read: [
534
+ Permission.ProjectOwner,
535
+ Permission.ProjectAdmin,
536
+ Permission.ProjectMember,
537
+ Permission.ReadPushLog,
538
+ ],
539
+ update: [],
540
+ }),
541
+ Index(),
542
+ TableColumn({
543
+ type: TableColumnType.ObjectID,
544
+ required: false,
545
+ canReadOnRelationQuery: true,
546
+ title: "Scheduled Maintenance ID",
547
+ description: "ID of Scheduled Maintenance associated with this message (if any)",
548
+ }),
549
+ Column({
550
+ type: ColumnType.ObjectID,
551
+ nullable: true,
552
+ transformer: ObjectID.getDatabaseTransformer(),
553
+ }),
554
+ __metadata("design:type", ObjectID)
555
+ ], WorkspaceNotificationLog.prototype, "scheduledMaintenanceId", void 0);
556
+ __decorate([
557
+ ColumnAccessControl({
558
+ create: [],
559
+ read: [
560
+ Permission.ProjectOwner,
561
+ Permission.ProjectAdmin,
562
+ Permission.ProjectMember,
563
+ Permission.ReadPushLog,
564
+ ],
565
+ update: [],
566
+ }),
567
+ TableColumn({
568
+ manyToOneRelationColumn: "statusPageId",
569
+ type: TableColumnType.Entity,
570
+ modelType: StatusPage,
571
+ title: "Status Page",
572
+ description: "Status Page associated with this message (if any)",
573
+ }),
574
+ ManyToOne(() => {
575
+ return StatusPage;
576
+ }, {
577
+ eager: false,
578
+ nullable: true,
579
+ onDelete: "CASCADE",
580
+ orphanedRowAction: "nullify",
581
+ }),
582
+ JoinColumn({ name: "statusPageId" }),
583
+ __metadata("design:type", StatusPage)
584
+ ], WorkspaceNotificationLog.prototype, "statusPage", void 0);
585
+ __decorate([
586
+ ColumnAccessControl({
587
+ create: [],
588
+ read: [
589
+ Permission.ProjectOwner,
590
+ Permission.ProjectAdmin,
591
+ Permission.ProjectMember,
592
+ Permission.ReadPushLog,
593
+ ],
594
+ update: [],
595
+ }),
596
+ Index(),
597
+ TableColumn({
598
+ type: TableColumnType.ObjectID,
599
+ required: false,
600
+ canReadOnRelationQuery: true,
601
+ title: "Status Page ID",
602
+ description: "ID of Status Page associated with this message (if any)",
603
+ }),
604
+ Column({
605
+ type: ColumnType.ObjectID,
606
+ nullable: true,
607
+ transformer: ObjectID.getDatabaseTransformer(),
608
+ }),
609
+ __metadata("design:type", ObjectID)
610
+ ], WorkspaceNotificationLog.prototype, "statusPageId", void 0);
611
+ __decorate([
612
+ ColumnAccessControl({
613
+ create: [],
614
+ read: [
615
+ Permission.ProjectOwner,
616
+ Permission.ProjectAdmin,
617
+ Permission.ProjectMember,
618
+ Permission.ReadPushLog,
619
+ ],
620
+ update: [],
621
+ }),
622
+ TableColumn({
623
+ manyToOneRelationColumn: "statusPageAnnouncementId",
624
+ type: TableColumnType.Entity,
625
+ modelType: StatusPageAnnouncement,
626
+ title: "Status Page Announcement",
627
+ description: "Status Page Announcement associated with this message (if any)",
628
+ }),
629
+ ManyToOne(() => {
630
+ return StatusPageAnnouncement;
631
+ }, {
632
+ eager: false,
633
+ nullable: true,
634
+ onDelete: "CASCADE",
635
+ orphanedRowAction: "nullify",
636
+ }),
637
+ JoinColumn({ name: "statusPageAnnouncementId" }),
638
+ __metadata("design:type", StatusPageAnnouncement)
639
+ ], WorkspaceNotificationLog.prototype, "statusPageAnnouncement", void 0);
640
+ __decorate([
641
+ ColumnAccessControl({
642
+ create: [],
643
+ read: [
644
+ Permission.ProjectOwner,
645
+ Permission.ProjectAdmin,
646
+ Permission.ProjectMember,
647
+ Permission.ReadPushLog,
648
+ ],
649
+ update: [],
650
+ }),
651
+ Index(),
652
+ TableColumn({
653
+ type: TableColumnType.ObjectID,
654
+ required: false,
655
+ canReadOnRelationQuery: true,
656
+ title: "Status Page Announcement ID",
657
+ description: "ID of Status Page Announcement associated with this message (if any)",
658
+ }),
659
+ Column({
660
+ type: ColumnType.ObjectID,
661
+ nullable: true,
662
+ transformer: ObjectID.getDatabaseTransformer(),
663
+ }),
664
+ __metadata("design:type", ObjectID)
665
+ ], WorkspaceNotificationLog.prototype, "statusPageAnnouncementId", void 0);
666
+ __decorate([
667
+ ColumnAccessControl({
668
+ create: [],
669
+ read: [
670
+ Permission.ProjectOwner,
671
+ Permission.ProjectAdmin,
672
+ Permission.ProjectMember,
673
+ Permission.ReadWorkspaceNotificationLog,
674
+ ],
675
+ update: [],
676
+ }),
677
+ TableColumn({
678
+ manyToOneRelationColumn: "onCallDutyPolicyId",
679
+ type: TableColumnType.Entity,
680
+ modelType: OnCallDutyPolicy,
681
+ title: "On-Call Duty Policy",
682
+ description: "On-Call Duty Policy associated with this message (if any)",
683
+ }),
684
+ ManyToOne(() => {
685
+ return OnCallDutyPolicy;
686
+ }, {
687
+ eager: false,
688
+ nullable: true,
689
+ onDelete: "CASCADE",
690
+ orphanedRowAction: "nullify",
691
+ }),
692
+ JoinColumn({ name: "onCallDutyPolicyId" }),
693
+ __metadata("design:type", OnCallDutyPolicy)
694
+ ], WorkspaceNotificationLog.prototype, "onCallDutyPolicy", void 0);
695
+ __decorate([
696
+ ColumnAccessControl({
697
+ create: [],
698
+ read: [
699
+ Permission.ProjectOwner,
700
+ Permission.ProjectAdmin,
701
+ Permission.ProjectMember,
702
+ Permission.ReadWorkspaceNotificationLog,
703
+ ],
704
+ update: [],
705
+ }),
706
+ Index(),
707
+ TableColumn({
708
+ type: TableColumnType.ObjectID,
709
+ required: false,
710
+ canReadOnRelationQuery: true,
711
+ title: "On-Call Duty Policy ID",
712
+ description: "ID of On-Call Duty Policy associated with this message (if any)",
713
+ }),
714
+ Column({
715
+ type: ColumnType.ObjectID,
716
+ nullable: true,
717
+ transformer: ObjectID.getDatabaseTransformer(),
718
+ }),
719
+ __metadata("design:type", ObjectID)
720
+ ], WorkspaceNotificationLog.prototype, "onCallDutyPolicyId", void 0);
721
+ __decorate([
722
+ ColumnAccessControl({
723
+ create: [],
724
+ read: [
725
+ Permission.ProjectOwner,
726
+ Permission.ProjectAdmin,
727
+ Permission.ProjectMember,
728
+ Permission.ReadWorkspaceNotificationLog,
729
+ ],
730
+ update: [],
731
+ }),
732
+ TableColumn({
733
+ manyToOneRelationColumn: "onCallDutyPolicyEscalationRuleId",
734
+ type: TableColumnType.Entity,
735
+ modelType: OnCallDutyPolicyEscalationRule,
736
+ title: "On-Call Duty Policy Escalation Rule",
737
+ description: "On-Call Duty Policy Escalation Rule associated with this message (if any)",
738
+ }),
739
+ ManyToOne(() => {
740
+ return OnCallDutyPolicyEscalationRule;
741
+ }, {
742
+ eager: false,
743
+ nullable: true,
744
+ onDelete: "CASCADE",
745
+ orphanedRowAction: "nullify",
746
+ }),
747
+ JoinColumn({ name: "onCallDutyPolicyEscalationRuleId" }),
748
+ __metadata("design:type", OnCallDutyPolicyEscalationRule)
749
+ ], WorkspaceNotificationLog.prototype, "onCallDutyPolicyEscalationRule", void 0);
750
+ __decorate([
751
+ ColumnAccessControl({
752
+ create: [],
753
+ read: [
754
+ Permission.ProjectOwner,
755
+ Permission.ProjectAdmin,
756
+ Permission.ProjectMember,
757
+ Permission.ReadWorkspaceNotificationLog,
758
+ ],
759
+ update: [],
760
+ }),
761
+ Index(),
762
+ TableColumn({
763
+ type: TableColumnType.ObjectID,
764
+ required: false,
765
+ canReadOnRelationQuery: true,
766
+ title: "On-Call Duty Policy Escalation Rule ID",
767
+ description: "ID of On-Call Duty Policy Escalation Rule associated with this message (if any)",
768
+ }),
769
+ Column({
770
+ type: ColumnType.ObjectID,
771
+ nullable: true,
772
+ transformer: ObjectID.getDatabaseTransformer(),
773
+ }),
774
+ __metadata("design:type", ObjectID)
775
+ ], WorkspaceNotificationLog.prototype, "onCallDutyPolicyEscalationRuleId", void 0);
776
+ __decorate([
777
+ ColumnAccessControl({
778
+ create: [],
779
+ read: [
780
+ Permission.ProjectOwner,
781
+ Permission.ProjectAdmin,
782
+ Permission.ProjectMember,
783
+ Permission.ReadWorkspaceNotificationLog,
784
+ ],
785
+ update: [],
786
+ }),
787
+ TableColumn({
788
+ manyToOneRelationColumn: "onCallDutyPolicyScheduleId",
789
+ type: TableColumnType.Entity,
790
+ modelType: OnCallDutyPolicySchedule,
791
+ title: "On-Call Duty Policy Schedule",
792
+ description: "On-Call Duty Policy Schedule associated with this message (if any)",
793
+ }),
794
+ ManyToOne(() => {
795
+ return OnCallDutyPolicySchedule;
796
+ }, {
797
+ eager: false,
798
+ nullable: true,
799
+ onDelete: "CASCADE",
800
+ orphanedRowAction: "nullify",
801
+ }),
802
+ JoinColumn({ name: "onCallDutyPolicyScheduleId" }),
803
+ __metadata("design:type", OnCallDutyPolicySchedule)
804
+ ], WorkspaceNotificationLog.prototype, "onCallDutyPolicySchedule", void 0);
805
+ __decorate([
806
+ ColumnAccessControl({
807
+ create: [],
808
+ read: [
809
+ Permission.ProjectOwner,
810
+ Permission.ProjectAdmin,
811
+ Permission.ProjectMember,
812
+ Permission.ReadWorkspaceNotificationLog,
813
+ ],
814
+ update: [],
815
+ }),
816
+ Index(),
817
+ TableColumn({
818
+ type: TableColumnType.ObjectID,
819
+ required: false,
820
+ canReadOnRelationQuery: true,
821
+ title: "On-Call Duty Policy Schedule ID",
822
+ description: "ID of On-Call Duty Policy Schedule associated with this message (if any)",
823
+ }),
824
+ Column({
825
+ type: ColumnType.ObjectID,
826
+ nullable: true,
827
+ transformer: ObjectID.getDatabaseTransformer(),
828
+ }),
829
+ __metadata("design:type", ObjectID)
830
+ ], WorkspaceNotificationLog.prototype, "onCallDutyPolicyScheduleId", void 0);
831
+ __decorate([
832
+ ColumnAccessControl({
833
+ create: [],
834
+ read: [
835
+ Permission.ProjectOwner,
836
+ Permission.ProjectAdmin,
837
+ Permission.ProjectMember,
838
+ Permission.ReadWorkspaceNotificationLog,
839
+ ],
840
+ update: [],
841
+ }),
842
+ TableColumn({
843
+ manyToOneRelationColumn: "teamId",
844
+ type: TableColumnType.Entity,
845
+ modelType: Team,
846
+ title: "Team",
847
+ description: "Team associated with this message (if any)",
848
+ }),
849
+ ManyToOne(() => {
850
+ return Team;
851
+ }, {
852
+ eager: false,
853
+ nullable: true,
854
+ onDelete: "CASCADE",
855
+ orphanedRowAction: "nullify",
856
+ }),
857
+ JoinColumn({ name: "teamId" }),
858
+ __metadata("design:type", Team)
859
+ ], WorkspaceNotificationLog.prototype, "team", void 0);
860
+ __decorate([
861
+ ColumnAccessControl({
862
+ create: [],
863
+ read: [
864
+ Permission.ProjectOwner,
865
+ Permission.ProjectAdmin,
866
+ Permission.ProjectMember,
867
+ Permission.ReadWorkspaceNotificationLog,
868
+ ],
869
+ update: [],
870
+ }),
871
+ Index(),
872
+ TableColumn({
873
+ type: TableColumnType.ObjectID,
874
+ required: false,
875
+ canReadOnRelationQuery: true,
876
+ title: "Team ID",
877
+ description: "ID of Team associated with this message (if any)",
878
+ }),
879
+ Column({
880
+ type: ColumnType.ObjectID,
881
+ nullable: true,
882
+ transformer: ObjectID.getDatabaseTransformer(),
883
+ }),
884
+ __metadata("design:type", ObjectID)
885
+ ], WorkspaceNotificationLog.prototype, "teamId", void 0);
886
+ __decorate([
887
+ ColumnAccessControl({
888
+ create: [],
889
+ read: [],
890
+ update: [],
891
+ }),
892
+ TableColumn({
893
+ manyToOneRelationColumn: "deletedByUserId",
894
+ type: TableColumnType.Entity,
895
+ title: "Deleted by User",
896
+ modelType: User,
897
+ description: "Relation to User who deleted this object (if this object was deleted by a User)",
898
+ }),
899
+ ManyToOne(() => {
900
+ return User;
901
+ }, {
902
+ cascade: false,
903
+ eager: false,
904
+ nullable: true,
905
+ onDelete: "SET NULL",
906
+ orphanedRowAction: "nullify",
907
+ }),
908
+ JoinColumn({ name: "deletedByUserId" }),
909
+ __metadata("design:type", User)
910
+ ], WorkspaceNotificationLog.prototype, "deletedByUser", void 0);
911
+ __decorate([
912
+ ColumnAccessControl({
913
+ create: [],
914
+ read: [],
915
+ update: [],
916
+ }),
917
+ TableColumn({
918
+ type: TableColumnType.ObjectID,
919
+ title: "Deleted by User ID",
920
+ description: "User ID who deleted this object (if this object was deleted by a User)",
921
+ }),
922
+ Column({
923
+ type: ColumnType.ObjectID,
924
+ nullable: true,
925
+ transformer: ObjectID.getDatabaseTransformer(),
926
+ }),
927
+ __metadata("design:type", ObjectID)
928
+ ], WorkspaceNotificationLog.prototype, "deletedByUserId", void 0);
929
+ WorkspaceNotificationLog = __decorate([
930
+ EnableDocumentation(),
931
+ TenantColumn("projectId"),
932
+ TableAccessControl({
933
+ create: [],
934
+ read: [
935
+ Permission.ProjectOwner,
936
+ Permission.ProjectAdmin,
937
+ Permission.ProjectMember,
938
+ Permission.ReadWorkspaceNotificationLog,
939
+ ],
940
+ delete: [],
941
+ update: [],
942
+ }),
943
+ CrudApiEndpoint(new Route("/workspace-notification-log")),
944
+ Entity({
945
+ name: "WorkspaceNotificationLog",
946
+ }),
947
+ EnableWorkflow({
948
+ create: true,
949
+ delete: false,
950
+ update: false,
951
+ }),
952
+ TableMetadata({
953
+ tableName: "WorkspaceNotificationLog",
954
+ singularName: "Workspace Notification Log",
955
+ pluralName: "Workspace Notification Logs",
956
+ icon: IconProp.Chat,
957
+ tableDescription: "Logs of all workspace activities including messages, channel creation, user invitations, and button interactions for Slack and Microsoft Teams.",
958
+ })
959
+ ], WorkspaceNotificationLog);
960
+ export default WorkspaceNotificationLog;
961
+ //# sourceMappingURL=WorkspaceNotificationLog.js.map