@sankira-dev/event-types 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -98,16 +98,49 @@ export declare const NotificationActorSchema: z.ZodObject<{
98
98
  export type NotificationActor = z.infer<typeof NotificationActorSchema>;
99
99
  export declare const PasswordResetSchema: z.ZodObject<{
100
100
  email: z.ZodString;
101
+ recipient: z.ZodOptional<z.ZodObject<{
102
+ email: z.ZodString;
103
+ first_name: z.ZodString;
104
+ last_name: z.ZodString;
105
+ user_id: z.ZodNumber;
106
+ username: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ username: string;
109
+ email: string;
110
+ first_name: string;
111
+ last_name: string;
112
+ user_id: number;
113
+ }, {
114
+ username: string;
115
+ email: string;
116
+ first_name: string;
117
+ last_name: string;
118
+ user_id: number;
119
+ }>>;
101
120
  reset_link: z.ZodString;
102
121
  sent_at: z.ZodDate;
103
122
  }, "strip", z.ZodTypeAny, {
104
123
  email: string;
105
124
  reset_link: string;
106
125
  sent_at: Date;
126
+ recipient?: {
127
+ username: string;
128
+ email: string;
129
+ first_name: string;
130
+ last_name: string;
131
+ user_id: number;
132
+ } | undefined;
107
133
  }, {
108
134
  email: string;
109
135
  reset_link: string;
110
136
  sent_at: Date;
137
+ recipient?: {
138
+ username: string;
139
+ email: string;
140
+ first_name: string;
141
+ last_name: string;
142
+ user_id: number;
143
+ } | undefined;
111
144
  }>;
112
145
  export type PasswordReset = z.infer<typeof PasswordResetSchema>;
113
146
  export declare const SignupLinkRequestedSchema: z.ZodObject<{
@@ -149,10 +182,6 @@ export declare const StaffPostApprovedSchema: z.ZodObject<{
149
182
  user_id: number;
150
183
  }>;
151
184
  }, "strip", z.ZodTypeAny, {
152
- approved_at: Date;
153
- post_id: number;
154
- post_slug: string;
155
- post_title: string;
156
185
  recipient: {
157
186
  username: string;
158
187
  email: string;
@@ -160,11 +189,11 @@ export declare const StaffPostApprovedSchema: z.ZodObject<{
160
189
  last_name: string;
161
190
  user_id: number;
162
191
  };
163
- }, {
164
192
  approved_at: Date;
165
193
  post_id: number;
166
194
  post_slug: string;
167
195
  post_title: string;
196
+ }, {
168
197
  recipient: {
169
198
  username: string;
170
199
  email: string;
@@ -172,6 +201,10 @@ export declare const StaffPostApprovedSchema: z.ZodObject<{
172
201
  last_name: string;
173
202
  user_id: number;
174
203
  };
204
+ approved_at: Date;
205
+ post_id: number;
206
+ post_slug: string;
207
+ post_title: string;
175
208
  }>;
176
209
  export type StaffPostApproved = z.infer<typeof StaffPostApprovedSchema>;
177
210
  export declare const StaffPostRejectedSchema: z.ZodObject<{
@@ -200,9 +233,6 @@ export declare const StaffPostRejectedSchema: z.ZodObject<{
200
233
  rejected_at: z.ZodDate;
201
234
  rejection_reason: z.ZodString;
202
235
  }, "strip", z.ZodTypeAny, {
203
- post_id: number;
204
- post_slug: string;
205
- post_title: string;
206
236
  recipient: {
207
237
  username: string;
208
238
  email: string;
@@ -210,12 +240,12 @@ export declare const StaffPostRejectedSchema: z.ZodObject<{
210
240
  last_name: string;
211
241
  user_id: number;
212
242
  };
213
- rejected_at: Date;
214
- rejection_reason: string;
215
- }, {
216
243
  post_id: number;
217
244
  post_slug: string;
218
245
  post_title: string;
246
+ rejected_at: Date;
247
+ rejection_reason: string;
248
+ }, {
219
249
  recipient: {
220
250
  username: string;
221
251
  email: string;
@@ -223,6 +253,9 @@ export declare const StaffPostRejectedSchema: z.ZodObject<{
223
253
  last_name: string;
224
254
  user_id: number;
225
255
  };
256
+ post_id: number;
257
+ post_slug: string;
258
+ post_title: string;
226
259
  rejected_at: Date;
227
260
  rejection_reason: string;
228
261
  }>;
@@ -252,9 +285,6 @@ export declare const StaffPostSubmittedSchema: z.ZodObject<{
252
285
  }>;
253
286
  submitted_at: z.ZodDate;
254
287
  }, "strip", z.ZodTypeAny, {
255
- post_id: number;
256
- post_slug: string;
257
- post_title: string;
258
288
  recipient: {
259
289
  username: string;
260
290
  email: string;
@@ -262,11 +292,11 @@ export declare const StaffPostSubmittedSchema: z.ZodObject<{
262
292
  last_name: string;
263
293
  user_id: number;
264
294
  };
265
- submitted_at: Date;
266
- }, {
267
295
  post_id: number;
268
296
  post_slug: string;
269
297
  post_title: string;
298
+ submitted_at: Date;
299
+ }, {
270
300
  recipient: {
271
301
  username: string;
272
302
  email: string;
@@ -274,21 +304,57 @@ export declare const StaffPostSubmittedSchema: z.ZodObject<{
274
304
  last_name: string;
275
305
  user_id: number;
276
306
  };
307
+ post_id: number;
308
+ post_slug: string;
309
+ post_title: string;
277
310
  submitted_at: Date;
278
311
  }>;
279
312
  export type StaffPostSubmitted = z.infer<typeof StaffPostSubmittedSchema>;
280
313
  export declare const TwoFactorOtpRequestedSchema: z.ZodObject<{
281
314
  email: z.ZodString;
282
315
  otp: z.ZodString;
316
+ recipient: z.ZodOptional<z.ZodObject<{
317
+ email: z.ZodString;
318
+ first_name: z.ZodString;
319
+ last_name: z.ZodString;
320
+ user_id: z.ZodNumber;
321
+ username: z.ZodString;
322
+ }, "strip", z.ZodTypeAny, {
323
+ username: string;
324
+ email: string;
325
+ first_name: string;
326
+ last_name: string;
327
+ user_id: number;
328
+ }, {
329
+ username: string;
330
+ email: string;
331
+ first_name: string;
332
+ last_name: string;
333
+ user_id: number;
334
+ }>>;
283
335
  sent_at: z.ZodDate;
284
336
  }, "strip", z.ZodTypeAny, {
285
337
  email: string;
286
338
  sent_at: Date;
287
339
  otp: string;
340
+ recipient?: {
341
+ username: string;
342
+ email: string;
343
+ first_name: string;
344
+ last_name: string;
345
+ user_id: number;
346
+ } | undefined;
288
347
  }, {
289
348
  email: string;
290
349
  sent_at: Date;
291
350
  otp: string;
351
+ recipient?: {
352
+ username: string;
353
+ email: string;
354
+ first_name: string;
355
+ last_name: string;
356
+ user_id: number;
357
+ } | undefined;
292
358
  }>;
293
359
  export type TwoFactorOtpRequested = z.infer<typeof TwoFactorOtpRequestedSchema>;
294
360
  export declare const UserBannedSchema: z.ZodObject<{
package/dist/index.js CHANGED
@@ -86,6 +86,7 @@ exports.NotificationActorSchema = z.object({
86
86
  });
87
87
  exports.PasswordResetSchema = z.object({
88
88
  "email": z.string(),
89
+ "recipient": exports.UserSchema.optional(),
89
90
  "reset_link": z.string(),
90
91
  "sent_at": z.coerce.date(),
91
92
  });
@@ -119,6 +120,7 @@ exports.StaffPostSubmittedSchema = z.object({
119
120
  exports.TwoFactorOtpRequestedSchema = z.object({
120
121
  "email": z.string(),
121
122
  "otp": z.string(),
123
+ "recipient": exports.UserSchema.optional(),
122
124
  "sent_at": z.coerce.date(),
123
125
  });
124
126
  exports.UserBannedSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankira-dev/event-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Event Types for Sankira",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,5 +20,5 @@
20
20
  "dependencies": {
21
21
  "zod": "^3.25.7"
22
22
  },
23
- "backendVersion": "v1.0.1"
23
+ "backendVersion": "v1.0.2"
24
24
  }