new WorkOrderService()
Methods
-
asynccreateWorkOrder(workOrder)
Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 22 -
Creates a new work order with business validation.
Name Type Description workOrderThe work order data to create
Returns:
Promise resolving to the created work order -
asyncgetStoredWorkOrders(appId, modelId, group, view)
Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 47 -
Retrieves stored work orders (with persisted coordinates) for a specific context.
Name Type Description appIdApplication identifier
modelIdModel identifier
groupGroup identifier
viewView identifier
Returns:
Promise resolving to stored work orders -
asyncgetWorkOrderMetadata()
Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 65 -
Retrieves work order metadata.
Returns:
Promise resolving to metadata -
asyncgetWorkOrders(appId, modelId, group, view)
Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 35 -
Retrieves newly added work orders for a specific context.
Name Type Description appIdApplication identifier
modelIdModel identifier
groupGroup identifier
viewView identifier
Returns:
Promise resolving to new work orders -
asyncupdateWorkOrderCoordinates(params)
Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 56 -
Updates coordinates for a work order with validation.
Name Type Description paramsParameters for coordinate update
Returns:
Promise resolving to the update result -
validateCoordinateUpdate(params)
Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 105 -
Validates coordinate update parameters.
Name Type Description paramsCoordinate update parameters
Throws:
Error if validation fails
-
validateWorkOrderCreation(workOrder)
Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 74 -
Validates work order creation data.
Name Type Description workOrderWork order data to validate
Throws:
Error if validation fails
