init: lab project bootstrapped from isletmem-kovakcrm

- CRM domain modules removed (customers, services, software, calendar, tasks, invoices, leads, finance, etc.)
- DLS branding: package name=lab, logo wordmark, sidebar nav, header CTA
- Tenant layer extended with kind dimension (lab|clinic) + requireTenantKind helper
- Schema rewritten for DLS domain: jobs, job_files, job_status_history, prosthetics, connections, finance_entries, notifications
- Onboarding form: clinic/lab account-type selection + auto-generated memberNumber
- Placeholder routes for jobs/{inbound,outbound,new}, products, finance, connections
- PDF spec + spec.md under belgeler/
- db: lab database + 13 collections + indexes + storage bucket (job-files) provisioned via Appwrite MCP

Ref: belgeler/dls-ui-tasarim.pdf
This commit is contained in:
kovakmedya
2026-05-21 18:28:38 +03:00
commit cb150f7a24
215 changed files with 54262 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
import { z } from "zod";
export const workspaceSettingsSchema = z.object({
companyName: z.string().trim().min(1, "Şirket adı zorunlu.").max(255),
companyTaxId: z
.string()
.trim()
.max(50)
.optional()
.transform((v) => (v ? v : undefined)),
companyAddress: z
.string()
.trim()
.max(500)
.optional()
.transform((v) => (v ? v : undefined)),
companyEmail: z
.union([z.string().email("Geçerli bir email girin."), z.literal("")])
.optional()
.transform((v) => (v ? v : undefined)),
companyPhone: z
.string()
.trim()
.max(30)
.optional()
.transform((v) => (v ? v : undefined)),
defaultCurrency: z
.string()
.trim()
.max(8)
.optional()
.transform((v) => (v ? v.toUpperCase() : "TRY")),
});
export type WorkspaceSettingsInput = z.infer<typeof workspaceSettingsSchema>;