@verdocs/js-sdk 4.2.47 → 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 +15 -14
- package/dist/index.d.ts +15 -14
- package/dist/index.js +10 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -15
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
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,
|
|
@@ -1387,13 +1389,7 @@ class VerdocsEndpoint {
|
|
|
1387
1389
|
* ```
|
|
1388
1390
|
*/
|
|
1389
1391
|
const createEnvelope = async (endpoint, request) => endpoint.api //
|
|
1390
|
-
.post('/envelopes', request)
|
|
1391
|
-
.then((r) => r.data);
|
|
1392
|
-
/**
|
|
1393
|
-
* Get the list of recipients for an Envelope.
|
|
1394
|
-
*/
|
|
1395
|
-
const getEnvelopeRecipients = async (endpoint, envelopeId) => endpoint.api //
|
|
1396
|
-
.get(`/envelopes/${envelopeId}/recipients`)
|
|
1392
|
+
.post('/v2/envelopes', request)
|
|
1397
1393
|
.then((r) => r.data);
|
|
1398
1394
|
/**
|
|
1399
1395
|
* Get all metadata for an Envelope.
|
|
@@ -1425,7 +1421,7 @@ const getDocumentPreviewLink = async (endpoint, envelopeId, documentId) => endpo
|
|
|
1425
1421
|
* Cancel an Envelope.
|
|
1426
1422
|
*/
|
|
1427
1423
|
const cancelEnvelope = async (endpoint, envelopeId) => endpoint.api //
|
|
1428
|
-
.put(`/envelopes/${envelopeId}`, { action: 'cancel' })
|
|
1424
|
+
.put(`/v2/envelopes/${envelopeId}`, { action: 'cancel' })
|
|
1429
1425
|
.then((r) => r.data);
|
|
1430
1426
|
/**
|
|
1431
1427
|
* Get (binary download) a file attached to an Envelope. It is important to use this method
|
|
@@ -1563,8 +1559,8 @@ const submitKbaChallengeResponse = (endpoint, envelope_id, role_name, response)
|
|
|
1563
1559
|
/**
|
|
1564
1560
|
* Update a recipient's status block
|
|
1565
1561
|
*/
|
|
1566
|
-
const updateRecipient = async (endpoint,
|
|
1567
|
-
.put(`/envelopes/${
|
|
1562
|
+
const updateRecipient = async (endpoint, envelope_id, role_name, params) => endpoint.api //
|
|
1563
|
+
.put(`/envelopes/${envelope_id}/recipients/${role_name}`, params)
|
|
1568
1564
|
.then((r) => r.data);
|
|
1569
1565
|
/**
|
|
1570
1566
|
* Submit an envelope (signing is finished). Note that all fields must be valid/completed for this to succeed.
|
|
@@ -1577,7 +1573,7 @@ const envelopeRecipientDecline = (endpoint, envelopeId, roleName) => updateRecip
|
|
|
1577
1573
|
/**
|
|
1578
1574
|
* Claim / change ownership of an envelope. This is a special-case operation only available in certain workflows.
|
|
1579
1575
|
*/
|
|
1580
|
-
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 });
|
|
1581
1577
|
/**
|
|
1582
1578
|
* Agree to electronic signing.
|
|
1583
1579
|
*/
|
|
@@ -1585,7 +1581,7 @@ const envelopeRecipientAgree = (endpoint, envelopeId, roleName, agreed) => updat
|
|
|
1585
1581
|
/**
|
|
1586
1582
|
* Change a recipient's name.
|
|
1587
1583
|
*/
|
|
1588
|
-
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 });
|
|
1589
1585
|
/**
|
|
1590
1586
|
* Change a recipient's name.
|
|
1591
1587
|
*/
|
|
@@ -2795,5 +2791,5 @@ const isValidRoleName = (value, roles) => roles.findIndex((role) => role.name ==
|
|
|
2795
2791
|
const TagRegEx = /^[a-zA-Z0-9-]{0,32}$/;
|
|
2796
2792
|
const isValidTag = (value, tags) => TagRegEx.test(value) || tags.findIndex((tag) => tag === value) !== -1;
|
|
2797
2793
|
|
|
2798
|
-
export { AtoB, Countries, DEFAULT_FIELD_HEIGHTS, DEFAULT_FIELD_WIDTHS, FIELD_TYPES, RolePermissions, VerdocsEndpoint, acceptOrganizationInvitation, addGroupMember, addTemplateTag, authenticate, blobToBase64, canPerformTemplateAction, cancelEnvelope, capitalize, changePassword, convertToE164, createApiKey, createEnvelope, createEnvelopeReminder, createField, createGroup, createInitials, createOrganizationInvitation, createProfile, createSignature, createTag, createTemplate, createTemplateDocument, createTemplateFromSharepoint, createTemplateReminder, createTemplateRole, declineOrganizationInvitation, decodeAccessTokenBody, decodeJWTBody, deleteApiKey, deleteEnvelopeFieldAttachment, deleteEnvelopeReminder, deleteField, deleteGroupMember, deleteOrganizationInvitation, deleteOrganizationMember, deleteProfile, deleteSignature, deleteTemplate, deleteTemplateDocument, deleteTemplateReminder, deleteTemplateRole, deleteTemplateTag, downloadBlob, envelopeIsActive, envelopeIsComplete, envelopeRecipientAgree, envelopeRecipientChangeOwner, envelopeRecipientDecline, envelopeRecipientPrepare, envelopeRecipientSubmit, envelopeRecipientUpdateName, fileToDataUrl, formatFullName, formatInitials, formatShortTimeAgo, fullNameToInitials, getAllTags, getApiKeys, getCountryByCode, getCurrentProfile, getDocumentDownloadLink, getDocumentPreviewLink, getEnvelope, getEnvelopeDocument, getEnvelopeDocumentPageDisplayUri, getEnvelopeFile,
|
|
2794
|
+
export { AtoB, Countries, DEFAULT_FIELD_HEIGHTS, DEFAULT_FIELD_WIDTHS, FIELD_TYPES, RolePermissions, VerdocsEndpoint, acceptOrganizationInvitation, addGroupMember, addTemplateTag, authenticate, blobToBase64, canPerformTemplateAction, cancelEnvelope, capitalize, changePassword, convertToE164, createApiKey, createEnvelope, createEnvelopeReminder, createField, createGroup, createInitials, createOrganizationInvitation, createProfile, createSignature, createTag, createTemplate, createTemplateDocument, createTemplateFromSharepoint, createTemplateReminder, createTemplateRole, declineOrganizationInvitation, decodeAccessTokenBody, decodeJWTBody, deleteApiKey, deleteEnvelopeFieldAttachment, deleteEnvelopeReminder, deleteField, deleteGroupMember, deleteOrganizationInvitation, deleteOrganizationMember, deleteProfile, deleteSignature, deleteTemplate, deleteTemplateDocument, deleteTemplateReminder, deleteTemplateRole, deleteTemplateTag, downloadBlob, envelopeIsActive, envelopeIsComplete, envelopeRecipientAgree, envelopeRecipientChangeOwner, envelopeRecipientDecline, envelopeRecipientPrepare, envelopeRecipientSubmit, envelopeRecipientUpdateName, fileToDataUrl, formatFullName, formatInitials, formatShortTimeAgo, fullNameToInitials, getAllTags, getApiKeys, getCountryByCode, getCurrentProfile, getDocumentDownloadLink, getDocumentPreviewLink, getEnvelope, getEnvelopeDocument, getEnvelopeDocumentPageDisplayUri, getEnvelopeFile, getEnvelopeReminder, getEnvelopes, getFieldAttachment, getFieldsForRole, getGroup, getGroups, getInPersonLink, getKbaStep, getMatchingCountry, getMyUser, getNextRecipient, getNotifications, getOrganization, getOrganizationInvitation, getOrganizationInvitations, getOrganizationMembers, getPlusOneCountry, getProfiles, getRGB, getRGBA, getRLeft, getRTop, getRValue, getRecipientsWithActions, getRoleColor, getSignature, getSignatures, getSignerToken, getSigningSession, getStars, getTag, getTemplate, getTemplateDocument, getTemplateDocumentFile, getTemplateDocumentPageDisplayUri, getTemplateDocumentThumbnail, getTemplateDocuments, getTemplateReminder, getTemplateTags, getTemplates, getValidator, getValidators, getWebhooks, hasRequiredPermissions, integerSequence, isAmericanSamoa, isCanada, isDominicanRepublic, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, isPuertoRico, isValidEmail, isValidPhone, isValidRoleName, isValidTag, nameToRGBA, recipientCanAct, recipientHasAction, refreshToken, rescale, resendInvitation, resendOrganizationInvitation, resendVerification, resetPassword, rotateApiKey, sendDelegate, setWebhooks, submitKbaChallengeResponse, submitKbaIdentity, submitKbaPin, switchProfile, toggleStar, updateApiKey, updateEnvelopeField, updateEnvelopeFieldInitials, updateEnvelopeFieldSignature, updateEnvelopeReminder, updateField, updateGroup, updateOrganization, updateOrganizationInvitation, updateOrganizationLogo, updateOrganizationMember, updateOrganizationThumbnail, updateProfile, updateProfilePhoto, updateRecipient, updateTemplate, updateTemplateReminder, updateTemplateRole, uploadEnvelopeFieldAttachment, userCanAct, userCanBuildTemplate, userCanCancelEnvelope, userCanChangeOrgVisibility, userCanCreateOrgTemplate, userCanCreatePersonalTemplate, userCanCreatePublicTemplate, userCanCreateTemplate, userCanDeleteTemplate, userCanFinishEnvelope, userCanMakeTemplatePrivate, userCanMakeTemplatePublic, userCanMakeTemplateShared, userCanPreviewTemplate, userCanReadTemplate, userCanSendTemplate, userCanSignNow, userCanUpdateTemplate, userHasPermissions, userHasSharedTemplate, userIsEnvelopeOwner, userIsEnvelopeRecipient, userIsTemplateCreator, verifyEmail };
|
|
2799
2795
|
//# sourceMappingURL=index.mjs.map
|