@lyxa.ai/core 1.4.286 → 1.4.287

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.
@@ -7,6 +7,7 @@ export declare class SelectedAttributeItem {
7
7
  name: string;
8
8
  price: number;
9
9
  secondaryPrice?: number;
10
+ quantity?: number;
10
11
  }
11
12
  export declare class LineItemAttribute {
12
13
  attribute: Ref<Attribute>;
@@ -23,6 +23,7 @@ class SelectedAttributeItem {
23
23
  name;
24
24
  price;
25
25
  secondaryPrice;
26
+ quantity;
26
27
  }
27
28
  exports.SelectedAttributeItem = SelectedAttributeItem;
28
29
  __decorate([
@@ -37,6 +38,10 @@ __decorate([
37
38
  (0, typegoose_1.prop)({ type: Number, min: 0 }),
38
39
  __metadata("design:type", Number)
39
40
  ], SelectedAttributeItem.prototype, "secondaryPrice", void 0);
41
+ __decorate([
42
+ (0, typegoose_1.prop)({ type: Number, min: 1, max: 999999999, default: 1 }),
43
+ __metadata("design:type", Number)
44
+ ], SelectedAttributeItem.prototype, "quantity", void 0);
40
45
  class LineItemAttribute {
41
46
  attribute;
42
47
  attributeSnap;
@@ -1 +1 @@
1
- {"version":3,"file":"line-item-attribute.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/line-item-attribute.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,wDAA+C;AAE/C,MAAM,aAAa;IAEX,IAAI,CAAU;CACrB;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CAClB;AAGtB,MAAa,qBAAqB;IAE1B,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,cAAc,CAAU;CAC/B;AATD,sDASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;mDAC9B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;;oDACzC;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;6DACA;AAGhC,MAAa,iBAAiB;IAEtB,SAAS,CAAkB;IAG3B,aAAa,CAAiB;IAG9B,aAAa,CAA2B;CAC/C;AATD,8CASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,2BAAS,EAAE,CAAC;;oDACb;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACP,aAAa;wDAAC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,qBAAqB,CAAC,EAAE,CAAC;;wDACT","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Attribute } from '../attribute.model';\n\nclass AttributeSnap {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n}\n\nexport class SelectedAttributeItem {\n\t@prop({ required: true, type: String, trim: true })\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\nexport class LineItemAttribute {\n\t@prop({ required: true, ref: () => Attribute })\n\tpublic attribute!: Ref<Attribute>;\n\n\t@prop({ type: AttributeSnap })\n\tpublic attributeSnap?: AttributeSnap;\n\n\t@prop({ required: true, type: [SelectedAttributeItem] })\n\tpublic selectedItems!: SelectedAttributeItem[];\n}\n"]}
1
+ {"version":3,"file":"line-item-attribute.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/line-item-attribute.model.ts"],"names":[],"mapp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AC;;wDACT","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Attribute } from '../attribute.model';\n\nclass AttributeSnap {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n}\n\nexport class SelectedAttributeItem {\n\t@prop({ required: true, type: String, trim: true })\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: Number, min: 1, max: 999999999, default: 1 })\n\tpublic quantity?: number;\n}\n\nexport class LineItemAttribute {\n\t@prop({ required: true, ref: () => Attribute })\n\tpublic attribute!: Ref<Attribute>;\n\n\t@prop({ type: AttributeSnap })\n\tpublic attributeSnap?: AttributeSnap;\n\n\t@prop({ required: true, type: [SelectedAttributeItem] })\n\tpublic selectedItems!: SelectedAttributeItem[];\n}\n"]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.286
25
+ Version: 1.4.287
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.286",
3
+ "version": "1.4.287",
4
4
  "description": "Lyxa type definitions and validation schemas for both frontend and backend",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.4.286",
3
+ "version": "1.4.287",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",