@unboundcx/sdk 4.13.123 → 4.13.125

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": "4.13.123",
3
+ "version": "4.13.125",
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",
@@ -177,15 +177,24 @@ export class LayoutsService {
177
177
  return result;
178
178
  }
179
179
 
180
- async clone(id, { name } = {}) {
180
+ async listSystem() {
181
+ const result = await internalRequest(this.sdk, '/layouts/system', 'GET', {});
182
+ return result;
183
+ }
184
+
185
+ // recordTypeId is only sent when provided -- cloning a GLOBAL system layout
186
+ // into a tenant row targets a specific record type.
187
+ async clone(id, { name, recordTypeId } = {}) {
181
188
  this.sdk.validateParams(
182
189
  { id },
183
190
  { id: { type: 'string', required: true } },
184
191
  );
185
192
 
186
- const params = {
187
- body: { name },
188
- };
193
+ const body = { name };
194
+ if (recordTypeId !== undefined && recordTypeId !== null) {
195
+ body.recordTypeId = recordTypeId;
196
+ }
197
+ const params = { body };
189
198
 
190
199
  const result = await internalRequest(this.sdk, `/layouts/${id}/clone`, 'POST', params);
191
200
  return result;
@@ -1038,6 +1038,8 @@ export class ObjectsService {
1038
1038
  description = null,
1039
1039
  feedPostChanges = null,
1040
1040
  feedPostWindowSeconds = null,
1041
+ showInNav = null,
1042
+ navLabel = null,
1041
1043
  }) {
1042
1044
  this.sdk.validateParams(
1043
1045
  {
@@ -1047,6 +1049,8 @@ export class ObjectsService {
1047
1049
  description,
1048
1050
  feedPostChanges,
1049
1051
  feedPostWindowSeconds,
1052
+ showInNav,
1053
+ navLabel,
1050
1054
  },
1051
1055
  {
1052
1056
  objectName: { type: 'string', required: true },
@@ -1055,6 +1059,8 @@ export class ObjectsService {
1055
1059
  description: { type: 'string', required: false },
1056
1060
  feedPostChanges: { type: 'boolean', required: false },
1057
1061
  feedPostWindowSeconds: { type: 'number', required: false },
1062
+ showInNav: { type: 'boolean', required: false },
1063
+ navLabel: { type: 'string', required: false },
1058
1064
  },
1059
1065
  );
1060
1066
 
@@ -1065,6 +1071,8 @@ export class ObjectsService {
1065
1071
  if (feedPostChanges !== null) body.feedPostChanges = feedPostChanges;
1066
1072
  if (feedPostWindowSeconds !== null)
1067
1073
  body.feedPostWindowSeconds = feedPostWindowSeconds;
1074
+ if (showInNav !== null) body.showInNav = showInNav;
1075
+ if (navLabel !== null) body.navLabel = navLabel;
1068
1076
 
1069
1077
  const params = { body };
1070
1078