@unboundcx/sdk 2.2.3 → 2.2.5

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.2.3",
3
+ "version": "2.2.5",
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",
@@ -207,7 +207,7 @@ export class PhoneNumbersService {
207
207
  );
208
208
 
209
209
  const result = await this.sdk._fetch('/phoneNumbers/porting/portability-check', 'POST', {
210
- phoneNumbers
210
+ body: { phoneNumbers }
211
211
  });
212
212
  return result;
213
213
  }
@@ -236,7 +236,9 @@ export class PhoneNumbersService {
236
236
  if (activationSettings) body.activationSettings = activationSettings;
237
237
  if (webhookUrl) body.webhookUrl = webhookUrl;
238
238
 
239
- const result = await this.sdk._fetch('/phoneNumbers/porting/orders', 'POST', body);
239
+ const result = await this.sdk._fetch('/phoneNumbers/porting/orders', 'POST', {
240
+ body: body
241
+ });
240
242
  return result;
241
243
  }
242
244
 
@@ -291,7 +293,9 @@ export class PhoneNumbersService {
291
293
  },
292
294
  );
293
295
 
294
- const result = await this.sdk._fetch(`/phoneNumbers/porting/orders/${id}`, 'PATCH', updateData);
296
+ const result = await this.sdk._fetch(`/phoneNumbers/porting/orders/${id}`, 'PUT', {
297
+ body: updateData
298
+ });
295
299
  return result;
296
300
  }
297
301
 
@@ -319,7 +323,9 @@ export class PhoneNumbersService {
319
323
 
320
324
  if (portingOrderId) body.portingOrderId = portingOrderId;
321
325
 
322
- const result = await this.sdk._fetch('/phoneNumbers/porting/documents', 'POST', body);
326
+ const result = await this.sdk._fetch('/phoneNumbers/porting/documents', 'POST', {
327
+ body: body
328
+ });
323
329
  return result;
324
330
  }
325
331