@lyxa.ai/core 1.3.100 → 1.3.101

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.
@@ -11,3 +11,7 @@ export declare class MarketingCut extends CompanyCut {
11
11
  export declare class CouponDetails extends MarketingCut {
12
12
  coupon?: Ref<Coupon>;
13
13
  }
14
+ export declare class ServicePromotionCut extends CompanyCut {
15
+ vendorCut?: number;
16
+ secondaryVendorCut?: number;
17
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CouponDetails = exports.MarketingCut = exports.CompanyCut = void 0;
12
+ exports.ServicePromotionCut = exports.CouponDetails = exports.MarketingCut = exports.CompanyCut = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const coupon_model_1 = require("../coupon.model");
15
15
  class CompanyCut {
@@ -46,4 +46,17 @@ __decorate([
46
46
  (0, typegoose_1.prop)({ ref: () => coupon_model_1.Coupon }),
47
47
  __metadata("design:type", Object)
48
48
  ], CouponDetails.prototype, "coupon", void 0);
49
+ class ServicePromotionCut extends CompanyCut {
50
+ vendorCut;
51
+ secondaryVendorCut;
52
+ }
53
+ exports.ServicePromotionCut = ServicePromotionCut;
54
+ __decorate([
55
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
56
+ __metadata("design:type", Number)
57
+ ], ServicePromotionCut.prototype, "vendorCut", void 0);
58
+ __decorate([
59
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
60
+ __metadata("design:type", Number)
61
+ ], ServicePromotionCut.prototype, "secondaryVendorCut", void 0);
49
62
  //# sourceMappingURL=marketing-cut.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"marketing-cut.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/marketing-cut.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,kDAAyC;AAEzC,MAAa,UAAU;IAEf,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAND,gCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACC;AAErC,MAAa,YAAa,SAAQ,UAAU;IAEpC,OAAO,CAAU;IAGjB,gBAAgB,CAAU;CACjC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACX;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACF;AAGlC,MAAa,aAAc,SAAQ,YAAY;IAEvC,MAAM,CAAe;CAC5B;AAHD,sCAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;6CACA","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Coupon } from '../coupon.model';\n\nexport class CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyCut?: number;\n}\nexport class MarketingCut extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic shopCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryShopCut?: number;\n}\n\nexport class CouponDetails extends MarketingCut {\n\t@prop({ ref: () => Coupon })\n\tpublic coupon?: Ref<Coupon>;\n}\n"]}
1
+ {"version":3,"file":"marketing-cut.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/marketing-cut.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,kDAAyC;AAEzC,MAAa,UAAU;IAEf,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAND,gCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACC;AAErC,MAAa,YAAa,SAAQ,UAAU;IAEpC,OAAO,CAAU;IAGjB,gBAAgB,CAAU;CACjC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACX;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACF;AAGlC,MAAa,aAAc,SAAQ,YAAY;IAEvC,MAAM,CAAe;CAC5B;AAHD,sCAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;6CACA;AAG7B,MAAa,mBAAoB,SAAQ,UAAU;IAE3C,SAAS,CAAU;IAGnB,kBAAkB,CAAU;CACnC;AAND,kDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACT;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+DACA","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Coupon } from '../coupon.model';\n\nexport class CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyCut?: number;\n}\nexport class MarketingCut extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic shopCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryShopCut?: number;\n}\n\nexport class CouponDetails extends MarketingCut {\n\t@prop({ ref: () => Coupon })\n\tpublic coupon?: Ref<Coupon>;\n}\n\nexport class ServicePromotionCut extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic vendorCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryVendorCut?: number;\n}"]}
@@ -4,10 +4,12 @@ import { ServiceOrderPricing } from './service-order-pricing.model';
4
4
  import { PaymentMethod } from '../../../../utilities/enum';
5
5
  import { PaymentInformation } from './payment-infromation.model';
6
6
  import { ServiceOrderProfit } from './profit.model';
7
+ import { ServicePromotionCut } from './marketing-cut.model';
7
8
  export declare class ServiceOrderFinance extends TimeStamps {
8
9
  pricing: ServiceOrderPricing;
9
10
  companyProfit: ServiceOrderProfit;
10
11
  vendorProfit: ServiceOrderProfit;
12
+ discount?: ServicePromotionCut;
11
13
  exchangeRate?: number;
12
14
  paymentMethod?: PaymentMethod;
13
15
  paymentInformation?: PaymentInformation;
@@ -17,10 +17,12 @@ const service_order_pricing_model_1 = require("./service-order-pricing.model");
17
17
  const enum_1 = require("../../../../utilities/enum");
18
18
  const payment_infromation_model_1 = require("./payment-infromation.model");
19
19
  const profit_model_1 = require("./profit.model");
20
+ const marketing_cut_model_1 = require("./marketing-cut.model");
20
21
  class ServiceOrderFinance extends defaultClasses_1.TimeStamps {
21
22
  pricing;
22
23
  companyProfit;
23
24
  vendorProfit;
25
+ discount;
24
26
  exchangeRate;
25
27
  paymentMethod;
26
28
  paymentInformation;
@@ -39,6 +41,10 @@ __decorate([
39
41
  (0, typegoose_1.prop)({ type: () => profit_model_1.ServiceOrderProfit }),
40
42
  __metadata("design:type", profit_model_1.ServiceOrderProfit)
41
43
  ], ServiceOrderFinance.prototype, "vendorProfit", void 0);
44
+ __decorate([
45
+ (0, typegoose_1.prop)({ type: () => marketing_cut_model_1.ServicePromotionCut }),
46
+ __metadata("design:type", marketing_cut_model_1.ServicePromotionCut)
47
+ ], ServiceOrderFinance.prototype, "discount", void 0);
42
48
  __decorate([
43
49
  (0, typegoose_1.prop)({ type: Number, default: 1 }),
44
50
  __metadata("design:type", Number)
@@ -1 +1 @@
1
- {"version":3,"file":"service-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA4C;AAC5C,4EAAqE;AACrE,+EAAoE;AACpE,qDAA2D;AAC3D,2EAAiE;AACjE,iDAAoD;AAGpD,MAAa,mBAAoB,SAAQ,2BAAU;IAExC,OAAO,CAAsB;IAG7B,aAAa,CAAqB;IAGlC,YAAY,CAAqB;IAGjC,YAAY,CAAU;IAGtB,aAAa,CAAiB;IAG9B,kBAAkB,CAAsB;IAGxC,GAAG,CAAO;CAEpB;AAtBD,kDAsBC;AApBU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iDAAmB,EAAE,CAAC;8BAC1C,iDAAmB;oDAAC;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BACnB,iCAAkB;0DAAC;AAGlC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BACpB,iCAAkB;yDAAC;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAa,EAAE,OAAO,EAAE,oBAAa,CAAC,IAAI,EAAE,CAAC;;0DACpC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC;8BACb,8CAAkB;+DAAC;AAGxC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,eAAG,EAAE,CAAC;8BACb,eAAG;gDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Vat } from '../embedded/vat.model';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ServiceOrderPricing } from './service-order-pricing.model';\nimport { PaymentMethod } from '../../../../utilities/enum';\nimport { PaymentInformation } from './payment-infromation.model';\nimport { ServiceOrderProfit } from './profit.model';\n\n\nexport class ServiceOrderFinance extends TimeStamps {\n @prop({ required: true, type: () => ServiceOrderPricing })\n public pricing: ServiceOrderPricing;\n\n @prop({ type: () => ServiceOrderProfit })\n public companyProfit: ServiceOrderProfit;\n\n @prop({ type: () => ServiceOrderProfit })\n public vendorProfit: ServiceOrderProfit;\n\n @prop({ type: Number, default: 1 })\n public exchangeRate?: number;\n\n @prop({ type: String, enum: PaymentMethod, default: PaymentMethod.CASH })\n public paymentMethod?: PaymentMethod;\n\n @prop({ type: () => PaymentInformation })\n public paymentInformation?: PaymentInformation;\n\n @prop({ type: () => Vat })\n public vat?: Vat;\n\n}\n"]}
1
+ {"version":3,"file":"service-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA4C;AAC5C,4EAAqE;AACrE,+EAAoE;AACpE,qDAA2D;AAC3D,2EAAiE;AACjE,iDAAoD;AACpD,+DAA4D;AAG5D,MAAa,mBAAoB,SAAQ,2BAAU;IAExC,OAAO,CAAsB;IAG7B,aAAa,CAAqB;IAGlC,YAAY,CAAqB;IAGjC,QAAQ,CAAuB;IAG/B,YAAY,CAAU;IAGtB,aAAa,CAAiB;IAG9B,kBAAkB,CAAsB;IAGxC,GAAG,CAAO;CAEpB;AAzBD,kDAyBC;AAvBU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iDAAmB,EAAE,CAAC;8BAC1C,iDAAmB;oDAAC;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BACnB,iCAAkB;0DAAC;AAGlC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BACpB,iCAAkB;yDAAC;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,yCAAmB,EAAE,CAAC;8BACxB,yCAAmB;qDAAC;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAa,EAAE,OAAO,EAAE,oBAAa,CAAC,IAAI,EAAE,CAAC;;0DACpC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC;8BACb,8CAAkB;+DAAC;AAGxC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,eAAG,EAAE,CAAC;8BACb,eAAG;gDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Vat } from '../embedded/vat.model';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ServiceOrderPricing } from './service-order-pricing.model';\nimport { PaymentMethod } from '../../../../utilities/enum';\nimport { PaymentInformation } from './payment-infromation.model';\nimport { ServiceOrderProfit } from './profit.model';\nimport { ServicePromotionCut } from './marketing-cut.model';\n\n\nexport class ServiceOrderFinance extends TimeStamps {\n @prop({ required: true, type: () => ServiceOrderPricing })\n public pricing: ServiceOrderPricing;\n\n @prop({ type: () => ServiceOrderProfit })\n public companyProfit: ServiceOrderProfit;\n\n @prop({ type: () => ServiceOrderProfit })\n public vendorProfit: ServiceOrderProfit;\n\n @prop({ type: () => ServicePromotionCut })\n public discount?: ServicePromotionCut;\n\n @prop({ type: Number, default: 1 })\n public exchangeRate?: number;\n\n @prop({ type: String, enum: PaymentMethod, default: PaymentMethod.CASH })\n public paymentMethod?: PaymentMethod;\n\n @prop({ type: () => PaymentInformation })\n public paymentInformation?: PaymentInformation;\n\n @prop({ type: () => Vat })\n public vat?: Vat;\n\n}\n"]}
@@ -7,6 +7,7 @@ export declare class ServicePromotion {
7
7
  vendor: Ref<Vendor>;
8
8
  promotionType: PromotionType;
9
9
  duration: Duration;
10
+ isAppliedByCompany: boolean;
10
11
  servicePackages?: Ref<ServicePackage>[];
11
12
  isEntireMenu?: boolean;
12
13
  slotRange?: SlotRange[];
@@ -19,6 +19,7 @@ let ServicePromotion = class ServicePromotion {
19
19
  vendor;
20
20
  promotionType;
21
21
  duration;
22
+ isAppliedByCompany;
22
23
  servicePackages;
23
24
  isEntireMenu;
24
25
  slotRange;
@@ -44,6 +45,10 @@ __decorate([
44
45
  (0, typegoose_1.prop)({ required: true, type: promotion_duration_model_1.Duration }),
45
46
  __metadata("design:type", promotion_duration_model_1.Duration)
46
47
  ], ServicePromotion.prototype, "duration", void 0);
48
+ __decorate([
49
+ (0, typegoose_1.prop)({ required: true, type: Boolean }),
50
+ __metadata("design:type", Boolean)
51
+ ], ServicePromotion.prototype, "isAppliedByCompany", void 0);
47
52
  __decorate([
48
53
  (0, typegoose_1.prop)({ ref: () => service_package_model_1.ServicePackage, required: true }),
49
54
  __metadata("design:type", Array)
@@ -1 +1 @@
1
- {"version":3,"file":"service-promotion.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oD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AC;;qDACf;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6DACa;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;mDACX;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACY;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;qDACvB;AAOrB;IALN,IAAA,gBAAI,EAAC;QACF,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,sBAAe;QACrB,OAAO,EAAE,sBAAe,CAAC,MAAM;KAClC,CAAC;;gDAC6B;2BA7CtB,gBAAgB;IAD5B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,EAAE,CAAC;GACxD,gBAAgB,CA8C5B","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { Vendor } from './vendor.model';\nimport { MarketingStatus, PromotionType, ValueType } from '../../../utilities/enum';\nimport { Duration, SlotRange } from './shared/promotion-duration.model'; \nimport { ServicePackage } from './service-package.model';\n \n@modelOptions({ schemaOptions: { collection: 'servicePromotions' } })\nexport class ServicePromotion {\n @prop({ ref: () => Vendor, required: true })\n public vendor!: Ref<Vendor>;\n \n @prop({ enum: PromotionType, required: true })\n public promotionType!: PromotionType;\n\n @prop({ required: true, type: Duration })\n public duration!: Duration\n \n @prop({ ref: () => ServicePackage, required: true })\n public servicePackages?: Ref<ServicePackage>[]\n\n @prop({ type: Boolean })\n public isEntireMenu?: boolean;\n\n @prop({ type: SlotRange })\n public slotRange?: SlotRange[]\n\n @prop({ type: Number, min: 0 })\n public spendLimit?: number;\n\n @prop({ type: Number, default: 0, min: 0 })\n public spendAmount?: number;\n\n @prop({ type: Number })\n public maxDiscountPerOrder?: number;\n\n @prop({ type: String, enum: ValueType })\n public valueType?: ValueType;\n\n @prop({ type: Number })\n public value?: number;\n\n @prop({ type: String })\n public deactivationReason?: string;\n\n @prop({ type: String, trim: true, maxlength: 500 })\n public description?: string;\n\n @prop({\n type: String,\n enum: MarketingStatus,\n default: MarketingStatus.ACTIVE,\n })\n public status: MarketingStatus;\n}\n"]}
1
+ {"version":3,"file":"service-promotion.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,iDAAwC;AACxC,kDAAoF;AACpF,gFAAwE;AACxE,mEAAyD;AAGlD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAElB,MAAM,CAAe;IAGrB,aAAa,CAAiB;IAG9B,QAAQ,CAAW;IAGtB,kBAAkB,CAAW;IAG1B,eAAe,CAAwB;IAGvC,YAAY,CAAW;IAGvB,SAAS,CAAc;IAGvB,UAAU,CAAU;IAGpB,WAAW,CAAU;IAGrB,mBAAmB,CAAU;IAG7B,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,kBAAkB,CAAU;IAG5B,WAAW,CAAU;IAOrB,MAAM,CAAkB;CAClC,CAAA;AAjDY,4CAAgB;AAElB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,oBAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACT;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,mCAAQ,EAAE,CAAC;8BACvB,mCAAQ;kDAAA;AAGtB;IADH,IAAA,gBAAI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,mBAAmB,EAAE,EAAE,CAAC;GACxD,gBAAgB,CAiD5B","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { Vendor } from './vendor.model';\nimport { MarketingStatus, PromotionType, ValueType } from '../../../utilities/enum';\nimport { Duration, SlotRange } from './shared/promotion-duration.model'; \nimport { ServicePackage } from './service-package.model';\n \n@modelOptions({ schemaOptions: { collection: 'servicePromotions' } })\nexport class ServicePromotion {\n @prop({ ref: () => Vendor, required: true })\n public vendor!: Ref<Vendor>;\n \n @prop({ enum: PromotionType, required: true })\n public promotionType!: PromotionType;\n\n @prop({ required: true, type: Duration })\n public duration!: Duration\n\n @prop({ required: true, type: Boolean })\n\tpublic isAppliedByCompany!: boolean;\n\n @prop({ ref: () => ServicePackage, required: true })\n public servicePackages?: Ref<ServicePackage>[]\n\n @prop({ type: Boolean })\n public isEntireMenu?: boolean;\n\n @prop({ type: SlotRange })\n public slotRange?: SlotRange[]\n\n @prop({ type: Number, min: 0 })\n public spendLimit?: number;\n\n @prop({ type: Number, default: 0, min: 0 })\n public spendAmount?: number;\n\n @prop({ type: Number })\n public maxDiscountPerOrder?: number;\n\n @prop({ type: String, enum: ValueType })\n public valueType?: ValueType;\n\n @prop({ type: Number })\n public value?: number;\n\n @prop({ type: String })\n public deactivationReason?: string;\n\n @prop({ type: String, trim: true, maxlength: 500 })\n public description?: string;\n\n @prop({\n type: String,\n enum: MarketingStatus,\n default: MarketingStatus.ACTIVE,\n })\n public status: MarketingStatus;\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.3.100
25
+ Version: 1.3.101
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.3.100",
3
+ "version": "1.3.101",
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.3.100",
3
+ "version": "1.3.101",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",