@verdocs/js-sdk 4.2.36 → 4.2.37
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 +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -32
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ const FIELD_TYPES = [
|
|
|
7
7
|
'date',
|
|
8
8
|
'dropdown',
|
|
9
9
|
'timestamp',
|
|
10
|
+
/** @deprecated. Use `textbox` with multiLine set to > 1 */
|
|
10
11
|
'textarea',
|
|
11
12
|
'checkbox',
|
|
12
13
|
'radio',
|
|
@@ -43,37 +44,6 @@ const DEFAULT_FIELD_HEIGHTS = {
|
|
|
43
44
|
attachment: 24,
|
|
44
45
|
payment: 24,
|
|
45
46
|
};
|
|
46
|
-
const DEFAULT_FIELD_SETTINGS = {
|
|
47
|
-
signature: { result: '' },
|
|
48
|
-
initial: { result: '' },
|
|
49
|
-
date: { width: 75, height: 15, result: '' },
|
|
50
|
-
timestamp: { width: 130, height: 15 },
|
|
51
|
-
textbox: { width: 150, height: 15, result: '', leading: 0, alignment: 0, upperCase: false },
|
|
52
|
-
textarea: { width: 150, height: 15, result: '', leading: 16, alignment: 0, upperCase: false },
|
|
53
|
-
checkbox: {},
|
|
54
|
-
checkbox_group: {
|
|
55
|
-
minimum_checked: 0,
|
|
56
|
-
maximum_checked: 1000,
|
|
57
|
-
options: [
|
|
58
|
-
// { id: `${field.name}-1`, value: 'Option 1', checked: false, x, y },
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
radio_button_group: {
|
|
62
|
-
options: [
|
|
63
|
-
// { id: `${field.name}-1`, value: 'Option 1', selected: false, x, y }
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
radio: {},
|
|
67
|
-
dropdown: {
|
|
68
|
-
width: 85,
|
|
69
|
-
height: 20,
|
|
70
|
-
value: null,
|
|
71
|
-
placeholder: 'Choose',
|
|
72
|
-
options: [{ id: 'option-1', value: 'Option 1' }],
|
|
73
|
-
},
|
|
74
|
-
attachment: {},
|
|
75
|
-
payment: {},
|
|
76
|
-
};
|
|
77
47
|
|
|
78
48
|
/**
|
|
79
49
|
* Given a `rgba(r,g,b,a)` string value, returns the hex equivalent, dropping the alpha channel.
|
|
@@ -2853,5 +2823,5 @@ const isValidRoleName = (value, roles) => roles.findIndex((role) => role.name ==
|
|
|
2853
2823
|
const TagRegEx = /^[a-zA-Z0-9-]{0,32}$/;
|
|
2854
2824
|
const isValidTag = (value, tags) => TagRegEx.test(value) || tags.findIndex((tag) => tag === value) !== -1;
|
|
2855
2825
|
|
|
2856
|
-
export { AtoB, Countries, DEFAULT_FIELD_HEIGHTS,
|
|
2826
|
+
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, getEnvelopeRecipients, getEnvelopeReminder, getEnvelopes, getEnvelopesSummary, 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 };
|
|
2857
2827
|
//# sourceMappingURL=index.mjs.map
|