@verdocs/js-sdk 5.0.7 → 5.0.9
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -930,7 +930,7 @@ type TAccessKeyType = "email" | "in_app" | "in_person_link" | "sms";
|
|
|
930
930
|
type TApiKeyPermission = "personal" | "global_read" | "global_write";
|
|
931
931
|
/** @deprecated. See envelope.created_at, .updated_at, and .canceled_at. */
|
|
932
932
|
type TDeprecatedHistoryEvent = "envelope:created" | "envelope:completed";
|
|
933
|
-
type THistoryEvent = "recipient:signed" | "recipient:opened" | "recipient:submitted" | "recipient:prepared" | "recipient:claimed" | "recipient:agreed" | "recipient:invited" | "recipient:reminder" | "recipient:delegated" | "recipient:updated_info" | "recipient:declined" | "invitation:resent" | "envelope:cc" | "envelope:canceled" | "owner:updated_recipient_info" | "owner:get_in_person_link" | TDeprecatedHistoryEvent;
|
|
933
|
+
type THistoryEvent = "recipient:signed" | "recipient:opened" | "recipient:submitted" | "recipient:prepared" | "recipient:claimed" | "recipient:agreed" | "recipient:invited" | "recipient:reminder" | "recipient:delegated" | "recipient:updated_info" | "recipient:declined" | "recipient:kba_verified" | "recipient:kba_failed" | "recipient:id_verified" | "recipient:id_failed" | "recipient:pin_verified" | "recipient:pin_failed" | "invitation:resent" | "envelope:cc" | "envelope:canceled" | "owner:updated_recipient_info" | "owner:get_in_person_link" | TDeprecatedHistoryEvent;
|
|
934
934
|
type TEventDetail = "in_app" | "mail" | "signer" | "sms" | "reminder" | "preparer" | "manual" | "in_person_link" | "guest" | "email" | "" | string; // Modification events have a string description
|
|
935
935
|
// Modification events have a string description
|
|
936
936
|
type TEnvelopeUpdateResult = Omit<IEnvelope, "histories" | "recipients" | "certificate" | "document" | "fields" | "profile">;
|
|
@@ -1300,6 +1300,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1300
1300
|
fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1301
1301
|
environment?: string;
|
|
1302
1302
|
no_contact?: boolean;
|
|
1303
|
+
/** Override the sender name of the envelope in email and other notifications. */
|
|
1304
|
+
sender_name?: string;
|
|
1303
1305
|
/** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
|
|
1304
1306
|
initial_reminder?: number;
|
|
1305
1307
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
package/dist/index.d.ts
CHANGED
|
@@ -930,7 +930,7 @@ type TAccessKeyType = "email" | "in_app" | "in_person_link" | "sms";
|
|
|
930
930
|
type TApiKeyPermission = "personal" | "global_read" | "global_write";
|
|
931
931
|
/** @deprecated. See envelope.created_at, .updated_at, and .canceled_at. */
|
|
932
932
|
type TDeprecatedHistoryEvent = "envelope:created" | "envelope:completed";
|
|
933
|
-
type THistoryEvent = "recipient:signed" | "recipient:opened" | "recipient:submitted" | "recipient:prepared" | "recipient:claimed" | "recipient:agreed" | "recipient:invited" | "recipient:reminder" | "recipient:delegated" | "recipient:updated_info" | "recipient:declined" | "invitation:resent" | "envelope:cc" | "envelope:canceled" | "owner:updated_recipient_info" | "owner:get_in_person_link" | TDeprecatedHistoryEvent;
|
|
933
|
+
type THistoryEvent = "recipient:signed" | "recipient:opened" | "recipient:submitted" | "recipient:prepared" | "recipient:claimed" | "recipient:agreed" | "recipient:invited" | "recipient:reminder" | "recipient:delegated" | "recipient:updated_info" | "recipient:declined" | "recipient:kba_verified" | "recipient:kba_failed" | "recipient:id_verified" | "recipient:id_failed" | "recipient:pin_verified" | "recipient:pin_failed" | "invitation:resent" | "envelope:cc" | "envelope:canceled" | "owner:updated_recipient_info" | "owner:get_in_person_link" | TDeprecatedHistoryEvent;
|
|
934
934
|
type TEventDetail = "in_app" | "mail" | "signer" | "sms" | "reminder" | "preparer" | "manual" | "in_person_link" | "guest" | "email" | "" | string; // Modification events have a string description
|
|
935
935
|
// Modification events have a string description
|
|
936
936
|
type TEnvelopeUpdateResult = Omit<IEnvelope, "histories" | "recipients" | "certificate" | "document" | "fields" | "profile">;
|
|
@@ -1300,6 +1300,8 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1300
1300
|
fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1301
1301
|
environment?: string;
|
|
1302
1302
|
no_contact?: boolean;
|
|
1303
|
+
/** Override the sender name of the envelope in email and other notifications. */
|
|
1304
|
+
sender_name?: string;
|
|
1303
1305
|
/** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
|
|
1304
1306
|
initial_reminder?: number;
|
|
1305
1307
|
/** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
|
package/dist/index.js
CHANGED
|
@@ -1149,7 +1149,7 @@ const updateProfilePhoto = (endpoint, profileId, file, onUploadProgress) => {
|
|
|
1149
1149
|
onUploadProgress: (event) => {
|
|
1150
1150
|
const total = event.total || 1;
|
|
1151
1151
|
const loaded = event.loaded || 0;
|
|
1152
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
1152
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
1153
1153
|
},
|
|
1154
1154
|
})
|
|
1155
1155
|
.then((r) => r.data);
|
|
@@ -1722,7 +1722,7 @@ const uploadEnvelopeFieldAttachment = async (endpoint, envelopeId, fieldName, fi
|
|
|
1722
1722
|
onUploadProgress: (event) => {
|
|
1723
1723
|
const total = event.total || 1;
|
|
1724
1724
|
const loaded = event.loaded || 0;
|
|
1725
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
1725
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
1726
1726
|
},
|
|
1727
1727
|
})
|
|
1728
1728
|
.then((r) => r.data);
|
|
@@ -2628,7 +2628,7 @@ const updateOrganizationLogo = (endpoint, organizationId, file, onUploadProgress
|
|
|
2628
2628
|
onUploadProgress: (event) => {
|
|
2629
2629
|
const total = event.total || 1;
|
|
2630
2630
|
const loaded = event.loaded || 0;
|
|
2631
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
2631
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
2632
2632
|
},
|
|
2633
2633
|
})
|
|
2634
2634
|
.then((r) => r.data);
|
|
@@ -2651,7 +2651,7 @@ const updateOrganizationThumbnail = (endpoint, organizationId, file, onUploadPro
|
|
|
2651
2651
|
onUploadProgress: (event) => {
|
|
2652
2652
|
const total = event.total || 1;
|
|
2653
2653
|
const loaded = event.loaded || 0;
|
|
2654
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
2654
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
2655
2655
|
},
|
|
2656
2656
|
})
|
|
2657
2657
|
.then((r) => r.data);
|
|
@@ -3306,7 +3306,7 @@ const createTemplate = (endpoint, params, onUploadProgress) => {
|
|
|
3306
3306
|
onUploadProgress: (event) => {
|
|
3307
3307
|
const total = event.total || 1;
|
|
3308
3308
|
const loaded = event.loaded || 0;
|
|
3309
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
3309
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
3310
3310
|
},
|
|
3311
3311
|
};
|
|
3312
3312
|
if (params.documents && params.documents[0] instanceof File) {
|
|
@@ -3468,7 +3468,7 @@ const createTemplateDocument = (endpoint, templateId, file, onUploadProgress) =>
|
|
|
3468
3468
|
onUploadProgress: (event) => {
|
|
3469
3469
|
const total = event.total || 1;
|
|
3470
3470
|
const loaded = event.loaded || 0;
|
|
3471
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
3471
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
3472
3472
|
},
|
|
3473
3473
|
})
|
|
3474
3474
|
.then((r) => r.data);
|