@verdocs/js-sdk 6.2.1 → 6.2.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 +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -6
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +3 -3
- package/package.json +3 -3
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;
|
|
@@ -1579,8 +1587,8 @@ class VerdocsEndpoint {
|
|
|
1579
1587
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
1580
1588
|
* @apiBody string description? Override the description of the envelope (defaults to the template description).
|
|
1581
1589
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1582
|
-
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting.
|
|
1583
|
-
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting.
|
|
1590
|
+
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting (in milliseconds).
|
|
1591
|
+
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting (in milliseconds).
|
|
1584
1592
|
* @apiBody string expires_at? If set, the envelope will automatically expire (be canceled) at this date and time. Expirations must be at least 1 day in the future.
|
|
1585
1593
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1586
1594
|
*/
|
|
@@ -2388,8 +2396,8 @@ const createTemplateFromSharepoint = (endpoint, params) => {
|
|
|
2388
2396
|
* @apiBody boolean is_personal? Deprecated. If true, the template is personal and can only be seen by the caller. (Use "visibility" for new calls.)
|
|
2389
2397
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
2390
2398
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
2391
|
-
* @apiBody number initial_reminder? Delay (in
|
|
2392
|
-
* @apiBody number followup_reminders? Delay (in
|
|
2399
|
+
* @apiBody number initial_reminder? Delay (in milliseconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
2400
|
+
* @apiBody number followup_reminders? Delay (in milliseconds) before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
2393
2401
|
* @apiSuccess ITemplate . The updated template
|
|
2394
2402
|
*/
|
|
2395
2403
|
const updateTemplate = (endpoint, templateId, params) => endpoint.api //
|