InterfaceFilterRepository
Properties
Methods
$select
- $select(id): {
keywords: {
create(params: CreateFilterKeywordParams, meta?: HttpMetaParams<"json">): Promise<FilterKeyword>;
list(meta?: HttpMetaParams<"none">): Paginator<FilterKeyword[], undefined>;
};
statuses: {
create(params: CreateFilterStatusParams, meta?: HttpMetaParams<"json">): Promise<FilterStatus>;
list(meta?: HttpMetaParams<"none">): Paginator<FilterStatus[], undefined>;
};
fetch(meta?: HttpMetaParams<"none">): Promise<mastodon.v2.Filter>;
remove(meta?: HttpMetaParams<"none">): Promise<void>;
update(params?: mastodon.rest.v2.UpdateFilterParams, meta?: HttpMetaParams<"json">): Promise<mastodon.v2.Filter>;
} Returns {
keywords: {
create(params: CreateFilterKeywordParams, meta?: HttpMetaParams<"json">): Promise<FilterKeyword>;
list(meta?: HttpMetaParams<"none">): Paginator<FilterKeyword[], undefined>;
};
statuses: {
create(params: CreateFilterStatusParams, meta?: HttpMetaParams<"json">): Promise<FilterStatus>;
list(meta?: HttpMetaParams<"none">): Paginator<FilterStatus[], undefined>;
};
fetch(meta?: HttpMetaParams<"none">): Promise<mastodon.v2.Filter>;
remove(meta?: HttpMetaParams<"none">): Promise<void>;
update(params?: mastodon.rest.v2.UpdateFilterParams, meta?: HttpMetaParams<"json">): Promise<mastodon.v2.Filter>;
}
keywords: {
create(params: CreateFilterKeywordParams, meta?: HttpMetaParams<"json">): Promise<FilterKeyword>;
list(meta?: HttpMetaParams<"none">): Paginator<FilterKeyword[], undefined>;
}
create:function
list:function
- list(meta?): Paginator<FilterKeyword[], undefined>
Parameters
Optional
meta: HttpMetaParams<"none">
Array of FilterKeyword
statuses: {
create(params: CreateFilterStatusParams, meta?: HttpMetaParams<"json">): Promise<FilterStatus>;
list(meta?: HttpMetaParams<"none">): Paginator<FilterStatus[], undefined>;
}
create:function
list:function
- list(meta?): Paginator<FilterStatus[], undefined>
Parameters
Optional
meta: HttpMetaParams<"none">
Array of FilterStatus
fetch:function
- fetch(meta?): Promise<mastodon.v2.Filter>
Parameters
Optional
meta: HttpMetaParams<"none">
Filter
remove:function
- remove(meta?): Promise<void>
Parameters
Optional
meta: HttpMetaParams<"none">
Returns Promise<void>
N/A
update:function
Add the given keyword to the specified filter group