UNPKG

nmkr-studio-api

Version:

Typesafe API Client to work with the NMKR Studio V2 API

38 lines (37 loc) 1.63 kB
import type { GetWhitelistEntriesClass } from '../models/GetWhitelistEntriesClass'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class WhitelistsService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Gets all entries of a projects whitelist * With this call you can retrieve all entries of a whitelist of a project (if the project has one) * @returns GetWhitelistEntriesClass Returns the complete whitelist and how much are already sold * @throws ApiError */ getV2ManageWhitelist({ projectuid, }: { projectuid: string; }): CancelablePromise<Array<GetWhitelistEntriesClass>>; /** * Adds an entry to a projects whitelist * With this call you can add an entry to a whitelist of a project (if the project has one) * @returns any Returns when the address was added to the whitelist * @throws ApiError */ postV2ManageWhitelist({ projectuid, address, countofnfts, }: { projectuid: string; address: string; countofnfts: number; }): CancelablePromise<any>; /** * Deletes an entry from a projects whitelist * With this call you can delete an entry from a whitelist of a project (if the project has one) * @returns any Returns, when the address was successfully deleted from the list * @throws ApiError */ deleteV2ManageWhitelist({ projectuid, address, }: { projectuid: string; address: string; }): CancelablePromise<any>; }