@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>
57 lines • 2.81 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { HttpApiDecodeError } from "./httpapidecodeerror.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
import { TldNotSupported } from "./tldnotsupported.js";
export type GetTldPriceRequest = {
tld: 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 GetTldPriceDomainsRegistrarResponseBody = TldNotSupported | HttpApiDecodeError;
export type PurchasePrice = number | string;
export type RenewalPrice = number | string;
export type TransferPrice = number | string;
/**
* Success
*/
export type GetTldPriceResponseBody = {
/**
* The number of years the returned price is for.
*/
years: number;
purchasePrice: number | string;
renewalPrice: number | string;
transferPrice: number | string;
};
/** @internal */
export type GetTldPriceRequest$Outbound = {
tld: string;
years?: string | undefined;
teamId?: string | undefined;
};
/** @internal */
export declare const GetTldPriceRequest$outboundSchema: z.ZodType<GetTldPriceRequest$Outbound, z.ZodTypeDef, GetTldPriceRequest>;
export declare function getTldPriceRequestToJSON(getTldPriceRequest: GetTldPriceRequest): string;
/** @internal */
export declare const GetTldPriceDomainsRegistrarResponseBody$inboundSchema: z.ZodType<GetTldPriceDomainsRegistrarResponseBody, z.ZodTypeDef, unknown>;
export declare function getTldPriceDomainsRegistrarResponseBodyFromJSON(jsonString: string): SafeParseResult<GetTldPriceDomainsRegistrarResponseBody, SDKValidationError>;
/** @internal */
export declare const PurchasePrice$inboundSchema: z.ZodType<PurchasePrice, z.ZodTypeDef, unknown>;
export declare function purchasePriceFromJSON(jsonString: string): SafeParseResult<PurchasePrice, SDKValidationError>;
/** @internal */
export declare const RenewalPrice$inboundSchema: z.ZodType<RenewalPrice, z.ZodTypeDef, unknown>;
export declare function renewalPriceFromJSON(jsonString: string): SafeParseResult<RenewalPrice, SDKValidationError>;
/** @internal */
export declare const TransferPrice$inboundSchema: z.ZodType<TransferPrice, z.ZodTypeDef, unknown>;
export declare function transferPriceFromJSON(jsonString: string): SafeParseResult<TransferPrice, SDKValidationError>;
/** @internal */
export declare const GetTldPriceResponseBody$inboundSchema: z.ZodType<GetTldPriceResponseBody, z.ZodTypeDef, unknown>;
export declare function getTldPriceResponseBodyFromJSON(jsonString: string): SafeParseResult<GetTldPriceResponseBody, SDKValidationError>;
//# sourceMappingURL=gettldpriceop.d.ts.map