@verdocs/js-sdk 5.3.2 → 5.3.3
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 +32 -6
- package/dist/index.d.ts +32 -6
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -8
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1959,12 +1959,6 @@ const getInPersonLink = (endpoint, envelope_id, role_name) => endpoint.api //
|
|
|
1959
1959
|
const verifySigner = (endpoint, params) => endpoint.api //
|
|
1960
1960
|
.post(`/v2/sign/verify`, params)
|
|
1961
1961
|
.then((r) => r.data);
|
|
1962
|
-
/**
|
|
1963
|
-
* Send a delegation request.
|
|
1964
|
-
*/
|
|
1965
|
-
const sendDelegate = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
1966
|
-
.post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`)
|
|
1967
|
-
.then((r) => r.data);
|
|
1968
1962
|
/**
|
|
1969
1963
|
* Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
|
|
1970
1964
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -1975,12 +1969,36 @@ const sendDelegate = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
|
1975
1969
|
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
|
|
1976
1970
|
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
1977
1971
|
* @apiParam string role_name The role to operate on.
|
|
1978
|
-
* @apiBody string(enum:'resend') action The operation to perform.
|
|
1972
|
+
* @apiBody string(enum:'resend') action The operation to perform (resend).
|
|
1979
1973
|
* @apiSuccess string . Success message.
|
|
1980
1974
|
*/
|
|
1981
1975
|
const resendInvitation = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
1982
1976
|
.put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'resend' })
|
|
1983
1977
|
.then((r) => r.data);
|
|
1978
|
+
/**
|
|
1979
|
+
* Delegate a recipient's signing responsibility. The envelope sender must enable this before the
|
|
1980
|
+
* recipient calls this endpoint, and only the recipient may call it, or the call will be rejected.
|
|
1981
|
+
* The recipient's role will be renamed and configured to indicate to whom the delegation was made,
|
|
1982
|
+
* and a new recipient entry with the updated details (e.g. name and email address) will be added
|
|
1983
|
+
* to the flow with the same role_name, order, and sequence of the original recipient. Unless
|
|
1984
|
+
* no_contact is set on the envelope, the delegation recipient and envelope creator will also be
|
|
1985
|
+
* notified.
|
|
1986
|
+
*
|
|
1987
|
+
* @group Recipients
|
|
1988
|
+
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Delegate Recipient
|
|
1989
|
+
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
1990
|
+
* @apiParam string role_name The role to operate on.
|
|
1991
|
+
* @apiBody string(enum:'delegate') action The operation to perform (delegate).
|
|
1992
|
+
* @apiBody string first_name The first name of the new recipient.
|
|
1993
|
+
* @apiBody string last_name The last name of the new recipient.
|
|
1994
|
+
* @apiBody string email The email address of the new recipient.
|
|
1995
|
+
* @apiBody string phone? Optional phone number for the new recipient.
|
|
1996
|
+
* @apiBody string message? Optional phone number for the new recipient's invitation.
|
|
1997
|
+
* @apiSuccess string . Success message.
|
|
1998
|
+
*/
|
|
1999
|
+
const delegateRecipient = (endpoint, envelopeId, roleName, params) => endpoint.api //
|
|
2000
|
+
.put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'delegate', ...params })
|
|
2001
|
+
.then((r) => r.data);
|
|
1984
2002
|
/**
|
|
1985
2003
|
* Update a recipient. NOTE: User interfaces should rate-limit this operation to
|
|
1986
2004
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -3657,5 +3675,5 @@ const isValidRoleName = (value, roles) => roles.findIndex((role) => role.name ==
|
|
|
3657
3675
|
const TagRegEx = /^[a-zA-Z0-9-]{0,32}$/;
|
|
3658
3676
|
const isValidTag = (value, tags) => TagRegEx.test(value) || tags.findIndex((tag) => tag === value) !== -1;
|
|
3659
3677
|
|
|
3660
|
-
export { ALL_PERMISSIONS, AtoB, Countries, DEFAULT_FIELD_HEIGHTS, DEFAULT_FIELD_WIDTHS, FIELD_TYPES, RolePermissions, VerdocsEndpoint, WEBHOOK_EVENTS, acceptOrganizationInvitation, addGroupMember, addTemplateTag, authenticate, blobToBase64, canPerformTemplateAction, cancelEnvelope, capitalize, changePassword, collapseEntitlements, convertToE164, createApiKey, createEnvelope, createField, createGroup, createInitials, createOrganization, createOrganizationContact, createOrganizationInvitation, createProfile, createSignature, createTag, createTemplate, createTemplateDocument, createTemplateFromSharepoint, createTemplateRole, declineOrganizationInvitation, decodeAccessTokenBody, decodeJWTBody, deleteApiKey, deleteEnvelopeFieldAttachment, deleteField, deleteGroup, deleteGroupMember, deleteOrganization, deleteOrganizationContact, deleteOrganizationInvitation, deleteOrganizationMember, deleteProfile, deleteSignature, deleteTemplate, deleteTemplateDocument, deleteTemplateRole, deleteTemplateTag, downloadBlob, 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, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, isPuertoRico, isValidEmail, isValidPhone, isValidRoleName, isValidTag, nameToRGBA, randomString, recipientCanAct, recipientHasAction, refreshToken, rescale, resendInvitation, resendOrganizationInvitation, resendVerification, resetPassword, rotateApiKey,
|
|
3678
|
+
export { ALL_PERMISSIONS, AtoB, Countries, DEFAULT_FIELD_HEIGHTS, DEFAULT_FIELD_WIDTHS, FIELD_TYPES, RolePermissions, VerdocsEndpoint, WEBHOOK_EVENTS, acceptOrganizationInvitation, addGroupMember, addTemplateTag, authenticate, blobToBase64, 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, 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, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, isPuertoRico, isValidEmail, isValidPhone, isValidRoleName, isValidTag, nameToRGBA, randomString, recipientCanAct, recipientHasAction, refreshToken, rescale, resendInvitation, resendOrganizationInvitation, resendVerification, resetPassword, 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, 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 };
|
|
3661
3679
|
//# sourceMappingURL=index.mjs.map
|