@getlatedev/node 0.2.458 → 0.2.460
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 +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +19 -3
package/dist/index.d.mts
CHANGED
|
@@ -1409,6 +1409,10 @@ type Ad = {
|
|
|
1409
1409
|
* Meta `effective_object_story_id` — `{pageId}_{postId}` of the Facebook post the ad's engagement (comments) lives on. Pass to GET /v1/ads?effectiveObjectStoryId= to map a Business-Manager-visible post back to this ad; GET /v1/ads/{adId}/comments resolves comments against it.
|
|
1410
1410
|
*/
|
|
1411
1411
|
effectiveObjectStoryId?: (string) | null;
|
|
1412
|
+
/**
|
|
1413
|
+
* Facebook Page backing the creative (Meta only). What the `pageId` filter on /v1/ads, /v1/ads/campaigns and /v1/ads/tree matches against. Absent for non-Meta ads and rare Meta creatives with no page signal.
|
|
1414
|
+
*/
|
|
1415
|
+
pageId?: (string) | null;
|
|
1412
1416
|
/**
|
|
1413
1417
|
* Meta `effective_instagram_media_id` — the Instagram media ID of the boosted post the ad's engagement lives on. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
|
|
1414
1418
|
*/
|
|
@@ -24302,6 +24306,10 @@ type ListAdsData = {
|
|
|
24302
24306
|
* Page number (1-based)
|
|
24303
24307
|
*/
|
|
24304
24308
|
page?: number;
|
|
24309
|
+
/**
|
|
24310
|
+
* Meta only: Facebook Page ID. Returns only ads whose creative is backed by this Page (a Meta ad account serves ads for every Page in the Business Manager). Matches each ad's `creative.pageId`; ads with no page signal (rare IG-only creatives) never match. Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
|
|
24311
|
+
*/
|
|
24312
|
+
pageId?: string;
|
|
24305
24313
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
|
|
24306
24314
|
/**
|
|
24307
24315
|
* Meta ad ID. Returns the ad with this platform-side ad ID.
|
|
@@ -24427,6 +24435,10 @@ type ListAdCampaignsData = {
|
|
|
24427
24435
|
* Page number (1-based)
|
|
24428
24436
|
*/
|
|
24429
24437
|
page?: number;
|
|
24438
|
+
/**
|
|
24439
|
+
* Meta only: Facebook Page ID. Campaigns have no Page of their own, so this keeps campaigns having at least one ad backed by this Page, with adCount and metrics computed over those ads only. Mirrors the same filter on /v1/ads and /v1/ads/tree.
|
|
24440
|
+
*/
|
|
24441
|
+
pageId?: string;
|
|
24430
24442
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
|
|
24431
24443
|
/**
|
|
24432
24444
|
* Profile ID
|
|
@@ -24929,6 +24941,10 @@ type GetAdTreeData = {
|
|
|
24929
24941
|
* Page number (1-based)
|
|
24930
24942
|
*/
|
|
24931
24943
|
page?: number;
|
|
24944
|
+
/**
|
|
24945
|
+
* Meta only: Facebook Page ID. Prunes the tree to ads whose creative is backed by this Page — campaigns and ad sets with no ad on the Page drop out, and rolled-up metrics cover only the Page's ads. Mirrors the same filter on /v1/ads and /v1/ads/campaigns.
|
|
24946
|
+
*/
|
|
24947
|
+
pageId?: string;
|
|
24932
24948
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
|
|
24933
24949
|
/**
|
|
24934
24950
|
* Profile ID
|
|
@@ -25716,7 +25732,7 @@ type GetAdTrackingTagsError = ({
|
|
|
25716
25732
|
type UpdateAdTrackingTagsData = {
|
|
25717
25733
|
body: {
|
|
25718
25734
|
/**
|
|
25719
|
-
* Meta only. Click-URL params appended to a freshly-rebuilt creative.
|
|
25735
|
+
* Meta only. Click-URL params appended to a freshly-rebuilt creative. Meta dynamic macros ({{ad.id}}, {{campaign.id}}, {{placement}}, ...) are sent through unescaped so Meta expands them; every other character is percent-encoded.
|
|
25720
25736
|
*/
|
|
25721
25737
|
urlTags?: Array<{
|
|
25722
25738
|
key: string;
|
|
@@ -26642,7 +26658,7 @@ type BoostPostData = {
|
|
|
26642
26658
|
tracking?: {
|
|
26643
26659
|
pixelId?: string;
|
|
26644
26660
|
/**
|
|
26645
|
-
* URL parameters appended to the ad link, rendered as `key=value` pairs joined with `&`.
|
|
26661
|
+
* URL parameters appended to the ad link, rendered as `key=value` pairs joined with `&`. Meta dynamic macros ({{ad.id}}, {{campaign.id}}, {{placement}}, ...) are sent through unescaped so Meta expands them; every other character is percent-encoded.
|
|
26646
26662
|
*/
|
|
26647
26663
|
urlTags?: Array<{
|
|
26648
26664
|
key?: string;
|
|
@@ -26736,7 +26752,7 @@ type CreateStandaloneAdData = {
|
|
|
26736
26752
|
*/
|
|
26737
26753
|
pixelId?: string;
|
|
26738
26754
|
/**
|
|
26739
|
-
* Click-URL params appended to the ad's destination as `url_tags` (e.g. utm_source).
|
|
26755
|
+
* Click-URL params appended to the ad's destination as `url_tags` (e.g. utm_source). Meta dynamic macros ({{ad.id}}, {{campaign.id}}, {{placement}}, ...) are sent through unescaped so Meta expands them; every other character is percent-encoded.
|
|
26740
26756
|
*/
|
|
26741
26757
|
urlTags?: Array<{
|
|
26742
26758
|
key: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1409,6 +1409,10 @@ type Ad = {
|
|
|
1409
1409
|
* Meta `effective_object_story_id` — `{pageId}_{postId}` of the Facebook post the ad's engagement (comments) lives on. Pass to GET /v1/ads?effectiveObjectStoryId= to map a Business-Manager-visible post back to this ad; GET /v1/ads/{adId}/comments resolves comments against it.
|
|
1410
1410
|
*/
|
|
1411
1411
|
effectiveObjectStoryId?: (string) | null;
|
|
1412
|
+
/**
|
|
1413
|
+
* Facebook Page backing the creative (Meta only). What the `pageId` filter on /v1/ads, /v1/ads/campaigns and /v1/ads/tree matches against. Absent for non-Meta ads and rare Meta creatives with no page signal.
|
|
1414
|
+
*/
|
|
1415
|
+
pageId?: (string) | null;
|
|
1412
1416
|
/**
|
|
1413
1417
|
* Meta `effective_instagram_media_id` — the Instagram media ID of the boosted post the ad's engagement lives on. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
|
|
1414
1418
|
*/
|
|
@@ -24302,6 +24306,10 @@ type ListAdsData = {
|
|
|
24302
24306
|
* Page number (1-based)
|
|
24303
24307
|
*/
|
|
24304
24308
|
page?: number;
|
|
24309
|
+
/**
|
|
24310
|
+
* Meta only: Facebook Page ID. Returns only ads whose creative is backed by this Page (a Meta ad account serves ads for every Page in the Business Manager). Matches each ad's `creative.pageId`; ads with no page signal (rare IG-only creatives) never match. Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
|
|
24311
|
+
*/
|
|
24312
|
+
pageId?: string;
|
|
24305
24313
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
|
|
24306
24314
|
/**
|
|
24307
24315
|
* Meta ad ID. Returns the ad with this platform-side ad ID.
|
|
@@ -24427,6 +24435,10 @@ type ListAdCampaignsData = {
|
|
|
24427
24435
|
* Page number (1-based)
|
|
24428
24436
|
*/
|
|
24429
24437
|
page?: number;
|
|
24438
|
+
/**
|
|
24439
|
+
* Meta only: Facebook Page ID. Campaigns have no Page of their own, so this keeps campaigns having at least one ad backed by this Page, with adCount and metrics computed over those ads only. Mirrors the same filter on /v1/ads and /v1/ads/tree.
|
|
24440
|
+
*/
|
|
24441
|
+
pageId?: string;
|
|
24430
24442
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
|
|
24431
24443
|
/**
|
|
24432
24444
|
* Profile ID
|
|
@@ -24929,6 +24941,10 @@ type GetAdTreeData = {
|
|
|
24929
24941
|
* Page number (1-based)
|
|
24930
24942
|
*/
|
|
24931
24943
|
page?: number;
|
|
24944
|
+
/**
|
|
24945
|
+
* Meta only: Facebook Page ID. Prunes the tree to ads whose creative is backed by this Page — campaigns and ad sets with no ad on the Page drop out, and rolled-up metrics cover only the Page's ads. Mirrors the same filter on /v1/ads and /v1/ads/campaigns.
|
|
24946
|
+
*/
|
|
24947
|
+
pageId?: string;
|
|
24932
24948
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
|
|
24933
24949
|
/**
|
|
24934
24950
|
* Profile ID
|
|
@@ -25716,7 +25732,7 @@ type GetAdTrackingTagsError = ({
|
|
|
25716
25732
|
type UpdateAdTrackingTagsData = {
|
|
25717
25733
|
body: {
|
|
25718
25734
|
/**
|
|
25719
|
-
* Meta only. Click-URL params appended to a freshly-rebuilt creative.
|
|
25735
|
+
* Meta only. Click-URL params appended to a freshly-rebuilt creative. Meta dynamic macros ({{ad.id}}, {{campaign.id}}, {{placement}}, ...) are sent through unescaped so Meta expands them; every other character is percent-encoded.
|
|
25720
25736
|
*/
|
|
25721
25737
|
urlTags?: Array<{
|
|
25722
25738
|
key: string;
|
|
@@ -26642,7 +26658,7 @@ type BoostPostData = {
|
|
|
26642
26658
|
tracking?: {
|
|
26643
26659
|
pixelId?: string;
|
|
26644
26660
|
/**
|
|
26645
|
-
* URL parameters appended to the ad link, rendered as `key=value` pairs joined with `&`.
|
|
26661
|
+
* URL parameters appended to the ad link, rendered as `key=value` pairs joined with `&`. Meta dynamic macros ({{ad.id}}, {{campaign.id}}, {{placement}}, ...) are sent through unescaped so Meta expands them; every other character is percent-encoded.
|
|
26646
26662
|
*/
|
|
26647
26663
|
urlTags?: Array<{
|
|
26648
26664
|
key?: string;
|
|
@@ -26736,7 +26752,7 @@ type CreateStandaloneAdData = {
|
|
|
26736
26752
|
*/
|
|
26737
26753
|
pixelId?: string;
|
|
26738
26754
|
/**
|
|
26739
|
-
* Click-URL params appended to the ad's destination as `url_tags` (e.g. utm_source).
|
|
26755
|
+
* Click-URL params appended to the ad's destination as `url_tags` (e.g. utm_source). Meta dynamic macros ({{ad.id}}, {{campaign.id}}, {{placement}}, ...) are sent through unescaped so Meta expands them; every other character is percent-encoded.
|
|
26740
26756
|
*/
|
|
26741
26757
|
urlTags?: Array<{
|
|
26742
26758
|
key: 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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.460",
|
|
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.460",
|
|
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
|
@@ -235,6 +235,10 @@ export type Ad = {
|
|
|
235
235
|
* Meta `effective_object_story_id` — `{pageId}_{postId}` of the Facebook post the ad's engagement (comments) lives on. Pass to GET /v1/ads?effectiveObjectStoryId= to map a Business-Manager-visible post back to this ad; GET /v1/ads/{adId}/comments resolves comments against it.
|
|
236
236
|
*/
|
|
237
237
|
effectiveObjectStoryId?: (string) | null;
|
|
238
|
+
/**
|
|
239
|
+
* Facebook Page backing the creative (Meta only). What the `pageId` filter on /v1/ads, /v1/ads/campaigns and /v1/ads/tree matches against. Absent for non-Meta ads and rare Meta creatives with no page signal.
|
|
240
|
+
*/
|
|
241
|
+
pageId?: (string) | null;
|
|
238
242
|
/**
|
|
239
243
|
* Meta `effective_instagram_media_id` — the Instagram media ID of the boosted post the ad's engagement lives on. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
|
|
240
244
|
*/
|
|
@@ -24667,6 +24671,10 @@ export type ListAdsData = {
|
|
|
24667
24671
|
* Page number (1-based)
|
|
24668
24672
|
*/
|
|
24669
24673
|
page?: number;
|
|
24674
|
+
/**
|
|
24675
|
+
* Meta only: Facebook Page ID. Returns only ads whose creative is backed by this Page (a Meta ad account serves ads for every Page in the Business Manager). Matches each ad's `creative.pageId`; ads with no page signal (rare IG-only creatives) never match. Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
|
|
24676
|
+
*/
|
|
24677
|
+
pageId?: string;
|
|
24670
24678
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
|
|
24671
24679
|
/**
|
|
24672
24680
|
* Meta ad ID. Returns the ad with this platform-side ad ID.
|
|
@@ -24798,6 +24806,10 @@ export type ListAdCampaignsData = {
|
|
|
24798
24806
|
* Page number (1-based)
|
|
24799
24807
|
*/
|
|
24800
24808
|
page?: number;
|
|
24809
|
+
/**
|
|
24810
|
+
* Meta only: Facebook Page ID. Campaigns have no Page of their own, so this keeps campaigns having at least one ad backed by this Page, with adCount and metrics computed over those ads only. Mirrors the same filter on /v1/ads and /v1/ads/tree.
|
|
24811
|
+
*/
|
|
24812
|
+
pageId?: string;
|
|
24801
24813
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
|
|
24802
24814
|
/**
|
|
24803
24815
|
* Profile ID
|
|
@@ -25336,6 +25348,10 @@ export type GetAdTreeData = {
|
|
|
25336
25348
|
* Page number (1-based)
|
|
25337
25349
|
*/
|
|
25338
25350
|
page?: number;
|
|
25351
|
+
/**
|
|
25352
|
+
* Meta only: Facebook Page ID. Prunes the tree to ads whose creative is backed by this Page — campaigns and ad sets with no ad on the Page drop out, and rolled-up metrics cover only the Page's ads. Mirrors the same filter on /v1/ads and /v1/ads/campaigns.
|
|
25353
|
+
*/
|
|
25354
|
+
pageId?: string;
|
|
25339
25355
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
|
|
25340
25356
|
/**
|
|
25341
25357
|
* Profile ID
|
|
@@ -26171,7 +26187,7 @@ export type GetAdTrackingTagsError = ({
|
|
|
26171
26187
|
export type UpdateAdTrackingTagsData = {
|
|
26172
26188
|
body: {
|
|
26173
26189
|
/**
|
|
26174
|
-
* Meta only. Click-URL params appended to a freshly-rebuilt creative.
|
|
26190
|
+
* Meta only. Click-URL params appended to a freshly-rebuilt creative. Meta dynamic macros ({{ad.id}}, {{campaign.id}}, {{placement}}, ...) are sent through unescaped so Meta expands them; every other character is percent-encoded.
|
|
26175
26191
|
*/
|
|
26176
26192
|
urlTags?: Array<{
|
|
26177
26193
|
key: string;
|
|
@@ -27163,7 +27179,7 @@ export type BoostPostData = {
|
|
|
27163
27179
|
tracking?: {
|
|
27164
27180
|
pixelId?: string;
|
|
27165
27181
|
/**
|
|
27166
|
-
* URL parameters appended to the ad link, rendered as `key=value` pairs joined with `&`.
|
|
27182
|
+
* URL parameters appended to the ad link, rendered as `key=value` pairs joined with `&`. Meta dynamic macros ({{ad.id}}, {{campaign.id}}, {{placement}}, ...) are sent through unescaped so Meta expands them; every other character is percent-encoded.
|
|
27167
27183
|
*/
|
|
27168
27184
|
urlTags?: Array<{
|
|
27169
27185
|
key?: string;
|
|
@@ -27260,7 +27276,7 @@ export type CreateStandaloneAdData = {
|
|
|
27260
27276
|
*/
|
|
27261
27277
|
pixelId?: string;
|
|
27262
27278
|
/**
|
|
27263
|
-
* Click-URL params appended to the ad's destination as `url_tags` (e.g. utm_source).
|
|
27279
|
+
* Click-URL params appended to the ad's destination as `url_tags` (e.g. utm_source). Meta dynamic macros ({{ad.id}}, {{campaign.id}}, {{placement}}, ...) are sent through unescaped so Meta expands them; every other character is percent-encoded.
|
|
27264
27280
|
*/
|
|
27265
27281
|
urlTags?: Array<{
|
|
27266
27282
|
key: string;
|