@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 CHANGED
@@ -273,6 +273,107 @@ var AuthApi = class extends BaseAPI {
273
273
  return AuthApiFp(this.configuration).signUp(signUpUserDTO, options).then((request) => request(this.axios, this.basePath));
274
274
  }
275
275
  };
276
+ var CashShiftsApiAxiosParamCreator = function(configuration) {
277
+ return {
278
+ /**
279
+ *
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ findAll: async (options = {}) => {
284
+ const localVarPath = `/cash-shifts`;
285
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
286
+ let baseOptions;
287
+ if (configuration) {
288
+ baseOptions = configuration.baseOptions;
289
+ }
290
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
291
+ const localVarHeaderParameter = {};
292
+ const localVarQueryParameter = {};
293
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
296
+ return {
297
+ url: toPathString(localVarUrlObj),
298
+ options: localVarRequestOptions
299
+ };
300
+ },
301
+ /**
302
+ *
303
+ * @param {number} id
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ */
307
+ findOne: async (id, options = {}) => {
308
+ assertParamExists("findOne", "id", id);
309
+ const localVarPath = `/cash-shifts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
310
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
311
+ let baseOptions;
312
+ if (configuration) {
313
+ baseOptions = configuration.baseOptions;
314
+ }
315
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
316
+ const localVarHeaderParameter = {};
317
+ const localVarQueryParameter = {};
318
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
319
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
320
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
321
+ return {
322
+ url: toPathString(localVarUrlObj),
323
+ options: localVarRequestOptions
324
+ };
325
+ }
326
+ };
327
+ };
328
+ var CashShiftsApiFp = function(configuration) {
329
+ const localVarAxiosParamCreator = CashShiftsApiAxiosParamCreator(configuration);
330
+ return {
331
+ /**
332
+ *
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ async findAll(options) {
337
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
338
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
339
+ const localVarOperationServerBasePath = operationServerMap["CashShiftsApi.findAll"]?.[localVarOperationServerIndex]?.url;
340
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
341
+ },
342
+ /**
343
+ *
344
+ * @param {number} id
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ async findOne(id, options) {
349
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
350
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
351
+ const localVarOperationServerBasePath = operationServerMap["CashShiftsApi.findOne"]?.[localVarOperationServerIndex]?.url;
352
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
353
+ }
354
+ };
355
+ };
356
+ var CashShiftsApi = class extends BaseAPI {
357
+ /**
358
+ *
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ * @memberof CashShiftsApi
362
+ */
363
+ findAll(options) {
364
+ return CashShiftsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
365
+ }
366
+ /**
367
+ *
368
+ * @param {number} id
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ * @memberof CashShiftsApi
372
+ */
373
+ findOne(id, options) {
374
+ return CashShiftsApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
375
+ }
376
+ };
276
377
  var CategoriesApiAxiosParamCreator = function(configuration) {
277
378
  return {
278
379
  /**
@@ -374,6 +475,60 @@ var CategoriesApi = class extends BaseAPI {
374
475
  return CategoriesApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
375
476
  }
376
477
  };
478
+ var DashboardApiAxiosParamCreator = function(configuration) {
479
+ return {
480
+ /**
481
+ *
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ getStats: async (options = {}) => {
486
+ const localVarPath = `/dashboard/stats`;
487
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
488
+ let baseOptions;
489
+ if (configuration) {
490
+ baseOptions = configuration.baseOptions;
491
+ }
492
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
493
+ const localVarHeaderParameter = {};
494
+ const localVarQueryParameter = {};
495
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
496
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
497
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
498
+ return {
499
+ url: toPathString(localVarUrlObj),
500
+ options: localVarRequestOptions
501
+ };
502
+ }
503
+ };
504
+ };
505
+ var DashboardApiFp = function(configuration) {
506
+ const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration);
507
+ return {
508
+ /**
509
+ *
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ async getStats(options) {
514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
515
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
516
+ const localVarOperationServerBasePath = operationServerMap["DashboardApi.getStats"]?.[localVarOperationServerIndex]?.url;
517
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
518
+ }
519
+ };
520
+ };
521
+ var DashboardApi = class extends BaseAPI {
522
+ /**
523
+ *
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ * @memberof DashboardApi
527
+ */
528
+ getStats(options) {
529
+ return DashboardApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
530
+ }
531
+ };
377
532
  var DishesApiAxiosParamCreator = function(configuration) {
378
533
  return {
379
534
  /**
@@ -475,6 +630,262 @@ var DishesApi = class extends BaseAPI {
475
630
  return DishesApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
476
631
  }
477
632
  };
633
+ var IngredientsApiAxiosParamCreator = function(configuration) {
634
+ return {
635
+ /**
636
+ *
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ findAll: async (options = {}) => {
641
+ const localVarPath = `/ingredients`;
642
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
643
+ let baseOptions;
644
+ if (configuration) {
645
+ baseOptions = configuration.baseOptions;
646
+ }
647
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
648
+ const localVarHeaderParameter = {};
649
+ const localVarQueryParameter = {};
650
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
651
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
652
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
653
+ return {
654
+ url: toPathString(localVarUrlObj),
655
+ options: localVarRequestOptions
656
+ };
657
+ },
658
+ /**
659
+ *
660
+ * @param {number} id
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ findOne: async (id, options = {}) => {
665
+ assertParamExists("findOne", "id", id);
666
+ const localVarPath = `/ingredients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
667
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
668
+ let baseOptions;
669
+ if (configuration) {
670
+ baseOptions = configuration.baseOptions;
671
+ }
672
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
673
+ const localVarHeaderParameter = {};
674
+ const localVarQueryParameter = {};
675
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
676
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
677
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
678
+ return {
679
+ url: toPathString(localVarUrlObj),
680
+ options: localVarRequestOptions
681
+ };
682
+ }
683
+ };
684
+ };
685
+ var IngredientsApiFp = function(configuration) {
686
+ const localVarAxiosParamCreator = IngredientsApiAxiosParamCreator(configuration);
687
+ return {
688
+ /**
689
+ *
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ */
693
+ async findAll(options) {
694
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
695
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
696
+ const localVarOperationServerBasePath = operationServerMap["IngredientsApi.findAll"]?.[localVarOperationServerIndex]?.url;
697
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
698
+ },
699
+ /**
700
+ *
701
+ * @param {number} id
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ async findOne(id, options) {
706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
707
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
708
+ const localVarOperationServerBasePath = operationServerMap["IngredientsApi.findOne"]?.[localVarOperationServerIndex]?.url;
709
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
710
+ }
711
+ };
712
+ };
713
+ var IngredientsApi = class extends BaseAPI {
714
+ /**
715
+ *
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ * @memberof IngredientsApi
719
+ */
720
+ findAll(options) {
721
+ return IngredientsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
722
+ }
723
+ /**
724
+ *
725
+ * @param {number} id
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ * @memberof IngredientsApi
729
+ */
730
+ findOne(id, options) {
731
+ return IngredientsApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
732
+ }
733
+ };
734
+ var InventoryApiAxiosParamCreator = function(configuration) {
735
+ return {
736
+ /**
737
+ *
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ findAll: async (options = {}) => {
742
+ const localVarPath = `/inventory`;
743
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
744
+ let baseOptions;
745
+ if (configuration) {
746
+ baseOptions = configuration.baseOptions;
747
+ }
748
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
749
+ const localVarHeaderParameter = {};
750
+ const localVarQueryParameter = {};
751
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
752
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
753
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
754
+ return {
755
+ url: toPathString(localVarUrlObj),
756
+ options: localVarRequestOptions
757
+ };
758
+ },
759
+ /**
760
+ *
761
+ * @param {number} id
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ findOne: async (id, options = {}) => {
766
+ assertParamExists("findOne", "id", id);
767
+ const localVarPath = `/inventory/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
768
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
769
+ let baseOptions;
770
+ if (configuration) {
771
+ baseOptions = configuration.baseOptions;
772
+ }
773
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
774
+ const localVarHeaderParameter = {};
775
+ const localVarQueryParameter = {};
776
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
778
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
779
+ return {
780
+ url: toPathString(localVarUrlObj),
781
+ options: localVarRequestOptions
782
+ };
783
+ }
784
+ };
785
+ };
786
+ var InventoryApiFp = function(configuration) {
787
+ const localVarAxiosParamCreator = InventoryApiAxiosParamCreator(configuration);
788
+ return {
789
+ /**
790
+ *
791
+ * @param {*} [options] Override http request option.
792
+ * @throws {RequiredError}
793
+ */
794
+ async findAll(options) {
795
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
796
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
797
+ const localVarOperationServerBasePath = operationServerMap["InventoryApi.findAll"]?.[localVarOperationServerIndex]?.url;
798
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
799
+ },
800
+ /**
801
+ *
802
+ * @param {number} id
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ */
806
+ async findOne(id, options) {
807
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
808
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
809
+ const localVarOperationServerBasePath = operationServerMap["InventoryApi.findOne"]?.[localVarOperationServerIndex]?.url;
810
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
811
+ }
812
+ };
813
+ };
814
+ var InventoryApi = class extends BaseAPI {
815
+ /**
816
+ *
817
+ * @param {*} [options] Override http request option.
818
+ * @throws {RequiredError}
819
+ * @memberof InventoryApi
820
+ */
821
+ findAll(options) {
822
+ return InventoryApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
823
+ }
824
+ /**
825
+ *
826
+ * @param {number} id
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ * @memberof InventoryApi
830
+ */
831
+ findOne(id, options) {
832
+ return InventoryApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
833
+ }
834
+ };
835
+ var MenuApiAxiosParamCreator = function(configuration) {
836
+ return {
837
+ /**
838
+ *
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ */
842
+ findAll: async (options = {}) => {
843
+ const localVarPath = `/menu`;
844
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
845
+ let baseOptions;
846
+ if (configuration) {
847
+ baseOptions = configuration.baseOptions;
848
+ }
849
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
850
+ const localVarHeaderParameter = {};
851
+ const localVarQueryParameter = {};
852
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
853
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
854
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
855
+ return {
856
+ url: toPathString(localVarUrlObj),
857
+ options: localVarRequestOptions
858
+ };
859
+ }
860
+ };
861
+ };
862
+ var MenuApiFp = function(configuration) {
863
+ const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration);
864
+ return {
865
+ /**
866
+ *
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ */
870
+ async findAll(options) {
871
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
872
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
873
+ const localVarOperationServerBasePath = operationServerMap["MenuApi.findAll"]?.[localVarOperationServerIndex]?.url;
874
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
875
+ }
876
+ };
877
+ };
878
+ var MenuApi = class extends BaseAPI {
879
+ /**
880
+ *
881
+ * @param {*} [options] Override http request option.
882
+ * @throws {RequiredError}
883
+ * @memberof MenuApi
884
+ */
885
+ findAll(options) {
886
+ return MenuApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
887
+ }
888
+ };
478
889
  var OrdersApiAxiosParamCreator = function(configuration) {
479
890
  return {
480
891
  /**
@@ -844,6 +1255,60 @@ var ProductsApi = class extends BaseAPI {
844
1255
  return ProductsApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
845
1256
  }
846
1257
  };
1258
+ var TransactionsApiAxiosParamCreator = function(configuration) {
1259
+ return {
1260
+ /**
1261
+ *
1262
+ * @param {*} [options] Override http request option.
1263
+ * @throws {RequiredError}
1264
+ */
1265
+ findAll: async (options = {}) => {
1266
+ const localVarPath = `/transactions`;
1267
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1268
+ let baseOptions;
1269
+ if (configuration) {
1270
+ baseOptions = configuration.baseOptions;
1271
+ }
1272
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1273
+ const localVarHeaderParameter = {};
1274
+ const localVarQueryParameter = {};
1275
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1276
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1277
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1278
+ return {
1279
+ url: toPathString(localVarUrlObj),
1280
+ options: localVarRequestOptions
1281
+ };
1282
+ }
1283
+ };
1284
+ };
1285
+ var TransactionsApiFp = function(configuration) {
1286
+ const localVarAxiosParamCreator = TransactionsApiAxiosParamCreator(configuration);
1287
+ return {
1288
+ /**
1289
+ *
1290
+ * @param {*} [options] Override http request option.
1291
+ * @throws {RequiredError}
1292
+ */
1293
+ async findAll(options) {
1294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
1295
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1296
+ const localVarOperationServerBasePath = operationServerMap["TransactionsApi.findAll"]?.[localVarOperationServerIndex]?.url;
1297
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1298
+ }
1299
+ };
1300
+ };
1301
+ var TransactionsApi = class extends BaseAPI {
1302
+ /**
1303
+ *
1304
+ * @param {*} [options] Override http request option.
1305
+ * @throws {RequiredError}
1306
+ * @memberof TransactionsApi
1307
+ */
1308
+ findAll(options) {
1309
+ return TransactionsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
1310
+ }
1311
+ };
847
1312
 
