quidproquo-actionprocessor-awslambda 0.0.232 → 0.0.233

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/README.md +97 -118
  2. package/lib/commonjs/awsLambdaUtils.d.ts +1 -1
  3. package/lib/commonjs/awsLambdaUtils.js +1 -1
  4. package/lib/commonjs/awsNamingUtils.d.ts +1 -1
  5. package/lib/commonjs/awsNamingUtils.js +4 -7
  6. package/lib/commonjs/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +1 -1
  7. package/lib/commonjs/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +1 -1
  8. package/lib/commonjs/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +1 -1
  9. package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/types.d.ts +2 -2
  10. package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventMatchStoryActionProcessor.js +1 -1
  11. package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/types.d.ts +2 -2
  12. package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/types.d.ts +2 -2
  13. package/lib/commonjs/getActionProcessor/core/event/cognito/createAuthChallenge/types.d.ts +1 -1
  14. package/lib/commonjs/getActionProcessor/core/event/cognito/customMessage/getEventAutoRespondActionProcessor.js +1 -1
  15. package/lib/commonjs/getActionProcessor/core/event/cognito/customMessage/types.d.ts +2 -2
  16. package/lib/commonjs/getActionProcessor/core/event/cognito/defineAuthChallenge/types.d.ts +1 -1
  17. package/lib/commonjs/getActionProcessor/core/event/cognito/index.d.ts +1 -1
  18. package/lib/commonjs/getActionProcessor/core/event/cognito/index.js +1 -1
  19. package/lib/commonjs/getActionProcessor/core/event/cognito/utils/getChallengeSessionFromCognitoTriggerEventSession.d.ts +1 -1
  20. package/lib/commonjs/getActionProcessor/core/event/cognito/verifyAuthChallenge/types.d.ts +2 -2
  21. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventGetRecordsActionProcessor.js +1 -1
  22. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/types.d.ts +1 -1
  23. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/index.d.ts +1 -1
  24. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/index.js +1 -1
  25. package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/types.d.ts +1 -1
  26. package/lib/commonjs/getActionProcessor/core/event/index.d.ts +2 -2
  27. package/lib/commonjs/getActionProcessor/core/event/index.js +2 -2
  28. package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/types.d.ts +1 -1
  29. package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/types.d.ts +2 -2
  30. package/lib/commonjs/getActionProcessor/core/event/sqs/queue/types.d.ts +2 -2
  31. package/lib/commonjs/getActionProcessor/core/event/utils/isAuthValid.js +3 -3
  32. package/lib/commonjs/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +1 -1
  33. package/lib/commonjs/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
  34. package/lib/commonjs/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +1 -1
  35. package/lib/commonjs/getActionProcessor/core/file/getFileReadBinaryContentsActionProcessor.js +1 -1
  36. package/lib/commonjs/getActionProcessor/core/file/getFileReadTextContentsActionProcessor.js +1 -1
  37. package/lib/commonjs/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -2
  38. package/lib/commonjs/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -2
  39. package/lib/commonjs/getActionProcessor/core/file/index.js +2 -2
  40. package/lib/commonjs/getActionProcessor/core/graphDatabase/customActions/getActionProcessor/getGraphDatabaseForNeptuneGetEndpointsActionProcessor.js +1 -1
  41. package/lib/commonjs/getActionProcessor/core/graphDatabase/getGraphDatabaseExecuteOpenCypherQueryActionProcessor.js +1 -1
  42. package/lib/commonjs/getActionProcessor/core/index.d.ts +5 -5
  43. package/lib/commonjs/getActionProcessor/core/index.js +10 -10
  44. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreDeleteActionProcessor.js +1 -1
  45. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreGetActionProcessor.js +1 -1
  46. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreGetAllActionProcessor.js +1 -1
  47. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +1 -1
  48. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +1 -1
  49. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreUpdateActionProcessor.js +1 -1
  50. package/lib/commonjs/getActionProcessor/core/keyValueStore/getKeyValueStoreUpsertActionProcessor.js +1 -1
  51. package/lib/commonjs/getActionProcessor/core/keyValueStore/index.js +2 -2
  52. package/lib/commonjs/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +1 -1
  53. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js +1 -1
  54. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryConfirmForgotPasswordActionProcessor.js +1 -1
  55. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js +1 -1
  56. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryForgotPasswordActionProcessor.js +1 -1
  57. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +1 -1
  58. package/lib/commonjs/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +1 -1
  59. package/lib/commonjs/getActionProcessor/index.js +1 -1
  60. package/lib/commonjs/getActionProcessor/webserver/index.d.ts +1 -1
  61. package/lib/commonjs/getActionProcessor/webserver/index.js +2 -2
  62. package/lib/commonjs/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js +1 -1
  63. package/lib/commonjs/getActionProcessor/webserver/webEntry/getWebEntryInvalidateCacheActionProcessor.js +1 -1
  64. package/lib/commonjs/index.d.ts +5 -5
  65. package/lib/commonjs/index.js +8 -8
  66. package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
  67. package/lib/commonjs/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +1 -1
  68. package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.d.ts +1 -1
  69. package/lib/commonjs/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
  70. package/lib/commonjs/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +1 -1
  71. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +1 -1
  72. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +1 -1
  73. package/lib/commonjs/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +1 -1
  74. package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +1 -1
  75. package/lib/commonjs/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +1 -1
  76. package/lib/commonjs/lambdaHandlers/getS3Event_fileEvent.js +1 -1
  77. package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.d.ts +1 -1
  78. package/lib/commonjs/lambdaHandlers/getSqsEvent_queueEvent.js +1 -1
  79. package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +1 -1
  80. package/lib/commonjs/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +4 -4
  81. package/lib/commonjs/lambdaHandlers/helpers/logger.d.ts +1 -1
  82. package/lib/commonjs/lambdaHandlers/helpers/logger.js +1 -1
  83. package/lib/commonjs/lambdaHandlers/index.d.ts +3 -3
  84. package/lib/commonjs/lambdaHandlers/index.js +3 -3
  85. package/lib/commonjs/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.js +2 -2
  86. package/lib/commonjs/lambdas/apiGatewayEventHandler.js +1 -1
  87. package/lib/commonjs/lambdas/apiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
  88. package/lib/commonjs/lambdas/cloudFrontRequestEvent_originRequest.js +1 -1
  89. package/lib/commonjs/lambdas/customMessageTriggerEvent_createAuthChallenge.js +1 -1
  90. package/lib/commonjs/lambdas/customMessageTriggerEvent_customMessage.js +1 -1
  91. package/lib/commonjs/lambdas/customMessageTriggerEvent_defineAuthChallenge.js +1 -1
  92. package/lib/commonjs/lambdas/customMessageTriggerEvent_verifyAuthChallenge.js +1 -1
  93. package/lib/commonjs/lambdas/dynamicModuleLoader/dynamicModuleLoader.js +1 -1
  94. package/lib/commonjs/lambdas/eventBridgeEvent_recurringSchedule.js +1 -1
  95. package/lib/commonjs/lambdas/eventBridgeEvent_stackDeploy.js +1 -1
  96. package/lib/commonjs/lambdas/lambda-utils/getQpqConfig.js +1 -1
  97. package/lib/commonjs/lambdas/lambda-utils/index.d.ts +1 -1
  98. package/lib/commonjs/lambdas/lambda-utils/index.js +1 -1
  99. package/lib/commonjs/lambdas/lambda-utils/logger.d.ts +1 -1
  100. package/lib/commonjs/lambdas/lambda-utils/logger.js +1 -1
  101. package/lib/commonjs/lambdas/lambdaSQSEvent.js +3 -3
  102. package/lib/commonjs/lambdas/sqsEvent_queueEvent.js +1 -1
  103. package/lib/commonjs/logic/acm/findMatchingCertificates.js +1 -2
  104. package/lib/commonjs/logic/apiGateway/getApiKeys.js +5 -1
  105. package/lib/commonjs/logic/apiGateway/websocketSendMessage.js +3 -3
  106. package/lib/commonjs/logic/cache/memoFuncAsync.js +5 -9
  107. package/lib/commonjs/logic/cloudFront/invalidateCache.js +1 -1
  108. package/lib/commonjs/logic/cloudformation/getExportedValue.js +1 -1
  109. package/lib/commonjs/logic/cognito/authenticateUser.js +5 -3
  110. package/lib/commonjs/logic/cognito/changePassword.js +3 -1
  111. package/lib/commonjs/logic/cognito/confirmForgotPassword.js +5 -3
  112. package/lib/commonjs/logic/cognito/createUser.d.ts +1 -1
  113. package/lib/commonjs/logic/cognito/createUser.js +5 -3
  114. package/lib/commonjs/logic/cognito/forgotPassword.js +4 -2
  115. package/lib/commonjs/logic/cognito/getUser.js +3 -1
  116. package/lib/commonjs/logic/cognito/getUserAttributes.js +4 -2
  117. package/lib/commonjs/logic/cognito/getUserAttributesBySub.js +4 -2
  118. package/lib/commonjs/logic/cognito/getUserPoolClientSecret.js +3 -1
  119. package/lib/commonjs/logic/cognito/index.d.ts +1 -1
  120. package/lib/commonjs/logic/cognito/index.js +1 -1
  121. package/lib/commonjs/logic/cognito/listPagedUsers.d.ts +1 -1
  122. package/lib/commonjs/logic/cognito/listPagedUsers.js +4 -2
  123. package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.d.ts +1 -1
  124. package/lib/commonjs/logic/cognito/listPagedUsersByAttribute.js +4 -2
  125. package/lib/commonjs/logic/cognito/refreshToken.js +5 -3
  126. package/lib/commonjs/logic/cognito/requestEmailVerificationCode.js +3 -1
  127. package/lib/commonjs/logic/cognito/respondToAuthChallengeChallenge.js +5 -3
  128. package/lib/commonjs/logic/cognito/setUserAttributes.js +4 -2
  129. package/lib/commonjs/logic/cognito/setUserPassword.js +3 -1
  130. package/lib/commonjs/logic/cognito/utils/index.d.ts +1 -1
  131. package/lib/commonjs/logic/cognito/utils/transformCognitoResponse.d.ts +2 -2
  132. package/lib/commonjs/logic/cognito/verifyUserEmail.js +3 -1
  133. package/lib/commonjs/logic/dynamo/deleteItem.js +1 -1
  134. package/lib/commonjs/logic/dynamo/getLogChildrenByFromCorrelation.js +1 -1
  135. package/lib/commonjs/logic/dynamo/getPagedItemsOverRange.js +7 -3
  136. package/lib/commonjs/logic/dynamo/index.d.ts +1 -1
  137. package/lib/commonjs/logic/dynamo/index.js +1 -1
  138. package/lib/commonjs/logic/dynamo/putItem.js +1 -1
  139. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +1 -1
  140. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +2 -4
  141. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +1 -1
  142. package/lib/commonjs/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +2 -9
  143. package/lib/commonjs/logic/dynamo/query.js +2 -2
  144. package/lib/commonjs/logic/dynamo/scan.js +2 -2
  145. package/lib/commonjs/logic/dynamo/updateItem.d.ts +1 -1
  146. package/lib/commonjs/logic/dynamo/updateItem.js +1 -1
  147. package/lib/commonjs/logic/parametersManager/setParameter.js +1 -1
  148. package/lib/commonjs/logic/s3/generatePresignedUrl.js +3 -1
  149. package/lib/commonjs/logic/s3/listFiles.js +1 -1
  150. package/lib/commonjs/logic/s3/readBinaryFile.js +5 -1
  151. package/lib/commonjs/logic/s3/s3Utils.d.ts +2 -2
  152. package/lib/commonjs/logic/s3/s3Utils.js +2 -2
  153. package/lib/commonjs/logic/s3/writeBinaryFile.js +1 -1
  154. package/lib/commonjs/logic/s3/writeTextFile.js +1 -1
  155. package/lib/commonjs/logic/secretsManager/getSecret.js +3 -1
  156. package/lib/commonjs/logic/sqs/sendMessages.js +1 -1
  157. package/lib/esm/awsLambdaUtils.d.ts +1 -1
  158. package/lib/esm/awsLambdaUtils.js +1 -1
  159. package/lib/esm/awsNamingUtils.d.ts +1 -1
  160. package/lib/esm/awsNamingUtils.js +4 -7
  161. package/lib/esm/getActionProcessor/core/config/getConfigGetGlobalActionProcessor.js +1 -1
  162. package/lib/esm/getActionProcessor/core/config/getConfigGetParameterActionProcessor.js +2 -2
  163. package/lib/esm/getActionProcessor/core/config/getConfigGetParametersActionProcessor.js +2 -2
  164. package/lib/esm/getActionProcessor/core/config/getConfigGetSecretActionProcessor.js +1 -1
  165. package/lib/esm/getActionProcessor/core/config/getConfigSetParameterActionProcessor.js +2 -2
  166. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventAutoRespondActionProcessor.js +1 -1
  167. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventGetRecordsActionProcessor.js +1 -1
  168. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventGetStorySessionActionProcessor.js +1 -1
  169. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventMatchStoryActionProcessor.js +1 -1
  170. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/getEventTransformResponseResultActionProcessor.js +1 -1
  171. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/api/types.d.ts +2 -2
  172. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventAutoRespondActionProcessor.js +1 -1
  173. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventGetRecordsActionProcessor.js +1 -1
  174. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventGetStorySessionActionProcessor.js +1 -1
  175. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventMatchStoryActionProcessor.js +2 -2
  176. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/getEventTransformResponseResultActionProcessor.js +1 -1
  177. package/lib/esm/getActionProcessor/core/event/apiGatwayEvent/websocket/types.d.ts +2 -2
  178. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventAutoRespondActionProcessor.js +1 -1
  179. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventGetRecordsActionProcessor.js +5 -2
  180. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventGetStorySessionActionProcessor.js +1 -1
  181. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventMatchStoryActionProcessor.js +1 -1
  182. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/getEventTransformResponseResultActionProcessor.js +1 -1
  183. package/lib/esm/getActionProcessor/core/event/cloudFrontOriginRequest/types.d.ts +2 -2
  184. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventAutoRespondActionProcessor.js +1 -1
  185. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
  186. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventGetStorySessionActionProcessor.js +1 -1
  187. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventMatchStoryActionProcessor.js +1 -1
  188. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/getEventTransformResponseResultActionProcessor.js +1 -1
  189. package/lib/esm/getActionProcessor/core/event/cognito/createAuthChallenge/types.d.ts +1 -1
  190. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventAutoRespondActionProcessor.js +2 -2
  191. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventGetRecordsActionProcessor.js +1 -1
  192. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventGetStorySessionActionProcessor.js +1 -1
  193. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventMatchStoryActionProcessor.js +1 -1
  194. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/getEventTransformResponseResultActionProcessor.js +1 -1
  195. package/lib/esm/getActionProcessor/core/event/cognito/customMessage/types.d.ts +2 -2
  196. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventAutoRespondActionProcessor.js +1 -1
  197. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
  198. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventGetStorySessionActionProcessor.js +1 -1
  199. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventMatchStoryActionProcessor.js +1 -1
  200. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/getEventTransformResponseResultActionProcessor.js +1 -1
  201. package/lib/esm/getActionProcessor/core/event/cognito/defineAuthChallenge/types.d.ts +1 -1
  202. package/lib/esm/getActionProcessor/core/event/cognito/index.d.ts +1 -1
  203. package/lib/esm/getActionProcessor/core/event/cognito/index.js +1 -1
  204. package/lib/esm/getActionProcessor/core/event/cognito/utils/getChallengeSessionFromCognitoTriggerEventSession.d.ts +1 -1
  205. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventAutoRespondActionProcessor.js +1 -1
  206. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetRecordsActionProcessor.js +1 -1
  207. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventGetStorySessionActionProcessor.js +1 -1
  208. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventMatchStoryActionProcessor.js +1 -1
  209. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/getEventTransformResponseResultActionProcessor.js +1 -1
  210. package/lib/esm/getActionProcessor/core/event/cognito/verifyAuthChallenge/types.d.ts +2 -2
  211. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventAutoRespondActionProcessor.js +1 -1
  212. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventGetRecordsActionProcessor.js +2 -2
  213. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventGetStorySessionActionProcessor.js +1 -1
  214. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventMatchStoryActionProcessor.js +1 -1
  215. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/getEventTransformResponseResultActionProcessor.js +1 -1
  216. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/deployStack/types.d.ts +1 -1
  217. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/index.d.ts +1 -1
  218. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/index.js +1 -1
  219. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventAutoRespondActionProcessor.js +1 -1
  220. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventGetRecordsActionProcessor.js +1 -1
  221. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventGetStorySessionActionProcessor.js +1 -1
  222. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventMatchStoryActionProcessor.js +1 -1
  223. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getEventTransformResponseResultActionProcessor.js +1 -1
  224. package/lib/esm/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/types.d.ts +1 -1
  225. package/lib/esm/getActionProcessor/core/event/index.d.ts +2 -2
  226. package/lib/esm/getActionProcessor/core/event/index.js +2 -2
  227. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventAutoRespondActionProcessor.js +1 -1
  228. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventGetRecordsActionProcessor.js +1 -1
  229. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventGetStorySessionActionProcessor.js +1 -1
  230. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventMatchStoryActionProcessor.js +1 -1
  231. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/getEventTransformResponseResultActionProcessor.js +1 -1
  232. package/lib/esm/getActionProcessor/core/event/lambda/serviceFunction/types.d.ts +1 -1
  233. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventAutoRespondActionProcessor.js +1 -1
  234. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventGetRecordsActionProcessor.js +1 -1
  235. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventGetStorySessionActionProcessor.js +1 -1
  236. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventMatchStoryActionProcessor.js +1 -1
  237. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/getEventTransformResponseResultActionProcessor.js +1 -1
  238. package/lib/esm/getActionProcessor/core/event/s3/fileEvent/types.d.ts +2 -2
  239. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventAutoRespondActionProcessor.js +1 -1
  240. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventGetRecordsActionProcessor.js +1 -1
  241. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventGetStorySessionActionProcessor.js +1 -1
  242. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventMatchStoryActionProcessor.js +1 -1
  243. package/lib/esm/getActionProcessor/core/event/sqs/queue/getEventTransformResponseResultActionProcessor.js +1 -1
  244. package/lib/esm/getActionProcessor/core/event/sqs/queue/types.d.ts +2 -2
  245. package/lib/esm/getActionProcessor/core/event/utils/isAuthValid.js +3 -3
  246. package/lib/esm/getActionProcessor/core/eventBus/getEventBusSendMessagesActionProcessor.js +2 -2
  247. package/lib/esm/getActionProcessor/core/file/getFileExistsActionProcessor.js +1 -1
  248. package/lib/esm/getActionProcessor/core/file/getFileGenerateTemporarySecureUrlActionProcessor.js +1 -1
  249. package/lib/esm/getActionProcessor/core/file/getFileListDirectoryActionProcessor.js +1 -1
  250. package/lib/esm/getActionProcessor/core/file/getFileReadBinaryContentsActionProcessor.js +1 -1
  251. package/lib/esm/getActionProcessor/core/file/getFileReadTextContentsActionProcessor.js +1 -1
  252. package/lib/esm/getActionProcessor/core/file/getFileWriteBinaryContentsActionProcessor.js +2 -2
  253. package/lib/esm/getActionProcessor/core/file/getFileWriteTextContentsActionProcessor.js +2 -2
  254. package/lib/esm/getActionProcessor/core/file/index.js +2 -2
  255. package/lib/esm/getActionProcessor/core/graphDatabase/customActions/getActionProcessor/getGraphDatabaseForNeptuneGetEndpointsActionProcessor.js +2 -2
  256. package/lib/esm/getActionProcessor/core/graphDatabase/getGraphDatabaseExecuteOpenCypherQueryActionProcessor.js +2 -2
  257. package/lib/esm/getActionProcessor/core/graphDatabase/getGraphDatabaseInternalFieldNamesActionProcessor.js +1 -1
  258. package/lib/esm/getActionProcessor/core/graphDatabase/stories/askRunNeptuneOpenCypherQuery.js +1 -1
  259. package/lib/esm/getActionProcessor/core/graphDatabase/stories/converters/askConvertAnyNeptuneResultToAnyGraphResult.js +2 -2
  260. package/lib/esm/getActionProcessor/core/index.d.ts +5 -5
  261. package/lib/esm/getActionProcessor/core/index.js +10 -10
  262. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreDeleteActionProcessor.js +1 -1
  263. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreGetActionProcessor.js +1 -1
  264. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreGetAllActionProcessor.js +1 -1
  265. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreQueryActionProcessor.js +2 -2
  266. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreScanActionProcessor.js +1 -1
  267. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreUpdateActionProcessor.js +1 -1
  268. package/lib/esm/getActionProcessor/core/keyValueStore/getKeyValueStoreUpsertActionProcessor.js +2 -2
  269. package/lib/esm/getActionProcessor/core/keyValueStore/index.js +2 -2
  270. package/lib/esm/getActionProcessor/core/queue/getQueueSendMessageActionProcessor.js +1 -1
  271. package/lib/esm/getActionProcessor/core/system/getSystemExecuteStoryActionProcessor.js +1 -1
  272. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryAuthenticateUserActionProcessor.js +3 -3
  273. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryConfirmForgotPasswordActionProcessor.js +2 -2
  274. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryCreateUserActionProcessor.js +2 -2
  275. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryDecodeAccessTokenActionProcessor.js +1 -1
  276. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryForgotPasswordActionProcessor.js +2 -2
  277. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryGetUserAttributesActionProcessor.js +1 -1
  278. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryReadAccessTokenActionProcessor.js +1 -1
  279. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRefreshTokenActionProcessor.js +3 -3
  280. package/lib/esm/getActionProcessor/core/userDirectory/getUserDirectoryRespondToAuthChallengeActionProcessor.js +3 -3
  281. package/lib/esm/getActionProcessor/index.js +1 -1
  282. package/lib/esm/getActionProcessor/webserver/index.d.ts +1 -1
  283. package/lib/esm/getActionProcessor/webserver/index.js +2 -2
  284. package/lib/esm/getActionProcessor/webserver/serviceFunction/getServiceFunctionExecuteActionProcessor.js +1 -1
  285. package/lib/esm/getActionProcessor/webserver/webEntry/getWebEntryInvalidateCacheActionProcessor.js +1 -1
  286. package/lib/esm/index.d.ts +5 -5
  287. package/lib/esm/index.js +5 -5
  288. package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.d.ts +1 -1
  289. package/lib/esm/lambdaHandlers/getAnyExecuteServiceFunctionEvent_serviceFunction.js +1 -1
  290. package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.d.ts +1 -1
  291. package/lib/esm/lambdaHandlers/getApiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
  292. package/lib/esm/lambdaHandlers/getCloudFrontRequestEvent_originRequest.js +1 -1
  293. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_customMessage.js +1 -1
  294. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_defineAuthChallenge.js +1 -1
  295. package/lib/esm/lambdaHandlers/getCustomMessageTriggerEvent_verifyAuthChallenge.js +1 -1
  296. package/lib/esm/lambdaHandlers/getEventBridgeEvent_recurringSchedule.js +1 -1
  297. package/lib/esm/lambdaHandlers/getEventBridgeEvent_stackDeploy.js +1 -1
  298. package/lib/esm/lambdaHandlers/getS3Event_fileEvent.js +1 -1
  299. package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.d.ts +1 -1
  300. package/lib/esm/lambdaHandlers/getSqsEvent_queueEvent.js +1 -1
  301. package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.d.ts +1 -1
  302. package/lib/esm/lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent.js +4 -4
  303. package/lib/esm/lambdaHandlers/helpers/logger.d.ts +1 -1
  304. package/lib/esm/lambdaHandlers/helpers/logger.js +3 -3
  305. package/lib/esm/lambdaHandlers/index.d.ts +3 -3
  306. package/lib/esm/lambdaHandlers/index.js +3 -3
  307. package/lib/esm/lambdas/anyExecuteServiceFunctionEvent_serviceFunction.js +2 -2
  308. package/lib/esm/lambdas/apiGatewayEventHandler.js +1 -1
  309. package/lib/esm/lambdas/apiGatwayEventWebsocketWithIdentity_websocketEvent.js +1 -1
  310. package/lib/esm/lambdas/cloudFrontRequestEvent_originRequest.js +1 -1
  311. package/lib/esm/lambdas/customMessageTriggerEvent_createAuthChallenge.js +1 -1
  312. package/lib/esm/lambdas/customMessageTriggerEvent_customMessage.js +1 -1
  313. package/lib/esm/lambdas/customMessageTriggerEvent_defineAuthChallenge.js +1 -1
  314. package/lib/esm/lambdas/customMessageTriggerEvent_verifyAuthChallenge.js +1 -1
  315. package/lib/esm/lambdas/dynamicModuleLoader/dynamicModuleLoader.js +1 -1
  316. package/lib/esm/lambdas/eventBridgeEvent_recurringSchedule.js +1 -1
  317. package/lib/esm/lambdas/eventBridgeEvent_stackDeploy.js +1 -1
  318. package/lib/esm/lambdas/lambda-utils/getQpqConfig.js +1 -1
  319. package/lib/esm/lambdas/lambda-utils/index.d.ts +1 -1
  320. package/lib/esm/lambdas/lambda-utils/index.js +1 -1
  321. package/lib/esm/lambdas/lambda-utils/logger.d.ts +1 -1
  322. package/lib/esm/lambdas/lambda-utils/logger.js +3 -3
  323. package/lib/esm/lambdas/lambdaSQSEvent.js +3 -3
  324. package/lib/esm/lambdas/sqsEvent_queueEvent.js +1 -1
  325. package/lib/esm/logic/acm/findMatchingCertificates.js +1 -2
  326. package/lib/esm/logic/apiGateway/getApiKeys.js +6 -2
  327. package/lib/esm/logic/apiGateway/websocketSendMessage.js +4 -4
  328. package/lib/esm/logic/cache/memoFuncAsync.js +5 -9
  329. package/lib/esm/logic/cloudFront/invalidateCache.js +1 -1
  330. package/lib/esm/logic/cloudformation/getExportedValue.js +2 -2
  331. package/lib/esm/logic/cognito/authenticateUser.js +6 -4
  332. package/lib/esm/logic/cognito/changePassword.js +4 -2
  333. package/lib/esm/logic/cognito/cognitoAttributeMap.js +4 -1
  334. package/lib/esm/logic/cognito/confirmForgotPassword.js +5 -3
  335. package/lib/esm/logic/cognito/createUser.d.ts +1 -1
  336. package/lib/esm/logic/cognito/createUser.js +6 -4
  337. package/lib/esm/logic/cognito/decodeValidJwt.js +1 -1
  338. package/lib/esm/logic/cognito/forgotPassword.js +5 -3
  339. package/lib/esm/logic/cognito/getUser.js +4 -2
  340. package/lib/esm/logic/cognito/getUserAttributes.js +5 -3
  341. package/lib/esm/logic/cognito/getUserAttributesBySub.js +5 -3
  342. package/lib/esm/logic/cognito/getUserPoolClientSecret.js +3 -1
  343. package/lib/esm/logic/cognito/index.d.ts +1 -1
  344. package/lib/esm/logic/cognito/index.js +1 -1
  345. package/lib/esm/logic/cognito/listPagedUsers.d.ts +1 -1
  346. package/lib/esm/logic/cognito/listPagedUsers.js +5 -3
  347. package/lib/esm/logic/cognito/listPagedUsersByAttribute.d.ts +1 -1
  348. package/lib/esm/logic/cognito/listPagedUsersByAttribute.js +4 -2
  349. package/lib/esm/logic/cognito/refreshToken.js +6 -4
  350. package/lib/esm/logic/cognito/requestEmailVerificationCode.js +3 -1
  351. package/lib/esm/logic/cognito/respondToAuthChallengeChallenge.js +5 -3
  352. package/lib/esm/logic/cognito/setUserAttributes.js +5 -3
  353. package/lib/esm/logic/cognito/setUserPassword.js +4 -2
  354. package/lib/esm/logic/cognito/utils/index.d.ts +1 -1
  355. package/lib/esm/logic/cognito/utils/index.js +1 -1
  356. package/lib/esm/logic/cognito/utils/transformCognitoResponse.d.ts +2 -2
  357. package/lib/esm/logic/cognito/verifyUserEmail.js +3 -1
  358. package/lib/esm/logic/dynamo/deleteItem.js +2 -2
  359. package/lib/esm/logic/dynamo/getLogChildrenByFromCorrelation.js +1 -1
  360. package/lib/esm/logic/dynamo/getPagedItemsOverRange.js +7 -3
  361. package/lib/esm/logic/dynamo/index.d.ts +1 -1
  362. package/lib/esm/logic/dynamo/index.js +1 -1
  363. package/lib/esm/logic/dynamo/putItem.js +1 -1
  364. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.d.ts +1 -1
  365. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoQuery.js +2 -4
  366. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.d.ts +1 -1
  367. package/lib/esm/logic/dynamo/qpqDynamoOrm/buildDynamoUpdate.js +3 -10
  368. package/lib/esm/logic/dynamo/qpqDynamoOrm/getDynamoTableIndexByConfigAndQuery.js +1 -1
  369. package/lib/esm/logic/dynamo/query.js +3 -3
  370. package/lib/esm/logic/dynamo/scan.js +3 -3
  371. package/lib/esm/logic/dynamo/updateItem.d.ts +1 -1
  372. package/lib/esm/logic/dynamo/updateItem.js +1 -1
  373. package/lib/esm/logic/lambda/executeLambdaByName.js +1 -1
  374. package/lib/esm/logic/neptune/getNeptuneEndpoints.js +1 -1
  375. package/lib/esm/logic/parametersManager/getParameter.js +1 -1
  376. package/lib/esm/logic/parametersManager/getParameters.js +1 -1
  377. package/lib/esm/logic/parametersManager/setParameter.js +2 -2
  378. package/lib/esm/logic/s3/deleteFiles.js +1 -1
  379. package/lib/esm/logic/s3/generatePresignedUrl.js +3 -1
  380. package/lib/esm/logic/s3/listFiles.js +1 -1
  381. package/lib/esm/logic/s3/readBinaryFile.js +6 -2
  382. package/lib/esm/logic/s3/readTextFile.js +1 -1
  383. package/lib/esm/logic/s3/s3Utils.d.ts +2 -2
  384. package/lib/esm/logic/s3/s3Utils.js +2 -2
  385. package/lib/esm/logic/s3/writeBinaryFile.js +2 -2
  386. package/lib/esm/logic/s3/writeTextFile.js +2 -2
  387. package/lib/esm/logic/secretsManager/getSecret.js +4 -2
  388. package/lib/esm/logic/sns/publishMessage.js +1 -1
  389. package/lib/esm/logic/sqs/sendMessages.js +2 -2
  390. package/lib/esm/runtimeConfig/qpqAwsLambdaRuntimeConfigUtils.js +1 -1
  391. package/package.json +9 -6
