Create the forntend API definitions for recipe service
This commit is contained in:
@@ -28,6 +28,7 @@ export { OrdersService } from './services/orders';
|
||||
export { forecastingService } from './services/forecasting';
|
||||
export { productionService } from './services/production';
|
||||
export { posService } from './services/pos';
|
||||
export { recipesService } from './services/recipes';
|
||||
|
||||
// Types - Auth
|
||||
export type {
|
||||
@@ -374,6 +375,31 @@ export type {
|
||||
POSEnvironment,
|
||||
} from './types/pos';
|
||||
|
||||
// Types - Recipes
|
||||
export type {
|
||||
RecipeStatus,
|
||||
MeasurementUnit,
|
||||
ProductionStatus as RecipeProductionStatus,
|
||||
ProductionPriority as RecipeProductionPriority,
|
||||
RecipeIngredientCreate,
|
||||
RecipeIngredientUpdate,
|
||||
RecipeIngredientResponse,
|
||||
RecipeCreate,
|
||||
RecipeUpdate,
|
||||
RecipeResponse,
|
||||
RecipeSearchRequest,
|
||||
RecipeSearchParams,
|
||||
RecipeDuplicateRequest,
|
||||
RecipeFeasibilityResponse,
|
||||
RecipeStatisticsResponse,
|
||||
RecipeCategoriesResponse,
|
||||
ProductionBatchCreate as RecipeProductionBatchCreate,
|
||||
ProductionBatchUpdate as RecipeProductionBatchUpdate,
|
||||
ProductionBatchResponse as RecipeProductionBatchResponse,
|
||||
RecipeFormData,
|
||||
RecipeUpdateFormData,
|
||||
} from './types/recipes';
|
||||
|
||||
// Hooks - Auth
|
||||
export {
|
||||
useAuthProfile,
|
||||
@@ -689,12 +715,37 @@ export {
|
||||
posKeys,
|
||||
} from './hooks/pos';
|
||||
|
||||
// Hooks - Recipes
|
||||
export {
|
||||
useRecipe,
|
||||
useRecipes,
|
||||
useInfiniteRecipes,
|
||||
useRecipeStatistics,
|
||||
useRecipeCategories,
|
||||
useRecipeFeasibility,
|
||||
useCreateRecipe,
|
||||
useUpdateRecipe,
|
||||
useDeleteRecipe,
|
||||
useDuplicateRecipe,
|
||||
useActivateRecipe,
|
||||
useRecipeProductionBatch,
|
||||
useRecipeProductionBatches,
|
||||
useRecipeProductionBatchesByRecipe,
|
||||
useCreateRecipeProductionBatch,
|
||||
useUpdateRecipeProductionBatch,
|
||||
useDeleteRecipeProductionBatch,
|
||||
useStartRecipeProductionBatch,
|
||||
useCompleteRecipeProductionBatch,
|
||||
useCancelRecipeProductionBatch,
|
||||
recipesKeys,
|
||||
} from './hooks/recipes';
|
||||
|
||||
// Query Key Factories (for advanced usage)
|
||||
export {
|
||||
authKeys,
|
||||
userKeys,
|
||||
onboardingKeys,
|
||||
tenantKeys,
|
||||
export {
|
||||
authKeys,
|
||||
userKeys,
|
||||
onboardingKeys,
|
||||
tenantKeys,
|
||||
salesKeys,
|
||||
inventoryKeys,
|
||||
classificationKeys,
|
||||
|
||||
Reference in New Issue
Block a user