@chopkola/common 1.0.95 → 1.0.97
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/types/apis/{access.control.list.type.d.ts → administrator/access.control.list.type.d.ts} +2 -2
- package/build/types/apis/{administrator.dashboard.type.d.ts → administrator/administrator.dashboard.type.d.ts} +2 -2
- package/build/types/apis/administrator/administrator.vendor.management.type.d.ts +31 -0
- package/build/types/apis/administrator/administrator.vendor.management.type.js +7 -0
- package/build/types/apis/{create.administrator.type.d.ts → administrator/create.administrator.type.d.ts} +1 -1
- package/build/types/apis/{system.user.management.type.d.ts → administrator/system.user.management.type.d.ts} +2 -2
- package/build/types/apis/index.d.ts +4 -4
- package/build/types/apis/index.js +4 -4
- package/build/types/global.d.ts +2 -1
- package/build/types/user.d.ts +1 -0
- package/package.json +1 -1
- /package/build/types/apis/{access.control.list.type.js → administrator/access.control.list.type.js} +0 -0
- /package/build/types/apis/{administrator.dashboard.type.js → administrator/administrator.dashboard.type.js} +0 -0
- /package/build/types/apis/{create.administrator.type.js → administrator/create.administrator.type.js} +0 -0
- /package/build/types/apis/{system.user.management.type.js → administrator/system.user.management.type.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PermissionEnum } from "
|
|
2
|
-
import { PermissionI, RoleI } from "
|
|
1
|
+
import { PermissionEnum } from "../../enum/user";
|
|
2
|
+
import { PermissionI, RoleI } from "../../user";
|
|
3
3
|
export declare type AccessControlListResourceData = {
|
|
4
4
|
resources: string[];
|
|
5
5
|
permissionActions: PermissionEnum[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LucideIcon } from "lucide-react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { SystemLoggedActivityI, SystemPerformanceI } from "../../global";
|
|
3
|
+
import { VendorI } from "../../user";
|
|
4
4
|
export declare enum AdministratorDashboardIconEnum {
|
|
5
5
|
BADGE_DOLLAR_SIGN = "badge_dollar_sign",
|
|
6
6
|
WALLET = "wallet",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LucideIcon } from "lucide-react";
|
|
2
|
+
import { BusinessTypeFilterTab } from "../../global";
|
|
3
|
+
import { VendorI } from "../../user";
|
|
4
|
+
export declare enum AdministratorVendorManagementIconEnum {
|
|
5
|
+
STORE = "store"
|
|
6
|
+
}
|
|
7
|
+
export declare type BackendAdministratorVendorStat = {
|
|
8
|
+
title: string;
|
|
9
|
+
value: string | number;
|
|
10
|
+
icon: AdministratorVendorManagementIconEnum;
|
|
11
|
+
bg_color: string;
|
|
12
|
+
text_color: string;
|
|
13
|
+
};
|
|
14
|
+
export declare type AdministratorVendorStat = {
|
|
15
|
+
title: string;
|
|
16
|
+
value: string | number;
|
|
17
|
+
icon: LucideIcon;
|
|
18
|
+
bg_color: string;
|
|
19
|
+
text_color: string;
|
|
20
|
+
};
|
|
21
|
+
export declare type AdministratorVendorsStats = {
|
|
22
|
+
total_users: BackendAdministratorVendorStat;
|
|
23
|
+
active_users: BackendAdministratorVendorStat;
|
|
24
|
+
new_today: BackendAdministratorVendorStat;
|
|
25
|
+
suspended_users: BackendAdministratorVendorStat;
|
|
26
|
+
};
|
|
27
|
+
export declare type AdministratorVendorManagementData = {
|
|
28
|
+
stats: AdministratorVendorsStats;
|
|
29
|
+
business_types?: BusinessTypeFilterTab;
|
|
30
|
+
vendors: VendorI[];
|
|
31
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdministratorVendorManagementIconEnum = void 0;
|
|
4
|
+
var AdministratorVendorManagementIconEnum;
|
|
5
|
+
(function (AdministratorVendorManagementIconEnum) {
|
|
6
|
+
AdministratorVendorManagementIconEnum["STORE"] = "store";
|
|
7
|
+
})(AdministratorVendorManagementIconEnum = exports.AdministratorVendorManagementIconEnum || (exports.AdministratorVendorManagementIconEnum = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LucideIcon } from "lucide-react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { FilterTab } from "../../global";
|
|
3
|
+
import { UserI } from "../../user";
|
|
4
4
|
export declare enum SystemUserManagementIconEnum {
|
|
5
5
|
USER_X = "user_x",
|
|
6
6
|
USER_CHECK = "user_check",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './system.user.management.type';
|
|
2
|
-
export * from './administrator.dashboard.type';
|
|
3
|
-
export * from './access.control.list.type';
|
|
4
|
-
export * from './create.administrator.type';
|
|
1
|
+
export * from './administrator/system.user.management.type';
|
|
2
|
+
export * from './administrator/administrator.dashboard.type';
|
|
3
|
+
export * from './administrator/access.control.list.type';
|
|
4
|
+
export * from './administrator/create.administrator.type';
|
|
5
5
|
export * from './vendor/vendor.user.summary.statistics.resource.data';
|
|
6
6
|
export * from './vendor/active.business';
|
|
7
7
|
export * from './vendor/active.business.summary.statistics.and.page.resource';
|
|
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./system.user.management.type"), exports);
|
|
18
|
-
__exportStar(require("./administrator.dashboard.type"), exports);
|
|
19
|
-
__exportStar(require("./access.control.list.type"), exports);
|
|
20
|
-
__exportStar(require("./create.administrator.type"), exports);
|
|
17
|
+
__exportStar(require("./administrator/system.user.management.type"), exports);
|
|
18
|
+
__exportStar(require("./administrator/administrator.dashboard.type"), exports);
|
|
19
|
+
__exportStar(require("./administrator/access.control.list.type"), exports);
|
|
20
|
+
__exportStar(require("./administrator/create.administrator.type"), exports);
|
|
21
21
|
__exportStar(require("./vendor/vendor.user.summary.statistics.resource.data"), exports);
|
|
22
22
|
__exportStar(require("./vendor/active.business"), exports);
|
|
23
23
|
__exportStar(require("./vendor/active.business.summary.statistics.and.page.resource"), exports);
|
package/build/types/global.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PermissionEnum, UserAccountTypeEnum } from "./enum/user";
|
|
1
|
+
import { PermissionEnum, UserAccountTypeEnum, VendorBusinessTypeEnum } from "./enum/user";
|
|
2
2
|
export declare const ACCESS_TOKEN_EXPIRATION_DURATION = "1h";
|
|
3
3
|
export declare const REFRESH_TOKEN_EXPIRATION_DURATION = "1d";
|
|
4
4
|
export declare const CART_SESSION_TOKEN_EXPIRATION_DURATION = "30d";
|
|
@@ -21,6 +21,7 @@ export interface SystemPerformanceI {
|
|
|
21
21
|
id: string;
|
|
22
22
|
}
|
|
23
23
|
export declare type FilterTab = "all" | UserAccountTypeEnum;
|
|
24
|
+
export declare type BusinessTypeFilterTab = "all" | VendorBusinessTypeEnum;
|
|
24
25
|
export declare type PermissionCollectionType = PermissionEnum;
|
|
25
26
|
export declare const filterTabs: readonly FilterTab[];
|
|
26
27
|
export declare const PermissionCollection: readonly PermissionEnum[];
|
package/build/types/user.d.ts
CHANGED
package/package.json
CHANGED
/package/build/types/apis/{access.control.list.type.js → administrator/access.control.list.type.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|