@aeriajs/builtins 0.0.74 → 0.0.75

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.
@@ -7,4 +7,4 @@ export declare enum ActivationErrors {
7
7
  }
8
8
  export declare const activate: (payload: {
9
9
  password: string;
10
- }, context: Context<typeof description>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Left<ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<true>>;
10
+ }, context: Context<typeof description>) => Promise<import("@aeriajs/types").Left<ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Right<true>>;
@@ -1,102 +1,3 @@
1
1
  import type { Context, Schema } from '@aeriajs/types';
2
2
  import type { description } from './description.js';
3
- export declare const createAccount: (payload: Omit<Schema<typeof description>, 'roles'>, context: Context<typeof description>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
4
- readonly $id: "user";
5
- readonly required: readonly ["name", "roles", "email"];
6
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
7
- readonly indexes: readonly ["name"];
8
- readonly freshItem: {
9
- readonly active: true;
10
- };
11
- readonly properties: {
12
- readonly name: {
13
- readonly type: "string";
14
- };
15
- readonly given_name: {
16
- readonly getter: (document: any) => string;
17
- };
18
- readonly family_name: {
19
- readonly getter: (document: any) => string;
20
- };
21
- readonly active: {
22
- readonly type: "boolean";
23
- };
24
- readonly roles: {
25
- readonly type: "array";
26
- readonly items: {
27
- readonly type: "string";
28
- };
29
- readonly uniqueItems: true;
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: (value: any) => any;
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", "view", "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 'ui:spawnEdit': {
77
- readonly name: "action.edit";
78
- readonly icon: "pencil";
79
- readonly translate: true;
80
- };
81
- readonly 'route:/dashboard/user/changepass': {
82
- readonly name: "change_password";
83
- readonly icon: "key";
84
- readonly fetchItem: true;
85
- readonly translate: true;
86
- };
87
- };
88
- readonly icon: "users";
89
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
90
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
91
- readonly tableMeta: readonly ["email"];
92
- readonly formLayout: {
93
- readonly fields: {
94
- readonly given_name: {
95
- readonly span: 3;
96
- };
97
- readonly family_name: {
98
- readonly span: 3;
99
- };
100
- };
101
- };
102
- }>>, "_id">>>>;
3
+ export declare const createAccount: (payload: Omit<Schema<typeof description>, 'roles'>, context: Context<typeof description>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<any>>;
@@ -9,6 +9,6 @@ export declare const getInfo: (payload: {
9
9
  userId: string;
10
10
  token: string;
11
11
  }, context: Context<typeof description>) => Promise<import("@aeriajs/types").Left<ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
12
- readonly name: string;
13
- readonly email: string;
12
+ readonly name: any;
13
+ readonly email: any;
14
14
  }>>;
@@ -612,7 +612,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
612
612
  };
613
613
  };
614
614
  };
615
- }>, "name" | "active" | "roles" | "email"> & {
615
+ }>, "name" | "roles" | "email" | "active"> & {
616
616
  _id: import("@aeriajs/core").ObjectId | null;
617
617
  };
618
618
  token: import("@aeriajs/types").TokenRecipient;
@@ -730,7 +730,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
730
730
  };
731
731
  };
732
732
  };
