@verdocs/js-sdk 4.2.86 → 4.2.87

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
@@ -1578,9 +1578,7 @@ const getFieldAttachment = async (endpoint, envelopeId, fieldName) => endpoint.a
1578
1578
  * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
1579
1579
  * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants.
1580
1580
  */
1581
- const getEnvelopeDocumentPageDisplayUri = async (endpoint, envelopeId, documentId, page, type = 'original') => endpoint.api
1582
- .get(`/envelopes/${envelopeId}/envelope_documents/${documentId}/pages/${page}/image?type=${type}`, { timeout: 20000 })
1583
- .then((r) => r.data);
1581
+ const getEnvelopeDocumentPageDisplayUri = async (endpoint, documentId, page, variant = 'original') => endpoint.api.get(`/v2/envelope-documents/page-image/${documentId}/${variant}/${page}`, { timeout: 20000 }).then((r) => r.data);
1584
1582
  /**
1585
1583
  * Lists all envelopes accessible by the caller, with optional filters.
1586
1584
  *
@@ -2896,7 +2894,7 @@ const getTemplateDocumentThumbnail = async (endpoint, templateId, documentId) =>
2896
2894
  * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants. The
2897
2895
  * original asset may be obtained by calling `getTemplateDocumentFile()` or similar.
2898
2896
  */
2899
- const getTemplateDocumentPageDisplayUri = async (endpoint, templateId, documentId, page) => endpoint.api.get(`/templates/${templateId}/documents/${documentId}/pages/${page}/image`).then((r) => r.data);
2897
+ const getTemplateDocumentPageDisplayUri = async (endpoint, documentId, page, variant = 'original') => endpoint.api.get(`/v2/template-documents/page-image/${documentId}/${variant}/${page}`, { timeout: 20000 }).then((r) => r.data);
2900
2898
 
2901
2899
  /**
2902
2900
  * Get all defined validators