@verdocs/js-sdk 6.7.0 → 6.7.3

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/dist/index.mjs CHANGED
@@ -16,6 +16,12 @@ const WEBHOOK_EVENTS = [
16
16
  'recipient_delegated',
17
17
  'kba_event',
18
18
  'entitlement_used',
19
+ 'recipient_invited',
20
+ 'recipient_reminded',
21
+ 'recipient_auth_fail',
22
+ 'recipient_disclosure_accepted',
23
+ 'recipient_docs_downloaded',
24
+ 'recipient_invite_failed',
19
25
  ];
20
26
 
21
27
  const FIELD_TYPES = [
@@ -1575,6 +1581,7 @@ class VerdocsEndpoint {
1575
1581
  * @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
1576
1582
  * @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting in ms.
1577
1583
  * @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting in ms.
1584
+ * @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
1578
1585
  * @apiBody string expires_at? If set, the envelope will automatically expire (be canceled) at this date and time. Expirations must be at least 1 day in the future.
1579
1586
  * @apiSuccess IEnvelope . The newly-created envelope.
1580
1587
  */
@@ -1674,6 +1681,7 @@ const getEnvelopeFile = async (endpoint, documentId) => endpoint.api //
1674
1681
  * @apiBody string sender_email? New Sender Email for the envelope
1675
1682
  * @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
1676
1683
  * @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
1684
+ * @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
1677
1685
  * @apiBody string expires_at? If set, the envelope will automatically expire (be canceled) at this date and time. Expirations must be at least 1 day in the future.
1678
1686
  * @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
1679
1687
  * @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
@@ -2350,6 +2358,7 @@ const ALLOWED_CREATE_FIELDS = [
2350
2358
  * @apiBody TTemplateSender sender? Who may send envelopes using this template
2351
2359
  * @apiBody number initial_reminder? Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
2352
2360
  * @apiBody number followup_reminders? Delay (in seconds) before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
2361
+ * @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
2353
2362
  * @apiBody array(items:object) documents? Optional list of documents to attach to the template
2354
2363
  * @apiBody array(items:IRole) roles? Optional list of roles to create. Note that if roles are not included in the request, fields will be ignored.
2355
2364
  * @apiBody array(fields:ITemplateField) fields? Optional list of fields to create. Note that if fields that do not match a role will be ignored.
@@ -2441,6 +2450,7 @@ const createTemplateFromSharepoint = (endpoint, params) => {
2441
2450
  * @apiBody TTemplateSender sender? Who may send envelopes using this template
2442
2451
  * @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
2443
2452
  * @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
2453
+ * @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
2444
2454
  * @apiSuccess ITemplate . The updated template
2445
2455
  */
2446
2456
  const updateTemplate = (endpoint, templateId, params) => endpoint.api //