import BaseModule from "../BaseModules"; import GetShopPerformanceResponse from "./response/GetShopPerformanceResponse"; import GetProductStatisticResponse from "./response/GetProductStatisticResponse"; import GetTransactionStatisticResponse from "./response/GetTransactionStatisticResponse"; import GetBuyerStatisticRequest from "./request/GetBuyerStatisticRequest"; import GetBuyerStatisticResponse from "./response/GetBuyerStatisticResponse"; export default class StatisticModule extends BaseModule { /** * This endpoint returns total view, total order, total sold, total success transaction, and total view product within the date range provided in the query parameter. * @param shop_id shop unique identifier * @param start_date Show only transactions with date from the start_date. eg 20190902 * @param end_date Show only transactions with date until the end_date. eg 20190908 */ getShopPerformance(shop_id: number, start_date: number, end_date: number): Promise; /** * This endpoint returns 5 popular products and 5 wishlist products within date range provided. * @param shop_id shop unique identifier * @param start_date Show only transactions with date from the start_date. eg 20190902 * @param end_date Show only transactions with date until the end_date. eg 20190908 * @param pagesize Show total popular product shown. */ getProductStatistic(shop_id: number, start_date: number, end_date: number, pagesize: number): Promise; /** * This endpoint returns total and summary of delivered amount, rejected amount, insurance amount, ship amount, success transaction, delivery transaction, rejected transaction, and top ads amount within date range provided. * @param shop_id shop unique identifier * @param start_date Show only transactions with date from the start_date. eg 20190902 * @param end_date Show only transactions with date until the end_date. eg 20190908 * @param pagesize Total data shown in one response. [FOR response json TransSummary] */ getTransactionStatistic(shop_id: number, start_date: number, end_date: number, pagesize: number): Promise; /** * This endpoint returns the buyer’s location,top buyers, ages, female buyer, and total follower within date range provided. * @param request */ getBuyerStatistic(request: GetBuyerStatisticRequest): Promise; }