@verdocs/js-sdk 3.0.39 → 3.1.0

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.
@@ -132,3 +132,9 @@ export declare const getFieldAttachment: (endpoint: VerdocsEndpoint, envelopeId:
132
132
  * @deprecated
133
133
  */
134
134
  export declare const getEnvelopesByTemplateId: (endpoint: VerdocsEndpoint, templateId: string) => Promise<IEnvelope[]>;
135
+ /**
136
+ * Get a display URI for a given page in a file attached to an envelope document. These pages are rendered server-side
137
+ * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
138
+ * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants.
139
+ */
140
+ export declare const getEnvelopeDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, envelopeId: string, documentId: string, page: number) => Promise<string>;
@@ -250,3 +250,11 @@ export var getEnvelopesByTemplateId = function (endpoint, templateId) { return _
250
250
  .then(function (r) { return r.data; })];
251
251
  });
252
252
  }); };
253
+ /**
254
+ * Get a display URI for a given page in a file attached to an envelope document. These pages are rendered server-side
255
+ * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
256
+ * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants.
257
+ */
258
+ export var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
259
+ return [2 /*return*/, endpoint.api.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image")).then(function (r) { return r.data; })];
260
+ }); }); };
@@ -59,8 +59,8 @@ export declare const getTemplateDocumentFile: (endpoint: VerdocsEndpoint, templa
59
59
  export declare const getTemplateDocumentThumbnail: (endpoint: VerdocsEndpoint, templateId: string, documentId: string) => Promise<any>;
60
60
  /**
61
61
  * Get a display URI for a given page in a file attached to a template document. These pages are rendered server-side
62
- * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are
63
- * intended for DISPLAY ONLY, and do not contain any encoded metadata from participants. The original asset may be
64
- * obtained by calling `getTemplateDocumentFile()` or similar.
62
+ * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
63
+ * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants. The
64
+ * original asset may be obtained by calling `getTemplateDocumentFile()` or similar.
65
65
  */
66
66
  export declare const getTemplateDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, templateId: string, documentId: string, page: number) => Promise<string>;
@@ -130,9 +130,9 @@ export var getTemplateDocumentThumbnail = function (endpoint, templateId, docume
130
130
  }); };
131
131
  /**
132
132
  * Get a display URI for a given page in a file attached to a template document. These pages are rendered server-side
133
- * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are
134
- * intended for DISPLAY ONLY, and do not contain any encoded metadata from participants. The original asset may be
135
- * obtained by calling `getTemplateDocumentFile()` or similar.
133
+ * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
134
+ * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants. The
135
+ * original asset may be obtained by calling `getTemplateDocumentFile()` or similar.
136
136
  */
137
137
  export var getTemplateDocumentPageDisplayUri = function (endpoint, templateId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
138
138
  return [2 /*return*/, endpoint.api.get("/templates/".concat(templateId, "/documents/").concat(documentId, "/pages/").concat(page, "/image")).then(function (r) { return r.data; })];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.0.39",
3
+ "version": "3.1.0",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",