@getlatedev/node 0.2.221 → 0.2.223

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
@@ -9724,12 +9724,16 @@ type BatchGetGoogleBusinessReviewsResponse = ({
9724
9724
  success?: boolean;
9725
9725
  accountId?: string;
9726
9726
  locationReviews?: Array<{
9727
- locationName?: string;
9728
- reviews?: Array<{
9727
+ /**
9728
+ * Full review resource name (accounts*locations*reviews*)
9729
+ */
9730
+ name?: string;
9731
+ /**
9732
+ * The review object (reviewId
9733
+ */
9734
+ review?: {
9729
9735
  [key: string]: unknown;
9730
- }>;
9731
- averageRating?: number;
9732
- totalReviewCount?: number;
9736
+ };
9733
9737
  }>;
9734
9738
  nextPageToken?: string;
9735
9739
  });
@@ -14502,10 +14506,13 @@ type GetWhatsAppPhoneNumbersData = {
14502
14506
  * still in review PLUS recently-declined (last 30 days) ones, so a
14503
14507
  * failed registration surfaces (with `regulatoryDeclineReason`) instead
14504
14508
  * of silently disappearing. Declined numbers can be re-submitted via
14505
- * POST /v1/whatsapp/phone-numbers/{id}/remediate.
14509
+ * POST /v1/whatsapp/phone-numbers/{id}/remediate. `verifying` is the
14510
+ * short-lived state after the number is provisioned on our side while
14511
+ * WhatsApp confirms the activation code; the number is not billed until
14512
+ * it reaches `active`.
14506
14513
  *
14507
14514
  */
14508
- status?: 'provisioning' | 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'active' | 'suspended' | 'releasing' | 'released';
14515
+ status?: 'provisioning' | 'verifying' | 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'active' | 'suspended' | 'releasing' | 'released';
14509
14516
  };
14510
14517
  };
