import { RpcMethod } from './commonTypes'; export type CategoriesService_List = RpcMethod; export interface CategoriesService { /** Lists the category names used to organize presets, rich media and templates in an application (application code XXXXX-XXXXX), with paging, name search and ordering. Use to discover existing categories before tagging or filtering content by category. */ List: CategoriesService_List; } export type ListCategoriesRequest_OrderBy = 'NAME' | 'CREATED'; export type ListCategoriesRequest_OrderDirection = 'ASC' | 'DESC'; export type ListCategoriesRequest = { /** Application code (XXXXX-XXXXX) whose categories to list. */ application?: string; orderBy?: ListCategoriesRequest_OrderBy; orderDirection?: ListCategoriesRequest_OrderDirection; page?: number; perPage?: number; /** Case-insensitive substring match on category name (matched as %value%). */ searchByName?: string; }; export type ListCategoriesResponse = { categories: string[]; page: number; perPage: number; total: number; };