@m5kdev/commons 0.34.0 → 0.36.0

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 (35) hide show
  1. package/dist/src/modules/auth/auth.roles.cjs +8 -6
  2. package/dist/src/modules/auth/auth.roles.cjs.map +1 -1
  3. package/dist/src/modules/auth/auth.roles.mjs +8 -6
  4. package/dist/src/modules/auth/auth.roles.mjs.map +1 -1
  5. package/dist/src/modules/auth/auth.schema.cjs +0 -3
  6. package/dist/src/modules/auth/auth.schema.cjs.map +1 -1
  7. package/dist/src/modules/auth/auth.schema.d.cts +0 -3
  8. package/dist/src/modules/auth/auth.schema.d.mts +0 -3
  9. package/dist/src/modules/auth/auth.schema.mjs +0 -3
  10. package/dist/src/modules/auth/auth.schema.mjs.map +1 -1
  11. package/dist/src/modules/base/server-event.schema.cjs +22 -0
  12. package/dist/src/modules/base/server-event.schema.cjs.map +1 -0
  13. package/dist/src/modules/base/server-event.schema.d.cts +21 -0
  14. package/dist/src/modules/base/server-event.schema.d.mts +21 -0
  15. package/dist/src/modules/base/server-event.schema.mjs +19 -0
  16. package/dist/src/modules/base/server-event.schema.mjs.map +1 -0
  17. package/dist/src/modules/notification/notification.constants.cjs +19 -2
  18. package/dist/src/modules/notification/notification.constants.cjs.map +1 -1
  19. package/dist/src/modules/notification/notification.constants.d.cts +20 -2
  20. package/dist/src/modules/notification/notification.constants.d.mts +20 -2
  21. package/dist/src/modules/notification/notification.constants.mjs +13 -2
  22. package/dist/src/modules/notification/notification.constants.mjs.map +1 -1
  23. package/dist/src/modules/notification/notification.schema.cjs +49 -6
  24. package/dist/src/modules/notification/notification.schema.cjs.map +1 -1
  25. package/dist/src/modules/notification/notification.schema.d.cts +123 -13
  26. package/dist/src/modules/notification/notification.schema.d.mts +123 -13
  27. package/dist/src/modules/notification/notification.schema.mjs +42 -8
  28. package/dist/src/modules/notification/notification.schema.mjs.map +1 -1
  29. package/dist/src/modules/schemas/query.schema.d.cts +3 -3
  30. package/dist/src/modules/schemas/query.schema.d.mts +3 -3
  31. package/dist/src/modules/tag/tag.schema.d.cts +1 -1
  32. package/dist/src/modules/tag/tag.schema.d.mts +1 -1
  33. package/dist/src/modules/workflow/workflow.schema.d.cts +4 -4
  34. package/dist/src/modules/workflow/workflow.schema.d.mts +4 -4
  35. package/package.json +2 -2
@@ -12,9 +12,9 @@ declare const notificationProviderSchema: z.ZodEnum<{
12
12
  fcm: "fcm";
13
13
  }>;
14
14
  declare const notificationSendStatusSchema: z.ZodEnum<{
15
+ failed: "failed";
15
16
  pending: "pending";
16
17
  sent: "sent";
17
- failed: "failed";
18
18
  }>;
19
19
  /** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */
