@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 +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.mjs
CHANGED
|
@@ -1147,7 +1147,7 @@ const updateProfilePhoto = (endpoint, profileId, file, onUploadProgress) => {
|
|
|
1147
1147
|
onUploadProgress: (event) => {
|
|
1148
1148
|
const total = event.total || 1;
|
|
1149
1149
|
const loaded = event.loaded || 0;
|
|
1150
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
1150
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
1151
1151
|
},
|
|
1152
1152
|
})
|
|
1153
1153
|
.then((r) => r.data);
|
|
@@ -1720,7 +1720,7 @@ const uploadEnvelopeFieldAttachment = async (endpoint, envelopeId, fieldName, fi
|
|
|
1720
1720
|
onUploadProgress: (event) => {
|
|
1721
1721
|
const total = event.total || 1;
|
|
1722
1722
|
const loaded = event.loaded || 0;
|
|
1723
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
1723
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
1724
1724
|
},
|
|
1725
1725
|
})
|
|
1726
1726
|
.then((r) => r.data);
|
|
@@ -2626,7 +2626,7 @@ const updateOrganizationLogo = (endpoint, organizationId, file, onUploadProgress
|
|
|
2626
2626
|
onUploadProgress: (event) => {
|
|
2627
2627
|
const total = event.total || 1;
|
|
2628
2628
|
const loaded = event.loaded || 0;
|
|
2629
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
2629
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
2630
2630
|
},
|
|
2631
2631
|
})
|
|
2632
2632
|
.then((r) => r.data);
|
|
@@ -2649,7 +2649,7 @@ const updateOrganizationThumbnail = (endpoint, organizationId, file, onUploadPro
|
|
|
2649
2649
|
onUploadProgress: (event) => {
|
|
2650
2650
|
const total = event.total || 1;
|
|
2651
2651
|
const loaded = event.loaded || 0;
|
|
2652
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
2652
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
2653
2653
|
},
|
|
2654
2654
|
})
|
|
2655
2655
|
.then((r) => r.data);
|
|
@@ -3304,7 +3304,7 @@ const createTemplate = (endpoint, params, onUploadProgress) => {
|
|
|
3304
3304
|
onUploadProgress: (event) => {
|
|
3305
3305
|
const total = event.total || 1;
|
|
3306
3306
|
const loaded = event.loaded || 0;
|
|
3307
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
3307
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
3308
3308
|
},
|
|
3309
3309
|
};
|
|
3310
3310
|
if (params.documents && params.documents[0] instanceof File) {
|
|
@@ -3466,7 +3466,7 @@ const createTemplateDocument = (endpoint, templateId, file, onUploadProgress) =>
|
|
|
3466
3466
|
onUploadProgress: (event) => {
|
|
3467
3467
|
const total = event.total || 1;
|
|
3468
3468
|
const loaded = event.loaded || 0;
|
|
3469
|
-
onUploadProgress?.(Math.floor((loaded * 100) / (total
|
|
3469
|
+
onUploadProgress?.(Math.floor((loaded * 100) / (total)), loaded, total);
|
|
3470
3470
|
},
|
|
3471
3471
|
})
|
|
3472
3472
|
.then((r) => r.data);
|