Объединены файлы правил системы в единую базу знаний v3.0 с устранением противоречий и дублирования. Создан rules-unified.md на основе rules.md, rules1.md и rules2.md с добавлением всех уникальных разделов. Обновлена терминология системы с соответствием реальной схеме БД (ТОВАР→PRODUCT, РАСХОДНИКИ→CONSUMABLE). Архивированы старые файлы правил в папку archive. Обновлены ссылки в CLAUDE.md и development-checklist.md на новый единый источник истины.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Veronika Smirnova
2025-08-05 00:19:17 +03:00
parent 17ffd6c9ed
commit ee72a9488b
21 changed files with 9147 additions and 174 deletions

View File

@ -595,6 +595,51 @@ export const GET_ALL_PRODUCTS = gql`
}
`;
// Запрос товаров конкретной организации (для формы создания поставки)
export const GET_ORGANIZATION_PRODUCTS = gql`
query GetOrganizationProducts($organizationId: ID!, $search: String, $category: String, $type: String) {
organizationProducts(organizationId: $organizationId, search: $search, category: $category, type: $type) {
id
name
article
description
price
quantity
type
category {
id
name
}
brand
color
size
weight
dimensions
material
images
mainImage
isActive
createdAt
updatedAt
organization {
id
inn
name
fullName
type
address
phones
emails
users {
id
avatar
managerName
}
}
}
}
`;
export const GET_MY_CART = gql`
query GetMyCart {
myCart {