Types

List of all typescript interfaces and types used for describing data and parameters for communication with spinamp database.

IConfig

Configuration object defining set of endpoints used by SDK.

interface IConfig {
    SPINDEX_NODE_URL: string;
    PLAYLIST_NODE_URL: string;
    IPFS_GATEWAY_URL_IMAGE: string;
    IPFS_GATEWAY_URL_AUDIO: string;
}

IArtist

Object describing artist entity.

interface IArtist {
    id: string;
    name: string;
    createdAtTime: string;
    slug: string;
    profiles: {
        [platformId: string]: IArtistProfile;
    };
}

IArtistProfile

Object containing information about artist profile based on data from particular platform. One artist can own multiples profiles assigned if he uploaded tracks for multiple platforms.

ITrack

Object describing track entity.

ICollectionTrack

Object describing track from nft collection of particular address owner. It's the same as ITrack but extended with quantity property.

INft

Object describing NFT entity minted for the track

ITrackNft

INft object extended with corresponding track id

IMusicPlatformData

Object containing information about platform id and it's corresponding name.

IPlaylist

Object describing playlist entity.

IApiListQueryParams

Set of parameters which can be passed to queries which return list of objects (fetchAllArtists, fetchAllTracks). It can be used for pagination, sorting and filtering.

Exact shape of filter and orderBy params depends on query and it can be found in API documentation of spinamp pipeline: https://open-api.spinamp.xyz/graphiql.

IApiListQueryResponse

Object returned from queries returning list of items. It contains data which can be used for pagination.

Last updated