@verdocs/js-sdk 6.7.1 → 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.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -523,6 +523,8 @@ interface IEnvelope {
|
|
|
523
523
|
initial_reminder: number | null;
|
|
524
524
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
525
525
|
followup_reminders: number | null;
|
|
526
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
527
|
+
max_reminder_days: number;
|
|
526
528
|
/** When the next reminder is scheduled to be sent. */
|
|
527
529
|
next_reminder: string | null;
|
|
528
530
|
/** Date/time when the envelope was created. */
|
|
@@ -872,6 +874,8 @@ interface ITemplate {
|
|
|
872
874
|
initial_reminder: number | null;
|
|
873
875
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
874
876
|
followup_reminders: number | null;
|
|
877
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
878
|
+
max_reminder_days: number;
|
|
875
879
|
/**
|
|
876
880
|
* If true, the template is only visible to the creator. If false, the template will also be visible to the user's
|
|
877
881
|
* organization, if any.
|
|
@@ -1602,6 +1606,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1602
1606
|
initial_reminder?: number;
|
|
1603
1607
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
1604
1608
|
followup_reminders?: number;
|
|
1609
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
1610
|
+
max_reminder_days?: number;
|
|
1605
1611
|
/** List of recipients to configure. */
|
|
1606
1612
|
recipients: ICreateEnvelopeRecipientFromTemplate[];
|
|
1607
1613
|
/** Optional metadata to attach to the envelope. This is not used by Verdocs, but may be used for internal tracking purposes by the caller. This is not shown to recipients, but is not private and should not be used to store sensitive data. */
|
|
@@ -1630,6 +1636,8 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1630
1636
|
initial_reminder: number;
|
|
1631
1637
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
1632
1638
|
followup_reminders: number;
|
|
1639
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
1640
|
+
max_reminder_days?: number;
|
|
1633
1641
|
/** Optional metadata to attach to the envelope. This is not used by Verdocs, but may be used for internal tracking purposes by the caller. This is not shown to recipients, but is not private and should not be used to store sensitive data. */
|
|
1634
1642
|
data?: any;
|
|
1635
1643
|
/** List of recipients to configure. */
|
|
@@ -1724,6 +1732,7 @@ declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic
|
|
|
1724
1732
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1725
1733
|
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting in ms.
|
|
1726
1734
|
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting in ms.
|
|
1735
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
1727
1736
|
* @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.
|
|
1728
1737
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1729
1738
|
*/
|
|
@@ -1800,6 +1809,7 @@ declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, documentId: string) =
|
|
|
1800
1809
|
* @apiBody string sender_email? New Sender Email for the envelope
|
|
1801
1810
|
* @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
|
|
1802
1811
|
* @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
|
|
1812
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
1803
1813
|
* @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.
|
|
1804
1814
|
* @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
|
|
1805
1815
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
@@ -3664,6 +3674,8 @@ interface ITemplateCreateParams {
|
|
|
3664
3674
|
initial_reminder?: number;
|
|
3665
3675
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
3666
3676
|
followup_reminders?: number;
|
|
3677
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
3678
|
+
max_reminder_days?: number;
|
|
3667
3679
|
/** Optional description for the template to help identify it. */
|
|
3668
3680
|
description?: string;
|
|
3669
3681
|
/**
|
|
@@ -3701,6 +3713,7 @@ interface ITemplateCreateParams {
|
|
|
3701
3713
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3702
3714
|
* @apiBody number initial_reminder? Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3703
3715
|
* @apiBody number followup_reminders? Delay (in seconds) before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3716
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
3704
3717
|
* @apiBody array(items:object) documents? Optional list of documents to attach to the template
|
|
3705
3718
|
* @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.
|
|
3706
3719
|
* @apiBody array(fields:ITemplateField) fields? Optional list of fields to create. Note that if fields that do not match a role will be ignored.
|
|
@@ -3775,6 +3788,7 @@ declare const createTemplateFromSharepoint: (endpoint: VerdocsEndpoint, params:
|
|
|
3775
3788
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3776
3789
|
* @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3777
3790
|
* @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3791
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
3778
3792
|
* @apiSuccess ITemplate . The updated template
|
|
3779
3793
|
*/
|
|
3780
3794
|
declare const updateTemplate: (endpoint: VerdocsEndpoint, templateId: string, params: Partial<ITemplateCreateParams>) => Promise<ITemplate>;
|
package/dist/index.d.ts
CHANGED
|
@@ -523,6 +523,8 @@ interface IEnvelope {
|
|
|
523
523
|
initial_reminder: number | null;
|
|
524
524
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
525
525
|
followup_reminders: number | null;
|
|
526
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
527
|
+
max_reminder_days: number;
|
|
526
528
|
/** When the next reminder is scheduled to be sent. */
|
|
527
529
|
next_reminder: string | null;
|
|
528
530
|
/** Date/time when the envelope was created. */
|
|
@@ -872,6 +874,8 @@ interface ITemplate {
|
|
|
872
874
|
initial_reminder: number | null;
|
|
873
875
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
874
876
|
followup_reminders: number | null;
|
|
877
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
878
|
+
max_reminder_days: number;
|
|
875
879
|
/**
|
|
876
880
|
* If true, the template is only visible to the creator. If false, the template will also be visible to the user's
|
|
877
881
|
* organization, if any.
|
|
@@ -1602,6 +1606,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1602
1606
|
initial_reminder?: number;
|
|
1603
1607
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
1604
1608
|
followup_reminders?: number;
|
|
1609
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
1610
|
+
max_reminder_days?: number;
|
|
1605
1611
|
/** List of recipients to configure. */
|
|
1606
1612
|
recipients: ICreateEnvelopeRecipientFromTemplate[];
|
|
1607
1613
|
/** Optional metadata to attach to the envelope. This is not used by Verdocs, but may be used for internal tracking purposes by the caller. This is not shown to recipients, but is not private and should not be used to store sensitive data. */
|
|
@@ -1630,6 +1636,8 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1630
1636
|
initial_reminder: number;
|
|
1631
1637
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
1632
1638
|
followup_reminders: number;
|
|
1639
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
1640
|
+
max_reminder_days?: number;
|
|
1633
1641
|
/** Optional metadata to attach to the envelope. This is not used by Verdocs, but may be used for internal tracking purposes by the caller. This is not shown to recipients, but is not private and should not be used to store sensitive data. */
|
|
1634
1642
|
data?: any;
|
|
1635
1643
|
/** List of recipients to configure. */
|
|
@@ -1724,6 +1732,7 @@ declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic
|
|
|
1724
1732
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1725
1733
|
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting in ms.
|
|
1726
1734
|
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting in ms.
|
|
1735
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
1727
1736
|
* @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.
|
|
1728
1737
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1729
1738
|
*/
|
|
@@ -1800,6 +1809,7 @@ declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, documentId: string) =
|
|
|
1800
1809
|
* @apiBody string sender_email? New Sender Email for the envelope
|
|
1801
1810
|
* @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
|
|
1802
1811
|
* @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
|
|
1812
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
1803
1813
|
* @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.
|
|
1804
1814
|
* @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
|
|
1805
1815
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
@@ -3664,6 +3674,8 @@ interface ITemplateCreateParams {
|
|
|
3664
3674
|
initial_reminder?: number;
|
|
3665
3675
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
3666
3676
|
followup_reminders?: number;
|
|
3677
|
+
/** Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14. */
|
|
3678
|
+
max_reminder_days?: number;
|
|
3667
3679
|
/** Optional description for the template to help identify it. */
|
|
3668
3680
|
description?: string;
|
|
3669
3681
|
/**
|
|
@@ -3701,6 +3713,7 @@ interface ITemplateCreateParams {
|
|
|
3701
3713
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3702
3714
|
* @apiBody number initial_reminder? Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3703
3715
|
* @apiBody number followup_reminders? Delay (in seconds) before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3716
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
3704
3717
|
* @apiBody array(items:object) documents? Optional list of documents to attach to the template
|
|
3705
3718
|
* @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.
|
|
3706
3719
|
* @apiBody array(fields:ITemplateField) fields? Optional list of fields to create. Note that if fields that do not match a role will be ignored.
|
|
@@ -3775,6 +3788,7 @@ declare const createTemplateFromSharepoint: (endpoint: VerdocsEndpoint, params:
|
|
|
3775
3788
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3776
3789
|
* @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3777
3790
|
* @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3791
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
3778
3792
|
* @apiSuccess ITemplate . The updated template
|
|
3779
3793
|
*/
|
|
3780
3794
|
declare const updateTemplate: (endpoint: VerdocsEndpoint, templateId: string, params: Partial<ITemplateCreateParams>) => Promise<ITemplate>;
|
package/dist/index.js
CHANGED
|
@@ -1583,6 +1583,7 @@ class VerdocsEndpoint {
|
|
|
1583
1583
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1584
1584
|
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting in ms.
|
|
1585
1585
|
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting in ms.
|
|
1586
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
1586
1587
|
* @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.
|
|
1587
1588
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1588
1589
|
*/
|
|
@@ -1682,6 +1683,7 @@ const getEnvelopeFile = async (endpoint, documentId) => endpoint.api //
|
|
|
1682
1683
|
* @apiBody string sender_email? New Sender Email for the envelope
|
|
1683
1684
|
* @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
|
|
1684
1685
|
* @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
|
|
1686
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
1685
1687
|
* @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.
|
|
1686
1688
|
* @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
|
|
1687
1689
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
@@ -2358,6 +2360,7 @@ const ALLOWED_CREATE_FIELDS = [
|
|
|
2358
2360
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
2359
2361
|
* @apiBody number initial_reminder? Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
2360
2362
|
* @apiBody number followup_reminders? Delay (in seconds) before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
2363
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
2361
2364
|
* @apiBody array(items:object) documents? Optional list of documents to attach to the template
|
|
2362
2365
|
* @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.
|
|
2363
2366
|
* @apiBody array(fields:ITemplateField) fields? Optional list of fields to create. Note that if fields that do not match a role will be ignored.
|
|
@@ -2449,6 +2452,7 @@ const createTemplateFromSharepoint = (endpoint, params) => {
|
|
|
2449
2452
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
2450
2453
|
* @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
2451
2454
|
* @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
2455
|
+
* @apiBody number max_reminder_days? Maximum number of days (after envelope creation) for which reminders will be sent. Defaults to 14.
|
|
2452
2456
|
* @apiSuccess ITemplate . The updated template
|
|
2453
2457
|
*/
|
|
2454
2458
|
const updateTemplate = (endpoint, templateId, params) => endpoint.api //
|