@unboundcx/sdk 4.13.22 → 4.13.23

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.22",
3
+ "version": "4.13.23",
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/esign.js CHANGED
@@ -188,6 +188,7 @@ export class EsignService {
188
188
  * @param {string} [body.expiresAt]
189
189
  * @param {boolean} [body.allowDrawn]
190
190
  * @param {string} [body.postSignRedirectUrl]
191
+ * @param {string[]} [body.feedNotifyEvents] - Subset of `sent`|`opened`|`signed`; auto-posts a chat card to every linked record's feed on each selected event.
191
192
  * @returns {Promise<Object>}
192
193
  */
193
194
  async createPackage({
@@ -199,6 +200,7 @@ export class EsignService {
199
200
  expiresAt,
200
201
  allowDrawn,
201
202
  postSignRedirectUrl,
203
+ feedNotifyEvents,
202
204
  } = {}) {
203
205
  this.sdk.validateParams(
204
206
  { generatedDocumentId, name, recipients },
@@ -211,6 +213,7 @@ export class EsignService {
211
213
  expiresAt: { type: 'string', required: false },
212
214
  allowDrawn: { type: 'boolean', required: false },
213
215
  postSignRedirectUrl: { type: 'string', required: false },
216
+ feedNotifyEvents: { type: 'array', required: false },
214
217
  },
215
218
  );
216
219
 
@@ -222,6 +225,9 @@ export class EsignService {
222
225
  if (postSignRedirectUrl !== undefined) {
223
226
  body.postSignRedirectUrl = postSignRedirectUrl;
224
227
  }
228
+ if (feedNotifyEvents !== undefined) {
229
+ body.feedNotifyEvents = feedNotifyEvents;
230
+ }
225
231
 
226
232
  return internalRequest(this.sdk, '/esign/packages', 'POST', { body });
227
233
  }
@@ -266,6 +272,7 @@ export class EsignService {
266
272
  * @param {string} [body.expiresAt]
267
273
  * @param {boolean} [body.allowDrawn]
268
274
  * @param {string} [body.postSignRedirectUrl]
275
+ * @param {string[]} [body.feedNotifyEvents] - Subset of `sent`|`opened`|`signed`; auto-posts a chat card to every linked record's feed on each selected event.
269
276
  * @returns {Promise<Object>}
270
277
  */
271
278
  async updatePackage(
@@ -278,6 +285,7 @@ export class EsignService {
278
285
  expiresAt,
279
286
  allowDrawn,
280
287
  postSignRedirectUrl,
288
+ feedNotifyEvents,
281
289
  } = {},
282
290
  ) {
283
291
  this.sdk.validateParams(
@@ -291,6 +299,7 @@ export class EsignService {
291
299
  expiresAt: { type: 'string', required: false },
292
300
  allowDrawn: { type: 'boolean', required: false },
293
301
  postSignRedirectUrl: { type: 'string', required: false },
302
+ feedNotifyEvents: { type: 'array', required: false },
294
303
  },
295
304
  );
296
305
 
@@ -304,6 +313,9 @@ export class EsignService {
304
313
  if (postSignRedirectUrl !== undefined) {
305
314
  body.postSignRedirectUrl = postSignRedirectUrl;
306
315
  }
316
+ if (feedNotifyEvents !== undefined) {
317
+ body.feedNotifyEvents = feedNotifyEvents;
318
+ }
307
319
 
308
320
  return internalRequest(this.sdk, `/esign/packages/${id}`, 'PATCH', {
309
321
  body,
@@ -86,26 +86,6 @@ export class PortalsService {
86
86
  * @param {string} [updates.name] - New display name for the portal.
87
87
  * @param {string} [updates.domain] - New custom domain for the portal.
88
88
  * @param {object} [updates.settings] - Updated portal configuration settings.
89
- * @param {object} [updates.settings.profile] - P11.2: visitor-editable
90
- * profile fields. `{ people: { enabled, fields: [{ name, editable }] },
91
- * company: { enabled, fields: [{ name, editable }], editorMode,
92
- * editorFilter } }`. `fields` (max 40 each) is the allowlist of
93
- * people/company columns exposed on the portal's `GET /portal-profile` —
94
- * never system columns (id/*At/*By/isDeleted/recordTypeId), foreign
95
- * keys, or encrypted fields (the API 400s on save otherwise).
96
- * `company.editorMode` is `'none'|'all'|'rules'` — whether a signed-in
97
- * visitor may edit their OWN company record: nobody / everyone signed
98
- * in / only people matching `editorFilter` (same `{'<field>::<op>':
99
- * value}` AND-map as `settings.peopleFilter`, ≥1 rule required for
100
- * `'rules'`). A per-person override (people custom field
101
- * `portalCompanyEdit__c`, `'allow'|'deny'`, set via `sdk.objects.update`)
102
- * wins over `editorMode`/`editorFilter` when present.
103
- * @param {string} [updates.settings.companyTicketsMode] - `'none'|'all'|'rules'`
104
- * — successor to the legacy `settings.companyTickets` boolean
105
- * (`true`→`'all'`, `false`→`'none'`); same 3-way shape as
106
- * `settings.profile.company.editorMode` above, paired with
107
- * `settings.companyTicketsFilter`. Prefer this over the boolean going
108
- * forward — both may be sent, `companyTicketsMode` wins.
109
89
  * @param {boolean} [updates.isPublic] - Updated public accessibility flag.
110
90
  * @param {string} [updates.customCss] - Updated custom CSS for the portal.
111
91
  * @param {string} [updates.customJs] - Updated custom JavaScript for the portal.