@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.js
CHANGED
|
@@ -267,6 +267,107 @@ var AuthApi = class extends BaseAPI {
|
|
|
267
267
|
return AuthApiFp(this.configuration).signUp(signUpUserDTO, options).then((request) => request(this.axios, this.basePath));
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
|
+
var CashShiftsApiAxiosParamCreator = function(configuration) {
|
|
271
|
+
return {
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
findAll: async (options = {}) => {
|
|
278
|
+
const localVarPath = `/cash-shifts`;
|
|
279
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
280
|
+
let baseOptions;
|
|
281
|
+
if (configuration) {
|
|
282
|
+
baseOptions = configuration.baseOptions;
|
|
283
|
+
}
|
|
284
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
285
|
+
const localVarHeaderParameter = {};
|
|
286
|
+
const localVarQueryParameter = {};
|
|
287
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
289
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
290
|
+
return {
|
|
291
|
+
url: toPathString(localVarUrlObj),
|
|
292
|
+
options: localVarRequestOptions
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @param {number} id
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
findOne: async (id, options = {}) => {
|
|
302
|
+
assertParamExists("findOne", "id", id);
|
|
303
|
+
const localVarPath = `/cash-shifts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
304
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
305
|
+
let baseOptions;
|
|
306
|
+
if (configuration) {
|
|
307
|
+
baseOptions = configuration.baseOptions;
|
|
308
|
+
}
|
|
309
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
310
|
+
const localVarHeaderParameter = {};
|
|
311
|
+
const localVarQueryParameter = {};
|
|
312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
315
|
+
return {
|
|
316
|
+
url: toPathString(localVarUrlObj),
|
|
317
|
+
options: localVarRequestOptions
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
var CashShiftsApiFp = function(configuration) {
|
|
323
|
+
const localVarAxiosParamCreator = CashShiftsApiAxiosParamCreator(configuration);
|
|
324
|
+
return {
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
async findAll(options) {
|
|
331
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
|
|
332
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
333
|
+
const localVarOperationServerBasePath = operationServerMap["CashShiftsApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
334
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @param {number} id
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
async findOne(id, options) {
|
|
343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
|
|
344
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
345
|
+
const localVarOperationServerBasePath = operationServerMap["CashShiftsApi.findOne"]?.[localVarOperationServerIndex]?.url;
|
|
346
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
var CashShiftsApi = class extends BaseAPI {
|
|
351
|
+
/**
|
|
352
|
+
*
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
* @memberof CashShiftsApi
|
|
356
|
+
*/
|
|
357
|
+
findAll(options) {
|
|
358
|
+
return CashShiftsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @param {number} id
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
* @memberof CashShiftsApi
|
|
366
|
+
*/
|
|
367
|
+
findOne(id, options) {
|
|
368
|
+
return CashShiftsApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
369
|
+
}
|
|
370
|
+
};
|
|
270
371
|
var CategoriesApiAxiosParamCreator = function(configuration) {
|
|
271
372
|
return {
|
|
272
373
|
/**
|
|
@@ -275,7 +376,288 @@ var CategoriesApiAxiosParamCreator = function(configuration) {
|
|
|
275
376
|
* @throws {RequiredError}
|
|
276
377
|
*/
|
|
277
378
|
findAll: async (options = {}) => {
|
|
278
|
-
const localVarPath = `/categories`;
|
|
379
|
+
const localVarPath = `/categories`;
|
|
380
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
381
|
+
let baseOptions;
|
|
382
|
+
if (configuration) {
|
|
383
|
+
baseOptions = configuration.baseOptions;
|
|
384
|
+
}
|
|
385
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
386
|
+
const localVarHeaderParameter = {};
|
|
387
|
+
const localVarQueryParameter = {};
|
|
388
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
390
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
391
|
+
return {
|
|
392
|
+
url: toPathString(localVarUrlObj),
|
|
393
|
+
options: localVarRequestOptions
|
|
394
|
+
};
|
|
395
|
+
},
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @param {number} id
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
findOne: async (id, options = {}) => {
|
|
403
|
+
assertParamExists("findOne", "id", id);
|
|
404
|
+
const localVarPath = `/categories/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
405
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
406
|
+
let baseOptions;
|
|
407
|
+
if (configuration) {
|
|
408
|
+
baseOptions = configuration.baseOptions;
|
|
409
|
+
}
|
|
410
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
411
|
+
const localVarHeaderParameter = {};
|
|
412
|
+
const localVarQueryParameter = {};
|
|
413
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
414
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
415
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
416
|
+
return {
|
|
417
|
+
url: toPathString(localVarUrlObj),
|
|
418
|
+
options: localVarRequestOptions
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
var CategoriesApiFp = function(configuration) {
|
|
424
|
+
const localVarAxiosParamCreator = CategoriesApiAxiosParamCreator(configuration);
|
|
425
|
+
return {
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
*/
|
|
431
|
+
async findAll(options) {
|
|
432
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
|
|
433
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
434
|
+
const localVarOperationServerBasePath = operationServerMap["CategoriesApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
435
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
436
|
+
},
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @param {number} id
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
async findOne(id, options) {
|
|
444
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
|
|
445
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
446
|
+
const localVarOperationServerBasePath = operationServerMap["CategoriesApi.findOne"]?.[localVarOperationServerIndex]?.url;
|
|
447
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
var CategoriesApi = class extends BaseAPI {
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
* @memberof CategoriesApi
|
|
457
|
+
*/
|
|
458
|
+
findAll(options) {
|
|
459
|
+
return CategoriesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @param {number} id
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
* @memberof CategoriesApi
|
|
467
|
+
*/
|
|
468
|
+
findOne(id, options) {
|
|
469
|
+
return CategoriesApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
var DashboardApiAxiosParamCreator = function(configuration) {
|
|
473
|
+
return {
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @param {*} [options] Override http request option.
|
|
477
|
+
* @throws {RequiredError}
|
|
478
|
+
*/
|
|
479
|
+
getStats: async (options = {}) => {
|
|
480
|
+
const localVarPath = `/dashboard/stats`;
|
|
481
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
482
|
+
let baseOptions;
|
|
483
|
+
if (configuration) {
|
|
484
|
+
baseOptions = configuration.baseOptions;
|
|
485
|
+
}
|
|
486
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
487
|
+
const localVarHeaderParameter = {};
|
|
488
|
+
const localVarQueryParameter = {};
|
|
489
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
490
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
491
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
492
|
+
return {
|
|
493
|
+
url: toPathString(localVarUrlObj),
|
|
494
|
+
options: localVarRequestOptions
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
var DashboardApiFp = function(configuration) {
|
|
500
|
+
const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration);
|
|
501
|
+
return {
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
async getStats(options) {
|
|
508
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
|
|
509
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
510
|
+
const localVarOperationServerBasePath = operationServerMap["DashboardApi.getStats"]?.[localVarOperationServerIndex]?.url;
|
|
511
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
var DashboardApi = class extends BaseAPI {
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @param {*} [options] Override http request option.
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
* @memberof DashboardApi
|
|
521
|
+
*/
|
|
522
|
+
getStats(options) {
|
|
523
|
+
return DashboardApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
var DishesApiAxiosParamCreator = function(configuration) {
|
|
527
|
+
return {
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
*/
|
|
533
|
+
findAll: async (options = {}) => {
|
|
534
|
+
const localVarPath = `/dishes`;
|
|
535
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
536
|
+
let baseOptions;
|
|
537
|
+
if (configuration) {
|
|
538
|
+
baseOptions = configuration.baseOptions;
|
|
539
|
+
}
|
|
540
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
541
|
+
const localVarHeaderParameter = {};
|
|
542
|
+
const localVarQueryParameter = {};
|
|
543
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
544
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
545
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
546
|
+
return {
|
|
547
|
+
url: toPathString(localVarUrlObj),
|
|
548
|
+
options: localVarRequestOptions
|
|
549
|
+
};
|
|
550
|
+
},
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @param {number} id
|
|
554
|
+
* @param {*} [options] Override http request option.
|
|
555
|
+
* @throws {RequiredError}
|
|
556
|
+
*/
|
|
557
|
+
findOne: async (id, options = {}) => {
|
|
558
|
+
assertParamExists("findOne", "id", id);
|
|
559
|
+
const localVarPath = `/dishes/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
560
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
561
|
+
let baseOptions;
|
|
562
|
+
if (configuration) {
|
|
563
|
+
baseOptions = configuration.baseOptions;
|
|
564
|
+
}
|
|
565
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
566
|
+
const localVarHeaderParameter = {};
|
|
567
|
+
const localVarQueryParameter = {};
|
|
568
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
569
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
570
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
571
|
+
return {
|
|
572
|
+
url: toPathString(localVarUrlObj),
|
|
573
|
+
options: localVarRequestOptions
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
var DishesApiFp = function(configuration) {
|
|
579
|
+
const localVarAxiosParamCreator = DishesApiAxiosParamCreator(configuration);
|
|
580
|
+
return {
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @param {*} [options] Override http request option.
|
|
584
|
+
* @throws {RequiredError}
|
|
585
|
+
*/
|
|
586
|
+
async findAll(options) {
|
|
587
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
|
|
588
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
589
|
+
const localVarOperationServerBasePath = operationServerMap["DishesApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
590
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
591
|
+
},
|
|
592
|
+
/**
|
|
593
|
+
*
|
|
594
|
+
* @param {number} id
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
async findOne(id, options) {
|
|
599
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
|
|
600
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
601
|
+
const localVarOperationServerBasePath = operationServerMap["DishesApi.findOne"]?.[localVarOperationServerIndex]?.url;
|
|
602
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
var DishesApi = class extends BaseAPI {
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
* @memberof DishesApi
|
|
612
|
+
*/
|
|
613
|
+
findAll(options) {
|
|
614
|
+
return DishesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @param {number} id
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
* @memberof DishesApi
|
|
622
|
+
*/
|
|
623
|
+
findOne(id, options) {
|
|
624
|
+
return DishesApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
var IngredientsApiAxiosParamCreator = function(configuration) {
|
|
628
|
+
return {
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
findAll: async (options = {}) => {
|
|
635
|
+
const localVarPath = `/ingredients`;
|
|
636
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
637
|
+
let baseOptions;
|
|
638
|
+
if (configuration) {
|
|
639
|
+
baseOptions = configuration.baseOptions;
|
|
640
|
+
}
|
|
641
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
642
|
+
const localVarHeaderParameter = {};
|
|
643
|
+
const localVarQueryParameter = {};
|
|
644
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
645
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
646
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
647
|
+
return {
|
|
648
|
+
url: toPathString(localVarUrlObj),
|
|
649
|
+
options: localVarRequestOptions
|
|
650
|
+
};
|
|
651
|
+
},
|
|
652
|
+
/**
|
|
653
|
+
*
|
|
654
|
+
* @param {number} id
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
findOne: async (id, options = {}) => {
|
|
659
|
+
assertParamExists("findOne", "id", id);
|
|
660
|
+
const localVarPath = `/ingredients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
279
661
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
280
662
|
let baseOptions;
|
|
281
663
|
if (configuration) {
|
|
@@ -294,8 +676,8 @@ var CategoriesApiAxiosParamCreator = function(configuration) {
|
|
|
294
676
|
}
|
|
295
677
|
};
|
|
296
678
|
};
|
|
297
|
-
var
|
|
298
|
-
const localVarAxiosParamCreator =
|
|
679
|
+
var IngredientsApiFp = function(configuration) {
|
|
680
|
+
const localVarAxiosParamCreator = IngredientsApiAxiosParamCreator(configuration);
|
|
299
681
|
return {
|
|
300
682
|
/**
|
|
301
683
|
*
|
|
@@ -305,23 +687,45 @@ var CategoriesApiFp = function(configuration) {
|
|
|
305
687
|
async findAll(options) {
|
|
306
688
|
const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
|
|
307
689
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
308
|
-
const localVarOperationServerBasePath = operationServerMap["
|
|
690
|
+
const localVarOperationServerBasePath = operationServerMap["IngredientsApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
691
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
692
|
+
},
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @param {number} id
|
|
696
|
+
* @param {*} [options] Override http request option.
|
|
697
|
+
* @throws {RequiredError}
|
|
698
|
+
*/
|
|
699
|
+
async findOne(id, options) {
|
|
700
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
|
|
701
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
702
|
+
const localVarOperationServerBasePath = operationServerMap["IngredientsApi.findOne"]?.[localVarOperationServerIndex]?.url;
|
|
309
703
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
310
704
|
}
|
|
311
705
|
};
|
|
312
706
|
};
|
|
313
|
-
var
|
|
707
|
+
var IngredientsApi = class extends BaseAPI {
|
|
314
708
|
/**
|
|
315
709
|
*
|
|
316
710
|
* @param {*} [options] Override http request option.
|
|
317
711
|
* @throws {RequiredError}
|
|
318
|
-
* @memberof
|
|
712
|
+
* @memberof IngredientsApi
|
|
319
713
|
*/
|
|
320
714
|
findAll(options) {
|
|
321
|
-
return
|
|
715
|
+
return IngredientsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
*
|
|
719
|
+
* @param {number} id
|
|
720
|
+
* @param {*} [options] Override http request option.
|
|
721
|
+
* @throws {RequiredError}
|
|
722
|
+
* @memberof IngredientsApi
|
|
723
|
+
*/
|
|
724
|
+
findOne(id, options) {
|
|
725
|
+
return IngredientsApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
322
726
|
}
|
|
323
727
|
};
|
|
324
|
-
var
|
|
728
|
+
var InventoryApiAxiosParamCreator = function(configuration) {
|
|
325
729
|
return {
|
|
326
730
|
/**
|
|
327
731
|
*
|
|
@@ -329,7 +733,7 @@ var DishesApiAxiosParamCreator = function(configuration) {
|
|
|
329
733
|
* @throws {RequiredError}
|
|
330
734
|
*/
|
|
331
735
|
findAll: async (options = {}) => {
|
|
332
|
-
const localVarPath = `/
|
|
736
|
+
const localVarPath = `/inventory`;
|
|
333
737
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
334
738
|
let baseOptions;
|
|
335
739
|
if (configuration) {
|
|
@@ -354,7 +758,7 @@ var DishesApiAxiosParamCreator = function(configuration) {
|
|
|
354
758
|
*/
|
|
355
759
|
findOne: async (id, options = {}) => {
|
|
356
760
|
assertParamExists("findOne", "id", id);
|
|
357
|
-
const localVarPath = `/
|
|
761
|
+
const localVarPath = `/inventory/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
358
762
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
359
763
|
let baseOptions;
|
|
360
764
|
if (configuration) {
|
|
@@ -373,8 +777,8 @@ var DishesApiAxiosParamCreator = function(configuration) {
|
|
|
373
777
|
}
|
|
374
778
|
};
|
|
375
779
|
};
|
|
376
|
-
var
|
|
377
|
-
const localVarAxiosParamCreator =
|
|
780
|
+
var InventoryApiFp = function(configuration) {
|
|
781
|
+
const localVarAxiosParamCreator = InventoryApiAxiosParamCreator(configuration);
|
|
378
782
|
return {
|
|
379
783
|
/**
|
|
380
784
|
*
|
|
@@ -384,7 +788,7 @@ var DishesApiFp = function(configuration) {
|
|
|
384
788
|
async findAll(options) {
|
|
385
789
|
const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
|
|
386
790
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
387
|
-
const localVarOperationServerBasePath = operationServerMap["
|
|
791
|
+
const localVarOperationServerBasePath = operationServerMap["InventoryApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
388
792
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
389
793
|
},
|
|
390
794
|
/**
|
|
@@ -396,30 +800,84 @@ var DishesApiFp = function(configuration) {
|
|
|
396
800
|
async findOne(id, options) {
|
|
397
801
|
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
|
|
398
802
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
399
|
-
const localVarOperationServerBasePath = operationServerMap["
|
|
803
|
+
const localVarOperationServerBasePath = operationServerMap["InventoryApi.findOne"]?.[localVarOperationServerIndex]?.url;
|
|
400
804
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
401
805
|
}
|
|
402
806
|
};
|
|
403
807
|
};
|
|
404
|
-
var
|
|
808
|
+
var InventoryApi = class extends BaseAPI {
|
|
405
809
|
/**
|
|
406
810
|
*
|
|
407
811
|
* @param {*} [options] Override http request option.
|
|
408
812
|
* @throws {RequiredError}
|
|
409
|
-
* @memberof
|
|
813
|
+
* @memberof InventoryApi
|
|
410
814
|
*/
|
|
411
815
|
findAll(options) {
|
|
412
|
-
return
|
|
816
|
+
return InventoryApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
413
817
|
}
|
|
414
818
|
/**
|
|
415
819
|
*
|
|
416
820
|
* @param {number} id
|
|
417
821
|
* @param {*} [options] Override http request option.
|
|
418
822
|
* @throws {RequiredError}
|
|
419
|
-
* @memberof
|
|
823
|
+
* @memberof InventoryApi
|
|
420
824
|
*/
|
|
421
825
|
findOne(id, options) {
|
|
422
|
-
return
|
|
826
|
+
return InventoryApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
var MenuApiAxiosParamCreator = function(configuration) {
|
|
830
|
+
return {
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @param {*} [options] Override http request option.
|
|
834
|
+
* @throws {RequiredError}
|
|
835
|
+
*/
|
|
836
|
+
findAll: async (options = {}) => {
|
|
837
|
+
const localVarPath = `/menu`;
|
|
838
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
839
|
+
let baseOptions;
|
|
840
|
+
if (configuration) {
|
|
841
|
+
baseOptions = configuration.baseOptions;
|
|
842
|
+
}
|
|
843
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
844
|
+
const localVarHeaderParameter = {};
|
|
845
|
+
const localVarQueryParameter = {};
|
|
846
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
847
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
848
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
849
|
+
return {
|
|
850
|
+
url: toPathString(localVarUrlObj),
|
|
851
|
+
options: localVarRequestOptions
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
var MenuApiFp = function(configuration) {
|
|
857
|
+
const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration);
|
|
858
|
+
return {
|
|
859
|
+
/**
|
|
860
|
+
*
|
|
861
|
+
* @param {*} [options] Override http request option.
|
|
862
|
+
* @throws {RequiredError}
|
|
863
|
+
*/
|
|
864
|
+
async findAll(options) {
|
|
865
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
|
|
866
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
867
|
+
const localVarOperationServerBasePath = operationServerMap["MenuApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
868
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
var MenuApi = class extends BaseAPI {
|
|
873
|
+
/**
|
|
874
|
+
*
|
|
875
|
+
* @param {*} [options] Override http request option.
|
|
876
|
+
* @throws {RequiredError}
|
|
877
|
+
* @memberof MenuApi
|
|
878
|
+
*/
|
|
879
|
+
findAll(options) {
|
|
880
|
+
return MenuApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
423
881
|
}
|
|
424
882
|
};
|
|
425
883
|
var OrdersApiAxiosParamCreator = function(configuration) {
|
|
@@ -714,6 +1172,31 @@ var ProductsApiAxiosParamCreator = function(configuration) {
|
|
|
714
1172
|
url: toPathString(localVarUrlObj),
|
|
715
1173
|
options: localVarRequestOptions
|
|
716
1174
|
};
|
|
1175
|
+
},
|
|
1176
|
+
/**
|
|
1177
|
+
*
|
|
1178
|
+
* @param {number} id
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
findOne: async (id, options = {}) => {
|
|
1183
|
+
assertParamExists("findOne", "id", id);
|
|
1184
|
+
const localVarPath = `/products/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1185
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1186
|
+
let baseOptions;
|
|
1187
|
+
if (configuration) {
|
|
1188
|
+
baseOptions = configuration.baseOptions;
|
|
1189
|
+
}
|
|
1190
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1191
|
+
const localVarHeaderParameter = {};
|
|
1192
|
+
const localVarQueryParameter = {};
|
|
1193
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1194
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1195
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1196
|
+
return {
|
|
1197
|
+
url: toPathString(localVarUrlObj),
|
|
1198
|
+
options: localVarRequestOptions
|
|
1199
|
+
};
|
|
717
1200
|
}
|
|
718
1201
|
};
|
|
719
1202
|
};
|
|
@@ -730,6 +1213,18 @@ var ProductsApiFp = function(configuration) {
|
|
|
730
1213
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
731
1214
|
const localVarOperationServerBasePath = operationServerMap["ProductsApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
732
1215
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1216
|
+
},
|
|
1217
|
+
/**
|
|
1218
|
+
*
|
|
1219
|
+
* @param {number} id
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
*/
|
|
1223
|
+
async findOne(id, options) {
|
|
1224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
|
|
1225
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1226
|
+
const localVarOperationServerBasePath = operationServerMap["ProductsApi.findOne"]?.[localVarOperationServerIndex]?.url;
|
|
1227
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
733
1228
|
}
|
|
734
1229
|
};
|
|
735
1230
|
};
|
|
@@ -743,6 +1238,70 @@ var ProductsApi = class extends BaseAPI {
|
|
|
743
1238
|
findAll(options) {
|
|
744
1239
|
return ProductsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
745
1240
|
}
|
|
1241
|
+
/**
|
|
1242
|
+
*
|
|
1243
|
+
* @param {number} id
|
|
1244
|
+
* @param {*} [options] Override http request option.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
* @memberof ProductsApi
|
|
1247
|
+
*/
|
|
1248
|
+
findOne(id, options) {
|
|
1249
|
+
return ProductsApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
1250
|
+
}
|
|
1251
|
+
};
|
|
1252
|
+
var TransactionsApiAxiosParamCreator = function(configuration) {
|
|
1253
|
+
return {
|
|
1254
|
+
/**
|
|
1255
|
+
*
|
|
1256
|
+
* @param {*} [options] Override http request option.
|
|
1257
|
+
* @throws {RequiredError}
|
|
1258
|
+
*/
|
|
1259
|
+
findAll: async (options = {}) => {
|
|
1260
|
+
const localVarPath = `/transactions`;
|
|
1261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1262
|
+
let baseOptions;
|
|
1263
|
+
if (configuration) {
|
|
1264
|
+
baseOptions = configuration.baseOptions;
|
|
1265
|
+
}
|
|
1266
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1267
|
+
const localVarHeaderParameter = {};
|
|
1268
|
+
const localVarQueryParameter = {};
|
|
1269
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1270
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1271
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1272
|
+
return {
|
|
1273
|
+
url: toPathString(localVarUrlObj),
|
|
1274
|
+
options: localVarRequestOptions
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
var TransactionsApiFp = function(configuration) {
|
|
1280
|
+
const localVarAxiosParamCreator = TransactionsApiAxiosParamCreator(configuration);
|
|
1281
|
+
return {
|
|
1282
|
+
/**
|
|
1283
|
+
*
|
|
1284
|
+
* @param {*} [options] Override http request option.
|
|
1285
|
+
* @throws {RequiredError}
|
|
1286
|
+
*/
|
|
1287
|
+
async findAll(options) {
|
|
1288
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
|
|
1289
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1290
|
+
const localVarOperationServerBasePath = operationServerMap["TransactionsApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
1291
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1292
|
+
}
|
|
1293
|
+
};
|
|
1294
|
+
};
|
|
1295
|
+
var TransactionsApi = class extends BaseAPI {
|
|
1296
|
+
/**
|
|
1297
|
+
*
|
|
1298
|
+
* @param {*} [options] Override http request option.
|
|
1299
|
+
* @throws {RequiredError}
|
|
1300
|
+
* @memberof TransactionsApi
|
|
1301
|
+
*/
|
|
1302
|
+
findAll(options) {
|
|
1303
|
+
return TransactionsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
1304
|
+
}
|
|
746
1305
|
};
|
|
747
1306
|
|
|
748
1307
|
// src/api/generated/configuration.ts
|
|
@@ -835,10 +1394,16 @@ var Configuration = class {
|
|
|
835
1394
|
};
|
|
836
1395
|
var tanstackClient;
|
|
837
1396
|
var authApi;
|
|
1397
|
+
var cashShiftsApi;
|
|
838
1398
|
var categoriesApi;
|
|
1399
|
+
var dashboardApi;
|
|
839
1400
|
var dishesApi;
|
|
1401
|
+
var ingredientsApi;
|
|
1402
|
+
var inventoryApi;
|
|
1403
|
+
var menuApi;
|
|
840
1404
|
var ordersApi;
|
|
841
1405
|
var productsApi;
|
|
1406
|
+
var transactionsApi;
|
|
842
1407
|
function initApiClient(config) {
|
|
843
1408
|
const apiClient = globalAxios2.create({
|
|
844
1409
|
baseURL: config.baseURL,
|
|
@@ -849,10 +1414,16 @@ function initApiClient(config) {
|
|
|
849
1414
|
});
|
|
850
1415
|
tanstackClient = new QueryClient();
|
|
851
1416
|
authApi = new AuthApi(configuration, void 0, apiClient);
|
|
1417
|
+
cashShiftsApi = new CashShiftsApi(configuration, void 0, apiClient);
|
|
852
1418
|
categoriesApi = new CategoriesApi(configuration, void 0, apiClient);
|
|
1419
|
+
dashboardApi = new DashboardApi(configuration, void 0, apiClient);
|
|
853
1420
|
dishesApi = new DishesApi(configuration, void 0, apiClient);
|
|
1421
|
+
ingredientsApi = new IngredientsApi(configuration, void 0, apiClient);
|
|
1422
|
+
inventoryApi = new InventoryApi(configuration, void 0, apiClient);
|
|
1423
|
+
menuApi = new MenuApi(configuration, void 0, apiClient);
|
|
854
1424
|
ordersApi = new OrdersApi(configuration, void 0, apiClient);
|
|
855
1425
|
productsApi = new ProductsApi(configuration, void 0, apiClient);
|
|
1426
|
+
transactionsApi = new TransactionsApi(configuration, void 0, apiClient);
|
|
856
1427
|
return apiClient;
|
|
857
1428
|
}
|
|
858
1429
|
var useAuthApi = () => {
|
|
@@ -884,6 +1455,20 @@ var useAuthApi = () => {
|
|
|
884
1455
|
mutateSignUp
|
|
885
1456
|
};
|
|
886
1457
|
};
|
|
1458
|
+
var getCashShiftsQuery = () => queryOptions({
|
|
1459
|
+
queryKey: ["cash-shifts"],
|
|
1460
|
+
queryFn: () => cashShiftsApi.findAll().then((res) => res.data)
|
|
1461
|
+
});
|
|
1462
|
+
var getCashShiftQuery = (id) => queryOptions({
|
|
1463
|
+
queryKey: ["cash-shifts", id],
|
|
1464
|
+
queryFn: () => cashShiftsApi.findOne(id).then((res) => res.data)
|
|
1465
|
+
});
|
|
1466
|
+
var useCashShiftsApi = () => {
|
|
1467
|
+
return {
|
|
1468
|
+
getCashShiftsQuery,
|
|
1469
|
+
getCashShiftQuery
|
|
1470
|
+
};
|
|
1471
|
+
};
|
|
887
1472
|
var getCategoriesQuery = () => queryOptions({
|
|
888
1473
|
queryKey: ["categories"],
|
|
889
1474
|
queryFn: () => categoriesApi.findAll().then((res) => res.data)
|
|
@@ -893,6 +1478,15 @@ var useCategoriesApi = () => {
|
|
|
893
1478
|
getCategoriesQuery
|
|
894
1479
|
};
|
|
895
1480
|
};
|
|
1481
|
+
var getStatsQuery = () => queryOptions({
|
|
1482
|
+
queryKey: ["dashboard"],
|
|
1483
|
+
queryFn: () => dashboardApi.getStats().then((res) => res.data)
|
|
1484
|
+
});
|
|
1485
|
+
var useDashboardApi = () => {
|
|
1486
|
+
return {
|
|
1487
|
+
getStatsQuery
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
896
1490
|
var getDishesQuery = () => queryOptions({
|
|
897
1491
|
queryKey: ["dishes"],
|
|
898
1492
|
queryFn: () => dishesApi.findAll().then((res) => res.data)
|
|
@@ -907,6 +1501,43 @@ var useDishesApi = () => {
|
|
|
907
1501
|
getDishQuery
|
|
908
1502
|
};
|
|
909
1503
|
};
|
|
1504
|
+
var getIngredientsQuery = () => queryOptions({
|
|
1505
|
+
queryKey: ["ingredients"],
|
|
1506
|
+
queryFn: () => ingredientsApi.findAll().then((res) => res.data)
|
|
1507
|
+
});
|
|
1508
|
+
var getIngredientQuery = (id) => queryOptions({
|
|
1509
|
+
queryKey: ["ingredients", id],
|
|
1510
|
+
queryFn: () => ingredientsApi.findOne(id).then((res) => res.data)
|
|
1511
|
+
});
|
|
1512
|
+
var useIngredientsApi = () => {
|
|
1513
|
+
return {
|
|
1514
|
+
getIngredientsQuery,
|
|
1515
|
+
getIngredientQuery
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
|
+
var getInventoriesQuery = () => queryOptions({
|
|
1519
|
+
queryKey: ["inventory"],
|
|
1520
|
+
queryFn: () => inventoryApi.findAll().then((res) => res.data)
|
|
1521
|
+
});
|
|
1522
|
+
var getInventoryQuery = (id) => queryOptions({
|
|
1523
|
+
queryKey: ["inventory", id],
|
|
1524
|
+
queryFn: () => inventoryApi.findOne(id).then((res) => res.data)
|
|
1525
|
+
});
|
|
1526
|
+
var useInventoryApi = () => {
|
|
1527
|
+
return {
|
|
1528
|
+
getInventoriesQuery,
|
|
1529
|
+
getInventoryQuery
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
var getMenuQuery = () => queryOptions({
|
|
1533
|
+
queryKey: ["menu"],
|
|
1534
|
+
queryFn: () => menuApi.findAll().then((res) => res.data)
|
|
1535
|
+
});
|
|
1536
|
+
var useMenuApi = () => {
|
|
1537
|
+
return {
|
|
1538
|
+
getMenuQuery
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
910
1541
|
var getOrdersQuery = (params) => queryOptions({
|
|
911
1542
|
queryKey: ["orders", params],
|
|
912
1543
|
queryFn: () => ordersApi.findAll(params?.page, params?.limit, params?.status).then((res) => res.data)
|
|
@@ -955,7 +1586,16 @@ var useProductsApi = () => {
|
|
|
955
1586
|
getProductsQuery
|
|
956
1587
|
};
|
|
957
1588
|
};
|
|
1589
|
+
var getTransactionsQuery = () => queryOptions({
|
|
1590
|
+
queryKey: ["transactions"],
|
|
1591
|
+
queryFn: () => transactionsApi.findAll().then((res) => res.data)
|
|
1592
|
+
});
|
|
1593
|
+
var useTransactionsApi = () => {
|
|
1594
|
+
return {
|
|
1595
|
+
getTransactionsQuery
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
958
1598
|
|
|
959
|
-
export { authApi, categoriesApi, dishesApi, initApiClient, ordersApi, productsApi, tanstackClient, useAuthApi, useCategoriesApi, useDishesApi, useOrdersApi, useProductsApi };
|
|
1599
|
+
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 };
|
|
960
1600
|
//# sourceMappingURL=index.js.map
|
|
961
1601
|
//# sourceMappingURL=index.js.map
|