@verdocs/js-sdk 3.0.17 → 3.0.18
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.
package/Envelopes/Envelopes.d.ts
CHANGED
|
@@ -105,7 +105,7 @@ export declare const userCanAct: (email: string, recipientsWithActions: IRecipie
|
|
|
105
105
|
* rather than a direct A HREF or similar link to set the authorization headers for the
|
|
106
106
|
* request.
|
|
107
107
|
*/
|
|
108
|
-
export declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, envelopeId: string, documentId: string) => Promise<
|
|
108
|
+
export declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, envelopeId: string, documentId: string) => Promise<any>;
|
|
109
109
|
/**
|
|
110
110
|
* Update a Document field. Typically called during the signing process as a Recipient fills in fields.
|
|
111
111
|
*/
|
package/Envelopes/Envelopes.js
CHANGED
|
@@ -192,7 +192,7 @@ export var getEnvelopeFile = function (endpoint, envelopeId, documentId) { retur
|
|
|
192
192
|
return __generator(this, function (_a) {
|
|
193
193
|
return [2 /*return*/, endpoint.api //
|
|
194
194
|
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "?file=true"), { responseType: 'blob' })
|
|
195
|
-
.then(function (r) { return
|
|
195
|
+
.then(function (r) { return r.data; })];
|
|
196
196
|
});
|
|
197
197
|
}); };
|
|
198
198
|
/**
|
|
@@ -50,10 +50,10 @@ export declare const deleteTemplateDocument: (endpoint: VerdocsEndpoint, templat
|
|
|
50
50
|
* rather than a direct A HREF or similar link to set the authorization headers for the
|
|
51
51
|
* request.
|
|
52
52
|
*/
|
|
53
|
-
export declare const getTemplateDocumentFile: (endpoint: VerdocsEndpoint, templateId: string, documentId: string) => Promise<
|
|
53
|
+
export declare const getTemplateDocumentFile: (endpoint: VerdocsEndpoint, templateId: string, documentId: string) => Promise<any>;
|
|
54
54
|
/**
|
|
55
55
|
* Get (binary download) a file attached to a Template. It is important to use this method
|
|
56
56
|
* rather than a direct A HREF or similar link to set the authorization headers for the
|
|
57
57
|
* request.
|
|
58
58
|
*/
|
|
59
|
-
export declare const getTemplateDocumentThumbnail: (endpoint: VerdocsEndpoint, templateId: string, documentId: string) => Promise<
|
|
59
|
+
export declare const getTemplateDocumentThumbnail: (endpoint: VerdocsEndpoint, templateId: string, documentId: string) => Promise<any>;
|
|
@@ -113,7 +113,7 @@ export var getTemplateDocumentFile = function (endpoint, templateId, documentId)
|
|
|
113
113
|
return __generator(this, function (_a) {
|
|
114
114
|
return [2 /*return*/, endpoint.api //
|
|
115
115
|
.get("/templates/".concat(templateId, "/documents/").concat(documentId, "?file=true"), { responseType: 'blob' })
|
|
116
|
-
.then(function (r) { return
|
|
116
|
+
.then(function (r) { return r.data; })];
|
|
117
117
|
});
|
|
118
118
|
}); };
|
|
119
119
|
/**
|
|
@@ -125,6 +125,6 @@ export var getTemplateDocumentThumbnail = function (endpoint, templateId, docume
|
|
|
125
125
|
return __generator(this, function (_a) {
|
|
126
126
|
return [2 /*return*/, endpoint.api //
|
|
127
127
|
.get("/templates/".concat(templateId, "/documents/").concat(documentId, "?thumbnail=true"), { responseType: 'blob' })
|
|
128
|
-
.then(function (r) { return
|
|
128
|
+
.then(function (r) { return r.data; })];
|
|
129
129
|
});
|
|
130
130
|
}); };
|