@zernio/node 0.2.1176 → 0.2.1177
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -48431,7 +48431,7 @@ type ListLeadsError = (ErrorResponse | unknown);
|
|
|
48431
48431
|
type ListLeadFormsData = {
|
|
48432
48432
|
query: {
|
|
48433
48433
|
/**
|
|
48434
|
-
* Connected Meta ads, Facebook or LinkedIn ads account ID. A Meta ads connection resolves its Page through the Facebook account linked to the same profile.
|
|
48434
|
+
* Connected Meta ads, Facebook, Instagram or LinkedIn ads account ID. A Meta ads connection resolves its Page through the Facebook account linked to the same profile; an Instagram account uses the Page its ads run under (its own linked Page, else the Facebook or business-login Meta ads account on the same profile).
|
|
48435
48435
|
*/
|
|
48436
48436
|
accountId: string;
|
|
48437
48437
|
/**
|
|
@@ -48644,7 +48644,7 @@ type GetLeadFormData = {
|
|
|
48644
48644
|
};
|
|
48645
48645
|
query: {
|
|
48646
48646
|
/**
|
|
48647
|
-
* Connected Meta ads, facebook or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile.
|
|
48647
|
+
* Connected Meta ads, facebook, instagram or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile; an Instagram account uses the Page its ads run under (its own linked Page, else the Facebook or business-login Meta ads account on the same profile).
|
|
48648
48648
|
*/
|
|
48649
48649
|
accountId: string;
|
|
48650
48650
|
/**
|
|
@@ -48670,7 +48670,7 @@ type ArchiveLeadFormData = {
|
|
|
48670
48670
|
};
|
|
48671
48671
|
query: {
|
|
48672
48672
|
/**
|
|
48673
|
-
* Connected Meta ads, facebook or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile.
|
|
48673
|
+
* Connected Meta ads, facebook, instagram or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile; an Instagram account uses the Page its ads run under (its own linked Page, else the Facebook or business-login Meta ads account on the same profile).
|
|
48674
48674
|
*/
|
|
48675
48675
|
accountId: string;
|
|
48676
48676
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -48431,7 +48431,7 @@ type ListLeadsError = (ErrorResponse | unknown);
|
|
|
48431
48431
|
type ListLeadFormsData = {
|
|
48432
48432
|
query: {
|
|
48433
48433
|
/**
|
|
48434
|
-
* Connected Meta ads, Facebook or LinkedIn ads account ID. A Meta ads connection resolves its Page through the Facebook account linked to the same profile.
|
|
48434
|
+
* Connected Meta ads, Facebook, Instagram or LinkedIn ads account ID. A Meta ads connection resolves its Page through the Facebook account linked to the same profile; an Instagram account uses the Page its ads run under (its own linked Page, else the Facebook or business-login Meta ads account on the same profile).
|
|
48435
48435
|
*/
|
|
48436
48436
|
accountId: string;
|
|
48437
48437
|
/**
|
|
@@ -48644,7 +48644,7 @@ type GetLeadFormData = {
|
|
|
48644
48644
|
};
|
|
48645
48645
|
query: {
|
|
48646
48646
|
/**
|
|
48647
|
-
* Connected Meta ads, facebook or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile.
|
|
48647
|
+
* Connected Meta ads, facebook, instagram or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile; an Instagram account uses the Page its ads run under (its own linked Page, else the Facebook or business-login Meta ads account on the same profile).
|
|
48648
48648
|
*/
|
|
48649
48649
|
accountId: string;
|
|
48650
48650
|
/**
|
|
@@ -48670,7 +48670,7 @@ type ArchiveLeadFormData = {
|
|
|
48670
48670
|
};
|
|
48671
48671
|
query: {
|
|
48672
48672
|
/**
|
|
48673
|
-
* Connected Meta ads, facebook or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile.
|
|
48673
|
+
* Connected Meta ads, facebook, instagram or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile; an Instagram account uses the Page its ads run under (its own linked Page, else the Facebook or business-login Meta ads account on the same profile).
|
|
48674
48674
|
*/
|
|
48675
48675
|
accountId: string;
|
|
48676
48676
|
};
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1177",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1177",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -12856,7 +12856,7 @@ export const listLeadForms = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
12856
12856
|
* Create a lead form
|
|
12857
12857
|
* Creates a lead form on a Facebook Page or LinkedIn Company Page to collect contact details from ads.
|
|
12858
12858
|
*
|
|
12859
|
-
* The form content goes inside `platformSpecificData` for both platforms (the shape is selected by the accountId's platform). Meta: created on the connected Facebook Page (POST /{page-id}/leadgen_forms), where `accountId` may be the `metaads` ads connection (its Page comes from the Facebook account linked to the same profile) or the Facebook account itself; the old top-level Meta fields (questions, thankYou*, contextCard, …) are DEPRECATED but still accepted while platformSpecificData is absent; mixing both shapes is a 400. LinkedIn: created on the ad account's Company Page. NOT idempotent: a retry creates a second form. Meta prefilled question types (EMAIL, PHONE, FULL_NAME, …) must omit label/key; CUSTOM questions require both. LinkedIn exposes only free-text and multiple-choice questions via API (prefilled-from-profile fields are Campaign Manager UI-only). Requires the Ads add-on.
|
|
12859
|
+
* The form content goes inside `platformSpecificData` for both platforms (the shape is selected by the accountId's platform). Meta: created on the connected Facebook Page (POST /{page-id}/leadgen_forms), where `accountId` may be the `metaads` ads connection (its Page comes from the Facebook account linked to the same profile), an Instagram account (the Page its ads run under: its own linked Page, else the Facebook or business-login Meta ads account on the same profile) or the Facebook account itself; the old top-level Meta fields (questions, thankYou*, contextCard, …) are DEPRECATED but still accepted while platformSpecificData is absent; mixing both shapes is a 400. LinkedIn: created on the ad account's Company Page. NOT idempotent: a retry creates a second form. Meta prefilled question types (EMAIL, PHONE, FULL_NAME, …) must omit label/key; CUSTOM questions require both. LinkedIn exposes only free-text and multiple-choice questions via API (prefilled-from-profile fields are Campaign Manager UI-only). Requires the Ads add-on.
|
|
12860
12860
|
*
|
|
12861
12861
|
*/
|
|
12862
12862
|
export const createLeadForm = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateLeadFormData, ThrowOnError>) => {
|
|
@@ -49252,7 +49252,7 @@ export type ListLeadsError = (ErrorResponse | unknown);
|
|
|
49252
49252
|
export type ListLeadFormsData = {
|
|
49253
49253
|
query: {
|
|
49254
49254
|
/**
|
|
49255
|
-
* Connected Meta ads, Facebook or LinkedIn ads account ID. A Meta ads connection resolves its Page through the Facebook account linked to the same profile.
|
|
49255
|
+
* Connected Meta ads, Facebook, Instagram or LinkedIn ads account ID. A Meta ads connection resolves its Page through the Facebook account linked to the same profile; an Instagram account uses the Page its ads run under (its own linked Page, else the Facebook or business-login Meta ads account on the same profile).
|
|
49256
49256
|
*/
|
|
49257
49257
|
accountId: string;
|
|
49258
49258
|
/**
|
|
@@ -49471,7 +49471,7 @@ export type GetLeadFormData = {
|
|
|
49471
49471
|
};
|
|
49472
49472
|
query: {
|
|
49473
49473
|
/**
|
|
49474
|
-
* Connected Meta ads, facebook or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile.
|
|
49474
|
+
* Connected Meta ads, facebook, instagram or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile; an Instagram account uses the Page its ads run under (its own linked Page, else the Facebook or business-login Meta ads account on the same profile).
|
|
49475
49475
|
*/
|
|
49476
49476
|
accountId: string;
|
|
49477
49477
|
/**
|
|
@@ -49500,7 +49500,7 @@ export type ArchiveLeadFormData = {
|
|
|
49500
49500
|
};
|
|
49501
49501
|
query: {
|
|
49502
49502
|
/**
|
|
49503
|
-
* Connected Meta ads, facebook or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile.
|
|
49503
|
+
* Connected Meta ads, facebook, instagram or linkedin ads account id (selects the platform). A Meta ads connection resolves its Page through the Facebook account linked to the same profile; an Instagram account uses the Page its ads run under (its own linked Page, else the Facebook or business-login Meta ads account on the same profile).
|
|
49504
49504
|
*/
|
|
49505
49505
|
accountId: string;
|
|
49506
49506
|
};
|