@aeriajs/builtins 0.0.0
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/LICENSE +19 -0
- package/README.md +6 -0
- package/dist/collections/file/description.d.ts +50 -0
- package/dist/collections/file/description.js +70 -0
- package/dist/collections/file/description.mjs +258 -0
- package/dist/collections/file/download.d.ts +13 -0
- package/dist/collections/file/download.js +78 -0
- package/dist/collections/file/download.mjs +232 -0
- package/dist/collections/file/index.d.ts +1183 -0
- package/dist/collections/file/index.js +49 -0
- package/dist/collections/file/index.mjs +46 -0
- package/dist/collections/file/insert.d.ts +7 -0
- package/dist/collections/file/insert.js +44 -0
- package/dist/collections/file/insert.mjs +246 -0
- package/dist/collections/file/remove.d.ts +3 -0
- package/dist/collections/file/remove.js +28 -0
- package/dist/collections/file/remove.mjs +184 -0
- package/dist/collections/file/removeAll.d.ts +3 -0
- package/dist/collections/file/removeAll.js +30 -0
- package/dist/collections/file/removeAll.mjs +194 -0
- package/dist/collections/index.d.ts +4 -0
- package/dist/collections/index.js +20 -0
- package/dist/collections/index.mjs +4 -0
- package/dist/collections/log/index.d.ts +458 -0
- package/dist/collections/log/index.js +46 -0
- package/dist/collections/log/index.mjs +45 -0
- package/dist/collections/resourceUsage/index.d.ts +57 -0
- package/dist/collections/resourceUsage/index.js +19 -0
- package/dist/collections/resourceUsage/index.mjs +16 -0
- package/dist/collections/user/activate.d.ts +10 -0
- package/dist/collections/user/activate.js +65 -0
- package/dist/collections/user/activate.mjs +247 -0
- package/dist/collections/user/authenticate.d.ts +24 -0
- package/dist/collections/user/authenticate.js +103 -0
- package/dist/collections/user/authenticate.mjs +398 -0
- package/dist/collections/user/createAccount.d.ts +101 -0
- package/dist/collections/user/createAccount.js +66 -0
- package/dist/collections/user/createAccount.mjs +219 -0
- package/dist/collections/user/description.d.ts +103 -0
- package/dist/collections/user/description.js +146 -0
- package/dist/collections/user/description.mjs +151 -0
- package/dist/collections/user/getActivationLink.d.ts +2 -0
- package/dist/collections/user/getActivationLink.js +15 -0
- package/dist/collections/user/getActivationLink.mjs +156 -0
- package/dist/collections/user/getInfo.d.ts +14 -0
- package/dist/collections/user/getInfo.js +39 -0
- package/dist/collections/user/getInfo.mjs +192 -0
- package/dist/collections/user/index.d.ts +3992 -0
- package/dist/collections/user/index.js +37 -0
- package/dist/collections/user/index.mjs +36 -0
- package/dist/collections/user/insert.d.ts +5 -0
- package/dist/collections/user/insert.js +35 -0
- package/dist/collections/user/insert.mjs +156 -0
- package/dist/functions/describe.d.ts +2 -0
- package/dist/functions/describe.js +54 -0
- package/dist/functions/describe.mjs +302 -0
- package/dist/functions/index.d.ts +1 -0
- package/dist/functions/index.js +17 -0
- package/dist/functions/index.mjs +1 -0
- package/dist/index.d.ts +5701 -0
- package/dist/index.js +39 -0
- package/dist/index.mjs +11 -0
- package/package.json +60 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2
|
+
try {
|
|
3
|
+
var info = gen[key](arg);
|
|
4
|
+
var value = info.value;
|
|
5
|
+
} catch (error) {
|
|
6
|
+
reject(error);
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
if (info.done) {
|
|
10
|
+
resolve(value);
|
|
11
|
+
} else {
|
|
12
|
+
Promise.resolve(value).then(_next, _throw);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function _async_to_generator(fn) {
|
|
16
|
+
return function() {
|
|
17
|
+
var self = this, args = arguments;
|
|
18
|
+
return new Promise(function(resolve, reject) {
|
|
19
|
+
var gen = fn.apply(self, args);
|
|
20
|
+
function _next(value) {
|
|
21
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
22
|
+
}
|
|
23
|
+
function _throw(err) {
|
|
24
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
25
|
+
}
|
|
26
|
+
_next(undefined);
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function _ts_generator(thisArg, body) {
|
|
31
|
+
var f, y, t, g, _ = {
|
|
32
|
+
label: 0,
|
|
33
|
+
sent: function() {
|
|
34
|
+
if (t[0] & 1) throw t[1];
|
|
35
|
+
return t[1];
|
|
36
|
+
},
|
|
37
|
+
trys: [],
|
|
38
|
+
ops: []
|
|
39
|
+
};
|
|
40
|
+
return g = {
|
|
41
|
+
next: verb(0),
|
|
42
|
+
"throw": verb(1),
|
|
43
|
+
"return": verb(2)
|
|
44
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
45
|
+
return this;
|
|
46
|
+
}), g;
|
|
47
|
+
function verb(n) {
|
|
48
|
+
return function(v) {
|
|
49
|
+
return step([
|
|
50
|
+
n,
|
|
51
|
+
v
|
|
52
|
+
]);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function step(op) {
|
|
56
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
57
|
+
while(_)try {
|
|
58
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
59
|
+
if (y = 0, t) op = [
|
|
60
|
+
op[0] & 2,
|
|
61
|
+
t.value
|
|
62
|
+
];
|
|
63
|
+
switch(op[0]){
|
|
64
|
+
case 0:
|
|
65
|
+
case 1:
|
|
66
|
+
t = op;
|
|
67
|
+
break;
|
|
68
|
+
case 4:
|
|
69
|
+
_.label++;
|
|
70
|
+
return {
|
|
71
|
+
value: op[1],
|
|
72
|
+
done: false
|
|
73
|
+
};
|
|
74
|
+
case 5:
|
|
75
|
+
_.label++;
|
|
76
|
+
y = op[1];
|
|
77
|
+
op = [
|
|
78
|
+
0
|
|
79
|
+
];
|
|
80
|
+
continue;
|
|
81
|
+
case 7:
|
|
82
|
+
op = _.ops.pop();
|
|
83
|
+
_.trys.pop();
|
|
84
|
+
continue;
|
|
85
|
+
default:
|
|
86
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
87
|
+
_ = 0;
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
91
|
+
_.label = op[1];
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
95
|
+
_.label = t[1];
|
|
96
|
+
t = op;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
if (t && _.label < t[2]) {
|
|
100
|
+
_.label = t[2];
|
|
101
|
+
_.ops.push(op);
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
if (t[2]) _.ops.pop();
|
|
105
|
+
_.trys.pop();
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
op = body.call(thisArg, _);
|
|
109
|
+
} catch (e) {
|
|
110
|
+
op = [
|
|
111
|
+
6,
|
|
112
|
+
e
|
|
113
|
+
];
|
|
114
|
+
y = 0;
|
|
115
|
+
} finally{
|
|
116
|
+
f = t = 0;
|
|
117
|
+
}
|
|
118
|
+
if (op[0] & 5) throw op[1];
|
|
119
|
+
return {
|
|
120
|
+
value: op[0] ? op[1] : void 0,
|
|
121
|
+
done: true
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
import { removeAll as originalRemoveAll } from "@aeriajs/api";
|
|
126
|
+
import fs from "fs/promises";
|
|
127
|
+
export var removeAll = function() {
|
|
128
|
+
var _ref = _async_to_generator(function(payload, context) {
|
|
129
|
+
var files, file, err;
|
|
130
|
+
return _ts_generator(this, function(_state) {
|
|
131
|
+
switch(_state.label){
|
|
132
|
+
case 0:
|
|
133
|
+
files = context.collection.model.find({
|
|
134
|
+
_id: {
|
|
135
|
+
$in: payload.filters
|
|
136
|
+
}
|
|
137
|
+
}, {
|
|
138
|
+
projection: {
|
|
139
|
+
absolute_path: 1
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
_state.label = 1;
|
|
143
|
+
case 1:
|
|
144
|
+
return [
|
|
145
|
+
4,
|
|
146
|
+
files.next()
|
|
147
|
+
];
|
|
148
|
+
case 2:
|
|
149
|
+
if (!(file = _state.sent())) return [
|
|
150
|
+
3,
|
|
151
|
+
7
|
|
152
|
+
];
|
|
153
|
+
_state.label = 3;
|
|
154
|
+
case 3:
|
|
155
|
+
_state.trys.push([
|
|
156
|
+
3,
|
|
157
|
+
5,
|
|
158
|
+
,
|
|
159
|
+
6
|
|
160
|
+
]);
|
|
161
|
+
return [
|
|
162
|
+
4,
|
|
163
|
+
fs.unlink(file.absolute_path)
|
|
164
|
+
];
|
|
165
|
+
case 4:
|
|
166
|
+
_state.sent();
|
|
167
|
+
return [
|
|
168
|
+
3,
|
|
169
|
+
6
|
|
170
|
+
];
|
|
171
|
+
case 5:
|
|
172
|
+
err = _state.sent();
|
|
173
|
+
console.trace(err);
|
|
174
|
+
return [
|
|
175
|
+
3,
|
|
176
|
+
6
|
|
177
|
+
];
|
|
178
|
+
case 6:
|
|
179
|
+
return [
|
|
180
|
+
3,
|
|
181
|
+
1
|
|
182
|
+
];
|
|
183
|
+
case 7:
|
|
184
|
+
return [
|
|
185
|
+
2,
|
|
186
|
+
originalRemoveAll(payload, context)
|
|
187
|
+
];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
return function removeAll(payload, context) {
|
|
192
|
+
return _ref.apply(this, arguments);
|
|
193
|
+
};
|
|
194
|
+
}();
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./file/index.js"), exports);
|
|
18
|
+
__exportStar(require("./log/index.js"), exports);
|
|
19
|
+
__exportStar(require("./resourceUsage/index.js"), exports);
|
|
20
|
+
__exportStar(require("./user/index.js"), exports);
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
export declare const log: Omit<import("@aeriajs/types").Collection<{
|
|
2
|
+
description: {
|
|
3
|
+
readonly $id: "log";
|
|
4
|
+
readonly required: readonly ["context", "message"];
|
|
5
|
+
readonly properties: {
|
|
6
|
+
readonly owner: {
|
|
7
|
+
readonly $ref: "user";
|
|
8
|
+
readonly noForm: true;
|
|
9
|
+
};
|
|
10
|
+
readonly context: {
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
};
|
|
13
|
+
readonly message: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
};
|
|
16
|
+
readonly details: {
|
|
17
|
+
readonly type: "object";
|
|
18
|
+
readonly variable: true;
|
|
19
|
+
};
|
|
20
|
+
readonly created_at: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly format: "date-time";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly icon: "magnifying-glass";
|
|
26
|
+
readonly presets: readonly ["view"];
|
|
27
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
28
|
+
};
|
|
29
|
+
functions: {
|
|
30
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
|
|
31
|
+
readonly $id: "log";
|
|
32
|
+
readonly required: readonly ["context", "message"];
|
|
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>> | null, 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>>;
|
|
215
|
+
};
|
|
216
|
+
}>, "description" | "functions" | "item"> & {
|
|
217
|
+
item: import("@aeriajs/types").SchemaWithId<{
|
|
218
|
+
readonly $id: "log";
|
|
219
|
+
readonly required: readonly ["context", "message"];
|
|
220
|
+
readonly properties: {
|
|
221
|
+
readonly owner: {
|
|
222
|
+
readonly $ref: "user";
|
|
223
|
+
readonly noForm: true;
|
|
224
|
+
};
|
|
225
|
+
readonly context: {
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
};
|
|
228
|
+
readonly message: {
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
};
|
|
231
|
+
readonly details: {
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly variable: true;
|
|
234
|
+
};
|
|
235
|
+
readonly created_at: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly format: "date-time";
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
readonly icon: "magnifying-glass";
|
|
241
|
+
readonly presets: readonly ["view"];
|
|
242
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
243
|
+
}>;
|
|
244
|
+
description: {
|
|
245
|
+
readonly $id: "log";
|
|
246
|
+
readonly required: readonly ["context", "message"];
|
|
247
|
+
readonly properties: {
|
|
248
|
+
readonly owner: {
|
|
249
|
+
readonly $ref: "user";
|
|
250
|
+
readonly noForm: true;
|
|
251
|
+
};
|
|
252
|
+
readonly context: {
|
|
253
|
+
readonly type: "string";
|
|
254
|
+
};
|
|
255
|
+
readonly message: {
|
|
256
|
+
readonly type: "string";
|
|
257
|
+
};
|
|
258
|
+
readonly details: {
|
|
259
|
+
readonly type: "object";
|
|
260
|
+
readonly variable: true;
|
|
261
|
+
};
|
|
262
|
+
readonly created_at: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly format: "date-time";
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
readonly icon: "magnifying-glass";
|
|
268
|
+
readonly presets: readonly ["view"];
|
|
269
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
270
|
+
};
|
|
271
|
+
functions: {
|
|
272
|
+
readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
|
|
273
|
+
readonly $id: "log";
|
|
274
|
+
readonly required: readonly ["context", "message"];
|
|
275
|
+
readonly properties: {
|
|
276
|
+
readonly owner: {
|
|
277
|
+
readonly $ref: "user";
|
|
278
|
+
readonly noForm: true;
|
|
279
|
+
};
|
|
280
|
+
readonly context: {
|
|
281
|
+
readonly type: "string";
|
|
282
|
+
};
|
|
283
|
+
readonly message: {
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
};
|
|
286
|
+
readonly details: {
|
|
287
|
+
readonly type: "object";
|
|
288
|
+
readonly variable: true;
|
|
289
|
+
};
|
|
290
|
+
readonly created_at: {
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
readonly format: "date-time";
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
readonly icon: "magnifying-glass";
|
|
296
|
+
readonly presets: readonly ["view"];
|
|
297
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
298
|
+
}>>, context: import("@aeriajs/types").Context<{
|
|
299
|
+
readonly $id: "log";
|
|
300
|
+
readonly required: readonly ["context", "message"];
|
|
301
|
+
readonly properties: {
|
|
302
|
+
readonly owner: {
|
|
303
|
+
readonly $ref: "user";
|
|
304
|
+
readonly noForm: true;
|
|
305
|
+
};
|
|
306
|
+
readonly context: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
};
|
|
309
|
+
readonly message: {
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
};
|
|
312
|
+
readonly details: {
|
|
313
|
+
readonly type: "object";
|
|
314
|
+
readonly variable: true;
|
|
315
|
+
};
|
|
316
|
+
readonly created_at: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly format: "date-time";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
readonly icon: "magnifying-glass";
|
|
322
|
+
readonly presets: readonly ["view"];
|
|
323
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
324
|
+
}>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
325
|
+
readonly $id: "log";
|
|
326
|
+
readonly required: readonly ["context", "message"];
|
|
327
|
+
readonly properties: {
|
|
328
|
+
readonly owner: {
|
|
329
|
+
readonly $ref: "user";
|
|
330
|
+
readonly noForm: true;
|
|
331
|
+
};
|
|
332
|
+
readonly context: {
|
|
333
|
+
readonly type: "string";
|
|
334
|
+
};
|
|
335
|
+
readonly message: {
|
|
336
|
+
readonly type: "string";
|
|
337
|
+
};
|
|
338
|
+
readonly details: {
|
|
339
|
+
readonly type: "object";
|
|
340
|
+
readonly variable: true;
|
|
341
|
+
};
|
|
342
|
+
readonly created_at: {
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
readonly format: "date-time";
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
readonly icon: "magnifying-glass";
|
|
348
|
+
readonly presets: readonly ["view"];
|
|
349
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
350
|
+
}> | null>;
|
|
351
|
+
readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | null, context: import("@aeriajs/types").Context<{
|
|
352
|
+
readonly $id: "log";
|
|
353
|
+
readonly required: readonly ["context", "message"];
|
|
354
|
+
readonly properties: {
|
|
355
|
+
readonly owner: {
|
|
356
|
+
readonly $ref: "user";
|
|
357
|
+
readonly noForm: true;
|
|
358
|
+
};
|
|
359
|
+
readonly context: {
|
|
360
|
+
readonly type: "string";
|
|
361
|
+
};
|
|
362
|
+
readonly message: {
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
};
|
|
365
|
+
readonly details: {
|
|
366
|
+
readonly type: "object";
|
|
367
|
+
readonly variable: true;
|
|
368
|
+
};
|
|
369
|
+
readonly created_at: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
readonly format: "date-time";
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
readonly icon: "magnifying-glass";
|
|
375
|
+
readonly presets: readonly ["view"];
|
|
376
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
377
|
+
}>, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
|
|
378
|
+
readonly $id: "log";
|
|
379
|
+
readonly required: readonly ["context", "message"];
|
|
380
|
+
readonly properties: {
|
|
381
|
+
readonly owner: {
|
|
382
|
+
readonly $ref: "user";
|
|
383
|
+
readonly noForm: true;
|
|
384
|
+
};
|
|
385
|
+
readonly context: {
|
|
386
|
+
readonly type: "string";
|
|
387
|
+
};
|
|
388
|
+
readonly message: {
|
|
389
|
+
readonly type: "string";
|
|
390
|
+
};
|
|
391
|
+
readonly details: {
|
|
392
|
+
readonly type: "object";
|
|
393
|
+
readonly variable: true;
|
|
394
|
+
};
|
|
395
|
+
readonly created_at: {
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
readonly format: "date-time";
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
readonly icon: "magnifying-glass";
|
|
401
|
+
readonly presets: readonly ["view"];
|
|
402
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
403
|
+
}>[]>;
|
|
404
|
+
readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<{
|
|
405
|
+
readonly $id: "log";
|
|
406
|
+
readonly required: readonly ["context", "message"];
|
|
407
|
+
readonly properties: {
|
|
408
|
+
readonly owner: {
|
|
409
|
+
readonly $ref: "user";
|
|
410
|
+
readonly noForm: true;
|
|
411
|
+
};
|
|
412
|
+
readonly context: {
|
|
413
|
+
readonly type: "string";
|
|
414
|
+
};
|
|
415
|
+
readonly message: {
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
};
|
|
418
|
+
readonly details: {
|
|
419
|
+
readonly type: "object";
|
|
420
|
+
readonly variable: true;
|
|
421
|
+
};
|
|
422
|
+
readonly created_at: {
|
|
423
|
+
readonly type: "string";
|
|
424
|
+
readonly format: "date-time";
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
readonly icon: "magnifying-glass";
|
|
428
|
+
readonly presets: readonly ["view"];
|
|
429
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
430
|
+
}>>, context: import("@aeriajs/types").Context<{
|
|
431
|
+
readonly $id: "log";
|
|
432
|
+
readonly required: readonly ["context", "message"];
|
|
433
|
+
readonly properties: {
|
|
434
|
+
readonly owner: {
|
|
435
|
+
readonly $ref: "user";
|
|
436
|
+
readonly noForm: true;
|
|
437
|
+
};
|
|
438
|
+
readonly context: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
};
|
|
441
|
+
readonly message: {
|
|
442
|
+
readonly type: "string";
|
|
443
|
+
};
|
|
444
|
+
readonly details: {
|
|
445
|
+
readonly type: "object";
|
|
446
|
+
readonly variable: true;
|
|
447
|
+
};
|
|
448
|
+
readonly created_at: {
|
|
449
|
+
readonly type: "string";
|
|
450
|
+
readonly format: "date-time";
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly icon: "magnifying-glass";
|
|
454
|
+
readonly presets: readonly ["view"];
|
|
455
|
+
readonly filters: readonly ["context", "message", "owner"];
|
|
456
|
+
}>, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
|
|
457
|
+
};
|
|
458
|
+
};
|