@atomic-solutions/woocommerce-react 0.1.1 → 0.2.0

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.
@@ -1,7 +1,11 @@
1
- import * as _atomic_solutions_woocommerce_api_client from '@atomic-solutions/woocommerce-api-client';
2
- import { WooCommerceClient, ProductCategory, ProductParams, GetOrderInput, ProductImage, CartItemImage, Product, CartItem, Cart } from '@atomic-solutions/woocommerce-api-client';
3
- import { Q as QueryKeys, j as StoreContextValue, k as StoreFeatures, S as StoreLocale, m as StoreTheme } from './types-BDwpAWoN.js';
4
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { UseQueryOptions, UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
3
+ import { WooCommerceClient, ProductCategory, ProductParams, PaginatedResponse, Product, Cart, Checkout, GetOrderInput, StoreApiOrder, ProductImage, CartItemImage, CartItem } from '@atomic-solutions/woocommerce-api-client';
4
+ import { Q as QueryKeys, j as StoreContextValue, k as StoreFeatures, S as StoreLocale, m as StoreTheme } from './types-BDwpAWoN.js';
5
+
6
+ type QueryOptions<TData, TError = Error> = Omit<UseQueryOptions<TData, TError>, 'queryKey' | 'queryFn'>;
7
+ type MutationOptions<TData, TError = Error, TVariables = unknown> = Omit<UseMutationOptions<TData, TError, TVariables>, 'mutationFn'>;
8
+ type InfiniteQueryOptions<TData, TError = Error> = Omit<UseInfiniteQueryOptions<TData, TError, InfiniteData<TData>, readonly unknown[], number>, 'queryKey' | 'queryFn' | 'initialPageParam' | 'getNextPageParam' | 'getPreviousPageParam'>;
5
9
 
6
10
  declare const useWooCommerceClient: () => WooCommerceClient;
7
11
  declare const useWooCommerceQueryKeys: () => QueryKeys;
@@ -9,7 +13,7 @@ declare const useWooCommerceQueryKeys: () => QueryKeys;
9
13
  type ProductCategoryTreeNode = ProductCategory & {
10
14
  subCategories?: ProductCategoryTreeNode[];
11
15
  };
12
- declare const useProducts: (params?: ProductParams) => _tanstack_react_query.UseQueryResult<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
16
+ declare const useProducts: (params?: ProductParams, options?: QueryOptions<PaginatedResponse<Product>>) => _tanstack_react_query.UseQueryResult<PaginatedResponse<{
13
17
  type: string;
14
18
  name: string;
15
19
  id: number;
@@ -94,7 +98,7 @@ declare const useProducts: (params?: ProductParams) => _tanstack_react_query.Use
94
98
  average_rating: string;
95
99
  review_count: number;
96
100
  }>, Error>;
97
- declare const useInfiniteProducts: (params?: ProductParams) => {
101
+ declare const useInfiniteProducts: (params?: ProductParams, options?: InfiniteQueryOptions<PaginatedResponse<Product>>) => {
98
102
  data: {
99
103
  type: string;
100
104
  name: string;
@@ -189,7 +193,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
189
193
  isSuccess: false;
190
194
  isPlaceholderData: false;
191
195
  status: "error";
192
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
196
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
193
197
  type: string;
194
198
  name: string;
195
199
  id: number;
@@ -274,7 +278,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
274
278
  average_rating: string;
275
279
  review_count: number;
276
280
  }>, unknown>, Error>>;
277
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
281
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
278
282
  type: string;
279
283
  name: string;
280
284
  id: number;
@@ -378,7 +382,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
378
382
  isRefetching: boolean;
379
383
  isStale: boolean;
380
384
  isEnabled: boolean;
381
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
385
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
382
386
  type: string;
383
387
  name: string;
384
388
  id: number;
@@ -464,7 +468,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
464
468
  review_count: number;
465
469
  }>, unknown>, Error>>;
466
470
  fetchStatus: _tanstack_react_query.FetchStatus;
467
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
471
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
468
472
  type: string;
469
473
  name: string;
470
474
  id: number;
@@ -646,7 +650,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
646
650
  isSuccess: true;
647
651
  isPlaceholderData: false;
648
652
  status: "success";
649
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
653
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
650
654
  type: string;
651
655
  name: string;
652
656
  id: number;
@@ -731,7 +735,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
731
735
  average_rating: string;
732
736
  review_count: number;
733
737
  }>, unknown>, Error>>;
734
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
738
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
735
739
  type: string;
736
740
  name: string;
737
741
  id: number;
@@ -833,7 +837,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
833
837
  isRefetching: boolean;
834
838
  isStale: boolean;
835
839
  isEnabled: boolean;
836
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
840
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
837
841
  type: string;
838
842
  name: string;
839
843
  id: number;
@@ -919,7 +923,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
919
923
  review_count: number;
920
924
  }>, unknown>, Error>>;
