From fb8ad6de7c25d7307077c6a175957973923c3afb Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Tue, 12 May 2026 00:13:19 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=82=D0=B8=D0=BF=D1=8B=20=D0=BC=D0=B5=D1=80=D0=BE?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D1=8F=D1=82=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DTOs/Sync/SyncDtos.cs | 2 +- frontend/src/api/types.ts | 12 ++++- .../src/views/admin/AdminLecturesView.vue | 48 +++++++++++++++++-- 3 files changed, 55 insertions(+), 7 deletions(-) diff --git a/backend/UniVerse.Application/DTOs/Sync/SyncDtos.cs b/backend/UniVerse.Application/DTOs/Sync/SyncDtos.cs index c55263e..d1a738e 100644 --- a/backend/UniVerse.Application/DTOs/Sync/SyncDtos.cs +++ b/backend/UniVerse.Application/DTOs/Sync/SyncDtos.cs @@ -4,7 +4,7 @@ public record SyncScheduleRequest( string? SpecialtyCode, DateTime? TimeMin, DateTime? TimeMax, - string? TypeId + IReadOnlyList? TypeId ); public record SyncResultDto(int Created, int Updated, int Skipped, string? Error); diff --git a/frontend/src/api/types.ts b/frontend/src/api/types.ts index e2c3bae..16056c6 100644 --- a/frontend/src/api/types.ts +++ b/frontend/src/api/types.ts @@ -144,11 +144,21 @@ export interface SyncStatusDto { lastResult?: SyncResultDto | null } +export type ApiScheduleTypeId = + | 'MID_CHECK' + | 'CONS' + | 'LAB' + | 'LECT' + | 'SEMI' + | 'EVENT_OTHER' + | 'SELF' + | 'CUR_CHECK' + export interface SyncScheduleRequest { specialtyCode?: string | null timeMin?: string | null timeMax?: string | null - typeId?: string | null + typeId?: ApiScheduleTypeId[] | null } export interface SyncResultDto { diff --git a/frontend/src/views/admin/AdminLecturesView.vue b/frontend/src/views/admin/AdminLecturesView.vue index 40a87b4..e584675 100644 --- a/frontend/src/views/admin/AdminLecturesView.vue +++ b/frontend/src/views/admin/AdminLecturesView.vue @@ -1,7 +1,15 @@