@unboundcx/sdk 1.7.0 → 1.7.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/base.js +1 -1
- package/package.json +1 -1
- package/services/objects.js +4 -4
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.
|
|
3
|
+
"version": "1.7.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",
|
package/services/objects.js
CHANGED
|
@@ -517,18 +517,18 @@ export class ObjectsService {
|
|
|
517
517
|
async modifyColumn({
|
|
518
518
|
objectName,
|
|
519
519
|
columnName,
|
|
520
|
-
|
|
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,
|
|
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
|
-
|
|
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 (
|
|
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;
|