@grapadigital/shared-schemas 1.0.153 → 1.0.155

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.
@@ -154,6 +154,7 @@ export declare class Payment {
154
154
  canceled?: Canceled;
155
155
  notes?: Note[];
156
156
  tags?: string[];
157
+ omieId?: string;
157
158
  createdAt?: Date;
158
159
  updatedAt?: Date;
159
160
  }
@@ -289,6 +289,10 @@ __decorate([
289
289
  (0, mongoose_1.Prop)({ type: [String], required: false, default: [] }),
290
290
  __metadata("design:type", Array)
291
291
  ], Payment.prototype, "tags", void 0);
292
+ __decorate([
293
+ (0, mongoose_1.Prop)(),
294
+ __metadata("design:type", String)
295
+ ], Payment.prototype, "omieId", void 0);
292
296
  __decorate([
293
297
  (0, mongoose_1.Prop)({ default: Date.now, required: false }),
294
298
  __metadata("design:type", Date)
@@ -126,7 +126,7 @@ export declare class Sale {
126
126
  _id?: Types.ObjectId;
127
127
  title: string;
128
128
  phase: 'inbox' | 'screening' | 'proposal' | 'negotiation' | 'commission' | 'formalization' | 'closed' | 'lost';
129
- type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
129
+ type: 'new' | 'organic_expansion' | 'strategic_expansion' | 'renewal' | 'comercial_winback' | 'organic_winback';
130
130
  screening?: Screening;
131
131
  proposal?: Proposal;
132
132
  negotiation?: Negotiation;
@@ -142,6 +142,7 @@ export declare class Sale {
142
142
  closedAt?: Date;
143
143
  createdAt?: Date;
144
144
  updatedAt?: Date;
145
+ omieId?: string;
145
146
  }
146
147
  export declare const SaleSchema: MongooseSchema<Sale, import("mongoose").Model<Sale, any, any, any, import("mongoose").Document<unknown, any, Sale, any, {}> & Sale & Required<{
147
148
  _id: Types.ObjectId;
@@ -400,7 +400,14 @@ __decorate([
400
400
  __decorate([
401
401
  (0, mongoose_1.Prop)({
402
402
  type: String,
403
- enum: ['new', 'organic_expansion', 'strategic_expansion', 'renewal', 'comercial_winback', 'organic_winback'],
403
+ enum: [
404
+ 'new',
405
+ 'organic_expansion',
406
+ 'strategic_expansion',
407
+ 'renewal',
408
+ 'comercial_winback',
409
+ 'organic_winback',
410
+ ],
404
411
  default: 'new',
405
412
  }),
406
413
  __metadata("design:type", String)
@@ -471,6 +478,10 @@ __decorate([
471
478
  (0, mongoose_1.Prop)({ default: Date.now, required: false }),
472
479
  __metadata("design:type", Date)
473
480
  ], Sale.prototype, "updatedAt", void 0);
481
+ __decorate([
482
+ (0, mongoose_1.Prop)({ type: String, required: false }),
483
+ __metadata("design:type", String)
484
+ ], Sale.prototype, "omieId", void 0);
474
485
  Sale = __decorate([
475
486
  (0, mongoose_1.Schema)({ timestamps: true })
476
487
  ], Sale);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.153",
3
+ "version": "1.0.155",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -225,6 +225,9 @@ export class Payment {
225
225
  @Prop({ type: [String], required: false, default: [] })
226
226
  tags?: string[];
227
227
 
228
+ @Prop()
229
+ omieId?: string;
230
+
228
231
  @Prop({ default: Date.now, required: false })
229
232
  createdAt?: Date;
230
233
 
@@ -206,10 +206,23 @@ export class Sale {
206
206
 
207
207
  @Prop({
208
208
  type: String,
209
- enum: ['new', 'organic_expansion', 'strategic_expansion', 'renewal', 'comercial_winback', 'organic_winback'],
209
+ enum: [
210
+ 'new',
211
+ 'organic_expansion',
212
+ 'strategic_expansion',
213
+ 'renewal',
214
+ 'comercial_winback',
215
+ 'organic_winback',
216
+ ],
210
217
  default: 'new',
211
218
  })
212
- type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
219
+ type:
220
+ | 'new'
221
+ | 'organic_expansion'
222
+ | 'strategic_expansion'
223
+ | 'renewal'
224
+ | 'comercial_winback'
225
+ | 'organic_winback';
213
226
 
214
227
  @Prop({ type: Screening }) screening?: Screening;
215
228
  @Prop({ type: Proposal }) proposal?: Proposal;
@@ -250,6 +263,9 @@ export class Sale {
250
263
 
251
264
  @Prop({ default: Date.now, required: false })
252
265
  updatedAt?: Date;
266
+
267
+ @Prop({ type: String, required: false })
268
+ omieId?: string;
253
269
  }
254
270
 
255
271
  export const SaleSchema = SchemaFactory.createForClass(Sale);