@gfed-medusa/sf-lib-common 3.1.1 → 3.3.5
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/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/breadcrumbs/index.js +6 -2
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/cart-mismatch-banner/index.d.ts +2 -2
- package/dist/components/cart-mismatch-banner/index.d.ts.map +1 -1
- package/dist/components/cart-mismatch-banner/index.js +11 -2
- package/dist/components/cart-mismatch-banner/index.js.map +1 -1
- package/dist/components/country-select/index.js +3 -1
- package/dist/components/country-select/index.js.map +1 -1
- package/dist/components/delete-button/index.d.ts +2 -2
- package/dist/components/error-message/index.d.ts +2 -2
- package/dist/components/error-message/index.d.ts.map +1 -1
- package/dist/components/error-message/index.js +3 -1
- package/dist/components/error-message/index.js.map +1 -1
- package/dist/components/free-shipping-price-nudge/index.js +64 -47
- package/dist/components/free-shipping-price-nudge/index.js.map +1 -1
- package/dist/components/interactive-link/index.d.ts +9 -6
- package/dist/components/interactive-link/index.d.ts.map +1 -1
- package/dist/components/interactive-link/index.js +6 -6
- package/dist/components/interactive-link/index.js.map +1 -1
- package/dist/components/line-item-options/index.d.ts +2 -2
- package/dist/components/line-item-price/index.d.ts +2 -2
- package/dist/components/localized-client-link/index.d.ts +2 -2
- package/dist/components/localized-client-link/index.d.ts.map +1 -1
- package/dist/components/localized-client-link/index.js +10 -6
- package/dist/components/localized-client-link/index.js.map +1 -1
- package/dist/components/modal/index.d.ts +2 -2
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/components/preview-price/index.d.ts +2 -2
- package/dist/components/preview-price/index.d.ts.map +1 -1
- package/dist/components/preview-price/index.js +3 -1
- package/dist/components/preview-price/index.js.map +1 -1
- package/dist/components/product-card/index.d.ts +2 -2
- package/dist/components/product-card/index.d.ts.map +1 -1
- package/dist/components/product-card/index.js +15 -10
- package/dist/components/product-card/index.js.map +1 -1
- package/dist/components/product-preview/index.d.ts +7 -3
- package/dist/components/product-preview/index.d.ts.map +1 -1
- package/dist/components/product-preview/index.js +4 -2
- package/dist/components/product-preview/index.js.map +1 -1
- package/dist/components/submit-button/index.d.ts +2 -2
- package/dist/components/submit-button/index.d.ts.map +1 -1
- package/dist/components/thumbnail/index.d.ts +2 -0
- package/dist/components/thumbnail/index.d.ts.map +1 -1
- package/dist/components/thumbnail/index.js +8 -4
- package/dist/components/thumbnail/index.js.map +1 -1
- package/dist/lib/config/medusa.js +3 -2
- package/dist/lib/config/medusa.js.map +1 -1
- package/dist/lib/context/apollo-context.d.ts +2 -2
- package/dist/lib/context/apollo-context.js +2 -1
- package/dist/lib/context/apollo-context.js.map +1 -1
- package/dist/lib/context/modal-context.d.ts +2 -2
- package/dist/lib/context/modal-context.d.ts.map +1 -1
- package/dist/lib/context/modal-context.js +3 -1
- package/dist/lib/context/modal-context.js.map +1 -1
- package/dist/lib/data/cart.js +35 -17
- package/dist/lib/data/cart.js.map +1 -1
- package/dist/lib/data/categories.js +2 -1
- package/dist/lib/data/categories.js.map +1 -1
- package/dist/lib/data/client-actions.js +7 -2
- package/dist/lib/data/client-actions.js.map +1 -1
- package/dist/lib/data/collections.js +9 -6
- package/dist/lib/data/collections.js.map +1 -1
- package/dist/lib/data/context.d.ts +2 -2
- package/dist/lib/data/context.js +3 -1
- package/dist/lib/data/context.js.map +1 -1
- package/dist/lib/data/cookies-actions.d.ts.map +1 -1
- package/dist/lib/data/cookies-actions.js +20 -10
- package/dist/lib/data/cookies-actions.js.map +1 -1
- package/dist/lib/data/cookies-utils.js +9 -3
- package/dist/lib/data/cookies-utils.js.map +1 -1
- package/dist/lib/data/customer.js +19 -10
- package/dist/lib/data/customer.js.map +1 -1
- package/dist/lib/data/footer.js +2 -1
- package/dist/lib/data/footer.js.map +1 -1
- package/dist/lib/data/orders.js +3 -2
- package/dist/lib/data/orders.js.map +1 -1
- package/dist/lib/data/regions.js +9 -6
- package/dist/lib/data/regions.js.map +1 -1
- package/dist/lib/globals/expose-globals.js +1 -1
- package/dist/lib/gql/apollo-client.js +12 -7
- package/dist/lib/gql/apollo-client.js.map +1 -1
- package/dist/lib/gql/fragments/cart.d.ts +9 -9
- package/dist/lib/gql/fragments/customer.d.ts +3 -3
- package/dist/lib/gql/fragments/product.d.ts +9 -9
- package/dist/lib/gql/fragments/product.d.ts.map +1 -1
- package/dist/lib/gql/fragments/product.js +12 -10
- package/dist/lib/gql/fragments/product.js.map +1 -1
- package/dist/lib/gql/mutations/cart.d.ts +6 -6
- package/dist/lib/gql/queries/cart.d.ts +2 -2
- package/dist/lib/gql/queries/cart.d.ts.map +1 -1
- package/dist/lib/gql/queries/collections.d.ts +4 -3
- package/dist/lib/gql/queries/collections.d.ts.map +1 -1
- package/dist/lib/gql/queries/collections.js +14 -2
- package/dist/lib/gql/queries/collections.js.map +1 -1
- package/dist/lib/gql/queries/customer.d.ts +2 -2
- package/dist/lib/gql/queries/customer.d.ts.map +1 -1
- package/dist/lib/gql/queries/order.d.ts +4 -4
- package/dist/lib/gql/queries/order.d.ts.map +1 -1
- package/dist/lib/gql/queries/order.js +1 -0
- package/dist/lib/gql/queries/order.js.map +1 -1
- package/dist/lib/gql/queries/product.d.ts +3 -4
- package/dist/lib/gql/queries/product.d.ts.map +1 -1
- package/dist/lib/gql/queries/product.js +2 -12
- package/dist/lib/gql/queries/product.js.map +1 -1
- package/dist/lib/gql/queries/regions.d.ts +3 -3
- package/dist/lib/gql/queries/shipping.d.ts +3 -3
- package/dist/lib/hooks/use-apollo.d.ts +2 -2
- package/dist/lib/hooks/use-apollo.js +2 -1
- package/dist/lib/hooks/use-apollo.js.map +1 -1
- package/dist/lib/hooks/use-cart.js +3 -1
- package/dist/lib/hooks/use-cart.js.map +1 -1
- package/dist/lib/hooks/use-customer.js +3 -1
- package/dist/lib/hooks/use-customer.js.map +1 -1
- package/dist/lib/utils/data-types.js +1 -1
- package/dist/lib/utils/data-types.js.map +1 -1
- package/dist/lib/utils/get-percentage-diff.js +3 -1
- package/dist/lib/utils/get-percentage-diff.js.map +1 -1
- package/dist/lib/utils/get-product-price.js +15 -5
- package/dist/lib/utils/get-product-price.js.map +1 -1
- package/dist/lib/utils/imagekit.d.ts +9 -0
- package/dist/lib/utils/imagekit.d.ts.map +1 -0
- package/dist/lib/utils/imagekit.js +26 -0
- package/dist/lib/utils/imagekit.js.map +1 -0
- package/dist/lib/utils/medusa-error.js +5 -2
- package/dist/lib/utils/medusa-error.js.map +1 -1
- package/dist/types/graphql.d.ts +27 -50
- package/dist/types/graphql.d.ts.map +1 -1
- package/dist/types/graphql.js +279 -186
- package/dist/types/graphql.js.map +1 -1
- package/package.json +5 -5
- package/dist/lib/data/search.d.ts +0 -9
- package/dist/lib/data/search.d.ts.map +0 -1
- package/dist/lib/data/search.js +0 -23
- package/dist/lib/data/search.js.map +0 -1
- package/dist/lib/hooks/use-search.d.ts +0 -22
- package/dist/lib/hooks/use-search.d.ts.map +0 -1
- package/dist/lib/hooks/use-search.js +0 -69
- package/dist/lib/hooks/use-search.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COLLECTION_PRODUCTS_FRAGMENT, PRODUCT_COLLECTION_FRAGMENT } from "../fragments/product.js";
|
|
1
|
+
import { COLLECTION_PRODUCTS_FRAGMENT, COLLECTION_PRODUCTS_HOME_FRAGMENT, PRODUCT_COLLECTION_FRAGMENT } from "../fragments/product.js";
|
|
2
2
|
import { gql } from "@apollo/client";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/gql/queries/collections.ts
|
|
@@ -14,7 +14,19 @@ const GET_COLLECTIONS_QUERY = gql`
|
|
|
14
14
|
${PRODUCT_COLLECTION_FRAGMENT}
|
|
15
15
|
${COLLECTION_PRODUCTS_FRAGMENT}
|
|
16
16
|
`;
|
|
17
|
+
const GET_COLLECTIONS_HOME_QUERY = gql`
|
|
18
|
+
query GetCollectionsHome($limit: Int, $offset: Int) {
|
|
19
|
+
collections(limit: $limit, offset: $offset) {
|
|
20
|
+
...ProductCollection
|
|
21
|
+
products {
|
|
22
|
+
...CollectionProductsHome
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
${PRODUCT_COLLECTION_FRAGMENT}
|
|
27
|
+
${COLLECTION_PRODUCTS_HOME_FRAGMENT}
|
|
28
|
+
`;
|
|
17
29
|
|
|
18
30
|
//#endregion
|
|
19
|
-
export { GET_COLLECTIONS_QUERY };
|
|
31
|
+
export { GET_COLLECTIONS_HOME_QUERY, GET_COLLECTIONS_QUERY };
|
|
20
32
|
//# sourceMappingURL=collections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.js","names":[],"sources":["../../../../src/lib/gql/queries/collections.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nimport {\n COLLECTION_PRODUCTS_FRAGMENT,\n PRODUCT_COLLECTION_FRAGMENT,\n} from '../fragments/product';\n\nexport const GET_COLLECTIONS_QUERY = gql`\n query GetCollections($limit: Int, $offset: Int) {\n collections(limit: $limit, offset: $offset) {\n ...ProductCollection\n products {\n ...CollectionProducts\n }\n }\n }\n ${PRODUCT_COLLECTION_FRAGMENT}\n ${COLLECTION_PRODUCTS_FRAGMENT}\n`;\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"collections.js","names":[],"sources":["../../../../src/lib/gql/queries/collections.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nimport {\n COLLECTION_PRODUCTS_FRAGMENT,\n COLLECTION_PRODUCTS_HOME_FRAGMENT,\n PRODUCT_COLLECTION_FRAGMENT,\n} from '../fragments/product';\n\nexport const GET_COLLECTIONS_QUERY = gql`\n query GetCollections($limit: Int, $offset: Int) {\n collections(limit: $limit, offset: $offset) {\n ...ProductCollection\n products {\n ...CollectionProducts\n }\n }\n }\n ${PRODUCT_COLLECTION_FRAGMENT}\n ${COLLECTION_PRODUCTS_FRAGMENT}\n`;\n\nexport const GET_COLLECTIONS_HOME_QUERY = gql`\n query GetCollectionsHome($limit: Int, $offset: Int) {\n collections(limit: $limit, offset: $offset) {\n ...ProductCollection\n products {\n ...CollectionProductsHome\n }\n }\n }\n ${PRODUCT_COLLECTION_FRAGMENT}\n ${COLLECTION_PRODUCTS_HOME_FRAGMENT}\n`;\n"],"mappings":";;;;AAQA,MAAa,wBAAwB,GAAG;;;;;;;;;IASpC,4BAA4B;IAC5B,6BAA6B;;AAGjC,MAAa,6BAA6B,GAAG;;;;;;;;;IASzC,4BAA4B;IAC5B,kCAAkC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client4 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/queries/customer.d.ts
|
|
4
|
-
declare const GET_CUSTOMER_QUERY:
|
|
4
|
+
declare const GET_CUSTOMER_QUERY: _apollo_client4.DocumentNode;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { GET_CUSTOMER_QUERY };
|
|
7
7
|
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/customer.ts"],"sourcesContent":[],"mappings":";;;cAIa,oBAOZ,
|
|
1
|
+
{"version":3,"file":"customer.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/customer.ts"],"sourcesContent":[],"mappings":";;;cAIa,oBAOZ,eAAA,CAP8B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client28 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/queries/order.d.ts
|
|
4
|
-
declare const ORDER_FRAGMENT:
|
|
5
|
-
declare const GET_ORDER_QUERY:
|
|
6
|
-
declare const GET_ORDERS_QUERY:
|
|
4
|
+
declare const ORDER_FRAGMENT: _apollo_client28.DocumentNode;
|
|
5
|
+
declare const GET_ORDER_QUERY: _apollo_client28.DocumentNode;
|
|
6
|
+
declare const GET_ORDERS_QUERY: _apollo_client28.DocumentNode;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { GET_ORDERS_QUERY, GET_ORDER_QUERY, ORDER_FRAGMENT };
|
|
9
9
|
//# sourceMappingURL=order.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/order.ts"],"sourcesContent":[],"mappings":";;;cAEa,
|
|
1
|
+
{"version":3,"file":"order.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/order.ts"],"sourcesContent":[],"mappings":";;;cAEa,gBA2EZ,gBAAA,CA3E0B;cA6Ed,iBAOZ,gBAAA,CAP2B;cASf,kBAYZ,gBAAA,CAZ4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.js","names":[],"sources":["../../../../src/lib/gql/queries/order.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nexport const ORDER_FRAGMENT = gql`\n fragment OrderFields on Order {\n id\n displayId\n email\n customerId\n regionId\n status\n paymentStatus\n fulfillmentStatus\n currencyCode\n total\n subtotal\n discountTotal\n giftCardTotal\n shippingTotal\n taxTotal\n createdAt\n items {\n id\n title\n quantity\n unitPrice\n total\n originalTotal\n thumbnail\n productHandle\n productTitle\n variant {\n id\n title\n sku\n product {\n id\n title\n handle\n thumbnail\n createdAt\n }\n }\n }\n shippingMethods {\n id\n name\n amount\n shippingOptionId\n }\n shippingAddress {\n firstName\n lastName\n address1\n address2\n city\n postalCode\n countryCode\n phone\n }\n paymentCollections {\n id\n currencyCode\n amount\n status\n paymentProviders {\n id\n }\n payments {\n id\n amount\n currencyCode\n providerId\n createdAt\n }\n }\n }\n`;\n\nexport const GET_ORDER_QUERY = gql`\n query GetOrder($id: ID!) {\n order(id: $id) {\n ...OrderFields\n }\n }\n ${ORDER_FRAGMENT}\n`;\n\nexport const GET_ORDERS_QUERY = gql`\n query GetOrders($limit: Int, $offset: Int) {\n orders(limit: $limit, offset: $offset) {\n orders {\n ...OrderFields\n }\n count\n limit\n offset\n }\n }\n ${ORDER_FRAGMENT}\n`;\n"],"mappings":";;;AAEA,MAAa,iBAAiB,GAAG
|
|
1
|
+
{"version":3,"file":"order.js","names":[],"sources":["../../../../src/lib/gql/queries/order.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nexport const ORDER_FRAGMENT = gql`\n fragment OrderFields on Order {\n id\n displayId\n email\n customerId\n regionId\n status\n paymentStatus\n fulfillmentStatus\n currencyCode\n total\n subtotal\n discountTotal\n giftCardTotal\n shippingTotal\n taxTotal\n createdAt\n items {\n id\n title\n quantity\n unitPrice\n total\n originalTotal\n thumbnail\n productHandle\n productTitle\n variant {\n id\n title\n sku\n product {\n id\n title\n handle\n thumbnail\n createdAt\n }\n }\n }\n shippingMethods {\n id\n name\n amount\n shippingOptionId\n }\n shippingAddress {\n firstName\n lastName\n address1\n address2\n city\n postalCode\n countryCode\n phone\n }\n paymentCollections {\n id\n currencyCode\n amount\n status\n paymentProviders {\n id\n }\n payments {\n id\n amount\n currencyCode\n providerId\n cardLast4\n createdAt\n }\n }\n }\n`;\n\nexport const GET_ORDER_QUERY = gql`\n query GetOrder($id: ID!) {\n order(id: $id) {\n ...OrderFields\n }\n }\n ${ORDER_FRAGMENT}\n`;\n\nexport const GET_ORDERS_QUERY = gql`\n query GetOrders($limit: Int, $offset: Int) {\n orders(limit: $limit, offset: $offset) {\n orders {\n ...OrderFields\n }\n count\n limit\n offset\n }\n }\n ${ORDER_FRAGMENT}\n`;\n"],"mappings":";;;AAEA,MAAa,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EjC,MAAa,kBAAkB,GAAG;;;;;;IAM9B,eAAe;;AAGnB,MAAa,mBAAmB,GAAG;;;;;;;;;;;IAW/B,eAAe"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client33 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/queries/product.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client32.DocumentNode;
|
|
4
|
+
declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client33.DocumentNode;
|
|
6
5
|
//#endregion
|
|
7
|
-
export { GET_PRODUCT_CATEGORIES_QUERY
|
|
6
|
+
export { GET_PRODUCT_CATEGORIES_QUERY };
|
|
8
7
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/product.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/product.ts"],"sourcesContent":[],"mappings":";;;cAIa,8BA4BZ,gBAAA,CA5BwC"}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import { PRODUCT_CATEGORY_FRAGMENT
|
|
1
|
+
import { PRODUCT_CATEGORY_FRAGMENT } from "../fragments/product.js";
|
|
2
2
|
import { gql } from "@apollo/client";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/gql/queries/product.ts
|
|
5
|
-
const SEARCH_SUGGESTIONS_QUERY = gql`
|
|
6
|
-
query SearchSuggestions($query: String!) {
|
|
7
|
-
searchProducts(query: $query) {
|
|
8
|
-
items {
|
|
9
|
-
...ProductHit
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
${PRODUCT_HIT_FRAGMENT}
|
|
14
|
-
`;
|
|
15
5
|
const GET_PRODUCT_CATEGORIES_QUERY = gql`
|
|
16
6
|
query GetProductCategories(
|
|
17
7
|
$limit: Int
|
|
@@ -43,5 +33,5 @@ const GET_PRODUCT_CATEGORIES_QUERY = gql`
|
|
|
43
33
|
`;
|
|
44
34
|
|
|
45
35
|
//#endregion
|
|
46
|
-
export { GET_PRODUCT_CATEGORIES_QUERY
|
|
36
|
+
export { GET_PRODUCT_CATEGORIES_QUERY };
|
|
47
37
|
//# sourceMappingURL=product.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.js","names":[],"sources":["../../../../src/lib/gql/queries/product.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nimport {
|
|
1
|
+
{"version":3,"file":"product.js","names":[],"sources":["../../../../src/lib/gql/queries/product.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nimport { PRODUCT_CATEGORY_FRAGMENT } from '../fragments/product';\n\nexport const GET_PRODUCT_CATEGORIES_QUERY = gql`\n query GetProductCategories(\n $limit: Int\n $offset: Int\n $q: String\n $handle: String\n $parent_category_id: String\n ) {\n productCategories(\n limit: $limit\n offset: $offset\n q: $q\n handle: $handle\n parent_category_id: $parent_category_id\n ) {\n ...ProductCategory\n parentCategory {\n ...ProductCategory\n }\n categoryChildren {\n ...ProductCategory\n }\n products {\n count\n }\n }\n }\n ${PRODUCT_CATEGORY_FRAGMENT}\n`;\n"],"mappings":";;;;AAIA,MAAa,+BAA+B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2B3C,0BAA0B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client31 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/queries/regions.d.ts
|
|
4
|
-
declare const LIST_REGIONS_QUERY:
|
|
5
|
-
declare const GET_REGION_QUERY:
|
|
4
|
+
declare const LIST_REGIONS_QUERY: _apollo_client31.DocumentNode;
|
|
5
|
+
declare const GET_REGION_QUERY: _apollo_client31.DocumentNode;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { GET_REGION_QUERY, LIST_REGIONS_QUERY };
|
|
8
8
|
//# sourceMappingURL=regions.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client2 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/queries/shipping.d.ts
|
|
4
|
-
declare const SHIPPING_OPTION_FRAGMENT:
|
|
5
|
-
declare const GET_SHIPPING_OPTIONS_QUERY:
|
|
4
|
+
declare const SHIPPING_OPTION_FRAGMENT: _apollo_client2.DocumentNode;
|
|
5
|
+
declare const GET_SHIPPING_OPTIONS_QUERY: _apollo_client2.DocumentNode;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { GET_SHIPPING_OPTIONS_QUERY, SHIPPING_OPTION_FRAGMENT };
|
|
8
8
|
//# sourceMappingURL=shipping.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client5 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/hooks/use-apollo.d.ts
|
|
4
|
-
declare function useApollo():
|
|
4
|
+
declare function useApollo(): _apollo_client5.ApolloClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { useApollo };
|
|
7
7
|
//# sourceMappingURL=use-apollo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-apollo.js","names":[],"sources":["../../../src/lib/hooks/use-apollo.tsx"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { initializeApollo } from '@/lib/gql/apollo-client';\n\nexport function useApollo() {\n const storedClient = useMemo(initializeApollo, []);\n\n return storedClient;\n}\n"],"mappings":";;;;AAIA,SAAgB,YAAY;
|
|
1
|
+
{"version":3,"file":"use-apollo.js","names":[],"sources":["../../../src/lib/hooks/use-apollo.tsx"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { initializeApollo } from '@/lib/gql/apollo-client';\n\nexport function useApollo() {\n const storedClient = useMemo(initializeApollo, []);\n\n return storedClient;\n}\n"],"mappings":";;;;AAIA,SAAgB,YAAY;CAC1B,MAAM,eAAe,QAAQ,kBAAkB,EAAE,CAAC;AAElD,QAAO"}
|
|
@@ -7,7 +7,9 @@ const CART_SWR_KEY = "medusa-cart";
|
|
|
7
7
|
const useCart = () => {
|
|
8
8
|
const { data, error, isLoading, mutate: swrMutate } = useSWR(CART_SWR_KEY, async () => {
|
|
9
9
|
const response = await fetch("/api/horz/cart", { credentials: "include" });
|
|
10
|
-
if (!response.ok)
|
|
10
|
+
if (!response.ok) {
|
|
11
|
+
throw new Error("Failed to fetch cart");
|
|
12
|
+
}
|
|
11
13
|
const { cart } = await response.json();
|
|
12
14
|
return cart;
|
|
13
15
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cart.js","names":[],"sources":["../../../src/lib/hooks/use-cart.ts"],"sourcesContent":["'use client';\n\nimport useSWR, { mutate } from 'swr';\n\nimport { Cart } from '../../types/graphql';\n\nconst CART_SWR_KEY = 'medusa-cart';\n\nexport const useCart = () => {\n const {\n data,\n error,\n isLoading,\n mutate: swrMutate,\n } = useSWR<Cart | null>(\n CART_SWR_KEY,\n async () => {\n const response = await fetch('/api/horz/cart', {\n credentials: 'include',\n });\n\n if (!response.ok) {\n throw new Error('Failed to fetch cart');\n }\n\n const { cart } = await response.json();\n return cart;\n },\n {\n revalidateOnFocus: false,\n revalidateOnReconnect: false,\n }\n );\n\n return {\n cart: data,\n error,\n isLoading,\n mutate: swrMutate,\n };\n};\n\nexport const mutateCart = () => {\n return mutate(CART_SWR_KEY);\n};\n"],"mappings":";;;;;AAMA,MAAM,eAAe;AAErB,MAAa,gBAAgB;CAC3B,MAAM,EACJ,MACA,OACA,WACA,QAAQ,cACN,OACF,cACA,YAAY;EACV,MAAM,WAAW,MAAM,MAAM,kBAAkB,EAC7C,aAAa,WACd,CAAC;AAEF,MAAI,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"use-cart.js","names":[],"sources":["../../../src/lib/hooks/use-cart.ts"],"sourcesContent":["'use client';\n\nimport useSWR, { mutate } from 'swr';\n\nimport { Cart } from '../../types/graphql';\n\nconst CART_SWR_KEY = 'medusa-cart';\n\nexport const useCart = () => {\n const {\n data,\n error,\n isLoading,\n mutate: swrMutate,\n } = useSWR<Cart | null>(\n CART_SWR_KEY,\n async () => {\n const response = await fetch('/api/horz/cart', {\n credentials: 'include',\n });\n\n if (!response.ok) {\n throw new Error('Failed to fetch cart');\n }\n\n const { cart } = await response.json();\n return cart;\n },\n {\n revalidateOnFocus: false,\n revalidateOnReconnect: false,\n }\n );\n\n return {\n cart: data,\n error,\n isLoading,\n mutate: swrMutate,\n };\n};\n\nexport const mutateCart = () => {\n return mutate(CART_SWR_KEY);\n};\n"],"mappings":";;;;;AAMA,MAAM,eAAe;AAErB,MAAa,gBAAgB;CAC3B,MAAM,EACJ,MACA,OACA,WACA,QAAQ,cACN,OACF,cACA,YAAY;EACV,MAAM,WAAW,MAAM,MAAM,kBAAkB,EAC7C,aAAa,WACd,CAAC;AAEF,MAAI,CAAC,SAAS,IAAI;AAChB,SAAM,IAAI,MAAM,uBAAuB;;EAGzC,MAAM,EAAE,SAAS,MAAM,SAAS,MAAM;AACtC,SAAO;IAET;EACE,mBAAmB;EACnB,uBAAuB;EACxB,CACF;AAED,QAAO;EACL,MAAM;EACN;EACA;EACA,QAAQ;EACT;;AAGH,MAAa,mBAAmB;AAC9B,QAAO,OAAO,aAAa"}
|
|
@@ -7,7 +7,9 @@ const CUSTOMER_SWR_KEY = "medusa-customer";
|
|
|
7
7
|
const useCustomer = () => {
|
|
8
8
|
const { data, error, isLoading, mutate: swrMutate } = useSWR(CUSTOMER_SWR_KEY, async () => {
|
|
9
9
|
const response = await fetch("/api/horz/customer", { credentials: "include" });
|
|
10
|
-
if (!response.ok)
|
|
10
|
+
if (!response.ok) {
|
|
11
|
+
throw new Error("Failed to fetch customer");
|
|
12
|
+
}
|
|
11
13
|
const { customer } = await response.json();
|
|
12
14
|
return customer;
|
|
13
15
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-customer.js","names":[],"sources":["../../../src/lib/hooks/use-customer.tsx"],"sourcesContent":["'use client';\n\nimport useSWR from 'swr';\n\nimport { Customer } from '../../types/graphql';\n\nconst CUSTOMER_SWR_KEY = 'medusa-customer';\n\nexport const useCustomer = () => {\n const {\n data,\n error,\n isLoading,\n mutate: swrMutate,\n } = useSWR<Customer | null>(\n CUSTOMER_SWR_KEY,\n async () => {\n const response = await fetch('/api/horz/customer', {\n credentials: 'include',\n });\n\n if (!response.ok) {\n throw new Error('Failed to fetch customer');\n }\n\n const { customer } = await response.json();\n\n return customer;\n },\n {\n revalidateOnFocus: false,\n revalidateOnReconnect: false,\n }\n );\n\n return {\n customer: data,\n error,\n isLoading,\n mutate: swrMutate,\n };\n};\n"],"mappings":";;;;;AAMA,MAAM,mBAAmB;AAEzB,MAAa,oBAAoB;CAC/B,MAAM,EACJ,MACA,OACA,WACA,QAAQ,cACN,OACF,kBACA,YAAY;EACV,MAAM,WAAW,MAAM,MAAM,sBAAsB,EACjD,aAAa,WACd,CAAC;AAEF,MAAI,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"use-customer.js","names":[],"sources":["../../../src/lib/hooks/use-customer.tsx"],"sourcesContent":["'use client';\n\nimport useSWR from 'swr';\n\nimport { Customer } from '../../types/graphql';\n\nconst CUSTOMER_SWR_KEY = 'medusa-customer';\n\nexport const useCustomer = () => {\n const {\n data,\n error,\n isLoading,\n mutate: swrMutate,\n } = useSWR<Customer | null>(\n CUSTOMER_SWR_KEY,\n async () => {\n const response = await fetch('/api/horz/customer', {\n credentials: 'include',\n });\n\n if (!response.ok) {\n throw new Error('Failed to fetch customer');\n }\n\n const { customer } = await response.json();\n\n return customer;\n },\n {\n revalidateOnFocus: false,\n revalidateOnReconnect: false,\n }\n );\n\n return {\n customer: data,\n error,\n isLoading,\n mutate: swrMutate,\n };\n};\n"],"mappings":";;;;;AAMA,MAAM,mBAAmB;AAEzB,MAAa,oBAAoB;CAC/B,MAAM,EACJ,MACA,OACA,WACA,QAAQ,cACN,OACF,kBACA,YAAY;EACV,MAAM,WAAW,MAAM,MAAM,sBAAsB,EACjD,aAAa,WACd,CAAC;AAEF,MAAI,CAAC,SAAS,IAAI;AAChB,SAAM,IAAI,MAAM,2BAA2B;;EAG7C,MAAM,EAAE,aAAa,MAAM,SAAS,MAAM;AAE1C,SAAO;IAET;EACE,mBAAmB;EACnB,uBAAuB;EACxB,CACF;AAED,QAAO;EACL,UAAU;EACV;EACA;EACA,QAAQ;EACT"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const isObject = (input) => input instanceof Object;
|
|
3
3
|
const isArray = (input) => Array.isArray(input);
|
|
4
4
|
const isEmpty = (input) => {
|
|
5
|
-
return input === null || input ===
|
|
5
|
+
return input === null || input === undefined || isObject(input) && Object.keys(input).length === 0 || isArray(input) && input.length === 0 || typeof input === "string" && input.trim().length === 0;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-types.js","names":[],"sources":["../../../src/lib/utils/data-types.ts"],"sourcesContent":["export const isObject = (input: any) => input instanceof Object;\nexport const isArray = (input: any) => Array.isArray(input);\nexport const isEmpty = (input: any) => {\n return (\n input === null ||\n input === undefined ||\n (isObject(input) && Object.keys(input).length === 0) ||\n (isArray(input) && (input as any[]).length === 0) ||\n (typeof input === 'string' && input.trim().length === 0)\n );\n};\n"],"mappings":";AAAA,MAAa,YAAY,UAAe,iBAAiB;AACzD,MAAa,WAAW,UAAe,MAAM,QAAQ,MAAM;AAC3D,MAAa,WAAW,UAAe;AACrC,QACE,UAAU,QACV,UAAU,
|
|
1
|
+
{"version":3,"file":"data-types.js","names":[],"sources":["../../../src/lib/utils/data-types.ts"],"sourcesContent":["export const isObject = (input: any) => input instanceof Object;\nexport const isArray = (input: any) => Array.isArray(input);\nexport const isEmpty = (input: any) => {\n return (\n input === null ||\n input === undefined ||\n (isObject(input) && Object.keys(input).length === 0) ||\n (isArray(input) && (input as any[]).length === 0) ||\n (typeof input === 'string' && input.trim().length === 0)\n );\n};\n"],"mappings":";AAAA,MAAa,YAAY,UAAe,iBAAiB;AACzD,MAAa,WAAW,UAAe,MAAM,QAAQ,MAAM;AAC3D,MAAa,WAAW,UAAe;AACrC,QACE,UAAU,QACV,UAAU,aACT,SAAS,MAAM,IAAI,OAAO,KAAK,MAAM,CAAC,WAAW,KACjD,QAAQ,MAAM,IAAK,MAAgB,WAAW,KAC9C,OAAO,UAAU,YAAY,MAAM,MAAM,CAAC,WAAW"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
//#region src/lib/utils/get-percentage-diff.ts
|
|
2
2
|
const getPercentageDiff = (original, calculated) => {
|
|
3
|
-
|
|
3
|
+
const diff = original - calculated;
|
|
4
|
+
const decrease = diff / original * 100;
|
|
5
|
+
return decrease.toFixed();
|
|
4
6
|
};
|
|
5
7
|
|
|
6
8
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-percentage-diff.js","names":[],"sources":["../../../src/lib/utils/get-percentage-diff.ts"],"sourcesContent":["export const getPercentageDiff = (original: number, calculated: number) => {\n const diff = original - calculated;\n const decrease = (diff / original) * 100;\n\n return decrease.toFixed();\n};\n"],"mappings":";AAAA,MAAa,qBAAqB,UAAkB,eAAuB;
|
|
1
|
+
{"version":3,"file":"get-percentage-diff.js","names":[],"sources":["../../../src/lib/utils/get-percentage-diff.ts"],"sourcesContent":["export const getPercentageDiff = (original: number, calculated: number) => {\n const diff = original - calculated;\n const decrease = (diff / original) * 100;\n\n return decrease.toFixed();\n};\n"],"mappings":";AAAA,MAAa,qBAAqB,UAAkB,eAAuB;CACzE,MAAM,OAAO,WAAW;CACxB,MAAM,WAAY,OAAO,WAAY;AAErC,QAAO,SAAS,SAAS"}
|
|
@@ -3,7 +3,9 @@ import { getPercentageDiff } from "./get-percentage-diff.js";
|
|
|
3
3
|
|
|
4
4
|
//#region src/lib/utils/get-product-price.ts
|
|
5
5
|
const getPricesForVariant = (variant) => {
|
|
6
|
-
if (!variant?.price?.amount)
|
|
6
|
+
if (!variant?.price?.amount) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
7
9
|
return {
|
|
8
10
|
calculated_price_number: variant.price?.amount,
|
|
9
11
|
calculated_price: convertToLocale({
|
|
@@ -21,18 +23,26 @@ const getPricesForVariant = (variant) => {
|
|
|
21
23
|
};
|
|
22
24
|
};
|
|
23
25
|
function getProductPrice({ product, variantId }) {
|
|
24
|
-
if (!product || !product.id)
|
|
26
|
+
if (!product || !product.id) {
|
|
27
|
+
throw new Error("No product provided");
|
|
28
|
+
}
|
|
25
29
|
const cheapestPrice = () => {
|
|
26
|
-
if (!product || !product.variants?.length)
|
|
30
|
+
if (!product || !product.variants?.length) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
27
33
|
const cheapestVariant = product.variants.filter((v) => !!v.price).sort((a, b) => {
|
|
28
34
|
return (a.price?.amount ?? 0) - (b.price?.amount ?? 0);
|
|
29
35
|
})[0];
|
|
30
36
|
return getPricesForVariant(cheapestVariant);
|
|
31
37
|
};
|
|
32
38
|
const variantPrice = () => {
|
|
33
|
-
if (!product || !variantId)
|
|
39
|
+
if (!product || !variantId) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
34
42
|
const variant = product.variants?.find((v) => v.id === variantId || v.sku === variantId);
|
|
35
|
-
if (!variant)
|
|
43
|
+
if (!variant) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
36
46
|
return getPricesForVariant(variant);
|
|
37
47
|
};
|
|
38
48
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-product-price.js","names":["cheapestVariant: any","variant: any"],"sources":["../../../src/lib/utils/get-product-price.ts"],"sourcesContent":["import { Product } from '@/types/graphql';\n\nimport { getPercentageDiff } from './get-percentage-diff';\nimport { convertToLocale } from './money';\n\nexport const getPricesForVariant = (variant: any) => {\n if (!variant?.price?.amount) {\n return null;\n }\n\n return {\n calculated_price_number: variant.price?.amount,\n calculated_price: convertToLocale({\n amount: variant.price.amount,\n currency_code: variant.price.currencyCode || '',\n }),\n original_price_number:\n variant.originalPrice?.amount || variant.price.amount,\n original_price: convertToLocale({\n amount: variant.originalPrice?.amount || variant.price.amount,\n currency_code: variant.price.currencyCode || '',\n }),\n currency_code: variant.price.currencyCode,\n price_type: variant.price.priceType || 'default',\n percentage_diff: getPercentageDiff(\n variant.originalPrice?.amount || variant.price.amount,\n variant.price.amount\n ),\n };\n};\n\nexport function getProductPrice({\n product,\n variantId,\n}: {\n product: Product;\n variantId?: string;\n}) {\n if (!product || !product.id) {\n throw new Error('No product provided');\n }\n\n const cheapestPrice = () => {\n if (!product || !product.variants?.length) {\n return null;\n }\n\n const cheapestVariant: any = product.variants\n .filter((v: any) => !!v.price)\n .sort((a: any, b: any) => {\n return (a.price?.amount ?? 0) - (b.price?.amount ?? 0);\n })[0];\n\n return getPricesForVariant(cheapestVariant);\n };\n\n const variantPrice = () => {\n if (!product || !variantId) {\n return null;\n }\n\n const variant: any = product.variants?.find(\n (v) => v.id === variantId || v.sku === variantId\n );\n\n if (!variant) {\n return null;\n }\n\n return getPricesForVariant(variant);\n };\n\n return {\n product,\n cheapestPrice: cheapestPrice(),\n variantPrice: variantPrice(),\n };\n}\n"],"mappings":";;;;AAKA,MAAa,uBAAuB,YAAiB;AACnD,KAAI,CAAC,SAAS,OAAO,
|
|
1
|
+
{"version":3,"file":"get-product-price.js","names":["cheapestVariant: any","variant: any"],"sources":["../../../src/lib/utils/get-product-price.ts"],"sourcesContent":["import { Product } from '@/types/graphql';\n\nimport { getPercentageDiff } from './get-percentage-diff';\nimport { convertToLocale } from './money';\n\nexport const getPricesForVariant = (variant: any) => {\n if (!variant?.price?.amount) {\n return null;\n }\n\n return {\n calculated_price_number: variant.price?.amount,\n calculated_price: convertToLocale({\n amount: variant.price.amount,\n currency_code: variant.price.currencyCode || '',\n }),\n original_price_number:\n variant.originalPrice?.amount || variant.price.amount,\n original_price: convertToLocale({\n amount: variant.originalPrice?.amount || variant.price.amount,\n currency_code: variant.price.currencyCode || '',\n }),\n currency_code: variant.price.currencyCode,\n price_type: variant.price.priceType || 'default',\n percentage_diff: getPercentageDiff(\n variant.originalPrice?.amount || variant.price.amount,\n variant.price.amount\n ),\n };\n};\n\nexport function getProductPrice({\n product,\n variantId,\n}: {\n product: Product;\n variantId?: string;\n}) {\n if (!product || !product.id) {\n throw new Error('No product provided');\n }\n\n const cheapestPrice = () => {\n if (!product || !product.variants?.length) {\n return null;\n }\n\n const cheapestVariant: any = product.variants\n .filter((v: any) => !!v.price)\n .sort((a: any, b: any) => {\n return (a.price?.amount ?? 0) - (b.price?.amount ?? 0);\n })[0];\n\n return getPricesForVariant(cheapestVariant);\n };\n\n const variantPrice = () => {\n if (!product || !variantId) {\n return null;\n }\n\n const variant: any = product.variants?.find(\n (v) => v.id === variantId || v.sku === variantId\n );\n\n if (!variant) {\n return null;\n }\n\n return getPricesForVariant(variant);\n };\n\n return {\n product,\n cheapestPrice: cheapestPrice(),\n variantPrice: variantPrice(),\n };\n}\n"],"mappings":";;;;AAKA,MAAa,uBAAuB,YAAiB;AACnD,KAAI,CAAC,SAAS,OAAO,QAAQ;AAC3B,SAAO;;AAGT,QAAO;EACL,yBAAyB,QAAQ,OAAO;EACxC,kBAAkB,gBAAgB;GAChC,QAAQ,QAAQ,MAAM;GACtB,eAAe,QAAQ,MAAM,gBAAgB;GAC9C,CAAC;EACF,uBACE,QAAQ,eAAe,UAAU,QAAQ,MAAM;EACjD,gBAAgB,gBAAgB;GAC9B,QAAQ,QAAQ,eAAe,UAAU,QAAQ,MAAM;GACvD,eAAe,QAAQ,MAAM,gBAAgB;GAC9C,CAAC;EACF,eAAe,QAAQ,MAAM;EAC7B,YAAY,QAAQ,MAAM,aAAa;EACvC,iBAAiB,kBACf,QAAQ,eAAe,UAAU,QAAQ,MAAM,QAC/C,QAAQ,MAAM,OACf;EACF;;AAGH,SAAgB,gBAAgB,EAC9B,SACA,aAIC;AACD,KAAI,CAAC,WAAW,CAAC,QAAQ,IAAI;AAC3B,QAAM,IAAI,MAAM,sBAAsB;;CAGxC,MAAM,sBAAsB;AAC1B,MAAI,CAAC,WAAW,CAAC,QAAQ,UAAU,QAAQ;AACzC,UAAO;;EAGT,MAAMA,kBAAuB,QAAQ,SAClC,QAAQ,MAAW,CAAC,CAAC,EAAE,MAAM,CAC7B,MAAM,GAAQ,MAAW;AACxB,WAAQ,EAAE,OAAO,UAAU,MAAM,EAAE,OAAO,UAAU;IACpD,CAAC;AAEL,SAAO,oBAAoB,gBAAgB;;CAG7C,MAAM,qBAAqB;AACzB,MAAI,CAAC,WAAW,CAAC,WAAW;AAC1B,UAAO;;EAGT,MAAMC,UAAe,QAAQ,UAAU,MACpC,MAAM,EAAE,OAAO,aAAa,EAAE,QAAQ,UACxC;AAED,MAAI,CAAC,SAAS;AACZ,UAAO;;AAGT,SAAO,oBAAoB,QAAQ;;AAGrC,QAAO;EACL;EACA,eAAe,eAAe;EAC9B,cAAc,cAAc;EAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imagekit.d.ts","names":[],"sources":["../../../src/lib/utils/imagekit.ts"],"sourcesContent":[],"mappings":";iBAAgB,cAAA;EAAA,KAAA,CAAA,EAAA,MAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/lib/utils/imagekit.ts
|
|
2
|
+
function getImageKitUrl(src, options) {
|
|
3
|
+
if (!src) return src;
|
|
4
|
+
const publicEndpoint = "https://ik.imagekit.io/94rjnwlop";
|
|
5
|
+
const normalizedEndpoint = publicEndpoint.replace(/\/$/, "");
|
|
6
|
+
if (src.includes("ik.imagekit.io")) {
|
|
7
|
+
return src;
|
|
8
|
+
}
|
|
9
|
+
const params = [];
|
|
10
|
+
if (options?.width) params.push(`w-${options.width}`);
|
|
11
|
+
if (options?.height) params.push(`h-${options.height}`);
|
|
12
|
+
if (options?.quality) params.push(`q-${options.quality}`);
|
|
13
|
+
params.push("f-auto");
|
|
14
|
+
const transformStr = params.length > 0 ? `tr:${params.join(",")}` : "";
|
|
15
|
+
if (src.startsWith("http://") || src.startsWith("https://")) {
|
|
16
|
+
let urlPath = src.replace(/^https?:\/\//, "");
|
|
17
|
+
urlPath = urlPath.replace(/^cdn\.shopify\.com\//, "");
|
|
18
|
+
return transformStr ? `${normalizedEndpoint}/${transformStr}/${urlPath}` : `${normalizedEndpoint}/${urlPath}`;
|
|
19
|
+
}
|
|
20
|
+
const normalizedSrc = src.startsWith("/") ? src.slice(1) : src;
|
|
21
|
+
return transformStr ? `${normalizedEndpoint}/${transformStr}/${normalizedSrc}` : `${normalizedEndpoint}/${normalizedSrc}`;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { getImageKitUrl };
|
|
26
|
+
//# sourceMappingURL=imagekit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imagekit.js","names":["params: string[]"],"sources":["../../../src/lib/utils/imagekit.ts"],"sourcesContent":["export function getImageKitUrl(\n src: string,\n options?: { width?: number; height?: number; quality?: number }\n): string {\n if (!src) return src;\n\n const publicEndpoint = 'https://ik.imagekit.io/94rjnwlop';\n const normalizedEndpoint = publicEndpoint.replace(/\\/$/, '');\n\n if (src.includes('ik.imagekit.io')) {\n return src;\n }\n\n const params: string[] = [];\n if (options?.width) params.push(`w-${options.width}`);\n if (options?.height) params.push(`h-${options.height}`);\n if (options?.quality) params.push(`q-${options.quality}`);\n params.push('f-auto');\n\n const transformStr = params.length > 0 ? `tr:${params.join(',')}` : '';\n\n if (src.startsWith('http://') || src.startsWith('https://')) {\n let urlPath = src.replace(/^https?:\\/\\//, '');\n urlPath = urlPath.replace(/^cdn\\.shopify\\.com\\//, '');\n return transformStr\n ? `${normalizedEndpoint}/${transformStr}/${urlPath}`\n : `${normalizedEndpoint}/${urlPath}`;\n }\n\n const normalizedSrc = src.startsWith('/') ? src.slice(1) : src;\n return transformStr\n ? `${normalizedEndpoint}/${transformStr}/${normalizedSrc}`\n : `${normalizedEndpoint}/${normalizedSrc}`;\n}\n"],"mappings":";AAAA,SAAgB,eACd,KACA,SACQ;AACR,KAAI,CAAC,IAAK,QAAO;CAEjB,MAAM,iBAAiB;CACvB,MAAM,qBAAqB,eAAe,QAAQ,OAAO,GAAG;AAE5D,KAAI,IAAI,SAAS,iBAAiB,EAAE;AAClC,SAAO;;CAGT,MAAMA,SAAmB,EAAE;AAC3B,KAAI,SAAS,MAAO,QAAO,KAAK,KAAK,QAAQ,QAAQ;AACrD,KAAI,SAAS,OAAQ,QAAO,KAAK,KAAK,QAAQ,SAAS;AACvD,KAAI,SAAS,QAAS,QAAO,KAAK,KAAK,QAAQ,UAAU;AACzD,QAAO,KAAK,SAAS;CAErB,MAAM,eAAe,OAAO,SAAS,IAAI,MAAM,OAAO,KAAK,IAAI,KAAK;AAEpE,KAAI,IAAI,WAAW,UAAU,IAAI,IAAI,WAAW,WAAW,EAAE;EAC3D,IAAI,UAAU,IAAI,QAAQ,gBAAgB,GAAG;AAC7C,YAAU,QAAQ,QAAQ,wBAAwB,GAAG;AACrD,SAAO,eACH,GAAG,mBAAmB,GAAG,aAAa,GAAG,YACzC,GAAG,mBAAmB,GAAG;;CAG/B,MAAM,gBAAgB,IAAI,WAAW,IAAI,GAAG,IAAI,MAAM,EAAE,GAAG;AAC3D,QAAO,eACH,GAAG,mBAAmB,GAAG,aAAa,GAAG,kBACzC,GAAG,mBAAmB,GAAG"}
|
|
@@ -8,8 +8,11 @@ function medusaError(error) {
|
|
|
8
8
|
console.error("Headers:", error.response.headers);
|
|
9
9
|
const message = error.response.data.message || error.response.data;
|
|
10
10
|
throw new Error(message.charAt(0).toUpperCase() + message.slice(1) + ".");
|
|
11
|
-
} else if (error.request)
|
|
12
|
-
|
|
11
|
+
} else if (error.request) {
|
|
12
|
+
throw new Error("No response received: " + error.request);
|
|
13
|
+
} else {
|
|
14
|
+
throw new Error("Error setting up the request: " + error.message);
|
|
15
|
+
}
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medusa-error.js","names":[],"sources":["../../../src/lib/utils/medusa-error.ts"],"sourcesContent":["export function medusaError(error: any): never {\n if (error.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n const u = new URL(error.config.url, error.config.baseURL);\n console.error('Resource:', u.toString());\n console.error('Response data:', error.response.data);\n console.error('Status code:', error.response.status);\n console.error('Headers:', error.response.headers);\n\n // Extracting the error message from the response data\n const message = error.response.data.message || error.response.data;\n\n throw new Error(message.charAt(0).toUpperCase() + message.slice(1) + '.');\n } else if (error.request) {\n // The request was made but no response was received\n throw new Error('No response received: ' + error.request);\n } else {\n // Something happened in setting up the request that triggered an Error\n throw new Error('Error setting up the request: ' + error.message);\n }\n}\n"],"mappings":";AAAA,SAAgB,YAAY,OAAmB;AAC7C,KAAI,MAAM,UAAU;EAGlB,MAAM,IAAI,IAAI,IAAI,MAAM,OAAO,KAAK,MAAM,OAAO,QAAQ;AACzD,UAAQ,MAAM,aAAa,EAAE,UAAU,CAAC;AACxC,UAAQ,MAAM,kBAAkB,MAAM,SAAS,KAAK;AACpD,UAAQ,MAAM,gBAAgB,MAAM,SAAS,OAAO;AACpD,UAAQ,MAAM,YAAY,MAAM,SAAS,QAAQ;EAGjD,MAAM,UAAU,MAAM,SAAS,KAAK,WAAW,MAAM,SAAS;AAE9D,QAAM,IAAI,MAAM,QAAQ,OAAO,EAAE,CAAC,aAAa,GAAG,QAAQ,MAAM,EAAE,GAAG,IAAI;YAChE,MAAM,
|
|
1
|
+
{"version":3,"file":"medusa-error.js","names":[],"sources":["../../../src/lib/utils/medusa-error.ts"],"sourcesContent":["export function medusaError(error: any): never {\n if (error.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n const u = new URL(error.config.url, error.config.baseURL);\n console.error('Resource:', u.toString());\n console.error('Response data:', error.response.data);\n console.error('Status code:', error.response.status);\n console.error('Headers:', error.response.headers);\n\n // Extracting the error message from the response data\n const message = error.response.data.message || error.response.data;\n\n throw new Error(message.charAt(0).toUpperCase() + message.slice(1) + '.');\n } else if (error.request) {\n // The request was made but no response was received\n throw new Error('No response received: ' + error.request);\n } else {\n // Something happened in setting up the request that triggered an Error\n throw new Error('Error setting up the request: ' + error.message);\n }\n}\n"],"mappings":";AAAA,SAAgB,YAAY,OAAmB;AAC7C,KAAI,MAAM,UAAU;EAGlB,MAAM,IAAI,IAAI,IAAI,MAAM,OAAO,KAAK,MAAM,OAAO,QAAQ;AACzD,UAAQ,MAAM,aAAa,EAAE,UAAU,CAAC;AACxC,UAAQ,MAAM,kBAAkB,MAAM,SAAS,KAAK;AACpD,UAAQ,MAAM,gBAAgB,MAAM,SAAS,OAAO;AACpD,UAAQ,MAAM,YAAY,MAAM,SAAS,QAAQ;EAGjD,MAAM,UAAU,MAAM,SAAS,KAAK,WAAW,MAAM,SAAS;AAE9D,QAAM,IAAI,MAAM,QAAQ,OAAO,EAAE,CAAC,aAAa,GAAG,QAAQ,MAAM,EAAE,GAAG,IAAI;YAChE,MAAM,SAAS;AAExB,QAAM,IAAI,MAAM,2BAA2B,MAAM,QAAQ;QACpD;AAEL,QAAM,IAAI,MAAM,mCAAmC,MAAM,QAAQ"}
|
package/dist/types/graphql.d.ts
CHANGED
|
@@ -485,14 +485,6 @@ type ProductCategory = {
|
|
|
485
485
|
parentCategory?: Maybe<ProductCategory>;
|
|
486
486
|
products?: Maybe<ProductList>;
|
|
487
487
|
};
|
|
488
|
-
type ProductHit = {
|
|
489
|
-
__typename?: 'ProductHit';
|
|
490
|
-
description?: Maybe<Scalars['String']['output']>;
|
|
491
|
-
handle: Scalars['String']['output'];
|
|
492
|
-
id: Scalars['ID']['output'];
|
|
493
|
-
thumbnail?: Maybe<Scalars['String']['output']>;
|
|
494
|
-
title?: Maybe<Scalars['String']['output']>;
|
|
495
|
-
};
|
|
496
488
|
type ProductImage = {
|
|
497
489
|
__typename?: 'ProductImage';
|
|
498
490
|
id: Scalars['ID']['output'];
|
|
@@ -566,7 +558,6 @@ type Query = {
|
|
|
566
558
|
products: ProductListResponse;
|
|
567
559
|
region?: Maybe<Region>;
|
|
568
560
|
regions: Array<Region>;
|
|
569
|
-
searchProducts: SearchProducts;
|
|
570
561
|
shippingOptions?: Maybe<Array<Maybe<ShippingOption>>>;
|
|
571
562
|
};
|
|
572
563
|
type Query_CartArgs = {
|
|
@@ -622,14 +613,6 @@ type Query_ProductsArgs = {
|
|
|
622
613
|
type Query_RegionArgs = {
|
|
623
614
|
id: Scalars['ID']['input'];
|
|
624
615
|
};
|
|
625
|
-
type Query_SearchProductsArgs = {
|
|
626
|
-
facets?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
627
|
-
filters?: InputMaybe<Scalars['String']['input']>;
|
|
628
|
-
hitsPerPage?: InputMaybe<Scalars['Int']['input']>;
|
|
629
|
-
indexName?: InputMaybe<Scalars['String']['input']>;
|
|
630
|
-
page?: InputMaybe<Scalars['Int']['input']>;
|
|
631
|
-
query?: InputMaybe<Scalars['String']['input']>;
|
|
632
|
-
};
|
|
633
616
|
type Query_ShippingOptionsArgs = {
|
|
634
617
|
cartId: Scalars['ID']['input'];
|
|
635
618
|
};
|
|
@@ -648,16 +631,6 @@ type RegisterCustomerInput = {
|
|
|
648
631
|
password: Scalars['String']['input'];
|
|
649
632
|
phone?: InputMaybe<Scalars['String']['input']>;
|
|
650
633
|
};
|
|
651
|
-
type SearchProducts = {
|
|
652
|
-
__typename?: 'SearchProducts';
|
|
653
|
-
hitsPerPage: Scalars['Int']['output'];
|
|
654
|
-
items: Array<ProductHit>;
|
|
655
|
-
page: Scalars['Int']['output'];
|
|
656
|
-
params: Scalars['String']['output'];
|
|
657
|
-
query: Scalars['String']['output'];
|
|
658
|
-
total: Scalars['Int']['output'];
|
|
659
|
-
totalPages: Scalars['Int']['output'];
|
|
660
|
-
};
|
|
661
634
|
type ServiceZone = {
|
|
662
635
|
__typename?: 'ServiceZone';
|
|
663
636
|
fulfillmentSetType?: Maybe<Scalars['String']['output']>;
|
|
@@ -920,14 +893,6 @@ type ProductVariantFragment = {
|
|
|
920
893
|
__typename?: 'Price';
|
|
921
894
|
} & PriceFragment) | null;
|
|
922
895
|
};
|
|
923
|
-
type ProductHitFragment = {
|
|
924
|
-
__typename?: 'ProductHit';
|
|
925
|
-
id: string;
|
|
926
|
-
title?: string | null;
|
|
927
|
-
description?: string | null;
|
|
928
|
-
handle: string;
|
|
929
|
-
thumbnail?: string | null;
|
|
930
|
-
};
|
|
931
896
|
type ProductCategoryFragment = {
|
|
932
897
|
__typename?: 'ProductCategory';
|
|
933
898
|
id: string;
|
|
@@ -969,6 +934,17 @@ type CollectionProductsFragment = {
|
|
|
969
934
|
}> | null;
|
|
970
935
|
}> | null;
|
|
971
936
|
};
|
|
937
|
+
type CollectionProductsHomeFragment = {
|
|
938
|
+
__typename?: 'ProductList';
|
|
939
|
+
count: number;
|
|
940
|
+
items?: Array<{
|
|
941
|
+
__typename?: 'Product';
|
|
942
|
+
id: string;
|
|
943
|
+
title: string;
|
|
944
|
+
handle: string;
|
|
945
|
+
thumbnail?: string | null;
|
|
946
|
+
}> | null;
|
|
947
|
+
};
|
|
972
948
|
type CreateCartMutationVariables = Exact<{
|
|
973
949
|
data: CreateCartInput;
|
|
974
950
|
}>;
|
|
@@ -1055,6 +1031,19 @@ type GetCollectionsQuery = {
|
|
|
1055
1031
|
} & CollectionProductsFragment) | null;
|
|
1056
1032
|
} & ProductCollectionFragment>;
|
|
1057
1033
|
};
|
|
1034
|
+
type GetCollectionsHomeQueryVariables = Exact<{
|
|
1035
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
1036
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
1037
|
+
}>;
|
|
1038
|
+
type GetCollectionsHomeQuery = {
|
|
1039
|
+
__typename?: 'Query';
|
|
1040
|
+
collections: Array<{
|
|
1041
|
+
__typename?: 'Collection';
|
|
1042
|
+
products?: ({
|
|
1043
|
+
__typename?: 'ProductList';
|
|
1044
|
+
} & CollectionProductsHomeFragment) | null;
|
|
1045
|
+
} & ProductCollectionFragment>;
|
|
1046
|
+
};
|
|
1058
1047
|
type GetCustomerQueryVariables = Exact<{
|
|
1059
1048
|
[key: string]: never;
|
|
1060
1049
|
}>;
|
|
@@ -1224,18 +1213,6 @@ type GetOrdersQuery = {
|
|
|
1224
1213
|
} & OrderFieldsFragment>;
|
|
1225
1214
|
} | null;
|
|
1226
1215
|
};
|
|
1227
|
-
type SearchSuggestionsQueryVariables = Exact<{
|
|
1228
|
-
query: Scalars['String']['input'];
|
|
1229
|
-
}>;
|
|
1230
|
-
type SearchSuggestionsQuery = {
|
|
1231
|
-
__typename?: 'Query';
|
|
1232
|
-
searchProducts: {
|
|
1233
|
-
__typename?: 'SearchProducts';
|
|
1234
|
-
items: Array<{
|
|
1235
|
-
__typename?: 'ProductHit';
|
|
1236
|
-
} & ProductHitFragment>;
|
|
1237
|
-
};
|
|
1238
|
-
};
|
|
1239
1216
|
type GetProductCategoriesQueryVariables = Exact<{
|
|
1240
1217
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
1241
1218
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1358,11 +1335,11 @@ declare const PaymentCollectionFieldsFragmentDoc: TypedDocumentNode<PaymentColle
|
|
|
1358
1335
|
declare const CartFieldsFragmentDoc: TypedDocumentNode<CartFieldsFragment, unknown>;
|
|
1359
1336
|
declare const CustomerAddressFragmentDoc: TypedDocumentNode<CustomerAddressFragment, unknown>;
|
|
1360
1337
|
declare const CustomerFragmentDoc: TypedDocumentNode<CustomerFragment, unknown>;
|
|
1361
|
-
declare const ProductHitFragmentDoc: TypedDocumentNode<ProductHitFragment, unknown>;
|
|
1362
1338
|
declare const ProductCategoryFragmentDoc: TypedDocumentNode<ProductCategoryFragment, unknown>;
|
|
1363
1339
|
declare const ProductCollectionFragmentDoc: TypedDocumentNode<ProductCollectionFragment, unknown>;
|
|
1364
1340
|
declare const ProductImageFragmentDoc: TypedDocumentNode<ProductImageFragment, unknown>;
|
|
1365
1341
|
declare const CollectionProductsFragmentDoc: TypedDocumentNode<CollectionProductsFragment, unknown>;
|
|
1342
|
+
declare const CollectionProductsHomeFragmentDoc: TypedDocumentNode<CollectionProductsHomeFragment, unknown>;
|
|
1366
1343
|
declare const OrderFieldsFragmentDoc: TypedDocumentNode<OrderFieldsFragment, unknown>;
|
|
1367
1344
|
declare const ShippingOptionFieldsFragmentDoc: TypedDocumentNode<ShippingOptionFieldsFragment, unknown>;
|
|
1368
1345
|
declare const CreateCartDocument: TypedDocumentNode<CreateCartMutation, CreateCartMutationVariables>;
|
|
@@ -1372,16 +1349,16 @@ declare const DeleteLineItemDocument: TypedDocumentNode<DeleteLineItemMutation,
|
|
|
1372
1349
|
declare const TransferCartDocument: TypedDocumentNode<TransferCartMutation, TransferCartMutationVariables>;
|
|
1373
1350
|
declare const GetCartDocument: TypedDocumentNode<GetCartQuery, GetCartQueryVariables>;
|
|
1374
1351
|
declare const GetCollectionsDocument: TypedDocumentNode<GetCollectionsQuery, GetCollectionsQueryVariables>;
|
|
1352
|
+
declare const GetCollectionsHomeDocument: TypedDocumentNode<GetCollectionsHomeQuery, GetCollectionsHomeQueryVariables>;
|
|
1375
1353
|
declare const GetCustomerDocument: TypedDocumentNode<GetCustomerQuery, GetCustomerQueryVariables>;
|
|
1376
1354
|
declare const GetFooterDocument: TypedDocumentNode<GetFooterQuery, GetFooterQueryVariables>;
|
|
1377
1355
|
declare const GetFooterDataDocument: TypedDocumentNode<GetFooterDataQuery, GetFooterDataQueryVariables>;
|
|
1378
1356
|
declare const GetOrderDocument: TypedDocumentNode<GetOrderQuery, GetOrderQueryVariables>;
|
|
1379
1357
|
declare const GetOrdersDocument: TypedDocumentNode<GetOrdersQuery, GetOrdersQueryVariables>;
|
|
1380
|
-
declare const SearchSuggestionsDocument: TypedDocumentNode<SearchSuggestionsQuery, SearchSuggestionsQueryVariables>;
|
|
1381
1358
|
declare const GetProductCategoriesDocument: TypedDocumentNode<GetProductCategoriesQuery, GetProductCategoriesQueryVariables>;
|
|
1382
1359
|
declare const ListRegionsDocument: TypedDocumentNode<ListRegionsQuery, ListRegionsQueryVariables>;
|
|
1383
1360
|
declare const GetRegionDocument: TypedDocumentNode<GetRegionQuery, GetRegionQueryVariables>;
|
|
1384
1361
|
declare const GetShippingOptionsDocument: TypedDocumentNode<GetShippingOptionsQuery, GetShippingOptionsQueryVariables>;
|
|
1385
1362
|
//#endregion
|
|
1386
|
-
export { AddCustomerAddressInput, Address, AddressFieldsFragment, AddressFieldsFragmentDoc, AddressInput, ApplicationMethod, ApplicationType, AuthPayload, CacheControlScope, CalculatedShippingOptionPrice, Cart, CartFieldsFragment, CartFieldsFragmentDoc, CartItemFieldsFragment, CartItemFieldsFragmentDoc, Collection, CollectionProductsFragment, CollectionProductsFragmentDoc, CompleteCartError, CompleteCartErrorResult, CompleteCartOrderResult, CompleteCartResponse, Country, CountryFieldsFragment, CountryFieldsFragmentDoc, CreateCartDocument, CreateCartInput, CreateCartMutation, CreateCartMutationVariables, CreateLineItemDocument, CreateLineItemInput, CreateLineItemMutation, CreateLineItemMutationVariables, Customer, CustomerAddress, CustomerAddressFragment, CustomerAddressFragmentDoc, CustomerFragment, CustomerFragmentDoc, DeleteCustomerAddressResult, DeleteLineItemDocument, DeleteLineItemMutation, DeleteLineItemMutationVariables, Exact, Footer, GetCartDocument, GetCartQuery, GetCartQueryVariables, GetCollectionsDocument, GetCollectionsQuery, GetCollectionsQueryVariables, GetCustomerDocument, GetCustomerQuery, GetCustomerQueryVariables, GetFooterDataDocument, GetFooterDataQuery, GetFooterDataQueryVariables, GetFooterDocument, GetFooterQuery, GetFooterQueryVariables, GetOrderDocument, GetOrderQuery, GetOrderQueryVariables, GetOrdersDocument, GetOrdersQuery, GetOrdersQueryVariables, GetProductCategoriesDocument, GetProductCategoriesQuery, GetProductCategoriesQueryVariables, GetRegionDocument, GetRegionQuery, GetRegionQueryVariables, GetShippingOptionsDocument, GetShippingOptionsQuery, GetShippingOptionsQueryVariables, Incremental, InputMaybe, LineItem, ListRegionsDocument, ListRegionsQuery, ListRegionsQueryVariables, LoginInput, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Mutation, Mutation_AcceptOrderTransferArgs, Mutation_AddCustomerAddressArgs, Mutation_AddShippingMethodArgs, Mutation_ApplyPromotionsArgs, Mutation_CalculateShippingOptionPriceArgs, Mutation_CompleteCartArgs, Mutation_CreateCartArgs, Mutation_CreateLineItemArgs, Mutation_DeclineOrderTransferArgs, Mutation_DeleteCustomerAddressArgs, Mutation_DeleteLineItemArgs, Mutation_InitiatePaymentSessionArgs, Mutation_LoginArgs, Mutation_RegisterArgs, Mutation_RequestOrderTransferArgs, Mutation_TransferCartArgs, Mutation_UpdateCartArgs, Mutation_UpdateCustomerAddressArgs, Mutation_UpdateCustomerArgs, Mutation_UpdateLineItemArgs, Order, OrderFieldsFragment, OrderFieldsFragmentDoc, OrderListResponse, OrderTransferData, OrderTransferResult, PartialRichText, Payment, PaymentCollection, PaymentCollectionFieldsFragment, PaymentCollectionFieldsFragmentDoc, PaymentProviders, PaymentSessionStatus, PaymentSessions, PaymentStatus, Price, PriceFragment, PriceFragmentDoc, PriceRule, Product, ProductCategory, ProductCategoryFragment, ProductCategoryFragmentDoc, ProductCollectionFragment, ProductCollectionFragmentDoc,
|
|
1363
|
+
export { AddCustomerAddressInput, Address, AddressFieldsFragment, AddressFieldsFragmentDoc, AddressInput, ApplicationMethod, ApplicationType, AuthPayload, CacheControlScope, CalculatedShippingOptionPrice, Cart, CartFieldsFragment, CartFieldsFragmentDoc, CartItemFieldsFragment, CartItemFieldsFragmentDoc, Collection, CollectionProductsFragment, CollectionProductsFragmentDoc, CollectionProductsHomeFragment, CollectionProductsHomeFragmentDoc, CompleteCartError, CompleteCartErrorResult, CompleteCartOrderResult, CompleteCartResponse, Country, CountryFieldsFragment, CountryFieldsFragmentDoc, CreateCartDocument, CreateCartInput, CreateCartMutation, CreateCartMutationVariables, CreateLineItemDocument, CreateLineItemInput, CreateLineItemMutation, CreateLineItemMutationVariables, Customer, CustomerAddress, CustomerAddressFragment, CustomerAddressFragmentDoc, CustomerFragment, CustomerFragmentDoc, DeleteCustomerAddressResult, DeleteLineItemDocument, DeleteLineItemMutation, DeleteLineItemMutationVariables, Exact, Footer, GetCartDocument, GetCartQuery, GetCartQueryVariables, GetCollectionsDocument, GetCollectionsHomeDocument, GetCollectionsHomeQuery, GetCollectionsHomeQueryVariables, GetCollectionsQuery, GetCollectionsQueryVariables, GetCustomerDocument, GetCustomerQuery, GetCustomerQueryVariables, GetFooterDataDocument, GetFooterDataQuery, GetFooterDataQueryVariables, GetFooterDocument, GetFooterQuery, GetFooterQueryVariables, GetOrderDocument, GetOrderQuery, GetOrderQueryVariables, GetOrdersDocument, GetOrdersQuery, GetOrdersQueryVariables, GetProductCategoriesDocument, GetProductCategoriesQuery, GetProductCategoriesQueryVariables, GetRegionDocument, GetRegionQuery, GetRegionQueryVariables, GetShippingOptionsDocument, GetShippingOptionsQuery, GetShippingOptionsQueryVariables, Incremental, InputMaybe, LineItem, ListRegionsDocument, ListRegionsQuery, ListRegionsQueryVariables, LoginInput, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Mutation, Mutation_AcceptOrderTransferArgs, Mutation_AddCustomerAddressArgs, Mutation_AddShippingMethodArgs, Mutation_ApplyPromotionsArgs, Mutation_CalculateShippingOptionPriceArgs, Mutation_CompleteCartArgs, Mutation_CreateCartArgs, Mutation_CreateLineItemArgs, Mutation_DeclineOrderTransferArgs, Mutation_DeleteCustomerAddressArgs, Mutation_DeleteLineItemArgs, Mutation_InitiatePaymentSessionArgs, Mutation_LoginArgs, Mutation_RegisterArgs, Mutation_RequestOrderTransferArgs, Mutation_TransferCartArgs, Mutation_UpdateCartArgs, Mutation_UpdateCustomerAddressArgs, Mutation_UpdateCustomerArgs, Mutation_UpdateLineItemArgs, Order, OrderFieldsFragment, OrderFieldsFragmentDoc, OrderListResponse, OrderTransferData, OrderTransferResult, PartialRichText, Payment, PaymentCollection, PaymentCollectionFieldsFragment, PaymentCollectionFieldsFragmentDoc, PaymentProviders, PaymentSessionStatus, PaymentSessions, PaymentStatus, Price, PriceFragment, PriceFragmentDoc, PriceRule, Product, ProductCategory, ProductCategoryFragment, ProductCategoryFragmentDoc, ProductCollectionFragment, ProductCollectionFragmentDoc, ProductImage, ProductImageFragment, ProductImageFragmentDoc, ProductList, ProductListResponse, ProductOption, ProductOptionValue, ProductTag, ProductVariant, ProductVariantFragment, ProductVariantFragmentDoc, ProductVariantOption, Promotion, PromotionFieldsFragment, PromotionFieldsFragmentDoc, Query, Query_CartArgs, Query_CollectionArgs, Query_CollectionsArgs, Query_OrderArgs, Query_OrdersArgs, Query_PaymentProvidersArgs, Query_ProductArgs, Query_ProductCategoriesArgs, Query_ProductCategoryArgs, Query_ProductsArgs, Query_RegionArgs, Query_ShippingOptionsArgs, Region, RegionFieldsFragment, RegionFieldsFragmentDoc, RegisterCustomerInput, Scalars, ServiceZone, ServiceZoneLocation, ServiceZoneLocationAddress, ShippingMethod, ShippingMethodFieldsFragment, ShippingMethodFieldsFragmentDoc, ShippingOption, ShippingOptionFieldsFragment, ShippingOptionFieldsFragmentDoc, ShippingOptionPrice, SocialLink, StoreLineItemDeleteResponse, TransferCartDocument, TransferCartMutation, TransferCartMutationVariables, UpdateCartDocument, UpdateCartInput, UpdateCartMutation, UpdateCartMutationVariables, UpdateCustomerAddressInput, UpdateCustomerInput, UpdateLineItemInput };
|
|
1387
1364
|
//# sourceMappingURL=graphql.d.ts.map
|