c2-desafiox 1.0.134 → 1.0.136

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.
@@ -65,23 +65,23 @@ export declare const ChatMessageSchema: Schema<any, import("mongoose").Model<any
65
65
  }>;
66
66
  sendDateTime: NativeDate;
67
67
  receivements: Types.DocumentArray<{
68
- receivedBy?: string | null | undefined;
68
+ receivedBy?: Types.ObjectId | null | undefined;
69
69
  receivedDateTime?: NativeDate | null | undefined;
70
70
  }, Types.Subdocument<Types.ObjectId, any, {
71
- receivedBy?: string | null | undefined;
71
+ receivedBy?: Types.ObjectId | null | undefined;
72
72
  receivedDateTime?: NativeDate | null | undefined;
73
73
  }> & {
74
- receivedBy?: string | null | undefined;
74
+ receivedBy?: Types.ObjectId | null | undefined;
75
75
  receivedDateTime?: NativeDate | null | undefined;
76
76
  }>;
77
77
  seens: Types.DocumentArray<{
78
- seenBy?: string | null | undefined;
78
+ seenBy?: Types.ObjectId | null | undefined;
79
79
  seenDateTime?: NativeDate | null | undefined;
80
80
  }, Types.Subdocument<Types.ObjectId, any, {
81
- seenBy?: string | null | undefined;
81
+ seenBy?: Types.ObjectId | null | undefined;
82
82
  seenDateTime?: NativeDate | null | undefined;
83
83
  }> & {
84
- seenBy?: string | null | undefined;
84
+ seenBy?: Types.ObjectId | null | undefined;
85
85
  seenDateTime?: NativeDate | null | undefined;
86
86
  }>;
87
87
  content?: string | null | undefined;
@@ -114,23 +114,23 @@ export declare const ChatMessageSchema: Schema<any, import("mongoose").Model<any
114
114
  }>;
115
115
  sendDateTime: NativeDate;
116
116
  receivements: Types.DocumentArray<{
117
- receivedBy?: string | null | undefined;
117
+ receivedBy?: Types.ObjectId | null | undefined;
118
118
  receivedDateTime?: NativeDate | null | undefined;
119
119
  }, Types.Subdocument<Types.ObjectId, any, {
120
- receivedBy?: string | null | undefined;
120
+ receivedBy?: Types.ObjectId | null | undefined;
121
121
  receivedDateTime?: NativeDate | null | undefined;
122
122
  }> & {
123
- receivedBy?: string | null | undefined;
123
+ receivedBy?: Types.ObjectId | null | undefined;
124
124
  receivedDateTime?: NativeDate | null | undefined;
125
125
  }>;
126
126
  seens: Types.DocumentArray<{
127
- seenBy?: string | null | undefined;
127
+ seenBy?: Types.ObjectId | null | undefined;
128
128
  seenDateTime?: NativeDate | null | undefined;
129
129
  }, Types.Subdocument<Types.ObjectId, any, {
130
- seenBy?: string | null | undefined;
130
+ seenBy?: Types.ObjectId | null | undefined;
131
131
  seenDateTime?: NativeDate | null | undefined;
132
132
  }> & {
133
- seenBy?: string | null | undefined;
133
+ seenBy?: Types.ObjectId | null | undefined;
134
134
  seenDateTime?: NativeDate | null | undefined;
135
135
  }>;
136
136
  content?: string | null | undefined;
@@ -163,23 +163,23 @@ export declare const ChatMessageSchema: Schema<any, import("mongoose").Model<any
163
163
  }>;
164
164
  sendDateTime: NativeDate;
165
165
  receivements: Types.DocumentArray<{
166
- receivedBy?: string | null | undefined;
166
+ receivedBy?: Types.ObjectId | null | undefined;
167
167
  receivedDateTime?: NativeDate | null | undefined;
168
168
  }, Types.Subdocument<Types.ObjectId, any, {
169
- receivedBy?: string | null | undefined;
169
+ receivedBy?: Types.ObjectId | null | undefined;
170
170
  receivedDateTime?: NativeDate | null | undefined;
171
171
  }> & {
172
- receivedBy?: string | null | undefined;
172
+ receivedBy?: Types.ObjectId | null | undefined;
173
173
  receivedDateTime?: NativeDate | null | undefined;
174
174
  }>;
175
175
  seens: Types.DocumentArray<{
176
- seenBy?: string | null | undefined;
176
+ seenBy?: Types.ObjectId | null | undefined;
177
177
  seenDateTime?: NativeDate | null | undefined;
178
178
  }, Types.Subdocument<Types.ObjectId, any, {
179
- seenBy?: string | null | undefined;
179
+ seenBy?: Types.ObjectId | null | undefined;
180
180
  seenDateTime?: NativeDate | null | undefined;
181
181
  }> & {
182
- seenBy?: string | null | undefined;
182
+ seenBy?: Types.ObjectId | null | undefined;
183
183
  seenDateTime?: NativeDate | null | undefined;
184
184
  }>;
185
185
  content?: string | null | undefined;
@@ -22,17 +22,17 @@ exports.ChatMessageSchema = new mongoose_1.Schema({
22
22
  category: { type: String },
23
23
  content: { type: String },
24
24
  files: [{ type: File_1.FileSchema }],
25
- status: { type: String, enum: StatusChatMessage, default: StatusChatMessage.NOT_SENT, required: true },
25
+ status: { type: String, enum: StatusChatMessage, default: StatusChatMessage.SENT, required: true },
26
26
  sendDateTime: { type: Date, required: true },
27
27
  receivements: {
28
28
  type: [{
29
- receivedBy: { type: String },
29
+ receivedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "contact" },
30
30
  receivedDateTime: { type: Date }
31
31
  }]
32
32
  },
33
33
  seens: {
34
34
  type: [{
35
- seenBy: { type: String },
35
+ seenBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "contact" },
36
36
  seenDateTime: { type: Date }
37
37
  }]
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-desafiox",
3
- "version": "1.0.134",
3
+ "version": "1.0.136",
4
4
  "description": "Modelagem TypeScript/Mongoose para o jogo Escalada X (times, campeonatos, fases, rodadas, confrontos, desafios)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",