import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CrmOpportunitiesAddGlobals = { /** * ID of the consumer which you want to get or push data from */ consumerId?: string | undefined; /** * The ID of your Unify application */ appId?: string | undefined; }; export type CrmOpportunitiesAddRequest = { /** * Include raw response. Mostly used for debugging purposes */ raw?: boolean | undefined; /** * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. */ serviceId?: string | undefined; opportunity: components.OpportunityInput; }; export type CrmOpportunitiesAddResponse = { httpMeta: components.HTTPMetadata; /** * Opportunity created */ createOpportunityResponse?: components.CreateOpportunityResponse | undefined; /** * Unexpected error */ unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; /** @internal */ export declare const CrmOpportunitiesAddGlobals$inboundSchema: z.ZodType; /** @internal */ export type CrmOpportunitiesAddGlobals$Outbound = { consumerId?: string | undefined; appId?: string | undefined; }; /** @internal */ export declare const CrmOpportunitiesAddGlobals$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 CrmOpportunitiesAddGlobals$ { /** @deprecated use `CrmOpportunitiesAddGlobals$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesAddGlobals$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesAddGlobals$Outbound` instead. */ type Outbound = CrmOpportunitiesAddGlobals$Outbound; } export declare function crmOpportunitiesAddGlobalsToJSON(crmOpportunitiesAddGlobals: CrmOpportunitiesAddGlobals): string; export declare function crmOpportunitiesAddGlobalsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CrmOpportunitiesAddRequest$inboundSchema: z.ZodType; /** @internal */ export type CrmOpportunitiesAddRequest$Outbound = { raw: boolean; serviceId?: string | undefined; Opportunity: components.OpportunityInput$Outbound; }; /** @internal */ export declare const CrmOpportunitiesAddRequest$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 CrmOpportunitiesAddRequest$ { /** @deprecated use `CrmOpportunitiesAddRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesAddRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesAddRequest$Outbound` instead. */ type Outbound = CrmOpportunitiesAddRequest$Outbound; } export declare function crmOpportunitiesAddRequestToJSON(crmOpportunitiesAddRequest: CrmOpportunitiesAddRequest): string; export declare function crmOpportunitiesAddRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CrmOpportunitiesAddResponse$inboundSchema: z.ZodType; /** @internal */ export type CrmOpportunitiesAddResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; CreateOpportunityResponse?: components.CreateOpportunityResponse$Outbound | undefined; UnexpectedErrorResponse?: components.UnexpectedErrorResponse$Outbound | undefined; }; /** @internal */ export declare const CrmOpportunitiesAddResponse$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 CrmOpportunitiesAddResponse$ { /** @deprecated use `CrmOpportunitiesAddResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesAddResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesAddResponse$Outbound` instead. */ type Outbound = CrmOpportunitiesAddResponse$Outbound; } export declare function crmOpportunitiesAddResponseToJSON(crmOpportunitiesAddResponse: CrmOpportunitiesAddResponse): string; export declare function crmOpportunitiesAddResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=crmopportunitiesadd.d.ts.map