@verdocs/js-sdk 4.2.36 → 4.2.38
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 +18 -5
- package/dist/index.d.ts +18 -5
- package/dist/index.js +1 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -36
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -501,12 +501,16 @@ interface IEnvelopeDocument {
|
|
|
501
501
|
template_document?: ITemplateDocument | null;
|
|
502
502
|
fields?: IEnvelopeField[];
|
|
503
503
|
}
|
|
504
|
+
interface IDropdownOption {
|
|
505
|
+
label: string;
|
|
506
|
+
value: string;
|
|
507
|
+
}
|
|
504
508
|
interface IEnvelopeField {
|
|
505
509
|
/** The ID of the envelope the field is for. */
|
|
506
510
|
envelope_id: string;
|
|
507
511
|
/** The ID of the document the field is for. */
|
|
508
512
|
document_id: string;
|
|
509
|
-
/** The machine name of the field, e.g. `
|
|
513
|
+
/** The machine name of the field, e.g. `Buyer-textbox-1` */
|
|
510
514
|
name: string;
|
|
511
515
|
/** The ID of the role in the recipients list, e.g. `Recipient 2` */
|
|
512
516
|
recipient_role: string;
|
|
@@ -514,6 +518,7 @@ interface IEnvelopeField {
|
|
|
514
518
|
type: TFieldType;
|
|
515
519
|
/** If true, the field will be required */
|
|
516
520
|
required: boolean | null;
|
|
521
|
+
/** @deprecated. Use top-level fields instead. */
|
|
517
522
|
settings: IEnvelopeFieldSettings | null;
|
|
518
523
|
validator: string | null;
|
|
519
524
|
/** If set, the placeholder/label for the field. */
|
|
@@ -534,8 +539,12 @@ interface IEnvelopeField {
|
|
|
534
539
|
default: string | null;
|
|
535
540
|
/** The placeholder to show in the field. */
|
|
536
541
|
placeholder: string | null;
|
|
542
|
+
/** For text boxes, allows more than one line of text to be entered. */
|
|
543
|
+
multiline: boolean;
|
|
537
544
|
/** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
|
|
538
545
|
group: string | null;
|
|
546
|
+
/** For dropdowns, the options that are selectable. */
|
|
547
|
+
options: IDropdownOption[] | null;
|
|
539
548
|
value: string | null;
|
|
540
549
|
is_valid: boolean;
|
|
541
550
|
envelope?: IEnvelope;
|
|
@@ -819,7 +828,7 @@ interface ITemplateDocument {
|
|
|
819
828
|
template?: ITemplate;
|
|
820
829
|
}
|
|
821
830
|
interface ITemplateField {
|
|
822
|
-
/** The machine name of the field, e.g. `
|
|
831
|
+
/** The machine name of the field, e.g. `Buyer-textbox-1` */
|
|
823
832
|
name: string;
|
|
824
833
|
/** The ID of the role in the recipients list, e.g. `Recipient 2` */
|
|
825
834
|
role_name: string;
|
|
@@ -829,6 +838,7 @@ interface ITemplateField {
|
|
|
829
838
|
document_id: string;
|
|
830
839
|
type: TFieldType;
|
|
831
840
|
required: boolean;
|
|
841
|
+
/** @deprecated. Use top-level fields instead. */
|
|
832
842
|
settings: ITemplateFieldSetting | null;
|
|
833
843
|
page: number;
|
|
834
844
|
validator: string | null;
|
|
@@ -845,8 +855,12 @@ interface ITemplateField {
|
|
|
845
855
|
default: string | null;
|
|
846
856
|
/** The placeholder to show in the field. */
|
|
847
857
|
placeholder: string | null;
|
|
858
|
+
/** For text boxes, allows more than one line of text to be entered. */
|
|
859
|
+
multiline: boolean;
|
|
848
860
|
/** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
|
|
849
861
|
group: string | null;
|
|
862
|
+
/** For dropdowns, the options that are selectable. */
|
|
863
|
+
options: IDropdownOption[] | null;
|
|
850
864
|
}
|
|
851
865
|
interface ITextFieldSetting {
|
|
852
866
|
x: number;
|
|
@@ -890,11 +904,10 @@ type THistoryEvent = "recipient:signed" | "recipient:opened" | "recipient:submit
|
|
|
890
904
|
type TEventDetail = "in_app" | "mail" | "signer" | "sms" | "reminder" | "preparer" | "manual" | "in_person_link" | "guest" | "email" | "" | string; // Modification events have a string description
|
|
891
905
|
// Modification events have a string description
|
|
892
906
|
type TEnvelopeUpdateResult = Omit<IEnvelope, "histories" | "recipients" | "certificate" | "document" | "fields" | "profile">;
|
|
893
|
-
type TFieldType = "signature" | "initial" | "
|
|
907
|
+
type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "timestamp" | "date" | "dropdown" | "textarea" | "attachment" | "payment";
|
|
894
908
|
declare const FIELD_TYPES: TFieldType[];
|
|
895
909
|
declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
|
|
896
910
|
declare const DEFAULT_FIELD_HEIGHTS: Record<TFieldType, number>;
|
|
897
|
-
declare const DEFAULT_FIELD_SETTINGS: Record<TFieldType, ITemplateFieldSetting>;
|
|
898
911
|
type TEnvironment = "verdocs" | "verdocs-stage";
|
|
899
912
|
type TSessionChangedListener = (endpoint: VerdocsEndpoint, session: TSession, profile: IProfile | null) => void;
|
|
900
913
|
interface VerdocsEndpointOptions {
|
|
@@ -2646,4 +2659,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
2646
2659
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
2647
2660
|
*/
|
|
2648
2661
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
2649
|
-
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS,
|
|
2662
|
+
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, getEnvelopesSummary, getEnvelopeRecipients, 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, IEnvelopesSummary, IDocumentSearchOptions, ICreateEnvelopeRole, IEnvelopeSummaries, IInPersonLinkResponse, IUpdateRecipientSubmitParams, IUpdateRecipientDeclineParams, IUpdateRecipientClaimEnvelope, IUpdateRecipientStatus, IUpdateRecipientAgreedParams, IUpdateRecipientNameParams, IUpdateRecipientPrepareParams, ICreateEnvelopeReminderRequest, ICreateEnvelopeRequest, 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
|
@@ -501,12 +501,16 @@ interface IEnvelopeDocument {
|
|
|
501
501
|
template_document?: ITemplateDocument | null;
|
|
502
502
|
fields?: IEnvelopeField[];
|
|
503
503
|
}
|
|
504
|
+
interface IDropdownOption {
|
|
505
|
+
label: string;
|
|
506
|
+
value: string;
|
|
507
|
+
}
|
|
504
508
|
interface IEnvelopeField {
|
|
505
509
|
/** The ID of the envelope the field is for. */
|
|
506
510
|
envelope_id: string;
|
|
507
511
|
/** The ID of the document the field is for. */
|
|
508
512
|
document_id: string;
|
|
509
|
-
/** The machine name of the field, e.g. `
|
|
513
|
+
/** The machine name of the field, e.g. `Buyer-textbox-1` */
|
|
510
514
|
name: string;
|
|
511
515
|
/** The ID of the role in the recipients list, e.g. `Recipient 2` */
|
|
512
516
|
recipient_role: string;
|
|
@@ -514,6 +518,7 @@ interface IEnvelopeField {
|
|
|
514
518
|
type: TFieldType;
|
|
515
519
|
/** If true, the field will be required */
|
|
516
520
|
required: boolean | null;
|
|
521
|
+
/** @deprecated. Use top-level fields instead. */
|
|
517
522
|
settings: IEnvelopeFieldSettings | null;
|
|
518
523
|
validator: string | null;
|
|
519
524
|
/** If set, the placeholder/label for the field. */
|
|
@@ -534,8 +539,12 @@ interface IEnvelopeField {
|
|
|
534
539
|
default: string | null;
|
|
535
540
|
/** The placeholder to show in the field. */
|
|
536
541
|
placeholder: string | null;
|
|
542
|
+
/** For text boxes, allows more than one line of text to be entered. */
|
|
543
|
+
multiline: boolean;
|
|
537
544
|
/** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
|
|
538
545
|
group: string | null;
|
|
546
|
+
/** For dropdowns, the options that are selectable. */
|
|
547
|
+
options: IDropdownOption[] | null;
|
|
539
548
|
value: string | null;
|
|
540
549
|
is_valid: boolean;
|
|
541
550
|
envelope?: IEnvelope;
|
|
@@ -819,7 +828,7 @@ interface ITemplateDocument {
|
|
|
819
828
|
template?: ITemplate;
|
|
820
829
|
}
|
|
821
830
|
interface ITemplateField {
|
|
822
|
-
/** The machine name of the field, e.g. `
|
|
831
|
+
/** The machine name of the field, e.g. `Buyer-textbox-1` */
|
|
823
832
|
name: string;
|
|
824
833
|
/** The ID of the role in the recipients list, e.g. `Recipient 2` */
|
|
825
834
|
role_name: string;
|
|
@@ -829,6 +838,7 @@ interface ITemplateField {
|
|
|
829
838
|
document_id: string;
|
|
830
839
|
type: TFieldType;
|
|
831
840
|
required: boolean;
|
|
841
|
+
/** @deprecated. Use top-level fields instead. */
|
|
832
842
|
settings: ITemplateFieldSetting | null;
|
|
833
843
|
page: number;
|
|
834
844
|
validator: string | null;
|
|
@@ -845,8 +855,12 @@ interface ITemplateField {
|
|
|
845
855
|
default: string | null;
|
|
846
856
|
/** The placeholder to show in the field. */
|
|
847
857
|
placeholder: string | null;
|
|
858
|
+
/** For text boxes, allows more than one line of text to be entered. */
|
|
859
|
+
multiline: boolean;
|
|
848
860
|
/** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
|
|
849
861
|
group: string | null;
|
|
862
|
+
/** For dropdowns, the options that are selectable. */
|
|
863
|
+
options: IDropdownOption[] | null;
|
|
850
864
|
}
|
|
851
865
|
interface ITextFieldSetting {
|
|
852
866
|
x: number;
|
|
@@ -890,11 +904,10 @@ type THistoryEvent = "recipient:signed" | "recipient:opened" | "recipient:submit
|
|
|
890
904
|
type TEventDetail = "in_app" | "mail" | "signer" | "sms" | "reminder" | "preparer" | "manual" | "in_person_link" | "guest" | "email" | "" | string; // Modification events have a string description
|
|
891
905
|
// Modification events have a string description
|
|
892
906
|
type TEnvelopeUpdateResult = Omit<IEnvelope, "histories" | "recipients" | "certificate" | "document" | "fields" | "profile">;
|
|
893
|
-
type TFieldType = "signature" | "initial" | "
|
|
907
|
+
type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "timestamp" | "date" | "dropdown" | "textarea" | "attachment" | "payment";
|
|
894
908
|
declare const FIELD_TYPES: TFieldType[];
|
|
895
909
|
declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
|
|
896
910
|
declare const DEFAULT_FIELD_HEIGHTS: Record<TFieldType, number>;
|
|
897
|
-
declare const DEFAULT_FIELD_SETTINGS: Record<TFieldType, ITemplateFieldSetting>;
|
|
898
911
|
type TEnvironment = "verdocs" | "verdocs-stage";
|
|
899
912
|
type TSessionChangedListener = (endpoint: VerdocsEndpoint, session: TSession, profile: IProfile | null) => void;
|
|
900
913
|
interface VerdocsEndpointOptions {
|
|
@@ -2646,4 +2659,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
2646
2659
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
2647
2660
|
*/
|
|
2648
2661
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
2649
|
-
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS,
|
|
2662
|
+
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, getEnvelopesSummary, getEnvelopeRecipients, 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, IEnvelopesSummary, IDocumentSearchOptions, ICreateEnvelopeRole, IEnvelopeSummaries, IInPersonLinkResponse, IUpdateRecipientSubmitParams, IUpdateRecipientDeclineParams, IUpdateRecipientClaimEnvelope, IUpdateRecipientStatus, IUpdateRecipientAgreedParams, IUpdateRecipientNameParams, IUpdateRecipientPrepareParams, ICreateEnvelopeReminderRequest, ICreateEnvelopeRequest, 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
|
@@ -9,6 +9,7 @@ const FIELD_TYPES = [
|
|
|
9
9
|
'date',
|
|
10
10
|
'dropdown',
|
|
11
11
|
'timestamp',
|
|
12
|
+
/** @deprecated. Use `textbox` with multiLine set to > 1 */
|
|
12
13
|
'textarea',
|
|
13
14
|
'checkbox',
|
|
14
15
|
'radio',
|
|
@@ -23,8 +24,6 @@ const DEFAULT_FIELD_WIDTHS = {
|
|
|
23
24
|
textbox: 150,
|
|
24
25
|
textarea: 150,
|
|
25
26
|
checkbox: 14,
|
|
26
|
-
checkbox_group: 14,
|
|
27
|
-
radio_button_group: 14,
|
|
28
27
|
radio: 14,
|
|
29
28
|
dropdown: 85,
|
|
30
29
|
attachment: 24,
|
|
@@ -38,44 +37,11 @@ const DEFAULT_FIELD_HEIGHTS = {
|
|
|
38
37
|
textbox: 15,
|
|
39
38
|
textarea: 41,
|
|
40
39
|
checkbox: 14,
|
|
41
|
-
checkbox_group: 14,
|
|
42
|
-
radio_button_group: 14,
|
|
43
40
|
radio: 14,
|
|
44
41
|
dropdown: 20,
|
|
45
42
|
attachment: 24,
|
|
46
43
|
payment: 24,
|
|
47
44
|
};
|
|
48
|
-
const DEFAULT_FIELD_SETTINGS = {
|
|
49
|
-
signature: { result: '' },
|
|
50
|
-
initial: { result: '' },
|
|
51
|
-
date: { width: 75, height: 15, result: '' },
|
|
52
|
-
timestamp: { width: 130, height: 15 },
|
|
53
|
-
textbox: { width: 150, height: 15, result: '', leading: 0, alignment: 0, upperCase: false },
|
|
54
|
-
textarea: { width: 150, height: 15, result: '', leading: 16, alignment: 0, upperCase: false },
|
|
55
|
-
checkbox: {},
|
|
56
|
-
checkbox_group: {
|
|
57
|
-
minimum_checked: 0,
|
|
58
|
-
maximum_checked: 1000,
|
|
59
|
-
options: [
|
|
60
|
-
// { id: `${field.name}-1`, value: 'Option 1', checked: false, x, y },
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
|
-
radio_button_group: {
|
|
64
|
-
options: [
|
|
65
|
-
// { id: `${field.name}-1`, value: 'Option 1', selected: false, x, y }
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
radio: {},
|
|
69
|
-
dropdown: {
|
|
70
|
-
width: 85,
|
|
71
|
-
height: 20,
|
|
72
|
-
value: null,
|
|
73
|
-
placeholder: 'Choose',
|
|
74
|
-
options: [{ id: 'option-1', value: 'Option 1' }],
|
|
75
|
-
},
|
|
76
|
-
attachment: {},
|
|
77
|
-
payment: {},
|
|
78
|
-
};
|
|
79
45
|
|
|
80
46
|
/**
|
|
81
47
|
* Given a `rgba(r,g,b,a)` string value, returns the hex equivalent, dropping the alpha channel.
|
|
@@ -2858,7 +2824,6 @@ const isValidTag = (value, tags) => TagRegEx.test(value) || tags.findIndex((tag)
|
|
|
2858
2824
|
exports.AtoB = AtoB;
|
|
2859
2825
|
exports.Countries = Countries;
|
|
2860
2826
|
exports.DEFAULT_FIELD_HEIGHTS = DEFAULT_FIELD_HEIGHTS;
|
|
2861
|
-
exports.DEFAULT_FIELD_SETTINGS = DEFAULT_FIELD_SETTINGS;
|
|
2862
2827
|
exports.DEFAULT_FIELD_WIDTHS = DEFAULT_FIELD_WIDTHS;
|
|
2863
2828
|
exports.FIELD_TYPES = FIELD_TYPES;
|
|
2864
2829
|
exports.RolePermissions = RolePermissions;
|