@ecomiq/core 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.cjs CHANGED
@@ -303,6 +303,11 @@ var JsonElementSchema = zod.z.lazy(
303
303
  var DateTimeOffsetSchema = zod.z.string().datetime({ offset: true });
304
304
  var NullableDateTimeOffsetSchema = DateTimeOffsetSchema.nullable();
305
305
  var NullableUuidSchema = zod.z.string().uuid().nullable();
306
+ var EntityIdSchema = zod.z.union([
307
+ zod.z.string().uuid(),
308
+ zod.z.string().regex(/^\d+$/, "Expected numeric id")
309
+ ]);
310
+ var NullableEntityIdSchema = EntityIdSchema.nullable();
306
311
  var StoreTypeSchema = zod.z.enum([
307
312
  "b2C",
308
313
  "marketplace",
@@ -365,9 +370,9 @@ var StoreCheckoutSettingsSchema = zod.z.object({
365
370
  ordersAndPayments: StoreCheckoutOrdersAndPaymentsSettingsSchema
366
371
  }).strict();
367
372
  var StorefrontStoreShape = {
368
- id: zod.z.string().uuid(),
369
- tenantId: zod.z.string().uuid(),
370
- sellerId: NullableUuidSchema,
373
+ id: EntityIdSchema,
374
+ tenantId: EntityIdSchema,
375
+ sellerId: NullableEntityIdSchema,
371
376
  type: StoreTypeSchema,
372
377
  isActive: zod.z.boolean(),
373
378
  name: zod.z.string(),
@@ -448,13 +453,13 @@ var CmsMenuDtoSchema = zod.z.object({
448
453
  items: zod.z.array(CmsMenuItemSchema)
449
454
  }).strict();
450
455
  var CmsBlockDtoSchema = zod.z.object({
451
- id: zod.z.string().uuid(),
456
+ id: EntityIdSchema,
452
457
  type: zod.z.string(),
453
458
  order: zod.z.number().int(),
454
459
  settings: JsonElementSchema
455
460
  }).strict();
456
461
  var CmsSectionDtoSchema = zod.z.object({
457
- id: zod.z.string().uuid(),
462
+ id: EntityIdSchema,
458
463
  type: zod.z.string(),
459
464
  order: zod.z.number().int(),
460
465
  settings: JsonElementSchema,
@@ -463,7 +468,7 @@ var CmsSectionDtoSchema = zod.z.object({
463
468
  var CmsContentChannelSchema = zod.z.enum(["storefront", "pos"]);
464
469
  var CmsPageStatusSchema = zod.z.enum(["draft", "published", "archived"]);
465
470
  var CmsPageDetailsDtoSchema = zod.z.object({
466
- id: zod.z.string().uuid(),
471
+ id: EntityIdSchema,
467
472
  name: zod.z.string(),
468
473
  slug: zod.z.string(),
469
474
  channel: CmsContentChannelSchema,