liferay-headless-rest-client
Version:
A collection of Headless Clients used in Liferay Portal
1 lines • 1.92 kB
TypeScript
import type{Options as ClientOptions,TDataShape,Client}from'@hey-api/client-fetch';import type{GetMyUserNotificationsPageData,GetMyUserNotificationsPageResponses,GetUserAccountUserNotificationsPageData,GetUserAccountUserNotificationsPageResponses,GetUserNotificationData,GetUserNotificationResponses,PutUserNotificationReadData,PutUserNotificationReadResponses,PutUserNotificationUnreadData,PutUserNotificationUnreadResponses}from'./types.gen';export type Options<TData extends TDataShape=TDataShape,ThrowOnError extends boolean=boolean>=ClientOptions<TData,ThrowOnError>&{client?:Client;meta?:Record<string,unknown>;};export declare const getMyUserNotificationsPage:<ThrowOnError extends boolean=false>(options?:Options<GetMyUserNotificationsPageData,ThrowOnError>)=>import("@hey-api/client-fetch").RequestResult<GetMyUserNotificationsPageResponses,unknown,ThrowOnError,"fields">;export declare const getUserAccountUserNotificationsPage:<ThrowOnError extends boolean=false>(options:Options<GetUserAccountUserNotificationsPageData,ThrowOnError>)=>import("@hey-api/client-fetch").RequestResult<GetUserAccountUserNotificationsPageResponses,unknown,ThrowOnError,"fields">;export declare const getUserNotification:<ThrowOnError extends boolean=false>(options:Options<GetUserNotificationData,ThrowOnError>)=>import("@hey-api/client-fetch").RequestResult<GetUserNotificationResponses,unknown,ThrowOnError,"fields">;export declare const putUserNotificationRead:<ThrowOnError extends boolean=false>(options:Options<PutUserNotificationReadData,ThrowOnError>)=>import("@hey-api/client-fetch").RequestResult<PutUserNotificationReadResponses,unknown,ThrowOnError,"fields">;export declare const putUserNotificationUnread:<ThrowOnError extends boolean=false>(options:Options<PutUserNotificationUnreadData,ThrowOnError>)=>import("@hey-api/client-fetch").RequestResult<PutUserNotificationUnreadResponses,unknown,ThrowOnError,"fields">;