@plasmicpkgs/commerce-saleor 0.0.227 → 0.0.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cart/index.d.ts +4 -4
- package/dist/commerce-saleor.cjs.development.js +185 -185
- package/dist/commerce-saleor.cjs.development.js.map +1 -1
- package/dist/commerce-saleor.cjs.production.min.js +1 -1
- package/dist/commerce-saleor.cjs.production.min.js.map +1 -1
- package/dist/commerce-saleor.esm.js +185 -185
- package/dist/commerce-saleor.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/provider.d.ts +9 -9
- package/dist/registerable.d.ts +1 -1
- package/dist/types/cart.d.ts +9 -9
- package/dist/types.d.ts +2 -2
- package/dist/utils/checkout-attach.d.ts +1 -1
- package/dist/utils/checkout-create.d.ts +1 -1
- package/dist/utils/checkout-to-cart.d.ts +2 -2
- package/dist/utils/customer-token.d.ts +1 -1
- package/dist/utils/fragments/index.d.ts +2 -2
- package/dist/utils/get-categories.d.ts +1 -1
- package/dist/utils/handle-fetch-response.d.ts +1 -1
- package/dist/utils/handle-login.d.ts +2 -2
- package/dist/utils/index.d.ts +13 -13
- package/dist/utils/mutations/checkout-create.d.ts +1 -1
- package/dist/utils/mutations/checkout-line-add.d.ts +1 -1
- package/dist/utils/mutations/checkout-line-update.d.ts +1 -1
- package/dist/utils/mutations/index.d.ts +8 -8
- package/dist/utils/normalize.d.ts +2 -2
- package/dist/utils/queries/collection-many.d.ts +1 -1
- package/dist/utils/queries/collection-one.d.ts +1 -1
- package/dist/utils/queries/get-all-product-vendors-query.d.ts +1 -1
- package/dist/utils/queries/get-all-products-paths-query.d.ts +1 -1
- package/dist/utils/queries/index.d.ts +11 -11
- package/dist/utils/queries/product-many.d.ts +1 -1
- package/dist/utils/queries/product-one-by-id.d.ts +1 -1
- package/dist/utils/throw-user-errors.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CollectionOne = "\n query getProductsFromCollection($categoryId: ID
|
|
1
|
+
export declare const CollectionOne = "\n query getProductsFromCollection(\n $categoryId: ID!\n $first: Int = 100\n $channel: String = \"default-channel\"\n ) {\n collection(id: $categoryId, channel: $channel) {\n id\n name\n slug\n products(first: $first) {\n ...ProductConnection\n }\n }\n }\n \n fragment ProductConnection on ProductCountableConnection {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n id\n name\n description\n slug\n pricing {\n priceRange {\n start {\n net {\n amount\n }\n }\n }\n }\n media {\n url\n alt\n }\n variants {\n id\n name\n attributes {\n attribute {\n name\n }\n values {\n name\n }\n }\n pricing {\n price {\n net {\n amount\n currency\n }\n }\n }\n }\n }\n }\n }\n\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getAllProductVendors = "\n query getAllProductVendors($cursor: String
|
|
1
|
+
export declare const getAllProductVendors = "\n query getAllProductVendors(\n $cursor: String\n $channel: String = \"default-channel\"\n ) {\n products(first: 100, channel: $channel, after: $cursor) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n slug\n }\n cursor\n }\n }\n }\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getAllProductsPathsQuery = "\n query getAllProductPaths($cursor: String
|
|
1
|
+
export declare const getAllProductsPathsQuery = "\n query getAllProductPaths(\n $cursor: String\n $channel: String = \"default-channel\"\n ) {\n products(first: 100, after: $cursor, channel: $channel) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n slug\n }\n cursor\n }\n }\n }\n";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export { CustomerOne } from
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
1
|
+
export { CheckoutOne } from "./checkout-one";
|
|
2
|
+
export { CollectionMany } from "./collection-many";
|
|
3
|
+
export { CollectionOne } from "./collection-one";
|
|
4
|
+
export { CustomerCurrent } from "./customer-current";
|
|
5
|
+
export { PageMany } from "./page-many";
|
|
6
|
+
export { PageOne } from "./page-one";
|
|
7
|
+
export { ProductMany } from "./product-many";
|
|
8
|
+
export { ProductOneBySlug } from "./product-one-by-slug";
|
|
9
|
+
export { CustomerOne } from "./customer-one";
|
|
10
|
+
export { getAllProductVendors } from "./get-all-product-vendors-query";
|
|
11
|
+
export { getAllProductsPathsQuery } from "./get-all-products-paths-query";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ProductMany = "\n query ProductMany(\n $first: Int = 100\n $filter: ProductFilterInput\n $sortBy: ProductOrder\n $channel: String = \"default-channel\"\n ) {\n products(first: $first
|
|
1
|
+
export declare const ProductMany = "\n query ProductMany(\n $first: Int = 100\n $filter: ProductFilterInput\n $sortBy: ProductOrder\n $channel: String = \"default-channel\"\n ) {\n products(\n first: $first\n channel: $channel\n filter: $filter\n sortBy: $sortBy\n ) {\n ...ProductConnection\n }\n }\n \n fragment ProductConnection on ProductCountableConnection {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n id\n name\n description\n slug\n pricing {\n priceRange {\n start {\n net {\n amount\n }\n }\n }\n }\n media {\n url\n alt\n }\n variants {\n id\n name\n attributes {\n attribute {\n name\n }\n values {\n name\n }\n }\n pricing {\n price {\n net {\n amount\n currency\n }\n }\n }\n }\n }\n }\n }\n\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ProductOneById = "\n query ProductOneById($id: ID!, $channel: String = \"default-channel\") {\n product(id: $id, channel: $channel) {\n
|
|
1
|
+
export declare const ProductOneById = "\n query ProductOneById($id: ID!, $channel: String = \"default-channel\") {\n product(id: $id, channel: $channel) {\n slug\n name\n description\n pricing {\n priceRange {\n start {\n net {\n amount\n }\n }\n }\n }\n variants {\n id\n name\n attributes {\n attribute {\n name\n }\n values {\n name\n }\n }\n pricing {\n price {\n net {\n amount\n currency\n }\n }\n }\n }\n media {\n url\n alt\n }\n }\n }\n";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccountError, AccountErrorCode, AppError, CheckoutError, CheckoutErrorCode } from "../schema";
|
|
2
2
|
export type UserErrors = Array<CheckoutError | AccountError | AppError>;
|
|
3
3
|
export type UserErrorCode = CheckoutErrorCode | AccountErrorCode | null | undefined;
|
|
4
4
|
export declare const throwUserErrors: (errors?: UserErrors) => void;
|