liferay-headless-rest-client
Version:
A collection of Headless Clients used in Liferay Portal
1 lines • 2.67 kB
TypeScript
export type Facet={facetCriteria?:string;facetValues?:Array<FacetValue>;};export type FacetValue={numberOfOccurrences?:number;term?:string;};export type PageUserNotification={items?:Array<UserNotification>;lastPage?:number;totalCount?:number;actions?:{[key:string]:{[key:string]:string;};};facets?:Array<Facet>;page?:number;pageSize?:number;};export type UserNotification={readonly actions?:{[key:string]:{[key:string]:string;};};readonly dateCreated?:string;readonly id?:number;message?:string;readonly read?:boolean;readonly type?:number;readonly'x-class-name'?:string;};export type GetMyUserNotificationsPageData={body?:never;path?:never;query?:{fields?:string;filter?:string;page?:string;pageSize?:string;restrictFields?:string;search?:string;sort?:string;nestedFields?:string;};url:'/o/headless-user-notification/v1.0/my-user-notifications';};export type GetMyUserNotificationsPageResponses={default:PageUserNotification;};export type GetMyUserNotificationsPageResponse=GetMyUserNotificationsPageResponses[keyof GetMyUserNotificationsPageResponses];export type GetUserAccountUserNotificationsPageData={body?:never;path:{userAccountId:string;};query?:{fields?:string;filter?:string;page?:string;pageSize?:string;restrictFields?:string;search?:string;sort?:string;nestedFields?:string;};url:'/o/headless-user-notification/v1.0/user-accounts/{userAccountId}/user-notifications';};export type GetUserAccountUserNotificationsPageResponses={default:PageUserNotification;};export type GetUserAccountUserNotificationsPageResponse=GetUserAccountUserNotificationsPageResponses[keyof GetUserAccountUserNotificationsPageResponses];export type GetUserNotificationData={body?:never;path:{userNotificationId:string;};query?:{fields?:string;restrictFields?:string;};url:'/o/headless-user-notification/v1.0/user-notifications/{userNotificationId}';};export type GetUserNotificationResponses={default:UserNotification;};export type GetUserNotificationResponse=GetUserNotificationResponses[keyof GetUserNotificationResponses];export type PutUserNotificationReadData={body?:never;path:{userNotificationId:string;};query?:{fields?:string;restrictFields?:string;};url:'/o/headless-user-notification/v1.0/user-notifications/{userNotificationId}/read';};export type PutUserNotificationReadResponses={default:unknown;};export type PutUserNotificationUnreadData={body?:never;path:{userNotificationId:string;};query?:{fields?:string;restrictFields?:string;};url:'/o/headless-user-notification/v1.0/user-notifications/{userNotificationId}/unread';};export type PutUserNotificationUnreadResponses={default:unknown;};export type ClientOptions={baseUrl:'http://localhost:8080'|(string&{});};