@cool-digital-solutions/interferir-models 1.4.81 → 1.4.83

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.
@@ -11,7 +11,12 @@ const aiAnalysisDataCollectionQuestionSchema = new mongoose_1.Schema({
11
11
  questionSectionId: { type: mongoose_1.Schema.Types.ObjectId, required: true },
12
12
  questionText: { type: String, required: true },
13
13
  questionOrder: { type: Number, required: true },
14
- users: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
14
+ users: [
15
+ {
16
+ user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', required: true },
17
+ invitedDate: { type: Number, required: true },
18
+ },
19
+ ],
15
20
  answers: [
16
21
  {
17
22
  user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', required: true },
@@ -19,7 +19,7 @@ const aiAnalysisInterviewSchema = new mongoose_1.Schema({
19
19
  enum: Object.values(_types_1.ParticipantConfirmationStatus),
20
20
  default: _types_1.ParticipantConfirmationStatus.PENDING,
21
21
  },
22
- interviewUrl: { type: String },
22
+ interviewUrl: { type: String, default: '' },
23
23
  status: {
24
24
  type: String,
25
25
  enum: Object.values(_types_1.AiAnalysisInterviewStatus),
@@ -30,12 +30,16 @@ interface Answer {
30
30
  answer: string;
31
31
  status: string;
32
32
  }
33
+ interface User {
34
+ user: Types.ObjectId | IUser;
35
+ invitedDate: number;
36
+ }
33
37
  export interface IAiAnalysisDataCollectionQuestion extends BaseSchema {
34
38
  turnkeyProjectId: Types.ObjectId;
35
39
  questionSectionId: Types.ObjectId;
36
40
  questionText: string;
37
41
  questionOrder: number;
38
- users: Types.ObjectId[] | IUser[];
42
+ users: User[];
39
43
  answers: Answer[];
40
44
  }
41
45
  export interface IAiAnalysisDataCollectionQuestionModel extends BaseModel<IAiAnalysisDataCollectionQuestion> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.4.81",
3
+ "version": "1.4.83",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"