@tarileo/avileo-catalog-cli 0.3.8 → 0.3.10
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 +82 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14819,6 +14819,83 @@ var UNIT_CATALOG = {
|
|
|
14819
14819
|
category: "unit",
|
|
14820
14820
|
decimals: 0,
|
|
14821
14821
|
allowsTara: false
|
|
14822
|
+
},
|
|
14823
|
+
metro: {
|
|
14824
|
+
name: "Metro",
|
|
14825
|
+
shortName: "m",
|
|
14826
|
+
category: "length",
|
|
14827
|
+
decimals: 2,
|
|
14828
|
+
allowsTara: false
|
|
14829
|
+
},
|
|
14830
|
+
m2: {
|
|
14831
|
+
name: "Metro cuadrado",
|
|
14832
|
+
shortName: "m\xB2",
|
|
14833
|
+
category: "area",
|
|
14834
|
+
decimals: 2,
|
|
14835
|
+
allowsTara: false
|
|
14836
|
+
},
|
|
14837
|
+
m3: {
|
|
14838
|
+
name: "Metro c\xFAbico",
|
|
14839
|
+
shortName: "m\xB3",
|
|
14840
|
+
category: "volume",
|
|
14841
|
+
decimals: 3,
|
|
14842
|
+
allowsTara: false
|
|
14843
|
+
},
|
|
14844
|
+
galon: {
|
|
14845
|
+
name: "Gal\xF3n",
|
|
14846
|
+
shortName: "gal",
|
|
14847
|
+
category: "volume",
|
|
14848
|
+
decimals: 2,
|
|
14849
|
+
allowsTara: false
|
|
14850
|
+
},
|
|
14851
|
+
cuarto: {
|
|
14852
|
+
name: "Cuarto",
|
|
14853
|
+
shortName: "cto.",
|
|
14854
|
+
category: "volume",
|
|
14855
|
+
decimals: 0,
|
|
14856
|
+
allowsTara: false
|
|
14857
|
+
},
|
|
14858
|
+
quintal: {
|
|
14859
|
+
name: "Quintal",
|
|
14860
|
+
shortName: "qq",
|
|
14861
|
+
category: "weight",
|
|
14862
|
+
decimals: 2,
|
|
14863
|
+
allowsTara: false
|
|
14864
|
+
},
|
|
14865
|
+
varilla: {
|
|
14866
|
+
name: "Varilla",
|
|
14867
|
+
shortName: "var.",
|
|
14868
|
+
category: "unit",
|
|
14869
|
+
decimals: 0,
|
|
14870
|
+
allowsTara: false
|
|
14871
|
+
},
|
|
14872
|
+
tonelada: {
|
|
14873
|
+
name: "Tonelada",
|
|
14874
|
+
shortName: "t",
|
|
14875
|
+
category: "weight",
|
|
14876
|
+
decimals: 2,
|
|
14877
|
+
allowsTara: false
|
|
14878
|
+
},
|
|
14879
|
+
saco: {
|
|
14880
|
+
name: "Saco",
|
|
14881
|
+
shortName: "saco",
|
|
14882
|
+
category: "pack",
|
|
14883
|
+
decimals: 0,
|
|
14884
|
+
allowsTara: false
|
|
14885
|
+
},
|
|
14886
|
+
rollo: {
|
|
14887
|
+
name: "Rollo",
|
|
14888
|
+
shortName: "rollo",
|
|
14889
|
+
category: "unit",
|
|
14890
|
+
decimals: 0,
|
|
14891
|
+
allowsTara: false
|
|
14892
|
+
},
|
|
14893
|
+
tubo: {
|
|
14894
|
+
name: "Tubo",
|
|
14895
|
+
shortName: "tubo",
|
|
14896
|
+
category: "unit",
|
|
14897
|
+
decimals: 0,
|
|
14898
|
+
allowsTara: false
|
|
14822
14899
|
}
|
|
14823
14900
|
};
|
|
14824
14901
|
var UNIT_SLUGS = Object.keys(UNIT_CATALOG);
|
|
@@ -14956,6 +15033,7 @@ var AgentVariantDtoSchema = external_exports.object({
|
|
|
14956
15033
|
sku: external_exports.string().trim().min(1).max(50).nullable(),
|
|
14957
15034
|
unitQuantity: nonNegativeDecimalStringSchema,
|
|
14958
15035
|
price: nonNegativeDecimalStringSchema,
|
|
15036
|
+
offerPrice: nonNegativeDecimalStringSchema.nullable().optional(),
|
|
14959
15037
|
costPrice: nonNegativeDecimalStringSchema,
|
|
14960
15038
|
isActive: external_exports.boolean(),
|
|
14961
15039
|
sortOrder: external_exports.number().int().nonnegative(),
|
|
@@ -15067,6 +15145,7 @@ var AgentCreateVariantInputSchema = external_exports.object({
|
|
|
15067
15145
|
sku: external_exports.string().trim().min(1).max(50).optional(),
|
|
15068
15146
|
unitQuantity: nonNegativeDecimalStringSchema,
|
|
15069
15147
|
price: nonNegativeDecimalStringSchema,
|
|
15148
|
+
offerPrice: nonNegativeDecimalStringSchema.optional(),
|
|
15070
15149
|
costPrice: nonNegativeDecimalStringSchema.optional(),
|
|
15071
15150
|
isActive: external_exports.boolean().optional(),
|
|
15072
15151
|
imageAssetIds: imageAssetIdsSchema.optional()
|
|
@@ -15076,6 +15155,7 @@ var AgentUpdateVariantInputSchema = external_exports.object({
|
|
|
15076
15155
|
sku: external_exports.string().trim().min(1).max(50).nullable().optional(),
|
|
15077
15156
|
unitQuantity: nonNegativeDecimalStringSchema.optional(),
|
|
15078
15157
|
price: nonNegativeDecimalStringSchema.optional(),
|
|
15158
|
+
offerPrice: nonNegativeDecimalStringSchema.nullable().optional(),
|
|
15079
15159
|
costPrice: nonNegativeDecimalStringSchema.optional(),
|
|
15080
15160
|
isActive: external_exports.boolean().optional(),
|
|
15081
15161
|
imageAssetIds: imageAssetIdsSchema.optional()
|
|
@@ -15087,6 +15167,7 @@ var AgentCreateProductInputSchema = external_exports.object({
|
|
|
15087
15167
|
categoryId: uuidSchema.optional(),
|
|
15088
15168
|
unit: UnitSlugSchema,
|
|
15089
15169
|
basePrice: nonNegativeDecimalStringSchema,
|
|
15170
|
+
offerPrice: nonNegativeDecimalStringSchema.optional(),
|
|
15090
15171
|
costPrice: nonNegativeDecimalStringSchema.optional(),
|
|
15091
15172
|
isActive: external_exports.boolean().optional(),
|
|
15092
15173
|
description: external_exports.string().trim().min(1).max(1e4).optional(),
|
|
@@ -15099,6 +15180,7 @@ var AgentUpdateProductInputSchema = external_exports.object({
|
|
|
15099
15180
|
categoryId: uuidSchema.nullable().optional(),
|
|
15100
15181
|
unit: UnitSlugSchema.optional(),
|
|
15101
15182
|
basePrice: nonNegativeDecimalStringSchema.optional(),
|
|
15183
|
+
offerPrice: nonNegativeDecimalStringSchema.nullable().optional(),
|
|
15102
15184
|
isActive: external_exports.boolean().optional(),
|
|
15103
15185
|
description: nullableTextSchema.optional(),
|
|
15104
15186
|
imageAssetIds: imageAssetIdsSchema.optional(),
|