@lyxa.ai/core 1.3.259 → 1.3.262

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 (104) hide show
  1. package/dist/libraries/event/EventEnums.d.ts +2 -1
  2. package/dist/libraries/event/EventEnums.js +1 -0
  3. package/dist/libraries/event/EventEnums.js.map +1 -1
  4. package/dist/libraries/event/events/index.d.ts +1 -0
  5. package/dist/libraries/event/events/index.js +18 -0
  6. package/dist/libraries/event/events/index.js.map +1 -0
  7. package/dist/libraries/event/events/order/order-created.event.d.ts +4 -0
  8. package/dist/libraries/event/events/order/order-created.event.js +8 -0
  9. package/dist/libraries/event/events/order/order-created.event.js.map +1 -0
  10. package/dist/libraries/event/events/punch-marketing/sync-user-shop-punch-marketing-history-event.d.ts +2 -2
  11. package/dist/libraries/event/events/rider/index.d.ts +1 -0
  12. package/dist/libraries/event/events/rider/index.js +18 -0
  13. package/dist/libraries/event/events/rider/index.js.map +1 -0
  14. package/dist/libraries/event/events/rider/scoring/index.d.ts +5 -0
  15. package/dist/libraries/event/events/rider/scoring/index.js +14 -0
  16. package/dist/libraries/event/events/rider/scoring/index.js.map +1 -0
  17. package/dist/libraries/event/events/rider/scoring/rider-accepted-order.event.d.ts +11 -0
  18. package/dist/libraries/event/events/rider/scoring/rider-accepted-order.event.js +21 -0
  19. package/dist/libraries/event/events/rider/scoring/rider-accepted-order.event.js.map +1 -0
  20. package/dist/libraries/event/events/rider/scoring/rider-arrived-at-store.event.d.ts +13 -0
  21. package/dist/libraries/event/events/rider/scoring/rider-arrived-at-store.event.js +25 -0
  22. package/dist/libraries/event/events/rider/scoring/rider-arrived-at-store.event.js.map +1 -0
  23. package/dist/libraries/event/events/rider/scoring/rider-delivered-order.event.d.ts +13 -0
  24. package/dist/libraries/event/events/rider/scoring/rider-delivered-order.event.js +25 -0
  25. package/dist/libraries/event/events/rider/scoring/rider-delivered-order.event.js.map +1 -0
  26. package/dist/libraries/event/events/rider/scoring/rider-rejected-order.event.d.ts +11 -0
  27. package/dist/libraries/event/events/rider/scoring/rider-rejected-order.event.js +21 -0
  28. package/dist/libraries/event/events/rider/scoring/rider-rejected-order.event.js.map +1 -0
  29. package/dist/libraries/event/events/rider/scoring/rider-score-event.d.ts +16 -0
  30. package/dist/libraries/event/events/rider/scoring/rider-score-event.js +23 -0
  31. package/dist/libraries/event/events/rider/scoring/rider-score-event.js.map +1 -0
  32. package/dist/libraries/event/events/sync-order-again-sections-for-shop-event.d.ts +2 -2
  33. package/dist/libraries/firebase/fcmService.js +7 -7
  34. package/dist/libraries/firebase/fcmService.js.map +1 -1
  35. package/dist/libraries/mongo/models/embedded/profit.model.js.map +1 -1
  36. package/dist/libraries/mongo/models/embedded/rider-statistics.d.ts +11 -0
  37. package/dist/libraries/mongo/models/embedded/rider-statistics.js +62 -0
  38. package/dist/libraries/mongo/models/embedded/rider-statistics.js.map +1 -0
  39. package/dist/libraries/mongo/models/embedded/service-line-item.model.d.ts +23 -0
  40. package/dist/libraries/mongo/models/embedded/service-line-item.model.js +95 -0
  41. package/dist/libraries/mongo/models/embedded/service-line-item.model.js.map +1 -0
  42. package/dist/libraries/mongo/models/embedded/service-order-cance.model.d.ts +1 -1
  43. package/dist/libraries/mongo/models/embedded/service-order-cance.model.js +1 -5
  44. package/dist/libraries/mongo/models/embedded/service-order-cance.model.js.map +1 -1
  45. package/dist/libraries/mongo/models/embedded/service-order-finance.model.d.ts +6 -7
  46. package/dist/libraries/mongo/models/embedded/service-order-finance.model.js +17 -18
  47. package/dist/libraries/mongo/models/embedded/service-order-finance.model.js.map +1 -1
  48. package/dist/libraries/mongo/models/embedded/service-order-flag.model.d.ts +4 -4
  49. package/dist/libraries/mongo/models/embedded/service-order-flag.model.js +12 -7
  50. package/dist/libraries/mongo/models/embedded/service-order-flag.model.js.map +1 -1
  51. package/dist/libraries/mongo/models/embedded/service-order-pricing.model.d.ts +9 -5
  52. package/dist/libraries/mongo/models/embedded/service-order-pricing.model.js +30 -10
  53. package/dist/libraries/mongo/models/embedded/service-order-pricing.model.js.map +1 -1
  54. package/dist/libraries/mongo/models/embedded/status-timeline.model.d.ts +3 -3
  55. package/dist/libraries/mongo/models/embedded/status-timeline.model.js +2 -9
  56. package/dist/libraries/mongo/models/embedded/status-timeline.model.js.map +1 -1
  57. package/dist/libraries/mongo/models/index.d.ts +0 -3
  58. package/dist/libraries/mongo/models/index.js +1 -5
  59. package/dist/libraries/mongo/models/index.js.map +1 -1
  60. package/dist/libraries/mongo/models/rider.model.d.ts +2 -0
  61. package/dist/libraries/mongo/models/rider.model.js +18 -0
  62. package/dist/libraries/mongo/models/rider.model.js.map +1 -1
  63. package/dist/libraries/mongo/models/service-addon.model.js +3 -3
  64. package/dist/libraries/mongo/models/service-addon.model.js.map +1 -1
  65. package/dist/libraries/mongo/models/service-cart.model.d.ts +6 -11
  66. package/dist/libraries/mongo/models/service-cart.model.js +15 -56
  67. package/dist/libraries/mongo/models/service-cart.model.js.map +1 -1
  68. package/dist/libraries/mongo/models/service-order.model.d.ts +33 -33
  69. package/dist/libraries/mongo/models/service-order.model.js +86 -89
  70. package/dist/libraries/mongo/models/service-order.model.js.map +1 -1
  71. package/dist/libraries/mongo/models/service-package.model.js +1 -1
  72. package/dist/libraries/mongo/models/service-package.model.js.map +1 -1
  73. package/dist/libraries/mongo/models/service-promotion.model.d.ts +7 -5
  74. package/dist/libraries/mongo/models/service-promotion.model.js +30 -24
  75. package/dist/libraries/mongo/models/service-promotion.model.js.map +1 -1
  76. package/dist/libraries/mongo/models/shared/duration.model.d.ts +10 -0
  77. package/dist/libraries/mongo/models/shared/duration.model.js +34 -2
  78. package/dist/libraries/mongo/models/shared/duration.model.js.map +1 -1
  79. package/dist/libraries/socket/events/order-actions.socket.event.d.ts +4 -4
  80. package/dist/libraries/trpc/middlewares/auth.d.ts +1 -1
  81. package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +1 -1
  82. package/dist/libraries/trpc/middlewares/phone-verified.d.ts +1 -1
  83. package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +1 -1
  84. package/dist/types/README.md +1 -1
  85. package/dist/types/package.json +1 -1
  86. package/dist/types/utilities/enum.d.ts +13 -5
  87. package/dist/types/utilities/enum.js +15 -5
  88. package/dist/types/utilities/enum.js.map +1 -1
  89. package/dist/types/utilities/validation/common-validation.d.ts +12 -12
  90. package/dist/utilities/app-instance.js +1 -1
  91. package/dist/utilities/app-instance.js.map +1 -1
  92. package/dist/utilities/enum.d.ts +13 -5
  93. package/dist/utilities/enum.js +15 -5
  94. package/dist/utilities/enum.js.map +1 -1
  95. package/package.json +1 -1
  96. package/dist/libraries/mongo/models/embedded/service-timer.model.d.ts +0 -5
  97. package/dist/libraries/mongo/models/embedded/service-timer.model.js +0 -32
  98. package/dist/libraries/mongo/models/embedded/service-timer.model.js.map +0 -1
  99. package/dist/libraries/mongo/models/service-line-item.model.d.ts +0 -19
  100. package/dist/libraries/mongo/models/service-line-item.model.js +0 -89
  101. package/dist/libraries/mongo/models/service-line-item.model.js.map +0 -1
  102. package/dist/libraries/mongo/models/shared/promotion-duration.model.d.ts +0 -11
  103. package/dist/libraries/mongo/models/shared/promotion-duration.model.js +0 -46
  104. package/dist/libraries/mongo/models/shared/promotion-duration.model.js.map +0 -1
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ServiceLineItem = exports.LineItemAddon = exports.ServicePackageSnap = void 0;
13
+ const typegoose_1 = require("@typegoose/typegoose");
14
+ const service_package_model_1 = require("../service-package.model");
15
+ const service_addon_model_1 = require("../service-addon.model");
16
+ class ServicePackageSnap {
17
+ name;
18
+ price;
19
+ image;
20
+ description;
21
+ }
22
+ exports.ServicePackageSnap = ServicePackageSnap;
23
+ __decorate([
24
+ (0, typegoose_1.prop)({ required: true, type: String }),
25
+ __metadata("design:type", String)
26
+ ], ServicePackageSnap.prototype, "name", void 0);
27
+ __decorate([
28
+ (0, typegoose_1.prop)({ required: true, type: Number }),
29
+ __metadata("design:type", Number)
30
+ ], ServicePackageSnap.prototype, "price", void 0);
31
+ __decorate([
32
+ (0, typegoose_1.prop)({ type: String }),
33
+ __metadata("design:type", String)
34
+ ], ServicePackageSnap.prototype, "image", void 0);
35
+ __decorate([
36
+ (0, typegoose_1.prop)({ type: String }),
37
+ __metadata("design:type", String)
38
+ ], ServicePackageSnap.prototype, "description", void 0);
39
+ class LineItemAddon {
40
+ addon;
41
+ name;
42
+ image;
43
+ price;
44
+ description;
45
+ quantity;
46
+ }
47
+ exports.LineItemAddon = LineItemAddon;
48
+ __decorate([
49
+ (0, typegoose_1.prop)({ required: true, ref: () => service_addon_model_1.ServiceAddon }),
50
+ __metadata("design:type", Object)
51
+ ], LineItemAddon.prototype, "addon", void 0);
52
+ __decorate([
53
+ (0, typegoose_1.prop)({ required: true, type: String }),
54
+ __metadata("design:type", String)
55
+ ], LineItemAddon.prototype, "name", void 0);
56
+ __decorate([
57
+ (0, typegoose_1.prop)({ type: String }),
58
+ __metadata("design:type", String)
59
+ ], LineItemAddon.prototype, "image", void 0);
60
+ __decorate([
61
+ (0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
62
+ __metadata("design:type", Number)
63
+ ], LineItemAddon.prototype, "price", void 0);
64
+ __decorate([
65
+ (0, typegoose_1.prop)({ type: String }),
66
+ __metadata("design:type", String)
67
+ ], LineItemAddon.prototype, "description", void 0);
68
+ __decorate([
69
+ (0, typegoose_1.prop)({ min: 1, default: 1 }),
70
+ __metadata("design:type", Number)
71
+ ], LineItemAddon.prototype, "quantity", void 0);
72
+ class ServiceLineItem {
73
+ servicePackage;
74
+ servicePackageSnap;
75
+ addons;
76
+ quantity;
77
+ }
78
+ exports.ServiceLineItem = ServiceLineItem;
79
+ __decorate([
80
+ (0, typegoose_1.prop)({ ref: () => service_package_model_1.ServicePackage }),
81
+ __metadata("design:type", Object)
82
+ ], ServiceLineItem.prototype, "servicePackage", void 0);
83
+ __decorate([
84
+ (0, typegoose_1.prop)({ type: ServicePackageSnap, _id: false }),
85
+ __metadata("design:type", ServicePackageSnap)
86
+ ], ServiceLineItem.prototype, "servicePackageSnap", void 0);
87
+ __decorate([
88
+ (0, typegoose_1.prop)({ type: () => [LineItemAddon], default: [], _id: false }),
89
+ __metadata("design:type", Array)
90
+ ], ServiceLineItem.prototype, "addons", void 0);
91
+ __decorate([
92
+ (0, typegoose_1.prop)({ min: 1, default: 1 }),
93
+ __metadata("design:type", Number)
94
+ ], ServiceLineItem.prototype, "quantity", void 0);
95
+ //# sourceMappingURL=service-line-item.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-line-item.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-line-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,oEAA0D;AAC1D,gEAAsD;AAEtD,MAAa,kBAAkB;IAEvB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,KAAK,CAAU;IAGf,WAAW,CAAU;CAC5B;AAZD,gDAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACK;AAG7B,MAAa,aAAa;IAElB,KAAK,CAAqB;IAG1B,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,KAAK,CAAU;IAGf,WAAW,CAAU;IAGrB,QAAQ,CAAU;CACzB;AAlBD,sCAkBC;AAhBO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;;4CACjB;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4CACzB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+CACJ;AAG1B,MAAa,eAAe;IAEpB,cAAc,CAAuB;IAGrC,kBAAkB,CAAsB;IAGxC,MAAM,CAAmB;IAGzB,QAAQ,CAAU;CACzB;AAZD,0CAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC;;uDACQ;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACnB,kBAAkB;2DAAC;AAGxC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;;+CAC/B;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACJ","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { ServicePackage } from '../service-package.model';\nimport { ServiceAddon } from '../service-addon.model';\n\nexport class ServicePackageSnap {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: Number })\n\tpublic price!: number;\n\n\t@prop({ type: String })\n\tpublic image?: string;\n\n\t@prop({ type: String })\n\tpublic description?: string;\n}\n\nexport class LineItemAddon {\n\t@prop({ required: true, ref: () => ServiceAddon })\n\tpublic addon!: Ref<ServiceAddon>;\n\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ type: String })\n\tpublic image?: string;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic price!: number;\n\n\t@prop({ type: String })\n\tpublic description?: string;\n\n\t@prop({ min: 1, default: 1 })\n\tpublic quantity?: number;\n}\n\nexport class ServiceLineItem {\n\t@prop({ ref: () => ServicePackage })\n\tpublic servicePackage?: Ref<ServicePackage>;\n\n\t@prop({ type: ServicePackageSnap, _id: false })\n\tpublic servicePackageSnap?: ServicePackageSnap;\n\n\t@prop({ type: () => [LineItemAddon], default: [], _id: false })\n\tpublic addons?: LineItemAddon[];\n\n\t@prop({ min: 1, default: 1 })\n\tpublic quantity?: number;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { ServiceOrderCanceledBy } from "../../../../utilities/enum";
1
+ import { ServiceOrderCanceledBy } from '../../../../utilities/enum';
2
2
  export declare class ServiceOrderCancel {
3
3
  canceledBy: ServiceOrderCanceledBy;
4
4
  cancelReason?: string;
@@ -18,11 +18,7 @@ class ServiceOrderCancel {
18
18
  }
19
19
  exports.ServiceOrderCancel = ServiceOrderCancel;
20
20
  __decorate([
21
- (0, typegoose_1.prop)({
22
- type: String,
23
- enum: enum_1.ServiceOrderCanceledBy,
24
- required: true
25
- }),
21
+ (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceOrderCanceledBy }),
26
22
  __metadata("design:type", String)
27
23
  ], ServiceOrderCancel.prototype, "canceledBy", void 0);
28
24
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"service-order-cance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-cance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAoE;AAEpE,MAAa,kBAAkB;IAM3B,UAAU,CAA0B;IAGpC,YAAY,CAAU;CACzB;AAVD,gDAUC;AAJG;IALC,IAAA,gBAAI,EAAC;QACF,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6BAAsB;QAC5B,QAAQ,EAAE,IAAI;KACjB,CAAC;;sDACkC;AAGpC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACD","sourcesContent":["import { prop } from \"@typegoose/typegoose\";\nimport { ServiceOrderCanceledBy } from \"../../../../utilities/enum\";\n\nexport class ServiceOrderCancel {\n @prop({\n type: String,\n enum: ServiceOrderCanceledBy,\n required: true\n })\n canceledBy!: ServiceOrderCanceledBy;\n\n @prop({ type: String })\n cancelReason?: string;\n}"]}
1
+ {"version":3,"file":"service-order-cance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-cance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAoE;AAEpE,MAAa,kBAAkB;IAEvB,UAAU,CAA0B;IAGpC,YAAY,CAAU;CAC7B;AAND,gDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAAsB,EAAE,CAAC;;sDAC1B;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACM","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ServiceOrderCanceledBy } from '../../../../utilities/enum';\n\nexport class ServiceOrderCancel {\n\t@prop({ required: true, type: String, enum: ServiceOrderCanceledBy })\n\tpublic canceledBy!: ServiceOrderCanceledBy;\n\n\t@prop({ type: String })\n\tpublic cancelReason?: string;\n}\n"]}
@@ -1,17 +1,16 @@
1
1
  import { Vat } from '../embedded/vat.model';
