gemcap-be-common 1.4.67 → 1.4.68
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.
- package/models/AssignedProspect.model.d.ts +55 -0
- package/models/AssignedProspect.model.js +32 -0
- package/models/AssignedProspect.model.ts +54 -0
- package/models/Banks.model.d.ts +3 -3
- package/models/Borrower.model.d.ts +3 -3
- package/models/BorrowerData.model.d.ts +3 -3
- package/models/InventoryAvailability.model.d.ts +3 -3
- package/models/InventoryAvailabilityItem.model.d.ts +3 -3
- package/models/InventoryItem.model.d.ts +3 -3
- package/models/LoanProducts.model.d.ts +3 -3
- package/models/LoanStatementTransaction.model.d.ts +9 -9
- package/models/MicroserviceTask.model.d.ts +3 -3
- package/models/ReceivableAvailability.model.d.ts +3 -3
- package/models/TransactionAttachedFile.Model.d.ts +6 -6
- package/models/UploadedFile.model.d.ts +3 -3
- package/models/User.model.d.ts +3 -3
- package/models/_index.d.ts +6 -6
- package/models/_models.d.ts +1 -0
- package/models/_models.js +1 -0
- package/models/_models.ts +1 -0
- package/package.json +1 -1
- package/services/loan-transactions.service.d.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from 'mongoose';
|
|
26
|
+
export interface IAssignedProspect {
|
|
27
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
28
|
+
prospectId: mongoose.Types.ObjectId;
|
|
29
|
+
assignedAt?: Date;
|
|
30
|
+
assignedBy?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IAssignedProspectDoc extends IAssignedProspect, Document {
|
|
33
|
+
_id: mongoose.Types.ObjectId;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
}
|
|
37
|
+
export interface IAssignedProspectLean extends IAssignedProspect {
|
|
38
|
+
_id: mongoose.Types.ObjectId;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
}
|
|
42
|
+
export interface IAssignedProspectPlain extends IAssignedProspect {
|
|
43
|
+
_id: string;
|
|
44
|
+
createdAt: Date;
|
|
45
|
+
updatedAt: Date;
|
|
46
|
+
}
|
|
47
|
+
export type AssignedProspectModel = mongoose.Model<IAssignedProspectDoc>;
|
|
48
|
+
export declare const AssignedProspectSchema: mongoose.Schema<IAssignedProspectDoc, mongoose.Model<IAssignedProspectDoc, any, any, any, mongoose.Document<unknown, any, IAssignedProspectDoc> & IAssignedProspectDoc & Required<{
|
|
49
|
+
_id: mongoose.Types.ObjectId;
|
|
50
|
+
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAssignedProspectDoc, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAssignedProspectDoc>> & mongoose.FlatRecord<IAssignedProspectDoc> & Required<{
|
|
51
|
+
_id: mongoose.Types.ObjectId;
|
|
52
|
+
}>>;
|
|
53
|
+
export declare const AssignedProspect: mongoose.Model<IAssignedProspectDoc, {}, {}, {}, mongoose.Document<unknown, {}, IAssignedProspectDoc> & IAssignedProspectDoc & Required<{
|
|
54
|
+
_id: mongoose.Types.ObjectId;
|
|
55
|
+
}>, any>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AssignedProspect = exports.AssignedProspectSchema = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
exports.AssignedProspectSchema = new mongoose_1.default.Schema({
|
|
10
|
+
prospectId: {
|
|
11
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
12
|
+
ref: _models_1.MODEL_NAMES.CRMProspects,
|
|
13
|
+
required: true,
|
|
14
|
+
index: true,
|
|
15
|
+
},
|
|
16
|
+
borrowerId: {
|
|
17
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
18
|
+
ref: _models_1.MODEL_NAMES.borrowers,
|
|
19
|
+
required: true,
|
|
20
|
+
index: true,
|
|
21
|
+
},
|
|
22
|
+
assignedAt: {
|
|
23
|
+
type: Date,
|
|
24
|
+
},
|
|
25
|
+
assignedBy: {
|
|
26
|
+
type: String,
|
|
27
|
+
},
|
|
28
|
+
}, {
|
|
29
|
+
timestamps: true,
|
|
30
|
+
versionKey: false,
|
|
31
|
+
});
|
|
32
|
+
exports.AssignedProspect = mongoose_1.default.model(_models_1.MODEL_NAMES.assignedProspects, exports.AssignedProspectSchema);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
import { MODEL_NAMES } from './_models';
|
|
4
|
+
|
|
5
|
+
export interface IAssignedProspect {
|
|
6
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
7
|
+
prospectId: mongoose.Types.ObjectId;
|
|
8
|
+
assignedAt?: Date;
|
|
9
|
+
assignedBy?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IAssignedProspectDoc extends IAssignedProspect, Document {
|
|
13
|
+
_id: mongoose.Types.ObjectId;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface IAssignedProspectLean extends IAssignedProspect {
|
|
19
|
+
_id: mongoose.Types.ObjectId;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IAssignedProspectPlain extends IAssignedProspect {
|
|
25
|
+
_id: string;
|
|
26
|
+
createdAt: Date;
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type AssignedProspectModel = mongoose.Model<IAssignedProspectDoc>;
|
|
31
|
+
|
|
32
|
+
export const AssignedProspectSchema = new mongoose.Schema<IAssignedProspectDoc>({
|
|
33
|
+
prospectId: {
|
|
34
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
35
|
+
ref: MODEL_NAMES.CRMProspects,
|
|
36
|
+
required: true,
|
|
37
|
+
},
|
|
38
|
+
borrowerId: {
|
|
39
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
40
|
+
ref: MODEL_NAMES.borrowers,
|
|
41
|
+
required: true,
|
|
42
|
+
},
|
|
43
|
+
assignedAt: {
|
|
44
|
+
type: Date,
|
|
45
|
+
},
|
|
46
|
+
assignedBy: {
|
|
47
|
+
type: String,
|
|
48
|
+
},
|
|
49
|
+
}, {
|
|
50
|
+
timestamps: true,
|
|
51
|
+
versionKey: false,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export const AssignedProspect = mongoose.model<IAssignedProspectDoc>(MODEL_NAMES.assignedProspects, AssignedProspectSchema);
|
package/models/Banks.model.d.ts
CHANGED
|
@@ -46,8 +46,8 @@ export declare const BankSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
46
46
|
updatedAt: NativeDate;
|
|
47
47
|
} & {
|
|
48
48
|
name: string;
|
|
49
|
-
isDeleted: boolean;
|
|
50
49
|
order: number;
|
|
50
|
+
isDeleted: boolean;
|
|
51
51
|
active: boolean;
|
|
52
52
|
bankAccountNumber: string;
|
|
53
53
|
ledgerAccountCodes: Map<string, {
|
|
@@ -60,8 +60,8 @@ export declare const BankSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
60
60
|
updatedAt: NativeDate;
|
|
61
61
|
} & {
|
|
62
62
|
name: string;
|
|
63
|
-
isDeleted: boolean;
|
|
64
63
|
order: number;
|
|
64
|
+
isDeleted: boolean;
|
|
65
65
|
active: boolean;
|
|
66
66
|
bankAccountNumber: string;
|
|
67
67
|
ledgerAccountCodes: Map<string, {
|
|
@@ -74,8 +74,8 @@ export declare const BankSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
74
74
|
updatedAt: NativeDate;
|
|
75
75
|
} & {
|
|
76
76
|
name: string;
|
|
77
|
-
isDeleted: boolean;
|
|
78
77
|
order: number;
|
|
78
|
+
isDeleted: boolean;
|
|
79
79
|
active: boolean;
|
|
80
80
|
bankAccountNumber: string;
|
|
81
81
|
ledgerAccountCodes: Map<string, {
|
|
@@ -58,8 +58,8 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
58
58
|
__v?: number;
|
|
59
59
|
organizationId?: mongoose.Types.ObjectId;
|
|
60
60
|
schemas?: mongoose.Types.DocumentArray<{
|
|
61
|
-
name: string;
|
|
62
61
|
type: string;
|
|
62
|
+
name: string;
|
|
63
63
|
data: mongoose.Types.DocumentArray<{
|
|
64
64
|
column: string;
|
|
65
65
|
databaseTitle: string;
|
|
@@ -77,8 +77,8 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
77
77
|
__v?: number;
|
|
78
78
|
organizationId?: mongoose.Types.ObjectId;
|
|
79
79
|
schemas?: mongoose.Types.DocumentArray<{
|
|
80
|
-
name: string;
|
|
81
80
|
type: string;
|
|
81
|
+
name: string;
|
|
82
82
|
data: mongoose.Types.DocumentArray<{
|
|
83
83
|
column: string;
|
|
84
84
|
databaseTitle: string;
|
|
@@ -96,8 +96,8 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
96
96
|
__v?: number;
|
|
97
97
|
organizationId?: mongoose.Types.ObjectId;
|
|
98
98
|
schemas?: mongoose.Types.DocumentArray<{
|
|
99
|
-
name: string;
|
|
100
99
|
type: string;
|
|
100
|
+
name: string;
|
|
101
101
|
data: mongoose.Types.DocumentArray<{
|
|
102
102
|
column: string;
|
|
103
103
|
databaseTitle: string;
|
|
@@ -34,17 +34,17 @@ export declare const BorrowerDataOptionSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
34
34
|
timestamps: false;
|
|
35
35
|
versionKey: false;
|
|
36
36
|
}, {
|
|
37
|
+
type: string;
|
|
37
38
|
name: string;
|
|
38
39
|
order: number;
|
|
39
|
-
type: string;
|
|
40
40
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
41
|
+
type: string;
|
|
41
42
|
name: string;
|
|
42
43
|
order: number;
|
|
43
|
-
type: string;
|
|
44
44
|
}>> & mongoose.FlatRecord<{
|
|
45
|
+
type: string;
|
|
45
46
|
name: string;
|
|
46
47
|
order: number;
|
|
47
|
-
type: string;
|
|
48
48
|
}> & {
|
|
49
49
|
_id: mongoose.Types.ObjectId;
|
|
50
50
|
}>;
|
|
@@ -88,8 +88,8 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
|
|
|
88
88
|
createdAt: NativeDate;
|
|
89
89
|
updatedAt: NativeDate;
|
|
90
90
|
} & {
|
|
91
|
-
borrowerId: mongoose.Types.ObjectId;
|
|
92
91
|
bbcDateId: mongoose.Types.ObjectId;
|
|
92
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
93
93
|
status: string;
|
|
94
94
|
summary: mongoose.Types.DocumentArray<{
|
|
95
95
|
order: number;
|
|
@@ -121,8 +121,8 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
|
|
|
121
121
|
createdAt: NativeDate;
|
|
122
122
|
updatedAt: NativeDate;
|
|
123
123
|
} & {
|
|
124
|
-
borrowerId: mongoose.Types.ObjectId;
|
|
125
124
|
bbcDateId: mongoose.Types.ObjectId;
|
|
125
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
126
126
|
status: string;
|
|
127
127
|
summary: mongoose.Types.DocumentArray<{
|
|
128
128
|
order: number;
|
|
@@ -154,8 +154,8 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
|
|
|
154
154
|
createdAt: NativeDate;
|
|
155
155
|
updatedAt: NativeDate;
|
|
156
156
|
} & {
|
|
157
|
-
borrowerId: mongoose.Types.ObjectId;
|
|
158
157
|
bbcDateId: mongoose.Types.ObjectId;
|
|
158
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
159
159
|
status: string;
|
|
160
160
|
summary: mongoose.Types.DocumentArray<{
|
|
161
161
|
order: number;
|
|
@@ -48,8 +48,8 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
|
|
|
48
48
|
createdAt: NativeDate;
|
|
49
49
|
updatedAt: NativeDate;
|
|
50
50
|
} & {
|
|
51
|
-
unique: boolean;
|
|
52
51
|
order: number;
|
|
52
|
+
unique: boolean;
|
|
53
53
|
inventoryAvailabilityId: mongoose.Types.ObjectId;
|
|
54
54
|
inventoryId: mongoose.Types.ObjectId;
|
|
55
55
|
matched: boolean;
|
|
@@ -64,8 +64,8 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
|
|
|
64
64
|
createdAt: NativeDate;
|
|
65
65
|
updatedAt: NativeDate;
|
|
66
66
|
} & {
|
|
67
|
-
unique: boolean;
|
|
68
67
|
order: number;
|
|
68
|
+
unique: boolean;
|
|
69
69
|
inventoryAvailabilityId: mongoose.Types.ObjectId;
|
|
70
70
|
inventoryId: mongoose.Types.ObjectId;
|
|
71
71
|
matched: boolean;
|
|
@@ -80,8 +80,8 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
|
|
|
80
80
|
createdAt: NativeDate;
|
|
81
81
|
updatedAt: NativeDate;
|
|
82
82
|
} & {
|
|
83
|
-
unique: boolean;
|
|
84
83
|
order: number;
|
|
84
|
+
unique: boolean;
|
|
85
85
|
inventoryAvailabilityId: mongoose.Types.ObjectId;
|
|
86
86
|
inventoryId: mongoose.Types.ObjectId;
|
|
87
87
|
matched: boolean;
|
|
@@ -71,9 +71,9 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
71
71
|
createdAt: NativeDate;
|
|
72
72
|
updatedAt: NativeDate;
|
|
73
73
|
} & {
|
|
74
|
-
value: number;
|
|
75
74
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
76
75
|
order: number;
|
|
76
|
+
value: number;
|
|
77
77
|
skuDate: Date;
|
|
78
78
|
category: string;
|
|
79
79
|
sku: string;
|
|
@@ -93,9 +93,9 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
93
93
|
createdAt: NativeDate;
|
|
94
94
|
updatedAt: NativeDate;
|
|
95
95
|
} & {
|
|
96
|
-
value: number;
|
|
97
96
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
98
97
|
order: number;
|
|
98
|
+
value: number;
|
|
99
99
|
skuDate: Date;
|
|
100
100
|
category: string;
|
|
101
101
|
sku: string;
|
|
@@ -115,9 +115,9 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
115
115
|
createdAt: NativeDate;
|
|
116
116
|
updatedAt: NativeDate;
|
|
117
117
|
} & {
|
|
118
|
-
value: number;
|
|
119
118
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
120
119
|
order: number;
|
|
120
|
+
value: number;
|
|
121
121
|
skuDate: Date;
|
|
122
122
|
category: string;
|
|
123
123
|
sku: string;
|
|
@@ -64,9 +64,9 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
64
64
|
createdAt: NativeDate;
|
|
65
65
|
updatedAt: NativeDate;
|
|
66
66
|
} & {
|
|
67
|
+
type: string;
|
|
67
68
|
name: string;
|
|
68
69
|
order: number;
|
|
69
|
-
type: string;
|
|
70
70
|
active: boolean;
|
|
71
71
|
borrowerId: mongoose.Types.ObjectId;
|
|
72
72
|
code: string;
|
|
@@ -90,9 +90,9 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
90
90
|
createdAt: NativeDate;
|
|
91
91
|
updatedAt: NativeDate;
|
|
92
92
|
} & {
|
|
93
|
+
type: string;
|
|
93
94
|
name: string;
|
|
94
95
|
order: number;
|
|
95
|
-
type: string;
|
|
96
96
|
active: boolean;
|
|
97
97
|
borrowerId: mongoose.Types.ObjectId;
|
|
98
98
|
code: string;
|
|
@@ -116,9 +116,9 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
116
116
|
createdAt: NativeDate;
|
|
117
117
|
updatedAt: NativeDate;
|
|
118
118
|
} & {
|
|
119
|
+
type: string;
|
|
119
120
|
name: string;
|
|
120
121
|
order: number;
|
|
121
|
-
type: string;
|
|
122
122
|
active: boolean;
|
|
123
123
|
borrowerId: mongoose.Types.ObjectId;
|
|
124
124
|
code: string;
|
|
@@ -59,46 +59,46 @@ export declare const LoanStatementSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
59
59
|
updatedAt: NativeDate;
|
|
60
60
|
} & {
|
|
61
61
|
date: Date;
|
|
62
|
-
amount: number;
|
|
63
62
|
order: number;
|
|
63
|
+
amount: number;
|
|
64
64
|
chargeId: mongoose.Types.ObjectId;
|
|
65
65
|
isSystem: boolean;
|
|
66
|
-
balance?: number;
|
|
67
|
-
userId?: string;
|
|
68
66
|
__v?: number;
|
|
69
67
|
memo?: string;
|
|
70
68
|
settlementCode?: string;
|
|
71
69
|
amountPaid?: number;
|
|
70
|
+
balance?: number;
|
|
71
|
+
userId?: string;
|
|
72
72
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
73
73
|
createdAt: NativeDate;
|
|
74
74
|
updatedAt: NativeDate;
|
|
75
75
|
} & {
|
|
76
76
|
date: Date;
|
|
77
|
-
amount: number;
|
|
78
77
|
order: number;
|
|
78
|
+
amount: number;
|
|
79
79
|
chargeId: mongoose.Types.ObjectId;
|
|
80
80
|
isSystem: boolean;
|
|
81
|
-
balance?: number;
|
|
82
|
-
userId?: string;
|
|
83
81
|
__v?: number;
|
|
84
82
|
memo?: string;
|
|
85
83
|
settlementCode?: string;
|
|
86
84
|
amountPaid?: number;
|
|
85
|
+
balance?: number;
|
|
86
|
+
userId?: string;
|
|
87
87
|
}>> & mongoose.FlatRecord<{
|
|
88
88
|
createdAt: NativeDate;
|
|
89
89
|
updatedAt: NativeDate;
|
|
90
90
|
} & {
|
|
91
91
|
date: Date;
|
|
92
|
-
amount: number;
|
|
93
92
|
order: number;
|
|
93
|
+
amount: number;
|
|
94
94
|
chargeId: mongoose.Types.ObjectId;
|
|
95
95
|
isSystem: boolean;
|
|
96
|
-
balance?: number;
|
|
97
|
-
userId?: string;
|
|
98
96
|
__v?: number;
|
|
99
97
|
memo?: string;
|
|
100
98
|
settlementCode?: string;
|
|
101
99
|
amountPaid?: number;
|
|
100
|
+
balance?: number;
|
|
101
|
+
userId?: string;
|
|
102
102
|
}> & {
|
|
103
103
|
_id: mongoose.Types.ObjectId;
|
|
104
104
|
}>;
|
|
@@ -42,9 +42,9 @@ export declare const MicroserviceTaskSchema: mongoose.Schema<any, mongoose.Model
|
|
|
42
42
|
} & {
|
|
43
43
|
cmd: string;
|
|
44
44
|
params: any;
|
|
45
|
-
userId?: string;
|
|
46
45
|
__v?: number;
|
|
47
46
|
status?: string;
|
|
47
|
+
userId?: string;
|
|
48
48
|
executeAt?: Date;
|
|
49
49
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
50
50
|
createdAt: NativeDate;
|
|
@@ -52,9 +52,9 @@ export declare const MicroserviceTaskSchema: mongoose.Schema<any, mongoose.Model
|
|
|
52
52
|
} & {
|
|
53
53
|
cmd: string;
|
|
54
54
|
params: any;
|
|
55
|
-
userId?: string;
|
|
56
55
|
__v?: number;
|
|
57
56
|
status?: string;
|
|
57
|
+
userId?: string;
|
|
58
58
|
executeAt?: Date;
|
|
59
59
|
}>> & mongoose.FlatRecord<{
|
|
60
60
|
createdAt: NativeDate;
|
|
@@ -62,9 +62,9 @@ export declare const MicroserviceTaskSchema: mongoose.Schema<any, mongoose.Model
|
|
|
62
62
|
} & {
|
|
63
63
|
cmd: string;
|
|
64
64
|
params: any;
|
|
65
|
-
userId?: string;
|
|
66
65
|
__v?: number;
|
|
67
66
|
status?: string;
|
|
67
|
+
userId?: string;
|
|
68
68
|
executeAt?: Date;
|
|
69
69
|
}> & {
|
|
70
70
|
_id: mongoose.Types.ObjectId;
|
|
@@ -184,8 +184,8 @@ export declare const AvailabilitySchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
184
184
|
createdAt: NativeDate;
|
|
185
185
|
updatedAt: NativeDate;
|
|
186
186
|
} & {
|
|
187
|
-
borrowerId: mongoose.Types.ObjectId;
|
|
188
187
|
bbcDateId: mongoose.Types.ObjectId;
|
|
188
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
189
189
|
useManualInputs: boolean;
|
|
190
190
|
__v?: number;
|
|
191
191
|
summary?: {
|
|
@@ -244,8 +244,8 @@ export declare const AvailabilitySchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
244
244
|
createdAt: NativeDate;
|
|
245
245
|
updatedAt: NativeDate;
|
|
246
246
|
} & {
|
|
247
|
-
borrowerId: mongoose.Types.ObjectId;
|
|
248
247
|
bbcDateId: mongoose.Types.ObjectId;
|
|
248
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
249
249
|
useManualInputs: boolean;
|
|
250
250
|
__v?: number;
|
|
251
251
|
summary?: {
|
|
@@ -304,8 +304,8 @@ export declare const AvailabilitySchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
304
304
|
createdAt: NativeDate;
|
|
305
305
|
updatedAt: NativeDate;
|
|
306
306
|
} & {
|
|
307
|
-
borrowerId: mongoose.Types.ObjectId;
|
|
308
307
|
bbcDateId: mongoose.Types.ObjectId;
|
|
308
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
309
309
|
useManualInputs: boolean;
|
|
310
310
|
__v?: number;
|
|
311
311
|
summary?: {
|
|
@@ -38,32 +38,32 @@ export declare const TransactionAttachedFileSchema: mongoose.Schema<any, mongoos
|
|
|
38
38
|
createdAt: NativeDate;
|
|
39
39
|
updatedAt: NativeDate;
|
|
40
40
|
} & {
|
|
41
|
-
effectiveDate: string;
|
|
42
41
|
borrowerId: mongoose.Types.ObjectId;
|
|
42
|
+
effectiveDate: string;
|
|
43
43
|
filename: string;
|
|
44
44
|
originalName: string;
|
|
45
|
-
userId?: string;
|
|
46
45
|
__v?: number;
|
|
46
|
+
userId?: string;
|
|
47
47
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
48
48
|
createdAt: NativeDate;
|
|
49
49
|
updatedAt: NativeDate;
|
|
50
50
|
} & {
|
|
51
|
-
effectiveDate: string;
|
|
52
51
|
borrowerId: mongoose.Types.ObjectId;
|
|
52
|
+
effectiveDate: string;
|
|
53
53
|
filename: string;
|
|
54
54
|
originalName: string;
|
|
55
|
-
userId?: string;
|
|
56
55
|
__v?: number;
|
|
56
|
+
userId?: string;
|
|
57
57
|
}>> & mongoose.FlatRecord<{
|
|
58
58
|
createdAt: NativeDate;
|
|
59
59
|
updatedAt: NativeDate;
|
|
60
60
|
} & {
|
|
61
|
-
effectiveDate: string;
|
|
62
61
|
borrowerId: mongoose.Types.ObjectId;
|
|
62
|
+
effectiveDate: string;
|
|
63
63
|
filename: string;
|
|
64
64
|
originalName: string;
|
|
65
|
-
userId?: string;
|
|
66
65
|
__v?: number;
|
|
66
|
+
userId?: string;
|
|
67
67
|
}> & {
|
|
68
68
|
_id: mongoose.Types.ObjectId;
|
|
69
69
|
}>;
|
|
@@ -42,9 +42,9 @@ export declare const UploadedFileSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
42
42
|
} & {
|
|
43
43
|
type: string;
|
|
44
44
|
converted: boolean;
|
|
45
|
-
userId?: string;
|
|
46
45
|
__v?: number;
|
|
47
46
|
borrowerId?: mongoose.Types.ObjectId;
|
|
47
|
+
userId?: string;
|
|
48
48
|
filename?: string;
|
|
49
49
|
originalName?: string;
|
|
50
50
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
@@ -53,9 +53,9 @@ export declare const UploadedFileSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
53
53
|
} & {
|
|
54
54
|
type: string;
|
|
55
55
|
converted: boolean;
|
|
56
|
-
userId?: string;
|
|
57
56
|
__v?: number;
|
|
58
57
|
borrowerId?: mongoose.Types.ObjectId;
|
|
58
|
+
userId?: string;
|
|
59
59
|
filename?: string;
|
|
60
60
|
originalName?: string;
|
|
61
61
|
}>> & mongoose.FlatRecord<{
|
|
@@ -64,9 +64,9 @@ export declare const UploadedFileSchema: mongoose.Schema<any, mongoose.Model<any
|
|
|
64
64
|
} & {
|
|
65
65
|
type: string;
|
|
66
66
|
converted: boolean;
|
|
67
|
-
userId?: string;
|
|
68
67
|
__v?: number;
|
|
69
68
|
borrowerId?: mongoose.Types.ObjectId;
|
|
69
|
+
userId?: string;
|
|
70
70
|
filename?: string;
|
|
71
71
|
originalName?: string;
|
|
72
72
|
}> & {
|
package/models/User.model.d.ts
CHANGED
|
@@ -42,8 +42,8 @@ export declare const UserSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
42
42
|
createdAt: NativeDate;
|
|
43
43
|
updatedAt: NativeDate;
|
|
44
44
|
} & {
|
|
45
|
-
userId: string;
|
|
46
45
|
isDeleted: boolean;
|
|
46
|
+
userId: string;
|
|
47
47
|
borrowersAccess: mongoose.Types.DocumentArray<{
|
|
48
48
|
borrower: string;
|
|
49
49
|
}>;
|
|
@@ -56,8 +56,8 @@ export declare const UserSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
56
56
|
createdAt: NativeDate;
|
|
57
57
|
updatedAt: NativeDate;
|
|
58
58
|
} & {
|
|
59
|
-
userId: string;
|
|
60
59
|
isDeleted: boolean;
|
|
60
|
+
userId: string;
|
|
61
61
|
borrowersAccess: mongoose.Types.DocumentArray<{
|
|
62
62
|
borrower: string;
|
|
63
63
|
}>;
|
|
@@ -70,8 +70,8 @@ export declare const UserSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
70
70
|
createdAt: NativeDate;
|
|
71
71
|
updatedAt: NativeDate;
|
|
72
72
|
} & {
|
|
73
|
-
userId: string;
|
|
74
73
|
isDeleted: boolean;
|
|
74
|
+
userId: string;
|
|
75
75
|
borrowersAccess: mongoose.Types.DocumentArray<{
|
|
76
76
|
borrower: string;
|
|
77
77
|
}>;
|
package/models/_index.d.ts
CHANGED
|
@@ -31,10 +31,10 @@ export declare const allSchemas: {
|
|
|
31
31
|
createdAt: NativeDate;
|
|
32
32
|
updatedAt: NativeDate;
|
|
33
33
|
} & {
|
|
34
|
-
order: number;
|
|
35
|
-
amount: number;
|
|
36
34
|
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
35
|
+
order: number;
|
|
37
36
|
apDate: Date;
|
|
37
|
+
amount: number;
|
|
38
38
|
__v?: number;
|
|
39
39
|
poNumber?: string;
|
|
40
40
|
customerName?: string;
|
|
@@ -45,10 +45,10 @@ export declare const allSchemas: {
|
|
|
45
45
|
createdAt: NativeDate;
|
|
46
46
|
updatedAt: NativeDate;
|
|
47
47
|
} & {
|
|
48
|
-
order: number;
|
|
49
|
-
amount: number;
|
|
50
48
|
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
49
|
+
order: number;
|
|
51
50
|
apDate: Date;
|
|
51
|
+
amount: number;
|
|
52
52
|
__v?: number;
|
|
53
53
|
poNumber?: string;
|
|
54
54
|
customerName?: string;
|
|
@@ -59,10 +59,10 @@ export declare const allSchemas: {
|
|
|
59
59
|
createdAt: NativeDate;
|
|
60
60
|
updatedAt: NativeDate;
|
|
61
61
|
} & {
|
|
62
|
-
order: number;
|
|
63
|
-
amount: number;
|
|
64
62
|
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
63
|
+
order: number;
|
|
65
64
|
apDate: Date;
|
|
65
|
+
amount: number;
|
|
66
66
|
__v?: number;
|
|
67
67
|
poNumber?: string;
|
|
68
68
|
customerName?: string;
|
package/models/_models.d.ts
CHANGED
package/models/_models.js
CHANGED
|
@@ -12,6 +12,7 @@ exports.MODEL_NAMES = {
|
|
|
12
12
|
availabilitySign: 'availabilitySign',
|
|
13
13
|
availabilitySignedData: 'availability_signed_datas',
|
|
14
14
|
appraiser: 'Appraiser',
|
|
15
|
+
assignedProspects: 'assigned_prospects',
|
|
15
16
|
auditors: 'auditors',
|
|
16
17
|
appraiserContact: 'appraiser_contacts',
|
|
17
18
|
auditorAccess: 'auditor_access',
|
package/models/_models.ts
CHANGED
|
@@ -12,6 +12,7 @@ export const MODEL_NAMES = {
|
|
|
12
12
|
availabilitySign: 'availabilitySign',
|
|
13
13
|
availabilitySignedData: 'availability_signed_datas',
|
|
14
14
|
appraiser: 'Appraiser',
|
|
15
|
+
assignedProspects: 'assigned_prospects',
|
|
15
16
|
auditors: 'auditors',
|
|
16
17
|
appraiserContact: 'appraiser_contacts',
|
|
17
18
|
auditorAccess: 'auditor_access',
|
package/package.json
CHANGED
|
@@ -155,7 +155,7 @@ export declare class LoanTransactionsService {
|
|
|
155
155
|
getTransactionReport(transactionIds: string[], borrowerId: string, effectiveDate: Date): Promise<{
|
|
156
156
|
transactionIdsToMark: any[];
|
|
157
157
|
transactions: {
|
|
158
|
-
[x: string]: (string | number | string[]
|
|
158
|
+
[x: string]: (string | number | Date | string[])[];
|
|
159
159
|
}[];
|
|
160
160
|
}>;
|
|
161
161
|
getBorrowerIdsForFile(transactionFileId: string): Promise<{
|