@veloceapps/api 9.0.0-15 → 9.0.0-17
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/esm2020/lib/services/document-templates-api.service.mjs +2 -7
- package/fesm2015/veloceapps-api.mjs +2 -6
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +1 -6
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/lib/services/document-templates-api.service.d.ts +0 -6
- package/package.json +1 -1
@@ -971,9 +971,6 @@ class DocumentTemplatesApiService {
|
|
971
971
|
this.fileDownloadService.processDownload(response);
|
972
972
|
}), map(response => response.body || response));
|
973
973
|
}
|
974
|
-
/**
|
975
|
-
* @deprecated
|
976
|
-
*/
|
977
974
|
mergeDocuments(document, attachments) {
|
978
975
|
const body = new FormData();
|
979
976
|
attachments.forEach(attachment => {
|
@@ -985,6 +982,7 @@ class DocumentTemplatesApiService {
|
|
985
982
|
});
|
986
983
|
}
|
987
984
|
generateDocumentV2(body, quoteId, isAsync) {
|
985
|
+
body['docgenURL'] = window.VELO_DOCGEN_API ?? '';
|
988
986
|
const params = {};
|
989
987
|
if (isAsync) {
|
990
988
|
params['async'] = 'true';
|
@@ -1034,9 +1032,6 @@ class DocumentTemplatesApiService {
|
|
1034
1032
|
...templateProperties,
|
1035
1033
|
});
|
1036
1034
|
}
|
1037
|
-
/**
|
1038
|
-
* @deprecated
|
1039
|
-
*/
|
1040
1035
|
generateDocument(template, object, params = {}) {
|
1041
1036
|
const documentData$ = this.generateDocumentData(template, object, { ...params, shouldPreventDownload: true });
|
1042
1037
|
return zip(this.getTemplateFile(template.id), documentData$, this.resolveAttachments$(template)).pipe(switchMap(([templateFile, data, attachments]) => {
|