@ndla/types-backend 1.0.61 → 1.0.63

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.
@@ -1007,8 +1007,11 @@ export type components = {
1007
1007
  */
1008
1008
  statusCode: number;
1009
1009
  };
1010
- /** PartialArticleFieldsDTO */
1011
- PartialArticleFieldsDTO: components["schemas"]["availability"] | components["schemas"]["grepCodes"] | components["schemas"]["license"] | components["schemas"]["metaDescription"] | components["schemas"]["published"] | components["schemas"]["relatedContent"] | components["schemas"]["revisionDate"] | components["schemas"]["tags"];
1010
+ /**
1011
+ * PartialArticleFieldsDTO
1012
+ * @enum {string}
1013
+ */
1014
+ PartialArticleFieldsDTO: "availability" | "grepCodes" | "license" | "metaDescription" | "relatedContent" | "tags" | "revisionDate" | "published";
1012
1015
  /**
1013
1016
  * PartialBulkArticlesDTO
1014
1017
  * @description Partial data about articles to publish in bulk
@@ -1300,22 +1303,6 @@ export type components = {
1300
1303
  /** @description The ISO 639-1 language code describing which article translation this visual element belongs to */
1301
1304
  language: string;
1302
1305
  };
1303
- /** availability */
1304
- availability: Record<string, never>;
1305
- /** grepCodes */
1306
- grepCodes: Record<string, never>;
1307
- /** license */
1308
- license: Record<string, never>;
1309
- /** metaDescription */
1310
- metaDescription: Record<string, never>;
1311
- /** published */
1312
- published: Record<string, never>;
1313
- /** relatedContent */
1314
- relatedContent: Record<string, never>;
1315
- /** revisionDate */
1316
- revisionDate: Record<string, never>;
1317
- /** tags */
1318
- tags: Record<string, never>;
1319
1306
  };
1320
1307
  responses: never;
1321
1308
  parameters: never;
@@ -107,19 +107,3 @@ export type ValidationMessage = schemas["ValidationMessage"];
107
107
  export type IValidationMessage = schemas["ValidationMessage"];
108
108
  export type VisualElementDTO = schemas["VisualElementDTO"];
109
109
  export type IVisualElementDTO = schemas["VisualElementDTO"];
110
- export type availability = schemas["availability"];
111
- export type Iavailability = schemas["availability"];
112
- export type grepCodes = schemas["grepCodes"];
113
- export type IgrepCodes = schemas["grepCodes"];
114
- export type license = schemas["license"];
115
- export type Ilicense = schemas["license"];
116
- export type metaDescription = schemas["metaDescription"];
117
- export type ImetaDescription = schemas["metaDescription"];
118
- export type published = schemas["published"];
119
- export type Ipublished = schemas["published"];
120
- export type relatedContent = schemas["relatedContent"];
121
- export type IrelatedContent = schemas["relatedContent"];
122
- export type revisionDate = schemas["revisionDate"];
123
- export type IrevisionDate = schemas["revisionDate"];
124
- export type tags = schemas["tags"];
125
- export type Itags = schemas["tags"];
@@ -206,12 +206,10 @@ export type components = {
206
206
  */
207
207
  articleId: number;
208
208
  /** @description List of submenu objects */
209
- menu: components["schemas"]["MenuDataDTO"][];
209
+ menu: components["schemas"]["MenuDTO"][];
210
210
  /** @description Hide this level in menu */
211
211
  hideLevel?: boolean;
212
212
  };
213
- /** MenuDataDTO */
214
- MenuDataDTO: components["schemas"]["MenuDTO"];
215
213
  /** MovieThemeDTO */
