gemcap-be-common 1.3.160 → 1.3.162
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/AccountPayableItem.model.d.ts +3 -3
- package/models/Appraiser.model.d.ts +42 -0
- package/models/Appraiser.model.js +33 -0
- package/models/Appraiser.model.ts +49 -0
- package/models/AppraiserContact.model.d.ts +47 -0
- package/models/AppraiserContact.model.js +57 -0
- package/models/AppraiserContact.model.ts +78 -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/InventoryItem.model.d.ts +3 -3
- package/models/LoanProducts.model.d.ts +3 -3
- package/models/LoanStatementStatus.model.d.ts +9 -9
- package/models/ProspectSharepoint.model.d.ts +0 -1
- package/models/ProspectSharepoint.model.js +0 -1
- package/models/ProspectSharepoint.model.ts +0 -1
- package/models/ReceivableItem.model.d.ts +3 -3
- package/models/_index.d.ts +3 -3
- package/models/_models.d.ts +2 -0
- package/models/_models.js +2 -0
- package/models/_models.ts +5 -0
- package/package.json +1 -1
- package/services/borrowers.service.d.ts +2 -2
- package/services/loan-transactions.service.d.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -43,8 +43,8 @@ export declare const AccountPayableItemSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
43
43
|
createdAt: NativeDate;
|
|
44
44
|
updatedAt: NativeDate;
|
|
45
45
|
} & {
|
|
46
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
47
46
|
order: number;
|
|
47
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
48
48
|
apDate: Date;
|
|
49
49
|
amount: number;
|
|
50
50
|
__v?: number;
|
|
@@ -57,8 +57,8 @@ export declare const AccountPayableItemSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
57
57
|
createdAt: NativeDate;
|
|
58
58
|
updatedAt: NativeDate;
|
|
59
59
|
} & {
|
|
60
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
61
60
|
order: number;
|
|
61
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
62
62
|
apDate: Date;
|
|
63
63
|
amount: number;
|
|
64
64
|
__v?: number;
|
|
@@ -71,8 +71,8 @@ export declare const AccountPayableItemSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
71
71
|
createdAt: NativeDate;
|
|
72
72
|
updatedAt: NativeDate;
|
|
73
73
|
} & {
|
|
74
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
75
74
|
order: number;
|
|
75
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
76
76
|
apDate: Date;
|
|
77
77
|
amount: number;
|
|
78
78
|
__v?: number;
|
|
@@ -0,0 +1,42 @@
|
|
|
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, Model } from 'mongoose';
|
|
26
|
+
import Joi from 'joi';
|
|
27
|
+
export interface IAppraiser {
|
|
28
|
+
isDeleted: boolean;
|
|
29
|
+
name: string;
|
|
30
|
+
order?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface IAppraiserWithID extends IAppraiser {
|
|
33
|
+
_id: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IAppraiserDoc extends IAppraiser, Document {
|
|
36
|
+
}
|
|
37
|
+
export declare const AppraiserValidationSchema: Joi.ObjectSchema<any>;
|
|
38
|
+
export type AppraiserModel = Model<IAppraiser, object, object>;
|
|
39
|
+
export declare const AppraiserSchema: mongoose.Schema<IAppraiser, AppraiserModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAppraiser, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAppraiser>> & mongoose.FlatRecord<IAppraiser> & {
|
|
40
|
+
_id: mongoose.Types.ObjectId;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const Appraiser: AppraiserModel;
|
|
@@ -0,0 +1,33 @@
|
|
|
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.Appraiser = exports.AppraiserSchema = exports.AppraiserValidationSchema = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const joi_1 = __importDefault(require("joi"));
|
|
9
|
+
const _models_1 = require("./_models");
|
|
10
|
+
exports.AppraiserValidationSchema = joi_1.default.object({
|
|
11
|
+
_id: joi_1.default.string(),
|
|
12
|
+
name: joi_1.default.string().required(),
|
|
13
|
+
isDeleted: joi_1.default.boolean(),
|
|
14
|
+
order: joi_1.default.number().required().allow(null),
|
|
15
|
+
});
|
|
16
|
+
exports.AppraiserSchema = new mongoose_1.default.Schema({
|
|
17
|
+
isDeleted: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false,
|
|
20
|
+
},
|
|
21
|
+
name: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
order: {
|
|
26
|
+
type: Number,
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
29
|
+
}, {
|
|
30
|
+
timestamps: { createdAt: true, updatedAt: true },
|
|
31
|
+
versionKey: false,
|
|
32
|
+
});
|
|
33
|
+
exports.Appraiser = mongoose_1.default.model(_models_1.MODEL_NAMES.appraiser, exports.AppraiserSchema);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import mongoose, { Document, Model } from 'mongoose';
|
|
2
|
+
import Joi from 'joi';
|
|
3
|
+
|
|
4
|
+
import { MODEL_NAMES } from './_models';
|
|
5
|
+
|
|
6
|
+
export interface IAppraiser {
|
|
7
|
+
isDeleted: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
order?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IAppraiserWithID extends IAppraiser {
|
|
13
|
+
_id: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface IAppraiserDoc extends IAppraiser, Document {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const AppraiserValidationSchema = Joi.object({
|
|
20
|
+
_id: Joi.string(),
|
|
21
|
+
name: Joi.string().required(),
|
|
22
|
+
isDeleted: Joi.boolean(),
|
|
23
|
+
order: Joi.number().required().allow (null),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export type AppraiserModel = Model<IAppraiser, object, object>;
|
|
27
|
+
|
|
28
|
+
export const AppraiserSchema = new mongoose.Schema<IAppraiser, AppraiserModel>(
|
|
29
|
+
{
|
|
30
|
+
isDeleted: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false,
|
|
33
|
+
},
|
|
34
|
+
name: {
|
|
35
|
+
type: String,
|
|
36
|
+
required: true,
|
|
37
|
+
},
|
|
38
|
+
order: {
|
|
39
|
+
type: Number,
|
|
40
|
+
required: true,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
timestamps: { createdAt: true, updatedAt: true },
|
|
45
|
+
versionKey: false,
|
|
46
|
+
},
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export const Appraiser = mongoose.model<IAppraiser, AppraiserModel>(MODEL_NAMES.appraiser, AppraiserSchema);
|
|
@@ -0,0 +1,47 @@
|
|
|
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, Model } from 'mongoose';
|
|
26
|
+
import Joi from 'joi';
|
|
27
|
+
export interface IAppraiserContact {
|
|
28
|
+
appraiserId: mongoose.Types.ObjectId;
|
|
29
|
+
isDeleted: boolean;
|
|
30
|
+
name: string;
|
|
31
|
+
email?: string;
|
|
32
|
+
normalizedEmail?: string;
|
|
33
|
+
phone?: string;
|
|
34
|
+
comment?: string;
|
|
35
|
+
order?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface IAppraiserContactWithID extends IAppraiserContact {
|
|
38
|
+
_id: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IAppraiserContactDoc extends IAppraiserContact, Document {
|
|
41
|
+
}
|
|
42
|
+
export declare const AppraiserContactValidationSchema: Joi.ObjectSchema<any>;
|
|
43
|
+
export type AppraiserContactModel = Model<IAppraiserContact, object, object>;
|
|
44
|
+
export declare const AppraiserContactSchema: mongoose.Schema<IAppraiserContact, AppraiserContactModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAppraiserContact, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAppraiserContact>> & mongoose.FlatRecord<IAppraiserContact> & {
|
|
45
|
+
_id: mongoose.Types.ObjectId;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const AppraiserContact: AppraiserContactModel;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.AppraiserContact = exports.AppraiserContactSchema = exports.AppraiserContactValidationSchema = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const joi_1 = __importDefault(require("joi"));
|
|
9
|
+
const _models_1 = require("./_models");
|
|
10
|
+
exports.AppraiserContactValidationSchema = joi_1.default.object({
|
|
11
|
+
_id: joi_1.default.string(),
|
|
12
|
+
appraiserId: joi_1.default.string(),
|
|
13
|
+
name: joi_1.default.string().required(),
|
|
14
|
+
email: joi_1.default.string().allow(''),
|
|
15
|
+
phone: joi_1.default.string().allow(''),
|
|
16
|
+
comment: joi_1.default.string().allow(''),
|
|
17
|
+
isDeleted: joi_1.default.boolean(),
|
|
18
|
+
order: joi_1.default.number().required().allow(null),
|
|
19
|
+
});
|
|
20
|
+
exports.AppraiserContactSchema = new mongoose_1.default.Schema({
|
|
21
|
+
appraiserId: {
|
|
22
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
23
|
+
ref: _models_1.MODEL_NAMES.appraiser,
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
isDeleted: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false,
|
|
29
|
+
},
|
|
30
|
+
name: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: true,
|
|
33
|
+
},
|
|
34
|
+
email: {
|
|
35
|
+
type: String,
|
|
36
|
+
},
|
|
37
|
+
normalizedEmail: {
|
|
38
|
+
type: String,
|
|
39
|
+
lowercase: true,
|
|
40
|
+
select: false,
|
|
41
|
+
unique: true,
|
|
42
|
+
},
|
|
43
|
+
phone: {
|
|
44
|
+
type: String,
|
|
45
|
+
},
|
|
46
|
+
comment: {
|
|
47
|
+
type: String,
|
|
48
|
+
},
|
|
49
|
+
order: {
|
|
50
|
+
type: Number,
|
|
51
|
+
required: true,
|
|
52
|
+
},
|
|
53
|
+
}, {
|
|
54
|
+
timestamps: { createdAt: true, updatedAt: true },
|
|
55
|
+
versionKey: false,
|
|
56
|
+
});
|
|
57
|
+
exports.AppraiserContact = mongoose_1.default.model(_models_1.MODEL_NAMES.appraiserContact, exports.AppraiserContactSchema);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import mongoose, { Document, Model } from 'mongoose';
|
|
2
|
+
import Joi from 'joi';
|
|
3
|
+
|
|
4
|
+
import { MODEL_NAMES } from './_models';
|
|
5
|
+
|
|
6
|
+
export interface IAppraiserContact {
|
|
7
|
+
appraiserId: mongoose.Types.ObjectId;
|
|
8
|
+
isDeleted: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
normalizedEmail?: string;
|
|
12
|
+
phone?: string;
|
|
13
|
+
comment?: string;
|
|
14
|
+
order?: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface IAppraiserContactWithID extends IAppraiserContact {
|
|
18
|
+
_id: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IAppraiserContactDoc extends IAppraiserContact, Document {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const AppraiserContactValidationSchema = Joi.object({
|
|
25
|
+
_id: Joi.string(),
|
|
26
|
+
appraiserId: Joi.string(),
|
|
27
|
+
name: Joi.string().required(),
|
|
28
|
+
email: Joi.string().allow(''),
|
|
29
|
+
phone: Joi.string().allow(''),
|
|
30
|
+
comment: Joi.string().allow(''),
|
|
31
|
+
isDeleted: Joi.boolean(),
|
|
32
|
+
order: Joi.number().required().allow(null),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export type AppraiserContactModel = Model<IAppraiserContact, object, object>;
|
|
36
|
+
|
|
37
|
+
export const AppraiserContactSchema = new mongoose.Schema<IAppraiserContact, AppraiserContactModel>(
|
|
38
|
+
{
|
|
39
|
+
appraiserId: {
|
|
40
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
41
|
+
ref: MODEL_NAMES.appraiser,
|
|
42
|
+
required: true,
|
|
43
|
+
},
|
|
44
|
+
isDeleted: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false,
|
|
47
|
+
},
|
|
48
|
+
name: {
|
|
49
|
+
type: String,
|
|
50
|
+
required: true,
|
|
51
|
+
},
|
|
52
|
+
email: {
|
|
53
|
+
type: String,
|
|
54
|
+
},
|
|
55
|
+
normalizedEmail: {
|
|
56
|
+
type: String,
|
|
57
|
+
lowercase: true,
|
|
58
|
+
select: false,
|
|
59
|
+
unique: true,
|
|
60
|
+
},
|
|
61
|
+
phone: {
|
|
62
|
+
type: String,
|
|
63
|
+
},
|
|
64
|
+
comment: {
|
|
65
|
+
type: String,
|
|
66
|
+
},
|
|
67
|
+
order: {
|
|
68
|
+
type: Number,
|
|
69
|
+
required: true,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
timestamps: { createdAt: true, updatedAt: true },
|
|
74
|
+
versionKey: false,
|
|
75
|
+
},
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
export const AppraiserContact = mongoose.model<IAppraiserContact, AppraiserContactModel>(MODEL_NAMES.appraiserContact, AppraiserContactSchema);
|
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
|
-
order: number;
|
|
50
49
|
isDeleted: boolean;
|
|
50
|
+
order: number;
|
|
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
|
-
order: number;
|
|
64
63
|
isDeleted: boolean;
|
|
64
|
+
order: number;
|
|
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
|
-
order: number;
|
|
78
77
|
isDeleted: boolean;
|
|
78
|
+
order: number;
|
|
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
|
-
type: string;
|
|
62
61
|
name: string;
|
|
62
|
+
type: 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
|
-
type: string;
|
|
81
80
|
name: string;
|
|
81
|
+
type: 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
|
-
type: string;
|
|
100
99
|
name: string;
|
|
100
|
+
type: 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;
|
|
38
37
|
name: string;
|
|
39
38
|
order: number;
|
|
40
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
41
39
|
type: string;
|
|
40
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
42
41
|
name: string;
|
|
43
42
|
order: number;
|
|
44
|
-
}>> & mongoose.FlatRecord<{
|
|
45
43
|
type: string;
|
|
44
|
+
}>> & mongoose.FlatRecord<{
|
|
46
45
|
name: string;
|
|
47
46
|
order: number;
|
|
47
|
+
type: string;
|
|
48
48
|
}> & {
|
|
49
49
|
_id: mongoose.Types.ObjectId;
|
|
50
50
|
}>;
|
|
@@ -71,8 +71,8 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
71
71
|
createdAt: NativeDate;
|
|
72
72
|
updatedAt: NativeDate;
|
|
73
73
|
} & {
|
|
74
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
75
74
|
order: number;
|
|
75
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
76
76
|
value: number;
|
|
77
77
|
skuDate: Date;
|
|
78
78
|
category: string;
|
|
@@ -93,8 +93,8 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
93
93
|
createdAt: NativeDate;
|
|
94
94
|
updatedAt: NativeDate;
|
|
95
95
|
} & {
|
|
96
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
97
96
|
order: number;
|
|
97
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
98
98
|
value: number;
|
|
99
99
|
skuDate: Date;
|
|
100
100
|
category: string;
|
|
@@ -115,8 +115,8 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
115
115
|
createdAt: NativeDate;
|
|
116
116
|
updatedAt: NativeDate;
|
|
117
117
|
} & {
|
|
118
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
119
118
|
order: number;
|
|
119
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
120
120
|
value: number;
|
|
121
121
|
skuDate: Date;
|
|
122
122
|
category: 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;
|
|
68
67
|
name: string;
|
|
69
68
|
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;
|
|
94
93
|
name: string;
|
|
95
94
|
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;
|
|
120
119
|
name: string;
|
|
121
120
|
order: number;
|
|
121
|
+
type: string;
|
|
122
122
|
active: boolean;
|
|
123
123
|
borrowerId: mongoose.Types.ObjectId;
|
|
124
124
|
code: string;
|
|
@@ -38,35 +38,35 @@ export declare const LoanStatementStatusSchema: mongoose.Schema<any, mongoose.Mo
|
|
|
38
38
|
createdAt: NativeDate;
|
|
39
39
|
updatedAt: NativeDate;
|
|
40
40
|
} & {
|
|
41
|
-
month: number;
|
|
42
|
-
year: number;
|
|
43
41
|
productId: mongoose.Types.ObjectId;
|
|
42
|
+
year: number;
|
|
43
|
+
month: number;
|
|
44
44
|
__v?: number;
|
|
45
45
|
actual?: boolean;
|
|
46
|
-
lastCalculated?: Date;
|
|
47
46
|
locked?: boolean;
|
|
47
|
+
lastCalculated?: Date;
|
|
48
48
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
49
49
|
createdAt: NativeDate;
|
|
50
50
|
updatedAt: NativeDate;
|
|
51
51
|
} & {
|
|
52
|
-
month: number;
|
|
53
|
-
year: number;
|
|
54
52
|
productId: mongoose.Types.ObjectId;
|
|
53
|
+
year: number;
|
|
54
|
+
month: number;
|
|
55
55
|
__v?: number;
|
|
56
56
|
actual?: boolean;
|
|
57
|
-
lastCalculated?: Date;
|
|
58
57
|
locked?: boolean;
|
|
58
|
+
lastCalculated?: Date;
|
|
59
59
|
}>> & mongoose.FlatRecord<{
|
|
60
60
|
createdAt: NativeDate;
|
|
61
61
|
updatedAt: NativeDate;
|
|
62
62
|
} & {
|
|
63
|
-
month: number;
|
|
64
|
-
year: number;
|
|
65
63
|
productId: mongoose.Types.ObjectId;
|
|
64
|
+
year: number;
|
|
65
|
+
month: number;
|
|
66
66
|
__v?: number;
|
|
67
67
|
actual?: boolean;
|
|
68
|
-
lastCalculated?: Date;
|
|
69
68
|
locked?: boolean;
|
|
69
|
+
lastCalculated?: Date;
|
|
70
70
|
}> & {
|
|
71
71
|
_id: mongoose.Types.ObjectId;
|
|
72
72
|
}>;
|
|
@@ -31,7 +31,6 @@ export declare enum ESharepointSyncStatus {
|
|
|
31
31
|
export declare const SharepointFolderTypes: {
|
|
32
32
|
readonly main: "main";
|
|
33
33
|
readonly confidential: "confidential";
|
|
34
|
-
readonly confidential_declined: "confidential_declined";
|
|
35
34
|
};
|
|
36
35
|
export type TSharepointFolderType = typeof SharepointFolderTypes[keyof typeof SharepointFolderTypes];
|
|
37
36
|
export interface IProspectSharepoint {
|
|
@@ -11,7 +11,6 @@ export enum ESharepointSyncStatus {
|
|
|
11
11
|
export const SharepointFolderTypes = {
|
|
12
12
|
main: 'main',
|
|
13
13
|
confidential: 'confidential',
|
|
14
|
-
confidential_declined: 'confidential_declined',
|
|
15
14
|
} as const;
|
|
16
15
|
|
|
17
16
|
export type TSharepointFolderType = typeof SharepointFolderTypes[keyof typeof SharepointFolderTypes];
|
|
@@ -50,8 +50,8 @@ export declare const ReceivableItemSchema: mongoose.Schema<any, mongoose.Model<a
|
|
|
50
50
|
createdAt: NativeDate;
|
|
51
51
|
updatedAt: NativeDate;
|
|
52
52
|
} & {
|
|
53
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
54
53
|
order: number;
|
|
54
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
55
55
|
invoiceNumber: string;
|
|
56
56
|
invoiceDate: Date;
|
|
57
57
|
customerTitle: string;
|
|
@@ -66,8 +66,8 @@ export declare const ReceivableItemSchema: mongoose.Schema<any, mongoose.Model<a
|
|
|
66
66
|
createdAt: NativeDate;
|
|
67
67
|
updatedAt: NativeDate;
|
|
68
68
|
} & {
|
|
69
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
70
69
|
order: number;
|
|
70
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
71
71
|
invoiceNumber: string;
|
|
72
72
|
invoiceDate: Date;
|
|
73
73
|
customerTitle: string;
|
|
@@ -82,8 +82,8 @@ export declare const ReceivableItemSchema: mongoose.Schema<any, mongoose.Model<a
|
|
|
82
82
|
createdAt: NativeDate;
|
|
83
83
|
updatedAt: NativeDate;
|
|
84
84
|
} & {
|
|
85
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
86
85
|
order: number;
|
|
86
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
87
87
|
invoiceNumber: string;
|
|
88
88
|
invoiceDate: Date;
|
|
89
89
|
customerTitle: string;
|
package/models/_index.d.ts
CHANGED
|
@@ -32,9 +32,9 @@ export declare const allSchemas: {
|
|
|
32
32
|
updatedAt: NativeDate;
|
|
33
33
|
} & {
|
|
34
34
|
order: number;
|
|
35
|
-
amount: number;
|
|
36
35
|
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
37
36
|
apDate: Date;
|
|
37
|
+
amount: number;
|
|
38
38
|
__v?: number;
|
|
39
39
|
poNumber?: string;
|
|
40
40
|
customerName?: string;
|
|
@@ -46,9 +46,9 @@ export declare const allSchemas: {
|
|
|
46
46
|
updatedAt: NativeDate;
|
|
47
47
|
} & {
|
|
48
48
|
order: number;
|
|
49
|
-
amount: number;
|
|
50
49
|
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
51
50
|
apDate: Date;
|
|
51
|
+
amount: number;
|
|
52
52
|
__v?: number;
|
|
53
53
|
poNumber?: string;
|
|
54
54
|
customerName?: string;
|
|
@@ -60,9 +60,9 @@ export declare const allSchemas: {
|
|
|
60
60
|
updatedAt: NativeDate;
|
|
61
61
|
} & {
|
|
62
62
|
order: number;
|
|
63
|
-
amount: number;
|
|
64
63
|
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
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
|
@@ -8,7 +8,9 @@ export declare const MODEL_NAMES: {
|
|
|
8
8
|
ARAvailabilityManualEntries: string;
|
|
9
9
|
availabilitySign: string;
|
|
10
10
|
availabilitySignedData: string;
|
|
11
|
+
appraiser: string;
|
|
11
12
|
auditors: string;
|
|
13
|
+
appraiserContact: string;
|
|
12
14
|
auditorAccess: string;
|
|
13
15
|
auditorContact: string;
|
|
14
16
|
bankAccounts: string;
|
package/models/_models.js
CHANGED
|
@@ -11,7 +11,9 @@ exports.MODEL_NAMES = {
|
|
|
11
11
|
ARAvailabilityManualEntries: 'availability_manual_entries',
|
|
12
12
|
availabilitySign: 'availabilitySign',
|
|
13
13
|
availabilitySignedData: 'availability_signed_datas',
|
|
14
|
+
appraiser: 'Appraiser',
|
|
14
15
|
auditors: 'auditors',
|
|
16
|
+
appraiserContact: 'appraiser_contacts',
|
|
15
17
|
auditorAccess: 'auditor_access',
|
|
16
18
|
auditorContact: 'auditor_contacts',
|
|
17
19
|
bankAccounts: 'bankAccounts',
|
package/models/_models.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { AppraiserModel } from './Appraiser.model';
|
|
2
|
+
import { IAppraiserContact } from './AppraiserContact.model';
|
|
3
|
+
|
|
1
4
|
export const MODEL_NAMES = {
|
|
2
5
|
accountPayableItem: 'AccountPayableItem',
|
|
3
6
|
allocatedBankTransactions: 'allocated_bank_transactions',
|
|
@@ -8,7 +11,9 @@ export const MODEL_NAMES = {
|
|
|
8
11
|
ARAvailabilityManualEntries: 'availability_manual_entries',
|
|
9
12
|
availabilitySign: 'availabilitySign',
|
|
10
13
|
availabilitySignedData: 'availability_signed_datas',
|
|
14
|
+
appraiser: 'Appraiser',
|
|
11
15
|
auditors: 'auditors',
|
|
16
|
+
appraiserContact: 'appraiser_contacts',
|
|
12
17
|
auditorAccess: 'auditor_access',
|
|
13
18
|
auditorContact: 'auditor_contacts',
|
|
14
19
|
bankAccounts: 'bankAccounts',
|