# com.pimstash.carcare.serviceItem

> Published by [lexicons.pimstash.com](https://lexicon.garden/identity/did:plc:kl7rkydjioe5qsucfce3uubx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.serviceItem)
- [Documentation](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.serviceItem/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.serviceItem/examples)

## Definitions

### `com.pimstash.carcare.serviceItem`

**Type**: `record`

A Service Item in Car Care: one maintenance task on a Vehicle, either scheduled by distance and/or months or done once. Its Work references it by record key.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `estimateMinutes` | `integer` | No | Estimated time to do the work, in whole minutes. |
| `intervalMeters` | `integer` | No | Repeat distance, in whole meters. |
| `intervalMonths` | `integer` | No |  |
| `kind` | `string` | Yes | scheduled repeats by intervalMeters and/or intervalMonths; oneoff has neither interval. |
| `links` | `array` | No |  |
| `name` | `string` | Yes |  |
| `notes` | `string` | No |  |
| `partsNeeded` | `string` | No |  |
| `spec` | `string` | No | Specifications: fluid grades, capacities, torque values. |
| `toolsNeeded` | `string` | No |  |
| `updatedAt` | `string` (datetime) | No |  |
| `vehicle` | `string` (record-key) | Yes | The record key of the com.pimstash.carcare.vehicle, in this same repository, this item belongs to. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A Service Item in Car Care: one maintenance task on a Vehicle, either scheduled by distance and/or months or done once. Its Work references it by record key.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "estimateMinutes": {
            "description": "Estimated time to do the work, in whole minutes.",
            "minimum": 0,
            "type": "integer"
          },
          "intervalMeters": {
            "description": "Repeat distance, in whole meters.",
            "minimum": 1,
            "type": "integer"
          },
          "intervalMonths": {
            "minimum": 1,
            "type": "integer"
          },
          "kind": {
            "description": "scheduled repeats by intervalMeters and/or intervalMonths; oneoff has neither interval.",
            "knownValues": [
              "scheduled",
              "oneoff"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "links": {
            "items": {
              "ref": "com.pimstash.carcare.vehicle#link",
              "type": "ref"
            },
            "maxLength": 100,
            "type": "array"
          },
          "name": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "notes": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "partsNeeded": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "spec": {
            "description": "Specifications: fluid grades, capacities, torque values.",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "toolsNeeded": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "vehicle": {
            "description": "The record key of the com.pimstash.carcare.vehicle, in this same repository, this item belongs to.",
            "format": "record-key",
            "type": "string"
          }
        },
        "required": [
          "vehicle",
          "name",
          "kind",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.pimstash.carcare.serviceItem",
  "lexicon": 1
}
```
