@lyxa.ai/core 1.4.4 → 1.4.6

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.
Files changed (59) hide show
  1. package/dist/libraries/mongo/models/embedded/frequency-configuration.model.d.ts +2 -2
  2. package/dist/libraries/mongo/models/embedded/frequency-configuration.model.js +1 -1
  3. package/dist/libraries/mongo/models/embedded/frequency-configuration.model.js.map +1 -1
  4. package/dist/libraries/mongo/models/embedded/profit.model.d.ts +1 -1
  5. package/dist/libraries/mongo/models/embedded/profit.model.js +5 -5
  6. package/dist/libraries/mongo/models/embedded/profit.model.js.map +1 -1
  7. package/dist/libraries/mongo/models/embedded/service-booking-cancel.model.d.ts +5 -0
  8. package/dist/libraries/mongo/models/embedded/{service-order-cance.model.js → service-booking-cancel.model.js} +7 -7
  9. package/dist/libraries/mongo/models/embedded/service-booking-cancel.model.js.map +1 -0
  10. package/dist/libraries/mongo/models/embedded/{service-order-finance.model.d.ts → service-booking-finance.model.d.ts} +7 -7
  11. package/dist/libraries/mongo/models/embedded/{service-order-finance.model.js → service-booking-finance.model.js} +22 -22
  12. package/dist/libraries/mongo/models/embedded/service-booking-finance.model.js.map +1 -0
  13. package/dist/libraries/mongo/models/embedded/service-booking-flag.model.d.ts +8 -0
  14. package/dist/libraries/mongo/models/embedded/{service-order-flag.model.js → service-booking-flag.model.js} +10 -10
  15. package/dist/libraries/mongo/models/embedded/service-booking-flag.model.js.map +1 -0
  16. package/dist/libraries/mongo/models/embedded/{service-order-pricing.model.d.ts → service-booking-pricing.model.d.ts} +1 -1
  17. package/dist/libraries/mongo/models/embedded/{service-order-pricing.model.js → service-booking-pricing.model.js} +20 -20
  18. package/dist/libraries/mongo/models/embedded/service-booking-pricing.model.js.map +1 -0
  19. package/dist/libraries/mongo/models/embedded/{service-order-settings.model.d.ts → service-booking-settings.model.d.ts} +1 -1
  20. package/dist/libraries/mongo/models/embedded/{service-order-settings.model.js → service-booking-settings.model.js} +12 -15
  21. package/dist/libraries/mongo/models/embedded/service-booking-settings.model.js.map +1 -0
  22. package/dist/libraries/mongo/models/embedded/status-timeline.model.d.ts +3 -3
  23. package/dist/libraries/mongo/models/embedded/status-timeline.model.js +5 -5
  24. package/dist/libraries/mongo/models/embedded/status-timeline.model.js.map +1 -1
  25. package/dist/libraries/mongo/models/index.d.ts +6 -6
  26. package/dist/libraries/mongo/models/index.js +7 -7
  27. package/dist/libraries/mongo/models/index.js.map +1 -1
  28. package/dist/libraries/mongo/models/providers/{service-order-review.model.d.ts → service-booking-review.model.d.ts} +3 -3
  29. package/dist/libraries/mongo/models/providers/{service-order-review.model.js → service-booking-review.model.js} +9 -9
  30. package/dist/libraries/mongo/models/providers/service-booking-review.model.js.map +1 -0
  31. package/dist/libraries/mongo/models/review.model.js +1 -1
  32. package/dist/libraries/mongo/models/review.model.js.map +1 -1
  33. package/dist/libraries/mongo/models/{service-order.model.d.ts → service-booking.model.d.ts} +12 -12
  34. package/dist/libraries/mongo/models/{service-order.model.js → service-booking.model.js} +52 -52
  35. package/dist/libraries/mongo/models/service-booking.model.js.map +1 -0
  36. package/dist/libraries/mongo/models/vendor.model.d.ts +2 -3
  37. package/dist/libraries/mongo/models/vendor.model.js +3 -8
  38. package/dist/libraries/mongo/models/vendor.model.js.map +1 -1
  39. package/dist/types/README.md +1 -1
  40. package/dist/types/package.json +1 -1
  41. package/dist/types/utilities/enum.d.ts +8 -7
  42. package/dist/types/utilities/enum.js +35 -34
  43. package/dist/types/utilities/enum.js.map +1 -1
  44. package/dist/utilities/enum.d.ts +8 -7
  45. package/dist/utilities/enum.js +35 -34
  46. package/dist/utilities/enum.js.map +1 -1
  47. package/dist/utilities/map.d.ts +2 -2
  48. package/dist/utilities/map.js +5 -5
  49. package/dist/utilities/map.js.map +1 -1
  50. package/package.json +1 -1
  51. package/dist/libraries/mongo/models/embedded/service-order-cance.model.d.ts +0 -5
  52. package/dist/libraries/mongo/models/embedded/service-order-cance.model.js.map +0 -1
  53. package/dist/libraries/mongo/models/embedded/service-order-finance.model.js.map +0 -1
  54. package/dist/libraries/mongo/models/embedded/service-order-flag.model.d.ts +0 -8
  55. package/dist/libraries/mongo/models/embedded/service-order-flag.model.js.map +0 -1
  56. package/dist/libraries/mongo/models/embedded/service-order-pricing.model.js.map +0 -1
  57. package/dist/libraries/mongo/models/embedded/service-order-settings.model.js.map +0 -1
  58. package/dist/libraries/mongo/models/providers/service-order-review.model.js.map +0 -1
  59. package/dist/libraries/mongo/models/service-order.model.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { ServiceOrderRecurrencePattern, ValueType } from "../../../../utilities/enum";
