@verdocs/js-sdk 2.0.24 → 2.0.25

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.
@@ -16,7 +16,7 @@ export declare const editPage: (endpoint: VerdocsEndpoint, templateId: string, s
16
16
  /**
17
17
  * Get a page from a template.
18
18
  */
19
- export declare const getPage: (endpoint: VerdocsEndpoint, templateId: string, sequence: string) => Promise<any>;
19
+ export declare const getPage: (endpoint: VerdocsEndpoint, templateId: string, sequence: number, thumbnail?: boolean) => Promise<any>;
20
20
  /**
21
21
  * Delete a page from a template
22
22
  */
@@ -17,9 +17,10 @@ export var editPage = function (endpoint, templateId, sequence) {
17
17
  /**
18
18
  * Get a page from a template.
19
19
  */
20
- export var getPage = function (endpoint, templateId, sequence) {
20
+ export var getPage = function (endpoint, templateId, sequence, thumbnail) {
21
+ if (thumbnail === void 0) { thumbnail = false; }
21
22
  return endpoint.api //
22
- .get("/templates/".concat(templateId, "/pages/").concat(sequence))
23
+ .get("/templates/".concat(templateId, "/pages/").concat(sequence).concat(thumbnail ? '?thumbnail=true' : ''))
23
24
  .then(function (r) { return r.data; });
24
25
  };
25
26
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "2.0.24",
3
+ "version": "2.0.25",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",