From 4919c03660b342f95c0ab1c2eeaa7e7e69a78e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 5 Dec 2025 15:09:15 +0000 Subject: [PATCH] Eslint fixes --- .../Resources/public/types/generic_doc.ts | 15 +++++---------- .../Resources/public/types/index.ts | 6 ++---- .../Resources/public/lib/api/apiMethods.ts | 9 +++------ 3 files changed, 10 insertions(+), 20 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/types/generic_doc.ts b/src/Bundle/ChillDocStoreBundle/Resources/public/types/generic_doc.ts index 04c324b4a..34cf2501d 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/types/generic_doc.ts +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/types/generic_doc.ts @@ -52,36 +52,31 @@ interface BaseMetadataWithHtml extends BaseMetadata { html: string; } -export interface GenericDocForAccompanyingCourseDocument - extends GenericDocForAccompanyingPeriod { +export interface GenericDocForAccompanyingCourseDocument extends GenericDocForAccompanyingPeriod { key: "accompanying_course_document"; metadata: BaseMetadataWithHtml; storedObject: StoredObject; } -export interface GenericDocForAccompanyingCourseActivityDocument - extends GenericDocForAccompanyingPeriod { +export interface GenericDocForAccompanyingCourseActivityDocument extends GenericDocForAccompanyingPeriod { key: "accompanying_course_activity_document"; metadata: BaseMetadataWithHtml; storedObject: StoredObject; } -export interface GenericDocForAccompanyingCourseCalendarDocument - extends GenericDocForAccompanyingPeriod { +export interface GenericDocForAccompanyingCourseCalendarDocument extends GenericDocForAccompanyingPeriod { key: "accompanying_course_calendar_document"; metadata: BaseMetadataWithHtml; storedObject: StoredObject; } -export interface GenericDocForAccompanyingCoursePersonDocument - extends GenericDocForAccompanyingPeriod { +export interface GenericDocForAccompanyingCoursePersonDocument extends GenericDocForAccompanyingPeriod { key: "person_document"; metadata: BaseMetadataWithHtml; storedObject: StoredObject; } -export interface GenericDocForAccompanyingCourseWorkEvaluationDocument - extends GenericDocForAccompanyingPeriod { +export interface GenericDocForAccompanyingCourseWorkEvaluationDocument extends GenericDocForAccompanyingPeriod { key: "accompanying_period_work_evaluation_document"; metadata: BaseMetadataWithHtml; storedObject: StoredObject; diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/types/index.ts b/src/Bundle/ChillDocStoreBundle/Resources/public/types/index.ts index 5b34b8f73..4213d971a 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/types/index.ts +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/types/index.ts @@ -46,8 +46,7 @@ export interface StoredObjectVersionCreated extends StoredObjectVersion { persisted: false; } -export interface StoredObjectVersionPersisted - extends StoredObjectVersionCreated { +export interface StoredObjectVersionPersisted extends StoredObjectVersionCreated { version: number; id: number; createdAt: DateTime | null; @@ -61,8 +60,7 @@ export interface StoredObjectStatusChange { type: string; } -export interface StoredObjectVersionWithPointInTime - extends StoredObjectVersionPersisted { +export interface StoredObjectVersionWithPointInTime extends StoredObjectVersionPersisted { "point-in-times": StoredObjectPointInTime[]; "from-restored": StoredObjectVersionPersisted | null; } diff --git a/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts b/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts index e8256b348..97220f9c8 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts +++ b/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts @@ -20,8 +20,7 @@ export interface TransportExceptionInterface { name: string; } -export interface ValidationExceptionInterface - extends TransportExceptionInterface { +export interface ValidationExceptionInterface extends TransportExceptionInterface { name: "ValidationException"; error: object; violations: string[]; @@ -41,8 +40,7 @@ export interface AccessExceptionInterface extends TransportExceptionInterface { violations: string[]; } -export interface NotFoundExceptionInterface - extends TransportExceptionInterface { +export interface NotFoundExceptionInterface extends TransportExceptionInterface { name: "NotFoundException"; } @@ -53,8 +51,7 @@ export interface ServerExceptionInterface extends TransportExceptionInterface { body: string; } -export interface ConflictHttpExceptionInterface - extends TransportExceptionInterface { +export interface ConflictHttpExceptionInterface extends TransportExceptionInterface { name: "ConflictHttpException"; violations: string[]; }