This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const createProviderMappingSchema = z.object({
|
||||
providerId: z.string().trim().min(1).max(100),
|
||||
mappingType: z.enum(['PRODUCT', 'SEARCH']),
|
||||
externalIdentifier: z.string().trim().max(255).optional(),
|
||||
searchQuery: z.string().trim().max(1000).optional(),
|
||||
sourceUrl: z.string().trim().url().optional(),
|
||||
metadata: z.record(z.string(), z.unknown()).optional(),
|
||||
}).strict();
|
||||
Reference in New Issue
Block a user