@@ -1,4 +1,4 @@
1
- import { getQpqConfig } from './lambda-utils';
2
- import { dynamicModuleLoader } from './dynamicModuleLoader';
3
1
  import { getAnyExecuteServiceFunctionEvent_serviceFunction } from '../lambdaHandlers';
2
+ import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const anyExecuteServiceFunctionEvent_serviceFunction = getAnyExecuteServiceFunctionEvent_serviceFunction(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
1
  import { getApiGatewayEventHandler } from '../lambdaHandlers';
2
- import { getQpqConfig } from './lambda-utils';
3
2
  import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const apiGatewayEventHandler = getApiGatewayEventHandler(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
- import { getQpqConfig } from './lambda-utils';
2
1
  import { getApiGatwayEventWebsocketWithIdentity_websocketEvent } from '../lambdaHandlers';
3
2
  import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const apiGatwayEventWebsocketWithIdentity_websocketEvent = getApiGatwayEventWebsocketWithIdentity_websocketEvent(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
- import { getQpqConfig } from './lambda-utils';
2
1
  import { getCloudFrontRequestEvent_originRequest } from '../lambdaHandlers';
3
2
  import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const cloudFrontRequestEvent_originRequest = getCloudFrontRequestEvent_originRequest(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
- import { getQpqConfig } from './lambda-utils';
2
1
  import { getCustomMessageTriggerEvent_createAuthChallenge } from '../lambdaHandlers';
3
2
  import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const customMessageTriggerEvent_createAuthChallenge = getCustomMessageTriggerEvent_createAuthChallenge(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
- import { getQpqConfig } from './lambda-utils';
2
1
  import { getCustomMessageTriggerEvent_customMessage } from '../lambdaHandlers';
3
2
  import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const customMessageTriggerEvent_customMessage = getCustomMessageTriggerEvent_customMessage(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
- import { getQpqConfig } from './lambda-utils';
2
1
  import { getCustomMessageTriggerEvent_defineAuthChallenge } from '../lambdaHandlers';
3
2
  import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const customMessageTriggerEvent_defineAuthChallenge = getCustomMessageTriggerEvent_defineAuthChallenge(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
- import { getQpqConfig } from './lambda-utils';
2
1
  import { getCustomMessageTriggerEvent_verifyAuthChallenge } from '../lambdaHandlers';
3
2
  import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const customMessageTriggerEvent_verifyAuthChallenge = getCustomMessageTriggerEvent_verifyAuthChallenge(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
- // @ts-ignore - Special webpack file injected
1
+ // @ts-expect-error - Special webpack file injected
2
2
  import { qpqDynamicModuleLoader } from 'quidproquo-dynamic-loader';
3
3
  export const dynamicModuleLoader = async (modulePath) => {
4
4
  return qpqDynamicModuleLoader(modulePath);
@@ -1,4 +1,4 @@
1
1
  import { getEventBridgeEvent_recurringSchedule } from '../lambdaHandlers';
2
- import { getQpqConfig } from './lambda-utils';
3
2
  import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const eventBridgeEvent_recurringSchedule = getEventBridgeEvent_recurringSchedule(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
- import { dynamicModuleLoader } from './dynamicModuleLoader';
2
1
  import { getEventBridgeEvent_stackDeploy } from '../lambdaHandlers';
2
+ import { dynamicModuleLoader } from './dynamicModuleLoader';
3
3
  import { getQpqConfig } from './lambda-utils';
4
4
  export const eventBridgeEvent_stackDeploy = getEventBridgeEvent_stackDeploy(dynamicModuleLoader, getQpqConfig());
@@ -1,4 +1,4 @@
1
- // @ts-ignore - Special webpack file injected
1
+ // @ts-expect-error - Special webpack file injected
2
2
  import { qpqConfig } from 'quidproquo-dynamic-loader';
3
3
  export const getQpqConfig = () => {
4
4
  return qpqConfig;
@@ -1,2 +1,2 @@
1
- export * from './logger';
2
1
  export * from './getQpqConfig';
2
+ export * from './logger';
@@ -1,2 +1,2 @@
1
- export * from './logger';
2
1
  export * from './getQpqConfig';
2
+ export * from './logger';
@@ -1,4 +1,4 @@
1
- import { StoryResult, QPQConfig, QpqLogger } from 'quidproquo-core';
1
+ import { QPQConfig, QpqLogger, StoryResult } from 'quidproquo-core';
2
2
  export declare const storyLogger: (result: StoryResult<any>, bucketName: string, region: string) => Promise<void>;
3
3
  export declare const storyLoggerFs: (result: StoryResult<any>) => Promise<void>;
4
4
  export declare const moveLogsToPerminateStorage: (bucketName: string, region: string) => Promise<void>;
@@ -1,9 +1,9 @@
1
+ import { qpqCoreUtils } from 'quidproquo-core';
1
2
  import fs from 'fs';
2
3
  import path from 'path';
3
- import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3';
4
- import { qpqCoreUtils } from 'quidproquo-core';
4
+ import { PutObjectCommand, S3Client } from '@aws-sdk/client-s3';
5
5
  const tempDirectory = '/tmp/qpqlogs';
6
- import { getAwsServiceAccountInfoConfig, getAwsServiceAccountInfoByDeploymentInfo } from 'quidproquo-config-aws';
6
+ import { getAwsServiceAccountInfoByDeploymentInfo, getAwsServiceAccountInfoConfig } from 'quidproquo-config-aws';
7
7
  import { getConfigRuntimeResourceName } from '../../awsNamingUtils';
8
8
  export const storyLogger = async (result, bucketName, region) => {
9
9
  try {
@@ -1,8 +1,8 @@
1
1
  import { QpqRuntimeType } from 'quidproquo-core';
2
- import { getQpqConfig } from './lambda-utils';
3
- import { dynamicModuleLoader } from './dynamicModuleLoader';
4
- import { getQpqLambdaRuntimeForEvent } from '../lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent';
5
2
  import { getSqsQueueEventProcessor } from '../getActionProcessor';
3
+ import { getQpqLambdaRuntimeForEvent } from '../lambdaHandlers/helpers/getQpqLambdaRuntimeForEvent';
4
+ import { dynamicModuleLoader } from './dynamicModuleLoader';
5
+ import { getQpqConfig } from './lambda-utils';
6
6
  // Default executor
7
7
  export const executeSQSEvent = getQpqLambdaRuntimeForEvent(QpqRuntimeType.QUEUE_EVENT, (event) => {
8
8
  return {
@@ -1,4 +1,4 @@
1
- import { getQpqConfig } from './lambda-utils';
2
1
  import { getSqsEvent_queueEvent } from '../lambdaHandlers';
3
2
  import { dynamicModuleLoader } from './dynamicModuleLoader';
3
+ import { getQpqConfig } from './lambda-utils';
4
4
  export const sqsEvent_queueEvent = getSqsEvent_queueEvent(dynamicModuleLoader, getQpqConfig());
@@ -15,8 +15,7 @@ export const findMatchingCertificates = async (domainName, region, retryCount =
15
15
  });
16
16
  const listResult = await acmClient.send(listCommand);
17
17
  for (const certificate of listResult.CertificateSummaryList || []) {
18
- if (certificate.CertificateArn &&
19
- certificate.DomainName?.toLowerCase() === lowerCaseDomainName) {
18
+ if (certificate.CertificateArn && certificate.DomainName?.toLowerCase() === lowerCaseDomainName) {
20
19
  certificateArns.push(certificate.CertificateArn);
21
20
  }
22
21
  }
@@ -1,4 +1,4 @@
1
- import { APIGatewayClient, GetApiKeysCommand, } from '@aws-sdk/client-api-gateway';
1
+ import { APIGatewayClient, GetApiKeysCommand } from '@aws-sdk/client-api-gateway';
2
2
  import { createAwsClient } from '../createAwsClient';
3
3
  export const getApiKeys = async (region, ...keyNames) => {
4
4
  const apiGatewayClient = createAwsClient(APIGatewayClient, { region });
@@ -9,5 +9,9 @@ export const getApiKeys = async (region, ...keyNames) => {
9
9
  const res = await apiGatewayClient.send(new GetApiKeysCommand(input));
10
10
  return (res.items
11
11
  ?.filter((i) => keyNames.indexOf(i.name) >= 0)
12
- .map((i) => ({ name: i.name, value: i.value, description: i.description })) || []);
12
+ .map((i) => ({
13
+ name: i.name,
14
+ value: i.value,
15
+ description: i.description,
16
+ })) || []);
13
17
  };
@@ -1,16 +1,16 @@
1
- import { ApiGatewayManagementApiClient, PostToConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi";
1
+ import { ApiGatewayManagementApiClient, PostToConnectionCommand } from '@aws-sdk/client-apigatewaymanagementapi';
2
2
  import { createAwsClient } from '../createAwsClient';
3
3
  export const sendMessageToWebSocketConnection = async (apiId, connectionId, region, payload) => {
4
4
  // Create a new ApiGatewayManagementApiClient
5
5
  const apiGatewayManagementApiClient = createAwsClient(ApiGatewayManagementApiClient, {
6
- apiVersion: "2018-11-29",
6
+ apiVersion: '2018-11-29',
7
7
  endpoint: `https://${apiId}.execute-api.${region}.amazonaws.com/prod`,
8
- region
8
+ region,
9
9
  });
10
10
  // Create a new PostToConnectionCommand with the connection ID and payload
11
11
  const command = new PostToConnectionCommand({
12
12
  ConnectionId: connectionId,
13
- Data: JSON.stringify(payload) // Convert payload to string if necessary
13
+ Data: JSON.stringify(payload), // Convert payload to string if necessary
14
14
  });
15
15
  await apiGatewayManagementApiClient.send(command);
16
16
  };
@@ -16,14 +16,10 @@ export const memoFuncAsync = (func, ttlInSeconds = 3600) => {
16
16
  if (nodeCache.has(cacheKey)) {
17
17
  return nodeCache.get(cacheKey);
18
18
  }
19
- try {
20
- // Await the result and then cache it
21
- const result = await func(...args);
22
- nodeCache.set(cacheKey, result);
23
- return result;
24
- }
25
- catch (err) {
26
- throw err; // re-throw the error to be caught by caller
27
- }
19
+ // Await the result
20
+ const result = await func(...args);
21
+ // and then cache it
22
+ nodeCache.set(cacheKey, result);
23
+ return result;
28
24
  });
29
25
  };
@@ -1,5 +1,5 @@
1
- import { CloudFrontClient, CreateInvalidationCommand, } from '@aws-sdk/client-cloudfront';
2
1
  import crypto from 'crypto';
2
+ import { CloudFrontClient, CreateInvalidationCommand } from '@aws-sdk/client-cloudfront';
3
3
  import { createAwsClient } from '../createAwsClient';
4
4
  export const getInvalidationCallerReference = (paths) => {
5
5
  const allPaths = paths.join('');
@@ -1,4 +1,4 @@
1
- import { CloudFormationClient, ListExportsCommand, } from '@aws-sdk/client-cloudformation';
1
+ import { CloudFormationClient, ListExportsCommand } from '@aws-sdk/client-cloudformation';
2
2
  import { memoFuncAsync } from '../cache/memoFuncAsync';
3
3
  import { createAwsClient } from '../createAwsClient';
4
4
  export const getExportedValue = memoFuncAsync(async (variableName, region) => {
@@ -12,6 +12,6 @@ export const getExportedValue = memoFuncAsync(async (variableName, region) => {
12
12
  return value;
13
13
  }
14
14
  listCommandParams.NextToken = result.NextToken;
15
- } while (!!listCommandParams.NextToken);
15
+ } while (listCommandParams.NextToken);
16
16
  throw new Error(`CF could not find: [${variableName}]`);
17
17
  });
@@ -1,11 +1,13 @@
1
- import { CognitoIdentityProviderClient, AdminInitiateAuthCommand, AuthFlowType, } from '@aws-sdk/client-cognito-identity-provider';
1
+ import { AdminInitiateAuthCommand, AuthFlowType, CognitoIdentityProviderClient, } from '@aws-sdk/client-cognito-identity-provider';
2
+ import { createAwsClient } from '../createAwsClient';
2
3
  import { calculateSecretHash } from './utils/calculateSecretHash';
3
- import { getUserPoolClientSecret } from './getUserPoolClientSecret';
4
4
  import { cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo } from './utils/transformCognitoResponse';
5
- import { createAwsClient } from '../createAwsClient';
5
+ import { getUserPoolClientSecret } from './getUserPoolClientSecret';
6
6
  // TODO: retry for TooManyRequestsException
7
7
  export const authenticateUser = async (userPoolId, clientId, region, isCustom, username, password) => {
8
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
8
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
9
+ region,
10
+ });
9
11
  const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
10
12
  const secretHash = calculateSecretHash(username, clientId, clientSecret);
11
13
  // Time we issued the request
@@ -1,7 +1,9 @@
1
- import { CognitoIdentityProviderClient, ChangePasswordCommand, } from '@aws-sdk/client-cognito-identity-provider';
1
+ import { ChangePasswordCommand, CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
2
2
  import { createAwsClient } from '../createAwsClient';
3
3
  export const changePassword = async (accessToken, previousPassword, proposedPassword, region) => {
4
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
4
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
5
+ region,
6
+ });
5
7
  const params = {
6
8
  AccessToken: accessToken,
7
9
  PreviousPassword: previousPassword,
@@ -42,7 +42,10 @@ const getQpqAttributeObjectFromCognitoKeyValue = (key, value) => {
42
42
  export const getQpqAttributesFromCognitoUserAttributes = (cognitoUserAttributes) => {
43
43
  // Map cognitoUserAttributes to your UserAttributes format
44
44
  const userAttributes = cognitoUserAttributes.reduce((acc, { Name, Value }) => {
45
- return { ...acc, ...getQpqAttributeObjectFromCognitoKeyValue(Name, Value) };
45
+ return {
46
+ ...acc,
47
+ ...getQpqAttributeObjectFromCognitoKeyValue(Name, Value),
48
+ };
46
49
  }, {});
47
50
  return userAttributes;
48
51
  };
@@ -1,10 +1,12 @@
1
1
  import { CognitoIdentityProviderClient, ConfirmForgotPasswordCommand, } from '@aws-sdk/client-cognito-identity-provider';
2
+ import { createAwsClient } from '../createAwsClient';
2
3
  import { calculateSecretHash } from './utils/calculateSecretHash';
3
- import { getUserPoolClientSecret } from './getUserPoolClientSecret';
4
4
  import { authenticateUser } from './authenticateUser';
5
- import { createAwsClient } from '../createAwsClient';
5
+ import { getUserPoolClientSecret } from './getUserPoolClientSecret';
6
6
  export const confirmForgotPassword = async (userPoolId, clientId, region, code, username, password) => {
7
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
7
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
8
+ region,
9
+ });
8
10
  const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
9
11
  const secretHash = calculateSecretHash(username, clientId, clientSecret);
10
12
  const params = {
@@ -1,2 +1,2 @@
1
- import { CreateUserRequest, AuthenticateUserResponse } from 'quidproquo-core';
1
+ import { AuthenticateUserResponse, CreateUserRequest } from 'quidproquo-core';
2
2
  export declare const createUser: (userPoolId: string, region: string, clientId: string, createUserRequest: CreateUserRequest) => Promise<AuthenticateUserResponse>;
@@ -1,10 +1,12 @@
1
- import { CognitoIdentityProviderClient, AdminCreateUserCommand, DeliveryMediumType, MessageActionType, } from '@aws-sdk/client-cognito-identity-provider';
1
+ import { AdminCreateUserCommand, CognitoIdentityProviderClient, DeliveryMediumType, MessageActionType, } from '@aws-sdk/client-cognito-identity-provider';
2
+ import { createAwsClient } from '../createAwsClient';
2
3
  import { authenticateUser } from './authenticateUser';
3
- import { setUserPassword } from './setUserPassword';
4
4
  import { getCognitoUserAttributesFromQpqUserAttributes } from './cognitoAttributeMap';
5
- import { createAwsClient } from '../createAwsClient';
5
+ import { setUserPassword } from './setUserPassword';
6
6
  export const createUser = async (userPoolId, region, clientId, createUserRequest) => {
7
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
7
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
8
+ region,
9
+ });
8
10
  const params = {
9
11
  UserPoolId: userPoolId,
10
12
  Username: createUserRequest.email,
@@ -1,4 +1,4 @@
1
- import { verify, decode } from 'jsonwebtoken';
1
+ import { decode, verify } from 'jsonwebtoken';
2
2
  import jwksClient from 'jwks-rsa';
3
3
  export const decodeValidJwt = async (userPoolId, region, ignoreExpiration, accessToken) => {
4
4
  if (!accessToken) {
@@ -1,9 +1,11 @@
1
- import { CognitoIdentityProviderClient, ForgotPasswordCommand, } from '@aws-sdk/client-cognito-identity-provider';
1
+ import { CognitoIdentityProviderClient, ForgotPasswordCommand } from '@aws-sdk/client-cognito-identity-provider';
2
+ import { createAwsClient } from '../createAwsClient';
2
3
  import { calculateSecretHash } from './utils/calculateSecretHash';
3
4
  import { getUserPoolClientSecret } from './getUserPoolClientSecret';
4
- import { createAwsClient } from '../createAwsClient';
5
5
  export const forgotPassword = async (userPoolId, clientId, region, username) => {
6
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
6
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
7
+ region,
8
+ });
7
9
  const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
8
10
  const secretHash = calculateSecretHash(username, clientId, clientSecret);
9
11
  const params = {
@@ -1,4 +1,4 @@
1
- import { CognitoIdentityProviderClient, GetUserCommand, } from '@aws-sdk/client-cognito-identity-provider';
1
+ import { CognitoIdentityProviderClient, GetUserCommand } from '@aws-sdk/client-cognito-identity-provider';
2
2
  import { createAwsClient } from '../createAwsClient';
3
3
  const getUserAttribute = (attributeName, userAttributes) => {
4
4
  const lowerAttributeName = attributeName.toLowerCase();
@@ -6,7 +6,9 @@ const getUserAttribute = (attributeName, userAttributes) => {
6
6
  return attribute?.Value;
7
7
  };
8
8
  export const getUser = async (accessToken, region) => {
9
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
9
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
10
+ region,
11
+ });
10
12
  const params = {
11
13
  AccessToken: accessToken,
12
14
  };
@@ -1,8 +1,10 @@
1
- import { CognitoIdentityProviderClient, AdminGetUserCommand, } from '@aws-sdk/client-cognito-identity-provider';
2
- import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
1
+ import { AdminGetUserCommand, CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
3
2
  import { createAwsClient } from '../createAwsClient';
3
+ import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
4
4
  export const getUserAttributes = async (userPoolId, region, username) => {
5
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
5
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
6
+ region,
7
+ });
6
8
  const params = {
7
9
  UserPoolId: userPoolId,
8
10
  Username: username,
@@ -1,8 +1,10 @@
1
- import { CognitoIdentityProviderClient, ListUsersCommand, } from '@aws-sdk/client-cognito-identity-provider';
2
- import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
1
+ import { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';
3
2
  import { createAwsClient } from '../createAwsClient';
3
+ import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
4
4
  export const getUserAttributesBySub = async (userPoolId, region, sub) => {
5
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
5
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
6
+ region,
7
+ });
6
8
  const response = await cognitoClient.send(new ListUsersCommand({
7
9
  UserPoolId: userPoolId,
8
10
  Filter: `sub = "${sub}"`,
@@ -1,7 +1,9 @@
1
1
  import { CognitoIdentityProviderClient, DescribeUserPoolClientCommand, } from '@aws-sdk/client-cognito-identity-provider';
2
2
  import { createAwsClient } from '../createAwsClient';
3
3
  export const getUserPoolClientSecret = async (userPoolId, clientId, region) => {
4
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
4
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
5
+ region,
6
+ });
5
7
  const params = {
6
8
  ClientId: clientId,
7
9
  UserPoolId: userPoolId,
@@ -1,2 +1,2 @@
1
- export * from './decodeValidJwt';
2
1
  export * from './decodeAccessToken';
2
+ export * from './decodeValidJwt';
@@ -1,2 +1,2 @@
1
- export * from './decodeValidJwt';
2
1
  export * from './decodeAccessToken';
2
+ export * from './decodeValidJwt';
@@ -1,2 +1,2 @@
1
- import { UserAttributes, QpqPagedData } from 'quidproquo-core';
1
+ import { QpqPagedData, UserAttributes } from 'quidproquo-core';
2
2
  export declare const listPagedUsers: (userPoolId: string, region: string, pageKey?: string) => Promise<QpqPagedData<UserAttributes>>;
@@ -1,9 +1,11 @@
1
- import { CognitoIdentityProviderClient, ListUsersCommand, } from '@aws-sdk/client-cognito-identity-provider';
1
+ import { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';
2
+ import { createAwsClient } from '../createAwsClient';
2
3
  import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
3
4
  import { pageKeyToPaginationToken, paginationTokenToPageKey } from './utils';
4
- import { createAwsClient } from '../createAwsClient';
5
5
  export const listPagedUsers = async (userPoolId, region, pageKey) => {
6
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
6
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
7
+ region,
8
+ });
7
9
  const response = await cognitoClient.send(new ListUsersCommand({
8
10
  UserPoolId: userPoolId,
9
11
  PaginationToken: pageKeyToPaginationToken(pageKey),
@@ -1,2 +1,2 @@
1
- import { UserAttributes, QpqPagedData } from 'quidproquo-core';
1
+ import { QpqPagedData, UserAttributes } from 'quidproquo-core';
2
2
  export declare const listPagedUsersByAttribute: (userPoolId: string, region: string, attributeName: string, attributeValue: string, limit?: number, pageKey?: string) => Promise<QpqPagedData<UserAttributes>>;
@@ -1,9 +1,11 @@
1
1
  import { CognitoIdentityProviderClient, ListUsersCommand } from '@aws-sdk/client-cognito-identity-provider';
2
+ import { createAwsClient } from '../createAwsClient';
2
3
  import { getQpqAttributesFromCognitoUserAttributes } from './cognitoAttributeMap';
3
4
  import { pageKeyToPaginationToken, paginationTokenToPageKey } from './utils';
4
- import { createAwsClient } from '../createAwsClient';
5
5
  export const listPagedUsersByAttribute = async (userPoolId, region, attributeName, attributeValue, limit, pageKey) => {
6
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
6
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
7
+ region,
8
+ });
7
9
  const response = await cognitoClient.send(new ListUsersCommand({
8
10
  UserPoolId: userPoolId,
9
11
  Limit: limit,
@@ -1,10 +1,12 @@
1
- import { CognitoIdentityProviderClient, AdminInitiateAuthCommand, AuthFlowType, } from '@aws-sdk/client-cognito-identity-provider';
1
+ import { AdminInitiateAuthCommand, AuthFlowType, CognitoIdentityProviderClient, } from '@aws-sdk/client-cognito-identity-provider';
2
+ import { createAwsClient } from '../createAwsClient';
2
3
  import { calculateSecretHash } from './utils/calculateSecretHash';
3
- import { getUserPoolClientSecret } from './getUserPoolClientSecret';
4
4
  import { cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo } from './utils/transformCognitoResponse';
5
- import { createAwsClient } from '../createAwsClient';
5
+ import { getUserPoolClientSecret } from './getUserPoolClientSecret';
6
6
  export const refreshToken = async (userPoolId, clientId, region, username, refreshToken) => {
7
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
7
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
8
+ region,
9
+ });
8
10
  const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
9
11
  const secretHash = calculateSecretHash(username, clientId, clientSecret);
10
12
  const params = {
@@ -1,7 +1,9 @@
1
1
  import { CognitoIdentityProviderClient, GetUserAttributeVerificationCodeCommand, } from '@aws-sdk/client-cognito-identity-provider';
2
2
  import { createAwsClient } from '../createAwsClient';
3
3
  export const requestEmailVerificationCode = async (region, accessToken) => {
4
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
4
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
5
+ region,
6
+ });
5
7
  const params = {
6
8
  AccessToken: accessToken,
7
9
  AttributeName: 'email', // Request verification for the email attribute
@@ -1,10 +1,12 @@
1
1
  import { CognitoIdentityProviderClient, RespondToAuthChallengeCommand, } from '@aws-sdk/client-cognito-identity-provider';
2
+ import { createAwsClient } from '../createAwsClient';
2
3
  import { calculateSecretHash } from './utils/calculateSecretHash';
3
- import { getUserPoolClientSecret } from './getUserPoolClientSecret';
4
4
  import { cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo } from './utils/transformCognitoResponse';
5
- import { createAwsClient } from '../createAwsClient';
5
+ import { getUserPoolClientSecret } from './getUserPoolClientSecret';
6
6
  export const respondToAuthChallengeChallenge = async (userPoolId, clientId, region, username, session, challengeNameType, attributes) => {
7
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
7
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
8
+ region,
9
+ });
8
10
  const clientSecret = await getUserPoolClientSecret(userPoolId, clientId, region);
9
11
  const secretHash = calculateSecretHash(username, clientId, clientSecret);
10
12
  const params = {
@@ -1,8 +1,10 @@
1
- import { CognitoIdentityProviderClient, AdminUpdateUserAttributesCommand, } from '@aws-sdk/client-cognito-identity-provider';
2
- import { getCognitoUserAttributesFromQpqUserAttributes } from './cognitoAttributeMap';
1
+ import { AdminUpdateUserAttributesCommand, CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
3
2
  import { createAwsClient } from '../createAwsClient';
3
+ import { getCognitoUserAttributesFromQpqUserAttributes } from './cognitoAttributeMap';
4
4
  export const setUserAttributes = async (userPoolId, region, username, userAttributes) => {
5
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
5
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
6
+ region,
7
+ });
6
8
  const { userId, ...writeableUserAttributes } = userAttributes;
7
9
  const params = {
8
10
  UserPoolId: userPoolId,
@@ -1,7 +1,9 @@
1
- import { CognitoIdentityProviderClient, AdminSetUserPasswordCommand, } from '@aws-sdk/client-cognito-identity-provider';
1
+ import { AdminSetUserPasswordCommand, CognitoIdentityProviderClient, } from '@aws-sdk/client-cognito-identity-provider';
2
2
  import { createAwsClient } from '../createAwsClient';
3
3
  export const setUserPassword = async (region, userPoolId, username, password) => {
4
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
4
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
5
+ region,
6
+ });
5
7
  // There has to be a better way than this?
6
8
  const passwordParams = {
7
9
  Password: password,
@@ -1,4 +1,4 @@
1
- export * from "./calculateSecretHash";
1
+ export * from './calculateSecretHash';
2
2
  export * from './pageKeyToPaginationToken';
3
3
  export * from './paginationTokenToPageKey';
4
4
  export * from './transformCognitoResponse';
@@ -1,4 +1,4 @@
1
- export * from "./calculateSecretHash";
1
+ export * from './calculateSecretHash';
2
2
  export * from './pageKeyToPaginationToken';
3
3
  export * from './paginationTokenToPageKey';
4
4
  export * from './transformCognitoResponse';
@@ -1,5 +1,5 @@
1
- import { AuthenticateUserResponse, AuthenticationInfo, AuthenticateUserChallenge } from 'quidproquo-core';
2
- import { AuthenticationResultType, AdminInitiateAuthResponse, ChallengeNameType } from '@aws-sdk/client-cognito-identity-provider';
1
+ import { AuthenticateUserChallenge, AuthenticateUserResponse, AuthenticationInfo } from 'quidproquo-core';
2
+ import { AdminInitiateAuthResponse, AuthenticationResultType, ChallengeNameType } from '@aws-sdk/client-cognito-identity-provider';
3
3
  export declare const cognitoAuthenticationResultTypeToQpqAuthenticationInfo: (authResult: AuthenticationResultType, issueDateTime: string) => AuthenticationInfo;
4
4
  export declare const cognitoChallengeNameTypeToQpqAuthenticateUserChallenge: (cognitoChallengeName: ChallengeNameType | string | undefined) => AuthenticateUserChallenge;
5
5
  export declare const cognitoAdminInitiateAuthResponseToQpqAuthenticationInfo: (authResponse: AdminInitiateAuthResponse, issueDateTime: string) => AuthenticateUserResponse;
@@ -1,7 +1,9 @@
1
1
  import { CognitoIdentityProviderClient, VerifyUserAttributeCommand, } from '@aws-sdk/client-cognito-identity-provider';
2
2
  import { createAwsClient } from '../createAwsClient';
3
3
  export const verifyUserEmail = async (region, accessToken, verificationCode) => {
4
- const cognitoClient = createAwsClient(CognitoIdentityProviderClient, { region });
4
+ const cognitoClient = createAwsClient(CognitoIdentityProviderClient, {
5
+ region,
6
+ });
5
7
  const params = {
6
8
  AccessToken: accessToken,
7
9
  AttributeName: 'email',
@@ -1,6 +1,6 @@
1
- import { DynamoDBClient, DeleteItemCommand, } from '@aws-sdk/client-dynamodb';
2
- import { buildAttributeValue } from './qpqDynamoOrm';
1
+ import { DeleteItemCommand, DynamoDBClient } from '@aws-sdk/client-dynamodb';
3
2
  import { createAwsClient } from '../createAwsClient';
3
+ import { buildAttributeValue } from './qpqDynamoOrm';
4
4
  export async function deleteItem(tableName, region, key, keyName, sortKey, sortKeyName) {
5
5
  const dynamoDBClient = createAwsClient(DynamoDBClient, { region });
6
6
  const deleteItemParams = {
@@ -1,6 +1,6 @@
1
1
  import { DynamoDBClient, QueryCommand } from '@aws-sdk/client-dynamodb';
2
- import { lastEvaluatedKeyToString, stringToLastEvaluatedKey } from './logs';
3
2
  import { createAwsClient } from '../createAwsClient';
3
+ import { lastEvaluatedKeyToString, stringToLastEvaluatedKey } from './logs';
4
4
  export async function getLogChildrenByFromCorrelation(tableName, region, fromCorrelation, pageKey) {
5
5
  const dynamoDBClient = createAwsClient(DynamoDBClient, { region });
6
6
  const queryParams = {