@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.
- package/dist/libraries/mongo/models/embedded/frequency-configuration.model.d.ts +2 -2
- package/dist/libraries/mongo/models/embedded/frequency-configuration.model.js +1 -1
- package/dist/libraries/mongo/models/embedded/frequency-configuration.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/profit.model.d.ts +1 -1
- package/dist/libraries/mongo/models/embedded/profit.model.js +5 -5
- package/dist/libraries/mongo/models/embedded/profit.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/service-booking-cancel.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/{service-order-cance.model.js → service-booking-cancel.model.js} +7 -7
- package/dist/libraries/mongo/models/embedded/service-booking-cancel.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/{service-order-finance.model.d.ts → service-booking-finance.model.d.ts} +7 -7
- package/dist/libraries/mongo/models/embedded/{service-order-finance.model.js → service-booking-finance.model.js} +22 -22
- package/dist/libraries/mongo/models/embedded/service-booking-finance.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/service-booking-flag.model.d.ts +8 -0
- package/dist/libraries/mongo/models/embedded/{service-order-flag.model.js → service-booking-flag.model.js} +10 -10
- package/dist/libraries/mongo/models/embedded/service-booking-flag.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/{service-order-pricing.model.d.ts → service-booking-pricing.model.d.ts} +1 -1
- package/dist/libraries/mongo/models/embedded/{service-order-pricing.model.js → service-booking-pricing.model.js} +20 -20
- package/dist/libraries/mongo/models/embedded/service-booking-pricing.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/{service-order-settings.model.d.ts → service-booking-settings.model.d.ts} +1 -1
- package/dist/libraries/mongo/models/embedded/{service-order-settings.model.js → service-booking-settings.model.js} +12 -15
- package/dist/libraries/mongo/models/embedded/service-booking-settings.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/status-timeline.model.d.ts +3 -3
- package/dist/libraries/mongo/models/embedded/status-timeline.model.js +5 -5
- package/dist/libraries/mongo/models/embedded/status-timeline.model.js.map +1 -1
- package/dist/libraries/mongo/models/index.d.ts +6 -6
- package/dist/libraries/mongo/models/index.js +7 -7
- package/dist/libraries/mongo/models/index.js.map +1 -1
- package/dist/libraries/mongo/models/providers/{service-order-review.model.d.ts → service-booking-review.model.d.ts} +3 -3
- package/dist/libraries/mongo/models/providers/{service-order-review.model.js → service-booking-review.model.js} +9 -9
- package/dist/libraries/mongo/models/providers/service-booking-review.model.js.map +1 -0
- package/dist/libraries/mongo/models/review.model.js +1 -1
- package/dist/libraries/mongo/models/review.model.js.map +1 -1
- package/dist/libraries/mongo/models/{service-order.model.d.ts → service-booking.model.d.ts} +12 -12
- package/dist/libraries/mongo/models/{service-order.model.js → service-booking.model.js} +52 -52
- package/dist/libraries/mongo/models/service-booking.model.js.map +1 -0
- package/dist/libraries/mongo/models/vendor.model.d.ts +2 -3
- package/dist/libraries/mongo/models/vendor.model.js +3 -8
- package/dist/libraries/mongo/models/vendor.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/enum.d.ts +8 -7
- package/dist/types/utilities/enum.js +35 -34
- package/dist/types/utilities/enum.js.map +1 -1
- package/dist/utilities/enum.d.ts +8 -7
- package/dist/utilities/enum.js +35 -34
- package/dist/utilities/enum.js.map +1 -1
- package/dist/utilities/map.d.ts +2 -2
- package/dist/utilities/map.js +5 -5
- package/dist/utilities/map.js.map +1 -1
- package/package.json +1 -1
- package/dist/libraries/mongo/models/embedded/service-order-cance.model.d.ts +0 -5
- package/dist/libraries/mongo/models/embedded/service-order-cance.model.js.map +0 -1
- package/dist/libraries/mongo/models/embedded/service-order-finance.model.js.map +0 -1
- package/dist/libraries/mongo/models/embedded/service-order-flag.model.d.ts +0 -8
- package/dist/libraries/mongo/models/embedded/service-order-flag.model.js.map +0 -1
- package/dist/libraries/mongo/models/embedded/service-order-pricing.model.js.map +0 -1
- package/dist/libraries/mongo/models/embedded/service-order-settings.model.js.map +0 -1
- package/dist/libraries/mongo/models/providers/service-order-review.model.js.map +0 -1
- package/dist/libraries/mongo/models/service-order.model.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ServiceBookingRecurrencePattern, ValueType } from '../../../../utilities/enum';
|
|
2
2
|
export declare class FrequencyConfig {
|
|
3
|
-
recurrencePattern:
|
|
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.
|
|
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,
|
|
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
|
|
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.
|
|
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
|
|
63
|
+
class ServiceBookingProfit {
|
|
64
64
|
profit;
|
|
65
65
|
secondaryProfit;
|
|
66
66
|
}
|
|
67
|
-
exports.
|
|
67
|
+
exports.ServiceBookingProfit = ServiceBookingProfit;
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
70
70
|
__metadata("design:type", Number)
|
|
71
|
-
],
|
|
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
|
-
],
|
|
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,E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,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"]}
|
|
@@ -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.
|
|
12
|
+
exports.ServiceBookingCancel = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
-
class
|
|
15
|
+
class ServiceBookingCancel {
|
|
16
16
|
canceledBy;
|
|
17
17
|
cancelReason;
|
|
18
18
|
}
|
|
19
|
-
exports.
|
|
19
|
+
exports.ServiceBookingCancel = ServiceBookingCancel;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.
|
|
21
|
+
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceBookingCanceledBy }),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
23
|
+
], ServiceBookingCancel.prototype, "canceledBy", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, typegoose_1.prop)({ type: String }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
28
|
-
//# sourceMappingURL=service-
|
|
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 '
|
|
2
|
-
import {
|
|
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 {
|
|
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
|
|
8
|
+
export declare class ServiceBookingFinance {
|
|
9
9
|
exchangeRate?: number;
|
|
10
10
|
paymentMethod: PaymentMethod;
|
|
11
11
|
paymentInformation?: PaymentInformation;
|
|
12
|
-
pricing:
|
|
13
|
-
companyProfit?:
|
|
14
|
-
vendorProfit?:
|
|
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.
|
|
12
|
+
exports.ServiceBookingFinance = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
-
const vat_model_1 = require("
|
|
15
|
-
const
|
|
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
|
|
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.
|
|
33
|
+
exports.ServiceBookingFinance = ServiceBookingFinance;
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
36
36
|
__metadata("design:type", Number)
|
|
37
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
45
|
+
], ServiceBookingFinance.prototype, "paymentInformation", void 0);
|
|
46
46
|
__decorate([
|
|
47
|
-
(0, typegoose_1.prop)({ required: true, type: () =>
|
|
48
|
-
__metadata("design:type",
|
|
49
|
-
],
|
|
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.
|
|
52
|
-
__metadata("design:type", profit_model_1.
|
|
53
|
-
],
|
|
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.
|
|
56
|
-
__metadata("design:type", profit_model_1.
|
|
57
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
74
|
-
//# sourceMappingURL=service-
|
|
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,sD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AAI,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"]}
|
|
@@ -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.
|
|
12
|
+
exports.ServiceBookingFlag = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
-
class
|
|
15
|
+
class ServiceBookingFlag {
|
|
16
16
|
reason;
|
|
17
17
|
actionType;
|
|
18
18
|
flaggedAt;
|
|
19
19
|
isResolved;
|
|
20
20
|
resolvedAt;
|
|
21
21
|
}
|
|
22
|
-
exports.
|
|
22
|
+
exports.ServiceBookingFlag = ServiceBookingFlag;
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, typegoose_1.prop)({ required: true }),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
26
|
+
], ServiceBookingFlag.prototype, "reason", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.
|
|
28
|
+
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceBookingActionType }),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
38
|
+
], ServiceBookingFlag.prototype, "isResolved", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, typegoose_1.prop)({ type: Date }),
|
|
41
41
|
__metadata("design:type", Date)
|
|
42
|
-
],
|
|
43
|
-
//# sourceMappingURL=service-
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
33
|
+
exports.ServiceBookingPricing = ServiceBookingPricing;
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
36
36
|
__metadata("design:type", Number)
|
|
37
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
98
|
-
//# sourceMappingURL=service-
|
|
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,CA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AAE,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"]}
|
|
@@ -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.
|
|
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
|
-
|
|
16
|
+
class ServiceBookingSettings {
|
|
17
17
|
frequencyConfigs;
|
|
18
18
|
slotInterval;
|
|
19
19
|
bufferTime;
|
|
20
20
|
servicePreparationTime;
|
|
21
21
|
maxAdvanceOrderDay;
|
|
22
22
|
autoUrgencyTimeLimit;
|
|
23
|
-
}
|
|
24
|
-
exports.
|
|
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.
|
|
30
|
+
recurrencePattern: enum_1.ServiceBookingRecurrencePattern.ONETIME,
|
|
31
31
|
enabled: true,
|
|
32
32
|
},
|
|
33
33
|
],
|
|
34
34
|
}),
|
|
35
35
|
__metadata("design:type", Array)
|
|
36
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
57
|
-
|
|
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,
|
|
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
|
|
20
|
-
status?:
|
|
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.
|
|
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
|
|
71
|
+
class ServiceBookingStatusTimeline extends StatusTimeline {
|
|
72
72
|
status;
|
|
73
73
|
}
|
|
74
|
-
exports.
|
|
74
|
+
exports.ServiceBookingStatusTimeline = ServiceBookingStatusTimeline;
|
|
75
75
|
__decorate([
|
|
76
|
-
(0, typegoose_1.prop)({ type: String, enum: enum_1.
|
|
76
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.ServiceBookingStatus }),
|
|
77
77
|
__metadata("design:type", String)
|
|
78
|
-
],
|
|
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,
|
|
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"]}
|