gemcap-be-common 1.5.164 → 1.5.166
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.
|
@@ -39,7 +39,8 @@ export interface IBorrower {
|
|
|
39
39
|
active: boolean;
|
|
40
40
|
accrualStatus: boolean;
|
|
41
41
|
accrueToReserve: boolean;
|
|
42
|
-
|
|
42
|
+
accrueToReserveAppliedFrom: Date | null;
|
|
43
|
+
reserveCodeId: mongoose.Types.ObjectId | null;
|
|
43
44
|
organizationId: mongoose.Types.ObjectId;
|
|
44
45
|
schemas: IMapSchema[];
|
|
45
46
|
}
|
|
@@ -53,9 +54,10 @@ export interface IBorrowerLean extends IBorrower {
|
|
|
53
54
|
createdAt: Date;
|
|
54
55
|
updatedAt: Date;
|
|
55
56
|
}
|
|
56
|
-
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId'> {
|
|
57
|
+
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId' | 'reserveCodeId'> {
|
|
57
58
|
_id: string;
|
|
58
59
|
organizationId: string;
|
|
60
|
+
reserveCodeId: string;
|
|
59
61
|
createdAt: Date;
|
|
60
62
|
updatedAt: Date;
|
|
61
63
|
}
|
|
@@ -72,8 +74,9 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
72
74
|
active: boolean;
|
|
73
75
|
accrualStatus: boolean;
|
|
74
76
|
accrueToReserve: boolean;
|
|
75
|
-
reserveCode: boolean;
|
|
76
77
|
organizationId?: mongoose.Types.ObjectId;
|
|
78
|
+
reserveCodeId?: mongoose.Types.ObjectId;
|
|
79
|
+
accrueToReserveAppliedFrom?: Date;
|
|
77
80
|
schemas?: mongoose.Types.DocumentArray<{
|
|
78
81
|
name: string;
|
|
79
82
|
type: string;
|
|
@@ -93,8 +96,9 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
93
96
|
active: boolean;
|
|
94
97
|
accrualStatus: boolean;
|
|
95
98
|
accrueToReserve: boolean;
|
|
96
|
-
reserveCode: boolean;
|
|
97
99
|
organizationId?: mongoose.Types.ObjectId;
|
|
100
|
+
reserveCodeId?: mongoose.Types.ObjectId;
|
|
101
|
+
accrueToReserveAppliedFrom?: Date;
|
|
98
102
|
schemas?: mongoose.Types.DocumentArray<{
|
|
99
103
|
name: string;
|
|
100
104
|
type: string;
|
|
@@ -114,8 +118,9 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
114
118
|
active: boolean;
|
|
115
119
|
accrualStatus: boolean;
|
|
116
120
|
accrueToReserve: boolean;
|
|
117
|
-
reserveCode: boolean;
|
|
118
121
|
organizationId?: mongoose.Types.ObjectId;
|
|
122
|
+
reserveCodeId?: mongoose.Types.ObjectId;
|
|
123
|
+
accrueToReserveAppliedFrom?: Date;
|
|
119
124
|
schemas?: mongoose.Types.DocumentArray<{
|
|
120
125
|
name: string;
|
|
121
126
|
type: string;
|
package/models/Borrower.model.js
CHANGED
|
@@ -35,9 +35,12 @@ exports.BorrowerSchema = new mongoose_1.default.Schema({
|
|
|
35
35
|
type: Boolean,
|
|
36
36
|
default: false,
|
|
37
37
|
},
|
|
38
|
-
|
|
39
|
-
type:
|
|
40
|
-
|
|
38
|
+
accrueToReserveAppliedFrom: {
|
|
39
|
+
type: Date,
|
|
40
|
+
},
|
|
41
|
+
reserveCodeId: {
|
|
42
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
43
|
+
ref: _models_1.MODEL_NAMES.quickbooksAccounts,
|
|
41
44
|
},
|
|
42
45
|
organizationId: {
|
|
43
46
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
package/models/Borrower.model.ts
CHANGED
|
@@ -22,7 +22,8 @@ export interface IBorrower {
|
|
|
22
22
|
active: boolean;
|
|
23
23
|
accrualStatus: boolean;
|
|
24
24
|
accrueToReserve: boolean;
|
|
25
|
-
|
|
25
|
+
accrueToReserveAppliedFrom: Date | null;
|
|
26
|
+
reserveCodeId: mongoose.Types.ObjectId | null;
|
|
26
27
|
organizationId: mongoose.Types.ObjectId;
|
|
27
28
|
schemas: IMapSchema[];
|
|
28
29
|
}
|
|
@@ -39,9 +40,10 @@ export interface IBorrowerLean extends IBorrower {
|
|
|
39
40
|
updatedAt: Date;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId'> {
|
|
43
|
+
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId' | 'reserveCodeId'> {
|
|
43
44
|
_id: string;
|
|
44
45
|
organizationId: string;
|
|
46
|
+
reserveCodeId: string;
|
|
45
47
|
createdAt: Date;
|
|
46
48
|
updatedAt: Date;
|
|
47
49
|
}
|
|
@@ -77,9 +79,12 @@ export const BorrowerSchema = new mongoose.Schema(
|
|
|
77
79
|
type: Boolean,
|
|
78
80
|
default: false,
|
|
79
81
|
},
|
|
80
|
-
|
|
81
|
-
type:
|
|
82
|
-
|
|
82
|
+
accrueToReserveAppliedFrom: {
|
|
83
|
+
type: Date,
|
|
84
|
+
},
|
|
85
|
+
reserveCodeId: {
|
|
86
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
87
|
+
ref: MODEL_NAMES.quickbooksAccounts,
|
|
83
88
|
},
|
|
84
89
|
organizationId: {
|
|
85
90
|
type: mongoose.Schema.Types.ObjectId,
|