nmkr-studio-api
Version:
Typesafe API Client to work with the NMKR Studio V2 API
43 lines (42 loc) • 1.76 kB
TypeScript
import type { CreateAuctionClass } from '../models/CreateAuctionClass';
import type { GetAuctionsClass } from '../models/GetAuctionsClass';
import type { GetAuctionStateResultClass } from '../models/GetAuctionStateResultClass';
import type { CancelablePromise } from '../core/CancelablePromise';
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
export declare class AuctionsService {
readonly httpRequest: BaseHttpRequest;
constructor(httpRequest: BaseHttpRequest);
/**
* Creates a new legacy auction in the cardano network
* @returns GetAuctionStateResultClass Returns an array of the GetAuctionStateResultClass
* @throws ApiError
*/
postV2CreateAuction({ customerid, requestBody, }: {
customerid: number;
requestBody?: CreateAuctionClass;
}): CancelablePromise<GetAuctionStateResultClass>;
/**
* Deletes an auction - if the auction is not already started
* @returns any Returns an array of the GetAuctionStateResultClass
* @throws ApiError
*/
getV2DeleteAuction({ auctionuid, }: {
auctionuid: string;
}): CancelablePromise<any>;
/**
* Returns all auctions of the customer
* @returns GetAuctionsClass Returns an array of the GetAuctionStateResultClass
* @throws ApiError
*/
getV2GetAllAuctions({ customerid, }: {
customerid: number;
}): CancelablePromise<Array<GetAuctionsClass>>;
/**
* Returns the state - and the last bids of a auction project
* @returns GetAuctionStateResultClass Returns an array of the GetAuctionStateResultClass
* @throws ApiError
*/
getV2GetAuctionState({ auctionuid, }: {
auctionuid: string;
}): CancelablePromise<GetAuctionStateResultClass>;
}