import type * as Samsara from "../../../../index.js"; /** * @example * { * assetId: "12443" * } */ export interface WorkOrdersPostWorkOrdersRequestBody { /** The historical time the work order was archived (closed or cancelled), in RFC 3339 format. Is automatically set when the status is Closed or Cancelled and this field is not provided. */ archivedAtTime?: string; /** The ID of the asset. */ assetId: string; /** The ID of the assigned mechanic. */ assignedUserId?: string; /** The category of the work order */ category?: string; /** The historical time the work order was completed, in RFC 3339 format. Is automatically set when the status is Closed or Completed 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 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; the resolved Place must be linked to a maintenance site. 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. 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?: WorkOrdersPostWorkOrdersRequestBody.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 is an in-progress status and this field is not provided. */ startedAtTime?: string; /** The initial status of the work order. Defaults to Open when not provided. Valid values: `Assigned`, `Cancelled`, `Closed`, `Completed`, `Estimate`, `In Progress`, `On Hold`, `Open`, `Pending Approval`, `Pending Parts`, `Planning` */ status?: WorkOrdersPostWorkOrdersRequestBody.Status; tax?: Samsara.WorkOrderTaxCreateObjectRequestBody; /** The vendor UUID for the work order. */ vendorUuid?: string; } export declare namespace WorkOrdersPostWorkOrdersRequestBody { /** 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 initial status of the work order. Defaults to Open when not provided. 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]; }