@unboundcx/sdk 1.7.1 → 1.8.0

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/base.js CHANGED
@@ -130,7 +130,7 @@ export class BaseSDK {
130
130
  throw new Error(`Missing required parameter ${key}`);
131
131
  }
132
132
 
133
- if (params[key] !== undefined) {
133
+ if (params[key] !== undefined && params[key] !== null) {
134
134
  const expectedType = schema[key].type;
135
135
  const actualValue = params[key];
136
136
  let isValidType = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
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",
@@ -334,16 +334,20 @@ export class ObjectsService {
334
334
  columnName,
335
335
  value,
336
336
  type = 'string',
337
+ columnType = 'varchar',
338
+ length = '255',
337
339
  isActive = true,
338
340
  isSystem = 0,
339
341
  }) {
340
342
  this.sdk.validateParams(
341
- { objectName, columnName, value, type, isActive, isSystem },
343
+ { objectName, columnName, value, type, columnType, length, isActive, isSystem },
342
344
  {
343
345
  objectName: { type: 'string', required: true },
344
346
  columnName: { type: 'string', required: true },
345
347
  value: { type: 'string', required: true },
346
348
  type: { type: 'string', required: false },
349
+ columnType: { type: 'string', required: false },
350
+ length: { type: 'string', required: false },
347
351
  isActive: { type: 'boolean', required: false },
348
352
  isSystem: { type: 'number', required: false },
349
353
  },
@@ -354,6 +358,8 @@ export class ObjectsService {
354
358
  columnName,
355
359
  value,
356
360
  type,
361
+ columnType,
362
+ length,
357
363
  isActive,
358
364
  isSystem,
359
365
  };