@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.d.mts CHANGED
@@ -161,6 +161,7 @@ interface ISigningSession {
161
161
  * A User Session connects a caller to a Verdocs profile, and can be used for any operations that profile may perform.
162
162
  */
163
163
  interface IUserSession {
164
+ jti: string;
164
165
  aud: string;
165
166
  iss: string;
166
167
  sub: string; // Auth0 user_id
package/dist/index.d.ts CHANGED
@@ -161,6 +161,7 @@ interface ISigningSession {
161
161
  * A User Session connects a caller to a Verdocs profile, and can be used for any operations that profile may perform.
162
162
  */
163
163
  interface IUserSession {
164
+ jti: string;
164
165
  aud: string;
165
166
  iss: string;
166
167
  sub: string; // Auth0 user_id
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
  */