@lyxa.ai/core 1.4.74 → 1.4.76

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.
@@ -1,9 +1,9 @@
1
1
  import { OrderFinance } from './order-finance.model';
2
2
  import { CourierOrderProfit } from '../embedded/profit.model';
3
- import { OrderPricing } from './order-pricing.model';
3
+ import { CourierOrderPricing } from './order-pricing.model';
4
4
  import { CourierOrderPaymentFrom } from '../../../../utilities/enum';
5
5
  export declare class CourierOrderFinance extends OrderFinance {
6
6
  paymentFrom?: CourierOrderPaymentFrom;
7
- pricing: OrderPricing;
7
+ pricing: CourierOrderPricing;
8
8
  companyProfit?: CourierOrderProfit;
9
9
  }
@@ -26,8 +26,8 @@ __decorate([
26
26
  __metadata("design:type", String)
27
27
  ], CourierOrderFinance.prototype, "paymentFrom", void 0);
28
28
  __decorate([
29
- (0, typegoose_1.prop)({ required: true, type: () => order_pricing_model_1.OrderPricing }),
30
- __metadata("design:type", order_pricing_model_1.OrderPricing)
29
+ (0, typegoose_1.prop)({ required: true, type: () => order_pricing_model_1.CourierOrderPricing }),
30
+ __metadata("design:type", order_pricing_model_1.CourierOrderPricing)
31
31
  ], CourierOrderFinance.prototype, "pricing", void 0);
32
32
  __decorate([
33
33
  (0, typegoose_1.prop)({ type: () => profit_model_1.CourierOrderProfit }),
@@ -1 +1 @@
1
- {"version":3,"file":"courier-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/courier-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,+DAAqD;AACrD,2DAA8D;AAC9D,+DAAqD;AACrD,qDAAqE;AAErE,MAAa,mBAAoB,SAAQ,kCAAY;IAE7C,WAAW,CAA2B;IAGtC,OAAO,CAAgB;IAGvB,aAAa,CAAsB;CAC1C;AATD,kDASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAuB,EAAE,OAAO,EAAE,8BAAuB,CAAC,MAAM,EAAE,CAAC;;wDAClD;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BAClC,kCAAY;oDAAC;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BAClB,iCAAkB;0DAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { OrderFinance } from './order-finance.model';\nimport { CourierOrderProfit } from '../embedded/profit.model';\nimport { OrderPricing } from './order-pricing.model';\nimport { CourierOrderPaymentFrom } from '../../../../utilities/enum';\n\nexport class CourierOrderFinance extends OrderFinance {\n\t@prop({ type: String, enum: CourierOrderPaymentFrom, default: CourierOrderPaymentFrom.SENDER })\n\tpublic paymentFrom?: CourierOrderPaymentFrom;\n\n\t@prop({ required: true, type: () => OrderPricing })\n\tpublic pricing!: OrderPricing;\n\n\t@prop({ type: () => CourierOrderProfit })\n\tpublic companyProfit?: CourierOrderProfit;\n}\n"]}
1
+ {"version":3,"file":"courier-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/courier-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,+DAAqD;AACrD,2DAA8D;AAC9D,+DAA4D;AAC5D,qDAAqE;AAErE,MAAa,mBAAoB,SAAQ,kCAAY;IAE7C,WAAW,CAA2B;IAGtC,OAAO,CAAuB;IAG9B,aAAa,CAAsB;CAC1C;AATD,kDASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAuB,EAAE,OAAO,EAAE,8BAAuB,CAAC,MAAM,EAAE,CAAC;;wDAClD;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,yCAAmB,EAAE,CAAC;8BACzC,yCAAmB;oDAAC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BAClB,iCAAkB;0DAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { OrderFinance } from './order-finance.model';\nimport { CourierOrderProfit } from '../embedded/profit.model';\nimport { CourierOrderPricing } from './order-pricing.model';\nimport { CourierOrderPaymentFrom } from '../../../../utilities/enum';\n\nexport class CourierOrderFinance extends OrderFinance {\n\t@prop({ type: String, enum: CourierOrderPaymentFrom, default: CourierOrderPaymentFrom.SENDER })\n\tpublic paymentFrom?: CourierOrderPaymentFrom;\n\n\t@prop({ required: true, type: () => CourierOrderPricing })\n\tpublic pricing!: CourierOrderPricing;\n\n\t@prop({ type: () => CourierOrderProfit })\n\tpublic companyProfit?: CourierOrderProfit;\n}\n"]}
@@ -14,6 +14,10 @@ export declare class OrderPricing {
14
14
  paidAmount?: number;
15
15
  secondaryPaidAmount?: number;
16
16
  }
