UNPKG

usimple-saleor-sdk

Version:

This package contains all queries and mutations that are used in our sample storefront. It can be used for semi-custom or fully-custom (with ability to extend existing queries) storefront solutions.

37 lines (36 loc) 986 B
import { ApolloError } from "apollo-client"; export declare enum PendingSaveItems { UPDATE_CART = "updateCart", BILLING_ADDRESS = "billingAddress", SHIPPING_ADDRESS = "shippingAddress", SHIPPING_AS_BILLING_ADDRESS = "shippingAsBillingAddress" } export interface ApolloErrorWithUserInput extends ApolloError { extraInfo: { userInputErrors?: any[]; }; } export interface IApolloClientManagerResponse<T> { data?: T; error?: ApolloErrorWithUserInput; } export interface VerifySignInTokenInput { token: string; } export interface RefreshSignInTokenInput { csrfToken?: string | null; refreshToken?: string; } export interface CreatePaymentInput { amount: number; checkoutId: string; gateway: string; token?: string; returnUrl?: string; } export interface CompleteCheckoutInput { checkoutId: string; paymentData?: object; redirectUrl?: string; storeSource?: boolean; }