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