733
- }>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<true>>;
733
+ }>) => Promise<import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Right<true>>;
734
734
  readonly createAccount: (payload: Omit<Pick<{
735
735
  picture_file: import("@aeriajs/types").SchemaWithId<{
736
736
  readonly $id: "file";
@@ -838,14 +838,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
838
838
  name: string;
839
839
  password: string;
840
840
  updated_at: Date;
841
- active: boolean;
842
841
  roles: string[];
843
842
  email: string;
844
- picture: any;
843
+ active: boolean;
845
844
  phone_number: string;
846
845
  picture_file: never;
847
846
  given_name: string;
848
847
  family_name: string;
848
+ picture: any;
849
849
  group: string;
850
850
  }, "picture_file">, "name" | "roles" | "email"> & Partial<{
851
851
  picture_file: import("@aeriajs/types").SchemaWithId<{
@@ -954,14 +954,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
954
954
  name: string;
955
955
  password: string;
956
956
  updated_at: Date;
957
- active: boolean;
958
957
  roles: string[];
959
958
  email: string;
960
- picture: any;
959
+ active: boolean;
961
960
  phone_number: string;
962
961
  picture_file: never;
963
962
  given_name: string;
964
963
  family_name: string;
964
+ picture: any;
965
965
  group: string;
966
966
  }, "picture_file">> & {
967
967
  updated_at?: Date | undefined;
@@ -1065,106 +1065,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
1065
1065
  };
1066
1066
  };
1067
1067
  };
1068
- }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
1069
- readonly $id: "user";
1070
- readonly required: readonly ["name", "roles", "email"];
1071
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
1072
- readonly indexes: readonly ["name"];
1073
- readonly freshItem: {
1074
- readonly active: true;
1075
- };
1076
- readonly properties: {
1077
- readonly name: {
1078
- readonly type: "string";
1079
- };
1080
- readonly given_name: {
1081
- readonly getter: (document: any) => string;
1082
- };
1083
- readonly family_name: {
1084
- readonly getter: (document: any) => string;
1085
- };
1086
- readonly active: {
1087
- readonly type: "boolean";
1088
- };
1089
- readonly roles: {
1090
- readonly type: "array";
1091
- readonly items: {
1092
- readonly type: "string";
1093
- };
1094
- readonly uniqueItems: true;
1095
- };
1096
- readonly email: {
1097
- readonly type: "string";
1098
- readonly inputType: "email";
1099
- readonly unique: true;
1100
- };
1101
- readonly password: {
1102
- readonly type: "string";
1103
- readonly inputType: "password";
1104
- readonly hidden: true;
1105
- };
1106
- readonly phone_number: {
1107
- readonly type: "string";
1108
- readonly mask: "(##) #####-####";
1109
- };
1110
- readonly picture_file: {
1111
- readonly $ref: "file";
1112
- readonly accept: readonly ["image/*"];
1113
- };
1114
- readonly picture: {
1115
- readonly getter: (value: any) => any;
1116
- };
1117
- readonly group: {
1118
- readonly type: "string";
1119
- };
1120
- readonly self_registered: {
1121
- readonly type: "boolean";
1122
- readonly readOnly: true;
1123
- };
1124
- readonly updated_at: {
1125
- readonly type: "string";
1126
- readonly format: "date-time";
1127
- };
1128
- };
1129
- readonly presets: readonly ["crud", "view", "duplicate"];
1130
- readonly layout: {
1131
- readonly name: "grid";
1132
- readonly options: {
1133
- readonly title: "name";
1134
- readonly badge: "roles";
1135
- readonly picture: "picture_file";
1136
- readonly information: "email";
1137
- readonly active: "active";
1138
- };
1139
- };
1140
- readonly individualActions: {
1141
- readonly 'ui:spawnEdit': {
1142
- readonly name: "action.edit";
1143
- readonly icon: "pencil";
1144
- readonly translate: true;
1145
- };
1146
- readonly 'route:/dashboard/user/changepass': {
1147
- readonly name: "change_password";
1148
- readonly icon: "key";
1149
- readonly fetchItem: true;
1150
- readonly translate: true;
1151
- };
1152
- };
1153
- readonly icon: "users";
1154
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
1155
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
1156
- readonly tableMeta: readonly ["email"];
1157
- readonly formLayout: {
1158
- readonly fields: {
1159
- readonly given_name: {
1160
- readonly span: 3;
1161
- };
1162
- readonly family_name: {
1163
- readonly span: 3;
1164
- };
1165
- };
1166
- };
1167
- }>>, "_id">>>>;
1068
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<any>>;
1168
1069
  readonly getInfo: (payload: {
1169
1070
  userId: string;
1170
1071
  token: string;
@@ -1268,8 +1169,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
1268
1169
  };
1269
1170
  };
