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