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 CrmOpportunitiesUpdateGlobals = { /** * 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 CrmOpportunitiesUpdateRequest = { /** * ID of the record you are acting upon. */ id: string; /** * 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; /** * Include raw response. Mostly used for debugging purposes */ raw?: boolean | undefined; opportunity: components.OpportunityInput; }; export type CrmOpportunitiesUpdateResponse = { httpMeta: components.HTTPMetadata; /** * Opportunity updated */ updateOpportunityResponse?: components.UpdateOpportunityResponse | undefined; /** * Unexpected error */ unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; /** @internal */ export declare const CrmOpportunitiesUpdateGlobals$inboundSchema: z.ZodType; /** @internal */ export type CrmOpportunitiesUpdateGlobals$Outbound = { consumerId?: string | undefined; appId?: string | undefined; }; /** @internal */ export declare const CrmOpportunitiesUpdateGlobals$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 CrmOpportunitiesUpdateGlobals$ { /** @deprecated use `CrmOpportunitiesUpdateGlobals$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesUpdateGlobals$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesUpdateGlobals$Outbound` instead. */ type Outbound = CrmOpportunitiesUpdateGlobals$Outbound; } export declare function crmOpportunitiesUpdateGlobalsToJSON(crmOpportunitiesUpdateGlobals: CrmOpportunitiesUpdateGlobals): string; export declare function crmOpportunitiesUpdateGlobalsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CrmOpportunitiesUpdateRequest$inboundSchema: z.ZodType; /** @internal */ export type CrmOpportunitiesUpdateRequest$Outbound = { id: string; serviceId?: string | undefined; raw: boolean; Opportunity: components.OpportunityInput$Outbound; }; /** @internal */ export declare const CrmOpportunitiesUpdateRequest$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 CrmOpportunitiesUpdateRequest$ { /** @deprecated use `CrmOpportunitiesUpdateRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesUpdateRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesUpdateRequest$Outbound` instead. */ type Outbound = CrmOpportunitiesUpdateRequest$Outbound; } export declare function crmOpportunitiesUpdateRequestToJSON(crmOpportunitiesUpdateRequest: CrmOpportunitiesUpdateRequest): string; export declare function crmOpportunitiesUpdateRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CrmOpportunitiesUpdateResponse$inboundSchema: z.ZodType; /** @internal */ export type CrmOpportunitiesUpdateResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; UpdateOpportunityResponse?: components.UpdateOpportunityResponse$Outbound | undefined; UnexpectedErrorResponse?: components.UnexpectedErrorResponse$Outbound | undefined; }; /** @internal */ export declare const CrmOpportunitiesUpdateResponse$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 CrmOpportunitiesUpdateResponse$ { /** @deprecated use `CrmOpportunitiesUpdateResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesUpdateResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CrmOpportunitiesUpdateResponse$Outbound` instead. */ type Outbound = CrmOpportunitiesUpdateResponse$Outbound; } export declare function crmOpportunitiesUpdateResponseToJSON(crmOpportunitiesUpdateResponse: CrmOpportunitiesUpdateResponse): string; export declare function crmOpportunitiesUpdateResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=crmopportunitiesupdate.d.ts.map