@chopkola/common 1.0.100 → 1.0.101

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,4 +1,4 @@
1
- import { PermissionEnum, UserAccountTypeEnum, VendorBusinessTypeEnum } from "./enum/user";
1
+ import { PermissionEnum, UserAccountTypeEnum, VendorStatusEnum } 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,7 +21,8 @@ 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
+ export declare type BusinessTypeFilterTab = "all" | VendorStatusEnum;
25
25
  export declare type PermissionCollectionType = PermissionEnum;
26
26
  export declare const filterTabs: readonly FilterTab[];
27
+ export declare const businessFilterTabs: readonly BusinessTypeFilterTab[];
27
28
  export declare const PermissionCollection: readonly PermissionEnum[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PermissionCollection = exports.filterTabs = exports.CART_SESSION_TOKEN_EXPIRATION_DURATION = exports.REFRESH_TOKEN_EXPIRATION_DURATION = exports.ACCESS_TOKEN_EXPIRATION_DURATION = void 0;
3
+ exports.PermissionCollection = exports.businessFilterTabs = exports.filterTabs = exports.CART_SESSION_TOKEN_EXPIRATION_DURATION = exports.REFRESH_TOKEN_EXPIRATION_DURATION = exports.ACCESS_TOKEN_EXPIRATION_DURATION = void 0;
4
4
  const user_1 = require("./enum/user");
5
5
  exports.ACCESS_TOKEN_EXPIRATION_DURATION = '1h';
6
6
  exports.REFRESH_TOKEN_EXPIRATION_DURATION = '1d';
@@ -9,6 +9,10 @@ exports.filterTabs = [
9
9
  "all",
10
10
  ...Object.values(user_1.UserAccountTypeEnum),
11
11
  ];
12
+ exports.businessFilterTabs = [
13
+ "all",
14
+ ...Object.values(user_1.VendorStatusEnum),
15
+ ];
12
16
  exports.PermissionCollection = [
13
17
  "*",
14
18
  ...Object.values(user_1.PermissionEnum),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chopkola/common",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "akrosoft technology ltd",