lakutata 2.0.56 → 2.0.57
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/com/entrypoint.cjs +2 -0
- package/com/entrypoint.d.ts +1 -1
- package/com/entrypoint.mjs +2 -0
- package/decorator/ctrl.d.ts +8 -1
- package/lakutata.cjs +6 -4
- package/lakutata.mjs +2 -0
- package/package.json +1 -1
- package/src/components/entrypoint/Entrypoint.cjs +853 -742
- package/src/components/entrypoint/Entrypoint.mjs +822 -711
- package/src/components/entrypoint/exceptions/InvalidActionGroupException.cjs +34 -0
- package/src/components/entrypoint/exceptions/InvalidActionGroupException.mjs +28 -0
- package/src/lib/core/Application.cjs +9 -7
- package/src/lib/core/Application.mjs +19 -17
- package/vendor/Package.19.cjs +1 -1
- package/vendor/Package.19.mjs +1 -1
- package/vendor/TypeDef.13.d.ts +61 -6
package/com/entrypoint.cjs
CHANGED
|
@@ -202,6 +202,8 @@ require("../src/lib/helpers/UniqueArray.cjs");
|
|
|
202
202
|
|
|
203
203
|
require("../src/components/entrypoint/lib/AccessControl.cjs");
|
|
204
204
|
|
|
205
|
+
require("../src/components/entrypoint/exceptions/InvalidActionGroupException.cjs");
|
|
206
|
+
|
|
205
207
|
require("node:http");
|
|
206
208
|
|
|
207
209
|
exports.BuildCLIEntrypoint = e.BuildCLIEntrypoint;
|
package/com/entrypoint.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../vendor/TypeDef.2.js';
|
|
2
|
-
export {
|
|
2
|
+
export { y as AccessControlRule, x as AccessControlRuleHandler, A as ActionGroupInfo, B as BaseActionInfo, r as BaseContext, l as BuildCLIEntrypoint, o as BuildEntrypoints, m as BuildHTTPEntrypoint, n as BuildServiceEntrypoint, j as CLIActionInfo, s as CLIContext, C as CLIEntrypoint, c as CLIEntrypointHandler, a as CLIMap, q as ContextType, w as Controller, v as ControllerProperty, p as Entrypoint, k as EntrypointActions, E as EntrypointDestroyer, f as EntrypointDestroyerRegistrar, g as EntrypointOptions, h as HTTPActionInfo, t as HTTPContext, H as HTTPEntrypoint, d as HTTPEntrypointHandler, b as HTTPRouteMap, i as ServiceActionInfo, u as ServiceContext, S as ServiceEntrypoint, e as ServiceEntrypointHandler } from '../vendor/TypeDef.13.js';
|
|
3
3
|
import { E as Exception } from '../vendor/TypeDef.7.js';
|
|
4
4
|
import '../vendor/TypeDef.3.js';
|
|
5
5
|
import '../vendor/TypeDef.5.js';
|
package/com/entrypoint.mjs
CHANGED
package/decorator/ctrl.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../vendor/TypeDef.2.js';
|
|
2
|
-
import {
|
|
2
|
+
import { r as BaseContext, x as AccessControlRuleHandler, w as Controller, v as ControllerProperty, s as CLIContext, t as HTTPContext, u as ServiceContext } from '../vendor/TypeDef.13.js';
|
|
3
3
|
import { M as MethodDecorator } from '../vendor/TypeDef.8.js';
|
|
4
4
|
import { D as DTO } from '../vendor/TypeDef.5.js';
|
|
5
5
|
import { A as ActionPattern } from '../vendor/TypeDef.10.js';
|
|
@@ -126,30 +126,37 @@ declare function HTTPAction<ClassPrototype extends Controller, Method, DTOConstr
|
|
|
126
126
|
|
|
127
127
|
declare function DELETE<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
128
128
|
declare function DELETE<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
129
|
+
declare function DELETE<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
129
130
|
declare function DELETE<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
130
131
|
|
|
131
132
|
declare function GET<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
132
133
|
declare function GET<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
134
|
+
declare function GET<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
133
135
|
declare function GET<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
134
136
|
|
|
135
137
|
declare function HEAD<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
136
138
|
declare function HEAD<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
139
|
+
declare function HEAD<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
137
140
|
declare function HEAD<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
138
141
|
|
|
139
142
|
declare function OPTIONS<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
140
143
|
declare function OPTIONS<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
144
|
+
declare function OPTIONS<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
141
145
|
declare function OPTIONS<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
142
146
|
|
|
143
147
|
declare function PATCH<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
144
148
|
declare function PATCH<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
149
|
+
declare function PATCH<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
145
150
|
declare function PATCH<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
146
151
|
|
|
147
152
|
declare function POST<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
148
153
|
declare function POST<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
154
|
+
declare function POST<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
149
155
|
declare function POST<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
150
156
|
|
|
151
157
|
declare function PUT<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
152
158
|
declare function PUT<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
159
|
+
declare function PUT<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
153
160
|
declare function PUT<ClassPrototype extends Controller, Method, DTOConstructor extends typeof DTO = typeof DTO>(r: string, dtoConstructor: DTOConstructor, actionOptions: ActionOptions<HTTPContext>): MethodDecorator<ClassPrototype, Method, ControllerProperty<ClassPrototype>>;
|
|
154
161
|
|
|
155
162
|
/**
|
package/lakutata.cjs
CHANGED
|
@@ -58,9 +58,9 @@ const h = require("./src/exceptions/DestroyRuntimeContainerException.cjs");
|
|
|
58
58
|
|
|
59
59
|
const A = require("./src/exceptions/InvalidActionPatternDepthException.cjs");
|
|
60
60
|
|
|
61
|
-
const
|
|
61
|
+
const I = require("./src/exceptions/InvalidAssistantFunctionTypeException.cjs");
|
|
62
62
|
|
|
63
|
-
const
|
|
63
|
+
const C = require("./src/exceptions/InvalidObjectTypeException.cjs");
|
|
64
64
|
|
|
65
65
|
const f = require("./src/exceptions/MethodNotFoundException.cjs");
|
|
66
66
|
|
|
@@ -276,6 +276,8 @@ require("./src/components/entrypoint/exceptions/AccessDenyException.cjs");
|
|
|
276
276
|
|
|
277
277
|
require("./src/components/entrypoint/lib/AccessControlRule.cjs");
|
|
278
278
|
|
|
279
|
+
require("./src/components/entrypoint/exceptions/InvalidActionGroupException.cjs");
|
|
280
|
+
|
|
279
281
|
require("./vendor/Package.17.cjs");
|
|
280
282
|
|
|
281
283
|
require("worker_threads");
|
|
@@ -391,8 +393,8 @@ exports.DestroyRuntimeContainerException = h.DestroyRuntimeContainerException;
|
|
|
391
393
|
|
|
392
394
|
exports.InvalidActionPatternDepthException = A.InvalidActionPatternDepthException;
|
|
393
395
|
|
|
394
|
-
exports.InvalidAssistantFunctionTypeException =
|
|
396
|
+
exports.InvalidAssistantFunctionTypeException = I.InvalidAssistantFunctionTypeException;
|
|
395
397
|
|
|
396
|
-
exports.InvalidObjectTypeException =
|
|
398
|
+
exports.InvalidObjectTypeException = C.InvalidObjectTypeException;
|
|
397
399
|
|
|
398
400
|
exports.MethodNotFoundException = f.MethodNotFoundException;
|
package/lakutata.mjs
CHANGED
|
@@ -270,6 +270,8 @@ import "./src/components/entrypoint/exceptions/AccessDenyException.mjs";
|
|
|
270
270
|
|
|
271
271
|
import "./src/components/entrypoint/lib/AccessControlRule.mjs";
|
|
272
272
|
|
|
273
|
+
import "./src/components/entrypoint/exceptions/InvalidActionGroupException.mjs";
|
|
274
|
+
|
|
273
275
|
import "./vendor/Package.17.mjs";
|
|
274
276
|
|
|
275
277
|
import "worker_threads";
|