41 lines
1.9 KiB
TypeScript

import { z } from "zod";
import type { CreateMappingRequest, UpdateMappingRequest, UserIdMapping } from "./contract";
export declare const createMappingRequestSchema: z.ZodType<CreateMappingRequest>;
export declare const updateMappingRequestSchema: z.ZodType<UpdateMappingRequest>;
export declare const userIdMappingSchema: z.ZodType<UserIdMapping>;
export declare const mappingSearchFiltersSchema: z.ZodObject<{
userId: z.ZodOptional<z.ZodString>;
whmcsClientId: z.ZodOptional<z.ZodNumber>;
sfAccountId: z.ZodOptional<z.ZodString>;
hasWhmcsMapping: z.ZodOptional<z.ZodBoolean>;
hasSfMapping: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
export declare const mappingStatsSchema: z.ZodObject<{
totalMappings: z.ZodNumber;
whmcsMappings: z.ZodNumber;
salesforceMappings: z.ZodNumber;
completeMappings: z.ZodNumber;
orphanedMappings: z.ZodNumber;
}, z.core.$strip>;
export declare const bulkMappingOperationSchema: z.ZodObject<{
operation: z.ZodEnum<{
create: "create";
update: "update";
delete: "delete";
}>;
mappings: z.ZodUnion<readonly [z.ZodArray<z.ZodType<CreateMappingRequest, unknown, z.core.$ZodTypeInternals<CreateMappingRequest, unknown>>>, z.ZodArray<z.ZodType<UpdateMappingRequest, unknown, z.core.$ZodTypeInternals<UpdateMappingRequest, unknown>>>, z.ZodArray<z.ZodString>]>;
}, z.core.$strip>;
export declare const bulkMappingResultSchema: z.ZodObject<{
successful: z.ZodNumber;
failed: z.ZodNumber;
errors: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
error: z.ZodString;
data: z.ZodUnknown;
}, z.core.$strip>>;
}, z.core.$strip>;
export type MappingSearchFilters = z.infer<typeof mappingSearchFiltersSchema>;
export type MappingStats = z.infer<typeof mappingStatsSchema>;
export type BulkMappingOperation = z.infer<typeof bulkMappingOperationSchema>;
export type BulkMappingResult = z.infer<typeof bulkMappingResultSchema>;