gemcap-be-common 1.5.165 → 1.5.167

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,6 +39,8 @@ export interface IBorrower {
39
39
  active: boolean;
40
40
  accrualStatus: boolean;
41
41
  accrueToReserve: boolean;
42
+ accrueToReserveAppliedFrom: Date | null;
43
+ reserveCodeCompanyId: mongoose.Types.ObjectId | null;
42
44
  reserveCodeId: mongoose.Types.ObjectId | null;
43
45
  organizationId: mongoose.Types.ObjectId;
44
46
  schemas: IMapSchema[];
@@ -75,6 +77,8 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
75
77
  accrueToReserve: boolean;
76
78
  organizationId?: mongoose.Types.ObjectId;
77
79
  reserveCodeId?: mongoose.Types.ObjectId;
80
+ accrueToReserveAppliedFrom?: Date;
81
+ reserveCodeCompanyId?: mongoose.Types.ObjectId;
78
82
  schemas?: mongoose.Types.DocumentArray<{
79
83
  name: string;
80
84
  type: string;
@@ -96,6 +100,8 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
96
100
  accrueToReserve: boolean;
97
101
  organizationId?: mongoose.Types.ObjectId;
98
102
  reserveCodeId?: mongoose.Types.ObjectId;
103
+ accrueToReserveAppliedFrom?: Date;
104
+ reserveCodeCompanyId?: mongoose.Types.ObjectId;
99
105
  schemas?: mongoose.Types.DocumentArray<{
100
106
  name: string;
101
107
  type: string;
@@ -117,6 +123,8 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
117
123
  accrueToReserve: boolean;
118
124
  organizationId?: mongoose.Types.ObjectId;
119
125
  reserveCodeId?: mongoose.Types.ObjectId;
126
+ accrueToReserveAppliedFrom?: Date;
127
+ reserveCodeCompanyId?: mongoose.Types.ObjectId;
120
128
  schemas?: mongoose.Types.DocumentArray<{
121
129
  name: string;
122
130
  type: string;
@@ -35,6 +35,13 @@ exports.BorrowerSchema = new mongoose_1.default.Schema({
35
35
  type: Boolean,
36
36
  default: false,
37
37
  },
38
+ accrueToReserveAppliedFrom: {
39
+ type: Date,
40
+ },
41
+ reserveCodeCompanyId: {
42
+ type: mongoose_1.default.Schema.Types.ObjectId,
43
+ ref: _models_1.MODEL_NAMES.companies,
44
+ },
38
45
  reserveCodeId: {
39
46
  type: mongoose_1.default.Schema.Types.ObjectId,
40
47
  ref: _models_1.MODEL_NAMES.quickbooksAccounts,
@@ -22,6 +22,8 @@ export interface IBorrower {
22
22
  active: boolean;
23
23
  accrualStatus: boolean;
24
24
  accrueToReserve: boolean;
25
+ accrueToReserveAppliedFrom: Date | null;
26
+ reserveCodeCompanyId: mongoose.Types.ObjectId | null;
25
27
  reserveCodeId: mongoose.Types.ObjectId | null;
26
28
  organizationId: mongoose.Types.ObjectId;
27
29
  schemas: IMapSchema[];
@@ -78,6 +80,13 @@ export const BorrowerSchema = new mongoose.Schema(
78
80
  type: Boolean,
79
81
  default: false,
80
82
  },
83
+ accrueToReserveAppliedFrom: {
84
+ type: Date,
85
+ },
86
+ reserveCodeCompanyId: {
87
+ type: mongoose.Schema.Types.ObjectId,
88
+ ref: MODEL_NAMES.companies,
89
+ },
81
90
  reserveCodeId: {
82
91
  type: mongoose.Schema.Types.ObjectId,
83
92
  ref: MODEL_NAMES.quickbooksAccounts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.165",
3
+ "version": "1.5.167",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {