import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection } from "./sortdirection.js"; /** * The field on which to sort the Opportunities */ export declare const OpportunitiesSortBy: { readonly CreatedAt: "created_at"; readonly UpdatedAt: "updated_at"; readonly Title: "title"; readonly WinProbability: "win_probability"; readonly MonetaryAmount: "monetary_amount"; readonly Status: "status"; }; /** * The field on which to sort the Opportunities */ export type OpportunitiesSortBy = ClosedEnum; export type OpportunitiesSort = { /** * The field on which to sort the Opportunities */ by?: OpportunitiesSortBy | undefined; /** * The direction in which to sort the results */ direction?: SortDirection | undefined; }; /** @internal */ export declare const OpportunitiesSortBy$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OpportunitiesSortBy$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OpportunitiesSortBy$ { /** @deprecated use `OpportunitiesSortBy$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly CreatedAt: "created_at"; readonly UpdatedAt: "updated_at"; readonly Title: "title"; readonly WinProbability: "win_probability"; readonly MonetaryAmount: "monetary_amount"; readonly Status: "status"; }>; /** @deprecated use `OpportunitiesSortBy$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly CreatedAt: "created_at"; readonly UpdatedAt: "updated_at"; readonly Title: "title"; readonly WinProbability: "win_probability"; readonly MonetaryAmount: "monetary_amount"; readonly Status: "status"; }>; } /** @internal */ export declare const OpportunitiesSort$inboundSchema: z.ZodType; /** @internal */ export type OpportunitiesSort$Outbound = { by?: string | undefined; direction: string; }; /** @internal */ export declare const OpportunitiesSort$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OpportunitiesSort$ { /** @deprecated use `OpportunitiesSort$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OpportunitiesSort$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OpportunitiesSort$Outbound` instead. */ type Outbound = OpportunitiesSort$Outbound; } export declare function opportunitiesSortToJSON(opportunitiesSort: OpportunitiesSort): string; export declare function opportunitiesSortFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=opportunitiessort.d.ts.map