@zernio/node 0.2.852 → 0.2.853

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
@@ -28674,6 +28674,10 @@ type ListPhoneNumberCountriesError = ({
28674
28674
  });
28675
28675
  type SearchAvailablePhoneNumbersData = {
28676
28676
  query?: {
28677
+ /**
28678
+ * Area code or national dialing code the number must start with, e.g. 415 or 91
28679
+ */
28680
+ areaCode?: string;
28677
28681
  /**
28678
28682
  * Pattern to match within the number
28679
28683
  */
@@ -28685,7 +28689,12 @@ type SearchAvailablePhoneNumbersData = {
28685
28689
  */
28686
28690
  locality?: string;
28687
28691
  /**
28688
- * Area code
28692
+ * Number type; defaults to the country's WhatsApp-safe type (the same name as on purchase, availability and kyc)
28693
+ */
28694
+ numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
28695
+ /**
28696
+ * Alias of areaCode, kept for existing callers
28697
+ * @deprecated
28689
28698
  */
28690
28699
  prefix?: string;
28691
28700
  /**
@@ -28693,7 +28702,8 @@ type SearchAvailablePhoneNumbersData = {
28693
28702
  */
28694
28703
  sms?: boolean;
28695
28704
  /**
28696
- * Number type; defaults to the country's WhatsApp-safe type
28705
+ * Alias of numberType, kept for existing callers
28706
+ * @deprecated
28697
28707
  */
28698
28708
  type?: string;
28699
28709
  };
@@ -29001,6 +29011,10 @@ type ListWhatsAppNumberCountriesError = ({
29001
29011
  });
29002
29012
  type SearchAvailableWhatsAppNumbersData = {
29003
29013
  query?: {
29014
+ /**
29015
+ * Area code or national dialing code the number must start with, e.g. 415 or 91
29016
+ */
29017
+ areaCode?: string;
29004
29018
  /**
29005
29019
  * Pattern to match within the number
29006
29020
  */
@@ -29012,11 +29026,17 @@ type SearchAvailableWhatsAppNumbersData = {
29012
29026
  */
29013
29027
  locality?: string;
29014
29028
  /**
29015
- * Area code
29029
+ * Number type; defaults to the country's WhatsApp-safe type (the same name as on purchase, availability and kyc)
29030
+ */
29031
+ numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
29032
+ /**
29033
+ * Alias of areaCode, kept for existing callers
29034
+ * @deprecated
29016
29035
  */
29017
29036
  prefix?: string;
29018
29037
  /**
29019
- * Number type; defaults to the country's WhatsApp-safe type
29038
+ * Alias of numberType, kept for existing callers
29039
+ * @deprecated
29020
29040
  */
29021
29041
  type?: string;
29022
29042
  };
package/dist/index.d.ts CHANGED
@@ -28674,6 +28674,10 @@ type ListPhoneNumberCountriesError = ({
28674
28674
  });
28675
28675
  type SearchAvailablePhoneNumbersData = {
28676
28676
  query?: {
28677
+ /**
28678
+ * Area code or national dialing code the number must start with, e.g. 415 or 91
28679
+ */
28680
+ areaCode?: string;
28677
28681
  /**
28678
28682
  * Pattern to match within the number
28679
28683
  */
@@ -28685,7 +28689,12 @@ type SearchAvailablePhoneNumbersData = {
28685
28689
  */
28686
28690
  locality?: string;
28687
28691
  /**
28688
- * Area code
28692
+ * Number type; defaults to the country's WhatsApp-safe type (the same name as on purchase, availability and kyc)
28693
+ */
28694
+ numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
28695
+ /**
28696
+ * Alias of areaCode, kept for existing callers
28697
+ * @deprecated
28689
28698
  */
28690
28699
  prefix?: string;
28691
28700
  /**
@@ -28693,7 +28702,8 @@ type SearchAvailablePhoneNumbersData = {
28693
28702
  */
28694
28703
  sms?: boolean;
28695
28704
  /**
28696
- * Number type; defaults to the country's WhatsApp-safe type
28705
+ * Alias of numberType, kept for existing callers
28706
+ * @deprecated
28697
28707
  */
28698
28708
  type?: string;
28699
28709
  };
@@ -29001,6 +29011,10 @@ type ListWhatsAppNumberCountriesError = ({
29001
29011
  });
29002
29012
  type SearchAvailableWhatsAppNumbersData = {
29003
29013
  query?: {
29014
+ /**
29015
+ * Area code or national dialing code the number must start with, e.g. 415 or 91
29016
+ */
29017
+ areaCode?: string;
29004
29018
  /**
29005
29019
  * Pattern to match within the number
29006
29020
  */
@@ -29012,11 +29026,17 @@ type SearchAvailableWhatsAppNumbersData = {
29012
29026
  */
29013
29027
  locality?: string;
29014
29028
  /**
29015
- * Area code
29029
+ * Number type; defaults to the country's WhatsApp-safe type (the same name as on purchase, availability and kyc)
29030
+ */
29031
+ numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
29032
+ /**
29033
+ * Alias of areaCode, kept for existing callers
29034
+ * @deprecated
29016
29035
  */
29017
29036
  prefix?: string;
29018
29037
  /**
29019
- * Number type; defaults to the country's WhatsApp-safe type
29038
+ * Alias of numberType, kept for existing callers
29039
+ * @deprecated
29020
29040
  */
29021
29041
  type?: string;
29022
29042
  };
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.852",
39
+ version: "0.2.853",
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.852",
8
+ version: "0.2.853",
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.852",
3
+ "version": "0.2.853",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28562,6 +28562,10 @@ export type ListPhoneNumberCountriesError = ({
28562
28562
 
28563
28563
  export type SearchAvailablePhoneNumbersData = {
28564
28564
  query?: {
28565
+ /**
28566
+ * Area code or national dialing code the number must start with, e.g. 415 or 91
28567
+ */
28568
+ areaCode?: string;
28565
28569
  /**
28566
28570
  * Pattern to match within the number
28567
28571
  */
@@ -28573,7 +28577,12 @@ export type SearchAvailablePhoneNumbersData = {
28573
28577
  */
28574
28578
  locality?: string;
28575
28579
  /**
28576
- * Area code
28580
+ * Number type; defaults to the country's WhatsApp-safe type (the same name as on purchase, availability and kyc)
28581
+ */
28582
+ numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
28583
+ /**
28584
+ * Alias of areaCode, kept for existing callers
28585
+ * @deprecated
28577
28586
  */
28578
28587
  prefix?: string;
28579
28588
  /**
@@ -28581,7 +28590,8 @@ export type SearchAvailablePhoneNumbersData = {
28581
28590
  */
28582
28591
  sms?: boolean;
28583
28592
  /**
28584
- * Number type; defaults to the country's WhatsApp-safe type
28593
+ * Alias of numberType, kept for existing callers
28594
+ * @deprecated
28585
28595
  */
28586
28596
  type?: string;
28587
28597
  };
@@ -28903,6 +28913,10 @@ export type ListWhatsAppNumberCountriesError = ({
28903
28913
 
28904
28914
  export type SearchAvailableWhatsAppNumbersData = {
28905
28915
  query?: {
28916
+ /**
28917
+ * Area code or national dialing code the number must start with, e.g. 415 or 91
28918
+ */
28919
+ areaCode?: string;
28906
28920
  /**
28907
28921
  * Pattern to match within the number
28908
28922
  */
@@ -28914,11 +28928,17 @@ export type SearchAvailableWhatsAppNumbersData = {
28914
28928
  */
28915
28929
  locality?: string;
28916
28930
  /**
28917
- * Area code
28931
+ * Number type; defaults to the country's WhatsApp-safe type (the same name as on purchase, availability and kyc)
28932
+ */
28933
+ numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
28934
+ /**
28935
+ * Alias of areaCode, kept for existing callers
28936
+ * @deprecated
28918
28937
  */
28919
28938
  prefix?: string;
28920
28939
  /**
28921
- * Number type; defaults to the country's WhatsApp-safe type
28940
+ * Alias of numberType, kept for existing callers
28941
+ * @deprecated
28922
28942
  */
28923
28943
  type?: string;
28924
28944
  };