quidproquo-actionprocessor-awslambda 0.1.11 → 0.1.13

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.
Files changed (1170) hide show
  1. package/lib/commonjs/awsLambdaUtils.d.ts +6 -4
  2. package/lib/commonjs/awsLambdaUtils.js +2 -2
  3. package/lib/commonjs/awsLambdaUtils.js.map +1 -1
  4. package/lib/commonjs/awsNamingUtils.d.ts +2 -2
  5. package/lib/commonjs/awsNamingUtils.js +60 -109
  6. package/lib/commonjs/awsNamingUtils.js.map +1 -1
  7. package/lib/commonjs/getActionProcessor/core/ai/getAiPromptActionProcessor.js +2 -2
  8. package/lib/commonjs/getActionProcessor/core/ai/getAiPromptActionProcessor.js.map +1 -1
  9. package/lib/commonjs/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js +6 -6
  10. package/lib/commonjs/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js.map +1 -1
  11. package/lib/commonjs/getActionProcessor/core/ai/logic/prepareAiPromptCall.d.ts +4 -3
  12. package/lib/commonjs/getActionProcessor/core/ai/logic/prepareAiPromptCall.js.map +1 -1
  13. package/lib/commonjs/getActionProcessor/core/ai/logic/toCacheableMessages.js +1 -1
  14. package/lib/commonjs/getActionProcessor/core/ai/logic/toCacheableMessages.js.map +1 -1
  15. package/lib/commonjs/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js +10 -8
  16. package/lib/commonjs/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js.map +1 -1
  17. package/lib/commonjs/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +2 -2
  18. package/lib/commonjs/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js.map +1 -1
  19. package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +2 -2
  20. package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js.map +1 -1
  21. package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +2 -2
  22. package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js.map +1 -1
  23. package/lib/commonjs/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.d.ts +2 -0
  24. package/lib/commonjs/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js +53 -0
  25. package/lib/commonjs/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js.map +1 -0
  26. package/lib/commonjs/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.d.ts +2 -0
  27. package/lib/commonjs/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js +45 -0
  28. package/lib/commonjs/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js.map +1 -0
  29. package/lib/commonjs/getActionProcessor/core/crypto/index.d.ts +2 -0
  30. package/lib/commonjs/{logic/cognito/verifyJwt.js → getActionProcessor/core/crypto/index.js} +7 -8
  31. package/lib/commonjs/getActionProcessor/core/crypto/index.js.map +1 -0
  32. package/lib/commonjs/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.d.ts +2 -0
  33. package/lib/commonjs/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js +11 -0
  34. package/lib/commonjs/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js.map +1 -0
  35. package/lib/commonjs/getActionProcessor/core/crypto/utils/index.d.ts +2 -0
  36. package/lib/commonjs/getActionProcessor/core/crypto/utils/index.js +19 -0
  37. package/lib/commonjs/getActionProcessor/core/crypto/utils/index.js.map +1 -0
  38. package/lib/commonjs/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.d.ts +2 -0
  39. package/lib/commonjs/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js +19 -0
  40. package/lib/commonjs/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js.map +1 -0
  41. package/lib/commonjs/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js +2 -2
  42. package/lib/commonjs/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
  43. package/lib/commonjs/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js +2 -2
  44. package/lib/commonjs/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
  45. package/lib/commonjs/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js +2 -2
  46. package/lib/commonjs/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
  47. package/lib/commonjs/getActionProcessor/core/event/dynamo/index.d.ts +1 -0
  48. package/lib/commonjs/{logic/dynamo/logs → getActionProcessor/core/event/dynamo}/index.js +1 -1
  49. package/lib/commonjs/getActionProcessor/core/event/dynamo/index.js.map +1 -0
  50. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventAutoRespondActionProcessor.d.ts +2 -0
  51. package/lib/commonjs/{lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js → getActionProcessor/core/event/dynamo/streamEvent/getEventAutoRespondActionProcessor.js} +13 -5
  52. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventAutoRespondActionProcessor.js.map +1 -0
  53. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventGetRecordsActionProcessor.d.ts +2 -0
  54. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventGetRecordsActionProcessor.js +88 -0
  55. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventGetRecordsActionProcessor.js.map +1 -0
  56. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventGetStorySessionActionProcessor.d.ts +2 -0
  57. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventGetStorySessionActionProcessor.js +27 -0
  58. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventGetStorySessionActionProcessor.js.map +1 -0
  59. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventMatchStoryActionProcessor.d.ts +2 -0
  60. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventMatchStoryActionProcessor.js +30 -0
  61. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventMatchStoryActionProcessor.js.map +1 -0
  62. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventTransformResponseResultActionProcessor.d.ts +2 -0
  63. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventTransformResponseResultActionProcessor.js +34 -0
  64. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/getEventTransformResponseResultActionProcessor.js.map +1 -0
  65. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/index.d.ts +2 -0
  66. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/index.js +22 -0
  67. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/index.js.map +1 -0
  68. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/types.d.ts +11 -0
  69. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/types.js +14 -0
  70. package/lib/commonjs/getActionProcessor/core/event/dynamo/streamEvent/types.js.map +1 -0
  71. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventMatchStoryActionProcessor.js.map +1 -1
  72. package/lib/commonjs/getActionProcessor/core/event/index.d.ts +1 -0
  73. package/lib/commonjs/getActionProcessor/core/event/index.js +1 -0
  74. package/lib/commonjs/getActionProcessor/core/event/index.js.map +1 -1
  75. package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +13 -10
  76. package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js.map +1 -1
  77. package/lib/commonjs/getActionProcessor/core/file/getFileDeleteActionProcessor.js +4 -8
  78. package/lib/commonjs/getActionProcessor/core/file/getFileDeleteActionProcessor.js.map +1 -1
  79. package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
  80. package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js.map +1 -1
  81. package/lib/commonjs/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js +2 -1
  82. package/lib/commonjs/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js.map +1 -1
  83. package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +2 -1
  84. package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js.map +1 -1
  85. package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -1
  86. package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js.map +1 -1
  87. package/lib/commonjs/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js +2 -1
  88. package/lib/commonjs/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js.map +1 -1
  89. package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -1
  90. package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js.map +1 -1
  91. package/lib/commonjs/getActionProcessor/core/file/utils/StorageDriveNotFoundError.d.ts +3 -0
  92. package/lib/commonjs/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js +14 -0
  93. package/lib/commonjs/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js.map +1 -0
  94. package/lib/commonjs/getActionProcessor/core/file/utils/index.d.ts +1 -0
  95. package/lib/commonjs/getActionProcessor/core/file/utils/index.js +1 -0
  96. package/lib/commonjs/getActionProcessor/core/file/utils/index.js.map +1 -1
  97. package/lib/commonjs/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.d.ts +5 -0
  98. package/lib/commonjs/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js +7 -1
  99. package/lib/commonjs/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js.map +1 -1
  100. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js +1 -1
  101. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js.map +1 -1
  102. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.d.ts +4 -0
  103. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/{neptune.js → AnyNeptuneResult.js} +1 -1
  104. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.js.map +1 -0
  105. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.d.ts +4 -0
  106. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js +3 -0
  107. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js.map +1 -0
  108. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.d.ts +4 -0
  109. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js +3 -0
  110. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js.map +1 -0
  111. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.d.ts +4 -0
  112. package/lib/commonjs/{lambdaHandlers/types/QpqWarmLambdaEvent.js → getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js} +1 -1
  113. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js.map +1 -0
  114. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.d.ts +5 -0
  115. package/lib/commonjs/{runtimeConfig/QPQAWSResourceMap.js → getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js} +1 -1
  116. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js.map +1 -0
  117. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.d.ts +4 -0
  118. package/lib/commonjs/{lambdas/lambda-utils/QpqWarmLambdaEvent.js → getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js} +1 -1
  119. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js.map +1 -0
  120. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.d.ts +7 -0
  121. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js +3 -0
  122. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js.map +1 -0
  123. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.d.ts +1 -0
  124. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js +3 -0
  125. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js.map +1 -0
  126. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/index.d.ts +8 -1
  127. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/index.js +8 -1
  128. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/index.js.map +1 -1
  129. package/lib/commonjs/getActionProcessor/core/index.d.ts +1 -0
  130. package/lib/commonjs/getActionProcessor/core/index.js +3 -1
  131. package/lib/commonjs/getActionProcessor/core/index.js.map +1 -1
  132. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +2 -1
  133. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js.map +1 -1
  134. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +2 -2
  135. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js.map +1 -1
  136. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanAllScopesActionProcessor.d.ts +2 -0
  137. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanAllScopesActionProcessor.js +58 -0
  138. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanAllScopesActionProcessor.js.map +1 -0
  139. package/lib/commonjs/getActionProcessor/core/keyValueStore/index.js +2 -1
  140. package/lib/commonjs/getActionProcessor/core/keyValueStore/index.js.map +1 -1
  141. package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +13 -12
  142. package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js.map +1 -1
  143. package/lib/commonjs/getActionProcessor/core/system/getDateNow.d.ts +1 -0
  144. package/lib/commonjs/getActionProcessor/core/system/getDateNow.js +8 -0
  145. package/lib/commonjs/getActionProcessor/core/system/getDateNow.js.map +1 -0
  146. package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.d.ts +0 -1
  147. package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +4 -5
  148. package/lib/commonjs/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js.map +1 -1
  149. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js.map +1 -1
  150. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js.map +1 -1
  151. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +1 -1
  152. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js.map +1 -1
  153. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +1 -1
  154. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js.map +1 -1
  155. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +4 -1
  156. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js.map +1 -1
  157. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +7 -3
  158. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js.map +1 -1
  159. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +1 -1
  160. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js.map +1 -1
  161. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +2 -2
  162. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js.map +1 -1
  163. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +1 -1
  164. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js.map +1 -1
  165. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +1 -1
  166. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js.map +1 -1
  167. package/lib/commonjs/getActionProcessor/index.js +1 -2
  168. package/lib/commonjs/getActionProcessor/index.js.map +1 -1
  169. package/lib/commonjs/getActionProcessor/webserver/index.d.ts +1 -1
  170. package/lib/commonjs/getActionProcessor/webserver/index.js.map +1 -1
  171. package/lib/commonjs/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js.map +1 -1
  172. package/lib/commonjs/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +2 -2
  173. package/lib/commonjs/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js.map +1 -1
  174. package/lib/commonjs/getLambdaEntries.d.ts +4 -0
  175. package/lib/commonjs/getLambdaEntries.js +7 -1
  176. package/lib/commonjs/getLambdaEntries.js.map +1 -1
  177. package/lib/commonjs/index.d.ts +1 -1
  178. package/lib/commonjs/index.js +4 -3
  179. package/lib/commonjs/index.js.map +1 -1
  180. package/lib/commonjs/lambdaExtensions/logExtensionPort.js +1 -1
  181. package/lib/commonjs/lambdaExtensions/logExtensionPort.js.map +1 -1
  182. package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
  183. package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +4 -3
  184. package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js.map +1 -1
  185. package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler.js +2 -4
  186. package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler.js.map +1 -1
  187. package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler_redirect.js +8 -4
  188. package/lib/commonjs/lambdaHandlers/getApiGatewayEventHandler_redirect.js.map +1 -1
  189. package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +2 -6
  190. package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js.map +1 -1
  191. package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +2 -6
  192. package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js.map +1 -1
  193. package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.d.ts +0 -19
  194. package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js +6 -9
  195. package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js.map +1 -1
  196. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js +2 -6
  197. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js.map +1 -1
  198. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +2 -6
  199. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js.map +1 -1
  200. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +2 -6
  201. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js.map +1 -1
  202. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +2 -6
  203. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js.map +1 -1
  204. package/lib/commonjs/lambdaHandlers/getDynamoStreamEvent_kvsStreamEvent.d.ts +3 -0
  205. package/lib/commonjs/lambdaHandlers/getDynamoStreamEvent_kvsStreamEvent.js +10 -0
  206. package/lib/commonjs/lambdaHandlers/getDynamoStreamEvent_kvsStreamEvent.js.map +1 -0
  207. package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +3 -7
  208. package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js.map +1 -1
  209. package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +2 -6
  210. package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_stackDeploy.js.map +1 -1
  211. package/lib/commonjs/lambdaHandlers/getS3Event_fileEvent.js +2 -6
  212. package/lib/commonjs/lambdaHandlers/getS3Event_fileEvent.js.map +1 -1
  213. package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.js +2 -6
  214. package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.js.map +1 -1
  215. package/lib/commonjs/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.d.ts +5 -0
  216. package/lib/commonjs/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js +5 -0
  217. package/lib/commonjs/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js.map +1 -1
  218. package/lib/commonjs/lambdaHandlers/helpers/getBlankStorySession.d.ts +6 -0
  219. package/lib/commonjs/lambdaHandlers/helpers/getBlankStorySession.js +13 -0
  220. package/lib/commonjs/lambdaHandlers/helpers/getBlankStorySession.js.map +1 -0
  221. package/lib/commonjs/lambdaHandlers/helpers/getLogger.d.ts +8 -0
  222. package/lib/commonjs/lambdaHandlers/helpers/{logger.js → getLogger.js} +22 -31
  223. package/lib/commonjs/lambdaHandlers/helpers/getLogger.js.map +1 -0
  224. package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +4 -0
  225. package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +17 -13
  226. package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js.map +1 -1
  227. package/lib/commonjs/lambdaHandlers/helpers/index.d.ts +3 -1
  228. package/lib/commonjs/lambdaHandlers/helpers/index.js +3 -1
  229. package/lib/commonjs/lambdaHandlers/helpers/index.js.map +1 -1
  230. package/lib/commonjs/lambdaHandlers/helpers/isSnsWarmerRecord.d.ts +6 -0
  231. package/lib/commonjs/lambdaHandlers/helpers/isSnsWarmerRecord.js +23 -0
  232. package/lib/commonjs/lambdaHandlers/helpers/isSnsWarmerRecord.js.map +1 -0
  233. package/lib/commonjs/lambdaHandlers/index.d.ts +1 -0
  234. package/lib/commonjs/lambdaHandlers/index.js +1 -0
  235. package/lib/commonjs/lambdaHandlers/index.js.map +1 -1
  236. package/lib/commonjs/lambdaHandlers/types/QpqFunctionExecutionEvent.d.ts +7 -0
  237. package/lib/commonjs/lambdaHandlers/types/QpqFunctionExecutionEvent.js +3 -0
  238. package/lib/commonjs/lambdaHandlers/types/QpqFunctionExecutionEvent.js.map +1 -0
  239. package/lib/commonjs/lambdaHandlers/types/index.d.ts +1 -1
  240. package/lib/commonjs/lambdaHandlers/types/index.js +1 -1
  241. package/lib/commonjs/lambdaHandlers/types/index.js.map +1 -1
  242. package/lib/commonjs/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
  243. package/lib/commonjs/lambdas/cloudFrontRequestEvent_viewerRequest.js +0 -1
  244. package/lib/commonjs/lambdas/cloudFrontRequestEvent_viewerRequest.js.map +1 -1
  245. package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoader.js.map +1 -1
  246. package/lib/commonjs/lambdas/dynamicModuleLoader/index.d.ts +0 -1
  247. package/lib/commonjs/lambdas/dynamicModuleLoader/index.js +0 -1
  248. package/lib/commonjs/lambdas/dynamicModuleLoader/index.js.map +1 -1
  249. package/lib/commonjs/lambdas/dynamoStreamEvent_kvsStreamEvent.d.ts +1 -0
  250. package/lib/commonjs/lambdas/dynamoStreamEvent_kvsStreamEvent.js +8 -0
  251. package/lib/commonjs/lambdas/dynamoStreamEvent_kvsStreamEvent.js.map +1 -0
  252. package/lib/commonjs/lambdas/index.d.ts +1 -0
  253. package/lib/commonjs/lambdas/index.js +20 -0
  254. package/lib/commonjs/lambdas/index.js.map +1 -1
  255. package/lib/commonjs/logic/apiGateway/sendMessageToWebSocketConnection.d.ts +2 -0
  256. package/lib/commonjs/logic/apiGateway/{websocketSendMessage.js → sendMessageToWebSocketConnection.js} +7 -7
  257. package/lib/commonjs/logic/apiGateway/sendMessageToWebSocketConnection.js.map +1 -0
  258. package/lib/commonjs/logic/cache/memoFunc.d.ts +5 -2
  259. package/lib/commonjs/logic/cache/memoFunc.js +3 -5
  260. package/lib/commonjs/logic/cache/memoFunc.js.map +1 -1
  261. package/lib/commonjs/logic/cache/memoFuncAsync.d.ts +5 -2
  262. package/lib/commonjs/logic/cache/memoFuncAsync.js +4 -3
  263. package/lib/commonjs/logic/cache/memoFuncAsync.js.map +1 -1
  264. package/lib/commonjs/logic/cloudFront/invalidateCache.d.ts +0 -1
  265. package/lib/commonjs/logic/cloudFront/invalidateCache.js +7 -10
  266. package/lib/commonjs/logic/cloudFront/invalidateCache.js.map +1 -1
  267. package/lib/commonjs/logic/cloudformation/getExportedValue.d.ts +4 -0
  268. package/lib/commonjs/logic/cloudformation/getExportedValue.js +4 -0
  269. package/lib/commonjs/logic/cloudformation/getExportedValue.js.map +1 -1
  270. package/lib/commonjs/logic/cognito/authenticateUser.d.ts +4 -0
  271. package/lib/commonjs/logic/cognito/authenticateUser.js +8 -3
  272. package/lib/commonjs/logic/cognito/authenticateUser.js.map +1 -1
  273. package/lib/commonjs/logic/cognito/cognitoAttributeMap.d.ts +1 -9
  274. package/lib/commonjs/logic/cognito/cognitoAttributeMap.js +2 -36
  275. package/lib/commonjs/logic/cognito/cognitoAttributeMap.js.map +1 -1
  276. package/lib/commonjs/logic/cognito/confirmForgotPassword.d.ts +4 -0
  277. package/lib/commonjs/logic/cognito/confirmForgotPassword.js +5 -3
  278. package/lib/commonjs/logic/cognito/confirmForgotPassword.js.map +1 -1
  279. package/lib/commonjs/logic/cognito/createUser.d.ts +4 -0
  280. package/lib/commonjs/logic/cognito/createUser.js +9 -6
  281. package/lib/commonjs/logic/cognito/createUser.js.map +1 -1
  282. package/lib/commonjs/logic/cognito/decodeAccessToken.d.ts +11 -0
  283. package/lib/commonjs/logic/cognito/decodeAccessToken.js +24 -5
  284. package/lib/commonjs/logic/cognito/decodeAccessToken.js.map +1 -1
  285. package/lib/commonjs/logic/cognito/decodeValidJwt.d.ts +8 -2
  286. package/lib/commonjs/logic/cognito/decodeValidJwt.js +15 -9
  287. package/lib/commonjs/logic/cognito/decodeValidJwt.js.map +1 -1
  288. package/lib/commonjs/logic/cognito/forgotPassword.js +2 -6
  289. package/lib/commonjs/logic/cognito/forgotPassword.js.map +1 -1
  290. package/lib/commonjs/logic/cognito/getCognitoJwksClient.d.ts +7 -0
  291. package/lib/commonjs/logic/cognito/getCognitoJwksClient.js +15 -0
  292. package/lib/commonjs/logic/cognito/getCognitoJwksClient.js.map +1 -0
  293. package/lib/commonjs/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.d.ts +8 -0
  294. package/lib/commonjs/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js +20 -0
  295. package/lib/commonjs/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js.map +1 -0
  296. package/lib/commonjs/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.d.ts +7 -0
  297. package/lib/commonjs/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js +22 -0
  298. package/lib/commonjs/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js.map +1 -0
  299. package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoStringMap.d.ts +6 -0
  300. package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoStringMap.js +17 -0
  301. package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoStringMap.js.map +1 -0
  302. package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoUserAttributes.d.ts +4 -0
  303. package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js +14 -0
  304. package/lib/commonjs/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js.map +1 -0
  305. package/lib/commonjs/logic/cognito/getUserAttributes.js +5 -7
  306. package/lib/commonjs/logic/cognito/getUserAttributes.js.map +1 -1
  307. package/lib/commonjs/logic/cognito/getUserAttributesBySub.js +19 -4
  308. package/lib/commonjs/logic/cognito/getUserAttributesBySub.js.map +1 -1
  309. package/lib/commonjs/logic/cognito/getUserPoolClientSecret.d.ts +8 -0
  310. package/lib/commonjs/logic/cognito/getUserPoolClientSecret.js +20 -5
  311. package/lib/commonjs/logic/cognito/getUserPoolClientSecret.js.map +1 -1
  312. package/lib/commonjs/logic/cognito/index.js +3 -0
  313. package/lib/commonjs/logic/cognito/index.js.map +1 -1
  314. package/lib/commonjs/logic/cognito/listPagedUsers.js +2 -6
  315. package/lib/commonjs/logic/cognito/listPagedUsers.js.map +1 -1
  316. package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.d.ts +5 -0
  317. package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.js +8 -7
  318. package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.js.map +1 -1
  319. package/lib/commonjs/logic/cognito/refreshToken.js +9 -8
  320. package/lib/commonjs/logic/cognito/refreshToken.js.map +1 -1
  321. package/lib/commonjs/logic/cognito/requestEmailVerificationCode.js +3 -8
  322. package/lib/commonjs/logic/cognito/requestEmailVerificationCode.js.map +1 -1
  323. package/lib/commonjs/logic/cognito/resolveUsernameByPreferredUsername.d.ts +5 -0
  324. package/lib/commonjs/logic/cognito/resolveUsernameByPreferredUsername.js +26 -3
  325. package/lib/commonjs/logic/cognito/resolveUsernameByPreferredUsername.js.map +1 -1
  326. package/lib/commonjs/logic/cognito/respondToAuthChallenge.d.ts +8 -0
  327. package/lib/commonjs/logic/cognito/{respondToAuthChallengeChallenge.js → respondToAuthChallenge.js} +13 -7
  328. package/lib/commonjs/logic/cognito/respondToAuthChallenge.js.map +1 -0
  329. package/lib/commonjs/logic/cognito/setUserAttributes.js +5 -5
  330. package/lib/commonjs/logic/cognito/setUserAttributes.js.map +1 -1
  331. package/lib/commonjs/logic/cognito/setUserPassword.js +2 -1
  332. package/lib/commonjs/logic/cognito/setUserPassword.js.map +1 -1
  333. package/lib/commonjs/logic/cognito/utils/CognitoUserAttribute.d.ts +5 -0
  334. package/lib/commonjs/logic/cognito/utils/CognitoUserAttribute.js +3 -0
  335. package/lib/commonjs/logic/cognito/utils/CognitoUserAttribute.js.map +1 -0
  336. package/lib/commonjs/logic/cognito/utils/buildCognitoUserFilter.d.ts +10 -0
  337. package/lib/commonjs/logic/cognito/utils/buildCognitoUserFilter.js +34 -0
  338. package/lib/commonjs/logic/cognito/utils/buildCognitoUserFilter.js.map +1 -0
  339. package/lib/commonjs/logic/cognito/utils/calculateSecretHash.d.ts +5 -0
  340. package/lib/commonjs/logic/cognito/utils/calculateSecretHash.js +6 -6
  341. package/lib/commonjs/logic/cognito/utils/calculateSecretHash.js.map +1 -1
  342. package/lib/commonjs/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.d.ts +8 -0
  343. package/lib/commonjs/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js +23 -0
  344. package/lib/commonjs/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js.map +1 -0
  345. package/lib/commonjs/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.d.ts +7 -0
  346. package/lib/commonjs/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js +22 -0
  347. package/lib/commonjs/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js.map +1 -0
  348. package/lib/commonjs/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.d.ts +9 -0
  349. package/lib/commonjs/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js +27 -0
  350. package/lib/commonjs/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js.map +1 -0
  351. package/lib/commonjs/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.d.ts +7 -0
  352. package/lib/commonjs/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js +14 -0
  353. package/lib/commonjs/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js.map +1 -0
  354. package/lib/commonjs/logic/cognito/utils/getValidCognitoUserAttributes.d.ts +7 -0
  355. package/lib/commonjs/logic/cognito/utils/getValidCognitoUserAttributes.js +10 -0
  356. package/lib/commonjs/logic/cognito/utils/getValidCognitoUserAttributes.js.map +1 -0
  357. package/lib/commonjs/logic/cognito/utils/index.d.ts +7 -1
  358. package/lib/commonjs/logic/cognito/utils/index.js +7 -1
  359. package/lib/commonjs/logic/cognito/utils/index.js.map +1 -1
  360. package/lib/commonjs/logic/cognito/utils/pageKeyToPaginationToken.d.ts +5 -0
  361. package/lib/commonjs/logic/cognito/utils/pageKeyToPaginationToken.js +5 -0
  362. package/lib/commonjs/logic/cognito/utils/pageKeyToPaginationToken.js.map +1 -1
  363. package/lib/commonjs/logic/cognito/utils/paginationTokenToPageKey.d.ts +5 -0
  364. package/lib/commonjs/logic/cognito/utils/paginationTokenToPageKey.js +5 -0
  365. package/lib/commonjs/logic/cognito/utils/paginationTokenToPageKey.js.map +1 -1
  366. package/lib/commonjs/logic/cognito/verifyUserEmail.d.ts +1 -0
  367. package/lib/commonjs/logic/cognito/verifyUserEmail.js +1 -0
  368. package/lib/commonjs/logic/cognito/verifyUserEmail.js.map +1 -1
  369. package/lib/commonjs/logic/createAwsClient.d.ts +6 -3
  370. package/lib/commonjs/logic/createAwsClient.js +7 -6
  371. package/lib/commonjs/logic/createAwsClient.js.map +1 -1
  372. package/lib/commonjs/logic/dynamo/convertDynamoMapToObject.d.ts +7 -0
  373. package/lib/commonjs/logic/dynamo/convertDynamoMapToObject.js +35 -0
  374. package/lib/commonjs/logic/dynamo/convertDynamoMapToObject.js.map +1 -0
  375. package/lib/commonjs/logic/dynamo/deleteItem.js +4 -10
  376. package/lib/commonjs/logic/dynamo/deleteItem.js.map +1 -1
  377. package/lib/commonjs/logic/dynamo/getAllItems.d.ts +2 -1
  378. package/lib/commonjs/logic/dynamo/getAllItems.js +5 -10
  379. package/lib/commonjs/logic/dynamo/getAllItems.js.map +1 -1
  380. package/lib/commonjs/logic/dynamo/getItem.d.ts +2 -2
  381. package/lib/commonjs/logic/dynamo/getItem.js +6 -18
  382. package/lib/commonjs/logic/dynamo/getItem.js.map +1 -1
  383. package/lib/commonjs/logic/dynamo/index.d.ts +2 -0
  384. package/lib/commonjs/logic/dynamo/index.js +2 -0
  385. package/lib/commonjs/logic/dynamo/index.js.map +1 -1
  386. package/lib/commonjs/logic/dynamo/putItem.d.ts +4 -4
  387. package/lib/commonjs/logic/dynamo/putItem.js +3 -20
  388. package/lib/commonjs/logic/dynamo/putItem.js.map +1 -1
  389. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildAttributeValue.d.ts +8 -0
  390. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js +40 -0
  391. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js.map +1 -0
  392. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.d.ts +9 -0
  393. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js +84 -0
  394. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js.map +1 -0
  395. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.d.ts +9 -0
  396. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js +107 -0
  397. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js.map +1 -0
  398. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.d.ts +7 -0
  399. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js +24 -0
  400. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js.map +1 -0
  401. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.d.ts +8 -0
  402. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js +39 -0
  403. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js.map +1 -0
  404. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.d.ts +7 -0
  405. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js +23 -0
  406. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js.map +1 -0
  407. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.d.ts +9 -0
  408. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js +25 -0
  409. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js.map +1 -0
  410. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.d.ts +3 -0
  411. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js +17 -0
  412. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js.map +1 -0
  413. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.d.ts +7 -2
  414. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js +13 -22
  415. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js.map +1 -1
  416. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getHash.d.ts +7 -0
  417. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getHash.js +18 -0
  418. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getHash.js.map +1 -0
  419. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getItemName.d.ts +6 -0
  420. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getItemName.js +14 -0
  421. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getItemName.js.map +1 -0
  422. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getValueName.d.ts +7 -0
  423. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getValueName.js +14 -0
  424. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/getValueName.js.map +1 -0
  425. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/index.d.ts +13 -2
  426. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/index.js +13 -2
  427. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/index.js.map +1 -1
  428. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.d.ts +2 -0
  429. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js +8 -0
  430. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js.map +1 -0
  431. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.d.ts +2 -0
  432. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js +8 -0
  433. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js.map +1 -0
  434. package/lib/commonjs/logic/dynamo/query.js +6 -10
  435. package/lib/commonjs/logic/dynamo/query.js.map +1 -1
  436. package/lib/commonjs/logic/dynamo/scan.js +6 -10
  437. package/lib/commonjs/logic/dynamo/scan.js.map +1 -1
  438. package/lib/commonjs/logic/dynamo/updateItem.d.ts +2 -1
  439. package/lib/commonjs/logic/dynamo/updateItem.js +8 -12
  440. package/lib/commonjs/logic/dynamo/updateItem.js.map +1 -1
  441. package/lib/commonjs/logic/dynamo/utils/buildDynamoKey.d.ts +8 -0
  442. package/lib/commonjs/logic/dynamo/utils/buildDynamoKey.js +20 -0
  443. package/lib/commonjs/logic/dynamo/utils/buildDynamoKey.js.map +1 -0
  444. package/lib/commonjs/logic/dynamo/{logs/utils → utils}/index.d.ts +2 -0
  445. package/lib/commonjs/logic/dynamo/{logs/utils → utils}/index.js +2 -0
  446. package/lib/commonjs/logic/dynamo/utils/index.js.map +1 -0
  447. package/lib/commonjs/logic/dynamo/utils/itemsToQpqPagedData.d.ts +3 -1
  448. package/lib/commonjs/logic/dynamo/utils/itemsToQpqPagedData.js +3 -2
  449. package/lib/commonjs/logic/dynamo/utils/itemsToQpqPagedData.js.map +1 -1
  450. package/lib/commonjs/logic/dynamo/utils/lastEvaluatedKeyToString.d.ts +3 -0
  451. package/lib/commonjs/logic/dynamo/{logs/utils → utils}/lastEvaluatedKeyToString.js +1 -0
  452. package/lib/commonjs/logic/dynamo/utils/lastEvaluatedKeyToString.js.map +1 -0
  453. package/lib/commonjs/logic/dynamo/utils/stringToLastEvaluatedKey.d.ts +8 -0
  454. package/lib/commonjs/logic/dynamo/utils/stringToLastEvaluatedKey.js +13 -0
  455. package/lib/commonjs/logic/dynamo/utils/stringToLastEvaluatedKey.js.map +1 -0
  456. package/lib/commonjs/logic/federatedModuleStore/FederatedModuleStoreManifest.d.ts +2 -2
  457. package/lib/commonjs/logic/federatedModuleStore/FederatedModuleStoreManifest.js.map +1 -1
  458. package/lib/commonjs/logic/federatedModuleStore/loadFederatedStory.d.ts +1 -1
  459. package/lib/commonjs/logic/federatedModuleStore/loadFederatedStory.js.map +1 -1
  460. package/lib/commonjs/logic/federatedModuleStore/sharedPackages.js +1 -1
  461. package/lib/commonjs/logic/federatedModuleStore/sharedPackages.js.map +1 -1
  462. package/lib/commonjs/logic/kms/decryptDataKey.d.ts +2 -0
  463. package/lib/commonjs/logic/kms/decryptDataKey.js +33 -0
  464. package/lib/commonjs/logic/kms/decryptDataKey.js.map +1 -0
  465. package/lib/commonjs/logic/kms/generateDataKey.d.ts +3 -0
  466. package/lib/commonjs/logic/kms/generateDataKey.js +34 -0
  467. package/lib/commonjs/logic/kms/generateDataKey.js.map +1 -0
  468. package/lib/commonjs/logic/kms/getCachedGeneratedDataKey.d.ts +3 -0
  469. package/lib/commonjs/logic/kms/getCachedGeneratedDataKey.js +37 -0
  470. package/lib/commonjs/logic/kms/getCachedGeneratedDataKey.js.map +1 -0
  471. package/lib/commonjs/logic/kms/getCachedUnwrappedDataKey.d.ts +2 -0
  472. package/lib/commonjs/logic/kms/getCachedUnwrappedDataKey.js +37 -0
  473. package/lib/commonjs/logic/kms/getCachedUnwrappedDataKey.js.map +1 -0
  474. package/lib/commonjs/logic/kms/toKmsEncryptionContext.d.ts +2 -0
  475. package/lib/commonjs/logic/kms/toKmsEncryptionContext.js +10 -0
  476. package/lib/commonjs/logic/kms/toKmsEncryptionContext.js.map +1 -0
  477. package/lib/commonjs/logic/lambda/executeLambdaByName.d.ts +5 -1
  478. package/lib/commonjs/logic/lambda/executeLambdaByName.js +6 -3
  479. package/lib/commonjs/logic/lambda/executeLambdaByName.js.map +1 -1
  480. package/lib/commonjs/logic/neptune/getNeptuneEndpoints.js +8 -6
  481. package/lib/commonjs/logic/neptune/getNeptuneEndpoints.js.map +1 -1
  482. package/lib/commonjs/logic/parametersManager/getParameters.js +2 -1
  483. package/lib/commonjs/logic/parametersManager/getParameters.js.map +1 -1
  484. package/lib/commonjs/logic/s3/deleteFiles.d.ts +1 -0
  485. package/lib/commonjs/logic/s3/deleteFiles.js +16 -9
  486. package/lib/commonjs/logic/s3/deleteFiles.js.map +1 -1
  487. package/lib/commonjs/logic/s3/generatePresignedUploadUrl.d.ts +1 -0
  488. package/lib/commonjs/logic/s3/generatePresignedUploadUrl.js +2 -31
  489. package/lib/commonjs/logic/s3/generatePresignedUploadUrl.js.map +1 -1
  490. package/lib/commonjs/logic/s3/generatePresignedUrl.d.ts +1 -0
  491. package/lib/commonjs/logic/s3/generatePresignedUrl.js +4 -11
  492. package/lib/commonjs/logic/s3/generatePresignedUrl.js.map +1 -1
  493. package/lib/commonjs/logic/s3/listFiles.d.ts +5 -4
  494. package/lib/commonjs/logic/s3/listFiles.js +20 -27
  495. package/lib/commonjs/logic/s3/listFiles.js.map +1 -1
  496. package/lib/commonjs/logic/s3/s3Utils.d.ts +3 -0
  497. package/lib/commonjs/logic/s3/s3Utils.js +5 -0
  498. package/lib/commonjs/logic/s3/s3Utils.js.map +1 -1
  499. package/lib/commonjs/logic/secretsManager/getSecret.js +2 -3
  500. package/lib/commonjs/logic/secretsManager/getSecret.js.map +1 -1
  501. package/lib/commonjs/logic/sns/publishMessage.d.ts +7 -2
  502. package/lib/commonjs/logic/sns/publishMessage.js +11 -11
  503. package/lib/commonjs/logic/sns/publishMessage.js.map +1 -1
  504. package/lib/commonjs/logic/sqs/sendMessages.d.ts +7 -2
  505. package/lib/commonjs/logic/sqs/sendMessages.js +9 -8
  506. package/lib/commonjs/logic/sqs/sendMessages.js.map +1 -1
  507. package/lib/commonjs/runtimeConfig/LambdaRuntimeConfig.d.ts +9 -0
  508. package/lib/commonjs/runtimeConfig/LambdaRuntimeConfig.js +3 -0
  509. package/lib/commonjs/runtimeConfig/LambdaRuntimeConfig.js.map +1 -0
  510. package/lib/commonjs/runtimeConfig/index.d.ts +2 -0
  511. package/lib/commonjs/runtimeConfig/index.js +19 -0
  512. package/lib/commonjs/runtimeConfig/index.js.map +1 -0
  513. package/lib/commonjs/runtimeConfig/resolveParameterKey.d.ts +7 -0
  514. package/lib/commonjs/runtimeConfig/resolveParameterKey.js +17 -0
  515. package/lib/commonjs/runtimeConfig/resolveParameterKey.js.map +1 -0
  516. package/lib/esm/awsLambdaUtils.d.ts +6 -4
  517. package/lib/esm/awsLambdaUtils.js +2 -2
  518. package/lib/esm/awsLambdaUtils.js.map +1 -1
  519. package/lib/esm/awsNamingUtils.d.ts +2 -2
  520. package/lib/esm/awsNamingUtils.js +53 -100
  521. package/lib/esm/awsNamingUtils.js.map +1 -1
  522. package/lib/esm/getActionProcessor/core/ai/getAiPromptActionProcessor.js +2 -2
  523. package/lib/esm/getActionProcessor/core/ai/getAiPromptActionProcessor.js.map +1 -1
  524. package/lib/esm/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js +6 -6
  525. package/lib/esm/getActionProcessor/core/ai/getAiPromptStreamActionProcessor.js.map +1 -1
  526. package/lib/esm/getActionProcessor/core/ai/logic/prepareAiPromptCall.d.ts +4 -3
  527. package/lib/esm/getActionProcessor/core/ai/logic/prepareAiPromptCall.js.map +1 -1
  528. package/lib/esm/getActionProcessor/core/ai/logic/toCacheableMessages.js +1 -1
  529. package/lib/esm/getActionProcessor/core/ai/logic/toCacheableMessages.js.map +1 -1
  530. package/lib/esm/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js +8 -7
  531. package/lib/esm/getActionProcessor/core/apiKeyValidation/getApiKeyValidationValidateActionProcessor.js.map +1 -1
  532. package/lib/esm/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +1 -1
  533. package/lib/esm/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js.map +1 -1
  534. package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +1 -1
  535. package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js.map +1 -1
  536. package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +1 -1
  537. package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js.map +1 -1
  538. package/lib/esm/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.d.ts +2 -0
  539. package/lib/esm/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js +38 -0
  540. package/lib/esm/getActionProcessor/core/crypto/getCryptoDecryptActionProcessor.js.map +1 -0
  541. package/lib/esm/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.d.ts +2 -0
  542. package/lib/esm/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js +30 -0
  543. package/lib/esm/getActionProcessor/core/crypto/getCryptoEncryptActionProcessor.js.map +1 -0
  544. package/lib/esm/getActionProcessor/core/crypto/index.d.ts +2 -0
  545. package/lib/esm/getActionProcessor/core/crypto/index.js +7 -0
  546. package/lib/esm/getActionProcessor/core/crypto/index.js.map +1 -0
  547. package/lib/esm/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.d.ts +2 -0
  548. package/lib/esm/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js +7 -0
  549. package/lib/esm/getActionProcessor/core/crypto/utils/createKmsDataKeyProvider.js.map +1 -0
  550. package/lib/esm/getActionProcessor/core/crypto/utils/index.d.ts +2 -0
  551. package/lib/esm/getActionProcessor/core/crypto/utils/index.js +3 -0
  552. package/lib/esm/getActionProcessor/core/crypto/utils/index.js.map +1 -0
  553. package/lib/esm/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.d.ts +2 -0
  554. package/lib/esm/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js +14 -0
  555. package/lib/esm/getActionProcessor/core/crypto/utils/resolveCryptoKeyAlias.js.map +1 -0
  556. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
  557. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
  558. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
  559. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
  560. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
  561. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js.map +1 -1
  562. package/lib/esm/getActionProcessor/core/event/dynamo/index.d.ts +1 -0
  563. package/lib/esm/getActionProcessor/core/event/dynamo/index.js +2 -0
  564. package/lib/esm/getActionProcessor/core/event/dynamo/index.js.map +1 -0
  565. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventAutoRespondActionProcessor.d.ts +2 -0
  566. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventAutoRespondActionProcessor.js +10 -0
  567. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventAutoRespondActionProcessor.js.map +1 -0
  568. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventGetRecordsActionProcessor.d.ts +2 -0
  569. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventGetRecordsActionProcessor.js +71 -0
  570. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventGetRecordsActionProcessor.js.map +1 -0
  571. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventGetStorySessionActionProcessor.d.ts +2 -0
  572. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventGetStorySessionActionProcessor.js +12 -0
  573. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventGetStorySessionActionProcessor.js.map +1 -0
  574. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventMatchStoryActionProcessor.d.ts +2 -0
  575. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventMatchStoryActionProcessor.js +15 -0
  576. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventMatchStoryActionProcessor.js.map +1 -0
  577. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventTransformResponseResultActionProcessor.d.ts +2 -0
  578. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventTransformResponseResultActionProcessor.js +19 -0
  579. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/getEventTransformResponseResultActionProcessor.js.map +1 -0
  580. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/index.d.ts +2 -0
  581. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/index.js +13 -0
  582. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/index.js.map +1 -0
  583. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/types.d.ts +11 -0
  584. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/types.js +11 -0
  585. package/lib/esm/getActionProcessor/core/event/dynamo/streamEvent/types.js.map +1 -0
  586. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventMatchStoryActionProcessor.js.map +1 -1
  587. package/lib/esm/getActionProcessor/core/event/index.d.ts +1 -0
  588. package/lib/esm/getActionProcessor/core/event/index.js +1 -0
  589. package/lib/esm/getActionProcessor/core/event/index.js.map +1 -1
  590. package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +20 -17
  591. package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js.map +1 -1
  592. package/lib/esm/getActionProcessor/core/file/getFileDeleteActionProcessor.js +4 -8
  593. package/lib/esm/getActionProcessor/core/file/getFileDeleteActionProcessor.js.map +1 -1
  594. package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
  595. package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js.map +1 -1
  596. package/lib/esm/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js +2 -1
  597. package/lib/esm/getActionProcessor/core/file/getFileIsColdStorageActionProcessor.js.map +1 -1
  598. package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +2 -1
  599. package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js.map +1 -1
  600. package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -1
  601. package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js.map +1 -1
  602. package/lib/esm/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js +2 -1
  603. package/lib/esm/getActionProcessor/core/file/getFileWriteObjectJsonActionProcessor.js.map +1 -1
  604. package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -1
  605. package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js.map +1 -1
  606. package/lib/esm/getActionProcessor/core/file/utils/StorageDriveNotFoundError.d.ts +3 -0
  607. package/lib/esm/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js +10 -0
  608. package/lib/esm/getActionProcessor/core/file/utils/StorageDriveNotFoundError.js.map +1 -0
  609. package/lib/esm/getActionProcessor/core/file/utils/index.d.ts +1 -0
  610. package/lib/esm/getActionProcessor/core/file/utils/index.js +1 -0
  611. package/lib/esm/getActionProcessor/core/file/utils/index.js.map +1 -1
  612. package/lib/esm/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.d.ts +5 -0
  613. package/lib/esm/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js +7 -1
  614. package/lib/esm/getActionProcessor/core/file/utils/resolveStorageDriveBucketName.js.map +1 -1
  615. package/lib/esm/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js +1 -1
  616. package/lib/esm/getActionProcessor/core/graphDatabase/stories/converters/askConvertNeptuneQueryResultToGraphQueryResult.js.map +1 -1
  617. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.d.ts +4 -0
  618. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.js +2 -0
  619. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/AnyNeptuneResult.js.map +1 -0
  620. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.d.ts +4 -0
  621. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js +2 -0
  622. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherRequest.js.map +1 -0
  623. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.d.ts +4 -0
  624. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js +2 -0
  625. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneCypherResponse.js.map +1 -0
  626. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.d.ts +4 -0
  627. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js +2 -0
  628. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneGraphEntity.js.map +1 -0
  629. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.d.ts +5 -0
  630. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js +2 -0
  631. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneNodeResult.js.map +1 -0
  632. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.d.ts +4 -0
  633. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js +2 -0
  634. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneQueryResult.js.map +1 -0
  635. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.d.ts +7 -0
  636. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js +2 -0
  637. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneRelationshipResult.js.map +1 -0
  638. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.d.ts +1 -0
  639. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js +2 -0
  640. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/NeptuneScalarResult.js.map +1 -0
  641. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/index.d.ts +8 -1
  642. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/index.js +8 -1
  643. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/index.js.map +1 -1
  644. package/lib/esm/getActionProcessor/core/index.d.ts +1 -0
  645. package/lib/esm/getActionProcessor/core/index.js +3 -0
  646. package/lib/esm/getActionProcessor/core/index.js.map +1 -1
  647. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +1 -1
  648. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js.map +1 -1
  649. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +1 -1
  650. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js.map +1 -1
  651. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanAllScopesActionProcessor.d.ts +2 -0
  652. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanAllScopesActionProcessor.js +42 -0
  653. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanAllScopesActionProcessor.js.map +1 -0
  654. package/lib/esm/getActionProcessor/core/keyValueStore/index.js +2 -0
  655. package/lib/esm/getActionProcessor/core/keyValueStore/index.js.map +1 -1
  656. package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +20 -19
  657. package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js.map +1 -1
  658. package/lib/esm/getActionProcessor/core/system/getDateNow.d.ts +1 -0
  659. package/lib/esm/getActionProcessor/core/system/getDateNow.js +4 -0
  660. package/lib/esm/getActionProcessor/core/system/getDateNow.js.map +1 -0
  661. package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.d.ts +0 -1
  662. package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +2 -2
  663. package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js.map +1 -1
  664. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js.map +1 -1
  665. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js.map +1 -1
  666. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js +1 -1
  667. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesByUserIdActionProcessor.js.map +1 -1
  668. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js +1 -1
  669. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersActionProcessor.js.map +1 -1
  670. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js +4 -1
  671. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUsersByAttributeActionProcessor.js.map +1 -1
  672. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +7 -3
  673. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js.map +1 -1
  674. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +1 -1
  675. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js.map +1 -1
  676. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +2 -2
  677. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js.map +1 -1
  678. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js +1 -1
  679. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetPasswordActionProcessor.js.map +1 -1
  680. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js +1 -1
  681. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectorySetUserAttributesActionProcessor.js.map +1 -1
  682. package/lib/esm/getActionProcessor/index.js +8 -9
  683. package/lib/esm/getActionProcessor/index.js.map +1 -1
  684. package/lib/esm/getActionProcessor/webserver/index.d.ts +1 -1
  685. package/lib/esm/getActionProcessor/webserver/index.js.map +1 -1
  686. package/lib/esm/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js.map +1 -1
  687. package/lib/esm/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js +1 -1
  688. package/lib/esm/getActionProcessor/webserver/websocket/getWebsocketSendMessageActionProcessor.js.map +1 -1
  689. package/lib/esm/getLambdaEntries.d.ts +4 -0
  690. package/lib/esm/getLambdaEntries.js +7 -4
  691. package/lib/esm/getLambdaEntries.js.map +1 -1
  692. package/lib/esm/index.d.ts +1 -1
  693. package/lib/esm/index.js +4 -3
  694. package/lib/esm/index.js.map +1 -1
  695. package/lib/esm/lambdaExtensions/logExtensionPort.js +1 -1
  696. package/lib/esm/lambdaExtensions/logExtensionPort.js.map +1 -1
  697. package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
  698. package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +4 -3
  699. package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js.map +1 -1
  700. package/lib/esm/lambdaHandlers/getApiGatewayEventHandler.js +2 -4
  701. package/lib/esm/lambdaHandlers/getApiGatewayEventHandler.js.map +1 -1
  702. package/lib/esm/lambdaHandlers/getApiGatewayEventHandler_redirect.js +8 -4
  703. package/lib/esm/lambdaHandlers/getApiGatewayEventHandler_redirect.js.map +1 -1
  704. package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +2 -6
  705. package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js.map +1 -1
  706. package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +2 -6
  707. package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js.map +1 -1
  708. package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.d.ts +0 -19
  709. package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js +5 -7
  710. package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_viewerRequest.js.map +1 -1
  711. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js +2 -6
  712. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_createAuthChallenge.js.map +1 -1
  713. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +2 -6
  714. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js.map +1 -1
  715. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +2 -6
  716. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js.map +1 -1
  717. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +2 -6
  718. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js.map +1 -1
  719. package/lib/esm/lambdaHandlers/getDynamoStreamEvent_kvsStreamEvent.d.ts +3 -0
  720. package/lib/esm/lambdaHandlers/getDynamoStreamEvent_kvsStreamEvent.js +6 -0
  721. package/lib/esm/lambdaHandlers/getDynamoStreamEvent_kvsStreamEvent.js.map +1 -0
  722. package/lib/esm/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +3 -7
  723. package/lib/esm/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js.map +1 -1
  724. package/lib/esm/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +2 -6
  725. package/lib/esm/lambdaHandlers/getEventBridgeEvent_stackDeploy.js.map +1 -1
  726. package/lib/esm/lambdaHandlers/getS3Event_fileEvent.js +2 -6
  727. package/lib/esm/lambdaHandlers/getS3Event_fileEvent.js.map +1 -1
  728. package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.js +3 -7
  729. package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.js.map +1 -1
  730. package/lib/esm/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.d.ts +5 -0
  731. package/lib/esm/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js +5 -0
  732. package/lib/esm/lambdaHandlers/helpers/dynamicModuleLoaderWarmer.js.map +1 -1
  733. package/lib/esm/lambdaHandlers/helpers/getBlankStorySession.d.ts +6 -0
  734. package/lib/esm/lambdaHandlers/helpers/getBlankStorySession.js +9 -0
  735. package/lib/esm/lambdaHandlers/helpers/getBlankStorySession.js.map +1 -0
  736. package/lib/esm/lambdaHandlers/helpers/getLogger.d.ts +8 -0
  737. package/lib/esm/lambdaHandlers/helpers/{logger.js → getLogger.js} +21 -25
  738. package/lib/esm/lambdaHandlers/helpers/getLogger.js.map +1 -0
  739. package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +4 -0
  740. package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +19 -15
  741. package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js.map +1 -1
  742. package/lib/esm/lambdaHandlers/helpers/index.d.ts +3 -1
  743. package/lib/esm/lambdaHandlers/helpers/index.js +3 -1
  744. package/lib/esm/lambdaHandlers/helpers/index.js.map +1 -1
  745. package/lib/esm/lambdaHandlers/helpers/isSnsWarmerRecord.d.ts +6 -0
  746. package/lib/esm/lambdaHandlers/helpers/isSnsWarmerRecord.js +19 -0
  747. package/lib/esm/lambdaHandlers/helpers/isSnsWarmerRecord.js.map +1 -0
  748. package/lib/esm/lambdaHandlers/index.d.ts +1 -0
  749. package/lib/esm/lambdaHandlers/index.js +1 -0
  750. package/lib/esm/lambdaHandlers/index.js.map +1 -1
  751. package/lib/esm/lambdaHandlers/types/QpqFunctionExecutionEvent.d.ts +7 -0
  752. package/lib/esm/lambdaHandlers/types/QpqFunctionExecutionEvent.js +2 -0
  753. package/lib/esm/lambdaHandlers/types/QpqFunctionExecutionEvent.js.map +1 -0
  754. package/lib/esm/lambdaHandlers/types/index.d.ts +1 -1
  755. package/lib/esm/lambdaHandlers/types/index.js +1 -1
  756. package/lib/esm/lambdaHandlers/types/index.js.map +1 -1
  757. package/lib/esm/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
  758. package/lib/esm/lambdas/cloudFrontRequestEvent_viewerRequest.js +0 -1
  759. package/lib/esm/lambdas/cloudFrontRequestEvent_viewerRequest.js.map +1 -1
  760. package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoader.js.map +1 -1
  761. package/lib/esm/lambdas/dynamicModuleLoader/index.d.ts +0 -1
  762. package/lib/esm/lambdas/dynamicModuleLoader/index.js +0 -1
  763. package/lib/esm/lambdas/dynamicModuleLoader/index.js.map +1 -1
  764. package/lib/esm/lambdas/dynamoStreamEvent_kvsStreamEvent.d.ts +1 -0
  765. package/lib/esm/lambdas/dynamoStreamEvent_kvsStreamEvent.js +5 -0
  766. package/lib/esm/lambdas/dynamoStreamEvent_kvsStreamEvent.js.map +1 -0
  767. package/lib/esm/lambdas/index.d.ts +1 -0
  768. package/lib/esm/lambdas/index.js +5 -1
  769. package/lib/esm/lambdas/index.js.map +1 -1
  770. package/lib/esm/logic/apiGateway/sendMessageToWebSocketConnection.d.ts +2 -0
  771. package/lib/esm/logic/apiGateway/{websocketSendMessage.js → sendMessageToWebSocketConnection.js} +7 -7
  772. package/lib/esm/logic/apiGateway/sendMessageToWebSocketConnection.js.map +1 -0
  773. package/lib/esm/logic/cache/memoFunc.d.ts +5 -2
  774. package/lib/esm/logic/cache/memoFunc.js +3 -5
  775. package/lib/esm/logic/cache/memoFunc.js.map +1 -1
  776. package/lib/esm/logic/cache/memoFuncAsync.d.ts +5 -2
  777. package/lib/esm/logic/cache/memoFuncAsync.js +4 -3
  778. package/lib/esm/logic/cache/memoFuncAsync.js.map +1 -1
  779. package/lib/esm/logic/cloudFront/invalidateCache.d.ts +0 -1
  780. package/lib/esm/logic/cloudFront/invalidateCache.js +6 -8
  781. package/lib/esm/logic/cloudFront/invalidateCache.js.map +1 -1
  782. package/lib/esm/logic/cloudformation/getExportedValue.d.ts +4 -0
  783. package/lib/esm/logic/cloudformation/getExportedValue.js +4 -0
  784. package/lib/esm/logic/cloudformation/getExportedValue.js.map +1 -1
  785. package/lib/esm/logic/cognito/authenticateUser.d.ts +4 -0
  786. package/lib/esm/logic/cognito/authenticateUser.js +7 -2
  787. package/lib/esm/logic/cognito/authenticateUser.js.map +1 -1
  788. package/lib/esm/logic/cognito/cognitoAttributeMap.d.ts +1 -9
  789. package/lib/esm/logic/cognito/cognitoAttributeMap.js +1 -38
  790. package/lib/esm/logic/cognito/cognitoAttributeMap.js.map +1 -1
  791. package/lib/esm/logic/cognito/confirmForgotPassword.d.ts +4 -0
  792. package/lib/esm/logic/cognito/confirmForgotPassword.js +5 -3
  793. package/lib/esm/logic/cognito/confirmForgotPassword.js.map +1 -1
  794. package/lib/esm/logic/cognito/createUser.d.ts +4 -0
  795. package/lib/esm/logic/cognito/createUser.js +8 -5
  796. package/lib/esm/logic/cognito/createUser.js.map +1 -1
  797. package/lib/esm/logic/cognito/decodeAccessToken.d.ts +11 -0
  798. package/lib/esm/logic/cognito/decodeAccessToken.js +22 -4
  799. package/lib/esm/logic/cognito/decodeAccessToken.js.map +1 -1
  800. package/lib/esm/logic/cognito/decodeValidJwt.d.ts +8 -2
  801. package/lib/esm/logic/cognito/decodeValidJwt.js +15 -6
  802. package/lib/esm/logic/cognito/decodeValidJwt.js.map +1 -1
  803. package/lib/esm/logic/cognito/forgotPassword.js +2 -6
  804. package/lib/esm/logic/cognito/forgotPassword.js.map +1 -1
  805. package/lib/esm/logic/cognito/getCognitoJwksClient.d.ts +7 -0
  806. package/lib/esm/logic/cognito/getCognitoJwksClient.js +9 -0
  807. package/lib/esm/logic/cognito/getCognitoJwksClient.js.map +1 -0
  808. package/lib/esm/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.d.ts +8 -0
  809. package/lib/esm/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js +16 -0
  810. package/lib/esm/logic/cognito/getCognitoUserAttributesFromQpqUserAttributes.js.map +1 -0
  811. package/lib/esm/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.d.ts +7 -0
  812. package/lib/esm/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js +18 -0
  813. package/lib/esm/logic/cognito/getQpqAttributeObjectFromCognitoKeyValue.js.map +1 -0
  814. package/lib/esm/logic/cognito/getQpqAttributesFromCognitoStringMap.d.ts +6 -0
  815. package/lib/esm/logic/cognito/getQpqAttributesFromCognitoStringMap.js +13 -0
  816. package/lib/esm/logic/cognito/getQpqAttributesFromCognitoStringMap.js.map +1 -0
  817. package/lib/esm/logic/cognito/getQpqAttributesFromCognitoUserAttributes.d.ts +4 -0
  818. package/lib/esm/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js +10 -0
  819. package/lib/esm/logic/cognito/getQpqAttributesFromCognitoUserAttributes.js.map +1 -0
  820. package/lib/esm/logic/cognito/getUserAttributes.js +5 -7
  821. package/lib/esm/logic/cognito/getUserAttributes.js.map +1 -1
  822. package/lib/esm/logic/cognito/getUserAttributesBySub.js +19 -4
  823. package/lib/esm/logic/cognito/getUserAttributesBySub.js.map +1 -1
  824. package/lib/esm/logic/cognito/getUserPoolClientSecret.d.ts +8 -0
  825. package/lib/esm/logic/cognito/getUserPoolClientSecret.js +17 -3
  826. package/lib/esm/logic/cognito/getUserPoolClientSecret.js.map +1 -1
  827. package/lib/esm/logic/cognito/index.js +3 -0
  828. package/lib/esm/logic/cognito/index.js.map +1 -1
  829. package/lib/esm/logic/cognito/listPagedUsers.js +3 -7
  830. package/lib/esm/logic/cognito/listPagedUsers.js.map +1 -1
  831. package/lib/esm/logic/cognito/listPagedUsersByAttribute.d.ts +5 -0
  832. package/lib/esm/logic/cognito/listPagedUsersByAttribute.js +9 -8
  833. package/lib/esm/logic/cognito/listPagedUsersByAttribute.js.map +1 -1
  834. package/lib/esm/logic/cognito/refreshToken.js +8 -7
  835. package/lib/esm/logic/cognito/refreshToken.js.map +1 -1
  836. package/lib/esm/logic/cognito/requestEmailVerificationCode.js +3 -7
  837. package/lib/esm/logic/cognito/requestEmailVerificationCode.js.map +1 -1
  838. package/lib/esm/logic/cognito/resolveUsernameByPreferredUsername.d.ts +5 -0
  839. package/lib/esm/logic/cognito/resolveUsernameByPreferredUsername.js +26 -3
  840. package/lib/esm/logic/cognito/resolveUsernameByPreferredUsername.js.map +1 -1
  841. package/lib/esm/logic/cognito/respondToAuthChallenge.d.ts +8 -0
  842. package/lib/esm/logic/cognito/{respondToAuthChallengeChallenge.js → respondToAuthChallenge.js} +10 -4
  843. package/lib/esm/logic/cognito/respondToAuthChallenge.js.map +1 -0
  844. package/lib/esm/logic/cognito/setUserAttributes.js +4 -4
  845. package/lib/esm/logic/cognito/setUserAttributes.js.map +1 -1
  846. package/lib/esm/logic/cognito/setUserPassword.js +2 -1
  847. package/lib/esm/logic/cognito/setUserPassword.js.map +1 -1
  848. package/lib/esm/logic/cognito/utils/CognitoUserAttribute.d.ts +5 -0
  849. package/lib/esm/logic/cognito/utils/CognitoUserAttribute.js +2 -0
  850. package/lib/esm/logic/cognito/utils/CognitoUserAttribute.js.map +1 -0
  851. package/lib/esm/logic/cognito/utils/buildCognitoUserFilter.d.ts +10 -0
  852. package/lib/esm/logic/cognito/utils/buildCognitoUserFilter.js +29 -0
  853. package/lib/esm/logic/cognito/utils/buildCognitoUserFilter.js.map +1 -0
  854. package/lib/esm/logic/cognito/utils/calculateSecretHash.d.ts +5 -0
  855. package/lib/esm/logic/cognito/utils/calculateSecretHash.js +6 -6
  856. package/lib/esm/logic/cognito/utils/calculateSecretHash.js.map +1 -1
  857. package/lib/esm/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.d.ts +8 -0
  858. package/lib/esm/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js +19 -0
  859. package/lib/esm/logic/cognito/utils/cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo.js.map +1 -0
  860. package/lib/esm/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.d.ts +7 -0
  861. package/lib/esm/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js +18 -0
  862. package/lib/esm/logic/cognito/utils/cognitoAuthenticationResultTypeToQpqAuthenticationInfo.js.map +1 -0
  863. package/lib/esm/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.d.ts +9 -0
  864. package/lib/esm/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js +23 -0
  865. package/lib/esm/logic/cognito/utils/cognitoChallengeNameTypeToQpqAuthenticateUserChallenge.js.map +1 -0
  866. package/lib/esm/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.d.ts +7 -0
  867. package/lib/esm/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js +10 -0
  868. package/lib/esm/logic/cognito/utils/cognitoCodeDeliveryDetailsToQpqDeliveryDetails.js.map +1 -0
  869. package/lib/esm/logic/cognito/utils/getValidCognitoUserAttributes.d.ts +7 -0
  870. package/lib/esm/logic/cognito/utils/getValidCognitoUserAttributes.js +6 -0
  871. package/lib/esm/logic/cognito/utils/getValidCognitoUserAttributes.js.map +1 -0
  872. package/lib/esm/logic/cognito/utils/index.d.ts +7 -1
  873. package/lib/esm/logic/cognito/utils/index.js +7 -1
  874. package/lib/esm/logic/cognito/utils/index.js.map +1 -1
  875. package/lib/esm/logic/cognito/utils/pageKeyToPaginationToken.d.ts +5 -0
  876. package/lib/esm/logic/cognito/utils/pageKeyToPaginationToken.js +5 -0
  877. package/lib/esm/logic/cognito/utils/pageKeyToPaginationToken.js.map +1 -1
  878. package/lib/esm/logic/cognito/utils/paginationTokenToPageKey.d.ts +5 -0
  879. package/lib/esm/logic/cognito/utils/paginationTokenToPageKey.js +5 -0
  880. package/lib/esm/logic/cognito/utils/paginationTokenToPageKey.js.map +1 -1
  881. package/lib/esm/logic/cognito/verifyUserEmail.d.ts +1 -0
  882. package/lib/esm/logic/cognito/verifyUserEmail.js +1 -0
  883. package/lib/esm/logic/cognito/verifyUserEmail.js.map +1 -1
  884. package/lib/esm/logic/createAwsClient.d.ts +6 -3
  885. package/lib/esm/logic/createAwsClient.js +7 -6
  886. package/lib/esm/logic/createAwsClient.js.map +1 -1
  887. package/lib/esm/logic/dynamo/convertDynamoMapToObject.d.ts +7 -0
  888. package/lib/esm/logic/dynamo/convertDynamoMapToObject.js +32 -0
  889. package/lib/esm/logic/dynamo/convertDynamoMapToObject.js.map +1 -0
  890. package/lib/esm/logic/dynamo/deleteItem.js +4 -10
  891. package/lib/esm/logic/dynamo/deleteItem.js.map +1 -1
  892. package/lib/esm/logic/dynamo/getAllItems.d.ts +2 -1
  893. package/lib/esm/logic/dynamo/getAllItems.js +5 -10
  894. package/lib/esm/logic/dynamo/getAllItems.js.map +1 -1
  895. package/lib/esm/logic/dynamo/getItem.d.ts +2 -2
  896. package/lib/esm/logic/dynamo/getItem.js +6 -18
  897. package/lib/esm/logic/dynamo/getItem.js.map +1 -1
  898. package/lib/esm/logic/dynamo/index.d.ts +2 -0
  899. package/lib/esm/logic/dynamo/index.js +2 -0
  900. package/lib/esm/logic/dynamo/index.js.map +1 -1
  901. package/lib/esm/logic/dynamo/putItem.d.ts +4 -4
  902. package/lib/esm/logic/dynamo/putItem.js +3 -20
  903. package/lib/esm/logic/dynamo/putItem.js.map +1 -1
  904. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildAttributeValue.d.ts +8 -0
  905. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js +36 -0
  906. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildAttributeValue.js.map +1 -0
  907. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.d.ts +9 -0
  908. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js +80 -0
  909. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.js.map +1 -0
  910. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.d.ts +9 -0
  911. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js +103 -0
  912. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.js.map +1 -0
  913. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.d.ts +7 -0
  914. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js +20 -0
  915. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeNames.js.map +1 -0
  916. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.d.ts +8 -0
  917. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js +35 -0
  918. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildExpressionAttributeValues.js.map +1 -0
  919. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.d.ts +7 -0
  920. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js +19 -0
  921. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeNames.js.map +1 -0
  922. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.d.ts +9 -0
  923. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js +21 -0
  924. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildUpdateExpressionAttributeValues.js.map +1 -0
  925. package/lib/esm/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.d.ts +3 -0
  926. package/lib/esm/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js +13 -0
  927. package/lib/esm/logic/dynamo/qpqDynamoOrm/flattenKvsQueryConditions.js.map +1 -0
  928. package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.d.ts +7 -2
  929. package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js +13 -22
  930. package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js.map +1 -1
  931. package/lib/esm/logic/dynamo/qpqDynamoOrm/getHash.d.ts +7 -0
  932. package/lib/esm/logic/dynamo/qpqDynamoOrm/getHash.js +11 -0
  933. package/lib/esm/logic/dynamo/qpqDynamoOrm/getHash.js.map +1 -0
  934. package/lib/esm/logic/dynamo/qpqDynamoOrm/getItemName.d.ts +6 -0
  935. package/lib/esm/logic/dynamo/qpqDynamoOrm/getItemName.js +10 -0
  936. package/lib/esm/logic/dynamo/qpqDynamoOrm/getItemName.js.map +1 -0
  937. package/lib/esm/logic/dynamo/qpqDynamoOrm/getValueName.d.ts +7 -0
  938. package/lib/esm/logic/dynamo/qpqDynamoOrm/getValueName.js +10 -0
  939. package/lib/esm/logic/dynamo/qpqDynamoOrm/getValueName.js.map +1 -0
  940. package/lib/esm/logic/dynamo/qpqDynamoOrm/index.d.ts +13 -2
  941. package/lib/esm/logic/dynamo/qpqDynamoOrm/index.js +13 -2
  942. package/lib/esm/logic/dynamo/qpqDynamoOrm/index.js.map +1 -1
  943. package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.d.ts +2 -0
  944. package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js +4 -0
  945. package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsLogicalOperator.js.map +1 -0
  946. package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.d.ts +2 -0
  947. package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js +4 -0
  948. package/lib/esm/logic/dynamo/qpqDynamoOrm/isKvsQueryCondition.js.map +1 -0
  949. package/lib/esm/logic/dynamo/query.js +5 -8
  950. package/lib/esm/logic/dynamo/query.js.map +1 -1
  951. package/lib/esm/logic/dynamo/scan.js +5 -8
  952. package/lib/esm/logic/dynamo/scan.js.map +1 -1
  953. package/lib/esm/logic/dynamo/updateItem.d.ts +2 -1
  954. package/lib/esm/logic/dynamo/updateItem.js +8 -12
  955. package/lib/esm/logic/dynamo/updateItem.js.map +1 -1
  956. package/lib/esm/logic/dynamo/utils/buildDynamoKey.d.ts +8 -0
  957. package/lib/esm/logic/dynamo/utils/buildDynamoKey.js +16 -0
  958. package/lib/esm/logic/dynamo/utils/buildDynamoKey.js.map +1 -0
  959. package/lib/esm/logic/dynamo/{logs/utils → utils}/index.d.ts +2 -0
  960. package/lib/esm/logic/dynamo/utils/index.js +5 -0
  961. package/lib/esm/logic/dynamo/utils/index.js.map +1 -0
  962. package/lib/esm/logic/dynamo/utils/itemsToQpqPagedData.d.ts +3 -1
  963. package/lib/esm/logic/dynamo/utils/itemsToQpqPagedData.js +2 -1
  964. package/lib/esm/logic/dynamo/utils/itemsToQpqPagedData.js.map +1 -1
  965. package/lib/esm/logic/dynamo/utils/lastEvaluatedKeyToString.d.ts +3 -0
  966. package/lib/esm/logic/dynamo/{logs/utils → utils}/lastEvaluatedKeyToString.js +1 -0
  967. package/lib/esm/logic/dynamo/utils/lastEvaluatedKeyToString.js.map +1 -0
  968. package/lib/esm/logic/dynamo/utils/stringToLastEvaluatedKey.d.ts +8 -0
  969. package/lib/esm/logic/dynamo/utils/stringToLastEvaluatedKey.js +10 -0
  970. package/lib/esm/logic/dynamo/utils/stringToLastEvaluatedKey.js.map +1 -0
  971. package/lib/esm/logic/federatedModuleStore/FederatedModuleStoreManifest.d.ts +2 -2
  972. package/lib/esm/logic/federatedModuleStore/FederatedModuleStoreManifest.js.map +1 -1
  973. package/lib/esm/logic/federatedModuleStore/loadFederatedStory.d.ts +1 -1
  974. package/lib/esm/logic/federatedModuleStore/loadFederatedStory.js.map +1 -1
  975. package/lib/esm/logic/federatedModuleStore/sharedPackages.js +1 -1
  976. package/lib/esm/logic/federatedModuleStore/sharedPackages.js.map +1 -1
  977. package/lib/esm/logic/kms/decryptDataKey.d.ts +2 -0
  978. package/lib/esm/logic/kms/decryptDataKey.js +20 -0
  979. package/lib/esm/logic/kms/decryptDataKey.js.map +1 -0
  980. package/lib/esm/logic/kms/generateDataKey.d.ts +3 -0
  981. package/lib/esm/logic/kms/generateDataKey.js +21 -0
  982. package/lib/esm/logic/kms/generateDataKey.js.map +1 -0
  983. package/lib/esm/logic/kms/getCachedGeneratedDataKey.d.ts +3 -0
  984. package/lib/esm/logic/kms/getCachedGeneratedDataKey.js +24 -0
  985. package/lib/esm/logic/kms/getCachedGeneratedDataKey.js.map +1 -0
  986. package/lib/esm/logic/kms/getCachedUnwrappedDataKey.d.ts +2 -0
  987. package/lib/esm/logic/kms/getCachedUnwrappedDataKey.js +24 -0
  988. package/lib/esm/logic/kms/getCachedUnwrappedDataKey.js.map +1 -0
  989. package/lib/esm/logic/kms/toKmsEncryptionContext.d.ts +2 -0
  990. package/lib/esm/logic/kms/toKmsEncryptionContext.js +6 -0
  991. package/lib/esm/logic/kms/toKmsEncryptionContext.js.map +1 -0
  992. package/lib/esm/logic/lambda/executeLambdaByName.d.ts +5 -1
  993. package/lib/esm/logic/lambda/executeLambdaByName.js +6 -3
  994. package/lib/esm/logic/lambda/executeLambdaByName.js.map +1 -1
  995. package/lib/esm/logic/neptune/getNeptuneEndpoints.js +7 -6
  996. package/lib/esm/logic/neptune/getNeptuneEndpoints.js.map +1 -1
  997. package/lib/esm/logic/parametersManager/getParameters.js +2 -1
  998. package/lib/esm/logic/parametersManager/getParameters.js.map +1 -1
  999. package/lib/esm/logic/s3/deleteFiles.d.ts +1 -0
  1000. package/lib/esm/logic/s3/deleteFiles.js +16 -9
  1001. package/lib/esm/logic/s3/deleteFiles.js.map +1 -1
  1002. package/lib/esm/logic/s3/generatePresignedUploadUrl.d.ts +1 -0
  1003. package/lib/esm/logic/s3/generatePresignedUploadUrl.js +2 -31
  1004. package/lib/esm/logic/s3/generatePresignedUploadUrl.js.map +1 -1
  1005. package/lib/esm/logic/s3/generatePresignedUrl.d.ts +1 -0
  1006. package/lib/esm/logic/s3/generatePresignedUrl.js +4 -11
  1007. package/lib/esm/logic/s3/generatePresignedUrl.js.map +1 -1
  1008. package/lib/esm/logic/s3/listFiles.d.ts +5 -4
  1009. package/lib/esm/logic/s3/listFiles.js +20 -27
  1010. package/lib/esm/logic/s3/listFiles.js.map +1 -1
  1011. package/lib/esm/logic/s3/s3Utils.d.ts +3 -0
  1012. package/lib/esm/logic/s3/s3Utils.js +5 -0
  1013. package/lib/esm/logic/s3/s3Utils.js.map +1 -1
  1014. package/lib/esm/logic/secretsManager/getSecret.js +2 -3
  1015. package/lib/esm/logic/secretsManager/getSecret.js.map +1 -1
  1016. package/lib/esm/logic/sns/publishMessage.d.ts +7 -2
  1017. package/lib/esm/logic/sns/publishMessage.js +11 -17
  1018. package/lib/esm/logic/sns/publishMessage.js.map +1 -1
  1019. package/lib/esm/logic/sqs/sendMessages.d.ts +7 -2
  1020. package/lib/esm/logic/sqs/sendMessages.js +9 -8
  1021. package/lib/esm/logic/sqs/sendMessages.js.map +1 -1
  1022. package/lib/esm/runtimeConfig/LambdaRuntimeConfig.d.ts +9 -0
  1023. package/lib/esm/runtimeConfig/LambdaRuntimeConfig.js +2 -0
  1024. package/lib/esm/runtimeConfig/LambdaRuntimeConfig.js.map +1 -0
  1025. package/lib/esm/runtimeConfig/index.d.ts +2 -0
  1026. package/lib/esm/runtimeConfig/index.js +3 -0
  1027. package/lib/esm/runtimeConfig/index.js.map +1 -0
  1028. package/lib/esm/runtimeConfig/resolveParameterKey.d.ts +7 -0
  1029. package/lib/esm/runtimeConfig/resolveParameterKey.js +12 -0
  1030. package/lib/esm/runtimeConfig/resolveParameterKey.js.map +1 -0
  1031. package/lib/extension-layer/qpq-log-extension/index.js +32 -32
  1032. package/package.json +10 -8
  1033. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/neptune.d.ts +0 -26
  1034. package/lib/commonjs/getActionProcessor/core/graphDatabase/stories/types/neptune.js.map +0 -1
  1035. package/lib/commonjs/lambdaHandlers/helpers/logger.d.ts +0 -8
  1036. package/lib/commonjs/lambdaHandlers/helpers/logger.js.map +0 -1
  1037. package/lib/commonjs/lambdaHandlers/types/QpqWarmLambdaEvent.d.ts +0 -5
  1038. package/lib/commonjs/lambdaHandlers/types/QpqWarmLambdaEvent.js.map +0 -1
  1039. package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.d.ts +0 -1
  1040. package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js.map +0 -1
  1041. package/lib/commonjs/lambdas/lambda-utils/QpqWarmLambdaEvent.d.ts +0 -5
  1042. package/lib/commonjs/lambdas/lambda-utils/QpqWarmLambdaEvent.js.map +0 -1
  1043. package/lib/commonjs/lambdas/lambdaSQSEvent.d.ts +0 -2
  1044. package/lib/commonjs/lambdas/lambdaSQSEvent.js +0 -16
  1045. package/lib/commonjs/lambdas/lambdaSQSEvent.js.map +0 -1
  1046. package/lib/commonjs/logic/acm/findMatchingCertificates.d.ts +0 -1
  1047. package/lib/commonjs/logic/acm/findMatchingCertificates.js +0 -53
  1048. package/lib/commonjs/logic/acm/findMatchingCertificates.js.map +0 -1
  1049. package/lib/commonjs/logic/acm/getDomainValidationOptions.d.ts +0 -2
  1050. package/lib/commonjs/logic/acm/getDomainValidationOptions.js +0 -41
  1051. package/lib/commonjs/logic/acm/getDomainValidationOptions.js.map +0 -1
  1052. package/lib/commonjs/logic/apiGateway/websocketSendMessage.d.ts +0 -1
  1053. package/lib/commonjs/logic/apiGateway/websocketSendMessage.js.map +0 -1
  1054. package/lib/commonjs/logic/cognito/getUser.d.ts +0 -10
  1055. package/lib/commonjs/logic/cognito/getUser.js +0 -39
  1056. package/lib/commonjs/logic/cognito/getUser.js.map +0 -1
  1057. package/lib/commonjs/logic/cognito/respondToAuthChallengeChallenge.d.ts +0 -3
  1058. package/lib/commonjs/logic/cognito/respondToAuthChallengeChallenge.js.map +0 -1
  1059. package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.d.ts +0 -5
  1060. package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.js +0 -48
  1061. package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.js.map +0 -1
  1062. package/lib/commonjs/logic/cognito/verifyJwt.d.ts +0 -1
  1063. package/lib/commonjs/logic/cognito/verifyJwt.js.map +0 -1
  1064. package/lib/commonjs/logic/dynamo/convertObjectToDynamoMap.d.ts +0 -1
  1065. package/lib/commonjs/logic/dynamo/convertObjectToDynamoMap.js +0 -67
  1066. package/lib/commonjs/logic/dynamo/convertObjectToDynamoMap.js.map +0 -1
  1067. package/lib/commonjs/logic/dynamo/getLogByCorrelation.d.ts +0 -2
  1068. package/lib/commonjs/logic/dynamo/getLogByCorrelation.js +0 -55
  1069. package/lib/commonjs/logic/dynamo/getLogByCorrelation.js.map +0 -1
  1070. package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.d.ts +0 -2
  1071. package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.js +0 -65
  1072. package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.js.map +0 -1
  1073. package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.d.ts +0 -2
  1074. package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.js +0 -68
  1075. package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.js.map +0 -1
  1076. package/lib/commonjs/logic/dynamo/logs/index.d.ts +0 -1
  1077. package/lib/commonjs/logic/dynamo/logs/index.js.map +0 -1
  1078. package/lib/commonjs/logic/dynamo/logs/utils/index.js.map +0 -1
  1079. package/lib/commonjs/logic/dynamo/logs/utils/lastEvaluatedKeyToString.d.ts +0 -1
  1080. package/lib/commonjs/logic/dynamo/logs/utils/lastEvaluatedKeyToString.js.map +0 -1
  1081. package/lib/commonjs/logic/dynamo/logs/utils/stringToLastEvaluatedKey.d.ts +0 -2
  1082. package/lib/commonjs/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js +0 -7
  1083. package/lib/commonjs/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js.map +0 -1
  1084. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +0 -10
  1085. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +0 -200
  1086. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js.map +0 -1
  1087. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +0 -11
  1088. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +0 -144
  1089. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js.map +0 -1
  1090. package/lib/commonjs/logic/dynamo/utils/qpqPagedDataToItems.d.ts +0 -4
  1091. package/lib/commonjs/logic/dynamo/utils/qpqPagedDataToItems.js +0 -10
  1092. package/lib/commonjs/logic/dynamo/utils/qpqPagedDataToItems.js.map +0 -1
  1093. package/lib/commonjs/runtimeConfig/QPQAWSResourceMap.d.ts +0 -4
  1094. package/lib/commonjs/runtimeConfig/QPQAWSResourceMap.js.map +0 -1
  1095. package/lib/commonjs/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.d.ts +0 -4
  1096. package/lib/commonjs/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js +0 -20
  1097. package/lib/commonjs/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js.map +0 -1
  1098. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/neptune.d.ts +0 -26
  1099. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/neptune.js +0 -2
  1100. package/lib/esm/getActionProcessor/core/graphDatabase/stories/types/neptune.js.map +0 -1
  1101. package/lib/esm/lambdaHandlers/helpers/logger.d.ts +0 -8
  1102. package/lib/esm/lambdaHandlers/helpers/logger.js.map +0 -1
  1103. package/lib/esm/lambdaHandlers/types/QpqWarmLambdaEvent.d.ts +0 -5
  1104. package/lib/esm/lambdaHandlers/types/QpqWarmLambdaEvent.js +0 -2
  1105. package/lib/esm/lambdaHandlers/types/QpqWarmLambdaEvent.js.map +0 -1
  1106. package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.d.ts +0 -1
  1107. package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js +0 -4
  1108. package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoaderWarmer.js.map +0 -1
  1109. package/lib/esm/lambdas/lambda-utils/QpqWarmLambdaEvent.d.ts +0 -5
  1110. package/lib/esm/lambdas/lambda-utils/QpqWarmLambdaEvent.js +0 -2
  1111. package/lib/esm/lambdas/lambda-utils/QpqWarmLambdaEvent.js.map +0 -1
  1112. package/lib/esm/lambdas/lambdaSQSEvent.d.ts +0 -2
  1113. package/lib/esm/lambdas/lambdaSQSEvent.js +0 -13
  1114. package/lib/esm/lambdas/lambdaSQSEvent.js.map +0 -1
  1115. package/lib/esm/logic/acm/findMatchingCertificates.d.ts +0 -1
  1116. package/lib/esm/logic/acm/findMatchingCertificates.js +0 -39
  1117. package/lib/esm/logic/acm/findMatchingCertificates.js.map +0 -1
  1118. package/lib/esm/logic/acm/getDomainValidationOptions.d.ts +0 -2
  1119. package/lib/esm/logic/acm/getDomainValidationOptions.js +0 -27
  1120. package/lib/esm/logic/acm/getDomainValidationOptions.js.map +0 -1
  1121. package/lib/esm/logic/apiGateway/websocketSendMessage.d.ts +0 -1
  1122. package/lib/esm/logic/apiGateway/websocketSendMessage.js.map +0 -1
  1123. package/lib/esm/logic/cognito/getUser.d.ts +0 -10
  1124. package/lib/esm/logic/cognito/getUser.js +0 -26
  1125. package/lib/esm/logic/cognito/getUser.js.map +0 -1
  1126. package/lib/esm/logic/cognito/respondToAuthChallengeChallenge.d.ts +0 -3
  1127. package/lib/esm/logic/cognito/respondToAuthChallengeChallenge.js.map +0 -1
  1128. package/lib/esm/logic/cognito/utils/transformCognitoResponse.d.ts +0 -5
  1129. package/lib/esm/logic/cognito/utils/transformCognitoResponse.js +0 -42
  1130. package/lib/esm/logic/cognito/utils/transformCognitoResponse.js.map +0 -1
  1131. package/lib/esm/logic/cognito/verifyJwt.d.ts +0 -1
  1132. package/lib/esm/logic/cognito/verifyJwt.js +0 -7
  1133. package/lib/esm/logic/cognito/verifyJwt.js.map +0 -1
  1134. package/lib/esm/logic/dynamo/convertObjectToDynamoMap.d.ts +0 -1
  1135. package/lib/esm/logic/dynamo/convertObjectToDynamoMap.js +0 -64
  1136. package/lib/esm/logic/dynamo/convertObjectToDynamoMap.js.map +0 -1
  1137. package/lib/esm/logic/dynamo/getLogByCorrelation.d.ts +0 -2
  1138. package/lib/esm/logic/dynamo/getLogByCorrelation.js +0 -40
  1139. package/lib/esm/logic/dynamo/getLogByCorrelation.js.map +0 -1
  1140. package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.d.ts +0 -2
  1141. package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.js +0 -50
  1142. package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.js.map +0 -1
  1143. package/lib/esm/logic/dynamo/getPagedItemsOverRange.d.ts +0 -2
  1144. package/lib/esm/logic/dynamo/getPagedItemsOverRange.js +0 -53
  1145. package/lib/esm/logic/dynamo/getPagedItemsOverRange.js.map +0 -1
  1146. package/lib/esm/logic/dynamo/logs/index.d.ts +0 -1
  1147. package/lib/esm/logic/dynamo/logs/index.js +0 -2
  1148. package/lib/esm/logic/dynamo/logs/index.js.map +0 -1
  1149. package/lib/esm/logic/dynamo/logs/utils/index.js +0 -3
  1150. package/lib/esm/logic/dynamo/logs/utils/index.js.map +0 -1
  1151. package/lib/esm/logic/dynamo/logs/utils/lastEvaluatedKeyToString.d.ts +0 -1
  1152. package/lib/esm/logic/dynamo/logs/utils/lastEvaluatedKeyToString.js.map +0 -1
  1153. package/lib/esm/logic/dynamo/logs/utils/stringToLastEvaluatedKey.d.ts +0 -2
  1154. package/lib/esm/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js +0 -4
  1155. package/lib/esm/logic/dynamo/logs/utils/stringToLastEvaluatedKey.js.map +0 -1
  1156. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +0 -10
  1157. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +0 -186
  1158. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js.map +0 -1
  1159. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +0 -11
  1160. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +0 -138
  1161. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js.map +0 -1
  1162. package/lib/esm/logic/dynamo/utils/qpqPagedDataToItems.d.ts +0 -4
  1163. package/lib/esm/logic/dynamo/utils/qpqPagedDataToItems.js +0 -6
  1164. package/lib/esm/logic/dynamo/utils/qpqPagedDataToItems.js.map +0 -1
  1165. package/lib/esm/runtimeConfig/QPQAWSResourceMap.d.ts +0 -4
  1166. package/lib/esm/runtimeConfig/QPQAWSResourceMap.js +0 -2
  1167. package/lib/esm/runtimeConfig/QPQAWSResourceMap.js.map +0 -1
  1168. package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.d.ts +0 -4
  1169. package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js +0 -13
  1170. package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { KvsKey } from 'quidproquo-core';
