@chopkola/common 1.0.31 → 1.0.33
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/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ComponentType, SVGProps } from "react";
|
|
2
|
+
import { VendorI } from "../user";
|
|
3
|
+
export declare enum AdminnistratorDashboardIconEnum {
|
|
4
|
+
BADGE_DOLLAR_SIGN = "badge_dollar_sign",
|
|
5
|
+
WALLET = "wallet",
|
|
6
|
+
STORE = "store",
|
|
7
|
+
USERS = "user"
|
|
8
|
+
}
|
|
9
|
+
export declare type AdministratorStat = {
|
|
10
|
+
title: string;
|
|
11
|
+
value: string | number;
|
|
12
|
+
subtext?: string;
|
|
13
|
+
icon: ComponentType<SVGProps<SVGSVGElement>>;
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
export declare type BackendAdministratorStat = {
|
|
17
|
+
title: string;
|
|
18
|
+
value: string | number;
|
|
19
|
+
subtext?: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
export declare type AdminDashboardStats = {
|
|
24
|
+
total_revenue: BackendAdministratorStat;
|
|
25
|
+
platform_commission: BackendAdministratorStat;
|
|
26
|
+
active_vendors: BackendAdministratorStat;
|
|
27
|
+
active_users: BackendAdministratorStat;
|
|
28
|
+
};
|
|
29
|
+
export declare type SystemActivity = {
|
|
30
|
+
id: string;
|
|
31
|
+
type: string;
|
|
32
|
+
description: string;
|
|
33
|
+
created_at: string;
|
|
34
|
+
};
|
|
35
|
+
export declare type PerformanceData = Record<string, number | string | boolean | null>;
|
|
36
|
+
export declare type AdministratorDashboardData = {
|
|
37
|
+
stats: AdminDashboardStats;
|
|
38
|
+
vendor_applications: VendorI[];
|
|
39
|
+
system_activities: SystemActivity[];
|
|
40
|
+
performance_data: PerformanceData;
|
|
41
|
+
};
|
|
42
|
+
export declare type GetAdministratorDashboardPageResourceI = {
|
|
43
|
+
data: AdministratorDashboardData;
|
|
44
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminnistratorDashboardIconEnum = void 0;
|
|
4
|
+
var AdminnistratorDashboardIconEnum;
|
|
5
|
+
(function (AdminnistratorDashboardIconEnum) {
|
|
6
|
+
AdminnistratorDashboardIconEnum["BADGE_DOLLAR_SIGN"] = "badge_dollar_sign";
|
|
7
|
+
AdminnistratorDashboardIconEnum["WALLET"] = "wallet";
|
|
8
|
+
AdminnistratorDashboardIconEnum["STORE"] = "store";
|
|
9
|
+
AdminnistratorDashboardIconEnum["USERS"] = "user";
|
|
10
|
+
})(AdminnistratorDashboardIconEnum = exports.AdminnistratorDashboardIconEnum || (exports.AdminnistratorDashboardIconEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './administrator.dashboard.type';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./administrator.dashboard.type"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chopkola/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "akrosoft technology ltd",
|
|
@@ -19,9 +19,11 @@
|
|
|
19
19
|
"@types/express": "^5.0.6",
|
|
20
20
|
"@types/jsonwebtoken": "^9.0.10",
|
|
21
21
|
"@types/multer": "^2.0.0",
|
|
22
|
+
"@types/react": "^19.2.7",
|
|
22
23
|
"express": "^5.2.1",
|
|
23
24
|
"jsonwebtoken": "^9.0.3",
|
|
24
|
-
"multer": "^2.0.2"
|
|
25
|
+
"multer": "^2.0.2",
|
|
26
|
+
"react": "^19.2.3"
|
|
25
27
|
},
|
|
26
28
|
"devDependencies": {
|
|
27
29
|
"del-cli": "^7.0.0"
|