import { CollectionInterface, NftInterface } from './interfaces/Collection'; import Connection from './Connection'; /** * @category SDK */ declare class Collections extends Connection { /** * Call api route /collection/:id {GET} to get Collection by Id * @param {string} id //mongodb_id of collection you want to get * @returns {{unknown,CollectionInterface}} return an error object or collectionInterface * @category Collections */ getCollection(id: string): Promise | CollectionInterface | any | Array>; /** * Call api route /collections/ {GET} to get Lists of Collections of current brand connected * @returns {[CollectionInterface]} return an array of collection linked by api_key * @category Collections */ getCollections(): Promise | CollectionInterface | any | Array>; /** * Call api route /collection/:id {GET} to get Collection by Id * @param {CollectionInterface} collection collection interface you want to get nfts * @returns {{unknown,NftInterface}} return an object error or array of nfts interface * @category Collections */ getAllNfts(collection: CollectionInterface): Promise | CollectionInterface | any | Array>; /** * Call api route /claim/:id {POST} to claim token * @param {number} collectionId mongodb Id of collection you want to interact * @param {number} startTokenId next id to claim get into smart contract * @param {number} quantity quantity user want claim * @param {string} value price * quantity for claim * @param {string} hash hash of blockchain transaction * @returns {CollectionInterface} * @category Collections */ claimIntoCollection(collectionId: string, startTokenId: number, quantity: number, value: string, hash: string): Promise; /** * Call api route /merkleProof/ {POST} to retrieve expected proof to claim * @param {number} collectionId id of collection you want interact * @param {number} claimConditionId id of active claim condition * @returns {CollectionInterface} * @category Collections */ getMerkleProof(collectionId: string, claimConditionId: number): Promise; /** * Call api route /collection/`+collectionId+`/batches/ {GET} to retrieve nfts * @param {string} collectionId * @returns {CollectionInterface} * @category Collections */ getNftsByBatch(collectionId: string): Promise; /** * return array of claim condition in collection * @param {CollectionInterface} collection collection you want to interact * @returns {Array} array of claim condition in collection */ getSales(collection: CollectionInterface): Promise; } export default Collections;