@grapadigital/shared-schemas 1.0.63 → 1.0.64

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.
@@ -59,6 +59,7 @@ export declare class Invoice {
59
59
  invoiced?: Invoiced;
60
60
  received?: Received;
61
61
  canceled?: Canceled;
62
+ notes?: string[];
62
63
  createdAt?: Date;
63
64
  updatedAt?: Date;
64
65
  }
@@ -137,6 +137,10 @@ __decorate([
137
137
  (0, mongoose_1.Prop)({ type: Canceled }),
138
138
  __metadata("design:type", Canceled)
139
139
  ], Invoice.prototype, "canceled", void 0);
140
+ __decorate([
141
+ (0, mongoose_1.Prop)([{ type: String, required: false }]),
142
+ __metadata("design:type", Array)
143
+ ], Invoice.prototype, "notes", void 0);
140
144
  __decorate([
141
145
  (0, mongoose_1.Prop)({ default: Date.now, required: false }),
142
146
  __metadata("design:type", Date)
@@ -101,6 +101,7 @@ export declare class Sale {
101
101
  negotiation?: Negotiation;
102
102
  formalization?: Formalization;
103
103
  lost?: Lost;
104
+ notes?: string[];
104
105
  profiles?: Types.ObjectId[] | Profile[];
105
106
  invoices?: Types.ObjectId[] | Invoice[];
106
107
  actions?: Types.ObjectId[] | Action[];
@@ -284,6 +284,10 @@ __decorate([
284
284
  (0, mongoose_1.Prop)({ type: Lost }),
285
285
  __metadata("design:type", Lost)
286
286
  ], Sale.prototype, "lost", void 0);
287
+ __decorate([
288
+ (0, mongoose_1.Prop)([{ type: String, required: false }]),
289
+ __metadata("design:type", Array)
290
+ ], Sale.prototype, "notes", void 0);
287
291
  __decorate([
288
292
  (0, mongoose_1.Prop)([
289
293
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -78,6 +78,9 @@ export class Invoice {
78
78
 
79
79
  @Prop({ type: Canceled }) canceled?: Canceled;
80
80
 
81
+ @Prop([{ type: String, required: false }])
82
+ notes?: string[];
83
+
81
84
  @Prop({ default: Date.now, required: false })
82
85
  createdAt?: Date;
83
86
 
@@ -123,6 +123,9 @@ export class Sale {
123
123
  @Prop({ type: Formalization }) formalization?: Formalization;
124
124
  @Prop({ type: Lost }) lost?: Lost;
125
125
 
126
+ @Prop([{ type: String, required: false }])
127
+ notes?: string[];
128
+
126
129
  @Prop([
127
130
  {
128
131
  type: MongooseSchema.Types.ObjectId,