@tarileo/avileo-catalog-cli 0.3.14 → 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 +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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(),
|
|
@@ -23022,9 +23027,10 @@ async function status(options) {
|
|
|
23022
23027
|
business = await client.business.get();
|
|
23023
23028
|
} catch (error62) {
|
|
23024
23029
|
businessLookupError = errorCode(error62);
|
|
23030
|
+
state = lookupFailureState(error62);
|
|
23025
23031
|
}
|
|
23026
23032
|
}
|
|
23027
|
-
const resolvedNextStep = nextStepForStatus(state, baseUrl);
|
|
23033
|
+
const resolvedNextStep = diagnostic?.state === "active" && state === "invalid" ? `El origen ${baseUrl} reconoce la credencial como activa, pero deneg\xF3 el acceso al negocio. Revisa en Mis agentes los permisos y la autorizaci\xF3n del emisor para el negocio vinculado en este mismo origen. Si persiste, solicita un diagn\xF3stico del backend.` : nextStepForStatus(state, baseUrl);
|
|
23028
23034
|
emitSuccess({
|
|
23029
23035
|
configured: true,
|
|
23030
23036
|
state,
|