@adaas/a-server 0.0.22 → 0.0.24
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/.conf/tsconfig.base.json +79 -0
- package/.conf/tsconfig.browser.json +32 -0
- package/.conf/tsconfig.node.json +33 -0
- package/LICENSE +10 -19
- package/dist/browser/index.d.mts +1699 -0
- package/dist/browser/index.mjs +2935 -0
- package/dist/browser/index.mjs.map +1 -0
- package/dist/node/A-Request.entity-8_9MCXT2.d.ts +533 -0
- package/dist/node/A-Request.entity-r905O60G.d.mts +533 -0
- package/dist/node/A-Response.entity-6qhiV7BE.d.mts +348 -0
- package/dist/node/A-Response.entity-bjh6bofZ.d.ts +348 -0
- package/dist/node/channels/A-Http/A-Http.channel.constants.d.mts +9 -0
- package/dist/node/channels/A-Http/A-Http.channel.constants.d.ts +9 -0
- package/dist/node/channels/A-Http/A-Http.channel.constants.js +13 -0
- package/dist/node/channels/A-Http/A-Http.channel.constants.js.map +1 -0
- package/dist/node/channels/A-Http/A-Http.channel.constants.mjs +12 -0
- package/dist/node/channels/A-Http/A-Http.channel.constants.mjs.map +1 -0
- package/dist/node/channels/A-Http/A-Http.channel.d.mts +23 -0
- package/dist/node/channels/A-Http/A-Http.channel.d.ts +23 -0
- package/dist/node/channels/A-Http/A-Http.channel.error.d.mts +7 -0
- package/dist/node/channels/A-Http/A-Http.channel.error.d.ts +7 -0
- package/dist/node/channels/A-Http/A-Http.channel.error.js +11 -0
- package/dist/node/channels/A-Http/A-Http.channel.error.js.map +1 -0
- package/dist/node/channels/A-Http/A-Http.channel.error.mjs +10 -0
- package/dist/node/channels/A-Http/A-Http.channel.error.mjs.map +1 -0
- package/dist/node/channels/A-Http/A-Http.channel.js +122 -0
- package/dist/node/channels/A-Http/A-Http.channel.js.map +1 -0
- package/dist/node/channels/A-Http/A-Http.channel.mjs +110 -0
- package/dist/node/channels/A-Http/A-Http.channel.mjs.map +1 -0
- package/dist/node/channels/A-Http/A-Http.channel.types.d.mts +67 -0
- package/dist/node/channels/A-Http/A-Http.channel.types.d.ts +67 -0
- package/dist/node/channels/A-Http/A-Http.channel.types.js +4 -0
- package/dist/node/channels/A-Http/A-Http.channel.types.js.map +1 -0
- package/dist/node/channels/A-Http/A-Http.channel.types.mjs +3 -0
- package/dist/node/channels/A-Http/A-Http.channel.types.mjs.map +1 -0
- package/dist/node/channels/A-Websockets/A-Websockets.channel.d.mts +7 -0
- package/dist/node/channels/A-Websockets/A-Websockets.channel.d.ts +7 -0
- package/dist/node/channels/A-Websockets/A-Websockets.channel.js +13 -0
- package/dist/node/channels/A-Websockets/A-Websockets.channel.js.map +1 -0
- package/dist/node/channels/A-Websockets/A-Websockets.channel.mjs +12 -0
- package/dist/node/channels/A-Websockets/A-Websockets.channel.mjs.map +1 -0
- package/dist/node/chunk-EQQGB2QZ.mjs +15 -0
- package/dist/node/chunk-EQQGB2QZ.mjs.map +1 -0
- package/dist/node/constants/env.constants.d.mts +12 -0
- package/dist/node/constants/env.constants.d.ts +12 -0
- package/dist/node/constants/env.constants.js +23 -0
- package/dist/node/constants/env.constants.js.map +1 -0
- package/dist/node/constants/env.constants.mjs +22 -0
- package/dist/node/constants/env.constants.mjs.map +1 -0
- package/dist/node/controllers/A-CommandController/A-CommandController.component.d.mts +29 -0
- package/dist/node/controllers/A-CommandController/A-CommandController.component.d.ts +29 -0
- package/dist/node/controllers/A-CommandController/A-CommandController.component.js +55 -0
- package/dist/node/controllers/A-CommandController/A-CommandController.component.js.map +1 -0
- package/dist/node/controllers/A-CommandController/A-CommandController.component.mjs +43 -0
- package/dist/node/controllers/A-CommandController/A-CommandController.component.mjs.map +1 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.d.mts +44 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.d.ts +44 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.js +189 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.js.map +1 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.mjs +177 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.mjs.map +1 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.types.d.mts +2 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.types.d.ts +2 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.types.js +4 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.types.js.map +1 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.types.mjs +3 -0
- package/dist/node/controllers/A-EntityController/A-EntityController.component.types.mjs.map +1 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.component.d.mts +28 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.component.d.ts +28 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.component.js +59 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.component.js.map +1 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.component.mjs +47 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.component.mjs.map +1 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.types.d.mts +2 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.types.d.ts +2 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.types.js +4 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.types.js.map +1 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.types.mjs +3 -0
- package/dist/node/controllers/A-ListingController/A-ListingController.types.mjs.map +1 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.component.d.mts +30 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.component.d.ts +30 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.component.js +46 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.component.js.map +1 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.component.mjs +34 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.component.mjs.map +1 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.types.d.mts +2 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.types.d.ts +2 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.types.js +4 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.types.js.map +1 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.types.mjs +3 -0
- package/dist/node/controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.types.mjs.map +1 -0
- package/dist/node/index.d.mts +51 -0
- package/dist/node/index.d.ts +51 -0
- package/dist/node/index.js +320 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +48 -0
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/lib/A-Request/A-HttpRequestData.context.d.mts +12 -0
- package/dist/node/lib/A-Request/A-HttpRequestData.context.d.ts +12 -0
- package/dist/node/lib/A-Request/A-HttpRequestData.context.js +25 -0
- package/dist/node/lib/A-Request/A-HttpRequestData.context.js.map +1 -0
- package/dist/node/lib/A-Request/A-HttpRequestData.context.mjs +24 -0
- package/dist/node/lib/A-Request/A-HttpRequestData.context.mjs.map +1 -0
- package/dist/node/lib/A-Request/A-HttpServerRequest.context.d.mts +39 -0
- package/dist/node/lib/A-Request/A-HttpServerRequest.context.d.ts +39 -0
- package/dist/node/lib/A-Request/A-HttpServerRequest.context.js +56 -0
- package/dist/node/lib/A-Request/A-HttpServerRequest.context.js.map +1 -0
- package/dist/node/lib/A-Request/A-HttpServerRequest.context.mjs +55 -0
- package/dist/node/lib/A-Request/A-HttpServerRequest.context.mjs.map +1 -0
- package/dist/node/lib/A-Request/A-Request.constants.d.mts +18 -0
- package/dist/node/lib/A-Request/A-Request.constants.d.ts +18 -0
- package/dist/node/lib/A-Request/A-Request.constants.js +22 -0
- package/dist/node/lib/A-Request/A-Request.constants.js.map +1 -0
- package/dist/node/lib/A-Request/A-Request.constants.mjs +22 -0
- package/dist/node/lib/A-Request/A-Request.constants.mjs.map +1 -0
- package/dist/node/lib/A-Request/A-Request.entity.d.mts +17 -0
- package/dist/node/lib/A-Request/A-Request.entity.d.ts +17 -0
- package/dist/node/lib/A-Request/A-Request.entity.js +651 -0
- package/dist/node/lib/A-Request/A-Request.entity.js.map +1 -0
- package/dist/node/lib/A-Request/A-Request.entity.mjs +639 -0
- package/dist/node/lib/A-Request/A-Request.entity.mjs.map +1 -0
- package/dist/node/lib/A-Request/A-Request.env.d.mts +37 -0
- package/dist/node/lib/A-Request/A-Request.env.d.ts +37 -0
- package/dist/node/lib/A-Request/A-Request.env.js +39 -0
- package/dist/node/lib/A-Request/A-Request.env.js.map +1 -0
- package/dist/node/lib/A-Request/A-Request.env.mjs +38 -0
- package/dist/node/lib/A-Request/A-Request.env.mjs.map +1 -0
- package/dist/node/lib/A-Request/A-Request.error.d.mts +11 -0
- package/dist/node/lib/A-Request/A-Request.error.d.ts +11 -0
- package/dist/node/lib/A-Request/A-Request.error.js +15 -0
- package/dist/node/lib/A-Request/A-Request.error.js.map +1 -0
- package/dist/node/lib/A-Request/A-Request.error.mjs +14 -0
- package/dist/node/lib/A-Request/A-Request.error.mjs.map +1 -0
- package/dist/node/lib/A-Request/A-Request.helper.d.mts +105 -0
- package/dist/node/lib/A-Request/A-Request.helper.d.ts +105 -0
- package/dist/node/lib/A-Request/A-Request.helper.js +181 -0
- package/dist/node/lib/A-Request/A-Request.helper.js.map +1 -0
- package/dist/node/lib/A-Request/A-Request.helper.mjs +180 -0
- package/dist/node/lib/A-Request/A-Request.helper.mjs.map +1 -0
- package/dist/node/lib/A-Request/A-Request.types.d.mts +17 -0
- package/dist/node/lib/A-Request/A-Request.types.d.ts +17 -0
- package/dist/node/lib/A-Request/A-Request.types.js +14 -0
- package/dist/node/lib/A-Request/A-Request.types.js.map +1 -0
- package/dist/node/lib/A-Request/A-Request.types.mjs +14 -0
- package/dist/node/lib/A-Request/A-Request.types.mjs.map +1 -0
- package/dist/node/lib/A-Response/A-Response.constants.d.mts +24 -0
- package/dist/node/lib/A-Response/A-Response.constants.d.ts +24 -0
- package/dist/node/lib/A-Response/A-Response.constants.js +28 -0
- package/dist/node/lib/A-Response/A-Response.constants.js.map +1 -0
- package/dist/node/lib/A-Response/A-Response.constants.mjs +28 -0
- package/dist/node/lib/A-Response/A-Response.constants.mjs.map +1 -0
- package/dist/node/lib/A-Response/A-Response.entity.d.mts +20 -0
- package/dist/node/lib/A-Response/A-Response.entity.d.ts +20 -0
- package/dist/node/lib/A-Response/A-Response.entity.js +608 -0
- package/dist/node/lib/A-Response/A-Response.entity.js.map +1 -0
- package/dist/node/lib/A-Response/A-Response.entity.mjs +596 -0
- package/dist/node/lib/A-Response/A-Response.entity.mjs.map +1 -0
- package/dist/node/lib/A-Response/A-Response.env.d.mts +2 -0
- package/dist/node/lib/A-Response/A-Response.env.d.ts +2 -0
- package/dist/node/lib/A-Response/A-Response.env.js +4 -0
- package/dist/node/lib/A-Response/A-Response.env.js.map +1 -0
- package/dist/node/lib/A-Response/A-Response.env.mjs +3 -0
- package/dist/node/lib/A-Response/A-Response.env.mjs.map +1 -0
- package/dist/node/lib/A-Response/A-Response.error.d.mts +6 -0
- package/dist/node/lib/A-Response/A-Response.error.d.ts +6 -0
- package/dist/node/lib/A-Response/A-Response.error.js +10 -0
- package/dist/node/lib/A-Response/A-Response.error.js.map +1 -0
- package/dist/node/lib/A-Response/A-Response.error.mjs +9 -0
- package/dist/node/lib/A-Response/A-Response.error.mjs.map +1 -0
- package/dist/node/lib/A-Response/A-Response.types.d.mts +20 -0
- package/dist/node/lib/A-Response/A-Response.types.d.ts +20 -0
- package/dist/node/lib/A-Response/A-Response.types.js +4 -0
- package/dist/node/lib/A-Response/A-Response.types.js.map +1 -0
- package/dist/node/lib/A-Response/A-Response.types.mjs +3 -0
- package/dist/node/lib/A-Response/A-Response.types.mjs.map +1 -0
- package/dist/node/lib/A-Server/A-HttpServer.constants.d.mts +7 -0
- package/dist/node/lib/A-Server/A-HttpServer.constants.d.ts +7 -0
- package/dist/node/lib/A-Server/A-HttpServer.constants.js +11 -0
- package/dist/node/lib/A-Server/A-HttpServer.constants.js.map +1 -0
- package/dist/node/lib/A-Server/A-HttpServer.constants.mjs +11 -0
- package/dist/node/lib/A-Server/A-HttpServer.constants.mjs.map +1 -0
- package/dist/node/lib/A-Server/A-HttpServer.container.d.mts +50 -0
- package/dist/node/lib/A-Server/A-HttpServer.container.d.ts +50 -0
- package/dist/node/lib/A-Server/A-HttpServer.container.js +196 -0
- package/dist/node/lib/A-Server/A-HttpServer.container.js.map +1 -0
- package/dist/node/lib/A-Server/A-HttpServer.container.mjs +184 -0
- package/dist/node/lib/A-Server/A-HttpServer.container.mjs.map +1 -0
- package/dist/node/lib/A-Server/A-HttpServer.error.d.mts +54 -0
- package/dist/node/lib/A-Server/A-HttpServer.error.d.ts +54 -0
- package/dist/node/lib/A-Server/A-HttpServer.error.js +118 -0
- package/dist/node/lib/A-Server/A-HttpServer.error.js.map +1 -0
- package/dist/node/lib/A-Server/A-HttpServer.error.mjs +117 -0
- package/dist/node/lib/A-Server/A-HttpServer.error.mjs.map +1 -0
- package/dist/node/lib/A-Server/A-HttpServer.types.d.mts +19 -0
- package/dist/node/lib/A-Server/A-HttpServer.types.d.ts +19 -0
- package/dist/node/lib/A-Server/A-HttpServer.types.js +4 -0
- package/dist/node/lib/A-Server/A-HttpServer.types.js.map +1 -0
- package/dist/node/lib/A-Server/A-HttpServer.types.mjs +3 -0
- package/dist/node/lib/A-Server/A-HttpServer.types.mjs.map +1 -0
- package/dist/node/lib/A-Server/A-Server.context.d.mts +22 -0
- package/dist/node/lib/A-Server/A-Server.context.d.ts +22 -0
- package/dist/node/lib/A-Server/A-Server.context.js +24 -0
- package/dist/node/lib/A-Server/A-Server.context.js.map +1 -0
- package/dist/node/lib/A-Server/A-Server.context.mjs +23 -0
- package/dist/node/lib/A-Server/A-Server.context.mjs.map +1 -0
- package/dist/node/lib/A-Server/A-Server.error.d.mts +14 -0
- package/dist/node/lib/A-Server/A-Server.error.d.ts +14 -0
- package/dist/node/lib/A-Server/A-Server.error.js +26 -0
- package/dist/node/lib/A-Server/A-Server.error.js.map +1 -0
- package/dist/node/lib/A-Server/A-Server.error.mjs +25 -0
- package/dist/node/lib/A-Server/A-Server.error.mjs.map +1 -0
- package/dist/node/lib/A-Server/A-Server.types.d.mts +26 -0
- package/dist/node/lib/A-Server/A-Server.types.d.ts +26 -0
- package/dist/node/lib/A-Server/A-Server.types.js +4 -0
- package/dist/node/lib/A-Server/A-Server.types.js.map +1 -0
- package/dist/node/lib/A-Server/A-Server.types.mjs +3 -0
- package/dist/node/lib/A-Server/A-Server.types.mjs.map +1 -0
- package/dist/node/lib/A-ServerController/A-ServerController.component.d.mts +29 -0
- package/dist/node/lib/A-ServerController/A-ServerController.component.d.ts +29 -0
- package/dist/node/lib/A-ServerController/A-ServerController.component.js +49 -0
- package/dist/node/lib/A-ServerController/A-ServerController.component.js.map +1 -0
- package/dist/node/lib/A-ServerController/A-ServerController.component.mjs +37 -0
- package/dist/node/lib/A-ServerController/A-ServerController.component.mjs.map +1 -0
- package/dist/node/lib/A-ServerController/A-ServerController.types.d.mts +2 -0
- package/dist/node/lib/A-ServerController/A-ServerController.types.d.ts +2 -0
- package/dist/node/lib/A-ServerController/A-ServerController.types.js +4 -0
- package/dist/node/lib/A-ServerController/A-ServerController.types.js.map +1 -0
- package/dist/node/lib/A-ServerController/A-ServerController.types.mjs +3 -0
- package/dist/node/lib/A-ServerController/A-ServerController.types.mjs.map +1 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.entity.d.mts +49 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.entity.d.ts +49 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.entity.js +91 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.entity.js.map +1 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.entity.mjs +90 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.entity.mjs.map +1 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.types.d.mts +22 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.types.d.ts +22 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.types.js +10 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.types.js.map +1 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.types.mjs +10 -0
- package/dist/node/lib/A-ServerEntityList/A-EntityList.types.mjs.map +1 -0
- package/dist/node/lib/A-ServerListQuery/A-ServerListQueryFilter.context.d.mts +13 -0
- package/dist/node/lib/A-ServerListQuery/A-ServerListQueryFilter.context.d.ts +13 -0
- package/dist/node/lib/A-ServerListQuery/A-ServerListQueryFilter.context.js +32 -0
- package/dist/node/lib/A-ServerListQuery/A-ServerListQueryFilter.context.js.map +1 -0
- package/dist/node/lib/A-ServerListQuery/A-ServerListQueryFilter.context.mjs +31 -0
- package/dist/node/lib/A-ServerListQuery/A-ServerListQueryFilter.context.mjs.map +1 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.component.d.mts +48 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.component.d.ts +48 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.component.js +88 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.component.js.map +1 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.component.mjs +76 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.component.mjs.map +1 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.constants.d.mts +24 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.constants.d.ts +24 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.constants.js +33 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.constants.js.map +1 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.constants.mjs +33 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.constants.mjs.map +1 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.types.d.mts +12 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.types.d.ts +12 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.types.js +4 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.types.js.map +1 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.types.mjs +3 -0
- package/dist/node/lib/A-ServerLogger/A-ServerLogger.types.mjs.map +1 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.component.d.mts +6 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.component.d.ts +6 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.component.js +18 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.component.js.map +1 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.component.mjs +17 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.component.mjs.map +1 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.constants.d.mts +2 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.constants.d.ts +2 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.constants.js +4 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.constants.js.map +1 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.constants.mjs +3 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.constants.mjs.map +1 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.types.d.mts +2 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.types.d.ts +2 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.types.js +4 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.types.js.map +1 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.types.mjs +3 -0
- package/dist/node/lib/A-ServerMiddleware/A-ServerMiddleware.types.mjs.map +1 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.component.d.mts +31 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.component.d.ts +31 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.component.js +90 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.component.js.map +1 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.component.mjs +78 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.component.mjs.map +1 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.constants.d.mts +9 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.constants.d.ts +9 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.constants.js +14 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.constants.js.map +1 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.constants.mjs +14 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.constants.mjs.map +1 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.context.d.mts +36 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.context.d.ts +36 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.context.js +60 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.context.js.map +1 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.context.mjs +59 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.context.mjs.map +1 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.types.d.mts +23 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.types.d.ts +23 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.types.js +4 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.types.js.map +1 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.types.mjs +3 -0
- package/dist/node/lib/A-ServerProxy/A-ServerProxy.types.mjs.map +1 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.constants.d.mts +20 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.constants.d.ts +20 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.constants.js +25 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.constants.js.map +1 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.constants.mjs +24 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.constants.mjs.map +1 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.entity.d.mts +15 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.entity.d.ts +15 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.entity.js +24 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.entity.js.map +1 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.entity.mjs +23 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.entity.mjs.map +1 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.types.d.mts +6 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.types.d.ts +6 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.types.js +4 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.types.js.map +1 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.types.mjs +3 -0
- package/dist/node/lib/A-ServerRoute/A-ServerRoute.types.mjs.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.component.d.mts +84 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.component.d.ts +84 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.component.js +194 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.component.js.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.component.mjs +184 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.component.mjs.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.constants.d.mts +6 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.constants.d.ts +6 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.constants.js +10 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.constants.js.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.constants.mjs +10 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.constants.mjs.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.meta.d.mts +16 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.meta.d.ts +16 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.meta.js +40 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.meta.js.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.meta.mjs +39 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.meta.mjs.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.types.d.mts +24 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.types.d.ts +24 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.types.js +4 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.types.js.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.types.mjs +3 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouter.types.mjs.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouterDefine.decorator.d.mts +16 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouterDefine.decorator.d.ts +16 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouterDefine.decorator.js +25 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouterDefine.decorator.js.map +1 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouterDefine.decorator.mjs +24 -0
- package/dist/node/lib/A-ServerRouter/A-ServerRouterDefine.decorator.mjs.map +1 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.component.d.mts +65 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.component.d.ts +65 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.component.js +260 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.component.js.map +1 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.component.mjs +248 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.component.mjs.map +1 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.context.d.mts +110 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.context.d.ts +110 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.context.js +180 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.context.js.map +1 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.context.mjs +179 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.context.mjs.map +1 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.types.d.mts +8 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.types.d.ts +8 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.types.js +4 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.types.js.map +1 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.types.mjs +3 -0
- package/dist/node/lib/A-ServerStatic/A-ServerStatic.types.mjs.map +1 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.component.d.mts +29 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.component.d.ts +29 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.component.js +62 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.component.js.map +1 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.component.mjs +50 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.component.mjs.map +1 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.constants.d.mts +5 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.constants.d.ts +5 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.constants.js +14 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.constants.js.map +1 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.constants.mjs +14 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.constants.mjs.map +1 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.types.d.mts +9 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.types.d.ts +9 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.types.js +4 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.types.js.map +1 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.types.mjs +3 -0
- package/dist/node/middlewares/A-ServerCORS/A_ServerCORS.types.mjs.map +1 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.component.d.mts +24 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.component.d.ts +24 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.component.js +94 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.component.js.map +1 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.component.mjs +82 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.component.mjs.map +1 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.error.d.mts +2 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.error.d.ts +2 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.error.js +4 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.error.js.map +1 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.error.mjs +3 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.error.mjs.map +1 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.types.d.mts +2 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.types.d.ts +2 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.types.js +4 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.types.js.map +1 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.types.mjs +3 -0
- package/dist/node/repositories/A-EntityRepository/A-EntityRepository.types.mjs.map +1 -0
- package/examples/simple-server/commands/SignIn.command.ts +17 -1
- package/examples/simple-server/components/Test.controller.ts +8 -7
- package/examples/simple-server/components/Users.repository.ts +28 -26
- package/examples/simple-server/concept.ts +56 -66
- package/examples/simple-server/entities/User/User.entity.ts +17 -7
- package/jest.config.ts +24 -10
- package/package.json +267 -25
- package/src/channels/A-Http/A-Http.channel.constants.ts +6 -7
- package/src/channels/A-Http/A-Http.channel.error.ts +2 -2
- package/src/channels/A-Http/A-Http.channel.ts +76 -125
- package/src/channels/A-Http/A-Http.channel.types.ts +6 -3
- package/src/channels/A-Websockets/A-Websockets.channel.ts +1 -1
- package/src/{components → controllers}/A-CommandController/A-CommandController.component.ts +16 -10
- package/src/{components → controllers}/A-EntityController/A-EntityController.component.ts +24 -28
- package/src/{components → controllers}/A-ListingController/A-ListingController.component.ts +10 -12
- package/src/{components → controllers}/A-ServerHealthMonitor/A-ServerHealthMonitor.component.ts +11 -11
- package/src/index.ts +58 -63
- package/src/lib/A-Request/A-HttpRequestData.context.ts +30 -0
- package/src/lib/A-Request/A-HttpServerRequest.context.ts +103 -0
- package/src/lib/A-Request/A-Request.constants.ts +30 -0
- package/src/lib/A-Request/A-Request.entity.ts +844 -0
- package/src/lib/A-Request/A-Request.env.ts +50 -0
- package/src/lib/A-Request/A-Request.error.ts +11 -0
- package/src/lib/A-Request/A-Request.helper.ts +276 -0
- package/src/lib/A-Request/A-Request.types.ts +284 -0
- package/src/lib/A-Request/README.md +567 -0
- package/src/lib/A-Response/A-Response.constants.ts +24 -0
- package/src/lib/A-Response/A-Response.entity.ts +751 -0
- package/src/lib/A-Response/A-Response.error.ts +6 -0
- package/src/lib/A-Response/A-Response.types.ts +127 -0
- package/src/lib/A-Response/README.md +793 -0
- package/src/lib/A-Server/A-HttpServer.constants.ts +9 -0
- package/src/lib/A-Server/A-HttpServer.container.ts +256 -0
- package/src/lib/A-Server/A-HttpServer.error.ts +165 -0
- package/src/lib/A-Server/A-HttpServer.types.ts +37 -0
- package/src/{context/A-Server/A_Server.context.ts → lib/A-Server/A-Server.context.ts} +6 -7
- package/src/lib/A-Server/A-Server.error.ts +26 -0
- package/src/{components/A-ServerError/A-ServerError.types.ts → lib/A-Server/A-Server.types.ts} +8 -0
- package/src/{components/A-Controller/A-Controller.component.ts → lib/A-ServerController/A-ServerController.component.ts} +5 -5
- package/src/{entities/A_EntityList/A_EntityList.entity.ts → lib/A-ServerEntityList/A-EntityList.entity.ts} +2 -2
- package/src/{entities/A_EntityList/A_EntityList.entity.types.ts → lib/A-ServerEntityList/A-EntityList.types.ts} +2 -2
- package/src/{context/A-ListQueryFilter/A_ListQueryFilter.context.ts → lib/A-ServerListQuery/A-ServerListQueryFilter.context.ts} +1 -1
- package/src/lib/A-ServerLogger/A-ServerLogger.component.ts +121 -0
- package/src/lib/A-ServerLogger/A-ServerLogger.types.ts +13 -0
- package/src/lib/A-ServerMiddleware/A-ServerMiddleware.component.ts +17 -0
- package/src/{components → lib}/A-ServerProxy/A-ServerProxy.component.ts +17 -12
- package/src/{context/A-ProxyConfig/A_ProxyConfig.constants.ts → lib/A-ServerProxy/A-ServerProxy.constants.ts} +1 -1
- package/src/{context/A-ProxyConfig/A_ProxyConfig.context.ts → lib/A-ServerProxy/A-ServerProxy.context.ts} +4 -4
- package/src/{context/A-ProxyConfig/A_ProxyConfig.types.ts → lib/A-ServerProxy/A-ServerProxy.types.ts} +4 -4
- package/src/lib/A-ServerRoute/A-ServerRoute.constants.ts +20 -0
- package/src/lib/A-ServerRoute/A-ServerRoute.entity.ts +48 -0
- package/src/lib/A-ServerRoute/A-ServerRoute.types.ts +6 -0
- package/src/{components/A-Router/A-Router.component.ts → lib/A-ServerRouter/A-ServerRouter.component.ts} +77 -97
- package/src/lib/A-ServerRouter/A-ServerRouter.constants.ts +8 -0
- package/src/lib/A-ServerRouter/A-ServerRouter.meta.ts +48 -0
- package/src/lib/A-ServerRouter/A-ServerRouter.types.ts +27 -0
- package/src/lib/A-ServerRouter/A-ServerRouterDefine.decorator.ts +37 -0
- package/src/{components/A-StaticLoader/A-StaticLoader.component.ts → lib/A-ServerStatic/A-ServerStatic.component.ts} +73 -54
- package/src/{context/A-StaticConfig/A-StaticConfig.context.ts → lib/A-ServerStatic/A-ServerStatic.context.ts} +16 -6
- package/src/{components → middlewares}/A-ServerCORS/A_ServerCORS.component.ts +16 -13
- package/src/{components/A-ServerCORS/A_ServerCORS.component.defaults.ts → middlewares/A-ServerCORS/A_ServerCORS.constants.ts} +2 -2
- package/src/{components → repositories}/A-EntityRepository/A-EntityRepository.component.ts +39 -30
- package/tests/A-HttpChannel.test.ts +41 -48
- package/tests/A-HttpServerError.test.ts +204 -0
- package/tests/A-Request.test.ts +351 -0
- package/tsconfig.json +40 -50
- package/tsup.config.ts +111 -13
- package/dist/index.d.mts +0 -855
- package/dist/index.d.ts +0 -855
- package/dist/index.js +0 -2179
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -2144
- package/dist/index.mjs.map +0 -1
- package/examples/microservices-server/components/controllers/Statistics.controller.ts +0 -18
- package/examples/microservices-server/components/repositories/Memory.repository.ts +0 -66
- package/examples/microservices-server/concept.ts +0 -43
- package/examples/microservices-server/context/MemoryStore.context.ts +0 -31
- package/examples/microservices-server/entities/Order.entity.ts +0 -7
- package/examples/microservices-server/entities/User.entity.ts +0 -8
- package/src/components/A-Router/A-Router.component.types.ts +0 -38
- package/src/components/A-ServerError/A-ServerError.class.ts +0 -98
- package/src/components/A-ServerLogger/A_ServerLogger.component.ts +0 -194
- package/src/components/A-ServerLogger/A_ServerLogger.component.types.ts +0 -14
- package/src/containers/A-Service/A-Service.container.ts +0 -218
- package/src/containers/A-Service/A-Service.container.types.ts +0 -46
- package/src/context/A-EntityFactory/A-EntityFactory.context.ts +0 -163
- package/src/context/A-EntityFactory/A-EntityFactory.context.types.ts +0 -11
- package/src/context/A-HttpChannel/A-HttpChannel.context.ts +0 -36
- package/src/context/A-Server/A_Server.context.types.ts +0 -9
- package/src/entities/A-Request/A-Request.entity.ts +0 -163
- package/src/entities/A-Request/A-Request.entity.types.ts +0 -41
- package/src/entities/A-Response/A-Response.entity.ts +0 -194
- package/src/entities/A-Response/A-Response.entity.types.ts +0 -26
- package/src/entities/A-Route/A-Route.entity.ts +0 -117
- package/tests/A-Service.test.ts +0 -18
- /package/src/{components → controllers}/A-EntityController/A-EntityController.component.types.ts +0 -0
- /package/src/{components/A-Controller/A-Controller.component.types.ts → controllers/A-ListingController/A-ListingController.types.ts} +0 -0
- /package/src/{components/A-ServerHealthMonitor/A-ServerHealthMonitor.component.types.ts → controllers/A-ServerHealthMonitor/A-ServerHealthMonitor.types.ts} +0 -0
- /package/src/{components/A-EntityRepository/A-EntityRepository.error.ts → lib/A-Response/A-Response.env.ts} +0 -0
- /package/src/{components/A-EntityRepository/A-EntityRepository.types.ts → lib/A-ServerController/A-ServerController.types.ts} +0 -0
- /package/src/{components → lib}/A-ServerLogger/A-ServerLogger.constants.ts +0 -0
- /package/src/{components/A-ListingController/A-ListingController.component.types.ts → lib/A-ServerMiddleware/A-ServerMiddleware.constants.ts} +0 -0
- /package/src/{components/A-ServerError/A-ServerError.constants.ts → lib/A-ServerMiddleware/A-ServerMiddleware.types.ts} +0 -0
- /package/src/{components/A-StaticLoader/A-StaticLoader.component.types.ts → lib/A-ServerStatic/A-ServerStatic.types.ts} +0 -0
- /package/src/{components/A-ServerCORS/A_ServerCORS.component.types.ts → middlewares/A-ServerCORS/A_ServerCORS.types.ts} +0 -0
- /package/src/{context/A-StaticConfig/A-StaticConfig.context.types.ts → repositories/A-EntityRepository/A-EntityRepository.error.ts} +0 -0
- /package/src/{entities/A-Route/A-Route.entity.types.ts → repositories/A-EntityRepository/A-EntityRepository.types.ts} +0 -0
package/dist/index.d.mts
DELETED
|
@@ -1,855 +0,0 @@
|
|
|
1
|
-
import { A_Component, A_Fragment, A_Error, A_TYPES__Entity_Serialized, A_TYPES__Error_Init, A_TYPES__Error_Serialized, A_Entity, A_Scope, A_Container, ASEID, A_TYPES__ComponentMeta } from '@adaas/a-concept';
|
|
2
|
-
import { A_Channel, A_Logger, A_Config, A_Polyfill } from '@adaas/a-utils';
|
|
3
|
-
import * as http from 'http';
|
|
4
|
-
import { IncomingMessage, IncomingHttpHeaders, ServerResponse } from 'http';
|
|
5
|
-
import { A_TYPES__Required } from '@adaas/a-concept/dist/src/types/A_Common.types';
|
|
6
|
-
import { A_TYPES__ConceptENVVariables } from '@adaas/a-concept/dist/src/constants/env.constants';
|
|
7
|
-
|
|
8
|
-
type A_SERVER_TYPES__ServerFeatures = [
|
|
9
|
-
A_SERVER_TYPES__ServerFeature.beforeStart,
|
|
10
|
-
A_SERVER_TYPES__ServerFeature.afterStart,
|
|
11
|
-
A_SERVER_TYPES__ServerFeature.beforeStop,
|
|
12
|
-
A_SERVER_TYPES__ServerFeature.afterStop,
|
|
13
|
-
A_SERVER_TYPES__ServerFeature.onRequest
|
|
14
|
-
];
|
|
15
|
-
declare enum A_SERVER_TYPES__ServerFeature {
|
|
16
|
-
beforeStart = "beforeStart",
|
|
17
|
-
afterStart = "afterStart",
|
|
18
|
-
beforeStop = "beforeStop",
|
|
19
|
-
afterStop = "afterStop",
|
|
20
|
-
beforeRequest = "beforeRequest",
|
|
21
|
-
onRequest = "onRequest",
|
|
22
|
-
afterRequest = "afterRequest"
|
|
23
|
-
}
|
|
24
|
-
type A_SERVER_TYPES__ServerConstructor$1 = {
|
|
25
|
-
name: string;
|
|
26
|
-
version: string;
|
|
27
|
-
controllers: Array<A_Component>;
|
|
28
|
-
entities: Array<A_Fragment>;
|
|
29
|
-
extensions: Array<A_Component>;
|
|
30
|
-
};
|
|
31
|
-
declare enum A_SERVER_TYPES__ServerMethod {
|
|
32
|
-
GET = "GET",
|
|
33
|
-
POST = "POST",
|
|
34
|
-
PUT = "PUT",
|
|
35
|
-
DELETE = "DELETE",
|
|
36
|
-
PATCH = "PATCH",
|
|
37
|
-
OPTIONS = "OPTIONS",
|
|
38
|
-
HEAD = "HEAD",
|
|
39
|
-
CONNECT = "CONNECT",
|
|
40
|
-
TRACE = "TRACE",
|
|
41
|
-
DEFAULT = "DEFAULT"
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type A_SERVER_TYPES__HttpChannelSendParams<M extends Record<string, any> = any> = {
|
|
45
|
-
/**
|
|
46
|
-
* HTTP Method
|
|
47
|
-
*/
|
|
48
|
-
method: A_SERVER_TYPES__ServerMethod;
|
|
49
|
-
/**
|
|
50
|
-
* Request URL
|
|
51
|
-
*/
|
|
52
|
-
url: string;
|
|
53
|
-
/**
|
|
54
|
-
* Request Body or Query Parameters
|
|
55
|
-
*/
|
|
56
|
-
data?: any;
|
|
57
|
-
/**
|
|
58
|
-
* Request Configuration
|
|
59
|
-
*/
|
|
60
|
-
config?: Partial<A_SERVER_TYPES__HttpChannelRequestConfig<M>>;
|
|
61
|
-
};
|
|
62
|
-
type A_SERVER_TYPES__HttpChannelRequestParams<M extends Record<string, any> = any> = {
|
|
63
|
-
/**
|
|
64
|
-
* HTTP Method
|
|
65
|
-
*/
|
|
66
|
-
method: A_SERVER_TYPES__ServerMethod;
|
|
67
|
-
/**
|
|
68
|
-
* Request URL
|
|
69
|
-
*/
|
|
70
|
-
url: string;
|
|
71
|
-
/**
|
|
72
|
-
* Request Body or Query Parameters
|
|
73
|
-
*/
|
|
74
|
-
data?: any;
|
|
75
|
-
/**
|
|
76
|
-
* Request Configuration
|
|
77
|
-
*/
|
|
78
|
-
config?: Partial<A_SERVER_TYPES__HttpChannelRequestConfig<M>>;
|
|
79
|
-
};
|
|
80
|
-
type A_SERVER_TYPES__HttpChannelRequestConfig<M extends Record<string, any> = any> = {
|
|
81
|
-
/**
|
|
82
|
-
* Response Type
|
|
83
|
-
*/
|
|
84
|
-
responseType: "json" | "text" | "blob";
|
|
85
|
-
/**
|
|
86
|
-
* Request Headers
|
|
87
|
-
*/
|
|
88
|
-
headers: Record<string, string>;
|
|
89
|
-
/**
|
|
90
|
-
* Query Parameters
|
|
91
|
-
*/
|
|
92
|
-
params: Record<string, any>;
|
|
93
|
-
/**
|
|
94
|
-
* Metadata
|
|
95
|
-
*/
|
|
96
|
-
meta: M;
|
|
97
|
-
/**
|
|
98
|
-
* Throw on Error
|
|
99
|
-
*/
|
|
100
|
-
throwOnError: boolean;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
declare class A_HTTPChannel_RequestContext<T extends any = any> extends A_Fragment {
|
|
104
|
-
url: string;
|
|
105
|
-
method: A_SERVER_TYPES__ServerMethod;
|
|
106
|
-
data?: any;
|
|
107
|
-
config?: Partial<A_SERVER_TYPES__HttpChannelRequestParams['config']>;
|
|
108
|
-
constructor(params: A_SERVER_TYPES__HttpChannelRequestParams);
|
|
109
|
-
result?: T;
|
|
110
|
-
error?: any;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
declare class A_HTTPChannel extends A_Channel {
|
|
114
|
-
protected baseUrl?: string;
|
|
115
|
-
connect(): Promise<void>;
|
|
116
|
-
/**
|
|
117
|
-
* Allows to send an HTTP request without expecting a response
|
|
118
|
-
*
|
|
119
|
-
* @param params
|
|
120
|
-
*/
|
|
121
|
-
send(params: A_SERVER_TYPES__HttpChannelSendParams): Promise<void>;
|
|
122
|
-
/**
|
|
123
|
-
* Makes an HTTP request
|
|
124
|
-
*
|
|
125
|
-
* @param params
|
|
126
|
-
* @returns
|
|
127
|
-
*/
|
|
128
|
-
request<T = any, M extends Record<string, any> = any>(
|
|
129
|
-
/**
|
|
130
|
-
* Provide request parameters
|
|
131
|
-
*/
|
|
132
|
-
params: A_SERVER_TYPES__HttpChannelRequestParams<M>): Promise<A_HTTPChannel_RequestContext<T>>;
|
|
133
|
-
post<T, M extends Record<string, any> = any>(url: string, body?: any, config?: Partial<A_SERVER_TYPES__HttpChannelRequestConfig>): Promise<A_HTTPChannel_RequestContext<T>>;
|
|
134
|
-
get<T, M extends Record<string, any> = any>(url: string, params?: any, config?: Partial<A_SERVER_TYPES__HttpChannelRequestConfig>): Promise<A_HTTPChannel_RequestContext<T>>;
|
|
135
|
-
put<T, M extends Record<string, any> = any>(url: string, body?: any, config?: Partial<A_SERVER_TYPES__HttpChannelRequestConfig>): Promise<A_HTTPChannel_RequestContext<T>>;
|
|
136
|
-
delete<T, M extends Record<string, any> = any>(url: string, params?: any, config?: Partial<A_SERVER_TYPES__HttpChannelRequestConfig>): Promise<A_HTTPChannel_RequestContext<T>>;
|
|
137
|
-
protected buildURL(path?: string, params?: Record<string, any>): string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
declare class A_HTTPChannelError extends A_Error {
|
|
141
|
-
static readonly HttpRequestError = "HTTP Channel Request Error";
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
declare const A_SERVER_CONSTANTS__DEFAULT_ENV_VARIABLES: {
|
|
145
|
-
/**
|
|
146
|
-
* Port for the server to listen on
|
|
147
|
-
* [!] Default is 3000
|
|
148
|
-
* @default 3000
|
|
149
|
-
*/
|
|
150
|
-
readonly A_SERVER_PORT: "A_SERVER_PORT";
|
|
151
|
-
};
|
|
152
|
-
type A_TYPES__ServerENVVariables = (typeof A_SERVER_CONSTANTS__DEFAULT_ENV_VARIABLES)[keyof typeof A_SERVER_CONSTANTS__DEFAULT_ENV_VARIABLES][];
|
|
153
|
-
declare const A_SERVER_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY: readonly ["A_SERVER_PORT"];
|
|
154
|
-
|
|
155
|
-
type A_SERVER_TYPES__RequestConstructor = {
|
|
156
|
-
/**
|
|
157
|
-
* Should correspond to Response id
|
|
158
|
-
*/
|
|
159
|
-
id: string;
|
|
160
|
-
request: IncomingMessage;
|
|
161
|
-
scope: string;
|
|
162
|
-
};
|
|
163
|
-
type A_SERVER_TYPES__RequestSerialized = {} & A_TYPES__Entity_Serialized;
|
|
164
|
-
type A_SERVER_TYPES__RequestMethods = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS' | 'HEAD' | 'CONNECT' | 'TRACE' | 'DEFAULT';
|
|
165
|
-
declare enum A_SERVER_TYPES__RequestEvent {
|
|
166
|
-
Error = "error",
|
|
167
|
-
Finish = "finish",
|
|
168
|
-
Data = "data",
|
|
169
|
-
End = "end",
|
|
170
|
-
Close = "close"
|
|
171
|
-
}
|
|
172
|
-
type A_SERVER_TYPES__RequestEventCallback = (request: A_Request) => void;
|
|
173
|
-
|
|
174
|
-
declare class A_Route {
|
|
175
|
-
url: string;
|
|
176
|
-
method: A_SERVER_TYPES__RequestMethods;
|
|
177
|
-
constructor(url: string | RegExp, method: A_SERVER_TYPES__RequestMethods);
|
|
178
|
-
constructor(url: string | RegExp);
|
|
179
|
-
/**
|
|
180
|
-
* returns path only without query and hash
|
|
181
|
-
*/
|
|
182
|
-
get path(): string;
|
|
183
|
-
get params(): string[];
|
|
184
|
-
extractParams(url: string): Record<string, string>;
|
|
185
|
-
extractQuery(url: string): Record<string, string>;
|
|
186
|
-
toString(): string;
|
|
187
|
-
toRegExp(): RegExp;
|
|
188
|
-
toAFeatureExtension(extensionScope?: Array<string>): RegExp;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
type A_SERVER_TYPES__ServerError_Init = {
|
|
192
|
-
/**
|
|
193
|
-
* HTTP Status Code of the error
|
|
194
|
-
*/
|
|
195
|
-
status?: number;
|
|
196
|
-
} & A_TYPES__Error_Init;
|
|
197
|
-
type A_SERVER_TYPES__ServerError_Serialized = {
|
|
198
|
-
/**
|
|
199
|
-
* HTTP Status Code of the error
|
|
200
|
-
*/
|
|
201
|
-
status: number;
|
|
202
|
-
} & A_TYPES__Error_Serialized;
|
|
203
|
-
|
|
204
|
-
declare class A_ServerError extends A_Error<A_SERVER_TYPES__ServerError_Init, A_SERVER_TYPES__ServerError_Serialized> {
|
|
205
|
-
status: number;
|
|
206
|
-
protected fromConstructor(params: A_SERVER_TYPES__ServerError_Init): void;
|
|
207
|
-
toJSON(): A_SERVER_TYPES__ServerError_Serialized;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
declare class A_Request<_ReqBodyType = any, _ResponseType = any, _ParamsType extends Record<string, string> = any, _QueryType = any> extends A_Entity<A_SERVER_TYPES__RequestConstructor, A_SERVER_TYPES__RequestSerialized> {
|
|
211
|
-
static get namespace(): string;
|
|
212
|
-
req: IncomingMessage;
|
|
213
|
-
body: _ReqBodyType;
|
|
214
|
-
params: _ParamsType;
|
|
215
|
-
query: _QueryType;
|
|
216
|
-
response?: _ResponseType;
|
|
217
|
-
error?: A_ServerError;
|
|
218
|
-
/**
|
|
219
|
-
* Duration of the request in milliseconds
|
|
220
|
-
*/
|
|
221
|
-
duration: number;
|
|
222
|
-
fromNew(newEntity: A_SERVER_TYPES__RequestConstructor): void;
|
|
223
|
-
get startedAt(): Date | undefined;
|
|
224
|
-
get url(): string;
|
|
225
|
-
get method(): A_SERVER_TYPES__RequestMethods;
|
|
226
|
-
get headers(): IncomingHttpHeaders;
|
|
227
|
-
get route(): A_Route;
|
|
228
|
-
pipe(destination: NodeJS.WritableStream, options?: {
|
|
229
|
-
end?: boolean | undefined;
|
|
230
|
-
}): NodeJS.WritableStream;
|
|
231
|
-
init(): Promise<void>;
|
|
232
|
-
extractParams(url: string): Record<string, string>;
|
|
233
|
-
extractQuery(url: string): Record<string, string>;
|
|
234
|
-
parseBody(): Promise<any>;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
type A_SERVER_TYPES__ResponseConstructor = {
|
|
238
|
-
/**
|
|
239
|
-
* Should correspond to Request id
|
|
240
|
-
*/
|
|
241
|
-
id: string;
|
|
242
|
-
scope: string;
|
|
243
|
-
response: ServerResponse;
|
|
244
|
-
};
|
|
245
|
-
declare enum A_SERVER_TYPES__ResponseEvent {
|
|
246
|
-
Error = "error",
|
|
247
|
-
Finish = "finish",
|
|
248
|
-
Data = "data",
|
|
249
|
-
End = "end",
|
|
250
|
-
Close = "close"
|
|
251
|
-
}
|
|
252
|
-
type A_SERVER_TYPES__ResponseSerialized = A_TYPES__Entity_Serialized;
|
|
253
|
-
type A_SERVER_TYPES__SendResponseObject<_ResponseType = any> = Record<string, _ResponseType>;
|
|
254
|
-
|
|
255
|
-
declare class A_Response<_ResponseType = any> extends A_Entity<A_SERVER_TYPES__ResponseConstructor, A_SERVER_TYPES__ResponseSerialized> {
|
|
256
|
-
/**
|
|
257
|
-
* Duration of the request in milliseconds
|
|
258
|
-
*/
|
|
259
|
-
duration: number;
|
|
260
|
-
private res;
|
|
261
|
-
private data;
|
|
262
|
-
error?: A_ServerError;
|
|
263
|
-
fromNew(newEntity: A_SERVER_TYPES__ResponseConstructor): void;
|
|
264
|
-
get headersSent(): boolean;
|
|
265
|
-
get original(): ServerResponse<http.IncomingMessage>;
|
|
266
|
-
get statusCode(): number;
|
|
267
|
-
init(): Promise<void>;
|
|
268
|
-
failed(error: A_ServerError | A_Error | Error | any): void;
|
|
269
|
-
send(data?: string | object): void;
|
|
270
|
-
destroy(error: Error | unknown, scope?: A_Scope): Promise<any>;
|
|
271
|
-
json(data?: object): void;
|
|
272
|
-
status(code: number): this;
|
|
273
|
-
writeHead(statusCode: number, headers?: Record<string, string> | IncomingHttpHeaders | any): void;
|
|
274
|
-
setHeader(key: string, value: string): void;
|
|
275
|
-
getHeader(key: string): string | number | string[] | undefined;
|
|
276
|
-
add(key: string, data: _ResponseType): void;
|
|
277
|
-
toResponse(): A_SERVER_TYPES__SendResponseObject<_ResponseType>;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* A-Service is a container that can run different types of services, such as HTTP servers, workers, etc.
|
|
282
|
-
* Depending on the provided config and configuration, it will load the necessary components and start the service.
|
|
283
|
-
*
|
|
284
|
-
*/
|
|
285
|
-
declare class A_Service extends A_Container {
|
|
286
|
-
private server;
|
|
287
|
-
port: number;
|
|
288
|
-
load(): Promise<void>;
|
|
289
|
-
protected listen(): Promise<void>;
|
|
290
|
-
protected close(): Promise<void>;
|
|
291
|
-
start(): Promise<void>;
|
|
292
|
-
beforeStart(): Promise<void>;
|
|
293
|
-
afterStart(): Promise<void>;
|
|
294
|
-
stop(): Promise<void>;
|
|
295
|
-
beforeRequest(scope: A_Scope): Promise<void>;
|
|
296
|
-
afterRequest(scope: A_Scope): Promise<void>;
|
|
297
|
-
onRequest(request: IncomingMessage, response: ServerResponse): Promise<void>;
|
|
298
|
-
protected convertToAServer(request: IncomingMessage, response: ServerResponse): Promise<{
|
|
299
|
-
req: A_Request;
|
|
300
|
-
res: A_Response;
|
|
301
|
-
}>;
|
|
302
|
-
protected generateRequestId(method: string, url: string): Promise<string>;
|
|
303
|
-
beforeStop(): Promise<void>;
|
|
304
|
-
afterStop(): Promise<void>;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
type A_SERVER_TYPES__ServerConstructor = {
|
|
308
|
-
name: string;
|
|
309
|
-
version: string;
|
|
310
|
-
routes: A_Route[];
|
|
311
|
-
port: number;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
declare class A_Server extends A_Fragment {
|
|
315
|
-
port: number;
|
|
316
|
-
version: string;
|
|
317
|
-
protected _routes: A_Route[];
|
|
318
|
-
constructor(params: A_TYPES__Required<Partial<A_SERVER_TYPES__ServerConstructor>, [
|
|
319
|
-
'port',
|
|
320
|
-
'name'
|
|
321
|
-
]>);
|
|
322
|
-
/**
|
|
323
|
-
* A list of routes that the server will listen to
|
|
324
|
-
*/
|
|
325
|
-
get routes(): A_Route[];
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
type A_SERVER_TYPES__ProxyConfigConstructor = Record<string, string | Partial<A_SERVER_TYPES__ProxyConfigConstructorConfig>>;
|
|
329
|
-
type A_SERVER_TYPES__ProxyConfigConstructorConfig = {
|
|
330
|
-
hostname: string;
|
|
331
|
-
protocol: 'http' | 'https' | string;
|
|
332
|
-
port: number;
|
|
333
|
-
path: string;
|
|
334
|
-
method: A_SERVER_TYPES__RequestMethods;
|
|
335
|
-
headers: Record<string, string>;
|
|
336
|
-
};
|
|
337
|
-
type A_SERVER_TYPES__RoutesConfig = {
|
|
338
|
-
route: A_Route;
|
|
339
|
-
protocol: 'http' | 'https' | string;
|
|
340
|
-
hostname: string;
|
|
341
|
-
port: number;
|
|
342
|
-
headers: Record<string, string>;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
declare class A_ProxyConfig extends A_Fragment {
|
|
346
|
-
protected readonly _configs: Array<A_SERVER_TYPES__RoutesConfig>;
|
|
347
|
-
constructor(
|
|
348
|
-
/**
|
|
349
|
-
* Setup proxy configs, where key is the path to match, and value is either a full URL or a partial config object
|
|
350
|
-
*/
|
|
351
|
-
configs?: A_SERVER_TYPES__ProxyConfigConstructor);
|
|
352
|
-
/**
|
|
353
|
-
* Returns all configured proxy configs
|
|
354
|
-
*
|
|
355
|
-
*/
|
|
356
|
-
get configs(): Array<A_SERVER_TYPES__RoutesConfig>;
|
|
357
|
-
/**
|
|
358
|
-
* Checks if a given path is configured in the proxy
|
|
359
|
-
*
|
|
360
|
-
* @param path
|
|
361
|
-
* @returns
|
|
362
|
-
*/
|
|
363
|
-
has(path: string): boolean;
|
|
364
|
-
/**
|
|
365
|
-
* Returns the proxy configuration for a given path, if exists
|
|
366
|
-
*
|
|
367
|
-
* @param path
|
|
368
|
-
* @returns
|
|
369
|
-
*/
|
|
370
|
-
config(path: string): A_SERVER_TYPES__RoutesConfig | undefined;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
interface A_StaticAlias {
|
|
374
|
-
alias: string;
|
|
375
|
-
path: string;
|
|
376
|
-
directory: string;
|
|
377
|
-
enabled?: boolean;
|
|
378
|
-
}
|
|
379
|
-
interface A_StaticDirectoryConfig {
|
|
380
|
-
path: string;
|
|
381
|
-
directory: string;
|
|
382
|
-
alias?: string;
|
|
383
|
-
}
|
|
384
|
-
declare class A_StaticConfig extends A_Fragment {
|
|
385
|
-
readonly directories: Array<string>;
|
|
386
|
-
private _aliases;
|
|
387
|
-
private _directoryConfigs;
|
|
388
|
-
constructor(
|
|
389
|
-
/**
|
|
390
|
-
* Setup directories to serve static files from, comma separated
|
|
391
|
-
*/
|
|
392
|
-
directories?: string[],
|
|
393
|
-
/**
|
|
394
|
-
* Custom directory configurations with aliases
|
|
395
|
-
*/
|
|
396
|
-
directoryConfigs?: A_StaticDirectoryConfig[]);
|
|
397
|
-
private initializeDefaultAliases;
|
|
398
|
-
private initializeCustomAliases;
|
|
399
|
-
/**
|
|
400
|
-
* Add a custom static file alias
|
|
401
|
-
* @param alias - The URL path alias (e.g., '/assets')
|
|
402
|
-
* @param directory - The local directory path
|
|
403
|
-
* @param path - Optional custom path (defaults to alias)
|
|
404
|
-
*/
|
|
405
|
-
addAlias(alias: string, directory: string, path?: string): void;
|
|
406
|
-
/**
|
|
407
|
-
* Remove a static file alias
|
|
408
|
-
* @param aliasPath - The path of the alias to remove
|
|
409
|
-
*/
|
|
410
|
-
removeAlias(aliasPath: string): boolean;
|
|
411
|
-
/**
|
|
412
|
-
* Enable or disable an alias
|
|
413
|
-
* @param aliasPath - The path of the alias
|
|
414
|
-
* @param enabled - Whether to enable or disable
|
|
415
|
-
*/
|
|
416
|
-
setAliasEnabled(aliasPath: string, enabled: boolean): boolean;
|
|
417
|
-
/**
|
|
418
|
-
* Get all configured aliases
|
|
419
|
-
*/
|
|
420
|
-
getAliases(): A_StaticAlias[];
|
|
421
|
-
/**
|
|
422
|
-
* Get enabled aliases only
|
|
423
|
-
*/
|
|
424
|
-
getEnabledAliases(): A_StaticAlias[];
|
|
425
|
-
/**
|
|
426
|
-
* Find the best matching alias for a given request path
|
|
427
|
-
* @param requestPath - The request path to match
|
|
428
|
-
*/
|
|
429
|
-
findMatchingAlias(requestPath: string): A_StaticAlias | null;
|
|
430
|
-
/**
|
|
431
|
-
* Check if an alias exists
|
|
432
|
-
* @param aliasPath - The path to check
|
|
433
|
-
*/
|
|
434
|
-
hasAlias(aliasPath: string): boolean;
|
|
435
|
-
/**
|
|
436
|
-
* Get a specific alias by path
|
|
437
|
-
* @param aliasPath - The path of the alias
|
|
438
|
-
*/
|
|
439
|
-
getAlias(aliasPath: string): A_StaticAlias | undefined;
|
|
440
|
-
/**
|
|
441
|
-
* Add multiple aliases at once
|
|
442
|
-
* @param aliases - Array of alias configurations
|
|
443
|
-
*/
|
|
444
|
-
addAliases(aliases: A_StaticDirectoryConfig[]): void;
|
|
445
|
-
/**
|
|
446
|
-
* Clear all aliases
|
|
447
|
-
*/
|
|
448
|
-
clearAliases(): void;
|
|
449
|
-
/**
|
|
450
|
-
* Update an existing alias
|
|
451
|
-
* @param aliasPath - The path of the alias to update
|
|
452
|
-
* @param updates - Partial updates to apply
|
|
453
|
-
*/
|
|
454
|
-
updateAlias(aliasPath: string, updates: Partial<A_StaticAlias>): boolean;
|
|
455
|
-
/**
|
|
456
|
-
* Get statistics about configured aliases
|
|
457
|
-
*/
|
|
458
|
-
getStats(): {
|
|
459
|
-
total: number;
|
|
460
|
-
enabled: number;
|
|
461
|
-
disabled: number;
|
|
462
|
-
directories: string[];
|
|
463
|
-
};
|
|
464
|
-
/**
|
|
465
|
-
* Checks if a given path is configured in the proxy (legacy method)
|
|
466
|
-
* @deprecated Use findMatchingAlias instead
|
|
467
|
-
* @param path
|
|
468
|
-
* @returns
|
|
469
|
-
*/
|
|
470
|
-
has(path: string): false | string;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
declare class A_ListQueryFilter<FilterFields extends string[]> extends A_Fragment {
|
|
474
|
-
protected _query: string | Partial<Record<FilterFields[number], string>>;
|
|
475
|
-
protected defaults: Partial<Record<FilterFields[number], string>>;
|
|
476
|
-
protected parsedQuery: Record<FilterFields[number], string>;
|
|
477
|
-
constructor(_query?: string | Partial<Record<FilterFields[number], string>>, defaults?: Partial<Record<FilterFields[number], string>>);
|
|
478
|
-
get query(): string | Partial<Record<FilterFields[number], string>>;
|
|
479
|
-
get(property: FilterFields[number], defaultValue?: string): string;
|
|
480
|
-
protected parseQueryString(value?: string | Partial<Record<FilterFields[number], string>>): Record<FilterFields[number], string>;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
type A_SERVER_TYPES__AEntityFactoryConstructor1 = {
|
|
484
|
-
[Key in string]: typeof A_Entity;
|
|
485
|
-
};
|
|
486
|
-
type A_SERVER_TYPES__AEntityFactoryConstructor2 = Array<typeof A_Entity>;
|
|
487
|
-
|
|
488
|
-
declare class A_EntityFactory extends A_Fragment {
|
|
489
|
-
private _entities;
|
|
490
|
-
constructor(map: A_SERVER_TYPES__AEntityFactoryConstructor1);
|
|
491
|
-
constructor(entities: A_SERVER_TYPES__AEntityFactoryConstructor2);
|
|
492
|
-
constructor(map: A_SERVER_TYPES__AEntityFactoryConstructor1, entities: A_SERVER_TYPES__AEntityFactoryConstructor2);
|
|
493
|
-
protected _setEntities(entities?: A_SERVER_TYPES__AEntityFactoryConstructor2 | A_SERVER_TYPES__AEntityFactoryConstructor1): void;
|
|
494
|
-
add(key: string, entity: typeof A_Entity): void;
|
|
495
|
-
add(entity: typeof A_Entity): void;
|
|
496
|
-
has(aseid: ASEID): boolean;
|
|
497
|
-
has(
|
|
498
|
-
/**
|
|
499
|
-
* The name of the entity
|
|
500
|
-
*/
|
|
501
|
-
entity: string): boolean;
|
|
502
|
-
has(
|
|
503
|
-
/**
|
|
504
|
-
* The ASEID of the entity
|
|
505
|
-
*/
|
|
506
|
-
aseid: string): boolean;
|
|
507
|
-
/**
|
|
508
|
-
* Resolves the entity constructor by the entity name
|
|
509
|
-
*
|
|
510
|
-
* @param entity
|
|
511
|
-
*/
|
|
512
|
-
resolve(entity: string): {
|
|
513
|
-
new (...args: any[]): A_Entity;
|
|
514
|
-
} | undefined;
|
|
515
|
-
resolve(aseid: string): {
|
|
516
|
-
new (...args: any[]): A_Entity;
|
|
517
|
-
} | undefined;
|
|
518
|
-
resolve(aseid: ASEID): {
|
|
519
|
-
new (...args: any[]): A_Entity;
|
|
520
|
-
} | undefined;
|
|
521
|
-
resolveByName(name: string): {
|
|
522
|
-
new (...args: any[]): A_Entity;
|
|
523
|
-
} | undefined;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
type A_SERVER_TYPES__A_EntityListConstructor = {
|
|
527
|
-
name: string;
|
|
528
|
-
scope: string;
|
|
529
|
-
constructor: {
|
|
530
|
-
new (...args: any[]): A_Entity;
|
|
531
|
-
};
|
|
532
|
-
};
|
|
533
|
-
type A_SERVER_TYPES__A_EntityListSerialized<EntityTypes extends A_Entity = A_Entity> = {
|
|
534
|
-
items: Array<ReturnType<EntityTypes['toJSON']>>;
|
|
535
|
-
type: string;
|
|
536
|
-
pagination: A_SERVER_TYPES__A_EntityListPagination;
|
|
537
|
-
} & A_TYPES__Entity_Serialized;
|
|
538
|
-
type A_SERVER_TYPES__A_EntityListPagination = {
|
|
539
|
-
total: number;
|
|
540
|
-
page: number;
|
|
541
|
-
pageSize: number;
|
|
542
|
-
};
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* A-EntityList
|
|
546
|
-
*
|
|
547
|
-
* Entity that represents a list of entities with pagination of particular type
|
|
548
|
-
*/
|
|
549
|
-
declare class A_EntityList<EntityType extends A_Entity = A_Entity> extends A_Entity<A_SERVER_TYPES__A_EntityListConstructor, A_SERVER_TYPES__A_EntityListSerialized> {
|
|
550
|
-
static get scope(): string;
|
|
551
|
-
protected _entityConstructor: new (...args: ConstructorParameters<typeof A_Entity>) => EntityType;
|
|
552
|
-
protected _items: Array<EntityType>;
|
|
553
|
-
protected _pagination: A_SERVER_TYPES__A_EntityListPagination;
|
|
554
|
-
/**
|
|
555
|
-
* Returns the entity constructor used for the list
|
|
556
|
-
*/
|
|
557
|
-
get entityConstructor(): new (...args: ConstructorParameters<typeof A_Entity>) => EntityType;
|
|
558
|
-
/**
|
|
559
|
-
* Returns the list of items contained in the entity list
|
|
560
|
-
*/
|
|
561
|
-
get items(): Array<EntityType>;
|
|
562
|
-
/**
|
|
563
|
-
* Returns pagination information about the entity list
|
|
564
|
-
*/
|
|
565
|
-
get pagination(): A_SERVER_TYPES__A_EntityListPagination;
|
|
566
|
-
/**
|
|
567
|
-
* Creates a new instance of A_EntityList
|
|
568
|
-
*
|
|
569
|
-
* @param newEntity
|
|
570
|
-
*/
|
|
571
|
-
fromNew(newEntity: A_SERVER_TYPES__A_EntityListConstructor): void;
|
|
572
|
-
/**
|
|
573
|
-
* Allows to convert Repository Response data to EntityList instance
|
|
574
|
-
*
|
|
575
|
-
* [!] This method does not load the data from the repository, it only converts the data to the EntityList instance
|
|
576
|
-
*
|
|
577
|
-
* @param items
|
|
578
|
-
* @param pagination
|
|
579
|
-
*/
|
|
580
|
-
fromList(items: Array<EntityType> | Array<ReturnType<EntityType['toJSON']>>, pagination?: A_SERVER_TYPES__A_EntityListPagination): void;
|
|
581
|
-
/**
|
|
582
|
-
* Serializes the EntityList to a JSON object
|
|
583
|
-
*
|
|
584
|
-
* @returns
|
|
585
|
-
*/
|
|
586
|
-
toJSON(): A_SERVER_TYPES__A_EntityListSerialized<EntityType>;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
declare const A_SERVER__A_SERVER_LOGGER_ENV_VARIABLES: {
|
|
590
|
-
/**
|
|
591
|
-
* Enable logging of 200 responses
|
|
592
|
-
*/
|
|
593
|
-
readonly SERVER_IGNORE_LOG_200: "SERVER_IGNORE_LOG_200";
|
|
594
|
-
/**
|
|
595
|
-
* Enable logging of 404 responses
|
|
596
|
-
*/
|
|
597
|
-
readonly SERVER_IGNORE_LOG_404: "SERVER_IGNORE_LOG_404";
|
|
598
|
-
/**
|
|
599
|
-
* Enable logging of 500 responses
|
|
600
|
-
*/
|
|
601
|
-
readonly SERVER_IGNORE_LOG_500: "SERVER_IGNORE_LOG_500";
|
|
602
|
-
/**
|
|
603
|
-
* Enable logging of 400 responses
|
|
604
|
-
*/
|
|
605
|
-
readonly SERVER_IGNORE_LOG_400: "SERVER_IGNORE_LOG_400";
|
|
606
|
-
/**
|
|
607
|
-
* Enable logging of default responses
|
|
608
|
-
*/
|
|
609
|
-
readonly SERVER_IGNORE_LOG_DEFAULT: "SERVER_IGNORE_LOG_DEFAULT";
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
type A_SERVER_TYPES__ServerLoggerRouteParams = {
|
|
613
|
-
method: string;
|
|
614
|
-
url: string;
|
|
615
|
-
status: number;
|
|
616
|
-
responseTime: number;
|
|
617
|
-
};
|
|
618
|
-
type A_SERVER_TYPES__ServerLoggerEnvVariables = Array<keyof typeof A_SERVER__A_SERVER_LOGGER_ENV_VARIABLES> | A_TYPES__ConceptENVVariables;
|
|
619
|
-
|
|
620
|
-
declare class A_ServerLogger extends A_Logger {
|
|
621
|
-
protected config: A_Config<A_SERVER_TYPES__ServerLoggerEnvVariables>;
|
|
622
|
-
onRequestEnd(request: A_Request, response: A_Response): Promise<void>;
|
|
623
|
-
onRequestError(request: A_Request): Promise<void>;
|
|
624
|
-
logStart(container: A_Service): void;
|
|
625
|
-
logStop(server: A_Server): void;
|
|
626
|
-
metrics(): void;
|
|
627
|
-
routes(routes: Array<A_Route>): void;
|
|
628
|
-
/**
|
|
629
|
-
* Logs the route information based on status code
|
|
630
|
-
*
|
|
631
|
-
* @param route
|
|
632
|
-
*/
|
|
633
|
-
route(route: A_SERVER_TYPES__ServerLoggerRouteParams): void;
|
|
634
|
-
log200(route: A_SERVER_TYPES__ServerLoggerRouteParams): void;
|
|
635
|
-
log404(route: A_SERVER_TYPES__ServerLoggerRouteParams): void;
|
|
636
|
-
log500(route: A_SERVER_TYPES__ServerLoggerRouteParams): void;
|
|
637
|
-
log400(route: A_SERVER_TYPES__ServerLoggerRouteParams): void;
|
|
638
|
-
logDefault(route: A_SERVER_TYPES__ServerLoggerRouteParams): void;
|
|
639
|
-
serverReady(params: {
|
|
640
|
-
port: number;
|
|
641
|
-
app: {
|
|
642
|
-
name: string;
|
|
643
|
-
version?: string;
|
|
644
|
-
};
|
|
645
|
-
}): void;
|
|
646
|
-
/**
|
|
647
|
-
* Displays a proxy routes
|
|
648
|
-
*
|
|
649
|
-
* @param params
|
|
650
|
-
*/
|
|
651
|
-
proxy(params: {
|
|
652
|
-
original: string;
|
|
653
|
-
destination: string;
|
|
654
|
-
}): void;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
declare class A_EntityController extends A_Component {
|
|
658
|
-
list(request: A_Request<any, any, {
|
|
659
|
-
type: string;
|
|
660
|
-
}>, response: A_Response, factory: A_EntityFactory, scope: A_Scope, config: A_Config<['A_LIST_ITEMS_PER_PAGE', 'A_LIST_PAGE']>): Promise<void>;
|
|
661
|
-
load(request: A_Request<any, any, {
|
|
662
|
-
aseid: string;
|
|
663
|
-
}>, response: A_Response, scope: A_Scope): Promise<void>;
|
|
664
|
-
create(request: A_Request<any, any, {
|
|
665
|
-
aseid: string;
|
|
666
|
-
}>, factory: A_EntityFactory, scope: A_Scope): Promise<void>;
|
|
667
|
-
update(request: A_Request<any, any, {
|
|
668
|
-
aseid: string;
|
|
669
|
-
}>, response: A_Response, factory: A_EntityFactory, scope: A_Scope): Promise<void>;
|
|
670
|
-
delete(request: A_Request<any, any, {
|
|
671
|
-
aseid: string;
|
|
672
|
-
}>, response: A_Response, factory: A_EntityFactory, scope: A_Scope): Promise<void>;
|
|
673
|
-
callEntity(request: A_Request<any, any, {
|
|
674
|
-
aseid: string;
|
|
675
|
-
action: string;
|
|
676
|
-
}>, response: A_Response, factory: A_EntityFactory, scope: A_Scope): Promise<void>;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
declare enum A_SERVER_TYPES__RouterMethod {
|
|
680
|
-
POST = "POST",
|
|
681
|
-
GET = "GET",
|
|
682
|
-
PUT = "PUT",
|
|
683
|
-
DELETE = "DELETE",
|
|
684
|
-
PATCH = "PATCH",
|
|
685
|
-
DEFAULT = "DEFAULT"
|
|
686
|
-
}
|
|
687
|
-
type A_TYPES__ARouterComponentMeta = {
|
|
688
|
-
[A_SERVER_TYPES__ARouterComponentMetaKey.ROUTES]: Map<string, A_TYPES__ARouterDefineRoute>;
|
|
689
|
-
} & A_TYPES__ComponentMeta;
|
|
690
|
-
type A_TYPES__ARouterDefineRoute = {
|
|
691
|
-
component: A_Component;
|
|
692
|
-
handler: string;
|
|
693
|
-
route: A_Route;
|
|
694
|
-
};
|
|
695
|
-
declare enum A_SERVER_TYPES__ARouterComponentMetaKey {
|
|
696
|
-
ROUTES = "ROUTES"
|
|
697
|
-
}
|
|
698
|
-
type A_SERVER_TYPES__ARouterRouteConfig = {
|
|
699
|
-
path: string | RegExp;
|
|
700
|
-
version: string;
|
|
701
|
-
prefix: string;
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
declare class A_Router extends A_Component {
|
|
705
|
-
/**
|
|
706
|
-
* Allows to define a custom route for POST requests
|
|
707
|
-
*
|
|
708
|
-
* @param path
|
|
709
|
-
* @returns
|
|
710
|
-
*/
|
|
711
|
-
static Post(path: string | A_Route | RegExp | A_TYPES__Required<Partial<A_SERVER_TYPES__ARouterRouteConfig>, ['path']>): (target: A_Component, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
712
|
-
/**
|
|
713
|
-
* Allows to define a custom route for GET requests
|
|
714
|
-
*
|
|
715
|
-
* @param path
|
|
716
|
-
* @returns
|
|
717
|
-
*/
|
|
718
|
-
static Get(path: string | A_Route | RegExp | A_TYPES__Required<Partial<A_SERVER_TYPES__ARouterRouteConfig>, ['path']>): (target: A_Component, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
719
|
-
/**
|
|
720
|
-
* Allows to define a custom route for PUT requests
|
|
721
|
-
*
|
|
722
|
-
* @param path
|
|
723
|
-
* @returns
|
|
724
|
-
*/
|
|
725
|
-
static Put(path: string | A_Route | RegExp | A_TYPES__Required<Partial<A_SERVER_TYPES__ARouterRouteConfig>, ['path']>): (target: A_Component, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
726
|
-
/**
|
|
727
|
-
* Allows to define a custom route for DELETE requests
|
|
728
|
-
*
|
|
729
|
-
* @param path
|
|
730
|
-
* @returns
|
|
731
|
-
*/
|
|
732
|
-
static Delete(path: string | A_Route | RegExp | A_TYPES__Required<Partial<A_SERVER_TYPES__ARouterRouteConfig>, ['path']>): (target: A_Component, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
733
|
-
/**
|
|
734
|
-
* Allows to define a custom route for PATCH requests
|
|
735
|
-
*
|
|
736
|
-
* @param path
|
|
737
|
-
* @returns
|
|
738
|
-
*/
|
|
739
|
-
static Patch(path: string | A_Route | RegExp | A_TYPES__Required<Partial<A_SERVER_TYPES__ARouterRouteConfig>, ['path']>): (target: A_Component, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
740
|
-
/**
|
|
741
|
-
* Allows to define a custom route for DEFAULT requests
|
|
742
|
-
*
|
|
743
|
-
* @param path
|
|
744
|
-
* @returns
|
|
745
|
-
*/
|
|
746
|
-
static Default(path: string | A_Route | RegExp | A_TYPES__Required<Partial<A_SERVER_TYPES__ARouterRouteConfig>, ['path']>): (target: A_Component, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
747
|
-
static routes: Array<A_Route>;
|
|
748
|
-
/**
|
|
749
|
-
* Private method to have the same signature for all route methods
|
|
750
|
-
*
|
|
751
|
-
* @param method
|
|
752
|
-
* @param path
|
|
753
|
-
* @returns
|
|
754
|
-
*/
|
|
755
|
-
private static defineRoute;
|
|
756
|
-
protected load(logger: A_ServerLogger): Promise<void>;
|
|
757
|
-
identifyRoute(request: A_Request, response: A_Response, scope: A_Scope, config: A_Config, logger: A_Logger): Promise<void>;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
declare class A_ServerHealthMonitor extends A_Component {
|
|
761
|
-
get(config: A_Config<['VERSION_PATH', 'EXPOSED_PROPERTIES']>, request: A_Request, response: A_Response, logger: A_Logger): Promise<any>;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
declare class A_ServerProxy extends A_Component {
|
|
765
|
-
load(logger: A_Logger, config: A_ProxyConfig): Promise<void>;
|
|
766
|
-
onRequest(req: A_Request, res: A_Response, proxyConfig: A_ProxyConfig, logger: A_Logger, polyfill: A_Polyfill): Promise<void>;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
declare class A_ServerCORS extends A_Component {
|
|
770
|
-
private config;
|
|
771
|
-
init(config: A_Config<['ORIGIN', 'METHODS', 'HEADERS', 'CREDENTIALS', 'MAX_AGE']>): Promise<void>;
|
|
772
|
-
apply(aReq: A_Request, aRes: A_Response): void;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
declare class A_StaticLoader extends A_Component {
|
|
776
|
-
private _fsPolyfill;
|
|
777
|
-
private _pathPolyfill;
|
|
778
|
-
load(logger: A_Logger, config: A_StaticConfig, polyfill: A_Polyfill): Promise<void>;
|
|
779
|
-
onRequest(req: A_Request, res: A_Response, logger: A_Logger, config: A_StaticConfig, polyfill: A_Polyfill): Promise<void>;
|
|
780
|
-
/**
|
|
781
|
-
* Add a custom static file alias through the config
|
|
782
|
-
* @param alias - The URL path alias (e.g., '/assets')
|
|
783
|
-
* @param directory - The local directory path
|
|
784
|
-
* @param path - Optional custom path (defaults to alias)
|
|
785
|
-
* @param config - Static config instance
|
|
786
|
-
* @param logger - Logger instance for logging
|
|
787
|
-
*/
|
|
788
|
-
addAlias(alias: string, directory: string, config: A_StaticConfig, logger?: A_Logger, path?: string): void;
|
|
789
|
-
/**
|
|
790
|
-
* Remove a static file alias through the config
|
|
791
|
-
* @param aliasPath - The path of the alias to remove
|
|
792
|
-
* @param config - Static config instance
|
|
793
|
-
* @param logger - Logger instance for logging
|
|
794
|
-
*/
|
|
795
|
-
removeAlias(aliasPath: string, config: A_StaticConfig, logger?: A_Logger): boolean;
|
|
796
|
-
/**
|
|
797
|
-
* Get all configured aliases from config
|
|
798
|
-
* @param config - Static config instance
|
|
799
|
-
*/
|
|
800
|
-
getAliases(config: A_StaticConfig): A_StaticAlias[];
|
|
801
|
-
/**
|
|
802
|
-
* Enable or disable an alias
|
|
803
|
-
* @param aliasPath - The path of the alias
|
|
804
|
-
* @param enabled - Whether to enable or disable
|
|
805
|
-
* @param config - Static config instance
|
|
806
|
-
* @param logger - Logger instance for logging
|
|
807
|
-
*/
|
|
808
|
-
setAliasEnabled(aliasPath: string, enabled: boolean, config: A_StaticConfig, logger?: A_Logger): boolean;
|
|
809
|
-
protected getMimeType(ext: string): string;
|
|
810
|
-
protected safeFilePath(staticDir: string, reqUrl: string, host: string | undefined, pathPolyfill: any, fsPolyfill: any): string;
|
|
811
|
-
protected serveFile(filePath: string, res: A_Response, logger: A_Logger, fsPolyfill: any, pathPolyfill: any): Promise<void>;
|
|
812
|
-
protected getCacheControl(ext: string): string;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
declare class A_Controller extends A_Component {
|
|
816
|
-
callEntityMethod(request: A_Request<any, any, {
|
|
817
|
-
component: string;
|
|
818
|
-
operation: string;
|
|
819
|
-
}>, response: A_Response, scope: A_Scope): Promise<void>;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
declare class A_ListingController extends A_Component {
|
|
823
|
-
list(request: A_Request<any, any, {
|
|
824
|
-
type: string;
|
|
825
|
-
}>, response: A_Response, factory: A_EntityFactory, scope: A_Scope, config: A_Config<['A_LIST_ITEMS_PER_PAGE', 'A_LIST_PAGE']>): Promise<void>;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
declare class A_CommandController extends A_Component {
|
|
829
|
-
handleCommand(req: A_Request<any, any, {
|
|
830
|
-
command: string;
|
|
831
|
-
}>, res: A_Response, scope: A_Scope, container: A_Container): Promise<void>;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
declare class A_EntityRepository extends A_Component {
|
|
835
|
-
list(channel: A_HTTPChannel, entity: A_EntityList, scope: A_Scope): Promise<void>;
|
|
836
|
-
load(channel: A_HTTPChannel, entity: A_Entity, scope: A_Scope): Promise<void>;
|
|
837
|
-
save(channel: A_HTTPChannel, entity: A_Entity, scope: A_Scope): Promise<void>;
|
|
838
|
-
destroy(channel: A_HTTPChannel, entity: A_Entity, scope: A_Scope): Promise<void>;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
type A_SERVER_TYPES__CorsConfig = {
|
|
842
|
-
origin: string;
|
|
843
|
-
methods: string[];
|
|
844
|
-
headers: string[];
|
|
845
|
-
credentials: boolean;
|
|
846
|
-
maxAge: number;
|
|
847
|
-
};
|
|
848
|
-
|
|
849
|
-
declare enum A_SERVER_CONSTANTS__A_HttpChannel_Lifecycle {
|
|
850
|
-
onAfterRequest = "onAfterHttpChannelRequest",
|
|
851
|
-
onError = "onHttpChannelError",
|
|
852
|
-
onBeforeRequest = "onBeforeHttpChannelRequest"
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
export { A_CommandController, A_Controller, A_EntityController, A_EntityFactory, A_EntityList, A_EntityRepository, A_HTTPChannel, A_HTTPChannelError, A_HTTPChannel_RequestContext, A_ListQueryFilter, A_ListingController, A_ProxyConfig, A_Request, A_Response, A_Route, A_Router, A_SERVER_CONSTANTS__A_HttpChannel_Lifecycle, A_SERVER_CONSTANTS__DEFAULT_ENV_VARIABLES, A_SERVER_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY, type A_SERVER_TYPES__AEntityFactoryConstructor1, type A_SERVER_TYPES__AEntityFactoryConstructor2, A_SERVER_TYPES__ARouterComponentMetaKey, type A_SERVER_TYPES__ARouterRouteConfig, type A_SERVER_TYPES__CorsConfig, type A_SERVER_TYPES__HttpChannelRequestConfig, type A_SERVER_TYPES__HttpChannelRequestParams, type A_SERVER_TYPES__HttpChannelSendParams, type A_SERVER_TYPES__ProxyConfigConstructor, type A_SERVER_TYPES__ProxyConfigConstructorConfig, type A_SERVER_TYPES__RequestConstructor, A_SERVER_TYPES__RequestEvent, type A_SERVER_TYPES__RequestEventCallback, type A_SERVER_TYPES__RequestMethods, type A_SERVER_TYPES__RequestSerialized, type A_SERVER_TYPES__ResponseConstructor, A_SERVER_TYPES__ResponseEvent, type A_SERVER_TYPES__ResponseSerialized, A_SERVER_TYPES__RouterMethod, type A_SERVER_TYPES__RoutesConfig, type A_SERVER_TYPES__SendResponseObject, type A_SERVER_TYPES__ServerConstructor$1 as A_SERVER_TYPES__ServerConstructor, type A_SERVER_TYPES__ServerError_Init, type A_SERVER_TYPES__ServerError_Serialized, A_SERVER_TYPES__ServerFeature, type A_SERVER_TYPES__ServerFeatures, A_SERVER_TYPES__ServerMethod, A_Server, A_ServerCORS, A_ServerError, A_ServerHealthMonitor, A_ServerLogger, A_ServerProxy, A_Service, A_StaticConfig, A_StaticLoader, type A_TYPES__ARouterComponentMeta, type A_TYPES__ARouterDefineRoute, type A_TYPES__ServerENVVariables };
|