File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
packages/parser/src/schemas Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,13 @@ export {
6060 SnsSqsNotificationSchema ,
6161 SnsNotificationSchema ,
6262} from './sns.js' ;
63- export { SqsSchema , SqsRecordSchema } from './sqs.js' ;
63+ export {
64+ SqsSchema ,
65+ SqsRecordSchema ,
66+ SqsMsgAttributeSchema ,
67+ SqsMsgAttributeDataTypeSchema ,
68+ SqsAttributesSchema ,
69+ } from './sqs.js' ;
6470export { TransferFamilySchema } from './transfer-family.js' ;
6571export { VpcLatticeSchema } from './vpc-lattice.js' ;
6672export { VpcLatticeV2Schema } from './vpc-latticev2.js' ;
Original file line number Diff line number Diff line change 11import { z } from 'zod' ;
22
3+ const SqsMsgAttributeDataTypeSchema = z . union ( [
4+ z . literal ( 'String' ) ,
5+ z . literal ( 'Number' ) ,
6+ z . literal ( 'Binary' ) ,
7+ z . string ( ) ,
8+ ] ) ;
9+
310const SqsMsgAttributeSchema = z . object ( {
411 stringValue : z . string ( ) . optional ( ) ,
512 binaryValue : z . string ( ) . optional ( ) ,
613 stringListValues : z . array ( z . string ( ) ) . optional ( ) ,
714 binaryListValues : z . array ( z . string ( ) ) . optional ( ) ,
8- dataType : z . string ( ) ,
15+ dataType : SqsMsgAttributeDataTypeSchema ,
916} ) ;
1017
1118const SqsAttributesSchema = z . object ( {
@@ -96,4 +103,10 @@ const SqsSchema = z.object({
96103 Records : z . array ( SqsRecordSchema ) . min ( 1 ) ,
97104} ) ;
98105
99- export { SqsSchema , SqsRecordSchema } ;
106+ export {
107+ SqsSchema ,
108+ SqsRecordSchema ,
109+ SqsMsgAttributeSchema ,
110+ SqsMsgAttributeDataTypeSchema ,
111+ SqsAttributesSchema ,
112+ } ;
You can’t perform that action at this time.
0 commit comments