1
+ import { ServiceBookingRecurrencePattern, ValueType } from '../../../../utilities/enum';
2
2
  export declare class FrequencyConfig {
3
- recurrencePattern: ServiceOrderRecurrencePattern;
3
+ recurrencePattern: ServiceBookingRecurrencePattern;
4
4
  enabled: boolean;
5
5
  discountType?: ValueType;
6
6
  discountValue?: number;
@@ -20,7 +20,7 @@ class FrequencyConfig {
20
20
  }
21
21
  exports.FrequencyConfig = FrequencyConfig;
22
22
  __decorate([
23
- (0, typegoose_1.prop)({ required: true, enum: enum_1.ServiceOrderRecurrencePattern }),
23
+ (0, typegoose_1.prop)({ required: true, enum: enum_1.ServiceBookingRecurrencePattern }),
24
24
  __metadata("design:type", String)
25
25
  ], FrequencyConfig.prototype, "recurrencePattern", void 0);
26
26
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"frequency-configuration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/frequency-configuration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAsF;AAEtF,MAAa,eAAe;IAEjB,iBAAiB,CAAgC;IAGjD,OAAO,CAAU;IAGjB,YAAY,CAAY;IAGxB,aAAa,CAAS;CAChC;AAZD,0CAYC;AAVU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,oCAA6B,EAAE,CAAC;;0DACN;AAGjD;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACD;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAC,CAAC;;qDACR;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sDACF","sourcesContent":["import { prop } from \"@typegoose/typegoose\";\nimport { ServiceOrderRecurrencePattern, ValueType } from \"../../../../utilities/enum\";\n\nexport class FrequencyConfig {\n @prop({ required: true, enum: ServiceOrderRecurrencePattern })\n public recurrencePattern!: ServiceOrderRecurrencePattern\n\n @prop({ required: true })\n public enabled!: boolean\n\n @prop({ type: String, enum: ValueType})\n public discountType?: ValueType\n\n @prop({ type: Number, min: 0 })\n public discountValue?: number\n} "]}
1
+ {"version":3,"file":"frequency-configuration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/frequency-configuration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAwF;AAExF,MAAa,eAAe;IAEpB,iBAAiB,CAAmC;IAGpD,OAAO,CAAW;IAGlB,YAAY,CAAa;IAGzB,aAAa,CAAU;CAC9B;AAZD,0CAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,sCAA+B,EAAE,CAAC;;0DACL;AAGpD;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACA;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;qDACR;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sDACD","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ServiceBookingRecurrencePattern, ValueType } from '../../../../utilities/enum';\n\nexport class FrequencyConfig {\n\t@prop({ required: true, enum: ServiceBookingRecurrencePattern })\n\tpublic recurrencePattern!: ServiceBookingRecurrencePattern;\n\n\t@prop({ required: true })\n\tpublic enabled!: boolean;\n\n\t@prop({ type: String, enum: ValueType })\n\tpublic discountType?: ValueType;\n\n\t@prop({ type: Number, min: 0 })\n\tpublic discountValue?: number;\n}\n"]}
@@ -12,7 +12,7 @@ export declare class RiderProfit extends CourierOrderProfit {
12
12
  profitFromTips?: number;
13
13
  secondaryProfitFromTips?: number;
14
14
  }
15
- export declare class ServiceOrderProfit {
15
+ export declare class ServiceBookingProfit {
16
16
  profit: number;
17
17
  secondaryProfit: number;
18
18
  }
@@ -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.ServiceOrderProfit = exports.RiderProfit = exports.RegularOrderProfit = exports.CourierOrderProfit = void 0;
12
+ exports.ServiceBookingProfit = exports.RiderProfit = exports.RegularOrderProfit = exports.CourierOrderProfit = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  class CourierOrderProfit {
15
15
  profitFromDelivery;
@@ -60,17 +60,17 @@ __decorate([
60
60
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
61
61
  __metadata("design:type", Number)
62
62
  ], RiderProfit.prototype, "secondaryProfitFromTips", void 0);
63
- class ServiceOrderProfit {
63
+ class ServiceBookingProfit {
64
64
  profit;
65
65
  secondaryProfit;
66
66
  }
67
- exports.ServiceOrderProfit = ServiceOrderProfit;
67
+ exports.ServiceBookingProfit = ServiceBookingProfit;
68
68
  __decorate([
69
69
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
70
70
  __metadata("design:type", Number)
71
- ], ServiceOrderProfit.prototype, "profit", void 0);
71
+ ], ServiceBookingProfit.prototype, "profit", void 0);
72
72
  __decorate([
73
73
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
74
74
  __metadata("design:type", Number)
75
- ], ServiceOrderProfit.prototype, "secondaryProfit", void 0);
75
+ ], ServiceBookingProfit.prototype, "secondaryProfit", void 0);
76
76
  //# sourceMappingURL=profit.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"profit.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/profit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,kBAAkB;IAEvB,kBAAkB,CAAU;IAG5B,2BAA2B,CAAU;IAGrC,WAAW,CAAU;IAGrB,oBAAoB,CAAU;CACrC;AAZD,gDAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8DACA;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uEACS;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACP;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gEACE;AAGtC,MAAa,kBAAmB,SAAQ,kBAAkB;IAElD,cAAc,CAAU;IAGxB,uBAAuB,CAAU;CACxC;AAND,gDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mEACK;AAGzC,MAAa,WAAY,SAAQ,kBAAkB;IAE3C,cAAc,CAAU;IAGxB,uBAAuB,CAAU;CACxC;AAND,kCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACK;AAGzC,MAAa,kBAAkB;IAEvB,MAAM,CAAS;IAGf,eAAe,CAAS;CAC/B;AAND,gDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDACb;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2DACJ","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalProfit?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryTotalProfit?: number;\n}\n\nexport class RegularOrderProfit extends CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromItem?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromItem?: number;\n}\n\nexport class RiderProfit extends CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromTips?: number;\n}\n\nexport class ServiceOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profit: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfit: number;\n}\n"]}
