@cool-digital-solutions/interferir-models 1.3.44 → 1.3.46
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/ai-task-research-manager-output.schema.js +12 -0
- package/dist/types/ai-task-research-manager-output.type.d.ts +13 -1
- package/dist/types/ai-task-research-manager-output.type.js +11 -0
- package/dist/types/otp.type.d.ts +2 -1
- package/dist/types/otp.type.js +1 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const mongoose_1 = require("mongoose");
|
|
7
7
|
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
|
+
const ai_task_research_manager_output_type_1 = require("../types/ai-task-research-manager-output.type");
|
|
9
10
|
const aiTaskResearchManagerOutputSchema = new mongoose_1.Schema({
|
|
10
11
|
aiTask: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTask', required: true },
|
|
11
12
|
title: { type: String, default: '' },
|
|
@@ -14,6 +15,17 @@ const aiTaskResearchManagerOutputSchema = new mongoose_1.Schema({
|
|
|
14
15
|
parentId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput', default: null },
|
|
15
16
|
references: [{ type: Object }],
|
|
16
17
|
sectionType: { type: String, default: null },
|
|
18
|
+
language: {
|
|
19
|
+
type: String,
|
|
20
|
+
enum: Object.values(ai_task_research_manager_output_type_1.Language),
|
|
21
|
+
default: ai_task_research_manager_output_type_1.Language.ENGLISH,
|
|
22
|
+
},
|
|
23
|
+
translatedFrom: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiTaskResearchManagerOutput', default: null },
|
|
24
|
+
aiTaskResearchManagerOutputTranslationSubmission: {
|
|
25
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
26
|
+
ref: 'AiTaskResearchManagerOutputTranslationSubmission',
|
|
27
|
+
default: null,
|
|
28
|
+
},
|
|
17
29
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
18
30
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
19
31
|
updatedDate: Number,
|
|
@@ -23,8 +23,17 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Types } from 'mongoose';
|
|
26
|
-
import { IAiTask } from './';
|
|
26
|
+
import { IAiTask, IAiTaskResearchManagerOutputTranslationSubmission } from './';
|
|
27
27
|
import { BaseModel, BaseSchema } from '../config';
|
|
28
|
+
export declare enum Language {
|
|
29
|
+
TURKISH = "turkish",
|
|
30
|
+
FRENCH = "french",
|
|
31
|
+
MANDARIN_CHINESE = "mandarinChinese",
|
|
32
|
+
GERMAN = "german",
|
|
33
|
+
SPANISH = "spanish",
|
|
34
|
+
ITALIAN = "italian",
|
|
35
|
+
ENGLISH = "english"
|
|
36
|
+
}
|
|
28
37
|
export interface IAiTaskResearchManagerOutput extends BaseSchema {
|
|
29
38
|
aiTask: Types.ObjectId | IAiTask;
|
|
30
39
|
title: string;
|
|
@@ -33,6 +42,9 @@ export interface IAiTaskResearchManagerOutput extends BaseSchema {
|
|
|
33
42
|
parentId: Types.ObjectId | IAiTaskResearchManagerOutput;
|
|
34
43
|
references: object[];
|
|
35
44
|
sectionType: string;
|
|
45
|
+
language: Language;
|
|
46
|
+
translatedFrom?: Types.ObjectId | IAiTaskResearchManagerOutput;
|
|
47
|
+
aiTaskResearchManagerOutputTranslationSubmission?: Types.ObjectId | IAiTaskResearchManagerOutputTranslationSubmission;
|
|
36
48
|
}
|
|
37
49
|
export interface IAiTaskResearchManagerOutputModel extends BaseModel<IAiTaskResearchManagerOutput> {
|
|
38
50
|
}
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Language = void 0;
|
|
4
|
+
var Language;
|
|
5
|
+
(function (Language) {
|
|
6
|
+
Language["TURKISH"] = "turkish";
|
|
7
|
+
Language["FRENCH"] = "french";
|
|
8
|
+
Language["MANDARIN_CHINESE"] = "mandarinChinese";
|
|
9
|
+
Language["GERMAN"] = "german";
|
|
10
|
+
Language["SPANISH"] = "spanish";
|
|
11
|
+
Language["ITALIAN"] = "italian";
|
|
12
|
+
Language["ENGLISH"] = "english";
|
|
13
|
+
})(Language || (exports.Language = Language = {}));
|
package/dist/types/otp.type.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { BaseModel, BaseSchema } from '../config';
|
|
|
2
2
|
export declare enum OtpType {
|
|
3
3
|
LOGIN = "login",
|
|
4
4
|
AI_TASK_SHARE = "aiTaskShare",
|
|
5
|
-
SMS_LOGIN = "smsLogin"
|
|
5
|
+
SMS_LOGIN = "smsLogin",
|
|
6
|
+
WHATSAPP_LOGIN = "whatsappLogin"
|
|
6
7
|
}
|
|
7
8
|
export interface IOtp extends BaseSchema {
|
|
8
9
|
code: string;
|
package/dist/types/otp.type.js
CHANGED