@verdocs/js-sdk 6.2.2 → 6.2.4
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 +27 -6
- package/dist/index.d.ts +27 -6
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +3 -3
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -542,21 +542,38 @@ interface IEnvelope {
|
|
|
542
542
|
/** Documents attached to this envelope */
|
|
543
543
|
documents?: IEnvelopeDocument[] | null;
|
|
544
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* An EnvelopeDocument is an individual document inside an Envelope package.
|
|
547
|
+
*/
|
|
545
548
|
interface IEnvelopeDocument {
|
|
549
|
+
/** Unique identifier for the document (UUID) */
|
|
546
550
|
id: string;
|
|
551
|
+
/** Unique identifier for the envelope (UUID) */
|
|
547
552
|
envelope_id: string;
|
|
553
|
+
/** Unique identifier for the template (UUID). May be null for envelopes created without templates */
|
|
548
554
|
template_document_id: string | null;
|
|
555
|
+
/**
|
|
556
|
+
* The order in which the document appears in the envelope.
|
|
557
|
+
*/
|
|
549
558
|
order: number;
|
|
559
|
+
/** Whether the document is a signer-supplied attachment or a Verdocs-generated certificate */
|
|
550
560
|
type: "attachment" | "certificate";
|
|
561
|
+
/** The name of the document */
|
|
551
562
|
name: string;
|
|
563
|
+
/** Page count */
|
|
552
564
|
pages: number;
|
|
565
|
+
/** MIME type */
|
|
553
566
|
mime: string;
|
|
567
|
+
/** File size (bytes) */
|
|
554
568
|
size: number;
|
|
569
|
+
/** Collection of width/height dimensions for each page */
|
|
555
570
|
page_sizes: {
|
|
556
571
|
width: number;
|
|
557
572
|
height: number;
|
|
558
573
|
}[];
|
|
574
|
+
/** Date/time when the document was created. */
|
|
559
575
|
created_at: string;
|
|
576
|
+
/** Date/time when the document was created. */
|
|
560
577
|
updated_at: string;
|
|
561
578
|
}
|
|
562
579
|
interface IDropdownOption {
|
|
@@ -1516,6 +1533,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1516
1533
|
description?: string;
|
|
1517
1534
|
/** 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
1535
|
sender_name?: string;
|
|
1536
|
+
/** 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. */
|
|
1537
|
+
sender_email?: string;
|
|
1519
1538
|
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1520
1539
|
no_contact?: boolean;
|
|
1521
1540
|
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
@@ -1542,6 +1561,8 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1542
1561
|
description?: string;
|
|
1543
1562
|
/** 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
1563
|
sender_name?: string;
|
|
1564
|
+
/** 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. */
|
|
1565
|
+
sender_email?: string;
|
|
1545
1566
|
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1546
1567
|
no_contact?: boolean;
|
|
1547
1568
|
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
@@ -1643,8 +1664,8 @@ declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic
|
|
|
1643
1664
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
1644
1665
|
* @apiBody string description? Override the description of the envelope (defaults to the template description).
|
|
1645
1666
|
* @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.
|
|
1667
|
+
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting in ms.
|
|
1668
|
+
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting in ms.
|
|
1648
1669
|
* @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
1670
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1650
1671
|
*/
|
|
@@ -1721,7 +1742,7 @@ declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, documentId: string) =
|
|
|
1721
1742
|
*/
|
|
1722
1743
|
declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "initial_reminder" | "followup_reminders">) => Promise<IEnvelope>;
|
|
1723
1744
|
/**
|
|
1724
|
-
* Update
|
|
1745
|
+
* Update an Envelope field. Typically called during the signing process as a Recipient fills in fields.
|
|
1725
1746
|
*
|
|
1726
1747
|
* @group Envelopes
|
|
1727
1748
|
* @api PUT /v2/envelopes/:envelope_id/fields/:field_name Update Envelope Field
|
|
@@ -1729,7 +1750,7 @@ declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, pa
|
|
|
1729
1750
|
* @apiParam string role_name The role to submit. Be sure to URL-encode the value.
|
|
1730
1751
|
* @apiParam string field_name The name of the field to update. Be sure to URL-encode the value.
|
|
1731
1752
|
* @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
|
|
1753
|
+
* @apiBody string value Value to set.
|
|
1733
1754
|
* @apiSuccess IEnvelopeField . A copy of the newly-updated field.
|
|
1734
1755
|
*/
|
|
1735
1756
|
declare const updateEnvelopeField: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, fieldName: string, value: string, prepared: boolean) => Promise<IEnvelopeField>;
|
|
@@ -3486,8 +3507,8 @@ declare const createTemplateFromSharepoint: (endpoint: VerdocsEndpoint, params:
|
|
|
3486
3507
|
* @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
3508
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
3488
3509
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3489
|
-
* @apiBody number initial_reminder? Delay
|
|
3490
|
-
* @apiBody number followup_reminders? Delay
|
|
3510
|
+
* @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3511
|
+
* @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3491
3512
|
* @apiSuccess ITemplate . The updated template
|
|
3492
3513
|
*/
|
|
3493
3514
|
declare const updateTemplate: (endpoint: VerdocsEndpoint, templateId: string, params: Partial<ITemplateCreateParams>) => Promise<ITemplate>;
|
package/dist/index.d.ts
CHANGED
|
@@ -542,21 +542,38 @@ interface IEnvelope {
|
|
|
542
542
|
/** Documents attached to this envelope */
|
|
543
543
|
documents?: IEnvelopeDocument[] | null;
|
|
544
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* An EnvelopeDocument is an individual document inside an Envelope package.
|
|
547
|
+
*/
|
|
545
548
|
interface IEnvelopeDocument {
|
|
549
|
+
/** Unique identifier for the document (UUID) */
|
|
546
550
|
id: string;
|
|
551
|
+
/** Unique identifier for the envelope (UUID) */
|
|
547
552
|
envelope_id: string;
|
|
553
|
+
/** Unique identifier for the template (UUID). May be null for envelopes created without templates */
|
|
548
554
|
template_document_id: string | null;
|
|
555
|
+
/**
|
|
556
|
+
* The order in which the document appears in the envelope.
|
|
557
|
+
*/
|
|
549
558
|
order: number;
|
|
559
|
+
/** Whether the document is a signer-supplied attachment or a Verdocs-generated certificate */
|
|
550
560
|
type: "attachment" | "certificate";
|
|
561
|
+
/** The name of the document */
|
|
551
562
|
name: string;
|
|
563
|
+
/** Page count */
|
|
552
564
|
pages: number;
|
|
565
|
+
/** MIME type */
|
|
553
566
|
mime: string;
|
|
567
|
+
/** File size (bytes) */
|
|
554
568
|
size: number;
|
|
569
|
+
/** Collection of width/height dimensions for each page */
|
|
555
570
|
page_sizes: {
|
|
556
571
|
width: number;
|
|
557
572
|
height: number;
|
|
558
573
|
}[];
|
|
574
|
+
/** Date/time when the document was created. */
|
|
559
575
|
created_at: string;
|
|
576
|
+
/** Date/time when the document was created. */
|
|
560
577
|
updated_at: string;
|
|
561
578
|
}
|
|
562
579
|
interface IDropdownOption {
|
|
@@ -1516,6 +1533,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1516
1533
|
description?: string;
|
|
1517
1534
|
/** 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
1535
|
sender_name?: string;
|
|
1536
|
+
/** 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. */
|
|
1537
|
+
sender_email?: string;
|
|
1519
1538
|
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1520
1539
|
no_contact?: boolean;
|
|
1521
1540
|
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
@@ -1542,6 +1561,8 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1542
1561
|
description?: string;
|
|
1543
1562
|
/** 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
1563
|
sender_name?: string;
|
|
1564
|
+
/** 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. */
|
|
1565
|
+
sender_email?: string;
|
|
1545
1566
|
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1546
1567
|
no_contact?: boolean;
|
|
1547
1568
|
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
@@ -1643,8 +1664,8 @@ declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic
|
|
|
1643
1664
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
1644
1665
|
* @apiBody string description? Override the description of the envelope (defaults to the template description).
|
|
1645
1666
|
* @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.
|
|
1667
|
+
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting in ms.
|
|
1668
|
+
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting in ms.
|
|
1648
1669
|
* @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
1670
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1650
1671
|
*/
|
|
@@ -1721,7 +1742,7 @@ declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, documentId: string) =
|
|
|
1721
1742
|
*/
|
|
1722
1743
|
declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "initial_reminder" | "followup_reminders">) => Promise<IEnvelope>;
|
|
1723
1744
|
/**
|
|
1724
|
-
* Update
|
|
1745
|
+
* Update an Envelope field. Typically called during the signing process as a Recipient fills in fields.
|
|
1725
1746
|
*
|
|
1726
1747
|
* @group Envelopes
|
|
1727
1748
|
* @api PUT /v2/envelopes/:envelope_id/fields/:field_name Update Envelope Field
|
|
@@ -1729,7 +1750,7 @@ declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, pa
|
|
|
1729
1750
|
* @apiParam string role_name The role to submit. Be sure to URL-encode the value.
|
|
1730
1751
|
* @apiParam string field_name The name of the field to update. Be sure to URL-encode the value.
|
|
1731
1752
|
* @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
|
|
1753
|
+
* @apiBody string value Value to set.
|
|
1733
1754
|
* @apiSuccess IEnvelopeField . A copy of the newly-updated field.
|
|
1734
1755
|
*/
|
|
1735
1756
|
declare const updateEnvelopeField: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, fieldName: string, value: string, prepared: boolean) => Promise<IEnvelopeField>;
|
|
@@ -3486,8 +3507,8 @@ declare const createTemplateFromSharepoint: (endpoint: VerdocsEndpoint, params:
|
|
|
3486
3507
|
* @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
3508
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
3488
3509
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3489
|
-
* @apiBody number initial_reminder? Delay
|
|
3490
|
-
* @apiBody number followup_reminders? Delay
|
|
3510
|
+
* @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3511
|
+
* @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3491
3512
|
* @apiSuccess ITemplate . The updated template
|
|
3492
3513
|
*/
|
|
3493
3514
|
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
|
*/
|
|
@@ -1685,7 +1685,7 @@ const updateEnvelope = async (endpoint, envelopeId, params) => endpoint.api //
|
|
|
1685
1685
|
.patch(`/v2/envelopes/${envelopeId}`, params)
|
|
1686
1686
|
.then((r) => r.data);
|
|
1687
1687
|
/**
|
|
1688
|
-
* Update
|
|
1688
|
+
* Update an Envelope field. Typically called during the signing process as a Recipient fills in fields.
|
|
1689
1689
|
*
|
|
1690
1690
|
* @group Envelopes
|
|
1691
1691
|
* @api PUT /v2/envelopes/:envelope_id/fields/:field_name Update Envelope Field
|
|
@@ -1693,7 +1693,7 @@ const updateEnvelope = async (endpoint, envelopeId, params) => endpoint.api //
|
|
|
1693
1693
|
* @apiParam string role_name The role to submit. Be sure to URL-encode the value.
|
|
1694
1694
|
* @apiParam string field_name The name of the field to update. Be sure to URL-encode the value.
|
|
1695
1695
|
* @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
|
|
1696
|
+
* @apiBody string value Value to set.
|
|
1697
1697
|
* @apiSuccess IEnvelopeField . A copy of the newly-updated field.
|
|
1698
1698
|
*/
|
|
1699
1699
|
const updateEnvelopeField = async (endpoint, envelopeId, roleName, fieldName, value, prepared) => endpoint.api //
|
|
@@ -2398,8 +2398,8 @@ const createTemplateFromSharepoint = (endpoint, params) => {
|
|
|
2398
2398
|
* @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
2399
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
2400
2400
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
2401
|
-
* @apiBody number initial_reminder? Delay
|
|
2402
|
-
* @apiBody number followup_reminders? Delay
|
|
2401
|
+
* @apiBody number initial_reminder? Delay in ms before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
2402
|
+
* @apiBody number followup_reminders? Delay in ms before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
2403
2403
|
* @apiSuccess ITemplate . The updated template
|
|
2404
2404
|
*/
|
|
2405
2405
|
const updateTemplate = (endpoint, templateId, params) => endpoint.api //
|