@verdocs/js-sdk 4.2.48 → 4.2.49
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 -9
- package/dist/index.d.ts +14 -9
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1363,7 +1363,8 @@ class VerdocsEndpoint {
|
|
|
1363
1363
|
* const role1: ICreateEnvelopeRole = {
|
|
1364
1364
|
* type: 'signer',
|
|
1365
1365
|
* name: 'Seller',
|
|
1366
|
-
*
|
|
1366
|
+
* first_name: 'Paige',
|
|
1367
|
+
* last_name: 'Turner',
|
|
1367
1368
|
* email: 'paige.turner@nomail.com',
|
|
1368
1369
|
* phone: '',
|
|
1369
1370
|
* sequence: 1,
|
|
@@ -1374,7 +1375,8 @@ class VerdocsEndpoint {
|
|
|
1374
1375
|
* const role2: ICreateEnvelopeRole = {
|
|
1375
1376
|
* type: 'signer',
|
|
1376
1377
|
* name: 'Buyer',
|
|
1377
|
-
*
|
|
1378
|
+
* first_name: 'Power',
|
|
1379
|
+
* last_name: 'Power',
|
|
1378
1380
|
* email: 'will.power@nomail.com',
|
|
1379
1381
|
* phone: '',
|
|
1380
1382
|
* sequence: 2,
|
|
@@ -1557,8 +1559,8 @@ const submitKbaChallengeResponse = (endpoint, envelope_id, role_name, response)
|
|
|
1557
1559
|
/**
|
|
1558
1560
|
* Update a recipient's status block
|
|
1559
1561
|
*/
|
|
1560
|
-
const updateRecipient = async (endpoint,
|
|
1561
|
-
.put(`/envelopes/${
|
|
1562
|
+
const updateRecipient = async (endpoint, envelope_id, role_name, params) => endpoint.api //
|
|
1563
|
+
.put(`/envelopes/${envelope_id}/recipients/${role_name}`, params)
|
|
1562
1564
|
.then((r) => r.data);
|
|
1563
1565
|
/**
|
|
1564
1566
|
* Submit an envelope (signing is finished). Note that all fields must be valid/completed for this to succeed.
|
|
@@ -1571,7 +1573,7 @@ const envelopeRecipientDecline = (endpoint, envelopeId, roleName) => updateRecip
|
|
|
1571
1573
|
/**
|
|
1572
1574
|
* Claim / change ownership of an envelope. This is a special-case operation only available in certain workflows.
|
|
1573
1575
|
*/
|
|
1574
|
-
const envelopeRecipientChangeOwner = (endpoint,
|
|
1576
|
+
const envelopeRecipientChangeOwner = (endpoint, envelope_id, role_name, email, first_name, last_name) => updateRecipient(endpoint, envelope_id, role_name, { action: 'owner_update', email, first_name, last_name });
|
|
1575
1577
|
/**
|
|
1576
1578
|
* Agree to electronic signing.
|
|
1577
1579
|
*/
|
|
@@ -1579,7 +1581,7 @@ const envelopeRecipientAgree = (endpoint, envelopeId, roleName, agreed) => updat
|
|
|
1579
1581
|
/**
|
|
1580
1582
|
* Change a recipient's name.
|
|
1581
1583
|
*/
|
|
1582
|
-
const envelopeRecipientUpdateName = (endpoint, envelopeId, roleName,
|
|
1584
|
+
const envelopeRecipientUpdateName = (endpoint, envelopeId, roleName, first_name, last_name) => updateRecipient(endpoint, envelopeId, roleName, { action: 'update', first_name, last_name });
|
|
1583
1585
|
/**
|
|
1584
1586
|
* Change a recipient's name.
|
|
1585
1587
|
*/
|