Добавлены модели услуг и расходников для фулфилмент центров, реализованы соответствующие мутации и запросы в GraphQL. Обновлен конфигурационный файл и добавлен новый компонент Toaster в макет приложения. Обновлены зависимости в package.json и package-lock.json.

This commit is contained in:
Bivekich
2025-07-17 10:47:20 +03:00
parent 205c9eae98
commit 99e91287f3
22 changed files with 2148 additions and 2 deletions

View File

@ -546,4 +546,92 @@ export const MARK_MESSAGES_AS_READ = gql`
mutation MarkMessagesAsRead($conversationId: ID!) {
markMessagesAsRead(conversationId: $conversationId)
}
`
// Мутации для услуг
export const CREATE_SERVICE = gql`
mutation CreateService($input: ServiceInput!) {
createService(input: $input) {
success
message
service {
id
name
description
price
imageUrl
createdAt
updatedAt
}
}
}
`
export const UPDATE_SERVICE = gql`
mutation UpdateService($id: ID!, $input: ServiceInput!) {
updateService(id: $id, input: $input) {
success
message
service {
id
name
description
price
imageUrl
createdAt
updatedAt
}
}
}
`
export const DELETE_SERVICE = gql`
mutation DeleteService($id: ID!) {
deleteService(id: $id)
}
`
// Мутации для расходников
export const CREATE_SUPPLY = gql`
mutation CreateSupply($input: SupplyInput!) {
createSupply(input: $input) {
success
message
supply {
id
name
description
price
quantity
imageUrl
createdAt
updatedAt
}
}
}
`
export const UPDATE_SUPPLY = gql`
mutation UpdateSupply($id: ID!, $input: SupplyInput!) {
updateSupply(id: $id, input: $input) {
success
message
supply {
id
name
description
price
quantity
imageUrl
createdAt
updatedAt
}
}
}
`
export const DELETE_SUPPLY = gql`
mutation DeleteSupply($id: ID!) {
deleteSupply(id: $id)
}
`