gemcap-be-common 1.5.160 → 1.5.161
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.
|
@@ -29,6 +29,12 @@ export interface IBorrowerDataOption {
|
|
|
29
29
|
type: string;
|
|
30
30
|
isActive: boolean;
|
|
31
31
|
}
|
|
32
|
+
export interface IBorrowerDataOptionLean extends IBorrowerDataOption {
|
|
33
|
+
_id: mongoose.Types.ObjectId;
|
|
34
|
+
}
|
|
35
|
+
export interface IBorrowerDataOptionPlain extends IBorrowerDataOption {
|
|
36
|
+
_id: string;
|
|
37
|
+
}
|
|
32
38
|
interface IBorrowerDataOptionDoc extends IBorrowerDataOption, Document {
|
|
33
39
|
}
|
|
34
40
|
export type TBorrowerDataOptionModel = mongoose.Model<IBorrowerDataOptionDoc>;
|
|
@@ -60,6 +66,13 @@ export interface IBorrowerData {
|
|
|
60
66
|
}
|
|
61
67
|
export interface IBorrowerDataDoc extends IBorrowerData, Document {
|
|
62
68
|
}
|
|
69
|
+
export interface IBorrowerDataLean extends IBorrowerData {
|
|
70
|
+
_id: mongoose.Types.ObjectId;
|
|
71
|
+
}
|
|
72
|
+
export interface IBorrowerDataPlain extends Omit<IBorrowerData, 'dataOption'> {
|
|
73
|
+
_id: string;
|
|
74
|
+
dataOption: string;
|
|
75
|
+
}
|
|
63
76
|
export interface IBorrowerDataDocWithName extends IBorrowerDataDoc {
|
|
64
77
|
dataName: string;
|
|
65
78
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import mongoose, { Document } from 'mongoose';
|
|
2
|
+
|
|
2
3
|
import { MODEL_NAMES } from './_models';
|
|
3
|
-
import { IFile } from './File.model';
|
|
4
4
|
|
|
5
5
|
export interface IBorrowerDataOption {
|
|
6
6
|
order: number;
|
|
@@ -9,6 +9,14 @@ export interface IBorrowerDataOption {
|
|
|
9
9
|
isActive: boolean;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export interface IBorrowerDataOptionLean extends IBorrowerDataOption {
|
|
13
|
+
_id: mongoose.Types.ObjectId;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface IBorrowerDataOptionPlain extends IBorrowerDataOption {
|
|
17
|
+
_id: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
interface IBorrowerDataOptionDoc extends IBorrowerDataOption, Document {
|
|
13
21
|
}
|
|
14
22
|
|
|
@@ -38,13 +46,22 @@ export const BorrowerDataOptionSchema = new mongoose.Schema(
|
|
|
38
46
|
export const BorrowerDataOptionModel: mongoose.Model<IBorrowerDataOptionDoc> = mongoose.model<IBorrowerDataOptionDoc>(MODEL_NAMES.borrowerDataOptions, BorrowerDataOptionSchema);
|
|
39
47
|
|
|
40
48
|
export interface IBorrowerData {
|
|
41
|
-
dataOption: mongoose.Types.ObjectId
|
|
42
|
-
dataValue: boolean | string
|
|
49
|
+
dataOption: mongoose.Types.ObjectId;
|
|
50
|
+
dataValue: boolean | string;
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
export interface IBorrowerDataDoc extends IBorrowerData, Document {
|
|
46
54
|
}
|
|
47
55
|
|
|
56
|
+
export interface IBorrowerDataLean extends IBorrowerData {
|
|
57
|
+
_id: mongoose.Types.ObjectId;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface IBorrowerDataPlain extends Omit<IBorrowerData, 'dataOption'> {
|
|
61
|
+
_id: string;
|
|
62
|
+
dataOption: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
48
65
|
export interface IBorrowerDataDocWithName extends IBorrowerDataDoc {
|
|
49
66
|
dataName: string;
|
|
50
67
|
}
|