848
1313
  // src/api/generated/configuration.ts
849
1314
  var Configuration = class {
@@ -935,10 +1400,16 @@ var Configuration = class {
935
1400
  };
936
1401
  exports.tanstackClient = void 0;
937
1402
  exports.authApi = void 0;
1403
+ exports.cashShiftsApi = void 0;
938
1404
  exports.categoriesApi = void 0;
1405
+ exports.dashboardApi = void 0;
939
1406
  exports.dishesApi = void 0;
1407
+ exports.ingredientsApi = void 0;
1408
+ exports.inventoryApi = void 0;
1409
+ exports.menuApi = void 0;
940
1410
  exports.ordersApi = void 0;
941
1411
  exports.productsApi = void 0;
1412
+ exports.transactionsApi = void 0;
942
1413
  function initApiClient(config) {
943
1414
  const apiClient = globalAxios2__default.default.create({
944
1415
  baseURL: config.baseURL,
@@ -949,10 +1420,16 @@ function initApiClient(config) {
949
1420
  });
950
1421
  exports.tanstackClient = new reactQuery.QueryClient();
951
1422
  exports.authApi = new AuthApi(configuration, void 0, apiClient);
1423
+ exports.cashShiftsApi = new CashShiftsApi(configuration, void 0, apiClient);
952
1424
  exports.categoriesApi = new CategoriesApi(configuration, void 0, apiClient);
1425
+ exports.dashboardApi = new DashboardApi(configuration, void 0, apiClient);
953
1426
  exports.dishesApi = new DishesApi(configuration, void 0, apiClient);
1427
+ exports.ingredientsApi = new IngredientsApi(configuration, void 0, apiClient);
1428
+ exports.inventoryApi = new InventoryApi(configuration, void 0, apiClient);
1429
+ exports.menuApi = new MenuApi(configuration, void 0, apiClient);
954
1430
  exports.ordersApi = new OrdersApi(configuration, void 0, apiClient);
955
1431
  exports.productsApi = new ProductsApi(configuration, void 0, apiClient);
1432
+ exports.transactionsApi = new TransactionsApi(configuration, void 0, apiClient);
956
1433
  return apiClient;
957
1434
  }
958
1435
  var useAuthApi = () => {
@@ -984,6 +1461,20 @@ var useAuthApi = () => {
984
1461
  mutateSignUp
985
1462
  };
986
1463
  };
1464
+ var getCashShiftsQuery = () => reactQuery.queryOptions({
1465
+ queryKey: ["cash-shifts"],
1466
+ queryFn: () => exports.cashShiftsApi.findAll().then((res) => res.data)
1467
+ });
1468
+ var getCashShiftQuery = (id) => reactQuery.queryOptions({
1469
+ queryKey: ["cash-shifts", id],
1470
+ queryFn: () => exports.cashShiftsApi.findOne(id).then((res) => res.data)
1471
+ });
1472
+ var useCashShiftsApi = () => {
1473
+ return {
1474
+ getCashShiftsQuery,
1475
+ getCashShiftQuery
1476
+ };
1477
+ };
987
1478
  var getCategoriesQuery = () => reactQuery.queryOptions({
988
1479
  queryKey: ["categories"],
989
1480
  queryFn: () => exports.categoriesApi.findAll().then((res) => res.data)
@@ -993,6 +1484,15 @@ var useCategoriesApi = () => {
993
1484
  getCategoriesQuery
994
1485
  };
995
1486
  };
1487
+ var getStatsQuery = () => reactQuery.queryOptions({
1488
+ queryKey: ["dashboard"],
1489
+ queryFn: () => exports.dashboardApi.getStats().then((res) => res.data)
1490
+ });
1491
+ var useDashboardApi = () => {
1492
+ return {
1493
+ getStatsQuery
1494
+ };
1495
+ };
996
1496
  var getDishesQuery = () => reactQuery.queryOptions({
997
1497
  queryKey: ["dishes"],
998
1498
  queryFn: () => exports.dishesApi.findAll().then((res) => res.data)
@@ -1007,6 +1507,43 @@ var useDishesApi = () => {
1007
1507
  getDishQuery
1008
1508
  };
1009
1509
  };
1510
+ var getIngredientsQuery = () => reactQuery.queryOptions({
1511
+ queryKey: ["ingredients"],
1512
+ queryFn: () => exports.ingredientsApi.findAll().then((res) => res.data)
1513
+ });
1514
+ var getIngredientQuery = (id) => reactQuery.queryOptions({
1515
+ queryKey: ["ingredients", id],
1516
+ queryFn: () => exports.ingredientsApi.findOne(id).then((res) => res.data)
1517
+ });
1518
+ var useIngredientsApi = () => {
1519
+ return {
1520
+ getIngredientsQuery,
1521
+ getIngredientQuery
1522
+ };
1523
+ };
1524
+ var getInventoriesQuery = () => reactQuery.queryOptions({
1525
+ queryKey: ["inventory"],
1526
+ queryFn: () => exports.inventoryApi.findAll().then((res) => res.data)
1527
+ });
1528
+ var getInventoryQuery = (id) => reactQuery.queryOptions({
1529
+ queryKey: ["inventory", id],
1530
+ queryFn: () => exports.inventoryApi.findOne(id).then((res) => res.data)
1531
+ });
1532
+ var useInventoryApi = () => {
1533
+ return {
1534
+ getInventoriesQuery,
1535
+ getInventoryQuery
1536
+ };
1537
+ };
1538
+ var getMenuQuery = () => reactQuery.queryOptions({
1539
+ queryKey: ["menu"],
1540
+ queryFn: () => exports.menuApi.findAll().then((res) => res.data)
1541
+ });
1542
+ var useMenuApi = () => {
1543
+ return {
1544
+ getMenuQuery
1545
+ };
1546
+ };
1010
1547
  var getOrdersQuery = (params) => reactQuery.queryOptions({
1011
1548
  queryKey: ["orders", params],
1012
1549
  queryFn: () => exports.ordersApi.findAll(params?.page, params?.limit, params?.status).then((res) => res.data)
@@ -1055,12 +1592,27 @@ var useProductsApi = () => {
1055
1592
  getProductsQuery
1056
1593
  };
1057
1594
  };
1595
+ var getTransactionsQuery = () => reactQuery.queryOptions({
1596
+ queryKey: ["transactions"],
1597
+ queryFn: () => exports.transactionsApi.findAll().then((res) => res.data)
1598
+ });
1599
+ var useTransactionsApi = () => {
1600
+ return {
1601
+ getTransactionsQuery
1602
+ };
1603
+ };
1058
1604
 
1059
1605
  exports.initApiClient = initApiClient;
1060
1606
  exports.useAuthApi = useAuthApi;
1607
+ exports.useCashShiftsApi = useCashShiftsApi;
1061
1608
  exports.useCategoriesApi = useCategoriesApi;
1609
+ exports.useDashboardApi = useDashboardApi;
1062
1610
  exports.useDishesApi = useDishesApi;
1611
+ exports.useIngredientsApi = useIngredientsApi;
1612
+ exports.useInventoryApi = useInventoryApi;
1613
+ exports.useMenuApi = useMenuApi;
1063
1614
  exports.useOrdersApi = useOrdersApi;
1064
1615
  exports.useProductsApi = useProductsApi;
1616
+ exports.useTransactionsApi = useTransactionsApi;
1065
1617
  //# sourceMappingURL=index.cjs.map
1066
1618
  //# sourceMappingURL=index.cjs.map