@ndla/types-backend 1.0.34 → 1.0.35

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.
Files changed (61) hide show
  1. package/build/article-api-openapi.d.ts +1092 -0
  2. package/build/article-api-openapi.js +7 -0
  3. package/build/article-api-openapi.js.map +1 -0
  4. package/build/article-api.d.ts +57 -156
  5. package/build/article-api.js +27 -13
  6. package/build/article-api.js.map +1 -1
  7. package/build/audio-api-openapi.d.ts +2153 -0
  8. package/build/audio-api-openapi.js +7 -0
  9. package/build/audio-api-openapi.js.map +1 -0
  10. package/build/audio-api.d.ts +69 -190
  11. package/build/audio-api.js +27 -13
  12. package/build/audio-api.js.map +1 -1
  13. package/build/concept-api-openapi.d.ts +1682 -0
  14. package/build/concept-api-openapi.js +7 -0
  15. package/build/concept-api-openapi.js.map +1 -0
  16. package/build/concept-api.d.ts +69 -221
  17. package/build/concept-api.js +27 -21
  18. package/build/concept-api.js.map +1 -1
  19. package/build/draft-api-openapi.d.ts +2893 -0
  20. package/build/draft-api-openapi.js +7 -0
  21. package/build/draft-api-openapi.js.map +1 -0
  22. package/build/draft-api.d.ts +117 -292
  23. package/build/draft-api.js +27 -13
  24. package/build/draft-api.js.map +1 -1
  25. package/build/frontpage-api-openapi.d.ts +800 -0
  26. package/build/frontpage-api-openapi.js +7 -0
  27. package/build/frontpage-api-openapi.js.map +1 -0
  28. package/build/frontpage-api.d.ts +53 -121
  29. package/build/frontpage-api.js +27 -1
  30. package/build/frontpage-api.js.map +1 -1
  31. package/build/image-api-openapi.d.ts +2192 -0
  32. package/build/image-api-openapi.js +7 -0
  33. package/build/image-api-openapi.js.map +1 -0
  34. package/build/image-api.d.ts +61 -174
  35. package/build/image-api.js +27 -13
  36. package/build/image-api.js.map +1 -1
  37. package/build/learningpath-api-openapi.d.ts +2671 -0
  38. package/build/learningpath-api-openapi.js +7 -0
  39. package/build/learningpath-api-openapi.js.map +1 -0
  40. package/build/learningpath-api.d.ts +71 -143
  41. package/build/learningpath-api.js +27 -1
  42. package/build/learningpath-api.js.map +1 -1
  43. package/build/myndla-api-openapi.d.ts +2718 -0
  44. package/build/myndla-api-openapi.js +7 -0
  45. package/build/myndla-api-openapi.js.map +1 -0
  46. package/build/myndla-api.d.ts +69 -125
  47. package/build/myndla-api.js +27 -1
  48. package/build/myndla-api.js.map +1 -1
  49. package/build/oembed-proxy-openapi.d.ts +249 -0
  50. package/build/oembed-proxy-openapi.js +7 -0
  51. package/build/oembed-proxy-openapi.js.map +1 -0
  52. package/build/oembed-proxy.d.ts +15 -0
  53. package/build/oembed-proxy.js +30 -0
  54. package/build/oembed-proxy.js.map +1 -0
  55. package/build/search-api-openapi.d.ts +1525 -0
  56. package/build/search-api-openapi.js +7 -0
  57. package/build/search-api-openapi.js.map +1 -0
  58. package/build/search-api.d.ts +121 -422
  59. package/build/search-api.js +27 -33
  60. package/build/search-api.js.map +1 -1
  61. package/package.json +2 -1
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by openapi-typescript.
4
+ * Do not make direct changes to the file.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=frontpage-api-openapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontpage-api-openapi.js","sourceRoot":"","sources":["../frontpage-api-openapi.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -1,121 +1,53 @@
1
- export interface IAboutFilmSubjectDTO {
2
- title: string;
3
- description: string;
4
- visualElement: IVisualElementDTO;
5
- language: string;
6
- }
7
- export interface IAboutSubjectDTO {
8
- title: string;
9
- description: string;
10
- visualElement: IVisualElementDTO;
11
- }
12
- export interface IBannerImageDTO {
13
- mobileUrl?: string;
14
- mobileId?: number;
15
- desktopUrl: string;
16
- desktopId: number;
17
- }
18
- export interface IErrorBody {
19
- code: string;
20
- description: string;
21
- occurredAt: string;
22
- statusCode: number;
23
- }
24
- export interface IFilmFrontPageDTO {
25
- name: string;
26
- about: IAboutFilmSubjectDTO[];
27
- movieThemes: IMovieThemeDTO[];
28
- slideShow: string[];
29
- article?: string;
30
- }
31
- export interface IFrontPageDTO {
32
- articleId: number;
33
- menu: IMenuDTO[];
34
- }
35
- export interface IMenuDTO {
36
- articleId: number;
37
- menu: IMenuDataDTO[];
38
- hideLevel?: boolean;
39
- }
40
- export type IMenuDataDTO = IMenuDTO;
41
- export interface IMovieThemeDTO {
42
- name: IMovieThemeNameDTO[];
43
- movies: string[];
44
- }
45
- export interface IMovieThemeNameDTO {
46
- name: string;
47
- language: string;
48
- }
49
- export interface INewOrUpdateBannerImageDTO {
50
- mobileImageId?: number;
51
- desktopImageId: number;
52
- }
53
- export interface INewOrUpdatedAboutSubjectDTO {
54
- title: string;
55
- description: string;
56
- language: string;
57
- visualElement: INewOrUpdatedVisualElementDTO;
58
- }
59
- export interface INewOrUpdatedFilmFrontPageDTO {
60
- name: string;
61
- about: INewOrUpdatedAboutSubjectDTO[];
62
- movieThemes: INewOrUpdatedMovieThemeDTO[];
63
- slideShow: string[];
64
- article?: string;
65
- }
66
- export interface INewOrUpdatedMetaDescriptionDTO {
67
- metaDescription: string;
68
- language: string;
69
- }
70
- export interface INewOrUpdatedMovieNameDTO {
71
- name: string;
72
- language: string;
73
- }
74
- export interface INewOrUpdatedMovieThemeDTO {
75
- name: INewOrUpdatedMovieNameDTO[];
76
- movies: string[];
77
- }
78
- export interface INewOrUpdatedVisualElementDTO {
79
- type: string;
80
- id: string;
81
- alt?: string;
82
- }
83
- export interface INewSubjectPageDTO {
84
- name: string;
85
- externalId?: string;
86
- banner: INewOrUpdateBannerImageDTO;
87
- about: INewOrUpdatedAboutSubjectDTO[];
88
- metaDescription: INewOrUpdatedMetaDescriptionDTO[];
89
- editorsChoices?: string[];
90
- connectedTo?: string[];
91
- buildsOn?: string[];
92
- leadsTo?: string[];
93
- }
94
- export interface ISubjectPageDTO {
95
- id: number;
96
- name: string;
97
- banner: IBannerImageDTO;
98
- about?: IAboutSubjectDTO;
99
- metaDescription?: string;
100
- editorsChoices: string[];
101
- supportedLanguages: string[];
102
- connectedTo: string[];
103
- buildsOn: string[];
104
- leadsTo: string[];
105
- }
106
- export interface IUpdatedSubjectPageDTO {
107
- name?: string;
108
- externalId?: string;
109
- banner?: INewOrUpdateBannerImageDTO;
110
- about?: INewOrUpdatedAboutSubjectDTO[];
111
- metaDescription?: INewOrUpdatedMetaDescriptionDTO[];
112
- editorsChoices?: string[];
113
- connectedTo?: string[];
114
- buildsOn?: string[];
115
- leadsTo?: string[];
116
- }
117
- export interface IVisualElementDTO {
118
- type: string;
119
- url: string;
120
- alt?: string;
121
- }
1
+ import * as openapi from "./frontpage-api-openapi";
2
+ type schemas = openapi.components["schemas"];
3
+ export { openapi };
4
+ export type AboutFilmSubjectDTO = schemas["AboutFilmSubjectDTO"];
5
+ export type IAboutFilmSubjectDTO = schemas["AboutFilmSubjectDTO"];
6
+ export type AboutSubjectDTO = schemas["AboutSubjectDTO"];
7
+ export type IAboutSubjectDTO = schemas["AboutSubjectDTO"];
8
+ export type AllErrors = schemas["AllErrors"];
9
+ export type IAllErrors = schemas["AllErrors"];
10
+ export type BannerImageDTO = schemas["BannerImageDTO"];
11
+ export type IBannerImageDTO = schemas["BannerImageDTO"];
12
+ export type ErrorBody = schemas["ErrorBody"];
13
+ export type IErrorBody = schemas["ErrorBody"];
14
+ export type FilmFrontPageDTO = schemas["FilmFrontPageDTO"];
15
+ export type IFilmFrontPageDTO = schemas["FilmFrontPageDTO"];
16
+ export type FrontPageDTO = schemas["FrontPageDTO"];
17
+ export type IFrontPageDTO = schemas["FrontPageDTO"];
18
+ export type MenuDTO = schemas["MenuDTO"];
19
+ export type IMenuDTO = schemas["MenuDTO"];
20
+ export type MenuDataDTO = schemas["MenuDataDTO"];
21
+ export type IMenuDataDTO = schemas["MenuDataDTO"];
22
+ export type MovieThemeDTO = schemas["MovieThemeDTO"];
23
+ export type IMovieThemeDTO = schemas["MovieThemeDTO"];
24
+ export type MovieThemeNameDTO = schemas["MovieThemeNameDTO"];
25
+ export type IMovieThemeNameDTO = schemas["MovieThemeNameDTO"];
26
+ export type NewOrUpdateBannerImageDTO = schemas["NewOrUpdateBannerImageDTO"];
27
+ export type INewOrUpdateBannerImageDTO = schemas["NewOrUpdateBannerImageDTO"];
28
+ export type NewOrUpdatedAboutSubjectDTO = schemas["NewOrUpdatedAboutSubjectDTO"];
29
+ export type INewOrUpdatedAboutSubjectDTO = schemas["NewOrUpdatedAboutSubjectDTO"];
30
+ export type NewOrUpdatedFilmFrontPageDTO = schemas["NewOrUpdatedFilmFrontPageDTO"];
31
+ export type INewOrUpdatedFilmFrontPageDTO = schemas["NewOrUpdatedFilmFrontPageDTO"];
32
+ export type NewOrUpdatedMetaDescriptionDTO = schemas["NewOrUpdatedMetaDescriptionDTO"];
33
+ export type INewOrUpdatedMetaDescriptionDTO = schemas["NewOrUpdatedMetaDescriptionDTO"];
34
+ export type NewOrUpdatedMovieNameDTO = schemas["NewOrUpdatedMovieNameDTO"];
35
+ export type INewOrUpdatedMovieNameDTO = schemas["NewOrUpdatedMovieNameDTO"];
36
+ export type NewOrUpdatedMovieThemeDTO = schemas["NewOrUpdatedMovieThemeDTO"];
37
+ export type INewOrUpdatedMovieThemeDTO = schemas["NewOrUpdatedMovieThemeDTO"];
38
+ export type NewOrUpdatedVisualElementDTO = schemas["NewOrUpdatedVisualElementDTO"];
39
+ export type INewOrUpdatedVisualElementDTO = schemas["NewOrUpdatedVisualElementDTO"];
40
+ export type NewSubjectPageDTO = schemas["NewSubjectPageDTO"];
41
+ export type INewSubjectPageDTO = schemas["NewSubjectPageDTO"];
42
+ export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
43
+ export type INotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
44
+ export type SubjectPageDTO = schemas["SubjectPageDTO"];
45
+ export type ISubjectPageDTO = schemas["SubjectPageDTO"];
46
+ export type UpdatedSubjectPageDTO = schemas["UpdatedSubjectPageDTO"];
47
+ export type IUpdatedSubjectPageDTO = schemas["UpdatedSubjectPageDTO"];
48
+ export type ValidationErrorBody = schemas["ValidationErrorBody"];
49
+ export type IValidationErrorBody = schemas["ValidationErrorBody"];
50
+ export type ValidationMessage = schemas["ValidationMessage"];
51
+ export type IValidationMessage = schemas["ValidationMessage"];
52
+ export type VisualElementDTO = schemas["VisualElementDTO"];
53
+ export type IVisualElementDTO = schemas["VisualElementDTO"];
@@ -1,4 +1,30 @@
1
1
  "use strict";
2
- // DO NOT EDIT: generated file by scala-tsi
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
3
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.openapi = void 0;
27
+ // This file was generated by OpenApiPlugin, do not edit it manually
28
+ var openapi = __importStar(require("./frontpage-api-openapi"));
29
+ exports.openapi = openapi;
4
30
  //# sourceMappingURL=frontpage-api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"frontpage-api.js","sourceRoot":"","sources":["../frontpage-api.ts"],"names":[],"mappings":";AAAA,2CAA2C"}
1
+ {"version":3,"file":"frontpage-api.js","sourceRoot":"","sources":["../frontpage-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAoE;AACpE,+DAAmD;AAG1C,0BAAO"}