@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.
@@ -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'];
package/package.json CHANGED
@@ -32,6 +32,6 @@
32
32
  "tsx": "^4.21.0",
33
33
  "typescript": "^5.9.3"
34
34
  },
35
- "version": "1.0.112",
35
+ "version": "1.0.113",
36
36
  "packageManager": "yarn@4.10.3"
37
37
  }