@cool-digital-solutions/interferir-models 1.2.12 → 1.2.14
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/dist/schemas/spark-use-case.schema.js +1 -1
- package/dist/schemas/spark.schema.js +1 -1
- package/dist/schemas/use-case-discovery.schema.js +4 -4
- package/dist/types/spark-use-case.type.d.ts +1 -2
- package/dist/types/spark.type.d.ts +1 -2
- package/dist/types/use-case-discovery.type.d.ts +0 -11
- package/package.json +1 -1
|
@@ -57,7 +57,7 @@ const sparkUseCaseSchema = new mongoose_1.Schema({
|
|
|
57
57
|
],
|
|
58
58
|
},
|
|
59
59
|
],
|
|
60
|
-
aiTaskResearchManagerOutputs: [{ type:
|
|
60
|
+
// aiTaskResearchManagerOutputs: [{ type: Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput' }],
|
|
61
61
|
sfIndustries: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Industry' }],
|
|
62
62
|
sfTechnologies: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Technology' }],
|
|
63
63
|
sfCategories: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'SFCategory' }],
|
|
@@ -55,7 +55,7 @@ const sparkSchema = new mongoose_1.Schema({
|
|
|
55
55
|
status: { type: String, enum: Object.values(spark_type_1.CronJobStatus), default: spark_type_1.CronJobStatus.PENDING },
|
|
56
56
|
message: [{ type: String, default: '' }],
|
|
57
57
|
},
|
|
58
|
-
aiTasks: [{ type:
|
|
58
|
+
// aiTasks: [{ type: Schema.Types.ObjectId, ref: 'AiTask' }],
|
|
59
59
|
forceSendToEntramind: { type: Boolean, default: false },
|
|
60
60
|
isSentToEntramind: { type: Boolean, default: true },
|
|
61
61
|
linkUseCaseOfCompanyToTheme: { type: Boolean, default: false },
|
|
@@ -10,10 +10,10 @@ const use_case_discovery_type_1 = require("../types/use-case-discovery.type");
|
|
|
10
10
|
const useCaseDiscoverySchema = new mongoose_1.Schema({
|
|
11
11
|
company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', required: true },
|
|
12
12
|
level: { type: Number, default: null },
|
|
13
|
-
title: { type: String, default: null },
|
|
14
|
-
totalCount: { type: Number, required: true },
|
|
13
|
+
// title: { type: String, default: null },
|
|
14
|
+
// totalCount: { type: Number, required: true },
|
|
15
15
|
status: { type: String, enum: Object.values(use_case_discovery_type_1.UseCaseDiscoveryStatus), required: [true, 'status is required!'] },
|
|
16
|
-
entramindId: { type: String, default: '' },
|
|
16
|
+
// entramindId: { type: String, default: '' },
|
|
17
17
|
response: [
|
|
18
18
|
{
|
|
19
19
|
message: { type: String, default: '' },
|
|
@@ -25,7 +25,7 @@ const useCaseDiscoverySchema = new mongoose_1.Schema({
|
|
|
25
25
|
total: { type: Number, required: true },
|
|
26
26
|
},
|
|
27
27
|
],
|
|
28
|
-
request: { url: { type: String }, params: { type: Object }, data: { type: Array }, method: { type: String } },
|
|
28
|
+
// request: { url: { type: String }, params: { type: Object }, data: { type: Array }, method: { type: String } },
|
|
29
29
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
30
30
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
31
31
|
updatedDate: Number,
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { IUser, ISpark, ICompany, ITheme, IUseCase, IIndustry, ITechnology, ISFSubCategory, ISFCategory, ISFTag
|
|
26
|
+
import { IUser, ISpark, ICompany, ITheme, IUseCase, IIndustry, ITechnology, ISFSubCategory, ISFCategory, ISFTag } from './';
|
|
27
27
|
import { SparkPriorityList } from './spark.type';
|
|
28
28
|
import { BaseModel, BaseSchema, ContentStatus } from '../config';
|
|
29
29
|
export declare enum SparkUseCaseStatusList {
|
|
@@ -88,7 +88,6 @@ export interface ISparkUseCase extends BaseSchema {
|
|
|
88
88
|
sfTags: Types.ObjectId[] | ISFTag[];
|
|
89
89
|
fromEmptySparkUseCase: boolean;
|
|
90
90
|
projectLocation: string[];
|
|
91
|
-
aiTaskResearchManagerOutputs: Types.ObjectId[] | IAiTaskResearchManagerOutput[];
|
|
92
91
|
}
|
|
93
92
|
export interface ISparkUseCaseModel extends BaseModel<ISparkUseCase> {
|
|
94
93
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import {
|
|
26
|
+
import { ICompany, ITheme } from './';
|
|
27
27
|
import { CompanyTypes } from './company.type';
|
|
28
28
|
import { BaseModel, BaseSchema } from '../config';
|
|
29
29
|
export declare enum SparkStatusList {
|
|
@@ -91,7 +91,6 @@ export interface ISpark extends BaseSchema {
|
|
|
91
91
|
website: string;
|
|
92
92
|
useCaseSourceList: string[];
|
|
93
93
|
themeList: Types.ObjectId[] | ITheme[];
|
|
94
|
-
aiTasks: Types.ObjectId[] | IAiTask[];
|
|
95
94
|
priority: SparkPriorityList;
|
|
96
95
|
priorityLevel: number;
|
|
97
96
|
note: string;
|
|
@@ -31,18 +31,9 @@ export declare enum UseCaseDiscoveryStatus {
|
|
|
31
31
|
FINISHED = "finished",
|
|
32
32
|
FAILED = "failed"
|
|
33
33
|
}
|
|
34
|
-
interface Request {
|
|
35
|
-
url: string;
|
|
36
|
-
params?: object;
|
|
37
|
-
data: [];
|
|
38
|
-
method: string;
|
|
39
|
-
}
|
|
40
34
|
export interface IUseCaseDiscovery extends BaseSchema {
|
|
41
35
|
company: Types.ObjectId | ICompany;
|
|
42
|
-
entramindId: string;
|
|
43
36
|
level: number;
|
|
44
|
-
title: string;
|
|
45
|
-
totalCount: number;
|
|
46
37
|
status: UseCaseDiscoveryStatus;
|
|
47
38
|
response: {
|
|
48
39
|
message: string;
|
|
@@ -51,8 +42,6 @@ export interface IUseCaseDiscovery extends BaseSchema {
|
|
|
51
42
|
title: string;
|
|
52
43
|
total: number;
|
|
53
44
|
}[];
|
|
54
|
-
request: Request;
|
|
55
45
|
}
|
|
56
46
|
export interface IUseCaseDiscoveryModel extends BaseModel<IUseCaseDiscovery> {
|
|
57
47
|
}
|
|
58
|
-
export {};
|