17
+ export declare class CourierOrderPricing extends OrderPricing {
18
+ initialItemTotal?: number;
19
+ secondaryInitialItemTotal?: number;
20
+ }
17
21
  export declare class RegularOrderPricing extends OrderPricing {
18
22
  discount?: number;
19
23
  secondaryDiscount?: number;
@@ -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.RegularOrderPricing = exports.OrderPricing = void 0;
12
+ exports.RegularOrderPricing = exports.CourierOrderPricing = exports.OrderPricing = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  class OrderPricing {
15
15
  subtotal;
@@ -84,6 +84,19 @@ __decorate([
84
84
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
85
85
  __metadata("design:type", Number)
86
86
  ], OrderPricing.prototype, "secondaryPaidAmount", void 0);
87
+ class CourierOrderPricing extends OrderPricing {
88
+ initialItemTotal;
89
+ secondaryInitialItemTotal;
90
+ }
91
+ exports.CourierOrderPricing = CourierOrderPricing;
92
+ __decorate([
93
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
94
+ __metadata("design:type", Number)
95
+ ], CourierOrderPricing.prototype, "initialItemTotal", void 0);
96
+ __decorate([
97
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
98
+ __metadata("design:type", Number)
99
+ ], CourierOrderPricing.prototype, "secondaryInitialItemTotal", void 0);
87
100
  class RegularOrderPricing extends OrderPricing {
88
101
  discount;
89
102
  secondaryDiscount;
@@ -1 +1 @@
1
- {"version":3,"file":"order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,WAAW,CAAU;IAGrB,oBAAoB,CAAU;IAG9B,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,sBAAsB,CAAU;IAGhC,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AA1CD,oCA0CC;AAxCO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACV;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACD;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACP;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE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AwBC;AAtBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACV;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8DACD;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oEACK;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mEACI;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4EACa;AAGzC;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,OAAO,EAAE,CAAC,EAAE,CAAC;;kEACG","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tpublic subtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondarySubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic deliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryDeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic riderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRiderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic total?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryTotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic wallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic reserveWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryReserveWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic paidAmount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryPaidAmount?: number;\n}\n\nexport class RegularOrderPricing extends OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tpublic discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic couponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCouponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic punchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryPunchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic b1g1Discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryB1g1Discount?: number;\n}\n"]}
1
+ {"version":3,"file":"order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,WAAW,CAAU;IAGrB,oBAAoB,CAAU;IAG9B,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,sBAAsB,CAAU;IAGhC,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AA1CD,oCA0CC;AAxCO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE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AAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kEACG","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tpublic subtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondarySubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic deliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryDeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic riderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRiderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic total?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryTotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic wallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic reserveWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryReserveWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic paidAmount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryPaidAmount?: number;\n}\n\nexport class CourierOrderPricing extends OrderPricing {\n\t// below field are only available for purchase and delivery order\n\t@prop({ type: Number, default: 0 })\n\tpublic initialItemTotal?: number; // This is initial subTotal,\n\t// updated item price in subTotal is stored in subTotal field after rider put amount\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryInitialItemTotal?: number;\n}\n\nexport class RegularOrderPricing extends OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tpublic discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic couponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCouponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic punchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryPunchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic b1g1Discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryB1g1Discount?: number;\n}\n"]}
@@ -3,8 +3,10 @@ import { ServiceBooking } from '../service-booking.model';
3
3
  import { ReviewType } from '../../../../utilities/enum';
4
4
  import { Review } from '../review.model';
5
5
  import { Vendor } from '../vendor.model';
6
+ import { VendorParent } from '../vendor-parent.model';
6
7
  export declare class ServiceBookingReview extends Review {
7
8
  reviewType: ReviewType.SERVICE_BOOKING;
9
+ vendorParent: Ref<VendorParent>;
8
10
  vendor: Ref<Vendor>;
9
11
  serviceBooking: Ref<ServiceBooking>;
10
12
  }
@@ -15,12 +15,18 @@ const service_booking_model_1 = require("../service-booking.model");
15
15
  const enum_1 = require("../../../../utilities/enum");
16
16
  const review_model_1 = require("../review.model");
17
17
  const vendor_model_1 = require("../vendor.model");
18
+ const vendor_parent_model_1 = require("../vendor-parent.model");
18
19
  class ServiceBookingReview extends review_model_1.Review {
19
20
  reviewType = enum_1.ReviewType.SERVICE_BOOKING;
21
+ vendorParent;
20
22
  vendor;
21
23
  serviceBooking;
22
24
  }
23
25
  exports.ServiceBookingReview = ServiceBookingReview;
26
+ __decorate([
27
+ (0, typegoose_1.prop)({ required: true, ref: () => vendor_parent_model_1.VendorParent }),
28
+ __metadata("design:type", Object)
29
+ ], ServiceBookingReview.prototype, "vendorParent", void 0);
24
30
  __decorate([
25
31
  (0, typegoose_1.prop)({ required: true, ref: () => vendor_model_1.Vendor }),
26
32
  __metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"service-booking-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/service-booking-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,oEAA0D;AAC1D,qDAAwD;AACxD,kDAAyC;AACzC,kDAAyC;AAEzC,MAAa,oBAAqB,SAAQ,qBAAM;IACxC,UAAU,GAAG,iBAAU,CAAC,eAAwB,CAAC;IAGjD,MAAM,CAAe;IAGrB,cAAc,CAAuB;CAC5C;AARD,oDAQC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;oDAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC;;4DACR","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { ServiceBooking } from '../service-booking.model';\nimport { ReviewType } from '../../../../utilities/enum';\nimport { Review } from '../review.model';\nimport { Vendor } from '../vendor.model';\n\nexport class ServiceBookingReview extends Review {\n\tpublic reviewType = ReviewType.SERVICE_BOOKING as const;\n\n\t@prop({ required: true, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ required: true, ref: () => ServiceBooking })\n\tpublic serviceBooking!: Ref<ServiceBooking>;\n}\n"]}
1
+ {"version":3,"file":"service-booking-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/service-booking-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,oEAA0D;AAC1D,qDAAwD;AACxD,kDAAyC;AACzC,kDAAyC;AACzC,gEAAsD;AAEtD,MAAa,oBAAqB,SAAQ,qBAAM;IACxC,UAAU,GAAG,iBAAU,CAAC,eAAwB,CAAC;IAGjD,YAAY,CAAqB;IAGjC,MAAM,CAAe;IAGrB,cAAc,CAAuB;CAC5C;AAXD,oDAWC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;;0DACV;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;oDAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC;;4DACR","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { ServiceBooking } from '../service-booking.model';\nimport { ReviewType } from '../../../../utilities/enum';\nimport { Review } from '../review.model';\nimport { Vendor } from '../vendor.model';\nimport { VendorParent } from '../vendor-parent.model';\n\nexport class ServiceBookingReview extends Review {\n\tpublic reviewType = ReviewType.SERVICE_BOOKING as const;\n\n\t@prop({ required: true, ref: () => VendorParent })\n\tpublic vendorParent!: Ref<VendorParent>;\n\n\t@prop({ required: true, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ required: true, ref: () => ServiceBooking })\n\tpublic serviceBooking!: Ref<ServiceBooking>;\n}\n"]}
@@ -2,7 +2,11 @@ import { Ref } from '@typegoose/typegoose';
2
2
  import { ReviewType } from '../../../../utilities/enum';
