Служебные инструменты · catalog

Склады и движение товаров · изменения · Изменение

catalog_site_catalog_stock_m022_writeИзменение

Действия модуля catalog.

Действия

В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.

Привязка товаров при переходе на складской учёт

catalog_inventory_migration_bind

Действия модуля catalog.

request_id
строка · обязательный параметр
expected_revision
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
delay_seconds
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "minLength": 32,
      "maxLength": 32
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "minLength": 64,
      "maxLength": 64
    },
    "confirm": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "delay_seconds": {
      "type": "integer",
      "minimum": 1,
      "maximum": 253402300799,
      "default": 300
    }
  },
  "required": [
    "request_id",
    "expected_revision",
    "confirm"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Проход задания перехода на складской учёт

catalog_inventory_migration_pass

Действия модуля catalog.

request_id
строка · обязательный параметр
expected_revision
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
acknowledge_global_native_effects
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "minLength": 32,
      "maxLength": 32
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "minLength": 64,
      "maxLength": 64
    },
    "confirm": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "acknowledge_global_native_effects": {
      "type": "boolean",
      "enum": [
        true
      ]
    }
  },
  "required": [
    "request_id",
    "expected_revision",
    "confirm",
    "acknowledge_global_native_effects"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Выполнить фоновое задание перехода на складской учёт

catalog_inventory_migration_worker_run

Действия модуля catalog.

request_id
строка · обязательный параметр
expected_revision
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
acknowledge_global_native_effects
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "minLength": 32,
      "maxLength": 32
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "minLength": 64,
      "maxLength": 64
    },
    "confirm": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "acknowledge_global_native_effects": {
      "type": "boolean",
      "enum": [
        true
      ]
    }
  },
  "required": [
    "request_id",
    "expected_revision",
    "confirm",
    "acknowledge_global_native_effects"
  ],
  "additionalProperties": false
}

Скачать исходное примечание