@01.software/sdk 0.38.0 → 0.40.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.
Files changed (74) hide show
  1. package/README.md +169 -54
  2. package/dist/analytics/react.cjs.map +1 -1
  3. package/dist/analytics/react.js.map +1 -1
  4. package/dist/analytics.cjs.map +1 -1
  5. package/dist/analytics.js.map +1 -1
  6. package/dist/client.cjs +1194 -5
  7. package/dist/client.cjs.map +1 -1
  8. package/dist/client.d.cts +8 -7
  9. package/dist/client.d.ts +8 -7
  10. package/dist/client.js +1194 -5
  11. package/dist/client.js.map +1 -1
  12. package/dist/{collection-client-BroIWHY1.d.ts → collection-client-CKFa99C6.d.ts} +16 -10
  13. package/dist/{collection-client-B0J9wMNE.d.cts → collection-client-VYwYi6u6.d.cts} +16 -10
  14. package/dist/const-4BUtUdGU.d.cts +32 -0
  15. package/dist/const-ymprfiPf.d.ts +32 -0
  16. package/dist/errors.cjs +4 -1
  17. package/dist/errors.cjs.map +1 -1
  18. package/dist/errors.js +4 -1
  19. package/dist/errors.js.map +1 -1
  20. package/dist/{index-BOLQxveo.d.cts → index-Dquv4xTL.d.cts} +3 -3
  21. package/dist/{index-CSwR2HSg.d.ts → index-w36lpSkU.d.ts} +3 -3
  22. package/dist/index.cjs +2796 -2651
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +8 -8
  25. package/dist/index.d.ts +8 -8
  26. package/dist/index.js +2796 -2651
  27. package/dist/index.js.map +1 -1
  28. package/dist/{payload-types-m3jjhxk9.d.cts → payload-types-DC0xzR9i.d.cts} +470 -265
  29. package/dist/{payload-types-m3jjhxk9.d.ts → payload-types-DC0xzR9i.d.ts} +470 -265
  30. package/dist/query.cjs +241 -58
  31. package/dist/query.cjs.map +1 -1
  32. package/dist/query.d.cts +151 -26
  33. package/dist/query.d.ts +151 -26
  34. package/dist/query.js +241 -58
  35. package/dist/query.js.map +1 -1
  36. package/dist/realtime.cjs +5 -1
  37. package/dist/realtime.cjs.map +1 -1
  38. package/dist/realtime.d.cts +2 -2
  39. package/dist/realtime.d.ts +2 -2
  40. package/dist/realtime.js +5 -1
  41. package/dist/realtime.js.map +1 -1
  42. package/dist/server.cjs +1117 -1
  43. package/dist/server.cjs.map +1 -1
  44. package/dist/server.d.cts +7 -7
  45. package/dist/server.d.ts +7 -7
  46. package/dist/server.js +1117 -1
  47. package/dist/server.js.map +1 -1
  48. package/dist/storefront-cache.cjs +144 -0
  49. package/dist/storefront-cache.cjs.map +1 -0
  50. package/dist/storefront-cache.d.cts +24 -0
  51. package/dist/storefront-cache.d.ts +24 -0
  52. package/dist/storefront-cache.js +121 -0
  53. package/dist/storefront-cache.js.map +1 -0
  54. package/dist/{types-Cmrd1ezc.d.ts → types-Bh2p-EMc.d.ts} +5 -1
  55. package/dist/{types-D0ubzQw0.d.cts → types-BvpjooU-.d.cts} +5 -1
  56. package/dist/{types-D2xYdz4P.d.ts → types-D5uHrPLr.d.cts} +264 -96
  57. package/dist/{types-CIGscmus.d.cts → types-Umd-YTjM.d.ts} +264 -96
  58. package/dist/ui/canvas/server.cjs +5 -1
  59. package/dist/ui/canvas/server.cjs.map +1 -1
  60. package/dist/ui/canvas/server.js +5 -1
  61. package/dist/ui/canvas/server.js.map +1 -1
  62. package/dist/ui/canvas.cjs +5 -1
  63. package/dist/ui/canvas.cjs.map +1 -1
  64. package/dist/ui/canvas.js +5 -1
  65. package/dist/ui/canvas.js.map +1 -1
  66. package/dist/ui/form.d.cts +1 -1
  67. package/dist/ui/form.d.ts +1 -1
  68. package/dist/ui/video.d.cts +1 -1
  69. package/dist/ui/video.d.ts +1 -1
  70. package/dist/webhook.d.cts +4 -4
  71. package/dist/webhook.d.ts +4 -4
  72. package/package.json +13 -3
  73. package/dist/const-6XHz_jej.d.ts +0 -32
  74. package/dist/const-B5KT72c7.d.cts +0 -32
