@managesome/eposmatic-toolkit 0.2.426 → 0.2.429
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/RFQ.js +8 -8
- package/lib/schemas/models/applied_order_discounts.d.ts +80 -0
- package/lib/schemas/models/applied_order_discounts.js +106 -0
- package/lib/schemas/models/brands.d.ts +45 -0
- package/lib/schemas/models/brands.js +45 -0
- package/lib/schemas/models/categories.d.ts +60 -0
- package/lib/schemas/models/categories.js +67 -0
- package/lib/schemas/models/close_dates.js +2 -2
- package/lib/schemas/models/dinein_tables.d.ts +6 -6
- package/lib/schemas/models/dinein_tables_fingerprints.d.ts +65 -0
- package/lib/schemas/models/dinein_tables_fingerprints.js +85 -0
- package/lib/schemas/models/discounts.js +3 -3
- package/lib/schemas/models/expense_categories.d.ts +83 -0
- package/lib/schemas/models/expense_categories.js +64 -0
- package/lib/schemas/models/halfhalf_setup.js +3 -3
- package/lib/schemas/models/index.d.ts +23 -23
- package/lib/schemas/models/index.js +23 -23
- package/lib/schemas/models/inventories.d.ts +99 -0
- package/lib/schemas/models/inventories.js +87 -0
- package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +15 -15
- package/lib/schemas/models/items.d.ts +11269 -0
- package/lib/schemas/models/items.js +333 -0
- package/lib/schemas/models/menus.d.ts +941 -0
- package/lib/schemas/models/menus.js +69 -0
- package/lib/schemas/models/offers.js +3 -3
- package/lib/schemas/models/orders.d.ts +15437 -0
- package/lib/schemas/models/orders.js +891 -0
- package/lib/schemas/models/public_holidays.js +2 -2
- package/lib/schemas/models/purchase_order_receipts.d.ts +3 -3
- package/lib/schemas/models/purchase_order_receipts.js +2 -2
- package/lib/schemas/models/purchase_order_rfqs.d.ts +1959 -0
- package/lib/schemas/models/purchase_order_rfqs.js +328 -0
- package/lib/schemas/models/purchase_order_vendor_returns.d.ts +15 -15
- package/lib/schemas/models/purchase_order_vendor_returns.js +2 -2
- package/lib/schemas/models/purchase_orders.js +4 -4
- package/lib/schemas/models/riders.d.ts +65 -0
- package/lib/schemas/models/riders.js +74 -0
- package/lib/schemas/models/specials.js +3 -3
- package/lib/schemas/models/tenant_staffs.d.ts +932 -0
- package/lib/schemas/models/tenant_staffs.js +96 -0
- package/lib/schemas/models/tenants.d.ts +528 -0
- package/lib/schemas/models/tenants.js +755 -0
- package/lib/schemas/models/track_order_numbers.d.ts +413 -0
- package/lib/schemas/models/track_order_numbers.js +45 -0
- package/lib/schemas/models/void_purchase_order_items.js +2 -2
- package/lib/schemas/models/void_warehouse_invoice_items.d.ts +6 -6
- package/lib/schemas/models/void_warehouse_invoice_items.js +2 -2
- package/lib/schemas/models/wallets.d.ts +38 -0
- package/lib/schemas/models/wallets.js +37 -0
- package/lib/schemas/models/warehouse-activity-logs.js +2 -2
- package/lib/schemas/models/warehouse_communications.d.ts +228 -0
- package/lib/schemas/models/warehouse_communications.js +216 -0
- package/lib/schemas/models/warehouse_internal_movements.d.ts +33 -34
- package/lib/schemas/models/warehouse_internal_movements.js +2 -34
- package/lib/schemas/models/warehouse_invoices.js +2 -2
- package/lib/schemas/models/warehouse_items.js +2 -2
- package/lib/schemas/models/warehouse_sale_deliveries.d.ts +167 -0
- package/lib/schemas/models/warehouse_sale_deliveries.js +155 -0
- package/lib/schemas/models/warehouse_sale_invoices.d.ts +227 -0
- package/lib/schemas/models/warehouse_sale_invoices.js +206 -0
- package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +1938 -0
- package/lib/schemas/models/warehouse_sale_order_rfqs.js +309 -0
- package/lib/schemas/models/warehouse_sale_orders.d.ts +1943 -0
- package/lib/schemas/models/warehouse_sale_orders.js +324 -0
- package/lib/schemas/models/warehouse_staffs.d.ts +65 -0
- package/lib/schemas/models/warehouse_staffs.js +78 -0
- package/lib/schemas/models/warehouse_track_order_numbers.d.ts +50 -0
- package/lib/schemas/models/warehouse_track_order_numbers.js +52 -0
- package/lib/schemas/models/warehouse_vendors.d.ts +3 -3
- package/lib/schemas/models/warehouses.d.ts +162 -0
- package/lib/schemas/models/warehouses.js +222 -0
- package/lib/schemas/types/applied_order_discounts.d.ts +22 -0
- package/lib/schemas/types/applied_order_discounts.js +2 -0
- package/lib/schemas/types/brands.d.ts +32 -0
- package/lib/schemas/types/brands.js +2 -0
- package/lib/schemas/types/categories.d.ts +15 -0
- package/lib/schemas/types/categories.js +2 -0
- package/lib/schemas/types/deliveries.d.ts +1 -1
- package/lib/schemas/types/expense_categories.d.ts +20 -0
- package/lib/schemas/types/expense_categories.js +2 -0
- package/lib/schemas/types/expense_details.d.ts +1 -1
- package/lib/schemas/types/index.d.ts +22 -22
- package/lib/schemas/types/index.js +22 -22
- package/lib/schemas/types/inventories.d.ts +48 -0
- package/lib/schemas/types/inventories.js +2 -0
- package/lib/schemas/types/items.d.ts +89 -0
- package/lib/schemas/types/items.js +2 -0
- package/lib/schemas/types/menus.d.ts +17 -0
- package/lib/schemas/types/menus.js +2 -0
- package/lib/schemas/types/multi_tenants.d.ts +2 -2
- package/lib/schemas/types/orders.d.ts +242 -0
- package/lib/schemas/types/orders.js +2 -0
- package/lib/schemas/types/purchase_order_common.d.ts +1 -1
- package/lib/schemas/types/purchase_order_rfqs.d.ts +33 -0
- package/lib/schemas/types/purchase_order_rfqs.js +2 -0
- package/lib/schemas/types/purchase_orders.d.ts +1 -1
- package/lib/schemas/types/reservations.d.ts +1 -1
- package/lib/schemas/types/riders.d.ts +16 -0
- package/lib/schemas/types/riders.js +2 -0
- package/lib/schemas/types/sale_order_common.d.ts +1 -1
- package/lib/schemas/types/specials.d.ts +1 -1
- package/lib/schemas/types/tenant_staffs.d.ts +22 -0
- package/lib/schemas/types/tenant_staffs.js +2 -0
- package/lib/schemas/types/tenants.d.ts +205 -0
- package/lib/schemas/types/tenants.js +2 -0
- package/lib/schemas/types/track_order_numbers.d.ts +10 -0
- package/lib/schemas/types/track_order_numbers.js +2 -0
- package/lib/schemas/types/wallets.d.ts +7 -0
- package/lib/schemas/types/wallets.js +2 -0
- package/lib/schemas/types/warehouse_communications.d.ts +54 -0
- package/lib/schemas/types/warehouse_communications.js +2 -0
- package/lib/schemas/types/warehouse_internal_movements.d.ts +2 -2
- package/lib/schemas/types/warehouse_invoices.d.ts +1 -1
- package/lib/schemas/types/warehouse_sale_deliveries.d.ts +67 -0
- package/lib/schemas/types/warehouse_sale_deliveries.js +2 -0
- package/lib/schemas/types/warehouse_sale_invoices.d.ts +49 -0
- package/lib/schemas/types/warehouse_sale_invoices.js +2 -0
- package/lib/schemas/types/warehouse_sale_order_rfqs.d.ts +25 -0
- package/lib/schemas/types/warehouse_sale_order_rfqs.js +2 -0
- package/lib/schemas/types/warehouse_sale_orders.d.ts +30 -0
- package/lib/schemas/types/warehouse_sale_orders.js +2 -0
- package/lib/schemas/types/warehouse_staffs.d.ts +17 -0
- package/lib/schemas/types/warehouse_staffs.js +2 -0
- package/lib/schemas/types/warehouse_track_order_numbers.d.ts +11 -0
- package/lib/schemas/types/warehouse_track_order_numbers.js +2 -0
- package/lib/schemas/types/warehouses.d.ts +49 -0
- package/lib/schemas/types/warehouses.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const TrackOrderNumberSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
|
+
timestamps: true;
|
|
4
|
+
versionKey: false;
|
|
5
|
+
minimize: false;
|
|
6
|
+
}, {
|
|
7
|
+
createdAt: NativeDate;
|
|
8
|
+
updatedAt: NativeDate;
|
|
9
|
+
} & {
|
|
10
|
+
YEAR: {
|
|
11
|
+
"POS_WALK-IN": number;
|
|
12
|
+
"POS_TAKE-AWAY": number;
|
|
13
|
+
POS_DELIVERY: number;
|
|
14
|
+
"POS_DINE-IN": number;
|
|
15
|
+
"POS_DRIVE-THRU": number;
|
|
16
|
+
POS_KIOSK: number;
|
|
17
|
+
"WEB_TAKE-AWAY": number;
|
|
18
|
+
WEB_DELIVERY: number;
|
|
19
|
+
"WEB_DINE-IN": number;
|
|
20
|
+
"APP_TAKE-AWAY": number;
|
|
21
|
+
APP_DELIVERY: number;
|
|
22
|
+
"APP_DINE-IN": number;
|
|
23
|
+
"FOODPANDA_TAKE-AWAY": number;
|
|
24
|
+
FOODPANDA_DELIVERY: number;
|
|
25
|
+
"FOODPAPA_TAKE-AWAY": number;
|
|
26
|
+
FOODPAPA_DELIVERY: number;
|
|
27
|
+
"DOORDASH_TAKE-AWAY": number;
|
|
28
|
+
DOORDASH_DELIVERY: number;
|
|
29
|
+
"UBER-EATS_TAKE-AWAY": number;
|
|
30
|
+
"UBER-EATS_DELIVERY": number;
|
|
31
|
+
"MENU-LOG_TAKE-AWAY": number;
|
|
32
|
+
"MENU-LOG_DELIVERY": number;
|
|
33
|
+
"GFO_TAKE-AWAY": number;
|
|
34
|
+
GFO_DELIVERY: number;
|
|
35
|
+
"TALABAT_TAKE-AWAY": number;
|
|
36
|
+
TALABAT_DELIVERY: number;
|
|
37
|
+
"NOON_TAKE-AWAY": number;
|
|
38
|
+
NOON_DELIVERY: number;
|
|
39
|
+
"SMILES_TAKE-AWAY": number;
|
|
40
|
+
SMILES_DELIVERY: number;
|
|
41
|
+
"CAREEM_TAKE-AWAY": number;
|
|
42
|
+
CAREEM_DELIVERY: number;
|
|
43
|
+
"DELIVEROO_TAKE-AWAY": number;
|
|
44
|
+
DELIVEROO_DELIVERY: number;
|
|
45
|
+
"ZOMATO_TAKE-AWAY": number;
|
|
46
|
+
ZOMATO_DELIVERY: number;
|
|
47
|
+
"EATEASY_TAKE-AWAY": number;
|
|
48
|
+
EATEASY_DELIVERY: number;
|
|
49
|
+
"KEETA_TAKE-AWAY": number;
|
|
50
|
+
KEETA_DELIVERY: number;
|
|
51
|
+
};
|
|
52
|
+
MONTH: {
|
|
53
|
+
"POS_WALK-IN": number;
|
|
54
|
+
"POS_TAKE-AWAY": number;
|
|
55
|
+
POS_DELIVERY: number;
|
|
56
|
+
"POS_DINE-IN": number;
|
|
57
|
+
"POS_DRIVE-THRU": number;
|
|
58
|
+
POS_KIOSK: number;
|
|
59
|
+
"WEB_TAKE-AWAY": number;
|
|
60
|
+
WEB_DELIVERY: number;
|
|
61
|
+
"WEB_DINE-IN": number;
|
|
62
|
+
"APP_TAKE-AWAY": number;
|
|
63
|
+
APP_DELIVERY: number;
|
|
64
|
+
"APP_DINE-IN": number;
|
|
65
|
+
"FOODPANDA_TAKE-AWAY": number;
|
|
66
|
+
FOODPANDA_DELIVERY: number;
|
|
67
|
+
"FOODPAPA_TAKE-AWAY": number;
|
|
68
|
+
FOODPAPA_DELIVERY: number;
|
|
69
|
+
"DOORDASH_TAKE-AWAY": number;
|
|
70
|
+
DOORDASH_DELIVERY: number;
|
|
71
|
+
"UBER-EATS_TAKE-AWAY": number;
|
|
72
|
+
"UBER-EATS_DELIVERY": number;
|
|
73
|
+
"MENU-LOG_TAKE-AWAY": number;
|
|
74
|
+
"MENU-LOG_DELIVERY": number;
|
|
75
|
+
"GFO_TAKE-AWAY": number;
|
|
76
|
+
GFO_DELIVERY: number;
|
|
77
|
+
"TALABAT_TAKE-AWAY": number;
|
|
78
|
+
TALABAT_DELIVERY: number;
|
|
79
|
+
"NOON_TAKE-AWAY": number;
|
|
80
|
+
NOON_DELIVERY: number;
|
|
81
|
+
"SMILES_TAKE-AWAY": number;
|
|
82
|
+
SMILES_DELIVERY: number;
|
|
83
|
+
"CAREEM_TAKE-AWAY": number;
|
|
84
|
+
CAREEM_DELIVERY: number;
|
|
85
|
+
"DELIVEROO_TAKE-AWAY": number;
|
|
86
|
+
DELIVEROO_DELIVERY: number;
|
|
87
|
+
"ZOMATO_TAKE-AWAY": number;
|
|
88
|
+
ZOMATO_DELIVERY: number;
|
|
89
|
+
"EATEASY_TAKE-AWAY": number;
|
|
90
|
+
EATEASY_DELIVERY: number;
|
|
91
|
+
"KEETA_TAKE-AWAY": number;
|
|
92
|
+
KEETA_DELIVERY: number;
|
|
93
|
+
};
|
|
94
|
+
DAY: {
|
|
95
|
+
"POS_WALK-IN": number;
|
|
96
|
+
"POS_TAKE-AWAY": number;
|
|
97
|
+
POS_DELIVERY: number;
|
|
98
|
+
"POS_DINE-IN": number;
|
|
99
|
+
"POS_DRIVE-THRU": number;
|
|
100
|
+
POS_KIOSK: number;
|
|
101
|
+
"WEB_TAKE-AWAY": number;
|
|
102
|
+
WEB_DELIVERY: number;
|
|
103
|
+
"WEB_DINE-IN": number;
|
|
104
|
+
"APP_TAKE-AWAY": number;
|
|
105
|
+
APP_DELIVERY: number;
|
|
106
|
+
"APP_DINE-IN": number;
|
|
107
|
+
"FOODPANDA_TAKE-AWAY": number;
|
|
108
|
+
FOODPANDA_DELIVERY: number;
|
|
109
|
+
"FOODPAPA_TAKE-AWAY": number;
|
|
110
|
+
FOODPAPA_DELIVERY: number;
|
|
111
|
+
"DOORDASH_TAKE-AWAY": number;
|
|
112
|
+
DOORDASH_DELIVERY: number;
|
|
113
|
+
"UBER-EATS_TAKE-AWAY": number;
|
|
114
|
+
"UBER-EATS_DELIVERY": number;
|
|
115
|
+
"MENU-LOG_TAKE-AWAY": number;
|
|
116
|
+
"MENU-LOG_DELIVERY": number;
|
|
117
|
+
"GFO_TAKE-AWAY": number;
|
|
118
|
+
GFO_DELIVERY: number;
|
|
119
|
+
"TALABAT_TAKE-AWAY": number;
|
|
120
|
+
TALABAT_DELIVERY: number;
|
|
121
|
+
"NOON_TAKE-AWAY": number;
|
|
122
|
+
NOON_DELIVERY: number;
|
|
123
|
+
"SMILES_TAKE-AWAY": number;
|
|
124
|
+
SMILES_DELIVERY: number;
|
|
125
|
+
"CAREEM_TAKE-AWAY": number;
|
|
126
|
+
CAREEM_DELIVERY: number;
|
|
127
|
+
"DELIVEROO_TAKE-AWAY": number;
|
|
128
|
+
DELIVEROO_DELIVERY: number;
|
|
129
|
+
"ZOMATO_TAKE-AWAY": number;
|
|
130
|
+
ZOMATO_DELIVERY: number;
|
|
131
|
+
"EATEASY_TAKE-AWAY": number;
|
|
132
|
+
EATEASY_DELIVERY: number;
|
|
133
|
+
"KEETA_TAKE-AWAY": number;
|
|
134
|
+
KEETA_DELIVERY: number;
|
|
135
|
+
};
|
|
136
|
+
_id: string;
|
|
137
|
+
createdAt: NativeDate;
|
|
138
|
+
updatedAt: NativeDate;
|
|
139
|
+
runningLocalDate?: string | null | undefined;
|
|
140
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
141
|
+
createdAt: NativeDate;
|
|
142
|
+
updatedAt: NativeDate;
|
|
143
|
+
} & {
|
|
144
|
+
YEAR: {
|
|
145
|
+
"POS_WALK-IN": number;
|
|
146
|
+
"POS_TAKE-AWAY": number;
|
|
147
|
+
POS_DELIVERY: number;
|
|
148
|
+
"POS_DINE-IN": number;
|
|
149
|
+
"POS_DRIVE-THRU": number;
|
|
150
|
+
POS_KIOSK: number;
|
|
151
|
+
"WEB_TAKE-AWAY": number;
|
|
152
|
+
WEB_DELIVERY: number;
|
|
153
|
+
"WEB_DINE-IN": number;
|
|
154
|
+
"APP_TAKE-AWAY": number;
|
|
155
|
+
APP_DELIVERY: number;
|
|
156
|
+
"APP_DINE-IN": number;
|
|
157
|
+
"FOODPANDA_TAKE-AWAY": number;
|
|
158
|
+
FOODPANDA_DELIVERY: number;
|
|
159
|
+
"FOODPAPA_TAKE-AWAY": number;
|
|
160
|
+
FOODPAPA_DELIVERY: number;
|
|
161
|
+
"DOORDASH_TAKE-AWAY": number;
|
|
162
|
+
DOORDASH_DELIVERY: number;
|
|
163
|
+
"UBER-EATS_TAKE-AWAY": number;
|
|
164
|
+
"UBER-EATS_DELIVERY": number;
|
|
165
|
+
"MENU-LOG_TAKE-AWAY": number;
|
|
166
|
+
"MENU-LOG_DELIVERY": number;
|
|
167
|
+
"GFO_TAKE-AWAY": number;
|
|
168
|
+
GFO_DELIVERY: number;
|
|
169
|
+
"TALABAT_TAKE-AWAY": number;
|
|
170
|
+
TALABAT_DELIVERY: number;
|
|
171
|
+
"NOON_TAKE-AWAY": number;
|
|
172
|
+
NOON_DELIVERY: number;
|
|
173
|
+
"SMILES_TAKE-AWAY": number;
|
|
174
|
+
SMILES_DELIVERY: number;
|
|
175
|
+
"CAREEM_TAKE-AWAY": number;
|
|
176
|
+
CAREEM_DELIVERY: number;
|
|
177
|
+
"DELIVEROO_TAKE-AWAY": number;
|
|
178
|
+
DELIVEROO_DELIVERY: number;
|
|
179
|
+
"ZOMATO_TAKE-AWAY": number;
|
|
180
|
+
ZOMATO_DELIVERY: number;
|
|
181
|
+
"EATEASY_TAKE-AWAY": number;
|
|
182
|
+
EATEASY_DELIVERY: number;
|
|
183
|
+
"KEETA_TAKE-AWAY": number;
|
|
184
|
+
KEETA_DELIVERY: number;
|
|
185
|
+
};
|
|
186
|
+
MONTH: {
|
|
187
|
+
"POS_WALK-IN": number;
|
|
188
|
+
"POS_TAKE-AWAY": number;
|
|
189
|
+
POS_DELIVERY: number;
|
|
190
|
+
"POS_DINE-IN": number;
|
|
191
|
+
"POS_DRIVE-THRU": number;
|
|
192
|
+
POS_KIOSK: number;
|
|
193
|
+
"WEB_TAKE-AWAY": number;
|
|
194
|
+
WEB_DELIVERY: number;
|
|
195
|
+
"WEB_DINE-IN": number;
|
|
196
|
+
"APP_TAKE-AWAY": number;
|
|
197
|
+
APP_DELIVERY: number;
|
|
198
|
+
"APP_DINE-IN": number;
|
|
199
|
+
"FOODPANDA_TAKE-AWAY": number;
|
|
200
|
+
FOODPANDA_DELIVERY: number;
|
|
201
|
+
"FOODPAPA_TAKE-AWAY": number;
|
|
202
|
+
FOODPAPA_DELIVERY: number;
|
|
203
|
+
"DOORDASH_TAKE-AWAY": number;
|
|
204
|
+
DOORDASH_DELIVERY: number;
|
|
205
|
+
"UBER-EATS_TAKE-AWAY": number;
|
|
206
|
+
"UBER-EATS_DELIVERY": number;
|
|
207
|
+
"MENU-LOG_TAKE-AWAY": number;
|
|
208
|
+
"MENU-LOG_DELIVERY": number;
|
|
209
|
+
"GFO_TAKE-AWAY": number;
|
|
210
|
+
GFO_DELIVERY: number;
|
|
211
|
+
"TALABAT_TAKE-AWAY": number;
|
|
212
|
+
TALABAT_DELIVERY: number;
|
|
213
|
+
"NOON_TAKE-AWAY": number;
|
|
214
|
+
NOON_DELIVERY: number;
|
|
215
|
+
"SMILES_TAKE-AWAY": number;
|
|
216
|
+
SMILES_DELIVERY: number;
|
|
217
|
+
"CAREEM_TAKE-AWAY": number;
|
|
218
|
+
CAREEM_DELIVERY: number;
|
|
219
|
+
"DELIVEROO_TAKE-AWAY": number;
|
|
220
|
+
DELIVEROO_DELIVERY: number;
|
|
221
|
+
"ZOMATO_TAKE-AWAY": number;
|
|
222
|
+
ZOMATO_DELIVERY: number;
|
|
223
|
+
"EATEASY_TAKE-AWAY": number;
|
|
224
|
+
EATEASY_DELIVERY: number;
|
|
225
|
+
"KEETA_TAKE-AWAY": number;
|
|
226
|
+
KEETA_DELIVERY: number;
|
|
227
|
+
};
|
|
228
|
+
DAY: {
|
|
229
|
+
"POS_WALK-IN": number;
|
|
230
|
+
"POS_TAKE-AWAY": number;
|
|
231
|
+
POS_DELIVERY: number;
|
|
232
|
+
"POS_DINE-IN": number;
|
|
233
|
+
"POS_DRIVE-THRU": number;
|
|
234
|
+
POS_KIOSK: number;
|
|
235
|
+
"WEB_TAKE-AWAY": number;
|
|
236
|
+
WEB_DELIVERY: number;
|
|
237
|
+
"WEB_DINE-IN": number;
|
|
238
|
+
"APP_TAKE-AWAY": number;
|
|
239
|
+
APP_DELIVERY: number;
|
|
240
|
+
"APP_DINE-IN": number;
|
|
241
|
+
"FOODPANDA_TAKE-AWAY": number;
|
|
242
|
+
FOODPANDA_DELIVERY: number;
|
|
243
|
+
"FOODPAPA_TAKE-AWAY": number;
|
|
244
|
+
FOODPAPA_DELIVERY: number;
|
|
245
|
+
"DOORDASH_TAKE-AWAY": number;
|
|
246
|
+
DOORDASH_DELIVERY: number;
|
|
247
|
+
"UBER-EATS_TAKE-AWAY": number;
|
|
248
|
+
"UBER-EATS_DELIVERY": number;
|
|
249
|
+
"MENU-LOG_TAKE-AWAY": number;
|
|
250
|
+
"MENU-LOG_DELIVERY": number;
|
|
251
|
+
"GFO_TAKE-AWAY": number;
|
|
252
|
+
GFO_DELIVERY: number;
|
|
253
|
+
"TALABAT_TAKE-AWAY": number;
|
|
254
|
+
TALABAT_DELIVERY: number;
|
|
255
|
+
"NOON_TAKE-AWAY": number;
|
|
256
|
+
NOON_DELIVERY: number;
|
|
257
|
+
"SMILES_TAKE-AWAY": number;
|
|
258
|
+
SMILES_DELIVERY: number;
|
|
259
|
+
"CAREEM_TAKE-AWAY": number;
|
|
260
|
+
CAREEM_DELIVERY: number;
|
|
261
|
+
"DELIVEROO_TAKE-AWAY": number;
|
|
262
|
+
DELIVEROO_DELIVERY: number;
|
|
263
|
+
"ZOMATO_TAKE-AWAY": number;
|
|
264
|
+
ZOMATO_DELIVERY: number;
|
|
265
|
+
"EATEASY_TAKE-AWAY": number;
|
|
266
|
+
EATEASY_DELIVERY: number;
|
|
267
|
+
"KEETA_TAKE-AWAY": number;
|
|
268
|
+
KEETA_DELIVERY: number;
|
|
269
|
+
};
|
|
270
|
+
_id: string;
|
|
271
|
+
createdAt: NativeDate;
|
|
272
|
+
updatedAt: NativeDate;
|
|
273
|
+
runningLocalDate?: string | null | undefined;
|
|
274
|
+
}>> & import("mongoose").FlatRecord<{
|
|
275
|
+
createdAt: NativeDate;
|
|
276
|
+
updatedAt: NativeDate;
|
|
277
|
+
} & {
|
|
278
|
+
YEAR: {
|
|
279
|
+
"POS_WALK-IN": number;
|
|
280
|
+
"POS_TAKE-AWAY": number;
|
|
281
|
+
POS_DELIVERY: number;
|
|
282
|
+
"POS_DINE-IN": number;
|
|
283
|
+
"POS_DRIVE-THRU": number;
|
|
284
|
+
POS_KIOSK: number;
|
|
285
|
+
"WEB_TAKE-AWAY": number;
|
|
286
|
+
WEB_DELIVERY: number;
|
|
287
|
+
"WEB_DINE-IN": number;
|
|
288
|
+
"APP_TAKE-AWAY": number;
|
|
289
|
+
APP_DELIVERY: number;
|
|
290
|
+
"APP_DINE-IN": number;
|
|
291
|
+
"FOODPANDA_TAKE-AWAY": number;
|
|
292
|
+
FOODPANDA_DELIVERY: number;
|
|
293
|
+
"FOODPAPA_TAKE-AWAY": number;
|
|
294
|
+
FOODPAPA_DELIVERY: number;
|
|
295
|
+
"DOORDASH_TAKE-AWAY": number;
|
|
296
|
+
DOORDASH_DELIVERY: number;
|
|
297
|
+
"UBER-EATS_TAKE-AWAY": number;
|
|
298
|
+
"UBER-EATS_DELIVERY": number;
|
|
299
|
+
"MENU-LOG_TAKE-AWAY": number;
|
|
300
|
+
"MENU-LOG_DELIVERY": number;
|
|
301
|
+
"GFO_TAKE-AWAY": number;
|
|
302
|
+
GFO_DELIVERY: number;
|
|
303
|
+
"TALABAT_TAKE-AWAY": number;
|
|
304
|
+
TALABAT_DELIVERY: number;
|
|
305
|
+
"NOON_TAKE-AWAY": number;
|
|
306
|
+
NOON_DELIVERY: number;
|
|
307
|
+
"SMILES_TAKE-AWAY": number;
|
|
308
|
+
SMILES_DELIVERY: number;
|
|
309
|
+
"CAREEM_TAKE-AWAY": number;
|
|
310
|
+
CAREEM_DELIVERY: number;
|
|
311
|
+
"DELIVEROO_TAKE-AWAY": number;
|
|
312
|
+
DELIVEROO_DELIVERY: number;
|
|
313
|
+
"ZOMATO_TAKE-AWAY": number;
|
|
314
|
+
ZOMATO_DELIVERY: number;
|
|
315
|
+
"EATEASY_TAKE-AWAY": number;
|
|
316
|
+
EATEASY_DELIVERY: number;
|
|
317
|
+
"KEETA_TAKE-AWAY": number;
|
|
318
|
+
KEETA_DELIVERY: number;
|
|
319
|
+
};
|
|
320
|
+
MONTH: {
|
|
321
|
+
"POS_WALK-IN": number;
|
|
322
|
+
"POS_TAKE-AWAY": number;
|
|
323
|
+
POS_DELIVERY: number;
|
|
324
|
+
"POS_DINE-IN": number;
|
|
325
|
+
"POS_DRIVE-THRU": number;
|
|
326
|
+
POS_KIOSK: number;
|
|
327
|
+
"WEB_TAKE-AWAY": number;
|
|
328
|
+
WEB_DELIVERY: number;
|
|
329
|
+
"WEB_DINE-IN": number;
|
|
330
|
+
"APP_TAKE-AWAY": number;
|
|
331
|
+
APP_DELIVERY: number;
|
|
332
|
+
"APP_DINE-IN": number;
|
|
333
|
+
"FOODPANDA_TAKE-AWAY": number;
|
|
334
|
+
FOODPANDA_DELIVERY: number;
|
|
335
|
+
"FOODPAPA_TAKE-AWAY": number;
|
|
336
|
+
FOODPAPA_DELIVERY: number;
|
|
337
|
+
"DOORDASH_TAKE-AWAY": number;
|
|
338
|
+
DOORDASH_DELIVERY: number;
|
|
339
|
+
"UBER-EATS_TAKE-AWAY": number;
|
|
340
|
+
"UBER-EATS_DELIVERY": number;
|
|
341
|
+
"MENU-LOG_TAKE-AWAY": number;
|
|
342
|
+
"MENU-LOG_DELIVERY": number;
|
|
343
|
+
"GFO_TAKE-AWAY": number;
|
|
344
|
+
GFO_DELIVERY: number;
|
|
345
|
+
"TALABAT_TAKE-AWAY": number;
|
|
346
|
+
TALABAT_DELIVERY: number;
|
|
347
|
+
"NOON_TAKE-AWAY": number;
|
|
348
|
+
NOON_DELIVERY: number;
|
|
349
|
+
"SMILES_TAKE-AWAY": number;
|
|
350
|
+
SMILES_DELIVERY: number;
|
|
351
|
+
"CAREEM_TAKE-AWAY": number;
|
|
352
|
+
CAREEM_DELIVERY: number;
|
|
353
|
+
"DELIVEROO_TAKE-AWAY": number;
|
|
354
|
+
DELIVEROO_DELIVERY: number;
|
|
355
|
+
"ZOMATO_TAKE-AWAY": number;
|
|
356
|
+
ZOMATO_DELIVERY: number;
|
|
357
|
+
"EATEASY_TAKE-AWAY": number;
|
|
358
|
+
EATEASY_DELIVERY: number;
|
|
359
|
+
"KEETA_TAKE-AWAY": number;
|
|
360
|
+
KEETA_DELIVERY: number;
|
|
361
|
+
};
|
|
362
|
+
DAY: {
|
|
363
|
+
"POS_WALK-IN": number;
|
|
364
|
+
"POS_TAKE-AWAY": number;
|
|
365
|
+
POS_DELIVERY: number;
|
|
366
|
+
"POS_DINE-IN": number;
|
|
367
|
+
"POS_DRIVE-THRU": number;
|
|
368
|
+
POS_KIOSK: number;
|
|
369
|
+
"WEB_TAKE-AWAY": number;
|
|
370
|
+
WEB_DELIVERY: number;
|
|
371
|
+
"WEB_DINE-IN": number;
|
|
372
|
+
"APP_TAKE-AWAY": number;
|
|
373
|
+
APP_DELIVERY: number;
|
|
374
|
+
"APP_DINE-IN": number;
|
|
375
|
+
"FOODPANDA_TAKE-AWAY": number;
|
|
376
|
+
FOODPANDA_DELIVERY: number;
|
|
377
|
+
"FOODPAPA_TAKE-AWAY": number;
|
|
378
|
+
FOODPAPA_DELIVERY: number;
|
|
379
|
+
"DOORDASH_TAKE-AWAY": number;
|
|
380
|
+
DOORDASH_DELIVERY: number;
|
|
381
|
+
"UBER-EATS_TAKE-AWAY": number;
|
|
382
|
+
"UBER-EATS_DELIVERY": number;
|
|
383
|
+
"MENU-LOG_TAKE-AWAY": number;
|
|
384
|
+
"MENU-LOG_DELIVERY": number;
|
|
385
|
+
"GFO_TAKE-AWAY": number;
|
|
386
|
+
GFO_DELIVERY: number;
|
|
387
|
+
"TALABAT_TAKE-AWAY": number;
|
|
388
|
+
TALABAT_DELIVERY: number;
|
|
389
|
+
"NOON_TAKE-AWAY": number;
|
|
390
|
+
NOON_DELIVERY: number;
|
|
391
|
+
"SMILES_TAKE-AWAY": number;
|
|
392
|
+
SMILES_DELIVERY: number;
|
|
393
|
+
"CAREEM_TAKE-AWAY": number;
|
|
394
|
+
CAREEM_DELIVERY: number;
|
|
395
|
+
"DELIVEROO_TAKE-AWAY": number;
|
|
396
|
+
DELIVEROO_DELIVERY: number;
|
|
397
|
+
"ZOMATO_TAKE-AWAY": number;
|
|
398
|
+
ZOMATO_DELIVERY: number;
|
|
399
|
+
"EATEASY_TAKE-AWAY": number;
|
|
400
|
+
EATEASY_DELIVERY: number;
|
|
401
|
+
"KEETA_TAKE-AWAY": number;
|
|
402
|
+
KEETA_DELIVERY: number;
|
|
403
|
+
};
|
|
404
|
+
_id: string;
|
|
405
|
+
createdAt: NativeDate;
|
|
406
|
+
updatedAt: NativeDate;
|
|
407
|
+
runningLocalDate?: string | null | undefined;
|
|
408
|
+
}> & Required<{
|
|
409
|
+
_id: string;
|
|
410
|
+
}> & {
|
|
411
|
+
__v: number;
|
|
412
|
+
}>;
|
|
413
|
+
export declare const TRACK_ORDER_NUMBERS_COLLECTION_NAME = "track_order_numbers";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TRACK_ORDER_NUMBERS_COLLECTION_NAME = exports.TrackOrderNumberSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const common_models_1 = require("./common-models");
|
|
6
|
+
exports.TrackOrderNumberSchema = new mongoose_1.Schema({
|
|
7
|
+
_id: {
|
|
8
|
+
type: String,
|
|
9
|
+
required: true,
|
|
10
|
+
immutable: true,
|
|
11
|
+
ref: 'tenants',
|
|
12
|
+
},
|
|
13
|
+
YEAR: {
|
|
14
|
+
type: common_models_1.PartialPlatformNumSchema,
|
|
15
|
+
default: {},
|
|
16
|
+
},
|
|
17
|
+
MONTH: {
|
|
18
|
+
type: common_models_1.PartialPlatformNumSchema,
|
|
19
|
+
default: {},
|
|
20
|
+
},
|
|
21
|
+
DAY: {
|
|
22
|
+
type: common_models_1.PartialPlatformNumSchema,
|
|
23
|
+
default: {},
|
|
24
|
+
},
|
|
25
|
+
runningLocalDate: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: false,
|
|
28
|
+
},
|
|
29
|
+
createdAt: {
|
|
30
|
+
type: mongoose_1.Schema.Types.Date,
|
|
31
|
+
required: true,
|
|
32
|
+
default: () => new Date(),
|
|
33
|
+
immutable: true,
|
|
34
|
+
},
|
|
35
|
+
updatedAt: {
|
|
36
|
+
type: mongoose_1.Schema.Types.Date,
|
|
37
|
+
required: true,
|
|
38
|
+
default: () => new Date(),
|
|
39
|
+
},
|
|
40
|
+
}, {
|
|
41
|
+
timestamps: true,
|
|
42
|
+
versionKey: false,
|
|
43
|
+
minimize: false,
|
|
44
|
+
});
|
|
45
|
+
exports.TRACK_ORDER_NUMBERS_COLLECTION_NAME = 'track_order_numbers';
|
|
@@ -5,8 +5,8 @@ const mongoose_1 = require("mongoose");
|
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const purchase_orders_1 = require("./purchase_orders");
|
|
7
7
|
const warehouse_items_1 = require("./warehouse_items");
|
|
8
|
-
const warehouse_1 = require("./warehouse");
|
|
9
8
|
const warehouse_vendors_1 = require("./warehouse_vendors");
|
|
9
|
+
const warehouses_1 = require("./warehouses");
|
|
10
10
|
const VoidPurchaseOrderItemAdjustmentSchema = new mongoose_1.Schema({
|
|
11
11
|
_id: {
|
|
12
12
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
@@ -58,7 +58,7 @@ exports.VoidPurchaseOrderItemSchema = new mongoose_1.Schema({
|
|
|
58
58
|
warehouse_id: {
|
|
59
59
|
type: String,
|
|
60
60
|
required: true,
|
|
61
|
-
ref:
|
|
61
|
+
ref: warehouses_1.WAREHOUSE_SETTINGS_COLLECTION_NAME,
|
|
62
62
|
immutable: true,
|
|
63
63
|
},
|
|
64
64
|
order_id: {
|
|
@@ -22,14 +22,14 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
22
22
|
subtotal: number;
|
|
23
23
|
void_reason: string;
|
|
24
24
|
warehouse_id: string;
|
|
25
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
26
|
-
client_name: string;
|
|
27
25
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
28
26
|
void_type: import("../../constants").VOID_WAREHOUSE_INVOICE_ITEM_TYPE_ENUM;
|
|
29
27
|
iteration: number;
|
|
30
28
|
total_adjusted_quantity: number;
|
|
31
29
|
total_adjusted_subtotal: number;
|
|
32
30
|
order_punched_at: NativeDate;
|
|
31
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
32
|
+
client_name: string;
|
|
33
33
|
adjustments?: import("mongoose").Types.DocumentArray<{
|
|
34
34
|
_id: import("mongoose").Types.ObjectId;
|
|
35
35
|
order_id: import("mongoose").Types.ObjectId;
|
|
@@ -77,14 +77,14 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
77
77
|
subtotal: number;
|
|
78
78
|
void_reason: string;
|
|
79
79
|
warehouse_id: string;
|
|
80
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
81
|
-
client_name: string;
|
|
82
80
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
83
81
|
void_type: import("../../constants").VOID_WAREHOUSE_INVOICE_ITEM_TYPE_ENUM;
|
|
84
82
|
iteration: number;
|
|
85
83
|
total_adjusted_quantity: number;
|
|
86
84
|
total_adjusted_subtotal: number;
|
|
87
85
|
order_punched_at: NativeDate;
|
|
86
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
87
|
+
client_name: string;
|
|
88
88
|
adjustments?: import("mongoose").Types.DocumentArray<{
|
|
89
89
|
_id: import("mongoose").Types.ObjectId;
|
|
90
90
|
order_id: import("mongoose").Types.ObjectId;
|
|
@@ -132,14 +132,14 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
132
132
|
subtotal: number;
|
|
133
133
|
void_reason: string;
|
|
134
134
|
warehouse_id: string;
|
|
135
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
136
|
-
client_name: string;
|
|
137
135
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
138
136
|
void_type: import("../../constants").VOID_WAREHOUSE_INVOICE_ITEM_TYPE_ENUM;
|
|
139
137
|
iteration: number;
|
|
140
138
|
total_adjusted_quantity: number;
|
|
141
139
|
total_adjusted_subtotal: number;
|
|
142
140
|
order_punched_at: NativeDate;
|
|
141
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
142
|
+
client_name: string;
|
|
143
143
|
adjustments?: import("mongoose").Types.DocumentArray<{
|
|
144
144
|
_id: import("mongoose").Types.ObjectId;
|
|
145
145
|
order_id: import("mongoose").Types.ObjectId;
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VOID_WAREHOUSE_INVOICE_ITEMS_COLLECTION_NAME = exports.VoidWarehouseInvoiceItemSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
|
-
const warehouse_1 = require("./warehouse");
|
|
7
6
|
const warehouse_clients_1 = require("./warehouse_clients");
|
|
8
7
|
const warehouse_invoices_1 = require("./warehouse_invoices");
|
|
8
|
+
const warehouses_1 = require("./warehouses");
|
|
9
9
|
const VoidWarehouseInvoiceItemAdjustmentSchema = new mongoose_1.Schema({
|
|
10
10
|
_id: {
|
|
11
11
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
@@ -57,7 +57,7 @@ exports.VoidWarehouseInvoiceItemSchema = new mongoose_1.Schema({
|
|
|
57
57
|
warehouse_id: {
|
|
58
58
|
type: String,
|
|
59
59
|
required: true,
|
|
60
|
-
ref:
|
|
60
|
+
ref: warehouses_1.WAREHOUSE_SETTINGS_COLLECTION_NAME,
|
|
61
61
|
immutable: true,
|
|
62
62
|
},
|
|
63
63
|
order_id: {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const WalletSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
|
+
timestamps: true;
|
|
4
|
+
versionKey: false;
|
|
5
|
+
minimize: false;
|
|
6
|
+
}, {
|
|
7
|
+
createdAt: NativeDate;
|
|
8
|
+
updatedAt: NativeDate;
|
|
9
|
+
} & {
|
|
10
|
+
_id: import("mongoose").Types.ObjectId;
|
|
11
|
+
tenant_id: string;
|
|
12
|
+
createdAt: NativeDate;
|
|
13
|
+
updatedAt: NativeDate;
|
|
14
|
+
balance: number;
|
|
15
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
16
|
+
createdAt: NativeDate;
|
|
17
|
+
updatedAt: NativeDate;
|
|
18
|
+
} & {
|
|
19
|
+
_id: import("mongoose").Types.ObjectId;
|
|
20
|
+
tenant_id: string;
|
|
21
|
+
createdAt: NativeDate;
|
|
22
|
+
updatedAt: NativeDate;
|
|
23
|
+
balance: number;
|
|
24
|
+
}>> & import("mongoose").FlatRecord<{
|
|
25
|
+
createdAt: NativeDate;
|
|
26
|
+
updatedAt: NativeDate;
|
|
27
|
+
} & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
tenant_id: string;
|
|
30
|
+
createdAt: NativeDate;
|
|
31
|
+
updatedAt: NativeDate;
|
|
32
|
+
balance: number;
|
|
33
|
+
}> & Required<{
|
|
34
|
+
_id: import("mongoose").Types.ObjectId;
|
|
35
|
+
}> & {
|
|
36
|
+
__v: number;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const WALLET_COLLECTION_NAME = "wallets";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WALLET_COLLECTION_NAME = exports.WalletSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.WalletSchema = new mongoose_1.Schema({
|
|
6
|
+
_id: {
|
|
7
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
+
required: true,
|
|
9
|
+
immutable: true,
|
|
10
|
+
},
|
|
11
|
+
tenant_id: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true,
|
|
14
|
+
immutable: true,
|
|
15
|
+
ref: 'tenants',
|
|
16
|
+
},
|
|
17
|
+
balance: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 0,
|
|
20
|
+
},
|
|
21
|
+
createdAt: {
|
|
22
|
+
type: mongoose_1.Schema.Types.Date,
|
|
23
|
+
required: true,
|
|
24
|
+
default: () => new Date(),
|
|
25
|
+
immutable: true,
|
|
26
|
+
},
|
|
27
|
+
updatedAt: {
|
|
28
|
+
type: mongoose_1.Schema.Types.Date,
|
|
29
|
+
required: true,
|
|
30
|
+
default: () => new Date(),
|
|
31
|
+
},
|
|
32
|
+
}, {
|
|
33
|
+
timestamps: true,
|
|
34
|
+
versionKey: false,
|
|
35
|
+
minimize: false,
|
|
36
|
+
});
|
|
37
|
+
exports.WALLET_COLLECTION_NAME = 'wallets';
|
|
@@ -5,7 +5,7 @@ const mongoose_1 = require("mongoose");
|
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const warehouse_activity_logs_1 = require("../types/warehouse-activity-logs");
|
|
7
7
|
Object.defineProperty(exports, "WAREHOUSE_ACTIVITY_LOGS_COLLECTION_NAME", { enumerable: true, get: function () { return warehouse_activity_logs_1.WAREHOUSE_ACTIVITY_LOGS_COLLECTION_NAME; } });
|
|
8
|
-
const
|
|
8
|
+
const warehouses_1 = require("./warehouses");
|
|
9
9
|
const WarehouseActivityLogActorSchema = new mongoose_1.Schema({
|
|
10
10
|
staff_id: {
|
|
11
11
|
type: String,
|
|
@@ -74,7 +74,7 @@ exports.WarehouseActivityLogSchema = new mongoose_1.Schema({
|
|
|
74
74
|
warehouse_id: {
|
|
75
75
|
type: String,
|
|
76
76
|
required: true,
|
|
77
|
-
ref:
|
|
77
|
+
ref: warehouses_1.WAREHOUSE_SETTINGS_COLLECTION_NAME,
|
|
78
78
|
},
|
|
79
79
|
entity_type: {
|
|
80
80
|
type: String,
|