@aeriajs/builtins 0.0.15 → 0.0.16
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.
|
@@ -87,37 +87,7 @@ export declare const tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
|
87
87
|
};
|
|
88
88
|
functions: {};
|
|
89
89
|
functionContracts: Partial<{}>;
|
|
90
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
91
|
-
description: {
|
|
92
|
-
readonly $id: "tempFile";
|
|
93
|
-
readonly temporary: {
|
|
94
|
-
readonly index: "created_at";
|
|
95
|
-
readonly expireAfterSeconds: 3600;
|
|
96
|
-
};
|
|
97
|
-
readonly properties: {
|
|
98
|
-
readonly created_at: {
|
|
99
|
-
readonly type: "string";
|
|
100
|
-
readonly format: "date-time";
|
|
101
|
-
};
|
|
102
|
-
readonly absolute_path: {
|
|
103
|
-
readonly type: "string";
|
|
104
|
-
};
|
|
105
|
-
readonly size: {
|
|
106
|
-
readonly type: "number";
|
|
107
|
-
};
|
|
108
|
-
readonly mime: {
|
|
109
|
-
readonly type: "number";
|
|
110
|
-
};
|
|
111
|
-
readonly collection: {
|
|
112
|
-
readonly type: "string";
|
|
113
|
-
};
|
|
114
|
-
readonly filename: {
|
|
115
|
-
readonly type: "string";
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
functions: any;
|
|
120
|
-
}> | undefined;
|
|
90
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
121
91
|
};
|
|
122
92
|
export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
123
93
|
description: {
|
|
@@ -896,57 +866,5 @@ export declare const file: Omit<import("@aeriajs/types").Collection<{
|
|
|
896
866
|
readonly remove: import("@aeriajs/types").Contract;
|
|
897
867
|
readonly removeAll: import("@aeriajs/types").Contract;
|
|
898
868
|
}>;
|
|
899
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
900
|
-
description: {
|
|
901
|
-
readonly $id: "file";
|
|
902
|
-
readonly owned: "always";
|
|
903
|
-
readonly presets: readonly ["owned"];
|
|
904
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
905
|
-
readonly properties: {
|
|
906
|
-
readonly mime: {
|
|
907
|
-
readonly type: "string";
|
|
908
|
-
};
|
|
909
|
-
readonly size: {
|
|
910
|
-
readonly type: "number";
|
|
911
|
-
};
|
|
912
|
-
readonly last_modified: {
|
|
913
|
-
readonly type: "string";
|
|
914
|
-
readonly format: "date-time";
|
|
915
|
-
};
|
|
916
|
-
readonly filename: {
|
|
917
|
-
readonly type: "string";
|
|
918
|
-
};
|
|
919
|
-
readonly absolute_path: {
|
|
920
|
-
readonly type: "string";
|
|
921
|
-
};
|
|
922
|
-
readonly relative_path: {
|
|
923
|
-
readonly type: "string";
|
|
924
|
-
};
|
|
925
|
-
readonly immutable: {
|
|
926
|
-
readonly type: "boolean";
|
|
927
|
-
};
|
|
928
|
-
readonly link: {
|
|
929
|
-
readonly getter: (value: any) => Promise<string>;
|
|
930
|
-
};
|
|
931
|
-
readonly download_link: {
|
|
932
|
-
readonly getter: (value: any) => Promise<string>;
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
readonly actions: {
|
|
936
|
-
readonly deleteAll: {
|
|
937
|
-
readonly name: "Remover";
|
|
938
|
-
readonly ask: true;
|
|
939
|
-
readonly selection: true;
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
readonly individualActions: {
|
|
943
|
-
readonly remove: {
|
|
944
|
-
readonly name: "Remover";
|
|
945
|
-
readonly icon: "trash";
|
|
946
|
-
readonly ask: true;
|
|
947
|
-
};
|
|
948
|
-
};
|
|
949
|
-
};
|
|
950
|
-
functions: any;
|
|
951
|
-
}> | undefined;
|
|
869
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
952
870
|
};
|
|
@@ -96,34 +96,5 @@ export declare const log: Omit<import("@aeriajs/types").Collection<{
|
|
|
96
96
|
readonly getAll: import("@aeriajs/types").Contract;
|
|
97
97
|
readonly insert: import("@aeriajs/types").Contract;
|
|
98
98
|
}>;
|
|
99
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
100
|
-
description: {
|
|
101
|
-
readonly $id: "log";
|
|
102
|
-
readonly required: readonly ["context", "message"];
|
|
103
|
-
readonly properties: {
|
|
104
|
-
readonly owner: {
|
|
105
|
-
readonly $ref: "user";
|
|
106
|
-
readonly noForm: true;
|
|
107
|
-
};
|
|
108
|
-
readonly context: {
|
|
109
|
-
readonly type: "string";
|
|
110
|
-
};
|
|
111
|
-
readonly message: {
|
|
112
|
-
readonly type: "string";
|
|
113
|
-
};
|
|
114
|
-
readonly details: {
|
|
115
|
-
readonly type: "object";
|
|
116
|
-
readonly variable: true;
|
|
117
|
-
};
|
|
118
|
-
readonly created_at: {
|
|
119
|
-
readonly type: "string";
|
|
120
|
-
readonly format: "date-time";
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
readonly icon: "magnifying-glass";
|
|
124
|
-
readonly presets: readonly ["view"];
|
|
125
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
126
|
-
};
|
|
127
|
-
functions: any;
|
|
128
|
-
}> | undefined;
|
|
99
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
129
100
|
};
|
|
@@ -41,20 +41,5 @@ export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<{
|
|
|
41
41
|
};
|
|
42
42
|
functions: {};
|
|
43
43
|
functionContracts: Partial<{}>;
|
|
44
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
45
|
-
description: {
|
|
46
|
-
readonly $id: "resourceUsage";
|
|
47
|
-
readonly required: readonly [];
|
|
48
|
-
readonly properties: {
|
|
49
|
-
readonly hits: {
|
|
50
|
-
readonly type: "integer";
|
|
51
|
-
};
|
|
52
|
-
readonly last_maximum_reach: {
|
|
53
|
-
readonly type: "string";
|
|
54
|
-
readonly format: "date-time";
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
functions: any;
|
|
59
|
-
}> | undefined;
|
|
44
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
60
45
|
};
|
|
@@ -102,108 +102,10 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
102
102
|
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
103
103
|
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
104
104
|
readonly remove: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2) => Promise<any>;
|
|
105
|
-
readonly upload: (_props: unknown, context: import("@aeriajs/types").
|
|
106
|
-
readonly $id: "user";
|
|
107
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
108
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
109
|
-
readonly indexes: readonly ["name"];
|
|
110
|
-
readonly freshItem: {
|
|
111
|
-
readonly active: true;
|
|
112
|
-
};
|
|
113
|
-
readonly properties: {
|
|
114
|
-
readonly name: {
|
|
115
|
-
readonly type: "string";
|
|
116
|
-
};
|
|
117
|
-
readonly given_name: {
|
|
118
|
-
readonly getter: (document: any) => string;
|
|
119
|
-
};
|
|
120
|
-
readonly family_name: {
|
|
121
|
-
readonly getter: (document: any) => string;
|
|
122
|
-
};
|
|
123
|
-
readonly active: {
|
|
124
|
-
readonly type: "boolean";
|
|
125
|
-
};
|
|
126
|
-
readonly roles: {
|
|
127
|
-
readonly type: "array";
|
|
128
|
-
readonly items: {
|
|
129
|
-
readonly type: "string";
|
|
130
|
-
};
|
|
131
|
-
readonly uniqueItems: true;
|
|
132
|
-
};
|
|
133
|
-
readonly email: {
|
|
134
|
-
readonly type: "string";
|
|
135
|
-
readonly inputType: "email";
|
|
136
|
-
readonly unique: true;
|
|
137
|
-
};
|
|
138
|
-
readonly password: {
|
|
139
|
-
readonly type: "string";
|
|
140
|
-
readonly inputType: "password";
|
|
141
|
-
readonly hidden: true;
|
|
142
|
-
};
|
|
143
|
-
readonly phone_number: {
|
|
144
|
-
readonly type: "string";
|
|
145
|
-
readonly mask: "(##) #####-####";
|
|
146
|
-
};
|
|
147
|
-
readonly picture_file: {
|
|
148
|
-
readonly $ref: "file";
|
|
149
|
-
readonly accept: readonly ["image/*"];
|
|
150
|
-
};
|
|
151
|
-
readonly picture: {
|
|
152
|
-
readonly getter: (value: any) => any;
|
|
153
|
-
};
|
|
154
|
-
readonly group: {
|
|
155
|
-
readonly type: "string";
|
|
156
|
-
};
|
|
157
|
-
readonly self_registered: {
|
|
158
|
-
readonly type: "boolean";
|
|
159
|
-
readonly readOnly: true;
|
|
160
|
-
};
|
|
161
|
-
readonly updated_at: {
|
|
162
|
-
readonly type: "string";
|
|
163
|
-
readonly format: "date-time";
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
167
|
-
readonly layout: {
|
|
168
|
-
readonly name: "grid";
|
|
169
|
-
readonly options: {
|
|
170
|
-
readonly title: "name";
|
|
171
|
-
readonly badge: "roles";
|
|
172
|
-
readonly picture: "picture_file";
|
|
173
|
-
readonly information: "email";
|
|
174
|
-
readonly active: "active";
|
|
175
|
-
readonly translateBadge: true;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
readonly individualActions: {
|
|
179
|
-
readonly 'ui:spawnEdit': {
|
|
180
|
-
readonly name: "Editar";
|
|
181
|
-
readonly icon: "pencil";
|
|
182
|
-
};
|
|
183
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
184
|
-
readonly name: "Mudar senha";
|
|
185
|
-
readonly icon: "key";
|
|
186
|
-
readonly fetchItem: true;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
readonly icon: "users";
|
|
190
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
191
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
192
|
-
readonly tableMeta: readonly ["email"];
|
|
193
|
-
readonly formLayout: {
|
|
194
|
-
readonly fields: {
|
|
195
|
-
readonly given_name: {
|
|
196
|
-
readonly span: 3;
|
|
197
|
-
};
|
|
198
|
-
readonly family_name: {
|
|
199
|
-
readonly span: 3;
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
105
|
+
readonly upload: <TContext_3 extends import("@aeriajs/types").Context>(_props: unknown, context: TContext_3) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
204
106
|
tempId: any;
|
|
205
107
|
}>;
|
|
206
|
-
readonly removeFile: <
|
|
108
|
+
readonly removeFile: <TContext_4 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_4) => Promise<any>;
|
|
207
109
|
readonly insert: (payload: {
|
|
208
110
|
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
209
111
|
readonly $id: "user";
|
|
@@ -1161,7 +1063,7 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1161
1063
|
grantEverything: true;
|
|
1162
1064
|
};
|
|
1163
1065
|
guest: {
|
|
1164
|
-
grant:
|
|
1066
|
+
grant: "authenticate"[];
|
|
1165
1067
|
};
|
|
1166
1068
|
};
|
|
1167
1069
|
};
|
|
@@ -1368,108 +1270,10 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
1368
1270
|
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
1369
1271
|
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
1370
1272
|
readonly remove: <TContext_2 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2) => Promise<any>;
|
|
1371
|
-
readonly upload: (_props: unknown, context: import("@aeriajs/types").
|
|
1372
|
-
readonly $id: "user";
|
|
1373
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1374
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1375
|
-
readonly indexes: readonly ["name"];
|
|
1376
|
-
readonly freshItem: {
|
|
1377
|
-
readonly active: true;
|
|
1378
|
-
};
|
|
1379
|
-
readonly properties: {
|
|
1380
|
-
readonly name: {
|
|
1381
|
-
readonly type: "string";
|
|
1382
|
-
};
|
|
1383
|
-
readonly given_name: {
|
|
1384
|
-
readonly getter: (document: any) => string;
|
|
1385
|
-
};
|
|
1386
|
-
readonly family_name: {
|
|
1387
|
-
readonly getter: (document: any) => string;
|
|
1388
|
-
};
|
|
1389
|
-
readonly active: {
|
|
1390
|
-
readonly type: "boolean";
|
|
1391
|
-
};
|
|
1392
|
-
readonly roles: {
|
|
1393
|
-
readonly type: "array";
|
|
1394
|
-
readonly items: {
|
|
1395
|
-
readonly type: "string";
|
|
1396
|
-
};
|
|
1397
|
-
readonly uniqueItems: true;
|
|
1398
|
-
};
|
|
1399
|
-
readonly email: {
|
|
1400
|
-
readonly type: "string";
|
|
1401
|
-
readonly inputType: "email";
|
|
1402
|
-
readonly unique: true;
|
|
1403
|
-
};
|
|
1404
|
-
readonly password: {
|
|
1405
|
-
readonly type: "string";
|
|
1406
|
-
readonly inputType: "password";
|
|
1407
|
-
readonly hidden: true;
|
|
1408
|
-
};
|
|
1409
|
-
readonly phone_number: {
|
|
1410
|
-
readonly type: "string";
|
|
1411
|
-
readonly mask: "(##) #####-####";
|
|
1412
|
-
};
|
|
1413
|
-
readonly picture_file: {
|
|
1414
|
-
readonly $ref: "file";
|
|
1415
|
-
readonly accept: readonly ["image/*"];
|
|
1416
|
-
};
|
|
1417
|
-
readonly picture: {
|
|
1418
|
-
readonly getter: (value: any) => any;
|
|
1419
|
-
};
|
|
1420
|
-
readonly group: {
|
|
1421
|
-
readonly type: "string";
|
|
1422
|
-
};
|
|
1423
|
-
readonly self_registered: {
|
|
1424
|
-
readonly type: "boolean";
|
|
1425
|
-
readonly readOnly: true;
|
|
1426
|
-
};
|
|
1427
|
-
readonly updated_at: {
|
|
1428
|
-
readonly type: "string";
|
|
1429
|
-
readonly format: "date-time";
|
|
1430
|
-
};
|
|
1431
|
-
};
|
|
1432
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1433
|
-
readonly layout: {
|
|
1434
|
-
readonly name: "grid";
|
|
1435
|
-
readonly options: {
|
|
1436
|
-
readonly title: "name";
|
|
1437
|
-
readonly badge: "roles";
|
|
1438
|
-
readonly picture: "picture_file";
|
|
1439
|
-
readonly information: "email";
|
|
1440
|
-
readonly active: "active";
|
|
1441
|
-
readonly translateBadge: true;
|
|
1442
|
-
};
|
|
1443
|
-
};
|
|
1444
|
-
readonly individualActions: {
|
|
1445
|
-
readonly 'ui:spawnEdit': {
|
|
1446
|
-
readonly name: "Editar";
|
|
1447
|
-
readonly icon: "pencil";
|
|
1448
|
-
};
|
|
1449
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1450
|
-
readonly name: "Mudar senha";
|
|
1451
|
-
readonly icon: "key";
|
|
1452
|
-
readonly fetchItem: true;
|
|
1453
|
-
};
|
|
1454
|
-
};
|
|
1455
|
-
readonly icon: "users";
|
|
1456
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1457
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1458
|
-
readonly tableMeta: readonly ["email"];
|
|
1459
|
-
readonly formLayout: {
|
|
1460
|
-
readonly fields: {
|
|
1461
|
-
readonly given_name: {
|
|
1462
|
-
readonly span: 3;
|
|
1463
|
-
};
|
|
1464
|
-
readonly family_name: {
|
|
1465
|
-
readonly span: 3;
|
|
1466
|
-
};
|
|
1467
|
-
};
|
|
1468
|
-
};
|
|
1469
|
-
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
1273
|
+
readonly upload: <TContext_3 extends import("@aeriajs/types").Context>(_props: unknown, context: TContext_3) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
1470
1274
|
tempId: any;
|
|
1471
1275
|
}>;
|
|
1472
|
-
readonly removeFile: <
|
|
1276
|
+
readonly removeFile: <TContext_4 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_4) => Promise<any>;
|
|
1473
1277
|
readonly insert: (payload: {
|
|
1474
1278
|
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
1475
1279
|
readonly $id: "user";
|
|
@@ -2434,106 +2238,5 @@ export declare const user: Omit<import("@aeriajs/types").Collection<{
|
|
|
2434
2238
|
readonly getInfo: import("@aeriajs/types").Contract;
|
|
2435
2239
|
readonly getActivationLink: import("@aeriajs/types").Contract;
|
|
2436
2240
|
}>;
|
|
2437
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
2438
|
-
description: {
|
|
2439
|
-
readonly $id: "user";
|
|
2440
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
2441
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2442
|
-
readonly indexes: readonly ["name"];
|
|
2443
|
-
readonly freshItem: {
|
|
2444
|
-
readonly active: true;
|
|
2445
|
-
};
|
|
2446
|
-
readonly properties: {
|
|
2447
|
-
readonly name: {
|
|
2448
|
-
readonly type: "string";
|
|
2449
|
-
};
|
|
2450
|
-
readonly given_name: {
|
|
2451
|
-
readonly getter: (document: any) => string;
|
|
2452
|
-
};
|
|
2453
|
-
readonly family_name: {
|
|
2454
|
-
readonly getter: (document: any) => string;
|
|
2455
|
-
};
|
|
2456
|
-
readonly active: {
|
|
2457
|
-
readonly type: "boolean";
|
|
2458
|
-
};
|
|
2459
|
-
readonly roles: {
|
|
2460
|
-
readonly type: "array";
|
|
2461
|
-
readonly items: {
|
|
2462
|
-
readonly type: "string";
|
|
2463
|
-
};
|
|
2464
|
-
readonly uniqueItems: true;
|
|
2465
|
-
};
|
|
2466
|
-
readonly email: {
|
|
2467
|
-
readonly type: "string";
|
|
2468
|
-
readonly inputType: "email";
|
|
2469
|
-
readonly unique: true;
|
|
2470
|
-
};
|
|
2471
|
-
readonly password: {
|
|
2472
|
-
readonly type: "string";
|
|
2473
|
-
readonly inputType: "password";
|
|
2474
|
-
readonly hidden: true;
|
|
2475
|
-
};
|
|
2476
|
-
readonly phone_number: {
|
|
2477
|
-
readonly type: "string";
|
|
2478
|
-
readonly mask: "(##) #####-####";
|
|
2479
|
-
};
|
|
2480
|
-
readonly picture_file: {
|
|
2481
|
-
readonly $ref: "file";
|
|
2482
|
-
readonly accept: readonly ["image/*"];
|
|
2483
|
-
};
|
|
2484
|
-
readonly picture: {
|
|
2485
|
-
readonly getter: (value: any) => any;
|
|
2486
|
-
};
|
|
2487
|
-
readonly group: {
|
|
2488
|
-
readonly type: "string";
|
|
2489
|
-
};
|
|
2490
|
-
readonly self_registered: {
|
|
2491
|
-
readonly type: "boolean";
|
|
2492
|
-
readonly readOnly: true;
|
|
2493
|
-
};
|
|
2494
|
-
readonly updated_at: {
|
|
2495
|
-
readonly type: "string";
|
|
2496
|
-
readonly format: "date-time";
|
|
2497
|
-
};
|
|
2498
|
-
};
|
|
2499
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2500
|
-
readonly layout: {
|
|
2501
|
-
readonly name: "grid";
|
|
2502
|
-
readonly options: {
|
|
2503
|
-
readonly title: "name";
|
|
2504
|
-
readonly badge: "roles";
|
|
2505
|
-
readonly picture: "picture_file";
|
|
2506
|
-
readonly information: "email";
|
|
2507
|
-
readonly active: "active";
|
|
2508
|
-
readonly translateBadge: true;
|
|
2509
|
-
};
|
|
2510
|
-
};
|
|
2511
|
-
readonly individualActions: {
|
|
2512
|
-
readonly 'ui:spawnEdit': {
|
|
2513
|
-
readonly name: "Editar";
|
|
2514
|
-
readonly icon: "pencil";
|
|
2515
|
-
};
|
|
2516
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2517
|
-
readonly name: "Mudar senha";
|
|
2518
|
-
readonly icon: "key";
|
|
2519
|
-
readonly fetchItem: true;
|
|
2520
|
-
};
|
|
2521
|
-
};
|
|
2522
|
-
readonly icon: "users";
|
|
2523
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2524
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2525
|
-
readonly tableMeta: readonly ["email"];
|
|
2526
|
-
readonly formLayout: {
|
|
2527
|
-
readonly fields: {
|
|
2528
|
-
readonly given_name: {
|
|
2529
|
-
readonly span: 3;
|
|
2530
|
-
};
|
|
2531
|
-
readonly family_name: {
|
|
2532
|
-
readonly span: 3;
|
|
2533
|
-
};
|
|
2534
|
-
};
|
|
2535
|
-
};
|
|
2536
|
-
};
|
|
2537
|
-
functions: any;
|
|
2538
|
-
}> | undefined;
|
|
2241
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
2539
2242
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -785,59 +785,7 @@ export declare const collections: {
|
|
|
785
785
|
readonly remove: import("@aeriajs/types").Contract;
|
|
786
786
|
readonly removeAll: import("@aeriajs/types").Contract;
|
|
787
787
|
}>;
|
|
788
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
789
|
-
description: {
|
|
790
|
-
readonly $id: "file";
|
|
791
|
-
readonly owned: "always";
|
|
792
|
-
readonly presets: readonly ["owned"];
|
|
793
|
-
readonly indexes: readonly ["filename", "link", "mime"];
|
|
794
|
-
readonly properties: {
|
|
795
|
-
readonly mime: {
|
|
796
|
-
readonly type: "string";
|
|
797
|
-
};
|
|
798
|
-
readonly size: {
|
|
799
|
-
readonly type: "number";
|
|
800
|
-
};
|
|
801
|
-
readonly last_modified: {
|
|
802
|
-
readonly type: "string";
|
|
803
|
-
readonly format: "date-time";
|
|
804
|
-
};
|
|
805
|
-
readonly filename: {
|
|
806
|
-
readonly type: "string";
|
|
807
|
-
};
|
|
808
|
-
readonly absolute_path: {
|
|
809
|
-
readonly type: "string";
|
|
810
|
-
};
|
|
811
|
-
readonly relative_path: {
|
|
812
|
-
readonly type: "string";
|
|
813
|
-
};
|
|
814
|
-
readonly immutable: {
|
|
815
|
-
readonly type: "boolean";
|
|
816
|
-
};
|
|
817
|
-
readonly link: {
|
|
818
|
-
readonly getter: (value: any) => Promise<string>;
|
|
819
|
-
};
|
|
820
|
-
readonly download_link: {
|
|
821
|
-
readonly getter: (value: any) => Promise<string>;
|
|
822
|
-
};
|
|
823
|
-
};
|
|
824
|
-
readonly actions: {
|
|
825
|
-
readonly deleteAll: {
|
|
826
|
-
readonly name: "Remover";
|
|
827
|
-
readonly ask: true;
|
|
828
|
-
readonly selection: true;
|
|
829
|
-
};
|
|
830
|
-
};
|
|
831
|
-
readonly individualActions: {
|
|
832
|
-
readonly remove: {
|
|
833
|
-
readonly name: "Remover";
|
|
834
|
-
readonly icon: "trash";
|
|
835
|
-
readonly ask: true;
|
|
836
|
-
};
|
|
837
|
-
};
|
|
838
|
-
};
|
|
839
|
-
functions: any;
|
|
840
|
-
}> | undefined;
|
|
788
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
841
789
|
};
|
|
842
790
|
tempFile: Omit<import("@aeriajs/types").Collection<{
|
|
843
791
|
description: {
|
|
@@ -927,37 +875,7 @@ export declare const collections: {
|
|
|
927
875
|
};
|
|
928
876
|
functions: {};
|
|
929
877
|
functionContracts: Partial<{}>;
|
|
930
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
931
|
-
description: {
|
|
932
|
-
readonly $id: "tempFile";
|
|
933
|
-
readonly temporary: {
|
|
934
|
-
readonly index: "created_at";
|
|
935
|
-
readonly expireAfterSeconds: 3600;
|
|
936
|
-
};
|
|
937
|
-
readonly properties: {
|
|
938
|
-
readonly created_at: {
|
|
939
|
-
readonly type: "string";
|
|
940
|
-
readonly format: "date-time";
|
|
941
|
-
};
|
|
942
|
-
readonly absolute_path: {
|
|
943
|
-
readonly type: "string";
|
|
944
|
-
};
|
|
945
|
-
readonly size: {
|
|
946
|
-
readonly type: "number";
|
|
947
|
-
};
|
|
948
|
-
readonly mime: {
|
|
949
|
-
readonly type: "number";
|
|
950
|
-
};
|
|
951
|
-
readonly collection: {
|
|
952
|
-
readonly type: "string";
|
|
953
|
-
};
|
|
954
|
-
readonly filename: {
|
|
955
|
-
readonly type: "string";
|
|
956
|
-
};
|
|
957
|
-
};
|
|
958
|
-
};
|
|
959
|
-
functions: any;
|
|
960
|
-
}> | undefined;
|
|
878
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
961
879
|
};
|
|
962
880
|
log: Omit<import("@aeriajs/types").Collection<{
|
|
963
881
|
description: {
|
|
@@ -1057,36 +975,7 @@ export declare const collections: {
|
|
|
1057
975
|
readonly getAll: import("@aeriajs/types").Contract;
|
|
1058
976
|
readonly insert: import("@aeriajs/types").Contract;
|
|
1059
977
|
}>;
|
|
1060
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
1061
|
-
description: {
|
|
1062
|
-
readonly $id: "log";
|
|
1063
|
-
readonly required: readonly ["context", "message"];
|
|
1064
|
-
readonly properties: {
|
|
1065
|
-
readonly owner: {
|
|
1066
|
-
readonly $ref: "user";
|
|
1067
|
-
readonly noForm: true;
|
|
1068
|
-
};
|
|
1069
|
-
readonly context: {
|
|
1070
|
-
readonly type: "string";
|
|
1071
|
-
};
|
|
1072
|
-
readonly message: {
|
|
1073
|
-
readonly type: "string";
|
|
1074
|
-
};
|
|
1075
|
-
readonly details: {
|
|
1076
|
-
readonly type: "object";
|
|
1077
|
-
readonly variable: true;
|
|
1078
|
-
};
|
|
1079
|
-
readonly created_at: {
|
|
1080
|
-
readonly type: "string";
|
|
1081
|
-
readonly format: "date-time";
|
|
1082
|
-
};
|
|
1083
|
-
};
|
|
1084
|
-
readonly icon: "magnifying-glass";
|
|
1085
|
-
readonly presets: readonly ["view"];
|
|
1086
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
1087
|
-
};
|
|
1088
|
-
functions: any;
|
|
1089
|
-
}> | undefined;
|
|
978
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
1090
979
|
};
|
|
1091
980
|
resourceUsage: Omit<import("@aeriajs/types").Collection<{
|
|
1092
981
|
description: {
|
|
@@ -1131,22 +1020,7 @@ export declare const collections: {
|
|
|
1131
1020
|
};
|
|
1132
1021
|
functions: {};
|
|
1133
1022
|
functionContracts: Partial<{}>;
|
|
1134
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
1135
|
-
description: {
|
|
1136
|
-
readonly $id: "resourceUsage";
|
|
1137
|
-
readonly required: readonly [];
|
|
1138
|
-
readonly properties: {
|
|
1139
|
-
readonly hits: {
|
|
1140
|
-
readonly type: "integer";
|
|
1141
|
-
};
|
|
1142
|
-
readonly last_maximum_reach: {
|
|
1143
|
-
readonly type: "string";
|
|
1144
|
-
readonly format: "date-time";
|
|
1145
|
-
};
|
|
1146
|
-
};
|
|
1147
|
-
};
|
|
1148
|
-
functions: any;
|
|
1149
|
-
}> | undefined;
|
|
1023
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
1150
1024
|
};
|
|
1151
1025
|
user: Omit<import("@aeriajs/types").Collection<{
|
|
1152
1026
|
description: {
|
|
@@ -1252,108 +1126,10 @@ export declare const collections: {
|
|
|
1252
1126
|
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
1253
1127
|
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
1254
1128
|
readonly remove: <TContext_3 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_3["description"]>>, context: TContext_3) => Promise<any>;
|
|
1255
|
-
readonly upload: (_props: unknown, context: import("@aeriajs/types").
|
|
1256
|
-
readonly $id: "user";
|
|
1257
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
1258
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
1259
|
-
readonly indexes: readonly ["name"];
|
|
1260
|
-
readonly freshItem: {
|
|
1261
|
-
readonly active: true;
|
|
1262
|
-
};
|
|
1263
|
-
readonly properties: {
|
|
1264
|
-
readonly name: {
|
|
1265
|
-
readonly type: "string";
|
|
1266
|
-
};
|
|
1267
|
-
readonly given_name: {
|
|
1268
|
-
readonly getter: (document: any) => string;
|
|
1269
|
-
};
|
|
1270
|
-
readonly family_name: {
|
|
1271
|
-
readonly getter: (document: any) => string;
|
|
1272
|
-
};
|
|
1273
|
-
readonly active: {
|
|
1274
|
-
readonly type: "boolean";
|
|
1275
|
-
};
|
|
1276
|
-
readonly roles: {
|
|
1277
|
-
readonly type: "array";
|
|
1278
|
-
readonly items: {
|
|
1279
|
-
readonly type: "string";
|
|
1280
|
-
};
|
|
1281
|
-
readonly uniqueItems: true;
|
|
1282
|
-
};
|
|
1283
|
-
readonly email: {
|
|
1284
|
-
readonly type: "string";
|
|
1285
|
-
readonly inputType: "email";
|
|
1286
|
-
readonly unique: true;
|
|
1287
|
-
};
|
|
1288
|
-
readonly password: {
|
|
1289
|
-
readonly type: "string";
|
|
1290
|
-
readonly inputType: "password";
|
|
1291
|
-
readonly hidden: true;
|
|
1292
|
-
};
|
|
1293
|
-
readonly phone_number: {
|
|
1294
|
-
readonly type: "string";
|
|
1295
|
-
readonly mask: "(##) #####-####";
|
|
1296
|
-
};
|
|
1297
|
-
readonly picture_file: {
|
|
1298
|
-
readonly $ref: "file";
|
|
1299
|
-
readonly accept: readonly ["image/*"];
|
|
1300
|
-
};
|
|
1301
|
-
readonly picture: {
|
|
1302
|
-
readonly getter: (value: any) => any;
|
|
1303
|
-
};
|
|
1304
|
-
readonly group: {
|
|
1305
|
-
readonly type: "string";
|
|
1306
|
-
};
|
|
1307
|
-
readonly self_registered: {
|
|
1308
|
-
readonly type: "boolean";
|
|
1309
|
-
readonly readOnly: true;
|
|
1310
|
-
};
|
|
1311
|
-
readonly updated_at: {
|
|
1312
|
-
readonly type: "string";
|
|
1313
|
-
readonly format: "date-time";
|
|
1314
|
-
};
|
|
1315
|
-
};
|
|
1316
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
1317
|
-
readonly layout: {
|
|
1318
|
-
readonly name: "grid";
|
|
1319
|
-
readonly options: {
|
|
1320
|
-
readonly title: "name";
|
|
1321
|
-
readonly badge: "roles";
|
|
1322
|
-
readonly picture: "picture_file";
|
|
1323
|
-
readonly information: "email";
|
|
1324
|
-
readonly active: "active";
|
|
1325
|
-
readonly translateBadge: true;
|
|
1326
|
-
};
|
|
1327
|
-
};
|
|
1328
|
-
readonly individualActions: {
|
|
1329
|
-
readonly 'ui:spawnEdit': {
|
|
1330
|
-
readonly name: "Editar";
|
|
1331
|
-
readonly icon: "pencil";
|
|
1332
|
-
};
|
|
1333
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
1334
|
-
readonly name: "Mudar senha";
|
|
1335
|
-
readonly icon: "key";
|
|
1336
|
-
readonly fetchItem: true;
|
|
1337
|
-
};
|
|
1338
|
-
};
|
|
1339
|
-
readonly icon: "users";
|
|
1340
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
1341
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
1342
|
-
readonly tableMeta: readonly ["email"];
|
|
1343
|
-
readonly formLayout: {
|
|
1344
|
-
readonly fields: {
|
|
1345
|
-
readonly given_name: {
|
|
1346
|
-
readonly span: 3;
|
|
1347
|
-
};
|
|
1348
|
-
readonly family_name: {
|
|
1349
|
-
readonly span: 3;
|
|
1350
|
-
};
|
|
1351
|
-
};
|
|
1352
|
-
};
|
|
1353
|
-
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
1129
|
+
readonly upload: <TContext_4 extends import("@aeriajs/types").Context>(_props: unknown, context: TContext_4) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
1354
1130
|
tempId: any;
|
|
1355
1131
|
}>;
|
|
1356
|
-
readonly removeFile: <
|
|
1132
|
+
readonly removeFile: <TContext_5 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_5) => Promise<any>;
|
|
1357
1133
|
readonly insert: (payload: {
|
|
1358
1134
|
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
1359
1135
|
readonly $id: "user";
|
|
@@ -2311,7 +2087,7 @@ export declare const collections: {
|
|
|
2311
2087
|
grantEverything: true;
|
|
2312
2088
|
};
|
|
2313
2089
|
guest: {
|
|
2314
|
-
grant:
|
|
2090
|
+
grant: "authenticate"[];
|
|
2315
2091
|
};
|
|
2316
2092
|
};
|
|
2317
2093
|
};
|
|
@@ -2518,108 +2294,10 @@ export declare const collections: {
|
|
|
2518
2294
|
readonly get: <TContext extends import("@aeriajs/types").Context, TDocument = import("@aeriajs/types").SchemaWithId<TContext["description"]>>(payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<TContext["description"]>>, context: TContext extends import("@aeriajs/types").Context<any> ? TContext : never, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<TDocument | null>;
|
|
2519
2295
|
readonly getAll: <TContext_1 extends import("@aeriajs/types").Context, TDocument_1 = import("@aeriajs/types").SchemaWithId<TContext_1["description"]>>(_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: TContext_1, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<TDocument_1[]>;
|
|
2520
2296
|
readonly remove: <TContext_3 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<TContext_3["description"]>>, context: TContext_3) => Promise<any>;
|
|
2521
|
-
readonly upload: (_props: unknown, context: import("@aeriajs/types").
|
|
2522
|
-
readonly $id: "user";
|
|
2523
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
2524
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
2525
|
-
readonly indexes: readonly ["name"];
|
|
2526
|
-
readonly freshItem: {
|
|
2527
|
-
readonly active: true;
|
|
2528
|
-
};
|
|
2529
|
-
readonly properties: {
|
|
2530
|
-
readonly name: {
|
|
2531
|
-
readonly type: "string";
|
|
2532
|
-
};
|
|
2533
|
-
readonly given_name: {
|
|
2534
|
-
readonly getter: (document: any) => string;
|
|
2535
|
-
};
|
|
2536
|
-
readonly family_name: {
|
|
2537
|
-
readonly getter: (document: any) => string;
|
|
2538
|
-
};
|
|
2539
|
-
readonly active: {
|
|
2540
|
-
readonly type: "boolean";
|
|
2541
|
-
};
|
|
2542
|
-
readonly roles: {
|
|
2543
|
-
readonly type: "array";
|
|
2544
|
-
readonly items: {
|
|
2545
|
-
readonly type: "string";
|
|
2546
|
-
};
|
|
2547
|
-
readonly uniqueItems: true;
|
|
2548
|
-
};
|
|
2549
|
-
readonly email: {
|
|
2550
|
-
readonly type: "string";
|
|
2551
|
-
readonly inputType: "email";
|
|
2552
|
-
readonly unique: true;
|
|
2553
|
-
};
|
|
2554
|
-
readonly password: {
|
|
2555
|
-
readonly type: "string";
|
|
2556
|
-
readonly inputType: "password";
|
|
2557
|
-
readonly hidden: true;
|
|
2558
|
-
};
|
|
2559
|
-
readonly phone_number: {
|
|
2560
|
-
readonly type: "string";
|
|
2561
|
-
readonly mask: "(##) #####-####";
|
|
2562
|
-
};
|
|
2563
|
-
readonly picture_file: {
|
|
2564
|
-
readonly $ref: "file";
|
|
2565
|
-
readonly accept: readonly ["image/*"];
|
|
2566
|
-
};
|
|
2567
|
-
readonly picture: {
|
|
2568
|
-
readonly getter: (value: any) => any;
|
|
2569
|
-
};
|
|
2570
|
-
readonly group: {
|
|
2571
|
-
readonly type: "string";
|
|
2572
|
-
};
|
|
2573
|
-
readonly self_registered: {
|
|
2574
|
-
readonly type: "boolean";
|
|
2575
|
-
readonly readOnly: true;
|
|
2576
|
-
};
|
|
2577
|
-
readonly updated_at: {
|
|
2578
|
-
readonly type: "string";
|
|
2579
|
-
readonly format: "date-time";
|
|
2580
|
-
};
|
|
2581
|
-
};
|
|
2582
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
2583
|
-
readonly layout: {
|
|
2584
|
-
readonly name: "grid";
|
|
2585
|
-
readonly options: {
|
|
2586
|
-
readonly title: "name";
|
|
2587
|
-
readonly badge: "roles";
|
|
2588
|
-
readonly picture: "picture_file";
|
|
2589
|
-
readonly information: "email";
|
|
2590
|
-
readonly active: "active";
|
|
2591
|
-
readonly translateBadge: true;
|
|
2592
|
-
};
|
|
2593
|
-
};
|
|
2594
|
-
readonly individualActions: {
|
|
2595
|
-
readonly 'ui:spawnEdit': {
|
|
2596
|
-
readonly name: "Editar";
|
|
2597
|
-
readonly icon: "pencil";
|
|
2598
|
-
};
|
|
2599
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
2600
|
-
readonly name: "Mudar senha";
|
|
2601
|
-
readonly icon: "key";
|
|
2602
|
-
readonly fetchItem: true;
|
|
2603
|
-
};
|
|
2604
|
-
};
|
|
2605
|
-
readonly icon: "users";
|
|
2606
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
2607
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
2608
|
-
readonly tableMeta: readonly ["email"];
|
|
2609
|
-
readonly formLayout: {
|
|
2610
|
-
readonly fields: {
|
|
2611
|
-
readonly given_name: {
|
|
2612
|
-
readonly span: 3;
|
|
2613
|
-
};
|
|
2614
|
-
readonly family_name: {
|
|
2615
|
-
readonly span: 3;
|
|
2616
|
-
};
|
|
2617
|
-
};
|
|
2618
|
-
};
|
|
2619
|
-
}>) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
2297
|
+
readonly upload: <TContext_4 extends import("@aeriajs/types").Context>(_props: unknown, context: TContext_4) => Promise<import("@aeriajs/types").Left<import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError> | {
|
|
2620
2298
|
tempId: any;
|
|
2621
2299
|
}>;
|
|
2622
|
-
readonly removeFile: <
|
|
2300
|
+
readonly removeFile: <TContext_5 extends import("@aeriajs/types").Context>(payload: import("@aeriajs/types").RemoveFilePayload, context: TContext_5) => Promise<any>;
|
|
2623
2301
|
readonly insert: (payload: {
|
|
2624
2302
|
what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
2625
2303
|
readonly $id: "user";
|
|
@@ -3584,108 +3262,7 @@ export declare const collections: {
|
|
|
3584
3262
|
readonly getInfo: import("@aeriajs/types").Contract;
|
|
3585
3263
|
readonly getActivationLink: import("@aeriajs/types").Contract;
|
|
3586
3264
|
}>;
|
|
3587
|
-
accessControl: import("@aeriajs/types").AccessControl
|
|
3588
|
-
description: {
|
|
3589
|
-
readonly $id: "user";
|
|
3590
|
-
readonly required: readonly ["name", "roles", "email"];
|
|
3591
|
-
readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
|
|
3592
|
-
readonly indexes: readonly ["name"];
|
|
3593
|
-
readonly freshItem: {
|
|
3594
|
-
readonly active: true;
|
|
3595
|
-
};
|
|
3596
|
-
readonly properties: {
|
|
3597
|
-
readonly name: {
|
|
3598
|
-
readonly type: "string";
|
|
3599
|
-
};
|
|
3600
|
-
readonly given_name: {
|
|
3601
|
-
readonly getter: (document: any) => string;
|
|
3602
|
-
};
|
|
3603
|
-
readonly family_name: {
|
|
3604
|
-
readonly getter: (document: any) => string;
|
|
3605
|
-
};
|
|
3606
|
-
readonly active: {
|
|
3607
|
-
readonly type: "boolean";
|
|
3608
|
-
};
|
|
3609
|
-
readonly roles: {
|
|
3610
|
-
readonly type: "array";
|
|
3611
|
-
readonly items: {
|
|
3612
|
-
readonly type: "string";
|
|
3613
|
-
};
|
|
3614
|
-
readonly uniqueItems: true;
|
|
3615
|
-
};
|
|
3616
|
-
readonly email: {
|
|
3617
|
-
readonly type: "string";
|
|
3618
|
-
readonly inputType: "email";
|
|
3619
|
-
readonly unique: true;
|
|
3620
|
-
};
|
|
3621
|
-
readonly password: {
|
|
3622
|
-
readonly type: "string";
|
|
3623
|
-
readonly inputType: "password";
|
|
3624
|
-
readonly hidden: true;
|
|
3625
|
-
};
|
|
3626
|
-
readonly phone_number: {
|
|
3627
|
-
readonly type: "string";
|
|
3628
|
-
readonly mask: "(##) #####-####";
|
|
3629
|
-
};
|
|
3630
|
-
readonly picture_file: {
|
|
3631
|
-
readonly $ref: "file";
|
|
3632
|
-
readonly accept: readonly ["image/*"];
|
|
3633
|
-
};
|
|
3634
|
-
readonly picture: {
|
|
3635
|
-
readonly getter: (value: any) => any;
|
|
3636
|
-
};
|
|
3637
|
-
readonly group: {
|
|
3638
|
-
readonly type: "string";
|
|
3639
|
-
};
|
|
3640
|
-
readonly self_registered: {
|
|
3641
|
-
readonly type: "boolean";
|
|
3642
|
-
readonly readOnly: true;
|
|
3643
|
-
};
|
|
3644
|
-
readonly updated_at: {
|
|
3645
|
-
readonly type: "string";
|
|
3646
|
-
readonly format: "date-time";
|
|
3647
|
-
};
|
|
3648
|
-
};
|
|
3649
|
-
readonly presets: readonly ["crud", "view", "duplicate"];
|
|
3650
|
-
readonly layout: {
|
|
3651
|
-
readonly name: "grid";
|
|
3652
|
-
readonly options: {
|
|
3653
|
-
readonly title: "name";
|
|
3654
|
-
readonly badge: "roles";
|
|
3655
|
-
readonly picture: "picture_file";
|
|
3656
|
-
readonly information: "email";
|
|
3657
|
-
readonly active: "active";
|
|
3658
|
-
readonly translateBadge: true;
|
|
3659
|
-
};
|
|
3660
|
-
};
|
|
3661
|
-
readonly individualActions: {
|
|
3662
|
-
readonly 'ui:spawnEdit': {
|
|
3663
|
-
readonly name: "Editar";
|
|
3664
|
-
readonly icon: "pencil";
|
|
3665
|
-
};
|
|
3666
|
-
readonly 'route:/dashboard/user/changepass': {
|
|
3667
|
-
readonly name: "Mudar senha";
|
|
3668
|
-
readonly icon: "key";
|
|
3669
|
-
readonly fetchItem: true;
|
|
3670
|
-
};
|
|
3671
|
-
};
|
|
3672
|
-
readonly icon: "users";
|
|
3673
|
-
readonly filters: readonly ["name", "roles", "email", "phone_number"];
|
|
3674
|
-
readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
|
|
3675
|
-
readonly tableMeta: readonly ["email"];
|
|
3676
|
-
readonly formLayout: {
|
|
3677
|
-
readonly fields: {
|
|
3678
|
-
readonly given_name: {
|
|
3679
|
-
readonly span: 3;
|
|
3680
|
-
};
|
|
3681
|
-
readonly family_name: {
|
|
3682
|
-
readonly span: 3;
|
|
3683
|
-
};
|
|
3684
|
-
};
|
|
3685
|
-
};
|
|
3686
|
-
};
|
|
3687
|
-
functions: any;
|
|
3688
|
-
}> | undefined;
|
|
3265
|
+
accessControl: import("@aeriajs/types").AccessControl;
|
|
3689
3266
|
};
|
|
3690
3267
|
};
|
|
3691
3268
|
export type { File, TempFile, Log, ResourceUsage, User, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/builtins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"mongodb": "^6.1.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@aeriajs/api": "^0.0.
|
|
43
|
+
"@aeriajs/api": "^0.0.16",
|
|
44
44
|
"@aeriajs/access-control": "^0.0.7",
|
|
45
45
|
"@aeriajs/entrypoint": "^0.0.7",
|
|
46
46
|
"@aeriajs/common": "^0.0.7",
|