1270
1171
  }>) => Promise<import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
1271
- readonly name: string;
1272
- readonly email: string;
1172
+ readonly name: any;
1173
+ readonly email: any;
1273
1174
  }>>;
1274
1175
  readonly getActivationLink: (userId: import("@aeriajs/core").ObjectId) => Promise<string>;
1275
1176
  };
@@ -1997,7 +1898,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
1997
1898
  };
1998
1899
  };
1999
1900
  };
2000
- }>, "name" | "active" | "roles" | "email"> & {
1901
+ }>, "name" | "roles" | "email" | "active"> & {
2001
1902
  _id: import("@aeriajs/core").ObjectId | null;
2002
1903
  };
2003
1904
  token: import("@aeriajs/types").TokenRecipient;
@@ -2115,7 +2016,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
2115
2016
  };
2116
2017
  };
2117
2018
  };
2118
- }>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<true>>;
2019
+ }>) => Promise<import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Right<true>>;
2119
2020
  readonly createAccount: (payload: Omit<Pick<{
2120
2021
  picture_file: import("@aeriajs/types").SchemaWithId<{
2121
2022
  readonly $id: "file";
@@ -2223,14 +2124,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
2223
2124
  name: string;
2224
2125
  password: string;
2225
2126
  updated_at: Date;
2226
- active: boolean;
2227
2127
  roles: string[];
2228
2128
  email: string;
2229
- picture: any;
2129
+ active: boolean;
2230
2130
  phone_number: string;
2231
2131
  picture_file: never;
2232
2132
  given_name: string;
2233
2133
  family_name: string;
2134
+ picture: any;
2234
2135
  group: string;
2235
2136
  }, "picture_file">, "name" | "roles" | "email"> & Partial<{
2236
2137
  picture_file: import("@aeriajs/types").SchemaWithId<{
@@ -2339,14 +2240,14 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
2339
2240
  name: string;
2340
2241
  password: string;
2341
2242
  updated_at: Date;
2342
- active: boolean;
2343
2243
  roles: string[];
2344
2244
  email: string;
2345
- picture: any;
2245
+ active: boolean;
2346
2246
  phone_number: string;
2347
2247
  picture_file: never;
2348
2248
  given_name: string;
2349
2249
  family_name: string;
2250
+ picture: any;
2350
2251
  group: string;
2351
2252
  }, "picture_file">> & {
2352
2253
  updated_at?: Date | undefined;
@@ -2450,106 +2351,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
2450
2351
  };
2451
2352
  };
2452
2353
  };
2453
- }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
2454
- readonly $id: "user";
2455
- readonly required: readonly ["name", "roles", "email"];
2456
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2457
- readonly indexes: readonly ["name"];
2458
- readonly freshItem: {
2459
- readonly active: true;
2460
- };
2461
- readonly properties: {
2462
- readonly name: {
2463
- readonly type: "string";
2464
- };
2465
- readonly given_name: {
2466
- readonly getter: (document: any) => string;
2467
- };
2468
- readonly family_name: {
2469
- readonly getter: (document: any) => string;
2470
- };
2471
- readonly active: {
2472
- readonly type: "boolean";
2473
- };
2474
- readonly roles: {
2475
- readonly type: "array";
2476
- readonly items: {
2477
- readonly type: "string";
2478
- };
2479
- readonly uniqueItems: true;
2480
- };
2481
- readonly email: {
2482
- readonly type: "string";
2483
- readonly inputType: "email";
2484
- readonly unique: true;
2485
- };
2486
- readonly password: {
2487
- readonly type: "string";
2488
- readonly inputType: "password";
2489
- readonly hidden: true;
2490
- };
2491
- readonly phone_number: {
2492
- readonly type: "string";
2493
- readonly mask: "(##) #####-####";
2494
- };
2495
- readonly picture_file: {
2496
- readonly $ref: "file";
2497
- readonly accept: readonly ["image/*"];
2498
- };
2499
- readonly picture: {
2500
- readonly getter: (value: any) => any;
2501
- };
2502
- readonly group: {
2503
- readonly type: "string";
2504
- };
2505
- readonly self_registered: {
2506
- readonly type: "boolean";
2507
- readonly readOnly: true;
2508
- };
2509
- readonly updated_at: {
2510
- readonly type: "string";
2511
- readonly format: "date-time";
2512
- };
2513
- };
2514
- readonly presets: readonly ["crud", "view", "duplicate"];
2515
- readonly layout: {
2516
- readonly name: "grid";
2517
- readonly options: {
2518
- readonly title: "name";
2519
- readonly badge: "roles";
2520
- readonly picture: "picture_file";
2521
- readonly information: "email";
2522
- readonly active: "active";
2523
- };
2524
- };
2525
- readonly individualActions: {
2526
- readonly 'ui:spawnEdit': {
2527
- readonly name: "action.edit";
2528
- readonly icon: "pencil";
2529
- readonly translate: true;
2530
- };
2531
- readonly 'route:/dashboard/user/changepass': {
2532
- readonly name: "change_password";
2533
- readonly icon: "key";
2534
- readonly fetchItem: true;
2535
- readonly translate: true;
2536
- };
2537
- };
2538
- readonly icon: "users";
2539
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
2540
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2541
- readonly tableMeta: readonly ["email"];
2542
- readonly formLayout: {
2543
- readonly fields: {
2544
- readonly given_name: {
2545
- readonly span: 3;
2546
- };
2547
- readonly family_name: {
2548
- readonly span: 3;
2549
- };
2550
- };
2551
- };
2552
- }>>, "_id">>>>;
2354
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<any>>;
2553
2355
  readonly getInfo: (payload: {
2554
2356
  userId: string;
2555
2357
  token: string;
@@ -2653,8 +2455,8 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
2653
2455
  };
2654
2456
  };
