evo360-types 1.3.331 → 1.3.333

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.
@@ -4,6 +4,16 @@ export declare const zMessageStatusSchema: z.ZodObject<{
4
4
  delivered_at: z.ZodOptional<z.ZodDate>;
5
5
  read_at: z.ZodOptional<z.ZodDate>;
6
6
  failed_at: z.ZodOptional<z.ZodDate>;
7
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ code: z.ZodNumber;
9
+ title: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ code: number;
12
+ title: string;
13
+ }, {
14
+ code: number;
15
+ title: string;
16
+ }>, "many">>;
7
17
  error_code: z.ZodOptional<z.ZodString>;
8
18
  error_message: z.ZodOptional<z.ZodString>;
9
19
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -11,6 +21,16 @@ export declare const zMessageStatusSchema: z.ZodObject<{
11
21
  delivered_at: z.ZodOptional<z.ZodDate>;
12
22
  read_at: z.ZodOptional<z.ZodDate>;
13
23
  failed_at: z.ZodOptional<z.ZodDate>;
24
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
+ code: z.ZodNumber;
26
+ title: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ code: number;
29
+ title: string;
30
+ }, {
31
+ code: number;
32
+ title: string;
33
+ }>, "many">>;
14
34
  error_code: z.ZodOptional<z.ZodString>;
15
35
  error_message: z.ZodOptional<z.ZodString>;
16
36
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -18,6 +38,16 @@ export declare const zMessageStatusSchema: z.ZodObject<{
18
38
  delivered_at: z.ZodOptional<z.ZodDate>;
19
39
  read_at: z.ZodOptional<z.ZodDate>;
20
40
  failed_at: z.ZodOptional<z.ZodDate>;
41
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ code: z.ZodNumber;
43
+ title: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ code: number;
46
+ title: string;
47
+ }, {
48
+ code: number;
49
+ title: string;
50
+ }>, "many">>;
21
51
  error_code: z.ZodOptional<z.ZodString>;
22
52
  error_message: z.ZodOptional<z.ZodString>;
23
53
  }, z.ZodTypeAny, "passthrough">>;
@@ -180,6 +210,16 @@ export declare const zThreadMessageSchema: z.ZodObject<{
180
210
  delivered_at: z.ZodOptional<z.ZodDate>;
181
211
  read_at: z.ZodOptional<z.ZodDate>;
182
212
  failed_at: z.ZodOptional<z.ZodDate>;
213
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
214
+ code: z.ZodNumber;
215
+ title: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ code: number;
218
+ title: string;
219
+ }, {
220
+ code: number;
221
+ title: string;
222
+ }>, "many">>;
183
223
  error_code: z.ZodOptional<z.ZodString>;
184
224
  error_message: z.ZodOptional<z.ZodString>;
185
225
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -187,6 +227,16 @@ export declare const zThreadMessageSchema: z.ZodObject<{
187
227
  delivered_at: z.ZodOptional<z.ZodDate>;
188
228
  read_at: z.ZodOptional<z.ZodDate>;
189
229
  failed_at: z.ZodOptional<z.ZodDate>;
230
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
231
+ code: z.ZodNumber;
232
+ title: z.ZodString;
233
+ }, "strip", z.ZodTypeAny, {
234
+ code: number;
235
+ title: string;
236
+ }, {
237
+ code: number;
238
+ title: string;
239
+ }>, "many">>;
190
240
  error_code: z.ZodOptional<z.ZodString>;
191
241
  error_message: z.ZodOptional<z.ZodString>;
192
242
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -194,6 +244,16 @@ export declare const zThreadMessageSchema: z.ZodObject<{
194
244
  delivered_at: z.ZodOptional<z.ZodDate>;
195
245
  read_at: z.ZodOptional<z.ZodDate>;
196
246
  failed_at: z.ZodOptional<z.ZodDate>;
247
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
248
+ code: z.ZodNumber;
249
+ title: z.ZodString;
250
+ }, "strip", z.ZodTypeAny, {
251
+ code: number;
252
+ title: string;
253
+ }, {
254
+ code: number;
255
+ title: string;
256
+ }>, "many">>;
197
257
  error_code: z.ZodOptional<z.ZodString>;
