@sociate/sociate-api-sdk
Version:
Javascript client for Sociate AI APIs
92 lines (91 loc) • 1.67 kB
TypeScript
export interface TrendSide {
/**
* Id
* @description The id of the product.
*/
id: string;
/**
* Image Url
* @description The image url of the product.
*/
image_url: string;
/**
* Url
* @description The url of the product.
*/
url: string;
}
export interface TrendProduct {
/**
* The type of the trend product.
*/
type?: string;
/**
* The left side trend information.
*/
left?: TrendSide;
/**
* The top side trend information.
*/
top?: TrendSide;
/**
* The bottom side trend information.
*/
bottom?: TrendSide;
}
export interface TrendModel {
/**
* Title
* @description Title of the trend
*/
title: string;
/**
* Products
* @description Products related to the trend
*/
products: TrendProduct[];
/**
* Date
* @description Date of the trend
*/
date: string;
}
export interface GetTrends {
/**
* Page
* @description Page number
*/
page?: number;
/**
* Size
* @description Limit number of items per page
*/
size?: number;
}
export interface GetTrendsResponse {
/**
* items
* @description List of items
*/
items: TrendModel[];
/**
* Total
* @description Total number of items
*/
total: number;
/**
* Page
* @description Page number
*/
page: number;
/**
* Size
* @description Limit number of items per page
*/
size: number;
/**
* Total Pages
* @description Total number of pages
*/
pages?: number;
}