@ecomiq/storefront 0.1.1 → 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.
package/dist/nextjs.d.ts CHANGED
@@ -1,3205 +1,41 @@
1
- import * as zod from 'zod';
2
- import { z } from 'zod';
3
- import { StorefrontSettings, StorefrontProductsParamsInput, StorefrontProductsResponse, StorefrontProductDetail, StorefrontCollection, StorefrontCollectionDetail, StorefrontPageListItem, StorefrontPageDetail, CartBuyerRequest, CartResponse, CartAddressesRequest, CartCheckoutReadResponse, ShippingOptionsResponse, CartShippingMethodPutRequest, CartCouponRequest, CartCreateRequest, CartCheckoutRequest, CartCheckoutResponse, CartPaymentReceiptResponse, CartPaymentMethodsResponse } from '@ecomiq/storefront/core';
4
- export { E as EcomiqProvider, e as EcomiqProviderProps, O as OptionGroup, P as ProductVariantSelector, h as ProductVariantSelectorProps, j as ProductVariantSelectorRenderProps, i as SelectedOptions, f as findStorefrontCmsPageBySlug, g as useStore } from './find-storefront-cms-page-c8CktSz7.js';
5
- import * as _tanstack_react_query from '@tanstack/react-query';
6
- import { StorefrontProductsParamsInput as StorefrontProductsParamsInput$1, CartBuyerRequest as CartBuyerRequest$1, CartAddressesRequest as CartAddressesRequest$1, CartItemRequest, CartCheckoutRequest as CartCheckoutRequest$1, CartShippingMethodPutRequest as CartShippingMethodPutRequest$1, CartCouponRequest as CartCouponRequest$1 } from '@ecomiq/storefront/react';
7
- export { m as StorefrontCollection, e as StorefrontProduct, g as StorefrontProductDetail, a as StorefrontProductsParamsInput, f as StorefrontProductsResponse } from './store-to_vuWRF.js';
8
- import 'zustand';
1
+ import { P as PublicStoreSettingsSource, a as PublicStoreResult, F as FetchPublicStoreSettingsOptions } from './index-C-xqLr1g.js';
2
+ export { aM as CartItem, aN as CheckoutCustomerLocal, aw as CustomerAddress, aq as CustomerAddressSchema, ax as CustomerAddressUpsert, ar as CustomerAddressUpsertSchema, ay as CustomerMe, as as CustomerMeSchema, aF as CustomerOrderDetail, aF as CustomerOrderDetailDto, aD as CustomerOrderDetailSchema, aE as CustomerOrderListItem, aE as CustomerOrderListItemDto, aC as CustomerOrderListItemSchema, az as CustomerProfilePatch, at as CustomerProfilePatchSchema, av as CustomerRegisterRequest, aj as CustomerRegisterRequestSchema, W as ECOMIQ_CLIENTS_STORE_KV_BINDING, E as EcomiqProvider, h as EcomiqProviderProps, l as EcomiqSignInCredentials, aQ as OptionGroup, aO as ProductVariantSelector, aP as ProductVariantSelectorProps, aS as ProductVariantSelectorRenderProps, Q as QueryProvider, aR as SelectedOptions, H as StoreApiClient, R as StoreApiGetOptions, f as StorefrontAuthClientInstance, S as StorefrontAuthProvider, t as StorefrontCollection, v as StorefrontPageDetail, o as StorefrontProduct, p as StorefrontProductDetail, z as StorefrontProductSchema, r as StorefrontProductsParamsInput, q as StorefrontProductsResponse, A as StorefrontProductsResponseSchema, g as StorefrontSessionUser, n as StorefrontSettings, y as StorefrontSettingsSchema, w as StorefrontVariant, ac as addCartCoupon, C as applyServerRequestOriginFromHeaders, X as buildStorefrontKvSnapshotKey, Y as buildStorefrontKvSnapshotKeyFromStoreKey, af as checkoutCart, ae as createCart, al as createCustomerAddress, O as createStoreApiClient, au as customerMeToProfilePatch, an as deleteCustomerAddress, i as ecomiqOAuthPassword, j as ecomiqOAuthPasswordClient, B as fetchPublicStoreSettings, m as findStorefrontCmsPageBySlug, x as formatCurrency, a8 as getCart, a9 as getCartCheckout, ah as getCartPaymentMethods, ak as getCustomerAddresses, ao as getCustomerMe, aB as getCustomerOrder, aA as getCustomerOrders, aG as getSharedOrderDraft, aa as getShippingOptions, M as getStoreApiBaseUrl, N as getStoreApiClient, a2 as getStorefrontCollectionBySlug, a1 as getStorefrontCollections, a4 as getStorefrontPageBySlug, a5 as getStorefrontPagePreview, a3 as getStorefrontPages, a0 as getStorefrontProductBySlug, $ as getStorefrontProducts, T as getStorefrontSettings, U as getStorefrontSettingsFromKv, V as getStorefrontSettingsFromKvByStoreKey, G as isCartNotActiveApiError, Z as normalizeStoreHost, a7 as patchCartAddresses, a6 as patchCartBuyer, ap as patchCustomer, ab as putCartShippingMethod, ai as registerCustomer, ad as removeCartCoupon, D as resolvePublicStoreSettingsSource, _ as resolveStorefrontSettingsHost, L as setClientStoreId, J as setServerRequestOrigin, K as setServerStoreId, k as signInWithEcomiqCredentials, I as storeApiClient, s as storefrontAccessTokenNeedsRefresh, c as storefrontSessionEndsSoon, am as updateCustomerAddress, ag as uploadPaymentReceipt, aL as useCart, b as usePublicStore, u as useStore, aK as useStoreCart, aI as useStoreCollections, aJ as useStorePages, aH as useStoreProducts, d as useStorefrontAuthClient, e as useStorefrontSession } from './index-C-xqLr1g.js';
3
+ export { S as StoreProxyHandlerConfig, h as handleStoreProxyRequest } from './store-proxy-handler-CNzKlTFA.js';
4
+ import '@ecomiq/storefront/core';
5
+ import 'zod';
9
6
  import 'react';
10
- import 'better-auth/react';
7
+ import '@tanstack/react-query';
8
+ import '@ecomiq/storefront/react';
9
+ import 'zustand';
10
+ import 'zustand/middleware';
11
11
  import 'better-auth';
12
+ import 'better-auth/client';
13
+ import 'better-auth/react';
12
14
 
13
15
  /**
14
16
  * Devuelve el host completo de la request (ej. "plata950.ecomiq.pe", "localhost:3000").
15
- * Se pasa a getPublicStore(host) para que use la misma base en las llamadas al proxy.
16
17
  */
17
18
  declare function getHostname(): Promise<string | null>;
18
19
 
19
- /** Origen de `StorefrontSettings`: API interna o Cloudflare KV (mismo contrato tras validar con Zod). */
20
- type PublicStoreSettingsSource = "api" | "kv";
21
- /**
22
- * Resuelve el origen desde `process.env.PUBLIC_STORE_SETTINGS_SOURCE` (`api` | `kv`, por defecto `api`).
23
- * Úsalo en GitHub Actions / wrangler `--var` para elegir la fuente en runtime del Worker.
24
- *
25
- * Vive fuera de un archivo `"use server"`: Next.js exige que todas las exportaciones de función ahí sean async.
26
- */
27
- declare function resolvePublicStoreSettingsSource(envValue?: string | undefined): PublicStoreSettingsSource;
28
-
29
- /** Tipo de retorno de `getPublicStore`. */
30
- type PublicStoreResult = {
31
- data: StorefrontSettings | null;
32
- error: {
33
- message: string;
34
- statusCode: number;
35
- isNotFound?: boolean;
36
- subdomain?: string;
37
- } | null;
38
- };
39
20
  type GetPublicStoreOptions = {
40
21
  /** Si se omite, se usa `resolvePublicStoreSettingsSource()` (variable de entorno). */
41
22
  source?: PublicStoreSettingsSource;
42
23
  };
43
- /**
44
- * Obtiene la tienda pública: vía proxy `/api/store` o vía KV (`getCloudflareContext` + binding `ecomiq_clients_store`),
45
- * según `options.source` o `PUBLIC_STORE_SETTINGS_SOURCE`.
46
- * Usa el mismo criterio slug vs dominio que KV (`resolveStorefrontSettingsHost`).
47
- */
48
- declare function getPublicStore(options?: GetPublicStoreOptions): Promise<PublicStoreResult>;
49
-
50
- /**
51
- * Respuesta ProblemDetails / validation típica de la API cuando el carrito ya no existe o no está activo.
52
- */
53
- declare function isCartNotActiveApiError(error: unknown): boolean;
54
24
 
55
25
  /**
56
- * Cliente para el proxy Next.js (`/api/store/*`), que a su vez llama al API Ecomiq con headers
57
- * definidos allí (`Authorization`, `X-Store-Id`, etc.). Ecomiq upstream no recibe `Cookie` del navegador.
26
+ * Obtiene la tienda pública (Next.js App Router).
27
+ * Usa `headers()` para resolver host y origen del proxy.
58
28
  *
59
- * - En browser: base = `/api/store` + `credentials: "include"`. Cada request debe llevar `X-Store-Id`
60
- * (`setClientStoreId` desde `EcomiqProvider`); el proxy no resuelve tienda sin ese header.
61
- * - En server: URL absoluta vía `setServerRequestOrigin()` y `X-Store-Id` vía `setServerStoreId()` tras
62
- * `getPublicStore` (settings vía upstream o KV, nunca el proxy sin id).
63
- */
64
- /**
65
- * Inyectar en server para que las llamadas al proxy usen el mismo origen que la request.
66
- * Ejemplo en la app: setServerRequestOrigin(getRequestOrigin) con getRequestOrigin usando headers().
67
- */
68
- declare function setServerRequestOrigin(getter: string | null): void;
69
- /** Inyectar en server el id de tienda ya resuelto (p. ej. tras `getPublicStore`). */
70
- declare function setServerStoreId(storeId: string | null): void;
71
- /** Inyectar en el cliente el id de tienda (p. ej. desde `EcomiqProvider` con el payload de layout). */
72
- declare function setClientStoreId(storeId: string | null): void;
73
- /**
74
- * Resuelve la URL base del API de store.
75
- * En server usa el getter inyectado; en browser devuelve path relativo.
76
- */
77
- declare function getStoreApiBaseUrl(): Promise<string>;
78
- /**
79
- * Crea una instancia del cliente con la base URL indicada.
80
- * Para obtener la base correcta (sobre todo en server) usar getStoreApiClient().
81
- */
82
- declare function createStoreApiClient(baseUrl: string): StoreApiClient;
83
- /**
84
- * Devuelve una instancia del cliente con la base URL resuelta (misma origen en server).
85
- * Usar este en servicios en lugar del singleton.
86
- */
87
- declare function getStoreApiClient(): Promise<StoreApiClient>;
88
- /** Opciones de request al proxy /api/store (se reenvían al upstream salvo las filtradas por el handler). */
89
- type StoreApiGetOptions = {
90
- /** Header `X-Store-Id` (prioridad sobre los setters de runtime). */
91
- xStoreId?: string;
92
- /** Header X-Store-Domain para que el proxy resuelva la tienda cuando aún no hay `X-Store-Id`. */
93
- xStoreDomain?: string;
94
- xCartId?: string;
95
- /**
96
- * Bearer hacia `/api/store`. El proxy reenvía ese `Authorization` a Ecomiq (API privada solo acepta Bearer).
97
- * Omitir cuando el navegador use solo la cookie HttpOnly acotada a `/api/store`.
98
- */
99
- bearerToken?: string;
100
- /**
101
- * Cache key para el cache incremental.
102
- */
103
- cacheKey?: string;
104
- /**
105
- * Fuerza lectura fresca en Next/server. Usar cuando el backend ya aplica cache-aside.
106
- */
107
- noStore?: boolean;
108
- };
109
- declare class StoreApiClient {
110
- private readonly baseUrl;
111
- constructor(baseUrl?: string);
112
- private request;
113
- get<T>(path: string, options?: StoreApiGetOptions): Promise<T>;
114
- post<T>(path: string, data?: unknown, options?: StoreApiGetOptions): Promise<T>;
115
- patch<T>(path: string, data?: unknown, options?: StoreApiGetOptions): Promise<T>;
116
- put<T>(path: string, data?: unknown, options?: StoreApiGetOptions): Promise<T>;
117
- delete<T>(path: string, options?: StoreApiGetOptions): Promise<T>;
118
- }
119
- /** Cliente por defecto (base relativa). En server preferir getStoreApiClient(). */
120
- declare const storeApiClient: StoreApiClient;
121
-
122
- /**
123
- * Obtiene la configuración de la tienda vía proxy /api/store.
124
- * Solo para esta API se envía X-Store-Domain con el subdomain cuando no hay cookie.
125
- */
126
- declare function getStorefrontSettings(subdomain: string, cacheKey?: string): Promise<StorefrontSettings>;
127
-
128
- /** Debe coincidir con el `binding` en wrangler.jsonc (`kv_namespaces`). */
129
- declare const ECOMIQ_CLIENTS_STORE_KV_BINDING: "ecomiq_clients_store";
130
- /** Host sin puerto, minúsculas, sin `www.`. */
131
- declare function normalizeStoreHost(hostHeader: string): string;
132
- /**
133
- * Identificador de tienda a partir del `Host`: slug en `*.ecomiq.app`, FQDN en dominio propio.
134
- * Misma semántica que el sufijo de `buildStorefrontKvSnapshotKey` (sin el prefijo KV).
135
- */
136
- declare function resolveStorefrontSettingsHost(hostHeader: string): string;
137
- /**
138
- * Clave KV del snapshot de tienda.
139
- * - `*.ecomiq.app` → `storefront:snapshots:store:<slug>` (todo lo que va antes de `.ecomiq.app`, p. ej. `plata950`).
140
- * - Dominio propio (p. ej. `plata950.com`) → `storefront:snapshots:store:<dominio completo>`.
141
- */
142
- declare function buildStorefrontKvSnapshotKey(hostHeader: string): string;
143
- /**
144
- * Lee settings desde KV (`ecomiq_clients_store`) usando la clave según el host.
145
- */
146
- declare function getStorefrontSettingsFromKv(hostHeader: string): Promise<StorefrontSettings>;
147
-
148
- /**
149
- * Servicio de productos vía proxy /api/store.
150
- * El proxy resuelve la tienda por cookie.
151
- */
152
- declare function getStorefrontProducts(params?: StorefrontProductsParamsInput, cacheKey?: string): Promise<StorefrontProductsResponse>;
153
- declare function getStorefrontProductBySlug(slug: string): Promise<StorefrontProductDetail>;
154
-
155
- /**
156
- * Servicio de colecciones vía proxy /api/store.
157
- * GET /v1/collections.
29
+ * Identificador de tienda:
30
+ * 1. `slugStore` en `ecomiq.config.js` (prioridad en localhost).
31
+ * 2. Si no, deriva del header `Host`.
158
32
  */