216
214
  MovieThemeDTO: {
217
215
  name: components["schemas"]["MovieThemeNameDTO"][];
@@ -17,8 +17,6 @@ export type FrontPageDTO = schemas["FrontPageDTO"];
17
17
  export type IFrontPageDTO = schemas["FrontPageDTO"];
18
18
  export type MenuDTO = schemas["MenuDTO"];
19
19
  export type IMenuDTO = schemas["MenuDTO"];
20
- export type MenuDataDTO = schemas["MenuDataDTO"];
21
- export type IMenuDataDTO = schemas["MenuDataDTO"];
22
20
  export type MovieThemeDTO = schemas["MovieThemeDTO"];
23
21
  export type IMovieThemeDTO = schemas["MovieThemeDTO"];
24
22
  export type MovieThemeNameDTO = schemas["MovieThemeNameDTO"];
@@ -391,6 +391,26 @@ export type paths = {
391
391
  patch?: never;
392
392
  trace?: never;
393
393
  };
394
+ "/learningpath-api/v2/learningpaths/{learningpath_id}/language/{p1}": {
395
+ parameters: {
396
+ query?: never;
397
+ header?: never;
398
+ path?: never;
399
+ cookie?: never;
400
+ };
401
+ get?: never;
402
+ put?: never;
403
+ post?: never;
404
+ /**
405
+ * Delete the given language of a learning path
406
+ * @description Delete the given language of a learning path
407
+ */
408
+ delete: operations["deleteLearningpath-apiV2LearningpathsLearningpath_idLanguageP1"];
409
+ options?: never;
410
+ head?: never;
411
+ patch?: never;
412
+ trace?: never;
413
+ };
394
414
  "/learningpath-api/v2/learningpaths/{learningpath_id}/update-taxonomy": {
395
415
  parameters: {
396
416
  query?: never;
@@ -750,7 +770,7 @@ export type components = {
750
770
  * Format: int64
751
771
  * @description The id of the article that this learningstep is associated with
752
772
  */
753
- article?: number;
773
+ articleId?: number;
754
774
  /** @description Determines if the title of the step should be displayed in viewmode */
755
775
  showTitle: boolean;
756
776
  /** @description The type of the step */
@@ -863,7 +883,7 @@ export type components = {
863
883
  * Format: int64
864
884
  * @description The article id this learningstep points to
865
885
  */
866
- article?: number;
886
+ articleId?: number;
867
887
  embedUrl?: components["schemas"]["EmbedUrlV2DTO"];
868
888
  /**
869
889
  * @description Determines if the title of the step should be displayed in viewmode.
@@ -1062,7 +1082,7 @@ export type components = {
1062
1082
  * Format: int64
1063
1083
  * @description The article id this learningstep points to
1064
1084
  */
1065
- article?: number | null;
1085
+ articleId?: number | null;
1066
1086
  /** @description Determines if the title of the step should be displayed in viewmode */
1067
1087
  showTitle?: boolean;
1068
1088
  /** @description The type of the step */
@@ -2765,6 +2785,62 @@ export interface operations {
2765
2785
  };
2766
2786
  };
2767
2787
  };
2788
+ "deleteLearningpath-apiV2LearningpathsLearningpath_idLanguageP1": {
2789
+ parameters: {
2790
+ query?: never;
2791
+ header?: never;
2792
+ path: {
2793
+ /** @description Id of the learningpath. */
2794
+ learningpath_id: number;
2795
+ /** @description The ISO 639-1 language describing language. */
2796
+ p1: string;
2797
+ };
2798
+ cookie?: never;
2799
+ };
2800
+ requestBody?: never;
2801
+ responses: {
2802
+ 200: {
2803
+ headers: {
2804
+ [name: string]: unknown;
2805
+ };
2806
+ content: {
2807
+ "application/json": components["schemas"]["LearningPathV2DTO"];
2808
+ };
2809
+ };
2810
+ 400: {
2811
+ headers: {
2812
+ [name: string]: unknown;
2813
+ };
2814
+ content: {
2815
+ "application/json": components["schemas"]["AllErrors"];
2816
+ };
2817
+ };
2818
+ 404: {
2819
+ headers: {
2820
+ [name: string]: unknown;
2821
+ };
2822
+ content: {
2823
+ "application/json": components["schemas"]["AllErrors"];
2824
+ };
2825
+ };
2826
+ 422: {
2827
+ headers: {
2828
+ [name: string]: unknown;
2829
+ };
2830
+ content: {
2831
+ "application/json": components["schemas"]["AllErrors"];
2832
+ };
2833
+ };
2834
+ 500: {
2835
+ headers: {
2836
+ [name: string]: unknown;
2837
+ };
2838
+ content: {
2839
+ "application/json": components["schemas"]["AllErrors"] | components["schemas"]["ErrorBody"];
2840
+ };
2841
+ };
2842
+ };
2843
+ };
2768
2844
  "postLearningpath-apiV2LearningpathsLearningpath_idUpdate-taxonomy": {
2769
2845
  parameters: {
2770
2846
  query?: {
package/package.json CHANGED
@@ -32,6 +32,6 @@
32
32
  "tsx": "^4.19.3",
33
33
  "typescript": "^5.3.3"
34
34
  },
35
- "version": "1.0.61",
35
+ "version": "1.0.63",
36
36
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
37
37
  }