gemcap-be-common 1.5.116 → 1.5.118
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 +6 -0
- package/models/AiJob.model.js +14 -0
- package/models/AiJob.model.ts +21 -0
- package/models/ProspectIndustry.model.d.ts +7 -6
- package/models/ProspectIndustry.model.ts +7 -5
- package/models/ProspectSource.model.d.ts +14 -3
- package/models/ProspectSource.model.ts +16 -2
- package/models/_index.d.ts +3 -3
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/models/AiJob.model.d.ts
CHANGED
|
@@ -31,6 +31,11 @@ import mongoose from 'mongoose';
|
|
|
31
31
|
import { TModelName } from './_models';
|
|
32
32
|
import { TTaskStatus } from '../interfaces/task.interface';
|
|
33
33
|
export declare const AI_JOBS_FOLDER = "AI_jobs";
|
|
34
|
+
export interface IAIJobResponseChunk {
|
|
35
|
+
type: 'text' | 'thinking' | 'tool' | 'status';
|
|
36
|
+
timestamp: Date;
|
|
37
|
+
content: string;
|
|
38
|
+
}
|
|
34
39
|
export interface IAIJobInputFile {
|
|
35
40
|
storageFileId: string;
|
|
36
41
|
aiStorageFileId: string;
|
|
@@ -72,6 +77,7 @@ export interface IAIJob {
|
|
|
72
77
|
provider?: string;
|
|
73
78
|
model?: string;
|
|
74
79
|
skillId?: string;
|
|
80
|
+
response?: IAIJobResponseChunk[];
|
|
75
81
|
responseText?: string;
|
|
76
82
|
rawResponse?: unknown;
|
|
77
83
|
errorMessage?: string;
|
package/models/AiJob.model.js
CHANGED
|
@@ -83,6 +83,20 @@ exports.AIJobSchema = new mongoose_1.default.Schema({
|
|
|
83
83
|
skillId: {
|
|
84
84
|
type: String,
|
|
85
85
|
},
|
|
86
|
+
response: [{
|
|
87
|
+
type: {
|
|
88
|
+
type: String,
|
|
89
|
+
required: true,
|
|
90
|
+
},
|
|
91
|
+
timestamp: {
|
|
92
|
+
type: Date,
|
|
93
|
+
required: true,
|
|
94
|
+
},
|
|
95
|
+
content: {
|
|
96
|
+
type: String,
|
|
97
|
+
required: true,
|
|
98
|
+
},
|
|
99
|
+
}],
|
|
86
100
|
responseText: {
|
|
87
101
|
type: String,
|
|
88
102
|
},
|
package/models/AiJob.model.ts
CHANGED
|
@@ -5,6 +5,12 @@ import { TTaskStatus } from '../interfaces/task.interface';
|
|
|
5
5
|
|
|
6
6
|
export const AI_JOBS_FOLDER = 'AI_jobs';
|
|
7
7
|
|
|
8
|
+
export interface IAIJobResponseChunk {
|
|
9
|
+
type: 'text' | 'thinking' | 'tool' | 'status';
|
|
10
|
+
timestamp: Date;
|
|
11
|
+
content: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
export interface IAIJobInputFile {
|
|
9
15
|
storageFileId: string;
|
|
10
16
|
aiStorageFileId: string;
|
|
@@ -60,6 +66,7 @@ export interface IAIJob {
|
|
|
60
66
|
model?: string;
|
|
61
67
|
skillId?: string;
|
|
62
68
|
|
|
69
|
+
response?: IAIJobResponseChunk[];
|
|
63
70
|
responseText?: string;
|
|
64
71
|
rawResponse?: unknown;
|
|
65
72
|
|
|
@@ -171,6 +178,20 @@ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
|
|
|
171
178
|
skillId: {
|
|
172
179
|
type: String,
|
|
173
180
|
},
|
|
181
|
+
response: [{
|
|
182
|
+
type: {
|
|
183
|
+
type: String,
|
|
184
|
+
required: true,
|
|
185
|
+
},
|
|
186
|
+
timestamp: {
|
|
187
|
+
type: Date,
|
|
188
|
+
required: true,
|
|
189
|
+
},
|
|
190
|
+
content: {
|
|
191
|
+
type: String,
|
|
192
|
+
required: true,
|
|
193
|
+
},
|
|
194
|
+
}],
|
|
174
195
|
responseText: {
|
|
175
196
|
type: String,
|
|
176
197
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/document" />
|
|
2
1
|
/// <reference types="mongoose/types/types" />
|
|
3
2
|
/// <reference types="mongoose/types/models" />
|
|
4
3
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
5
4
|
/// <reference types="mongoose/types/utility" />
|
|
5
|
+
/// <reference types="mongoose/types/document" />
|
|
6
6
|
/// <reference types="mongoose/types/aggregate" />
|
|
7
7
|
/// <reference types="mongoose/types/callback" />
|
|
8
8
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -27,26 +27,27 @@
|
|
|
27
27
|
/// <reference types="mongoose/types/validation" />
|
|
28
28
|
/// <reference types="mongoose/types/virtuals" />
|
|
29
29
|
/// <reference types="mongoose/types/inferschematype" />
|
|
30
|
-
import mongoose
|
|
30
|
+
import mongoose from 'mongoose';
|
|
31
31
|
export interface ICRMProspectIndustry {
|
|
32
32
|
code: string;
|
|
33
33
|
name: string;
|
|
34
34
|
order: number;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type TCRMProspectIndustryDoc = mongoose.HydratedDocument<ICRMProspectIndustry>;
|
|
37
|
+
export interface ICRMProspectIndustryLean extends ICRMProspectIndustry {
|
|
37
38
|
_id: mongoose.Types.ObjectId;
|
|
38
39
|
createdAt: Date;
|
|
39
40
|
updatedAt: Date;
|
|
40
41
|
}
|
|
41
|
-
export interface
|
|
42
|
-
_id:
|
|
42
|
+
export interface ICRMProspectIndustryPlain extends ICRMProspectIndustry {
|
|
43
|
+
_id: string;
|
|
43
44
|
createdAt: Date;
|
|
44
45
|
updatedAt: Date;
|
|
45
46
|
}
|
|
46
47
|
export interface ICRMProspectIndustryWithId extends ICRMProspectIndustry {
|
|
47
48
|
_id: string;
|
|
48
49
|
}
|
|
49
|
-
export type CRMProspectIndustryModel = Model<ICRMProspectIndustry
|
|
50
|
+
export type CRMProspectIndustryModel = mongoose.Model<ICRMProspectIndustry>;
|
|
50
51
|
export declare const CRMProspectIndustrySchema: mongoose.Schema<ICRMProspectIndustry, CRMProspectIndustryModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ICRMProspectIndustry, mongoose.Document<unknown, {}, mongoose.FlatRecord<ICRMProspectIndustry>> & mongoose.FlatRecord<ICRMProspectIndustry> & {
|
|
51
52
|
_id: mongoose.Types.ObjectId;
|
|
52
53
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import mongoose
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
2
|
|
|
3
3
|
import { MODEL_NAMES } from './_models';
|
|
4
4
|
|
|
@@ -8,14 +8,16 @@ export interface ICRMProspectIndustry {
|
|
|
8
8
|
order: number;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export
|
|
11
|
+
export type TCRMProspectIndustryDoc = mongoose.HydratedDocument<ICRMProspectIndustry>;
|
|
12
|
+
|
|
13
|
+
export interface ICRMProspectIndustryLean extends ICRMProspectIndustry {
|
|
12
14
|
_id: mongoose.Types.ObjectId;
|
|
13
15
|
createdAt: Date;
|
|
14
16
|
updatedAt: Date;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
export interface
|
|
18
|
-
_id:
|
|
19
|
+
export interface ICRMProspectIndustryPlain extends ICRMProspectIndustry {
|
|
20
|
+
_id: string;
|
|
19
21
|
createdAt: Date;
|
|
20
22
|
updatedAt: Date;
|
|
21
23
|
}
|
|
@@ -24,7 +26,7 @@ export interface ICRMProspectIndustryWithId extends ICRMProspectIndustry {
|
|
|
24
26
|
_id: string;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
export type CRMProspectIndustryModel = Model<ICRMProspectIndustry
|
|
29
|
+
export type CRMProspectIndustryModel = mongoose.Model<ICRMProspectIndustry>;
|
|
28
30
|
|
|
29
31
|
export const CRMProspectIndustrySchema = new mongoose.Schema<ICRMProspectIndustry, CRMProspectIndustryModel>(
|
|
30
32
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/types" />
|
|
1
2
|
/// <reference types="mongoose/types/models" />
|
|
2
3
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
3
4
|
/// <reference types="mongoose/types/utility" />
|
|
4
5
|
/// <reference types="mongoose/types/document" />
|
|
5
|
-
/// <reference types="mongoose/types/types" />
|
|
6
6
|
/// <reference types="mongoose/types/aggregate" />
|
|
7
7
|
/// <reference types="mongoose/types/callback" />
|
|
8
8
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
/// <reference types="mongoose/types/validation" />
|
|
28
28
|
/// <reference types="mongoose/types/virtuals" />
|
|
29
29
|
/// <reference types="mongoose/types/inferschematype" />
|
|
30
|
-
import mongoose
|
|
30
|
+
import mongoose from 'mongoose';
|
|
31
31
|
import Joi from 'joi';
|
|
32
32
|
export declare enum EProspectSourceType {
|
|
33
33
|
LENDER = "LENDER",
|
|
@@ -48,11 +48,22 @@ export interface ICRMProspectSource {
|
|
|
48
48
|
order: number;
|
|
49
49
|
type: EProspectSourceType;
|
|
50
50
|
}
|
|
51
|
+
export interface ICRMProspectSourceLean extends ICRMProspectSource {
|
|
52
|
+
_id: mongoose.Types.ObjectId;
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
updatedAt: Date;
|
|
55
|
+
}
|
|
56
|
+
export interface ICRMProspectSourcePlain extends ICRMProspectSource {
|
|
57
|
+
_id: string;
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
}
|
|
61
|
+
export type TCRMProspectSourceDoc = mongoose.HydratedDocument<ICRMProspectSource>;
|
|
51
62
|
export interface ICRMProspectSourceWithId extends ICRMProspectSource {
|
|
52
63
|
_id: string;
|
|
53
64
|
}
|
|
54
65
|
export declare const CRMProspectSourceValidationSchema: Joi.ObjectSchema<any>;
|
|
55
|
-
export type CRMProspectSourceModel = Model<ICRMProspectSource, object, object>;
|
|
66
|
+
export type CRMProspectSourceModel = mongoose.Model<ICRMProspectSource, object, object>;
|
|
56
67
|
export declare const CRMProspectSourceSchema: mongoose.Schema<ICRMProspectSource, CRMProspectSourceModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ICRMProspectSource, mongoose.Document<unknown, {}, mongoose.FlatRecord<ICRMProspectSource>> & mongoose.FlatRecord<ICRMProspectSource> & {
|
|
57
68
|
_id: mongoose.Types.ObjectId;
|
|
58
69
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import mongoose
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
2
|
import Joi from 'joi';
|
|
3
3
|
|
|
4
4
|
import { MODEL_NAMES } from './_models';
|
|
@@ -24,6 +24,20 @@ export interface ICRMProspectSource {
|
|
|
24
24
|
type: EProspectSourceType;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export interface ICRMProspectSourceLean extends ICRMProspectSource {
|
|
28
|
+
_id: mongoose.Types.ObjectId;
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
updatedAt: Date;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface ICRMProspectSourcePlain extends ICRMProspectSource {
|
|
34
|
+
_id: string;
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
updatedAt: Date;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type TCRMProspectSourceDoc = mongoose.HydratedDocument<ICRMProspectSource>;
|
|
40
|
+
|
|
27
41
|
export interface ICRMProspectSourceWithId extends ICRMProspectSource {
|
|
28
42
|
_id: string;
|
|
29
43
|
}
|
|
@@ -37,7 +51,7 @@ export const CRMProspectSourceValidationSchema = Joi.object({
|
|
|
37
51
|
type: Joi.string().valid(...Object.values(EProspectSourceType), null).required(),
|
|
38
52
|
});
|
|
39
53
|
|
|
40
|
-
export type CRMProspectSourceModel = Model<ICRMProspectSource, object, object>;
|
|
54
|
+
export type CRMProspectSourceModel = mongoose.Model<ICRMProspectSource, object, object>;
|
|
41
55
|
|
|
42
56
|
export const CRMProspectSourceSchema = new mongoose.Schema<ICRMProspectSource, CRMProspectSourceModel>(
|
|
43
57
|
{
|
package/models/_index.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare const allSchemas: {
|
|
|
35
35
|
createdAt: NativeDate;
|
|
36
36
|
updatedAt: NativeDate;
|
|
37
37
|
} & {
|
|
38
|
-
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
39
38
|
order: number;
|
|
39
|
+
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
40
40
|
apDate: Date;
|
|
41
41
|
amount: number;
|
|
42
42
|
__v?: number;
|
|
@@ -49,8 +49,8 @@ export declare const allSchemas: {
|
|
|
49
49
|
createdAt: NativeDate;
|
|
50
50
|
updatedAt: NativeDate;
|
|
51
51
|
} & {
|
|
52
|
-
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
53
52
|
order: number;
|
|
53
|
+
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
54
54
|
apDate: Date;
|
|
55
55
|
amount: number;
|
|
56
56
|
__v?: number;
|
|
@@ -63,8 +63,8 @@ export declare const allSchemas: {
|
|
|
63
63
|
createdAt: NativeDate;
|
|
64
64
|
updatedAt: NativeDate;
|
|
65
65
|
} & {
|
|
66
|
-
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
67
66
|
order: number;
|
|
67
|
+
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
68
68
|
apDate: Date;
|
|
69
69
|
amount: number;
|
|
70
70
|
__v?: number;
|