evo360-types 1.3.392 → 1.3.394

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.
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const zNotificationChannelTypeSchema: z.ZodEnum<["whatsapp", "email", "sms", "push"]>;
3
- export declare const zNotificationMessageStatusSchema: z.ZodEnum<["queued", "processing", "sent", "delivered", "failed", "cancelled", "suppressed"]>;
3
+ export declare const zNotificationMessageStatusSchema: z.ZodEnum<["queued", "processing", "sent", "delivered", "read", "failed", "cancelled", "suppressed"]>;
4
4
  export declare const zNotificationAttemptStatusSchema: z.ZodEnum<["success", "retry", "error"]>;
5
5
  export declare const zNotificationRecipientKindSchema: z.ZodEnum<["patient", "professional", "preconfigured", "raw"]>;
6
6
  export declare const zNotificationLogLevelSchema: z.ZodEnum<["debug", "info", "warn", "error"]>;
@@ -139,11 +139,12 @@ export declare const zNotificationMessageSchema: z.ZodObject<{
139
139
  display_name: z.ZodOptional<z.ZodString>;
140
140
  }, z.ZodTypeAny, "passthrough">>;
141
141
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
142
- status: z.ZodEnum<["queued", "processing", "sent", "delivered", "failed", "cancelled", "suppressed"]>;
142
+ status: z.ZodEnum<["queued", "processing", "sent", "delivered", "read", "failed", "cancelled", "suppressed"]>;
143
143
  queued_at: z.ZodDate;
144
144
  processing_started_at: z.ZodOptional<z.ZodDate>;
145
145
  sent_at: z.ZodOptional<z.ZodDate>;
146
146
  delivered_at: z.ZodOptional<z.ZodDate>;
147
+ read_at: z.ZodOptional<z.ZodDate>;
147
148
  completed_at: z.ZodOptional<z.ZodDate>;
