@grapadigital/shared-schemas 1.0.25 → 1.0.26

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.
@@ -45,27 +45,27 @@ __decorate([
45
45
  __metadata("design:type", Number)
46
46
  ], ComercialCard.prototype, "influencerValue", void 0);
47
47
  __decorate([
48
- (0, mongoose_1.Prop)(),
48
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
49
49
  __metadata("design:type", Object)
50
50
  ], ComercialCard.prototype, "expectedInvoiceIssueDate", void 0);
51
51
  __decorate([
52
- (0, mongoose_1.Prop)(),
52
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
53
53
  __metadata("design:type", Object)
54
54
  ], ComercialCard.prototype, "expectedInvoiceDueDate", void 0);
55
55
  __decorate([
56
- (0, mongoose_1.Prop)(),
56
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
57
57
  __metadata("design:type", Object)
58
58
  ], ComercialCard.prototype, "invoiceIssueDate", void 0);
59
59
  __decorate([
60
- (0, mongoose_1.Prop)(),
60
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
61
61
  __metadata("design:type", Object)
62
62
  ], ComercialCard.prototype, "invoiceDueDate", void 0);
63
63
  __decorate([
64
- (0, mongoose_1.Prop)(),
64
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
65
65
  __metadata("design:type", Object)
66
66
  ], ComercialCard.prototype, "invoicePaymentDate", void 0);
67
67
  __decorate([
68
- (0, mongoose_1.Prop)(),
68
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
69
69
  __metadata("design:type", Object)
70
70
  ], ComercialCard.prototype, "dueDate", void 0);
71
71
  __decorate([
@@ -80,19 +80,19 @@ __decorate([
80
80
  __metadata("design:type", Number)
81
81
  ], Payment.prototype, "value", void 0);
82
82
  __decorate([
83
- (0, mongoose_1.Prop)(),
83
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
84
84
  __metadata("design:type", Object)
85
85
  ], Payment.prototype, "dueDate", void 0);
86
86
  __decorate([
87
- (0, mongoose_1.Prop)(),
87
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
88
88
  __metadata("design:type", Object)
89
89
  ], Payment.prototype, "invoiceIssueDate", void 0);
90
90
  __decorate([
91
- (0, mongoose_1.Prop)(),
91
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
92
92
  __metadata("design:type", Object)
93
93
  ], Payment.prototype, "invoiceDueDate", void 0);
94
94
  __decorate([
95
- (0, mongoose_1.Prop)(),
95
+ (0, mongoose_1.Prop)({ type: Date, default: null }),
96
96
  __metadata("design:type", Object)
97
97
  ], Payment.prototype, "paymentDate", void 0);
98
98
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,22 +33,22 @@ export class ComercialCard {
33
33
  @Prop()
34
34
  influencerValue: number;
35
35
 
36
- @Prop()
36
+ @Prop({ type: Date, default: null })
37
37
  expectedInvoiceIssueDate: Date | null;
38
38
 
39
- @Prop()
39
+ @Prop({ type: Date, default: null })
40
40
  expectedInvoiceDueDate: Date | null;
41
41
 
42
- @Prop()
42
+ @Prop({ type: Date, default: null })
43
43
  invoiceIssueDate: Date | null;
44
44
 
45
- @Prop()
45
+ @Prop({ type: Date, default: null })
46
46
  invoiceDueDate: Date | null;
47
47
 
48
- @Prop()
48
+ @Prop({ type: Date, default: null })
49
49
  invoicePaymentDate: Date | null;
50
50
 
51
- @Prop()
51
+ @Prop({ type: Date, default: null })
52
52
  dueDate: Date | null;
53
53
 
54
54
  @Prop({ type: [Installment] })
@@ -57,16 +57,16 @@ export class Payment {
57
57
  @Prop()
58
58
  value: number;
59
59
 
60
- @Prop()
60
+ @Prop({ type: Date, default: null })
61
61
  dueDate: Date | null;
62
62
 
63
- @Prop()
63
+ @Prop({ type: Date, default: null })
64
64
  invoiceIssueDate: Date | null;
65
65
 
66
- @Prop()
66
+ @Prop({ type: Date, default: null })
67
67
  invoiceDueDate: Date | null;
68
68
 
69
- @Prop()
69
+ @Prop({ type: Date, default: null })
70
70
  paymentDate: Date | null;
71
71
 
72
72
  @Prop({ type: PipefyCardSchema })