@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
56 lines • 3.15 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { BadRequest } from "./badrequest.js";
import { DomainTooShort } from "./domaintooshort.js";
import { HttpApiDecodeError } from "./httpapidecodeerror.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
import { TldNotSupported } from "./tldnotsupported.js";
export type GetDomainPriceRequest = {
domain: string;
/**
* The number of years to get the price for. If not provided, the minimum number of years for the TLD will be used.
*/
years?: string | undefined;
teamId?: string | undefined;
};
/**
* There was something wrong with the request
*/
export type GetDomainPriceDomainsRegistrarResponseBody = BadRequest | DomainTooShort | TldNotSupported | HttpApiDecodeError;
export type GetDomainPricePurchasePrice = number | string;
export type GetDomainPriceRenewalPrice = number | string;
export type GetDomainPriceTransferPrice = number | string;
/**
* Success
*/
export type GetDomainPriceResponseBody = {
years: number;
purchasePrice: number | string;
renewalPrice: number | string;
transferPrice: number | string;
};
/** @internal */
export type GetDomainPriceRequest$Outbound = {
domain: string;
years?: string | undefined;
teamId?: string | undefined;
};
/** @internal */
export declare const GetDomainPriceRequest$outboundSchema: z.ZodType<GetDomainPriceRequest$Outbound, z.ZodTypeDef, GetDomainPriceRequest>;
export declare function getDomainPriceRequestToJSON(getDomainPriceRequest: GetDomainPriceRequest): string;
/** @internal */
export declare const GetDomainPriceDomainsRegistrarResponseBody$inboundSchema: z.ZodType<GetDomainPriceDomainsRegistrarResponseBody, z.ZodTypeDef, unknown>;
export declare function getDomainPriceDomainsRegistrarResponseBodyFromJSON(jsonString: string): SafeParseResult<GetDomainPriceDomainsRegistrarResponseBody, SDKValidationError>;
/** @internal */
export declare const GetDomainPricePurchasePrice$inboundSchema: z.ZodType<GetDomainPricePurchasePrice, z.ZodTypeDef, unknown>;
export declare function getDomainPricePurchasePriceFromJSON(jsonString: string): SafeParseResult<GetDomainPricePurchasePrice, SDKValidationError>;
/** @internal */
export declare const GetDomainPriceRenewalPrice$inboundSchema: z.ZodType<GetDomainPriceRenewalPrice, z.ZodTypeDef, unknown>;
export declare function getDomainPriceRenewalPriceFromJSON(jsonString: string): SafeParseResult<GetDomainPriceRenewalPrice, SDKValidationError>;
/** @internal */
export declare const GetDomainPriceTransferPrice$inboundSchema: z.ZodType<GetDomainPriceTransferPrice, z.ZodTypeDef, unknown>;
export declare function getDomainPriceTransferPriceFromJSON(jsonString: string): SafeParseResult<GetDomainPriceTransferPrice, SDKValidationError>;
/** @internal */
export declare const GetDomainPriceResponseBody$inboundSchema: z.ZodType<GetDomainPriceResponseBody, z.ZodTypeDef, unknown>;
export declare function getDomainPriceResponseBodyFromJSON(jsonString: string): SafeParseResult<GetDomainPriceResponseBody, SDKValidationError>;
//# sourceMappingURL=getdomainpriceop.d.ts.map