lazywait-calcs 1.8.2 → 1.8.4
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 +133 -72
- package/lib/cjs/types/types.d.ts.map +1 -1
- package/lib/cjs/types.js +23 -4
- package/lib/esm/types/types.d.ts +133 -72
- package/lib/esm/types/types.d.ts.map +1 -1
- package/lib/esm/types.js +22 -3
- package/package.json +1 -1
package/lib/cjs/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,67 @@ export declare type Terminal = {
|
|
|
975
975
|
terminal_ip?: string;
|
|
976
976
|
support_terminal_created_at?: TimestampType | Date | null;
|
|
977
977
|
};
|
|
978
|
+
export declare enum UIPosition {
|
|
979
|
+
TOP_START = "TOP_START",
|
|
980
|
+
TOP_END = "TOP_END",
|
|
981
|
+
TOP_RIGHT = "TOP_RIGHT",
|
|
982
|
+
TOP_LEFT = "TOP_LEFT",
|
|
983
|
+
BOTTOM_START = "BOTTOM_START",
|
|
984
|
+
BOTTOM_END = "BOTTOM_END",
|
|
985
|
+
BOTTOM_RIGHT = "BOTTOM_RIGHT",
|
|
986
|
+
BOTTOM_LEFT = "BOTTOM_LEFT",
|
|
987
|
+
CENTER_START = "CENTER_START",
|
|
988
|
+
CENTER_END = "CENTER_END",
|
|
989
|
+
CENTER_RIGHT = "CENTER_RIGHT",
|
|
990
|
+
CENTER_LEFT = "CENTER_LEFT",
|
|
991
|
+
CENTER_TOP = "CENTER_TOP",
|
|
992
|
+
CENTER_BOTTOM = "CENTER_BOTTOM",
|
|
993
|
+
CENTER = "CENTER",
|
|
994
|
+
DEFAULT = "DEFAULT"
|
|
995
|
+
}
|
|
996
|
+
export declare type Tid = {
|
|
997
|
+
branch_id: string;
|
|
998
|
+
client_id: string;
|
|
999
|
+
current_order_id?: number;
|
|
1000
|
+
current_order_number?: number;
|
|
1001
|
+
current_order_date?: Date;
|
|
1002
|
+
letter?: string;
|
|
1003
|
+
platform?: string;
|
|
1004
|
+
push_id?: string;
|
|
1005
|
+
terminal_id: string | null;
|
|
1006
|
+
terminal_ip?: string;
|
|
1007
|
+
terminal_name?: string;
|
|
1008
|
+
terminal_uuid?: string;
|
|
1009
|
+
version?: string;
|
|
1010
|
+
push_version?: string;
|
|
1011
|
+
is_main?: boolean;
|
|
1012
|
+
send_QR_Order_Kitchen?: boolean;
|
|
1013
|
+
display_mode?: 'poslite' | 'online_orders';
|
|
1014
|
+
type?: 'lite' | 'pay' | 'kiosk';
|
|
1015
|
+
tid?: string;
|
|
1016
|
+
nearpay_terminal_id?: string;
|
|
1017
|
+
trsm?: string;
|
|
1018
|
+
support_terminal?: boolean;
|
|
1019
|
+
support_terminal_created_at?: TimestampType | Date | null;
|
|
1020
|
+
bill_printer_id?: string;
|
|
1021
|
+
receipt_printer_id?: string;
|
|
1022
|
+
pos_modal?: string;
|
|
1023
|
+
inactive?: boolean;
|
|
1024
|
+
jwt: string;
|
|
1025
|
+
egs?: EGSUnitInfo;
|
|
1026
|
+
previous_invoice_hash?: string;
|
|
1027
|
+
tid_terminal_id?: string;
|
|
1028
|
+
tid_terminal_name?: string;
|
|
1029
|
+
has_pos?: boolean;
|
|
1030
|
+
last_login?: Date;
|
|
1031
|
+
assigned_by?: string;
|
|
1032
|
+
active?: boolean;
|
|
1033
|
+
branch_name?: string;
|
|
1034
|
+
created_at?: Date;
|
|
1035
|
+
cfs?: boolean;
|
|
1036
|
+
cfs_nfc_position?: UIPosition;
|
|
1037
|
+
admin_pin?: string;
|
|
1038
|
+
};
|
|
978
1039
|
export declare type Item = {
|
|
979
1040
|
client_id: string;
|
|
980
1041
|
branch_id?: string;
|
|
@@ -1011,8 +1072,8 @@ export declare type Item = {
|
|
|
1011
1072
|
sources?: Source[];
|
|
1012
1073
|
loyalty_points?: number;
|
|
1013
1074
|
sort_id?: number;
|
|
1014
|
-
source?:
|
|
1015
|
-
updated_from?:
|
|
1075
|
+
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
1076
|
+
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
1016
1077
|
update_date?: Date | TimestampType | null;
|
|
1017
1078
|
time_range?: boolean;
|
|
1018
1079
|
valid_from?: Date | TimestampType | null;
|
|
@@ -1076,7 +1137,7 @@ export declare type ItemPrice = {
|
|
|
1076
1137
|
};
|
|
1077
1138
|
nutritional_info?: NutritionalInfo;
|
|
1078
1139
|
};
|
|
1079
|
-
export declare type Unit =
|
|
1140
|
+
export declare type Unit = 'g' | 'mg' | 'kg' | 'oz' | 'lb' | 'oz' | 'c' | 'ea' | 'gal' | 'l' | 'ml' | string | null;
|
|
1080
1141
|
export declare type itemDiscount = {
|
|
1081
1142
|
client_id: string;
|
|
1082
1143
|
branches_ids?: string[];
|
|
@@ -1179,7 +1240,7 @@ export declare type Delivery = {
|
|
|
1179
1240
|
delivery_id?: string;
|
|
1180
1241
|
active: boolean;
|
|
1181
1242
|
show_online?: boolean;
|
|
1182
|
-
delivery_type?:
|
|
1243
|
+
delivery_type?: 'FIXED' | 'CUSTOM' | 'RADIUS';
|
|
1183
1244
|
delivery_fee?: number;
|
|
1184
1245
|
delivery_radius?: number;
|
|
1185
1246
|
separate_invoice: boolean;
|
|
@@ -1273,13 +1334,13 @@ export declare type Printer = {
|
|
|
1273
1334
|
terminal_name?: string;
|
|
1274
1335
|
terminal_letter?: string;
|
|
1275
1336
|
printer_port?: string | number;
|
|
1276
|
-
printer_brand?:
|
|
1277
|
-
printer_type?:
|
|
1337
|
+
printer_brand?: 'EPSON' | 'epson' | 'star' | 'bixolon' | 'sunmi';
|
|
1338
|
+
printer_type?: 'system' | 'network' | 'bluetooth' | 'usb';
|
|
1278
1339
|
printer_timeout?: number;
|
|
1279
1340
|
mac_address?: string;
|
|
1280
1341
|
usb_path?: string;
|
|
1281
|
-
paper_size?:
|
|
1282
|
-
print_type?:
|
|
1342
|
+
paper_size?: '58mm' | '72mm' | '80mm' | 'A4';
|
|
1343
|
+
print_type?: 'TEST' | 'RECEIPT' | 'INVOICE' | 'CLOSING' | 'TICKET' | 'DELIVERY' | 'SOFTPOS_RECEIPT';
|
|
1283
1344
|
active?: string | boolean;
|
|
1284
1345
|
has_drawer?: boolean;
|
|
1285
1346
|
printer_delay?: number;
|
|
@@ -1291,7 +1352,7 @@ export declare type StarDiscovery = {
|
|
|
1291
1352
|
port_name: string;
|
|
1292
1353
|
mac_address: string;
|
|
1293
1354
|
};
|
|
1294
|
-
export declare type PrinterPurpose =
|
|
1355
|
+
export declare type PrinterPurpose = 'ITEMS_SLIPS' | 'INVOICES' | 'RECEIPTS' | 'CLOSING';
|
|
1295
1356
|
export declare type Role = {
|
|
1296
1357
|
client_id?: string;
|
|
1297
1358
|
role_id?: string;
|
|
@@ -1404,7 +1465,7 @@ export declare type UniversalLicense = {
|
|
|
1404
1465
|
created_date?: Date;
|
|
1405
1466
|
expire_date?: Date;
|
|
1406
1467
|
start_date?: Date;
|
|
1407
|
-
license_type?:
|
|
1468
|
+
license_type?: 'lite' | 'pay' | 'pos' | 'pos' | 'call_center' | string;
|
|
1408
1469
|
terminal_id?: string;
|
|
1409
1470
|
license_active?: boolean;
|
|
1410
1471
|
payment_completed?: boolean;
|
|
@@ -1472,7 +1533,7 @@ export declare type Table = {
|
|
|
1472
1533
|
table_id?: string;
|
|
1473
1534
|
table_name?: string;
|
|
1474
1535
|
table_occupancy?: number;
|
|
1475
|
-
shape?:
|
|
1536
|
+
shape?: 'SQUARE' | 'CIRCLE';
|
|
1476
1537
|
area_id?: string;
|
|
1477
1538
|
area_name?: string;
|
|
1478
1539
|
order_details?: Partial<Order> | null;
|
|
@@ -1620,8 +1681,8 @@ export declare type MoreType = {
|
|
|
1620
1681
|
export declare type Alert = {
|
|
1621
1682
|
title: string;
|
|
1622
1683
|
message: string;
|
|
1623
|
-
variant?:
|
|
1624
|
-
type?:
|
|
1684
|
+
variant?: 'toast' | 'popup';
|
|
1685
|
+
type?: 'error' | 'success' | 'warning';
|
|
1625
1686
|
onConfirmLabel?: string;
|
|
1626
1687
|
onDeleteLabel?: string;
|
|
1627
1688
|
onConfirm?: () => void;
|
|
@@ -1632,7 +1693,7 @@ export declare type TerminalChanges = {
|
|
|
1632
1693
|
current_order_number?: number;
|
|
1633
1694
|
current_order_date?: TimestampType | Date;
|
|
1634
1695
|
};
|
|
1635
|
-
export declare type job_type =
|
|
1696
|
+
export declare type job_type = 'invoice' | 'receipt' | 'ticket' | 'test' | 'closing' | 'delivery' | 'softpos_receipt';
|
|
1636
1697
|
export declare type PrintQueue = {
|
|
1637
1698
|
id: string;
|
|
1638
1699
|
type: job_type;
|
|
@@ -1787,7 +1848,7 @@ export declare type PrinterDiscover = {
|
|
|
1787
1848
|
printer_name?: string;
|
|
1788
1849
|
ip_address?: string;
|
|
1789
1850
|
mac_address?: string;
|
|
1790
|
-
type?:
|
|
1851
|
+
type?: 'system' | 'network' | 'bluetooth' | 'usb';
|
|
1791
1852
|
};
|
|
1792
1853
|
export declare type Currency = {
|
|
1793
1854
|
country: string;
|
|
@@ -1888,8 +1949,8 @@ export declare type ImageSearchItem = {
|
|
|
1888
1949
|
webformatURL: string;
|
|
1889
1950
|
webformatWidth: number;
|
|
1890
1951
|
};
|
|
1891
|
-
export declare type StockAction =
|
|
1892
|
-
export declare type CategoryScreenSideBar =
|
|
1952
|
+
export declare type StockAction = 'ADD' | 'RECOUNT' | 'DAMAGE' | 'THEFT' | 'LOSS' | 'RESTOCK';
|
|
1953
|
+
export declare type CategoryScreenSideBar = 'DISCOUNT' | 'TAX' | 'ADDON' | 'PRINTER' | 'CUSTOM_ADDON' | 'ADDONS_GROUPS' | null;
|
|
1893
1954
|
export declare type AddonStockDoc = {
|
|
1894
1955
|
addon_id: string;
|
|
1895
1956
|
branch_id: string;
|
|
@@ -1992,13 +2053,13 @@ export declare type Move = {
|
|
|
1992
2053
|
is_expiry?: boolean;
|
|
1993
2054
|
};
|
|
1994
2055
|
export declare type SortInvoice = {
|
|
1995
|
-
source:
|
|
1996
|
-
period:
|
|
1997
|
-
status:
|
|
2056
|
+
source: 'ALL' | 'LAZYWAITPOS' | 'QR';
|
|
2057
|
+
period: 'TODAY' | 'WEEK' | 'MONTH' | 'YEAR' | '24_HOURS' | CustomPeriod;
|
|
2058
|
+
status: 'PAID' | 'CURRENT' | 'VOID' | 'REFUND' | 'ALL' | 'ALL_TRANSACTIONS';
|
|
1998
2059
|
};
|
|
1999
2060
|
export declare type InvoicesOrderBy = {
|
|
2000
|
-
sortBy:
|
|
2001
|
-
orderBy:
|
|
2061
|
+
sortBy: 'order_date' | 'order_id' | 'order_type' | 'discount' | 'tax' | 'received_amount' | 'subtotal' | 'total' | 'approval_code';
|
|
2062
|
+
orderBy: 'asc' | 'desc';
|
|
2002
2063
|
};
|
|
2003
2064
|
export declare type CustomPeriod = {
|
|
2004
2065
|
from: Date;
|
|
@@ -2008,18 +2069,18 @@ export declare type HoldStockKeys = {
|
|
|
2008
2069
|
[key: string]: number;
|
|
2009
2070
|
};
|
|
2010
2071
|
export declare type Cash = {
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2072
|
+
'5': number;
|
|
2073
|
+
'10': number;
|
|
2074
|
+
'20': number;
|
|
2075
|
+
'50': number;
|
|
2076
|
+
'100': number;
|
|
2077
|
+
'500': number;
|
|
2078
|
+
'0.01': number;
|
|
2079
|
+
'0.1': number;
|
|
2080
|
+
'0.25': number;
|
|
2081
|
+
'0.5': number;
|
|
2082
|
+
'1': number;
|
|
2083
|
+
'2': number;
|
|
2023
2084
|
};
|
|
2024
2085
|
export declare type CustomersSort = {
|
|
2025
2086
|
field: string;
|
|
@@ -2070,9 +2131,9 @@ export declare type SupportTicket = {
|
|
|
2070
2131
|
name_lan_p?: string;
|
|
2071
2132
|
};
|
|
2072
2133
|
status: string;
|
|
2073
|
-
source:
|
|
2134
|
+
source: 'POS' | string;
|
|
2074
2135
|
created_by: {
|
|
2075
|
-
status:
|
|
2136
|
+
status: 'new' | string;
|
|
2076
2137
|
date: Date | TimestampType | null;
|
|
2077
2138
|
user_id: string;
|
|
2078
2139
|
user_name: string;
|
|
@@ -2090,7 +2151,7 @@ export declare type SupportTicket = {
|
|
|
2090
2151
|
version: string;
|
|
2091
2152
|
};
|
|
2092
2153
|
network_details?: any & {
|
|
2093
|
-
frequency:
|
|
2154
|
+
frequency: '5 GHz' | '2.4 GHz' | '';
|
|
2094
2155
|
};
|
|
2095
2156
|
};
|
|
2096
2157
|
export declare type TicketComment = {
|
|
@@ -2137,8 +2198,8 @@ export declare type PassMeOrderNotif = {
|
|
|
2137
2198
|
client_id: string;
|
|
2138
2199
|
branch_id: string;
|
|
2139
2200
|
order_ref: string;
|
|
2140
|
-
source:
|
|
2141
|
-
type:
|
|
2201
|
+
source: 'QR_PHONE' | string;
|
|
2202
|
+
type: 'order' | string;
|
|
2142
2203
|
};
|
|
2143
2204
|
export declare type Notification = {
|
|
2144
2205
|
terminal_ids: string[];
|
|
@@ -2186,7 +2247,7 @@ export declare type Location = {
|
|
|
2186
2247
|
city?: string;
|
|
2187
2248
|
countryCode?: string;
|
|
2188
2249
|
countryName?: string;
|
|
2189
|
-
county?:
|
|
2250
|
+
county?: '';
|
|
2190
2251
|
elapsedRealtimeNanos?: number | string;
|
|
2191
2252
|
extraInfo?: {
|
|
2192
2253
|
mockLocation?: boolean | string;
|
|
@@ -2264,19 +2325,19 @@ export declare type ManualDoc = {
|
|
|
2264
2325
|
url: string;
|
|
2265
2326
|
};
|
|
2266
2327
|
export declare type POSEmail = {
|
|
2267
|
-
email_type:
|
|
2268
|
-
email_target:
|
|
2269
|
-
source:
|
|
2270
|
-
language?:
|
|
2328
|
+
email_type: 'cancellation' | 'trial' | 'success_payment' | 'failed_payment' | 'leads';
|
|
2329
|
+
email_target: 'customer' | 'lazywait';
|
|
2330
|
+
source: 'direct_payment' | 'pos';
|
|
2331
|
+
language?: 'en' | 'ar' | string;
|
|
2271
2332
|
owner_name?: string;
|
|
2272
2333
|
owner_email?: string;
|
|
2273
2334
|
owner_phone?: string;
|
|
2274
|
-
plan?:
|
|
2335
|
+
plan?: 'free' | 'starter' | 'plus' | 'pro';
|
|
2275
2336
|
client_id?: string;
|
|
2276
2337
|
client_name?: string;
|
|
2277
2338
|
branch_id?: string;
|
|
2278
2339
|
branch_name?: string;
|
|
2279
|
-
platform?:
|
|
2340
|
+
platform?: 'ios' | 'android' | 'direct_payment';
|
|
2280
2341
|
message?: string;
|
|
2281
2342
|
payment_ref?: string;
|
|
2282
2343
|
payment_amount?: number;
|
|
@@ -2301,7 +2362,7 @@ export declare type HoldStocks = {
|
|
|
2301
2362
|
export declare type LWOrders = {
|
|
2302
2363
|
order: Order;
|
|
2303
2364
|
print_type?: string;
|
|
2304
|
-
type:
|
|
2365
|
+
type: 'error' | 'success';
|
|
2305
2366
|
error_message?: string;
|
|
2306
2367
|
};
|
|
2307
2368
|
export declare type LWReport = {
|
|
@@ -2331,7 +2392,7 @@ export declare type OrderPrintJobsParams = {
|
|
|
2331
2392
|
reprint_slips?: boolean;
|
|
2332
2393
|
printerIp?: string;
|
|
2333
2394
|
};
|
|
2334
|
-
export declare type OrderStatusID =
|
|
2395
|
+
export declare type OrderStatusID = 'new-order' | 'confirmed' | 'ready' | 'delivered' | 'canceled' | 'refunded' | 'delivery' | 'driver-pickup' | 'driver-at-door';
|
|
2335
2396
|
export declare type Allergen = Map<string, string>;
|
|
2336
2397
|
export declare type LazyPaySMSPayload = {
|
|
2337
2398
|
branch: {
|
|
@@ -2340,7 +2401,7 @@ export declare type LazyPaySMSPayload = {
|
|
|
2340
2401
|
name_lan_p?: string;
|
|
2341
2402
|
name_lan_s?: string;
|
|
2342
2403
|
print_order_id?: boolean;
|
|
2343
|
-
print_language?:
|
|
2404
|
+
print_language?: 'both' | Lang;
|
|
2344
2405
|
languages?: Lang[];
|
|
2345
2406
|
print_price_with_vat?: boolean;
|
|
2346
2407
|
address?: string;
|