159
- declare function getStorefrontCollections(): Promise<StorefrontCollection[]>;
160
- declare function getStorefrontCollectionBySlug(slug: string): Promise<StorefrontCollectionDetail>;
161
-
162
- /**
163
- * Servicio de páginas vía proxy /api/store.
164
- * GET /v1/pages y GET /v1/pages/{slug}.
165
- */
166
- declare function getStorefrontPages(): Promise<StorefrontPageListItem[]>;
167
- declare function getStorefrontPageBySlug(slug: string): Promise<StorefrontPageDetail>;
168
- declare function getStorefrontPagePreview(slug: string, token: string): Promise<StorefrontPageDetail>;
169
-
170
- /**
171
- * Servicio de carrito vía proxy /api/store.
172
- * El proxy resuelve el carrito/tienda por cookie o contexto.
173
- */
174
- declare function createCart(data: CartCreateRequest): Promise<CartResponse>;
175
- declare function getCart(cartId?: string): Promise<CartResponse>;
176
- declare function patchCartBuyer(data: CartBuyerRequest, cartId?: string): Promise<CartResponse>;
177
- declare function patchCartAddresses(data: CartAddressesRequest, cartId?: string): Promise<CartResponse>;
178
- declare function addCartCoupon(cartId: string, data: CartCouponRequest): Promise<CartResponse>;
179
- declare function removeCartCoupon(cartId: string, code: string): Promise<CartResponse>;
180
- /**
181
- * Inicializa checkout de pago (POST /v1/carts/checkout).
182
- * Body: { paymentMethodCode, externalRef }
183
- */
184
- declare function checkoutCart(data: CartCheckoutRequest, cartId?: string): Promise<CartCheckoutResponse>;
185
- declare function uploadPaymentReceipt(cartId: string, file: File): Promise<CartPaymentReceiptResponse>;
186
- /**
187
- * GET /carts/{cartId}/checkout — carrito + métodos de pago (vista checkout).
188
- */
189
- declare function getCartCheckout(cartId: string): Promise<CartCheckoutReadResponse>;
190
- declare function getShippingOptions(cartId: string, postalCode: string): Promise<ShippingOptionsResponse>;
191
- declare function putCartShippingMethod(cartId: string, data: CartShippingMethodPutRequest): Promise<CartResponse>;
192
- /**
193
- * Solo métodos de pago (misma respuesta que {@link getCartCheckout}; evita duplicar llamadas si ya tienes el checkout).
194
- */
195
- declare function getCartPaymentMethods(cartId?: string): Promise<CartPaymentMethodsResponse>;
196
-
197
- declare const CustomerRegisterRequestSchema: z.ZodObject<{
198
- email: z.ZodString;
199
- firstName: z.ZodString;
200
- lastName: z.ZodString;
201
- countryIsoCode: z.ZodString;
202
- password: z.ZodString;
203
- phone: z.ZodOptional<z.ZodString>;
204
- }, "strip", z.ZodTypeAny, {
205
- email: string;
206
- firstName: string;
207
- lastName: string;
208
- password: string;
209
- countryIsoCode: string;
210
- phone?: string | undefined;
211
- }, {
212
- email: string;
213
- firstName: string;
214
- lastName: string;
215
- password: string;
216
- countryIsoCode: string;
217
- phone?: string | undefined;
218
- }>;
219
- type CustomerRegisterRequest = z.infer<typeof CustomerRegisterRequestSchema>;
220
- /** GET/POST/PUT cuerpo de dirección (upstream `customer/me/addresses` vía proxy). */
221
- declare const CustomerAddressSchema: z.ZodObject<{
222
- /** Presente en listados cuando el upstream expone el id para PUT/DELETE. */
223
- id: z.ZodOptional<z.ZodString>;
224
- addressKey: z.ZodString;
225
- countryIsoCode: z.ZodString;
226
- addressLine: z.ZodString;
227
- addressNumber: z.ZodString;
228
- department: z.ZodString;
229
- province: z.ZodString;
230
- district: z.ZodString;
231
- phone: z.ZodString;
232
- cellPhone: z.ZodString;
233
- postalCode: z.ZodString;
234
- reference: z.ZodString;
235
- latitude: z.ZodNullable<z.ZodNumber>;
236
- longitude: z.ZodNullable<z.ZodNumber>;
237
- isDefault: z.ZodBoolean;
238
- }, "strip", z.ZodTypeAny, {
239
- isDefault: boolean;
240
- phone: string;
241
- province: string;
242
- postalCode: string;
243
- district: string;
244
- latitude: number | null;
245
- longitude: number | null;
246
- reference: string;
247
- countryIsoCode: string;
248
- addressKey: string;
249
- addressLine: string;
250
- addressNumber: string;
251
- cellPhone: string;
252
- department: string;
253
- id?: string | undefined;
254
- }, {
255
- isDefault: boolean;
256
- phone: string;
257
- province: string;
258
- postalCode: string;
259
- district: string;
260
- latitude: number | null;
261
- longitude: number | null;
262
- reference: string;
263
- countryIsoCode: string;
264
- addressKey: string;
265
- addressLine: string;
266
- addressNumber: string;
267
- cellPhone: string;
268
- department: string;
269
- id?: string | undefined;
270
- }>;
271
- type CustomerAddress = z.infer<typeof CustomerAddressSchema>;
272
- declare const CustomerAddressUpsertSchema: z.ZodObject<Omit<{
273
- /** Presente en listados cuando el upstream expone el id para PUT/DELETE. */
274
- id: z.ZodOptional<z.ZodString>;
275
- addressKey: z.ZodString;
276
- countryIsoCode: z.ZodString;
277
- addressLine: z.ZodString;
278
- addressNumber: z.ZodString;
279
- department: z.ZodString;
280
- province: z.ZodString;
281
- district: z.ZodString;
282
- phone: z.ZodString;
283
- cellPhone: z.ZodString;
284
- postalCode: z.ZodString;
285
- reference: z.ZodString;
286
- latitude: z.ZodNullable<z.ZodNumber>;
287
- longitude: z.ZodNullable<z.ZodNumber>;
288
- isDefault: z.ZodBoolean;
289
- }, "id">, "strip", z.ZodTypeAny, {
290
- isDefault: boolean;
291
- phone: string;
292
- province: string;
293
- postalCode: string;
294
- district: string;
295
- latitude: number | null;
296
- longitude: number | null;
297
- reference: string;
298
- countryIsoCode: string;
299
- addressKey: string;
300
- addressLine: string;
301
- addressNumber: string;
302
- cellPhone: string;
303
- department: string;
304
- }, {
305
- isDefault: boolean;
306
- phone: string;
307
- province: string;
308
- postalCode: string;
309
- district: string;
310
- latitude: number | null;
311
- longitude: number | null;
312
- reference: string;
313
- countryIsoCode: string;
314
- addressKey: string;
315
- addressLine: string;
316
- addressNumber: string;
317
- cellPhone: string;
318
- department: string;
319
- }>;
320
- type CustomerAddressUpsert = z.infer<typeof CustomerAddressUpsertSchema>;
321
- /** GET /v1/customer/me (upstream vía proxy `/api/store/customer/me`). */
322
- declare const CustomerMeSchema: z.ZodObject<{
323
- id: z.ZodString;
324
- storeId: z.ZodString;
325
- email: z.ZodString;
326
- firstName: z.ZodString;
327
- lastName: z.ZodString;
328
- phone: z.ZodString;
329
- identificationNumber: z.ZodNullable<z.ZodString>;
330
- identificationType: z.ZodNullable<z.ZodString>;
331
- entityName: z.ZodNullable<z.ZodString>;
332
- dateOfBirth: z.ZodNullable<z.ZodString>;
333
- gender: z.ZodNullable<z.ZodString>;
334
- countryIsoCode: z.ZodString;
335
- role: z.ZodNullable<z.ZodString>;
336
- companyName: z.ZodNullable<z.ZodString>;
337
- consent: z.ZodBoolean;
338
- userId: z.ZodString;
339
- customerType: z.ZodString;
340
- status: z.ZodString;
341
- entityIdentificationNumber: z.ZodNullable<z.ZodString>;
342
- defaultAddressId: z.ZodNullable<z.ZodString>;
343
- metadata: z.ZodNullable<z.ZodUnknown>;
344
- totalOrders: z.ZodNumber;
345
- avgOrders: z.ZodNumber;
346
- lastOrderId: z.ZodNullable<z.ZodString>;
347
- lastOrderDate: z.ZodNullable<z.ZodString>;
348
- loyaltyPoints: z.ZodNumber;
349
- addresses: z.ZodArray<z.ZodObject<{
350
- /** Presente en listados cuando el upstream expone el id para PUT/DELETE. */
351
- id: z.ZodOptional<z.ZodString>;
352
- addressKey: z.ZodString;
353
- countryIsoCode: z.ZodString;
354
- addressLine: z.ZodString;
355
- addressNumber: z.ZodString;
356
- department: z.ZodString;
357
- province: z.ZodString;
358
- district: z.ZodString;
359
- phone: z.ZodString;
360
- cellPhone: z.ZodString;
361
- postalCode: z.ZodString;
362
- reference: z.ZodString;
363
- latitude: z.ZodNullable<z.ZodNumber>;
364
- longitude: z.ZodNullable<z.ZodNumber>;
365
- isDefault: z.ZodBoolean;
366
- }, "strip", z.ZodTypeAny, {
367
- isDefault: boolean;
368
- phone: string;
369
- province: string;
370
- postalCode: string;
371
- district: string;
372
- latitude: number | null;
373
- longitude: number | null;
374
- reference: string;
375
- countryIsoCode: string;
376
- addressKey: string;
377
- addressLine: string;
378
- addressNumber: string;
379
- cellPhone: string;
380
- department: string;
381
- id?: string | undefined;
382
- }, {
383
- isDefault: boolean;
384
- phone: string;
385
- province: string;
386
- postalCode: string;
387
- district: string;
388
- latitude: number | null;
389
- longitude: number | null;
390
- reference: string;
391
- countryIsoCode: string;
392
- addressKey: string;
393
- addressLine: string;
394
- addressNumber: string;
395
- cellPhone: string;
396
- department: string;
397
- id?: string | undefined;
398
- }>, "many">;
399
- createdOn: z.ZodString;
400
- updatedOn: z.ZodNullable<z.ZodString>;
401
- }, "strip", z.ZodTypeAny, {
402
- id: string;
403
- storeId: string;
404
- status: string;
405
- createdOn: string;
406
- updatedOn: string | null;
407
- phone: string;
408
- email: string;
409
- firstName: string;
410
- lastName: string;
411
- userId: string;
412
- role: string | null;
413
- countryIsoCode: string;
414
- addresses: {
415
- isDefault: boolean;
416
- phone: string;
417
- province: string;
418
- postalCode: string;
419
- district: string;
420
- latitude: number | null;
421
- longitude: number | null;
422
- reference: string;
423
- countryIsoCode: string;
424
- addressKey: string;
425
- addressLine: string;
426
- addressNumber: string;
427
- cellPhone: string;
428
- department: string;
429
- id?: string | undefined;
430
- }[];
431
- identificationType: string | null;
432
- identificationNumber: string | null;
433
- entityName: string | null;
434
- entityIdentificationNumber: string | null;
435
- gender: string | null;
436
- companyName: string | null;
437
- dateOfBirth: string | null;
438
- consent: boolean;
439
- customerType: string;
440
- defaultAddressId: string | null;
441
- totalOrders: number;
442
- avgOrders: number;
443
- lastOrderId: string | null;
444
- lastOrderDate: string | null;
445
- loyaltyPoints: number;
446
- metadata?: unknown;
447
- }, {
448
- id: string;
449
- storeId: string;
450
- status: string;
451
- createdOn: string;
452
- updatedOn: string | null;
453
- phone: string;
454
- email: string;
455
- firstName: string;
456
- lastName: string;
457
- userId: string;
458
- role: string | null;
459
- countryIsoCode: string;
460
- addresses: {
461
- isDefault: boolean;
462
- phone: string;
463
- province: string;
464
- postalCode: string;
465
- district: string;
466
- latitude: number | null;
467
- longitude: number | null;
468
- reference: string;
469
- countryIsoCode: string;
470
- addressKey: string;
471
- addressLine: string;
472
- addressNumber: string;
473
- cellPhone: string;
474
- department: string;
475
- id?: string | undefined;
476
- }[];
477
- identificationType: string | null;
478
- identificationNumber: string | null;
479
- entityName: string | null;
480
- entityIdentificationNumber: string | null;
481
- gender: string | null;
482
- companyName: string | null;
483
- dateOfBirth: string | null;
484
- consent: boolean;
485
- customerType: string;
486
- defaultAddressId: string | null;
487
- totalOrders: number;
488
- avgOrders: number;
489
- lastOrderId: string | null;
490
- lastOrderDate: string | null;
491
- loyaltyPoints: number;
492
- metadata?: unknown;
493
- }>;
494
- type CustomerMe = z.infer<typeof CustomerMeSchema>;
495
- /** PATCH /v1/customer (upstream vía proxy `customer`, respuesta 204). */
496
- declare const CustomerProfilePatchSchema: z.ZodObject<{
497
- firstName: z.ZodString;
498
- lastName: z.ZodString;
499
- phone: z.ZodString;
500
- identificationNumber: z.ZodNullable<z.ZodString>;
501
- identificationType: z.ZodNullable<z.ZodString>;
502
- entityName: z.ZodNullable<z.ZodString>;
503
- entityIdentificationNumber: z.ZodNullable<z.ZodString>;
504
- gender: z.ZodNullable<z.ZodString>;
505
- role: z.ZodNullable<z.ZodString>;
506
- companyName: z.ZodNullable<z.ZodString>;
507
- dateOfBirth: z.ZodNullable<z.ZodString>;
508
- consent: z.ZodBoolean;
509
- countryIsoCode: z.ZodString;
510
- }, "strip", z.ZodTypeAny, {
511
- phone: string;
512
- firstName: string;
513
- lastName: string;
514
- role: string | null;
515
- countryIsoCode: string;
516
- identificationType: string | null;
517
- identificationNumber: string | null;
518
- entityName: string | null;
519
- entityIdentificationNumber: string | null;
520
- gender: string | null;
521
- companyName: string | null;
522
- dateOfBirth: string | null;
523
- consent: boolean;
524
- }, {
525
- phone: string;
526
- firstName: string;
527
- lastName: string;
528
- role: string | null;
529
- countryIsoCode: string;
530
- identificationType: string | null;
531
- identificationNumber: string | null;
532
- entityName: string | null;
533
- entityIdentificationNumber: string | null;
534
- gender: string | null;
535
- companyName: string | null;
536
- dateOfBirth: string | null;
537
- consent: boolean;
538
- }>;
539
- type CustomerProfilePatch = z.infer<typeof CustomerProfilePatchSchema>;
540
- declare function customerMeToProfilePatch(me: CustomerMe): CustomerProfilePatch;
541
- /**
542
- * Registra un cliente vía proxy /api/store.
543
- * El proxy agrega X-Store-Id igual que en el resto de endpoints de storefront.
544
- */
545
- declare function registerCustomer(data: CustomerRegisterRequest): Promise<unknown>;
546
- /**
547
- * Direcciones del cliente autenticado (Ecomiq upstream: rutas privadas con `Authorization: Bearer` solamente).
548
- *
549
- * - Con `accessToken`, el cliente lo manda al proxy y este lo reenvía tal cual a upstream.
550
- * - Sin token, el proxy usa la cookie HttpOnly de storefront (mismo Bearer hacia Ecomiq).
551
- */
552
- declare function getCustomerAddresses(accessToken?: string): Promise<CustomerAddress[]>;
553
- declare function createCustomerAddress(data: CustomerAddressUpsert, accessToken?: string): Promise<unknown>;
554
- declare function updateCustomerAddress(addressId: string, data: CustomerAddressUpsert, accessToken?: string): Promise<unknown>;
555
- declare function deleteCustomerAddress(addressId: string, accessToken?: string): Promise<unknown>;
556
- /**
557
- * Perfil del cliente autenticado (`GET /v1/customer/me`).
558
- * Autenticación igual que `getCustomerAddresses`: Bearer opcional o cookie HttpOnly en el proxy.
559
- */
560
- declare function getCustomerMe(accessToken?: string): Promise<CustomerMe>;
561
- /** Actualiza el perfil del cliente autenticado (`PATCH /v1/customer`). */
562
- declare function patchCustomer(data: CustomerProfilePatch, accessToken?: string): Promise<void>;
563
-
564
- /** GET /v1/customer/orders (listado agrupado vía proxy `customer/orders`). */
565
- declare const CustomerOrderListItemSchema: z.ZodObject<{
566
- orderId: z.ZodString;
567
- orderNumber: z.ZodString;
568
- orderGroup: z.ZodString;
569
- orderIds: z.ZodArray<z.ZodString, "many">;
570
- status: z.ZodString;
571
- total: z.ZodNumber;
572
- totalPaid: z.ZodNumber;
573
- currencyCode: z.ZodString;
574
- orderDate: z.ZodString;
575
- createdOn: z.ZodString;
576
- updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
- paymentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
- shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
579
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
580
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
581
- address1: z.ZodString;
582
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
583
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
- countryCode: z.ZodString;
585
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
586
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
587
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
590
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
591
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
592
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
593
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
- address1: z.ZodString;
596
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
- countryCode: z.ZodString;
599
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
600
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
601
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
602
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
604
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
605
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
606
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
607
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
608
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
- address1: z.ZodString;
610
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
- countryCode: z.ZodString;
613
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
614
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
618
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
619
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
620
- }, z.ZodTypeAny, "passthrough">>>>;
621
- shippingAddressSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
- items: z.ZodArray<z.ZodObject<{
623
- id: z.ZodString;
624
- orderId: z.ZodString;
625
- productId: z.ZodNullable<z.ZodString>;
626
- variantId: z.ZodNullable<z.ZodString>;
627
- title: z.ZodString;
628
- subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
629
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
630
- variantTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
- productHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
- quantity: z.ZodNumber;
633
- unitPrice: z.ZodNumber;
634
- total: z.ZodNumber;
635
- status: z.ZodString;
636
- }, "strip", z.ZodTypeAny, {
637
- id: string;
638
- productId: string | null;
639
- status: string;
640
- total: number;
641
- quantity: number;
642
- variantId: string | null;
643
- unitPrice: number;
644
- title: string;
645
- orderId: string;
646
- thumbnail?: string | null | undefined;
647
- subtitle?: string | null | undefined;
648
- variantTitle?: string | null | undefined;
649
- productHandle?: string | null | undefined;
650
- }, {
651
- id: string;
652
- productId: string | null;
653
- status: string;
654
- total: number;
655
- quantity: number;
656
- variantId: string | null;
657
- unitPrice: number;
658
- title: string;
659
- orderId: string;
660
- thumbnail?: string | null | undefined;
661
- subtitle?: string | null | undefined;
662
- variantTitle?: string | null | undefined;
663
- productHandle?: string | null | undefined;
664
- }>, "many">;
665
- }, "strip", z.ZodTypeAny, {
666
- status: string;
667
- createdOn: string;
668
- items: {
669
- id: string;
670
- productId: string | null;
671
- status: string;
672
- total: number;
673
- quantity: number;
674
- variantId: string | null;
675
- unitPrice: number;
676
- title: string;
677
- orderId: string;
678
- thumbnail?: string | null | undefined;
679
- subtitle?: string | null | undefined;
680
- variantTitle?: string | null | undefined;
681
- productHandle?: string | null | undefined;
682
- }[];
683
- total: number;
684
- currencyCode: string;
685
- orderId: string;
686
- orderGroup: string;
687
- orderIds: string[];
688
- orderNumber: string;
689
- totalPaid: number;
690
- orderDate: string;
691
- updatedOn?: string | null | undefined;
692
- shippingAddress?: z.objectOutputType<{
693
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
694
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
695
- address1: z.ZodString;
696
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
698
- countryCode: z.ZodString;
699
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
700
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
701
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
703
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
704
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
705
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
706
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
707
- shippingAddressSummary?: string | null | undefined;
708
- paymentAt?: string | null | undefined;
709
- }, {
710
- status: string;
711
- createdOn: string;
712
- items: {
713
- id: string;
714
- productId: string | null;
715
- status: string;
716
- total: number;
717
- quantity: number;
718
- variantId: string | null;
719
- unitPrice: number;
720
- title: string;
721
- orderId: string;
722
- thumbnail?: string | null | undefined;
723
- subtitle?: string | null | undefined;
724
- variantTitle?: string | null | undefined;
725
- productHandle?: string | null | undefined;
726
- }[];
727
- total: number;
728
- currencyCode: string;
729
- orderId: string;
730
- orderGroup: string;
731
- orderIds: string[];
732
- orderNumber: string;
733
- totalPaid: number;
734
- orderDate: string;
735
- updatedOn?: string | null | undefined;
736
- shippingAddress?: z.objectInputType<{
737
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
738
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
- address1: z.ZodString;
740
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
741
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
742
- countryCode: z.ZodString;
743
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
744
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
745
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
746
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
747
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
748
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
749
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
750
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
751
- shippingAddressSummary?: string | null | undefined;
752
- paymentAt?: string | null | undefined;
753
- }>;
754
- type CustomerOrderListItemDto = z.infer<typeof CustomerOrderListItemSchema>;
755
- /** GET /v1/customer/orders/{orderId} (detalle vía proxy). */
756
- declare const CustomerOrderDetailSchema: z.ZodObject<{
757
- id: z.ZodString;
758
- orderNumber: z.ZodString;
759
- orderGroup: z.ZodString;
760
- status: z.ZodString;
761
- total: z.ZodNumber;
762
- totalPaid: z.ZodNumber;
763
- currencyCode: z.ZodString;
764
- orderDate: z.ZodString;
765
- createdOn: z.ZodString;
766
- updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
- paymentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
768
- subTotal: z.ZodNumber;
769
- discount: z.ZodNumber;
770
- shipping: z.ZodNumber;
771
- tax: z.ZodNumber;
772
- email: z.ZodString;
773
- phone: z.ZodString;
774
- firstName: z.ZodString;
775
- lastName: z.ZodString;
776
- shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
777
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
778
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
- address1: z.ZodString;
780
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
781
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
- countryCode: z.ZodString;
783
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
787
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
788
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
789
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
790
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
791
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
792
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
- address1: z.ZodString;
794
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
795
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
796
- countryCode: z.ZodString;
797
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
798
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
799
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
800
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
802
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
803
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
804
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
805
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
807
- address1: z.ZodString;
808
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
- countryCode: z.ZodString;
811
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
812
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
813
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
814
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
815
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
816
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
817
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
818
- }, z.ZodTypeAny, "passthrough">>>>;
819
- shippingAddressSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
- billingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
821
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
823
- address1: z.ZodString;
824
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
825
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
826
- countryCode: z.ZodString;
827
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
830
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
831
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
832
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
833
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
834
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
835
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
836
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
837
- address1: z.ZodString;
838
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
839
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
840
- countryCode: z.ZodString;
841
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
842
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
843
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
844
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
846
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
847
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
848
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
849
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
850
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
851
- address1: z.ZodString;
852
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
853
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
854
- countryCode: z.ZodString;
855
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
856
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
859
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
860
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
861
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
862
- }, z.ZodTypeAny, "passthrough">>>>;
863
- items: z.ZodArray<z.ZodObject<{
864
- id: z.ZodString;
865
- orderId: z.ZodString;
866
- productId: z.ZodNullable<z.ZodString>;
867
- variantId: z.ZodNullable<z.ZodString>;
868
- title: z.ZodString;
869
- subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
871
- variantTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
- productHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
873
- quantity: z.ZodNumber;
874
- unitPrice: z.ZodNumber;
875
- total: z.ZodNumber;
876
- status: z.ZodString;
877
- }, "strip", z.ZodTypeAny, {
878
- id: string;
879
- productId: string | null;
880
- status: string;
881
- total: number;
882
- quantity: number;
883
- variantId: string | null;
884
- unitPrice: number;
885
- title: string;
886
- orderId: string;
887
- thumbnail?: string | null | undefined;
888
- subtitle?: string | null | undefined;
889
- variantTitle?: string | null | undefined;
890
- productHandle?: string | null | undefined;
891
- }, {
892
- id: string;
893
- productId: string | null;
894
- status: string;
895
- total: number;
896
- quantity: number;
897
- variantId: string | null;
898
- unitPrice: number;
899
- title: string;
900
- orderId: string;
901
- thumbnail?: string | null | undefined;
902
- subtitle?: string | null | undefined;
903
- variantTitle?: string | null | undefined;
904
- productHandle?: string | null | undefined;
905
- }>, "many">;
906
- payments: z.ZodArray<z.ZodObject<{
907
- id: z.ZodString;
908
- paymentMethod: z.ZodString;
909
- paymentCode: z.ZodString;
910
- amount: z.ZodNumber;
911
- paymentStatus: z.ZodString;
912
- receiptUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
913
- createdOn: z.ZodString;
914
- }, "strip", z.ZodTypeAny, {
915
- id: string;
916
- createdOn: string;
917
- amount: number;
918
- paymentMethod: string;
919
- paymentCode: string;
920
- paymentStatus: string;
921
- receiptUrl?: string | null | undefined;
922
- }, {
923
- id: string;
924
- createdOn: string;
925
- amount: number;
926
- paymentMethod: string;
927
- paymentCode: string;
928
- paymentStatus: string;
929
- receiptUrl?: string | null | undefined;
930
- }>, "many">;
931
- statusTimeline: z.ZodArray<z.ZodObject<{
932
- key: z.ZodString;
933
- label: z.ZodString;
934
- occurredAt: z.ZodString;
935
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
936
- status: z.ZodString;
937
- source: z.ZodString;
938
- }, "strip", z.ZodTypeAny, {
939
- status: string;
940
- key: string;
941
- label: string;
942
- source: string;
943
- occurredAt: string;
944
- description?: string | null | undefined;
945
- }, {
946
- status: string;
947
- key: string;
948
- label: string;
949
- source: string;
950
- occurredAt: string;
951
- description?: string | null | undefined;
952
- }>, "many">;
953
- }, "strip", z.ZodTypeAny, {
954
- id: string;
955
- status: string;
956
- createdOn: string;
957
- items: {
958
- id: string;
959
- productId: string | null;
960
- status: string;
961
- total: number;
962
- quantity: number;
963
- variantId: string | null;
964
- unitPrice: number;
965
- title: string;
966
- orderId: string;
967
- thumbnail?: string | null | undefined;
968
- subtitle?: string | null | undefined;
969
- variantTitle?: string | null | undefined;
970
- productHandle?: string | null | undefined;
971
- }[];
972
- total: number;
973
- phone: string;
974
- email: string;
975
- firstName: string;
976
- lastName: string;
977
- currencyCode: string;
978
- discount: number;
979
- tax: number;
980
- orderGroup: string;
981
- shipping: number;
982
- orderNumber: string;
983
- totalPaid: number;
984
- orderDate: string;
985
- subTotal: number;
986
- payments: {
987
- id: string;
988
- createdOn: string;
989
- amount: number;
990
- paymentMethod: string;
991
- paymentCode: string;
992
- paymentStatus: string;
993
- receiptUrl?: string | null | undefined;
994
- }[];
995
- statusTimeline: {
996
- status: string;
997
- key: string;
998
- label: string;
999
- source: string;
1000
- occurredAt: string;
1001
- description?: string | null | undefined;
1002
- }[];
1003
- updatedOn?: string | null | undefined;
1004
- shippingAddress?: z.objectOutputType<{
1005
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1006
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1007
- address1: z.ZodString;
1008
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1009
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
- countryCode: z.ZodString;
1011
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1012
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1013
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1014
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1015
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1016
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1017
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1018
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1019
- billingAddress?: z.objectOutputType<{
1020
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1021
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
- address1: z.ZodString;
1023
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1024
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1025
- countryCode: z.ZodString;
1026
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1027
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1028
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1029
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1030
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1031
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1032
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1033
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1034
- shippingAddressSummary?: string | null | undefined;
1035
- paymentAt?: string | null | undefined;
1036
- }, {
1037
- id: string;
1038
- status: string;
1039
- createdOn: string;
1040
- items: {
1041
- id: string;
1042
- productId: string | null;
1043
- status: string;
1044
- total: number;
1045
- quantity: number;
1046
- variantId: string | null;
1047
- unitPrice: number;
1048
- title: string;
1049
- orderId: string;
1050
- thumbnail?: string | null | undefined;
1051
- subtitle?: string | null | undefined;
1052
- variantTitle?: string | null | undefined;
1053
- productHandle?: string | null | undefined;
1054
- }[];
1055
- total: number;
1056
- phone: string;
1057
- email: string;
1058
- firstName: string;
1059
- lastName: string;
1060
- currencyCode: string;
1061
- discount: number;
1062
- tax: number;
1063
- orderGroup: string;
1064
- shipping: number;
1065
- orderNumber: string;
1066
- totalPaid: number;
1067
- orderDate: string;
1068
- subTotal: number;
1069
- payments: {
1070
- id: string;
1071
- createdOn: string;
1072
- amount: number;
1073
- paymentMethod: string;
1074
- paymentCode: string;
1075
- paymentStatus: string;
1076
- receiptUrl?: string | null | undefined;
1077
- }[];
1078
- statusTimeline: {
1079
- status: string;
1080
- key: string;
1081
- label: string;
1082
- source: string;
1083
- occurredAt: string;
1084
- description?: string | null | undefined;
1085
- }[];
1086
- updatedOn?: string | null | undefined;
1087
- shippingAddress?: z.objectInputType<{
1088
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1089
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1090
- address1: z.ZodString;
1091
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1092
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1093
- countryCode: z.ZodString;
1094
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1095
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1096
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1097
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1098
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1099
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1100
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1101
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1102
- billingAddress?: z.objectInputType<{
1103
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1104
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1105
- address1: z.ZodString;
1106
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1107
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1108
- countryCode: z.ZodString;
1109
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1110
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1111
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1112
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1113
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1114
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1115
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1116
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1117
- shippingAddressSummary?: string | null | undefined;
1118
- paymentAt?: string | null | undefined;
1119
- }>;
1120
- type CustomerOrderDetailDto = z.infer<typeof CustomerOrderDetailSchema>;
1121
- declare function getCustomerOrders(accessToken?: string): Promise<CustomerOrderListItemDto[]>;
1122
- declare function getCustomerOrder(orderId: string, accessToken?: string): Promise<CustomerOrderDetailDto>;
1123
-
1124
- declare const OrderDraftSchema: z.ZodObject<{
1125
- id: z.ZodString;
1126
- storeId: z.ZodOptional<z.ZodString>;
1127
- customerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1128
- cartId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1129
- draftNumber: z.ZodString;
1130
- currencyCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1131
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1132
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1133
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1134
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1135
- firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1136
- lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1137
- identificationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1138
- identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1139
- entityTaxId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1140
- entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1141
- status: z.ZodString;
1142
- draftDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1143
- sentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1144
- viewedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1145
- acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
- rejectedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1147
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1148
- cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1149
- convertedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1150
- shareToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1151
- shareExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1152
- allowAnonymousShareAccess: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1153
- sharedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1154
- billingAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1155
- address1: z.ZodOptional<z.ZodString>;
1156
- address2: z.ZodOptional<z.ZodString>;
1157
- city: z.ZodOptional<z.ZodString>;
1158
- province: z.ZodOptional<z.ZodString>;
1159
- country: z.ZodOptional<z.ZodString>;
1160
- zip: z.ZodOptional<z.ZodString>;
1161
- phone: z.ZodOptional<z.ZodString>;
1162
- firstName: z.ZodOptional<z.ZodString>;
1163
- lastName: z.ZodOptional<z.ZodString>;
1164
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1165
- address1: z.ZodOptional<z.ZodString>;
1166
- address2: z.ZodOptional<z.ZodString>;
1167
- city: z.ZodOptional<z.ZodString>;
1168
- province: z.ZodOptional<z.ZodString>;
1169
- country: z.ZodOptional<z.ZodString>;
1170
- zip: z.ZodOptional<z.ZodString>;
1171
- phone: z.ZodOptional<z.ZodString>;
1172
- firstName: z.ZodOptional<z.ZodString>;
1173
- lastName: z.ZodOptional<z.ZodString>;
1174
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1175
- address1: z.ZodOptional<z.ZodString>;
1176
- address2: z.ZodOptional<z.ZodString>;
1177
- city: z.ZodOptional<z.ZodString>;
1178
- province: z.ZodOptional<z.ZodString>;
1179
- country: z.ZodOptional<z.ZodString>;
1180
- zip: z.ZodOptional<z.ZodString>;
1181
- phone: z.ZodOptional<z.ZodString>;
1182
- firstName: z.ZodOptional<z.ZodString>;
1183
- lastName: z.ZodOptional<z.ZodString>;
1184
- }, z.ZodTypeAny, "passthrough">>>>;
1185
- shippingAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1186
- address1: z.ZodOptional<z.ZodString>;
1187
- address2: z.ZodOptional<z.ZodString>;
1188
- city: z.ZodOptional<z.ZodString>;
1189
- province: z.ZodOptional<z.ZodString>;
1190
- country: z.ZodOptional<z.ZodString>;
1191
- zip: z.ZodOptional<z.ZodString>;
1192
- phone: z.ZodOptional<z.ZodString>;
1193
- firstName: z.ZodOptional<z.ZodString>;
1194
- lastName: z.ZodOptional<z.ZodString>;
1195
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1196
- address1: z.ZodOptional<z.ZodString>;
1197
- address2: z.ZodOptional<z.ZodString>;
1198
- city: z.ZodOptional<z.ZodString>;
1199
- province: z.ZodOptional<z.ZodString>;
1200
- country: z.ZodOptional<z.ZodString>;
1201
- zip: z.ZodOptional<z.ZodString>;
1202
- phone: z.ZodOptional<z.ZodString>;
1203
- firstName: z.ZodOptional<z.ZodString>;
1204
- lastName: z.ZodOptional<z.ZodString>;
1205
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1206
- address1: z.ZodOptional<z.ZodString>;
1207
- address2: z.ZodOptional<z.ZodString>;
1208
- city: z.ZodOptional<z.ZodString>;
1209
- province: z.ZodOptional<z.ZodString>;
1210
- country: z.ZodOptional<z.ZodString>;
1211
- zip: z.ZodOptional<z.ZodString>;
1212
- phone: z.ZodOptional<z.ZodString>;
1213
- firstName: z.ZodOptional<z.ZodString>;
1214
- lastName: z.ZodOptional<z.ZodString>;
1215
- }, z.ZodTypeAny, "passthrough">>>>;
1216
- metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1217
- subTotal: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1218
- discount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1219
- shipping: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1220
- tax: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1221
- warranty: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1222
- total: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1223
- paymentMethod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1224
- paymentCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1225
- items: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1226
- id: z.ZodString;
1227
- productId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1228
- sellerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1229
- shippingProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
- variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1231
- title: z.ZodString;
1232
- subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1233
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1234
- quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1235
- unitPrice: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1236
- subTotal: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1237
- discount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1238
- shipping: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1239
- tax: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1240
- warranty: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1241
- total: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1242
- requiresShipping: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1243
- isTaxInclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1244
- metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1245
- }, "strip", z.ZodTypeAny, {
1246
- id: string;
1247
- total: number;
1248
- quantity: number;
1249
- unitPrice: number;
1250
- requiresShipping: boolean;
1251
- title: string;
1252
- discount: number;
1253
- tax: number;
1254
- warranty: number;
1255
- metadata: Record<string, unknown>;
1256
- shipping: number;
1257
- subTotal: number;
1258
- isTaxInclusive: boolean;
1259
- productId?: string | null | undefined;
1260
- sellerId?: string | null | undefined;
1261
- variantId?: string | null | undefined;
1262
- thumbnail?: string | null | undefined;
1263
- shippingProfileId?: string | null | undefined;
1264
- subtitle?: string | null | undefined;
1265
- }, {
1266
- id: string;
1267
- title: string;
1268
- productId?: string | null | undefined;
1269
- total?: number | undefined;
1270
- sellerId?: string | null | undefined;
1271
- quantity?: number | undefined;
1272
- variantId?: string | null | undefined;
1273
- unitPrice?: number | undefined;
1274
- requiresShipping?: boolean | undefined;
1275
- discount?: number | undefined;
1276
- tax?: number | undefined;
1277
- warranty?: number | undefined;
1278
- thumbnail?: string | null | undefined;
1279
- metadata?: Record<string, unknown> | undefined;
1280
- shippingProfileId?: string | null | undefined;
1281
- shipping?: number | undefined;
1282
- subtitle?: string | null | undefined;
1283
- subTotal?: number | undefined;
1284
- isTaxInclusive?: boolean | undefined;
1285
- }>, "many">>>;
1286
- shippingMethods: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1287
- id: z.ZodString;
1288
- name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1289
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1290
- subtotal: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1291
- discountTotal: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1292
- taxTotal: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1293
- total: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1294
- isTaxInclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1295
- sellerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1296
- shippingProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1297
- shippingMethodId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1298
- connectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1299
- providerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1300
- trackingCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1301
- estimatedDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1302
- zoneCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1303
- locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1304
- pickupPointId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1305
- scheduledDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1306
- scheduledTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1307
- data: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1308
- }, "strip", z.ZodTypeAny, {
1309
- data: Record<string, unknown>;
1310
- id: string;
1311
- name: string;
1312
- total: number;
1313
- subtotal: number;
1314
- discountTotal: number;
1315
- taxTotal: number;
1316
- isTaxInclusive: boolean;
1317
- description?: string | null | undefined;
1318
- sellerId?: string | null | undefined;
1319
- estimatedDays?: number | null | undefined;
1320
- pickupPointId?: string | null | undefined;
1321
- scheduledDate?: string | null | undefined;
1322
- scheduledTime?: string | null | undefined;
1323
- shippingMethodId?: string | null | undefined;
1324
- shippingProfileId?: string | null | undefined;
1325
- locationId?: string | null | undefined;
1326
- connectionId?: string | null | undefined;
1327
- providerName?: string | null | undefined;
1328
- trackingCode?: string | null | undefined;
1329
- zoneCode?: string | null | undefined;
1330
- }, {
1331
- id: string;
1332
- data?: Record<string, unknown> | undefined;
1333
- name?: string | undefined;
1334
- description?: string | null | undefined;
1335
- total?: number | undefined;
1336
- sellerId?: string | null | undefined;
1337
- subtotal?: number | undefined;
1338
- estimatedDays?: number | null | undefined;
1339
- pickupPointId?: string | null | undefined;
1340
- scheduledDate?: string | null | undefined;
1341
- scheduledTime?: string | null | undefined;
1342
- discountTotal?: number | undefined;
1343
- taxTotal?: number | undefined;
1344
- shippingMethodId?: string | null | undefined;
1345
- shippingProfileId?: string | null | undefined;
1346
- locationId?: string | null | undefined;
1347
- isTaxInclusive?: boolean | undefined;
1348
- connectionId?: string | null | undefined;
1349
- providerName?: string | null | undefined;
1350
- trackingCode?: string | null | undefined;
1351
- zoneCode?: string | null | undefined;
1352
- }>, "many">>>;
1353
- createdOn: z.ZodOptional<z.ZodString>;
1354
- updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1355
- }, "strip", z.ZodTypeAny, {
1356
- id: string;
1357
- status: string;
1358
- items: {
1359
- id: string;
1360
- total: number;
1361
- quantity: number;
1362
- unitPrice: number;
1363
- requiresShipping: boolean;
1364
- title: string;
1365
- discount: number;
1366
- tax: number;
1367
- warranty: number;
1368
- metadata: Record<string, unknown>;
1369
- shipping: number;
1370
- subTotal: number;
1371
- isTaxInclusive: boolean;
1372
- productId?: string | null | undefined;
1373
- sellerId?: string | null | undefined;
1374
- variantId?: string | null | undefined;
1375
- thumbnail?: string | null | undefined;
1376
- shippingProfileId?: string | null | undefined;
1377
- subtitle?: string | null | undefined;
1378
- }[];
1379
- total: number;
1380
- currencyCode: string;
1381
- discount: number;
1382
- tax: number;
1383
- warranty: number;
1384
- metadata: Record<string, unknown>;
1385
- shippingMethods: {
1386
- data: Record<string, unknown>;
1387
- id: string;
1388
- name: string;
1389
- total: number;
1390
- subtotal: number;
1391
- discountTotal: number;
1392
- taxTotal: number;
1393
- isTaxInclusive: boolean;
1394
- description?: string | null | undefined;
1395
- sellerId?: string | null | undefined;
1396
- estimatedDays?: number | null | undefined;
1397
- pickupPointId?: string | null | undefined;
1398
- scheduledDate?: string | null | undefined;
1399
- scheduledTime?: string | null | undefined;
1400
- shippingMethodId?: string | null | undefined;
1401
- shippingProfileId?: string | null | undefined;
1402
- locationId?: string | null | undefined;
1403
- connectionId?: string | null | undefined;
1404
- providerName?: string | null | undefined;
1405
- trackingCode?: string | null | undefined;
1406
- zoneCode?: string | null | undefined;
1407
- }[];
1408
- shipping: number;
1409
- paymentMethod: string;
1410
- paymentCode: string;
1411
- subTotal: number;
1412
- draftNumber: string;
1413
- allowAnonymousShareAccess: boolean;
1414
- storeId?: string | undefined;
1415
- createdOn?: string | undefined;
1416
- updatedOn?: string | null | undefined;
1417
- phone?: string | null | undefined;
1418
- email?: string | null | undefined;
1419
- firstName?: string | null | undefined;
1420
- lastName?: string | null | undefined;
1421
- shippingAddress?: z.objectOutputType<{
1422
- address1: z.ZodOptional<z.ZodString>;
1423
- address2: z.ZodOptional<z.ZodString>;
1424
- city: z.ZodOptional<z.ZodString>;
1425
- province: z.ZodOptional<z.ZodString>;
1426
- country: z.ZodOptional<z.ZodString>;
1427
- zip: z.ZodOptional<z.ZodString>;
1428
- phone: z.ZodOptional<z.ZodString>;
1429
- firstName: z.ZodOptional<z.ZodString>;
1430
- lastName: z.ZodOptional<z.ZodString>;
1431
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1432
- billingAddress?: z.objectOutputType<{
1433
- address1: z.ZodOptional<z.ZodString>;
1434
- address2: z.ZodOptional<z.ZodString>;
1435
- city: z.ZodOptional<z.ZodString>;
1436
- province: z.ZodOptional<z.ZodString>;
1437
- country: z.ZodOptional<z.ZodString>;
1438
- zip: z.ZodOptional<z.ZodString>;
1439
- phone: z.ZodOptional<z.ZodString>;
1440
- firstName: z.ZodOptional<z.ZodString>;
1441
- lastName: z.ZodOptional<z.ZodString>;
1442
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1443
- source?: string | null | undefined;
1444
- identificationType?: string | null | undefined;
1445
- identificationNumber?: string | null | undefined;
1446
- entityName?: string | null | undefined;
1447
- customerId?: string | null | undefined;
1448
- cartId?: string | null | undefined;
1449
- notes?: string | null | undefined;
1450
- entityTaxId?: string | null | undefined;
1451
- draftDate?: string | null | undefined;
1452
- sentAt?: string | null | undefined;
1453
- viewedAt?: string | null | undefined;
1454
- acceptedAt?: string | null | undefined;
1455
- rejectedAt?: string | null | undefined;
1456
- expiredAt?: string | null | undefined;
1457
- cancelledAt?: string | null | undefined;
1458
- convertedAt?: string | null | undefined;
1459
- shareToken?: string | null | undefined;
1460
- shareExpiresAt?: string | null | undefined;
1461
- sharedAt?: string | null | undefined;
1462
- }, {
1463
- id: string;
1464
- status: string;
1465
- draftNumber: string;
1466
- storeId?: string | undefined;
1467
- createdOn?: string | undefined;
1468
- updatedOn?: string | null | undefined;
1469
- items?: {
1470
- id: string;
1471
- title: string;
1472
- productId?: string | null | undefined;
1473
- total?: number | undefined;
1474
- sellerId?: string | null | undefined;
1475
- quantity?: number | undefined;
1476
- variantId?: string | null | undefined;
1477
- unitPrice?: number | undefined;
1478
- requiresShipping?: boolean | undefined;
1479
- discount?: number | undefined;
1480
- tax?: number | undefined;
1481
- warranty?: number | undefined;
1482
- thumbnail?: string | null | undefined;
1483
- metadata?: Record<string, unknown> | undefined;
1484
- shippingProfileId?: string | null | undefined;
1485
- shipping?: number | undefined;
1486
- subtitle?: string | null | undefined;
1487
- subTotal?: number | undefined;
1488
- isTaxInclusive?: boolean | undefined;
1489
- }[] | undefined;
1490
- total?: number | undefined;
1491
- phone?: string | null | undefined;
1492
- email?: string | null | undefined;
1493
- firstName?: string | null | undefined;
1494
- lastName?: string | null | undefined;
1495
- currencyCode?: string | undefined;
1496
- shippingAddress?: z.objectInputType<{
1497
- address1: z.ZodOptional<z.ZodString>;
1498
- address2: z.ZodOptional<z.ZodString>;
1499
- city: z.ZodOptional<z.ZodString>;
1500
- province: z.ZodOptional<z.ZodString>;
1501
- country: z.ZodOptional<z.ZodString>;
1502
- zip: z.ZodOptional<z.ZodString>;
1503
- phone: z.ZodOptional<z.ZodString>;
1504
- firstName: z.ZodOptional<z.ZodString>;
1505
- lastName: z.ZodOptional<z.ZodString>;
1506
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1507
- billingAddress?: z.objectInputType<{
1508
- address1: z.ZodOptional<z.ZodString>;
1509
- address2: z.ZodOptional<z.ZodString>;
1510
- city: z.ZodOptional<z.ZodString>;
1511
- province: z.ZodOptional<z.ZodString>;
1512
- country: z.ZodOptional<z.ZodString>;
1513
- zip: z.ZodOptional<z.ZodString>;
1514
- phone: z.ZodOptional<z.ZodString>;
1515
- firstName: z.ZodOptional<z.ZodString>;
1516
- lastName: z.ZodOptional<z.ZodString>;
1517
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
1518
- discount?: number | undefined;
1519
- tax?: number | undefined;
1520
- warranty?: number | undefined;
1521
- metadata?: Record<string, unknown> | undefined;
1522
- shippingMethods?: {
1523
- id: string;
1524
- data?: Record<string, unknown> | undefined;
1525
- name?: string | undefined;
1526
- description?: string | null | undefined;
1527
- total?: number | undefined;
1528
- sellerId?: string | null | undefined;
1529
- subtotal?: number | undefined;
1530
- estimatedDays?: number | null | undefined;
1531
- pickupPointId?: string | null | undefined;
1532
- scheduledDate?: string | null | undefined;
1533
- scheduledTime?: string | null | undefined;
1534
- discountTotal?: number | undefined;
1535
- taxTotal?: number | undefined;
1536
- shippingMethodId?: string | null | undefined;
1537
- shippingProfileId?: string | null | undefined;
1538
- locationId?: string | null | undefined;
1539
- isTaxInclusive?: boolean | undefined;
1540
- connectionId?: string | null | undefined;
1541
- providerName?: string | null | undefined;
1542
- trackingCode?: string | null | undefined;
1543
- zoneCode?: string | null | undefined;
1544
- }[] | undefined;
1545
- source?: string | null | undefined;
1546
- shipping?: number | undefined;
1547
- identificationType?: string | null | undefined;
1548
- identificationNumber?: string | null | undefined;
1549
- entityName?: string | null | undefined;
1550
- paymentMethod?: string | undefined;
1551
- paymentCode?: string | undefined;
1552
- subTotal?: number | undefined;
1553
- customerId?: string | null | undefined;
1554
- cartId?: string | null | undefined;
1555
- notes?: string | null | undefined;
1556
- entityTaxId?: string | null | undefined;
1557
- draftDate?: string | null | undefined;
1558
- sentAt?: string | null | undefined;
1559
- viewedAt?: string | null | undefined;
1560
- acceptedAt?: string | null | undefined;
1561
- rejectedAt?: string | null | undefined;
1562
- expiredAt?: string | null | undefined;
1563
- cancelledAt?: string | null | undefined;
1564
- convertedAt?: string | null | undefined;
1565
- shareToken?: string | null | undefined;
1566
- shareExpiresAt?: string | null | undefined;
1567
- allowAnonymousShareAccess?: boolean | undefined;
1568
- sharedAt?: string | null | undefined;
1569
- }>;
1570
- type OrderDraft = z.infer<typeof OrderDraftSchema>;
1571
-
1572
- declare function getSharedOrderDraft(shareToken: string): Promise<OrderDraft>;
1573
-
1574
- /**
1575
- * Hooks de productos que usan el proxy /api/store (cookie store_id).
1576
- * No requiere storeId: el proxy lo resuelve por cookie.
1577
- */
1578
- declare function useStoreProducts(): {
1579
- useStorefrontProductsList: (params?: StorefrontProductsParamsInput$1) => _tanstack_react_query.UseQueryResult<{
1580
- categories: {
1581
- value: string;
1582
- count: number;
1583
- }[];
1584
- pageSize: number;
1585
- pageIndex: number;
1586
- totalCount: number;
1587
- totalPages: number;
1588
- products: {
1589
- id: string;
1590
- name: string;
1591
- slug: string;
1592
- price: number;
1593
- variantCount: number;
1594
- isAvailable: boolean;
1595
- totalInventory: number;
1596
- bundleItemsCount: number;
1597
- status?: string | null | undefined;
1598
- tags?: string[] | null | undefined;
1599
- category?: string | null | undefined;
1600
- productType?: string | null | undefined;
1601
- imageUrl?: string | null | undefined;
1602
- compareAtPrice?: number | null | undefined;
1603
- brand?: string | null | undefined;
1604
- }[];
1605
- brands: {
1606
- value: string;
1607
- count: number;
1608
- }[];
1609
- minPrice?: number | null | undefined;
1610
- maxPrice?: number | null | undefined;
1611
- }, Error>;
1612
- useStorefrontInfiniteProducts: (params?: Omit<StorefrontProductsParamsInput$1, "page">) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<{
1613
- categories: {
1614
- value: string;
1615
- count: number;
1616
- }[];
1617
- pageSize: number;
1618
- pageIndex: number;
1619
- totalCount: number;
1620
- totalPages: number;
1621
- products: {
1622
- id: string;
1623
- name: string;
1624
- slug: string;
1625
- price: number;
1626
- variantCount: number;
1627
- isAvailable: boolean;
1628
- totalInventory: number;
1629
- bundleItemsCount: number;
1630
- status?: string | null | undefined;
1631
- tags?: string[] | null | undefined;
1632
- category?: string | null | undefined;
1633
- productType?: string | null | undefined;
1634
- imageUrl?: string | null | undefined;
1635
- compareAtPrice?: number | null | undefined;
1636
- brand?: string | null | undefined;
1637
- }[];
1638
- brands: {
1639
- value: string;
1640
- count: number;
1641
- }[];
1642
- minPrice?: number | null | undefined;
1643
- maxPrice?: number | null | undefined;
1644
- }, unknown>, Error>;
1645
- useProductBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
1646
- id: string;
1647
- name: string;
1648
- images: {
1649
- url: string;
1650
- name?: string | null | undefined;
1651
- order?: number | undefined;
1652
- }[];
1653
- slug: string;
1654
- variants: {
1655
- options: {
1656
- name: string;
1657
- value: string;
1658
- key: string;
1659
- }[];
1660
- id: string;
1661
- sku: string;
1662
- images: {
1663
- url: string;
1664
- name?: string | null | undefined;
1665
- order?: number | undefined;
1666
- }[];
1667
- price: number;
1668
- quantity: number;
1669
- status?: string | null | undefined;
1670
- compareAtPrice?: number | null | undefined;
1671
- }[];
1672
- price: number;
1673
- isAvailable: boolean;
1674
- totalInventory: number;
1675
- specifications: Record<string, unknown>[];
1676
- bundleItems: {
1677
- productId: string;
1678
- quantity: number;
1679
- variantId: string;
1680
- productName: string;
1681
- availableStock: number;
1682
- allowBackorders: boolean;
1683
- requiresShipping: boolean;
1684
- sku?: string | null | undefined;
1685
- imageUrl?: string | null | undefined;
1686
- brand?: string | null | undefined;
1687
- variantName?: string | null | undefined;
1688
- }[];
1689
- priceTiers: {
1690
- variantId: string;
1691
- minQuantity: number;
1692
- unitPrice: number;
1693
- maxQuantity?: number | null | undefined;
1694
- }[];
1695
- status?: string | null | undefined;
1696
- description?: string | null | undefined;
1697
- tags?: string[] | null | undefined;
1698
- category?: string | null | undefined;
1699
- createdAt?: string | null | undefined;
1700
- productType?: string | null | undefined;
1701
- imageUrl?: string | null | undefined;
1702
- compareAtPrice?: number | null | undefined;
1703
- brand?: string | null | undefined;
1704
- categoryId?: string | null | undefined;
1705
- updatedAt?: string | null | undefined;
1706
- }, Error>;
1707
- useRefreshStorefrontProducts: () => _tanstack_react_query.UseMutationResult<{
1708
- categories: {
1709
- value: string;
1710
- count: number;
1711
- }[];
1712
- pageSize: number;
1713
- pageIndex: number;
1714
- totalCount: number;
1715
- totalPages: number;
1716
- products: {
1717
- id: string;
1718
- name: string;
1719
- slug: string;
1720
- price: number;
1721
- variantCount: number;
1722
- isAvailable: boolean;
1723
- totalInventory: number;
1724
- bundleItemsCount: number;
1725
- status?: string | null | undefined;
1726
- tags?: string[] | null | undefined;
1727
- category?: string | null | undefined;
1728
- productType?: string | null | undefined;
1729
- imageUrl?: string | null | undefined;
1730
- compareAtPrice?: number | null | undefined;
1731
- brand?: string | null | undefined;
1732
- }[];
1733
- brands: {
1734
- value: string;
1735
- count: number;
1736
- }[];
1737
- minPrice?: number | null | undefined;
1738
- maxPrice?: number | null | undefined;
1739
- }, Error, {
1740
- sort?: "price_asc" | "price_desc" | "name_asc" | "name_desc" | "newest" | undefined;
1741
- inStock?: boolean | undefined;
1742
- page?: number | undefined;
1743
- pageSize?: number | undefined;
1744
- category?: string | undefined;
1745
- search?: string | undefined;
1746
- minPrice?: number | undefined;
1747
- maxPrice?: number | undefined;
1748
- productType?: string | undefined;
1749
- brand?: string | undefined;
1750
- sellerId?: string | undefined;
1751
- collection?: string | undefined;
1752
- } | undefined, unknown>;
1753
- };
1754
-
1755
- /**
1756
- * Hooks de colecciones que usan el proxy /api/store.
1757
- */
1758
- declare function useStoreCollections(): {
1759
- useStorefrontCollectionsList: () => _tanstack_react_query.UseQueryResult<{
1760
- id: string;
1761
- name: string;
1762
- type: string;
1763
- slug: string;
1764
- productCount: number;
1765
- description?: string | null | undefined;
1766
- imageUrl?: string | null | undefined;
1767
- }[], Error>;
1768
- useCollectionBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
1769
- id: string;
1770
- name: string;
1771
- type: string;
1772
- slug: string;
1773
- productCount: number;
1774
- description?: string | null | undefined;
1775
- imageUrl?: string | null | undefined;
1776
- }, Error>;
1777
- useRefreshStorefrontCollections: () => _tanstack_react_query.UseMutationResult<{
1778
- id: string;
1779
- name: string;
1780
- type: string;
1781
- slug: string;
1782
- productCount: number;
1783
- description?: string | null | undefined;
1784
- imageUrl?: string | null | undefined;
1785
- }[], Error, void, unknown>;
1786
- };
1787
-
1788
- /**
1789
- * Hooks de páginas que usan el proxy /api/store.
1790
- */
1791
- declare function useStorePages(): {
1792
- useStorefrontPagesList: () => _tanstack_react_query.UseQueryResult<{
1793
- id: string;
1794
- name: string;
1795
- slug: string;
1796
- layout: string;
1797
- }[], Error>;
1798
- usePageBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
1799
- id: string;
1800
- name: string;
1801
- slug: string;
1802
- layout: string;
1803
- settings?: zod.objectOutputType<{
1804
- seo: zod.ZodOptional<zod.ZodObject<{
1805
- title: zod.ZodOptional<zod.ZodString>;
1806
- description: zod.ZodOptional<zod.ZodString>;
1807
- }, "strip", zod.ZodTypeAny, {
1808
- description?: string | undefined;
1809
- title?: string | undefined;
1810
- }, {
1811
- description?: string | undefined;
1812
- title?: string | undefined;
1813
- }>>;
1814
- html: zod.ZodOptional<zod.ZodString>;
1815
- title: zod.ZodOptional<zod.ZodString>;
1816
- }, zod.ZodUnknown, "strip"> | undefined;
1817
- sections?: {
1818
- id: string;
1819
- order: number;
1820
- type: string;
1821
- blocks: {
1822
- id: string;
1823
- order: number;
1824
- type: string;
1825
- settings?: Record<string, unknown> | undefined;
1826
- }[];
1827
- settings?: Record<string, unknown> | undefined;
1828
- }[] | undefined;
1829
- }, Error>;
1830
- useRefreshStorefrontPages: () => _tanstack_react_query.UseMutationResult<{
1831
- id: string;
1832
- name: string;
1833
- slug: string;
1834
- layout: string;
1835
- }[], Error, void, unknown>;
1836
- };
1837
-
33
+ declare function getPublicStore(options?: GetPublicStoreOptions): Promise<PublicStoreResult>;
1838
34
  /**
1839
- * Hooks de carrito que usan el proxy /api/store (`X-Store-Id` vía provider / server setters).
35
+ * Igual que `getPublicStore` pero con headers explícitos (tests, middleware custom).
1840
36
  */
1841
- declare function useStoreCart(): {
1842
- useCreateCart: () => _tanstack_react_query.UseMutationResult<{
1843
- id: string;
1844
- items: {
1845
- id: string;
1846
- quantity: number;
1847
- variantId: string;
1848
- unitPrice: number;
1849
- bundleItems: {
1850
- productId: string;
1851
- quantity: number;
1852
- variantId: string;
1853
- productName: string;
1854
- sku?: string | null | undefined;
1855
- imageUrl?: string | null | undefined;
1856
- brand?: string | null | undefined;
1857
- variantName?: string | null | undefined;
1858
- }[];
1859
- title: string;
1860
- variantLabel?: string | null | undefined;
1861
- thumbnail?: string | null | undefined;
1862
- variantSku?: string | null | undefined;
1863
- }[];
1864
- currencyCode: string;
1865
- metadata: Record<string, unknown>;
1866
- promotionCodes: string[];
1867
- shippingMethods: unknown[];
1868
- totals: {
1869
- total: number;
1870
- subtotal: number;
1871
- discountTotal: number;
1872
- shippingTotal: number;
1873
- taxTotal: number;
1874
- warrantyTotal: number;
1875
- };
1876
- phone?: string | null | undefined;
1877
- email?: string | null | undefined;
1878
- firstName?: string | null | undefined;
1879
- lastName?: string | null | undefined;
1880
- salesChannelId?: string | null | undefined;
1881
- shippingAddress?: unknown;
1882
- billingAddress?: unknown;
1883
- regionId?: string | null | undefined;
1884
- completedAt?: string | null | undefined;
1885
- }, Error, {
1886
- email: string;
1887
- currencyCode: string;
1888
- salesChannelId: string;
1889
- }, unknown>;
1890
- useGetCart: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<{
1891
- id: string;
1892
- items: {
1893
- id: string;
1894
- quantity: number;
1895
- variantId: string;
1896
- unitPrice: number;
1897
- bundleItems: {
1898
- productId: string;
1899
- quantity: number;
1900
- variantId: string;
1901
- productName: string;
1902
- sku?: string | null | undefined;
1903
- imageUrl?: string | null | undefined;
1904
- brand?: string | null | undefined;
1905
- variantName?: string | null | undefined;
1906
- }[];
1907
- title: string;
1908
- variantLabel?: string | null | undefined;
1909
- thumbnail?: string | null | undefined;
1910
- variantSku?: string | null | undefined;
1911
- }[];
1912
- currencyCode: string;
1913
- metadata: Record<string, unknown>;
1914
- promotionCodes: string[];
1915
- shippingMethods: unknown[];
1916
- totals: {
1917
- total: number;
1918
- subtotal: number;
1919
- discountTotal: number;
1920
- shippingTotal: number;
1921
- taxTotal: number;
1922
- warrantyTotal: number;
1923
- };
1924
- phone?: string | null | undefined;
1925
- email?: string | null | undefined;
1926
- firstName?: string | null | undefined;
1927
- lastName?: string | null | undefined;
1928
- salesChannelId?: string | null | undefined;
1929
- shippingAddress?: unknown;
1930
- billingAddress?: unknown;
1931
- regionId?: string | null | undefined;
1932
- completedAt?: string | null | undefined;
1933
- }, Error>;
1934
- useGetCartCheckout: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<{
1935
- cart: {
1936
- id: string;
1937
- items: {
1938
- id: string;
1939
- quantity: number;
1940
- variantId: string;
1941
- unitPrice: number;
1942
- bundleItems: {
1943
- productId: string;
1944
- quantity: number;
1945
- variantId: string;
1946
- productName: string;
1947
- sku?: string | null | undefined;
1948
- imageUrl?: string | null | undefined;
1949
- brand?: string | null | undefined;
1950
- variantName?: string | null | undefined;
1951
- }[];
1952
- title: string;
1953
- variantLabel?: string | null | undefined;
1954
- thumbnail?: string | null | undefined;
1955
- variantSku?: string | null | undefined;
1956
- }[];
1957
- currencyCode: string;
1958
- metadata: Record<string, unknown>;
1959
- promotionCodes: string[];
1960
- shippingMethods: unknown[];
1961
- totals: {
1962
- total: number;
1963
- subtotal: number;
1964
- discountTotal: number;
1965
- shippingTotal: number;
1966
- taxTotal: number;
1967
- warrantyTotal: number;
1968
- };
1969
- phone?: string | null | undefined;
1970
- email?: string | null | undefined;
1971
- firstName?: string | null | undefined;
1972
- lastName?: string | null | undefined;
1973
- salesChannelId?: string | null | undefined;
1974
- shippingAddress?: unknown;
1975
- billingAddress?: unknown;
1976
- regionId?: string | null | undefined;
1977
- completedAt?: string | null | undefined;
1978
- };
1979
- paymentMethods: {
1980
- methods: {
1981
- code: string;
1982
- name: string;
1983
- isDefault: boolean;
1984
- sortOrder: number;
1985
- isActive: boolean;
1986
- kind: string;
1987
- isManual: boolean;
1988
- description?: string | null | undefined;
1989
- phoneNumber?: string | null | undefined;
1990
- accountHolder?: string | null | undefined;
1991
- qrImageUrl?: string | null | undefined;
1992
- }[];
1993
- };
1994
- }, Error>;
1995
- useUpdateCartBuyer: () => _tanstack_react_query.UseMutationResult<{
1996
- id: string;
1997
- items: {
1998
- id: string;
1999
- quantity: number;
2000
- variantId: string;
2001
- unitPrice: number;
2002
- bundleItems: {
2003
- productId: string;
2004
- quantity: number;
2005
- variantId: string;
2006
- productName: string;
2007
- sku?: string | null | undefined;
2008
- imageUrl?: string | null | undefined;
2009
- brand?: string | null | undefined;
2010
- variantName?: string | null | undefined;
2011
- }[];
2012
- title: string;
2013
- variantLabel?: string | null | undefined;
2014
- thumbnail?: string | null | undefined;
2015
- variantSku?: string | null | undefined;
2016
- }[];
2017
- currencyCode: string;
2018
- metadata: Record<string, unknown>;
2019
- promotionCodes: string[];
2020
- shippingMethods: unknown[];
2021
- totals: {
2022
- total: number;
2023
- subtotal: number;
2024
- discountTotal: number;
2025
- shippingTotal: number;
2026
- taxTotal: number;
2027
- warrantyTotal: number;
2028
- };
2029
- phone?: string | null | undefined;
2030
- email?: string | null | undefined;
2031
- firstName?: string | null | undefined;
2032
- lastName?: string | null | undefined;
2033
- salesChannelId?: string | null | undefined;
2034
- shippingAddress?: unknown;
2035
- billingAddress?: unknown;
2036
- regionId?: string | null | undefined;
2037
- completedAt?: string | null | undefined;
2038
- }, Error, {
2039
- data: CartBuyerRequest$1;
2040
- cartId: string;
2041
- }, unknown>;
2042
- useUpdateCartAddresses: () => _tanstack_react_query.UseMutationResult<{
2043
- id: string;
2044
- items: {
2045
- id: string;
2046
- quantity: number;
2047
- variantId: string;
2048
- unitPrice: number;
2049
- bundleItems: {
2050
- productId: string;
2051
- quantity: number;
2052
- variantId: string;
2053
- productName: string;
2054
- sku?: string | null | undefined;
2055
- imageUrl?: string | null | undefined;
2056
- brand?: string | null | undefined;
2057
- variantName?: string | null | undefined;
2058
- }[];
2059
- title: string;
2060
- variantLabel?: string | null | undefined;
2061
- thumbnail?: string | null | undefined;
2062
- variantSku?: string | null | undefined;
2063
- }[];
2064
- currencyCode: string;
2065
- metadata: Record<string, unknown>;
2066
- promotionCodes: string[];
2067
- shippingMethods: unknown[];
2068
- totals: {
2069
- total: number;
2070
- subtotal: number;
2071
- discountTotal: number;
2072
- shippingTotal: number;
2073
- taxTotal: number;
2074
- warrantyTotal: number;
2075
- };
2076
- phone?: string | null | undefined;
2077
- email?: string | null | undefined;
2078
- firstName?: string | null | undefined;
2079
- lastName?: string | null | undefined;
2080
- salesChannelId?: string | null | undefined;
2081
- shippingAddress?: unknown;
2082
- billingAddress?: unknown;
2083
- regionId?: string | null | undefined;
2084
- completedAt?: string | null | undefined;
2085
- }, Error, {
2086
- data: CartAddressesRequest$1;
2087
- cartId: string;
2088
- }, unknown>;
2089
- useAddCartItem: () => _tanstack_react_query.UseMutationResult<{
2090
- id: string;
2091
- items: {
2092
- id: string;
2093
- quantity: number;
2094
- variantId: string;
2095
- unitPrice: number;
2096
- bundleItems: {
2097
- productId: string;
2098
- quantity: number;
2099
- variantId: string;
2100
- productName: string;
2101
- sku?: string | null | undefined;
2102
- imageUrl?: string | null | undefined;
2103
- brand?: string | null | undefined;
2104
- variantName?: string | null | undefined;
2105
- }[];
2106
- title: string;
2107
- variantLabel?: string | null | undefined;
2108
- thumbnail?: string | null | undefined;
2109
- variantSku?: string | null | undefined;
2110
- }[];
2111
- currencyCode: string;
2112
- metadata: Record<string, unknown>;
2113
- promotionCodes: string[];
2114
- shippingMethods: unknown[];
2115
- totals: {
2116
- total: number;
2117
- subtotal: number;
2118
- discountTotal: number;
2119
- shippingTotal: number;
2120
- taxTotal: number;
2121
- warrantyTotal: number;
2122
- };
2123
- phone?: string | null | undefined;
2124
- email?: string | null | undefined;
2125
- firstName?: string | null | undefined;
2126
- lastName?: string | null | undefined;
2127
- salesChannelId?: string | null | undefined;
2128
- shippingAddress?: unknown;
2129
- billingAddress?: unknown;
2130
- regionId?: string | null | undefined;
2131
- completedAt?: string | null | undefined;
2132
- }, Error, CartItemRequest & {
2133
- cartId: string;
2134
- }, unknown>;
2135
- useCheckoutCart: () => _tanstack_react_query.UseMutationResult<zod.objectOutputType<{
2136
- publicKey: zod.ZodOptional<zod.ZodString>;
2137
- publishableKey: zod.ZodOptional<zod.ZodString>;
2138
- stripePublicKey: zod.ZodOptional<zod.ZodString>;
2139
- clientSecret: zod.ZodOptional<zod.ZodString>;
2140
- intentClientSecret: zod.ZodOptional<zod.ZodString>;
2141
- orderId: zod.ZodOptional<zod.ZodString>;
2142
- orderGroup: zod.ZodOptional<zod.ZodString>;
2143
- orderIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2144
- payment: zod.ZodOptional<zod.ZodObject<{
2145
- transactionId: zod.ZodString;
2146
- paymentMethodCode: zod.ZodString;
2147
- providerId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2148
- status: zod.ZodString;
2149
- amount: zod.ZodNumber;
2150
- reference: zod.ZodString;
2151
- actionType: zod.ZodString;
2152
- receiptUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2153
- action: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2154
- publicConfiguration: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2155
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2156
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2157
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2158
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2159
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2160
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2161
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2162
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2163
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2164
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2165
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2166
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2167
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2168
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2169
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2170
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2171
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2172
- }, zod.ZodTypeAny, "passthrough">>>>;
2173
- url: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2174
- html: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2175
- clientSecret: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2176
- qrCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2177
- expiresAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2178
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2179
- publicConfiguration: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2180
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2181
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2182
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2183
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2184
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2185
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2186
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2187
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2188
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2189
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2190
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2191
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2192
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2193
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2194
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2195
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2196
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2197
- }, zod.ZodTypeAny, "passthrough">>>>;
2198
- url: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2199
- html: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2200
- clientSecret: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2201
- qrCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2202
- expiresAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2203
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2204
- publicConfiguration: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2205
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2206
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2207
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2208
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2209
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2210
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2211
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2212
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2213
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2214
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2215
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2216
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2217
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2218
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2219
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2220
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2221
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2222
- }, zod.ZodTypeAny, "passthrough">>>>;
2223
- url: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2224
- html: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2225
- clientSecret: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2226
- qrCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2227
- expiresAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2228
- }, zod.ZodTypeAny, "passthrough">>>>;
2229
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2230
- transactionId: zod.ZodString;
2231
- paymentMethodCode: zod.ZodString;
2232
- providerId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2233
- status: zod.ZodString;
2234
- amount: zod.ZodNumber;
2235
- reference: zod.ZodString;
2236
- actionType: zod.ZodString;
2237
- receiptUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2238
- action: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2239
- publicConfiguration: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2240
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2241
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2242
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2243
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2244
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2245
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2246
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2247
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2248
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2249
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2250
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2251
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2252
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2253
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2254
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2255
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2256
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2257
- }, zod.ZodTypeAny, "passthrough">>>>;
2258
- url: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2259
- html: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2260
- clientSecret: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2261
- qrCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2262
- expiresAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2263
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2264
- publicConfiguration: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2265
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2266
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2267
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2268
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2269
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2270
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2271
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2272
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2273
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2274
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2275
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2276
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2277
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2278
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2279
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2280
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2281
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2282
- }, zod.ZodTypeAny, "passthrough">>>>;
2283
- url: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2284
- html: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2285
- clientSecret: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2286
- qrCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2287
- expiresAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2288
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2289
- publicConfiguration: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2290
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2291
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2292
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2293
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2294
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2295
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2296
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2297
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2298
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2299
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2300
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2301
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2302
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2303
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2304
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2305
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2306
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2307
- }, zod.ZodTypeAny, "passthrough">>>>;
2308
- url: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2309
- html: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2310
- clientSecret: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2311
- qrCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2312
- expiresAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2313
- }, zod.ZodTypeAny, "passthrough">>>>;
2314
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2315
- transactionId: zod.ZodString;
2316
- paymentMethodCode: zod.ZodString;
2317
- providerId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2318
- status: zod.ZodString;
2319
- amount: zod.ZodNumber;
2320
- reference: zod.ZodString;
2321
- actionType: zod.ZodString;
2322
- receiptUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2323
- action: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2324
- publicConfiguration: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2325
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2326
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2327
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2328
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2329
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2330
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2331
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2332
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2333
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2334
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2335
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2336
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2337
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2338
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2339
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2340
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2341
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2342
- }, zod.ZodTypeAny, "passthrough">>>>;
2343
- url: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2344
- html: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2345
- clientSecret: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2346
- qrCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2347
- expiresAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2348
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2349
- publicConfiguration: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2350
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2351
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2352
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2353
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2354
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2355
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2356
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2357
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2358
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2359
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2360
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2361
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2362
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2363
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2364
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2365
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2366
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2367
- }, zod.ZodTypeAny, "passthrough">>>>;
2368
- url: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2369
- html: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2370
- clientSecret: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2371
- qrCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2372
- expiresAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2373
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2374
- publicConfiguration: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
2375
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2376
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2377
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2378
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2379
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2380
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2381
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2382
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2383
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2384
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2385
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2386
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2387
- publishableKey: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2388
- checkoutMode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2389
- phoneNumber: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2390
- accountHolder: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2391
- qrImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2392
- }, zod.ZodTypeAny, "passthrough">>>>;
2393
- url: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2394
- html: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2395
- clientSecret: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2396
- qrCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2397
- expiresAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2398
- }, zod.ZodTypeAny, "passthrough">>>>;
2399
- }, zod.ZodTypeAny, "passthrough">>>;
2400
- cart: zod.ZodOptional<zod.ZodUnknown>;
2401
- }, zod.ZodTypeAny, "passthrough">, Error, {
2402
- data: CartCheckoutRequest$1;
2403
- cartId: string;
2404
- }, unknown>;
2405
- useUploadPaymentReceipt: () => _tanstack_react_query.UseMutationResult<{
2406
- url: string;
2407
- id: string;
2408
- }, Error, {
2409
- cartId: string;
2410
- file: File;
2411
- }, unknown>;
2412
- useGetCartPaymentMethods: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<{
2413
- methods: {
2414
- code: string;
2415
- name: string;
2416
- isDefault: boolean;
2417
- sortOrder: number;
2418
- isActive: boolean;
2419
- kind: string;
2420
- isManual: boolean;
2421
- description?: string | null | undefined;
2422
- phoneNumber?: string | null | undefined;
2423
- accountHolder?: string | null | undefined;
2424
- qrImageUrl?: string | null | undefined;
2425
- }[];
2426
- }, Error>;
2427
- useGetShippingOptions: (cartId: string | null | undefined, postalCode: string | undefined, enabled: boolean) => _tanstack_react_query.UseQueryResult<{
2428
- groups: zod.objectOutputType<{
2429
- sellerId: zod.ZodString;
2430
- shippingProfileId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2431
- orderAmount: zod.ZodOptional<zod.ZodNumber>;
2432
- totalWeight: zod.ZodOptional<zod.ZodNumber>;
2433
- itemIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2434
- rates: zod.ZodArray<zod.ZodObject<{
2435
- shippingMethodId: zod.ZodString;
2436
- name: zod.ZodString;
2437
- displayName: zod.ZodOptional<zod.ZodString>;
2438
- type: zod.ZodOptional<zod.ZodString>;
2439
- price: zod.ZodNumber;
2440
- currency: zod.ZodOptional<zod.ZodString>;
2441
- sortOrder: zod.ZodOptional<zod.ZodNumber>;
2442
- rateId: zod.ZodString;
2443
- description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2444
- deliveryLocationId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2445
- deliveryLocationName: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2446
- estimatedDeliveryDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2447
- serviceCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2448
- metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2449
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2450
- shippingMethodId: zod.ZodString;
2451
- name: zod.ZodString;
2452
- displayName: zod.ZodOptional<zod.ZodString>;
2453
- type: zod.ZodOptional<zod.ZodString>;
2454
- price: zod.ZodNumber;
2455
- currency: zod.ZodOptional<zod.ZodString>;
2456
- sortOrder: zod.ZodOptional<zod.ZodNumber>;
2457
- rateId: zod.ZodString;
2458
- description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2459
- deliveryLocationId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2460
- deliveryLocationName: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2461
- estimatedDeliveryDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2462
- serviceCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2463
- metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2464
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2465
- shippingMethodId: zod.ZodString;
2466
- name: zod.ZodString;
2467
- displayName: zod.ZodOptional<zod.ZodString>;
2468
- type: zod.ZodOptional<zod.ZodString>;
2469
- price: zod.ZodNumber;
2470
- currency: zod.ZodOptional<zod.ZodString>;
2471
- sortOrder: zod.ZodOptional<zod.ZodNumber>;
2472
- rateId: zod.ZodString;
2473
- description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2474
- deliveryLocationId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2475
- deliveryLocationName: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2476
- estimatedDeliveryDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2477
- serviceCode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2478
- metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2479
- }, zod.ZodTypeAny, "passthrough">>, "many">;
2480
- }, zod.ZodTypeAny, "passthrough">[];
2481
- }, Error>;
2482
- usePutCartShippingMethod: () => _tanstack_react_query.UseMutationResult<{
2483
- id: string;
2484
- items: {
2485
- id: string;
2486
- quantity: number;
2487
- variantId: string;
2488
- unitPrice: number;
2489
- bundleItems: {
2490
- productId: string;
2491
- quantity: number;
2492
- variantId: string;
2493
- productName: string;
2494
- sku?: string | null | undefined;
2495
- imageUrl?: string | null | undefined;
2496
- brand?: string | null | undefined;
2497
- variantName?: string | null | undefined;
2498
- }[];
2499
- title: string;
2500
- variantLabel?: string | null | undefined;
2501
- thumbnail?: string | null | undefined;
2502
- variantSku?: string | null | undefined;
2503
- }[];
2504
- currencyCode: string;
2505
- metadata: Record<string, unknown>;
2506
- promotionCodes: string[];
2507
- shippingMethods: unknown[];
2508
- totals: {
2509
- total: number;
2510
- subtotal: number;
2511
- discountTotal: number;
2512
- shippingTotal: number;
2513
- taxTotal: number;
2514
- warrantyTotal: number;
2515
- };
2516
- phone?: string | null | undefined;
2517
- email?: string | null | undefined;
2518
- firstName?: string | null | undefined;
2519
- lastName?: string | null | undefined;
2520
- salesChannelId?: string | null | undefined;
2521
- shippingAddress?: unknown;
2522
- billingAddress?: unknown;
2523
- regionId?: string | null | undefined;
2524
- completedAt?: string | null | undefined;
2525
- }, Error, {
2526
- cartId: string;
2527
- data: CartShippingMethodPutRequest$1;
2528
- }, unknown>;
2529
- useAddCartCoupon: () => _tanstack_react_query.UseMutationResult<{
2530
- id: string;
2531
- items: {
2532
- id: string;
2533
- quantity: number;
2534
- variantId: string;
2535
- unitPrice: number;
2536
- bundleItems: {
2537
- productId: string;
2538
- quantity: number;
2539
- variantId: string;
2540
- productName: string;
2541
- sku?: string | null | undefined;
2542
- imageUrl?: string | null | undefined;
2543
- brand?: string | null | undefined;
2544
- variantName?: string | null | undefined;
2545
- }[];
2546
- title: string;
2547
- variantLabel?: string | null | undefined;
2548
- thumbnail?: string | null | undefined;
2549
- variantSku?: string | null | undefined;
2550
- }[];
2551
- currencyCode: string;
2552
- metadata: Record<string, unknown>;
2553
- promotionCodes: string[];
2554
- shippingMethods: unknown[];
2555
- totals: {
2556
- total: number;
2557
- subtotal: number;
2558
- discountTotal: number;
2559
- shippingTotal: number;
2560
- taxTotal: number;
2561
- warrantyTotal: number;
2562
- };
2563
- phone?: string | null | undefined;
2564
- email?: string | null | undefined;
2565
- firstName?: string | null | undefined;
2566
- lastName?: string | null | undefined;
2567
- salesChannelId?: string | null | undefined;
2568
- shippingAddress?: unknown;
2569
- billingAddress?: unknown;
2570
- regionId?: string | null | undefined;
2571
- completedAt?: string | null | undefined;
2572
- }, Error, {
2573
- cartId: string;
2574
- data: CartCouponRequest$1;
2575
- }, unknown>;
2576
- useRemoveCartCoupon: () => _tanstack_react_query.UseMutationResult<{
2577
- id: string;
2578
- items: {
2579
- id: string;
2580
- quantity: number;
2581
- variantId: string;
2582
- unitPrice: number;
2583
- bundleItems: {
2584
- productId: string;
2585
- quantity: number;
2586
- variantId: string;
2587
- productName: string;
2588
- sku?: string | null | undefined;
2589
- imageUrl?: string | null | undefined;
2590
- brand?: string | null | undefined;
2591
- variantName?: string | null | undefined;
2592
- }[];
2593
- title: string;
2594
- variantLabel?: string | null | undefined;
2595
- thumbnail?: string | null | undefined;
2596
- variantSku?: string | null | undefined;
2597
- }[];
2598
- currencyCode: string;
2599
- metadata: Record<string, unknown>;
2600
- promotionCodes: string[];
2601
- shippingMethods: unknown[];
2602
- totals: {
2603
- total: number;
2604
- subtotal: number;
2605
- discountTotal: number;
2606
- shippingTotal: number;
2607
- taxTotal: number;
2608
- warrantyTotal: number;
2609
- };
2610
- phone?: string | null | undefined;
2611
- email?: string | null | undefined;
2612
- firstName?: string | null | undefined;
2613
- lastName?: string | null | undefined;
2614
- salesChannelId?: string | null | undefined;
2615
- shippingAddress?: unknown;
2616
- billingAddress?: unknown;
2617
- regionId?: string | null | undefined;
2618
- completedAt?: string | null | undefined;
2619
- }, Error, {
2620
- cartId: string;
2621
- code: string;
2622
- }, unknown>;
2623
- };
2624
-
2625
- declare const usePublicStore: () => zod.objectOutputType<{
2626
- schemaVersion: zod.ZodNumber;
2627
- generatedAt: zod.ZodString;
2628
- store: zod.ZodObject<{
2629
- id: zod.ZodString;
2630
- tenantId: zod.ZodOptional<zod.ZodString>;
2631
- sellerId: zod.ZodOptional<zod.ZodString>;
2632
- plan: zod.ZodOptional<zod.ZodString>;
2633
- storageLimitBytes: zod.ZodOptional<zod.ZodNumber>;
2634
- monthlyTransferLimitBytes: zod.ZodOptional<zod.ZodNumber>;
2635
- maxUploadSizeBytes: zod.ZodOptional<zod.ZodNumber>;
2636
- maxStores: zod.ZodOptional<zod.ZodNumber>;
2637
- maxMembers: zod.ZodOptional<zod.ZodNumber>;
2638
- maxProducts: zod.ZodOptional<zod.ZodNumber>;
2639
- maxCategories: zod.ZodOptional<zod.ZodNumber>;
2640
- maxBrands: zod.ZodOptional<zod.ZodNumber>;
2641
- maxAttributes: zod.ZodOptional<zod.ZodNumber>;
2642
- maxCollections: zod.ZodOptional<zod.ZodNumber>;
2643
- enableApi: zod.ZodOptional<zod.ZodBoolean>;
2644
- isActive: zod.ZodOptional<zod.ZodBoolean>;
2645
- name: zod.ZodString;
2646
- description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2647
- avatarUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2648
- logo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2649
- icon: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2650
- slug: zod.ZodString;
2651
- domain: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2652
- domains: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2653
- timeZone: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2654
- currency: zod.ZodString;
2655
- language: zod.ZodString;
2656
- visibility: zod.ZodOptional<zod.ZodString>;
2657
- privateAccessHash: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2658
- privateAccessVersion: zod.ZodOptional<zod.ZodNumber>;
2659
- themeConfig: zod.ZodOptional<zod.ZodObject<{
2660
- name: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2661
- mode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2662
- colors: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2663
- fonts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2664
- assets: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2665
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2666
- name: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2667
- mode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2668
- colors: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2669
- fonts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2670
- assets: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2671
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2672
- name: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2673
- mode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2674
- colors: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2675
- fonts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2676
- assets: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2677
- }, zod.ZodTypeAny, "passthrough">>>;
2678
- featuresEnabled: zod.ZodOptional<zod.ZodObject<{
2679
- flags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2680
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2681
- flags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2682
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2683
- flags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2684
- }, zod.ZodTypeAny, "passthrough">>>;
2685
- checkoutSettings: zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{
2686
- allowGuestCheckout: zod.ZodOptional<zod.ZodBoolean>;
2687
- identityScope: zod.ZodOptional<zod.ZodEnum<["store", "tenant", "global"]>>;
2688
- signInMethods: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2689
- }, "strip", zod.ZodTypeAny, {
2690
- allowGuestCheckout?: boolean | undefined;
2691
- identityScope?: "store" | "tenant" | "global" | undefined;
2692
- signInMethods?: string[] | undefined;
2693
- }, {
2694
- allowGuestCheckout?: boolean | undefined;
2695
- identityScope?: "store" | "tenant" | "global" | undefined;
2696
- signInMethods?: string[] | undefined;
2697
- }>>>;
2698
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2699
- id: zod.ZodString;
2700
- tenantId: zod.ZodOptional<zod.ZodString>;
2701
- sellerId: zod.ZodOptional<zod.ZodString>;
2702
- plan: zod.ZodOptional<zod.ZodString>;
2703
- storageLimitBytes: zod.ZodOptional<zod.ZodNumber>;
2704
- monthlyTransferLimitBytes: zod.ZodOptional<zod.ZodNumber>;
2705
- maxUploadSizeBytes: zod.ZodOptional<zod.ZodNumber>;
2706
- maxStores: zod.ZodOptional<zod.ZodNumber>;
2707
- maxMembers: zod.ZodOptional<zod.ZodNumber>;
2708
- maxProducts: zod.ZodOptional<zod.ZodNumber>;
2709
- maxCategories: zod.ZodOptional<zod.ZodNumber>;
2710
- maxBrands: zod.ZodOptional<zod.ZodNumber>;
2711
- maxAttributes: zod.ZodOptional<zod.ZodNumber>;
2712
- maxCollections: zod.ZodOptional<zod.ZodNumber>;
2713
- enableApi: zod.ZodOptional<zod.ZodBoolean>;
2714
- isActive: zod.ZodOptional<zod.ZodBoolean>;
2715
- name: zod.ZodString;
2716
- description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2717
- avatarUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2718
- logo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2719
- icon: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2720
- slug: zod.ZodString;
2721
- domain: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2722
- domains: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2723
- timeZone: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2724
- currency: zod.ZodString;
2725
- language: zod.ZodString;
2726
- visibility: zod.ZodOptional<zod.ZodString>;
2727
- privateAccessHash: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2728
- privateAccessVersion: zod.ZodOptional<zod.ZodNumber>;
2729
- themeConfig: zod.ZodOptional<zod.ZodObject<{
2730
- name: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2731
- mode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2732
- colors: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2733
- fonts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2734
- assets: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2735
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2736
- name: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2737
- mode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2738
- colors: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2739
- fonts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2740
- assets: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2741
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2742
- name: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2743
- mode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2744
- colors: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2745
- fonts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2746
- assets: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2747
- }, zod.ZodTypeAny, "passthrough">>>;
2748
- featuresEnabled: zod.ZodOptional<zod.ZodObject<{
2749
- flags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2750
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2751
- flags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2752
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2753
- flags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2754
- }, zod.ZodTypeAny, "passthrough">>>;
2755
- checkoutSettings: zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{
2756
- allowGuestCheckout: zod.ZodOptional<zod.ZodBoolean>;
2757
- identityScope: zod.ZodOptional<zod.ZodEnum<["store", "tenant", "global"]>>;
2758
- signInMethods: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2759
- }, "strip", zod.ZodTypeAny, {
2760
- allowGuestCheckout?: boolean | undefined;
2761
- identityScope?: "store" | "tenant" | "global" | undefined;
2762
- signInMethods?: string[] | undefined;
2763
- }, {
2764
- allowGuestCheckout?: boolean | undefined;
2765
- identityScope?: "store" | "tenant" | "global" | undefined;
2766
- signInMethods?: string[] | undefined;
2767
- }>>>;
2768
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2769
- id: zod.ZodString;
2770
- tenantId: zod.ZodOptional<zod.ZodString>;
2771
- sellerId: zod.ZodOptional<zod.ZodString>;
2772
- plan: zod.ZodOptional<zod.ZodString>;
2773
- storageLimitBytes: zod.ZodOptional<zod.ZodNumber>;
2774
- monthlyTransferLimitBytes: zod.ZodOptional<zod.ZodNumber>;
2775
- maxUploadSizeBytes: zod.ZodOptional<zod.ZodNumber>;
2776
- maxStores: zod.ZodOptional<zod.ZodNumber>;
2777
- maxMembers: zod.ZodOptional<zod.ZodNumber>;
2778
- maxProducts: zod.ZodOptional<zod.ZodNumber>;
2779
- maxCategories: zod.ZodOptional<zod.ZodNumber>;
2780
- maxBrands: zod.ZodOptional<zod.ZodNumber>;
2781
- maxAttributes: zod.ZodOptional<zod.ZodNumber>;
2782
- maxCollections: zod.ZodOptional<zod.ZodNumber>;
2783
- enableApi: zod.ZodOptional<zod.ZodBoolean>;
2784
- isActive: zod.ZodOptional<zod.ZodBoolean>;
2785
- name: zod.ZodString;
2786
- description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2787
- avatarUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2788
- logo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2789
- icon: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2790
- slug: zod.ZodString;
2791
- domain: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2792
- domains: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2793
- timeZone: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2794
- currency: zod.ZodString;
2795
- language: zod.ZodString;
2796
- visibility: zod.ZodOptional<zod.ZodString>;
2797
- privateAccessHash: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2798
- privateAccessVersion: zod.ZodOptional<zod.ZodNumber>;
2799
- themeConfig: zod.ZodOptional<zod.ZodObject<{
2800
- name: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2801
- mode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2802
- colors: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2803
- fonts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2804
- assets: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2805
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2806
- name: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2807
- mode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2808
- colors: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2809
- fonts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2810
- assets: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2811
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2812
- name: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2813
- mode: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2814
- colors: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2815
- fonts: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2816
- assets: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2817
- }, zod.ZodTypeAny, "passthrough">>>;
2818
- featuresEnabled: zod.ZodOptional<zod.ZodObject<{
2819
- flags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2820
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2821
- flags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2822
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2823
- flags: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2824
- }, zod.ZodTypeAny, "passthrough">>>;
2825
- checkoutSettings: zod.ZodNullable<zod.ZodOptional<zod.ZodObject<{
2826
- allowGuestCheckout: zod.ZodOptional<zod.ZodBoolean>;
2827
- identityScope: zod.ZodOptional<zod.ZodEnum<["store", "tenant", "global"]>>;
2828
- signInMethods: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2829
- }, "strip", zod.ZodTypeAny, {
2830
- allowGuestCheckout?: boolean | undefined;
2831
- identityScope?: "store" | "tenant" | "global" | undefined;
2832
- signInMethods?: string[] | undefined;
2833
- }, {
2834
- allowGuestCheckout?: boolean | undefined;
2835
- identityScope?: "store" | "tenant" | "global" | undefined;
2836
- signInMethods?: string[] | undefined;
2837
- }>>>;
2838
- }, zod.ZodTypeAny, "passthrough">>;
2839
- cms: zod.ZodObject<{
2840
- settings: zod.ZodObject<{
2841
- themeKey: zod.ZodOptional<zod.ZodString>;
2842
- branding: zod.ZodOptional<zod.ZodObject<{
2843
- logoUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2844
- logoDarkUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2845
- faviconUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2846
- socialImageUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2847
- }, "strip", zod.ZodTypeAny, {
2848
- logoUrl?: string | null | undefined;
2849
- logoDarkUrl?: string | null | undefined;
2850
- faviconUrl?: string | null | undefined;
2851
- socialImageUrl?: string | null | undefined;
2852
- }, {
2853
- logoUrl?: string | null | undefined;
2854
- logoDarkUrl?: string | null | undefined;
2855
- faviconUrl?: string | null | undefined;
2856
- socialImageUrl?: string | null | undefined;
2857
- }>>;
2858
- seo: zod.ZodOptional<zod.ZodObject<{
2859
- siteName: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2860
- metaTitle: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2861
- metaDescription: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2862
- titleTemplate: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2863
- robotsIndex: zod.ZodOptional<zod.ZodBoolean>;
2864
- }, "strip", zod.ZodTypeAny, {
2865
- siteName?: string | null | undefined;
2866
- metaTitle?: string | null | undefined;
2867
- metaDescription?: string | null | undefined;
2868
- titleTemplate?: string | null | undefined;
2869
- robotsIndex?: boolean | undefined;
2870
- }, {
2871
- siteName?: string | null | undefined;
2872
- metaTitle?: string | null | undefined;
2873
- metaDescription?: string | null | undefined;
2874
- titleTemplate?: string | null | undefined;
2875
- robotsIndex?: boolean | undefined;
2876
- }>>;
2877
- contact: zod.ZodOptional<zod.ZodObject<{
2878
- supportEmail: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2879
- phone: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2880
- whatsapp: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2881
- address: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2882
- socialLinks: zod.ZodOptional<zod.ZodObject<{
2883
- instagram: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2884
- facebook: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2885
- tiktok: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2886
- youtube: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2887
- x: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2888
- }, "strip", zod.ZodTypeAny, {
2889
- instagram?: string | null | undefined;
2890
- facebook?: string | null | undefined;
2891
- tiktok?: string | null | undefined;
2892
- youtube?: string | null | undefined;
2893
- x?: string | null | undefined;
2894
- }, {
2895
- instagram?: string | null | undefined;
2896
- facebook?: string | null | undefined;
2897
- tiktok?: string | null | undefined;
2898
- youtube?: string | null | undefined;
2899
- x?: string | null | undefined;
2900
- }>>;
2901
- }, "strip", zod.ZodTypeAny, {
2902
- supportEmail?: string | null | undefined;
2903
- phone?: string | null | undefined;
2904
- whatsapp?: string | null | undefined;
2905
- address?: string | null | undefined;
2906
- socialLinks?: {
2907
- instagram?: string | null | undefined;
2908
- facebook?: string | null | undefined;
2909
- tiktok?: string | null | undefined;
2910
- youtube?: string | null | undefined;
2911
- x?: string | null | undefined;
2912
- } | undefined;
2913
- }, {
2914
- supportEmail?: string | null | undefined;
2915
- phone?: string | null | undefined;
2916
- whatsapp?: string | null | undefined;
2917
- address?: string | null | undefined;
2918
- socialLinks?: {
2919
- instagram?: string | null | undefined;
2920
- facebook?: string | null | undefined;
2921
- tiktok?: string | null | undefined;
2922
- youtube?: string | null | undefined;
2923
- x?: string | null | undefined;
2924
- } | undefined;
2925
- }>>;
2926
- tracking: zod.ZodOptional<zod.ZodObject<{
2927
- googleAnalyticsMeasurementId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2928
- metaPixelId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2929
- googleTagManagerContainerId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2930
- }, "strip", zod.ZodTypeAny, {
2931
- googleAnalyticsMeasurementId?: string | null | undefined;
2932
- metaPixelId?: string | null | undefined;
2933
- googleTagManagerContainerId?: string | null | undefined;
2934
- }, {
2935
- googleAnalyticsMeasurementId?: string | null | undefined;
2936
- metaPixelId?: string | null | undefined;
2937
- googleTagManagerContainerId?: string | null | undefined;
2938
- }>>;
2939
- customScripts: zod.ZodOptional<zod.ZodObject<{
2940
- enabled: zod.ZodOptional<zod.ZodBoolean>;
2941
- head: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2942
- bodyEnd: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2943
- }, "strip", zod.ZodTypeAny, {
2944
- head?: string | null | undefined;
2945
- enabled?: boolean | undefined;
2946
- bodyEnd?: string | null | undefined;
2947
- }, {
2948
- head?: string | null | undefined;
2949
- enabled?: boolean | undefined;
2950
- bodyEnd?: string | null | undefined;
2951
- }>>;
2952
- updatedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2953
- }, "strip", zod.ZodTypeAny, {
2954
- updatedOn?: string | null | undefined;
2955
- seo?: {
2956
- siteName?: string | null | undefined;
2957
- metaTitle?: string | null | undefined;
2958
- metaDescription?: string | null | undefined;
2959
- titleTemplate?: string | null | undefined;
2960
- robotsIndex?: boolean | undefined;
2961
- } | undefined;
2962
- themeKey?: string | undefined;
2963
- branding?: {
2964
- logoUrl?: string | null | undefined;
2965
- logoDarkUrl?: string | null | undefined;
2966
- faviconUrl?: string | null | undefined;
2967
- socialImageUrl?: string | null | undefined;
2968
- } | undefined;
2969
- contact?: {
2970
- supportEmail?: string | null | undefined;
2971
- phone?: string | null | undefined;
2972
- whatsapp?: string | null | undefined;
2973
- address?: string | null | undefined;
2974
- socialLinks?: {
2975
- instagram?: string | null | undefined;
2976
- facebook?: string | null | undefined;
2977
- tiktok?: string | null | undefined;
2978
- youtube?: string | null | undefined;
2979
- x?: string | null | undefined;
2980
- } | undefined;
2981
- } | undefined;
2982
- tracking?: {
2983
- googleAnalyticsMeasurementId?: string | null | undefined;
2984
- metaPixelId?: string | null | undefined;
2985
- googleTagManagerContainerId?: string | null | undefined;
2986
- } | undefined;
2987
- customScripts?: {
2988
- head?: string | null | undefined;
2989
- enabled?: boolean | undefined;
2990
- bodyEnd?: string | null | undefined;
2991
- } | undefined;
2992
- }, {
2993
- updatedOn?: string | null | undefined;
2994
- seo?: {
2995
- siteName?: string | null | undefined;
2996
- metaTitle?: string | null | undefined;
2997
- metaDescription?: string | null | undefined;
2998
- titleTemplate?: string | null | undefined;
2999
- robotsIndex?: boolean | undefined;
3000
- } | undefined;
3001
- themeKey?: string | undefined;
3002
- branding?: {
3003
- logoUrl?: string | null | undefined;
3004
- logoDarkUrl?: string | null | undefined;
3005
- faviconUrl?: string | null | undefined;
3006
- socialImageUrl?: string | null | undefined;
3007
- } | undefined;
3008
- contact?: {
3009
- supportEmail?: string | null | undefined;
3010
- phone?: string | null | undefined;
3011
- whatsapp?: string | null | undefined;
3012
- address?: string | null | undefined;
3013
- socialLinks?: {
3014
- instagram?: string | null | undefined;
3015
- facebook?: string | null | undefined;
3016
- tiktok?: string | null | undefined;
3017
- youtube?: string | null | undefined;
3018
- x?: string | null | undefined;
3019
- } | undefined;
3020
- } | undefined;
3021
- tracking?: {
3022
- googleAnalyticsMeasurementId?: string | null | undefined;
3023
- metaPixelId?: string | null | undefined;
3024
- googleTagManagerContainerId?: string | null | undefined;
3025
- } | undefined;
3026
- customScripts?: {
3027
- head?: string | null | undefined;
3028
- enabled?: boolean | undefined;
3029
- bodyEnd?: string | null | undefined;
3030
- } | undefined;
3031
- }>;
3032
- pages: zod.ZodArray<zod.ZodObject<{
3033
- id: zod.ZodString;
3034
- name: zod.ZodString;
3035
- slug: zod.ZodString;
3036
- layout: zod.ZodOptional<zod.ZodString>;
3037
- version: zod.ZodOptional<zod.ZodNumber>;
3038
- settings: zod.ZodNullable<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
3039
- sections: zod.ZodOptional<zod.ZodArray<zod.ZodUnknown, "many">>;
3040
- status: zod.ZodOptional<zod.ZodString>;
3041
- hasPublishedVersion: zod.ZodOptional<zod.ZodBoolean>;
3042
- publishedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3043
- publishedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3044
- createdOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3045
- updatedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3046
- createdBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3047
- updatedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3048
- lastModifiedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3049
- }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
3050
- id: zod.ZodString;
3051
- name: zod.ZodString;
3052
- slug: zod.ZodString;
3053
- layout: zod.ZodOptional<zod.ZodString>;
3054
- version: zod.ZodOptional<zod.ZodNumber>;
3055
- settings: zod.ZodNullable<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
3056
- sections: zod.ZodOptional<zod.ZodArray<zod.ZodUnknown, "many">>;
3057
- status: zod.ZodOptional<zod.ZodString>;
3058
- hasPublishedVersion: zod.ZodOptional<zod.ZodBoolean>;
3059
- publishedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3060
- publishedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3061
- createdOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3062
- updatedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3063
- createdBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3064
- updatedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3065
- lastModifiedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3066
- }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
3067
- id: zod.ZodString;
3068
- name: zod.ZodString;
3069
- slug: zod.ZodString;
3070
- layout: zod.ZodOptional<zod.ZodString>;
3071
- version: zod.ZodOptional<zod.ZodNumber>;
3072
- settings: zod.ZodNullable<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
3073
- sections: zod.ZodOptional<zod.ZodArray<zod.ZodUnknown, "many">>;
3074
- status: zod.ZodOptional<zod.ZodString>;
3075
- hasPublishedVersion: zod.ZodOptional<zod.ZodBoolean>;
3076
- publishedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3077
- publishedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3078
- createdOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3079
- updatedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3080
- createdBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3081
- updatedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3082
- lastModifiedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3083
- }, zod.ZodTypeAny, "passthrough">>, "many">;
3084
- }, "strip", zod.ZodTypeAny, {
3085
- settings: {
3086
- updatedOn?: string | null | undefined;
3087
- seo?: {
3088
- siteName?: string | null | undefined;
3089
- metaTitle?: string | null | undefined;
3090
- metaDescription?: string | null | undefined;
3091
- titleTemplate?: string | null | undefined;
3092
- robotsIndex?: boolean | undefined;
3093
- } | undefined;
3094
- themeKey?: string | undefined;
3095
- branding?: {
3096
- logoUrl?: string | null | undefined;
3097
- logoDarkUrl?: string | null | undefined;
3098
- faviconUrl?: string | null | undefined;
3099
- socialImageUrl?: string | null | undefined;
3100
- } | undefined;
3101
- contact?: {
3102
- supportEmail?: string | null | undefined;
3103
- phone?: string | null | undefined;
3104
- whatsapp?: string | null | undefined;
3105
- address?: string | null | undefined;
3106
- socialLinks?: {
3107
- instagram?: string | null | undefined;
3108
- facebook?: string | null | undefined;
3109
- tiktok?: string | null | undefined;
3110
- youtube?: string | null | undefined;
3111
- x?: string | null | undefined;
3112
- } | undefined;
3113
- } | undefined;
3114
- tracking?: {
3115
- googleAnalyticsMeasurementId?: string | null | undefined;
3116
- metaPixelId?: string | null | undefined;
3117
- googleTagManagerContainerId?: string | null | undefined;
3118
- } | undefined;
3119
- customScripts?: {
3120
- head?: string | null | undefined;
3121
- enabled?: boolean | undefined;
3122
- bodyEnd?: string | null | undefined;
3123
- } | undefined;
3124
- };
3125
- pages: zod.objectOutputType<{
3126
- id: zod.ZodString;
3127
- name: zod.ZodString;
3128
- slug: zod.ZodString;
3129
- layout: zod.ZodOptional<zod.ZodString>;
3130
- version: zod.ZodOptional<zod.ZodNumber>;
3131
- settings: zod.ZodNullable<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
3132
- sections: zod.ZodOptional<zod.ZodArray<zod.ZodUnknown, "many">>;
3133
- status: zod.ZodOptional<zod.ZodString>;
3134
- hasPublishedVersion: zod.ZodOptional<zod.ZodBoolean>;
3135
- publishedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3136
- publishedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3137
- createdOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3138
- updatedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3139
- createdBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3140
- updatedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3141
- lastModifiedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3142
- }, zod.ZodTypeAny, "passthrough">[];
3143
- }, {
3144
- settings: {
3145
- updatedOn?: string | null | undefined;
3146
- seo?: {
3147
- siteName?: string | null | undefined;
3148
- metaTitle?: string | null | undefined;
3149
- metaDescription?: string | null | undefined;
3150
- titleTemplate?: string | null | undefined;
3151
- robotsIndex?: boolean | undefined;
3152
- } | undefined;
3153
- themeKey?: string | undefined;
3154
- branding?: {
3155
- logoUrl?: string | null | undefined;
3156
- logoDarkUrl?: string | null | undefined;
3157
- faviconUrl?: string | null | undefined;
3158
- socialImageUrl?: string | null | undefined;
3159
- } | undefined;
3160
- contact?: {
3161
- supportEmail?: string | null | undefined;
3162
- phone?: string | null | undefined;
3163
- whatsapp?: string | null | undefined;
3164
- address?: string | null | undefined;
3165
- socialLinks?: {
3166
- instagram?: string | null | undefined;
3167
- facebook?: string | null | undefined;
3168
- tiktok?: string | null | undefined;
3169
- youtube?: string | null | undefined;
3170
- x?: string | null | undefined;
3171
- } | undefined;
3172
- } | undefined;
3173
- tracking?: {
3174
- googleAnalyticsMeasurementId?: string | null | undefined;
3175
- metaPixelId?: string | null | undefined;
3176
- googleTagManagerContainerId?: string | null | undefined;
3177
- } | undefined;
3178
- customScripts?: {
3179
- head?: string | null | undefined;
3180
- enabled?: boolean | undefined;
3181
- bodyEnd?: string | null | undefined;
3182
- } | undefined;
3183
- };
3184
- pages: zod.objectInputType<{
3185
- id: zod.ZodString;
3186
- name: zod.ZodString;
3187
- slug: zod.ZodString;
3188
- layout: zod.ZodOptional<zod.ZodString>;
3189
- version: zod.ZodOptional<zod.ZodNumber>;
3190
- settings: zod.ZodNullable<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
3191
- sections: zod.ZodOptional<zod.ZodArray<zod.ZodUnknown, "many">>;
3192
- status: zod.ZodOptional<zod.ZodString>;
3193
- hasPublishedVersion: zod.ZodOptional<zod.ZodBoolean>;
3194
- publishedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3195
- publishedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3196
- createdOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3197
- updatedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3198
- createdBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3199
- updatedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3200
- lastModifiedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3201
- }, zod.ZodTypeAny, "passthrough">[];
3202
- }>;
3203
- }, zod.ZodTypeAny, "passthrough"> | null;
37
+ declare function getPublicStoreFromHeaders(headerList: {
38
+ get(name: string): string | null;
39
+ }, options?: Omit<FetchPublicStoreSettingsOptions, "host">): Promise<PublicStoreResult>;
3204
40
 
