@lyxa.ai/core 1.0.232 → 1.0.233
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/libraries/mongo/models/embedded/attribute-item.model.d.ts +1 -0
- package/dist/libraries/mongo/models/embedded/attribute-item.model.js +5 -0
- package/dist/libraries/mongo/models/embedded/attribute-item.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/price-breakdown.model.d.ts +1 -0
- package/dist/libraries/mongo/models/embedded/price-breakdown.model.js +5 -0
- package/dist/libraries/mongo/models/embedded/price-breakdown.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
14
14
|
class AttributeItem {
|
|
15
15
|
name;
|
|
16
16
|
price;
|
|
17
|
+
secondaryPrice;
|
|
17
18
|
isVisible;
|
|
18
19
|
}
|
|
19
20
|
exports.AttributeItem = AttributeItem;
|
|
@@ -25,6 +26,10 @@ __decorate([
|
|
|
25
26
|
(0, typegoose_1.prop)({ required: true, type: Number, min: 0, max: 999999999 }),
|
|
26
27
|
__metadata("design:type", Number)
|
|
27
28
|
], AttributeItem.prototype, "price", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typegoose_1.prop)({ type: Number, min: 0 }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], AttributeItem.prototype, "secondaryPrice", void 0);
|
|
28
33
|
__decorate([
|
|
29
34
|
(0, typegoose_1.prop)({ type: Boolean, default: true }),
|
|
30
35
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-item.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/attribute-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,aAAa;IAElB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,SAAS,CAAW;CAC3B;
|
|
1
|
+
{"version":3,"file":"attribute-item.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/attribute-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,aAAa;IAElB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,SAAS,CAAW;CAC3B;AAZD,sCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;2CAC7C;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;;4CACzC;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;qDACA;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDACZ","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class AttributeItem {\n\t@prop({ required: true, type: String, trim: true, maxlength: 20 })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: Number, min: 0, max: 999999999 })\n\tpublic price!: number;\n\n\t@prop({ type: Number, min: 0 })\n\tpublic secondaryPrice?: number;\n\n\t@prop({ type: Boolean, default: true })\n\tpublic isVisible?: boolean;\n}\n"]}
|
|
@@ -15,6 +15,7 @@ class PriceBreakdown {
|
|
|
15
15
|
unit;
|
|
16
16
|
unitValue;
|
|
17
17
|
price;
|
|
18
|
+
secondaryPrice;
|
|
18
19
|
}
|
|
19
20
|
exports.PriceBreakdown = PriceBreakdown;
|
|
20
21
|
__decorate([
|
|
@@ -29,4 +30,8 @@ __decorate([
|
|
|
29
30
|
(0, typegoose_1.prop)({ required: true, type: Number, min: 0, max: 99999999 }),
|
|
30
31
|
__metadata("design:type", Number)
|
|
31
32
|
], PriceBreakdown.prototype, "price", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typegoose_1.prop)({ type: Number, min: 0 }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], PriceBreakdown.prototype, "secondaryPrice", void 0);
|
|
32
37
|
//# sourceMappingURL=price-breakdown.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price-breakdown.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/price-breakdown.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAEnB,IAAI,CAAU;IAGd,SAAS,CAAU;IAGnB,KAAK,CAAU;
|
|
1
|
+
{"version":3,"file":"price-breakdown.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/price-breakdown.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAEnB,IAAI,CAAU;IAGd,SAAS,CAAU;IAGnB,KAAK,CAAU;IAGf,cAAc,CAAU;CAC/B;AAZD,wCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;;iDACrB;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;;6CACxC;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sDACA","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class PriceBreakdown {\n\t@prop({ type: String })\n\tpublic unit?: string;\n\n\t@prop({ type: Number, min: 0, max: 999999999 })\n\tpublic unitValue?: number;\n\n\t@prop({ required: true, type: Number, min: 0, max: 99999999 })\n\tpublic price!: number;\n\n\t@prop({ type: Number, min: 0 })\n\tpublic secondaryPrice?: number;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED