@verdocs/js-sdk 6.2.0-beta.2 → 6.2.0-beta.4

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/dist/index.mjs CHANGED
@@ -1766,7 +1766,7 @@ const getEnvelopes = (endpoint, params) => endpoint.api //
1766
1766
  * owner of each envelope. The returned ZIP file contains a folder for each envelope.
1767
1767
  */
1768
1768
  const getEnvelopesZip = (endpoint, envelope_ids) => endpoint.api //
1769
- .get(`/v2/envelopes/zip/${envelope_ids.join(',')}`);
1769
+ .get(`/v2/envelopes/zip/${envelope_ids.join(',')}`, { responseType: 'blob', timeout: 120000 });
1770
1770
 
1771
1771
  /**
1772
1772
  * Create an initials block. In a typical signing workflow, the user is asked at the beginning of the process to
@@ -3477,9 +3477,10 @@ const toggleTemplateStar = (endpoint, templateId) => endpoint.api //
3477
3477
  * @apiBody string(format:binary) file Document file to attach. The file name will automatically be used as the document name.
3478
3478
  * @apiSuccess ITemplateDocument . Template document
3479
3479
  */
3480
- const createTemplateDocument = (endpoint, file, onUploadProgress) => {
3480
+ const createTemplateDocument = (endpoint, template_id, file, onUploadProgress) => {
3481
3481
  const formData = new FormData();
3482
3482
  formData.append('document', file, file.name);
3483
+ formData.append('template_id', template_id);
3483
3484
  return endpoint.api //
3484
3485
  .post(`/v2/template-documents`, formData, {
3485
3486
  timeout: 120000,