@zernio/node 0.2.697 → 0.2.699

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
@@ -2240,7 +2240,7 @@ type AdTreeAdSet = {
2240
2240
  page_id?: string;
2241
2241
  } | null;
2242
2242
  /**
2243
- * Individual ads within this ad set (capped at 100). Returns a subset of Ad fields from the aggregation: `_id`, `name`, `platform`, `status`, `configuredStatus`, `reviewStatus`, `budget`, `metrics`, `creative`, `goal` and the `platform*` ids are always included; `targeting` and `schedule` may be absent. `configuredStatus` (the ad's own on/off toggle) and `reviewStatus` (the platform's review verdict) are part of this contract, not incidental: a rejected ad is only distinguishable from a healthy one through `reviewStatus`. When `timeIncrement=1&dailyLevel=ad`, each entry also carries a `daily[]` array of `AdDailyMetrics`.
2243
+ * Individual ads within this ad set (capped at 100). When the ad set has more than 100 ads these are the 100 highest-spending over the requested date range, so this array depends on `fromDate`/`toDate`; `adCount` is always the true ad set size. Returns a subset of Ad fields from the aggregation: `_id`, `name`, `platform`, `status`, `configuredStatus`, `reviewStatus`, `budget`, `metrics`, `creative`, `goal` and the `platform*` ids are always included; `targeting` and `schedule` may be absent. `configuredStatus` (the ad's own on/off toggle) and `reviewStatus` (the platform's review verdict) are part of this contract, not incidental: a rejected ad is only distinguishable from a healthy one through `reviewStatus`. When `timeIncrement=1&dailyLevel=ad`, each entry also carries a `daily[]` array of `AdDailyMetrics`.
2244
2244
  */
2245
2245
  ads?: Array<Ad>;
2246
2246
  /**
@@ -24255,7 +24255,7 @@ type ListPhoneNumbersResponse = ({
24255
24255
  */
24256
24256
  telnyxOrderId?: (string) | null;
24257
24257
  /**
24258
- * Per-country monthly price in cents ($2..$25).
24258
+ * What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
24259
24259
  */
24260
24260
  monthlyCents?: number;
24261
24261
  /**
@@ -24483,6 +24483,9 @@ type ListPhoneNumberCountriesResponse = ({
24483
24483
  */
24484
24484
  code?: string;
24485
24485
  tier?: 1 | 2 | 3 | 4;
24486
+ /**
24487
+ * Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
24488
+ */
24486
24489
  monthlyCents?: number;
24487
24490
  needsKyc?: boolean;
24488
24491
  /**
@@ -24513,6 +24516,9 @@ type ListPhoneNumberCountriesResponse = ({
24513
24516
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
24514
24517
  tier?: 1 | 2 | 3 | 4;
24515
24518
  needsKyc?: boolean;
24519
+ /**
24520
+ * Price a NEW number of this type costs per month, in cents.
24521
+ */
24516
24522
  monthlyCents?: number;
24517
24523
  /**
24518
24524
  * Always false for toll_free (WhatsApp does not reliably register toll-free numbers).
@@ -24657,7 +24663,7 @@ type GetWhatsAppPhoneNumbersResponse = ({
24657
24663
  */
24658
24664
  telnyxOrderId?: (string) | null;
24659
24665
  /**
24660
- * Per-country monthly price in cents ($2..$25).
24666
+ * What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
24661
24667
  */
24662
24668
  monthlyCents?: number;
24663
24669
  /**
@@ -24792,6 +24798,9 @@ type ListWhatsAppNumberCountriesResponse = ({
24792
24798
  */
24793
24799
  code?: string;
24794
24800
  tier?: 1 | 2 | 3 | 4;
24801
+ /**
24802
+ * Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
24803
+ */
24795
24804
  monthlyCents?: number;
24796
24805
  needsKyc?: boolean;
24797
24806
  outboundCallingAvailable?: boolean;
package/dist/index.d.ts CHANGED
@@ -2240,7 +2240,7 @@ type AdTreeAdSet = {
2240
2240
  page_id?: string;
2241
2241
  } | null;
