@grapadigital/shared-schemas 1.0.160 → 1.0.162

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;
@@ -49,7 +42,7 @@ export declare class Proposal {
49
42
  };
50
43
  }
51
44
  export declare class Negotiation {
52
- calculatorType: 'withPreDefinedBudget' | 'withoutPreDefinedBudget' | 'bourbon';
45
+ calculatorType: 'withPreDefinedBudget' | 'withoutPreDefinedBudget' | 'byCommission' | 'bourbon';
53
46
  childPermit?: boolean;
54
47
  childPermitValue?: number;
55
48
  childPermitMethod?: 'direct' | 'debit_note' | 'client';
@@ -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' | 'screening' | 'proposal' | 'negotiation' | 'commission' | 'formalization' | 'closed' | 'lost';
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 = exports.Screening = void 0;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.160",
3
+ "version": "1.0.162",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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';
@@ -68,6 +59,7 @@ export class Negotiation {
68
59
  @Prop({ required: true }) calculatorType:
69
60
  | 'withPreDefinedBudget'
70
61
  | 'withoutPreDefinedBudget'
62
+ | 'byCommission'
71
63
  | 'bourbon';
72
64
  @Prop({ required: false }) childPermit?: boolean;
73
65
  @Prop({ required: false }) childPermitValue?: number;
@@ -193,7 +185,6 @@ export class Sale {
193
185
  required: true,
194
186
  enum: [
195
187
  'inbox',
196
- 'screening',
197
188
  'proposal',
198
189
  'negotiation',
199
190
  'commission',
@@ -204,7 +195,6 @@ export class Sale {
204
195
  })
205
196
  phase:
206
197
  | 'inbox'
207
- | 'screening'
208
198
  | 'proposal'
209
199
  | 'negotiation'
210
200
  | 'commission'
@@ -232,7 +222,6 @@ export class Sale {
232
222
  | 'comercial_winback'
233
223
  | 'organic_winback';
234
224
 
235
- @Prop({ type: Screening }) screening?: Screening;
236
225
  @Prop({ type: Proposal }) proposal?: Proposal;
237
226
  @Prop({ type: Negotiation }) negotiation?: Negotiation;
238
227
  @Prop({ type: Formalization }) formalization?: Formalization;