@verdocs/js-sdk 5.1.5 → 5.1.7
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 +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -501,6 +501,8 @@ interface IEnvelope {
|
|
|
501
501
|
updated_at: string;
|
|
502
502
|
/** Date/time when the envelope was canceled, or null. */
|
|
503
503
|
canceled_at: string;
|
|
504
|
+
/** Date/time when the envelope will automatically expire, or null. */
|
|
505
|
+
expires_at?: string;
|
|
504
506
|
/** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
|
|
505
507
|
visibility: "private" | "shared";
|
|
506
508
|
search_key?: string | null;
|
|
@@ -970,7 +972,7 @@ type TEventDetail = "in_app" | "mail" | "signer" | "sms" | "reminder" | "prepare
|
|
|
970
972
|
// Modification events have a string description
|
|
971
973
|
type TEnvelopeUpdateResult = Omit<IEnvelope, "histories" | "recipients" | "certificate" | "document" | "fields" | "profile">;
|
|
972
974
|
type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "timestamp" | "date" | "dropdown" | "textarea" | "attachment" | "payment";
|
|
973
|
-
type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used" | "entitlement_used";
|
|
975
|
+
type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "envelope_expired" | "template_created" | "template_updated" | "template_deleted" | "template_used" | "entitlement_used";
|
|
974
976
|
type TTemplateVisibility = "private" | "shared" | "public";
|
|
975
977
|
type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth" | "custom_disclaimer";
|
|
976
978
|
/**
|
|
@@ -982,7 +984,7 @@ type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kb
|
|
|
982
984
|
*/
|
|
983
985
|
type TRecipientAuthMethod = "kba" | "passcode" | "sms" | "email" | "id";
|
|
984
986
|
type TRecipientAuthStep = TRecipientAuthMethod | null;
|
|
985
|
-
type TUsageType = "envelope" | "envelope_canceled" | "sms_invite" | "template" | "auth_email" | "auth_sms" | "auth_kba" | "auth_id" | "auth_passcode";
|
|
987
|
+
type TUsageType = "envelope" | "envelope_canceled" | "envelope_completed" | "envelope_expired" | "sms_invite" | "template" | "auth_email" | "auth_sms" | "auth_kba" | "auth_id" | "auth_passcode";
|
|
986
988
|
declare const FIELD_TYPES: TFieldType[];
|
|
987
989
|
declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
|
|
988
990
|
declare const DEFAULT_FIELD_HEIGHTS: Record<TFieldType, number>;
|
|
@@ -1359,6 +1361,7 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1359
1361
|
description?: string;
|
|
1360
1362
|
fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1361
1363
|
environment?: string;
|
|
1364
|
+
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1362
1365
|
no_contact?: boolean;
|
|
1363
1366
|
/** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
|
|
1364
1367
|
sender_name?: string;
|
|
@@ -1366,6 +1369,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1366
1369
|
initial_reminder?: number;
|
|
1367
1370
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
1368
1371
|
followup_reminders?: number;
|
|
1372
|
+
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
1373
|
+
expires_at?: string;
|
|
1369
1374
|
}
|
|
1370
1375
|
interface ICreateEnvelopeDirectlyRequest {
|
|
1371
1376
|
name: string;
|
|
@@ -1375,11 +1380,14 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1375
1380
|
documents: IEnvelopeDocument[];
|
|
1376
1381
|
fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1377
1382
|
environment?: string;
|
|
1383
|
+
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1378
1384
|
no_contact?: boolean;
|
|
1379
1385
|
/** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
|
|
1380
1386
|
initial_reminder: number;
|
|
1381
1387
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
1382
1388
|
followup_reminders: number;
|
|
1389
|
+
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
1390
|
+
expires_at?: string;
|
|
1383
1391
|
}
|
|
1384
1392
|
type TCreateEnvelopeRequest = ICreateEnvelopeFromTemplateRequest | ICreateEnvelopeDirectlyRequest;
|
|
1385
1393
|
interface IAuthenticateRecipientViaPasscodeRequest {
|
package/dist/index.d.ts
CHANGED
|
@@ -501,6 +501,8 @@ interface IEnvelope {
|
|
|
501
501
|
updated_at: string;
|
|
502
502
|
/** Date/time when the envelope was canceled, or null. */
|
|
503
503
|
canceled_at: string;
|
|
504
|
+
/** Date/time when the envelope will automatically expire, or null. */
|
|
505
|
+
expires_at?: string;
|
|
504
506
|
/** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
|
|
505
507
|
visibility: "private" | "shared";
|
|
506
508
|
search_key?: string | null;
|
|
@@ -970,7 +972,7 @@ type TEventDetail = "in_app" | "mail" | "signer" | "sms" | "reminder" | "prepare
|
|
|
970
972
|
// Modification events have a string description
|
|
971
973
|
type TEnvelopeUpdateResult = Omit<IEnvelope, "histories" | "recipients" | "certificate" | "document" | "fields" | "profile">;
|
|
972
974
|
type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "timestamp" | "date" | "dropdown" | "textarea" | "attachment" | "payment";
|
|
973
|
-
type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used" | "entitlement_used";
|
|
975
|
+
type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "envelope_expired" | "template_created" | "template_updated" | "template_deleted" | "template_used" | "entitlement_used";
|
|
974
976
|
type TTemplateVisibility = "private" | "shared" | "public";
|
|
975
977
|
type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth" | "custom_disclaimer";
|
|
976
978
|
/**
|
|
@@ -982,7 +984,7 @@ type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kb
|
|
|
982
984
|
*/
|
|
983
985
|
type TRecipientAuthMethod = "kba" | "passcode" | "sms" | "email" | "id";
|
|
984
986
|
type TRecipientAuthStep = TRecipientAuthMethod | null;
|
|
985
|
-
type TUsageType = "envelope" | "envelope_canceled" | "sms_invite" | "template" | "auth_email" | "auth_sms" | "auth_kba" | "auth_id" | "auth_passcode";
|
|
987
|
+
type TUsageType = "envelope" | "envelope_canceled" | "envelope_completed" | "envelope_expired" | "sms_invite" | "template" | "auth_email" | "auth_sms" | "auth_kba" | "auth_id" | "auth_passcode";
|
|
986
988
|
declare const FIELD_TYPES: TFieldType[];
|
|
987
989
|
declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
|
|
988
990
|
declare const DEFAULT_FIELD_HEIGHTS: Record<TFieldType, number>;
|
|
@@ -1359,6 +1361,7 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1359
1361
|
description?: string;
|
|
1360
1362
|
fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1361
1363
|
environment?: string;
|
|
1364
|
+
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1362
1365
|
no_contact?: boolean;
|
|
1363
1366
|
/** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
|
|
1364
1367
|
sender_name?: string;
|
|
@@ -1366,6 +1369,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1366
1369
|
initial_reminder?: number;
|
|
1367
1370
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
1368
1371
|
followup_reminders?: number;
|
|
1372
|
+
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
1373
|
+
expires_at?: string;
|
|
1369
1374
|
}
|
|
1370
1375
|
interface ICreateEnvelopeDirectlyRequest {
|
|
1371
1376
|
name: string;
|
|
@@ -1375,11 +1380,14 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1375
1380
|
documents: IEnvelopeDocument[];
|
|
1376
1381
|
fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1377
1382
|
environment?: string;
|
|
1383
|
+
/** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
|
|
1378
1384
|
no_contact?: boolean;
|
|
1379
1385
|
/** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
|
|
1380
1386
|
initial_reminder: number;
|
|
1381
1387
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
|
1382
1388
|
followup_reminders: number;
|
|
1389
|
+
/** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
|
|
1390
|
+
expires_at?: string;
|
|
1383
1391
|
}
|
|
1384
1392
|
type TCreateEnvelopeRequest = ICreateEnvelopeFromTemplateRequest | ICreateEnvelopeDirectlyRequest;
|
|
1385
1393
|
interface IAuthenticateRecipientViaPasscodeRequest {
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdocs/js-sdk",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://github.com/Verdocs/js-sdk",
|
|
6
6
|
"description": "Isomorphic JS/TS SDK providing types and API wrappers for the Verdocs platform for Node and browser clients",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdocs/js-sdk",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://github.com/Verdocs/js-sdk",
|
|
6
6
|
"description": "Isomorphic JS/TS SDK providing types and API wrappers for the Verdocs platform for Node and browser clients",
|