3
3
  import { Review } from '../review.model';
4
4
  import { ServicePackage } from '../service-package.model';
5
+ import { Vendor } from '../vendor.model';
6
+ import { VendorParent } from '../vendor-parent.model';
5
7
  export declare class ServicePackageReview extends Review {
6
8
  reviewType: ReviewType.SERVICE_PACKAGE;
9
+ vendorParent: Ref<VendorParent>;
10
+ vendor: Ref<Vendor>;
7
11
  servicePackage: Ref<ServicePackage>;
8
12
  }
@@ -14,11 +14,23 @@ const typegoose_1 = require("@typegoose/typegoose");
14
14
  const enum_1 = require("../../../../utilities/enum");
15
15
  const review_model_1 = require("../review.model");
16
16
  const service_package_model_1 = require("../service-package.model");
17
+ const vendor_model_1 = require("../vendor.model");
18
+ const vendor_parent_model_1 = require("../vendor-parent.model");
17
19
  class ServicePackageReview extends review_model_1.Review {
18
20
  reviewType = enum_1.ReviewType.SERVICE_PACKAGE;
21
+ vendorParent;
22
+ vendor;
19
23
  servicePackage;
20
24
  }
21
25
  exports.ServicePackageReview = ServicePackageReview;
26
+ __decorate([
27
+ (0, typegoose_1.prop)({ required: true, ref: () => vendor_parent_model_1.VendorParent }),
28
+ __metadata("design:type", Object)
29
+ ], ServicePackageReview.prototype, "vendorParent", void 0);
30
+ __decorate([
31
+ (0, typegoose_1.prop)({ required: true, ref: () => vendor_model_1.Vendor }),
32
+ __metadata("design:type", Object)
33
+ ], ServicePackageReview.prototype, "vendor", void 0);
22
34
  __decorate([
23
35
  (0, typegoose_1.prop)({ required: true, ref: () => service_package_model_1.ServicePackage }),
24
36
  __metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"service-package-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/service-package-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAwD;AACxD,kDAAyC;AACzC,oEAA0D;AAE1D,MAAa,oBAAqB,SAAQ,qBAAM;IACxC,UAAU,GAAG,iBAAU,CAAC,eAAwB,CAAC;IAGjD,cAAc,CAAuB;CAC5C;AALD,oDAKC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC;;4DACR","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { ReviewType } from '../../../../utilities/enum';\nimport { Review } from '../review.model'; \nimport { ServicePackage } from '../service-package.model';\n\nexport class ServicePackageReview extends Review {\n\tpublic reviewType = ReviewType.SERVICE_PACKAGE as const;\n\n\t@prop({ required: true, ref: () => ServicePackage })\n\tpublic servicePackage!: Ref<ServicePackage>;\n}\n"]}
