@icure/be-fhc-api 0.6.15 → 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.
@@ -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.15",
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",