@horpynka/api-sdk 1.0.12 → 1.0.14
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/dist/index.cjs +552 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +614 -5
- package/dist/index.d.ts +614 -5
- package/dist/index.js +547 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -133,6 +133,84 @@ interface AccessTokenResponseDto {
|
|
|
133
133
|
*/
|
|
134
134
|
'accessToken': string;
|
|
135
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @export
|
|
139
|
+
* @interface CashShiftDto
|
|
140
|
+
*/
|
|
141
|
+
interface CashShiftDto {
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof CashShiftDto
|
|
146
|
+
*/
|
|
147
|
+
'id': number;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof CashShiftDto
|
|
152
|
+
*/
|
|
153
|
+
'openedAt': string;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof CashShiftDto
|
|
158
|
+
*/
|
|
159
|
+
'closedAt': string | null;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {number}
|
|
163
|
+
* @memberof CashShiftDto
|
|
164
|
+
*/
|
|
165
|
+
'openingBalance': number;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @type {number}
|
|
169
|
+
* @memberof CashShiftDto
|
|
170
|
+
*/
|
|
171
|
+
'cashSales': number;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @type {number}
|
|
175
|
+
* @memberof CashShiftDto
|
|
176
|
+
*/
|
|
177
|
+
'cardSales': number;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {number}
|
|
181
|
+
* @memberof CashShiftDto
|
|
182
|
+
*/
|
|
183
|
+
'refunds': number;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {number}
|
|
187
|
+
* @memberof CashShiftDto
|
|
188
|
+
*/
|
|
189
|
+
'closingBalance': number;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {number}
|
|
193
|
+
* @memberof CashShiftDto
|
|
194
|
+
*/
|
|
195
|
+
'ordersCount': number;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {string}
|
|
199
|
+
* @memberof CashShiftDto
|
|
200
|
+
*/
|
|
201
|
+
'status': CashShiftDtoStatusEnum;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {string}
|
|
205
|
+
* @memberof CashShiftDto
|
|
206
|
+
*/
|
|
207
|
+
'cashierName': string;
|
|
208
|
+
}
|
|
209
|
+
declare const CashShiftDtoStatusEnum: {
|
|
210
|
+
readonly Open: "OPEN";
|
|
211
|
+
readonly Closed: "CLOSED";
|
|
212
|
+
};
|
|
213
|
+
type CashShiftDtoStatusEnum = typeof CashShiftDtoStatusEnum[keyof typeof CashShiftDtoStatusEnum];
|
|
136
214
|
/**
|
|
137
215
|
*
|
|
138
216
|
* @export
|
|
@@ -216,6 +294,79 @@ declare const CreateOrderDtoStatusEnum: {
|
|
|
216
294
|
readonly Completed: "COMPLETED";
|
|
217
295
|
};
|
|
218
296
|
type CreateOrderDtoStatusEnum = typeof CreateOrderDtoStatusEnum[keyof typeof CreateOrderDtoStatusEnum];
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @export
|
|
300
|
+
* @interface DashboardStatsDto
|
|
301
|
+
*/
|
|
302
|
+
interface DashboardStatsDto {
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {number}
|
|
306
|
+
* @memberof DashboardStatsDto
|
|
307
|
+
*/
|
|
308
|
+
'todaySales': number;
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {number}
|
|
312
|
+
* @memberof DashboardStatsDto
|
|
313
|
+
*/
|
|
314
|
+
'ordersCount': number;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {number}
|
|
318
|
+
* @memberof DashboardStatsDto
|
|
319
|
+
*/
|
|
320
|
+
'openOrders': number;
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @type {number}
|
|
324
|
+
* @memberof DashboardStatsDto
|
|
325
|
+
*/
|
|
326
|
+
'closedOrders': number;
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @type {number}
|
|
330
|
+
* @memberof DashboardStatsDto
|
|
331
|
+
*/
|
|
332
|
+
'cashSales': number;
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @type {number}
|
|
336
|
+
* @memberof DashboardStatsDto
|
|
337
|
+
*/
|
|
338
|
+
'cardSales': number;
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @type {number}
|
|
342
|
+
* @memberof DashboardStatsDto
|
|
343
|
+
*/
|
|
344
|
+
'refunds': number;
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
* @type {number}
|
|
348
|
+
* @memberof DashboardStatsDto
|
|
349
|
+
*/
|
|
350
|
+
'averageOrder': number;
|
|
351
|
+
/**
|
|
352
|
+
*
|
|
353
|
+
* @type {CashShiftDto}
|
|
354
|
+
* @memberof DashboardStatsDto
|
|
355
|
+
*/
|
|
356
|
+
'currentShift': CashShiftDto | null;
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @type {Array<SalesByDayDto>}
|
|
360
|
+
* @memberof DashboardStatsDto
|
|
361
|
+
*/
|
|
362
|
+
'salesByDay': Array<SalesByDayDto>;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* @type {Array<PaymentSplitDto>}
|
|
366
|
+
* @memberof DashboardStatsDto
|
|
367
|
+
*/
|
|
368
|
+
'paymentSplit': Array<PaymentSplitDto>;
|
|
369
|
+
}
|
|
219
370
|
/**
|
|
220
371
|
*
|
|
221
372
|
* @export
|
|
@@ -320,6 +471,25 @@ interface DishIngredient {
|
|
|
320
471
|
*/
|
|
321
472
|
'ingredient': Ingredient;
|
|
322
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @export
|
|
477
|
+
* @interface FindAllCategoriesResponseDto
|
|
478
|
+
*/
|
|
479
|
+
interface FindAllCategoriesResponseDto {
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @type {Array<Category>}
|
|
483
|
+
* @memberof FindAllCategoriesResponseDto
|
|
484
|
+
*/
|
|
485
|
+
'dishesCategories': Array<Category>;
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {Array<Category>}
|
|
489
|
+
* @memberof FindAllCategoriesResponseDto
|
|
490
|
+
*/
|
|
491
|
+
'productsCategories': Array<Category>;
|
|
492
|
+
}
|
|
323
493
|
/**
|
|
324
494
|
*
|
|
325
495
|
* @export
|
|
@@ -351,6 +521,164 @@ interface Ingredient {
|
|
|
351
521
|
*/
|
|
352
522
|
'dishIngredients': Array<DishIngredient>;
|
|
353
523
|
}
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @export
|
|
527
|
+
* @interface InventoryDto
|
|
528
|
+
*/
|
|
529
|
+
interface InventoryDto {
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @type {number}
|
|
533
|
+
* @memberof InventoryDto
|
|
534
|
+
*/
|
|
535
|
+
'id': number;
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @type {string}
|
|
539
|
+
* @memberof InventoryDto
|
|
540
|
+
*/
|
|
541
|
+
'createdAt': string;
|
|
542
|
+
/**
|
|
543
|
+
*
|
|
544
|
+
* @type {string}
|
|
545
|
+
* @memberof InventoryDto
|
|
546
|
+
*/
|
|
547
|
+
'finishedAt': string | null;
|
|
548
|
+
/**
|
|
549
|
+
*
|
|
550
|
+
* @type {string}
|
|
551
|
+
* @memberof InventoryDto
|
|
552
|
+
*/
|
|
553
|
+
'status': InventoryDtoStatusEnum;
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
* @type {string}
|
|
557
|
+
* @memberof InventoryDto
|
|
558
|
+
*/
|
|
559
|
+
'responsible': string;
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* @type {Array<InventoryItemDto>}
|
|
563
|
+
* @memberof InventoryDto
|
|
564
|
+
*/
|
|
565
|
+
'items': Array<InventoryItemDto>;
|
|
566
|
+
}
|
|
567
|
+
declare const InventoryDtoStatusEnum: {
|
|
568
|
+
readonly Completed: "COMPLETED";
|
|
569
|
+
readonly WithDifferences: "WITH_DIFFERENCES";
|
|
570
|
+
readonly InProgress: "IN_PROGRESS";
|
|
571
|
+
};
|
|
572
|
+
type InventoryDtoStatusEnum = typeof InventoryDtoStatusEnum[keyof typeof InventoryDtoStatusEnum];
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @export
|
|
576
|
+
* @interface InventoryItemDto
|
|
577
|
+
*/
|
|
578
|
+
interface InventoryItemDto {
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @type {number}
|
|
582
|
+
* @memberof InventoryItemDto
|
|
583
|
+
*/
|
|
584
|
+
'id': number;
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @type {string}
|
|
588
|
+
* @memberof InventoryItemDto
|
|
589
|
+
*/
|
|
590
|
+
'name': string;
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof InventoryItemDto
|
|
595
|
+
*/
|
|
596
|
+
'measurementUnit': InventoryItemDtoMeasurementUnitEnum;
|
|
597
|
+
/**
|
|
598
|
+
*
|
|
599
|
+
* @type {number}
|
|
600
|
+
* @memberof InventoryItemDto
|
|
601
|
+
*/
|
|
602
|
+
'expectedQuantity': number;
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @type {number}
|
|
606
|
+
* @memberof InventoryItemDto
|
|
607
|
+
*/
|
|
608
|
+
'actualQuantity': number;
|
|
609
|
+
}
|
|
610
|
+
declare const InventoryItemDtoMeasurementUnitEnum: {
|
|
611
|
+
readonly G: "g";
|
|
612
|
+
readonly Ml: "ml";
|
|
613
|
+
readonly Pcs: "pcs";
|
|
614
|
+
};
|
|
615
|
+
type InventoryItemDtoMeasurementUnitEnum = typeof InventoryItemDtoMeasurementUnitEnum[keyof typeof InventoryItemDtoMeasurementUnitEnum];
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @export
|
|
619
|
+
* @interface MenuItemDto
|
|
620
|
+
*/
|
|
621
|
+
interface MenuItemDto {
|
|
622
|
+
/**
|
|
623
|
+
*
|
|
624
|
+
* @type {string}
|
|
625
|
+
* @memberof MenuItemDto
|
|
626
|
+
*/
|
|
627
|
+
'id': string;
|
|
628
|
+
/**
|
|
629
|
+
*
|
|
630
|
+
* @type {string}
|
|
631
|
+
* @memberof MenuItemDto
|
|
632
|
+
*/
|
|
633
|
+
'kind': MenuItemDtoKindEnum;
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @type {number}
|
|
637
|
+
* @memberof MenuItemDto
|
|
638
|
+
*/
|
|
639
|
+
'entityId': number;
|
|
640
|
+
/**
|
|
641
|
+
*
|
|
642
|
+
* @type {string}
|
|
643
|
+
* @memberof MenuItemDto
|
|
644
|
+
*/
|
|
645
|
+
'name': string;
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @type {number}
|
|
649
|
+
* @memberof MenuItemDto
|
|
650
|
+
*/
|
|
651
|
+
'categoryId': number | null;
|
|
652
|
+
/**
|
|
653
|
+
*
|
|
654
|
+
* @type {number}
|
|
655
|
+
* @memberof MenuItemDto
|
|
656
|
+
*/
|
|
657
|
+
'sellingPrice': number;
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @type {number}
|
|
661
|
+
* @memberof MenuItemDto
|
|
662
|
+
*/
|
|
663
|
+
'ownPrice': number;
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @type {boolean}
|
|
667
|
+
* @memberof MenuItemDto
|
|
668
|
+
*/
|
|
669
|
+
'selling': boolean;
|
|
670
|
+
/**
|
|
671
|
+
*
|
|
672
|
+
* @type {string}
|
|
673
|
+
* @memberof MenuItemDto
|
|
674
|
+
*/
|
|
675
|
+
'updatedAt': string;
|
|
676
|
+
}
|
|
677
|
+
declare const MenuItemDtoKindEnum: {
|
|
678
|
+
readonly Dish: "DISH";
|
|
679
|
+
readonly Product: "PRODUCT";
|
|
680
|
+
};
|
|
681
|
+
type MenuItemDtoKindEnum = typeof MenuItemDtoKindEnum[keyof typeof MenuItemDtoKindEnum];
|
|
354
682
|
/**
|
|
355
683
|
*
|
|
356
684
|
* @export
|
|
@@ -494,6 +822,25 @@ interface OrderItem {
|
|
|
494
822
|
*/
|
|
495
823
|
'order': Order;
|
|
496
824
|
}
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
* @export
|
|
828
|
+
* @interface PaymentSplitDto
|
|
829
|
+
*/
|
|
830
|
+
interface PaymentSplitDto {
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @type {string}
|
|
834
|
+
* @memberof PaymentSplitDto
|
|
835
|
+
*/
|
|
836
|
+
'name': string;
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* @type {number}
|
|
840
|
+
* @memberof PaymentSplitDto
|
|
841
|
+
*/
|
|
842
|
+
'value': number;
|
|
843
|
+
}
|
|
497
844
|
/**
|
|
498
845
|
*
|
|
499
846
|
* @export
|
|
@@ -555,6 +902,31 @@ interface Product {
|
|
|
555
902
|
*/
|
|
556
903
|
'updatedAt': string;
|
|
557
904
|
}
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* @export
|
|
908
|
+
* @interface SalesByDayDto
|
|
909
|
+
*/
|
|
910
|
+
interface SalesByDayDto {
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
* @type {string}
|
|
914
|
+
* @memberof SalesByDayDto
|
|
915
|
+
*/
|
|
916
|
+
'date': string;
|
|
917
|
+
/**
|
|
918
|
+
*
|
|
919
|
+
* @type {number}
|
|
920
|
+
* @memberof SalesByDayDto
|
|
921
|
+
*/
|
|
922
|
+
'sales': number;
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @type {number}
|
|
926
|
+
* @memberof SalesByDayDto
|
|
927
|
+
*/
|
|
928
|
+
'orders': number;
|
|
929
|
+
}
|
|
558
930
|
/**
|
|
559
931
|
*
|
|
560
932
|
* @export
|
|
@@ -606,6 +978,78 @@ interface SignUpUserDTO {
|
|
|
606
978
|
*/
|
|
607
979
|
'password': string;
|
|
608
980
|
}
|
|
981
|
+
/**
|
|
982
|
+
*
|
|
983
|
+
* @export
|
|
984
|
+
* @interface TransactionDto
|
|
985
|
+
*/
|
|
986
|
+
interface TransactionDto {
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* @type {string}
|
|
990
|
+
* @memberof TransactionDto
|
|
991
|
+
*/
|
|
992
|
+
'id': string;
|
|
993
|
+
/**
|
|
994
|
+
*
|
|
995
|
+
* @type {number}
|
|
996
|
+
* @memberof TransactionDto
|
|
997
|
+
*/
|
|
998
|
+
'orderId': number;
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @type {string}
|
|
1002
|
+
* @memberof TransactionDto
|
|
1003
|
+
*/
|
|
1004
|
+
'createdAt': string;
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @type {string}
|
|
1008
|
+
* @memberof TransactionDto
|
|
1009
|
+
*/
|
|
1010
|
+
'kind': TransactionDtoKindEnum;
|
|
1011
|
+
/**
|
|
1012
|
+
*
|
|
1013
|
+
* @type {string}
|
|
1014
|
+
* @memberof TransactionDto
|
|
1015
|
+
*/
|
|
1016
|
+
'paymentMethod': TransactionDtoPaymentMethodEnum;
|
|
1017
|
+
/**
|
|
1018
|
+
*
|
|
1019
|
+
* @type {number}
|
|
1020
|
+
* @memberof TransactionDto
|
|
1021
|
+
*/
|
|
1022
|
+
'amount': number;
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @type {number}
|
|
1026
|
+
* @memberof TransactionDto
|
|
1027
|
+
*/
|
|
1028
|
+
'refundedAmount': number;
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @type {string}
|
|
1032
|
+
* @memberof TransactionDto
|
|
1033
|
+
*/
|
|
1034
|
+
'orderStatus': TransactionDtoOrderStatusEnum;
|
|
1035
|
+
}
|
|
1036
|
+
declare const TransactionDtoKindEnum: {
|
|
1037
|
+
readonly Sale: "SALE";
|
|
1038
|
+
readonly Refund: "REFUND";
|
|
1039
|
+
};
|
|
1040
|
+
type TransactionDtoKindEnum = typeof TransactionDtoKindEnum[keyof typeof TransactionDtoKindEnum];
|
|
1041
|
+
declare const TransactionDtoPaymentMethodEnum: {
|
|
1042
|
+
readonly Cash: "CASH";
|
|
1043
|
+
readonly Card: "CARD";
|
|
1044
|
+
readonly Mixed: "MIXED";
|
|
1045
|
+
};
|
|
1046
|
+
type TransactionDtoPaymentMethodEnum = typeof TransactionDtoPaymentMethodEnum[keyof typeof TransactionDtoPaymentMethodEnum];
|
|
1047
|
+
declare const TransactionDtoOrderStatusEnum: {
|
|
1048
|
+
readonly Paid: "PAID";
|
|
1049
|
+
readonly Refunded: "REFUNDED";
|
|
1050
|
+
readonly Closed: "CLOSED";
|
|
1051
|
+
};
|
|
1052
|
+
type TransactionDtoOrderStatusEnum = typeof TransactionDtoOrderStatusEnum[keyof typeof TransactionDtoOrderStatusEnum];
|
|
609
1053
|
/**
|
|
610
1054
|
*
|
|
611
1055
|
* @export
|
|
@@ -696,6 +1140,29 @@ declare class AuthApi extends BaseAPI {
|
|
|
696
1140
|
*/
|
|
697
1141
|
signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<AccessTokenResponseDto, any, {}, any>>;
|
|
698
1142
|
}
|
|
1143
|
+
/**
|
|
1144
|
+
* CashShiftsApi - object-oriented interface
|
|
1145
|
+
* @export
|
|
1146
|
+
* @class CashShiftsApi
|
|
1147
|
+
* @extends {BaseAPI}
|
|
1148
|
+
*/
|
|
1149
|
+
declare class CashShiftsApi extends BaseAPI {
|
|
1150
|
+
/**
|
|
1151
|
+
*
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
* @memberof CashShiftsApi
|
|
1155
|
+
*/
|
|
1156
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<CashShiftDto[], any, {}, any>>;
|
|
1157
|
+
/**
|
|
1158
|
+
*
|
|
1159
|
+
* @param {number} id
|
|
1160
|
+
* @param {*} [options] Override http request option.
|
|
1161
|
+
* @throws {RequiredError}
|
|
1162
|
+
* @memberof CashShiftsApi
|
|
1163
|
+
*/
|
|
1164
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<CashShiftDto, any, {}, any>>;
|
|
1165
|
+
}
|
|
699
1166
|
/**
|
|
700
1167
|
* CategoriesApi - object-oriented interface
|
|
701
1168
|
* @export
|
|
@@ -709,7 +1176,7 @@ declare class CategoriesApi extends BaseAPI {
|
|
|
709
1176
|
* @throws {RequiredError}
|
|
710
1177
|
* @memberof CategoriesApi
|
|
711
1178
|
*/
|
|
712
|
-
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<
|
|
1179
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<FindAllCategoriesResponseDto, any, {}, any>>;
|
|
713
1180
|
/**
|
|
714
1181
|
*
|
|
715
1182
|
* @param {number} id
|
|
@@ -719,6 +1186,21 @@ declare class CategoriesApi extends BaseAPI {
|
|
|
719
1186
|
*/
|
|
720
1187
|
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Category, any, {}, any>>;
|
|
721
1188
|
}
|
|
1189
|
+
/**
|
|
1190
|
+
* DashboardApi - object-oriented interface
|
|
1191
|
+
* @export
|
|
1192
|
+
* @class DashboardApi
|
|
1193
|
+
* @extends {BaseAPI}
|
|
1194
|
+
*/
|
|
1195
|
+
declare class DashboardApi extends BaseAPI {
|
|
1196
|
+
/**
|
|
1197
|
+
*
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @throws {RequiredError}
|
|
1200
|
+
* @memberof DashboardApi
|
|
1201
|
+
*/
|
|
1202
|
+
getStats(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<DashboardStatsDto, any, {}, any>>;
|
|
1203
|
+
}
|
|
722
1204
|
/**
|
|
723
1205
|
* DishesApi - object-oriented interface
|
|
724
1206
|
* @export
|
|
@@ -742,6 +1224,67 @@ declare class DishesApi extends BaseAPI {
|
|
|
742
1224
|
*/
|
|
743
1225
|
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Dish, any, {}, any>>;
|
|
744
1226
|
}
|
|
1227
|
+
/**
|
|
1228
|
+
* IngredientsApi - object-oriented interface
|
|
1229
|
+
* @export
|
|
1230
|
+
* @class IngredientsApi
|
|
1231
|
+
* @extends {BaseAPI}
|
|
1232
|
+
*/
|
|
1233
|
+
declare class IngredientsApi extends BaseAPI {
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
* @memberof IngredientsApi
|
|
1239
|
+
*/
|
|
1240
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Ingredient[], any, {}, any>>;
|
|
1241
|
+
/**
|
|
1242
|
+
*
|
|
1243
|
+
* @param {number} id
|
|
1244
|
+
* @param {*} [options] Override http request option.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
* @memberof IngredientsApi
|
|
1247
|
+
*/
|
|
1248
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Ingredient, any, {}, any>>;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* InventoryApi - object-oriented interface
|
|
1252
|
+
* @export
|
|
1253
|
+
* @class InventoryApi
|
|
1254
|
+
* @extends {BaseAPI}
|
|
1255
|
+
*/
|
|
1256
|
+
declare class InventoryApi extends BaseAPI {
|
|
1257
|
+
/**
|
|
1258
|
+
*
|
|
1259
|
+
* @param {*} [options] Override http request option.
|
|
1260
|
+
* @throws {RequiredError}
|
|
1261
|
+
* @memberof InventoryApi
|
|
1262
|
+
*/
|
|
1263
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<InventoryDto[], any, {}, any>>;
|
|
1264
|
+
/**
|
|
1265
|
+
*
|
|
1266
|
+
* @param {number} id
|
|
1267
|
+
* @param {*} [options] Override http request option.
|
|
1268
|
+
* @throws {RequiredError}
|
|
1269
|
+
* @memberof InventoryApi
|
|
1270
|
+
*/
|
|
1271
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<InventoryDto, any, {}, any>>;
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* MenuApi - object-oriented interface
|
|
1275
|
+
* @export
|
|
1276
|
+
* @class MenuApi
|
|
1277
|
+
* @extends {BaseAPI}
|
|
1278
|
+
*/
|
|
1279
|
+
declare class MenuApi extends BaseAPI {
|
|
1280
|
+
/**
|
|
1281
|
+
*
|
|
1282
|
+
* @param {*} [options] Override http request option.
|
|
1283
|
+
* @throws {RequiredError}
|
|
1284
|
+
* @memberof MenuApi
|
|
1285
|
+
*/
|
|
1286
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<MenuItemDto[], any, {}, any>>;
|
|
1287
|
+
}
|
|
745
1288
|
/**
|
|
746
1289
|
* OrdersApi - object-oriented interface
|
|
747
1290
|
* @export
|
|
@@ -816,13 +1359,34 @@ declare class ProductsApi extends BaseAPI {
|
|
|
816
1359
|
*/
|
|
817
1360
|
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Product, any, {}, any>>;
|
|
818
1361
|
}
|
|
1362
|
+
/**
|
|
1363
|
+
* TransactionsApi - object-oriented interface
|
|
1364
|
+
* @export
|
|
1365
|
+
* @class TransactionsApi
|
|
1366
|
+
* @extends {BaseAPI}
|
|
1367
|
+
*/
|
|
1368
|
+
declare class TransactionsApi extends BaseAPI {
|
|
1369
|
+
/**
|
|
1370
|
+
*
|
|
1371
|
+
* @param {*} [options] Override http request option.
|
|
1372
|
+
* @throws {RequiredError}
|
|
1373
|
+
* @memberof TransactionsApi
|
|
1374
|
+
*/
|
|
1375
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<TransactionDto[], any, {}, any>>;
|
|
1376
|
+
}
|
|
819
1377
|
|
|
820
1378
|
declare let tanstackClient: QueryClient;
|
|
821
1379
|
declare let authApi: AuthApi;
|
|
1380
|
+
declare let cashShiftsApi: CashShiftsApi;
|
|
822
1381
|
declare let categoriesApi: CategoriesApi;
|
|
1382
|
+
declare let dashboardApi: DashboardApi;
|
|
823
1383
|
declare let dishesApi: DishesApi;
|
|
1384
|
+
declare let ingredientsApi: IngredientsApi;
|
|
1385
|
+
declare let inventoryApi: InventoryApi;
|
|
1386
|
+
declare let menuApi: MenuApi;
|
|
824
1387
|
declare let ordersApi: OrdersApi;
|
|
825
1388
|
declare let productsApi: ProductsApi;
|
|
1389
|
+
declare let transactionsApi: TransactionsApi;
|
|
826
1390
|
declare function initApiClient(config: CreateAxiosDefaults): AxiosInstance;
|
|
827
1391
|
|
|
828
1392
|
declare const useAuthApi: () => {
|
|
@@ -843,10 +1407,25 @@ declare const useAuthApi: () => {
|
|
|
843
1407
|
}, unknown>;
|
|
844
1408
|
};
|
|
845
1409
|
|
|
1410
|
+
declare const useCashShiftsApi: () => {
|
|
1411
|
+
getCashShiftsQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<CashShiftDto[], Error, CashShiftDto[], string[]>, "queryFn"> & {
|
|
1412
|
+
queryFn?: _tanstack_query_core.QueryFunction<CashShiftDto[], string[], never> | undefined;
|
|
1413
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], CashShiftDto[], Error>;
|
|
1414
|
+
getCashShiftQuery: (id: number) => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<CashShiftDto, Error, CashShiftDto, (string | number)[]>, "queryFn"> & {
|
|
1415
|
+
queryFn?: _tanstack_query_core.QueryFunction<CashShiftDto, (string | number)[], never> | undefined;
|
|
1416
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<(string | number)[], CashShiftDto, Error>;
|
|
1417
|
+
};
|
|
1418
|
+
|
|
846
1419
|
declare const useCategoriesApi: () => {
|
|
847
|
-
getCategoriesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<
|
|
848
|
-
queryFn?: _tanstack_query_core.QueryFunction<
|
|
849
|
-
} & _tanstack_query_core.QueryKeyWithDataTag<string[],
|
|
1420
|
+
getCategoriesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<FindAllCategoriesResponseDto, Error, FindAllCategoriesResponseDto, string[]>, "queryFn"> & {
|
|
1421
|
+
queryFn?: _tanstack_query_core.QueryFunction<FindAllCategoriesResponseDto, string[], never> | undefined;
|
|
1422
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], FindAllCategoriesResponseDto, Error>;
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
declare const useDashboardApi: () => {
|
|
1426
|
+
getStatsQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<DashboardStatsDto, Error, DashboardStatsDto, string[]>, "queryFn"> & {
|
|
1427
|
+
queryFn?: _tanstack_query_core.QueryFunction<DashboardStatsDto, string[], never> | undefined;
|
|
1428
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], DashboardStatsDto, Error>;
|
|
850
1429
|
};
|
|
851
1430
|
|
|
852
1431
|
declare const useDishesApi: () => {
|
|
@@ -858,6 +1437,30 @@ declare const useDishesApi: () => {
|
|
|
858
1437
|
} & _tanstack_query_core.QueryKeyWithDataTag<(string | number)[], Dish, Error>;
|
|
859
1438
|
};
|
|
860
1439
|
|
|
1440
|
+
declare const useIngredientsApi: () => {
|
|
1441
|
+
getIngredientsQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<Ingredient[], Error, Ingredient[], string[]>, "queryFn"> & {
|
|
1442
|
+
queryFn?: _tanstack_query_core.QueryFunction<Ingredient[], string[], never> | undefined;
|
|
1443
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], Ingredient[], Error>;
|
|
1444
|
+
getIngredientQuery: (id: number) => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<Ingredient, Error, Ingredient, (string | number)[]>, "queryFn"> & {
|
|
1445
|
+
queryFn?: _tanstack_query_core.QueryFunction<Ingredient, (string | number)[], never> | undefined;
|
|
1446
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<(string | number)[], Ingredient, Error>;
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
declare const useInventoryApi: () => {
|
|
1450
|
+
getInventoriesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<InventoryDto[], Error, InventoryDto[], string[]>, "queryFn"> & {
|
|
1451
|
+
queryFn?: _tanstack_query_core.QueryFunction<InventoryDto[], string[], never> | undefined;
|
|
1452
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], InventoryDto[], Error>;
|
|
1453
|
+
getInventoryQuery: (id: number) => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<InventoryDto, Error, InventoryDto, (string | number)[]>, "queryFn"> & {
|
|
1454
|
+
queryFn?: _tanstack_query_core.QueryFunction<InventoryDto, (string | number)[], never> | undefined;
|
|
1455
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<(string | number)[], InventoryDto, Error>;
|
|
1456
|
+
};
|
|
1457
|
+
|
|
1458
|
+
declare const useMenuApi: () => {
|
|
1459
|
+
getMenuQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<MenuItemDto[], Error, MenuItemDto[], string[]>, "queryFn"> & {
|
|
1460
|
+
queryFn?: _tanstack_query_core.QueryFunction<MenuItemDto[], string[], never> | undefined;
|
|
1461
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], MenuItemDto[], Error>;
|
|
1462
|
+
};
|
|
1463
|
+
|
|
861
1464
|
declare const useOrdersApi: () => {
|
|
862
1465
|
getOrdersQuery: (params?: {
|
|
863
1466
|
page?: number;
|
|
@@ -908,4 +1511,10 @@ declare const useProductsApi: () => {
|
|
|
908
1511
|
} & _tanstack_query_core.QueryKeyWithDataTag<string[], Product[], Error>;
|
|
909
1512
|
};
|
|
910
1513
|
|
|
911
|
-
|
|
1514
|
+
declare const useTransactionsApi: () => {
|
|
1515
|
+
getTransactionsQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<TransactionDto[], Error, TransactionDto[], string[]>, "queryFn"> & {
|
|
1516
|
+
queryFn?: _tanstack_query_core.QueryFunction<TransactionDto[], string[], never> | undefined;
|
|
1517
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], TransactionDto[], Error>;
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
export { authApi, cashShiftsApi, categoriesApi, dashboardApi, dishesApi, ingredientsApi, initApiClient, inventoryApi, menuApi, ordersApi, productsApi, tanstackClient, transactionsApi, useAuthApi, useCashShiftsApi, useCategoriesApi, useDashboardApi, useDishesApi, useIngredientsApi, useInventoryApi, useMenuApi, useOrdersApi, useProductsApi, useTransactionsApi };
|