@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.
@@ -1,107 +1,37 @@
1
1
  import type { Collection } from '@aeriajs/types';
2
2
  import { description } from './description.js';
3
3
  export declare const user: Omit<Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
4
- item: import("@aeriajs/types").SchemaWithId<{
5
- readonly $id: "user";
6
- readonly icon: "users";
7
- readonly required: readonly ["name", "roles", "email"];
8
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
9
- readonly indexes: readonly ["name"];
10
- readonly properties: {
11
- readonly name: {
12
- readonly type: "string";
13
- };
14
- readonly given_name: {
15
- readonly getter: (doc: object) => string | undefined;
16
- };
17
- readonly family_name: {
18
- readonly getter: (doc: object) => string | undefined;
19
- };
20
- readonly active: {
21
- readonly type: "boolean";
22
- };
23
- readonly roles: {
24
- readonly type: "array";
25
- readonly items: {
26
- readonly type: "string";
27
- };
28
- readonly uniqueItems: true;
29
- readonly minItems: 1;
30
- };
31
- readonly email: {
32
- readonly type: "string";
33
- readonly inputType: "email";
34
- readonly unique: true;
35
- };
36
- readonly password: {
37
- readonly type: "string";
38
- readonly inputType: "password";
39
- readonly hidden: true;
40
- };
41
- readonly phone_number: {
42
- readonly type: "string";
43
- readonly mask: "(##) #####-####";
44
- };
45
- readonly picture_file: {
46
- readonly $ref: "file";
47
- readonly accept: readonly ["image/*"];
48
- };
49
- readonly picture: {
50
- readonly getter: (doc: object) => Promise<string> | undefined;
51
- };
52
- readonly group: {
53
- readonly type: "string";
54
- };
55
- readonly self_registered: {
56
- readonly type: "boolean";
57
- readonly readOnly: true;
58
- };
59
- readonly updated_at: {
60
- readonly type: "string";
61
- readonly format: "date-time";
62
- };
63
- };
64
- readonly presets: readonly ["crud", "duplicate"];
65
- readonly layout: {
66
- readonly name: "grid";
67
- readonly options: {
68
- readonly title: "name";
69
- readonly badge: "roles";
70
- readonly picture: "picture_file";
71
- readonly information: "email";
72
- readonly active: "active";
73
- };
74
- };
75
- readonly individualActions: {
76
- readonly changePassword: {
77
- readonly label: "change_password";
78
- readonly icon: "key";
79
- readonly translate: true;
80
- readonly route: {
81
- readonly name: "/dashboard/user/changepass";
82
- readonly fetchItem: true;
83
- };
84
- };
85
- readonly copyActivationLink: {
86
- readonly label: "copy_activation_link";
87
- readonly icon: "link";
88
- readonly translate: true;
89
- };
90
- };
91
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
92
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
93
- readonly tableMeta: readonly ["email"];
94
- readonly formLayout: {
95
- readonly fields: {
96
- readonly given_name: {
97
- readonly span: 3;
98
- };
99
- readonly family_name: {
100
- readonly span: 3;
101
- };
102
- };
103
- };
104
- }>;
4
+ item: {
5
+ name: string;
6
+ roles: string[];
7
+ email: string;
8
+ picture_file?: {
9
+ name: string;
10
+ link: never;
11
+ type: string;
12
+ size: number;
13
+ last_modified: Date;
14
+ absolute_path: string;
15
+ relative_path: string;
16
+ immutable: boolean;
17
+ download_link: never;
18
+ owner?: Collections["user"]["item"] | undefined;
19
+ updated_at?: Date | undefined;
20
+ created_at?: Date | undefined;
21
+ _id: import("@aeriajs/core").ObjectId;
22
+ } | undefined;
23
+ password?: string | undefined;
24
+ updated_at?: Date | undefined;
25
+ picture?: undefined;
26
+ active?: boolean | undefined;
27
+ phone_number?: string | undefined;
28
+ given_name?: undefined;
29
+ family_name?: undefined;
30
+ group?: string | undefined;
31
+ readonly self_registered?: boolean | undefined;
32
+ created_at?: Date | undefined;
33
+ _id: import("@aeriajs/core").ObjectId;
34
+ };
105
35
  description: {
106
36
  readonly $id: "user";
107
37
  readonly icon: "users";
@@ -209,7 +139,12 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
209
139
  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<{
210
140
  readonly _tag: "Result";
211
141
  readonly error: undefined;
212
- readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
142
+ readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<{
143
+ [x: string]: unknown;
144
+ updated_at?: Date | undefined;
145
+ created_at?: Date | undefined;
146
+ _id: import("@aeriajs/core").ObjectId;
147
+ }>, "_id">> | null;
213
148
  } | import("@aeriajs/types").Result.Error<{
214
149
  readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
215
150
  } & {
@@ -240,7 +175,63 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
240
175
  } & {
241
176
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
242
177
  }>>;
243
- 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>>>;
178
+ 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 {
179
+ timestamps: false;
180
+ } ? TDescription extends {
181
+ owned: true | string;
182
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
183
+ owner?: Collections["user"]["item"];
184
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
185
+ owned: true | string;
186
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
187
+ owner?: Collections["user"]["item"];
188
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
189
+ updated_at?: Date;
190
+ created_at?: Date;
191
+ }) extends infer T_1 ? { [K_1 in keyof T_1]: (TDescription extends {
192
+ timestamps: false;
193
+ } ? TDescription extends {
194
+ owned: true | string;
195
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
196
+ owner?: Collections["user"]["item"];
197
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
198
+ owned: true | string;
199
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
200
+ owner?: Collections["user"]["item"];
201
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
202
+ updated_at?: Date;
203
+ created_at?: Date;
204
+ })[K_1]; } : never) & {
205
+ _id: import("@aeriajs/core").ObjectId;
206
+ } extends infer T ? { [K in keyof T]: (((TDescription extends {
207
+ timestamps: false;
208
+ } ? TDescription extends {
209
+ owned: true | string;
210
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
211
+ owner?: Collections["user"]["item"];
212
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
213
+ owned: true | string;
214
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
215
+ owner?: Collections["user"]["item"];
216
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
217
+ updated_at?: Date;
218
+ created_at?: Date;
219
+ }) extends infer T_1 ? { [K_1 in keyof T_1]: (TDescription extends {
220
+ timestamps: false;
221
+ } ? TDescription extends {
222
+ owned: true | string;
223
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
224
+ owner?: Collections["user"]["item"];
225
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
226
+ owned: true | string;
227
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
228
+ owner?: Collections["user"]["item"];
229
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
230
+ updated_at?: Date;
231
+ created_at?: Date;
232
+ })[K_1]; } : never) & {
233
+ _id: import("@aeriajs/core").ObjectId;
234
+ })[K]; } : never>>;
244
235
  readonly authenticate: (props: {
245
236
  email: string;
246
237
  password: string;
@@ -324,107 +315,37 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
324
315
  readonly details: import("@aeriajs/types").PropertyValidationError | import("@aeriajs/types").ValidationError;
325
316
  } & {
326
317
  httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
327
- }> | import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
328
- readonly $id: "user";
329
- readonly icon: "users";
330
- readonly required: readonly ["name", "roles", "email"];
331
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
332
- readonly indexes: readonly ["name"];
333
- readonly properties: {
334
- readonly name: {
335
- readonly type: "string";
336
- };
337
- readonly given_name: {
338
- readonly getter: (doc: object) => string | undefined;
339
- };
340
- readonly family_name: {
341
- readonly getter: (doc: object) => string | undefined;
342
- };
343
- readonly active: {
344
- readonly type: "boolean";
345
- };
346
- readonly roles: {
347
- readonly type: "array";
348
- readonly items: {
349
- readonly type: "string";
350
- };
351
- readonly uniqueItems: true;
352
- readonly minItems: 1;
353
- };
354
- readonly email: {
355
- readonly type: "string";
356
- readonly inputType: "email";
357
- readonly unique: true;
358
- };
359
- readonly password: {
360
- readonly type: "string";
361
- readonly inputType: "password";
362
- readonly hidden: true;
363
- };
364
- readonly phone_number: {
365
- readonly type: "string";
366
- readonly mask: "(##) #####-####";
367
- };
368
- readonly picture_file: {
369
- readonly $ref: "file";
370
- readonly accept: readonly ["image/*"];
371
- };
372
- readonly picture: {
373
- readonly getter: (doc: object) => Promise<string> | undefined;
374
- };
375
- readonly group: {
376
- readonly type: "string";
377
- };
378
- readonly self_registered: {
379
- readonly type: "boolean";
380
- readonly readOnly: true;
381
- };
382
- readonly updated_at: {
383
- readonly type: "string";
384
- readonly format: "date-time";
385
- };
386
- };
387
- readonly presets: readonly ["crud", "duplicate"];
388
- readonly layout: {
389
- readonly name: "grid";
390
- readonly options: {
391
- readonly title: "name";
392
- readonly badge: "roles";
393
- readonly picture: "picture_file";
394
- readonly information: "email";
395
- readonly active: "active";
396
- };
397
- };
398
- readonly individualActions: {
399
- readonly changePassword: {
400
- readonly label: "change_password";
401
- readonly icon: "key";
402
- readonly translate: true;
403
- readonly route: {
404
- readonly name: "/dashboard/user/changepass";
405
- readonly fetchItem: true;
406
- };
407
- };
408
- readonly copyActivationLink: {
409
- readonly label: "copy_activation_link";
410
- readonly icon: "link";
411
- readonly translate: true;
412
- };
413
- };
414
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
415
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
416
- readonly tableMeta: readonly ["email"];
417
- readonly formLayout: {
418
- readonly fields: {
419
- readonly given_name: {
420
- readonly span: 3;
421
- };
422
- readonly family_name: {
423
- readonly span: 3;
424
- };
425
- };
426
- };
427
- }>>>;
318
+ }> | import("@aeriajs/types").InsertReturnType<{
319
+ name: string;
320
+ roles: string[];
321
+ email: string;
322
+ picture_file?: {
323
+ name: string;
324
+ link: never;
325
+ type: string;
326
+ size: number;
327
+ last_modified: Date;
328
+ absolute_path: string;
329
+ relative_path: string;
330
+ immutable: boolean;
331
+ download_link: never;
332
+ owner?: Collections["user"]["item"] | undefined;
333
+ updated_at?: Date | undefined;
334
+ created_at?: Date | undefined;
335
+ _id: import("@aeriajs/core").ObjectId;
336
+ } | undefined;
337
+ password?: string | undefined;
338
+ updated_at?: Date | undefined;
339
+ picture?: undefined;
340
+ active?: boolean | undefined;
341
+ phone_number?: string | undefined;
342
+ given_name?: undefined;
343
+ family_name?: undefined;
344
+ group?: string | undefined;
345
+ readonly self_registered?: boolean | undefined;
346
+ created_at?: Date | undefined;
347
+ _id: import("@aeriajs/core").ObjectId;
348
+ }>>;
428
349
  readonly getInfo: (payload: {
429
350
  userId: string;
430
351
  token: string;
@@ -461,151 +382,48 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
461
382
  } | {
462
383
  readonly _tag: "Result";
463
384
  readonly error: undefined;
464
- readonly result: import("@aeriajs/types").SchemaWithId<{
465
- readonly $id: "user";
466
- readonly icon: "users";
467
- readonly required: readonly ["name", "roles", "email"];
468
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
469
- readonly indexes: readonly ["name"];
470
- readonly properties: {
471
- readonly name: {
472
- readonly type: "string";
473
- };
474
- readonly given_name: {
475
- readonly getter: (doc: object) => string | undefined;
476
- };
477
- readonly family_name: {
478
- readonly getter: (doc: object) => string | undefined;
479
- };
480
- readonly active: {
481
- readonly type: "boolean";
482
- };
483
- readonly roles: {
484
- readonly type: "array";
485
- readonly items: {
486
- readonly type: "string";
487
- };
488
- readonly uniqueItems: true;
489
- readonly minItems: 1;
490
- };
491
- readonly email: {
492
- readonly type: "string";
493
- readonly inputType: "email";
494
- readonly unique: true;
495
- };
496
- readonly password: {
497
- readonly type: "string";
498
- readonly inputType: "password";
499
- readonly hidden: true;
500
- };
501
- readonly phone_number: {
502
- readonly type: "string";
503
- readonly mask: "(##) #####-####";
504
- };
505
- readonly picture_file: {
506
- readonly $ref: "file";
507
- readonly accept: readonly ["image/*"];
508
- };
509
- readonly picture: {
510
- readonly getter: (doc: object) => Promise<string> | undefined;
511
- };
512
- readonly group: {
513
- readonly type: "string";
514
- };
515
- readonly self_registered: {
516
- readonly type: "boolean";
517
- readonly readOnly: true;
518
- };
519
- readonly updated_at: {
520
- readonly type: "string";
521
- readonly format: "date-time";
522
- };
523
- };
524
- readonly presets: readonly ["crud", "duplicate"];
525
- readonly layout: {
526
- readonly name: "grid";
527
- readonly options: {
528
- readonly title: "name";
529
- readonly badge: "roles";
530
- readonly picture: "picture_file";
531
- readonly information: "email";
532
- readonly active: "active";
533
- };
534
- };
535
- readonly individualActions: {
536
- readonly changePassword: {
537
- readonly label: "change_password";
538
- readonly icon: "key";
539
- readonly translate: true;
540
- readonly route: {
541
- readonly name: "/dashboard/user/changepass";
542
- readonly fetchItem: true;
543
- };
544
- };
545
- readonly copyActivationLink: {
546
- readonly label: "copy_activation_link";
547
- readonly icon: "link";
548
- readonly translate: true;
549
- };
550
- };
551
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
552
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
553
- readonly tableMeta: readonly ["email"];
554
- readonly formLayout: {
555
- readonly fields: {
556
- readonly given_name: {
557
- readonly span: 3;
558
- };
559
- readonly family_name: {
560
- readonly span: 3;
561
- };
562
- };
563
- };
564
- }>;
385
+ readonly result: {
386
+ name: string;
387
+ roles: string[];
388
+ email: string;
389
+ picture_file?: {
390
+ name: string;
391
+ link: never;
392
+ type: string;
393
+ size: number;
394
+ last_modified: Date;
395
+ absolute_path: string;
396
+ relative_path: string;
397
+ immutable: boolean;
398
+ download_link: never;
399
+ owner?: Collections["user"]["item"] | undefined;
400
+ updated_at?: Date | undefined;
401
+ created_at?: Date | undefined;
402
+ _id: import("@aeriajs/core").ObjectId;
403
+ } | undefined;
404
+ password?: string | undefined;
405
+ updated_at?: Date | undefined;
406
+ picture?: undefined;
407
+ active?: boolean | undefined;
408
+ phone_number?: string | undefined;
409
+ given_name?: undefined;
410
+ family_name?: undefined;
411
+ group?: string | undefined;
412
+ readonly self_registered?: boolean | undefined;
413
+ created_at?: Date | undefined;
414
+ _id: import("@aeriajs/core").ObjectId;
415
+ };
565
416
  }>;
566
417
  readonly getActivationLink: (payload: {
567
418
  userId: import("@aeriajs/core").ObjectId | string;
568
419
  }, context: import("@aeriajs/types").Context) => Promise<{
569
420
  readonly _tag: "Error";
570
- readonly error: Pick<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
571
- readonly httpStatus: {
572
- readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
573
- };
574
- readonly code: {
575
- readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
576
- };
577
- readonly message: {
578
- readonly type: "string";
579
- };
580
- readonly details: {
581
- readonly type: "object";
582
- readonly additionalProperties: true;
583
- };
584
- }>> & {
421
+ readonly error: {
585
422
  code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
586
423
  httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
587
- message: string;
588
- details: any;
589
- }, never>, "code" | "httpStatus"> & Partial<{} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
590
- readonly httpStatus: {
591
- readonly enum: [import("@aeriajs/types").HTTPStatus.Forbidden, import("@aeriajs/types").HTTPStatus.NotFound, import("@aeriajs/types").HTTPStatus.BadRequest];
592
- };
593
- readonly code: {
594
- readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
595
- };
596
- readonly message: {
597
- readonly type: "string";
598
- };
599
- readonly details: {
600
- readonly type: "object";
601
- readonly additionalProperties: true;
602
- };
603
- }>> & {
604
- code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
605
- httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.Forbidden | import("@aeriajs/types").HTTPStatus.NotFound;
606
- message: string;
607
- details: any;
608
- }, never>>;
424
+ message?: string | undefined;
425
+ details?: any;
426
+ };
609
427
  readonly result: undefined;
