@kiminix/tp-client 2.58.5 → 2.60.0

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/dist/enum.d.ts CHANGED
@@ -51,7 +51,7 @@ export declare enum CashbackTransactionType {
51
51
  Update = "update"
52
52
  }
53
53
  export declare enum LicensePlan {
54
- Free = "free",
54
+ Basic = "basic",
55
55
  Pro = "pro",
56
56
  Premium = "premium",
57
57
  Cashback = "cashback"
package/dist/enum.js CHANGED
@@ -61,7 +61,7 @@ export var CashbackTransactionType;
61
61
  })(CashbackTransactionType || (CashbackTransactionType = {}));
62
62
  export var LicensePlan;
63
63
  (function (LicensePlan) {
64
- LicensePlan["Free"] = "free";
64
+ LicensePlan["Basic"] = "basic";
65
65
  LicensePlan["Pro"] = "pro";
66
66
  LicensePlan["Premium"] = "premium";
67
67
  LicensePlan["Cashback"] = "cashback";
@@ -9,5 +9,6 @@ export declare namespace GetAdminsAPI {
9
9
  firstName: string;
10
10
  lastName: string;
11
11
  roles: string[];
12
+ email: string;
12
13
  }
13
14
  }
@@ -0,0 +1,12 @@
1
+ import { LicensePlan } from "../../enum";
2
+ export declare class GetSessionAdminAPI {
3
+ static get(props: {
4
+ token?: string | undefined;
5
+ }): Promise<GetSessionAdminAPI.Response>;
6
+ }
7
+ export declare namespace GetSessionAdminAPI {
8
+ interface Response {
9
+ plan: LicensePlan;
10
+ roles: string[];
11
+ }
12
+ }
@@ -37,14 +37,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  import axios from "axios";
38
38
  import { RequestUtils } from "../../utils/request-utils";
39
39
  import { base } from "../../constants";
40
- var GetRolesAdminAPI = /** @class */ (function () {
41
- function GetRolesAdminAPI() {
40
+ var GetSessionAdminAPI = /** @class */ (function () {
41
+ function GetSessionAdminAPI() {
42
42
  }
43
- GetRolesAdminAPI.get = function (props) {
43
+ GetSessionAdminAPI.get = function (props) {
44
44
  return __awaiter(this, void 0, void 0, function () {
45
45
  return __generator(this, function (_a) {
46
46
  return [2 /*return*/, RequestUtils.send(function () {
47
- return axios.get(base + "/iam/admin/roles", {
47
+ return axios.get(base + "/iam/admin/session", {
48
48
  headers: {
49
49
  'Authorization': "".concat(props.token)
50
50
  }
@@ -54,6 +54,6 @@ var GetRolesAdminAPI = /** @class */ (function () {
54
54
  });
55
55
  });
56
56
  };
57
- return GetRolesAdminAPI;
57
+ return GetSessionAdminAPI;
58
58
  }());
59
- export { GetRolesAdminAPI };
59
+ export { GetSessionAdminAPI };
@@ -6,7 +6,7 @@ export * from './types/user-signup-validate';
6
6
  export * from './types/user-signup';
7
7
  export { IamAdminAPIs } from './api/signin-admin';
8
8
  export { IamUserAPIs } from './user-apis';
9
- export { GetRolesAdminAPI } from './api/get-roles';
9
+ export { GetSessionAdminAPI } from './api/get-session';
10
10
  export { GetAdminsAPI } from './api/get-admins';
11
11
  export { UpdateRolesAdminsAPI } from './api/update-roles';
12
12
  export { DeleteAdminsAPI } from './api/delete-admin';
package/dist/iam/index.js CHANGED
@@ -7,7 +7,7 @@ export * from './types/user-signup';
7
7
  export { IamAdminAPIs } from './api/signin-admin';
8
8
  export { IamUserAPIs } from './user-apis';
9
9
  // api
10
- export { GetRolesAdminAPI } from './api/get-roles';
10
+ export { GetSessionAdminAPI } from './api/get-session';
11
11
  export { GetAdminsAPI } from './api/get-admins';
12
12
  export { UpdateRolesAdminsAPI } from './api/update-roles';
13
13
  export { DeleteAdminsAPI } from './api/delete-admin';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiminix/tp-client",
3
- "version": "2.58.5",
3
+ "version": "2.60.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -1,10 +0,0 @@
1
- export declare class GetRolesAdminAPI {
2
- static get(props: {
3
- token?: string | undefined;
4
- }): Promise<GetRolesAdminAPI.Roles>;
5
- }
6
- export declare namespace GetRolesAdminAPI {
7
- interface Roles {
8
- roles: string[];
9
- }
10
- }