@grapadigital/shared-schemas 1.0.160 → 1.0.161
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.
|
@@ -28,13 +28,6 @@ import { Profile } from './profile.schema';
|
|
|
28
28
|
import { Client } from './client.schema';
|
|
29
29
|
import { Influencer } from './influencer.schema';
|
|
30
30
|
export type SaleDocument = HydratedDocument<Sale>;
|
|
31
|
-
export declare class Screening {
|
|
32
|
-
subject: string;
|
|
33
|
-
fromName: string;
|
|
34
|
-
fromAddress: string;
|
|
35
|
-
toAddress: string;
|
|
36
|
-
text: string;
|
|
37
|
-
}
|
|
38
31
|
export declare class Proposal {
|
|
39
32
|
businessUnit: 'service' | 'comercial';
|
|
40
33
|
contact: string;
|
|
@@ -131,9 +124,8 @@ export declare class Inbox {
|
|
|
131
124
|
export declare class Sale {
|
|
132
125
|
_id?: Types.ObjectId;
|
|
133
126
|
title: string;
|
|
134
|
-
phase: 'inbox' | '
|
|
127
|
+
phase: 'inbox' | 'proposal' | 'negotiation' | 'commission' | 'formalization' | 'closed' | 'lost';
|
|
135
128
|
type: 'new' | 'organic_expansion' | 'strategic_expansion' | 'renewal' | 'comercial_winback' | 'organic_winback';
|
|
136
|
-
screening?: Screening;
|
|
137
129
|
proposal?: Proposal;
|
|
138
130
|
negotiation?: Negotiation;
|
|
139
131
|
formalization?: Formalization;
|
|
@@ -9,35 +9,9 @@ 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.SaleModel = exports.SaleSchema = exports.Sale = exports.Inbox = exports.CommissionInfo = exports.CommissionParticipant = exports.TimelineEntry = exports.Activity = exports.Lost = exports.Formalization = exports.Negotiation = exports.Proposal =
|
|
12
|
+
exports.SaleModel = exports.SaleSchema = exports.Sale = exports.Inbox = exports.CommissionInfo = exports.CommissionParticipant = exports.TimelineEntry = exports.Activity = exports.Lost = exports.Formalization = exports.Negotiation = exports.Proposal = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
|
-
let Screening = class Screening {
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], Screening.prototype, "subject", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Screening.prototype, "fromName", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], Screening.prototype, "fromAddress", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Screening.prototype, "toAddress", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Screening.prototype, "text", void 0);
|
|
37
|
-
Screening = __decorate([
|
|
38
|
-
(0, mongoose_1.Schema)({ _id: false })
|
|
39
|
-
], Screening);
|
|
40
|
-
exports.Screening = Screening;
|
|
41
15
|
let Proposal = class Proposal {
|
|
42
16
|
};
|
|
43
17
|
__decorate([
|
|
@@ -408,7 +382,6 @@ __decorate([
|
|
|
408
382
|
required: true,
|
|
409
383
|
enum: [
|
|
410
384
|
'inbox',
|
|
411
|
-
'screening',
|
|
412
385
|
'proposal',
|
|
413
386
|
'negotiation',
|
|
414
387
|
'commission',
|
|
@@ -434,10 +407,6 @@ __decorate([
|
|
|
434
407
|
}),
|
|
435
408
|
__metadata("design:type", String)
|
|
436
409
|
], Sale.prototype, "type", void 0);
|
|
437
|
-
__decorate([
|
|
438
|
-
(0, mongoose_1.Prop)({ type: Screening }),
|
|
439
|
-
__metadata("design:type", Screening)
|
|
440
|
-
], Sale.prototype, "screening", void 0);
|
|
441
410
|
__decorate([
|
|
442
411
|
(0, mongoose_1.Prop)({ type: Proposal }),
|
|
443
412
|
__metadata("design:type", Proposal)
|
package/package.json
CHANGED
|
@@ -11,15 +11,6 @@ import { Influencer } from './influencer.schema';
|
|
|
11
11
|
|
|
12
12
|
export type SaleDocument = HydratedDocument<Sale>;
|
|
13
13
|
|
|
14
|
-
@Schema({ _id: false })
|
|
15
|
-
export class Screening {
|
|
16
|
-
@Prop({ required: true }) subject: string;
|
|
17
|
-
@Prop({ required: true }) fromName: string;
|
|
18
|
-
@Prop({ required: true }) fromAddress: string;
|
|
19
|
-
@Prop({ required: true }) toAddress: string;
|
|
20
|
-
@Prop({ required: true }) text: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
14
|
@Schema({ _id: false })
|
|
24
15
|
export class Proposal {
|
|
25
16
|
@Prop({ required: true }) businessUnit: 'service' | 'comercial';
|
|
@@ -193,7 +184,6 @@ export class Sale {
|
|
|
193
184
|
required: true,
|
|
194
185
|
enum: [
|
|
195
186
|
'inbox',
|
|
196
|
-
'screening',
|
|
197
187
|
'proposal',
|
|
198
188
|
'negotiation',
|
|
199
189
|
'commission',
|
|
@@ -204,7 +194,6 @@ export class Sale {
|
|
|
204
194
|
})
|
|
205
195
|
phase:
|
|
206
196
|
| 'inbox'
|
|
207
|
-
| 'screening'
|
|
208
197
|
| 'proposal'
|
|
209
198
|
| 'negotiation'
|
|
210
199
|
| 'commission'
|
|
@@ -232,7 +221,6 @@ export class Sale {
|
|
|
232
221
|
| 'comercial_winback'
|
|
233
222
|
| 'organic_winback';
|
|
234
223
|
|
|
235
|
-
@Prop({ type: Screening }) screening?: Screening;
|
|
236
224
|
@Prop({ type: Proposal }) proposal?: Proposal;
|
|
237
225
|
@Prop({ type: Negotiation }) negotiation?: Negotiation;
|
|
238
226
|
@Prop({ type: Formalization }) formalization?: Formalization;
|