@unboundcx/sdk 2.1.0 → 2.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -85,4 +85,4 @@
85
85
  "registry": "https://registry.npmjs.org/",
86
86
  "access": "public"
87
87
  }
88
- }
88
+ }
@@ -19,16 +19,17 @@ export class LookupService {
19
19
  return result;
20
20
  }
21
21
 
22
- async lrn(phoneNumber) {
22
+ async lrn(phoneNumber, cnam = false) {
23
23
  this.sdk.validateParams(
24
- { phoneNumber },
24
+ { phoneNumber, cnam },
25
25
  {
26
26
  phoneNumber: { type: 'string', required: true },
27
+ cnam: { type: 'boolean', required: false },
27
28
  },
28
29
  );
29
30
 
30
31
  const params = {
31
- query: { phoneNumber },
32
+ query: { phoneNumber, cnam },
32
33
  };
33
34
 
34
35
  const result = await this.sdk._fetch('/lookup/lrn', 'GET', params);
@@ -191,6 +191,11 @@ export class PhoneNumbersService {
191
191
  const result = await this.sdk._fetch('/phoneNumbers/routing-options', 'GET');
192
192
  return result;
193
193
  }
194
+
195
+ async getSupportedCountries() {
196
+ const result = await this.sdk._fetch('/phoneNumbers/supported-countries', 'GET');
197
+ return result;
198
+ }
194
199
  }
195
200
 
196
201
  export class PhoneNumberCarrierService {