@verdocs/js-sdk 6.0.5 → 6.1.1
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 +22 -10
- package/dist/index.d.ts +22 -10
- package/dist/index.js +20 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -9
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +5 -5
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1973,9 +1973,6 @@ const getInPersonLink = (endpoint, envelope_id, role_name) => endpoint.api //
|
|
|
1973
1973
|
const verifySigner = (endpoint, params) => endpoint.api //
|
|
1974
1974
|
.post(`/v2/sign/verify`, params)
|
|
1975
1975
|
.then((r) => r.data);
|
|
1976
|
-
const resendInvitation = (endpoint, envelopeId, roleName, message) => endpoint.api //
|
|
1977
|
-
.patch(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { message })
|
|
1978
|
-
.then((r) => r.data);
|
|
1979
1976
|
/**
|
|
1980
1977
|
* Delegate a recipient's signing responsibility. The envelope sender must enable this before the
|
|
1981
1978
|
* recipient calls this endpoint, and only the recipient may call it, or the call will be rejected.
|
|
@@ -2006,17 +2003,15 @@ const delegateRecipient = (endpoint, envelopeId, roleName, params) => endpoint.a
|
|
|
2006
2003
|
* abuse. This endpoint will return a 200 OK even if the no_contact flag is set on the envelope (in which
|
|
2007
2004
|
* case the call will be silently ignored).
|
|
2008
2005
|
*
|
|
2009
|
-
* If the recipient's first_name, last_name, email, or message are updated, a new invitation will be sent
|
|
2010
|
-
* to the recipient. This may also be used to trigger a reminder.
|
|
2011
|
-
*
|
|
2012
2006
|
* @group Recipients
|
|
2013
2007
|
* @api PATCH /envelopes/:envelope_id/recipients/:role_name Update Recipient
|
|
2014
2008
|
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
2015
2009
|
* @apiParam string role_name The role name to update.
|
|
2010
|
+
* @apiBody string(enum:'remind'|'reset') action? Trigger a reminder, or fully reset the recipient
|
|
2016
2011
|
* @apiBody string first_name? Update the recipient's first name.
|
|
2017
2012
|
* @apiBody string last_name? Update the recipient's last name.
|
|
2018
|
-
* @apiBody string email? Update the recipient's email address.
|
|
2019
|
-
* @apiBody string message? Update the recipient's invite message.
|
|
2013
|
+
* @apiBody string email? Update the recipient's email address.
|
|
2014
|
+
* @apiBody string message? Update the recipient's invite message.
|
|
2020
2015
|
* @apiBody string phone? Update the recipient's phone number.
|
|
2021
2016
|
* @apiBody string passcode? If passcode authentication is used, the recipient's address to prefill. May only be changed if the recipient has not already completed passcode-based auth.
|
|
2022
2017
|
* @apiBody string address? If KBA-based authentication is used, the recipient's address to prefill. May only be changed if the recipient has not already completed KBA-based auth.
|
|
@@ -2030,6 +2025,21 @@ const delegateRecipient = (endpoint, envelopeId, roleName, params) => endpoint.a
|
|
|
2030
2025
|
const updateRecipient = (endpoint, envelopeId, roleName, params) => endpoint.api //
|
|
2031
2026
|
.patch(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, params)
|
|
2032
2027
|
.then((r) => r.data);
|
|
2028
|
+
/**
|
|
2029
|
+
* Send a reminder to a recipient. The recipient must still be an active member of the signing flow
|
|
2030
|
+
* (e.g. not declined, already submitted, etc.)
|
|
2031
|
+
*/
|
|
2032
|
+
const remindRecipient = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
2033
|
+
.patch(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'remind' })
|
|
2034
|
+
.then((r) => r.data);
|
|
2035
|
+
/**
|
|
2036
|
+
* Fully reset a recipient. This allows the recipient to restart failed KBA flows, change
|
|
2037
|
+
* fields they may have filled in incorrectly while signing, etc. This cannot be used on a
|
|
2038
|
+
* canceled or completed envelope, but may be used to restart an envelope marked declined.
|
|
2039
|
+
*/
|
|
2040
|
+
const resetRecipient = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
2041
|
+
.patch(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'reset' })
|
|
2042
|
+
.then((r) => r.data);
|
|
2033
2043
|
|
|
2034
2044
|
/**
|
|
2035
2045
|
* Various helpers to identify available operations for an envelope by a user.
|
|
@@ -3698,5 +3708,5 @@ const isValidRoleName = (value, roles) => roles.findIndex((role) => role.name ==
|
|
|
3698
3708
|
const TagRegEx = /^[a-zA-Z0-9-]{0,32}$/;
|
|
3699
3709
|
const isValidTag = (value, tags) => TagRegEx.test(value) || tags.findIndex((tag) => tag === value) !== -1;
|
|
3700
3710
|
|
|
3701
|
-
export { ALL_PERMISSIONS, AtoB, Countries, DEFAULT_FIELD_HEIGHTS, DEFAULT_FIELD_WIDTHS, FIELD_TYPES, RolePermissions, VerdocsEndpoint, WEBHOOK_EVENTS, acceptOrganizationInvitation, addGroupMember, addTemplateTag, authenticate, blobToBase64, canAccessEnvelope, canPerformTemplateAction, cancelEnvelope, capitalize, changePassword, collapseEntitlements, convertToE164, createApiKey, createEnvelope, createField, createGroup, createInitials, createOrganization, createOrganizationContact, createOrganizationInvitation, createProfile, createSignature, createTag, createTemplate, createTemplateDocument, createTemplateFromSharepoint, createTemplateRole, declineOrganizationInvitation, decodeAccessTokenBody, decodeJWTBody, delegateRecipient, deleteApiKey, deleteEnvelopeFieldAttachment, deleteField, deleteGroup, deleteGroupMember, deleteOrganization, deleteOrganizationContact, deleteOrganizationInvitation, deleteOrganizationMember, deleteProfile, deleteSignature, deleteTemplate, deleteTemplateDocument, deleteTemplateRole, deleteTemplateTag, downloadBlob, downloadDocument, duplicateTemplate, envelopeIsActive, envelopeIsComplete, envelopeRecipientAgree, envelopeRecipientChangeOwner, envelopeRecipientDecline, envelopeRecipientPrepare, envelopeRecipientSubmit, envelopeRecipientUpdateName, fileToDataUrl, formatFullName, formatInitials, formatShortTimeAgo, fullNameToInitials, getActiveEntitlements, getAllTags, getApiKeys, getCountryByCode, getCurrentProfile, getDocumentDownloadLink, getDocumentPreviewLink, getEntitlements, getEnvelope, getEnvelopeDocument, getEnvelopeDocumentPageDisplayUri, getEnvelopeFile, getEnvelopes, getFieldAttachment, getFieldsForRole, getGroup, getGroups, getInPersonLink, getKbaStep, getMatchingCountry, getMyUser, getNextRecipient, getNotifications, getOrganization, getOrganizationChildren, getOrganizationContacts, getOrganizationInvitation, getOrganizationInvitations, getOrganizationMembers, getOrganizationUsage, getPlusOneCountry, getProfiles, getRGB, getRGBA, getRLeft, getRTop, getRValue, getRecipientsWithActions, getRoleColor, getSignature, getSignatures, getStars, getTag, getTemplate, getTemplateDocument, getTemplateDocumentFile, getTemplateDocumentPageDisplayUri, getTemplateDocumentThumbnail, getTemplateDocuments, getTemplateTags, getTemplates, getValidator, getValidators, getWebhooks, hasRequiredPermissions, integerSequence, isAmericanSamoa, isCanada, isDominicanRepublic, isEnvelopeOwner, isEnvelopeRecipient, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, isPuertoRico, isValidEmail, isValidPhone, isValidRoleName, isValidTag, nameToRGBA, randomString, recipientCanAct, recipientHasAction, refreshToken,
|
|
3711
|
+
export { ALL_PERMISSIONS, AtoB, Countries, DEFAULT_FIELD_HEIGHTS, DEFAULT_FIELD_WIDTHS, FIELD_TYPES, RolePermissions, VerdocsEndpoint, WEBHOOK_EVENTS, acceptOrganizationInvitation, addGroupMember, addTemplateTag, authenticate, blobToBase64, canAccessEnvelope, canPerformTemplateAction, cancelEnvelope, capitalize, changePassword, collapseEntitlements, convertToE164, createApiKey, createEnvelope, createField, createGroup, createInitials, createOrganization, createOrganizationContact, createOrganizationInvitation, createProfile, createSignature, createTag, createTemplate, createTemplateDocument, createTemplateFromSharepoint, createTemplateRole, declineOrganizationInvitation, decodeAccessTokenBody, decodeJWTBody, delegateRecipient, deleteApiKey, deleteEnvelopeFieldAttachment, deleteField, deleteGroup, deleteGroupMember, deleteOrganization, deleteOrganizationContact, deleteOrganizationInvitation, deleteOrganizationMember, deleteProfile, deleteSignature, deleteTemplate, deleteTemplateDocument, deleteTemplateRole, deleteTemplateTag, downloadBlob, downloadDocument, duplicateTemplate, envelopeIsActive, envelopeIsComplete, envelopeRecipientAgree, envelopeRecipientChangeOwner, envelopeRecipientDecline, envelopeRecipientPrepare, envelopeRecipientSubmit, envelopeRecipientUpdateName, fileToDataUrl, formatFullName, formatInitials, formatShortTimeAgo, fullNameToInitials, getActiveEntitlements, getAllTags, getApiKeys, getCountryByCode, getCurrentProfile, getDocumentDownloadLink, getDocumentPreviewLink, getEntitlements, getEnvelope, getEnvelopeDocument, getEnvelopeDocumentPageDisplayUri, getEnvelopeFile, getEnvelopes, getFieldAttachment, getFieldsForRole, getGroup, getGroups, getInPersonLink, getKbaStep, getMatchingCountry, getMyUser, getNextRecipient, getNotifications, getOrganization, getOrganizationChildren, getOrganizationContacts, getOrganizationInvitation, getOrganizationInvitations, getOrganizationMembers, getOrganizationUsage, getPlusOneCountry, getProfiles, getRGB, getRGBA, getRLeft, getRTop, getRValue, getRecipientsWithActions, getRoleColor, getSignature, getSignatures, getStars, getTag, getTemplate, getTemplateDocument, getTemplateDocumentFile, getTemplateDocumentPageDisplayUri, getTemplateDocumentThumbnail, getTemplateDocuments, getTemplateTags, getTemplates, getValidator, getValidators, getWebhooks, hasRequiredPermissions, integerSequence, isAmericanSamoa, isCanada, isDominicanRepublic, isEnvelopeOwner, isEnvelopeRecipient, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, isPuertoRico, isValidEmail, isValidPhone, isValidRoleName, isValidTag, nameToRGBA, randomString, recipientCanAct, recipientHasAction, refreshToken, remindRecipient, rescale, resendOrganizationInvitation, resendVerification, resetPassword, resetRecipient, rotateApiKey, setWebhooks, sortFields, startSigningSession, submitKbaChallengeResponse, submitKbaIdentity, submitKbaPin, switchProfile, toggleStar, updateApiKey, updateEnvelope, updateEnvelopeField, updateEnvelopeFieldInitials, updateEnvelopeFieldSignature, updateField, updateGroup, updateOrganization, updateOrganizationContact, updateOrganizationInvitation, updateOrganizationLogo, updateOrganizationMember, updateOrganizationThumbnail, updateProfile, updateProfilePhoto, updateRecipient, updateRecipientStatus, updateTemplate, updateTemplateRole, uploadEnvelopeFieldAttachment, useCanAccessEnvelope, userCanAct, userCanBuildTemplate, userCanCancelEnvelope, userCanChangeOrgVisibility, userCanCreateOrgTemplate, userCanCreatePersonalTemplate, userCanCreatePublicTemplate, userCanCreateTemplate, userCanDeleteTemplate, userCanFinishEnvelope, userCanMakeTemplatePrivate, userCanMakeTemplatePublic, userCanMakeTemplateShared, userCanPreviewTemplate, userCanReadTemplate, userCanSendTemplate, userCanSignNow, userCanUpdateTemplate, userHasPermissions, userHasSharedTemplate, userIsEnvelopeOwner, userIsEnvelopeRecipient, userIsTemplateCreator, verifyEmail, verifySigner };
|
|
3702
3712
|
//# sourceMappingURL=index.mjs.map
|