@ndla/types-backend 1.0.104 → 1.0.106

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.
@@ -442,6 +442,11 @@ export type components = {
442
442
  /** @description ISO 639-1 code that represents the language used in the caption */
443
443
  language: string;
444
444
  };
445
+ /**
446
+ * ImageContentType
447
+ * @enum {string}
448
+ */
449
+ ImageContentType: "image/bmp" | "image/gif" | "image/jpeg" | "image/x-citrix-jpeg" | "image/pjpeg" | "image/png" | "image/x-png" | "image/svg+xml" | "image/webp";
445
450
  /**
446
451
  * ImageDimensionsDTO
447
452
  * @description Dimensions of the image
@@ -471,7 +476,7 @@ export type components = {
471
476
  */
472
477
  size: number;
473
478
  /** @description The mimetype of the image */
474
- contentType: string;
479
+ contentType: components["schemas"]["ImageContentType"];
475
480
  /** @description The full url to where the image can be downloaded */
476
481
  imageUrl: string;
477
482
  dimensions?: components["schemas"]["ImageDimensionsDTO"];
@@ -501,7 +506,7 @@ export type components = {
501
506
  */
502
507
  size: number;
503
508
  /** @description The mimetype of the image */
504
- contentType: string;
509
+ contentType: components["schemas"]["ImageContentType"];
505
510
  copyright: components["schemas"]["CopyrightDTO"];
506
511
  tags: components["schemas"]["ImageTagDTO"];
507
512
  /** @description Searchable caption for the image */
@@ -738,6 +743,8 @@ export type components = {
738
743
  * @description Filter images with height less than or equal to this value.
739
744
  */
740
745
  heightTo?: number;
746
+ /** @description Filter images by content type (e.g., 'image/jpeg', 'image/png'). */
747
+ contentType?: components["schemas"]["ImageContentType"];
741
748
  };
742
749
  /**
743
750
  * SearchResultDTO
@@ -794,7 +801,7 @@ export type components = {
794
801
  * @description The sorting used on results. The following are supported: relevance, -relevance, title, -title, lastUpdated, -lastUpdated, id, -id. Default is by -relevance (desc) when query is set, and title (asc) when query is empty.
795
802
  * @enum {string}
796
803
  */
797
- Sort: "-relevance" | "relevance" | "-title" | "title" | "-lastUpdated" | "lastUpdated" | "-id" | "id";
804
+ Sort: "-relevance" | "relevance" | "-title" | "title" | "-lastUpdated" | "lastUpdated" | "-id" | "id" | "-width" | "width" | "-height" | "height";
798
805
  /**
799
806
  * TagsSearchResultDTO
800
807
  * @description Information about tags-search-results
@@ -892,6 +899,7 @@ export type EditorNoteDTO = components['schemas']['EditorNoteDTO'];
892
899
  export type ErrorBody = components['schemas']['ErrorBody'];
893
900
  export type ImageAltTextDTO = components['schemas']['ImageAltTextDTO'];
894
901
  export type ImageCaptionDTO = components['schemas']['ImageCaptionDTO'];
902
+ export type ImageContentType = components['schemas']['ImageContentType'];
895
903
  export type ImageDimensionsDTO = components['schemas']['ImageDimensionsDTO'];
896
904
  export type ImageFileDTO = components['schemas']['ImageFileDTO'];
897
905
  export type ImageMetaInformationV2DTO = components['schemas']['ImageMetaInformationV2DTO'];
@@ -931,7 +939,7 @@ export interface operations {
931
939
  license?: string;
932
940
  /**
933
941
  * @description The sorting used on results.
934
- * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id.
942
+ * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id, -width, width, -height, height.
935
943
  * Default is by -relevance (desc) when query is set, and title (asc) when query is empty.
936
944
  */
937
945
  sort?: string;
@@ -960,6 +968,8 @@ export interface operations {
960
968
  "height-from"?: number;
961
969
  /** @description Filter images with height less than or equal to this value. */
962
970
  "height-to"?: number;
971
+ /** @description Filter images by content type (e.g., 'image/jpeg', 'image/png'). */
972
+ "content-type"?: string;
963
973
  };
964
974
  header?: never;
965
975
  path?: never;
@@ -1085,7 +1095,7 @@ export interface operations {
1085
1095
  language?: string;
1086
1096
  /**
1087
1097
  * @description The sorting used on results.
1088
- * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id.
1098
+ * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id, -width, width, -height, height.
1089
1099
  * Default is by -relevance (desc) when query is set, and title (asc) when query is empty.
1090
1100
  */
1091
1101
  sort?: string;
@@ -1507,7 +1517,7 @@ export interface operations {
1507
1517
  includeCopyrighted?: boolean;
1508
1518
  /**
1509
1519
  * @description The sorting used on results.
1510
- * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id.
1520
+ * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id, -width, width, -height, height.
1511
1521
  * Default is by -relevance (desc) when query is set, and title (asc) when query is empty.
1512
1522
  */
1513
1523
  sort?: string;
@@ -1542,6 +1552,8 @@ export interface operations {
1542
1552
  "height-from"?: number;
1543
1553
  /** @description Filter images with height less than or equal to this value. */
1544
1554
  "height-to"?: number;
1555
+ /** @description Filter images by content type (e.g., 'image/jpeg', 'image/png'). */
1556
+ "content-type"?: string;
1545
1557
  };
1546
1558
  header?: never;
1547
1559
  path?: never;
@@ -1691,7 +1703,7 @@ export interface operations {
1691
1703
  language?: string;
1692
1704
  /**
1693
1705
  * @description The sorting used on results.
1694
- * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id.
1706
+ * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id, -width, width, -height, height.
1695
1707
  * Default is by -relevance (desc) when query is set, and title (asc) when query is empty.
1696
1708
  */
1697
1709
  sort?: string;
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.104",
35
+ "version": "1.0.106",
36
36
  "packageManager": "yarn@4.10.3"
37
37
  }