@unboundcx/sdk 2.1.1 → 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.1",
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);