@ndla/types-backend 1.0.35 → 1.0.36

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.
@@ -281,8 +281,6 @@ export type components = {
281
281
  copyright?: components["schemas"]["DraftCopyrightDTO"];
282
282
  /** @description URL for the source of the concept */
283
283
  source?: string;
284
- /** @description A meta image for the concept */
285
- metaImage?: components["schemas"]["ConceptMetaImageDTO"];
286
284
  tags?: components["schemas"]["ConceptTagsDTO"];
287
285
  /** @description When the concept was created */
288
286
  created: string;
@@ -302,15 +300,6 @@ export type components = {
302
300
  /** @description Describes the changes made to the concept, only visible to editors */
303
301
  editorNotes?: components["schemas"]["EditorNoteDTO"][];
304
302
  };
305
- /** ConceptMetaImageDTO */
306
- ConceptMetaImageDTO: {
307
- /** @description The meta image url */
308
- url: string;
309
- /** @description The alt text for the meta image */
310
- alt: string;
311
- /** @description The ISO 639-1 language code describing which concept translation this meta image belongs to */
312
- language: string;
313
- };
314
303
  /**
315
304
  * ConceptResponsibleDTO
316
305
  * @description Object with data representing the editor responsible for this concept
@@ -400,8 +389,6 @@ export type components = {
400
389
  title: components["schemas"]["ConceptTitleDTO"];
401
390
  /** @description The content of the concept in available languages */
402
391
  content: components["schemas"]["ConceptContent"];
403
- /** @description The metaImage of the concept */
404
- metaImage: components["schemas"]["ConceptMetaImageDTO"];
405
392
  tags?: components["schemas"]["ConceptTagsDTO"];
406
393
  /** @description All available languages of the current concept */
407
394
  supportedLanguages: string[];
@@ -626,8 +613,6 @@ export type components = {
626
613
  content?: string;
627
614
  /** @description Describes the copyright information for the concept */
628
615
  copyright?: components["schemas"]["DraftCopyrightDTO"];
629
- /** @description An image-api ID for the concept meta image */
630
- metaImage?: components["schemas"]["NewConceptMetaImageDTO"];
631
616
  /** @description A list of searchable tags */
632
617
  tags?: string[];
633
618
  /** @description A visual element for the concept. May be anything from an image to a video or H5P */
@@ -638,13 +623,6 @@ export type components = {
638
623
  conceptType: string;
639
624
  glossData?: components["schemas"]["GlossDataDTO"];
640
625
  };
641
- /** NewConceptMetaImageDTO */
642
- NewConceptMetaImageDTO: {
643
- /** @description The image-api id of the meta image */
644
- id: string;
645
- /** @description The alt text of the meta image */
646
- alt: string;
647
- };
648
626
  /**
649
627
  * NotFoundWithSupportedLanguages
650
628
  * @description Information about an error
@@ -726,7 +704,6 @@ export type components = {
726
704
  title?: string;
727
705
  /** @description The content of the concept */
728
706
  content?: string;
729
- metaImage?: components["schemas"]["NewConceptMetaImageDTO"] | null;
730
707
  /** @description Describes the copyright information for the concept */
731
708
  copyright?: components["schemas"]["DraftCopyrightDTO"];
732
709
  /** @description A list of searchable tags */
@@ -9,8 +9,6 @@ export type ConceptContent = schemas["ConceptContent"];
9
9
  export type IConceptContent = schemas["ConceptContent"];
10
10
  export type ConceptDTO = schemas["ConceptDTO"];
11
11
  export type IConceptDTO = schemas["ConceptDTO"];
12
- export type ConceptMetaImageDTO = schemas["ConceptMetaImageDTO"];
13
- export type IConceptMetaImageDTO = schemas["ConceptMetaImageDTO"];
14
12
  export type ConceptResponsibleDTO = schemas["ConceptResponsibleDTO"];
15
13
  export type IConceptResponsibleDTO = schemas["ConceptResponsibleDTO"];
16
14
  export type ConceptSearchParamsDTO = schemas["ConceptSearchParamsDTO"];
@@ -47,8 +45,6 @@ export type MultiSearchTermsAggregationDTO = schemas["MultiSearchTermsAggregatio
47
45
  export type IMultiSearchTermsAggregationDTO = schemas["MultiSearchTermsAggregationDTO"];
48
46
  export type NewConceptDTO = schemas["NewConceptDTO"];
49
47
  export type INewConceptDTO = schemas["NewConceptDTO"];
50
- export type NewConceptMetaImageDTO = schemas["NewConceptMetaImageDTO"];
51
- export type INewConceptMetaImageDTO = schemas["NewConceptMetaImageDTO"];
52
48
  export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
53
49
  export type INotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
54
50
  export type Sort = schemas["Sort"];
@@ -56,6 +56,26 @@ export type paths = {
56
56
  patch: operations["patchFrontpage-apiV1SubjectpageSubjectpage-id"];
57
57
  trace?: never;
58
58
  };
59
+ "/frontpage-api/v1/subjectpage/{subjectpage-id}/language/{language}": {
60
+ parameters: {
61
+ query?: never;
62
+ header?: never;
63
+ path?: never;
64
+ cookie?: never;
65
+ };
66
+ get?: never;
67
+ put?: never;
68
+ post?: never;
69
+ /**
70
+ * Delete language from subject page
71
+ * @description Delete language from subject page
72
+ */
73
+ delete: operations["deleteFrontpage-apiV1SubjectpageSubjectpage-idLanguageLanguage"];
74
+ options?: never;
75
+ head?: never;
76
+ patch?: never;
77
+ trace?: never;
78
+ };
59
79
  "/frontpage-api/v1/frontpage": {
60
80
  parameters: {
61
81
  query?: never;
@@ -92,6 +112,26 @@ export type paths = {
92
112
  patch?: never;
93
113
  trace?: never;
94
114
  };
115
+ "/frontpage-api/v1/filmfrontpage/language/{language}": {
116
+ parameters: {
117
+ query?: never;
118
+ header?: never;
119
+ path?: never;
120
+ cookie?: never;
121
+ };
122
+ get?: never;
123
+ put?: never;
124
+ post?: never;
125
+ /**
126
+ * Delete language from film front page
127
+ * @description Delete language from film front page
128
+ */
129
+ delete: operations["deleteFrontpage-apiV1FilmfrontpageLanguageLanguage"];
130
+ options?: never;
131
+ head?: never;
132
+ patch?: never;
133
+ trace?: never;
134
+ };
95
135
  };
96
136
  export type webhooks = Record<string, never>;
97
137
  export type components = {
@@ -144,6 +184,7 @@ export type components = {
144
184
  movieThemes: components["schemas"]["MovieThemeDTO"][];
145
185
  slideShow: string[];
146
186
  article?: string;
187
+ supportedLanguages: string[];
147
188
  };
148
189
  /**
149
190
  * FrontPageDTO
@@ -575,6 +616,70 @@ export interface operations {
575
616
  };
576
617
  };
577
618
  };
619
+ "deleteFrontpage-apiV1SubjectpageSubjectpage-idLanguageLanguage": {
620
+ parameters: {
621
+ query?: never;
622
+ header?: never;
623
+ path: {
624
+ /** @description The subjectpage id */
625
+ "subjectpage-id": number;
626
+ /** @description The ISO 639-1 language code describing language. */
627
+ language: string;
628
+ };
629
+ cookie?: never;
630
+ };
631
+ requestBody?: never;
632
+ responses: {
633
+ 200: {
634
+ headers: {
635
+ [name: string]: unknown;
636
+ };
637
+ content: {
638
+ "application/json": components["schemas"]["SubjectPageDTO"];
639
+ };
640
+ };
641
+ 400: {
642
+ headers: {
643
+ [name: string]: unknown;
644
+ };
645
+ content: {
646
+ "application/json": components["schemas"]["AllErrors"];
647
+ };
648
+ };
649
+ 401: {
650
+ headers: {
651
+ [name: string]: unknown;
652
+ };
653
+ content: {
654
+ "application/json": components["schemas"]["AllErrors"];
655
+ };
656
+ };
657
+ 403: {
658
+ headers: {
659
+ [name: string]: unknown;
660
+ };
661
+ content: {
662
+ "application/json": components["schemas"]["AllErrors"];
663
+ };
664
+ };
665
+ 404: {
666
+ headers: {
667
+ [name: string]: unknown;
668
+ };
669
+ content: {
670
+ "application/json": components["schemas"]["AllErrors"];
671
+ };
672
+ };
673
+ 500: {
674
+ headers: {
675
+ [name: string]: unknown;
676
+ };
677
+ content: {
678
+ "application/json": components["schemas"]["ErrorBody"];
679
+ };
680
+ };
681
+ };
682
+ };
578
683
  "getFrontpage-apiV1Frontpage": {
579
684
  parameters: {
580
685
  query?: never;
@@ -797,4 +902,66 @@ export interface operations {
797
902
  };
798
903
  };
799
904
  };
905
+ "deleteFrontpage-apiV1FilmfrontpageLanguageLanguage": {
906
+ parameters: {
907
+ query?: never;
908
+ header?: never;
909
+ path: {
910
+ /** @description The ISO 639-1 language code describing language. */
911
+ language: string;
912
+ };
913
+ cookie?: never;
914
+ };
915
+ requestBody?: never;
916
+ responses: {
917
+ 200: {
918
+ headers: {
919
+ [name: string]: unknown;
920
+ };
921
+ content: {
922
+ "application/json": components["schemas"]["FilmFrontPageDTO"];
923
+ };
924
+ };
925
+ 400: {
926
+ headers: {
927
+ [name: string]: unknown;
928
+ };
929
+ content: {
930
+ "application/json": components["schemas"]["AllErrors"];
931
+ };
932
+ };
933
+ 401: {
934
+ headers: {
935
+ [name: string]: unknown;
936
+ };
937
+ content: {
938
+ "application/json": components["schemas"]["AllErrors"];
939
+ };
940
+ };
941
+ 403: {
942
+ headers: {
943
+ [name: string]: unknown;
944
+ };
945
+ content: {
946
+ "application/json": components["schemas"]["AllErrors"];
947
+ };
948
+ };
949
+ 404: {
950
+ headers: {
951
+ [name: string]: unknown;
952
+ };
953
+ content: {
954
+ "application/json": components["schemas"]["AllErrors"];
955
+ };
956
+ };
957
+ 500: {
958
+ headers: {
959
+ [name: string]: unknown;
960
+ };
961
+ content: {
962
+ "application/json": components["schemas"]["ErrorBody"];
963
+ };
964
+ };
965
+ };
966
+ };
800
967
  }
@@ -991,47 +991,31 @@ export interface operations {
991
991
  "getSearch-apiV1SearchGroup": {
992
992
  parameters: {
993
993
  query?: {
994
- /** @description Return only results with content matching the specified query. */
995
- query?: string;
996
- /** @description A comma separated list of resource-types the learning resources should be grouped by. */
997
- "resource-types"?: string[];
998
- /** @description The page number of the search hits to display. */
999
994
  page?: number;
1000
- /** @description The number of search hits to display for each page. Defaults to 10 and max is 10000. */
1001
995
  "page-size"?: number;
1002
- /** @description The ISO 639-1 language code describing language. */
996
+ "article-types"?: string[];
997
+ "context-types"?: string[];
1003
998
  language?: string;
1004
- /** @description Fallback to existing language if language is specified. */
999
+ ids?: number[];
1000
+ "resource-types"?: string[];
1001
+ license?: string;
1002
+ query?: string;
1003
+ sort?: string;
1005
1004
  fallback?: boolean;
1006
- /** @description A comma separated list of subjects the learning resources should be filtered by. */
1007
1005
  subjects?: string[];
1008
- /** @description The sorting used on results.
1009
- * The following are supported: -relevance, relevance, -title, title, -lastUpdated, lastUpdated, -id, id, -duration, duration, revisionDate, -revisionDate, responsibleLastUpdated, -responsibleLastUpdated, status, -status, -prioritized, prioritized, -parentTopicName, parentTopicName, -primaryRoot, primaryRoot, -resourceType, resourceType, -published, published, -favorited, favorited. Default is by -relevance (desc). */
1010
- sort?: string;
1011
- /** @description Return only learning resources that have one of the provided ids. To provide multiple ids, separate by comma (,). */
1012
- ids?: number[];
1013
- /** @description A comma separated list of types the learning resources should be filtered by. Available values is standard, topic-article, frontpage-article, learningpath, concept, gloss */
1014
- "context-types"?: string[];
1015
- /** @description A comma separated list of ISO 639-1 language codes that the learning resource can be available in. */
1016
1006
  "language-filter"?: string[];
1017
- /** @description A comma separated list of relevances the learning resources should be filtered by.
1018
- * If subjects are specified the learning resource must have specified relevances in relation to a specified subject.
1019
- * If levels are specified the learning resource must have specified relevances in relation to a specified level. */
1020
1007
  relevance?: string[];
1021
- /** @description Whether to include group without resource-types for group-search. Defaults to false. */
1022
- "missing-group"?: boolean;
1023
- /** @description List of index-paths that should be term-aggregated and returned in result. */
1024
- "aggregate-paths"?: string[];
1025
- /** @description A comma separated list of codes from GREP API the resources should be filtered by. */
1008
+ "search-context"?: string;
1026
1009
  "grep-codes"?: string[];
1027
- /** @description A comma separated list of traits the resources should be filtered by. */
1028
- traits?: string[];
1029
- /** @description Return only results with embed data-resource the specified resource. Can specify multiple with a comma separated list to filter for one of the embed types. */
1010
+ "aggregate-paths"?: string[];
1030
1011
  "embed-resource"?: string[];
1031
- /** @description Return only results with embed data-resource_id, data-videoid or data-url with the specified id. */
1032
1012
  "embed-id"?: string;
1033
- /** @description Filter out inactive taxonomy contexts. */
1034
1013
  "filter-inactive"?: boolean;
1014
+ traits?: string[];
1015
+ "result-types"?: string[];
1016
+ "node-types"?: string[];
1017
+ /** @description Whether to include group without resource-types for group-search. Defaults to false. */
1018
+ "missing-group"?: boolean;
1035
1019
  };
1036
1020
  header?: {
1037
1021
  /** @description Header containing FEIDE access token. */
package/package.json CHANGED
@@ -28,5 +28,5 @@
28
28
  "openapi-typescript": "^7.6.1",
29
29
  "typescript": "^5.3.3"
30
30
  },
31
- "version": "1.0.35"
31
+ "version": "1.0.36"
32
32
  }