@grapadigital/shared-schemas 1.0.135 → 1.0.136
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.
|
@@ -38,7 +38,7 @@ export declare class Proposal {
|
|
|
38
38
|
businessUnit: 'enterprise' | 'artistic';
|
|
39
39
|
contact: string;
|
|
40
40
|
initialScope: string;
|
|
41
|
-
|
|
41
|
+
origin: 'inbound' | 'outbound';
|
|
42
42
|
profile?: Types.ObjectId | Profile;
|
|
43
43
|
responsable: {
|
|
44
44
|
team: string;
|
|
@@ -112,6 +112,7 @@ export declare class Sale {
|
|
|
112
112
|
_id?: Types.ObjectId;
|
|
113
113
|
title: string;
|
|
114
114
|
phase: 'screening' | 'proposal' | 'negotiation' | 'commission' | 'formalization' | 'closed' | 'lost';
|
|
115
|
+
type: 'new' | 'renewal' | 'upsell';
|
|
115
116
|
screening?: Screening;
|
|
116
117
|
proposal?: Proposal;
|
|
117
118
|
negotiation?: Negotiation;
|
|
@@ -59,7 +59,7 @@ __decorate([
|
|
|
59
59
|
required: true
|
|
60
60
|
}),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
|
-
], Proposal.prototype, "
|
|
62
|
+
], Proposal.prototype, "origin", void 0);
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, mongoose_1.Prop)({
|
|
65
65
|
type: mongoose_2.Schema.Types.ObjectId,
|
|
@@ -342,6 +342,14 @@ __decorate([
|
|
|
342
342
|
}),
|
|
343
343
|
__metadata("design:type", String)
|
|
344
344
|
], Sale.prototype, "phase", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
(0, mongoose_1.Prop)({
|
|
347
|
+
type: String,
|
|
348
|
+
enum: ['new', 'renewal', 'upsell'],
|
|
349
|
+
default: 'new',
|
|
350
|
+
}),
|
|
351
|
+
__metadata("design:type", String)
|
|
352
|
+
], Sale.prototype, "type", void 0);
|
|
345
353
|
__decorate([
|
|
346
354
|
(0, mongoose_1.Prop)({ type: Screening }),
|
|
347
355
|
__metadata("design:type", Screening)
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export class Proposal {
|
|
|
30
30
|
enum: ['inbound', 'outbound'],
|
|
31
31
|
required: true
|
|
32
32
|
})
|
|
33
|
-
|
|
33
|
+
origin: 'inbound' | 'outbound';
|
|
34
34
|
|
|
35
35
|
@Prop({
|
|
36
36
|
type: MongooseSchema.Types.ObjectId,
|
|
@@ -180,6 +180,13 @@ export class Sale {
|
|
|
180
180
|
| 'closed'
|
|
181
181
|
| 'lost';
|
|
182
182
|
|
|
183
|
+
@Prop({
|
|
184
|
+
type: String,
|
|
185
|
+
enum: ['new', 'renewal', 'upsell'],
|
|
186
|
+
default: 'new',
|
|
187
|
+
})
|
|
188
|
+
type: 'new' | 'renewal' | 'upsell';
|
|
189
|
+
|
|
183
190
|
@Prop({ type: Screening }) screening?: Screening;
|
|
184
191
|
@Prop({ type: Proposal }) proposal?: Proposal;
|
|
185
192
|
@Prop({ type: Negotiation }) negotiation?: Negotiation;
|