@getlatedev/node 0.2.1339 → 0.2.1341
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 +30 -2
- package/dist/index.d.ts +30 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +31 -1
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.
|
|
39
|
+
version: "0.2.1341",
|
|
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.
|
|
8
|
+
version: "0.2.1341",
|
|
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
|
@@ -1105,6 +1105,7 @@ export type AdLead = {
|
|
|
1105
1105
|
fieldData?: Array<{
|
|
1106
1106
|
[key: string]: unknown;
|
|
1107
1107
|
}>;
|
|
1108
|
+
consents?: AdLeadConsents;
|
|
1108
1109
|
/**
|
|
1109
1110
|
* Meta leads only. `contacted` is set when the first WhatsApp message of a lead_received workflow is delivered, `unreachable` when it fails or the phone number is not valid.
|
|
1110
1111
|
*/
|
|
@@ -1127,6 +1128,22 @@ export type AdLead = {
|
|
|
1127
1128
|
*/
|
|
1128
1129
|
export type status2 = 'new' | 'contacted' | 'unreachable' | 'qualified' | 'converted' | 'disqualified';
|
|
1129
1130
|
|
|
1131
|
+
/**
|
|
1132
|
+
* One custom disclaimer checkbox on a Meta lead form (for example a TCPA call or SMS consent), as Meta returns it in custom_disclaimer_responses.
|
|
1133
|
+
*/
|
|
1134
|
+
export type AdLeadConsent = {
|
|
1135
|
+
/**
|
|
1136
|
+
* The checkbox key as Meta returns it: the one set in platformSpecificData.customDisclaimer.checkboxes[].key on POST /v1/ads/lead-forms, or otherwise a key Meta derives from the checkbox text, which can be long and contain spaces and punctuation.
|
|
1137
|
+
*/
|
|
1138
|
+
checkboxKey: string;
|
|
1139
|
+
isChecked: boolean;
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Meta lead forms only: the answer to every custom disclaimer checkbox, required or optional. Empty when the form has none, and may be empty on leads stored before 2026-10-22. LinkedIn leads do not carry the field.
|
|
1144
|
+
*/
|
|
1145
|
+
export type AdLeadConsents = Array<AdLeadConsent>;
|
|
1146
|
+
|
|
1130
1147
|
export type AdMetrics = {
|
|
1131
1148
|
spend?: number;
|
|
1132
1149
|
impressions?: number;
|
|
@@ -15979,6 +15996,10 @@ export type WebhookPayloadLead = {
|
|
|
15979
15996
|
fields: {
|
|
15980
15997
|
[key: string]: (string);
|
|
15981
15998
|
};
|
|
15999
|
+
/**
|
|
16000
|
+
* Sent on every delivery since 2026-10-25. Absent when an older event is redelivered, since redeliveries replay the stored payload.
|
|
16001
|
+
*/
|
|
16002
|
+
consents?: (AdLeadConsents);
|
|
15982
16003
|
/**
|
|
15983
16004
|
* True when the lead came from an organic post rather than a paid ad
|
|
15984
16005
|
*/
|
|
@@ -53594,9 +53615,17 @@ export type CreateLeadFormData = {
|
|
|
53594
53615
|
thankYouBody?: string;
|
|
53595
53616
|
thankYouButtonText?: string;
|
|
53596
53617
|
/**
|
|
53597
|
-
* Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page.
|
|
53618
|
+
* Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Case-insensitive, sent to Meta in uppercase. CALL_BUSINESS requires businessPhoneNumber and countryCode (a 400 otherwise). Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page.
|
|
53598
53619
|
*/
|
|
53599
53620
|
thankYouButtonType?: string;
|
|
53621
|
+
/**
|
|
53622
|
+
* International E.164 number the CALL_BUSINESS thank-you button dials (Meta thank_you_page.business_phone_number). It must start with + and the country calling code matching countryCode; spaces, dashes, dots and parentheses are stripped, and a local number such as 2025550123 is a 400. Required when thankYouButtonType is CALL_BUSINESS and a 400 with any other button type. Accepted only inside platformSpecificData: a top-level businessPhoneNumber is a 400.
|
|
53623
|
+
*/
|
|
53624
|
+
businessPhoneNumber?: string;
|
|
53625
|
+
/**
|
|
53626
|
+
* ISO 3166-1 alpha-2 country of businessPhoneNumber (Meta thank_you_page.country_code), sent in uppercase. Required when thankYouButtonType is CALL_BUSINESS and a 400 with any other button type. Accepted only inside platformSpecificData: a top-level countryCode is a 400.
|
|
53627
|
+
*/
|
|
53628
|
+
countryCode?: string;
|
|
53600
53629
|
thankYouWebsiteUrl?: string;
|
|
53601
53630
|
/**
|
|
53602
53631
|
* Sent as Meta thank_you_page.enable_messenger (boolean). Accepted only inside platformSpecificData: a top-level thankYouEnableMessenger is a 400.
|
|
@@ -53783,6 +53812,7 @@ export type ListFormLeadsResponse = ({
|
|
|
53783
53812
|
fieldData?: Array<{
|
|
53784
53813
|
[key: string]: unknown;
|
|
53785
53814
|
}>;
|
|
53815
|
+
consents?: AdLeadConsents;
|
|
53786
53816
|
}>;
|
|
53787
53817
|
pagination?: {
|
|
53788
53818
|
hasMore?: boolean;
|