1
+ {"version":3,"file":"profit.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/profit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,kBAAkB;IAEvB,kBAAkB,CAAU;IAG5B,2BAA2B,CAAU;IAGrC,WAAW,CAAU;IAGrB,oBAAoB,CAAU;CACrC;AAZD,gDAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8DACA;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uEACS;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACP;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gEACE;AAGtC,MAAa,kBAAmB,SAAQ,kBAAkB;IAElD,cAAc,CAAU;IAGxB,uBAAuB,CAAU;CACxC;AAND,gDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mEACK;AAGzC,MAAa,WAAY,SAAQ,kBAAkB;IAE3C,cAAc,CAAU;IAGxB,uBAAuB,CAAU;CACxC;AAND,kCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACK;AAGzC,MAAa,oBAAoB;IAEzB,MAAM,CAAS;IAGf,eAAe,CAAS;CAC/B;AAND,oDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACb;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6DACJ","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalProfit?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryTotalProfit?: number;\n}\n\nexport class RegularOrderProfit extends CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromItem?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromItem?: number;\n}\n\nexport class RiderProfit extends CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromTips?: number;\n}\n\nexport class ServiceBookingProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profit: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfit: number;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { ServiceBookingCanceledBy } from '../../../../utilities/enum';
2
+ export declare class ServiceBookingCancel {
3
+ canceledBy: ServiceBookingCanceledBy;
4
+ cancelReason?: string;
5
+ }
@@ -9,20 +9,20 @@ 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.ServiceOrderCancel = void 0;
12
+ exports.ServiceBookingCancel = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const enum_1 = require("../../../../utilities/enum");
15
- class ServiceOrderCancel {
15
+ class ServiceBookingCancel {
16
16
  canceledBy;
17
17
  cancelReason;
18
18
  }
19
- exports.ServiceOrderCancel = ServiceOrderCancel;
19
+ exports.ServiceBookingCancel = ServiceBookingCancel;
20
20
  __decorate([
21
- (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceOrderCanceledBy }),
21
+ (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceBookingCanceledBy }),
22
22
  __metadata("design:type", String)
23
- ], ServiceOrderCancel.prototype, "canceledBy", void 0);
23
+ ], ServiceBookingCancel.prototype, "canceledBy", void 0);
24
24
  __decorate([
25
25
  (0, typegoose_1.prop)({ type: String }),
26
26
  __metadata("design:type", String)
27
- ], ServiceOrderCancel.prototype, "cancelReason", void 0);
28
- //# sourceMappingURL=service-order-cance.model.js.map
27
+ ], ServiceBookingCancel.prototype, "cancelReason", void 0);
28
+ //# sourceMappingURL=service-booking-cancel.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-booking-cancel.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-booking-cancel.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAsE;AAEtE,MAAa,oBAAoB;IAEzB,UAAU,CAA4B;IAGtC,YAAY,CAAU;CAC7B;AAND,oDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,+BAAwB,EAAE,CAAC;;wDAC1B;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0DACM","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ServiceBookingCanceledBy } from '../../../../utilities/enum';\n\nexport class ServiceBookingCancel {\n\t@prop({ required: true, type: String, enum: ServiceBookingCanceledBy })\n\tpublic canceledBy!: ServiceBookingCanceledBy;\n\n\t@prop({ type: String })\n\tpublic cancelReason?: string;\n}\n"]}
@@ -1,17 +1,17 @@
1
- import { Vat } from '../embedded/vat.model';
2
- import { ServiceOrderPricing } from './service-order-pricing.model';
1
+ import { Vat } from './vat.model';
2
+ import { ServiceBookingPricing } from './service-booking-pricing.model';
3
3
  import { PaymentMethod } from '../../../../utilities/enum';
4
4
  import { PaymentInformation } from './payment-infromation.model';
5
- import { ServiceOrderProfit } from './profit.model';
5
+ import { ServiceBookingProfit } from './profit.model';
6
6
  import { ServiceCouponDetails, ServicePromotionCut } from './marketing-cut.model';
7
7
  import { Cashback } from './cashback-amounts.model';