921
925
  fetchStatus: _tanstack_react_query.FetchStatus;
922
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
926
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
923
927
  type: string;
924
928
  name: string;
925
929
  id: number;
@@ -1101,7 +1105,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1101
1105
  isSuccess: false;
1102
1106
  isPlaceholderData: false;
1103
1107
  status: "error";
1104
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1108
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1105
1109
  type: string;
1106
1110
  name: string;
1107
1111
  id: number;
@@ -1186,7 +1190,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1186
1190
  average_rating: string;
1187
1191
  review_count: number;
1188
1192
  }>, unknown>, Error>>;
1189
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1193
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1190
1194
  type: string;
1191
1195
  name: string;
1192
1196
  id: number;
@@ -1288,7 +1292,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1288
1292
  isRefetching: boolean;
1289
1293
  isStale: boolean;
1290
1294
  isEnabled: boolean;
1291
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1295
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1292
1296
  type: string;
1293
1297
  name: string;
1294
1298
  id: number;
@@ -1374,7 +1378,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1374
1378
  review_count: number;
1375
1379
  }>, unknown>, Error>>;
1376
1380
  fetchStatus: _tanstack_react_query.FetchStatus;
1377
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1381
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1378
1382
  type: string;
1379
1383
  name: string;
1380
1384
  id: number;
@@ -1556,7 +1560,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1556
1560
  isSuccess: false;
1557
1561
  isPlaceholderData: false;
1558
1562
  status: "pending";
1559
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1563
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1560
1564
  type: string;
1561
1565
  name: string;
1562
1566
  id: number;
@@ -1641,7 +1645,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1641
1645
  average_rating: string;
1642
1646
  review_count: number;
1643
1647
  }>, unknown>, Error>>;
1644
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1648
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1645
1649
  type: string;
1646
1650
  name: string;
1647
1651
  id: number;
@@ -1743,7 +1747,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1743
1747
  isRefetching: boolean;
1744
1748
  isStale: boolean;
1745
1749
  isEnabled: boolean;
1746
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1750
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1747
1751
  type: string;
1748
1752
  name: string;
1749
1753
  id: number;
@@ -1829,7 +1833,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1829
1833
  review_count: number;
1830
1834
  }>, unknown>, Error>>;
1831
1835
  fetchStatus: _tanstack_react_query.FetchStatus;
1832
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1836
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1833
1837
  type: string;
1834
1838
  name: string;
1835
1839
  id: number;
@@ -2010,7 +2014,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2010
2014
  isSuccess: false;
2011
2015
  isPlaceholderData: false;
2012
2016
  status: "pending";
2013
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2017
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2014
2018
  type: string;
2015
2019
  name: string;
2016
2020
  id: number;
@@ -2095,7 +2099,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2095
2099
  average_rating: string;
2096
2100
  review_count: number;
2097
2101
  }>, unknown>, Error>>;
2098
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2102
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2099
2103
  type: string;
