@getlatedev/node 0.2.1819 → 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.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.1819",
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.1819",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1819",
3
+ "version": "0.2.1820",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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
- * Full review name, matching review.id on the review.new event ("accounts/123/locations/456/reviews/789").
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 edits 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.
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 platform28 = 'whatsapp';
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.