8
- export declare class ServiceOrderFinance {
8
+ export declare class ServiceBookingFinance {
9
9
  exchangeRate?: number;
10
10
  paymentMethod: PaymentMethod;
11
11
  paymentInformation?: PaymentInformation;
12
- pricing: ServiceOrderPricing;
13
- companyProfit?: ServiceOrderProfit;
14
- vendorProfit?: ServiceOrderProfit;
12
+ pricing: ServiceBookingPricing;
13
+ companyProfit?: ServiceBookingProfit;
14
+ vendorProfit?: ServiceBookingProfit;
15
15
  discount?: ServicePromotionCut;
16
16
  coupon?: ServiceCouponDetails;
17
17
  vat?: Vat;
@@ -9,16 +9,16 @@ 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.ServiceOrderFinance = void 0;
12
+ exports.ServiceBookingFinance = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
- const vat_model_1 = require("../embedded/vat.model");
15
- const service_order_pricing_model_1 = require("./service-order-pricing.model");
14
+ const vat_model_1 = require("./vat.model");
15
+ const service_booking_pricing_model_1 = require("./service-booking-pricing.model");
16
16
  const enum_1 = require("../../../../utilities/enum");
17
17
  const payment_infromation_model_1 = require("./payment-infromation.model");
18
18
  const profit_model_1 = require("./profit.model");
19
19
  const marketing_cut_model_1 = require("./marketing-cut.model");
20
20
  const cashback_amounts_model_1 = require("./cashback-amounts.model");
21
- class ServiceOrderFinance {
21
+ class ServiceBookingFinance {
22
22
  exchangeRate;
23
23
  paymentMethod;
24
24
  paymentInformation;
@@ -30,45 +30,45 @@ class ServiceOrderFinance {
30
30
  vat;
31
31
  cashBackAmounts;
32
32
  }
33
- exports.ServiceOrderFinance = ServiceOrderFinance;
33
+ exports.ServiceBookingFinance = ServiceBookingFinance;
34
34
  __decorate([
35
35
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
36
36
  __metadata("design:type", Number)
37
- ], ServiceOrderFinance.prototype, "exchangeRate", void 0);
37
+ ], ServiceBookingFinance.prototype, "exchangeRate", void 0);
38
38
  __decorate([
39
39
  (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.PaymentMethod }),
40
40
  __metadata("design:type", String)
41
- ], ServiceOrderFinance.prototype, "paymentMethod", void 0);
41
+ ], ServiceBookingFinance.prototype, "paymentMethod", void 0);
42
42
  __decorate([
43
43
  (0, typegoose_1.prop)({ type: () => payment_infromation_model_1.PaymentInformation, _id: false }),
44
44
  __metadata("design:type", payment_infromation_model_1.PaymentInformation)
45
- ], ServiceOrderFinance.prototype, "paymentInformation", void 0);
45
+ ], ServiceBookingFinance.prototype, "paymentInformation", void 0);
46
46
  __decorate([
47
- (0, typegoose_1.prop)({ required: true, type: () => service_order_pricing_model_1.ServiceOrderPricing, _id: false }),
48
- __metadata("design:type", service_order_pricing_model_1.ServiceOrderPricing)
49
- ], ServiceOrderFinance.prototype, "pricing", void 0);
47
+ (0, typegoose_1.prop)({ required: true, type: () => service_booking_pricing_model_1.ServiceBookingPricing, _id: false }),
48
+ __metadata("design:type", service_booking_pricing_model_1.ServiceBookingPricing)
49
+ ], ServiceBookingFinance.prototype, "pricing", void 0);
50
50
  __decorate([
51
- (0, typegoose_1.prop)({ type: () => profit_model_1.ServiceOrderProfit, _id: false }),
52
- __metadata("design:type", profit_model_1.ServiceOrderProfit)
53
- ], ServiceOrderFinance.prototype, "companyProfit", void 0);
51
+ (0, typegoose_1.prop)({ type: () => profit_model_1.ServiceBookingProfit, _id: false }),
52
+ __metadata("design:type", profit_model_1.ServiceBookingProfit)
53
+ ], ServiceBookingFinance.prototype, "companyProfit", void 0);
54
54
  __decorate([
55
- (0, typegoose_1.prop)({ type: () => profit_model_1.ServiceOrderProfit, _id: false }),
56
- __metadata("design:type", profit_model_1.ServiceOrderProfit)
57
- ], ServiceOrderFinance.prototype, "vendorProfit", void 0);
55
+ (0, typegoose_1.prop)({ type: () => profit_model_1.ServiceBookingProfit, _id: false }),
56
+ __metadata("design:type", profit_model_1.ServiceBookingProfit)
57
+ ], ServiceBookingFinance.prototype, "vendorProfit", void 0);
58
58
  __decorate([
59
59
  (0, typegoose_1.prop)({ type: () => marketing_cut_model_1.ServicePromotionCut, _id: false }),
60
60
  __metadata("design:type", marketing_cut_model_1.ServicePromotionCut)
61
- ], ServiceOrderFinance.prototype, "discount", void 0);
61
+ ], ServiceBookingFinance.prototype, "discount", void 0);
62
62
  __decorate([
63
63
  (0, typegoose_1.prop)({ type: () => marketing_cut_model_1.ServiceCouponDetails, _id: false }),
64
64
  __metadata("design:type", marketing_cut_model_1.ServiceCouponDetails)
65
- ], ServiceOrderFinance.prototype, "coupon", void 0);
65
+ ], ServiceBookingFinance.prototype, "coupon", void 0);
66
66
  __decorate([
67
67
  (0, typegoose_1.prop)({ type: () => vat_model_1.Vat, _id: false }),
68
68
  __metadata("design:type", vat_model_1.Vat)
69
- ], ServiceOrderFinance.prototype, "vat", void 0);
69
+ ], ServiceBookingFinance.prototype, "vat", void 0);
70
70
  __decorate([
71
71
  (0, typegoose_1.prop)({ type: () => cashback_amounts_model_1.Cashback, _id: false }),
72
72
  __metadata("design:type", cashback_amounts_model_1.Cashback)
73
- ], ServiceOrderFinance.prototype, "cashBackAmounts", void 0);
74
- //# sourceMappingURL=service-order-finance.model.js.map
73
+ ], ServiceBookingFinance.prototype, "cashBackAmounts", void 0);
74
+ //# sourceMappingURL=service-booking-finance.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-booking-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-booking-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,2CAAkC;AAClC,mFAAwE;AACxE,qDAA2D;AAC3D,2EAAiE;AACjE,iDAAsD;AACtD,+DAAkF;AAClF,qEAAoD;AAEpD,MAAa,qBAAqB;IAE1B,YAAY,CAAU;IAGtB,aAAa,CAAiB;IAG9B,kBAAkB,CAAsB;IAGxC,OAAO,CAAyB;IAGhC,aAAa,CAAwB;IAGrC,YAAY,CAAwB;IAGpC,QAAQ,CAAuB;IAG/B,MAAM,CAAwB;IAG9B,GAAG,CAAO;IAGV,eAAe,CAAY;CAClC;AA9BD,sDA8BC;AA5BO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2DACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAa,EAAE,CAAC;;4DACvB;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACzB,8CAAkB;iEAAC;AAGxC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,qDAAqB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACvD,qDAAqB;sDAAC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAoB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BAChC,mCAAoB;4DAAC;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAoB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACjC,mCAAoB;2DAAC;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,yCAAmB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACpC,yCAAmB;uDAAC;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,0CAAoB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACvC,0CAAoB;qDAAC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,eAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACzB,eAAG;kDAAC;AAGV;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BAClB,iCAAQ;8DAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Vat } from './vat.model';\nimport { ServiceBookingPricing } from './service-booking-pricing.model';\nimport { PaymentMethod } from '../../../../utilities/enum';\nimport { PaymentInformation } from './payment-infromation.model';\nimport { ServiceBookingProfit } from './profit.model';\nimport { ServiceCouponDetails, ServicePromotionCut } from './marketing-cut.model';\nimport { Cashback } from './cashback-amounts.model';\n\nexport class ServiceBookingFinance {\n\t@prop({ type: Number, default: 0 })\n\tpublic exchangeRate?: number;\n\n\t@prop({ required: true, type: String, enum: PaymentMethod })\n\tpublic paymentMethod!: PaymentMethod;\n\n\t@prop({ type: () => PaymentInformation, _id: false })\n\tpublic paymentInformation?: PaymentInformation;\n\n\t@prop({ required: true, type: () => ServiceBookingPricing, _id: false })\n\tpublic pricing!: ServiceBookingPricing;\n\n\t@prop({ type: () => ServiceBookingProfit, _id: false })\n\tpublic companyProfit?: ServiceBookingProfit;\n\n\t@prop({ type: () => ServiceBookingProfit, _id: false })\n\tpublic vendorProfit?: ServiceBookingProfit;\n\n\t@prop({ type: () => ServicePromotionCut, _id: false })\n\tpublic discount?: ServicePromotionCut;\n\n\t@prop({ type: () => ServiceCouponDetails, _id: false })\n\tpublic coupon?: ServiceCouponDetails;\n\n\t@prop({ type: () => Vat, _id: false })\n\tpublic vat?: Vat;\n\n\t@prop({ type: () => Cashback, _id: false })\n\tpublic cashBackAmounts?: Cashback;\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { ServiceBookingActionType } from '../../../../utilities/enum';
2
+ export declare class ServiceBookingFlag {
3
+ reason: string;
4
+ actionType: ServiceBookingActionType;
5
+ flaggedAt?: Date;
6
+ isResolved?: boolean;
7
+ resolvedAt?: Date;
8
+ }
@@ -9,35 +9,35 @@ 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.ServiceOrderFlag = void 0;
12
+ exports.ServiceBookingFlag = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const enum_1 = require("../../../../utilities/enum");
15
- class ServiceOrderFlag {
15
+ class ServiceBookingFlag {
16
16
  reason;
17
17
  actionType;
18
18
  flaggedAt;
19
19
  isResolved;
20
20
  resolvedAt;
21
21
  }
22
- exports.ServiceOrderFlag = ServiceOrderFlag;
22
+ exports.ServiceBookingFlag = ServiceBookingFlag;
23
23
  __decorate([
24
24
  (0, typegoose_1.prop)({ required: true }),
25
25
  __metadata("design:type", String)
26
- ], ServiceOrderFlag.prototype, "reason", void 0);
26
+ ], ServiceBookingFlag.prototype, "reason", void 0);
27
27
  __decorate([
28
- (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceOrderActionType }),
28
+ (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceBookingActionType }),
29
29
  __metadata("design:type", String)
