The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { z } from 'zod';
const queryIdentifierSchema = z.string().regex(/^[a-zA-Z][a-zA-Z0-9]*$/);
export const frontComponentQuerySchema = z.object({
objectName: queryIdentifierSchema.describe(
'Singular workspace object name, for example "company". The component uses the plural name, for example "companies", in its CoreApiClient query.',
),
select: z.array(queryIdentifierSchema).min(1).max(20),
limit: z.number().int().min(1).max(100),
});