@verdocs/js-sdk 6.2.3 → 6.2.6
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 +41 -9
- package/dist/index.d.ts +41 -9
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -7
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -508,6 +508,10 @@ interface IEnvelope {
|
|
|
508
508
|
organization_id: string;
|
|
509
509
|
/** Name of the envelope. By defaut, inherited from the envelope's template, but may be overridden when the envelope is created. */
|
|
510
510
|
name: string;
|
|
511
|
+
/** Override the sender "name" in places like the Certificate. */
|
|
512
|
+
sender_name: string;
|
|
513
|
+
/** Override the sender "email address" in places like the Certificate. */
|
|
514
|
+
sender_email: string;
|
|
511
515
|
/** If set to true, no email or SMS messages will be sent to any of the envelope's recipients. */
|
|
512
516
|
no_contact?: boolean;
|
|
513
517
|
/** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
|
|
@@ -526,7 +530,6 @@ interface IEnvelope {
|
|
|
526
530
|
expires_at?: string;
|
|
527
531
|
/** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
|
|
528
532
|
visibility: "private" | "shared";
|
|
529
|
-
search_key?: string | null;
|
|
530
533
|
/**
|
|
531
534
|
* Storage for arbitrary data that may be used e.g. to track source database/record IDs to relate Envelopes back to
|
|
532
535
|
* internal systems/applications.
|
|
@@ -542,21 +545,38 @@ interface IEnvelope {
|
|
|
542
545
|
/** Documents attached to this envelope */
|
|
543
546
|
documents?: IEnvelopeDocument[] | null;
|
|
544
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* An EnvelopeDocument is an individual document inside an Envelope package.
|
|
550
|
+
*/
|
|
545
551
|
interface IEnvelopeDocument {
|
|
552
|
+
/** Unique identifier for the document (UUID) */
|
|
546
553
|
id: string;
|
|
554
|
+
/** Unique identifier for the envelope (UUID) */
|
|
547
555
|
envelope_id: string;
|
|
556
|
+
/** Unique identifier for the template (UUID). May be null for envelopes created without templates */
|
|
548
557
|
template_document_id: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* The order in which the document appears in the envelope.
|
|
560
|
+
*/
|
|
549
561
|
order: number;
|
|
562
|
+
/** Whether the document is a signer-supplied attachment or a Verdocs-generated certificate */
|
|
550
563
|
type: "attachment" | "certificate";
|
|
564
|
+
/** The name of the document */
|
|
551
565
|
name: string;
|
|
566
|
+
/** Page count */
|
|
552
567
|
pages: number;
|
|
568
|
+
/** MIME type */
|
|
553
569
|
mime: string;
|
|
570
|
+
/** File size (bytes) */
|
|
554
571
|
size: number;
|
|
572
|
+
/** Collection of width/height dimensions for each page */
|
|
555
573
|
page_sizes: {
|
|
556
574
|
width: number;
|
|
557
575
|
height: number;
|
|
558
576
|
}[];
|
|
577
|
+
/** Date/time when the document was created. */
|
|
559
578
|
created_at: string;
|
|
579
|
+
/** Date/time when the document was created. */
|
|
560
580
|
updated_at: string;
|
|
561
581
|
}
|
|
562
582
|
interface IDropdownOption {
|
|
@@ -1516,6 +1536,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1516
1536
|
description?: string;
|
|
1517
1537
|
/** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
|
|
1518
1538
|
sender_name?: string;
|
|
1539
|
+
/** Override the sender email of the envelope in email and other notifications. NOTE: This will change areas that reflect the sender's email in the Web UI and certificate. It cannot change the email address used for notifications. */
|
|
1540
|
+
sender_email?: string;
|
|
1519
1541
|
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1520
1542
|
no_contact?: boolean;
|
|
1521
1543
|
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
@@ -1542,6 +1564,8 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1542
1564
|
description?: string;
|
|
1543
1565
|
/** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
|
|
1544
1566
|
sender_name?: string;
|
|
1567
|
+
/** Override the sender email of the envelope in email and other notifications. NOTE: This will change areas that reflect the sender's email in the Web UI and certificate. It cannot change the email address used for notifications. */
|
|
1568
|
+
sender_email?: string;
|
|
1545
1569
|
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1546
1570
|
no_contact?: boolean;
|
|
1547
1571
|
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
@@ -1643,8 +1667,8 @@ declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic
|
|
|
1643
1667
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
1644
1668
|
* @apiBody string description? Override the description of the envelope (defaults to the template description).
|
|
1645
1669
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1646
|
-
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting
|
|
1647
|
-
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting
|
|
1670
|
+
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting in ms.
|
|
1671
|
+
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting in ms.
|
|
1648
1672
|
* @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.
|
|
1649
1673
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1650
1674
|
*/
|
|
@@ -1716,12 +1740,20 @@ declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, documentId: string) =
|
|
|
1716
1740
|
* @group Envelopes
|
|
1717
1741
|
* @api PATCH /v2/envelopes/:id Update Envelope
|
|
1718
1742
|
* @apiParam string(format: 'uuid') id The ID of the envelope to update.
|
|
1719
|
-
* @apiBody
|
|
1743
|
+
* @apiBody string name? New name for the envelope
|
|
1744
|
+
* @apiBody string sender_name? New Sender Name for the envelope
|
|
1745
|
+
* @apiBody string sender_email? New Sender Email for the envelope
|
|
1746
|
+
* @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
|
|
1747
|
+
* @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
|
|
1748
|
+
* @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.
|
|
1749
|
+
* @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
|
|
1750
|
+
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1751
|
+
* @apiBody object data? Update the developer-supplied metadata attached to the envelope.
|
|
1720
1752
|
* @apiSuccess IEnvelope . A copy of the newly-updated envelope.
|
|
1721
1753
|
*/
|
|
1722
|
-
declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "initial_reminder" | "followup_reminders">) => Promise<IEnvelope>;
|
|
1754
|
+
declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "name" | "sender_name" | "sender_email" | "initial_reminder" | "followup_reminders" | "expires_at" | "visibility" | "no_contact" | "data">) => Promise<IEnvelope>;
|
|
1723
1755
|
/**
|
|
1724
|
-
* Update
|
|
1756
|
+
* Update an Envelope field. Typically called during the signing process as a Recipient fills in fields.
|
|
1725
1757
|
*
|
|
1726
1758
|
* @group Envelopes
|
|
1727
1759
|
* @api PUT /v2/envelopes/:envelope_id/fields/:field_name Update Envelope Field
|
|
@@ -1729,7 +1761,7 @@ declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, pa
|
|
|
1729
1761
|
* @apiParam string role_name The role to submit. Be sure to URL-encode the value.
|
|
1730
1762
|
* @apiParam string field_name The name of the field to update. Be sure to URL-encode the value.
|
|
1731
1763
|
* @apiParam string value The value to set. For signature/initial fields, the UUID of the signature/initial block. For attachment fields, a file uploaded in a FORM-POST field named "document". For checkbox/radio buttons, a boolean. For all other fields, a string.
|
|
1732
|
-
* @apiBody value
|
|
1764
|
+
* @apiBody string value Value to set.
|
|
1733
1765
|
* @apiSuccess IEnvelopeField . A copy of the newly-updated field.
|
|
1734
1766
|
*/
|
|
1735
1767
|
declare const updateEnvelopeField: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, fieldName: string, value: string, prepared: boolean) => Promise<IEnvelopeField>;
|
|
@@ -3486,8 +3518,8 @@ declare const createTemplateFromSharepoint: (endpoint: VerdocsEndpoint, params:
|
|
|
3486
3518
|
* @apiBody boolean is_personal? Deprecated. If true, the template is personal and can only be seen by the caller. (Use "visibility" for new calls.)
|
|
3487
3519
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
3488
3520
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3489
|
-
* @apiBody number initial_reminder? Delay
|
|
3490
|
-
* @apiBody number followup_reminders? Delay
|
|
3521
|
+
* @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3522
|
+
* @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3491
3523
|
* @apiSuccess ITemplate . The updated template
|
|
3492
3524
|
*/
|
|
3493
3525
|
declare const updateTemplate: (endpoint: VerdocsEndpoint, templateId: string, params: Partial<ITemplateCreateParams>) => Promise<ITemplate>;
|
package/dist/index.d.ts
CHANGED
|
@@ -508,6 +508,10 @@ interface IEnvelope {
|
|
|
508
508
|
organization_id: string;
|
|
509
509
|
/** Name of the envelope. By defaut, inherited from the envelope's template, but may be overridden when the envelope is created. */
|
|
510
510
|
name: string;
|
|
511
|
+
/** Override the sender "name" in places like the Certificate. */
|
|
512
|
+
sender_name: string;
|
|
513
|
+
/** Override the sender "email address" in places like the Certificate. */
|
|
514
|
+
sender_email: string;
|
|
511
515
|
/** If set to true, no email or SMS messages will be sent to any of the envelope's recipients. */
|
|
512
516
|
no_contact?: boolean;
|
|
513
517
|
/** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
|
|
@@ -526,7 +530,6 @@ interface IEnvelope {
|
|
|
526
530
|
expires_at?: string;
|
|
527
531
|
/** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
|
|
528
532
|
visibility: "private" | "shared";
|
|
529
|
-
search_key?: string | null;
|
|
530
533
|
/**
|
|
531
534
|
* Storage for arbitrary data that may be used e.g. to track source database/record IDs to relate Envelopes back to
|
|
532
535
|
* internal systems/applications.
|
|
@@ -542,21 +545,38 @@ interface IEnvelope {
|
|
|
542
545
|
/** Documents attached to this envelope */
|
|
543
546
|
documents?: IEnvelopeDocument[] | null;
|
|
544
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* An EnvelopeDocument is an individual document inside an Envelope package.
|
|
550
|
+
*/
|
|
545
551
|
interface IEnvelopeDocument {
|
|
552
|
+
/** Unique identifier for the document (UUID) */
|
|
546
553
|
id: string;
|
|
554
|
+
/** Unique identifier for the envelope (UUID) */
|
|
547
555
|
envelope_id: string;
|
|
556
|
+
/** Unique identifier for the template (UUID). May be null for envelopes created without templates */
|
|
548
557
|
template_document_id: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* The order in which the document appears in the envelope.
|
|
560
|
+
*/
|
|
549
561
|
order: number;
|
|
562
|
+
/** Whether the document is a signer-supplied attachment or a Verdocs-generated certificate */
|
|
550
563
|
type: "attachment" | "certificate";
|
|
564
|
+
/** The name of the document */
|
|
551
565
|
name: string;
|
|
566
|
+
/** Page count */
|
|
552
567
|
pages: number;
|
|
568
|
+
/** MIME type */
|
|
553
569
|
mime: string;
|
|
570
|
+
/** File size (bytes) */
|
|
554
571
|
size: number;
|
|
572
|
+
/** Collection of width/height dimensions for each page */
|
|
555
573
|
page_sizes: {
|
|
556
574
|
width: number;
|
|
557
575
|
height: number;
|
|
558
576
|
}[];
|
|
577
|
+
/** Date/time when the document was created. */
|
|
559
578
|
created_at: string;
|
|
579
|
+
/** Date/time when the document was created. */
|
|
560
580
|
updated_at: string;
|
|
561
581
|
}
|
|
562
582
|
interface IDropdownOption {
|
|
@@ -1516,6 +1536,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1516
1536
|
description?: string;
|
|
1517
1537
|
/** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
|
|
1518
1538
|
sender_name?: string;
|
|
1539
|
+
/** Override the sender email of the envelope in email and other notifications. NOTE: This will change areas that reflect the sender's email in the Web UI and certificate. It cannot change the email address used for notifications. */
|
|
1540
|
+
sender_email?: string;
|
|
1519
1541
|
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1520
1542
|
no_contact?: boolean;
|
|
1521
1543
|
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
@@ -1542,6 +1564,8 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1542
1564
|
description?: string;
|
|
1543
1565
|
/** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
|
|
1544
1566
|
sender_name?: string;
|
|
1567
|
+
/** Override the sender email of the envelope in email and other notifications. NOTE: This will change areas that reflect the sender's email in the Web UI and certificate. It cannot change the email address used for notifications. */
|
|
1568
|
+
sender_email?: string;
|
|
1545
1569
|
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1546
1570
|
no_contact?: boolean;
|
|
1547
1571
|
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
@@ -1643,8 +1667,8 @@ declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic
|
|
|
1643
1667
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
1644
1668
|
* @apiBody string description? Override the description of the envelope (defaults to the template description).
|
|
1645
1669
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1646
|
-
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting
|
|
1647
|
-
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting
|
|
1670
|
+
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting in ms.
|
|
1671
|
+
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting in ms.
|
|
1648
1672
|
* @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.
|
|
1649
1673
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1650
1674
|
*/
|
|
@@ -1716,12 +1740,20 @@ declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, documentId: string) =
|
|
|
1716
1740
|
* @group Envelopes
|
|
1717
1741
|
* @api PATCH /v2/envelopes/:id Update Envelope
|
|
1718
1742
|
* @apiParam string(format: 'uuid') id The ID of the envelope to update.
|
|
1719
|
-
* @apiBody
|
|
1743
|
+
* @apiBody string name? New name for the envelope
|
|
1744
|
+
* @apiBody string sender_name? New Sender Name for the envelope
|
|
1745
|
+
* @apiBody string sender_email? New Sender Email for the envelope
|
|
1746
|
+
* @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
|
|
1747
|
+
* @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
|
|
1748
|
+
* @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.
|
|
1749
|
+
* @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
|
|
1750
|
+
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1751
|
+
* @apiBody object data? Update the developer-supplied metadata attached to the envelope.
|
|
1720
1752
|
* @apiSuccess IEnvelope . A copy of the newly-updated envelope.
|
|
1721
1753
|
*/
|
|
1722
|
-
declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "initial_reminder" | "followup_reminders">) => Promise<IEnvelope>;
|
|
1754
|
+
declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "name" | "sender_name" | "sender_email" | "initial_reminder" | "followup_reminders" | "expires_at" | "visibility" | "no_contact" | "data">) => Promise<IEnvelope>;
|
|
1723
1755
|
/**
|
|
1724
|
-
* Update
|
|
1756
|
+
* Update an Envelope field. Typically called during the signing process as a Recipient fills in fields.
|
|
1725
1757
|
*
|
|
1726
1758
|
* @group Envelopes
|
|
1727
1759
|
* @api PUT /v2/envelopes/:envelope_id/fields/:field_name Update Envelope Field
|
|
@@ -1729,7 +1761,7 @@ declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, pa
|
|
|
1729
1761
|
* @apiParam string role_name The role to submit. Be sure to URL-encode the value.
|
|
1730
1762
|
* @apiParam string field_name The name of the field to update. Be sure to URL-encode the value.
|
|
1731
1763
|
* @apiParam string value The value to set. For signature/initial fields, the UUID of the signature/initial block. For attachment fields, a file uploaded in a FORM-POST field named "document". For checkbox/radio buttons, a boolean. For all other fields, a string.
|
|
1732
|
-
* @apiBody value
|
|
1764
|
+
* @apiBody string value Value to set.
|
|
1733
1765
|
* @apiSuccess IEnvelopeField . A copy of the newly-updated field.
|
|
1734
1766
|
*/
|
|
1735
1767
|
declare const updateEnvelopeField: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, fieldName: string, value: string, prepared: boolean) => Promise<IEnvelopeField>;
|
|
@@ -3486,8 +3518,8 @@ declare const createTemplateFromSharepoint: (endpoint: VerdocsEndpoint, params:
|
|
|
3486
3518
|
* @apiBody boolean is_personal? Deprecated. If true, the template is personal and can only be seen by the caller. (Use "visibility" for new calls.)
|
|
3487
3519
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
3488
3520
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3489
|
-
* @apiBody number initial_reminder? Delay
|
|
3490
|
-
* @apiBody number followup_reminders? Delay
|
|
3521
|
+
* @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3522
|
+
* @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3491
3523
|
* @apiSuccess ITemplate . The updated template
|
|
3492
3524
|
*/
|
|
3493
3525
|
declare const updateTemplate: (endpoint: VerdocsEndpoint, templateId: string, params: Partial<ITemplateCreateParams>) => Promise<ITemplate>;
|
package/dist/index.js
CHANGED
|
@@ -1589,8 +1589,8 @@ class VerdocsEndpoint {
|
|
|
1589
1589
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
1590
1590
|
* @apiBody string description? Override the description of the envelope (defaults to the template description).
|
|
1591
1591
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1592
|
-
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting
|
|
1593
|
-
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting
|
|
1592
|
+
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting in ms.
|
|
1593
|
+
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting in ms.
|
|
1594
1594
|
* @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.
|
|
1595
1595
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1596
1596
|
*/
|
|
@@ -1678,14 +1678,22 @@ const getEnvelopeFile = async (endpoint, documentId) => endpoint.api //
|
|
|
1678
1678
|
* @group Envelopes
|
|
1679
1679
|
* @api PATCH /v2/envelopes/:id Update Envelope
|
|
1680
1680
|
* @apiParam string(format: 'uuid') id The ID of the envelope to update.
|
|
1681
|
-
* @apiBody
|
|
1681
|
+
* @apiBody string name? New name for the envelope
|
|
1682
|
+
* @apiBody string sender_name? New Sender Name for the envelope
|
|
1683
|
+
* @apiBody string sender_email? New Sender Email for the envelope
|
|
1684
|
+
* @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
|
|
1685
|
+
* @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
|
|
1686
|
+
* @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.
|
|
1687
|
+
* @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
|
|
1688
|
+
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1689
|
+
* @apiBody object data? Update the developer-supplied metadata attached to the envelope.
|
|
1682
1690
|
* @apiSuccess IEnvelope . A copy of the newly-updated envelope.
|
|
1683
1691
|
*/
|
|
1684
1692
|
const updateEnvelope = async (endpoint, envelopeId, params) => endpoint.api //
|
|
1685
1693
|
.patch(`/v2/envelopes/${envelopeId}`, params)
|
|
1686
1694
|
.then((r) => r.data);
|
|
1687
1695
|
/**
|
|
1688
|
-
* Update
|
|
1696
|
+
* Update an Envelope field. Typically called during the signing process as a Recipient fills in fields.
|
|
1689
1697
|
*
|
|
1690
1698
|
* @group Envelopes
|
|
1691
1699
|
* @api PUT /v2/envelopes/:envelope_id/fields/:field_name Update Envelope Field
|
|
@@ -1693,7 +1701,7 @@ const updateEnvelope = async (endpoint, envelopeId, params) => endpoint.api //
|
|
|
1693
1701
|
* @apiParam string role_name The role to submit. Be sure to URL-encode the value.
|
|
1694
1702
|
* @apiParam string field_name The name of the field to update. Be sure to URL-encode the value.
|
|
1695
1703
|
* @apiParam string value The value to set. For signature/initial fields, the UUID of the signature/initial block. For attachment fields, a file uploaded in a FORM-POST field named "document". For checkbox/radio buttons, a boolean. For all other fields, a string.
|
|
1696
|
-
* @apiBody value
|
|
1704
|
+
* @apiBody string value Value to set.
|
|
1697
1705
|
* @apiSuccess IEnvelopeField . A copy of the newly-updated field.
|
|
1698
1706
|
*/
|
|
1699
1707
|
const updateEnvelopeField = async (endpoint, envelopeId, roleName, fieldName, value, prepared) => endpoint.api //
|
|
@@ -2398,8 +2406,8 @@ const createTemplateFromSharepoint = (endpoint, params) => {
|
|
|
2398
2406
|
* @apiBody boolean is_personal? Deprecated. If true, the template is personal and can only be seen by the caller. (Use "visibility" for new calls.)
|
|
2399
2407
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
2400
2408
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
2401
|
-
* @apiBody number initial_reminder? Delay
|
|
2402
|
-
* @apiBody number followup_reminders? Delay
|
|
2409
|
+
* @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
2410
|
+
* @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
2403
2411
|
* @apiSuccess ITemplate . The updated template
|
|
2404
2412
|
*/
|
|
2405
2413
|
const updateTemplate = (endpoint, templateId, params) => endpoint.api //
|