3205
- export { type CustomerAddress, CustomerAddressSchema, type CustomerAddressUpsert, CustomerAddressUpsertSchema, type CustomerMe, CustomerMeSchema, type CustomerOrderDetailDto as CustomerOrderDetail, type CustomerOrderDetailDto, CustomerOrderDetailSchema, type CustomerOrderListItemDto as CustomerOrderListItem, type CustomerOrderListItemDto, CustomerOrderListItemSchema, type CustomerProfilePatch, CustomerProfilePatchSchema, type CustomerRegisterRequest, CustomerRegisterRequestSchema, ECOMIQ_CLIENTS_STORE_KV_BINDING, type PublicStoreSettingsSource, StoreApiClient, type StoreApiGetOptions, addCartCoupon, buildStorefrontKvSnapshotKey, checkoutCart, createCart, createCustomerAddress, createStoreApiClient, customerMeToProfilePatch, deleteCustomerAddress, getCart, getCartCheckout, getCartPaymentMethods, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getHostname, getPublicStore, getSharedOrderDraft, getShippingOptions, getStoreApiBaseUrl, getStoreApiClient, getStorefrontCollectionBySlug, getStorefrontCollections, getStorefrontPageBySlug, getStorefrontPagePreview, getStorefrontPages, getStorefrontProductBySlug, getStorefrontProducts, getStorefrontSettings, getStorefrontSettingsFromKv, isCartNotActiveApiError, normalizeStoreHost, patchCartAddresses, patchCartBuyer, patchCustomer, putCartShippingMethod, registerCustomer, removeCartCoupon, resolvePublicStoreSettingsSource, resolveStorefrontSettingsHost, setClientStoreId, setServerRequestOrigin, setServerStoreId, storeApiClient, updateCustomerAddress, uploadPaymentReceipt, usePublicStore, useStoreCart, useStoreCollections, useStorePages, useStoreProducts };
41
+ export { FetchPublicStoreSettingsOptions, PublicStoreResult, PublicStoreSettingsSource, getHostname, getPublicStore, getPublicStoreFromHeaders };