import AvoidPosting from "../models/AvoidPosting.js"; import { type TransformDataQueryToOptions } from "../util.js"; import Base from "./Base.js"; import type { SearchAvoidPostingsData } from "../generated/types.js"; /** @category Modules/Types */ export interface CreateAvoidPostingOptions { artist_attributes?: { group_name?: string; linked_user_id?: number; name: string; other_names?: Array; other_names_string?: string; }; details?: string; is_active?: boolean; staff_notes?: string; } /** @category Modules/Types */ export interface EditAvoidPostingOptions { artist_attributes?: { group_name?: string; linked_user_id?: number; name?: string; other_names?: Array; other_names_string?: string; }; details?: string; is_active?: boolean; staff_notes?: string; } /** @category Modules/Types */ export interface SearchAvoidPostingsOptions extends TransformDataQueryToOptions { } /** @category Modules */ export default class AvoidPostings extends Base { /** * Create Avoid Posting Entry * * Must have the bd staff user flag. * * @requiresApiKeyAuth * * @operationId {@link https://e621.wiki/#operations-Avoid_Posting_Entries-createAvoidPosting createAvoidPosting} * * @see {@link https://e621.wiki/#operations-Avoid_Posting_Entries-createAvoidPosting Documentation} for more details. */ create(options?: CreateAvoidPostingOptions): Promise; /** * Delete Avoid Posting Entry * * Soft deletion. Must have the bd staff user flag. * * @requiresApiKeyAuth * * @operationId {@link https://e621.wiki/#operations-Avoid_Posting_Entries-deleteAvoidPosting deleteAvoidPosting} * * @see {@link https://e621.wiki/#operations-Avoid_Posting_Entries-deleteAvoidPosting Documentation} for more details. */ delete(idOrName: string | number): Promise; /** * Destroy Avoid Posting Entry * * Must have the bd staff user flag. * * @requiresApiKeyAuth * * @operationId {@link https://e621.wiki/#operations-Avoid_Posting_Entries-destroyAvoidPosting destroyAvoidPosting} * * @see {@link https://e621.wiki/#operations-Avoid_Posting_Entries-destroyAvoidPosting Documentation} for more details. */ destroy(idOrName: string | number): Promise; /** * Edit Avoid Posting Entry * * Must have the bd staff user flag. * * @requiresApiKeyAuth * * @operationId {@link https://e621.wiki/#operations-Avoid_Posting_Entries-editAvoidPosting editAvoidPosting} * * @see {@link https://e621.wiki/#operations-Avoid_Posting_Entries-editAvoidPosting Documentation} for more details. */ edit(idOrName: string | number, options?: EditAvoidPostingOptions): Promise; /** * Get Avoid Posting Entry * * @operationId {@link https://e621.wiki/#operations-Avoid_Posting_Entries-getAvoidPosting getAvoidPosting} * * @see {@link https://e621.wiki/#operations-Avoid_Posting_Entries-getAvoidPosting Documentation} for more details. */ get(idOrName: number | string): Promise; /** * Search Avoid Posting Entries * * @operationId {@link https://e621.wiki/#operations-Avoid_Posting_Entries-searchAvoidPostings searchAvoidPostings} * * @see {@link https://e621.wiki/#operations-Avoid_Posting_Entries-searchAvoidPostings Documentation} for more details. */ search(options?: SearchAvoidPostingsOptions): Promise>; /** * Undelete Avoid Posting Entry * * Must have the bd staff user flag. * * @requiresApiKeyAuth * * @operationId {@link https://e621.wiki/#operations-Avoid_Posting_Entries-undeleteAvoidPosting undeleteAvoidPosting} * * @see {@link https://e621.wiki/#operations-Avoid_Posting_Entries-undeleteAvoidPosting Documentation} for more details. */ undelete(idOrName: string | number): Promise; }