@verdocs/js-sdk 4.2.46 → 4.2.48
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 +6 -10
- package/dist/index.d.ts +6 -10
- package/dist/index.js +2 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -510,7 +510,7 @@ interface IEnvelopeField {
|
|
|
510
510
|
/** The machine name of the field, e.g. `Buyer-textbox-1` */
|
|
511
511
|
name: string;
|
|
512
512
|
/** The ID of the role in the recipients list, e.g. `Recipient 2` */
|
|
513
|
-
|
|
513
|
+
role_name: string;
|
|
514
514
|
/** The type of the field */
|
|
515
515
|
type: TFieldType;
|
|
516
516
|
/** If true, the field will be required */
|
|
@@ -544,8 +544,6 @@ interface IEnvelopeField {
|
|
|
544
544
|
options: IDropdownOption[] | null;
|
|
545
545
|
value: string | null;
|
|
546
546
|
is_valid: boolean;
|
|
547
|
-
envelope?: IEnvelope;
|
|
548
|
-
document?: IEnvelopeDocument;
|
|
549
547
|
}
|
|
550
548
|
interface IEnvelopeFieldOptions {
|
|
551
549
|
/** The unique ID of the field */
|
|
@@ -869,6 +867,8 @@ interface ITemplateField {
|
|
|
869
867
|
group: string | null;
|
|
870
868
|
/** For dropdowns, the options that are selectable. */
|
|
871
869
|
options: IDropdownOption[] | null;
|
|
870
|
+
value?: string | null;
|
|
871
|
+
is_valid?: boolean;
|
|
872
872
|
}
|
|
873
873
|
interface ITextFieldSetting {
|
|
874
874
|
x: number;
|
|
@@ -1239,7 +1239,7 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1239
1239
|
recipients: ICreateEnvelopeRecipient[];
|
|
1240
1240
|
name: string;
|
|
1241
1241
|
description?: string;
|
|
1242
|
-
fields?: Pick<IEnvelopeField, "name" | "
|
|
1242
|
+
fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1243
1243
|
environment?: string;
|
|
1244
1244
|
no_contact?: boolean;
|
|
1245
1245
|
}
|
|
@@ -1249,7 +1249,7 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1249
1249
|
visiblity?: "private" | "shared";
|
|
1250
1250
|
recipients: ICreateEnvelopeRecipient[];
|
|
1251
1251
|
documents: IEnvelopeDocument[];
|
|
1252
|
-
fields: Pick<IEnvelopeField, "name" | "
|
|
1252
|
+
fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1253
1253
|
environment?: string;
|
|
1254
1254
|
no_contact?: boolean;
|
|
1255
1255
|
}
|
|
@@ -1287,10 +1287,6 @@ type TCreateEnvelopeRequest = ICreateEnvelopeFromTemplateRequest | ICreateEnvelo
|
|
|
1287
1287
|
* ```
|
|
1288
1288
|
*/
|
|
1289
1289
|
declare const createEnvelope: (endpoint: VerdocsEndpoint, request: TCreateEnvelopeRequest) => Promise<IEnvelope>;
|
|
1290
|
-
/**
|
|
1291
|
-
* Get the list of recipients for an Envelope.
|
|
1292
|
-
*/
|
|
1293
|
-
declare const getEnvelopeRecipients: (endpoint: VerdocsEndpoint, envelopeId: string) => Promise<IRecipient[]>;
|
|
1294
1290
|
/**
|
|
1295
1291
|
* Get all metadata for an Envelope.
|
|
1296
1292
|
*/
|
|
@@ -2668,4 +2664,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
2668
2664
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
2669
2665
|
*/
|
|
2670
2666
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
2671
|
-
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IReminder, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope,
|
|
2667
|
+
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IReminder, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, updateEnvelopeField, updateEnvelopeFieldSignature, updateEnvelopeFieldInitials, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, getFieldAttachment, getEnvelopeDocumentPageDisplayUri, ITimeRange, IListEnvelopesParams, getEnvelopes, createInitials, IRecipientKbaStepNone, IRecipientKbaStepComplete, IRecipientKbaStepPin, IRecipientKbaStepIdentity, IRecipientKbaStepChallenge, IRecipientKbaStepFailed, TRecipientKbaStep, getKbaStep, submitKbaPin, IKbaIdentity, submitKbaIdentity, IKbaChallengeResponse, submitKbaChallengeResponse, updateRecipient, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, ISignerTokenResponse, getSigningSession, getSignerToken, getInPersonLink, sendDelegate, resendInvitation, createEnvelopeReminder, getEnvelopeReminder, updateEnvelopeReminder, deleteEnvelopeReminder, userIsEnvelopeOwner, userIsEnvelopeRecipient, envelopeIsActive, envelopeIsComplete, userCanCancelEnvelope, userCanFinishEnvelope, recipientHasAction, getRecipientsWithActions, recipientCanAct, userCanAct, userCanSignNow, getNextRecipient, createSignature, getSignatures, getSignature, deleteSignature, IEnvelopesSearchResult, IDocumentSearchOptions, ICreateEnvelopeRecipient, IInPersonLinkResponse, IUpdateRecipientSubmitParams, IUpdateRecipientDeclineParams, IUpdateRecipientClaimEnvelope, IUpdateRecipientStatus, IUpdateRecipientAgreedParams, IUpdateRecipientNameParams, IUpdateRecipientPrepareParams, ICreateEnvelopeReminderRequest, ICreateEnvelopeFromTemplateRequest, ICreateEnvelopeDirectlyRequest, TCreateEnvelopeRequest, getApiKeys, createApiKey, rotateApiKey, updateApiKey, deleteApiKey, getGroups, getGroup, createGroup, addGroupMember, deleteGroupMember, updateGroup, getOrganizationInvitations, createOrganizationInvitation, deleteOrganizationInvitation, updateOrganizationInvitation, resendOrganizationInvitation, getOrganizationInvitation, acceptOrganizationInvitation, declineOrganizationInvitation, getOrganizationMembers, deleteOrganizationMember, updateOrganizationMember, getOrganization, updateOrganization, updateOrganizationLogo, updateOrganizationThumbnail, ICreateApiKeyRequest, IUpdateApiKeyRequest, ICreateInvitationRequest, IAcceptOrganizationInvitationRequest, ISetWebhookRequest, getWebhooks, setWebhooks, TTemplatePermissionCreatePublic, TTemplatePermissionCreateOrg, TTemplatePermissionCreatePersonal, TTemplatePermissionDelete, TTemplatePermissionVisibility, TTemplateMemberRead, TTemplateMemberWrite, TTemplateMemberDelete, TTemplateMemberVisibility, TTemplatePermission, TAccountPermissionOwnerAdd, TAccountPermissionOwnerRemove, TAccountPermissionAdminAdd, TAccountPermissionAdminRemove, TAccountPermissionMemberView, TAccountPermissionMemberAdd, TAccountPermissionMemberRemove, TAccountPermission, TOrgPermissionCreate, TOrgPermissionView, TOrgPermissionUpdate, TOrgPermissionDelete, TOrgPermissionTransfer, TOrgPermissionList, TOrgPermission, TEnvelopePermissionCreate, TEnvelopePermissionCancel, TEnvelopePermissionView, TEnvelopePermissionOrg, TEnvelopePermission, TPermission, TRole, RolePermissions, userHasPermissions, ISigningSession, IUserSession, IIdToken, TSessionType, TSession, TActiveSession, canPerformTemplateAction, hasRequiredPermissions, createField, updateField, deleteField, userIsTemplateCreator, userHasSharedTemplate, userCanCreatePersonalTemplate, userCanCreateOrgTemplate, userCanCreatePublicTemplate, userCanReadTemplate, userCanUpdateTemplate, userCanMakeTemplatePrivate, userCanMakeTemplateShared, userCanMakeTemplatePublic, userCanChangeOrgVisibility, userCanDeleteTemplate, userCanSendTemplate, userCanCreateTemplate, userCanBuildTemplate, getFieldsForRole, userCanPreviewTemplate, ICreateTemplateReminderRequest, createTemplateReminder, getTemplateReminder, updateTemplateReminder, deleteTemplateReminder, createTemplateRole, updateTemplateRole, deleteTemplateRole, getStars, toggleStar, addTemplateTag, getTemplateTags, deleteTemplateTag, createTag, getTag, getAllTags, ITemplateSortBy, IGetTemplatesParams, getTemplates, getTemplate, IDocumentFromUri, IDocumentFromData, ITemplateCreateParams, createTemplate, ITemplateCreateFromSharepointParams, createTemplateFromSharepoint, updateTemplate, deleteTemplate, getTemplateDocuments, getTemplateDocument, createTemplateDocument, deleteTemplateDocument, getTemplateDocumentFile, getTemplateDocumentThumbnail, getTemplateDocumentPageDisplayUri, ITemplateTag, ITag, IStar, ITemplateSearchResult, IValidator, getValidators, getValidator, isValidEmail, isValidPhone, isValidRoleName, isValidTag, IROPCRequest, IClientCredentialsRequest, IRefreshTokenRequest, TAuthenticationRequest, authenticate, refreshToken, changePassword, resetPassword, resendVerification, verifyEmail, getMyUser, getNotifications, getProfiles, getCurrentProfile, switchProfile, updateProfile, deleteProfile, createProfile, updateProfilePhoto, ICreateProfileRequest, IUpdateProfileRequest, IAuthenticateResponse, IChangePasswordRequest, IChangePasswordResponse, IResetPasswordRequest, IResetPasswordResponse, IVerifyEmailRequest, getRGB, getRGBA, nameToRGBA, getRoleColor, formatShortTimeAgo, getRTop, getRLeft, getRValue, blobToBase64, rescale, fileToDataUrl, downloadBlob, Countries, getCountryByCode, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, getPlusOneCountry, isCanada, isAmericanSamoa, isDominicanRepublic, isPuertoRico, getMatchingCountry, integerSequence, formatFullName, formatInitials, fullNameToInitials, capitalize, convertToE164, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
|
package/dist/index.d.ts
CHANGED
|
@@ -510,7 +510,7 @@ interface IEnvelopeField {
|
|
|
510
510
|
/** The machine name of the field, e.g. `Buyer-textbox-1` */
|
|
511
511
|
name: string;
|
|
512
512
|
/** The ID of the role in the recipients list, e.g. `Recipient 2` */
|
|
513
|
-
|
|
513
|
+
role_name: string;
|
|
514
514
|
/** The type of the field */
|
|
515
515
|
type: TFieldType;
|
|
516
516
|
/** If true, the field will be required */
|
|
@@ -544,8 +544,6 @@ interface IEnvelopeField {
|
|
|
544
544
|
options: IDropdownOption[] | null;
|
|
545
545
|
value: string | null;
|
|
546
546
|
is_valid: boolean;
|
|
547
|
-
envelope?: IEnvelope;
|
|
548
|
-
document?: IEnvelopeDocument;
|
|
549
547
|
}
|
|
550
548
|
interface IEnvelopeFieldOptions {
|
|
551
549
|
/** The unique ID of the field */
|
|
@@ -869,6 +867,8 @@ interface ITemplateField {
|
|
|
869
867
|
group: string | null;
|
|
870
868
|
/** For dropdowns, the options that are selectable. */
|
|
871
869
|
options: IDropdownOption[] | null;
|
|
870
|
+
value?: string | null;
|
|
871
|
+
is_valid?: boolean;
|
|
872
872
|
}
|
|
873
873
|
interface ITextFieldSetting {
|
|
874
874
|
x: number;
|
|
@@ -1239,7 +1239,7 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1239
1239
|
recipients: ICreateEnvelopeRecipient[];
|
|
1240
1240
|
name: string;
|
|
1241
1241
|
description?: string;
|
|
1242
|
-
fields?: Pick<IEnvelopeField, "name" | "
|
|
1242
|
+
fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1243
1243
|
environment?: string;
|
|
1244
1244
|
no_contact?: boolean;
|
|
1245
1245
|
}
|
|
@@ -1249,7 +1249,7 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1249
1249
|
visiblity?: "private" | "shared";
|
|
1250
1250
|
recipients: ICreateEnvelopeRecipient[];
|
|
1251
1251
|
documents: IEnvelopeDocument[];
|
|
1252
|
-
fields: Pick<IEnvelopeField, "name" | "
|
|
1252
|
+
fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1253
1253
|
environment?: string;
|
|
1254
1254
|
no_contact?: boolean;
|
|
1255
1255
|
}
|
|
@@ -1287,10 +1287,6 @@ type TCreateEnvelopeRequest = ICreateEnvelopeFromTemplateRequest | ICreateEnvelo
|
|
|
1287
1287
|
* ```
|
|
1288
1288
|
*/
|
|
1289
1289
|
declare const createEnvelope: (endpoint: VerdocsEndpoint, request: TCreateEnvelopeRequest) => Promise<IEnvelope>;
|
|
1290
|
-
/**
|
|
1291
|
-
* Get the list of recipients for an Envelope.
|
|
1292
|
-
*/
|
|
1293
|
-
declare const getEnvelopeRecipients: (endpoint: VerdocsEndpoint, envelopeId: string) => Promise<IRecipient[]>;
|
|
1294
1290
|
/**
|
|
1295
1291
|
* Get all metadata for an Envelope.
|
|
1296
1292
|
*/
|
|
@@ -2668,4 +2664,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
2668
2664
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
2669
2665
|
*/
|
|
2670
2666
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
2671
|
-
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IReminder, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope,
|
|
2667
|
+
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IReminder, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, updateEnvelopeField, updateEnvelopeFieldSignature, updateEnvelopeFieldInitials, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, getFieldAttachment, getEnvelopeDocumentPageDisplayUri, ITimeRange, IListEnvelopesParams, getEnvelopes, createInitials, IRecipientKbaStepNone, IRecipientKbaStepComplete, IRecipientKbaStepPin, IRecipientKbaStepIdentity, IRecipientKbaStepChallenge, IRecipientKbaStepFailed, TRecipientKbaStep, getKbaStep, submitKbaPin, IKbaIdentity, submitKbaIdentity, IKbaChallengeResponse, submitKbaChallengeResponse, updateRecipient, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, ISignerTokenResponse, getSigningSession, getSignerToken, getInPersonLink, sendDelegate, resendInvitation, createEnvelopeReminder, getEnvelopeReminder, updateEnvelopeReminder, deleteEnvelopeReminder, userIsEnvelopeOwner, userIsEnvelopeRecipient, envelopeIsActive, envelopeIsComplete, userCanCancelEnvelope, userCanFinishEnvelope, recipientHasAction, getRecipientsWithActions, recipientCanAct, userCanAct, userCanSignNow, getNextRecipient, createSignature, getSignatures, getSignature, deleteSignature, IEnvelopesSearchResult, IDocumentSearchOptions, ICreateEnvelopeRecipient, IInPersonLinkResponse, IUpdateRecipientSubmitParams, IUpdateRecipientDeclineParams, IUpdateRecipientClaimEnvelope, IUpdateRecipientStatus, IUpdateRecipientAgreedParams, IUpdateRecipientNameParams, IUpdateRecipientPrepareParams, ICreateEnvelopeReminderRequest, ICreateEnvelopeFromTemplateRequest, ICreateEnvelopeDirectlyRequest, TCreateEnvelopeRequest, getApiKeys, createApiKey, rotateApiKey, updateApiKey, deleteApiKey, getGroups, getGroup, createGroup, addGroupMember, deleteGroupMember, updateGroup, getOrganizationInvitations, createOrganizationInvitation, deleteOrganizationInvitation, updateOrganizationInvitation, resendOrganizationInvitation, getOrganizationInvitation, acceptOrganizationInvitation, declineOrganizationInvitation, getOrganizationMembers, deleteOrganizationMember, updateOrganizationMember, getOrganization, updateOrganization, updateOrganizationLogo, updateOrganizationThumbnail, ICreateApiKeyRequest, IUpdateApiKeyRequest, ICreateInvitationRequest, IAcceptOrganizationInvitationRequest, ISetWebhookRequest, getWebhooks, setWebhooks, TTemplatePermissionCreatePublic, TTemplatePermissionCreateOrg, TTemplatePermissionCreatePersonal, TTemplatePermissionDelete, TTemplatePermissionVisibility, TTemplateMemberRead, TTemplateMemberWrite, TTemplateMemberDelete, TTemplateMemberVisibility, TTemplatePermission, TAccountPermissionOwnerAdd, TAccountPermissionOwnerRemove, TAccountPermissionAdminAdd, TAccountPermissionAdminRemove, TAccountPermissionMemberView, TAccountPermissionMemberAdd, TAccountPermissionMemberRemove, TAccountPermission, TOrgPermissionCreate, TOrgPermissionView, TOrgPermissionUpdate, TOrgPermissionDelete, TOrgPermissionTransfer, TOrgPermissionList, TOrgPermission, TEnvelopePermissionCreate, TEnvelopePermissionCancel, TEnvelopePermissionView, TEnvelopePermissionOrg, TEnvelopePermission, TPermission, TRole, RolePermissions, userHasPermissions, ISigningSession, IUserSession, IIdToken, TSessionType, TSession, TActiveSession, canPerformTemplateAction, hasRequiredPermissions, createField, updateField, deleteField, userIsTemplateCreator, userHasSharedTemplate, userCanCreatePersonalTemplate, userCanCreateOrgTemplate, userCanCreatePublicTemplate, userCanReadTemplate, userCanUpdateTemplate, userCanMakeTemplatePrivate, userCanMakeTemplateShared, userCanMakeTemplatePublic, userCanChangeOrgVisibility, userCanDeleteTemplate, userCanSendTemplate, userCanCreateTemplate, userCanBuildTemplate, getFieldsForRole, userCanPreviewTemplate, ICreateTemplateReminderRequest, createTemplateReminder, getTemplateReminder, updateTemplateReminder, deleteTemplateReminder, createTemplateRole, updateTemplateRole, deleteTemplateRole, getStars, toggleStar, addTemplateTag, getTemplateTags, deleteTemplateTag, createTag, getTag, getAllTags, ITemplateSortBy, IGetTemplatesParams, getTemplates, getTemplate, IDocumentFromUri, IDocumentFromData, ITemplateCreateParams, createTemplate, ITemplateCreateFromSharepointParams, createTemplateFromSharepoint, updateTemplate, deleteTemplate, getTemplateDocuments, getTemplateDocument, createTemplateDocument, deleteTemplateDocument, getTemplateDocumentFile, getTemplateDocumentThumbnail, getTemplateDocumentPageDisplayUri, ITemplateTag, ITag, IStar, ITemplateSearchResult, IValidator, getValidators, getValidator, isValidEmail, isValidPhone, isValidRoleName, isValidTag, IROPCRequest, IClientCredentialsRequest, IRefreshTokenRequest, TAuthenticationRequest, authenticate, refreshToken, changePassword, resetPassword, resendVerification, verifyEmail, getMyUser, getNotifications, getProfiles, getCurrentProfile, switchProfile, updateProfile, deleteProfile, createProfile, updateProfilePhoto, ICreateProfileRequest, IUpdateProfileRequest, IAuthenticateResponse, IChangePasswordRequest, IChangePasswordResponse, IResetPasswordRequest, IResetPasswordResponse, IVerifyEmailRequest, getRGB, getRGBA, nameToRGBA, getRoleColor, formatShortTimeAgo, getRTop, getRLeft, getRValue, blobToBase64, rescale, fileToDataUrl, downloadBlob, Countries, getCountryByCode, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, getPlusOneCountry, isCanada, isAmericanSamoa, isDominicanRepublic, isPuertoRico, getMatchingCountry, integerSequence, formatFullName, formatInitials, fullNameToInitials, capitalize, convertToE164, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
|
package/dist/index.js
CHANGED
|
@@ -1389,13 +1389,7 @@ class VerdocsEndpoint {
|
|
|
1389
1389
|
* ```
|
|
1390
1390
|
*/
|
|
1391
1391
|
const createEnvelope = async (endpoint, request) => endpoint.api //
|
|
1392
|
-
.post('/envelopes', request)
|
|
1393
|
-
.then((r) => r.data);
|
|
1394
|
-
/**
|
|
1395
|
-
* Get the list of recipients for an Envelope.
|
|
1396
|
-
*/
|
|
1397
|
-
const getEnvelopeRecipients = async (endpoint, envelopeId) => endpoint.api //
|
|
1398
|
-
.get(`/envelopes/${envelopeId}/recipients`)
|
|
1392
|
+
.post('/v2/envelopes', request)
|
|
1399
1393
|
.then((r) => r.data);
|
|
1400
1394
|
/**
|
|
1401
1395
|
* Get all metadata for an Envelope.
|
|
@@ -1427,7 +1421,7 @@ const getDocumentPreviewLink = async (endpoint, envelopeId, documentId) => endpo
|
|
|
1427
1421
|
* Cancel an Envelope.
|
|
1428
1422
|
*/
|
|
1429
1423
|
const cancelEnvelope = async (endpoint, envelopeId) => endpoint.api //
|
|
1430
|
-
.put(`/envelopes/${envelopeId}`, { action: 'cancel' })
|
|
1424
|
+
.put(`/v2/envelopes/${envelopeId}`, { action: 'cancel' })
|
|
1431
1425
|
.then((r) => r.data);
|
|
1432
1426
|
/**
|
|
1433
1427
|
* Get (binary download) a file attached to an Envelope. It is important to use this method
|
|
@@ -2870,7 +2864,6 @@ exports.getEnvelope = getEnvelope;
|
|
|
2870
2864
|
exports.getEnvelopeDocument = getEnvelopeDocument;
|
|
2871
2865
|
exports.getEnvelopeDocumentPageDisplayUri = getEnvelopeDocumentPageDisplayUri;
|
|
2872
2866
|
exports.getEnvelopeFile = getEnvelopeFile;
|
|
2873
|
-
exports.getEnvelopeRecipients = getEnvelopeRecipients;
|
|
2874
2867
|
exports.getEnvelopeReminder = getEnvelopeReminder;
|
|
2875
2868
|
exports.getEnvelopes = getEnvelopes;
|
|
2876
2869
|
exports.getFieldAttachment = getFieldAttachment;
|