@icure/be-fhc-api 0.5.3 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/be-fhc-api",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Typescript version of Freehealth Connector standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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(() => {
@@ -911,13 +911,15 @@ class MessageXApi {
911
911
  ]))
912
912
  .then(([jsonDoc, doc]) => Promise.all([
913
913
  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)), ["public.plain-text"])
914
+ this.documentXApi.setClearDocumentAttachment(doc, (0, api_1.ua2ab)((0, api_1.string2ua)(res.detail)), [
915
+ "public.plain-text"
916
+ ])
915
917
  ]))
916
918
  .then(() => this.receiptXApi.iccApi.logReceipt(user, msg.id, [
917
919
  `mycarenet:efact:inputReference:${res.inputReference}`,
918
920
  res.tack.appliesTo,
919
921
  res.tack.reference
920
- ], "tack", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.tack)))));
922
+ ].filter((x) => x != null), "tack", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.tack)))));
921
923
  }
922
924
  }
923
925
  exports.MessageXApi = MessageXApi;