2
- export interface PutItemOptions {
1
+ import { KvsKey, KvsObjectDataType } from 'quidproquo-core';
2
+ export type PutItemOptions = {
3
3
  expires?: number;
4
4
  ifNotExistsAttribute?: string;
5
- }
6
- export declare function putItem<Item, T extends object = any>(tableName: string, item: Item, attributes: KvsKey[], options: PutItemOptions, region: string): Promise<void>;
5
+ };
6
+ export declare function putItem(tableName: string, item: KvsObjectDataType, attributes: KvsKey[], options: PutItemOptions, region: string): Promise<void>;
@@ -13,26 +13,9 @@ exports.putItem = putItem;
13
13
  const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
14
14
  const createAwsClient_1 = require("../createAwsClient");
15
15
  const qpqDynamoOrm_1 = require("./qpqDynamoOrm");
16
- // We currently only support objects as root items in dynamo
17
- // Storing a list (array) as the root of your DynamoDB record is indeed possible,
18
- // but there are some caveats. One of the main challenges is that DynamoDB doesn't support
19
- // complex operations on list items. For instance, you can't perform a conditional update or
20
- // delete on a specific item in the list based on its value. However, you can read and write
21
- // entire lists, and you can append items to a list with an update operation.
22
- //
23
- // TODO?: support lists as root items in dynamo ~ Probably not worth it
24
- // a root list probably should be a table!
25
- // Something like this:
26
- // const convertObjectOrListToDynamoMap = (value: KvsObjectDataType | KvsListDataType): AttributeValue => {
27
- // const attributeValue = buildAttributeValue(value);
28
- // if ('M' in attributeValue) {
29
- // return attributeValue.M!;
30
- // }
31
- // if ('L' in attributeValue) {
32
- // return attributeValue.L!;
33
- // }
34
- // throw new Error("Value must be an object or a list");
35
- // }
16
+ // Root items must be objects. A root-level list is technically storable, but
17
+ // DynamoDB cannot conditionally update or delete individual list elements,
18
+ // and a root list is usually better modelled as its own table.
36
19
  const convertObjectToDynamoItem = (obj) => {
37
20
  return (0, qpqDynamoOrm_1.buildAttributeValue)(obj).M;
38
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"putItem.js","sourceRoot":"","sources":["../../../../src/logic/dynamo/putItem.ts"],"names":[],"mappings":";;;;;;;;;;;AA2CA,0BAqBC;AA9DD,8DAA0F;AAE1F,wDAAqD;AACrD,iDAAqD;AAarD,4DAA4D;AAC5D,iFAAiF;AACjF,0FAA0F;AAC1F,4FAA4F;AAC5F,4FAA4F;AAC5F,6EAA6E;AAC7E,EAAE;AACF,uEAAuE;AACvE,0CAA0C;AAC1C,uBAAuB;AACvB,2GAA2G;AAC3G,uDAAuD;AACvD,iCAAiC;AACjC,gCAAgC;AAChC,MAAM;AACN,iCAAiC;AACjC,gCAAgC;AAChC,MAAM;AACN,0DAA0D;AAC1D,IAAI;AAEJ,MAAM,yBAAyB,GAAG,CAAC,GAAsB,EAAkC,EAAE;IAC3F,OAAO,IAAA,kCAAmB,EAAC,GAAG,CAAC,CAAC,CAAE,CAAC;AACrC,CAAC,CAAC;AAEF,SAAsB,OAAO,CAC3B,SAAiB,EACjB,IAAU,EACV,UAAoB,EACpB,OAAuB,EACvB,MAAc;;QAEd,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,gCAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAEnE,MAAM,cAAc,CAAC,IAAI,CACvB,IAAI,gCAAc,iBAChB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,yBAAyB,CAAC,IAAyB,CAAC,IACvD,CAAC,OAAO,CAAC,oBAAoB;YAC9B,CAAC,CAAC;gBACE,mBAAmB,EAAE,gCAAgC;gBACrD,wBAAwB,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,oBAAoB,EAAE;aACvE;YACH,CAAC,CAAC,EAAE,CAAC,EACP,CACH,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { KvsKey, KvsObjectDataType } from 'quidproquo-core';\n\nimport { AttributeValue, DynamoDBClient, PutItemCommand } from '@aws-sdk/client-dynamodb';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { buildAttributeValue } from './qpqDynamoOrm';\n\nexport interface PutItemOptions {\n expires?: number;\n\n // When set, the put becomes a conditional insert: it fails with\n // ConditionalCheckFailedException if an item with the same primary key\n // already exists. The value is the attribute name to condition on (any\n // key attribute works the condition evaluates against the item at the\n // full primary key).\n ifNotExistsAttribute?: string;\n}\n\n// We currently only support objects as root items in dynamo\n// Storing a list (array) as the root of your DynamoDB record is indeed possible,\n// but there are some caveats. One of the main challenges is that DynamoDB doesn't support\n// complex operations on list items. For instance, you can't perform a conditional update or\n// delete on a specific item in the list based on its value. However, you can read and write\n// entire lists, and you can append items to a list with an update operation.\n//\n// TODO?: support lists as root items in dynamo ~ Probably not worth it\n// a root list probably should be a table!\n// Something like this:\n// const convertObjectOrListToDynamoMap = (value: KvsObjectDataType | KvsListDataType): AttributeValue => {\n// const attributeValue = buildAttributeValue(value);\n// if ('M' in attributeValue) {\n// return attributeValue.M!;\n// }\n// if ('L' in attributeValue) {\n// return attributeValue.L!;\n// }\n// throw new Error(\"Value must be an object or a list\");\n// }\n\nconst convertObjectToDynamoItem = (obj: KvsObjectDataType): Record<string, AttributeValue> => {\n return buildAttributeValue(obj).M!;\n};\n\nexport async function putItem<Item, T extends object = any>(\n tableName: string,\n item: Item,\n attributes: KvsKey[],\n options: PutItemOptions,\n region: string,\n): Promise<void> {\n const dynamoDBClient = createAwsClient(DynamoDBClient, { region });\n\n await dynamoDBClient.send(\n new PutItemCommand({\n TableName: tableName,\n Item: convertObjectToDynamoItem(item as KvsObjectDataType),\n ...(options.ifNotExistsAttribute\n ? {\n ConditionExpression: 'attribute_not_exists(#ineAttr)',\n ExpressionAttributeNames: { '#ineAttr': options.ifNotExistsAttribute },\n }\n : {}),\n }),\n );\n}\n"]}
1
+ {"version":3,"file":"putItem.js","sourceRoot":"","sources":["../../../../src/logic/dynamo/putItem.ts"],"names":[],"mappings":";;;;;;;;;;;AA6BA,0BAqBC;AAhDD,8DAA0F;AAE1F,wDAAqD;AACrD,iDAAqD;AAiBrD,6EAA6E;AAC7E,2EAA2E;AAC3E,+DAA+D;AAC/D,MAAM,yBAAyB,GAAG,CAAC,GAAsB,EAAkC,EAAE;IAC3F,OAAO,IAAA,kCAAmB,EAAC,GAAG,CAAC,CAAC,CAAE,CAAC;AACrC,CAAC,CAAC;AAEF,SAAsB,OAAO,CAC3B,SAAiB,EACjB,IAAuB,EACvB,UAAoB,EACpB,OAAuB,EACvB,MAAc;;QAEd,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,gCAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAEnE,MAAM,cAAc,CAAC,IAAI,CACvB,IAAI,gCAAc,iBAChB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC,IAClC,CAAC,OAAO,CAAC,oBAAoB;YAC9B,CAAC,CAAC;gBACE,mBAAmB,EAAE,gCAAgC;gBACrD,wBAAwB,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,oBAAoB,EAAE;aACvE;YACH,CAAC,CAAC,EAAE,CAAC,EACP,CACH,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { KvsKey, KvsObjectDataType } from 'quidproquo-core';\n\nimport { AttributeValue, DynamoDBClient, PutItemCommand } from '@aws-sdk/client-dynamodb';\n\nimport { createAwsClient } from '../createAwsClient';\nimport { buildAttributeValue } from './qpqDynamoOrm';\n\nexport type PutItemOptions = {\n // Requested TTL in seconds. Not currently applied: the table's ttlAttribute\n // name is not plumbed through to this call, so the value is silently\n // dropped. Wire storeConfig.ttlAttribute through and write the epoch expiry\n // before relying on it.\n expires?: number;\n\n // When set, the put becomes a conditional insert: it fails with\n // ConditionalCheckFailedException if an item with the same primary key\n // already exists. The value is the attribute name to condition on (any\n // key attribute works: the condition evaluates against the item at the\n // full primary key).\n ifNotExistsAttribute?: string;\n};\n\n// Root items must be objects. A root-level list is technically storable, but\n// DynamoDB cannot conditionally update or delete individual list elements,\n// and a root list is usually better modelled as its own table.\nconst convertObjectToDynamoItem = (obj: KvsObjectDataType): Record<string, AttributeValue> => {\n return buildAttributeValue(obj).M!;\n};\n\nexport async function putItem(\n tableName: string,\n item: KvsObjectDataType,\n attributes: KvsKey[],\n options: PutItemOptions,\n region: string,\n): Promise<void> {\n const dynamoDBClient = createAwsClient(DynamoDBClient, { region });\n\n await dynamoDBClient.send(\n new PutItemCommand({\n TableName: tableName,\n Item: convertObjectToDynamoItem(item),\n ...(options.ifNotExistsAttribute\n ? {\n ConditionExpression: 'attribute_not_exists(#ineAttr)',\n ExpressionAttributeNames: { '#ineAttr': options.ifNotExistsAttribute },\n }\n : {}),\n }),\n );\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { KvsAdvancedDataType } from 'quidproquo-core';
2
+ import { AttributeValue } from '@aws-sdk/client-dynamodb';
3
+ /**
4
+ * Convert a kvs value to its DynamoDB AttributeValue form. Recurses into
5
+ * arrays and objects; object members with an undefined value are dropped
6
+ * (DynamoDB has no representation for undefined).
7
+ */
8
+ export declare const buildAttributeValue: (value: KvsAdvancedDataType) => AttributeValue;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildAttributeValue = void 0;
4
+ /**
5
+ * Convert a kvs value to its DynamoDB AttributeValue form. Recurses into
6
+ * arrays and objects; object members with an undefined value are dropped
7
+ * (DynamoDB has no representation for undefined).
8
+ */
9
+ const buildAttributeValue = (value) => {
10
+ const valueType = typeof value;
11
+ switch (valueType) {
12
+ case 'string':
13
+ return { S: value };
14
+ case 'number':
15
+ return { N: value.toString() };
16
+ case 'boolean':
17
+ return { BOOL: value };
18
+ case 'object':
19
+ if (Array.isArray(value)) {
20
+ return {
21
+ L: value.map((item) => (0, exports.buildAttributeValue)(item)),
22
+ };
23
+ }
24
+ else if (value !== null) {
25
+ const objectKeyValuePairs = Object.entries(value)
26
+ .filter(([, memberValue]) => memberValue !== undefined)
27
+ .map(([memberKey, memberValue]) => [memberKey, (0, exports.buildAttributeValue)(memberValue)]);
28
+ return {
29
+ M: Object.fromEntries(objectKeyValuePairs),
30
+ };
31
+ }
32
+ else {
33
+ return { NULL: true };
34
+ }
35
+ default:
36
+ throw new Error(`Unsupported data type in kvs expression: ${valueType}`);
37
+ }
38
+ };
39
+ exports.buildAttributeValue = buildAttributeValue;
40
+ //# sourceMappingURL=buildAttributeValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildAttributeValue.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/buildAttributeValue.ts"],"names":[],"mappings":";;;AAIA;;;;GAIG;AACI,MAAM,mBAAmB,GAAG,CAAC,KAA0B,EAAkB,EAAE;IAChF,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC;IAC/B,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,QAAQ;YACX,OAAO,EAAE,CAAC,EAAE,KAAe,EAAE,CAAC;QAEhC,KAAK,QAAQ;YACX,OAAO,EAAE,CAAC,EAAG,KAAgB,CAAC,QAAQ,EAAE,EAAE,CAAC;QAE7C,KAAK,SAAS;YACZ,OAAO,EAAE,IAAI,EAAE,KAAgB,EAAE,CAAC;QAEpC,KAAK,QAAQ;YACX,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,OAAO;oBACL,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;iBAClD,CAAC;YACJ,CAAC;iBAAM,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBAC1B,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;qBAC9C,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,WAAW,KAAK,SAAS,CAAC;qBACtD,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,EAAE,IAAA,2BAAmB,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBAEpF,OAAO;oBACL,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,mBAAmB,CAAC;iBAC3C,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YACxB,CAAC;QACH;YACE,MAAM,IAAI,KAAK,CAAC,4CAA4C,SAAS,EAAE,CAAC,CAAC;IAC7E,CAAC;AACH,CAAC,CAAC;AA/BW,QAAA,mBAAmB,uBA+B9B","sourcesContent":["import { KvsAdvancedDataType } from 'quidproquo-core';\n\nimport { AttributeValue } from '@aws-sdk/client-dynamodb';\n\n/**\n * Convert a kvs value to its DynamoDB AttributeValue form. Recurses into\n * arrays and objects; object members with an undefined value are dropped\n * (DynamoDB has no representation for undefined).\n */\nexport const buildAttributeValue = (value: KvsAdvancedDataType): AttributeValue => {\n const valueType = typeof value;\n switch (valueType) {\n case 'string':\n return { S: value as string };\n\n case 'number':\n return { N: (value as number).toString() };\n\n case 'boolean':\n return { BOOL: value as boolean };\n\n case 'object':\n if (Array.isArray(value)) {\n return {\n L: value.map((item) => buildAttributeValue(item)),\n };\n } else if (value !== null) {\n const objectKeyValuePairs = Object.entries(value)\n .filter(([, memberValue]) => memberValue !== undefined)\n .map(([memberKey, memberValue]) => [memberKey, buildAttributeValue(memberValue)]);\n\n return {\n M: Object.fromEntries(objectKeyValuePairs),\n };\n } else {\n return { NULL: true };\n }\n default:\n throw new Error(`Unsupported data type in kvs expression: ${valueType}`);\n }\n};\n"]}
@@ -0,0 +1,9 @@
1
+ import { KvsQueryOperation } from 'quidproquo-core';
2
+ /**
3
+ * Render a kvs query tree as a DynamoDB expression string. Attribute names and
4
+ * values are replaced with hashed placeholders; pair the result with
5
+ * buildExpressionAttributeNames / buildExpressionAttributeValues over the same
6
+ * queries. Returns undefined (not null) when there is no query so the result
7
+ * can feed optional SDK command fields (FilterExpression and friends) directly.
8
+ */
9
+ export declare const buildDynamoQueryExpression: (query?: KvsQueryOperation) => string | undefined;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildDynamoQueryExpression = void 0;
4
+ const quidproquo_core_1 = require("quidproquo-core");
5
+ const getItemName_1 = require("./getItemName");
6
+ const getValueName_1 = require("./getValueName");
7
+ const isKvsLogicalOperator_1 = require("./isKvsLogicalOperator");
8
+ const isKvsQueryCondition_1 = require("./isKvsQueryCondition");
9
+ // Fail fast on a missing value: rendering a placeholder for undefined would
10
+ // build an expression whose placeholder never appears in
11
+ // ExpressionAttributeValues, which DynamoDB rejects with a confusing error.
12
+ const getRequiredValueName = (query, value) => {
13
+ if (value === undefined) {
14
+ throw new Error(`Invalid query condition ${query.operation}: missing value for key [${query.key}]`);
15
+ }
16
+ return (0, getValueName_1.getValueName)(value);
17
+ };
18
+ const comparisonOperators = {
19
+ [quidproquo_core_1.KvsQueryOperationType.Equal]: '=',
20
+ [quidproquo_core_1.KvsQueryOperationType.NotEqual]: '<>',
21
+ [quidproquo_core_1.KvsQueryOperationType.LessThan]: '<',
22
+ [quidproquo_core_1.KvsQueryOperationType.LessThanOrEqual]: '<=',
23
+ [quidproquo_core_1.KvsQueryOperationType.GreaterThan]: '>',
24
+ [quidproquo_core_1.KvsQueryOperationType.GreaterThanOrEqual]: '>=',
25
+ };
26
+ const buildConditionExpression = (query) => {
27
+ const itemName = (0, getItemName_1.getItemName)(query.key);
28
+ switch (query.operation) {
29
+ case quidproquo_core_1.KvsQueryOperationType.Equal:
30
+ case quidproquo_core_1.KvsQueryOperationType.NotEqual:
31
+ case quidproquo_core_1.KvsQueryOperationType.LessThan:
32
+ case quidproquo_core_1.KvsQueryOperationType.LessThanOrEqual:
33
+ case quidproquo_core_1.KvsQueryOperationType.GreaterThan:
34
+ case quidproquo_core_1.KvsQueryOperationType.GreaterThanOrEqual:
35
+ return `${itemName} ${comparisonOperators[query.operation]} ${getRequiredValueName(query, query.valueA)}`;
36
+ case quidproquo_core_1.KvsQueryOperationType.Between:
37
+ return `${itemName} BETWEEN ${getRequiredValueName(query, query.valueA)} AND ${getRequiredValueName(query, query.valueB)}`;
38
+ case quidproquo_core_1.KvsQueryOperationType.In:
39
+ if (!Array.isArray(query.valueA)) {
40
+ throw new Error(`Invalid query condition ${query.operation}: expected an array of values for key [${query.key}]`);
41
+ }
42
+ return `${itemName} IN (${query.valueA.map((value) => (0, getValueName_1.getValueName)(value)).join(', ')})`;
43
+ case quidproquo_core_1.KvsQueryOperationType.Exists:
44
+ return `attribute_exists(${itemName})`;
45
+ case quidproquo_core_1.KvsQueryOperationType.NotExists:
46
+ return `attribute_not_exists(${itemName})`;
47
+ case quidproquo_core_1.KvsQueryOperationType.BeginsWith:
48
+ return `begins_with(${itemName}, ${getRequiredValueName(query, query.valueA)})`;
49
+ case quidproquo_core_1.KvsQueryOperationType.Contains:
50
+ return `contains(${itemName}, ${getRequiredValueName(query, query.valueA)})`;
51
+ case quidproquo_core_1.KvsQueryOperationType.NotContains:
52
+ return `NOT contains(${itemName}, ${getRequiredValueName(query, query.valueA)})`;
53
+ default:
54
+ throw new Error(`Invalid query operation: ${JSON.stringify(query)}`);
55
+ }
56
+ };
57
+ const buildLogicalExpression = (query) => {
58
+ const joiner = query.operation === quidproquo_core_1.KvsLogicalOperatorType.And ? ' AND ' : ' OR ';
59
+ return query.conditions.map((condition) => `(${buildQueryOperationExpression(condition)})`).join(joiner);
60
+ };
61
+ const buildQueryOperationExpression = (query) => {
62
+ if ((0, isKvsQueryCondition_1.isKvsQueryCondition)(query)) {
63
+ return buildConditionExpression(query);
64
+ }
65
+ if ((0, isKvsLogicalOperator_1.isKvsLogicalOperator)(query)) {
66
+ return buildLogicalExpression(query);
67
+ }
68
+ throw new Error(`Invalid query operation: ${JSON.stringify(query)}`);
69
+ };
70
+ /**
71
+ * Render a kvs query tree as a DynamoDB expression string. Attribute names and
72
+ * values are replaced with hashed placeholders; pair the result with
73
+ * buildExpressionAttributeNames / buildExpressionAttributeValues over the same
74
+ * queries. Returns undefined (not null) when there is no query so the result
75
+ * can feed optional SDK command fields (FilterExpression and friends) directly.
76
+ */
77
+ const buildDynamoQueryExpression = (query) => {
78
+ if (!query) {
79
+ return undefined;
80
+ }
81
+ return buildQueryOperationExpression(query);
82
+ };
83
+ exports.buildDynamoQueryExpression = buildDynamoQueryExpression;
84
+ //# sourceMappingURL=buildDynamoQueryExpression.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildDynamoQueryExpression.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/buildDynamoQueryExpression.ts"],"names":[],"mappings":"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","sourcesContent":["import {\n KvsAdvancedDataType,\n KvsLogicalOperator,\n KvsLogicalOperatorType,\n KvsQueryCondition,\n KvsQueryOperation,\n KvsQueryOperationType,\n} from 'quidproquo-core';\n\nimport { getItemName } from './getItemName';\nimport { getValueName } from './getValueName';\nimport { isKvsLogicalOperator } from './isKvsLogicalOperator';\nimport { isKvsQueryCondition } from './isKvsQueryCondition';\n\n// Fail fast on a missing value: rendering a placeholder for undefined would\n// build an expression whose placeholder never appears in\n// ExpressionAttributeValues, which DynamoDB rejects with a confusing error.\nconst getRequiredValueName = (query: KvsQueryCondition, value?: KvsAdvancedDataType): string => {\n if (value === undefined) {\n throw new Error(`Invalid query condition ${query.operation}: missing value for key [${query.key}]`);\n }\n\n return getValueName(value);\n};\n\nconst comparisonOperators: Partial<Record<KvsQueryOperationType, string>> = {\n [KvsQueryOperationType.Equal]: '=',\n [KvsQueryOperationType.NotEqual]: '<>',\n [KvsQueryOperationType.LessThan]: '<',\n [KvsQueryOperationType.LessThanOrEqual]: '<=',\n [KvsQueryOperationType.GreaterThan]: '>',\n [KvsQueryOperationType.GreaterThanOrEqual]: '>=',\n};\n\nconst buildConditionExpression = (query: KvsQueryCondition): string => {\n const itemName = getItemName(query.key);\n\n switch (query.operation) {\n case KvsQueryOperationType.Equal:\n case KvsQueryOperationType.NotEqual:\n case KvsQueryOperationType.LessThan:\n case KvsQueryOperationType.LessThanOrEqual:\n case KvsQueryOperationType.GreaterThan:\n case KvsQueryOperationType.GreaterThanOrEqual:\n return `${itemName} ${comparisonOperators[query.operation]} ${getRequiredValueName(query, query.valueA)}`;\n\n case KvsQueryOperationType.Between:\n return `${itemName} BETWEEN ${getRequiredValueName(query, query.valueA)} AND ${getRequiredValueName(query, query.valueB)}`;\n\n case KvsQueryOperationType.In:\n if (!Array.isArray(query.valueA)) {\n throw new Error(`Invalid query condition ${query.operation}: expected an array of values for key [${query.key}]`);\n }\n return `${itemName} IN (${query.valueA.map((value) => getValueName(value)).join(', ')})`;\n\n case KvsQueryOperationType.Exists:\n return `attribute_exists(${itemName})`;\n\n case KvsQueryOperationType.NotExists:\n return `attribute_not_exists(${itemName})`;\n\n case KvsQueryOperationType.BeginsWith:\n return `begins_with(${itemName}, ${getRequiredValueName(query, query.valueA)})`;\n\n case KvsQueryOperationType.Contains:\n return `contains(${itemName}, ${getRequiredValueName(query, query.valueA)})`;\n\n case KvsQueryOperationType.NotContains:\n return `NOT contains(${itemName}, ${getRequiredValueName(query, query.valueA)})`;\n\n default:\n throw new Error(`Invalid query operation: ${JSON.stringify(query)}`);\n }\n};\n\nconst buildLogicalExpression = (query: KvsLogicalOperator): string => {\n const joiner = query.operation === KvsLogicalOperatorType.And ? ' AND ' : ' OR ';\n\n return query.conditions.map((condition) => `(${buildQueryOperationExpression(condition)})`).join(joiner);\n};\n\nconst buildQueryOperationExpression = (query: KvsQueryOperation): string => {\n if (isKvsQueryCondition(query)) {\n return buildConditionExpression(query);\n }\n\n if (isKvsLogicalOperator(query)) {\n return buildLogicalExpression(query);\n }\n\n throw new Error(`Invalid query operation: ${JSON.stringify(query)}`);\n};\n\n/**\n * Render a kvs query tree as a DynamoDB expression string. Attribute names and\n * values are replaced with hashed placeholders; pair the result with\n * buildExpressionAttributeNames / buildExpressionAttributeValues over the same\n * queries. Returns undefined (not null) when there is no query so the result\n * can feed optional SDK command fields (FilterExpression and friends) directly.\n */\nexport const buildDynamoQueryExpression = (query?: KvsQueryOperation): string | undefined => {\n if (!query) {\n return undefined;\n }\n\n return buildQueryOperationExpression(query);\n};\n"]}
@@ -0,0 +1,9 @@
1
+ import { KvsUpdate } from 'quidproquo-core';
2
+ /**
3
+ * Render a kvs update as a DynamoDB UpdateExpression, grouping actions into
4
+ * SET / REMOVE / ADD / DELETE clauses. Attribute names and values are replaced
5
+ * with hashed placeholders; pair the result with
6
+ * buildUpdateExpressionAttributeNames / buildUpdateExpressionAttributeValues
7
+ * over the same updates.
8
+ */
9
+ export declare const buildDynamoUpdateExpression: (updates: KvsUpdate) => string;
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildDynamoUpdateExpression = void 0;
4
+ const quidproquo_core_1 = require("quidproquo-core");
5
+ const getItemName_1 = require("./getItemName");
6
+ const getValueName_1 = require("./getValueName");
7
+ const getNestedItemName = (attributePath) => {
8
+ if (!Array.isArray(attributePath)) {
9
+ return (0, getItemName_1.getItemName)(attributePath);
10
+ }
11
+ const parts = attributePath.map((segment) => {
12
+ if (typeof segment === 'string') {
13
+ return `.${(0, getItemName_1.getItemName)(segment)}`;
14
+ }
15
+ // Only non-negative integers may be interpolated raw: anything else that
16
+ // sneaks past the types (via JSON payloads) would be stringified straight
17
+ // into the update expression, which is expression injection.
18
+ if (typeof segment === 'number' && Number.isInteger(segment) && segment >= 0) {
19
+ return `[${segment}]`;
20
+ }
21
+ throw new Error(`Invalid attribute path segment: ${JSON.stringify(segment)}`);
22
+ });
23
+ return parts.join('').replace(/^\./, '');
24
+ };
25
+ const buildSetPart = (update) => {
26
+ if (update.value === undefined || update.value === null) {
27
+ throw new Error("Value must be provided for 'SET' action");
28
+ }
29
+ return `${getNestedItemName(update.attributePath)} = ${(0, getValueName_1.getValueName)(update.value)}`;
30
+ };
31
+ const buildRemovePart = (update) => {
32
+ return getNestedItemName(update.attributePath);
33
+ };
34
+ const buildAddPart = (update) => {
35
+ if (update.value === undefined || update.value === null) {
36
+ throw new Error("Value must be provided for 'ADD' action");
37
+ }
38
+ return `${getNestedItemName(update.attributePath)} ${(0, getValueName_1.getValueName)(update.value)}`;
39
+ };
40
+ const buildDeletePart = (update) => {
41
+ if (update.value !== undefined && update.value !== null) {
42
+ return `${getNestedItemName(update.attributePath)} ${(0, getValueName_1.getValueName)(update.value)}`;
43
+ }
44
+ return getNestedItemName(update.attributePath);
45
+ };
46
+ const buildSetIfNotExistsPart = (update) => {
47
+ if (update.value === undefined || update.value === null) {
48
+ throw new Error("Value must be provided for 'SetIfNotExists' action");
49
+ }
50
+ const attrPath = getNestedItemName(update.attributePath);
51
+ return `${attrPath} = if_not_exists(${attrPath}, ${(0, getValueName_1.getValueName)(update.value)})`;
52
+ };
53
+ const buildIncrementPart = (update) => {
54
+ if (update.value === undefined || update.value === null) {
55
+ throw new Error("Increment value must be provided for 'Increment' action");
56
+ }
57
+ if (update.defaultValue === undefined || update.defaultValue === null) {
58
+ throw new Error("Default value must be provided for 'Increment' action");
59
+ }
60
+ const attrPath = getNestedItemName(update.attributePath);
61
+ return `${attrPath} = if_not_exists(${attrPath}, ${(0, getValueName_1.getValueName)(update.defaultValue)}) + ${(0, getValueName_1.getValueName)(update.value)}`;
62
+ };
63
+ const buildUpdateExpressionPart = (update) => {
64
+ switch (update.action) {
65
+ case quidproquo_core_1.KvsUpdateActionType.Set:
66
+ return buildSetPart(update);
67
+ case quidproquo_core_1.KvsUpdateActionType.Remove:
68
+ return buildRemovePart(update);
69
+ case quidproquo_core_1.KvsUpdateActionType.Add:
70
+ return buildAddPart(update);
71
+ case quidproquo_core_1.KvsUpdateActionType.Delete:
72
+ return buildDeletePart(update);
73
+ case quidproquo_core_1.KvsUpdateActionType.SetIfNotExists:
74
+ return buildSetIfNotExistsPart(update);
75
+ case quidproquo_core_1.KvsUpdateActionType.Increment:
76
+ return buildIncrementPart(update);
77
+ default:
78
+ throw new Error(`Invalid update action type: ${update.action}`);
79
+ }
80
+ };
81
+ // SetIfNotExists and Increment render as SET clauses too.
82
+ const setActionTypes = [quidproquo_core_1.KvsUpdateActionType.Set, quidproquo_core_1.KvsUpdateActionType.SetIfNotExists, quidproquo_core_1.KvsUpdateActionType.Increment];
83
+ const buildClause = (clause, actionTypes, kvsUpdate) => {
84
+ const actions = kvsUpdate.filter((update) => actionTypes.includes(update.action));
85
+ if (actions.length === 0) {
86
+ return '';
87
+ }
88
+ return `${clause} ${actions.map((update) => buildUpdateExpressionPart(update)).join(', ')}`;
89
+ };
90
+ /**
91
+ * Render a kvs update as a DynamoDB UpdateExpression, grouping actions into
92
+ * SET / REMOVE / ADD / DELETE clauses. Attribute names and values are replaced
93
+ * with hashed placeholders; pair the result with
94
+ * buildUpdateExpressionAttributeNames / buildUpdateExpressionAttributeValues
95
+ * over the same updates.
96
+ */
97
+ const buildDynamoUpdateExpression = (updates) => {
98
+ const clauses = [
99
+ buildClause('SET', setActionTypes, updates),
100
+ buildClause('REMOVE', [quidproquo_core_1.KvsUpdateActionType.Remove], updates),
101
+ buildClause('ADD', [quidproquo_core_1.KvsUpdateActionType.Add], updates),
102
+ buildClause('DELETE', [quidproquo_core_1.KvsUpdateActionType.Delete], updates),
103
+ ].filter((expression) => !!expression);
104
+ return clauses.join(' ');
105
+ };
106
+ exports.buildDynamoUpdateExpression = buildDynamoUpdateExpression;
107
+ //# sourceMappingURL=buildDynamoUpdateExpression.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildDynamoUpdateExpression.js","sourceRoot":"","sources":["../../../../../src/logic/dynamo/qpqDynamoOrm/buildDynamoUpdateExpression.ts"],"names":[],"mappings":"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","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,3 @@
1
+ import { KvsQueryCondition, KvsQueryOperation } from 'quidproquo-core';
2
+ /** Flatten a query tree into its leaf conditions, in traversal order. */
3
+ export declare const flattenKvsQueryConditions: (query: KvsQueryOperation) => KvsQueryCondition[];
@@ -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
- export declare const getDynamoTableIndexByConfigAndQuery: <T extends object = any>(setting: KeyValueStoreQPQConfigSetting, query: KvsQueryOperation) => string | undefined;
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>;