@onhand-bi/sdk 0.1.8 → 0.1.10

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.
@@ -11,3 +11,14 @@
11
11
  * Copyright(c) 2015 Douglas Christopher Wilson
12
12
  * MIT Licensed
13
13
  */
14
+
15
+ /*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */
16
+
17
+ /**
18
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
19
+ *
20
+ * @version 0.11.0
21
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
22
+ * @copyright Chen, Yi-Cyuan 2014-2024
23
+ * @license MIT
24
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onhand-bi/sdk",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "OnhandBI SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -3,6 +3,6 @@ export declare class CClientService {
3
3
  static getAccessToken(credential: CClientCredential): Promise<string>;
4
4
  static getReports(token: string): Promise<WithMessage<ReportModel[]>>;
5
5
  static getReportAccessToken(token: string, email: string): Promise<WithMessage<CClientGetTokenResponse>>;
6
- static getRpt(realm: string, token: string): Promise<KeycloakTokenResponse>;
6
+ static getRequestingPartyToken(realm: string, token: string): Promise<KeycloakTokenResponse>;
7
7
  static refreshToken(realm: string, token: string): Promise<KeycloakTokenResponse>;
8
8
  }
package/util/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export declare const createTokenUrl: (realm: string) => string;
2
+ export declare const createRequestingPartyTokenUrl: (realm: string) => string;
@@ -1,13 +0,0 @@
1
- export declare class BaseClient {
2
- private keycloak;
3
- private rpt;
4
- private refreshRpt;
5
- constructor(clientId: string);
6
- initialize(): Promise<void>;
7
- tokenParsed(): import("keycloak-js").KeycloakTokenParsed | undefined;
8
- logout(): Promise<void>;
9
- getToken(): Promise<string>;
10
- private updateToken;
11
- private getRpt;
12
- private refresh;
13
- }