@verdocs/js-sdk 1.1.4 → 1.1.5

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.
@@ -149,3 +149,4 @@ export interface ISigningSessionResult {
149
149
  export declare const getSigningSession: (params: ISigningSessionRequest) => Promise<ISigningSessionResult>;
150
150
  export declare const getDocumentRecipients: (documentId: string) => Promise<IRecipient[]>;
151
151
  export declare const getDocument: (documentId: string) => Promise<IDocument>;
152
+ export declare const getDocumentFile: (documentId: string, envelopeDocumentId: string) => Promise<string>;
@@ -99,3 +99,10 @@ export var getDocument = function (documentId) { return __awaiter(void 0, void 0
99
99
  .then(function (r) { return r.data; })];
100
100
  });
101
101
  }); };
102
+ export var getDocumentFile = function (documentId, envelopeDocumentId) { return __awaiter(void 0, void 0, void 0, function () {
103
+ return __generator(this, function (_a) {
104
+ return [2 /*return*/, getEndpoint()
105
+ .api.get("/documents/".concat(documentId, "/envelope_documents/").concat(envelopeDocumentId, "?file=true"))
106
+ .then(function (r) { return r.data; })];
107
+ });
108
+ }); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",