@@ -647,10 +647,24 @@ Return ONLY the JSON object - no explanations or markdown.`,
647647 } ,
648648 condition : {
649649 field : 'operation' ,
650- value : [ 'create_audience' , 'update_audience' ] ,
650+ value : [ 'create_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+ } ,
654668 // Member fields
655669 {
656670 id : 'subscriberEmail' ,
@@ -1545,7 +1559,8 @@ Return ONLY the landing page title - no explanations.`,
15451559 type : 'dropdown' ,
15461560 options : [
15471561 { label : 'Signup' , id : 'signup' } ,
1548- { label : 'Click Through' , id : 'click-through' } ,
1562+ { label : 'Product' , id : 'product' } ,
1563+ { label : 'Click Through (legacy)' , id : 'click-through' } ,
15491564 ] ,
15501565 required : {
15511566 field : 'operation' ,
@@ -1738,8 +1753,10 @@ Return ONLY the JSON array - no explanations or markdown.`,
17381753 return `mailchimp_${ params . operation } `
17391754 } ,
17401755 params : ( params ) => {
1741- const { apiKey, operation, ...rest } = params
1756+ const { apiKey, operation, updateEmailTypeOption , ...rest } = params
17421757 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
17431760
17441761 Object . entries ( rest ) . forEach ( ( [ key , value ] ) => {
17451762 if ( value !== undefined && value !== null && value !== '' ) {
@@ -1753,6 +1770,10 @@ Return ONLY the JSON array - no explanations or markdown.`,
17531770 inputs : {
17541771 operation : { type : 'string' , description : 'Operation to perform' } ,
17551772 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+ } ,
17561777 } ,
17571778 outputs : {
17581779 success : { type : 'boolean' , description : 'Operation success status' } ,
0 commit comments