@getlatedev/node 0.2.1818 → 0.2.1820
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 +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +9 -10
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.1820",
|
|
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.1820",
|
|
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
|
@@ -30689,6 +30689,7 @@ export type event82 = 'referral.received';
|
|
|
30689
30689
|
* - If the review comes back, review.restored fires. A review Google hides and later restores produces review.deleted and then review.restored.
|
|
30690
30690
|
* - A review.updated can arrive for a review reported by review.deleted. The next check restores it.
|
|
30691
30691
|
* - It may arrive for a review id you never received review.new for. Ignore ids you do not know.
|
|
30692
|
+
* - On Facebook Pages it fires when Meta reports a removed recommendation with its review id. Best effort: Meta does not document the id on removals, so some removals produce no event.
|
|
30692
30693
|
*
|
|
30693
30694
|
*/
|
|
30694
30695
|
export type WebhookPayloadReviewDeleted = {
|
|
@@ -30704,20 +30705,20 @@ export type WebhookPayloadReviewDeleted = {
|
|
|
30704
30705
|
event: 'review.deleted';
|
|
30705
30706
|
review: {
|
|
30706
30707
|
/**
|
|
30707
|
-
*
|
|
30708
|
+
* Google: full review name. Facebook: the review id from review.new.
|
|
30708
30709
|
*/
|
|
30709
30710
|
id: string;
|
|
30710
|
-
platform: 'googlebusiness';
|
|
30711
|
+
platform: 'googlebusiness' | 'facebook';
|
|
30711
30712
|
/**
|
|
30712
30713
|
* Star rating the reviewer gave. Null when it was never recorded.
|
|
30713
30714
|
*/
|
|
30714
30715
|
rating: (number) | null;
|
|
30715
30716
|
/**
|
|
30716
|
-
* When the reviewer posted the review. Null when it was never recorded.
|
|
30717
|
+
* When the reviewer posted the review. Null when it was never recorded. Always null on Facebook.
|
|
30717
30718
|
*/
|
|
30718
30719
|
createdAt: (string) | null;
|
|
30719
30720
|
/**
|
|
30720
|
-
* Last time Zernio saw Google return this review.
|
|
30721
|
+
* Last time Zernio saw Google return this review. On Facebook, when Meta's removal notice arrived.
|
|
30721
30722
|
*/
|
|
30722
30723
|
lastSeenAt: string;
|
|
30723
30724
|
};
|
|
@@ -30738,8 +30739,6 @@ export type WebhookPayloadReviewDeleted = {
|
|
|
30738
30739
|
|
|
30739
30740
|
export type event83 = 'review.deleted';
|
|
30740
30741
|
|
|
30741
|
-
export type platform27 = 'googlebusiness';
|
|
30742
|
-
|
|
30743
30742
|
/**
|
|
30744
30743
|
* Webhook payload for the review.new event (new review posted on a connected account).
|
|
30745
30744
|
*/
|
|
@@ -30825,7 +30824,7 @@ export type event85 = 'review.restored';
|
|
|
30825
30824
|
*
|
|
30826
30825
|
* When a reply is present, review.hasReply is true and review.reply is populated.
|
|
30827
30826
|
*
|
|
30828
|
-
* On Facebook Pages it fires when the reviewer edits their review and when the Page adds or
|
|
30827
|
+
* On Facebook Pages it fires when the reviewer edits their review and when the Page adds, edits or removes a reply, with the review read live from the Page. A reply sent through the API produces only the review.updated from Meta's webhook, with no immediate delivery.
|
|
30829
30828
|
*
|
|
30830
30829
|
*/
|
|
30831
30830
|
export type WebhookPayloadReviewUpdated = {
|
|
@@ -31008,7 +31007,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
|
|
|
31008
31007
|
|
|
31009
31008
|
export type event91 = 'whatsapp.account.alert_received';
|
|
31010
31009
|
|
|
31011
|
-
export type
|
|
31010
|
+
export type platform27 = 'whatsapp';
|
|
31012
31011
|
|
|
31013
31012
|
/**
|
|
31014
31013
|
* Webhook payload for the `whatsapp.account.name_status_updated` event, fired when Meta finishes reviewing a WhatsApp display-name change on a connected number. Maps Meta's `phone_number_name_update` WABA webhook field onto our event envelope.
|
|
@@ -71685,9 +71684,9 @@ export type GetAdTreeData = {
|
|
|
71685
71684
|
*/
|
|
71686
71685
|
search?: string;
|
|
71687
71686
|
/**
|
|
71688
|
-
* Campaign
|
|
71687
|
+
* Campaign order. `newest` (default) / `oldest`: by the newest ad's createdAt. `spend_*`: by spend in the date range. `results_*` / `cost_per_result_*`: by results, or spend per result, for each campaign's objective (reach summed across its ads); no-result campaigns end a cost order.
|
|
71689
71688
|
*/
|
|
71690
|
-
sort?: 'newest' | 'oldest' | 'spend_desc' | 'spend_asc';
|
|
71689
|
+
sort?: 'newest' | 'oldest' | 'spend_desc' | 'spend_asc' | 'results_desc' | 'results_asc' | 'cost_per_result_asc' | 'cost_per_result_desc';
|
|
71691
71690
|
/**
|
|
71692
71691
|
* `all` (default) returns both Zernio-created ads and those discovered from the platform's ad manager. Matches the web UI's default view. Pass `zernio` to restrict to isExternal=false only. Status is NOT filtered by default; use the `status` param for that.
|
|
71693
71692
|
*/
|