providers: add provider/ prefix for property mappings API (#10874)
This commit is contained in:
committed by
GitHub
parent
dab41fe0b9
commit
a7203be850
@ -9,18 +9,20 @@ import { property, query } from "lit/decorators.js";
|
||||
|
||||
import {
|
||||
PropertymappingsApi,
|
||||
PropertymappingsSamlListRequest,
|
||||
PropertymappingsProviderSamlListRequest,
|
||||
SAMLPropertyMapping,
|
||||
} from "@goauthentik/api";
|
||||
|
||||
async function fetchObjects(query?: string): Promise<SAMLPropertyMapping[]> {
|
||||
const args: PropertymappingsSamlListRequest = {
|
||||
const args: PropertymappingsProviderSamlListRequest = {
|
||||
ordering: "saml_name",
|
||||
};
|
||||
if (query !== undefined) {
|
||||
args.search = query;
|
||||
}
|
||||
const items = await new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSamlList(args);
|
||||
const items = await new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsProviderSamlList(
|
||||
args,
|
||||
);
|
||||
return items.results;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user