20
20
  declare const pushSubscriptionJsonSchema: z.ZodObject<{
@@ -86,23 +86,36 @@ declare const notificationListDevicesOutputSchema: z.ZodArray<z.ZodObject<{
86
86
  declare const notificationVapidPublicKeyOutputSchema: z.ZodObject<{
87
87
  publicKey: z.ZodString;
88
88
  }, z.core.$strip>;
89
+ declare const notificationChannelSchema: z.ZodEnum<{
90
+ email: "email";
91
+ "in-app": "in-app";
92
+ "web-push": "web-push";
93
+ "mobile-push": "mobile-push";
94
+ }>;
89
95
  declare const notificationSendLogSelectSchema: z.ZodObject<{
90
96
  id: z.ZodString;
91
97
  batchId: z.ZodString;
98
+ notificationId: z.ZodString;
92
99
  userId: z.ZodString;
93
- deviceId: z.ZodString;
94
- provider: z.ZodEnum<{
100
+ deviceId: z.ZodNullable<z.ZodString>;
101
+ channel: z.ZodEnum<{
102
+ email: "email";
103
+ "in-app": "in-app";
104
+ "web-push": "web-push";
105
+ "mobile-push": "mobile-push";
106
+ }>;
107
+ provider: z.ZodNullable<z.ZodEnum<{
95
108
  web: "web";
96
109
  apn: "apn";
97
110
  fcm: "fcm";
98
- }>;
111
+ }>>;
99
112
  title: z.ZodString;
100
113
  body: z.ZodString;
101
114
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
102
115
  status: z.ZodEnum<{
116
+ failed: "failed";
103
117
  pending: "pending";
104
118
  sent: "sent";
105
- failed: "failed";
106
119
  }>;
107
120
  error: z.ZodNullable<z.ZodString>;
108
121
  jobId: z.ZodNullable<z.ZodString>;
@@ -116,36 +129,133 @@ declare const notificationListSendLogsInputSchema: z.ZodObject<{
116
129
  declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
117
130
  id: z.ZodString;
118
131
  batchId: z.ZodString;
132
+ notificationId: z.ZodString;
119
133
  userId: z.ZodString;
120
- deviceId: z.ZodString;
121
- provider: z.ZodEnum<{
134
+ deviceId: z.ZodNullable<z.ZodString>;
135
+ channel: z.ZodEnum<{
136
+ email: "email";
137
+ "in-app": "in-app";
138
+ "web-push": "web-push";
139
+ "mobile-push": "mobile-push";
140
+ }>;
141
+ provider: z.ZodNullable<z.ZodEnum<{
122
142
  web: "web";
123
143
  apn: "apn";
124
144
  fcm: "fcm";
125
- }>;
145
+ }>>;
126
146
  title: z.ZodString;
127
147
  body: z.ZodString;
128
148
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
129
149
  status: z.ZodEnum<{
150
+ failed: "failed";
130
151
  pending: "pending";
131
152
  sent: "sent";
132
- failed: "failed";
133
153
  }>;
134
154
  error: z.ZodNullable<z.ZodString>;
135
155
  jobId: z.ZodNullable<z.ZodString>;
136
156
  createdAt: z.ZodDate;
137
157
  updatedAt: z.ZodDate;
138
158
  }, z.core.$strip>>;
159
+ declare const notificationInstanceSelectSchema: z.ZodObject<{
160
+ id: z.ZodString;
161
+ memberId: z.ZodString;
162
+ userId: z.ZodString;
163
+ kind: z.ZodString;
164
+ title: z.ZodString;
165
+ body: z.ZodString;
166
+ data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
167
+ visibleInInbox: z.ZodBoolean;
168
+ webPushedAt: z.ZodNullable<z.ZodDate>;
169
+ mobilePushedAt: z.ZodNullable<z.ZodDate>;
170
+ emailedAt: z.ZodNullable<z.ZodDate>;
171
+ readAt: z.ZodNullable<z.ZodDate>;
172
+ createdAt: z.ZodDate;
173
+ updatedAt: z.ZodDate;
174
+ }, z.core.$strip>;
175
+ declare const notificationListInboxOutputSchema: z.ZodArray<z.ZodObject<{
176
+ id: z.ZodString;
177
+ memberId: z.ZodString;
178
+ userId: z.ZodString;
179
+ kind: z.ZodString;
180
+ title: z.ZodString;
181
+ body: z.ZodString;
182
+ data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
183
+ visibleInInbox: z.ZodBoolean;
184
+ webPushedAt: z.ZodNullable<z.ZodDate>;
185
+ mobilePushedAt: z.ZodNullable<z.ZodDate>;
186
+ emailedAt: z.ZodNullable<z.ZodDate>;
187
+ readAt: z.ZodNullable<z.ZodDate>;
188
+ createdAt: z.ZodDate;
189
+ updatedAt: z.ZodDate;
190
+ }, z.core.$strip>>;
191
+ declare const notificationMarkReadInputSchema: z.ZodObject<{
192
+ id: z.ZodString;
193
+ }, z.core.$strip>;
139
194
  declare const notificationSendTestInputSchema: z.ZodObject<{
140
- userId: z.ZodOptional<z.ZodString>;
195
+ memberId: z.ZodString;
196
+ kind: z.ZodString;
141
197
  title: z.ZodString;
142
198
  body: z.ZodString;
143
199
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
144
200
  }, z.core.$strip>;
145
201
  declare const notificationSendTestOutputSchema: z.ZodObject<{
146
- batchId: z.ZodString;
147
- jobId: z.ZodString;
202
+ id: z.ZodString;
203
+ }, z.core.$strip>;
204
+ declare const notificationKindPreferenceChannelSchema: z.ZodObject<{
205
+ channel: z.ZodEnum<{
206
+ email: "email";
207
+ "in-app": "in-app";
208
+ "web-push": "web-push";
209
+ "mobile-push": "mobile-push";
210
+ }>;
211
+ enabled: z.ZodBoolean;
212
+ }, z.core.$strip>;
213
+ declare const notificationKindPreferenceSchema: z.ZodObject<{
214
+ kind: z.ZodString;
215
+ channels: z.ZodArray<z.ZodObject<{
216
+ channel: z.ZodEnum<{
217
+ email: "email";
218
+ "in-app": "in-app";
219
+ "web-push": "web-push";
220
+ "mobile-push": "mobile-push";
221
+ }>;
222
+ enabled: z.ZodBoolean;
223
+ }, z.core.$strip>>;
224
+ }, z.core.$strip>;
225
+ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
226
+ kind: z.ZodString;
227
+ channels: z.ZodArray<z.ZodObject<{
228
+ channel: z.ZodEnum<{
229
+ email: "email";
230
+ "in-app": "in-app";
231
+ "web-push": "web-push";
232
+ "mobile-push": "mobile-push";
233
+ }>;
234
+ enabled: z.ZodBoolean;
235
+ }, z.core.$strip>>;
236
+ }, z.core.$strip>>;
237
+ declare const notificationSetPreferenceInputSchema: z.ZodObject<{
238
+ kind: z.ZodString;
239
+ channel: z.ZodEnum<{
240
+ email: "email";
241
+ "in-app": "in-app";
242
+ "web-push": "web-push";
243
+ "mobile-push": "mobile-push";
244
+ }>;
245
+ enabled: z.ZodBoolean;
246
+ }, z.core.$strip>;
247
+ declare const notificationSetPreferenceOutputSchema: z.ZodObject<{
248
+ kind: z.ZodString;
249
+ channels: z.ZodArray<z.ZodObject<{
250
+ channel: z.ZodEnum<{
251
+ email: "email";
252
+ "in-app": "in-app";
253
+ "web-push": "web-push";
254
+ "mobile-push": "mobile-push";
255
+ }>;
256
+ enabled: z.ZodBoolean;
257
+ }, z.core.$strip>>;
148
258
  }, z.core.$strip>;
149
259
  //#endregion
150
- export { NotificationRegisterDeviceInput, notificationDeviceSelectSchema, notificationListDevicesOutputSchema, notificationListSendLogsInputSchema, notificationListSendLogsOutputSchema, notificationPlatformSchema, notificationProviderSchema, notificationRegisterDeviceInputSchema, notificationRegisterDeviceOutputSchema, notificationSendLogSelectSchema, notificationSendStatusSchema, notificationSendTestInputSchema, notificationSendTestOutputSchema, notificationUnregisterDeviceInputSchema, notificationUnregisterDeviceOutputSchema, notificationVapidPublicKeyOutputSchema, pushSubscriptionJsonSchema };
260
+ export { NotificationRegisterDeviceInput, notificationChannelSchema, notificationDeviceSelectSchema, notificationInstanceSelectSchema, notificationKindPreferenceChannelSchema, notificationKindPreferenceSchema, notificationListDevicesOutputSchema, notificationListInboxOutputSchema, notificationListPreferencesOutputSchema, notificationListSendLogsInputSchema, notificationListSendLogsOutputSchema, notificationMarkReadInputSchema, notificationPlatformSchema, notificationProviderSchema, notificationRegisterDeviceInputSchema, notificationRegisterDeviceOutputSchema, notificationSendLogSelectSchema, notificationSendStatusSchema, notificationSendTestInputSchema, notificationSendTestOutputSchema, notificationSetPreferenceInputSchema, notificationSetPreferenceOutputSchema, notificationUnregisterDeviceInputSchema, notificationUnregisterDeviceOutputSchema, notificationVapidPublicKeyOutputSchema, pushSubscriptionJsonSchema };
151
261
  //# sourceMappingURL=notification.schema.d.cts.map
@@ -12,9 +12,9 @@ declare const notificationProviderSchema: z.ZodEnum<{
12
12
  fcm: "fcm";
13
13
  }>;
14
14
  declare const notificationSendStatusSchema: z.ZodEnum<{
15
+ failed: "failed";
15
16
  pending: "pending";
16
17
  sent: "sent";
17
- failed: "failed";
18
18
  }>;
19
19
  /** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */
20
20
  declare const pushSubscriptionJsonSchema: z.ZodObject<{
@@ -86,23 +86,36 @@ declare const notificationListDevicesOutputSchema: z.ZodArray<z.ZodObject<{
86
86
  declare const notificationVapidPublicKeyOutputSchema: z.ZodObject<{
87
87
  publicKey: z.ZodString;
88
88
  }, z.core.$strip>;
89
+ declare const notificationChannelSchema: z.ZodEnum<{
90
+ email: "email";
91
+ "in-app": "in-app";
92
+ "web-push": "web-push";
93
+ "mobile-push": "mobile-push";
94
+ }>;
89
95
  declare const notificationSendLogSelectSchema: z.ZodObject<{
90
96
  id: z.ZodString;
91
97
  batchId: z.ZodString;
98
+ notificationId: z.ZodString;
92
99
  userId: z.ZodString;
93
- deviceId: z.ZodString;
94
- provider: z.ZodEnum<{
100
+ deviceId: z.ZodNullable<z.ZodString>;
101
+ channel: z.ZodEnum<{
102
+ email: "email";
103
+ "in-app": "in-app";
104
+ "web-push": "web-push";
105
+ "mobile-push": "mobile-push";
106
+ }>;
107
+ provider: z.ZodNullable<z.ZodEnum<{
95
108
  web: "web";
96
109
  apn: "apn";
97
110
  fcm: "fcm";
98
- }>;
111
+ }>>;
99
112
  title: z.ZodString;
100
113
  body: z.ZodString;
101
114
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
102
115
  status: z.ZodEnum<{
116
+ failed: "failed";
103
117
  pending: "pending";
104
118
  sent: "sent";
105
- failed: "failed";
106
119
  }>;
107
120
  error: z.ZodNullable<z.ZodString>;
108
121
  jobId: z.ZodNullable<z.ZodString>;
@@ -116,36 +129,133 @@ declare const notificationListSendLogsInputSchema: z.ZodObject<{
116
129
  declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
117
130
  id: z.ZodString;
118
131
  batchId: z.ZodString;
132
+ notificationId: z.ZodString;
119
133
  userId: z.ZodString;
120
- deviceId: z.ZodString;
121
- provider: z.ZodEnum<{
134
+ deviceId: z.ZodNullable<z.ZodString>;
135
+ channel: z.ZodEnum<{
136
+ email: "email";
137
+ "in-app": "in-app";
138
+ "web-push": "web-push";
139
+ "mobile-push": "mobile-push";
140
+ }>;
141
+ provider: z.ZodNullable<z.ZodEnum<{
122
142
  web: "web";
123
143
  apn: "apn";
124
144
  fcm: "fcm";
125
- }>;
145
+ }>>;
126
146
  title: z.ZodString;
127
147
  body: z.ZodString;
128
148
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
129
149
  status: z.ZodEnum<{
150
+ failed: "failed";
130
151
  pending: "pending";
131
152
  sent: "sent";
132
- failed: "failed";
133
153
  }>;
134
154
  error: z.ZodNullable<z.ZodString>;
135
155
  jobId: z.ZodNullable<z.ZodString>;
136
156
  createdAt: z.ZodDate;
137
157
  updatedAt: z.ZodDate;
138
158
  }, z.core.$strip>>;
159
+ declare const notificationInstanceSelectSchema: z.ZodObject<{
160
+ id: z.ZodString;
161
+ memberId: z.ZodString;
162
+ userId: z.ZodString;
163
+ kind: z.ZodString;
164
+ title: z.ZodString;
165
+ body: z.ZodString;
166
+ data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
167
+ visibleInInbox: z.ZodBoolean;
168
+ webPushedAt: z.ZodNullable<z.ZodDate>;
169
+ mobilePushedAt: z.ZodNullable<z.ZodDate>;
170
+ emailedAt: z.ZodNullable<z.ZodDate>;
171
+ readAt: z.ZodNullable<z.ZodDate>;
172
+ createdAt: z.ZodDate;
173
+ updatedAt: z.ZodDate;
174
+ }, z.core.$strip>;
175
+ declare const notificationListInboxOutputSchema: z.ZodArray<z.ZodObject<{
176
+ id: z.ZodString;
177
+ memberId: z.ZodString;
178
+ userId: z.ZodString;
179
+ kind: z.ZodString;
180
+ title: z.ZodString;
181
+ body: z.ZodString;
182
+ data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
183
+ visibleInInbox: z.ZodBoolean;
184
+ webPushedAt: z.ZodNullable<z.ZodDate>;
185
+ mobilePushedAt: z.ZodNullable<z.ZodDate>;
186
+ emailedAt: z.ZodNullable<z.ZodDate>;
187
+ readAt: z.ZodNullable<z.ZodDate>;
188
+ createdAt: z.ZodDate;
189
+ updatedAt: z.ZodDate;
190
+ }, z.core.$strip>>;
191
+ declare const notificationMarkReadInputSchema: z.ZodObject<{
192
+ id: z.ZodString;
193
+ }, z.core.$strip>;
139
194
  declare const notificationSendTestInputSchema: z.ZodObject<{
140
- userId: z.ZodOptional<z.ZodString>;
195
+ memberId: z.ZodString;
196
+ kind: z.ZodString;
141
197
  title: z.ZodString;
142
198
  body: z.ZodString;
143
199
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
144
200
  }, z.core.$strip>;
145
201
  declare const notificationSendTestOutputSchema: z.ZodObject<{
146
- batchId: z.ZodString;
147
- jobId: z.ZodString;
202
+ id: z.ZodString;
203
+ }, z.core.$strip>;
204
+ declare const notificationKindPreferenceChannelSchema: z.ZodObject<{
205
+ channel: z.ZodEnum<{
206
+ email: "email";
207
+ "in-app": "in-app";
208
+ "web-push": "web-push";
209
+ "mobile-push": "mobile-push";
210
+ }>;
211
+ enabled: z.ZodBoolean;
212
+ }, z.core.$strip>;
213
+ declare const notificationKindPreferenceSchema: z.ZodObject<{
214
+ kind: z.ZodString;
215
+ channels: z.ZodArray<z.ZodObject<{
216
+ channel: z.ZodEnum<{
217
+ email: "email";
218
+ "in-app": "in-app";
219
+ "web-push": "web-push";
220
+ "mobile-push": "mobile-push";
221
+ }>;
222
+ enabled: z.ZodBoolean;
223
+ }, z.core.$strip>>;
224
+ }, z.core.$strip>;
225
+ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
226
+ kind: z.ZodString;
227
+ channels: z.ZodArray<z.ZodObject<{
228
+ channel: z.ZodEnum<{
229
+ email: "email";
230
+ "in-app": "in-app";
231
+ "web-push": "web-push";
232
+ "mobile-push": "mobile-push";
233
+ }>;
234
+ enabled: z.ZodBoolean;
235
+ }, z.core.$strip>>;
236
+ }, z.core.$strip>>;
237
+ declare const notificationSetPreferenceInputSchema: z.ZodObject<{
238
+ kind: z.ZodString;
239
+ channel: z.ZodEnum<{
240
+ email: "email";
241
+ "in-app": "in-app";
242
+ "web-push": "web-push";
243
+ "mobile-push": "mobile-push";
244
+ }>;
245
+ enabled: z.ZodBoolean;
246
+ }, z.core.$strip>;
247
+ declare const notificationSetPreferenceOutputSchema: z.ZodObject<{
248
+ kind: z.ZodString;
249
+ channels: z.ZodArray<z.ZodObject<{
250
+ channel: z.ZodEnum<{
251
+ email: "email";
252
+ "in-app": "in-app";
253
+ "web-push": "web-push";
254
+ "mobile-push": "mobile-push";
255
+ }>;
256
+ enabled: z.ZodBoolean;
257
+ }, z.core.$strip>>;
148
258
  }, z.core.$strip>;
149
259
  //#endregion
150
- export { NotificationRegisterDeviceInput, notificationDeviceSelectSchema, notificationListDevicesOutputSchema, notificationListSendLogsInputSchema, notificationListSendLogsOutputSchema, notificationPlatformSchema, notificationProviderSchema, notificationRegisterDeviceInputSchema, notificationRegisterDeviceOutputSchema, notificationSendLogSelectSchema, notificationSendStatusSchema, notificationSendTestInputSchema, notificationSendTestOutputSchema, notificationUnregisterDeviceInputSchema, notificationUnregisterDeviceOutputSchema, notificationVapidPublicKeyOutputSchema, pushSubscriptionJsonSchema };
260
+ export { NotificationRegisterDeviceInput, notificationChannelSchema, notificationDeviceSelectSchema, notificationInstanceSelectSchema, notificationKindPreferenceChannelSchema, notificationKindPreferenceSchema, notificationListDevicesOutputSchema, notificationListInboxOutputSchema, notificationListPreferencesOutputSchema, notificationListSendLogsInputSchema, notificationListSendLogsOutputSchema, notificationMarkReadInputSchema, notificationPlatformSchema, notificationProviderSchema, notificationRegisterDeviceInputSchema, notificationRegisterDeviceOutputSchema, notificationSendLogSelectSchema, notificationSendStatusSchema, notificationSendTestInputSchema, notificationSendTestOutputSchema, notificationSetPreferenceInputSchema, notificationSetPreferenceOutputSchema, notificationUnregisterDeviceInputSchema, notificationUnregisterDeviceOutputSchema, notificationVapidPublicKeyOutputSchema, pushSubscriptionJsonSchema };
151
261
  //# sourceMappingURL=notification.schema.d.mts.map
@@ -1,4 +1,4 @@
1
- import { NOTIFICATION_PLATFORMS, NOTIFICATION_PROVIDERS, NOTIFICATION_SEND_STATUSES } from "./notification.constants.mjs";
1
+ import { NOTIFICATION_CHANNELS, NOTIFICATION_PLATFORMS, NOTIFICATION_PROVIDERS, NOTIFICATION_SEND_STATUSES } from "./notification.constants.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/modules/notification/notification.schema.ts
4
4
  const notificationPlatformSchema = z.enum(NOTIFICATION_PLATFORMS);
@@ -45,12 +45,15 @@ const notificationDeviceSelectSchema = z.object({
45
45
  });
46
46
  const notificationListDevicesOutputSchema = z.array(notificationDeviceSelectSchema);
47
47
  const notificationVapidPublicKeyOutputSchema = z.object({ publicKey: z.string() });
48
+ const notificationChannelSchema = z.enum(NOTIFICATION_CHANNELS);
48
49
  const notificationSendLogSelectSchema = z.object({
49
50
  id: z.string(),
50
51
  batchId: z.string(),
52
+ notificationId: z.string(),
51
53
  userId: z.string(),
52
- deviceId: z.string(),
53
- provider: notificationProviderSchema,
54
+ deviceId: z.string().nullable(),
55
+ channel: notificationChannelSchema,
56
+ provider: notificationProviderSchema.nullable(),
54
57
  title: z.string(),
55
58
  body: z.string(),
56
59
  data: z.record(z.string(), z.unknown()).nullable(),
@@ -65,17 +68,48 @@ const notificationListSendLogsInputSchema = z.object({
65
68
  limit: z.number().int().min(1).max(100).optional()
66
69
  });
67
70
  const notificationListSendLogsOutputSchema = z.array(notificationSendLogSelectSchema);
71
+ const notificationInstanceSelectSchema = z.object({
72
+ id: z.string(),
73
+ memberId: z.string(),
74
+ userId: z.string(),
75
+ kind: z.string(),
76
+ title: z.string(),
77
+ body: z.string(),
78
+ data: z.record(z.string(), z.unknown()).nullable(),
79
+ visibleInInbox: z.boolean(),
80
+ webPushedAt: z.date().nullable(),
81
+ mobilePushedAt: z.date().nullable(),
82
+ emailedAt: z.date().nullable(),
83
+ readAt: z.date().nullable(),
84
+ createdAt: z.date(),
85
+ updatedAt: z.date()
86
+ });
87
+ const notificationListInboxOutputSchema = z.array(notificationInstanceSelectSchema);
88
+ const notificationMarkReadInputSchema = z.object({ id: z.string() });
68
89
  const notificationSendTestInputSchema = z.object({
69
- userId: z.string().optional(),
90
+ memberId: z.string().min(1),
91
+ kind: z.string().min(1),
70
92
  title: z.string().min(1).max(200),
71
93
  body: z.string().min(1).max(2e3),
72
94
  data: z.record(z.string(), z.unknown()).optional()
73
95
  });
74
- const notificationSendTestOutputSchema = z.object({
75
- batchId: z.string(),
76
- jobId: z.string()
96
+ const notificationSendTestOutputSchema = z.object({ id: z.string() });
97
+ const notificationKindPreferenceChannelSchema = z.object({
98
+ channel: notificationChannelSchema,
99
+ enabled: z.boolean()
100
+ });
101
+ const notificationKindPreferenceSchema = z.object({
102
+ kind: z.string(),
103
+ channels: z.array(notificationKindPreferenceChannelSchema)
104
+ });
105
+ const notificationListPreferencesOutputSchema = z.array(notificationKindPreferenceSchema);
106
+ const notificationSetPreferenceInputSchema = z.object({
107
+ kind: z.string().min(1),
108
+ channel: notificationChannelSchema,
109
+ enabled: z.boolean()
77
110
  });
111
+ const notificationSetPreferenceOutputSchema = notificationKindPreferenceSchema;
78
112
  //#endregion
79
- export { notificationDeviceSelectSchema, notificationListDevicesOutputSchema, notificationListSendLogsInputSchema, notificationListSendLogsOutputSchema, notificationPlatformSchema, notificationProviderSchema, notificationRegisterDeviceInputSchema, notificationRegisterDeviceOutputSchema, notificationSendLogSelectSchema, notificationSendStatusSchema, notificationSendTestInputSchema, notificationSendTestOutputSchema, notificationUnregisterDeviceInputSchema, notificationUnregisterDeviceOutputSchema, notificationVapidPublicKeyOutputSchema, pushSubscriptionJsonSchema };
113
+ export { notificationChannelSchema, notificationDeviceSelectSchema, notificationInstanceSelectSchema, notificationKindPreferenceChannelSchema, notificationKindPreferenceSchema, notificationListDevicesOutputSchema, notificationListInboxOutputSchema, notificationListPreferencesOutputSchema, notificationListSendLogsInputSchema, notificationListSendLogsOutputSchema, notificationMarkReadInputSchema, notificationPlatformSchema, notificationProviderSchema, notificationRegisterDeviceInputSchema, notificationRegisterDeviceOutputSchema, notificationSendLogSelectSchema, notificationSendStatusSchema, notificationSendTestInputSchema, notificationSendTestOutputSchema, notificationSetPreferenceInputSchema, notificationSetPreferenceOutputSchema, notificationUnregisterDeviceInputSchema, notificationUnregisterDeviceOutputSchema, notificationVapidPublicKeyOutputSchema, pushSubscriptionJsonSchema };
80
114
 
81
115
  //# sourceMappingURL=notification.schema.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification.schema.mjs","names":[],"sources":["../../../../src/modules/notification/notification.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport {\r\n NOTIFICATION_PLATFORMS,\r\n NOTIFICATION_PROVIDERS,\r\n NOTIFICATION_SEND_STATUSES,\r\n} from \"./notification.constants\";\r\n\r\nexport const notificationPlatformSchema = z.enum(NOTIFICATION_PLATFORMS);\r\nexport const notificationProviderSchema = z.enum(NOTIFICATION_PROVIDERS);\r\nexport const notificationSendStatusSchema = z.enum(NOTIFICATION_SEND_STATUSES);\r\n\r\n/** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */\r\nexport const pushSubscriptionJsonSchema = z.object({\r\n endpoint: z.string().url(),\r\n expirationTime: z.number().nullable().optional(),\r\n keys: z.object({\r\n p256dh: z.string(),\r\n auth: z.string(),\r\n }),\r\n});\r\n\r\nexport const notificationRegisterDeviceInputSchema = z.discriminatedUnion(\"platform\", [\r\n z.object({\r\n platform: z.literal(\"web\"),\r\n subscription: pushSubscriptionJsonSchema,\r\n label: z.string().max(120).optional(),\r\n }),\r\n z.object({\r\n platform: z.literal(\"ios\"),\r\n token: z.string().min(1).max(4096),\r\n label: z.string().max(120).optional(),\r\n }),\r\n z.object({\r\n platform: z.literal(\"android\"),\r\n token: z.string().min(1).max(4096),\r\n label: z.string().max(120).optional(),\r\n }),\r\n]);\r\n\r\nexport type NotificationRegisterDeviceInput = z.infer<typeof notificationRegisterDeviceInputSchema>;\r\n\r\nexport const notificationRegisterDeviceOutputSchema = z.object({\r\n deviceId: z.string(),\r\n});\r\n\r\nexport const notificationUnregisterDeviceInputSchema = z.object({\r\n deviceId: z.string(),\r\n});\r\n\r\nexport const notificationUnregisterDeviceOutputSchema = z.object({\r\n ok: z.literal(true),\r\n});\r\n\r\nexport const notificationDeviceSelectSchema = z.object({\r\n id: z.string(),\r\n userId: z.string(),\r\n platform: notificationPlatformSchema,\r\n endpoint: z.string().nullable(),\r\n label: z.string().nullable(),\r\n enabled: z.boolean(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n});\r\n\r\nexport const notificationListDevicesOutputSchema = z.array(notificationDeviceSelectSchema);\r\n\r\nexport const notificationVapidPublicKeyOutputSchema = z.object({\r\n publicKey: z.string(),\r\n});\r\n\r\nexport const notificationSendLogSelectSchema = z.object({\r\n id: z.string(),\r\n batchId: z.string(),\r\n userId: z.string(),\r\n deviceId: z.string(),\r\n provider: notificationProviderSchema,\r\n title: z.string(),\r\n body: z.string(),\r\n data: z.record(z.string(), z.unknown()).nullable(),\r\n status: notificationSendStatusSchema,\r\n error: z.string().nullable(),\r\n jobId: z.string().nullable(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n});\r\n\r\nexport const notificationListSendLogsInputSchema = z.object({\r\n batchId: z.string().optional(),\r\n limit: z.number().int().min(1).max(100).optional(),\r\n});\r\n\r\nexport const notificationListSendLogsOutputSchema = z.array(notificationSendLogSelectSchema);\r\n\r\nexport const notificationSendTestInputSchema = z.object({\r\n userId: z.string().optional(),\r\n title: z.string().min(1).max(200),\r\n body: z.string().min(1).max(2000),\r\n data: z.record(z.string(), z.unknown()).optional(),\r\n});\r\n\r\nexport const notificationSendTestOutputSchema = z.object({\r\n batchId: z.string(),\r\n jobId: z.string(),\r\n});\r\n"],"mappings":";;;AAOA,MAAa,6BAA6B,EAAE,KAAK,uBAAuB;AACxE,MAAa,6BAA6B,EAAE,KAAK,uBAAuB;AACxE,MAAa,+BAA+B,EAAE,KAAK,2BAA2B;;AAG9E,MAAa,6BAA6B,EAAE,OAAO;CACjD,UAAU,EAAE,QAAQ,CAAC,KAAK;CAC1B,gBAAgB,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU;CAChD,MAAM,EAAE,OAAO;EACb,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,QAAQ;EACjB,CAAC;CACH,CAAC;AAEF,MAAa,wCAAwC,EAAE,mBAAmB,YAAY;CACpF,EAAE,OAAO;EACP,UAAU,EAAE,QAAQ,MAAM;EAC1B,cAAc;EACd,OAAO,EAAE,QAAQ,CAAC,IAAI,IAAI,CAAC,UAAU;EACtC,CAAC;CACF,EAAE,OAAO;EACP,UAAU,EAAE,QAAQ,MAAM;EAC1B,OAAO,EAAE,QAAQ,CAAC,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5B,WAAW,EAAE,MAAM;CACnB,WAAW,EAAE,MAAM;CACpB,CAAC;AAEF,MAAa,sCAAsC,EAAE,OAAO;CAC1D,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,IAAI,CAAC,UAAU;CACnD,CAAC;AAEF,MAAa,uCAAuC,EAAE,MAAM,gCAAgC;AAE5F,MAAa,kCAAkC,EAAE,OAAO;CACtD,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,IAAI;CACjC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,IAAK;CACjC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,UAAU;CACnD,CAAC;AAEF,MAAa,mCAAmC,EAAE,OAAO;CACvD,SAAS,EAAE,QAAQ;CACnB,OAAO,EAAE,QAAQ;CAClB,CAAC"}
1
+ {"version":3,"file":"notification.schema.mjs","names":[],"sources":["../../../../src/modules/notification/notification.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport {\r\n NOTIFICATION_CHANNELS,\r\n NOTIFICATION_PLATFORMS,\r\n NOTIFICATION_PROVIDERS,\r\n NOTIFICATION_SEND_STATUSES,\r\n} from \"./notification.constants\";\r\n\r\nexport const notificationPlatformSchema = z.enum(NOTIFICATION_PLATFORMS);\r\nexport const notificationProviderSchema = z.enum(NOTIFICATION_PROVIDERS);\r\nexport const notificationSendStatusSchema = z.enum(NOTIFICATION_SEND_STATUSES);\r\n\r\n/** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */\r\nexport const pushSubscriptionJsonSchema = z.object({\r\n endpoint: z.string().url(),\r\n expirationTime: z.number().nullable().optional(),\r\n keys: z.object({\r\n p256dh: z.string(),\r\n auth: z.string(),\r\n }),\r\n});\r\n\r\nexport const notificationRegisterDeviceInputSchema = z.discriminatedUnion(\"platform\", [\r\n z.object({\r\n platform: z.literal(\"web\"),\r\n subscription: pushSubscriptionJsonSchema,\r\n label: z.string().max(120).optional(),\r\n }),\r\n z.object({\r\n platform: z.literal(\"ios\"),\r\n token: z.string().min(1).max(4096),\r\n label: z.string().max(120).optional(),\r\n }),\r\n z.object({\r\n platform: z.literal(\"android\"),\r\n token: z.string().min(1).max(4096),\r\n label: z.string().max(120).optional(),\r\n }),\r\n]);\r\n\r\nexport type NotificationRegisterDeviceInput = z.infer<typeof notificationRegisterDeviceInputSchema>;\r\n\r\nexport const notificationRegisterDeviceOutputSchema = z.object({\r\n deviceId: z.string(),\r\n});\r\n\r\nexport const notificationUnregisterDeviceInputSchema = z.object({\r\n deviceId: z.string(),\r\n});\r\n\r\nexport const notificationUnregisterDeviceOutputSchema = z.object({\r\n ok: z.literal(true),\r\n});\r\n\r\nexport const notificationDeviceSelectSchema = z.object({\r\n id: z.string(),\r\n userId: z.string(),\r\n platform: notificationPlatformSchema,\r\n endpoint: z.string().nullable(),\r\n label: z.string().nullable(),\r\n enabled: z.boolean(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n});\r\n\r\nexport const notificationListDevicesOutputSchema = z.array(notificationDeviceSelectSchema);\r\n\r\nexport const notificationVapidPublicKeyOutputSchema = z.object({\r\n publicKey: z.string(),\r\n});\r\n\r\nexport const notificationChannelSchema = z.enum(NOTIFICATION_CHANNELS);\r\n\r\nexport const notificationSendLogSelectSchema = z.object({\r\n id: z.string(),\r\n batchId: z.string(),\r\n notificationId: z.string(),\r\n userId: z.string(),\r\n deviceId: z.string().nullable(),\r\n channel: notificationChannelSchema,\r\n provider: notificationProviderSchema.nullable(),\r\n title: z.string(),\r\n body: z.string(),\r\n data: z.record(z.string(), z.unknown()).nullable(),\r\n status: notificationSendStatusSchema,\r\n error: z.string().nullable(),\r\n jobId: z.string().nullable(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n});\r\n\r\nexport const notificationListSendLogsInputSchema = z.object({\r\n batchId: z.string().optional(),\r\n limit: z.number().int().min(1).max(100).optional(),\r\n});\r\n\r\nexport const notificationListSendLogsOutputSchema = z.array(notificationSendLogSelectSchema);\r\n\r\nexport const notificationInstanceSelectSchema = z.object({\r\n id: z.string(),\r\n memberId: z.string(),\r\n userId: z.string(),\r\n kind: z.string(),\r\n title: z.string(),\r\n body: z.string(),\r\n data: z.record(z.string(), z.unknown()).nullable(),\r\n visibleInInbox: z.boolean(),\r\n webPushedAt: z.date().nullable(),\r\n mobilePushedAt: z.date().nullable(),\r\n emailedAt: z.date().nullable(),\r\n readAt: z.date().nullable(),\r\n createdAt: z.date(),\r\n updatedAt: z.date(),\r\n});\r\n\r\nexport const notificationListInboxOutputSchema = z.array(notificationInstanceSelectSchema);\r\n\r\nexport const notificationMarkReadInputSchema = z.object({\r\n id: z.string(),\r\n});\r\n\r\nexport const notificationSendTestInputSchema = z.object({\r\n memberId: z.string().min(1),\r\n kind: z.string().min(1),\r\n title: z.string().min(1).max(200),\r\n body: z.string().min(1).max(2000),\r\n data: z.record(z.string(), z.unknown()).optional(),\r\n});\r\n\r\nexport const notificationSendTestOutputSchema = z.object({\r\n id: z.string(),\r\n});\r\n\r\nexport const notificationKindPreferenceChannelSchema = z.object({\r\n channel: notificationChannelSchema,\r\n enabled: z.boolean(),\r\n});\r\n\r\nexport const notificationKindPreferenceSchema = z.object({\r\n kind: z.string(),\r\n channels: z.array(notificationKindPreferenceChannelSchema),\r\n});\r\n\r\nexport const notificationListPreferencesOutputSchema = z.array(notificationKindPreferenceSchema);\r\n\r\nexport const notificationSetPreferenceInputSchema = z.object({\r\n kind: z.string().min(1),\r\n channel: notificationChannelSchema,\r\n enabled: z.boolean(),\r\n});\r\n\r\nexport const notificationSetPreferenceOutputSchema = notificationKindPreferenceSchema;\r\n"],"mappings":";;;AAQA,MAAa,6BAA6B,EAAE,KAAK,uBAAuB;AACxE,MAAa,6BAA6B,EAAE,KAAK,uBAAuB;AACxE,MA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CAAC,UAAU;CACnC,WAAW,EAAE,MAAM,CAAC,UAAU;CAC9B,QAAQ,EAAE,MAAM,CAAC,UAAU;CAC3B,WAAW,EAAE,MAAM;CACnB,WAAW,EAAE,MAAM;CACpB,CAAC;AAEF,MAAa,oCAAoC,EAAE,MAAM,iCAAiC;AAE1F,MAAa,kCAAkC,EAAE,OAAO,EACtD,IAAI,EAAE,QAAQ,EACf,CAAC;AAEF,MAAa,kCAAkC,EAAE,OAAO;CACtD,UAAU,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC3B,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,IAAI;CACjC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,IAAK;CACjC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,UAAU;CACnD,CAAC;AAEF,MAAa,mCAAmC,EAAE,OAAO,EACvD,IAAI,EAAE,QAAQ,EACf,CAAC;AAEF,MAAa,0CAA0C,EAAE,OAAO;CAC9D,SAAS;CACT,SAAS,EAAE,SAAS;CACrB,CAAC;AAEF,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,QAAQ;CAChB,UAAU,EAAE,MAAM,wCAAwC;CAC3D,CAAC;AAEF,MAAa,0CAA0C,EAAE,MAAM,iCAAiC;AAEhG,MAAa,uCAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,SAAS;CACT,SAAS,EAAE,SAAS;CACrB,CAAC;AAEF,MAAa,wCAAwC"}
@@ -7,8 +7,8 @@ declare const filterSchema: z.ZodObject<{
7
7
  string: "string";
8
8
  number: "number";
9
9
  boolean: "boolean";
10
- date: "date";
11
10
  enum: "enum";
11
+ date: "date";
12
12
  jsonArray: "jsonArray";
13
13
  }>;
14
14
  method: z.ZodEnum<{
@@ -39,8 +39,8 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
39
39
  string: "string";
40
40
  number: "number";
41
41
  boolean: "boolean";
42
- date: "date";
43
42
  enum: "enum";
43
+ date: "date";
44
44
  jsonArray: "jsonArray";
45
45
  }>;
46
46
  method: z.ZodEnum<{
@@ -79,8 +79,8 @@ declare const querySchema: z.ZodObject<{
79
79
  string: "string";
80
80
  number: "number";
81
81
  boolean: "boolean";
82
- date: "date";
83
82
  enum: "enum";
83
+ date: "date";
84
84
  jsonArray: "jsonArray";
85
85
  }>;
86
86
  method: z.ZodEnum<{
@@ -7,8 +7,8 @@ declare const filterSchema: z.ZodObject<{
7
7
  string: "string";
8
8
  number: "number";
9
9
  boolean: "boolean";
10
- date: "date";
11
10
  enum: "enum";
11
+ date: "date";
12
12
  jsonArray: "jsonArray";
13
13
  }>;
14
14
  method: z.ZodEnum<{
@@ -39,8 +39,8 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
39
39
  string: "string";
40
40
  number: "number";
41
41
  boolean: "boolean";
42
- date: "date";
43
42
  enum: "enum";
43
+ date: "date";
44
44
  jsonArray: "jsonArray";
45
45
  }>;
46
46
  method: z.ZodEnum<{
@@ -79,8 +79,8 @@ declare const querySchema: z.ZodObject<{
79
79
  string: "string";
80
80
  number: "number";
81
81
  boolean: "boolean";
82
- date: "date";
83
82
  enum: "enum";
83
+ date: "date";
84
84
  jsonArray: "jsonArray";
85
85
  }>;
86
86
  method: z.ZodEnum<{
@@ -37,8 +37,8 @@ declare const tagListInputSchema: z.ZodObject<{
37
37
  string: "string";
38
38
  number: "number";
39
39
  boolean: "boolean";
40
- date: "date";
41
40
  enum: "enum";
41
+ date: "date";
42
42
  jsonArray: "jsonArray";
43
43
  }>;
44
44
  method: z.ZodEnum<{
@@ -37,8 +37,8 @@ declare const tagListInputSchema: z.ZodObject<{
37
37
  string: "string";
38
38
  number: "number";
39
39
  boolean: "boolean";
40
- date: "date";
41
40
  enum: "enum";
41
+ date: "date";
42
42
  jsonArray: "jsonArray";
43
43
  }>;
44
44
  method: z.ZodEnum<{
@@ -11,10 +11,10 @@ declare const workflowSelectSchema: z.ZodObject<{
11
11
  input: z.ZodUnknown;
12
12
  output: z.ZodUnknown;
13
13
  status: z.ZodEnum<{
14
- failed: "failed";
15
14
  queued: "queued";
16
15
  running: "running";
17
16
  completed: "completed";
17
+ failed: "failed";
18
18
  }>;
19
19
  error: z.ZodNullable<z.ZodString>;
20
20
  retries: z.ZodNumber;
@@ -28,10 +28,10 @@ declare const workflowReadInputSchema: z.ZodObject<{
28
28
  }, z.core.$strip>;
29
29
  declare const workflowListInputSchema: z.ZodObject<{
30
30
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
31
- failed: "failed";
32
31
  queued: "queued";
33
32
  running: "running";
34
33
  completed: "completed";
34
+ failed: "failed";
35
35
  }>>>;
36
36
  jobName: z.ZodOptional<z.ZodString>;
37
37
  }, z.core.$strip>;
@@ -51,10 +51,10 @@ declare const workflowReadOutputSchema: z.ZodObject<{
51
51
  input: z.ZodUnknown;
52
52
  output: z.ZodUnknown;
53
53
  status: z.ZodEnum<{
54
- failed: "failed";
55
54
  queued: "queued";
56
55
  running: "running";
57
56
  completed: "completed";
57
+ failed: "failed";
58
58
  }>;
59
59
  error: z.ZodNullable<z.ZodString>;
60
60
  retries: z.ZodNumber;
@@ -73,10 +73,10 @@ declare const workflowListOutputSchema: z.ZodArray<z.ZodObject<{
73
73
  input: z.ZodUnknown;
74
74
  output: z.ZodUnknown;
75
75
  status: z.ZodEnum<{
76
- failed: "failed";
77
76
  queued: "queued";
78
77
  running: "running";
79
78
  completed: "completed";
79
+ failed: "failed";
80
80
  }>;
81
81
  error: z.ZodNullable<z.ZodString>;
82
82
  retries: z.ZodNumber;