quidproquo-actionprocessor-awslambda 0.0.232 → 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/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 +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/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/getUserDirectoryForgotPasswordActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +1 -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 +1 -1
- package/lib/commonjs/getActionProcessor/webserver/webEntry/getWebEntryInvalidateCacheActionProcessor.js +1 -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/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 +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 +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 +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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +3 -3
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +3 -3
- 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 -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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getQpqConfig } from './lambda-utils';
|
|
2
|
-
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
1
|
import { getAnyExecuteServiceFunctionEvent_serviceFunction } from '../lambdaHandlers';
|
|
2
|
+
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const anyExecuteServiceFunctionEvent_serviceFunction = getAnyExecuteServiceFunctionEvent_serviceFunction(dynamicModuleLoader, getQpqConfig());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { getApiGatewayEventHandler } from '../lambdaHandlers';
|
|
2
|
-
import { getQpqConfig } from './lambda-utils';
|
|
3
2
|
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const apiGatewayEventHandler = getApiGatewayEventHandler(dynamicModuleLoader, getQpqConfig());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getQpqConfig } from './lambda-utils';
|
|
2
1
|
import { getApiGatwayEventWebsocketWithIdentity_websocketEvent } from '../lambdaHandlers';
|
|
3
2
|
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const apiGatwayEventWebsocketWithIdentity_websocketEvent = getApiGatwayEventWebsocketWithIdentity_websocketEvent(dynamicModuleLoader, getQpqConfig());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getQpqConfig } from './lambda-utils';
|
|
2
1
|
import { getCloudFrontRequestEvent_originRequest } from '../lambdaHandlers';
|
|
3
2
|
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const cloudFrontRequestEvent_originRequest = getCloudFrontRequestEvent_originRequest(dynamicModuleLoader, getQpqConfig());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getQpqConfig } from './lambda-utils';
|
|
2
1
|
import { getCustomMessageTriggerEvent_createAuthChallenge } from '../lambdaHandlers';
|
|
3
2
|
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const customMessageTriggerEvent_createAuthChallenge = getCustomMessageTriggerEvent_createAuthChallenge(dynamicModuleLoader, getQpqConfig());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getQpqConfig } from './lambda-utils';
|
|
2
1
|
import { getCustomMessageTriggerEvent_customMessage } from '../lambdaHandlers';
|
|
3
2
|
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const customMessageTriggerEvent_customMessage = getCustomMessageTriggerEvent_customMessage(dynamicModuleLoader, getQpqConfig());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getQpqConfig } from './lambda-utils';
|
|
2
1
|
import { getCustomMessageTriggerEvent_defineAuthChallenge } from '../lambdaHandlers';
|
|
3
2
|
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const customMessageTriggerEvent_defineAuthChallenge = getCustomMessageTriggerEvent_defineAuthChallenge(dynamicModuleLoader, getQpqConfig());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getQpqConfig } from './lambda-utils';
|
|
2
1
|
import { getCustomMessageTriggerEvent_verifyAuthChallenge } from '../lambdaHandlers';
|
|
3
2
|
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const customMessageTriggerEvent_verifyAuthChallenge = getCustomMessageTriggerEvent_verifyAuthChallenge(dynamicModuleLoader, getQpqConfig());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @ts-
|
|
1
|
+
// @ts-expect-error - Special webpack file injected
|
|
2
2
|
import { qpqDynamicModuleLoader } from 'quidproquo-dynamic-loader';
|
|
3
3
|
export const dynamicModuleLoader = async (modulePath) => {
|
|
4
4
|
return qpqDynamicModuleLoader(modulePath);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { getEventBridgeEvent_recurringSchedule } from '../lambdaHandlers';
|
|
2
|
-
import { getQpqConfig } from './lambda-utils';
|
|
3
2
|
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const eventBridgeEvent_recurringSchedule = getEventBridgeEvent_recurringSchedule(dynamicModuleLoader, getQpqConfig());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
2
1
|
import { getEventBridgeEvent_stackDeploy } from '../lambdaHandlers';
|
|
2
|
+
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
3
|
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const eventBridgeEvent_stackDeploy = getEventBridgeEvent_stackDeploy(dynamicModuleLoader, getQpqConfig());
|
|
@@ -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>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { qpqCoreUtils } from 'quidproquo-core';
|
|
1
2
|
import fs from 'fs';
|
|
2
3
|
import path from 'path';
|
|
3
|
-
import {
|
|
4
|
-
import { qpqCoreUtils } from 'quidproquo-core';
|
|
4
|
+
import { PutObjectCommand, S3Client } from '@aws-sdk/client-s3';
|
|
5
5
|
const tempDirectory = '/tmp/qpqlogs';
|
|
6
|
-
import {
|
|
6
|
+
import { getAwsServiceAccountInfoByDeploymentInfo, getAwsServiceAccountInfoConfig } from 'quidproquo-config-aws';
|
|
7
7
|
import { getConfigRuntimeResourceName } from '../../awsNamingUtils';
|
|
8
8
|
export const storyLogger = async (result, bucketName, region) => {
|
|
9
9
|
try {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { QpqRuntimeType } from 'quidproquo-core';
|
|
2
|
-
import { getQpqConfig } from './lambda-utils';
|
|
3
|
-
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
4
|
-
import { getQpqLambdaRuntimeForEvent } from '../lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent';
|
|
5
2
|
import { getSqsQueueEventProcessor } from '../getActionProcessor';
|
|
3
|
+
import { getQpqLambdaRuntimeForEvent } from '../lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent';
|
|
4
|
+
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
5
|
+
import { getQpqConfig } from './lambda-utils';
|
|
6
6
|
// Default executor
|
|
7
7
|
export const executeSQSEvent = getQpqLambdaRuntimeForEvent(QpqRuntimeType.QUEUE_EVENT, (event) => {
|
|
8
8
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getQpqConfig } from './lambda-utils';
|
|
2
1
|
import { getSqsEvent_queueEvent } from '../lambdaHandlers';
|
|
3
2
|
import { dynamicModuleLoader } from './dynamicModuleLoader';
|
|
3
|
+
import { getQpqConfig } from './lambda-utils';
|
|
4
4
|
export const sqsEvent_queueEvent = getSqsEvent_queueEvent(dynamicModuleLoader, getQpqConfig());
|
|
@@ -15,8 +15,7 @@ export const findMatchingCertificates = async (domainName, region, retryCount =
|
|
|
15
15
|
});
|
|
16
16
|
const listResult = await acmClient.send(listCommand);
|
|
17
17
|
for (const certificate of listResult.CertificateSummaryList || []) {
|
|
18
|
-
if (certificate.CertificateArn &&
|
|
19
|
-
certificate.DomainName?.toLowerCase() === lowerCaseDomainName) {
|
|
18
|
+
if (certificate.CertificateArn && certificate.DomainName?.toLowerCase() === lowerCaseDomainName) {
|
|
20
19
|
certificateArns.push(certificate.CertificateArn);
|
|
21
20
|
}
|
|
22
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APIGatewayClient, GetApiKeysCommand
|
|
1
|
+
import { APIGatewayClient, GetApiKeysCommand } from '@aws-sdk/client-api-gateway';
|
|
2
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
3
|
export const getApiKeys = async (region, ...keyNames) => {
|
|
4
4
|
const apiGatewayClient = createAwsClient(APIGatewayClient, { region });
|
|
@@ -9,5 +9,9 @@ export const getApiKeys = async (region, ...keyNames) => {
|
|
|
9
9
|
const res = await apiGatewayClient.send(new GetApiKeysCommand(input));
|
|
10
10
|
return (res.items
|
|
11
11
|
?.filter((i) => keyNames.indexOf(i.name) >= 0)
|
|
12
|
-
.map((i) => ({
|
|
12
|
+
.map((i) => ({
|
|
13
|
+
name: i.name,
|
|
14
|
+
value: i.value,
|
|
15
|
+
description: i.description,
|
|
16
|
+
})) || []);
|
|
13
17
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ApiGatewayManagementApiClient, PostToConnectionCommand } from
|
|
1
|
+
import { ApiGatewayManagementApiClient, PostToConnectionCommand } from '@aws-sdk/client-apigatewaymanagementapi';
|
|
2
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
3
|
export const sendMessageToWebSocketConnection = async (apiId, connectionId, region, payload) => {
|
|
4
4
|
// Create a new ApiGatewayManagementApiClient
|
|
5
5
|
const apiGatewayManagementApiClient = createAwsClient(ApiGatewayManagementApiClient, {
|
|
6
|
-
apiVersion:
|
|
6
|
+
apiVersion: '2018-11-29',
|
|
7
7
|
endpoint: `https://${apiId}.execute-api.${region}.amazonaws.com/prod`,
|
|
8
|
-
region
|
|
8
|
+
region,
|
|
9
9
|
});
|
|
10
10
|
// Create a new PostToConnectionCommand with the connection ID and payload
|
|
11
11
|
const command = new PostToConnectionCommand({
|
|
12
12
|
ConnectionId: connectionId,
|
|
13
|
-
Data: JSON.stringify(payload) // Convert payload to string if necessary
|
|
13
|
+
Data: JSON.stringify(payload), // Convert payload to string if necessary
|
|
14
14
|
});
|
|
15
15
|
await apiGatewayManagementApiClient.send(command);
|
|
16
16
|
};
|
|
@@ -16,14 +16,10 @@ export const memoFuncAsync = (func, ttlInSeconds = 3600) => {
|
|
|
16
16
|
if (nodeCache.has(cacheKey)) {
|
|
17
17
|
return nodeCache.get(cacheKey);
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
catch (err) {
|
|
26
|
-
throw err; // re-throw the error to be caught by caller
|
|
27
|
-
}
|
|
19
|
+
// Await the result
|
|
20
|
+
const result = await func(...args);
|
|
21
|
+
// and then cache it
|
|
22
|
+
nodeCache.set(cacheKey, result);
|
|
23
|
+
return result;
|
|
28
24
|
});
|
|
29
25
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CloudFrontClient, CreateInvalidationCommand, } from '@aws-sdk/client-cloudfront';
|
|
2
1
|
import crypto from 'crypto';
|
|
2
|
+
import { CloudFrontClient, CreateInvalidationCommand } from '@aws-sdk/client-cloudfront';
|
|
3
3
|
import { createAwsClient } from '../createAwsClient';
|
|
4
4
|
export const getInvalidationCallerReference = (paths) => {
|
|
5
5
|
const allPaths = paths.join('');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CloudFormationClient, ListExportsCommand
|
|
1
|
+
import { CloudFormationClient, ListExportsCommand } from '@aws-sdk/client-cloudformation';
|
|
2
2
|
import { memoFuncAsync } from '../cache/memoFuncAsync';
|
|
3
3
|
import { createAwsClient } from '../createAwsClient';
|
|
4
4
|
export const getExportedValue = memoFuncAsync(async (variableName, region) => {
|
|
@@ -12,6 +12,6 @@ export const getExportedValue = memoFuncAsync(async (variableName, region) => {
|
|
|
12
12
|
return value;
|
|
13
13
|
}
|
|
14
14
|
listCommandParams.NextToken = result.NextToken;
|
|
15
|
-
} while (
|
|
15
|
+
} while (listCommandParams.NextToken);
|
|
16
16
|
throw new Error(`CF could not find: [${variableName}]`);
|
|
17
17
|
});
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminInitiateAuthCommand, AuthFlowType, CognitoIdentityProviderClient, } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
|
+
import { createAwsClient } from '../createAwsClient';
|
|
2
3
|
import { calculateSecretHash } from './utils/calculateSecretHash';
|
|
3
|
-
import { getUserPoolClientSecret } from './getUserPoolClientSecret';
|
|
4
4
|
import { cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo } from './utils/transformCognitoResponse';
|
|
5
|
-
import {
|
|
5
|
+
import { getUserPoolClientSecret } from './getUserPoolClientSecret';
|
|
6
6
|
// TODO: retry for TooManyRequestsException
|
|
7
7
|
export const authenticateUser = async (userPoolId, clientId, region, isCustom, username, password) => {
|
|
8
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
8
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
9
|
+
region,
|
|
10
|
+
});
|
|
9
11
|
const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
|
|
10
12
|
const secretHash = calculateSecretHash(username, clientId, clientSecret);
|
|
11
13
|
// Time we issued the request
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangePasswordCommand, CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
3
|
export const changePassword = async (accessToken, previousPassword, proposedPassword, region) => {
|
|
4
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
4
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
5
|
+
region,
|
|
6
|
+
});
|
|
5
7
|
const params = {
|
|
6
8
|
AccessToken: accessToken,
|
|
7
9
|
PreviousPassword: previousPassword,
|
|
@@ -42,7 +42,10 @@ const getQpqAttributeObjectFromCognitoKeyValue = (key, value) => {
|
|
|
42
42
|
export const getQpqAttributesFromCognitoUserAttributes = (cognitoUserAttributes) => {
|
|
43
43
|
// Map cognitoUserAttributes to your UserAttributes format
|
|
44
44
|
const userAttributes = cognitoUserAttributes.reduce((acc, { Name, Value }) => {
|
|
45
|
-
return {
|
|
45
|
+
return {
|
|
46
|
+
...acc,
|
|
47
|
+
...getQpqAttributeObjectFromCognitoKeyValue(Name, Value),
|
|
48
|
+
};
|
|
46
49
|
}, {});
|
|
47
50
|
return userAttributes;
|
|
48
51
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CognitoIdentityProviderClient, ConfirmForgotPasswordCommand, } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
|
+
import { createAwsClient } from '../createAwsClient';
|
|
2
3
|
import { calculateSecretHash } from './utils/calculateSecretHash';
|
|
3
|
-
import { getUserPoolClientSecret } from './getUserPoolClientSecret';
|
|
4
4
|
import { authenticateUser } from './authenticateUser';
|
|
5
|
-
import {
|
|
5
|
+
import { getUserPoolClientSecret } from './getUserPoolClientSecret';
|
|
6
6
|
export const confirmForgotPassword = async (userPoolId, clientId, region, code, username, password) => {
|
|
7
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
7
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
8
|
+
region,
|
|
9
|
+
});
|
|
8
10
|
const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
|
|
9
11
|
const secretHash = calculateSecretHash(username, clientId, clientSecret);
|
|
10
12
|
const params = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthenticateUserResponse, CreateUserRequest } from 'quidproquo-core';
|
|
2
2
|
export declare const createUser: (userPoolId: string, region: string, clientId: string, createUserRequest: CreateUserRequest) => Promise<AuthenticateUserResponse>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminCreateUserCommand, CognitoIdentityProviderClient, DeliveryMediumType, MessageActionType, } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
|
+
import { createAwsClient } from '../createAwsClient';
|
|
2
3
|
import { authenticateUser } from './authenticateUser';
|
|
3
|
-
import { setUserPassword } from './setUserPassword';
|
|
4
4
|
import { getCognitoUserAttributesFromQpqUserAttributes } from './cognitoAttributeMap';
|
|
5
|
-
import {
|
|
5
|
+
import { setUserPassword } from './setUserPassword';
|
|
6
6
|
export const createUser = async (userPoolId, region, clientId, createUserRequest) => {
|
|
7
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
7
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
8
|
+
region,
|
|
9
|
+
});
|
|
8
10
|
const params = {
|
|
9
11
|
UserPoolId: userPoolId,
|
|
10
12
|
Username: createUserRequest.email,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { CognitoIdentityProviderClient, ForgotPasswordCommand
|
|
1
|
+
import { CognitoIdentityProviderClient, ForgotPasswordCommand } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
|
+
import { createAwsClient } from '../createAwsClient';
|
|
2
3
|
import { calculateSecretHash } from './utils/calculateSecretHash';
|
|
3
4
|
import { getUserPoolClientSecret } from './getUserPoolClientSecret';
|
|
4
|
-
import { createAwsClient } from '../createAwsClient';
|
|
5
5
|
export const forgotPassword = async (userPoolId, clientId, region, username) => {
|
|
6
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
6
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
7
|
+
region,
|
|
8
|
+
});
|
|
7
9
|
const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
|
|
8
10
|
const secretHash = calculateSecretHash(username, clientId, clientSecret);
|
|
9
11
|
const params = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CognitoIdentityProviderClient, GetUserCommand
|
|
1
|
+
import { CognitoIdentityProviderClient, GetUserCommand } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
3
|
const getUserAttribute = (attributeName, userAttributes) => {
|
|
4
4
|
const lowerAttributeName = attributeName.toLowerCase();
|
|
@@ -6,7 +6,9 @@ const getUserAttribute = (attributeName, userAttributes) => {
|
|
|
6
6
|
return attribute?.Value;
|
|
7
7
|
};
|
|
8
8
|
export const getUser = async (accessToken, region) => {
|
|
9
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
9
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
10
|
+
region,
|
|
11
|
+
});
|
|
10
12
|
const params = {
|
|
11
13
|
AccessToken: accessToken,
|
|
12
14
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
|
|
1
|
+
import { AdminGetUserCommand, CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
|
|
3
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
|
+
import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
|
|
4
4
|
export const getUserAttributes = async (userPoolId, region, username) => {
|
|
5
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
5
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
6
|
+
region,
|
|
7
|
+
});
|
|
6
8
|
const params = {
|
|
7
9
|
UserPoolId: userPoolId,
|
|
8
10
|
Username: username,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { CognitoIdentityProviderClient, ListUsersCommand
|
|
2
|
-
import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
|
|
1
|
+
import { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';
|
|
3
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
|
+
import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
|
|
4
4
|
export const getUserAttributesBySub = async (userPoolId, region, sub) => {
|
|
5
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
5
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
6
|
+
region,
|
|
7
|
+
});
|
|
6
8
|
const response = await cognitoClient.send(new ListUsersCommand({
|
|
7
9
|
UserPoolId: userPoolId,
|
|
8
10
|
Filter: `sub = "${sub}"`,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CognitoIdentityProviderClient, DescribeUserPoolClientCommand, } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
3
|
export const getUserPoolClientSecret = async (userPoolId, clientId, region) => {
|
|
4
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
4
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
5
|
+
region,
|
|
6
|
+
});
|
|
5
7
|
const params = {
|
|
6
8
|
ClientId: clientId,
|
|
7
9
|
UserPoolId: userPoolId,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QpqPagedData, UserAttributes } from 'quidproquo-core';
|
|
2
2
|
export declare const listPagedUsers: (userPoolId: string, region: string, pageKey?: string) => Promise<QpqPagedData<UserAttributes>>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { CognitoIdentityProviderClient, ListUsersCommand
|
|
1
|
+
import { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
|
+
import { createAwsClient } from '../createAwsClient';
|
|
2
3
|
import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
|
|
3
4
|
import { pageKeyToPaginationToken, paginationTokenToPageKey } from './utils';
|
|
4
|
-
import { createAwsClient } from '../createAwsClient';
|
|
5
5
|
export const listPagedUsers = async (userPoolId, region, pageKey) => {
|
|
6
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
6
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
7
|
+
region,
|
|
8
|
+
});
|
|
7
9
|
const response = await cognitoClient.send(new ListUsersCommand({
|
|
8
10
|
UserPoolId: userPoolId,
|
|
9
11
|
PaginationToken: pageKeyToPaginationToken(pageKey),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QpqPagedData, UserAttributes } from 'quidproquo-core';
|
|
2
2
|
export declare const listPagedUsersByAttribute: (userPoolId: string, region: string, attributeName: string, attributeValue: string, limit?: number, pageKey?: string) => Promise<QpqPagedData<UserAttributes>>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
|
+
import { createAwsClient } from '../createAwsClient';
|
|
2
3
|
import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
|
|
3
4
|
import { pageKeyToPaginationToken, paginationTokenToPageKey } from './utils';
|
|
4
|
-
import { createAwsClient } from '../createAwsClient';
|
|
5
5
|
export const listPagedUsersByAttribute = async (userPoolId, region, attributeName, attributeValue, limit, pageKey) => {
|
|
6
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
6
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
7
|
+
region,
|
|
8
|
+
});
|
|
7
9
|
const response = await cognitoClient.send(new ListUsersCommand({
|
|
8
10
|
UserPoolId: userPoolId,
|
|
9
11
|
Limit: limit,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminInitiateAuthCommand, AuthFlowType, CognitoIdentityProviderClient, } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
|
+
import { createAwsClient } from '../createAwsClient';
|
|
2
3
|
import { calculateSecretHash } from './utils/calculateSecretHash';
|
|
3
|
-
import { getUserPoolClientSecret } from './getUserPoolClientSecret';
|
|
4
4
|
import { cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo } from './utils/transformCognitoResponse';
|
|
5
|
-
import {
|
|
5
|
+
import { getUserPoolClientSecret } from './getUserPoolClientSecret';
|
|
6
6
|
export const refreshToken = async (userPoolId, clientId, region, username, refreshToken) => {
|
|
7
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
7
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
8
|
+
region,
|
|
9
|
+
});
|
|
8
10
|
const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
|
|
9
11
|
const secretHash = calculateSecretHash(username, clientId, clientSecret);
|
|
10
12
|
const params = {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CognitoIdentityProviderClient, GetUserAttributeVerificationCodeCommand, } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
3
|
export const requestEmailVerificationCode = async (region, accessToken) => {
|
|
4
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
4
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
5
|
+
region,
|
|
6
|
+
});
|
|
5
7
|
const params = {
|
|
6
8
|
AccessToken: accessToken,
|
|
7
9
|
AttributeName: 'email', // Request verification for the email attribute
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CognitoIdentityProviderClient, RespondToAuthChallengeCommand, } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
|
+
import { createAwsClient } from '../createAwsClient';
|
|
2
3
|
import { calculateSecretHash } from './utils/calculateSecretHash';
|
|
3
|
-
import { getUserPoolClientSecret } from './getUserPoolClientSecret';
|
|
4
4
|
import { cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo } from './utils/transformCognitoResponse';
|
|
5
|
-
import {
|
|
5
|
+
import { getUserPoolClientSecret } from './getUserPoolClientSecret';
|
|
6
6
|
export const respondToAuthChallengeChallenge = async (userPoolId, clientId, region, username, session, challengeNameType, attributes) => {
|
|
7
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
7
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
8
|
+
region,
|
|
9
|
+
});
|
|
8
10
|
const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
|
|
9
11
|
const secretHash = calculateSecretHash(username, clientId, clientSecret);
|
|
10
12
|
const params = {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getCognitoUserAttributesFromQpqUserAttributes } from './cognitoAttributeMap';
|
|
1
|
+
import { AdminUpdateUserAttributesCommand, CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
|
|
3
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
|
+
import { getCognitoUserAttributesFromQpqUserAttributes } from './cognitoAttributeMap';
|
|
4
4
|
export const setUserAttributes = async (userPoolId, region, username, userAttributes) => {
|
|
5
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
5
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
6
|
+
region,
|
|
7
|
+
});
|
|
6
8
|
const { userId, ...writeableUserAttributes } = userAttributes;
|
|
7
9
|
const params = {
|
|
8
10
|
UserPoolId: userPoolId,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminSetUserPasswordCommand, CognitoIdentityProviderClient, } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
3
|
export const setUserPassword = async (region, userPoolId, username, password) => {
|
|
4
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
4
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
5
|
+
region,
|
|
6
|
+
});
|
|
5
7
|
// There has to be a better way than this?
|
|
6
8
|
const passwordParams = {
|
|
7
9
|
Password: password,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthenticateUserResponse, AuthenticationInfo
|
|
2
|
-
import {
|
|
1
|
+
import { AuthenticateUserChallenge, AuthenticateUserResponse, AuthenticationInfo } from 'quidproquo-core';
|
|
2
|
+
import { AdminInitiateAuthResponse, AuthenticationResultType, ChallengeNameType } from '@aws-sdk/client-cognito-identity-provider';
|
|
3
3
|
export declare const cognitoAuthenticationResultTypeToQpqAuthenticationInfo: (authResult: AuthenticationResultType, issueDateTime: string) => AuthenticationInfo;
|
|
4
4
|
export declare const cognitoChallengeNameTypeToQpqAuthenticateUserChallenge: (cognitoChallengeName: ChallengeNameType | string | undefined) => AuthenticateUserChallenge;
|
|
5
5
|
export declare const cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo: (authResponse: AdminInitiateAuthResponse, issueDateTime: string) => AuthenticateUserResponse;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CognitoIdentityProviderClient, VerifyUserAttributeCommand, } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
3
|
export const verifyUserEmail = async (region, accessToken, verificationCode) => {
|
|
4
|
-
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
4
|
+
const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
|
|
5
|
+
region,
|
|
6
|
+
});
|
|
5
7
|
const params = {
|
|
6
8
|
AccessToken: accessToken,
|
|
7
9
|
AttributeName: 'email',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { buildAttributeValue } from './qpqDynamoOrm';
|
|
1
|
+
import { DeleteItemCommand, DynamoDBClient } from '@aws-sdk/client-dynamodb';
|
|
3
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
|
+
import { buildAttributeValue } from './qpqDynamoOrm';
|
|
4
4
|
export async function deleteItem(tableName, region, key, keyName, sortKey, sortKeyName) {
|
|
5
5
|
const dynamoDBClient = createAwsClient(DynamoDBClient, { region });
|
|
6
6
|
const deleteItemParams = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamoDBClient, QueryCommand } from '@aws-sdk/client-dynamodb';
|
|
2
|
-
import { lastEvaluatedKeyToString, stringToLastEvaluatedKey } from './logs';
|
|
3
2
|
import { createAwsClient } from '../createAwsClient';
|
|
3
|
+
import { lastEvaluatedKeyToString, stringToLastEvaluatedKey } from './logs';
|
|
4
4
|
export async function getLogChildrenByFromCorrelation(tableName, region, fromCorrelation, pageKey) {
|
|
5
5
|
const dynamoDBClient = createAwsClient(DynamoDBClient, { region });
|
|
6
6
|
const queryParams = {
|