198
258
  error_message: z.ZodOptional<z.ZodString>;
199
259
  }, z.ZodTypeAny, "passthrough">>>;
@@ -329,6 +389,16 @@ export declare const zThreadMessageSchema: z.ZodObject<{
329
389
  delivered_at: z.ZodOptional<z.ZodDate>;
330
390
  read_at: z.ZodOptional<z.ZodDate>;
331
391
  failed_at: z.ZodOptional<z.ZodDate>;
392
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
393
+ code: z.ZodNumber;
394
+ title: z.ZodString;
395
+ }, "strip", z.ZodTypeAny, {
396
+ code: number;
397
+ title: string;
398
+ }, {
399
+ code: number;
400
+ title: string;
401
+ }>, "many">>;
332
402
  error_code: z.ZodOptional<z.ZodString>;
333
403
  error_message: z.ZodOptional<z.ZodString>;
334
404
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -336,6 +406,16 @@ export declare const zThreadMessageSchema: z.ZodObject<{
336
406
  delivered_at: z.ZodOptional<z.ZodDate>;
337
407
  read_at: z.ZodOptional<z.ZodDate>;
338
408
  failed_at: z.ZodOptional<z.ZodDate>;
409
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
410
+ code: z.ZodNumber;
411
+ title: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ code: number;
414
+ title: string;
415
+ }, {
416
+ code: number;
417
+ title: string;
418
+ }>, "many">>;
339
419
  error_code: z.ZodOptional<z.ZodString>;
340
420
  error_message: z.ZodOptional<z.ZodString>;
341
421
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -343,6 +423,16 @@ export declare const zThreadMessageSchema: z.ZodObject<{
343
423
  delivered_at: z.ZodOptional<z.ZodDate>;
344
424
  read_at: z.ZodOptional<z.ZodDate>;
345
425
  failed_at: z.ZodOptional<z.ZodDate>;
426
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
427
+ code: z.ZodNumber;
428
+ title: z.ZodString;
429
+ }, "strip", z.ZodTypeAny, {
430
+ code: number;
431
+ title: string;
432
+ }, {
433
+ code: number;
434
+ title: string;
435
+ }>, "many">>;
346
436
  error_code: z.ZodOptional<z.ZodString>;
347
437
  error_message: z.ZodOptional<z.ZodString>;
348
438
  }, z.ZodTypeAny, "passthrough">>>;
@@ -478,6 +568,16 @@ export declare const zThreadMessageSchema: z.ZodObject<{
478
568
  delivered_at: z.ZodOptional<z.ZodDate>;
479
569
  read_at: z.ZodOptional<z.ZodDate>;
480
570
  failed_at: z.ZodOptional<z.ZodDate>;
571
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
572
+ code: z.ZodNumber;
573
+ title: z.ZodString;
574
+ }, "strip", z.ZodTypeAny, {
575
+ code: number;
576
+ title: string;
577
+ }, {
578
+ code: number;
579
+ title: string;
580
+ }>, "many">>;
481
581
  error_code: z.ZodOptional<z.ZodString>;
482
582
  error_message: z.ZodOptional<z.ZodString>;
483
583
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -485,6 +585,16 @@ export declare const zThreadMessageSchema: z.ZodObject<{
485
585
  delivered_at: z.ZodOptional<z.ZodDate>;
486
586
  read_at: z.ZodOptional<z.ZodDate>;
487
587
  failed_at: z.ZodOptional<z.ZodDate>;
588
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
589
+ code: z.ZodNumber;
590
+ title: z.ZodString;
591
+ }, "strip", z.ZodTypeAny, {
592
+ code: number;
593
+ title: string;
594
+ }, {
595
+ code: number;
596
+ title: string;
597
+ }>, "many">>;
488
598
  error_code: z.ZodOptional<z.ZodString>;
489
599
  error_message: z.ZodOptional<z.ZodString>;
