@aeriajs/builtins 0.0.201 → 0.0.202

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,105 +18,35 @@ export declare const getCurrentUser: (_payload: undefined, context: Context<type
18
18
  } | {
19
19
  readonly _tag: "Result";
20
20
  readonly error: undefined;
21
- readonly result: import("@aeriajs/types").SchemaWithId<{
22
- readonly $id: "user";
23
- readonly icon: "users";
24
- readonly required: readonly ["name", "roles", "email"];
25
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
26
- readonly indexes: readonly ["name"];
27
- readonly properties: {
28
- readonly name: {
29
- readonly type: "string";
30
- };
31
- readonly given_name: {
32
- readonly getter: (doc: object) => string | undefined;
33
- };
34
- readonly family_name: {
35
- readonly getter: (doc: object) => string | undefined;
36
- };
37
- readonly active: {
38
- readonly type: "boolean";
39
- };
40
- readonly roles: {
41
- readonly type: "array";
42
- readonly items: {
43
- readonly type: "string";
44
- };
45
- readonly uniqueItems: true;
46
- readonly minItems: 1;
47
- };
48
- readonly email: {
49
- readonly type: "string";
50
- readonly inputType: "email";
51
- readonly unique: true;
52
- };
53
- readonly password: {
54
- readonly type: "string";
55
- readonly inputType: "password";
56
- readonly hidden: true;
57
- };
58
- readonly phone_number: {
59
- readonly type: "string";
60
- readonly mask: "(##) #####-####";
61
- };
62
- readonly picture_file: {
63
- readonly $ref: "file";
64
- readonly accept: readonly ["image/*"];
65
- };
66
- readonly picture: {
67
- readonly getter: (doc: object) => Promise<string> | undefined;
68
- };
69
- readonly group: {
70
- readonly type: "string";
71
- };
72
- readonly self_registered: {
73
- readonly type: "boolean";
74
- readonly readOnly: true;
75
- };
76
- readonly updated_at: {
77
- readonly type: "string";
78
- readonly format: "date-time";
79
- };
80
- };
81
- readonly presets: readonly ["crud", "duplicate"];
82
- readonly layout: {
83
- readonly name: "grid";
84
- readonly options: {
85
- readonly title: "name";
86
- readonly badge: "roles";
87
- readonly picture: "picture_file";
88
- readonly information: "email";
89
- readonly active: "active";
90
- };
91
- };
92
- readonly individualActions: {
93
- readonly changePassword: {
94
- readonly label: "change_password";
95
- readonly icon: "key";
96
- readonly translate: true;
97
- readonly route: {
98
- readonly name: "/dashboard/user/changepass";
99
- readonly fetchItem: true;
100
- };
101
- };
102
- readonly copyActivationLink: {
103
- readonly label: "copy_activation_link";
104
- readonly icon: "link";
105
- readonly translate: true;
106
- };
107
- };
108
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
109
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
110
- readonly tableMeta: readonly ["email"];
111
- readonly formLayout: {
112
- readonly fields: {
113
- readonly given_name: {
114
- readonly span: 3;
115
- };
116
- readonly family_name: {
117
- readonly span: 3;
118
- };
119
- };
120
- };
121
- }>;
21
+ readonly result: {
22
+ name: string;
23
+ roles: string[];
24
+ email: string;
25
+ picture_file?: {
26
+ name: string;
27
+ link: never;
28
+ type: string;
29
+ size: number;
30
+ last_modified: Date;
31
+ absolute_path: string;
32
+ relative_path: string;
33
+ immutable: boolean;
34
+ download_link: never;
35
+ owner?: Collections["user"]["item"] | undefined;
36
+ updated_at?: Date | undefined;
37
+ created_at?: Date | undefined;
38
+ _id: import("@aeriajs/core").ObjectId;
39
+ } | undefined;
40
+ password?: string | undefined;
41
+ updated_at?: Date | undefined;
42
+ picture?: undefined;
43
+ active?: boolean | undefined;
44
+ phone_number?: string | undefined;
45
+ given_name?: undefined;
46
+ family_name?: undefined;
47
+ group?: string | undefined;
48
+ readonly self_registered?: boolean | undefined;
49
+ created_at?: Date | undefined;
50
+ _id: import("@aeriajs/core").ObjectId;
51
+ };
122
52
  }>;