{
"_id": "string",
"code": "string",
"assetId": "string",
"planId": "string",
"stage": "string",
"workType": "PREVENTIVE",
"origin": "PLAN",
"priority": "LOW",
"status": "OPEN",
"dueDate": "2019-08-24T14:15:22.123Z",
"startedAt": "2019-08-24T14:15:22.123Z",
"finishedAt": "2019-08-24T14:15:22.123Z",
"isAPIDone": true,
"estimatedDurationMinutes": 0,
"actualDurationMinutes": 0,
"requestedByUserId": "string",
"assignedToUserId": "string",
"assignedToPersonIds": [
"string"
],
"description": "string",
"resolutionNotes": "string",
"partsUsedNotes": "string",
"waitingPartNotes": "string",
"partsUsed": [
{
"itemId": "string",
"itemName": "string",
"variationId": "string",
"qty": 0,
"unitCost": 0,
"warehouse": "string",
"batches": [
{
"batch": "string",
"qty": 0,
"serialNumbers": [
"string"
],
"inventoryAddress": "string"
}
],
"serialNumbers": [
"string"
],
"inventoryAddresses": [
{
"inventoryAddress": "string",
"qty": 0
}
],
"inventoryMovementIds": [
"string"
]
}
],
"laborCost": 0,
"partsCost": 0,
"externalServiceCost": 0,
"totalCost": 0,
"statusHistory": [
{
"fromStatus": "OPEN",
"toStatus": "OPEN",
"changedAt": "2019-08-24T14:15:22.123Z",
"changedByUserId": "string",
"note": "string"
}
],
"stageHistory": [
{
"_id": "string",
"stageOrig": "string",
"stageDest": "string",
"changedAt": "2019-08-24T14:15:22.123Z",
"changedByUserId": "string",
"plannedDiscounts": [
{
"description": "string",
"startAt": "2019-08-24T14:15:22.123Z",
"endAt": "2019-08-24T14:15:22.123Z",
"createdByUserId": "string"
}
]
}
],
"deletedAt": "2019-08-24T14:15:22.123Z",
"company": "string",
"user": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
}