/** * Endaoment API * The official Endaoment API & SDK endpoints * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { NdaoSdkDonationSwap, NdaoSdkFund, NdaoSdkOrg, NdaoSdkTransaction } from '../models'; export interface GetDeployedOrgsRequest { count?: number; offset?: number; } export interface GetDonationSwapTransactionRequest { einOrId: string; amountIn: string; tokenContractAddress?: string; } export interface GetOrgDeployTransactionRequest { einOrId: string; } export interface GetVisibleFundsRequest { count?: number; offset?: number; } export interface SearchOrgsRequest { searchTerm?: string; nteeMajorCodes?: string; nteeMinorCodes?: string; deployedStatus?: SearchOrgsDeployedStatusEnum; countries?: string; claimedStatus?: SearchOrgsClaimedStatusEnum; count?: number; offset?: number; } export interface SearchVisibleFundsRequest { name: string; count?: number; offset?: number; } /** * */ export declare class EndaomentSdkApi extends runtime.BaseAPI { /** * Only organizations that already have a deployed contract on Endaoment will be returned * Get a list of deployed Org contracts */ getDeployedOrgsRaw(requestParameters: GetDeployedOrgsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Only organizations that already have a deployed contract on Endaoment will be returned * Get a list of deployed Org contracts */ getDeployedOrgs(requestParameters?: GetDeployedOrgsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * If donating ETH, remove the `tokenContractAddress` parameter from the request. The transaction sender must perform an `approve` operation beforehand for any ERC20 donation, giving a correct allowance for the swap. * Get the transaction information required to swap and donate a given token amount to an org */ getDonationSwapTransactionRaw(requestParameters: GetDonationSwapTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * If donating ETH, remove the `tokenContractAddress` parameter from the request. The transaction sender must perform an `approve` operation beforehand for any ERC20 donation, giving a correct allowance for the swap. * Get the transaction information required to swap and donate a given token amount to an org */ getDonationSwapTransaction(requestParameters: GetDonationSwapTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get the transaction information required to deploy a given org */ getOrgDeployTransactionRaw(requestParameters: GetOrgDeployTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the transaction information required to deploy a given org */ getOrgDeployTransaction(requestParameters: GetOrgDeployTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Only community and transparent funds will be returned * Get a list of Endaoment funds */ getVisibleFundsRaw(requestParameters: GetVisibleFundsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Only community and transparent funds will be returned * Get a list of Endaoment funds */ getVisibleFunds(requestParameters?: GetVisibleFundsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Note: If using multiple parameters, the search will perform an AND operation of all inputs * Get a list of Endaoment Orgs, filtered by search parameters */ searchOrgsRaw(requestParameters: SearchOrgsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Note: If using multiple parameters, the search will perform an AND operation of all inputs * Get a list of Endaoment Orgs, filtered by search parameters */ searchOrgs(requestParameters?: SearchOrgsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Only community and transparent funds will be returned * Get a list of Endaoment Funds, filtered by search parameter */ searchVisibleFundsRaw(requestParameters: SearchVisibleFundsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Only community and transparent funds will be returned * Get a list of Endaoment Funds, filtered by search parameter */ searchVisibleFunds(requestParameters: SearchVisibleFundsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; } /** * @export */ export declare const SearchOrgsDeployedStatusEnum: { readonly Deployed: "deployed"; readonly Undeployed: "undeployed"; readonly All: "all"; }; export type SearchOrgsDeployedStatusEnum = typeof SearchOrgsDeployedStatusEnum[keyof typeof SearchOrgsDeployedStatusEnum]; /** * @export */ export declare const SearchOrgsClaimedStatusEnum: { readonly Claimed: "claimed"; readonly Unclaimed: "unclaimed"; readonly All: "all"; }; export type SearchOrgsClaimedStatusEnum = typeof SearchOrgsClaimedStatusEnum[keyof typeof SearchOrgsClaimedStatusEnum];