gemcap-be-common 1.5.107 → 1.5.108
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/AiJob.model.d.ts +2 -2
- package/models/AiJob.model.ts +2 -2
- package/models/LoanPayment.model.d.ts +12 -12
- package/models/_models.d.ts +1 -0
- package/models/_models.ts +3 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/models/AiJob.model.d.ts
CHANGED
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
/// <reference types="mongoose/types/virtuals" />
|
|
29
29
|
/// <reference types="mongoose/types/inferschematype" />
|
|
30
30
|
import mongoose from 'mongoose';
|
|
31
|
-
import {
|
|
31
|
+
import { TModelName } from './_models';
|
|
32
32
|
import { TTaskStatus } from '../interfaces/task.interface';
|
|
33
33
|
export interface IAIJob {
|
|
34
34
|
taskId: string;
|
|
35
35
|
userId: string;
|
|
36
36
|
status: TTaskStatus;
|
|
37
37
|
target: {
|
|
38
|
-
type:
|
|
38
|
+
type: TModelName;
|
|
39
39
|
id: string;
|
|
40
40
|
};
|
|
41
41
|
context: unknown;
|
package/models/AiJob.model.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
|
|
3
|
-
import { MODEL_NAMES } from './_models';
|
|
3
|
+
import { MODEL_NAMES, TModelName } from './_models';
|
|
4
4
|
import { TTaskStatus } from '../interfaces/task.interface';
|
|
5
5
|
|
|
6
6
|
export interface IAIJob {
|
|
@@ -10,7 +10,7 @@ export interface IAIJob {
|
|
|
10
10
|
status: TTaskStatus;
|
|
11
11
|
|
|
12
12
|
target: {
|
|
13
|
-
type:
|
|
13
|
+
type: TModelName;
|
|
14
14
|
id: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -73,6 +73,10 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
73
73
|
createdAt: NativeDate;
|
|
74
74
|
updatedAt: NativeDate;
|
|
75
75
|
} & {
|
|
76
|
+
loanTransactions: mongoose.Types.DocumentArray<{
|
|
77
|
+
amount?: number;
|
|
78
|
+
transactionId?: mongoose.Types.ObjectId;
|
|
79
|
+
}>;
|
|
76
80
|
date: Date;
|
|
77
81
|
productId: mongoose.Types.ObjectId;
|
|
78
82
|
amount: number;
|
|
@@ -81,16 +85,16 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
81
85
|
amount?: number;
|
|
82
86
|
statementId?: mongoose.Types.ObjectId;
|
|
83
87
|
}>;
|
|
84
|
-
loanTransactions: mongoose.Types.DocumentArray<{
|
|
85
|
-
amount?: number;
|
|
86
|
-
transactionId?: mongoose.Types.ObjectId;
|
|
87
|
-
}>;
|
|
88
88
|
__v?: number;
|
|
89
89
|
settlementCode?: string;
|
|
90
90
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
91
91
|
createdAt: NativeDate;
|
|
92
92
|
updatedAt: NativeDate;
|
|
93
93
|
} & {
|
|
94
|
+
loanTransactions: mongoose.Types.DocumentArray<{
|
|
95
|
+
amount?: number;
|
|
96
|
+
transactionId?: mongoose.Types.ObjectId;
|
|
97
|
+
}>;
|
|
94
98
|
date: Date;
|
|
95
99
|
productId: mongoose.Types.ObjectId;
|
|
96
100
|
amount: number;
|
|
@@ -99,16 +103,16 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
99
103
|
amount?: number;
|
|
100
104
|
statementId?: mongoose.Types.ObjectId;
|
|
101
105
|
}>;
|
|
102
|
-
loanTransactions: mongoose.Types.DocumentArray<{
|
|
103
|
-
amount?: number;
|
|
104
|
-
transactionId?: mongoose.Types.ObjectId;
|
|
105
|
-
}>;
|
|
106
106
|
__v?: number;
|
|
107
107
|
settlementCode?: string;
|
|
108
108
|
}>> & mongoose.FlatRecord<{
|
|
109
109
|
createdAt: NativeDate;
|
|
110
110
|
updatedAt: NativeDate;
|
|
111
111
|
} & {
|
|
112
|
+
loanTransactions: mongoose.Types.DocumentArray<{
|
|
113
|
+
amount?: number;
|
|
114
|
+
transactionId?: mongoose.Types.ObjectId;
|
|
115
|
+
}>;
|
|
112
116
|
date: Date;
|
|
113
117
|
productId: mongoose.Types.ObjectId;
|
|
114
118
|
amount: number;
|
|
@@ -117,10 +121,6 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
117
121
|
amount?: number;
|
|
118
122
|
statementId?: mongoose.Types.ObjectId;
|
|
119
123
|
}>;
|
|
120
|
-
loanTransactions: mongoose.Types.DocumentArray<{
|
|
121
|
-
amount?: number;
|
|
122
|
-
transactionId?: mongoose.Types.ObjectId;
|
|
123
|
-
}>;
|
|
124
124
|
__v?: number;
|
|
125
125
|
settlementCode?: string;
|
|
126
126
|
}> & {
|
package/models/_models.d.ts
CHANGED
package/models/_models.ts
CHANGED
|
@@ -66,7 +66,7 @@ export const MODEL_NAMES = {
|
|
|
66
66
|
customerGroups: 'customerGroups',
|
|
67
67
|
deletedRecords: 'deleted_records',
|
|
68
68
|
equipment: 'equipment',
|
|
69
|
-
earlyPayments
|
|
69
|
+
earlyPayments: 'early_payments',
|
|
70
70
|
externalUserAccess: 'external_user_access',
|
|
71
71
|
facilities: 'facilities',
|
|
72
72
|
facilityChargeGroups: 'facility_charge_groups',
|
|
@@ -138,3 +138,5 @@ export const MODEL_NAMES = {
|
|
|
138
138
|
userTokens: 'user_tokens',
|
|
139
139
|
yieldData: 'yield_data',
|
|
140
140
|
};
|
|
141
|
+
|
|
142
|
+
export type TModelName = (typeof MODEL_NAMES)[keyof typeof MODEL_NAMES];
|