Skip to content

Commit

Permalink
add domian search to orgs query (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmauer authored Nov 14, 2024
1 parent 369e073 commit 5a3d26e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/apis/org_service_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ pub struct FetchOrgsByQueryParams {
pub order_by: Option<FetchOrgOrderBy>,
pub name: Option<String>,
pub legacy_org_id: Option<String>,
pub domain: Option<String>,
}

/// struct for passing parameters to the method [`fetch_pending_invites`]
Expand Down Expand Up @@ -761,6 +762,7 @@ pub async fn fetch_orgs_by_query(
order_by,
name,
legacy_org_id,
domain,
} = params;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -792,6 +794,10 @@ pub async fn fetch_orgs_by_query(
local_var_req_builder =
local_var_req_builder.query(&[("legacy_org_id", &local_var_str.to_string())]);
}
if let Some(ref local_var_str) = domain {
local_var_req_builder =
local_var_req_builder.query(&[("domain", &local_var_str.to_string())]);
}
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
local_var_req_builder =
local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
Expand Down

0 comments on commit 5a3d26e

Please sign in to comment.