2655
2457
  }>) => Promise<import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
2656
- readonly name: string;
2657
- readonly email: string;
2458
+ readonly name: any;
2459
+ readonly email: any;
2658
2460
  }>>;
2659
2461
  readonly getActivationLink: (userId: import("@aeriajs/core").ObjectId) => Promise<string>;
2660
2462
  };
@@ -110,7 +110,7 @@ export declare const describe: (contextOrPayload: RouteContext | Payload) => Pro
110
110
  };
111
111
  };
112
112
  };
113
- }>, "name" | "active" | "roles" | "email"> & {
113
+ }>, "name" | "roles" | "email" | "active"> & {
114
114
  _id: import("@aeriajs/core").ObjectId | null;
115
115
  };
116
116
  token: import("@aeriajs/types").TokenRecipient;
package/dist/index.d.ts CHANGED
@@ -1797,7 +1797,7 @@ export declare const collections: {
1797
1797
  };
1798
1798
  };
1799
1799
  };
1800
- }>, "name" | "active" | "roles" | "email"> & {
1800
+ }>, "name" | "roles" | "email" | "active"> & {
1801
1801
  _id: import("mongodb").ObjectId | null;
1802
1802
  };
1803
1803
  token: import("@aeriajs/types").TokenRecipient;
@@ -1915,7 +1915,7 @@ export declare const collections: {
1915
1915
  };
1916
1916
  };
1917
1917
  };
1918
- }>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<true>>;
1918
+ }>) => Promise<import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Right<true>>;
1919
1919
  readonly createAccount: (payload: Omit<Pick<{
1920
1920
  picture_file: import("@aeriajs/types").SchemaWithId<{
1921
1921
  readonly $id: "file";
@@ -2023,14 +2023,14 @@ export declare const collections: {
2023
2023
  name: string;
2024
2024
  password: string;
2025
2025
  updated_at: Date;
2026
- active: boolean;
2027
2026
  roles: string[];
2028
2027
  email: string;
2029
- picture: any;
2028
+ active: boolean;
2030
2029
  phone_number: string;
2031
2030
  picture_file: never;
2032
2031
  given_name: string;
2033
2032
  family_name: string;
2033
+ picture: any;
2034
2034
  group: string;
2035
2035
  }, "picture_file">, "name" | "roles" | "email"> & Partial<{
2036
2036
  picture_file: import("@aeriajs/types").SchemaWithId<{
@@ -2139,14 +2139,14 @@ export declare const collections: {
2139
2139
  name: string;
2140
2140
  password: string;
2141
2141
  updated_at: Date;
2142
- active: boolean;
2143
2142
  roles: string[];
2144
2143
  email: string;
2145
- picture: any;
2144
+ active: boolean;
2146
2145
  phone_number: string;
2147
2146
  picture_file: never;
2148
2147
  given_name: string;
2149
2148
  family_name: string;
2149
+ picture: any;
2150
2150
  group: string;
2151
2151
  }, "picture_file">> & {
2152
2152
  updated_at?: Date | undefined;
@@ -2250,106 +2250,7 @@ export declare const collections: {
2250
2250
  };
2251
2251
  };
2252
2252
  };
2253
- }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
2254
- readonly $id: "user";
2255
- readonly required: readonly ["name", "roles", "email"];
2256
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2257
- readonly indexes: readonly ["name"];
2258
- readonly freshItem: {
2259
- readonly active: true;
2260
- };
2261
- readonly properties: {
2262
- readonly name: {
2263
- readonly type: "string";
2264
- };
2265
- readonly given_name: {
2266
- readonly getter: (document: any) => string;
2267
- };
2268
- readonly family_name: {
2269
- readonly getter: (document: any) => string;
2270
- };
2271
- readonly active: {
2272
- readonly type: "boolean";
2273
- };
2274
- readonly roles: {
2275
- readonly type: "array";
2276
- readonly items: {
2277
- readonly type: "string";
2278
- };
2279
- readonly uniqueItems: true;
2280
- };
2281
- readonly email: {
2282
- readonly type: "string";
2283
- readonly inputType: "email";
2284
- readonly unique: true;
2285
- };
2286
- readonly password: {
2287
- readonly type: "string";
2288
- readonly inputType: "password";
2289
- readonly hidden: true;
2290
- };
2291
- readonly phone_number: {
2292
- readonly type: "string";
2293
- readonly mask: "(##) #####-####";
2294
- };
2295
- readonly picture_file: {
2296
- readonly $ref: "file";
2297
- readonly accept: readonly ["image/*"];
2298
- };
2299
- readonly picture: {
2300
- readonly getter: (value: any) => any;
2301
- };
2302
- readonly group: {
2303
- readonly type: "string";
2304
- };
2305
- readonly self_registered: {
2306
- readonly type: "boolean";
2307
- readonly readOnly: true;
2308
- };
2309
- readonly updated_at: {
2310
- readonly type: "string";
2311
- readonly format: "date-time";
2312
- };
2313
- };
2314
- readonly presets: readonly ["crud", "view", "duplicate"];
2315
- readonly layout: {
2316
- readonly name: "grid";
2317
- readonly options: {
2318
- readonly title: "name";
2319
- readonly badge: "roles";
2320
- readonly picture: "picture_file";
2321
- readonly information: "email";
2322
- readonly active: "active";
2323
- };
2324
- };
2325
- readonly individualActions: {
2326
- readonly 'ui:spawnEdit': {
2327
- readonly name: "action.edit";
2328
- readonly icon: "pencil";
2329
- readonly translate: true;
2330
- };
2331
- readonly 'route:/dashboard/user/changepass': {
2332
- readonly name: "change_password";
2333
- readonly icon: "key";
2334
- readonly fetchItem: true;
2335
- readonly translate: true;
2336
- };
2337
- };
2338
- readonly icon: "users";
2339
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
2340
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2341
- readonly tableMeta: readonly ["email"];
2342
- readonly formLayout: {
2343
- readonly fields: {
2344
- readonly given_name: {
2345
- readonly span: 3;
2346
- };
2347
- readonly family_name: {
2348
- readonly span: 3;
2349
- };
2350
- };
2351
- };
2352
- }>>, "_id">>>>;
2253
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<any>>;
2353
2254
  readonly getInfo: (payload: {
2354
2255
  userId: string;
2355
2256
  token: string;
@@ -2453,8 +2354,8 @@ export declare const collections: {
2453
2354
  };
2454
2355
  };
2455
2356
  }>) => Promise<import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
2456
- readonly name: string;
2457
- readonly email: string;
2357
+ readonly name: any;
2358
+ readonly email: any;
2458
2359
  }>>;
2459
2360
  readonly getActivationLink: (userId: import("mongodb").ObjectId) => Promise<string>;
2460
2361
  };
@@ -3182,7 +3083,7 @@ export declare const collections: {
3182
3083
  };
3183
3084
  };
3184
3085
  };
3185
- }>, "name" | "active" | "roles" | "email"> & {
3086
+ }>, "name" | "roles" | "email" | "active"> & {
3186
3087
  _id: import("mongodb").ObjectId | null;
3187
3088
  };
3188
3089
  token: import("@aeriajs/types").TokenRecipient;
@@ -3300,7 +3201,7 @@ export declare const collections: {
3300
3201
  };
3301
3202
  };
3302
3203
  };
3303
- }>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<true>>;
3204
+ }>) => Promise<import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/activate.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Right<true>>;
3304
3205
  readonly createAccount: (payload: Omit<Pick<{
3305
3206
  picture_file: import("@aeriajs/types").SchemaWithId<{
3306
3207
  readonly $id: "file";
@@ -3408,14 +3309,14 @@ export declare const collections: {
3408
3309
  name: string;
3409
3310
  password: string;
3410
3311
  updated_at: Date;
3411
- active: boolean;
3412
3312
  roles: string[];
3413
3313
  email: string;
3414
- picture: any;
3314
+ active: boolean;
3415
3315
  phone_number: string;
3416
3316
  picture_file: never;
3417
3317
  given_name: string;
3418
3318
  family_name: string;
3319
+ picture: any;
3419
3320
  group: string;
3420
3321
  }, "picture_file">, "name" | "roles" | "email"> & Partial<{
3421
3322
  picture_file: import("@aeriajs/types").SchemaWithId<{
@@ -3524,14 +3425,14 @@ export declare const collections: {
3524
3425
  name: string;
3525
3426
  password: string;
3526
3427
  updated_at: Date;
3527
- active: boolean;
3528
3428
  roles: string[];
3529
3429
  email: string;
3530
- picture: any;
3430
+ active: boolean;
3531
3431
  phone_number: string;
3532
3432
  picture_file: never;
3533
3433
  given_name: string;
3534
3434
  family_name: string;
3435
+ picture: any;
3535
3436
  group: string;
3536
3437
  }, "picture_file">> & {
3537
3438
  updated_at?: Date | undefined;
@@ -3635,106 +3536,7 @@ export declare const collections: {
3635
3536
  };
3636
3537
  };
3637
3538
  };
3638
- }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
3639
- readonly $id: "user";
3640
- readonly required: readonly ["name", "roles", "email"];
3641
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
3642
- readonly indexes: readonly ["name"];
3643
- readonly freshItem: {
3644
- readonly active: true;
3645
- };
3646
- readonly properties: {
3647
- readonly name: {
3648
- readonly type: "string";
3649
- };
3650
- readonly given_name: {
3651
- readonly getter: (document: any) => string;
3652
- };
3653
- readonly family_name: {
3654
- readonly getter: (document: any) => string;
3655
- };
3656
- readonly active: {
3657
- readonly type: "boolean";
3658
- };
3659
- readonly roles: {
3660
- readonly type: "array";
3661
- readonly items: {
3662
- readonly type: "string";
3663
- };
3664
- readonly uniqueItems: true;
3665
- };
3666
- readonly email: {
3667
- readonly type: "string";
3668
- readonly inputType: "email";
3669
- readonly unique: true;
3670
- };
3671
- readonly password: {
3672
- readonly type: "string";
3673
- readonly inputType: "password";
3674
- readonly hidden: true;
3675
- };
3676
- readonly phone_number: {
3677
- readonly type: "string";
3678
- readonly mask: "(##) #####-####";
3679
- };
3680
- readonly picture_file: {
3681
- readonly $ref: "file";
3682
- readonly accept: readonly ["image/*"];
3683
- };
3684
- readonly picture: {
3685
- readonly getter: (value: any) => any;
3686
- };
3687
- readonly group: {
3688
- readonly type: "string";
3689
- };
3690
- readonly self_registered: {
3691
- readonly type: "boolean";
3692
- readonly readOnly: true;
3693
- };
3694
- readonly updated_at: {
3695
- readonly type: "string";
3696
- readonly format: "date-time";
3697
- };
3698
- };
3699
- readonly presets: readonly ["crud", "view", "duplicate"];
3700
- readonly layout: {
3701
- readonly name: "grid";
3702
- readonly options: {
3703
- readonly title: "name";
3704
- readonly badge: "roles";
3705
- readonly picture: "picture_file";
3706
- readonly information: "email";
3707
- readonly active: "active";
3708
- };
3709
- };
3710
- readonly individualActions: {
3711
- readonly 'ui:spawnEdit': {
3712
- readonly name: "action.edit";
3713
- readonly icon: "pencil";
3714
- readonly translate: true;
3715
- };
3716
- readonly 'route:/dashboard/user/changepass': {
3717
- readonly name: "change_password";
3718
- readonly icon: "key";
3719
- readonly fetchItem: true;
3720
- readonly translate: true;
3721
- };
3722
- };
3723
- readonly icon: "users";
3724
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
3725
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
3726
- readonly tableMeta: readonly ["email"];
3727
- readonly formLayout: {
3728
- readonly fields: {
3729
- readonly given_name: {
3730
- readonly span: 3;
3731
- };
3732
- readonly family_name: {
3733
- readonly span: 3;
3734
- };
3735
- };
3736
- };
3737
- }>>, "_id">>>>;
3539
+ }>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | import("@aeriajs/types").Right<any>>;
3738
3540
  readonly getInfo: (payload: {
3739
3541
  userId: string;
3740
3542
  token: string;
@@ -3838,8 +3640,8 @@ export declare const collections: {
3838
3640
  };
3839
3641
  };
3840
3642
  }>) => Promise<import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.InvalidLink> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.UserNotFound> | import("@aeriajs/types").Left<import("./collections/user/getInfo.js").ActivationErrors.AlreadyActiveUser> | import("@aeriajs/types").Right<{
3841
- readonly name: string;
3842
- readonly email: string;
3643
+ readonly name: any;
3644
+ readonly email: any;
3843
3645
  }>>;
3844
3646
  readonly getActivationLink: (userId: import("mongodb").ObjectId) => Promise<string>;
3845
3647
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/builtins",
3
- "version": "0.0.74",
3
+ "version": "0.0.75",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -46,12 +46,12 @@
46
46
  "mongodb": "^6.5.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@aeriajs/access-control": "^0.0.41",
50
- "@aeriajs/core": "^0.0.74",
51
- "@aeriajs/common": "^0.0.41",
52
- "@aeriajs/entrypoint": "^0.0.41",
53
- "@aeriajs/types": "^0.0.38",
54
- "@aeriajs/validation": "^0.0.44"
49
+ "@aeriajs/access-control": "^0.0.42",
50
+ "@aeriajs/core": "^0.0.75",
51
+ "@aeriajs/common": "^0.0.42",
52
+ "@aeriajs/entrypoint": "^0.0.42",
53
+ "@aeriajs/types": "^0.0.39",
54
+ "@aeriajs/validation": "^0.0.45"
55
55
  },
56
56
  "scripts": {
57
57
  "test": "echo skipping",