@@ -647,24 +647,10 @@ Return ONLY the JSON object - no explanations or markdown.`,
647647 } ,
648648 condition : {
649649 field : 'operation' ,
650- value : [ 'create_audience' ] ,
650+ value : [ 'create_audience' , 'update_audience' ] ,
651651 } ,
652652 value : ( ) => 'true' ,
653653 } ,
654- {
655- id : 'updateEmailTypeOption' ,
656- title : 'Email Type Option' ,
657- type : 'dropdown' ,
658- options : [
659- { label : 'No change' , id : '' } ,
660- { label : 'True' , id : 'true' } ,
661- { label : 'False' , id : 'false' } ,
662- ] ,
663- condition : {
664- field : 'operation' ,
665- value : [ 'update_audience' ] ,
666- } ,
667- } ,
668654 // Member fields
669655 {
670656 id : 'subscriberEmail' ,
@@ -1753,10 +1739,8 @@ Return ONLY the JSON array - no explanations or markdown.`,
17531739 return `mailchimp_${ params . operation } `
17541740 } ,
17551741 params : ( params ) => {
1756- const { apiKey, operation, updateEmailTypeOption , ...rest } = params
1742+ const { apiKey, operation, ...rest } = params
17571743 const cleanParams : Record < string , any > = { apiKey }
1758- /** Update Audience has its own dropdown whose blank default leaves the setting unchanged. */
1759- if ( updateEmailTypeOption ) cleanParams . emailTypeOption = updateEmailTypeOption
17601744
17611745 Object . entries ( rest ) . forEach ( ( [ key , value ] ) => {
17621746 if ( value !== undefined && value !== null && value !== '' ) {
@@ -1770,10 +1754,6 @@ Return ONLY the JSON array - no explanations or markdown.`,
17701754 inputs : {
17711755 operation : { type : 'string' , description : 'Operation to perform' } ,
17721756 apiKey : { type : 'string' , description : 'Mailchimp API key with server prefix' } ,
1773- updateEmailTypeOption : {
1774- type : 'string' ,
1775- description : 'Email type option for Update Audience; blank leaves it unchanged' ,
1776- } ,
17771757 } ,
17781758 outputs : {
17791759 success : { type : 'boolean' , description : 'Operation success status' } ,
0 commit comments