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 @@