import Response from "../util/Response"; import { AxiosPromise } from "axios"; declare class MarketingAgencies { /** * List all marketing agencies. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/getMarketing-agencies * * @param params Optional query parameters (e.g., is_admin, sort_by, sort_order, page, per_page). * @returns promise */ static list(params?: Record): AxiosPromise>; /** * Create a new marketing agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/postMarketing-agencies * * @param data The data for the new agency. * @returns Promise */ static create(data: object): AxiosPromise>; /** * Retrieve a single marketing agency by its ID. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/getMarketing-agencies-id * * @param id The UUID of the agency to retrieve. * @returns promise */ static view(id: string): AxiosPromise>; /** * Update a marketing agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/putMarketing-agencies-id * * @param id The UUID of the agency to update. * @param data The data to update. * @returns promise */ static update(id: string, data: object): AxiosPromise>; /** * Deletes a marketing agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/deleteMarketing-agencies-id * * @param id The UUID of the agency to delete. * @returns promise */ static delete(id: string): AxiosPromise>; /** * Add a user as an administrator to an agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/postMarketing-agencies-id-administrators * * @param id The UUID of the agency. * @param data The data containing the user_id to add. * @returns Promise */ static addAdministrator(id: string, data: { user_id: string; }): AxiosPromise>; /** * Remove a user as an administrator from an agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/deleteMarketing-agencies-id-administrators-user_id * * @param id The UUID of the agency. * @param user_id The UUID of the user to remove. * @returns Promise */ static removeAdministrator(id: string, user_id: string): AxiosPromise>; /** * Set the logo for an agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/postMarketing-agencies-id-logo * * @param id The UUID of the agency. * @param data The data containing the media_id for the logo. * @returns Promise */ static setLogo(id: string, data: { media_id: string; }): AxiosPromise>; /** * Add a case study to an agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/postMarketing-agencies-id-case-studies * * @param id The UUID of the agency. * @param data The data containing the media_id and optional order. * @returns Promise */ static addCaseStudy(id: string, data: { media_id: string; order?: number; }): AxiosPromise>; /** * Remove a case study from an agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/deleteMarketing-agencies-id-case-studies-media_id * * @param id The UUID of the agency. * @param media_id The UUID of the media to remove. * @returns Promise */ static removeCaseStudy(id: string, media_id: string): AxiosPromise>; /** * Update the order of case studies for an agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/postMarketing-agencies-id-case-studies-order * * @param id The UUID of the agency. * @param order_data An array of objects with media_id and new order. * @returns Promise */ static updateCaseStudyOrder(id: string, order_data: { media_id: string; order: number; }[]): AxiosPromise>; /** * Invite a user to become an administrator of an agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/postMarketing-agencies-id-invites * * @param id The UUID of the agency. * @param data The data containing the email of the user to invite. * @returns Promise */ static invite(id: string, data: { email: string; }): AxiosPromise>; /** * List all pending invitations for an agency. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/getMarketing-agencies-id-invites * * @param id The UUID of the agency. * @returns Promise */ static listInvites(id: string): AxiosPromise>; /** * Revoke a pending invitation. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/deleteMarketing-agencies-id-invites-invite_id * * @param id The UUID of the agency. * @param invite_id The UUID of the invitation to revoke. * @returns Promise */ static revokeInvite(id: string, invite_id: string): AxiosPromise>; /** * Get the details of a pending invitation using its token. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/getMarketing-agencies-invites-details * * @param params An object containing the token. * @returns Promise */ static getInviteDetails(params: { token: string; }): AxiosPromise>; /** * Accept an invitation to become an administrator. * * @see https://api.glitch.fun/api/documentation#/Marketing%20Agencies/postMarketing-agencies-invites-accept * * @param data The data containing the invitation token. * @returns Promise */ static acceptInvite(data: { token: string; }): AxiosPromise>; } export default MarketingAgencies;