2100
2104
  name: string;
2101
2105
  id: number;
@@ -2198,7 +2202,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2198
2202
  isRefetching: boolean;
2199
2203
  isStale: boolean;
2200
2204
  isEnabled: boolean;
2201
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2205
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2202
2206
  type: string;
2203
2207
  name: string;
2204
2208
  id: number;
@@ -2284,7 +2288,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2284
2288
  review_count: number;
2285
2289
  }>, unknown>, Error>>;
2286
2290
  fetchStatus: _tanstack_react_query.FetchStatus;
2287
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2291
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2288
2292
  type: string;
2289
2293
  name: string;
2290
2294
  id: number;
@@ -2466,7 +2470,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2466
2470
  isFetchNextPageError: false;
2467
2471
  isFetchPreviousPageError: false;
2468
2472
  status: "success";
2469
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2473
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2470
2474
  type: string;
2471
2475
  name: string;
2472
2476
  id: number;
@@ -2551,7 +2555,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2551
2555
  average_rating: string;
2552
2556
  review_count: number;
2553
2557
  }>, unknown>, Error>>;
2554
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2558
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2555
2559
  type: string;
2556
2560
  name: string;
2557
2561
  id: number;
@@ -2653,7 +2657,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2653
2657
  isRefetching: boolean;
2654
2658
  isStale: boolean;
2655
2659
  isEnabled: boolean;
2656
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2660
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2657
2661
  type: string;
2658
2662
  name: string;
2659
2663
  id: number;
@@ -2739,7 +2743,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2739
2743
  review_count: number;
2740
2744
  }>, unknown>, Error>>;
2741
2745
  fetchStatus: _tanstack_react_query.FetchStatus;
2742
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2746
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2743
2747
  type: string;
2744
2748
  name: string;
2745
2749
  id: number;
@@ -2825,7 +2829,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2825
2829
  review_count: number;
2826
2830
  }>, unknown>>;
2827
2831
  };
