From 2ef789a794ec0a199a9734325647770c793e40db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 5 Dec 2025 15:01:21 +0100 Subject: [PATCH] fix eslint --- .../Resources/public/types/generic_doc.ts | 15 ++++++++++----- .../Resources/public/types/index.ts | 6 ++++-- .../Resources/public/lib/api/apiMethods.ts | 9 ++++++--- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/types/generic_doc.ts b/src/Bundle/ChillDocStoreBundle/Resources/public/types/generic_doc.ts index 34cf2501d..04c324b4a 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/types/generic_doc.ts +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/types/generic_doc.ts @@ -52,31 +52,36 @@ 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 4213d971a..5b34b8f73 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/types/index.ts +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/types/index.ts @@ -46,7 +46,8 @@ export interface StoredObjectVersionCreated extends StoredObjectVersion { persisted: false; } -export interface StoredObjectVersionPersisted extends StoredObjectVersionCreated { +export interface StoredObjectVersionPersisted + extends StoredObjectVersionCreated { version: number; id: number; createdAt: DateTime | null; @@ -60,7 +61,8 @@ 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 97220f9c8..e8256b348 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts +++ b/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts @@ -20,7 +20,8 @@ export interface TransportExceptionInterface { name: string; } -export interface ValidationExceptionInterface extends TransportExceptionInterface { +export interface ValidationExceptionInterface + extends TransportExceptionInterface { name: "ValidationException"; error: object; violations: string[]; @@ -40,7 +41,8 @@ export interface AccessExceptionInterface extends TransportExceptionInterface { violations: string[]; } -export interface NotFoundExceptionInterface extends TransportExceptionInterface { +export interface NotFoundExceptionInterface + extends TransportExceptionInterface { name: "NotFoundException"; } @@ -51,7 +53,8 @@ export interface ServerExceptionInterface extends TransportExceptionInterface { body: string; } -export interface ConflictHttpExceptionInterface extends TransportExceptionInterface { +export interface ConflictHttpExceptionInterface + extends TransportExceptionInterface { name: "ConflictHttpException"; violations: string[]; }