@onhand-bi/sdk 0.1.9 → 0.1.11

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": "@onhand-bi/sdk",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
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
  }
@@ -2,6 +2,8 @@ import { AppResponse, Report, ReportResponse } from '../models';
2
2
  export declare class ClientService {
3
3
  static validateToken(token: string): Promise<import("axios").AxiosResponse<any, any>>;
4
4
  static getReports(token: string, requestParams?: any): Promise<Report>;
5
+ static getSubscriberReports(token: string, requestParams?: any): Promise<Report>;
6
+ static getTemplateReports(token: string, requestParams?: any): Promise<Report>;
5
7
  static getAppsOwner(token: string, requestParams?: any): Promise<Report>;
6
8
  static getAppsSubscribes(token: string, requestParams?: any): Promise<Report>;
7
9
  static getReport(token: string, reportId: number, isOwner?: boolean): Promise<ReportResponse>;
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(): unknown;
8
- logout(): Promise<void>;
9
- getToken(): Promise<string>;
10
- private updateToken;
11
- private getRpt;
12
- private refresh;
13
- }