@01.software/sdk 0.29.0 → 0.30.1
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/README.md +273 -73
- package/dist/analytics/react.cjs +4 -1
- package/dist/analytics/react.cjs.map +1 -1
- package/dist/analytics/react.js +4 -1
- package/dist/analytics/react.js.map +1 -1
- package/dist/analytics.cjs +4 -1
- package/dist/analytics.cjs.map +1 -1
- package/dist/analytics.js +4 -1
- package/dist/analytics.js.map +1 -1
- package/dist/client.cjs +1476 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +28 -0
- package/dist/client.d.ts +28 -0
- package/dist/client.js +1453 -0
- package/dist/client.js.map +1 -0
- package/dist/collection-client-B9d9kr1d.d.ts +218 -0
- package/dist/collection-client-QPbwimkU.d.cts +218 -0
- package/dist/{const-DAjQYNuM.d.ts → const-B75IFDRi.d.ts} +2 -4
- package/dist/{const-Dsixdi6z.d.cts → const-VZuk2tWc.d.cts} +2 -4
- package/dist/index-B2WbhEgT.d.cts +106 -0
- package/dist/index-B2WbhEgT.d.ts +106 -0
- package/dist/index.cjs +784 -1530
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -115
- package/dist/index.d.ts +11 -115
- package/dist/index.js +784 -1548
- package/dist/index.js.map +1 -1
- package/dist/metadata.cjs +91 -0
- package/dist/metadata.cjs.map +1 -0
- package/dist/metadata.d.cts +58 -0
- package/dist/metadata.d.ts +58 -0
- package/dist/metadata.js +68 -0
- package/dist/metadata.js.map +1 -0
- package/dist/{payload-types-Ci-ZA7aM.d.cts → payload-types-DPjO_IbQ.d.cts} +9 -3
- package/dist/{payload-types-Ci-ZA7aM.d.ts → payload-types-DPjO_IbQ.d.ts} +9 -3
- package/dist/query.cjs +1791 -0
- package/dist/query.cjs.map +1 -0
- package/dist/query.d.cts +244 -0
- package/dist/query.d.ts +244 -0
- package/dist/query.js +1786 -0
- package/dist/query.js.map +1 -0
- package/dist/realtime.cjs +4 -1
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/realtime.js +4 -1
- package/dist/realtime.js.map +1 -1
- package/dist/{server-BINWywT8.d.cts → server-CrsPyqEc.d.cts} +14 -31
- package/dist/{server-BINWywT8.d.ts → server-CrsPyqEc.d.ts} +14 -31
- package/dist/server.cjs +299 -840
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +112 -7
- package/dist/server.d.ts +112 -7
- package/dist/server.js +299 -858
- package/dist/server.js.map +1 -1
- package/dist/{types-BWq_WlbB.d.ts → types-1fBLrYU7.d.ts} +1 -1
- package/dist/{types-zKjATmDK.d.cts → types-BwT0eeaz.d.cts} +1 -1
- package/dist/{server-Cv0Q4dPQ.d.ts → types-Dlb2mwpX.d.cts} +228 -741
- package/dist/{server-C0C8dtms.d.cts → types-DuSKPiY5.d.ts} +228 -741
- package/dist/ui/canvas/server.cjs +7 -6
- package/dist/ui/canvas/server.cjs.map +1 -1
- package/dist/ui/canvas/server.d.cts +1 -3
- package/dist/ui/canvas/server.d.ts +1 -3
- package/dist/ui/canvas/server.js +7 -6
- package/dist/ui/canvas/server.js.map +1 -1
- package/dist/ui/canvas.cjs +11 -10
- package/dist/ui/canvas.cjs.map +1 -1
- package/dist/ui/canvas.d.cts +29 -6
- package/dist/ui/canvas.d.ts +29 -6
- package/dist/ui/canvas.js +11 -10
- package/dist/ui/canvas.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +84 -15
package/dist/query.d.ts
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { QueryClient, InfiniteData, UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
import { A as ApiQueryOptions, P as PayloadFindResponse, g as PayloadMutationResponse, I as CustomerAuth, M as CustomerProfile, K as CustomerAuthResponse, L as CustomerLoginData, Q as CustomerRegisterResponse, O as CustomerRegisterData, N as CustomerRefreshResponse, aS as UpdateProfileData, ab as ProductDetailParams, a2 as ProductDetail, al as ProductListingGroupsItem, h as RootClient } from './types-DuSKPiY5.js';
|
|
4
|
+
import './payload-types-DPjO_IbQ.js';
|
|
5
|
+
import { C as CollectionClient } from './collection-client-B9d9kr1d.js';
|
|
6
|
+
import { c as ServerCollection, P as PublicCollection } from './const-B75IFDRi.js';
|
|
7
|
+
import { C as CollectionType } from './types-1fBLrYU7.js';
|
|
8
|
+
import { S as SDKError } from './index-B2WbhEgT.js';
|
|
9
|
+
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
10
|
+
import { ServerClient } from './server.js';
|
|
11
|
+
import './metadata.js';
|
|
12
|
+
|
|
13
|
+
declare function getQueryClient(): QueryClient;
|
|
14
|
+
|
|
15
|
+
interface CollectionQueryParams<T extends ServerCollection> {
|
|
16
|
+
collection: T;
|
|
17
|
+
options?: ApiQueryOptions;
|
|
18
|
+
}
|
|
19
|
+
interface CollectionDetailQueryParams<T extends ServerCollection> {
|
|
20
|
+
collection: T;
|
|
21
|
+
id: string;
|
|
22
|
+
options?: ApiQueryOptions;
|
|
23
|
+
}
|
|
24
|
+
interface CollectionInfiniteQueryParams<T extends ServerCollection> {
|
|
25
|
+
collection: T;
|
|
26
|
+
options?: Omit<ApiQueryOptions, 'page'>;
|
|
27
|
+
pageSize?: number;
|
|
28
|
+
}
|
|
29
|
+
interface QueryOptions<TQueryFnData = unknown, TData = TQueryFnData> {
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
staleTime?: number;
|
|
32
|
+
gcTime?: number;
|
|
33
|
+
refetchOnWindowFocus?: boolean;
|
|
34
|
+
refetchOnMount?: boolean | 'always';
|
|
35
|
+
refetchInterval?: number | false;
|
|
36
|
+
retry?: boolean | number;
|
|
37
|
+
select?: (data: TQueryFnData) => TData;
|
|
38
|
+
placeholderData?: TQueryFnData | ((previousData: TData | undefined) => TQueryFnData | undefined);
|
|
39
|
+
initialData?: TQueryFnData | (() => TQueryFnData);
|
|
40
|
+
initialDataUpdatedAt?: number | (() => number | undefined);
|
|
41
|
+
}
|
|
42
|
+
type SuspenseQueryOptions<TQueryFnData = unknown, TData = TQueryFnData> = Omit<QueryOptions<TQueryFnData, TData>, 'enabled' | 'placeholderData'>;
|
|
43
|
+
interface InfiniteQueryOptions<TQueryFnData = unknown, TData = InfiniteData<TQueryFnData>> {
|
|
44
|
+
enabled?: boolean;
|
|
45
|
+
staleTime?: number;
|
|
46
|
+
gcTime?: number;
|
|
47
|
+
refetchOnWindowFocus?: boolean;
|
|
48
|
+
refetchOnMount?: boolean | 'always';
|
|
49
|
+
refetchInterval?: number | false;
|
|
50
|
+
retry?: boolean | number;
|
|
51
|
+
select?: (data: InfiniteData<TQueryFnData>) => TData;
|
|
52
|
+
}
|
|
53
|
+
type SuspenseInfiniteQueryOptions<TQueryFnData = unknown, TData = InfiniteData<TQueryFnData>> = Omit<InfiniteQueryOptions<TQueryFnData, TData>, 'enabled'>;
|
|
54
|
+
interface MutationCallbacks$1<TData> {
|
|
55
|
+
onSuccess?: (data: TData) => void;
|
|
56
|
+
onError?: (error: SDKError) => void;
|
|
57
|
+
onSettled?: () => void;
|
|
58
|
+
}
|
|
59
|
+
declare class CollectionHooks<TCollection extends ServerCollection = PublicCollection> {
|
|
60
|
+
protected queryClient: QueryClient;
|
|
61
|
+
protected collectionClient: CollectionClient<TCollection>;
|
|
62
|
+
constructor(queryClient: QueryClient, collectionClient: CollectionClient<TCollection>);
|
|
63
|
+
useQuery<T extends TCollection, TData = PayloadFindResponse<CollectionType<T>>>(params: CollectionQueryParams<T>, options?: QueryOptions<PayloadFindResponse<CollectionType<T>>, TData>): _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<TData>, Error>;
|
|
64
|
+
useSuspenseQuery<T extends TCollection, TData = PayloadFindResponse<CollectionType<T>>>(params: CollectionQueryParams<T>, options?: SuspenseQueryOptions<PayloadFindResponse<CollectionType<T>>, TData>): _tanstack_react_query.UseSuspenseQueryResult<TData, Error>;
|
|
65
|
+
useQueryById<T extends TCollection, TData = CollectionType<T>>(params: CollectionDetailQueryParams<T>, options?: QueryOptions<CollectionType<T>, TData>): _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<TData>, Error>;
|
|
66
|
+
useSuspenseQueryById<T extends TCollection, TData = CollectionType<T>>(params: CollectionDetailQueryParams<T>, options?: SuspenseQueryOptions<CollectionType<T>, TData>): _tanstack_react_query.UseSuspenseQueryResult<TData, Error>;
|
|
67
|
+
useInfiniteQuery<T extends TCollection, TData = InfiniteData<PayloadFindResponse<CollectionType<T>>>>(params: CollectionInfiniteQueryParams<T>, options?: InfiniteQueryOptions<PayloadFindResponse<CollectionType<T>>, TData>): _tanstack_react_query.UseInfiniteQueryResult<TData, Error>;
|
|
68
|
+
useSuspenseInfiniteQuery<T extends TCollection, TData = InfiniteData<PayloadFindResponse<CollectionType<T>>>>(params: CollectionInfiniteQueryParams<T>, options?: SuspenseInfiniteQueryOptions<PayloadFindResponse<CollectionType<T>>, TData>): _tanstack_react_query.UseSuspenseInfiniteQueryResult<TData, Error>;
|
|
69
|
+
prefetchQuery<T extends TCollection>(params: CollectionQueryParams<T>, options?: {
|
|
70
|
+
staleTime?: number;
|
|
71
|
+
}): Promise<void>;
|
|
72
|
+
prefetchQueryById<T extends TCollection>(params: CollectionDetailQueryParams<T>, options?: {
|
|
73
|
+
staleTime?: number;
|
|
74
|
+
}): Promise<void>;
|
|
75
|
+
prefetchInfiniteQuery<T extends TCollection>(params: CollectionInfiniteQueryParams<T>, options?: {
|
|
76
|
+
pages?: number;
|
|
77
|
+
staleTime?: number;
|
|
78
|
+
}): Promise<void>;
|
|
79
|
+
useCreate<T extends TCollection>(params: {
|
|
80
|
+
collection: T;
|
|
81
|
+
}, options?: MutationCallbacks$1<PayloadMutationResponse<CollectionType<T>>>): _tanstack_react_query.UseMutationResult<PayloadMutationResponse<CollectionType<T>>, SDKError, {
|
|
82
|
+
data: Partial<CollectionType<T>>;
|
|
83
|
+
file?: File | Blob;
|
|
84
|
+
filename?: string;
|
|
85
|
+
}, unknown>;
|
|
86
|
+
useUpdate<T extends TCollection>(params: {
|
|
87
|
+
collection: T;
|
|
88
|
+
}, options?: MutationCallbacks$1<PayloadMutationResponse<CollectionType<T>>>): _tanstack_react_query.UseMutationResult<PayloadMutationResponse<CollectionType<T>>, SDKError, {
|
|
89
|
+
id: string;
|
|
90
|
+
data: Partial<CollectionType<T>>;
|
|
91
|
+
file?: File | Blob;
|
|
92
|
+
filename?: string;
|
|
93
|
+
}, unknown>;
|
|
94
|
+
useRemove<T extends TCollection>(params: {
|
|
95
|
+
collection: T;
|
|
96
|
+
}, options?: MutationCallbacks$1<CollectionType<T>>): _tanstack_react_query.UseMutationResult<CollectionType<T>, SDKError, string, unknown>;
|
|
97
|
+
invalidateQueries<T extends TCollection>(collection: T, type?: 'list' | 'detail' | 'infinite'): Promise<void>;
|
|
98
|
+
getQueryData<T extends TCollection>(collection: T, type: 'list', options?: ApiQueryOptions): PayloadFindResponse<CollectionType<T>> | undefined;
|
|
99
|
+
getQueryData<T extends TCollection>(collection: T, type: 'detail', id: string, options?: ApiQueryOptions): CollectionType<T> | null | undefined;
|
|
100
|
+
setQueryData<T extends TCollection>(collection: T, type: 'list', data: PayloadFindResponse<CollectionType<T>>, options?: ApiQueryOptions): void;
|
|
101
|
+
setQueryData<T extends TCollection>(collection: T, type: 'detail', id: string, data: CollectionType<T> | null, options?: ApiQueryOptions): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface MutationCallbacks<TData> {
|
|
105
|
+
onSuccess?: (data: TData) => void;
|
|
106
|
+
onError?: (error: SDKError) => void;
|
|
107
|
+
onSettled?: () => void;
|
|
108
|
+
}
|
|
109
|
+
declare class CustomerHooks {
|
|
110
|
+
private queryClient;
|
|
111
|
+
private customerAuth?;
|
|
112
|
+
constructor(queryClient: QueryClient, customerAuth?: CustomerAuth);
|
|
113
|
+
private ensureCustomerAuth;
|
|
114
|
+
private invalidateMe;
|
|
115
|
+
useCustomerMe(options?: {
|
|
116
|
+
enabled?: boolean;
|
|
117
|
+
staleTime?: number;
|
|
118
|
+
gcTime?: number;
|
|
119
|
+
refetchOnWindowFocus?: boolean;
|
|
120
|
+
refetchOnMount?: boolean | 'always';
|
|
121
|
+
refetchInterval?: number | false;
|
|
122
|
+
retry?: boolean | number;
|
|
123
|
+
}): _tanstack_react_query.UseQueryResult<CustomerProfile | null, Error>;
|
|
124
|
+
useCustomerLogin(options?: MutationCallbacks<CustomerAuthResponse>): _tanstack_react_query.UseMutationResult<CustomerAuthResponse, SDKError, CustomerLoginData, unknown>;
|
|
125
|
+
useCustomerRegister(options?: MutationCallbacks<{
|
|
126
|
+
customer: CustomerProfile;
|
|
127
|
+
}>): _tanstack_react_query.UseMutationResult<CustomerRegisterResponse, SDKError, CustomerRegisterData, unknown>;
|
|
128
|
+
useCustomerLogout(options?: MutationCallbacks<void>): _tanstack_react_query.UseMutationResult<void, SDKError, void, unknown>;
|
|
129
|
+
useCustomerForgotPassword(options?: MutationCallbacks<void>): _tanstack_react_query.UseMutationResult<void, SDKError, string, unknown>;
|
|
130
|
+
useCustomerResetPassword(options?: MutationCallbacks<void>): _tanstack_react_query.UseMutationResult<void, SDKError, {
|
|
131
|
+
token: string;
|
|
132
|
+
password: string;
|
|
133
|
+
}, unknown>;
|
|
134
|
+
useCustomerRefreshToken(options?: MutationCallbacks<CustomerRefreshResponse>): _tanstack_react_query.UseMutationResult<CustomerRefreshResponse, SDKError, unknown, unknown>;
|
|
135
|
+
useCustomerUpdateProfile(options?: MutationCallbacks<CustomerProfile>): _tanstack_react_query.UseMutationResult<CustomerProfile, SDKError, UpdateProfileData, unknown>;
|
|
136
|
+
useCustomerChangePassword(options?: MutationCallbacks<void>): _tanstack_react_query.UseMutationResult<void, SDKError, {
|
|
137
|
+
currentPassword: string;
|
|
138
|
+
newPassword: string;
|
|
139
|
+
}, unknown>;
|
|
140
|
+
invalidateCustomerQueries(): Promise<void>;
|
|
141
|
+
getCustomerData(): CustomerProfile | null | undefined;
|
|
142
|
+
setCustomerData(data: CustomerProfile | null): void;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
type ProductListingGroupsQueryOptions = Pick<ApiQueryOptions, 'page' | 'limit' | 'sort' | 'where'>;
|
|
146
|
+
type ReadOnlyQueryHooks = Omit<QueryHooks<PublicCollection>, 'useCreate' | 'useUpdate' | 'useRemove'>;
|
|
147
|
+
/**
|
|
148
|
+
* Composes CollectionHooks + CustomerHooks into a single API surface.
|
|
149
|
+
* All methods are delegated; no logic lives here.
|
|
150
|
+
*/
|
|
151
|
+
interface ProductDetailCallable {
|
|
152
|
+
product: {
|
|
153
|
+
detail: (params: ProductDetailParams) => Promise<ProductDetail | null>;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
declare class QueryHooks<TCollection extends ServerCollection = PublicCollection> extends CollectionHooks<TCollection> {
|
|
157
|
+
private _customer;
|
|
158
|
+
private _commerce?;
|
|
159
|
+
constructor(queryClient: QueryClient, collectionClient: CollectionClient<TCollection>, customerAuth?: CustomerAuth, commerceClient?: ProductDetailCallable);
|
|
160
|
+
useCustomerMe: CustomerHooks['useCustomerMe'];
|
|
161
|
+
useCustomerLogin: CustomerHooks['useCustomerLogin'];
|
|
162
|
+
useCustomerRegister: CustomerHooks['useCustomerRegister'];
|
|
163
|
+
useCustomerLogout: CustomerHooks['useCustomerLogout'];
|
|
164
|
+
useCustomerForgotPassword: CustomerHooks['useCustomerForgotPassword'];
|
|
165
|
+
useCustomerResetPassword: CustomerHooks['useCustomerResetPassword'];
|
|
166
|
+
useCustomerRefreshToken: CustomerHooks['useCustomerRefreshToken'];
|
|
167
|
+
useCustomerUpdateProfile: CustomerHooks['useCustomerUpdateProfile'];
|
|
168
|
+
useCustomerChangePassword: CustomerHooks['useCustomerChangePassword'];
|
|
169
|
+
invalidateCustomerQueries: CustomerHooks['invalidateCustomerQueries'];
|
|
170
|
+
getCustomerData: CustomerHooks['getCustomerData'];
|
|
171
|
+
setCustomerData: CustomerHooks['setCustomerData'];
|
|
172
|
+
useProductListingGroupsQuery<TData = PayloadFindResponse<ProductListingGroupsItem>>(params: {
|
|
173
|
+
options?: ProductListingGroupsQueryOptions;
|
|
174
|
+
}, options?: QueryOptions<PayloadFindResponse<ProductListingGroupsItem>, TData>): UseQueryResult<_tanstack_react_query.NoInfer<TData>, Error>;
|
|
175
|
+
useSuspenseProductListingGroupsQuery<TData = PayloadFindResponse<ProductListingGroupsItem>>(params: {
|
|
176
|
+
options?: ProductListingGroupsQueryOptions;
|
|
177
|
+
}, options?: SuspenseQueryOptions<PayloadFindResponse<ProductListingGroupsItem>, TData>): _tanstack_react_query.UseSuspenseQueryResult<TData, Error>;
|
|
178
|
+
useInfiniteProductListingGroupsQuery<TData = InfiniteData<PayloadFindResponse<ProductListingGroupsItem>>>(params: {
|
|
179
|
+
options?: Omit<ProductListingGroupsQueryOptions, 'page' | 'limit'>;
|
|
180
|
+
pageSize?: number;
|
|
181
|
+
}, options?: InfiniteQueryOptions<PayloadFindResponse<ProductListingGroupsItem>, TData>): _tanstack_react_query.UseInfiniteQueryResult<TData, Error>;
|
|
182
|
+
useSuspenseInfiniteProductListingGroupsQuery<TData = InfiniteData<PayloadFindResponse<ProductListingGroupsItem>>>(params: {
|
|
183
|
+
options?: Omit<ProductListingGroupsQueryOptions, 'page' | 'limit'>;
|
|
184
|
+
pageSize?: number;
|
|
185
|
+
}, options?: SuspenseInfiniteQueryOptions<PayloadFindResponse<ProductListingGroupsItem>, TData>): _tanstack_react_query.UseSuspenseInfiniteQueryResult<TData, Error>;
|
|
186
|
+
prefetchProductListingGroupsQuery(params: {
|
|
187
|
+
options?: ProductListingGroupsQueryOptions;
|
|
188
|
+
}, options?: {
|
|
189
|
+
staleTime?: number;
|
|
190
|
+
}): Promise<void>;
|
|
191
|
+
prefetchInfiniteProductListingGroupsQuery(params: {
|
|
192
|
+
options?: Omit<ProductListingGroupsQueryOptions, 'page' | 'limit'>;
|
|
193
|
+
pageSize?: number;
|
|
194
|
+
}, options?: {
|
|
195
|
+
pages?: number;
|
|
196
|
+
staleTime?: number;
|
|
197
|
+
}): Promise<void>;
|
|
198
|
+
useProductDetail(params: {
|
|
199
|
+
slug: string;
|
|
200
|
+
} | {
|
|
201
|
+
id: string;
|
|
202
|
+
}, options?: {
|
|
203
|
+
enabled?: boolean;
|
|
204
|
+
}): UseQueryResult<ProductDetail | null>;
|
|
205
|
+
useProductDetailBySlug(slug: string, options?: {
|
|
206
|
+
enabled?: boolean;
|
|
207
|
+
}): UseQueryResult<ProductDetail | null>;
|
|
208
|
+
useProductDetailById(id: string, options?: {
|
|
209
|
+
enabled?: boolean;
|
|
210
|
+
}): UseQueryResult<ProductDetail | null>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare function collectionKeys<T extends ServerCollection>(collection: T): {
|
|
214
|
+
all: readonly [T];
|
|
215
|
+
lists: () => readonly [T, "list"];
|
|
216
|
+
list: (options?: ApiQueryOptions) => readonly [T, "list", ApiQueryOptions | undefined];
|
|
217
|
+
details: () => readonly [T, "detail"];
|
|
218
|
+
detail: (id: string, options?: ApiQueryOptions) => readonly [T, "detail", string, ApiQueryOptions | undefined];
|
|
219
|
+
infinites: () => readonly [T, "infinite"];
|
|
220
|
+
infinite: (options?: Omit<ApiQueryOptions, "page">) => readonly [T, "infinite", Omit<ApiQueryOptions, "page"> | undefined];
|
|
221
|
+
};
|
|
222
|
+
declare const customerKeys: {
|
|
223
|
+
all: readonly ["customer"];
|
|
224
|
+
me: () => readonly ["customer", "me"];
|
|
225
|
+
};
|
|
226
|
+
declare const productKeys: {
|
|
227
|
+
listingGroups: (options?: ProductListingGroupsQueryOptions) => readonly ["products", "listing-groups", "list", ProductListingGroupsQueryOptions | undefined];
|
|
228
|
+
listingGroupsInfinite: (options?: Omit<ProductListingGroupsQueryOptions, "page" | "limit">) => readonly ["products", "listing-groups", "infinite", Omit<ProductListingGroupsQueryOptions, "page" | "limit"> | undefined];
|
|
229
|
+
detail: (params: {
|
|
230
|
+
slug: string;
|
|
231
|
+
} | {
|
|
232
|
+
id: string;
|
|
233
|
+
}) => readonly ["products", "detail", {
|
|
234
|
+
slug: string;
|
|
235
|
+
} | {
|
|
236
|
+
id: string;
|
|
237
|
+
}];
|
|
238
|
+
detailAll: () => readonly ["products", "detail"];
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
declare function createQueryHooks(client: RootClient, queryClient?: QueryClient): ReadOnlyQueryHooks;
|
|
242
|
+
declare function createServerQueryHooks(client: ServerClient, queryClient?: QueryClient): QueryHooks<ServerCollection>;
|
|
243
|
+
|
|
244
|
+
export { type CollectionDetailQueryParams, CollectionHooks, type CollectionInfiniteQueryParams, type CollectionQueryParams, CustomerHooks, type InfiniteQueryOptions, type ProductListingGroupsQueryOptions, QueryHooks, type QueryOptions, type ReadOnlyQueryHooks, type SuspenseInfiniteQueryOptions, type SuspenseQueryOptions, collectionKeys, createQueryHooks, createServerQueryHooks, customerKeys, getQueryClient, productKeys };
|