Skip to content

Commit

Permalink
AUTOMATION: Generated new typescript files
Browse files Browse the repository at this point in the history
  • Loading branch information
ndla-at-knowit committed Jan 14, 2025
1 parent 1d86d26 commit 28077b3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions typescript/types-backend/search-api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// DO NOT EDIT: generated file by scala-tsi

export type GrepResultDTO = (IGrepKjerneelementDTO | IGrepKompetansemaalSettDTO | IGrepTverrfagligTemaDTO | IGrepKompetansemaalDTO | IGrepLaererplanDTO)
export type GrepResultDTO = (IGrepTverrfagligTemaDTO | IGrepKjerneelementDTO | IGrepKompetansemaalDTO | IGrepLaererplanDTO | IGrepKompetansemaalSettDTO)

export type GrepSort = ("-relevance" | "relevance" | "-title" | "title" | "-code" | "code")

Expand Down Expand Up @@ -121,17 +121,18 @@ export interface IGrepKjerneelementDTO {
code: string
title: ITitleDTO
description: IDescriptionDTO
laereplan: IGrepLaererplanDTO
laereplan: IGrepReferencedLaereplanDTO
typename: "GrepKjerneelementDTO"
}

export interface IGrepKompetansemaalDTO {
code: string
title: ITitleDTO
laereplan: IGrepLaererplanDTO
laereplan: IGrepReferencedLaereplanDTO
kompetansemaalSett: IGrepReferencedKompetansemaalSettDTO
tverrfagligeTemaer: IGrepTverrfagligTemaDTO[]
kjerneelementer: IGrepReferencedKjerneelementDTO[]
reuseOf?: IGrepReferencedKompetansemaalDTO
typename: "GrepKompetansemaalDTO"
}

Expand All @@ -145,6 +146,7 @@ export interface IGrepKompetansemaalSettDTO {
export interface IGrepLaererplanDTO {
code: string
title: ITitleDTO
replacedBy: IGrepReferencedLaereplanDTO[]
typename: "GrepLaererplanDTO"
}

Expand All @@ -163,6 +165,11 @@ export interface IGrepReferencedKompetansemaalSettDTO {
title: string
}

export interface IGrepReferencedLaereplanDTO {
code: string
title: string
}

export interface IGrepSearchInputDTO {
prefixFilter?: string[]
codes?: string[]
Expand Down

0 comments on commit 28077b3

Please sign in to comment.