@verdocs/js-sdk 3.10.1 → 3.10.2

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.
@@ -141,9 +141,13 @@ export declare const getEnvelopeRecipients: (endpoint: VerdocsEndpoint, envelope
141
141
  */
142
142
  export declare const getEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string) => Promise<IEnvelope>;
143
143
  /**
144
- * Get all metadata for an Envelope.
144
+ * Get an Envelope Document
145
145
  */
146
146
  export declare const getEnvelopeDocument: (endpoint: VerdocsEndpoint, envelopeId: string, documentId: string) => Promise<IEnvelopeDocument>;
147
+ /**
148
+ * Get a (temporary) pre-signed download link for and Envelope Document
149
+ */
150
+ export declare const getEnvelopeDocumentLink: (endpoint: VerdocsEndpoint, envelopeId: string, documentId: string) => Promise<IEnvelopeDocument>;
147
151
  /**
148
152
  * Cancel an Envelope.
149
153
  */
@@ -144,7 +144,7 @@ export var getEnvelope = function (endpoint, envelopeId) { return __awaiter(void
144
144
  });
145
145
  }); };
146
146
  /**
147
- * Get all metadata for an Envelope.
147
+ * Get an Envelope Document
148
148
  */
149
149
  export var getEnvelopeDocument = function (endpoint, envelopeId, documentId) { return __awaiter(void 0, void 0, void 0, function () {
150
150
  return __generator(this, function (_a) {
@@ -153,6 +153,16 @@ export var getEnvelopeDocument = function (endpoint, envelopeId, documentId) { r
153
153
  .then(function (r) { return r.data; })];
154
154
  });
155
155
  }); };
156
+ /**
157
+ * Get a (temporary) pre-signed download link for and Envelope Document
158
+ */
159
+ export var getEnvelopeDocumentLink = function (endpoint, envelopeId, documentId) { return __awaiter(void 0, void 0, void 0, function () {
160
+ return __generator(this, function (_a) {
161
+ return [2 /*return*/, endpoint.api //
162
+ .get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "?link=true"))
163
+ .then(function (r) { return r.data; })];
164
+ });
165
+ }); };
156
166
  /**
157
167
  * Cancel an Envelope.
158
168
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.10.1",
3
+ "version": "3.10.2",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",