@aeriajs/builtins 0.0.116 → 0.0.117
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/description.d.ts +1 -0
- package/dist/collections/file/description.js +1 -0
- package/dist/collections/file/description.mjs +1 -0
- package/dist/collections/file/download.d.ts +1 -2
- package/dist/collections/file/index.d.ts +31 -611
- package/dist/collections/file/index.js +1 -0
- package/dist/collections/file/index.mjs +1 -0
- package/dist/collections/file/insert.d.ts +2 -1
- package/dist/collections/file/remove.d.ts +1 -1
- package/dist/collections/file/removeAll.d.ts +1 -1
- package/dist/collections/log/index.d.ts +10 -10
- package/dist/collections/log/index.js +1 -1
- package/dist/collections/log/index.mjs +1 -1
- package/dist/collections/resourceUsage/index.d.ts +4 -1
- package/dist/collections/resourceUsage/index.js +1 -0
- package/dist/collections/resourceUsage/index.mjs +1 -0
- package/dist/collections/user/createAccount.d.ts +1 -1
- package/dist/collections/user/description.d.ts +1 -1
- package/dist/collections/user/description.js +1 -1
- package/dist/collections/user/description.mjs +1 -1
- package/dist/collections/user/getCurrentUser.d.ts +1 -1
- package/dist/collections/user/index.d.ts +409 -2494
- package/dist/collections/user/insert.d.ts +2 -2
- package/dist/functions/describe.d.ts +4 -120
- package/dist/index.d.ts +907 -3571
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
export * from './collections/index.js';
|
|
3
2
|
export * as builtinFunctions from './functions/index.js';
|
|
4
3
|
import { file, tempFile, log, resourceUsage, user } from './collections/index.js';
|
|
@@ -11,6 +10,7 @@ export declare const collections: {
|
|
|
11
10
|
file: Omit<import("@aeriajs/types").Collection<{
|
|
12
11
|
description: {
|
|
13
12
|
readonly $id: "file";
|
|
13
|
+
readonly icon: "file";
|
|
14
14
|
readonly owned: "always";
|
|
15
15
|
readonly presets: readonly ["owned"];
|
|
16
16
|
readonly indexes: readonly ["name", "link", "type"];
|
|
@@ -60,111 +60,14 @@ export declare const collections: {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
functions: {
|
|
63
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions
|
|
63
|
+
readonly 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<any>>;
|
|
64
64
|
readonly insert: (payload: {
|
|
65
65
|
what: {
|
|
66
66
|
content: string;
|
|
67
|
-
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<
|
|
68
|
-
|
|
69
|
-
readonly owned: "always";
|
|
70
|
-
readonly presets: readonly ["owned"];
|
|
71
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
72
|
-
readonly properties: {
|
|
73
|
-
readonly type: {
|
|
74
|
-
readonly type: "string";
|
|
75
|
-
};
|
|
76
|
-
readonly size: {
|
|
77
|
-
readonly type: "number";
|
|
78
|
-
};
|
|
79
|
-
readonly last_modified: {
|
|
80
|
-
readonly type: "string";
|
|
81
|
-
readonly format: "date-time";
|
|
82
|
-
};
|
|
83
|
-
readonly name: {
|
|
84
|
-
readonly type: "string";
|
|
85
|
-
};
|
|
86
|
-
readonly absolute_path: {
|
|
87
|
-
readonly type: "string";
|
|
88
|
-
};
|
|
89
|
-
readonly relative_path: {
|
|
90
|
-
readonly type: "string";
|
|
91
|
-
};
|
|
92
|
-
readonly immutable: {
|
|
93
|
-
readonly type: "boolean";
|
|
94
|
-
};
|
|
95
|
-
readonly link: {
|
|
96
|
-
readonly getter: (value: any) => Promise<string>;
|
|
97
|
-
};
|
|
98
|
-
readonly download_link: {
|
|
99
|
-
readonly getter: (value: any) => Promise<string>;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
readonly actions: {
|
|
103
|
-
readonly deleteAll: {
|
|
104
|
-
readonly label: "Remover";
|
|
105
|
-
readonly ask: true;
|
|
106
|
-
readonly selection: true;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
readonly individualActions: {
|
|
110
|
-
readonly remove: {
|
|
111
|
-
readonly label: "Remover";
|
|
112
|
-
readonly icon: "trash";
|
|
113
|
-
readonly ask: true;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
}>>, "name" | "absolute_path" | "_id" | "owner">;
|
|
117
|
-
}, context: import("@aeriajs/types").Context<{
|
|
118
|
-
readonly $id: "file";
|
|
119
|
-
readonly owned: "always";
|
|
120
|
-
readonly presets: readonly ["owned"];
|
|
121
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
122
|
-
readonly properties: {
|
|
123
|
-
readonly type: {
|
|
124
|
-
readonly type: "string";
|
|
125
|
-
};
|
|
126
|
-
readonly size: {
|
|
127
|
-
readonly type: "number";
|
|
128
|
-
};
|
|
129
|
-
readonly last_modified: {
|
|
130
|
-
readonly type: "string";
|
|
131
|
-
readonly format: "date-time";
|
|
132
|
-
};
|
|
133
|
-
readonly name: {
|
|
134
|
-
readonly type: "string";
|
|
135
|
-
};
|
|
136
|
-
readonly absolute_path: {
|
|
137
|
-
readonly type: "string";
|
|
138
|
-
};
|
|
139
|
-
readonly relative_path: {
|
|
140
|
-
readonly type: "string";
|
|
141
|
-
};
|
|
142
|
-
readonly immutable: {
|
|
143
|
-
readonly type: "boolean";
|
|
144
|
-
};
|
|
145
|
-
readonly link: {
|
|
146
|
-
readonly getter: (value: any) => Promise<string>;
|
|
147
|
-
};
|
|
148
|
-
readonly download_link: {
|
|
149
|
-
readonly getter: (value: any) => Promise<string>;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
readonly actions: {
|
|
153
|
-
readonly deleteAll: {
|
|
154
|
-
readonly label: "Remover";
|
|
155
|
-
readonly ask: true;
|
|
156
|
-
readonly selection: true;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
readonly individualActions: {
|
|
160
|
-
readonly remove: {
|
|
161
|
-
readonly label: "Remover";
|
|
162
|
-
readonly icon: "trash";
|
|
163
|
-
readonly ask: true;
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
}>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
67
|
+
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<typeof import("./collections/file/description.js").description>>, "_id" | "name" | "owner" | "absolute_path">;
|
|
68
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
167
69
|
readonly $id: "file";
|
|
70
|
+
readonly icon: "file";
|
|
168
71
|
readonly owned: "always";
|
|
169
72
|
readonly presets: readonly ["owned"];
|
|
170
73
|
readonly indexes: readonly ["name", "link", "type"];
|
|
@@ -215,64 +118,151 @@ export declare const collections: {
|
|
|
215
118
|
}>>>;
|
|
216
119
|
readonly download: (payload: {
|
|
217
120
|
fileId: string;
|
|
218
|
-
options: readonly ("
|
|
219
|
-
noHeaders?: boolean
|
|
220
|
-
}, context: import("@aeriajs/types").Context<{
|
|
221
|
-
readonly $id: "file";
|
|
222
|
-
readonly owned: "always";
|
|
223
|
-
readonly presets: readonly ["owned"];
|
|
224
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
225
|
-
readonly properties: {
|
|
226
|
-
readonly type: {
|
|
227
|
-
readonly type: "string";
|
|
228
|
-
};
|
|
229
|
-
readonly size: {
|
|
230
|
-
readonly type: "number";
|
|
231
|
-
};
|
|
232
|
-
readonly last_modified: {
|
|
233
|
-
readonly type: "string";
|
|
234
|
-
readonly format: "date-time";
|
|
235
|
-
};
|
|
236
|
-
readonly name: {
|
|
237
|
-
readonly type: "string";
|
|
238
|
-
};
|
|
239
|
-
readonly absolute_path: {
|
|
240
|
-
readonly type: "string";
|
|
241
|
-
};
|
|
242
|
-
readonly relative_path: {
|
|
243
|
-
readonly type: "string";
|
|
244
|
-
};
|
|
245
|
-
readonly immutable: {
|
|
246
|
-
readonly type: "boolean";
|
|
247
|
-
};
|
|
248
|
-
readonly link: {
|
|
249
|
-
readonly getter: (value: any) => Promise<string>;
|
|
250
|
-
};
|
|
251
|
-
readonly download_link: {
|
|
252
|
-
readonly getter: (value: any) => Promise<string>;
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
readonly actions: {
|
|
256
|
-
readonly deleteAll: {
|
|
257
|
-
readonly label: "Remover";
|
|
258
|
-
readonly ask: true;
|
|
259
|
-
readonly selection: true;
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
readonly individualActions: {
|
|
263
|
-
readonly remove: {
|
|
264
|
-
readonly label: "Remover";
|
|
265
|
-
readonly icon: "trash";
|
|
266
|
-
readonly ask: true;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
121
|
+
options: readonly ("picture" | "download")[];
|
|
122
|
+
noHeaders?: boolean;
|
|
123
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
270
124
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
271
125
|
} & {
|
|
272
126
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
273
127
|
}> | import("fs").ReadStream>;
|
|
274
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
|
|
128
|
+
readonly 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<import("@aeriajs/types").Result.Error<{
|
|
129
|
+
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
130
|
+
} & {
|
|
131
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
132
|
+
}> | {
|
|
133
|
+
readonly _tag: "Result";
|
|
134
|
+
readonly error: undefined;
|
|
135
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
136
|
+
}>;
|
|
137
|
+
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
138
|
+
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
139
|
+
} & {
|
|
140
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
141
|
+
}> | {
|
|
142
|
+
readonly _tag: "Result";
|
|
143
|
+
readonly error: undefined;
|
|
144
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
145
|
+
}>;
|
|
146
|
+
};
|
|
147
|
+
exposedFunctions: {
|
|
148
|
+
readonly get: "unauthenticated";
|
|
149
|
+
readonly insert: true;
|
|
150
|
+
readonly download: "unauthenticated";
|
|
151
|
+
readonly remove: true;
|
|
152
|
+
readonly removeAll: true;
|
|
153
|
+
};
|
|
154
|
+
}>, "description" | "functions" | "item" | "exposedFunctions" | "security"> & {
|
|
155
|
+
item: import("@aeriajs/types").SchemaWithId<{
|
|
156
|
+
readonly $id: "file";
|
|
157
|
+
readonly icon: "file";
|
|
158
|
+
readonly owned: "always";
|
|
159
|
+
readonly presets: readonly ["owned"];
|
|
160
|
+
readonly indexes: readonly ["name", "link", "type"];
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly type: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
};
|
|
165
|
+
readonly size: {
|
|
166
|
+
readonly type: "number";
|
|
167
|
+
};
|
|
168
|
+
readonly last_modified: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly format: "date-time";
|
|
171
|
+
};
|
|
172
|
+
readonly name: {
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
};
|
|
175
|
+
readonly absolute_path: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
};
|
|
178
|
+
readonly relative_path: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
};
|
|
181
|
+
readonly immutable: {
|
|
182
|
+
readonly type: "boolean";
|
|
183
|
+
};
|
|
184
|
+
readonly link: {
|
|
185
|
+
readonly getter: (value: any) => Promise<string>;
|
|
186
|
+
};
|
|
187
|
+
readonly download_link: {
|
|
188
|
+
readonly getter: (value: any) => Promise<string>;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly actions: {
|
|
192
|
+
readonly deleteAll: {
|
|
193
|
+
readonly label: "Remover";
|
|
194
|
+
readonly ask: true;
|
|
195
|
+
readonly selection: true;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
readonly individualActions: {
|
|
199
|
+
readonly remove: {
|
|
200
|
+
readonly label: "Remover";
|
|
201
|
+
readonly icon: "trash";
|
|
202
|
+
readonly ask: true;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
}>;
|
|
206
|
+
description: {
|
|
207
|
+
readonly $id: "file";
|
|
208
|
+
readonly icon: "file";
|
|
209
|
+
readonly owned: "always";
|
|
210
|
+
readonly presets: readonly ["owned"];
|
|
211
|
+
readonly indexes: readonly ["name", "link", "type"];
|
|
212
|
+
readonly properties: {
|
|
213
|
+
readonly type: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
};
|
|
216
|
+
readonly size: {
|
|
217
|
+
readonly type: "number";
|
|
218
|
+
};
|
|
219
|
+
readonly last_modified: {
|
|
220
|
+
readonly type: "string";
|
|
221
|
+
readonly format: "date-time";
|
|
222
|
+
};
|
|
223
|
+
readonly name: {
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
};
|
|
226
|
+
readonly absolute_path: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
};
|
|
229
|
+
readonly relative_path: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
};
|
|
232
|
+
readonly immutable: {
|
|
233
|
+
readonly type: "boolean";
|
|
234
|
+
};
|
|
235
|
+
readonly link: {
|
|
236
|
+
readonly getter: (value: any) => Promise<string>;
|
|
237
|
+
};
|
|
238
|
+
readonly download_link: {
|
|
239
|
+
readonly getter: (value: any) => Promise<string>;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
readonly actions: {
|
|
243
|
+
readonly deleteAll: {
|
|
244
|
+
readonly label: "Remover";
|
|
245
|
+
readonly ask: true;
|
|
246
|
+
readonly selection: true;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly individualActions: {
|
|
250
|
+
readonly remove: {
|
|
251
|
+
readonly label: "Remover";
|
|
252
|
+
readonly icon: "trash";
|
|
253
|
+
readonly ask: true;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
functions: {
|
|
258
|
+
readonly 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<any>>;
|
|
259
|
+
readonly insert: (payload: {
|
|
260
|
+
what: {
|
|
261
|
+
content: string;
|
|
262
|
+
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<typeof import("./collections/file/description.js").description>>, "_id" | "name" | "owner" | "absolute_path">;
|
|
263
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
275
264
|
readonly $id: "file";
|
|
265
|
+
readonly icon: "file";
|
|
276
266
|
readonly owned: "always";
|
|
277
267
|
readonly presets: readonly ["owned"];
|
|
278
268
|
readonly indexes: readonly ["name", "link", "type"];
|
|
@@ -320,3004 +310,502 @@ export declare const collections: {
|
|
|
320
310
|
readonly ask: true;
|
|
321
311
|
};
|
|
322
312
|
};
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
};
|
|
335
|
-
readonly last_modified: {
|
|
336
|
-
readonly type: "string";
|
|
337
|
-
readonly format: "date-time";
|
|
338
|
-
};
|
|
339
|
-
readonly name: {
|
|
340
|
-
readonly type: "string";
|
|
341
|
-
};
|
|
342
|
-
readonly absolute_path: {
|
|
343
|
-
readonly type: "string";
|
|
344
|
-
};
|
|
345
|
-
readonly relative_path: {
|
|
346
|
-
readonly type: "string";
|
|
347
|
-
};
|
|
348
|
-
readonly immutable: {
|
|
349
|
-
readonly type: "boolean";
|
|
350
|
-
};
|
|
351
|
-
readonly link: {
|
|
352
|
-
readonly getter: (value: any) => Promise<string>;
|
|
353
|
-
};
|
|
354
|
-
readonly download_link: {
|
|
355
|
-
readonly getter: (value: any) => Promise<string>;
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
readonly actions: {
|
|
359
|
-
readonly deleteAll: {
|
|
360
|
-
readonly label: "Remover";
|
|
361
|
-
readonly ask: true;
|
|
362
|
-
readonly selection: true;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
readonly individualActions: {
|
|
366
|
-
readonly remove: {
|
|
367
|
-
readonly label: "Remover";
|
|
368
|
-
readonly icon: "trash";
|
|
369
|
-
readonly ask: true;
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
313
|
+
}>>>;
|
|
314
|
+
readonly download: (payload: {
|
|
315
|
+
fileId: string;
|
|
316
|
+
options: readonly ("picture" | "download")[];
|
|
317
|
+
noHeaders?: boolean;
|
|
318
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
319
|
+
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
320
|
+
} & {
|
|
321
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
322
|
+
}> | import("fs").ReadStream>;
|
|
323
|
+
readonly 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<import("@aeriajs/types").Result.Error<{
|
|
373
324
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
374
325
|
} & {
|
|
375
326
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
376
327
|
}> | {
|
|
377
328
|
readonly _tag: "Result";
|
|
378
329
|
readonly error: undefined;
|
|
379
|
-
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description
|
|
330
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
380
331
|
}>;
|
|
381
|
-
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
382
|
-
readonly $id: "file";
|
|
383
|
-
readonly owned: "always";
|
|
384
|
-
readonly presets: readonly ["owned"];
|
|
385
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
386
|
-
readonly properties: {
|
|
387
|
-
readonly type: {
|
|
388
|
-
readonly type: "string";
|
|
389
|
-
};
|
|
390
|
-
readonly size: {
|
|
391
|
-
readonly type: "number";
|
|
392
|
-
};
|
|
393
|
-
readonly last_modified: {
|
|
394
|
-
readonly type: "string";
|
|
395
|
-
readonly format: "date-time";
|
|
396
|
-
};
|
|
397
|
-
readonly name: {
|
|
398
|
-
readonly type: "string";
|
|
399
|
-
};
|
|
400
|
-
readonly absolute_path: {
|
|
401
|
-
readonly type: "string";
|
|
402
|
-
};
|
|
403
|
-
readonly relative_path: {
|
|
404
|
-
readonly type: "string";
|
|
405
|
-
};
|
|
406
|
-
readonly immutable: {
|
|
407
|
-
readonly type: "boolean";
|
|
408
|
-
};
|
|
409
|
-
readonly link: {
|
|
410
|
-
readonly getter: (value: any) => Promise<string>;
|
|
411
|
-
};
|
|
412
|
-
readonly download_link: {
|
|
413
|
-
readonly getter: (value: any) => Promise<string>;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
readonly actions: {
|
|
417
|
-
readonly deleteAll: {
|
|
418
|
-
readonly label: "Remover";
|
|
419
|
-
readonly ask: true;
|
|
420
|
-
readonly selection: true;
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
readonly individualActions: {
|
|
424
|
-
readonly remove: {
|
|
425
|
-
readonly label: "Remover";
|
|
426
|
-
readonly icon: "trash";
|
|
427
|
-
readonly ask: true;
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
332
|
+
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<typeof import("./collections/file/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
431
333
|
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
432
334
|
} & {
|
|
433
335
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
434
336
|
}> | {
|
|
435
337
|
readonly _tag: "Result";
|
|
436
338
|
readonly error: undefined;
|
|
437
|
-
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description
|
|
339
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
438
340
|
}>;
|
|
439
341
|
};
|
|
440
|
-
|
|
441
|
-
readonly get
|
|
442
|
-
readonly insert
|
|
443
|
-
readonly download
|
|
444
|
-
readonly remove
|
|
445
|
-
readonly removeAll
|
|
342
|
+
contracts: {
|
|
343
|
+
readonly get?: import("@aeriajs/types").Contract | undefined;
|
|
344
|
+
readonly insert?: import("@aeriajs/types").Contract | undefined;
|
|
345
|
+
readonly download?: import("@aeriajs/types").Contract | undefined;
|
|
346
|
+
readonly remove?: import("@aeriajs/types").Contract | undefined;
|
|
347
|
+
readonly removeAll?: import("@aeriajs/types").Contract | undefined;
|
|
446
348
|
};
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
readonly
|
|
451
|
-
readonly
|
|
452
|
-
readonly
|
|
349
|
+
};
|
|
350
|
+
tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
351
|
+
description: {
|
|
352
|
+
readonly $id: "tempFile";
|
|
353
|
+
readonly icon: "file";
|
|
354
|
+
readonly temporary: {
|
|
355
|
+
readonly index: "created_at";
|
|
356
|
+
readonly expireAfterSeconds: 3600;
|
|
357
|
+
};
|
|
453
358
|
readonly properties: {
|
|
454
|
-
readonly
|
|
359
|
+
readonly created_at: {
|
|
360
|
+
readonly type: "string";
|
|
361
|
+
readonly format: "date-time";
|
|
362
|
+
};
|
|
363
|
+
readonly absolute_path: {
|
|
455
364
|
readonly type: "string";
|
|
456
365
|
};
|
|
457
366
|
readonly size: {
|
|
458
367
|
readonly type: "number";
|
|
459
368
|
};
|
|
460
|
-
readonly
|
|
461
|
-
readonly type: "
|
|
462
|
-
readonly format: "date-time";
|
|
369
|
+
readonly mime: {
|
|
370
|
+
readonly type: "number";
|
|
463
371
|
};
|
|
464
|
-
readonly
|
|
372
|
+
readonly collection: {
|
|
465
373
|
readonly type: "string";
|
|
466
374
|
};
|
|
467
|
-
readonly
|
|
375
|
+
readonly filename: {
|
|
468
376
|
readonly type: "string";
|
|
469
377
|
};
|
|
470
|
-
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
}>, "description" | "functions" | "item" | "exposedFunctions" | "security"> & {
|
|
381
|
+
item: import("@aeriajs/types").SchemaWithId<{
|
|
382
|
+
readonly $id: "tempFile";
|
|
383
|
+
readonly icon: "file";
|
|
384
|
+
readonly temporary: {
|
|
385
|
+
readonly index: "created_at";
|
|
386
|
+
readonly expireAfterSeconds: 3600;
|
|
387
|
+
};
|
|
388
|
+
readonly properties: {
|
|
389
|
+
readonly created_at: {
|
|
471
390
|
readonly type: "string";
|
|
391
|
+
readonly format: "date-time";
|
|
472
392
|
};
|
|
473
|
-
readonly
|
|
474
|
-
readonly type: "
|
|
393
|
+
readonly absolute_path: {
|
|
394
|
+
readonly type: "string";
|
|
475
395
|
};
|
|
476
|
-
readonly
|
|
477
|
-
readonly
|
|
396
|
+
readonly size: {
|
|
397
|
+
readonly type: "number";
|
|
478
398
|
};
|
|
479
|
-
readonly
|
|
480
|
-
readonly
|
|
399
|
+
readonly mime: {
|
|
400
|
+
readonly type: "number";
|
|
481
401
|
};
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
readonly deleteAll: {
|
|
485
|
-
readonly label: "Remover";
|
|
486
|
-
readonly ask: true;
|
|
487
|
-
readonly selection: true;
|
|
402
|
+
readonly collection: {
|
|
403
|
+
readonly type: "string";
|
|
488
404
|
};
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
readonly remove: {
|
|
492
|
-
readonly label: "Remover";
|
|
493
|
-
readonly icon: "trash";
|
|
494
|
-
readonly ask: true;
|
|
405
|
+
readonly filename: {
|
|
406
|
+
readonly type: "string";
|
|
495
407
|
};
|
|
496
408
|
};
|
|
497
409
|
}>;
|
|
498
410
|
description: {
|
|
499
|
-
readonly $id: "
|
|
500
|
-
readonly
|
|
501
|
-
readonly
|
|
502
|
-
|
|
411
|
+
readonly $id: "tempFile";
|
|
412
|
+
readonly icon: "file";
|
|
413
|
+
readonly temporary: {
|
|
414
|
+
readonly index: "created_at";
|
|
415
|
+
readonly expireAfterSeconds: 3600;
|
|
416
|
+
};
|
|
503
417
|
readonly properties: {
|
|
504
|
-
readonly
|
|
418
|
+
readonly created_at: {
|
|
419
|
+
readonly type: "string";
|
|
420
|
+
readonly format: "date-time";
|
|
421
|
+
};
|
|
422
|
+
readonly absolute_path: {
|
|
505
423
|
readonly type: "string";
|
|
506
424
|
};
|
|
507
425
|
readonly size: {
|
|
508
426
|
readonly type: "number";
|
|
509
427
|
};
|
|
510
|
-
readonly
|
|
511
|
-
readonly type: "
|
|
512
|
-
readonly format: "date-time";
|
|
513
|
-
};
|
|
514
|
-
readonly name: {
|
|
515
|
-
readonly type: "string";
|
|
428
|
+
readonly mime: {
|
|
429
|
+
readonly type: "number";
|
|
516
430
|
};
|
|
517
|
-
readonly
|
|
431
|
+
readonly collection: {
|
|
518
432
|
readonly type: "string";
|
|
519
433
|
};
|
|
520
|
-
readonly
|
|
434
|
+
readonly filename: {
|
|
521
435
|
readonly type: "string";
|
|
522
436
|
};
|
|
523
|
-
|
|
524
|
-
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
functions: Record<string, (payload: any, context: import("@aeriajs/types").StrictContext<any>) => any> & {};
|
|
440
|
+
contracts: {
|
|
441
|
+
[x: string]: import("@aeriajs/types").Contract | undefined;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
log: Omit<import("@aeriajs/types").Collection<{
|
|
445
|
+
description: {
|
|
446
|
+
readonly $id: "log";
|
|
447
|
+
readonly icon: "magnifying-glass";
|
|
448
|
+
readonly required: readonly ["context", "message"];
|
|
449
|
+
readonly properties: {
|
|
450
|
+
readonly owner: {
|
|
451
|
+
readonly $ref: "user";
|
|
452
|
+
readonly noForm: true;
|
|
525
453
|
};
|
|
526
|
-
readonly
|
|
527
|
-
readonly
|
|
454
|
+
readonly context: {
|
|
455
|
+
readonly type: "string";
|
|
528
456
|
};
|
|
529
|
-
readonly
|
|
530
|
-
readonly
|
|
457
|
+
readonly message: {
|
|
458
|
+
readonly type: "string";
|
|
531
459
|
};
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
readonly label: "Remover";
|
|
536
|
-
readonly ask: true;
|
|
537
|
-
readonly selection: true;
|
|
460
|
+
readonly details: {
|
|
461
|
+
readonly type: "object";
|
|
462
|
+
readonly variable: true;
|
|
538
463
|
};
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
readonly label: "Remover";
|
|
543
|
-
readonly icon: "trash";
|
|
544
|
-
readonly ask: true;
|
|
464
|
+
readonly created_at: {
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
readonly format: "date-time";
|
|
545
467
|
};
|
|
546
468
|
};
|
|
469
|
+
readonly presets: readonly ["view"];
|
|
470
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
547
471
|
};
|
|
548
472
|
functions: {
|
|
549
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions
|
|
550
|
-
readonly
|
|
551
|
-
what: {
|
|
552
|
-
content: string;
|
|
553
|
-
} & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
554
|
-
readonly $id: "file";
|
|
555
|
-
readonly owned: "always";
|
|
556
|
-
readonly presets: readonly ["owned"];
|
|
557
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
558
|
-
readonly properties: {
|
|
559
|
-
readonly type: {
|
|
560
|
-
readonly type: "string";
|
|
561
|
-
};
|
|
562
|
-
readonly size: {
|
|
563
|
-
readonly type: "number";
|
|
564
|
-
};
|
|
565
|
-
readonly last_modified: {
|
|
566
|
-
readonly type: "string";
|
|
567
|
-
readonly format: "date-time";
|
|
568
|
-
};
|
|
569
|
-
readonly name: {
|
|
570
|
-
readonly type: "string";
|
|
571
|
-
};
|
|
572
|
-
readonly absolute_path: {
|
|
573
|
-
readonly type: "string";
|
|
574
|
-
};
|
|
575
|
-
readonly relative_path: {
|
|
576
|
-
readonly type: "string";
|
|
577
|
-
};
|
|
578
|
-
readonly immutable: {
|
|
579
|
-
readonly type: "boolean";
|
|
580
|
-
};
|
|
581
|
-
readonly link: {
|
|
582
|
-
readonly getter: (value: any) => Promise<string>;
|
|
583
|
-
};
|
|
584
|
-
readonly download_link: {
|
|
585
|
-
readonly getter: (value: any) => Promise<string>;
|
|
586
|
-
};
|
|
587
|
-
};
|
|
588
|
-
readonly actions: {
|
|
589
|
-
readonly deleteAll: {
|
|
590
|
-
readonly label: "Remover";
|
|
591
|
-
readonly ask: true;
|
|
592
|
-
readonly selection: true;
|
|
593
|
-
};
|
|
594
|
-
};
|
|
595
|
-
readonly individualActions: {
|
|
596
|
-
readonly remove: {
|
|
597
|
-
readonly label: "Remover";
|
|
598
|
-
readonly icon: "trash";
|
|
599
|
-
readonly ask: true;
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
}>>, "name" | "absolute_path" | "_id" | "owner">;
|
|
603
|
-
}, context: import("@aeriajs/types").Context<{
|
|
604
|
-
readonly $id: "file";
|
|
605
|
-
readonly owned: "always";
|
|
606
|
-
readonly presets: readonly ["owned"];
|
|
607
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
608
|
-
readonly properties: {
|
|
609
|
-
readonly type: {
|
|
610
|
-
readonly type: "string";
|
|
611
|
-
};
|
|
612
|
-
readonly size: {
|
|
613
|
-
readonly type: "number";
|
|
614
|
-
};
|
|
615
|
-
readonly last_modified: {
|
|
616
|
-
readonly type: "string";
|
|
617
|
-
readonly format: "date-time";
|
|
618
|
-
};
|
|
619
|
-
readonly name: {
|
|
620
|
-
readonly type: "string";
|
|
621
|
-
};
|
|
622
|
-
readonly absolute_path: {
|
|
623
|
-
readonly type: "string";
|
|
624
|
-
};
|
|
625
|
-
readonly relative_path: {
|
|
626
|
-
readonly type: "string";
|
|
627
|
-
};
|
|
628
|
-
readonly immutable: {
|
|
629
|
-
readonly type: "boolean";
|
|
630
|
-
};
|
|
631
|
-
readonly link: {
|
|
632
|
-
readonly getter: (value: any) => Promise<string>;
|
|
633
|
-
};
|
|
634
|
-
readonly download_link: {
|
|
635
|
-
readonly getter: (value: any) => Promise<string>;
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
readonly actions: {
|
|
639
|
-
readonly deleteAll: {
|
|
640
|
-
readonly label: "Remover";
|
|
641
|
-
readonly ask: true;
|
|
642
|
-
readonly selection: true;
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
readonly individualActions: {
|
|
646
|
-
readonly remove: {
|
|
647
|
-
readonly label: "Remover";
|
|
648
|
-
readonly icon: "trash";
|
|
649
|
-
readonly ask: true;
|
|
650
|
-
};
|
|
651
|
-
};
|
|
652
|
-
}>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
653
|
-
readonly $id: "file";
|
|
654
|
-
readonly owned: "always";
|
|
655
|
-
readonly presets: readonly ["owned"];
|
|
656
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
657
|
-
readonly properties: {
|
|
658
|
-
readonly type: {
|
|
659
|
-
readonly type: "string";
|
|
660
|
-
};
|
|
661
|
-
readonly size: {
|
|
662
|
-
readonly type: "number";
|
|
663
|
-
};
|
|
664
|
-
readonly last_modified: {
|
|
665
|
-
readonly type: "string";
|
|
666
|
-
readonly format: "date-time";
|
|
667
|
-
};
|
|
668
|
-
readonly name: {
|
|
669
|
-
readonly type: "string";
|
|
670
|
-
};
|
|
671
|
-
readonly absolute_path: {
|
|
672
|
-
readonly type: "string";
|
|
673
|
-
};
|
|
674
|
-
readonly relative_path: {
|
|
675
|
-
readonly type: "string";
|
|
676
|
-
};
|
|
677
|
-
readonly immutable: {
|
|
678
|
-
readonly type: "boolean";
|
|
679
|
-
};
|
|
680
|
-
readonly link: {
|
|
681
|
-
readonly getter: (value: any) => Promise<string>;
|
|
682
|
-
};
|
|
683
|
-
readonly download_link: {
|
|
684
|
-
readonly getter: (value: any) => Promise<string>;
|
|
685
|
-
};
|
|
686
|
-
};
|
|
687
|
-
readonly actions: {
|
|
688
|
-
readonly deleteAll: {
|
|
689
|
-
readonly label: "Remover";
|
|
690
|
-
readonly ask: true;
|
|
691
|
-
readonly selection: true;
|
|
692
|
-
};
|
|
693
|
-
};
|
|
694
|
-
readonly individualActions: {
|
|
695
|
-
readonly remove: {
|
|
696
|
-
readonly label: "Remover";
|
|
697
|
-
readonly icon: "trash";
|
|
698
|
-
readonly ask: true;
|
|
699
|
-
};
|
|
700
|
-
};
|
|
701
|
-
}>>>;
|
|
702
|
-
readonly download: (payload: {
|
|
703
|
-
fileId: string;
|
|
704
|
-
options: readonly ("download" | "picture")[];
|
|
705
|
-
noHeaders?: boolean | undefined;
|
|
706
|
-
}, context: import("@aeriajs/types").Context<{
|
|
707
|
-
readonly $id: "file";
|
|
708
|
-
readonly owned: "always";
|
|
709
|
-
readonly presets: readonly ["owned"];
|
|
710
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
711
|
-
readonly properties: {
|
|
712
|
-
readonly type: {
|
|
713
|
-
readonly type: "string";
|
|
714
|
-
};
|
|
715
|
-
readonly size: {
|
|
716
|
-
readonly type: "number";
|
|
717
|
-
};
|
|
718
|
-
readonly last_modified: {
|
|
719
|
-
readonly type: "string";
|
|
720
|
-
readonly format: "date-time";
|
|
721
|
-
};
|
|
722
|
-
readonly name: {
|
|
723
|
-
readonly type: "string";
|
|
724
|
-
};
|
|
725
|
-
readonly absolute_path: {
|
|
726
|
-
readonly type: "string";
|
|
727
|
-
};
|
|
728
|
-
readonly relative_path: {
|
|
729
|
-
readonly type: "string";
|
|
730
|
-
};
|
|
731
|
-
readonly immutable: {
|
|
732
|
-
readonly type: "boolean";
|
|
733
|
-
};
|
|
734
|
-
readonly link: {
|
|
735
|
-
readonly getter: (value: any) => Promise<string>;
|
|
736
|
-
};
|
|
737
|
-
readonly download_link: {
|
|
738
|
-
readonly getter: (value: any) => Promise<string>;
|
|
739
|
-
};
|
|
740
|
-
};
|
|
741
|
-
readonly actions: {
|
|
742
|
-
readonly deleteAll: {
|
|
743
|
-
readonly label: "Remover";
|
|
744
|
-
readonly ask: true;
|
|
745
|
-
readonly selection: true;
|
|
746
|
-
};
|
|
747
|
-
};
|
|
748
|
-
readonly individualActions: {
|
|
749
|
-
readonly remove: {
|
|
750
|
-
readonly label: "Remover";
|
|
751
|
-
readonly icon: "trash";
|
|
752
|
-
readonly ask: true;
|
|
753
|
-
};
|
|
754
|
-
};
|
|
755
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
756
|
-
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
757
|
-
} & {
|
|
758
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
759
|
-
}> | import("fs").ReadStream>;
|
|
760
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
|
|
761
|
-
readonly $id: "file";
|
|
762
|
-
readonly owned: "always";
|
|
763
|
-
readonly presets: readonly ["owned"];
|
|
764
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
765
|
-
readonly properties: {
|
|
766
|
-
readonly type: {
|
|
767
|
-
readonly type: "string";
|
|
768
|
-
};
|
|
769
|
-
readonly size: {
|
|
770
|
-
readonly type: "number";
|
|
771
|
-
};
|
|
772
|
-
readonly last_modified: {
|
|
773
|
-
readonly type: "string";
|
|
774
|
-
readonly format: "date-time";
|
|
775
|
-
};
|
|
776
|
-
readonly name: {
|
|
777
|
-
readonly type: "string";
|
|
778
|
-
};
|
|
779
|
-
readonly absolute_path: {
|
|
780
|
-
readonly type: "string";
|
|
781
|
-
};
|
|
782
|
-
readonly relative_path: {
|
|
783
|
-
readonly type: "string";
|
|
784
|
-
};
|
|
785
|
-
readonly immutable: {
|
|
786
|
-
readonly type: "boolean";
|
|
787
|
-
};
|
|
788
|
-
readonly link: {
|
|
789
|
-
readonly getter: (value: any) => Promise<string>;
|
|
790
|
-
};
|
|
791
|
-
readonly download_link: {
|
|
792
|
-
readonly getter: (value: any) => Promise<string>;
|
|
793
|
-
};
|
|
794
|
-
};
|
|
795
|
-
readonly actions: {
|
|
796
|
-
readonly deleteAll: {
|
|
797
|
-
readonly label: "Remover";
|
|
798
|
-
readonly ask: true;
|
|
799
|
-
readonly selection: true;
|
|
800
|
-
};
|
|
801
|
-
};
|
|
802
|
-
readonly individualActions: {
|
|
803
|
-
readonly remove: {
|
|
804
|
-
readonly label: "Remover";
|
|
805
|
-
readonly icon: "trash";
|
|
806
|
-
readonly ask: true;
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
810
|
-
readonly $id: "file";
|
|
811
|
-
readonly owned: "always";
|
|
812
|
-
readonly presets: readonly ["owned"];
|
|
813
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
814
|
-
readonly properties: {
|
|
815
|
-
readonly type: {
|
|
816
|
-
readonly type: "string";
|
|
817
|
-
};
|
|
818
|
-
readonly size: {
|
|
819
|
-
readonly type: "number";
|
|
820
|
-
};
|
|
821
|
-
readonly last_modified: {
|
|
822
|
-
readonly type: "string";
|
|
823
|
-
readonly format: "date-time";
|
|
824
|
-
};
|
|
825
|
-
readonly name: {
|
|
826
|
-
readonly type: "string";
|
|
827
|
-
};
|
|
828
|
-
readonly absolute_path: {
|
|
829
|
-
readonly type: "string";
|
|
830
|
-
};
|
|
831
|
-
readonly relative_path: {
|
|
832
|
-
readonly type: "string";
|
|
833
|
-
};
|
|
834
|
-
readonly immutable: {
|
|
835
|
-
readonly type: "boolean";
|
|
836
|
-
};
|
|
837
|
-
readonly link: {
|
|
838
|
-
readonly getter: (value: any) => Promise<string>;
|
|
839
|
-
};
|
|
840
|
-
readonly download_link: {
|
|
841
|
-
readonly getter: (value: any) => Promise<string>;
|
|
842
|
-
};
|
|
843
|
-
};
|
|
844
|
-
readonly actions: {
|
|
845
|
-
readonly deleteAll: {
|
|
846
|
-
readonly label: "Remover";
|
|
847
|
-
readonly ask: true;
|
|
848
|
-
readonly selection: true;
|
|
849
|
-
};
|
|
850
|
-
};
|
|
851
|
-
readonly individualActions: {
|
|
852
|
-
readonly remove: {
|
|
853
|
-
readonly label: "Remover";
|
|
854
|
-
readonly icon: "trash";
|
|
855
|
-
readonly ask: true;
|
|
856
|
-
};
|
|
857
|
-
};
|
|
858
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
859
|
-
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
860
|
-
} & {
|
|
861
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
862
|
-
}> | {
|
|
863
|
-
readonly _tag: "Result";
|
|
864
|
-
readonly error: undefined;
|
|
865
|
-
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
866
|
-
}>;
|
|
867
|
-
readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
|
|
868
|
-
readonly $id: "file";
|
|
869
|
-
readonly owned: "always";
|
|
870
|
-
readonly presets: readonly ["owned"];
|
|
871
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
872
|
-
readonly properties: {
|
|
873
|
-
readonly type: {
|
|
874
|
-
readonly type: "string";
|
|
875
|
-
};
|
|
876
|
-
readonly size: {
|
|
877
|
-
readonly type: "number";
|
|
878
|
-
};
|
|
879
|
-
readonly last_modified: {
|
|
880
|
-
readonly type: "string";
|
|
881
|
-
readonly format: "date-time";
|
|
882
|
-
};
|
|
883
|
-
readonly name: {
|
|
884
|
-
readonly type: "string";
|
|
885
|
-
};
|
|
886
|
-
readonly absolute_path: {
|
|
887
|
-
readonly type: "string";
|
|
888
|
-
};
|
|
889
|
-
readonly relative_path: {
|
|
890
|
-
readonly type: "string";
|
|
891
|
-
};
|
|
892
|
-
readonly immutable: {
|
|
893
|
-
readonly type: "boolean";
|
|
894
|
-
};
|
|
895
|
-
readonly link: {
|
|
896
|
-
readonly getter: (value: any) => Promise<string>;
|
|
897
|
-
};
|
|
898
|
-
readonly download_link: {
|
|
899
|
-
readonly getter: (value: any) => Promise<string>;
|
|
900
|
-
};
|
|
901
|
-
};
|
|
902
|
-
readonly actions: {
|
|
903
|
-
readonly deleteAll: {
|
|
904
|
-
readonly label: "Remover";
|
|
905
|
-
readonly ask: true;
|
|
906
|
-
readonly selection: true;
|
|
907
|
-
};
|
|
908
|
-
};
|
|
909
|
-
readonly individualActions: {
|
|
910
|
-
readonly remove: {
|
|
911
|
-
readonly label: "Remover";
|
|
912
|
-
readonly icon: "trash";
|
|
913
|
-
readonly ask: true;
|
|
914
|
-
};
|
|
915
|
-
};
|
|
916
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
917
|
-
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
918
|
-
} & {
|
|
919
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
920
|
-
}> | {
|
|
921
|
-
readonly _tag: "Result";
|
|
922
|
-
readonly error: undefined;
|
|
923
|
-
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
924
|
-
}>;
|
|
925
|
-
};
|
|
926
|
-
contracts: {
|
|
927
|
-
readonly get?: import("@aeriajs/types").Contract | undefined;
|
|
928
|
-
readonly insert?: import("@aeriajs/types").Contract | undefined;
|
|
929
|
-
readonly download?: import("@aeriajs/types").Contract | undefined;
|
|
930
|
-
readonly remove?: import("@aeriajs/types").Contract | undefined;
|
|
931
|
-
readonly removeAll?: import("@aeriajs/types").Contract | undefined;
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
935
|
-
description: {
|
|
936
|
-
readonly $id: "tempFile";
|
|
937
|
-
readonly temporary: {
|
|
938
|
-
readonly index: "created_at";
|
|
939
|
-
readonly expireAfterSeconds: 3600;
|
|
940
|
-
};
|
|
941
|
-
readonly properties: {
|
|
942
|
-
readonly created_at: {
|
|
943
|
-
readonly type: "string";
|
|
944
|
-
readonly format: "date-time";
|
|
945
|
-
};
|
|
946
|
-
readonly absolute_path: {
|
|
947
|
-
readonly type: "string";
|
|
948
|
-
};
|
|
949
|
-
readonly size: {
|
|
950
|
-
readonly type: "number";
|
|
951
|
-
};
|
|
952
|
-
readonly mime: {
|
|
953
|
-
readonly type: "number";
|
|
954
|
-
};
|
|
955
|
-
readonly collection: {
|
|
956
|
-
readonly type: "string";
|
|
957
|
-
};
|
|
958
|
-
readonly filename: {
|
|
959
|
-
readonly type: "string";
|
|
960
|
-
};
|
|
961
|
-
};
|
|
962
|
-
};
|
|
963
|
-
}>, "description" | "functions" | "item" | "security" | "exposedFunctions"> & {
|
|
964
|
-
item: import("@aeriajs/types").SchemaWithId<{
|
|
965
|
-
readonly $id: "tempFile";
|
|
966
|
-
readonly temporary: {
|
|
967
|
-
readonly index: "created_at";
|
|
968
|
-
readonly expireAfterSeconds: 3600;
|
|
969
|
-
};
|
|
970
|
-
readonly properties: {
|
|
971
|
-
readonly created_at: {
|
|
972
|
-
readonly type: "string";
|
|
973
|
-
readonly format: "date-time";
|
|
974
|
-
};
|
|
975
|
-
readonly absolute_path: {
|
|
976
|
-
readonly type: "string";
|
|
977
|
-
};
|
|
978
|
-
readonly size: {
|
|
979
|
-
readonly type: "number";
|
|
980
|
-
};
|
|
981
|
-
readonly mime: {
|
|
982
|
-
readonly type: "number";
|
|
983
|
-
};
|
|
984
|
-
readonly collection: {
|
|
985
|
-
readonly type: "string";
|
|
986
|
-
};
|
|
987
|
-
readonly filename: {
|
|
988
|
-
readonly type: "string";
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
}>;
|
|
992
|
-
description: {
|
|
993
|
-
readonly $id: "tempFile";
|
|
994
|
-
readonly temporary: {
|
|
995
|
-
readonly index: "created_at";
|
|
996
|
-
readonly expireAfterSeconds: 3600;
|
|
997
|
-
};
|
|
998
|
-
readonly properties: {
|
|
999
|
-
readonly created_at: {
|
|
1000
|
-
readonly type: "string";
|
|
1001
|
-
readonly format: "date-time";
|
|
1002
|
-
};
|
|
1003
|
-
readonly absolute_path: {
|
|
1004
|
-
readonly type: "string";
|
|
1005
|
-
};
|
|
1006
|
-
readonly size: {
|
|
1007
|
-
readonly type: "number";
|
|
1008
|
-
};
|
|
1009
|
-
readonly mime: {
|
|
1010
|
-
readonly type: "number";
|
|
1011
|
-
};
|
|
1012
|
-
readonly collection: {
|
|
1013
|
-
readonly type: "string";
|
|
1014
|
-
};
|
|
1015
|
-
readonly filename: {
|
|
1016
|
-
readonly type: "string";
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
};
|
|
1020
|
-
functions: Record<string, (payload: any, context: import("@aeriajs/types").StrictContext<any>) => any> & {};
|
|
1021
|
-
contracts: {
|
|
1022
|
-
[x: string]: import("@aeriajs/types").Contract | undefined;
|
|
1023
|
-
};
|
|
1024
|
-
};
|
|
1025
|
-
log: Omit<import("@aeriajs/types").Collection<{
|
|
1026
|
-
description: {
|
|
1027
|
-
readonly $id: "log";
|
|
1028
|
-
readonly required: readonly ["context", "message"];
|
|
1029
|
-
readonly properties: {
|
|
1030
|
-
readonly owner: {
|
|
1031
|
-
readonly $ref: "user";
|
|
1032
|
-
readonly noForm: true;
|
|
1033
|
-
};
|
|
1034
|
-
readonly context: {
|
|
1035
|
-
readonly type: "string";
|
|
1036
|
-
};
|
|
1037
|
-
readonly message: {
|
|
1038
|
-
readonly type: "string";
|
|
1039
|
-
};
|
|
1040
|
-
readonly details: {
|
|
1041
|
-
readonly type: "object";
|
|
1042
|
-
readonly variable: true;
|
|
1043
|
-
};
|
|
1044
|
-
readonly created_at: {
|
|
1045
|
-
readonly type: "string";
|
|
1046
|
-
readonly format: "date-time";
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
|
-
readonly icon: "magnifying-glass";
|
|
1050
|
-
readonly presets: readonly ["view"];
|
|
1051
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
1052
|
-
};
|
|
1053
|
-
functions: {
|
|
1054
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
1055
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<{
|
|
1056
|
-
readonly _tag: "Result";
|
|
1057
|
-
readonly error: undefined;
|
|
1058
|
-
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1059
|
-
}>;
|
|
1060
|
-
readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
|
|
1061
|
-
};
|
|
1062
|
-
exposedFunctions: {
|
|
1063
|
-
readonly get: true;
|
|
1064
|
-
readonly getAll: true;
|
|
1065
|
-
readonly insert: true;
|
|
1066
|
-
};
|
|
1067
|
-
}>, "description" | "functions" | "item" | "security" | "exposedFunctions"> & {
|
|
1068
|
-
item: import("@aeriajs/types").SchemaWithId<{
|
|
1069
|
-
readonly $id: "log";
|
|
1070
|
-
readonly required: readonly ["context", "message"];
|
|
1071
|
-
readonly properties: {
|
|
1072
|
-
readonly owner: {
|
|
1073
|
-
readonly $ref: "user";
|
|
1074
|
-
readonly noForm: true;
|
|
1075
|
-
};
|
|
1076
|
-
readonly context: {
|
|
1077
|
-
readonly type: "string";
|
|
1078
|
-
};
|
|
1079
|
-
readonly message: {
|
|
1080
|
-
readonly type: "string";
|
|
1081
|
-
};
|
|
1082
|
-
readonly details: {
|
|
1083
|
-
readonly type: "object";
|
|
1084
|
-
readonly variable: true;
|
|
1085
|
-
};
|
|
1086
|
-
readonly created_at: {
|
|
1087
|
-
readonly type: "string";
|
|
1088
|
-
readonly format: "date-time";
|
|
1089
|
-
};
|
|
1090
|
-
};
|
|
1091
|
-
readonly icon: "magnifying-glass";
|
|
1092
|
-
readonly presets: readonly ["view"];
|
|
1093
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
1094
|
-
}>;
|
|
1095
|
-
description: {
|
|
1096
|
-
readonly $id: "log";
|
|
1097
|
-
readonly required: readonly ["context", "message"];
|
|
1098
|
-
readonly properties: {
|
|
1099
|
-
readonly owner: {
|
|
1100
|
-
readonly $ref: "user";
|
|
1101
|
-
readonly noForm: true;
|
|
1102
|
-
};
|
|
1103
|
-
readonly context: {
|
|
1104
|
-
readonly type: "string";
|
|
1105
|
-
};
|
|
1106
|
-
readonly message: {
|
|
1107
|
-
readonly type: "string";
|
|
1108
|
-
};
|
|
1109
|
-
readonly details: {
|
|
1110
|
-
readonly type: "object";
|
|
1111
|
-
readonly variable: true;
|
|
1112
|
-
};
|
|
1113
|
-
readonly created_at: {
|
|
1114
|
-
readonly type: "string";
|
|
1115
|
-
readonly format: "date-time";
|
|
1116
|
-
};
|
|
1117
|
-
};
|
|
1118
|
-
readonly icon: "magnifying-glass";
|
|
1119
|
-
readonly presets: readonly ["view"];
|
|
1120
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
1121
|
-
};
|
|
1122
|
-
functions: {
|
|
1123
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
1124
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<{
|
|
1125
|
-
readonly _tag: "Result";
|
|
1126
|
-
readonly error: undefined;
|
|
1127
|
-
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1128
|
-
}>;
|
|
1129
|
-
readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").InsertOptions | undefined) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<any>>>;
|
|
1130
|
-
};
|
|
1131
|
-
contracts: {
|
|
1132
|
-
readonly get?: import("@aeriajs/types").Contract | undefined;
|
|
1133
|
-
readonly getAll?: import("@aeriajs/types").Contract | undefined;
|
|
1134
|
-
readonly insert?: import("@aeriajs/types").Contract | undefined;
|
|
1135
|
-
};
|
|
1136
|
-
};
|
|
1137
|
-
resourceUsage: Omit<import("@aeriajs/types").Collection<{
|
|
1138
|
-
description: {
|
|
1139
|
-
readonly $id: "resourceUsage";
|
|
1140
|
-
readonly required: readonly ["usage"];
|
|
1141
|
-
readonly properties: {
|
|
1142
|
-
readonly user: {
|
|
1143
|
-
readonly $ref: "user";
|
|
1144
|
-
};
|
|
1145
|
-
readonly address: {
|
|
1146
|
-
readonly type: "string";
|
|
1147
|
-
};
|
|
1148
|
-
readonly usage: {
|
|
1149
|
-
readonly type: "object";
|
|
1150
|
-
readonly additionalProperties: {
|
|
1151
|
-
readonly type: "object";
|
|
1152
|
-
readonly properties: {
|
|
1153
|
-
readonly hits: {
|
|
1154
|
-
readonly type: "integer";
|
|
1155
|
-
};
|
|
1156
|
-
readonly points: {
|
|
1157
|
-
readonly type: "integer";
|
|
1158
|
-
};
|
|
1159
|
-
readonly last_reach: {
|
|
1160
|
-
readonly type: "string";
|
|
1161
|
-
readonly format: "date-time";
|
|
1162
|
-
};
|
|
1163
|
-
readonly last_maximum_reach: {
|
|
1164
|
-
readonly type: "string";
|
|
1165
|
-
readonly format: "date-time";
|
|
1166
|
-
};
|
|
1167
|
-
};
|
|
1168
|
-
};
|
|
1169
|
-
};
|
|
1170
|
-
};
|
|
1171
|
-
};
|
|
1172
|
-
}>, "description" | "functions" | "item" | "security" | "exposedFunctions"> & {
|
|
1173
|
-
item: import("@aeriajs/types").SchemaWithId<{
|
|
1174
|
-
readonly $id: "resourceUsage";
|
|
1175
|
-
readonly required: readonly ["usage"];
|
|
1176
|
-
readonly properties: {
|
|
1177
|
-
readonly user: {
|
|
1178
|
-
readonly $ref: "user";
|
|
1179
|
-
};
|
|
1180
|
-
readonly address: {
|
|
1181
|
-
readonly type: "string";
|
|
1182
|
-
};
|
|
1183
|
-
readonly usage: {
|
|
1184
|
-
readonly type: "object";
|
|
1185
|
-
readonly additionalProperties: {
|
|
1186
|
-
readonly type: "object";
|
|
1187
|
-
readonly properties: {
|
|
1188
|
-
readonly hits: {
|
|
1189
|
-
readonly type: "integer";
|
|
1190
|
-
};
|
|
1191
|
-
readonly points: {
|
|
1192
|
-
readonly type: "integer";
|
|
1193
|
-
};
|
|
1194
|
-
readonly last_reach: {
|
|
1195
|
-
readonly type: "string";
|
|
1196
|
-
readonly format: "date-time";
|
|
1197
|
-
};
|
|
1198
|
-
readonly last_maximum_reach: {
|
|
1199
|
-
readonly type: "string";
|
|
1200
|
-
readonly format: "date-time";
|
|
1201
|
-
};
|
|
1202
|
-
};
|
|
1203
|
-
};
|
|
1204
|
-
};
|
|
1205
|
-
};
|
|
1206
|
-
}>;
|
|
1207
|
-
description: {
|
|
1208
|
-
readonly $id: "resourceUsage";
|
|
1209
|
-
readonly required: readonly ["usage"];
|
|
1210
|
-
readonly properties: {
|
|
1211
|
-
readonly user: {
|
|
1212
|
-
readonly $ref: "user";
|
|
1213
|
-
};
|
|
1214
|
-
readonly address: {
|
|
1215
|
-
readonly type: "string";
|
|
1216
|
-
};
|
|
1217
|
-
readonly usage: {
|
|
1218
|
-
readonly type: "object";
|
|
1219
|
-
readonly additionalProperties: {
|
|
1220
|
-
readonly type: "object";
|
|
1221
|
-
readonly properties: {
|
|
1222
|
-
readonly hits: {
|
|
1223
|
-
readonly type: "integer";
|
|
1224
|
-
};
|
|
1225
|
-
readonly points: {
|
|
1226
|
-
readonly type: "integer";
|
|
1227
|
-
};
|
|
1228
|
-
readonly last_reach: {
|
|
1229
|
-
readonly type: "string";
|
|
1230
|
-
readonly format: "date-time";
|
|
1231
|
-
};
|
|
1232
|
-
readonly last_maximum_reach: {
|
|
1233
|
-
readonly type: "string";
|
|
1234
|
-
readonly format: "date-time";
|
|
1235
|
-
};
|
|
1236
|
-
};
|
|
1237
|
-
};
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
};
|
|
1241
|
-
functions: Record<string, (payload: any, context: import("@aeriajs/types").StrictContext<any>) => any> & {};
|
|
1242
|
-
contracts: {
|
|
1243
|
-
[x: string]: import("@aeriajs/types").Contract | undefined;
|
|
1244
|
-
};
|
|
1245
|
-
};
|
|
1246
|
-
user: {
|
|
1247
|
-
description: {
|
|
1248
|
-
readonly $id: "user";
|
|
1249
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1250
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1251
|
-
readonly indexes: readonly ["name"];
|
|
1252
|
-
readonly properties: {
|
|
1253
|
-
readonly name: {
|
|
1254
|
-
readonly type: "string";
|
|
1255
|
-
};
|
|
1256
|
-
readonly given_name: {
|
|
1257
|
-
readonly getter: (document: any) => string;
|
|
1258
|
-
};
|
|
1259
|
-
readonly family_name: {
|
|
1260
|
-
readonly getter: (document: any) => string;
|
|
1261
|
-
};
|
|
1262
|
-
readonly active: {
|
|
1263
|
-
readonly type: "boolean";
|
|
1264
|
-
};
|
|
1265
|
-
readonly roles: {
|
|
1266
|
-
readonly type: "array";
|
|
1267
|
-
readonly items: {
|
|
1268
|
-
readonly type: "string";
|
|
1269
|
-
};
|
|
1270
|
-
readonly uniqueItems: true;
|
|
1271
|
-
};
|
|
1272
|
-
readonly email: {
|
|
1273
|
-
readonly type: "string";
|
|
1274
|
-
readonly inputType: "email";
|
|
1275
|
-
readonly unique: true;
|
|
1276
|
-
};
|
|
1277
|
-
readonly password: {
|
|
1278
|
-
readonly type: "string";
|
|
1279
|
-
readonly inputType: "password";
|
|
1280
|
-
readonly hidden: true;
|
|
1281
|
-
};
|
|
1282
|
-
readonly phone_number: {
|
|
1283
|
-
readonly type: "string";
|
|
1284
|
-
readonly mask: "(##) #####-####";
|
|
1285
|
-
};
|
|
1286
|
-
readonly picture_file: {
|
|
1287
|
-
readonly $ref: "file";
|
|
1288
|
-
readonly accept: readonly ["image/*"];
|
|
1289
|
-
};
|
|
1290
|
-
readonly picture: {
|
|
1291
|
-
readonly getter: (value: any) => any;
|
|
1292
|
-
};
|
|
1293
|
-
readonly group: {
|
|
1294
|
-
readonly type: "string";
|
|
1295
|
-
};
|
|
1296
|
-
readonly self_registered: {
|
|
1297
|
-
readonly type: "boolean";
|
|
1298
|
-
readonly readOnly: true;
|
|
1299
|
-
};
|
|
1300
|
-
readonly updated_at: {
|
|
1301
|
-
readonly type: "string";
|
|
1302
|
-
readonly format: "date-time";
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1305
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1306
|
-
readonly layout: {
|
|
1307
|
-
readonly name: "grid";
|
|
1308
|
-
readonly options: {
|
|
1309
|
-
readonly title: "name";
|
|
1310
|
-
readonly badge: "roles";
|
|
1311
|
-
readonly picture: "picture_file";
|
|
1312
|
-
readonly information: "email";
|
|
1313
|
-
readonly active: "active";
|
|
1314
|
-
};
|
|
1315
|
-
};
|
|
1316
|
-
readonly individualActions: {
|
|
1317
|
-
readonly 'ui:spawnEdit': {
|
|
1318
|
-
readonly label: "action.edit";
|
|
1319
|
-
readonly icon: "pencil";
|
|
1320
|
-
readonly translate: true;
|
|
1321
|
-
};
|
|
1322
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1323
|
-
readonly label: "change_password";
|
|
1324
|
-
readonly icon: "key";
|
|
1325
|
-
readonly fetchItem: true;
|
|
1326
|
-
readonly translate: true;
|
|
1327
|
-
};
|
|
1328
|
-
readonly copyActivationLink: {
|
|
1329
|
-
readonly label: "copy_activation_link";
|
|
1330
|
-
readonly icon: "link";
|
|
1331
|
-
readonly translate: true;
|
|
1332
|
-
};
|
|
1333
|
-
};
|
|
1334
|
-
readonly icon: "users";
|
|
1335
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1336
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1337
|
-
readonly tableMeta: readonly ["email"];
|
|
1338
|
-
readonly formLayout: {
|
|
1339
|
-
readonly fields: {
|
|
1340
|
-
readonly given_name: {
|
|
1341
|
-
readonly span: 3;
|
|
1342
|
-
};
|
|
1343
|
-
readonly family_name: {
|
|
1344
|
-
readonly span: 3;
|
|
1345
|
-
};
|
|
1346
|
-
};
|
|
1347
|
-
};
|
|
1348
|
-
};
|
|
1349
|
-
functions: {
|
|
1350
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
|
|
1351
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<{
|
|
1352
|
-
readonly _tag: "Result";
|
|
1353
|
-
readonly error: undefined;
|
|
1354
|
-
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1355
|
-
}>;
|
|
1356
|
-
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1357
|
-
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
1358
|
-
} & {
|
|
1359
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1360
|
-
}> | {
|
|
1361
|
-
readonly _tag: "Result";
|
|
1362
|
-
readonly error: undefined;
|
|
1363
|
-
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description<any>>>, "_id">> | null;
|
|
1364
|
-
}>;
|
|
1365
|
-
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1366
|
-
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
1367
|
-
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
1368
|
-
} & {
|
|
1369
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
|
|
1370
|
-
}> | {
|
|
1371
|
-
readonly _tag: "Result";
|
|
1372
|
-
readonly error: undefined;
|
|
1373
|
-
readonly result: {
|
|
1374
|
-
readonly tempId: any;
|
|
1375
|
-
};
|
|
1376
|
-
}>;
|
|
1377
|
-
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
1378
|
-
readonly _tag: "Result";
|
|
1379
|
-
readonly error: undefined;
|
|
1380
|
-
readonly result: any;
|
|
1381
|
-
}>;
|
|
1382
|
-
readonly insert: (payload: {
|
|
1383
|
-
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
1384
|
-
readonly $id: "user";
|
|
1385
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1386
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1387
|
-
readonly indexes: readonly ["name"];
|
|
1388
|
-
readonly properties: {
|
|
1389
|
-
readonly name: {
|
|
1390
|
-
readonly type: "string";
|
|
1391
|
-
};
|
|
1392
|
-
readonly given_name: {
|
|
1393
|
-
readonly getter: (document: any) => string;
|
|
1394
|
-
};
|
|
1395
|
-
readonly family_name: {
|
|
1396
|
-
readonly getter: (document: any) => string;
|
|
1397
|
-
};
|
|
1398
|
-
readonly active: {
|
|
1399
|
-
readonly type: "boolean";
|
|
1400
|
-
};
|
|
1401
|
-
readonly roles: {
|
|
1402
|
-
readonly type: "array";
|
|
1403
|
-
readonly items: {
|
|
1404
|
-
readonly type: "string";
|
|
1405
|
-
};
|
|
1406
|
-
readonly uniqueItems: true;
|
|
1407
|
-
};
|
|
1408
|
-
readonly email: {
|
|
1409
|
-
readonly type: "string";
|
|
1410
|
-
readonly inputType: "email";
|
|
1411
|
-
readonly unique: true;
|
|
1412
|
-
};
|
|
1413
|
-
readonly password: {
|
|
1414
|
-
readonly type: "string";
|
|
1415
|
-
readonly inputType: "password";
|
|
1416
|
-
readonly hidden: true;
|
|
1417
|
-
};
|
|
1418
|
-
readonly phone_number: {
|
|
1419
|
-
readonly type: "string";
|
|
1420
|
-
readonly mask: "(##) #####-####";
|
|
1421
|
-
};
|
|
1422
|
-
readonly picture_file: {
|
|
1423
|
-
readonly $ref: "file";
|
|
1424
|
-
readonly accept: readonly ["image/*"];
|
|
1425
|
-
};
|
|
1426
|
-
readonly picture: {
|
|
1427
|
-
readonly getter: (value: any) => any;
|
|
1428
|
-
};
|
|
1429
|
-
readonly group: {
|
|
1430
|
-
readonly type: "string";
|
|
1431
|
-
};
|
|
1432
|
-
readonly self_registered: {
|
|
1433
|
-
readonly type: "boolean";
|
|
1434
|
-
readonly readOnly: true;
|
|
1435
|
-
};
|
|
1436
|
-
readonly updated_at: {
|
|
1437
|
-
readonly type: "string";
|
|
1438
|
-
readonly format: "date-time";
|
|
1439
|
-
};
|
|
1440
|
-
};
|
|
1441
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1442
|
-
readonly layout: {
|
|
1443
|
-
readonly name: "grid";
|
|
1444
|
-
readonly options: {
|
|
1445
|
-
readonly title: "name";
|
|
1446
|
-
readonly badge: "roles";
|
|
1447
|
-
readonly picture: "picture_file";
|
|
1448
|
-
readonly information: "email";
|
|
1449
|
-
readonly active: "active";
|
|
1450
|
-
};
|
|
1451
|
-
};
|
|
1452
|
-
readonly individualActions: {
|
|
1453
|
-
readonly 'ui:spawnEdit': {
|
|
1454
|
-
readonly label: "action.edit";
|
|
1455
|
-
readonly icon: "pencil";
|
|
1456
|
-
readonly translate: true;
|
|
1457
|
-
};
|
|
1458
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1459
|
-
readonly label: "change_password";
|
|
1460
|
-
readonly icon: "key";
|
|
1461
|
-
readonly fetchItem: true;
|
|
1462
|
-
readonly translate: true;
|
|
1463
|
-
};
|
|
1464
|
-
readonly copyActivationLink: {
|
|
1465
|
-
readonly label: "copy_activation_link";
|
|
1466
|
-
readonly icon: "link";
|
|
1467
|
-
readonly translate: true;
|
|
1468
|
-
};
|
|
1469
|
-
};
|
|
1470
|
-
readonly icon: "users";
|
|
1471
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1472
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1473
|
-
readonly tableMeta: readonly ["email"];
|
|
1474
|
-
readonly formLayout: {
|
|
1475
|
-
readonly fields: {
|
|
1476
|
-
readonly given_name: {
|
|
1477
|
-
readonly span: 3;
|
|
1478
|
-
};
|
|
1479
|
-
readonly family_name: {
|
|
1480
|
-
readonly span: 3;
|
|
1481
|
-
};
|
|
1482
|
-
};
|
|
1483
|
-
};
|
|
1484
|
-
}>>, "roles">;
|
|
1485
|
-
}, context: import("@aeriajs/types").Context<{
|
|
1486
|
-
readonly $id: "user";
|
|
1487
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1488
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1489
|
-
readonly indexes: readonly ["name"];
|
|
1490
|
-
readonly properties: {
|
|
1491
|
-
readonly name: {
|
|
1492
|
-
readonly type: "string";
|
|
1493
|
-
};
|
|
1494
|
-
readonly given_name: {
|
|
1495
|
-
readonly getter: (document: any) => string;
|
|
1496
|
-
};
|
|
1497
|
-
readonly family_name: {
|
|
1498
|
-
readonly getter: (document: any) => string;
|
|
1499
|
-
};
|
|
1500
|
-
readonly active: {
|
|
1501
|
-
readonly type: "boolean";
|
|
1502
|
-
};
|
|
1503
|
-
readonly roles: {
|
|
1504
|
-
readonly type: "array";
|
|
1505
|
-
readonly items: {
|
|
1506
|
-
readonly type: "string";
|
|
1507
|
-
};
|
|
1508
|
-
readonly uniqueItems: true;
|
|
1509
|
-
};
|
|
1510
|
-
readonly email: {
|
|
1511
|
-
readonly type: "string";
|
|
1512
|
-
readonly inputType: "email";
|
|
1513
|
-
readonly unique: true;
|
|
1514
|
-
};
|
|
1515
|
-
readonly password: {
|
|
1516
|
-
readonly type: "string";
|
|
1517
|
-
readonly inputType: "password";
|
|
1518
|
-
readonly hidden: true;
|
|
1519
|
-
};
|
|
1520
|
-
readonly phone_number: {
|
|
1521
|
-
readonly type: "string";
|
|
1522
|
-
readonly mask: "(##) #####-####";
|
|
1523
|
-
};
|
|
1524
|
-
readonly picture_file: {
|
|
1525
|
-
readonly $ref: "file";
|
|
1526
|
-
readonly accept: readonly ["image/*"];
|
|
1527
|
-
};
|
|
1528
|
-
readonly picture: {
|
|
1529
|
-
readonly getter: (value: any) => any;
|
|
1530
|
-
};
|
|
1531
|
-
readonly group: {
|
|
1532
|
-
readonly type: "string";
|
|
1533
|
-
};
|
|
1534
|
-
readonly self_registered: {
|
|
1535
|
-
readonly type: "boolean";
|
|
1536
|
-
readonly readOnly: true;
|
|
1537
|
-
};
|
|
1538
|
-
readonly updated_at: {
|
|
1539
|
-
readonly type: "string";
|
|
1540
|
-
readonly format: "date-time";
|
|
1541
|
-
};
|
|
1542
|
-
};
|
|
1543
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1544
|
-
readonly layout: {
|
|
1545
|
-
readonly name: "grid";
|
|
1546
|
-
readonly options: {
|
|
1547
|
-
readonly title: "name";
|
|
1548
|
-
readonly badge: "roles";
|
|
1549
|
-
readonly picture: "picture_file";
|
|
1550
|
-
readonly information: "email";
|
|
1551
|
-
readonly active: "active";
|
|
1552
|
-
};
|
|
1553
|
-
};
|
|
1554
|
-
readonly individualActions: {
|
|
1555
|
-
readonly 'ui:spawnEdit': {
|
|
1556
|
-
readonly label: "action.edit";
|
|
1557
|
-
readonly icon: "pencil";
|
|
1558
|
-
readonly translate: true;
|
|
1559
|
-
};
|
|
1560
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1561
|
-
readonly label: "change_password";
|
|
1562
|
-
readonly icon: "key";
|
|
1563
|
-
readonly fetchItem: true;
|
|
1564
|
-
readonly translate: true;
|
|
1565
|
-
};
|
|
1566
|
-
readonly copyActivationLink: {
|
|
1567
|
-
readonly label: "copy_activation_link";
|
|
1568
|
-
readonly icon: "link";
|
|
1569
|
-
readonly translate: true;
|
|
1570
|
-
};
|
|
1571
|
-
};
|
|
1572
|
-
readonly icon: "users";
|
|
1573
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1574
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1575
|
-
readonly tableMeta: readonly ["email"];
|
|
1576
|
-
readonly formLayout: {
|
|
1577
|
-
readonly fields: {
|
|
1578
|
-
readonly given_name: {
|
|
1579
|
-
readonly span: 3;
|
|
1580
|
-
};
|
|
1581
|
-
readonly family_name: {
|
|
1582
|
-
readonly span: 3;
|
|
1583
|
-
};
|
|
1584
|
-
};
|
|
1585
|
-
};
|
|
1586
|
-
}>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
1587
|
-
readonly $id: "user";
|
|
1588
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1589
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1590
|
-
readonly indexes: readonly ["name"];
|
|
1591
|
-
readonly properties: {
|
|
1592
|
-
readonly name: {
|
|
1593
|
-
readonly type: "string";
|
|
1594
|
-
};
|
|
1595
|
-
readonly given_name: {
|
|
1596
|
-
readonly getter: (document: any) => string;
|
|
1597
|
-
};
|
|
1598
|
-
readonly family_name: {
|
|
1599
|
-
readonly getter: (document: any) => string;
|
|
1600
|
-
};
|
|
1601
|
-
readonly active: {
|
|
1602
|
-
readonly type: "boolean";
|
|
1603
|
-
};
|
|
1604
|
-
readonly roles: {
|
|
1605
|
-
readonly type: "array";
|
|
1606
|
-
readonly items: {
|
|
1607
|
-
readonly type: "string";
|
|
1608
|
-
};
|
|
1609
|
-
readonly uniqueItems: true;
|
|
1610
|
-
};
|
|
1611
|
-
readonly email: {
|
|
1612
|
-
readonly type: "string";
|
|
1613
|
-
readonly inputType: "email";
|
|
1614
|
-
readonly unique: true;
|
|
1615
|
-
};
|
|
1616
|
-
readonly password: {
|
|
1617
|
-
readonly type: "string";
|
|
1618
|
-
readonly inputType: "password";
|
|
1619
|
-
readonly hidden: true;
|
|
1620
|
-
};
|
|
1621
|
-
readonly phone_number: {
|
|
1622
|
-
readonly type: "string";
|
|
1623
|
-
readonly mask: "(##) #####-####";
|
|
1624
|
-
};
|
|
1625
|
-
readonly picture_file: {
|
|
1626
|
-
readonly $ref: "file";
|
|
1627
|
-
readonly accept: readonly ["image/*"];
|
|
1628
|
-
};
|
|
1629
|
-
readonly picture: {
|
|
1630
|
-
readonly getter: (value: any) => any;
|
|
1631
|
-
};
|
|
1632
|
-
readonly group: {
|
|
1633
|
-
readonly type: "string";
|
|
1634
|
-
};
|
|
1635
|
-
readonly self_registered: {
|
|
1636
|
-
readonly type: "boolean";
|
|
1637
|
-
readonly readOnly: true;
|
|
1638
|
-
};
|
|
1639
|
-
readonly updated_at: {
|
|
1640
|
-
readonly type: "string";
|
|
1641
|
-
readonly format: "date-time";
|
|
1642
|
-
};
|
|
1643
|
-
};
|
|
1644
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1645
|
-
readonly layout: {
|
|
1646
|
-
readonly name: "grid";
|
|
1647
|
-
readonly options: {
|
|
1648
|
-
readonly title: "name";
|
|
1649
|
-
readonly badge: "roles";
|
|
1650
|
-
readonly picture: "picture_file";
|
|
1651
|
-
readonly information: "email";
|
|
1652
|
-
readonly active: "active";
|
|
1653
|
-
};
|
|
1654
|
-
};
|
|
1655
|
-
readonly individualActions: {
|
|
1656
|
-
readonly 'ui:spawnEdit': {
|
|
1657
|
-
readonly label: "action.edit";
|
|
1658
|
-
readonly icon: "pencil";
|
|
1659
|
-
readonly translate: true;
|
|
1660
|
-
};
|
|
1661
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1662
|
-
readonly label: "change_password";
|
|
1663
|
-
readonly icon: "key";
|
|
1664
|
-
readonly fetchItem: true;
|
|
1665
|
-
readonly translate: true;
|
|
1666
|
-
};
|
|
1667
|
-
readonly copyActivationLink: {
|
|
1668
|
-
readonly label: "copy_activation_link";
|
|
1669
|
-
readonly icon: "link";
|
|
1670
|
-
readonly translate: true;
|
|
1671
|
-
};
|
|
1672
|
-
};
|
|
1673
|
-
readonly icon: "users";
|
|
1674
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1675
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1676
|
-
readonly tableMeta: readonly ["email"];
|
|
1677
|
-
readonly formLayout: {
|
|
1678
|
-
readonly fields: {
|
|
1679
|
-
readonly given_name: {
|
|
1680
|
-
readonly span: 3;
|
|
1681
|
-
};
|
|
1682
|
-
readonly family_name: {
|
|
1683
|
-
readonly span: 3;
|
|
1684
|
-
};
|
|
1685
|
-
};
|
|
1686
|
-
};
|
|
1687
|
-
}>>>;
|
|
1688
|
-
readonly authenticate: (props: {
|
|
1689
|
-
email: string;
|
|
1690
|
-
password: string;
|
|
1691
|
-
} | {
|
|
1692
|
-
token?: import("@aeriajs/types").TokenRecipient | undefined;
|
|
1693
|
-
revalidate: true;
|
|
1694
|
-
}, context: import("@aeriajs/types").Context<{
|
|
1695
|
-
readonly $id: "user";
|
|
1696
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1697
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1698
|
-
readonly indexes: readonly ["name"];
|
|
1699
|
-
readonly properties: {
|
|
1700
|
-
readonly name: {
|
|
1701
|
-
readonly type: "string";
|
|
1702
|
-
};
|
|
1703
|
-
readonly given_name: {
|
|
1704
|
-
readonly getter: (document: any) => string;
|
|
1705
|
-
};
|
|
1706
|
-
readonly family_name: {
|
|
1707
|
-
readonly getter: (document: any) => string;
|
|
1708
|
-
};
|
|
1709
|
-
readonly active: {
|
|
1710
|
-
readonly type: "boolean";
|
|
1711
|
-
};
|
|
1712
|
-
readonly roles: {
|
|
1713
|
-
readonly type: "array";
|
|
1714
|
-
readonly items: {
|
|
1715
|
-
readonly type: "string";
|
|
1716
|
-
};
|
|
1717
|
-
readonly uniqueItems: true;
|
|
1718
|
-
};
|
|
1719
|
-
readonly email: {
|
|
1720
|
-
readonly type: "string";
|
|
1721
|
-
readonly inputType: "email";
|
|
1722
|
-
readonly unique: true;
|
|
1723
|
-
};
|
|
1724
|
-
readonly password: {
|
|
1725
|
-
readonly type: "string";
|
|
1726
|
-
readonly inputType: "password";
|
|
1727
|
-
readonly hidden: true;
|
|
1728
|
-
};
|
|
1729
|
-
readonly phone_number: {
|
|
1730
|
-
readonly type: "string";
|
|
1731
|
-
readonly mask: "(##) #####-####";
|
|
1732
|
-
};
|
|
1733
|
-
readonly picture_file: {
|
|
1734
|
-
readonly $ref: "file";
|
|
1735
|
-
readonly accept: readonly ["image/*"];
|
|
1736
|
-
};
|
|
1737
|
-
readonly picture: {
|
|
1738
|
-
readonly getter: (value: any) => any;
|
|
1739
|
-
};
|
|
1740
|
-
readonly group: {
|
|
1741
|
-
readonly type: "string";
|
|
1742
|
-
};
|
|
1743
|
-
readonly self_registered: {
|
|
1744
|
-
readonly type: "boolean";
|
|
1745
|
-
readonly readOnly: true;
|
|
1746
|
-
};
|
|
1747
|
-
readonly updated_at: {
|
|
1748
|
-
readonly type: "string";
|
|
1749
|
-
readonly format: "date-time";
|
|
1750
|
-
};
|
|
1751
|
-
};
|
|
1752
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1753
|
-
readonly layout: {
|
|
1754
|
-
readonly name: "grid";
|
|
1755
|
-
readonly options: {
|
|
1756
|
-
readonly title: "name";
|
|
1757
|
-
readonly badge: "roles";
|
|
1758
|
-
readonly picture: "picture_file";
|
|
1759
|
-
readonly information: "email";
|
|
1760
|
-
readonly active: "active";
|
|
1761
|
-
};
|
|
1762
|
-
};
|
|
1763
|
-
readonly individualActions: {
|
|
1764
|
-
readonly 'ui:spawnEdit': {
|
|
1765
|
-
readonly label: "action.edit";
|
|
1766
|
-
readonly icon: "pencil";
|
|
1767
|
-
readonly translate: true;
|
|
1768
|
-
};
|
|
1769
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1770
|
-
readonly label: "change_password";
|
|
1771
|
-
readonly icon: "key";
|
|
1772
|
-
readonly fetchItem: true;
|
|
1773
|
-
readonly translate: true;
|
|
1774
|
-
};
|
|
1775
|
-
readonly copyActivationLink: {
|
|
1776
|
-
readonly label: "copy_activation_link";
|
|
1777
|
-
readonly icon: "link";
|
|
1778
|
-
readonly translate: true;
|
|
1779
|
-
};
|
|
1780
|
-
};
|
|
1781
|
-
readonly icon: "users";
|
|
1782
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1783
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1784
|
-
readonly tableMeta: readonly ["email"];
|
|
1785
|
-
readonly formLayout: {
|
|
1786
|
-
readonly fields: {
|
|
1787
|
-
readonly given_name: {
|
|
1788
|
-
readonly span: 3;
|
|
1789
|
-
};
|
|
1790
|
-
readonly family_name: {
|
|
1791
|
-
readonly span: 3;
|
|
1792
|
-
};
|
|
1793
|
-
};
|
|
1794
|
-
};
|
|
1795
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1796
|
-
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
1797
|
-
} & {
|
|
1798
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
1799
|
-
}> | {
|
|
1800
|
-
readonly _tag: "Result";
|
|
1801
|
-
readonly error: undefined;
|
|
1802
|
-
readonly result: {
|
|
1803
|
-
user: Pick<import("@aeriajs/types").SchemaWithId<{
|
|
1804
|
-
readonly $id: "user";
|
|
1805
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1806
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1807
|
-
readonly indexes: readonly ["name"];
|
|
1808
|
-
readonly properties: {
|
|
1809
|
-
readonly name: {
|
|
1810
|
-
readonly type: "string";
|
|
1811
|
-
};
|
|
1812
|
-
readonly given_name: {
|
|
1813
|
-
readonly getter: (document: any) => string;
|
|
1814
|
-
};
|
|
1815
|
-
readonly family_name: {
|
|
1816
|
-
readonly getter: (document: any) => string;
|
|
1817
|
-
};
|
|
1818
|
-
readonly active: {
|
|
1819
|
-
readonly type: "boolean";
|
|
1820
|
-
};
|
|
1821
|
-
readonly roles: {
|
|
1822
|
-
readonly type: "array";
|
|
1823
|
-
readonly items: {
|
|
1824
|
-
readonly type: "string";
|
|
1825
|
-
};
|
|
1826
|
-
readonly uniqueItems: true;
|
|
1827
|
-
};
|
|
1828
|
-
readonly email: {
|
|
1829
|
-
readonly type: "string";
|
|
1830
|
-
readonly inputType: "email";
|
|
1831
|
-
readonly unique: true;
|
|
1832
|
-
};
|
|
1833
|
-
readonly password: {
|
|
1834
|
-
readonly type: "string";
|
|
1835
|
-
readonly inputType: "password";
|
|
1836
|
-
readonly hidden: true;
|
|
1837
|
-
};
|
|
1838
|
-
readonly phone_number: {
|
|
1839
|
-
readonly type: "string";
|
|
1840
|
-
readonly mask: "(##) #####-####";
|
|
1841
|
-
};
|
|
1842
|
-
readonly picture_file: {
|
|
1843
|
-
readonly $ref: "file";
|
|
1844
|
-
readonly accept: readonly ["image/*"];
|
|
1845
|
-
};
|
|
1846
|
-
readonly picture: {
|
|
1847
|
-
readonly getter: (value: any) => any;
|
|
1848
|
-
};
|
|
1849
|
-
readonly group: {
|
|
1850
|
-
readonly type: "string";
|
|
1851
|
-
};
|
|
1852
|
-
readonly self_registered: {
|
|
1853
|
-
readonly type: "boolean";
|
|
1854
|
-
readonly readOnly: true;
|
|
1855
|
-
};
|
|
1856
|
-
readonly updated_at: {
|
|
1857
|
-
readonly type: "string";
|
|
1858
|
-
readonly format: "date-time";
|
|
1859
|
-
};
|
|
1860
|
-
};
|
|
1861
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1862
|
-
readonly layout: {
|
|
1863
|
-
readonly name: "grid";
|
|
1864
|
-
readonly options: {
|
|
1865
|
-
readonly title: "name";
|
|
1866
|
-
readonly badge: "roles";
|
|
1867
|
-
readonly picture: "picture_file";
|
|
1868
|
-
readonly information: "email";
|
|
1869
|
-
readonly active: "active";
|
|
1870
|
-
};
|
|
1871
|
-
};
|
|
1872
|
-
readonly individualActions: {
|
|
1873
|
-
readonly 'ui:spawnEdit': {
|
|
1874
|
-
readonly label: "action.edit";
|
|
1875
|
-
readonly icon: "pencil";
|
|
1876
|
-
readonly translate: true;
|
|
1877
|
-
};
|
|
1878
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1879
|
-
readonly label: "change_password";
|
|
1880
|
-
readonly icon: "key";
|
|
1881
|
-
readonly fetchItem: true;
|
|
1882
|
-
readonly translate: true;
|
|
1883
|
-
};
|
|
1884
|
-
readonly copyActivationLink: {
|
|
1885
|
-
readonly label: "copy_activation_link";
|
|
1886
|
-
readonly icon: "link";
|
|
1887
|
-
readonly translate: true;
|
|
1888
|
-
};
|
|
1889
|
-
};
|
|
1890
|
-
readonly icon: "users";
|
|
1891
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1892
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1893
|
-
readonly tableMeta: readonly ["email"];
|
|
1894
|
-
readonly formLayout: {
|
|
1895
|
-
readonly fields: {
|
|
1896
|
-
readonly given_name: {
|
|
1897
|
-
readonly span: 3;
|
|
1898
|
-
};
|
|
1899
|
-
readonly family_name: {
|
|
1900
|
-
readonly span: 3;
|
|
1901
|
-
};
|
|
1902
|
-
};
|
|
1903
|
-
};
|
|
1904
|
-
}>, "name" | "roles" | "email" | "active"> & {
|
|
1905
|
-
_id: import("mongodb").ObjectId | null;
|
|
1906
|
-
};
|
|
1907
|
-
token: import("@aeriajs/types").TokenRecipient;
|
|
1908
|
-
} | {
|
|
1909
|
-
user: {
|
|
1910
|
-
_id: null;
|
|
1911
|
-
name: string;
|
|
1912
|
-
email: string;
|
|
1913
|
-
roles: string[];
|
|
1914
|
-
active: boolean;
|
|
1915
|
-
};
|
|
1916
|
-
token: {
|
|
1917
|
-
type: string;
|
|
1918
|
-
content: string;
|
|
1919
|
-
};
|
|
1920
|
-
};
|
|
1921
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
1922
|
-
readonly code: import("./collections/user/authenticate.js").AuthenticationError.InvalidCredentials;
|
|
1923
|
-
} & {
|
|
1924
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
1925
|
-
}> | import("@aeriajs/types").Result.Error<{
|
|
1926
|
-
readonly code: import("./collections/user/authenticate.js").AuthenticationError.InactiveUser;
|
|
1927
|
-
} & {
|
|
1928
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
1929
|
-
}>>;
|
|
1930
|
-
readonly activate: (payload: {
|
|
1931
|
-
password: string;
|
|
1932
|
-
}, context: import("@aeriajs/types").RouteContext<null> & import("@aeriajs/types").CollectionContext<{
|
|
1933
|
-
readonly $id: "user";
|
|
1934
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1935
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1936
|
-
readonly indexes: readonly ["name"];
|
|
1937
|
-
readonly properties: {
|
|
1938
|
-
readonly name: {
|
|
1939
|
-
readonly type: "string";
|
|
1940
|
-
};
|
|
1941
|
-
readonly given_name: {
|
|
1942
|
-
readonly getter: (document: any) => string;
|
|
1943
|
-
};
|
|
1944
|
-
readonly family_name: {
|
|
1945
|
-
readonly getter: (document: any) => string;
|
|
1946
|
-
};
|
|
1947
|
-
readonly active: {
|
|
1948
|
-
readonly type: "boolean";
|
|
1949
|
-
};
|
|
1950
|
-
readonly roles: {
|
|
1951
|
-
readonly type: "array";
|
|
1952
|
-
readonly items: {
|
|
1953
|
-
readonly type: "string";
|
|
1954
|
-
};
|
|
1955
|
-
readonly uniqueItems: true;
|
|
1956
|
-
};
|
|
1957
|
-
readonly email: {
|
|
1958
|
-
readonly type: "string";
|
|
1959
|
-
readonly inputType: "email";
|
|
1960
|
-
readonly unique: true;
|
|
1961
|
-
};
|
|
1962
|
-
readonly password: {
|
|
1963
|
-
readonly type: "string";
|
|
1964
|
-
readonly inputType: "password";
|
|
1965
|
-
readonly hidden: true;
|
|
1966
|
-
};
|
|
1967
|
-
readonly phone_number: {
|
|
1968
|
-
readonly type: "string";
|
|
1969
|
-
readonly mask: "(##) #####-####";
|
|
1970
|
-
};
|
|
1971
|
-
readonly picture_file: {
|
|
1972
|
-
readonly $ref: "file";
|
|
1973
|
-
readonly accept: readonly ["image/*"];
|
|
1974
|
-
};
|
|
1975
|
-
readonly picture: {
|
|
1976
|
-
readonly getter: (value: any) => any;
|
|
1977
|
-
};
|
|
1978
|
-
readonly group: {
|
|
1979
|
-
readonly type: "string";
|
|
1980
|
-
};
|
|
1981
|
-
readonly self_registered: {
|
|
1982
|
-
readonly type: "boolean";
|
|
1983
|
-
readonly readOnly: true;
|
|
1984
|
-
};
|
|
1985
|
-
readonly updated_at: {
|
|
1986
|
-
readonly type: "string";
|
|
1987
|
-
readonly format: "date-time";
|
|
1988
|
-
};
|
|
1989
|
-
};
|
|
1990
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1991
|
-
readonly layout: {
|
|
1992
|
-
readonly name: "grid";
|
|
1993
|
-
readonly options: {
|
|
1994
|
-
readonly title: "name";
|
|
1995
|
-
readonly badge: "roles";
|
|
1996
|
-
readonly picture: "picture_file";
|
|
1997
|
-
readonly information: "email";
|
|
1998
|
-
readonly active: "active";
|
|
1999
|
-
};
|
|
2000
|
-
};
|
|
2001
|
-
readonly individualActions: {
|
|
2002
|
-
readonly 'ui:spawnEdit': {
|
|
2003
|
-
readonly label: "action.edit";
|
|
2004
|
-
readonly icon: "pencil";
|
|
2005
|
-
readonly translate: true;
|
|
2006
|
-
};
|
|
2007
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2008
|
-
readonly label: "change_password";
|
|
2009
|
-
readonly icon: "key";
|
|
2010
|
-
readonly fetchItem: true;
|
|
2011
|
-
readonly translate: true;
|
|
2012
|
-
};
|
|
2013
|
-
readonly copyActivationLink: {
|
|
2014
|
-
readonly label: "copy_activation_link";
|
|
2015
|
-
readonly icon: "link";
|
|
2016
|
-
readonly translate: true;
|
|
2017
|
-
};
|
|
2018
|
-
};
|
|
2019
|
-
readonly icon: "users";
|
|
2020
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2021
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2022
|
-
readonly tableMeta: readonly ["email"];
|
|
2023
|
-
readonly formLayout: {
|
|
2024
|
-
readonly fields: {
|
|
2025
|
-
readonly given_name: {
|
|
2026
|
-
readonly span: 3;
|
|
2027
|
-
};
|
|
2028
|
-
readonly family_name: {
|
|
2029
|
-
readonly span: 3;
|
|
2030
|
-
};
|
|
2031
|
-
};
|
|
2032
|
-
};
|
|
2033
|
-
}, any> & {
|
|
2034
|
-
request: {
|
|
2035
|
-
query: {
|
|
2036
|
-
u?: string | undefined;
|
|
2037
|
-
t?: string | undefined;
|
|
2038
|
-
};
|
|
2039
|
-
payload: {
|
|
2040
|
-
password?: string | undefined;
|
|
2041
|
-
};
|
|
2042
|
-
};
|
|
2043
|
-
}) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
|
|
2044
|
-
readonly code: import("./collections/user/activate.js").ActivationError.InvalidLink;
|
|
2045
|
-
} & {
|
|
2046
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2047
|
-
}> | import("@aeriajs/types").Result.Error<{
|
|
2048
|
-
readonly code: import("./collections/user/activate.js").ActivationError.UserNotFound;
|
|
2049
|
-
} & {
|
|
2050
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2051
|
-
}> | import("@aeriajs/types").Result.Error<{
|
|
2052
|
-
readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
|
|
2053
|
-
} & {
|
|
2054
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
2055
|
-
}> | import("@aeriajs/types").Result.Error<{
|
|
2056
|
-
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
2057
|
-
} & {
|
|
2058
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.UnprocessableContent;
|
|
2059
|
-
}> | {
|
|
2060
|
-
readonly _tag: "Result";
|
|
2061
|
-
readonly error: undefined;
|
|
2062
|
-
readonly result: {
|
|
2063
|
-
readonly userId: any;
|
|
2064
|
-
};
|
|
2065
|
-
} | undefined>;
|
|
2066
|
-
readonly createAccount: (payload: Omit<Pick<{
|
|
2067
|
-
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
2068
|
-
readonly $id: "file";
|
|
2069
|
-
readonly owned: "always";
|
|
2070
|
-
readonly presets: readonly ["owned"];
|
|
2071
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
2072
|
-
readonly properties: {
|
|
2073
|
-
readonly type: {
|
|
2074
|
-
readonly type: "string";
|
|
2075
|
-
};
|
|
2076
|
-
readonly size: {
|
|
2077
|
-
readonly type: "number";
|
|
2078
|
-
};
|
|
2079
|
-
readonly last_modified: {
|
|
2080
|
-
readonly type: "string";
|
|
2081
|
-
readonly format: "date-time";
|
|
2082
|
-
};
|
|
2083
|
-
readonly name: {
|
|
2084
|
-
readonly type: "string";
|
|
2085
|
-
};
|
|
2086
|
-
readonly absolute_path: {
|
|
2087
|
-
readonly type: "string";
|
|
2088
|
-
};
|
|
2089
|
-
readonly relative_path: {
|
|
2090
|
-
readonly type: "string";
|
|
2091
|
-
};
|
|
2092
|
-
readonly immutable: {
|
|
2093
|
-
readonly type: "boolean";
|
|
2094
|
-
};
|
|
2095
|
-
readonly link: {
|
|
2096
|
-
readonly getter: (value: any) => Promise<string>;
|
|
2097
|
-
};
|
|
2098
|
-
readonly download_link: {
|
|
2099
|
-
readonly getter: (value: any) => Promise<string>;
|
|
2100
|
-
};
|
|
2101
|
-
};
|
|
2102
|
-
readonly actions: {
|
|
2103
|
-
readonly deleteAll: {
|
|
2104
|
-
readonly label: "Remover";
|
|
2105
|
-
readonly ask: true;
|
|
2106
|
-
readonly selection: true;
|
|
2107
|
-
};
|
|
2108
|
-
};
|
|
2109
|
-
readonly individualActions: {
|
|
2110
|
-
readonly remove: {
|
|
2111
|
-
readonly label: "Remover";
|
|
2112
|
-
readonly icon: "trash";
|
|
2113
|
-
readonly ask: true;
|
|
2114
|
-
};
|
|
2115
|
-
};
|
|
2116
|
-
}>;
|
|
2117
|
-
} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
2118
|
-
readonly name: {
|
|
2119
|
-
readonly type: "string";
|
|
2120
|
-
};
|
|
2121
|
-
readonly given_name: {
|
|
2122
|
-
readonly getter: (document: any) => string;
|
|
2123
|
-
};
|
|
2124
|
-
readonly family_name: {
|
|
2125
|
-
readonly getter: (document: any) => string;
|
|
2126
|
-
};
|
|
2127
|
-
readonly active: {
|
|
2128
|
-
readonly type: "boolean";
|
|
2129
|
-
};
|
|
2130
|
-
readonly roles: {
|
|
2131
|
-
readonly type: "array";
|
|
2132
|
-
readonly items: {
|
|
2133
|
-
readonly type: "string";
|
|
2134
|
-
};
|
|
2135
|
-
readonly uniqueItems: true;
|
|
2136
|
-
};
|
|
2137
|
-
readonly email: {
|
|
2138
|
-
readonly type: "string";
|
|
2139
|
-
readonly inputType: "email";
|
|
2140
|
-
readonly unique: true;
|
|
2141
|
-
};
|
|
2142
|
-
readonly password: {
|
|
2143
|
-
readonly type: "string";
|
|
2144
|
-
readonly inputType: "password";
|
|
2145
|
-
readonly hidden: true;
|
|
2146
|
-
};
|
|
2147
|
-
readonly phone_number: {
|
|
2148
|
-
readonly type: "string";
|
|
2149
|
-
readonly mask: "(##) #####-####";
|
|
2150
|
-
};
|
|
2151
|
-
readonly picture_file: {
|
|
2152
|
-
readonly $ref: "file";
|
|
2153
|
-
readonly accept: readonly ["image/*"];
|
|
2154
|
-
};
|
|
2155
|
-
readonly picture: {
|
|
2156
|
-
readonly getter: (value: any) => any;
|
|
2157
|
-
};
|
|
2158
|
-
readonly group: {
|
|
2159
|
-
readonly type: "string";
|
|
2160
|
-
};
|
|
2161
|
-
readonly self_registered: {
|
|
2162
|
-
readonly type: "boolean";
|
|
2163
|
-
readonly readOnly: true;
|
|
2164
|
-
};
|
|
2165
|
-
readonly updated_at: {
|
|
2166
|
-
readonly type: "string";
|
|
2167
|
-
readonly format: "date-time";
|
|
2168
|
-
};
|
|
2169
|
-
}>> & {
|
|
2170
|
-
name: string;
|
|
2171
|
-
password: string;
|
|
2172
|
-
updated_at: Date;
|
|
2173
|
-
roles: string[];
|
|
2174
|
-
email: string;
|
|
2175
|
-
active: boolean;
|
|
2176
|
-
phone_number: string;
|
|
2177
|
-
picture_file: never;
|
|
2178
|
-
given_name: string;
|
|
2179
|
-
family_name: string;
|
|
2180
|
-
picture: any;
|
|
2181
|
-
group: string;
|
|
2182
|
-
}, "picture_file">, "name" | "roles" | "email"> & Partial<{
|
|
2183
|
-
picture_file: import("@aeriajs/types").SchemaWithId<{
|
|
2184
|
-
readonly $id: "file";
|
|
2185
|
-
readonly owned: "always";
|
|
2186
|
-
readonly presets: readonly ["owned"];
|
|
2187
|
-
readonly indexes: readonly ["name", "link", "type"];
|
|
2188
|
-
readonly properties: {
|
|
2189
|
-
readonly type: {
|
|
2190
|
-
readonly type: "string";
|
|
2191
|
-
};
|
|
2192
|
-
readonly size: {
|
|
2193
|
-
readonly type: "number";
|
|
2194
|
-
};
|
|
2195
|
-
readonly last_modified: {
|
|
2196
|
-
readonly type: "string";
|
|
2197
|
-
readonly format: "date-time";
|
|
2198
|
-
};
|
|
2199
|
-
readonly name: {
|
|
2200
|
-
readonly type: "string";
|
|
2201
|
-
};
|
|
2202
|
-
readonly absolute_path: {
|
|
2203
|
-
readonly type: "string";
|
|
2204
|
-
};
|
|
2205
|
-
readonly relative_path: {
|
|
2206
|
-
readonly type: "string";
|
|
2207
|
-
};
|
|
2208
|
-
readonly immutable: {
|
|
2209
|
-
readonly type: "boolean";
|
|
2210
|
-
};
|
|
2211
|
-
readonly link: {
|
|
2212
|
-
readonly getter: (value: any) => Promise<string>;
|
|
2213
|
-
};
|
|
2214
|
-
readonly download_link: {
|
|
2215
|
-
readonly getter: (value: any) => Promise<string>;
|
|
2216
|
-
};
|
|
2217
|
-
};
|
|
2218
|
-
readonly actions: {
|
|
2219
|
-
readonly deleteAll: {
|
|
2220
|
-
readonly label: "Remover";
|
|
2221
|
-
readonly ask: true;
|
|
2222
|
-
readonly selection: true;
|
|
2223
|
-
};
|
|
2224
|
-
};
|
|
2225
|
-
readonly individualActions: {
|
|
2226
|
-
readonly remove: {
|
|
2227
|
-
readonly label: "Remover";
|
|
2228
|
-
readonly icon: "trash";
|
|
2229
|
-
readonly ask: true;
|
|
2230
|
-
};
|
|
2231
|
-
};
|
|
2232
|
-
}>;
|
|
2233
|
-
} & Omit<Readonly<import("@aeriajs/types").FilterReadonlyProperties<{
|
|
2234
|
-
readonly name: {
|
|
2235
|
-
readonly type: "string";
|
|
2236
|
-
};
|
|
2237
|
-
readonly given_name: {
|
|
2238
|
-
readonly getter: (document: any) => string;
|
|
2239
|
-
};
|
|
2240
|
-
readonly family_name: {
|
|
2241
|
-
readonly getter: (document: any) => string;
|
|
2242
|
-
};
|
|
2243
|
-
readonly active: {
|
|
2244
|
-
readonly type: "boolean";
|
|
2245
|
-
};
|
|
2246
|
-
readonly roles: {
|
|
2247
|
-
readonly type: "array";
|
|
2248
|
-
readonly items: {
|
|
2249
|
-
readonly type: "string";
|
|
2250
|
-
};
|
|
2251
|
-
readonly uniqueItems: true;
|
|
2252
|
-
};
|
|
2253
|
-
readonly email: {
|
|
2254
|
-
readonly type: "string";
|
|
2255
|
-
readonly inputType: "email";
|
|
2256
|
-
readonly unique: true;
|
|
2257
|
-
};
|
|
2258
|
-
readonly password: {
|
|
2259
|
-
readonly type: "string";
|
|
2260
|
-
readonly inputType: "password";
|
|
2261
|
-
readonly hidden: true;
|
|
2262
|
-
};
|
|
2263
|
-
readonly phone_number: {
|
|
2264
|
-
readonly type: "string";
|
|
2265
|
-
readonly mask: "(##) #####-####";
|
|
2266
|
-
};
|
|
2267
|
-
readonly picture_file: {
|
|
2268
|
-
readonly $ref: "file";
|
|
2269
|
-
readonly accept: readonly ["image/*"];
|
|
2270
|
-
};
|
|
2271
|
-
readonly picture: {
|
|
2272
|
-
readonly getter: (value: any) => any;
|
|
2273
|
-
};
|
|
2274
|
-
readonly group: {
|
|
2275
|
-
readonly type: "string";
|
|
2276
|
-
};
|
|
2277
|
-
readonly self_registered: {
|
|
2278
|
-
readonly type: "boolean";
|
|
2279
|
-
readonly readOnly: true;
|
|
2280
|
-
};
|
|
2281
|
-
readonly updated_at: {
|
|
2282
|
-
readonly type: "string";
|
|
2283
|
-
readonly format: "date-time";
|
|
2284
|
-
};
|
|
2285
|
-
}>> & {
|
|
2286
|
-
name: string;
|
|
2287
|
-
password: string;
|
|
2288
|
-
updated_at: Date;
|
|
2289
|
-
roles: string[];
|
|
2290
|
-
email: string;
|
|
2291
|
-
active: boolean;
|
|
2292
|
-
phone_number: string;
|
|
2293
|
-
picture_file: never;
|
|
2294
|
-
given_name: string;
|
|
2295
|
-
family_name: string;
|
|
2296
|
-
picture: any;
|
|
2297
|
-
group: string;
|
|
2298
|
-
}, "picture_file">> & {
|
|
2299
|
-
updated_at?: Date | undefined;
|
|
2300
|
-
created_at?: Date | undefined;
|
|
2301
|
-
}, "roles">, context: import("@aeriajs/types").Context<{
|
|
2302
|
-
readonly $id: "user";
|
|
2303
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
2304
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2305
|
-
readonly indexes: readonly ["name"];
|
|
2306
|
-
readonly properties: {
|
|
2307
|
-
readonly name: {
|
|
2308
|
-
readonly type: "string";
|
|
2309
|
-
};
|
|
2310
|
-
readonly given_name: {
|
|
2311
|
-
readonly getter: (document: any) => string;
|
|
2312
|
-
};
|
|
2313
|
-
readonly family_name: {
|
|
2314
|
-
readonly getter: (document: any) => string;
|
|
2315
|
-
};
|
|
2316
|
-
readonly active: {
|
|
2317
|
-
readonly type: "boolean";
|
|
2318
|
-
};
|
|
2319
|
-
readonly roles: {
|
|
2320
|
-
readonly type: "array";
|
|
2321
|
-
readonly items: {
|
|
2322
|
-
readonly type: "string";
|
|
2323
|
-
};
|
|
2324
|
-
readonly uniqueItems: true;
|
|
2325
|
-
};
|
|
2326
|
-
readonly email: {
|
|
2327
|
-
readonly type: "string";
|
|
2328
|
-
readonly inputType: "email";
|
|
2329
|
-
readonly unique: true;
|
|
2330
|
-
};
|
|
2331
|
-
readonly password: {
|
|
2332
|
-
readonly type: "string";
|
|
2333
|
-
readonly inputType: "password";
|
|
2334
|
-
readonly hidden: true;
|
|
2335
|
-
};
|
|
2336
|
-
readonly phone_number: {
|
|
2337
|
-
readonly type: "string";
|
|
2338
|
-
readonly mask: "(##) #####-####";
|
|
2339
|
-
};
|
|
2340
|
-
readonly picture_file: {
|
|
2341
|
-
readonly $ref: "file";
|
|
2342
|
-
readonly accept: readonly ["image/*"];
|
|
2343
|
-
};
|
|
2344
|
-
readonly picture: {
|
|
2345
|
-
readonly getter: (value: any) => any;
|
|
2346
|
-
};
|
|
2347
|
-
readonly group: {
|
|
2348
|
-
readonly type: "string";
|
|
2349
|
-
};
|
|
2350
|
-
readonly self_registered: {
|
|
2351
|
-
readonly type: "boolean";
|
|
2352
|
-
readonly readOnly: true;
|
|
2353
|
-
};
|
|
2354
|
-
readonly updated_at: {
|
|
2355
|
-
readonly type: "string";
|
|
2356
|
-
readonly format: "date-time";
|
|
2357
|
-
};
|
|
2358
|
-
};
|
|
2359
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2360
|
-
readonly layout: {
|
|
2361
|
-
readonly name: "grid";
|
|
2362
|
-
readonly options: {
|
|
2363
|
-
readonly title: "name";
|
|
2364
|
-
readonly badge: "roles";
|
|
2365
|
-
readonly picture: "picture_file";
|
|
2366
|
-
readonly information: "email";
|
|
2367
|
-
readonly active: "active";
|
|
2368
|
-
};
|
|
2369
|
-
};
|
|
2370
|
-
readonly individualActions: {
|
|
2371
|
-
readonly 'ui:spawnEdit': {
|
|
2372
|
-
readonly label: "action.edit";
|
|
2373
|
-
readonly icon: "pencil";
|
|
2374
|
-
readonly translate: true;
|
|
2375
|
-
};
|
|
2376
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2377
|
-
readonly label: "change_password";
|
|
2378
|
-
readonly icon: "key";
|
|
2379
|
-
readonly fetchItem: true;
|
|
2380
|
-
readonly translate: true;
|
|
2381
|
-
};
|
|
2382
|
-
readonly copyActivationLink: {
|
|
2383
|
-
readonly label: "copy_activation_link";
|
|
2384
|
-
readonly icon: "link";
|
|
2385
|
-
readonly translate: true;
|
|
2386
|
-
};
|
|
2387
|
-
};
|
|
2388
|
-
readonly icon: "users";
|
|
2389
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2390
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2391
|
-
readonly tableMeta: readonly ["email"];
|
|
2392
|
-
readonly formLayout: {
|
|
2393
|
-
readonly fields: {
|
|
2394
|
-
readonly given_name: {
|
|
2395
|
-
readonly span: 3;
|
|
2396
|
-
};
|
|
2397
|
-
readonly family_name: {
|
|
2398
|
-
readonly span: 3;
|
|
2399
|
-
};
|
|
2400
|
-
};
|
|
2401
|
-
};
|
|
2402
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
2403
|
-
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
2404
|
-
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
2405
|
-
} & {
|
|
2406
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
|
|
2407
|
-
}> | {
|
|
2408
|
-
readonly _tag: "Result";
|
|
2409
|
-
readonly error: undefined;
|
|
2410
|
-
readonly result: any;
|
|
2411
|
-
}>;
|
|
2412
|
-
readonly getInfo: (payload: {
|
|
2413
|
-
userId: string;
|
|
2414
|
-
token: string;
|
|
2415
|
-
}, context: import("@aeriajs/types").Context<{
|
|
2416
|
-
readonly $id: "user";
|
|
2417
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
2418
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2419
|
-
readonly indexes: readonly ["name"];
|
|
2420
|
-
readonly properties: {
|
|
2421
|
-
readonly name: {
|
|
2422
|
-
readonly type: "string";
|
|
2423
|
-
};
|
|
2424
|
-
readonly given_name: {
|
|
2425
|
-
readonly getter: (document: any) => string;
|
|
2426
|
-
};
|
|
2427
|
-
readonly family_name: {
|
|
2428
|
-
readonly getter: (document: any) => string;
|
|
2429
|
-
};
|
|
2430
|
-
readonly active: {
|
|
2431
|
-
readonly type: "boolean";
|
|
2432
|
-
};
|
|
2433
|
-
readonly roles: {
|
|
2434
|
-
readonly type: "array";
|
|
2435
|
-
readonly items: {
|
|
2436
|
-
readonly type: "string";
|
|
2437
|
-
};
|
|
2438
|
-
readonly uniqueItems: true;
|
|
2439
|
-
};
|
|
2440
|
-
readonly email: {
|
|
2441
|
-
readonly type: "string";
|
|
2442
|
-
readonly inputType: "email";
|
|
2443
|
-
readonly unique: true;
|
|
2444
|
-
};
|
|
2445
|
-
readonly password: {
|
|
2446
|
-
readonly type: "string";
|
|
2447
|
-
readonly inputType: "password";
|
|
2448
|
-
readonly hidden: true;
|
|
2449
|
-
};
|
|
2450
|
-
readonly phone_number: {
|
|
2451
|
-
readonly type: "string";
|
|
2452
|
-
readonly mask: "(##) #####-####";
|
|
2453
|
-
};
|
|
2454
|
-
readonly picture_file: {
|
|
2455
|
-
readonly $ref: "file";
|
|
2456
|
-
readonly accept: readonly ["image/*"];
|
|
2457
|
-
};
|
|
2458
|
-
readonly picture: {
|
|
2459
|
-
readonly getter: (value: any) => any;
|
|
2460
|
-
};
|
|
2461
|
-
readonly group: {
|
|
2462
|
-
readonly type: "string";
|
|
2463
|
-
};
|
|
2464
|
-
readonly self_registered: {
|
|
2465
|
-
readonly type: "boolean";
|
|
2466
|
-
readonly readOnly: true;
|
|
2467
|
-
};
|
|
2468
|
-
readonly updated_at: {
|
|
2469
|
-
readonly type: "string";
|
|
2470
|
-
readonly format: "date-time";
|
|
2471
|
-
};
|
|
2472
|
-
};
|
|
2473
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2474
|
-
readonly layout: {
|
|
2475
|
-
readonly name: "grid";
|
|
2476
|
-
readonly options: {
|
|
2477
|
-
readonly title: "name";
|
|
2478
|
-
readonly badge: "roles";
|
|
2479
|
-
readonly picture: "picture_file";
|
|
2480
|
-
readonly information: "email";
|
|
2481
|
-
readonly active: "active";
|
|
2482
|
-
};
|
|
2483
|
-
};
|
|
2484
|
-
readonly individualActions: {
|
|
2485
|
-
readonly 'ui:spawnEdit': {
|
|
2486
|
-
readonly label: "action.edit";
|
|
2487
|
-
readonly icon: "pencil";
|
|
2488
|
-
readonly translate: true;
|
|
2489
|
-
};
|
|
2490
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2491
|
-
readonly label: "change_password";
|
|
2492
|
-
readonly icon: "key";
|
|
2493
|
-
readonly fetchItem: true;
|
|
2494
|
-
readonly translate: true;
|
|
2495
|
-
};
|
|
2496
|
-
readonly copyActivationLink: {
|
|
2497
|
-
readonly label: "copy_activation_link";
|
|
2498
|
-
readonly icon: "link";
|
|
2499
|
-
readonly translate: true;
|
|
2500
|
-
};
|
|
2501
|
-
};
|
|
2502
|
-
readonly icon: "users";
|
|
2503
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2504
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2505
|
-
readonly tableMeta: readonly ["email"];
|
|
2506
|
-
readonly formLayout: {
|
|
2507
|
-
readonly fields: {
|
|
2508
|
-
readonly given_name: {
|
|
2509
|
-
readonly span: 3;
|
|
2510
|
-
};
|
|
2511
|
-
readonly family_name: {
|
|
2512
|
-
readonly span: 3;
|
|
2513
|
-
};
|
|
2514
|
-
};
|
|
2515
|
-
};
|
|
2516
|
-
}>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
2517
|
-
readonly code: import("./collections/user/getInfo.js").ActivationError.InvalidLink;
|
|
2518
|
-
} & {
|
|
2519
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2520
|
-
}> | import("@aeriajs/types").Result.Error<{
|
|
2521
|
-
readonly code: import("./collections/user/getInfo.js").ActivationError.UserNotFound;
|
|
2522
|
-
} & {
|
|
2523
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
2524
|
-
}> | import("@aeriajs/types").Result.Error<{
|
|
2525
|
-
readonly code: import("./collections/user/getInfo.js").ActivationError.AlreadyActiveUser;
|
|
2526
|
-
} & {
|
|
2527
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
2528
|
-
}> | {
|
|
2529
|
-
readonly _tag: "Result";
|
|
2530
|
-
readonly error: undefined;
|
|
2531
|
-
readonly result: {
|
|
2532
|
-
readonly name: any;
|
|
2533
|
-
readonly email: any;
|
|
2534
|
-
};
|
|
2535
|
-
}>;
|
|
2536
|
-
readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<{
|
|
2537
|
-
readonly $id: "user";
|
|
2538
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
2539
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2540
|
-
readonly indexes: readonly ["name"];
|
|
2541
|
-
readonly properties: {
|
|
2542
|
-
readonly name: {
|
|
2543
|
-
readonly type: "string";
|
|
2544
|
-
};
|
|
2545
|
-
readonly given_name: {
|
|
2546
|
-
readonly getter: (document: any) => string;
|
|
2547
|
-
};
|
|
2548
|
-
readonly family_name: {
|
|
2549
|
-
readonly getter: (document: any) => string;
|
|
2550
|
-
};
|
|
2551
|
-
readonly active: {
|
|
2552
|
-
readonly type: "boolean";
|
|
2553
|
-
};
|
|
2554
|
-
readonly roles: {
|
|
2555
|
-
readonly type: "array";
|
|
2556
|
-
readonly items: {
|
|
2557
|
-
readonly type: "string";
|
|
2558
|
-
};
|
|
2559
|
-
readonly uniqueItems: true;
|
|
2560
|
-
};
|
|
2561
|
-
readonly email: {
|
|
2562
|
-
readonly type: "string";
|
|
2563
|
-
readonly inputType: "email";
|
|
2564
|
-
readonly unique: true;
|
|
2565
|
-
};
|
|
2566
|
-
readonly password: {
|
|
2567
|
-
readonly type: "string";
|
|
2568
|
-
readonly inputType: "password";
|
|
2569
|
-
readonly hidden: true;
|
|
2570
|
-
};
|
|
2571
|
-
readonly phone_number: {
|
|
2572
|
-
readonly type: "string";
|
|
2573
|
-
readonly mask: "(##) #####-####";
|
|
2574
|
-
};
|
|
2575
|
-
readonly picture_file: {
|
|
2576
|
-
readonly $ref: "file";
|
|
2577
|
-
readonly accept: readonly ["image/*"];
|
|
2578
|
-
};
|
|
2579
|
-
readonly picture: {
|
|
2580
|
-
readonly getter: (value: any) => any;
|
|
2581
|
-
};
|
|
2582
|
-
readonly group: {
|
|
2583
|
-
readonly type: "string";
|
|
2584
|
-
};
|
|
2585
|
-
readonly self_registered: {
|
|
2586
|
-
readonly type: "boolean";
|
|
2587
|
-
readonly readOnly: true;
|
|
2588
|
-
};
|
|
2589
|
-
readonly updated_at: {
|
|
2590
|
-
readonly type: "string";
|
|
2591
|
-
readonly format: "date-time";
|
|
2592
|
-
};
|
|
2593
|
-
};
|
|
2594
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2595
|
-
readonly layout: {
|
|
2596
|
-
readonly name: "grid";
|
|
2597
|
-
readonly options: {
|
|
2598
|
-
readonly title: "name";
|
|
2599
|
-
readonly badge: "roles";
|
|
2600
|
-
readonly picture: "picture_file";
|
|
2601
|
-
readonly information: "email";
|
|
2602
|
-
readonly active: "active";
|
|
2603
|
-
};
|
|
2604
|
-
};
|
|
2605
|
-
readonly individualActions: {
|
|
2606
|
-
readonly 'ui:spawnEdit': {
|
|
2607
|
-
readonly label: "action.edit";
|
|
2608
|
-
readonly icon: "pencil";
|
|
2609
|
-
readonly translate: true;
|
|
2610
|
-
};
|
|
2611
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2612
|
-
readonly label: "change_password";
|
|
2613
|
-
readonly icon: "key";
|
|
2614
|
-
readonly fetchItem: true;
|
|
2615
|
-
readonly translate: true;
|
|
2616
|
-
};
|
|
2617
|
-
readonly copyActivationLink: {
|
|
2618
|
-
readonly label: "copy_activation_link";
|
|
2619
|
-
readonly icon: "link";
|
|
2620
|
-
readonly translate: true;
|
|
2621
|
-
};
|
|
2622
|
-
};
|
|
2623
|
-
readonly icon: "users";
|
|
2624
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2625
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2626
|
-
readonly tableMeta: readonly ["email"];
|
|
2627
|
-
readonly formLayout: {
|
|
2628
|
-
readonly fields: {
|
|
2629
|
-
readonly given_name: {
|
|
2630
|
-
readonly span: 3;
|
|
2631
|
-
};
|
|
2632
|
-
readonly family_name: {
|
|
2633
|
-
readonly span: 3;
|
|
2634
|
-
};
|
|
2635
|
-
};
|
|
2636
|
-
};
|
|
2637
|
-
}>) => Promise<{
|
|
2638
|
-
readonly _tag: "Result";
|
|
2639
|
-
readonly error: undefined;
|
|
2640
|
-
readonly result: import("@aeriajs/types").SchemaWithId<{
|
|
2641
|
-
readonly $id: "user";
|
|
2642
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
2643
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2644
|
-
readonly indexes: readonly ["name"];
|
|
2645
|
-
readonly properties: {
|
|
2646
|
-
readonly name: {
|
|
2647
|
-
readonly type: "string";
|
|
2648
|
-
};
|
|
2649
|
-
readonly given_name: {
|
|
2650
|
-
readonly getter: (document: any) => string;
|
|
2651
|
-
};
|
|
2652
|
-
readonly family_name: {
|
|
2653
|
-
readonly getter: (document: any) => string;
|
|
2654
|
-
};
|
|
2655
|
-
readonly active: {
|
|
2656
|
-
readonly type: "boolean";
|
|
2657
|
-
};
|
|
2658
|
-
readonly roles: {
|
|
2659
|
-
readonly type: "array";
|
|
2660
|
-
readonly items: {
|
|
2661
|
-
readonly type: "string";
|
|
2662
|
-
};
|
|
2663
|
-
readonly uniqueItems: true;
|
|
2664
|
-
};
|
|
2665
|
-
readonly email: {
|
|
2666
|
-
readonly type: "string";
|
|
2667
|
-
readonly inputType: "email";
|
|
2668
|
-
readonly unique: true;
|
|
2669
|
-
};
|
|
2670
|
-
readonly password: {
|
|
2671
|
-
readonly type: "string";
|
|
2672
|
-
readonly inputType: "password";
|
|
2673
|
-
readonly hidden: true;
|
|
2674
|
-
};
|
|
2675
|
-
readonly phone_number: {
|
|
2676
|
-
readonly type: "string";
|
|
2677
|
-
readonly mask: "(##) #####-####";
|
|
2678
|
-
};
|
|
2679
|
-
readonly picture_file: {
|
|
2680
|
-
readonly $ref: "file";
|
|
2681
|
-
readonly accept: readonly ["image/*"];
|
|
2682
|
-
};
|
|
2683
|
-
readonly picture: {
|
|
2684
|
-
readonly getter: (value: any) => any;
|
|
2685
|
-
};
|
|
2686
|
-
readonly group: {
|
|
2687
|
-
readonly type: "string";
|
|
2688
|
-
};
|
|
2689
|
-
readonly self_registered: {
|
|
2690
|
-
readonly type: "boolean";
|
|
2691
|
-
readonly readOnly: true;
|
|
2692
|
-
};
|
|
2693
|
-
readonly updated_at: {
|
|
2694
|
-
readonly type: "string";
|
|
2695
|
-
readonly format: "date-time";
|
|
2696
|
-
};
|
|
2697
|
-
};
|
|
2698
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2699
|
-
readonly layout: {
|
|
2700
|
-
readonly name: "grid";
|
|
2701
|
-
readonly options: {
|
|
2702
|
-
readonly title: "name";
|
|
2703
|
-
readonly badge: "roles";
|
|
2704
|
-
readonly picture: "picture_file";
|
|
2705
|
-
readonly information: "email";
|
|
2706
|
-
readonly active: "active";
|
|
2707
|
-
};
|
|
2708
|
-
};
|
|
2709
|
-
readonly individualActions: {
|
|
2710
|
-
readonly 'ui:spawnEdit': {
|
|
2711
|
-
readonly label: "action.edit";
|
|
2712
|
-
readonly icon: "pencil";
|
|
2713
|
-
readonly translate: true;
|
|
2714
|
-
};
|
|
2715
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2716
|
-
readonly label: "change_password";
|
|
2717
|
-
readonly icon: "key";
|
|
2718
|
-
readonly fetchItem: true;
|
|
2719
|
-
readonly translate: true;
|
|
2720
|
-
};
|
|
2721
|
-
readonly copyActivationLink: {
|
|
2722
|
-
readonly label: "copy_activation_link";
|
|
2723
|
-
readonly icon: "link";
|
|
2724
|
-
readonly translate: true;
|
|
2725
|
-
};
|
|
2726
|
-
};
|
|
2727
|
-
readonly icon: "users";
|
|
2728
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2729
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2730
|
-
readonly tableMeta: readonly ["email"];
|
|
2731
|
-
readonly formLayout: {
|
|
2732
|
-
readonly fields: {
|
|
2733
|
-
readonly given_name: {
|
|
2734
|
-
readonly span: 3;
|
|
2735
|
-
};
|
|
2736
|
-
readonly family_name: {
|
|
2737
|
-
readonly span: 3;
|
|
2738
|
-
};
|
|
2739
|
-
};
|
|
2740
|
-
};
|
|
2741
|
-
}>;
|
|
2742
|
-
}>;
|
|
2743
|
-
readonly getActivationLink: (payload: {
|
|
2744
|
-
userId: string | import("mongodb").ObjectId;
|
|
2745
|
-
}, context: import("@aeriajs/types").Context) => Promise<{
|
|
2746
|
-
readonly _tag: "Error";
|
|
2747
|
-
readonly error: import("@aeriajs/types").StrictEndpointError<import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
2748
|
-
readonly result: undefined;
|
|
2749
|
-
} | import("@aeriajs/types").Result.Error<{
|
|
2750
|
-
readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
|
|
2751
|
-
} & {
|
|
2752
|
-
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
2753
|
-
}> | {
|
|
473
|
+
readonly 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<any>>;
|
|
474
|
+
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions) => Promise<{
|
|
2754
475
|
readonly _tag: "Result";
|
|
2755
476
|
readonly error: undefined;
|
|
2756
|
-
readonly result:
|
|
2757
|
-
readonly url: string;
|
|
2758
|
-
};
|
|
477
|
+
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
2759
478
|
}>;
|
|
479
|
+
readonly 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>>>;
|
|
2760
480
|
};
|
|
2761
|
-
|
|
2762
|
-
readonly
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
};
|
|
2766
|
-
};
|
|
481
|
+
exposedFunctions: {
|
|
482
|
+
readonly get: true;
|
|
483
|
+
readonly getAll: true;
|
|
484
|
+
readonly insert: true;
|
|
2767
485
|
};
|
|
2768
|
-
|
|
2769
|
-
} & {
|
|
486
|
+
}>, "description" | "functions" | "item" | "exposedFunctions" | "security"> & {
|
|
2770
487
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
2771
|
-
readonly $id: "
|
|
2772
|
-
readonly
|
|
2773
|
-
readonly
|
|
2774
|
-
readonly indexes: readonly ["name"];
|
|
488
|
+
readonly $id: "log";
|
|
489
|
+
readonly icon: "magnifying-glass";
|
|
490
|
+
readonly required: readonly ["context", "message"];
|
|
2775
491
|
readonly properties: {
|
|
2776
|
-
readonly
|
|
2777
|
-
readonly
|
|
2778
|
-
|
|
2779
|
-
readonly given_name: {
|
|
2780
|
-
readonly getter: (document: any) => string;
|
|
2781
|
-
};
|
|
2782
|
-
readonly family_name: {
|
|
2783
|
-
readonly getter: (document: any) => string;
|
|
2784
|
-
};
|
|
2785
|
-
readonly active: {
|
|
2786
|
-
readonly type: "boolean";
|
|
2787
|
-
};
|
|
2788
|
-
readonly roles: {
|
|
2789
|
-
readonly type: "array";
|
|
2790
|
-
readonly items: {
|
|
2791
|
-
readonly type: "string";
|
|
2792
|
-
};
|
|
2793
|
-
readonly uniqueItems: true;
|
|
2794
|
-
};
|
|
2795
|
-
readonly email: {
|
|
2796
|
-
readonly type: "string";
|
|
2797
|
-
readonly inputType: "email";
|
|
2798
|
-
readonly unique: true;
|
|
2799
|
-
};
|
|
2800
|
-
readonly password: {
|
|
2801
|
-
readonly type: "string";
|
|
2802
|
-
readonly inputType: "password";
|
|
2803
|
-
readonly hidden: true;
|
|
492
|
+
readonly owner: {
|
|
493
|
+
readonly $ref: "user";
|
|
494
|
+
readonly noForm: true;
|
|
2804
495
|
};
|
|
2805
|
-
readonly
|
|
496
|
+
readonly context: {
|
|
2806
497
|
readonly type: "string";
|
|
2807
|
-
readonly mask: "(##) #####-####";
|
|
2808
|
-
};
|
|
2809
|
-
readonly picture_file: {
|
|
2810
|
-
readonly $ref: "file";
|
|
2811
|
-
readonly accept: readonly ["image/*"];
|
|
2812
498
|
};
|
|
2813
|
-
readonly
|
|
2814
|
-
readonly getter: (value: any) => any;
|
|
2815
|
-
};
|
|
2816
|
-
readonly group: {
|
|
499
|
+
readonly message: {
|
|
2817
500
|
readonly type: "string";
|
|
2818
501
|
};
|
|
2819
|
-
readonly
|
|
2820
|
-
readonly type: "
|
|
2821
|
-
readonly
|
|
502
|
+
readonly details: {
|
|
503
|
+
readonly type: "object";
|
|
504
|
+
readonly variable: true;
|
|
2822
505
|
};
|
|
2823
|
-
readonly
|
|
506
|
+
readonly created_at: {
|
|
2824
507
|
readonly type: "string";
|
|
2825
508
|
readonly format: "date-time";
|
|
2826
509
|
};
|
|
2827
510
|
};
|
|
2828
|
-
readonly presets: readonly ["
|
|
2829
|
-
readonly
|
|
2830
|
-
readonly name: "grid";
|
|
2831
|
-
readonly options: {
|
|
2832
|
-
readonly title: "name";
|
|
2833
|
-
readonly badge: "roles";
|
|
2834
|
-
readonly picture: "picture_file";
|
|
2835
|
-
readonly information: "email";
|
|
2836
|
-
readonly active: "active";
|
|
2837
|
-
};
|
|
2838
|
-
};
|
|
2839
|
-
readonly individualActions: {
|
|
2840
|
-
readonly 'ui:spawnEdit': {
|
|
2841
|
-
readonly label: "action.edit";
|
|
2842
|
-
readonly icon: "pencil";
|
|
2843
|
-
readonly translate: true;
|
|
2844
|
-
};
|
|
2845
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2846
|
-
readonly label: "change_password";
|
|
2847
|
-
readonly icon: "key";
|
|
2848
|
-
readonly fetchItem: true;
|
|
2849
|
-
readonly translate: true;
|
|
2850
|
-
};
|
|
2851
|
-
readonly copyActivationLink: {
|
|
2852
|
-
readonly label: "copy_activation_link";
|
|
2853
|
-
readonly icon: "link";
|
|
2854
|
-
readonly translate: true;
|
|
2855
|
-
};
|
|
2856
|
-
};
|
|
2857
|
-
readonly icon: "users";
|
|
2858
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2859
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2860
|
-
readonly tableMeta: readonly ["email"];
|
|
2861
|
-
readonly formLayout: {
|
|
2862
|
-
readonly fields: {
|
|
2863
|
-
readonly given_name: {
|
|
2864
|
-
readonly span: 3;
|
|
2865
|
-
};
|
|
2866
|
-
readonly family_name: {
|
|
2867
|
-
readonly span: 3;
|
|
2868
|
-
};
|
|
2869
|
-
};
|
|
2870
|
-
};
|
|
511
|
+
readonly presets: readonly ["view"];
|
|
512
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
2871
513
|
}>;
|
|
2872
514
|
description: {
|
|
2873
|
-
readonly $id: "
|
|
2874
|
-
readonly
|
|
2875
|
-
readonly
|
|
2876
|
-
readonly indexes: readonly ["name"];
|
|
515
|
+
readonly $id: "log";
|
|
516
|
+
readonly icon: "magnifying-glass";
|
|
517
|
+
readonly required: readonly ["context", "message"];
|
|
2877
518
|
readonly properties: {
|
|
2878
|
-
readonly
|
|
2879
|
-
readonly
|
|
2880
|
-
|
|
2881
|
-
readonly given_name: {
|
|
2882
|
-
readonly getter: (document: any) => string;
|
|
2883
|
-
};
|
|
2884
|
-
readonly family_name: {
|
|
2885
|
-
readonly getter: (document: any) => string;
|
|
2886
|
-
};
|
|
2887
|
-
readonly active: {
|
|
2888
|
-
readonly type: "boolean";
|
|
2889
|
-
};
|
|
2890
|
-
readonly roles: {
|
|
2891
|
-
readonly type: "array";
|
|
2892
|
-
readonly items: {
|
|
2893
|
-
readonly type: "string";
|
|
2894
|
-
};
|
|
2895
|
-
readonly uniqueItems: true;
|
|
2896
|
-
};
|
|
2897
|
-
readonly email: {
|
|
2898
|
-
readonly type: "string";
|
|
2899
|
-
readonly inputType: "email";
|
|
2900
|
-
readonly unique: true;
|
|
2901
|
-
};
|
|
2902
|
-
readonly password: {
|
|
2903
|
-
readonly type: "string";
|
|
2904
|
-
readonly inputType: "password";
|
|
2905
|
-
readonly hidden: true;
|
|
2906
|
-
};
|
|
2907
|
-
readonly phone_number: {
|
|
2908
|
-
readonly type: "string";
|
|
2909
|
-
readonly mask: "(##) #####-####";
|
|
2910
|
-
};
|
|
2911
|
-
readonly picture_file: {
|
|
2912
|
-
readonly $ref: "file";
|
|
2913
|
-
readonly accept: readonly ["image/*"];
|
|
2914
|
-
};
|
|
2915
|
-
readonly picture: {
|
|
2916
|
-
readonly getter: (value: any) => any;
|
|
519
|
+
readonly owner: {
|
|
520
|
+
readonly $ref: "user";
|
|
521
|
+
readonly noForm: true;
|
|
2917
522
|
};
|
|
2918
|
-
readonly
|
|
523
|
+
readonly context: {
|
|
2919
524
|
readonly type: "string";
|
|
2920
525
|
};
|
|
2921
|
-
readonly
|
|
2922
|
-
readonly type: "boolean";
|
|
2923
|
-
readonly readOnly: true;
|
|
2924
|
-
};
|
|
2925
|
-
readonly updated_at: {
|
|
526
|
+
readonly message: {
|
|
2926
527
|
readonly type: "string";
|
|
2927
|
-
readonly format: "date-time";
|
|
2928
|
-
};
|
|
2929
|
-
};
|
|
2930
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2931
|
-
readonly layout: {
|
|
2932
|
-
readonly name: "grid";
|
|
2933
|
-
readonly options: {
|
|
2934
|
-
readonly title: "name";
|
|
2935
|
-
readonly badge: "roles";
|
|
2936
|
-
readonly picture: "picture_file";
|
|
2937
|
-
readonly information: "email";
|
|
2938
|
-
readonly active: "active";
|
|
2939
|
-
};
|
|
2940
|
-
};
|
|
2941
|
-
readonly individualActions: {
|
|
2942
|
-
readonly 'ui:spawnEdit': {
|
|
2943
|
-
readonly label: "action.edit";
|
|
2944
|
-
readonly icon: "pencil";
|
|
2945
|
-
readonly translate: true;
|
|
2946
|
-
};
|
|
2947
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2948
|
-
readonly label: "change_password";
|
|
2949
|
-
readonly icon: "key";
|
|
2950
|
-
readonly fetchItem: true;
|
|
2951
|
-
readonly translate: true;
|
|
2952
528
|
};
|
|
2953
|
-
readonly
|
|
2954
|
-
readonly
|
|
2955
|
-
readonly
|
|
2956
|
-
readonly translate: true;
|
|
529
|
+
readonly details: {
|
|
530
|
+
readonly type: "object";
|
|
531
|
+
readonly variable: true;
|
|
2957
532
|
};
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2962
|
-
readonly tableMeta: readonly ["email"];
|
|
2963
|
-
readonly formLayout: {
|
|
2964
|
-
readonly fields: {
|
|
2965
|
-
readonly given_name: {
|
|
2966
|
-
readonly span: 3;
|
|
2967
|
-
};
|
|
2968
|
-
readonly family_name: {
|
|
2969
|
-
readonly span: 3;
|
|
2970
|
-
};
|
|
533
|
+
readonly created_at: {
|
|
534
|
+
readonly type: "string";
|
|
535
|
+
readonly format: "date-time";
|
|
2971
536
|
};
|
|
2972
537
|
};
|
|
538
|
+
readonly presets: readonly ["view"];
|
|
539
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
2973
540
|
};
|
|
2974
541
|
functions: {
|
|
2975
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions
|
|
2976
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions
|
|
542
|
+
readonly 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<any>>;
|
|
543
|
+
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions) => Promise<{
|
|
2977
544
|
readonly _tag: "Result";
|
|
2978
545
|
readonly error: undefined;
|
|
2979
546
|
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
2980
547
|
}>;
|
|
2981
|
-
readonly
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
readonly error: undefined;
|
|
2998
|
-
readonly result: {
|
|
2999
|
-
readonly tempId: any;
|
|
548
|
+
readonly 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>>>;
|
|
549
|
+
};
|
|
550
|
+
contracts: {
|
|
551
|
+
readonly get?: import("@aeriajs/types").Contract | undefined;
|
|
552
|
+
readonly getAll?: import("@aeriajs/types").Contract | undefined;
|
|
553
|
+
readonly insert?: import("@aeriajs/types").Contract | undefined;
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
resourceUsage: Omit<import("@aeriajs/types").Collection<{
|
|
557
|
+
description: {
|
|
558
|
+
readonly $id: "resourceUsage";
|
|
559
|
+
readonly icon: "wrench";
|
|
560
|
+
readonly required: readonly ["usage"];
|
|
561
|
+
readonly properties: {
|
|
562
|
+
readonly user: {
|
|
563
|
+
readonly $ref: "user";
|
|
3000
564
|
};
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
readonly
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
3012
|
-
readonly indexes: readonly ["name"];
|
|
3013
|
-
readonly properties: {
|
|
3014
|
-
readonly name: {
|
|
3015
|
-
readonly type: "string";
|
|
3016
|
-
};
|
|
3017
|
-
readonly given_name: {
|
|
3018
|
-
readonly getter: (document: any) => string;
|
|
3019
|
-
};
|
|
3020
|
-
readonly family_name: {
|
|
3021
|
-
readonly getter: (document: any) => string;
|
|
3022
|
-
};
|
|
3023
|
-
readonly active: {
|
|
3024
|
-
readonly type: "boolean";
|
|
3025
|
-
};
|
|
3026
|
-
readonly roles: {
|
|
3027
|
-
readonly type: "array";
|
|
3028
|
-
readonly items: {
|
|
3029
|
-
readonly type: "string";
|
|
3030
|
-
};
|
|
3031
|
-
readonly uniqueItems: true;
|
|
3032
|
-
};
|
|
3033
|
-
readonly email: {
|
|
3034
|
-
readonly type: "string";
|
|
3035
|
-
readonly inputType: "email";
|
|
3036
|
-
readonly unique: true;
|
|
3037
|
-
};
|
|
3038
|
-
readonly password: {
|
|
3039
|
-
readonly type: "string";
|
|
3040
|
-
readonly inputType: "password";
|
|
3041
|
-
readonly hidden: true;
|
|
3042
|
-
};
|
|
3043
|
-
readonly phone_number: {
|
|
3044
|
-
readonly type: "string";
|
|
3045
|
-
readonly mask: "(##) #####-####";
|
|
3046
|
-
};
|
|
3047
|
-
readonly picture_file: {
|
|
3048
|
-
readonly $ref: "file";
|
|
3049
|
-
readonly accept: readonly ["image/*"];
|
|
3050
|
-
};
|
|
3051
|
-
readonly picture: {
|
|
3052
|
-
readonly getter: (value: any) => any;
|
|
3053
|
-
};
|
|
3054
|
-
readonly group: {
|
|
3055
|
-
readonly type: "string";
|
|
3056
|
-
};
|
|
3057
|
-
readonly self_registered: {
|
|
3058
|
-
readonly type: "boolean";
|
|
3059
|
-
readonly readOnly: true;
|
|
3060
|
-
};
|
|
3061
|
-
readonly updated_at: {
|
|
3062
|
-
readonly type: "string";
|
|
3063
|
-
readonly format: "date-time";
|
|
3064
|
-
};
|
|
3065
|
-
};
|
|
3066
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
3067
|
-
readonly layout: {
|
|
3068
|
-
readonly name: "grid";
|
|
3069
|
-
readonly options: {
|
|
3070
|
-
readonly title: "name";
|
|
3071
|
-
readonly badge: "roles";
|
|
3072
|
-
readonly picture: "picture_file";
|
|
3073
|
-
readonly information: "email";
|
|
3074
|
-
readonly active: "active";
|
|
3075
|
-
};
|
|
3076
|
-
};
|
|
3077
|
-
readonly individualActions: {
|
|
3078
|
-
readonly 'ui:spawnEdit': {
|
|
3079
|
-
readonly label: "action.edit";
|
|
3080
|
-
readonly icon: "pencil";
|
|
3081
|
-
readonly translate: true;
|
|
3082
|
-
};
|
|
3083
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
3084
|
-
readonly label: "change_password";
|
|
3085
|
-
readonly icon: "key";
|
|
3086
|
-
readonly fetchItem: true;
|
|
3087
|
-
readonly translate: true;
|
|
3088
|
-
};
|
|
3089
|
-
readonly copyActivationLink: {
|
|
3090
|
-
readonly label: "copy_activation_link";
|
|
3091
|
-
readonly icon: "link";
|
|
3092
|
-
readonly translate: true;
|
|
3093
|
-
};
|
|
3094
|
-
};
|
|
3095
|
-
readonly icon: "users";
|
|
3096
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
3097
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
3098
|
-
readonly tableMeta: readonly ["email"];
|
|
3099
|
-
readonly formLayout: {
|
|
3100
|
-
readonly fields: {
|
|
3101
|
-
readonly given_name: {
|
|
3102
|
-
readonly span: 3;
|
|
565
|
+
readonly address: {
|
|
566
|
+
readonly type: "string";
|
|
567
|
+
};
|
|
568
|
+
readonly usage: {
|
|
569
|
+
readonly type: "object";
|
|
570
|
+
readonly additionalProperties: {
|
|
571
|
+
readonly type: "object";
|
|
572
|
+
readonly properties: {
|
|
573
|
+
readonly hits: {
|
|
574
|
+
readonly type: "integer";
|
|
3103
575
|
};
|
|
3104
|
-
readonly
|
|
3105
|
-
readonly
|
|
576
|
+
readonly points: {
|
|
577
|
+
readonly type: "integer";
|
|
3106
578
|
};
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
readonly name: {
|
|
3117
|
-
readonly type: "string";
|
|
3118
|
-
};
|
|
3119
|
-
readonly given_name: {
|
|
3120
|
-
readonly getter: (document: any) => string;
|
|
3121
|
-
};
|
|
3122
|
-
readonly family_name: {
|
|
3123
|
-
readonly getter: (document: any) => string;
|
|
3124
|
-
};
|
|
3125
|
-
readonly active: {
|
|
3126
|
-
readonly type: "boolean";
|
|
3127
|
-
};
|
|
3128
|
-
readonly roles: {
|
|
3129
|
-
readonly type: "array";
|
|
3130
|
-
readonly items: {
|
|
3131
|
-
readonly type: "string";
|
|
3132
|
-
};
|
|
3133
|
-
readonly uniqueItems: true;
|
|
3134
|
-
};
|
|
3135
|
-
readonly email: {
|
|
3136
|
-
readonly type: "string";
|
|
3137
|
-
readonly inputType: "email";
|
|
3138
|
-
readonly unique: true;
|
|
3139
|
-
};
|
|
3140
|
-
readonly password: {
|
|
3141
|
-
readonly type: "string";
|
|
3142
|
-
readonly inputType: "password";
|
|
3143
|
-
readonly hidden: true;
|
|
3144
|
-
};
|
|
3145
|
-
readonly phone_number: {
|
|
3146
|
-
readonly type: "string";
|
|
3147
|
-
readonly mask: "(##) #####-####";
|
|
3148
|
-
};
|
|
3149
|
-
readonly picture_file: {
|
|
3150
|
-
readonly $ref: "file";
|
|
3151
|
-
readonly accept: readonly ["image/*"];
|
|
3152
|
-
};
|
|
3153
|
-
readonly picture: {
|
|
3154
|
-
readonly getter: (value: any) => any;
|
|
3155
|
-
};
|
|
3156
|
-
readonly group: {
|
|
3157
|
-
readonly type: "string";
|
|
3158
|
-
};
|
|
3159
|
-
readonly self_registered: {
|
|
3160
|
-
readonly type: "boolean";
|
|
3161
|
-
readonly readOnly: true;
|
|
3162
|
-
};
|
|
3163
|
-
readonly updated_at: {
|
|
3164
|
-
readonly type: "string";
|
|
3165
|
-
readonly format: "date-time";
|
|
3166
|
-
};
|
|
3167
|
-
};
|
|
3168
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
3169
|
-
readonly layout: {
|
|
3170
|
-
readonly name: "grid";
|
|
3171
|
-
readonly options: {
|
|
3172
|
-
readonly title: "name";
|
|
3173
|
-
readonly badge: "roles";
|
|
3174
|
-
readonly picture: "picture_file";
|
|
3175
|
-
readonly information: "email";
|
|
3176
|
-
readonly active: "active";
|
|
3177
|
-
};
|
|
3178
|
-
};
|
|
3179
|
-
readonly individualActions: {
|
|
3180
|
-
readonly 'ui:spawnEdit': {
|
|
3181
|
-
readonly label: "action.edit";
|
|
3182
|
-
readonly icon: "pencil";
|
|
3183
|
-
readonly translate: true;
|
|
3184
|
-
};
|
|
3185
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
3186
|
-
readonly label: "change_password";
|
|
3187
|
-
readonly icon: "key";
|
|
3188
|
-
readonly fetchItem: true;
|
|
3189
|
-
readonly translate: true;
|
|
3190
|
-
};
|
|
3191
|
-
readonly copyActivationLink: {
|
|
3192
|
-
readonly label: "copy_activation_link";
|
|
3193
|
-
readonly icon: "link";
|
|
3194
|
-
readonly translate: true;
|
|
579
|
+
readonly last_reach: {
|
|
580
|
+
readonly type: "string";
|
|
581
|
+
readonly format: "date-time";
|
|
582
|
+
};
|
|
583
|
+
readonly last_maximum_reach: {
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
readonly format: "date-time";
|
|
586
|
+
};
|
|
587
|
+
};
|
|
3195
588
|
};
|
|
3196
589
|
};
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
}>, "description" | "functions" | "item" | "exposedFunctions" | "security"> & {
|
|
593
|
+
item: import("@aeriajs/types").SchemaWithId<{
|
|
594
|
+
readonly $id: "resourceUsage";
|
|
595
|
+
readonly icon: "wrench";
|
|
596
|
+
readonly required: readonly ["usage"];
|
|
597
|
+
readonly properties: {
|
|
598
|
+
readonly user: {
|
|
599
|
+
readonly $ref: "user";
|
|
600
|
+
};
|
|
601
|
+
readonly address: {
|
|
602
|
+
readonly type: "string";
|
|
603
|
+
};
|
|
604
|
+
readonly usage: {
|
|
605
|
+
readonly type: "object";
|
|
606
|
+
readonly additionalProperties: {
|
|
607
|
+
readonly type: "object";
|
|
608
|
+
readonly properties: {
|
|
609
|
+
readonly hits: {
|
|
610
|
+
readonly type: "integer";
|
|
611
|
+
};
|
|
612
|
+
readonly points: {
|
|
613
|
+
readonly type: "integer";
|
|
614
|
+
};
|
|
615
|
+
readonly last_reach: {
|
|
616
|
+
readonly type: "string";
|
|
617
|
+
readonly format: "date-time";
|
|
618
|
+
};
|
|
619
|
+
readonly last_maximum_reach: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
readonly format: "date-time";
|
|
622
|
+
};
|
|
3208
623
|
};
|
|
3209
624
|
};
|
|
3210
625
|
};
|
|
3211
|
-
}
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
readonly
|
|
3227
|
-
readonly type: "
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
readonly
|
|
626
|
+
};
|
|
627
|
+
}>;
|
|
628
|
+
description: {
|
|
629
|
+
readonly $id: "resourceUsage";
|
|
630
|
+
readonly icon: "wrench";
|
|
631
|
+
readonly required: readonly ["usage"];
|
|
632
|
+
readonly properties: {
|
|
633
|
+
readonly user: {
|
|
634
|
+
readonly $ref: "user";
|
|
635
|
+
};
|
|
636
|
+
readonly address: {
|
|
637
|
+
readonly type: "string";
|
|
638
|
+
};
|
|
639
|
+
readonly usage: {
|
|
640
|
+
readonly type: "object";
|
|
641
|
+
readonly additionalProperties: {
|
|
642
|
+
readonly type: "object";
|
|
643
|
+
readonly properties: {
|
|
644
|
+
readonly hits: {
|
|
645
|
+
readonly type: "integer";
|
|
646
|
+
};
|
|
647
|
+
readonly points: {
|
|
648
|
+
readonly type: "integer";
|
|
649
|
+
};
|
|
650
|
+
readonly last_reach: {
|
|
651
|
+
readonly type: "string";
|
|
652
|
+
readonly format: "date-time";
|
|
653
|
+
};
|
|
654
|
+
readonly last_maximum_reach: {
|
|
655
|
+
readonly type: "string";
|
|
656
|
+
readonly format: "date-time";
|
|
657
|
+
};
|
|
3233
658
|
};
|
|
3234
|
-
readonly uniqueItems: true;
|
|
3235
|
-
};
|
|
3236
|
-
readonly email: {
|
|
3237
|
-
readonly type: "string";
|
|
3238
|
-
readonly inputType: "email";
|
|
3239
|
-
readonly unique: true;
|
|
3240
|
-
};
|
|
3241
|
-
readonly password: {
|
|
3242
|
-
readonly type: "string";
|
|
3243
|
-
readonly inputType: "password";
|
|
3244
|
-
readonly hidden: true;
|
|
3245
|
-
};
|
|
3246
|
-
readonly phone_number: {
|
|
3247
|
-
readonly type: "string";
|
|
3248
|
-
readonly mask: "(##) #####-####";
|
|
3249
|
-
};
|
|
3250
|
-
readonly picture_file: {
|
|
3251
|
-
readonly $ref: "file";
|
|
3252
|
-
readonly accept: readonly ["image/*"];
|
|
3253
|
-
};
|
|
3254
|
-
readonly picture: {
|
|
3255
|
-
readonly getter: (value: any) => any;
|
|
3256
|
-
};
|
|
3257
|
-
readonly group: {
|
|
3258
|
-
readonly type: "string";
|
|
3259
|
-
};
|
|
3260
|
-
readonly self_registered: {
|
|
3261
|
-
readonly type: "boolean";
|
|
3262
|
-
readonly readOnly: true;
|
|
3263
659
|
};
|
|
3264
|
-
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
functions: Record<string, (payload: any, context: import("@aeriajs/types").StrictContext<any>) => any> & {};
|
|
664
|
+
contracts: {
|
|
665
|
+
[x: string]: import("@aeriajs/types").Contract | undefined;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
user: {
|
|
669
|
+
description: {
|
|
670
|
+
readonly $id: "user";
|
|
671
|
+
readonly icon: "users";
|
|
672
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
673
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
674
|
+
readonly indexes: readonly ["name"];
|
|
675
|
+
readonly properties: {
|
|
676
|
+
readonly name: {
|
|
677
|
+
readonly type: "string";
|
|
678
|
+
};
|
|
679
|
+
readonly given_name: {
|
|
680
|
+
readonly getter: (document: any) => string;
|
|
681
|
+
};
|
|
682
|
+
readonly family_name: {
|
|
683
|
+
readonly getter: (document: any) => string;
|
|
684
|
+
};
|
|
685
|
+
readonly active: {
|
|
686
|
+
readonly type: "boolean";
|
|
687
|
+
};
|
|
688
|
+
readonly roles: {
|
|
689
|
+
readonly type: "array";
|
|
690
|
+
readonly items: {
|
|
3265
691
|
readonly type: "string";
|
|
3266
|
-
readonly format: "date-time";
|
|
3267
692
|
};
|
|
693
|
+
readonly uniqueItems: true;
|
|
3268
694
|
};
|
|
3269
|
-
readonly
|
|
3270
|
-
|
|
3271
|
-
readonly
|
|
3272
|
-
readonly
|
|
3273
|
-
readonly title: "name";
|
|
3274
|
-
readonly badge: "roles";
|
|
3275
|
-
readonly picture: "picture_file";
|
|
3276
|
-
readonly information: "email";
|
|
3277
|
-
readonly active: "active";
|
|
3278
|
-
};
|
|
695
|
+
readonly email: {
|
|
696
|
+
readonly type: "string";
|
|
697
|
+
readonly inputType: "email";
|
|
698
|
+
readonly unique: true;
|
|
3279
699
|
};
|
|
3280
|
-
readonly
|
|
3281
|
-
readonly
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
readonly
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
700
|
+
readonly password: {
|
|
701
|
+
readonly type: "string";
|
|
702
|
+
readonly inputType: "password";
|
|
703
|
+
readonly hidden: true;
|
|
704
|
+
};
|
|
705
|
+
readonly phone_number: {
|
|
706
|
+
readonly type: "string";
|
|
707
|
+
readonly mask: "(##) #####-####";
|
|
708
|
+
};
|
|
709
|
+
readonly picture_file: {
|
|
710
|
+
readonly $ref: "file";
|
|
711
|
+
readonly accept: readonly ["image/*"];
|
|
712
|
+
};
|
|
713
|
+
readonly picture: {
|
|
714
|
+
readonly getter: (value: any) => any;
|
|
715
|
+
};
|
|
716
|
+
readonly group: {
|
|
717
|
+
readonly type: "string";
|
|
718
|
+
};
|
|
719
|
+
readonly self_registered: {
|
|
720
|
+
readonly type: "boolean";
|
|
721
|
+
readonly readOnly: true;
|
|
722
|
+
};
|
|
723
|
+
readonly updated_at: {
|
|
724
|
+
readonly type: "string";
|
|
725
|
+
readonly format: "date-time";
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
729
|
+
readonly layout: {
|
|
730
|
+
readonly name: "grid";
|
|
731
|
+
readonly options: {
|
|
732
|
+
readonly title: "name";
|
|
733
|
+
readonly badge: "roles";
|
|
734
|
+
readonly picture: "picture_file";
|
|
735
|
+
readonly information: "email";
|
|
736
|
+
readonly active: "active";
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
readonly individualActions: {
|
|
740
|
+
readonly 'ui:spawnEdit': {
|
|
741
|
+
readonly label: "action.edit";
|
|
742
|
+
readonly icon: "pencil";
|
|
743
|
+
readonly translate: true;
|
|
744
|
+
};
|
|
745
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
746
|
+
readonly label: "change_password";
|
|
747
|
+
readonly icon: "key";
|
|
748
|
+
readonly fetchItem: true;
|
|
749
|
+
readonly translate: true;
|
|
750
|
+
};
|
|
751
|
+
readonly copyActivationLink: {
|
|
752
|
+
readonly label: "copy_activation_link";
|
|
753
|
+
readonly icon: "link";
|
|
754
|
+
readonly translate: true;
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
758
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
759
|
+
readonly tableMeta: readonly ["email"];
|
|
760
|
+
readonly formLayout: {
|
|
761
|
+
readonly fields: {
|
|
762
|
+
readonly given_name: {
|
|
763
|
+
readonly span: 3;
|
|
3296
764
|
};
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
3300
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
3301
|
-
readonly tableMeta: readonly ["email"];
|
|
3302
|
-
readonly formLayout: {
|
|
3303
|
-
readonly fields: {
|
|
3304
|
-
readonly given_name: {
|
|
3305
|
-
readonly span: 3;
|
|
3306
|
-
};
|
|
3307
|
-
readonly family_name: {
|
|
3308
|
-
readonly span: 3;
|
|
3309
|
-
};
|
|
765
|
+
readonly family_name: {
|
|
766
|
+
readonly span: 3;
|
|
3310
767
|
};
|
|
3311
768
|
};
|
|
3312
|
-
}
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
functions: {
|
|
772
|
+
readonly 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<any>>;
|
|
773
|
+
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions) => Promise<{
|
|
774
|
+
readonly _tag: "Result";
|
|
775
|
+
readonly error: undefined;
|
|
776
|
+
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
777
|
+
}>;
|
|
778
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
779
|
+
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
780
|
+
} & {
|
|
781
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
782
|
+
}> | {
|
|
783
|
+
readonly _tag: "Result";
|
|
784
|
+
readonly error: undefined;
|
|
785
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
786
|
+
}>;
|
|
787
|
+
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
788
|
+
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
789
|
+
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
790
|
+
} & {
|
|
791
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
|
|
792
|
+
}> | {
|
|
793
|
+
readonly _tag: "Result";
|
|
794
|
+
readonly error: undefined;
|
|
795
|
+
readonly result: {
|
|
796
|
+
readonly tempId: any;
|
|
797
|
+
};
|
|
798
|
+
}>;
|
|
799
|
+
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
800
|
+
readonly _tag: "Result";
|
|
801
|
+
readonly error: undefined;
|
|
802
|
+
readonly result: any;
|
|
803
|
+
}>;
|
|
804
|
+
readonly insert: (payload: {
|
|
805
|
+
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<typeof import("./collections/user/description.js").description>>, "roles">;
|
|
806
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
3320
807
|
readonly $id: "user";
|
|
808
|
+
readonly icon: "users";
|
|
3321
809
|
readonly required: readonly ["name", "roles", "email"];
|
|
3322
810
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
3323
811
|
readonly indexes: readonly ["name"];
|
|
@@ -3403,7 +891,6 @@ export declare const collections: {
|
|
|
3403
891
|
readonly translate: true;
|
|
3404
892
|
};
|
|
3405
893
|
};
|
|
3406
|
-
readonly icon: "users";
|
|
3407
894
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
3408
895
|
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
3409
896
|
readonly tableMeta: readonly ["email"];
|
|
@@ -3417,7 +904,14 @@ export declare const collections: {
|
|
|
3417
904
|
};
|
|
3418
905
|
};
|
|
3419
906
|
};
|
|
3420
|
-
}
|
|
907
|
+
}>>>;
|
|
908
|
+
readonly authenticate: (props: {
|
|
909
|
+
email: string;
|
|
910
|
+
password: string;
|
|
911
|
+
} | {
|
|
912
|
+
token?: import("@aeriajs/types").TokenRecipient;
|
|
913
|
+
revalidate: true;
|
|
914
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
3421
915
|
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
3422
916
|
} & {
|
|
3423
917
|
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
@@ -3425,108 +919,7 @@ export declare const collections: {
|
|
|
3425
919
|
readonly _tag: "Result";
|
|
3426
920
|
readonly error: undefined;
|
|
3427
921
|
readonly result: {
|
|
3428
|
-
user: Pick<import("@aeriajs/types").SchemaWithId<{
|
|
3429
|
-
readonly $id: "user";
|
|
3430
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
3431
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
3432
|
-
readonly indexes: readonly ["name"];
|
|
3433
|
-
readonly properties: {
|
|
3434
|
-
readonly name: {
|
|
3435
|
-
readonly type: "string";
|
|
3436
|
-
};
|
|
3437
|
-
readonly given_name: {
|
|
3438
|
-
readonly getter: (document: any) => string;
|
|
3439
|
-
};
|
|
3440
|
-
readonly family_name: {
|
|
3441
|
-
readonly getter: (document: any) => string;
|
|
3442
|
-
};
|
|
3443
|
-
readonly active: {
|
|
3444
|
-
readonly type: "boolean";
|
|
3445
|
-
};
|
|
3446
|
-
readonly roles: {
|
|
3447
|
-
readonly type: "array";
|
|
3448
|
-
readonly items: {
|
|
3449
|
-
readonly type: "string";
|
|
3450
|
-
};
|
|
3451
|
-
readonly uniqueItems: true;
|
|
3452
|
-
};
|
|
3453
|
-
readonly email: {
|
|
3454
|
-
readonly type: "string";
|
|
3455
|
-
readonly inputType: "email";
|
|
3456
|
-
readonly unique: true;
|
|
3457
|
-
};
|
|
3458
|
-
readonly password: {
|
|
3459
|
-
readonly type: "string";
|
|
3460
|
-
readonly inputType: "password";
|
|
3461
|
-
readonly hidden: true;
|
|
3462
|
-
};
|
|
3463
|
-
readonly phone_number: {
|
|
3464
|
-
readonly type: "string";
|
|
3465
|
-
readonly mask: "(##) #####-####";
|
|
3466
|
-
};
|
|
3467
|
-
readonly picture_file: {
|
|
3468
|
-
readonly $ref: "file";
|
|
3469
|
-
readonly accept: readonly ["image/*"];
|
|
3470
|
-
};
|
|
3471
|
-
readonly picture: {
|
|
3472
|
-
readonly getter: (value: any) => any;
|
|
3473
|
-
};
|
|
3474
|
-
readonly group: {
|
|
3475
|
-
readonly type: "string";
|
|
3476
|
-
};
|
|
3477
|
-
readonly self_registered: {
|
|
3478
|
-
readonly type: "boolean";
|
|
3479
|
-
readonly readOnly: true;
|
|
3480
|
-
};
|
|
3481
|
-
readonly updated_at: {
|
|
3482
|
-
readonly type: "string";
|
|
3483
|
-
readonly format: "date-time";
|
|
3484
|
-
};
|
|
3485
|
-
};
|
|
3486
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
3487
|
-
readonly layout: {
|
|
3488
|
-
readonly name: "grid";
|
|
3489
|
-
readonly options: {
|
|
3490
|
-
readonly title: "name";
|
|
3491
|
-
readonly badge: "roles";
|
|
3492
|
-
readonly picture: "picture_file";
|
|
3493
|
-
readonly information: "email";
|
|
3494
|
-
readonly active: "active";
|
|
3495
|
-
};
|
|
3496
|
-
};
|
|
3497
|
-
readonly individualActions: {
|
|
3498
|
-
readonly 'ui:spawnEdit': {
|
|
3499
|
-
readonly label: "action.edit";
|
|
3500
|
-
readonly icon: "pencil";
|
|
3501
|
-
readonly translate: true;
|
|
3502
|
-
};
|
|
3503
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
3504
|
-
readonly label: "change_password";
|
|
3505
|
-
readonly icon: "key";
|
|
3506
|
-
readonly fetchItem: true;
|
|
3507
|
-
readonly translate: true;
|
|
3508
|
-
};
|
|
3509
|
-
readonly copyActivationLink: {
|
|
3510
|
-
readonly label: "copy_activation_link";
|
|
3511
|
-
readonly icon: "link";
|
|
3512
|
-
readonly translate: true;
|
|
3513
|
-
};
|
|
3514
|
-
};
|
|
3515
|
-
readonly icon: "users";
|
|
3516
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
3517
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
3518
|
-
readonly tableMeta: readonly ["email"];
|
|
3519
|
-
readonly formLayout: {
|
|
3520
|
-
readonly fields: {
|
|
3521
|
-
readonly given_name: {
|
|
3522
|
-
readonly span: 3;
|
|
3523
|
-
};
|
|
3524
|
-
readonly family_name: {
|
|
3525
|
-
readonly span: 3;
|
|
3526
|
-
};
|
|
3527
|
-
};
|
|
3528
|
-
};
|
|
3529
|
-
}>, "name" | "roles" | "email" | "active"> & {
|
|
922
|
+
user: Pick<import("@aeriajs/types").SchemaWithId<typeof import("./collections/user/description.js").description>, "name" | "email" | "roles" | "active"> & {
|
|
3530
923
|
_id: import("mongodb").ObjectId | null;
|
|
3531
924
|
};
|
|
3532
925
|
token: import("@aeriajs/types").TokenRecipient;
|
|
@@ -3554,115 +947,14 @@ export declare const collections: {
|
|
|
3554
947
|
}>>;
|
|
3555
948
|
readonly activate: (payload: {
|
|
3556
949
|
password: string;
|
|
3557
|
-
}, context: import("@aeriajs/types").
|
|
3558
|
-
readonly $id: "user";
|
|
3559
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
3560
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
3561
|
-
readonly indexes: readonly ["name"];
|
|
3562
|
-
readonly properties: {
|
|
3563
|
-
readonly name: {
|
|
3564
|
-
readonly type: "string";
|
|
3565
|
-
};
|
|
3566
|
-
readonly given_name: {
|
|
3567
|
-
readonly getter: (document: any) => string;
|
|
3568
|
-
};
|
|
3569
|
-
readonly family_name: {
|
|
3570
|
-
readonly getter: (document: any) => string;
|
|
3571
|
-
};
|
|
3572
|
-
readonly active: {
|
|
3573
|
-
readonly type: "boolean";
|
|
3574
|
-
};
|
|
3575
|
-
readonly roles: {
|
|
3576
|
-
readonly type: "array";
|
|
3577
|
-
readonly items: {
|
|
3578
|
-
readonly type: "string";
|
|
3579
|
-
};
|
|
3580
|
-
readonly uniqueItems: true;
|
|
3581
|
-
};
|
|
3582
|
-
readonly email: {
|
|
3583
|
-
readonly type: "string";
|
|
3584
|
-
readonly inputType: "email";
|
|
3585
|
-
readonly unique: true;
|
|
3586
|
-
};
|
|
3587
|
-
readonly password: {
|
|
3588
|
-
readonly type: "string";
|
|
3589
|
-
readonly inputType: "password";
|
|
3590
|
-
readonly hidden: true;
|
|
3591
|
-
};
|
|
3592
|
-
readonly phone_number: {
|
|
3593
|
-
readonly type: "string";
|
|
3594
|
-
readonly mask: "(##) #####-####";
|
|
3595
|
-
};
|
|
3596
|
-
readonly picture_file: {
|
|
3597
|
-
readonly $ref: "file";
|
|
3598
|
-
readonly accept: readonly ["image/*"];
|
|
3599
|
-
};
|
|
3600
|
-
readonly picture: {
|
|
3601
|
-
readonly getter: (value: any) => any;
|
|
3602
|
-
};
|
|
3603
|
-
readonly group: {
|
|
3604
|
-
readonly type: "string";
|
|
3605
|
-
};
|
|
3606
|
-
readonly self_registered: {
|
|
3607
|
-
readonly type: "boolean";
|
|
3608
|
-
readonly readOnly: true;
|
|
3609
|
-
};
|
|
3610
|
-
readonly updated_at: {
|
|
3611
|
-
readonly type: "string";
|
|
3612
|
-
readonly format: "date-time";
|
|
3613
|
-
};
|
|
3614
|
-
};
|
|
3615
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
3616
|
-
readonly layout: {
|
|
3617
|
-
readonly name: "grid";
|
|
3618
|
-
readonly options: {
|
|
3619
|
-
readonly title: "name";
|
|
3620
|
-
readonly badge: "roles";
|
|
3621
|
-
readonly picture: "picture_file";
|
|
3622
|
-
readonly information: "email";
|
|
3623
|
-
readonly active: "active";
|
|
3624
|
-
};
|
|
3625
|
-
};
|
|
3626
|
-
readonly individualActions: {
|
|
3627
|
-
readonly 'ui:spawnEdit': {
|
|
3628
|
-
readonly label: "action.edit";
|
|
3629
|
-
readonly icon: "pencil";
|
|
3630
|
-
readonly translate: true;
|
|
3631
|
-
};
|
|
3632
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
3633
|
-
readonly label: "change_password";
|
|
3634
|
-
readonly icon: "key";
|
|
3635
|
-
readonly fetchItem: true;
|
|
3636
|
-
readonly translate: true;
|
|
3637
|
-
};
|
|
3638
|
-
readonly copyActivationLink: {
|
|
3639
|
-
readonly label: "copy_activation_link";
|
|
3640
|
-
readonly icon: "link";
|
|
3641
|
-
readonly translate: true;
|
|
3642
|
-
};
|
|
3643
|
-
};
|
|
3644
|
-
readonly icon: "users";
|
|
3645
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
3646
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
3647
|
-
readonly tableMeta: readonly ["email"];
|
|
3648
|
-
readonly formLayout: {
|
|
3649
|
-
readonly fields: {
|
|
3650
|
-
readonly given_name: {
|
|
3651
|
-
readonly span: 3;
|
|
3652
|
-
};
|
|
3653
|
-
readonly family_name: {
|
|
3654
|
-
readonly span: 3;
|
|
3655
|
-
};
|
|
3656
|
-
};
|
|
3657
|
-
};
|
|
3658
|
-
}, any> & {
|
|
950
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description> & {
|
|
3659
951
|
request: {
|
|
3660
952
|
query: {
|
|
3661
|
-
u?: string
|
|
3662
|
-
t?: string
|
|
953
|
+
u?: string;
|
|
954
|
+
t?: string;
|
|
3663
955
|
};
|
|
3664
956
|
payload: {
|
|
3665
|
-
password?: string
|
|
957
|
+
password?: string;
|
|
3666
958
|
};
|
|
3667
959
|
};
|
|
3668
960
|
}) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
|
|
@@ -3688,58 +980,179 @@ export declare const collections: {
|
|
|
3688
980
|
readonly userId: any;
|
|
3689
981
|
};
|
|
3690
982
|
} | undefined>;
|
|
3691
|
-
readonly createAccount: (payload: Omit<
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
983
|
+
readonly createAccount: (payload: Omit<import("@aeriajs/types").Schema<typeof import("./collections/user/description.js").description>, "roles">, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
984
|
+
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
985
|
+
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
986
|
+
} & {
|
|
987
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
|
|
988
|
+
}> | {
|
|
989
|
+
readonly _tag: "Result";
|
|
990
|
+
readonly error: undefined;
|
|
991
|
+
readonly result: any;
|
|
992
|
+
}>;
|
|
993
|
+
readonly getInfo: (payload: {
|
|
994
|
+
userId: string;
|
|
995
|
+
token: string;
|
|
996
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
997
|
+
readonly code: import("./collections/user/getInfo.js").ActivationError.InvalidLink;
|
|
998
|
+
} & {
|
|
999
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1000
|
+
}> | import("@aeriajs/types").Result.Error<{
|
|
1001
|
+
readonly code: import("./collections/user/getInfo.js").ActivationError.UserNotFound;
|
|
1002
|
+
} & {
|
|
1003
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1004
|
+
}> | import("@aeriajs/types").Result.Error<{
|
|
1005
|
+
readonly code: import("./collections/user/getInfo.js").ActivationError.AlreadyActiveUser;
|
|
1006
|
+
} & {
|
|
1007
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
1008
|
+
}> | {
|
|
1009
|
+
readonly _tag: "Result";
|
|
1010
|
+
readonly error: undefined;
|
|
1011
|
+
readonly result: {
|
|
1012
|
+
readonly name: any;
|
|
1013
|
+
readonly email: any;
|
|
1014
|
+
};
|
|
1015
|
+
}>;
|
|
1016
|
+
readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<{
|
|
1017
|
+
readonly _tag: "Result";
|
|
1018
|
+
readonly error: undefined;
|
|
1019
|
+
readonly result: import("@aeriajs/types").SchemaWithId<{
|
|
1020
|
+
readonly $id: "user";
|
|
1021
|
+
readonly icon: "users";
|
|
1022
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
1023
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1024
|
+
readonly indexes: readonly ["name"];
|
|
3697
1025
|
readonly properties: {
|
|
3698
|
-
readonly
|
|
1026
|
+
readonly name: {
|
|
3699
1027
|
readonly type: "string";
|
|
3700
1028
|
};
|
|
3701
|
-
readonly
|
|
3702
|
-
readonly
|
|
1029
|
+
readonly given_name: {
|
|
1030
|
+
readonly getter: (document: any) => string;
|
|
1031
|
+
};
|
|
1032
|
+
readonly family_name: {
|
|
1033
|
+
readonly getter: (document: any) => string;
|
|
1034
|
+
};
|
|
1035
|
+
readonly active: {
|
|
1036
|
+
readonly type: "boolean";
|
|
1037
|
+
};
|
|
1038
|
+
readonly roles: {
|
|
1039
|
+
readonly type: "array";
|
|
1040
|
+
readonly items: {
|
|
1041
|
+
readonly type: "string";
|
|
1042
|
+
};
|
|
1043
|
+
readonly uniqueItems: true;
|
|
1044
|
+
};
|
|
1045
|
+
readonly email: {
|
|
1046
|
+
readonly type: "string";
|
|
1047
|
+
readonly inputType: "email";
|
|
1048
|
+
readonly unique: true;
|
|
3703
1049
|
};
|
|
3704
|
-
readonly
|
|
1050
|
+
readonly password: {
|
|
3705
1051
|
readonly type: "string";
|
|
3706
|
-
readonly
|
|
1052
|
+
readonly inputType: "password";
|
|
1053
|
+
readonly hidden: true;
|
|
3707
1054
|
};
|
|
3708
|
-
readonly
|
|
1055
|
+
readonly phone_number: {
|
|
3709
1056
|
readonly type: "string";
|
|
1057
|
+
readonly mask: "(##) #####-####";
|
|
3710
1058
|
};
|
|
3711
|
-
readonly
|
|
3712
|
-
readonly
|
|
1059
|
+
readonly picture_file: {
|
|
1060
|
+
readonly $ref: "file";
|
|
1061
|
+
readonly accept: readonly ["image/*"];
|
|
1062
|
+
};
|
|
1063
|
+
readonly picture: {
|
|
1064
|
+
readonly getter: (value: any) => any;
|
|
3713
1065
|
};
|
|
3714
|
-
readonly
|
|
1066
|
+
readonly group: {
|
|
3715
1067
|
readonly type: "string";
|
|
3716
1068
|
};
|
|
3717
|
-
readonly
|
|
1069
|
+
readonly self_registered: {
|
|
3718
1070
|
readonly type: "boolean";
|
|
1071
|
+
readonly readOnly: true;
|
|
3719
1072
|
};
|
|
3720
|
-
readonly
|
|
3721
|
-
readonly
|
|
3722
|
-
|
|
3723
|
-
readonly download_link: {
|
|
3724
|
-
readonly getter: (value: any) => Promise<string>;
|
|
1073
|
+
readonly updated_at: {
|
|
1074
|
+
readonly type: "string";
|
|
1075
|
+
readonly format: "date-time";
|
|
3725
1076
|
};
|
|
3726
1077
|
};
|
|
3727
|
-
readonly
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
readonly
|
|
1078
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1079
|
+
readonly layout: {
|
|
1080
|
+
readonly name: "grid";
|
|
1081
|
+
readonly options: {
|
|
1082
|
+
readonly title: "name";
|
|
1083
|
+
readonly badge: "roles";
|
|
1084
|
+
readonly picture: "picture_file";
|
|
1085
|
+
readonly information: "email";
|
|
1086
|
+
readonly active: "active";
|
|
3732
1087
|
};
|
|
3733
1088
|
};
|
|
3734
1089
|
readonly individualActions: {
|
|
3735
|
-
readonly
|
|
3736
|
-
readonly label: "
|
|
3737
|
-
readonly icon: "
|
|
3738
|
-
readonly
|
|
1090
|
+
readonly 'ui:spawnEdit': {
|
|
1091
|
+
readonly label: "action.edit";
|
|
1092
|
+
readonly icon: "pencil";
|
|
1093
|
+
readonly translate: true;
|
|
1094
|
+
};
|
|
1095
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1096
|
+
readonly label: "change_password";
|
|
1097
|
+
readonly icon: "key";
|
|
1098
|
+
readonly fetchItem: true;
|
|
1099
|
+
readonly translate: true;
|
|
1100
|
+
};
|
|
1101
|
+
readonly copyActivationLink: {
|
|
1102
|
+
readonly label: "copy_activation_link";
|
|
1103
|
+
readonly icon: "link";
|
|
1104
|
+
readonly translate: true;
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1108
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1109
|
+
readonly tableMeta: readonly ["email"];
|
|
1110
|
+
readonly formLayout: {
|
|
1111
|
+
readonly fields: {
|
|
1112
|
+
readonly given_name: {
|
|
1113
|
+
readonly span: 3;
|
|
1114
|
+
};
|
|
1115
|
+
readonly family_name: {
|
|
1116
|
+
readonly span: 3;
|
|
1117
|
+
};
|
|
3739
1118
|
};
|
|
3740
1119
|
};
|
|
3741
1120
|
}>;
|
|
3742
|
-
}
|
|
1121
|
+
}>;
|
|
1122
|
+
readonly getActivationLink: (payload: {
|
|
1123
|
+
userId: import("mongodb").ObjectId | string;
|
|
1124
|
+
}, context: import("@aeriajs/types").Context) => Promise<{
|
|
1125
|
+
readonly _tag: "Error";
|
|
1126
|
+
readonly error: import("@aeriajs/types").StrictEndpointError<import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.NotFound>;
|
|
1127
|
+
readonly result: undefined;
|
|
1128
|
+
} | import("@aeriajs/types").Result.Error<{
|
|
1129
|
+
readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
|
|
1130
|
+
} & {
|
|
1131
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
1132
|
+
}> | {
|
|
1133
|
+
readonly _tag: "Result";
|
|
1134
|
+
readonly error: undefined;
|
|
1135
|
+
readonly result: {
|
|
1136
|
+
readonly url: string;
|
|
1137
|
+
};
|
|
1138
|
+
}>;
|
|
1139
|
+
};
|
|
1140
|
+
contracts: {
|
|
1141
|
+
readonly getCurrentUser: {
|
|
1142
|
+
readonly response: {
|
|
1143
|
+
readonly $ref: "user";
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
1147
|
+
exposedFunctions: any;
|
|
1148
|
+
} & {
|
|
1149
|
+
item: import("@aeriajs/types").SchemaWithId<{
|
|
1150
|
+
readonly $id: "user";
|
|
1151
|
+
readonly icon: "users";
|
|
1152
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
1153
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1154
|
+
readonly indexes: readonly ["name"];
|
|
1155
|
+
readonly properties: {
|
|
3743
1156
|
readonly name: {
|
|
3744
1157
|
readonly type: "string";
|
|
3745
1158
|
};
|
|
@@ -3791,71 +1204,57 @@ export declare const collections: {
|
|
|
3791
1204
|
readonly type: "string";
|
|
3792
1205
|
readonly format: "date-time";
|
|
3793
1206
|
};
|
|
3794
|
-
}
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
readonly
|
|
3810
|
-
readonly
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
readonly
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
readonly
|
|
3831
|
-
readonly type: "string";
|
|
3832
|
-
};
|
|
3833
|
-
readonly immutable: {
|
|
3834
|
-
readonly type: "boolean";
|
|
3835
|
-
};
|
|
3836
|
-
readonly link: {
|
|
3837
|
-
readonly getter: (value: any) => Promise<string>;
|
|
3838
|
-
};
|
|
3839
|
-
readonly download_link: {
|
|
3840
|
-
readonly getter: (value: any) => Promise<string>;
|
|
3841
|
-
};
|
|
3842
|
-
};
|
|
3843
|
-
readonly actions: {
|
|
3844
|
-
readonly deleteAll: {
|
|
3845
|
-
readonly label: "Remover";
|
|
3846
|
-
readonly ask: true;
|
|
3847
|
-
readonly selection: true;
|
|
3848
|
-
};
|
|
1207
|
+
};
|
|
1208
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1209
|
+
readonly layout: {
|
|
1210
|
+
readonly name: "grid";
|
|
1211
|
+
readonly options: {
|
|
1212
|
+
readonly title: "name";
|
|
1213
|
+
readonly badge: "roles";
|
|
1214
|
+
readonly picture: "picture_file";
|
|
1215
|
+
readonly information: "email";
|
|
1216
|
+
readonly active: "active";
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
readonly individualActions: {
|
|
1220
|
+
readonly 'ui:spawnEdit': {
|
|
1221
|
+
readonly label: "action.edit";
|
|
1222
|
+
readonly icon: "pencil";
|
|
1223
|
+
readonly translate: true;
|
|
1224
|
+
};
|
|
1225
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1226
|
+
readonly label: "change_password";
|
|
1227
|
+
readonly icon: "key";
|
|
1228
|
+
readonly fetchItem: true;
|
|
1229
|
+
readonly translate: true;
|
|
1230
|
+
};
|
|
1231
|
+
readonly copyActivationLink: {
|
|
1232
|
+
readonly label: "copy_activation_link";
|
|
1233
|
+
readonly icon: "link";
|
|
1234
|
+
readonly translate: true;
|
|
1235
|
+
};
|
|
1236
|
+
};
|
|
1237
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1238
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1239
|
+
readonly tableMeta: readonly ["email"];
|
|
1240
|
+
readonly formLayout: {
|
|
1241
|
+
readonly fields: {
|
|
1242
|
+
readonly given_name: {
|
|
1243
|
+
readonly span: 3;
|
|
3849
1244
|
};
|
|
3850
|
-
readonly
|
|
3851
|
-
readonly
|
|
3852
|
-
readonly label: "Remover";
|
|
3853
|
-
readonly icon: "trash";
|
|
3854
|
-
readonly ask: true;
|
|
3855
|
-
};
|
|
1245
|
+
readonly family_name: {
|
|
1246
|
+
readonly span: 3;
|
|
3856
1247
|
};
|
|
3857
|
-
}
|
|
3858
|
-
}
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
}>;
|
|
1251
|
+
description: {
|
|
1252
|
+
readonly $id: "user";
|
|
1253
|
+
readonly icon: "users";
|
|
1254
|
+
readonly required: readonly ["name", "roles", "email"];
|
|
1255
|
+
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1256
|
+
readonly indexes: readonly ["name"];
|
|
1257
|
+
readonly properties: {
|
|
3859
1258
|
readonly name: {
|
|
3860
1259
|
readonly type: "string";
|
|
3861
1260
|
};
|
|
@@ -3907,138 +1306,88 @@ export declare const collections: {
|
|
|
3907
1306
|
readonly type: "string";
|
|
3908
1307
|
readonly format: "date-time";
|
|
3909
1308
|
};
|
|
3910
|
-
}
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
family_name: string;
|
|
3921
|
-
picture: any;
|
|
3922
|
-
group: string;
|
|
3923
|
-
}, "picture_file">> & {
|
|
3924
|
-
updated_at?: Date | undefined;
|
|
3925
|
-
created_at?: Date | undefined;
|
|
3926
|
-
}, "roles">, context: import("@aeriajs/types").Context<{
|
|
3927
|
-
readonly $id: "user";
|
|
3928
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
3929
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
3930
|
-
readonly indexes: readonly ["name"];
|
|
3931
|
-
readonly properties: {
|
|
3932
|
-
readonly name: {
|
|
3933
|
-
readonly type: "string";
|
|
3934
|
-
};
|
|
3935
|
-
readonly given_name: {
|
|
3936
|
-
readonly getter: (document: any) => string;
|
|
3937
|
-
};
|
|
3938
|
-
readonly family_name: {
|
|
3939
|
-
readonly getter: (document: any) => string;
|
|
3940
|
-
};
|
|
3941
|
-
readonly active: {
|
|
3942
|
-
readonly type: "boolean";
|
|
3943
|
-
};
|
|
3944
|
-
readonly roles: {
|
|
3945
|
-
readonly type: "array";
|
|
3946
|
-
readonly items: {
|
|
3947
|
-
readonly type: "string";
|
|
3948
|
-
};
|
|
3949
|
-
readonly uniqueItems: true;
|
|
3950
|
-
};
|
|
3951
|
-
readonly email: {
|
|
3952
|
-
readonly type: "string";
|
|
3953
|
-
readonly inputType: "email";
|
|
3954
|
-
readonly unique: true;
|
|
3955
|
-
};
|
|
3956
|
-
readonly password: {
|
|
3957
|
-
readonly type: "string";
|
|
3958
|
-
readonly inputType: "password";
|
|
3959
|
-
readonly hidden: true;
|
|
3960
|
-
};
|
|
3961
|
-
readonly phone_number: {
|
|
3962
|
-
readonly type: "string";
|
|
3963
|
-
readonly mask: "(##) #####-####";
|
|
3964
|
-
};
|
|
3965
|
-
readonly picture_file: {
|
|
3966
|
-
readonly $ref: "file";
|
|
3967
|
-
readonly accept: readonly ["image/*"];
|
|
3968
|
-
};
|
|
3969
|
-
readonly picture: {
|
|
3970
|
-
readonly getter: (value: any) => any;
|
|
3971
|
-
};
|
|
3972
|
-
readonly group: {
|
|
3973
|
-
readonly type: "string";
|
|
3974
|
-
};
|
|
3975
|
-
readonly self_registered: {
|
|
3976
|
-
readonly type: "boolean";
|
|
3977
|
-
readonly readOnly: true;
|
|
3978
|
-
};
|
|
3979
|
-
readonly updated_at: {
|
|
3980
|
-
readonly type: "string";
|
|
3981
|
-
readonly format: "date-time";
|
|
3982
|
-
};
|
|
1309
|
+
};
|
|
1310
|
+
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1311
|
+
readonly layout: {
|
|
1312
|
+
readonly name: "grid";
|
|
1313
|
+
readonly options: {
|
|
1314
|
+
readonly title: "name";
|
|
1315
|
+
readonly badge: "roles";
|
|
1316
|
+
readonly picture: "picture_file";
|
|
1317
|
+
readonly information: "email";
|
|
1318
|
+
readonly active: "active";
|
|
3983
1319
|
};
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
readonly
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
1320
|
+
};
|
|
1321
|
+
readonly individualActions: {
|
|
1322
|
+
readonly 'ui:spawnEdit': {
|
|
1323
|
+
readonly label: "action.edit";
|
|
1324
|
+
readonly icon: "pencil";
|
|
1325
|
+
readonly translate: true;
|
|
1326
|
+
};
|
|
1327
|
+
readonly 'route:/dashboard/user/changepass': {
|
|
1328
|
+
readonly label: "change_password";
|
|
1329
|
+
readonly icon: "key";
|
|
1330
|
+
readonly fetchItem: true;
|
|
1331
|
+
readonly translate: true;
|
|
3994
1332
|
};
|
|
3995
|
-
readonly
|
|
3996
|
-
readonly
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
readonly translate: true;
|
|
4000
|
-
};
|
|
4001
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
4002
|
-
readonly label: "change_password";
|
|
4003
|
-
readonly icon: "key";
|
|
4004
|
-
readonly fetchItem: true;
|
|
4005
|
-
readonly translate: true;
|
|
4006
|
-
};
|
|
4007
|
-
readonly copyActivationLink: {
|
|
4008
|
-
readonly label: "copy_activation_link";
|
|
4009
|
-
readonly icon: "link";
|
|
4010
|
-
readonly translate: true;
|
|
4011
|
-
};
|
|
1333
|
+
readonly copyActivationLink: {
|
|
1334
|
+
readonly label: "copy_activation_link";
|
|
1335
|
+
readonly icon: "link";
|
|
1336
|
+
readonly translate: true;
|
|
4012
1337
|
};
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
};
|
|
1338
|
+
};
|
|
1339
|
+
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1340
|
+
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1341
|
+
readonly tableMeta: readonly ["email"];
|
|
1342
|
+
readonly formLayout: {
|
|
1343
|
+
readonly fields: {
|
|
1344
|
+
readonly given_name: {
|
|
1345
|
+
readonly span: 3;
|
|
1346
|
+
};
|
|
1347
|
+
readonly family_name: {
|
|
1348
|
+
readonly span: 3;
|
|
4025
1349
|
};
|
|
4026
1350
|
};
|
|
4027
|
-
}
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
functions: {
|
|
1354
|
+
readonly 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<any>>;
|
|
1355
|
+
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions) => Promise<{
|
|
1356
|
+
readonly _tag: "Result";
|
|
1357
|
+
readonly error: undefined;
|
|
1358
|
+
readonly result: import("@aeriajs/types").SchemaWithId<any>[];
|
|
1359
|
+
}>;
|
|
1360
|
+
readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1361
|
+
readonly code: import("@aeriajs/types").ACError.ResourceNotFound;
|
|
1362
|
+
} & {
|
|
1363
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1364
|
+
}> | {
|
|
1365
|
+
readonly _tag: "Result";
|
|
1366
|
+
readonly error: undefined;
|
|
1367
|
+
readonly result: import("mongodb").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>>, "_id">> | null;
|
|
1368
|
+
}>;
|
|
1369
|
+
readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
4028
1370
|
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
4029
1371
|
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
4030
1372
|
} & {
|
|
4031
1373
|
httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
|
|
4032
1374
|
}> | {
|
|
1375
|
+
readonly _tag: "Result";
|
|
1376
|
+
readonly error: undefined;
|
|
1377
|
+
readonly result: {
|
|
1378
|
+
readonly tempId: any;
|
|
1379
|
+
};
|
|
1380
|
+
}>;
|
|
1381
|
+
readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
|
|
4033
1382
|
readonly _tag: "Result";
|
|
4034
1383
|
readonly error: undefined;
|
|
4035
1384
|
readonly result: any;
|
|
4036
1385
|
}>;
|
|
4037
|
-
readonly
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
}, context: import("@aeriajs/types").Context<{
|
|
1386
|
+
readonly insert: (payload: {
|
|
1387
|
+
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<typeof import("./collections/user/description.js").description>>, "roles">;
|
|
1388
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
|
|
4041
1389
|
readonly $id: "user";
|
|
1390
|
+
readonly icon: "users";
|
|
4042
1391
|
readonly required: readonly ["name", "roles", "email"];
|
|
4043
1392
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
4044
1393
|
readonly indexes: readonly ["name"];
|
|
@@ -4124,7 +1473,6 @@ export declare const collections: {
|
|
|
4124
1473
|
readonly translate: true;
|
|
4125
1474
|
};
|
|
4126
1475
|
};
|
|
4127
|
-
readonly icon: "users";
|
|
4128
1476
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
4129
1477
|
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
4130
1478
|
readonly tableMeta: readonly ["email"];
|
|
@@ -4138,7 +1486,96 @@ export declare const collections: {
|
|
|
4138
1486
|
};
|
|
4139
1487
|
};
|
|
4140
1488
|
};
|
|
4141
|
-
}
|
|
1489
|
+
}>>>;
|
|
1490
|
+
readonly authenticate: (props: {
|
|
1491
|
+
email: string;
|
|
1492
|
+
password: string;
|
|
1493
|
+
} | {
|
|
1494
|
+
token?: import("@aeriajs/types").TokenRecipient;
|
|
1495
|
+
revalidate: true;
|
|
1496
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1497
|
+
readonly code: import("@aeriajs/types").ACError.AuthorizationError;
|
|
1498
|
+
} & {
|
|
1499
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
1500
|
+
}> | {
|
|
1501
|
+
readonly _tag: "Result";
|
|
1502
|
+
readonly error: undefined;
|
|
1503
|
+
readonly result: {
|
|
1504
|
+
user: Pick<import("@aeriajs/types").SchemaWithId<typeof import("./collections/user/description.js").description>, "name" | "email" | "roles" | "active"> & {
|
|
1505
|
+
_id: import("mongodb").ObjectId | null;
|
|
1506
|
+
};
|
|
1507
|
+
token: import("@aeriajs/types").TokenRecipient;
|
|
1508
|
+
} | {
|
|
1509
|
+
user: {
|
|
1510
|
+
_id: null;
|
|
1511
|
+
name: string;
|
|
1512
|
+
email: string;
|
|
1513
|
+
roles: string[];
|
|
1514
|
+
active: boolean;
|
|
1515
|
+
};
|
|
1516
|
+
token: {
|
|
1517
|
+
type: string;
|
|
1518
|
+
content: string;
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1521
|
+
} | import("@aeriajs/types").Result.Error<{
|
|
1522
|
+
readonly code: import("./collections/user/authenticate.js").AuthenticationError.InvalidCredentials;
|
|
1523
|
+
} & {
|
|
1524
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
1525
|
+
}> | import("@aeriajs/types").Result.Error<{
|
|
1526
|
+
readonly code: import("./collections/user/authenticate.js").AuthenticationError.InactiveUser;
|
|
1527
|
+
} & {
|
|
1528
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
|
|
1529
|
+
}>>;
|
|
1530
|
+
readonly activate: (payload: {
|
|
1531
|
+
password: string;
|
|
1532
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description> & {
|
|
1533
|
+
request: {
|
|
1534
|
+
query: {
|
|
1535
|
+
u?: string;
|
|
1536
|
+
t?: string;
|
|
1537
|
+
};
|
|
1538
|
+
payload: {
|
|
1539
|
+
password?: string;
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
}) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").Result.Error<{
|
|
1543
|
+
readonly code: import("./collections/user/activate.js").ActivationError.InvalidLink;
|
|
1544
|
+
} & {
|
|
1545
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1546
|
+
}> | import("@aeriajs/types").Result.Error<{
|
|
1547
|
+
readonly code: import("./collections/user/activate.js").ActivationError.UserNotFound;
|
|
1548
|
+
} & {
|
|
1549
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
1550
|
+
}> | import("@aeriajs/types").Result.Error<{
|
|
1551
|
+
readonly code: import("./collections/user/activate.js").ActivationError.AlreadyActiveUser;
|
|
1552
|
+
} & {
|
|
1553
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
|
|
1554
|
+
}> | import("@aeriajs/types").Result.Error<{
|
|
1555
|
+
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
1556
|
+
} & {
|
|
1557
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.UnprocessableContent;
|
|
1558
|
+
}> | {
|
|
1559
|
+
readonly _tag: "Result";
|
|
1560
|
+
readonly error: undefined;
|
|
1561
|
+
readonly result: {
|
|
1562
|
+
readonly userId: any;
|
|
1563
|
+
};
|
|
1564
|
+
} | undefined>;
|
|
1565
|
+
readonly createAccount: (payload: Omit<import("@aeriajs/types").Schema<typeof import("./collections/user/description.js").description>, "roles">, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
1566
|
+
readonly code: import("@aeriajs/types").ACError.MalformedInput;
|
|
1567
|
+
readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
|
|
1568
|
+
} & {
|
|
1569
|
+
httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
|
|
1570
|
+
}> | {
|
|
1571
|
+
readonly _tag: "Result";
|
|
1572
|
+
readonly error: undefined;
|
|
1573
|
+
readonly result: any;
|
|
1574
|
+
}>;
|
|
1575
|
+
readonly getInfo: (payload: {
|
|
1576
|
+
userId: string;
|
|
1577
|
+
token: string;
|
|
1578
|
+
}, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<import("@aeriajs/types").Result.Error<{
|
|
4142
1579
|
readonly code: import("./collections/user/getInfo.js").ActivationError.InvalidLink;
|
|
4143
1580
|
} & {
|
|
4144
1581
|
httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
|
|
@@ -4158,112 +1595,12 @@ export declare const collections: {
|
|
|
4158
1595
|
readonly email: any;
|
|
4159
1596
|
};
|
|
4160
1597
|
}>;
|
|
4161
|
-
readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<{
|
|
4162
|
-
readonly $id: "user";
|
|
4163
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
4164
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
4165
|
-
readonly indexes: readonly ["name"];
|
|
4166
|
-
readonly properties: {
|
|
4167
|
-
readonly name: {
|
|
4168
|
-
readonly type: "string";
|
|
4169
|
-
};
|
|
4170
|
-
readonly given_name: {
|
|
4171
|
-
readonly getter: (document: any) => string;
|
|
4172
|
-
};
|
|
4173
|
-
readonly family_name: {
|
|
4174
|
-
readonly getter: (document: any) => string;
|
|
4175
|
-
};
|
|
4176
|
-
readonly active: {
|
|
4177
|
-
readonly type: "boolean";
|
|
4178
|
-
};
|
|
4179
|
-
readonly roles: {
|
|
4180
|
-
readonly type: "array";
|
|
4181
|
-
readonly items: {
|
|
4182
|
-
readonly type: "string";
|
|
4183
|
-
};
|
|
4184
|
-
readonly uniqueItems: true;
|
|
4185
|
-
};
|
|
4186
|
-
readonly email: {
|
|
4187
|
-
readonly type: "string";
|
|
4188
|
-
readonly inputType: "email";
|
|
4189
|
-
readonly unique: true;
|
|
4190
|
-
};
|
|
4191
|
-
readonly password: {
|
|
4192
|
-
readonly type: "string";
|
|
4193
|
-
readonly inputType: "password";
|
|
4194
|
-
readonly hidden: true;
|
|
4195
|
-
};
|
|
4196
|
-
readonly phone_number: {
|
|
4197
|
-
readonly type: "string";
|
|
4198
|
-
readonly mask: "(##) #####-####";
|
|
4199
|
-
};
|
|
4200
|
-
readonly picture_file: {
|
|
4201
|
-
readonly $ref: "file";
|
|
4202
|
-
readonly accept: readonly ["image/*"];
|
|
4203
|
-
};
|
|
4204
|
-
readonly picture: {
|
|
4205
|
-
readonly getter: (value: any) => any;
|
|
4206
|
-
};
|
|
4207
|
-
readonly group: {
|
|
4208
|
-
readonly type: "string";
|
|
4209
|
-
};
|
|
4210
|
-
readonly self_registered: {
|
|
4211
|
-
readonly type: "boolean";
|
|
4212
|
-
readonly readOnly: true;
|
|
4213
|
-
};
|
|
4214
|
-
readonly updated_at: {
|
|
4215
|
-
readonly type: "string";
|
|
4216
|
-
readonly format: "date-time";
|
|
4217
|
-
};
|
|
4218
|
-
};
|
|
4219
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
4220
|
-
readonly layout: {
|
|
4221
|
-
readonly name: "grid";
|
|
4222
|
-
readonly options: {
|
|
4223
|
-
readonly title: "name";
|
|
4224
|
-
readonly badge: "roles";
|
|
4225
|
-
readonly picture: "picture_file";
|
|
4226
|
-
readonly information: "email";
|
|
4227
|
-
readonly active: "active";
|
|
4228
|
-
};
|
|
4229
|
-
};
|
|
4230
|
-
readonly individualActions: {
|
|
4231
|
-
readonly 'ui:spawnEdit': {
|
|
4232
|
-
readonly label: "action.edit";
|
|
4233
|
-
readonly icon: "pencil";
|
|
4234
|
-
readonly translate: true;
|
|
4235
|
-
};
|
|
4236
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
4237
|
-
readonly label: "change_password";
|
|
4238
|
-
readonly icon: "key";
|
|
4239
|
-
readonly fetchItem: true;
|
|
4240
|
-
readonly translate: true;
|
|
4241
|
-
};
|
|
4242
|
-
readonly copyActivationLink: {
|
|
4243
|
-
readonly label: "copy_activation_link";
|
|
4244
|
-
readonly icon: "link";
|
|
4245
|
-
readonly translate: true;
|
|
4246
|
-
};
|
|
4247
|
-
};
|
|
4248
|
-
readonly icon: "users";
|
|
4249
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
4250
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
4251
|
-
readonly tableMeta: readonly ["email"];
|
|
4252
|
-
readonly formLayout: {
|
|
4253
|
-
readonly fields: {
|
|
4254
|
-
readonly given_name: {
|
|
4255
|
-
readonly span: 3;
|
|
4256
|
-
};
|
|
4257
|
-
readonly family_name: {
|
|
4258
|
-
readonly span: 3;
|
|
4259
|
-
};
|
|
4260
|
-
};
|
|
4261
|
-
};
|
|
4262
|
-
}>) => Promise<{
|
|
1598
|
+
readonly getCurrentUser: (_payload: undefined, context: import("@aeriajs/types").Context<typeof import("./collections/user/description.js").description>) => Promise<{
|
|
4263
1599
|
readonly _tag: "Result";
|
|
4264
1600
|
readonly error: undefined;
|
|
4265
1601
|
readonly result: import("@aeriajs/types").SchemaWithId<{
|
|
4266
1602
|
readonly $id: "user";
|
|
1603
|
+
readonly icon: "users";
|
|
4267
1604
|
readonly required: readonly ["name", "roles", "email"];
|
|
4268
1605
|
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
4269
1606
|
readonly indexes: readonly ["name"];
|
|
@@ -4349,7 +1686,6 @@ export declare const collections: {
|
|
|
4349
1686
|
readonly translate: true;
|
|
4350
1687
|
};
|
|
4351
1688
|
};
|
|
4352
|
-
readonly icon: "users";
|
|
4353
1689
|
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
4354
1690
|
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
4355
1691
|
readonly tableMeta: readonly ["email"];
|
|
@@ -4366,7 +1702,7 @@ export declare const collections: {
|
|
|
4366
1702
|
}>;
|
|
4367
1703
|
}>;
|
|
4368
1704
|
readonly getActivationLink: (payload: {
|
|
4369
|
-
userId:
|
|
1705
|
+
userId: import("mongodb").ObjectId | string;
|
|
4370
1706
|
}, context: import("@aeriajs/types").Context) => Promise<{
|
|
4371
1707
|
readonly _tag: "Error";
|
|
4372
1708
|
readonly error: import("@aeriajs/types").StrictEndpointError<import("@aeriajs/types").ACError.ResourceNotFound | import("@aeriajs/types").ACError.MalformedInput, unknown, import("@aeriajs/types").HTTPStatus.BadRequest | import("@aeriajs/types").HTTPStatus.NotFound>;
|