Unify order items layout across cart and orders

This commit is contained in:
Ruslan Bakiev
2026-04-04 14:49:34 +07:00
parent 685f84c428
commit ad1f6b8a35
7 changed files with 299 additions and 84 deletions

View File

@@ -965,7 +965,7 @@ export type OrderDetailQueryVariables = Exact<{
}>;
export type OrderDetailQuery = { __typename?: 'Query', order?: { __typename?: 'Order', id: string, code: string, kind: OrderKind, status: OrderStatus, customerId: string, deliveryAddress?: string | null, deliveryTerms?: string | null, deliveryFee?: number | null, totalPrice?: number | null, createdAt: any, items: Array<{ __typename?: 'OrderItem', id: string, productName: string, quantity: number, unitPrice?: number | null, lineTotal?: number | null }> } | null };
export type OrderDetailQuery = { __typename?: 'Query', order?: { __typename?: 'Order', id: string, code: string, kind: OrderKind, status: OrderStatus, customerId: string, deliveryAddress?: string | null, deliveryTerms?: string | null, deliveryFee?: number | null, totalPrice?: number | null, calculationPayload?: any | null, createdAt: any, items: Array<{ __typename?: 'OrderItem', id: string, productName: string, quantity: number, unitPrice?: number | null, lineTotal?: number | null }> } | null };
export type SubmitCalculationOrderMutationVariables = Exact<{
input: SubmitCalculationOrderInput;
@@ -2326,6 +2326,7 @@ export const OrderDetailDocument = gql`
deliveryTerms
deliveryFee
totalPrice
calculationPayload
createdAt
items {
id