@icure/be-fhc-api 0.5.3 → 0.5.5
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/package.json +1 -1
- package/x-api/message-x-api.js +7 -4
package/package.json
CHANGED
package/x-api/message-x-api.js
CHANGED
|
@@ -487,7 +487,7 @@ class MessageXApi {
|
|
|
487
487
|
`mycarenet:efact:inputReference:${ref}`,
|
|
488
488
|
efactMessage.tack.appliesTo,
|
|
489
489
|
efactMessage.tack.reference
|
|
490
|
-
]
|
|
490
|
+
].filter(x => x != null)
|
|
491
491
|
}))
|
|
492
492
|
.then((rcpt) => this.receiptXApi.iccApi.setReceiptAttachmentForBlobType(rcpt.id, rcpt.rev, "tack", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(efactMessage)))))
|
|
493
493
|
.then(() => {
|
|
@@ -711,7 +711,8 @@ class MessageXApi {
|
|
|
711
711
|
"invoicingCodes",
|
|
712
712
|
"error",
|
|
713
713
|
"receipts",
|
|
714
|
-
"encryptedSelf"
|
|
714
|
+
"encryptedSelf",
|
|
715
|
+
"securityMetadata"
|
|
715
716
|
])))
|
|
716
717
|
.then(niv => {
|
|
717
718
|
iv.correctiveInvoiceId = niv.id;
|
|
@@ -911,13 +912,15 @@ class MessageXApi {
|
|
|
911
912
|
]))
|
|
912
913
|
.then(([jsonDoc, doc]) => Promise.all([
|
|
913
914
|
this.documentXApi.setClearDocumentAttachment(jsonDoc, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.records))), ["public.json"]),
|
|
914
|
-
this.documentXApi.setClearDocumentAttachment(doc, (0, api_1.ua2ab)((0, api_1.string2ua)(res.detail)), [
|
|
915
|
+
this.documentXApi.setClearDocumentAttachment(doc, (0, api_1.ua2ab)((0, api_1.string2ua)(res.detail)), [
|
|
916
|
+
"public.plain-text"
|
|
917
|
+
])
|
|
915
918
|
]))
|
|
916
919
|
.then(() => this.receiptXApi.iccApi.logReceipt(user, msg.id, [
|
|
917
920
|
`mycarenet:efact:inputReference:${res.inputReference}`,
|
|
918
921
|
res.tack.appliesTo,
|
|
919
922
|
res.tack.reference
|
|
920
|
-
], "tack", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.tack)))));
|
|
923
|
+
].filter(x => x != null), "tack", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.tack)))));
|
|
921
924
|
}
|
|
922
925
|
}
|
|
923
926
|
exports.MessageXApi = MessageXApi;
|