@getlatedev/node 0.2.1807 → 0.2.1809
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 +44 -3
- package/dist/index.d.ts +44 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +44 -3
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
|
*
|
|
@@ -56249,7 +56250,7 @@ type ReplyToMentionError = (unknown | ErrorResponse);
|
|
|
56249
56250
|
type ListInboxReviewsData = {
|
|
56250
56251
|
query?: {
|
|
56251
56252
|
/**
|
|
56252
|
-
*
|
|
56253
|
+
* One account id, or several comma-separated.
|
|
56253
56254
|
*/
|
|
56254
56255
|
accountId?: string;
|
|
56255
56256
|
cursor?: string;
|
|
@@ -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
|
-
|
|
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
|
-
}
|
|
56343
|
+
};
|
|
56319
56344
|
reviewUrl?: (string) | null;
|
|
56320
56345
|
}>;
|
|
56321
56346
|
pagination?: {
|
|
@@ -56347,9 +56372,25 @@ type ListInboxReviewsResponse = ({
|
|
|
56347
56372
|
accountId?: string;
|
|
56348
56373
|
platform?: string;
|
|
56349
56374
|
}>;
|
|
56375
|
+
/**
|
|
56376
|
+
* Accounts whose listing hit the read budget with pages left: their reviews in data, and the Google Business Profile summary, are partial. Empty when every account was read in full.
|
|
56377
|
+
*/
|
|
56378
|
+
truncatedAccounts?: Array<{
|
|
56379
|
+
accountId?: string;
|
|
56380
|
+
platform?: string;
|
|
56381
|
+
}>;
|
|
56350
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
|
+
*/
|
|
56351
56386
|
summary?: {
|
|
56387
|
+
/**
|
|
56388
|
+
* Includes reviews without a star rating.
|
|
56389
|
+
*/
|
|
56352
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
|
+
*/
|
|
56353
56394
|
averageRating?: (number) | null;
|
|
56354
56395
|
};
|
|
56355
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
|
*
|
|
@@ -56249,7 +56250,7 @@ type ReplyToMentionError = (unknown | ErrorResponse);
|
|
|
56249
56250
|
type ListInboxReviewsData = {
|
|
56250
56251
|
query?: {
|
|
56251
56252
|
/**
|
|
56252
|
-
*
|
|
56253
|
+
* One account id, or several comma-separated.
|
|
56253
56254
|
*/
|
|
56254
56255
|
accountId?: string;
|
|
56255
56256
|
cursor?: string;
|
|
@@ -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
|
-
|
|
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
|
-
}
|
|
56343
|
+
};
|
|
56319
56344
|
reviewUrl?: (string) | null;
|
|
56320
56345
|
}>;
|
|
56321
56346
|
pagination?: {
|
|
@@ -56347,9 +56372,25 @@ type ListInboxReviewsResponse = ({
|
|
|
56347
56372
|
accountId?: string;
|
|
56348
56373
|
platform?: string;
|
|
56349
56374
|
}>;
|
|
56375
|
+
/**
|
|
56376
|
+
* Accounts whose listing hit the read budget with pages left: their reviews in data, and the Google Business Profile summary, are partial. Empty when every account was read in full.
|
|
56377
|
+
*/
|
|
56378
|
+
truncatedAccounts?: Array<{
|
|
56379
|
+
accountId?: string;
|
|
56380
|
+
platform?: string;
|
|
56381
|
+
}>;
|
|
56350
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
|
+
*/
|
|
56351
56386
|
summary?: {
|
|
56387
|
+
/**
|
|
56388
|
+
* Includes reviews without a star rating.
|
|
56389
|
+
*/
|
|
56352
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
|
+
*/
|
|
56353
56394
|
averageRating?: (number) | null;
|
|
56354
56395
|
};
|
|
56355
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.
|
|
39
|
+
version: "0.2.1809",
|
|
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.1809",
|
|
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
|
@@ -9804,7 +9804,7 @@ export const replyToMention = <ThrowOnError extends boolean = false>(options: Op
|
|
|
9804
9804
|
* Fetch reviews from all connected Facebook Pages and Google Business Profile accounts. Aggregates data with filtering and sorting options.
|
|
9805
9805
|
* Supported platforms: Facebook, Google Business Profile.
|
|
9806
9806
|
*
|
|
9807
|
-
* Each account's reviews are read from the platform page by page within a 20-second budget per request, so very large accounts can come back truncated. Each account's listing is cached for up to 60 seconds.
|
|
9807
|
+
* Each account's reviews are read from the platform page by page within a 20-second budget per request, so very large accounts can come back truncated; those accounts are listed in meta.truncatedAccounts. Each account's listing is cached for up to 60 seconds.
|
|
9808
9808
|
*
|
|
9809
9809
|
*/
|
|
9810
9810
|
export const listInboxReviews = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListInboxReviewsData, ThrowOnError>) => {
|
|
@@ -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
|
*
|
|
@@ -56543,7 +56544,7 @@ export type ReplyToMentionError = (unknown | ErrorResponse);
|
|
|
56543
56544
|
export type ListInboxReviewsData = {
|
|
56544
56545
|
query?: {
|
|
56545
56546
|
/**
|
|
56546
|
-
*
|
|
56547
|
+
* One account id, or several comma-separated.
|
|
56547
56548
|
*/
|
|
56548
56549
|
accountId?: string;
|
|
56549
56550
|
cursor?: string;
|
|
@@ -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
|
-
|
|
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
|
-
}
|
|
56638
|
+
};
|
|
56614
56639
|
reviewUrl?: (string) | null;
|
|
56615
56640
|
}>;
|
|
56616
56641
|
pagination?: {
|
|
@@ -56642,9 +56667,25 @@ export type ListInboxReviewsResponse = ({
|
|
|
56642
56667
|
accountId?: string;
|
|
56643
56668
|
platform?: string;
|
|
56644
56669
|
}>;
|
|
56670
|
+
/**
|
|
56671
|
+
* Accounts whose listing hit the read budget with pages left: their reviews in data, and the Google Business Profile summary, are partial. Empty when every account was read in full.
|
|
56672
|
+
*/
|
|
56673
|
+
truncatedAccounts?: Array<{
|
|
56674
|
+
accountId?: string;
|
|
56675
|
+
platform?: string;
|
|
56676
|
+
}>;
|
|
56645
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
|
+
*/
|
|
56646
56681
|
summary?: {
|
|
56682
|
+
/**
|
|
56683
|
+
* Includes reviews without a star rating.
|
|
56684
|
+
*/
|
|
56647
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
|
+
*/
|
|
56648
56689
|
averageRating?: (number) | null;
|
|
56649
56690
|
};
|
|
56650
56691
|
});
|