@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/index.cjs CHANGED
@@ -313,6 +313,11 @@ var JsonElementSchema = zod.z.lazy(
313
313
  var DateTimeOffsetSchema = zod.z.string().datetime({ offset: true });
314
314
  var NullableDateTimeOffsetSchema = DateTimeOffsetSchema.nullable();
315
315
  var NullableUuidSchema = zod.z.string().uuid().nullable();
316
+ var EntityIdSchema = zod.z.union([
317
+ zod.z.string().uuid(),
318
+ zod.z.string().regex(/^\d+$/, "Expected numeric id")
319
+ ]);
320
+ var NullableEntityIdSchema = EntityIdSchema.nullable();
316
321
  var StoreTypeSchema = zod.z.enum([
317
322
  "b2C",
318
323
  "marketplace",
@@ -375,9 +380,9 @@ var StoreCheckoutSettingsSchema = zod.z.object({
375
380
  ordersAndPayments: StoreCheckoutOrdersAndPaymentsSettingsSchema
376
381
  }).strict();
377
382
  var StorefrontStoreShape = {
378
- id: zod.z.string().uuid(),
379
- tenantId: zod.z.string().uuid(),
380
- sellerId: NullableUuidSchema,
383
+ id: EntityIdSchema,
384
+ tenantId: EntityIdSchema,
385
+ sellerId: NullableEntityIdSchema,
381
386
  type: StoreTypeSchema,
382
387
  isActive: zod.z.boolean(),
383
388
  name: zod.z.string(),
@@ -458,13 +463,13 @@ var CmsMenuDtoSchema = zod.z.object({
458
463
  items: zod.z.array(CmsMenuItemSchema)
459
464
  }).strict();
460
465
  var CmsBlockDtoSchema = zod.z.object({
461
- id: zod.z.string().uuid(),
466
+ id: EntityIdSchema,
462
467
  type: zod.z.string(),
463
468
  order: zod.z.number().int(),
464
469
  settings: JsonElementSchema
465
470
  }).strict();
466
471
  var CmsSectionDtoSchema = zod.z.object({
467
- id: zod.z.string().uuid(),
472
+ id: EntityIdSchema,
468
473
  type: zod.z.string(),
469
474
  order: zod.z.number().int(),
470
475
  settings: JsonElementSchema,
@@ -473,7 +478,7 @@ var CmsSectionDtoSchema = zod.z.object({
473
478
  var CmsContentChannelSchema = zod.z.enum(["storefront", "pos"]);
474
479
  var CmsPageStatusSchema = zod.z.enum(["draft", "published", "archived"]);
475
480
  var CmsPageDetailsDtoSchema = zod.z.object({
476
- id: zod.z.string().uuid(),
481
+ id: EntityIdSchema,
477
482
  name: zod.z.string(),
478
483
  slug: zod.z.string(),
479
484
  channel: CmsContentChannelSchema,
@@ -1952,6 +1957,7 @@ exports.DepartmentSchema = DepartmentSchema;
1952
1957
  exports.DepartmentsSchema = DepartmentsSchema;
1953
1958
  exports.DistrictSchema = DistrictSchema;
1954
1959
  exports.DistrictsSchema = DistrictsSchema;
1960
+ exports.EntityIdSchema = EntityIdSchema;
1955
1961
  exports.FacetItemSchema = FacetItemSchema;
1956
1962
  exports.FacetSchema = FacetSchema;
1957
1963
  exports.GeoDivisionSchema = GeoDivisionSchema;
@@ -1963,6 +1969,7 @@ exports.GetProvincesParamsSchema = GetProvincesParamsSchema;
1963
1969
  exports.GetShippingOptionsParamsSchema = GetShippingOptionsParamsSchema;
1964
1970
  exports.JsonElementSchema = JsonElementSchema;
1965
1971
  exports.ListProductReviewsParamsSchema = ListProductReviewsParamsSchema;
1972
+ exports.NullableEntityIdSchema = NullableEntityIdSchema;
1966
1973
  exports.PriceTierSchema = PriceTierSchema;
1967
1974
  exports.ProductAutocompleteParamsSchema = ProductAutocompleteParamsSchema;
1968
1975
  exports.ProductDetailParamsSchema = ProductDetailParamsSchema;