@ndla/types-backend 1.0.136 → 1.0.137

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.
@@ -708,6 +708,11 @@ export type components = {
708
708
  /** @description Whether the image is inactive or not */
709
709
  inactive: boolean;
710
710
  };
711
+ /**
712
+ * ImageSearchField
713
+ * @enum {string}
714
+ */
715
+ ImageSearchField: "alttexts" | "captions" | "creators" | "editorNotes" | "processors" | "rightsholders" | "tags" | "titles";
711
716
  /**
712
717
  * ImageTagDTO
713
718
  * @description Searchable tags for the image
@@ -799,8 +804,10 @@ export type components = {
799
804
  * @description The search parameters
800
805
  */
801
806
  SearchParamsDTO: {
802
- /** @description Return only images with titles, alt-texts or tags matching the specified query. */
807
+ /** @description Return only images matching the specified query. */
803
808
  query?: string;
809
+ /** @description Restrict query searches to the specified fields. If omitted or empty, all the fields are used. */
810
+ queryFields?: components["schemas"]["ImageSearchField"][];
804
811
  /** @description Return only images with provided license. Specifying 'all' gives all images regardless of license. */
805
812
  license?: string;
806
813
  /** @description The ISO 639-1 language code describing language used in query-params */
@@ -1028,6 +1035,7 @@ export type ImageFileDTO = components['schemas']['ImageFileDTO'];
1028
1035
  export type ImageMetaInformationV2DTO = components['schemas']['ImageMetaInformationV2DTO'];
1029
1036
  export type ImageMetaInformationV3DTO = components['schemas']['ImageMetaInformationV3DTO'];
1030
1037
  export type ImageMetaSummaryDTO = components['schemas']['ImageMetaSummaryDTO'];
1038
+ export type ImageSearchField = components['schemas']['ImageSearchField'];
1031
1039
  export type ImageTagDTO = components['schemas']['ImageTagDTO'];
1032
1040
  export type ImageTitleDTO = components['schemas']['ImageTitleDTO'];
1033
1041
  export type ImageVariantDTO = components['schemas']['ImageVariantDTO'];
@@ -1052,6 +1060,8 @@ export interface operations {
1052
1060
  query?: {
1053
1061
  /** @description Return only images with titles, alt-texts or tags matching the specified query. */
1054
1062
  query?: string;
1063
+ /** @description Restrict query searches to the specified fields. If omitted or empty, all the fields are used. */
1064
+ "query-fields"?: components["schemas"]["ImageSearchField"][];
1055
1065
  /** @description Return only images with full size larger than submitted value in bytes. */
1056
1066
  "minimum-size"?: number;
1057
1067
  /** @description The ISO 639-1 language code describing language. */
@@ -1625,6 +1635,8 @@ export interface operations {
1625
1635
  query?: {
1626
1636
  /** @description Return only images with titles, alt-texts or tags matching the specified query. */
1627
1637
  query?: string;
1638
+ /** @description Restrict query searches to the specified fields. If omitted or empty, all the fields are used. */
1639
+ "query-fields"?: components["schemas"]["ImageSearchField"][];
1628
1640
  /** @description Return only images with full size larger than submitted value in bytes. */
1629
1641
  "minimum-size"?: number;
1630
1642
  /** @description The ISO 639-1 language code describing language. */
package/package.json CHANGED
@@ -33,6 +33,6 @@
33
33
  "tsx": "^4.21.0",
34
34
  "typescript": "^5.9.3"
35
35
  },
36
- "version": "1.0.136",
36
+ "version": "1.0.137",
37
37
  "packageManager": "yarn@4.10.3"
38
38
  }