@aeriajs/builtins 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collections/file/index.d.ts +354 -105
- package/dist/collections/log/index.d.ts +44 -188
- package/dist/collections/resourceUsage/index.d.ts +18 -2
- package/dist/collections/user/index.d.ts +860 -378
- package/dist/index.d.ts +1436 -833
- package/package.json +2 -2
|
@@ -27,193 +27,11 @@ export declare const log: Omit<import("@aeriajs/types").Collection<{
|
|
|
27
27
|
readonly filters: readonly ["context", "message", "owner"];
|
|
28
28
|
};
|
|
29
29
|
functions: {
|
|
30
|
-
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
readonly properties: {
|
|
34
|
-
readonly owner: {
|
|
35
|
-
readonly $ref: "user";
|
|
36
|
-
readonly noForm: true;
|
|
37
|
-
};
|
|
38
|
-
readonly context: {
|
|
39
|
-
readonly type: "string";
|
|
40
|
-
};
|
|
41
|
-
readonly message: {
|
|
42
|
-
readonly type: "string";
|
|
43
|
-
};
|
|
44
|
-
readonly details: {
|
|
45
|
-
readonly type: "object";
|
|
46
|
-
readonly variable: true;
|
|
47
|
-
};
|
|
48
|
-
readonly created_at: {
|
|
49
|
-
readonly type: "string";
|
|
50
|
-
readonly format: "date-time";
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
readonly icon: "magnifying-glass";
|
|
54
|
-
readonly presets: readonly ["view"];
|
|
55
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
56
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
57
|
-
readonly $id: "log";
|
|
58
|
-
readonly required: readonly ["context", "message"];
|
|
59
|
-
readonly properties: {
|
|
60
|
-
readonly owner: {
|
|
61
|
-
readonly $ref: "user";
|
|
62
|
-
readonly noForm: true;
|
|
63
|
-
};
|
|
64
|
-
readonly context: {
|
|
65
|
-
readonly type: "string";
|
|
66
|
-
};
|
|
67
|
-
readonly message: {
|
|
68
|
-
readonly type: "string";
|
|
69
|
-
};
|
|
70
|
-
readonly details: {
|
|
71
|
-
readonly type: "object";
|
|
72
|
-
readonly variable: true;
|
|
73
|
-
};
|
|
74
|
-
readonly created_at: {
|
|
75
|
-
readonly type: "string";
|
|
76
|
-
readonly format: "date-time";
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
readonly icon: "magnifying-glass";
|
|
80
|
-
readonly presets: readonly ["view"];
|
|
81
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
82
|
-
}, {}>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
83
|
-
readonly $id: "log";
|
|
84
|
-
readonly required: readonly ["context", "message"];
|
|
85
|
-
readonly properties: {
|
|
86
|
-
readonly owner: {
|
|
87
|
-
readonly $ref: "user";
|
|
88
|
-
readonly noForm: true;
|
|
89
|
-
};
|
|
90
|
-
readonly context: {
|
|
91
|
-
readonly type: "string";
|
|
92
|
-
};
|
|
93
|
-
readonly message: {
|
|
94
|
-
readonly type: "string";
|
|
95
|
-
};
|
|
96
|
-
readonly details: {
|
|
97
|
-
readonly type: "object";
|
|
98
|
-
readonly variable: true;
|
|
99
|
-
};
|
|
100
|
-
readonly created_at: {
|
|
101
|
-
readonly type: "string";
|
|
102
|
-
readonly format: "date-time";
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
readonly icon: "magnifying-glass";
|
|
106
|
-
readonly presets: readonly ["view"];
|
|
107
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
108
|
-
}> | null>;
|
|
109
|
-
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context<{
|
|
110
|
-
readonly $id: "log";
|
|
111
|
-
readonly required: readonly ["context", "message"];
|
|
112
|
-
readonly properties: {
|
|
113
|
-
readonly owner: {
|
|
114
|
-
readonly $ref: "user";
|
|
115
|
-
readonly noForm: true;
|
|
116
|
-
};
|
|
117
|
-
readonly context: {
|
|
118
|
-
readonly type: "string";
|
|
119
|
-
};
|
|
120
|
-
readonly message: {
|
|
121
|
-
readonly type: "string";
|
|
122
|
-
};
|
|
123
|
-
readonly details: {
|
|
124
|
-
readonly type: "object";
|
|
125
|
-
readonly variable: true;
|
|
126
|
-
};
|
|
127
|
-
readonly created_at: {
|
|
128
|
-
readonly type: "string";
|
|
129
|
-
readonly format: "date-time";
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
readonly icon: "magnifying-glass";
|
|
133
|
-
readonly presets: readonly ["view"];
|
|
134
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
135
|
-
}, {}>, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
136
|
-
readonly $id: "log";
|
|
137
|
-
readonly required: readonly ["context", "message"];
|
|
138
|
-
readonly properties: {
|
|
139
|
-
readonly owner: {
|
|
140
|
-
readonly $ref: "user";
|
|
141
|
-
readonly noForm: true;
|
|
142
|
-
};
|
|
143
|
-
readonly context: {
|
|
144
|
-
readonly type: "string";
|
|
145
|
-
};
|
|
146
|
-
readonly message: {
|
|
147
|
-
readonly type: "string";
|
|
148
|
-
};
|
|
149
|
-
readonly details: {
|
|
150
|
-
readonly type: "object";
|
|
151
|
-
readonly variable: true;
|
|
152
|
-
};
|
|
153
|
-
readonly created_at: {
|
|
154
|
-
readonly type: "string";
|
|
155
|
-
readonly format: "date-time";
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
readonly icon: "magnifying-glass";
|
|
159
|
-
readonly presets: readonly ["view"];
|
|
160
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
161
|
-
}>[]>;
|
|
162
|
-
readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<{
|
|
163
|
-
readonly $id: "log";
|
|
164
|
-
readonly required: readonly ["context", "message"];
|
|
165
|
-
readonly properties: {
|
|
166
|
-
readonly owner: {
|
|
167
|
-
readonly $ref: "user";
|
|
168
|
-
readonly noForm: true;
|
|
169
|
-
};
|
|
170
|
-
readonly context: {
|
|
171
|
-
readonly type: "string";
|
|
172
|
-
};
|
|
173
|
-
readonly message: {
|
|
174
|
-
readonly type: "string";
|
|
175
|
-
};
|
|
176
|
-
readonly details: {
|
|
177
|
-
readonly type: "object";
|
|
178
|
-
readonly variable: true;
|
|
179
|
-
};
|
|
180
|
-
readonly created_at: {
|
|
181
|
-
readonly type: "string";
|
|
182
|
-
readonly format: "date-time";
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
readonly icon: "magnifying-glass";
|
|
186
|
-
readonly presets: readonly ["view"];
|
|
187
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
188
|
-
}>>, context: import("@aeriajs/types").Context<{
|
|
189
|
-
readonly $id: "log";
|
|
190
|
-
readonly required: readonly ["context", "message"];
|
|
191
|
-
readonly properties: {
|
|
192
|
-
readonly owner: {
|
|
193
|
-
readonly $ref: "user";
|
|
194
|
-
readonly noForm: true;
|
|
195
|
-
};
|
|
196
|
-
readonly context: {
|
|
197
|
-
readonly type: "string";
|
|
198
|
-
};
|
|
199
|
-
readonly message: {
|
|
200
|
-
readonly type: "string";
|
|
201
|
-
};
|
|
202
|
-
readonly details: {
|
|
203
|
-
readonly type: "object";
|
|
204
|
-
readonly variable: true;
|
|
205
|
-
};
|
|
206
|
-
readonly created_at: {
|
|
207
|
-
readonly type: "string";
|
|
208
|
-
readonly format: "date-time";
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
readonly icon: "magnifying-glass";
|
|
212
|
-
readonly presets: readonly ["view"];
|
|
213
|
-
readonly filters: readonly ["context", "message", "owner"];
|
|
214
|
-
}, {}>, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
30
|
+
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>;
|
|
31
|
+
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[]>;
|
|
32
|
+
readonly insert: <TContext_2 extends import("@aeriajs/types").Context, TDocument_2 = import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
215
33
|
};
|
|
216
|
-
}>, "description" | "functions" | "item"> & {
|
|
34
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
217
35
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
218
36
|
readonly $id: "log";
|
|
219
37
|
readonly required: readonly ["context", "message"];
|
|
@@ -268,6 +86,44 @@ export declare const log: Omit<import("@aeriajs/types").Collection<{
|
|
|
268
86
|
readonly presets: readonly ["view"];
|
|
269
87
|
readonly filters: readonly ["context", "message", "owner"];
|
|
270
88
|
};
|
|
271
|
-
functions: {
|
|
272
|
-
|
|
89
|
+
functions: {
|
|
90
|
+
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>;
|
|
91
|
+
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[]>;
|
|
92
|
+
readonly insert: <TContext_2 extends import("@aeriajs/types").Context, TDocument_2 = import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>(payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<TContext_2["description"]>>, context: TContext_2, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
93
|
+
};
|
|
94
|
+
functionContracts: Partial<{
|
|
95
|
+
readonly get: import("@aeriajs/types").Contract;
|
|
96
|
+
readonly getAll: import("@aeriajs/types").Contract;
|
|
97
|
+
readonly insert: import("@aeriajs/types").Contract;
|
|
98
|
+
}>;
|
|
99
|
+
accessControl: import("@aeriajs/types").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;
|
|
273
129
|
};
|
|
@@ -12,7 +12,7 @@ export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<{
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
}>, "description" | "functions" | "item"> & {
|
|
15
|
+
}>, "description" | "functions" | "item" | "accessControl" | "functionContracts"> & {
|
|
16
16
|
item: import("@aeriajs/types").SchemaWithId<{
|
|
17
17
|
readonly $id: "resourceUsage";
|
|
18
18
|
readonly required: readonly [];
|
|
@@ -40,5 +40,21 @@ export declare const resourceUsage: Omit<import("@aeriajs/types").Collection<{
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
functions: {};
|
|
43
|
-
functionContracts: {}
|
|
43
|
+
functionContracts: Partial<{}>;
|
|
44
|
+
accessControl: import("@aeriajs/types").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
60
|
};
|