MCP Control
Сотрудники · Чтение

Персонал · Должности · Просмотр · Изменение · Операция

staff_position_get_edit_operation
Контактные карточки и телефон

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

Получить данные
  1. Вы указываетеОбъект
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Персонал / Должности / Просмотр / Изменение / Операция» выполни чтение в текущей компании. Выведи кратко: статус, результат.
Что искать в ответе
status
Статус
result
Результат
Уточнить условия
  1. Вы указываетеЗадача
  2. ПомощникСхема входа
  3. Вы получаетеУсловия чтения
Запрос в чат
Для «Персонал / Должности / Просмотр / Изменение / Операция» перечисли допустимые параметры исходные данные. Уточни, какие значения нужны для моей задачи, до запроса данных.
Параметры примера
original
Исходные данные
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Персонал / Должности / Просмотр / Изменение / Операция» объясни статус, результат. Отметь отсутствующие значения.
Поля для проверки
status
Статус
result
Результат
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании.

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

Recover the original Firebase Position create/update result without repeating its write. Uses the same atomic provider receipt as employee_positions and preserves its exact native field types.

Параметры запроса
original
Original create or update request. обязательно по схеме
Что вернёт команда
status
Whether the exact write has a committed receipt. обязательно по схеме · string · варианты committed, not_recorded
result
Original saved native Position values, or null. Read edit_context before a subsequent update. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа staff_position_get_edit_operation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "original": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "create",
              "description": "Original native Position operation."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "requestId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "values": {
                  "$ref": "#/$defs/_mcp4"
                }
              },
              "required": [
                "requestId",
                "values"
              ],
              "additionalProperties": false,
              "description": "Exact original Position write arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "update",
              "description": "Original native Position operation."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "requestId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "values": {
                  "$ref": "#/$defs/_mcp4"
                },
                "resourceId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[A-Za-z0-9_~:@+.-]+$",
                  "description": "Canonical Staff position configuration document identifier from an existing search or edit_context."
                },
                "expectedRevision": {
                  "type": "string",
                  "description": "Exact revision returned by edit_context. Updates reject concurrent changes instead of overwriting them."
                }
              },
              "required": [
                "requestId",
                "values",
                "resourceId",
                "expectedRevision"
              ],
              "additionalProperties": false,
              "description": "Exact original Position write arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Original create or update request."
    }
  },
  "required": [
    "original"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Unique operation retry identifier. Reuse only for exactly the same structure and field values."
    },
    "_mcp4": {
      "type": "object",
      "properties": {
        "Name": {
          "$ref": "#/$defs/_mcp2"
        },
        "Management": {
          "description": "Native Staff position configuration.Management.",
          "type": "boolean"
        },
        "Sales": {
          "description": "Native Staff position configuration.Sales.",
          "type": "boolean"
        },
        "Halladministration": {
          "description": "Native Staff position configuration.Halladministration.",
          "type": "boolean"
        },
        "Courier": {
          "description": "Native Staff position configuration.Courier.",
          "type": "boolean"
        },
        "Storage": {
          "description": "Native Staff position configuration.Storage.",
          "type": "boolean"
        },
        "Production": {
          "description": "Native Staff position configuration.Production.",
          "type": "boolean"
        },
        "Screen": {
          "description": "Native Staff position configuration.Screen.",
          "type": "boolean"
        },
        "Menu": {
          "description": "Native Staff position configuration.Menu.",
          "type": "boolean"
        },
        "Supplier": {
          "description": "Native Staff position configuration.Supplier.",
          "type": "boolean"
        },
        "client": {
          "description": "Native Staff position configuration.client.",
          "type": "boolean"
        },
        "interfaces": {
          "$ref": "#/$defs/_mcp3"
        }
      },
      "additionalProperties": false,
      "description": "Validated native Staff position configuration fields. Omitted fields are preserved on update. Nested objects merge; explicitly supplied arrays replace the array."
    },
    "_mcp2": {
      "description": "Native Staff position configuration.Name. Supplied array replaces the whole array.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/_mcp1"
      }
    },
    "_mcp3": {
      "description": "Native Staff position configuration.interfaces. Supplied array replaces the whole array.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2000,
        "description": "Native Staff position configuration.interfaces."
      }
    },
    "_mcp1": {
      "type": "object",
      "properties": {
        "Language": {
          "description": "Native Namesjson.Language.",
          "type": "string",
          "maxLength": 2000
        },
        "Text": {
          "description": "Native Namesjson.Text.",
          "type": "string",
          "maxLength": 12000
        }
      },
      "additionalProperties": false,
      "description": "Native Staff position configuration.Name."
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "committed",
        "not_recorded"
      ],
      "description": "Whether the exact write has a committed receipt."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "resourceId": {
              "type": "string",
              "description": "Canonical Staff position configuration document identifier in the connected company."
            },
            "revision": {
              "type": "string",
              "description": "Exact server revision for optimistic concurrency. Copy it unchanged into update requests."
            },
            "fieldErrors": {
              "description": "Present only when editable fields have incompatible stored values. Those entire fields are omitted from values, not reset. Use this revision and an explicit valid patch to repair them; all other fields remain unchanged.",
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "string",
                    "description": "Native field path requiring an explicit correction; no stored values are returned."
                  },
                  "expected": {
                    "type": "string",
                    "description": "Required native type or edit bound."
                  },
                  "actual": {
                    "type": "string",
                    "description": "Observed value type, never its content."
                  }
                },
                "required": [
                  "field",
                  "expected",
                  "actual"
                ],
                "additionalProperties": false
              }
            },
            "values": {
              "type": "object",
              "properties": {
                "Name": {
                  "description": "Native Staff position configuration.Name. Supplied array replaces the whole array.",
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "Language": {
                        "description": "Native Namesjson.Language.",
                        "type": "string",
                        "maxLength": 2000
                      },
                      "Text": {
                        "description": "Native Namesjson.Text.",
                        "type": "string",
                        "maxLength": 12000
                      }
                    },
                    "additionalProperties": false,
                    "description": "Native Staff position configuration.Name."
                  }
                },
                "Management": {
                  "description": "Native Staff position configuration.Management.",
                  "type": "boolean"
                },
                "Sales": {
                  "description": "Native Staff position configuration.Sales.",
                  "type": "boolean"
                },
                "Halladministration": {
                  "description": "Native Staff position configuration.Halladministration.",
                  "type": "boolean"
                },
                "Courier": {
                  "description": "Native Staff position configuration.Courier.",
                  "type": "boolean"
                },
                "Storage": {
                  "description": "Native Staff position configuration.Storage.",
                  "type": "boolean"
                },
                "Production": {
                  "description": "Native Staff position configuration.Production.",
                  "type": "boolean"
                },
                "Screen": {
                  "description": "Native Staff position configuration.Screen.",
                  "type": "boolean"
                },
                "Menu": {
                  "description": "Native Staff position configuration.Menu.",
                  "type": "boolean"
                },
                "Supplier": {
                  "description": "Native Staff position configuration.Supplier.",
                  "type": "boolean"
                },
                "client": {
                  "description": "Native Staff position configuration.client.",
                  "type": "boolean"
                },
                "interfaces": {
                  "description": "Native Staff position configuration.interfaces. Supplied array replaces the whole array.",
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "Native Staff position configuration.interfaces."
                  }
                }
              },
              "additionalProperties": false,
              "description": "Typed editable Staff position configuration fields. Credentials and service-owned identifiers are excluded; omitted fields were not present."
            }
          },
          "required": [
            "resourceId",
            "revision",
            "values"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original saved native Position values, or null. Read edit_context before a subsequent update."
    }
  },
  "required": [
    "status",
    "result"
  ],
  "additionalProperties": false
}