@ecomiq/storefront 1.1.4 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +3 -2
  2. package/dist/{chunk-EADDSNJS.js → chunk-64GLOWMJ.js} +14 -4
  3. package/dist/chunk-64GLOWMJ.js.map +1 -0
  4. package/dist/{chunk-3URTJY6X.js → chunk-AKD5IDEB.js} +16 -13
  5. package/dist/chunk-AKD5IDEB.js.map +1 -0
  6. package/dist/{chunk-YSD62KQM.js → chunk-EFEVJJWF.js} +102 -36
  7. package/dist/chunk-EFEVJJWF.js.map +1 -0
  8. package/dist/{chunk-6TMU4OXP.js → chunk-NAJQB5DN.js} +5 -7
  9. package/dist/chunk-NAJQB5DN.js.map +1 -0
  10. package/dist/{chunk-ASFU32ZM.js → chunk-OABDGTBI.js} +25 -8
  11. package/dist/chunk-OABDGTBI.js.map +1 -0
  12. package/dist/chunk-Q4U5OEUT.js +21 -0
  13. package/dist/chunk-Q4U5OEUT.js.map +1 -0
  14. package/dist/chunks/client.css +1 -1
  15. package/dist/chunks/client.css.map +1 -1
  16. package/dist/chunks/client.d.ts +1456 -228
  17. package/dist/chunks/client.js +559 -200
  18. package/dist/chunks/client.js.map +1 -1
  19. package/dist/chunks/config.js +3 -2
  20. package/dist/chunks/core-public.d.ts +2 -2
  21. package/dist/chunks/core-public.js +6 -12
  22. package/dist/chunks/core-public.js.map +1 -1
  23. package/dist/chunks/server-nextjs.d.ts +3 -3
  24. package/dist/chunks/server-nextjs.js +40 -14
  25. package/dist/chunks/server-nextjs.js.map +1 -1
  26. package/dist/chunks/server-tanstack.d.ts +3 -3
  27. package/dist/chunks/server-tanstack.js +15 -8
  28. package/dist/chunks/server-tanstack.js.map +1 -1
  29. package/dist/{collection-BHD4hhQa.d.ts → collection-DU7gREXS.d.ts} +491 -38
  30. package/dist/{ecomiq-oauth-password-plugin-gw2dPyYb.d.ts → ecomiq-oauth-password-plugin-B_gMdGuc.d.ts} +33 -31
  31. package/dist/nextjs/api.js +2 -1
  32. package/dist/nextjs/api.js.map +1 -1
  33. package/dist/nextjs.server.d.ts +17 -0
  34. package/dist/react/client.css +1 -1
  35. package/dist/tanstack/api.js +3 -2
  36. package/dist/tanstack/api.js.map +1 -1
  37. package/dist/tanstack.d.ts +0 -1
  38. package/dist/tanstack.server.d.ts +17 -0
  39. package/package.json +13 -3
  40. package/dist/chunk-3URTJY6X.js.map +0 -1
  41. package/dist/chunk-6TMU4OXP.js.map +0 -1
  42. package/dist/chunk-ASFU32ZM.js.map +0 -1
  43. package/dist/chunk-EADDSNJS.js.map +0 -1
  44. package/dist/chunk-YSD62KQM.js.map +0 -1
@@ -85,6 +85,124 @@ declare class StoreApiClient {
85
85
  /** Cliente por defecto (base relativa). En server preferir getStoreApiClient(). */
86
86
  declare const storeApiClient: StoreApiClient;
87
87
 
88
+ declare const StorefrontProductSchema: z.ZodObject<{
89
+ id: z.ZodString;
90
+ name: z.ZodString;
91
+ slug: z.ZodString;
92
+ productType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
93
+ imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
94
+ price: z.ZodNumber;
95
+ compareAtPrice: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
96
+ variantCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
97
+ isAvailable: z.ZodBoolean;
98
+ totalInventory: z.ZodNumber;
99
+ bundleItemsCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
100
+ brand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
101
+ category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
102
+ status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
103
+ tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ id: string;
106
+ name: string;
107
+ slug: string;
108
+ price: number;
109
+ variantCount: number;
110
+ isAvailable: boolean;
111
+ totalInventory: number;
112
+ bundleItemsCount: number;
113
+ status?: string | null | undefined;
114
+ tags?: string[] | null | undefined;
115
+ category?: string | null | undefined;
116
+ productType?: string | null | undefined;
117
+ imageUrl?: string | null | undefined;
118
+ compareAtPrice?: number | null | undefined;
119
+ brand?: string | null | undefined;
120
+ }, {
121
+ id: string;
122
+ name: string;
123
+ slug: string;
124
+ price: number;
125
+ isAvailable: boolean;
126
+ totalInventory: number;
127
+ status?: string | null | undefined;
128
+ tags?: string[] | null | undefined;
129
+ category?: string | null | undefined;
130
+ productType?: string | null | undefined;
131
+ imageUrl?: string | null | undefined;
132
+ compareAtPrice?: number | null | undefined;
133
+ variantCount?: number | undefined;
134
+ bundleItemsCount?: number | undefined;
135
+ brand?: string | null | undefined;
136
+ }>;
137
+ declare const StorefrontFacetSchema: z.ZodObject<{
138
+ value: z.ZodString;
139
+ count: z.ZodNumber;
140
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
141
+ selected: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ value: string;
144
+ count: number;
145
+ selected: boolean;
146
+ label?: string | null | undefined;
147
+ }, {
148
+ value: string;
149
+ count: number;
150
+ label?: string | null | undefined;
151
+ selected?: boolean | undefined;
152
+ }>;
153
+ declare const StorefrontSearchFilterSchema: z.ZodObject<{
154
+ id: z.ZodString;
155
+ label: z.ZodString;
156
+ type: z.ZodString;
157
+ values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
158
+ value: z.ZodString;
159
+ count: z.ZodNumber;
160
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
161
+ selected: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ value: string;
164
+ count: number;
165
+ selected: boolean;
166
+ label?: string | null | undefined;
167
+ }, {
168
+ value: string;
169
+ count: number;
170
+ label?: string | null | undefined;
171
+ selected?: boolean | undefined;
172
+ }>, "many">>>;
173
+ min: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
174
+ max: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
175
+ selectedMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
176
+ selectedMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ values: {
179
+ value: string;
180
+ count: number;
181
+ selected: boolean;
182
+ label?: string | null | undefined;
183
+ }[];
184
+ id: string;
185
+ type: string;
186
+ label: string;
187
+ min?: number | null | undefined;
188
+ max?: number | null | undefined;
189
+ selectedMin?: number | null | undefined;
190
+ selectedMax?: number | null | undefined;
191
+ }, {
192
+ id: string;
193
+ type: string;
194
+ label: string;
195
+ values?: {
196
+ value: string;
197
+ count: number;
198
+ label?: string | null | undefined;
199
+ selected?: boolean | undefined;
200
+ }[] | undefined;
201
+ min?: number | null | undefined;
202
+ max?: number | null | undefined;
203
+ selectedMin?: number | null | undefined;
204
+ selectedMax?: number | null | undefined;
205
+ }>;
88
206
  declare const StorefrontProductsResponseSchema: z.ZodObject<{
89
207
  pageIndex: z.ZodNumber;
90
208
  pageSize: z.ZodNumber;
@@ -139,33 +257,60 @@ declare const StorefrontProductsResponseSchema: z.ZodObject<{
139
257
  bundleItemsCount?: number | undefined;
140
258
  brand?: string | null | undefined;
141
259
  }>, "many">;
142
- categories: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
143
- value: z.ZodString;
144
- count: z.ZodNumber;
145
- }, "strip", z.ZodTypeAny, {
146
- value: string;
147
- count: number;
148
- }, {
149
- value: string;
150
- count: number;
151
- }>, "many">>>;
152
- brands: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
153
- value: z.ZodString;
154
- count: z.ZodNumber;
260
+ filters: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
261
+ id: z.ZodString;
262
+ label: z.ZodString;
263
+ type: z.ZodString;
264
+ values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
265
+ value: z.ZodString;
266
+ count: z.ZodNumber;
267
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
268
+ selected: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ value: string;
271
+ count: number;
272
+ selected: boolean;
273
+ label?: string | null | undefined;
274
+ }, {
275
+ value: string;
276
+ count: number;
277
+ label?: string | null | undefined;
278
+ selected?: boolean | undefined;
279
+ }>, "many">>>;
280
+ min: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
281
+ max: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
282
+ selectedMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
283
+ selectedMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
155
284
  }, "strip", z.ZodTypeAny, {
156
- value: string;
157
- count: number;
285
+ values: {
286
+ value: string;
287
+ count: number;
288
+ selected: boolean;
289
+ label?: string | null | undefined;
290
+ }[];
291
+ id: string;
292
+ type: string;
293
+ label: string;
294
+ min?: number | null | undefined;
295
+ max?: number | null | undefined;
296
+ selectedMin?: number | null | undefined;
297
+ selectedMax?: number | null | undefined;
158
298
  }, {
159
- value: string;
160
- count: number;
299
+ id: string;
300
+ type: string;
301
+ label: string;
302
+ values?: {
303
+ value: string;
304
+ count: number;
305
+ label?: string | null | undefined;
306
+ selected?: boolean | undefined;
307
+ }[] | undefined;
308
+ min?: number | null | undefined;
309
+ max?: number | null | undefined;
310
+ selectedMin?: number | null | undefined;
311
+ selectedMax?: number | null | undefined;
161
312
  }>, "many">>>;
