@grapadigital/shared-schemas 1.0.60 → 1.0.61

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.
@@ -37,11 +37,7 @@ declare class Review {
37
37
  revisedIssueDate: Date;
38
38
  revisedDueDate: Date;
39
39
  }
40
- declare class Awaiting {
41
- infoType: string;
42
- awaitingNotes: string;
43
- }
44
- declare class InvoiceData {
40
+ declare class Invoiced {
45
41
  invoiceNumber: string;
46
42
  invoiceIssueDate: Date;
47
43
  invoiceDueDate: Date;
@@ -61,8 +57,7 @@ export declare class Invoice {
61
57
  sale: Types.ObjectId | Sale;
62
58
  inbox?: Inbox;
63
59
  review?: Review;
64
- awaiting?: Awaiting;
65
- invoice?: InvoiceData;
60
+ invoice?: Invoiced;
66
61
  received?: Received;
67
62
  canceled?: Canceled;
68
63
  createdAt?: Date;
@@ -50,40 +50,27 @@ __decorate([
50
50
  Review = __decorate([
51
51
  (0, mongoose_1.Schema)({ _id: false })
52
52
  ], Review);
53
- let Awaiting = class Awaiting {
53
+ let Invoiced = class Invoiced {
54
54
  };
55
55
  __decorate([
56
56
  (0, mongoose_1.Prop)({ required: true }),
57
57
  __metadata("design:type", String)
58
- ], Awaiting.prototype, "infoType", void 0);
59
- __decorate([
60
- (0, mongoose_1.Prop)({ required: true }),
61
- __metadata("design:type", String)
62
- ], Awaiting.prototype, "awaitingNotes", void 0);
63
- Awaiting = __decorate([
64
- (0, mongoose_1.Schema)({ _id: false })
65
- ], Awaiting);
66
- let InvoiceData = class InvoiceData {
67
- };
68
- __decorate([
69
- (0, mongoose_1.Prop)({ required: true }),
70
- __metadata("design:type", String)
71
- ], InvoiceData.prototype, "invoiceNumber", void 0);
58
+ ], Invoiced.prototype, "invoiceNumber", void 0);
72
59
  __decorate([
73
60
  (0, mongoose_1.Prop)({ required: true }),
74
61
  __metadata("design:type", Date)
75
- ], InvoiceData.prototype, "invoiceIssueDate", void 0);
62
+ ], Invoiced.prototype, "invoiceIssueDate", void 0);
76
63
  __decorate([
77
64
  (0, mongoose_1.Prop)({ required: true }),
78
65
  __metadata("design:type", Date)
79
- ], InvoiceData.prototype, "invoiceDueDate", void 0);
66
+ ], Invoiced.prototype, "invoiceDueDate", void 0);
80
67
  __decorate([
81
68
  (0, mongoose_1.Prop)({ required: true }),
82
69
  __metadata("design:type", String)
83
- ], InvoiceData.prototype, "invoiceFile", void 0);
84
- InvoiceData = __decorate([
70
+ ], Invoiced.prototype, "invoiceFile", void 0);
71
+ Invoiced = __decorate([
85
72
  (0, mongoose_1.Schema)({ _id: false })
86
- ], InvoiceData);
73
+ ], Invoiced);
87
74
  let Received = class Received {
88
75
  };
89
76
  __decorate([
@@ -143,12 +130,8 @@ __decorate([
143
130
  __metadata("design:type", Review)
144
131
  ], Invoice.prototype, "review", void 0);
145
132
  __decorate([
146
- (0, mongoose_1.Prop)({ type: Awaiting }),
147
- __metadata("design:type", Awaiting)
148
- ], Invoice.prototype, "awaiting", void 0);
149
- __decorate([
150
- (0, mongoose_1.Prop)({ type: InvoiceData }),
151
- __metadata("design:type", InvoiceData)
133
+ (0, mongoose_1.Prop)({ type: Invoiced }),
134
+ __metadata("design:type", Invoiced)
152
135
  ], Invoice.prototype, "invoice", void 0);
153
136
  __decorate([
154
137
  (0, mongoose_1.Prop)({ type: Received }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,14 +25,7 @@ class Review {
25
25
  }
26
26
 
27
27
  @Schema({ _id: false })
28
- class Awaiting {
29
- @Prop({ required: true }) infoType: string;
30
-
31
- @Prop({ required: true }) awaitingNotes: string;
32
- }
33
-
34
- @Schema({ _id: false })
35
- class InvoiceData {
28
+ class Invoiced {
36
29
  @Prop({ required: true }) invoiceNumber: string;
37
30
 
38
31
  @Prop({ required: true }) invoiceIssueDate: Date;
@@ -81,9 +74,7 @@ export class Invoice {
81
74
 
82
75
  @Prop({ type: Review }) review?: Review;
83
76
 
84
- @Prop({ type: Awaiting }) awaiting?: Awaiting;
85
-
86
- @Prop({ type: InvoiceData }) invoice?: InvoiceData;
77
+ @Prop({ type: Invoiced }) invoice?: Invoiced;
87
78
 
88
79
  @Prop({ type: Received }) received?: Received;
89
80