@adaptivestone/framework 5.0.0-rc.5 → 5.0.0-rc.7
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/README.md +1 -0
- package/dist/codegen/appTypes.d.ts +6 -2
- package/dist/codegen/appTypes.js +63 -12
- package/dist/codegen/appTypes.js.map +1 -1
- package/dist/codegen/astConfig.d.ts +47 -0
- package/dist/codegen/astConfig.js +157 -0
- package/dist/codegen/astConfig.js.map +1 -0
- package/dist/codegen/index.js +1 -1
- package/dist/codegen/index.js.map +1 -1
- package/dist/models/User.d.ts +113 -555
- package/dist/models/User.js +34 -1
- package/dist/models/User.js.map +1 -1
- package/dist/modules/BaseModel.d.ts +41 -6
- package/dist/modules/BaseModel.js.map +1 -1
- package/dist/server.d.ts +4 -0
- package/dist/server.js +10 -3
- package/dist/server.js.map +1 -1
- package/dist/tests/testHelpers.d.ts +166 -242
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare const setDefaultUser: (userToSet: InstanceType<GetModelTypeFromCl
|
|
|
9
9
|
export declare const setDefaultAuthToken: (tokenToSet: string) => void;
|
|
10
10
|
export declare const getTestServerURL: (urlPart?: string) => string;
|
|
11
11
|
export declare const createDefaultTestUser: () => Promise<false | {
|
|
12
|
-
user: import("mongoose").Document<unknown, object, {
|
|
12
|
+
user: import("mongoose").Document<unknown, object, import("../modules/BaseModel.ts").ApplyTsOverrides<{
|
|
13
13
|
isVerified: boolean;
|
|
14
14
|
locale: string;
|
|
15
15
|
createdAt?: NativeDate | null | undefined;
|
|
@@ -19,9 +19,8 @@ export declare const createDefaultTestUser: () => Promise<false | {
|
|
|
19
19
|
last?: string | null | undefined;
|
|
20
20
|
nick?: string | null | undefined;
|
|
21
21
|
} | null | undefined;
|
|
22
|
-
avatar?: string | null | undefined;
|
|
23
|
-
password?: string | null | undefined;
|
|
24
22
|
email?: string | null | undefined;
|
|
23
|
+
password?: string | null | undefined;
|
|
25
24
|
sessionTokens?: ({
|
|
26
25
|
valid?: NativeDate | null | undefined;
|
|
27
26
|
token?: string | null | undefined;
|
|
@@ -40,12 +39,77 @@ export declare const createDefaultTestUser: () => Promise<false | {
|
|
|
40
39
|
} & {
|
|
41
40
|
_id: import("mongoose").Types.ObjectId;
|
|
42
41
|
})[] | null | undefined;
|
|
42
|
+
avatar?: string | null | undefined;
|
|
43
43
|
permissions?: string[] | null | undefined;
|
|
44
44
|
roles?: string[] | null | undefined;
|
|
45
45
|
languages?: string[] | null | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
_id: import("mongoose").Types.ObjectId;
|
|
48
|
-
}, {
|
|
48
|
+
}, {
|
|
49
|
+
readonly avatar: {
|
|
50
|
+
readonly type: StringConstructor;
|
|
51
|
+
readonly maxlength: 255;
|
|
52
|
+
};
|
|
53
|
+
readonly name: {
|
|
54
|
+
readonly first: {
|
|
55
|
+
readonly type: StringConstructor;
|
|
56
|
+
readonly maxlength: 255;
|
|
57
|
+
};
|
|
58
|
+
readonly last: {
|
|
59
|
+
readonly type: StringConstructor;
|
|
60
|
+
readonly maxlength: 255;
|
|
61
|
+
};
|
|
62
|
+
readonly nick: {
|
|
63
|
+
readonly minlength: 3;
|
|
64
|
+
readonly maxlength: 255;
|
|
65
|
+
readonly type: StringConstructor;
|
|
66
|
+
readonly index: {
|
|
67
|
+
readonly unique: true;
|
|
68
|
+
readonly partialFilterExpression: {
|
|
69
|
+
readonly 'name.nick': {
|
|
70
|
+
readonly $type: "string";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
readonly password: StringConstructor;
|
|
77
|
+
readonly email: {
|
|
78
|
+
readonly type: StringConstructor;
|
|
79
|
+
readonly maxlength: 255;
|
|
80
|
+
readonly index: {
|
|
81
|
+
readonly unique: true;
|
|
82
|
+
readonly partialFilterExpression: {
|
|
83
|
+
readonly email: {
|
|
84
|
+
readonly $type: "string";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
readonly sessionTokens: readonly [{
|
|
90
|
+
readonly token: StringConstructor;
|
|
91
|
+
readonly valid: DateConstructor;
|
|
92
|
+
}];
|
|
93
|
+
readonly verificationTokens: readonly [{
|
|
94
|
+
readonly until: DateConstructor;
|
|
95
|
+
readonly token: StringConstructor;
|
|
96
|
+
}];
|
|
97
|
+
readonly passwordRecoveryTokens: readonly [{
|
|
98
|
+
readonly until: DateConstructor;
|
|
99
|
+
readonly token: StringConstructor;
|
|
100
|
+
}];
|
|
101
|
+
readonly permissions: readonly [StringConstructor];
|
|
102
|
+
readonly roles: readonly [StringConstructor];
|
|
103
|
+
readonly isVerified: {
|
|
104
|
+
readonly type: BooleanConstructor;
|
|
105
|
+
readonly default: false;
|
|
106
|
+
};
|
|
107
|
+
readonly locale: {
|
|
108
|
+
readonly type: StringConstructor;
|
|
109
|
+
readonly default: "en";
|
|
110
|
+
};
|
|
111
|
+
readonly languages: readonly [StringConstructor];
|
|
112
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & Omit<import("../modules/BaseModel.ts").ApplyTsOverrides<{
|
|
49
113
|
isVerified: boolean;
|
|
50
114
|
locale: string;
|
|
51
115
|
createdAt?: NativeDate | null | undefined;
|
|
@@ -55,9 +119,8 @@ export declare const createDefaultTestUser: () => Promise<false | {
|
|
|
55
119
|
last?: string | null | undefined;
|
|
56
120
|
nick?: string | null | undefined;
|
|
57
121
|
} | null | undefined;
|
|
58
|
-
avatar?: string | null | undefined;
|
|
59
|
-
password?: string | null | undefined;
|
|
60
122
|
email?: string | null | undefined;
|
|
123
|
+
password?: string | null | undefined;
|
|
61
124
|
sessionTokens?: ({
|
|
62
125
|
valid?: NativeDate | null | undefined;
|
|
63
126
|
token?: string | null | undefined;
|
|
@@ -76,12 +139,77 @@ export declare const createDefaultTestUser: () => Promise<false | {
|
|
|
76
139
|
} & {
|
|
77
140
|
_id: import("mongoose").Types.ObjectId;
|
|
78
141
|
})[] | null | undefined;
|
|
142
|
+
avatar?: string | null | undefined;
|
|
79
143
|
permissions?: string[] | null | undefined;
|
|
80
144
|
roles?: string[] | null | undefined;
|
|
81
145
|
languages?: string[] | null | undefined;
|
|
82
146
|
} & {
|
|
83
147
|
_id: import("mongoose").Types.ObjectId;
|
|
84
|
-
}
|
|
148
|
+
}, {
|
|
149
|
+
readonly avatar: {
|
|
150
|
+
readonly type: StringConstructor;
|
|
151
|
+
readonly maxlength: 255;
|
|
152
|
+
};
|
|
153
|
+
readonly name: {
|
|
154
|
+
readonly first: {
|
|
155
|
+
readonly type: StringConstructor;
|
|
156
|
+
readonly maxlength: 255;
|
|
157
|
+
};
|
|
158
|
+
readonly last: {
|
|
159
|
+
readonly type: StringConstructor;
|
|
160
|
+
readonly maxlength: 255;
|
|
161
|
+
};
|
|
162
|
+
readonly nick: {
|
|
163
|
+
readonly minlength: 3;
|
|
164
|
+
readonly maxlength: 255;
|
|
165
|
+
readonly type: StringConstructor;
|
|
166
|
+
readonly index: {
|
|
167
|
+
readonly unique: true;
|
|
168
|
+
readonly partialFilterExpression: {
|
|
169
|
+
readonly 'name.nick': {
|
|
170
|
+
readonly $type: "string";
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly password: StringConstructor;
|
|
177
|
+
readonly email: {
|
|
178
|
+
readonly type: StringConstructor;
|
|
179
|
+
readonly maxlength: 255;
|
|
180
|
+
readonly index: {
|
|
181
|
+
readonly unique: true;
|
|
182
|
+
readonly partialFilterExpression: {
|
|
183
|
+
readonly email: {
|
|
184
|
+
readonly $type: "string";
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
readonly sessionTokens: readonly [{
|
|
190
|
+
readonly token: StringConstructor;
|
|
191
|
+
readonly valid: DateConstructor;
|
|
192
|
+
}];
|
|
193
|
+
readonly verificationTokens: readonly [{
|
|
194
|
+
readonly until: DateConstructor;
|
|
195
|
+
readonly token: StringConstructor;
|
|
196
|
+
}];
|
|
197
|
+
readonly passwordRecoveryTokens: readonly [{
|
|
198
|
+
readonly until: DateConstructor;
|
|
199
|
+
readonly token: StringConstructor;
|
|
200
|
+
}];
|
|
201
|
+
readonly permissions: readonly [StringConstructor];
|
|
202
|
+
readonly roles: readonly [StringConstructor];
|
|
203
|
+
readonly isVerified: {
|
|
204
|
+
readonly type: BooleanConstructor;
|
|
205
|
+
readonly default: false;
|
|
206
|
+
};
|
|
207
|
+
readonly locale: {
|
|
208
|
+
readonly type: StringConstructor;
|
|
209
|
+
readonly default: "en";
|
|
210
|
+
};
|
|
211
|
+
readonly languages: readonly [StringConstructor];
|
|
212
|
+
}> & Required<{
|
|
85
213
|
_id: import("mongoose").Types.ObjectId;
|
|
86
214
|
}> & {
|
|
87
215
|
__v: number;
|
|
@@ -97,255 +225,51 @@ export declare const createDefaultTestUser: () => Promise<false | {
|
|
|
97
225
|
token: string;
|
|
98
226
|
valid: Date;
|
|
99
227
|
}>;
|
|
100
|
-
readonly sendPasswordRecoveryEmail: (this: import("
|
|
101
|
-
isVerified: boolean;
|
|
102
|
-
locale: string;
|
|
103
|
-
createdAt?: NativeDate | null | undefined;
|
|
104
|
-
updatedAt?: NativeDate | null | undefined;
|
|
105
|
-
name?: {
|
|
106
|
-
first?: string | null | undefined;
|
|
107
|
-
last?: string | null | undefined;
|
|
108
|
-
nick?: string | null | undefined;
|
|
109
|
-
} | null | undefined;
|
|
110
|
-
avatar?: string | null | undefined;
|
|
111
|
-
password?: string | null | undefined;
|
|
112
|
-
email?: string | null | undefined;
|
|
113
|
-
sessionTokens?: ({
|
|
114
|
-
valid?: NativeDate | null | undefined;
|
|
115
|
-
token?: string | null | undefined;
|
|
116
|
-
} & {
|
|
117
|
-
_id: import("mongoose").Types.ObjectId;
|
|
118
|
-
})[] | null | undefined;
|
|
119
|
-
verificationTokens?: ({
|
|
120
|
-
token?: string | null | undefined;
|
|
121
|
-
until?: NativeDate | null | undefined;
|
|
122
|
-
} & {
|
|
123
|
-
_id: import("mongoose").Types.ObjectId;
|
|
124
|
-
})[] | null | undefined;
|
|
125
|
-
passwordRecoveryTokens?: ({
|
|
126
|
-
token?: string | null | undefined;
|
|
127
|
-
until?: NativeDate | null | undefined;
|
|
128
|
-
} & {
|
|
129
|
-
_id: import("mongoose").Types.ObjectId;
|
|
130
|
-
})[] | null | undefined;
|
|
131
|
-
permissions?: string[] | null | undefined;
|
|
132
|
-
roles?: string[] | null | undefined;
|
|
133
|
-
languages?: string[] | null | undefined;
|
|
134
|
-
} & {
|
|
135
|
-
_id: import("mongoose").Types.ObjectId;
|
|
136
|
-
}, {}, import("mongoose").DefaultSchemaOptions> & {
|
|
137
|
-
isVerified: boolean;
|
|
138
|
-
locale: string;
|
|
139
|
-
createdAt?: NativeDate | null | undefined;
|
|
140
|
-
updatedAt?: NativeDate | null | undefined;
|
|
228
|
+
readonly sendPasswordRecoveryEmail: (this: import("../models/User.ts").UserAuthInstance & {
|
|
141
229
|
name?: {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
nick?: string | null | undefined;
|
|
145
|
-
} | null | undefined;
|
|
146
|
-
avatar?: string | null | undefined;
|
|
147
|
-
password?: string | null | undefined;
|
|
148
|
-
email?: string | null | undefined;
|
|
149
|
-
sessionTokens?: ({
|
|
150
|
-
valid?: NativeDate | null | undefined;
|
|
151
|
-
token?: string | null | undefined;
|
|
152
|
-
} & {
|
|
153
|
-
_id: import("mongoose").Types.ObjectId;
|
|
154
|
-
})[] | null | undefined;
|
|
155
|
-
verificationTokens?: ({
|
|
156
|
-
token?: string | null | undefined;
|
|
157
|
-
until?: NativeDate | null | undefined;
|
|
158
|
-
} & {
|
|
159
|
-
_id: import("mongoose").Types.ObjectId;
|
|
160
|
-
})[] | null | undefined;
|
|
161
|
-
passwordRecoveryTokens?: ({
|
|
162
|
-
token?: string | null | undefined;
|
|
163
|
-
until?: NativeDate | null | undefined;
|
|
164
|
-
} & {
|
|
165
|
-
_id: import("mongoose").Types.ObjectId;
|
|
166
|
-
})[] | null | undefined;
|
|
167
|
-
permissions?: string[] | null | undefined;
|
|
168
|
-
roles?: string[] | null | undefined;
|
|
169
|
-
languages?: string[] | null | undefined;
|
|
170
|
-
} & {
|
|
171
|
-
_id: import("mongoose").Types.ObjectId;
|
|
172
|
-
} & Required<{
|
|
173
|
-
_id: import("mongoose").Types.ObjectId;
|
|
174
|
-
}> & {
|
|
175
|
-
__v: number;
|
|
176
|
-
} & {
|
|
177
|
-
id: string;
|
|
230
|
+
nick?: string | null;
|
|
231
|
+
} | null;
|
|
178
232
|
}, i18n: {
|
|
179
233
|
t: import("i18next").TFunction;
|
|
180
234
|
language: string;
|
|
181
235
|
}) => Promise<any>;
|
|
182
|
-
readonly sendVerificationEmail: (this: import("
|
|
183
|
-
isVerified: boolean;
|
|
184
|
-
locale: string;
|
|
185
|
-
createdAt?: NativeDate | null | undefined;
|
|
186
|
-
updatedAt?: NativeDate | null | undefined;
|
|
187
|
-
name?: {
|
|
188
|
-
first?: string | null | undefined;
|
|
189
|
-
last?: string | null | undefined;
|
|
190
|
-
nick?: string | null | undefined;
|
|
191
|
-
} | null | undefined;
|
|
192
|
-
avatar?: string | null | undefined;
|
|
193
|
-
password?: string | null | undefined;
|
|
194
|
-
email?: string | null | undefined;
|
|
195
|
-
sessionTokens?: ({
|
|
196
|
-
valid?: NativeDate | null | undefined;
|
|
197
|
-
token?: string | null | undefined;
|
|
198
|
-
} & {
|
|
199
|
-
_id: import("mongoose").Types.ObjectId;
|
|
200
|
-
})[] | null | undefined;
|
|
201
|
-
verificationTokens?: ({
|
|
202
|
-
token?: string | null | undefined;
|
|
203
|
-
until?: NativeDate | null | undefined;
|
|
204
|
-
} & {
|
|
205
|
-
_id: import("mongoose").Types.ObjectId;
|
|
206
|
-
})[] | null | undefined;
|
|
207
|
-
passwordRecoveryTokens?: ({
|
|
208
|
-
token?: string | null | undefined;
|
|
209
|
-
until?: NativeDate | null | undefined;
|
|
210
|
-
} & {
|
|
211
|
-
_id: import("mongoose").Types.ObjectId;
|
|
212
|
-
})[] | null | undefined;
|
|
213
|
-
permissions?: string[] | null | undefined;
|
|
214
|
-
roles?: string[] | null | undefined;
|
|
215
|
-
languages?: string[] | null | undefined;
|
|
216
|
-
} & {
|
|
217
|
-
_id: import("mongoose").Types.ObjectId;
|
|
218
|
-
}, {}, import("mongoose").DefaultSchemaOptions> & {
|
|
219
|
-
isVerified: boolean;
|
|
220
|
-
locale: string;
|
|
221
|
-
createdAt?: NativeDate | null | undefined;
|
|
222
|
-
updatedAt?: NativeDate | null | undefined;
|
|
236
|
+
readonly sendVerificationEmail: (this: import("../models/User.ts").UserAuthInstance & {
|
|
223
237
|
name?: {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
nick?: string | null | undefined;
|
|
227
|
-
} | null | undefined;
|
|
228
|
-
avatar?: string | null | undefined;
|
|
229
|
-
password?: string | null | undefined;
|
|
230
|
-
email?: string | null | undefined;
|
|
231
|
-
sessionTokens?: ({
|
|
232
|
-
valid?: NativeDate | null | undefined;
|
|
233
|
-
token?: string | null | undefined;
|
|
234
|
-
} & {
|
|
235
|
-
_id: import("mongoose").Types.ObjectId;
|
|
236
|
-
})[] | null | undefined;
|
|
237
|
-
verificationTokens?: ({
|
|
238
|
-
token?: string | null | undefined;
|
|
239
|
-
until?: NativeDate | null | undefined;
|
|
240
|
-
} & {
|
|
241
|
-
_id: import("mongoose").Types.ObjectId;
|
|
242
|
-
})[] | null | undefined;
|
|
243
|
-
passwordRecoveryTokens?: ({
|
|
244
|
-
token?: string | null | undefined;
|
|
245
|
-
until?: NativeDate | null | undefined;
|
|
246
|
-
} & {
|
|
247
|
-
_id: import("mongoose").Types.ObjectId;
|
|
248
|
-
})[] | null | undefined;
|
|
249
|
-
permissions?: string[] | null | undefined;
|
|
250
|
-
roles?: string[] | null | undefined;
|
|
251
|
-
languages?: string[] | null | undefined;
|
|
252
|
-
} & {
|
|
253
|
-
_id: import("mongoose").Types.ObjectId;
|
|
254
|
-
} & Required<{
|
|
255
|
-
_id: import("mongoose").Types.ObjectId;
|
|
256
|
-
}> & {
|
|
257
|
-
__v: number;
|
|
258
|
-
} & {
|
|
259
|
-
id: string;
|
|
238
|
+
nick?: string | null;
|
|
239
|
+
} | null;
|
|
260
240
|
}, i18n: {
|
|
261
241
|
t: import("i18next").TFunction;
|
|
262
242
|
language: string;
|
|
263
243
|
}) => Promise<any>;
|
|
264
|
-
readonly getPublic: (this: import("
|
|
265
|
-
isVerified: boolean;
|
|
266
|
-
locale: string;
|
|
267
|
-
createdAt?: NativeDate | null | undefined;
|
|
268
|
-
updatedAt?: NativeDate | null | undefined;
|
|
269
|
-
name?: {
|
|
270
|
-
first?: string | null | undefined;
|
|
271
|
-
last?: string | null | undefined;
|
|
272
|
-
nick?: string | null | undefined;
|
|
273
|
-
} | null | undefined;
|
|
274
|
-
avatar?: string | null | undefined;
|
|
275
|
-
password?: string | null | undefined;
|
|
276
|
-
email?: string | null | undefined;
|
|
277
|
-
sessionTokens?: ({
|
|
278
|
-
valid?: NativeDate | null | undefined;
|
|
279
|
-
token?: string | null | undefined;
|
|
280
|
-
} & {
|
|
281
|
-
_id: import("mongoose").Types.ObjectId;
|
|
282
|
-
})[] | null | undefined;
|
|
283
|
-
verificationTokens?: ({
|
|
284
|
-
token?: string | null | undefined;
|
|
285
|
-
until?: NativeDate | null | undefined;
|
|
286
|
-
} & {
|
|
287
|
-
_id: import("mongoose").Types.ObjectId;
|
|
288
|
-
})[] | null | undefined;
|
|
289
|
-
passwordRecoveryTokens?: ({
|
|
290
|
-
token?: string | null | undefined;
|
|
291
|
-
until?: NativeDate | null | undefined;
|
|
292
|
-
} & {
|
|
293
|
-
_id: import("mongoose").Types.ObjectId;
|
|
294
|
-
})[] | null | undefined;
|
|
295
|
-
permissions?: string[] | null | undefined;
|
|
296
|
-
roles?: string[] | null | undefined;
|
|
297
|
-
languages?: string[] | null | undefined;
|
|
298
|
-
} & {
|
|
299
|
-
_id: import("mongoose").Types.ObjectId;
|
|
300
|
-
}, {}, import("mongoose").DefaultSchemaOptions> & {
|
|
301
|
-
isVerified: boolean;
|
|
302
|
-
locale: string;
|
|
303
|
-
createdAt?: NativeDate | null | undefined;
|
|
304
|
-
updatedAt?: NativeDate | null | undefined;
|
|
305
|
-
name?: {
|
|
306
|
-
first?: string | null | undefined;
|
|
307
|
-
last?: string | null | undefined;
|
|
308
|
-
nick?: string | null | undefined;
|
|
309
|
-
} | null | undefined;
|
|
310
|
-
avatar?: string | null | undefined;
|
|
311
|
-
password?: string | null | undefined;
|
|
312
|
-
email?: string | null | undefined;
|
|
313
|
-
sessionTokens?: ({
|
|
314
|
-
valid?: NativeDate | null | undefined;
|
|
315
|
-
token?: string | null | undefined;
|
|
316
|
-
} & {
|
|
317
|
-
_id: import("mongoose").Types.ObjectId;
|
|
318
|
-
})[] | null | undefined;
|
|
319
|
-
verificationTokens?: ({
|
|
320
|
-
token?: string | null | undefined;
|
|
321
|
-
until?: NativeDate | null | undefined;
|
|
322
|
-
} & {
|
|
323
|
-
_id: import("mongoose").Types.ObjectId;
|
|
324
|
-
})[] | null | undefined;
|
|
325
|
-
passwordRecoveryTokens?: ({
|
|
326
|
-
token?: string | null | undefined;
|
|
327
|
-
until?: NativeDate | null | undefined;
|
|
328
|
-
} & {
|
|
329
|
-
_id: import("mongoose").Types.ObjectId;
|
|
330
|
-
})[] | null | undefined;
|
|
331
|
-
permissions?: string[] | null | undefined;
|
|
332
|
-
roles?: string[] | null | undefined;
|
|
333
|
-
languages?: string[] | null | undefined;
|
|
334
|
-
} & {
|
|
335
|
-
_id: import("mongoose").Types.ObjectId;
|
|
336
|
-
} & Required<{
|
|
337
|
-
_id: import("mongoose").Types.ObjectId;
|
|
338
|
-
}> & {
|
|
339
|
-
__v: number;
|
|
340
|
-
} & {
|
|
341
|
-
id: string;
|
|
342
|
-
}) => {
|
|
244
|
+
readonly getPublic: (this: import("../models/User.ts").UserPublicDoc) => {
|
|
343
245
|
avatar: string | null | undefined;
|
|
344
|
-
name: {
|
|
246
|
+
name: import("../modules/BaseModel.ts").ApplyTsOverrides<{
|
|
345
247
|
first?: string | null | undefined;
|
|
346
248
|
last?: string | null | undefined;
|
|
347
249
|
nick?: string | null | undefined;
|
|
348
|
-
}
|
|
250
|
+
}, {
|
|
251
|
+
readonly first: {
|
|
252
|
+
readonly type: StringConstructor;
|
|
253
|
+
readonly maxlength: 255;
|
|
254
|
+
};
|
|
255
|
+
readonly last: {
|
|
256
|
+
readonly type: StringConstructor;
|
|
257
|
+
readonly maxlength: 255;
|
|
258
|
+
};
|
|
259
|
+
readonly nick: {
|
|
260
|
+
readonly minlength: 3;
|
|
261
|
+
readonly maxlength: 255;
|
|
262
|
+
readonly type: StringConstructor;
|
|
263
|
+
readonly index: {
|
|
264
|
+
readonly unique: true;
|
|
265
|
+
readonly partialFilterExpression: {
|
|
266
|
+
readonly 'name.nick': {
|
|
267
|
+
readonly $type: "string";
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
}> | null | undefined;
|
|
349
273
|
email: string | null | undefined;
|
|
350
274
|
id: string;
|
|
351
275
|
isVerified: boolean;
|