@getlatedev/node 0.2.1293 → 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?: {
@@ -51607,7 +51612,7 @@ type SearchAdTargetingData = {
51607
51612
  */
51608
51613
  limit?: number;
51609
51614
  /**
51610
- * Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior` and `workIndustry` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
51615
+ * Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior`, `workIndustry` and `interestSuggestion` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
51611
51616
  */
51612
51617
  locale?: string;
51613
51618
  /**
@@ -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?: {
@@ -51607,7 +51612,7 @@ type SearchAdTargetingData = {
51607
51612
  */
51608
51613
  limit?: number;
51609
51614
  /**
51610
- * Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior` and `workIndustry` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
51615
+ * Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior`, `workIndustry` and `interestSuggestion` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
51611
51616
  */
51612
51617
  locale?: string;
51613
51618
  /**
@@ -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.1293",
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.1293",
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.1293",
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",
@@ -13726,8 +13726,10 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
13726
13726
  * comma-separated (`NBA,Michael Jordan`) or, for names that contain a comma, a JSON array of
13727
13727
  * strings (`["Earth, Wind & Fire","Yoga"]`, URL-encoded). A `q` starting with `[` is always read as
13728
13728
  * JSON. A `q` with no name or malformed JSON returns 400 naming `q`. Meta also suggests behaviors
13729
- * and demographics; Zernio keeps only interests (entries whose `path` starts with `Interests`), so
13730
- * every id goes in `TargetingSpec.interests`, like `interest` results. Zernio asks Meta for three
13729
+ * and demographics; Zernio keeps only interests, so every id goes in `TargetingSpec.interests`, like
13730
+ * `interest` results. Zernio classifies them with a Meta call pinned to `en_US` (ids whose `path`
13731
+ * starts with `Interests`). Without `locale` results are in English; with another `locale`, a second
13732
+ * call in that locale returns the same interests with localized names and `path`. Zernio asks Meta for three
13731
13733
  * times `limit` (at most 100) before filtering, so fewer than `limit` results can come back. Meta
13732
13734
  * weights the first name heavily: a multi-name `q` mostly returns suggestions for the first one
13733
13735
  * - `behavior`: Meta, TikTok and LinkedIn, matched by name; ids feed `TargetingSpec.behaviors`.
@@ -13856,7 +13858,7 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
13856
13858
  *
13857
13859
  * Meta language: Meta matches `q` against names in one language and returns names and `path` in
13858
13860
  * that language. Pass `locale` (e.g. `pl_PL`) to choose it. Without `locale`, the `behavior` and
13859
- * `workIndustry` catalogs are in `en_US`, and `interest`, `interestSuggestion`, `geo`, `workPosition`
13861
+ * `workIndustry` catalogs and `interestSuggestion` are in `en_US`, and `interest`, `geo`, `workPosition`
13860
13862
  * and `workEmployer` follow the language of the Facebook user who connected the account (so a
13861
13863
  * Russian-language Facebook user gets Russian paths, and Polish names need `locale=pl_PL`).
13862
13864
  * A non-English `behavior` or `workIndustry` query without `locale` never matches, so pass the
@@ -15024,8 +15026,9 @@ export const listWhatsAppConversions = <ThrowOnError extends boolean = false>(op
15024
15026
  /**
15025
15027
  * Send WhatsApp conversion event
15026
15028
  * Forward a WhatsApp Business Messaging conversion event (`LeadSubmitted`,
15027
- * `Purchase`, `AddToCart`, `InitiateCheckout`, `ViewContent`) to Meta's
15028
- * 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
15029
15032
  * `messaging_channel = whatsapp`. The endpoint looks up the originating
15030
15033
  * CTWA click ID (`ctwa_clid`) captured on the first inbound message of
15031
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?: {
@@ -52554,7 +52559,7 @@ export type SearchAdTargetingData = {
52554
52559
  */
52555
52560
  limit?: number;
52556
52561
  /**
52557
- * Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior` and `workIndustry` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
52562
+ * Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior`, `workIndustry` and `interestSuggestion` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
52558
52563
  */
52559
52564
  locale?: string;
52560
52565
  /**
@@ -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;