lazywait-calcs 1.9.0 → 1.9.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.
@@ -14,6 +14,23 @@ export declare type ProvidersList = {
14
14
  };
15
15
  export declare type SupportedPlatforms = 'windows' | 'ios' | 'android';
16
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
+ };
17
34
  export interface EGSUnitLocation {
18
35
  city: string;
19
36
  city_subdivision: string;
@@ -126,7 +143,7 @@ export declare type POSUser = {
126
143
  branches_ids?: string[];
127
144
  country_code?: string;
128
145
  owner?: boolean;
129
- discount_limit_on_order?: string;
146
+ discount_limit_on_order?: number | null;
130
147
  };
131
148
  export declare type Country = {
132
149
  callingCodes: string[];
@@ -160,6 +177,9 @@ export declare type Branch = {
160
177
  scale_label_with_qty?: boolean;
161
178
  display_vat?: boolean;
162
179
  logo?: string | null;
180
+ logo_size?: number;
181
+ ticket_font_size?: number;
182
+ invoice_font_size?: number;
163
183
  logo_url?: string | null;
164
184
  logo_url_name?: string | null;
165
185
  category?: string;
@@ -174,9 +194,7 @@ export declare type Branch = {
174
194
  isCashierSearchShown?: boolean;
175
195
  isCashierBarcodeSearchShown?: boolean;
176
196
  isAllCategoryShown?: boolean;
177
- print_order_id?: boolean;
178
197
  use_store_email_provider?: boolean;
179
- print_order_number?: boolean;
180
198
  isOrderStatus?: boolean;
181
199
  isGroundShown?: boolean;
182
200
  booking_enabled?: boolean;
@@ -192,35 +210,16 @@ export declare type Branch = {
192
210
  currency_lan_s?: string;
193
211
  AUTO_LOCK_PERIOD?: number;
194
212
  AVE_WAITING_TIME?: number;
195
- footer?: number;
213
+ footer?: string;
196
214
  active_orders?: number;
197
215
  print_orders?: boolean;
198
216
  print_bills?: boolean;
199
- auto_print_bill?: boolean;
200
- print_price_with_vat?: boolean;
201
- bill_show_barcode?: boolean;
202
- bill_show_customer_no?: boolean;
203
- receipt_show_barcode?: boolean;
204
- receipt_show_customer_no?: boolean;
205
217
  receipt_show_paid_stamp?: boolean;
206
218
  customerMode_required_cell?: boolean;
207
- order_show_customer_no?: boolean;
208
- order_show_servant_name?: boolean;
209
- order_show_terminal_name?: boolean;
210
219
  order_print_terminal?: boolean;
211
- void_transaction_msg?: string;
212
220
  order_duplicated_copies?: boolean;
213
221
  order_language?: Lang[];
214
- reprint_order_items_msg?: string;
215
- bill_header?: string;
216
- bill_footer?: string;
217
- receipt_header?: string;
218
- receipt_footer?: string;
219
222
  terminalMode_payment?: boolean;
220
- receipt_duplicated_copies?: boolean;
221
- bill_show_pickup_date?: boolean;
222
- order_show_pickup_date?: boolean;
223
- order_print_copies?: number;
224
223
  show_wo_receipt_payment?: boolean;
225
224
  allow_deposit?: boolean;
226
225
  quick_item_add?: boolean;
@@ -239,11 +238,7 @@ export declare type Branch = {
239
238
  label_language?: 'both';
240
239
  mada_enabled?: boolean;
241
240
  mada_print_bill?: boolean;
242
- order_cut_by_category?: boolean;
243
241
  order_show_delivery_date?: boolean;
244
- order_show_table_name?: boolean;
245
- receipt_show_order_comment?: boolean;
246
- receipt_show_item_comment?: boolean;
247
242
  selectedSyncPeriod?: number;
248
243
  send_LW_Order_Kitchen?: boolean;
249
244
  send_QR_Order_Kitchen?: boolean;
@@ -272,11 +267,6 @@ export declare type Branch = {
272
267
  receipt_print_user?: boolean;
273
268
  validLicense?: Licence;
274
269
  loyalty_apply_all?: boolean;
275
- bill_show_item_comment?: boolean;
276
- receipt_show_product_barcode_number?: boolean;
277
- bill_show_logo?: boolean;
278
- bill_show_address?: boolean;
279
- bill_show_phone_number?: boolean;
280
270
  sources_enabled?: boolean;
281
271
  location?: GeoPointType | object | null;
282
272
  location_info?: Location | null;
@@ -290,14 +280,54 @@ export declare type Branch = {
290
280
  quick_checkout?: boolean;
291
281
  enable_sms_payment?: boolean;
292
282
  auto_send_lazypay?: boolean;
293
- print_price_with_custom_tax?: boolean;
294
283
  cloud_branches_enabled?: boolean;
295
284
  show_items_without_barcode?: boolean;
296
- add_item_slip_holder_space?: boolean;
297
285
  show_only_favorite_items?: boolean;
298
286
  barcode_reading_limit_enabled?: boolean;
299
287
  barcode_reading_limit?: number;
300
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
+ print_server_port?: number;
330
+ show_invoice_number_of_products: boolean;
301
331
  };
302
332
  export declare type PaymentMethod = {
303
333
  name_lan_p: string | 'CASH' | 'DEBIT' | 'CREDIT';
@@ -372,7 +402,7 @@ export declare type Client = {
372
402
  cr_issue_date?: Date | TimestampType | null;
373
403
  cr_expire_date?: Date | TimestampType | null;
374
404
  cr?: string;
375
- had_trial?: Boolean;
405
+ had_trial?: boolean;
376
406
  is_test?: boolean;
377
407
  };
378
408
  export declare type OwnerInfo = {
@@ -411,6 +441,7 @@ export declare type Order = {
411
441
  customer_cell?: string;
412
442
  customer_name?: string;
413
443
  customer_email?: string;
444
+ customer_tax_id?: string;
414
445
  customer_id?: string;
415
446
  email?: string;
416
447
  order_items: OrderItem[];
@@ -430,10 +461,12 @@ export declare type Order = {
430
461
  area_id?: string;
431
462
  area_name?: string;
432
463
  order_type?: string;
464
+ order_pickup_date?: TimestampType | Date;
433
465
  source?: string;
434
466
  receipt?: string;
435
467
  isVoid: boolean;
436
468
  isPaid: boolean;
469
+ synced?: boolean;
437
470
  isRefund?: boolean;
438
471
  user_id?: string;
439
472
  user_name?: string;
@@ -457,7 +490,6 @@ export declare type Order = {
457
490
  tax_percentage?: number;
458
491
  change?: number;
459
492
  received_amount?: number;
460
- order_pickup_date?: Date;
461
493
  order_payments?: OrderPayment[];
462
494
  order_taxes: OrderTax[];
463
495
  order_discounts: OrderDiscount[];
@@ -511,6 +543,8 @@ export declare type Order = {
511
543
  previous_invoice_hash?: string;
512
544
  phase2?: boolean;
513
545
  zatca_invoice_uuid?: string;
546
+ title?: string;
547
+ odoo_invoice_id?: string;
514
548
  };
515
549
  export declare type OrderItem = {
516
550
  client_id: string;
@@ -556,6 +590,16 @@ export declare type OrderItem = {
556
590
  user_id?: string;
557
591
  user_name?: string;
558
592
  };
593
+ created_by?: {
594
+ user_id?: string;
595
+ user_name?: string;
596
+ date?: Date | TimestampType | null;
597
+ };
598
+ canceled_by?: {
599
+ user_id?: string;
600
+ user_name?: string;
601
+ date?: Date | TimestampType | null;
602
+ };
559
603
  not_printed?: boolean;
560
604
  order_item_updated?: boolean;
561
605
  };
@@ -664,7 +708,7 @@ export declare type PrintedTax = {
664
708
  };
665
709
  export declare type OrderDiscount = {
666
710
  client_id: string;
667
- branch_id?: string;
711
+ branch_id: string;
668
712
  discount_id?: string;
669
713
  is_percentage?: boolean;
670
714
  amount?: number;
@@ -680,6 +724,8 @@ export declare type OrderDiscount = {
680
724
  promo_code?: string;
681
725
  auto_apply?: boolean;
682
726
  discount_name?: string;
727
+ allowed_once?: boolean;
728
+ maxUsagePerCustomer?: number;
683
729
  };
684
730
  export declare type OrderDelivery = {
685
731
  client_id: string;
@@ -972,8 +1018,68 @@ export declare type Terminal = {
972
1018
  previous_invoice_hash?: string;
973
1019
  tid_terminal_id?: string;
974
1020
  tid_terminal_name?: string;
1021
+ tid_internal_device?: boolean;
1022
+ tid_jwt?: string;
975
1023
  terminal_ip?: string;
1024
+ deviceState?: DeviceState | null;
1025
+ support_terminal?: boolean;
976
1026
  support_terminal_created_at?: TimestampType | Date | null;
1027
+ cfs_nfc_position?: UIPosition;
1028
+ };
1029
+ export declare type Vendor = {
1030
+ lyve_pickup_number?: string;
1031
+ approved: boolean;
1032
+ isTest?: boolean;
1033
+ ownerEmail?: string;
1034
+ id?: string;
1035
+ VAT?: number;
1036
+ address?: string;
1037
+ categoryID?: string;
1038
+ createdAt: TimestampType | Date;
1039
+ currency?: {
1040
+ [key: string]: string;
1041
+ };
1042
+ description?: string;
1043
+ filters?: {
1044
+ [key: string]: boolean;
1045
+ };
1046
+ location?: string;
1047
+ latitude: number;
1048
+ locationHash?: string;
1049
+ longitude: number;
1050
+ lw_branch_id?: string;
1051
+ lw_client_id?: string;
1052
+ photo?: string;
1053
+ reviewsCount?: number;
1054
+ reviewsSum?: number;
1055
+ title_lan_p: string;
1056
+ title_lan_s: string;
1057
+ phoneNumber?: string;
1058
+ countryCode?: string;
1059
+ deliveryRadius?: number;
1060
+ backgroundPhoto?: string;
1061
+ iban?: string;
1062
+ description_lan_p?: string;
1063
+ description_lan_s?: string;
1064
+ isReceivingOrders?: boolean;
1065
+ store_url?: string;
1066
+ approvedEmailSent?: boolean;
1067
+ showInApp?: boolean;
1068
+ paymentMethods?: ('CASH_ON_DELIVERY' | 'ONLINE' | string)[];
1069
+ _geo?: {
1070
+ lat: number;
1071
+ lng: number;
1072
+ };
1073
+ destination_id?: string;
1074
+ integrations?: {
1075
+ key: 'PAYLINK' | 'TAP' | 'PAYTABS';
1076
+ isApproved: boolean;
1077
+ }[];
1078
+ instagramUrl?: string;
1079
+ twitterUrl?: string;
1080
+ facebookUrl?: string;
1081
+ linkedinUrl?: string;
1082
+ tiktokUrl?: string;
977
1083
  };
978
1084
  export declare enum UIPosition {
979
1085
  TOP_START = "TOP_START",
@@ -1037,6 +1143,10 @@ export declare type Tid = {
1037
1143
  cfs_nfc_position?: UIPosition;
1038
1144
  admin_pin?: string;
1039
1145
  pos_connection?: boolean;
1146
+ device?: any;
1147
+ merchant?: any;
1148
+ is_assigned_to_user?: boolean;
1149
+ is_connected?: boolean;
1040
1150
  };
1041
1151
  export declare type Item = {
1042
1152
  client_id: string;
@@ -1085,6 +1195,7 @@ export declare type Item = {
1085
1195
  tags?: LazyWaitAppTypes.ItemTag[];
1086
1196
  addons_ids?: string[];
1087
1197
  addons_groups_ids?: string[];
1198
+ favorite?: boolean;
1088
1199
  };
1089
1200
  export declare type ItemPrice = {
1090
1201
  client_id: string;
@@ -1327,6 +1438,7 @@ export declare type TimeBound = {
1327
1438
  valid_to?: Date | TimestampType | null;
1328
1439
  };
1329
1440
  export declare type Printer = {
1441
+ id?: string;
1330
1442
  client_id: string;
1331
1443
  branch_id: string;
1332
1444
  printer_id?: string;
@@ -1347,6 +1459,8 @@ export declare type Printer = {
1347
1459
  has_drawer?: boolean;
1348
1460
  printer_delay?: number;
1349
1461
  purpose?: PrinterPurpose[];
1462
+ print_server_ip?: string;
1463
+ print_server_token?: string;
1350
1464
  };
1351
1465
  export declare type StarDiscovery = {
1352
1466
  usb_serial_number: string;
@@ -1354,7 +1468,7 @@ export declare type StarDiscovery = {
1354
1468
  port_name: string;
1355
1469
  mac_address: string;
1356
1470
  };
1357
- export declare type PrinterPurpose = 'ITEMS_SLIPS' | 'INVOICES' | 'RECEIPTS' | 'CLOSING';
1471
+ export declare type PrinterPurpose = 'ITEMS_SLIPS' | 'INVOICES' | 'RECEIPTS' | 'CLOSING' | 'PRINT_SERVER';
1358
1472
  export declare type Role = {
1359
1473
  client_id?: string;
1360
1474
  role_id?: string;
@@ -1382,6 +1496,7 @@ export declare type Customer = {
1382
1496
  address?: Array<string>;
1383
1497
  last_four_digits?: string;
1384
1498
  discount_ids?: string[];
1499
+ data?: string;
1385
1500
  customer_street_name?: string;
1386
1501
  customer_building_number?: string;
1387
1502
  customer_city_name?: string;
@@ -1403,12 +1518,6 @@ export declare type InvoiceCustomer = {
1403
1518
  customer_cell?: string;
1404
1519
  customer_email?: string;
1405
1520
  customer_id?: string;
1406
- customer_tax_id?: string;
1407
- customer_street_name?: string;
1408
- customer_building_number?: string;
1409
- customer_city_name?: string;
1410
- customer_city_subdivision?: string;
1411
- customer_postal_zone?: string;
1412
1521
  country_code?: string;
1413
1522
  group_id?: string;
1414
1523
  group_name?: string;
@@ -1421,6 +1530,14 @@ export declare type InvoiceCustomer = {
1421
1530
  menu_item_ids?: string[];
1422
1531
  delivery_address?: string;
1423
1532
  otp_verified?: boolean;
1533
+ mithu_redeem?: MithuRedeem | null;
1534
+ customer_street_name?: string;
1535
+ customer_building_number?: string;
1536
+ customer_city_name?: string;
1537
+ customer_city_subdivision?: string;
1538
+ customer_postal_zone?: string;
1539
+ customer_address_country_code?: string;
1540
+ customer_tax_id?: string;
1424
1541
  };
1425
1542
  export declare type LoyaltyPoint = {
1426
1543
  client_id: string;
@@ -1487,6 +1604,7 @@ export declare type UniversalLicense = {
1487
1604
  subscription_state?: string;
1488
1605
  };
1489
1606
  export declare type PlanInfo = {
1607
+ plan_id: string;
1490
1608
  payment_date?: Date;
1491
1609
  discounts?: string;
1492
1610
  payment_amount?: string;
@@ -1566,6 +1684,26 @@ export declare type CashierOpening = {
1566
1684
  opening_start_cash?: number;
1567
1685
  opening_id?: string;
1568
1686
  };
1687
+ export declare type SQLTable = {
1688
+ table_name: string;
1689
+ type_name: string;
1690
+ collection_path: string;
1691
+ columns: SQLColumn[];
1692
+ await: boolean;
1693
+ where?: any[];
1694
+ orderBy?: any[];
1695
+ limit?: number;
1696
+ collection_group_table_name?: string;
1697
+ send_pos_updates?: boolean;
1698
+ };
1699
+ export declare type SQLColumn = {
1700
+ name: string;
1701
+ type: string;
1702
+ notnull: boolean;
1703
+ dflt_value: any;
1704
+ pk: boolean;
1705
+ idx: boolean;
1706
+ };
1569
1707
  export declare type DrawerOpening = {
1570
1708
  client_id: string;
1571
1709
  branch_id: string;
@@ -1634,6 +1772,7 @@ export declare type CashierClosing = {
1634
1772
  opening_drawer_cash_start?: number;
1635
1773
  opening_user_id?: string;
1636
1774
  opening_user_name?: string;
1775
+ opening_diff_reason?: string;
1637
1776
  sales?: (OrderPayment | CashMovement)[];
1638
1777
  closing_reason?: string;
1639
1778
  closing_online_per_type?: {
@@ -1704,10 +1843,14 @@ export declare type PrintQueue = {
1704
1843
  order_items?: PrintOrderItem[];
1705
1844
  closing?: CashierClosing;
1706
1845
  isCanceledItems?: boolean;
1707
- printer: Printer;
1708
1846
  isReprint?: boolean;
1709
1847
  uri?: string;
1710
1848
  kick?: boolean;
1849
+ branch?: Branch;
1850
+ terminal?: Terminal;
1851
+ printer?: Printer;
1852
+ fromSQLite?: boolean;
1853
+ originalSQLiteId?: string;
1711
1854
  };
1712
1855
  export declare type PrintJob = {
1713
1856
  id: string;
@@ -1853,6 +1996,50 @@ export declare type PrinterDiscover = {
1853
1996
  mac_address?: string;
1854
1997
  type?: 'system' | 'network' | 'bluetooth' | 'usb';
1855
1998
  };
1999
+ export declare type POSConfigs = {
2000
+ auto_sync_menu?: boolean;
2001
+ show_version_indicator?: boolean;
2002
+ };
2003
+ export declare type ReduxState = {
2004
+ Language: string;
2005
+ User: User | null;
2006
+ Client: Client | null;
2007
+ Branch: Branch | null;
2008
+ LoggedUser: POSUser | null;
2009
+ Terminal: Terminal | null;
2010
+ Order: {
2011
+ CurrentOrder: Order | null;
2012
+ OrderItems: OrderItem[];
2013
+ OrderCustomer: InvoiceCustomer | null;
2014
+ };
2015
+ Cashier: {
2016
+ AssetsPath: string;
2017
+ AddonsGroups: AddonGroup[];
2018
+ Addons: IndependentAddon[];
2019
+ Categories: Category[];
2020
+ Items: Item[];
2021
+ ActiveOrders: ActiveOrdersParams;
2022
+ PendingPaidOnlineOrders: Order[];
2023
+ Tables: Table[];
2024
+ OrdersFilters: any[];
2025
+ ActiveCategory: string;
2026
+ Configs: POSConfigs;
2027
+ };
2028
+ Stocks: {
2029
+ PricesStock: PricesStockParams;
2030
+ AddonsStock: AddonsStockParams;
2031
+ SourcesStock: SourcesStockParams;
2032
+ };
2033
+ NearPayResult: {
2034
+ balance?: number;
2035
+ generatedToken?: string;
2036
+ client_id?: string;
2037
+ card_cell?: string;
2038
+ country_code?: string;
2039
+ card_expiration?: string;
2040
+ mode?: string;
2041
+ };
2042
+ };
1856
2043
  export declare type Currency = {
1857
2044
  country: string;
1858
2045
  ar: string;
@@ -1876,11 +2063,16 @@ export declare type Preview = {
1876
2063
  order_item?: OrderItem;
1877
2064
  category?: Category;
1878
2065
  visible: boolean;
2066
+ maxQuantity?: number;
1879
2067
  };
1880
2068
  export declare type Post = {
1881
2069
  url: string;
1882
2070
  payload: any;
1883
2071
  };
2072
+ export declare type Put = {
2073
+ url: string;
2074
+ payload: any;
2075
+ };
1884
2076
  export declare type LWSupportTeam = {
1885
2077
  email?: string;
1886
2078
  cell?: string;
@@ -2196,6 +2388,7 @@ export declare type AndroidProps = {
2196
2388
  export declare type TerminalVersionAndPushID = {
2197
2389
  push_id?: string;
2198
2390
  version?: string;
2391
+ terminal_ip?: string;
2199
2392
  };
2200
2393
  export declare type PassMeOrderNotif = {
2201
2394
  client_id: string;
@@ -2288,6 +2481,7 @@ export declare type StoreSetupInfo = {
2288
2481
  owner_email: string;
2289
2482
  phone: string;
2290
2483
  sku: string;
2484
+ plan_id: string;
2291
2485
  isIaphub?: boolean;
2292
2486
  isHmsIap?: boolean;
2293
2487
  isPaymentSuccess?: boolean;
@@ -2340,7 +2534,7 @@ export declare type POSEmail = {
2340
2534
  client_name?: string;
2341
2535
  branch_id?: string;
2342
2536
  branch_name?: string;
2343
- platform?: 'ios' | 'android' | 'direct_payment';
2537
+ platform?: PlatformOSType | 'direct_payment';
2344
2538
  message?: string;
2345
2539
  payment_ref?: string;
2346
2540
  payment_amount?: number;
@@ -2454,9 +2648,11 @@ export declare type PrintOrder = {
2454
2648
  user_name: string;
2455
2649
  terminal_name: string;
2456
2650
  order_type: string;
2457
- order_pickup_date?: Date;
2651
+ people_count: Number;
2652
+ order_pickup_date?: TimestampType | Date;
2458
2653
  customer_name?: string;
2459
2654
  customer_cell?: string;
2655
+ customer_tax_id?: string;
2460
2656
  customer_reference?: string;
2461
2657
  order_taxes: PrintOrderItemTax[];
2462
2658
  order_discounts: PrintOrderDiscount[];
@@ -2499,9 +2695,9 @@ export declare type PrintOrderItemTax = {
2499
2695
  tax_id?: string;
2500
2696
  amount: number;
2501
2697
  isPercent: boolean;
2698
+ minimum_amount?: number;
2502
2699
  name_lan_p: string;
2503
2700
  name_lan_s: string;
2504
- minimum_amount?: number;
2505
2701
  };
2506
2702
  export declare type PrintOrderDiscount = {
2507
2703
  discount_id?: string;
@@ -2662,10 +2858,71 @@ export interface ReconciliationReceipt {
2662
2858
  currency: LocalizationField;
2663
2859
  qr_code: string;
2664
2860
  merchant: Merchant;
2665
- card_acceptor_terminal_id: string;
2861
+ card_acceptor_terminal_id?: string;
2666
2862
  system_trace_audit_number: string;
2667
2863
  pos_software_version_number: string;
2668
2864
  }
2865
+ export interface DeviceState {
2866
+ id: string;
2867
+ token: string;
2868
+ optedIn: boolean;
2869
+ }
2870
+ export declare type QueryType = 'SELECT' | 'INSERT' | 'UPDATE' | 'DELETE';
2871
+ export interface Condition {
2872
+ column?: string;
2873
+ value?: any;
2874
+ operator?: 'AND' | 'OR';
2875
+ comparison?: '=' | '>' | '>=' | '<' | '<=' | '<>' | 'LIKE' | 'IS NULL' | 'IS NOT NULL';
2876
+ group?: 'open' | 'close';
2877
+ }
2878
+ export interface QueryOptions {
2879
+ table: string;
2880
+ columns?: string[];
2881
+ values?: Record<string, any>;
2882
+ conditions?: Condition[];
2883
+ orderBy?: string;
2884
+ order?: 'ASC' | 'DESC';
2885
+ limit?: number;
2886
+ offset?: number;
2887
+ noCloud?: boolean;
2888
+ groupBy?: string;
2889
+ }
2890
+ 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';
2891
+ export declare type POSUpdate = {
2892
+ id?: string;
2893
+ collection_path: string;
2894
+ type: 'post' | 'put' | 'delete';
2895
+ timestamp: Date | TimestampType;
2896
+ table_name: SQLiteTable;
2897
+ };
2898
+ export declare type IntegrationDoc = {
2899
+ integrated: boolean;
2900
+ doc: any;
2901
+ };
2902
+ export declare type MithuRedeem = {
2903
+ type?: number;
2904
+ discount_amount?: string;
2905
+ is_percent?: boolean;
2906
+ customer_mobile_number?: string;
2907
+ mobile_country_code?: string;
2908
+ reward_code?: string;
2909
+ name?: string;
2910
+ merchant_id?: string;
2911
+ max_discount_amount?: string;
2912
+ };
2913
+ export declare type ImageUrl = {
2914
+ url?: string;
2915
+ id: string;
2916
+ };
2917
+ export declare type TerminalUpdateData = {
2918
+ client_id: string;
2919
+ terminal_updates: POSUpdate[];
2920
+ branch_id?: string;
2921
+ terminal_data?: {
2922
+ terminal_id: string;
2923
+ type: 'terminal' | 'tid';
2924
+ };
2925
+ };
2669
2926
  export interface Transaction {
2670
2927
  id: string;
2671
2928
  type: string;