@lyxa.ai/core 1.4.84-alpha.1 → 1.4.84
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/profit.model.d.ts +2 -6
- package/dist/libraries/mongo/models/embedded/profit.model.js +4 -24
- package/dist/libraries/mongo/models/embedded/profit.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/service-booking-pricing.model.d.ts +0 -2
- package/dist/libraries/mongo/models/embedded/service-booking-pricing.model.js +0 -10
- package/dist/libraries/mongo/models/embedded/service-booking-pricing.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -13,10 +13,6 @@ export declare class RiderProfit extends CourierOrderProfit {
|
|
|
13
13
|
secondaryProfitFromTips?: number;
|
|
14
14
|
}
|
|
15
15
|
export declare class ServiceBookingProfit {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
profitFromReschedulingFee?: number;
|
|
19
|
-
secondaryProfitFromReschedulingFee?: number;
|
|
20
|
-
totalProfit?: number;
|
|
21
|
-
secondaryTotalProfit?: number;
|
|
16
|
+
profit?: number;
|
|
17
|
+
secondaryProfit?: number;
|
|
22
18
|
}
|
|
@@ -61,36 +61,16 @@ __decorate([
|
|
|
61
61
|
__metadata("design:type", Number)
|
|
62
62
|
], RiderProfit.prototype, "secondaryProfitFromTips", void 0);
|
|
63
63
|
class ServiceBookingProfit {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
profitFromReschedulingFee;
|
|
67
|
-
secondaryProfitFromReschedulingFee;
|
|
68
|
-
totalProfit;
|
|
69
|
-
secondaryTotalProfit;
|
|
64
|
+
profit;
|
|
65
|
+
secondaryProfit;
|
|
70
66
|
}
|
|
71
67
|
exports.ServiceBookingProfit = ServiceBookingProfit;
|
|
72
68
|
__decorate([
|
|
73
69
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
74
70
|
__metadata("design:type", Number)
|
|
75
|
-
], ServiceBookingProfit.prototype, "
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
78
|
-
__metadata("design:type", Number)
|
|
79
|
-
], ServiceBookingProfit.prototype, "secondaryProfitFromService", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
82
|
-
__metadata("design:type", Number)
|
|
83
|
-
], ServiceBookingProfit.prototype, "profitFromReschedulingFee", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
86
|
-
__metadata("design:type", Number)
|
|
87
|
-
], ServiceBookingProfit.prototype, "secondaryProfitFromReschedulingFee", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
90
|
-
__metadata("design:type", Number)
|
|
91
|
-
], ServiceBookingProfit.prototype, "totalProfit", void 0);
|
|
71
|
+
], ServiceBookingProfit.prototype, "profit", void 0);
|
|
92
72
|
__decorate([
|
|
93
73
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
94
74
|
__metadata("design:type", Number)
|
|
95
|
-
], ServiceBookingProfit.prototype, "
|
|
75
|
+
], ServiceBookingProfit.prototype, "secondaryProfit", void 0);
|
|
96
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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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"]}
|
|
@@ -8,8 +8,6 @@ export declare class ServiceBookingPricing extends TimeStamps {
|
|
|
8
8
|
secondaryDiscount?: number;
|
|
9
9
|
couponDiscount?: number;
|
|
10
10
|
secondaryCouponDiscount?: number;
|
|
11
|
-
reschedulingFee?: number;
|
|
12
|
-
secondaryReschedulingFee?: number;
|
|
13
11
|
total?: number;
|
|
14
12
|
secondaryTotal?: number;
|
|
15
13
|
wallet?: number;
|
|
@@ -21,8 +21,6 @@ class ServiceBookingPricing extends defaultClasses_1.TimeStamps {
|
|
|
21
21
|
secondaryDiscount;
|
|
22
22
|
couponDiscount;
|
|
23
23
|
secondaryCouponDiscount;
|
|
24
|
-
reschedulingFee;
|
|
25
|
-
secondaryReschedulingFee;
|
|
26
24
|
total;
|
|
27
25
|
secondaryTotal;
|
|
28
26
|
wallet;
|
|
@@ -65,14 +63,6 @@ __decorate([
|
|
|
65
63
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
66
64
|
__metadata("design:type", Number)
|
|
67
65
|
], ServiceBookingPricing.prototype, "secondaryCouponDiscount", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
70
|
-
__metadata("design:type", Number)
|
|
71
|
-
], ServiceBookingPricing.prototype, "reschedulingFee", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
74
|
-
__metadata("design:type", Number)
|
|
75
|
-
], ServiceBookingPricing.prototype, "secondaryReschedulingFee", void 0);
|
|
76
66
|
__decorate([
|
|
77
67
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
78
68
|
__metadata("design:type", Number)
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"service-booking-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-booking-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,4EAAqE;AAErE,MAAa,qBAAsB,SAAQ,2BAAU;IAE7C,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,YAAY,CAAU;IAGtB,qBAAqB,CAAU;IAG/B,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,cAAc,CAAU;IAGxB,uBAAuB,CAAU;IAGjC,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,sBA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E,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"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/types",
|
|
3
|
-
"version": "1.4.84
|
|
3
|
+
"version": "1.4.84",
|
|
4
4
|
"description": "Lyxa type definitions and validation schemas for both frontend and backend",
|
|
5
5
|
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|