@@ -73,31 +73,25 @@ pub enum SubscriptionStatus {
7373pub struct SubscribersListParams {
7474 // The current page.
7575 #[ uniffi( default = None ) ]
76- page : Option < u64 > ,
77-
76+ pub page : Option < u64 > ,
7877 // The amount of items to show per page.
7978 #[ uniffi( default = None ) ]
80- per_page : Option < u64 > ,
81-
79+ pub per_page : Option < u64 > ,
8280 // Search for subscribers
8381 #[ uniffi( default = None ) ]
84- search : Option < String > ,
85-
82+ pub search : Option < String > ,
8683 // Sort subscribers by a specific field
8784 #[ uniffi( default = None ) ]
88- sort : Option < ListSubscribersSortField > ,
89-
85+ pub sort : Option < ListSubscribersSortField > ,
9086 // Sort order
9187 #[ uniffi( default = None ) ]
92- sort_order : Option < WpApiParamOrder > ,
93-
88+ pub sort_order : Option < WpApiParamOrder > ,
9489 // Filter subscribers by a specific subscriber type
9590 #[ uniffi( default = None ) ]
96- filter : Option < SubscriberType > ,
97-
91+ pub filter : Option < SubscriberType > ,
9892 // Array of filters to apply (combined with AND logic). If provided, overrides the single filter parameter.
9993 #[ uniffi( default = None ) ]
100- filters : Option < Vec < SubscriberType > > ,
94+ pub filters : Option < Vec < SubscriberType > > ,
10195}
10296
10397impl AppendUrlQueryPairs for SubscribersListParams {
@@ -186,12 +180,10 @@ impl AppendUrlQueryPairs for GetSubscriberQuery {
186180pub struct AddSubscribersParams {
187181 // A list of emails to add as subscribers to the current site.
188182 pub emails : Vec < String > ,
189-
190183 // A list of category IDs the emails should be subscribed to.
191184 #[ uniffi( default = None ) ]
192185 #[ serde( skip_serializing_if = "Option::is_none" ) ]
193186 pub categories : Option < Vec < String > > ,
194-
195187 // If true, the import will only parse the file and return the number of subscribers that would be imported.
196188 #[ uniffi( default = false ) ]
197189 #[ serde( skip_serializing_if = "<&bool>::not" ) ]
@@ -267,7 +259,7 @@ pub struct SubscriberImportJob {
267259#[ derive( Debug , Serialize , Deserialize , uniffi:: Record ) ]
268260pub struct SubscriberImportJobsListParams {
269261 #[ uniffi( default = None ) ]
270- status : Option < SubscriberImportJobStatus > ,
262+ pub status : Option < SubscriberImportJobStatus > ,
271263}
272264
273265impl AppendUrlQueryPairs for SubscriberImportJobsListParams {
0 commit comments