@getlatedev/node 0.2.386 → 0.2.387

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 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
- * Full review resource name (accounts*locations*reviews*)
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 (reviewId, starRating, comment, reviewer, createTime, updateTime, reviewReply)
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;
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
- * Full review resource name (accounts*locations*reviews*)
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 (reviewId, starRating, comment, reviewer, createTime, updateTime, reviewReply)
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;
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.386",
39
+ version: "0.2.387",
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.386",
8
+ version: "0.2.387",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.386",
3
+ "version": "0.2.387",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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 list of individual reviews, each tagged with its review resource name.
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
- * Full review resource name (accounts*locations*reviews*)
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 (reviewId, starRating, comment, reviewer, createTime, updateTime, reviewReply)
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;