@ecomiq/storefront 1.0.2 → 1.1.0

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