@chopkola/common 1.0.54 → 1.0.55
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/enum/user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BusinessTypeEnum = exports.DietryPreferencesEnum = exports.UserGenderEnum = exports.AdministratorRoleEnum = exports.UserAccountTypeEnum = void 0;
|
|
3
|
+
exports.Permission = exports.BusinessTypeEnum = exports.DietryPreferencesEnum = exports.UserGenderEnum = exports.AdministratorRoleEnum = exports.UserAccountTypeEnum = void 0;
|
|
4
4
|
var UserAccountTypeEnum;
|
|
5
5
|
(function (UserAccountTypeEnum) {
|
|
6
6
|
UserAccountTypeEnum["CUSTOMER"] = "customer";
|
|
@@ -33,3 +33,10 @@ var BusinessTypeEnum;
|
|
|
33
33
|
BusinessTypeEnum["GROCERY"] = "grocery";
|
|
34
34
|
BusinessTypeEnum["BOTH"] = "both";
|
|
35
35
|
})(BusinessTypeEnum = exports.BusinessTypeEnum || (exports.BusinessTypeEnum = {}));
|
|
36
|
+
var Permission;
|
|
37
|
+
(function (Permission) {
|
|
38
|
+
Permission["CREATE"] = "create";
|
|
39
|
+
Permission["READ"] = "read";
|
|
40
|
+
Permission["UPDATE"] = "update";
|
|
41
|
+
Permission["DELETE"] = "delete";
|
|
42
|
+
})(Permission = exports.Permission || (exports.Permission = {}));
|
package/build/types/global.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserAccountTypeEnum } from "./enum/user";
|
|
1
|
+
import { Permission, UserAccountTypeEnum } 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,4 +21,6 @@ export interface SystemPerformanceI {
|
|
|
21
21
|
id: string;
|
|
22
22
|
}
|
|
23
23
|
export declare type FilterTab = "all" | UserAccountTypeEnum;
|
|
24
|
+
export declare type PermissionCollectionType = Permission;
|
|
24
25
|
export declare const filterTabs: readonly FilterTab[];
|
|
26
|
+
export declare const PermissionCollection: readonly Permission[];
|
package/build/types/global.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filterTabs = exports.CART_SESSION_TOKEN_EXPIRATION_DURATION = exports.REFRESH_TOKEN_EXPIRATION_DURATION = exports.ACCESS_TOKEN_EXPIRATION_DURATION = void 0;
|
|
3
|
+
exports.PermissionCollection = 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,3 +9,7 @@ exports.filterTabs = [
|
|
|
9
9
|
"all",
|
|
10
10
|
...Object.values(user_1.UserAccountTypeEnum),
|
|
11
11
|
];
|
|
12
|
+
exports.PermissionCollection = [
|
|
13
|
+
"*",
|
|
14
|
+
...Object.values(user_1.Permission),
|
|
15
|
+
];
|