quidproquo-actionprocessor-awslambda 0.0.231 → 0.0.233
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/README.md +97 -118
- package/lib/commonjs/awsLambdaUtils.d.ts +1 -1
- package/lib/commonjs/awsLambdaUtils.js +1 -1
- package/lib/commonjs/awsNamingUtils.d.ts +1 -1
- package/lib/commonjs/awsNamingUtils.js +4 -7
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/getEventGetStorySessionActionProcessor.js +24 -2
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/getEventMatchStoryActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/types.d.ts +3 -3
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/types.d.ts +2 -2
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/types.d.ts +2 -2
- package/lib/commonjs/getActionProcessor/core/event/cognito/createAuthChallenge/types.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/customMessage/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/customMessage/types.d.ts +2 -2
- package/lib/commonjs/getActionProcessor/core/event/cognito/defineAuthChallenge/types.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/index.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/index.js +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/utils/getChallengeSessionFromCognitoTriggerEventSession.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/verifyAuthChallenge/types.d.ts +2 -2
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/types.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/index.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/index.js +1 -1
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/types.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/core/event/index.d.ts +2 -2
- package/lib/commonjs/getActionProcessor/core/event/index.js +2 -2
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/types.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/types.d.ts +2 -2
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/types.d.ts +2 -2
- package/lib/commonjs/getActionProcessor/core/event/utils/isAuthValid.js +3 -3
- package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileReadBinaryContentsActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileReadTextContentsActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/file/index.js +2 -2
- package/lib/commonjs/getActionProcessor/core/graphDatabase/customActions/getActionProcessor/getGraphDatabaseForNeptuneGetEndpointsActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/getGraphDatabaseExecuteOpenCypherQueryActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/index.d.ts +5 -5
- package/lib/commonjs/getActionProcessor/core/index.js +10 -10
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreDeleteActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreGetActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreGetAllActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreUpdateActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreUpsertActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/index.js +2 -2
- package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryConfirmForgotPasswordActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryDecodeAccessTokenActionProcessor.js +2 -5
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryForgotPasswordActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +11 -12
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +3 -5
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetAccessTokenActionProcessor.js +5 -2
- package/lib/commonjs/getActionProcessor/index.js +1 -1
- package/lib/commonjs/getActionProcessor/webserver/index.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/webserver/index.js +2 -2
- package/lib/commonjs/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/webserver/webEntry/getWebEntryInvalidateCacheActionProcessor.js +1 -1
- package/lib/commonjs/index.d.ts +5 -4
- package/lib/commonjs/index.js +9 -7
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +1 -1
- package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler.js +0 -3
- package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +1 -1
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +1 -1
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +1 -1
- package/lib/commonjs/lambdaHandlers/getS3Event_fileEvent.js +1 -1
- package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.js +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +4 -4
- package/lib/commonjs/lambdaHandlers/helpers/logger.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/logger.js +1 -1
- package/lib/commonjs/lambdaHandlers/index.d.ts +3 -3
- package/lib/commonjs/lambdaHandlers/index.js +3 -3
- package/lib/commonjs/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.js +2 -2
- package/lib/commonjs/lambdas/apiGatewayEventHandler.js +1 -1
- package/lib/commonjs/lambdas/apiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
- package/lib/commonjs/lambdas/cloudFrontRequestEvent_originRequest.js +1 -1
- package/lib/commonjs/lambdas/customMessageTriggerEvent_createAuthChallenge.js +1 -1
- package/lib/commonjs/lambdas/customMessageTriggerEvent_customMessage.js +1 -1
- package/lib/commonjs/lambdas/customMessageTriggerEvent_defineAuthChallenge.js +1 -1
- package/lib/commonjs/lambdas/customMessageTriggerEvent_verifyAuthChallenge.js +1 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoader.js +1 -1
- package/lib/commonjs/lambdas/eventBridgeEvent_recurringSchedule.js +1 -1
- package/lib/commonjs/lambdas/eventBridgeEvent_stackDeploy.js +1 -1
- package/lib/commonjs/lambdas/lambda-utils/getQpqConfig.js +1 -1
- package/lib/commonjs/lambdas/lambda-utils/index.d.ts +1 -1
- package/lib/commonjs/lambdas/lambda-utils/index.js +1 -1
- package/lib/commonjs/lambdas/lambda-utils/logger.d.ts +1 -1
- package/lib/commonjs/lambdas/lambda-utils/logger.js +1 -1
- package/lib/commonjs/lambdas/lambdaSQSEvent.js +3 -3
- package/lib/commonjs/lambdas/sqsEvent_queueEvent.js +1 -1
- package/lib/commonjs/logic/acm/findMatchingCertificates.js +1 -2
- package/lib/commonjs/logic/apiGateway/getApiKeys.js +5 -1
- package/lib/commonjs/logic/apiGateway/websocketSendMessage.js +3 -3
- package/lib/commonjs/logic/cache/memoFuncAsync.js +5 -9
- package/lib/commonjs/logic/cloudFront/invalidateCache.js +1 -1
- package/lib/commonjs/logic/cloudformation/getExportedValue.js +1 -1
- package/lib/commonjs/logic/cognito/authenticateUser.js +5 -3
- package/lib/commonjs/logic/cognito/changePassword.js +3 -1
- package/lib/commonjs/logic/cognito/confirmForgotPassword.js +5 -3
- package/lib/commonjs/logic/cognito/createUser.d.ts +1 -1
- package/lib/commonjs/logic/cognito/createUser.js +5 -3
- package/lib/commonjs/logic/cognito/decodeAccessToken.d.ts +2 -0
- package/lib/commonjs/logic/cognito/decodeAccessToken.js +28 -0
- package/lib/commonjs/logic/cognito/decodeValidJwt.d.ts +2 -5
- package/lib/commonjs/logic/cognito/decodeValidJwt.js +4 -1
- package/lib/commonjs/logic/cognito/forgotPassword.js +4 -2
- package/lib/commonjs/logic/cognito/getUser.js +3 -1
- package/lib/commonjs/logic/cognito/getUserAttributes.js +4 -2
- package/lib/commonjs/logic/cognito/getUserAttributesBySub.js +4 -2
- package/lib/commonjs/logic/cognito/getUserPoolClientSecret.js +3 -1
- package/lib/commonjs/logic/cognito/index.d.ts +2 -0
- package/lib/commonjs/logic/cognito/index.js +18 -0
- package/lib/commonjs/logic/cognito/listPagedUsers.d.ts +1 -1
- package/lib/commonjs/logic/cognito/listPagedUsers.js +4 -2
- package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.d.ts +1 -1
- package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.js +4 -2
- package/lib/commonjs/logic/cognito/refreshToken.js +5 -3
- package/lib/commonjs/logic/cognito/requestEmailVerificationCode.js +3 -1
- package/lib/commonjs/logic/cognito/respondToAuthChallengeChallenge.js +5 -3
- package/lib/commonjs/logic/cognito/setUserAttributes.js +4 -2
- package/lib/commonjs/logic/cognito/setUserPassword.js +3 -1
- package/lib/commonjs/logic/cognito/utils/index.d.ts +1 -1
- package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.d.ts +2 -2
- package/lib/commonjs/logic/cognito/verifyUserEmail.js +3 -1
- package/lib/commonjs/logic/dynamo/deleteItem.js +1 -1
- package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.js +1 -1
- package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.js +7 -3
- package/lib/commonjs/logic/dynamo/index.d.ts +1 -1
- package/lib/commonjs/logic/dynamo/index.js +1 -1
- package/lib/commonjs/logic/dynamo/putItem.js +1 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +1 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +2 -4
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +1 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +2 -9
- package/lib/commonjs/logic/dynamo/query.js +2 -2
- package/lib/commonjs/logic/dynamo/scan.js +2 -2
- package/lib/commonjs/logic/dynamo/updateItem.d.ts +1 -1
- package/lib/commonjs/logic/dynamo/updateItem.js +1 -1
- package/lib/commonjs/logic/index.d.ts +1 -0
- package/lib/commonjs/logic/index.js +17 -0
- package/lib/commonjs/logic/parametersManager/setParameter.js +1 -1
- package/lib/commonjs/logic/s3/generatePresignedUrl.js +3 -1
- package/lib/commonjs/logic/s3/listFiles.js +1 -1
- package/lib/commonjs/logic/s3/readBinaryFile.js +5 -1
- package/lib/commonjs/logic/s3/s3Utils.d.ts +2 -2
- package/lib/commonjs/logic/s3/s3Utils.js +2 -2
- package/lib/commonjs/logic/s3/writeBinaryFile.js +1 -1
- package/lib/commonjs/logic/s3/writeTextFile.js +1 -1
- package/lib/commonjs/logic/secretsManager/getSecret.js +3 -1
- package/lib/commonjs/logic/sqs/sendMessages.js +1 -1
- package/lib/esm/awsLambdaUtils.d.ts +1 -1
- package/lib/esm/awsLambdaUtils.js +1 -1
- package/lib/esm/awsNamingUtils.d.ts +1 -1
- package/lib/esm/awsNamingUtils.js +4 -7
- package/lib/esm/getActionProcessor/core/config/getConfigGetGlobalActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/config/getConfigGetSecretActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventGetStorySessionActionProcessor.js +30 -3
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventMatchStoryActionProcessor.js +4 -3
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/types.d.ts +3 -3
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventMatchStoryActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/types.d.ts +2 -2
- package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventGetRecordsActionProcessor.js +5 -2
- package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/types.d.ts +2 -2
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/types.d.ts +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventAutoRespondActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/customMessage/types.d.ts +2 -2
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/types.d.ts +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/index.d.ts +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/index.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/utils/getChallengeSessionFromCognitoTriggerEventSession.d.ts +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/types.d.ts +2 -2
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventGetRecordsActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/types.d.ts +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/index.d.ts +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/index.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/types.d.ts +1 -1
- package/lib/esm/getActionProcessor/core/event/index.d.ts +2 -2
- package/lib/esm/getActionProcessor/core/event/index.js +2 -2
- package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/types.d.ts +1 -1
- package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/s3/fileEvent/types.d.ts +2 -2
- package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventAutoRespondActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventGetStorySessionActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/sqs/queue/types.d.ts +2 -2
- package/lib/esm/getActionProcessor/core/event/utils/isAuthValid.js +3 -3
- package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileGenerateTemporarySecureUrlActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileReadBinaryContentsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileReadTextContentsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/file/index.js +2 -2
- package/lib/esm/getActionProcessor/core/graphDatabase/customActions/getActionProcessor/getGraphDatabaseForNeptuneGetEndpointsActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/graphDatabase/getGraphDatabaseExecuteOpenCypherQueryActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/graphDatabase/getGraphDatabaseInternalFieldNamesActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/askRunNeptuneOpenCypherQuery.js +1 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/converters/askConvertAnyNeptuneResultToAnyGraphResult.js +2 -2
- package/lib/esm/getActionProcessor/core/index.d.ts +5 -5
- package/lib/esm/getActionProcessor/core/index.js +10 -10
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreDeleteActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreGetActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreGetAllActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreUpdateActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreUpsertActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/keyValueStore/index.js +2 -2
- package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js +3 -3
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryConfirmForgotPasswordActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryDecodeAccessTokenActionProcessor.js +4 -4
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryForgotPasswordActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +12 -13
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +5 -7
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +3 -3
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetAccessTokenActionProcessor.js +5 -2
- package/lib/esm/getActionProcessor/index.js +1 -1
- package/lib/esm/getActionProcessor/webserver/index.d.ts +1 -1
- package/lib/esm/getActionProcessor/webserver/index.js +2 -2
- package/lib/esm/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/webserver/webEntry/getWebEntryInvalidateCacheActionProcessor.js +1 -1
- package/lib/esm/index.d.ts +5 -4
- package/lib/esm/index.js +6 -4
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +1 -1
- package/lib/esm/lambdaHandlers/getApiGatewayEventHandler.js +0 -3
- package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.d.ts +1 -1
- package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +1 -1
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +1 -1
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +1 -1
- package/lib/esm/lambdaHandlers/getS3Event_fileEvent.js +1 -1
- package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.d.ts +1 -1
- package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.js +1 -1
- package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +1 -1
- package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +4 -4
- package/lib/esm/lambdaHandlers/helpers/logger.d.ts +1 -1
- package/lib/esm/lambdaHandlers/helpers/logger.js +3 -3
- package/lib/esm/lambdaHandlers/index.d.ts +3 -3
- package/lib/esm/lambdaHandlers/index.js +3 -3
- package/lib/esm/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.js +2 -2
- package/lib/esm/lambdas/apiGatewayEventHandler.js +1 -1
- package/lib/esm/lambdas/apiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
- package/lib/esm/lambdas/cloudFrontRequestEvent_originRequest.js +1 -1
- package/lib/esm/lambdas/customMessageTriggerEvent_createAuthChallenge.js +1 -1
- package/lib/esm/lambdas/customMessageTriggerEvent_customMessage.js +1 -1
- package/lib/esm/lambdas/customMessageTriggerEvent_defineAuthChallenge.js +1 -1
- package/lib/esm/lambdas/customMessageTriggerEvent_verifyAuthChallenge.js +1 -1
- package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoader.js +1 -1
- package/lib/esm/lambdas/eventBridgeEvent_recurringSchedule.js +1 -1
- package/lib/esm/lambdas/eventBridgeEvent_stackDeploy.js +1 -1
- package/lib/esm/lambdas/lambda-utils/getQpqConfig.js +1 -1
- package/lib/esm/lambdas/lambda-utils/index.d.ts +1 -1
- package/lib/esm/lambdas/lambda-utils/index.js +1 -1
- package/lib/esm/lambdas/lambda-utils/logger.d.ts +1 -1
- package/lib/esm/lambdas/lambda-utils/logger.js +3 -3
- package/lib/esm/lambdas/lambdaSQSEvent.js +3 -3
- package/lib/esm/lambdas/sqsEvent_queueEvent.js +1 -1
- package/lib/esm/logic/acm/findMatchingCertificates.js +1 -2
- package/lib/esm/logic/apiGateway/getApiKeys.js +6 -2
- package/lib/esm/logic/apiGateway/websocketSendMessage.js +4 -4
- package/lib/esm/logic/cache/memoFuncAsync.js +5 -9
- package/lib/esm/logic/cloudFront/invalidateCache.js +1 -1
- package/lib/esm/logic/cloudformation/getExportedValue.js +2 -2
- package/lib/esm/logic/cognito/authenticateUser.js +6 -4
- package/lib/esm/logic/cognito/changePassword.js +4 -2
- package/lib/esm/logic/cognito/cognitoAttributeMap.js +4 -1
- package/lib/esm/logic/cognito/confirmForgotPassword.js +5 -3
- package/lib/esm/logic/cognito/createUser.d.ts +1 -1
- package/lib/esm/logic/cognito/createUser.js +6 -4
- package/lib/esm/logic/cognito/decodeAccessToken.d.ts +2 -0
- package/lib/esm/logic/cognito/decodeAccessToken.js +19 -0
- package/lib/esm/logic/cognito/decodeValidJwt.d.ts +2 -5
- package/lib/esm/logic/cognito/decodeValidJwt.js +5 -2
- package/lib/esm/logic/cognito/forgotPassword.js +5 -3
- package/lib/esm/logic/cognito/getUser.js +4 -2
- package/lib/esm/logic/cognito/getUserAttributes.js +5 -3
- package/lib/esm/logic/cognito/getUserAttributesBySub.js +5 -3
- package/lib/esm/logic/cognito/getUserPoolClientSecret.js +3 -1
- package/lib/esm/logic/cognito/index.d.ts +2 -0
- package/lib/esm/logic/cognito/index.js +2 -0
- package/lib/esm/logic/cognito/listPagedUsers.d.ts +1 -1
- package/lib/esm/logic/cognito/listPagedUsers.js +5 -3
- package/lib/esm/logic/cognito/listPagedUsersByAttribute.d.ts +1 -1
- package/lib/esm/logic/cognito/listPagedUsersByAttribute.js +4 -2
- package/lib/esm/logic/cognito/refreshToken.js +6 -4
- package/lib/esm/logic/cognito/requestEmailVerificationCode.js +3 -1
- package/lib/esm/logic/cognito/respondToAuthChallengeChallenge.js +5 -3
- package/lib/esm/logic/cognito/setUserAttributes.js +5 -3
- package/lib/esm/logic/cognito/setUserPassword.js +4 -2
- package/lib/esm/logic/cognito/utils/index.d.ts +1 -1
- package/lib/esm/logic/cognito/utils/index.js +1 -1
- package/lib/esm/logic/cognito/utils/transformCognitoResponse.d.ts +2 -2
- package/lib/esm/logic/cognito/verifyUserEmail.js +3 -1
- package/lib/esm/logic/dynamo/deleteItem.js +2 -2
- package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.js +1 -1
- package/lib/esm/logic/dynamo/getPagedItemsOverRange.js +7 -3
- package/lib/esm/logic/dynamo/index.d.ts +1 -1
- package/lib/esm/logic/dynamo/index.js +1 -1
- package/lib/esm/logic/dynamo/putItem.js +1 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +1 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +2 -4
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +1 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +3 -10
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js +1 -1
- package/lib/esm/logic/dynamo/query.js +3 -3
- package/lib/esm/logic/dynamo/scan.js +3 -3
- package/lib/esm/logic/dynamo/updateItem.d.ts +1 -1
- package/lib/esm/logic/dynamo/updateItem.js +1 -1
- package/lib/esm/logic/index.d.ts +1 -0
- package/lib/esm/logic/index.js +1 -0
- package/lib/esm/logic/lambda/executeLambdaByName.js +1 -1
- package/lib/esm/logic/neptune/getNeptuneEndpoints.js +1 -1
- package/lib/esm/logic/parametersManager/getParameter.js +1 -1
- package/lib/esm/logic/parametersManager/getParameters.js +1 -1
- package/lib/esm/logic/parametersManager/setParameter.js +2 -2
- package/lib/esm/logic/s3/deleteFiles.js +1 -1
- package/lib/esm/logic/s3/generatePresignedUrl.js +3 -1
- package/lib/esm/logic/s3/listFiles.js +1 -1
- package/lib/esm/logic/s3/readBinaryFile.js +6 -2
- package/lib/esm/logic/s3/readTextFile.js +1 -1
- package/lib/esm/logic/s3/s3Utils.d.ts +2 -2
- package/lib/esm/logic/s3/s3Utils.js +2 -2
- package/lib/esm/logic/s3/writeBinaryFile.js +2 -2
- package/lib/esm/logic/s3/writeTextFile.js +2 -2
- package/lib/esm/logic/secretsManager/getSecret.js +4 -2
- package/lib/esm/logic/sns/publishMessage.js +1 -1
- package/lib/esm/logic/sqs/sendMessages.js +2 -2
- package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js +1 -1
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -1,118 +1,97 @@
|
|
|
1
|
-
# quidproquo-actionprocessor-awslambda
|
|
2
|
-
|
|
3
|
-
The `quidproquo-actionprocessor-awslambda` library is a key component of the quidproquo framework,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
quidproquo
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
##
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
Once you have the package installed, you can start building your quidproquo-based applications on
|
|
100
|
-
the AWS Lambda platform, leveraging the action processors provided by this library.
|
|
101
|
-
|
|
102
|
-
## Documentation
|
|
103
|
-
|
|
104
|
-
For more detailed information on using the `quidproquo-actionprocessor-awslambda` library, please
|
|
105
|
-
refer to the
|
|
106
|
-
[quidproquo-actionprocessor-awslambda documentation](https://github.com/joe-coady/quidproquo/tree/main/packages/quidproquo-actionprocessor-awslambda).
|
|
107
|
-
|
|
108
|
-
## Contributing
|
|
109
|
-
|
|
110
|
-
If you'd like to contribute to the development of `quidproquo-actionprocessor-awslambda`, please
|
|
111
|
-
refer to the
|
|
112
|
-
[contributing guidelines](https://github.com/joe-coady/quidproquo/blob/main/CONTRIBUTING.md) for
|
|
113
|
-
more information.
|
|
114
|
-
|
|
115
|
-
## License
|
|
116
|
-
|
|
117
|
-
`quidproquo-actionprocessor-awslambda` is licensed under the
|
|
118
|
-
[MIT License](https://github.com/joe-coady/quidproquo/blob/main/LICENSE).
|
|
1
|
+
# quidproquo-actionprocessor-awslambda
|
|
2
|
+
|
|
3
|
+
The `quidproquo-actionprocessor-awslambda` library is a key component of the quidproquo framework, providing a set of generic action processors for
|
|
4
|
+
AWS Lambda. This library serves as the bridge between the core quidproquo functionality and the AWS Lambda runtime, enabling the execution of
|
|
5
|
+
quidproquo-based applications on the AWS Lambda platform.
|
|
6
|
+
|
|
7
|
+
## WARNING: NOT FOR PRODUCTION
|
|
8
|
+
|
|
9
|
+
**This project is currently under active development and should not be used in production environments. The APIs and functionality are subject to
|
|
10
|
+
change without notice.**
|
|
11
|
+
|
|
12
|
+
## Key Features
|
|
13
|
+
|
|
14
|
+
1. **Action-Oriented Architecture**: The `quidproquo-actionprocessor-awslambda` library aligns with the action-oriented architecture of the quidproquo
|
|
15
|
+
framework, allowing for the seamless execution of quidproquo actions within the AWS Lambda environment.
|
|
16
|
+
|
|
17
|
+
2. **Event Handling**: The library provides specialized action processors for handling various event types, such as API Gateway events, CloudFront
|
|
18
|
+
events, SQS events, and more. This enables the integration of quidproquo-based applications with a wide range of AWS services.
|
|
19
|
+
|
|
20
|
+
3. **Configuration Management**: The library includes action processors for managing quidproquo configuration, including the retrieval of secrets,
|
|
21
|
+
parameters, and global values from AWS services like Secrets Manager and Systems Manager Parameter Store.
|
|
22
|
+
|
|
23
|
+
4. **File Management**: The library offers action processors for interacting with Amazon S3, allowing for the reading, writing, and management of
|
|
24
|
+
files and directories within the quidproquo application.
|
|
25
|
+
|
|
26
|
+
5. **User Directory Integration**: The library includes action processors for integrating with Amazon Cognito, enabling user authentication, user
|
|
27
|
+
management, and access control within quidproquo-based applications.
|
|
28
|
+
|
|
29
|
+
6. **Event Bus Integration**: The library provides action processors for publishing and subscribing to events using Amazon EventBridge, facilitating
|
|
30
|
+
cross-service communication and event-driven architectures.
|
|
31
|
+
|
|
32
|
+
7. **Key-Value Store Integration**: The library includes action processors for interacting with Amazon DynamoDB, enabling the use of key-value stores
|
|
33
|
+
within quidproquo applications.
|
|
34
|
+
|
|
35
|
+
8. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that application logs and
|
|
36
|
+
metrics are captured and made available for monitoring and troubleshooting.
|
|
37
|
+
|
|
38
|
+
9. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom action processors to meet their specific
|
|
39
|
+
requirements.
|
|
40
|
+
|
|
41
|
+
## Key Concepts
|
|
42
|
+
|
|
43
|
+
1. **Action Processors**: Action processors are the core components of the `quidproquo-actionprocessor-awslambda` library, responsible for executing
|
|
44
|
+
quidproquo actions within the AWS Lambda environment. These processors handle the integration with various AWS services and ensure the correct
|
|
45
|
+
execution of quidproquo actions.
|
|
46
|
+
|
|
47
|
+
2. **Event Handling**: The library provides specialized action processors for handling different event types, such as API Gateway events, CloudFront
|
|
48
|
+
events, SQS events, and more. These processors transform the event data into a format that can be consumed by the quidproquo runtime and execute
|
|
49
|
+
the appropriate quidproquo actions.
|
|
50
|
+
|
|
51
|
+
3. **Configuration Management**: The library includes action processors for retrieving and managing quidproquo configuration data, such as secrets,
|
|
52
|
+
parameters, and global values, from AWS services like Secrets Manager and Systems Manager Parameter Store.
|
|
53
|
+
|
|
54
|
+
4. **File Management**: The file management action processors enable the reading, writing, and management of files and directories within the
|
|
55
|
+
quidproquo application, using Amazon S3 as the underlying storage service.
|
|
56
|
+
|
|
57
|
+
5. **User Directory Integration**: The user directory integration action processors handle the integration with Amazon Cognito, allowing for user
|
|
58
|
+
authentication, user management, and access control within quidproquo-based applications.
|
|
59
|
+
|
|
60
|
+
6. **Event Bus Integration**: The event bus integration action processors facilitate the publishing and subscribing of events using Amazon
|
|
61
|
+
EventBridge, enabling cross-service communication and event-driven architectures within quidproquo applications.
|
|
62
|
+
|
|
63
|
+
7. **Key-Value Store Integration**: The key-value store integration action processors provide the ability to interact with Amazon DynamoDB, allowing
|
|
64
|
+
quidproquo applications to leverage key-value stores for data storage and retrieval.
|
|
65
|
+
|
|
66
|
+
8. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that application logs and
|
|
67
|
+
metrics are captured and made available for monitoring and troubleshooting.
|
|
68
|
+
|
|
69
|
+
9. **Extensibility**: The `quidproquo-actionprocessor-awslambda` library is designed to be highly extensible, allowing developers to create custom
|
|
70
|
+
action processors to meet their specific requirements. This enables the integration of quidproquo-based applications with a wide range of AWS
|
|
71
|
+
services and third-party tools.
|
|
72
|
+
|
|
73
|
+
## Getting Started
|
|
74
|
+
|
|
75
|
+
To use the `quidproquo-actionprocessor-awslambda` library, you'll need to install the package and its dependencies. You can do this using your
|
|
76
|
+
preferred package manager, such as npm or yarn:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
npm install quidproquo-actionprocessor-awslambda
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Once you have the package installed, you can start building your quidproquo-based applications on the AWS Lambda platform, leveraging the action
|
|
83
|
+
processors provided by this library.
|
|
84
|
+
|
|
85
|
+
## Documentation
|
|
86
|
+
|
|
87
|
+
For more detailed information on using the `quidproquo-actionprocessor-awslambda` library, please refer to the
|
|
88
|
+
[quidproquo-actionprocessor-awslambda documentation](https://github.com/joe-coady/quidproquo/tree/main/packages/quidproquo-actionprocessor-awslambda).
|
|
89
|
+
|
|
90
|
+
## Contributing
|
|
91
|
+
|
|
92
|
+
If you'd like to contribute to the development of `quidproquo-actionprocessor-awslambda`, please refer to the
|
|
93
|
+
[contributing guidelines](https://github.com/joe-coady/quidproquo/blob/main/CONTRIBUTING.md) for more information.
|
|
94
|
+
|
|
95
|
+
## License
|
|
96
|
+
|
|
97
|
+
`quidproquo-actionprocessor-awslambda` is licensed under the [MIT License](https://github.com/joe-coady/quidproquo/blob/main/LICENSE).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StorageClass } from '@aws-sdk/client-s3';
|
|
2
1
|
import { StorageDriveTier } from 'quidproquo-core';
|
|
2
|
+
import { StorageClass } from '@aws-sdk/client-s3';
|
|
3
3
|
export declare const randomGuid: () => `${string}-${string}-${string}-${string}-${string}`;
|
|
4
4
|
export interface UrlMatch {
|
|
5
5
|
didMatch: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getS3BucketStorageClassFromStorageDriveTier = exports.matchUrl = exports.randomGuid = void 0;
|
|
4
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
4
5
|
const crypto_1 = require("crypto");
|
|
5
6
|
const node_match_path_1 = require("node-match-path");
|
|
6
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
7
7
|
const randomGuid = () => {
|
|
8
8
|
return (0, crypto_1.randomUUID)();
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QPQConfig, ResourceName
|
|
1
|
+
import { CrossModuleOwner, QPQConfig, ResourceName } from 'quidproquo-core';
|
|
2
2
|
export declare const getGlobalConfigRuntimeResourceName: (resourceName: string, application: string, environment: string, feature?: string) => string;
|
|
3
3
|
export declare const getGlobalQpqRuntimeResourceName: (resourceName: string, application: string, environment: string, feature?: string, resourceType?: string) => string;
|
|
4
4
|
export declare const getConfigRuntimeResourceName: (resourceName: string, application: string, service: string, environment: string, feature?: string) => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBootstrapStackName = exports.getApiStackName = exports.getWebStackName = exports.getInfStackName = exports.getBaseStackName = exports.getEventBusSnsTopicArn = exports.getCFExportNameWebsocketApiIdFromConfig = exports.getCFExportNameDistributionIdArnFromConfig = exports.getCFExportNameSnsTopicArnFromConfig = exports.getCFExportNameApiKeyIdFromConfig = exports.getCFExportNameUserPoolClientIdFromConfig = exports.getCFExportNameCachePolicyIdFromConfig = exports.getCFExportNameUserPoolIdFromConfig = exports.getKvsDynamoTableNameFromConfig = exports.getQpqRuntimeResourceNameFromConfig = exports.getQpqRuntimeResourceName = exports.getConfigRuntimeResourceNameFromConfigWithServiceOverride = exports.getConfigRuntimeBootstrapResourceNameFromConfig = exports.resolveConfigRuntimeResourceNameFromConfig = exports.getConfigRuntimeResourceNameFromConfig = exports.getConfigRuntimeBootstrapResourceName = exports.getConfigRuntimeResourceName = exports.getGlobalQpqRuntimeResourceName = exports.getGlobalConfigRuntimeResourceName = void 0;
|
|
4
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
4
|
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
5
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
6
6
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
7
7
|
const getGlobalConfigRuntimeResourceName = (resourceName, application, environment, feature) => {
|
|
8
8
|
const baseName = `${resourceName}-${application}-${environment}`;
|
|
@@ -97,8 +97,7 @@ const getCFExportNameUserPoolIdFromConfig = (userDirectoryName, qpqConfig) => {
|
|
|
97
97
|
const userDirectoryConfig = quidproquo_core_1.qpqCoreUtils.getUserDirectoryByName(userDirectoryName, qpqConfig);
|
|
98
98
|
const application = ((_a = userDirectoryConfig.owner) === null || _a === void 0 ? void 0 : _a.application) || quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig);
|
|
99
99
|
const service = ((_b = userDirectoryConfig.owner) === null || _b === void 0 ? void 0 : _b.module) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
|
|
100
|
-
const environment = ((_c = userDirectoryConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) ||
|
|
101
|
-
quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
|
|
100
|
+
const environment = ((_c = userDirectoryConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
|
|
102
101
|
const feature = ((_d = userDirectoryConfig.owner) === null || _d === void 0 ? void 0 : _d.feature) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig);
|
|
103
102
|
const resourceName = ((_e = userDirectoryConfig.owner) === null || _e === void 0 ? void 0 : _e.resourceNameOverride) || userDirectoryName;
|
|
104
103
|
return (0, exports.getQpqRuntimeResourceName)(resourceName, application, service, environment, feature, 'user-pool-id-export');
|
|
@@ -117,8 +116,7 @@ const getCFExportNameUserPoolClientIdFromConfig = (userDirectoryName, qpqConfig)
|
|
|
117
116
|
const userDirectoryConfig = quidproquo_core_1.qpqCoreUtils.getUserDirectoryByName(userDirectoryName, qpqConfig);
|
|
118
117
|
const application = ((_a = userDirectoryConfig.owner) === null || _a === void 0 ? void 0 : _a.application) || quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig);
|
|
119
118
|
const service = ((_b = userDirectoryConfig.owner) === null || _b === void 0 ? void 0 : _b.module) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
|
|
120
|
-
const environment = ((_c = userDirectoryConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) ||
|
|
121
|
-
quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
|
|
119
|
+
const environment = ((_c = userDirectoryConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
|
|
122
120
|
const feature = ((_d = userDirectoryConfig.owner) === null || _d === void 0 ? void 0 : _d.feature) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig);
|
|
123
121
|
const resourceName = ((_e = userDirectoryConfig.owner) === null || _e === void 0 ? void 0 : _e.resourceNameOverride) || userDirectoryName;
|
|
124
122
|
return (0, exports.getQpqRuntimeResourceName)(resourceName, application, service, environment, feature, 'user-pool-client-id-export');
|
|
@@ -152,8 +150,7 @@ const getCFExportNameWebsocketApiIdFromConfig = (websocketApiName, qpqConfig) =>
|
|
|
152
150
|
const websocketApiConfig = quidproquo_webserver_1.qpqWebServerUtils.getWebsocketEntryByApiName(websocketApiName, qpqConfig);
|
|
153
151
|
const application = ((_a = websocketApiConfig.owner) === null || _a === void 0 ? void 0 : _a.application) || quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig);
|
|
154
152
|
const service = ((_b = websocketApiConfig.owner) === null || _b === void 0 ? void 0 : _b.module) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
|
|
155
|
-
const environment = ((_c = websocketApiConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) ||
|
|
156
|
-
quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
|
|
153
|
+
const environment = ((_c = websocketApiConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
|
|
157
154
|
const feature = ((_d = websocketApiConfig.owner) === null || _d === void 0 ? void 0 : _d.feature) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig);
|
|
158
155
|
const resourceName = ((_e = websocketApiConfig.owner) === null || _e === void 0 ? void 0 : _e.resourceNameOverride) || websocketApiName;
|
|
159
156
|
return (0, exports.getQpqRuntimeResourceName)(resourceName, application, service, environment, feature, 'websocket-api-id-export');
|
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getConfigGetParameterActionProcessor = void 0;
|
|
13
13
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
|
-
const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
|
|
15
14
|
const getParameter_1 = require("../../../logic/parametersManager/getParameter");
|
|
15
|
+
const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
|
|
16
16
|
const getProcessConfigGetParameter = (qpqConfig) => {
|
|
17
17
|
return ({ parameterName }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
const awsParameterKey = (0, qpqAwsLambdaRuntimeConfigUtils_1.resolveParameterKey)(parameterName, qpqConfig);
|
package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js
CHANGED
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getConfigGetParametersActionProcessor = void 0;
|
|
13
13
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
|
-
const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
|
|
15
14
|
const getParameters_1 = require("../../../logic/parametersManager/getParameters");
|
|
15
|
+
const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
|
|
16
16
|
const getProcessConfigGetParameters = (qpqConfig) => {
|
|
17
17
|
return ({ parameterNames }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
const awsParameterKeys = parameterNames.map((pn) => (0, qpqAwsLambdaRuntimeConfigUtils_1.resolveParameterKey)(pn, qpqConfig));
|
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getConfigSetParameterActionProcessor = void 0;
|
|
13
13
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
|
-
const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
|
|
15
14
|
const setParameter_1 = require("../../../logic/parametersManager/setParameter");
|
|
15
|
+
const qpqAwsLambdaRuntimeConfigUtils_1 = require("../../../runtimeConfig/qpqAwsLambdaRuntimeConfigUtils");
|
|
16
16
|
const getProcessConfigSetParameter = (qpqConfig) => {
|
|
17
17
|
return ({ parameterName, parameterValue }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
const awsParameterKey = (0, qpqAwsLambdaRuntimeConfigUtils_1.resolveParameterKey)(parameterName, qpqConfig);
|
|
@@ -11,9 +11,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getEventGetStorySessionActionProcessor = void 0;
|
|
13
13
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
|
+
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
15
|
+
const cognito_1 = require("../../../../../logic/cognito");
|
|
14
16
|
const getProcessGetStorySession = (qpqConfig) => {
|
|
15
|
-
return ({
|
|
16
|
-
|
|
17
|
+
return ({ matchStoryResult, qpqEventRecord }, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
const accessToken = quidproquo_webserver_1.qpqWebServerUtils.getAccessTokenFromHeaders(qpqEventRecord.headers);
|
|
20
|
+
if (!accessToken) {
|
|
21
|
+
return (0, quidproquo_core_1.actionResult)(void 0);
|
|
22
|
+
}
|
|
23
|
+
// if this endpoint has no auth settings, BUT we do have an access token
|
|
24
|
+
// then we want to just attempt to extract info for logs, but we will say that its
|
|
25
|
+
// wasValid = false
|
|
26
|
+
if (!((_b = (_a = matchStoryResult.config) === null || _a === void 0 ? void 0 : _a.routeAuthSettings) === null || _b === void 0 ? void 0 : _b.userDirectoryName)) {
|
|
27
|
+
// If this endpoint is unauthenticated, then we will just decode it, and say it wasnt valid, for logs
|
|
28
|
+
const info = quidproquo_webserver_1.qpqWebServerUtils.decodeJWT(accessToken);
|
|
29
|
+
return (0, quidproquo_core_1.actionResult)(Object.assign(Object.assign({}, session), { decodedAccessToken: {
|
|
30
|
+
exp: (info === null || info === void 0 ? void 0 : info.exp) || 0,
|
|
31
|
+
userDirectory: '',
|
|
32
|
+
userId: (info === null || info === void 0 ? void 0 : info.sub) || (info === null || info === void 0 ? void 0 : info.id) || (info === null || info === void 0 ? void 0 : info.userId) || (info === null || info === void 0 ? void 0 : info.username) || '',
|
|
33
|
+
username: (info === null || info === void 0 ? void 0 : info.username) || (info === null || info === void 0 ? void 0 : info.userId) || (info === null || info === void 0 ? void 0 : info.sub) || (info === null || info === void 0 ? void 0 : info.id) || '',
|
|
34
|
+
wasValid: false,
|
|
35
|
+
} }));
|
|
36
|
+
}
|
|
37
|
+
const decodedAccessToken = yield (0, cognito_1.decodeAccessToken)(matchStoryResult.config.routeAuthSettings.userDirectoryName, qpqConfig, accessToken, true);
|
|
38
|
+
return (0, quidproquo_core_1.actionResult)(Object.assign(Object.assign({}, session), { decodedAccessToken }));
|
|
17
39
|
});
|
|
18
40
|
};
|
|
19
41
|
const getEventGetStorySessionActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -30,12 +30,13 @@ const getProcessMatchStory = (qpqConfig) => {
|
|
|
30
30
|
if (!matchedRoute) {
|
|
31
31
|
return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.NotFound, `route not found [${qpqEventRecord.path}] - [${quidproquo_webserver_1.qpqWebServerUtils.getHeaderValue('user-agent', qpqEventRecord.headers)}]`);
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
const matchResult = {
|
|
34
34
|
runtime: matchedRoute.route.runtime,
|
|
35
35
|
runtimeOptions: matchedRoute.match.params || {},
|
|
36
36
|
// TODO: Make this aware of the API that we are eventing
|
|
37
37
|
config: quidproquo_webserver_1.qpqWebServerUtils.mergeAllRouteOptions('api', matchedRoute.route, qpqConfig),
|
|
38
|
-
}
|
|
38
|
+
};
|
|
39
|
+
return (0, quidproquo_core_1.actionResult)(matchResult);
|
|
39
40
|
});
|
|
40
41
|
};
|
|
41
42
|
const getEventMatchStoryActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HTTPEvent, HTTPEventResponse } from 'quidproquo-webserver';
|
|
2
|
-
import { APIGatewayEvent, Context, APIGatewayProxyResult } from 'aws-lambda';
|
|
3
1
|
import { MatchStoryResult } from 'quidproquo-core';
|
|
2
|
+
import { HTTPEvent, HTTPEventResponse, RouteOptions } from 'quidproquo-webserver';
|
|
3
|
+
import { APIGatewayEvent, APIGatewayProxyResult, Context } from 'aws-lambda';
|
|
4
4
|
export type EventInput = [APIGatewayEvent, Context];
|
|
5
5
|
export type EventOutput = APIGatewayProxyResult;
|
|
6
6
|
export type InternalEventRecord = HTTPEvent;
|
|
7
7
|
export type InternalEventOutput = HTTPEventResponse;
|
|
8
|
-
export type MatchResult = MatchStoryResult<
|
|
8
|
+
export type MatchResult = MatchStoryResult<Record<string, string>, RouteOptions>;
|
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getEventMatchStoryActionProcessor = void 0;
|
|
13
13
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
|
-
const types_1 = require("./types");
|
|
15
14
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
15
|
+
const types_1 = require("./types");
|
|
16
16
|
const getProcessMatchStory = (qpqConfig) => {
|
|
17
17
|
const userDirectoryConfig = quidproquo_webserver_1.qpqWebServerUtils.getWebsocketEntryByApiName(types_1.GLOBAL_WEBSOCKET_API_NAME, qpqConfig);
|
|
18
18
|
return ({ qpqEventRecord }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WebsocketEvent, WebsocketEventResponse } from 'quidproquo-webserver';
|
|
2
|
-
import { APIGatewayEventWebsocketRequestContextV2, APIGatewayProxyWebsocketEventV2WithRequestContext, Context, APIGatewayProxyResultV2 } from 'aws-lambda';
|
|
3
1
|
import { MatchStoryResult } from 'quidproquo-core';
|
|
2
|
+
import { WebsocketEvent, WebsocketEventResponse } from 'quidproquo-webserver';
|
|
3
|
+
import { APIGatewayEventWebsocketRequestContextV2, APIGatewayProxyResultV2, APIGatewayProxyWebsocketEventV2WithRequestContext, Context } from 'aws-lambda';
|
|
4
4
|
type ApiGatwayEventWebsocketWithIdentity = APIGatewayProxyWebsocketEventV2WithRequestContext<APIGatewayEventWebsocketRequestContextV2 & {
|
|
5
5
|
identity: {
|
|
6
6
|
sourceIp: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SeoEvent, SeoEventResponse, SeoEventRouteParams, SeoQPQWebServerConfigSetting } from 'quidproquo-webserver';
|
|
2
|
-
import { CloudFrontRequestEvent, Context, CloudFrontRequestResult } from 'aws-lambda';
|
|
3
1
|
import { MatchStoryResult } from 'quidproquo-core';
|
|
2
|
+
import { SeoEvent, SeoEventResponse, SeoEventRouteParams, SeoQPQWebServerConfigSetting } from 'quidproquo-webserver';
|
|
3
|
+
import { CloudFrontRequestEvent, CloudFrontRequestResult, Context } from 'aws-lambda';
|
|
4
4
|
export type EventInput = [CloudFrontRequestEvent, Context];
|
|
5
5
|
export type EventOutput = CloudFrontRequestResult;
|
|
6
6
|
export type InternalEventRecord = SeoEvent<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateAuthChallengeEvent, CreateAuthChallengeEventResponse, MatchStoryResult } from 'quidproquo-core';
|
|
2
|
-
import {
|
|
2
|
+
import { Context, CreateAuthChallengeTriggerEvent } from 'aws-lambda';
|
|
3
3
|
export declare const GLOBAL_USER_DIRECTORY_NAME: string;
|
|
4
4
|
export type EventInput = [CreateAuthChallengeTriggerEvent, Context];
|
|
5
5
|
export type EventOutput = CreateAuthChallengeTriggerEvent;
|
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getEventAutoRespondActionProcessor = void 0;
|
|
13
13
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
|
-
const types_1 = require("./types");
|
|
15
14
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
15
|
+
const types_1 = require("./types");
|
|
16
16
|
const getProcessAutoRespond = (qpqConfig) => {
|
|
17
17
|
const userDirectoryConfig = quidproquo_core_1.qpqCoreUtils.getUserDirectories(qpqConfig).find((ud) => ud.name === types_1.GLOBAL_USER_DIRECTORY_NAME);
|
|
18
18
|
return ({ qpqEventRecord, matchResult }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EmailSendEvent, EmailSendEventResponse } from 'quidproquo-webserver';
|
|
2
|
-
import { CustomMessageTriggerEvent, Context } from 'aws-lambda';
|
|
3
1
|
import { MatchStoryResult } from 'quidproquo-core';
|
|
2
|
+
import { EmailSendEvent, EmailSendEventResponse } from 'quidproquo-webserver';
|
|
3
|
+
import { Context, CustomMessageTriggerEvent } from 'aws-lambda';
|
|
4
4
|
export declare const GLOBAL_USER_DIRECTORY_NAME: string;
|
|
5
5
|
export type EventInput = [CustomMessageTriggerEvent, Context];
|
|
6
6
|
export type EventOutput = CustomMessageTriggerEvent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefineAuthChallengeEvent, DefineAuthChallengeEventResponse, MatchStoryResult } from 'quidproquo-core';
|
|
2
|
-
import {
|
|
2
|
+
import { Context, DefineAuthChallengeTriggerEvent } from 'aws-lambda';
|
|
3
3
|
export declare const GLOBAL_USER_DIRECTORY_NAME: string;
|
|
4
4
|
export type EventInput = [DefineAuthChallengeTriggerEvent, Context];
|
|
5
5
|
export type EventOutput = DefineAuthChallengeTriggerEvent;
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./createAuthChallenge"), exports);
|
|
17
18
|
__exportStar(require("./customMessage"), exports);
|
|
18
19
|
__exportStar(require("./defineAuthChallenge"), exports);
|
|
19
|
-
__exportStar(require("./createAuthChallenge"), exports);
|
|
20
20
|
__exportStar(require("./verifyAuthChallenge"), exports);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DefineAuthChallengeTriggerEvent } from 'aws-lambda';
|
|
2
1
|
import { ChallengeSession } from 'quidproquo-core';
|
|
2
|
+
import { DefineAuthChallengeTriggerEvent } from 'aws-lambda';
|
|
3
3
|
export declare const getChallengeSessionFromCognitoTriggerEventSession: (session: DefineAuthChallengeTriggerEvent['request']['session']) => ChallengeSession;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VerifyAuthChallengeEvent, VerifyAuthChallengeEventResponse
|
|
2
|
-
import {
|
|
1
|
+
import { MatchStoryResult, VerifyAuthChallengeEvent, VerifyAuthChallengeEventResponse } from 'quidproquo-core';
|
|
2
|
+
import { Context, VerifyAuthChallengeResponseTriggerEvent } from 'aws-lambda';
|
|
3
3
|
export declare const GLOBAL_USER_DIRECTORY_NAME: string;
|
|
4
4
|
export type EventInput = [VerifyAuthChallengeResponseTriggerEvent, Context];
|
|
5
5
|
export type EventOutput = VerifyAuthChallengeResponseTriggerEvent;
|
|
@@ -21,7 +21,7 @@ const getProcessGetRecords = (qpqConfig) => {
|
|
|
21
21
|
return ({ eventParams: [eventBridgeEvent, context] }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
22
22
|
const status = eventBridgeEvent.detail['status-details'].status || '';
|
|
23
23
|
const stackId = eventBridgeEvent.detail['stack-id'];
|
|
24
|
-
const regex = /:stack\/([
|
|
24
|
+
const regex = /:stack\/([^/]+)/;
|
|
25
25
|
const match = stackId.match(regex);
|
|
26
26
|
const stackName = match && match[1] ? match[1] : '';
|
|
27
27
|
const internalEventRecord = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventBridgeEvent, Context } from 'aws-lambda';
|
|
2
1
|
import { DeployEvent, DeployEventResponse, MatchStoryResult } from 'quidproquo-core';
|
|
2
|
+
import { Context, EventBridgeEvent } from 'aws-lambda';
|
|
3
3
|
interface CloudFormationEventDetail {
|
|
4
4
|
'stack-id': string;
|
|
5
5
|
'status-details': {
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./recurringSchedule"), exports);
|
|
18
17
|
__exportStar(require("./deployStack"), exports);
|
|
18
|
+
__exportStar(require("./recurringSchedule"), exports);
|
package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventBridgeEvent, Context } from 'aws-lambda';
|
|
2
1
|
import { MatchStoryResult, ScheduledEventParams } from 'quidproquo-core';
|
|
2
|
+
import { Context, EventBridgeEvent } from 'aws-lambda';
|
|
3
3
|
export type EventInput = [EventBridgeEvent<any, any>, Context];
|
|
4
4
|
export type EventOutput = void;
|
|
5
5
|
export type InternalEventRecord = ScheduledEventParams<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './apiGatwayEvent';
|
|
2
2
|
export * from './cloudFrontOriginRequest';
|
|
3
|
-
export * from './eventBridgeEvent';
|
|
4
3
|
export * from './cognito';
|
|
5
|
-
export * from './
|
|
4
|
+
export * from './eventBridgeEvent';
|
|
6
5
|
export * from './lambda';
|
|
6
|
+
export * from './s3';
|
|
7
7
|
export * from './sqs';
|
|
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./apiGatwayEvent"), exports);
|
|
18
18
|
__exportStar(require("./cloudFrontOriginRequest"), exports);
|
|
19
|
-
__exportStar(require("./eventBridgeEvent"), exports);
|
|
20
19
|
__exportStar(require("./cognito"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./eventBridgeEvent"), exports);
|
|
22
21
|
__exportStar(require("./lambda"), exports);
|
|
22
|
+
__exportStar(require("./s3"), exports);
|
|
23
23
|
__exportStar(require("./sqs"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { EitherActionResult, MatchStoryResult, StorySession } from 'quidproquo-core';
|
|
1
2
|
import { ExecuteServiceFunctionEvent } from 'quidproquo-webserver';
|
|
2
3
|
import { Context } from 'aws-lambda';
|
|
3
|
-
import { EitherActionResult, MatchStoryResult, StorySession } from 'quidproquo-core';
|
|
4
4
|
export type AnyExecuteServiceFunctionEventWithSession = ExecuteServiceFunctionEvent<any[]> & {
|
|
5
5
|
storySession: StorySession;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StorageDriveEvent, StorageDriveEventResponse } from 'quidproquo-webserver';
|
|
2
|
-
import { S3Event, Context } from 'aws-lambda';
|
|
3
1
|
import { MatchStoryResult, QpqFunctionRuntime } from 'quidproquo-core';
|
|
2
|
+
import { StorageDriveEvent, StorageDriveEventResponse } from 'quidproquo-webserver';
|
|
3
|
+
import { Context, S3Event } from 'aws-lambda';
|
|
4
4
|
export declare const GLOBAL_STORAGE_DRIVE_NAME: string;
|
|
5
5
|
export declare const GLOBAL_STORAGE_DRIVE_RUNTIME: QpqFunctionRuntime;
|
|
6
6
|
export type EventInput = [S3Event, Context];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { QueueEventResponse } from 'quidproquo-webserver';
|
|
2
|
-
import { SQSEvent, Context, SQSBatchResponse } from 'aws-lambda';
|
|
3
1
|
import { MatchStoryResult, QueueMessage, StorySession } from 'quidproquo-core';
|
|
2
|
+
import { QueueEventResponse } from 'quidproquo-webserver';
|
|
4
3
|
import { QueueEvent } from 'quidproquo-webserver';
|
|
4
|
+
import { Context, SQSBatchResponse, SQSEvent } from 'aws-lambda';
|
|
5
5
|
export type AnyQueueMessageWithSession = QueueMessage<any> & {
|
|
6
6
|
storySession: StorySession;
|
|
7
7
|
};
|