# com.pimstash.carcare.serviceItem

> 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.

- Kind: record
- Record key: any
- Authority: carcare.pimstash.com
- Lexicon: 1
- Published by [lexicons.pimstash.com](https://lexicon.garden/identity/did:plc:kl7rkydjioe5qsucfce3uubx), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.serviceItem)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.serviceItem/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.serviceItem/analytics)

## Record (`com.pimstash.carcare.serviceItem`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `estimateMinutes` (integer): Estimated time to do the work, in whole minutes.
  - Constraints: minimum: 0
- `intervalMeters` (integer): Repeat distance, in whole meters.
  - Constraints: minimum: 1
- `intervalMonths` (integer)
  - Constraints: minimum: 1
- `kind` (string, required): scheduled repeats by intervalMeters and/or intervalMonths; oneoff has neither interval.
  - Constraints: maxLength: 64, knownValues: scheduled | oneoff
- `links` (array)
  - Constraints: maxLength: 100
  - `items` (ref)
    - Reference: `com.pimstash.carcare.vehicle#link`
- `name` (string, required)
  - Constraints: minLength: 1, maxLength: 1000, maxGraphemes: 100
- `notes` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `partsNeeded` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `spec` (string): Specifications: fluid grades, capacities, torque values.
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `toolsNeeded` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `updatedAt` (string · datetime)
- `vehicle` (string · record-key, required): The record key of the com.pimstash.carcare.vehicle, in this same repository, this item belongs to.

## 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
}
```
