@grapadigital/shared-schemas 1.0.141 → 1.0.143

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.
@@ -96,7 +96,7 @@ declare class Payment {
96
96
  }
97
97
  export declare class Exchange {
98
98
  hasExchange: boolean;
99
- valueInProduct: number;
99
+ description: string;
100
100
  }
101
101
  export declare const ExchangeSchema: MongooseSchema<Exchange, import("mongoose").Model<Exchange, any, any, any, import("mongoose").Document<unknown, any, Exchange, any, {}> & Exchange & {
102
102
  _id: Types.ObjectId;
@@ -138,8 +138,8 @@ __decorate([
138
138
  ], Exchange.prototype, "hasExchange", void 0);
139
139
  __decorate([
140
140
  (0, mongoose_1.Prop)(),
141
- __metadata("design:type", Number)
142
- ], Exchange.prototype, "valueInProduct", void 0);
141
+ __metadata("design:type", String)
142
+ ], Exchange.prototype, "description", void 0);
143
143
  Exchange = __decorate([
144
144
  (0, mongoose_1.Schema)({ _id: false })
145
145
  ], Exchange);
@@ -114,7 +114,7 @@ export declare class Sale {
114
114
  _id?: Types.ObjectId;
115
115
  title: string;
116
116
  phase: 'screening' | 'proposal' | 'negotiation' | 'commission' | 'formalization' | 'closed' | 'lost';
117
- type: 'new' | 'renewal' | 'upsell';
117
+ type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
118
118
  screening?: Screening;
119
119
  proposal?: Proposal;
120
120
  negotiation?: Negotiation;
@@ -353,7 +353,7 @@ __decorate([
353
353
  __decorate([
354
354
  (0, mongoose_1.Prop)({
355
355
  type: String,
356
- enum: ['new', 'renewal', 'upsell'],
356
+ enum: ['new', 'organic_expansion', 'strategic_expansion', 'renewal', 'comercial_winback', 'organic_winback'],
357
357
  default: 'new',
358
358
  }),
359
359
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.141",
3
+ "version": "1.0.143",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -99,7 +99,7 @@ export class Exchange {
99
99
  hasExchange: boolean;
100
100
 
101
101
  @Prop()
102
- valueInProduct: number;
102
+ description: string;
103
103
  }
104
104
 
105
105
  export const ExchangeSchema = SchemaFactory.createForClass(Exchange);
@@ -184,10 +184,10 @@ export class Sale {
184
184
 
185
185
  @Prop({
186
186
  type: String,
187
- enum: ['new', 'renewal', 'upsell'],
187
+ enum: ['new', 'organic_expansion', 'strategic_expansion', 'renewal', 'comercial_winback', 'organic_winback'],
188
188
  default: 'new',
189
189
  })
190
- type: 'new' | 'renewal' | 'upsell';
190
+ type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
191
191
 
192
192
  @Prop({ type: Screening }) screening?: Screening;
193
193
  @Prop({ type: Proposal }) proposal?: Proposal;