lazywait-calcs 1.8.2 → 1.8.3
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/cjs/types/types.d.ts +112 -72
- package/lib/cjs/types/types.d.ts.map +1 -1
- package/lib/cjs/types.js +3 -3
- package/lib/esm/types/types.d.ts +112 -72
- package/lib/esm/types/types.d.ts.map +1 -1
- package/lib/esm/types.js +3 -3
- package/package.json +1 -1
package/lib/esm/types/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LazyWaitAppTypes } from
|
|
1
|
+
import { LazyWaitAppTypes } from './lwapp_types';
|
|
2
2
|
declare namespace FirebaseFirestore {
|
|
3
3
|
type Timestamp = {};
|
|
4
4
|
type FieldValue = {};
|
|
@@ -11,8 +11,8 @@ export declare type ProvidersList = {
|
|
|
11
11
|
name: PaymentProviders;
|
|
12
12
|
platforms: SupportedPlatforms[];
|
|
13
13
|
};
|
|
14
|
-
export declare type SupportedPlatforms =
|
|
15
|
-
export declare type PaymentProviders =
|
|
14
|
+
export declare type SupportedPlatforms = 'windows' | 'ios' | 'android';
|
|
15
|
+
export declare type PaymentProviders = 'SUREPAY' | 'ALHAMRANI' | 'LAZYWAITPAY';
|
|
16
16
|
export interface EGSUnitLocation {
|
|
17
17
|
city: string;
|
|
18
18
|
city_subdivision: string;
|
|
@@ -121,7 +121,7 @@ export declare type POSUser = {
|
|
|
121
121
|
user_name?: string;
|
|
122
122
|
user_password?: string;
|
|
123
123
|
user_phone?: string;
|
|
124
|
-
user_type?:
|
|
124
|
+
user_type?: 'ADMIN' | 'USER';
|
|
125
125
|
branches_ids?: string[];
|
|
126
126
|
country_code?: string;
|
|
127
127
|
owner?: boolean;
|
|
@@ -141,7 +141,7 @@ export declare type WindowsPrinter = {
|
|
|
141
141
|
export declare type Lang = {
|
|
142
142
|
key: string;
|
|
143
143
|
value: string;
|
|
144
|
-
type:
|
|
144
|
+
type: 'LTR' | 'RTL';
|
|
145
145
|
primary: boolean;
|
|
146
146
|
};
|
|
147
147
|
export declare type Branch = {
|
|
@@ -169,7 +169,7 @@ export declare type Branch = {
|
|
|
169
169
|
activation_date?: null;
|
|
170
170
|
isPricesShown?: boolean;
|
|
171
171
|
isStockShown?: boolean;
|
|
172
|
-
PAYMENT_DEFAULT_METHOD?:
|
|
172
|
+
PAYMENT_DEFAULT_METHOD?: 'CASH' | 'DEBIT' | 'CREDIT' | string;
|
|
173
173
|
isCashierSearchShown?: boolean;
|
|
174
174
|
isCashierBarcodeSearchShown?: boolean;
|
|
175
175
|
isAllCategoryShown?: boolean;
|
|
@@ -235,7 +235,7 @@ export declare type Branch = {
|
|
|
235
235
|
delivery_active?: boolean;
|
|
236
236
|
hide_calories?: boolean;
|
|
237
237
|
hide_payment_methods_tab?: boolean;
|
|
238
|
-
label_language?:
|
|
238
|
+
label_language?: 'both';
|
|
239
239
|
mada_enabled?: boolean;
|
|
240
240
|
mada_print_bill?: boolean;
|
|
241
241
|
order_cut_by_category?: boolean;
|
|
@@ -253,7 +253,7 @@ export declare type Branch = {
|
|
|
253
253
|
loyalty_percentage?: number;
|
|
254
254
|
loyalty_valid_for?: number;
|
|
255
255
|
online_orders?: {
|
|
256
|
-
setting_id:
|
|
256
|
+
setting_id: 'online_orders';
|
|
257
257
|
online_orders_enabled?: boolean;
|
|
258
258
|
electronic_payments_enabled?: boolean;
|
|
259
259
|
delivery_enabled?: boolean;
|
|
@@ -266,7 +266,7 @@ export declare type Branch = {
|
|
|
266
266
|
table_order_enabled?: boolean;
|
|
267
267
|
};
|
|
268
268
|
payment_methods?: PaymentMethod[];
|
|
269
|
-
print_language?:
|
|
269
|
+
print_language?: 'both' | Lang;
|
|
270
270
|
receipt_print_terminal?: boolean;
|
|
271
271
|
receipt_print_user?: boolean;
|
|
272
272
|
validLicense?: Licence;
|
|
@@ -299,7 +299,7 @@ export declare type Branch = {
|
|
|
299
299
|
show_retail_db_lookup?: boolean;
|
|
300
300
|
};
|
|
301
301
|
export declare type PaymentMethod = {
|
|
302
|
-
name_lan_p: string |
|
|
302
|
+
name_lan_p: string | 'CASH' | 'DEBIT' | 'CREDIT';
|
|
303
303
|
name_lan_s?: string;
|
|
304
304
|
client_id?: string;
|
|
305
305
|
branch_id?: string;
|
|
@@ -323,7 +323,7 @@ export declare type PaymentMethod = {
|
|
|
323
323
|
export declare type WaitingSettings = {
|
|
324
324
|
waiting_enabled?: boolean;
|
|
325
325
|
waiting_services_enabled?: boolean;
|
|
326
|
-
waiting_updated_by:
|
|
326
|
+
waiting_updated_by: 'Admin' | 'Customer';
|
|
327
327
|
Waiting_last_updated?: Date;
|
|
328
328
|
waiting_auto_piolt_enabled?: boolean;
|
|
329
329
|
waiting_auto_ready_enabled?: boolean;
|
|
@@ -588,7 +588,7 @@ export declare type OrderItemAddon = {
|
|
|
588
588
|
price_id?: string;
|
|
589
589
|
branches_ids?: string[];
|
|
590
590
|
show_online?: boolean;
|
|
591
|
-
type?:
|
|
591
|
+
type?: 'CATEGORY_ADDON' | 'ITEM_ADDON' | 'ADDONS_GROUP_ADDON' | 'INDEPENDENT_ADDON';
|
|
592
592
|
addons_group_id?: string;
|
|
593
593
|
};
|
|
594
594
|
export declare type OrderItemDiscount = {
|
|
@@ -686,7 +686,7 @@ export declare type OrderDelivery = {
|
|
|
686
686
|
branch_id: string;
|
|
687
687
|
delivery_id: string;
|
|
688
688
|
active: boolean;
|
|
689
|
-
delivery_type?:
|
|
689
|
+
delivery_type?: 'FIXED' | 'CUSTOM' | 'RADIUS';
|
|
690
690
|
delivery_fee?: number;
|
|
691
691
|
delivery_radius?: number;
|
|
692
692
|
separate_invoice: boolean;
|
|
@@ -724,8 +724,8 @@ export declare type Category = {
|
|
|
724
724
|
sort_id?: number;
|
|
725
725
|
custom_addons_limit?: number;
|
|
726
726
|
included_custom_addons_ids?: string[];
|
|
727
|
-
source?:
|
|
728
|
-
updated_from?:
|
|
727
|
+
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
728
|
+
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
729
729
|
update_date?: Date | TimestampType | null;
|
|
730
730
|
multi_max?: number;
|
|
731
731
|
auto_selected_addons?: string[];
|
|
@@ -776,8 +776,8 @@ export declare type IndependentAddon = {
|
|
|
776
776
|
};
|
|
777
777
|
alert_level?: number;
|
|
778
778
|
allergens?: string[];
|
|
779
|
-
source?:
|
|
780
|
-
updated_from?:
|
|
779
|
+
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
780
|
+
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
781
781
|
update_date?: Date | TimestampType | null;
|
|
782
782
|
price_id?: string;
|
|
783
783
|
printer_ids?: printer_id[];
|
|
@@ -810,8 +810,8 @@ export declare type AddonGroup = {
|
|
|
810
810
|
custom_addons_limit?: number;
|
|
811
811
|
included_custom_addons_ids?: string[];
|
|
812
812
|
multi_max?: number;
|
|
813
|
-
source?:
|
|
814
|
-
updated_from?:
|
|
813
|
+
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
814
|
+
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
815
815
|
update_date?: Date | TimestampType | null;
|
|
816
816
|
};
|
|
817
817
|
export declare type CategoryAddon = {
|
|
@@ -901,8 +901,8 @@ export declare type Source = {
|
|
|
901
901
|
unit?: Unit;
|
|
902
902
|
consumption?: number;
|
|
903
903
|
alert_level?: number;
|
|
904
|
-
source?:
|
|
905
|
-
updated_from?:
|
|
904
|
+
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
905
|
+
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
906
906
|
update_date?: Date | TimestampType | null;
|
|
907
907
|
allergens?: string[];
|
|
908
908
|
stock_qty?: number;
|
|
@@ -932,8 +932,8 @@ export declare type translated = {
|
|
|
932
932
|
yl?: string;
|
|
933
933
|
tr?: string;
|
|
934
934
|
ur?: string;
|
|
935
|
-
[
|
|
936
|
-
[
|
|
935
|
+
['zh-CN']?: string;
|
|
936
|
+
['zh-TW']?: string;
|
|
937
937
|
};
|
|
938
938
|
export declare type Terminal = {
|
|
939
939
|
bill_printer_id?: string;
|
|
@@ -975,6 +975,46 @@ export declare type Terminal = {
|
|
|
975
975
|
terminal_ip?: string;
|
|
976
976
|
support_terminal_created_at?: TimestampType | Date | null;
|
|
977
977
|
};
|
|
978
|
+
export declare type Tid = {
|
|
979
|
+
branch_id: string;
|
|
980
|
+
client_id: string;
|
|
981
|
+
current_order_id?: number;
|
|
982
|
+
current_order_number?: number;
|
|
983
|
+
current_order_date?: Date;
|
|
984
|
+
letter?: string;
|
|
985
|
+
platform?: string;
|
|
986
|
+
push_id?: string;
|
|
987
|
+
terminal_id: string | null;
|
|
988
|
+
terminal_ip?: string;
|
|
989
|
+
terminal_name?: string;
|
|
990
|
+
terminal_uuid?: string;
|
|
991
|
+
version?: string;
|
|
992
|
+
push_version?: string;
|
|
993
|
+
is_main?: boolean;
|
|
994
|
+
send_QR_Order_Kitchen?: boolean;
|
|
995
|
+
display_mode?: 'poslite' | 'online_orders';
|
|
996
|
+
type?: 'lite' | 'pay' | 'kiosk';
|
|
997
|
+
tid?: string;
|
|
998
|
+
nearpay_terminal_id?: string;
|
|
999
|
+
trsm?: string;
|
|
1000
|
+
support_terminal?: boolean;
|
|
1001
|
+
support_terminal_created_at?: TimestampType | Date | null;
|
|
1002
|
+
bill_printer_id?: string;
|
|
1003
|
+
receipt_printer_id?: string;
|
|
1004
|
+
pos_modal?: string;
|
|
1005
|
+
inactive?: boolean;
|
|
1006
|
+
jwt: string;
|
|
1007
|
+
egs?: EGSUnitInfo;
|
|
1008
|
+
previous_invoice_hash?: string;
|
|
1009
|
+
tid_terminal_id?: string;
|
|
1010
|
+
tid_terminal_name?: string;
|
|
1011
|
+
has_pos?: boolean;
|
|
1012
|
+
last_login?: Date;
|
|
1013
|
+
assigned_by?: string;
|
|
1014
|
+
active?: boolean;
|
|
1015
|
+
branch_name?: string;
|
|
1016
|
+
created_at?: Date;
|
|
1017
|
+
};
|
|
978
1018
|
export declare type Item = {
|
|
979
1019
|
client_id: string;
|
|
980
1020
|
branch_id?: string;
|
|
@@ -1011,8 +1051,8 @@ export declare type Item = {
|
|
|
1011
1051
|
sources?: Source[];
|
|
1012
1052
|
loyalty_points?: number;
|
|
1013
1053
|
sort_id?: number;
|
|
1014
|
-
source?:
|
|
1015
|
-
updated_from?:
|
|
1054
|
+
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
1055
|
+
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
1016
1056
|
update_date?: Date | TimestampType | null;
|
|
1017
1057
|
time_range?: boolean;
|
|
1018
1058
|
valid_from?: Date | TimestampType | null;
|
|
@@ -1076,7 +1116,7 @@ export declare type ItemPrice = {
|
|
|
1076
1116
|
};
|
|
1077
1117
|
nutritional_info?: NutritionalInfo;
|
|
1078
1118
|
};
|
|
1079
|
-
export declare type Unit =
|
|
1119
|
+
export declare type Unit = 'g' | 'mg' | 'kg' | 'oz' | 'lb' | 'oz' | 'c' | 'ea' | 'gal' | 'l' | 'ml' | string | null;
|
|
1080
1120
|
export declare type itemDiscount = {
|
|
1081
1121
|
client_id: string;
|
|
1082
1122
|
branches_ids?: string[];
|
|
@@ -1179,7 +1219,7 @@ export declare type Delivery = {
|
|
|
1179
1219
|
delivery_id?: string;
|
|
1180
1220
|
active: boolean;
|
|
1181
1221
|
show_online?: boolean;
|
|
1182
|
-
delivery_type?:
|
|
1222
|
+
delivery_type?: 'FIXED' | 'CUSTOM' | 'RADIUS';
|
|
1183
1223
|
delivery_fee?: number;
|
|
1184
1224
|
delivery_radius?: number;
|
|
1185
1225
|
separate_invoice: boolean;
|
|
@@ -1273,13 +1313,13 @@ export declare type Printer = {
|
|
|
1273
1313
|
terminal_name?: string;
|
|
1274
1314
|
terminal_letter?: string;
|
|
1275
1315
|
printer_port?: string | number;
|
|
1276
|
-
printer_brand?:
|
|
1277
|
-
printer_type?:
|
|
1316
|
+
printer_brand?: 'EPSON' | 'epson' | 'star' | 'bixolon' | 'sunmi';
|
|
1317
|
+
printer_type?: 'system' | 'network' | 'bluetooth' | 'usb';
|
|
1278
1318
|
printer_timeout?: number;
|
|
1279
1319
|
mac_address?: string;
|
|
1280
1320
|
usb_path?: string;
|
|
1281
|
-
paper_size?:
|
|
1282
|
-
print_type?:
|
|
1321
|
+
paper_size?: '58mm' | '72mm' | '80mm' | 'A4';
|
|
1322
|
+
print_type?: 'TEST' | 'RECEIPT' | 'INVOICE' | 'CLOSING' | 'TICKET' | 'DELIVERY' | 'SOFTPOS_RECEIPT';
|
|
1283
1323
|
active?: string | boolean;
|
|
1284
1324
|
has_drawer?: boolean;
|
|
1285
1325
|
printer_delay?: number;
|
|
@@ -1291,7 +1331,7 @@ export declare type StarDiscovery = {
|
|
|
1291
1331
|
port_name: string;
|
|
1292
1332
|
mac_address: string;
|
|
1293
1333
|
};
|
|
1294
|
-
export declare type PrinterPurpose =
|
|
1334
|
+
export declare type PrinterPurpose = 'ITEMS_SLIPS' | 'INVOICES' | 'RECEIPTS' | 'CLOSING';
|
|
1295
1335
|
export declare type Role = {
|
|
1296
1336
|
client_id?: string;
|
|
1297
1337
|
role_id?: string;
|
|
@@ -1404,7 +1444,7 @@ export declare type UniversalLicense = {
|
|
|
1404
1444
|
created_date?: Date;
|
|
1405
1445
|
expire_date?: Date;
|
|
1406
1446
|
start_date?: Date;
|
|
1407
|
-
license_type?:
|
|
1447
|
+
license_type?: 'lite' | 'pay' | 'pos' | 'pos' | 'call_center' | string;
|
|
1408
1448
|
terminal_id?: string;
|
|
1409
1449
|
license_active?: boolean;
|
|
1410
1450
|
payment_completed?: boolean;
|
|
@@ -1472,7 +1512,7 @@ export declare type Table = {
|
|
|
1472
1512
|
table_id?: string;
|
|
1473
1513
|
table_name?: string;
|
|
1474
1514
|
table_occupancy?: number;
|
|
1475
|
-
shape?:
|
|
1515
|
+
shape?: 'SQUARE' | 'CIRCLE';
|
|
1476
1516
|
area_id?: string;
|
|
1477
1517
|
area_name?: string;
|
|
1478
1518
|
order_details?: Partial<Order> | null;
|
|
@@ -1620,8 +1660,8 @@ export declare type MoreType = {
|
|
|
1620
1660
|
export declare type Alert = {
|
|
1621
1661
|
title: string;
|
|
1622
1662
|
message: string;
|
|
1623
|
-
variant?:
|
|
1624
|
-
type?:
|
|
1663
|
+
variant?: 'toast' | 'popup';
|
|
1664
|
+
type?: 'error' | 'success' | 'warning';
|
|
1625
1665
|
onConfirmLabel?: string;
|
|
1626
1666
|
onDeleteLabel?: string;
|
|
1627
1667
|
onConfirm?: () => void;
|
|
@@ -1632,7 +1672,7 @@ export declare type TerminalChanges = {
|
|
|
1632
1672
|
current_order_number?: number;
|
|
1633
1673
|
current_order_date?: TimestampType | Date;
|
|
1634
1674
|
};
|
|
1635
|
-
export declare type job_type =
|
|
1675
|
+
export declare type job_type = 'invoice' | 'receipt' | 'ticket' | 'test' | 'closing' | 'delivery' | 'softpos_receipt';
|
|
1636
1676
|
export declare type PrintQueue = {
|
|
1637
1677
|
id: string;
|
|
1638
1678
|
type: job_type;
|
|
@@ -1787,7 +1827,7 @@ export declare type PrinterDiscover = {
|
|
|
1787
1827
|
printer_name?: string;
|
|
1788
1828
|
ip_address?: string;
|
|
1789
1829
|
mac_address?: string;
|
|
1790
|
-
type?:
|
|
1830
|
+
type?: 'system' | 'network' | 'bluetooth' | 'usb';
|
|
1791
1831
|
};
|
|
1792
1832
|
export declare type Currency = {
|
|
1793
1833
|
country: string;
|
|
@@ -1888,8 +1928,8 @@ export declare type ImageSearchItem = {
|
|
|
1888
1928
|
webformatURL: string;
|
|
1889
1929
|
webformatWidth: number;
|
|
1890
1930
|
};
|
|
1891
|
-
export declare type StockAction =
|
|
1892
|
-
export declare type CategoryScreenSideBar =
|
|
1931
|
+
export declare type StockAction = 'ADD' | 'RECOUNT' | 'DAMAGE' | 'THEFT' | 'LOSS' | 'RESTOCK';
|
|
1932
|
+
export declare type CategoryScreenSideBar = 'DISCOUNT' | 'TAX' | 'ADDON' | 'PRINTER' | 'CUSTOM_ADDON' | 'ADDONS_GROUPS' | null;
|
|
1893
1933
|
export declare type AddonStockDoc = {
|
|
1894
1934
|
addon_id: string;
|
|
1895
1935
|
branch_id: string;
|
|
@@ -1992,13 +2032,13 @@ export declare type Move = {
|
|
|
1992
2032
|
is_expiry?: boolean;
|
|
1993
2033
|
};
|
|
1994
2034
|
export declare type SortInvoice = {
|
|
1995
|
-
source:
|
|
1996
|
-
period:
|
|
1997
|
-
status:
|
|
2035
|
+
source: 'ALL' | 'LAZYWAITPOS' | 'QR';
|
|
2036
|
+
period: 'TODAY' | 'WEEK' | 'MONTH' | 'YEAR' | '24_HOURS' | CustomPeriod;
|
|
2037
|
+
status: 'PAID' | 'CURRENT' | 'VOID' | 'REFUND' | 'ALL' | 'ALL_TRANSACTIONS';
|
|
1998
2038
|
};
|
|
1999
2039
|
export declare type InvoicesOrderBy = {
|
|
2000
|
-
sortBy:
|
|
2001
|
-
orderBy:
|
|
2040
|
+
sortBy: 'order_date' | 'order_id' | 'order_type' | 'discount' | 'tax' | 'received_amount' | 'subtotal' | 'total' | 'approval_code';
|
|
2041
|
+
orderBy: 'asc' | 'desc';
|
|
2002
2042
|
};
|
|
2003
2043
|
export declare type CustomPeriod = {
|
|
2004
2044
|
from: Date;
|
|
@@ -2008,18 +2048,18 @@ export declare type HoldStockKeys = {
|
|
|
2008
2048
|
[key: string]: number;
|
|
2009
2049
|
};
|
|
2010
2050
|
export declare type Cash = {
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2051
|
+
'5': number;
|
|
2052
|
+
'10': number;
|
|
2053
|
+
'20': number;
|
|
2054
|
+
'50': number;
|
|
2055
|
+
'100': number;
|
|
2056
|
+
'500': number;
|
|
2057
|
+
'0.01': number;
|
|
2058
|
+
'0.1': number;
|
|
2059
|
+
'0.25': number;
|
|
2060
|
+
'0.5': number;
|
|
2061
|
+
'1': number;
|
|
2062
|
+
'2': number;
|
|
2023
2063
|
};
|
|
2024
2064
|
export declare type CustomersSort = {
|
|
2025
2065
|
field: string;
|
|
@@ -2070,9 +2110,9 @@ export declare type SupportTicket = {
|
|
|
2070
2110
|
name_lan_p?: string;
|
|
2071
2111
|
};
|
|
2072
2112
|
status: string;
|
|
2073
|
-
source:
|
|
2113
|
+
source: 'POS' | string;
|
|
2074
2114
|
created_by: {
|
|
2075
|
-
status:
|
|
2115
|
+
status: 'new' | string;
|
|
2076
2116
|
date: Date | TimestampType | null;
|
|
2077
2117
|
user_id: string;
|
|
2078
2118
|
user_name: string;
|
|
@@ -2090,7 +2130,7 @@ export declare type SupportTicket = {
|
|
|
2090
2130
|
version: string;
|
|
2091
2131
|
};
|
|
2092
2132
|
network_details?: any & {
|
|
2093
|
-
frequency:
|
|
2133
|
+
frequency: '5 GHz' | '2.4 GHz' | '';
|
|
2094
2134
|
};
|
|
2095
2135
|
};
|
|
2096
2136
|
export declare type TicketComment = {
|
|
@@ -2137,8 +2177,8 @@ export declare type PassMeOrderNotif = {
|
|
|
2137
2177
|
client_id: string;
|
|
2138
2178
|
branch_id: string;
|
|
2139
2179
|
order_ref: string;
|
|
2140
|
-
source:
|
|
2141
|
-
type:
|
|
2180
|
+
source: 'QR_PHONE' | string;
|
|
2181
|
+
type: 'order' | string;
|
|
2142
2182
|
};
|
|
2143
2183
|
export declare type Notification = {
|
|
2144
2184
|
terminal_ids: string[];
|
|
@@ -2186,7 +2226,7 @@ export declare type Location = {
|
|
|
2186
2226
|
city?: string;
|
|
2187
2227
|
countryCode?: string;
|
|
2188
2228
|
countryName?: string;
|
|
2189
|
-
county?:
|
|
2229
|
+
county?: '';
|
|
2190
2230
|
elapsedRealtimeNanos?: number | string;
|
|
2191
2231
|
extraInfo?: {
|
|
2192
2232
|
mockLocation?: boolean | string;
|
|
@@ -2264,19 +2304,19 @@ export declare type ManualDoc = {
|
|
|
2264
2304
|
url: string;
|
|
2265
2305
|
};
|
|
2266
2306
|
export declare type POSEmail = {
|
|
2267
|
-
email_type:
|
|
2268
|
-
email_target:
|
|
2269
|
-
source:
|
|
2270
|
-
language?:
|
|
2307
|
+
email_type: 'cancellation' | 'trial' | 'success_payment' | 'failed_payment' | 'leads';
|
|
2308
|
+
email_target: 'customer' | 'lazywait';
|
|
2309
|
+
source: 'direct_payment' | 'pos';
|
|
2310
|
+
language?: 'en' | 'ar' | string;
|
|
2271
2311
|
owner_name?: string;
|
|
2272
2312
|
owner_email?: string;
|
|
2273
2313
|
owner_phone?: string;
|
|
2274
|
-
plan?:
|
|
2314
|
+
plan?: 'free' | 'starter' | 'plus' | 'pro';
|
|
2275
2315
|
client_id?: string;
|
|
2276
2316
|
client_name?: string;
|
|
2277
2317
|
branch_id?: string;
|
|
2278
2318
|
branch_name?: string;
|
|
2279
|
-
platform?:
|
|
2319
|
+
platform?: 'ios' | 'android' | 'direct_payment';
|
|
2280
2320
|
message?: string;
|
|
2281
2321
|
payment_ref?: string;
|
|
2282
2322
|
payment_amount?: number;
|
|
@@ -2301,7 +2341,7 @@ export declare type HoldStocks = {
|
|
|
2301
2341
|
export declare type LWOrders = {
|
|
2302
2342
|
order: Order;
|
|
2303
2343
|
print_type?: string;
|
|
2304
|
-
type:
|
|
2344
|
+
type: 'error' | 'success';
|
|
2305
2345
|
error_message?: string;
|
|
2306
2346
|
};
|
|
2307
2347
|
export declare type LWReport = {
|
|
@@ -2331,7 +2371,7 @@ export declare type OrderPrintJobsParams = {
|
|
|
2331
2371
|
reprint_slips?: boolean;
|
|
2332
2372
|
printerIp?: string;
|
|
2333
2373
|
};
|
|
2334
|
-
export declare type OrderStatusID =
|
|
2374
|
+
export declare type OrderStatusID = 'new-order' | 'confirmed' | 'ready' | 'delivered' | 'canceled' | 'refunded' | 'delivery' | 'driver-pickup' | 'driver-at-door';
|
|
2335
2375
|
export declare type Allergen = Map<string, string>;
|
|
2336
2376
|
export declare type LazyPaySMSPayload = {
|
|
2337
2377
|
branch: {
|
|
@@ -2340,7 +2380,7 @@ export declare type LazyPaySMSPayload = {
|
|
|
2340
2380
|
name_lan_p?: string;
|
|
2341
2381
|
name_lan_s?: string;
|
|
2342
2382
|
print_order_id?: boolean;
|
|
2343
|
-
print_language?:
|
|
2383
|
+
print_language?: 'both' | Lang;
|
|
2344
2384
|
languages?: Lang[];
|
|
2345
2385
|
print_price_with_vat?: boolean;
|
|
2346
2386
|
address?: string;
|