@grapadigital/shared-schemas 1.0.80 → 1.0.82

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.
@@ -57,6 +57,7 @@ declare class Note {
57
57
  export declare class Invoice {
58
58
  _id?: Types.ObjectId;
59
59
  title: string;
60
+ installmentNumber: number;
60
61
  phase: 'inbox' | 'review' | 'awaiting' | 'invoiced' | 'received' | 'canceled';
61
62
  sale: Types.ObjectId | Sale;
62
63
  inbox?: Inbox;
@@ -15,15 +15,15 @@ const mongoose_2 = require("mongoose");
15
15
  let Inbox = class Inbox {
16
16
  };
17
17
  __decorate([
18
- (0, mongoose_1.Prop)({ required: true }),
18
+ (0, mongoose_1.Prop)({ required: false }),
19
19
  __metadata("design:type", String)
20
20
  ], Inbox.prototype, "invoiceDescription", void 0);
21
21
  __decorate([
22
- (0, mongoose_1.Prop)({ required: true }),
22
+ (0, mongoose_1.Prop)({ required: false }),
23
23
  __metadata("design:type", String)
24
24
  ], Inbox.prototype, "invoiceEmail", void 0);
25
25
  __decorate([
26
- (0, mongoose_1.Prop)({ required: true }),
26
+ (0, mongoose_1.Prop)({ required: false }),
27
27
  __metadata("design:type", String)
28
28
  ], Inbox.prototype, "emissionNotes", void 0);
29
29
  __decorate([
@@ -116,6 +116,10 @@ __decorate([
116
116
  (0, mongoose_1.Prop)({ required: true }),
117
117
  __metadata("design:type", String)
118
118
  ], Invoice.prototype, "title", void 0);
119
+ __decorate([
120
+ (0, mongoose_1.Prop)({ required: true }),
121
+ __metadata("design:type", Number)
122
+ ], Invoice.prototype, "installmentNumber", void 0);
119
123
  __decorate([
120
124
  (0, mongoose_1.Prop)({
121
125
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,11 +6,11 @@ export type InvoiceDocument = HydratedDocument<Invoice>;
6
6
 
7
7
  @Schema({ _id: false })
8
8
  class Inbox {
9
- @Prop({ required: true }) invoiceDescription: string;
9
+ @Prop({ required: false }) invoiceDescription: string;
10
10
 
11
- @Prop({ required: true }) invoiceEmail: string;
11
+ @Prop({ required: false }) invoiceEmail: string;
12
12
 
13
- @Prop({ required: true }) emissionNotes: string;
13
+ @Prop({ required: false }) emissionNotes: string;
14
14
 
15
15
  @Prop({ required: true }) estimatedInvoiceIssueDate: Date;
16
16
 
@@ -59,6 +59,8 @@ export class Invoice {
59
59
 
60
60
  @Prop({ required: true }) title: string;
61
61
 
62
+ @Prop({ required: true }) installmentNumber: number;
63
+
62
64
  @Prop({
63
65
  required: true,
64
66
  enum: [