30
- ], ServiceOrderFlag.prototype, "actionType", void 0);
30
+ ], ServiceBookingFlag.prototype, "actionType", void 0);
31
31
  __decorate([
32
32
  (0, typegoose_1.prop)({ type: Date, default: Date.now }),
33
33
  __metadata("design:type", Date)
34
- ], ServiceOrderFlag.prototype, "flaggedAt", void 0);
34
+ ], ServiceBookingFlag.prototype, "flaggedAt", void 0);
35
35
  __decorate([
36
36
  (0, typegoose_1.prop)({ type: Boolean, default: false }),
37
37
  __metadata("design:type", Boolean)
38
- ], ServiceOrderFlag.prototype, "isResolved", void 0);
38
+ ], ServiceBookingFlag.prototype, "isResolved", void 0);
39
39
  __decorate([
40
40
  (0, typegoose_1.prop)({ type: Date }),
41
41
  __metadata("design:type", Date)
42
- ], ServiceOrderFlag.prototype, "resolvedAt", void 0);
43
- //# sourceMappingURL=service-order-flag.model.js.map
42
+ ], ServiceBookingFlag.prototype, "resolvedAt", void 0);
43
+ //# sourceMappingURL=service-booking-flag.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-booking-flag.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-booking-flag.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAsE;AAEtE,MAAa,kBAAkB;IAEvB,MAAM,CAAU;IAGhB,UAAU,CAA4B;IAGtC,SAAS,CAAQ;IAGjB,UAAU,CAAW;IAGrB,UAAU,CAAQ;CACzB;AAfD,gDAeC;AAbO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACF;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,+BAAwB,EAAE,CAAC;;sDAC1B;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;8BACrB,IAAI;qDAAC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sDACZ;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACD,IAAI;sDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ServiceBookingActionType } from '../../../../utilities/enum';\n\nexport class ServiceBookingFlag {\n\t@prop({ required: true })\n\tpublic reason!: string;\n\n\t@prop({ required: true, type: String, enum: ServiceBookingActionType })\n\tpublic actionType!: ServiceBookingActionType;\n\n\t@prop({ type: Date, default: Date.now })\n\tpublic flaggedAt?: Date;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isResolved?: boolean;\n\n\t@prop({ type: Date })\n\tpublic resolvedAt?: Date;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
2
- export declare class ServiceOrderPricing extends TimeStamps {
2
+ export declare class ServiceBookingPricing extends TimeStamps {
3
3
  subtotal?: number;
4
4
  secondarySubtotal?: number;
5
5
  materialCost?: number;
@@ -9,10 +9,10 @@ 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.ServiceOrderPricing = void 0;
12
+ exports.ServiceBookingPricing = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
15
- class ServiceOrderPricing extends defaultClasses_1.TimeStamps {
15
+ class ServiceBookingPricing extends defaultClasses_1.TimeStamps {
16
16
  subtotal;
17
17
  secondarySubtotal;
18
18
  materialCost;
@@ -30,69 +30,69 @@ class ServiceOrderPricing extends defaultClasses_1.TimeStamps {
30
30
  paidAmount;
31
31
  secondaryPaidAmount;
32
32
  }
33
- exports.ServiceOrderPricing = ServiceOrderPricing;
33
+ exports.ServiceBookingPricing = ServiceBookingPricing;
34
34
  __decorate([
35
35
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
36
36
  __metadata("design:type", Number)
37
- ], ServiceOrderPricing.prototype, "subtotal", void 0);
37
+ ], ServiceBookingPricing.prototype, "subtotal", void 0);
38
38
  __decorate([
39
39
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
40
40
  __metadata("design:type", Number)
41
- ], ServiceOrderPricing.prototype, "secondarySubtotal", void 0);
41
+ ], ServiceBookingPricing.prototype, "secondarySubtotal", void 0);
42
42
  __decorate([
43
43
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
44
44
  __metadata("design:type", Number)
45
- ], ServiceOrderPricing.prototype, "materialCost", void 0);
45
+ ], ServiceBookingPricing.prototype, "materialCost", void 0);
46
46
  __decorate([
47
47
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
48
48
  __metadata("design:type", Number)
49
- ], ServiceOrderPricing.prototype, "secondaryMaterialCost", void 0);
49
+ ], ServiceBookingPricing.prototype, "secondaryMaterialCost", void 0);
50
50
  __decorate([
51
51
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
52
52
  __metadata("design:type", Number)
53
- ], ServiceOrderPricing.prototype, "discount", void 0);
53
+ ], ServiceBookingPricing.prototype, "discount", void 0);
54
54
  __decorate([
55
55
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
56
56
  __metadata("design:type", Number)
57
- ], ServiceOrderPricing.prototype, "secondaryDiscount", void 0);
57
+ ], ServiceBookingPricing.prototype, "secondaryDiscount", void 0);
58
58
  __decorate([
59
59
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
60
60
  __metadata("design:type", Number)
61
- ], ServiceOrderPricing.prototype, "couponDiscount", void 0);
61
+ ], ServiceBookingPricing.prototype, "couponDiscount", void 0);
62
62
  __decorate([
63
63
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
64
64
  __metadata("design:type", Number)
65
- ], ServiceOrderPricing.prototype, "secondaryCouponDiscount", void 0);
65
+ ], ServiceBookingPricing.prototype, "secondaryCouponDiscount", void 0);
66
66
  __decorate([
67
67
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
68
68
  __metadata("design:type", Number)
69
- ], ServiceOrderPricing.prototype, "total", void 0);
69
+ ], ServiceBookingPricing.prototype, "total", void 0);
70
70
  __decorate([
71
71
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
72
72
  __metadata("design:type", Number)
73
- ], ServiceOrderPricing.prototype, "secondaryTotal", void 0);
73
+ ], ServiceBookingPricing.prototype, "secondaryTotal", void 0);
74
74
  __decorate([
75
75
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
76
76
  __metadata("design:type", Number)
77
- ], ServiceOrderPricing.prototype, "wallet", void 0);
77
+ ], ServiceBookingPricing.prototype, "wallet", void 0);
78
78
  __decorate([
79
79
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
80
80
  __metadata("design:type", Number)
81
- ], ServiceOrderPricing.prototype, "secondaryWallet", void 0);
81
+ ], ServiceBookingPricing.prototype, "secondaryWallet", void 0);
82
82
  __decorate([
83
83
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
84
84
  __metadata("design:type", Number)
85
- ], ServiceOrderPricing.prototype, "reserveWallet", void 0);
85
+ ], ServiceBookingPricing.prototype, "reserveWallet", void 0);
86
86
  __decorate([
87
87
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
88
88
  __metadata("design:type", Number)
89
- ], ServiceOrderPricing.prototype, "secondaryReserveWallet", void 0);
89
+ ], ServiceBookingPricing.prototype, "secondaryReserveWallet", void 0);
90
90
  __decorate([
91
91
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
92
92
  __metadata("design:type", Number)
93
- ], ServiceOrderPricing.prototype, "paidAmount", void 0);
93
+ ], ServiceBookingPricing.prototype, "paidAmount", void 0);
94
94
  __decorate([
95
95
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
96
96
  __metadata("design:type", Number)
97
- ], ServiceOrderPricing.prototype, "secondaryPaidAmount", void 0);
98
- //# sourceMappingURL=service-order-pricing.model.js.map
97
+ ], ServiceBookingPricing.prototype, "secondaryPaidAmount", void 0);
98
+ //# sourceMappingURL=service-booking-pricing.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-booking-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-booking-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,4EAAqE;AAErE,MAAa,qBAAsB,SAAQ,2BAAU;IAE7C,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,YAAY,CAAU;IAGtB,qBAAqB,CAAU;IAG/B,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,cAAc,CAAU;IAGxB,uBAAuB,CAAU;IAGjC,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,sBAAsB,CAAU;IAGhC,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAhDD,sDAgDC;AA9CO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACV;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gEACD;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2DACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oEACG;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACV;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gEACD;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sEACK;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACb;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACZ;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8DACH;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACL;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qEACI;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kEACC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\n\nexport class ServiceBookingPricing extends TimeStamps {\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 materialCost?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryMaterialCost?: number;\n\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 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"]}
@@ -1,5 +1,5 @@
1
1
  import { FrequencyConfig } from './frequency-configuration.model';
