feature: treatment frontend wired with the newly implemented backend. no mocked data no more.

This commit is contained in:
2026-05-19 23:43:43 +03:30
parent f743046b38
commit 633c939560
13 changed files with 1199 additions and 528 deletions

View File

@@ -61,6 +61,12 @@ export const TREATMENT_TYPES = [
export type TreatmentType = (typeof TREATMENT_TYPES)[number];
export interface TreatmentCaseSendInfo {
organizationId: string;
organizationName: string;
sentAt: string;
}
export interface PastTreatmentCase {
id: string;
clientId: string;
@@ -69,6 +75,7 @@ export interface PastTreatmentCase {
notes?: string | null;
attachmentMetas?: TreatmentAttachmentMeta[];
sendToOrganizationIds?: string[];
sends?: TreatmentCaseSendInfo[];
sentAt?: string | null;
}
@@ -97,6 +104,7 @@ export interface TreatmentCaseDraft {
comment: string;
attachmentMetas: TreatmentAttachmentMeta[];
sendToOrganizationIds: string[];
sends?: TreatmentCaseSendInfo[];
sentAt?: string | null;
}