490
600
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -492,6 +602,16 @@ export declare const zThreadMessageSchema: z.ZodObject<{
492
602
  delivered_at: z.ZodOptional<z.ZodDate>;
493
603
  read_at: z.ZodOptional<z.ZodDate>;
494
604
  failed_at: z.ZodOptional<z.ZodDate>;
605
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
606
+ code: z.ZodNumber;
607
+ title: z.ZodString;
608
+ }, "strip", z.ZodTypeAny, {
609
+ code: number;
610
+ title: string;
611
+ }, {
612
+ code: number;
613
+ title: string;
614
+ }>, "many">>;
495
615
  error_code: z.ZodOptional<z.ZodString>;
496
616
  error_message: z.ZodOptional<z.ZodString>;
497
617
  }, z.ZodTypeAny, "passthrough">>>;
@@ -8,6 +8,7 @@ exports.zMessageStatusSchema = zod_1.z.object({
8
8
  delivered_at: zod_1.z.coerce.date().optional(),
9
9
  read_at: zod_1.z.coerce.date().optional(),
10
10
  failed_at: zod_1.z.coerce.date().optional(),
11
+ errors: zod_1.z.array(zod_1.z.object({ code: zod_1.z.number(), title: zod_1.z.string() })).optional(),
11
12
  error_code: zod_1.z.string().optional(),
12
13
  error_message: zod_1.z.string().optional(),
13
14
  }).passthrough();
@@ -6,6 +6,7 @@ export const zMessageStatusSchema = z.object({
6
6
  delivered_at: z.coerce.date().optional(),
7
7
  read_at: z.coerce.date().optional(),
8
8
  failed_at: z.coerce.date().optional(),
9
+ errors: z.array(z.object({ code: z.number(), title: z.string() })).optional(),
9
10
  error_code: z.string().optional(),
10
11
  error_message: z.string().optional(),
11
12
  }).passthrough();
@@ -249,13 +249,13 @@ export declare const zSyncRunEventSchema: z.ZodObject<{
249
249
  firestore_reads: number;
250
250
  firestore_writes: number;
251
251
  n8n_calls: number;
252
- coveredWindow_start?: Date | undefined;
253
- coveredWindow_end?: Date | undefined;
254
252
  errors?: {
255
253
  message: string;
256
254
  code?: string | undefined;
257
255
  details?: Record<string, any> | undefined;
258
256
  }[] | undefined;
257
+ coveredWindow_start?: Date | undefined;
258
+ coveredWindow_end?: Date | undefined;
259
259
  }, {
260
260
  tenant: string;
261
261
  status: "success" | "error" | "partial";
@@ -265,6 +265,11 @@ export declare const zSyncRunEventSchema: z.ZodObject<{
265
265
  finished_at: Date;
266
266
  run_id: string;
267
267
  window_type: "hot" | "warm" | "recent_reconcile" | "cold";
268
+ errors?: {
269
+ message: string;
270
+ code?: string | undefined;
271
+ details?: Record<string, any> | undefined;
272
+ }[] | undefined;
268
273
  patients_upserted?: number | undefined;
269
274
  appointments_upserted?: number | undefined;
270
275
  appointments_skipped?: number | undefined;
@@ -275,11 +280,6 @@ export declare const zSyncRunEventSchema: z.ZodObject<{
275
280
  firestore_reads?: number | undefined;
276
281
  firestore_writes?: number | undefined;
277
282
  n8n_calls?: number | undefined;
278
- errors?: {
279
- message: string;
280
- code?: string | undefined;
281
- details?: Record<string, any> | undefined;
282
- }[] | undefined;
283
283
  }>;
284
284
  export declare const zSyncWindowConfigSchema: z.ZodObject<{
285
285
  enabled: z.ZodBoolean;
@@ -6,6 +6,10 @@ export interface IMessageStatus {
6
6
  delivered_at?: Date;
7
7
  read_at?: Date;
8
8
  failed_at?: Date;
9
+ errors?: Array<{
10
+ code: number;
11
+ title: string;
12
+ }>;
9
13
  error_code?: string;
10
14
  error_message?: string;
11
15
  }
@@ -17,6 +17,7 @@ export interface IMessageStatus {
17
17
  delivered_at?: Date;
18
18
  read_at?: Date;
19
19
  failed_at?: Date;
20
+ errors?: Array<{ code: number; title: string }>;
20
21
  error_code?: string;
21
22
  error_message?: string;
22
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.331",
3
+ "version": "1.3.333",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",