@skyblock-finance/items
Version:
This package contains item metadata, primarily data that is not available on the Hypixel API yet
43 lines (42 loc) • 1.06 kB
TypeScript
export type ItemMetadataIds = {
skyblock: string | null;
cofl?: string;
};
export type ItemMetadataLinks = {
fandomWiki?: string;
hypixelWiki?: string;
};
export type ItemMetadataTradesOn = {
ah: boolean | null;
bz: boolean | null;
};
export type ItemMetadataBasic = {
type: 'basic';
ids: ItemMetadataIds;
links: ItemMetadataLinks;
tradesOn: ItemMetadataTradesOn;
};
export type ItemMetadataMissing = {
type: 'missing';
ids: ItemMetadataIds;
links: ItemMetadataLinks;
tradesOn: ItemMetadataTradesOn;
metadata: {
description: string | null;
id: string;
name: string;
textureUrl: string | null;
};
};
export type ItemMetadataIncorrect = {
type: 'incorrect';
ids: ItemMetadataIds;
links: ItemMetadataLinks;
tradesOn: ItemMetadataTradesOn;
corrected: {
description?: string;
name?: string;
textureUrl?: string | null;
};
};
export type ItemMetadata = ItemMetadataBasic | ItemMetadataIncorrect | ItemMetadataMissing;