79da2bf698
* core: fix application API always being sorted by name * web: add sorting to tables * web: add search to TablePage * core: add search to applications API * core: add MetaNameSerializer * *: fix signature for non-modal serializers * providers/*: implement MetaNameSerializer * web: implement full app list page, use as default in sidebar * web: fix linting errors * admin: remove old application list * web: fix default sorting for application list * web: fix spacing for search element in toolbar
22 lines
572 B
TypeScript
22 lines
572 B
TypeScript
import { DefaultClient, PBResponse, QueryArguments } from "./Client";
|
|
|
|
export class Provider {
|
|
pk: number;
|
|
name: string;
|
|
authorization_flow: string;
|
|
verbose_name: string;
|
|
verbose_name_plural: string;
|
|
|
|
constructor() {
|
|
throw Error();
|
|
}
|
|
|
|
static get(slug: string): Promise<Provider> {
|
|
return DefaultClient.fetch<Provider>(["providers", "all", slug]);
|
|
}
|
|
|
|
static list(filter?: QueryArguments): Promise<PBResponse<Provider>> {
|
|
return DefaultClient.fetch<PBResponse<Provider>>(["providers", "all"], filter);
|
|
}
|
|
}
|