Add frontend order API
This commit is contained in:
@@ -24,6 +24,7 @@ export { foodSafetyService } from './services/foodSafety';
|
||||
export { trainingService } from './services/training';
|
||||
export { alertProcessorService } from './services/alert_processor';
|
||||
export { suppliersService } from './services/suppliers';
|
||||
export { OrdersService } from './services/orders';
|
||||
|
||||
// Types - Auth
|
||||
export type {
|
||||
@@ -234,6 +235,42 @@ export {
|
||||
PerformanceMetricType,
|
||||
} from './types/suppliers';
|
||||
|
||||
// Types - Orders
|
||||
export type {
|
||||
CustomerType,
|
||||
DeliveryMethod,
|
||||
PaymentTerms as OrdersPaymentTerms,
|
||||
PaymentMethod,
|
||||
PaymentStatus,
|
||||
CustomerSegment,
|
||||
PriorityLevel,
|
||||
OrderType,
|
||||
OrderStatus,
|
||||
OrderSource,
|
||||
SalesChannel,
|
||||
BusinessModel,
|
||||
CustomerBase,
|
||||
CustomerCreate,
|
||||
CustomerUpdate,
|
||||
CustomerResponse,
|
||||
OrderItemBase,
|
||||
OrderItemCreate,
|
||||
OrderItemUpdate,
|
||||
OrderItemResponse,
|
||||
OrderBase,
|
||||
OrderCreate,
|
||||
OrderUpdate,
|
||||
OrderResponse,
|
||||
OrdersDashboardSummary,
|
||||
DemandRequirements,
|
||||
BusinessModelDetection,
|
||||
ServiceStatus,
|
||||
GetOrdersParams,
|
||||
GetCustomersParams,
|
||||
UpdateOrderStatusParams,
|
||||
GetDemandRequirementsParams,
|
||||
} from './types/orders';
|
||||
|
||||
// Hooks - Auth
|
||||
export {
|
||||
useAuthProfile,
|
||||
@@ -460,6 +497,24 @@ export {
|
||||
suppliersKeys,
|
||||
} from './hooks/suppliers';
|
||||
|
||||
// Hooks - Orders
|
||||
export {
|
||||
useOrders,
|
||||
useOrder,
|
||||
useCustomers,
|
||||
useCustomer,
|
||||
useOrdersDashboard,
|
||||
useDemandRequirements,
|
||||
useBusinessModelDetection,
|
||||
useOrdersServiceStatus,
|
||||
useCreateOrder,
|
||||
useUpdateOrderStatus,
|
||||
useCreateCustomer,
|
||||
useUpdateCustomer,
|
||||
useInvalidateOrders,
|
||||
ordersKeys,
|
||||
} from './hooks/orders';
|
||||
|
||||
// Query Key Factories (for advanced usage)
|
||||
export {
|
||||
authKeys,
|
||||
@@ -474,5 +529,6 @@ export {
|
||||
trainingKeys,
|
||||
alertProcessorKeys,
|
||||
suppliersKeys,
|
||||
ordersKeys,
|
||||
dataImportKeys,
|
||||
};
|
||||
Reference in New Issue
Block a user