@grapadigital/shared-schemas 1.0.138 → 1.0.139
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.
|
@@ -103,6 +103,8 @@ export declare class CommissionParticipant {
|
|
|
103
103
|
value: number;
|
|
104
104
|
}
|
|
105
105
|
export declare class CommissionInfo {
|
|
106
|
+
budget: number;
|
|
107
|
+
freeValue: number;
|
|
106
108
|
marginPercentage: number;
|
|
107
109
|
commissionPercentage: number;
|
|
108
110
|
totalCommissionValue: number;
|
|
@@ -117,9 +119,9 @@ export declare class Sale {
|
|
|
117
119
|
proposal?: Proposal;
|
|
118
120
|
negotiation?: Negotiation;
|
|
119
121
|
formalization?: Formalization;
|
|
122
|
+
commission?: CommissionInfo;
|
|
120
123
|
lost?: Lost;
|
|
121
124
|
notes?: Note[];
|
|
122
|
-
commission?: CommissionInfo;
|
|
123
125
|
organization: Types.ObjectId;
|
|
124
126
|
tags?: string[];
|
|
125
127
|
timeline?: TimelineEntry[];
|
|
@@ -297,6 +297,14 @@ CommissionParticipant = __decorate([
|
|
|
297
297
|
exports.CommissionParticipant = CommissionParticipant;
|
|
298
298
|
let CommissionInfo = class CommissionInfo {
|
|
299
299
|
};
|
|
300
|
+
__decorate([
|
|
301
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
302
|
+
__metadata("design:type", Number)
|
|
303
|
+
], CommissionInfo.prototype, "budget", void 0);
|
|
304
|
+
__decorate([
|
|
305
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
306
|
+
__metadata("design:type", Number)
|
|
307
|
+
], CommissionInfo.prototype, "freeValue", void 0);
|
|
300
308
|
__decorate([
|
|
301
309
|
(0, mongoose_1.Prop)({ required: true }),
|
|
302
310
|
__metadata("design:type", Number)
|
|
@@ -366,6 +374,10 @@ __decorate([
|
|
|
366
374
|
(0, mongoose_1.Prop)({ type: Formalization }),
|
|
367
375
|
__metadata("design:type", Formalization)
|
|
368
376
|
], Sale.prototype, "formalization", void 0);
|
|
377
|
+
__decorate([
|
|
378
|
+
(0, mongoose_1.Prop)({ type: CommissionInfo, required: false }),
|
|
379
|
+
__metadata("design:type", CommissionInfo)
|
|
380
|
+
], Sale.prototype, "commission", void 0);
|
|
369
381
|
__decorate([
|
|
370
382
|
(0, mongoose_1.Prop)({ type: Lost }),
|
|
371
383
|
__metadata("design:type", Lost)
|
|
@@ -374,10 +386,6 @@ __decorate([
|
|
|
374
386
|
(0, mongoose_1.Prop)([{ type: Note, required: false }]),
|
|
375
387
|
__metadata("design:type", Array)
|
|
376
388
|
], Sale.prototype, "notes", void 0);
|
|
377
|
-
__decorate([
|
|
378
|
-
(0, mongoose_1.Prop)({ type: CommissionInfo, required: false }),
|
|
379
|
-
__metadata("design:type", CommissionInfo)
|
|
380
|
-
], Sale.prototype, "commission", void 0);
|
|
381
389
|
__decorate([
|
|
382
390
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
383
391
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
package/package.json
CHANGED
|
@@ -144,6 +144,8 @@ export class CommissionParticipant {
|
|
|
144
144
|
|
|
145
145
|
@Schema({ _id: false })
|
|
146
146
|
export class CommissionInfo {
|
|
147
|
+
@Prop({ required: true }) budget: number;
|
|
148
|
+
@Prop({ required: true }) freeValue: number;
|
|
147
149
|
@Prop({ required: true }) marginPercentage: number;
|
|
148
150
|
@Prop({ required: true }) commissionPercentage: number;
|
|
149
151
|
@Prop({ required: true }) totalCommissionValue: number;
|
|
@@ -191,14 +193,13 @@ export class Sale {
|
|
|
191
193
|
@Prop({ type: Proposal }) proposal?: Proposal;
|
|
192
194
|
@Prop({ type: Negotiation }) negotiation?: Negotiation;
|
|
193
195
|
@Prop({ type: Formalization }) formalization?: Formalization;
|
|
196
|
+
@Prop({ type: CommissionInfo, required: false }) commission?: CommissionInfo;
|
|
197
|
+
|
|
194
198
|
@Prop({ type: Lost }) lost?: Lost;
|
|
195
199
|
|
|
196
200
|
@Prop([{ type: Note, required: false }])
|
|
197
201
|
notes?: Note[];
|
|
198
202
|
|
|
199
|
-
@Prop({ type: CommissionInfo, required: false })
|
|
200
|
-
commission?: CommissionInfo;
|
|
201
|
-
|
|
202
203
|
@Prop({ type: MongooseSchema.Types.ObjectId })
|
|
203
204
|
organization: Types.ObjectId ;
|
|
204
205
|
|