Class: GOWOServices

GOWOServices

Facade class providing backwards compatibility with the original GOWOServices API. Delegates operations to the new service layer while maintaining the same interface. Follows the Facade pattern to simplify access to the complex subsystem.

new GOWOServices()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services.ts, line 9

Methods

async,staticGOWOServices.createWorkOrder(workOrderToSave)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services.ts, line 30

Creates a new work order in the database.

Name Type Description
workOrderToSave

The data for the work order to be created.

Returns:
A promise resolving to the API response.

async,staticGOWOServices.getStoredWorkOrders(props)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services.ts, line 62

Retrieves stored work orders (including persisted coordinates) for a specific application/model.

Name Type Description
props

The context identifiers required to fetch stored work orders.

Returns:
A promise resolving to the API response containing stored work orders.

async,staticGOWOServices.getWorkOrderMetaData()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services.ts, line 91

Retrieves metadata for all work orders.

Returns:
A promise resolving to the API response containing the metadata.

staticGOWOServices.getWorkOrderService()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services.ts, line 22

Gets the work order service instance.

Returns:
WorkOrderService instance configured for current environment

async,staticGOWOServices.getWorkOrders(appId, modelId, view)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services.ts, line 47

Retrieves all work orders from the database for a specific application and model.

Name Type Description
appId

The application ID.

modelId

The model ID.

view

The view identifier.

Returns:
A promise resolving to the API response containing the work orders.

async,staticGOWOServices.insertCoordinates(props)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services.ts, line 77

Inserts coordinates for a specific work order in the database.

Name Type Description
props

The properties required to insert coordinates, including appId, modelId, group, view, workOrderId, and coordinates.

Returns:
A promise resolving to the API response.