Skip to content

Commit c2bd849

Browse files
feat(parser): add type for values parsed by DynamoDBStreamRecord (#4793)
Co-authored-by: Andrea Amorosi <[email protected]>
1 parent afb5678 commit c2bd849

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

packages/parser/src/schemas/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export {
4949
VerifyAuthChallengeTriggerSchema,
5050
} from './cognito.js';
5151
export {
52+
DynamoDBStreamRecord,
5253
DynamoDBStreamSchema,
5354
DynamoDBStreamToKinesisRecord,
5455
} from './dynamodb.js';

packages/parser/src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export type {
3333
CloudWatchLogsDecode,
3434
CloudWatchLogsEvent,
3535
DynamoDBStreamEvent,
36+
DynamoDBStreamRecord,
3637
DynamoDBStreamToKinesisRecordEvent,
3738
EventBridgeEvent,
3839
KafkaMskEvent,

packages/parser/src/types/schema.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import type {
1818
CloudWatchLogEventSchema,
1919
CloudWatchLogsDecodeSchema,
2020
CloudWatchLogsSchema,
21+
DynamoDBStreamRecord as DynamoDBStreamRecordSchema,
2122
DynamoDBStreamSchema,
2223
DynamoDBStreamToKinesisRecord,
2324
EventBridgeSchema,
@@ -103,6 +104,8 @@ type CloudWatchLogsEvent = z.infer<typeof CloudWatchLogsSchema>;
103104

104105
type DynamoDBStreamEvent = z.infer<typeof DynamoDBStreamSchema>;
105106

107+
type DynamoDBStreamRecord = z.infer<typeof DynamoDBStreamRecordSchema>;
108+
106109
type DynamoDBStreamToKinesisRecordEvent = z.infer<
107110
typeof DynamoDBStreamToKinesisRecord
108111
>;
@@ -183,6 +186,7 @@ export type {
183186
CloudWatchLogsDecode,
184187
CloudWatchLogsEvent,
185188
DynamoDBStreamEvent,
189+
DynamoDBStreamRecord,
186190
DynamoDBStreamToKinesisRecordEvent,
187191
EventBridgeEvent,
188192
KafkaMskEvent,

0 commit comments

Comments
 (0)