@verdocs/js-sdk 3.0.17 → 3.0.19
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
|
/**
|
package/Envelopes/Types.d.ts
CHANGED
|
@@ -118,13 +118,16 @@ export interface IRecipient {
|
|
|
118
118
|
fields?: IDocumentField[];
|
|
119
119
|
}
|
|
120
120
|
export interface IEnvelopeDocument {
|
|
121
|
-
created_at: string;
|
|
122
121
|
id: string;
|
|
122
|
+
envelope_id: string;
|
|
123
123
|
mime: string;
|
|
124
124
|
name: string;
|
|
125
125
|
page_numbers: number;
|
|
126
126
|
updated_at: string;
|
|
127
127
|
url: string;
|
|
128
|
+
processed: boolean;
|
|
129
|
+
type: 'attachment' | 'certificate';
|
|
130
|
+
created_at: string;
|
|
128
131
|
pages?: IPage[];
|
|
129
132
|
}
|
|
130
133
|
export interface IDocumentFieldOptions {
|
|
@@ -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
|
}); };
|
package/Templates/Types.d.ts
CHANGED
|
@@ -258,6 +258,7 @@ export interface ITemplateFieldSetting {
|
|
|
258
258
|
export interface IPage {
|
|
259
259
|
template_id: string;
|
|
260
260
|
document_id: string;
|
|
261
|
+
envelope_id: string;
|
|
261
262
|
/**
|
|
262
263
|
* Note: Page numbers are 1-based
|
|
263
264
|
*/
|
|
@@ -266,7 +267,7 @@ export interface IPage {
|
|
|
266
267
|
* @deprecated. New code should use `sequence`
|
|
267
268
|
*/
|
|
268
269
|
page_number: number;
|
|
269
|
-
thumbnail_url
|
|
270
|
+
thumbnail_url?: string;
|
|
270
271
|
/**
|
|
271
272
|
* The storage location for the page once rendered server-side. This can be used to determine whether a page has
|
|
272
273
|
* finished rendering, but cannot be accessed directly - client applications should use display_uri instead.
|