lazywait-calcs 1.9.0 → 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.
@@ -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,53 @@ 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
+ show_invoice_number_of_products: boolean;
301
330
  };
302
331
  export declare type PaymentMethod = {
303
332
  name_lan_p: string | 'CASH' | 'DEBIT' | 'CREDIT';
@@ -372,7 +401,7 @@ export declare type Client = {
372
401
  cr_issue_date?: Date | TimestampType | null;
373
402
  cr_expire_date?: Date | TimestampType | null;
374
403
  cr?: string;
375
- had_trial?: Boolean;
404
+ had_trial?: boolean;
376
405
  is_test?: boolean;
377
406
  };
378
407
  export declare type OwnerInfo = {
@@ -411,6 +440,7 @@ export declare type Order = {
411
440
  customer_cell?: string;
412
441
  customer_name?: string;
413
442
  customer_email?: string;
443
+ customer_tax_id?: string;
414
444
  customer_id?: string;
415
445
  email?: string;
416
446
  order_items: OrderItem[];
@@ -430,10 +460,12 @@ export declare type Order = {
430
460
  area_id?: string;
431
461
  area_name?: string;
432
462
  order_type?: string;
463
+ order_pickup_date?: TimestampType | Date;
433
464
  source?: string;
434
465
  receipt?: string;
435
466
  isVoid: boolean;
436
467
  isPaid: boolean;
468
+ synced?: boolean;
437
469
  isRefund?: boolean;
438
470
  user_id?: string;
439
471
  user_name?: string;
@@ -457,7 +489,6 @@ export declare type Order = {
457
489
  tax_percentage?: number;
458
490
  change?: number;
459
491
  received_amount?: number;
460
- order_pickup_date?: Date;
461
492
  order_payments?: OrderPayment[];
462
493
  order_taxes: OrderTax[];
463
494
  order_discounts: OrderDiscount[];
@@ -511,6 +542,8 @@ export declare type Order = {
511
542
  previous_invoice_hash?: string;
512
543
  phase2?: boolean;
513
544
  zatca_invoice_uuid?: string;
545
+ title?: string;
546
+ odoo_invoice_id?: string;
514
547
  };
515
548
  export declare type OrderItem = {
516
549
  client_id: string;
@@ -556,6 +589,16 @@ export declare type OrderItem = {
556
589
  user_id?: string;
557
590
  user_name?: string;
558
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
+ };
559
602
  not_printed?: boolean;
560
603
  order_item_updated?: boolean;
561
604
  };
@@ -664,7 +707,7 @@ export declare type PrintedTax = {
664
707
  };
665
708
  export declare type OrderDiscount = {
666
709
  client_id: string;
667
- branch_id?: string;
710
+ branch_id: string;
668
711
  discount_id?: string;
669
712
  is_percentage?: boolean;
670
713
  amount?: number;
@@ -680,6 +723,8 @@ export declare type OrderDiscount = {
680
723
  promo_code?: string;
681
724
  auto_apply?: boolean;
682
725
  discount_name?: string;
726
+ allowed_once?: boolean;
727
+ maxUsagePerCustomer?: number;
683
728
  };
684
729
  export declare type OrderDelivery = {
685
730
  client_id: string;
@@ -972,8 +1017,68 @@ export declare type Terminal = {
972
1017
  previous_invoice_hash?: string;
973
1018
  tid_terminal_id?: string;
974
1019
  tid_terminal_name?: string;
1020
+ tid_internal_device?: boolean;
1021
+ tid_jwt?: string;
975
1022
  terminal_ip?: string;
1023
+ deviceState?: DeviceState | null;
1024
+ support_terminal?: boolean;
976
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;
977
1082
  };
978
1083
  export declare enum UIPosition {
979
1084
  TOP_START = "TOP_START",
@@ -1037,6 +1142,10 @@ export declare type Tid = {
1037
1142
  cfs_nfc_position?: UIPosition;
1038
1143
  admin_pin?: string;
1039
1144
  pos_connection?: boolean;
1145
+ device?: any;
1146
+ merchant?: any;
1147
+ is_assigned_to_user?: boolean;
1148
+ is_connected?: boolean;
1040
1149
  };
1041
1150
  export declare type Item = {
1042
1151
  client_id: string;
@@ -1085,6 +1194,7 @@ export declare type Item = {
1085
1194
  tags?: LazyWaitAppTypes.ItemTag[];
1086
1195
  addons_ids?: string[];
1087
1196
  addons_groups_ids?: string[];
1197
+ favorite?: boolean;
1088
1198
  };
1089
1199
  export declare type ItemPrice = {
1090
1200
  client_id: string;
@@ -1327,6 +1437,7 @@ export declare type TimeBound = {
1327
1437
  valid_to?: Date | TimestampType | null;
1328
1438
  };
1329
1439
  export declare type Printer = {
1440
+ id?: string;
1330
1441
  client_id: string;
1331
1442
  branch_id: string;
1332
1443
  printer_id?: string;
@@ -1347,6 +1458,8 @@ export declare type Printer = {
1347
1458
  has_drawer?: boolean;
1348
1459
  printer_delay?: number;
1349
1460
  purpose?: PrinterPurpose[];
1461
+ print_server_ip?: string;
1462
+ print_server_token?: string;
1350
1463
  };
1351
1464
  export declare type StarDiscovery = {
1352
1465
  usb_serial_number: string;
@@ -1354,7 +1467,7 @@ export declare type StarDiscovery = {
1354
1467
  port_name: string;
1355
1468
  mac_address: string;
1356
1469
  };
1357
- export declare type PrinterPurpose = 'ITEMS_SLIPS' | 'INVOICES' | 'RECEIPTS' | 'CLOSING';
1470
+ export declare type PrinterPurpose = 'ITEMS_SLIPS' | 'INVOICES' | 'RECEIPTS' | 'CLOSING' | 'PRINT_SERVER';
1358
1471
  export declare type Role = {
1359
1472
  client_id?: string;
1360
1473
  role_id?: string;
@@ -1382,6 +1495,7 @@ export declare type Customer = {
1382
1495
  address?: Array<string>;
1383
1496
  last_four_digits?: string;
1384
1497
  discount_ids?: string[];
1498
+ data?: string;
1385
1499
  customer_street_name?: string;
1386
1500
  customer_building_number?: string;
1387
1501
  customer_city_name?: string;
@@ -1403,12 +1517,6 @@ export declare type InvoiceCustomer = {
1403
1517
  customer_cell?: string;
1404
1518
  customer_email?: string;
1405
1519
  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
1520
  country_code?: string;
1413
1521
  group_id?: string;
1414
1522
  group_name?: string;
@@ -1421,6 +1529,14 @@ export declare type InvoiceCustomer = {
1421
1529
  menu_item_ids?: string[];
1422
1530
  delivery_address?: string;
1423
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;
1424
1540
  };
1425
1541
  export declare type LoyaltyPoint = {
1426
1542
  client_id: string;
@@ -1487,6 +1603,7 @@ export declare type UniversalLicense = {
1487
1603
  subscription_state?: string;
1488
1604
  };
1489
1605
  export declare type PlanInfo = {
1606
+ plan_id: string;
1490
1607
  payment_date?: Date;
1491
1608
  discounts?: string;
1492
1609
  payment_amount?: string;
@@ -1566,6 +1683,26 @@ export declare type CashierOpening = {
1566
1683
  opening_start_cash?: number;
1567
1684
  opening_id?: string;
1568
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
+ };
1569
1706
  export declare type DrawerOpening = {
1570
1707
  client_id: string;
1571
1708
  branch_id: string;
@@ -1634,6 +1771,7 @@ export declare type CashierClosing = {
1634
1771
  opening_drawer_cash_start?: number;
1635
1772
  opening_user_id?: string;
1636
1773
  opening_user_name?: string;
1774
+ opening_diff_reason?: string;
1637
1775
  sales?: (OrderPayment | CashMovement)[];
1638
1776
  closing_reason?: string;
1639
1777
  closing_online_per_type?: {
@@ -1704,10 +1842,14 @@ export declare type PrintQueue = {
1704
1842
  order_items?: PrintOrderItem[];
1705
1843
  closing?: CashierClosing;
1706
1844
  isCanceledItems?: boolean;
1707
- printer: Printer;
1708
1845
  isReprint?: boolean;
1709
1846
  uri?: string;
1710
1847
  kick?: boolean;
1848
+ branch?: Branch;
1849
+ terminal?: Terminal;
1850
+ printer?: Printer;
1851
+ fromSQLite?: boolean;
1852
+ originalSQLiteId?: string;
1711
1853
  };
1712
1854
  export declare type PrintJob = {
1713
1855
  id: string;
@@ -1853,6 +1995,50 @@ export declare type PrinterDiscover = {
1853
1995
  mac_address?: string;
1854
1996
  type?: 'system' | 'network' | 'bluetooth' | 'usb';
1855
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
+ };
1856
2042
  export declare type Currency = {
1857
2043
  country: string;
1858
2044
  ar: string;
@@ -1876,11 +2062,16 @@ export declare type Preview = {
1876
2062
  order_item?: OrderItem;
1877
2063
  category?: Category;
1878
2064
  visible: boolean;
2065
+ maxQuantity?: number;
1879
2066
  };
1880
2067
  export declare type Post = {
1881
2068
  url: string;
1882
2069
  payload: any;
1883
2070
  };
2071
+ export declare type Put = {
2072
+ url: string;
2073
+ payload: any;
2074
+ };
1884
2075
  export declare type LWSupportTeam = {
1885
2076
  email?: string;
1886
2077
  cell?: string;
@@ -2196,6 +2387,7 @@ export declare type AndroidProps = {
2196
2387
  export declare type TerminalVersionAndPushID = {
2197
2388
  push_id?: string;
2198
2389
  version?: string;
2390
+ terminal_ip?: string;
2199
2391
  };
2200
2392
  export declare type PassMeOrderNotif = {
2201
2393
  client_id: string;
@@ -2288,6 +2480,7 @@ export declare type StoreSetupInfo = {
2288
2480
  owner_email: string;
2289
2481
  phone: string;
2290
2482
  sku: string;
2483
+ plan_id: string;
2291
2484
  isIaphub?: boolean;
2292
2485
  isHmsIap?: boolean;
2293
2486
  isPaymentSuccess?: boolean;
@@ -2340,7 +2533,7 @@ export declare type POSEmail = {
2340
2533
  client_name?: string;
2341
2534
  branch_id?: string;
2342
2535
  branch_name?: string;
2343
- platform?: 'ios' | 'android' | 'direct_payment';
2536
+ platform?: PlatformOSType | 'direct_payment';
2344
2537
  message?: string;
2345
2538
  payment_ref?: string;
2346
2539
  payment_amount?: number;
@@ -2454,9 +2647,11 @@ export declare type PrintOrder = {
2454
2647
  user_name: string;
2455
2648
  terminal_name: string;
2456
2649
  order_type: string;
2457
- order_pickup_date?: Date;
2650
+ people_count: Number;
2651
+ order_pickup_date?: TimestampType | Date;
2458
2652
  customer_name?: string;
2459
2653
  customer_cell?: string;
2654
+ customer_tax_id?: string;
2460
2655
  customer_reference?: string;
2461
2656
  order_taxes: PrintOrderItemTax[];
2462
2657
  order_discounts: PrintOrderDiscount[];
@@ -2499,9 +2694,9 @@ export declare type PrintOrderItemTax = {
2499
2694
  tax_id?: string;
2500
2695
  amount: number;
2501
2696
  isPercent: boolean;
2697
+ minimum_amount?: number;
2502
2698
  name_lan_p: string;
2503
2699
  name_lan_s: string;
2504
- minimum_amount?: number;
2505
2700
  };
2506
2701
  export declare type PrintOrderDiscount = {
2507
2702
  discount_id?: string;
@@ -2662,10 +2857,71 @@ export interface ReconciliationReceipt {
2662
2857
  currency: LocalizationField;
2663
2858
  qr_code: string;
2664
2859
  merchant: Merchant;
2665
- card_acceptor_terminal_id: string;
2860
+ card_acceptor_terminal_id?: string;
2666
2861
  system_trace_audit_number: string;
2667
2862
  pos_software_version_number: string;
2668
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
+ };
2669
2925
  export interface Transaction {
2670
2926
  id: string;
2671
2927
  type: string;