Skip to content

TypeDefinition "EnumCommon": Missing properties "enabled" and "color" #2430

@klein0r

Description

@klein0r

See

interface EnumCommon extends ObjectCommon {
/** The IDs of the enum members */
members?: string[];
// Make it possible to narrow the object type using the custom property
custom?: undefined;
}

When creating a new room via admin, common has an enabled property:

{
  "type": "enum",
  "common": {
    "name": {
      "en": "Carport",
      "ru": "Навес",
      "de": "Carport",
      "fr": "Carport",
      "it": "Posto Auto Coperto",
      "nl": "Carport",
      "pl": "Wiata",
      "pt": "Telheiro",
      "es": "Cochera",
      "zh-cn": "车棚"
    },
    "enabled": true,
    "color": false,
    "desc": "",
    "members": [],
    "icon": "data:image/svg+xml;base64,PHN2...."
  },
  "native": {},
  "_id": "enum.rooms.carport",
  "from": "system.adapter.admin.0",
  "user": "system.user.admin",
  "ts": 1694607217465,
  "acl": {
    "object": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  }
}

I don't know where enabled is used, but admin creates it (tested with 6.10.1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions