@getlatedev/node 0.2.1808 → 0.2.1810

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
@@ -23730,6 +23730,7 @@ type SocialAccount = {
23730
23730
  * - **Instagram Login accounts:** the app-scoped user id (the professional account id is in `metadata.instagramScopedId`).
23731
23731
  * - **Instagram via Facebook Login:** the professional account id (`17841...`).
23732
23732
  * - **TikTok:** the open_id of Zernio's TikTok app, which differs from the open_id any other app sees for the same user.
23733
+ * - **Google Business Profile:** `<googleUserId>:location:<locationId>`, the Google user that connected it and the selected location. The location part is empty until a location is selected.
23733
23734
  *
23734
23735
  * Either value can be passed back as `expectedPlatformUserId` on GET /v1/connect/{platform}.
23735
23736
  *
@@ -56258,10 +56259,19 @@ type ListInboxReviewsData = {
56258
56259
  */
56259
56260
  hasReply?: boolean;
56260
56261
  limit?: number;
56262
+ /**
56263
+ * Reviews without a star rating (Facebook recommendations) never match.
56264
+ */
56261
56265
  maxRating?: number;
56266
+ /**
56267
+ * Reviews without a star rating (Facebook recommendations) never match.
56268
+ */
56262
56269
  minRating?: number;
56263
56270
  platform?: 'facebook' | 'googlebusiness';
56264
56271
  profileId?: string;
56272
+ /**
56273
+ * rating puts reviews without a star rating last in both orders.
56274
+ */
56265
56275
  sortBy?: 'date' | 'rating';
56266
56276
  sortOrder?: 'asc' | 'desc';
56267
56277
  };
@@ -56289,7 +56299,10 @@ type ListInboxReviewsResponse = ({
56289
56299
  name?: string;
56290
56300
  profileImage?: (string) | null;
56291
56301
  };
56292
- rating?: number;
56302
+ /**
56303
+ * Star rating the reviewer gave, 1 to 5. Null for a Facebook recommendation without stars (see recommendationType).
56304
+ */
56305
+ rating?: (number) | null;
56293
56306
  /**
56294
56307
  * Facebook recommendation: positive means recommends, negative means does not recommend. Null or absent when unavailable; absent for other platforms. Independent of the numeric rating.
56295
56308
  */
@@ -56311,11 +56324,23 @@ type ListInboxReviewsResponse = ({
56311
56324
  photos?: Array<{
56312
56325
  url?: string;
56313
56326
  }>;
56327
+ /**
56328
+ * The reply from the Page or business. Absent when hasReply is false.
56329
+ */
56314
56330
  reply?: {
56331
+ /**
56332
+ * Reply id. On Google Business Profile it is the review id.
56333
+ */
56315
56334
  id?: string;
56335
+ /**
56336
+ * Reply text.
56337
+ */
56316
56338
  text?: string;
56339
+ /**
56340
+ * When the reply was written (on Google Business Profile, last updated).
56341
+ */
56317
56342
  created?: string;
56318
- } | null;
56343
+ };
56319
56344
  reviewUrl?: (string) | null;
56320
56345
  }>;
56321
56346
  pagination?: {
@@ -56355,8 +56380,17 @@ type ListInboxReviewsResponse = ({
56355
56380
  platform?: string;
56356
56381
  }>;
56357
56382
  };
56383
+ /**
56384
+ * Computed over every review matching the filters, before pagination. A Facebook Page contributes the Page-wide count and average Facebook reports, which ignore the filters. Google Business Profile locations are computed over the reviews read, partial for accounts in meta.truncatedAccounts.
56385
+ */
56358
56386
  summary?: {
56387
+ /**
56388
+ * Includes reviews without a star rating.
56389
+ */
56359
56390
  totalReviews?: number;
56391
+ /**
56392
+ * Mean star rating rounded to one decimal, leaving out reviews without a star rating. Null when none has one.
56393
+ */
56360
56394
  averageRating?: (number) | null;
56361
56395
  };
56362
56396
  });
package/dist/index.d.ts CHANGED
@@ -23730,6 +23730,7 @@ type SocialAccount = {
23730
23730
  * - **Instagram Login accounts:** the app-scoped user id (the professional account id is in `metadata.instagramScopedId`).
23731
23731
  * - **Instagram via Facebook Login:** the professional account id (`17841...`).
23732
23732
  * - **TikTok:** the open_id of Zernio's TikTok app, which differs from the open_id any other app sees for the same user.
23733
+ * - **Google Business Profile:** `<googleUserId>:location:<locationId>`, the Google user that connected it and the selected location. The location part is empty until a location is selected.
23733
23734
  *
23734
23735
  * Either value can be passed back as `expectedPlatformUserId` on GET /v1/connect/{platform}.
23735
23736
  *
@@ -56258,10 +56259,19 @@ type ListInboxReviewsData = {
56258
56259
  */
56259
56260
  hasReply?: boolean;
56260
56261
  limit?: number;
56262
+ /**
56263
+ * Reviews without a star rating (Facebook recommendations) never match.
56264
+ */
56261
56265
  maxRating?: number;
56266
+ /**
56267
+ * Reviews without a star rating (Facebook recommendations) never match.
56268
+ */
56262
56269
  minRating?: number;
56263
56270
  platform?: 'facebook' | 'googlebusiness';
56264
56271
  profileId?: string;
56272
+ /**
56273
+ * rating puts reviews without a star rating last in both orders.
56274
+ */
56265
56275
  sortBy?: 'date' | 'rating';
56266
56276
  sortOrder?: 'asc' | 'desc';
56267
56277
  };
@@ -56289,7 +56299,10 @@ type ListInboxReviewsResponse = ({
56289
56299
  name?: string;
56290
56300
  profileImage?: (string) | null;
56291
56301
  };
56292
- rating?: number;
56302
+ /**
56303
+ * Star rating the reviewer gave, 1 to 5. Null for a Facebook recommendation without stars (see recommendationType).
56304
+ */
56305
+ rating?: (number) | null;
56293
56306
  /**
56294
56307
  * Facebook recommendation: positive means recommends, negative means does not recommend. Null or absent when unavailable; absent for other platforms. Independent of the numeric rating.
56295
56308
  */
@@ -56311,11 +56324,23 @@ type ListInboxReviewsResponse = ({
56311
56324
  photos?: Array<{
56312
56325
  url?: string;
56313
56326
  }>;
56327
+ /**
56328
+ * The reply from the Page or business. Absent when hasReply is false.
56329
+ */
56314
56330
  reply?: {
56331
+ /**
56332
+ * Reply id. On Google Business Profile it is the review id.
56333
+ */
56315
56334
  id?: string;
56335
+ /**
56336
+ * Reply text.
56337
+ */
56316
56338
  text?: string;
56339
+ /**
56340
+ * When the reply was written (on Google Business Profile, last updated).
56341
+ */
56317
56342
  created?: string;
56318
- } | null;
56343
+ };
56319
56344
  reviewUrl?: (string) | null;
56320
56345
  }>;
56321
56346
  pagination?: {
@@ -56355,8 +56380,17 @@ type ListInboxReviewsResponse = ({
56355
56380
  platform?: string;
56356
56381
  }>;
56357
56382
  };
56383
+ /**
56384
+ * Computed over every review matching the filters, before pagination. A Facebook Page contributes the Page-wide count and average Facebook reports, which ignore the filters. Google Business Profile locations are computed over the reviews read, partial for accounts in meta.truncatedAccounts.
56385
+ */
56358
56386
  summary?: {
56387
+ /**
56388
+ * Includes reviews without a star rating.
56389
+ */
56359
56390
  totalReviews?: number;
56391
+ /**
56392
+ * Mean star rating rounded to one decimal, leaving out reviews without a star rating. Null when none has one.
56393
+ */
56360
56394
  averageRating?: (number) | null;
56361
56395
  };
56362
56396
  });
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.1808",
39
+ version: "0.2.1810",
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.1808",
8
+ version: "0.2.1810",
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.1808",
3
+ "version": "0.2.1810",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2151,9 +2151,15 @@ export const getXApiPricing = <ThrowOnError extends boolean = false>(options?: O
2151
2151
  *
2152
2152
  * A 10DLC fee goes to a profile only when its registration names one. Registrations filed by API or dashboard belong to the owner and stay unattributed.
2153
2153
  *
2154
- * A caller that sees the whole workspace gets `restricted: false` and the same `totals` as without `groupBy`. Shares are measured over everything the bill and its members carry, so `unattributed` can include spend outside the workspace, never named.
2154
+ * A caller that sees the whole workspace gets `restricted: false` and the same `totals` as without `groupBy`.
2155
2155
  *
2156
- * Since 1.817.0 every billed account has one even price: the window's `accounts` total, after tiers and the monthly credit, divided by the billed accounts your members have connected now. Before, the oldest accounts took the credit and could show $0. Your invoice did not change.
2156
+ * Since 1.822.0, shares are measured over what the workspace's bill carries (before, over everything its members held in any workspace):
2157
+ *
2158
+ * - Its own profiles count, whoever connected their accounts. What its members hold on other bills takes no share.
2159
+ * - A profile moved between workspaces counts on each bill for the days it was there.
2160
+ * - What the bill carried for a profile that moved out, or still carries from outside the workspace, is `unattributed` and never named.
2161
+ *
2162
+ * Since 1.817.0 every billed account has one even price: the window's `accounts` total, after tiers and the monthly credit, divided by the accounts connected now (since 1.822.0, the ones the bill carries). Before, the oldest accounts took the credit and could show $0. Your invoice did not change.
2157
2163
  *
2158
2164
  * Example: 5 accounts cost $30 minus the $12 credit, $18, so $3.60 each. A profile with 2 of them shows $7.20. In a contract's first month, a credit carried over is unattributed instead, so they show $6.00 each.
2159
2165
  *
@@ -22054,6 +22054,7 @@ export type SocialAccount = {
22054
22054
  * - **Instagram Login accounts:** the app-scoped user id (the professional account id is in `metadata.instagramScopedId`).
22055
22055
  * - **Instagram via Facebook Login:** the professional account id (`17841...`).
22056
22056
  * - **TikTok:** the open_id of Zernio's TikTok app, which differs from the open_id any other app sees for the same user.
22057
+ * - **Google Business Profile:** `<googleUserId>:location:<locationId>`, the Google user that connected it and the selected location. The location part is empty until a location is selected.
22057
22058
  *
22058
22059
  * Either value can be passed back as `expectedPlatformUserId` on GET /v1/connect/{platform}.
22059
22060
  *
@@ -56552,10 +56553,19 @@ export type ListInboxReviewsData = {
56552
56553
  */
56553
56554
  hasReply?: boolean;
56554
56555
  limit?: number;
56556
+ /**
56557
+ * Reviews without a star rating (Facebook recommendations) never match.
56558
+ */
56555
56559
  maxRating?: number;
56560
+ /**
56561
+ * Reviews without a star rating (Facebook recommendations) never match.
56562
+ */
56556
56563
  minRating?: number;
56557
56564
  platform?: 'facebook' | 'googlebusiness';
56558
56565
  profileId?: string;
56566
+ /**
56567
+ * rating puts reviews without a star rating last in both orders.
56568
+ */
56559
56569
  sortBy?: 'date' | 'rating';
56560
56570
  sortOrder?: 'asc' | 'desc';
56561
56571
  };
@@ -56584,7 +56594,10 @@ export type ListInboxReviewsResponse = ({
56584
56594
  name?: string;
56585
56595
  profileImage?: (string) | null;
56586
56596
  };
56587
- rating?: number;
56597
+ /**
56598
+ * Star rating the reviewer gave, 1 to 5. Null for a Facebook recommendation without stars (see recommendationType).
56599
+ */
56600
+ rating?: (number) | null;
56588
56601
  /**
56589
56602
  * Facebook recommendation: positive means recommends, negative means does not recommend. Null or absent when unavailable; absent for other platforms. Independent of the numeric rating.
56590
56603
  */
@@ -56606,11 +56619,23 @@ export type ListInboxReviewsResponse = ({
56606
56619
  photos?: Array<{
56607
56620
  url?: string;
56608
56621
  }>;
56622
+ /**
56623
+ * The reply from the Page or business. Absent when hasReply is false.
56624
+ */
56609
56625
  reply?: {
56626
+ /**
56627
+ * Reply id. On Google Business Profile it is the review id.
56628
+ */
56610
56629
  id?: string;
56630
+ /**
56631
+ * Reply text.
56632
+ */
56611
56633
  text?: string;
56634
+ /**
56635
+ * When the reply was written (on Google Business Profile, last updated).
56636
+ */
56612
56637
  created?: string;
56613
- } | null;
56638
+ };
56614
56639
  reviewUrl?: (string) | null;
56615
56640
  }>;
56616
56641
  pagination?: {
@@ -56650,8 +56675,17 @@ export type ListInboxReviewsResponse = ({
56650
56675
  platform?: string;
56651
56676
  }>;
56652
56677
  };
56678
+ /**
56679
+ * Computed over every review matching the filters, before pagination. A Facebook Page contributes the Page-wide count and average Facebook reports, which ignore the filters. Google Business Profile locations are computed over the reviews read, partial for accounts in meta.truncatedAccounts.
56680
+ */
56653
56681
  summary?: {
56682
+ /**
56683
+ * Includes reviews without a star rating.
56684
+ */
56654
56685
  totalReviews?: number;
56686
+ /**
56687
+ * Mean star rating rounded to one decimal, leaving out reviews without a star rating. Null when none has one.
56688
+ */
56655
56689
  averageRating?: (number) | null;
56656
56690
  };
56657
56691
  });