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