2
- import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
3
2
  import { ServiceOrderPricing } from './service-order-pricing.model';
4
3
  import { PaymentMethod } from '../../../../utilities/enum';
5
4
  import { PaymentInformation } from './payment-infromation.model';
6
5
  import { ServiceOrderProfit } from './profit.model';
7
6
  import { ServicePromotionCut } from './marketing-cut.model';
8
- export declare class ServiceOrderFinance extends TimeStamps {
9
- pricing: ServiceOrderPricing;
10
- companyProfit: ServiceOrderProfit;
11
- vendorProfit: ServiceOrderProfit;
12
- discount?: ServicePromotionCut;
7
+ export declare class ServiceOrderFinance {
13
8
  exchangeRate?: number;
14
- paymentMethod?: PaymentMethod;
9
+ paymentMethod: PaymentMethod;
15
10
  paymentInformation?: PaymentInformation;
11
+ pricing: ServiceOrderPricing;
12
+ companyProfit?: ServiceOrderProfit;
13
+ vendorProfit?: ServiceOrderProfit;
14
+ discount?: ServicePromotionCut;
16
15
  vat?: Vat;
17
16
  }
@@ -12,25 +12,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ServiceOrderFinance = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const vat_model_1 = require("../embedded/vat.model");
15
- const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
16
15
  const service_order_pricing_model_1 = require("./service-order-pricing.model");
17
16
  const enum_1 = require("../../../../utilities/enum");
18
17
  const payment_infromation_model_1 = require("./payment-infromation.model");
19
18
  const profit_model_1 = require("./profit.model");
20
19
  const marketing_cut_model_1 = require("./marketing-cut.model");
21
- class ServiceOrderFinance extends defaultClasses_1.TimeStamps {
20
+ class ServiceOrderFinance {
21
+ exchangeRate;
22
+ paymentMethod;
23
+ paymentInformation;
22
24
  pricing;
23
25
  companyProfit;
24
26
  vendorProfit;
25
27
  discount;
26
- exchangeRate;
27
- paymentMethod;
28
- paymentInformation;
29
28
  vat;
30
29
  }
31
30
  exports.ServiceOrderFinance = ServiceOrderFinance;
32
31
  __decorate([
33
- (0, typegoose_1.prop)({ required: true, type: () => service_order_pricing_model_1.ServiceOrderPricing }),
32
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
33
+ __metadata("design:type", Number)
34
+ ], ServiceOrderFinance.prototype, "exchangeRate", void 0);
35
+ __decorate([
36
+ (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.PaymentMethod }),
37
+ __metadata("design:type", String)
38
+ ], ServiceOrderFinance.prototype, "paymentMethod", void 0);
39
+ __decorate([
40
+ (0, typegoose_1.prop)({ type: () => payment_infromation_model_1.PaymentInformation, _id: false }),
41
+ __metadata("design:type", payment_infromation_model_1.PaymentInformation)
42
+ ], ServiceOrderFinance.prototype, "paymentInformation", void 0);
43
+ __decorate([
44
+ (0, typegoose_1.prop)({ required: true, type: () => service_order_pricing_model_1.ServiceOrderPricing, _id: false }),
34
45
  __metadata("design:type", service_order_pricing_model_1.ServiceOrderPricing)
35
46
  ], ServiceOrderFinance.prototype, "pricing", void 0);
36
47
  __decorate([
@@ -45,18 +56,6 @@ __decorate([
45
56
  (0, typegoose_1.prop)({ type: () => marketing_cut_model_1.ServicePromotionCut }),
46
57
  __metadata("design:type", marketing_cut_model_1.ServicePromotionCut)
47
58
  ], ServiceOrderFinance.prototype, "discount", void 0);
48
- __decorate([
49
- (0, typegoose_1.prop)({ type: Number, default: 1 }),
50
- __metadata("design:type", Number)
51
- ], ServiceOrderFinance.prototype, "exchangeRate", void 0);
52
- __decorate([
53
- (0, typegoose_1.prop)({ type: String, enum: enum_1.PaymentMethod, default: enum_1.PaymentMethod.CASH }),
54
- __metadata("design:type", String)
55
- ], ServiceOrderFinance.prototype, "paymentMethod", void 0);
56
- __decorate([
57
- (0, typegoose_1.prop)({ type: () => payment_infromation_model_1.PaymentInformation, _id: false }),
58
- __metadata("design:type", payment_infromation_model_1.PaymentInformation)
59
- ], ServiceOrderFinance.prototype, "paymentInformation", void 0);
60
59
  __decorate([
61
60
  (0, typegoose_1.prop)({ type: () => vat_model_1.Vat }),
62
61
  __metadata("design:type", vat_model_1.Vat)
@@ -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;AACpD,+DAA4D;AAE5D,MAAa,mBAAoB,SAAQ,2BAAU;IAE3C,OAAO,CAAsB;IAG7B,aAAa,CAAqB;IAGlC,YAAY,CAAqB;IAGjC,QAAQ,CAAuB;IAG/B,YAAY,CAAU;IAGtB,aAAa,CAAiB;IAG9B,kBAAkB,CAAsB;IAGxC,GAAG,CAAO;CACjB;AAxBD,kDAwBC;AAtBO;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,GAAG,EAAE,KAAK,EAAE,CAAC;8BACzB,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\nexport class ServiceOrderFinance extends TimeStamps {\n\t@prop({ required: true, type: () => ServiceOrderPricing })\n\tpublic pricing: ServiceOrderPricing;\n\n\t@prop({ type: () => ServiceOrderProfit })\n\tpublic companyProfit: ServiceOrderProfit;\n\n\t@prop({ type: () => ServiceOrderProfit })\n\tpublic vendorProfit: ServiceOrderProfit;\n\n\t@prop({ type: () => ServicePromotionCut })\n\tpublic discount?: ServicePromotionCut;\n\n\t@prop({ type: Number, default: 1 })\n\tpublic exchangeRate?: number;\n\n\t@prop({ type: String, enum: PaymentMethod, default: PaymentMethod.CASH })\n\tpublic paymentMethod?: PaymentMethod;\n\n\t@prop({ type: () => PaymentInformation, _id: false })\n\tpublic paymentInformation?: PaymentInformation;\n\n\t@prop({ type: () => Vat })\n\tpublic vat?: Vat;\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,+EAAoE;AACpE,qDAA2D;AAC3D,2EAAiE;AACjE,iDAAoD;AACpD,+DAA4D;AAE5D,MAAa,mBAAmB;IAExB,YAAY,CAAU;IAGtB,aAAa,CAAiB;IAG9B,kBAAkB,CAAsB;IAGxC,OAAO,CAAuB;IAG9B,aAAa,CAAsB;IAGnC,YAAY,CAAsB;IAGlC,QAAQ,CAAuB;IAG/B,GAAG,CAAO;CACjB;AAxBD,kDAwBC;AAtBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAa,EAAE,CAAC;;0DACvB;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACzB,8CAAkB;+DAAC;AAGxC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iDAAmB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACrD,iDAAmB;oDAAC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BAClB,iCAAkB;0DAAC;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BACnB,iCAAkB;yDAAC;AAGlC;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,GAAG,EAAE,CAAC,eAAG,EAAE,CAAC;8BACb,eAAG;gDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Vat } from '../embedded/vat.model';\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\nexport class ServiceOrderFinance {\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: () => ServiceOrderPricing, _id: false })\n\tpublic pricing!: ServiceOrderPricing;\n\n\t@prop({ type: () => ServiceOrderProfit })\n\tpublic companyProfit?: ServiceOrderProfit;\n\n\t@prop({ type: () => ServiceOrderProfit })\n\tpublic vendorProfit?: ServiceOrderProfit;\n\n\t@prop({ type: () => ServicePromotionCut })\n\tpublic discount?: ServicePromotionCut;\n\n\t@prop({ type: () => Vat })\n\tpublic vat?: Vat;\n}\n"]}
@@ -1,8 +1,8 @@
1
- import { Ref } from "@typegoose/typegoose";
2
- import { Vendor } from "../vendor.model";
1
+ import { ServiceOrderActionType } from '../../../../utilities/enum';
3
2
  export declare class ServiceOrderFlag {
4
3
  reason: string;
5
- flaggedBy: Ref<Vendor>;
4
+ actionType: ServiceOrderActionType;
6
5
  flaggedAt: Date;
7
- isResolved: boolean;
6
+ isResolved?: boolean;
7
+ resolvedAt?: Date;
8
8
  }
@@ -11,12 +11,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ServiceOrderFlag = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
- const vendor_model_1 = require("../vendor.model");
14
+ const enum_1 = require("../../../../utilities/enum");
15
15
  class ServiceOrderFlag {
16
16
  reason;
17
- flaggedBy;
17
+ actionType;
18
18
  flaggedAt;
19
19
  isResolved;
20
+ resolvedAt;
20
21
  }
21
22
  exports.ServiceOrderFlag = ServiceOrderFlag;
22
23
  __decorate([
@@ -24,15 +25,19 @@ __decorate([
24
25
  __metadata("design:type", String)
25
26
  ], ServiceOrderFlag.prototype, "reason", void 0);
26
27
  __decorate([
27
- (0, typegoose_1.prop)({ ref: () => vendor_model_1.Vendor, required: true }),
28
- __metadata("design:type", Object)
29
- ], ServiceOrderFlag.prototype, "flaggedBy", void 0);
28
+ (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceOrderActionType }),
29
+ __metadata("design:type", String)
30
+ ], ServiceOrderFlag.prototype, "actionType", void 0);
30
31
  __decorate([
31
- (0, typegoose_1.prop)({ default: Date.now }),
32
+ (0, typegoose_1.prop)({ type: Date, default: Date.now }),
32
33
  __metadata("design:type", Date)
33
34
  ], ServiceOrderFlag.prototype, "flaggedAt", void 0);
34
35
  __decorate([
35
- (0, typegoose_1.prop)({ default: false }),
36
+ (0, typegoose_1.prop)({ type: Boolean, default: false }),
36
37
  __metadata("design:type", Boolean)
37
38
  ], ServiceOrderFlag.prototype, "isResolved", void 0);
39
+ __decorate([
40
+ (0, typegoose_1.prop)({ type: Date }),
41
+ __metadata("design:type", Date)
42
+ ], ServiceOrderFlag.prototype, "resolvedAt", void 0);
38
43
  //# sourceMappingURL=service-order-flag.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-order-flag.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-flag.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,kDAAyC;AAEzC,MAAa,gBAAgB;IAElB,MAAM,CAAU;IAGhB,SAAS,CAAc;IAGvB,SAAS,CAAQ;IAGjB,UAAU,CAAW;CAC/B;AAZD,4CAYC;AAVU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACF;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACd;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;8BACT,IAAI;mDAAC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;oDACG","sourcesContent":["import { prop, Ref } from \"@typegoose/typegoose\";\nimport { Vendor } from \"../vendor.model\";\n\nexport class ServiceOrderFlag {\n @prop({ required: true })\n public reason!: string;\n\n @prop({ ref: () => Vendor, required: true })\n public flaggedBy!: Ref<Vendor>\n\n @prop({ default: Date.now })\n public flaggedAt!: Date;\n\n @prop({ default: false })\n public isResolved!: boolean;\n}"]}
1
+ {"version":3,"file":"service-order-flag.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-flag.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAoE;AAEpE,MAAa,gBAAgB;IAErB,MAAM,CAAU;IAGhB,UAAU,CAA0B;IAGpC,SAAS,CAAQ;IAGjB,UAAU,CAAW;IAGrB,UAAU,CAAQ;CACzB;AAfD,4CAeC;AAbO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACF;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAAsB,EAAE,CAAC;;oDAC1B;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;8BACrB,IAAI;mDAAC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;oDACZ;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACD,IAAI;oDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ServiceOrderActionType } from '../../../../utilities/enum';\n\nexport class ServiceOrderFlag {\n\t@prop({ required: true })\n\tpublic reason!: string;\n\n\t@prop({ required: true, type: String, enum: ServiceOrderActionType })\n\tpublic actionType!: ServiceOrderActionType;\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,13 +1,17 @@
1
1
  import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
2
2
  export declare class ServiceOrderPricing extends TimeStamps {
3
- subtotal: number;
3
+ subtotal?: number;
4
4
  secondarySubtotal?: number;
5
- total: number;
6
- secondaryTotal?: number;
7
- paidAmount?: number;
8
- secondaryPaidAmount?: number;
9
5
  discount?: number;
10
6
  secondaryDiscount?: number;
11
7
  materialCost?: number;
12
8
  secondaryMaterialCost?: number;
9
+ total?: number;
10
+ secondaryTotal?: number;
11
+ wallet?: number;
12
+ secondaryWallet?: number;
13
+ reserveWallet?: number;
14
+ secondaryReserveWallet?: number;
15
+ paidAmount?: number;
16
+ secondaryPaidAmount?: number;
13
17
  }
@@ -15,14 +15,18 @@ const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
15
15
  class ServiceOrderPricing extends defaultClasses_1.TimeStamps {
16
16
  subtotal;
17
17
  secondarySubtotal;
18
- total;
19
- secondaryTotal;
20
- paidAmount;
21
- secondaryPaidAmount;
22
18
  discount;
23
19
  secondaryDiscount;
24
20
  materialCost;
25
21
  secondaryMaterialCost;
22
+ total;
23
+ secondaryTotal;
24
+ wallet;
25
+ secondaryWallet;
26
+ reserveWallet;
27
+ secondaryReserveWallet;
28
+ paidAmount;
29
+ secondaryPaidAmount;
26
30
  }
27
31
  exports.ServiceOrderPricing = ServiceOrderPricing;
28
32
  __decorate([
@@ -33,6 +37,22 @@ __decorate([
33
37
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
34
38
  __metadata("design:type", Number)
35
39
  ], ServiceOrderPricing.prototype, "secondarySubtotal", void 0);
40
+ __decorate([
41
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
42
+ __metadata("design:type", Number)
43
+ ], ServiceOrderPricing.prototype, "discount", void 0);
44
+ __decorate([
45
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
46
+ __metadata("design:type", Number)
47
+ ], ServiceOrderPricing.prototype, "secondaryDiscount", void 0);
48
+ __decorate([
49
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
50
+ __metadata("design:type", Number)
51
+ ], ServiceOrderPricing.prototype, "materialCost", void 0);
52
+ __decorate([
53
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
54
+ __metadata("design:type", Number)
55
+ ], ServiceOrderPricing.prototype, "secondaryMaterialCost", void 0);
36
56
  __decorate([
37
57
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
38
58
  __metadata("design:type", Number)
@@ -44,25 +64,25 @@ __decorate([
44
64
  __decorate([
45
65
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
46
66
  __metadata("design:type", Number)
47
- ], ServiceOrderPricing.prototype, "paidAmount", void 0);
67
+ ], ServiceOrderPricing.prototype, "wallet", void 0);
48
68
  __decorate([
49
69
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
50
70
  __metadata("design:type", Number)
51
- ], ServiceOrderPricing.prototype, "secondaryPaidAmount", void 0);
71
+ ], ServiceOrderPricing.prototype, "secondaryWallet", void 0);
52
72
  __decorate([
53
73
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
54
74
  __metadata("design:type", Number)
55
- ], ServiceOrderPricing.prototype, "discount", void 0);
75
+ ], ServiceOrderPricing.prototype, "reserveWallet", void 0);
56
76
  __decorate([
57
77
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
58
78
  __metadata("design:type", Number)
59
- ], ServiceOrderPricing.prototype, "secondaryDiscount", void 0);
79
+ ], ServiceOrderPricing.prototype, "secondaryReserveWallet", void 0);
60
80
  __decorate([
61
81
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
62
82
  __metadata("design:type", Number)
63
- ], ServiceOrderPricing.prototype, "materialCost", void 0);
83
+ ], ServiceOrderPricing.prototype, "paidAmount", void 0);
64
84
  __decorate([
65
85
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
66
86
  __metadata("design:type", Number)
67
- ], ServiceOrderPricing.prototype, "secondaryMaterialCost", void 0);
87
+ ], ServiceOrderPricing.prototype, "secondaryPaidAmount", void 0);
68
88
  //# sourceMappingURL=service-order-pricing.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,4EAAqE;AAGrE,MAAa,mBAAoB,SAAQ,2BAAU;IAE/C,QAAQ,CAAS;IAGjB,iBAAiB,CAAU;IAG3B,KAAK,CAAS;IAGd,cAAc,CAAU;IAGxB,UAAU,CAAU;IAGpB,mBAAmB,CAAU;IAG7B,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,YAAY,CAAU;IAGtB,qBAAqB,CAAU;CAElC;AA/BD,kDA+BC;AA7BG;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDAClB;AAGjB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8DACR;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDACrB;AAGd;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2DACX;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACf;AAGpB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gEACN;AAG7B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACjB;AAGlB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8DACR;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACb;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kEACJ","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\n\n\nexport class ServiceOrderPricing extends TimeStamps {\n @prop({ type: Number, default: 0 })\n subtotal: number;\n\n @prop({ type: Number, default: 0 })\n secondarySubtotal?: number;\n\n @prop({ type: Number, default: 0 })\n total: number;\n\n @prop({ type: Number, default: 0 })\n secondaryTotal?: number;\n\n @prop({ type: Number, default: 0 })\n paidAmount?: number;\n\n @prop({ type: Number, default: 0 })\n secondaryPaidAmount?: number;\n\n @prop({ type: Number, default: 0 })\n discount?: number;\n\n @prop({ type: Number, default: 0 })\n secondaryDiscount?: number;\n\n @prop({ type: Number, default: 0 })\n materialCost?: number;\n\n @prop({ type: Number, default: 0 })\n secondaryMaterialCost?: number;\n\n}\n"]}
