@verdocs/js-sdk 4.0.1 → 4.0.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 +1718 -39644
- package/dist/index.d.ts +1718 -39644
- package/dist/index.js +319 -556
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +127 -551
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70,13 +70,6 @@ const decodeAccessTokenBody = (token) => {
|
|
|
70
70
|
return decoded;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
var Token = /*#__PURE__*/Object.freeze({
|
|
74
|
-
__proto__: null,
|
|
75
|
-
AtoB: AtoB,
|
|
76
|
-
decodeAccessTokenBody: decodeAccessTokenBody,
|
|
77
|
-
decodeJWTBody: decodeJWTBody
|
|
78
|
-
});
|
|
79
|
-
|
|
80
73
|
function getDefaultExportFromCjs (x) {
|
|
81
74
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
82
75
|
}
|
|
@@ -493,7 +486,7 @@ const createEnvelope = async (endpoint, request) => endpoint.api //
|
|
|
493
486
|
* const {action_required, completed, waiting_on_others} = await Envelopes.getSummary(VerdocsEndpoint.getDefault());
|
|
494
487
|
* ```
|
|
495
488
|
*/
|
|
496
|
-
const
|
|
489
|
+
const getEnvelopesSummary = async (endpoint, page) => endpoint.api //
|
|
497
490
|
.post('/envelopes/summary', { page })
|
|
498
491
|
.then((r) => r.data);
|
|
499
492
|
/**
|
|
@@ -665,119 +658,20 @@ const listEnvelopes = (endpoint, params) => endpoint.api //
|
|
|
665
658
|
.post('/envelopes/list', params)
|
|
666
659
|
.then((r) => r.data);
|
|
667
660
|
|
|
668
|
-
var Envelopes = /*#__PURE__*/Object.freeze({
|
|
669
|
-
__proto__: null,
|
|
670
|
-
cancelEnvelope: cancelEnvelope,
|
|
671
|
-
createEnvelope: createEnvelope,
|
|
672
|
-
deleteEnvelopeFieldAttachment: deleteEnvelopeFieldAttachment,
|
|
673
|
-
getDocumentDownloadLink: getDocumentDownloadLink,
|
|
674
|
-
getDocumentPreviewLink: getDocumentPreviewLink,
|
|
675
|
-
getEnvelope: getEnvelope,
|
|
676
|
-
getEnvelopeDocument: getEnvelopeDocument,
|
|
677
|
-
getEnvelopeDocumentPageDisplayUri: getEnvelopeDocumentPageDisplayUri,
|
|
678
|
-
getEnvelopeFile: getEnvelopeFile,
|
|
679
|
-
getEnvelopeRecipients: getEnvelopeRecipients,
|
|
680
|
-
getFieldAttachment: getFieldAttachment,
|
|
681
|
-
getSigningSession: getSigningSession,
|
|
682
|
-
getSummary: getSummary$1,
|
|
683
|
-
listEnvelopes: listEnvelopes,
|
|
684
|
-
searchEnvelopes: searchEnvelopes,
|
|
685
|
-
throttledGetEnvelope: throttledGetEnvelope,
|
|
686
|
-
updateEnvelopeField: updateEnvelopeField,
|
|
687
|
-
updateEnvelopeFieldInitials: updateEnvelopeFieldInitials,
|
|
688
|
-
updateEnvelopeFieldSignature: updateEnvelopeFieldSignature,
|
|
689
|
-
uploadEnvelopeFieldAttachment: uploadEnvelopeFieldAttachment
|
|
690
|
-
});
|
|
691
|
-
|
|
692
|
-
/**
|
|
693
|
-
* Various helpers to identify available operations for an envelope by a user.
|
|
694
|
-
*
|
|
695
|
-
* @module
|
|
696
|
-
*/
|
|
697
|
-
/**
|
|
698
|
-
* Check to see if the user owns the envelope.
|
|
699
|
-
*/
|
|
700
|
-
const userIsEnvelopeOwner = (session, envelope) => envelope.profile_id === session?.profile_id;
|
|
701
|
-
/**
|
|
702
|
-
* Check to see if the user owns the envelope.
|
|
703
|
-
*/
|
|
704
|
-
const userIsEnvelopeRecipient = (session, envelope) => envelope.profile_id === session?.profile_id;
|
|
705
|
-
/**
|
|
706
|
-
* Check to see if the envelope has pending actions.
|
|
707
|
-
*/
|
|
708
|
-
const envelopeIsActive = (envelope) => envelope.status !== 'complete' && envelope.status !== 'declined' && envelope.status !== 'canceled';
|
|
709
|
-
/**
|
|
710
|
-
* Check to see if the envelope has been completed.
|
|
711
|
-
*/
|
|
712
|
-
const envelopeIsComplete = (envelope) => envelope.status !== 'complete';
|
|
713
|
-
/**
|
|
714
|
-
* Check to see if the user owns the envelope.
|
|
715
|
-
*/
|
|
716
|
-
const userCanCancelEnvelope = (session, envelope) => userIsEnvelopeOwner(session, envelope) &&
|
|
717
|
-
envelope.status !== 'complete' &&
|
|
718
|
-
envelope.status !== 'declined' &&
|
|
719
|
-
envelope.status !== 'canceled';
|
|
720
|
-
/**
|
|
721
|
-
* Check to see if the user owns the envelope.
|
|
722
|
-
*/
|
|
723
|
-
const userCanFinishEnvelope = (session, envelope) => userIsEnvelopeOwner(session, envelope) &&
|
|
724
|
-
envelope.status !== 'complete' &&
|
|
725
|
-
envelope.status !== 'declined' &&
|
|
726
|
-
envelope.status !== 'canceled';
|
|
727
661
|
/**
|
|
728
|
-
*
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
* Returns the recipients who still have a pending action. Note that not all of these recipients may be able to act (yet).
|
|
733
|
-
*/
|
|
734
|
-
const getRecipientsWithActions = (envelope) => (envelope?.recipients || []).filter(recipientHasAction);
|
|
735
|
-
/**
|
|
736
|
-
* Returns true if the recipient can act.
|
|
737
|
-
*/
|
|
738
|
-
const recipientCanAct = (recipient, recipientsWithActions) => recipient.sequence === recipientsWithActions?.[0]?.sequence;
|
|
739
|
-
/**
|
|
740
|
-
* Returns true if the user can act.
|
|
741
|
-
*/
|
|
742
|
-
const userCanAct = (email, recipientsWithActions) => {
|
|
743
|
-
const recipient = recipientsWithActions.find((r) => r.email === email);
|
|
744
|
-
return recipient && recipient.sequence === recipientsWithActions?.[0]?.sequence;
|
|
745
|
-
};
|
|
746
|
-
/**
|
|
747
|
-
* Returns true if the user can act.
|
|
662
|
+
* Create an initials block. In a typical signing workflow, the user is asked at the beginning of the process to "adopt"
|
|
663
|
+
* an initials block to be used for all initials fields in the document. Thus, this is typically called one time to
|
|
664
|
+
* create and store an initials block. Thereafter, the ID of the initials block may be re-used for each initials field
|
|
665
|
+
* to be "stamped" by the user.
|
|
748
666
|
*/
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
return (myRecipient &&
|
|
756
|
-
envelopeIsActive(envelope) &&
|
|
757
|
-
userIsEnvelopeRecipient(session, envelope) &&
|
|
758
|
-
recipientCanAct(myRecipient, recipientsWithActions));
|
|
759
|
-
};
|
|
760
|
-
const getNextRecipient = (envelope) => {
|
|
761
|
-
const recipientsWithActions = getRecipientsWithActions(envelope);
|
|
762
|
-
return recipientsWithActions?.[0];
|
|
667
|
+
const createInitials = (endpoint, name, initials) => {
|
|
668
|
+
const data = new FormData();
|
|
669
|
+
data.append('initial', initials, name);
|
|
670
|
+
return endpoint.api //
|
|
671
|
+
.post(`/initials`, data)
|
|
672
|
+
.then((r) => r.data);
|
|
763
673
|
};
|
|
764
674
|
|
|
765
|
-
var Permissions = /*#__PURE__*/Object.freeze({
|
|
766
|
-
__proto__: null,
|
|
767
|
-
envelopeIsActive: envelopeIsActive,
|
|
768
|
-
envelopeIsComplete: envelopeIsComplete,
|
|
769
|
-
getNextRecipient: getNextRecipient,
|
|
770
|
-
getRecipientsWithActions: getRecipientsWithActions,
|
|
771
|
-
recipientCanAct: recipientCanAct,
|
|
772
|
-
recipientHasAction: recipientHasAction,
|
|
773
|
-
userCanAct: userCanAct,
|
|
774
|
-
userCanCancelEnvelope: userCanCancelEnvelope,
|
|
775
|
-
userCanFinishEnvelope: userCanFinishEnvelope,
|
|
776
|
-
userCanSignNow: userCanSignNow,
|
|
777
|
-
userIsEnvelopeOwner: userIsEnvelopeOwner,
|
|
778
|
-
userIsEnvelopeRecipient: userIsEnvelopeRecipient
|
|
779
|
-
});
|
|
780
|
-
|
|
781
675
|
/**
|
|
782
676
|
* Update a recipient's status block
|
|
783
677
|
*/
|
|
@@ -829,58 +723,108 @@ const sendDelegate = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
|
829
723
|
/**
|
|
830
724
|
* Resend a recipient's invitation.
|
|
831
725
|
*/
|
|
832
|
-
const resendInvitation
|
|
726
|
+
const resendInvitation = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
833
727
|
.post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}/resend_invitation`)
|
|
834
728
|
.then((r) => r.data);
|
|
835
729
|
|
|
836
|
-
var Recipients = /*#__PURE__*/Object.freeze({
|
|
837
|
-
__proto__: null,
|
|
838
|
-
envelopeRecipientAgree: envelopeRecipientAgree,
|
|
839
|
-
envelopeRecipientChangeOwner: envelopeRecipientChangeOwner,
|
|
840
|
-
envelopeRecipientDecline: envelopeRecipientDecline,
|
|
841
|
-
envelopeRecipientPrepare: envelopeRecipientPrepare,
|
|
842
|
-
envelopeRecipientSubmit: envelopeRecipientSubmit,
|
|
843
|
-
envelopeRecipientUpdateName: envelopeRecipientUpdateName,
|
|
844
|
-
getInPersonLink: getInPersonLink,
|
|
845
|
-
getSignerToken: getSignerToken,
|
|
846
|
-
resendInvitation: resendInvitation$1,
|
|
847
|
-
sendDelegate: sendDelegate,
|
|
848
|
-
updateRecipient: updateRecipient
|
|
849
|
-
});
|
|
850
|
-
|
|
851
730
|
/**
|
|
852
731
|
* Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
|
|
853
732
|
* should be sent. interval_time is the number of days between reminders.
|
|
854
733
|
*/
|
|
855
|
-
const
|
|
734
|
+
const createEnvelopeReminder = (endpoint, envelopeId, params) => endpoint.api //
|
|
856
735
|
.post(`/envelopes/${envelopeId}/reminder/`, params)
|
|
857
736
|
.then((r) => r.data);
|
|
858
737
|
/**
|
|
859
738
|
* Get the reminder configuration for an envelope.
|
|
860
739
|
*/
|
|
861
|
-
const
|
|
740
|
+
const getEnvelopeReminder = (endpoint, envelopeId, reminderId) => endpoint.api //
|
|
862
741
|
.get(`/envelopes/${envelopeId}/reminder/${reminderId}`)
|
|
863
742
|
.then((r) => r.data);
|
|
864
743
|
/**
|
|
865
744
|
* Update the reminder configuration for an envelope.
|
|
866
745
|
*/
|
|
867
|
-
const
|
|
746
|
+
const updateEnvelopeReminder = (endpoint, envelopeId, reminderId, params) => endpoint.api //
|
|
868
747
|
.put(`/envelopes/${envelopeId}/reminder/${reminderId}`, params)
|
|
869
748
|
.then((r) => r.data);
|
|
870
749
|
/**
|
|
871
750
|
* Delete the reminder configuration for an envelope.
|
|
872
751
|
*/
|
|
873
|
-
const
|
|
752
|
+
const deleteEnvelopeReminder = (endpoint, envelopeId, reminderId) => endpoint.api //
|
|
874
753
|
.delete(`/envelopes/${envelopeId}/reminder/${reminderId}`)
|
|
875
754
|
.then((r) => r.data);
|
|
876
755
|
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
756
|
+
/**
|
|
757
|
+
* Various helpers to identify available operations for an envelope by a user.
|
|
758
|
+
*
|
|
759
|
+
* @module
|
|
760
|
+
*/
|
|
761
|
+
/**
|
|
762
|
+
* Check to see if the user owns the envelope.
|
|
763
|
+
*/
|
|
764
|
+
const userIsEnvelopeOwner = (session, envelope) => envelope.profile_id === session?.profile_id;
|
|
765
|
+
/**
|
|
766
|
+
* Check to see if the user owns the envelope.
|
|
767
|
+
*/
|
|
768
|
+
const userIsEnvelopeRecipient = (session, envelope) => envelope.profile_id === session?.profile_id;
|
|
769
|
+
/**
|
|
770
|
+
* Check to see if the envelope has pending actions.
|
|
771
|
+
*/
|
|
772
|
+
const envelopeIsActive = (envelope) => envelope.status !== 'complete' && envelope.status !== 'declined' && envelope.status !== 'canceled';
|
|
773
|
+
/**
|
|
774
|
+
* Check to see if the envelope has been completed.
|
|
775
|
+
*/
|
|
776
|
+
const envelopeIsComplete = (envelope) => envelope.status !== 'complete';
|
|
777
|
+
/**
|
|
778
|
+
* Check to see if the user owns the envelope.
|
|
779
|
+
*/
|
|
780
|
+
const userCanCancelEnvelope = (session, envelope) => userIsEnvelopeOwner(session, envelope) &&
|
|
781
|
+
envelope.status !== 'complete' &&
|
|
782
|
+
envelope.status !== 'declined' &&
|
|
783
|
+
envelope.status !== 'canceled';
|
|
784
|
+
/**
|
|
785
|
+
* Check to see if the user owns the envelope.
|
|
786
|
+
*/
|
|
787
|
+
const userCanFinishEnvelope = (session, envelope) => userIsEnvelopeOwner(session, envelope) &&
|
|
788
|
+
envelope.status !== 'complete' &&
|
|
789
|
+
envelope.status !== 'declined' &&
|
|
790
|
+
envelope.status !== 'canceled';
|
|
791
|
+
/**
|
|
792
|
+
* Returns true if the recipient has a pending action. Note that this does not necessarily mean the recipient can act (yet).
|
|
793
|
+
*/
|
|
794
|
+
const recipientHasAction = (recipient) => !['submitted', 'canceled', 'declined'].includes(recipient.status);
|
|
795
|
+
/**
|
|
796
|
+
* Returns the recipients who still have a pending action. Note that not all of these recipients may be able to act (yet).
|
|
797
|
+
*/
|
|
798
|
+
const getRecipientsWithActions = (envelope) => (envelope?.recipients || []).filter(recipientHasAction);
|
|
799
|
+
/**
|
|
800
|
+
* Returns true if the recipient can act.
|
|
801
|
+
*/
|
|
802
|
+
const recipientCanAct = (recipient, recipientsWithActions) => recipient.sequence === recipientsWithActions?.[0]?.sequence;
|
|
803
|
+
/**
|
|
804
|
+
* Returns true if the user can act.
|
|
805
|
+
*/
|
|
806
|
+
const userCanAct = (email, recipientsWithActions) => {
|
|
807
|
+
const recipient = recipientsWithActions.find((r) => r.email === email);
|
|
808
|
+
return recipient && recipient.sequence === recipientsWithActions?.[0]?.sequence;
|
|
809
|
+
};
|
|
810
|
+
/**
|
|
811
|
+
* Returns true if the user can act.
|
|
812
|
+
*/
|
|
813
|
+
const userCanSignNow = (session, envelope) => {
|
|
814
|
+
if (!session) {
|
|
815
|
+
return false;
|
|
816
|
+
}
|
|
817
|
+
const recipientsWithActions = getRecipientsWithActions(envelope);
|
|
818
|
+
const myRecipient = recipientsWithActions.find((r) => r.profile_id === session?.profile_id || r.email === session?.email);
|
|
819
|
+
return (myRecipient &&
|
|
820
|
+
envelopeIsActive(envelope) &&
|
|
821
|
+
userIsEnvelopeRecipient(session, envelope) &&
|
|
822
|
+
recipientCanAct(myRecipient, recipientsWithActions));
|
|
823
|
+
};
|
|
824
|
+
const getNextRecipient = (envelope) => {
|
|
825
|
+
const recipientsWithActions = getRecipientsWithActions(envelope);
|
|
826
|
+
return recipientsWithActions?.[0];
|
|
827
|
+
};
|
|
884
828
|
|
|
885
829
|
/**
|
|
886
830
|
* Create a signature block. In a typical signing workflow, the user is asked at the beginning of the process to "adopt"
|
|
@@ -914,48 +858,6 @@ const deleteSignature = (endpoint, signatureId) => endpoint.api //
|
|
|
914
858
|
.delete(`/signatures/${signatureId}`)
|
|
915
859
|
.then((r) => r.data);
|
|
916
860
|
|
|
917
|
-
var Signatures = /*#__PURE__*/Object.freeze({
|
|
918
|
-
__proto__: null,
|
|
919
|
-
createSignature: createSignature,
|
|
920
|
-
deleteSignature: deleteSignature,
|
|
921
|
-
getSignature: getSignature,
|
|
922
|
-
getSignatures: getSignatures
|
|
923
|
-
});
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* Create an initials block. In a typical signing workflow, the user is asked at the beginning of the process to "adopt"
|
|
927
|
-
* an initials block to be used for all initials fields in the document. Thus, this is typically called one time to
|
|
928
|
-
* create and store an initials block. Thereafter, the ID of the initials block may be re-used for each initials field
|
|
929
|
-
* to be "stamped" by the user.
|
|
930
|
-
*/
|
|
931
|
-
const createInitials = (endpoint, name, initials) => {
|
|
932
|
-
const data = new FormData();
|
|
933
|
-
data.append('initial', initials, name);
|
|
934
|
-
return endpoint.api //
|
|
935
|
-
.post(`/initials`, data)
|
|
936
|
-
.then((r) => r.data);
|
|
937
|
-
};
|
|
938
|
-
|
|
939
|
-
var Initials = /*#__PURE__*/Object.freeze({
|
|
940
|
-
__proto__: null,
|
|
941
|
-
createInitials: createInitials
|
|
942
|
-
});
|
|
943
|
-
|
|
944
|
-
var Types$5 = /*#__PURE__*/Object.freeze({
|
|
945
|
-
__proto__: null
|
|
946
|
-
});
|
|
947
|
-
|
|
948
|
-
var index$5 = /*#__PURE__*/Object.freeze({
|
|
949
|
-
__proto__: null,
|
|
950
|
-
Envelopes: Envelopes,
|
|
951
|
-
Initials: Initials,
|
|
952
|
-
Permissions: Permissions,
|
|
953
|
-
Recipients: Recipients,
|
|
954
|
-
Reminders: Reminders$1,
|
|
955
|
-
Signatures: Signatures,
|
|
956
|
-
Types: Types$5
|
|
957
|
-
});
|
|
958
|
-
|
|
959
861
|
/**
|
|
960
862
|
* API keys are used to authenticate server-to-server calls. (API keys should **never** be used for client-to-server operations!)
|
|
961
863
|
* To generate a key, either use the Verdocs admin interface and make note of the client_id and client_secret generated, or call
|
|
@@ -977,7 +879,7 @@ var index$5 = /*#__PURE__*/Object.freeze({
|
|
|
977
879
|
* const keys = await ApiKeys.getKeys(ORGID);
|
|
978
880
|
* ```
|
|
979
881
|
*/
|
|
980
|
-
const
|
|
882
|
+
const getApiKeys = (endpoint, organizationId) => endpoint.api //
|
|
981
883
|
.get(`/organizations/${organizationId}/api_key`)
|
|
982
884
|
.then((r) => r.data);
|
|
983
885
|
/**
|
|
@@ -989,7 +891,7 @@ const getKeys = (endpoint, organizationId) => endpoint.api //
|
|
|
989
891
|
* await ApiKeys.createKey(ORGID, {name: NEWNAME});
|
|
990
892
|
* ```
|
|
991
893
|
*/
|
|
992
|
-
const
|
|
894
|
+
const createApiKey = (endpoint, organizationId, params) => endpoint.api //
|
|
993
895
|
.post(`/organizations/${organizationId}/api_key`, params)
|
|
994
896
|
.then((r) => r.data);
|
|
995
897
|
/**
|
|
@@ -1001,7 +903,7 @@ const createKey = (endpoint, organizationId, params) => endpoint.api //
|
|
|
1001
903
|
* const {client_secret: newSecret} = await ApiKeys.rotateKey(ORGID, CLIENTID);
|
|
1002
904
|
* ```
|
|
1003
905
|
*/
|
|
1004
|
-
const
|
|
906
|
+
const rotateApiKey = (endpoint, organizationId, clientId) => endpoint.api //
|
|
1005
907
|
.put(`/organizations/${organizationId}/api_key/${clientId}/rotate`)
|
|
1006
908
|
.then((r) => r.data);
|
|
1007
909
|
/**
|
|
@@ -1013,7 +915,7 @@ const rotateKey = (endpoint, organizationId, clientId) => endpoint.api //
|
|
|
1013
915
|
* await ApiKeys.updateKey(ORGID, CLIENTID, {name: NEWNAME});
|
|
1014
916
|
* ```
|
|
1015
917
|
*/
|
|
1016
|
-
const
|
|
918
|
+
const updateApiKey = (endpoint, organizationId, clientId, params) => endpoint.api //
|
|
1017
919
|
.patch(`/organizations/${organizationId}/api_key/${clientId}`, params)
|
|
1018
920
|
.then((r) => r.data);
|
|
1019
921
|
/**
|
|
@@ -1025,19 +927,10 @@ const updateKey = (endpoint, organizationId, clientId, params) => endpoint.api /
|
|
|
1025
927
|
* await ApiKeys.deleteKey(ORGID, CLIENTID);
|
|
1026
928
|
* ```
|
|
1027
929
|
*/
|
|
1028
|
-
const
|
|
930
|
+
const deleteApiKey = (endpoint, organizationId, clientId) => endpoint.api //
|
|
1029
931
|
.delete(`/organizations/${organizationId}/api_key/${clientId}`)
|
|
1030
932
|
.then((r) => r.data);
|
|
1031
933
|
|
|
1032
|
-
var ApiKeys = /*#__PURE__*/Object.freeze({
|
|
1033
|
-
__proto__: null,
|
|
1034
|
-
createKey: createKey,
|
|
1035
|
-
deleteKey: deleteKey,
|
|
1036
|
-
getKeys: getKeys,
|
|
1037
|
-
rotateKey: rotateKey,
|
|
1038
|
-
updateKey: updateKey
|
|
1039
|
-
});
|
|
1040
|
-
|
|
1041
934
|
/**
|
|
1042
935
|
* Organizations may contain "Groups" of user profiles, called Members. Groups may have permissions assigned that
|
|
1043
936
|
* apply to all Members, making it easy to configure role-based access control (RBAC) within an Organization. Note
|
|
@@ -1083,110 +976,76 @@ const getGroupByName = (endpoint, organizationId, name) => endpoint.api //
|
|
|
1083
976
|
const getGroup = (endpoint, organizationId, groupId) => endpoint.api //
|
|
1084
977
|
.get(`/organizations/${organizationId}/groups/${groupId}`)
|
|
1085
978
|
.then((r) => r.data);
|
|
1086
|
-
const
|
|
979
|
+
const getGroupMembers = (endpoint, organizationId, groupId) => endpoint.api //
|
|
1087
980
|
.get(`/organizations/${organizationId}/groups/${groupId}/members`)
|
|
1088
981
|
.then((r) => r.data);
|
|
1089
|
-
const
|
|
982
|
+
const addGroupMembers = (endpoint, organizationId, groupId, params) => endpoint.api //
|
|
1090
983
|
.post(`/organizations/${organizationId}/groups/${groupId}/members`, params)
|
|
1091
984
|
.then((r) => r.data);
|
|
1092
|
-
const
|
|
985
|
+
const deleteGroupMembers = (endpoint, organizationId, groupId, params) => endpoint.api //
|
|
1093
986
|
.put(`/organizations/${organizationId}/groups/${groupId}/delete_members`, params)
|
|
1094
987
|
.then((r) => r.data);
|
|
1095
|
-
const
|
|
1096
|
-
.post(`/organizations/${organizationId}/groups/${groupId}/permissions/${
|
|
988
|
+
const addGroupPermission = (endpoint, organizationId, groupId, permission) => endpoint.api //
|
|
989
|
+
.post(`/organizations/${organizationId}/groups/${groupId}/permissions/${permission}`, {})
|
|
1097
990
|
.then((r) => r.data);
|
|
1098
|
-
const
|
|
1099
|
-
.delete(`/organizations/${organizationId}/groups/${groupId}/permissions/${
|
|
991
|
+
const deleteGroupPermission = (endpoint, organizationId, groupId, permission) => endpoint.api //
|
|
992
|
+
.delete(`/organizations/${organizationId}/groups/${groupId}/permissions/${permission}`)
|
|
1100
993
|
.then((r) => r.data);
|
|
1101
994
|
|
|
1102
|
-
var Groups = /*#__PURE__*/Object.freeze({
|
|
1103
|
-
__proto__: null,
|
|
1104
|
-
addMembers: addMembers,
|
|
1105
|
-
addPermission: addPermission,
|
|
1106
|
-
deleteMembers: deleteMembers,
|
|
1107
|
-
deletePermission: deletePermission,
|
|
1108
|
-
getGroup: getGroup,
|
|
1109
|
-
getGroupByName: getGroupByName,
|
|
1110
|
-
getGroups: getGroups,
|
|
1111
|
-
getMembers: getMembers$1
|
|
1112
|
-
});
|
|
1113
|
-
|
|
1114
995
|
/**
|
|
1115
996
|
* An invitation represents an opportunity for a Member to join an Organization.
|
|
1116
997
|
*
|
|
1117
998
|
* @module
|
|
1118
999
|
*/
|
|
1119
|
-
const
|
|
1000
|
+
const getOrganizationInvitations = (endpoint, organizationId) => endpoint.api //
|
|
1120
1001
|
.get(`/organizations/${organizationId}/invitation`)
|
|
1121
1002
|
.then((r) => r.data);
|
|
1122
|
-
const
|
|
1003
|
+
const createOrganizationInvitation = (endpoint, organizationId, params) => endpoint.api //
|
|
1123
1004
|
.post(`/organizations/${organizationId}/invitation`, params)
|
|
1124
1005
|
.then((r) => r.data);
|
|
1125
|
-
const
|
|
1006
|
+
const deleteOrganizationInvitation = (endpoint, organizationId, email) => endpoint.api //
|
|
1126
1007
|
.delete(`/organizations/${organizationId}/invitation/${email}`)
|
|
1127
1008
|
.then((r) => r.data);
|
|
1128
|
-
const
|
|
1009
|
+
const updateOrganizationInvitation = (endpoint, organizationId, email, params) => endpoint.api //
|
|
1129
1010
|
.patch(`/organizations/${organizationId}/invitation/${email}`, params)
|
|
1130
1011
|
.then((r) => r.data);
|
|
1131
|
-
const
|
|
1012
|
+
const resendOrganizationInvitation = (endpoint, organizationId, email) => endpoint.api //
|
|
1132
1013
|
.post(`/organizations/${organizationId}/invitation/${email}/resend`)
|
|
1133
1014
|
.then((r) => r.data);
|
|
1134
|
-
const
|
|
1015
|
+
const getOrganizationInvitation = (endpoint, organizationId, email, token) => endpoint.api //
|
|
1135
1016
|
.get(`/organizations/${organizationId}/invitation/${email}/accept/${token}`)
|
|
1136
1017
|
.then((r) => r.data);
|
|
1137
|
-
const
|
|
1018
|
+
const acceptOrganizationInvitation = (endpoint, organizationId, email, token) => endpoint.api //
|
|
1138
1019
|
.post(`/organizations/${organizationId}/invitation/${email}/accept/${token}`)
|
|
1139
1020
|
.then((r) => r.data);
|
|
1140
|
-
const
|
|
1021
|
+
const declineOrganizationInvitation = (endpoint, organizationId, email, token) => endpoint.api //
|
|
1141
1022
|
.post(`/organizations/${organizationId}/invitation/${email}/decline/${token}`)
|
|
1142
1023
|
.then((r) => r.data);
|
|
1143
1024
|
const claimNewUser = (endpoint, organizationId, email, token) => endpoint.api //
|
|
1144
1025
|
.put(`/organizations/${organizationId}/invitation/${email}/token/${token}/new_user`)
|
|
1145
1026
|
.then((r) => r.data);
|
|
1146
1027
|
|
|
1147
|
-
var Invitations = /*#__PURE__*/Object.freeze({
|
|
1148
|
-
__proto__: null,
|
|
1149
|
-
acceptInvitation: acceptInvitation,
|
|
1150
|
-
claimNewUser: claimNewUser,
|
|
1151
|
-
createInvitation: createInvitation,
|
|
1152
|
-
declineInvitation: declineInvitation,
|
|
1153
|
-
deleteInvitation: deleteInvitation,
|
|
1154
|
-
getInvitation: getInvitation,
|
|
1155
|
-
getInvitations: getInvitations,
|
|
1156
|
-
resendInvitation: resendInvitation,
|
|
1157
|
-
updateInvitation: updateInvitation
|
|
1158
|
-
});
|
|
1159
|
-
|
|
1160
1028
|
/**
|
|
1161
1029
|
* An Organization Member (aka Profile) is an individual user with access to an organization.
|
|
1162
1030
|
*
|
|
1163
1031
|
* @module
|
|
1164
1032
|
*/
|
|
1165
|
-
const
|
|
1033
|
+
const getOrganizationMembers = (endpoint, organizationId) => endpoint.api //
|
|
1166
1034
|
.get(`/organizations/${organizationId}/profiles`)
|
|
1167
1035
|
.then((r) => r.data);
|
|
1168
|
-
const
|
|
1036
|
+
const deleteOrganizationMember = (endpoint, organizationId, profileId) => endpoint.api //
|
|
1169
1037
|
.delete(`/organizations/${organizationId}/profiles/${profileId}`)
|
|
1170
1038
|
.then((r) => r.data);
|
|
1171
|
-
const
|
|
1039
|
+
const addOrganizationMemberRole = (endpoint, organizationId, profileId, roleId) => endpoint.api //
|
|
1172
1040
|
.post(`/organizations/${organizationId}/profiles/${profileId}/role/${roleId}`)
|
|
1173
1041
|
.then((r) => r.data);
|
|
1174
|
-
const
|
|
1042
|
+
const deleteOrganizationMemberRole = (endpoint, organizationId, profileId, roleId) => endpoint.api //
|
|
1175
1043
|
.delete(`/organizations/${organizationId}/profiles/${profileId}/role/${roleId}`)
|
|
1176
1044
|
.then((r) => r.data);
|
|
1177
|
-
const
|
|
1045
|
+
const getOrganizationMemberPlans = (endpoint, organizationId, profileId) => endpoint.api //
|
|
1178
1046
|
.get(`/organizations/${organizationId}/profiles/${profileId}/plans`)
|
|
1179
1047
|
.then((r) => r.data);
|
|
1180
1048
|
|
|
1181
|
-
var Members = /*#__PURE__*/Object.freeze({
|
|
1182
|
-
__proto__: null,
|
|
1183
|
-
addMemberRole: addMemberRole,
|
|
1184
|
-
deleteMember: deleteMember,
|
|
1185
|
-
deleteMemberRole: deleteMemberRole,
|
|
1186
|
-
getMemberPlans: getMemberPlans,
|
|
1187
|
-
getMembers: getMembers
|
|
1188
|
-
});
|
|
1189
|
-
|
|
1190
1049
|
/**
|
|
1191
1050
|
* An Organization is the top level object for ownership for Members, Documents, and Templates.
|
|
1192
1051
|
*
|
|
@@ -1223,19 +1082,6 @@ const updateOrganization = (endpoint, organizationId, params) => endpoint.api //
|
|
|
1223
1082
|
.patch(`/organizations/${organizationId}`, params)
|
|
1224
1083
|
.then((r) => r.data);
|
|
1225
1084
|
|
|
1226
|
-
var Organizations = /*#__PURE__*/Object.freeze({
|
|
1227
|
-
__proto__: null,
|
|
1228
|
-
createOrganization: createOrganization,
|
|
1229
|
-
deleteOrganization: deleteOrganization,
|
|
1230
|
-
getOrganization: getOrganization,
|
|
1231
|
-
getOrganizations: getOrganizations,
|
|
1232
|
-
updateOrganization: updateOrganization
|
|
1233
|
-
});
|
|
1234
|
-
|
|
1235
|
-
var Types$4 = /*#__PURE__*/Object.freeze({
|
|
1236
|
-
__proto__: null
|
|
1237
|
-
});
|
|
1238
|
-
|
|
1239
1085
|
const getWebhooks = (endpoint) => endpoint.api //
|
|
1240
1086
|
.get(`/v2/webhooks/organization`)
|
|
1241
1087
|
.then((r) => r.data);
|
|
@@ -1243,47 +1089,11 @@ const setWebhooks = (endpoint, params) => endpoint.api //
|
|
|
1243
1089
|
.post(`/v2/webhooks/organization`, params)
|
|
1244
1090
|
.then((r) => r.data);
|
|
1245
1091
|
|
|
1246
|
-
var Webhooks = /*#__PURE__*/Object.freeze({
|
|
1247
|
-
__proto__: null,
|
|
1248
|
-
getWebhooks: getWebhooks,
|
|
1249
|
-
setWebhooks: setWebhooks
|
|
1250
|
-
});
|
|
1251
|
-
|
|
1252
|
-
/**
|
|
1253
|
-
* An Organization is a high-level container within Verdocs that groups together Templates, Documents, Profiles, Billing, and
|
|
1254
|
-
* other settings. A User may be a member of more than one Organization. Each membership is tracked by a Profile representing
|
|
1255
|
-
* that user's settings within that organization. It is important to select the correct Profile before performing operations
|
|
1256
|
-
* against the Verdocs API, as this also sets the Organization that will be operated on, and the user's permissions within it.
|
|
1257
|
-
*
|
|
1258
|
-
* @module
|
|
1259
|
-
*/
|
|
1260
|
-
|
|
1261
|
-
var index$4 = /*#__PURE__*/Object.freeze({
|
|
1262
|
-
__proto__: null,
|
|
1263
|
-
ApiKeys: ApiKeys,
|
|
1264
|
-
Groups: Groups,
|
|
1265
|
-
Invitations: Invitations,
|
|
1266
|
-
Members: Members,
|
|
1267
|
-
Organizations: Organizations,
|
|
1268
|
-
Types: Types$4,
|
|
1269
|
-
Webhooks: Webhooks
|
|
1270
|
-
});
|
|
1271
|
-
|
|
1272
|
-
var Types$3 = /*#__PURE__*/Object.freeze({
|
|
1273
|
-
__proto__: null
|
|
1274
|
-
});
|
|
1275
|
-
|
|
1276
1092
|
/**
|
|
1277
1093
|
* Confirm whether the user has all of the specified permissions.
|
|
1278
1094
|
*/
|
|
1279
1095
|
const userHasPermissions = (session, permissions) => permissions.every((perm) => (session?.permissions || []).includes(perm));
|
|
1280
1096
|
|
|
1281
|
-
var index$3 = /*#__PURE__*/Object.freeze({
|
|
1282
|
-
__proto__: null,
|
|
1283
|
-
Types: Types$3,
|
|
1284
|
-
userHasPermissions: userHasPermissions
|
|
1285
|
-
});
|
|
1286
|
-
|
|
1287
1097
|
const canPerformTemplateAction = (session, action, template) => {
|
|
1288
1098
|
if (!template && !action.includes('create')) {
|
|
1289
1099
|
return { canPerform: false, message: 'Missing required template object' };
|
|
@@ -1366,12 +1176,6 @@ const canPerformTemplateAction = (session, action, template) => {
|
|
|
1366
1176
|
};
|
|
1367
1177
|
const hasRequiredPermissions = (session, permissions) => permissions.every((perm) => (session?.permissions || []).includes(perm));
|
|
1368
1178
|
|
|
1369
|
-
var Actions = /*#__PURE__*/Object.freeze({
|
|
1370
|
-
__proto__: null,
|
|
1371
|
-
canPerformTemplateAction: canPerformTemplateAction,
|
|
1372
|
-
hasRequiredPermissions: hasRequiredPermissions
|
|
1373
|
-
});
|
|
1374
|
-
|
|
1375
1179
|
/**
|
|
1376
1180
|
* Add a field to a template.
|
|
1377
1181
|
*/
|
|
@@ -1391,47 +1195,32 @@ const deleteField = (endpoint, templateId, fieldName) => endpoint.api //
|
|
|
1391
1195
|
.delete(`/templates/${templateId}/fields/${fieldName}`)
|
|
1392
1196
|
.then((r) => r.data);
|
|
1393
1197
|
|
|
1394
|
-
var Fields$1 = /*#__PURE__*/Object.freeze({
|
|
1395
|
-
__proto__: null,
|
|
1396
|
-
createField: createField,
|
|
1397
|
-
deleteField: deleteField,
|
|
1398
|
-
updateField: updateField
|
|
1399
|
-
});
|
|
1400
|
-
|
|
1401
1198
|
/**
|
|
1402
1199
|
* Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
|
|
1403
1200
|
* should be sent. interval_time is the number of days between reminders.
|
|
1404
1201
|
*/
|
|
1405
|
-
const
|
|
1202
|
+
const createTemplateReminder = (endpoint, templateId, params) => endpoint.api //
|
|
1406
1203
|
.post(`/templates/${templateId}/reminder/`, params)
|
|
1407
1204
|
.then((r) => r.data);
|
|
1408
1205
|
/**
|
|
1409
1206
|
* Get the reminder configuration for a template.
|
|
1410
1207
|
*/
|
|
1411
|
-
const
|
|
1208
|
+
const getTemplateReminder = (endpoint, templateId, reminderId) => endpoint.api //
|
|
1412
1209
|
.get(`/templates/${templateId}/reminder/${reminderId}`)
|
|
1413
1210
|
.then((r) => r.data);
|
|
1414
1211
|
/**
|
|
1415
1212
|
* Update the reminder configuration for a template.
|
|
1416
1213
|
*/
|
|
1417
|
-
const
|
|
1214
|
+
const updateTemplateReminder = (endpoint, templateId, reminderId, params) => endpoint.api //
|
|
1418
1215
|
.put(`/templates/${templateId}/reminder/${reminderId}`, params)
|
|
1419
1216
|
.then((r) => r.data);
|
|
1420
1217
|
/**
|
|
1421
1218
|
* Delete the reminder configuration for a template.
|
|
1422
1219
|
*/
|
|
1423
|
-
const
|
|
1220
|
+
const deleteTemplateReminder = (endpoint, templateId, reminderId) => endpoint.api //
|
|
1424
1221
|
.delete(`/templates/${templateId}/reminder/${reminderId}`)
|
|
1425
1222
|
.then((r) => r.data);
|
|
1426
1223
|
|
|
1427
|
-
var Reminders = /*#__PURE__*/Object.freeze({
|
|
1428
|
-
__proto__: null,
|
|
1429
|
-
createReminder: createReminder,
|
|
1430
|
-
deleteReminder: deleteReminder,
|
|
1431
|
-
getReminder: getReminder,
|
|
1432
|
-
updateReminder: updateReminder
|
|
1433
|
-
});
|
|
1434
|
-
|
|
1435
1224
|
/**
|
|
1436
1225
|
* A "role" is an individual participant in a signing flow, such as a signer or CC contact. Roles are identified by
|
|
1437
1226
|
* their names, which must be unique (e.g. 'Recipient 1'). Template fields are assigned to roles for signing operations,
|
|
@@ -1439,38 +1228,24 @@ var Reminders = /*#__PURE__*/Object.freeze({
|
|
|
1439
1228
|
*
|
|
1440
1229
|
* @module
|
|
1441
1230
|
*/
|
|
1442
|
-
const
|
|
1231
|
+
const createTemplateRole = (endpoint, templateId, params) => endpoint.api //
|
|
1443
1232
|
.post(`/templates/${templateId}/roles`, params)
|
|
1444
1233
|
.then((r) => r.data);
|
|
1445
|
-
const
|
|
1234
|
+
const getTemplateRoles = (endpoint, templateId) => endpoint.api //
|
|
1446
1235
|
.get(`/templates/${templateId}/roles`)
|
|
1447
1236
|
.then((r) => r.data);
|
|
1448
|
-
const
|
|
1237
|
+
const getTemplateRole = (endpoint, templateId, roleName) => endpoint.api //
|
|
1449
1238
|
.get(`/templates/${templateId}/roles/${roleName}`)
|
|
1450
1239
|
.then((r) => r.data);
|
|
1451
|
-
const
|
|
1240
|
+
const updateTemplateRole = (endpoint, templateId, roleName, params) => endpoint.api //
|
|
1452
1241
|
.put(`/templates/${templateId}/roles/${roleName}`, params)
|
|
1453
1242
|
.then((r) => r.data);
|
|
1454
|
-
const
|
|
1243
|
+
const deleteTemplateRole = (endpoint, templateId, roleName) => endpoint.api //
|
|
1455
1244
|
.delete(`/templates/${templateId}/roles/${roleName}`)
|
|
1456
1245
|
.then((r) => r.data);
|
|
1457
|
-
const
|
|
1246
|
+
const getTemplateRoleFields = (endpoint, templateId, roleName) => endpoint.api //
|
|
1458
1247
|
.get(`/templates/${templateId}/roles/${roleName}/fields`)
|
|
1459
1248
|
.then((r) => r.data);
|
|
1460
|
-
const deleteSequence = (endpoint, templateId) => endpoint.api //
|
|
1461
|
-
.delete(`/templates/${templateId}/roles`)
|
|
1462
|
-
.then((r) => r.data);
|
|
1463
|
-
|
|
1464
|
-
var Roles = /*#__PURE__*/Object.freeze({
|
|
1465
|
-
__proto__: null,
|
|
1466
|
-
createRole: createRole,
|
|
1467
|
-
deleteRole: deleteRole,
|
|
1468
|
-
deleteSequence: deleteSequence,
|
|
1469
|
-
getRole: getRole,
|
|
1470
|
-
getRoleFields: getRoleFields,
|
|
1471
|
-
getRoles: getRoles$1,
|
|
1472
|
-
updateRole: updateRole
|
|
1473
|
-
});
|
|
1474
1249
|
|
|
1475
1250
|
/**
|
|
1476
1251
|
* Get the template stars for a template.
|
|
@@ -1485,12 +1260,6 @@ const toggleStar = (endpoint, templateId) => endpoint.api //
|
|
|
1485
1260
|
.post(`/templates/${templateId}/stars/toggle`)
|
|
1486
1261
|
.then((r) => r.data);
|
|
1487
1262
|
|
|
1488
|
-
var Stars = /*#__PURE__*/Object.freeze({
|
|
1489
|
-
__proto__: null,
|
|
1490
|
-
getStars: getStars,
|
|
1491
|
-
toggleStar: toggleStar
|
|
1492
|
-
});
|
|
1493
|
-
|
|
1494
1263
|
/**
|
|
1495
1264
|
* A Tag is a user-specified label applied to a template. Tags help users organize and find Templates.
|
|
1496
1265
|
* recipients. Every Organization has a set of tags "owned" by that Organization and only visible inside it.
|
|
@@ -1535,16 +1304,6 @@ const getAllTags = (endpoint) => endpoint.api //
|
|
|
1535
1304
|
.get('/tags')
|
|
1536
1305
|
.then((r) => r.data);
|
|
1537
1306
|
|
|
1538
|
-
var Tags = /*#__PURE__*/Object.freeze({
|
|
1539
|
-
__proto__: null,
|
|
1540
|
-
addTemplateTag: addTemplateTag,
|
|
1541
|
-
createTag: createTag,
|
|
1542
|
-
deleteTemplateTag: deleteTemplateTag,
|
|
1543
|
-
getAllTags: getAllTags,
|
|
1544
|
-
getTag: getTag,
|
|
1545
|
-
getTemplateTags: getTemplateTags
|
|
1546
|
-
});
|
|
1547
|
-
|
|
1548
1307
|
/**
|
|
1549
1308
|
* A Template defines how a Verdocs signing flow will be performed, including attachments, signing fields, and
|
|
1550
1309
|
* recipients.
|
|
@@ -1752,7 +1511,7 @@ const searchTemplates = async (endpoint, params) => endpoint.api //
|
|
|
1752
1511
|
* const summary = await Templates.getSummary((VerdocsEndpoint.getDefault(), 0);
|
|
1753
1512
|
* ```
|
|
1754
1513
|
*/
|
|
1755
|
-
const
|
|
1514
|
+
const getTemplatesSummary = async (endpoint, params = {}) => endpoint.api //
|
|
1756
1515
|
.post('/templates/summary', params)
|
|
1757
1516
|
.then((r) => r.data);
|
|
1758
1517
|
const cachedTemplates = {};
|
|
@@ -1782,22 +1541,6 @@ const listTemplates = async (endpoint, params = {}) => endpoint.api //
|
|
|
1782
1541
|
.post('/templates/list', params)
|
|
1783
1542
|
.then((r) => r.data);
|
|
1784
1543
|
|
|
1785
|
-
var Templates = /*#__PURE__*/Object.freeze({
|
|
1786
|
-
__proto__: null,
|
|
1787
|
-
createTemplate: createTemplate,
|
|
1788
|
-
createTemplateFromSharepoint: createTemplateFromSharepoint,
|
|
1789
|
-
createTemplatev2: createTemplatev2,
|
|
1790
|
-
deleteTemplate: deleteTemplate,
|
|
1791
|
-
getSummary: getSummary,
|
|
1792
|
-
getTemplate: getTemplate,
|
|
1793
|
-
getTemplateOwnerInfo: getTemplateOwnerInfo,
|
|
1794
|
-
getTemplates: getTemplates,
|
|
1795
|
-
listTemplates: listTemplates,
|
|
1796
|
-
searchTemplates: searchTemplates,
|
|
1797
|
-
throttledGetTemplate: throttledGetTemplate,
|
|
1798
|
-
updateTemplate: updateTemplate
|
|
1799
|
-
});
|
|
1800
|
-
|
|
1801
1544
|
/**
|
|
1802
1545
|
* A TemplateDocument represents a PDF or other attachment in a Template.
|
|
1803
1546
|
*
|
|
@@ -1886,21 +1629,6 @@ const getTemplateDocumentThumbnail = async (endpoint, templateId, documentId) =>
|
|
|
1886
1629
|
*/
|
|
1887
1630
|
const getTemplateDocumentPageDisplayUri = async (endpoint, templateId, documentId, page) => endpoint.api.get(`/templates/${templateId}/documents/${documentId}/pages/${page}/image`).then((r) => r.data);
|
|
1888
1631
|
|
|
1889
|
-
var TemplateDocuments = /*#__PURE__*/Object.freeze({
|
|
1890
|
-
__proto__: null,
|
|
1891
|
-
createTemplateDocument: createTemplateDocument,
|
|
1892
|
-
deleteTemplateDocument: deleteTemplateDocument,
|
|
1893
|
-
getTemplateDocument: getTemplateDocument,
|
|
1894
|
-
getTemplateDocumentFile: getTemplateDocumentFile,
|
|
1895
|
-
getTemplateDocumentPageDisplayUri: getTemplateDocumentPageDisplayUri,
|
|
1896
|
-
getTemplateDocumentThumbnail: getTemplateDocumentThumbnail,
|
|
1897
|
-
getTemplateDocuments: getTemplateDocuments
|
|
1898
|
-
});
|
|
1899
|
-
|
|
1900
|
-
var Types$2 = /*#__PURE__*/Object.freeze({
|
|
1901
|
-
__proto__: null
|
|
1902
|
-
});
|
|
1903
|
-
|
|
1904
1632
|
/**
|
|
1905
1633
|
* Get all defined validators
|
|
1906
1634
|
*
|
|
@@ -1925,30 +1653,6 @@ const isValidRoleName = (value, roles) => roles.findIndex((role) => role.name ==
|
|
|
1925
1653
|
const TagRegEx = /^[a-zA-Z0-9-]{0,32}$/;
|
|
1926
1654
|
const isValidTag = (value, tags) => TagRegEx.test(value) || tags.findIndex((tag) => tag === value) !== -1;
|
|
1927
1655
|
|
|
1928
|
-
var Validators = /*#__PURE__*/Object.freeze({
|
|
1929
|
-
__proto__: null,
|
|
1930
|
-
getValidator: getValidator,
|
|
1931
|
-
getValidators: getValidators,
|
|
1932
|
-
isValidEmail: isValidEmail,
|
|
1933
|
-
isValidPhone: isValidPhone,
|
|
1934
|
-
isValidRoleName: isValidRoleName,
|
|
1935
|
-
isValidTag: isValidTag
|
|
1936
|
-
});
|
|
1937
|
-
|
|
1938
|
-
var index$2 = /*#__PURE__*/Object.freeze({
|
|
1939
|
-
__proto__: null,
|
|
1940
|
-
Actions: Actions,
|
|
1941
|
-
Fields: Fields$1,
|
|
1942
|
-
Reminders: Reminders,
|
|
1943
|
-
Roles: Roles,
|
|
1944
|
-
Stars: Stars,
|
|
1945
|
-
Tags: Tags,
|
|
1946
|
-
TemplateDocuments: TemplateDocuments,
|
|
1947
|
-
Templates: Templates,
|
|
1948
|
-
Types: Types$2,
|
|
1949
|
-
Validators: Validators
|
|
1950
|
-
});
|
|
1951
|
-
|
|
1952
1656
|
/**
|
|
1953
1657
|
* Authenticate to Verdocs via user/password authentication
|
|
1954
1658
|
*
|
|
@@ -2074,36 +1778,13 @@ const createUser = (endpoint, params) => endpoint.api //
|
|
|
2074
1778
|
.post('/user', params)
|
|
2075
1779
|
.then((r) => r.data);
|
|
2076
1780
|
|
|
2077
|
-
var Auth = /*#__PURE__*/Object.freeze({
|
|
2078
|
-
__proto__: null,
|
|
2079
|
-
authenticateApp: authenticateApp,
|
|
2080
|
-
authenticateUser: authenticateUser,
|
|
2081
|
-
createUser: createUser,
|
|
2082
|
-
refreshTokens: refreshTokens,
|
|
2083
|
-
resendVerification: resendVerification,
|
|
2084
|
-
resetPassword: resetPassword,
|
|
2085
|
-
updateEmail: updateEmail,
|
|
2086
|
-
updatePassword: updatePassword,
|
|
2087
|
-
validateToken: validateToken
|
|
2088
|
-
});
|
|
2089
|
-
|
|
2090
1781
|
// TODO
|
|
2091
1782
|
const billingPlaceholder = {};
|
|
2092
1783
|
|
|
2093
|
-
var Billing = /*#__PURE__*/Object.freeze({
|
|
2094
|
-
__proto__: null,
|
|
2095
|
-
billingPlaceholder: billingPlaceholder
|
|
2096
|
-
});
|
|
2097
|
-
|
|
2098
1784
|
const getNotifications = async (endpoint) => endpoint.api //
|
|
2099
1785
|
.get('/notifications')
|
|
2100
1786
|
.then((r) => r.data);
|
|
2101
1787
|
|
|
2102
|
-
var Notifications = /*#__PURE__*/Object.freeze({
|
|
2103
|
-
__proto__: null,
|
|
2104
|
-
getNotifications: getNotifications
|
|
2105
|
-
});
|
|
2106
|
-
|
|
2107
1788
|
/**
|
|
2108
1789
|
* Get the user's available profiles. The current profile will be marked with `current: true`.
|
|
2109
1790
|
*
|
|
@@ -2258,37 +1939,6 @@ const recordSignupSurvey = (endpoint, params) => endpoint.api //
|
|
|
2258
1939
|
.post('/user/signup', params)
|
|
2259
1940
|
.then((r) => r.data);
|
|
2260
1941
|
|
|
2261
|
-
var Profiles = /*#__PURE__*/Object.freeze({
|
|
2262
|
-
__proto__: null,
|
|
2263
|
-
createBusinessAccount: createBusinessAccount,
|
|
2264
|
-
createProfile: createProfile,
|
|
2265
|
-
deleteProfile: deleteProfile,
|
|
2266
|
-
getCurrentProfile: getCurrentProfile,
|
|
2267
|
-
getPermissions: getPermissions,
|
|
2268
|
-
getProfile: getProfile,
|
|
2269
|
-
getProfileGroups: getProfileGroups,
|
|
2270
|
-
getProfilePermissions: getProfilePermissions,
|
|
2271
|
-
getProfiles: getProfiles,
|
|
2272
|
-
getRoles: getRoles,
|
|
2273
|
-
recordSignupSurvey: recordSignupSurvey,
|
|
2274
|
-
switchProfile: switchProfile,
|
|
2275
|
-
updateProfile: updateProfile
|
|
2276
|
-
});
|
|
2277
|
-
|
|
2278
|
-
var Types$1 = /*#__PURE__*/Object.freeze({
|
|
2279
|
-
__proto__: null
|
|
2280
|
-
});
|
|
2281
|
-
|
|
2282
|
-
var index$1 = /*#__PURE__*/Object.freeze({
|
|
2283
|
-
__proto__: null,
|
|
2284
|
-
Auth: Auth,
|
|
2285
|
-
Billing: Billing,
|
|
2286
|
-
Notifications: Notifications,
|
|
2287
|
-
Profiles: Profiles,
|
|
2288
|
-
Types: Types$1
|
|
2289
|
-
});
|
|
2290
|
-
|
|
2291
|
-
/* tslint:disable:no-bitwise */
|
|
2292
1942
|
/**
|
|
2293
1943
|
* Given a `rgba(r,g,b,a)` string value, returns the hex equivalent, dropping the alpha channel.
|
|
2294
1944
|
*/
|
|
@@ -2357,9 +2007,11 @@ function nameToRGBA(str) {
|
|
|
2357
2007
|
}
|
|
2358
2008
|
let hash = 0;
|
|
2359
2009
|
for (let i = 0; i < str.length; i++) {
|
|
2010
|
+
// tslint:disable-next-line:no-bitwise
|
|
2360
2011
|
hash = str.charCodeAt(i) + ((hash << 5) - hash);
|
|
2361
2012
|
}
|
|
2362
2013
|
hash = Math.round(hash / 1.3);
|
|
2014
|
+
// tslint:disable-next-line:no-bitwise
|
|
2363
2015
|
const c = (hash & 0x00ffff08).toString(16).toUpperCase();
|
|
2364
2016
|
const hex = '#' + '00000'.substring(0, 6 - c.length) + c;
|
|
2365
2017
|
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
@@ -2392,14 +2044,6 @@ function getRoleColor(name, roles, index) {
|
|
|
2392
2044
|
}
|
|
2393
2045
|
}
|
|
2394
2046
|
|
|
2395
|
-
var Colors = /*#__PURE__*/Object.freeze({
|
|
2396
|
-
__proto__: null,
|
|
2397
|
-
getRGB: getRGB,
|
|
2398
|
-
getRGBA: getRGBA,
|
|
2399
|
-
getRoleColor: getRoleColor,
|
|
2400
|
-
nameToRGBA: nameToRGBA
|
|
2401
|
-
});
|
|
2402
|
-
|
|
2403
2047
|
const YEAR = 365 * 24 * 60 * 60;
|
|
2404
2048
|
// const MONTH = 30 * 24 * 60 * 60;
|
|
2405
2049
|
const WEEK = 7 * 24 * 60 * 60;
|
|
@@ -2480,12 +2124,6 @@ function timePeriod(type) {
|
|
|
2480
2124
|
};
|
|
2481
2125
|
}
|
|
2482
2126
|
|
|
2483
|
-
var DateTime = /*#__PURE__*/Object.freeze({
|
|
2484
|
-
__proto__: null,
|
|
2485
|
-
formatShortTimeAgo: formatShortTimeAgo,
|
|
2486
|
-
timePeriod: timePeriod
|
|
2487
|
-
});
|
|
2488
|
-
|
|
2489
2127
|
function getRTop(y, fieldHeight, iTextHeight, yRatio) {
|
|
2490
2128
|
return iTextHeight - (y + fieldHeight) * yRatio;
|
|
2491
2129
|
}
|
|
@@ -2511,15 +2149,6 @@ function rescale(r, n) {
|
|
|
2511
2149
|
return r * n;
|
|
2512
2150
|
}
|
|
2513
2151
|
|
|
2514
|
-
var Fields = /*#__PURE__*/Object.freeze({
|
|
2515
|
-
__proto__: null,
|
|
2516
|
-
blobToBase64: blobToBase64,
|
|
2517
|
-
getRLeft: getRLeft,
|
|
2518
|
-
getRTop: getRTop,
|
|
2519
|
-
getRValue: getRValue,
|
|
2520
|
-
rescale: rescale
|
|
2521
|
-
});
|
|
2522
|
-
|
|
2523
2152
|
/**
|
|
2524
2153
|
* Given a File, extract the file's content as a base64 encoded data URL. The response will have a prefix that
|
|
2525
2154
|
* includes the MIME type of the file, e.g. "data:image/jpeg;base64,iVBORw0K......"
|
|
@@ -2558,12 +2187,6 @@ const downloadBlob = (blob, name = 'file.pdf') => {
|
|
|
2558
2187
|
document.body.removeChild(link);
|
|
2559
2188
|
};
|
|
2560
2189
|
|
|
2561
|
-
var Files = /*#__PURE__*/Object.freeze({
|
|
2562
|
-
__proto__: null,
|
|
2563
|
-
downloadBlob: downloadBlob,
|
|
2564
|
-
fileToDataUrl: fileToDataUrl
|
|
2565
|
-
});
|
|
2566
|
-
|
|
2567
2190
|
const Countries = [
|
|
2568
2191
|
{ code: '+7 840', name: 'Abkhazia', value: '+7' },
|
|
2569
2192
|
{ code: '+93', name: 'Afghanistan', value: '+93' },
|
|
@@ -2931,22 +2554,6 @@ function getMatchingCountry(code, substrings) {
|
|
|
2931
2554
|
// return (code !== null && code.length < 16 && code.length > 6 && e164Regex.test(code)) || code === '' || code === null;
|
|
2932
2555
|
// }
|
|
2933
2556
|
|
|
2934
|
-
var Locales = /*#__PURE__*/Object.freeze({
|
|
2935
|
-
__proto__: null,
|
|
2936
|
-
Countries: Countries,
|
|
2937
|
-
getCountryByCode: getCountryByCode,
|
|
2938
|
-
getMatchingCountry: getMatchingCountry,
|
|
2939
|
-
getPlusOneCountry: getPlusOneCountry,
|
|
2940
|
-
isAmericanSamoa: isAmericanSamoa,
|
|
2941
|
-
isCanada: isCanada,
|
|
2942
|
-
isDominicanRepublic: isDominicanRepublic,
|
|
2943
|
-
isFrenchGuiana: isFrenchGuiana,
|
|
2944
|
-
isGuadeloupe: isGuadeloupe,
|
|
2945
|
-
isMartinique: isMartinique,
|
|
2946
|
-
isMayotte: isMayotte,
|
|
2947
|
-
isPuertoRico: isPuertoRico
|
|
2948
|
-
});
|
|
2949
|
-
|
|
2950
2557
|
/**
|
|
2951
2558
|
* Capitalize the first letter of a string.
|
|
2952
2559
|
*/
|
|
@@ -2976,12 +2583,6 @@ const convertToE164 = (input) => {
|
|
|
2976
2583
|
return `+1${temp}`;
|
|
2977
2584
|
};
|
|
2978
2585
|
|
|
2979
|
-
var Strings = /*#__PURE__*/Object.freeze({
|
|
2980
|
-
__proto__: null,
|
|
2981
|
-
capitalize: capitalize,
|
|
2982
|
-
convertToE164: convertToE164
|
|
2983
|
-
});
|
|
2984
|
-
|
|
2985
2586
|
/**
|
|
2986
2587
|
* Create an array containing a sequence of integers, e.g. [START, START+1, START+2, ...] This is frequently useful
|
|
2987
2588
|
* in rendering operations when there is no source array to .map() across.
|
|
@@ -3005,36 +2606,198 @@ const fullNameToInitials = (name) => name
|
|
|
3005
2606
|
.map((word) => word[0])
|
|
3006
2607
|
.join('');
|
|
3007
2608
|
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
formatFullName: formatFullName,
|
|
3011
|
-
formatInitials: formatInitials,
|
|
3012
|
-
fullNameToInitials: fullNameToInitials,
|
|
3013
|
-
integerSequence: integerSequence
|
|
3014
|
-
});
|
|
3015
|
-
|
|
3016
|
-
var Types = /*#__PURE__*/Object.freeze({
|
|
3017
|
-
__proto__: null
|
|
3018
|
-
});
|
|
3019
|
-
|
|
3020
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
3021
|
-
__proto__: null,
|
|
3022
|
-
Colors: Colors,
|
|
3023
|
-
DateTime: DateTime,
|
|
3024
|
-
Fields: Fields,
|
|
3025
|
-
Files: Files,
|
|
3026
|
-
Locales: Locales,
|
|
3027
|
-
Primitives: Primitives,
|
|
3028
|
-
Strings: Strings,
|
|
3029
|
-
Token: Token,
|
|
3030
|
-
Types: Types
|
|
3031
|
-
});
|
|
3032
|
-
|
|
3033
|
-
exports.Envelopes = index$5;
|
|
3034
|
-
exports.Organizations = index$4;
|
|
3035
|
-
exports.Sessions = index$3;
|
|
3036
|
-
exports.Templates = index$2;
|
|
3037
|
-
exports.Users = index$1;
|
|
3038
|
-
exports.Utils = index;
|
|
2609
|
+
exports.AtoB = AtoB;
|
|
2610
|
+
exports.Countries = Countries;
|
|
3039
2611
|
exports.VerdocsEndpoint = VerdocsEndpoint;
|
|
2612
|
+
exports.acceptOrganizationInvitation = acceptOrganizationInvitation;
|
|
2613
|
+
exports.addGroupMembers = addGroupMembers;
|
|
2614
|
+
exports.addGroupPermission = addGroupPermission;
|
|
2615
|
+
exports.addOrganizationMemberRole = addOrganizationMemberRole;
|
|
2616
|
+
exports.addTemplateTag = addTemplateTag;
|
|
2617
|
+
exports.authenticateApp = authenticateApp;
|
|
2618
|
+
exports.authenticateUser = authenticateUser;
|
|
2619
|
+
exports.billingPlaceholder = billingPlaceholder;
|
|
2620
|
+
exports.blobToBase64 = blobToBase64;
|
|
2621
|
+
exports.canPerformTemplateAction = canPerformTemplateAction;
|
|
2622
|
+
exports.cancelEnvelope = cancelEnvelope;
|
|
2623
|
+
exports.capitalize = capitalize;
|
|
2624
|
+
exports.claimNewUser = claimNewUser;
|
|
2625
|
+
exports.convertToE164 = convertToE164;
|
|
2626
|
+
exports.createApiKey = createApiKey;
|
|
2627
|
+
exports.createBusinessAccount = createBusinessAccount;
|
|
2628
|
+
exports.createEnvelope = createEnvelope;
|
|
2629
|
+
exports.createEnvelopeReminder = createEnvelopeReminder;
|
|
2630
|
+
exports.createField = createField;
|
|
2631
|
+
exports.createInitials = createInitials;
|
|
2632
|
+
exports.createOrganization = createOrganization;
|
|
2633
|
+
exports.createOrganizationInvitation = createOrganizationInvitation;
|
|
2634
|
+
exports.createProfile = createProfile;
|
|
2635
|
+
exports.createSignature = createSignature;
|
|
2636
|
+
exports.createTag = createTag;
|
|
2637
|
+
exports.createTemplate = createTemplate;
|
|
2638
|
+
exports.createTemplateDocument = createTemplateDocument;
|
|
2639
|
+
exports.createTemplateFromSharepoint = createTemplateFromSharepoint;
|
|
2640
|
+
exports.createTemplateReminder = createTemplateReminder;
|
|
2641
|
+
exports.createTemplateRole = createTemplateRole;
|
|
2642
|
+
exports.createTemplatev2 = createTemplatev2;
|
|
2643
|
+
exports.createUser = createUser;
|
|
2644
|
+
exports.declineOrganizationInvitation = declineOrganizationInvitation;
|
|
2645
|
+
exports.decodeAccessTokenBody = decodeAccessTokenBody;
|
|
2646
|
+
exports.decodeJWTBody = decodeJWTBody;
|
|
2647
|
+
exports.deleteApiKey = deleteApiKey;
|
|
2648
|
+
exports.deleteEnvelopeFieldAttachment = deleteEnvelopeFieldAttachment;
|
|
2649
|
+
exports.deleteEnvelopeReminder = deleteEnvelopeReminder;
|
|
2650
|
+
exports.deleteField = deleteField;
|
|
2651
|
+
exports.deleteGroupMembers = deleteGroupMembers;
|
|
2652
|
+
exports.deleteGroupPermission = deleteGroupPermission;
|
|
2653
|
+
exports.deleteOrganization = deleteOrganization;
|
|
2654
|
+
exports.deleteOrganizationInvitation = deleteOrganizationInvitation;
|
|
2655
|
+
exports.deleteOrganizationMember = deleteOrganizationMember;
|
|
2656
|
+
exports.deleteOrganizationMemberRole = deleteOrganizationMemberRole;
|
|
2657
|
+
exports.deleteProfile = deleteProfile;
|
|
2658
|
+
exports.deleteSignature = deleteSignature;
|
|
2659
|
+
exports.deleteTemplate = deleteTemplate;
|
|
2660
|
+
exports.deleteTemplateDocument = deleteTemplateDocument;
|
|
2661
|
+
exports.deleteTemplateReminder = deleteTemplateReminder;
|
|
2662
|
+
exports.deleteTemplateRole = deleteTemplateRole;
|
|
2663
|
+
exports.deleteTemplateTag = deleteTemplateTag;
|
|
2664
|
+
exports.downloadBlob = downloadBlob;
|
|
2665
|
+
exports.envelopeIsActive = envelopeIsActive;
|
|
2666
|
+
exports.envelopeIsComplete = envelopeIsComplete;
|
|
2667
|
+
exports.envelopeRecipientAgree = envelopeRecipientAgree;
|
|
2668
|
+
exports.envelopeRecipientChangeOwner = envelopeRecipientChangeOwner;
|
|
2669
|
+
exports.envelopeRecipientDecline = envelopeRecipientDecline;
|
|
2670
|
+
exports.envelopeRecipientPrepare = envelopeRecipientPrepare;
|
|
2671
|
+
exports.envelopeRecipientSubmit = envelopeRecipientSubmit;
|
|
2672
|
+
exports.envelopeRecipientUpdateName = envelopeRecipientUpdateName;
|
|
2673
|
+
exports.fileToDataUrl = fileToDataUrl;
|
|
2674
|
+
exports.formatFullName = formatFullName;
|
|
2675
|
+
exports.formatInitials = formatInitials;
|
|
2676
|
+
exports.formatShortTimeAgo = formatShortTimeAgo;
|
|
2677
|
+
exports.fullNameToInitials = fullNameToInitials;
|
|
2678
|
+
exports.getAllTags = getAllTags;
|
|
2679
|
+
exports.getApiKeys = getApiKeys;
|
|
2680
|
+
exports.getCountryByCode = getCountryByCode;
|
|
2681
|
+
exports.getCurrentProfile = getCurrentProfile;
|
|
2682
|
+
exports.getDocumentDownloadLink = getDocumentDownloadLink;
|
|
2683
|
+
exports.getDocumentPreviewLink = getDocumentPreviewLink;
|
|
2684
|
+
exports.getEnvelope = getEnvelope;
|
|
2685
|
+
exports.getEnvelopeDocument = getEnvelopeDocument;
|
|
2686
|
+
exports.getEnvelopeDocumentPageDisplayUri = getEnvelopeDocumentPageDisplayUri;
|
|
2687
|
+
exports.getEnvelopeFile = getEnvelopeFile;
|
|
2688
|
+
exports.getEnvelopeRecipients = getEnvelopeRecipients;
|
|
2689
|
+
exports.getEnvelopeReminder = getEnvelopeReminder;
|
|
2690
|
+
exports.getEnvelopesSummary = getEnvelopesSummary;
|
|
2691
|
+
exports.getFieldAttachment = getFieldAttachment;
|
|
2692
|
+
exports.getGroup = getGroup;
|
|
2693
|
+
exports.getGroupByName = getGroupByName;
|
|
2694
|
+
exports.getGroupMembers = getGroupMembers;
|
|
2695
|
+
exports.getGroups = getGroups;
|
|
2696
|
+
exports.getInPersonLink = getInPersonLink;
|
|
2697
|
+
exports.getMatchingCountry = getMatchingCountry;
|
|
2698
|
+
exports.getNextRecipient = getNextRecipient;
|
|
2699
|
+
exports.getNotifications = getNotifications;
|
|
2700
|
+
exports.getOrganization = getOrganization;
|
|
2701
|
+
exports.getOrganizationInvitation = getOrganizationInvitation;
|
|
2702
|
+
exports.getOrganizationInvitations = getOrganizationInvitations;
|
|
2703
|
+
exports.getOrganizationMemberPlans = getOrganizationMemberPlans;
|
|
2704
|
+
exports.getOrganizationMembers = getOrganizationMembers;
|
|
2705
|
+
exports.getOrganizations = getOrganizations;
|
|
2706
|
+
exports.getPermissions = getPermissions;
|
|
2707
|
+
exports.getPlusOneCountry = getPlusOneCountry;
|
|
2708
|
+
exports.getProfile = getProfile;
|
|
2709
|
+
exports.getProfileGroups = getProfileGroups;
|
|
2710
|
+
exports.getProfilePermissions = getProfilePermissions;
|
|
2711
|
+
exports.getProfiles = getProfiles;
|
|
2712
|
+
exports.getRGB = getRGB;
|
|
2713
|
+
exports.getRGBA = getRGBA;
|
|
2714
|
+
exports.getRLeft = getRLeft;
|
|
2715
|
+
exports.getRTop = getRTop;
|
|
2716
|
+
exports.getRValue = getRValue;
|
|
2717
|
+
exports.getRecipientsWithActions = getRecipientsWithActions;
|
|
2718
|
+
exports.getRoleColor = getRoleColor;
|
|
2719
|
+
exports.getRoles = getRoles;
|
|
2720
|
+
exports.getSignature = getSignature;
|
|
2721
|
+
exports.getSignatures = getSignatures;
|
|
2722
|
+
exports.getSignerToken = getSignerToken;
|
|
2723
|
+
exports.getSigningSession = getSigningSession;
|
|
2724
|
+
exports.getStars = getStars;
|
|
2725
|
+
exports.getTag = getTag;
|
|
2726
|
+
exports.getTemplate = getTemplate;
|
|
2727
|
+
exports.getTemplateDocument = getTemplateDocument;
|
|
2728
|
+
exports.getTemplateDocumentFile = getTemplateDocumentFile;
|
|
2729
|
+
exports.getTemplateDocumentPageDisplayUri = getTemplateDocumentPageDisplayUri;
|
|
2730
|
+
exports.getTemplateDocumentThumbnail = getTemplateDocumentThumbnail;
|
|
2731
|
+
exports.getTemplateDocuments = getTemplateDocuments;
|
|
2732
|
+
exports.getTemplateOwnerInfo = getTemplateOwnerInfo;
|
|
2733
|
+
exports.getTemplateReminder = getTemplateReminder;
|
|
2734
|
+
exports.getTemplateRole = getTemplateRole;
|
|
2735
|
+
exports.getTemplateRoleFields = getTemplateRoleFields;
|
|
2736
|
+
exports.getTemplateRoles = getTemplateRoles;
|
|
2737
|
+
exports.getTemplateTags = getTemplateTags;
|
|
2738
|
+
exports.getTemplates = getTemplates;
|
|
2739
|
+
exports.getTemplatesSummary = getTemplatesSummary;
|
|
2740
|
+
exports.getValidator = getValidator;
|
|
2741
|
+
exports.getValidators = getValidators;
|
|
2742
|
+
exports.getWebhooks = getWebhooks;
|
|
2743
|
+
exports.hasRequiredPermissions = hasRequiredPermissions;
|
|
2744
|
+
exports.integerSequence = integerSequence;
|
|
2745
|
+
exports.isAmericanSamoa = isAmericanSamoa;
|
|
2746
|
+
exports.isCanada = isCanada;
|
|
2747
|
+
exports.isDominicanRepublic = isDominicanRepublic;
|
|
2748
|
+
exports.isFrenchGuiana = isFrenchGuiana;
|
|
2749
|
+
exports.isGuadeloupe = isGuadeloupe;
|
|
2750
|
+
exports.isMartinique = isMartinique;
|
|
2751
|
+
exports.isMayotte = isMayotte;
|
|
2752
|
+
exports.isPuertoRico = isPuertoRico;
|
|
2753
|
+
exports.isValidEmail = isValidEmail;
|
|
2754
|
+
exports.isValidPhone = isValidPhone;
|
|
2755
|
+
exports.isValidRoleName = isValidRoleName;
|
|
2756
|
+
exports.isValidTag = isValidTag;
|
|
2757
|
+
exports.listEnvelopes = listEnvelopes;
|
|
2758
|
+
exports.listTemplates = listTemplates;
|
|
2759
|
+
exports.nameToRGBA = nameToRGBA;
|
|
2760
|
+
exports.recipientCanAct = recipientCanAct;
|
|
2761
|
+
exports.recipientHasAction = recipientHasAction;
|
|
2762
|
+
exports.recordSignupSurvey = recordSignupSurvey;
|
|
2763
|
+
exports.refreshTokens = refreshTokens;
|
|
2764
|
+
exports.rescale = rescale;
|
|
2765
|
+
exports.resendInvitation = resendInvitation;
|
|
2766
|
+
exports.resendOrganizationInvitation = resendOrganizationInvitation;
|
|
2767
|
+
exports.resendVerification = resendVerification;
|
|
2768
|
+
exports.resetPassword = resetPassword;
|
|
2769
|
+
exports.rotateApiKey = rotateApiKey;
|
|
2770
|
+
exports.searchEnvelopes = searchEnvelopes;
|
|
2771
|
+
exports.searchTemplates = searchTemplates;
|
|
2772
|
+
exports.sendDelegate = sendDelegate;
|
|
2773
|
+
exports.setWebhooks = setWebhooks;
|
|
2774
|
+
exports.switchProfile = switchProfile;
|
|
2775
|
+
exports.throttledGetEnvelope = throttledGetEnvelope;
|
|
2776
|
+
exports.throttledGetTemplate = throttledGetTemplate;
|
|
2777
|
+
exports.timePeriod = timePeriod;
|
|
2778
|
+
exports.toggleStar = toggleStar;
|
|
2779
|
+
exports.updateApiKey = updateApiKey;
|
|
2780
|
+
exports.updateEmail = updateEmail;
|
|
2781
|
+
exports.updateEnvelopeField = updateEnvelopeField;
|
|
2782
|
+
exports.updateEnvelopeFieldInitials = updateEnvelopeFieldInitials;
|
|
2783
|
+
exports.updateEnvelopeFieldSignature = updateEnvelopeFieldSignature;
|
|
2784
|
+
exports.updateEnvelopeReminder = updateEnvelopeReminder;
|
|
2785
|
+
exports.updateField = updateField;
|
|
2786
|
+
exports.updateOrganization = updateOrganization;
|
|
2787
|
+
exports.updateOrganizationInvitation = updateOrganizationInvitation;
|
|
2788
|
+
exports.updatePassword = updatePassword;
|
|
2789
|
+
exports.updateProfile = updateProfile;
|
|
2790
|
+
exports.updateRecipient = updateRecipient;
|
|
2791
|
+
exports.updateTemplate = updateTemplate;
|
|
2792
|
+
exports.updateTemplateReminder = updateTemplateReminder;
|
|
2793
|
+
exports.updateTemplateRole = updateTemplateRole;
|
|
2794
|
+
exports.uploadEnvelopeFieldAttachment = uploadEnvelopeFieldAttachment;
|
|
2795
|
+
exports.userCanAct = userCanAct;
|
|
2796
|
+
exports.userCanCancelEnvelope = userCanCancelEnvelope;
|
|
2797
|
+
exports.userCanFinishEnvelope = userCanFinishEnvelope;
|
|
2798
|
+
exports.userCanSignNow = userCanSignNow;
|
|
2799
|
+
exports.userHasPermissions = userHasPermissions;
|
|
2800
|
+
exports.userIsEnvelopeOwner = userIsEnvelopeOwner;
|
|
2801
|
+
exports.userIsEnvelopeRecipient = userIsEnvelopeRecipient;
|
|
2802
|
+
exports.validateToken = validateToken;
|
|
3040
2803
|
//# sourceMappingURL=index.js.map
|