@verdocs/js-sdk 3.1.7 → 3.1.8
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/Envelopes/Envelopes.js +7 -3
- package/package.json +1 -1
package/Envelopes/Envelopes.js
CHANGED
|
@@ -255,9 +255,13 @@ export var getEnvelopesByTemplateId = function (endpoint, templateId) { return _
|
|
|
255
255
|
* into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
|
|
256
256
|
* for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants.
|
|
257
257
|
*/
|
|
258
|
-
export var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () {
|
|
259
|
-
return
|
|
260
|
-
|
|
258
|
+
export var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () {
|
|
259
|
+
return __generator(this, function (_a) {
|
|
260
|
+
return [2 /*return*/, endpoint.api
|
|
261
|
+
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image"), { timeout: 60000 })
|
|
262
|
+
.then(function (r) { return r.data; })];
|
|
263
|
+
});
|
|
264
|
+
}); };
|
|
261
265
|
var cachedEnvelopes = {};
|
|
262
266
|
/**
|
|
263
267
|
* Wrapper for `getEnvelope()` that limits queries to one every 2 seconds per template ID.
|