evo360-types 1.3.400 → 1.3.402

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.
@@ -101,8 +101,8 @@ export declare const zDistChannelSchema: z.ZodObject<{
101
101
  } & {
102
102
  code: z.ZodString;
103
103
  name: z.ZodString;
104
- type_code: z.ZodString;
105
- type_name: z.ZodString;
104
+ type_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ type_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
106
  typeRef: z.ZodAny;
107
107
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
108
108
  name: z.ZodString;
@@ -134,8 +134,8 @@ export declare const zDistChannelSchema: z.ZodObject<{
134
134
  } & {
135
135
  code: z.ZodString;
136
136
  name: z.ZodString;
137
- type_code: z.ZodString;
138
- type_name: z.ZodString;
137
+ type_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ type_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
139
  typeRef: z.ZodAny;
140
140
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
141
141
  name: z.ZodString;
@@ -167,8 +167,8 @@ export declare const zDistChannelSchema: z.ZodObject<{
167
167
  } & {
168
168
  code: z.ZodString;
169
169
  name: z.ZodString;
170
- type_code: z.ZodString;
171
- type_name: z.ZodString;
170
+ type_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
+ type_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
172
  typeRef: z.ZodAny;
173
173
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
174
174
  name: z.ZodString;
@@ -224,6 +224,8 @@ export declare const zQualificationSchema: z.ZodObject<{
224
224
  color?: string | undefined;
225
225
  category?: string | null | undefined;
226
226
  }>, "many">>>;
227
+ meta_event: z.ZodOptional<z.ZodNullable<z.ZodEnum<["LeadSubmitted", "AppointmentBooked", "Purchase", "InitiateCheckout", "AddToCart", "ViewContent"]>>>;
228
+ meta_event_value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
227
229
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
228
230
  id: z.ZodString;
229
231
  ref: z.ZodAny;
@@ -257,6 +259,8 @@ export declare const zQualificationSchema: z.ZodObject<{
257
259
  color?: string | undefined;
258
260
  category?: string | null | undefined;
259
261
  }>, "many">>>;
262
+ meta_event: z.ZodOptional<z.ZodNullable<z.ZodEnum<["LeadSubmitted", "AppointmentBooked", "Purchase", "InitiateCheckout", "AddToCart", "ViewContent"]>>>;
263
+ meta_event_value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
260
264
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
261
265
  id: z.ZodString;
262
266
  ref: z.ZodAny;
@@ -290,4 +294,6 @@ export declare const zQualificationSchema: z.ZodObject<{
290
294
  color?: string | undefined;
291
295
  category?: string | null | undefined;
292
296
  }>, "many">>>;
297
+ meta_event: z.ZodOptional<z.ZodNullable<z.ZodEnum<["LeadSubmitted", "AppointmentBooked", "Purchase", "InitiateCheckout", "AddToCart", "ViewContent"]>>>;
298
+ meta_event_value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
293
299
  }, z.ZodTypeAny, "passthrough">>;
@@ -14,8 +14,8 @@ exports.zDistChannelSchema = zod_schemas_1.zFireDocSchema
14
14
  .extend({
15
15
  code: zod_1.z.string().min(1).max(20),
16
16
  name: zod_1.z.string().min(1).max(255),
17
- type_code: zod_1.z.string().min(1).max(20),
18
- type_name: zod_1.z.string().min(1).max(255),
17
+ type_code: zod_1.z.string().min(1).max(20).nullable().optional(),
18
+ type_name: zod_1.z.string().min(1).max(255).nullable().optional(),
19
19
  typeRef: zod_1.z.any(),
20
20
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
21
21
  })
@@ -44,5 +44,17 @@ exports.zQualificationSchema = zod_schemas_1.zFireDocSchema
44
44
  hide: zod_1.z.boolean().optional().default(false),
45
45
  funnelHide: zod_1.z.boolean().optional().default(false),
46
46
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
47
+ meta_event: zod_1.z
48
+ .enum([
49
+ "LeadSubmitted",
50
+ "AppointmentBooked",
51
+ "Purchase",
52
+ "InitiateCheckout",
53
+ "AddToCart",
54
+ "ViewContent",
55
+ ])
56
+ .nullable()
57
+ .optional(),
58
+ meta_event_value: zod_1.z.number().positive().nullable().optional(),
47
59
  })
48
60
  .passthrough();
@@ -13,8 +13,8 @@ export const zDistChannelSchema = zFireDocSchema
13
13
  .extend({
14
14
  code: z.string().min(1).max(20),
15
15
  name: z.string().min(1).max(255),
16
- type_code: z.string().min(1).max(20),
17
- type_name: z.string().min(1).max(255),
16
+ type_code: z.string().min(1).max(20).nullable().optional(),
17
+ type_name: z.string().min(1).max(255).nullable().optional(),
18
18
  typeRef: z.any(),
19
19
  tags: z.array(zTagSchema).nullable().optional(),
20
20
  })
