@ndla/types-backend 1.0.54 → 1.0.56

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.
@@ -351,6 +351,26 @@ export type paths = {
351
351
  patch?: never;
352
352
  trace?: never;
353
353
  };
354
+ "/learningpath-api/v2/learningpaths/{learningpath_id}/learningsteps/{learningstep_id}/language/{p1}": {
355
+ parameters: {
356
+ query?: never;
357
+ header?: never;
358
+ path?: never;
359
+ cookie?: never;
360
+ };
361
+ get?: never;
362
+ put?: never;
363
+ post?: never;
364
+ /**
365
+ * Delete given learningstep language
366
+ * @description Deletes the given learningStep language
367
+ */
368
+ delete: operations["deleteLearningpath-apiV2LearningpathsLearningpath_idLearningstepsLearningstep_idLanguageP1"];
369
+ options?: never;
370
+ head?: never;
371
+ patch?: never;
372
+ trace?: never;
373
+ };
354
374
  "/learningpath-api/v2/learningpaths/status/{STATUS}": {
355
375
  parameters: {
356
376
  query?: never;
@@ -1012,12 +1032,13 @@ export type components = {
1012
1032
  /** @description The title of the learningstep */
1013
1033
  title?: string;
1014
1034
  /** @description The introduction of the learningstep */
1015
- introduction?: string;
1035
+ introduction?: string | null;
1016
1036
  /** @description The chosen language */
1017
1037
  language: string;
1018
1038
  /** @description The description of the learningstep */
1019
- description?: string;
1020
- embedUrl?: components["schemas"]["EmbedUrlV2DTO"];
1039
+ description?: string | null;
1040
+ /** @description The embed content for the learningstep */
1041
+ embedUrl?: components["schemas"]["EmbedUrlV2DTO"] | null;
1021
1042
  /** @description Determines if the title of the step should be displayed in viewmode */
1022
1043
  showTitle?: boolean;
1023
1044
  /** @description The type of the step */
@@ -2576,6 +2597,88 @@ export interface operations {
2576
2597
  };
2577
2598
  };
2578
2599
  };
2600
+ "deleteLearningpath-apiV2LearningpathsLearningpath_idLearningstepsLearningstep_idLanguageP1": {
2601
+ parameters: {
2602
+ query?: never;
2603
+ header?: never;
2604
+ path: {
2605
+ /** @description Id of the learningpath. */
2606
+ learningpath_id: number;
2607
+ /** @description Id of the learningstep. */
2608
+ learningstep_id: number;
2609
+ /** @description The ISO 639-1 language describing language. */
2610
+ p1: string;
2611
+ };
2612
+ cookie?: never;
2613
+ };
2614
+ requestBody?: never;
2615
+ responses: {
2616
+ 200: {
2617
+ headers: {
2618
+ [name: string]: unknown;
2619
+ };
2620
+ content: {
2621
+ "application/json": components["schemas"]["LearningStepV2DTO"];
2622
+ };
2623
+ };
2624
+ 400: {
2625
+ headers: {
2626
+ [name: string]: unknown;
2627
+ };
2628
+ content: {
2629
+ "application/json": components["schemas"]["AllErrors"];
2630
+ };
2631
+ };
2632
+ 401: {
2633
+ headers: {
2634
+ [name: string]: unknown;
2635
+ };
2636
+ content: {
2637
+ "application/json": components["schemas"]["AllErrors"];
2638
+ };
2639
+ };
2640
+ 403: {
2641
+ headers: {
2642
+ [name: string]: unknown;
2643
+ };
2644
+ content: {
2645
+ "application/json": components["schemas"]["AllErrors"];
2646
+ };
2647
+ };
2648
+ 404: {
2649
+ headers: {
2650
+ [name: string]: unknown;
2651
+ };
2652
+ content: {
2653
+ "application/json": components["schemas"]["AllErrors"];
2654
+ };
2655
+ };
2656
+ 422: {
2657
+ headers: {
2658
+ [name: string]: unknown;
2659
+ };
2660
+ content: {
2661
+ "application/json": components["schemas"]["AllErrors"];
2662
+ };
2663
+ };
2664
+ 500: {
2665
+ headers: {
2666
+ [name: string]: unknown;
2667
+ };
2668
+ content: {
2669
+ "application/json": components["schemas"]["ErrorBody"];
2670
+ };
2671
+ };
2672
+ 502: {
2673
+ headers: {
2674
+ [name: string]: unknown;
2675
+ };
2676
+ content: {
2677
+ "application/json": components["schemas"]["AllErrors"];
2678
+ };
2679
+ };
2680
+ };
2681
+ };
2579
2682
  "getLearningpath-apiV2LearningpathsStatusStatus": {
2580
2683
  parameters: {
2581
2684
  query?: never;
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.54",
35
+ "version": "1.0.56",
36
36
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
37
37
  }