@aeriajs/builtins 0.0.201 → 0.0.202

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/index.d.ts CHANGED
@@ -10,57 +10,21 @@ type ResourceUsage = typeof resourceUsage.item;
10
10
  type User = typeof user.item;
11
11
  export declare const collections: {
12
12
  file: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
13
- item: import("@aeriajs/types").SchemaWithId<{
14
- readonly $id: "file";
15
- readonly icon: "paperclip";
16
- readonly owned: "always";
17
- readonly presets: readonly ["owned"];
18
- readonly indexes: readonly ["name", "link", "type", "size"];
19
- readonly properties: {
20
- readonly type: {
21
- readonly type: "string";
22
- };
23
- readonly size: {
24
- readonly type: "number";
25
- };
26
- readonly last_modified: {
27
- readonly type: "string";
28
- readonly format: "date-time";
29
- };
30
- readonly name: {
31
- readonly type: "string";
32
- };
33
- readonly absolute_path: {
34
- readonly type: "string";
35
- };
36
- readonly relative_path: {
37
- readonly type: "string";
38
- };
39
- readonly immutable: {
40
- readonly type: "boolean";
41
- };
42
- readonly link: {
43
- readonly getter: (doc: object) => Promise<string | undefined>;
44
- };
45
- readonly download_link: {
46
- readonly getter: (doc: object) => Promise<string | undefined>;
47
- };
48
- };
49
- readonly actions: {
50
- readonly deleteAll: {
51
- readonly label: "Remover";
52
- readonly ask: true;
53
- readonly selection: true;
54
- };
55
- };
56
- readonly individualActions: {
57
- readonly remove: {
58
- readonly label: "Remover";
59
- readonly icon: "trash";
60
- readonly ask: true;
61
- };
62
- };
63
- }>;
13
+ item: {
14
+ name: string;
15
+ link: never;
16
+ type: string;
17
+ size: number;
18
+ last_modified: Date;
19
+ absolute_path: string;
20
+ relative_path: string;
21
+ immutable: boolean;
22
+ download_link: never;
23
+ owner?: Collections["user"]["item"] | undefined;
24
+ updated_at?: Date | undefined;
25
+ created_at?: Date | undefined;
26
+ _id: import("mongodb").ObjectId;
27
+ };
64
28
  description: {
65
29
  readonly $id: "file";
66
30
  readonly icon: "paperclip";
@@ -113,62 +77,110 @@ export declare const collections: {
113
77
  };
114
78
  };
115
79
  functions: {
116
- get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions) => Promise<import("@aeriajs/types").GetReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
80
+ get: (payload: import("@aeriajs/types").GetPayload<{
81
+ _id: import("mongodb").ObjectId;
82
+ } | {
83
+ _id: import("mongodb").ObjectId;
84
+ } | {
85
+ _id: import("mongodb").ObjectId;
86
+ } | {
87
+ owner?: Collections["user"]["item"] | undefined;
88
+ _id: import("mongodb").ObjectId;
89
+ } | {
90
+ owner?: Collections["user"]["item"] | undefined;
91
+ _id: import("mongodb").ObjectId;
92
+ } | {
93
+ owner?: Collections["user"]["item"] | undefined;
94
+ _id: import("mongodb").ObjectId;
95
+ } | {
96
+ updated_at?: Date | undefined;
97
+ created_at?: Date | undefined;
98
+ _id: import("mongodb").ObjectId;
99
+ } | {
100
+ updated_at?: Date | undefined;
101
+ created_at?: Date | undefined;
102
+ _id: import("mongodb").ObjectId;
103
+ } | {
104
+ updated_at?: Date | undefined;
105
+ created_at?: Date | undefined;
106
+ _id: import("mongodb").ObjectId;
107
+ } | {
108
+ owner?: Collections["user"]["item"] | undefined;
109
+ updated_at?: Date | undefined;
110
+ created_at?: Date | undefined;
111
+ _id: import("mongodb").ObjectId;
112
+ } | {
113
+ owner?: Collections["user"]["item"] | undefined;
114
+ updated_at?: Date | undefined;
115
+ created_at?: Date | undefined;
116
+ _id: import("mongodb").ObjectId;
117
+ } | {
118
+ owner?: Collections["user"]["item"] | undefined;
119
+ updated_at?: Date | undefined;
120
+ created_at?: Date | undefined;
121
+ _id: import("mongodb").ObjectId;
122
+ }>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions) => Promise<import("@aeriajs/types").GetReturnType<{
123
+ _id: import("mongodb").ObjectId;
124
+ } | {
125
+ _id: import("mongodb").ObjectId;
126
+ } | {
127
+ _id: import("mongodb").ObjectId;
128
+ } | {
129
+ owner?: Collections["user"]["item"] | undefined;
130
+ _id: import("mongodb").ObjectId;
131
+ } | {
132
+ owner?: Collections["user"]["item"] | undefined;
133
+ _id: import("mongodb").ObjectId;
134
+ } | {
135
+ owner?: Collections["user"]["item"] | undefined;
136
+ _id: import("mongodb").ObjectId;
137
+ } | {
138
+ updated_at?: Date | undefined;
139
+ created_at?: Date | undefined;
140
+ _id: import("mongodb").ObjectId;
141
+ } | {
142
+ updated_at?: Date | undefined;
143
+ created_at?: Date | undefined;
144
+ _id: import("mongodb").ObjectId;
145
+ } | {
146
+ updated_at?: Date | undefined;
147
+ created_at?: Date | undefined;
148
+ _id: import("mongodb").ObjectId;
149
+ } | {
150
+ owner?: Collections["user"]["item"] | undefined;
151
+ updated_at?: Date | undefined;
152
+ created_at?: Date | undefined;
153
+ _id: import("mongodb").ObjectId;
154
+ } | {
155
+ owner?: Collections["user"]["item"] | undefined;
156
+ updated_at?: Date | undefined;
157
+ created_at?: Date | undefined;
158
+ _id: import("mongodb").ObjectId;
159
+ } | {
160
+ owner?: Collections["user"]["item"] | undefined;
161
+ updated_at?: Date | undefined;
162
+ created_at?: Date | undefined;
163
+ _id: import("mongodb").ObjectId;
164
+ }>>;
117
165
  insert: (payload: {
118
166
  what: {
119
167
  content: string;
120
168
  } & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<typeof import("./collections/file/description.js").description>>, "_id" | "name" | "owner" | "absolute_path">;
121
- }, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
122
- readonly $id: "file";
123
- readonly icon: "paperclip";
124
- readonly owned: "always";
125
- readonly presets: readonly ["owned"];
126
- readonly indexes: readonly ["name", "link", "type", "size"];
127
- readonly properties: {
128
- readonly type: {
129
- readonly type: "string";
130
- };
131
- readonly size: {
132
- readonly type: "number";
133
- };
134
- readonly last_modified: {
135
- readonly type: "string";
136
- readonly format: "date-time";
137
- };
138
- readonly name: {
139
- readonly type: "string";
140
- };
141
- readonly absolute_path: {
142
- readonly type: "string";
143
- };
144
- readonly relative_path: {
145
- readonly type: "string";
146
- };
147
- readonly immutable: {
148
- readonly type: "boolean";
149
- };
150
- readonly link: {
151
- readonly getter: (doc: object) => Promise<string | undefined>;
152
- };
153
- readonly download_link: {
154
- readonly getter: (doc: object) => Promise<string | undefined>;
155
- };
156
- };
157
- readonly actions: {
158
- readonly deleteAll: {
159
- readonly label: "Remover";
160
- readonly ask: true;
161
- readonly selection: true;
162
- };
163
- };
164
- readonly individualActions: {
165
- readonly remove: {
166
- readonly label: "Remover";
167
- readonly icon: "trash";
168
- readonly ask: true;
169
- };
170
- };
171
- }>>>;
169
+ }, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<import("@aeriajs/types").InsertReturnType<{
170
+ name: string;
171
+ link: never;
172
+ type: string;
173
+ size: number;
174
+ last_modified: Date;
175
+ absolute_path: string;
176
+ relative_path: string;
177
+ immutable: boolean;
178
+ download_link: never;
179
+ owner?: Collections["user"]["item"] | undefined;
180
+ updated_at?: Date | undefined;
181
+ created_at?: Date | undefined;
182
+ _id: import("mongodb").ObjectId;
183
+ }>>;
172
184
  download: (payload: {
173
185
  fileId: string;
174
186
  options: readonly ("picture" | "download")[];
@@ -185,7 +197,12 @@ export declare const collections: {
185
197
  remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<typeof import("./collections/file/description.js").description>>, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<{
186
198
  readonly _tag: "Result";
187
199
  readonly error: undefined;
188
- readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
200
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<{
201
+ [x: string]: unknown;
202
+ updated_at?: Date | undefined;
203
+ created_at?: Date | undefined;
204
+ _id: import("mongodb").ObjectId;
205
+ }>, "_id">> | null;
189
206
  } | import("@aeriajs/types").Result.Error<{
190
207
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
191
208
  } & {
@@ -196,45 +213,12 @@ export declare const collections: {
196
213
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
197
214
  }> | {
198
215
  readonly _tag: "Error";
199
- readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
200
- readonly httpStatus: {
201
- readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
202
- };
203
- readonly code: {
204
- readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
205
- };
206
- readonly message: {
207
- readonly type: "string";
208
- };
209
- readonly details: {
210
- readonly type: "object";
211
- readonly additionalProperties: true;
212
- };
213
- }>> & {
214
- code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
215
- httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
216
- message: string;
217
- details: any;
218
- }, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
219
- readonly httpStatus: {
220
- readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
221
- };
222
- readonly code: {
223
- readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
224
- };
225
- readonly message: {
226
- readonly type: "string";
227
- };
228
- readonly details: {
229
- readonly type: "object";
230
- readonly additionalProperties: true;
231
- };
232
- }>> & {
216
+ readonly error: {
233
217
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
234
218
  httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
235
- message: string;
236
- details: any;
237
- }, never>>;
219
+ message?: string | undefined;
220
+ details?: any;
221
+ };
238
222
  readonly result: undefined;
239
223
  }>;
240
224
  removeAll: (payload: import("@aeriajs/types").RemoveAllPayload<import("@aeriajs/types").SchemaWithId<typeof import("./collections/file/description.js").description>>, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<{
@@ -256,36 +240,16 @@ export declare const collections: {
256
240
  };
257
241
  };
258
242
  tempFile: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
259
- item: import("@aeriajs/types").SchemaWithId<{
260
- readonly $id: "tempFile";
261
- readonly icon: "file";
262
- readonly hidden: true;
263
- readonly temporary: {
264
- readonly index: "created_at";
265
- readonly expireAfterSeconds: 3600;
266
- };
267
- readonly properties: {
268
- readonly created_at: {
269
- readonly type: "string";
270
- readonly format: "date-time";
271
- };
272
- readonly absolute_path: {
273
- readonly type: "string";
274
- };
275
- readonly size: {
276
- readonly type: "number";
277
- };
278
- readonly mime: {
279
- readonly type: "number";
280
- };
281
- readonly collection: {
282
- readonly type: "string";
283
- };
284
- readonly filename: {
285
- readonly type: "string";
286
- };
287
- };
288
- }>;
243
+ item: {
244
+ size: number;
245
+ absolute_path: string;
246
+ created_at: Date;
247
+ mime: number;
248
+ collection: string;
249
+ filename: string;
250
+ updated_at?: Date | undefined;
251
+ _id: import("mongodb").ObjectId;
252
+ };
289
253
  description: {
290
254
  readonly $id: "tempFile";
291
255
  readonly icon: "file";
@@ -322,33 +286,45 @@ export declare const collections: {
322
286
  } | undefined;
323
287
  };
324
288
  log: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
325
- item: import("@aeriajs/types").SchemaWithId<{
326
- readonly $id: "log";
327
- readonly icon: "magnifying-glass";
328
- readonly required: readonly ["context", "message"];
329
- readonly properties: {
330
- readonly owner: {
331
- readonly $ref: "user";
332
- readonly noForm: true;
333
- };
334
- readonly context: {
335
- readonly type: "string";
336
- };
337
- readonly message: {
338
- readonly type: "string";
339
- };
340
- readonly details: {
341
- readonly type: "object";
342
- readonly additionalProperties: true;
343
- };
344
- readonly created_at: {
345
- readonly type: "string";
346
- readonly format: "date-time";
347
- };
348
- };
349
- readonly presets: readonly ["view"];
350
- readonly filters: readonly ["context", "message", "owner"];
351
- }>;
289
+ item: {
290
+ message: string;
291
+ context: string;
292
+ owner?: {
293
+ name: string;
294
+ roles: string[];
295
+ email: string;
296
+ picture_file?: {
297
+ name: string;
298
+ link: never;
299
+ type: string;
300
+ size: number;
301
+ last_modified: Date;
302
+ absolute_path: string;
303
+ relative_path: string;
304
+ immutable: boolean;
305
+ download_link: never;
306
+ owner?: Collections["user"]["item"] | undefined;
307
+ updated_at?: Date | undefined;
308
+ created_at?: Date | undefined;
309
+ _id: import("mongodb").ObjectId;
310
+ } | undefined;
311
+ password?: string | undefined;
312
+ updated_at?: Date | undefined;
313
+ picture?: undefined;
314
+ active?: boolean | undefined;
315
+ phone_number?: string | undefined;
316
+ given_name?: undefined;
317
+ family_name?: undefined;
318
+ group?: string | undefined;
319
+ readonly self_registered?: boolean | undefined;
320
+ created_at?: Date | undefined;
321
+ _id: import("mongodb").ObjectId;
322
+ } | undefined;
323
+ created_at?: Date | undefined;
324
+ details?: any;
325
+ updated_at?: Date | undefined;
326
+ _id: import("mongodb").ObjectId;
327
+ };
352
328
  description: {
353
329
  readonly $id: "log";
354
330
  readonly icon: "magnifying-glass";
@@ -377,9 +353,261 @@ export declare const collections: {
377
353
  readonly filters: readonly ["context", "message", "owner"];
378
354
  };
379
355
  functions: {
380
- get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions) => Promise<import("@aeriajs/types").GetReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
381
- getAll: (payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions) => Promise<import("@aeriajs/types").GetAllReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
382
- insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
356
+ get: (payload: import("@aeriajs/types").GetPayload<{
357
+ _id: import("mongodb").ObjectId;
358
+ } | {
359
+ _id: import("mongodb").ObjectId;
360
+ } | {
361
+ _id: import("mongodb").ObjectId;
362
+ } | {
363
+ owner?: Collections["user"]["item"] | undefined;
364
+ _id: import("mongodb").ObjectId;
365
+ } | {
366
+ owner?: Collections["user"]["item"] | undefined;
367
+ _id: import("mongodb").ObjectId;
368
+ } | {
369
+ owner?: Collections["user"]["item"] | undefined;
370
+ _id: import("mongodb").ObjectId;
371
+ } | {
372
+ updated_at?: Date | undefined;
373
+ created_at?: Date | undefined;
374
+ _id: import("mongodb").ObjectId;
375
+ } | {
376
+ updated_at?: Date | undefined;
377
+ created_at?: Date | undefined;
378
+ _id: import("mongodb").ObjectId;
379
+ } | {
380
+ updated_at?: Date | undefined;
381
+ created_at?: Date | undefined;
382
+ _id: import("mongodb").ObjectId;
383
+ } | {
384
+ owner?: Collections["user"]["item"] | undefined;
385
+ updated_at?: Date | undefined;
386
+ created_at?: Date | undefined;
387
+ _id: import("mongodb").ObjectId;
388
+ } | {
389
+ owner?: Collections["user"]["item"] | undefined;
390
+ updated_at?: Date | undefined;
391
+ created_at?: Date | undefined;
392
+ _id: import("mongodb").ObjectId;
393
+ } | {
394
+ owner?: Collections["user"]["item"] | undefined;
395
+ updated_at?: Date | undefined;
396
+ created_at?: Date | undefined;
397
+ _id: import("mongodb").ObjectId;
398
+ }>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions) => Promise<import("@aeriajs/types").GetReturnType<{
399
+ _id: import("mongodb").ObjectId;
400
+ } | {
401
+ _id: import("mongodb").ObjectId;
402
+ } | {
403
+ _id: import("mongodb").ObjectId;
404
+ } | {
405
+ owner?: Collections["user"]["item"] | undefined;
406
+ _id: import("mongodb").ObjectId;
407
+ } | {
408
+ owner?: Collections["user"]["item"] | undefined;
409
+ _id: import("mongodb").ObjectId;
410
+ } | {
411
+ owner?: Collections["user"]["item"] | undefined;
412
+ _id: import("mongodb").ObjectId;
413
+ } | {
414
+ updated_at?: Date | undefined;
415
+ created_at?: Date | undefined;
416
+ _id: import("mongodb").ObjectId;
417
+ } | {
418
+ updated_at?: Date | undefined;
419
+ created_at?: Date | undefined;
420
+ _id: import("mongodb").ObjectId;
421
+ } | {
422
+ updated_at?: Date | undefined;
423
+ created_at?: Date | undefined;
424
+ _id: import("mongodb").ObjectId;
425
+ } | {
426
+ owner?: Collections["user"]["item"] | undefined;
427
+ updated_at?: Date | undefined;
428
+ created_at?: Date | undefined;
429
+ _id: import("mongodb").ObjectId;
430
+ } | {
431
+ owner?: Collections["user"]["item"] | undefined;
432
+ updated_at?: Date | undefined;
433
+ created_at?: Date | undefined;
434
+ _id: import("mongodb").ObjectId;
435
+ } | {
436
+ owner?: Collections["user"]["item"] | undefined;
437
+ updated_at?: Date | undefined;
438
+ created_at?: Date | undefined;
439
+ _id: import("mongodb").ObjectId;
440
+ }>>;
441
+ getAll: (payload: import("@aeriajs/types").GetAllPayload<{
442
+ _id: import("mongodb").ObjectId;
443
+ } | {
444
+ _id: import("mongodb").ObjectId;
445
+ } | {
446
+ _id: import("mongodb").ObjectId;
447
+ } | {
448
+ owner?: Collections["user"]["item"] | undefined;
449
+ _id: import("mongodb").ObjectId;
450
+ } | {
451
+ owner?: Collections["user"]["item"] | undefined;
452
+ _id: import("mongodb").ObjectId;
453
+ } | {
454
+ owner?: Collections["user"]["item"] | undefined;
455
+ _id: import("mongodb").ObjectId;
456
+ } | {
457
+ updated_at?: Date | undefined;
458
+ created_at?: Date | undefined;
459
+ _id: import("mongodb").ObjectId;
460
+ } | {
461
+ updated_at?: Date | undefined;
462
+ created_at?: Date | undefined;
463
+ _id: import("mongodb").ObjectId;
464
+ } | {
465
+ updated_at?: Date | undefined;
466
+ created_at?: Date | undefined;
467
+ _id: import("mongodb").ObjectId;
468
+ } | {
469
+ owner?: Collections["user"]["item"] | undefined;
470
+ updated_at?: Date | undefined;
471
+ created_at?: Date | undefined;
472
+ _id: import("mongodb").ObjectId;
473
+ } | {
474
+ owner?: Collections["user"]["item"] | undefined;
475
+ updated_at?: Date | undefined;
476
+ created_at?: Date | undefined;
477
+ _id: import("mongodb").ObjectId;
478
+ } | {
479
+ owner?: Collections["user"]["item"] | undefined;
480
+ updated_at?: Date | undefined;
481
+ created_at?: Date | undefined;
482
+ _id: import("mongodb").ObjectId;
483
+ }> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions) => Promise<import("@aeriajs/types").GetAllReturnType<{
484
+ _id: import("mongodb").ObjectId;
485
+ } | {
486
+ _id: import("mongodb").ObjectId;
487
+ } | {
488
+ _id: import("mongodb").ObjectId;
489
+ } | {
490
+ owner?: Collections["user"]["item"] | undefined;
491
+ _id: import("mongodb").ObjectId;
492
+ } | {
493
+ owner?: Collections["user"]["item"] | undefined;
494
+ _id: import("mongodb").ObjectId;
495
+ } | {
496
+ owner?: Collections["user"]["item"] | undefined;
497
+ _id: import("mongodb").ObjectId;
498
+ } | {
499
+ updated_at?: Date | undefined;
500
+ created_at?: Date | undefined;
501
+ _id: import("mongodb").ObjectId;
502
+ } | {
503
+ updated_at?: Date | undefined;
504
+ created_at?: Date | undefined;
505
+ _id: import("mongodb").ObjectId;
506
+ } | {
507
+ updated_at?: Date | undefined;
508
+ created_at?: Date | undefined;
509
+ _id: import("mongodb").ObjectId;
510
+ } | {
511
+ owner?: Collections["user"]["item"] | undefined;
512
+ updated_at?: Date | undefined;
513
+ created_at?: Date | undefined;
514
+ _id: import("mongodb").ObjectId;
515
+ } | {
516
+ owner?: Collections["user"]["item"] | undefined;
517
+ updated_at?: Date | undefined;
518
+ created_at?: Date | undefined;
519
+ _id: import("mongodb").ObjectId;
520
+ } | {
521
+ owner?: Collections["user"]["item"] | undefined;
522
+ updated_at?: Date | undefined;
523
+ created_at?: Date | undefined;
524
+ _id: import("mongodb").ObjectId;
525
+ }>>;
526
+ insert: (payload: import("@aeriajs/types").InsertPayload<{
527
+ _id: import("mongodb").ObjectId;
528
+ } | {
529
+ _id: import("mongodb").ObjectId;
530
+ } | {
531
+ _id: import("mongodb").ObjectId;
532
+ } | {
533
+ owner?: Collections["user"]["item"] | undefined;
534
+ _id: import("mongodb").ObjectId;
535
+ } | {
536
+ owner?: Collections["user"]["item"] | undefined;
537
+ _id: import("mongodb").ObjectId;
538
+ } | {
539
+ owner?: Collections["user"]["item"] | undefined;
540
+ _id: import("mongodb").ObjectId;
541
+ } | {
542
+ updated_at?: Date | undefined;
543
+ created_at?: Date | undefined;
544
+ _id: import("mongodb").ObjectId;
545
+ } | {
546
+ updated_at?: Date | undefined;
547
+ created_at?: Date | undefined;
548
+ _id: import("mongodb").ObjectId;
549
+ } | {
550
+ updated_at?: Date | undefined;
551
+ created_at?: Date | undefined;
552
+ _id: import("mongodb").ObjectId;
553
+ } | {
554
+ owner?: Collections["user"]["item"] | undefined;
555
+ updated_at?: Date | undefined;
556
+ created_at?: Date | undefined;
557
+ _id: import("mongodb").ObjectId;
558
+ } | {
559
+ owner?: Collections["user"]["item"] | undefined;
560
+ updated_at?: Date | undefined;
561
+ created_at?: Date | undefined;
562
+ _id: import("mongodb").ObjectId;
563
+ } | {
564
+ owner?: Collections["user"]["item"] | undefined;
565
+ updated_at?: Date | undefined;
566
+ created_at?: Date | undefined;
567
+ _id: import("mongodb").ObjectId;
568
+ }>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions) => Promise<import("@aeriajs/types").InsertReturnType<{
569
+ _id: import("mongodb").ObjectId;
570
+ } | {
571
+ _id: import("mongodb").ObjectId;
572
+ } | {
573
+ _id: import("mongodb").ObjectId;
574
+ } | {
575
+ owner?: Collections["user"]["item"] | undefined;
576
+ _id: import("mongodb").ObjectId;
577
+ } | {
578
+ owner?: Collections["user"]["item"] | undefined;
579
+ _id: import("mongodb").ObjectId;
580
+ } | {
581
+ owner?: Collections["user"]["item"] | undefined;
582
+ _id: import("mongodb").ObjectId;
583
+ } | {
584
+ updated_at?: Date | undefined;
585
+ created_at?: Date | undefined;
586
+ _id: import("mongodb").ObjectId;
587
+ } | {
588
+ updated_at?: Date | undefined;
589
+ created_at?: Date | undefined;
590
+ _id: import("mongodb").ObjectId;
591
+ } | {
592
+ updated_at?: Date | undefined;
593
+ created_at?: Date | undefined;
594
+ _id: import("mongodb").ObjectId;
595
+ } | {
596
+ owner?: Collections["user"]["item"] | undefined;
597
+ updated_at?: Date | undefined;
598
+ created_at?: Date | undefined;
599
+ _id: import("mongodb").ObjectId;
600
+ } | {
601
+ owner?: Collections["user"]["item"] | undefined;
602
+ updated_at?: Date | undefined;
603
+ created_at?: Date | undefined;
604
+ _id: import("mongodb").ObjectId;
605
+ } | {
606
+ owner?: Collections["user"]["item"] | undefined;
607
+ updated_at?: Date | undefined;
608
+ created_at?: Date | undefined;
609
+ _id: import("mongodb").ObjectId;
610
+ }>>;
383
611
  };
384
612
  contracts: {
385
613
  get?: import("@aeriajs/types").Contract | undefined;
@@ -388,41 +616,51 @@ export declare const collections: {
388
616
  };
389
617
  };
390
618
  resourceUsage: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
391
- item: import("@aeriajs/types").SchemaWithId<{
392
- readonly $id: "resourceUsage";
393
- readonly icon: "wrench";
394
- readonly required: readonly ["usage"];
395
- readonly properties: {
396
- readonly user: {
397
- readonly $ref: "user";
398
- };
399
- readonly address: {
400
- readonly type: "string";
401
- };
402
- readonly usage: {
403
- readonly type: "object";
404
- readonly additionalProperties: {
405
- readonly type: "object";
406
- readonly properties: {
407
- readonly hits: {
408
- readonly type: "integer";
409
- };
410
- readonly points: {
411
- readonly type: "integer";
412
- };
413
- readonly last_reach: {
414
- readonly type: "string";
415
- readonly format: "date-time";
416
- };
417
- readonly last_maximum_reach: {
418
- readonly type: "string";
419
- readonly format: "date-time";
420
- };
421
- };
422
- };
423
- };
619
+ item: {
620
+ usage: {
621
+ [P: string]: {
622
+ hits: number;
623
+ points: number;
624
+ last_reach: Date;
625
+ last_maximum_reach: Date;
626
+ } | undefined;
424
627
  };
425
- }>;
628
+ user?: {
629
+ name: string;
630
+ roles: string[];
631
+ email: string;
632
+ picture_file?: {
633
+ name: string;
634
+ link: never;
635
+ type: string;
636
+ size: number;
637
+ last_modified: Date;
638
+ absolute_path: string;
639
+ relative_path: string;
640
+ immutable: boolean;
641
+ download_link: never;
642
+ owner?: Collections["user"]["item"] | undefined;
643
+ updated_at?: Date | undefined;
644
+ created_at?: Date | undefined;
645
+ _id: import("mongodb").ObjectId;
646
+ } | undefined;
647
+ password?: string | undefined;
648
+ updated_at?: Date | undefined;
649
+ picture?: undefined;
650
+ active?: boolean | undefined;
651
+ phone_number?: string | undefined;
652
+ given_name?: undefined;
653
+ family_name?: undefined;
654
+ group?: string | undefined;
655
+ readonly self_registered?: boolean | undefined;
656
+ created_at?: Date | undefined;
657
+ _id: import("mongodb").ObjectId;
658
+ } | undefined;
659
+ address?: string | undefined;
660
+ updated_at?: Date | undefined;
661
+ created_at?: Date | undefined;
662
+ _id: import("mongodb").ObjectId;
663
+ };
426
664
  description: {
427
665
  readonly $id: "resourceUsage";
428
666
  readonly icon: "wrench";
@@ -464,107 +702,37 @@ export declare const collections: {
464
702
  } | undefined;
465
703
  };
466
704
  user: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
467
- item: import("@aeriajs/types").SchemaWithId<{
468
- readonly $id: "user";
469
- readonly icon: "users";
470
- readonly required: readonly ["name", "roles", "email"];
471
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
472
- readonly indexes: readonly ["name"];
473
- readonly properties: {
474
- readonly name: {
475
- readonly type: "string";
476
- };
477
- readonly given_name: {
478
- readonly getter: (doc: object) => string | undefined;
479
- };
480
- readonly family_name: {
481
- readonly getter: (doc: object) => string | undefined;
482
- };
483
- readonly active: {
484
- readonly type: "boolean";
485
- };
486
- readonly roles: {
487
- readonly type: "array";
488
- readonly items: {
489
- readonly type: "string";
490
- };
491
- readonly uniqueItems: true;
492
- readonly minItems: 1;
493
- };
494
- readonly email: {
495
- readonly type: "string";
496
- readonly inputType: "email";
497
- readonly unique: true;
498
- };
499
- readonly password: {
500
- readonly type: "string";
501
- readonly inputType: "password";
502
- readonly hidden: true;
503
- };
504
- readonly phone_number: {
505
- readonly type: "string";
506
- readonly mask: "(##) #####-####";
507
- };
508
- readonly picture_file: {
509
- readonly $ref: "file";
510
- readonly accept: readonly ["image/*"];
511
- };
512
- readonly picture: {
513
- readonly getter: (doc: object) => Promise<string> | undefined;
514
- };
515
- readonly group: {
516
- readonly type: "string";
517
- };
518
- readonly self_registered: {
519
- readonly type: "boolean";
520
- readonly readOnly: true;
521
- };
522
- readonly updated_at: {
523
- readonly type: "string";
524
- readonly format: "date-time";
525
- };
526
- };
527
- readonly presets: readonly ["crud", "duplicate"];
528
- readonly layout: {
529
- readonly name: "grid";
530
- readonly options: {
531
- readonly title: "name";
532
- readonly badge: "roles";
533
- readonly picture: "picture_file";
534
- readonly information: "email";
535
- readonly active: "active";
536
- };
537
- };
538
- readonly individualActions: {
539
- readonly changePassword: {
540
- readonly label: "change_password";
541
- readonly icon: "key";
542
- readonly translate: true;
543
- readonly route: {
544
- readonly name: "/dashboard/user/changepass";
545
- readonly fetchItem: true;
546
- };
547
- };
548
- readonly copyActivationLink: {
549
- readonly label: "copy_activation_link";
550
- readonly icon: "link";
551
- readonly translate: true;
552
- };
553
- };
554
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
555
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
556
- readonly tableMeta: readonly ["email"];
557
- readonly formLayout: {
558
- readonly fields: {
559
- readonly given_name: {
560
- readonly span: 3;
561
- };
562
- readonly family_name: {
563
- readonly span: 3;
564
- };
565
- };
566
- };
567
- }>;
705
+ item: {
706
+ name: string;
707
+ roles: string[];
708
+ email: string;
709
+ picture_file?: {
710
+ name: string;
711
+ link: never;
712
+ type: string;
713
+ size: number;
714
+ last_modified: Date;
715
+ absolute_path: string;
716
+ relative_path: string;
717
+ immutable: boolean;
718
+ download_link: never;
719
+ owner?: Collections["user"]["item"] | undefined;
720
+ updated_at?: Date | undefined;
721
+ created_at?: Date | undefined;
722
+ _id: import("mongodb").ObjectId;
723
+ } | undefined;
724
+ password?: string | undefined;
725
+ updated_at?: Date | undefined;
726
+ picture?: undefined;
727
+ active?: boolean | undefined;
728
+ phone_number?: string | undefined;
729
+ given_name?: undefined;
730
+ family_name?: undefined;
731
+ group?: string | undefined;
732
+ readonly self_registered?: boolean | undefined;
733
+ created_at?: Date | undefined;
734
+ _id: import("mongodb").ObjectId;
735
+ };
568
736
  description: {
569
737
  readonly $id: "user";
570
738
  readonly icon: "users";
@@ -672,7 +840,12 @@ export declare const collections: {
672
840
  readonly remove: <TContext extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext, options?: import("@aeriajs/core").RemoveOptions) => Promise<{
673
841
  readonly _tag: "Result";
674
842
  readonly error: undefined;
675
- readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
843
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<{
844
+ [x: string]: unknown;
845
+ updated_at?: Date | undefined;
846
+ created_at?: Date | undefined;
847
+ _id: import("mongodb").ObjectId;
848
+ }>, "_id">> | null;
676
849
  } | import("@aeriajs/types").Result.Error<{
677
850
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
678
851
  } & {
@@ -703,7 +876,63 @@ export declare const collections: {
703
876
  } & {
704
877
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
705
878
  }>>;
706
- readonly insert: <TDescription extends import("@aeriajs/types").Description, TInsertPayload extends import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TDescription>>>(payload: NoInfer<TInsertPayload>, context: import("@aeriajs/types").Context<TDescription>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<TDescription>>>;
879
+ readonly insert: <TDescription extends import("@aeriajs/types").Description, TInsertPayload extends import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TDescription>>>(payload: NoInfer<TInsertPayload>, context: import("@aeriajs/types").Context<TDescription>) => Promise<import("@aeriajs/types").InsertReturnType<((TDescription extends {
880
+ timestamps: false;
881
+ } ? TDescription extends {
882
+ owned: true | string;
883
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
884
+ owner?: Collections["user"]["item"];
885
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
886
+ owned: true | string;
887
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
888
+ owner?: Collections["user"]["item"];
889
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
890
+ updated_at?: Date;
891
+ created_at?: Date;
892
+ }) extends infer T_1 ? { [K_1 in keyof T_1]: (TDescription extends {
893
+ timestamps: false;
894
+ } ? TDescription extends {
895
+ owned: true | string;
896
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
897
+ owner?: Collections["user"]["item"];
898
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
899
+ owned: true | string;
900
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
901
+ owner?: Collections["user"]["item"];
902
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
903
+ updated_at?: Date;
904
+ created_at?: Date;
905
+ })[K_1]; } : never) & {
906
+ _id: import("mongodb").ObjectId;
907
+ } extends infer T ? { [K in keyof T]: (((TDescription extends {
908
+ timestamps: false;
909
+ } ? TDescription extends {
910
+ owned: true | string;
911
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
912
+ owner?: Collections["user"]["item"];
913
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
914
+ owned: true | string;
915
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
916
+ owner?: Collections["user"]["item"];
917
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
918
+ updated_at?: Date;
919
+ created_at?: Date;
920
+ }) extends infer T_1 ? { [K_1 in keyof T_1]: (TDescription extends {
921
+ timestamps: false;
922
+ } ? TDescription extends {
923
+ owned: true | string;
924
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
925
+ owner?: Collections["user"]["item"];
926
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
927
+ owned: true | string;
928
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
929
+ owner?: Collections["user"]["item"];
930
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
931
+ updated_at?: Date;
932
+ created_at?: Date;
933
+ })[K_1]; } : never) & {
934
+ _id: import("mongodb").ObjectId;
935
+ })[K]; } : never>>;
707
936
  readonly authenticate: (props: {
708
937
  email: string;
709
938
  password: string;
@@ -787,107 +1016,37 @@ export declare const collections: {
787
1016
  readonly details: import("@aeriajs/types").PropertyValidationError | import("@aeriajs/types").ValidationError;
788
1017
  } & {
789
1018
  httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
790
- }> | import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
791
- readonly $id: "user";
792
- readonly icon: "users";
793
- readonly required: readonly ["name", "roles", "email"];
794
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
795
- readonly indexes: readonly ["name"];
796
- readonly properties: {
797
- readonly name: {
798
- readonly type: "string";
799
- };
800
- readonly given_name: {
801
- readonly getter: (doc: object) => string | undefined;
802
- };
803
- readonly family_name: {
804
- readonly getter: (doc: object) => string | undefined;
805
- };
806
- readonly active: {
807
- readonly type: "boolean";
808
- };
809
- readonly roles: {
810
- readonly type: "array";
811
- readonly items: {
812
- readonly type: "string";
813
- };
814
- readonly uniqueItems: true;
815
- readonly minItems: 1;
816
- };
817
- readonly email: {
818
- readonly type: "string";
819
- readonly inputType: "email";
820
- readonly unique: true;
821
- };
822
- readonly password: {
823
- readonly type: "string";
824
- readonly inputType: "password";
825
- readonly hidden: true;
826
- };
827
- readonly phone_number: {
828
- readonly type: "string";
829
- readonly mask: "(##) #####-####";
830
- };
831
- readonly picture_file: {
832
- readonly $ref: "file";
833
- readonly accept: readonly ["image/*"];
834
- };
835
- readonly picture: {
836
- readonly getter: (doc: object) => Promise<string> | undefined;
837
- };
838
- readonly group: {
839
- readonly type: "string";
840
- };
841
- readonly self_registered: {
842
- readonly type: "boolean";
843
- readonly readOnly: true;
844
- };
845
- readonly updated_at: {
846
- readonly type: "string";
847
- readonly format: "date-time";
848
- };
849
- };
850
- readonly presets: readonly ["crud", "duplicate"];
851
- readonly layout: {
852
- readonly name: "grid";
853
- readonly options: {
854
- readonly title: "name";
855
- readonly badge: "roles";
856
- readonly picture: "picture_file";
857
- readonly information: "email";
858
- readonly active: "active";
859
- };
860
- };
861
- readonly individualActions: {
862
- readonly changePassword: {
863
- readonly label: "change_password";
864
- readonly icon: "key";
865
- readonly translate: true;
866
- readonly route: {
867
- readonly name: "/dashboard/user/changepass";
868
- readonly fetchItem: true;
869
- };
870
- };
871
- readonly copyActivationLink: {
872
- readonly label: "copy_activation_link";
873
- readonly icon: "link";
874
- readonly translate: true;
875
- };
876
- };
877
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
878
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
879
- readonly tableMeta: readonly ["email"];
880
- readonly formLayout: {
881
- readonly fields: {
882
- readonly given_name: {
883
- readonly span: 3;
884
- };
885
- readonly family_name: {
886
- readonly span: 3;
887
- };
888
- };
889
- };
890
- }>>>;
1019
+ }> | import("@aeriajs/types").InsertReturnType<{
1020
+ name: string;
1021
+ roles: string[];
1022
+ email: string;
1023
+ picture_file?: {
1024
+ name: string;
1025
+ link: never;
1026
+ type: string;
1027
+ size: number;
1028
+ last_modified: Date;
1029
+ absolute_path: string;
1030
+ relative_path: string;
1031
+ immutable: boolean;
1032
+ download_link: never;
1033
+ owner?: Collections["user"]["item"] | undefined;
1034
+ updated_at?: Date | undefined;
1035
+ created_at?: Date | undefined;
1036
+ _id: import("mongodb").ObjectId;
1037
+ } | undefined;
1038
+ password?: string | undefined;
1039
+ updated_at?: Date | undefined;
1040
+ picture?: undefined;
1041
+ active?: boolean | undefined;
1042
+ phone_number?: string | undefined;
1043
+ given_name?: undefined;
1044
+ family_name?: undefined;
1045
+ group?: string | undefined;
1046
+ readonly self_registered?: boolean | undefined;
1047
+ created_at?: Date | undefined;
1048
+ _id: import("mongodb").ObjectId;
1049
+ }>>;
891
1050
  readonly getInfo: (payload: {
892
1051
  userId: string;
893
1052
  token: string;
@@ -924,151 +1083,48 @@ export declare const collections: {
924
1083
  } | {
925
1084
  readonly _tag: "Result";
926
1085
  readonly error: undefined;
927
- readonly result: import("@aeriajs/types").SchemaWithId<{
928
- readonly $id: "user";
929
- readonly icon: "users";
930
- readonly required: readonly ["name", "roles", "email"];
931
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
932
- readonly indexes: readonly ["name"];
933
- readonly properties: {
934
- readonly name: {
935
- readonly type: "string";
936
- };
937
- readonly given_name: {
938
- readonly getter: (doc: object) => string | undefined;
939
- };
940
- readonly family_name: {
941
- readonly getter: (doc: object) => string | undefined;
942
- };
943
- readonly active: {
944
- readonly type: "boolean";
945
- };
946
- readonly roles: {
947
- readonly type: "array";
948
- readonly items: {
949
- readonly type: "string";
950
- };
951
- readonly uniqueItems: true;
952
- readonly minItems: 1;
953
- };
954
- readonly email: {
955
- readonly type: "string";
956
- readonly inputType: "email";
957
- readonly unique: true;
958
- };
959
- readonly password: {
960
- readonly type: "string";
961
- readonly inputType: "password";
962
- readonly hidden: true;
963
- };
964
- readonly phone_number: {
965
- readonly type: "string";
966
- readonly mask: "(##) #####-####";
967
- };
968
- readonly picture_file: {
969
- readonly $ref: "file";
970
- readonly accept: readonly ["image/*"];
971
- };
972
- readonly picture: {
973
- readonly getter: (doc: object) => Promise<string> | undefined;
974
- };
975
- readonly group: {
976
- readonly type: "string";
977
- };
978
- readonly self_registered: {
979
- readonly type: "boolean";
980
- readonly readOnly: true;
981
- };
982
- readonly updated_at: {
983
- readonly type: "string";
984
- readonly format: "date-time";
985
- };
986
- };
987
- readonly presets: readonly ["crud", "duplicate"];
988
- readonly layout: {
989
- readonly name: "grid";
990
- readonly options: {
991
- readonly title: "name";
992
- readonly badge: "roles";
993
- readonly picture: "picture_file";
994
- readonly information: "email";
995
- readonly active: "active";
996
- };
997
- };
998
- readonly individualActions: {
999
- readonly changePassword: {
1000
- readonly label: "change_password";
1001
- readonly icon: "key";
1002
- readonly translate: true;
1003
- readonly route: {
1004
- readonly name: "/dashboard/user/changepass";
1005
- readonly fetchItem: true;
1006
- };
1007
- };
1008
- readonly copyActivationLink: {
1009
- readonly label: "copy_activation_link";
1010
- readonly icon: "link";
1011
- readonly translate: true;
1012
- };
1013
- };
1014
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
1015
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1016
- readonly tableMeta: readonly ["email"];
1017
- readonly formLayout: {
1018
- readonly fields: {
1019
- readonly given_name: {
1020
- readonly span: 3;
1021
- };
1022
- readonly family_name: {
1023
- readonly span: 3;
1024
- };
1025
- };
1026
- };
1027
- }>;
1086
+ readonly result: {
1087
+ name: string;
1088
+ roles: string[];
1089
+ email: string;
1090
+ picture_file?: {
1091
+ name: string;
1092
+ link: never;
1093
+ type: string;
1094
+ size: number;
1095
+ last_modified: Date;
1096
+ absolute_path: string;
1097
+ relative_path: string;
1098
+ immutable: boolean;
1099
+ download_link: never;
1100
+ owner?: Collections["user"]["item"] | undefined;
1101
+ updated_at?: Date | undefined;
1102
+ created_at?: Date | undefined;
1103
+ _id: import("mongodb").ObjectId;
1104
+ } | undefined;
1105
+ password?: string | undefined;
1106
+ updated_at?: Date | undefined;
1107
+ picture?: undefined;
1108
+ active?: boolean | undefined;
1109
+ phone_number?: string | undefined;
1110
+ given_name?: undefined;
1111
+ family_name?: undefined;
1112
+ group?: string | undefined;
1113
+ readonly self_registered?: boolean | undefined;
1114
+ created_at?: Date | undefined;
1115
+ _id: import("mongodb").ObjectId;
1116
+ };
1028
1117
  }>;
1029
1118
  readonly getActivationLink: (payload: {
1030
1119
  userId: import("mongodb").ObjectId | string;
1031
1120
  }, context: import("@aeriajs/types").Context) => Promise<{
1032
1121
  readonly _tag: "Error";
1033
- readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
1034
- readonly httpStatus: {
1035
- readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
1036
- };
1037
- readonly code: {
1038
- readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
1039
- };
1040
- readonly message: {
1041
- readonly type: "string";
1042
- };
1043
- readonly details: {
1044
- readonly type: "object";
1045
- readonly additionalProperties: true;
1046
- };
1047
- }>> & {
1048
- code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
1049
- httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
1050
- message: string;
1051
- details: any;
1052
- }, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
1053
- readonly httpStatus: {
1054
- readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
1055
- };
1056
- readonly code: {
1057
- readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
1058
- };
1059
- readonly message: {
1060
- readonly type: "string";
1061
- };
1062
- readonly details: {
1063
- readonly type: "object";
1064
- readonly additionalProperties: true;
1065
- };
1066
- }>> & {
1122
+ readonly error: {
1067
1123
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
1068
1124
  httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
1069
- message: string;
1070
- details: any;
1071
- }, never>>;
1125
+ message?: string | undefined;
1126
+ details?: any;
1127
+ };
1072
1128
  readonly result: undefined;
1073
1129
  } | import("@aeriajs/types").Result.Error<{
1074
1130
  readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;