2
- export declare class ServiceOrderSettings {
2
+ export declare class ServiceBookingSettings {
3
3
  frequencyConfigs?: FrequencyConfig[];
4
4
  slotInterval?: number;
5
5
  bufferTime?: number;
@@ -9,52 +9,49 @@ 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.ServiceOrderSettings = void 0;
12
+ exports.ServiceBookingSettings = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const frequency_configuration_model_1 = require("./frequency-configuration.model");
15
15
  const enum_1 = require("../../../../utilities/enum");
16
- let ServiceOrderSettings = class ServiceOrderSettings {
16
+ class ServiceBookingSettings {
17
17
  frequencyConfigs;
18
18
  slotInterval;
19
19
  bufferTime;
20
20
  servicePreparationTime;
21
21
  maxAdvanceOrderDay;
22
22
  autoUrgencyTimeLimit;
23
- };
24
- exports.ServiceOrderSettings = ServiceOrderSettings;
23
+ }
24
+ exports.ServiceBookingSettings = ServiceBookingSettings;
25
25
  __decorate([
26
26
  (0, typegoose_1.prop)({
27
27
  type: () => [frequency_configuration_model_1.FrequencyConfig],
28
28
  default: [
29
29
  {
30
- recurrencePattern: enum_1.ServiceOrderRecurrencePattern.ONETIME,
30
+ recurrencePattern: enum_1.ServiceBookingRecurrencePattern.ONETIME,
31
31
  enabled: true,
32
32
  },
33
33
  ],
34
34
  }),
35
35
  __metadata("design:type", Array)
36
- ], ServiceOrderSettings.prototype, "frequencyConfigs", void 0);
36
+ ], ServiceBookingSettings.prototype, "frequencyConfigs", void 0);
37
37
  __decorate([
38
38
  (0, typegoose_1.prop)({ type: Number, min: 30, max: 120, default: 30 }),
39
39
  __metadata("design:type", Number)
40
- ], ServiceOrderSettings.prototype, "slotInterval", void 0);
40
+ ], ServiceBookingSettings.prototype, "slotInterval", void 0);
41
41
  __decorate([
42
42
  (0, typegoose_1.prop)({ type: Number, min: 0, max: 60, default: 0 }),
43
43
  __metadata("design:type", Number)
44
- ], ServiceOrderSettings.prototype, "bufferTime", void 0);
44
+ ], ServiceBookingSettings.prototype, "bufferTime", void 0);
45
45
  __decorate([
46
46
  (0, typegoose_1.prop)({ type: Number, min: 0, max: 12000, default: 180 }),
47
47
  __metadata("design:type", Number)
48
- ], ServiceOrderSettings.prototype, "servicePreparationTime", void 0);
48
+ ], ServiceBookingSettings.prototype, "servicePreparationTime", void 0);
49
49
  __decorate([
50
50
  (0, typegoose_1.prop)({ type: Number, min: 1, max: 60, default: 14 }),
51
51
  __metadata("design:type", Number)
52
- ], ServiceOrderSettings.prototype, "maxAdvanceOrderDay", void 0);
52
+ ], ServiceBookingSettings.prototype, "maxAdvanceOrderDay", void 0);
53
53
  __decorate([
54
54
  (0, typegoose_1.prop)({ type: Number, min: 0, max: 4320, default: 360 }),
55
55
  __metadata("design:type", Number)
56
- ], ServiceOrderSettings.prototype, "autoUrgencyTimeLimit", void 0);
57
- exports.ServiceOrderSettings = ServiceOrderSettings = __decorate([
58
- (0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'serviceOrderSettings' } })
59
- ], ServiceOrderSettings);
60
- //# sourceMappingURL=service-order-settings.model.js.map
56
+ ], ServiceBookingSettings.prototype, "autoUrgencyTimeLimit", void 0);
57
+ //# sourceMappingURL=service-booking-settings.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-booking-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-booking-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,mFAAkE;AAClE,qDAA6E;AAE7E,MAAa,sBAAsB;IAU3B,gBAAgB,CAAqB;IAGrC,YAAY,CAAU;IAGtB,UAAU,CAAU;IAGpB,sBAAsB,CAAU;IAGhC,kBAAkB,CAAU;IAG5B,oBAAoB,CAAU;CACrC;AA1BD,wDA0BC;AAhBO;IATN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,+CAAe,CAAC;QAC7B,OAAO,EAAE;YACR;gBACC,iBAAiB,EAAE,sCAA+B,CAAC,OAAO;gBAC1D,OAAO,EAAE,IAAI;aACb;SACD;KACD,CAAC;;gEAC0C;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;4DAC1B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACzB;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;;sEAClB;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;kEAClB;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;;oEACnB","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { FrequencyConfig } from './frequency-configuration.model';\nimport { ServiceBookingRecurrencePattern } from '../../../../utilities/enum';\n\nexport class ServiceBookingSettings {\n\t@prop({\n\t\ttype: () => [FrequencyConfig],\n\t\tdefault: [\n\t\t\t{\n\t\t\t\trecurrencePattern: ServiceBookingRecurrencePattern.ONETIME,\n\t\t\t\tenabled: true,\n\t\t\t},\n\t\t],\n\t})\n\tpublic frequencyConfigs?: FrequencyConfig[];\n\n\t@prop({ type: Number, min: 30, max: 120, default: 30 })\n\tpublic slotInterval?: number; // minutes\n\n\t@prop({ type: Number, min: 0, max: 60, default: 0 })\n\tpublic bufferTime?: number; // minutes\n\n\t@prop({ type: Number, min: 0, max: 12000, default: 180 })\n\tpublic servicePreparationTime?: number; // minutes\n\n\t@prop({ type: Number, min: 1, max: 60, default: 14 })\n\tpublic maxAdvanceOrderDay?: number;\n\n\t@prop({ type: Number, min: 0, max: 4320, default: 360 })\n\tpublic autoUrgencyTimeLimit?: number; // minutes\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { Ref } from '@typegoose/typegoose';
2
2
  import { Admin } from '../admin.model';
