UNPKG

liferay-headless-rest-client

Version:
178 lines (177 loc) 3.83 kB
export type Message = { key?: string; languageId?: string; value?: string; readonly 'x-class-name'?: string; }; export type PostMessageImportRequestBody = { /** * File */ file?: Blob | File; }; export type MultipartBody = { values?: { [key: string]: string; }; }; export type Facet = { facetCriteria?: string; facetValues?: Array<FacetValue>; }; export type FacetValue = { numberOfOccurrences?: number; term?: string; }; export type PageMessage = { items?: Array<Message>; lastPage?: number; totalCount?: number; actions?: { [key: string]: { [key: string]: string; }; }; page?: number; facets?: Array<Facet>; pageSize?: number; }; export type DeleteMessageData = { body?: never; path?: never; query?: { key?: string; languageId?: string; }; url: '/o/language/v1.0/messages'; }; export type DeleteMessageResponses = { /** * default response */ default: unknown; }; export type GetMessageData = { body?: never; path?: never; query?: { key?: string; languageId?: string; }; url: '/o/language/v1.0/messages'; }; export type GetMessageResponses = { /** * default response */ default: Message; }; export type GetMessageResponse = GetMessageResponses[keyof GetMessageResponses]; export type PostMessageData = { body?: Message; path?: never; query?: never; url: '/o/language/v1.0/messages'; }; export type PostMessageResponses = { /** * default response */ default: Message; }; export type PostMessageResponse = PostMessageResponses[keyof PostMessageResponses]; export type PutMessageData = { body?: Message; path?: never; query?: never; url: '/o/language/v1.0/messages'; }; export type PutMessageResponses = { /** * default response */ default: Message; }; export type PutMessageResponse = PutMessageResponses[keyof PutMessageResponses]; export type DeleteMessageBatchData = { body?: { [key: string]: unknown; }; path?: never; query?: { key?: string; languageId?: string; callbackURL?: string; }; url: '/o/language/v1.0/messages/batch'; }; export type DeleteMessageBatchResponses = { /** * default response */ default: unknown; }; export type PostMessageBatchData = { body?: { [key: string]: unknown; }; path?: never; query?: { callbackURL?: string; }; url: '/o/language/v1.0/messages/batch'; }; export type PostMessageBatchResponses = { /** * default response */ default: unknown; }; export type PutMessageBatchData = { body?: { [key: string]: unknown; }; path?: never; query?: { callbackURL?: string; }; url: '/o/language/v1.0/messages/batch'; }; export type PutMessageBatchResponses = { /** * default response */ default: unknown; }; export type PostMessageImportData = { body?: PostMessageImportRequestBody; path?: never; query?: { languageId?: string; }; url: '/o/language/v1.0/messages/import'; }; export type PostMessageImportResponses = { /** * default response */ default: unknown; }; export type PostMessagesExportPageData = { body?: Array<string>; path?: never; query?: { languageId?: string; }; url: '/o/language/v1.0/messages/export'; }; export type PostMessagesExportPageResponses = { /** * default response */ default: PageMessage; }; export type PostMessagesExportPageResponse = PostMessagesExportPageResponses[keyof PostMessagesExportPageResponses]; export type ClientOptions = { baseUrl: 'http://localhost:8080' | (string & {}); };