@verdocs/js-sdk 5.0.8 → 5.0.11

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 CHANGED
@@ -673,7 +673,7 @@ interface IRecipient {
673
673
  * created from this template. For privacy reasons, this field will only be visible to the creator
674
674
  * of the envelope and the recipient referenced.
675
675
  */
676
- kba_method?: "pin" | "identity" | "" | null;
676
+ kba_method?: "pin" | "kba" | "id" | "sms" | "" | null;
677
677
  /**
678
678
  * If KBA is set to "PIN" this will be set to the PIN code required. For security reasons, this
679
679
  * field will only be visible to the creator of the envelope.
@@ -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. 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. */
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
@@ -673,7 +673,7 @@ interface IRecipient {
673
673
  * created from this template. For privacy reasons, this field will only be visible to the creator
674
674
  * of the envelope and the recipient referenced.
675
675
  */
676
- kba_method?: "pin" | "identity" | "" | null;
676
+ kba_method?: "pin" | "kba" | "id" | "sms" | "" | null;
677
677
  /**
678
678
  * If KBA is set to "PIN" this will be set to the PIN code required. For security reasons, this
679
679
  * field will only be visible to the creator of the envelope.
@@ -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. 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. */
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 || 1)), loaded, total || 1);
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 || 1)), loaded, total || 1);
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 || 1)), loaded, total || 1);
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 || 1)), loaded, total || 1);
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 || 1)), loaded, total || 1);
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 || 1)), loaded, total || 1);
3471
+ onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
3472
3472
  },
3473
3473
  })
3474
3474
  .then((r) => r.data);