@aeriajs/server 0.0.236 → 0.0.237

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.
Files changed (2) hide show
  1. package/dist/init.d.ts +1 -106
  2. package/package.json +9 -9
package/dist/init.d.ts CHANGED
@@ -17,112 +17,7 @@ export type InitOptions = {
17
17
  export declare const getToken: (request: GenericRequest, context: RouteContext) => Promise<{
18
18
  readonly _tag: "Result";
19
19
  readonly error: undefined;
20
- readonly result: import("@aeriajs/types").UnauthenticatedToken | AuthenticatedToken<true, import("@aeriajs/types").UserRole, Omit<import("@aeriajs/types").SchemaWithId<{
21
- readonly $id: "user";
22
- readonly icon: "users";
23
- readonly required: readonly ["name", "roles", "email"];
24
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
25
- readonly indexes: readonly ["name"];
26
- readonly unique: readonly ["email"];
27
- readonly properties: {
28
- readonly name: {
29
- readonly type: "string";
30
- readonly minLength: 1;
31
- };
32
- readonly given_name: {
33
- readonly getter: (doc: object) => string | undefined;
34
- };
35
- readonly family_name: {
36
- readonly getter: (doc: object) => string | undefined;
37
- };
38
- readonly active: {
39
- readonly type: "boolean";
40
- };
41
- readonly roles: {
42
- readonly type: "array";
43
- readonly items: {
44
- readonly type: "string";
45
- };
46
- readonly uniqueItems: true;
47
- readonly minItems: 1;
48
- };
49
- readonly email: {
50
- readonly type: "string";
51
- readonly inputType: "email";
52
- readonly minLength: 3;
53
- };
54
- readonly password: {
55
- readonly type: "string";
56
- readonly inputType: "password";
57
- readonly hidden: true;
58
- };
59
- readonly phone_number: {
60
- readonly type: "string";
61
- readonly mask: "(##) #####-####";
62
- };
63
- readonly picture_file: {
64
- readonly $ref: "file";
65
- readonly accept: readonly ["image/*"];
66
- };
67
- readonly picture: {
68
- readonly getter: (doc: object) => Promise<string> | undefined;
69
- };
70
- readonly self_registered: {
71
- readonly type: "boolean";
72
- readonly readOnly: true;
73
- };
74
- readonly updated_at: {
75
- readonly type: "string";
76
- readonly format: "date-time";
77
- };
78
- };
79
- readonly presets: readonly ["crud", "duplicate"];
80
- readonly layout: {
81
- readonly name: "grid";
82
- readonly options: {
83
- readonly title: "name";
84
- readonly badge: "roles";
85
- readonly picture: "picture_file";
86
- readonly information: "email";
87
- readonly active: "active";
88
- readonly translateBadge: true;
89
- };
90
- };
91
- readonly individualActions: {
92
- readonly changePassword: {
93
- readonly label: "change_password";
94
- readonly icon: "key";
95
- readonly translate: true;
96
- readonly route: {
97
- readonly name: "/dashboard/user/changepass";
98
- readonly fetchItem: true;
99
- };
100
- };
101
- readonly copyRedefinePasswordLink: {
102
- readonly label: "copy_redefine_password_link";
103
- readonly icon: "link";
104
- readonly translate: true;
105
- };
106
- readonly copyActivationLink: {
107
- readonly label: "copy_activation_link";
108
- readonly icon: "link";
109
- readonly translate: true;
110
- };
111
- };
112
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
113
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
114
- readonly tableMeta: readonly ["email"];
115
- readonly formLayout: {
116
- readonly fields: {
117
- readonly given_name: {
118
- readonly span: 3;
119
- };
120
- readonly family_name: {
121
- readonly span: 3;
122
- };
123
- };
124
- };
125
- }, {}>, "_id" | "roles">>;
20
+ readonly result: import("@aeriajs/types").UnauthenticatedToken | AuthenticatedToken<true, import("@aeriajs/types").UserRole>;
126
21
  } | {
127
22
  readonly _tag: "Error";
128
23
  readonly error: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/server",
3
- "version": "0.0.236",
3
+ "version": "0.0.237",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,14 +33,14 @@
33
33
  "mongodb": "^6.5.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@aeriajs/core": "^0.0.234",
37
- "@aeriajs/builtins": "^0.0.234",
38
- "@aeriajs/common": "^0.0.132",
39
- "@aeriajs/entrypoint": "^0.0.136",
40
- "@aeriajs/http": "^0.0.160",
41
- "@aeriajs/node-http": "^0.0.160",
42
- "@aeriajs/server": "^0.0.236",
43
- "@aeriajs/types": "^0.0.114",
36
+ "@aeriajs/core": "^0.0.235",
37
+ "@aeriajs/builtins": "^0.0.235",
38
+ "@aeriajs/common": "^0.0.133",
39
+ "@aeriajs/entrypoint": "^0.0.137",
40
+ "@aeriajs/http": "^0.0.161",
41
+ "@aeriajs/node-http": "^0.0.161",
42
+ "@aeriajs/server": "^0.0.237",
43
+ "@aeriajs/types": "^0.0.115",
44
44
  "mongodb": "^6.5.0"
45
45
  },
46
46
  "scripts": {