2242
2242
  /**
2243
- * Individual ads within this ad set (capped at 100). Returns a subset of Ad fields from the aggregation: `_id`, `name`, `platform`, `status`, `configuredStatus`, `reviewStatus`, `budget`, `metrics`, `creative`, `goal` and the `platform*` ids are always included; `targeting` and `schedule` may be absent. `configuredStatus` (the ad's own on/off toggle) and `reviewStatus` (the platform's review verdict) are part of this contract, not incidental: a rejected ad is only distinguishable from a healthy one through `reviewStatus`. When `timeIncrement=1&dailyLevel=ad`, each entry also carries a `daily[]` array of `AdDailyMetrics`.
2243
+ * Individual ads within this ad set (capped at 100). When the ad set has more than 100 ads these are the 100 highest-spending over the requested date range, so this array depends on `fromDate`/`toDate`; `adCount` is always the true ad set size. Returns a subset of Ad fields from the aggregation: `_id`, `name`, `platform`, `status`, `configuredStatus`, `reviewStatus`, `budget`, `metrics`, `creative`, `goal` and the `platform*` ids are always included; `targeting` and `schedule` may be absent. `configuredStatus` (the ad's own on/off toggle) and `reviewStatus` (the platform's review verdict) are part of this contract, not incidental: a rejected ad is only distinguishable from a healthy one through `reviewStatus`. When `timeIncrement=1&dailyLevel=ad`, each entry also carries a `daily[]` array of `AdDailyMetrics`.
2244
2244
  */
2245
2245
  ads?: Array<Ad>;
2246
2246
  /**
@@ -24255,7 +24255,7 @@ type ListPhoneNumbersResponse = ({
24255
24255
  */
24256
24256
  telnyxOrderId?: (string) | null;
24257
24257
  /**
24258
- * Per-country monthly price in cents ($2..$25).
24258
+ * What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
24259
24259
  */
24260
24260
  monthlyCents?: number;
24261
24261
  /**
@@ -24483,6 +24483,9 @@ type ListPhoneNumberCountriesResponse = ({
24483
24483
  */
24484
24484
  code?: string;
24485
24485
  tier?: 1 | 2 | 3 | 4;
24486
+ /**
24487
+ * Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
24488
+ */
24486
24489
  monthlyCents?: number;
24487
24490
  needsKyc?: boolean;
24488
24491
  /**
@@ -24513,6 +24516,9 @@ type ListPhoneNumberCountriesResponse = ({
24513
24516
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
24514
24517
  tier?: 1 | 2 | 3 | 4;
24515
24518
  needsKyc?: boolean;
24519
+ /**
24520
+ * Price a NEW number of this type costs per month, in cents.
24521
+ */
24516
24522
  monthlyCents?: number;
24517
24523
  /**
24518
24524
  * Always false for toll_free (WhatsApp does not reliably register toll-free numbers).
@@ -24657,7 +24663,7 @@ type GetWhatsAppPhoneNumbersResponse = ({
24657
24663
  */
24658
24664
  telnyxOrderId?: (string) | null;
24659
24665
  /**
24660
- * Per-country monthly price in cents ($2..$25).
24666
+ * What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
24661
24667
  */
24662
24668
  monthlyCents?: number;
24663
24669
  /**
@@ -24792,6 +24798,9 @@ type ListWhatsAppNumberCountriesResponse = ({
24792
24798
  */
24793
24799
  code?: string;
24794
24800
  tier?: 1 | 2 | 3 | 4;
24801
+ /**
24802
+ * Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
24803
+ */
24795
24804
  monthlyCents?: number;
24796
24805
  needsKyc?: boolean;
24797
24806
  outboundCallingAvailable?: boolean;
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: "@zernio/node",
39
- version: "0.2.697",
39
+ version: "0.2.699",
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: "@zernio/node",
8
- version: "0.2.697",
8
+ version: "0.2.699",
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": "@zernio/node",
3
- "version": "0.2.697",
3
+ "version": "0.2.699",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -5587,6 +5587,10 @@ export const releasePhoneNumber = <ThrowOnError extends boolean = false>(options
5587
5587
  * no checkout redirect). No payment method on file returns `402 PAYMENT_REQUIRED`;
5588
5588
  * a regulated country returns `202` with `status: "kyc_required"` and a `kycUrl`.
5589
5589
  *
5590
+ * The monthly price is the one `GET /v1/phone-numbers/countries` quotes for that
5591
+ * country and `numberType` at the time of purchase, and it is stamped on the number:
5592
+ * later rate-card changes never move a number you already own.
5593
+ *
5590
5594
  * Requires usage-based billing (the Usage plan). The maximum number of phone numbers
5591
5595
  * is determined by the user's plan.
5592
5596
  *