162
- minPrice: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
163
- maxPrice: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
164
313
  }, "strip", z.ZodTypeAny, {
165
- categories: {
166
- value: string;
167
- count: number;
168
- }[];
169
314
  pageSize: number;
170
315
  pageIndex: number;
171
316
  totalCount: number;
@@ -187,12 +332,21 @@ declare const StorefrontProductsResponseSchema: z.ZodObject<{
187
332
  compareAtPrice?: number | null | undefined;
188
333
  brand?: string | null | undefined;
189
334
  }[];
190
- brands: {
191
- value: string;
192
- count: number;
335
+ filters: {
336
+ values: {
337
+ value: string;
338
+ count: number;
339
+ selected: boolean;
340
+ label?: string | null | undefined;
341
+ }[];
342
+ id: string;
343
+ type: string;
344
+ label: string;
345
+ min?: number | null | undefined;
346
+ max?: number | null | undefined;
347
+ selectedMin?: number | null | undefined;
348
+ selectedMax?: number | null | undefined;
193
349
  }[];
194
- minPrice?: number | null | undefined;
195
- maxPrice?: number | null | undefined;
196
350
  }, {
197
351
  pageSize: number;
198
352
  pageIndex: number;
@@ -215,15 +369,20 @@ declare const StorefrontProductsResponseSchema: z.ZodObject<{
215
369
  bundleItemsCount?: number | undefined;
216
370
  brand?: string | null | undefined;
217
371
  }[];
218
- categories?: {
219
- value: string;
220
- count: number;
221
- }[] | undefined;
222
- minPrice?: number | null | undefined;
223
- maxPrice?: number | null | undefined;
224
- brands?: {
225
- value: string;
226
- count: number;
372
+ filters?: {
373
+ id: string;
374
+ type: string;
375
+ label: string;
376
+ values?: {
377
+ value: string;
378
+ count: number;
379
+ label?: string | null | undefined;
380
+ selected?: boolean | undefined;
381
+ }[] | undefined;
382
+ min?: number | null | undefined;
383
+ max?: number | null | undefined;
384
+ selectedMin?: number | null | undefined;
385
+ selectedMax?: number | null | undefined;
227
386
  }[] | undefined;
228
387
  }>;
229
388
  declare const StorefrontProductsParamsSchema: z.ZodObject<{
@@ -233,9 +392,17 @@ declare const StorefrontProductsParamsSchema: z.ZodObject<{
233
392
  sellerId: z.ZodOptional<z.ZodString>;
234
393
  search: z.ZodOptional<z.ZodString>;
235
394
  collection: z.ZodOptional<z.ZodString>;
395
+ collections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
236
396
  category: z.ZodOptional<z.ZodString>;
397
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
237
398
  brand: z.ZodOptional<z.ZodString>;
399
+ brands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
238
400
  productType: z.ZodOptional<z.ZodString>;
401
+ productTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
402
+ tag: z.ZodOptional<z.ZodString>;
403
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
404
+ filters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
405
+ locationId: z.ZodOptional<z.ZodString>;
239
406
  inStock: z.ZodOptional<z.ZodBoolean>;
240
407
  minPrice: z.ZodOptional<z.ZodNumber>;
241
408
  maxPrice: z.ZodOptional<z.ZodNumber>;
@@ -243,6 +410,8 @@ declare const StorefrontProductsParamsSchema: z.ZodObject<{
243
410
  sort: "price_asc" | "price_desc" | "name_asc" | "name_desc" | "newest";
244
411
  page: number;
245
412
  pageSize: number;
413
+ categories?: string[] | undefined;
414
+ tags?: string[] | undefined;
246
415
  inStock?: boolean | undefined;
247
416
  category?: string | undefined;
248
417
  search?: string | undefined;
@@ -250,10 +419,18 @@ declare const StorefrontProductsParamsSchema: z.ZodObject<{
250
419
  maxPrice?: number | undefined;
251
420
  productType?: string | undefined;
252
421
  brand?: string | undefined;
422
+ filters?: string[] | undefined;
253
423
  sellerId?: string | undefined;
254
424
  collection?: string | undefined;
425
+ collections?: string[] | undefined;
426
+ brands?: string[] | undefined;
427
+ productTypes?: string[] | undefined;
428
+ tag?: string | undefined;
429
+ locationId?: string | undefined;
255
430
  }, {
256
431
  sort?: "price_asc" | "price_desc" | "name_asc" | "name_desc" | "newest" | undefined;
432
+ categories?: string[] | undefined;
433
+ tags?: string[] | undefined;
257
434
  inStock?: boolean | undefined;
258
435
  page?: number | undefined;
259
436
  pageSize?: number | undefined;
@@ -263,8 +440,14 @@ declare const StorefrontProductsParamsSchema: z.ZodObject<{
263
440
  maxPrice?: number | undefined;
264
441
  productType?: string | undefined;
265
442
  brand?: string | undefined;
443
+ filters?: string[] | undefined;
266
444
  sellerId?: string | undefined;
267
445
  collection?: string | undefined;
446
+ collections?: string[] | undefined;
447
+ brands?: string[] | undefined;
448
+ productTypes?: string[] | undefined;
449
+ tag?: string | undefined;
450
+ locationId?: string | undefined;
268
451
  }>;
269
452
  declare const StorefrontVariantSchema: z.ZodObject<{
270
453
  id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -334,6 +517,22 @@ declare const StorefrontVariantSchema: z.ZodObject<{
334
517
  }[] | undefined;
335
518
  compareAtPrice?: number | null | undefined;
336
519
  }>;
520
+ declare const StorefrontPriceTierSchema: z.ZodObject<{
521
+ variantId: z.ZodString;
522
+ minQuantity: z.ZodNumber;
523
+ maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
524
+ unitPrice: z.ZodNumber;
525
+ }, "strip", z.ZodTypeAny, {
526
+ variantId: string;
527
+ minQuantity: number;
528
+ unitPrice: number;
529
+ maxQuantity?: number | null | undefined;
530
+ }, {
531
+ variantId: string;
532
+ minQuantity: number;
533
+ unitPrice: number;
534
+ maxQuantity?: number | null | undefined;
535
+ }>;
337
536
  declare const StorefrontProductDetailSchema: z.ZodObject<{
338
537
  id: z.ZodString;
339
538
  name: z.ZodString;
@@ -610,10 +809,14 @@ declare const StorefrontProductDetailSchema: z.ZodObject<{
610
809
  }[] | undefined;
611
810
  updatedAt?: string | null | undefined;
612
811
  }>;
812
+ type StorefrontProduct = z.infer<typeof StorefrontProductSchema>;
813
+ type StorefrontFacet = z.infer<typeof StorefrontFacetSchema>;
814
+ type StorefrontSearchFilter = z.infer<typeof StorefrontSearchFilterSchema>;
613
815
  type StorefrontProductsResponse = z.infer<typeof StorefrontProductsResponseSchema>;
614
816
  /** Params de entrada (sort/page/pageSize opcionales con defaults en el schema) */
615
817
  type StorefrontProductsParamsInput = z.input<typeof StorefrontProductsParamsSchema>;
616
818
  type StorefrontVariant = z.infer<typeof StorefrontVariantSchema>;
819
+ type StorefrontPriceTier = z.infer<typeof StorefrontPriceTierSchema>;
617
820
  type StorefrontProductDetail = z.infer<typeof StorefrontProductDetailSchema>;
618
821
 
619
822
  /**
@@ -621,7 +824,9 @@ type StorefrontProductDetail = z.infer<typeof StorefrontProductDetailSchema>;
621
824
  * El proxy resuelve la tienda por cookie.
622
825
  */
623
826
  declare function getStorefrontProducts(params?: StorefrontProductsParamsInput, cacheKey?: string): Promise<StorefrontProductsResponse>;
624
- declare function getStorefrontProductBySlug(slug: string): Promise<StorefrontProductDetail>;
827
+ declare function getStorefrontProductBySlug(slug: string, options?: {
828
+ cacheKey?: string;
829
+ }): Promise<StorefrontProductDetail>;
625
830
 
626
831
  declare const StorefrontCollectionSchema: z.ZodObject<{
627
832
  id: z.ZodString;
@@ -3116,22 +3321,22 @@ declare const CartShippingMethodPutRequestSchema: z.ZodObject<{
3116
3321
  shippingMethodId: string;
3117
3322
  rateId: string;
3118
3323
  sellerId?: string | null | undefined;
3324
+ locationId?: string | null | undefined;
3119
3325
  pickupPointId?: string | null | undefined;
3120
3326
  scheduledDate?: string | null | undefined;
3121
3327
  scheduledTime?: string | null | undefined;
3122
3328
  serviceCode?: string | null | undefined;
3123
3329
  shippingProfileId?: string | null | undefined;
3124
- locationId?: string | null | undefined;
3125
3330
  }, {
3126
3331
  shippingMethodId: string;
3127
3332
  rateId: string;
3128
3333
  sellerId?: string | null | undefined;
3334
+ locationId?: string | null | undefined;
3129
3335
  pickupPointId?: string | null | undefined;
3130
3336
  scheduledDate?: string | null | undefined;
3131
3337
  scheduledTime?: string | null | undefined;
3132
3338
  serviceCode?: string | null | undefined;
3133
3339
  shippingProfileId?: string | null | undefined;
3134
- locationId?: string | null | undefined;
3135
3340
  }>;
3136
3341
  type CartShippingMethodPutRequest = z.input<typeof CartShippingMethodPutRequestSchema>;
3137
3342
 
@@ -3905,15 +4110,15 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
3905
4110
  source: z.ZodString;
3906
4111
  }, "strip", z.ZodTypeAny, {
3907
4112
  status: string;
3908
- key: string;
3909
4113
  label: string;
4114
+ key: string;
3910
4115
  occurredAt: string;
3911
4116
  source: string;
3912
4117
  description?: string | null | undefined;
3913
4118
  }, {
3914
4119
  status: string;
3915
- key: string;
3916
4120
  label: string;
4121
+ key: string;
3917
4122
  occurredAt: string;
3918
4123
  source: string;
3919
4124
  description?: string | null | undefined;
@@ -3962,8 +4167,8 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
3962
4167
  }[];
3963
4168
  statusTimeline: {
3964
4169
  status: string;
3965
- key: string;
3966
4170
  label: string;
4171
+ key: string;
3967
4172
  occurredAt: string;
3968
4173
  source: string;
3969
4174
  description?: string | null | undefined;
@@ -4045,8 +4250,8 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
4045
4250
  }[];
4046
4251
  statusTimeline: {
4047
4252
  status: string;
4048
- key: string;
4049
4253
  label: string;
4254
+ key: string;
4050
4255
  occurredAt: string;
4051
4256
  source: string;
4052
4257
  description?: string | null | undefined;
@@ -4284,13 +4489,13 @@ declare const OrderDraftSchema: z.ZodObject<{
4284
4489
  data: Record<string, unknown>;
4285
4490
  description?: string | null | undefined;
4286
4491
  sellerId?: string | null | undefined;
4492
+ locationId?: string | null | undefined;
4287
4493
  estimatedDays?: number | null | undefined;
4288
4494
  pickupPointId?: string | null | undefined;
4289
4495
  scheduledDate?: string | null | undefined;
4290
4496
  scheduledTime?: string | null | undefined;
4291
4497
  shippingMethodId?: string | null | undefined;
4292
4498
  shippingProfileId?: string | null | undefined;
4293
- locationId?: string | null | undefined;
4294
4499
  connectionId?: string | null | undefined;
4295
4500
  providerName?: string | null | undefined;
4296
4501
  trackingCode?: string | null | undefined;
@@ -4301,6 +4506,7 @@ declare const OrderDraftSchema: z.ZodObject<{
4301
4506
  description?: string | null | undefined;
4302
4507
  total?: number | undefined;
4303
4508
  sellerId?: string | null | undefined;
4509
+ locationId?: string | null | undefined;
4304
4510
  subtotal?: number | undefined;
4305
4511
  estimatedDays?: number | null | undefined;
4306
4512
  pickupPointId?: string | null | undefined;
@@ -4310,7 +4516,6 @@ declare const OrderDraftSchema: z.ZodObject<{
4310
4516
  taxTotal?: number | undefined;
4311
4517
  shippingMethodId?: string | null | undefined;
4312
4518
  shippingProfileId?: string | null | undefined;
4313
- locationId?: string | null | undefined;
4314
4519
  isTaxInclusive?: boolean | undefined;
4315
4520
  connectionId?: string | null | undefined;
4316
4521
  providerName?: string | null | undefined;
@@ -4361,13 +4566,13 @@ declare const OrderDraftSchema: z.ZodObject<{
4361
4566
  data: Record<string, unknown>;
4362
4567
  description?: string | null | undefined;
4363
4568
  sellerId?: string | null | undefined;
4569
+ locationId?: string | null | undefined;
4364
4570
  estimatedDays?: number | null | undefined;
4365
4571
  pickupPointId?: string | null | undefined;
4366
4572
  scheduledDate?: string | null | undefined;
4367
4573
  scheduledTime?: string | null | undefined;
4368
4574
  shippingMethodId?: string | null | undefined;
4369
4575
  shippingProfileId?: string | null | undefined;
4370
- locationId?: string | null | undefined;
4371
4576
  connectionId?: string | null | undefined;
4372
4577
  providerName?: string | null | undefined;
4373
4578
  trackingCode?: string | null | undefined;
@@ -4493,6 +4698,7 @@ declare const OrderDraftSchema: z.ZodObject<{
4493
4698
  description?: string | null | undefined;
4494
4699
  total?: number | undefined;
4495
4700
  sellerId?: string | null | undefined;
4701
+ locationId?: string | null | undefined;
4496
4702
  subtotal?: number | undefined;
4497
4703
  estimatedDays?: number | null | undefined;
4498
4704
  pickupPointId?: string | null | undefined;
@@ -4502,7 +4708,6 @@ declare const OrderDraftSchema: z.ZodObject<{
4502
4708
  taxTotal?: number | undefined;
4503
4709
  shippingMethodId?: string | null | undefined;
4504
4710
  shippingProfileId?: string | null | undefined;
4505
- locationId?: string | null | undefined;
4506
4711
  isTaxInclusive?: boolean | undefined;
4507
4712
  connectionId?: string | null | undefined;
4508
4713
  providerName?: string | null | undefined;
@@ -4626,11 +4831,7 @@ declare function useStorefrontSession(): {
4626
4831
  * No requiere storeId: el proxy lo resuelve por cookie.
4627
4832
  */
4628
4833
  declare function useStoreProducts(): {
4629
- useStorefrontProductsList: (params?: StorefrontProductsParamsInput) => _tanstack_react_query.UseQueryResult<{
4630
- categories: {
4631
- value: string;
4632
- count: number;
4633
- }[];
4834
+ useStorefrontProductsList: (params?: StorefrontProductsParamsInput) => _tanstack_react_query.UseQueryResult<NoInfer<{
4634
4835
  pageSize: number;
4635
4836
  pageIndex: number;
4636
4837
  totalCount: number;
@@ -4652,18 +4853,23 @@ declare function useStoreProducts(): {
4652
4853
  compareAtPrice?: number | null | undefined;
4653
4854
  brand?: string | null | undefined;
4654
4855
  }[];
4655
- brands: {
4656
- value: string;
4657
- count: number;
4856
+ filters: {
4857
+ values: {
4858
+ value: string;
4859
+ count: number;
4860
+ selected: boolean;
4861
+ label?: string | null | undefined;
4862
+ }[];
4863
+ id: string;
4864
+ type: string;
4865
+ label: string;
4866
+ min?: number | null | undefined;
4867
+ max?: number | null | undefined;
4868
+ selectedMin?: number | null | undefined;
4869
+ selectedMax?: number | null | undefined;
4658
4870
  }[];
4659
- minPrice?: number | null | undefined;
4660
- maxPrice?: number | null | undefined;
4661
- }, Error>;
4871
+ }>, Error>;
4662
4872
  useStorefrontInfiniteProducts: (params?: Omit<StorefrontProductsParamsInput, "page">) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<{
4663
- categories: {
4664
- value: string;
4665
- count: number;
4666
- }[];
4667
4873
  pageSize: number;
4668
4874
  pageIndex: number;
4669
4875
  totalCount: number;
@@ -4685,14 +4891,23 @@ declare function useStoreProducts(): {
4685
4891
  compareAtPrice?: number | null | undefined;
4686
4892
  brand?: string | null | undefined;
4687
4893
  }[];
4688
- brands: {
4689
- value: string;
4690
- count: number;
4894
+ filters: {
4895
+ values: {
4896
+ value: string;
4897
+ count: number;
4898
+ selected: boolean;
4899
+ label?: string | null | undefined;
4900
+ }[];
4901
+ id: string;
4902
+ type: string;
4903
+ label: string;
4904
+ min?: number | null | undefined;
4905
+ max?: number | null | undefined;
4906
+ selectedMin?: number | null | undefined;
4907
+ selectedMax?: number | null | undefined;
4691
4908
  }[];
4692
- minPrice?: number | null | undefined;
4693
- maxPrice?: number | null | undefined;
4694
4909
  }, unknown>, Error>;
4695
- useProductBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
4910
+ useProductBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<NoInfer<{
4696
4911
  id: string;
4697
4912
  name: string;
4698
4913
  images: {
@@ -4753,12 +4968,8 @@ declare function useStoreProducts(): {
4753
4968
  brand?: string | null | undefined;
4754
4969
  categoryId?: string | null | undefined;
4755
4970
  updatedAt?: string | null | undefined;
4756
- }, Error>;
4971
+ }>, Error>;
4757
4972
  useRefreshStorefrontProducts: () => _tanstack_react_query.UseMutationResult<{
4758
- categories: {
4759
- value: string;
4760
- count: number;
4761
- }[];
4762
4973
  pageSize: number;
4763
4974
  pageIndex: number;
4764
4975
  totalCount: number;
@@ -4780,14 +4991,25 @@ declare function useStoreProducts(): {
4780
4991
  compareAtPrice?: number | null | undefined;
4781
4992
  brand?: string | null | undefined;
4782
4993
  }[];
4783
- brands: {
4784
- value: string;
4785
- count: number;
4994
+ filters: {
4995
+ values: {
4996
+ value: string;
4997
+ count: number;
4998
+ selected: boolean;
4999
+ label?: string | null | undefined;
5000
+ }[];
5001
+ id: string;
5002
+ type: string;
5003
+ label: string;
5004
+ min?: number | null | undefined;
5005
+ max?: number | null | undefined;
5006
+ selectedMin?: number | null | undefined;
5007
+ selectedMax?: number | null | undefined;
4786
5008
  }[];
4787
- minPrice?: number | null | undefined;
4788
- maxPrice?: number | null | undefined;
4789
5009
  }, Error, {
4790
5010
  sort?: "price_asc" | "price_desc" | "name_asc" | "name_desc" | "newest" | undefined;
5011
+ categories?: string[] | undefined;
5012
+ tags?: string[] | undefined;
4791
5013
  inStock?: boolean | undefined;
4792
5014
  page?: number | undefined;
4793
5015
  pageSize?: number | undefined;
@@ -4797,8 +5019,14 @@ declare function useStoreProducts(): {
4797
5019
  maxPrice?: number | undefined;
4798
5020
  productType?: string | undefined;
4799
5021
  brand?: string | undefined;
5022
+ filters?: string[] | undefined;
4800
5023
  sellerId?: string | undefined;
4801
5024
  collection?: string | undefined;
5025
+ collections?: string[] | undefined;
5026
+ brands?: string[] | undefined;
5027
+ productTypes?: string[] | undefined;
5028
+ tag?: string | undefined;
5029
+ locationId?: string | undefined;
4802
5030
  } | undefined, unknown>;
4803
5031
  };
4804
5032
 
@@ -4806,7 +5034,7 @@ declare function useStoreProducts(): {
4806
5034
  * Hooks de colecciones que usan el proxy /api/store.
4807
5035
  */
4808
5036
  declare function useStoreCollections(): {
4809
- useStorefrontCollectionsList: () => _tanstack_react_query.UseQueryResult<{
5037
+ useStorefrontCollectionsList: () => _tanstack_react_query.UseQueryResult<NoInfer<{
4810
5038
  id: string;
4811
5039
  name: string;
4812
5040
  type: string;
@@ -4814,8 +5042,8 @@ declare function useStoreCollections(): {
4814
5042
  productCount: number;
4815
5043
  description?: string | null | undefined;
4816
5044
  imageUrl?: string | null | undefined;
4817
- }[], Error>;
4818
- useCollectionBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
5045
+ }[]>, Error>;
5046
+ useCollectionBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<NoInfer<{
4819
5047
  id: string;
4820
5048
  name: string;
4821
5049
  type: string;
@@ -4823,7 +5051,7 @@ declare function useStoreCollections(): {
4823
5051
  productCount: number;
4824
5052
  description?: string | null | undefined;
4825
5053
  imageUrl?: string | null | undefined;
4826
- }, Error>;
5054
+ }>, Error>;
4827
5055
  useRefreshStorefrontCollections: () => _tanstack_react_query.UseMutationResult<{
4828
5056
  id: string;
4829
5057
  name: string;
@@ -4839,13 +5067,13 @@ declare function useStoreCollections(): {
4839
5067
  * Hooks de páginas que usan el proxy /api/store.
4840
5068
  */
4841
5069
  declare function useStorePages(): {
4842
- useStorefrontPagesList: () => _tanstack_react_query.UseQueryResult<{
5070
+ useStorefrontPagesList: () => _tanstack_react_query.UseQueryResult<NoInfer<{
4843
5071
  id: string;
4844
5072
  name: string;
4845
5073
  slug: string;
4846
5074
  layout: string;
4847
- }[], Error>;
4848
- usePageBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
5075
+ }[]>, Error>;
5076
+ usePageBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<NoInfer<{
4849
5077
  id: string;
4850
5078
  name: string;
4851
5079
  slug: string;
@@ -4876,7 +5104,7 @@ declare function useStorePages(): {
4876
5104
  }[];
4877
5105
  settings?: Record<string, unknown> | undefined;
4878
5106
  }[] | undefined;
4879
- }, Error>;
5107
+ }>, Error>;
4880
5108
  useRefreshStorefrontPages: () => _tanstack_react_query.UseMutationResult<{
4881
5109
  id: string;
4882
5110
  name: string;
@@ -4938,7 +5166,7 @@ declare function useStoreCart(): {
4938
5166
  currencyCode: string;
4939
5167
  salesChannelId: string;
4940
5168
  }, unknown>;
4941
- useGetCart: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<{
5169
+ useGetCart: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<NoInfer<{
4942
5170
  id: string;
4943
5171
  items: {
4944
5172
  title: string;
@@ -4982,8 +5210,8 @@ declare function useStoreCart(): {
4982
5210
  billingAddress?: unknown;
4983
5211
  regionId?: string | null | undefined;
4984
5212
  completedAt?: string | null | undefined;
4985
- }, Error>;
4986
- useGetCartCheckout: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<{
5213
+ }>, Error>;
5214
+ useGetCartCheckout: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<NoInfer<{
4987
5215
  cart: {
4988
5216
  id: string;
4989
5217
  items: {
@@ -5044,7 +5272,7 @@ declare function useStoreCart(): {
5044
5272
  qrImageUrl?: string | null | undefined;
5045
5273
  }[];
5046
5274
  };
5047
- }, Error>;
5275
+ }>, Error>;
5048
5276
  useUpdateCartBuyer: () => _tanstack_react_query.UseMutationResult<{
5049
5277
  id: string;
5050
5278
  items: {
@@ -5562,7 +5790,7 @@ declare function useStoreCart(): {
5562
5790
  cartId: string;
5563
5791
  file: File;
5564
5792
  }, unknown>;
5565
- useGetCartPaymentMethods: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<{
5793
+ useGetCartPaymentMethods: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<NoInfer<{
5566
5794
  methods: {
5567
5795
  name: string;
5568
5796
  isDefault: boolean;
@@ -5576,8 +5804,8 @@ declare function useStoreCart(): {
5576
5804
  accountHolder?: string | null | undefined;
5577
5805
  qrImageUrl?: string | null | undefined;
5578
5806
  }[];
5579
- }, Error>;
5580
- useGetShippingOptions: (cartId: string | null | undefined, postalCode: string | undefined, enabled: boolean) => _tanstack_react_query.UseQueryResult<{
5807
+ }>, Error>;
5808
+ useGetShippingOptions: (cartId: string | null | undefined, postalCode: string | undefined, enabled: boolean) => _tanstack_react_query.UseQueryResult<NoInfer<{
5581
5809
  groups: zod.objectOutputType<{
5582
5810
  sellerId: zod.ZodString;
5583
5811
  shippingProfileId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -5631,7 +5859,7 @@ declare function useStoreCart(): {
5631
5859
  metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
5632
5860
  }, zod.ZodTypeAny, "passthrough">>, "many">;
5633
5861
  }, zod.ZodTypeAny, "passthrough">[];
5634
- }, Error>;
5862
+ }>, Error>;
5635
5863
  usePutCartShippingMethod: () => _tanstack_react_query.UseMutationResult<{
5636
5864
  id: string;
5637
5865
  items: {
@@ -5778,82 +6006,516 @@ declare function useStoreCart(): {
5778
6006
  }, unknown>;
5779
6007
  };
5780
6008
 
5781
- /** Acepta sobre nuevo o JSON plano legacy; siempre valida contra el sobre normalizado. */
5782
- declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
5783
- schemaVersion: z.ZodNumber;
5784
- generatedAt: z.ZodString;
5785
- store: z.ZodObject<{
5786
- id: z.ZodString;
5787
- tenantId: z.ZodOptional<z.ZodString>;
5788
- sellerId: z.ZodOptional<z.ZodString>;
5789
- plan: z.ZodOptional<z.ZodString>;
5790
- storageLimitBytes: z.ZodOptional<z.ZodNumber>;
5791
- monthlyTransferLimitBytes: z.ZodOptional<z.ZodNumber>;
5792
- maxUploadSizeBytes: z.ZodOptional<z.ZodNumber>;
5793
- maxStores: z.ZodOptional<z.ZodNumber>;
5794
- maxMembers: z.ZodOptional<z.ZodNumber>;
5795
- maxProducts: z.ZodOptional<z.ZodNumber>;
5796
- maxCategories: z.ZodOptional<z.ZodNumber>;
5797
- maxBrands: z.ZodOptional<z.ZodNumber>;
5798
- maxAttributes: z.ZodOptional<z.ZodNumber>;
5799
- maxCollections: z.ZodOptional<z.ZodNumber>;
5800
- enableApi: z.ZodOptional<z.ZodBoolean>;
5801
- isActive: z.ZodOptional<z.ZodBoolean>;
5802
- name: z.ZodString;
5803
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5804
- avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5805
- logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5806
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5807
- slug: z.ZodString;
5808
- domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5809
- domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5810
- timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5811
- currency: z.ZodString;
5812
- language: z.ZodString;
5813
- visibility: z.ZodOptional<z.ZodString>;
5814
- privateAccessHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5815
- privateAccessVersion: z.ZodOptional<z.ZodNumber>;
5816
- themeConfig: z.ZodOptional<z.ZodObject<{
5817
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5818
- mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5819
- colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5820
- fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5821
- assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5822
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5823
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5824
- mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5825
- colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5826
- fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5827
- assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5828
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5829
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5830
- mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5831
- colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5832
- fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5833
- assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5834
- }, z.ZodTypeAny, "passthrough">>>;
5835
- featuresEnabled: z.ZodOptional<z.ZodObject<{
5836
- flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5837
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5838
- flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5839
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5840
- flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5841
- }, z.ZodTypeAny, "passthrough">>>;
5842
- checkoutSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5843
- allowGuestCheckout: z.ZodOptional<z.ZodBoolean>;
5844
- identityScope: z.ZodOptional<z.ZodEnum<["store", "tenant", "global"]>>;
5845
- signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6009
+ declare const StorefrontCmsSettingsSchema: z.ZodObject<{
6010
+ themeKey: z.ZodOptional<z.ZodString>;
6011
+ channels: z.ZodOptional<z.ZodObject<{
6012
+ storefront: z.ZodOptional<z.ZodObject<{
6013
+ enabled: z.ZodOptional<z.ZodBoolean>;
5846
6014
  }, "strip", z.ZodTypeAny, {
5847
- allowGuestCheckout?: boolean | undefined;
5848
- identityScope?: "store" | "tenant" | "global" | undefined;
5849
- signInMethods?: string[] | undefined;
6015
+ enabled?: boolean | undefined;
5850
6016
  }, {
5851
- allowGuestCheckout?: boolean | undefined;
5852
- identityScope?: "store" | "tenant" | "global" | undefined;
5853
- signInMethods?: string[] | undefined;
5854
- }>>>;
5855
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5856
- id: z.ZodString;
6017
+ enabled?: boolean | undefined;
6018
+ }>>;
6019
+ pos: z.ZodOptional<z.ZodObject<{
6020
+ enabled: z.ZodOptional<z.ZodBoolean>;
6021
+ }, "strip", z.ZodTypeAny, {
6022
+ enabled?: boolean | undefined;
6023
+ }, {
6024
+ enabled?: boolean | undefined;
6025
+ }>>;
6026
+ }, "strip", z.ZodTypeAny, {
6027
+ storefront?: {
6028
+ enabled?: boolean | undefined;
6029
+ } | undefined;
6030
+ pos?: {
6031
+ enabled?: boolean | undefined;
6032
+ } | undefined;
6033
+ }, {
6034
+ storefront?: {
6035
+ enabled?: boolean | undefined;
6036
+ } | undefined;
6037
+ pos?: {
6038
+ enabled?: boolean | undefined;
6039
+ } | undefined;
6040
+ }>>;
6041
+ branding: z.ZodOptional<z.ZodObject<{
6042
+ logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6043
+ logoDarkUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6044
+ faviconUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6045
+ socialImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6046
+ }, "strip", z.ZodTypeAny, {
6047
+ logoUrl?: string | null | undefined;
6048
+ logoDarkUrl?: string | null | undefined;
6049
+ faviconUrl?: string | null | undefined;
6050
+ socialImageUrl?: string | null | undefined;
6051
+ }, {
6052
+ logoUrl?: string | null | undefined;
6053
+ logoDarkUrl?: string | null | undefined;
6054
+ faviconUrl?: string | null | undefined;
6055
+ socialImageUrl?: string | null | undefined;
6056
+ }>>;
6057
+ seo: z.ZodOptional<z.ZodObject<{
6058
+ siteName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6059
+ metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6060
+ metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6061
+ titleTemplate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6062
+ robotsIndex: z.ZodOptional<z.ZodBoolean>;
6063
+ }, "strip", z.ZodTypeAny, {
6064
+ siteName?: string | null | undefined;
6065
+ metaTitle?: string | null | undefined;
6066
+ metaDescription?: string | null | undefined;
6067
+ titleTemplate?: string | null | undefined;
6068
+ robotsIndex?: boolean | undefined;
6069
+ }, {
6070
+ siteName?: string | null | undefined;
6071
+ metaTitle?: string | null | undefined;
6072
+ metaDescription?: string | null | undefined;
6073
+ titleTemplate?: string | null | undefined;
6074
+ robotsIndex?: boolean | undefined;
6075
+ }>>;
6076
+ contact: z.ZodOptional<z.ZodObject<{
6077
+ supportEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6078
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6079
+ whatsapp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6080
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6081
+ socialLinks: z.ZodOptional<z.ZodObject<{
6082
+ instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6083
+ facebook: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6084
+ tiktok: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6085
+ youtube: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6086
+ x: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6087
+ }, "strip", z.ZodTypeAny, {
6088
+ x?: string | null | undefined;
6089
+ facebook?: string | null | undefined;
6090
+ tiktok?: string | null | undefined;
6091
+ instagram?: string | null | undefined;
6092
+ youtube?: string | null | undefined;
6093
+ }, {
6094
+ x?: string | null | undefined;
6095
+ facebook?: string | null | undefined;
6096
+ tiktok?: string | null | undefined;
6097
+ instagram?: string | null | undefined;
6098
+ youtube?: string | null | undefined;
6099
+ }>>;
6100
+ }, "strip", z.ZodTypeAny, {
6101
+ phone?: string | null | undefined;
6102
+ address?: string | null | undefined;
6103
+ supportEmail?: string | null | undefined;
6104
+ whatsapp?: string | null | undefined;
6105
+ socialLinks?: {
6106
+ x?: string | null | undefined;
6107
+ facebook?: string | null | undefined;
6108
+ tiktok?: string | null | undefined;
6109
+ instagram?: string | null | undefined;
6110
+ youtube?: string | null | undefined;
6111
+ } | undefined;
6112
+ }, {
6113
+ phone?: string | null | undefined;
6114
+ address?: string | null | undefined;
6115
+ supportEmail?: string | null | undefined;
6116
+ whatsapp?: string | null | undefined;
6117
+ socialLinks?: {
6118
+ x?: string | null | undefined;
6119
+ facebook?: string | null | undefined;
6120
+ tiktok?: string | null | undefined;
6121
+ instagram?: string | null | undefined;
6122
+ youtube?: string | null | undefined;
6123
+ } | undefined;
6124
+ }>>;
6125
+ tracking: z.ZodOptional<z.ZodObject<{
6126
+ googleAnalyticsMeasurementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6127
+ metaPixelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6128
+ googleTagManagerContainerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6129
+ }, "strip", z.ZodTypeAny, {
6130
+ googleAnalyticsMeasurementId?: string | null | undefined;
6131
+ metaPixelId?: string | null | undefined;
6132
+ googleTagManagerContainerId?: string | null | undefined;
6133
+ }, {
6134
+ googleAnalyticsMeasurementId?: string | null | undefined;
6135
+ metaPixelId?: string | null | undefined;
6136
+ googleTagManagerContainerId?: string | null | undefined;
6137
+ }>>;
6138
+ customScripts: z.ZodOptional<z.ZodObject<{
6139
+ enabled: z.ZodOptional<z.ZodBoolean>;
6140
+ head: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6141
+ bodyEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6142
+ }, "strip", z.ZodTypeAny, {
6143
+ enabled?: boolean | undefined;
6144
+ head?: string | null | undefined;
6145
+ bodyEnd?: string | null | undefined;
6146
+ }, {
6147
+ enabled?: boolean | undefined;
6148
+ head?: string | null | undefined;
6149
+ bodyEnd?: string | null | undefined;
6150
+ }>>;
6151
+ updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6152
+ }, "strip", z.ZodTypeAny, {
6153
+ updatedOn?: string | null | undefined;
6154
+ seo?: {
6155
+ siteName?: string | null | undefined;
6156
+ metaTitle?: string | null | undefined;
6157
+ metaDescription?: string | null | undefined;
6158
+ titleTemplate?: string | null | undefined;
6159
+ robotsIndex?: boolean | undefined;
6160
+ } | undefined;
6161
+ themeKey?: string | undefined;
6162
+ channels?: {
6163
+ storefront?: {
6164
+ enabled?: boolean | undefined;
6165
+ } | undefined;
6166
+ pos?: {
6167
+ enabled?: boolean | undefined;
6168
+ } | undefined;
6169
+ } | undefined;
6170
+ branding?: {
6171
+ logoUrl?: string | null | undefined;
6172
+ logoDarkUrl?: string | null | undefined;
6173
+ faviconUrl?: string | null | undefined;
6174
+ socialImageUrl?: string | null | undefined;
6175
+ } | undefined;
6176
+ contact?: {
6177
+ phone?: string | null | undefined;
6178
+ address?: string | null | undefined;
6179
+ supportEmail?: string | null | undefined;
6180
+ whatsapp?: string | null | undefined;
6181
+ socialLinks?: {
6182
+ x?: string | null | undefined;
6183
+ facebook?: string | null | undefined;
6184
+ tiktok?: string | null | undefined;
6185
+ instagram?: string | null | undefined;
6186
+ youtube?: string | null | undefined;
6187
+ } | undefined;
6188
+ } | undefined;
6189
+ tracking?: {
6190
+ googleAnalyticsMeasurementId?: string | null | undefined;
6191
+ metaPixelId?: string | null | undefined;
6192
+ googleTagManagerContainerId?: string | null | undefined;
6193
+ } | undefined;
6194
+ customScripts?: {
6195
+ enabled?: boolean | undefined;
6196
+ head?: string | null | undefined;
6197
+ bodyEnd?: string | null | undefined;
6198
+ } | undefined;
6199
+ }, {
6200
+ updatedOn?: string | null | undefined;
6201
+ seo?: {
6202
+ siteName?: string | null | undefined;
6203
+ metaTitle?: string | null | undefined;
6204
+ metaDescription?: string | null | undefined;
6205
+ titleTemplate?: string | null | undefined;
6206
+ robotsIndex?: boolean | undefined;
6207
+ } | undefined;
6208
+ themeKey?: string | undefined;
6209
+ channels?: {
6210
+ storefront?: {
6211
+ enabled?: boolean | undefined;
6212
+ } | undefined;
6213
+ pos?: {
6214
+ enabled?: boolean | undefined;
6215
+ } | undefined;
6216
+ } | undefined;
6217
+ branding?: {
6218
+ logoUrl?: string | null | undefined;
6219
+ logoDarkUrl?: string | null | undefined;
6220
+ faviconUrl?: string | null | undefined;
6221
+ socialImageUrl?: string | null | undefined;
6222
+ } | undefined;
6223
+ contact?: {
6224
+ phone?: string | null | undefined;
6225
+ address?: string | null | undefined;
6226
+ supportEmail?: string | null | undefined;
6227
+ whatsapp?: string | null | undefined;
6228
+ socialLinks?: {
6229
+ x?: string | null | undefined;
6230
+ facebook?: string | null | undefined;
6231
+ tiktok?: string | null | undefined;
6232
+ instagram?: string | null | undefined;
6233
+ youtube?: string | null | undefined;
6234
+ } | undefined;
6235
+ } | undefined;
6236
+ tracking?: {
6237
+ googleAnalyticsMeasurementId?: string | null | undefined;
6238
+ metaPixelId?: string | null | undefined;
6239
+ googleTagManagerContainerId?: string | null | undefined;
6240
+ } | undefined;
6241
+ customScripts?: {
6242
+ enabled?: boolean | undefined;
6243
+ head?: string | null | undefined;
6244
+ bodyEnd?: string | null | undefined;
6245
+ } | undefined;
6246
+ }>;
6247
+ declare const StorefrontCmsPageSchema: z.ZodObject<{
6248
+ id: z.ZodString;
6249
+ name: z.ZodString;
6250
+ slug: z.ZodString;
6251
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6252
+ layout: z.ZodOptional<z.ZodString>;
6253
+ version: z.ZodOptional<z.ZodNumber>;
6254
+ settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
6255
+ sections: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
6256
+ status: z.ZodOptional<z.ZodString>;
6257
+ hasPublishedVersion: z.ZodOptional<z.ZodBoolean>;
6258
+ publishedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6259
+ publishedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6260
+ createdOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6261
+ updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6262
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6263
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6264
+ lastModifiedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6265
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6266
+ id: z.ZodString;
6267
+ name: z.ZodString;
6268
+ slug: z.ZodString;
6269
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6270
+ layout: z.ZodOptional<z.ZodString>;
6271
+ version: z.ZodOptional<z.ZodNumber>;
6272
+ settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
6273
+ sections: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
6274
+ status: z.ZodOptional<z.ZodString>;
6275
+ hasPublishedVersion: z.ZodOptional<z.ZodBoolean>;
6276
+ publishedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6277
+ publishedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6278
+ createdOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6279
+ updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6280
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6281
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6282
+ lastModifiedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6283
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6284
+ id: z.ZodString;
6285
+ name: z.ZodString;
6286
+ slug: z.ZodString;
6287
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6288
+ layout: z.ZodOptional<z.ZodString>;
6289
+ version: z.ZodOptional<z.ZodNumber>;
6290
+ settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
6291
+ sections: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
6292
+ status: z.ZodOptional<z.ZodString>;
6293
+ hasPublishedVersion: z.ZodOptional<z.ZodBoolean>;
6294
+ publishedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6295
+ publishedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6296
+ createdOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6297
+ updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6298
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6299
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6300
+ lastModifiedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6301
+ }, z.ZodTypeAny, "passthrough">>;
6302
+ declare const StorefrontStoreSchema: z.ZodObject<{
6303
+ id: z.ZodString;
6304
+ tenantId: z.ZodOptional<z.ZodString>;
6305
+ sellerId: z.ZodOptional<z.ZodString>;
6306
+ plan: z.ZodOptional<z.ZodString>;
6307
+ storageLimitBytes: z.ZodOptional<z.ZodNumber>;
6308
+ monthlyTransferLimitBytes: z.ZodOptional<z.ZodNumber>;
6309
+ maxUploadSizeBytes: z.ZodOptional<z.ZodNumber>;
6310
+ maxStores: z.ZodOptional<z.ZodNumber>;
6311
+ maxMembers: z.ZodOptional<z.ZodNumber>;
6312
+ maxProducts: z.ZodOptional<z.ZodNumber>;
6313
+ maxCategories: z.ZodOptional<z.ZodNumber>;
6314
+ maxBrands: z.ZodOptional<z.ZodNumber>;
6315
+ maxAttributes: z.ZodOptional<z.ZodNumber>;
6316
+ maxCollections: z.ZodOptional<z.ZodNumber>;
6317
+ enableApi: z.ZodOptional<z.ZodBoolean>;
6318
+ isActive: z.ZodOptional<z.ZodBoolean>;
6319
+ name: z.ZodString;
6320
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6321
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6322
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6323
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6324
+ slug: z.ZodString;
6325
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6326
+ domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6327
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6328
+ currency: z.ZodString;
6329
+ language: z.ZodString;
6330
+ visibility: z.ZodOptional<z.ZodString>;
6331
+ privateAccessHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6332
+ privateAccessVersion: z.ZodOptional<z.ZodNumber>;
6333
+ themeConfig: z.ZodOptional<z.ZodObject<{
6334
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6335
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6336
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6337
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6338
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6339
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6340
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6341
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6342
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6343
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6344
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6345
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6346
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6347
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6348
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6349
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6350
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6351
+ }, z.ZodTypeAny, "passthrough">>>;
6352
+ featuresEnabled: z.ZodOptional<z.ZodObject<{
6353
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6354
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6355
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6356
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6357
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6358
+ }, z.ZodTypeAny, "passthrough">>>;
6359
+ checkoutSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6360
+ allowGuestCheckout: z.ZodOptional<z.ZodBoolean>;
6361
+ identityScope: z.ZodOptional<z.ZodEnum<["store", "tenant", "global"]>>;
6362
+ signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6363
+ }, "strip", z.ZodTypeAny, {
6364
+ allowGuestCheckout?: boolean | undefined;
6365
+ identityScope?: "global" | "store" | "tenant" | undefined;
6366
+ signInMethods?: string[] | undefined;
6367
+ }, {
6368
+ allowGuestCheckout?: boolean | undefined;
6369
+ identityScope?: "global" | "store" | "tenant" | undefined;
6370
+ signInMethods?: string[] | undefined;
6371
+ }>>>;
6372
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6373
+ id: z.ZodString;
6374
+ tenantId: z.ZodOptional<z.ZodString>;
6375
+ sellerId: z.ZodOptional<z.ZodString>;
6376
+ plan: z.ZodOptional<z.ZodString>;
6377
+ storageLimitBytes: z.ZodOptional<z.ZodNumber>;
6378
+ monthlyTransferLimitBytes: z.ZodOptional<z.ZodNumber>;
6379
+ maxUploadSizeBytes: z.ZodOptional<z.ZodNumber>;
6380
+ maxStores: z.ZodOptional<z.ZodNumber>;
6381
+ maxMembers: z.ZodOptional<z.ZodNumber>;
6382
+ maxProducts: z.ZodOptional<z.ZodNumber>;
6383
+ maxCategories: z.ZodOptional<z.ZodNumber>;
6384
+ maxBrands: z.ZodOptional<z.ZodNumber>;
6385
+ maxAttributes: z.ZodOptional<z.ZodNumber>;
6386
+ maxCollections: z.ZodOptional<z.ZodNumber>;
6387
+ enableApi: z.ZodOptional<z.ZodBoolean>;
6388
+ isActive: z.ZodOptional<z.ZodBoolean>;
6389
+ name: z.ZodString;
6390
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6391
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6392
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6393
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6394
+ slug: z.ZodString;
6395
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6396
+ domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6397
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6398
+ currency: z.ZodString;
6399
+ language: z.ZodString;
6400
+ visibility: z.ZodOptional<z.ZodString>;
6401
+ privateAccessHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6402
+ privateAccessVersion: z.ZodOptional<z.ZodNumber>;
6403
+ themeConfig: z.ZodOptional<z.ZodObject<{
6404
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6405
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6406
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6407
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6408
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6409
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6410
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6411
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6412
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6413
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6414
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6415
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6416
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6417
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6418
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6419
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6420
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6421
+ }, z.ZodTypeAny, "passthrough">>>;
6422
+ featuresEnabled: z.ZodOptional<z.ZodObject<{
6423
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6424
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6425
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6426
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6427
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6428
+ }, z.ZodTypeAny, "passthrough">>>;
6429
+ checkoutSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6430
+ allowGuestCheckout: z.ZodOptional<z.ZodBoolean>;
6431
+ identityScope: z.ZodOptional<z.ZodEnum<["store", "tenant", "global"]>>;
6432
+ signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6433
+ }, "strip", z.ZodTypeAny, {
6434
+ allowGuestCheckout?: boolean | undefined;
6435
+ identityScope?: "global" | "store" | "tenant" | undefined;
6436
+ signInMethods?: string[] | undefined;
6437
+ }, {
6438
+ allowGuestCheckout?: boolean | undefined;
6439
+ identityScope?: "global" | "store" | "tenant" | undefined;
6440
+ signInMethods?: string[] | undefined;
6441
+ }>>>;
6442
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6443
+ id: z.ZodString;
6444
+ tenantId: z.ZodOptional<z.ZodString>;
6445
+ sellerId: z.ZodOptional<z.ZodString>;
6446
+ plan: z.ZodOptional<z.ZodString>;
6447
+ storageLimitBytes: z.ZodOptional<z.ZodNumber>;
6448
+ monthlyTransferLimitBytes: z.ZodOptional<z.ZodNumber>;
6449
+ maxUploadSizeBytes: z.ZodOptional<z.ZodNumber>;
6450
+ maxStores: z.ZodOptional<z.ZodNumber>;
6451
+ maxMembers: z.ZodOptional<z.ZodNumber>;
6452
+ maxProducts: z.ZodOptional<z.ZodNumber>;
6453
+ maxCategories: z.ZodOptional<z.ZodNumber>;
6454
+ maxBrands: z.ZodOptional<z.ZodNumber>;
6455
+ maxAttributes: z.ZodOptional<z.ZodNumber>;
6456
+ maxCollections: z.ZodOptional<z.ZodNumber>;
6457
+ enableApi: z.ZodOptional<z.ZodBoolean>;
6458
+ isActive: z.ZodOptional<z.ZodBoolean>;
6459
+ name: z.ZodString;
6460
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6461
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6462
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6463
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6464
+ slug: z.ZodString;
6465
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6466
+ domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6467
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6468
+ currency: z.ZodString;
6469
+ language: z.ZodString;
6470
+ visibility: z.ZodOptional<z.ZodString>;
6471
+ privateAccessHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6472
+ privateAccessVersion: z.ZodOptional<z.ZodNumber>;
6473
+ themeConfig: z.ZodOptional<z.ZodObject<{
6474
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6475
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6476
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6477
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6478
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6479
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6480
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6481
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6482
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6483
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6484
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6485
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6486
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6487
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6488
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6489
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6490
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6491
+ }, z.ZodTypeAny, "passthrough">>>;
6492
+ featuresEnabled: z.ZodOptional<z.ZodObject<{
6493
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6494
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6495
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6496
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6497
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6498
+ }, z.ZodTypeAny, "passthrough">>>;
6499
+ checkoutSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6500
+ allowGuestCheckout: z.ZodOptional<z.ZodBoolean>;
6501
+ identityScope: z.ZodOptional<z.ZodEnum<["store", "tenant", "global"]>>;
6502
+ signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6503
+ }, "strip", z.ZodTypeAny, {
6504
+ allowGuestCheckout?: boolean | undefined;
6505
+ identityScope?: "global" | "store" | "tenant" | undefined;
6506
+ signInMethods?: string[] | undefined;
6507
+ }, {
6508
+ allowGuestCheckout?: boolean | undefined;
6509
+ identityScope?: "global" | "store" | "tenant" | undefined;
6510
+ signInMethods?: string[] | undefined;
6511
+ }>>>;
6512
+ }, z.ZodTypeAny, "passthrough">>;
6513
+ /** Acepta sobre nuevo o JSON plano legacy; siempre valida contra el sobre normalizado. */
6514
+ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6515
+ schemaVersion: z.ZodNumber;
6516
+ generatedAt: z.ZodString;
6517
+ store: z.ZodObject<{
6518
+ id: z.ZodString;
5857
6519
  tenantId: z.ZodOptional<z.ZodString>;
5858
6520
  sellerId: z.ZodOptional<z.ZodString>;
5859
6521
  plan: z.ZodOptional<z.ZodString>;
@@ -5915,11 +6577,81 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
5915
6577
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5916
6578
  }, "strip", z.ZodTypeAny, {
5917
6579
  allowGuestCheckout?: boolean | undefined;
5918
- identityScope?: "store" | "tenant" | "global" | undefined;
6580
+ identityScope?: "global" | "store" | "tenant" | undefined;
5919
6581
  signInMethods?: string[] | undefined;
5920
6582
  }, {
5921
6583
  allowGuestCheckout?: boolean | undefined;
5922
- identityScope?: "store" | "tenant" | "global" | undefined;
6584
+ identityScope?: "global" | "store" | "tenant" | undefined;
6585
+ signInMethods?: string[] | undefined;
6586
+ }>>>;
6587
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6588
+ id: z.ZodString;
6589
+ tenantId: z.ZodOptional<z.ZodString>;
6590
+ sellerId: z.ZodOptional<z.ZodString>;
6591
+ plan: z.ZodOptional<z.ZodString>;
6592
+ storageLimitBytes: z.ZodOptional<z.ZodNumber>;
6593
+ monthlyTransferLimitBytes: z.ZodOptional<z.ZodNumber>;
6594
+ maxUploadSizeBytes: z.ZodOptional<z.ZodNumber>;
6595
+ maxStores: z.ZodOptional<z.ZodNumber>;
6596
+ maxMembers: z.ZodOptional<z.ZodNumber>;
6597
+ maxProducts: z.ZodOptional<z.ZodNumber>;
6598
+ maxCategories: z.ZodOptional<z.ZodNumber>;
6599
+ maxBrands: z.ZodOptional<z.ZodNumber>;
6600
+ maxAttributes: z.ZodOptional<z.ZodNumber>;
6601
+ maxCollections: z.ZodOptional<z.ZodNumber>;
6602
+ enableApi: z.ZodOptional<z.ZodBoolean>;
6603
+ isActive: z.ZodOptional<z.ZodBoolean>;
6604
+ name: z.ZodString;
6605
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6606
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6607
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6608
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6609
+ slug: z.ZodString;
6610
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6611
+ domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6612
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6613
+ currency: z.ZodString;
6614
+ language: z.ZodString;
6615
+ visibility: z.ZodOptional<z.ZodString>;
6616
+ privateAccessHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6617
+ privateAccessVersion: z.ZodOptional<z.ZodNumber>;
6618
+ themeConfig: z.ZodOptional<z.ZodObject<{
6619
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6620
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6621
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6622
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6623
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6624
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6625
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6626
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6627
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6628
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6629
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6630
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6631
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6632
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6633
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6634
+ fonts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6635
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6636
+ }, z.ZodTypeAny, "passthrough">>>;
6637
+ featuresEnabled: z.ZodOptional<z.ZodObject<{
6638
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6639
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6640
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6641
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6642
+ flags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6643
+ }, z.ZodTypeAny, "passthrough">>>;
6644
+ checkoutSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6645
+ allowGuestCheckout: z.ZodOptional<z.ZodBoolean>;
6646
+ identityScope: z.ZodOptional<z.ZodEnum<["store", "tenant", "global"]>>;
6647
+ signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6648
+ }, "strip", z.ZodTypeAny, {
6649
+ allowGuestCheckout?: boolean | undefined;
6650
+ identityScope?: "global" | "store" | "tenant" | undefined;
6651
+ signInMethods?: string[] | undefined;
6652
+ }, {
6653
+ allowGuestCheckout?: boolean | undefined;
6654
+ identityScope?: "global" | "store" | "tenant" | undefined;
5923
6655
  signInMethods?: string[] | undefined;
5924
6656
  }>>>;
5925
6657
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5985,17 +6717,47 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
5985
6717
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5986
6718
  }, "strip", z.ZodTypeAny, {
5987
6719
  allowGuestCheckout?: boolean | undefined;
5988
- identityScope?: "store" | "tenant" | "global" | undefined;
6720
+ identityScope?: "global" | "store" | "tenant" | undefined;
5989
6721
  signInMethods?: string[] | undefined;
5990
6722
  }, {
5991
6723
  allowGuestCheckout?: boolean | undefined;
5992
- identityScope?: "store" | "tenant" | "global" | undefined;
6724
+ identityScope?: "global" | "store" | "tenant" | undefined;
5993
6725
  signInMethods?: string[] | undefined;
5994
6726
  }>>>;
5995
6727
  }, z.ZodTypeAny, "passthrough">>;
5996
6728
  cms: z.ZodObject<{
5997
6729
  settings: z.ZodObject<{
5998
6730
  themeKey: z.ZodOptional<z.ZodString>;
6731
+ channels: z.ZodOptional<z.ZodObject<{
6732
+ storefront: z.ZodOptional<z.ZodObject<{
6733
+ enabled: z.ZodOptional<z.ZodBoolean>;
6734
+ }, "strip", z.ZodTypeAny, {
6735
+ enabled?: boolean | undefined;
6736
+ }, {
6737
+ enabled?: boolean | undefined;
6738
+ }>>;
6739
+ pos: z.ZodOptional<z.ZodObject<{
6740
+ enabled: z.ZodOptional<z.ZodBoolean>;
6741
+ }, "strip", z.ZodTypeAny, {
6742
+ enabled?: boolean | undefined;
6743
+ }, {
6744
+ enabled?: boolean | undefined;
6745
+ }>>;
6746
+ }, "strip", z.ZodTypeAny, {
6747
+ storefront?: {
6748
+ enabled?: boolean | undefined;
6749
+ } | undefined;
6750
+ pos?: {
6751
+ enabled?: boolean | undefined;
6752
+ } | undefined;
6753
+ }, {
6754
+ storefront?: {
6755
+ enabled?: boolean | undefined;
6756
+ } | undefined;
6757
+ pos?: {
6758
+ enabled?: boolean | undefined;
6759
+ } | undefined;
6760
+ }>>;
5999
6761
  branding: z.ZodOptional<z.ZodObject<{
6000
6762
  logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6001
6763
  logoDarkUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6043,17 +6805,17 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6043
6805
  youtube: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6044
6806
  x: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6045
6807
  }, "strip", z.ZodTypeAny, {
6808
+ x?: string | null | undefined;
6046
6809
  facebook?: string | null | undefined;
6047
6810
  tiktok?: string | null | undefined;
6048
6811
  instagram?: string | null | undefined;
6049
6812
  youtube?: string | null | undefined;
6050
- x?: string | null | undefined;
6051
6813
  }, {
6814
+ x?: string | null | undefined;
6052
6815
  facebook?: string | null | undefined;
6053
6816
  tiktok?: string | null | undefined;
6054
6817
  instagram?: string | null | undefined;
6055
6818
  youtube?: string | null | undefined;
6056
- x?: string | null | undefined;
6057
6819
  }>>;
6058
6820
  }, "strip", z.ZodTypeAny, {
6059
6821
  phone?: string | null | undefined;
@@ -6061,11 +6823,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6061
6823
  supportEmail?: string | null | undefined;
6062
6824
  whatsapp?: string | null | undefined;
6063
6825
  socialLinks?: {
6826
+ x?: string | null | undefined;
6064
6827
  facebook?: string | null | undefined;
6065
6828
  tiktok?: string | null | undefined;
6066
6829
  instagram?: string | null | undefined;
6067
6830
  youtube?: string | null | undefined;
6068
- x?: string | null | undefined;
6069
6831
  } | undefined;
6070
6832
  }, {
6071
6833
  phone?: string | null | undefined;
@@ -6073,11 +6835,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6073
6835
  supportEmail?: string | null | undefined;
6074
6836
  whatsapp?: string | null | undefined;
6075
6837
  socialLinks?: {
6838
+ x?: string | null | undefined;
6076
6839
  facebook?: string | null | undefined;
6077
6840
  tiktok?: string | null | undefined;
6078
6841
  instagram?: string | null | undefined;
6079
6842
  youtube?: string | null | undefined;
6080
- x?: string | null | undefined;
6081
6843
  } | undefined;
6082
6844
  }>>;
6083
6845
  tracking: z.ZodOptional<z.ZodObject<{
@@ -6117,6 +6879,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6117
6879
  robotsIndex?: boolean | undefined;
6118
6880
  } | undefined;
6119
6881
  themeKey?: string | undefined;
6882
+ channels?: {
6883
+ storefront?: {
6884
+ enabled?: boolean | undefined;
6885
+ } | undefined;
6886
+ pos?: {
6887
+ enabled?: boolean | undefined;
6888
+ } | undefined;
6889
+ } | undefined;
6120
6890
  branding?: {
6121
6891
  logoUrl?: string | null | undefined;
6122
6892
  logoDarkUrl?: string | null | undefined;
@@ -6129,11 +6899,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6129
6899
  supportEmail?: string | null | undefined;
6130
6900
  whatsapp?: string | null | undefined;
6131
6901
  socialLinks?: {
6902
+ x?: string | null | undefined;
6132
6903
  facebook?: string | null | undefined;
6133
6904
  tiktok?: string | null | undefined;
6134
6905
  instagram?: string | null | undefined;
6135
6906
  youtube?: string | null | undefined;
6136
- x?: string | null | undefined;
6137
6907
  } | undefined;
6138
6908
  } | undefined;
6139
6909
  tracking?: {
@@ -6156,6 +6926,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6156
6926
  robotsIndex?: boolean | undefined;
6157
6927
  } | undefined;
6158
6928
  themeKey?: string | undefined;
6929
+ channels?: {
6930
+ storefront?: {
6931
+ enabled?: boolean | undefined;
6932
+ } | undefined;
6933
+ pos?: {
6934
+ enabled?: boolean | undefined;
6935
+ } | undefined;
6936
+ } | undefined;
6159
6937
  branding?: {
6160
6938
  logoUrl?: string | null | undefined;
6161
6939
  logoDarkUrl?: string | null | undefined;
@@ -6168,11 +6946,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6168
6946
  supportEmail?: string | null | undefined;
6169
6947
  whatsapp?: string | null | undefined;
6170
6948
  socialLinks?: {
6949
+ x?: string | null | undefined;
6171
6950
  facebook?: string | null | undefined;
6172
6951
  tiktok?: string | null | undefined;
6173
6952
  instagram?: string | null | undefined;
6174
6953
  youtube?: string | null | undefined;
6175
- x?: string | null | undefined;
6176
6954
  } | undefined;
6177
6955
  } | undefined;
6178
6956
  tracking?: {
@@ -6190,6 +6968,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6190
6968
  id: z.ZodString;
6191
6969
  name: z.ZodString;
6192
6970
  slug: z.ZodString;
6971
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6193
6972
  layout: z.ZodOptional<z.ZodString>;
6194
6973
  version: z.ZodOptional<z.ZodNumber>;
6195
6974
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -6207,6 +6986,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6207
6986
  id: z.ZodString;
6208
6987
  name: z.ZodString;
6209
6988
  slug: z.ZodString;
6989
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6210
6990
  layout: z.ZodOptional<z.ZodString>;
6211
6991
  version: z.ZodOptional<z.ZodNumber>;
6212
6992
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -6224,6 +7004,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6224
7004
  id: z.ZodString;
6225
7005
  name: z.ZodString;
6226
7006
  slug: z.ZodString;
7007
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6227
7008
  layout: z.ZodOptional<z.ZodString>;
6228
7009
  version: z.ZodOptional<z.ZodNumber>;
6229
7010
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -6249,6 +7030,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6249
7030
  robotsIndex?: boolean | undefined;
6250
7031
  } | undefined;
6251
7032
  themeKey?: string | undefined;
7033
+ channels?: {
7034
+ storefront?: {
7035
+ enabled?: boolean | undefined;
7036
+ } | undefined;
7037
+ pos?: {
7038
+ enabled?: boolean | undefined;
7039
+ } | undefined;
7040
+ } | undefined;
6252
7041
  branding?: {
6253
7042
  logoUrl?: string | null | undefined;
6254
7043
  logoDarkUrl?: string | null | undefined;
@@ -6261,11 +7050,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6261
7050
  supportEmail?: string | null | undefined;
6262
7051
  whatsapp?: string | null | undefined;
6263
7052
  socialLinks?: {
7053
+ x?: string | null | undefined;
6264
7054
  facebook?: string | null | undefined;
6265
7055
  tiktok?: string | null | undefined;
6266
7056
  instagram?: string | null | undefined;
6267
7057
  youtube?: string | null | undefined;
6268
- x?: string | null | undefined;
6269
7058
  } | undefined;
6270
7059
  } | undefined;
6271
7060
  tracking?: {
@@ -6283,6 +7072,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6283
7072
  id: z.ZodString;
6284
7073
  name: z.ZodString;
6285
7074
  slug: z.ZodString;
7075
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6286
7076
  layout: z.ZodOptional<z.ZodString>;
6287
7077
  version: z.ZodOptional<z.ZodNumber>;
6288
7078
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -6308,6 +7098,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6308
7098
  robotsIndex?: boolean | undefined;
6309
7099
  } | undefined;
6310
7100
  themeKey?: string | undefined;
7101
+ channels?: {
7102
+ storefront?: {
7103
+ enabled?: boolean | undefined;
7104
+ } | undefined;
7105
+ pos?: {
7106
+ enabled?: boolean | undefined;
7107
+ } | undefined;
7108
+ } | undefined;
6311
7109
  branding?: {
6312
7110
  logoUrl?: string | null | undefined;
6313
7111
  logoDarkUrl?: string | null | undefined;
@@ -6320,11 +7118,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6320
7118
  supportEmail?: string | null | undefined;
6321
7119
  whatsapp?: string | null | undefined;
6322
7120
  socialLinks?: {
7121
+ x?: string | null | undefined;
6323
7122
  facebook?: string | null | undefined;
6324
7123
  tiktok?: string | null | undefined;
6325
7124
  instagram?: string | null | undefined;
6326
7125
  youtube?: string | null | undefined;
6327
- x?: string | null | undefined;
6328
7126
  } | undefined;
6329
7127
  } | undefined;
6330
7128
  tracking?: {
@@ -6342,6 +7140,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6342
7140
  id: z.ZodString;
6343
7141
  name: z.ZodString;
6344
7142
  slug: z.ZodString;
7143
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6345
7144
  layout: z.ZodOptional<z.ZodString>;
6346
7145
  version: z.ZodOptional<z.ZodNumber>;
6347
7146
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -6423,11 +7222,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6423
7222
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6424
7223
  }, "strip", z.ZodTypeAny, {
6425
7224
  allowGuestCheckout?: boolean | undefined;
6426
- identityScope?: "store" | "tenant" | "global" | undefined;
7225
+ identityScope?: "global" | "store" | "tenant" | undefined;
6427
7226
  signInMethods?: string[] | undefined;
6428
7227
  }, {
6429
7228
  allowGuestCheckout?: boolean | undefined;
6430
- identityScope?: "store" | "tenant" | "global" | undefined;
7229
+ identityScope?: "global" | "store" | "tenant" | undefined;
6431
7230
  signInMethods?: string[] | undefined;
6432
7231
  }>>>;
6433
7232
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -6493,11 +7292,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6493
7292
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6494
7293
  }, "strip", z.ZodTypeAny, {
6495
7294
  allowGuestCheckout?: boolean | undefined;
6496
- identityScope?: "store" | "tenant" | "global" | undefined;
7295
+ identityScope?: "global" | "store" | "tenant" | undefined;
6497
7296
  signInMethods?: string[] | undefined;
6498
7297
  }, {
6499
7298
  allowGuestCheckout?: boolean | undefined;
6500
- identityScope?: "store" | "tenant" | "global" | undefined;
7299
+ identityScope?: "global" | "store" | "tenant" | undefined;
6501
7300
  signInMethods?: string[] | undefined;
6502
7301
  }>>>;
6503
7302
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -6563,17 +7362,47 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6563
7362
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6564
7363
  }, "strip", z.ZodTypeAny, {
6565
7364
  allowGuestCheckout?: boolean | undefined;
6566
- identityScope?: "store" | "tenant" | "global" | undefined;
7365
+ identityScope?: "global" | "store" | "tenant" | undefined;
6567
7366
  signInMethods?: string[] | undefined;
6568
7367
  }, {
6569
7368
  allowGuestCheckout?: boolean | undefined;
6570
- identityScope?: "store" | "tenant" | "global" | undefined;
7369
+ identityScope?: "global" | "store" | "tenant" | undefined;
6571
7370
  signInMethods?: string[] | undefined;
6572
7371
  }>>>;
6573
7372
  }, z.ZodTypeAny, "passthrough">>;
6574
7373
  cms: z.ZodObject<{
6575
7374
  settings: z.ZodObject<{
6576
7375
  themeKey: z.ZodOptional<z.ZodString>;
7376
+ channels: z.ZodOptional<z.ZodObject<{
7377
+ storefront: z.ZodOptional<z.ZodObject<{
7378
+ enabled: z.ZodOptional<z.ZodBoolean>;
7379
+ }, "strip", z.ZodTypeAny, {
7380
+ enabled?: boolean | undefined;
7381
+ }, {
7382
+ enabled?: boolean | undefined;
7383
+ }>>;
7384
+ pos: z.ZodOptional<z.ZodObject<{
7385
+ enabled: z.ZodOptional<z.ZodBoolean>;
7386
+ }, "strip", z.ZodTypeAny, {
7387
+ enabled?: boolean | undefined;
7388
+ }, {
7389
+ enabled?: boolean | undefined;
7390
+ }>>;
7391
+ }, "strip", z.ZodTypeAny, {
7392
+ storefront?: {
7393
+ enabled?: boolean | undefined;
7394
+ } | undefined;
7395
+ pos?: {
7396
+ enabled?: boolean | undefined;
7397
+ } | undefined;
7398
+ }, {
7399
+ storefront?: {
7400
+ enabled?: boolean | undefined;
7401
+ } | undefined;
7402
+ pos?: {
7403
+ enabled?: boolean | undefined;
7404
+ } | undefined;
7405
+ }>>;
6577
7406
  branding: z.ZodOptional<z.ZodObject<{
6578
7407
  logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6579
7408
  logoDarkUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6621,17 +7450,17 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6621
7450
  youtube: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6622
7451
  x: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6623
7452
  }, "strip", z.ZodTypeAny, {
7453
+ x?: string | null | undefined;
6624
7454
  facebook?: string | null | undefined;
6625
7455
  tiktok?: string | null | undefined;
6626
7456
  instagram?: string | null | undefined;
6627
7457
  youtube?: string | null | undefined;
6628
- x?: string | null | undefined;
6629
7458
  }, {
7459
+ x?: string | null | undefined;
6630
7460
  facebook?: string | null | undefined;
6631
7461
  tiktok?: string | null | undefined;
6632
7462
  instagram?: string | null | undefined;
6633
7463
  youtube?: string | null | undefined;
6634
- x?: string | null | undefined;
6635
7464
  }>>;
6636
7465
  }, "strip", z.ZodTypeAny, {
6637
7466
  phone?: string | null | undefined;
@@ -6639,11 +7468,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6639
7468
  supportEmail?: string | null | undefined;
6640
7469
  whatsapp?: string | null | undefined;
6641
7470
  socialLinks?: {
7471
+ x?: string | null | undefined;
6642
7472
  facebook?: string | null | undefined;
6643
7473
  tiktok?: string | null | undefined;
6644
7474
  instagram?: string | null | undefined;
6645
7475
  youtube?: string | null | undefined;
6646
- x?: string | null | undefined;
6647
7476
  } | undefined;
6648
7477
  }, {
6649
7478
  phone?: string | null | undefined;
@@ -6651,11 +7480,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6651
7480
  supportEmail?: string | null | undefined;
6652
7481
  whatsapp?: string | null | undefined;
6653
7482
  socialLinks?: {
7483
+ x?: string | null | undefined;
6654
7484
  facebook?: string | null | undefined;
6655
7485
  tiktok?: string | null | undefined;
6656
7486
  instagram?: string | null | undefined;
6657
7487
  youtube?: string | null | undefined;
6658
- x?: string | null | undefined;
6659
7488
  } | undefined;
6660
7489
  }>>;
6661
7490
  tracking: z.ZodOptional<z.ZodObject<{
@@ -6695,6 +7524,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6695
7524
  robotsIndex?: boolean | undefined;
6696
7525
  } | undefined;
6697
7526
  themeKey?: string | undefined;
7527
+ channels?: {
7528
+ storefront?: {
7529
+ enabled?: boolean | undefined;
7530
+ } | undefined;
7531
+ pos?: {
7532
+ enabled?: boolean | undefined;
7533
+ } | undefined;
7534
+ } | undefined;
6698
7535
  branding?: {
6699
7536
  logoUrl?: string | null | undefined;
6700
7537
  logoDarkUrl?: string | null | undefined;
@@ -6707,11 +7544,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6707
7544
  supportEmail?: string | null | undefined;
6708
7545
  whatsapp?: string | null | undefined;
6709
7546
  socialLinks?: {
7547
+ x?: string | null | undefined;
6710
7548
  facebook?: string | null | undefined;
6711
7549
  tiktok?: string | null | undefined;
6712
7550
  instagram?: string | null | undefined;
6713
7551
  youtube?: string | null | undefined;
6714
- x?: string | null | undefined;
6715
7552
  } | undefined;
6716
7553
  } | undefined;
6717
7554
  tracking?: {
@@ -6734,6 +7571,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6734
7571
  robotsIndex?: boolean | undefined;
6735
7572
  } | undefined;
6736
7573
  themeKey?: string | undefined;
7574
+ channels?: {
7575
+ storefront?: {
7576
+ enabled?: boolean | undefined;
7577
+ } | undefined;
7578
+ pos?: {
7579
+ enabled?: boolean | undefined;
7580
+ } | undefined;
7581
+ } | undefined;
6737
7582
  branding?: {
6738
7583
  logoUrl?: string | null | undefined;
6739
7584
  logoDarkUrl?: string | null | undefined;
@@ -6746,11 +7591,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6746
7591
  supportEmail?: string | null | undefined;
6747
7592
  whatsapp?: string | null | undefined;
6748
7593
  socialLinks?: {
7594
+ x?: string | null | undefined;
6749
7595
  facebook?: string | null | undefined;
6750
7596
  tiktok?: string | null | undefined;
6751
7597
  instagram?: string | null | undefined;
6752
7598
  youtube?: string | null | undefined;
6753
- x?: string | null | undefined;
6754
7599
  } | undefined;
6755
7600
  } | undefined;
6756
7601
  tracking?: {
@@ -6768,6 +7613,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6768
7613
  id: z.ZodString;
6769
7614
  name: z.ZodString;
6770
7615
  slug: z.ZodString;
7616
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6771
7617
  layout: z.ZodOptional<z.ZodString>;
6772
7618
  version: z.ZodOptional<z.ZodNumber>;
6773
7619
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -6785,6 +7631,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6785
7631
  id: z.ZodString;
6786
7632
  name: z.ZodString;
6787
7633
  slug: z.ZodString;
7634
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6788
7635
  layout: z.ZodOptional<z.ZodString>;
6789
7636
  version: z.ZodOptional<z.ZodNumber>;
6790
7637
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -6802,6 +7649,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6802
7649
  id: z.ZodString;
6803
7650
  name: z.ZodString;
6804
7651
  slug: z.ZodString;
7652
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6805
7653
  layout: z.ZodOptional<z.ZodString>;
6806
7654
  version: z.ZodOptional<z.ZodNumber>;
6807
7655
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -6827,6 +7675,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6827
7675
  robotsIndex?: boolean | undefined;
6828
7676
  } | undefined;
6829
7677
  themeKey?: string | undefined;
7678
+ channels?: {
7679
+ storefront?: {
7680
+ enabled?: boolean | undefined;
7681
+ } | undefined;
7682
+ pos?: {
7683
+ enabled?: boolean | undefined;
7684
+ } | undefined;
7685
+ } | undefined;
6830
7686
  branding?: {
6831
7687
  logoUrl?: string | null | undefined;
6832
7688
  logoDarkUrl?: string | null | undefined;
@@ -6839,11 +7695,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6839
7695
  supportEmail?: string | null | undefined;
6840
7696
  whatsapp?: string | null | undefined;
6841
7697
  socialLinks?: {
7698
+ x?: string | null | undefined;
6842
7699
  facebook?: string | null | undefined;
6843
7700
  tiktok?: string | null | undefined;
6844
7701
  instagram?: string | null | undefined;
6845
7702
  youtube?: string | null | undefined;
6846
- x?: string | null | undefined;
6847
7703
  } | undefined;
6848
7704
  } | undefined;
6849
7705
  tracking?: {
@@ -6861,6 +7717,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6861
7717
  id: z.ZodString;
6862
7718
  name: z.ZodString;
6863
7719
  slug: z.ZodString;
7720
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6864
7721
  layout: z.ZodOptional<z.ZodString>;
6865
7722
  version: z.ZodOptional<z.ZodNumber>;
6866
7723
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -6886,6 +7743,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6886
7743
  robotsIndex?: boolean | undefined;
6887
7744
  } | undefined;
6888
7745
  themeKey?: string | undefined;
7746
+ channels?: {
7747
+ storefront?: {
7748
+ enabled?: boolean | undefined;
7749
+ } | undefined;
7750
+ pos?: {
7751
+ enabled?: boolean | undefined;
7752
+ } | undefined;
7753
+ } | undefined;
6889
7754
  branding?: {
6890
7755
  logoUrl?: string | null | undefined;
6891
7756
  logoDarkUrl?: string | null | undefined;
@@ -6898,11 +7763,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6898
7763
  supportEmail?: string | null | undefined;
6899
7764
  whatsapp?: string | null | undefined;
6900
7765
  socialLinks?: {
7766
+ x?: string | null | undefined;
6901
7767
  facebook?: string | null | undefined;
6902
7768
  tiktok?: string | null | undefined;
6903
7769
  instagram?: string | null | undefined;
6904
7770
  youtube?: string | null | undefined;
6905
- x?: string | null | undefined;
6906
7771
  } | undefined;
6907
7772
  } | undefined;
6908
7773
  tracking?: {
@@ -6920,6 +7785,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
6920
7785
  id: z.ZodString;
6921
7786
  name: z.ZodString;
6922
7787
  slug: z.ZodString;
7788
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
6923
7789
  layout: z.ZodOptional<z.ZodString>;
6924
7790
  version: z.ZodOptional<z.ZodNumber>;
6925
7791
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -7001,11 +7867,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7001
7867
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7002
7868
  }, "strip", z.ZodTypeAny, {
7003
7869
  allowGuestCheckout?: boolean | undefined;
7004
- identityScope?: "store" | "tenant" | "global" | undefined;
7870
+ identityScope?: "global" | "store" | "tenant" | undefined;
7005
7871
  signInMethods?: string[] | undefined;
7006
7872
  }, {
7007
7873
  allowGuestCheckout?: boolean | undefined;
7008
- identityScope?: "store" | "tenant" | "global" | undefined;
7874
+ identityScope?: "global" | "store" | "tenant" | undefined;
7009
7875
  signInMethods?: string[] | undefined;
7010
7876
  }>>>;
7011
7877
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -7071,11 +7937,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7071
7937
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7072
7938
  }, "strip", z.ZodTypeAny, {
7073
7939
  allowGuestCheckout?: boolean | undefined;
7074
- identityScope?: "store" | "tenant" | "global" | undefined;
7940
+ identityScope?: "global" | "store" | "tenant" | undefined;
7075
7941
  signInMethods?: string[] | undefined;
7076
7942
  }, {
7077
7943
  allowGuestCheckout?: boolean | undefined;
7078
- identityScope?: "store" | "tenant" | "global" | undefined;
7944
+ identityScope?: "global" | "store" | "tenant" | undefined;
7079
7945
  signInMethods?: string[] | undefined;
7080
7946
  }>>>;
7081
7947
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -7141,17 +8007,47 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7141
8007
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7142
8008
  }, "strip", z.ZodTypeAny, {
7143
8009
  allowGuestCheckout?: boolean | undefined;
7144
- identityScope?: "store" | "tenant" | "global" | undefined;
8010
+ identityScope?: "global" | "store" | "tenant" | undefined;
7145
8011
  signInMethods?: string[] | undefined;
7146
8012
  }, {
7147
8013
  allowGuestCheckout?: boolean | undefined;
7148
- identityScope?: "store" | "tenant" | "global" | undefined;
8014
+ identityScope?: "global" | "store" | "tenant" | undefined;
7149
8015
  signInMethods?: string[] | undefined;
7150
8016
  }>>>;
7151
8017
  }, z.ZodTypeAny, "passthrough">>;
7152
8018
  cms: z.ZodObject<{
7153
8019
  settings: z.ZodObject<{
7154
8020
  themeKey: z.ZodOptional<z.ZodString>;
8021
+ channels: z.ZodOptional<z.ZodObject<{
8022
+ storefront: z.ZodOptional<z.ZodObject<{
8023
+ enabled: z.ZodOptional<z.ZodBoolean>;
8024
+ }, "strip", z.ZodTypeAny, {
8025
+ enabled?: boolean | undefined;
8026
+ }, {
8027
+ enabled?: boolean | undefined;
8028
+ }>>;
8029
+ pos: z.ZodOptional<z.ZodObject<{
8030
+ enabled: z.ZodOptional<z.ZodBoolean>;
8031
+ }, "strip", z.ZodTypeAny, {
8032
+ enabled?: boolean | undefined;
8033
+ }, {
8034
+ enabled?: boolean | undefined;
8035
+ }>>;
8036
+ }, "strip", z.ZodTypeAny, {
8037
+ storefront?: {
8038
+ enabled?: boolean | undefined;
8039
+ } | undefined;
8040
+ pos?: {
8041
+ enabled?: boolean | undefined;
8042
+ } | undefined;
8043
+ }, {
8044
+ storefront?: {
8045
+ enabled?: boolean | undefined;
8046
+ } | undefined;
8047
+ pos?: {
8048
+ enabled?: boolean | undefined;
8049
+ } | undefined;
8050
+ }>>;
7155
8051
  branding: z.ZodOptional<z.ZodObject<{
7156
8052
  logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7157
8053
  logoDarkUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7199,17 +8095,17 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7199
8095
  youtube: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7200
8096
  x: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7201
8097
  }, "strip", z.ZodTypeAny, {
8098
+ x?: string | null | undefined;
7202
8099
  facebook?: string | null | undefined;
7203
8100
  tiktok?: string | null | undefined;
7204
8101
  instagram?: string | null | undefined;
7205
8102
  youtube?: string | null | undefined;
7206
- x?: string | null | undefined;
7207
8103
  }, {
8104
+ x?: string | null | undefined;
7208
8105
  facebook?: string | null | undefined;
7209
8106
  tiktok?: string | null | undefined;
7210
8107
  instagram?: string | null | undefined;
7211
8108
  youtube?: string | null | undefined;
7212
- x?: string | null | undefined;
7213
8109
  }>>;
7214
8110
  }, "strip", z.ZodTypeAny, {
7215
8111
  phone?: string | null | undefined;
@@ -7217,11 +8113,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7217
8113
  supportEmail?: string | null | undefined;
7218
8114
  whatsapp?: string | null | undefined;
7219
8115
  socialLinks?: {
8116
+ x?: string | null | undefined;
7220
8117
  facebook?: string | null | undefined;
7221
8118
  tiktok?: string | null | undefined;
7222
8119
  instagram?: string | null | undefined;
7223
8120
  youtube?: string | null | undefined;
7224
- x?: string | null | undefined;
7225
8121
  } | undefined;
7226
8122
  }, {
7227
8123
  phone?: string | null | undefined;
@@ -7229,11 +8125,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7229
8125
  supportEmail?: string | null | undefined;
7230
8126
  whatsapp?: string | null | undefined;
7231
8127
  socialLinks?: {
8128
+ x?: string | null | undefined;
7232
8129
  facebook?: string | null | undefined;
7233
8130
  tiktok?: string | null | undefined;
7234
8131
  instagram?: string | null | undefined;
7235
8132
  youtube?: string | null | undefined;
7236
- x?: string | null | undefined;
7237
8133
  } | undefined;
7238
8134
  }>>;
7239
8135
  tracking: z.ZodOptional<z.ZodObject<{
@@ -7273,6 +8169,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7273
8169
  robotsIndex?: boolean | undefined;
7274
8170
  } | undefined;
7275
8171
  themeKey?: string | undefined;
8172
+ channels?: {
8173
+ storefront?: {
8174
+ enabled?: boolean | undefined;
8175
+ } | undefined;
8176
+ pos?: {
8177
+ enabled?: boolean | undefined;
8178
+ } | undefined;
8179
+ } | undefined;
7276
8180
  branding?: {
7277
8181
  logoUrl?: string | null | undefined;
7278
8182
  logoDarkUrl?: string | null | undefined;
@@ -7285,11 +8189,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7285
8189
  supportEmail?: string | null | undefined;
7286
8190
  whatsapp?: string | null | undefined;
7287
8191
  socialLinks?: {
8192
+ x?: string | null | undefined;
7288
8193
  facebook?: string | null | undefined;
7289
8194
  tiktok?: string | null | undefined;
7290
8195
  instagram?: string | null | undefined;
7291
8196
  youtube?: string | null | undefined;
7292
- x?: string | null | undefined;
7293
8197
  } | undefined;
7294
8198
  } | undefined;
7295
8199
  tracking?: {
@@ -7312,6 +8216,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7312
8216
  robotsIndex?: boolean | undefined;
7313
8217
  } | undefined;
7314
8218
  themeKey?: string | undefined;
8219
+ channels?: {
8220
+ storefront?: {
8221
+ enabled?: boolean | undefined;
8222
+ } | undefined;
8223
+ pos?: {
8224
+ enabled?: boolean | undefined;
8225
+ } | undefined;
8226
+ } | undefined;
7315
8227
  branding?: {
7316
8228
  logoUrl?: string | null | undefined;
7317
8229
  logoDarkUrl?: string | null | undefined;
@@ -7324,11 +8236,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7324
8236
  supportEmail?: string | null | undefined;
7325
8237
  whatsapp?: string | null | undefined;
7326
8238
  socialLinks?: {
8239
+ x?: string | null | undefined;
7327
8240
  facebook?: string | null | undefined;
7328
8241
  tiktok?: string | null | undefined;
7329
8242
  instagram?: string | null | undefined;
7330
8243
  youtube?: string | null | undefined;
7331
- x?: string | null | undefined;
7332
8244
  } | undefined;
7333
8245
  } | undefined;
7334
8246
  tracking?: {
@@ -7346,6 +8258,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7346
8258
  id: z.ZodString;
7347
8259
  name: z.ZodString;
7348
8260
  slug: z.ZodString;
8261
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
7349
8262
  layout: z.ZodOptional<z.ZodString>;
7350
8263
  version: z.ZodOptional<z.ZodNumber>;
7351
8264
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -7363,6 +8276,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7363
8276
  id: z.ZodString;
7364
8277
  name: z.ZodString;
7365
8278
  slug: z.ZodString;
8279
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
7366
8280
  layout: z.ZodOptional<z.ZodString>;
7367
8281
  version: z.ZodOptional<z.ZodNumber>;
7368
8282
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -7380,6 +8294,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7380
8294
  id: z.ZodString;
7381
8295
  name: z.ZodString;
7382
8296
  slug: z.ZodString;
8297
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
7383
8298
  layout: z.ZodOptional<z.ZodString>;
7384
8299
  version: z.ZodOptional<z.ZodNumber>;
7385
8300
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -7405,6 +8320,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7405
8320
  robotsIndex?: boolean | undefined;
7406
8321
  } | undefined;
7407
8322
  themeKey?: string | undefined;
8323
+ channels?: {
8324
+ storefront?: {
8325
+ enabled?: boolean | undefined;
8326
+ } | undefined;
8327
+ pos?: {
8328
+ enabled?: boolean | undefined;
8329
+ } | undefined;
8330
+ } | undefined;
7408
8331
  branding?: {
7409
8332
  logoUrl?: string | null | undefined;
7410
8333
  logoDarkUrl?: string | null | undefined;
@@ -7417,11 +8340,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7417
8340
  supportEmail?: string | null | undefined;
7418
8341
  whatsapp?: string | null | undefined;
7419
8342
  socialLinks?: {
8343
+ x?: string | null | undefined;
7420
8344
  facebook?: string | null | undefined;
7421
8345
  tiktok?: string | null | undefined;
7422
8346
  instagram?: string | null | undefined;
7423
8347
  youtube?: string | null | undefined;
7424
- x?: string | null | undefined;
7425
8348
  } | undefined;
7426
8349
  } | undefined;
7427
8350
  tracking?: {
@@ -7439,6 +8362,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7439
8362
  id: z.ZodString;
7440
8363
  name: z.ZodString;
7441
8364
  slug: z.ZodString;
8365
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
7442
8366
  layout: z.ZodOptional<z.ZodString>;
7443
8367
  version: z.ZodOptional<z.ZodNumber>;
7444
8368
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -7464,6 +8388,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7464
8388
  robotsIndex?: boolean | undefined;
7465
8389
  } | undefined;
7466
8390
  themeKey?: string | undefined;
8391
+ channels?: {
8392
+ storefront?: {
8393
+ enabled?: boolean | undefined;
8394
+ } | undefined;
8395
+ pos?: {
8396
+ enabled?: boolean | undefined;
8397
+ } | undefined;
8398
+ } | undefined;
7467
8399
  branding?: {
7468
8400
  logoUrl?: string | null | undefined;
7469
8401
  logoDarkUrl?: string | null | undefined;
@@ -7476,11 +8408,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7476
8408
  supportEmail?: string | null | undefined;
7477
8409
  whatsapp?: string | null | undefined;
7478
8410
  socialLinks?: {
8411
+ x?: string | null | undefined;
7479
8412
  facebook?: string | null | undefined;
7480
8413
  tiktok?: string | null | undefined;
7481
8414
  instagram?: string | null | undefined;
7482
8415
  youtube?: string | null | undefined;
7483
- x?: string | null | undefined;
7484
8416
  } | undefined;
7485
8417
  } | undefined;
7486
8418
  tracking?: {
@@ -7498,6 +8430,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7498
8430
  id: z.ZodString;
7499
8431
  name: z.ZodString;
7500
8432
  slug: z.ZodString;
8433
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
7501
8434
  layout: z.ZodOptional<z.ZodString>;
7502
8435
  version: z.ZodOptional<z.ZodNumber>;
7503
8436
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -7579,11 +8512,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7579
8512
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7580
8513
  }, "strip", z.ZodTypeAny, {
7581
8514
  allowGuestCheckout?: boolean | undefined;
7582
- identityScope?: "store" | "tenant" | "global" | undefined;
8515
+ identityScope?: "global" | "store" | "tenant" | undefined;
7583
8516
  signInMethods?: string[] | undefined;
7584
8517
  }, {
7585
8518
  allowGuestCheckout?: boolean | undefined;
7586
- identityScope?: "store" | "tenant" | "global" | undefined;
8519
+ identityScope?: "global" | "store" | "tenant" | undefined;
7587
8520
  signInMethods?: string[] | undefined;
7588
8521
  }>>>;
7589
8522
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -7649,11 +8582,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7649
8582
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7650
8583
  }, "strip", z.ZodTypeAny, {
7651
8584
  allowGuestCheckout?: boolean | undefined;
7652
- identityScope?: "store" | "tenant" | "global" | undefined;
8585
+ identityScope?: "global" | "store" | "tenant" | undefined;
7653
8586
  signInMethods?: string[] | undefined;
7654
8587
  }, {
7655
8588
  allowGuestCheckout?: boolean | undefined;
7656
- identityScope?: "store" | "tenant" | "global" | undefined;
8589
+ identityScope?: "global" | "store" | "tenant" | undefined;
7657
8590
  signInMethods?: string[] | undefined;
7658
8591
  }>>>;
7659
8592
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -7719,17 +8652,47 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7719
8652
  signInMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7720
8653
  }, "strip", z.ZodTypeAny, {
7721
8654
  allowGuestCheckout?: boolean | undefined;
7722
- identityScope?: "store" | "tenant" | "global" | undefined;
8655
+ identityScope?: "global" | "store" | "tenant" | undefined;
7723
8656
  signInMethods?: string[] | undefined;
7724
8657
  }, {
7725
8658
  allowGuestCheckout?: boolean | undefined;
7726
- identityScope?: "store" | "tenant" | "global" | undefined;
8659
+ identityScope?: "global" | "store" | "tenant" | undefined;
7727
8660
  signInMethods?: string[] | undefined;
7728
8661
  }>>>;
7729
8662
  }, z.ZodTypeAny, "passthrough">>;
7730
8663
  cms: z.ZodObject<{
7731
8664
  settings: z.ZodObject<{
7732
8665
  themeKey: z.ZodOptional<z.ZodString>;
8666
+ channels: z.ZodOptional<z.ZodObject<{
8667
+ storefront: z.ZodOptional<z.ZodObject<{
8668
+ enabled: z.ZodOptional<z.ZodBoolean>;
8669
+ }, "strip", z.ZodTypeAny, {
8670
+ enabled?: boolean | undefined;
8671
+ }, {
8672
+ enabled?: boolean | undefined;
8673
+ }>>;
8674
+ pos: z.ZodOptional<z.ZodObject<{
8675
+ enabled: z.ZodOptional<z.ZodBoolean>;
8676
+ }, "strip", z.ZodTypeAny, {
8677
+ enabled?: boolean | undefined;
8678
+ }, {
8679
+ enabled?: boolean | undefined;
8680
+ }>>;
8681
+ }, "strip", z.ZodTypeAny, {
8682
+ storefront?: {
8683
+ enabled?: boolean | undefined;
8684
+ } | undefined;
8685
+ pos?: {
8686
+ enabled?: boolean | undefined;
8687
+ } | undefined;
8688
+ }, {
8689
+ storefront?: {
8690
+ enabled?: boolean | undefined;
8691
+ } | undefined;
8692
+ pos?: {
8693
+ enabled?: boolean | undefined;
8694
+ } | undefined;
8695
+ }>>;
7733
8696
  branding: z.ZodOptional<z.ZodObject<{
7734
8697
  logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7735
8698
  logoDarkUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7777,17 +8740,17 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7777
8740
  youtube: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7778
8741
  x: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7779
8742
  }, "strip", z.ZodTypeAny, {
8743
+ x?: string | null | undefined;
7780
8744
  facebook?: string | null | undefined;
7781
8745
  tiktok?: string | null | undefined;
7782
8746
  instagram?: string | null | undefined;
7783
8747
  youtube?: string | null | undefined;
7784
- x?: string | null | undefined;
7785
8748
  }, {
8749
+ x?: string | null | undefined;
7786
8750
  facebook?: string | null | undefined;
7787
8751
  tiktok?: string | null | undefined;
7788
8752
  instagram?: string | null | undefined;
7789
8753
  youtube?: string | null | undefined;
7790
- x?: string | null | undefined;
7791
8754
  }>>;
7792
8755
  }, "strip", z.ZodTypeAny, {
7793
8756
  phone?: string | null | undefined;
@@ -7795,11 +8758,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7795
8758
  supportEmail?: string | null | undefined;
7796
8759
  whatsapp?: string | null | undefined;
7797
8760
  socialLinks?: {
8761
+ x?: string | null | undefined;
7798
8762
  facebook?: string | null | undefined;
7799
8763
  tiktok?: string | null | undefined;
7800
8764
  instagram?: string | null | undefined;
7801
8765
  youtube?: string | null | undefined;
7802
- x?: string | null | undefined;
7803
8766
  } | undefined;
7804
8767
  }, {
7805
8768
  phone?: string | null | undefined;
@@ -7807,11 +8770,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7807
8770
  supportEmail?: string | null | undefined;
7808
8771
  whatsapp?: string | null | undefined;
7809
8772
  socialLinks?: {
8773
+ x?: string | null | undefined;
7810
8774
  facebook?: string | null | undefined;
7811
8775
  tiktok?: string | null | undefined;
7812
8776
  instagram?: string | null | undefined;
7813
8777
  youtube?: string | null | undefined;
7814
- x?: string | null | undefined;
7815
8778
  } | undefined;
7816
8779
  }>>;
7817
8780
  tracking: z.ZodOptional<z.ZodObject<{
@@ -7851,6 +8814,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7851
8814
  robotsIndex?: boolean | undefined;
7852
8815
  } | undefined;
7853
8816
  themeKey?: string | undefined;
8817
+ channels?: {
8818
+ storefront?: {
8819
+ enabled?: boolean | undefined;
8820
+ } | undefined;
8821
+ pos?: {
8822
+ enabled?: boolean | undefined;
8823
+ } | undefined;
8824
+ } | undefined;
7854
8825
  branding?: {
7855
8826
  logoUrl?: string | null | undefined;
7856
8827
  logoDarkUrl?: string | null | undefined;
@@ -7863,11 +8834,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7863
8834
  supportEmail?: string | null | undefined;
7864
8835
  whatsapp?: string | null | undefined;
7865
8836
  socialLinks?: {
8837
+ x?: string | null | undefined;
7866
8838
  facebook?: string | null | undefined;
7867
8839
  tiktok?: string | null | undefined;
7868
8840
  instagram?: string | null | undefined;
7869
8841
  youtube?: string | null | undefined;
7870
- x?: string | null | undefined;
7871
8842
  } | undefined;
7872
8843
  } | undefined;
7873
8844
  tracking?: {
@@ -7890,6 +8861,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7890
8861
  robotsIndex?: boolean | undefined;
7891
8862
  } | undefined;
7892
8863
  themeKey?: string | undefined;
8864
+ channels?: {
8865
+ storefront?: {
8866
+ enabled?: boolean | undefined;
8867
+ } | undefined;
8868
+ pos?: {
8869
+ enabled?: boolean | undefined;
8870
+ } | undefined;
8871
+ } | undefined;
7893
8872
  branding?: {
7894
8873
  logoUrl?: string | null | undefined;
7895
8874
  logoDarkUrl?: string | null | undefined;
@@ -7902,11 +8881,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7902
8881
  supportEmail?: string | null | undefined;
7903
8882
  whatsapp?: string | null | undefined;
7904
8883
  socialLinks?: {
8884
+ x?: string | null | undefined;
7905
8885
  facebook?: string | null | undefined;
7906
8886
  tiktok?: string | null | undefined;
7907
8887
  instagram?: string | null | undefined;
7908
8888
  youtube?: string | null | undefined;
7909
- x?: string | null | undefined;
7910
8889
  } | undefined;
7911
8890
  } | undefined;
7912
8891
  tracking?: {
@@ -7924,6 +8903,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7924
8903
  id: z.ZodString;
7925
8904
  name: z.ZodString;
7926
8905
  slug: z.ZodString;
8906
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
7927
8907
  layout: z.ZodOptional<z.ZodString>;
7928
8908
  version: z.ZodOptional<z.ZodNumber>;
7929
8909
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -7941,6 +8921,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7941
8921
  id: z.ZodString;
7942
8922
  name: z.ZodString;
7943
8923
  slug: z.ZodString;
8924
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
7944
8925
  layout: z.ZodOptional<z.ZodString>;
7945
8926
  version: z.ZodOptional<z.ZodNumber>;
7946
8927
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -7958,6 +8939,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7958
8939
  id: z.ZodString;
7959
8940
  name: z.ZodString;
7960
8941
  slug: z.ZodString;
8942
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
7961
8943
  layout: z.ZodOptional<z.ZodString>;
7962
8944
  version: z.ZodOptional<z.ZodNumber>;
7963
8945
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -7983,6 +8965,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7983
8965
  robotsIndex?: boolean | undefined;
7984
8966
  } | undefined;
7985
8967
  themeKey?: string | undefined;
8968
+ channels?: {
8969
+ storefront?: {
8970
+ enabled?: boolean | undefined;
8971
+ } | undefined;
8972
+ pos?: {
8973
+ enabled?: boolean | undefined;
8974
+ } | undefined;
8975
+ } | undefined;
7986
8976
  branding?: {
7987
8977
  logoUrl?: string | null | undefined;
7988
8978
  logoDarkUrl?: string | null | undefined;
@@ -7995,11 +8985,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
7995
8985
  supportEmail?: string | null | undefined;
7996
8986
  whatsapp?: string | null | undefined;
7997
8987
  socialLinks?: {
8988
+ x?: string | null | undefined;
7998
8989
  facebook?: string | null | undefined;
7999
8990
  tiktok?: string | null | undefined;
8000
8991
  instagram?: string | null | undefined;
8001
8992
  youtube?: string | null | undefined;
8002
- x?: string | null | undefined;
8003
8993
  } | undefined;
8004
8994
  } | undefined;
8005
8995
  tracking?: {
@@ -8017,6 +9007,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
8017
9007
  id: z.ZodString;
8018
9008
  name: z.ZodString;
8019
9009
  slug: z.ZodString;
9010
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
8020
9011
  layout: z.ZodOptional<z.ZodString>;
8021
9012
  version: z.ZodOptional<z.ZodNumber>;
8022
9013
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -8042,6 +9033,14 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
8042
9033
  robotsIndex?: boolean | undefined;
8043
9034
  } | undefined;
8044
9035
  themeKey?: string | undefined;
9036
+ channels?: {
9037
+ storefront?: {
9038
+ enabled?: boolean | undefined;
9039
+ } | undefined;
9040
+ pos?: {
9041
+ enabled?: boolean | undefined;
9042
+ } | undefined;
9043
+ } | undefined;
8045
9044
  branding?: {
8046
9045
  logoUrl?: string | null | undefined;
8047
9046
  logoDarkUrl?: string | null | undefined;
@@ -8054,11 +9053,11 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
8054
9053
  supportEmail?: string | null | undefined;
8055
9054
  whatsapp?: string | null | undefined;
8056
9055
  socialLinks?: {
9056
+ x?: string | null | undefined;
8057
9057
  facebook?: string | null | undefined;
8058
9058
  tiktok?: string | null | undefined;
8059
9059
  instagram?: string | null | undefined;
8060
9060
  youtube?: string | null | undefined;
8061
- x?: string | null | undefined;
8062
9061
  } | undefined;
8063
9062
  } | undefined;
8064
9063
  tracking?: {
@@ -8076,6 +9075,7 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
8076
9075
  id: z.ZodString;
8077
9076
  name: z.ZodString;
8078
9077
  slug: z.ZodString;
9078
+ channel: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["storefront", "pos"]>>>;
8079
9079
  layout: z.ZodOptional<z.ZodString>;
8080
9080
  version: z.ZodOptional<z.ZodNumber>;
8081
9081
  settings: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -8093,6 +9093,9 @@ declare const StorefrontSettingsSchema: z.ZodEffects<z.ZodObject<{
8093
9093
  }>;
8094
9094
  }, z.ZodTypeAny, "passthrough">, unknown>;
8095
9095
  type StorefrontSettings = z.infer<typeof StorefrontSettingsSchema>;
9096
+ type StorefrontStore = z.infer<typeof StorefrontStoreSchema>;
9097
+ type StorefrontCmsSettings = z.infer<typeof StorefrontCmsSettingsSchema>;
9098
+ type StorefrontCmsPage = z.infer<typeof StorefrontCmsPageSchema>;
8096
9099
 
8097
9100
  type Drawers = {
8098
9101
  cart: boolean;
@@ -8231,6 +9234,11 @@ type UseProceedToCheckoutOptions = {
8231
9234
  * Por defecto: cliente guardado en checkout o `guest@checkout.local`.
8232
9235
  */
8233
9236
  guestEmail?: string;
9237
+ /**
9238
+ * Sincroniza líneas del store local al carrito del API antes de navegar (default `true`).
9239
+ * La página de checkout también reconcilia al cargar; esto evita llegar con carrito vacío en el API.
9240
+ */
9241
+ syncLocalCart?: boolean;
8234
9242
  /**
8235
9243
  * Navegación tras resolver el `cartId` (crear o reutilizar).
8236
9244
  * Por defecto en browser: `window.location.assign`.
@@ -8291,6 +9299,17 @@ type OptionGroup = {
8291
9299
  };
8292
9300
  /** Selected options per group (e.g. { Color: "Black", Size: "8 x 11 inch" }) */
8293
9301
  type SelectedOptions = Record<string, string>;
9302
+ /** Selección resuelta — agnóstica de carrito/checkout. */
9303
+ type VariantSelectionPayload = {
9304
+ productId: string;
9305
+ productName: string;
9306
+ variant: StorefrontVariant;
9307
+ displayPrice: number;
9308
+ compareAtPrice: number | null | undefined;
9309
+ variantLabel?: string;
9310
+ variantSku?: string;
9311
+ imageUrl: string;
9312
+ };
8294
9313
  type ProductVariantSelectorRenderProps = {
8295
9314
  product: StorefrontProductDetail;
8296
9315
  selectedVariant: StorefrontVariant | null;
@@ -8299,6 +9318,58 @@ type ProductVariantSelectorRenderProps = {
8299
9318
  isAvailable: boolean;
8300
9319
  selectedOptions: SelectedOptions;
8301
9320
  };
9321
+ /** Slot de UI para grupos de variantes (Color, Size…). Solo render. */
9322
+ type ProductVariantSelectorCompleteVariantsSlot = {
9323
+ optionGroups: OptionGroup[];
9324
+ selectedOptions: SelectedOptions;
9325
+ selectOption: (key: string, value: string) => void;
9326
+ hasVariants: boolean;
9327
+ selectedVariant: StorefrontVariant | null;
9328
+ isAvailable: boolean;
9329
+ };
9330
+ type ProductVariantSelectorCompletePriceSlot = {
9331
+ displayPrice: number;
9332
+ compareAtPrice: number | null | undefined;
9333
+ currency: string;
9334
+ selectedVariant: StorefrontVariant | null;
9335
+ };
9336
+ type ProductVariantSelectorCompletePriceTiersSlot = {
9337
+ priceTiers: StorefrontPriceTier[];
9338
+ currency: string;
9339
+ selectedVariant: StorefrontVariant | null;
9340
+ };
9341
+ /**
9342
+ * Slot opcional para CTA (comprar, agregar, etc.).
9343
+ * Sin lógica de carrito: el consumidor conecta su propio handler.
9344
+ */
9345
+ type ProductVariantSelectorCompleteActionSlot = {
9346
+ product: StorefrontProductDetail;
9347
+ selectedVariant: StorefrontVariant | null;
9348
+ displayPrice: number;
9349
+ compareAtPrice: number | null | undefined;
9350
+ currency: string;
9351
+ isAvailable: boolean;
9352
+ isReady: boolean;
9353
+ selection: VariantSelectionPayload | null;
9354
+ };
9355
+ type ProductVariantSelectorCompleteProps = {
9356
+ product: StorefrontProductDetail;
9357
+ currency?: string;
9358
+ features?: string[];
9359
+ className?: string;
9360
+ onVariantChange?: (variant: StorefrontVariant | null, price: number) => void;
9361
+ onSelectionChange?: (selection: VariantSelectionPayload | null) => void;
9362
+ /** Solo UI del precio. Si se omite, usa el default del SDK. */
9363
+ renderPrice?: (slot: ProductVariantSelectorCompletePriceSlot) => ReactNode;
9364
+ /** Solo UI de grupos/opciones. Si se omite, usa el default del SDK. */
9365
+ renderVariants?: (slot: ProductVariantSelectorCompleteVariantsSlot) => ReactNode;
9366
+ /** Solo UI de price tiers. Si se omite y hay tiers, usa el default del SDK. */
9367
+ renderPriceTiers?: (slot: ProductVariantSelectorCompletePriceTiersSlot) => ReactNode;
9368
+ /** CTA custom (comprar, agregar al carrito propio, etc.). Sin default — agnóstico. */
9369
+ renderAction?: (slot: ProductVariantSelectorCompleteActionSlot) => ReactNode;
9370
+ /** Solo UI de features/bullets del producto. */
9371
+ renderFeatures?: (features: string[]) => ReactNode;
9372
+ };
8302
9373
 
8303
9374
  type ProductVariantSelectorProps = {
8304
9375
  product: StorefrontProductDetail;
@@ -8316,6 +9387,163 @@ type ProductVariantSelectorProps = {
8316
9387
  };
8317
9388
  declare function ProductVariantSelector({ product, currency, features, onVariantChange, children, }: ProductVariantSelectorProps): react.JSX.Element;
8318
9389
 
9390
+ /**
9391
+ * Selector de variantes con toda la lógica de selección interna.
9392
+ * Agnóstico de carrito/drawer: el consumidor conecta `renderAction` con su flujo.
9393
+ *
9394
+ * @example
9395
+ * ```tsx
9396
+ * <ProductVariantSelectorComplete
9397
+ * product={product}
9398
+ * currency="PEN"
9399
+ * renderAction={({ isReady, selection }) => (
9400
+ * <button
9401
+ * type="button"
9402
+ * disabled={!isReady || !selection}
9403
+ * onClick={() => selection && myAddToCart(selection)}
9404
+ * >
9405
+ * Agregar
9406
+ * </button>
9407
+ * )}
9408
+ * />
9409
+ * ```
9410
+ */
9411
+ declare function ProductVariantSelectorComplete({ product, currency, features, className, onVariantChange, onSelectionChange, renderPrice, renderVariants, renderPriceTiers, renderAction, renderFeatures, }: ProductVariantSelectorCompleteProps): react.JSX.Element;
9412
+
9413
+ type UseProductVariantSelectionOptions = {
9414
+ product: StorefrontProductDetail;
9415
+ onVariantChange?: (variant: StorefrontVariant | null, price: number) => void;
9416
+ onSelectionChange?: (selection: VariantSelectionPayload | null) => void;
9417
+ };
9418
+ declare function useProductVariantSelection({ product, onVariantChange, onSelectionChange, }: UseProductVariantSelectionOptions): {
9419
+ product: {
9420
+ id: string;
9421
+ name: string;
9422
+ images: {
9423
+ url: string;
9424
+ name?: string | null | undefined;
9425
+ order?: number | undefined;
9426
+ }[];
9427
+ slug: string;
9428
+ variants: {
9429
+ id: string;
9430
+ sku: string;
9431
+ options: {
9432
+ name: string;
9433
+ value: string;
9434
+ key: string;
9435
+ }[];
9436
+ images: {
9437
+ url: string;
9438
+ name?: string | null | undefined;
9439
+ order?: number | undefined;
9440
+ }[];
9441
+ price: number;
9442
+ quantity: number;
9443
+ status?: string | null | undefined;
9444
+ compareAtPrice?: number | null | undefined;
9445
+ }[];
9446
+ price: number;
9447
+ isAvailable: boolean;
9448
+ totalInventory: number;
9449
+ specifications: Record<string, unknown>[];
9450
+ bundleItems: {
9451
+ productId: string;
9452
+ quantity: number;
9453
+ variantId: string;
9454
+ productName: string;
9455
+ availableStock: number;
9456
+ allowBackorders: boolean;
9457
+ requiresShipping: boolean;
9458
+ sku?: string | null | undefined;
9459
+ imageUrl?: string | null | undefined;
9460
+ brand?: string | null | undefined;
9461
+ variantName?: string | null | undefined;
9462
+ }[];
9463
+ priceTiers: {
9464
+ variantId: string;
9465
+ minQuantity: number;
9466
+ unitPrice: number;
9467
+ maxQuantity?: number | null | undefined;
9468
+ }[];
9469
+ status?: string | null | undefined;
9470
+ description?: string | null | undefined;
9471
+ tags?: string[] | null | undefined;
9472
+ category?: string | null | undefined;
9473
+ createdAt?: string | null | undefined;
9474
+ productType?: string | null | undefined;
9475
+ imageUrl?: string | null | undefined;
9476
+ compareAtPrice?: number | null | undefined;
9477
+ brand?: string | null | undefined;
9478
+ categoryId?: string | null | undefined;
9479
+ updatedAt?: string | null | undefined;
9480
+ };
9481
+ variants: {
9482
+ id: string;
9483
+ sku: string;
9484
+ options: {
9485
+ name: string;
9486
+ value: string;
9487
+ key: string;
9488
+ }[];
9489
+ images: {
9490
+ url: string;
9491
+ name?: string | null | undefined;
9492
+ order?: number | undefined;
9493
+ }[];
9494
+ price: number;
9495
+ quantity: number;
9496
+ status?: string | null | undefined;
9497
+ compareAtPrice?: number | null | undefined;
9498
+ }[];
9499
+ optionGroups: OptionGroup[];
9500
+ selectedOptions: SelectedOptions;
9501
+ selectOption: (key: string, value: string) => void;
9502
+ hasVariants: boolean;
9503
+ selectedVariant: {
9504
+ id: string;
9505
+ sku: string;
9506
+ options: {
9507
+ name: string;
9508
+ value: string;
9509
+ key: string;
9510
+ }[];
9511
+ images: {
9512
+ url: string;
9513
+ name?: string | null | undefined;
9514
+ order?: number | undefined;
9515
+ }[];
9516
+ price: number;
9517
+ quantity: number;
9518
+ status?: string | null | undefined;
9519
+ compareAtPrice?: number | null | undefined;
9520
+ } | null;
9521
+ displayPrice: number;
9522
+ compareAtPrice: number | null | undefined;
9523
+ isAvailable: boolean;
9524
+ isReady: boolean;
9525
+ selection: VariantSelectionPayload | null;
9526
+ priceTiers: {
9527
+ variantId: string;
9528
+ minQuantity: number;
9529
+ unitPrice: number;
9530
+ maxQuantity?: number | null | undefined;
9531
+ }[];
9532
+ };
9533
+ type ProductVariantSelectionState = ReturnType<typeof useProductVariantSelection>;
9534
+
9535
+ declare function buildOptionGroups(variants: StorefrontVariant[]): OptionGroup[];
9536
+ declare function findVariant(variants: StorefrontVariant[], selected: SelectedOptions, hasConfigurableOptions: boolean): StorefrontVariant | null;
9537
+ declare function getInitialOptions(variants: StorefrontVariant[], optionGroups: OptionGroup[]): SelectedOptions;
9538
+ declare function buildVariantLabel(variant: StorefrontVariant | null): string | undefined;
9539
+ declare function getPriceTiersForVariant(product: StorefrontProductDetail, variantId: string | undefined): StorefrontPriceTier[];
9540
+ declare function buildVariantSelectionPayload(product: StorefrontProductDetail, selectedVariant: StorefrontVariant | null, displayPrice: number): VariantSelectionPayload | null;
9541
+ /** Helper opcional para proyectos que usan `useCart` del SDK. */
9542
+ declare function buildCartItemFromVariant(product: StorefrontProductDetail, selectedVariant: StorefrontVariant | null, displayPrice: number): CartItem | null;
9543
+ declare function isVariantSelectionReady(selectedVariant: StorefrontVariant | null, isAvailable: boolean): boolean;
9544
+ /** @deprecated Usar `isVariantSelectionReady`. */
9545
+ declare function canAddVariantToCart(selectedVariant: StorefrontVariant | null, isAvailable: boolean): boolean;
9546
+
8319
9547
  type ThankYouLinkProps = {
8320
9548
  href: string;
8321
9549
  className?: string;
@@ -8403,7 +9631,7 @@ declare function useCheckoutSession(cartId: string): {
8403
9631
  storeId: string;
8404
9632
  currency: string;
8405
9633
  cartId: string;
8406
- checkoutQuery: _tanstack_react_query.UseQueryResult<{
9634
+ checkoutQuery: _tanstack_react_query.UseQueryResult<NoInfer<{
8407
9635
  cart: {
8408
9636
  id: string;
8409
9637
  items: {
@@ -8464,7 +9692,7 @@ declare function useCheckoutSession(cartId: string): {
8464
9692
  qrImageUrl?: string | null | undefined;
8465
9693
  }[];
8466
9694
  };
8467
- }, Error>;
9695
+ }>, Error>;
8468
9696
  cartData: {
8469
9697
  id: string;
8470
9698
  items: {
@@ -8802,7 +10030,7 @@ declare function useCheckoutSession(cartId: string): {
8802
10030
  formError: string | null;
8803
10031
  handleApplyCoupon: () => Promise<void>;
8804
10032
  handleRemoveCoupon: (code: string) => Promise<void>;
8805
- shippingOptionsQuery: _tanstack_react_query.UseQueryResult<{
10033
+ shippingOptionsQuery: _tanstack_react_query.UseQueryResult<NoInfer<{
8806
10034
  groups: zod.objectOutputType<{
8807
10035
  sellerId: zod.ZodString;
8808
10036
  shippingProfileId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -8856,7 +10084,7 @@ declare function useCheckoutSession(cartId: string): {
8856
10084
  metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
8857
10085
  }, zod.ZodTypeAny, "passthrough">>, "many">;
8858
10086
  }, zod.ZodTypeAny, "passthrough">[];
8859
- }, Error>;
10087
+ }>, Error>;
8860
10088
  shippingFlat: {
8861
10089
  key: string;
8862
10090
  group: ShippingOptionGroup;
@@ -9528,4 +10756,4 @@ declare function useCheckoutSession(cartId: string): {
9528
10756
  isSaving: boolean;
9529
10757
  };
9530
10758
 
9531
- export { type BillingChoice, type CartItem, type CheckoutContactForm, type CheckoutCustomerLocal, type CheckoutLinkProps, CheckoutPage, type CheckoutPageProps, 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, EcomiqProvider, type EcomiqProviderProps, type EcomiqSignInCredentials, type OptionGroup, ProductVariantSelector, type ProductVariantSelectorProps, type ProductVariantSelectorRenderProps, QueryProvider, type SelectedOptions, StoreApiClient, type StoreApiGetOptions, type StorefrontAuthClientInstance, StorefrontAuthProvider, type StorefrontSessionUser, type ThankYouLinkProps, ThankYouPage, type ThankYouPageProps, type UseProceedToCheckoutOptions, addCartCoupon, buildCheckoutPath, buildCheckoutThankYouUrl, checkoutCart, createCart, createCustomerAddress, createStoreApiClient, customerMeToProfilePatch, deleteCustomerAddress, ecomiqOAuthPasswordClient, emailFromCheckoutResult, getCart, getCartCheckout, getCartPaymentMethods, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getSharedOrderDraft, getShippingOptions, getStoreApiBaseUrl, getStoreApiClient, getStorefrontCollectionBySlug, getStorefrontCollections, getStorefrontPageBySlug, getStorefrontPagePreview, getStorefrontPages, getStorefrontProductBySlug, getStorefrontProducts, isCartNotActiveApiError, orderIdFromCheckoutResult, patchCartAddresses, patchCartBuyer, patchCustomer, putCartShippingMethod, registerCustomer, removeCartCoupon, setClientStoreId, setServerRequestOrigin, setServerStoreId, signInWithEcomiqCredentials, storeApiClient, storefrontAccessTokenNeedsRefresh, storefrontSessionEndsSoon, thankYouParamsFromCheckoutResult, updateCustomerAddress, uploadPaymentReceipt, useCart, useCheckoutSession, useProceedToCheckout, useStore, useStoreCart, useStoreCollections, useStorePages, useStoreProducts, useStorefrontAuthClient, useStorefrontSession };
10759
+ export { type BillingChoice, type CartItem, type CheckoutContactForm, type CheckoutCustomerLocal, type CheckoutLinkProps, CheckoutPage, type CheckoutPageProps, 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, EcomiqProvider, type EcomiqProviderProps, type EcomiqSignInCredentials, type OptionGroup, type ProductVariantSelectionState, ProductVariantSelector, ProductVariantSelectorComplete, type ProductVariantSelectorCompleteActionSlot, type ProductVariantSelectorCompletePriceSlot, type ProductVariantSelectorCompletePriceTiersSlot, type ProductVariantSelectorCompleteProps, type ProductVariantSelectorCompleteVariantsSlot, type ProductVariantSelectorProps, type ProductVariantSelectorRenderProps, QueryProvider, type SelectedOptions, StoreApiClient, type StoreApiGetOptions, type StorefrontAuthClientInstance, StorefrontAuthProvider, type StorefrontCmsPage, type StorefrontCmsSettings, type StorefrontCollection, type StorefrontCollectionDetail, type StorefrontFacet, type StorefrontPageDetail, type StorefrontPageListItem, type StorefrontProduct, type StorefrontProductDetail, type StorefrontProductsParamsInput, type StorefrontProductsResponse, type StorefrontSearchFilter, type StorefrontSessionUser, type StorefrontSettings, type StorefrontStore, type StorefrontVariant, type ThankYouLinkProps, ThankYouPage, type ThankYouPageProps, type UseProceedToCheckoutOptions, type UseProductVariantSelectionOptions, type VariantSelectionPayload, addCartCoupon, buildCartItemFromVariant, buildCheckoutPath, buildCheckoutThankYouUrl, buildOptionGroups, buildVariantLabel, buildVariantSelectionPayload, canAddVariantToCart, checkoutCart, createCart, createCustomerAddress, createStoreApiClient, customerMeToProfilePatch, deleteCustomerAddress, ecomiqOAuthPasswordClient, emailFromCheckoutResult, findVariant, getCart, getCartCheckout, getCartPaymentMethods, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getInitialOptions, getPriceTiersForVariant, getSharedOrderDraft, getShippingOptions, getStoreApiBaseUrl, getStoreApiClient, getStorefrontCollectionBySlug, getStorefrontCollections, getStorefrontPageBySlug, getStorefrontPagePreview, getStorefrontPages, getStorefrontProductBySlug, getStorefrontProducts, isCartNotActiveApiError, isVariantSelectionReady, orderIdFromCheckoutResult, patchCartAddresses, patchCartBuyer, patchCustomer, putCartShippingMethod, registerCustomer, removeCartCoupon, setClientStoreId, setServerRequestOrigin, setServerStoreId, signInWithEcomiqCredentials, storeApiClient, storefrontAccessTokenNeedsRefresh, storefrontSessionEndsSoon, thankYouParamsFromCheckoutResult, updateCustomerAddress, uploadPaymentReceipt, useCart, useCheckoutSession, useProceedToCheckout, useProductVariantSelection, useStore, useStoreCart, useStoreCollections, useStorePages, useStoreProducts, useStorefrontAuthClient, useStorefrontSession };