import type * as Samsara from "../../../../index.js"; /** * @example * { * id: "5" * } */ export interface WorkOrdersPatchWorkOrdersRequestBody { /** The historical time the work order was archived (closed or cancelled), in RFC 3339 format. Is automatically set when the status changes to Closed or Cancelled and this field is not provided. */ archivedAtTime?: string; /** The ID of the assigned mechanic. */ assignedUserId?: string; /** The category of the work order */ category?: string; /** Notes on the work order. */ closingNotes?: string; /** The time the work order was completed in RFC 3339 format. Is automatically set when the status changes and this field is not provided. */ completedAtTime?: string; /** A description of what needs to be fixed. */ description?: string; discount?: Samsara.WorkOrderDiscountObjectRequestBody; /** The due date of the work order in RFC 3339 format. */ dueAtTime?: string; /** The engine hours at the time of the work order. Will default to current asset reading if unset. */ engineHours?: number; /** The unique id of the work order. */ id: string; /** The invoice number for the work order. */ invoiceNumber?: string; /** Items related to the work order. */ items?: Samsara.WorkOrderItemObjectRequestBody[]; /** The odometer reading at the time of the work order. Will default to current asset reading if unset. */ odometerMeters?: number; /** External ID (`key:value`) of the Place where the work is performed. Resolved against the organization's external IDs for places. Send an empty string to clear the maintenance site on the work order. Mutually exclusive with `placeId`. */ placeExternalId?: string; /** ID of the Place where the work is performed. Must reference a Place returned by the Places API that is linked to a maintenance site in the organization. Send an empty string to clear the maintenance site on the work order. Mutually exclusive with `placeExternalId`. */ placeId?: string; /** The purchase order number for the work order. */ poNumber?: string; /** The priority of the work order Valid values: `High`, `Low`, `Medium`, `Urgent` */ priority?: WorkOrdersPatchWorkOrdersRequestBody.Priority; /** Service Tasks for the work order. */ serviceTaskInstances?: Samsara.ServiceTaskInstanceInputObjectRequestBody[]; /** The historical time work started on the work order, in RFC 3339 format. Is automatically set when the status changes to an in-progress status and this field is not provided. */ startedAtTime?: string; /** The status of the work order Valid values: `Assigned`, `Cancelled`, `Closed`, `Completed`, `Estimate`, `In Progress`, `On Hold`, `Open`, `Pending Approval`, `Pending Parts`, `Planning` */ status?: WorkOrdersPatchWorkOrdersRequestBody.Status; tax?: Samsara.WorkOrderTaxObjectRequestBody; /** The vendor UUID for the work order. */ vendorUuid?: string; } export declare namespace WorkOrdersPatchWorkOrdersRequestBody { /** The priority of the work order Valid values: `High`, `Low`, `Medium`, `Urgent` */ const Priority: { readonly High: "High"; readonly Low: "Low"; readonly Medium: "Medium"; readonly Urgent: "Urgent"; }; type Priority = (typeof Priority)[keyof typeof Priority]; /** The status of the work order Valid values: `Assigned`, `Cancelled`, `Closed`, `Completed`, `Estimate`, `In Progress`, `On Hold`, `Open`, `Pending Approval`, `Pending Parts`, `Planning` */ const Status: { readonly Assigned: "Assigned"; readonly Cancelled: "Cancelled"; readonly Closed: "Closed"; readonly Completed: "Completed"; readonly Estimate: "Estimate"; readonly InProgress: "In Progress"; readonly OnHold: "On Hold"; readonly Open: "Open"; readonly PendingApproval: "Pending Approval"; readonly PendingParts: "Pending Parts"; readonly Planning: "Planning"; }; type Status = (typeof Status)[keyof typeof Status]; }