@@ -5681,6 +5685,10 @@ export const getWhatsAppPhoneNumbers = <ThrowOnError extends boolean = false>(op
5681
5685
  * no checkout redirect). No payment method on file returns `402 PAYMENT_REQUIRED`;
5682
5686
  * a regulated country returns `202` with `status: "kyc_required"` and a `kycUrl`.
5683
5687
  *
5688
+ * The monthly price is the one `GET /v1/phone-numbers/countries` quotes for that
5689
+ * country and `numberType` at the time of purchase, and it is stamped on the number:
5690
+ * later rate-card changes never move a number you already own.
5691
+ *
5684
5692
  * Requires usage-based billing (the Usage plan). The maximum number of phone numbers
5685
5693
  * is determined by the user's plan.
5686
5694
  *
@@ -925,7 +925,7 @@ export type AdTreeAdSet = {
925
925
  page_id?: string;
926
926
  } | null;
927
927
  /**
928
- * Individual ads within this ad set (capped at 100). Returns a subset of Ad fields from the aggregation: `_id`, `name`, `platform`, `status`, `configuredStatus`, `reviewStatus`, `budget`, `metrics`, `creative`, `goal` and the `platform*` ids are always included; `targeting` and `schedule` may be absent. `configuredStatus` (the ad's own on/off toggle) and `reviewStatus` (the platform's review verdict) are part of this contract, not incidental: a rejected ad is only distinguishable from a healthy one through `reviewStatus`. When `timeIncrement=1&dailyLevel=ad`, each entry also carries a `daily[]` array of `AdDailyMetrics`.
928
+ * Individual ads within this ad set (capped at 100). When the ad set has more than 100 ads these are the 100 highest-spending over the requested date range, so this array depends on `fromDate`/`toDate`; `adCount` is always the true ad set size. Returns a subset of Ad fields from the aggregation: `_id`, `name`, `platform`, `status`, `configuredStatus`, `reviewStatus`, `budget`, `metrics`, `creative`, `goal` and the `platform*` ids are always included; `targeting` and `schedule` may be absent. `configuredStatus` (the ad's own on/off toggle) and `reviewStatus` (the platform's review verdict) are part of this contract, not incidental: a rejected ad is only distinguishable from a healthy one through `reviewStatus`. When `timeIncrement=1&dailyLevel=ad`, each entry also carries a `daily[]` array of `AdDailyMetrics`.
929
929
  */
930
930
  ads?: Array<Ad>;
931
931
  /**
@@ -24247,7 +24247,7 @@ export type ListPhoneNumbersResponse = ({
24247
24247
  */
24248
24248
  telnyxOrderId?: (string) | null;
24249
24249
  /**
24250
- * Per-country monthly price in cents ($2..$25).
24250
+ * What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
24251
24251
  */
24252
24252
  monthlyCents?: number;
24253
24253
  /**
@@ -24486,6 +24486,9 @@ export type ListPhoneNumberCountriesResponse = ({
24486
24486
  */
24487
24487
  code?: string;
24488
24488
  tier?: 1 | 2 | 3 | 4;
24489
+ /**
24490
+ * Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
24491
+ */
24489
24492
  monthlyCents?: number;
24490
24493
  needsKyc?: boolean;
24491
24494
  /**
@@ -24516,6 +24519,9 @@ export type ListPhoneNumberCountriesResponse = ({
24516
24519
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
24517
24520
  tier?: 1 | 2 | 3 | 4;
24518
24521
  needsKyc?: boolean;
24522
+ /**
24523
+ * Price a NEW number of this type costs per month, in cents.
24524
+ */
24519
24525
  monthlyCents?: number;
24520
24526
  /**
24521
24527
  * Always false for toll_free (WhatsApp does not reliably register toll-free numbers).
@@ -24669,7 +24675,7 @@ export type GetWhatsAppPhoneNumbersResponse = ({
24669
24675
  */
24670
24676
  telnyxOrderId?: (string) | null;
24671
24677
  /**
24672
- * Per-country monthly price in cents ($2..$25).
24678
+ * What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
24673
24679
  */
24674
24680
  monthlyCents?: number;
24675
24681
  /**
@@ -24809,6 +24815,9 @@ export type ListWhatsAppNumberCountriesResponse = ({
24809
24815
  */
24810
24816
  code?: string;
24811
24817
  tier?: 1 | 2 | 3 | 4;
24818
+ /**
24819
+ * Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
24820
+ */
24812
24821
  monthlyCents?: number;
24813
24822
  needsKyc?: boolean;
24814
24823
  outboundCallingAvailable?: boolean;