Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | import { TVerticalBarChartData } from "@components/charts/VerticalBarChart/VerticalBarChart";
import { MerchantProductsStats, Ticket } from "./useCampaignModal";
import { ImageCanvasTypes } from "@sections/PayBuilder/provider/provider.type";
type PRODUCT = {
variant: {
name?: string;
price?: number;
};
};
export type VARIANT = {
id: string;
name?: string | undefined;
createdAt: number;
inventory: number;
totalPrice: string;
creator: string;
isSelected: boolean;
displayStatus: string;
hideCount: boolean;
product?: PRODUCT;
quantity: number;
hideInventory?: number;
hideSoldOut?: boolean;
};
type TWinner = {
id: number;
name: string;
when: string;
amount: string;
};
export interface BODY_DATA extends MerchantProductsStats {
id: string | number;
imageStyles?: ImageCanvasTypes;
Visitors: number;
name: string;
createdAt: number;
total: number | string;
conversion: number | null;
averageApprovedPurchases: number | string;
purchases: number;
variantsList: VARIANT[];
hideViewMore: boolean;
campaignEndsAt?: number | null;
typeName?: string;
startsAt?: number | null;
statsData: TVerticalBarChartData[];
variants: Array<Ticket>;
includeTime?: boolean | null;
totalTransactions?: number;
totalValidNonReversedPurchases: number;
totalValidPurchases?: number;
targetValue: number;
netGenerated: number;
totalItemsSold: number;
winner: TWinner;
totalApprovedPurchases: number;
sumApprovedPurchases: number;
}
|