MCP Control
Заказы · Чувствительное действие

Кухонный дисплей · Параметры

kds_preferences
Упакованный заказ на стойке

Попробуйте три запроса

Подготовить
  1. Вы указываетеФилиал
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Кухонный дисплей / Параметры». Для изменения нужны филиал, версия. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
locationId
Филиал
version
Версия
preferences
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Кухонный дисплей / Параметры» с параметром locationId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
locationId
DEMO-101
version
4
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Кухонный дисплей / Параметры» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

Описание разработчика

Update the current user’s native KDS display preferences at the exact version. Recover uncertainty with kds_get_operation and the original requestId; do not issue a new requestId.

Параметры запроса
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
version
Native version value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
preferences
Native preferences value; use the value and type returned by the corresponding service. обязательно по схеме · object
Что вернёт команда
companyId
Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
result
Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа kds_preferences
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "locationId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,120}$",
      "description": "Native locationId value; use the value and type returned by the corresponding service."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    },
    "version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native version value; use the value and type returned by the corresponding service."
    },
    "preferences": {
      "type": "object",
      "properties": {
        "showOrderNotes": {
          "type": "boolean",
          "description": "Native showOrderNotes value; use the value and type returned by the corresponding service."
        },
        "showItemNotes": {
          "type": "boolean",
          "description": "Native showItemNotes value; use the value and type returned by the corresponding service."
        },
        "showModifiers": {
          "type": "boolean",
          "description": "Native showModifiers value; use the value and type returned by the corresponding service."
        },
        "showTimers": {
          "type": "boolean",
          "description": "Native showTimers value; use the value and type returned by the corresponding service."
        },
        "showWorkflow": {
          "type": "boolean",
          "description": "Native showWorkflow value; use the value and type returned by the corresponding service."
        },
        "showSource": {
          "type": "boolean",
          "description": "Native showSource value; use the value and type returned by the corresponding service."
        },
        "showHistory": {
          "type": "boolean",
          "description": "Native showHistory value; use the value and type returned by the corresponding service."
        },
        "compactCards": {
          "type": "boolean",
          "description": "Native compactCards value; use the value and type returned by the corresponding service."
        },
        "defaultLayout": {
          "type": "string",
          "enum": [
            "list",
            "cards",
            "kanban"
          ],
          "description": "Native defaultLayout value; use the value and type returned by the corresponding service."
        },
        "textSize": {
          "type": "string",
          "enum": [
            "normal",
            "large"
          ],
          "description": "Native textSize value; use the value and type returned by the corresponding service."
        },
        "appearance": {
          "description": "Native appearance value; use the value and type returned by the corresponding service.",
          "type": "object",
          "properties": {
            "colorVersion": {
              "type": "number",
              "const": 3,
              "description": "Native colorVersion value; use the value and type returned by the corresponding service."
            },
            "mode": {
              "type": "string",
              "enum": [
                "light",
                "dark"
              ],
              "description": "Native mode value; use the value and type returned by the corresponding service."
            },
            "background": {
              "type": "string",
              "enum": [
                "waves",
                "glacier",
                "lagoon",
                "sunrise",
                "graphite",
                "custom"
              ],
              "description": "Native background value; use the value and type returned by the corresponding service."
            },
            "accent": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^#[0-9a-f]{6}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Native accent value; use the value and type returned by the corresponding service."
            },
            "secondary": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^#[0-9a-f]{6}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Native secondary value; use the value and type returned by the corresponding service."
            },
            "text": {
              "type": "object",
              "properties": {
                "light": {
                  "type": "string",
                  "pattern": "^#[0-9a-f]{6}$",
                  "description": "Native light value; use the value and type returned by the corresponding service."
                },
                "dark": {
                  "type": "string",
                  "pattern": "^#[0-9a-f]{6}$",
                  "description": "Native dark value; use the value and type returned by the corresponding service."
                }
              },
              "required": [
                "light",
                "dark"
              ],
              "additionalProperties": false,
              "description": "Native text value; use the value and type returned by the corresponding service."
            },
            "custom": {
              "type": "object",
              "properties": {
                "light": {
                  "minItems": 3,
                  "maxItems": 3,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^#[0-9a-f]{6}$"
                  },
                  "description": "Native light value; use the value and type returned by the corresponding service."
                },
                "dark": {
                  "minItems": 3,
                  "maxItems": 3,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^#[0-9a-f]{6}$"
                  },
                  "description": "Native dark value; use the value and type returned by the corresponding service."
                }
              },
              "required": [
                "light",
                "dark"
              ],
              "additionalProperties": false,
              "description": "Native custom value; use the value and type returned by the corresponding service."
            }
          },
          "required": [
            "colorVersion",
            "mode",
            "background",
            "accent",
            "secondary",
            "text",
            "custom"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "showOrderNotes",
        "showItemNotes",
        "showModifiers",
        "showTimers",
        "showWorkflow",
        "showSource",
        "showHistory",
        "compactCards",
        "defaultLayout",
        "textSize"
      ],
      "additionalProperties": false,
      "description": "Native preferences value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "locationId",
    "requestId",
    "version",
    "preferences"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Native companyId value; use the value and type returned by the corresponding service."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native result value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "companyId",
    "result"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}