This commit is contained in:
Bivekich
2025-07-30 13:57:27 +03:00
parent d22eacb30c
commit 28312830a4
6 changed files with 343 additions and 13 deletions

View File

@ -977,3 +977,41 @@ export const GET_WB_WAREHOUSE_DATA = gql`
}
}
`;
// Запросы для кеша статистики продаж
export const GET_SELLER_STATS_CACHE = gql`
query GetSellerStatsCache(
$period: String!
$dateFrom: String
$dateTo: String
) {
getSellerStatsCache(
period: $period
dateFrom: $dateFrom
dateTo: $dateTo
) {
success
message
fromCache
cache {
id
organizationId
cacheDate
period
dateFrom
dateTo
productsData
productsTotalSales
productsTotalOrders
productsCount
advertisingData
advertisingTotalCost
advertisingTotalViews
advertisingTotalClicks
expiresAt
createdAt
updatedAt
}
}
}
`;