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.
26 lines (25 loc) • 1.01 kB
TypeScript
import ApolloClient from "apollo-client";
import { Config } from "../types";
import { AuthAPI } from "./Auth";
import APIProxy from "./APIProxy";
import { SaleorCartAPI } from "./Cart";
import { SaleorCheckoutAPI } from "./Checkout";
import { CollectionsAPI } from "./collections/collections";
import { CategoriesAPI } from "./categories/categories";
import { ProductsAPI } from "./products/products";
export * from "./Checkout";
export * from "./Cart";
export declare class SaleorAPI {
auth: AuthAPI;
checkout: SaleorCheckoutAPI;
cart: SaleorCartAPI;
categories: CategoriesAPI;
collections: CollectionsAPI;
products: ProductsAPI;
/**
* @deprecated Please do not use it anymore. Reference to API Proxy will be removed in future.
* Now it just exists for legacy React hooks, which also will be removed.
*/
legacyAPIProxy: APIProxy;
constructor(client: ApolloClient<any>, apiProxy: APIProxy, config: Config, onStateUpdate?: () => any);
}