From 2f3e251b7f50b3e741c42a623c695fb6879cf7cd Mon Sep 17 00:00:00 2001 From: Maxime Golfier <25312957+maxgfr@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:59:35 +0200 Subject: [PATCH] =?UTF-8?q?fix(types):=20modification=20de=20types=20pour?= =?UTF-8?q?=20l'int=C3=A9gration=20de=20la=20page=20home=20(#1491)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: modif * fix: modif --- shared/types/src/elastic/highlights.ts | 7 +++++++ shared/types/src/elastic/index.ts | 1 + shared/types/src/elastic/tools.ts | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 shared/types/src/elastic/highlights.ts diff --git a/shared/types/src/elastic/highlights.ts b/shared/types/src/elastic/highlights.ts new file mode 100644 index 000000000..80c3344c5 --- /dev/null +++ b/shared/types/src/elastic/highlights.ts @@ -0,0 +1,7 @@ +import { Highlight } from "../hasura"; +import { DocumentElasticWithSource } from "./common"; + +export type HighlightDocument = DocumentElasticWithSource< + Highlight, + "highlights" +>; diff --git a/shared/types/src/elastic/index.ts b/shared/types/src/elastic/index.ts index 41ca7aa0c..158774eb2 100644 --- a/shared/types/src/elastic/index.ts +++ b/shared/types/src/elastic/index.ts @@ -6,3 +6,4 @@ export * from "./tools"; export * from "./editorial-content"; export * from "./fiche-travail"; export * from "./code-du-travail"; +export * from "./highlights"; diff --git a/shared/types/src/elastic/tools.ts b/shared/types/src/elastic/tools.ts index b835aa537..7285eb722 100644 --- a/shared/types/src/elastic/tools.ts +++ b/shared/types/src/elastic/tools.ts @@ -14,7 +14,7 @@ export type Tool = { isPublished: boolean; metaDescription: string; slug: string; - source: string; + source: "outils"; text: string; title: string; _id: string;