3
- import { CourierOrderStatus, RequestFrom, ServiceOrderStatus } from '../../../../utilities/enum';
3
+ import { CourierOrderStatus, RequestFrom, ServiceBookingStatus } from '../../../../utilities/enum';
4
4
  import { User } from '../user.model';
5
5
  declare class StatusTimeline {
6
6
  timestamp?: Date;
@@ -16,7 +16,7 @@ export declare class RegularOrderStatusTimeline extends StatusTimeline {
16
16
  export declare class CourierOrderStatusTimeline extends StatusTimeline {
17
17
  status?: CourierOrderStatus;
18
18
  }
19
- export declare class ServiceOrderStatusTimeline extends StatusTimeline {
20
- status?: ServiceOrderStatus;
19
+ export declare class ServiceBookingStatusTimeline extends StatusTimeline {
20
+ status?: ServiceBookingStatus;
21
21
  }
22
22
  export {};
@@ -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.ServiceOrderStatusTimeline = exports.CourierOrderStatusTimeline = exports.RegularOrderStatusTimeline = void 0;
12
+ exports.ServiceBookingStatusTimeline = exports.CourierOrderStatusTimeline = exports.RegularOrderStatusTimeline = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const admin_model_1 = require("../admin.model");
15
15
  const enum_1 = require("../../../../utilities/enum");
@@ -68,12 +68,12 @@ __decorate([
68
68
  (0, typegoose_1.prop)({ type: String, enum: enum_1.CourierOrderStatus }),
69
69
  __metadata("design:type", String)
70
70
  ], CourierOrderStatusTimeline.prototype, "status", void 0);
71
- class ServiceOrderStatusTimeline extends StatusTimeline {
71
+ class ServiceBookingStatusTimeline extends StatusTimeline {
72
72
  status;
73
73
  }
74
- exports.ServiceOrderStatusTimeline = ServiceOrderStatusTimeline;
74
+ exports.ServiceBookingStatusTimeline = ServiceBookingStatusTimeline;
75
75
  __decorate([
76
- (0, typegoose_1.prop)({ type: String, enum: enum_1.ServiceOrderStatus }),
76
+ (0, typegoose_1.prop)({ type: String, enum: enum_1.ServiceBookingStatus }),
77
77
  __metadata("design:type", String)
78
- ], ServiceOrderStatusTimeline.prototype, "status", void 0);
78
+ ], ServiceBookingStatusTimeline.prototype, "status", void 0);
79
79
  //# sourceMappingURL=status-timeline.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"status-timeline.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/status-timeline.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAMoC;AACpC,8CAAqC;AAErC,MAAM,cAAc;IAEZ,SAAS,CAAQ;IAGjB,SAAS,CAAc;IAGvB,KAAK,CAAU;IAGf,WAAW,CAAe;CACjC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;8BACvB,IAAI;iDAAC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;iDACG;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAW,EAAE,CAAC;;mDACT;AAGlC,MAAa,0BAA2B,SAAQ,cAAc;IAKtD,MAAM,CAAU;IAMhB,YAAY,CAAU;IAGtB,IAAI,CAAa;CACxB;AAfD,gEAeC;AAVO;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;0DACqB;AAMhB;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;gEAC2B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;wDACF;AAGzB,MAAa,0BAA2B,SAAQ,cAAc;IAEtD,MAAM,CAAsB;CACnC;AAHD,gEAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAkB,EAAE,CAAC;;0DACd;AAGpC,MAAa,0BAA2B,SAAQ,cAAc;IAEtD,MAAM,CAAsB;CACnC;AAHD,gEAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAkB,EAAE,CAAC;;0DACd","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Admin } from '../admin.model';\nimport {\n\tCourierOrderStatus,\n\tRegularOrderStatus,\n\tRequestFrom,\n\tServiceOrderStatus,\n\tStatusTimelineType,\n} from '../../../../utilities/enum';\nimport { User } from '../user.model';\n\nclass StatusTimeline {\n\t@prop({ type: Date, default: new Date() })\n\tpublic timestamp?: Date; // scope for discussion to change the name to date\n\n\t@prop({ ref: () => Admin })\n\tpublic updatedBy?: Ref<Admin>;\n\n\t@prop({ type: String })\n\tpublic notes?: string;\n\n\t@prop({ type: String, enum: RequestFrom })\n\tpublic requestFrom?: RequestFrom;\n}\n\nexport class RegularOrderStatusTimeline extends StatusTimeline {\n\t@prop({\n\t\ttype: String,\n\t\tenum: RegularOrderStatus,\n\t})\n\tpublic status?: string;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: StatusTimelineType,\n\t})\n\tpublic timelineType?: string;\n\n\t@prop({ ref: () => User })\n\tpublic user?: Ref<User>;\n}\n\nexport class CourierOrderStatusTimeline extends StatusTimeline {\n\t@prop({ type: String, enum: CourierOrderStatus })\n\tpublic status?: CourierOrderStatus;\n}\n\nexport class ServiceOrderStatusTimeline extends StatusTimeline {\n\t@prop({ type: String, enum: ServiceOrderStatus })\n\tpublic status?: ServiceOrderStatus;\n}\n"]}
1
+ {"version":3,"file":"status-timeline.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/status-timeline.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAMoC;AACpC,8CAAqC;AAErC,MAAM,cAAc;IAEZ,SAAS,CAAQ;IAGjB,SAAS,CAAc;IAGvB,KAAK,CAAU;IAGf,WAAW,CAAe;CACjC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;8BACvB,IAAI;iDAAC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;iDACG;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAW,EAAE,CAAC;;mDACT;AAGlC,MAAa,0BAA2B,SAAQ,cAAc;IAKtD,MAAM,CAAU;IAMhB,YAAY,CAAU;IAGtB,IAAI,CAAa;CACxB;AAfD,gEAeC;AAVO;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;0DACqB;AAMhB;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;gEAC2B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;wDACF;AAGzB,MAAa,0BAA2B,SAAQ,cAAc;IAEtD,MAAM,CAAsB;CACnC;AAHD,gEAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAkB,EAAE,CAAC;;0DACd;AAGpC,MAAa,4BAA6B,SAAQ,cAAc;IAExD,MAAM,CAAwB;CACrC;AAHD,oEAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAAoB,EAAE,CAAC;;4DACd","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Admin } from '../admin.model';\nimport {\n\tCourierOrderStatus,\n\tRegularOrderStatus,\n\tRequestFrom,\n\tServiceBookingStatus,\n\tStatusTimelineType,\n} from '../../../../utilities/enum';\nimport { User } from '../user.model';\n\nclass StatusTimeline {\n\t@prop({ type: Date, default: new Date() })\n\tpublic timestamp?: Date; // scope for discussion to change the name to date\n\n\t@prop({ ref: () => Admin })\n\tpublic updatedBy?: Ref<Admin>;\n\n\t@prop({ type: String })\n\tpublic notes?: string;\n\n\t@prop({ type: String, enum: RequestFrom })\n\tpublic requestFrom?: RequestFrom;\n}\n\nexport class RegularOrderStatusTimeline extends StatusTimeline {\n\t@prop({\n\t\ttype: String,\n\t\tenum: RegularOrderStatus,\n\t})\n\tpublic status?: string;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: StatusTimelineType,\n\t})\n\tpublic timelineType?: string;\n\n\t@prop({ ref: () => User })\n\tpublic user?: Ref<User>;\n}\n\nexport class CourierOrderStatusTimeline extends StatusTimeline {\n\t@prop({ type: String, enum: CourierOrderStatus })\n\tpublic status?: CourierOrderStatus;\n}\n\nexport class ServiceBookingStatusTimeline extends StatusTimeline {\n\t@prop({ type: String, enum: ServiceBookingStatus })\n\tpublic status?: ServiceBookingStatus;\n}\n"]}