@verdocs/js-sdk 4.2.39 → 4.2.40
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.js +2 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -14
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1413,20 +1413,8 @@ const getEnvelopeRecipients = async (endpoint, envelopeId) => endpoint.api //
|
|
|
1413
1413
|
* Get all metadata for an Envelope.
|
|
1414
1414
|
*/
|
|
1415
1415
|
const getEnvelope = async (endpoint, envelopeId) => endpoint.api //
|
|
1416
|
-
.get(`/envelopes/${envelopeId}`)
|
|
1417
|
-
.then((r) =>
|
|
1418
|
-
const envelope = r.data;
|
|
1419
|
-
// Post-process the envelope to upgrade to new data fields
|
|
1420
|
-
envelope.documents?.forEach((document) => {
|
|
1421
|
-
if (!document.order) {
|
|
1422
|
-
document.order = 0;
|
|
1423
|
-
}
|
|
1424
|
-
if (document.page_numbers) {
|
|
1425
|
-
document.pages = document.page_numbers;
|
|
1426
|
-
}
|
|
1427
|
-
});
|
|
1428
|
-
return envelope;
|
|
1429
|
-
});
|
|
1416
|
+
.get(`/v2/envelopes/${envelopeId}`)
|
|
1417
|
+
.then((r) => r.data);
|
|
1430
1418
|
/**
|
|
1431
1419
|
* Get an Envelope Document
|
|
1432
1420
|
*/
|