lazywait-calcs 1.8.9 → 1.9.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/Calcs.js +52 -50
- package/lib/cjs/types/Calcs.d.ts.map +1 -1
- package/lib/cjs/types/types.d.ts +427 -99
- package/lib/cjs/types/types.d.ts.map +1 -1
- package/lib/cjs/types.js +1 -5
- package/lib/esm/Calcs.js +50 -48
- package/lib/esm/types/Calcs.d.ts.map +1 -1
- package/lib/esm/types/types.d.ts +427 -99
- package/lib/esm/types/types.d.ts.map +1 -1
- package/lib/esm/types.js +1 -5
- package/package.json +2 -1
package/lib/cjs/types/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LazyWaitAppTypes } from './lwapp_types';
|
|
2
|
+
import { TransactionData, TransactionReceipt } from '@nearpaydev/nearpay-ts-sdk';
|
|
2
3
|
declare namespace FirebaseFirestore {
|
|
3
4
|
type Timestamp = {};
|
|
4
5
|
type FieldValue = {};
|
|
@@ -12,7 +13,24 @@ export declare type ProvidersList = {
|
|
|
12
13
|
platforms: SupportedPlatforms[];
|
|
13
14
|
};
|
|
14
15
|
export declare type SupportedPlatforms = 'windows' | 'ios' | 'android';
|
|
15
|
-
export declare type PaymentProviders = '
|
|
16
|
+
export declare type PaymentProviders = 'LAZYWAITPAY';
|
|
17
|
+
export declare type PlatformOSType = 'ios' | 'android' | 'macos' | 'windows' | 'web' | 'native';
|
|
18
|
+
export declare type ActiveOrdersParams = {
|
|
19
|
+
orders: Order[];
|
|
20
|
+
loaded: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare type PricesStockParams = {
|
|
23
|
+
stocks: StocksQty[];
|
|
24
|
+
hold_stocks: StocksQty[];
|
|
25
|
+
};
|
|
26
|
+
export declare type AddonsStockParams = {
|
|
27
|
+
stocks: StocksQty[];
|
|
28
|
+
hold_stocks: StocksQty[];
|
|
29
|
+
};
|
|
30
|
+
export declare type SourcesStockParams = {
|
|
31
|
+
stocks: StocksQty[];
|
|
32
|
+
hold_stocks: StocksQty[];
|
|
33
|
+
};
|
|
16
34
|
export interface EGSUnitLocation {
|
|
17
35
|
city: string;
|
|
18
36
|
city_subdivision: string;
|
|
@@ -125,7 +143,7 @@ export declare type POSUser = {
|
|
|
125
143
|
branches_ids?: string[];
|
|
126
144
|
country_code?: string;
|
|
127
145
|
owner?: boolean;
|
|
128
|
-
discount_limit_on_order?:
|
|
146
|
+
discount_limit_on_order?: number | null;
|
|
129
147
|
};
|
|
130
148
|
export declare type Country = {
|
|
131
149
|
callingCodes: string[];
|
|
@@ -159,6 +177,9 @@ export declare type Branch = {
|
|
|
159
177
|
scale_label_with_qty?: boolean;
|
|
160
178
|
display_vat?: boolean;
|
|
161
179
|
logo?: string | null;
|
|
180
|
+
logo_size?: number;
|
|
181
|
+
ticket_font_size?: number;
|
|
182
|
+
invoice_font_size?: number;
|
|
162
183
|
logo_url?: string | null;
|
|
163
184
|
logo_url_name?: string | null;
|
|
164
185
|
category?: string;
|
|
@@ -173,9 +194,7 @@ export declare type Branch = {
|
|
|
173
194
|
isCashierSearchShown?: boolean;
|
|
174
195
|
isCashierBarcodeSearchShown?: boolean;
|
|
175
196
|
isAllCategoryShown?: boolean;
|
|
176
|
-
print_order_id?: boolean;
|
|
177
197
|
use_store_email_provider?: boolean;
|
|
178
|
-
print_order_number?: boolean;
|
|
179
198
|
isOrderStatus?: boolean;
|
|
180
199
|
isGroundShown?: boolean;
|
|
181
200
|
booking_enabled?: boolean;
|
|
@@ -191,35 +210,16 @@ export declare type Branch = {
|
|
|
191
210
|
currency_lan_s?: string;
|
|
192
211
|
AUTO_LOCK_PERIOD?: number;
|
|
193
212
|
AVE_WAITING_TIME?: number;
|
|
194
|
-
footer?:
|
|
213
|
+
footer?: string;
|
|
195
214
|
active_orders?: number;
|
|
196
215
|
print_orders?: boolean;
|
|
197
216
|
print_bills?: boolean;
|
|
198
|
-
auto_print_bill?: boolean;
|
|
199
|
-
print_price_with_vat?: boolean;
|
|
200
|
-
bill_show_barcode?: boolean;
|
|
201
|
-
bill_show_customer_no?: boolean;
|
|
202
|
-
receipt_show_barcode?: boolean;
|
|
203
|
-
receipt_show_customer_no?: boolean;
|
|
204
217
|
receipt_show_paid_stamp?: boolean;
|
|
205
218
|
customerMode_required_cell?: boolean;
|
|
206
|
-
order_show_customer_no?: boolean;
|
|
207
|
-
order_show_servant_name?: boolean;
|
|
208
|
-
order_show_terminal_name?: boolean;
|
|
209
219
|
order_print_terminal?: boolean;
|
|
210
|
-
void_transaction_msg?: string;
|
|
211
220
|
order_duplicated_copies?: boolean;
|
|
212
221
|
order_language?: Lang[];
|
|
213
|
-
reprint_order_items_msg?: string;
|
|
214
|
-
bill_header?: string;
|
|
215
|
-
bill_footer?: string;
|
|
216
|
-
receipt_header?: string;
|
|
217
|
-
receipt_footer?: string;
|
|
218
222
|
terminalMode_payment?: boolean;
|
|
219
|
-
receipt_duplicated_copies?: boolean;
|
|
220
|
-
bill_show_pickup_date?: boolean;
|
|
221
|
-
order_show_pickup_date?: boolean;
|
|
222
|
-
order_print_copies?: number;
|
|
223
223
|
show_wo_receipt_payment?: boolean;
|
|
224
224
|
allow_deposit?: boolean;
|
|
225
225
|
quick_item_add?: boolean;
|
|
@@ -238,11 +238,7 @@ export declare type Branch = {
|
|
|
238
238
|
label_language?: 'both';
|
|
239
239
|
mada_enabled?: boolean;
|
|
240
240
|
mada_print_bill?: boolean;
|
|
241
|
-
order_cut_by_category?: boolean;
|
|
242
241
|
order_show_delivery_date?: boolean;
|
|
243
|
-
order_show_table_name?: boolean;
|
|
244
|
-
receipt_show_order_comment?: boolean;
|
|
245
|
-
receipt_show_item_comment?: boolean;
|
|
246
242
|
selectedSyncPeriod?: number;
|
|
247
243
|
send_LW_Order_Kitchen?: boolean;
|
|
248
244
|
send_QR_Order_Kitchen?: boolean;
|
|
@@ -271,11 +267,6 @@ export declare type Branch = {
|
|
|
271
267
|
receipt_print_user?: boolean;
|
|
272
268
|
validLicense?: Licence;
|
|
273
269
|
loyalty_apply_all?: boolean;
|
|
274
|
-
bill_show_item_comment?: boolean;
|
|
275
|
-
receipt_show_product_barcode_number?: boolean;
|
|
276
|
-
bill_show_logo?: boolean;
|
|
277
|
-
bill_show_address?: boolean;
|
|
278
|
-
bill_show_phone_number?: boolean;
|
|
279
270
|
sources_enabled?: boolean;
|
|
280
271
|
location?: GeoPointType | object | null;
|
|
281
272
|
location_info?: Location | null;
|
|
@@ -289,14 +280,53 @@ export declare type Branch = {
|
|
|
289
280
|
quick_checkout?: boolean;
|
|
290
281
|
enable_sms_payment?: boolean;
|
|
291
282
|
auto_send_lazypay?: boolean;
|
|
292
|
-
print_price_with_custom_tax?: boolean;
|
|
293
283
|
cloud_branches_enabled?: boolean;
|
|
294
284
|
show_items_without_barcode?: boolean;
|
|
295
|
-
add_item_slip_holder_space?: boolean;
|
|
296
285
|
show_only_favorite_items?: boolean;
|
|
297
286
|
barcode_reading_limit_enabled?: boolean;
|
|
298
287
|
barcode_reading_limit?: number;
|
|
299
288
|
show_retail_db_lookup?: boolean;
|
|
289
|
+
CRN_number?: string;
|
|
290
|
+
print_order_number?: boolean;
|
|
291
|
+
receipt_show_pickup_date?: boolean;
|
|
292
|
+
bill_show_pickup_date?: boolean;
|
|
293
|
+
order_show_pickup_date?: boolean;
|
|
294
|
+
print_order_id?: boolean;
|
|
295
|
+
order_show_servant_name?: boolean;
|
|
296
|
+
order_show_terminal_name?: boolean;
|
|
297
|
+
print_price_with_vat?: boolean;
|
|
298
|
+
print_price_with_custom_tax?: boolean;
|
|
299
|
+
reprint_order_items_msg?: string;
|
|
300
|
+
void_transaction_msg?: string;
|
|
301
|
+
order_show_customer_no?: boolean;
|
|
302
|
+
show_slip_number_of_products: boolean;
|
|
303
|
+
order_show_table_name?: boolean;
|
|
304
|
+
order_cut_by_category?: boolean;
|
|
305
|
+
add_item_slip_holder_space?: boolean;
|
|
306
|
+
order_print_copies?: number;
|
|
307
|
+
bill_header?: string;
|
|
308
|
+
bill_footer?: string;
|
|
309
|
+
bill_show_barcode?: boolean;
|
|
310
|
+
bill_show_item_comment?: boolean;
|
|
311
|
+
bill_show_customer_no?: boolean;
|
|
312
|
+
bill_show_order_comment?: boolean;
|
|
313
|
+
auto_print_bill?: boolean;
|
|
314
|
+
bill_show_logo?: boolean;
|
|
315
|
+
bill_show_address?: boolean;
|
|
316
|
+
bill_show_phone_number?: boolean;
|
|
317
|
+
receipt_header?: string;
|
|
318
|
+
receipt_footer?: string;
|
|
319
|
+
receipt_show_barcode?: boolean;
|
|
320
|
+
receipt_show_item_comment?: boolean;
|
|
321
|
+
receipt_show_customer_no?: boolean;
|
|
322
|
+
receipt_show_order_comment?: boolean;
|
|
323
|
+
receipt_show_product_barcode_number?: boolean;
|
|
324
|
+
receipt_duplicated_copies?: boolean;
|
|
325
|
+
receipt_show_logo?: boolean;
|
|
326
|
+
receipt_show_phone_number?: boolean;
|
|
327
|
+
print_server_ip?: string;
|
|
328
|
+
print_server_token?: string;
|
|
329
|
+
show_invoice_number_of_products: boolean;
|
|
300
330
|
};
|
|
301
331
|
export declare type PaymentMethod = {
|
|
302
332
|
name_lan_p: string | 'CASH' | 'DEBIT' | 'CREDIT';
|
|
@@ -371,7 +401,7 @@ export declare type Client = {
|
|
|
371
401
|
cr_issue_date?: Date | TimestampType | null;
|
|
372
402
|
cr_expire_date?: Date | TimestampType | null;
|
|
373
403
|
cr?: string;
|
|
374
|
-
had_trial?:
|
|
404
|
+
had_trial?: boolean;
|
|
375
405
|
is_test?: boolean;
|
|
376
406
|
};
|
|
377
407
|
export declare type OwnerInfo = {
|
|
@@ -410,6 +440,7 @@ export declare type Order = {
|
|
|
410
440
|
customer_cell?: string;
|
|
411
441
|
customer_name?: string;
|
|
412
442
|
customer_email?: string;
|
|
443
|
+
customer_tax_id?: string;
|
|
413
444
|
customer_id?: string;
|
|
414
445
|
email?: string;
|
|
415
446
|
order_items: OrderItem[];
|
|
@@ -429,10 +460,12 @@ export declare type Order = {
|
|
|
429
460
|
area_id?: string;
|
|
430
461
|
area_name?: string;
|
|
431
462
|
order_type?: string;
|
|
463
|
+
order_pickup_date?: TimestampType | Date;
|
|
432
464
|
source?: string;
|
|
433
465
|
receipt?: string;
|
|
434
466
|
isVoid: boolean;
|
|
435
467
|
isPaid: boolean;
|
|
468
|
+
synced?: boolean;
|
|
436
469
|
isRefund?: boolean;
|
|
437
470
|
user_id?: string;
|
|
438
471
|
user_name?: string;
|
|
@@ -456,7 +489,6 @@ export declare type Order = {
|
|
|
456
489
|
tax_percentage?: number;
|
|
457
490
|
change?: number;
|
|
458
491
|
received_amount?: number;
|
|
459
|
-
order_pickup_date?: Date;
|
|
460
492
|
order_payments?: OrderPayment[];
|
|
461
493
|
order_taxes: OrderTax[];
|
|
462
494
|
order_discounts: OrderDiscount[];
|
|
@@ -510,6 +542,8 @@ export declare type Order = {
|
|
|
510
542
|
previous_invoice_hash?: string;
|
|
511
543
|
phase2?: boolean;
|
|
512
544
|
zatca_invoice_uuid?: string;
|
|
545
|
+
title?: string;
|
|
546
|
+
odoo_invoice_id?: string;
|
|
513
547
|
};
|
|
514
548
|
export declare type OrderItem = {
|
|
515
549
|
client_id: string;
|
|
@@ -555,6 +589,16 @@ export declare type OrderItem = {
|
|
|
555
589
|
user_id?: string;
|
|
556
590
|
user_name?: string;
|
|
557
591
|
};
|
|
592
|
+
created_by?: {
|
|
593
|
+
user_id?: string;
|
|
594
|
+
user_name?: string;
|
|
595
|
+
date?: Date | TimestampType | null;
|
|
596
|
+
};
|
|
597
|
+
canceled_by?: {
|
|
598
|
+
user_id?: string;
|
|
599
|
+
user_name?: string;
|
|
600
|
+
date?: Date | TimestampType | null;
|
|
601
|
+
};
|
|
558
602
|
not_printed?: boolean;
|
|
559
603
|
order_item_updated?: boolean;
|
|
560
604
|
};
|
|
@@ -663,7 +707,7 @@ export declare type PrintedTax = {
|
|
|
663
707
|
};
|
|
664
708
|
export declare type OrderDiscount = {
|
|
665
709
|
client_id: string;
|
|
666
|
-
branch_id
|
|
710
|
+
branch_id: string;
|
|
667
711
|
discount_id?: string;
|
|
668
712
|
is_percentage?: boolean;
|
|
669
713
|
amount?: number;
|
|
@@ -679,6 +723,8 @@ export declare type OrderDiscount = {
|
|
|
679
723
|
promo_code?: string;
|
|
680
724
|
auto_apply?: boolean;
|
|
681
725
|
discount_name?: string;
|
|
726
|
+
allowed_once?: boolean;
|
|
727
|
+
maxUsagePerCustomer?: number;
|
|
682
728
|
};
|
|
683
729
|
export declare type OrderDelivery = {
|
|
684
730
|
client_id: string;
|
|
@@ -971,8 +1017,68 @@ export declare type Terminal = {
|
|
|
971
1017
|
previous_invoice_hash?: string;
|
|
972
1018
|
tid_terminal_id?: string;
|
|
973
1019
|
tid_terminal_name?: string;
|
|
1020
|
+
tid_internal_device?: boolean;
|
|
1021
|
+
tid_jwt?: string;
|
|
974
1022
|
terminal_ip?: string;
|
|
1023
|
+
deviceState?: DeviceState | null;
|
|
1024
|
+
support_terminal?: boolean;
|
|
975
1025
|
support_terminal_created_at?: TimestampType | Date | null;
|
|
1026
|
+
cfs_nfc_position?: UIPosition;
|
|
1027
|
+
};
|
|
1028
|
+
export declare type Vendor = {
|
|
1029
|
+
lyve_pickup_number?: string;
|
|
1030
|
+
approved: boolean;
|
|
1031
|
+
isTest?: boolean;
|
|
1032
|
+
ownerEmail?: string;
|
|
1033
|
+
id?: string;
|
|
1034
|
+
VAT?: number;
|
|
1035
|
+
address?: string;
|
|
1036
|
+
categoryID?: string;
|
|
1037
|
+
createdAt: TimestampType | Date;
|
|
1038
|
+
currency?: {
|
|
1039
|
+
[key: string]: string;
|
|
1040
|
+
};
|
|
1041
|
+
description?: string;
|
|
1042
|
+
filters?: {
|
|
1043
|
+
[key: string]: boolean;
|
|
1044
|
+
};
|
|
1045
|
+
location?: string;
|
|
1046
|
+
latitude: number;
|
|
1047
|
+
locationHash?: string;
|
|
1048
|
+
longitude: number;
|
|
1049
|
+
lw_branch_id?: string;
|
|
1050
|
+
lw_client_id?: string;
|
|
1051
|
+
photo?: string;
|
|
1052
|
+
reviewsCount?: number;
|
|
1053
|
+
reviewsSum?: number;
|
|
1054
|
+
title_lan_p: string;
|
|
1055
|
+
title_lan_s: string;
|
|
1056
|
+
phoneNumber?: string;
|
|
1057
|
+
countryCode?: string;
|
|
1058
|
+
deliveryRadius?: number;
|
|
1059
|
+
backgroundPhoto?: string;
|
|
1060
|
+
iban?: string;
|
|
1061
|
+
description_lan_p?: string;
|
|
1062
|
+
description_lan_s?: string;
|
|
1063
|
+
isReceivingOrders?: boolean;
|
|
1064
|
+
store_url?: string;
|
|
1065
|
+
approvedEmailSent?: boolean;
|
|
1066
|
+
showInApp?: boolean;
|
|
1067
|
+
paymentMethods?: ('CASH_ON_DELIVERY' | 'ONLINE' | string)[];
|
|
1068
|
+
_geo?: {
|
|
1069
|
+
lat: number;
|
|
1070
|
+
lng: number;
|
|
1071
|
+
};
|
|
1072
|
+
destination_id?: string;
|
|
1073
|
+
integrations?: {
|
|
1074
|
+
key: 'PAYLINK' | 'TAP' | 'PAYTABS';
|
|
1075
|
+
isApproved: boolean;
|
|
1076
|
+
}[];
|
|
1077
|
+
instagramUrl?: string;
|
|
1078
|
+
twitterUrl?: string;
|
|
1079
|
+
facebookUrl?: string;
|
|
1080
|
+
linkedinUrl?: string;
|
|
1081
|
+
tiktokUrl?: string;
|
|
976
1082
|
};
|
|
977
1083
|
export declare enum UIPosition {
|
|
978
1084
|
TOP_START = "TOP_START",
|
|
@@ -1036,6 +1142,10 @@ export declare type Tid = {
|
|
|
1036
1142
|
cfs_nfc_position?: UIPosition;
|
|
1037
1143
|
admin_pin?: string;
|
|
1038
1144
|
pos_connection?: boolean;
|
|
1145
|
+
device?: any;
|
|
1146
|
+
merchant?: any;
|
|
1147
|
+
is_assigned_to_user?: boolean;
|
|
1148
|
+
is_connected?: boolean;
|
|
1039
1149
|
};
|
|
1040
1150
|
export declare type Item = {
|
|
1041
1151
|
client_id: string;
|
|
@@ -1084,6 +1194,7 @@ export declare type Item = {
|
|
|
1084
1194
|
tags?: LazyWaitAppTypes.ItemTag[];
|
|
1085
1195
|
addons_ids?: string[];
|
|
1086
1196
|
addons_groups_ids?: string[];
|
|
1197
|
+
favorite?: boolean;
|
|
1087
1198
|
};
|
|
1088
1199
|
export declare type ItemPrice = {
|
|
1089
1200
|
client_id: string;
|
|
@@ -1326,6 +1437,7 @@ export declare type TimeBound = {
|
|
|
1326
1437
|
valid_to?: Date | TimestampType | null;
|
|
1327
1438
|
};
|
|
1328
1439
|
export declare type Printer = {
|
|
1440
|
+
id?: string;
|
|
1329
1441
|
client_id: string;
|
|
1330
1442
|
branch_id: string;
|
|
1331
1443
|
printer_id?: string;
|
|
@@ -1346,6 +1458,8 @@ export declare type Printer = {
|
|
|
1346
1458
|
has_drawer?: boolean;
|
|
1347
1459
|
printer_delay?: number;
|
|
1348
1460
|
purpose?: PrinterPurpose[];
|
|
1461
|
+
print_server_ip?: string;
|
|
1462
|
+
print_server_token?: string;
|
|
1349
1463
|
};
|
|
1350
1464
|
export declare type StarDiscovery = {
|
|
1351
1465
|
usb_serial_number: string;
|
|
@@ -1353,7 +1467,7 @@ export declare type StarDiscovery = {
|
|
|
1353
1467
|
port_name: string;
|
|
1354
1468
|
mac_address: string;
|
|
1355
1469
|
};
|
|
1356
|
-
export declare type PrinterPurpose = 'ITEMS_SLIPS' | 'INVOICES' | 'RECEIPTS' | 'CLOSING';
|
|
1470
|
+
export declare type PrinterPurpose = 'ITEMS_SLIPS' | 'INVOICES' | 'RECEIPTS' | 'CLOSING' | 'PRINT_SERVER';
|
|
1357
1471
|
export declare type Role = {
|
|
1358
1472
|
client_id?: string;
|
|
1359
1473
|
role_id?: string;
|
|
@@ -1381,6 +1495,7 @@ export declare type Customer = {
|
|
|
1381
1495
|
address?: Array<string>;
|
|
1382
1496
|
last_four_digits?: string;
|
|
1383
1497
|
discount_ids?: string[];
|
|
1498
|
+
data?: string;
|
|
1384
1499
|
customer_street_name?: string;
|
|
1385
1500
|
customer_building_number?: string;
|
|
1386
1501
|
customer_city_name?: string;
|
|
@@ -1402,12 +1517,6 @@ export declare type InvoiceCustomer = {
|
|
|
1402
1517
|
customer_cell?: string;
|
|
1403
1518
|
customer_email?: string;
|
|
1404
1519
|
customer_id?: string;
|
|
1405
|
-
customer_tax_id?: string;
|
|
1406
|
-
customer_street_name?: string;
|
|
1407
|
-
customer_building_number?: string;
|
|
1408
|
-
customer_city_name?: string;
|
|
1409
|
-
customer_city_subdivision?: string;
|
|
1410
|
-
customer_postal_zone?: string;
|
|
1411
1520
|
country_code?: string;
|
|
1412
1521
|
group_id?: string;
|
|
1413
1522
|
group_name?: string;
|
|
@@ -1420,6 +1529,14 @@ export declare type InvoiceCustomer = {
|
|
|
1420
1529
|
menu_item_ids?: string[];
|
|
1421
1530
|
delivery_address?: string;
|
|
1422
1531
|
otp_verified?: boolean;
|
|
1532
|
+
mithu_redeem?: MithuRedeem | null;
|
|
1533
|
+
customer_street_name?: string;
|
|
1534
|
+
customer_building_number?: string;
|
|
1535
|
+
customer_city_name?: string;
|
|
1536
|
+
customer_city_subdivision?: string;
|
|
1537
|
+
customer_postal_zone?: string;
|
|
1538
|
+
customer_address_country_code?: string;
|
|
1539
|
+
customer_tax_id?: string;
|
|
1423
1540
|
};
|
|
1424
1541
|
export declare type LoyaltyPoint = {
|
|
1425
1542
|
client_id: string;
|
|
@@ -1486,6 +1603,7 @@ export declare type UniversalLicense = {
|
|
|
1486
1603
|
subscription_state?: string;
|
|
1487
1604
|
};
|
|
1488
1605
|
export declare type PlanInfo = {
|
|
1606
|
+
plan_id: string;
|
|
1489
1607
|
payment_date?: Date;
|
|
1490
1608
|
discounts?: string;
|
|
1491
1609
|
payment_amount?: string;
|
|
@@ -1565,6 +1683,26 @@ export declare type CashierOpening = {
|
|
|
1565
1683
|
opening_start_cash?: number;
|
|
1566
1684
|
opening_id?: string;
|
|
1567
1685
|
};
|
|
1686
|
+
export declare type SQLTable = {
|
|
1687
|
+
table_name: string;
|
|
1688
|
+
type_name: string;
|
|
1689
|
+
collection_path: string;
|
|
1690
|
+
columns: SQLColumn[];
|
|
1691
|
+
await: boolean;
|
|
1692
|
+
where?: any[];
|
|
1693
|
+
orderBy?: any[];
|
|
1694
|
+
limit?: number;
|
|
1695
|
+
collection_group_table_name?: string;
|
|
1696
|
+
send_pos_updates?: boolean;
|
|
1697
|
+
};
|
|
1698
|
+
export declare type SQLColumn = {
|
|
1699
|
+
name: string;
|
|
1700
|
+
type: string;
|
|
1701
|
+
notnull: boolean;
|
|
1702
|
+
dflt_value: any;
|
|
1703
|
+
pk: boolean;
|
|
1704
|
+
idx: boolean;
|
|
1705
|
+
};
|
|
1568
1706
|
export declare type DrawerOpening = {
|
|
1569
1707
|
client_id: string;
|
|
1570
1708
|
branch_id: string;
|
|
@@ -1577,56 +1715,6 @@ export declare type DrawerOpening = {
|
|
|
1577
1715
|
from_closing?: boolean;
|
|
1578
1716
|
name?: string;
|
|
1579
1717
|
};
|
|
1580
|
-
interface LocalizationField {
|
|
1581
|
-
arabic: string;
|
|
1582
|
-
english: string;
|
|
1583
|
-
}
|
|
1584
|
-
interface LabelField<T> {
|
|
1585
|
-
label: LocalizationField;
|
|
1586
|
-
value: T;
|
|
1587
|
-
}
|
|
1588
|
-
export interface ReconciliationLabelField {
|
|
1589
|
-
label: LocalizationField;
|
|
1590
|
-
total: string;
|
|
1591
|
-
count: number;
|
|
1592
|
-
}
|
|
1593
|
-
export interface ReconciliationDetails {
|
|
1594
|
-
purchase: ReconciliationLabelField;
|
|
1595
|
-
refund: ReconciliationLabelField;
|
|
1596
|
-
purchase_reversal: ReconciliationLabelField;
|
|
1597
|
-
refund_reversal: ReconciliationLabelField;
|
|
1598
|
-
total: ReconciliationLabelField;
|
|
1599
|
-
}
|
|
1600
|
-
export interface ReconciliationSchemesDetails {
|
|
1601
|
-
debit: ReconciliationLabelField;
|
|
1602
|
-
credit: ReconciliationLabelField;
|
|
1603
|
-
total: ReconciliationLabelField;
|
|
1604
|
-
}
|
|
1605
|
-
export interface ReconciliationSchemes {
|
|
1606
|
-
name: LabelField<string>;
|
|
1607
|
-
pos: ReconciliationSchemesDetails;
|
|
1608
|
-
host: ReconciliationSchemesDetails;
|
|
1609
|
-
}
|
|
1610
|
-
export interface Merchant {
|
|
1611
|
-
id: string;
|
|
1612
|
-
name: LocalizationField;
|
|
1613
|
-
address: LocalizationField;
|
|
1614
|
-
category_code: string;
|
|
1615
|
-
}
|
|
1616
|
-
export interface ReconciliationReceipt {
|
|
1617
|
-
id: string;
|
|
1618
|
-
date: string;
|
|
1619
|
-
time: string;
|
|
1620
|
-
is_balanced: LabelField<boolean>;
|
|
1621
|
-
details: ReconciliationDetails;
|
|
1622
|
-
schemes: ReconciliationSchemes[];
|
|
1623
|
-
currency: LocalizationField;
|
|
1624
|
-
qr_code: string;
|
|
1625
|
-
merchant: Merchant;
|
|
1626
|
-
card_acceptor_terminal_id: string;
|
|
1627
|
-
system_trace_audit_number: string;
|
|
1628
|
-
pos_software_version_number: string;
|
|
1629
|
-
}
|
|
1630
1718
|
export declare type CashierClosing = {
|
|
1631
1719
|
client_id: string;
|
|
1632
1720
|
branch_id: string;
|
|
@@ -1683,6 +1771,7 @@ export declare type CashierClosing = {
|
|
|
1683
1771
|
opening_drawer_cash_start?: number;
|
|
1684
1772
|
opening_user_id?: string;
|
|
1685
1773
|
opening_user_name?: string;
|
|
1774
|
+
opening_diff_reason?: string;
|
|
1686
1775
|
sales?: (OrderPayment | CashMovement)[];
|
|
1687
1776
|
closing_reason?: string;
|
|
1688
1777
|
closing_online_per_type?: {
|
|
@@ -1753,10 +1842,14 @@ export declare type PrintQueue = {
|
|
|
1753
1842
|
order_items?: PrintOrderItem[];
|
|
1754
1843
|
closing?: CashierClosing;
|
|
1755
1844
|
isCanceledItems?: boolean;
|
|
1756
|
-
printer: Printer;
|
|
1757
1845
|
isReprint?: boolean;
|
|
1758
1846
|
uri?: string;
|
|
1759
1847
|
kick?: boolean;
|
|
1848
|
+
branch?: Branch;
|
|
1849
|
+
terminal?: Terminal;
|
|
1850
|
+
printer?: Printer;
|
|
1851
|
+
fromSQLite?: boolean;
|
|
1852
|
+
originalSQLiteId?: string;
|
|
1760
1853
|
};
|
|
1761
1854
|
export declare type PrintJob = {
|
|
1762
1855
|
id: string;
|
|
@@ -1902,6 +1995,50 @@ export declare type PrinterDiscover = {
|
|
|
1902
1995
|
mac_address?: string;
|
|
1903
1996
|
type?: 'system' | 'network' | 'bluetooth' | 'usb';
|
|
1904
1997
|
};
|
|
1998
|
+
export declare type POSConfigs = {
|
|
1999
|
+
auto_sync_menu?: boolean;
|
|
2000
|
+
show_version_indicator?: boolean;
|
|
2001
|
+
};
|
|
2002
|
+
export declare type ReduxState = {
|
|
2003
|
+
Language: string;
|
|
2004
|
+
User: User | null;
|
|
2005
|
+
Client: Client | null;
|
|
2006
|
+
Branch: Branch | null;
|
|
2007
|
+
LoggedUser: POSUser | null;
|
|
2008
|
+
Terminal: Terminal | null;
|
|
2009
|
+
Order: {
|
|
2010
|
+
CurrentOrder: Order | null;
|
|
2011
|
+
OrderItems: OrderItem[];
|
|
2012
|
+
OrderCustomer: InvoiceCustomer | null;
|
|
2013
|
+
};
|
|
2014
|
+
Cashier: {
|
|
2015
|
+
AssetsPath: string;
|
|
2016
|
+
AddonsGroups: AddonGroup[];
|
|
2017
|
+
Addons: IndependentAddon[];
|
|
2018
|
+
Categories: Category[];
|
|
2019
|
+
Items: Item[];
|
|
2020
|
+
ActiveOrders: ActiveOrdersParams;
|
|
2021
|
+
PendingPaidOnlineOrders: Order[];
|
|
2022
|
+
Tables: Table[];
|
|
2023
|
+
OrdersFilters: any[];
|
|
2024
|
+
ActiveCategory: string;
|
|
2025
|
+
Configs: POSConfigs;
|
|
2026
|
+
};
|
|
2027
|
+
Stocks: {
|
|
2028
|
+
PricesStock: PricesStockParams;
|
|
2029
|
+
AddonsStock: AddonsStockParams;
|
|
2030
|
+
SourcesStock: SourcesStockParams;
|
|
2031
|
+
};
|
|
2032
|
+
NearPayResult: {
|
|
2033
|
+
balance?: number;
|
|
2034
|
+
generatedToken?: string;
|
|
2035
|
+
client_id?: string;
|
|
2036
|
+
card_cell?: string;
|
|
2037
|
+
country_code?: string;
|
|
2038
|
+
card_expiration?: string;
|
|
2039
|
+
mode?: string;
|
|
2040
|
+
};
|
|
2041
|
+
};
|
|
1905
2042
|
export declare type Currency = {
|
|
1906
2043
|
country: string;
|
|
1907
2044
|
ar: string;
|
|
@@ -1925,11 +2062,16 @@ export declare type Preview = {
|
|
|
1925
2062
|
order_item?: OrderItem;
|
|
1926
2063
|
category?: Category;
|
|
1927
2064
|
visible: boolean;
|
|
2065
|
+
maxQuantity?: number;
|
|
1928
2066
|
};
|
|
1929
2067
|
export declare type Post = {
|
|
1930
2068
|
url: string;
|
|
1931
2069
|
payload: any;
|
|
1932
2070
|
};
|
|
2071
|
+
export declare type Put = {
|
|
2072
|
+
url: string;
|
|
2073
|
+
payload: any;
|
|
2074
|
+
};
|
|
1933
2075
|
export declare type LWSupportTeam = {
|
|
1934
2076
|
email?: string;
|
|
1935
2077
|
cell?: string;
|
|
@@ -2245,6 +2387,7 @@ export declare type AndroidProps = {
|
|
|
2245
2387
|
export declare type TerminalVersionAndPushID = {
|
|
2246
2388
|
push_id?: string;
|
|
2247
2389
|
version?: string;
|
|
2390
|
+
terminal_ip?: string;
|
|
2248
2391
|
};
|
|
2249
2392
|
export declare type PassMeOrderNotif = {
|
|
2250
2393
|
client_id: string;
|
|
@@ -2337,6 +2480,7 @@ export declare type StoreSetupInfo = {
|
|
|
2337
2480
|
owner_email: string;
|
|
2338
2481
|
phone: string;
|
|
2339
2482
|
sku: string;
|
|
2483
|
+
plan_id: string;
|
|
2340
2484
|
isIaphub?: boolean;
|
|
2341
2485
|
isHmsIap?: boolean;
|
|
2342
2486
|
isPaymentSuccess?: boolean;
|
|
@@ -2389,7 +2533,7 @@ export declare type POSEmail = {
|
|
|
2389
2533
|
client_name?: string;
|
|
2390
2534
|
branch_id?: string;
|
|
2391
2535
|
branch_name?: string;
|
|
2392
|
-
platform?:
|
|
2536
|
+
platform?: PlatformOSType | 'direct_payment';
|
|
2393
2537
|
message?: string;
|
|
2394
2538
|
payment_ref?: string;
|
|
2395
2539
|
payment_amount?: number;
|
|
@@ -2503,9 +2647,11 @@ export declare type PrintOrder = {
|
|
|
2503
2647
|
user_name: string;
|
|
2504
2648
|
terminal_name: string;
|
|
2505
2649
|
order_type: string;
|
|
2506
|
-
|
|
2650
|
+
people_count: Number;
|
|
2651
|
+
order_pickup_date?: TimestampType | Date;
|
|
2507
2652
|
customer_name?: string;
|
|
2508
2653
|
customer_cell?: string;
|
|
2654
|
+
customer_tax_id?: string;
|
|
2509
2655
|
customer_reference?: string;
|
|
2510
2656
|
order_taxes: PrintOrderItemTax[];
|
|
2511
2657
|
order_discounts: PrintOrderDiscount[];
|
|
@@ -2548,9 +2694,9 @@ export declare type PrintOrderItemTax = {
|
|
|
2548
2694
|
tax_id?: string;
|
|
2549
2695
|
amount: number;
|
|
2550
2696
|
isPercent: boolean;
|
|
2697
|
+
minimum_amount?: number;
|
|
2551
2698
|
name_lan_p: string;
|
|
2552
2699
|
name_lan_s: string;
|
|
2553
|
-
minimum_amount?: number;
|
|
2554
2700
|
};
|
|
2555
2701
|
export declare type PrintOrderDiscount = {
|
|
2556
2702
|
discount_id?: string;
|
|
@@ -2665,5 +2811,187 @@ export declare type HelpCenterArticle = {
|
|
|
2665
2811
|
helpful?: number;
|
|
2666
2812
|
useless?: number;
|
|
2667
2813
|
};
|
|
2814
|
+
interface LocalizationField {
|
|
2815
|
+
arabic: string;
|
|
2816
|
+
english: string;
|
|
2817
|
+
}
|
|
2818
|
+
interface LabelField<T> {
|
|
2819
|
+
label: LocalizationField;
|
|
2820
|
+
value: T;
|
|
2821
|
+
}
|
|
2822
|
+
export interface ReconciliationLabelField {
|
|
2823
|
+
label: LocalizationField;
|
|
2824
|
+
total: string;
|
|
2825
|
+
count: number;
|
|
2826
|
+
}
|
|
2827
|
+
export interface ReconciliationDetails {
|
|
2828
|
+
purchase: ReconciliationLabelField;
|
|
2829
|
+
refund: ReconciliationLabelField;
|
|
2830
|
+
purchase_reversal: ReconciliationLabelField;
|
|
2831
|
+
refund_reversal: ReconciliationLabelField;
|
|
2832
|
+
total: ReconciliationLabelField;
|
|
2833
|
+
}
|
|
2834
|
+
export interface ReconciliationSchemesDetails {
|
|
2835
|
+
debit: ReconciliationLabelField;
|
|
2836
|
+
credit: ReconciliationLabelField;
|
|
2837
|
+
total: ReconciliationLabelField;
|
|
2838
|
+
}
|
|
2839
|
+
export interface ReconciliationSchemes {
|
|
2840
|
+
name: LabelField<string>;
|
|
2841
|
+
pos: ReconciliationSchemesDetails;
|
|
2842
|
+
host: ReconciliationSchemesDetails;
|
|
2843
|
+
}
|
|
2844
|
+
export interface Merchant {
|
|
2845
|
+
id: string;
|
|
2846
|
+
name: LocalizationField;
|
|
2847
|
+
address: LocalizationField;
|
|
2848
|
+
category_code: string;
|
|
2849
|
+
}
|
|
2850
|
+
export interface ReconciliationReceipt {
|
|
2851
|
+
id: string;
|
|
2852
|
+
date: string;
|
|
2853
|
+
time: string;
|
|
2854
|
+
is_balanced: LabelField<boolean>;
|
|
2855
|
+
details: ReconciliationDetails;
|
|
2856
|
+
schemes: ReconciliationSchemes[];
|
|
2857
|
+
currency: LocalizationField;
|
|
2858
|
+
qr_code: string;
|
|
2859
|
+
merchant: Merchant;
|
|
2860
|
+
card_acceptor_terminal_id?: string;
|
|
2861
|
+
system_trace_audit_number: string;
|
|
2862
|
+
pos_software_version_number: string;
|
|
2863
|
+
}
|
|
2864
|
+
export interface DeviceState {
|
|
2865
|
+
id: string;
|
|
2866
|
+
token: string;
|
|
2867
|
+
optedIn: boolean;
|
|
2868
|
+
}
|
|
2869
|
+
export declare type QueryType = 'SELECT' | 'INSERT' | 'UPDATE' | 'DELETE';
|
|
2870
|
+
export interface Condition {
|
|
2871
|
+
column?: string;
|
|
2872
|
+
value?: any;
|
|
2873
|
+
operator?: 'AND' | 'OR';
|
|
2874
|
+
comparison?: '=' | '>' | '>=' | '<' | '<=' | '<>' | 'LIKE' | 'IS NULL' | 'IS NOT NULL';
|
|
2875
|
+
group?: 'open' | 'close';
|
|
2876
|
+
}
|
|
2877
|
+
export interface QueryOptions {
|
|
2878
|
+
table: string;
|
|
2879
|
+
columns?: string[];
|
|
2880
|
+
values?: Record<string, any>;
|
|
2881
|
+
conditions?: Condition[];
|
|
2882
|
+
orderBy?: string;
|
|
2883
|
+
order?: 'ASC' | 'DESC';
|
|
2884
|
+
limit?: number;
|
|
2885
|
+
offset?: number;
|
|
2886
|
+
noCloud?: boolean;
|
|
2887
|
+
groupBy?: string;
|
|
2888
|
+
}
|
|
2889
|
+
export declare type SQLiteTable = 'Client' | 'Branch' | 'CustomerGroups' | 'CloudBranches' | 'CloudTerminals' | 'Terminal' | 'Licence' | 'Orders' | 'Users' | 'MenuCategories' | 'ItemPrices' | 'Printers' | 'PrintJobs' | 'Discounts' | 'Taxes' | 'Areas' | 'AddonGroups' | 'ItemAddons' | 'Sources' | 'Deliveries' | 'DiscountsPerks' | 'ItemsPerks' | 'POSUpdates' | 'Customers' | 'Notifications' | 'Roles' | 'ImageUrls';
|
|
2890
|
+
export declare type POSUpdate = {
|
|
2891
|
+
id?: string;
|
|
2892
|
+
collection_path: string;
|
|
2893
|
+
type: 'post' | 'put' | 'delete';
|
|
2894
|
+
timestamp: Date | TimestampType;
|
|
2895
|
+
table_name: SQLiteTable;
|
|
2896
|
+
};
|
|
2897
|
+
export declare type IntegrationDoc = {
|
|
2898
|
+
integrated: boolean;
|
|
2899
|
+
doc: any;
|
|
2900
|
+
};
|
|
2901
|
+
export declare type MithuRedeem = {
|
|
2902
|
+
type?: number;
|
|
2903
|
+
discount_amount?: string;
|
|
2904
|
+
is_percent?: boolean;
|
|
2905
|
+
customer_mobile_number?: string;
|
|
2906
|
+
mobile_country_code?: string;
|
|
2907
|
+
reward_code?: string;
|
|
2908
|
+
name?: string;
|
|
2909
|
+
merchant_id?: string;
|
|
2910
|
+
max_discount_amount?: string;
|
|
2911
|
+
};
|
|
2912
|
+
export declare type ImageUrl = {
|
|
2913
|
+
url?: string;
|
|
2914
|
+
id: string;
|
|
2915
|
+
};
|
|
2916
|
+
export declare type TerminalUpdateData = {
|
|
2917
|
+
client_id: string;
|
|
2918
|
+
terminal_updates: POSUpdate[];
|
|
2919
|
+
branch_id?: string;
|
|
2920
|
+
terminal_data?: {
|
|
2921
|
+
terminal_id: string;
|
|
2922
|
+
type: 'terminal' | 'tid';
|
|
2923
|
+
};
|
|
2924
|
+
};
|
|
2925
|
+
export interface Transaction {
|
|
2926
|
+
id: string;
|
|
2927
|
+
type: string;
|
|
2928
|
+
amount: number;
|
|
2929
|
+
status: string;
|
|
2930
|
+
date: number;
|
|
2931
|
+
refunded: boolean;
|
|
2932
|
+
reversed: boolean;
|
|
2933
|
+
nearpay_payment: TransactionData;
|
|
2934
|
+
}
|
|
2935
|
+
export declare type NearPayTransaction = {
|
|
2936
|
+
isNewTransaction: boolean;
|
|
2937
|
+
receipts: TransactionReceipt[];
|
|
2938
|
+
};
|
|
2939
|
+
export interface TransactionsList {
|
|
2940
|
+
[transaction_id: string]: Transaction;
|
|
2941
|
+
}
|
|
2942
|
+
export declare type NearPayDevice = {
|
|
2943
|
+
id: string;
|
|
2944
|
+
tid: string;
|
|
2945
|
+
jwt: string;
|
|
2946
|
+
merchant: NearPayMerchant | null;
|
|
2947
|
+
user: NearPayUser | null;
|
|
2948
|
+
device: NearPayDeviceInfo | null;
|
|
2949
|
+
is_assigned_to_user: boolean;
|
|
2950
|
+
is_connected: boolean;
|
|
2951
|
+
created_at: string;
|
|
2952
|
+
updated_at: string;
|
|
2953
|
+
};
|
|
2954
|
+
export declare type NearPayUser = {
|
|
2955
|
+
id: string;
|
|
2956
|
+
name: string;
|
|
2957
|
+
mobile: string;
|
|
2958
|
+
email: string;
|
|
2959
|
+
};
|
|
2960
|
+
export declare type NearPayMerchant = {
|
|
2961
|
+
id: string;
|
|
2962
|
+
name: string;
|
|
2963
|
+
name_ar: string;
|
|
2964
|
+
};
|
|
2965
|
+
export declare type NearPayDeviceInfo = {
|
|
2966
|
+
id: string;
|
|
2967
|
+
status: string;
|
|
2968
|
+
deviceType: string;
|
|
2969
|
+
};
|
|
2970
|
+
export interface RefundState {
|
|
2971
|
+
is_refunding: boolean;
|
|
2972
|
+
transaction_id?: string;
|
|
2973
|
+
initial_amount: number;
|
|
2974
|
+
}
|
|
2975
|
+
export declare type TransactionFilter = {
|
|
2976
|
+
type: string | null;
|
|
2977
|
+
status: string | null;
|
|
2978
|
+
from: Date | null;
|
|
2979
|
+
to: Date | null;
|
|
2980
|
+
};
|
|
2981
|
+
export declare type LazyWaitPayReduxState = {
|
|
2982
|
+
Device: Tid | null;
|
|
2983
|
+
Language: 'en' | 'ar';
|
|
2984
|
+
LoggedUser: POSUser | null;
|
|
2985
|
+
User: User | null;
|
|
2986
|
+
Branch: Branch | null;
|
|
2987
|
+
Terminal: Terminal | null;
|
|
2988
|
+
Order: {
|
|
2989
|
+
CurrentOrder: Order | null;
|
|
2990
|
+
OrderItems: OrderItem[];
|
|
2991
|
+
OrderCustomer: any | null;
|
|
2992
|
+
};
|
|
2993
|
+
Nearpay: any | null;
|
|
2994
|
+
BuiltInPrinter: Printer | null;
|
|
2995
|
+
};
|
|
2668
2996
|
export {};
|
|
2669
2997
|
//# sourceMappingURL=types.d.ts.map
|