@ecomiq/core 0.1.5 → 0.1.7

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 (59) hide show
  1. package/dist/client.cjs +46 -39
  2. package/dist/client.cjs.map +1 -1
  3. package/dist/client.d.cts +1 -0
  4. package/dist/client.d.ts +1 -0
  5. package/dist/client.js +46 -39
  6. package/dist/client.js.map +1 -1
  7. package/dist/index.cjs +49 -39
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +1 -0
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.js +47 -40
  12. package/dist/index.js.map +1 -1
  13. package/dist/models/geo.cjs +10 -2
  14. package/dist/models/geo.cjs.map +1 -1
  15. package/dist/models/geo.d.cts +14 -14
  16. package/dist/models/geo.d.ts +14 -14
  17. package/dist/models/geo.js +10 -2
  18. package/dist/models/geo.js.map +1 -1
  19. package/dist/models/ids.cjs +17 -0
  20. package/dist/models/ids.cjs.map +1 -0
  21. package/dist/models/ids.d.cts +12 -0
  22. package/dist/models/ids.d.ts +12 -0
  23. package/dist/models/ids.js +13 -0
  24. package/dist/models/ids.js.map +1 -0
  25. package/dist/models/products.cjs +12 -4
  26. package/dist/models/products.cjs.map +1 -1
  27. package/dist/models/products.d.cts +4 -4
  28. package/dist/models/products.d.ts +4 -4
  29. package/dist/models/products.js +12 -4
  30. package/dist/models/products.js.map +1 -1
  31. package/dist/models/search.cjs +11 -5
  32. package/dist/models/search.cjs.map +1 -1
  33. package/dist/models/search.d.cts +1 -1
  34. package/dist/models/search.d.ts +1 -1
  35. package/dist/models/search.js +11 -5
  36. package/dist/models/search.js.map +1 -1
  37. package/dist/models/settings.cjs +20 -10
  38. package/dist/models/settings.cjs.map +1 -1
  39. package/dist/models/settings.d.cts +64 -63
  40. package/dist/models/settings.d.ts +64 -63
  41. package/dist/models/settings.js +18 -11
  42. package/dist/models/settings.js.map +1 -1
  43. package/dist/models/storefront-cart.cjs +23 -15
  44. package/dist/models/storefront-cart.cjs.map +1 -1
  45. package/dist/models/storefront-cart.d.cts +23 -23
  46. package/dist/models/storefront-cart.d.ts +23 -23
  47. package/dist/models/storefront-cart.js +23 -15
  48. package/dist/models/storefront-cart.js.map +1 -1
  49. package/dist/models/storefront-checkout.cjs +28 -22
  50. package/dist/models/storefront-checkout.cjs.map +1 -1
  51. package/dist/models/storefront-checkout.d.cts +43 -43
  52. package/dist/models/storefront-checkout.d.ts +43 -43
  53. package/dist/models/storefront-checkout.js +28 -22
  54. package/dist/models/storefront-checkout.js.map +1 -1
  55. package/dist/models/storefront-reviews.cjs +12 -4
  56. package/dist/models/storefront-reviews.cjs.map +1 -1
  57. package/dist/models/storefront-reviews.js +12 -4
  58. package/dist/models/storefront-reviews.js.map +1 -1
  59. package/package.json +6 -1
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export { EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from './ids.cjs';
2
3
 
3
4
  type JsonElement = null | boolean | number | string | JsonElement[] | {
4
5
  [key: string]: JsonElement;
@@ -289,9 +290,9 @@ declare const StoreCheckoutSettingsSchema: z.ZodObject<{
289
290
  };
290
291
  }>;
291
292
  declare const StoreModelSchema: z.ZodObject<{
292
- id: z.ZodString;
293
- tenantId: z.ZodString;
294
- sellerId: z.ZodNullable<z.ZodString>;
293
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
294
+ tenantId: z.ZodUnion<[z.ZodString, z.ZodString]>;
295
+ sellerId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
295
296
  type: z.ZodEnum<["b2C", "marketplace", "retail", "b2B", "social", "hub", "restaurant"]>;
296
297
  isActive: z.ZodBoolean;
297
298
  name: z.ZodString;
@@ -968,7 +969,7 @@ declare const CmsMenuDtoSchema: z.ZodObject<{
968
969
  }>;
969
970
  type CmsMenuDto = z.infer<typeof CmsMenuDtoSchema>;
970
971
  declare const CmsBlockDtoSchema: z.ZodObject<{
971
- id: z.ZodString;
972
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
972
973
  type: z.ZodString;
973
974
  order: z.ZodNumber;
974
975
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
@@ -985,12 +986,12 @@ declare const CmsBlockDtoSchema: z.ZodObject<{
985
986
  }>;
986
987
  type CmsBlockDto = z.infer<typeof CmsBlockDtoSchema>;
987
988
  declare const CmsSectionDtoSchema: z.ZodObject<{
988
- id: z.ZodString;
989
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
989
990
  type: z.ZodString;
990
991
  order: z.ZodNumber;
991
992
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
992
993
  blocks: z.ZodArray<z.ZodObject<{
993
- id: z.ZodString;
994
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
994
995
  type: z.ZodString;
995
996
  order: z.ZodNumber;
996
997
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
@@ -1032,7 +1033,7 @@ type CmsSectionDto = z.infer<typeof CmsSectionDtoSchema>;
1032
1033
  declare const CmsContentChannelSchema: z.ZodEnum<["storefront", "pos"]>;
1033
1034
  declare const CmsPageStatusSchema: z.ZodEnum<["draft", "published", "archived"]>;
1034
1035
  declare const CmsPageDetailsDtoSchema: z.ZodObject<{
1035
- id: z.ZodString;
1036
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1036
1037
  name: z.ZodString;
1037
1038
  slug: z.ZodString;
1038
1039
  channel: z.ZodEnum<["storefront", "pos"]>;
@@ -1040,12 +1041,12 @@ declare const CmsPageDetailsDtoSchema: z.ZodObject<{
1040
1041
  version: z.ZodNullable<z.ZodNumber>;
1041
1042
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
1042
1043
  sections: z.ZodArray<z.ZodObject<{
1043
- id: z.ZodString;
1044
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1044
1045
  type: z.ZodString;
1045
1046
  order: z.ZodNumber;
1046
1047
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
1047
1048
  blocks: z.ZodArray<z.ZodObject<{
1048
- id: z.ZodString;
1049
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1049
1050
  type: z.ZodString;
1050
1051
  order: z.ZodNumber;
1051
1052
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
@@ -1086,11 +1087,11 @@ declare const CmsPageDetailsDtoSchema: z.ZodObject<{
1086
1087
  status: z.ZodEnum<["draft", "published", "archived"]>;
1087
1088
  hasPublishedVersion: z.ZodBoolean;
1088
1089
  publishedOn: z.ZodNullable<z.ZodString>;
1089
- publishedBy: z.ZodNullable<z.ZodString>;
1090
+ publishedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1090
1091
  createdOn: z.ZodString;
1091
1092
  updatedOn: z.ZodNullable<z.ZodString>;
1092
- createdBy: z.ZodNullable<z.ZodString>;
1093
- updatedBy: z.ZodNullable<z.ZodString>;
1093
+ createdBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1094
+ updatedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1094
1095
  lastModifiedBy: z.ZodNullable<z.ZodString>;
1095
1096
  }, "strict", z.ZodTypeAny, {
1096
1097
  version: number | null;
@@ -1346,7 +1347,7 @@ declare const CmsSnapshotDtoSchema: z.ZodObject<{
1346
1347
  };
1347
1348
  }>;
1348
1349
  pages: z.ZodArray<z.ZodObject<{
1349
- id: z.ZodString;
1350
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1350
1351
  name: z.ZodString;
1351
1352
  slug: z.ZodString;
1352
1353
  channel: z.ZodEnum<["storefront", "pos"]>;
@@ -1354,12 +1355,12 @@ declare const CmsSnapshotDtoSchema: z.ZodObject<{
1354
1355
  version: z.ZodNullable<z.ZodNumber>;
1355
1356
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
1356
1357
  sections: z.ZodArray<z.ZodObject<{
1357
- id: z.ZodString;
1358
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1358
1359
  type: z.ZodString;
1359
1360
  order: z.ZodNumber;
1360
1361
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
1361
1362
  blocks: z.ZodArray<z.ZodObject<{
1362
- id: z.ZodString;
1363
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1363
1364
  type: z.ZodString;
1364
1365
  order: z.ZodNumber;
1365
1366
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
@@ -1400,11 +1401,11 @@ declare const CmsSnapshotDtoSchema: z.ZodObject<{
1400
1401
  status: z.ZodEnum<["draft", "published", "archived"]>;
1401
1402
  hasPublishedVersion: z.ZodBoolean;
1402
1403
  publishedOn: z.ZodNullable<z.ZodString>;
1403
- publishedBy: z.ZodNullable<z.ZodString>;
1404
+ publishedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1404
1405
  createdOn: z.ZodString;
1405
1406
  updatedOn: z.ZodNullable<z.ZodString>;
1406
- createdBy: z.ZodNullable<z.ZodString>;
1407
- updatedBy: z.ZodNullable<z.ZodString>;
1407
+ createdBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1408
+ updatedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1408
1409
  lastModifiedBy: z.ZodNullable<z.ZodString>;
1409
1410
  }, "strict", z.ZodTypeAny, {
1410
1411
  version: number | null;
@@ -1636,9 +1637,9 @@ declare const StoreSettingsSnapshotDtoSchema: z.ZodDiscriminatedUnion<"schemaVer
1636
1637
  schemaVersion: z.ZodLiteral<1>;
1637
1638
  generatedAt: z.ZodString;
1638
1639
  store: z.ZodObject<{
1639
- id: z.ZodString;
1640
- tenantId: z.ZodString;
1641
- sellerId: z.ZodNullable<z.ZodString>;
1640
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1641
+ tenantId: z.ZodUnion<[z.ZodString, z.ZodString]>;
1642
+ sellerId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1642
1643
  type: z.ZodEnum<["b2C", "marketplace", "retail", "b2B", "social", "hub", "restaurant"]>;
1643
1644
  isActive: z.ZodBoolean;
1644
1645
  name: z.ZodString;
@@ -2163,7 +2164,7 @@ declare const StoreSettingsSnapshotDtoSchema: z.ZodDiscriminatedUnion<"schemaVer
2163
2164
  };
2164
2165
  }>;
2165
2166
  pages: z.ZodArray<z.ZodObject<{
2166
- id: z.ZodString;
2167
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
2167
2168
  name: z.ZodString;
2168
2169
  slug: z.ZodString;
2169
2170
  channel: z.ZodEnum<["storefront", "pos"]>;
@@ -2171,12 +2172,12 @@ declare const StoreSettingsSnapshotDtoSchema: z.ZodDiscriminatedUnion<"schemaVer
2171
2172
  version: z.ZodNullable<z.ZodNumber>;
2172
2173
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
2173
2174
  sections: z.ZodArray<z.ZodObject<{
2174
- id: z.ZodString;
2175
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
2175
2176
  type: z.ZodString;
2176
2177
  order: z.ZodNumber;
2177
2178
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
2178
2179
  blocks: z.ZodArray<z.ZodObject<{
2179
- id: z.ZodString;
2180
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
2180
2181
  type: z.ZodString;
2181
2182
  order: z.ZodNumber;
2182
2183
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
@@ -2217,11 +2218,11 @@ declare const StoreSettingsSnapshotDtoSchema: z.ZodDiscriminatedUnion<"schemaVer
2217
2218
  status: z.ZodEnum<["draft", "published", "archived"]>;
2218
2219
  hasPublishedVersion: z.ZodBoolean;
2219
2220
  publishedOn: z.ZodNullable<z.ZodString>;
2220
- publishedBy: z.ZodNullable<z.ZodString>;
2221
+ publishedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
2221
2222
  createdOn: z.ZodString;
2222
2223
  updatedOn: z.ZodNullable<z.ZodString>;
2223
- createdBy: z.ZodNullable<z.ZodString>;
2224
- updatedBy: z.ZodNullable<z.ZodString>;
2224
+ createdBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
2225
+ updatedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
2225
2226
  lastModifiedBy: z.ZodNullable<z.ZodString>;
2226
2227
  }, "strict", z.ZodTypeAny, {
2227
2228
  version: number | null;
@@ -2740,9 +2741,9 @@ declare const StoreSettingsSnapshotDtoSchema: z.ZodDiscriminatedUnion<"schemaVer
2740
2741
  schemaVersion: z.ZodLiteral<2>;
2741
2742
  generatedAt: z.ZodString;
2742
2743
  store: z.ZodObject<{
2743
- id: z.ZodString;
2744
- tenantId: z.ZodString;
2745
- sellerId: z.ZodNullable<z.ZodString>;
2744
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
2745
+ tenantId: z.ZodUnion<[z.ZodString, z.ZodString]>;
2746
+ sellerId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
2746
2747
  type: z.ZodEnum<["b2C", "marketplace", "retail", "b2B", "social", "hub", "restaurant"]>;
2747
2748
  isActive: z.ZodBoolean;
2748
2749
  name: z.ZodString;
@@ -3267,7 +3268,7 @@ declare const StoreSettingsSnapshotDtoSchema: z.ZodDiscriminatedUnion<"schemaVer
3267
3268
  };
3268
3269
  }>;
3269
3270
  pages: z.ZodArray<z.ZodObject<{
3270
- id: z.ZodString;
3271
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
3271
3272
  name: z.ZodString;
3272
3273
  slug: z.ZodString;
3273
3274
  channel: z.ZodEnum<["storefront", "pos"]>;
@@ -3275,12 +3276,12 @@ declare const StoreSettingsSnapshotDtoSchema: z.ZodDiscriminatedUnion<"schemaVer
3275
3276
  version: z.ZodNullable<z.ZodNumber>;
3276
3277
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
3277
3278
  sections: z.ZodArray<z.ZodObject<{
3278
- id: z.ZodString;
3279
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
3279
3280
  type: z.ZodString;
3280
3281
  order: z.ZodNumber;
3281
3282
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
3282
3283
  blocks: z.ZodArray<z.ZodObject<{
3283
- id: z.ZodString;
3284
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
3284
3285
  type: z.ZodString;
3285
3286
  order: z.ZodNumber;
3286
3287
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
@@ -3321,11 +3322,11 @@ declare const StoreSettingsSnapshotDtoSchema: z.ZodDiscriminatedUnion<"schemaVer
3321
3322
  status: z.ZodEnum<["draft", "published", "archived"]>;
3322
3323
  hasPublishedVersion: z.ZodBoolean;
3323
3324
  publishedOn: z.ZodNullable<z.ZodString>;
3324
- publishedBy: z.ZodNullable<z.ZodString>;
3325
+ publishedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
3325
3326
  createdOn: z.ZodString;
3326
3327
  updatedOn: z.ZodNullable<z.ZodString>;
3327
- createdBy: z.ZodNullable<z.ZodString>;
3328
- updatedBy: z.ZodNullable<z.ZodString>;
3328
+ createdBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
3329
+ updatedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
3329
3330
  lastModifiedBy: z.ZodNullable<z.ZodString>;
3330
3331
  }, "strict", z.ZodTypeAny, {
3331
3332
  version: number | null;
@@ -4050,9 +4051,9 @@ declare const StorefrontThemeConfigSchema: z.ZodObject<{
4050
4051
  }>;
4051
4052
  declare const StorefrontStoreTypeSchema: z.ZodEnum<["b2C", "marketplace", "retail", "b2B", "social", "hub", "restaurant"]>;
4052
4053
  declare const StorefrontStoreSchema: z.ZodObject<{
4053
- id: z.ZodString;
4054
- tenantId: z.ZodString;
4055
- sellerId: z.ZodNullable<z.ZodString>;
4054
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
4055
+ tenantId: z.ZodUnion<[z.ZodString, z.ZodString]>;
4056
+ sellerId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
4056
4057
  type: z.ZodEnum<["b2C", "marketplace", "retail", "b2B", "social", "hub", "restaurant"]>;
4057
4058
  isActive: z.ZodBoolean;
4058
4059
  name: z.ZodString;
@@ -4703,7 +4704,7 @@ declare const StorefrontMenuSchema: z.ZodObject<{
4703
4704
  items: CmsMenuItem[];
4704
4705
  }>;
4705
4706
  declare const StorefrontCmsPageSchema: z.ZodObject<{
4706
- id: z.ZodString;
4707
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
4707
4708
  name: z.ZodString;
4708
4709
  slug: z.ZodString;
4709
4710
  channel: z.ZodEnum<["storefront", "pos"]>;
@@ -4711,12 +4712,12 @@ declare const StorefrontCmsPageSchema: z.ZodObject<{
4711
4712
  version: z.ZodNullable<z.ZodNumber>;
4712
4713
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
4713
4714
  sections: z.ZodArray<z.ZodObject<{
4714
- id: z.ZodString;
4715
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
4715
4716
  type: z.ZodString;
4716
4717
  order: z.ZodNumber;
4717
4718
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
4718
4719
  blocks: z.ZodArray<z.ZodObject<{
4719
- id: z.ZodString;
4720
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
4720
4721
  type: z.ZodString;
4721
4722
  order: z.ZodNumber;
4722
4723
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
@@ -4757,11 +4758,11 @@ declare const StorefrontCmsPageSchema: z.ZodObject<{
4757
4758
  status: z.ZodEnum<["draft", "published", "archived"]>;
4758
4759
  hasPublishedVersion: z.ZodBoolean;
4759
4760
  publishedOn: z.ZodNullable<z.ZodString>;
4760
- publishedBy: z.ZodNullable<z.ZodString>;
4761
+ publishedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
4761
4762
  createdOn: z.ZodString;
4762
4763
  updatedOn: z.ZodNullable<z.ZodString>;
4763
- createdBy: z.ZodNullable<z.ZodString>;
4764
- updatedBy: z.ZodNullable<z.ZodString>;
4764
+ createdBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
4765
+ updatedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
4765
4766
  lastModifiedBy: z.ZodNullable<z.ZodString>;
4766
4767
  }, "strict", z.ZodTypeAny, {
4767
4768
  version: number | null;
@@ -4826,9 +4827,9 @@ declare const StorefrontSettingsSchema: z.ZodDiscriminatedUnion<"schemaVersion",
4826
4827
  schemaVersion: z.ZodLiteral<1>;
4827
4828
  generatedAt: z.ZodString;
4828
4829
  store: z.ZodObject<{
4829
- id: z.ZodString;
4830
- tenantId: z.ZodString;
4831
- sellerId: z.ZodNullable<z.ZodString>;
4830
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
4831
+ tenantId: z.ZodUnion<[z.ZodString, z.ZodString]>;
4832
+ sellerId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
4832
4833
  type: z.ZodEnum<["b2C", "marketplace", "retail", "b2B", "social", "hub", "restaurant"]>;
4833
4834
  isActive: z.ZodBoolean;
4834
4835
  name: z.ZodString;
@@ -5353,7 +5354,7 @@ declare const StorefrontSettingsSchema: z.ZodDiscriminatedUnion<"schemaVersion",
5353
5354
  };
5354
5355
  }>;
5355
5356
  pages: z.ZodArray<z.ZodObject<{
5356
- id: z.ZodString;
5357
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
5357
5358
  name: z.ZodString;
5358
5359
  slug: z.ZodString;
5359
5360
  channel: z.ZodEnum<["storefront", "pos"]>;
@@ -5361,12 +5362,12 @@ declare const StorefrontSettingsSchema: z.ZodDiscriminatedUnion<"schemaVersion",
5361
5362
  version: z.ZodNullable<z.ZodNumber>;
5362
5363
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
5363
5364
  sections: z.ZodArray<z.ZodObject<{
5364
- id: z.ZodString;
5365
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
5365
5366
  type: z.ZodString;
5366
5367
  order: z.ZodNumber;
5367
5368
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
5368
5369
  blocks: z.ZodArray<z.ZodObject<{
5369
- id: z.ZodString;
5370
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
5370
5371
  type: z.ZodString;
5371
5372
  order: z.ZodNumber;
5372
5373
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
@@ -5407,11 +5408,11 @@ declare const StorefrontSettingsSchema: z.ZodDiscriminatedUnion<"schemaVersion",
5407
5408
  status: z.ZodEnum<["draft", "published", "archived"]>;
5408
5409
  hasPublishedVersion: z.ZodBoolean;
5409
5410
  publishedOn: z.ZodNullable<z.ZodString>;
5410
- publishedBy: z.ZodNullable<z.ZodString>;
5411
+ publishedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
5411
5412
  createdOn: z.ZodString;
5412
5413
  updatedOn: z.ZodNullable<z.ZodString>;
5413
- createdBy: z.ZodNullable<z.ZodString>;
5414
- updatedBy: z.ZodNullable<z.ZodString>;
5414
+ createdBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
5415
+ updatedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
5415
5416
  lastModifiedBy: z.ZodNullable<z.ZodString>;
5416
5417
  }, "strict", z.ZodTypeAny, {
5417
5418
  version: number | null;
@@ -5930,9 +5931,9 @@ declare const StorefrontSettingsSchema: z.ZodDiscriminatedUnion<"schemaVersion",
5930
5931
  schemaVersion: z.ZodLiteral<2>;
5931
5932
  generatedAt: z.ZodString;
5932
5933
  store: z.ZodObject<{
5933
- id: z.ZodString;
5934
- tenantId: z.ZodString;
5935
- sellerId: z.ZodNullable<z.ZodString>;
5934
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
5935
+ tenantId: z.ZodUnion<[z.ZodString, z.ZodString]>;
5936
+ sellerId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
5936
5937
  type: z.ZodEnum<["b2C", "marketplace", "retail", "b2B", "social", "hub", "restaurant"]>;
5937
5938
  isActive: z.ZodBoolean;
5938
5939
  name: z.ZodString;
@@ -6457,7 +6458,7 @@ declare const StorefrontSettingsSchema: z.ZodDiscriminatedUnion<"schemaVersion",
6457
6458
  };
6458
6459
  }>;
6459
6460
  pages: z.ZodArray<z.ZodObject<{
6460
- id: z.ZodString;
6461
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
6461
6462
  name: z.ZodString;
6462
6463
  slug: z.ZodString;
6463
6464
  channel: z.ZodEnum<["storefront", "pos"]>;
@@ -6465,12 +6466,12 @@ declare const StorefrontSettingsSchema: z.ZodDiscriminatedUnion<"schemaVersion",
6465
6466
  version: z.ZodNullable<z.ZodNumber>;
6466
6467
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
6467
6468
  sections: z.ZodArray<z.ZodObject<{
6468
- id: z.ZodString;
6469
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
6469
6470
  type: z.ZodString;
6470
6471
  order: z.ZodNumber;
6471
6472
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
6472
6473
  blocks: z.ZodArray<z.ZodObject<{
6473
- id: z.ZodString;
6474
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
6474
6475
  type: z.ZodString;
6475
6476
  order: z.ZodNumber;
6476
6477
  settings: z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>;
@@ -6511,11 +6512,11 @@ declare const StorefrontSettingsSchema: z.ZodDiscriminatedUnion<"schemaVersion",
6511
6512
  status: z.ZodEnum<["draft", "published", "archived"]>;
6512
6513
  hasPublishedVersion: z.ZodBoolean;
6513
6514
  publishedOn: z.ZodNullable<z.ZodString>;
6514
- publishedBy: z.ZodNullable<z.ZodString>;
6515
+ publishedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
6515
6516
  createdOn: z.ZodString;
6516
6517
  updatedOn: z.ZodNullable<z.ZodString>;
6517
- createdBy: z.ZodNullable<z.ZodString>;
6518
- updatedBy: z.ZodNullable<z.ZodString>;
6518
+ createdBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
6519
+ updatedBy: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
6519
6520
  lastModifiedBy: z.ZodNullable<z.ZodString>;
6520
6521
  }, "strict", z.ZodTypeAny, {
6521
6522
  version: number | null;