1
+ {"version":3,"file":"service-package-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/service-package-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAwD;AACxD,kDAAyC;AACzC,oEAA0D;AAC1D,kDAAyC;AACzC,gEAAsD;AAEtD,MAAa,oBAAqB,SAAQ,qBAAM;IACxC,UAAU,GAAG,iBAAU,CAAC,eAAwB,CAAC;IAGjD,YAAY,CAAqB;IAGjC,MAAM,CAAe;IAGrB,cAAc,CAAuB;CAC5C;AAXD,oDAWC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;;0DACV;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;oDAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC;;4DACR","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { ReviewType } from '../../../../utilities/enum';\nimport { Review } from '../review.model';\nimport { ServicePackage } from '../service-package.model';\nimport { Vendor } from '../vendor.model';\nimport { VendorParent } from '../vendor-parent.model';\n\nexport class ServicePackageReview extends Review {\n\tpublic reviewType = ReviewType.SERVICE_PACKAGE as const;\n\n\t@prop({ required: true, ref: () => VendorParent })\n\tpublic vendorParent!: Ref<VendorParent>;\n\n\t@prop({ required: true, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ required: true, ref: () => ServicePackage })\n\tpublic servicePackage!: Ref<ServicePackage>;\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.74
25
+ Version: 1.4.76
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.74",
3
+ "version": "1.4.76",
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.74",
3
+ "version": "1.4.76",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",