@grapadigital/shared-schemas 1.0.89 → 1.0.90

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.
@@ -27,10 +27,10 @@ import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
27
27
  import { Sale } from './sale.schema';
28
28
  export type InvoiceDocument = HydratedDocument<Invoice>;
29
29
  declare class Inbox {
30
- invoiceDescription: string;
31
- invoiceEmail: string;
32
- emissionNotes: string;
33
- serviceFee: number;
30
+ invoiceDescription?: string;
31
+ invoiceEmail?: string;
32
+ emissionNotes?: string;
33
+ serviceFee?: number;
34
34
  invoiceValue: number;
35
35
  estimatedIssueDate: Date;
36
36
  estimatedDueDate: Date;
@@ -31,7 +31,7 @@ __decorate([
31
31
  __metadata("design:type", Number)
32
32
  ], Inbox.prototype, "serviceFee", void 0);
33
33
  __decorate([
34
- (0, mongoose_1.Prop)({ required: false }),
34
+ (0, mongoose_1.Prop)({ required: true }),
35
35
  __metadata("design:type", Number)
36
36
  ], Inbox.prototype, "invoiceValue", void 0);
37
37
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,15 +6,15 @@ export type InvoiceDocument = HydratedDocument<Invoice>;
6
6
 
7
7
  @Schema({ _id: false })
8
8
  class Inbox {
9
- @Prop({ required: false }) invoiceDescription: string;
9
+ @Prop({ required: false }) invoiceDescription?: string;
10
10
 
11
- @Prop({ required: false }) invoiceEmail: string;
11
+ @Prop({ required: false }) invoiceEmail?: string;
12
12
 
13
- @Prop({ required: false }) emissionNotes: string;
13
+ @Prop({ required: false }) emissionNotes?: string;
14
14
 
15
- @Prop({ required: false }) serviceFee: number;
15
+ @Prop({ required: false }) serviceFee?: number;
16
16
 
17
- @Prop({ required: false }) invoiceValue: number;
17
+ @Prop({ required: true }) invoiceValue: number;
18
18
 
19
19
  @Prop({ required: true }) estimatedIssueDate: Date;
20
20