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