14511
14518
  type GetWhatsAppPhoneNumbersResponse = ({
@@ -14513,7 +14520,7 @@ type GetWhatsAppPhoneNumbersResponse = ({
14513
14520
  _id?: string;
14514
14521
  phoneNumber?: string;
14515
14522
  country?: string;
14516
- status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'active' | 'suspended' | 'releasing' | 'released';
14523
+ status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
14517
14524
  /**
14518
14525
  * For regulated numbers
14519
14526
  */
@@ -14860,7 +14867,7 @@ type GetWhatsAppPhoneNumberResponse = ({
14860
14867
  phoneNumber?: {
14861
14868
  id?: string;
14862
14869
  phoneNumber?: string;
14863
- status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'active' | 'suspended' | 'releasing' | 'released';
14870
+ status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
14864
14871
  country?: string;
14865
14872
  metaPreverifiedId?: string;
14866
14873
  metaVerificationStatus?: string;
package/dist/index.d.ts CHANGED
@@ -9724,12 +9724,16 @@ type BatchGetGoogleBusinessReviewsResponse = ({
9724
9724
  success?: boolean;
9725
9725
  accountId?: string;
9726
9726
  locationReviews?: Array<{
9727
- locationName?: string;
9728
- reviews?: Array<{
9727
+ /**
9728
+ * Full review resource name (accounts*locations*reviews*)
9729
+ */
9730
+ name?: string;
9731
+ /**
9732
+ * The review object (reviewId
9733
+ */
9734
+ review?: {
9729
9735
  [key: string]: unknown;
9730
- }>;
9731
- averageRating?: number;
9732
- totalReviewCount?: number;
9736
+ };
9733
9737
  }>;
9734
9738
  nextPageToken?: string;
9735
9739
  });
@@ -14502,10 +14506,13 @@ type GetWhatsAppPhoneNumbersData = {
14502
14506
  * still in review PLUS recently-declined (last 30 days) ones, so a
14503
14507
  * failed registration surfaces (with `regulatoryDeclineReason`) instead
14504
14508
  * of silently disappearing. Declined numbers can be re-submitted via
14505
- * POST /v1/whatsapp/phone-numbers/{id}/remediate.
14509
+ * POST /v1/whatsapp/phone-numbers/{id}/remediate. `verifying` is the
14510
+ * short-lived state after the number is provisioned on our side while
14511
+ * WhatsApp confirms the activation code; the number is not billed until
14512
+ * it reaches `active`.
14506
14513
  *
14507
14514
  */
14508
- status?: 'provisioning' | 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'active' | 'suspended' | 'releasing' | 'released';
14515
+ status?: 'provisioning' | 'verifying' | 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'active' | 'suspended' | 'releasing' | 'released';
14509
14516
  };
14510
14517
  };
14511
14518
  type GetWhatsAppPhoneNumbersResponse = ({
@@ -14513,7 +14520,7 @@ type GetWhatsAppPhoneNumbersResponse = ({
14513
14520
  _id?: string;
14514
14521
  phoneNumber?: string;
14515
14522
  country?: string;
14516
- status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'active' | 'suspended' | 'releasing' | 'released';
14523
+ status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
14517
14524
  /**
14518
14525
  * For regulated numbers
14519
14526
  */
@@ -14860,7 +14867,7 @@ type GetWhatsAppPhoneNumberResponse = ({
14860
14867
  phoneNumber?: {
14861
14868
  id?: string;
14862
14869
  phoneNumber?: string;
14863
- status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'active' | 'suspended' | 'releasing' | 'released';
14870
+ status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
14864
14871
  country?: string;
14865
14872
  metaPreverifiedId?: string;
14866
14873
  metaVerificationStatus?: 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.221",
39
+ version: "0.2.223",
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.221",
8
+ version: "0.2.223",
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.221",
3
+ "version": "0.2.223",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1382,7 +1382,9 @@ export const updateGoogleBusinessServices = <ThrowOnError extends boolean = fals
1382
1382
  * Batch get reviews
1383
1383
  * Fetches reviews across multiple locations in a single request.
1384
1384
  * More efficient than calling GET /gmb-reviews per location for multi-location businesses.
1385
- * Reviews are grouped by location in the response.
1385
+ * Returns a flat list of individual reviews, each tagged with its review resource name.
1386
+ * Note: this endpoint does not return aggregate metrics (averageRating / totalReviewCount).
1387
+ * For those, use the single-location GET /gmb-reviews endpoint.
1386
1388
  *
1387
1389
  */
1388
1390
  export const batchGetGoogleBusinessReviews = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BatchGetGoogleBusinessReviewsData, ThrowOnError>) => {
@@ -9495,12 +9495,16 @@ export type BatchGetGoogleBusinessReviewsResponse = ({
9495
9495
  success?: boolean;
9496
9496
  accountId?: string;
9497
9497
  locationReviews?: Array<{
9498
- locationName?: string;
9499
- reviews?: Array<{
9498
+ /**
9499
+ * Full review resource name (accounts*locations*reviews*)
9500
+ */
9501
+ name?: string;
9502
+ /**
9503
+ * The review object (reviewId
9504
+ */
9505
+ review?: {
9500
9506
  [key: string]: unknown;
9501
- }>;
9502
- averageRating?: number;
9503
- totalReviewCount?: number;
9507
+ };
9504
9508
  }>;
9505
9509
  nextPageToken?: string;
9506
9510
  });
@@ -14652,10 +14656,13 @@ export type GetWhatsAppPhoneNumbersData = {
14652
14656
  * still in review PLUS recently-declined (last 30 days) ones, so a
14653
14657
  * failed registration surfaces (with `regulatoryDeclineReason`) instead
14654
14658
  * of silently disappearing. Declined numbers can be re-submitted via
14655
- * POST /v1/whatsapp/phone-numbers/{id}/remediate.
14659
+ * POST /v1/whatsapp/phone-numbers/{id}/remediate. `verifying` is the
14660
+ * short-lived state after the number is provisioned on our side while
14661
+ * WhatsApp confirms the activation code; the number is not billed until
14662
+ * it reaches `active`.
14656
14663
  *
14657
14664
  */
14658
- status?: 'provisioning' | 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'active' | 'suspended' | 'releasing' | 'released';
14665
+ status?: 'provisioning' | 'verifying' | 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'active' | 'suspended' | 'releasing' | 'released';
14659
14666
  };
14660
14667
  };
14661
14668
 
@@ -14664,7 +14671,7 @@ export type GetWhatsAppPhoneNumbersResponse = ({
14664
14671
  _id?: string;
14665
14672
  phoneNumber?: string;
14666
14673
  country?: string;
14667
- status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'active' | 'suspended' | 'releasing' | 'released';
14674
+ status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
14668
14675
  /**
14669
14676
  * For regulated numbers
14670
14677
  */
@@ -15040,7 +15047,7 @@ export type GetWhatsAppPhoneNumberResponse = ({
15040
15047
  phoneNumber?: {
15041
15048
  id?: string;
15042
15049
  phoneNumber?: string;
15043
- status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'active' | 'suspended' | 'releasing' | 'released';
15050
+ status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
15044
15051
  country?: string;
15045
15052
  metaPreverifiedId?: string;
15046
15053
  metaVerificationStatus?: string;