@zernio/node 0.2.984 → 0.2.986
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 +17 -7
- package/dist/index.d.ts +17 -7
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +17 -7
package/dist/index.d.mts
CHANGED
|
@@ -1960,7 +1960,7 @@ type Ad = {
|
|
|
1960
1960
|
*/
|
|
1961
1961
|
status?: (AdStatus);
|
|
1962
1962
|
/**
|
|
1963
|
-
* The ad's own on/off
|
|
1963
|
+
* The ad's own on/off switch as configured on the platform, independent of its parents: an ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. Sources: Meta `configured_status`, TikTok ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED), ChatGPT (OpenAI) ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI). Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta, TikTok and OpenAI ads created or synced after the field was added for that platform; null otherwise.
|
|
1964
1964
|
*/
|
|
1965
1965
|
configuredStatus?: (string) | null;
|
|
1966
1966
|
/**
|
|
@@ -2272,6 +2272,9 @@ type Ad = {
|
|
|
2272
2272
|
targeting?: {
|
|
2273
2273
|
[key: string]: unknown;
|
|
2274
2274
|
};
|
|
2275
|
+
/**
|
|
2276
|
+
* Delivery window as UTC instants. For ads created through Zernio this is the start and end the platform stored (on TikTok, read back from the ad group, whose schedule times TikTok keeps in UTC); `startDate` is the creation time only when no start was requested.
|
|
2277
|
+
*/
|
|
2275
2278
|
schedule?: {
|
|
2276
2279
|
startDate?: string;
|
|
2277
2280
|
endDate?: string;
|
|
@@ -2356,7 +2359,7 @@ type AdCampaign = {
|
|
|
2356
2359
|
*/
|
|
2357
2360
|
reviewStatus?: (AdReviewStatus | null);
|
|
2358
2361
|
/**
|
|
2359
|
-
* Raw platform-level campaign status (Meta `effective_status`; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived).
|
|
2362
|
+
* Raw platform-level campaign status (Meta `effective_status`; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived; TikTok: the campaign's own switch `operation_status`, ENABLE / DISABLE).
|
|
2360
2363
|
*/
|
|
2361
2364
|
platformCampaignStatus?: (string) | null;
|
|
2362
2365
|
/**
|
|
@@ -3233,7 +3236,7 @@ type AdTreeCampaign = {
|
|
|
3233
3236
|
*/
|
|
3234
3237
|
reviewStatus?: (AdReviewStatus | null);
|
|
3235
3238
|
/**
|
|
3236
|
-
* Raw platform-level campaign status (Meta `effective_status`: ACTIVE, PAUSED, DELETED, ARCHIVED, IN_PROCESS, WITH_ISSUES; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived, independent of the delivery `status`). Distinct from per-ad `platformStatus`.
|
|
3239
|
+
* Raw platform-level campaign status (Meta `effective_status`: ACTIVE, PAUSED, DELETED, ARCHIVED, IN_PROCESS, WITH_ISSUES; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived, independent of the delivery `status`; TikTok: the campaign's own switch `operation_status`, ENABLE / DISABLE). Distinct from per-ad `platformStatus`.
|
|
3237
3240
|
*/
|
|
3238
3241
|
platformCampaignStatus?: (string) | null;
|
|
3239
3242
|
/**
|
|
@@ -38406,6 +38409,9 @@ type ListAdSetsResponse = ({
|
|
|
38406
38409
|
platform?: string;
|
|
38407
38410
|
adSetName?: (string) | null;
|
|
38408
38411
|
status?: (string) | null;
|
|
38412
|
+
/**
|
|
38413
|
+
* Raw platform ad set status. On TikTok the ad group's own switch `operation_status` (ENABLE / DISABLE), independent of its campaign.
|
|
38414
|
+
*/
|
|
38409
38415
|
platformAdSetStatus?: (string) | null;
|
|
38410
38416
|
platformCampaignId?: (string) | null;
|
|
38411
38417
|
platformAdAccountId?: string;
|
|
@@ -44104,13 +44110,17 @@ type CreateStandaloneAdData = {
|
|
|
44104
44110
|
[key: string]: (number);
|
|
44105
44111
|
};
|
|
44106
44112
|
/**
|
|
44107
|
-
* Required for lifetime budgets
|
|
44113
|
+
* Required for lifetime budgets. On TikTok a value without an offset (`YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DD`) is read in the ad account timezone.
|
|
44108
44114
|
*/
|
|
44109
44115
|
endDate?: string;
|
|
44110
44116
|
/**
|
|
44111
|
-
*
|
|
44112
|
-
*
|
|
44113
|
-
*
|
|
44117
|
+
* Ad-set start time (ISO 8601, e.g. "2026-06-10T09:00:00Z"), mapped to the ad set's
|
|
44118
|
+
* start (Meta `start_time`, TikTok ad group `schedule_start_time`, LinkedIn / Pinterest / X
|
|
44119
|
+
* / Google campaign start). When omitted the ad starts delivering immediately. For lifetime
|
|
44120
|
+
* budgets Meta also requires `endDate`. On TikTok a value without an offset
|
|
44121
|
+
* (`YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DD`) is read in the ad account timezone. The created
|
|
44122
|
+
* ad's `schedule` echoes the start and end the platform stored, as UTC instants. Same field
|
|
44123
|
+
* as on `POST /v1/ads/boost`.
|
|
44114
44124
|
*
|
|
44115
44125
|
*/
|
|
44116
44126
|
startDate?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1960,7 +1960,7 @@ type Ad = {
|
|
|
1960
1960
|
*/
|
|
1961
1961
|
status?: (AdStatus);
|
|
1962
1962
|
/**
|
|
1963
|
-
* The ad's own on/off
|
|
1963
|
+
* The ad's own on/off switch as configured on the platform, independent of its parents: an ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. Sources: Meta `configured_status`, TikTok ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED), ChatGPT (OpenAI) ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI). Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta, TikTok and OpenAI ads created or synced after the field was added for that platform; null otherwise.
|
|
1964
1964
|
*/
|
|
1965
1965
|
configuredStatus?: (string) | null;
|
|
1966
1966
|
/**
|
|
@@ -2272,6 +2272,9 @@ type Ad = {
|
|
|
2272
2272
|
targeting?: {
|
|
2273
2273
|
[key: string]: unknown;
|
|
2274
2274
|
};
|
|
2275
|
+
/**
|
|
2276
|
+
* Delivery window as UTC instants. For ads created through Zernio this is the start and end the platform stored (on TikTok, read back from the ad group, whose schedule times TikTok keeps in UTC); `startDate` is the creation time only when no start was requested.
|
|
2277
|
+
*/
|
|
2275
2278
|
schedule?: {
|
|
2276
2279
|
startDate?: string;
|
|
2277
2280
|
endDate?: string;
|
|
@@ -2356,7 +2359,7 @@ type AdCampaign = {
|
|
|
2356
2359
|
*/
|
|
2357
2360
|
reviewStatus?: (AdReviewStatus | null);
|
|
2358
2361
|
/**
|
|
2359
|
-
* Raw platform-level campaign status (Meta `effective_status`; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived).
|
|
2362
|
+
* Raw platform-level campaign status (Meta `effective_status`; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived; TikTok: the campaign's own switch `operation_status`, ENABLE / DISABLE).
|
|
2360
2363
|
*/
|
|
2361
2364
|
platformCampaignStatus?: (string) | null;
|
|
2362
2365
|
/**
|
|
@@ -3233,7 +3236,7 @@ type AdTreeCampaign = {
|
|
|
3233
3236
|
*/
|
|
3234
3237
|
reviewStatus?: (AdReviewStatus | null);
|
|
3235
3238
|
/**
|
|
3236
|
-
* Raw platform-level campaign status (Meta `effective_status`: ACTIVE, PAUSED, DELETED, ARCHIVED, IN_PROCESS, WITH_ISSUES; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived, independent of the delivery `status`). Distinct from per-ad `platformStatus`.
|
|
3239
|
+
* Raw platform-level campaign status (Meta `effective_status`: ACTIVE, PAUSED, DELETED, ARCHIVED, IN_PROCESS, WITH_ISSUES; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived, independent of the delivery `status`; TikTok: the campaign's own switch `operation_status`, ENABLE / DISABLE). Distinct from per-ad `platformStatus`.
|
|
3237
3240
|
*/
|
|
3238
3241
|
platformCampaignStatus?: (string) | null;
|
|
3239
3242
|
/**
|
|
@@ -38406,6 +38409,9 @@ type ListAdSetsResponse = ({
|
|
|
38406
38409
|
platform?: string;
|
|
38407
38410
|
adSetName?: (string) | null;
|
|
38408
38411
|
status?: (string) | null;
|
|
38412
|
+
/**
|
|
38413
|
+
* Raw platform ad set status. On TikTok the ad group's own switch `operation_status` (ENABLE / DISABLE), independent of its campaign.
|
|
38414
|
+
*/
|
|
38409
38415
|
platformAdSetStatus?: (string) | null;
|
|
38410
38416
|
platformCampaignId?: (string) | null;
|
|
38411
38417
|
platformAdAccountId?: string;
|
|
@@ -44104,13 +44110,17 @@ type CreateStandaloneAdData = {
|
|
|
44104
44110
|
[key: string]: (number);
|
|
44105
44111
|
};
|
|
44106
44112
|
/**
|
|
44107
|
-
* Required for lifetime budgets
|
|
44113
|
+
* Required for lifetime budgets. On TikTok a value without an offset (`YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DD`) is read in the ad account timezone.
|
|
44108
44114
|
*/
|
|
44109
44115
|
endDate?: string;
|
|
44110
44116
|
/**
|
|
44111
|
-
*
|
|
44112
|
-
*
|
|
44113
|
-
*
|
|
44117
|
+
* Ad-set start time (ISO 8601, e.g. "2026-06-10T09:00:00Z"), mapped to the ad set's
|
|
44118
|
+
* start (Meta `start_time`, TikTok ad group `schedule_start_time`, LinkedIn / Pinterest / X
|
|
44119
|
+
* / Google campaign start). When omitted the ad starts delivering immediately. For lifetime
|
|
44120
|
+
* budgets Meta also requires `endDate`. On TikTok a value without an offset
|
|
44121
|
+
* (`YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DD`) is read in the ad account timezone. The created
|
|
44122
|
+
* ad's `schedule` echoes the start and end the platform stored, as UTC instants. Same field
|
|
44123
|
+
* as on `POST /v1/ads/boost`.
|
|
44114
44124
|
*
|
|
44115
44125
|
*/
|
|
44116
44126
|
startDate?: 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.986",
|
|
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.986",
|
|
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
|
@@ -92,7 +92,7 @@ export type Ad = {
|
|
|
92
92
|
*/
|
|
93
93
|
status?: (AdStatus);
|
|
94
94
|
/**
|
|
95
|
-
* The ad's own on/off
|
|
95
|
+
* The ad's own on/off switch as configured on the platform, independent of its parents: an ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. Sources: Meta `configured_status`, TikTok ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED), ChatGPT (OpenAI) ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI). Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta, TikTok and OpenAI ads created or synced after the field was added for that platform; null otherwise.
|
|
96
96
|
*/
|
|
97
97
|
configuredStatus?: (string) | null;
|
|
98
98
|
/**
|
|
@@ -404,6 +404,9 @@ export type Ad = {
|
|
|
404
404
|
targeting?: {
|
|
405
405
|
[key: string]: unknown;
|
|
406
406
|
};
|
|
407
|
+
/**
|
|
408
|
+
* Delivery window as UTC instants. For ads created through Zernio this is the start and end the platform stored (on TikTok, read back from the ad group, whose schedule times TikTok keeps in UTC); `startDate` is the creation time only when no start was requested.
|
|
409
|
+
*/
|
|
407
410
|
schedule?: {
|
|
408
411
|
startDate?: string;
|
|
409
412
|
endDate?: string;
|
|
@@ -496,7 +499,7 @@ export type AdCampaign = {
|
|
|
496
499
|
*/
|
|
497
500
|
reviewStatus?: (AdReviewStatus | null);
|
|
498
501
|
/**
|
|
499
|
-
* Raw platform-level campaign status (Meta `effective_status`; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived).
|
|
502
|
+
* Raw platform-level campaign status (Meta `effective_status`; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived; TikTok: the campaign's own switch `operation_status`, ENABLE / DISABLE).
|
|
500
503
|
*/
|
|
501
504
|
platformCampaignStatus?: (string) | null;
|
|
502
505
|
/**
|
|
@@ -1401,7 +1404,7 @@ export type AdTreeCampaign = {
|
|
|
1401
1404
|
*/
|
|
1402
1405
|
reviewStatus?: (AdReviewStatus | null);
|
|
1403
1406
|
/**
|
|
1404
|
-
* Raw platform-level campaign status (Meta `effective_status`: ACTIVE, PAUSED, DELETED, ARCHIVED, IN_PROCESS, WITH_ISSUES; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived, independent of the delivery `status`). Distinct from per-ad `platformStatus`.
|
|
1407
|
+
* Raw platform-level campaign status (Meta `effective_status`: ACTIVE, PAUSED, DELETED, ARCHIVED, IN_PROCESS, WITH_ISSUES; ChatGPT (OpenAI): the campaign's own switch, active / paused / archived, independent of the delivery `status`; TikTok: the campaign's own switch `operation_status`, ENABLE / DISABLE). Distinct from per-ad `platformStatus`.
|
|
1405
1408
|
*/
|
|
1406
1409
|
platformCampaignStatus?: (string) | null;
|
|
1407
1410
|
/**
|
|
@@ -38806,6 +38809,9 @@ export type ListAdSetsResponse = ({
|
|
|
38806
38809
|
platform?: string;
|
|
38807
38810
|
adSetName?: (string) | null;
|
|
38808
38811
|
status?: (string) | null;
|
|
38812
|
+
/**
|
|
38813
|
+
* Raw platform ad set status. On TikTok the ad group's own switch `operation_status` (ENABLE / DISABLE), independent of its campaign.
|
|
38814
|
+
*/
|
|
38809
38815
|
platformAdSetStatus?: (string) | null;
|
|
38810
38816
|
platformCampaignId?: (string) | null;
|
|
38811
38817
|
platformAdAccountId?: string;
|
|
@@ -44845,13 +44851,17 @@ export type CreateStandaloneAdData = {
|
|
|
44845
44851
|
[key: string]: (number);
|
|
44846
44852
|
};
|
|
44847
44853
|
/**
|
|
44848
|
-
* Required for lifetime budgets
|
|
44854
|
+
* Required for lifetime budgets. On TikTok a value without an offset (`YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DD`) is read in the ad account timezone.
|
|
44849
44855
|
*/
|
|
44850
44856
|
endDate?: string;
|
|
44851
44857
|
/**
|
|
44852
|
-
*
|
|
44853
|
-
*
|
|
44854
|
-
*
|
|
44858
|
+
* Ad-set start time (ISO 8601, e.g. "2026-06-10T09:00:00Z"), mapped to the ad set's
|
|
44859
|
+
* start (Meta `start_time`, TikTok ad group `schedule_start_time`, LinkedIn / Pinterest / X
|
|
44860
|
+
* / Google campaign start). When omitted the ad starts delivering immediately. For lifetime
|
|
44861
|
+
* budgets Meta also requires `endDate`. On TikTok a value without an offset
|
|
44862
|
+
* (`YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DD`) is read in the ad account timezone. The created
|
|
44863
|
+
* ad's `schedule` echoes the start and end the platform stored, as UTC instants. Same field
|
|
44864
|
+
* as on `POST /v1/ads/boost`.
|
|
44855
44865
|
*
|
|
44856
44866
|
*/
|
|
44857
44867
|
startDate?: string;
|