@verdocs/js-sdk 4.1.10 → 4.1.11
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 +9 -18
- package/dist/index.d.ts +9 -18
- package/dist/index.js +10 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -20
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1776,19 +1776,8 @@ const updateOrganizationMember = (endpoint, profileId, params) => endpoint.api /
|
|
|
1776
1776
|
* @module
|
|
1777
1777
|
*/
|
|
1778
1778
|
/**
|
|
1779
|
-
* Get
|
|
1780
|
-
*
|
|
1781
|
-
* ```typescript
|
|
1782
|
-
* import {getOrganizations} from '@verdocs/js-sdk';
|
|
1783
|
-
*
|
|
1784
|
-
* const organizations = await getOrganizations(VerdocsEndpoint.getDefault());
|
|
1785
|
-
* ```
|
|
1786
|
-
*/
|
|
1787
|
-
const getOrganizations = (endpoint) => endpoint.api //
|
|
1788
|
-
.get('/v2/organizations')
|
|
1789
|
-
.then((r) => r.data);
|
|
1790
|
-
/**
|
|
1791
|
-
* Get an organization by ID.
|
|
1779
|
+
* Get an organization by ID. Note that this endpoint will return only a subset of fields
|
|
1780
|
+
* if the caller is not a member of the organization (the public fields).
|
|
1792
1781
|
*
|
|
1793
1782
|
* ```typescript
|
|
1794
1783
|
* import {getOrganization} from '@verdocs/js-sdk';
|
|
@@ -1815,12 +1804,12 @@ const updateOrganization = (endpoint, organizationId, params) => endpoint.api //
|
|
|
1815
1804
|
* Update the organization's logo. This can only be called by an admin or owner.
|
|
1816
1805
|
*
|
|
1817
1806
|
* ```typescript
|
|
1818
|
-
* import {
|
|
1807
|
+
* import {updateOrganizationLogo} from '@verdocs/js-sdk';
|
|
1819
1808
|
*
|
|
1820
|
-
* await
|
|
1809
|
+
* await updateOrganizationLogo((VerdocsEndpoint.getDefault(), organizationId, file);
|
|
1821
1810
|
* ```
|
|
1822
1811
|
*/
|
|
1823
|
-
const
|
|
1812
|
+
const updateOrganizationLogo = (endpoint, organizationId, file, onUploadProgress) => {
|
|
1824
1813
|
const formData = new FormData();
|
|
1825
1814
|
formData.append('logo', file, file.name);
|
|
1826
1815
|
return endpoint.api //
|
|
@@ -1838,12 +1827,12 @@ const uploadOrganizationLogo = (endpoint, organizationId, file, onUploadProgress
|
|
|
1838
1827
|
* Update the organization's thumbnail. This can only be called by an admin or owner.
|
|
1839
1828
|
*
|
|
1840
1829
|
* ```typescript
|
|
1841
|
-
* import {
|
|
1830
|
+
* import {updateOrganizationThumbnail} from '@verdocs/js-sdk';
|
|
1842
1831
|
*
|
|
1843
|
-
* await
|
|
1832
|
+
* await updateOrganizationThumbnail((VerdocsEndpoint.getDefault(), organizationId, file);
|
|
1844
1833
|
* ```
|
|
1845
1834
|
*/
|
|
1846
|
-
const
|
|
1835
|
+
const updateOrganizationThumbnail = (endpoint, organizationId, file, onUploadProgress) => {
|
|
1847
1836
|
const formData = new FormData();
|
|
1848
1837
|
formData.append('thumbnail', file, file.name);
|
|
1849
1838
|
return endpoint.api //
|
|
@@ -2782,5 +2771,5 @@ const updateProfilePhoto = (endpoint, profileId, file, onUploadProgress) => {
|
|
|
2782
2771
|
.then((r) => r.data);
|
|
2783
2772
|
};
|
|
2784
2773
|
|
|
2785
|
-
export { AtoB, Countries, 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, createTemplatev2, 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, getEnvelopesByTemplateId, getEnvelopesSummary, getFieldAttachment, getFieldsForRole, getGroup, getGroups, getInPersonLink, getKbaStatus, getMatchingCountry, getNextRecipient, getNotifications, getOrganization, getOrganizationInvitation, getOrganizationInvitations, getOrganizationMembers,
|
|
2774
|
+
export { AtoB, Countries, 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, createTemplatev2, 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, getEnvelopesByTemplateId, getEnvelopesSummary, getFieldAttachment, getFieldsForRole, getGroup, getGroups, getInPersonLink, getKbaStatus, getMatchingCountry, getNextRecipient, getNotifications, getOrganization, getOrganizationInvitation, getOrganizationInvitations, getOrganizationMembers, getPlusOneCountry, getProfile, getProfiles, getRGB, getRGBA, getRLeft, getRTop, getRValue, getRecipientsWithActions, getRoleColor, getSignature, getSignatures, getSignerToken, getSigningSession, getStars, getTag, getTemplate, getTemplateDocument, getTemplateDocumentFile, getTemplateDocumentPageDisplayUri, getTemplateDocumentThumbnail, getTemplateDocuments, getTemplateOwnerInfo, getTemplateReminder, getTemplateRole, getTemplateRoleFields, getTemplateRoles, getTemplateTags, getTemplates, getTemplatesSummary, getValidator, getValidators, getWebhooks, hasRequiredPermissions, integerSequence, isAmericanSamoa, isCanada, isDominicanRepublic, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, isPuertoRico, isValidEmail, isValidPhone, isValidRoleName, isValidTag, listEnvelopes, listTemplates, nameToRGBA, recipientCanAct, recipientHasAction, refreshToken, rescale, resendInvitation, resendOrganizationInvitation, resendVerification, resetPassword, rotateApiKey, searchEnvelopes, searchTemplates, sendDelegate, setWebhooks, submitKbaChallengeResponse, submitKbaIdentity, submitKbaPin, switchProfile, throttledGetEnvelope, throttledGetTemplate, timePeriod, 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 };
|
|
2786
2775
|
//# sourceMappingURL=index.mjs.map
|