@getlatedev/node 0.2.386 → 0.2.388
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 +106 -3
- package/dist/index.d.ts +106 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +6 -1
- package/src/generated/types.gen.ts +106 -3
package/dist/index.d.mts
CHANGED
|
@@ -10371,7 +10371,13 @@ type SelectGoogleBusinessLocationResponse = ({
|
|
|
10371
10371
|
username?: string;
|
|
10372
10372
|
displayName?: string;
|
|
10373
10373
|
isActive?: boolean;
|
|
10374
|
+
/**
|
|
10375
|
+
* Human-readable location display name, NOT a resource name. Do not use it to build API paths.
|
|
10376
|
+
*/
|
|
10374
10377
|
selectedLocationName?: string;
|
|
10378
|
+
/**
|
|
10379
|
+
* Bare GBP location id. Combine with the GBP account id as accounts/{gbpAccountId}/locations/{selectedLocationId} to form the location resource names that gmb-reviews/batch expects in locationNames.
|
|
10380
|
+
*/
|
|
10375
10381
|
selectedLocationId?: string;
|
|
10376
10382
|
};
|
|
10377
10383
|
});
|
|
@@ -11438,7 +11444,7 @@ type UpdateGoogleBusinessServicesError = (ErrorResponse);
|
|
|
11438
11444
|
type BatchGetGoogleBusinessReviewsData = {
|
|
11439
11445
|
body: {
|
|
11440
11446
|
/**
|
|
11441
|
-
* Array of full location resource names (e.g. ['accounts/123/locations/456'])
|
|
11447
|
+
* Array of full location resource names (e.g. ['accounts/123/locations/456']). Max 50 per request (Google's batchGetReviews cap); chunk larger sets into multiple requests.
|
|
11442
11448
|
*/
|
|
11443
11449
|
locationNames: Array<(string)>;
|
|
11444
11450
|
/**
|
|
@@ -11449,6 +11455,10 @@ type BatchGetGoogleBusinessReviewsData = {
|
|
|
11449
11455
|
* Pagination token from previous response
|
|
11450
11456
|
*/
|
|
11451
11457
|
pageToken?: string;
|
|
11458
|
+
/**
|
|
11459
|
+
* Sort order requested from Google. Defaults to 'updateTime desc' (newest first), which allows early-stopping pagination once results cross your date window.
|
|
11460
|
+
*/
|
|
11461
|
+
orderBy?: 'updateTime desc' | 'rating' | 'rating desc';
|
|
11452
11462
|
};
|
|
11453
11463
|
path: {
|
|
11454
11464
|
accountId: string;
|
|
@@ -11459,11 +11469,11 @@ type BatchGetGoogleBusinessReviewsResponse = ({
|
|
|
11459
11469
|
accountId?: string;
|
|
11460
11470
|
locationReviews?: Array<{
|
|
11461
11471
|
/**
|
|
11462
|
-
*
|
|
11472
|
+
* LOCATION resource name the review belongs to (accounts/{accountId}/locations/{locationId}) - NOT the review resource name. Use it to attribute the review to a location; the review identity is review.reviewId (full review resource name at review.name).
|
|
11463
11473
|
*/
|
|
11464
11474
|
name?: string;
|
|
11465
11475
|
/**
|
|
11466
|
-
* The review object (
|
|
11476
|
+
* The review object: reviewId (the review's identity), name (full review resource name, accounts*locations*reviews*), starRating, comment, reviewer, createTime, updateTime, reviewReply, and reviewMediaItems (review photos/videos; photo items carry thumbnailUrl, video items carry videoUrl)
|
|
11467
11477
|
*/
|
|
11468
11478
|
review?: {
|
|
11469
11479
|
[key: string]: unknown;
|
|
@@ -12806,7 +12816,13 @@ type AssignGoogleBusinessLocationResponse = ({
|
|
|
12806
12816
|
username?: string;
|
|
12807
12817
|
displayName?: string;
|
|
12808
12818
|
isActive?: boolean;
|
|
12819
|
+
/**
|
|
12820
|
+
* Human-readable location display name (e.g. "Snap Fitness Dianella"), NOT a resource name. Do not use it to build API paths.
|
|
12821
|
+
*/
|
|
12809
12822
|
selectedLocationName?: string;
|
|
12823
|
+
/**
|
|
12824
|
+
* Bare GBP location id (digits only). Combine with the GBP account id as accounts/{gbpAccountId}/locations/{selectedLocationId} to form the location resource names that gmb-reviews/batch expects in locationNames.
|
|
12825
|
+
*/
|
|
12810
12826
|
selectedLocationId?: string;
|
|
12811
12827
|
};
|
|
12812
12828
|
});
|
|
@@ -15604,11 +15620,23 @@ type ListInboxCommentsResponse = ({
|
|
|
15604
15620
|
platform?: string;
|
|
15605
15621
|
accountId?: string;
|
|
15606
15622
|
accountUsername?: string;
|
|
15623
|
+
/**
|
|
15624
|
+
* The post text/caption. On ad rows (isAd: true) this is the AD NAME, not the underlying post's caption — the creative text isn't exposed here.
|
|
15625
|
+
*/
|
|
15607
15626
|
content?: string;
|
|
15627
|
+
/**
|
|
15628
|
+
* Post media thumbnail. On ad rows this is the ad creative thumbnail.
|
|
15629
|
+
*/
|
|
15608
15630
|
picture?: (string) | null;
|
|
15631
|
+
/**
|
|
15632
|
+
* Public URL of the post. On ad rows: the Facebook dark-post URL (facebook placement) or the IG media permalink (instagram placement); may be null when unknown.
|
|
15633
|
+
*/
|
|
15609
15634
|
permalink?: (string) | null;
|
|
15610
15635
|
createdTime?: string;
|
|
15611
15636
|
commentCount?: number;
|
|
15637
|
+
/**
|
|
15638
|
+
* Not fetched for ad rows (always 0 there).
|
|
15639
|
+
*/
|
|
15612
15640
|
likeCount?: number;
|
|
15613
15641
|
/**
|
|
15614
15642
|
* Bluesky content identifier
|
|
@@ -16404,10 +16432,21 @@ type ListInboxReviewsData = {
|
|
|
16404
16432
|
type ListInboxReviewsResponse = ({
|
|
16405
16433
|
status?: string;
|
|
16406
16434
|
data?: Array<{
|
|
16435
|
+
/**
|
|
16436
|
+
* Review identifier. For Google Business this is the full review resource name (accounts/{accountId}/locations/{locationId}/reviews/{reviewId}), so it also encodes the location.
|
|
16437
|
+
*/
|
|
16407
16438
|
id?: string;
|
|
16408
16439
|
platform?: string;
|
|
16409
16440
|
accountId?: string;
|
|
16410
16441
|
accountUsername?: string;
|
|
16442
|
+
/**
|
|
16443
|
+
* Bare GBP location id the review belongs to. Google Business only; absent for other platforms.
|
|
16444
|
+
*/
|
|
16445
|
+
locationId?: string;
|
|
16446
|
+
/**
|
|
16447
|
+
* Human-readable GBP location display name. Google Business only; absent for other platforms.
|
|
16448
|
+
*/
|
|
16449
|
+
locationName?: (string) | null;
|
|
16411
16450
|
reviewer?: {
|
|
16412
16451
|
id?: (string) | null;
|
|
16413
16452
|
name?: string;
|
|
@@ -23219,6 +23258,18 @@ type QueryAdInsightsData = {
|
|
|
23219
23258
|
* Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
|
|
23220
23259
|
*/
|
|
23221
23260
|
accountId: string;
|
|
23261
|
+
/**
|
|
23262
|
+
* Comma-separated Meta attribution windows. Action values are returned keyed per window.
|
|
23263
|
+
*/
|
|
23264
|
+
actionAttributionWindows?: string;
|
|
23265
|
+
/**
|
|
23266
|
+
* Comma-separated Graph action breakdowns. Segments the actions[] arrays in each row.
|
|
23267
|
+
*/
|
|
23268
|
+
actionBreakdowns?: string;
|
|
23269
|
+
/**
|
|
23270
|
+
* When actions are counted: impression, conversion or mixed.
|
|
23271
|
+
*/
|
|
23272
|
+
actionReportTime?: string;
|
|
23222
23273
|
/**
|
|
23223
23274
|
* Cursor from paging.after of the previous page.
|
|
23224
23275
|
*/
|
|
@@ -23263,6 +23314,10 @@ type QueryAdInsightsData = {
|
|
|
23263
23314
|
* End of range (YYYY-MM-DD); requires fromDate.
|
|
23264
23315
|
*/
|
|
23265
23316
|
toDate?: string;
|
|
23317
|
+
/**
|
|
23318
|
+
* Use the ad sets' own attribution settings for action counting.
|
|
23319
|
+
*/
|
|
23320
|
+
useUnifiedAttributionSetting?: boolean;
|
|
23266
23321
|
};
|
|
23267
23322
|
};
|
|
23268
23323
|
type QueryAdInsightsResponse = ({
|
|
@@ -23299,6 +23354,22 @@ type CreateAdInsightsReportData = {
|
|
|
23299
23354
|
* Comma-separated Graph breakdowns.
|
|
23300
23355
|
*/
|
|
23301
23356
|
breakdowns?: string;
|
|
23357
|
+
/**
|
|
23358
|
+
* Comma-separated Graph action breakdowns (e.g. action_type,action_destination).
|
|
23359
|
+
*/
|
|
23360
|
+
actionBreakdowns?: string;
|
|
23361
|
+
/**
|
|
23362
|
+
* Meta attribution windows (e.g. ["7d_click", "1d_view"]). Action values are returned keyed per window.
|
|
23363
|
+
*/
|
|
23364
|
+
actionAttributionWindows?: Array<(string)>;
|
|
23365
|
+
/**
|
|
23366
|
+
* When actions are counted: impression, conversion or mixed.
|
|
23367
|
+
*/
|
|
23368
|
+
actionReportTime?: string;
|
|
23369
|
+
/**
|
|
23370
|
+
* Use the ad sets' own attribution settings for action counting.
|
|
23371
|
+
*/
|
|
23372
|
+
useUnifiedAttributionSetting?: boolean;
|
|
23302
23373
|
/**
|
|
23303
23374
|
* Meta filter objects, applied server-side.
|
|
23304
23375
|
*/
|
|
@@ -24401,6 +24472,38 @@ type CreateStandaloneAdData = {
|
|
|
24401
24472
|
*/
|
|
24402
24473
|
adFormat?: 'SINGLE_IMAGE' | 'CAROUSEL_IMAGE';
|
|
24403
24474
|
};
|
|
24475
|
+
/**
|
|
24476
|
+
* Meta only. Hand-built carousel: 2-10 authored cards in DETERMINISTIC order, mapped to
|
|
24477
|
+
* the creative's `link_data.child_attachments`. Unlike `dynamicCreative`,
|
|
24478
|
+
* you control the card order and per-card copy/link. Requires top-level `body`,
|
|
24479
|
+
* `linkUrl` and `callToAction`.
|
|
24480
|
+
* Mutually exclusive with `imageUrl`/`video`, `creatives[]`, `dynamicCreative`,
|
|
24481
|
+
* `placementAssets`, `existingCreativeId`, `adSetId`, `leadGenFormId` and goal
|
|
24482
|
+
* `catalog_sales`.
|
|
24483
|
+
*
|
|
24484
|
+
*/
|
|
24485
|
+
carouselCards?: Array<{
|
|
24486
|
+
/**
|
|
24487
|
+
* Card image; uploaded to the ad account and referenced by hash.
|
|
24488
|
+
*/
|
|
24489
|
+
imageUrl: string;
|
|
24490
|
+
/**
|
|
24491
|
+
* Card destination URL. Defaults to the top-level linkUrl.
|
|
24492
|
+
*/
|
|
24493
|
+
linkUrl?: string;
|
|
24494
|
+
/**
|
|
24495
|
+
* Card headline, shown below the card image.
|
|
24496
|
+
*/
|
|
24497
|
+
headline?: string;
|
|
24498
|
+
/**
|
|
24499
|
+
* Card description, shown under the headline.
|
|
24500
|
+
*/
|
|
24501
|
+
description?: string;
|
|
24502
|
+
/**
|
|
24503
|
+
* Card CTA override. Defaults to the top-level callToAction; same enum.
|
|
24504
|
+
*/
|
|
24505
|
+
callToAction?: string;
|
|
24506
|
+
}>;
|
|
24404
24507
|
/**
|
|
24405
24508
|
* Meta only. Placement asset customization: pin a SPECIFIC asset (image OR video) to
|
|
24406
24509
|
* each placement group on a SINGLE ad (e.g. a 9:16 on Stories/Reels and a 4:5 on Feed).
|
package/dist/index.d.ts
CHANGED
|
@@ -10371,7 +10371,13 @@ type SelectGoogleBusinessLocationResponse = ({
|
|
|
10371
10371
|
username?: string;
|
|
10372
10372
|
displayName?: string;
|
|
10373
10373
|
isActive?: boolean;
|
|
10374
|
+
/**
|
|
10375
|
+
* Human-readable location display name, NOT a resource name. Do not use it to build API paths.
|
|
10376
|
+
*/
|
|
10374
10377
|
selectedLocationName?: string;
|
|
10378
|
+
/**
|
|
10379
|
+
* Bare GBP location id. Combine with the GBP account id as accounts/{gbpAccountId}/locations/{selectedLocationId} to form the location resource names that gmb-reviews/batch expects in locationNames.
|
|
10380
|
+
*/
|
|
10375
10381
|
selectedLocationId?: string;
|
|
10376
10382
|
};
|
|
10377
10383
|
});
|
|
@@ -11438,7 +11444,7 @@ type UpdateGoogleBusinessServicesError = (ErrorResponse);
|
|
|
11438
11444
|
type BatchGetGoogleBusinessReviewsData = {
|
|
11439
11445
|
body: {
|
|
11440
11446
|
/**
|
|
11441
|
-
* Array of full location resource names (e.g. ['accounts/123/locations/456'])
|
|
11447
|
+
* Array of full location resource names (e.g. ['accounts/123/locations/456']). Max 50 per request (Google's batchGetReviews cap); chunk larger sets into multiple requests.
|
|
11442
11448
|
*/
|
|
11443
11449
|
locationNames: Array<(string)>;
|
|
11444
11450
|
/**
|
|
@@ -11449,6 +11455,10 @@ type BatchGetGoogleBusinessReviewsData = {
|
|
|
11449
11455
|
* Pagination token from previous response
|
|
11450
11456
|
*/
|
|
11451
11457
|
pageToken?: string;
|
|
11458
|
+
/**
|
|
11459
|
+
* Sort order requested from Google. Defaults to 'updateTime desc' (newest first), which allows early-stopping pagination once results cross your date window.
|
|
11460
|
+
*/
|
|
11461
|
+
orderBy?: 'updateTime desc' | 'rating' | 'rating desc';
|
|
11452
11462
|
};
|
|
11453
11463
|
path: {
|
|
11454
11464
|
accountId: string;
|
|
@@ -11459,11 +11469,11 @@ type BatchGetGoogleBusinessReviewsResponse = ({
|
|
|
11459
11469
|
accountId?: string;
|
|
11460
11470
|
locationReviews?: Array<{
|
|
11461
11471
|
/**
|
|
11462
|
-
*
|
|
11472
|
+
* LOCATION resource name the review belongs to (accounts/{accountId}/locations/{locationId}) - NOT the review resource name. Use it to attribute the review to a location; the review identity is review.reviewId (full review resource name at review.name).
|
|
11463
11473
|
*/
|
|
11464
11474
|
name?: string;
|
|
11465
11475
|
/**
|
|
11466
|
-
* The review object (
|
|
11476
|
+
* The review object: reviewId (the review's identity), name (full review resource name, accounts*locations*reviews*), starRating, comment, reviewer, createTime, updateTime, reviewReply, and reviewMediaItems (review photos/videos; photo items carry thumbnailUrl, video items carry videoUrl)
|
|
11467
11477
|
*/
|
|
11468
11478
|
review?: {
|
|
11469
11479
|
[key: string]: unknown;
|
|
@@ -12806,7 +12816,13 @@ type AssignGoogleBusinessLocationResponse = ({
|
|
|
12806
12816
|
username?: string;
|
|
12807
12817
|
displayName?: string;
|
|
12808
12818
|
isActive?: boolean;
|
|
12819
|
+
/**
|
|
12820
|
+
* Human-readable location display name (e.g. "Snap Fitness Dianella"), NOT a resource name. Do not use it to build API paths.
|
|
12821
|
+
*/
|
|
12809
12822
|
selectedLocationName?: string;
|
|
12823
|
+
/**
|
|
12824
|
+
* Bare GBP location id (digits only). Combine with the GBP account id as accounts/{gbpAccountId}/locations/{selectedLocationId} to form the location resource names that gmb-reviews/batch expects in locationNames.
|
|
12825
|
+
*/
|
|
12810
12826
|
selectedLocationId?: string;
|
|
12811
12827
|
};
|
|
12812
12828
|
});
|
|
@@ -15604,11 +15620,23 @@ type ListInboxCommentsResponse = ({
|
|
|
15604
15620
|
platform?: string;
|
|
15605
15621
|
accountId?: string;
|
|
15606
15622
|
accountUsername?: string;
|
|
15623
|
+
/**
|
|
15624
|
+
* The post text/caption. On ad rows (isAd: true) this is the AD NAME, not the underlying post's caption — the creative text isn't exposed here.
|
|
15625
|
+
*/
|
|
15607
15626
|
content?: string;
|
|
15627
|
+
/**
|
|
15628
|
+
* Post media thumbnail. On ad rows this is the ad creative thumbnail.
|
|
15629
|
+
*/
|
|
15608
15630
|
picture?: (string) | null;
|
|
15631
|
+
/**
|
|
15632
|
+
* Public URL of the post. On ad rows: the Facebook dark-post URL (facebook placement) or the IG media permalink (instagram placement); may be null when unknown.
|
|
15633
|
+
*/
|
|
15609
15634
|
permalink?: (string) | null;
|
|
15610
15635
|
createdTime?: string;
|
|
15611
15636
|
commentCount?: number;
|
|
15637
|
+
/**
|
|
15638
|
+
* Not fetched for ad rows (always 0 there).
|
|
15639
|
+
*/
|
|
15612
15640
|
likeCount?: number;
|
|
15613
15641
|
/**
|
|
15614
15642
|
* Bluesky content identifier
|
|
@@ -16404,10 +16432,21 @@ type ListInboxReviewsData = {
|
|
|
16404
16432
|
type ListInboxReviewsResponse = ({
|
|
16405
16433
|
status?: string;
|
|
16406
16434
|
data?: Array<{
|
|
16435
|
+
/**
|
|
16436
|
+
* Review identifier. For Google Business this is the full review resource name (accounts/{accountId}/locations/{locationId}/reviews/{reviewId}), so it also encodes the location.
|
|
16437
|
+
*/
|
|
16407
16438
|
id?: string;
|
|
16408
16439
|
platform?: string;
|
|
16409
16440
|
accountId?: string;
|
|
16410
16441
|
accountUsername?: string;
|
|
16442
|
+
/**
|
|
16443
|
+
* Bare GBP location id the review belongs to. Google Business only; absent for other platforms.
|
|
16444
|
+
*/
|
|
16445
|
+
locationId?: string;
|
|
16446
|
+
/**
|
|
16447
|
+
* Human-readable GBP location display name. Google Business only; absent for other platforms.
|
|
16448
|
+
*/
|
|
16449
|
+
locationName?: (string) | null;
|
|
16411
16450
|
reviewer?: {
|
|
16412
16451
|
id?: (string) | null;
|
|
16413
16452
|
name?: string;
|
|
@@ -23219,6 +23258,18 @@ type QueryAdInsightsData = {
|
|
|
23219
23258
|
* Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
|
|
23220
23259
|
*/
|
|
23221
23260
|
accountId: string;
|
|
23261
|
+
/**
|
|
23262
|
+
* Comma-separated Meta attribution windows. Action values are returned keyed per window.
|
|
23263
|
+
*/
|
|
23264
|
+
actionAttributionWindows?: string;
|
|
23265
|
+
/**
|
|
23266
|
+
* Comma-separated Graph action breakdowns. Segments the actions[] arrays in each row.
|
|
23267
|
+
*/
|
|
23268
|
+
actionBreakdowns?: string;
|
|
23269
|
+
/**
|
|
23270
|
+
* When actions are counted: impression, conversion or mixed.
|
|
23271
|
+
*/
|
|
23272
|
+
actionReportTime?: string;
|
|
23222
23273
|
/**
|
|
23223
23274
|
* Cursor from paging.after of the previous page.
|
|
23224
23275
|
*/
|
|
@@ -23263,6 +23314,10 @@ type QueryAdInsightsData = {
|
|
|
23263
23314
|
* End of range (YYYY-MM-DD); requires fromDate.
|
|
23264
23315
|
*/
|
|
23265
23316
|
toDate?: string;
|
|
23317
|
+
/**
|
|
23318
|
+
* Use the ad sets' own attribution settings for action counting.
|
|
23319
|
+
*/
|
|
23320
|
+
useUnifiedAttributionSetting?: boolean;
|
|
23266
23321
|
};
|
|
23267
23322
|
};
|
|
23268
23323
|
type QueryAdInsightsResponse = ({
|
|
@@ -23299,6 +23354,22 @@ type CreateAdInsightsReportData = {
|
|
|
23299
23354
|
* Comma-separated Graph breakdowns.
|
|
23300
23355
|
*/
|
|
23301
23356
|
breakdowns?: string;
|
|
23357
|
+
/**
|
|
23358
|
+
* Comma-separated Graph action breakdowns (e.g. action_type,action_destination).
|
|
23359
|
+
*/
|
|
23360
|
+
actionBreakdowns?: string;
|
|
23361
|
+
/**
|
|
23362
|
+
* Meta attribution windows (e.g. ["7d_click", "1d_view"]). Action values are returned keyed per window.
|
|
23363
|
+
*/
|
|
23364
|
+
actionAttributionWindows?: Array<(string)>;
|
|
23365
|
+
/**
|
|
23366
|
+
* When actions are counted: impression, conversion or mixed.
|
|
23367
|
+
*/
|
|
23368
|
+
actionReportTime?: string;
|
|
23369
|
+
/**
|
|
23370
|
+
* Use the ad sets' own attribution settings for action counting.
|
|
23371
|
+
*/
|
|
23372
|
+
useUnifiedAttributionSetting?: boolean;
|
|
23302
23373
|
/**
|
|
23303
23374
|
* Meta filter objects, applied server-side.
|
|
23304
23375
|
*/
|
|
@@ -24401,6 +24472,38 @@ type CreateStandaloneAdData = {
|
|
|
24401
24472
|
*/
|
|
24402
24473
|
adFormat?: 'SINGLE_IMAGE' | 'CAROUSEL_IMAGE';
|
|
24403
24474
|
};
|
|
24475
|
+
/**
|
|
24476
|
+
* Meta only. Hand-built carousel: 2-10 authored cards in DETERMINISTIC order, mapped to
|
|
24477
|
+
* the creative's `link_data.child_attachments`. Unlike `dynamicCreative`,
|
|
24478
|
+
* you control the card order and per-card copy/link. Requires top-level `body`,
|
|
24479
|
+
* `linkUrl` and `callToAction`.
|
|
24480
|
+
* Mutually exclusive with `imageUrl`/`video`, `creatives[]`, `dynamicCreative`,
|
|
24481
|
+
* `placementAssets`, `existingCreativeId`, `adSetId`, `leadGenFormId` and goal
|
|
24482
|
+
* `catalog_sales`.
|
|
24483
|
+
*
|
|
24484
|
+
*/
|
|
24485
|
+
carouselCards?: Array<{
|
|
24486
|
+
/**
|
|
24487
|
+
* Card image; uploaded to the ad account and referenced by hash.
|
|
24488
|
+
*/
|
|
24489
|
+
imageUrl: string;
|
|
24490
|
+
/**
|
|
24491
|
+
* Card destination URL. Defaults to the top-level linkUrl.
|
|
24492
|
+
*/
|
|
24493
|
+
linkUrl?: string;
|
|
24494
|
+
/**
|
|
24495
|
+
* Card headline, shown below the card image.
|
|
24496
|
+
*/
|
|
24497
|
+
headline?: string;
|
|
24498
|
+
/**
|
|
24499
|
+
* Card description, shown under the headline.
|
|
24500
|
+
*/
|
|
24501
|
+
description?: string;
|
|
24502
|
+
/**
|
|
24503
|
+
* Card CTA override. Defaults to the top-level callToAction; same enum.
|
|
24504
|
+
*/
|
|
24505
|
+
callToAction?: string;
|
|
24506
|
+
}>;
|
|
24404
24507
|
/**
|
|
24405
24508
|
* Meta only. Placement asset customization: pin a SPECIFIC asset (image OR video) to
|
|
24406
24509
|
* each placement group on a SINGLE ad (e.g. a 9:16 on Stories/Reels and a 4:5 on Feed).
|
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.388",
|
|
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.388",
|
|
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
|
@@ -1578,7 +1578,12 @@ export const updateGoogleBusinessServices = <ThrowOnError extends boolean = fals
|
|
|
1578
1578
|
* Batch get reviews
|
|
1579
1579
|
* Fetches reviews across multiple locations in a single request.
|
|
1580
1580
|
* More efficient than calling GET /gmb-reviews per location for multi-location businesses.
|
|
1581
|
-
* Returns a flat
|
|
1581
|
+
* Returns a flat locationReviews array (not grouped by location): each item carries
|
|
1582
|
+
* the location resource name it belongs to (`name`) plus the review object (`review`),
|
|
1583
|
+
* whose identity is `review.reviewId`.
|
|
1584
|
+
* Reviews are requested from Google ordered by `orderBy` (default `updateTime desc`,
|
|
1585
|
+
* newest first), so callers polling for recent reviews can stop paginating once they
|
|
1586
|
+
* cross their date window.
|
|
1582
1587
|
* Note: this endpoint does not return aggregate metrics (averageRating / totalReviewCount).
|
|
1583
1588
|
* For those, use the single-location GET /gmb-reviews endpoint.
|
|
1584
1589
|
*
|
|
@@ -9989,7 +9989,13 @@ export type SelectGoogleBusinessLocationResponse = ({
|
|
|
9989
9989
|
username?: string;
|
|
9990
9990
|
displayName?: string;
|
|
9991
9991
|
isActive?: boolean;
|
|
9992
|
+
/**
|
|
9993
|
+
* Human-readable location display name, NOT a resource name. Do not use it to build API paths.
|
|
9994
|
+
*/
|
|
9992
9995
|
selectedLocationName?: string;
|
|
9996
|
+
/**
|
|
9997
|
+
* Bare GBP location id. Combine with the GBP account id as accounts/{gbpAccountId}/locations/{selectedLocationId} to form the location resource names that gmb-reviews/batch expects in locationNames.
|
|
9998
|
+
*/
|
|
9993
9999
|
selectedLocationId?: string;
|
|
9994
10000
|
};
|
|
9995
10001
|
});
|
|
@@ -11121,7 +11127,7 @@ export type UpdateGoogleBusinessServicesError = (ErrorResponse);
|
|
|
11121
11127
|
export type BatchGetGoogleBusinessReviewsData = {
|
|
11122
11128
|
body: {
|
|
11123
11129
|
/**
|
|
11124
|
-
* Array of full location resource names (e.g. ['accounts/123/locations/456'])
|
|
11130
|
+
* Array of full location resource names (e.g. ['accounts/123/locations/456']). Max 50 per request (Google's batchGetReviews cap); chunk larger sets into multiple requests.
|
|
11125
11131
|
*/
|
|
11126
11132
|
locationNames: Array<(string)>;
|
|
11127
11133
|
/**
|
|
@@ -11132,6 +11138,10 @@ export type BatchGetGoogleBusinessReviewsData = {
|
|
|
11132
11138
|
* Pagination token from previous response
|
|
11133
11139
|
*/
|
|
11134
11140
|
pageToken?: string;
|
|
11141
|
+
/**
|
|
11142
|
+
* Sort order requested from Google. Defaults to 'updateTime desc' (newest first), which allows early-stopping pagination once results cross your date window.
|
|
11143
|
+
*/
|
|
11144
|
+
orderBy?: 'updateTime desc' | 'rating' | 'rating desc';
|
|
11135
11145
|
};
|
|
11136
11146
|
path: {
|
|
11137
11147
|
accountId: string;
|
|
@@ -11143,11 +11153,11 @@ export type BatchGetGoogleBusinessReviewsResponse = ({
|
|
|
11143
11153
|
accountId?: string;
|
|
11144
11154
|
locationReviews?: Array<{
|
|
11145
11155
|
/**
|
|
11146
|
-
*
|
|
11156
|
+
* LOCATION resource name the review belongs to (accounts/{accountId}/locations/{locationId}) - NOT the review resource name. Use it to attribute the review to a location; the review identity is review.reviewId (full review resource name at review.name).
|
|
11147
11157
|
*/
|
|
11148
11158
|
name?: string;
|
|
11149
11159
|
/**
|
|
11150
|
-
* The review object (
|
|
11160
|
+
* The review object: reviewId (the review's identity), name (full review resource name, accounts*locations*reviews*), starRating, comment, reviewer, createTime, updateTime, reviewReply, and reviewMediaItems (review photos/videos; photo items carry thumbnailUrl, video items carry videoUrl)
|
|
11151
11161
|
*/
|
|
11152
11162
|
review?: {
|
|
11153
11163
|
[key: string]: unknown;
|
|
@@ -12595,7 +12605,13 @@ export type AssignGoogleBusinessLocationResponse = ({
|
|
|
12595
12605
|
username?: string;
|
|
12596
12606
|
displayName?: string;
|
|
12597
12607
|
isActive?: boolean;
|
|
12608
|
+
/**
|
|
12609
|
+
* Human-readable location display name (e.g. "Snap Fitness Dianella"), NOT a resource name. Do not use it to build API paths.
|
|
12610
|
+
*/
|
|
12598
12611
|
selectedLocationName?: string;
|
|
12612
|
+
/**
|
|
12613
|
+
* Bare GBP location id (digits only). Combine with the GBP account id as accounts/{gbpAccountId}/locations/{selectedLocationId} to form the location resource names that gmb-reviews/batch expects in locationNames.
|
|
12614
|
+
*/
|
|
12599
12615
|
selectedLocationId?: string;
|
|
12600
12616
|
};
|
|
12601
12617
|
});
|
|
@@ -15590,11 +15606,23 @@ export type ListInboxCommentsResponse = ({
|
|
|
15590
15606
|
platform?: string;
|
|
15591
15607
|
accountId?: string;
|
|
15592
15608
|
accountUsername?: string;
|
|
15609
|
+
/**
|
|
15610
|
+
* The post text/caption. On ad rows (isAd: true) this is the AD NAME, not the underlying post's caption — the creative text isn't exposed here.
|
|
15611
|
+
*/
|
|
15593
15612
|
content?: string;
|
|
15613
|
+
/**
|
|
15614
|
+
* Post media thumbnail. On ad rows this is the ad creative thumbnail.
|
|
15615
|
+
*/
|
|
15594
15616
|
picture?: (string) | null;
|
|
15617
|
+
/**
|
|
15618
|
+
* Public URL of the post. On ad rows: the Facebook dark-post URL (facebook placement) or the IG media permalink (instagram placement); may be null when unknown.
|
|
15619
|
+
*/
|
|
15595
15620
|
permalink?: (string) | null;
|
|
15596
15621
|
createdTime?: string;
|
|
15597
15622
|
commentCount?: number;
|
|
15623
|
+
/**
|
|
15624
|
+
* Not fetched for ad rows (always 0 there).
|
|
15625
|
+
*/
|
|
15598
15626
|
likeCount?: number;
|
|
15599
15627
|
/**
|
|
15600
15628
|
* Bluesky content identifier
|
|
@@ -16447,10 +16475,21 @@ export type ListInboxReviewsData = {
|
|
|
16447
16475
|
export type ListInboxReviewsResponse = ({
|
|
16448
16476
|
status?: string;
|
|
16449
16477
|
data?: Array<{
|
|
16478
|
+
/**
|
|
16479
|
+
* Review identifier. For Google Business this is the full review resource name (accounts/{accountId}/locations/{locationId}/reviews/{reviewId}), so it also encodes the location.
|
|
16480
|
+
*/
|
|
16450
16481
|
id?: string;
|
|
16451
16482
|
platform?: string;
|
|
16452
16483
|
accountId?: string;
|
|
16453
16484
|
accountUsername?: string;
|
|
16485
|
+
/**
|
|
16486
|
+
* Bare GBP location id the review belongs to. Google Business only; absent for other platforms.
|
|
16487
|
+
*/
|
|
16488
|
+
locationId?: string;
|
|
16489
|
+
/**
|
|
16490
|
+
* Human-readable GBP location display name. Google Business only; absent for other platforms.
|
|
16491
|
+
*/
|
|
16492
|
+
locationName?: (string) | null;
|
|
16454
16493
|
reviewer?: {
|
|
16455
16494
|
id?: (string) | null;
|
|
16456
16495
|
name?: string;
|
|
@@ -23853,6 +23892,18 @@ export type QueryAdInsightsData = {
|
|
|
23853
23892
|
* Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
|
|
23854
23893
|
*/
|
|
23855
23894
|
accountId: string;
|
|
23895
|
+
/**
|
|
23896
|
+
* Comma-separated Meta attribution windows. Action values are returned keyed per window.
|
|
23897
|
+
*/
|
|
23898
|
+
actionAttributionWindows?: string;
|
|
23899
|
+
/**
|
|
23900
|
+
* Comma-separated Graph action breakdowns. Segments the actions[] arrays in each row.
|
|
23901
|
+
*/
|
|
23902
|
+
actionBreakdowns?: string;
|
|
23903
|
+
/**
|
|
23904
|
+
* When actions are counted: impression, conversion or mixed.
|
|
23905
|
+
*/
|
|
23906
|
+
actionReportTime?: string;
|
|
23856
23907
|
/**
|
|
23857
23908
|
* Cursor from paging.after of the previous page.
|
|
23858
23909
|
*/
|
|
@@ -23897,6 +23948,10 @@ export type QueryAdInsightsData = {
|
|
|
23897
23948
|
* End of range (YYYY-MM-DD); requires fromDate.
|
|
23898
23949
|
*/
|
|
23899
23950
|
toDate?: string;
|
|
23951
|
+
/**
|
|
23952
|
+
* Use the ad sets' own attribution settings for action counting.
|
|
23953
|
+
*/
|
|
23954
|
+
useUnifiedAttributionSetting?: boolean;
|
|
23900
23955
|
};
|
|
23901
23956
|
};
|
|
23902
23957
|
|
|
@@ -23936,6 +23991,22 @@ export type CreateAdInsightsReportData = {
|
|
|
23936
23991
|
* Comma-separated Graph breakdowns.
|
|
23937
23992
|
*/
|
|
23938
23993
|
breakdowns?: string;
|
|
23994
|
+
/**
|
|
23995
|
+
* Comma-separated Graph action breakdowns (e.g. action_type,action_destination).
|
|
23996
|
+
*/
|
|
23997
|
+
actionBreakdowns?: string;
|
|
23998
|
+
/**
|
|
23999
|
+
* Meta attribution windows (e.g. ["7d_click", "1d_view"]). Action values are returned keyed per window.
|
|
24000
|
+
*/
|
|
24001
|
+
actionAttributionWindows?: Array<(string)>;
|
|
24002
|
+
/**
|
|
24003
|
+
* When actions are counted: impression, conversion or mixed.
|
|
24004
|
+
*/
|
|
24005
|
+
actionReportTime?: string;
|
|
24006
|
+
/**
|
|
24007
|
+
* Use the ad sets' own attribution settings for action counting.
|
|
24008
|
+
*/
|
|
24009
|
+
useUnifiedAttributionSetting?: boolean;
|
|
23939
24010
|
/**
|
|
23940
24011
|
* Meta filter objects, applied server-side.
|
|
23941
24012
|
*/
|
|
@@ -25074,6 +25145,38 @@ export type CreateStandaloneAdData = {
|
|
|
25074
25145
|
*/
|
|
25075
25146
|
adFormat?: 'SINGLE_IMAGE' | 'CAROUSEL_IMAGE';
|
|
25076
25147
|
};
|
|
25148
|
+
/**
|
|
25149
|
+
* Meta only. Hand-built carousel: 2-10 authored cards in DETERMINISTIC order, mapped to
|
|
25150
|
+
* the creative's `link_data.child_attachments`. Unlike `dynamicCreative`,
|
|
25151
|
+
* you control the card order and per-card copy/link. Requires top-level `body`,
|
|
25152
|
+
* `linkUrl` and `callToAction`.
|
|
25153
|
+
* Mutually exclusive with `imageUrl`/`video`, `creatives[]`, `dynamicCreative`,
|
|
25154
|
+
* `placementAssets`, `existingCreativeId`, `adSetId`, `leadGenFormId` and goal
|
|
25155
|
+
* `catalog_sales`.
|
|
25156
|
+
*
|
|
25157
|
+
*/
|
|
25158
|
+
carouselCards?: Array<{
|
|
25159
|
+
/**
|
|
25160
|
+
* Card image; uploaded to the ad account and referenced by hash.
|
|
25161
|
+
*/
|
|
25162
|
+
imageUrl: string;
|
|
25163
|
+
/**
|
|
25164
|
+
* Card destination URL. Defaults to the top-level linkUrl.
|
|
25165
|
+
*/
|
|
25166
|
+
linkUrl?: string;
|
|
25167
|
+
/**
|
|
25168
|
+
* Card headline, shown below the card image.
|
|
25169
|
+
*/
|
|
25170
|
+
headline?: string;
|
|
25171
|
+
/**
|
|
25172
|
+
* Card description, shown under the headline.
|
|
25173
|
+
*/
|
|
25174
|
+
description?: string;
|
|
25175
|
+
/**
|
|
25176
|
+
* Card CTA override. Defaults to the top-level callToAction; same enum.
|
|
25177
|
+
*/
|
|
25178
|
+
callToAction?: string;
|
|
25179
|
+
}>;
|
|
25077
25180
|
/**
|
|
25078
25181
|
* Meta only. Placement asset customization: pin a SPECIFIC asset (image OR video) to
|
|
25079
25182
|
* each placement group on a SINGLE ad (e.g. a 9:16 on Stories/Reels and a 4:5 on Feed).
|