turash/bugulma/frontend/schemas/symbiosis.ts
Damir Mukimov 6347f42e20
Consolidate repositories: Remove nested frontend .git and merge into main repository
- 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.
2025-11-25 06:02:57 +01:00

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(),
});