@aeriajs/builtins 0.0.12 → 0.0.14
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 +6 -486
- package/dist/collections/log/index.d.ts +6 -191
- package/dist/collections/resourceUsage/index.d.ts +2 -15
- package/dist/collections/user/index.d.ts +9 -1944
- package/dist/functions/describe.js +1 -2
- package/dist/functions/describe.mjs +5 -6
- package/dist/index.d.ts +556 -3169
- package/package.json +7 -7
|
@@ -44,8 +44,7 @@ const describe = async (contextOrPayload) => {
|
|
|
44
44
|
result.roles = await (0, access_control_1.getAvailableRoles)();
|
|
45
45
|
}
|
|
46
46
|
if (props.router) {
|
|
47
|
-
|
|
48
|
-
result.router = router.routesMeta;
|
|
47
|
+
result.router = await (0, api_1.getEndpoints)();
|
|
49
48
|
}
|
|
50
49
|
if (props.noSerialize || !('response' in contextOrPayload)) {
|
|
51
50
|
return result;
|
|
@@ -168,14 +168,14 @@ function _ts_generator(thisArg, body) {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
import { createContext, preloadDescription } from "@aeriajs/api";
|
|
172
|
-
import { getCollections
|
|
171
|
+
import { createContext, preloadDescription, getEndpoints } from "@aeriajs/api";
|
|
172
|
+
import { getCollections } from "@aeriajs/entrypoint";
|
|
173
173
|
import { serialize, isLeft, left, unwrapEither } from "@aeriajs/common";
|
|
174
174
|
import { getAvailableRoles } from "@aeriajs/access-control";
|
|
175
175
|
import { authenticate } from "../collections/user/authenticate.mjs";
|
|
176
176
|
export var describe = function() {
|
|
177
177
|
var _ref = _async_to_generator(function(contextOrPayload) {
|
|
178
|
-
var _props_collections, result, props, authEither, _tmp, error, auth, collections, retrievedCollections, descriptions, _tmp1, _tmp2, _i, collectionName, candidate, collection, rawDescription, description
|
|
178
|
+
var _props_collections, result, props, authEither, _tmp, error, auth, collections, retrievedCollections, descriptions, _tmp1, _tmp2, _i, collectionName, candidate, collection, rawDescription, description;
|
|
179
179
|
return _ts_generator(this, function(_state) {
|
|
180
180
|
switch(_state.label){
|
|
181
181
|
case 0:
|
|
@@ -275,11 +275,10 @@ export var describe = function() {
|
|
|
275
275
|
];
|
|
276
276
|
return [
|
|
277
277
|
4,
|
|
278
|
-
|
|
278
|
+
getEndpoints()
|
|
279
279
|
];
|
|
280
280
|
case 11:
|
|
281
|
-
router = _state.sent();
|
|
282
|
-
result.router = router.routesMeta;
|
|
281
|
+
result.router = _state.sent();
|
|
283
282
|
_state.label = 12;
|
|
284
283
|
case 12:
|
|
285
284
|
if (props.noSerialize || !("response" in contextOrPayload)) {
|