import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export declare const PartnerApplicationSubmittedEventEvent: { readonly PartnerApplicationSubmitted: "partner.application_submitted"; }; export type PartnerApplicationSubmittedEventEvent = ClosedEnum; /** * The status of the partner's enrollment in the program. */ export declare const PartnerApplicationSubmittedEventStatus: { readonly Pending: "pending"; readonly Approved: "approved"; readonly Rejected: "rejected"; readonly Invited: "invited"; readonly Declined: "declined"; readonly Deactivated: "deactivated"; readonly Banned: "banned"; readonly Archived: "archived"; }; /** * The status of the partner's enrollment in the program. */ export type PartnerApplicationSubmittedEventStatus = ClosedEnum; export type PartnerApplicationSubmittedEventPartner = { /** * The partner's unique ID on Dub. */ id: string; /** * The partner's full legal name. */ name: string; /** * If the partner profile type is a company, this is the partner's legal company name. */ companyName: string | null; /** * The partner's email address. Should be a unique value across Dub. */ email: string | null; /** * The partner's avatar image. */ image: string | null; /** * A brief description of the partner and their background. */ description?: string | null | undefined; /** * The partner's country (required for tax purposes). */ country: string | null; /** * The partner's group ID on Dub. */ groupId?: string | null | undefined; /** * The status of the partner's enrollment in the program. */ status: PartnerApplicationSubmittedEventStatus; /** * The partner's website URL (including the https protocol). */ website?: string | null | undefined; /** * The partner's YouTube channel username (e.g. `johndoe`). */ youtube?: string | null | undefined; /** * The partner's Twitter username (e.g. `johndoe`). */ twitter?: string | null | undefined; /** * The partner's LinkedIn username (e.g. `johndoe`). */ linkedin?: string | null | undefined; /** * The partner's Instagram username (e.g. `johndoe`). */ instagram?: string | null | undefined; /** * The partner's TikTok username (e.g. `johndoe`). */ tiktok?: string | null | undefined; }; export type ApplicationFormData = { label: string; value: string | null; }; export type PartnerApplicationSubmittedEventData = { id: string; createdAt: string; partner: PartnerApplicationSubmittedEventPartner; applicationFormData: Array | null; }; /** * Triggered when a partner submits an application to join a program. */ export type PartnerApplicationSubmittedEvent = { id: string; event: PartnerApplicationSubmittedEventEvent; createdAt: string; data: PartnerApplicationSubmittedEventData; }; /** @internal */ export declare const PartnerApplicationSubmittedEventEvent$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PartnerApplicationSubmittedEventEvent$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PartnerApplicationSubmittedEventStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PartnerApplicationSubmittedEventStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PartnerApplicationSubmittedEventPartner$inboundSchema: z.ZodType; /** @internal */ export type PartnerApplicationSubmittedEventPartner$Outbound = { id: string; name: string; companyName: string | null; email: string | null; image: string | null; description?: string | null | undefined; country: string | null; groupId?: string | null | undefined; status: string; website?: string | null | undefined; youtube?: string | null | undefined; twitter?: string | null | undefined; linkedin?: string | null | undefined; instagram?: string | null | undefined; tiktok?: string | null | undefined; }; /** @internal */ export declare const PartnerApplicationSubmittedEventPartner$outboundSchema: z.ZodType; export declare function partnerApplicationSubmittedEventPartnerToJSON(partnerApplicationSubmittedEventPartner: PartnerApplicationSubmittedEventPartner): string; export declare function partnerApplicationSubmittedEventPartnerFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ApplicationFormData$inboundSchema: z.ZodType; /** @internal */ export type ApplicationFormData$Outbound = { label: string; value: string | null; }; /** @internal */ export declare const ApplicationFormData$outboundSchema: z.ZodType; export declare function applicationFormDataToJSON(applicationFormData: ApplicationFormData): string; export declare function applicationFormDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PartnerApplicationSubmittedEventData$inboundSchema: z.ZodType; /** @internal */ export type PartnerApplicationSubmittedEventData$Outbound = { id: string; createdAt: string; partner: PartnerApplicationSubmittedEventPartner$Outbound; applicationFormData: Array | null; }; /** @internal */ export declare const PartnerApplicationSubmittedEventData$outboundSchema: z.ZodType; export declare function partnerApplicationSubmittedEventDataToJSON(partnerApplicationSubmittedEventData: PartnerApplicationSubmittedEventData): string; export declare function partnerApplicationSubmittedEventDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PartnerApplicationSubmittedEvent$inboundSchema: z.ZodType; /** @internal */ export type PartnerApplicationSubmittedEvent$Outbound = { id: string; event: string; createdAt: string; data: PartnerApplicationSubmittedEventData$Outbound; }; /** @internal */ export declare const PartnerApplicationSubmittedEvent$outboundSchema: z.ZodType; export declare function partnerApplicationSubmittedEventToJSON(partnerApplicationSubmittedEvent: PartnerApplicationSubmittedEvent): string; export declare function partnerApplicationSubmittedEventFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=partnerapplicationsubmittedevent.d.ts.map