@ikonintegration/ikapi 5.0.11 → 5.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
APIGatewayEvent,
|
|
3
|
+
Context,
|
|
4
|
+
DynamoDBStreamEvent,
|
|
5
|
+
EventBridgeEvent,
|
|
6
|
+
SQSEvent,
|
|
7
|
+
} from 'aws-lambda'
|
|
2
8
|
|
|
3
9
|
import Request from '../API/Request.js'
|
|
4
10
|
import Response, { ResponseErrorType } from '../API/Response.js'
|
|
@@ -116,13 +122,13 @@ export default class Transaction<
|
|
|
116
122
|
|
|
117
123
|
/**
|
|
118
124
|
* Constructs a new instance of the Transaction class.
|
|
119
|
-
* @param {APIGatewayEvent | SQSEvent | DynamoDBStreamEvent} event - The event object passed to the Lambda function.
|
|
125
|
+
* @param {APIGatewayEvent | SQSEvent | DynamoDBStreamEvent | EventBridgeEvent<string, any>} event - The event object passed to the Lambda function.
|
|
120
126
|
* @param {Context} context - The context object passed to the Lambda function.
|
|
121
127
|
* @param {TransactionConfig} [config] - Optional configuration object for the transaction.
|
|
122
128
|
* @returns None
|
|
123
129
|
*/
|
|
124
130
|
constructor(
|
|
125
|
-
event: APIGatewayEvent | SQSEvent | DynamoDBStreamEvent,
|
|
131
|
+
event: APIGatewayEvent | SQSEvent | DynamoDBStreamEvent | EventBridgeEvent<string, any>,
|
|
126
132
|
context: Context,
|
|
127
133
|
config?: TransactionConfig
|
|
128
134
|
) {
|
package/src/Mailer/Mailer.ts
CHANGED
|
@@ -80,10 +80,10 @@ export default class Mailer {
|
|
|
80
80
|
send: true,
|
|
81
81
|
})
|
|
82
82
|
//
|
|
83
|
-
let resp = null
|
|
83
|
+
let resp: any = null
|
|
84
84
|
try {
|
|
85
85
|
resp = await email.send()
|
|
86
|
-
console.debug('Mailer resp:', resp)
|
|
86
|
+
console.debug('Mailer resp:', { ...resp, raw: 'suppressed' })
|
|
87
87
|
} catch (e) {
|
|
88
88
|
console.error('Mailer error:', e)
|
|
89
89
|
throw e
|