@verdocs/js-sdk 3.10.1 → 3.10.3

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,14 @@ 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 pre-signed download link for an Envelope Document. This link expires quickly, so it should
149
+ * be accessed immediately and never shared.
150
+ */
151
+ export declare const getEnvelopeDocumentLink: (endpoint: VerdocsEndpoint, envelopeId: string, documentId: string) => Promise<string>;
147
152
  /**
148
153
  * Cancel an Envelope.
149
154
  */
@@ -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,17 @@ export var getEnvelopeDocument = function (endpoint, envelopeId, documentId) { r
153
153
  .then(function (r) { return r.data; })];
154
154
  });
155
155
  }); };
156
+ /**
157
+ * Get a pre-signed download link for an Envelope Document. This link expires quickly, so it should
158
+ * be accessed immediately and never shared.
159
+ */
160
+ export var getEnvelopeDocumentLink = function (endpoint, envelopeId, documentId) { return __awaiter(void 0, void 0, void 0, function () {
161
+ return __generator(this, function (_a) {
162
+ return [2 /*return*/, endpoint.api //
163
+ .get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "?link=true"))
164
+ .then(function (r) { return r.data; })];
165
+ });
166
+ }); };
156
167
  /**
157
168
  * Cancel an Envelope.
158
169
  */
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.3",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",