lazywait-calcs 1.8.0 → 1.8.2
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/lwapp_types.d.ts +3 -0
- package/lib/cjs/types/lwapp_types.d.ts.map +1 -1
- package/lib/cjs/types/types.d.ts +87 -74
- package/lib/cjs/types/types.d.ts.map +1 -1
- package/lib/cjs/types.js +3 -3
- package/lib/esm/types/lwapp_types.d.ts +3 -0
- package/lib/esm/types/lwapp_types.d.ts.map +1 -1
- package/lib/esm/types/types.d.ts +87 -74
- 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[];
|
|
@@ -791,7 +791,6 @@ export declare type IndependentAddon = {
|
|
|
791
791
|
[order_type_id: string]: {
|
|
792
792
|
difference: number;
|
|
793
793
|
is_percentage: boolean;
|
|
794
|
-
branch_id?: string;
|
|
795
794
|
};
|
|
796
795
|
};
|
|
797
796
|
addons_group_id?: string;
|
|
@@ -811,8 +810,8 @@ export declare type AddonGroup = {
|
|
|
811
810
|
custom_addons_limit?: number;
|
|
812
811
|
included_custom_addons_ids?: string[];
|
|
813
812
|
multi_max?: number;
|
|
814
|
-
source?:
|
|
815
|
-
updated_from?:
|
|
813
|
+
source?: "POS" | "DASHBOARD" | "XLS" | "LWAPI";
|
|
814
|
+
updated_from?: "POS" | "DASHBOARD" | "XLS";
|
|
816
815
|
update_date?: Date | TimestampType | null;
|
|
817
816
|
};
|
|
818
817
|
export declare type CategoryAddon = {
|
|
@@ -902,8 +901,8 @@ export declare type Source = {
|
|
|
902
901
|
unit?: Unit;
|
|
903
902
|
consumption?: number;
|
|
904
903
|
alert_level?: number;
|
|
905
|
-
source?:
|
|
906
|
-
updated_from?:
|
|
904
|
+
source?: "POS" | "DASHBOARD" | "XLS" | "LWAPI";
|
|
905
|
+
updated_from?: "POS" | "DASHBOARD" | "XLS";
|
|
907
906
|
update_date?: Date | TimestampType | null;
|
|
908
907
|
allergens?: string[];
|
|
909
908
|
stock_qty?: number;
|
|
@@ -933,8 +932,8 @@ export declare type translated = {
|
|
|
933
932
|
yl?: string;
|
|
934
933
|
tr?: string;
|
|
935
934
|
ur?: string;
|
|
936
|
-
[
|
|
937
|
-
[
|
|
935
|
+
["zh-CN"]?: string;
|
|
936
|
+
["zh-TW"]?: string;
|
|
938
937
|
};
|
|
939
938
|
export declare type Terminal = {
|
|
940
939
|
bill_printer_id?: string;
|
|
@@ -974,6 +973,7 @@ export declare type Terminal = {
|
|
|
974
973
|
tid_terminal_id?: string;
|
|
975
974
|
tid_terminal_name?: string;
|
|
976
975
|
terminal_ip?: string;
|
|
976
|
+
support_terminal_created_at?: TimestampType | Date | null;
|
|
977
977
|
};
|
|
978
978
|
export declare type Item = {
|
|
979
979
|
client_id: string;
|
|
@@ -1011,8 +1011,8 @@ export declare type Item = {
|
|
|
1011
1011
|
sources?: Source[];
|
|
1012
1012
|
loyalty_points?: number;
|
|
1013
1013
|
sort_id?: number;
|
|
1014
|
-
source?:
|
|
1015
|
-
updated_from?:
|
|
1014
|
+
source?: "POS" | "DASHBOARD" | "XLS" | "LWAPI";
|
|
1015
|
+
updated_from?: "POS" | "DASHBOARD" | "XLS";
|
|
1016
1016
|
update_date?: Date | TimestampType | null;
|
|
1017
1017
|
time_range?: boolean;
|
|
1018
1018
|
valid_from?: Date | TimestampType | null;
|
|
@@ -1072,12 +1072,11 @@ export declare type ItemPrice = {
|
|
|
1072
1072
|
[order_type_id: string]: {
|
|
1073
1073
|
difference: number;
|
|
1074
1074
|
is_percentage: boolean;
|
|
1075
|
-
branch_id?: string;
|
|
1076
1075
|
};
|
|
1077
1076
|
};
|
|
1078
1077
|
nutritional_info?: NutritionalInfo;
|
|
1079
1078
|
};
|
|
1080
|
-
export declare type Unit =
|
|
1079
|
+
export declare type Unit = "g" | "mg" | "kg" | "oz" | "lb" | "oz" | "c" | "ea" | "gal" | "l" | "ml" | string | null;
|
|
1081
1080
|
export declare type itemDiscount = {
|
|
1082
1081
|
client_id: string;
|
|
1083
1082
|
branches_ids?: string[];
|
|
@@ -1180,7 +1179,7 @@ export declare type Delivery = {
|
|
|
1180
1179
|
delivery_id?: string;
|
|
1181
1180
|
active: boolean;
|
|
1182
1181
|
show_online?: boolean;
|
|
1183
|
-
delivery_type?:
|
|
1182
|
+
delivery_type?: "FIXED" | "CUSTOM" | "RADIUS";
|
|
1184
1183
|
delivery_fee?: number;
|
|
1185
1184
|
delivery_radius?: number;
|
|
1186
1185
|
separate_invoice: boolean;
|
|
@@ -1271,13 +1270,17 @@ export declare type Printer = {
|
|
|
1271
1270
|
printer_name?: string;
|
|
1272
1271
|
display_name?: string;
|
|
1273
1272
|
printer_ip?: string;
|
|
1273
|
+
terminal_name?: string;
|
|
1274
|
+
terminal_letter?: string;
|
|
1274
1275
|
printer_port?: string | number;
|
|
1275
|
-
printer_brand?:
|
|
1276
|
-
printer_type?:
|
|
1276
|
+
printer_brand?: "EPSON" | "epson" | "star" | "bixolon" | "sunmi";
|
|
1277
|
+
printer_type?: "system" | "network" | "bluetooth" | "usb";
|
|
1278
|
+
printer_timeout?: number;
|
|
1277
1279
|
mac_address?: string;
|
|
1278
1280
|
usb_path?: string;
|
|
1279
|
-
paper_size?:
|
|
1280
|
-
|
|
1281
|
+
paper_size?: "58mm" | "72mm" | "80mm" | "A4";
|
|
1282
|
+
print_type?: "TEST" | "RECEIPT" | "INVOICE" | "CLOSING" | "TICKET" | "DELIVERY" | "SOFTPOS_RECEIPT";
|
|
1283
|
+
active?: string | boolean;
|
|
1281
1284
|
has_drawer?: boolean;
|
|
1282
1285
|
printer_delay?: number;
|
|
1283
1286
|
purpose?: PrinterPurpose[];
|
|
@@ -1288,7 +1291,7 @@ export declare type StarDiscovery = {
|
|
|
1288
1291
|
port_name: string;
|
|
1289
1292
|
mac_address: string;
|
|
1290
1293
|
};
|
|
1291
|
-
export declare type PrinterPurpose =
|
|
1294
|
+
export declare type PrinterPurpose = "ITEMS_SLIPS" | "INVOICES" | "RECEIPTS" | "CLOSING";
|
|
1292
1295
|
export declare type Role = {
|
|
1293
1296
|
client_id?: string;
|
|
1294
1297
|
role_id?: string;
|
|
@@ -1337,6 +1340,12 @@ export declare type InvoiceCustomer = {
|
|
|
1337
1340
|
customer_cell?: string;
|
|
1338
1341
|
customer_email?: string;
|
|
1339
1342
|
customer_id?: string;
|
|
1343
|
+
customer_tax_id?: string;
|
|
1344
|
+
customer_street_name?: string;
|
|
1345
|
+
customer_building_number?: string;
|
|
1346
|
+
customer_city_name?: string;
|
|
1347
|
+
customer_city_subdivision?: string;
|
|
1348
|
+
customer_postal_zone?: string;
|
|
1340
1349
|
country_code?: string;
|
|
1341
1350
|
group_id?: string;
|
|
1342
1351
|
group_name?: string;
|
|
@@ -1395,7 +1404,7 @@ export declare type UniversalLicense = {
|
|
|
1395
1404
|
created_date?: Date;
|
|
1396
1405
|
expire_date?: Date;
|
|
1397
1406
|
start_date?: Date;
|
|
1398
|
-
license_type?:
|
|
1407
|
+
license_type?: "lite" | "pay" | "pos" | "pos" | "call_center" | string;
|
|
1399
1408
|
terminal_id?: string;
|
|
1400
1409
|
license_active?: boolean;
|
|
1401
1410
|
payment_completed?: boolean;
|
|
@@ -1463,7 +1472,7 @@ export declare type Table = {
|
|
|
1463
1472
|
table_id?: string;
|
|
1464
1473
|
table_name?: string;
|
|
1465
1474
|
table_occupancy?: number;
|
|
1466
|
-
shape?:
|
|
1475
|
+
shape?: "SQUARE" | "CIRCLE";
|
|
1467
1476
|
area_id?: string;
|
|
1468
1477
|
area_name?: string;
|
|
1469
1478
|
order_details?: Partial<Order> | null;
|
|
@@ -1611,8 +1620,8 @@ export declare type MoreType = {
|
|
|
1611
1620
|
export declare type Alert = {
|
|
1612
1621
|
title: string;
|
|
1613
1622
|
message: string;
|
|
1614
|
-
variant?:
|
|
1615
|
-
type?:
|
|
1623
|
+
variant?: "toast" | "popup";
|
|
1624
|
+
type?: "error" | "success" | "warning";
|
|
1616
1625
|
onConfirmLabel?: string;
|
|
1617
1626
|
onDeleteLabel?: string;
|
|
1618
1627
|
onConfirm?: () => void;
|
|
@@ -1623,7 +1632,7 @@ export declare type TerminalChanges = {
|
|
|
1623
1632
|
current_order_number?: number;
|
|
1624
1633
|
current_order_date?: TimestampType | Date;
|
|
1625
1634
|
};
|
|
1626
|
-
export declare type job_type =
|
|
1635
|
+
export declare type job_type = "invoice" | "receipt" | "ticket" | "test" | "closing" | "delivery" | "softpos_receipt";
|
|
1627
1636
|
export declare type PrintQueue = {
|
|
1628
1637
|
id: string;
|
|
1629
1638
|
type: job_type;
|
|
@@ -1778,7 +1787,7 @@ export declare type PrinterDiscover = {
|
|
|
1778
1787
|
printer_name?: string;
|
|
1779
1788
|
ip_address?: string;
|
|
1780
1789
|
mac_address?: string;
|
|
1781
|
-
type?:
|
|
1790
|
+
type?: "system" | "network" | "bluetooth" | "usb";
|
|
1782
1791
|
};
|
|
1783
1792
|
export declare type Currency = {
|
|
1784
1793
|
country: string;
|
|
@@ -1793,6 +1802,10 @@ export declare type OrderType = {
|
|
|
1793
1802
|
name_lan_p: string;
|
|
1794
1803
|
name_lan_s?: string;
|
|
1795
1804
|
printer_ids?: printer_id[];
|
|
1805
|
+
special_prices?: {
|
|
1806
|
+
difference?: number;
|
|
1807
|
+
is_percentage?: boolean;
|
|
1808
|
+
};
|
|
1796
1809
|
};
|
|
1797
1810
|
export declare type Preview = {
|
|
1798
1811
|
item?: Item;
|
|
@@ -1875,8 +1888,8 @@ export declare type ImageSearchItem = {
|
|
|
1875
1888
|
webformatURL: string;
|
|
1876
1889
|
webformatWidth: number;
|
|
1877
1890
|
};
|
|
1878
|
-
export declare type StockAction =
|
|
1879
|
-
export declare type CategoryScreenSideBar =
|
|
1891
|
+
export declare type StockAction = "ADD" | "RECOUNT" | "DAMAGE" | "THEFT" | "LOSS" | "RESTOCK";
|
|
1892
|
+
export declare type CategoryScreenSideBar = "DISCOUNT" | "TAX" | "ADDON" | "PRINTER" | "CUSTOM_ADDON" | "ADDONS_GROUPS" | null;
|
|
1880
1893
|
export declare type AddonStockDoc = {
|
|
1881
1894
|
addon_id: string;
|
|
1882
1895
|
branch_id: string;
|
|
@@ -1979,13 +1992,13 @@ export declare type Move = {
|
|
|
1979
1992
|
is_expiry?: boolean;
|
|
1980
1993
|
};
|
|
1981
1994
|
export declare type SortInvoice = {
|
|
1982
|
-
source:
|
|
1983
|
-
period:
|
|
1984
|
-
status:
|
|
1995
|
+
source: "ALL" | "LAZYWAITPOS" | "QR";
|
|
1996
|
+
period: "TODAY" | "WEEK" | "MONTH" | "YEAR" | "24_HOURS" | CustomPeriod;
|
|
1997
|
+
status: "PAID" | "CURRENT" | "VOID" | "REFUND" | "ALL" | "ALL_TRANSACTIONS";
|
|
1985
1998
|
};
|
|
1986
1999
|
export declare type InvoicesOrderBy = {
|
|
1987
|
-
sortBy:
|
|
1988
|
-
orderBy:
|
|
2000
|
+
sortBy: "order_date" | "order_id" | "order_type" | "discount" | "tax" | "received_amount" | "subtotal" | "total" | "approval_code";
|
|
2001
|
+
orderBy: "asc" | "desc";
|
|
1989
2002
|
};
|
|
1990
2003
|
export declare type CustomPeriod = {
|
|
1991
2004
|
from: Date;
|
|
@@ -1995,18 +2008,18 @@ export declare type HoldStockKeys = {
|
|
|
1995
2008
|
[key: string]: number;
|
|
1996
2009
|
};
|
|
1997
2010
|
export declare type Cash = {
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2011
|
+
"5": number;
|
|
2012
|
+
"10": number;
|
|
2013
|
+
"20": number;
|
|
2014
|
+
"50": number;
|
|
2015
|
+
"100": number;
|
|
2016
|
+
"500": number;
|
|
2017
|
+
"0.01": number;
|
|
2018
|
+
"0.1": number;
|
|
2019
|
+
"0.25": number;
|
|
2020
|
+
"0.5": number;
|
|
2021
|
+
"1": number;
|
|
2022
|
+
"2": number;
|
|
2010
2023
|
};
|
|
2011
2024
|
export declare type CustomersSort = {
|
|
2012
2025
|
field: string;
|
|
@@ -2057,9 +2070,9 @@ export declare type SupportTicket = {
|
|
|
2057
2070
|
name_lan_p?: string;
|
|
2058
2071
|
};
|
|
2059
2072
|
status: string;
|
|
2060
|
-
source:
|
|
2073
|
+
source: "POS" | string;
|
|
2061
2074
|
created_by: {
|
|
2062
|
-
status:
|
|
2075
|
+
status: "new" | string;
|
|
2063
2076
|
date: Date | TimestampType | null;
|
|
2064
2077
|
user_id: string;
|
|
2065
2078
|
user_name: string;
|
|
@@ -2077,7 +2090,7 @@ export declare type SupportTicket = {
|
|
|
2077
2090
|
version: string;
|
|
2078
2091
|
};
|
|
2079
2092
|
network_details?: any & {
|
|
2080
|
-
frequency:
|
|
2093
|
+
frequency: "5 GHz" | "2.4 GHz" | "";
|
|
2081
2094
|
};
|
|
2082
2095
|
};
|
|
2083
2096
|
export declare type TicketComment = {
|
|
@@ -2124,8 +2137,8 @@ export declare type PassMeOrderNotif = {
|
|
|
2124
2137
|
client_id: string;
|
|
2125
2138
|
branch_id: string;
|
|
2126
2139
|
order_ref: string;
|
|
2127
|
-
source:
|
|
2128
|
-
type:
|
|
2140
|
+
source: "QR_PHONE" | string;
|
|
2141
|
+
type: "order" | string;
|
|
2129
2142
|
};
|
|
2130
2143
|
export declare type Notification = {
|
|
2131
2144
|
terminal_ids: string[];
|
|
@@ -2173,7 +2186,7 @@ export declare type Location = {
|
|
|
2173
2186
|
city?: string;
|
|
2174
2187
|
countryCode?: string;
|
|
2175
2188
|
countryName?: string;
|
|
2176
|
-
county?:
|
|
2189
|
+
county?: "";
|
|
2177
2190
|
elapsedRealtimeNanos?: number | string;
|
|
2178
2191
|
extraInfo?: {
|
|
2179
2192
|
mockLocation?: boolean | string;
|
|
@@ -2251,19 +2264,19 @@ export declare type ManualDoc = {
|
|
|
2251
2264
|
url: string;
|
|
2252
2265
|
};
|
|
2253
2266
|
export declare type POSEmail = {
|
|
2254
|
-
email_type:
|
|
2255
|
-
email_target:
|
|
2256
|
-
source:
|
|
2257
|
-
language?:
|
|
2267
|
+
email_type: "cancellation" | "trial" | "success_payment" | "failed_payment" | "leads";
|
|
2268
|
+
email_target: "customer" | "lazywait";
|
|
2269
|
+
source: "direct_payment" | "pos";
|
|
2270
|
+
language?: "en" | "ar" | string;
|
|
2258
2271
|
owner_name?: string;
|
|
2259
2272
|
owner_email?: string;
|
|
2260
2273
|
owner_phone?: string;
|
|
2261
|
-
plan?:
|
|
2274
|
+
plan?: "free" | "starter" | "plus" | "pro";
|
|
2262
2275
|
client_id?: string;
|
|
2263
2276
|
client_name?: string;
|
|
2264
2277
|
branch_id?: string;
|
|
2265
2278
|
branch_name?: string;
|
|
2266
|
-
platform?:
|
|
2279
|
+
platform?: "ios" | "android" | "direct_payment";
|
|
2267
2280
|
message?: string;
|
|
2268
2281
|
payment_ref?: string;
|
|
2269
2282
|
payment_amount?: number;
|
|
@@ -2288,7 +2301,7 @@ export declare type HoldStocks = {
|
|
|
2288
2301
|
export declare type LWOrders = {
|
|
2289
2302
|
order: Order;
|
|
2290
2303
|
print_type?: string;
|
|
2291
|
-
type:
|
|
2304
|
+
type: "error" | "success";
|
|
2292
2305
|
error_message?: string;
|
|
2293
2306
|
};
|
|
2294
2307
|
export declare type LWReport = {
|
|
@@ -2318,7 +2331,7 @@ export declare type OrderPrintJobsParams = {
|
|
|
2318
2331
|
reprint_slips?: boolean;
|
|
2319
2332
|
printerIp?: string;
|
|
2320
2333
|
};
|
|
2321
|
-
export declare type OrderStatusID =
|
|
2334
|
+
export declare type OrderStatusID = "new-order" | "confirmed" | "ready" | "delivered" | "canceled" | "refunded" | "delivery" | "driver-pickup" | "driver-at-door";
|
|
2322
2335
|
export declare type Allergen = Map<string, string>;
|
|
2323
2336
|
export declare type LazyPaySMSPayload = {
|
|
2324
2337
|
branch: {
|
|
@@ -2327,7 +2340,7 @@ export declare type LazyPaySMSPayload = {
|
|
|
2327
2340
|
name_lan_p?: string;
|
|
2328
2341
|
name_lan_s?: string;
|
|
2329
2342
|
print_order_id?: boolean;
|
|
2330
|
-
print_language?:
|
|
2343
|
+
print_language?: "both" | Lang;
|
|
2331
2344
|
languages?: Lang[];
|
|
2332
2345
|
print_price_with_vat?: boolean;
|
|
2333
2346
|
address?: string;
|