UNPKG

liferay-headless-rest-client

Version:
1 lines 2.83 kB
export type Admin={emailAddress?:string;familyName?:string;givenName?:string;readonly'x-class-name'?:string;};export type PortalInstance={readonly active?:boolean;admin?:Admin;companyId?:number;domain?:string;portalInstanceId?:string;siteInitializerKey?:string;virtualHost?:string;readonly'x-class-name'?:string;};export type Facet={facetCriteria?:string;facetValues?:Array<FacetValue>;};export type FacetValue={numberOfOccurrences?:number;term?:string;};export type PagePortalInstance={items?:Array<PortalInstance>;lastPage?:number;totalCount?:number;actions?:{[key:string]:{[key:string]:string;};};facets?:Array<Facet>;page?:number;pageSize?:number;};export type DeletePortalInstanceData={body?:never;path:{portalInstanceId:string;};query?:never;url:'/o/headless-portal-instances/v1.0/portal-instances/{portalInstanceId}';};export type DeletePortalInstanceResponses={default:unknown;};export type GetPortalInstanceData={body?:never;path:{portalInstanceId:string;};query?:never;url:'/o/headless-portal-instances/v1.0/portal-instances/{portalInstanceId}';};export type GetPortalInstanceResponses={default:PortalInstance;};export type GetPortalInstanceResponse=GetPortalInstanceResponses[keyof GetPortalInstanceResponses];export type PatchPortalInstanceData={body?:PortalInstance;path:{portalInstanceId:string;};query?:never;url:'/o/headless-portal-instances/v1.0/portal-instances/{portalInstanceId}';};export type PatchPortalInstanceResponses={default:PortalInstance;};export type PatchPortalInstanceResponse=PatchPortalInstanceResponses[keyof PatchPortalInstanceResponses];export type GetPortalInstancesPageData={body?:never;path?:never;query?:{skipDefault?:string;nestedFields?:string;};url:'/o/headless-portal-instances/v1.0/portal-instances';};export type GetPortalInstancesPageResponses={default:PagePortalInstance;};export type GetPortalInstancesPageResponse=GetPortalInstancesPageResponses[keyof GetPortalInstancesPageResponses];export type PostPortalInstanceData={body?:PortalInstance;path?:never;query?:never;url:'/o/headless-portal-instances/v1.0/portal-instances';};export type PostPortalInstanceResponses={default:PortalInstance;};export type PostPortalInstanceResponse=PostPortalInstanceResponses[keyof PostPortalInstanceResponses];export type PutPortalInstanceActivateData={body?:never;path:{portalInstanceId:string;};query?:never;url:'/o/headless-portal-instances/v1.0/portal-instances/{portalInstanceId}/activate';};export type PutPortalInstanceActivateResponses={default:unknown;};export type PutPortalInstanceDeactivateData={body?:never;path:{portalInstanceId:string;};query?:never;url:'/o/headless-portal-instances/v1.0/portal-instances/{portalInstanceId}/deactivate';};export type PutPortalInstanceDeactivateResponses={default:unknown;};export type ClientOptions={baseUrl:'http://localhost:8080'|(string&{});};