@lyxa.ai/core 1.3.286 → 1.3.288
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/marketing-cut.model.d.ts +7 -0
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.js +29 -1
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/service-order-finance.model.d.ts +2 -1
- package/dist/libraries/mongo/models/embedded/service-order-finance.model.js +5 -0
- package/dist/libraries/mongo/models/embedded/service-order-finance.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/service-order-pricing.model.d.ts +4 -2
- package/dist/libraries/mongo/models/embedded/service-order-pricing.model.js +14 -4
- package/dist/libraries/mongo/models/embedded/service-order-pricing.model.js.map +1 -1
- package/dist/libraries/mongo/models/service-order.model.d.ts +0 -3
- package/dist/libraries/mongo/models/service-order.model.js +0 -15
- package/dist/libraries/mongo/models/service-order.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -20,3 +20,10 @@ export declare class ServicePromotionCut extends CompanyCut {
|
|
|
20
20
|
vendorCut?: number;
|
|
21
21
|
secondaryVendorCut?: number;
|
|
22
22
|
}
|
|
23
|
+
export declare class ServiceCouponDetails extends ServicePromotionCut {
|
|
24
|
+
coupon?: Ref<Coupon>;
|
|
25
|
+
couponType?: CouponType;
|
|
26
|
+
code?: string;
|
|
27
|
+
valueType?: ValueType;
|
|
28
|
+
value?: number;
|
|
29
|
+
}
|
|
@@ -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.ServicePromotionCut = exports.CouponDetails = exports.MarketingCut = exports.CompanyCut = void 0;
|
|
12
|
+
exports.ServiceCouponDetails = exports.ServicePromotionCut = exports.CouponDetails = exports.MarketingCut = exports.CompanyCut = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const coupon_model_1 = require("../coupon.model");
|
|
15
15
|
const enum_1 = require("../../../../utilities/enum");
|
|
@@ -80,4 +80,32 @@ __decorate([
|
|
|
80
80
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
81
81
|
__metadata("design:type", Number)
|
|
82
82
|
], ServicePromotionCut.prototype, "secondaryVendorCut", void 0);
|
|
83
|
+
class ServiceCouponDetails extends ServicePromotionCut {
|
|
84
|
+
coupon;
|
|
85
|
+
couponType;
|
|
86
|
+
code;
|
|
87
|
+
valueType;
|
|
88
|
+
value;
|
|
89
|
+
}
|
|
90
|
+
exports.ServiceCouponDetails = ServiceCouponDetails;
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typegoose_1.prop)({ ref: () => coupon_model_1.Coupon }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], ServiceCouponDetails.prototype, "coupon", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.CouponType }),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], ServiceCouponDetails.prototype, "couponType", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typegoose_1.prop)({ uppercase: true, trim: true, type: String }),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], ServiceCouponDetails.prototype, "code", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType }),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], ServiceCouponDetails.prototype, "valueType", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typegoose_1.prop)({ type: Number }),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], ServiceCouponDetails.prototype, "value", void 0);
|
|
83
111
|
//# sourceMappingURL=marketing-cut.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing-cut.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/marketing-cut.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,kDAAyC;AACzC,qDAAmE;AAEnE,MAAa,UAAU;IAEf,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAND,gCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACC;AAErC,MAAa,YAAa,SAAQ,UAAU;IAEpC,OAAO,CAAU;IAGjB,gBAAgB,CAAU;CACjC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACX;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACF;AAGlC,MAAa,aAAc,SAAQ,YAAY;IAEvC,MAAM,CAAe;IAGrB,UAAU,CAAc;IAGxB,IAAI,CAAU;IAGd,SAAS,CAAa;IAGtB,KAAK,CAAU;CACtB;AAfD,sCAeC;AAbO;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;6CACA;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAU,EAAE,CAAC;;iDACV;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CAC/B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;gDACX;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACD;AAGvB,MAAa,mBAAoB,SAAQ,UAAU;IAE3C,SAAS,CAAU;IAGnB,kBAAkB,CAAU;CACnC;AAND,kDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACT;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+DACA","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Coupon } from '../coupon.model';\nimport { CouponType, ValueType } from '../../../../utilities/enum';\n\nexport class CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyCut?: number;\n}\nexport class MarketingCut extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic shopCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryShopCut?: number;\n}\n\nexport class CouponDetails extends MarketingCut {\n\t@prop({ ref: () => Coupon })\n\tpublic coupon?: Ref<Coupon>;\n\n\t@prop({ type: String, enum: CouponType })\n\tpublic couponType?: CouponType;\n\n\t@prop({ uppercase: true, trim: true, type: String })\n\tpublic code?: string;\n\n\t@prop({ type: String, enum: ValueType })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number })\n\tpublic value?: number;\n}\n\nexport class ServicePromotionCut extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic vendorCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryVendorCut?: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"marketing-cut.model.js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AC;;gDACX;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACD;AAGvB,MAAa,mBAAoB,SAAQ,UAAU;IAE3C,SAAS,CAAU;IAGnB,kBAAkB,CAAU;CACnC;AAND,kDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACT;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+DACA;AAGpC,MAAa,oBAAqB,SAAQ,mBAAmB;IAErD,MAAM,CAAe;IAGrB,UAAU,CAAc;IAGxB,IAAI,CAAU;IAGd,SAAS,CAAa;IAGtB,KAAK,CAAU;CACtB;AAfD,oDAeC;AAbO;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;oDACA;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAU,EAAE,CAAC;;wDACV;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDAC/B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;uDACX;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACD","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Coupon } from '../coupon.model';\nimport { CouponType, ValueType } from '../../../../utilities/enum';\n\nexport class CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyCut?: number;\n}\nexport class MarketingCut extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic shopCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryShopCut?: number;\n}\n\nexport class CouponDetails extends MarketingCut {\n\t@prop({ ref: () => Coupon })\n\tpublic coupon?: Ref<Coupon>;\n\n\t@prop({ type: String, enum: CouponType })\n\tpublic couponType?: CouponType;\n\n\t@prop({ uppercase: true, trim: true, type: String })\n\tpublic code?: string;\n\n\t@prop({ type: String, enum: ValueType })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number })\n\tpublic value?: number;\n}\n\nexport class ServicePromotionCut extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic vendorCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryVendorCut?: number;\n}\n\nexport class ServiceCouponDetails extends ServicePromotionCut {\n\t@prop({ ref: () => Coupon })\n\tpublic coupon?: Ref<Coupon>;\n\n\t@prop({ type: String, enum: CouponType })\n\tpublic couponType?: CouponType;\n\n\t@prop({ uppercase: true, trim: true, type: String })\n\tpublic code?: string;\n\n\t@prop({ type: String, enum: ValueType })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number })\n\tpublic value?: number;\n}\n"]}
|
|
@@ -3,7 +3,7 @@ import { ServiceOrderPricing } from './service-order-pricing.model';
|
|
|
3
3
|
import { PaymentMethod } from '../../../../utilities/enum';
|
|
4
4
|
import { PaymentInformation } from './payment-infromation.model';
|
|
5
5
|
import { ServiceOrderProfit } from './profit.model';
|
|
6
|
-
import { ServicePromotionCut } from './marketing-cut.model';
|
|
6
|
+
import { ServiceCouponDetails, ServicePromotionCut } from './marketing-cut.model';
|
|
7
7
|
export declare class ServiceOrderFinance {
|
|
8
8
|
exchangeRate?: number;
|
|
9
9
|
paymentMethod: PaymentMethod;
|
|
@@ -12,5 +12,6 @@ export declare class ServiceOrderFinance {
|
|
|
12
12
|
companyProfit?: ServiceOrderProfit;
|
|
13
13
|
vendorProfit?: ServiceOrderProfit;
|
|
14
14
|
discount?: ServicePromotionCut;
|
|
15
|
+
coupon?: ServiceCouponDetails;
|
|
15
16
|
vat?: Vat;
|
|
16
17
|
}
|
|
@@ -25,6 +25,7 @@ class ServiceOrderFinance {
|
|
|
25
25
|
companyProfit;
|
|
26
26
|
vendorProfit;
|
|
27
27
|
discount;
|
|
28
|
+
coupon;
|
|
28
29
|
vat;
|
|
29
30
|
}
|
|
30
31
|
exports.ServiceOrderFinance = ServiceOrderFinance;
|
|
@@ -56,6 +57,10 @@ __decorate([
|
|
|
56
57
|
(0, typegoose_1.prop)({ type: () => marketing_cut_model_1.ServicePromotionCut }),
|
|
57
58
|
__metadata("design:type", marketing_cut_model_1.ServicePromotionCut)
|
|
58
59
|
], ServiceOrderFinance.prototype, "discount", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typegoose_1.prop)({ type: () => marketing_cut_model_1.ServiceCouponDetails }),
|
|
62
|
+
__metadata("design:type", marketing_cut_model_1.ServiceCouponDetails)
|
|
63
|
+
], ServiceOrderFinance.prototype, "coupon", void 0);
|
|
59
64
|
__decorate([
|
|
60
65
|
(0, typegoose_1.prop)({ type: () => vat_model_1.Vat }),
|
|
61
66
|
__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,+EAAoE;AACpE,qDAA2D;AAC3D,2EAAiE;AACjE,iDAAoD;AACpD,+
|
|
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,+DAAkF;AAElF,M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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 { ServiceCouponDetails, 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: () => ServiceCouponDetails })\n\tpublic coupon?: ServiceCouponDetails;\n\n\t@prop({ type: () => Vat })\n\tpublic vat?: Vat;\n}\n"]}
|
|
@@ -2,10 +2,12 @@ import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
|
2
2
|
export declare class ServiceOrderPricing extends TimeStamps {
|
|
3
3
|
subtotal?: number;
|
|
4
4
|
secondarySubtotal?: number;
|
|
5
|
-
discount?: number;
|
|
6
|
-
secondaryDiscount?: number;
|
|
7
5
|
materialCost?: number;
|
|
8
6
|
secondaryMaterialCost?: number;
|
|
7
|
+
discount?: number;
|
|
8
|
+
secondaryDiscount?: number;
|
|
9
|
+
couponDiscount?: number;
|
|
10
|
+
secondaryCouponDiscount?: number;
|
|
9
11
|
total?: number;
|
|
10
12
|
secondaryTotal?: number;
|
|
11
13
|
wallet?: number;
|
|
@@ -15,10 +15,12 @@ const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
|
15
15
|
class ServiceOrderPricing extends defaultClasses_1.TimeStamps {
|
|
16
16
|
subtotal;
|
|
17
17
|
secondarySubtotal;
|
|
18
|
-
discount;
|
|
19
|
-
secondaryDiscount;
|
|
20
18
|
materialCost;
|
|
21
19
|
secondaryMaterialCost;
|
|
20
|
+
discount;
|
|
21
|
+
secondaryDiscount;
|
|
22
|
+
couponDiscount;
|
|
23
|
+
secondaryCouponDiscount;
|
|
22
24
|
total;
|
|
23
25
|
secondaryTotal;
|
|
24
26
|
wallet;
|
|
@@ -37,6 +39,14 @@ __decorate([
|
|
|
37
39
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
38
40
|
__metadata("design:type", Number)
|
|
39
41
|
], ServiceOrderPricing.prototype, "secondarySubtotal", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], ServiceOrderPricing.prototype, "materialCost", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], ServiceOrderPricing.prototype, "secondaryMaterialCost", void 0);
|
|
40
50
|
__decorate([
|
|
41
51
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
42
52
|
__metadata("design:type", Number)
|
|
@@ -48,11 +58,11 @@ __decorate([
|
|
|
48
58
|
__decorate([
|
|
49
59
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
50
60
|
__metadata("design:type", Number)
|
|
51
|
-
], ServiceOrderPricing.prototype, "
|
|
61
|
+
], ServiceOrderPricing.prototype, "couponDiscount", void 0);
|
|
52
62
|
__decorate([
|
|
53
63
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
54
64
|
__metadata("design:type", Number)
|
|
55
|
-
], ServiceOrderPricing.prototype, "
|
|
65
|
+
], ServiceOrderPricing.prototype, "secondaryCouponDiscount", void 0);
|
|
56
66
|
__decorate([
|
|
57
67
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
58
68
|
__metadata("design:type", Number)
|
|
@@ -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;AAErE,MAAa,mBAAoB,SAAQ,2BAAU;IAE3C,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,
|
|
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,YAAY,CAAU;IAGtB,qBAAqB,CAAU;IAG/B,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,cAAc,CAAU;IAGxB,uBAAuB,CAAU;IAGjC,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,sBAAsB,CAAU;IAGhC,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAhDD,kDAgDC;AA9CO;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,IAA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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 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"]}
|
|
@@ -22,8 +22,6 @@ export declare class ServiceOrder extends TimeStamps {
|
|
|
22
22
|
userAddress: RegularOrderAddress;
|
|
23
23
|
slotRange: OrderSlotRange;
|
|
24
24
|
status: ServiceOrderStatus;
|
|
25
|
-
userNotes?: string;
|
|
26
|
-
vendorNotes?: string;
|
|
27
25
|
professionals?: Ref<Professional>[];
|
|
28
26
|
responsibleProfessional?: Ref<Professional>;
|
|
29
27
|
flag?: ServiceOrderFlag;
|
|
@@ -41,7 +39,6 @@ export declare class ServiceOrder extends TimeStamps {
|
|
|
41
39
|
orderCancel?: ServiceOrderCancel;
|
|
42
40
|
statusTimeline: ServiceOrderStatusTimeline[];
|
|
43
41
|
bufferTime: number;
|
|
44
|
-
instruction?: string;
|
|
45
42
|
isOrderReviewed?: boolean;
|
|
46
43
|
isReviewNotificationSent?: boolean;
|
|
47
44
|
reviews?: Ref<Review>[];
|
|
@@ -35,8 +35,6 @@ let ServiceOrder = class ServiceOrder extends defaultClasses_1.TimeStamps {
|
|
|
35
35
|
userAddress;
|
|
36
36
|
slotRange;
|
|
37
37
|
status;
|
|
38
|
-
userNotes;
|
|
39
|
-
vendorNotes;
|
|
40
38
|
professionals;
|
|
41
39
|
responsibleProfessional;
|
|
42
40
|
flag;
|
|
@@ -54,7 +52,6 @@ let ServiceOrder = class ServiceOrder extends defaultClasses_1.TimeStamps {
|
|
|
54
52
|
orderCancel;
|
|
55
53
|
statusTimeline;
|
|
56
54
|
bufferTime;
|
|
57
|
-
instruction;
|
|
58
55
|
isOrderReviewed;
|
|
59
56
|
isReviewNotificationSent;
|
|
60
57
|
reviews;
|
|
@@ -96,14 +93,6 @@ __decorate([
|
|
|
96
93
|
(0, typegoose_1.prop)({ type: String, enum: enum_1.ServiceOrderStatus, default: enum_1.ServiceOrderStatus.PENDING }),
|
|
97
94
|
__metadata("design:type", String)
|
|
98
95
|
], ServiceOrder.prototype, "status", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, typegoose_1.prop)({ type: String }),
|
|
101
|
-
__metadata("design:type", String)
|
|
102
|
-
], ServiceOrder.prototype, "userNotes", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, typegoose_1.prop)({ type: String }),
|
|
105
|
-
__metadata("design:type", String)
|
|
106
|
-
], ServiceOrder.prototype, "vendorNotes", void 0);
|
|
107
96
|
__decorate([
|
|
108
97
|
(0, typegoose_1.prop)({ ref: () => professional_model_1.Professional }),
|
|
109
98
|
__metadata("design:type", Array)
|
|
@@ -172,10 +161,6 @@ __decorate([
|
|
|
172
161
|
(0, typegoose_1.prop)({ type: Number }),
|
|
173
162
|
__metadata("design:type", Number)
|
|
174
163
|
], ServiceOrder.prototype, "bufferTime", void 0);
|
|
175
|
-
__decorate([
|
|
176
|
-
(0, typegoose_1.prop)({ type: String }),
|
|
177
|
-
__metadata("design:type", String)
|
|
178
|
-
], ServiceOrder.prototype, "instruction", void 0);
|
|
179
164
|
__decorate([
|
|
180
165
|
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
181
166
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-order.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoE;AACpE,6CAAoC;AACpC,iDAAwC;AACxC,kDAAuG;AACvG,6DAAoD;AACpD,kFAAuE;AACvE,6DAAmD;AACnD,wFAA6E;AAC7E,oFAA0E;AAC1E,4EAA8E;AAC9E,kEAA6D;AAC7D,wBAAyC;AACzC,0DAA6D;AAC7D,4DAAyD;AACzD,4EAAqE;AAQ9D,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,2BAAU;IAEpC,OAAO,CAAU;IAGjB,IAAI,CAAa;IAGjB,MAAM,CAAe;IAGrB,WAAW,CAAe;IAG1B,cAAc,CAAkB;IAGhC,IAAI,CAAoB;IAGxB,WAAW,CAAuB;IAGlC,SAAS,CAAkB;IAG3B,MAAM,CAAsB;
|
|
1
|
+
{"version":3,"file":"service-order.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoE;AACpE,6CAAoC;AACpC,iDAAwC;AACxC,kDAAuG;AACvG,6DAAoD;AACpD,kFAAuE;AACvE,6DAAmD;AACnD,wFAA6E;AA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;;qDACP;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACE;AAOnC;IALN,IAAA,gBAAI,EAAC;QACL,GAAG,EAAE,GAAG,EAAE,CAAC,SAAM;QACjB,YAAY,EAAE,cAAc;QAC5B,UAAU,EAAE,KAAK;KACjB,CAAC;;6CAC6B;uBApGnB,YAAY;IANxB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;IAClF,IAAA,eAAG,EAAe,MAAM,EAAE,KAAK;QAC/B,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,OAAO,GAAG,MAAM,IAAA,yBAAU,EAAC,eAAY,EAAE,kBAAW,CAAC,OAAO,CAAC,CAAC;QACpE,CAAC;IACF,CAAC,CAAC;GACW,YAAY,CAqGxB","sourcesContent":["import { modelOptions, pre, prop, Ref } from '@typegoose/typegoose';\nimport { User } from './user.model';\nimport { Vendor } from './vendor.model';\nimport { ServiceOrderStatus, CounterType, ServiceType, SubServiceType } from '../../../utilities/enum';\nimport { Professional } from './professional.model';\nimport { ServiceOrderFlag } from './embedded/service-order-flag.model';\nimport { ServiceCart } from './service-cart.model';\nimport { ServiceOrderFinance } from './embedded/service-order-finance.model';\nimport { ServiceOrderCancel } from './embedded/service-order-cance.model';\nimport { ServiceOrderStatusTimeline } from './embedded/status-timeline.model';\nimport { generateId } from '../../../utilities/id-generator';\nimport { CounterModel, Review } from '.';\nimport { RegularOrderAddress } from './shared/address.model';\nimport { OrderSlotRange } from './shared/duration.model';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\n\n@modelOptions({ schemaOptions: { collection: 'serviceOrders', timestamps: true } })\n@pre<ServiceOrder>('save', async function () {\n\tif (this.isNew) {\n\t\tthis.orderId = await generateId(CounterModel, CounterType.BOOKING);\n\t}\n})\nexport class ServiceOrder extends TimeStamps {\n\t@prop({ type: String, unique: true })\n\tpublic orderId?: string;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ required: true, type: String, enum: ServiceType })\n\tpublic serviceType!: ServiceType;\n\n\t@prop({ type: String, enum: SubServiceType })\n\tpublic subServiceType?: SubServiceType;\n\n\t@prop({ required: true, ref: () => ServiceCart })\n\tpublic cart!: Ref<ServiceCart>;\n\n\t@prop({ required: true, type: () => RegularOrderAddress })\n\tpublic userAddress!: RegularOrderAddress;\n\n\t@prop({ required: true, type: OrderSlotRange, _id: false })\n\tpublic slotRange!: OrderSlotRange;\n\n\t@prop({ type: String, enum: ServiceOrderStatus, default: ServiceOrderStatus.PENDING })\n\tpublic status!: ServiceOrderStatus;\n\n\t// @prop({ type: String })\n\t// public userNotes?: string;\n\n\t// @prop({ type: String })\n\t// public vendorNotes?: string;\n\n\t@prop({ ref: () => Professional })\n\tpublic professionals?: Ref<Professional>[];\n\n\t@prop({ ref: () => Professional })\n\tpublic responsibleProfessional?: Ref<Professional>;\n\n\t@prop({ type: () => ServiceOrderFlag, _id: false })\n\tpublic flag?: ServiceOrderFlag;\n\n\t@prop({ type: Date, default: new Date() })\n\tpublic processedAt?: Date;\n\n\t@prop({ type: Date })\n\tpublic placedAt?: Date;\n\n\t@prop({ type: Date })\n\tpublic startedAt?: Date;\n\n\t@prop({ type: Date })\n\tpublic estimatedCompletionTime?: Date;\n\n\t@prop({ type: Date })\n\tpublic completedAt?: Date;\n\n\t@prop({ type: Number })\n\tpublic completionTimeInMinutes?: number;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isUrgentOrder?: boolean;\n\n\t@prop({ type: Date })\n\tpublic urgentAt?: Date;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isOverdue!: boolean;\n\n\t@prop({ type: Date })\n\tpublic overdueAt?: Date;\n\n\t@prop({ required: true, type: ServiceOrderFinance, _id: false })\n\tpublic finance!: ServiceOrderFinance;\n\n\t@prop({ type: () => ServiceOrderCancel, _id: false })\n\tpublic orderCancel?: ServiceOrderCancel;\n\n\t@prop({ type: () => [ServiceOrderStatusTimeline], default: [] })\n\tpublic statusTimeline: ServiceOrderStatusTimeline[];\n\n\t@prop({ type: Number })\n\tpublic bufferTime: number; // minutes\n\n\t// @prop({ type: String })\n\t// public instruction?: string;\n\n\t// Review feature\n\t@prop({ type: Boolean, default: false })\n\tpublic isOrderReviewed?: boolean;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isReviewNotificationSent?: boolean;\n\n\t@prop({\n\t\tref: () => Review,\n\t\tforeignField: 'serviceOrder',\n\t\tlocalField: '_id',\n\t})\n\tpublic reviews?: Ref<Review>[];\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED