@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/collections/file/index.d.ts +135 -171
- package/dist/collections/file/insert.d.ts +15 -51
- package/dist/collections/file/remove.d.ts +11 -38
- package/dist/collections/log/index.d.ts +294 -30
- package/dist/collections/resourceUsage/index.d.ts +44 -34
- package/dist/collections/user/createAccount.d.ts +31 -101
- package/dist/collections/user/getActivationLink.d.ts +4 -37
- package/dist/collections/user/getCurrentUser.d.ts +31 -101
- package/dist/collections/user/index.d.ts +160 -342
- package/dist/collections/user/insert.d.ts +57 -1
- package/dist/index.d.ts +633 -577
- package/package.json +6 -6
|
@@ -1,31 +1,43 @@
|
|
|
1
1
|
export declare const log: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
2
|
-
item:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
item: {
|
|
3
|
+
message: string;
|
|
4
|
+
context: string;
|
|
5
|
+
owner?: {
|
|
6
|
+
name: string;
|
|
7
|
+
roles: string[];
|
|
8
|
+
email: string;
|
|
9
|
+
picture_file?: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: never;
|
|
12
|
+
type: string;
|
|
13
|
+
size: number;
|
|
14
|
+
last_modified: Date;
|
|
15
|
+
absolute_path: string;
|
|
16
|
+
relative_path: string;
|
|
17
|
+
immutable: boolean;
|
|
18
|
+
download_link: never;
|
|
19
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
20
|
+
updated_at?: Date | undefined;
|
|
21
|
+
created_at?: Date | undefined;
|
|
22
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
23
|
+
} | undefined;
|
|
24
|
+
password?: string | undefined;
|
|
25
|
+
updated_at?: Date | undefined;
|
|
26
|
+
picture?: undefined;
|
|
27
|
+
active?: boolean | undefined;
|
|
28
|
+
phone_number?: string | undefined;
|
|
29
|
+
given_name?: undefined;
|
|
30
|
+
family_name?: undefined;
|
|
31
|
+
group?: string | undefined;
|
|
32
|
+
readonly self_registered?: boolean | undefined;
|
|
33
|
+
created_at?: Date | undefined;
|
|
34
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
35
|
+
} | undefined;
|
|
36
|
+
created_at?: Date | undefined;
|
|
37
|
+
details?: any;
|
|
38
|
+
updated_at?: Date | undefined;
|
|
39
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
40
|
+
};
|
|
29
41
|
description: {
|
|
30
42
|
readonly $id: "log";
|
|
31
43
|
readonly icon: "magnifying-glass";
|
|
@@ -54,9 +66,261 @@ export declare const log: Omit<import("@aeriajs/types").Collection<never>, "func
|
|
|
54
66
|
readonly filters: readonly ["context", "message", "owner"];
|
|
55
67
|
};
|
|
56
68
|
functions: {
|
|
57
|
-
get: (payload: import("@aeriajs/types").GetPayload<
|
|
58
|
-
|
|
59
|
-
|
|
69
|
+
get: (payload: import("@aeriajs/types").GetPayload<{
|
|
70
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
71
|
+
} | {
|
|
72
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
73
|
+
} | {
|
|
74
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
75
|
+
} | {
|
|
76
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
77
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
78
|
+
} | {
|
|
79
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
80
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
81
|
+
} | {
|
|
82
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
83
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
84
|
+
} | {
|
|
85
|
+
updated_at?: Date | undefined;
|
|
86
|
+
created_at?: Date | undefined;
|
|
87
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
88
|
+
} | {
|
|
89
|
+
updated_at?: Date | undefined;
|
|
90
|
+
created_at?: Date | undefined;
|
|
91
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
92
|
+
} | {
|
|
93
|
+
updated_at?: Date | undefined;
|
|
94
|
+
created_at?: Date | undefined;
|
|
95
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
96
|
+
} | {
|
|
97
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
98
|
+
updated_at?: Date | undefined;
|
|
99
|
+
created_at?: Date | undefined;
|
|
100
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
101
|
+
} | {
|
|
102
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
103
|
+
updated_at?: Date | undefined;
|
|
104
|
+
created_at?: Date | undefined;
|
|
105
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
106
|
+
} | {
|
|
107
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
108
|
+
updated_at?: Date | undefined;
|
|
109
|
+
created_at?: Date | undefined;
|
|
110
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
111
|
+
}>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions) => Promise<import("@aeriajs/types").GetReturnType<{
|
|
112
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
113
|
+
} | {
|
|
114
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
115
|
+
} | {
|
|
116
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
117
|
+
} | {
|
|
118
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
119
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
120
|
+
} | {
|
|
121
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
122
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
123
|
+
} | {
|
|
124
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
125
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
126
|
+
} | {
|
|
127
|
+
updated_at?: Date | undefined;
|
|
128
|
+
created_at?: Date | undefined;
|
|
129
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
130
|
+
} | {
|
|
131
|
+
updated_at?: Date | undefined;
|
|
132
|
+
created_at?: Date | undefined;
|
|
133
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
134
|
+
} | {
|
|
135
|
+
updated_at?: Date | undefined;
|
|
136
|
+
created_at?: Date | undefined;
|
|
137
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
138
|
+
} | {
|
|
139
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
140
|
+
updated_at?: Date | undefined;
|
|
141
|
+
created_at?: Date | undefined;
|
|
142
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
143
|
+
} | {
|
|
144
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
145
|
+
updated_at?: Date | undefined;
|
|
146
|
+
created_at?: Date | undefined;
|
|
147
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
148
|
+
} | {
|
|
149
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
150
|
+
updated_at?: Date | undefined;
|
|
151
|
+
created_at?: Date | undefined;
|
|
152
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
153
|
+
}>>;
|
|
154
|
+
getAll: (payload: import("@aeriajs/types").GetAllPayload<{
|
|
155
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
156
|
+
} | {
|
|
157
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
158
|
+
} | {
|
|
159
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
160
|
+
} | {
|
|
161
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
162
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
163
|
+
} | {
|
|
164
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
165
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
166
|
+
} | {
|
|
167
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
168
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
169
|
+
} | {
|
|
170
|
+
updated_at?: Date | undefined;
|
|
171
|
+
created_at?: Date | undefined;
|
|
172
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
173
|
+
} | {
|
|
174
|
+
updated_at?: Date | undefined;
|
|
175
|
+
created_at?: Date | undefined;
|
|
176
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
177
|
+
} | {
|
|
178
|
+
updated_at?: Date | undefined;
|
|
179
|
+
created_at?: Date | undefined;
|
|
180
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
181
|
+
} | {
|
|
182
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
183
|
+
updated_at?: Date | undefined;
|
|
184
|
+
created_at?: Date | undefined;
|
|
185
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
186
|
+
} | {
|
|
187
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
188
|
+
updated_at?: Date | undefined;
|
|
189
|
+
created_at?: Date | undefined;
|
|
190
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
191
|
+
} | {
|
|
192
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
193
|
+
updated_at?: Date | undefined;
|
|
194
|
+
created_at?: Date | undefined;
|
|
195
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
196
|
+
}> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions) => Promise<import("@aeriajs/types").GetAllReturnType<{
|
|
197
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
198
|
+
} | {
|
|
199
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
200
|
+
} | {
|
|
201
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
202
|
+
} | {
|
|
203
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
204
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
205
|
+
} | {
|
|
206
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
207
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
208
|
+
} | {
|
|
209
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
210
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
211
|
+
} | {
|
|
212
|
+
updated_at?: Date | undefined;
|
|
213
|
+
created_at?: Date | undefined;
|
|
214
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
215
|
+
} | {
|
|
216
|
+
updated_at?: Date | undefined;
|
|
217
|
+
created_at?: Date | undefined;
|
|
218
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
219
|
+
} | {
|
|
220
|
+
updated_at?: Date | undefined;
|
|
221
|
+
created_at?: Date | undefined;
|
|
222
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
223
|
+
} | {
|
|
224
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
225
|
+
updated_at?: Date | undefined;
|
|
226
|
+
created_at?: Date | undefined;
|
|
227
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
228
|
+
} | {
|
|
229
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
230
|
+
updated_at?: Date | undefined;
|
|
231
|
+
created_at?: Date | undefined;
|
|
232
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
233
|
+
} | {
|
|
234
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
235
|
+
updated_at?: Date | undefined;
|
|
236
|
+
created_at?: Date | undefined;
|
|
237
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
238
|
+
}>>;
|
|
239
|
+
insert: (payload: import("@aeriajs/types").InsertPayload<{
|
|
240
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
241
|
+
} | {
|
|
242
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
243
|
+
} | {
|
|
244
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
245
|
+
} | {
|
|
246
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
247
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
248
|
+
} | {
|
|
249
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
250
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
251
|
+
} | {
|
|
252
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
253
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
254
|
+
} | {
|
|
255
|
+
updated_at?: Date | undefined;
|
|
256
|
+
created_at?: Date | undefined;
|
|
257
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
258
|
+
} | {
|
|
259
|
+
updated_at?: Date | undefined;
|
|
260
|
+
created_at?: Date | undefined;
|
|
261
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
262
|
+
} | {
|
|
263
|
+
updated_at?: Date | undefined;
|
|
264
|
+
created_at?: Date | undefined;
|
|
265
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
266
|
+
} | {
|
|
267
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
268
|
+
updated_at?: Date | undefined;
|
|
269
|
+
created_at?: Date | undefined;
|
|
270
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
271
|
+
} | {
|
|
272
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
273
|
+
updated_at?: Date | undefined;
|
|
274
|
+
created_at?: Date | undefined;
|
|
275
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
276
|
+
} | {
|
|
277
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
278
|
+
updated_at?: Date | undefined;
|
|
279
|
+
created_at?: Date | undefined;
|
|
280
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
281
|
+
}>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions) => Promise<import("@aeriajs/types").InsertReturnType<{
|
|
282
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
283
|
+
} | {
|
|
284
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
285
|
+
} | {
|
|
286
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
287
|
+
} | {
|
|
288
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
289
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
290
|
+
} | {
|
|
291
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
292
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
293
|
+
} | {
|
|
294
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
295
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
296
|
+
} | {
|
|
297
|
+
updated_at?: Date | undefined;
|
|
298
|
+
created_at?: Date | undefined;
|
|
299
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
300
|
+
} | {
|
|
301
|
+
updated_at?: Date | undefined;
|
|
302
|
+
created_at?: Date | undefined;
|
|
303
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
304
|
+
} | {
|
|
305
|
+
updated_at?: Date | undefined;
|
|
306
|
+
created_at?: Date | undefined;
|
|
307
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
308
|
+
} | {
|
|
309
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
310
|
+
updated_at?: Date | undefined;
|
|
311
|
+
created_at?: Date | undefined;
|
|
312
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
313
|
+
} | {
|
|
314
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
315
|
+
updated_at?: Date | undefined;
|
|
316
|
+
created_at?: Date | undefined;
|
|
317
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
318
|
+
} | {
|
|
319
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
320
|
+
updated_at?: Date | undefined;
|
|
321
|
+
created_at?: Date | undefined;
|
|
322
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
323
|
+
}>>;
|
|
60
324
|
};
|
|
61
325
|
contracts: {
|
|
62
326
|
get?: import("@aeriajs/types").Contract | undefined;
|
|
@@ -1,39 +1,49 @@
|
|
|
1
1
|
export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<never>, "functions" | "description" | "item" | "exposedFunctions" | "security" | "middlewares"> & {
|
|
2
|
-
item:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
readonly address: {
|
|
11
|
-
readonly type: "string";
|
|
12
|
-
};
|
|
13
|
-
readonly usage: {
|
|
14
|
-
readonly type: "object";
|
|
15
|
-
readonly additionalProperties: {
|
|
16
|
-
readonly type: "object";
|
|
17
|
-
readonly properties: {
|
|
18
|
-
readonly hits: {
|
|
19
|
-
readonly type: "integer";
|
|
20
|
-
};
|
|
21
|
-
readonly points: {
|
|
22
|
-
readonly type: "integer";
|
|
23
|
-
};
|
|
24
|
-
readonly last_reach: {
|
|
25
|
-
readonly type: "string";
|
|
26
|
-
readonly format: "date-time";
|
|
27
|
-
};
|
|
28
|
-
readonly last_maximum_reach: {
|
|
29
|
-
readonly type: "string";
|
|
30
|
-
readonly format: "date-time";
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
2
|
+
item: {
|
|
3
|
+
usage: {
|
|
4
|
+
[P: string]: {
|
|
5
|
+
hits: number;
|
|
6
|
+
points: number;
|
|
7
|
+
last_reach: Date;
|
|
8
|
+
last_maximum_reach: Date;
|
|
9
|
+
} | undefined;
|
|
35
10
|
};
|
|
36
|
-
|
|
11
|
+
user?: {
|
|
12
|
+
name: string;
|
|
13
|
+
roles: string[];
|
|
14
|
+
email: string;
|
|
15
|
+
picture_file?: {
|
|
16
|
+
name: string;
|
|
17
|
+
link: never;
|
|
18
|
+
type: string;
|
|
19
|
+
size: number;
|
|
20
|
+
last_modified: Date;
|
|
21
|
+
absolute_path: string;
|
|
22
|
+
relative_path: string;
|
|
23
|
+
immutable: boolean;
|
|
24
|
+
download_link: never;
|
|
25
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
26
|
+
updated_at?: Date | undefined;
|
|
27
|
+
created_at?: Date | undefined;
|
|
28
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
29
|
+
} | undefined;
|
|
30
|
+
password?: string | undefined;
|
|
31
|
+
updated_at?: Date | undefined;
|
|
32
|
+
picture?: undefined;
|
|
33
|
+
active?: boolean | undefined;
|
|
34
|
+
phone_number?: string | undefined;
|
|
35
|
+
given_name?: undefined;
|
|
36
|
+
family_name?: undefined;
|
|
37
|
+
group?: string | undefined;
|
|
38
|
+
readonly self_registered?: boolean | undefined;
|
|
39
|
+
created_at?: Date | undefined;
|
|
40
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
41
|
+
} | undefined;
|
|
42
|
+
address?: string | undefined;
|
|
43
|
+
updated_at?: Date | undefined;
|
|
44
|
+
created_at?: Date | undefined;
|
|
45
|
+
_id: import("@aeriajs/core").ObjectId;
|
|
46
|
+
};
|
|
37
47
|
description: {
|
|
38
48
|
readonly $id: "resourceUsage";
|
|
39
49
|
readonly icon: "wrench";
|
|
@@ -13,104 +13,34 @@ export declare const createAccount: (payload: Partial<PackReferences<SchemaWithI
|
|
|
13
13
|
readonly details: import("@aeriajs/types").PropertyValidationError | import("@aeriajs/types").ValidationError;
|
|
14
14
|
} & {
|
|
15
15
|
httpStatus: HTTPStatus.BadRequest;
|
|
16
|
-
}> | import("@aeriajs/types").InsertReturnType<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
readonly password: {
|
|
49
|
-
readonly type: "string";
|
|
50
|
-
readonly inputType: "password";
|
|
51
|
-
readonly hidden: true;
|
|
52
|
-
};
|
|
53
|
-
readonly phone_number: {
|
|
54
|
-
readonly type: "string";
|
|
55
|
-
readonly mask: "(##) #####-####";
|
|
56
|
-
};
|
|
57
|
-
readonly picture_file: {
|
|
58
|
-
readonly $ref: "file";
|
|
59
|
-
readonly accept: readonly ["image/*"];
|
|
60
|
-
};
|
|
61
|
-
readonly picture: {
|
|
62
|
-
readonly getter: (doc: object) => Promise<string> | undefined;
|
|
63
|
-
};
|
|
64
|
-
readonly group: {
|
|
65
|
-
readonly type: "string";
|
|
66
|
-
};
|
|
67
|
-
readonly self_registered: {
|
|
68
|
-
readonly type: "boolean";
|
|
69
|
-
readonly readOnly: true;
|
|
70
|
-
};
|
|
71
|
-
readonly updated_at: {
|
|
72
|
-
readonly type: "string";
|
|
73
|
-
readonly format: "date-time";
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
readonly presets: readonly ["crud", "duplicate"];
|
|
77
|
-
readonly layout: {
|
|
78
|
-
readonly name: "grid";
|
|
79
|
-
readonly options: {
|
|
80
|
-
readonly title: "name";
|
|
81
|
-
readonly badge: "roles";
|
|
82
|
-
readonly picture: "picture_file";
|
|
83
|
-
readonly information: "email";
|
|
84
|
-
readonly active: "active";
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
readonly individualActions: {
|
|
88
|
-
readonly changePassword: {
|
|
89
|
-
readonly label: "change_password";
|
|
90
|
-
readonly icon: "key";
|
|
91
|
-
readonly translate: true;
|
|
92
|
-
readonly route: {
|
|
93
|
-
readonly name: "/dashboard/user/changepass";
|
|
94
|
-
readonly fetchItem: true;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
readonly copyActivationLink: {
|
|
98
|
-
readonly label: "copy_activation_link";
|
|
99
|
-
readonly icon: "link";
|
|
100
|
-
readonly translate: true;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
104
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
105
|
-
readonly tableMeta: readonly ["email"];
|
|
106
|
-
readonly formLayout: {
|
|
107
|
-
readonly fields: {
|
|
108
|
-
readonly given_name: {
|
|
109
|
-
readonly span: 3;
|
|
110
|
-
};
|
|
111
|
-
readonly family_name: {
|
|
112
|
-
readonly span: 3;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
}>>>;
|
|
16
|
+
}> | import("@aeriajs/types").InsertReturnType<{
|
|
17
|
+
name: string;
|
|
18
|
+
roles: string[];
|
|
19
|
+
email: string;
|
|
20
|
+
picture_file?: {
|
|
21
|
+
name: string;
|
|
22
|
+
link: never;
|
|
23
|
+
type: string;
|
|
24
|
+
size: number;
|
|
25
|
+
last_modified: Date;
|
|
26
|
+
absolute_path: string;
|
|
27
|
+
relative_path: string;
|
|
28
|
+
immutable: boolean;
|
|
29
|
+
download_link: never;
|
|
30
|
+
owner?: Collections["user"]["item"] | undefined;
|
|
31
|
+
updated_at?: Date | undefined;
|
|
32
|
+
created_at?: Date | undefined;
|
|
33
|
+
_id: import("mongodb").ObjectId;
|
|
34
|
+
} | undefined;
|
|
35
|
+
password?: string | undefined;
|
|
36
|
+
updated_at?: Date | undefined;
|
|
37
|
+
picture?: undefined;
|
|
38
|
+
active?: boolean | undefined;
|
|
39
|
+
phone_number?: string | undefined;
|
|
40
|
+
given_name?: undefined;
|
|
41
|
+
family_name?: undefined;
|
|
42
|
+
group?: string | undefined;
|
|
43
|
+
readonly self_registered?: boolean | undefined;
|
|
44
|
+
created_at?: Date | undefined;
|
|
45
|
+
_id: import("mongodb").ObjectId;
|
|
46
|
+
}>>;
|
|
@@ -7,45 +7,12 @@ export declare const getActivationLink: (payload: {
|
|
|
7
7
|
userId: ObjectId | string;
|
|
8
8
|
}, context: Context) => Promise<{
|
|
9
9
|
readonly _tag: "Error";
|
|
10
|
-
readonly error:
|
|
11
|
-
readonly httpStatus: {
|
|
12
|
-
readonly enum: [HTTPStatus.Forbidden, HTTPStatus.NotFound, HTTPStatus.BadRequest];
|
|
13
|
-
};
|
|
14
|
-
readonly code: {
|
|
15
|
-
readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
|
|
16
|
-
};
|
|
17
|
-
readonly message: {
|
|
18
|
-
readonly type: "string";
|
|
19
|
-
};
|
|
20
|
-
readonly details: {
|
|
21
|
-
readonly type: "object";
|
|
22
|
-
readonly additionalProperties: true;
|
|
23
|
-
};
|
|
24
|
-
}>> & {
|
|
10
|
+
readonly error: {
|
|
25
11
|
code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
|
|
26
12
|
httpStatus: HTTPStatus.BadRequest | HTTPStatus.Forbidden | HTTPStatus.NotFound;
|
|
27
|
-
message
|
|
28
|
-
details
|
|
29
|
-
}
|
|
30
|
-
readonly httpStatus: {
|
|
31
|
-
readonly enum: [HTTPStatus.Forbidden, HTTPStatus.NotFound, HTTPStatus.BadRequest];
|
|
32
|
-
};
|
|
33
|
-
readonly code: {
|
|
34
|
-
readonly enum: [import("@aeriajs/types").ACError.ResourceNotFound, import("@aeriajs/types").ACError.OwnershipError, import("@aeriajs/types").ACError.InsecureOperator, import("@aeriajs/types").ACError.MalformedInput];
|
|
35
|
-
};
|
|
36
|
-
readonly message: {
|
|
37
|
-
readonly type: "string";
|
|
38
|
-
};
|
|
39
|
-
readonly details: {
|
|
40
|
-
readonly type: "object";
|
|
41
|
-
readonly additionalProperties: true;
|
|
42
|
-
};
|
|
43
|
-
}>> & {
|
|
44
|
-
code: import("@aeriajs/types").ACError.OwnershipError | import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.InsecureOperator | import("@aeriajs/types").ACError.MalformedInput;
|
|
45
|
-
httpStatus: HTTPStatus.BadRequest | HTTPStatus.Forbidden | HTTPStatus.NotFound;
|
|
46
|
-
message: string;
|
|
47
|
-
details: any;
|
|
48
|
-
}, never>>;
|
|
13
|
+
message?: string | undefined;
|
|
14
|
+
details?: any;
|
|
15
|
+
};
|
|
49
16
|
readonly result: undefined;
|
|
50
17
|
} | Result.Error<{
|
|
51
18
|
readonly code: ActivationError.AlreadyActiveUser;
|