@tarileo/avileo-catalog-cli 0.3.15 → 0.3.16

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.js CHANGED
@@ -20273,9 +20273,12 @@ var AgentVariantDtoSchema = external_exports.object({
20273
20273
  createdAt: timestampSchema,
20274
20274
  updatedAt: timestampSchema
20275
20275
  }).strict();
20276
+ var AgentProductKindSchema = external_exports.enum(["product", "service"]);
20276
20277
  var AgentProductDtoSchema = external_exports.object({
20277
20278
  id: uuidSchema,
20278
20279
  name: nonEmptyTextSchema.max(255),
20280
+ /** Defaults to `product` so responses from servers that predate services still parse. */
20281
+ kind: AgentProductKindSchema.default("product"),
20279
20282
  description: external_exports.string().nullable(),
20280
20283
  category: AgentCategoryDtoSchema.nullable(),
20281
20284
  unit: UnitSlugSchema,
@@ -20394,6 +20397,7 @@ var AgentUpdateVariantInputSchema = external_exports.object({
20394
20397
  });
20395
20398
  var AgentCreateProductInputSchema = external_exports.object({
20396
20399
  name: nonEmptyTextSchema.max(255),
20400
+ kind: AgentProductKindSchema.optional(),
20397
20401
  categoryId: uuidSchema.optional(),
20398
20402
  unit: UnitSlugSchema,
20399
20403
  basePrice: nonNegativeDecimalStringSchema,
@@ -20407,6 +20411,7 @@ var AgentCreateProductInputSchema = external_exports.object({
20407
20411
  }).strict();
20408
20412
  var AgentUpdateProductInputSchema = external_exports.object({
20409
20413
  name: nonEmptyTextSchema.max(255).optional(),
20414
+ kind: AgentProductKindSchema.optional(),
20410
20415
  categoryId: uuidSchema.nullable().optional(),
20411
20416
  unit: UnitSlugSchema.optional(),
20412
20417
  basePrice: nonNegativeDecimalStringSchema.optional(),