evo360-types 1.3.400 → 1.3.401

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.
@@ -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">>;
@@ -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();
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.400",
3
+ "version": "1.3.401",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",