@zernio/node 0.2.1020 → 0.2.1022
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 +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -2
- package/src/generated/types.gen.ts +12 -4
package/dist/index.d.mts
CHANGED
|
@@ -18397,6 +18397,10 @@ type UnpublishPostData = {
|
|
|
18397
18397
|
* The platform to delete the post from
|
|
18398
18398
|
*/
|
|
18399
18399
|
platform: 'threads' | 'facebook' | 'twitter' | 'linkedin' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram';
|
|
18400
|
+
/**
|
|
18401
|
+
* Which account's copy to delete when the post was published to several accounts on this platform. Required in that case.
|
|
18402
|
+
*/
|
|
18403
|
+
accountId?: string;
|
|
18400
18404
|
};
|
|
18401
18405
|
path: {
|
|
18402
18406
|
postId: string;
|
|
@@ -18420,7 +18424,7 @@ type EditPostData = {
|
|
|
18420
18424
|
*/
|
|
18421
18425
|
content: string;
|
|
18422
18426
|
/**
|
|
18423
|
-
* Which account's copy of the post to edit when the post was published to several accounts on the same platform
|
|
18427
|
+
* Which account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
|
|
18424
18428
|
*
|
|
18425
18429
|
*/
|
|
18426
18430
|
accountId?: string;
|
|
@@ -18444,7 +18448,7 @@ type EditPostResponse = ({
|
|
|
18444
18448
|
});
|
|
18445
18449
|
type EditPostError = (unknown | {
|
|
18446
18450
|
error?: string;
|
|
18447
|
-
});
|
|
18451
|
+
} | ErrorResponse);
|
|
18448
18452
|
type UpdatePostMetadataData = {
|
|
18449
18453
|
body: {
|
|
18450
18454
|
/**
|
|
@@ -18456,7 +18460,7 @@ type UpdatePostMetadataData = {
|
|
|
18456
18460
|
*/
|
|
18457
18461
|
videoId?: string;
|
|
18458
18462
|
/**
|
|
18459
|
-
* Zernio account ID
|
|
18463
|
+
* Zernio account ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
|
|
18460
18464
|
*/
|
|
18461
18465
|
accountId?: string;
|
|
18462
18466
|
/**
|
|
@@ -39914,7 +39918,7 @@ type GetAdTreeData = {
|
|
|
39914
39918
|
*/
|
|
39915
39919
|
adAccountId?: string;
|
|
39916
39920
|
/**
|
|
39917
|
-
* Restrict the tree to
|
|
39921
|
+
* Restrict the tree to one or more campaigns by platform campaign id (the id the platform assigns, e.g. Meta's numeric campaign id). Comma-separate up to 100 ids (`?campaignId=123,456`). Filters the campaign set itself, so it works regardless of account size and pagination. Pass this when you already hold campaign ids (for example from an `ad.status_changed` webhook) instead of paging the whole tree.
|
|
39918
39922
|
*/
|
|
39919
39923
|
campaignId?: string;
|
|
39920
39924
|
/**
|
|
@@ -39974,6 +39978,10 @@ type GetAdTreeData = {
|
|
|
39974
39978
|
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
39975
39979
|
*/
|
|
39976
39980
|
toDate?: string;
|
|
39981
|
+
/**
|
|
39982
|
+
* Return only campaigns with a change stored since this time (ISO 8601 with offset, e.g. `2026-09-30T10:00:00Z`): a new ad, or a change to any ad's status, review status, name, budget or creative. Each matching campaign comes back whole (every ad set and ad). Metrics are not a change: to refresh numbers, filter with `hasDelivery=true` and a date range instead. Combines with every other filter (with `hasDelivery`/`minSpend` a campaign must match both).
|
|
39983
|
+
*/
|
|
39984
|
+
updatedSince?: string;
|
|
39977
39985
|
};
|
|
39978
39986
|
};
|
|
39979
39987
|
type GetAdTreeResponse = (AdTreeResponse | (AdTreeResponse & {
|
package/dist/index.d.ts
CHANGED
|
@@ -18397,6 +18397,10 @@ type UnpublishPostData = {
|
|
|
18397
18397
|
* The platform to delete the post from
|
|
18398
18398
|
*/
|
|
18399
18399
|
platform: 'threads' | 'facebook' | 'twitter' | 'linkedin' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram';
|
|
18400
|
+
/**
|
|
18401
|
+
* Which account's copy to delete when the post was published to several accounts on this platform. Required in that case.
|
|
18402
|
+
*/
|
|
18403
|
+
accountId?: string;
|
|
18400
18404
|
};
|
|
18401
18405
|
path: {
|
|
18402
18406
|
postId: string;
|
|
@@ -18420,7 +18424,7 @@ type EditPostData = {
|
|
|
18420
18424
|
*/
|
|
18421
18425
|
content: string;
|
|
18422
18426
|
/**
|
|
18423
|
-
* Which account's copy of the post to edit when the post was published to several accounts on the same platform
|
|
18427
|
+
* Which account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
|
|
18424
18428
|
*
|
|
18425
18429
|
*/
|
|
18426
18430
|
accountId?: string;
|
|
@@ -18444,7 +18448,7 @@ type EditPostResponse = ({
|
|
|
18444
18448
|
});
|
|
18445
18449
|
type EditPostError = (unknown | {
|
|
18446
18450
|
error?: string;
|
|
18447
|
-
});
|
|
18451
|
+
} | ErrorResponse);
|
|
18448
18452
|
type UpdatePostMetadataData = {
|
|
18449
18453
|
body: {
|
|
18450
18454
|
/**
|
|
@@ -18456,7 +18460,7 @@ type UpdatePostMetadataData = {
|
|
|
18456
18460
|
*/
|
|
18457
18461
|
videoId?: string;
|
|
18458
18462
|
/**
|
|
18459
|
-
* Zernio account ID
|
|
18463
|
+
* Zernio account ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
|
|
18460
18464
|
*/
|
|
18461
18465
|
accountId?: string;
|
|
18462
18466
|
/**
|
|
@@ -39914,7 +39918,7 @@ type GetAdTreeData = {
|
|
|
39914
39918
|
*/
|
|
39915
39919
|
adAccountId?: string;
|
|
39916
39920
|
/**
|
|
39917
|
-
* Restrict the tree to
|
|
39921
|
+
* Restrict the tree to one or more campaigns by platform campaign id (the id the platform assigns, e.g. Meta's numeric campaign id). Comma-separate up to 100 ids (`?campaignId=123,456`). Filters the campaign set itself, so it works regardless of account size and pagination. Pass this when you already hold campaign ids (for example from an `ad.status_changed` webhook) instead of paging the whole tree.
|
|
39918
39922
|
*/
|
|
39919
39923
|
campaignId?: string;
|
|
39920
39924
|
/**
|
|
@@ -39974,6 +39978,10 @@ type GetAdTreeData = {
|
|
|
39974
39978
|
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
39975
39979
|
*/
|
|
39976
39980
|
toDate?: string;
|
|
39981
|
+
/**
|
|
39982
|
+
* Return only campaigns with a change stored since this time (ISO 8601 with offset, e.g. `2026-09-30T10:00:00Z`): a new ad, or a change to any ad's status, review status, name, budget or creative. Each matching campaign comes back whole (every ad set and ad). Metrics are not a change: to refresh numbers, filter with `hasDelivery=true` and a date range instead. Combines with every other filter (with `hasDelivery`/`minSpend` a campaign must match both).
|
|
39983
|
+
*/
|
|
39984
|
+
updatedSince?: string;
|
|
39977
39985
|
};
|
|
39978
39986
|
};
|
|
39979
39987
|
type GetAdTreeResponse = (AdTreeResponse | (AdTreeResponse & {
|
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.1022",
|
|
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.1022",
|
|
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
|
@@ -1078,8 +1078,8 @@ export const unpublishPost = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1078
1078
|
* Edit the text of an already-published post. Supported on X, Discord,
|
|
1079
1079
|
* Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube,
|
|
1080
1080
|
* and Slack. When a post was published to several accounts on the same platform,
|
|
1081
|
-
* pass `accountId` to pick which account's copy to edit (
|
|
1082
|
-
*
|
|
1081
|
+
* pass `accountId` to pick which account's copy to edit (without it the request
|
|
1082
|
+
* returns 409). Each platform enforces its own rules:
|
|
1083
1083
|
*
|
|
1084
1084
|
* **X**
|
|
1085
1085
|
* - Connected X account must have an active X Premium subscription
|
|
@@ -17217,6 +17217,10 @@ export type UnpublishPostData = {
|
|
|
17217
17217
|
* The platform to delete the post from
|
|
17218
17218
|
*/
|
|
17219
17219
|
platform: 'threads' | 'facebook' | 'twitter' | 'linkedin' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram';
|
|
17220
|
+
/**
|
|
17221
|
+
* Which account's copy to delete when the post was published to several accounts on this platform. Required in that case.
|
|
17222
|
+
*/
|
|
17223
|
+
accountId?: string;
|
|
17220
17224
|
};
|
|
17221
17225
|
path: {
|
|
17222
17226
|
postId: string;
|
|
@@ -17243,7 +17247,7 @@ export type EditPostData = {
|
|
|
17243
17247
|
*/
|
|
17244
17248
|
content: string;
|
|
17245
17249
|
/**
|
|
17246
|
-
* Which account's copy of the post to edit when the post was published to several accounts on the same platform
|
|
17250
|
+
* Which account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
|
|
17247
17251
|
*
|
|
17248
17252
|
*/
|
|
17249
17253
|
accountId?: string;
|
|
@@ -17269,7 +17273,7 @@ export type EditPostResponse = ({
|
|
|
17269
17273
|
|
|
17270
17274
|
export type EditPostError = (unknown | {
|
|
17271
17275
|
error?: string;
|
|
17272
|
-
});
|
|
17276
|
+
} | ErrorResponse);
|
|
17273
17277
|
|
|
17274
17278
|
export type UpdatePostMetadataData = {
|
|
17275
17279
|
body: {
|
|
@@ -17282,7 +17286,7 @@ export type UpdatePostMetadataData = {
|
|
|
17282
17286
|
*/
|
|
17283
17287
|
videoId?: string;
|
|
17284
17288
|
/**
|
|
17285
|
-
* Zernio account ID
|
|
17289
|
+
* Zernio account ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
|
|
17286
17290
|
*/
|
|
17287
17291
|
accountId?: string;
|
|
17288
17292
|
/**
|
|
@@ -40309,7 +40313,7 @@ export type GetAdTreeData = {
|
|
|
40309
40313
|
*/
|
|
40310
40314
|
adAccountId?: string;
|
|
40311
40315
|
/**
|
|
40312
|
-
* Restrict the tree to
|
|
40316
|
+
* Restrict the tree to one or more campaigns by platform campaign id (the id the platform assigns, e.g. Meta's numeric campaign id). Comma-separate up to 100 ids (`?campaignId=123,456`). Filters the campaign set itself, so it works regardless of account size and pagination. Pass this when you already hold campaign ids (for example from an `ad.status_changed` webhook) instead of paging the whole tree.
|
|
40313
40317
|
*/
|
|
40314
40318
|
campaignId?: string;
|
|
40315
40319
|
/**
|
|
@@ -40369,6 +40373,10 @@ export type GetAdTreeData = {
|
|
|
40369
40373
|
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
40370
40374
|
*/
|
|
40371
40375
|
toDate?: string;
|
|
40376
|
+
/**
|
|
40377
|
+
* Return only campaigns with a change stored since this time (ISO 8601 with offset, e.g. `2026-09-30T10:00:00Z`): a new ad, or a change to any ad's status, review status, name, budget or creative. Each matching campaign comes back whole (every ad set and ad). Metrics are not a change: to refresh numbers, filter with `hasDelivery=true` and a date range instead. Combines with every other filter (with `hasDelivery`/`minSpend` a campaign must match both).
|
|
40378
|
+
*/
|
|
40379
|
+
updatedSince?: string;
|
|
40372
40380
|
};
|
|
40373
40381
|
};
|
|
40374
40382
|
|