@getlatedev/node 0.2.1294 → 0.2.1295

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.mts CHANGED
@@ -6724,6 +6724,11 @@ type ConversionEvent = {
6724
6724
  * for Business Messaging). `channel` is sent as the event's `messaging_channel`
6725
6725
  * (`instagram_direct` goes out as `instagram`). Each id lands in Meta's
6726
6726
  * `user_data` unhashed, and an id that does not belong to `channel` is ignored.
6727
+ * Meta accepts only its business messaging event names here (`LeadSubmitted`,
6728
+ * `QualifiedLead`, `Purchase`, `AddToCart`, `InitiateCheckout`, `ViewContent`,
6729
+ * `OrderCreated`, `OrderShipped`, `OrderDelivered`, `OrderCanceled`,
6730
+ * `OrderReturned`, `CartAbandoned`, `RatingProvided`, `ReviewProvided`);
6731
+ * `eventName` is forwarded unchanged.
6727
6732
  *
6728
6733
  */
6729
6734
  messaging?: {
@@ -53785,7 +53790,7 @@ type ListWhatsAppConversionsResponse = ({
53785
53790
  */
53786
53791
  timestamp?: string;
53787
53792
  /**
53788
- * One of LeadSubmitted, Purchase, AddToCart, InitiateCheckout, ViewContent.
53793
+ * One of LeadSubmitted, QualifiedLead, Purchase, AddToCart, InitiateCheckout, ViewContent, OrderCreated, OrderCanceled, OrderReturned.
53789
53794
  */
53790
53795
  eventName?: string;
53791
53796
  conversationId?: (string) | null;
@@ -53812,9 +53817,8 @@ type SendWhatsAppConversionData = {
53812
53817
  */
53813
53818
  accountId: string;
53814
53819
  /**
53815
- * Live-verified allowlist of event names accepted by Meta's
53816
- * CAPI for Business Messaging (Graph API v25.0). Other
53817
- * standard pixel events including `Lead`,
53820
+ * Event names accepted by Meta's CAPI for Business
53821
+ * Messaging. Other standard pixel events including `Lead`,
53818
53822
  * `CompleteRegistration`, `Subscribe`, `Schedule`, `Contact`,
53819
53823
  * `StartTrial`, `AddPaymentInfo`, `Search`, and
53820
53824
  * `SubmitApplication` are rejected with subcode 2804066
@@ -53822,10 +53826,14 @@ type SendWhatsAppConversionData = {
53822
53826
  * `action_source = business_messaging` events. Custom event
53823
53827
  * names are also rejected.
53824
53828
  *
53825
- * Use `LeadSubmitted` (NOT `Lead`) for lead-style conversions.
53829
+ * Use `LeadSubmitted` (NOT `Lead`) when a lead comes in and
53830
+ * `QualifiedLead` once your team qualifies it. `OrderCreated`,
53831
+ * `OrderCanceled` and `OrderReturned` track an order placed in
53832
+ * the chat; send `value` and `currency` with them (and with
53833
+ * `Purchase`) to report the order amount.
53826
53834
  *
53827
53835
  */
53828
- eventName: 'LeadSubmitted' | 'Purchase' | 'AddToCart' | 'InitiateCheckout' | 'ViewContent';
53836
+ eventName: 'LeadSubmitted' | 'QualifiedLead' | 'Purchase' | 'AddToCart' | 'InitiateCheckout' | 'ViewContent' | 'OrderCreated' | 'OrderCanceled' | 'OrderReturned';
53829
53837
  /**
53830
53838
  * Unix seconds. Defaults to the time of the request when
53831
53839
  * omitted. Meta's attribution window is 7 days from click;
package/dist/index.d.ts CHANGED
@@ -6724,6 +6724,11 @@ type ConversionEvent = {
6724
6724
  * for Business Messaging). `channel` is sent as the event's `messaging_channel`
6725
6725
  * (`instagram_direct` goes out as `instagram`). Each id lands in Meta's
6726
6726
  * `user_data` unhashed, and an id that does not belong to `channel` is ignored.
6727
+ * Meta accepts only its business messaging event names here (`LeadSubmitted`,
6728
+ * `QualifiedLead`, `Purchase`, `AddToCart`, `InitiateCheckout`, `ViewContent`,
6729
+ * `OrderCreated`, `OrderShipped`, `OrderDelivered`, `OrderCanceled`,
6730
+ * `OrderReturned`, `CartAbandoned`, `RatingProvided`, `ReviewProvided`);
6731
+ * `eventName` is forwarded unchanged.
6727
6732
  *
6728
6733
  */
6729
6734
  messaging?: {
@@ -53785,7 +53790,7 @@ type ListWhatsAppConversionsResponse = ({
53785
53790
  */
53786
53791
  timestamp?: string;
53787
53792
  /**
53788
- * One of LeadSubmitted, Purchase, AddToCart, InitiateCheckout, ViewContent.
53793
+ * One of LeadSubmitted, QualifiedLead, Purchase, AddToCart, InitiateCheckout, ViewContent, OrderCreated, OrderCanceled, OrderReturned.
53789
53794
  */
53790
53795
  eventName?: string;
53791
53796
  conversationId?: (string) | null;
@@ -53812,9 +53817,8 @@ type SendWhatsAppConversionData = {
53812
53817
  */
53813
53818
  accountId: string;
53814
53819
  /**
53815
- * Live-verified allowlist of event names accepted by Meta's
53816
- * CAPI for Business Messaging (Graph API v25.0). Other
53817
- * standard pixel events including `Lead`,
53820
+ * Event names accepted by Meta's CAPI for Business
53821
+ * Messaging. Other standard pixel events including `Lead`,
53818
53822
  * `CompleteRegistration`, `Subscribe`, `Schedule`, `Contact`,
53819
53823
  * `StartTrial`, `AddPaymentInfo`, `Search`, and
53820
53824
  * `SubmitApplication` are rejected with subcode 2804066
@@ -53822,10 +53826,14 @@ type SendWhatsAppConversionData = {
53822
53826
  * `action_source = business_messaging` events. Custom event
53823
53827
  * names are also rejected.
53824
53828
  *
53825
- * Use `LeadSubmitted` (NOT `Lead`) for lead-style conversions.
53829
+ * Use `LeadSubmitted` (NOT `Lead`) when a lead comes in and
53830
+ * `QualifiedLead` once your team qualifies it. `OrderCreated`,
53831
+ * `OrderCanceled` and `OrderReturned` track an order placed in
53832
+ * the chat; send `value` and `currency` with them (and with
53833
+ * `Purchase`) to report the order amount.
53826
53834
  *
53827
53835
  */
53828
- eventName: 'LeadSubmitted' | 'Purchase' | 'AddToCart' | 'InitiateCheckout' | 'ViewContent';
53836
+ eventName: 'LeadSubmitted' | 'QualifiedLead' | 'Purchase' | 'AddToCart' | 'InitiateCheckout' | 'ViewContent' | 'OrderCreated' | 'OrderCanceled' | 'OrderReturned';
53829
53837
  /**
53830
53838
  * Unix seconds. Defaults to the time of the request when
53831
53839
  * omitted. Meta's attribution window is 7 days from click;
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1294",
39
+ version: "0.2.1295",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1294",
8
+ version: "0.2.1295",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1294",
3
+ "version": "0.2.1295",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -15026,8 +15026,9 @@ export const listWhatsAppConversions = <ThrowOnError extends boolean = false>(op
15026
15026
  /**
15027
15027
  * Send WhatsApp conversion event
15028
15028
  * Forward a WhatsApp Business Messaging conversion event (`LeadSubmitted`,
15029
- * `Purchase`, `AddToCart`, `InitiateCheckout`, `ViewContent`) to Meta's
15030
- * Conversions API with `action_source = business_messaging` and
15029
+ * `QualifiedLead`, `Purchase`, `AddToCart`, `InitiateCheckout`,
15030
+ * `ViewContent`, `OrderCreated`, `OrderCanceled`, `OrderReturned`) to
15031
+ * Meta's Conversions API with `action_source = business_messaging` and
15031
15032
  * `messaging_channel = whatsapp`. The endpoint looks up the originating
15032
15033
  * CTWA click ID (`ctwa_clid`) captured on the first inbound message of
15033
15034
  * the conversation and replays it on every event so Meta can attribute
@@ -4864,6 +4864,11 @@ export type ConversionEvent = {
4864
4864
  * for Business Messaging). `channel` is sent as the event's `messaging_channel`
4865
4865
  * (`instagram_direct` goes out as `instagram`). Each id lands in Meta's
4866
4866
  * `user_data` unhashed, and an id that does not belong to `channel` is ignored.
4867
+ * Meta accepts only its business messaging event names here (`LeadSubmitted`,
4868
+ * `QualifiedLead`, `Purchase`, `AddToCart`, `InitiateCheckout`, `ViewContent`,
4869
+ * `OrderCreated`, `OrderShipped`, `OrderDelivered`, `OrderCanceled`,
4870
+ * `OrderReturned`, `CartAbandoned`, `RatingProvided`, `ReviewProvided`);
4871
+ * `eventName` is forwarded unchanged.
4867
4872
  *
4868
4873
  */
4869
4874
  messaging?: {
@@ -54898,7 +54903,7 @@ export type ListWhatsAppConversionsResponse = ({
54898
54903
  */
54899
54904
  timestamp?: string;
54900
54905
  /**
54901
- * One of LeadSubmitted, Purchase, AddToCart, InitiateCheckout, ViewContent.
54906
+ * One of LeadSubmitted, QualifiedLead, Purchase, AddToCart, InitiateCheckout, ViewContent, OrderCreated, OrderCanceled, OrderReturned.
54902
54907
  */
54903
54908
  eventName?: string;
54904
54909
  conversationId?: (string) | null;
@@ -54927,9 +54932,8 @@ export type SendWhatsAppConversionData = {
54927
54932
  */
54928
54933
  accountId: string;
54929
54934
  /**
54930
- * Live-verified allowlist of event names accepted by Meta's
54931
- * CAPI for Business Messaging (Graph API v25.0). Other
54932
- * standard pixel events including `Lead`,
54935
+ * Event names accepted by Meta's CAPI for Business
54936
+ * Messaging. Other standard pixel events including `Lead`,
54933
54937
  * `CompleteRegistration`, `Subscribe`, `Schedule`, `Contact`,
54934
54938
  * `StartTrial`, `AddPaymentInfo`, `Search`, and
54935
54939
  * `SubmitApplication` are rejected with subcode 2804066
@@ -54937,10 +54941,14 @@ export type SendWhatsAppConversionData = {
54937
54941
  * `action_source = business_messaging` events. Custom event
54938
54942
  * names are also rejected.
54939
54943
  *
54940
- * Use `LeadSubmitted` (NOT `Lead`) for lead-style conversions.
54944
+ * Use `LeadSubmitted` (NOT `Lead`) when a lead comes in and
54945
+ * `QualifiedLead` once your team qualifies it. `OrderCreated`,
54946
+ * `OrderCanceled` and `OrderReturned` track an order placed in
54947
+ * the chat; send `value` and `currency` with them (and with
54948
+ * `Purchase`) to report the order amount.
54941
54949
  *
54942
54950
  */
54943
- eventName: 'LeadSubmitted' | 'Purchase' | 'AddToCart' | 'InitiateCheckout' | 'ViewContent';
54951
+ eventName: 'LeadSubmitted' | 'QualifiedLead' | 'Purchase' | 'AddToCart' | 'InitiateCheckout' | 'ViewContent' | 'OrderCreated' | 'OrderCanceled' | 'OrderReturned';
54944
54952
  /**
54945
54953
  * Unix seconds. Defaults to the time of the request when
54946
54954
  * omitted. Meta's attribution window is 7 days from click;