@chopkola/common 1.0.40 → 1.0.42
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.
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import type { LucideIcon } from "lucide-react";
|
|
2
2
|
import { VendorI } from "../user";
|
|
3
3
|
import { SystemLoggedActivityI, SystemPerformanceI } from "../global";
|
|
4
|
-
export declare
|
|
5
|
-
export declare enum AdminnistratorDashboardIconEnum {
|
|
4
|
+
export declare enum AdministratorDashboardIconEnum {
|
|
6
5
|
BADGE_DOLLAR_SIGN = "badge_dollar_sign",
|
|
7
6
|
WALLET = "wallet",
|
|
8
7
|
STORE = "store",
|
|
9
8
|
USERS = "user"
|
|
10
9
|
}
|
|
11
|
-
export declare type
|
|
10
|
+
export declare type BackendAdministratorStat = {
|
|
12
11
|
title: string;
|
|
13
12
|
value: string | number;
|
|
14
13
|
subtext?: string;
|
|
15
|
-
icon:
|
|
14
|
+
icon: AdministratorDashboardIconEnum;
|
|
16
15
|
color: string;
|
|
17
16
|
};
|
|
18
|
-
export declare type
|
|
17
|
+
export declare type AdministratorStat = {
|
|
19
18
|
title: string;
|
|
20
19
|
value: string | number;
|
|
21
20
|
subtext?: string;
|
|
22
|
-
icon:
|
|
21
|
+
icon: LucideIcon;
|
|
23
22
|
color: string;
|
|
24
23
|
};
|
|
25
24
|
export declare type AdminDashboardStats = {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(
|
|
11
|
-
;
|
|
3
|
+
exports.AdministratorDashboardIconEnum = void 0;
|
|
4
|
+
var AdministratorDashboardIconEnum;
|
|
5
|
+
(function (AdministratorDashboardIconEnum) {
|
|
6
|
+
AdministratorDashboardIconEnum["BADGE_DOLLAR_SIGN"] = "badge_dollar_sign";
|
|
7
|
+
AdministratorDashboardIconEnum["WALLET"] = "wallet";
|
|
8
|
+
AdministratorDashboardIconEnum["STORE"] = "store";
|
|
9
|
+
AdministratorDashboardIconEnum["USERS"] = "user";
|
|
10
|
+
})(AdministratorDashboardIconEnum = exports.AdministratorDashboardIconEnum || (exports.AdministratorDashboardIconEnum = {}));
|
package/build/types/global.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const ACCESS_TOKEN_EXPIRATION_DURATION = "15m";
|
|
2
2
|
export declare const REFRESH_TOKEN_EXPIRATION_DURATION = "1d";
|
|
3
|
+
export declare type SystemLogType = "info" | "success" | "warning" | "error";
|
|
3
4
|
export interface JwtPayload {
|
|
4
5
|
first_name: string;
|
|
5
6
|
last_name: string;
|
|
@@ -8,7 +9,11 @@ export interface JwtPayload {
|
|
|
8
9
|
userId: string;
|
|
9
10
|
}
|
|
10
11
|
export interface SystemLoggedActivityI {
|
|
11
|
-
id: string;
|
|
12
|
+
id: string | number;
|
|
13
|
+
event: string;
|
|
14
|
+
source: string;
|
|
15
|
+
time: string;
|
|
16
|
+
type: SystemLogType;
|
|
12
17
|
}
|
|
13
18
|
export interface SystemPerformanceI {
|
|
14
19
|
id: string;
|