@horpynka/api-sdk 1.0.13 → 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.map +1 -1
- package/dist/index.d.cts +23 -4
- package/dist/index.d.ts +23 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -471,6 +471,25 @@ interface DishIngredient {
|
|
|
471
471
|
*/
|
|
472
472
|
'ingredient': Ingredient;
|
|
473
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @export
|
|
477
|
+
* @interface FindAllCategoriesResponseDto
|
|
478
|
+
*/
|
|
479
|
+
interface FindAllCategoriesResponseDto {
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @type {Array<Category>}
|
|
483
|
+
* @memberof FindAllCategoriesResponseDto
|
|
484
|
+
*/
|
|
485
|
+
'dishesCategories': Array<Category>;
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {Array<Category>}
|
|
489
|
+
* @memberof FindAllCategoriesResponseDto
|
|
490
|
+
*/
|
|
491
|
+
'productsCategories': Array<Category>;
|
|
492
|
+
}
|
|
474
493
|
/**
|
|
475
494
|
*
|
|
476
495
|
* @export
|
|
@@ -1157,7 +1176,7 @@ declare class CategoriesApi extends BaseAPI {
|
|
|
1157
1176
|
* @throws {RequiredError}
|
|
1158
1177
|
* @memberof CategoriesApi
|
|
1159
1178
|
*/
|
|
1160
|
-
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<
|
|
1179
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<FindAllCategoriesResponseDto, any, {}, any>>;
|
|
1161
1180
|
/**
|
|
1162
1181
|
*
|
|
1163
1182
|
* @param {number} id
|
|
@@ -1398,9 +1417,9 @@ declare const useCashShiftsApi: () => {
|
|
|
1398
1417
|
};
|
|
1399
1418
|
|
|
1400
1419
|
declare const useCategoriesApi: () => {
|
|
1401
|
-
getCategoriesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<
|
|
1402
|
-
queryFn?: _tanstack_query_core.QueryFunction<
|
|
1403
|
-
} & _tanstack_query_core.QueryKeyWithDataTag<string[],
|
|
1420
|
+
getCategoriesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<FindAllCategoriesResponseDto, Error, FindAllCategoriesResponseDto, string[]>, "queryFn"> & {
|
|
1421
|
+
queryFn?: _tanstack_query_core.QueryFunction<FindAllCategoriesResponseDto, string[], never> | undefined;
|
|
1422
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], FindAllCategoriesResponseDto, Error>;
|
|
1404
1423
|
};
|
|
1405
1424
|
|
|
1406
1425
|
declare const useDashboardApi: () => {
|
package/dist/index.d.ts
CHANGED
|
@@ -471,6 +471,25 @@ interface DishIngredient {
|
|
|
471
471
|
*/
|
|
472
472
|
'ingredient': Ingredient;
|
|
473
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @export
|
|
477
|
+
* @interface FindAllCategoriesResponseDto
|
|
478
|
+
*/
|
|
479
|
+
interface FindAllCategoriesResponseDto {
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @type {Array<Category>}
|
|
483
|
+
* @memberof FindAllCategoriesResponseDto
|
|
484
|
+
*/
|
|
485
|
+
'dishesCategories': Array<Category>;
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {Array<Category>}
|
|
489
|
+
* @memberof FindAllCategoriesResponseDto
|
|
490
|
+
*/
|
|
491
|
+
'productsCategories': Array<Category>;
|
|
492
|
+
}
|
|
474
493
|
/**
|
|
475
494
|
*
|
|
476
495
|
* @export
|
|
@@ -1157,7 +1176,7 @@ declare class CategoriesApi extends BaseAPI {
|
|
|
1157
1176
|
* @throws {RequiredError}
|
|
1158
1177
|
* @memberof CategoriesApi
|
|
1159
1178
|
*/
|
|
1160
|
-
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<
|
|
1179
|
+
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<FindAllCategoriesResponseDto, any, {}, any>>;
|
|
1161
1180
|
/**
|
|
1162
1181
|
*
|
|
1163
1182
|
* @param {number} id
|
|
@@ -1398,9 +1417,9 @@ declare const useCashShiftsApi: () => {
|
|
|
1398
1417
|
};
|
|
1399
1418
|
|
|
1400
1419
|
declare const useCategoriesApi: () => {
|
|
1401
|
-
getCategoriesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<
|
|
1402
|
-
queryFn?: _tanstack_query_core.QueryFunction<
|
|
1403
|
-
} & _tanstack_query_core.QueryKeyWithDataTag<string[],
|
|
1420
|
+
getCategoriesQuery: () => _tanstack_query_core.OmitKeyof<_tanstack_react_query.UseQueryOptions<FindAllCategoriesResponseDto, Error, FindAllCategoriesResponseDto, string[]>, "queryFn"> & {
|
|
1421
|
+
queryFn?: _tanstack_query_core.QueryFunction<FindAllCategoriesResponseDto, string[], never> | undefined;
|
|
1422
|
+
} & _tanstack_query_core.QueryKeyWithDataTag<string[], FindAllCategoriesResponseDto, Error>;
|
|
1404
1423
|
};
|
|
1405
1424
|
|
|
1406
1425
|
declare const useDashboardApi: () => {
|