quidproquo-actionprocessor-awslambda 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/awsLambdaUtils.d.ts +6 -4
- package/lib/commonjs/awsLambdaUtils.js +2 -2
- package/lib/commonjs/awsLambdaUtils.js.map +1 -1
- package/lib/commonjs/awsNamingUtils.d.ts +2 -2
- package/lib/commonjs/awsNamingUtils.js +60 -109
- package/lib/commonjs/awsNamingUtils.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/getAiPromptActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/ai/getAiPromptActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js +6 -6
- package/lib/commonjs/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/logic/prepareAiPromptCall.d.ts +4 -3
- package/lib/commonjs/getActionProcessor/core/ai/logic/prepareAiPromptCall.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/logic/toCacheableMessages.js +1 -1
- package/lib/commonjs/getActionProcessor/core/ai/logic/toCacheableMessages.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js +10 -8
- package/lib/commonjs/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js +53 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js +45 -0
- package/lib/commonjs/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/index.d.ts +2 -0
- package/lib/commonjs/{lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js → getActionProcessor/core/crypto/index.js} +7 -5
- package/lib/commonjs/getActionProcessor/core/crypto/index.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js +11 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/index.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/index.js +19 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/index.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js +19 -0
- package/lib/commonjs/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventMatchStoryActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +13 -10
- package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileDeleteActionProcessor.js +4 -8
- package/lib/commonjs/getActionProcessor/core/file/getFileDeleteActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/utils/StorageDriveNotFoundError.d.ts +3 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js +14 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/index.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/index.js +1 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.d.ts +5 -0
- package/lib/commonjs/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js +7 -1
- package/lib/commonjs/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.d.ts +4 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/{neptune.js → AnyNeptuneResult.js} +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.d.ts +4 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js +3 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.d.ts +4 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js +3 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.d.ts +4 -0
- package/lib/commonjs/{lambdaHandlers/types/QpqWarmLambdaEvent.js → getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js} +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.d.ts +5 -0
- package/lib/commonjs/{runtimeConfig/QPQAWSResourceMap.js → getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js} +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.d.ts +4 -0
- package/lib/commonjs/{lambdas/lambda-utils/QpqWarmLambdaEvent.js → getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js} +1 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.d.ts +7 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js +3 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js +3 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/index.d.ts +8 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/index.js +8 -1
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/index.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/index.js +3 -1
- package/lib/commonjs/getActionProcessor/core/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +2 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +13 -12
- package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/system/getDateNow.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/system/getDateNow.js +8 -0
- package/lib/commonjs/getActionProcessor/core/system/getDateNow.js.map +1 -0
- package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.d.ts +0 -1
- package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +4 -5
- package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +4 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +7 -3
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +1 -1
- package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/index.js +1 -2
- package/lib/commonjs/getActionProcessor/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.js +43 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.js.map +1 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.js +26 -0
- package/lib/commonjs/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.js.map +1 -0
- package/lib/commonjs/getActionProcessor/webserver/email/index.d.ts +2 -0
- package/lib/commonjs/{logic/cognito/verifyJwt.js → getActionProcessor/webserver/email/index.js} +7 -8
- package/lib/commonjs/getActionProcessor/webserver/email/index.js.map +1 -0
- package/lib/commonjs/getActionProcessor/webserver/index.d.ts +2 -1
- package/lib/commonjs/getActionProcessor/webserver/index.js +3 -1
- package/lib/commonjs/getActionProcessor/webserver/index.js.map +1 -1
- package/lib/commonjs/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js.map +1 -1
- package/lib/commonjs/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +2 -2
- package/lib/commonjs/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js.map +1 -1
- package/lib/commonjs/getLambdaEntries.d.ts +4 -0
- package/lib/commonjs/getLambdaEntries.js +7 -1
- package/lib/commonjs/getLambdaEntries.js.map +1 -1
- package/lib/commonjs/index.d.ts +1 -1
- package/lib/commonjs/index.js +4 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/lambdaExtensions/logExtensionPort.js +1 -1
- package/lib/commonjs/lambdaExtensions/logExtensionPort.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +4 -3
- package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler.js +2 -4
- package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler_redirect.js +8 -4
- package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler_redirect.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +2 -6
- package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.d.ts +0 -19
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js +6 -9
- package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +2 -6
- package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +3 -7
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +2 -6
- package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_stackDeploy.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getS3Event_fileEvent.js +2 -6
- package/lib/commonjs/lambdaHandlers/getS3Event_fileEvent.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.js +2 -6
- package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.d.ts +5 -0
- package/lib/commonjs/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js +5 -0
- package/lib/commonjs/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/getBlankStorySession.d.ts +6 -0
- package/lib/commonjs/lambdaHandlers/helpers/getBlankStorySession.js +13 -0
- package/lib/commonjs/lambdaHandlers/helpers/getBlankStorySession.js.map +1 -0
- package/lib/commonjs/lambdaHandlers/helpers/getLogger.d.ts +8 -0
- package/lib/commonjs/lambdaHandlers/helpers/{logger.js → getLogger.js} +22 -31
- package/lib/commonjs/lambdaHandlers/helpers/getLogger.js.map +1 -0
- package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +4 -0
- package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +17 -13
- package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/index.d.ts +3 -1
- package/lib/commonjs/lambdaHandlers/helpers/index.js +3 -1
- package/lib/commonjs/lambdaHandlers/helpers/index.js.map +1 -1
- package/lib/commonjs/lambdaHandlers/helpers/isSnsWarmerRecord.d.ts +6 -0
- package/lib/commonjs/lambdaHandlers/helpers/isSnsWarmerRecord.js +23 -0
- package/lib/commonjs/lambdaHandlers/helpers/isSnsWarmerRecord.js.map +1 -0
- package/lib/commonjs/lambdaHandlers/types/QpqFunctionExecutionEvent.d.ts +7 -0
- package/lib/commonjs/lambdaHandlers/types/QpqFunctionExecutionEvent.js +3 -0
- package/lib/commonjs/lambdaHandlers/types/QpqFunctionExecutionEvent.js.map +1 -0
- package/lib/commonjs/lambdaHandlers/types/index.d.ts +1 -1
- package/lib/commonjs/lambdaHandlers/types/index.js +1 -1
- package/lib/commonjs/lambdaHandlers/types/index.js.map +1 -1
- package/lib/commonjs/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/commonjs/lambdas/cloudFrontRequestEvent_viewerRequest.js +0 -1
- package/lib/commonjs/lambdas/cloudFrontRequestEvent_viewerRequest.js.map +1 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoader.js.map +1 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/index.d.ts +0 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/index.js +0 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/index.js.map +1 -1
- package/lib/commonjs/lambdas/index.js +4 -0
- package/lib/commonjs/lambdas/index.js.map +1 -1
- package/lib/commonjs/logic/apiGateway/sendMessageToWebSocketConnection.d.ts +2 -0
- package/lib/commonjs/logic/apiGateway/{websocketSendMessage.js → sendMessageToWebSocketConnection.js} +7 -7
- package/lib/commonjs/logic/apiGateway/sendMessageToWebSocketConnection.js.map +1 -0
- package/lib/commonjs/logic/cache/memoFunc.d.ts +5 -2
- package/lib/commonjs/logic/cache/memoFunc.js +3 -5
- package/lib/commonjs/logic/cache/memoFunc.js.map +1 -1
- package/lib/commonjs/logic/cache/memoFuncAsync.d.ts +5 -2
- package/lib/commonjs/logic/cache/memoFuncAsync.js +4 -3
- package/lib/commonjs/logic/cache/memoFuncAsync.js.map +1 -1
- package/lib/commonjs/logic/cloudFront/invalidateCache.d.ts +0 -1
- package/lib/commonjs/logic/cloudFront/invalidateCache.js +7 -10
- package/lib/commonjs/logic/cloudFront/invalidateCache.js.map +1 -1
- package/lib/commonjs/logic/cloudformation/getExportedValue.d.ts +4 -0
- package/lib/commonjs/logic/cloudformation/getExportedValue.js +4 -0
- package/lib/commonjs/logic/cloudformation/getExportedValue.js.map +1 -1
- package/lib/commonjs/logic/cognito/authenticateUser.d.ts +4 -0
- package/lib/commonjs/logic/cognito/authenticateUser.js +8 -3
- package/lib/commonjs/logic/cognito/authenticateUser.js.map +1 -1
- package/lib/commonjs/logic/cognito/cognitoAttributeMap.d.ts +1 -9
- package/lib/commonjs/logic/cognito/cognitoAttributeMap.js +2 -36
- package/lib/commonjs/logic/cognito/cognitoAttributeMap.js.map +1 -1
- package/lib/commonjs/logic/cognito/confirmForgotPassword.d.ts +4 -0
- package/lib/commonjs/logic/cognito/confirmForgotPassword.js +5 -3
- package/lib/commonjs/logic/cognito/confirmForgotPassword.js.map +1 -1
- package/lib/commonjs/logic/cognito/createUser.d.ts +4 -0
- package/lib/commonjs/logic/cognito/createUser.js +9 -6
- package/lib/commonjs/logic/cognito/createUser.js.map +1 -1
- package/lib/commonjs/logic/cognito/decodeAccessToken.d.ts +11 -0
- package/lib/commonjs/logic/cognito/decodeAccessToken.js +24 -5
- package/lib/commonjs/logic/cognito/decodeAccessToken.js.map +1 -1
- package/lib/commonjs/logic/cognito/decodeValidJwt.d.ts +8 -2
- package/lib/commonjs/logic/cognito/decodeValidJwt.js +15 -9
- package/lib/commonjs/logic/cognito/decodeValidJwt.js.map +1 -1
- package/lib/commonjs/logic/cognito/forgotPassword.js +2 -6
- package/lib/commonjs/logic/cognito/forgotPassword.js.map +1 -1
- package/lib/commonjs/logic/cognito/getCognitoJwksClient.d.ts +7 -0
- package/lib/commonjs/logic/cognito/getCognitoJwksClient.js +15 -0
- package/lib/commonjs/logic/cognito/getCognitoJwksClient.js.map +1 -0
- package/lib/commonjs/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.d.ts +8 -0
- package/lib/commonjs/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js +20 -0
- package/lib/commonjs/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js.map +1 -0
- package/lib/commonjs/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.d.ts +7 -0
- package/lib/commonjs/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js +22 -0
- package/lib/commonjs/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js.map +1 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoStringMap.d.ts +6 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoStringMap.js +17 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoStringMap.js.map +1 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoUserAttributes.d.ts +4 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js +14 -0
- package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js.map +1 -0
- package/lib/commonjs/logic/cognito/getUserAttributes.js +5 -7
- package/lib/commonjs/logic/cognito/getUserAttributes.js.map +1 -1
- package/lib/commonjs/logic/cognito/getUserAttributesBySub.js +19 -4
- package/lib/commonjs/logic/cognito/getUserAttributesBySub.js.map +1 -1
- package/lib/commonjs/logic/cognito/getUserPoolClientSecret.d.ts +8 -0
- package/lib/commonjs/logic/cognito/getUserPoolClientSecret.js +20 -5
- package/lib/commonjs/logic/cognito/getUserPoolClientSecret.js.map +1 -1
- package/lib/commonjs/logic/cognito/index.js +3 -0
- package/lib/commonjs/logic/cognito/index.js.map +1 -1
- package/lib/commonjs/logic/cognito/listPagedUsers.js +2 -6
- package/lib/commonjs/logic/cognito/listPagedUsers.js.map +1 -1
- package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.d.ts +5 -0
- package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.js +8 -7
- package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.js.map +1 -1
- package/lib/commonjs/logic/cognito/refreshToken.js +9 -8
- package/lib/commonjs/logic/cognito/refreshToken.js.map +1 -1
- package/lib/commonjs/logic/cognito/requestEmailVerificationCode.js +3 -8
- package/lib/commonjs/logic/cognito/requestEmailVerificationCode.js.map +1 -1
- package/lib/commonjs/logic/cognito/resolveUsernameByPreferredUsername.d.ts +5 -0
- package/lib/commonjs/logic/cognito/resolveUsernameByPreferredUsername.js +26 -3
- package/lib/commonjs/logic/cognito/resolveUsernameByPreferredUsername.js.map +1 -1
- package/lib/commonjs/logic/cognito/respondToAuthChallenge.d.ts +8 -0
- package/lib/commonjs/logic/cognito/{respondToAuthChallengeChallenge.js → respondToAuthChallenge.js} +13 -7
- package/lib/commonjs/logic/cognito/respondToAuthChallenge.js.map +1 -0
- package/lib/commonjs/logic/cognito/setUserAttributes.js +5 -5
- package/lib/commonjs/logic/cognito/setUserAttributes.js.map +1 -1
- package/lib/commonjs/logic/cognito/setUserPassword.js +2 -1
- package/lib/commonjs/logic/cognito/setUserPassword.js.map +1 -1
- package/lib/commonjs/logic/cognito/utils/CognitoUserAttribute.d.ts +5 -0
- package/lib/commonjs/logic/cognito/utils/CognitoUserAttribute.js +3 -0
- package/lib/commonjs/logic/cognito/utils/CognitoUserAttribute.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/buildCognitoUserFilter.d.ts +10 -0
- package/lib/commonjs/logic/cognito/utils/buildCognitoUserFilter.js +34 -0
- package/lib/commonjs/logic/cognito/utils/buildCognitoUserFilter.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/calculateSecretHash.d.ts +5 -0
- package/lib/commonjs/logic/cognito/utils/calculateSecretHash.js +6 -6
- package/lib/commonjs/logic/cognito/utils/calculateSecretHash.js.map +1 -1
- package/lib/commonjs/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.d.ts +8 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js +23 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.d.ts +7 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js +22 -0
- package/lib/commonjs/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.d.ts +9 -0
- package/lib/commonjs/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js +27 -0
- package/lib/commonjs/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.d.ts +7 -0
- package/lib/commonjs/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js +14 -0
- package/lib/commonjs/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/getValidCognitoUserAttributes.d.ts +7 -0
- package/lib/commonjs/logic/cognito/utils/getValidCognitoUserAttributes.js +10 -0
- package/lib/commonjs/logic/cognito/utils/getValidCognitoUserAttributes.js.map +1 -0
- package/lib/commonjs/logic/cognito/utils/index.d.ts +7 -1
- package/lib/commonjs/logic/cognito/utils/index.js +7 -1
- package/lib/commonjs/logic/cognito/utils/index.js.map +1 -1
- package/lib/commonjs/logic/cognito/utils/pageKeyToPaginationToken.d.ts +5 -0
- package/lib/commonjs/logic/cognito/utils/pageKeyToPaginationToken.js +5 -0
- package/lib/commonjs/logic/cognito/utils/pageKeyToPaginationToken.js.map +1 -1
- package/lib/commonjs/logic/cognito/utils/paginationTokenToPageKey.d.ts +5 -0
- package/lib/commonjs/logic/cognito/utils/paginationTokenToPageKey.js +5 -0
- package/lib/commonjs/logic/cognito/utils/paginationTokenToPageKey.js.map +1 -1
- package/lib/commonjs/logic/cognito/verifyUserEmail.d.ts +1 -0
- package/lib/commonjs/logic/cognito/verifyUserEmail.js +1 -0
- package/lib/commonjs/logic/cognito/verifyUserEmail.js.map +1 -1
- package/lib/commonjs/logic/createAwsClient.d.ts +6 -3
- package/lib/commonjs/logic/createAwsClient.js +7 -6
- package/lib/commonjs/logic/createAwsClient.js.map +1 -1
- package/lib/commonjs/logic/dynamo/convertDynamoMapToObject.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/convertDynamoMapToObject.js +35 -0
- package/lib/commonjs/logic/dynamo/convertDynamoMapToObject.js.map +1 -0
- package/lib/commonjs/logic/dynamo/deleteItem.js +4 -10
- package/lib/commonjs/logic/dynamo/deleteItem.js.map +1 -1
- package/lib/commonjs/logic/dynamo/getAllItems.d.ts +2 -1
- package/lib/commonjs/logic/dynamo/getAllItems.js +5 -10
- package/lib/commonjs/logic/dynamo/getAllItems.js.map +1 -1
- package/lib/commonjs/logic/dynamo/getItem.d.ts +2 -2
- package/lib/commonjs/logic/dynamo/getItem.js +6 -18
- package/lib/commonjs/logic/dynamo/getItem.js.map +1 -1
- package/lib/commonjs/logic/dynamo/index.d.ts +2 -0
- package/lib/commonjs/logic/dynamo/index.js +2 -0
- package/lib/commonjs/logic/dynamo/index.js.map +1 -1
- package/lib/commonjs/logic/dynamo/putItem.d.ts +4 -4
- package/lib/commonjs/logic/dynamo/putItem.js +3 -20
- package/lib/commonjs/logic/dynamo/putItem.js.map +1 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildAttributeValue.d.ts +8 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js +40 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.d.ts +9 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js +84 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.d.ts +9 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js +107 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js +24 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.d.ts +8 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js +39 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js +23 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.d.ts +9 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js +25 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.d.ts +3 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js +17 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.d.ts +7 -2
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js +13 -22
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js.map +1 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getHash.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getHash.js +18 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getHash.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getItemName.d.ts +6 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getItemName.js +14 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getItemName.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getValueName.d.ts +7 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getValueName.js +14 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getValueName.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/index.d.ts +13 -2
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/index.js +13 -2
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/index.js.map +1 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.d.ts +2 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js +8 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js.map +1 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.d.ts +2 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js +8 -0
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js.map +1 -0
- package/lib/commonjs/logic/dynamo/query.js +6 -10
- package/lib/commonjs/logic/dynamo/query.js.map +1 -1
- package/lib/commonjs/logic/dynamo/scan.js +6 -10
- package/lib/commonjs/logic/dynamo/scan.js.map +1 -1
- package/lib/commonjs/logic/dynamo/updateItem.d.ts +2 -1
- package/lib/commonjs/logic/dynamo/updateItem.js +8 -12
- package/lib/commonjs/logic/dynamo/updateItem.js.map +1 -1
- package/lib/commonjs/logic/dynamo/utils/buildDynamoKey.d.ts +8 -0
- package/lib/commonjs/logic/dynamo/utils/buildDynamoKey.js +20 -0
- package/lib/commonjs/logic/dynamo/utils/buildDynamoKey.js.map +1 -0
- package/lib/commonjs/logic/dynamo/{logs/utils → utils}/index.d.ts +2 -0
- package/lib/commonjs/logic/dynamo/{logs/utils → utils}/index.js +2 -0
- package/lib/commonjs/logic/dynamo/utils/index.js.map +1 -0
- package/lib/commonjs/logic/dynamo/utils/itemsToQpqPagedData.d.ts +3 -1
- package/lib/commonjs/logic/dynamo/utils/itemsToQpqPagedData.js +3 -2
- package/lib/commonjs/logic/dynamo/utils/itemsToQpqPagedData.js.map +1 -1
- package/lib/commonjs/logic/dynamo/utils/lastEvaluatedKeyToString.d.ts +3 -0
- package/lib/commonjs/logic/dynamo/{logs/utils → utils}/lastEvaluatedKeyToString.js +1 -0
- package/lib/commonjs/logic/dynamo/utils/lastEvaluatedKeyToString.js.map +1 -0
- package/lib/commonjs/logic/dynamo/utils/stringToLastEvaluatedKey.d.ts +8 -0
- package/lib/commonjs/logic/dynamo/utils/stringToLastEvaluatedKey.js +13 -0
- package/lib/commonjs/logic/dynamo/utils/stringToLastEvaluatedKey.js.map +1 -0
- package/lib/commonjs/logic/federatedModuleStore/FederatedModuleStoreManifest.d.ts +2 -2
- package/lib/commonjs/logic/federatedModuleStore/FederatedModuleStoreManifest.js.map +1 -1
- package/lib/commonjs/logic/federatedModuleStore/loadFederatedStory.d.ts +1 -1
- package/lib/commonjs/logic/federatedModuleStore/loadFederatedStory.js.map +1 -1
- package/lib/commonjs/logic/federatedModuleStore/sharedPackages.js +1 -1
- package/lib/commonjs/logic/federatedModuleStore/sharedPackages.js.map +1 -1
- package/lib/commonjs/logic/kms/decryptDataKey.d.ts +2 -0
- package/lib/commonjs/logic/kms/decryptDataKey.js +33 -0
- package/lib/commonjs/logic/kms/decryptDataKey.js.map +1 -0
- package/lib/commonjs/logic/kms/generateDataKey.d.ts +3 -0
- package/lib/commonjs/logic/kms/generateDataKey.js +34 -0
- package/lib/commonjs/logic/kms/generateDataKey.js.map +1 -0
- package/lib/commonjs/logic/kms/getCachedGeneratedDataKey.d.ts +3 -0
- package/lib/commonjs/logic/kms/getCachedGeneratedDataKey.js +37 -0
- package/lib/commonjs/logic/kms/getCachedGeneratedDataKey.js.map +1 -0
- package/lib/commonjs/logic/kms/getCachedUnwrappedDataKey.d.ts +2 -0
- package/lib/commonjs/logic/kms/getCachedUnwrappedDataKey.js +37 -0
- package/lib/commonjs/logic/kms/getCachedUnwrappedDataKey.js.map +1 -0
- package/lib/commonjs/logic/kms/toKmsEncryptionContext.d.ts +2 -0
- package/lib/commonjs/logic/kms/toKmsEncryptionContext.js +10 -0
- package/lib/commonjs/logic/kms/toKmsEncryptionContext.js.map +1 -0
- package/lib/commonjs/logic/lambda/executeLambdaByName.d.ts +5 -1
- package/lib/commonjs/logic/lambda/executeLambdaByName.js +6 -3
- package/lib/commonjs/logic/lambda/executeLambdaByName.js.map +1 -1
- package/lib/commonjs/logic/neptune/getNeptuneEndpoints.js +8 -6
- package/lib/commonjs/logic/neptune/getNeptuneEndpoints.js.map +1 -1
- package/lib/commonjs/logic/parametersManager/getParameters.js +2 -1
- package/lib/commonjs/logic/parametersManager/getParameters.js.map +1 -1
- package/lib/commonjs/logic/s3/deleteFiles.d.ts +1 -0
- package/lib/commonjs/logic/s3/deleteFiles.js +16 -9
- package/lib/commonjs/logic/s3/deleteFiles.js.map +1 -1
- package/lib/commonjs/logic/s3/generatePresignedUploadUrl.d.ts +1 -0
- package/lib/commonjs/logic/s3/generatePresignedUploadUrl.js +2 -31
- package/lib/commonjs/logic/s3/generatePresignedUploadUrl.js.map +1 -1
- package/lib/commonjs/logic/s3/generatePresignedUrl.d.ts +1 -0
- package/lib/commonjs/logic/s3/generatePresignedUrl.js +4 -11
- package/lib/commonjs/logic/s3/generatePresignedUrl.js.map +1 -1
- package/lib/commonjs/logic/s3/listFiles.d.ts +5 -4
- package/lib/commonjs/logic/s3/listFiles.js +20 -27
- package/lib/commonjs/logic/s3/listFiles.js.map +1 -1
- package/lib/commonjs/logic/s3/s3Utils.d.ts +3 -0
- package/lib/commonjs/logic/s3/s3Utils.js +5 -0
- package/lib/commonjs/logic/s3/s3Utils.js.map +1 -1
- package/lib/commonjs/logic/secretsManager/getSecret.js +2 -3
- package/lib/commonjs/logic/secretsManager/getSecret.js.map +1 -1
- package/lib/commonjs/logic/sesV2/buildRawMimeMessage.d.ts +2 -0
- package/lib/commonjs/logic/sesV2/buildRawMimeMessage.js +79 -0
- package/lib/commonjs/logic/sesV2/buildRawMimeMessage.js.map +1 -0
- package/lib/commonjs/logic/sesV2/sendEmail.d.ts +2 -0
- package/lib/commonjs/logic/sesV2/sendEmail.js +48 -0
- package/lib/commonjs/logic/sesV2/sendEmail.js.map +1 -0
- package/lib/commonjs/logic/sns/publishMessage.d.ts +7 -2
- package/lib/commonjs/logic/sns/publishMessage.js +11 -11
- package/lib/commonjs/logic/sns/publishMessage.js.map +1 -1
- package/lib/commonjs/logic/sqs/sendMessages.d.ts +7 -2
- package/lib/commonjs/logic/sqs/sendMessages.js +9 -8
- package/lib/commonjs/logic/sqs/sendMessages.js.map +1 -1
- package/lib/commonjs/runtimeConfig/LambdaRuntimeConfig.d.ts +9 -0
- package/lib/commonjs/runtimeConfig/LambdaRuntimeConfig.js +3 -0
- package/lib/commonjs/runtimeConfig/LambdaRuntimeConfig.js.map +1 -0
- package/lib/commonjs/runtimeConfig/index.d.ts +2 -0
- package/lib/commonjs/{logic/dynamo/logs → runtimeConfig}/index.js +2 -1
- package/lib/commonjs/runtimeConfig/index.js.map +1 -0
- package/lib/commonjs/runtimeConfig/resolveParameterKey.d.ts +7 -0
- package/lib/commonjs/runtimeConfig/resolveParameterKey.js +17 -0
- package/lib/commonjs/runtimeConfig/resolveParameterKey.js.map +1 -0
- package/lib/esm/awsLambdaUtils.d.ts +6 -4
- package/lib/esm/awsLambdaUtils.js +2 -2
- package/lib/esm/awsLambdaUtils.js.map +1 -1
- package/lib/esm/awsNamingUtils.d.ts +2 -2
- package/lib/esm/awsNamingUtils.js +53 -100
- package/lib/esm/awsNamingUtils.js.map +1 -1
- package/lib/esm/getActionProcessor/core/ai/getAiPromptActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/ai/getAiPromptActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js +6 -6
- package/lib/esm/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/ai/logic/prepareAiPromptCall.d.ts +4 -3
- package/lib/esm/getActionProcessor/core/ai/logic/prepareAiPromptCall.js.map +1 -1
- package/lib/esm/getActionProcessor/core/ai/logic/toCacheableMessages.js +1 -1
- package/lib/esm/getActionProcessor/core/ai/logic/toCacheableMessages.js.map +1 -1
- package/lib/esm/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js +8 -7
- package/lib/esm/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js +38 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js +30 -0
- package/lib/esm/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/index.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/index.js +7 -0
- package/lib/esm/getActionProcessor/core/crypto/index.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js +7 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/index.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/index.js +3 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/index.js.map +1 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.d.ts +2 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js +14 -0
- package/lib/esm/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js.map +1 -0
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventMatchStoryActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +20 -17
- package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileDeleteActionProcessor.js +4 -8
- package/lib/esm/getActionProcessor/core/file/getFileDeleteActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -1
- package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/utils/StorageDriveNotFoundError.d.ts +3 -0
- package/lib/esm/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js +10 -0
- package/lib/esm/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js.map +1 -0
- package/lib/esm/getActionProcessor/core/file/utils/index.d.ts +1 -0
- package/lib/esm/getActionProcessor/core/file/utils/index.js +1 -0
- package/lib/esm/getActionProcessor/core/file/utils/index.js.map +1 -1
- package/lib/esm/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.d.ts +5 -0
- package/lib/esm/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js +7 -1
- package/lib/esm/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js.map +1 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js +1 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js.map +1 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.d.ts +5 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.d.ts +4 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.d.ts +7 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.d.ts +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js +2 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js.map +1 -0
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/index.d.ts +8 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/index.js +8 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/index.js.map +1 -1
- package/lib/esm/getActionProcessor/core/index.d.ts +1 -0
- package/lib/esm/getActionProcessor/core/index.js +3 -0
- package/lib/esm/getActionProcessor/core/index.js.map +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +20 -19
- package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/system/getDateNow.d.ts +1 -0
- package/lib/esm/getActionProcessor/core/system/getDateNow.js +4 -0
- package/lib/esm/getActionProcessor/core/system/getDateNow.js.map +1 -0
- package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.d.ts +0 -1
- package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +4 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +7 -3
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +2 -2
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/index.js +8 -9
- package/lib/esm/getActionProcessor/index.js.map +1 -1
- package/lib/esm/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.d.ts +2 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.js +28 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSendEmailActionProcessor.js.map +1 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.d.ts +2 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.js +11 -0
- package/lib/esm/getActionProcessor/webserver/email/getEmailSetDeliveryStatusActionProcessor.js.map +1 -0
- package/lib/esm/getActionProcessor/webserver/email/index.d.ts +2 -0
- package/lib/esm/getActionProcessor/webserver/email/index.js +7 -0
- package/lib/esm/getActionProcessor/webserver/email/index.js.map +1 -0
- package/lib/esm/getActionProcessor/webserver/index.d.ts +2 -1
- package/lib/esm/getActionProcessor/webserver/index.js +3 -0
- package/lib/esm/getActionProcessor/webserver/index.js.map +1 -1
- package/lib/esm/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js.map +1 -1
- package/lib/esm/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +1 -1
- package/lib/esm/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js.map +1 -1
- package/lib/esm/getLambdaEntries.d.ts +4 -0
- package/lib/esm/getLambdaEntries.js +7 -4
- package/lib/esm/getLambdaEntries.js.map +1 -1
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +4 -3
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/lambdaExtensions/logExtensionPort.js +1 -1
- package/lib/esm/lambdaExtensions/logExtensionPort.js.map +1 -1
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +4 -3
- package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js.map +1 -1
- package/lib/esm/lambdaHandlers/getApiGatewayEventHandler.js +2 -4
- package/lib/esm/lambdaHandlers/getApiGatewayEventHandler.js.map +1 -1
- package/lib/esm/lambdaHandlers/getApiGatewayEventHandler_redirect.js +8 -4
- package/lib/esm/lambdaHandlers/getApiGatewayEventHandler_redirect.js.map +1 -1
- package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +2 -6
- package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +2 -6
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.d.ts +0 -19
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js +5 -7
- package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js +2 -6
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +2 -6
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +2 -6
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js.map +1 -1
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +2 -6
- package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js.map +1 -1
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +3 -7
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js.map +1 -1
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +2 -6
- package/lib/esm/lambdaHandlers/getEventBridgeEvent_stackDeploy.js.map +1 -1
- package/lib/esm/lambdaHandlers/getS3Event_fileEvent.js +2 -6
- package/lib/esm/lambdaHandlers/getS3Event_fileEvent.js.map +1 -1
- package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.js +3 -7
- package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.js.map +1 -1
- package/lib/esm/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.d.ts +5 -0
- package/lib/esm/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js +5 -0
- package/lib/esm/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js.map +1 -1
- package/lib/esm/lambdaHandlers/helpers/getBlankStorySession.d.ts +6 -0
- package/lib/esm/lambdaHandlers/helpers/getBlankStorySession.js +9 -0
- package/lib/esm/lambdaHandlers/helpers/getBlankStorySession.js.map +1 -0
- package/lib/esm/lambdaHandlers/helpers/getLogger.d.ts +8 -0
- package/lib/esm/lambdaHandlers/helpers/{logger.js → getLogger.js} +21 -25
- package/lib/esm/lambdaHandlers/helpers/getLogger.js.map +1 -0
- package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +4 -0
- package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +19 -15
- package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js.map +1 -1
- package/lib/esm/lambdaHandlers/helpers/index.d.ts +3 -1
- package/lib/esm/lambdaHandlers/helpers/index.js +3 -1
- package/lib/esm/lambdaHandlers/helpers/index.js.map +1 -1
- package/lib/esm/lambdaHandlers/helpers/isSnsWarmerRecord.d.ts +6 -0
- package/lib/esm/lambdaHandlers/helpers/isSnsWarmerRecord.js +19 -0
- package/lib/esm/lambdaHandlers/helpers/isSnsWarmerRecord.js.map +1 -0
- package/lib/esm/lambdaHandlers/types/QpqFunctionExecutionEvent.d.ts +7 -0
- package/lib/esm/lambdaHandlers/types/QpqFunctionExecutionEvent.js +2 -0
- package/lib/esm/lambdaHandlers/types/QpqFunctionExecutionEvent.js.map +1 -0
- package/lib/esm/lambdaHandlers/types/index.d.ts +1 -1
- package/lib/esm/lambdaHandlers/types/index.js +1 -1
- package/lib/esm/lambdaHandlers/types/index.js.map +1 -1
- package/lib/esm/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
- package/lib/esm/lambdas/cloudFrontRequestEvent_viewerRequest.js +0 -1
- package/lib/esm/lambdas/cloudFrontRequestEvent_viewerRequest.js.map +1 -1
- package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoader.js.map +1 -1
- package/lib/esm/lambdas/dynamicModuleLoader/index.d.ts +0 -1
- package/lib/esm/lambdas/dynamicModuleLoader/index.js +0 -1
- package/lib/esm/lambdas/dynamicModuleLoader/index.js.map +1 -1
- package/lib/esm/lambdas/index.js +4 -0
- package/lib/esm/lambdas/index.js.map +1 -1
- package/lib/esm/logic/apiGateway/sendMessageToWebSocketConnection.d.ts +2 -0
- package/lib/esm/logic/apiGateway/{websocketSendMessage.js → sendMessageToWebSocketConnection.js} +7 -7
- package/lib/esm/logic/apiGateway/sendMessageToWebSocketConnection.js.map +1 -0
- package/lib/esm/logic/cache/memoFunc.d.ts +5 -2
- package/lib/esm/logic/cache/memoFunc.js +3 -5
- package/lib/esm/logic/cache/memoFunc.js.map +1 -1
- package/lib/esm/logic/cache/memoFuncAsync.d.ts +5 -2
- package/lib/esm/logic/cache/memoFuncAsync.js +4 -3
- package/lib/esm/logic/cache/memoFuncAsync.js.map +1 -1
- package/lib/esm/logic/cloudFront/invalidateCache.d.ts +0 -1
- package/lib/esm/logic/cloudFront/invalidateCache.js +6 -8
- package/lib/esm/logic/cloudFront/invalidateCache.js.map +1 -1
- package/lib/esm/logic/cloudformation/getExportedValue.d.ts +4 -0
- package/lib/esm/logic/cloudformation/getExportedValue.js +4 -0
- package/lib/esm/logic/cloudformation/getExportedValue.js.map +1 -1
- package/lib/esm/logic/cognito/authenticateUser.d.ts +4 -0
- package/lib/esm/logic/cognito/authenticateUser.js +7 -2
- package/lib/esm/logic/cognito/authenticateUser.js.map +1 -1
- package/lib/esm/logic/cognito/cognitoAttributeMap.d.ts +1 -9
- package/lib/esm/logic/cognito/cognitoAttributeMap.js +1 -38
- package/lib/esm/logic/cognito/cognitoAttributeMap.js.map +1 -1
- package/lib/esm/logic/cognito/confirmForgotPassword.d.ts +4 -0
- package/lib/esm/logic/cognito/confirmForgotPassword.js +5 -3
- package/lib/esm/logic/cognito/confirmForgotPassword.js.map +1 -1
- package/lib/esm/logic/cognito/createUser.d.ts +4 -0
- package/lib/esm/logic/cognito/createUser.js +8 -5
- package/lib/esm/logic/cognito/createUser.js.map +1 -1
- package/lib/esm/logic/cognito/decodeAccessToken.d.ts +11 -0
- package/lib/esm/logic/cognito/decodeAccessToken.js +22 -4
- package/lib/esm/logic/cognito/decodeAccessToken.js.map +1 -1
- package/lib/esm/logic/cognito/decodeValidJwt.d.ts +8 -2
- package/lib/esm/logic/cognito/decodeValidJwt.js +15 -6
- package/lib/esm/logic/cognito/decodeValidJwt.js.map +1 -1
- package/lib/esm/logic/cognito/forgotPassword.js +2 -6
- package/lib/esm/logic/cognito/forgotPassword.js.map +1 -1
- package/lib/esm/logic/cognito/getCognitoJwksClient.d.ts +7 -0
- package/lib/esm/logic/cognito/getCognitoJwksClient.js +9 -0
- package/lib/esm/logic/cognito/getCognitoJwksClient.js.map +1 -0
- package/lib/esm/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.d.ts +8 -0
- package/lib/esm/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js +16 -0
- package/lib/esm/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js.map +1 -0
- package/lib/esm/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.d.ts +7 -0
- package/lib/esm/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js +18 -0
- package/lib/esm/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js.map +1 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoStringMap.d.ts +6 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoStringMap.js +13 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoStringMap.js.map +1 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoUserAttributes.d.ts +4 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js +10 -0
- package/lib/esm/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js.map +1 -0
- package/lib/esm/logic/cognito/getUserAttributes.js +5 -7
- package/lib/esm/logic/cognito/getUserAttributes.js.map +1 -1
- package/lib/esm/logic/cognito/getUserAttributesBySub.js +19 -4
- package/lib/esm/logic/cognito/getUserAttributesBySub.js.map +1 -1
- package/lib/esm/logic/cognito/getUserPoolClientSecret.d.ts +8 -0
- package/lib/esm/logic/cognito/getUserPoolClientSecret.js +17 -3
- package/lib/esm/logic/cognito/getUserPoolClientSecret.js.map +1 -1
- package/lib/esm/logic/cognito/index.js +3 -0
- package/lib/esm/logic/cognito/index.js.map +1 -1
- package/lib/esm/logic/cognito/listPagedUsers.js +3 -7
- package/lib/esm/logic/cognito/listPagedUsers.js.map +1 -1
- package/lib/esm/logic/cognito/listPagedUsersByAttribute.d.ts +5 -0
- package/lib/esm/logic/cognito/listPagedUsersByAttribute.js +9 -8
- package/lib/esm/logic/cognito/listPagedUsersByAttribute.js.map +1 -1
- package/lib/esm/logic/cognito/refreshToken.js +8 -7
- package/lib/esm/logic/cognito/refreshToken.js.map +1 -1
- package/lib/esm/logic/cognito/requestEmailVerificationCode.js +3 -7
- package/lib/esm/logic/cognito/requestEmailVerificationCode.js.map +1 -1
- package/lib/esm/logic/cognito/resolveUsernameByPreferredUsername.d.ts +5 -0
- package/lib/esm/logic/cognito/resolveUsernameByPreferredUsername.js +26 -3
- package/lib/esm/logic/cognito/resolveUsernameByPreferredUsername.js.map +1 -1
- package/lib/esm/logic/cognito/respondToAuthChallenge.d.ts +8 -0
- package/lib/esm/logic/cognito/{respondToAuthChallengeChallenge.js → respondToAuthChallenge.js} +10 -4
- package/lib/esm/logic/cognito/respondToAuthChallenge.js.map +1 -0
- package/lib/esm/logic/cognito/setUserAttributes.js +4 -4
- package/lib/esm/logic/cognito/setUserAttributes.js.map +1 -1
- package/lib/esm/logic/cognito/setUserPassword.js +2 -1
- package/lib/esm/logic/cognito/setUserPassword.js.map +1 -1
- package/lib/esm/logic/cognito/utils/CognitoUserAttribute.d.ts +5 -0
- package/lib/esm/logic/cognito/utils/CognitoUserAttribute.js +2 -0
- package/lib/esm/logic/cognito/utils/CognitoUserAttribute.js.map +1 -0
- package/lib/esm/logic/cognito/utils/buildCognitoUserFilter.d.ts +10 -0
- package/lib/esm/logic/cognito/utils/buildCognitoUserFilter.js +29 -0
- package/lib/esm/logic/cognito/utils/buildCognitoUserFilter.js.map +1 -0
- package/lib/esm/logic/cognito/utils/calculateSecretHash.d.ts +5 -0
- package/lib/esm/logic/cognito/utils/calculateSecretHash.js +6 -6
- package/lib/esm/logic/cognito/utils/calculateSecretHash.js.map +1 -1
- package/lib/esm/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.d.ts +8 -0
- package/lib/esm/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js +19 -0
- package/lib/esm/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js.map +1 -0
- package/lib/esm/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.d.ts +7 -0
- package/lib/esm/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js +18 -0
- package/lib/esm/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js.map +1 -0
- package/lib/esm/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.d.ts +9 -0
- package/lib/esm/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js +23 -0
- package/lib/esm/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js.map +1 -0
- package/lib/esm/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.d.ts +7 -0
- package/lib/esm/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js +10 -0
- package/lib/esm/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js.map +1 -0
- package/lib/esm/logic/cognito/utils/getValidCognitoUserAttributes.d.ts +7 -0
- package/lib/esm/logic/cognito/utils/getValidCognitoUserAttributes.js +6 -0
- package/lib/esm/logic/cognito/utils/getValidCognitoUserAttributes.js.map +1 -0
- package/lib/esm/logic/cognito/utils/index.d.ts +7 -1
- package/lib/esm/logic/cognito/utils/index.js +7 -1
- package/lib/esm/logic/cognito/utils/index.js.map +1 -1
- package/lib/esm/logic/cognito/utils/pageKeyToPaginationToken.d.ts +5 -0
- package/lib/esm/logic/cognito/utils/pageKeyToPaginationToken.js +5 -0
- package/lib/esm/logic/cognito/utils/pageKeyToPaginationToken.js.map +1 -1
- package/lib/esm/logic/cognito/utils/paginationTokenToPageKey.d.ts +5 -0
- package/lib/esm/logic/cognito/utils/paginationTokenToPageKey.js +5 -0
- package/lib/esm/logic/cognito/utils/paginationTokenToPageKey.js.map +1 -1
- package/lib/esm/logic/cognito/verifyUserEmail.d.ts +1 -0
- package/lib/esm/logic/cognito/verifyUserEmail.js +1 -0
- package/lib/esm/logic/cognito/verifyUserEmail.js.map +1 -1
- package/lib/esm/logic/createAwsClient.d.ts +6 -3
- package/lib/esm/logic/createAwsClient.js +7 -6
- package/lib/esm/logic/createAwsClient.js.map +1 -1
- package/lib/esm/logic/dynamo/convertDynamoMapToObject.d.ts +7 -0
- package/lib/esm/logic/dynamo/convertDynamoMapToObject.js +32 -0
- package/lib/esm/logic/dynamo/convertDynamoMapToObject.js.map +1 -0
- package/lib/esm/logic/dynamo/deleteItem.js +4 -10
- package/lib/esm/logic/dynamo/deleteItem.js.map +1 -1
- package/lib/esm/logic/dynamo/getAllItems.d.ts +2 -1
- package/lib/esm/logic/dynamo/getAllItems.js +5 -10
- package/lib/esm/logic/dynamo/getAllItems.js.map +1 -1
- package/lib/esm/logic/dynamo/getItem.d.ts +2 -2
- package/lib/esm/logic/dynamo/getItem.js +6 -18
- package/lib/esm/logic/dynamo/getItem.js.map +1 -1
- package/lib/esm/logic/dynamo/index.d.ts +2 -0
- package/lib/esm/logic/dynamo/index.js +2 -0
- package/lib/esm/logic/dynamo/index.js.map +1 -1
- package/lib/esm/logic/dynamo/putItem.d.ts +4 -4
- package/lib/esm/logic/dynamo/putItem.js +3 -20
- package/lib/esm/logic/dynamo/putItem.js.map +1 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildAttributeValue.d.ts +8 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js +36 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.d.ts +9 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js +80 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.d.ts +9 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js +103 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.d.ts +7 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js +20 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.d.ts +8 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js +35 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.d.ts +7 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js +19 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.d.ts +9 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js +21 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.d.ts +3 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js +13 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.d.ts +7 -2
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js +13 -22
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js.map +1 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getHash.d.ts +7 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getHash.js +11 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getHash.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getItemName.d.ts +6 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getItemName.js +10 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getItemName.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getValueName.d.ts +7 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getValueName.js +10 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/getValueName.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/index.d.ts +13 -2
- package/lib/esm/logic/dynamo/qpqDynamoOrm/index.js +13 -2
- package/lib/esm/logic/dynamo/qpqDynamoOrm/index.js.map +1 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.d.ts +2 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js +4 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js.map +1 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.d.ts +2 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js +4 -0
- package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js.map +1 -0
- package/lib/esm/logic/dynamo/query.js +5 -8
- package/lib/esm/logic/dynamo/query.js.map +1 -1
- package/lib/esm/logic/dynamo/scan.js +5 -8
- package/lib/esm/logic/dynamo/scan.js.map +1 -1
- package/lib/esm/logic/dynamo/updateItem.d.ts +2 -1
- package/lib/esm/logic/dynamo/updateItem.js +8 -12
- package/lib/esm/logic/dynamo/updateItem.js.map +1 -1
- package/lib/esm/logic/dynamo/utils/buildDynamoKey.d.ts +8 -0
- package/lib/esm/logic/dynamo/utils/buildDynamoKey.js +16 -0
- package/lib/esm/logic/dynamo/utils/buildDynamoKey.js.map +1 -0
- package/lib/esm/logic/dynamo/{logs/utils → utils}/index.d.ts +2 -0
- package/lib/esm/logic/dynamo/utils/index.js +5 -0
- package/lib/esm/logic/dynamo/utils/index.js.map +1 -0
- package/lib/esm/logic/dynamo/utils/itemsToQpqPagedData.d.ts +3 -1
- package/lib/esm/logic/dynamo/utils/itemsToQpqPagedData.js +2 -1
- package/lib/esm/logic/dynamo/utils/itemsToQpqPagedData.js.map +1 -1
- package/lib/esm/logic/dynamo/utils/lastEvaluatedKeyToString.d.ts +3 -0
- package/lib/esm/logic/dynamo/{logs/utils → utils}/lastEvaluatedKeyToString.js +1 -0
- package/lib/esm/logic/dynamo/utils/lastEvaluatedKeyToString.js.map +1 -0
- package/lib/esm/logic/dynamo/utils/stringToLastEvaluatedKey.d.ts +8 -0
- package/lib/esm/logic/dynamo/utils/stringToLastEvaluatedKey.js +10 -0
- package/lib/esm/logic/dynamo/utils/stringToLastEvaluatedKey.js.map +1 -0
- package/lib/esm/logic/federatedModuleStore/FederatedModuleStoreManifest.d.ts +2 -2
- package/lib/esm/logic/federatedModuleStore/FederatedModuleStoreManifest.js.map +1 -1
- package/lib/esm/logic/federatedModuleStore/loadFederatedStory.d.ts +1 -1
- package/lib/esm/logic/federatedModuleStore/loadFederatedStory.js.map +1 -1
- package/lib/esm/logic/federatedModuleStore/sharedPackages.js +1 -1
- package/lib/esm/logic/federatedModuleStore/sharedPackages.js.map +1 -1
- package/lib/esm/logic/kms/decryptDataKey.d.ts +2 -0
- package/lib/esm/logic/kms/decryptDataKey.js +20 -0
- package/lib/esm/logic/kms/decryptDataKey.js.map +1 -0
- package/lib/esm/logic/kms/generateDataKey.d.ts +3 -0
- package/lib/esm/logic/kms/generateDataKey.js +21 -0
- package/lib/esm/logic/kms/generateDataKey.js.map +1 -0
- package/lib/esm/logic/kms/getCachedGeneratedDataKey.d.ts +3 -0
- package/lib/esm/logic/kms/getCachedGeneratedDataKey.js +24 -0
- package/lib/esm/logic/kms/getCachedGeneratedDataKey.js.map +1 -0
- package/lib/esm/logic/kms/getCachedUnwrappedDataKey.d.ts +2 -0
- package/lib/esm/logic/kms/getCachedUnwrappedDataKey.js +24 -0
- package/lib/esm/logic/kms/getCachedUnwrappedDataKey.js.map +1 -0
- package/lib/esm/logic/kms/toKmsEncryptionContext.d.ts +2 -0
- package/lib/esm/logic/kms/toKmsEncryptionContext.js +6 -0
- package/lib/esm/logic/kms/toKmsEncryptionContext.js.map +1 -0
- package/lib/esm/logic/lambda/executeLambdaByName.d.ts +5 -1
- package/lib/esm/logic/lambda/executeLambdaByName.js +6 -3
- package/lib/esm/logic/lambda/executeLambdaByName.js.map +1 -1
- package/lib/esm/logic/neptune/getNeptuneEndpoints.js +7 -6
- package/lib/esm/logic/neptune/getNeptuneEndpoints.js.map +1 -1
- package/lib/esm/logic/parametersManager/getParameters.js +2 -1
- package/lib/esm/logic/parametersManager/getParameters.js.map +1 -1
- package/lib/esm/logic/s3/deleteFiles.d.ts +1 -0
- package/lib/esm/logic/s3/deleteFiles.js +16 -9
- package/lib/esm/logic/s3/deleteFiles.js.map +1 -1
- package/lib/esm/logic/s3/generatePresignedUploadUrl.d.ts +1 -0
- package/lib/esm/logic/s3/generatePresignedUploadUrl.js +2 -31
- package/lib/esm/logic/s3/generatePresignedUploadUrl.js.map +1 -1
- package/lib/esm/logic/s3/generatePresignedUrl.d.ts +1 -0
- package/lib/esm/logic/s3/generatePresignedUrl.js +4 -11
- package/lib/esm/logic/s3/generatePresignedUrl.js.map +1 -1
- package/lib/esm/logic/s3/listFiles.d.ts +5 -4
- package/lib/esm/logic/s3/listFiles.js +20 -27
- package/lib/esm/logic/s3/listFiles.js.map +1 -1
- package/lib/esm/logic/s3/s3Utils.d.ts +3 -0
- package/lib/esm/logic/s3/s3Utils.js +5 -0
- package/lib/esm/logic/s3/s3Utils.js.map +1 -1
- package/lib/esm/logic/secretsManager/getSecret.js +2 -3
- package/lib/esm/logic/secretsManager/getSecret.js.map +1 -1
- package/lib/esm/logic/sesV2/buildRawMimeMessage.d.ts +2 -0
- package/lib/esm/logic/sesV2/buildRawMimeMessage.js +74 -0
- package/lib/esm/logic/sesV2/buildRawMimeMessage.js.map +1 -0
- package/lib/esm/logic/sesV2/sendEmail.d.ts +2 -0
- package/lib/esm/logic/sesV2/sendEmail.js +37 -0
- package/lib/esm/logic/sesV2/sendEmail.js.map +1 -0
- package/lib/esm/logic/sns/publishMessage.d.ts +7 -2
- package/lib/esm/logic/sns/publishMessage.js +11 -17
- package/lib/esm/logic/sns/publishMessage.js.map +1 -1
- package/lib/esm/logic/sqs/sendMessages.d.ts +7 -2
- package/lib/esm/logic/sqs/sendMessages.js +9 -8
- package/lib/esm/logic/sqs/sendMessages.js.map +1 -1
- package/lib/esm/runtimeConfig/LambdaRuntimeConfig.d.ts +9 -0
- package/lib/esm/runtimeConfig/LambdaRuntimeConfig.js +2 -0
- package/lib/esm/runtimeConfig/LambdaRuntimeConfig.js.map +1 -0
- package/lib/esm/runtimeConfig/index.d.ts +2 -0
- package/lib/esm/runtimeConfig/index.js +3 -0
- package/lib/esm/runtimeConfig/index.js.map +1 -0
- package/lib/esm/runtimeConfig/resolveParameterKey.d.ts +7 -0
- package/lib/esm/runtimeConfig/resolveParameterKey.js +12 -0
- package/lib/esm/runtimeConfig/resolveParameterKey.js.map +1 -0
- package/lib/extension-layer/qpq-log-extension/index.js +32 -32
- package/package.json +28 -25
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/neptune.d.ts +0 -26
- package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/neptune.js.map +0 -1
- package/lib/commonjs/lambdaHandlers/helpers/logger.d.ts +0 -8
- package/lib/commonjs/lambdaHandlers/helpers/logger.js.map +0 -1
- package/lib/commonjs/lambdaHandlers/types/QpqWarmLambdaEvent.d.ts +0 -5
- package/lib/commonjs/lambdaHandlers/types/QpqWarmLambdaEvent.js.map +0 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.d.ts +0 -1
- package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js.map +0 -1
- package/lib/commonjs/lambdas/lambda-utils/QpqWarmLambdaEvent.d.ts +0 -5
- package/lib/commonjs/lambdas/lambda-utils/QpqWarmLambdaEvent.js.map +0 -1
- package/lib/commonjs/lambdas/lambdaSQSEvent.d.ts +0 -2
- package/lib/commonjs/lambdas/lambdaSQSEvent.js +0 -16
- package/lib/commonjs/lambdas/lambdaSQSEvent.js.map +0 -1
- package/lib/commonjs/logic/acm/findMatchingCertificates.d.ts +0 -1
- package/lib/commonjs/logic/acm/findMatchingCertificates.js +0 -53
- package/lib/commonjs/logic/acm/findMatchingCertificates.js.map +0 -1
- package/lib/commonjs/logic/acm/getDomainValidationOptions.d.ts +0 -2
- package/lib/commonjs/logic/acm/getDomainValidationOptions.js +0 -41
- package/lib/commonjs/logic/acm/getDomainValidationOptions.js.map +0 -1
- package/lib/commonjs/logic/apiGateway/websocketSendMessage.d.ts +0 -1
- package/lib/commonjs/logic/apiGateway/websocketSendMessage.js.map +0 -1
- package/lib/commonjs/logic/cognito/getUser.d.ts +0 -10
- package/lib/commonjs/logic/cognito/getUser.js +0 -39
- package/lib/commonjs/logic/cognito/getUser.js.map +0 -1
- package/lib/commonjs/logic/cognito/respondToAuthChallengeChallenge.d.ts +0 -3
- package/lib/commonjs/logic/cognito/respondToAuthChallengeChallenge.js.map +0 -1
- package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.d.ts +0 -5
- package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.js +0 -48
- package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.js.map +0 -1
- package/lib/commonjs/logic/cognito/verifyJwt.d.ts +0 -1
- package/lib/commonjs/logic/cognito/verifyJwt.js.map +0 -1
- package/lib/commonjs/logic/dynamo/convertObjectToDynamoMap.d.ts +0 -1
- package/lib/commonjs/logic/dynamo/convertObjectToDynamoMap.js +0 -67
- package/lib/commonjs/logic/dynamo/convertObjectToDynamoMap.js.map +0 -1
- package/lib/commonjs/logic/dynamo/getLogByCorrelation.d.ts +0 -2
- package/lib/commonjs/logic/dynamo/getLogByCorrelation.js +0 -55
- package/lib/commonjs/logic/dynamo/getLogByCorrelation.js.map +0 -1
- package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.d.ts +0 -2
- package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.js +0 -65
- package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.js.map +0 -1
- package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.d.ts +0 -2
- package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.js +0 -68
- package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.js.map +0 -1
- package/lib/commonjs/logic/dynamo/logs/index.d.ts +0 -1
- package/lib/commonjs/logic/dynamo/logs/index.js.map +0 -1
- package/lib/commonjs/logic/dynamo/logs/utils/index.js.map +0 -1
- package/lib/commonjs/logic/dynamo/logs/utils/lastEvaluatedKeyToString.d.ts +0 -1
- package/lib/commonjs/logic/dynamo/logs/utils/lastEvaluatedKeyToString.js.map +0 -1
- package/lib/commonjs/logic/dynamo/logs/utils/stringToLastEvaluatedKey.d.ts +0 -2
- package/lib/commonjs/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js +0 -7
- package/lib/commonjs/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js.map +0 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +0 -10
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +0 -200
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js.map +0 -1
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +0 -11
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +0 -144
- package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js.map +0 -1
- package/lib/commonjs/logic/dynamo/utils/qpqPagedDataToItems.d.ts +0 -4
- package/lib/commonjs/logic/dynamo/utils/qpqPagedDataToItems.js +0 -10
- package/lib/commonjs/logic/dynamo/utils/qpqPagedDataToItems.js.map +0 -1
- package/lib/commonjs/runtimeConfig/QPQAWSResourceMap.d.ts +0 -4
- package/lib/commonjs/runtimeConfig/QPQAWSResourceMap.js.map +0 -1
- package/lib/commonjs/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.d.ts +0 -4
- package/lib/commonjs/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js +0 -20
- package/lib/commonjs/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js.map +0 -1
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/neptune.d.ts +0 -26
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/neptune.js +0 -2
- package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/neptune.js.map +0 -1
- package/lib/esm/lambdaHandlers/helpers/logger.d.ts +0 -8
- package/lib/esm/lambdaHandlers/helpers/logger.js.map +0 -1
- package/lib/esm/lambdaHandlers/types/QpqWarmLambdaEvent.d.ts +0 -5
- package/lib/esm/lambdaHandlers/types/QpqWarmLambdaEvent.js +0 -2
- package/lib/esm/lambdaHandlers/types/QpqWarmLambdaEvent.js.map +0 -1
- package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.d.ts +0 -1
- package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js +0 -4
- package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js.map +0 -1
- package/lib/esm/lambdas/lambda-utils/QpqWarmLambdaEvent.d.ts +0 -5
- package/lib/esm/lambdas/lambda-utils/QpqWarmLambdaEvent.js +0 -2
- package/lib/esm/lambdas/lambda-utils/QpqWarmLambdaEvent.js.map +0 -1
- package/lib/esm/lambdas/lambdaSQSEvent.d.ts +0 -2
- package/lib/esm/lambdas/lambdaSQSEvent.js +0 -13
- package/lib/esm/lambdas/lambdaSQSEvent.js.map +0 -1
- package/lib/esm/logic/acm/findMatchingCertificates.d.ts +0 -1
- package/lib/esm/logic/acm/findMatchingCertificates.js +0 -39
- package/lib/esm/logic/acm/findMatchingCertificates.js.map +0 -1
- package/lib/esm/logic/acm/getDomainValidationOptions.d.ts +0 -2
- package/lib/esm/logic/acm/getDomainValidationOptions.js +0 -27
- package/lib/esm/logic/acm/getDomainValidationOptions.js.map +0 -1
- package/lib/esm/logic/apiGateway/websocketSendMessage.d.ts +0 -1
- package/lib/esm/logic/apiGateway/websocketSendMessage.js.map +0 -1
- package/lib/esm/logic/cognito/getUser.d.ts +0 -10
- package/lib/esm/logic/cognito/getUser.js +0 -26
- package/lib/esm/logic/cognito/getUser.js.map +0 -1
- package/lib/esm/logic/cognito/respondToAuthChallengeChallenge.d.ts +0 -3
- package/lib/esm/logic/cognito/respondToAuthChallengeChallenge.js.map +0 -1
- package/lib/esm/logic/cognito/utils/transformCognitoResponse.d.ts +0 -5
- package/lib/esm/logic/cognito/utils/transformCognitoResponse.js +0 -42
- package/lib/esm/logic/cognito/utils/transformCognitoResponse.js.map +0 -1
- package/lib/esm/logic/cognito/verifyJwt.d.ts +0 -1
- package/lib/esm/logic/cognito/verifyJwt.js +0 -7
- package/lib/esm/logic/cognito/verifyJwt.js.map +0 -1
- package/lib/esm/logic/dynamo/convertObjectToDynamoMap.d.ts +0 -1
- package/lib/esm/logic/dynamo/convertObjectToDynamoMap.js +0 -64
- package/lib/esm/logic/dynamo/convertObjectToDynamoMap.js.map +0 -1
- package/lib/esm/logic/dynamo/getLogByCorrelation.d.ts +0 -2
- package/lib/esm/logic/dynamo/getLogByCorrelation.js +0 -40
- package/lib/esm/logic/dynamo/getLogByCorrelation.js.map +0 -1
- package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.d.ts +0 -2
- package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.js +0 -50
- package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.js.map +0 -1
- package/lib/esm/logic/dynamo/getPagedItemsOverRange.d.ts +0 -2
- package/lib/esm/logic/dynamo/getPagedItemsOverRange.js +0 -53
- package/lib/esm/logic/dynamo/getPagedItemsOverRange.js.map +0 -1
- package/lib/esm/logic/dynamo/logs/index.d.ts +0 -1
- package/lib/esm/logic/dynamo/logs/index.js +0 -2
- package/lib/esm/logic/dynamo/logs/index.js.map +0 -1
- package/lib/esm/logic/dynamo/logs/utils/index.js +0 -3
- package/lib/esm/logic/dynamo/logs/utils/index.js.map +0 -1
- package/lib/esm/logic/dynamo/logs/utils/lastEvaluatedKeyToString.d.ts +0 -1
- package/lib/esm/logic/dynamo/logs/utils/lastEvaluatedKeyToString.js.map +0 -1
- package/lib/esm/logic/dynamo/logs/utils/stringToLastEvaluatedKey.d.ts +0 -2
- package/lib/esm/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js +0 -4
- package/lib/esm/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js.map +0 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +0 -10
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +0 -186
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js.map +0 -1
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +0 -11
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +0 -138
- package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js.map +0 -1
- package/lib/esm/logic/dynamo/utils/qpqPagedDataToItems.d.ts +0 -4
- package/lib/esm/logic/dynamo/utils/qpqPagedDataToItems.js +0 -6
- package/lib/esm/logic/dynamo/utils/qpqPagedDataToItems.js.map +0 -1
- package/lib/esm/runtimeConfig/QPQAWSResourceMap.d.ts +0 -4
- package/lib/esm/runtimeConfig/QPQAWSResourceMap.js +0 -2
- package/lib/esm/runtimeConfig/QPQAWSResourceMap.js.map +0 -1
- package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.d.ts +0 -4
- package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js +0 -13
- package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildDynamoUpdateExpression.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.ts"],"names":[],"mappings":";;;AAAA,qDAAoG;AAEpG,+CAA4C;AAC5C,iDAA8C;AAE9C,MAAM,iBAAiB,GAAG,CAAC,aAA+B,EAAU,EAAE;IACpE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QAClC,OAAO,IAAA,yBAAW,EAAC,aAAa,CAAC,CAAC;IACpC,CAAC;IAED,MAAM,KAAK,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QAC1C,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,OAAO,IAAI,IAAA,yBAAW,EAAC,OAAO,CAAC,EAAE,CAAC;QACpC,CAAC;QAED,yEAAyE;QACzE,0EAA0E;QAC1E,6DAA6D;QAC7D,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC;YAC7E,OAAO,IAAI,OAAO,GAAG,CAAC;QACxB,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,MAAuB,EAAU,EAAE;IACvD,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC7D,CAAC;IAED,OAAO,GAAG,iBAAiB,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,IAAA,2BAAY,EAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACtF,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,MAAuB,EAAU,EAAE;IAC1D,OAAO,iBAAiB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,MAAuB,EAAU,EAAE;IACvD,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC7D,CAAC;IAED,OAAO,GAAG,iBAAiB,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,IAAA,2BAAY,EAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACpF,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,MAAuB,EAAU,EAAE;IAC1D,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QACxD,OAAO,GAAG,iBAAiB,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,IAAA,2BAAY,EAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;IACpF,CAAC;IAED,OAAO,iBAAiB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,MAAuB,EAAU,EAAE;IAClE,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IAED,MAAM,QAAQ,GAAG,iBAAiB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACzD,OAAO,GAAG,QAAQ,oBAAoB,QAAQ,KAAK,IAAA,2BAAY,EAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;AACnF,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,MAAuB,EAAU,EAAE;IAC7D,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,CAAC;IACD,IAAI,MAAM,CAAC,YAAY,KAAK,SAAS,IAAI,MAAM,CAAC,YAAY,KAAK,IAAI,EAAE,CAAC;QACtE,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,QAAQ,GAAG,iBAAiB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACzD,OAAO,GAAG,QAAQ,oBAAoB,QAAQ,KAAK,IAAA,2BAAY,EAAC,MAAM,CAAC,YAAY,CAAC,OAAO,IAAA,2BAAY,EAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AAC1H,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAAC,MAAuB,EAAU,EAAE;IACpE,QAAQ,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,KAAK,qCAAmB,CAAC,GAAG;YAC1B,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;QAC9B,KAAK,qCAAmB,CAAC,MAAM;YAC7B,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,KAAK,qCAAmB,CAAC,GAAG;YAC1B,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;QAC9B,KAAK,qCAAmB,CAAC,MAAM;YAC7B,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,KAAK,qCAAmB,CAAC,cAAc;YACrC,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;QACzC,KAAK,qCAAmB,CAAC,SAAS;YAChC,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACpC;YACE,MAAM,IAAI,KAAK,CAAC,+BAA+B,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;AACH,CAAC,CAAC;AAEF,0DAA0D;AAC1D,MAAM,cAAc,GAAG,CAAC,qCAAmB,CAAC,GAAG,EAAE,qCAAmB,CAAC,cAAc,EAAE,qCAAmB,CAAC,SAAS,CAAC,CAAC;AAEpH,MAAM,WAAW,GAAG,CAAC,MAA2C,EAAE,WAAkC,EAAE,SAAoB,EAAU,EAAE;IACpI,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAElF,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,GAAG,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAC9F,CAAC,CAAC;AAEF;;;;;;GAMG;AACI,MAAM,2BAA2B,GAAG,CAAC,OAAkB,EAAU,EAAE;IACxE,MAAM,OAAO,GAAG;QACd,WAAW,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC;QAC3C,WAAW,CAAC,QAAQ,EAAE,CAAC,qCAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAC5D,WAAW,CAAC,KAAK,EAAE,CAAC,qCAAmB,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;QACtD,WAAW,CAAC,QAAQ,EAAE,CAAC,qCAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;KAC7D,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAEvC,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC,CAAC;AATW,QAAA,2BAA2B,+BAStC","sourcesContent":["import { KvsAttributePath, KvsUpdate, KvsUpdateAction, KvsUpdateActionType } from 'quidproquo-core';\n\nimport { getItemName } from './getItemName';\nimport { getValueName } from './getValueName';\n\nconst getNestedItemName = (attributePath: KvsAttributePath): string => {\n if (!Array.isArray(attributePath)) {\n return getItemName(attributePath);\n }\n\n const parts = attributePath.map((segment) => {\n if (typeof segment === 'string') {\n return `.${getItemName(segment)}`;\n }\n\n // Only non-negative integers may be interpolated raw: anything else that\n // sneaks past the types (via JSON payloads) would be stringified straight\n // into the update expression, which is expression injection.\n if (typeof segment === 'number' && Number.isInteger(segment) && segment >= 0) {\n return `[${segment}]`;\n }\n\n throw new Error(`Invalid attribute path segment: ${JSON.stringify(segment)}`);\n });\n\n return parts.join('').replace(/^\\./, '');\n};\n\nconst buildSetPart = (update: KvsUpdateAction): string => {\n if (update.value === undefined || update.value === null) {\n throw new Error(\"Value must be provided for 'SET' action\");\n }\n\n return `${getNestedItemName(update.attributePath)} = ${getValueName(update.value)}`;\n};\n\nconst buildRemovePart = (update: KvsUpdateAction): string => {\n return getNestedItemName(update.attributePath);\n};\n\nconst buildAddPart = (update: KvsUpdateAction): string => {\n if (update.value === undefined || update.value === null) {\n throw new Error(\"Value must be provided for 'ADD' action\");\n }\n\n return `${getNestedItemName(update.attributePath)} ${getValueName(update.value)}`;\n};\n\nconst buildDeletePart = (update: KvsUpdateAction): string => {\n if (update.value !== undefined && update.value !== null) {\n return `${getNestedItemName(update.attributePath)} ${getValueName(update.value)}`;\n }\n\n return getNestedItemName(update.attributePath);\n};\n\nconst buildSetIfNotExistsPart = (update: KvsUpdateAction): string => {\n if (update.value === undefined || update.value === null) {\n throw new Error(\"Value must be provided for 'SetIfNotExists' action\");\n }\n\n const attrPath = getNestedItemName(update.attributePath);\n return `${attrPath} = if_not_exists(${attrPath}, ${getValueName(update.value)})`;\n};\n\nconst buildIncrementPart = (update: KvsUpdateAction): string => {\n if (update.value === undefined || update.value === null) {\n throw new Error(\"Increment value must be provided for 'Increment' action\");\n }\n if (update.defaultValue === undefined || update.defaultValue === null) {\n throw new Error(\"Default value must be provided for 'Increment' action\");\n }\n\n const attrPath = getNestedItemName(update.attributePath);\n return `${attrPath} = if_not_exists(${attrPath}, ${getValueName(update.defaultValue)}) + ${getValueName(update.value)}`;\n};\n\nconst buildUpdateExpressionPart = (update: KvsUpdateAction): string => {\n switch (update.action) {\n case KvsUpdateActionType.Set:\n return buildSetPart(update);\n case KvsUpdateActionType.Remove:\n return buildRemovePart(update);\n case KvsUpdateActionType.Add:\n return buildAddPart(update);\n case KvsUpdateActionType.Delete:\n return buildDeletePart(update);\n case KvsUpdateActionType.SetIfNotExists:\n return buildSetIfNotExistsPart(update);\n case KvsUpdateActionType.Increment:\n return buildIncrementPart(update);\n default:\n throw new Error(`Invalid update action type: ${update.action}`);\n }\n};\n\n// SetIfNotExists and Increment render as SET clauses too.\nconst setActionTypes = [KvsUpdateActionType.Set, KvsUpdateActionType.SetIfNotExists, KvsUpdateActionType.Increment];\n\nconst buildClause = (clause: 'SET' | 'REMOVE' | 'ADD' | 'DELETE', actionTypes: KvsUpdateActionType[], kvsUpdate: KvsUpdate): string => {\n const actions = kvsUpdate.filter((update) => actionTypes.includes(update.action));\n\n if (actions.length === 0) {\n return '';\n }\n\n return `${clause} ${actions.map((update) => buildUpdateExpressionPart(update)).join(', ')}`;\n};\n\n/**\n * Render a kvs update as a DynamoDB UpdateExpression, grouping actions into\n * SET / REMOVE / ADD / DELETE clauses. Attribute names and values are replaced\n * with hashed placeholders; pair the result with\n * buildUpdateExpressionAttributeNames / buildUpdateExpressionAttributeValues\n * over the same updates.\n */\nexport const buildDynamoUpdateExpression = (updates: KvsUpdate): string => {\n const clauses = [\n buildClause('SET', setActionTypes, updates),\n buildClause('REMOVE', [KvsUpdateActionType.Remove], updates),\n buildClause('ADD', [KvsUpdateActionType.Add], updates),\n buildClause('DELETE', [KvsUpdateActionType.Delete], updates),\n ].filter((expression) => !!expression);\n\n return clauses.join(' ');\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KvsQueryOperation } from 'quidproquo-core';
|
|
2
|
+
/**
|
|
3
|
+
* Collect the #placeholder -> attribute-name map for every key referenced by
|
|
4
|
+
* the given query expressions. Returns undefined (not null) when empty so it
|
|
5
|
+
* can feed the optional ExpressionAttributeNames SDK field directly.
|
|
6
|
+
*/
|
|
7
|
+
export declare const buildExpressionAttributeNames: (queries: (KvsQueryOperation | undefined)[]) => Record<string, string> | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildExpressionAttributeNames = void 0;
|
|
4
|
+
const flattenKvsQueryConditions_1 = require("./flattenKvsQueryConditions");
|
|
5
|
+
const getItemName_1 = require("./getItemName");
|
|
6
|
+
/**
|
|
7
|
+
* Collect the #placeholder -> attribute-name map for every key referenced by
|
|
8
|
+
* the given query expressions. Returns undefined (not null) when empty so it
|
|
9
|
+
* can feed the optional ExpressionAttributeNames SDK field directly.
|
|
10
|
+
*/
|
|
11
|
+
const buildExpressionAttributeNames = (queries) => {
|
|
12
|
+
const names = {};
|
|
13
|
+
for (const query of queries) {
|
|
14
|
+
if (!query) {
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
for (const condition of (0, flattenKvsQueryConditions_1.flattenKvsQueryConditions)(query)) {
|
|
18
|
+
names[(0, getItemName_1.getItemName)(condition.key)] = condition.key;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return Object.keys(names).length > 0 ? names : undefined;
|
|
22
|
+
};
|
|
23
|
+
exports.buildExpressionAttributeNames = buildExpressionAttributeNames;
|
|
24
|
+
//# sourceMappingURL=buildExpressionAttributeNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildExpressionAttributeNames.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.ts"],"names":[],"mappings":";;;AAEA,2EAAwE;AACxE,+CAA4C;AAE5C;;;;GAIG;AACI,MAAM,6BAA6B,GAAG,CAAC,OAA0C,EAAsC,EAAE;IAC9H,MAAM,KAAK,GAA2B,EAAE,CAAC;IAEzC,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,SAAS;QACX,CAAC;QAED,KAAK,MAAM,SAAS,IAAI,IAAA,qDAAyB,EAAC,KAAK,CAAC,EAAE,CAAC;YACzD,KAAK,CAAC,IAAA,yBAAW,EAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC;QACpD,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3D,CAAC,CAAC;AAdW,QAAA,6BAA6B,iCAcxC","sourcesContent":["import { KvsQueryOperation } from 'quidproquo-core';\n\nimport { flattenKvsQueryConditions } from './flattenKvsQueryConditions';\nimport { getItemName } from './getItemName';\n\n/**\n * Collect the #placeholder -> attribute-name map for every key referenced by\n * the given query expressions. Returns undefined (not null) when empty so it\n * can feed the optional ExpressionAttributeNames SDK field directly.\n */\nexport const buildExpressionAttributeNames = (queries: (KvsQueryOperation | undefined)[]): Record<string, string> | undefined => {\n const names: Record<string, string> = {};\n\n for (const query of queries) {\n if (!query) {\n continue;\n }\n\n for (const condition of flattenKvsQueryConditions(query)) {\n names[getItemName(condition.key)] = condition.key;\n }\n }\n\n return Object.keys(names).length > 0 ? names : undefined;\n};\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KvsQueryOperation } from 'quidproquo-core';
|
|
2
|
+
import { AttributeValue } from '@aws-sdk/client-dynamodb';
|
|
3
|
+
/**
|
|
4
|
+
* Collect the :placeholder -> AttributeValue map for every value referenced by
|
|
5
|
+
* the given query expressions. Returns undefined (not null) when empty so it
|
|
6
|
+
* can feed the optional ExpressionAttributeValues SDK field directly.
|
|
7
|
+
*/
|
|
8
|
+
export declare const buildExpressionAttributeValues: (queries: (KvsQueryOperation | undefined)[]) => Record<string, AttributeValue> | undefined;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildExpressionAttributeValues = void 0;
|
|
4
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
+
const buildAttributeValue_1 = require("./buildAttributeValue");
|
|
6
|
+
const flattenKvsQueryConditions_1 = require("./flattenKvsQueryConditions");
|
|
7
|
+
const getValueName_1 = require("./getValueName");
|
|
8
|
+
// IN renders one placeholder per element, every other operation references
|
|
9
|
+
// its value(s) whole; the collected values must mirror that exactly or
|
|
10
|
+
// DynamoDB rejects the expression.
|
|
11
|
+
const getConditionValues = (condition) => {
|
|
12
|
+
if (condition.operation === quidproquo_core_1.KvsQueryOperationType.In && Array.isArray(condition.valueA)) {
|
|
13
|
+
return condition.valueA;
|
|
14
|
+
}
|
|
15
|
+
return [condition.valueA, condition.valueB];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Collect the :placeholder -> AttributeValue map for every value referenced by
|
|
19
|
+
* the given query expressions. Returns undefined (not null) when empty so it
|
|
20
|
+
* can feed the optional ExpressionAttributeValues SDK field directly.
|
|
21
|
+
*/
|
|
22
|
+
const buildExpressionAttributeValues = (queries) => {
|
|
23
|
+
const values = {};
|
|
24
|
+
for (const query of queries) {
|
|
25
|
+
if (!query) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
for (const condition of (0, flattenKvsQueryConditions_1.flattenKvsQueryConditions)(query)) {
|
|
29
|
+
for (const value of getConditionValues(condition)) {
|
|
30
|
+
if (value !== undefined) {
|
|
31
|
+
values[(0, getValueName_1.getValueName)(value)] = (0, buildAttributeValue_1.buildAttributeValue)(value);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return Object.keys(values).length > 0 ? values : undefined;
|
|
37
|
+
};
|
|
38
|
+
exports.buildExpressionAttributeValues = buildExpressionAttributeValues;
|
|
39
|
+
//# sourceMappingURL=buildExpressionAttributeValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildExpressionAttributeValues.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.ts"],"names":[],"mappings":";;;AAAA,qDAAmH;AAInH,+DAA4D;AAC5D,2EAAwE;AACxE,iDAA8C;AAE9C,2EAA2E;AAC3E,uEAAuE;AACvE,mCAAmC;AACnC,MAAM,kBAAkB,GAAG,CAAC,SAA4B,EAAuC,EAAE;IAC/F,IAAI,SAAS,CAAC,SAAS,KAAK,uCAAqB,CAAC,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;QACxF,OAAO,SAAS,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;AAC9C,CAAC,CAAC;AAEF;;;;GAIG;AACI,MAAM,8BAA8B,GAAG,CAAC,OAA0C,EAA8C,EAAE;IACvI,MAAM,MAAM,GAAmC,EAAE,CAAC;IAElD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,SAAS;QACX,CAAC;QAED,KAAK,MAAM,SAAS,IAAI,IAAA,qDAAyB,EAAC,KAAK,CAAC,EAAE,CAAC;YACzD,KAAK,MAAM,KAAK,IAAI,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;gBAClD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;oBACxB,MAAM,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,CAAC,GAAG,IAAA,yCAAmB,EAAC,KAAK,CAAC,CAAC;gBAC3D,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7D,CAAC,CAAC;AAlBW,QAAA,8BAA8B,kCAkBzC","sourcesContent":["import { KvsAdvancedDataType, KvsQueryCondition, KvsQueryOperation, KvsQueryOperationType } from 'quidproquo-core';\n\nimport { AttributeValue } from '@aws-sdk/client-dynamodb';\n\nimport { buildAttributeValue } from './buildAttributeValue';\nimport { flattenKvsQueryConditions } from './flattenKvsQueryConditions';\nimport { getValueName } from './getValueName';\n\n// IN renders one placeholder per element, every other operation references\n// its value(s) whole; the collected values must mirror that exactly or\n// DynamoDB rejects the expression.\nconst getConditionValues = (condition: KvsQueryCondition): (KvsAdvancedDataType | undefined)[] => {\n if (condition.operation === KvsQueryOperationType.In && Array.isArray(condition.valueA)) {\n return condition.valueA;\n }\n\n return [condition.valueA, condition.valueB];\n};\n\n/**\n * Collect the :placeholder -> AttributeValue map for every value referenced by\n * the given query expressions. Returns undefined (not null) when empty so it\n * can feed the optional ExpressionAttributeValues SDK field directly.\n */\nexport const buildExpressionAttributeValues = (queries: (KvsQueryOperation | undefined)[]): Record<string, AttributeValue> | undefined => {\n const values: Record<string, AttributeValue> = {};\n\n for (const query of queries) {\n if (!query) {\n continue;\n }\n\n for (const condition of flattenKvsQueryConditions(query)) {\n for (const value of getConditionValues(condition)) {\n if (value !== undefined) {\n values[getValueName(value)] = buildAttributeValue(value);\n }\n }\n }\n }\n\n return Object.keys(values).length > 0 ? values : undefined;\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KvsUpdate } from 'quidproquo-core';
|
|
2
|
+
/**
|
|
3
|
+
* Collect the #placeholder -> attribute-name map for every string segment of
|
|
4
|
+
* every update's attribute path (numeric segments are list indexes and are
|
|
5
|
+
* rendered inline, not as names). Does not modify the given updates.
|
|
6
|
+
*/
|
|
7
|
+
export declare const buildUpdateExpressionAttributeNames: (updates: KvsUpdate) => Record<string, string>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildUpdateExpressionAttributeNames = void 0;
|
|
4
|
+
const getItemName_1 = require("./getItemName");
|
|
5
|
+
/**
|
|
6
|
+
* Collect the #placeholder -> attribute-name map for every string segment of
|
|
7
|
+
* every update's attribute path (numeric segments are list indexes and are
|
|
8
|
+
* rendered inline, not as names). Does not modify the given updates.
|
|
9
|
+
*/
|
|
10
|
+
const buildUpdateExpressionAttributeNames = (updates) => {
|
|
11
|
+
const attributeNames = {};
|
|
12
|
+
for (const update of updates) {
|
|
13
|
+
const segments = Array.isArray(update.attributePath) ? update.attributePath : [update.attributePath];
|
|
14
|
+
for (const segment of segments) {
|
|
15
|
+
if (typeof segment === 'string') {
|
|
16
|
+
attributeNames[(0, getItemName_1.getItemName)(segment)] = segment;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return attributeNames;
|
|
21
|
+
};
|
|
22
|
+
exports.buildUpdateExpressionAttributeNames = buildUpdateExpressionAttributeNames;
|
|
23
|
+
//# sourceMappingURL=buildUpdateExpressionAttributeNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildUpdateExpressionAttributeNames.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.ts"],"names":[],"mappings":";;;AAEA,+CAA4C;AAE5C;;;;GAIG;AACI,MAAM,mCAAmC,GAAG,CAAC,OAAkB,EAA0B,EAAE;IAChG,MAAM,cAAc,GAA2B,EAAE,CAAC;IAElD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAErG,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAChC,cAAc,CAAC,IAAA,yBAAW,EAAC,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC;YACjD,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAdW,QAAA,mCAAmC,uCAc9C","sourcesContent":["import { KvsUpdate } from 'quidproquo-core';\n\nimport { getItemName } from './getItemName';\n\n/**\n * Collect the #placeholder -> attribute-name map for every string segment of\n * every update's attribute path (numeric segments are list indexes and are\n * rendered inline, not as names). Does not modify the given updates.\n */\nexport const buildUpdateExpressionAttributeNames = (updates: KvsUpdate): Record<string, string> => {\n const attributeNames: Record<string, string> = {};\n\n for (const update of updates) {\n const segments = Array.isArray(update.attributePath) ? update.attributePath : [update.attributePath];\n\n for (const segment of segments) {\n if (typeof segment === 'string') {\n attributeNames[getItemName(segment)] = segment;\n }\n }\n }\n\n return attributeNames;\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KvsUpdate } from 'quidproquo-core';
|
|
2
|
+
import { AttributeValue } from '@aws-sdk/client-dynamodb';
|
|
3
|
+
/**
|
|
4
|
+
* Collect the :placeholder -> AttributeValue map for every value (and
|
|
5
|
+
* Increment defaultValue) referenced by the given updates. Returns undefined
|
|
6
|
+
* (not null) when empty so it can feed the optional
|
|
7
|
+
* ExpressionAttributeValues SDK field directly.
|
|
8
|
+
*/
|
|
9
|
+
export declare const buildUpdateExpressionAttributeValues: (updates: KvsUpdate) => Record<string, AttributeValue> | undefined;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildUpdateExpressionAttributeValues = void 0;
|
|
4
|
+
const buildAttributeValue_1 = require("./buildAttributeValue");
|
|
5
|
+
const getValueName_1 = require("./getValueName");
|
|
6
|
+
/**
|
|
7
|
+
* Collect the :placeholder -> AttributeValue map for every value (and
|
|
8
|
+
* Increment defaultValue) referenced by the given updates. Returns undefined
|
|
9
|
+
* (not null) when empty so it can feed the optional
|
|
10
|
+
* ExpressionAttributeValues SDK field directly.
|
|
11
|
+
*/
|
|
12
|
+
const buildUpdateExpressionAttributeValues = (updates) => {
|
|
13
|
+
const attributeValues = {};
|
|
14
|
+
for (const update of updates) {
|
|
15
|
+
if (update.value !== undefined && update.value !== null) {
|
|
16
|
+
attributeValues[(0, getValueName_1.getValueName)(update.value)] = (0, buildAttributeValue_1.buildAttributeValue)(update.value);
|
|
17
|
+
}
|
|
18
|
+
if (update.defaultValue !== undefined && update.defaultValue !== null) {
|
|
19
|
+
attributeValues[(0, getValueName_1.getValueName)(update.defaultValue)] = (0, buildAttributeValue_1.buildAttributeValue)(update.defaultValue);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return Object.keys(attributeValues).length > 0 ? attributeValues : undefined;
|
|
23
|
+
};
|
|
24
|
+
exports.buildUpdateExpressionAttributeValues = buildUpdateExpressionAttributeValues;
|
|
25
|
+
//# sourceMappingURL=buildUpdateExpressionAttributeValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildUpdateExpressionAttributeValues.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.ts"],"names":[],"mappings":";;;AAIA,+DAA4D;AAC5D,iDAA8C;AAE9C;;;;;GAKG;AACI,MAAM,oCAAoC,GAAG,CAAC,OAAkB,EAA8C,EAAE;IACrH,MAAM,eAAe,GAAmC,EAAE,CAAC;IAE3D,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YACxD,eAAe,CAAC,IAAA,2BAAY,EAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,IAAA,yCAAmB,EAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAClF,CAAC;QAED,IAAI,MAAM,CAAC,YAAY,KAAK,SAAS,IAAI,MAAM,CAAC,YAAY,KAAK,IAAI,EAAE,CAAC;YACtE,eAAe,CAAC,IAAA,2BAAY,EAAC,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,IAAA,yCAAmB,EAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAChG,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/E,CAAC,CAAC;AAdW,QAAA,oCAAoC,wCAc/C","sourcesContent":["import { KvsUpdate } from 'quidproquo-core';\n\nimport { AttributeValue } from '@aws-sdk/client-dynamodb';\n\nimport { buildAttributeValue } from './buildAttributeValue';\nimport { getValueName } from './getValueName';\n\n/**\n * Collect the :placeholder -> AttributeValue map for every value (and\n * Increment defaultValue) referenced by the given updates. Returns undefined\n * (not null) when empty so it can feed the optional\n * ExpressionAttributeValues SDK field directly.\n */\nexport const buildUpdateExpressionAttributeValues = (updates: KvsUpdate): Record<string, AttributeValue> | undefined => {\n const attributeValues: Record<string, AttributeValue> = {};\n\n for (const update of updates) {\n if (update.value !== undefined && update.value !== null) {\n attributeValues[getValueName(update.value)] = buildAttributeValue(update.value);\n }\n\n if (update.defaultValue !== undefined && update.defaultValue !== null) {\n attributeValues[getValueName(update.defaultValue)] = buildAttributeValue(update.defaultValue);\n }\n }\n\n return Object.keys(attributeValues).length > 0 ? attributeValues : undefined;\n};\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.flattenKvsQueryConditions = void 0;
|
|
4
|
+
const isKvsLogicalOperator_1 = require("./isKvsLogicalOperator");
|
|
5
|
+
const isKvsQueryCondition_1 = require("./isKvsQueryCondition");
|
|
6
|
+
/** Flatten a query tree into its leaf conditions, in traversal order. */
|
|
7
|
+
const flattenKvsQueryConditions = (query) => {
|
|
8
|
+
if ((0, isKvsQueryCondition_1.isKvsQueryCondition)(query)) {
|
|
9
|
+
return [query];
|
|
10
|
+
}
|
|
11
|
+
if ((0, isKvsLogicalOperator_1.isKvsLogicalOperator)(query)) {
|
|
12
|
+
return query.conditions.flatMap(exports.flattenKvsQueryConditions);
|
|
13
|
+
}
|
|
14
|
+
return [];
|
|
15
|
+
};
|
|
16
|
+
exports.flattenKvsQueryConditions = flattenKvsQueryConditions;
|
|
17
|
+
//# sourceMappingURL=flattenKvsQueryConditions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flattenKvsQueryConditions.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.ts"],"names":[],"mappings":";;;AAEA,iEAA8D;AAC9D,+DAA4D;AAE5D,yEAAyE;AAClE,MAAM,yBAAyB,GAAG,CAAC,KAAwB,EAAuB,EAAE;IACzF,IAAI,IAAA,yCAAmB,EAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IACD,IAAI,IAAA,2CAAoB,EAAC,KAAK,CAAC,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,iCAAyB,CAAC,CAAC;IAC7D,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AARW,QAAA,yBAAyB,6BAQpC","sourcesContent":["import { KvsQueryCondition, KvsQueryOperation } from 'quidproquo-core';\n\nimport { isKvsLogicalOperator } from './isKvsLogicalOperator';\nimport { isKvsQueryCondition } from './isKvsQueryCondition';\n\n/** Flatten a query tree into its leaf conditions, in traversal order. */\nexport const flattenKvsQueryConditions = (query: KvsQueryOperation): KvsQueryCondition[] => {\n if (isKvsQueryCondition(query)) {\n return [query];\n }\n if (isKvsLogicalOperator(query)) {\n return query.conditions.flatMap(flattenKvsQueryConditions);\n }\n return [];\n};\n"]}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { KeyValueStoreQPQConfigSetting, KvsQueryOperation } from 'quidproquo-core';
|
|
2
|
-
|
|
1
|
+
import { KeyValueStoreQPQConfigSetting, KvsQueryOperation, Nullable } from 'quidproquo-core';
|
|
2
|
+
/**
|
|
3
|
+
* Pick the GSI that can serve the query, or null to query the primary table.
|
|
4
|
+
* Returns the GSI's partition key name, which is also its index name (the CDK
|
|
5
|
+
* construct names each GSI after its partition key).
|
|
6
|
+
*/
|
|
7
|
+
export declare const getDynamoTableIndexByConfigAndQuery: (setting: KeyValueStoreQPQConfigSetting, query: KvsQueryOperation) => Nullable<string>;
|
|
@@ -1,33 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDynamoTableIndexByConfigAndQuery = void 0;
|
|
4
|
-
const
|
|
4
|
+
const flattenKvsQueryConditions_1 = require("./flattenKvsQueryConditions");
|
|
5
|
+
/**
|
|
6
|
+
* Pick the GSI that can serve the query, or null to query the primary table.
|
|
7
|
+
* Returns the GSI's partition key name, which is also its index name (the CDK
|
|
8
|
+
* construct names each GSI after its partition key).
|
|
9
|
+
*/
|
|
5
10
|
const getDynamoTableIndexByConfigAndQuery = (setting, query) => {
|
|
6
11
|
var _a;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
else if ((0, buildDynamoQuery_1.isKvsLogicalOperator)(query)) {
|
|
13
|
-
return query.conditions.flatMap(extractKeysFromQuery);
|
|
14
|
-
}
|
|
15
|
-
return [];
|
|
16
|
-
};
|
|
17
|
-
const queriedKeys = extractKeysFromQuery(query);
|
|
18
|
-
// If the query includes the primary sort key, the primary table is a direct match —
|
|
19
|
-
// prefer it over any GSI so we never land on a GSI with a non-SK condition.
|
|
12
|
+
const queriedKeys = (0, flattenKvsQueryConditions_1.flattenKvsQueryConditions)(query).map((condition) => condition.key);
|
|
13
|
+
// If the query includes the primary sort key, the primary table is a direct
|
|
14
|
+
// match: prefer it over any GSI so we never land on a GSI with a non-SK
|
|
15
|
+
// condition.
|
|
20
16
|
const primarySortKey = (_a = setting.sortKeys[0]) === null || _a === void 0 ? void 0 : _a.key;
|
|
21
17
|
if (primarySortKey && queriedKeys.includes(primarySortKey)) {
|
|
22
|
-
return
|
|
18
|
+
return null;
|
|
23
19
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (queriedKeys.includes(index.partitionKey.key)) {
|
|
27
|
-
return index.partitionKey.key;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return undefined;
|
|
20
|
+
const matchingIndex = setting.indexes.find((index) => queriedKeys.includes(index.partitionKey.key));
|
|
21
|
+
return matchingIndex ? matchingIndex.partitionKey.key : null;
|
|
31
22
|
};
|
|
32
23
|
exports.getDynamoTableIndexByConfigAndQuery = getDynamoTableIndexByConfigAndQuery;
|
|
33
24
|
//# sourceMappingURL=getDynamoTableIndexByConfigAndQuery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDynamoTableIndexByConfigAndQuery.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"getDynamoTableIndexByConfigAndQuery.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.ts"],"names":[],"mappings":";;;AAEA,2EAAwE;AAExE;;;;GAIG;AACI,MAAM,mCAAmC,GAAG,CAAC,OAAsC,EAAE,KAAwB,EAAoB,EAAE;;IACxI,MAAM,WAAW,GAAG,IAAA,qDAAyB,EAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAEvF,4EAA4E;IAC5E,wEAAwE;IACxE,aAAa;IACb,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,0CAAE,GAAG,CAAC;IAChD,IAAI,cAAc,IAAI,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;QAC3D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAEpG,OAAO,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/D,CAAC,CAAC;AAdW,QAAA,mCAAmC,uCAc9C","sourcesContent":["import { KeyValueStoreQPQConfigSetting, KvsQueryOperation, Nullable } from 'quidproquo-core';\n\nimport { flattenKvsQueryConditions } from './flattenKvsQueryConditions';\n\n/**\n * Pick the GSI that can serve the query, or null to query the primary table.\n * Returns the GSI's partition key name, which is also its index name (the CDK\n * construct names each GSI after its partition key).\n */\nexport const getDynamoTableIndexByConfigAndQuery = (setting: KeyValueStoreQPQConfigSetting, query: KvsQueryOperation): Nullable<string> => {\n const queriedKeys = flattenKvsQueryConditions(query).map((condition) => condition.key);\n\n // If the query includes the primary sort key, the primary table is a direct\n // match: prefer it over any GSI so we never land on a GSI with a non-SK\n // condition.\n const primarySortKey = setting.sortKeys[0]?.key;\n if (primarySortKey && queriedKeys.includes(primarySortKey)) {\n return null;\n }\n\n const matchingIndex = setting.indexes.find((index) => queriedKeys.includes(index.partitionKey.key));\n\n return matchingIndex ? matchingIndex.partitionKey.key : null;\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deterministic hex hash used to derive DynamoDB expression placeholder names
|
|
3
|
+
* from user-supplied attribute names and values. md5 is deliberate: the hash
|
|
4
|
+
* only needs to be stable and collision-poor for placeholder identity within
|
|
5
|
+
* one expression, it is not a security boundary.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getHash: (name: string) => string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getHash = void 0;
|
|
7
|
+
const crypto_1 = __importDefault(require("crypto"));
|
|
8
|
+
/**
|
|
9
|
+
* Deterministic hex hash used to derive DynamoDB expression placeholder names
|
|
10
|
+
* from user-supplied attribute names and values. md5 is deliberate: the hash
|
|
11
|
+
* only needs to be stable and collision-poor for placeholder identity within
|
|
12
|
+
* one expression, it is not a security boundary.
|
|
13
|
+
*/
|
|
14
|
+
const getHash = (name) => {
|
|
15
|
+
return crypto_1.default.createHash('md5').update(name).digest('hex');
|
|
16
|
+
};
|
|
17
|
+
exports.getHash = getHash;
|
|
18
|
+
//# sourceMappingURL=getHash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHash.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/getHash.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAE5B;;;;;GAKG;AACI,MAAM,OAAO,GAAG,CAAC,IAAY,EAAU,EAAE;IAC9C,OAAO,gBAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC7D,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB","sourcesContent":["import crypto from 'crypto';\n\n/**\n * Deterministic hex hash used to derive DynamoDB expression placeholder names\n * from user-supplied attribute names and values. md5 is deliberate: the hash\n * only needs to be stable and collision-poor for placeholder identity within\n * one expression, it is not a security boundary.\n */\nexport const getHash = (name: string): string => {\n return crypto.createHash('md5').update(name).digest('hex');\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Placeholder (#hash) for an attribute name in a DynamoDB expression. The raw
|
|
3
|
+
* name is only ever sent via ExpressionAttributeNames, never spliced into the
|
|
4
|
+
* expression itself, so user-supplied names cannot inject expression syntax.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getItemName: (name: string) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getItemName = void 0;
|
|
4
|
+
const getHash_1 = require("./getHash");
|
|
5
|
+
/**
|
|
6
|
+
* Placeholder (#hash) for an attribute name in a DynamoDB expression. The raw
|
|
7
|
+
* name is only ever sent via ExpressionAttributeNames, never spliced into the
|
|
8
|
+
* expression itself, so user-supplied names cannot inject expression syntax.
|
|
9
|
+
*/
|
|
10
|
+
const getItemName = (name) => {
|
|
11
|
+
return `#${(0, getHash_1.getHash)(name)}`;
|
|
12
|
+
};
|
|
13
|
+
exports.getItemName = getItemName;
|
|
14
|
+
//# sourceMappingURL=getItemName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getItemName.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/getItemName.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC;;;;GAIG;AACI,MAAM,WAAW,GAAG,CAAC,IAAY,EAAU,EAAE;IAClD,OAAO,IAAI,IAAA,iBAAO,EAAC,IAAI,CAAC,EAAE,CAAC;AAC7B,CAAC,CAAC;AAFW,QAAA,WAAW,eAEtB","sourcesContent":["import { getHash } from './getHash';\n\n/**\n * Placeholder (#hash) for an attribute name in a DynamoDB expression. The raw\n * name is only ever sent via ExpressionAttributeNames, never spliced into the\n * expression itself, so user-supplied names cannot inject expression syntax.\n */\nexport const getItemName = (name: string): string => {\n return `#${getHash(name)}`;\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KvsAdvancedDataType } from 'quidproquo-core';
|
|
2
|
+
/**
|
|
3
|
+
* Placeholder (:hash) for a value in a DynamoDB expression. The hash is
|
|
4
|
+
* derived from the value's type and JSON form, so equal values share one
|
|
5
|
+
* placeholder and values equal only after coercion (1 vs '1') do not.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getValueName: (value: KvsAdvancedDataType) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getValueName = void 0;
|
|
4
|
+
const getHash_1 = require("./getHash");
|
|
5
|
+
/**
|
|
6
|
+
* Placeholder (:hash) for a value in a DynamoDB expression. The hash is
|
|
7
|
+
* derived from the value's type and JSON form, so equal values share one
|
|
8
|
+
* placeholder and values equal only after coercion (1 vs '1') do not.
|
|
9
|
+
*/
|
|
10
|
+
const getValueName = (value) => {
|
|
11
|
+
return `:${(0, getHash_1.getHash)(`${typeof value}-${JSON.stringify(value)}`)}`;
|
|
12
|
+
};
|
|
13
|
+
exports.getValueName = getValueName;
|
|
14
|
+
//# sourceMappingURL=getValueName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getValueName.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/getValueName.ts"],"names":[],"mappings":";;;AAEA,uCAAoC;AAEpC;;;;GAIG;AACI,MAAM,YAAY,GAAG,CAAC,KAA0B,EAAU,EAAE;IACjE,OAAO,IAAI,IAAA,iBAAO,EAAC,GAAG,OAAO,KAAK,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;AACnE,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB","sourcesContent":["import { KvsAdvancedDataType } from 'quidproquo-core';\n\nimport { getHash } from './getHash';\n\n/**\n * Placeholder (:hash) for a value in a DynamoDB expression. The hash is\n * derived from the value's type and JSON form, so equal values share one\n * placeholder and values equal only after coercion (1 vs '1') do not.\n */\nexport const getValueName = (value: KvsAdvancedDataType): string => {\n return `:${getHash(`${typeof value}-${JSON.stringify(value)}`)}`;\n};\n"]}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './buildAttributeValue';
|
|
2
|
+
export * from './buildDynamoQueryExpression';
|
|
3
|
+
export * from './buildDynamoUpdateExpression';
|
|
4
|
+
export * from './buildExpressionAttributeNames';
|
|
5
|
+
export * from './buildExpressionAttributeValues';
|
|
6
|
+
export * from './buildUpdateExpressionAttributeNames';
|
|
7
|
+
export * from './buildUpdateExpressionAttributeValues';
|
|
8
|
+
export * from './flattenKvsQueryConditions';
|
|
3
9
|
export * from './getDynamoTableIndexByConfigAndQuery';
|
|
10
|
+
export * from './getHash';
|
|
11
|
+
export * from './getItemName';
|
|
12
|
+
export * from './getValueName';
|
|
13
|
+
export * from './isKvsLogicalOperator';
|
|
14
|
+
export * from './isKvsQueryCondition';
|
|
@@ -14,7 +14,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./buildAttributeValue"), exports);
|
|
18
|
+
__exportStar(require("./buildDynamoQueryExpression"), exports);
|
|
19
|
+
__exportStar(require("./buildDynamoUpdateExpression"), exports);
|
|
20
|
+
__exportStar(require("./buildExpressionAttributeNames"), exports);
|
|
21
|
+
__exportStar(require("./buildExpressionAttributeValues"), exports);
|
|
22
|
+
__exportStar(require("./buildUpdateExpressionAttributeNames"), exports);
|
|
23
|
+
__exportStar(require("./buildUpdateExpressionAttributeValues"), exports);
|
|
24
|
+
__exportStar(require("./flattenKvsQueryConditions"), exports);
|
|
19
25
|
__exportStar(require("./getDynamoTableIndexByConfigAndQuery"), exports);
|
|
26
|
+
__exportStar(require("./getHash"), exports);
|
|
27
|
+
__exportStar(require("./getItemName"), exports);
|
|
28
|
+
__exportStar(require("./getValueName"), exports);
|
|
29
|
+
__exportStar(require("./isKvsLogicalOperator"), exports);
|
|
30
|
+
__exportStar(require("./isKvsQueryCondition"), exports);
|
|
20
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,mEAAiD;AACjD,wEAAsD;AACtD,yEAAuD;AACvD,8DAA4C;AAC5C,wEAAsD;AACtD,4CAA0B;AAC1B,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,wDAAsC","sourcesContent":["export * from './buildAttributeValue';\nexport * from './buildDynamoQueryExpression';\nexport * from './buildDynamoUpdateExpression';\nexport * from './buildExpressionAttributeNames';\nexport * from './buildExpressionAttributeValues';\nexport * from './buildUpdateExpressionAttributeNames';\nexport * from './buildUpdateExpressionAttributeValues';\nexport * from './flattenKvsQueryConditions';\nexport * from './getDynamoTableIndexByConfigAndQuery';\nexport * from './getHash';\nexport * from './getItemName';\nexport * from './getValueName';\nexport * from './isKvsLogicalOperator';\nexport * from './isKvsQueryCondition';\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isKvsLogicalOperator = void 0;
|
|
4
|
+
const isKvsLogicalOperator = (query) => {
|
|
5
|
+
return 'conditions' in query && 'operation' in query;
|
|
6
|
+
};
|
|
7
|
+
exports.isKvsLogicalOperator = isKvsLogicalOperator;
|
|
8
|
+
//# sourceMappingURL=isKvsLogicalOperator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isKvsLogicalOperator.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.ts"],"names":[],"mappings":";;;AAEO,MAAM,oBAAoB,GAAG,CAAC,KAAwB,EAA+B,EAAE;IAC5F,OAAO,YAAY,IAAI,KAAK,IAAI,WAAW,IAAI,KAAK,CAAC;AACvD,CAAC,CAAC;AAFW,QAAA,oBAAoB,wBAE/B","sourcesContent":["import { KvsLogicalOperator, KvsQueryOperation } from 'quidproquo-core';\n\nexport const isKvsLogicalOperator = (query: KvsQueryOperation): query is KvsLogicalOperator => {\n return 'conditions' in query && 'operation' in query;\n};\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isKvsQueryCondition = void 0;
|
|
4
|
+
const isKvsQueryCondition = (query) => {
|
|
5
|
+
return 'key' in query && 'operation' in query;
|
|
6
|
+
};
|
|
7
|
+
exports.isKvsQueryCondition = isKvsQueryCondition;
|
|
8
|
+
//# sourceMappingURL=isKvsQueryCondition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isKvsQueryCondition.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.ts"],"names":[],"mappings":";;;AAEO,MAAM,mBAAmB,GAAG,CAAC,KAAwB,EAA8B,EAAE;IAC1F,OAAO,KAAK,IAAI,KAAK,IAAI,WAAW,IAAI,KAAK,CAAC;AAChD,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B","sourcesContent":["import { KvsQueryCondition, KvsQueryOperation } from 'quidproquo-core';\n\nexport const isKvsQueryCondition = (query: KvsQueryOperation): query is KvsQueryCondition => {\n return 'key' in query && 'operation' in query;\n};\n"]}
|
|
@@ -13,13 +13,11 @@ exports.query = query;
|
|
|
13
13
|
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
15
|
const itemsToQpqPagedData_1 = require("./utils/itemsToQpqPagedData");
|
|
16
|
-
const
|
|
17
|
-
const
|
|
16
|
+
const stringToLastEvaluatedKey_1 = require("./utils/stringToLastEvaluatedKey");
|
|
17
|
+
const convertDynamoMapToObject_1 = require("./convertDynamoMapToObject");
|
|
18
18
|
const qpqDynamoOrm_1 = require("./qpqDynamoOrm");
|
|
19
19
|
function query(tableName, region, keyExpression, filterExpression, pageKey, indexName, limit, sortAscending) {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a;
|
|
22
|
-
// Instantiate DynamoDB client
|
|
23
21
|
const dynamoDBClient = (0, createAwsClient_1.createAwsClient)(client_dynamodb_1.DynamoDBClient, { region });
|
|
24
22
|
const params = {
|
|
25
23
|
TableName: tableName,
|
|
@@ -32,13 +30,11 @@ function query(tableName, region, keyExpression, filterExpression, pageKey, inde
|
|
|
32
30
|
ScanIndexForward: sortAscending,
|
|
33
31
|
};
|
|
34
32
|
if (pageKey) {
|
|
35
|
-
params.ExclusiveStartKey = (0,
|
|
33
|
+
params.ExclusiveStartKey = (0, stringToLastEvaluatedKey_1.stringToLastEvaluatedKey)(pageKey);
|
|
36
34
|
}
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
const data = yield dynamoDBClient.send(command);
|
|
41
|
-
return (0, itemsToQpqPagedData_1.itemsToQpqPagedData)((((_a = data.Items) === null || _a === void 0 ? void 0 : _a.map((i) => (0, convertObjectToDynamoMap_1.convertDynamoMapToObject)(i))) || []), data.LastEvaluatedKey);
|
|
35
|
+
const data = yield dynamoDBClient.send(new client_dynamodb_1.QueryCommand(params));
|
|
36
|
+
const items = (data.Items || []).map((item) => (0, convertDynamoMapToObject_1.convertDynamoMapToObject)(item));
|
|
37
|
+
return (0, itemsToQpqPagedData_1.itemsToQpqPagedData)(items, data.LastEvaluatedKey);
|
|
42
38
|
});
|
|
43
39
|
}
|
|
44
40
|
//# sourceMappingURL=query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/logic/dynamo/query.ts"],"names":[],"mappings":";;;;;;;;;;;AAUA,
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/logic/dynamo/query.ts"],"names":[],"mappings":";;;;;;;;;;;AAUA,sBAgCC;AAxCD,8DAA2F;AAE3F,wDAAqD;AACrD,qEAAkE;AAClE,+EAA4E;AAC5E,yEAAsE;AACtE,iDAA2H;AAE3H,SAAsB,KAAK,CACzB,SAAiB,EACjB,MAAc,EACd,aAAgC,EAChC,gBAAoC,EACpC,OAAgB,EAChB,SAAkB,EAClB,KAAc,EACd,aAAuB;;QAEvB,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,gCAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAEnE,MAAM,MAAM,GAAsB;YAChC,SAAS,EAAE,SAAS;YACpB,sBAAsB,EAAE,IAAA,yCAA0B,EAAC,aAAa,CAAC;YACjE,gBAAgB,EAAE,gBAAgB,IAAI,IAAA,yCAA0B,EAAC,gBAAgB,CAAC;YAClF,yBAAyB,EAAE,IAAA,6CAA8B,EAAC,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;YAC5F,wBAAwB,EAAE,IAAA,4CAA6B,EAAC,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;YAC1F,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,KAAK;YACZ,gBAAgB,EAAE,aAAa;SAChC,CAAC;QAEF,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,CAAC,iBAAiB,GAAG,IAAA,mDAAwB,EAAC,OAAO,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,IAAI,8BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;QAEjE,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,mDAAwB,EAAC,IAAI,CAAC,CAAW,CAAC;QAEzF,OAAO,IAAA,yCAAmB,EAAO,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACjE,CAAC;CAAA","sourcesContent":["import { KvsQueryOperation, QpqPagedData } from 'quidproquo-core';\n\nimport { DynamoDBClient, QueryCommand, QueryCommandInput } from '@aws-sdk/client-dynamodb';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { itemsToQpqPagedData } from './utils/itemsToQpqPagedData';\nimport { stringToLastEvaluatedKey } from './utils/stringToLastEvaluatedKey';\nimport { convertDynamoMapToObject } from './convertDynamoMapToObject';\nimport { buildDynamoQueryExpression, buildExpressionAttributeNames, buildExpressionAttributeValues } from './qpqDynamoOrm';\n\nexport async function query<Item>(\n tableName: string,\n region: string,\n keyExpression: KvsQueryOperation,\n filterExpression?: KvsQueryOperation,\n pageKey?: string,\n indexName?: string,\n limit?: number,\n sortAscending?: boolean,\n): Promise<QpqPagedData<Item>> {\n const dynamoDBClient = createAwsClient(DynamoDBClient, { region });\n\n const params: QueryCommandInput = {\n TableName: tableName,\n KeyConditionExpression: buildDynamoQueryExpression(keyExpression),\n FilterExpression: filterExpression && buildDynamoQueryExpression(filterExpression),\n ExpressionAttributeValues: buildExpressionAttributeValues([keyExpression, filterExpression]),\n ExpressionAttributeNames: buildExpressionAttributeNames([keyExpression, filterExpression]),\n IndexName: indexName,\n Limit: limit,\n ScanIndexForward: sortAscending,\n };\n\n if (pageKey) {\n params.ExclusiveStartKey = stringToLastEvaluatedKey(pageKey);\n }\n\n const data = await dynamoDBClient.send(new QueryCommand(params));\n\n const items = (data.Items || []).map((item) => convertDynamoMapToObject(item)) as Item[];\n\n return itemsToQpqPagedData<Item>(items, data.LastEvaluatedKey);\n}\n"]}
|
|
@@ -13,13 +13,11 @@ exports.scan = scan;
|
|
|
13
13
|
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
14
14
|
const createAwsClient_1 = require("../createAwsClient");
|
|
15
15
|
const itemsToQpqPagedData_1 = require("./utils/itemsToQpqPagedData");
|
|
16
|
-
const
|
|
17
|
-
const
|
|
16
|
+
const stringToLastEvaluatedKey_1 = require("./utils/stringToLastEvaluatedKey");
|
|
17
|
+
const convertDynamoMapToObject_1 = require("./convertDynamoMapToObject");
|
|
18
18
|
const qpqDynamoOrm_1 = require("./qpqDynamoOrm");
|
|
19
19
|
function scan(tableName, region, filterExpression, pageKey) {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a;
|
|
22
|
-
// Instantiate DynamoDB client
|
|
23
21
|
const dynamoDBClient = (0, createAwsClient_1.createAwsClient)(client_dynamodb_1.DynamoDBClient, { region });
|
|
24
22
|
const params = {
|
|
25
23
|
TableName: tableName,
|
|
@@ -28,13 +26,11 @@ function scan(tableName, region, filterExpression, pageKey) {
|
|
|
28
26
|
ExpressionAttributeNames: filterExpression && (0, qpqDynamoOrm_1.buildExpressionAttributeNames)([filterExpression]),
|
|
29
27
|
};
|
|
30
28
|
if (pageKey) {
|
|
31
|
-
params.ExclusiveStartKey = (0,
|
|
29
|
+
params.ExclusiveStartKey = (0, stringToLastEvaluatedKey_1.stringToLastEvaluatedKey)(pageKey);
|
|
32
30
|
}
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
const data = yield dynamoDBClient.send(command);
|
|
37
|
-
return (0, itemsToQpqPagedData_1.itemsToQpqPagedData)((((_a = data.Items) === null || _a === void 0 ? void 0 : _a.map((i) => (0, convertObjectToDynamoMap_1.convertDynamoMapToObject)(i))) || []), data.LastEvaluatedKey);
|
|
31
|
+
const data = yield dynamoDBClient.send(new client_dynamodb_1.ScanCommand(params));
|
|
32
|
+
const items = (data.Items || []).map((item) => (0, convertDynamoMapToObject_1.convertDynamoMapToObject)(item));
|
|
33
|
+
return (0, itemsToQpqPagedData_1.itemsToQpqPagedData)(items, data.LastEvaluatedKey);
|
|
38
34
|
});
|
|
39
35
|
}
|
|
40
36
|
//# sourceMappingURL=scan.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../../src/logic/dynamo/scan.ts"],"names":[],"mappings":";;;;;;;;;;;AAUA,
|
|
1
|
+
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../../src/logic/dynamo/scan.ts"],"names":[],"mappings":";;;;;;;;;;;AAUA,oBAwBC;AAhCD,8DAAyF;AAEzF,wDAAqD;AACrD,qEAAkE;AAClE,+EAA4E;AAC5E,yEAAsE;AACtE,iDAA2H;AAE3H,SAAsB,IAAI,CACxB,SAAiB,EACjB,MAAc,EACd,gBAAoC,EACpC,OAAgB;;QAEhB,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,gCAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAEnE,MAAM,MAAM,GAAqB;YAC/B,SAAS,EAAE,SAAS;YACpB,gBAAgB,EAAE,IAAA,yCAA0B,EAAC,gBAAgB,CAAC;YAC9D,yBAAyB,EAAE,gBAAgB,IAAI,IAAA,6CAA8B,EAAC,CAAC,gBAAgB,CAAC,CAAC;YACjG,wBAAwB,EAAE,gBAAgB,IAAI,IAAA,4CAA6B,EAAC,CAAC,gBAAgB,CAAC,CAAC;SAChG,CAAC;QAEF,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,CAAC,iBAAiB,GAAG,IAAA,mDAAwB,EAAC,OAAO,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,IAAI,6BAAW,CAAC,MAAM,CAAC,CAAC,CAAC;QAEhE,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,mDAAwB,EAAC,IAAI,CAAC,CAAW,CAAC;QAEzF,OAAO,IAAA,yCAAmB,EAAO,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACjE,CAAC;CAAA","sourcesContent":["import { KvsQueryOperation, QpqPagedData } from 'quidproquo-core';\n\nimport { DynamoDBClient, ScanCommand, ScanCommandInput } from '@aws-sdk/client-dynamodb';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { itemsToQpqPagedData } from './utils/itemsToQpqPagedData';\nimport { stringToLastEvaluatedKey } from './utils/stringToLastEvaluatedKey';\nimport { convertDynamoMapToObject } from './convertDynamoMapToObject';\nimport { buildDynamoQueryExpression, buildExpressionAttributeNames, buildExpressionAttributeValues } from './qpqDynamoOrm';\n\nexport async function scan<Item>(\n tableName: string,\n region: string,\n filterExpression?: KvsQueryOperation,\n pageKey?: string,\n): Promise<QpqPagedData<Item>> {\n const dynamoDBClient = createAwsClient(DynamoDBClient, { region });\n\n const params: ScanCommandInput = {\n TableName: tableName,\n FilterExpression: buildDynamoQueryExpression(filterExpression),\n ExpressionAttributeValues: filterExpression && buildExpressionAttributeValues([filterExpression]),\n ExpressionAttributeNames: filterExpression && buildExpressionAttributeNames([filterExpression]),\n };\n\n if (pageKey) {\n params.ExclusiveStartKey = stringToLastEvaluatedKey(pageKey);\n }\n\n const data = await dynamoDBClient.send(new ScanCommand(params));\n\n const items = (data.Items || []).map((item) => convertDynamoMapToObject(item)) as Item[];\n\n return itemsToQpqPagedData<Item>(items, data.LastEvaluatedKey);\n}\n"]}
|