liferay-headless-rest-client
Version:
A collection of Headless Clients used in Liferay Portal
1 lines • 3.21 kB
TypeScript
export type AccountCategoryForecast={account?:number;actual?:number;category?:number;categoryTitle?:string;forecast?:number;forecastLowerBound?:number;forecastUpperBound?:number;timestamp?:string;unit?:string;readonly'x-class-name'?:string;};export type Facet={facetCriteria?:string;facetValues?:Array<FacetValue>;};export type FacetValue={numberOfOccurrences?:number;term?:string;};export type PageAccountCategoryForecast={items?:Array<AccountCategoryForecast>;lastPage?:number;totalCount?:number;actions?:{[key:string]:{[key:string]:string;};};facets?:Array<Facet>;page?:number;pageSize?:number;};export type AccountForecast={account?:number;actual?:number;forecast?:number;forecastLowerBound?:number;forecastUpperBound?:number;timestamp?:string;unit?:string;readonly'x-class-name'?:string;};export type PageAccountForecast={items?:Array<AccountForecast>;lastPage?:number;totalCount?:number;actions?:{[key:string]:{[key:string]:string;};};facets?:Array<Facet>;page?:number;pageSize?:number;};export type PageSkuForecast={items?:Array<SkuForecast>;lastPage?:number;totalCount?:number;actions?:{[key:string]:{[key:string]:string;};};facets?:Array<Facet>;page?:number;pageSize?:number;};export type SkuForecast={actual?:number;forecast?:number;forecastLowerBound?:number;forecastUpperBound?:number;sku?:string;timestamp?:string;unit?:string;readonly'x-class-name'?:string;};export type GetAccountCategoryForecastsByMonthlyRevenuePageData={body?:never;path?:never;query?:{accountIds?:string;categoryIds?:string;forecastLength?:string;forecastStartDate?:string;historyLength?:string;page?:string;pageSize?:string;nestedFields?:string;};url:'/o/headless-commerce-machine-learning/v1.0/accountCategoryForecasts/by-monthlyRevenue';};export type GetAccountCategoryForecastsByMonthlyRevenuePageResponses={default:PageAccountCategoryForecast;};export type GetAccountCategoryForecastsByMonthlyRevenuePageResponse=GetAccountCategoryForecastsByMonthlyRevenuePageResponses[keyof GetAccountCategoryForecastsByMonthlyRevenuePageResponses];export type GetAccountForecastsByMonthlyRevenuePageData={body?:never;path?:never;query?:{accountIds?:string;forecastLength?:string;forecastStartDate?:string;historyLength?:string;page?:string;pageSize?:string;nestedFields?:string;};url:'/o/headless-commerce-machine-learning/v1.0/accountForecasts/by-monthlyRevenue';};export type GetAccountForecastsByMonthlyRevenuePageResponses={default:PageAccountForecast;};export type GetAccountForecastsByMonthlyRevenuePageResponse=GetAccountForecastsByMonthlyRevenuePageResponses[keyof GetAccountForecastsByMonthlyRevenuePageResponses];export type GetSkuForecastsByMonthlyRevenuePageData={body?:never;path?:never;query?:{forecastLength?:string;forecastStartDate?:string;historyLength?:string;page?:string;pageSize?:string;skus?:string;nestedFields?:string;};url:'/o/headless-commerce-machine-learning/v1.0/skuForecasts/by-monthlyDemand';};export type GetSkuForecastsByMonthlyRevenuePageResponses={default:PageSkuForecast;};export type GetSkuForecastsByMonthlyRevenuePageResponse=GetSkuForecastsByMonthlyRevenuePageResponses[keyof GetSkuForecastsByMonthlyRevenuePageResponses];export type ClientOptions={baseUrl:'http://localhost:8080'|(string&{});};