/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { proposalsGetApiV3LatestProposalId } from "../funcs/proposalsGetApiV3LatestProposalId.js"; import { proposalsGetApiV3MetricsLatestProposalId } from "../funcs/proposalsGetApiV3MetricsLatestProposalId.js"; import { proposalsGetApiV3NnsParticipationRate } from "../funcs/proposalsGetApiV3NnsParticipationRate.js"; import { proposalsGetApiV3Proposals } from "../funcs/proposalsGetApiV3Proposals.js"; import { proposalsGetApiV3ProposalsCount } from "../funcs/proposalsGetApiV3ProposalsCount.js"; import { proposalsGetApiV3ProposalsOverPast7d } from "../funcs/proposalsGetApiV3ProposalsOverPast7d.js"; import { proposalsGetApiV3ProposalsProposalId } from "../funcs/proposalsGetApiV3ProposalsProposalId.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Proposals extends ClientSDK { async getApiV3Proposals( request?: operations.GetApiV3ProposalsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(proposalsGetApiV3Proposals( this, request, options, )); } async getApiV3NnsParticipationRate( request?: operations.GetApiV3NnsParticipationRateRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(proposalsGetApiV3NnsParticipationRate( this, request, options, )); } async getApiV3ProposalsProposalId( request: operations.GetApiV3ProposalsProposalIdRequest, options?: RequestOptions, ): Promise { return unwrapAsync(proposalsGetApiV3ProposalsProposalId( this, request, options, )); } async getApiV3ProposalsCount( options?: RequestOptions, ): Promise { return unwrapAsync(proposalsGetApiV3ProposalsCount( this, options, )); } async getApiV3LatestProposalId( options?: RequestOptions, ): Promise { return unwrapAsync(proposalsGetApiV3LatestProposalId( this, options, )); } /** * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsLatestProposalId( options?: RequestOptions, ): Promise { return unwrapAsync(proposalsGetApiV3MetricsLatestProposalId( this, options, )); } async getApiV3ProposalsOverPast7d( options?: RequestOptions, ): Promise { return unwrapAsync(proposalsGetApiV3ProposalsOverPast7d( this, options, )); } }