package/dist/query.cjs CHANGED
@@ -30,7 +30,11 @@ __export(query_exports, {
30
30
  customerKeys: () => customerKeys,
31
31
  getQueryClient: () => getQueryClient,
32
32
  getStorefrontQueryClient: () => getStorefrontQueryClient,
33
- productKeys: () => productKeys
33
+ prefetchInfiniteProductListingPage: () => prefetchInfiniteProductListingPage,
34
+ prefetchProductListingPage: () => prefetchProductListingPage,
35
+ productKeys: () => productKeys,
36
+ productListingPageInfiniteQueryOptions: () => productListingPageInfiniteQueryOptions,
37
+ productListingPageQueryOptions: () => productListingPageQueryOptions
34
38
  });
35
39
  module.exports = __toCommonJS(query_exports);
36
40
 
@@ -90,6 +94,49 @@ function getStorefrontQueryClient() {
90
94
  }
91
95
 
92
96
  // src/core/query/query-keys.ts
97
+ function nonEmpty(values) {
98
+ return values?.length ? values : void 0;
99
+ }
100
+ function canonicalProductListingPageParams(params = {}, limit) {
101
+ const filters = params.filters;
102
+ const canonicalFilters = {};
103
+ const ids = nonEmpty(filters?.ids);
104
+ if (ids) canonicalFilters.ids = ids;
105
+ const slugs = nonEmpty(filters?.slugs);
106
+ if (slugs) canonicalFilters.slugs = slugs;
107
+ const handles = nonEmpty(filters?.handles);
108
+ if (handles) canonicalFilters.handles = handles;
109
+ const categoryIds = nonEmpty(filters?.categoryIds);
110
+ if (categoryIds) canonicalFilters.categoryIds = categoryIds;
111
+ const tagIds = nonEmpty(filters?.tagIds);
112
+ if (tagIds) canonicalFilters.tagIds = tagIds;
113
+ if (filters?.price?.min != null || filters?.price?.max != null) {
114
+ canonicalFilters.price = {
115
+ ...filters.price.min != null && { min: filters.price.min },
116
+ ...filters.price.max != null && { max: filters.price.max }
117
+ };
118
+ }
119
+ if (filters?.availableForSale != null) {
120
+ canonicalFilters.availableForSale = filters.availableForSale;
121
+ }
122
+ const search = params.search?.trim();
123
+ return {
124
+ mode: params.mode ?? "catalog",
125
+ ...params.page != null && { page: params.page },
126
+ ...limit != null ? { limit } : params.limit != null ? { limit: params.limit } : {},
127
+ ...search && { search },
128
+ ...params.sort != null && { sort: params.sort },
129
+ ...Object.keys(canonicalFilters).length > 0 && {
130
+ filters: canonicalFilters
131
+ },
132
+ ...params.basePath != null && { basePath: params.basePath },
133
+ ...params.trailingSlash != null && { trailingSlash: params.trailingSlash },
134
+ ...params.emit != null && { emit: params.emit },
135
+ ...params.preferCompleteVariantFromHint != null && {
136
+ preferCompleteVariantFromHint: params.preferCompleteVariantFromHint
137
+ }
138
+ };
139
+ }
93
140
  function collectionKeys(collection) {
94
141
  return {
95
142
  all: [collection],
@@ -98,7 +145,11 @@ function collectionKeys(collection) {
98
145
  details: () => [collection, "detail"],
99
146
  detail: (id, options) => [collection, "detail", id, options],
100
147
  infinites: () => [collection, "infinite"],
101
- infinite: (options) => [collection, "infinite", options]
148
+ infinite: (options, pageSize) => [
149
+ collection,
150
+ "infinite",
151
+ pageSize === void 0 ? options : { ...options, limit: pageSize }
152
+ ]
102
153
  };
103
154
  }
104
155
  var customerKeys = {
@@ -108,8 +159,29 @@ var customerKeys = {
108
159
  var productKeys = {
109
160
  listingGroups: (options) => ["products", "listing-groups", "list", options],
110
161
  listingGroupsCatalog: (options) => ["products", "listing-groups", "catalog", options],
111
- listingGroupsInfinite: (options) => ["products", "listing-groups", "infinite", options],
112
- listingGroupsCatalogInfinite: (options) => ["products", "listing-groups", "catalog", "infinite", options],
162
+ listingGroupsInfinite: (options, pageSize) => [
163
+ "products",
164
+ "listing-groups",
165
+ "infinite",
166
+ pageSize === void 0 ? options : { ...options, limit: pageSize }
167
+ ],
168
+ listingGroupsCatalogInfinite: (options, pageSize) => [
169
+ "products",
170
+ "listing-groups",
171
+ "catalog",
172
+ "infinite",
173
+ pageSize === void 0 ? options : { ...options, limit: pageSize }
174
+ ],
175
+ listingPage: (params) => ["products", "listing-page", canonicalProductListingPageParams(params)],
176
+ listingPageInfinite: (params, pageSize) => [
177
+ "products",
178
+ "listing-page",
179
+ "infinite",
180
+ canonicalProductListingPageParams(
181
+ params,
182
+ pageSize
183
+ )
184
+ ],
113
185
  detail: (params) => ["products", "detail", params],
114
186
  detailAll: () => ["products", "detail"]
115
187
  };
@@ -190,13 +262,14 @@ var CollectionHooks = class {
190
262
  }
191
263
  // ===== useInfiniteQuery =====
192
264
  useInfiniteQuery(params, options) {
193
- const {
194
- collection,
195
- options: queryOptions,
196
- pageSize = DEFAULT_PAGE_SIZE
197
- } = params;
265
+ const { collection, options: queryOptions } = params;
266
+ const explicitPageSize = params.pageSize;
267
+ const pageSize = explicitPageSize ?? DEFAULT_PAGE_SIZE;
198
268
  return (0, import_react_query2.useInfiniteQuery)({
199
- queryKey: collectionKeys(collection).infinite(queryOptions),
269
+ queryKey: collectionKeys(collection).infinite(
270
+ queryOptions,
271
+ explicitPageSize
272
+ ),
200
273
  queryFn: async ({ pageParam }) => {
201
274
  const response = await this.collectionClient.from(collection).find({ ...queryOptions, page: pageParam, limit: pageSize });
202
275
  return response;
@@ -210,13 +283,14 @@ var CollectionHooks = class {
210
283
  }
211
284
  // ===== useSuspenseInfiniteQuery =====
212
285
  useSuspenseInfiniteQuery(params, options) {
213
- const {
214
- collection,
215
- options: queryOptions,
216
- pageSize = DEFAULT_PAGE_SIZE
217
- } = params;
286
+ const { collection, options: queryOptions } = params;
287
+ const explicitPageSize = params.pageSize;
288
+ const pageSize = explicitPageSize ?? DEFAULT_PAGE_SIZE;
218
289
  return (0, import_react_query2.useSuspenseInfiniteQuery)({
219
- queryKey: collectionKeys(collection).infinite(queryOptions),
290
+ queryKey: collectionKeys(collection).infinite(
291
+ queryOptions,
292
+ explicitPageSize
293
+ ),
220
294
  queryFn: async ({ pageParam }) => {
221
295
  const response = await this.collectionClient.from(collection).find({ ...queryOptions, page: pageParam, limit: pageSize });
222
296
  return response;
@@ -252,13 +326,14 @@ var CollectionHooks = class {
252
326
  }
253
327
  // ===== prefetchInfiniteQuery =====
254
328
  async prefetchInfiniteQuery(params, options) {
255
- const {
256
- collection,
257
- options: queryOptions,
258
- pageSize = DEFAULT_PAGE_SIZE
259
- } = params;
329
+ const { collection, options: queryOptions } = params;
330
+ const explicitPageSize = params.pageSize;
331
+ const pageSize = explicitPageSize ?? DEFAULT_PAGE_SIZE;
260
332
  return this.queryClient.prefetchInfiniteQuery({
261
- queryKey: collectionKeys(collection).infinite(queryOptions),
333
+ queryKey: collectionKeys(collection).infinite(
334
+ queryOptions,
335
+ explicitPageSize
336
+ ),
262
337
  queryFn: async ({ pageParam }) => {
263
338
  const response = await this.collectionClient.from(collection).find({ ...queryOptions, page: pageParam, limit: pageSize });
264
339
  return response;
@@ -559,6 +634,50 @@ function fetchProductListingGroupsCatalogQuery(collectionClient, queryOptions) {
559
634
  listingGroupsQueryCatalogUrl(queryOptions)
560
635
  );
561
636
  }
637
+ function productListingPageQueryOptions(commerceClient, params = {}) {
638
+ return {
639
+ queryKey: productKeys.listingPage(params),
640
+ queryFn: () => commerceClient.product.listingPage(params)
641
+ };
642
+ }
643
+ function productListingPageInfiniteQueryOptions(commerceClient, params = {}) {
644
+ const {
645
+ pageSize: explicitPageSize,
646
+ page: _page,
647
+ limit: _limit,
648
+ ...pageParams
649
+ } = params;
650
+ const pageSize = explicitPageSize ?? 20;
651
+ return {
652
+ queryKey: productKeys.listingPageInfinite(pageParams, explicitPageSize),
653
+ queryFn: ({ pageParam }) => commerceClient.product.listingPage({
654
+ ...pageParams,
655
+ page: pageParam,
656
+ limit: pageSize
657
+ }),
658
+ initialPageParam: 1,
659
+ getNextPageParam: (lastPage) => lastPage.hasNextPage ? lastPage.nextPage : void 0
660
+ };
661
+ }
662
+ function prefetchProductListingPage(queryClient, commerceClient, params = {}, options) {
663
+ return queryClient.prefetchQuery({
664
+ ...productListingPageQueryOptions(
665
+ commerceClient,
666
+ params
667
+ ),
668
+ ...options
669
+ });
670
+ }
671
+ function prefetchInfiniteProductListingPage(queryClient, commerceClient, params = {}, options) {
672
+ return queryClient.prefetchInfiniteQuery({
673
+ ...productListingPageInfiniteQueryOptions(
674
+ commerceClient,
675
+ params
676
+ ),
677
+ pages: options?.pages ?? 1,
678
+ staleTime: options?.staleTime
679
+ });
680
+ }
562
681
  var QueryHooks = class extends CollectionHooks {
563
682
  constructor(queryClient, collectionClient, customerAuth, commerceClient) {
564
683
  super(queryClient, collectionClient);
@@ -579,6 +698,14 @@ var QueryHooks = class extends CollectionHooks {
579
698
  this._customer = new CustomerHooks(queryClient, customerAuth);
580
699
  this._commerce = commerceClient;
581
700
  }
701
+ ensureCommerce() {
702
+ if (!this._commerce) {
703
+ throw createConfigError(
704
+ "Product listing page hooks require Client or ServerClient. Use createQueryHooks(client) or createServerQueryHooks(server) instead of constructing QueryHooks directly."
705
+ );
706
+ }
707
+ return this._commerce;
708
+ }
582
709
  useProductListingGroupsQuery(params, options) {
583
710
  const queryOptions = params.options;
584
711
  const { placeholderData, ...restOptions } = options ?? {};
@@ -626,12 +753,14 @@ var QueryHooks = class extends CollectionHooks {
626
753
  });
627
754
  }
628
755
  useInfiniteProductListingGroupsQuery(params, options) {
629
- const {
630
- options: queryOptions,
631
- pageSize = 20
632
- } = params;
756
+ const { options: queryOptions } = params;
757
+ const explicitPageSize = params.pageSize;
758
+ const pageSize = explicitPageSize ?? 20;
633
759
  return (0, import_react_query4.useInfiniteQuery)({
634
- queryKey: productKeys.listingGroupsInfinite(queryOptions),
760
+ queryKey: productKeys.listingGroupsInfinite(
761
+ queryOptions,
762
+ explicitPageSize
763
+ ),
635
764
  queryFn: async ({ pageParam }) => fetchProductListingGroupsQuery(this.collectionClient, {
636
765
  ...queryOptions,
637
766
  page: pageParam,
@@ -643,12 +772,14 @@ var QueryHooks = class extends CollectionHooks {
643
772
  });
644
773
  }
645
774
  useInfiniteProductListingGroupsCatalogQuery(params, options) {
646
- const {
647
- options: queryOptions,
648
- pageSize = 20
649
- } = params;
775
+ const { options: queryOptions } = params;
776
+ const explicitPageSize = params.pageSize;
777
+ const pageSize = explicitPageSize ?? 20;
650
778
  return (0, import_react_query4.useInfiniteQuery)({
651
- queryKey: productKeys.listingGroupsCatalogInfinite(queryOptions),
779
+ queryKey: productKeys.listingGroupsCatalogInfinite(
780
+ queryOptions,
781
+ explicitPageSize
782
+ ),
652
783
  queryFn: async ({ pageParam }) => fetchProductListingGroupsCatalogQuery(this.collectionClient, {
653
784
  ...queryOptions,
654
785
  page: pageParam,
@@ -660,12 +791,14 @@ var QueryHooks = class extends CollectionHooks {
660
791
  });
661
792
  }
662
793
  useSuspenseInfiniteProductListingGroupsQuery(params, options) {
663
- const {
664
- options: queryOptions,
665
- pageSize = 20
666
- } = params;
794
+ const { options: queryOptions } = params;
795
+ const explicitPageSize = params.pageSize;
796
+ const pageSize = explicitPageSize ?? 20;
667
797
  return (0, import_react_query4.useSuspenseInfiniteQuery)({
668
- queryKey: productKeys.listingGroupsInfinite(queryOptions),
798
+ queryKey: productKeys.listingGroupsInfinite(
799
+ queryOptions,
800
+ explicitPageSize
801
+ ),
669
802
  queryFn: async ({ pageParam }) => fetchProductListingGroupsQuery(this.collectionClient, {
670
803
  ...queryOptions,
671
804
  page: pageParam,
@@ -677,12 +810,14 @@ var QueryHooks = class extends CollectionHooks {
677
810
  });
678
811
  }
679
812
  useSuspenseInfiniteProductListingGroupsCatalogQuery(params, options) {
680
- const {
681
- options: queryOptions,
682
- pageSize = 20
683
- } = params;
813
+ const { options: queryOptions } = params;
814
+ const explicitPageSize = params.pageSize;
815
+ const pageSize = explicitPageSize ?? 20;
684
816
  return (0, import_react_query4.useSuspenseInfiniteQuery)({
685
- queryKey: productKeys.listingGroupsCatalogInfinite(queryOptions),
817
+ queryKey: productKeys.listingGroupsCatalogInfinite(
818
+ queryOptions,
819
+ explicitPageSize
820
+ ),
686
821
  queryFn: async ({ pageParam }) => fetchProductListingGroupsCatalogQuery(this.collectionClient, {
687
822
  ...queryOptions,
688
823
  page: pageParam,
@@ -713,12 +848,14 @@ var QueryHooks = class extends CollectionHooks {
713
848
  });
714
849
  }
715
850
  async prefetchInfiniteProductListingGroupsQuery(params, options) {
716
- const {
717
- options: queryOptions,
718
- pageSize = 20
719
- } = params;
851
+ const { options: queryOptions } = params;
852
+ const explicitPageSize = params.pageSize;
853
+ const pageSize = explicitPageSize ?? 20;
720
854
  return this.queryClient.prefetchInfiniteQuery({
721
- queryKey: productKeys.listingGroupsInfinite(queryOptions),
855
+ queryKey: productKeys.listingGroupsInfinite(
856
+ queryOptions,
857
+ explicitPageSize
858
+ ),
722
859
  queryFn: async ({ pageParam }) => fetchProductListingGroupsQuery(this.collectionClient, {
723
860
  ...queryOptions,
724
861
  page: pageParam,
@@ -731,12 +868,14 @@ var QueryHooks = class extends CollectionHooks {
731
868
  });
732
869
  }
733
870
  async prefetchInfiniteProductListingGroupsCatalogQuery(params, options) {
734
- const {
735
- options: queryOptions,
736
- pageSize = 20
737
- } = params;
871
+ const { options: queryOptions } = params;
872
+ const explicitPageSize = params.pageSize;
873
+ const pageSize = explicitPageSize ?? 20;
738
874
  return this.queryClient.prefetchInfiniteQuery({
739
- queryKey: productKeys.listingGroupsCatalogInfinite(queryOptions),
875
+ queryKey: productKeys.listingGroupsCatalogInfinite(
876
+ queryOptions,
877
+ explicitPageSize
878
+ ),
740
879
  queryFn: async ({ pageParam }) => fetchProductListingGroupsCatalogQuery(this.collectionClient, {
741
880
  ...queryOptions,
742
881
  page: pageParam,
@@ -748,6 +887,45 @@ var QueryHooks = class extends CollectionHooks {
748
887
  staleTime: options?.staleTime
749
888
  });
750
889
  }
890
+ useProductListingPage(params = {}, options) {
891
+ const { placeholderData, ...restOptions } = options ?? {};
892
+ return (0, import_react_query4.useQuery)({
893
+ ...productListingPageQueryOptions(this.ensureCommerce(), params),
894
+ ...restOptions,
895
+ ...placeholderData !== void 0 && {
896
+ placeholderData
897
+ }
898
+ });
899
+ }
900
+ useSuspenseProductListingPage(params = {}, options) {
901
+ const suspenseOptions = options;
902
+ return (0, import_react_query4.useSuspenseQuery)({
903
+ ...productListingPageQueryOptions(this.ensureCommerce(), params),
904
+ ...suspenseOptions
905
+ });
906
+ }
907
+ useInfiniteProductListingPage(params = {}, options) {
908
+ return (0, import_react_query4.useInfiniteQuery)({
909
+ ...productListingPageInfiniteQueryOptions(this.ensureCommerce(), params),
910
+ ...options
911
+ });
912
+ }
913
+ async prefetchProductListingPage(params = {}, options) {
914
+ return prefetchProductListingPage(
915
+ this.queryClient,
916
+ this.ensureCommerce(),
917
+ params,
918
+ options
919
+ );
920
+ }
921
+ async prefetchInfiniteProductListingPage(params = {}, options) {
922
+ return prefetchInfiniteProductListingPage(
923
+ this.queryClient,
924
+ this.ensureCommerce(),
925
+ params,
926
+ options
927
+ );
928
+ }
751
929
  useProductDetail(params, options) {
752
930
  const discriminator = "slug" in params ? params.slug : params.id;
753
931
  const { enabled, ...restOptions } = options ?? {};
@@ -939,12 +1117,17 @@ function createReadOnlyQueryHooksFacade(hooks) {
939
1117
  invalidateCustomerQueries: hooks.invalidateCustomerQueries.bind(hooks),
940
1118
  getCustomerData: hooks.getCustomerData.bind(hooks),
941
1119
  setCustomerData: hooks.setCustomerData.bind(hooks),
942
- useProductListingGroupsQuery: hooks.useProductListingGroupsQuery.bind(hooks),
943
- useSuspenseProductListingGroupsQuery: hooks.useSuspenseProductListingGroupsQuery.bind(hooks),
944
- useInfiniteProductListingGroupsQuery: hooks.useInfiniteProductListingGroupsQuery.bind(hooks),
945
- useSuspenseInfiniteProductListingGroupsQuery: hooks.useSuspenseInfiniteProductListingGroupsQuery.bind(hooks),
946
- prefetchProductListingGroupsQuery: hooks.prefetchProductListingGroupsQuery.bind(hooks),
947
- prefetchInfiniteProductListingGroupsQuery: hooks.prefetchInfiniteProductListingGroupsQuery.bind(hooks),
1120
+ useProductListingGroupsCatalogQuery: hooks.useProductListingGroupsCatalogQuery.bind(hooks),
1121
+ useSuspenseProductListingGroupsCatalogQuery: hooks.useSuspenseProductListingGroupsCatalogQuery.bind(hooks),
1122
+ useInfiniteProductListingGroupsCatalogQuery: hooks.useInfiniteProductListingGroupsCatalogQuery.bind(hooks),
1123
+ useSuspenseInfiniteProductListingGroupsCatalogQuery: hooks.useSuspenseInfiniteProductListingGroupsCatalogQuery.bind(hooks),
1124
+ prefetchProductListingGroupsCatalogQuery: hooks.prefetchProductListingGroupsCatalogQuery.bind(hooks),
1125
+ prefetchInfiniteProductListingGroupsCatalogQuery: hooks.prefetchInfiniteProductListingGroupsCatalogQuery.bind(hooks),
1126
+ useProductListingPage: hooks.useProductListingPage.bind(hooks),
1127
+ useSuspenseProductListingPage: hooks.useSuspenseProductListingPage.bind(hooks),
1128
+ useInfiniteProductListingPage: hooks.useInfiniteProductListingPage.bind(hooks),
1129
+ prefetchProductListingPage: hooks.prefetchProductListingPage.bind(hooks),
1130
+ prefetchInfiniteProductListingPage: hooks.prefetchInfiniteProductListingPage.bind(hooks),
948
1131
  useProductDetail: hooks.useProductDetail.bind(hooks),
949
1132
  useProductDetailBySlug: hooks.useProductDetailBySlug.bind(hooks),
950
1133
  useProductDetailById: hooks.useProductDetailById.bind(hooks)