@docbrasil/api-systemmanager 1.0.70 → 1.0.71
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/api/user/document.js +17 -4
- package/dist/bundle.cjs +16 -3
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +6 -0
- package/package.json +1 -1
package/doc/api.md
CHANGED
|
@@ -1416,6 +1416,7 @@ Uploads the file
|
|
|
1416
1416
|
| params.content | <code>buffer</code> | The content of the file (Buffer) |
|
|
1417
1417
|
| params.signedUrl | <code>string</code> | The signed URL |
|
|
1418
1418
|
| params.type | <code>string</code> | The file mime type |
|
|
1419
|
+
| params.onUploadProgress | <code>string</code> | A callback for the upload progress. It will return a progressEvent. |
|
|
1419
1420
|
|
|
1420
1421
|
**Example**
|
|
1421
1422
|
```js
|
|
@@ -1429,6 +1430,11 @@ const params - {
|
|
|
1429
1430
|
type: 'application/pdf'
|
|
1430
1431
|
};
|
|
1431
1432
|
const retData = await api.user.document.uploadSignedDocument(params);
|
|
1433
|
+
|
|
1434
|
+
onUploadProgress return the progressEvent
|
|
1435
|
+
- lengthComputable: A Boolean that indicates whether or not the total number of bytes is known.
|
|
1436
|
+
- loaded: The number of bytes of the file that have been uploaded.
|
|
1437
|
+
- total: The total number of bytes in the file.
|
|
1432
1438
|
```
|
|
1433
1439
|
<a name="Users"></a>
|
|
1434
1440
|
|
package/package.json
CHANGED