gemcap-be-common 1.2.65 → 1.2.66
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/BorrowerData.model.d.ts +41 -0
- package/models/BorrowerData.model.js +35 -0
- package/models/BorrowerData.model.ts +56 -0
- package/models/BorrowerDataBank.model.d.ts +35 -0
- package/models/BorrowerDataBank.model.js +28 -0
- package/models/BorrowerDataBank.model.ts +38 -0
- package/models/BorrowerDataBootCollateral.model.d.ts +32 -0
- package/models/BorrowerDataBootCollateral.model.js +18 -0
- package/models/BorrowerDataBootCollateral.model.ts +25 -0
- package/models/BorrowerDataContact.model.d.ts +34 -0
- package/models/BorrowerDataContact.model.js +24 -0
- package/models/BorrowerDataContact.model.ts +33 -0
- package/models/BorrowerDataGuarantee.model.d.ts +32 -0
- package/models/BorrowerDataGuarantee.model.js +18 -0
- package/models/BorrowerDataGuarantee.model.ts +25 -0
- package/models/BorrowerDataInsurance.model.d.ts +35 -0
- package/models/BorrowerDataInsurance.model.js +28 -0
- package/models/BorrowerDataInsurance.model.ts +38 -0
- package/models/BorrowerDataInventory.model.d.ts +32 -0
- package/models/BorrowerDataInventory.model.js +18 -0
- package/models/BorrowerDataInventory.model.ts +25 -0
- package/models/BorrowerDataLocation.model.d.ts +33 -0
- package/models/BorrowerDataLocation.model.js +21 -0
- package/models/BorrowerDataLocation.model.ts +29 -0
- package/models/BorrowerDataReceivable.model.d.ts +33 -0
- package/models/BorrowerDataReceivable.model.js +21 -0
- package/models/BorrowerDataReceivable.model.ts +29 -0
- package/models/BorrowerDataTerm.model.d.ts +33 -0
- package/models/BorrowerDataTerm.model.js +21 -0
- package/models/BorrowerDataTerm.model.ts +29 -0
- package/models/BorrowerSettings.model.d.ts +71 -0
- package/models/BorrowerSettings.model.js +81 -0
- package/models/BorrowerSettings.model.ts +127 -0
- package/models/_models.d.ts +11 -0
- package/models/_models.js +11 -0
- package/models/_models.ts +11 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
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, { Document } from 'mongoose';
|
|
26
|
+
export interface IBorrowerDataOption {
|
|
27
|
+
order: number;
|
|
28
|
+
name: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}
|
|
31
|
+
interface IBorrowerDataOptionDoc extends IBorrowerDataOption, Document {
|
|
32
|
+
}
|
|
33
|
+
export declare const BorrowerDataOptionModel: mongoose.Model<IBorrowerDataOptionDoc>;
|
|
34
|
+
export interface IBorrowerData {
|
|
35
|
+
dataOption: mongoose.Schema.Types.ObjectId;
|
|
36
|
+
dataValue: boolean | string;
|
|
37
|
+
}
|
|
38
|
+
export interface IBorrowerDataDoc extends IBorrowerData, Document {
|
|
39
|
+
}
|
|
40
|
+
export declare const BorrowerDataModel: mongoose.Model<IBorrowerDataDoc>;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
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.BorrowerDataModel = exports.BorrowerDataOptionModel = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
const BorrowerDataOptionSchema = new mongoose_1.default.Schema({
|
|
10
|
+
order: {
|
|
11
|
+
type: Number,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
name: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
}, { timestamps: false, versionKey: false });
|
|
23
|
+
exports.BorrowerDataOptionModel = mongoose_1.default.model('borrower_data_option', BorrowerDataOptionSchema);
|
|
24
|
+
const BorrowerDataSchema = new mongoose_1.default.Schema({
|
|
25
|
+
dataOption: {
|
|
26
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
27
|
+
ref: 'borrower_data_option',
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
dataValue: {
|
|
31
|
+
type: mongoose_1.default.Schema.Types.Mixed,
|
|
32
|
+
required: true,
|
|
33
|
+
},
|
|
34
|
+
}, { timestamps: false, versionKey: false });
|
|
35
|
+
exports.BorrowerDataModel = mongoose_1.default.model(_models_1.MODEL_NAMES.borrowerData, BorrowerDataSchema);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import mongoose, { Document } from 'mongoose';
|
|
2
|
+
import { MODEL_NAMES } from './_models';
|
|
3
|
+
|
|
4
|
+
export interface IBorrowerDataOption {
|
|
5
|
+
order: number;
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface IBorrowerDataOptionDoc extends IBorrowerDataOption, Document {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const BorrowerDataOptionSchema = new mongoose.Schema(
|
|
14
|
+
{
|
|
15
|
+
order: {
|
|
16
|
+
type: Number,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: true,
|
|
22
|
+
},
|
|
23
|
+
type: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{ timestamps: false, versionKey: false },
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
export const BorrowerDataOptionModel: mongoose.Model<IBorrowerDataOptionDoc> = mongoose.model<IBorrowerDataOptionDoc>('borrower_data_option', BorrowerDataOptionSchema);
|
|
32
|
+
|
|
33
|
+
export interface IBorrowerData {
|
|
34
|
+
dataOption: mongoose.Schema.Types.ObjectId,
|
|
35
|
+
dataValue: boolean | string
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface IBorrowerDataDoc extends IBorrowerData, Document {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const BorrowerDataSchema = new mongoose.Schema(
|
|
42
|
+
{
|
|
43
|
+
dataOption: {
|
|
44
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
45
|
+
ref: 'borrower_data_option',
|
|
46
|
+
required: true,
|
|
47
|
+
},
|
|
48
|
+
dataValue: {
|
|
49
|
+
type: mongoose.Schema.Types.Mixed,
|
|
50
|
+
required: true,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{ timestamps: false, versionKey: false },
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
export const BorrowerDataModel: mongoose.Model<IBorrowerDataDoc> = mongoose.model<IBorrowerDataDoc>(MODEL_NAMES.borrowerData, BorrowerDataSchema);
|
|
@@ -0,0 +1,35 @@
|
|
|
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, { Document } from 'mongoose';
|
|
26
|
+
export interface IBorrowerDataBank {
|
|
27
|
+
name: string;
|
|
28
|
+
accountNumber: string;
|
|
29
|
+
purpose: string;
|
|
30
|
+
DACA: boolean;
|
|
31
|
+
plaid: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface IBorrowerDataBankDoc extends IBorrowerDataBank, Document {
|
|
34
|
+
}
|
|
35
|
+
export declare const BorrowerDataBankModel: mongoose.Model<IBorrowerDataBankDoc>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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.BorrowerDataBankModel = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
const BorrowerDataBankSchema = new mongoose_1.default.Schema({
|
|
10
|
+
name: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
accountNumber: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
purpose: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
DACA: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
},
|
|
24
|
+
plaid: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
},
|
|
27
|
+
}, { timestamps: false, versionKey: false });
|
|
28
|
+
exports.BorrowerDataBankModel = mongoose_1.default.model(_models_1.MODEL_NAMES.borrowerDataBanks, BorrowerDataBankSchema);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import mongoose, { Document } from 'mongoose';
|
|
2
|
+
import { MODEL_NAMES } from './_models';
|
|
3
|
+
|
|
4
|
+
export interface IBorrowerDataBank {
|
|
5
|
+
name: string;
|
|
6
|
+
accountNumber: string;
|
|
7
|
+
purpose: string;
|
|
8
|
+
DACA: boolean;
|
|
9
|
+
plaid: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IBorrowerDataBankDoc extends IBorrowerDataBank, Document {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const BorrowerDataBankSchema = new mongoose.Schema(
|
|
16
|
+
{
|
|
17
|
+
name: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
accountNumber: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
purpose: {
|
|
26
|
+
type: String,
|
|
27
|
+
},
|
|
28
|
+
DACA: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
},
|
|
31
|
+
plaid: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{ timestamps: false, versionKey: false },
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export const BorrowerDataBankModel: mongoose.Model<IBorrowerDataBankDoc> = mongoose.model<IBorrowerDataBankDoc>(MODEL_NAMES.borrowerDataBanks, BorrowerDataBankSchema);
|
|
@@ -0,0 +1,32 @@
|
|
|
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, { Document } from 'mongoose';
|
|
26
|
+
export interface IBorrowerDataBootCollateral {
|
|
27
|
+
description: string;
|
|
28
|
+
assessedValue: number;
|
|
29
|
+
}
|
|
30
|
+
export interface IBorrowerDataBootCollateralDoc extends IBorrowerDataBootCollateral, Document {
|
|
31
|
+
}
|
|
32
|
+
export declare const BorrowerDataBootCollateralModel: mongoose.Model<IBorrowerDataBootCollateralDoc>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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.BorrowerDataBootCollateralModel = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
const BorrowerDataBottCollateralSchema = new mongoose_1.default.Schema({
|
|
10
|
+
description: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
assessedValue: {
|
|
15
|
+
type: Number,
|
|
16
|
+
},
|
|
17
|
+
}, { timestamps: false, versionKey: false });
|
|
18
|
+
exports.BorrowerDataBootCollateralModel = mongoose_1.default.model(_models_1.MODEL_NAMES.borrowerDataBootCollaterals, BorrowerDataBottCollateralSchema);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import mongoose, { Document } from 'mongoose';
|
|
2
|
+
import { MODEL_NAMES } from './_models';
|
|
3
|
+
|
|
4
|
+
export interface IBorrowerDataBootCollateral {
|
|
5
|
+
description: string;
|
|
6
|
+
assessedValue: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface IBorrowerDataBootCollateralDoc extends IBorrowerDataBootCollateral, Document {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const BorrowerDataBottCollateralSchema = new mongoose.Schema(
|
|
13
|
+
{
|
|
14
|
+
description: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
assessedValue: {
|
|
19
|
+
type: Number,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{ timestamps: false, versionKey: false },
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export const BorrowerDataBootCollateralModel: mongoose.Model<IBorrowerDataBootCollateralDoc> = mongoose.model<IBorrowerDataBootCollateralDoc>(MODEL_NAMES.borrowerDataBootCollaterals, BorrowerDataBottCollateralSchema);
|
|
@@ -0,0 +1,34 @@
|
|
|
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, { Document } from 'mongoose';
|
|
26
|
+
export interface IBorrowerDataContact {
|
|
27
|
+
name: string;
|
|
28
|
+
title: string;
|
|
29
|
+
email: string;
|
|
30
|
+
phone: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IBorrowerDataContactDoc extends IBorrowerDataContact, Document {
|
|
33
|
+
}
|
|
34
|
+
export declare const BorrowerDataContactModel: mongoose.Model<IBorrowerDataContactDoc>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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.BorrowerDataContactModel = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
const BorrowerDataContactSchema = new mongoose_1.default.Schema({
|
|
10
|
+
name: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
},
|
|
17
|
+
email: {
|
|
18
|
+
type: String,
|
|
19
|
+
},
|
|
20
|
+
phone: {
|
|
21
|
+
type: String,
|
|
22
|
+
},
|
|
23
|
+
}, { timestamps: false, versionKey: false });
|
|
24
|
+
exports.BorrowerDataContactModel = mongoose_1.default.model(_models_1.MODEL_NAMES.borrowerDataContacts, BorrowerDataContactSchema);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import mongoose, { Document } from 'mongoose';
|
|
2
|
+
import { MODEL_NAMES } from './_models';
|
|
3
|
+
|
|
4
|
+
export interface IBorrowerDataContact {
|
|
5
|
+
name: string;
|
|
6
|
+
title: string;
|
|
7
|
+
email: string;
|
|
8
|
+
phone: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface IBorrowerDataContactDoc extends IBorrowerDataContact, Document {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const BorrowerDataContactSchema = new mongoose.Schema(
|
|
15
|
+
{
|
|
16
|
+
name: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
title: {
|
|
21
|
+
type: String,
|
|
22
|
+
},
|
|
23
|
+
email: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
phone: {
|
|
27
|
+
type: String,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{ timestamps: false, versionKey: false },
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
export const BorrowerDataContactModel: mongoose.Model<IBorrowerDataContactDoc> = mongoose.model<IBorrowerDataContactDoc>(MODEL_NAMES.borrowerDataContacts, BorrowerDataContactSchema);
|
|
@@ -0,0 +1,32 @@
|
|
|
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, { Document } from 'mongoose';
|
|
26
|
+
export interface IBorrowerDataGuarantee {
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IBorrowerDataGuaranteeDoc extends IBorrowerDataGuarantee, Document {
|
|
31
|
+
}
|
|
32
|
+
export declare const BorrowerDataGuaranteeModel: mongoose.Model<IBorrowerDataGuaranteeDoc>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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.BorrowerDataGuaranteeModel = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
const BorrowerDataGuaranteeSchema = new mongoose_1.default.Schema({
|
|
10
|
+
name: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
typeOf: {
|
|
15
|
+
type: String,
|
|
16
|
+
},
|
|
17
|
+
}, { timestamps: false, versionKey: false });
|
|
18
|
+
exports.BorrowerDataGuaranteeModel = mongoose_1.default.model(_models_1.MODEL_NAMES.borrowerDataGuarantees, BorrowerDataGuaranteeSchema);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import mongoose, { Document } from 'mongoose';
|
|
2
|
+
import { MODEL_NAMES } from './_models';
|
|
3
|
+
|
|
4
|
+
export interface IBorrowerDataGuarantee {
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface IBorrowerDataGuaranteeDoc extends IBorrowerDataGuarantee, Document {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const BorrowerDataGuaranteeSchema = new mongoose.Schema(
|
|
13
|
+
{
|
|
14
|
+
name: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
typeOf: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{ timestamps: false, versionKey: false },
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export const BorrowerDataGuaranteeModel: mongoose.Model<IBorrowerDataGuaranteeDoc> = mongoose.model<IBorrowerDataGuaranteeDoc>(MODEL_NAMES.borrowerDataGuarantees, BorrowerDataGuaranteeSchema);
|
|
@@ -0,0 +1,35 @@
|
|
|
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, { Document } from 'mongoose';
|
|
26
|
+
export interface IBorrowerDataInsurance {
|
|
27
|
+
type: string;
|
|
28
|
+
coverageAmount: number;
|
|
29
|
+
policyDates: string;
|
|
30
|
+
company: string;
|
|
31
|
+
notes: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IBorrowerDataInsuranceDoc extends IBorrowerDataInsurance, Document {
|
|
34
|
+
}
|
|
35
|
+
export declare const BorrowerDataInsuranceModel: mongoose.Model<IBorrowerDataInsuranceDoc>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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.BorrowerDataInsuranceModel = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
const BorrowerDataInsuranceSchema = new mongoose_1.default.Schema({
|
|
10
|
+
type: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
coverageAmount: {
|
|
15
|
+
type: Number,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
policyDates: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
company: {
|
|
22
|
+
type: String,
|
|
23
|
+
},
|
|
24
|
+
notes: {
|
|
25
|
+
type: String,
|
|
26
|
+
},
|
|
27
|
+
}, { timestamps: false, versionKey: false });
|
|
28
|
+
exports.BorrowerDataInsuranceModel = mongoose_1.default.model(_models_1.MODEL_NAMES.borrowerDataInsurances, BorrowerDataInsuranceSchema);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import mongoose, { Document } from 'mongoose';
|
|
2
|
+
import { MODEL_NAMES } from './_models';
|
|
3
|
+
|
|
4
|
+
export interface IBorrowerDataInsurance {
|
|
5
|
+
type: string;
|
|
6
|
+
coverageAmount: number;
|
|
7
|
+
policyDates: string;
|
|
8
|
+
company: string;
|
|
9
|
+
notes: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IBorrowerDataInsuranceDoc extends IBorrowerDataInsurance, Document {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const BorrowerDataInsuranceSchema = new mongoose.Schema(
|
|
16
|
+
{
|
|
17
|
+
type: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
coverageAmount: {
|
|
22
|
+
type: Number,
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
policyDates: {
|
|
26
|
+
type: String,
|
|
27
|
+
},
|
|
28
|
+
company: {
|
|
29
|
+
type: String,
|
|
30
|
+
},
|
|
31
|
+
notes: {
|
|
32
|
+
type: String,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{ timestamps: false, versionKey: false },
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export const BorrowerDataInsuranceModel: mongoose.Model<IBorrowerDataInsuranceDoc> = mongoose.model<IBorrowerDataInsuranceDoc>(MODEL_NAMES.borrowerDataInsurances, BorrowerDataInsuranceSchema);
|
|
@@ -0,0 +1,32 @@
|
|
|
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, { Document } from 'mongoose';
|
|
26
|
+
export interface IBorrowerDataInventory {
|
|
27
|
+
description: string;
|
|
28
|
+
advanceRate: number;
|
|
29
|
+
}
|
|
30
|
+
export interface IBorrowerDataInventoryDoc extends IBorrowerDataInventory, Document {
|
|
31
|
+
}
|
|
32
|
+
export declare const BorrowerDataInventoryModel: mongoose.Model<IBorrowerDataInventoryDoc>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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.BorrowerDataInventoryModel = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
const BorrowerDataInventorySchema = new mongoose_1.default.Schema({
|
|
10
|
+
description: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
advanceRate: {
|
|
15
|
+
type: Number,
|
|
16
|
+
},
|
|
17
|
+
}, { timestamps: false, versionKey: false });
|
|
18
|
+
exports.BorrowerDataInventoryModel = mongoose_1.default.model(_models_1.MODEL_NAMES.borrowerDataInventories, BorrowerDataInventorySchema);
|