@horpynka/api-sdk 1.0.11 → 1.0.13
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 +665 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +613 -1
- package/dist/index.d.ts +613 -1
- package/dist/index.js +660 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
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
|
|
@@ -332,6 +483,12 @@ interface Ingredient {
|
|
|
332
483
|
* @memberof Ingredient
|
|
333
484
|
*/
|
|
334
485
|
'id': number;
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof Ingredient
|
|
490
|
+
*/
|
|
491
|
+
'name': string;
|
|
335
492
|
/**
|
|
336
493
|
*
|
|
337
494
|
* @type {string}
|
|
@@ -345,6 +502,164 @@ interface Ingredient {
|
|
|
345
502
|
*/
|
|
346
503
|
'dishIngredients': Array<DishIngredient>;
|
|
347
504
|
}
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @export
|
|
508
|
+
* @interface InventoryDto
|
|
509
|
+
*/
|
|
510
|
+
interface InventoryDto {
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* @type {number}
|
|
514
|
+
* @memberof InventoryDto
|
|
515
|
+
*/
|
|
516
|
+
'id': number;
|
|
517
|
+
/**
|
|
518
|
+
*
|
|
519
|
+
* @type {string}
|
|
520
|
+
* @memberof InventoryDto
|
|
521
|
+
*/
|
|
522
|
+
'createdAt': string;
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
* @type {string}
|
|
526
|
+
* @memberof InventoryDto
|
|
527
|
+
*/
|
|
528
|
+
'finishedAt': string | null;
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @type {string}
|
|
532
|
+
* @memberof InventoryDto
|
|
533
|
+
*/
|
|
534
|
+
'status': InventoryDtoStatusEnum;
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @type {string}
|
|
538
|
+
* @memberof InventoryDto
|
|
539
|
+
*/
|
|
540
|
+
'responsible': string;
|
|
541
|
+
/**
|
|
542
|
+
*
|
|
543
|
+
* @type {Array<InventoryItemDto>}
|
|
544
|
+
* @memberof InventoryDto
|
|
545
|
+
*/
|
|
546
|
+
'items': Array<InventoryItemDto>;
|
|
547
|
+
}
|
|
548
|
+
declare const InventoryDtoStatusEnum: {
|
|
549
|
+
readonly Completed: "COMPLETED";
|
|
550
|
+
readonly WithDifferences: "WITH_DIFFERENCES";
|
|
551
|
+
readonly InProgress: "IN_PROGRESS";
|
|
552
|
+
};
|
|
553
|
+
type InventoryDtoStatusEnum = typeof InventoryDtoStatusEnum[keyof typeof InventoryDtoStatusEnum];
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
* @export
|
|
557
|
+
* @interface InventoryItemDto
|
|
558
|
+
*/
|
|
559
|
+
interface InventoryItemDto {
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* @type {number}
|
|
563
|
+
* @memberof InventoryItemDto
|
|
564
|
+
*/
|
|
565
|
+
'id': number;
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @type {string}
|
|
569
|
+
* @memberof InventoryItemDto
|
|
570
|
+
*/
|
|
571
|
+
'name': string;
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @type {string}
|
|
575
|
+
* @memberof InventoryItemDto
|
|
576
|
+
*/
|
|
577
|
+
'measurementUnit': InventoryItemDtoMeasurementUnitEnum;
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {number}
|
|
581
|
+
* @memberof InventoryItemDto
|
|
582
|
+
*/
|
|
583
|
+
'expectedQuantity': number;
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @type {number}
|
|
587
|
+
* @memberof InventoryItemDto
|
|
588
|
+
*/
|
|
589
|
+
'actualQuantity': number;
|
|
590
|
+
}
|
|
591
|
+
declare const InventoryItemDtoMeasurementUnitEnum: {
|
|
592
|
+
readonly G: "g";
|
|
593
|
+
readonly Ml: "ml";
|
|
594
|
+
readonly Pcs: "pcs";
|
|
595
|
+
};
|
|
596
|
+
type InventoryItemDtoMeasurementUnitEnum = typeof InventoryItemDtoMeasurementUnitEnum[keyof typeof InventoryItemDtoMeasurementUnitEnum];
|
|
597
|
+
/**
|
|
598
|
+
*
|
|
599
|
+
* @export
|
|
600
|
+
* @interface MenuItemDto
|
|
601
|
+
*/
|
|
602
|
+
interface MenuItemDto {
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @type {string}
|
|
606
|
+
* @memberof MenuItemDto
|
|
607
|
+
*/
|
|
608
|
+
'id': string;
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @type {string}
|
|
612
|
+
* @memberof MenuItemDto
|
|
613
|
+
*/
|
|
614
|
+
'kind': MenuItemDtoKindEnum;
|
|
615
|
+
/**
|
|
616
|
+
*
|
|
617
|
+
* @type {number}
|
|
618
|
+
* @memberof MenuItemDto
|
|
619
|
+
*/
|
|
620
|
+
'entityId': number;
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @type {string}
|
|
624
|
+
* @memberof MenuItemDto
|
|
625
|
+
*/
|
|
626
|
+
'name': string;
|
|
627
|
+
/**
|
|
628
|
+
*
|
|
629
|
+
* @type {number}
|
|
630
|
+
* @memberof MenuItemDto
|
|
631
|
+
*/
|
|
632
|
+
'categoryId': number | null;
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
* @type {number}
|
|
636
|
+
* @memberof MenuItemDto
|
|
637
|
+
*/
|
|
638
|
+
'sellingPrice': number;
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @type {number}
|
|
642
|
+
* @memberof MenuItemDto
|
|
643
|
+
*/
|
|
644
|
+
'ownPrice': number;
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @type {boolean}
|
|
648
|
+
* @memberof MenuItemDto
|
|
649
|
+
*/
|
|
650
|
+
'selling': boolean;
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @type {string}
|
|
654
|
+
* @memberof MenuItemDto
|
|
655
|
+
*/
|
|
656
|
+
'updatedAt': string;
|
|
657
|
+
}
|
|
658
|
+
declare const MenuItemDtoKindEnum: {
|
|
659
|
+
readonly Dish: "DISH";
|
|
660
|
+
readonly Product: "PRODUCT";
|
|
661
|
+
};
|
|
662
|
+
type MenuItemDtoKindEnum = typeof MenuItemDtoKindEnum[keyof typeof MenuItemDtoKindEnum];
|
|
348
663
|
/**
|
|
349
664
|
*
|
|
350
665
|
* @export
|
|
@@ -488,6 +803,25 @@ interface OrderItem {
|
|
|
488
803
|
*/
|
|
489
804
|
'order': Order;
|
|
490
805
|
}
|
|
806
|
+
/**
|
|
807
|
+
*
|
|
808
|
+
* @export
|
|
809
|
+
* @interface PaymentSplitDto
|
|
810
|
+
*/
|
|
811
|
+
interface PaymentSplitDto {
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @type {string}
|
|
815
|
+
* @memberof PaymentSplitDto
|
|
816
|
+
*/
|
|
817
|
+
'name': string;
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @type {number}
|
|
821
|
+
* @memberof PaymentSplitDto
|
|
822
|
+
*/
|
|
823
|
+
'value': number;
|
|
824
|
+
}
|
|
491
825
|
/**
|
|
492
826
|
*
|
|
493
827
|
* @export
|
|
@@ -549,6 +883,31 @@ interface Product {
|
|
|
549
883
|
*/
|
|
550
884
|
'updatedAt': string;
|
|
551
885
|
}
|
|
886
|
+
/**
|
|
887
|
+
*
|
|
888
|
+
* @export
|
|
889
|
+
* @interface SalesByDayDto
|
|
890
|
+
*/
|
|
891
|
+
interface SalesByDayDto {
|
|
892
|
+
/**
|
|
893
|
+
*
|
|
894
|
+
* @type {string}
|
|
895
|
+
* @memberof SalesByDayDto
|
|
896
|
+
*/
|
|
897
|
+
'date': string;
|
|
898
|
+
/**
|
|
899
|
+
*
|
|
900
|
+
* @type {number}
|
|
901
|
+
* @memberof SalesByDayDto
|
|
902
|
+
*/
|
|
903
|
+
'sales': number;
|
|
904
|
+
/**
|
|
905
|
+
*
|
|
906
|
+
* @type {number}
|
|
907
|
+
* @memberof SalesByDayDto
|
|
908
|
+
*/
|
|
909
|
+
'orders': number;
|
|
910
|
+
}
|
|
552
911
|
/**
|
|
553
912
|
*
|
|
554
913
|
* @export
|
|
@@ -600,6 +959,78 @@ interface SignUpUserDTO {
|
|
|
600
959
|
*/
|
|
601
960
|
'password': string;
|
|
602
961
|
}
|
|
962
|
+
/**
|
|
963
|
+
*
|
|
964
|
+
* @export
|
|
965
|
+
* @interface TransactionDto
|
|
966
|
+
*/
|
|
967
|
+
interface TransactionDto {
|
|
968
|
+
/**
|
|
969
|
+
*
|
|
970
|
+
* @type {string}
|
|
971
|
+
* @memberof TransactionDto
|
|
972
|
+
*/
|
|
973
|
+
'id': string;
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @type {number}
|
|
977
|
+
* @memberof TransactionDto
|
|
978
|
+
*/
|
|
979
|
+
'orderId': number;
|
|
980
|
+
/**
|
|
981
|
+
*
|
|
982
|
+
* @type {string}
|
|
983
|
+
* @memberof TransactionDto
|
|
984
|
+
*/
|
|
985
|
+
'createdAt': string;
|
|
986
|
+
/**
|
|
987
|
+
*
|
|
988
|
+
* @type {string}
|
|
989
|
+
* @memberof TransactionDto
|
|
990
|
+
*/
|
|
991
|
+
'kind': TransactionDtoKindEnum;
|
|
992
|
+
/**
|
|
993
|
+
*
|
|
994
|
+
* @type {string}
|
|
995
|
+
* @memberof TransactionDto
|
|
996
|
+
*/
|
|
997
|
+
'paymentMethod': TransactionDtoPaymentMethodEnum;
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @type {number}
|
|
1001
|
+
* @memberof TransactionDto
|
|
1002
|
+
*/
|
|
1003
|
+
'amount': number;
|
|
1004
|
+
/**
|
|
1005
|
+
*
|
|
1006
|
+
* @type {number}
|
|
1007
|
+
* @memberof TransactionDto
|
|
1008
|
+
*/
|
|
1009
|
+
'refundedAmount': number;
|
|
1010
|
+
/**
|
|
1011
|
+
*
|
|
1012
|
+
* @type {string}
|
|
1013
|
+
* @memberof TransactionDto
|
|
1014
|
+
*/
|
|
1015
|
+
'orderStatus': TransactionDtoOrderStatusEnum;
|
|
1016
|
+
}
|
|
1017
|
+
declare const TransactionDtoKindEnum: {
|
|
1018
|
+
readonly Sale: "SALE";
|
|
1019
|
+
readonly Refund: "REFUND";
|
|
1020
|
+
};
|
|
1021
|
+
type TransactionDtoKindEnum = typeof TransactionDtoKindEnum[keyof typeof TransactionDtoKindEnum];
|
|
1022
|
+
declare const TransactionDtoPaymentMethodEnum: {
|
|
1023
|
+
readonly Cash: "CASH";
|
|
1024
|
+
readonly Card: "CARD";
|
|
1025
|
+
readonly Mixed: "MIXED";
|
|
1026
|
+
};
|
|
1027
|
+
type TransactionDtoPaymentMethodEnum = typeof TransactionDtoPaymentMethodEnum[keyof typeof TransactionDtoPaymentMethodEnum];
|
|
1028
|
+
declare const TransactionDtoOrderStatusEnum: {
|
|
1029
|
+
readonly Paid: "PAID";
|
|
1030
|
+
readonly Refunded: "REFUNDED";
|
|
1031
|
+
readonly Closed: "CLOSED";
|
|
1032
|
+
};
|
|
1033
|
+
type TransactionDtoOrderStatusEnum = typeof TransactionDtoOrderStatusEnum[keyof typeof TransactionDtoOrderStatusEnum];
|
|
603
1034
|
/**
|
|
604
1035
|
*
|
|
605
1036
|
* @export
|
|
@@ -690,6 +1121,29 @@ declare class AuthApi extends BaseAPI {
|
|
|
690
1121
|
*/
|
|
691
1122
|
signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<AccessTokenResponseDto, any, {}, any>>;
|
|
692
1123
|
}
|
|
1124
|
+
/**
|
|
1125
|
+
* CashShiftsApi - object-oriented interface
|
|
1126
|
+
* @export
|
|
1127
|
+
* @class CashShiftsApi
|
|
1128
|
+
* @extends {BaseAPI}
|
|
1129
|
+
*/
|
|
1130
|
+
declare class CashShiftsApi extends BaseAPI {
|
|
1131
|
+
/**
|
|
1132
|
+
*
|
|
1133
|
+
* @param {*} [options] Override http request option.
|
|
1134
|
+
* @throws {RequiredError}
|
|
1135
|
+
* @memberof CashShiftsApi
|
|
1136
|
+
*/
|
|
1137
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<CashShiftDto[], any, {}, any>>;
|
|
1138
|
+
/**
|
|
1139
|
+
*
|
|
1140
|
+
* @param {number} id
|
|
1141
|
+
* @param {*} [options] Override http request option.
|
|
1142
|
+
* @throws {RequiredError}
|
|
1143
|
+
* @memberof CashShiftsApi
|
|
1144
|
+
*/
|
|
1145
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<CashShiftDto, any, {}, any>>;
|
|
1146
|
+
}
|
|
693
1147
|
/**
|
|
694
1148
|
* CategoriesApi - object-oriented interface
|
|
695
1149
|
* @export
|
|
@@ -704,6 +1158,29 @@ declare class CategoriesApi extends BaseAPI {
|
|
|
704
1158
|
* @memberof CategoriesApi
|
|
705
1159
|
*/
|
|
706
1160
|
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<object, any, {}, any>>;
|
|
1161
|
+
/**
|
|
1162
|
+
*
|
|
1163
|
+
* @param {number} id
|
|
1164
|
+
* @param {*} [options] Override http request option.
|
|
1165
|
+
* @throws {RequiredError}
|
|
1166
|
+
* @memberof CategoriesApi
|
|
1167
|
+
*/
|
|
1168
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Category, any, {}, any>>;
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* DashboardApi - object-oriented interface
|
|
1172
|
+
* @export
|
|
1173
|
+
* @class DashboardApi
|
|
1174
|
+
* @extends {BaseAPI}
|
|
1175
|
+
*/
|
|
1176
|
+
declare class DashboardApi extends BaseAPI {
|
|
1177
|
+
/**
|
|
1178
|
+
*
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
* @memberof DashboardApi
|
|
1182
|
+
*/
|
|
1183
|
+
getStats(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<DashboardStatsDto, any, {}, any>>;
|
|
707
1184
|
}
|
|
708
1185
|
/**
|
|
709
1186
|
* DishesApi - object-oriented interface
|
|
@@ -728,6 +1205,67 @@ declare class DishesApi extends BaseAPI {
|
|
|
728
1205
|
*/
|
|
729
1206
|
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Dish, any, {}, any>>;
|
|
730
1207
|
}
|
|
1208
|
+
/**
|
|
1209
|
+
* IngredientsApi - object-oriented interface
|
|
1210
|
+
* @export
|
|
1211
|
+
* @class IngredientsApi
|
|
1212
|
+
* @extends {BaseAPI}
|
|
1213
|
+
*/
|
|
1214
|
+
declare class IngredientsApi extends BaseAPI {
|
|
1215
|
+
/**
|
|
1216
|
+
*
|
|
1217
|
+
* @param {*} [options] Override http request option.
|
|
1218
|
+
* @throws {RequiredError}
|
|
1219
|
+
* @memberof IngredientsApi
|
|
1220
|
+
*/
|
|
1221
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Ingredient[], any, {}, any>>;
|
|
1222
|
+
/**
|
|
1223
|
+
*
|
|
1224
|
+
* @param {number} id
|
|
1225
|
+
* @param {*} [options] Override http request option.
|
|
1226
|
+
* @throws {RequiredError}
|
|
1227
|
+
* @memberof IngredientsApi
|
|
1228
|
+
*/
|
|
1229
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Ingredient, any, {}, any>>;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* InventoryApi - object-oriented interface
|
|
1233
|
+
* @export
|
|
1234
|
+
* @class InventoryApi
|
|
1235
|
+
* @extends {BaseAPI}
|
|
1236
|
+
*/
|
|
1237
|
+
declare class InventoryApi extends BaseAPI {
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @param {*} [options] Override http request option.
|
|
1241
|
+
* @throws {RequiredError}
|
|
1242
|
+
* @memberof InventoryApi
|
|
1243
|
+
*/
|
|
1244
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<InventoryDto[], any, {}, any>>;
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @param {number} id
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
* @memberof InventoryApi
|
|
1251
|
+
*/
|
|
1252
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<InventoryDto, any, {}, any>>;
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* MenuApi - object-oriented interface
|
|
1256
|
+
* @export
|
|
1257
|
+
* @class MenuApi
|
|
1258
|
+
* @extends {BaseAPI}
|
|
1259
|
+
*/
|
|
1260
|
+
declare class MenuApi extends BaseAPI {
|
|
1261
|
+
/**
|
|
1262
|
+
*
|
|
1263
|
+
* @param {*} [options] Override http request option.
|
|
1264
|
+
* @throws {RequiredError}
|
|
1265
|
+
* @memberof MenuApi
|
|
1266
|
+
*/
|
|
1267
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<MenuItemDto[], any, {}, any>>;
|
|
1268
|
+
}
|
|
731
1269
|
/**
|
|
732
1270
|
* OrdersApi - object-oriented interface
|
|
733
1271
|
* @export
|
|
@@ -793,14 +1331,43 @@ declare class ProductsApi extends BaseAPI {
|
|
|
793
1331
|
* @memberof ProductsApi
|
|
794
1332
|
*/
|
|
795
1333
|
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Product[], any, {}, any>>;
|
|
1334
|
+
/**
|
|
1335
|
+
*
|
|
1336
|
+
* @param {number} id
|
|
1337
|
+
* @param {*} [options] Override http request option.
|
|
1338
|
+
* @throws {RequiredError}
|
|
1339
|
+
* @memberof ProductsApi
|
|
1340
|
+
*/
|
|
1341
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Product, any, {}, any>>;
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* TransactionsApi - object-oriented interface
|
|
1345
|
+
* @export
|
|
1346
|
+
* @class TransactionsApi
|
|
1347
|
+
* @extends {BaseAPI}
|
|
1348
|
+
*/
|
|
1349
|
+
declare class TransactionsApi extends BaseAPI {
|
|
1350
|
+
/**
|
|
1351
|
+
*
|
|
1352
|
+
* @param {*} [options] Override http request option.
|
|
1353
|
+
* @throws {RequiredError}
|
|
1354
|
+
* @memberof TransactionsApi
|
|
1355
|
+
*/
|
|
1356
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<TransactionDto[], any, {}, any>>;
|
|
796
1357
|
}
|
|
797
1358
|
|
|
798
1359
|
declare let tanstackClient: QueryClient;
|
|
799
1360
|
declare let authApi: AuthApi;
|
|
1361
|
+
declare let cashShiftsApi: CashShiftsApi;
|
|
800
1362
|
declare let categoriesApi: CategoriesApi;
|
|
1363
|
+
declare let dashboardApi: DashboardApi;
|
|
801
1364
|
declare let dishesApi: DishesApi;
|
|
1365
|
+
declare let ingredientsApi: IngredientsApi;
|
|
1366
|
+
declare let inventoryApi: InventoryApi;
|
|
1367
|
+
declare let menuApi: MenuApi;
|
|
802
1368
|
declare let ordersApi: OrdersApi;
|
|
803
1369
|
declare let productsApi: ProductsApi;
|
|
1370
|
+
declare let transactionsApi: TransactionsApi;
|
|
804
1371
|
declare function initApiClient(config: CreateAxiosDefaults): AxiosInstance;
|
|
805
1372
|
|
|
806
1373
|
declare const useAuthApi: () => {
|
|
@@ -821,12 +1388,27 @@ declare const useAuthApi: () => {
|
|
|
821
1388
|
}, unknown>;
|
|
822
1389
|
};
|
|
823
1390
|
|
|
1391
|
+
declare const useCashShiftsApi: () => {
|
|
1392
|
+
getCashShiftsQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<CashShiftDto[], Error, CashShiftDto[], string[]>, "queryFn"> & {
|
|
1393
|
+
queryFn?: _tanstack_query_core.QueryFunction<CashShiftDto[], string[], never> | undefined;
|
|
1394
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], CashShiftDto[], Error>;
|
|
1395
|
+
getCashShiftQuery: (id: number) => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<CashShiftDto, Error, CashShiftDto, (string | number)[]>, "queryFn"> & {
|
|
1396
|
+
queryFn?: _tanstack_query_core.QueryFunction<CashShiftDto, (string | number)[], never> | undefined;
|
|
1397
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<(string | number)[], CashShiftDto, Error>;
|
|
1398
|
+
};
|
|
1399
|
+
|
|
824
1400
|
declare const useCategoriesApi: () => {
|
|
825
1401
|
getCategoriesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<object, Error, object, string[]>, "queryFn"> & {
|
|
826
1402
|
queryFn?: _tanstack_query_core.QueryFunction<object, string[], never> | undefined;
|
|
827
1403
|
} & _tanstack_query_core.QueryKeyWithDataTag<string[], object, Error>;
|
|
828
1404
|
};
|
|
829
1405
|
|
|
1406
|
+
declare const useDashboardApi: () => {
|
|
1407
|
+
getStatsQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<DashboardStatsDto, Error, DashboardStatsDto, string[]>, "queryFn"> & {
|
|
1408
|
+
queryFn?: _tanstack_query_core.QueryFunction<DashboardStatsDto, string[], never> | undefined;
|
|
1409
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], DashboardStatsDto, Error>;
|
|
1410
|
+
};
|
|
1411
|
+
|
|
830
1412
|
declare const useDishesApi: () => {
|
|
831
1413
|
getDishesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<Dish[], Error, Dish[], string[]>, "queryFn"> & {
|
|
832
1414
|
queryFn?: _tanstack_query_core.QueryFunction<Dish[], string[], never> | undefined;
|
|
@@ -836,6 +1418,30 @@ declare const useDishesApi: () => {
|
|
|
836
1418
|
} & _tanstack_query_core.QueryKeyWithDataTag<(string | number)[], Dish, Error>;
|
|
837
1419
|
};
|
|
838
1420
|
|
|
1421
|
+
declare const useIngredientsApi: () => {
|
|
1422
|
+
getIngredientsQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<Ingredient[], Error, Ingredient[], string[]>, "queryFn"> & {
|
|
1423
|
+
queryFn?: _tanstack_query_core.QueryFunction<Ingredient[], string[], never> | undefined;
|
|
1424
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], Ingredient[], Error>;
|
|
1425
|
+
getIngredientQuery: (id: number) => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<Ingredient, Error, Ingredient, (string | number)[]>, "queryFn"> & {
|
|
1426
|
+
queryFn?: _tanstack_query_core.QueryFunction<Ingredient, (string | number)[], never> | undefined;
|
|
1427
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<(string | number)[], Ingredient, Error>;
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
declare const useInventoryApi: () => {
|
|
1431
|
+
getInventoriesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<InventoryDto[], Error, InventoryDto[], string[]>, "queryFn"> & {
|
|
1432
|
+
queryFn?: _tanstack_query_core.QueryFunction<InventoryDto[], string[], never> | undefined;
|
|
1433
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], InventoryDto[], Error>;
|
|
1434
|
+
getInventoryQuery: (id: number) => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<InventoryDto, Error, InventoryDto, (string | number)[]>, "queryFn"> & {
|
|
1435
|
+
queryFn?: _tanstack_query_core.QueryFunction<InventoryDto, (string | number)[], never> | undefined;
|
|
1436
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<(string | number)[], InventoryDto, Error>;
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
declare const useMenuApi: () => {
|
|
1440
|
+
getMenuQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<MenuItemDto[], Error, MenuItemDto[], string[]>, "queryFn"> & {
|
|
1441
|
+
queryFn?: _tanstack_query_core.QueryFunction<MenuItemDto[], string[], never> | undefined;
|
|
1442
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], MenuItemDto[], Error>;
|
|
1443
|
+
};
|
|
1444
|
+
|
|
839
1445
|
declare const useOrdersApi: () => {
|
|
840
1446
|
getOrdersQuery: (params?: {
|
|
841
1447
|
page?: number;
|
|
@@ -886,4 +1492,10 @@ declare const useProductsApi: () => {
|
|
|
886
1492
|
} & _tanstack_query_core.QueryKeyWithDataTag<string[], Product[], Error>;
|
|
887
1493
|
};
|
|
888
1494
|
|
|
889
|
-
|
|
1495
|
+
declare const useTransactionsApi: () => {
|
|
1496
|
+
getTransactionsQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<TransactionDto[], Error, TransactionDto[], string[]>, "queryFn"> & {
|
|
1497
|
+
queryFn?: _tanstack_query_core.QueryFunction<TransactionDto[], string[], never> | undefined;
|
|
1498
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], TransactionDto[], Error>;
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
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 };
|