@veloceapps/api 8.0.0-161 → 8.0.0-163
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 +4 -2
- package/esm2020/lib/services/procedures-api.service.mjs +7 -1
- package/fesm2015/veloceapps-api.mjs +11 -3
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +9 -1
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/lib/services/procedures-api.service.d.ts +1 -0
- package/package.json +1 -1
@@ -1009,7 +1009,9 @@ class DocumentTemplatesApiService {
|
|
1009
1009
|
return zip(this.getTemplateFile(template.id), documentData$, this.resolveAttachments$(template)).pipe(switchMap(([templateFile, data, attachments]) => {
|
1010
1010
|
const document = DocxTemplater.generate(templateFile, data);
|
1011
1011
|
const properties = object?.context?.properties ?? object?.properties ?? {};
|
1012
|
-
const documentName = properties
|
1012
|
+
const documentName = template.properties?.find(({ name }) => name === 'documentName')?.value ||
|
1013
|
+
properties['Name'] ||
|
1014
|
+
template.name;
|
1013
1015
|
const documentFormat = params.documentFormat ?? template.properties?.find(p => p.name === 'documentFormat')?.value;
|
1014
1016
|
if (documentFormat === 'DOCX') {
|
1015
1017
|
this.fileDownloadService.processDownload(document, documentName);
|
@@ -1816,6 +1818,12 @@ class ProceduresApiService {
|
|
1816
1818
|
body,
|
1817
1819
|
});
|
1818
1820
|
}
|
1821
|
+
fetchDefaultPricingSteps$() {
|
1822
|
+
return this.baseHttpService.api({
|
1823
|
+
url: `${this.ADMIN_SERVICE_URL}/pricing-steps`,
|
1824
|
+
method: 'get',
|
1825
|
+
});
|
1826
|
+
}
|
1819
1827
|
}
|
1820
1828
|
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1821
1829
|
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|