/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest = { jobId: string; userId: string; orgId: string; tenantId: string; }; export const GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus = { BackgroundJobStatusUnspecified: "BACKGROUND_JOB_STATUS_UNSPECIFIED", BackgroundJobStatusQueued: "BACKGROUND_JOB_STATUS_QUEUED", BackgroundJobStatusInProgress: "BACKGROUND_JOB_STATUS_IN_PROGRESS", BackgroundJobStatusCompleted: "BACKGROUND_JOB_STATUS_COMPLETED", BackgroundJobStatusFailed: "BACKGROUND_JOB_STATUS_FAILED", BackgroundJobStatusCancelled: "BACKGROUND_JOB_STATUS_CANCELLED", BackgroundJobStatusTimedOut: "BACKGROUND_JOB_STATUS_TIMED_OUT", } as const; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus = ClosedEnum< typeof GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus >; export const GetApiLeadScraperMicroserviceApiV1JobsJobIdLang = { LanguageUnspecified: "LANGUAGE_UNSPECIFIED", LanguageEnglish: "LANGUAGE_ENGLISH", LanguageSpanish: "LANGUAGE_SPANISH", LanguageFrench: "LANGUAGE_FRENCH", LanguageGerman: "LANGUAGE_GERMAN", LanguageItalian: "LANGUAGE_ITALIAN", LanguagePortuguese: "LANGUAGE_PORTUGUESE", LanguageDutch: "LANGUAGE_DUTCH", LanguageRussian: "LANGUAGE_RUSSIAN", LanguageChinese: "LANGUAGE_CHINESE", LanguageJapanese: "LANGUAGE_JAPANESE", LanguageKorean: "LANGUAGE_KOREAN", LanguageArabic: "LANGUAGE_ARABIC", LanguageHindi: "LANGUAGE_HINDI", LanguageGreek: "LANGUAGE_GREEK", LanguageTurkish: "LANGUAGE_TURKISH", } as const; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdLang = ClosedEnum< typeof GetApiLeadScraperMicroserviceApiV1JobsJobIdLang >; export const GetApiLeadScraperMicroserviceApiV1JobsJobIdDay = { DayOfWeekUnspecified: "DAY_OF_WEEK_UNSPECIFIED", DayOfWeekMonday: "DAY_OF_WEEK_MONDAY", DayOfWeekTuesday: "DAY_OF_WEEK_TUESDAY", DayOfWeekWednesday: "DAY_OF_WEEK_WEDNESDAY", DayOfWeekThursday: "DAY_OF_WEEK_THURSDAY", DayOfWeekFriday: "DAY_OF_WEEK_FRIDAY", DayOfWeekSaturday: "DAY_OF_WEEK_SATURDAY", DayOfWeekSunday: "DAY_OF_WEEK_SUNDAY", } as const; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdDay = ClosedEnum< typeof GetApiLeadScraperMicroserviceApiV1JobsJobIdDay >; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours = { id?: string | undefined; day?: GetApiLeadScraperMicroserviceApiV1JobsJobIdDay | undefined; openTime?: string | undefined; closeTime?: string | undefined; closed?: boolean | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; deletedAt?: Date | undefined; }; export const GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay = { DayOfWeekUnspecified: "DAY_OF_WEEK_UNSPECIFIED", DayOfWeekMonday: "DAY_OF_WEEK_MONDAY", DayOfWeekTuesday: "DAY_OF_WEEK_TUESDAY", DayOfWeekWednesday: "DAY_OF_WEEK_WEDNESDAY", DayOfWeekThursday: "DAY_OF_WEEK_THURSDAY", DayOfWeekFriday: "DAY_OF_WEEK_FRIDAY", DayOfWeekSaturday: "DAY_OF_WEEK_SATURDAY", DayOfWeekSunday: "DAY_OF_WEEK_SUNDAY", } as const; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay = ClosedEnum< typeof GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay >; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours = { id?: string | undefined; day?: GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay | undefined; openTime?: string | undefined; closeTime?: string | undefined; closed?: boolean | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; deletedAt?: Date | undefined; }; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews = { id?: string | undefined; author?: string | undefined; rating?: number | undefined; text?: string | undefined; time?: Date | undefined; language?: string | undefined; profilePhotoUrl?: string | undefined; reviewCount?: number | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; deletedAt?: Date | undefined; }; export const GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange = { RevenueRangeUnspecified: "REVENUE_RANGE_UNSPECIFIED", RevenueRangeUnder100K: "REVENUE_RANGE_UNDER_100K", RevenueRange100KTo1M: "REVENUE_RANGE_100K_TO_1M", RevenueRange1MTo10M: "REVENUE_RANGE_1M_TO_10M", RevenueRange10MTo50M: "REVENUE_RANGE_10M_TO_50M", RevenueRangeOver50M: "REVENUE_RANGE_OVER_50M", } as const; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange = ClosedEnum; export const GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits = { EmployeeBenefitUnspecified: "EMPLOYEE_BENEFIT_UNSPECIFIED", EmployeeBenefitHealthInsurance: "EMPLOYEE_BENEFIT_HEALTH_INSURANCE", EmployeeBenefitRetirementPlan: "EMPLOYEE_BENEFIT_RETIREMENT_PLAN", EmployeeBenefitPaidTimeOff: "EMPLOYEE_BENEFIT_PAID_TIME_OFF", EmployeeBenefitRemoteWork: "EMPLOYEE_BENEFIT_REMOTE_WORK", } as const; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits = ClosedEnum< typeof GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits >; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads = { id?: string | undefined; name?: string | undefined; website?: string | undefined; phone?: string | undefined; address?: string | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; latitude?: number | undefined; longitude?: number | undefined; googleRating?: number | undefined; reviewCount?: number | undefined; industry?: string | undefined; employeeCount?: number | undefined; estimatedRevenue?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; deletedAt?: Date | undefined; placeId?: string | undefined; googleMapsUrl?: string | undefined; businessStatus?: string | undefined; regularHours?: | Array | undefined; specialHours?: | Array | undefined; photoReferences?: Array | undefined; mainPhotoUrl?: string | undefined; reviews?: | Array | undefined; types?: Array | undefined; amenities?: Array | undefined; servesVegetarianFood?: boolean | undefined; outdoorSeating?: boolean | undefined; paymentMethods?: Array | undefined; wheelchairAccessible?: boolean | undefined; parkingAvailable?: boolean | undefined; socialMedia?: { [k: string]: string } | undefined; ratingCategory?: string | undefined; rating?: number | undefined; count?: number | undefined; lastUpdated?: Date | undefined; dataSourceVersion?: string | undefined; scrapingSessionId?: string | undefined; alternatePhones?: Array | undefined; contactPersonName?: string | undefined; contactPersonTitle?: string | undefined; contactEmail?: string | undefined; foundedYear?: number | undefined; businessType?: string | undefined; certifications?: Array | undefined; licenseNumber?: string | undefined; revenueRange?: | GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange | undefined; fundingStage?: string | undefined; isPublicCompany?: boolean | undefined; websiteLoadSpeed?: number | undefined; hasSslCertificate?: boolean | undefined; cmsUsed?: string | undefined; ecommercePlatforms?: Array | undefined; timezone?: string | undefined; neighborhood?: string | undefined; nearbyLandmarks?: Array | undefined; transportationAccess?: string | undefined; employeeBenefits?: | Array | undefined; parentCompany?: string | undefined; subsidiaries?: Array | undefined; isFranchise?: boolean | undefined; seoKeywords?: Array | undefined; usesGoogleAds?: boolean | undefined; googleMyBusinessCategory?: string | undefined; naicsCode?: string | undefined; sicCode?: string | undefined; unspscCode?: string | undefined; isGreenCertified?: boolean | undefined; energySources?: Array | undefined; sustainabilityRating?: string | undefined; recentAnnouncements?: Array | undefined; lastProductLaunch?: Date | undefined; hasLitigationHistory?: boolean | undefined; exportControlStatus?: string | undefined; }; export type Job = { id?: string | undefined; priority?: number | undefined; payloadType?: string | undefined; payload?: string | undefined; createdAt?: Date | undefined; status?: GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus | undefined; name?: string | undefined; keywords?: Array | undefined; lang?: GetApiLeadScraperMicroserviceApiV1JobsJobIdLang | undefined; zoom?: number | undefined; lat?: string | undefined; lon?: string | undefined; fastMode?: boolean | undefined; radius?: number | undefined; depth?: number | undefined; email?: boolean | undefined; maxTime?: number | undefined; proxies?: Array | undefined; updatedAt?: Date | undefined; deletedAt?: Date | undefined; leads?: Array | undefined; url?: string | undefined; }; export type GetApiLeadScraperMicroserviceApiV1JobsJobIdData = { job?: Job | undefined; }; /** * This endpoint retrieves a specific Google Maps scraping job */ export type GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody = { data: GetApiLeadScraperMicroserviceApiV1JobsJobIdData; }; /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$inboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest, z.ZodTypeDef, unknown > = z.object({ jobId: z.string(), userId: z.string(), orgId: z.string(), tenantId: z.string(), }); /** @internal */ export type GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$Outbound = { jobId: string; userId: string; orgId: string; tenantId: string; }; /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$outboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$Outbound, z.ZodTypeDef, GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest > = z.object({ jobId: z.string(), userId: z.string(), orgId: z.string(), tenantId: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$outboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$Outbound` instead. */ export type Outbound = GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$Outbound; } export function getApiLeadScraperMicroserviceApiV1JobsJobIdRequestToJSON( getApiLeadScraperMicroserviceApiV1JobsJobIdRequest: GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest, ): string { return JSON.stringify( GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$outboundSchema.parse( getApiLeadScraperMicroserviceApiV1JobsJobIdRequest, ), ); } export function getApiLeadScraperMicroserviceApiV1JobsJobIdRequestFromJSON( jsonString: string, ): SafeParseResult< GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest, SDKValidationError > { return safeParse( jsonString, (x) => GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'GetApiLeadScraperMicroserviceApiV1JobsJobIdRequest' from JSON`, ); } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus); /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$outboundSchema: z.ZodNativeEnum = GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$outboundSchema; } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetApiLeadScraperMicroserviceApiV1JobsJobIdLang); /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$outboundSchema: z.ZodNativeEnum = GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$outboundSchema; } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetApiLeadScraperMicroserviceApiV1JobsJobIdDay); /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$outboundSchema: z.ZodNativeEnum = GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$outboundSchema; } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$inboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours, z.ZodTypeDef, unknown > = z.object({ id: z.string().optional(), day: GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$inboundSchema.default( "DAY_OF_WEEK_UNSPECIFIED", ), openTime: z.string().optional(), closeTime: z.string().optional(), closed: z.boolean().optional(), createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), deletedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), }); /** @internal */ export type GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$Outbound = { id?: string | undefined; day: string; openTime?: string | undefined; closeTime?: string | undefined; closed?: boolean | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; deletedAt?: string | undefined; }; /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$outboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$Outbound, z.ZodTypeDef, GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours > = z.object({ id: z.string().optional(), day: GetApiLeadScraperMicroserviceApiV1JobsJobIdDay$outboundSchema.default( "DAY_OF_WEEK_UNSPECIFIED", ), openTime: z.string().optional(), closeTime: z.string().optional(), closed: z.boolean().optional(), createdAt: z.date().transform(v => v.toISOString()).optional(), updatedAt: z.date().transform(v => v.toISOString()).optional(), deletedAt: z.date().transform(v => v.toISOString()).optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$outboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$Outbound` instead. */ export type Outbound = GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$Outbound; } export function getApiLeadScraperMicroserviceApiV1JobsJobIdRegularHoursToJSON( getApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours: GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours, ): string { return JSON.stringify( GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$outboundSchema .parse(getApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours), ); } export function getApiLeadScraperMicroserviceApiV1JobsJobIdRegularHoursFromJSON( jsonString: string, ): SafeParseResult< GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours, SDKValidationError > { return safeParse( jsonString, (x) => GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours' from JSON`, ); } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay); /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$outboundSchema: z.ZodNativeEnum = GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$outboundSchema; } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$inboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours, z.ZodTypeDef, unknown > = z.object({ id: z.string().optional(), day: GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$inboundSchema .default("DAY_OF_WEEK_UNSPECIFIED"), openTime: z.string().optional(), closeTime: z.string().optional(), closed: z.boolean().optional(), createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), deletedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), }); /** @internal */ export type GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$Outbound = { id?: string | undefined; day: string; openTime?: string | undefined; closeTime?: string | undefined; closed?: boolean | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; deletedAt?: string | undefined; }; /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$outboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$Outbound, z.ZodTypeDef, GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours > = z.object({ id: z.string().optional(), day: GetApiLeadScraperMicroserviceApiV1JobsJobIdJobsDay$outboundSchema .default("DAY_OF_WEEK_UNSPECIFIED"), openTime: z.string().optional(), closeTime: z.string().optional(), closed: z.boolean().optional(), createdAt: z.date().transform(v => v.toISOString()).optional(), updatedAt: z.date().transform(v => v.toISOString()).optional(), deletedAt: z.date().transform(v => v.toISOString()).optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$outboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$Outbound` instead. */ export type Outbound = GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$Outbound; } export function getApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHoursToJSON( getApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours: GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours, ): string { return JSON.stringify( GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$outboundSchema .parse(getApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours), ); } export function getApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHoursFromJSON( jsonString: string, ): SafeParseResult< GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours, SDKValidationError > { return safeParse( jsonString, (x) => GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours' from JSON`, ); } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$inboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews, z.ZodTypeDef, unknown > = z.object({ id: z.string().optional(), author: z.string().optional(), rating: z.number().optional(), text: z.string().optional(), time: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), language: z.string().optional(), profilePhotoUrl: z.string().optional(), reviewCount: z.number().int().optional(), createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), deletedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), }); /** @internal */ export type GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$Outbound = { id?: string | undefined; author?: string | undefined; rating?: number | undefined; text?: string | undefined; time?: string | undefined; language?: string | undefined; profilePhotoUrl?: string | undefined; reviewCount?: number | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; deletedAt?: string | undefined; }; /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$outboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$Outbound, z.ZodTypeDef, GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews > = z.object({ id: z.string().optional(), author: z.string().optional(), rating: z.number().optional(), text: z.string().optional(), time: z.date().transform(v => v.toISOString()).optional(), language: z.string().optional(), profilePhotoUrl: z.string().optional(), reviewCount: z.number().int().optional(), createdAt: z.date().transform(v => v.toISOString()).optional(), updatedAt: z.date().transform(v => v.toISOString()).optional(), deletedAt: z.date().transform(v => v.toISOString()).optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$outboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$Outbound` instead. */ export type Outbound = GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$Outbound; } export function getApiLeadScraperMicroserviceApiV1JobsJobIdReviewsToJSON( getApiLeadScraperMicroserviceApiV1JobsJobIdReviews: GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews, ): string { return JSON.stringify( GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$outboundSchema.parse( getApiLeadScraperMicroserviceApiV1JobsJobIdReviews, ), ); } export function getApiLeadScraperMicroserviceApiV1JobsJobIdReviewsFromJSON( jsonString: string, ): SafeParseResult< GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews, SDKValidationError > { return safeParse( jsonString, (x) => GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews' from JSON`, ); } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$inboundSchema: z.ZodNativeEnum< typeof GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange > = z.nativeEnum(GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange); /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$outboundSchema: z.ZodNativeEnum< typeof GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange > = GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$outboundSchema; } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$inboundSchema: z.ZodNativeEnum< typeof GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits > = z.nativeEnum(GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits); /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$outboundSchema: z.ZodNativeEnum< typeof GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits > = GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$outboundSchema; } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$inboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads, z.ZodTypeDef, unknown > = z.object({ id: z.string().optional(), name: z.string().optional(), website: z.string().optional(), phone: z.string().optional(), address: z.string().optional(), city: z.string().optional(), state: z.string().optional(), country: z.string().optional(), latitude: z.number().optional(), longitude: z.number().optional(), googleRating: z.number().optional(), reviewCount: z.number().int().optional(), industry: z.string().optional(), employeeCount: z.number().int().optional(), estimatedRevenue: z.string().optional(), createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), deletedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), placeId: z.string().optional(), googleMapsUrl: z.string().optional(), businessStatus: z.string().optional(), regularHours: z.array( z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$inboundSchema ), ).optional(), specialHours: z.array( z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$inboundSchema ), ).optional(), photoReferences: z.array(z.string()).optional(), mainPhotoUrl: z.string().optional(), reviews: z.array( z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$inboundSchema ), ).optional(), types: z.array(z.string()).optional(), amenities: z.array(z.string()).optional(), servesVegetarianFood: z.boolean().optional(), outdoorSeating: z.boolean().optional(), paymentMethods: z.array(z.string()).optional(), wheelchairAccessible: z.boolean().optional(), parkingAvailable: z.boolean().optional(), socialMedia: z.record(z.string()).optional(), ratingCategory: z.string().optional(), rating: z.number().optional(), count: z.number().int().optional(), lastUpdated: z.string().datetime({ offset: true }).transform(v => new Date(v) ).optional(), dataSourceVersion: z.string().optional(), scrapingSessionId: z.string().optional(), alternatePhones: z.array(z.string()).optional(), contactPersonName: z.string().optional(), contactPersonTitle: z.string().optional(), contactEmail: z.string().optional(), foundedYear: z.number().int().optional(), businessType: z.string().optional(), certifications: z.array(z.string()).optional(), licenseNumber: z.string().optional(), revenueRange: GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$inboundSchema .default("REVENUE_RANGE_UNSPECIFIED"), fundingStage: z.string().optional(), isPublicCompany: z.boolean().optional(), websiteLoadSpeed: z.number().optional(), hasSslCertificate: z.boolean().optional(), cmsUsed: z.string().optional(), ecommercePlatforms: z.array(z.string()).optional(), timezone: z.string().optional(), neighborhood: z.string().optional(), nearbyLandmarks: z.array(z.string()).optional(), transportationAccess: z.string().optional(), employeeBenefits: z.array( GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$inboundSchema, ).optional(), parentCompany: z.string().optional(), subsidiaries: z.array(z.string()).optional(), isFranchise: z.boolean().optional(), seoKeywords: z.array(z.string()).optional(), usesGoogleAds: z.boolean().optional(), googleMyBusinessCategory: z.string().optional(), naicsCode: z.string().optional(), sicCode: z.string().optional(), unspscCode: z.string().optional(), isGreenCertified: z.boolean().optional(), energySources: z.array(z.string()).optional(), sustainabilityRating: z.string().optional(), recentAnnouncements: z.array(z.string()).optional(), lastProductLaunch: z.string().datetime({ offset: true }).transform(v => new Date(v) ).optional(), hasLitigationHistory: z.boolean().optional(), exportControlStatus: z.string().optional(), }); /** @internal */ export type GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$Outbound = { id?: string | undefined; name?: string | undefined; website?: string | undefined; phone?: string | undefined; address?: string | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; latitude?: number | undefined; longitude?: number | undefined; googleRating?: number | undefined; reviewCount?: number | undefined; industry?: string | undefined; employeeCount?: number | undefined; estimatedRevenue?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; deletedAt?: string | undefined; placeId?: string | undefined; googleMapsUrl?: string | undefined; businessStatus?: string | undefined; regularHours?: | Array | undefined; specialHours?: | Array | undefined; photoReferences?: Array | undefined; mainPhotoUrl?: string | undefined; reviews?: | Array | undefined; types?: Array | undefined; amenities?: Array | undefined; servesVegetarianFood?: boolean | undefined; outdoorSeating?: boolean | undefined; paymentMethods?: Array | undefined; wheelchairAccessible?: boolean | undefined; parkingAvailable?: boolean | undefined; socialMedia?: { [k: string]: string } | undefined; ratingCategory?: string | undefined; rating?: number | undefined; count?: number | undefined; lastUpdated?: string | undefined; dataSourceVersion?: string | undefined; scrapingSessionId?: string | undefined; alternatePhones?: Array | undefined; contactPersonName?: string | undefined; contactPersonTitle?: string | undefined; contactEmail?: string | undefined; foundedYear?: number | undefined; businessType?: string | undefined; certifications?: Array | undefined; licenseNumber?: string | undefined; revenueRange: string; fundingStage?: string | undefined; isPublicCompany?: boolean | undefined; websiteLoadSpeed?: number | undefined; hasSslCertificate?: boolean | undefined; cmsUsed?: string | undefined; ecommercePlatforms?: Array | undefined; timezone?: string | undefined; neighborhood?: string | undefined; nearbyLandmarks?: Array | undefined; transportationAccess?: string | undefined; employeeBenefits?: Array | undefined; parentCompany?: string | undefined; subsidiaries?: Array | undefined; isFranchise?: boolean | undefined; seoKeywords?: Array | undefined; usesGoogleAds?: boolean | undefined; googleMyBusinessCategory?: string | undefined; naicsCode?: string | undefined; sicCode?: string | undefined; unspscCode?: string | undefined; isGreenCertified?: boolean | undefined; energySources?: Array | undefined; sustainabilityRating?: string | undefined; recentAnnouncements?: Array | undefined; lastProductLaunch?: string | undefined; hasLitigationHistory?: boolean | undefined; exportControlStatus?: string | undefined; }; /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$outboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$Outbound, z.ZodTypeDef, GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads > = z.object({ id: z.string().optional(), name: z.string().optional(), website: z.string().optional(), phone: z.string().optional(), address: z.string().optional(), city: z.string().optional(), state: z.string().optional(), country: z.string().optional(), latitude: z.number().optional(), longitude: z.number().optional(), googleRating: z.number().optional(), reviewCount: z.number().int().optional(), industry: z.string().optional(), employeeCount: z.number().int().optional(), estimatedRevenue: z.string().optional(), createdAt: z.date().transform(v => v.toISOString()).optional(), updatedAt: z.date().transform(v => v.toISOString()).optional(), deletedAt: z.date().transform(v => v.toISOString()).optional(), placeId: z.string().optional(), googleMapsUrl: z.string().optional(), businessStatus: z.string().optional(), regularHours: z.array( z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdRegularHours$outboundSchema ), ).optional(), specialHours: z.array( z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdSpecialHours$outboundSchema ), ).optional(), photoReferences: z.array(z.string()).optional(), mainPhotoUrl: z.string().optional(), reviews: z.array( z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdReviews$outboundSchema ), ).optional(), types: z.array(z.string()).optional(), amenities: z.array(z.string()).optional(), servesVegetarianFood: z.boolean().optional(), outdoorSeating: z.boolean().optional(), paymentMethods: z.array(z.string()).optional(), wheelchairAccessible: z.boolean().optional(), parkingAvailable: z.boolean().optional(), socialMedia: z.record(z.string()).optional(), ratingCategory: z.string().optional(), rating: z.number().optional(), count: z.number().int().optional(), lastUpdated: z.date().transform(v => v.toISOString()).optional(), dataSourceVersion: z.string().optional(), scrapingSessionId: z.string().optional(), alternatePhones: z.array(z.string()).optional(), contactPersonName: z.string().optional(), contactPersonTitle: z.string().optional(), contactEmail: z.string().optional(), foundedYear: z.number().int().optional(), businessType: z.string().optional(), certifications: z.array(z.string()).optional(), licenseNumber: z.string().optional(), revenueRange: GetApiLeadScraperMicroserviceApiV1JobsJobIdRevenueRange$outboundSchema .default("REVENUE_RANGE_UNSPECIFIED"), fundingStage: z.string().optional(), isPublicCompany: z.boolean().optional(), websiteLoadSpeed: z.number().optional(), hasSslCertificate: z.boolean().optional(), cmsUsed: z.string().optional(), ecommercePlatforms: z.array(z.string()).optional(), timezone: z.string().optional(), neighborhood: z.string().optional(), nearbyLandmarks: z.array(z.string()).optional(), transportationAccess: z.string().optional(), employeeBenefits: z.array( GetApiLeadScraperMicroserviceApiV1JobsJobIdEmployeeBenefits$outboundSchema, ).optional(), parentCompany: z.string().optional(), subsidiaries: z.array(z.string()).optional(), isFranchise: z.boolean().optional(), seoKeywords: z.array(z.string()).optional(), usesGoogleAds: z.boolean().optional(), googleMyBusinessCategory: z.string().optional(), naicsCode: z.string().optional(), sicCode: z.string().optional(), unspscCode: z.string().optional(), isGreenCertified: z.boolean().optional(), energySources: z.array(z.string()).optional(), sustainabilityRating: z.string().optional(), recentAnnouncements: z.array(z.string()).optional(), lastProductLaunch: z.date().transform(v => v.toISOString()).optional(), hasLitigationHistory: z.boolean().optional(), exportControlStatus: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$outboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$Outbound` instead. */ export type Outbound = GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$Outbound; } export function getApiLeadScraperMicroserviceApiV1JobsJobIdLeadsToJSON( getApiLeadScraperMicroserviceApiV1JobsJobIdLeads: GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads, ): string { return JSON.stringify( GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$outboundSchema.parse( getApiLeadScraperMicroserviceApiV1JobsJobIdLeads, ), ); } export function getApiLeadScraperMicroserviceApiV1JobsJobIdLeadsFromJSON( jsonString: string, ): SafeParseResult< GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads, SDKValidationError > { return safeParse( jsonString, (x) => GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads' from JSON`, ); } /** @internal */ export const Job$inboundSchema: z.ZodType = z .object({ id: z.string().optional(), priority: z.number().int().optional(), payloadType: z.string().optional(), payload: z.string().optional(), createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), status: GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$inboundSchema .default("BACKGROUND_JOB_STATUS_UNSPECIFIED"), name: z.string().optional(), keywords: z.array(z.string()).optional(), lang: GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$inboundSchema.default( "LANGUAGE_UNSPECIFIED", ), zoom: z.number().int().optional(), lat: z.string().optional(), lon: z.string().optional(), fastMode: z.boolean().optional(), radius: z.number().int().optional(), depth: z.number().int().optional(), email: z.boolean().optional(), maxTime: z.number().int().optional(), proxies: z.array(z.string()).optional(), updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), deletedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), leads: z.array( z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$inboundSchema ), ).optional(), url: z.string().optional(), }); /** @internal */ export type Job$Outbound = { id?: string | undefined; priority?: number | undefined; payloadType?: string | undefined; payload?: string | undefined; createdAt?: string | undefined; status: string; name?: string | undefined; keywords?: Array | undefined; lang: string; zoom?: number | undefined; lat?: string | undefined; lon?: string | undefined; fastMode?: boolean | undefined; radius?: number | undefined; depth?: number | undefined; email?: boolean | undefined; maxTime?: number | undefined; proxies?: Array | undefined; updatedAt?: string | undefined; deletedAt?: string | undefined; leads?: | Array | undefined; url?: string | undefined; }; /** @internal */ export const Job$outboundSchema: z.ZodType = z .object({ id: z.string().optional(), priority: z.number().int().optional(), payloadType: z.string().optional(), payload: z.string().optional(), createdAt: z.date().transform(v => v.toISOString()).optional(), status: GetApiLeadScraperMicroserviceApiV1JobsJobIdStatus$outboundSchema .default("BACKGROUND_JOB_STATUS_UNSPECIFIED"), name: z.string().optional(), keywords: z.array(z.string()).optional(), lang: GetApiLeadScraperMicroserviceApiV1JobsJobIdLang$outboundSchema .default("LANGUAGE_UNSPECIFIED"), zoom: z.number().int().optional(), lat: z.string().optional(), lon: z.string().optional(), fastMode: z.boolean().optional(), radius: z.number().int().optional(), depth: z.number().int().optional(), email: z.boolean().optional(), maxTime: z.number().int().optional(), proxies: z.array(z.string()).optional(), updatedAt: z.date().transform(v => v.toISOString()).optional(), deletedAt: z.date().transform(v => v.toISOString()).optional(), leads: z.array( z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdLeads$outboundSchema ), ).optional(), url: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace Job$ { /** @deprecated use `Job$inboundSchema` instead. */ export const inboundSchema = Job$inboundSchema; /** @deprecated use `Job$outboundSchema` instead. */ export const outboundSchema = Job$outboundSchema; /** @deprecated use `Job$Outbound` instead. */ export type Outbound = Job$Outbound; } export function jobToJSON(job: Job): string { return JSON.stringify(Job$outboundSchema.parse(job)); } export function jobFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Job$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Job' from JSON`, ); } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdData$inboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdData, z.ZodTypeDef, unknown > = z.object({ job: z.lazy(() => Job$inboundSchema).optional(), }); /** @internal */ export type GetApiLeadScraperMicroserviceApiV1JobsJobIdData$Outbound = { job?: Job$Outbound | undefined; }; /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdData$outboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdData$Outbound, z.ZodTypeDef, GetApiLeadScraperMicroserviceApiV1JobsJobIdData > = z.object({ job: z.lazy(() => Job$outboundSchema).optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdData$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdData$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdData$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdData$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdData$outboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdData$Outbound` instead. */ export type Outbound = GetApiLeadScraperMicroserviceApiV1JobsJobIdData$Outbound; } export function getApiLeadScraperMicroserviceApiV1JobsJobIdDataToJSON( getApiLeadScraperMicroserviceApiV1JobsJobIdData: GetApiLeadScraperMicroserviceApiV1JobsJobIdData, ): string { return JSON.stringify( GetApiLeadScraperMicroserviceApiV1JobsJobIdData$outboundSchema.parse( getApiLeadScraperMicroserviceApiV1JobsJobIdData, ), ); } export function getApiLeadScraperMicroserviceApiV1JobsJobIdDataFromJSON( jsonString: string, ): SafeParseResult< GetApiLeadScraperMicroserviceApiV1JobsJobIdData, SDKValidationError > { return safeParse( jsonString, (x) => GetApiLeadScraperMicroserviceApiV1JobsJobIdData$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'GetApiLeadScraperMicroserviceApiV1JobsJobIdData' from JSON`, ); } /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$inboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody, z.ZodTypeDef, unknown > = z.object({ data: z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdData$inboundSchema ), }); /** @internal */ export type GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$Outbound = { data: GetApiLeadScraperMicroserviceApiV1JobsJobIdData$Outbound; }; /** @internal */ export const GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$outboundSchema: z.ZodType< GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$Outbound, z.ZodTypeDef, GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody > = z.object({ data: z.lazy(() => GetApiLeadScraperMicroserviceApiV1JobsJobIdData$outboundSchema ), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$ { /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$inboundSchema` instead. */ export const inboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$inboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$outboundSchema` instead. */ export const outboundSchema = GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$outboundSchema; /** @deprecated use `GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$Outbound` instead. */ export type Outbound = GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$Outbound; } export function getApiLeadScraperMicroserviceApiV1JobsJobIdResponseBodyToJSON( getApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody: GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody, ): string { return JSON.stringify( GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$outboundSchema .parse(getApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody), ); } export function getApiLeadScraperMicroserviceApiV1JobsJobIdResponseBodyFromJSON( jsonString: string, ): SafeParseResult< GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody, SDKValidationError > { return safeParse( jsonString, (x) => GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'GetApiLeadScraperMicroserviceApiV1JobsJobIdResponseBody' from JSON`, ); }