@ndla/types-backend 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ export type GrepResultDTO = (IGrepTverrfagligTemaDTO | IGrepKjerneelementDTO | IGrepKompetansemaalDTO | IGrepLaererplanDTO | IGrepKompetansemaalSettDTO);
1
2
  export type GrepSort = ("-relevance" | "relevance" | "-title" | "title" | "-code" | "code");
2
3
  export interface IApiTaxonomyContextDTO {
3
4
  publicId: string;
@@ -57,6 +58,10 @@ export interface ICommentDTO {
57
58
  isOpen: boolean;
58
59
  solved: boolean;
59
60
  }
61
+ export interface IDescriptionDTO {
62
+ description: string;
63
+ language: string;
64
+ }
60
65
  export interface IDraftResponsibleDTO {
61
66
  responsibleId: string;
62
67
  lastUpdated: string;
@@ -98,10 +103,50 @@ export interface IDraftSearchParamsDTO {
98
103
  publishedDateTo?: string;
99
104
  resultTypes?: SearchType[];
100
105
  }
101
- export interface IGrepResultDTO {
106
+ export interface IGrepKjerneelementDTO {
107
+ code: string;
108
+ title: ITitleDTO;
109
+ description: IDescriptionDTO;
110
+ laereplan: IGrepReferencedLaereplanDTO;
111
+ typename: "GrepKjerneelementDTO";
112
+ }
113
+ export interface IGrepKompetansemaalDTO {
114
+ code: string;
115
+ title: ITitleDTO;
116
+ laereplan: IGrepReferencedLaereplanDTO;
117
+ kompetansemaalSett: IGrepReferencedKompetansemaalSettDTO;
118
+ tverrfagligeTemaer: IGrepTverrfagligTemaDTO[];
119
+ kjerneelementer: IGrepReferencedKjerneelementDTO[];
120
+ reuseOf?: IGrepReferencedKompetansemaalDTO;
121
+ typename: "GrepKompetansemaalDTO";
122
+ }
123
+ export interface IGrepKompetansemaalSettDTO {
102
124
  code: string;
103
125
  title: ITitleDTO;
104
- laereplanCode?: string;
126
+ kompetansemaal: IGrepReferencedKompetansemaalDTO[];
127
+ typename: "GrepKompetansemaalSettDTO";
128
+ }
129
+ export interface IGrepLaererplanDTO {
130
+ code: string;
131
+ title: ITitleDTO;
132
+ replacedBy: IGrepReferencedLaereplanDTO[];
133
+ typename: "GrepLaererplanDTO";
134
+ }
135
+ export interface IGrepReferencedKjerneelementDTO {
136
+ code: string;
137
+ title: string;
138
+ }
139
+ export interface IGrepReferencedKompetansemaalDTO {
140
+ code: string;
141
+ title: string;
142
+ }
143
+ export interface IGrepReferencedKompetansemaalSettDTO {
144
+ code: string;
145
+ title: string;
146
+ }
147
+ export interface IGrepReferencedLaereplanDTO {
148
+ code: string;
149
+ title: string;
105
150
  }
106
151
  export interface IGrepSearchInputDTO {
107
152
  prefixFilter?: string[];
@@ -117,7 +162,12 @@ export interface IGrepSearchResultsDTO {
117
162
  page: number;
118
163
  pageSize: number;
119
164
  language: string;
120
- results: IGrepResultDTO[];
165
+ results: GrepResultDTO[];
166
+ }
167
+ export interface IGrepTverrfagligTemaDTO {
168
+ code: string;
169
+ title: ITitleDTO;
170
+ typename: "GrepTverrfagligTemaDTO";
121
171
  }
122
172
  export interface IGroupSearchResultDTO {
123
173
  totalCount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAiW3C,IAAY,QA6BX;AA7BD,WAAY,QAAQ;IAClB,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,kCAAsB,CAAA;IACtB,gCAAoB,CAAA;IACpB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,4BAAgB,CAAA;IAChB,0BAAc,CAAA;IACd,wCAA4B,CAAA;IAC5B,sCAA0B,CAAA;IAC1B,8CAAkC,CAAA;IAClC,gDAAoC,CAAA;IACpC,kEAAsD,CAAA;IACtD,oEAAwD,CAAA;IACxD,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,sDAA0C,CAAA;IAC1C,oDAAwC,CAAA;IACxC,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,8CAAkC,CAAA;IAClC,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;AAC9B,CAAC,EA7BW,QAAQ,wBAAR,QAAQ,QA6BnB"}
1
+ {"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AA6Z3C,IAAY,QA6BX;AA7BD,WAAY,QAAQ;IAClB,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,kCAAsB,CAAA;IACtB,gCAAoB,CAAA;IACpB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,4BAAgB,CAAA;IAChB,0BAAc,CAAA;IACd,wCAA4B,CAAA;IAC5B,sCAA0B,CAAA;IAC1B,8CAAkC,CAAA;IAClC,gDAAoC,CAAA;IACpC,kEAAsD,CAAA;IACtD,oEAAwD,CAAA;IACxD,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,sDAA0C,CAAA;IAC1C,oDAAwC,CAAA;IACxC,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,8CAAkC,CAAA;IAClC,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;AAC9B,CAAC,EA7BW,QAAQ,wBAAR,QAAQ,QA6BnB"}
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "1.0.5"
30
+ "version": "1.0.7"
31
31
  }