@grapadigital/shared-schemas 1.0.125 → 1.0.126
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.
|
@@ -95,12 +95,12 @@ declare class Note {
|
|
|
95
95
|
export declare class CommissionParticipant {
|
|
96
96
|
email: string;
|
|
97
97
|
role: string;
|
|
98
|
-
|
|
98
|
+
percentage: number;
|
|
99
99
|
value: number;
|
|
100
100
|
}
|
|
101
101
|
export declare class CommissionInfo {
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
marginPercentage: number;
|
|
103
|
+
commissionPercentage: number;
|
|
104
104
|
totalCommissionValue: number;
|
|
105
105
|
participants: CommissionParticipant[];
|
|
106
106
|
}
|
|
@@ -272,7 +272,7 @@ __decorate([
|
|
|
272
272
|
__decorate([
|
|
273
273
|
(0, mongoose_1.Prop)({ required: true }),
|
|
274
274
|
__metadata("design:type", Number)
|
|
275
|
-
], CommissionParticipant.prototype, "
|
|
275
|
+
], CommissionParticipant.prototype, "percentage", void 0);
|
|
276
276
|
__decorate([
|
|
277
277
|
(0, mongoose_1.Prop)({ required: true }),
|
|
278
278
|
__metadata("design:type", Number)
|
|
@@ -286,11 +286,11 @@ let CommissionInfo = class CommissionInfo {
|
|
|
286
286
|
__decorate([
|
|
287
287
|
(0, mongoose_1.Prop)({ required: true }),
|
|
288
288
|
__metadata("design:type", Number)
|
|
289
|
-
], CommissionInfo.prototype, "
|
|
289
|
+
], CommissionInfo.prototype, "marginPercentage", void 0);
|
|
290
290
|
__decorate([
|
|
291
291
|
(0, mongoose_1.Prop)({ required: true }),
|
|
292
292
|
__metadata("design:type", Number)
|
|
293
|
-
], CommissionInfo.prototype, "
|
|
293
|
+
], CommissionInfo.prototype, "commissionPercentage", void 0);
|
|
294
294
|
__decorate([
|
|
295
295
|
(0, mongoose_1.Prop)({ required: true }),
|
|
296
296
|
__metadata("design:type", Number)
|
package/package.json
CHANGED
|
@@ -132,14 +132,14 @@ class Note {
|
|
|
132
132
|
export class CommissionParticipant {
|
|
133
133
|
@Prop({ required: true }) email: string;
|
|
134
134
|
@Prop({ required: true }) role: string;
|
|
135
|
-
@Prop({ required: true })
|
|
135
|
+
@Prop({ required: true }) percentage: number;
|
|
136
136
|
@Prop({ required: true }) value: number;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
@Schema({ _id: false })
|
|
140
140
|
export class CommissionInfo {
|
|
141
|
-
@Prop({ required: true })
|
|
142
|
-
@Prop({ required: true })
|
|
141
|
+
@Prop({ required: true }) marginPercentage: number;
|
|
142
|
+
@Prop({ required: true }) commissionPercentage: number;
|
|
143
143
|
@Prop({ required: true }) totalCommissionValue: number;
|
|
144
144
|
|
|
145
145
|
@Prop({ type: [CommissionParticipant], required: true })
|