@verdocs/js-sdk 1.1.3 → 1.1.4

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.
@@ -148,3 +148,4 @@ export interface ISigningSessionResult {
148
148
  */
149
149
  export declare const getSigningSession: (params: ISigningSessionRequest) => Promise<ISigningSessionResult>;
150
150
  export declare const getDocumentRecipients: (documentId: string) => Promise<IRecipient[]>;
151
+ export declare const getDocument: (documentId: string) => Promise<IDocument>;
@@ -92,3 +92,10 @@ export var getDocumentRecipients = function (documentId) { return __awaiter(void
92
92
  .then(function (r) { return r.data; })];
93
93
  });
94
94
  }); };
95
+ export var getDocument = function (documentId) { return __awaiter(void 0, void 0, void 0, function () {
96
+ return __generator(this, function (_a) {
97
+ return [2 /*return*/, getEndpoint()
98
+ .api.get("/documents/".concat(documentId))
99
+ .then(function (r) { return r.data; })];
100
+ });
101
+ }); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",