@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.js CHANGED
@@ -301,6 +301,11 @@ var JsonElementSchema = z.lazy(
301
301
  var DateTimeOffsetSchema = z.string().datetime({ offset: true });
302
302
  var NullableDateTimeOffsetSchema = DateTimeOffsetSchema.nullable();
303
303
  var NullableUuidSchema = z.string().uuid().nullable();
304
+ var EntityIdSchema = z.union([
305
+ z.string().uuid(),
306
+ z.string().regex(/^\d+$/, "Expected numeric id")
307
+ ]);
308
+ var NullableEntityIdSchema = EntityIdSchema.nullable();
304
309
  var StoreTypeSchema = z.enum([
305
310
  "b2C",
306
311
  "marketplace",
@@ -363,9 +368,9 @@ var StoreCheckoutSettingsSchema = z.object({
363
368
  ordersAndPayments: StoreCheckoutOrdersAndPaymentsSettingsSchema
364
369
  }).strict();
365
370
  var StorefrontStoreShape = {
366
- id: z.string().uuid(),
367
- tenantId: z.string().uuid(),
368
- sellerId: NullableUuidSchema,
371
+ id: EntityIdSchema,
372
+ tenantId: EntityIdSchema,
373
+ sellerId: NullableEntityIdSchema,
369
374
  type: StoreTypeSchema,
370
375
  isActive: z.boolean(),
371
376
  name: z.string(),
@@ -446,13 +451,13 @@ var CmsMenuDtoSchema = z.object({
446
451
  items: z.array(CmsMenuItemSchema)
447
452
  }).strict();
448
453
  var CmsBlockDtoSchema = z.object({
449
- id: z.string().uuid(),
454
+ id: EntityIdSchema,
450
455
  type: z.string(),
451
456
  order: z.number().int(),
452
457
  settings: JsonElementSchema
453
458
  }).strict();
454
459
  var CmsSectionDtoSchema = z.object({
455
- id: z.string().uuid(),
460
+ id: EntityIdSchema,
456
461
  type: z.string(),
457
462
  order: z.number().int(),
458
463
  settings: JsonElementSchema,
@@ -461,7 +466,7 @@ var CmsSectionDtoSchema = z.object({
461
466
  var CmsContentChannelSchema = z.enum(["storefront", "pos"]);
462
467
  var CmsPageStatusSchema = z.enum(["draft", "published", "archived"]);
463
468
  var CmsPageDetailsDtoSchema = z.object({
464
- id: z.string().uuid(),
469
+ id: EntityIdSchema,
465
470
  name: z.string(),
466
471
  slug: z.string(),
467
472
  channel: CmsContentChannelSchema,