Skip to main content

TypeAlias.ProductSheetStats

type ProductSheetStats = {
byStatus: Record<string, number>;
retrievalRate: number;
timeSeries: {
count: number;
date: string;
}[];
totalDppsMinted: number;
totalDppsRetrieved: number;
totalProductSheets: number;
};

Aggregated statistics for all DPP product sheets at organization level.

Provides overview metrics including status breakdown, total counts, and historical trends. Used by dashboard widgets to display organization-wide DPP statistics.

Type Declaration

NameType
byStatusRecord<string, number>
retrievalRatenumber
timeSeries{ count: number; date: string; }[]
totalDppsMintednumber
totalDppsRetrievednumber
totalProductSheetsnumber

Example

const stats: ProductSheetStats = {
totalProductSheets: 17,
byStatus: { DRAFT: 5, ACTIVE: 12, UNLISTED: 3, ARCHIVED: 1 },
totalDppsMinted: 145,
totalDppsRetrieved: 87,
retrievalRate: 60.0,
timeSeries: [{ date: '2025-01-15', count: 3 }, ...]
};