@icure/be-fhc-api 0.6.14 → 0.6.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.
@@ -235,7 +235,7 @@ export declare class fhcHubApi {
235
235
  * @param externalHubId The ID of the hub (1990000035 for RSW, 1990000728 for Abrumet, 1990000134 for Cozo, 1990001916 for Vitalink, ...)
236
236
  * @param externalHubName The name of the hub, if applicable
237
237
  */
238
- getTransactionUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string, externalHubId?: string, externalHubName?: string): Promise<Kmehrmessage>;
238
+ getTransactionUsingGET(endpoint: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpLastName: string, hcpFirstName: string, hcpNihii: string, hcpSsin: string, hcpZip: string, ssin: string, sv: string, sl: string, id: string, hubPackageId?: string, breakTheGlassReason?: string, externalHubId?: string, externalHubName?: string): Promise<ArrayBuffer>;
239
239
  /**
240
240
  * This endpoint allows to retrieve the list of transactions for a patient. It requires the healthcare provider's information, the patient's SSIN, and the hub package ID. The date range, author information, and transaction types can be provided to filter the results.
241
241
  * @summary Get the list of transactions (documents, scans, ...) for a patient
package/api/fhcHubApi.js CHANGED
@@ -491,8 +491,8 @@ class fhcHubApi {
491
491
  xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
492
492
  xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
493
493
  xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
494
- return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
495
- .then(doc => new Kmehrmessage_1.Kmehrmessage(doc.body))
494
+ return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl, "application/octet-stream")
495
+ .then(doc => doc.body)
496
496
  .catch(err => this.handleError(err));
497
497
  }
498
498
  /**
@@ -41,8 +41,9 @@ export declare class fhcStsApi {
41
41
  * @param xFHCPassPhrase X-FHC-passPhrase
42
42
  * @param ssin ssin
43
43
  * @param xFHCKeystoreId X-FHC-keystoreId
44
+ * @param destination destination
44
45
  */
45
- getBearerTokenUsingGET(xFHCTokenId: string, xFHCPassPhrase: string, ssin: string, xFHCKeystoreId: string): Promise<BearerToken>;
46
+ getBearerTokenUsingGET(xFHCTokenId: string, xFHCPassPhrase: string, ssin: string, xFHCKeystoreId: string, destination?: string): Promise<BearerToken>;
46
47
  /**
47
48
  * Retrieves information about the keystore file associated with the given keystoreId. The keystoreId is the UUID returned by the uploadKeystore endpoint. The passPhrase is used to decrypt the keystore file. Returns a CertificateInfo object containing details about the keystore, such as validity period, owner, and other relevant information.
48
49
  * @summary Get information about the keystore file (validity, owner, etc.)
package/api/fhcStsApi.js CHANGED
@@ -65,14 +65,16 @@ class fhcStsApi {
65
65
  * @param xFHCPassPhrase X-FHC-passPhrase
66
66
  * @param ssin ssin
67
67
  * @param xFHCKeystoreId X-FHC-keystoreId
68
+ * @param destination destination
68
69
  */
69
- getBearerTokenUsingGET(xFHCTokenId, xFHCPassPhrase, ssin, xFHCKeystoreId) {
70
+ getBearerTokenUsingGET(xFHCTokenId, xFHCPassPhrase, ssin, xFHCKeystoreId, destination) {
70
71
  let _body = null;
71
72
  const _url = this.host +
72
73
  `/sts/token/bearer` +
73
74
  "?ts=" +
74
75
  new Date().getTime() +
75
- (ssin ? "&ssin=" + encodeURIComponent(String(ssin)) : "");
76
+ (ssin ? "&ssin=" + encodeURIComponent(String(ssin)) : "") +
77
+ (destination ? "&destination=" + encodeURIComponent(String(destination)) : "");
76
78
  let headers = this.headers;
77
79
  xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
78
80
  xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/be-fhc-api",
3
- "version": "0.6.14",
3
+ "version": "0.6.17",
4
4
  "description": "Typescript version of Freehealth Connector standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",