1
+ {"version":3,"file":"service-order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,4EAAqE;AAErE,MAAa,mBAAoB,SAAQ,2BAAU;IAE3C,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,YAAY,CAAU;IAGtB,qBAAqB,CAAU;IAG/B,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,kDA0CC;AAxCO;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;;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;;yDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kEACG;AAG/B;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;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACZ;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACH;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL;AAGvB;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;;uDACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gEACC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\n\nexport class ServiceOrderPricing 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 discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryDiscount?: 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 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,6 +1,6 @@
1
1
  import { Ref } from '@typegoose/typegoose';
2
2
  import { Admin } from '../admin.model';
3
- import { RequestFrom } from '../../../../utilities/enum';
3
+ import { CourierOrderStatus, RequestFrom, ServiceOrderStatus } from '../../../../utilities/enum';
4
4
  import { User } from '../user.model';
5
5
  declare class StatusTimeline {
6
6
  timestamp?: Date;
@@ -14,9 +14,9 @@ export declare class RegularOrderStatusTimeline extends StatusTimeline {
14
14
  user?: Ref<User>;
15
15
  }
16
16
  export declare class CourierOrderStatusTimeline extends StatusTimeline {
17
- status?: string;
17
+ status?: CourierOrderStatus;
18
18
  }
19
19
  export declare class ServiceOrderStatusTimeline extends StatusTimeline {
20
- status?: string;
20
+ status?: ServiceOrderStatus;
21
21
  }
22
22
  export {};
@@ -65,10 +65,7 @@ class CourierOrderStatusTimeline extends StatusTimeline {
65
65
  }
66
66
  exports.CourierOrderStatusTimeline = CourierOrderStatusTimeline;
67
67
  __decorate([
68
- (0, typegoose_1.prop)({
69
- type: String,
70
- enum: enum_1.CourierOrderStatus,
71
- }),
68
+ (0, typegoose_1.prop)({ type: String, enum: enum_1.CourierOrderStatus }),
72
69
  __metadata("design:type", String)
73
70
  ], CourierOrderStatusTimeline.prototype, "status", void 0);
74
71
  class ServiceOrderStatusTimeline extends StatusTimeline {
@@ -76,11 +73,7 @@ class ServiceOrderStatusTimeline extends StatusTimeline {
76
73
  }
77
74
  exports.ServiceOrderStatusTimeline = ServiceOrderStatusTimeline;
78
75
  __decorate([
79
- (0, typegoose_1.prop)({
80
- type: String,
81
- enum: enum_1.ServiceOrderStatus,
82
- default: enum_1.ServiceOrderStatus.PENDING,
83
- }),
76
+ (0, typegoose_1.prop)({ type: String, enum: enum_1.ServiceOrderStatus }),
84
77
  __metadata("design:type", String)
85
78
  ], ServiceOrderStatusTimeline.prototype, "status", void 0);
86
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;IAKtD,MAAM,CAAU;CACvB;AAND,gEAMC;AADO;IAJN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;0DACqB;AAGxB,MAAa,0BAA2B,SAAQ,cAAc;IAMtD,MAAM,CAAU;CACvB;AAPD,gEAOC;AADO;IALN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;QACxB,OAAO,EAAE,yBAAkB,CAAC,OAAO;KACnC,CAAC;;0DACqB","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({\n\t\ttype: String,\n\t\tenum: CourierOrderStatus,\n\t})\n\tpublic status?: string;\n}\n\nexport class ServiceOrderStatusTimeline extends StatusTimeline {\n\t@prop({\n\t\ttype: String,\n\t\tenum: ServiceOrderStatus,\n\t\tdefault: ServiceOrderStatus.PENDING,\n\t})\n\tpublic status?: string;\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,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,4 +1,3 @@
1
- import { ServiceLineItem } from './service-line-item.model';
2
1
  import { RiderPayout } from './providers/rider-payout.model';
3
2
  import { ShopPayout } from './providers/shop-payout.model';
4
3
  import { ReturnModelType } from '@typegoose/typegoose';
@@ -312,8 +311,6 @@ export declare const ProfessionalModel: ReturnModelType<typeof Professional>;
312
311
  export * from './professional.model';
313
312
  export declare const ServiceCartModel: ReturnModelType<typeof ServiceCart>;
314
313
  export * from './service-cart.model';
315
- export declare const ServiceLineItemModel: ReturnModelType<typeof ServiceLineItem>;
316
- export * from './service-line-item.model';
317
314
  export declare const ServiceOrderModel: ReturnModelType<typeof ServiceOrder>;
318
315
  export * from './service-order.model';
319
316
  export declare const ProfessionalBlockedTimeModel: ReturnModelType<typeof ProfessionalBlockedTime>;
@@ -15,8 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.ShopPayoutModel = exports.PayoutModel = exports.ParentModel = exports.ShopCourierOrderModel = exports.CourierOrderModel = exports.RegularOrderModel = exports.OrderModel = exports.NutritionModel = exports.NotificationModel = exports.MealPlanModel = exports.PunchMarketingModel = exports.FreeDeliveryMarketingModel = exports.FeaturedMarketingModel = exports.DiscountMarketingModel = exports.Buy1Get1MarketingModel = exports.MarketingModel = exports.ListContainerModel = exports.LineItemModel = exports.GalleryUploadModel = exports.GalleryModel = exports.FlagModel = exports.FinanceSettlementModel = exports.FilterContainerModel = exports.FeaturedSettingModel = exports.FavouriteModel = exports.DishModel = exports.DealSettingModel = exports.ReferralRewardCouponModel = exports.ReferralCodeCouponModel = exports.IndividualUserCouponModel = exports.IndividualStoreCouponModel = exports.ShopsCategoriesCouponModel = exports.GlobalCouponModel = exports.CustomCouponModel = exports.BaseCouponModel = exports.CouponModel = exports.CounterModel = exports.CategoryModel = exports.CartParticipantModel = exports.CartModel = exports.ServiceControlModel = exports.AppAppearanceModel = exports.BrandModel = exports.BOBFinanceModel = exports.BannerModel = exports.AttributeModel = exports.UserAppSectionSettingModel = exports.AdminModel = exports.AdminAccessControlModel = exports.ActivityLogModel = void 0;
18
- exports.ZoneExtraTimeModel = exports.LoggerModel = exports.ServicePromotionModel = exports.TicketActionModel = exports.ProfessionalBlockedTimeModel = exports.ServiceOrderModel = exports.ServiceLineItemModel = exports.ServiceCartModel = exports.ProfessionalModel = exports.ServicePackageModel = exports.ServiceAddonModel = exports.ServiceCategoryModel = exports.VendorAccessControlModel = exports.VendorModel = exports.VendorParentModel = exports.ServiceModel = exports.ChatroomModel = exports.AgentPerformanceModel = exports.MessageModel = exports.TicketModel = exports.RewardModel = exports.CancellationReasonModel = exports.SupportReasonModel = exports.TermsAndConditionsModel = exports.DefaultChatModel = exports.ZoneModel = exports.UserModel = exports.TagModel = exports.SubscriptionModel = exports.ShopModel = exports.ShopMealPlanModel = exports.ShopCategoryModel = exports.ShopAccessControlModel = exports.SettingModel = exports.RiderModel = exports.RiderTrackingModel = exports.RiderTimeoutModel = exports.ServiceOrderReviewModel = exports.RiderReviewModel = exports.ShopReviewModel = exports.ReviewModel = exports.RequestAreaModel = exports.ReferralSettingModel = exports.RatingSettingModel = exports.PunchMarketingHistoryModel = exports.ProductUploadModel = exports.ProductModel = exports.ProductStockTrackerModel = exports.ProductMarketingModel = exports.RiderPayoutModel = void 0;
19
- exports.AppInstanceModel = void 0;
18
+ exports.AppInstanceModel = exports.ZoneExtraTimeModel = exports.LoggerModel = exports.ServicePromotionModel = exports.TicketActionModel = exports.ProfessionalBlockedTimeModel = exports.ServiceOrderModel = exports.ServiceCartModel = exports.ProfessionalModel = exports.ServicePackageModel = exports.ServiceAddonModel = exports.ServiceCategoryModel = exports.VendorAccessControlModel = exports.VendorModel = exports.VendorParentModel = exports.ServiceModel = exports.ChatroomModel = exports.AgentPerformanceModel = exports.MessageModel = exports.TicketModel = exports.RewardModel = exports.CancellationReasonModel = exports.SupportReasonModel = exports.TermsAndConditionsModel = exports.DefaultChatModel = exports.ZoneModel = exports.UserModel = exports.TagModel = exports.SubscriptionModel = exports.ShopModel = exports.ShopMealPlanModel = exports.ShopCategoryModel = exports.ShopAccessControlModel = exports.SettingModel = exports.RiderModel = exports.RiderTrackingModel = exports.RiderTimeoutModel = exports.ServiceOrderReviewModel = exports.RiderReviewModel = exports.ShopReviewModel = exports.ReviewModel = exports.RequestAreaModel = exports.ReferralSettingModel = exports.RatingSettingModel = exports.PunchMarketingHistoryModel = exports.ProductUploadModel = exports.ProductModel = exports.ProductStockTrackerModel = exports.ProductMarketingModel = exports.RiderPayoutModel = void 0;
20
19
  exports.getCoreAuthIdentityModel = getCoreAuthIdentityModel;
21
20
  exports.getCoreEmailAuthIdentityModel = getCoreEmailAuthIdentityModel;
22
21
  exports.getCorePhoneAuthIdentityModel = getCorePhoneAuthIdentityModel;
@@ -26,7 +25,6 @@ exports.getCoreUserModel = getCoreUserModel;
26
25
  exports.getCardModel = getCardModel;
27
26
  exports.getPaymentIntentModel = getPaymentIntentModel;
28
27
  exports.initializeGlobalModels = initializeGlobalModels;
29
- const service_line_item_model_1 = require("./service-line-item.model");
30
28
  const rider_payout_model_1 = require("./providers/rider-payout.model");
31
29
  const shop_payout_model_1 = require("./providers/shop-payout.model");
32
30
  const typegoose_1 = require("@typegoose/typegoose");
@@ -398,8 +396,6 @@ exports.ProfessionalModel = (0, typegoose_1.getModelForClass)(professional_model
398
396
  __exportStar(require("./professional.model"), exports);
399
397
  exports.ServiceCartModel = (0, typegoose_1.getModelForClass)(service_cart_model_1.ServiceCart);
400
398
  __exportStar(require("./service-cart.model"), exports);
401
- exports.ServiceLineItemModel = (0, typegoose_1.getModelForClass)(service_line_item_model_1.ServiceLineItem);
402
- __exportStar(require("./service-line-item.model"), exports);
403
399
  exports.ServiceOrderModel = (0, typegoose_1.getModelForClass)(service_order_model_1.ServiceOrder);
404
400
  __exportStar(require("./service-order.model"), exports);
405
401
  exports.ProfessionalBlockedTimeModel = (0, typegoose_1.getModelForClass)(professional_blocked_time_model_1.ProfessionalBlockedTime);