@viu/emporix-sdk-react 1.0.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.
@@ -0,0 +1,529 @@
1
+ import { Customer, AuthContext, Product, PaginatedItems, Category, CategoryNode, Cart, CartItemInput, CartItemUpdate, CartAddress, CartCreated, CreateCartInput, CheckoutResult, CheckoutInput, QuoteCheckoutInput, PaymentMode, PriceMatchByContextInput, PriceMatch, Media, SegmentCategoryTree, SegmentItem, Segment, PasswordChangeInput, CustomerUpdateInput, Address, AddressCreateInput, AddressUpdateInput, PasswordResetRequestInput, PasswordResetConfirmInput, Site, LegalEntity, ContactAssignment, Location, IamGroup, ContactAssignmentCreate, LegalEntityCreate, LocationCreate, LegalEntityUpdate, ContactAssignmentUpdate, LocationUpdate, OrderStatus, Order, SalesOrderPatch } from '@viu/emporix-sdk';
2
+ import * as _tanstack_react_query from '@tanstack/react-query';
3
+ import { UseQueryResult, UseInfiniteQueryResult, UseMutationResult } from '@tanstack/react-query';
4
+ import { S as SiteContextValue } from './provider-fvcYdqqX.js';
5
+ import 'react';
6
+ import './storage.js';
7
+
8
+ /** Customer authentication state and actions. */
9
+ interface CustomerSessionApi {
10
+ customerToken: string | null;
11
+ customer: Customer | null;
12
+ isAuthenticated: boolean;
13
+ isLoading: boolean;
14
+ /** Current refresh token (in-session; set by `login`). */
15
+ refreshToken: string | null;
16
+ login: (input: {
17
+ email: string;
18
+ password: string;
19
+ }) => Promise<void>;
20
+ signup: (input: {
21
+ email: string;
22
+ password: string;
23
+ }) => Promise<void>;
24
+ /** Authorization-Code SSO: exchanges an IdP `code` for a customer session. */
25
+ socialLogin: (input: {
26
+ code: string;
27
+ redirectUri: string;
28
+ codeVerifier?: string;
29
+ sessionId?: string;
30
+ }) => Promise<void>;
31
+ /** RFC 8693 token exchange: exchanges an external IdP JWT for a session. */
32
+ exchangeToken: (input: {
33
+ subjectToken: string;
34
+ config?: string;
35
+ }) => Promise<void>;
36
+ /** Server-side logout (best-effort), then clears the local session. */
37
+ logout: () => Promise<void>;
38
+ /** Refetches the `me` profile query. */
39
+ refresh: () => Promise<void>;
40
+ /**
41
+ * Exchanges the stored refresh token for a fresh customer token (same
42
+ * sessionId) and updates the stored token. No-op if there is no refresh
43
+ * token. Throws if the refresh itself fails.
44
+ */
45
+ refreshSession: () => Promise<void>;
46
+ }
47
+ /** Manages the customer session: login/signup/logout and the `me` query. */
48
+ declare function useCustomerSession(): CustomerSessionApi;
49
+
50
+ /** Options accepted by every read hook to override the per-call auth context. */
51
+ interface QueryOpts {
52
+ auth?: AuthContext;
53
+ }
54
+
55
+ /** Fetches one product. Default auth: customer if logged in, else anonymous. */
56
+ declare function useProduct(productId: string, options?: QueryOpts): UseQueryResult<Product>;
57
+ /** Fetches one page of products. */
58
+ declare function useProducts(params?: {
59
+ pageNumber?: number;
60
+ pageSize?: number;
61
+ }, options?: QueryOpts): UseQueryResult<PaginatedItems<Product>>;
62
+ /** Infinite product list — terminates on `hasNextPage=false`. */
63
+ declare function useProductsInfinite(params?: {
64
+ pageSize?: number;
65
+ }, options?: QueryOpts): UseInfiniteQueryResult<{
66
+ pages: PaginatedItems<Product>[];
67
+ pageParams: number[];
68
+ }>;
69
+ /** Fetches one product by its `code` (URL slug). Disabled when code is empty. */
70
+ declare function useProductByCode(code: string | undefined, options?: QueryOpts): UseQueryResult<Product>;
71
+ /** Full-text product search. Disabled when query is empty/whitespace. */
72
+ declare function useProductSearch(query: string | undefined, params?: {
73
+ pageNumber?: number;
74
+ pageSize?: number;
75
+ }, options?: QueryOpts): UseQueryResult<PaginatedItems<Product>>;
76
+
77
+ /** Fetches one category. */
78
+ declare function useCategory(categoryId: string, options?: QueryOpts): UseQueryResult<Category>;
79
+ /** Fetches one page of categories. */
80
+ declare function useCategories(params?: {
81
+ pageNumber?: number;
82
+ pageSize?: number;
83
+ }, options?: QueryOpts): UseQueryResult<PaginatedItems<Category>>;
84
+ /** Infinite category list — terminates on `hasNextPage=false`. */
85
+ declare function useCategoriesInfinite(params?: {
86
+ pageSize?: number;
87
+ }, options?: QueryOpts): UseInfiniteQueryResult<{
88
+ pages: PaginatedItems<Category>[];
89
+ pageParams: number[];
90
+ }>;
91
+ /** Fetches the category tree. */
92
+ declare function useCategoryTree(rootId?: string, options?: QueryOpts): UseQueryResult<CategoryNode>;
93
+ /** One page of products in a category. Disabled when categoryId is empty. */
94
+ declare function useProductsInCategory(categoryId: string | undefined, params?: {
95
+ pageNumber?: number;
96
+ pageSize?: number;
97
+ }, options?: QueryOpts): UseQueryResult<PaginatedItems<Product>>;
98
+ /** Infinite-scroll product list for a category. Terminates on `hasNextPage=false`. */
99
+ declare function useProductsInCategoryInfinite(categoryId: string | undefined, params?: {
100
+ pageSize?: number;
101
+ }, options?: QueryOpts): UseInfiniteQueryResult<{
102
+ pages: PaginatedItems<Product>[];
103
+ pageParams: number[];
104
+ }>;
105
+
106
+ /** Fetches a cart by id. Falls back to `storage.getCartId()` when no argument is passed; disabled when neither is set. */
107
+ declare function useCart(cartId?: string, options?: QueryOpts): UseQueryResult<Cart>;
108
+ type Mut<TVars> = UseMutationResult<Cart, unknown, TVars, {
109
+ previous: Cart | undefined;
110
+ }>;
111
+ /** Cart write operations with optimistic cache updates and rollback. */
112
+ interface CartMutationsApi {
113
+ addItem: Mut<CartItemInput>;
114
+ updateItem: Mut<{
115
+ itemId: string;
116
+ patch: CartItemUpdate;
117
+ }>;
118
+ removeItem: Mut<{
119
+ itemId: string;
120
+ }>;
121
+ clear: Mut<void>;
122
+ applyCoupon: Mut<{
123
+ code: string;
124
+ }>;
125
+ removeCoupon: Mut<{
126
+ code: string;
127
+ }>;
128
+ setShippingAddress: Mut<CartAddress>;
129
+ setBillingAddress: Mut<CartAddress>;
130
+ }
131
+ /**
132
+ * Cart write operations with optimistic cache updates and rollback.
133
+ *
134
+ * `cartId` is optional — when omitted, `storage.getCartId()` is resolved at
135
+ * **mutate-time** (inside `mutationFn`/`onMutate`), so post-mount writes from
136
+ * `useActiveCart({ create: true })` work without a render race. Throws
137
+ * `EmporixError("useCartMutations: no cartId available — …")` when storage
138
+ * is still empty at mutate-time.
139
+ */
140
+ declare function useCartMutations(cartId?: string): CartMutationsApi;
141
+ /**
142
+ * Creates a cart. Auto-detects auth (customer if a token is stored, else
143
+ * anonymous). On success, persists `cartId` via `storage.setCartId` so a later
144
+ * page reload can resume the same cart with the same anonymous session, then
145
+ * invalidates `["emporix","cart"]` so `useActiveCart` re-reads storage on the
146
+ * next render.
147
+ *
148
+ * Note: the SDK's `carts.create` returns `CartCreated = { cartId, yrn }`, not
149
+ * the full `Cart`. The full cart is loaded on demand by `useCart(cartId)` /
150
+ * `useActiveCart()`.
151
+ */
152
+ declare function useCreateCart(): UseMutationResult<CartCreated, unknown, CreateCartInput | undefined>;
153
+ /**
154
+ * Resolves to "the active cart": the cart matching `storage.cartId` if one is
155
+ * present. With `create: true`, bootstraps a new cart via
156
+ * `client.carts.getCurrent({siteCode, create: true})` when storage is empty —
157
+ * useful on cart-page mounts where you want a cart unconditionally.
158
+ *
159
+ * Internally delegates to `useCart` so both hooks share the canonical
160
+ * `["emporix","cart", id, …]` cache entry — optimistic updates from
161
+ * `useCartMutations` propagate automatically.
162
+ *
163
+ * Returns `UseQueryResult<Cart | null>`. `data: null` means "no cart yet and
164
+ * create was not requested" — a deliberate signal so an empty-state can
165
+ * render without confusing it with the loading state.
166
+ */
167
+ declare function useActiveCart(opts?: {
168
+ create?: boolean;
169
+ type?: string;
170
+ legalEntityId?: string;
171
+ auth?: AuthContext;
172
+ }): UseQueryResult<Cart | null>;
173
+
174
+ /** Checkout actions bound to the stored customer session. */
175
+ interface CheckoutApi {
176
+ placeOrder: UseMutationResult<CheckoutResult, unknown, {
177
+ input: CheckoutInput;
178
+ saasToken?: string;
179
+ siteCode?: string;
180
+ }>;
181
+ placeOrderFromQuote: UseMutationResult<CheckoutResult, unknown, {
182
+ input: QuoteCheckoutInput;
183
+ saasToken?: string;
184
+ siteCode?: string;
185
+ }>;
186
+ }
187
+ /** React bindings for the checkout flow. */
188
+ declare function useCheckout(): CheckoutApi;
189
+ /** Lists frontend payment modes for the logged-in customer. */
190
+ declare function usePaymentModes(options?: {
191
+ enabled?: boolean;
192
+ }): UseQueryResult<PaymentMode[]>;
193
+
194
+ /**
195
+ * Resolves prices for `input.items` via `prices.matchByContext`. Defaults to
196
+ * the anonymous session token (context bound at anonymous-login); pass a
197
+ * customer token for personalized pricing. The SDK does not cache prices —
198
+ * control freshness via the query key / `enabled` (re-run before checkout).
199
+ */
200
+ declare function useMatchPrices(input: PriceMatchByContextInput, options?: {
201
+ enabled?: boolean;
202
+ customerToken?: string | null;
203
+ }): UseQueryResult<PriceMatch[]>;
204
+
205
+ /**
206
+ * Reads `productMedia` from the existing product query — no Media-Service
207
+ * call (those need a server-only scope). For admin/server flows, use
208
+ * `client.media.listForProduct(productId)` instead.
209
+ */
210
+ declare function useProductMedia(productId: string): {
211
+ data: Media[] | undefined;
212
+ isLoading: boolean;
213
+ error: unknown;
214
+ };
215
+
216
+ /** Segments the logged-in customer belongs to (`segment_read_own`). */
217
+ declare function useMySegments(query?: {
218
+ q?: string;
219
+ pageNumber?: number;
220
+ pageSize?: number;
221
+ }): UseQueryResult<Segment[]>;
222
+ /** Item assignments (PRODUCT + CATEGORY) across the caller's active segments. */
223
+ declare function useMySegmentItems(query?: {
224
+ q?: string;
225
+ siteCode?: string;
226
+ legalEntityId?: string;
227
+ onlyActive?: boolean;
228
+ }): UseQueryResult<SegmentItem[]>;
229
+ /** Category tree filtered to the caller's segments. */
230
+ declare function useMySegmentCategoryTree(query?: {
231
+ siteCode?: string;
232
+ legalEntityId?: string;
233
+ }): UseQueryResult<SegmentCategoryTree>;
234
+ /** Hydrated PRODUCT page for the caller's segments (single-page). */
235
+ declare function useMySegmentProducts(query?: {
236
+ q?: string;
237
+ siteCode?: string;
238
+ legalEntityId?: string;
239
+ onlyActive?: boolean;
240
+ pageNumber?: number;
241
+ pageSize?: number;
242
+ }): UseQueryResult<PaginatedItems<Product>>;
243
+ /**
244
+ * Hydrated PRODUCT pages — infinite scroll. `data.pages` is an array of
245
+ * pages; call `fetchNextPage()` to load the next one. Terminates when
246
+ * the source segment-items page is not full.
247
+ */
248
+ declare function useMySegmentProductsInfinite(query?: {
249
+ q?: string;
250
+ siteCode?: string;
251
+ legalEntityId?: string;
252
+ onlyActive?: boolean;
253
+ pageSize?: number;
254
+ }): _tanstack_react_query.UseInfiniteQueryResult<{
255
+ pages: PaginatedItems<Product>[];
256
+ pageParams: number[];
257
+ }>;
258
+ /** Hydrated CATEGORY page for the caller's segments (single-page). */
259
+ declare function useMySegmentCategories(query?: {
260
+ q?: string;
261
+ siteCode?: string;
262
+ legalEntityId?: string;
263
+ onlyActive?: boolean;
264
+ pageNumber?: number;
265
+ pageSize?: number;
266
+ }): UseQueryResult<PaginatedItems<Category>>;
267
+ /**
268
+ * Hydrated CATEGORY pages — infinite scroll. Same semantics as
269
+ * {@link useMySegmentProductsInfinite}.
270
+ */
271
+ declare function useMySegmentCategoriesInfinite(query?: {
272
+ q?: string;
273
+ siteCode?: string;
274
+ legalEntityId?: string;
275
+ onlyActive?: boolean;
276
+ pageSize?: number;
277
+ }): _tanstack_react_query.UseInfiniteQueryResult<{
278
+ pages: PaginatedItems<{
279
+ id: string;
280
+ parentId?: string | null;
281
+ localizedName: {
282
+ [key: string]: string;
283
+ };
284
+ localizedDescription?: {
285
+ [key: string]: string;
286
+ };
287
+ localizedSlug?: {
288
+ [key: string]: string;
289
+ };
290
+ name?: string;
291
+ description?: string;
292
+ code?: string;
293
+ ecn?: Array<string>;
294
+ validity?: {
295
+ from?: string;
296
+ to?: string;
297
+ };
298
+ position: number;
299
+ published: boolean;
300
+ supercategoriesIds?: Array<string>;
301
+ ownClassificationMixins?: Array<{
302
+ name: string;
303
+ schemaUrl: string;
304
+ required?: boolean;
305
+ }>;
306
+ classificationMixins?: Array<{
307
+ name: string;
308
+ mixinPath?: string;
309
+ schemaUrl: string;
310
+ required?: boolean;
311
+ sourceCategoryId?: string;
312
+ }>;
313
+ mixins?: {
314
+ [key: string]: unknown;
315
+ };
316
+ metadata: {
317
+ createdAt?: string;
318
+ modifiedAt?: string;
319
+ } & {
320
+ version?: number;
321
+ } & {
322
+ mixins?: {
323
+ [key: string]: string;
324
+ };
325
+ };
326
+ media: Array<{
327
+ id?: string;
328
+ url?: string;
329
+ contentType?: string;
330
+ metadata?: {
331
+ createdAt?: string;
332
+ modifiedAt?: string;
333
+ } & unknown;
334
+ customAttributes?: {
335
+ id?: string;
336
+ height?: number;
337
+ width?: number;
338
+ sizeKB?: number;
339
+ type?: string;
340
+ name?: string;
341
+ } & unknown;
342
+ }>;
343
+ }>[];
344
+ pageParams: number[];
345
+ }>;
346
+
347
+ /** Updates the logged-in customer's profile and invalidates the `me` query. */
348
+ declare function useUpdateCustomer(): UseMutationResult<Customer, unknown, CustomerUpdateInput>;
349
+ /**
350
+ * Changes the customer's password. No cache invalidation — no read query
351
+ * surfaces the password.
352
+ */
353
+ declare function useChangePassword(): UseMutationResult<void, unknown, PasswordChangeInput>;
354
+
355
+ /**
356
+ * Lists the logged-in customer's addresses. Disabled when no customer token
357
+ * is in storage (returns idle state, not an error).
358
+ */
359
+ declare function useCustomerAddresses(options?: QueryOpts): UseQueryResult<Address[]>;
360
+ /** Address CRUD mutations. Each invalidates `customer.addresses` on success. */
361
+ interface AddressMutationsApi {
362
+ add: UseMutationResult<Address, unknown, AddressCreateInput>;
363
+ update: UseMutationResult<Address, unknown, {
364
+ id: string;
365
+ patch: AddressUpdateInput;
366
+ }>;
367
+ remove: UseMutationResult<void, unknown, {
368
+ id: string;
369
+ }>;
370
+ }
371
+ declare function useAddressMutations(): AddressMutationsApi;
372
+
373
+ /**
374
+ * The 2-step anonymous password-reset flow. `request` triggers the reset
375
+ * email; `confirm` consumes the token + new password. Both use anonymous
376
+ * auth — the user is by definition locked out when running this flow.
377
+ */
378
+ interface PasswordResetApi {
379
+ request: UseMutationResult<void, unknown, PasswordResetRequestInput>;
380
+ confirm: UseMutationResult<void, unknown, PasswordResetConfirmInput>;
381
+ }
382
+ declare function usePasswordReset(): PasswordResetApi;
383
+
384
+ /** Lists active sites for the tenant. */
385
+ declare function useSites(options?: QueryOpts): UseQueryResult<Site[]>;
386
+ /** Convenience: the tenant's default site (the one flagged `default: true`). */
387
+ declare function useDefaultSite(options?: QueryOpts): UseQueryResult<Site>;
388
+
389
+ /**
390
+ * Returns the active site context: `{ siteCode, currency, targetLocation,
391
+ * setSite }`. In MS-2, `currency` and `targetLocation` are always `null`;
392
+ * they auto-populate in MS-4. `setSite(code)` is sync void in MS-2; it
393
+ * becomes async in MS-3 (PATCHing `/session-context/{tenant}/me/context`).
394
+ */
395
+ declare function useSiteContext(): SiteContextValue;
396
+
397
+ /** Lists the legal entities the calling customer is assigned to. */
398
+ declare function useMyCompanies(): UseQueryResult<LegalEntity[]>;
399
+
400
+ /** Fetches one legal entity by id. Disabled until a customer token is stored. */
401
+ declare function useCompany(legalEntityId: string | undefined): UseQueryResult<LegalEntity>;
402
+
403
+ /** Lists contact assignments for one legal entity. */
404
+ declare function useCompanyContacts(legalEntityId: string | undefined): UseQueryResult<ContactAssignment[]>;
405
+
406
+ /** Lists locations owned by one legal entity. */
407
+ declare function useCompanyLocations(legalEntityId: string | undefined): UseQueryResult<Location[]>;
408
+
409
+ /** Lists IAM customer-groups for one legal entity. */
410
+ declare function useCompanyGroups(legalEntityId: string | undefined): UseQueryResult<IamGroup[]>;
411
+
412
+ declare function useCreateCompany(): UseMutationResult<{
413
+ id: string;
414
+ }, unknown, LegalEntityCreate>;
415
+ declare function useUpdateCompany(): UseMutationResult<LegalEntity, unknown, {
416
+ id: string;
417
+ patch: LegalEntityUpdate;
418
+ }>;
419
+ declare function useDeleteCompany(): UseMutationResult<void, unknown, string>;
420
+ declare function useAssignContact(): UseMutationResult<{
421
+ id: string;
422
+ }, unknown, ContactAssignmentCreate>;
423
+ declare function useUpdateContactAssignment(): UseMutationResult<ContactAssignment, unknown, {
424
+ id: string;
425
+ patch: ContactAssignmentUpdate;
426
+ }>;
427
+ declare function useUnassignContact(): UseMutationResult<void, unknown, string>;
428
+ declare function useCreateLocation(): UseMutationResult<{
429
+ id: string;
430
+ }, unknown, LocationCreate>;
431
+ declare function useUpdateLocation(): UseMutationResult<Location, unknown, {
432
+ id: string;
433
+ patch: LocationUpdate;
434
+ }>;
435
+ declare function useDeleteLocation(): UseMutationResult<void, unknown, string>;
436
+
437
+ interface CompanySwitcherApi {
438
+ companies: LegalEntity[];
439
+ active: LegalEntity | null;
440
+ status: "idle" | "loading" | "switching" | "error";
441
+ switch: (legalEntityId: string) => Promise<void>;
442
+ clear: () => Promise<void>;
443
+ }
444
+ /** UI-friendly wrapper around useActiveCompany — exposes switch/clear pair. */
445
+ declare function useCompanySwitcher(): CompanySwitcherApi;
446
+
447
+ /** Options for `useMyOrders`. Passing `legalEntityId: null` disables the active-company auto-default. */
448
+ interface UseMyOrdersOptions {
449
+ pageNumber?: number;
450
+ pageSize?: number;
451
+ status?: OrderStatus;
452
+ /** `undefined` = default from `useActiveCompany`. `null` = no filter. */
453
+ legalEntityId?: string | null;
454
+ saasToken?: string;
455
+ }
456
+ /** Paginated read of the customer's own orders. Disabled without a customer token. */
457
+ declare function useMyOrders(options?: UseMyOrdersOptions): UseQueryResult<PaginatedItems<Order>>;
458
+
459
+ interface UseMyOrdersInfiniteOptions {
460
+ pageSize?: number;
461
+ status?: OrderStatus;
462
+ legalEntityId?: string | null;
463
+ saasToken?: string;
464
+ }
465
+ /** Infinite paginated read of customer orders. Same defaulting rules as useMyOrders. */
466
+ declare function useMyOrdersInfinite(options?: UseMyOrdersInfiniteOptions): UseInfiniteQueryResult<{
467
+ pages: PaginatedItems<Order>[];
468
+ pageParams: number[];
469
+ }>;
470
+
471
+ interface UseOrderOptions {
472
+ saasToken?: string;
473
+ }
474
+ /** Single-order read by id. Disabled without a customer token or when orderId is undefined. */
475
+ declare function useOrder(orderId: string | undefined, options?: UseOrderOptions): UseQueryResult<Order>;
476
+
477
+ interface UseCancelOrderVars {
478
+ orderId: string;
479
+ saasToken?: string;
480
+ }
481
+ /** Cancels (transitions to DECLINED) a customer's order. Invalidates ["emporix","orders"] on success. */
482
+ declare function useCancelOrder(): UseMutationResult<void, unknown, string | UseCancelOrderVars>;
483
+
484
+ interface UseOrderTransitionVars {
485
+ orderId: string;
486
+ status: OrderStatus;
487
+ comment?: string;
488
+ saasToken?: string;
489
+ }
490
+ /** Generic status transition. Server enforces legality. Invalidates ["emporix","orders"] on success. */
491
+ declare function useOrderTransition(): UseMutationResult<void, unknown, UseOrderTransitionVars>;
492
+
493
+ interface UseReorderVars {
494
+ orderId: string;
495
+ saasToken?: string;
496
+ }
497
+ interface UseReorderResult {
498
+ added: number;
499
+ errors: unknown[];
500
+ }
501
+ /**
502
+ * Re-populates the active cart from a past order via a single
503
+ * `cart.addItemsBatch` call. Best-effort: item-level failures land in
504
+ * `errors[]` instead of throwing; partial-success result shape stays
505
+ * `{ added, errors }`.
506
+ *
507
+ * Emporix's batch endpoint caps at 200 items per request. Orders with more
508
+ * line-items are not supported here — extend with chunking if a real use
509
+ * case appears.
510
+ */
511
+ declare function useReorder(): UseMutationResult<UseReorderResult, unknown, UseReorderVars>;
512
+
513
+ /** Service-account read of a single sales-order. Disabled when `auth` is undefined. */
514
+ declare function useSalesOrder(orderId: string | undefined, authCtx: AuthContext | undefined): UseQueryResult<Order>;
515
+
516
+ interface UseUpdateSalesOrderVars {
517
+ orderId: string;
518
+ patch: SalesOrderPatch;
519
+ auth: AuthContext;
520
+ recalculate?: boolean;
521
+ }
522
+ /**
523
+ * Service-account update of a sales-order. Invalidates both
524
+ * ["emporix","salesorders",id] and ["emporix","orders",id] (the customer-view
525
+ * cache for the same order) on success.
526
+ */
527
+ declare function useUpdateSalesOrder(): UseMutationResult<Order, unknown, UseUpdateSalesOrderVars>;
528
+
529
+ export { type AddressMutationsApi, type CartMutationsApi, type CheckoutApi, type CompanySwitcherApi, type CustomerSessionApi, type PasswordResetApi, type UseCancelOrderVars, type UseMyOrdersInfiniteOptions, type UseMyOrdersOptions, type UseOrderOptions, type UseOrderTransitionVars, type UseReorderResult, type UseReorderVars, type UseUpdateSalesOrderVars, useActiveCart, useAddressMutations, useAssignContact, useCancelOrder, useCart, useCartMutations, useCategories, useCategoriesInfinite, useCategory, useCategoryTree, useChangePassword, useCheckout, useCompany, useCompanyContacts, useCompanyGroups, useCompanyLocations, useCompanySwitcher, useCreateCart, useCreateCompany, useCreateLocation, useCustomerAddresses, useCustomerSession, useDefaultSite, useDeleteCompany, useDeleteLocation, useMatchPrices, useMyCompanies, useMyOrders, useMyOrdersInfinite, useMySegmentCategories, useMySegmentCategoriesInfinite, useMySegmentCategoryTree, useMySegmentItems, useMySegmentProducts, useMySegmentProductsInfinite, useMySegments, useOrder, useOrderTransition, usePasswordReset, usePaymentModes, useProduct, useProductByCode, useProductMedia, useProductSearch, useProducts, useProductsInCategory, useProductsInCategoryInfinite, useProductsInfinite, useReorder, useSalesOrder, useSiteContext, useSites, useUnassignContact, useUpdateCompany, useUpdateContactAssignment, useUpdateCustomer, useUpdateLocation, useUpdateSalesOrder };
package/dist/hooks.js ADDED
@@ -0,0 +1,5 @@
1
+ export { useActiveCart, useAddressMutations, useAssignContact, useCancelOrder, useCart, useCartMutations, useCategories, useCategoriesInfinite, useCategory, useCategoryTree, useChangePassword, useCheckout, useCompany, useCompanyContacts, useCompanyGroups, useCompanyLocations, useCompanySwitcher, useCreateCart, useCreateCompany, useCreateLocation, useCustomerAddresses, useCustomerSession, useDefaultSite, useDeleteCompany, useDeleteLocation, useMatchPrices, useMyCompanies, useMyOrders, useMyOrdersInfinite, useMySegmentCategories, useMySegmentCategoriesInfinite, useMySegmentCategoryTree, useMySegmentItems, useMySegmentProducts, useMySegmentProductsInfinite, useMySegments, useOrder, useOrderTransition, usePasswordReset, usePaymentModes, useProduct, useProductByCode, useProductMedia, useProductSearch, useProducts, useProductsInCategory, useProductsInCategoryInfinite, useProductsInfinite, useReorder, useSalesOrder, useSiteContext, useSites, useUnassignContact, useUpdateCompany, useUpdateContactAssignment, useUpdateCustomer, useUpdateLocation, useUpdateSalesOrder } from './chunk-N3VDSKCT.js';
2
+ import './chunk-D43CSHK3.js';
3
+ import './chunk-FBQY2N7S.js';
4
+ //# sourceMappingURL=hooks.js.map
5
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"hooks.js"}