quidproquo-actionprocessor-awslambda 0.0.232 → 0.0.234
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 +3 -2
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetSecretActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/types.d.ts +2 -2
- 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 +6 -5
- package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +5 -5
- package/lib/commonjs/getActionProcessor/core/file/getFileDeleteActionProcessor.js +4 -4
- package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/file/getFileGenerateTemporarySecureUrlActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/file/getFileReadBinaryContentsActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/file/getFileReadTextContentsActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +4 -3
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +4 -3
- package/lib/commonjs/getActionProcessor/core/file/index.js +2 -2
- package/lib/commonjs/getActionProcessor/core/graphDatabase/customActions/getActionProcessor/getGraphDatabaseForNeptuneGetEndpointsActionProcessor.js +3 -2
- 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 +3 -2
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreGetActionProcessor.js +4 -4
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreGetAllActionProcessor.js +4 -4
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +4 -4
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreUpdateActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreUpsertActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/keyValueStore/index.js +2 -2
- package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +5 -5
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js +4 -3
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryChangePasswordActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryConfirmEmailVerificationActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryConfirmForgotPasswordActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js +4 -3
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryDecodeAccessTokenActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryForgotPasswordActionProcessor.js +4 -3
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +4 -3
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRequestEmailVerificationActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +2 -1
- 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 +3 -2
- package/lib/commonjs/getActionProcessor/webserver/webEntry/getWebEntryInvalidateCacheActionProcessor.js +3 -2
- package/lib/commonjs/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +2 -1
- package/lib/commonjs/index.d.ts +5 -5
- package/lib/commonjs/index.js +8 -8
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +1 -1
- 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.js +2 -2
- 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 +1 -1
- package/lib/commonjs/logic/cognito/index.js +1 -1
- 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/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 +4 -3
- package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +4 -3
- package/lib/esm/getActionProcessor/core/config/getConfigGetSecretActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +4 -3
- 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 +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventMatchStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventTransformResponseResultActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/types.d.ts +2 -2
- 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 +6 -5
- package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +4 -4
- package/lib/esm/getActionProcessor/core/file/getFileDeleteActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js +4 -3
- package/lib/esm/getActionProcessor/core/file/getFileGenerateTemporarySecureUrlActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +4 -3
- package/lib/esm/getActionProcessor/core/file/getFileReadBinaryContentsActionProcessor.js +4 -3
- package/lib/esm/getActionProcessor/core/file/getFileReadTextContentsActionProcessor.js +4 -3
- package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +5 -4
- package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +5 -4
- package/lib/esm/getActionProcessor/core/file/index.js +2 -2
- package/lib/esm/getActionProcessor/core/graphDatabase/customActions/getActionProcessor/getGraphDatabaseForNeptuneGetEndpointsActionProcessor.js +4 -3
- 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 +3 -2
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreGetActionProcessor.js +3 -3
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreGetAllActionProcessor.js +3 -3
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +4 -3
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +3 -3
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreUpdateActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreUpsertActionProcessor.js +4 -3
- package/lib/esm/getActionProcessor/core/keyValueStore/index.js +2 -2
- package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +3 -3
- package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js +6 -5
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryChangePasswordActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryConfirmEmailVerificationActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryConfirmForgotPasswordActionProcessor.js +5 -4
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js +6 -5
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryDecodeAccessTokenActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryForgotPasswordActionProcessor.js +6 -5
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +6 -5
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRequestEmailVerificationActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +5 -4
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +3 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +3 -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 +3 -2
- package/lib/esm/getActionProcessor/webserver/webEntry/getWebEntryInvalidateCacheActionProcessor.js +4 -3
- package/lib/esm/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +3 -2
- package/lib/esm/index.d.ts +5 -5
- package/lib/esm/index.js +5 -5
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +1 -1
- 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.js +2 -2
- package/lib/esm/logic/cognito/decodeValidJwt.js +1 -1
- 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 +1 -1
- package/lib/esm/logic/cognito/index.js +1 -1
- 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/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
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryConfirmForgotPasswordActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
|
-
const confirmForgotPassword_1 = require("../../../logic/cognito/confirmForgotPassword");
|
|
16
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
17
|
+
const confirmForgotPassword_1 = require("../../../logic/cognito/confirmForgotPassword");
|
|
17
18
|
const getProcessConfirmForgotPassword = (qpqConfig) => {
|
|
18
19
|
return ({ userDirectoryName, code, username, password }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
const userPoolClientId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolClientIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
22
23
|
const authResponse = yield (0, confirmForgotPassword_1.confirmForgotPassword)(userPoolId, userPoolClientId, region, code, username, password);
|
|
@@ -10,16 +10,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryCreateUserActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
|
-
const createUser_1 = require("../../../logic/cognito/createUser");
|
|
16
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
17
|
+
const createUser_1 = require("../../../logic/cognito/createUser");
|
|
17
18
|
const getProcessCreateUser = (qpqConfig) => {
|
|
18
19
|
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(payload.userDirectoryName, qpqConfig), region);
|
|
21
22
|
const userPoolClientId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolClientIdFromConfig)(payload.userDirectoryName, qpqConfig), region);
|
|
22
|
-
const authResponse = yield (0, createUser_1.createUser)(userPoolId,
|
|
23
|
+
const authResponse = yield (0, createUser_1.createUser)(userPoolId, quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig), userPoolClientId, payload.createUserRequest);
|
|
23
24
|
return (0, quidproquo_core_1.actionResult)(authResponse);
|
|
24
25
|
});
|
|
25
26
|
};
|
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryDecodeAccessTokenActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
16
17
|
const decodeValidJwt_1 = require("../../../logic/cognito/decodeValidJwt");
|
|
17
18
|
const getProcessDecodeAccessToken = (qpqConfig) => {
|
|
18
19
|
return ({ userDirectoryName, accessToken, ignoreExpiration }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
const authInfo = yield (0, decodeValidJwt_1.decodeValidJwt)(userPoolId, region, ignoreExpiration, accessToken);
|
|
22
23
|
if (!authInfo || !(authInfo === null || authInfo === void 0 ? void 0 : authInfo.username)) {
|
|
@@ -10,16 +10,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryForgotPasswordActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
|
-
const forgotPassword_1 = require("../../../logic/cognito/forgotPassword");
|
|
16
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
17
|
+
const forgotPassword_1 = require("../../../logic/cognito/forgotPassword");
|
|
17
18
|
const getProcessForgotPassword = (qpqConfig) => {
|
|
18
19
|
return ({ username, userDirectoryName }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
const userPoolClientId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolClientIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
22
|
-
const authResponse = yield (0, forgotPassword_1.forgotPassword)(userPoolId, userPoolClientId,
|
|
23
|
+
const authResponse = yield (0, forgotPassword_1.forgotPassword)(userPoolId, userPoolClientId, quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig), username);
|
|
23
24
|
return (0, quidproquo_core_1.actionResult)(authResponse);
|
|
24
25
|
});
|
|
25
26
|
};
|
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryGetUserAttributesActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
16
17
|
const getUserAttributes_1 = require("../../../logic/cognito/getUserAttributes");
|
|
17
18
|
const getProcessGetUserAttributes = (qpqConfig) => {
|
|
18
19
|
return ({ userDirectoryName, username }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
try {
|
|
22
23
|
const userAttributes = yield (0, getUserAttributes_1.getUserAttributes)(userPoolId, region, username);
|
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryGetUserAttributesByUserIdActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
16
17
|
const getUserAttributesBySub_1 = require("../../../logic/cognito/getUserAttributesBySub");
|
|
17
18
|
const getProcessGetUserAttributesByUserId = (qpqConfig) => {
|
|
18
19
|
return ({ userDirectoryName, userId }, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
const userAttributes = yield (0, getUserAttributesBySub_1.getUserAttributesBySub)(userPoolId, region, userId);
|
|
22
23
|
return (0, quidproquo_core_1.actionResult)(userAttributes);
|
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryGetUsersActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
16
17
|
const listPagedUsers_1 = require("../../../logic/cognito/listPagedUsers");
|
|
17
18
|
const getProcessGetUsers = (qpqConfig) => {
|
|
18
19
|
return ({ userDirectoryName, nextPageKey }, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
const userAttributes = yield (0, listPagedUsers_1.listPagedUsers)(userPoolId, region, nextPageKey);
|
|
22
23
|
return (0, quidproquo_core_1.actionResult)(userAttributes);
|
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryGetUsersByAttributeActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
16
17
|
const listPagedUsersByAttribute_1 = require("../../../logic/cognito/listPagedUsersByAttribute");
|
|
17
18
|
const getProcessGetUsersByAttribute = (qpqConfig) => {
|
|
18
19
|
return ({ userDirectoryName, attribueName, attribueValue, limit, nextPageKey }, _session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
const userAttributes = yield (0, listPagedUsersByAttribute_1.listPagedUsersByAttribute)(userPoolId, region, attribueName, attribueValue, limit, nextPageKey);
|
|
22
23
|
return (0, quidproquo_core_1.actionResult)(userAttributes);
|
|
@@ -10,19 +10,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryRefreshTokenActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
|
-
const refreshToken_1 = require("../../../logic/cognito/refreshToken");
|
|
16
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
17
|
+
const refreshToken_1 = require("../../../logic/cognito/refreshToken");
|
|
17
18
|
const getProcessRefreshToken = (qpqConfig) => {
|
|
18
19
|
return ({ userDirectoryName, refreshToken }, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
const userPoolClientId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolClientIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
22
23
|
if (!session.decodedAccessToken || !session.decodedAccessToken.username) {
|
|
23
24
|
return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.Unauthorized, 'Invalid accessToken');
|
|
24
25
|
}
|
|
25
|
-
const authResponse = yield (0, refreshToken_1.refreshToken)(userPoolId, userPoolClientId,
|
|
26
|
+
const authResponse = yield (0, refreshToken_1.refreshToken)(userPoolId, userPoolClientId, quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig), session.decodedAccessToken.username, refreshToken);
|
|
26
27
|
return (0, quidproquo_core_1.actionResult)(authResponse);
|
|
27
28
|
});
|
|
28
29
|
};
|
|
@@ -10,11 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryRequestEmailVerificationActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const requestEmailVerificationCode_1 = require("../../../logic/cognito/requestEmailVerificationCode");
|
|
15
16
|
const getProcessRequestEmailVerification = (qpqConfig) => {
|
|
16
17
|
return ({ userDirectoryName, accessToken }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
-
const region =
|
|
18
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
18
19
|
yield (0, requestEmailVerificationCode_1.requestEmailVerificationCode)(region, accessToken);
|
|
19
20
|
return (0, quidproquo_core_1.actionResult)(void 0);
|
|
20
21
|
});
|
|
@@ -10,11 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectoryRespondToAuthChallengeActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
15
|
+
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
16
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
17
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
16
18
|
const respondToAuthChallengeChallenge_1 = require("../../../logic/cognito/respondToAuthChallengeChallenge");
|
|
17
|
-
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
18
19
|
const anyAuthChallengeToCognitoAttributes = (authChallenge) => {
|
|
19
20
|
switch (authChallenge.challenge) {
|
|
20
21
|
case quidproquo_core_1.AuthenticateUserChallenge.NEW_PASSWORD_REQUIRED:
|
|
@@ -41,7 +42,7 @@ const anyAuthChallengeToCognitoChallengeName = (authChallenge) => {
|
|
|
41
42
|
};
|
|
42
43
|
const getProcessRespondToAuthChallenge = (qpqConfig) => {
|
|
43
44
|
return ({ userDirectoryName, authChallenge }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
-
const region =
|
|
45
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
45
46
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
46
47
|
const userPoolClientId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolClientIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
47
48
|
const response = yield (0, respondToAuthChallengeChallenge_1.respondToAuthChallengeChallenge)(userPoolId, userPoolClientId, region, authChallenge.username, authChallenge.session, anyAuthChallengeToCognitoChallengeName(authChallenge), anyAuthChallengeToCognitoAttributes(authChallenge));
|
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectorySetPasswordActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
16
17
|
const setUserPassword_1 = require("../../../logic/cognito/setUserPassword");
|
|
17
18
|
const getProcessSetPassword = (qpqConfig) => {
|
|
18
19
|
return ({ userDirectoryName, newPassword, username }, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
yield (0, setUserPassword_1.setUserPassword)(region, userPoolId, username, newPassword);
|
|
22
23
|
return (0, quidproquo_core_1.actionResult)(void 0);
|
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getUserDirectorySetUserAttributesActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
15
16
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
16
17
|
const setUserAttributes_1 = require("../../../logic/cognito/setUserAttributes");
|
|
17
18
|
const getProcessSetUserAttributes = (qpqConfig) => {
|
|
18
19
|
return ({ userDirectoryName, username, userAttributes }, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const userPoolId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameUserPoolIdFromConfig)(userDirectoryName, qpqConfig), region);
|
|
21
22
|
yield (0, setUserAttributes_1.setUserAttributes)(userPoolId, region, username, userAttributes);
|
|
22
23
|
return (0, quidproquo_core_1.actionResult)(void 0);
|
|
@@ -24,9 +24,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.getAwsActionProcessors = void 0;
|
|
27
|
+
const quidproquo_actionprocessor_node_1 = require("quidproquo-actionprocessor-node");
|
|
27
28
|
const core_1 = require("./core");
|
|
28
29
|
const webserver_1 = require("./webserver");
|
|
29
|
-
const quidproquo_actionprocessor_node_1 = require("quidproquo-actionprocessor-node");
|
|
30
30
|
const getAwsActionProcessors = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
31
|
const storyActionProcessor = Object.assign(Object.assign(Object.assign(Object.assign({}, (yield (0, quidproquo_actionprocessor_node_1.getCoreActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, quidproquo_actionprocessor_node_1.getWebserverActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, core_1.getCoreActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, webserver_1.getWebserverActionProcessor)(qpqConfig, dynamicModuleLoader)));
|
|
32
32
|
return storyActionProcessor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './webEntry';
|
|
2
1
|
export * from './serviceFunction';
|
|
2
|
+
export * from './webEntry';
|
|
3
3
|
export * from './websocket';
|
|
4
4
|
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
5
5
|
export declare const getWebserverActionProcessor: ActionProcessorListResolver;
|
|
@@ -24,11 +24,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.getWebserverActionProcessor = void 0;
|
|
27
|
-
const webEntry_1 = require("./webEntry");
|
|
28
27
|
const serviceFunction_1 = require("./serviceFunction");
|
|
28
|
+
const webEntry_1 = require("./webEntry");
|
|
29
29
|
const websocket_1 = require("./websocket");
|
|
30
|
-
__exportStar(require("./webEntry"), exports);
|
|
31
30
|
__exportStar(require("./serviceFunction"), exports);
|
|
31
|
+
__exportStar(require("./webEntry"), exports);
|
|
32
32
|
__exportStar(require("./websocket"), exports);
|
|
33
33
|
const getWebserverActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
|
|
34
34
|
return (Object.assign(Object.assign(Object.assign({}, (yield (0, webEntry_1.getWebEntryActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, serviceFunction_1.getServiceFunctionActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, websocket_1.getWebsocketActionProcessor)(qpqConfig, dynamicModuleLoader))));
|
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getServiceFunctionExecuteActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
15
|
-
const executeLambdaByName_1 = require("../../../logic/lambda/executeLambdaByName");
|
|
16
16
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
17
|
+
const executeLambdaByName_1 = require("../../../logic/lambda/executeLambdaByName");
|
|
17
18
|
const getProcessExecute = (qpqConfig) => {
|
|
18
19
|
return ({ functionName, service, payload, context, isAsync }, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const region =
|
|
20
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
20
21
|
const appName = quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig);
|
|
21
22
|
const environment = quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
|
|
22
23
|
const feature = quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig);
|
|
@@ -10,14 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getWebEntryInvalidateCacheActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
15
16
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
16
|
-
const invalidateCache_1 = require("../../../logic/cloudFront/invalidateCache");
|
|
17
17
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
18
|
+
const invalidateCache_1 = require("../../../logic/cloudFront/invalidateCache");
|
|
18
19
|
const getProcessInvalidateCache = (qpqConfig) => {
|
|
19
20
|
return ({ paths, webEntryName }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
-
const region =
|
|
21
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
21
22
|
const distributionId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameDistributionIdArnFromConfig)(webEntryName, qpqConfig), region);
|
|
22
23
|
yield (0, invalidateCache_1.invalidateCache)(distributionId, region, paths);
|
|
23
24
|
return (0, quidproquo_core_1.actionResult)(void 0);
|
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getWebsocketSendMessageActionProcessor = void 0;
|
|
13
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
13
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
14
15
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
15
16
|
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
@@ -17,7 +18,7 @@ const websocketSendMessage_1 = require("../../../logic/apiGateway/websocketSendM
|
|
|
17
18
|
const getExportedValue_1 = require("../../../logic/cloudformation/getExportedValue");
|
|
18
19
|
const getProcessSendMessage = (qpqConfig) => {
|
|
19
20
|
return ({ connectionId, payload, websocketApiName }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
-
const region =
|
|
21
|
+
const region = quidproquo_config_aws_1.qpqConfigAwsUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
21
22
|
const apiId = yield (0, getExportedValue_1.getExportedValue)((0, awsNamingUtils_1.getCFExportNameWebsocketApiIdFromConfig)(websocketApiName, qpqConfig), region);
|
|
22
23
|
try {
|
|
23
24
|
yield (0, websocketSendMessage_1.sendMessageToWebSocketConnection)(apiId, connectionId, region, payload);
|
package/lib/commonjs/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './getActionProcessor';
|
|
2
1
|
export * as awsLambdaUtils from './awsLambdaUtils';
|
|
3
2
|
export * as awsNamingUtils from './awsNamingUtils';
|
|
3
|
+
export * from './getActionProcessor';
|
|
4
4
|
export * from './runtimeConfig/QPQAWSResourceMap';
|
|
5
|
+
export * from './getLambdaEntries';
|
|
6
|
+
export * from './lambdaHandlers';
|
|
7
|
+
export * from './logic';
|
|
8
|
+
export * from './logic/cache/memoFunc';
|
|
5
9
|
export * from './logic/parametersManager/getParameter';
|
|
6
10
|
export * from './logic/parametersManager/getParameters';
|
|
7
|
-
export * from './logic/cache/memoFunc';
|
|
8
|
-
export * from './logic';
|
|
9
|
-
export * from './lambdaHandlers';
|
|
10
|
-
export * from './getLambdaEntries';
|
package/lib/commonjs/index.js
CHANGED
|
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
18
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
19
|
if (mod && mod.__esModule) return mod;
|
|
23
20
|
var result = {};
|
|
@@ -25,16 +22,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
22
|
__setModuleDefault(result, mod);
|
|
26
23
|
return result;
|
|
27
24
|
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.awsNamingUtils = exports.awsLambdaUtils = void 0;
|
|
30
|
-
__exportStar(require("./getActionProcessor"), exports);
|
|
31
30
|
exports.awsLambdaUtils = __importStar(require("./awsLambdaUtils"));
|
|
32
31
|
exports.awsNamingUtils = __importStar(require("./awsNamingUtils"));
|
|
32
|
+
__exportStar(require("./getActionProcessor"), exports);
|
|
33
33
|
__exportStar(require("./runtimeConfig/QPQAWSResourceMap"), exports);
|
|
34
34
|
// TODO EXPORT THIS BETTER..
|
|
35
|
+
__exportStar(require("./getLambdaEntries"), exports);
|
|
36
|
+
__exportStar(require("./lambdaHandlers"), exports);
|
|
37
|
+
__exportStar(require("./logic"), exports);
|
|
38
|
+
__exportStar(require("./logic/cache/memoFunc"), exports);
|
|
35
39
|
__exportStar(require("./logic/parametersManager/getParameter"), exports);
|
|
36
40
|
__exportStar(require("./logic/parametersManager/getParameters"), exports);
|
|
37
|
-
__exportStar(require("./logic/cache/memoFunc"), exports);
|
|
38
|
-
__exportStar(require("./logic"), exports);
|
|
39
|
-
__exportStar(require("./lambdaHandlers"), exports);
|
|
40
|
-
__exportStar(require("./getLambdaEntries"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExecuteServiceFunctionEvent } from 'quidproquo-webserver';
|
|
2
1
|
import { DynamicModuleLoader, QPQConfig, StorySession } from 'quidproquo-core';
|
|
2
|
+
import { ExecuteServiceFunctionEvent } from 'quidproquo-webserver';
|
|
3
3
|
type AnyExecuteServiceFunctionEventWithSession = ExecuteServiceFunctionEvent<any[]> & {
|
|
4
4
|
storySession: StorySession;
|
|
5
5
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAnyExecuteServiceFunctionEvent_serviceFunction = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getAnyExecuteServiceFunctionEvent_serviceFunction = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.SERVICE_FUNCTION_EXE, (event) => {
|
|
8
8
|
return event.storySession;
|
|
9
9
|
}, getActionProcessor_1.getLambdaServiceFunctionEventProcessor, dynamicModuleLoader, qpqConfig);
|
package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicModuleLoader, QPQConfig } from 'quidproquo-core';
|
|
2
|
-
import {
|
|
2
|
+
import { APIGatewayEventWebsocketRequestContextV2, APIGatewayProxyWebsocketEventV2WithRequestContext } from 'aws-lambda';
|
|
3
3
|
type ApiGatwayEventWebsocketWithIdentity = APIGatewayProxyWebsocketEventV2WithRequestContext<APIGatewayEventWebsocketRequestContextV2 & {
|
|
4
4
|
identity: {
|
|
5
5
|
sourceIp: string;
|
package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getApiGatwayEventWebsocketWithIdentity_websocketEvent = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getApiGatwayEventWebsocketWithIdentity_websocketEvent = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.WEBSOCKET_EVENT, (event) => {
|
|
8
8
|
return {
|
|
9
9
|
depth: 0,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCloudFrontRequestEvent_originRequest = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getCloudFrontRequestEvent_originRequest = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.EVENT_SEO_OR, (event) => {
|
|
8
8
|
return {
|
|
9
9
|
depth: 0,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCustomMessageTriggerEvent_customMessage = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getCustomMessageTriggerEvent_customMessage = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.SEND_EMAIL_EVENT, (event) => {
|
|
8
8
|
return {
|
|
9
9
|
depth: 0,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCustomMessageTriggerEvent_defineAuthChallenge = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getCustomMessageTriggerEvent_defineAuthChallenge = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.AUTH_DEFINE_AUTH_CHALLENGE, (event) => {
|
|
8
8
|
return {
|
|
9
9
|
depth: 0,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCustomMessageTriggerEvent_verifyAuthChallenge = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getCustomMessageTriggerEvent_verifyAuthChallenge = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.AUTH_VERIFY_AUTH_CHALLENGE, (event) => {
|
|
8
8
|
return {
|
|
9
9
|
depth: 0,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getEventBridgeEvent_recurringSchedule = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getEventBridgeEvent_recurringSchedule = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.RECURRING_SCHEDULE, (event) => {
|
|
8
8
|
return {
|
|
9
9
|
depth: 0,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getEventBridgeEvent_stackDeploy = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getEventBridgeEvent_stackDeploy = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.DEPLOY_EVENT, (event) => {
|
|
8
8
|
return {
|
|
9
9
|
depth: 0,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getS3Event_fileEvent = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getS3Event_fileEvent = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.STORAGEDRIVE_EVENT, (event) => {
|
|
8
8
|
return {
|
|
9
9
|
depth: 0,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SQSEvent } from 'aws-lambda';
|
|
2
1
|
import { DynamicModuleLoader, QPQConfig } from 'quidproquo-core';
|
|
2
|
+
import { SQSEvent } from 'aws-lambda';
|
|
3
3
|
export declare const getSqsEvent_queueEvent: (dynamicModuleLoader: DynamicModuleLoader, qpqConfig: QPQConfig) => (event: SQSEvent, context: import("aws-lambda").Context) => Promise<any>;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSqsEvent_queueEvent = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
-
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
6
5
|
const getActionProcessor_1 = require("../getActionProcessor");
|
|
6
|
+
const getQpqLambdaRuntimeForEvent_1 = require("./helpers/getQpqLambdaRuntimeForEvent");
|
|
7
7
|
const getSqsEvent_queueEvent = (dynamicModuleLoader, qpqConfig) => (0, getQpqLambdaRuntimeForEvent_1.getQpqLambdaRuntimeForEvent)(quidproquo_core_1.QpqRuntimeType.QUEUE_EVENT, (event) => {
|
|
8
8
|
return {
|
|
9
9
|
depth: 0,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Context } from 'aws-lambda';
|
|
2
1
|
import { ActionProcessorListResolver, DynamicModuleLoader, QPQConfig, QpqRuntimeType, StorySession } from 'quidproquo-core';
|
|
2
|
+
import { Context } from 'aws-lambda';
|
|
3
3
|
export declare const getQpqLambdaRuntimeForEvent: <E extends unknown>(runtimeType: QpqRuntimeType, getStorySession: (event: E) => StorySession, getActionProcessorList: ActionProcessorListResolver, dynamicModuleLoader: DynamicModuleLoader, qpqConfig: QPQConfig) => (event: E, context: Context) => Promise<any>;
|
|
@@ -10,12 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getQpqLambdaRuntimeForEvent = void 0;
|
|
13
|
-
const
|
|
14
|
-
const logger_1 = require("./logger");
|
|
13
|
+
const quidproquo_actionprocessor_node_1 = require("quidproquo-actionprocessor-node");
|
|
15
14
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
16
|
-
const getRuntimeCorrelation_1 = require("./getRuntimeCorrelation");
|
|
17
15
|
const getActionProcessor_1 = require("../../getActionProcessor");
|
|
18
|
-
const
|
|
16
|
+
const dynamicModuleLoaderWarmer_1 = require("./dynamicModuleLoaderWarmer");
|
|
17
|
+
const getRuntimeCorrelation_1 = require("./getRuntimeCorrelation");
|
|
18
|
+
const logger_1 = require("./logger");
|
|
19
19
|
const isSnsEvent = (event) => {
|
|
20
20
|
if (event && typeof event === 'object') {
|
|
21
21
|
const possibleSnsEvent = event;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QPQConfig, QpqLogger, StoryResult } from 'quidproquo-core';
|
|
2
2
|
export declare const storyLogger: (result: StoryResult<any>, bucketName: string, region: string) => Promise<void>;
|
|
3
3
|
export declare const storyLoggerFs: (result: StoryResult<any>) => Promise<void>;
|
|
4
4
|
export declare const moveLogsToPerminateStorage: (bucketName: string, region: string) => Promise<void>;
|
|
@@ -13,11 +13,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.getLogger = exports.moveLogsToPerminateStorage = exports.storyLoggerFs = exports.storyLogger = void 0;
|
|
16
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
16
17
|
const fs_1 = __importDefault(require("fs"));
|
|
17
18
|
const path_1 = __importDefault(require("path"));
|
|
18
19
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
19
20
|
const awsNamingUtils_1 = require("../../awsNamingUtils");
|
|
20
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
21
21
|
const tempDirectory = '/tmp/qpqlogs';
|
|
22
22
|
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
23
23
|
const storyLogger = (result, bucketName, region) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './helpers';
|
|
3
1
|
export * from './getAnyExecuteServiceFunctionEvent_serviceFunction';
|
|
4
|
-
export * from './getApiGatewayEventHandler_redirect';
|
|
5
2
|
export * from './getApiGatewayEventHandler';
|
|
3
|
+
export * from './getApiGatewayEventHandler_redirect';
|
|
6
4
|
export * from './getApiGatwayEventWebsocketWithIdentity_websocketEvent';
|
|
7
5
|
export * from './getCloudFrontRequestEvent_originRequest';
|
|
8
6
|
export * from './getCloudFrontRequestEvent_viewerRequest';
|
|
@@ -14,3 +12,5 @@ export * from './getEventBridgeEvent_recurringSchedule';
|
|
|
14
12
|
export * from './getEventBridgeEvent_stackDeploy';
|
|
15
13
|
export * from './getS3Event_fileEvent';
|
|
16
14
|
export * from './getSqsEvent_queueEvent';
|
|
15
|
+
export * from './helpers';
|
|
16
|
+
export * from './types';
|