@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.d.mts
CHANGED
|
@@ -1643,8 +1643,8 @@ declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic
|
|
|
1643
1643
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
1644
1644
|
* @apiBody string description? Override the description of the envelope (defaults to the template description).
|
|
1645
1645
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1646
|
-
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting.
|
|
1647
|
-
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting.
|
|
1646
|
+
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting (in milliseconds).
|
|
1647
|
+
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting (in milliseconds).
|
|
1648
1648
|
* @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.
|
|
1649
1649
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1650
1650
|
*/
|
|
@@ -2419,7 +2419,6 @@ interface IAuthenticateResponse {
|
|
|
2419
2419
|
expires_in: number;
|
|
2420
2420
|
access_token_exp: number;
|
|
2421
2421
|
refresh_token_exp: number;
|
|
2422
|
-
intercom_key: string;
|
|
2423
2422
|
}
|
|
2424
2423
|
interface IChangePasswordRequest {
|
|
2425
2424
|
old_password: string;
|
|
@@ -3487,8 +3486,8 @@ declare const createTemplateFromSharepoint: (endpoint: VerdocsEndpoint, params:
|
|
|
3487
3486
|
* @apiBody boolean is_personal? Deprecated. If true, the template is personal and can only be seen by the caller. (Use "visibility" for new calls.)
|
|
3488
3487
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
3489
3488
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3490
|
-
* @apiBody number initial_reminder? Delay (in
|
|
3491
|
-
* @apiBody number followup_reminders? Delay (in
|
|
3489
|
+
* @apiBody number initial_reminder? Delay (in milliseconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3490
|
+
* @apiBody number followup_reminders? Delay (in milliseconds) before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3492
3491
|
* @apiSuccess ITemplate . The updated template
|
|
3493
3492
|
*/
|
|
3494
3493
|
declare const updateTemplate: (endpoint: VerdocsEndpoint, templateId: string, params: Partial<ITemplateCreateParams>) => Promise<ITemplate>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1643,8 +1643,8 @@ declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic
|
|
|
1643
1643
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
1644
1644
|
* @apiBody string description? Override the description of the envelope (defaults to the template description).
|
|
1645
1645
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1646
|
-
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting.
|
|
1647
|
-
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting.
|
|
1646
|
+
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting (in milliseconds).
|
|
1647
|
+
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting (in milliseconds).
|
|
1648
1648
|
* @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.
|
|
1649
1649
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1650
1650
|
*/
|
|
@@ -2419,7 +2419,6 @@ interface IAuthenticateResponse {
|
|
|
2419
2419
|
expires_in: number;
|
|
2420
2420
|
access_token_exp: number;
|
|
2421
2421
|
refresh_token_exp: number;
|
|
2422
|
-
intercom_key: string;
|
|
2423
2422
|
}
|
|
2424
2423
|
interface IChangePasswordRequest {
|
|
2425
2424
|
old_password: string;
|
|
@@ -3487,8 +3486,8 @@ declare const createTemplateFromSharepoint: (endpoint: VerdocsEndpoint, params:
|
|
|
3487
3486
|
* @apiBody boolean is_personal? Deprecated. If true, the template is personal and can only be seen by the caller. (Use "visibility" for new calls.)
|
|
3488
3487
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
3489
3488
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
3490
|
-
* @apiBody number initial_reminder? Delay (in
|
|
3491
|
-
* @apiBody number followup_reminders? Delay (in
|
|
3489
|
+
* @apiBody number initial_reminder? Delay (in milliseconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
3490
|
+
* @apiBody number followup_reminders? Delay (in milliseconds) before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
3492
3491
|
* @apiSuccess ITemplate . The updated template
|
|
3493
3492
|
*/
|
|
3494
3493
|
declare const updateTemplate: (endpoint: VerdocsEndpoint, templateId: string, params: Partial<ITemplateCreateParams>) => Promise<ITemplate>;
|
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;
|
|
@@ -1581,8 +1589,8 @@ class VerdocsEndpoint {
|
|
|
1581
1589
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
1582
1590
|
* @apiBody string description? Override the description of the envelope (defaults to the template description).
|
|
1583
1591
|
* @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
|
|
1584
|
-
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting.
|
|
1585
|
-
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting.
|
|
1592
|
+
* @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting (in milliseconds).
|
|
1593
|
+
* @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting (in milliseconds).
|
|
1586
1594
|
* @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.
|
|
1587
1595
|
* @apiSuccess IEnvelope . The newly-created envelope.
|
|
1588
1596
|
*/
|
|
@@ -2390,8 +2398,8 @@ const createTemplateFromSharepoint = (endpoint, params) => {
|
|
|
2390
2398
|
* @apiBody boolean is_personal? Deprecated. If true, the template is personal and can only be seen by the caller. (Use "visibility" for new calls.)
|
|
2391
2399
|
* @apiBody boolean is_public? Deprecated. If true, the template is public and can be seen by anybody. (Use "visibility" for new calls.)
|
|
2392
2400
|
* @apiBody TTemplateSender sender? Who may send envelopes using this template
|
|
2393
|
-
* @apiBody number initial_reminder? Delay (in
|
|
2394
|
-
* @apiBody number followup_reminders? Delay (in
|
|
2401
|
+
* @apiBody number initial_reminder? Delay (in milliseconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable.
|
|
2402
|
+
* @apiBody number followup_reminders? Delay (in milliseconds) before the subsequent reminders are sent (min: 12hrs). Set to 0 or null to disable.
|
|
2395
2403
|
* @apiSuccess ITemplate . The updated template
|
|
2396
2404
|
*/
|
|
2397
2405
|
const updateTemplate = (endpoint, templateId, params) => endpoint.api //
|