@hypernetlabs/hypernet-id-corporate-integration
Version:
Corporate integration package for Hypernet.ID.
31 lines • 1.26 kB
TypeScript
/// <reference types="node" />
import { AjaxError, UUID, EmailAddressString, EthereumAccountAddress } from "@hypernetlabs/objects";
import { ResultAsync } from "neverthrow";
export interface NFTMetadata {
[x: string]: string;
}
export interface IHypernetCorporateIntegrationConfig {
apiBaseUrl?: string;
}
export interface IHypernetCorporateIntegration {
/**
* This method uploads a file to a collection.
* @param collectionId
* @param fileBuffer
* @param fileName
*/
uploadFileToCollection(collectionId: UUID, fileBuffer: Buffer, fileName: string): ResultAsync<void, AjaxError>;
/**
* This method is used to create an NFT on a particular collection.
* @param collectionId
* @param metadata
* @param identityId
* @param emailAddress
* @param accountAddress
* @param imageFileName
* @param animationFileName
* @returns NFT ID.
*/
createNFTInCollection(collectionId: UUID, metadata: NFTMetadata, identityId: UUID | null, emailAddress: EmailAddressString | null, accountAddress: EthereumAccountAddress | null, imageFileName: string | null, animationFileName: string | null): ResultAsync<UUID, AjaxError>;
}
//# sourceMappingURL=IHypernetCorporateIntegration.d.ts.map