@verdocs/js-sdk 6.2.0-beta.9 → 6.2.2
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 +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +4 -4
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1172,7 +1172,13 @@ const updateProfilePhoto = (endpoint, profileId, file, onUploadProgress) => {
|
|
|
1172
1172
|
// @credit https://derickbailey.com/2016/03/09/creating-a-true-singleton-in-node-js-with-es6-symbols/
|
|
1173
1173
|
// Also see globalThis for comments about why we're doing this in the first place.
|
|
1174
1174
|
const ENDPOINT_KEY = Symbol.for('verdocs-default-endpoint');
|
|
1175
|
-
const BETA_ORIGINS = [
|
|
1175
|
+
const BETA_ORIGINS = [
|
|
1176
|
+
//
|
|
1177
|
+
'https://beta.verdocs.com',
|
|
1178
|
+
'https://stage.verdocs.com',
|
|
1179
|
+
'http://localhost:6006',
|
|
1180
|
+
'http://localhost:5173',
|
|
1181
|
+
];
|
|
1176
1182
|
const requestLogger = (r) => {
|
|
1177
1183
|
// TODO: Re-activate logging via an isomorphic approach
|
|
1178
1184
|
return r;
|
|
@@ -1203,7 +1209,9 @@ class VerdocsEndpoint {
|
|
|
1203
1209
|
environment = 'verdocs';
|
|
1204
1210
|
sessionType = 'user';
|
|
1205
1211
|
persist = true;
|
|
1206
|
-
baseURL = BETA_ORIGINS.includes(globalThis$1.window?.location?.origin || '')
|
|
1212
|
+
baseURL = BETA_ORIGINS.includes(globalThis$1.window?.location?.origin || '')
|
|
1213
|
+
? 'https://stage-api.verdocs.com'
|
|
1214
|
+
: 'https://api.verdocs.com';
|
|
1207
1215
|
clientID = 'not-set';
|
|
1208
1216
|
timeout = 60000;
|
|
1209
1217
|
token = null;
|
|
@@ -2704,7 +2712,7 @@ const envelopeRecipientDecline = (endpoint, envelopeId, roleName) => endpoint.ap
|
|
|
2704
2712
|
* @apiSuccess IRecipient . The updated Recipient.
|
|
2705
2713
|
*/
|
|
2706
2714
|
const envelopeRecipientSubmit = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
2707
|
-
.
|
|
2715
|
+
.post(`/v2/envelopes/${envelopeId}/recipients/${roleName}/submit`)
|
|
2708
2716
|
.then((r) => r.data);
|
|
2709
2717
|
/**
|
|
2710
2718
|
* Begin a signing session for an Envelope. This path requires an invite code, and should generally
|
|
@@ -2795,7 +2803,7 @@ const verifySigner = (endpoint, params) => endpoint.api //
|
|
|
2795
2803
|
* @apiSuccess string . Success message.
|
|
2796
2804
|
*/
|
|
2797
2805
|
const delegateRecipient = (endpoint, envelopeId, roleName, params) => endpoint.api //
|
|
2798
|
-
.
|
|
2806
|
+
.post(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}/delegate`, params)
|
|
2799
2807
|
.then((r) => r.data);
|
|
2800
2808
|
/**
|
|
2801
2809
|
* Update a recipient. NOTE: User interfaces should rate-limit this operation to avoid spamming recipients.
|