@unboundcx/sdk 1.7.0 → 1.7.1

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": "1.7.0",
3
+ "version": "1.7.1",
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",
@@ -517,18 +517,18 @@ export class ObjectsService {
517
517
  async modifyColumn({
518
518
  objectName,
519
519
  columnName,
520
- type = null,
520
+ columnType = null,
521
521
  length = null,
522
522
  defaultValue = null,
523
523
  isEncrypted = null,
524
524
  isRequired = null,
525
525
  }) {
526
526
  this.sdk.validateParams(
527
- { objectName, columnName, type, length, defaultValue, isEncrypted, isRequired },
527
+ { objectName, columnName, columnType, length, defaultValue, isEncrypted, isRequired },
528
528
  {
529
529
  objectName: { type: 'string', required: true },
530
530
  columnName: { type: 'string', required: true },
531
- type: { type: 'string', required: false },
531
+ columnType: { type: 'string', required: false },
532
532
  length: { type: 'number', required: false },
533
533
  defaultValue: { type: 'string', required: false },
534
534
  isEncrypted: { type: 'boolean', required: false },
@@ -537,7 +537,7 @@ export class ObjectsService {
537
537
  );
538
538
 
539
539
  const body = {};
540
- if (type !== null) body.type = type;
540
+ if (columnType !== null) body.type = columnType;
541
541
  if (length !== null) body.length = length;
542
542
  if (defaultValue !== null) body.defaultValue = defaultValue;
543
543
  if (isEncrypted !== null) body.isEncrypted = isEncrypted;