148
149
  provider: z.ZodOptional<z.ZodObject<{
149
150
  name: z.ZodOptional<z.ZodString>;
@@ -255,11 +256,12 @@ export declare const zNotificationMessageSchema: z.ZodObject<{
255
256
  display_name: z.ZodOptional<z.ZodString>;
256
257
  }, z.ZodTypeAny, "passthrough">>;
257
258
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
258
- status: z.ZodEnum<["queued", "processing", "sent", "delivered", "failed", "cancelled", "suppressed"]>;
259
+ status: z.ZodEnum<["queued", "processing", "sent", "delivered", "read", "failed", "cancelled", "suppressed"]>;
259
260
  queued_at: z.ZodDate;
260
261
  processing_started_at: z.ZodOptional<z.ZodDate>;
261
262
  sent_at: z.ZodOptional<z.ZodDate>;
262
263
  delivered_at: z.ZodOptional<z.ZodDate>;
264
+ read_at: z.ZodOptional<z.ZodDate>;
263
265
  completed_at: z.ZodOptional<z.ZodDate>;
264
266
  provider: z.ZodOptional<z.ZodObject<{
265
267
  name: z.ZodOptional<z.ZodString>;
@@ -371,11 +373,12 @@ export declare const zNotificationMessageSchema: z.ZodObject<{
371
373
  display_name: z.ZodOptional<z.ZodString>;
372
374
  }, z.ZodTypeAny, "passthrough">>;
373
375
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
374
- status: z.ZodEnum<["queued", "processing", "sent", "delivered", "failed", "cancelled", "suppressed"]>;
376
+ status: z.ZodEnum<["queued", "processing", "sent", "delivered", "read", "failed", "cancelled", "suppressed"]>;
375
377
  queued_at: z.ZodDate;
376
378
  processing_started_at: z.ZodOptional<z.ZodDate>;
377
379
  sent_at: z.ZodOptional<z.ZodDate>;
378
380
  delivered_at: z.ZodOptional<z.ZodDate>;
381
+ read_at: z.ZodOptional<z.ZodDate>;
379
382
  completed_at: z.ZodOptional<z.ZodDate>;
380
383
  provider: z.ZodOptional<z.ZodObject<{
381
384
  name: z.ZodOptional<z.ZodString>;
@@ -16,6 +16,7 @@ exports.zNotificationMessageStatusSchema = zod_1.z.enum([
16
16
  "processing",
17
17
  "sent",
18
18
  "delivered",
19
+ "read",
19
20
  "failed",
20
21
  "cancelled",
21
22
  "suppressed",
@@ -95,6 +96,7 @@ exports.zNotificationMessageSchema = zod_schemas_1.zFireDocSchema
95
96
  processing_started_at: zod_1.z.coerce.date().optional(),
96
97
  sent_at: zod_1.z.coerce.date().optional(),
97
98
  delivered_at: zod_1.z.coerce.date().optional(),
99
+ read_at: zod_1.z.coerce.date().optional(),
98
100
  completed_at: zod_1.z.coerce.date().optional(),
99
101
  provider: exports.zNotificationProviderMetaSchema.optional(),
100
102
  error: exports.zNotificationErrorSchema.optional(),
@@ -16,6 +16,7 @@ export const zNotificationMessageStatusSchema = z.enum([
16
16
  "processing",
17
17
  "sent",
18
18
  "delivered",
19
+ "read",
19
20
  "failed",
20
21
  "cancelled",
21
22
  "suppressed",
@@ -106,6 +107,7 @@ export const zNotificationMessageSchema = zFireDocSchema
106
107
  processing_started_at: z.coerce.date().optional(),
107
108
  sent_at: z.coerce.date().optional(),
108
109
  delivered_at: z.coerce.date().optional(),
110
+ read_at: z.coerce.date().optional(),
109
111
  completed_at: z.coerce.date().optional(),
110
112
  provider: zNotificationProviderMetaSchema.optional(),
111
113
  error: zNotificationErrorSchema.optional(),
@@ -37,6 +37,7 @@ export declare const NotificationMessageStatusEnum: {
37
37
  readonly Processing: "processing";
38
38
  readonly Sent: "sent";
39
39
  readonly Delivered: "delivered";
40
+ readonly Read: "read";
40
41
  readonly Failed: "failed";
41
42
  readonly Cancelled: "cancelled";
42
43
  readonly Suppressed: "suppressed";
@@ -130,6 +131,7 @@ export interface INotificationMessage extends IFireDoc {
130
131
  processing_started_at?: Date;
131
132
  sent_at?: Date;
132
133
  delivered_at?: Date;
134
+ read_at?: Date;
133
135
  completed_at?: Date;
134
136
  provider?: INotificationProviderMeta;
135
137
  error?: INotificationError;
@@ -73,6 +73,7 @@ exports.NotificationMessageStatusEnum = {
73
73
  Processing: "processing", // being handled by notifications service
74
74
  Sent: "sent", // accepted by provider
75
75
  Delivered: "delivered", // delivery confirmed (when supported)
76
+ Read: "read", // read receipt confirmed (when supported, e.g. WhatsApp/WABA)
76
77
  Failed: "failed", // permanent failure
77
78
  Cancelled: "cancelled",
78
79
  Suppressed: "suppressed", // dedup/skip decision
@@ -80,6 +80,7 @@ export const NotificationMessageStatusEnum = {
80
80
  Processing: "processing", // being handled by notifications service
81
81
  Sent: "sent", // accepted by provider
82
82
  Delivered: "delivered", // delivery confirmed (when supported)
83
+ Read: "read", // read receipt confirmed (when supported, e.g. WhatsApp/WABA)
83
84
  Failed: "failed", // permanent failure
84
85
  Cancelled: "cancelled",
85
86
  Suppressed: "suppressed", // dedup/skip decision
@@ -242,6 +243,7 @@ export interface INotificationMessage extends IFireDoc {
242
243
  processing_started_at?: Date;
243
244
  sent_at?: Date;
244
245
  delivered_at?: Date;
246
+ read_at?: Date; // read receipt time (WABA-first; channel-neutral field)
245
247
  completed_at?: Date;
246
248
 
247
249
  // Final outcome
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.392",
3
+ "version": "1.3.394",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",