# com.actuallynearme.update

> A short owner-written news item about one or more locations of a business, such as a schedule change.

- Kind: record
- Record key: tid
- Authority: actuallynearme.com
- Lexicon: 1
- Published by [actuallynearme-lex.bsky.social](https://lexicon.garden/identity/did:plc:ueupetp46c3gzq5x5zqnd5uu), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:ueupetp46c3gzq5x5zqnd5uu/com.actuallynearme.update)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:ueupetp46c3gzq5x5zqnd5uu/com.actuallynearme.update/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:ueupetp46c3gzq5x5zqnd5uu/com.actuallynearme.update/analytics)

## Record (`com.actuallynearme.update`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required): When the update was written.
- `crossposts` (array): Copies of this update posted elsewhere, as strong references. Any network or app may be listed.
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `com.atproto.repo.strongRef`
- `effects` (array): Structured summary of what the update changes.
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `#effect`
- `locations` (array, required): Location IDs (listing record keys, each a TID) in the same account that this update is about. List every location the update applies to.
  - Constraints: minLength: 1, maxLength: 500
  - `items` (string · tid)
- `movedFrom` (string · at-uri): AT URI of the update this one was copied from, set when a location moves to another account.
- `showUntil` (string): Last date the update should be shown, YYYY-MM-DD.
  - Constraints: minLength: 10, maxLength: 10
- `text` (string, required): The update text.
  - Constraints: maxLength: 10000, maxGraphemes: 1000

## #effect (`com.actuallynearme.update#effect`)

Type: object

One thing an update changes about the listing.

### Properties

- `kind` (string, required): What kind of change this is. The list is open, so other values may be used.
  - Constraints: maxLength: 64, knownValues: special-hours | regular-hours | by-appointment | contact | description | other
- `summary` (string, required): Short description of the change.
  - Constraints: maxLength: 1400, maxGraphemes: 140

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "effect": {
      "description": "One thing an update changes about the listing.",
      "properties": {
        "kind": {
          "description": "What kind of change this is. The list is open, so other values may be used.",
          "knownValues": [
            "special-hours",
            "regular-hours",
            "by-appointment",
            "contact",
            "description",
            "other"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "summary": {
          "description": "Short description of the change.",
          "maxGraphemes": 140,
          "maxLength": 1400,
          "type": "string"
        }
      },
      "required": [
        "kind",
        "summary"
      ],
      "type": "object"
    },
    "main": {
      "description": "A short owner-written news item about one or more locations of a business, such as a schedule change.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "When the update was written.",
            "format": "datetime",
            "type": "string"
          },
          "crossposts": {
            "description": "Copies of this update posted elsewhere, as strong references. Any network or app may be listed.",
            "items": {
              "ref": "com.atproto.repo.strongRef",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "effects": {
            "description": "Structured summary of what the update changes.",
            "items": {
              "ref": "#effect",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "locations": {
            "description": "Location IDs (listing record keys, each a TID) in the same account that this update is about. List every location the update applies to.",
            "items": {
              "format": "tid",
              "type": "string"
            },
            "maxLength": 500,
            "minLength": 1,
            "type": "array"
          },
          "movedFrom": {
            "description": "AT URI of the update this one was copied from, set when a location moves to another account.",
            "format": "at-uri",
            "type": "string"
          },
          "showUntil": {
            "description": "Last date the update should be shown, YYYY-MM-DD.",
            "maxLength": 10,
            "minLength": 10,
            "type": "string"
          },
          "text": {
            "description": "The update text.",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          }
        },
        "required": [
          "text",
          "locations",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.actuallynearme.update",
  "lexicon": 1
}
```
