@ndla/types-backend 1.0.5 → 1.0.6
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.
- package/build/search-api.d.ts +47 -3
- package/build/search-api.js.map +1 -1
- package/package.json +1 -1
package/build/search-api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type GrepResultDTO = (IGrepKjerneelementDTO | IGrepKompetansemaalSettDTO | IGrepTverrfagligTemaDTO | IGrepKompetansemaalDTO | IGrepLaererplanDTO);
|
|
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,44 @@ export interface IDraftSearchParamsDTO {
|
|
|
98
103
|
publishedDateTo?: string;
|
|
99
104
|
resultTypes?: SearchType[];
|
|
100
105
|
}
|
|
101
|
-
export interface
|
|
106
|
+
export interface IGrepKjerneelementDTO {
|
|
107
|
+
code: string;
|
|
108
|
+
title: ITitleDTO;
|
|
109
|
+
description: IDescriptionDTO;
|
|
110
|
+
laereplan: IGrepLaererplanDTO;
|
|
111
|
+
typename: "GrepKjerneelementDTO";
|
|
112
|
+
}
|
|
113
|
+
export interface IGrepKompetansemaalDTO {
|
|
114
|
+
code: string;
|
|
115
|
+
title: ITitleDTO;
|
|
116
|
+
laereplan: IGrepLaererplanDTO;
|
|
117
|
+
kompetansemaalSett: IGrepReferencedKompetansemaalSettDTO;
|
|
118
|
+
tverrfagligeTemaer: IGrepTverrfagligTemaDTO[];
|
|
119
|
+
kjerneelementer: IGrepReferencedKjerneelementDTO[];
|
|
120
|
+
typename: "GrepKompetansemaalDTO";
|
|
121
|
+
}
|
|
122
|
+
export interface IGrepKompetansemaalSettDTO {
|
|
123
|
+
code: string;
|
|
124
|
+
title: ITitleDTO;
|
|
125
|
+
kompetansemaal: IGrepReferencedKompetansemaalDTO[];
|
|
126
|
+
typename: "GrepKompetansemaalSettDTO";
|
|
127
|
+
}
|
|
128
|
+
export interface IGrepLaererplanDTO {
|
|
102
129
|
code: string;
|
|
103
130
|
title: ITitleDTO;
|
|
104
|
-
|
|
131
|
+
typename: "GrepLaererplanDTO";
|
|
132
|
+
}
|
|
133
|
+
export interface IGrepReferencedKjerneelementDTO {
|
|
134
|
+
code: string;
|
|
135
|
+
title: string;
|
|
136
|
+
}
|
|
137
|
+
export interface IGrepReferencedKompetansemaalDTO {
|
|
138
|
+
code: string;
|
|
139
|
+
title: string;
|
|
140
|
+
}
|
|
141
|
+
export interface IGrepReferencedKompetansemaalSettDTO {
|
|
142
|
+
code: string;
|
|
143
|
+
title: string;
|
|
105
144
|
}
|
|
106
145
|
export interface IGrepSearchInputDTO {
|
|
107
146
|
prefixFilter?: string[];
|
|
@@ -117,7 +156,12 @@ export interface IGrepSearchResultsDTO {
|
|
|
117
156
|
page: number;
|
|
118
157
|
pageSize: number;
|
|
119
158
|
language: string;
|
|
120
|
-
results:
|
|
159
|
+
results: GrepResultDTO[];
|
|
160
|
+
}
|
|
161
|
+
export interface IGrepTverrfagligTemaDTO {
|
|
162
|
+
code: string;
|
|
163
|
+
title: ITitleDTO;
|
|
164
|
+
typename: "GrepTverrfagligTemaDTO";
|
|
121
165
|
}
|
|
122
166
|
export interface IGroupSearchResultDTO {
|
|
123
167
|
totalCount: number;
|
package/build/search-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;
|
|
1
|
+
{"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAsZ3C,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