610
428
  } | import("@aeriajs/types").Result.Error<{
611
429
  readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
@@ -1,2 +1,58 @@
1
1
  import type { Context, SchemaWithId, InsertPayload, Description } from '@aeriajs/types';
2
- export declare const insert: <TDescription extends Description, TInsertPayload extends InsertPayload<SchemaWithId<TDescription>>>(payload: NoInfer<TInsertPayload>, context: Context<TDescription>) => Promise<import("@aeriajs/types").InsertReturnType<SchemaWithId<TDescription>>>;
2
+ export declare const insert: <TDescription extends Description, TInsertPayload extends InsertPayload<SchemaWithId<TDescription>>>(payload: NoInfer<TInsertPayload>, context: Context<TDescription>) => Promise<import("@aeriajs/types").InsertReturnType<((TDescription extends {
3
+ timestamps: false;
4
+ } ? TDescription extends {
5
+ owned: true | string;
6
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
7
+ owner?: Collections["user"]["item"];
8
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
9
+ owned: true | string;
10
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
11
+ owner?: Collections["user"]["item"];
12
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
13
+ updated_at?: Date;
14
+ created_at?: Date;
15
+ }) extends infer T_1 ? { [K_1 in keyof T_1]: (TDescription extends {
16
+ timestamps: false;
17
+ } ? TDescription extends {
18
+ owned: true | string;
19
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
20
+ owner?: Collections["user"]["item"];
21
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
22
+ owned: true | string;
23
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
24
+ owner?: Collections["user"]["item"];
25
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
26
+ updated_at?: Date;
27
+ created_at?: Date;
28
+ })[K_1]; } : never) & {
29
+ _id: import("@aeriajs/core").ObjectId;
30
+ } extends infer T ? { [K in keyof T]: (((TDescription extends {
31
+ timestamps: false;
32
+ } ? TDescription extends {
33
+ owned: true | string;
34
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
35
+ owner?: Collections["user"]["item"];
36
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
37
+ owned: true | string;
38
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
39
+ owner?: Collections["user"]["item"];
40
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
41
+ updated_at?: Date;
42
+ created_at?: Date;
43
+ }) extends infer T_1 ? { [K_1 in keyof T_1]: (TDescription extends {
44
+ timestamps: false;
45
+ } ? TDescription extends {
46
+ owned: true | string;
47
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
48
+ owner?: Collections["user"]["item"];
49
+ } : import("@aeriajs/types").InferSchema<TDescription, {}> : (TDescription extends {
50
+ owned: true | string;
51
+ } ? import("@aeriajs/types").InferSchema<TDescription, {}> & {
52
+ owner?: Collections["user"]["item"];
53
+ } : import("@aeriajs/types").InferSchema<TDescription, {}>) & {
54
+ updated_at?: Date;
55
+ created_at?: Date;
56
+ })[K_1]; } : never) & {
57
+ _id: import("@aeriajs/core").ObjectId;
58
+ })[K]; } : never>>;