@verdocs/js-sdk 3.0.37 → 3.0.39

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.
@@ -7,12 +7,12 @@
7
7
  */
8
8
  export var createRole = function (endpoint, templateId, params) {
9
9
  return endpoint.api //
10
- .post("/templates/".concat(templateId, "/roles/"), params)
10
+ .post("/templates/".concat(templateId, "/roles"), params)
11
11
  .then(function (r) { return r.data; });
12
12
  };
13
13
  export var getRoles = function (endpoint, templateId) {
14
14
  return endpoint.api //
15
- .get("/templates/".concat(templateId, "/roles/"))
15
+ .get("/templates/".concat(templateId, "/roles"))
16
16
  .then(function (r) { return r.data; });
17
17
  };
18
18
  export var getRole = function (endpoint, templateId, roleName) {
@@ -37,6 +37,6 @@ export var getRoleFields = function (endpoint, templateId, roleName) {
37
37
  };
38
38
  export var deleteSequence = function (endpoint, templateId) {
39
39
  return endpoint.api //
40
- .delete("/templates/".concat(templateId, "/roles/"))
40
+ .delete("/templates/".concat(templateId, "/roles"))
41
41
  .then(function (r) { return r.data; });
42
42
  };
@@ -57,3 +57,10 @@ export declare const getTemplateDocumentFile: (endpoint: VerdocsEndpoint, templa
57
57
  * request.
58
58
  */
59
59
  export declare const getTemplateDocumentThumbnail: (endpoint: VerdocsEndpoint, templateId: string, documentId: string) => Promise<any>;
60
+ /**
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.
65
+ */
66
+ export declare const getTemplateDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, templateId: string, documentId: string, page: number) => Promise<string>;
@@ -128,3 +128,12 @@ export var getTemplateDocumentThumbnail = function (endpoint, templateId, docume
128
128
  .then(function (r) { return r.data; })];
129
129
  });
130
130
  }); };
131
+ /**
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.
136
+ */
137
+ export var getTemplateDocumentPageDisplayUri = function (endpoint, templateId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
138
+ return [2 /*return*/, endpoint.api.get("/templates/".concat(templateId, "/documents/").concat(documentId, "/pages/").concat(page, "/image")).then(function (r) { return r.data; })];
139
+ }); }); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.0.37",
3
+ "version": "3.0.39",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",
@@ -46,7 +46,7 @@
46
46
  "access": "public"
47
47
  },
48
48
  "dependencies": {
49
- "axios": "^1.3.1"
49
+ "axios": "^1.3.3"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "typescript": "^4.7.3"
@@ -60,7 +60,7 @@
60
60
  "ts-jest": "^29.0.5",
61
61
  "tslint": "^6.1.3",
62
62
  "tslint-config-prettier": "^1.18.0",
63
- "typedoc": "^0.23.24",
63
+ "typedoc": "^0.23.25",
64
64
  "typedoc-plugin-markdown": "^3.14.0",
65
65
  "typescript": "^4.9.5"
66
66
  }