@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 +1 -1
- package/dist/enum.js +1 -1
- package/dist/iam/api/get-admins.d.ts +1 -0
- package/dist/iam/api/get-session.d.ts +12 -0
- package/dist/iam/api/{get-roles.js → get-session.js} +6 -6
- package/dist/iam/index.d.ts +1 -1
- package/dist/iam/index.js +1 -1
- package/package.json +1 -1
- package/dist/iam/api/get-roles.d.ts +0 -10
package/dist/enum.d.ts
CHANGED
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["
|
|
64
|
+
LicensePlan["Basic"] = "basic";
|
|
65
65
|
LicensePlan["Pro"] = "pro";
|
|
66
66
|
LicensePlan["Premium"] = "premium";
|
|
67
67
|
LicensePlan["Cashback"] = "cashback";
|
|
@@ -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
|
|
41
|
-
function
|
|
40
|
+
var GetSessionAdminAPI = /** @class */ (function () {
|
|
41
|
+
function GetSessionAdminAPI() {
|
|
42
42
|
}
|
|
43
|
-
|
|
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/
|
|
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
|
|
57
|
+
return GetSessionAdminAPI;
|
|
58
58
|
}());
|
|
59
|
-
export {
|
|
59
|
+
export { GetSessionAdminAPI };
|
package/dist/iam/index.d.ts
CHANGED
|
@@ -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 {
|
|
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 {
|
|
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