@zernio/node 0.2.1855 → 0.2.1857
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +36 -2
- package/src/generated/types.gen.ts +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -78519,7 +78519,7 @@ type ListLeadsResponse = ({
|
|
|
78519
78519
|
};
|
|
78520
78520
|
meta?: {
|
|
78521
78521
|
/**
|
|
78522
|
-
* Meta only, present when `accountId` is passed: when
|
|
78522
|
+
* Meta only, present when `accountId` is passed: when the recovery pass that catches leads the webhook missed last ran for the Page, failed or parked passes included, so not proof the forms were read. Null when no leads matched or before the first pass.
|
|
78523
78523
|
*/
|
|
78524
78524
|
lastCheckedAt?: (string) | null;
|
|
78525
78525
|
lastUpdated?: string;
|
|
@@ -79007,7 +79007,7 @@ type ListFormLeadsResponse = ({
|
|
|
79007
79007
|
*/
|
|
79008
79008
|
source?: 'persisted' | 'live';
|
|
79009
79009
|
/**
|
|
79010
|
-
* For persisted leads, when the recovery pass last
|
|
79010
|
+
* For persisted leads, when the recovery pass last ran for the Page, failed or parked passes included (null before the first one). It does not prove every lead is stored. For live reads, when Meta was read.
|
|
79011
79011
|
*/
|
|
79012
79012
|
lastCheckedAt?: (string) | null;
|
|
79013
79013
|
lastUpdated?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -78519,7 +78519,7 @@ type ListLeadsResponse = ({
|
|
|
78519
78519
|
};
|
|
78520
78520
|
meta?: {
|
|
78521
78521
|
/**
|
|
78522
|
-
* Meta only, present when `accountId` is passed: when
|
|
78522
|
+
* Meta only, present when `accountId` is passed: when the recovery pass that catches leads the webhook missed last ran for the Page, failed or parked passes included, so not proof the forms were read. Null when no leads matched or before the first pass.
|
|
78523
78523
|
*/
|
|
78524
78524
|
lastCheckedAt?: (string) | null;
|
|
78525
78525
|
lastUpdated?: string;
|
|
@@ -79007,7 +79007,7 @@ type ListFormLeadsResponse = ({
|
|
|
79007
79007
|
*/
|
|
79008
79008
|
source?: 'persisted' | 'live';
|
|
79009
79009
|
/**
|
|
79010
|
-
* For persisted leads, when the recovery pass last
|
|
79010
|
+
* For persisted leads, when the recovery pass last ran for the Page, failed or parked passes included (null before the first one). It does not prove every lead is stored. For live reads, when Meta was read.
|
|
79011
79011
|
*/
|
|
79012
79012
|
lastCheckedAt?: (string) | null;
|
|
79013
79013
|
lastUpdated?: string;
|
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.1857",
|
|
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.1857",
|
|
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
|
@@ -20199,6 +20199,16 @@ export const replaceGoogleListingGroupFilters = <ThrowOnError extends boolean =
|
|
|
20199
20199
|
*
|
|
20200
20200
|
* Media is fetched at confirm. An upload in Zernio's temporary storage is copied to permanent storage at staging, and the staged change points at the copy. A presigned URL returns 400 with `stage`.
|
|
20201
20201
|
*
|
|
20202
|
+
* ### Default changes
|
|
20203
|
+
*
|
|
20204
|
+
* Defaults this endpoint changed, with the version they took effect in, so a request can pin the previous behaviour by sending the field.
|
|
20205
|
+
*
|
|
20206
|
+
* | Version (date) | Field | Before | After |
|
|
20207
|
+
* |---|---|---|---|
|
|
20208
|
+
* | 1.516.0 (2026-11-06) | `campaignType` with `existingCampaignId` (Google) | `display` | The existing campaign's own type (Search, Display or Demand Gen; any other type returns 422) |
|
|
20209
|
+
*
|
|
20210
|
+
* The 1.516.0 changelog also listed `budgetLevel` and `retryOnServerError` for this endpoint; their defaults did not change in that version.
|
|
20211
|
+
*
|
|
20202
20212
|
* ### Idempotency
|
|
20203
20213
|
*
|
|
20204
20214
|
* This endpoint is not idempotent at the platform level: a blind retry creates a second campaign/ad set/ad. Send an `Idempotency-Key` header to make retries safe.
|
|
@@ -20386,7 +20396,9 @@ export const archiveLeadForm = <ThrowOnError extends boolean = false>(options: O
|
|
|
20386
20396
|
* List leads for a single form
|
|
20387
20397
|
* Lists the leads submitted through one Meta lead form.
|
|
20388
20398
|
*
|
|
20389
|
-
* It serves the leads Zernio stored when the form has
|
|
20399
|
+
* It serves the leads Zernio stored when the form has at least one stored lead matching `since`, newest stored first. Otherwise it reads them live from Meta. No parameter forces a live read, but a `since` later than every stored lead reads the first page live.
|
|
20400
|
+
*
|
|
20401
|
+
* Stored reads are all or nothing per form: once a stored lead matches, a lead the webhook missed appears only after recovery stores it.
|
|
20390
20402
|
*
|
|
20391
20403
|
* ### Accounts
|
|
20392
20404
|
*
|
|
@@ -20403,6 +20415,8 @@ export const archiveLeadForm = <ThrowOnError extends boolean = false>(options: O
|
|
|
20403
20415
|
*
|
|
20404
20416
|
* Reading this endpoint does not trigger that pass. A live read that finds leads only moves the Page's next pass forward.
|
|
20405
20417
|
*
|
|
20418
|
+
* No mode guarantees that every lead submitted in the last few minutes is on a page. To close a recovery window, read again from the start after the Page's next pass and deduplicate on `id`.
|
|
20419
|
+
*
|
|
20406
20420
|
* ### What recovery skips
|
|
20407
20421
|
*
|
|
20408
20422
|
* For a form with no stored lead, recovery reaches back 7 days. It reads only the first 200 forms Meta lists for a Page and skips archived or deleted forms. It stores at most 50 new leads per form per pass, leaving the rest for the next pass.
|
|
@@ -20411,7 +20425,9 @@ export const archiveLeadForm = <ThrowOnError extends boolean = false>(options: O
|
|
|
20411
20425
|
*
|
|
20412
20426
|
* ### meta.lastCheckedAt
|
|
20413
20427
|
*
|
|
20414
|
-
* For stored leads, it is when the recovery pass last
|
|
20428
|
+
* For stored leads, it is when the recovery pass last ran for the Page. That includes a pass that failed, and one parked because the account or the Page token is missing, which reads no forms. A pass cut short by the recovery job's time budget is not recorded.
|
|
20429
|
+
*
|
|
20430
|
+
* Passes can also skip forms, so the value can be recent while leads are missing, including on an empty page. It is `null` when the account has had no pass.
|
|
20415
20431
|
*
|
|
20416
20432
|
* For live reads, it is when Meta was read. With content retained, that read is cached for 5 minutes. With zero content retention, every read is live and uncached.
|
|
20417
20433
|
*
|
|
@@ -20419,6 +20435,24 @@ export const archiveLeadForm = <ThrowOnError extends boolean = false>(options: O
|
|
|
20419
20435
|
*
|
|
20420
20436
|
* Pass `pagination.cursor` back as `cursor` while `hasMore` is true. Pages are not a snapshot: leads stored after the first page, recovered ones included, sort first and appear only when you read from the start again. Deduplicate on `id`.
|
|
20421
20437
|
*
|
|
20438
|
+
* Stored pages walk Zernio's own ids, so a resumed cursor neither skips nor repeats leads that were stored when the walk started. `since` filters on Meta's created time.
|
|
20439
|
+
*
|
|
20440
|
+
* Live pages follow Meta's cursor and each page is cached separately for up to 5 minutes, so one walk can mix moments.
|
|
20441
|
+
*
|
|
20442
|
+
* A live cursor stays live even once leads are stored. A stored cursor does not survive a switch to zero content retention mid-walk: start again from the first page.
|
|
20443
|
+
*
|
|
20444
|
+
* ### Zero content retention
|
|
20445
|
+
*
|
|
20446
|
+
* Every page is read live from Meta, uncached, and nothing is stored. Completeness is what Meta returns. As on every live page, leads come without `leadId` and `status`, `createdTime` is Meta's and `lastCheckedAt` is the time of that read.
|
|
20447
|
+
*
|
|
20448
|
+
* The 48-hour sweep in the leads docs is about `lead.received` webhook delivery, not this endpoint.
|
|
20449
|
+
*
|
|
20450
|
+
* ### Limits
|
|
20451
|
+
*
|
|
20452
|
+
* `limit` is 1 to 100 (default 25). The plan's per-minute API rate limit applies, and live reads also count against Meta's own limits.
|
|
20453
|
+
*
|
|
20454
|
+
* The route needs the Ads add-on and has no per-request charge. Zernio does not expire stored leads on a schedule; live reads return what Meta still holds.
|
|
20455
|
+
*
|
|
20422
20456
|
*/
|
|
20423
20457
|
export const listFormLeads = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListFormLeadsData, ThrowOnError>) => {
|
|
20424
20458
|
return (options?.client ?? client).get<ListFormLeadsResponse, ListFormLeadsError, ThrowOnError>({
|
|
@@ -80359,7 +80359,7 @@ export type ListLeadsResponse = ({
|
|
|
80359
80359
|
};
|
|
80360
80360
|
meta?: {
|
|
80361
80361
|
/**
|
|
80362
|
-
* Meta only, present when `accountId` is passed: when
|
|
80362
|
+
* Meta only, present when `accountId` is passed: when the recovery pass that catches leads the webhook missed last ran for the Page, failed or parked passes included, so not proof the forms were read. Null when no leads matched or before the first pass.
|
|
80363
80363
|
*/
|
|
80364
80364
|
lastCheckedAt?: (string) | null;
|
|
80365
80365
|
lastUpdated?: string;
|
|
@@ -80871,7 +80871,7 @@ export type ListFormLeadsResponse = ({
|
|
|
80871
80871
|
*/
|
|
80872
80872
|
source?: 'persisted' | 'live';
|
|
80873
80873
|
/**
|
|
80874
|
-
* For persisted leads, when the recovery pass last
|
|
80874
|
+
* For persisted leads, when the recovery pass last ran for the Page, failed or parked passes included (null before the first one). It does not prove every lead is stored. For live reads, when Meta was read.
|
|
80875
80875
|
*/
|
|
80876
80876
|
lastCheckedAt?: (string) | null;
|
|
80877
80877
|
lastUpdated?: string;
|