@lyxa.ai/core 1.0.89 → 1.0.90
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.
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import { Ref } from '@typegoose/typegoose';
|
|
2
|
+
import { LogUser } from '../../../../utilities/enum';
|
|
2
3
|
import { Admin } from '../admin.model';
|
|
4
|
+
import { LineItem } from '../line-item.model';
|
|
3
5
|
export declare class OrderCancel {
|
|
6
|
+
logusers: LogUser[];
|
|
7
|
+
isEndorseLossApplicable: Boolean;
|
|
8
|
+
selectedLineItems?: Ref<LineItem>[];
|
|
9
|
+
deliveryFeeIncludedInEndorsement?: Boolean;
|
|
4
10
|
canceledBy: string;
|
|
5
11
|
admin?: Ref<Admin>;
|
|
6
12
|
cancelReason?: string;
|
|
13
|
+
costAmountByShopForItems: number;
|
|
14
|
+
secondaryCostAmountByShopForItems: number;
|
|
15
|
+
costAmountByShopForDelivery: number;
|
|
16
|
+
secondaryCostAmountByShopForDelivery: number;
|
|
17
|
+
costAmountByCompanyForItems: number;
|
|
18
|
+
secondaryCostAmountByCompanyForItems: number;
|
|
19
|
+
costAmountByCompanyForDelivery: number;
|
|
20
|
+
secondaryCostAmountByCompanyForDelivery: number;
|
|
21
|
+
totalAmount: number;
|
|
22
|
+
secondaryTotalAmount: number;
|
|
7
23
|
}
|
|
@@ -13,12 +13,47 @@ exports.OrderCancel = void 0;
|
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
15
|
const admin_model_1 = require("../admin.model");
|
|
16
|
+
const line_item_model_1 = require("../line-item.model");
|
|
16
17
|
class OrderCancel {
|
|
18
|
+
logusers;
|
|
19
|
+
isEndorseLossApplicable;
|
|
20
|
+
selectedLineItems;
|
|
21
|
+
deliveryFeeIncludedInEndorsement;
|
|
17
22
|
canceledBy;
|
|
18
23
|
admin;
|
|
19
24
|
cancelReason;
|
|
25
|
+
costAmountByShopForItems;
|
|
26
|
+
secondaryCostAmountByShopForItems;
|
|
27
|
+
costAmountByShopForDelivery;
|
|
28
|
+
secondaryCostAmountByShopForDelivery;
|
|
29
|
+
costAmountByCompanyForItems;
|
|
30
|
+
secondaryCostAmountByCompanyForItems;
|
|
31
|
+
costAmountByCompanyForDelivery;
|
|
32
|
+
secondaryCostAmountByCompanyForDelivery;
|
|
33
|
+
totalAmount;
|
|
34
|
+
secondaryTotalAmount;
|
|
20
35
|
}
|
|
21
36
|
exports.OrderCancel = OrderCancel;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typegoose_1.prop)({
|
|
39
|
+
type: [String],
|
|
40
|
+
enum: enum_1.LogUser,
|
|
41
|
+
default: [],
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], OrderCancel.prototype, "logusers", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], OrderCancel.prototype, "isEndorseLossApplicable", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typegoose_1.prop)({ ref: () => line_item_model_1.LineItem, default: [] }),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], OrderCancel.prototype, "selectedLineItems", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
55
|
+
__metadata("design:type", Boolean)
|
|
56
|
+
], OrderCancel.prototype, "deliveryFeeIncludedInEndorsement", void 0);
|
|
22
57
|
__decorate([
|
|
23
58
|
(0, typegoose_1.prop)({ type: String, enum: enum_1.OrderCancelBy }),
|
|
24
59
|
__metadata("design:type", String)
|
|
@@ -31,4 +66,44 @@ __decorate([
|
|
|
31
66
|
(0, typegoose_1.prop)({ type: String }),
|
|
32
67
|
__metadata("design:type", String)
|
|
33
68
|
], OrderCancel.prototype, "cancelReason", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], OrderCancel.prototype, "costAmountByShopForItems", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], OrderCancel.prototype, "secondaryCostAmountByShopForItems", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], OrderCancel.prototype, "costAmountByShopForDelivery", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], OrderCancel.prototype, "secondaryCostAmountByShopForDelivery", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], OrderCancel.prototype, "costAmountByCompanyForItems", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], OrderCancel.prototype, "secondaryCostAmountByCompanyForItems", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], OrderCancel.prototype, "costAmountByCompanyForDelivery", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], OrderCancel.prototype, "secondaryCostAmountByCompanyForDelivery", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], OrderCancel.prototype, "totalAmount", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typegoose_1.prop)({ type: Number, required: true, default: 0 }),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], OrderCancel.prototype, "secondaryTotalAmount", void 0);
|
|
34
109
|
//# sourceMappingURL=order-cancel.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-cancel.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-cancel.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"order-cancel.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-cancel.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAoE;AACpE,gDAAuC;AACvC,wDAA8C;AAE9C,MAAa,WAAW;IAOvB,QAAQ,CAAa;IAGrB,uBAAuB,CAAU;IAGjC,iBAAiB,CAAmB;IAGpC,gCAAgC,CAAW;IAG3C,UAAU,CAAS;IAGnB,KAAK,CAAc;IAGnB,YAAY,CAAU;IAGtB,wBAAwB,CAAU;IAGlC,iCAAiC,CAAU;IAG3C,2BAA2B,CAAU;IAGrC,oCAAoC,CAAU;IAG9C,2BAA2B,CAAU;IAGrC,oCAAoC,CAAU;IAG9C,8BAA8B,CAAU;IAGxC,uCAAuC,CAAU;IAGjD,WAAW,CAAU;IAGrB,oBAAoB,CAAU;CAC9B;AAxDD,kCAwDC;AAjDA;IALC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,cAAO;QACb,OAAO,EAAE,EAAE;KACX,CAAC;;6CACmB;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC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,EAAE,CAAC,EAAE,CAAC;;yEACL;AAG9C;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mEACX;AAGxC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4EACF;AAGjD;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDAC9B;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACrB","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { LogUser, OrderCancelBy } from '../../../../utilities/enum';\nimport { Admin } from '../admin.model';\nimport { LineItem } from '../line-item.model';\n\nexport class OrderCancel {\n\n\t@prop({\n\t\ttype: [String],\n\t\tenum: LogUser,\n\t\tdefault: [],\n\t})\n\tlogusers!: LogUser[];\n\n\t@prop({ type: Boolean, default: false })\n\tisEndorseLossApplicable: Boolean;\n\n\t@prop({ ref: () => LineItem, default: [] })\n\tselectedLineItems?: Ref<LineItem>[];\n\n\t@prop({ type: Boolean, default: false })\n\tdeliveryFeeIncludedInEndorsement?: Boolean;\n\n\t@prop({ type: String, enum: OrderCancelBy })\n\tcanceledBy: string;\n\n\t@prop({ ref: () => Admin })\n\tadmin?: Ref<Admin>;\n\n\t@prop({ type: String })\n\tcancelReason?: string;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tcostAmountByShopForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryCostAmountByShopForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tcostAmountByShopForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryCostAmountByShopForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tcostAmountByCompanyForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryCostAmountByCompanyForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tcostAmountByCompanyForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryCostAmountByCompanyForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\ttotalAmount!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryTotalAmount!: number;\n}\n"]}
|