/** * Static map of Zod validator export names → HTTP type interface names, * for cases where the naming convention differs between the two. * * Most schemas follow the same name (AdminCreateProduct → AdminCreateProduct), * but query/filter schemas often differ (AdminGetProductsParams → AdminProductListParams). * * When adding new validator schemas, prefer adding a `@http-type-name` JSDoc * tag in the validator file instead of adding to this registry. This registry * is only meant to remain backward-compatible with existing schemas that predate this tool. * * Value can be `skip` to indicate that this export should be ignored by the generator * (e.g. if it's a single-item select params that shares a name with the list params, * or if it's an embedded schema used within another payload). * * @example * ```typescript * // packages/medusa/src/api/admin/products/validators.ts * /** @http-type-name AdminProductListParams *\/ * export const AdminGetProductsParams = createFindParams(...) * ``` */ export declare const VALIDATOR_TO_HTTP_TYPE_NAME: Record; /** * Domain-scoped name overrides: used when the same Zod export name appears * in multiple validator files with different schemas. This is only * meant to remain backward-compatible with existing schemas that predate this tool. * * Key format: routeDirName (as it appears in the API path, e.g. "exchanges") * Value: map of Zod export name → HTTP type name (or "skip" to skip entirely) */ export declare const DOMAIN_SCOPED_OVERRIDES: Record>; /** * Reverse lookup: HTTP type name → validator export name. * Used by the validate command to find the Zod schema for a given HTTP type. */ export declare const HTTP_TYPE_TO_VALIDATOR_NAME: Record; /** * Resolves HTTP type names for validator export names and vice versa. */ export declare class NameRegistry { /** * Resolves the HTTP type name for a given validator export name. * Falls back to the export name itself if no override is registered. * * @param exportName - The Zod validator export name. * @param domain - Optional route directory name (e.g. "exchanges", "claims"). * When provided, domain-scoped overrides take precedence over global mappings. * Returns "skip" if the export should be excluded from validation in this domain. */ static resolveHttpTypeName(exportName: string, domain?: string): string; /** * Resolves the validator export name for a given HTTP type name. * Falls back to the HTTP type name itself if no mapping is registered. */ static resolveValidatorName(httpTypeName: string): string; } //# sourceMappingURL=name-registry.d.ts.map