quidproquo-webserver 0.0.262 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/actionProcessor/api/getHttpApiEventAutoRespondActionProcessor.d.ts +2 -0
- package/lib/commonjs/actionProcessor/api/getHttpApiEventAutoRespondActionProcessor.js +52 -0
- package/lib/commonjs/actionProcessor/api/getHttpApiEventGetStorySessionActionProcessor.d.ts +2 -0
- package/lib/commonjs/actionProcessor/api/getHttpApiEventGetStorySessionActionProcessor.js +36 -0
- package/lib/commonjs/actionProcessor/api/index.d.ts +2 -0
- package/lib/commonjs/actionProcessor/api/index.js +18 -0
- package/lib/commonjs/actionProcessor/index.d.ts +2 -0
- package/lib/commonjs/actionProcessor/index.js +18 -0
- package/lib/commonjs/actionProcessor/routeAuthValidation/getRouteAuthValidationDecodeActionProcessor.d.ts +2 -0
- package/lib/commonjs/actionProcessor/routeAuthValidation/getRouteAuthValidationDecodeActionProcessor.js +31 -0
- package/lib/commonjs/actionProcessor/routeAuthValidation/index.d.ts +2 -0
- package/lib/commonjs/actionProcessor/routeAuthValidation/index.js +17 -0
- package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationActionType.d.ts +3 -0
- package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationActionType.js +7 -0
- package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationValidateActionRequester.d.ts +3 -0
- package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationValidateActionRequester.js +13 -0
- package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationValidateActionTypes.d.ts +13 -0
- package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationValidateActionTypes.js +2 -0
- package/lib/commonjs/actions/apiKeyValidation/index.d.ts +3 -0
- package/lib/commonjs/actions/apiKeyValidation/index.js +19 -0
- package/lib/commonjs/actions/index.d.ts +3 -0
- package/lib/commonjs/actions/index.js +3 -0
- package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationActionType.d.ts +3 -0
- package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationActionType.js +7 -0
- package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationDecodeActionRequester.d.ts +4 -0
- package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationDecodeActionRequester.js +14 -0
- package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationDecodeActionTypes.d.ts +15 -0
- package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationDecodeActionTypes.js +2 -0
- package/lib/commonjs/actions/routeAuthValidation/index.d.ts +3 -0
- package/lib/commonjs/actions/routeAuthValidation/index.js +19 -0
- package/lib/commonjs/actions/service/ServiceActionType.d.ts +3 -0
- package/lib/commonjs/actions/service/ServiceActionType.js +7 -0
- package/lib/commonjs/actions/service/ServiceRequestActionRequester.d.ts +2 -0
- package/lib/commonjs/actions/service/ServiceRequestActionRequester.js +14 -0
- package/lib/commonjs/actions/service/ServiceRequestActionTypes.d.ts +13 -0
- package/lib/commonjs/actions/service/ServiceRequestActionTypes.js +2 -0
- package/lib/commonjs/actions/service/createServiceRequester.d.ts +9 -0
- package/lib/commonjs/actions/service/createServiceRequester.js +12 -0
- package/lib/commonjs/actions/service/index.d.ts +5 -0
- package/lib/commonjs/actions/service/index.js +21 -0
- package/lib/commonjs/actions/service/serviceRequest.d.ts +11 -0
- package/lib/commonjs/actions/service/serviceRequest.js +23 -0
- package/lib/commonjs/actions/serviceFunction/ServiceFunctionExecuteActionRequester.js +0 -6
- package/lib/commonjs/actions/serviceFunction/ServiceFunctionExecuteActionTypes.d.ts +2 -3
- package/lib/commonjs/config/QPQConfig.d.ts +2 -1
- package/lib/commonjs/config/QPQConfig.js +1 -0
- package/lib/commonjs/config/settings/{logs.d.ts → defineAdminSettings/defineAdminSettings.d.ts} +2 -2
- package/lib/commonjs/config/settings/defineAdminSettings/defineAdminSettings.js +127 -0
- package/lib/commonjs/config/settings/defineAdminSettings/index.d.ts +1 -0
- package/lib/commonjs/config/settings/{defineExposeAdminAdvancedSettings → defineAdminSettings}/index.js +1 -1
- package/lib/commonjs/config/settings/defineAuthSystem/defineAuthSystem.d.ts +10 -0
- package/lib/commonjs/config/settings/defineAuthSystem/defineAuthSystem.js +46 -0
- package/lib/commonjs/config/settings/defineAuthSystem/index.d.ts +1 -0
- package/lib/commonjs/config/settings/defineAuthSystem/index.js +17 -0
- package/lib/commonjs/config/settings/index.d.ts +4 -2
- package/lib/commonjs/config/settings/index.js +4 -2
- package/lib/commonjs/config/settings/migration.js +1 -1
- package/lib/commonjs/config/settings/stateDispatchOverWebsockets.d.ts +2 -0
- package/lib/commonjs/config/settings/stateDispatchOverWebsockets.js +9 -0
- package/lib/commonjs/config/settings/storageDriveCorsSettings.d.ts +19 -0
- package/lib/commonjs/config/settings/storageDriveCorsSettings.js +16 -0
- package/lib/commonjs/config/settings/webEntry.d.ts +8 -0
- package/lib/commonjs/config/settings/webEntry.js +1 -0
- package/lib/commonjs/index.d.ts +1 -0
- package/lib/commonjs/index.js +1 -0
- package/lib/commonjs/services/auth/config/constants.d.ts +1 -0
- package/lib/commonjs/services/auth/config/constants.js +7 -0
- package/lib/commonjs/services/auth/config/defineAuthServiceRoute.d.ts +4 -0
- package/lib/commonjs/services/auth/config/defineAuthServiceRoute.js +10 -0
- package/lib/commonjs/services/auth/config/index.d.ts +2 -0
- package/lib/commonjs/services/auth/config/index.js +18 -0
- package/lib/commonjs/services/auth/entry/controller/authController.d.ts +9 -0
- package/lib/commonjs/services/auth/entry/controller/authController.js +81 -0
- package/lib/commonjs/services/auth/index.d.ts +2 -0
- package/lib/commonjs/services/auth/index.js +18 -0
- package/lib/commonjs/services/auth/logic/auth/askAssociateSoftwareToken.d.ts +2 -0
- package/lib/commonjs/services/auth/logic/auth/askAssociateSoftwareToken.js +9 -0
- package/lib/commonjs/services/auth/logic/auth/askChangePassword.d.ts +2 -0
- package/lib/commonjs/services/auth/logic/auth/askChangePassword.js +9 -0
- package/lib/commonjs/services/auth/logic/auth/askConfirmForgotPassword.d.ts +2 -0
- package/lib/commonjs/services/auth/logic/auth/askConfirmForgotPassword.js +10 -0
- package/lib/commonjs/services/auth/logic/auth/askForgotPassword.d.ts +2 -0
- package/lib/commonjs/services/auth/logic/auth/askForgotPassword.js +10 -0
- package/lib/commonjs/services/auth/logic/auth/askGetAuthUserDirectoryName.d.ts +2 -0
- package/lib/commonjs/services/auth/logic/auth/askGetAuthUserDirectoryName.js +8 -0
- package/lib/commonjs/services/auth/logic/auth/askLogin.d.ts +2 -0
- package/lib/commonjs/services/auth/logic/auth/askLogin.js +10 -0
- package/lib/commonjs/services/auth/logic/auth/askRefreshToken.d.ts +2 -0
- package/lib/commonjs/services/auth/logic/auth/askRefreshToken.js +10 -0
- package/lib/commonjs/services/auth/logic/auth/askRespondToAuthChallenge.d.ts +2 -0
- package/lib/commonjs/services/auth/logic/auth/askRespondToAuthChallenge.js +9 -0
- package/lib/commonjs/services/auth/logic/auth/index.d.ts +8 -0
- package/lib/commonjs/services/auth/logic/auth/index.js +24 -0
- package/lib/commonjs/services/auth/logic/index.d.ts +1 -0
- package/lib/commonjs/services/auth/logic/index.js +37 -0
- package/lib/commonjs/services/auth/types/challengePayloadGuards.d.ts +4 -0
- package/lib/commonjs/services/auth/types/challengePayloadGuards.js +10 -0
- package/lib/commonjs/services/auth/types/index.d.ts +2 -0
- package/lib/commonjs/services/auth/types/index.js +18 -0
- package/lib/commonjs/services/auth/types/types.d.ts +41 -0
- package/lib/commonjs/services/auth/types/types.js +2 -0
- package/lib/commonjs/services/getServiceEntryQpqFunctionRuntime.d.ts +2 -2
- package/lib/commonjs/services/index.d.ts +1 -0
- package/lib/commonjs/services/index.js +1 -0
- package/lib/commonjs/services/log/entry/controller/logController.js +3 -3
- package/lib/commonjs/services/log/entry/data/logData.js +1 -2
- package/lib/commonjs/services/log/entry/data/logLogData.js +1 -1
- package/lib/commonjs/services/log/entry/data/logMetadataData.js +4 -5
- package/lib/commonjs/services/log/logic/logs/askGetLogs.js +1 -1
- package/lib/commonjs/services/log/logic/notifyError/askProcessOnError.js +1 -1
- package/lib/commonjs/services/log/logic/notifyError/askProcessOnThrottle.js +1 -1
- package/lib/commonjs/services/log/logic/notifyError/askProcessOnTimeout.js +1 -1
- package/lib/commonjs/services/webSocketQueue/entry/actionProcessor/getStateDispatch.d.ts +5 -0
- package/lib/commonjs/services/webSocketQueue/entry/actionProcessor/getStateDispatch.js +21 -0
- package/lib/commonjs/services/webSocketQueue/logic/webSocket/askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend.js +5 -5
- package/lib/commonjs/services/webSocketQueue/logic/webSocket/messageProcessors/askProcessOnAuthenticate.js +12 -1
- package/lib/commonjs/services/webSocketQueue/logic/webSocket/messageProcessors/askProcessOnUnauthenticate.js +4 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageAuthenticated.d.ts +4 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageAuthenticated.js +2 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageServiceRequestResponse.d.ts +4 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageServiceRequestResponse.js +2 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageStateDispatch.d.ts +4 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageStateDispatch.js +2 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageUnauthenticated.d.ts +4 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageUnauthenticated.js +2 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType.d.ts +5 -1
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType.js +4 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/index.d.ts +4 -0
- package/lib/commonjs/services/webSocketQueue/types/serverMessages/index.js +4 -0
- package/lib/commonjs/stories/askGetHttpApiEventStorySession.d.ts +9 -0
- package/lib/commonjs/stories/askGetHttpApiEventStorySession.js +30 -0
- package/lib/commonjs/stories/askRouteAuthValidationDecodeDefault.d.ts +3 -0
- package/lib/commonjs/stories/askRouteAuthValidationDecodeDefault.js +23 -0
- package/lib/commonjs/stories/askValidateRouteAuth.d.ts +8 -0
- package/lib/commonjs/stories/askValidateRouteAuth.js +31 -0
- package/lib/commonjs/stories/index.d.ts +2 -0
- package/lib/commonjs/stories/index.js +2 -0
- package/lib/commonjs/utils/headerUtils.js +10 -3
- package/lib/commonjs/utils/httpEventUtils.js +2 -2
- package/lib/commonjs/utils/index.d.ts +2 -0
- package/lib/commonjs/utils/index.js +2 -0
- package/lib/commonjs/utils/jwtUtils.d.ts +2 -1
- package/lib/commonjs/utils/jwtUtils.js +3 -2
- package/lib/commonjs/utils/networkRequestUtils.d.ts +2 -0
- package/lib/commonjs/utils/networkRequestUtils.js +142 -0
- package/lib/commonjs/utils/preformNetworkRequest.d.ts +2 -0
- package/lib/commonjs/utils/preformNetworkRequest.js +29 -0
- package/lib/commonjs/utils/qpqConfigAccessorsUtils.d.ts +16 -0
- package/lib/commonjs/utils/qpqConfigAccessorsUtils.js +33 -1
- package/lib/esm/actionProcessor/api/getHttpApiEventAutoRespondActionProcessor.d.ts +2 -0
- package/lib/esm/actionProcessor/api/getHttpApiEventAutoRespondActionProcessor.js +36 -0
- package/lib/esm/actionProcessor/api/getHttpApiEventGetStorySessionActionProcessor.d.ts +2 -0
- package/lib/esm/actionProcessor/api/getHttpApiEventGetStorySessionActionProcessor.js +20 -0
- package/lib/esm/actionProcessor/api/index.d.ts +2 -0
- package/lib/esm/actionProcessor/api/index.js +2 -0
- package/lib/esm/actionProcessor/index.d.ts +2 -0
- package/lib/esm/actionProcessor/index.js +2 -0
- package/lib/esm/actionProcessor/routeAuthValidation/getRouteAuthValidationDecodeActionProcessor.d.ts +2 -0
- package/lib/esm/actionProcessor/routeAuthValidation/getRouteAuthValidationDecodeActionProcessor.js +16 -0
- package/lib/esm/actionProcessor/routeAuthValidation/index.d.ts +2 -0
- package/lib/esm/actionProcessor/routeAuthValidation/index.js +4 -0
- package/lib/esm/actions/apiKeyValidation/ApiKeyValidationActionType.d.ts +3 -0
- package/lib/esm/actions/apiKeyValidation/ApiKeyValidationActionType.js +4 -0
- package/lib/esm/actions/apiKeyValidation/ApiKeyValidationValidateActionRequester.d.ts +3 -0
- package/lib/esm/actions/apiKeyValidation/ApiKeyValidationValidateActionRequester.js +10 -0
- package/lib/esm/actions/apiKeyValidation/ApiKeyValidationValidateActionTypes.d.ts +13 -0
- package/lib/esm/actions/apiKeyValidation/ApiKeyValidationValidateActionTypes.js +1 -0
- package/lib/esm/actions/apiKeyValidation/index.d.ts +3 -0
- package/lib/esm/actions/apiKeyValidation/index.js +3 -0
- package/lib/esm/actions/index.d.ts +3 -0
- package/lib/esm/actions/index.js +3 -0
- package/lib/esm/actions/routeAuthValidation/RouteAuthValidationActionType.d.ts +3 -0
- package/lib/esm/actions/routeAuthValidation/RouteAuthValidationActionType.js +4 -0
- package/lib/esm/actions/routeAuthValidation/RouteAuthValidationDecodeActionRequester.d.ts +4 -0
- package/lib/esm/actions/routeAuthValidation/RouteAuthValidationDecodeActionRequester.js +11 -0
- package/lib/esm/actions/routeAuthValidation/RouteAuthValidationDecodeActionTypes.d.ts +15 -0
- package/lib/esm/actions/routeAuthValidation/RouteAuthValidationDecodeActionTypes.js +1 -0
- package/lib/esm/actions/routeAuthValidation/index.d.ts +3 -0
- package/lib/esm/actions/routeAuthValidation/index.js +3 -0
- package/lib/esm/actions/service/ServiceActionType.d.ts +3 -0
- package/lib/esm/actions/service/ServiceActionType.js +4 -0
- package/lib/esm/actions/service/ServiceRequestActionRequester.d.ts +2 -0
- package/lib/esm/actions/service/ServiceRequestActionRequester.js +11 -0
- package/lib/esm/actions/service/ServiceRequestActionTypes.d.ts +13 -0
- package/lib/esm/actions/service/ServiceRequestActionTypes.js +1 -0
- package/lib/esm/actions/service/createServiceRequester.d.ts +9 -0
- package/lib/esm/actions/service/createServiceRequester.js +8 -0
- package/lib/esm/actions/service/index.d.ts +5 -0
- package/lib/esm/actions/service/index.js +5 -0
- package/lib/esm/actions/service/serviceRequest.d.ts +11 -0
- package/lib/esm/actions/service/serviceRequest.js +19 -0
- package/lib/esm/actions/serviceFunction/ServiceFunctionExecuteActionRequester.js +0 -6
- package/lib/esm/actions/serviceFunction/ServiceFunctionExecuteActionTypes.d.ts +2 -3
- package/lib/esm/config/QPQConfig.d.ts +2 -1
- package/lib/esm/config/QPQConfig.js +1 -0
- package/lib/esm/config/settings/{logs.d.ts → defineAdminSettings/defineAdminSettings.d.ts} +2 -2
- package/lib/esm/config/settings/defineAdminSettings/defineAdminSettings.js +121 -0
- package/lib/esm/config/settings/defineAdminSettings/index.d.ts +1 -0
- package/lib/esm/config/settings/defineAdminSettings/index.js +1 -0
- package/lib/esm/config/settings/defineAuthSystem/defineAuthSystem.d.ts +10 -0
- package/lib/esm/config/settings/defineAuthSystem/defineAuthSystem.js +44 -0
- package/lib/esm/config/settings/defineAuthSystem/index.d.ts +1 -0
- package/lib/esm/config/settings/defineAuthSystem/index.js +1 -0
- package/lib/esm/config/settings/index.d.ts +4 -2
- package/lib/esm/config/settings/index.js +4 -2
- package/lib/esm/config/settings/migration.js +2 -2
- package/lib/esm/config/settings/stateDispatchOverWebsockets.d.ts +2 -0
- package/lib/esm/config/settings/stateDispatchOverWebsockets.js +5 -0
- package/lib/esm/config/settings/storageDriveCorsSettings.d.ts +19 -0
- package/lib/esm/config/settings/storageDriveCorsSettings.js +12 -0
- package/lib/esm/config/settings/webEntry.d.ts +8 -0
- package/lib/esm/config/settings/webEntry.js +1 -0
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/services/auth/config/constants.d.ts +1 -0
- package/lib/esm/services/auth/config/constants.js +4 -0
- package/lib/esm/services/auth/config/defineAuthServiceRoute.d.ts +4 -0
- package/lib/esm/services/auth/config/defineAuthServiceRoute.js +6 -0
- package/lib/esm/services/auth/config/index.d.ts +2 -0
- package/lib/esm/services/auth/config/index.js +2 -0
- package/lib/esm/services/auth/entry/controller/authController.d.ts +9 -0
- package/lib/esm/services/auth/entry/controller/authController.js +72 -0
- package/lib/esm/services/auth/index.d.ts +2 -0
- package/lib/esm/services/auth/index.js +2 -0
- package/lib/esm/services/auth/logic/auth/askAssociateSoftwareToken.d.ts +2 -0
- package/lib/esm/services/auth/logic/auth/askAssociateSoftwareToken.js +6 -0
- package/lib/esm/services/auth/logic/auth/askChangePassword.d.ts +2 -0
- package/lib/esm/services/auth/logic/auth/askChangePassword.js +6 -0
- package/lib/esm/services/auth/logic/auth/askConfirmForgotPassword.d.ts +2 -0
- package/lib/esm/services/auth/logic/auth/askConfirmForgotPassword.js +7 -0
- package/lib/esm/services/auth/logic/auth/askForgotPassword.d.ts +2 -0
- package/lib/esm/services/auth/logic/auth/askForgotPassword.js +7 -0
- package/lib/esm/services/auth/logic/auth/askGetAuthUserDirectoryName.d.ts +2 -0
- package/lib/esm/services/auth/logic/auth/askGetAuthUserDirectoryName.js +5 -0
- package/lib/esm/services/auth/logic/auth/askLogin.d.ts +2 -0
- package/lib/esm/services/auth/logic/auth/askLogin.js +7 -0
- package/lib/esm/services/auth/logic/auth/askRefreshToken.d.ts +2 -0
- package/lib/esm/services/auth/logic/auth/askRefreshToken.js +7 -0
- package/lib/esm/services/auth/logic/auth/askRespondToAuthChallenge.d.ts +2 -0
- package/lib/esm/services/auth/logic/auth/askRespondToAuthChallenge.js +6 -0
- package/lib/esm/services/auth/logic/auth/index.d.ts +8 -0
- package/lib/esm/services/auth/logic/auth/index.js +8 -0
- package/lib/esm/services/auth/logic/index.d.ts +1 -0
- package/lib/esm/services/auth/logic/index.js +1 -0
- package/lib/esm/services/auth/types/challengePayloadGuards.d.ts +4 -0
- package/lib/esm/services/auth/types/challengePayloadGuards.js +4 -0
- package/lib/esm/services/auth/types/index.d.ts +2 -0
- package/lib/esm/services/auth/types/index.js +2 -0
- package/lib/esm/services/auth/types/types.d.ts +41 -0
- package/lib/esm/services/auth/types/types.js +1 -0
- package/lib/esm/services/getServiceEntryQpqFunctionRuntime.d.ts +2 -2
- package/lib/esm/services/index.d.ts +1 -0
- package/lib/esm/services/index.js +1 -0
- package/lib/esm/services/log/entry/controller/logController.js +4 -4
- package/lib/esm/services/log/entry/data/logData.js +2 -3
- package/lib/esm/services/log/entry/data/logLogData.js +2 -2
- package/lib/esm/services/log/entry/data/logMetadataData.js +5 -6
- package/lib/esm/services/log/logic/logs/askGetLogs.js +2 -2
- package/lib/esm/services/log/logic/notifyError/askProcessOnError.js +1 -1
- package/lib/esm/services/log/logic/notifyError/askProcessOnThrottle.js +1 -1
- package/lib/esm/services/log/logic/notifyError/askProcessOnTimeout.js +1 -1
- package/lib/esm/services/webSocketQueue/entry/actionProcessor/getStateDispatch.d.ts +5 -0
- package/lib/esm/services/webSocketQueue/entry/actionProcessor/getStateDispatch.js +16 -0
- package/lib/esm/services/webSocketQueue/logic/webSocket/askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend.js +4 -4
- package/lib/esm/services/webSocketQueue/logic/webSocket/messageProcessors/askProcessOnAuthenticate.js +14 -3
- package/lib/esm/services/webSocketQueue/logic/webSocket/messageProcessors/askProcessOnUnauthenticate.js +5 -1
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageAuthenticated.d.ts +4 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageAuthenticated.js +1 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageServiceRequestResponse.d.ts +4 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageServiceRequestResponse.js +1 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageStateDispatch.d.ts +4 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageStateDispatch.js +1 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageUnauthenticated.d.ts +4 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageUnauthenticated.js +1 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType.d.ts +5 -1
- package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType.js +4 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/index.d.ts +4 -0
- package/lib/esm/services/webSocketQueue/types/serverMessages/index.js +4 -0
- package/lib/esm/stories/askGetHttpApiEventStorySession.d.ts +9 -0
- package/lib/esm/stories/askGetHttpApiEventStorySession.js +33 -0
- package/lib/esm/stories/askRouteAuthValidationDecodeDefault.d.ts +3 -0
- package/lib/esm/stories/askRouteAuthValidationDecodeDefault.js +20 -0
- package/lib/esm/stories/askValidateRouteAuth.d.ts +8 -0
- package/lib/esm/stories/askValidateRouteAuth.js +28 -0
- package/lib/esm/stories/index.d.ts +2 -0
- package/lib/esm/stories/index.js +2 -0
- package/lib/esm/utils/headerUtils.js +10 -3
- package/lib/esm/utils/httpEventUtils.js +2 -2
- package/lib/esm/utils/index.d.ts +2 -0
- package/lib/esm/utils/index.js +2 -0
- package/lib/esm/utils/jwtUtils.d.ts +2 -1
- package/lib/esm/utils/jwtUtils.js +2 -1
- package/lib/esm/utils/networkRequestUtils.d.ts +2 -0
- package/lib/esm/utils/networkRequestUtils.js +128 -0
- package/lib/esm/utils/preformNetworkRequest.d.ts +2 -0
- package/lib/esm/utils/preformNetworkRequest.js +16 -0
- package/lib/esm/utils/qpqConfigAccessorsUtils.d.ts +16 -0
- package/lib/esm/utils/qpqConfigAccessorsUtils.js +30 -0
- package/package.json +3 -3
- package/lib/commonjs/config/settings/defineExposeAdminAdvancedSettings/defineExposeAdminAdvancedSettings.d.ts +0 -2
- package/lib/commonjs/config/settings/defineExposeAdminAdvancedSettings/defineExposeAdminAdvancedSettings.js +0 -33
- package/lib/commonjs/config/settings/defineExposeAdminAdvancedSettings/index.d.ts +0 -1
- package/lib/commonjs/config/settings/logs.js +0 -131
- package/lib/commonjs/services/log/entry/webSocket/onWebsocketEvent.d.ts +0 -5
- package/lib/commonjs/services/log/entry/webSocket/onWebsocketEvent.js +0 -15
- package/lib/esm/config/settings/defineExposeAdminAdvancedSettings/defineExposeAdminAdvancedSettings.d.ts +0 -2
- package/lib/esm/config/settings/defineExposeAdminAdvancedSettings/defineExposeAdminAdvancedSettings.js +0 -29
- package/lib/esm/config/settings/defineExposeAdminAdvancedSettings/index.d.ts +0 -1
- package/lib/esm/config/settings/defineExposeAdminAdvancedSettings/index.js +0 -1
- package/lib/esm/config/settings/logs.js +0 -127
- package/lib/esm/services/log/entry/webSocket/onWebsocketEvent.d.ts +0 -5
- package/lib/esm/services/log/entry/webSocket/onWebsocketEvent.js +0 -10
- /package/lib/commonjs/config/settings/{defineExposeAdminAdvancedSettings → defineAdminSettings}/entry/queue/webSocket.d.ts +0 -0
- /package/lib/commonjs/config/settings/{defineExposeAdminAdvancedSettings → defineAdminSettings}/entry/queue/webSocket.js +0 -0
- /package/lib/esm/config/settings/{defineExposeAdminAdvancedSettings → defineAdminSettings}/entry/queue/webSocket.d.ts +0 -0
- /package/lib/esm/config/settings/{defineExposeAdminAdvancedSettings → defineAdminSettings}/entry/queue/webSocket.js +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.getHttpApiEventAutoRespondActionProcessor = void 0;
|
|
13
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
|
+
const askValidateRouteAuth_1 = require("../../stories/askValidateRouteAuth");
|
|
15
|
+
const headerUtils_1 = require("../../utils/headerUtils");
|
|
16
|
+
const getProcessAutoRespond = (qpqConfig) => {
|
|
17
|
+
const validateAuth = (0, quidproquo_core_1.getProcessCustomImplementation)(qpqConfig, askValidateRouteAuth_1.askValidateRouteAuth, 'API Auth Validation', null, () => new Date().toISOString(), quidproquo_core_1.generateUuid);
|
|
18
|
+
return (_a, session_1, actionProcessorList_1, logger_1, updateSession_1, dynamicModuleLoader_1) => __awaiter(void 0, [_a, session_1, actionProcessorList_1, logger_1, updateSession_1, dynamicModuleLoader_1], void 0, function* ({ qpqEventRecord, matchResult }, session, actionProcessorList, logger, updateSession, dynamicModuleLoader) {
|
|
19
|
+
var _b;
|
|
20
|
+
// Just auto respond for options requests
|
|
21
|
+
if (qpqEventRecord.method === 'OPTIONS') {
|
|
22
|
+
return (0, quidproquo_core_1.actionResult)({
|
|
23
|
+
status: 200,
|
|
24
|
+
isBase64Encoded: false,
|
|
25
|
+
body: '',
|
|
26
|
+
headers: (0, headerUtils_1.getCorsHeaders)(qpqConfig, matchResult.config || {}, qpqEventRecord.headers),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const authPayload = {
|
|
30
|
+
event: qpqEventRecord,
|
|
31
|
+
routeAuthSettings: (_b = matchResult.config) === null || _b === void 0 ? void 0 : _b.routeAuthSettings,
|
|
32
|
+
};
|
|
33
|
+
const [authValid, authError] = yield validateAuth(authPayload, session, actionProcessorList, logger, updateSession, dynamicModuleLoader);
|
|
34
|
+
if (authError || !authValid) {
|
|
35
|
+
return (0, quidproquo_core_1.actionResult)({
|
|
36
|
+
status: 401,
|
|
37
|
+
isBase64Encoded: false,
|
|
38
|
+
body: JSON.stringify({
|
|
39
|
+
message: 'You are unauthorized to access this resource',
|
|
40
|
+
}),
|
|
41
|
+
headers: (0, headerUtils_1.getCorsHeaders)(qpqConfig, matchResult.config || {}, qpqEventRecord.headers),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return (0, quidproquo_core_1.actionResult)(null);
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
const getHttpApiEventAutoRespondActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
|
|
48
|
+
return ({
|
|
49
|
+
[quidproquo_core_1.EventActionType.AutoRespond]: getProcessAutoRespond(qpqConfig),
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
exports.getHttpApiEventAutoRespondActionProcessor = getHttpApiEventAutoRespondActionProcessor;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.getHttpApiEventGetStorySessionActionProcessor = void 0;
|
|
13
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
|
+
const askGetHttpApiEventStorySession_1 = require("../../stories/askGetHttpApiEventStorySession");
|
|
15
|
+
const getProcessGetStorySession = (qpqConfig) => {
|
|
16
|
+
const getSession = (0, quidproquo_core_1.getProcessCustomImplementation)(qpqConfig, askGetHttpApiEventStorySession_1.askGetHttpApiEventStorySession, 'API Get Story Session', null, () => new Date().toISOString(), quidproquo_core_1.generateUuid);
|
|
17
|
+
return (_a, session_1, actionProcessorList_1, logger_1, updateSession_1, dynamicModuleLoader_1) => __awaiter(void 0, [_a, session_1, actionProcessorList_1, logger_1, updateSession_1, dynamicModuleLoader_1], void 0, function* ({ matchStoryResult, qpqEventRecord }, session, actionProcessorList, logger, updateSession, dynamicModuleLoader) {
|
|
18
|
+
var _b;
|
|
19
|
+
const payload = {
|
|
20
|
+
event: qpqEventRecord,
|
|
21
|
+
routeAuthSettings: (_b = matchStoryResult.config) === null || _b === void 0 ? void 0 : _b.routeAuthSettings,
|
|
22
|
+
session,
|
|
23
|
+
};
|
|
24
|
+
const [storySession, error] = yield getSession(payload, session, actionProcessorList, logger, updateSession, dynamicModuleLoader);
|
|
25
|
+
if (error) {
|
|
26
|
+
return (0, quidproquo_core_1.actionResult)(void 0);
|
|
27
|
+
}
|
|
28
|
+
return (0, quidproquo_core_1.actionResult)(storySession);
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
const getHttpApiEventGetStorySessionActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
|
|
32
|
+
return ({
|
|
33
|
+
[quidproquo_core_1.EventActionType.GetStorySession]: getProcessGetStorySession(qpqConfig),
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
exports.getHttpApiEventGetStorySessionActionProcessor = getHttpApiEventGetStorySessionActionProcessor;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./getHttpApiEventAutoRespondActionProcessor"), exports);
|
|
18
|
+
__exportStar(require("./getHttpApiEventGetStorySessionActionProcessor"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api"), exports);
|
|
18
|
+
__exportStar(require("./routeAuthValidation"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.getRouteAuthValidationDecodeActionProcessor = void 0;
|
|
13
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
|
+
const routeAuthValidation_1 = require("../../actions/routeAuthValidation");
|
|
15
|
+
const askRouteAuthValidationDecodeDefault_1 = require("../../stories/askRouteAuthValidationDecodeDefault");
|
|
16
|
+
const getProcessRouteAuthValidationDecode = (qpqConfig) => {
|
|
17
|
+
const decodeAuth = (0, quidproquo_core_1.getProcessCustomImplementation)(qpqConfig, askRouteAuthValidationDecodeDefault_1.askRouteAuthValidationDecodeDefault, 'Route Auth Validation Decode', null, () => new Date().toISOString(), quidproquo_core_1.generateUuid);
|
|
18
|
+
return (payload, session, actionProcessorList, logger, updateSession, dynamicModuleLoader, streamRegistry) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
const [result, error] = yield decodeAuth(payload, session, actionProcessorList, logger, updateSession, dynamicModuleLoader, streamRegistry);
|
|
20
|
+
if (error) {
|
|
21
|
+
return (0, quidproquo_core_1.actionResult)(null);
|
|
22
|
+
}
|
|
23
|
+
return (0, quidproquo_core_1.actionResult)(result !== null && result !== void 0 ? result : null);
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const getRouteAuthValidationDecodeActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
+
return ({
|
|
28
|
+
[routeAuthValidation_1.RouteAuthValidationActionType.Decode]: getProcessRouteAuthValidationDecode(qpqConfig),
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
exports.getRouteAuthValidationDecodeActionProcessor = getRouteAuthValidationDecodeActionProcessor;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.getRouteAuthValidationActionProcessor = void 0;
|
|
13
|
+
const getRouteAuthValidationDecodeActionProcessor_1 = require("./getRouteAuthValidationDecodeActionProcessor");
|
|
14
|
+
const getRouteAuthValidationActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
return (Object.assign({}, (yield (0, getRouteAuthValidationDecodeActionProcessor_1.getRouteAuthValidationDecodeActionProcessor)(qpqConfig, dynamicModuleLoader))));
|
|
16
|
+
});
|
|
17
|
+
exports.getRouteAuthValidationActionProcessor = getRouteAuthValidationActionProcessor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiKeyValidationActionType = void 0;
|
|
4
|
+
var ApiKeyValidationActionType;
|
|
5
|
+
(function (ApiKeyValidationActionType) {
|
|
6
|
+
ApiKeyValidationActionType["Validate"] = "@quidproquo-webserver/ApiKeyValidation/Validate";
|
|
7
|
+
})(ApiKeyValidationActionType || (exports.ApiKeyValidationActionType = ApiKeyValidationActionType = {}));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ApiKeyReference } from '../../config/settings/apiKey';
|
|
2
|
+
import { ApiKeyValidationValidateActionRequester } from './ApiKeyValidationValidateActionTypes';
|
|
3
|
+
export declare function askApiKeyValidationValidate(apiKeyValue: string, apiKeyReferences: ApiKeyReference[]): ApiKeyValidationValidateActionRequester;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askApiKeyValidationValidate = askApiKeyValidationValidate;
|
|
4
|
+
const ApiKeyValidationActionType_1 = require("./ApiKeyValidationActionType");
|
|
5
|
+
function* askApiKeyValidationValidate(apiKeyValue, apiKeyReferences) {
|
|
6
|
+
return yield {
|
|
7
|
+
type: ApiKeyValidationActionType_1.ApiKeyValidationActionType.Validate,
|
|
8
|
+
payload: {
|
|
9
|
+
apiKeyValue,
|
|
10
|
+
apiKeyReferences,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from 'quidproquo-core';
|
|
2
|
+
import { ApiKeyReference } from '../../config/settings/apiKey';
|
|
3
|
+
import { ApiKeyValidationActionType } from './ApiKeyValidationActionType';
|
|
4
|
+
export interface ApiKeyValidationValidateActionPayload {
|
|
5
|
+
apiKeyValue: string;
|
|
6
|
+
apiKeyReferences: ApiKeyReference[];
|
|
7
|
+
}
|
|
8
|
+
export interface ApiKeyValidationValidateAction extends Action<ApiKeyValidationValidateActionPayload> {
|
|
9
|
+
type: ApiKeyValidationActionType.Validate;
|
|
10
|
+
payload: ApiKeyValidationValidateActionPayload;
|
|
11
|
+
}
|
|
12
|
+
export type ApiKeyValidationValidateActionProcessor = ActionProcessor<ApiKeyValidationValidateAction, boolean>;
|
|
13
|
+
export type ApiKeyValidationValidateActionRequester = ActionRequester<ApiKeyValidationValidateAction, boolean>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ApiKeyValidationActionType"), exports);
|
|
18
|
+
__exportStar(require("./ApiKeyValidationValidateActionRequester"), exports);
|
|
19
|
+
__exportStar(require("./ApiKeyValidationValidateActionTypes"), exports);
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from './admin';
|
|
2
|
+
export * from './apiKeyValidation';
|
|
2
3
|
export * from './dns';
|
|
3
4
|
export * from "./extract";
|
|
4
5
|
export * from './genericDataResource';
|
|
5
6
|
export * from './openApiSpec';
|
|
7
|
+
export * from './routeAuthValidation';
|
|
8
|
+
export * from './service';
|
|
6
9
|
export * from './serviceFunction';
|
|
7
10
|
export * from './webEntry';
|
|
8
11
|
export * from './websocket';
|
|
@@ -15,10 +15,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./admin"), exports);
|
|
18
|
+
__exportStar(require("./apiKeyValidation"), exports);
|
|
18
19
|
__exportStar(require("./dns"), exports);
|
|
19
20
|
__exportStar(require("./extract"), exports);
|
|
20
21
|
__exportStar(require("./genericDataResource"), exports);
|
|
21
22
|
__exportStar(require("./openApiSpec"), exports);
|
|
23
|
+
__exportStar(require("./routeAuthValidation"), exports);
|
|
24
|
+
__exportStar(require("./service"), exports);
|
|
22
25
|
__exportStar(require("./serviceFunction"), exports);
|
|
23
26
|
__exportStar(require("./webEntry"), exports);
|
|
24
27
|
__exportStar(require("./websocket"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RouteAuthValidationActionType = void 0;
|
|
4
|
+
var RouteAuthValidationActionType;
|
|
5
|
+
(function (RouteAuthValidationActionType) {
|
|
6
|
+
RouteAuthValidationActionType["Decode"] = "@quidproquo-webserver/RouteAuthValidation/Decode";
|
|
7
|
+
})(RouteAuthValidationActionType || (exports.RouteAuthValidationActionType = RouteAuthValidationActionType = {}));
|
package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationDecodeActionRequester.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RouteAuthSettings } from '../../config/settings/route';
|
|
2
|
+
import { HTTPEvent } from '../../types/HTTPEvent';
|
|
3
|
+
import { RouteAuthValidationDecodeActionRequester } from './RouteAuthValidationDecodeActionTypes';
|
|
4
|
+
export declare function askRouteAuthValidationDecode(event: HTTPEvent, routeAuthSettings: RouteAuthSettings, ignoreExpiration: boolean): RouteAuthValidationDecodeActionRequester;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askRouteAuthValidationDecode = askRouteAuthValidationDecode;
|
|
4
|
+
const RouteAuthValidationActionType_1 = require("./RouteAuthValidationActionType");
|
|
5
|
+
function* askRouteAuthValidationDecode(event, routeAuthSettings, ignoreExpiration) {
|
|
6
|
+
return yield {
|
|
7
|
+
type: RouteAuthValidationActionType_1.RouteAuthValidationActionType.Decode,
|
|
8
|
+
payload: {
|
|
9
|
+
event,
|
|
10
|
+
routeAuthSettings,
|
|
11
|
+
ignoreExpiration,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester, DecodedAccessToken } from 'quidproquo-core';
|
|
2
|
+
import { RouteAuthSettings } from '../../config/settings/route';
|
|
3
|
+
import { HTTPEvent } from '../../types/HTTPEvent';
|
|
4
|
+
import { RouteAuthValidationActionType } from './RouteAuthValidationActionType';
|
|
5
|
+
export interface RouteAuthValidationDecodeActionPayload {
|
|
6
|
+
event: HTTPEvent;
|
|
7
|
+
routeAuthSettings: RouteAuthSettings;
|
|
8
|
+
ignoreExpiration: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface RouteAuthValidationDecodeAction extends Action<RouteAuthValidationDecodeActionPayload> {
|
|
11
|
+
type: RouteAuthValidationActionType.Decode;
|
|
12
|
+
payload: RouteAuthValidationDecodeActionPayload;
|
|
13
|
+
}
|
|
14
|
+
export type RouteAuthValidationDecodeActionProcessor = ActionProcessor<RouteAuthValidationDecodeAction, DecodedAccessToken | null>;
|
|
15
|
+
export type RouteAuthValidationDecodeActionRequester = ActionRequester<RouteAuthValidationDecodeAction, DecodedAccessToken | null>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./RouteAuthValidationActionType"), exports);
|
|
18
|
+
__exportStar(require("./RouteAuthValidationDecodeActionRequester"), exports);
|
|
19
|
+
__exportStar(require("./RouteAuthValidationDecodeActionTypes"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceActionType = void 0;
|
|
4
|
+
var ServiceActionType;
|
|
5
|
+
(function (ServiceActionType) {
|
|
6
|
+
ServiceActionType["Request"] = "@quidproquo-webserver/Service/Request";
|
|
7
|
+
})(ServiceActionType || (exports.ServiceActionType = ServiceActionType = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askServiceRequest = askServiceRequest;
|
|
4
|
+
const ServiceActionType_1 = require("./ServiceActionType");
|
|
5
|
+
function* askServiceRequest(serviceName, method, payload) {
|
|
6
|
+
return yield {
|
|
7
|
+
type: ServiceActionType_1.ServiceActionType.Request,
|
|
8
|
+
payload: {
|
|
9
|
+
serviceName,
|
|
10
|
+
method,
|
|
11
|
+
payload,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from 'quidproquo-core';
|
|
2
|
+
import { ServiceActionType } from './ServiceActionType';
|
|
3
|
+
export interface ServiceRequestActionPayload<TPayload> {
|
|
4
|
+
serviceName: string;
|
|
5
|
+
method: string;
|
|
6
|
+
payload: TPayload;
|
|
7
|
+
}
|
|
8
|
+
export interface ServiceRequestAction<TPayload> extends Action<ServiceRequestActionPayload<TPayload>> {
|
|
9
|
+
type: ServiceActionType.Request;
|
|
10
|
+
payload: ServiceRequestActionPayload<TPayload>;
|
|
11
|
+
}
|
|
12
|
+
export type ServiceRequestActionProcessor<TPayload, TResponse> = ActionProcessor<ServiceRequestAction<TPayload>, TResponse>;
|
|
13
|
+
export type ServiceRequestActionRequester<TPayload, TResponse> = ActionRequester<ServiceRequestAction<TPayload>, TResponse>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AskResponse } from 'quidproquo-core';
|
|
2
|
+
export interface ServiceRequester<TPayload, TResponse> {
|
|
3
|
+
(payload: TPayload): AskResponse<TResponse>;
|
|
4
|
+
serviceRequest: {
|
|
5
|
+
serviceName: string;
|
|
6
|
+
method: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const createServiceRequester: <TPayload, TResponse = void>(serviceName: string, method: string) => ServiceRequester<TPayload, TResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createServiceRequester = void 0;
|
|
4
|
+
const ServiceRequestActionRequester_1 = require("./ServiceRequestActionRequester");
|
|
5
|
+
const createServiceRequester = (serviceName, method) => {
|
|
6
|
+
const requester = function* askWrapServiceRequest(payload) {
|
|
7
|
+
return yield* (0, ServiceRequestActionRequester_1.askServiceRequest)(serviceName, method, payload);
|
|
8
|
+
};
|
|
9
|
+
requester.serviceRequest = { serviceName, method };
|
|
10
|
+
return requester;
|
|
11
|
+
};
|
|
12
|
+
exports.createServiceRequester = createServiceRequester;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./createServiceRequester"), exports);
|
|
18
|
+
__exportStar(require("./ServiceActionType"), exports);
|
|
19
|
+
__exportStar(require("./serviceRequest"), exports);
|
|
20
|
+
__exportStar(require("./ServiceRequestActionRequester"), exports);
|
|
21
|
+
__exportStar(require("./ServiceRequestActionTypes"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AskResponse, QueueEvent, QueueMessage } from 'quidproquo-core';
|
|
2
|
+
import { ServiceRequester } from './createServiceRequester';
|
|
3
|
+
type PayloadOf<R> = R extends ServiceRequester<infer T, any> ? T : never;
|
|
4
|
+
type ResponseOf<R> = R extends ServiceRequester<any, infer T> ? T : never;
|
|
5
|
+
export declare const serviceRequest: <R extends ServiceRequester<any, any>>(requester: R, runtime: (payload: PayloadOf<R>) => AskResponse<ResponseOf<R>>) => {
|
|
6
|
+
(event: QueueEvent<QueueMessage<any>>): Generator<import("quidproquo-core").Action<any>, boolean, any>;
|
|
7
|
+
serviceRequest: {
|
|
8
|
+
method: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serviceRequest = void 0;
|
|
4
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
+
const context_1 = require("../../context");
|
|
6
|
+
const askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend_1 = require("../../services/webSocketQueue/logic/webSocket/askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend");
|
|
7
|
+
const WebSocketQueueServerMessageEventType_1 = require("../../services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType");
|
|
8
|
+
const serviceRequest = (requester, runtime) => {
|
|
9
|
+
const { method } = requester.serviceRequest;
|
|
10
|
+
const wrapper = function* wrapper(event) {
|
|
11
|
+
const result = yield* (0, quidproquo_core_1.askCatch)(runtime(event.message.payload));
|
|
12
|
+
const { connectionId, correlationId } = yield* (0, context_1.askWebsocketReadConnectionInfo)();
|
|
13
|
+
const response = {
|
|
14
|
+
type: WebSocketQueueServerMessageEventType_1.WebSocketQueueServerMessageEventType.ServiceRequestResponse,
|
|
15
|
+
payload: result,
|
|
16
|
+
};
|
|
17
|
+
yield* (0, askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend_1.askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend)(Object.assign(Object.assign({}, response), { correlationId }), connectionId);
|
|
18
|
+
return true;
|
|
19
|
+
};
|
|
20
|
+
wrapper.serviceRequest = { method };
|
|
21
|
+
return wrapper;
|
|
22
|
+
};
|
|
23
|
+
exports.serviceRequest = serviceRequest;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.askServiceFunctionExecute = askServiceFunctionExecute;
|
|
4
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
4
|
const ServiceFunctionActionType_1 = require("./ServiceFunctionActionType");
|
|
6
5
|
function* askServiceFunctionExecute(service, functionName, payload, isAsync = false) {
|
|
7
|
-
// Read the context so we can send it with the queue message
|
|
8
|
-
const context = (yield {
|
|
9
|
-
type: quidproquo_core_1.ContextActionType.List,
|
|
10
|
-
});
|
|
11
6
|
const result = (yield {
|
|
12
7
|
type: ServiceFunctionActionType_1.ServiceFunctionActionType.Execute,
|
|
13
8
|
payload: {
|
|
14
9
|
functionName,
|
|
15
10
|
service,
|
|
16
11
|
payload,
|
|
17
|
-
context,
|
|
18
12
|
isAsync,
|
|
19
13
|
},
|
|
20
14
|
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Action, ActionProcessor, ActionRequester
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from 'quidproquo-core';
|
|
2
2
|
import { ServiceFunctionActionType } from './ServiceFunctionActionType';
|
|
3
3
|
export interface ServiceFunctionExecuteActionPayload<T> {
|
|
4
4
|
service: string;
|
|
5
5
|
functionName: string;
|
|
6
6
|
payload: T;
|
|
7
|
-
context: QpqContext<any>;
|
|
8
7
|
isAsync: boolean;
|
|
9
8
|
}
|
|
10
9
|
export interface ServiceFunctionExecuteAction<T> extends Action<ServiceFunctionExecuteActionPayload<T>> {
|
|
@@ -12,4 +11,4 @@ export interface ServiceFunctionExecuteAction<T> extends Action<ServiceFunctionE
|
|
|
12
11
|
payload: ServiceFunctionExecuteActionPayload<T>;
|
|
13
12
|
}
|
|
14
13
|
export type ServiceFunctionExecuteActionProcessor<R, T> = ActionProcessor<ServiceFunctionExecuteAction<T>, R>;
|
|
15
|
-
export type ServiceFunctionExecuteActionRequester<R, T> = ActionRequester<ServiceFunctionExecuteAction<T
|
|
14
|
+
export type ServiceFunctionExecuteActionRequester<R, T> = ActionRequester<ServiceFunctionExecuteAction<T>, R>;
|
|
@@ -12,7 +12,8 @@ export declare enum QPQWebServerConfigSettingType {
|
|
|
12
12
|
WebSocket = "@quidproquo-webserver/config/WebSocket",
|
|
13
13
|
Cache = "@quidproquo-webserver/config/Cache",
|
|
14
14
|
Certificate = "@quidproquo-webserver/config/Certificate",
|
|
15
|
-
DomainProxy = "@quidproquo-webserver/config/DomainProxy"
|
|
15
|
+
DomainProxy = "@quidproquo-webserver/config/DomainProxy",
|
|
16
|
+
StorageDriveCorsSettings = "@quidproquo-webserver/config/StorageDriveCorsSettings"
|
|
16
17
|
}
|
|
17
18
|
export interface CacheSettings {
|
|
18
19
|
minTTLInSeconds: number;
|
|
@@ -17,4 +17,5 @@ var QPQWebServerConfigSettingType;
|
|
|
17
17
|
QPQWebServerConfigSettingType["Cache"] = "@quidproquo-webserver/config/Cache";
|
|
18
18
|
QPQWebServerConfigSettingType["Certificate"] = "@quidproquo-webserver/config/Certificate";
|
|
19
19
|
QPQWebServerConfigSettingType["DomainProxy"] = "@quidproquo-webserver/config/DomainProxy";
|
|
20
|
+
QPQWebServerConfigSettingType["StorageDriveCorsSettings"] = "@quidproquo-webserver/config/StorageDriveCorsSettings";
|
|
20
21
|
})(QPQWebServerConfigSettingType || (exports.QPQWebServerConfigSettingType = QPQWebServerConfigSettingType = {}));
|
package/lib/commonjs/config/settings/{logs.d.ts → defineAdminSettings/defineAdminSettings.d.ts}
RENAMED
|
@@ -3,6 +3,6 @@ export interface QPQConfigAdvancedLogSettings extends QPQConfigAdvancedSettings
|
|
|
3
3
|
logRetentionDays?: number;
|
|
4
4
|
coldStorageAfterDays?: number;
|
|
5
5
|
claudeAiApiKeySecretName?: string;
|
|
6
|
+
services?: string[];
|
|
6
7
|
}
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const defineLogs: (rootDomain: string, services: string[], advancedSettings?: QPQConfigAdvancedLogSettings) => QPQConfig;
|
|
8
|
+
export declare const defineAdminSettings: (logServiceName: string, rootDomain: string, advancedSettings?: QPQConfigAdvancedLogSettings) => QPQConfig;
|