@@ -45,5 +45,17 @@ export const zQualificationSchema = zFireDocSchema
45
45
  hide: z.boolean().optional().default(false),
46
46
  funnelHide: z.boolean().optional().default(false),
47
47
  tags: z.array(zTagSchema).nullable().optional(),
48
+ meta_event: z
49
+ .enum([
50
+ "LeadSubmitted",
51
+ "AppointmentBooked",
52
+ "Purchase",
53
+ "InitiateCheckout",
54
+ "AddToCart",
55
+ "ViewContent",
56
+ ])
57
+ .nullable()
58
+ .optional(),
59
+ meta_event_value: z.number().positive().nullable().optional(),
48
60
  })
49
61
  .passthrough();
@@ -62,11 +62,14 @@ export declare enum IQualificationFunnelLevel {
62
62
  WaitingReply = "waiting_reply",// Aguardando retorno do lead
63
63
  FollowUpLater = "follow_up_later"
64
64
  }
65
+ export type MetaMessagingEventName = "LeadSubmitted" | "AppointmentBooked" | "Purchase" | "InitiateCheckout" | "AddToCart" | "ViewContent";
65
66
  export interface IQualification extends IFireDoc {
66
67
  code: string;
67
68
  name: string;
68
69
  funnelLevel: QualificationFunnelLevel;
69
70
  hide?: boolean;
70
71
  funnelHide?: boolean;
72
+ meta_event?: MetaMessagingEventName | null;
73
+ meta_event_value?: number | null;
71
74
  [key: string]: unknown;
72
75
  }
@@ -103,6 +103,16 @@ export enum IQualificationFunnelLevel {
103
103
  FollowUpLater = "follow_up_later", // Contato agendado para o futuro
104
104
  }
105
105
 
106
+ // Meta CAPI event names accepted for action_source=business_messaging.
107
+ // Confirmed empirically (feat-062 PASSO 0); pixel/web names (Lead, Schedule, Contact) are rejected by Meta.
108
+ export type MetaMessagingEventName =
109
+ | "LeadSubmitted"
110
+ | "AppointmentBooked"
111
+ | "Purchase"
112
+ | "InitiateCheckout"
113
+ | "AddToCart"
114
+ | "ViewContent";
115
+
106
116
  // Lead qualification status
107
117
  export interface IQualification extends IFireDoc {
108
118
  code: string;
@@ -110,5 +120,8 @@ export interface IQualification extends IFireDoc {
110
120
  funnelLevel: QualificationFunnelLevel;
111
121
  hide?: boolean;
112
122
  funnelHide?: boolean;
123
+ // feat-062: auto Meta CAPI conversion when a lead reaches this qualification.
124
+ meta_event?: MetaMessagingEventName | null;
125
+ meta_event_value?: number | null;
113
126
  [key: string]: unknown; // index signature
114
127
  }
@@ -5,6 +5,12 @@ export declare const ExternalObjectTypeEnum: {
5
5
  readonly MedProfessional: "med_professional";
6
6
  readonly MedAppointment: "med_appointment";
7
7
  readonly ChatContact: "chat_contact";
8
+ /**
9
+ * Task do evo-task (feat-075). Permite ligar um objeto ao trabalho que o produziu —
10
+ * a mensagem de notificação aponta para a task `notification.send`, que porta o
11
+ * desfecho do envio (sent/failed + os codes da feat-072).
12
+ */
13
+ readonly EvoTask: "evo_task";
8
14
  /** Nexus FinOps billing document */
9
15
  readonly NexBilling: "nex_billing";
10
16
  readonly NexContract: "nex_contract";
@@ -9,6 +9,12 @@ exports.ExternalObjectTypeEnum = {
9
9
  MedProfessional: "med_professional",
10
10
  MedAppointment: "med_appointment",
11
11
  ChatContact: "chat_contact",
12
+ /**
13
+ * Task do evo-task (feat-075). Permite ligar um objeto ao trabalho que o produziu —
14
+ * a mensagem de notificação aponta para a task `notification.send`, que porta o
15
+ * desfecho do envio (sent/failed + os codes da feat-072).
16
+ */
17
+ EvoTask: "evo_task",
12
18
  /** Nexus FinOps billing document */
13
19
  NexBilling: "nex_billing",
14
20
  NexContract: "nex_contract",
@@ -9,6 +9,12 @@ export const ExternalObjectTypeEnum = {
9
9
  MedProfessional: "med_professional",
10
10
  MedAppointment: "med_appointment",
11
11
  ChatContact: "chat_contact",
12
+ /**
13
+ * Task do evo-task (feat-075). Permite ligar um objeto ao trabalho que o produziu —
14
+ * a mensagem de notificação aponta para a task `notification.send`, que porta o
15
+ * desfecho do envio (sent/failed + os codes da feat-072).
16
+ */
17
+ EvoTask: "evo_task",
12
18
  /** Nexus FinOps billing document */
13
19
  NexBilling: "nex_billing",
14
20
  NexContract: "nex_contract",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.400",
3
+ "version": "1.3.402",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",