@chopkola/common 1.0.152 → 1.0.156
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 +2 -2
- package/build/index.js +2 -2
- package/build/types/address.d.ts +12 -0
- package/build/types/apis/administrator/access.control.list.type.d.ts +4 -4
- package/build/types/apis/administrator/administrator.category.management.type.d.ts +4 -4
- package/build/types/apis/administrator/administrator.dashboard.type.d.ts +5 -5
- package/build/types/apis/administrator/administrator.vendor.management.type.d.ts +3 -3
- package/build/types/apis/administrator/create.administrator.type.d.ts +2 -2
- package/build/types/apis/administrator/system.user.management.type.d.ts +3 -3
- package/build/types/apis/vendor/active.business.d.ts +3 -3
- package/build/types/apis/vendor/vendor.user.summary.statistics.resource.data.d.ts +3 -8
- package/build/types/apis/vendor/vendor.user.summary.statistics.resource.data.js +0 -8
- package/build/types/cart.d.ts +93 -27
- package/build/types/cart.js +0 -13
- package/build/types/category.d.ts +29 -27
- package/build/types/enum/collection.d.ts +125 -0
- package/build/types/enum/collection.js +149 -0
- package/build/types/global.d.ts +38 -34
- package/build/types/global.js +14 -7
- package/build/types/menu_n_meal.d.ts +102 -0
- package/build/types/menu_n_meal.js +5 -0
- package/build/types/products.d.ts +90 -103
- package/build/types/products.js +0 -41
- package/build/types/role_n_permission.d.ts +52 -0
- package/build/types/role_n_permission.js +5 -0
- package/build/types/user.d.ts +58 -69
- package/build/types/user.js +3 -9
- package/build/types/vendor.d.ts +82 -15
- package/package.json +1 -1
- package/build/types/enum/user.d.ts +0 -57
- package/build/types/enum/user.js +0 -71
- package/build/types/menus.d.ts +0 -95
- /package/build/types/{menus.js → address.js} +0 -0
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './types/user';
|
|
2
2
|
export * from './types/enum/error';
|
|
3
|
-
export * from './types/enum/
|
|
3
|
+
export * from './types/enum/collection';
|
|
4
4
|
export * from './types/enum/global';
|
|
5
5
|
export * from './types/global';
|
|
6
6
|
export * from './types/errors/index';
|
|
@@ -11,5 +11,5 @@ export * from './types/apis';
|
|
|
11
11
|
export * from './types/file.types';
|
|
12
12
|
export * from './types/category';
|
|
13
13
|
export * from './types/vendor';
|
|
14
|
-
export * from './types/
|
|
14
|
+
export * from './types/menu_n_meal';
|
|
15
15
|
export * from './types/products';
|
package/build/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types/user"), exports);
|
|
18
18
|
__exportStar(require("./types/enum/error"), exports);
|
|
19
|
-
__exportStar(require("./types/enum/
|
|
19
|
+
__exportStar(require("./types/enum/collection"), exports);
|
|
20
20
|
__exportStar(require("./types/enum/global"), exports);
|
|
21
21
|
__exportStar(require("./types/global"), exports);
|
|
22
22
|
__exportStar(require("./types/errors/index"), exports);
|
|
@@ -27,5 +27,5 @@ __exportStar(require("./types/apis"), exports);
|
|
|
27
27
|
__exportStar(require("./types/file.types"), exports);
|
|
28
28
|
__exportStar(require("./types/category"), exports);
|
|
29
29
|
__exportStar(require("./types/vendor"), exports);
|
|
30
|
-
__exportStar(require("./types/
|
|
30
|
+
__exportStar(require("./types/menu_n_meal"), exports);
|
|
31
31
|
__exportStar(require("./types/products"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PermissionEnum } from "../../enum/
|
|
2
|
-
import {
|
|
1
|
+
import { PermissionEnum } from "../../enum/collection";
|
|
2
|
+
import { Permission, Role } from "../../role_n_permission";
|
|
3
3
|
export type AccessControlListResourceData = {
|
|
4
4
|
resources: string[];
|
|
5
5
|
permissionActions: PermissionEnum[];
|
|
6
|
-
permissions:
|
|
7
|
-
roles:
|
|
6
|
+
permissions: Permission[];
|
|
7
|
+
roles: Role[];
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Category, CategoryTreeNode } from "../../category";
|
|
2
2
|
export type CategoryItemStat = {
|
|
3
3
|
title: string;
|
|
4
4
|
value: string | number;
|
|
@@ -11,11 +11,11 @@ export type CategoryItemStats = {
|
|
|
11
11
|
};
|
|
12
12
|
export interface CategoryDetailsData {
|
|
13
13
|
stats: CategoryItemStats;
|
|
14
|
-
category:
|
|
14
|
+
category: Category;
|
|
15
15
|
}
|
|
16
16
|
export interface CreateOrEditCategoryData {
|
|
17
|
-
category:
|
|
18
|
-
parentCategory:
|
|
17
|
+
category: Category | null;
|
|
18
|
+
parentCategory: Category | null;
|
|
19
19
|
}
|
|
20
20
|
export type CategoryManagementData = {
|
|
21
21
|
roots: CategoryTreeNode[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LucideIcon } from "lucide-react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { SystemLoggedActivity, SystemPerformanceMetric } from "../../global";
|
|
3
|
+
import { Vendor } from "../../vendor";
|
|
4
4
|
export declare enum AdministratorDashboardIconEnum {
|
|
5
5
|
BADGE_DOLLAR_SIGN = "badge_dollar_sign",
|
|
6
6
|
WALLET = "wallet",
|
|
@@ -29,9 +29,9 @@ export type AdminDashboardStats = {
|
|
|
29
29
|
};
|
|
30
30
|
export type AdministratorDashboardData = {
|
|
31
31
|
stats: AdminDashboardStats;
|
|
32
|
-
vendor_applications:
|
|
33
|
-
system_activities:
|
|
34
|
-
performance_data:
|
|
32
|
+
vendor_applications: Vendor[];
|
|
33
|
+
system_activities: SystemLoggedActivity[];
|
|
34
|
+
performance_data: SystemPerformanceMetric[];
|
|
35
35
|
};
|
|
36
36
|
export interface GetAdministratorDashboardPageResourceI {
|
|
37
37
|
data: AdministratorDashboardData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LucideIcon } from "lucide-react";
|
|
2
2
|
import { BusinessTypeFilterTab } from "../../global";
|
|
3
|
-
import {
|
|
3
|
+
import { Vendor } from "../../vendor";
|
|
4
4
|
export declare enum AdministratorVendorManagementIconEnum {
|
|
5
5
|
STORE = "store"
|
|
6
6
|
}
|
|
@@ -27,11 +27,11 @@ export type AdministratorVendorsStats = {
|
|
|
27
27
|
export type AdministratorVendorManagementData = {
|
|
28
28
|
stats: AdministratorVendorsStats;
|
|
29
29
|
business_types?: BusinessTypeFilterTab;
|
|
30
|
-
vendors:
|
|
30
|
+
vendors: Vendor[];
|
|
31
31
|
};
|
|
32
32
|
export type AdministratorVendorDetailsManagementData = {
|
|
33
33
|
audit_logs: any[];
|
|
34
34
|
compliance_and_finance: any[];
|
|
35
35
|
operations?: any[];
|
|
36
|
-
vendor:
|
|
36
|
+
vendor: Vendor;
|
|
37
37
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LucideIcon } from "lucide-react";
|
|
2
2
|
import { FilterTab } from "../../global";
|
|
3
|
-
import {
|
|
3
|
+
import { User } from "../../user";
|
|
4
4
|
export declare enum SystemUserManagementIconEnum {
|
|
5
5
|
USER_X = "user_x",
|
|
6
6
|
USER_CHECK = "user_check",
|
|
@@ -29,10 +29,10 @@ export type SystemUsersStats = {
|
|
|
29
29
|
export type SystemUserManagementData = {
|
|
30
30
|
stats: SystemUsersStats;
|
|
31
31
|
account_types?: FilterTab;
|
|
32
|
-
users:
|
|
32
|
+
users: User[];
|
|
33
33
|
};
|
|
34
34
|
export type SystemUserDetailsManagementData = {
|
|
35
35
|
audit_logs: any[];
|
|
36
36
|
security_and_access?: any[];
|
|
37
|
-
user:
|
|
37
|
+
user: User;
|
|
38
38
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { LucideIcon } from "lucide-react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
BUILDING_2 = "building_2",
|
|
5
|
-
STORE = "store",
|
|
6
|
-
CLOCK = "clock",
|
|
7
|
-
BAN = "ban"
|
|
8
|
-
}
|
|
2
|
+
import { Vendor } from "../../vendor";
|
|
3
|
+
import { VendorUserSummaryStatisticsIconEnum } from "../../enum/collection";
|
|
9
4
|
export type BackendVendorUserSummaryStat = {
|
|
10
5
|
title: string;
|
|
11
6
|
value: string | number;
|
|
@@ -29,7 +24,7 @@ export type VendorUserStats = {
|
|
|
29
24
|
suspended: BackendVendorUserSummaryStat;
|
|
30
25
|
};
|
|
31
26
|
export type VendorUserSummaryStatisticsResourceData = {
|
|
32
|
-
businesses:
|
|
27
|
+
businesses: Vendor[];
|
|
33
28
|
actions: any[];
|
|
34
29
|
stats: VendorUserStats;
|
|
35
30
|
};
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VendorUserSummaryStatisticsIconEnum = void 0;
|
|
4
|
-
var VendorUserSummaryStatisticsIconEnum;
|
|
5
|
-
(function (VendorUserSummaryStatisticsIconEnum) {
|
|
6
|
-
VendorUserSummaryStatisticsIconEnum["BUILDING_2"] = "building_2";
|
|
7
|
-
VendorUserSummaryStatisticsIconEnum["STORE"] = "store";
|
|
8
|
-
VendorUserSummaryStatisticsIconEnum["CLOCK"] = "clock";
|
|
9
|
-
VendorUserSummaryStatisticsIconEnum["BAN"] = "ban";
|
|
10
|
-
})(VendorUserSummaryStatisticsIconEnum || (exports.VendorUserSummaryStatisticsIconEnum = VendorUserSummaryStatisticsIconEnum = {}));
|
package/build/types/cart.d.ts
CHANGED
|
@@ -1,32 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { CartItemTypeEnum, CartStatusEnum, CartTypeEnum } from "./enum/collection";
|
|
2
|
+
import { MoneyString, Timestamps, UUID, Nullable } from "./global";
|
|
3
|
+
import { SelectedModifierOption } from "./menu_n_meal";
|
|
4
|
+
/**
|
|
5
|
+
* PRODUCTION NOTE:
|
|
6
|
+
* We assign a `vendor_id` and `cart_type` directly to the Cart.
|
|
7
|
+
* In food delivery platforms (like UberEats/Instacart), you generally
|
|
8
|
+
* cannot mix hot restaurant food and grocery items in the same checkout,
|
|
9
|
+
* nor can you easily mix vendors. This enforces business rules at the DB level.
|
|
10
|
+
*/
|
|
11
|
+
export interface Cart extends Timestamps {
|
|
12
|
+
id: UUID;
|
|
13
|
+
user_id: Nullable<UUID>;
|
|
14
|
+
session_id: string;
|
|
15
|
+
cart_type: CartTypeEnum;
|
|
16
|
+
status: CartStatusEnum;
|
|
17
|
+
expires_at: Date;
|
|
18
|
+
total_items: number;
|
|
19
|
+
subtotal: MoneyString;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Base fields shared by ALL cart items
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseCartItem extends Timestamps {
|
|
25
|
+
id: UUID;
|
|
26
|
+
cart_id: UUID;
|
|
27
|
+
vendor_id: UUID;
|
|
8
28
|
quantity: number;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
created_at?: Date;
|
|
12
|
-
updated_at?: Date;
|
|
29
|
+
unit_price: MoneyString;
|
|
30
|
+
total_price: MoneyString;
|
|
13
31
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
32
|
+
/**
|
|
33
|
+
* MEAL CART ITEM (Restaurant)
|
|
34
|
+
* Requires exact knowledge of which modifiers the user selected.
|
|
35
|
+
*/
|
|
36
|
+
export interface MealCartItemMetadata {
|
|
37
|
+
special_instructions: Nullable<string>;
|
|
38
|
+
selected_options: SelectedModifierOption[];
|
|
17
39
|
}
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
40
|
+
export interface MealCartItem extends BaseCartItem {
|
|
41
|
+
item_type: CartItemTypeEnum.MEAL;
|
|
42
|
+
meal_id: UUID;
|
|
43
|
+
product_id: null;
|
|
44
|
+
product_variant_id: null;
|
|
45
|
+
inventory_item_id: null;
|
|
46
|
+
metadata: MealCartItemMetadata;
|
|
23
47
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
48
|
+
/**
|
|
49
|
+
* PRODUCT CART ITEM (Grocery/Retail)
|
|
50
|
+
* Requires exact knowledge of the Inventory Item to reserve stock.
|
|
51
|
+
*/
|
|
52
|
+
export interface ProductCartItemMetadata {
|
|
53
|
+
special_instructions: Nullable<string>;
|
|
54
|
+
accepts_substitutions: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface ProductCartItem extends BaseCartItem {
|
|
57
|
+
item_type: CartItemTypeEnum.PRODUCT;
|
|
58
|
+
meal_id: null;
|
|
59
|
+
product_id: UUID;
|
|
60
|
+
product_variant_id: Nullable<UUID>;
|
|
61
|
+
inventory_item_id: UUID;
|
|
62
|
+
metadata: ProductCartItemMetadata;
|
|
32
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* 🚀 FINAL CART ITEM UNION
|
|
66
|
+
* DB constraint: Item is either a Meal OR a Product.
|
|
67
|
+
*/
|
|
68
|
+
export type CartItem = MealCartItem | ProductCartItem;
|
|
69
|
+
/**
|
|
70
|
+
* Used for the frontend Cart Page view.
|
|
71
|
+
* Contains the Cart and an array of fully populated items.
|
|
72
|
+
*/
|
|
73
|
+
export interface CartAggregate extends Cart {
|
|
74
|
+
items: CartItem[];
|
|
75
|
+
tax_estimate?: MoneyString;
|
|
76
|
+
delivery_fee_estimate?: MoneyString;
|
|
77
|
+
total_estimate?: MoneyString;
|
|
78
|
+
}
|
|
79
|
+
/** Base fields required from the frontend to add an item */
|
|
80
|
+
type BaseAddToCartInput = {
|
|
81
|
+
cart_id: UUID;
|
|
82
|
+
quantity: number;
|
|
83
|
+
};
|
|
84
|
+
export type AddMealToCartInput = BaseAddToCartInput & {
|
|
85
|
+
item_type: CartItemTypeEnum.MEAL;
|
|
86
|
+
meal_id: UUID;
|
|
87
|
+
metadata: MealCartItemMetadata;
|
|
88
|
+
};
|
|
89
|
+
export type AddProductToCartInput = BaseAddToCartInput & {
|
|
90
|
+
item_type: CartItemTypeEnum.PRODUCT;
|
|
91
|
+
product_id: UUID;
|
|
92
|
+
product_variant_id?: UUID;
|
|
93
|
+
inventory_item_id: UUID;
|
|
94
|
+
metadata: ProductCartItemMetadata;
|
|
95
|
+
};
|
|
96
|
+
/** Frontend payload type for "Add To Cart" requests */
|
|
97
|
+
export type AddToCartInput = AddMealToCartInput | AddProductToCartInput;
|
|
98
|
+
export {};
|
package/build/types/cart.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CartStatusEnum = exports.CartItemTypeEnum = void 0;
|
|
4
|
-
var CartItemTypeEnum;
|
|
5
|
-
(function (CartItemTypeEnum) {
|
|
6
|
-
CartItemTypeEnum["GROCERY"] = "grocery";
|
|
7
|
-
CartItemTypeEnum["RESTAURANT"] = "restaurant";
|
|
8
|
-
})(CartItemTypeEnum || (exports.CartItemTypeEnum = CartItemTypeEnum = {}));
|
|
9
|
-
var CartStatusEnum;
|
|
10
|
-
(function (CartStatusEnum) {
|
|
11
|
-
CartStatusEnum["ACTIVE"] = "active";
|
|
12
|
-
CartStatusEnum["CONVERTED"] = "converted";
|
|
13
|
-
CartStatusEnum["ABANDONED"] = "abandoned";
|
|
14
|
-
CartStatusEnum["USED"] = "used";
|
|
15
|
-
})(CartStatusEnum || (exports.CartStatusEnum = CartStatusEnum = {}));
|
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { UUID, Timestamps } from "./global";
|
|
2
|
+
import { CategoryScopeEnum, CategoryStatusEnum } from "./enum/collection";
|
|
3
|
+
export interface Category extends Timestamps {
|
|
4
|
+
id: UUID;
|
|
5
|
+
parent_id: UUID | null;
|
|
6
|
+
path: string;
|
|
7
|
+
level: number;
|
|
7
8
|
name: string;
|
|
8
9
|
slug: string;
|
|
9
|
-
description
|
|
10
|
-
scope
|
|
11
|
-
status
|
|
12
|
-
aliases
|
|
13
|
-
tags
|
|
14
|
-
metadata
|
|
15
|
-
created_at?: Date;
|
|
16
|
-
updated_at?: Date;
|
|
10
|
+
description: string | null;
|
|
11
|
+
scope: CategoryScopeEnum;
|
|
12
|
+
status: CategoryStatusEnum;
|
|
13
|
+
aliases: string[];
|
|
14
|
+
tags: string[];
|
|
15
|
+
metadata: Record<string, unknown>;
|
|
17
16
|
}
|
|
18
|
-
export interface
|
|
19
|
-
parents: CategoryI[];
|
|
20
|
-
children: CategoryI[];
|
|
21
|
-
}
|
|
22
|
-
export type CategoryTreeNode = CategoryI & {
|
|
17
|
+
export interface CategoryTreeNode extends Category {
|
|
23
18
|
children: CategoryTreeNode[];
|
|
24
19
|
child_count: number;
|
|
25
|
-
}
|
|
26
|
-
export type
|
|
20
|
+
}
|
|
21
|
+
export type RootCategoryNode = CategoryTreeNode & {
|
|
27
22
|
level: 0;
|
|
23
|
+
parent_id: null;
|
|
28
24
|
};
|
|
29
|
-
export
|
|
30
|
-
export interface CategoryTreeResponse {
|
|
31
|
-
roots: RootCategory[];
|
|
32
|
-
children?: ChildrenCategoryMap;
|
|
33
|
-
}
|
|
34
|
-
export interface NestedCategoryNode extends CategoryTreeNode {
|
|
25
|
+
export interface NestedCategoryNode extends Category {
|
|
35
26
|
children: NestedCategoryNode[];
|
|
36
27
|
}
|
|
28
|
+
export interface CategoryWithRelations extends Category {
|
|
29
|
+
parents: Category[];
|
|
30
|
+
children: Category[];
|
|
31
|
+
}
|
|
32
|
+
export type ChildrenCategoryMap = Record<UUID, CategoryTreeNode[]>;
|
|
33
|
+
export interface CategoryTreeResponse {
|
|
34
|
+
roots: RootCategoryNode[];
|
|
35
|
+
children_map?: ChildrenCategoryMap;
|
|
36
|
+
}
|
|
37
|
+
export type CreateCategoryInput = Omit<Category, "id" | "created_at" | "updated_at" | "path" | "level">;
|
|
38
|
+
export type UpdateCategoryInput = Partial<CreateCategoryInput>;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
export declare enum UserAccountTypeEnum {
|
|
2
|
+
CUSTOMER = "customer",
|
|
3
|
+
VENDOR = "vendor",
|
|
4
|
+
ADMINISTRATOR = "administrator"
|
|
5
|
+
}
|
|
6
|
+
export declare enum UserAccountStatusEnum {
|
|
7
|
+
PENDING_VERIFICATION = "pending_verification",
|
|
8
|
+
ACTIVE = "active",
|
|
9
|
+
SUSPENDED = "suspended",
|
|
10
|
+
DEACTIVATED = "deactivated"
|
|
11
|
+
}
|
|
12
|
+
export declare enum UserGenderEnum {
|
|
13
|
+
MALE = "male",
|
|
14
|
+
FEMALE = "female",
|
|
15
|
+
OTHERS = "other",
|
|
16
|
+
ANONYMOUS = "anonymous"
|
|
17
|
+
}
|
|
18
|
+
export declare enum VendorBusinessTypeEnum {
|
|
19
|
+
GROCERY = "grocery",
|
|
20
|
+
RESTAURANT = "restaurant"
|
|
21
|
+
}
|
|
22
|
+
export declare enum VendorStatusEnum {
|
|
23
|
+
PENDING_APPROVAL = "pending_approval",
|
|
24
|
+
NEEDS_REVISION = "needs_revision",
|
|
25
|
+
ACTIVE = "active",
|
|
26
|
+
PAUSED_BY_VENDOR = "paused_by_vendor",
|
|
27
|
+
SUSPENDED_BY_ADMINISTRATOR = "suspended_by_administrator"
|
|
28
|
+
}
|
|
29
|
+
export declare enum DietryPreferencesEnum {
|
|
30
|
+
VEGAN = "vegan",
|
|
31
|
+
HALAL = "halal",
|
|
32
|
+
ALLERGIES = "allergies"
|
|
33
|
+
}
|
|
34
|
+
export declare enum PermissionEnum {
|
|
35
|
+
CREATE = "create",
|
|
36
|
+
READ = "read",
|
|
37
|
+
UPDATE = "update",
|
|
38
|
+
DELETE = "delete"
|
|
39
|
+
}
|
|
40
|
+
export declare enum RoleRiskLevelEnum {
|
|
41
|
+
HIGH = "high",
|
|
42
|
+
MEDIUM = "medium",
|
|
43
|
+
LOW = "low"
|
|
44
|
+
}
|
|
45
|
+
export declare enum VerificationPurposeEnum {
|
|
46
|
+
EMAIL_VERIFY = "email_verify",
|
|
47
|
+
PASSWORD_RESET = "password_reset"
|
|
48
|
+
}
|
|
49
|
+
export declare enum CategoryScopeEnum {
|
|
50
|
+
RESTAURANT = "restaurant",
|
|
51
|
+
GROCERY = "grocery"
|
|
52
|
+
}
|
|
53
|
+
export declare enum CategoryStatusEnum {
|
|
54
|
+
ACTIVE = "active",
|
|
55
|
+
ARCHIVED = "archived",
|
|
56
|
+
DRAFT = "draft"
|
|
57
|
+
}
|
|
58
|
+
export declare enum RoleIconEnum {
|
|
59
|
+
SHIELD = "shield",
|
|
60
|
+
USERS = "users",
|
|
61
|
+
DOLLAR_SIGN = "dollar_sign",
|
|
62
|
+
GLOBE = "globe"
|
|
63
|
+
}
|
|
64
|
+
export declare enum StockStatusEnum {
|
|
65
|
+
IN_STOCK = "in_stock",
|
|
66
|
+
LOW_STOCK = "low_stock",
|
|
67
|
+
OUT_OF_STOCK = "out_of_stock",
|
|
68
|
+
DISCONTINUED = "discontinued"
|
|
69
|
+
}
|
|
70
|
+
export declare enum StockMovementReasonEnum {
|
|
71
|
+
SALE = "sale",
|
|
72
|
+
RETURN = "return",
|
|
73
|
+
SUPPLIER_INTAKE = "supplier_intake",
|
|
74
|
+
RECOUNT_ADJUSTMENT = "recount_adjustment",
|
|
75
|
+
DAMAGE = "damage",
|
|
76
|
+
THEFT = "theft",
|
|
77
|
+
PROMOTION = "promotion",
|
|
78
|
+
TRANSFER_OUT = "transfer_out",
|
|
79
|
+
TRANSFER_IN = "transfer_in",
|
|
80
|
+
INITIAL_STOCK = "initial_stock",
|
|
81
|
+
UPWARD_PRICE_REVIEW = "upward_price_review",
|
|
82
|
+
DOWNWARD_PRICE_REVIEW = "downward_price_review"
|
|
83
|
+
}
|
|
84
|
+
export declare enum VendorProductsStatisticsIconEnum {
|
|
85
|
+
PACKAGE = "package",
|
|
86
|
+
ALERT_TRIANGLE = "alert_triangle",
|
|
87
|
+
TRASH_2 = "trash_2",
|
|
88
|
+
FILTER = "filter"
|
|
89
|
+
}
|
|
90
|
+
export declare enum PromotionTypeEnum {
|
|
91
|
+
BUY_ONE_GET_ONE = "buy_one_get_one",
|
|
92
|
+
FREE_DELIVERY = "free_delivery",
|
|
93
|
+
SEASONAL_OFFER = "seasonal_offer",
|
|
94
|
+
LOYALTY_REWARD = "loyalty_reward",
|
|
95
|
+
HAPPY_HOUR = "happy_hour",
|
|
96
|
+
PERCENTAGE = "percentage",
|
|
97
|
+
FIXED = "fixed",
|
|
98
|
+
BUY_MORE_SAVE_MORE = "buy_more_save_more",
|
|
99
|
+
CLEARANCE = "clearance",
|
|
100
|
+
LIMITED_TIME = "limited_time"
|
|
101
|
+
}
|
|
102
|
+
export declare enum ProductTypeEnum {
|
|
103
|
+
SIMPLE = "simple",
|
|
104
|
+
VARIANT = "variant"
|
|
105
|
+
}
|
|
106
|
+
export declare enum CartTypeEnum {
|
|
107
|
+
RESTAURANT = "restaurant",
|
|
108
|
+
GROCERY = "grocery"
|
|
109
|
+
}
|
|
110
|
+
export declare enum CartItemTypeEnum {
|
|
111
|
+
MEAL = "meal",
|
|
112
|
+
PRODUCT = "product"
|
|
113
|
+
}
|
|
114
|
+
export declare enum CartStatusEnum {
|
|
115
|
+
ACTIVE = "active",
|
|
116
|
+
CONVERTED = "converted",// Converted to Order
|
|
117
|
+
ABANDONED = "abandoned",
|
|
118
|
+
USED = "used"
|
|
119
|
+
}
|
|
120
|
+
export declare enum VendorUserSummaryStatisticsIconEnum {
|
|
121
|
+
BUILDING_2 = "building_2",
|
|
122
|
+
STORE = "store",
|
|
123
|
+
CLOCK = "clock",
|
|
124
|
+
BAN = "ban"
|
|
125
|
+
}
|