@managesome/eposmatic-toolkit 0.2.455 → 0.2.457
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/lib/constants/WORKER_ENDPOINTS.d.ts +2 -0
- package/lib/constants/WORKER_ENDPOINTS.js +3 -0
- package/lib/helpers/types/workers.d.ts +16 -1
- package/lib/schemas/models/index.d.ts +1 -0
- package/lib/schemas/models/index.js +1 -0
- package/lib/schemas/types/index.d.ts +2 -0
- package/lib/schemas/types/index.js +2 -0
- package/package.json +1 -1
- package/lib/constants/PURCHASE_ORDER.d.ts +0 -16
- package/lib/constants/PURCHASE_ORDER.js +0 -100
- package/lib/constants/RFQ.d.ts +0 -0
- package/lib/constants/RFQ.js +0 -1
- package/lib/helpers/order/generate-purchase-order-rfq.d.ts +0 -3
- package/lib/helpers/order/generate-purchase-order-rfq.js +0 -64
- package/lib/helpers/order/generate-purchase-order.d.ts +0 -11
- package/lib/helpers/order/generate-purchase-order.js +0 -196
- package/lib/helpers/store/all-purchase-orders-actions.d.ts +0 -13
- package/lib/helpers/store/all-purchase-orders-actions.js +0 -56
- package/lib/helpers/store/all-sale-orders-actions.d.ts +0 -2
- package/lib/helpers/store/all-sale-orders-actions.js +0 -8
- package/lib/helpers/store/all-warehouse-sale-orders-actions.d.ts +0 -2
- package/lib/helpers/store/all-warehouse-sale-orders-actions.js +0 -8
- package/lib/helpers/store/common-purchase-order-actions.d.ts +0 -31
- package/lib/helpers/store/common-purchase-order-actions.js +0 -543
- package/lib/helpers/store/common-sale-order-actions.d.ts +0 -5
- package/lib/helpers/store/common-sale-order-actions.js +0 -65
- package/lib/helpers/store/purchase-order-rfq-cart-actions.d.ts +0 -19
- package/lib/helpers/store/purchase-order-rfq-cart-actions.js +0 -373
- package/lib/helpers/store/purchase-orders-cart-actions.d.ts +0 -57
- package/lib/helpers/store/purchase-orders-cart-actions.js +0 -486
- package/lib/helpers/types/purchase-order-cart-actions.d.ts +0 -26
- package/lib/helpers/types/purchase-order-cart-actions.js +0 -2
- package/lib/helpers/utils/invoice-x-report-helpers.d.ts +0 -58
- package/lib/helpers/utils/invoice-x-report-helpers.js +0 -1432
- package/lib/helpers/utils/purchase-order-engine.d.ts +0 -9
- package/lib/helpers/utils/purchase-order-engine.js +0 -34
- package/lib/helpers/utils/purchase-order-receipt-engine.d.ts +0 -149
- package/lib/helpers/utils/purchase-order-receipt-engine.js +0 -214
- package/lib/helpers/utils/purchase-order-x-report-helpers.d.ts +0 -58
- package/lib/helpers/utils/purchase-order-x-report-helpers.js +0 -1440
- package/lib/helpers/utils/sale-order-x-report-helpers.d.ts +0 -44
- package/lib/helpers/utils/sale-order-x-report-helpers.js +0 -22
- package/lib/helpers/utils/sale-x-report-helpers.d.ts +0 -58
- package/lib/helpers/utils/sale-x-report-helpers.js +0 -1456
- package/lib/helpers/utils/terminal-devices-helpers.d.ts +0 -2
- package/lib/helpers/utils/terminal-devices-helpers.js +0 -13
- package/lib/helpers/utils/void-purchase-order-items-helpers.d.ts +0 -3
- package/lib/helpers/utils/void-purchase-order-items-helpers.js +0 -38
- package/lib/helpers/utils/void-purchase-order-items-report-helpers.d.ts +0 -13
- package/lib/helpers/utils/void-purchase-order-items-report-helpers.js +0 -22
- package/lib/schemas/models/applied-order-discounts.d.ts +0 -80
- package/lib/schemas/models/applied-order-discounts.js +0 -106
- package/lib/schemas/models/brand.d.ts +0 -45
- package/lib/schemas/models/brand.js +0 -45
- package/lib/schemas/models/category.d.ts +0 -60
- package/lib/schemas/models/category.js +0 -67
- package/lib/schemas/models/dinein_table_fingerprints.d.ts +0 -65
- package/lib/schemas/models/dinein_table_fingerprints.js +0 -85
- package/lib/schemas/models/expense_category.d.ts +0 -83
- package/lib/schemas/models/expense_category.js +0 -64
- package/lib/schemas/models/internal_movements.d.ts +0 -357
- package/lib/schemas/models/internal_movements.js +0 -323
- package/lib/schemas/models/inventory.d.ts +0 -99
- package/lib/schemas/models/inventory.js +0 -87
- package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +0 -154
- package/lib/schemas/models/inventory_lot_serial_numbers.js +0 -193
- package/lib/schemas/models/item.d.ts +0 -11269
- package/lib/schemas/models/item.js +0 -333
- package/lib/schemas/models/menu.d.ts +0 -941
- package/lib/schemas/models/menu.js +0 -69
- package/lib/schemas/models/order.d.ts +0 -15437
- package/lib/schemas/models/order.js +0 -891
- package/lib/schemas/models/purchase_order_receipts.d.ts +0 -165
- package/lib/schemas/models/purchase_order_receipts.js +0 -151
- package/lib/schemas/models/purchase_order_rfq.d.ts +0 -1959
- package/lib/schemas/models/purchase_order_rfq.js +0 -328
- package/lib/schemas/models/purchase_order_rfqs.d.ts +0 -1959
- package/lib/schemas/models/purchase_order_rfqs.js +0 -328
- package/lib/schemas/models/purchase_order_vendor_returns.d.ts +0 -234
- package/lib/schemas/models/purchase_order_vendor_returns.js +0 -188
- package/lib/schemas/models/purchase_orders.d.ts +0 -2678
- package/lib/schemas/models/purchase_orders.js +0 -336
- package/lib/schemas/models/rider.d.ts +0 -65
- package/lib/schemas/models/rider.js +0 -74
- package/lib/schemas/models/sale_order_deliveries.d.ts +0 -167
- package/lib/schemas/models/sale_order_deliveries.js +0 -155
- package/lib/schemas/models/sale_order_invoices.d.ts +0 -227
- package/lib/schemas/models/sale_order_invoices.js +0 -206
- package/lib/schemas/models/sale_order_rfq.d.ts +0 -1938
- package/lib/schemas/models/sale_order_rfq.js +0 -309
- package/lib/schemas/models/sale_orders.d.ts +0 -1943
- package/lib/schemas/models/sale_orders.js +0 -324
- package/lib/schemas/models/tenant.d.ts +0 -528
- package/lib/schemas/models/tenant.js +0 -755
- package/lib/schemas/models/tenant_staff.d.ts +0 -932
- package/lib/schemas/models/tenant_staff.js +0 -96
- package/lib/schemas/models/track_order_number.d.ts +0 -413
- package/lib/schemas/models/track_order_number.js +0 -45
- package/lib/schemas/models/void_purchase_order_items.d.ts +0 -176
- package/lib/schemas/models/void_purchase_order_items.js +0 -177
- package/lib/schemas/models/void_warehouse_invoice_items.d.ts +0 -176
- package/lib/schemas/models/void_warehouse_invoice_items.js +0 -176
- package/lib/schemas/models/wallet.d.ts +0 -38
- package/lib/schemas/models/wallet.js +0 -37
- package/lib/schemas/models/warehouse-communications.d.ts +0 -228
- package/lib/schemas/models/warehouse-communications.js +0 -216
- package/lib/schemas/models/warehouse.d.ts +0 -162
- package/lib/schemas/models/warehouse.js +0 -222
- package/lib/schemas/models/warehouse_staff.d.ts +0 -65
- package/lib/schemas/models/warehouse_staff.js +0 -78
- package/lib/schemas/models/warehouse_track_order_number.d.ts +0 -50
- package/lib/schemas/models/warehouse_track_order_number.js +0 -52
- package/lib/schemas/types/applied-order-discounts.d.ts +0 -22
- package/lib/schemas/types/applied-order-discounts.js +0 -2
- package/lib/schemas/types/brand.d.ts +0 -32
- package/lib/schemas/types/brand.js +0 -2
- package/lib/schemas/types/category.d.ts +0 -15
- package/lib/schemas/types/category.js +0 -2
- package/lib/schemas/types/expense_category.d.ts +0 -20
- package/lib/schemas/types/expense_category.js +0 -2
- package/lib/schemas/types/internal_movements.d.ts +0 -73
- package/lib/schemas/types/internal_movements.js +0 -2
- package/lib/schemas/types/inventory.d.ts +0 -48
- package/lib/schemas/types/inventory.js +0 -2
- package/lib/schemas/types/inventory_lot_serial_numbers.d.ts +0 -85
- package/lib/schemas/types/inventory_lot_serial_numbers.js +0 -4
- package/lib/schemas/types/item.d.ts +0 -89
- package/lib/schemas/types/item.js +0 -2
- package/lib/schemas/types/menu.d.ts +0 -17
- package/lib/schemas/types/menu.js +0 -2
- package/lib/schemas/types/order.d.ts +0 -242
- package/lib/schemas/types/order.js +0 -2
- package/lib/schemas/types/purchase_order_common.d.ts +0 -39
- package/lib/schemas/types/purchase_order_common.js +0 -2
- package/lib/schemas/types/purchase_order_receipts.d.ts +0 -39
- package/lib/schemas/types/purchase_order_receipts.js +0 -21
- package/lib/schemas/types/purchase_order_rfq.d.ts +0 -33
- package/lib/schemas/types/purchase_order_rfq.js +0 -2
- package/lib/schemas/types/purchase_order_rfqs.d.ts +0 -33
- package/lib/schemas/types/purchase_order_rfqs.js +0 -2
- package/lib/schemas/types/purchase_order_vendor_returns.d.ts +0 -49
- package/lib/schemas/types/purchase_order_vendor_returns.js +0 -42
- package/lib/schemas/types/purchase_orders.d.ts +0 -33
- package/lib/schemas/types/purchase_orders.js +0 -2
- package/lib/schemas/types/rider.d.ts +0 -16
- package/lib/schemas/types/rider.js +0 -2
- package/lib/schemas/types/sale_order_common.d.ts +0 -39
- package/lib/schemas/types/sale_order_common.js +0 -2
- package/lib/schemas/types/sale_order_deliveries.d.ts +0 -67
- package/lib/schemas/types/sale_order_deliveries.js +0 -2
- package/lib/schemas/types/sale_order_invoices.d.ts +0 -49
- package/lib/schemas/types/sale_order_invoices.js +0 -2
- package/lib/schemas/types/sale_order_rfq.d.ts +0 -25
- package/lib/schemas/types/sale_order_rfq.js +0 -2
- package/lib/schemas/types/sale_orders.d.ts +0 -30
- package/lib/schemas/types/sale_orders.js +0 -2
- package/lib/schemas/types/tenant.d.ts +0 -205
- package/lib/schemas/types/tenant.js +0 -2
- package/lib/schemas/types/tenant_staff.d.ts +0 -22
- package/lib/schemas/types/tenant_staff.js +0 -2
- package/lib/schemas/types/track_order_number.d.ts +0 -10
- package/lib/schemas/types/track_order_number.js +0 -2
- package/lib/schemas/types/void_purchase_order_items.d.ts +0 -37
- package/lib/schemas/types/void_purchase_order_items.js +0 -2
- package/lib/schemas/types/void_warehouse_invoice_items.d.ts +0 -37
- package/lib/schemas/types/void_warehouse_invoice_items.js +0 -2
- package/lib/schemas/types/wallet.d.ts +0 -7
- package/lib/schemas/types/wallet.js +0 -2
- package/lib/schemas/types/warehouse-communications.d.ts +0 -54
- package/lib/schemas/types/warehouse-communications.js +0 -2
- package/lib/schemas/types/warehouse.d.ts +0 -49
- package/lib/schemas/types/warehouse.js +0 -2
- package/lib/schemas/types/warehouse_purchase_order_common.d.ts +0 -39
- package/lib/schemas/types/warehouse_purchase_order_common.js +0 -2
- package/lib/schemas/types/warehouse_sale_order_common.d.ts +0 -39
- package/lib/schemas/types/warehouse_sale_order_common.js +0 -2
- package/lib/schemas/types/warehouse_staff.d.ts +0 -17
- package/lib/schemas/types/warehouse_staff.js +0 -2
- package/lib/schemas/types/warehouse_track_order_number.d.ts +0 -11
- package/lib/schemas/types/warehouse_track_order_number.js +0 -2
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM } from '../../constants';
|
|
2
|
-
export interface IPurchaseOrderVendorReturnStatus {
|
|
3
|
-
status: PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM;
|
|
4
|
-
color: string;
|
|
5
|
-
contrast_color: string;
|
|
6
|
-
priority: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const DEFAULT_PURCHASE_ORDER_VENDOR_RETURN_STATUSES: IPurchaseOrderVendorReturnStatus[];
|
|
9
|
-
export interface IPurchaseOrderVendorReturnItem {
|
|
10
|
-
_id: string;
|
|
11
|
-
item_id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
ordered_quantity: number;
|
|
14
|
-
return_quantity: number;
|
|
15
|
-
price: number;
|
|
16
|
-
subtotal: number;
|
|
17
|
-
reason?: string | null;
|
|
18
|
-
}
|
|
19
|
-
export interface IPurchaseOrderVendorReturnActor {
|
|
20
|
-
_id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
}
|
|
23
|
-
export interface IPurchaseOrderVendorReturn {
|
|
24
|
-
_id: string;
|
|
25
|
-
warehouse_id: string;
|
|
26
|
-
purchase_order_id: string;
|
|
27
|
-
vendor_id: string;
|
|
28
|
-
vendor_name: string;
|
|
29
|
-
return_status: PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM;
|
|
30
|
-
inventory_consumed: boolean;
|
|
31
|
-
items: IPurchaseOrderVendorReturnItem[];
|
|
32
|
-
total_return_amount: number;
|
|
33
|
-
notes?: string | null;
|
|
34
|
-
created_by?: IPurchaseOrderVendorReturnActor | null;
|
|
35
|
-
approved_by?: IPurchaseOrderVendorReturnActor | null;
|
|
36
|
-
dispatched_by?: IPurchaseOrderVendorReturnActor | null;
|
|
37
|
-
vendor_confirmed_by?: IPurchaseOrderVendorReturnActor | null;
|
|
38
|
-
completed_by?: IPurchaseOrderVendorReturnActor | null;
|
|
39
|
-
cancelled_by?: IPurchaseOrderVendorReturnActor | null;
|
|
40
|
-
approved_at?: Date | null;
|
|
41
|
-
dispatched_at?: Date | null;
|
|
42
|
-
vendor_confirmed_at?: Date | null;
|
|
43
|
-
completed_at?: Date | null;
|
|
44
|
-
cancelled_at?: Date | null;
|
|
45
|
-
cancel_reason?: string | null;
|
|
46
|
-
createdAt_mins: number;
|
|
47
|
-
createdAt: Date;
|
|
48
|
-
updatedAt: Date;
|
|
49
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_PURCHASE_ORDER_VENDOR_RETURN_STATUSES = void 0;
|
|
4
|
-
const constants_1 = require("../../constants");
|
|
5
|
-
exports.DEFAULT_PURCHASE_ORDER_VENDOR_RETURN_STATUSES = [
|
|
6
|
-
{
|
|
7
|
-
status: constants_1.PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM.CREATED,
|
|
8
|
-
color: '#727472',
|
|
9
|
-
contrast_color: '#FFFFFF',
|
|
10
|
-
priority: 0,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
status: constants_1.PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM.APPROVED,
|
|
14
|
-
color: '#0000FF',
|
|
15
|
-
contrast_color: '#FFFFFF',
|
|
16
|
-
priority: 1,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
status: constants_1.PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM.DISPATCHED,
|
|
20
|
-
color: '#FBB117',
|
|
21
|
-
contrast_color: '#FFFFFF',
|
|
22
|
-
priority: 2,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
status: constants_1.PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM.VENDOR_CONFIRMED,
|
|
26
|
-
color: '#17A2B8',
|
|
27
|
-
contrast_color: '#FFFFFF',
|
|
28
|
-
priority: 3,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
status: constants_1.PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM.COMPLETED,
|
|
32
|
-
color: '#4CC417',
|
|
33
|
-
contrast_color: '#FFFFFF',
|
|
34
|
-
priority: 4,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
status: constants_1.PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM.CANCELLED,
|
|
38
|
-
color: '#FF0000',
|
|
39
|
-
contrast_color: '#FFFFFF',
|
|
40
|
-
priority: 5,
|
|
41
|
-
},
|
|
42
|
-
];
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { PURCHASE_ORDER_STATUS_ENUM } from '../../constants';
|
|
2
|
-
import { IOrderPayment } from './orders';
|
|
3
|
-
import { IPurchaseOrderCommonCategoryByCategoryId, IPurchaseOrderCommonItem, IPurchaseOrderCommonIterationBase } from './purchase_order_common';
|
|
4
|
-
export type IPurchaseOrderItem = IPurchaseOrderCommonItem;
|
|
5
|
-
export type IPurchaseOrderCategory = IPurchaseOrderCommonCategoryByCategoryId;
|
|
6
|
-
export interface IPurchaseOrderIteration extends IPurchaseOrderCommonIterationBase<IPurchaseOrderCategory, PURCHASE_ORDER_STATUS_ENUM> {
|
|
7
|
-
payments: IOrderPayment[];
|
|
8
|
-
tax_number: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IPurchaseOrder extends IPurchaseOrderIteration {
|
|
11
|
-
_id: string;
|
|
12
|
-
warehouse_id: string;
|
|
13
|
-
vendor_id: string;
|
|
14
|
-
vendor_name: string;
|
|
15
|
-
/** Source RFQ reference when this PO is converted from an RFQ. */
|
|
16
|
-
rfq_id?: string | null;
|
|
17
|
-
iterations: IPurchaseOrderIteration[];
|
|
18
|
-
/**
|
|
19
|
-
* amount_collected is the total amount collected from the consumer
|
|
20
|
-
*/
|
|
21
|
-
amount_collected: number;
|
|
22
|
-
order_number: number | null;
|
|
23
|
-
delete_reason?: string | null;
|
|
24
|
-
cancel_reason?: string | null;
|
|
25
|
-
is_deleted: boolean;
|
|
26
|
-
order_status_updated_at: Date;
|
|
27
|
-
is_reopened?: boolean;
|
|
28
|
-
deferred_settlement?: boolean;
|
|
29
|
-
order_settled_at: Date;
|
|
30
|
-
order_settled_at_mins: number;
|
|
31
|
-
createdAt_mins: number;
|
|
32
|
-
createdAt: Date;
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface IRider {
|
|
2
|
-
_id: string;
|
|
3
|
-
uid: string;
|
|
4
|
-
is_disabled: boolean;
|
|
5
|
-
display_name: string | null;
|
|
6
|
-
phone_number: string;
|
|
7
|
-
email: string | null;
|
|
8
|
-
image_url: string | null;
|
|
9
|
-
lat: number;
|
|
10
|
-
lng: number;
|
|
11
|
-
is_public: boolean;
|
|
12
|
-
is_available: boolean;
|
|
13
|
-
is_verified: boolean;
|
|
14
|
-
createdAt: Date;
|
|
15
|
-
updatedAt: Date;
|
|
16
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { IStaffDetails } from './orders';
|
|
2
|
-
export interface ISaleOrderCommonItem {
|
|
3
|
-
_id: string;
|
|
4
|
-
item_id: string;
|
|
5
|
-
is_ready?: boolean;
|
|
6
|
-
void_reason?: string | null;
|
|
7
|
-
name: string;
|
|
8
|
-
price: number;
|
|
9
|
-
subtotal: number;
|
|
10
|
-
quantity: number;
|
|
11
|
-
_net_amount: number;
|
|
12
|
-
_gross_amount: number;
|
|
13
|
-
_gst_amount: number;
|
|
14
|
-
_discount_amount: number;
|
|
15
|
-
special_instructions: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ISaleOrderCommonCategoryByCategoryId {
|
|
18
|
-
name: string;
|
|
19
|
-
category_id: string;
|
|
20
|
-
items: ISaleOrderCommonItem[];
|
|
21
|
-
}
|
|
22
|
-
export interface ISaleOrderCommonCategoryById {
|
|
23
|
-
_id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
items: ISaleOrderCommonItem[];
|
|
26
|
-
}
|
|
27
|
-
export interface ISaleOrderCommonIterationBase<TCategory, TStatus> {
|
|
28
|
-
categories: TCategory[];
|
|
29
|
-
staff_details: IStaffDetails;
|
|
30
|
-
is_gst_inclusive?: boolean;
|
|
31
|
-
gst?: number | null;
|
|
32
|
-
gst_amount?: number | null;
|
|
33
|
-
special_instructions: string;
|
|
34
|
-
price: number;
|
|
35
|
-
amount_earned: number;
|
|
36
|
-
grand_total: number;
|
|
37
|
-
order_status: TStatus;
|
|
38
|
-
updatedAt: Date;
|
|
39
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { SALE_ORDER_DELIVERY_RETURN_STATUS_ENUM, SALE_ORDER_DELIVERY_STATUS_ENUM, SALE_ORDER_PHYSICAL_DOC_KIND_ENUM } from '../../constants';
|
|
2
|
-
export interface ISaleOrderPhysicalItems {
|
|
3
|
-
item_id: string;
|
|
4
|
-
item_name: string;
|
|
5
|
-
quantity: number;
|
|
6
|
-
reason?: string | null;
|
|
7
|
-
}
|
|
8
|
-
export type ISaleOrderDeliveryItems = ISaleOrderPhysicalItems;
|
|
9
|
-
export type ISaleOrderDeliveryReturnItems = ISaleOrderPhysicalItems;
|
|
10
|
-
export interface ISaleOrderDeliveryActor {
|
|
11
|
-
_id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ISaleOrderDelivery {
|
|
15
|
-
_id: string;
|
|
16
|
-
doc_kind: SALE_ORDER_PHYSICAL_DOC_KIND_ENUM;
|
|
17
|
-
warehouse_id: string;
|
|
18
|
-
sale_order_id: string;
|
|
19
|
-
applied_to_doc_id?: string | null;
|
|
20
|
-
items: ISaleOrderDeliveryItems[];
|
|
21
|
-
status: SALE_ORDER_DELIVERY_STATUS_ENUM | SALE_ORDER_DELIVERY_RETURN_STATUS_ENUM;
|
|
22
|
-
notes?: string | null;
|
|
23
|
-
inventory_consumed?: boolean;
|
|
24
|
-
inventory_restocked?: boolean;
|
|
25
|
-
created_by?: ISaleOrderDeliveryActor | null;
|
|
26
|
-
delivered_by?: ISaleOrderDeliveryActor | null;
|
|
27
|
-
returned_by?: ISaleOrderDeliveryActor | null;
|
|
28
|
-
cancelled_by?: ISaleOrderDeliveryActor | null;
|
|
29
|
-
delivered_at?: Date | null;
|
|
30
|
-
returned_at?: Date | null;
|
|
31
|
-
cancelled_at?: Date | null;
|
|
32
|
-
cancel_reason?: string | null;
|
|
33
|
-
createdAt_mins: number;
|
|
34
|
-
createdAt: Date;
|
|
35
|
-
updatedAt: Date;
|
|
36
|
-
}
|
|
37
|
-
export interface ISaleOrderDeliveryDocument extends ISaleOrderDelivery {
|
|
38
|
-
doc_kind: SALE_ORDER_PHYSICAL_DOC_KIND_ENUM.DELIVERY;
|
|
39
|
-
status: SALE_ORDER_DELIVERY_STATUS_ENUM;
|
|
40
|
-
applied_to_doc_id?: null;
|
|
41
|
-
}
|
|
42
|
-
export interface ISaleOrderDeliveryReturnDocument extends ISaleOrderDelivery {
|
|
43
|
-
doc_kind: SALE_ORDER_PHYSICAL_DOC_KIND_ENUM.DELIVERY_RETURN;
|
|
44
|
-
applied_to_doc_id: string;
|
|
45
|
-
status: SALE_ORDER_DELIVERY_RETURN_STATUS_ENUM;
|
|
46
|
-
}
|
|
47
|
-
interface ICreateSaleOrderPhysicalDocBodyBase {
|
|
48
|
-
item_id: string;
|
|
49
|
-
quantity: number;
|
|
50
|
-
reason?: string | null;
|
|
51
|
-
}
|
|
52
|
-
interface ICreateSaleOrderPhysicalDocBase {
|
|
53
|
-
items: ICreateSaleOrderPhysicalDocBodyBase[];
|
|
54
|
-
notes?: string;
|
|
55
|
-
sale_order_updatedAt?: Date | string;
|
|
56
|
-
}
|
|
57
|
-
export interface ICreateSaleOrderDeliveryBody extends ICreateSaleOrderPhysicalDocBase {
|
|
58
|
-
doc_kind?: SALE_ORDER_PHYSICAL_DOC_KIND_ENUM.DELIVERY;
|
|
59
|
-
status?: SALE_ORDER_DELIVERY_STATUS_ENUM;
|
|
60
|
-
}
|
|
61
|
-
export interface ICreateSaleOrderDeliveryReturnBody extends ICreateSaleOrderPhysicalDocBase {
|
|
62
|
-
doc_kind: SALE_ORDER_PHYSICAL_DOC_KIND_ENUM.DELIVERY_RETURN;
|
|
63
|
-
applied_to_doc_id: string;
|
|
64
|
-
status: SALE_ORDER_DELIVERY_RETURN_STATUS_ENUM;
|
|
65
|
-
}
|
|
66
|
-
export type ICreateSaleOrderPhysicalDocBody = ICreateSaleOrderDeliveryBody | ICreateSaleOrderDeliveryReturnBody;
|
|
67
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { SALE_ORDER_CREDIT_NOTE_STATUS_ENUM, SALE_ORDER_FIN_DOC_KIND_ENUM, SALE_ORDER_INVOICE_PAYMENT_STATUS_ENUM, SALE_ORDER_INVOICE_TYPE_ENUM } from '../../constants';
|
|
2
|
-
import { IOrderPayment } from './order';
|
|
3
|
-
export type ISaleOrderFinancialDocStatus = SALE_ORDER_INVOICE_PAYMENT_STATUS_ENUM | SALE_ORDER_CREDIT_NOTE_STATUS_ENUM;
|
|
4
|
-
export interface ISaleOrderFinancialLine {
|
|
5
|
-
item_id: string;
|
|
6
|
-
item_name: string;
|
|
7
|
-
quantity: number;
|
|
8
|
-
unit_price: number;
|
|
9
|
-
reason?: string | null;
|
|
10
|
-
}
|
|
11
|
-
export interface ISaleOrderFinancialDocActor {
|
|
12
|
-
_id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
}
|
|
15
|
-
export type ISaleOrderInvoicePaymentRecord = IOrderPayment;
|
|
16
|
-
export interface ISaleOrderInvoice {
|
|
17
|
-
_id: string;
|
|
18
|
-
doc_kind: SALE_ORDER_FIN_DOC_KIND_ENUM;
|
|
19
|
-
warehouse_id: string;
|
|
20
|
-
sale_order_id: string;
|
|
21
|
-
doc_number: number;
|
|
22
|
-
applied_to_doc_id?: string | null;
|
|
23
|
-
items: ISaleOrderFinancialLine[];
|
|
24
|
-
amount: number;
|
|
25
|
-
notes?: string | null;
|
|
26
|
-
status: ISaleOrderFinancialDocStatus;
|
|
27
|
-
invoice_type: SALE_ORDER_INVOICE_TYPE_ENUM;
|
|
28
|
-
amount_paid?: number;
|
|
29
|
-
down_payment_value?: number;
|
|
30
|
-
payments?: ISaleOrderInvoicePaymentRecord[];
|
|
31
|
-
gst?: number | null;
|
|
32
|
-
gst_amount?: number | null;
|
|
33
|
-
is_gst_inclusive?: boolean | null;
|
|
34
|
-
created_by?: ISaleOrderFinancialDocActor | null;
|
|
35
|
-
posted_by?: ISaleOrderFinancialDocActor | null;
|
|
36
|
-
confirmed_by?: ISaleOrderFinancialDocActor | null;
|
|
37
|
-
refund_pending_by?: ISaleOrderFinancialDocActor | null;
|
|
38
|
-
refunded_by?: ISaleOrderFinancialDocActor | null;
|
|
39
|
-
cancelled_by?: ISaleOrderFinancialDocActor | null;
|
|
40
|
-
posted_at?: Date | null;
|
|
41
|
-
confirmed_at?: Date | null;
|
|
42
|
-
refund_pending_at?: Date | null;
|
|
43
|
-
refunded_at?: Date | null;
|
|
44
|
-
cancelled_at?: Date | null;
|
|
45
|
-
cancel_reason?: string | null;
|
|
46
|
-
createdAt_mins: number;
|
|
47
|
-
createdAt: Date;
|
|
48
|
-
updatedAt: Date;
|
|
49
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { SALE_ORDER_RFQ_STATUS_ENUM } from '../../constants';
|
|
2
|
-
import { ISaleOrderCommonCategoryByCategoryId, ISaleOrderCommonItem, ISaleOrderCommonIterationBase } from './sale_order_common';
|
|
3
|
-
export type ISaleOrderRFQItem = ISaleOrderCommonItem;
|
|
4
|
-
export type ISaleOrderRFQCategory = ISaleOrderCommonCategoryByCategoryId;
|
|
5
|
-
export interface ISaleOrderRFQIteration extends ISaleOrderCommonIterationBase<ISaleOrderRFQCategory, SALE_ORDER_RFQ_STATUS_ENUM | string> {
|
|
6
|
-
tax_number: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ISaleOrderRFQ extends ISaleOrderRFQIteration {
|
|
9
|
-
_id: string;
|
|
10
|
-
warehouse_id: string;
|
|
11
|
-
client_id: string;
|
|
12
|
-
client_name: string;
|
|
13
|
-
iterations: ISaleOrderRFQIteration[];
|
|
14
|
-
order_number: number | null;
|
|
15
|
-
expected_deadline: string;
|
|
16
|
-
payment_terms: number;
|
|
17
|
-
delete_reason?: string | null;
|
|
18
|
-
cancel_reason?: string | null;
|
|
19
|
-
is_deleted: boolean;
|
|
20
|
-
order_status_updated_at: Date;
|
|
21
|
-
special_instructions: string;
|
|
22
|
-
is_reopened?: boolean;
|
|
23
|
-
createdAt_mins: number;
|
|
24
|
-
createdAt: Date;
|
|
25
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { SALES_ORDER_STATUS_ENUM } from '../../constants';
|
|
2
|
-
import { ISaleOrderCommonCategoryByCategoryId, ISaleOrderCommonItem, ISaleOrderCommonIterationBase } from './sale_order_common';
|
|
3
|
-
export type ISaleOrderItem = ISaleOrderCommonItem;
|
|
4
|
-
export type ISaleOrderCategory = ISaleOrderCommonCategoryByCategoryId;
|
|
5
|
-
export interface ISaleOrderIteration extends ISaleOrderCommonIterationBase<ISaleOrderCategory, SALES_ORDER_STATUS_ENUM> {
|
|
6
|
-
tax_number: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ISaleOrder extends ISaleOrderIteration {
|
|
9
|
-
_id: string;
|
|
10
|
-
warehouse_id: string;
|
|
11
|
-
client_id: string;
|
|
12
|
-
client_name: string;
|
|
13
|
-
/** Source RFQ reference when this sales order is confirmed from an RFQ. */
|
|
14
|
-
rfq_id?: string | null;
|
|
15
|
-
iterations: ISaleOrderIteration[];
|
|
16
|
-
/**
|
|
17
|
-
* amount_collected is the total amount collected from the consumer
|
|
18
|
-
*/
|
|
19
|
-
amount_collected: number;
|
|
20
|
-
order_number: number | null;
|
|
21
|
-
delete_reason?: string | null;
|
|
22
|
-
cancel_reason?: string | null;
|
|
23
|
-
is_deleted: boolean;
|
|
24
|
-
order_status_updated_at: Date;
|
|
25
|
-
is_reopened?: boolean;
|
|
26
|
-
order_settled_at: Date;
|
|
27
|
-
order_settled_at_mins: number;
|
|
28
|
-
createdAt_mins: number;
|
|
29
|
-
createdAt: Date;
|
|
30
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { ALERT_NOTIFICATIONS_TYPE_ENUM, CARD_PROCESSING_PROVIDERS_ENUM, COUNTRY_ALPHA_2_ENUM, COUNTRY_ALPHA_3_ENUM, COUNTRY_CODE_ENUM, COUNTRY_FLAG_ENUM, COUNTRY_NAME_ENUM, CURRENCY_CODE_ENUM, CURRENCY_NAME_ENUM, CURRENCY_SYMBOL_ENUM, DELIVERY_AREAS_SEARCH_TYPE_ENUM, EMAIL_PROCESSING_PROVIDERS_ENUM, GST_TYPE_ENUM, INTEGRATIONS_ENUM, ONLINE_ORDERING_DESIGN_TYPE_ENUM, ORDER_COMPLETION_TYPE_ENUM, ORDER_NUMBER_GROUPING_TYPE_ENUM, ORDER_STATUS_ENUM, ORDER_TYPE_ENUM, PLATFORMS_ENUM, RATING_TYPE_ENUM, RECEIPT_QR_CODE_TYPE_ENUM, RIDER_FEE_TYPE_ENUM, SMS_PROCESSING_PROVIDERS_ENUM, TAX_INVOICE_PROVIDER_ENUM, TRACK_ORDER_NUMBER_ENUM, WEB_AUTH_TYPE_ENUM, WEB_UNPAID_PAYMENT_TYPE_ENUM } from '../../constants';
|
|
2
|
-
import { IBrand } from './brand';
|
|
3
|
-
export interface IWebStopTakingOrders {
|
|
4
|
-
order_types: ORDER_TYPE_ENUM[];
|
|
5
|
-
date: Date;
|
|
6
|
-
}
|
|
7
|
-
export interface ITenant {
|
|
8
|
-
_id: string;
|
|
9
|
-
brand_id: string;
|
|
10
|
-
provider_id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
image_url: string;
|
|
13
|
-
active: boolean;
|
|
14
|
-
currency_code: CURRENCY_CODE_ENUM;
|
|
15
|
-
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
16
|
-
currency_name: CURRENCY_NAME_ENUM;
|
|
17
|
-
country_code: COUNTRY_CODE_ENUM;
|
|
18
|
-
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
19
|
-
country_alpha_3: COUNTRY_ALPHA_3_ENUM;
|
|
20
|
-
country_name: COUNTRY_NAME_ENUM;
|
|
21
|
-
country_flag: COUNTRY_FLAG_ENUM;
|
|
22
|
-
coordinates: number[];
|
|
23
|
-
city: string;
|
|
24
|
-
google_review_link: string | null;
|
|
25
|
-
takeaway_time: number;
|
|
26
|
-
delivery_time: number;
|
|
27
|
-
enable_inventory: boolean;
|
|
28
|
-
pay_first_for_dine_in: boolean;
|
|
29
|
-
closed_store_message: string | null;
|
|
30
|
-
break_time_message: string | null;
|
|
31
|
-
announcement_message: string | null;
|
|
32
|
-
review_emails: string[];
|
|
33
|
-
review_phone_numbers: string[];
|
|
34
|
-
enabled_review_platforms: PLATFORMS_ENUM[];
|
|
35
|
-
payment_report_emails: string[];
|
|
36
|
-
pos_enable_internal_auth: boolean;
|
|
37
|
-
pos_enable_takeaway: boolean;
|
|
38
|
-
pos_enable_delivery: boolean;
|
|
39
|
-
pos_enable_dine_in: boolean;
|
|
40
|
-
pos_enable_drive_thru: boolean;
|
|
41
|
-
pos_enable_kiosk: boolean;
|
|
42
|
-
pos_pre_ordering_days?: number | null;
|
|
43
|
-
pos_opt_in_for_holiday_surcharge: boolean;
|
|
44
|
-
pos_holiday_surcharge: number;
|
|
45
|
-
pos_enable_card_payments: boolean;
|
|
46
|
-
pos_min_takeaway_order_value: number;
|
|
47
|
-
pos_end_seating_when_order_paid_off: boolean;
|
|
48
|
-
pos_accedental_touch_protection_enabled?: boolean;
|
|
49
|
-
web_charge_customer_for_online_processing: boolean;
|
|
50
|
-
web_allow_ordering_till_closing_time: boolean;
|
|
51
|
-
web_enable_takeaway: boolean;
|
|
52
|
-
web_enable_delivery: boolean;
|
|
53
|
-
web_enable_dine_in: boolean;
|
|
54
|
-
web_enable_pre_ordering?: boolean;
|
|
55
|
-
web_pre_ordering_visibility_minutes?: number | null;
|
|
56
|
-
web_pre_ordering_days?: number | null;
|
|
57
|
-
max_preorder_delivery_minutes?: number | null;
|
|
58
|
-
max_preorder_takeaway_minutes?: number | null;
|
|
59
|
-
default_prep_minutes: number;
|
|
60
|
-
web_opt_in_for_holiday_surcharge: boolean;
|
|
61
|
-
web_holiday_surcharge: number;
|
|
62
|
-
web_enable_cash_payments_takeaway: boolean;
|
|
63
|
-
web_enable_cash_payments_delivery: boolean;
|
|
64
|
-
web_enable_cash_payments_dine_in: boolean;
|
|
65
|
-
web_enable_terminal_payments?: boolean;
|
|
66
|
-
web_min_takeaway_order_value: number;
|
|
67
|
-
web_max_cash_order_value: number;
|
|
68
|
-
web_stop_taking_orders: IWebStopTakingOrders | null;
|
|
69
|
-
web_unpaid_payment_types: WEB_UNPAID_PAYMENT_TYPE_ENUM[];
|
|
70
|
-
dinein_service_fee: number;
|
|
71
|
-
opt_in_for_radius_based_delivery: boolean;
|
|
72
|
-
delivery_radius: number;
|
|
73
|
-
min_delivery_order_value: number;
|
|
74
|
-
delivery_min_cost: number;
|
|
75
|
-
delivery_min_cost_distance_mtrs: number;
|
|
76
|
-
delivery_cost_per_meter: number;
|
|
77
|
-
delivery_free_over: number;
|
|
78
|
-
delivery_order_value_per_meter: number;
|
|
79
|
-
static_delivery_cost_multiplier: number;
|
|
80
|
-
rider_revenue_type: RIDER_FEE_TYPE_ENUM;
|
|
81
|
-
rider_revenue_per_meter: number;
|
|
82
|
-
static_rider_revenue_multiplier: number;
|
|
83
|
-
min_service_fee_order_value?: number;
|
|
84
|
-
packaging_charges?: number;
|
|
85
|
-
packaging_charges_free_over?: number;
|
|
86
|
-
min_packaging_charges_order_value?: number;
|
|
87
|
-
cash_in_hand_limit?: number;
|
|
88
|
-
rider_pickup_food_image_mandatory?: boolean;
|
|
89
|
-
rider_dropoff_food_image_mandatory?: boolean;
|
|
90
|
-
disable_reason_for_discount?: boolean;
|
|
91
|
-
brand_color: string;
|
|
92
|
-
restaurant_address: string;
|
|
93
|
-
public_business_name: string;
|
|
94
|
-
support_email: string;
|
|
95
|
-
business_website: string | null;
|
|
96
|
-
staff_ordering_domain: string | null;
|
|
97
|
-
business_type: string;
|
|
98
|
-
tax_business_number: string;
|
|
99
|
-
track_order_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
100
|
-
order_number_grouping_type: ORDER_NUMBER_GROUPING_TYPE_ENUM;
|
|
101
|
-
public_phone_numbers: string[];
|
|
102
|
-
web_show_featured_items: boolean;
|
|
103
|
-
featured_category_name: string;
|
|
104
|
-
card_gst: number;
|
|
105
|
-
cash_gst: number;
|
|
106
|
-
default_gst_type: GST_TYPE_ENUM;
|
|
107
|
-
web_cover_image: string;
|
|
108
|
-
web_favicon: string;
|
|
109
|
-
web_design_type: ONLINE_ORDERING_DESIGN_TYPE_ENUM;
|
|
110
|
-
store_description: string;
|
|
111
|
-
operational_time_zone_offset_gmt: number;
|
|
112
|
-
operational_start_time: number;
|
|
113
|
-
operational_end_time: number;
|
|
114
|
-
card_processing_provider?: CARD_PROCESSING_PROVIDERS_ENUM;
|
|
115
|
-
card_processing_account_id?: string | null;
|
|
116
|
-
_card_processing_account_token?: string | null;
|
|
117
|
-
sms_processing_provider?: SMS_PROCESSING_PROVIDERS_ENUM;
|
|
118
|
-
sms_processing_account_id?: string | null;
|
|
119
|
-
email_processing_provider?: EMAIL_PROCESSING_PROVIDERS_ENUM;
|
|
120
|
-
email_processing_account_id?: string | null;
|
|
121
|
-
send_sms_on_order_status: ORDER_STATUS_ENUM[];
|
|
122
|
-
send_email_on_order_status: ORDER_STATUS_ENUM[];
|
|
123
|
-
auto_sms_platforms: PLATFORMS_ENUM[];
|
|
124
|
-
auto_email_platforms: PLATFORMS_ENUM[];
|
|
125
|
-
alert_phone_numbers: string[];
|
|
126
|
-
alert_email_addresses: string[];
|
|
127
|
-
alert_when: ALERT_NOTIFICATIONS_TYPE_ENUM[];
|
|
128
|
-
auto_accept_order_for_platforms: PLATFORMS_ENUM[];
|
|
129
|
-
custom_payment_types: string[];
|
|
130
|
-
expense_payment_types: string[];
|
|
131
|
-
takeaway_is_pickup?: boolean;
|
|
132
|
-
reservation_enabled: boolean;
|
|
133
|
-
ms_clarity_id?: string | null;
|
|
134
|
-
fb_pixel_id?: string | null;
|
|
135
|
-
gtm_id?: string | null;
|
|
136
|
-
tax_invoice_provider?: TAX_INVOICE_PROVIDER_ENUM;
|
|
137
|
-
tax_invoice_generation_id?: string | null;
|
|
138
|
-
_tax_invoice_generation_token?: string | null;
|
|
139
|
-
web_hide_order_total_for_staff?: boolean;
|
|
140
|
-
is_service_fee_percentage?: boolean;
|
|
141
|
-
is_service_fee_taxable?: boolean;
|
|
142
|
-
is_surcharge_percentage?: boolean;
|
|
143
|
-
is_surcharge_taxable?: boolean;
|
|
144
|
-
exclude_discount_from_gst?: boolean;
|
|
145
|
-
apply_service_fee_on_original_price?: boolean;
|
|
146
|
-
is_gst_inclusive?: boolean;
|
|
147
|
-
apply_tax_on_complimentary_payment?: boolean;
|
|
148
|
-
web_auth_type?: WEB_AUTH_TYPE_ENUM;
|
|
149
|
-
delivery_areas_search_type?: DELIVERY_AREAS_SEARCH_TYPE_ENUM;
|
|
150
|
-
omit_offers_for_anonymous?: boolean;
|
|
151
|
-
integrations: INTEGRATIONS_ENUM[];
|
|
152
|
-
exempt_gst_for_platforms: PLATFORMS_ENUM[];
|
|
153
|
-
edit_settled_order?: boolean;
|
|
154
|
-
playstore_url?: string | null;
|
|
155
|
-
appstore_url?: string | null;
|
|
156
|
-
dark_mode?: boolean;
|
|
157
|
-
hide_gst_value?: boolean;
|
|
158
|
-
subscription_expiry?: Date | null;
|
|
159
|
-
digital_menu_images?: string[] | null;
|
|
160
|
-
web_slider_images?: string[] | null;
|
|
161
|
-
enabled_rating_types: RATING_TYPE_ENUM[];
|
|
162
|
-
specials_name?: string | null;
|
|
163
|
-
order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
|
|
164
|
-
fb_link?: string | null;
|
|
165
|
-
instagram_link?: string | null;
|
|
166
|
-
twitter_link?: string | null;
|
|
167
|
-
tiktok_link?: string | null;
|
|
168
|
-
receipt_qr_type?: RECEIPT_QR_CODE_TYPE_ENUM | null;
|
|
169
|
-
menu_source?: string | null;
|
|
170
|
-
app_version?: string | null;
|
|
171
|
-
force_isolated_printing?: boolean;
|
|
172
|
-
createdAt: Date;
|
|
173
|
-
updatedAt: Date;
|
|
174
|
-
}
|
|
175
|
-
export interface ITenantOnlineOrderingMetadata {
|
|
176
|
-
_id: string;
|
|
177
|
-
image_url: ITenant['image_url'];
|
|
178
|
-
business_website: ITenant['business_website'];
|
|
179
|
-
staff_ordering_domain: ITenant['staff_ordering_domain'];
|
|
180
|
-
public_business_name: ITenant['public_business_name'];
|
|
181
|
-
restaurant_address: ITenant['restaurant_address'];
|
|
182
|
-
store_description: ITenant['store_description'];
|
|
183
|
-
web_favicon: ITenant['web_favicon'];
|
|
184
|
-
brand_color: ITenant['brand_color'];
|
|
185
|
-
business_type: ITenant['business_type'];
|
|
186
|
-
city: ITenant['city'];
|
|
187
|
-
fb_link: ITenant['fb_link'];
|
|
188
|
-
instagram_link: ITenant['instagram_link'];
|
|
189
|
-
twitter_link: ITenant['twitter_link'];
|
|
190
|
-
tiktok_link: ITenant['tiktok_link'];
|
|
191
|
-
}
|
|
192
|
-
export interface IBrandOnlineOrderingMetadata {
|
|
193
|
-
_id: string;
|
|
194
|
-
image_url: IBrand['image_url'];
|
|
195
|
-
name: IBrand['name'];
|
|
196
|
-
multi_tenant_website: IBrand['multi_tenant_website'];
|
|
197
|
-
store_description: ITenant['store_description'];
|
|
198
|
-
web_favicon: ITenant['web_favicon'];
|
|
199
|
-
brand_color: ITenant['brand_color'];
|
|
200
|
-
business_type: ITenant['business_type'];
|
|
201
|
-
fb_link: ITenant['fb_link'];
|
|
202
|
-
instagram_link: ITenant['instagram_link'];
|
|
203
|
-
twitter_link: ITenant['twitter_link'];
|
|
204
|
-
tiktok_link: ITenant['tiktok_link'];
|
|
205
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PLATFORM_TYPE_ENUM, USER_ROLES_ENUM } from '../../constants';
|
|
2
|
-
import { IItemSpecialHour } from './common';
|
|
3
|
-
export interface ITenantStaff {
|
|
4
|
-
_id: string;
|
|
5
|
-
uid: string;
|
|
6
|
-
tenant_id: string;
|
|
7
|
-
staff_auth_code: string | null;
|
|
8
|
-
email: string | null;
|
|
9
|
-
email_verified: boolean;
|
|
10
|
-
display_name: string | null;
|
|
11
|
-
image_url: string | null;
|
|
12
|
-
is_disabled: boolean;
|
|
13
|
-
phone_number: string;
|
|
14
|
-
phone_number_verified: boolean;
|
|
15
|
-
role: USER_ROLES_ENUM;
|
|
16
|
-
allowed_platforms: PLATFORM_TYPE_ENUM[];
|
|
17
|
-
assigned_tables: string[] | null;
|
|
18
|
-
operational_hours?: IItemSpecialHour[] | null;
|
|
19
|
-
cash_in_hand?: number | null;
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
updatedAt: Date;
|
|
22
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IPlatformNumber } from './common';
|
|
2
|
-
export interface ITrackOrderNumber {
|
|
3
|
-
_id: string;
|
|
4
|
-
YEAR: Partial<IPlatformNumber>;
|
|
5
|
-
MONTH: Partial<IPlatformNumber>;
|
|
6
|
-
DAY: Partial<IPlatformNumber>;
|
|
7
|
-
runningLocalDate?: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { VOID_PURCHASE_ORDER_ITEM_TYPE_ENUM } from '../../constants';
|
|
2
|
-
export interface IVoidPurchaseOrderItemAdjustment {
|
|
3
|
-
_id: string;
|
|
4
|
-
order_id: string;
|
|
5
|
-
order_number: number | null;
|
|
6
|
-
order_item_id: string;
|
|
7
|
-
quantity: number;
|
|
8
|
-
subtotal: number;
|
|
9
|
-
staff_id: string;
|
|
10
|
-
staff_name: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IVoidPurchaseOrderItem {
|
|
13
|
-
_id: string;
|
|
14
|
-
warehouse_id: string;
|
|
15
|
-
order_id: string;
|
|
16
|
-
order_number: number | null;
|
|
17
|
-
item_id: string;
|
|
18
|
-
order_item_id: string;
|
|
19
|
-
void_type: VOID_PURCHASE_ORDER_ITEM_TYPE_ENUM;
|
|
20
|
-
vendor_id: string;
|
|
21
|
-
vendor_name: string;
|
|
22
|
-
staff_id: string;
|
|
23
|
-
staff_name: string;
|
|
24
|
-
void_reason: string;
|
|
25
|
-
iteration: number;
|
|
26
|
-
name: string;
|
|
27
|
-
quantity: number;
|
|
28
|
-
subtotal: number;
|
|
29
|
-
description: string;
|
|
30
|
-
total_adjusted_quantity: number;
|
|
31
|
-
total_adjusted_subtotal: number;
|
|
32
|
-
adjustments?: IVoidPurchaseOrderItemAdjustment[] | null;
|
|
33
|
-
order_punched_at: Date;
|
|
34
|
-
createdAt_mins: number;
|
|
35
|
-
createdAt: Date;
|
|
36
|
-
updatedAt: Date;
|
|
37
|
-
}
|