2828
- declare const useProduct: (id: number) => _tanstack_react_query.UseQueryResult<{
2832
+ declare const useProduct: (id: number, options?: QueryOptions<Product>) => _tanstack_react_query.UseQueryResult<{
2829
2833
  type: string;
2830
2834
  name: string;
2831
2835
  id: number;
@@ -2910,7 +2914,7 @@ declare const useProduct: (id: number) => _tanstack_react_query.UseQueryResult<{
2910
2914
  average_rating: string;
2911
2915
  review_count: number;
2912
2916
  }, Error>;
2913
- declare const useProductCategories: () => _tanstack_react_query.UseQueryResult<{
2917
+ declare const useProductCategories: (options?: QueryOptions<ProductCategory[]>) => _tanstack_react_query.UseQueryResult<{
2914
2918
  name: string;
2915
2919
  id: number;
2916
2920
  slug: string;
@@ -3512,7 +3516,7 @@ declare const useProductCategoryTree: () => {
3512
3516
  }[]>;
3513
3517
  };
3514
3518
 
3515
- declare const useCart: () => {
3519
+ declare const useCart: (options?: QueryOptions<Cart>) => {
3516
3520
  isInCart: (productId: number) => boolean;
3517
3521
  getCartItem: (productId: number) => {
3518
3522
  type: "simple" | "grouped" | "external" | "variable";
@@ -8282,7 +8286,7 @@ declare const useSelectShippingRate: () => _tanstack_react_query.UseMutationResu
8282
8286
  package_id: string | number;
8283
8287
  }, unknown>;
8284
8288
 
8285
- declare const useCheckout: () => _tanstack_react_query.UseQueryResult<{
8289
+ declare const useCheckout: (options?: QueryOptions<Checkout>) => _tanstack_react_query.UseQueryResult<{
8286
8290
  status: string;
8287
8291
  customer_id: number;
8288
8292
  order_key: string;
@@ -8393,7 +8397,7 @@ declare const useProcessCheckout: () => _tanstack_react_query.UseMutationResult<
8393
8397
  create_account?: boolean | undefined;
8394
8398
  }, unknown>;
8395
8399
 
8396
- declare const useOrder: (input: GetOrderInput) => _tanstack_react_query.UseQueryResult<{
8400
+ declare const useOrder: (input: GetOrderInput, options?: QueryOptions<StoreApiOrder>) => _tanstack_react_query.UseQueryResult<{
8397
8401
  status: "pending" | "cancelled" | "completed" | "processing" | "on-hold" | "refunded" | "failed";
8398
8402
  id: number;
8399
8403
  totals: {
@@ -8718,4 +8722,4 @@ interface UseCartViewReturn {
8718
8722
  }
8719
8723
  declare function useCartView(options?: UseCartViewOptions): UseCartViewReturn;
8720
8724
 
8721
- export { type AppliedCoupon as A, useProcessCheckout as B, type CartTotals as C, useProduct as D, useProductCategories as E, useProductCategoryTree as F, useProductView as G, useProducts as H, type ImageSize as I, useProductsFeed as J, useRemoveCoupon as K, useRemoveFromCart as L, useSelectShippingRate as M, useStore as N, useStoreFeatures as O, PLACEHOLDER_IMAGE_URL as P, useStoreLocale as Q, useStoreTheme as R, type ShippingRate as S, useUpdateCartItem as T, type UseCartViewOptions as U, useUpdateCustomer as V, useWooCommerceClient as W, useWooCommerceQueryKeys as X, type PaymentMethod as a, type ProcessedCartItem as b, type ProcessedCategory as c, type ProcessedProduct as d, type ProcessedProductDetails as e, type ProductCartState as f, type ProductCategoryTreeNode as g, type UseCartViewReturn as h, type UseProductViewOptions as i, type UseProductViewReturn as j, type UseProductsFeedOptions as k, type UseProductsFeedReturn as l, getAllImageUrls as m, getImageUrl as n, getImageUrlOrPlaceholder as o, getPrimaryImage as p, getSizedImageUrl as q, preloadImage as r, preloadImages as s, useApplyCoupon as t, useAddToCart as u, useCart as v, useCartView as w, useCheckout as x, useInfiniteProducts as y, useOrder as z };
8725
+ export { type AppliedCoupon as A, useProcessCheckout as B, type CartTotals as C, useProduct as D, useProductCategories as E, useProductCategoryTree as F, useProductView as G, useProducts as H, type ImageSize as I, useProductsFeed as J, useRemoveCoupon as K, useRemoveFromCart as L, useSelectShippingRate as M, useStore as N, useStoreFeatures as O, PLACEHOLDER_IMAGE_URL as P, useStoreLocale as Q, useStoreTheme as R, type ShippingRate as S, useUpdateCartItem as T, type UseCartViewOptions as U, useUpdateCustomer as V, useWooCommerceClient as W, useWooCommerceQueryKeys as X, type InfiniteQueryOptions as Y, type MutationOptions as Z, type QueryOptions as _, type PaymentMethod as a, type ProcessedCartItem as b, type ProcessedCategory as c, type ProcessedProduct as d, type ProcessedProductDetails as e, type ProductCartState as f, type ProductCategoryTreeNode as g, type UseCartViewReturn as h, type UseProductViewOptions as i, type UseProductViewReturn as j, type UseProductsFeedOptions as k, type UseProductsFeedReturn as l, getAllImageUrls as m, getImageUrl as n, getImageUrlOrPlaceholder as o, getPrimaryImage as p, getSizedImageUrl as q, preloadImage as r, preloadImages as s, useApplyCoupon as t, useAddToCart as u, useCart as v, useCartView as w, useCheckout as x, useInfiniteProducts as y, useOrder as z };
@@ -1,7 +1,11 @@
1
- import * as _atomic_solutions_woocommerce_api_client from '@atomic-solutions/woocommerce-api-client';
2
- import { WooCommerceClient, ProductCategory, ProductParams, GetOrderInput, ProductImage, CartItemImage, Product, CartItem, Cart } from '@atomic-solutions/woocommerce-api-client';
3
- import { Q as QueryKeys, j as StoreContextValue, k as StoreFeatures, S as StoreLocale, m as StoreTheme } from './types-BDwpAWoN.cjs';
4
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { UseQueryOptions, UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
3
+ import { WooCommerceClient, ProductCategory, ProductParams, PaginatedResponse, Product, Cart, Checkout, GetOrderInput, StoreApiOrder, ProductImage, CartItemImage, CartItem } from '@atomic-solutions/woocommerce-api-client';
4
+ import { Q as QueryKeys, j as StoreContextValue, k as StoreFeatures, S as StoreLocale, m as StoreTheme } from './types-BDwpAWoN.cjs';
5
+
6
+ type QueryOptions<TData, TError = Error> = Omit<UseQueryOptions<TData, TError>, 'queryKey' | 'queryFn'>;
7
+ type MutationOptions<TData, TError = Error, TVariables = unknown> = Omit<UseMutationOptions<TData, TError, TVariables>, 'mutationFn'>;
8
+ type InfiniteQueryOptions<TData, TError = Error> = Omit<UseInfiniteQueryOptions<TData, TError, InfiniteData<TData>, readonly unknown[], number>, 'queryKey' | 'queryFn' | 'initialPageParam' | 'getNextPageParam' | 'getPreviousPageParam'>;
5
9
 
6
10
  declare const useWooCommerceClient: () => WooCommerceClient;
7
11
  declare const useWooCommerceQueryKeys: () => QueryKeys;
@@ -9,7 +13,7 @@ declare const useWooCommerceQueryKeys: () => QueryKeys;
9
13
  type ProductCategoryTreeNode = ProductCategory & {
10
14
  subCategories?: ProductCategoryTreeNode[];
11
15
  };
12
- declare const useProducts: (params?: ProductParams) => _tanstack_react_query.UseQueryResult<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
16
+ declare const useProducts: (params?: ProductParams, options?: QueryOptions<PaginatedResponse<Product>>) => _tanstack_react_query.UseQueryResult<PaginatedResponse<{
13
17
  type: string;
14
18
  name: string;
15
19
  id: number;
@@ -94,7 +98,7 @@ declare const useProducts: (params?: ProductParams) => _tanstack_react_query.Use
94
98
  average_rating: string;
95
99
  review_count: number;
96
100
  }>, Error>;
97
- declare const useInfiniteProducts: (params?: ProductParams) => {
101
+ declare const useInfiniteProducts: (params?: ProductParams, options?: InfiniteQueryOptions<PaginatedResponse<Product>>) => {
98
102
  data: {
99
103
  type: string;
100
104
  name: string;
@@ -189,7 +193,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
189
193
  isSuccess: false;
190
194
  isPlaceholderData: false;
191
195
  status: "error";
192
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
196
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
193
197
  type: string;
194
198
  name: string;
195
199
  id: number;
@@ -274,7 +278,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
274
278
  average_rating: string;
275
279
  review_count: number;
276
280
  }>, unknown>, Error>>;
277
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
281
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
278
282
  type: string;
279
283
  name: string;
280
284
  id: number;
@@ -378,7 +382,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
378
382
  isRefetching: boolean;
379
383
  isStale: boolean;
380
384
  isEnabled: boolean;
381
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
385
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
382
386
  type: string;
383
387
  name: string;
384
388
  id: number;
@@ -464,7 +468,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
464
468
  review_count: number;
465
469
  }>, unknown>, Error>>;
466
470
  fetchStatus: _tanstack_react_query.FetchStatus;
467
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
471
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
468
472
  type: string;
469
473
  name: string;
470
474
  id: number;
@@ -646,7 +650,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
646
650
  isSuccess: true;
647
651
  isPlaceholderData: false;
648
652
  status: "success";
649
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
653
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
650
654
  type: string;
651
655
  name: string;
652
656
  id: number;
@@ -731,7 +735,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
731
735
  average_rating: string;
732
736
  review_count: number;
733
737
  }>, unknown>, Error>>;
734
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
738
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
735
739
  type: string;
736
740
  name: string;
737
741
  id: number;
@@ -833,7 +837,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
833
837
  isRefetching: boolean;
834
838
  isStale: boolean;
835
839
  isEnabled: boolean;
836
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
840
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
837
841
  type: string;
838
842
  name: string;
839
843
  id: number;
@@ -919,7 +923,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
919
923
  review_count: number;
920
924
  }>, unknown>, Error>>;
921
925
  fetchStatus: _tanstack_react_query.FetchStatus;
922
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
926
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
923
927
  type: string;
924
928
  name: string;
925
929
  id: number;
@@ -1101,7 +1105,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1101
1105
  isSuccess: false;
1102
1106
  isPlaceholderData: false;
1103
1107
  status: "error";
1104
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1108
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1105
1109
  type: string;
1106
1110
  name: string;
1107
1111
  id: number;
@@ -1186,7 +1190,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1186
1190
  average_rating: string;
1187
1191
  review_count: number;
1188
1192
  }>, unknown>, Error>>;
1189
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1193
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1190
1194
  type: string;
1191
1195
  name: string;
1192
1196
  id: number;
@@ -1288,7 +1292,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1288
1292
  isRefetching: boolean;
1289
1293
  isStale: boolean;
1290
1294
  isEnabled: boolean;
1291
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1295
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1292
1296
  type: string;
1293
1297
  name: string;
1294
1298
  id: number;
@@ -1374,7 +1378,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1374
1378
  review_count: number;
1375
1379
  }>, unknown>, Error>>;
1376
1380
  fetchStatus: _tanstack_react_query.FetchStatus;
1377
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1381
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1378
1382
  type: string;
1379
1383
  name: string;
1380
1384
  id: number;
@@ -1556,7 +1560,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1556
1560
  isSuccess: false;
1557
1561
  isPlaceholderData: false;
1558
1562
  status: "pending";
1559
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1563
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1560
1564
  type: string;
1561
1565
  name: string;
1562
1566
  id: number;
@@ -1641,7 +1645,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1641
1645
  average_rating: string;
1642
1646
  review_count: number;
1643
1647
  }>, unknown>, Error>>;
1644
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1648
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1645
1649
  type: string;
1646
1650
  name: string;
1647
1651
  id: number;
@@ -1743,7 +1747,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1743
1747
  isRefetching: boolean;
1744
1748
  isStale: boolean;
1745
1749
  isEnabled: boolean;
1746
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1750
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1747
1751
  type: string;
1748
1752
  name: string;
1749
1753
  id: number;
@@ -1829,7 +1833,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
1829
1833
  review_count: number;
1830
1834
  }>, unknown>, Error>>;
1831
1835
  fetchStatus: _tanstack_react_query.FetchStatus;
1832
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
1836
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
1833
1837
  type: string;
1834
1838
  name: string;
1835
1839
  id: number;
@@ -2010,7 +2014,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2010
2014
  isSuccess: false;
2011
2015
  isPlaceholderData: false;
2012
2016
  status: "pending";
2013
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2017
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2014
2018
  type: string;
2015
2019
  name: string;
2016
2020
  id: number;
@@ -2095,7 +2099,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2095
2099
  average_rating: string;
2096
2100
  review_count: number;
2097
2101
  }>, unknown>, Error>>;
2098
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2102
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2099
2103
  type: string;
2100
2104
  name: string;
2101
2105
  id: number;
@@ -2198,7 +2202,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2198
2202
  isRefetching: boolean;
2199
2203
  isStale: boolean;
2200
2204
  isEnabled: boolean;
2201
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2205
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2202
2206
  type: string;
2203
2207
  name: string;
2204
2208
  id: number;
@@ -2284,7 +2288,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2284
2288
  review_count: number;
2285
2289
  }>, unknown>, Error>>;
2286
2290
  fetchStatus: _tanstack_react_query.FetchStatus;
2287
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2291
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2288
2292
  type: string;
2289
2293
  name: string;
2290
2294
  id: number;
@@ -2466,7 +2470,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2466
2470
  isFetchNextPageError: false;
2467
2471
  isFetchPreviousPageError: false;
2468
2472
  status: "success";
2469
- fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2473
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2470
2474
  type: string;
2471
2475
  name: string;
2472
2476
  id: number;
@@ -2551,7 +2555,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2551
2555
  average_rating: string;
2552
2556
  review_count: number;
2553
2557
  }>, unknown>, Error>>;
2554
- fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2558
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2555
2559
  type: string;
2556
2560
  name: string;
2557
2561
  id: number;
@@ -2653,7 +2657,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2653
2657
  isRefetching: boolean;
2654
2658
  isStale: boolean;
2655
2659
  isEnabled: boolean;
2656
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2660
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2657
2661
  type: string;
2658
2662
  name: string;
2659
2663
  id: number;
@@ -2739,7 +2743,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2739
2743
  review_count: number;
2740
2744
  }>, unknown>, Error>>;
2741
2745
  fetchStatus: _tanstack_react_query.FetchStatus;
2742
- promise: Promise<_tanstack_react_query.InfiniteData<_atomic_solutions_woocommerce_api_client.PaginatedResponse<{
2746
+ promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<{
2743
2747
  type: string;
2744
2748
  name: string;
2745
2749
  id: number;
@@ -2825,7 +2829,7 @@ declare const useInfiniteProducts: (params?: ProductParams) => {
2825
2829
  review_count: number;
2826
2830
  }>, unknown>>;
2827
2831
  };
2828
- declare const useProduct: (id: number) => _tanstack_react_query.UseQueryResult<{
2832
+ declare const useProduct: (id: number, options?: QueryOptions<Product>) => _tanstack_react_query.UseQueryResult<{
2829
2833
  type: string;
2830
2834
  name: string;
2831
2835
  id: number;
@@ -2910,7 +2914,7 @@ declare const useProduct: (id: number) => _tanstack_react_query.UseQueryResult<{
2910
2914
  average_rating: string;
2911
2915
  review_count: number;
2912
2916
  }, Error>;
2913
- declare const useProductCategories: () => _tanstack_react_query.UseQueryResult<{
2917
+ declare const useProductCategories: (options?: QueryOptions<ProductCategory[]>) => _tanstack_react_query.UseQueryResult<{
2914
2918
  name: string;
2915
2919
  id: number;
2916
2920
  slug: string;
@@ -3512,7 +3516,7 @@ declare const useProductCategoryTree: () => {
3512
3516
  }[]>;
3513
3517
  };
3514
3518
 
3515
- declare const useCart: () => {
3519
+ declare const useCart: (options?: QueryOptions<Cart>) => {
3516
3520
  isInCart: (productId: number) => boolean;
3517
3521
  getCartItem: (productId: number) => {
3518
3522
  type: "simple" | "grouped" | "external" | "variable";
@@ -8282,7 +8286,7 @@ declare const useSelectShippingRate: () => _tanstack_react_query.UseMutationResu
8282
8286
  package_id: string | number;
8283
8287
  }, unknown>;
8284
8288
 
8285
- declare const useCheckout: () => _tanstack_react_query.UseQueryResult<{
8289
+ declare const useCheckout: (options?: QueryOptions<Checkout>) => _tanstack_react_query.UseQueryResult<{
8286
8290
  status: string;
8287
8291
  customer_id: number;
8288
8292
  order_key: string;
@@ -8393,7 +8397,7 @@ declare const useProcessCheckout: () => _tanstack_react_query.UseMutationResult<
8393
8397
  create_account?: boolean | undefined;
8394
8398
  }, unknown>;
8395
8399
 
8396
- declare const useOrder: (input: GetOrderInput) => _tanstack_react_query.UseQueryResult<{
8400
+ declare const useOrder: (input: GetOrderInput, options?: QueryOptions<StoreApiOrder>) => _tanstack_react_query.UseQueryResult<{
8397
8401
  status: "pending" | "cancelled" | "completed" | "processing" | "on-hold" | "refunded" | "failed";
8398
8402
  id: number;
8399
8403
  totals: {
@@ -8718,4 +8722,4 @@ interface UseCartViewReturn {
8718
8722
  }
8719
8723
  declare function useCartView(options?: UseCartViewOptions): UseCartViewReturn;
8720
8724
 
8721
- export { type AppliedCoupon as A, useProcessCheckout as B, type CartTotals as C, useProduct as D, useProductCategories as E, useProductCategoryTree as F, useProductView as G, useProducts as H, type ImageSize as I, useProductsFeed as J, useRemoveCoupon as K, useRemoveFromCart as L, useSelectShippingRate as M, useStore as N, useStoreFeatures as O, PLACEHOLDER_IMAGE_URL as P, useStoreLocale as Q, useStoreTheme as R, type ShippingRate as S, useUpdateCartItem as T, type UseCartViewOptions as U, useUpdateCustomer as V, useWooCommerceClient as W, useWooCommerceQueryKeys as X, type PaymentMethod as a, type ProcessedCartItem as b, type ProcessedCategory as c, type ProcessedProduct as d, type ProcessedProductDetails as e, type ProductCartState as f, type ProductCategoryTreeNode as g, type UseCartViewReturn as h, type UseProductViewOptions as i, type UseProductViewReturn as j, type UseProductsFeedOptions as k, type UseProductsFeedReturn as l, getAllImageUrls as m, getImageUrl as n, getImageUrlOrPlaceholder as o, getPrimaryImage as p, getSizedImageUrl as q, preloadImage as r, preloadImages as s, useApplyCoupon as t, useAddToCart as u, useCart as v, useCartView as w, useCheckout as x, useInfiniteProducts as y, useOrder as z };
8725
+ export { type AppliedCoupon as A, useProcessCheckout as B, type CartTotals as C, useProduct as D, useProductCategories as E, useProductCategoryTree as F, useProductView as G, useProducts as H, type ImageSize as I, useProductsFeed as J, useRemoveCoupon as K, useRemoveFromCart as L, useSelectShippingRate as M, useStore as N, useStoreFeatures as O, PLACEHOLDER_IMAGE_URL as P, useStoreLocale as Q, useStoreTheme as R, type ShippingRate as S, useUpdateCartItem as T, type UseCartViewOptions as U, useUpdateCustomer as V, useWooCommerceClient as W, useWooCommerceQueryKeys as X, type InfiniteQueryOptions as Y, type MutationOptions as Z, type QueryOptions as _, type PaymentMethod as a, type ProcessedCartItem as b, type ProcessedCategory as c, type ProcessedProduct as d, type ProcessedProductDetails as e, type ProductCartState as f, type ProductCategoryTreeNode as g, type UseCartViewReturn as h, type UseProductViewOptions as i, type UseProductViewReturn as j, type UseProductsFeedOptions as k, type UseProductsFeedReturn as l, getAllImageUrls as m, getImageUrl as n, getImageUrlOrPlaceholder as o, getPrimaryImage as p, getSizedImageUrl as q, preloadImage as r, preloadImages as s, useApplyCoupon as t, useAddToCart as u, useCart as v, useCartView as w, useCheckout as x, useInfiniteProducts as y, useOrder as z };