@chopkola/common 1.0.42 → 1.0.44

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.
@@ -5,7 +5,7 @@ export declare enum AdministratorDashboardIconEnum {
5
5
  BADGE_DOLLAR_SIGN = "badge_dollar_sign",
6
6
  WALLET = "wallet",
7
7
  STORE = "store",
8
- USERS = "user"
8
+ USERS = "users"
9
9
  }
10
10
  export declare type BackendAdministratorStat = {
11
11
  title: string;
@@ -6,5 +6,5 @@ var AdministratorDashboardIconEnum;
6
6
  AdministratorDashboardIconEnum["BADGE_DOLLAR_SIGN"] = "badge_dollar_sign";
7
7
  AdministratorDashboardIconEnum["WALLET"] = "wallet";
8
8
  AdministratorDashboardIconEnum["STORE"] = "store";
9
- AdministratorDashboardIconEnum["USERS"] = "user";
9
+ AdministratorDashboardIconEnum["USERS"] = "users";
10
10
  })(AdministratorDashboardIconEnum = exports.AdministratorDashboardIconEnum || (exports.AdministratorDashboardIconEnum = {}));
@@ -1,8 +1,27 @@
1
- import { RoleI, UserI } from "../user";
2
- export declare type AdministratorSystemUserData = {
1
+ import { LucideIcon } from "lucide-react";
2
+ import { UserI } from "../user";
3
+ export declare enum SystemUserManagementIconEnum {
4
+ USER_X = "user_x",
5
+ USER_CHECK = "user_check",
6
+ USER = "user"
7
+ }
8
+ export declare type BackendSystemUserStat = {
9
+ title: string;
10
+ value: string | number;
11
+ icon: SystemUserManagementIconEnum;
12
+ bg_color: string;
13
+ text_color: string;
14
+ };
15
+ export declare type SystemUserStat = {
16
+ title: string;
17
+ value: string | number;
18
+ icon: LucideIcon;
19
+ color: string;
20
+ };
21
+ export declare type SystemUsersStats = {
22
+ total_users: BackendSystemUserStat;
23
+ };
24
+ export declare type SystemUserManagementData = {
25
+ stats: SystemUsersStats;
3
26
  users: UserI[];
4
- roles: RoleI[];
5
27
  };
6
- export interface GetSystemUserManagementPageResourceI {
7
- data: AdministratorSystemUserData;
8
- }
@@ -1,3 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- ;
3
+ exports.SystemUserManagementIconEnum = void 0;
4
+ var SystemUserManagementIconEnum;
5
+ (function (SystemUserManagementIconEnum) {
6
+ SystemUserManagementIconEnum["USER_X"] = "user_x";
7
+ SystemUserManagementIconEnum["USER_CHECK"] = "user_check";
8
+ SystemUserManagementIconEnum["USER"] = "user";
9
+ })(SystemUserManagementIconEnum = exports.SystemUserManagementIconEnum || (exports.SystemUserManagementIconEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chopkola/common",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "akrosoft technology ltd",