@ndla/types-backend 1.0.112 → 1.0.113
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 +8 -0
- package/package.json +1 -1
package/build/search-api.d.ts
CHANGED
|
@@ -197,6 +197,11 @@ export type components = {
|
|
|
197
197
|
/** @description ISO 639-1 code that represents the language used in title */
|
|
198
198
|
language: string;
|
|
199
199
|
};
|
|
200
|
+
/**
|
|
201
|
+
* DraftSearchField
|
|
202
|
+
* @enum {string}
|
|
203
|
+
*/
|
|
204
|
+
DraftSearchField: "title" | "introduction" | "metaDescription" | "disclaimer" | "content" | "tags" | "embedAttributes" | "creators" | "processors" | "rightsholders" | "revisionMeta" | "notes" | "previousNotes";
|
|
200
205
|
/** DraftSearchParamsDTO */
|
|
201
206
|
DraftSearchParamsDTO: {
|
|
202
207
|
/**
|
|
@@ -223,6 +228,8 @@ export type components = {
|
|
|
223
228
|
license?: string;
|
|
224
229
|
/** @description Return only results with content matching the specified query. */
|
|
225
230
|
query?: string;
|
|
231
|
+
/** @description Restrict query searches to the specified fields. If omitted or empty, all the fields are used. */
|
|
232
|
+
queryFields?: components["schemas"]["DraftSearchField"][];
|
|
226
233
|
/** @description Return only results with notes matching the specified note-query. */
|
|
227
234
|
noteQuery?: string;
|
|
228
235
|
sort?: components["schemas"]["Sort"];
|
|
@@ -1080,6 +1087,7 @@ export type ApiTaxonomyContextDTO = components['schemas']['ApiTaxonomyContextDTO
|
|
|
1080
1087
|
export type ArticleTrait = components['schemas']['ArticleTrait'];
|
|
1081
1088
|
export type CommentDTO = components['schemas']['CommentDTO'];
|
|
1082
1089
|
export type DescriptionDTO = components['schemas']['DescriptionDTO'];
|
|
1090
|
+
export type DraftSearchField = components['schemas']['DraftSearchField'];
|
|
1083
1091
|
export type DraftSearchParamsDTO = components['schemas']['DraftSearchParamsDTO'];
|
|
1084
1092
|
export type ErrorBody = components['schemas']['ErrorBody'];
|
|
1085
1093
|
export type GrepFagkodeDTO = components['schemas']['GrepFagkodeDTO'];
|