mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
- Remove nested git repository from bugulma/frontend/.git - Add all frontend files to main repository tracking - Convert from separate frontend/backend repos to unified monorepo - Preserve all frontend code and development history as tracked files - Eliminate nested repository complexity for simpler development workflow This creates a proper monorepo structure with frontend and backend coexisting in the same repository for easier development and deployment.
27 lines
925 B
TypeScript
27 lines
925 B
TypeScript
import { z } from 'zod';
|
|
import { organizationSchema } from '@/schemas/organization';
|
|
|
|
// Enriched schema used in the UI after processing the Gemini response to include the full organization object
|
|
export const symbiosisMatchSchema = z.object({
|
|
id: z.string(),
|
|
reason: z.string(),
|
|
org: organizationSchema,
|
|
});
|
|
|
|
// Schema for showing connections between two organizations on the map
|
|
export const symbioticPairSchema = z.object({
|
|
source: organizationSchema,
|
|
target: organizationSchema,
|
|
});
|
|
|
|
// Schema for a confirmed or potential symbiotic link
|
|
export const symbiosisLinkSchema = z.object({
|
|
id: z.string(),
|
|
providerOrgId: z.string(),
|
|
consumerOrgId: z.string(),
|
|
resource: z.string(),
|
|
description: z.string().max(500, { message: 'Описание слишком длинное (макс. 500 символов).' }),
|
|
status: z.enum(['potential', 'active', 'inactive']),
|
|
startDate: z.date().optional(),
|
|
});
|