@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=audio-api-openapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio-api-openapi.js","sourceRoot":"","sources":["../audio-api-openapi.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -1,190 +1,69 @@
1
- export declare enum AudioSortEnum {
2
- ByRelevanceDesc = "-relevance",
3
- ByRelevanceAsc = "relevance",
4
- ByTitleDesc = "-title",
5
- ByTitleAsc = "title",
6
- ByLastUpdatedDesc = "-lastUpdated",
7
- ByLastUpdatedAsc = "lastUpdated",
8
- ByIdDesc = "-id",
9
- ByIdAsc = "id"
10
- }
11
- export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
12
- export interface IAudioDTO {
13
- url: string;
14
- mimeType: string;
15
- fileSize: number;
16
- language: string;
17
- }
18
- export interface IAudioMetaInformationDTO {
19
- id: number;
20
- revision: number;
21
- title: ITitleDTO;
22
- audioFile: IAudioDTO;
23
- copyright: ICopyrightDTO;
24
- tags: ITagDTO;
25
- supportedLanguages: string[];
26
- audioType: string;
27
- podcastMeta?: IPodcastMetaDTO;
28
- series?: ISeriesDTO;
29
- manuscript?: IManuscriptDTO;
30
- created: string;
31
- updated: string;
32
- }
33
- export interface IAudioSummaryDTO {
34
- id: number;
35
- title: ITitleDTO;
36
- audioType: string;
37
- url: string;
38
- license: string;
39
- supportedLanguages: string[];
40
- manuscript?: IManuscriptDTO;
41
- podcastMeta?: IPodcastMetaDTO;
42
- series?: ISeriesSummaryDTO;
43
- lastUpdated: string;
44
- }
45
- export interface IAudioSummarySearchResultDTO {
46
- totalCount: number;
47
- page?: number;
48
- pageSize: number;
49
- language: string;
50
- results: IAudioSummaryDTO[];
51
- }
52
- export interface IAuthorDTO {
53
- type: ContributorType;
54
- name: string;
55
- }
56
- export interface ICopyrightDTO {
57
- license: ILicenseDTO;
58
- origin?: string;
59
- creators: IAuthorDTO[];
60
- processors: IAuthorDTO[];
61
- rightsholders: IAuthorDTO[];
62
- validFrom?: string;
63
- validTo?: string;
64
- processed: boolean;
65
- }
66
- export interface ICoverPhotoDTO {
67
- id: string;
68
- url: string;
69
- altText: string;
70
- }
71
- export interface IDescriptionDTO {
72
- description: string;
73
- language: string;
74
- }
75
- export interface ILicenseDTO {
76
- license: string;
77
- description?: string;
78
- url?: string;
79
- }
80
- export interface IManuscriptDTO {
81
- manuscript: string;
82
- language: string;
83
- }
84
- export interface INewAudioMetaInformationDTO {
85
- title: string;
86
- language: string;
87
- copyright: ICopyrightDTO;
88
- tags: string[];
89
- audioType?: string;
90
- podcastMeta?: INewPodcastMetaDTO;
91
- seriesId?: number;
92
- manuscript?: string;
93
- }
94
- export interface INewPodcastMetaDTO {
95
- introduction: string;
96
- coverPhotoId: string;
97
- coverPhotoAltText: string;
98
- }
99
- export interface INewSeriesDTO {
100
- title: string;
101
- description: string;
102
- coverPhotoId: string;
103
- coverPhotoAltText: string;
104
- episodes: number[];
105
- language: string;
106
- revision?: number;
107
- hasRSS?: boolean;
108
- }
109
- export interface IPodcastMetaDTO {
110
- introduction: string;
111
- coverPhoto: ICoverPhotoDTO;
112
- language: string;
113
- }
114
- export interface ISearchParamsDTO {
115
- query?: string;
116
- license?: string;
117
- language?: string;
118
- page?: number;
119
- pageSize?: number;
120
- sort?: Sort;
121
- scrollId?: string;
122
- audioType?: string;
123
- filterBySeries?: boolean;
124
- fallback?: boolean;
125
- }
126
- export interface ISeriesDTO {
127
- id: number;
128
- revision: number;
129
- title: ITitleDTO;
130
- description: IDescriptionDTO;
131
- coverPhoto: ICoverPhotoDTO;
132
- episodes?: IAudioMetaInformationDTO[];
133
- supportedLanguages: string[];
134
- hasRSS: boolean;
135
- }
136
- export interface ISeriesSearchParamsDTO {
137
- query?: string;
138
- language?: string;
139
- page?: number;
140
- pageSize?: number;
141
- sort?: Sort;
142
- scrollId?: string;
143
- fallback?: boolean;
144
- }
145
- export interface ISeriesSummaryDTO {
146
- id: number;
147
- title: ITitleDTO;
148
- description: IDescriptionDTO;
149
- supportedLanguages: string[];
150
- episodes?: IAudioSummaryDTO[];
151
- coverPhoto: ICoverPhotoDTO;
152
- }
153
- export interface ISeriesSummarySearchResultDTO {
154
- totalCount: number;
155
- page?: number;
156
- pageSize: number;
157
- language: string;
158
- results: ISeriesSummaryDTO[];
159
- }
160
- export interface ITagDTO {
161
- tags: string[];
162
- language: string;
163
- }
164
- export interface ITagsSearchResultDTO {
165
- totalCount: number;
166
- page: number;
167
- pageSize: number;
168
- language: string;
169
- results: string[];
170
- }
171
- export interface ITitleDTO {
172
- title: string;
173
- language: string;
174
- }
175
- export interface ITranscriptionResultDTO {
176
- status: string;
177
- transcription?: string;
178
- }
179
- export interface IUpdatedAudioMetaInformationDTO {
180
- revision: number;
181
- title: string;
182
- language: string;
183
- copyright: ICopyrightDTO;
184
- tags: string[];
185
- audioType?: string;
186
- podcastMeta?: INewPodcastMetaDTO;
187
- seriesId?: number;
188
- manuscript?: string;
189
- }
190
- export type Sort = AudioSortEnum;
1
+ import * as openapi from "./audio-api-openapi";
2
+ type schemas = openapi.components["schemas"];
3
+ export { openapi };
4
+ export type AllErrors = schemas["AllErrors"];
5
+ export type IAllErrors = schemas["AllErrors"];
6
+ export type AudioDTO = schemas["AudioDTO"];
7
+ export type IAudioDTO = schemas["AudioDTO"];
8
+ export type AudioMetaInformationDTO = schemas["AudioMetaInformationDTO"];
9
+ export type IAudioMetaInformationDTO = schemas["AudioMetaInformationDTO"];
10
+ export type AudioSummaryDTO = schemas["AudioSummaryDTO"];
11
+ export type IAudioSummaryDTO = schemas["AudioSummaryDTO"];
12
+ export type AudioSummarySearchResultDTO = schemas["AudioSummarySearchResultDTO"];
13
+ export type IAudioSummarySearchResultDTO = schemas["AudioSummarySearchResultDTO"];
14
+ export type AuthorDTO = schemas["AuthorDTO"];
15
+ export type IAuthorDTO = schemas["AuthorDTO"];
16
+ export type ContributorType = schemas["ContributorType"];
17
+ export type IContributorType = schemas["ContributorType"];
18
+ export type CopyrightDTO = schemas["CopyrightDTO"];
19
+ export type ICopyrightDTO = schemas["CopyrightDTO"];
20
+ export type CoverPhotoDTO = schemas["CoverPhotoDTO"];
21
+ export type ICoverPhotoDTO = schemas["CoverPhotoDTO"];
22
+ export type DescriptionDTO = schemas["DescriptionDTO"];
23
+ export type IDescriptionDTO = schemas["DescriptionDTO"];
24
+ export type ErrorBody = schemas["ErrorBody"];
25
+ export type IErrorBody = schemas["ErrorBody"];
26
+ export type LicenseDTO = schemas["LicenseDTO"];
27
+ export type ILicenseDTO = schemas["LicenseDTO"];
28
+ export type ManuscriptDTO = schemas["ManuscriptDTO"];
29
+ export type IManuscriptDTO = schemas["ManuscriptDTO"];
30
+ export type MetaDataAndFileForm = schemas["MetaDataAndFileForm"];
31
+ export type IMetaDataAndFileForm = schemas["MetaDataAndFileForm"];
32
+ export type MetaDataAndOptFileForm = schemas["MetaDataAndOptFileForm"];
33
+ export type IMetaDataAndOptFileForm = schemas["MetaDataAndOptFileForm"];
34
+ export type NewAudioMetaInformationDTO = schemas["NewAudioMetaInformationDTO"];
35
+ export type INewAudioMetaInformationDTO = schemas["NewAudioMetaInformationDTO"];
36
+ export type NewPodcastMetaDTO = schemas["NewPodcastMetaDTO"];
37
+ export type INewPodcastMetaDTO = schemas["NewPodcastMetaDTO"];
38
+ export type NewSeriesDTO = schemas["NewSeriesDTO"];
39
+ export type INewSeriesDTO = schemas["NewSeriesDTO"];
40
+ export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
41
+ export type INotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
42
+ export type PodcastMetaDTO = schemas["PodcastMetaDTO"];
43
+ export type IPodcastMetaDTO = schemas["PodcastMetaDTO"];
44
+ export type SearchParamsDTO = schemas["SearchParamsDTO"];
45
+ export type ISearchParamsDTO = schemas["SearchParamsDTO"];
46
+ export type SeriesDTO = schemas["SeriesDTO"];
47
+ export type ISeriesDTO = schemas["SeriesDTO"];
48
+ export type SeriesSearchParamsDTO = schemas["SeriesSearchParamsDTO"];
49
+ export type ISeriesSearchParamsDTO = schemas["SeriesSearchParamsDTO"];
50
+ export type SeriesSummaryDTO = schemas["SeriesSummaryDTO"];
51
+ export type ISeriesSummaryDTO = schemas["SeriesSummaryDTO"];
52
+ export type SeriesSummarySearchResultDTO = schemas["SeriesSummarySearchResultDTO"];
53
+ export type ISeriesSummarySearchResultDTO = schemas["SeriesSummarySearchResultDTO"];
54
+ export type Sort = schemas["Sort"];
55
+ export type ISort = schemas["Sort"];
56
+ export type TagDTO = schemas["TagDTO"];
57
+ export type ITagDTO = schemas["TagDTO"];
58
+ export type TagsSearchResultDTO = schemas["TagsSearchResultDTO"];
59
+ export type ITagsSearchResultDTO = schemas["TagsSearchResultDTO"];
60
+ export type TitleDTO = schemas["TitleDTO"];
61
+ export type ITitleDTO = schemas["TitleDTO"];
62
+ export type TranscriptionResultDTO = schemas["TranscriptionResultDTO"];
63
+ export type ITranscriptionResultDTO = schemas["TranscriptionResultDTO"];
64
+ export type UpdatedAudioMetaInformationDTO = schemas["UpdatedAudioMetaInformationDTO"];
65
+ export type IUpdatedAudioMetaInformationDTO = schemas["UpdatedAudioMetaInformationDTO"];
66
+ export type ValidationErrorBody = schemas["ValidationErrorBody"];
67
+ export type IValidationErrorBody = schemas["ValidationErrorBody"];
68
+ export type ValidationMessage = schemas["ValidationMessage"];
69
+ export type IValidationMessage = schemas["ValidationMessage"];
@@ -1,16 +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 });
4
- exports.AudioSortEnum = void 0;
5
- var AudioSortEnum;
6
- (function (AudioSortEnum) {
7
- AudioSortEnum["ByRelevanceDesc"] = "-relevance";
8
- AudioSortEnum["ByRelevanceAsc"] = "relevance";
9
- AudioSortEnum["ByTitleDesc"] = "-title";
10
- AudioSortEnum["ByTitleAsc"] = "title";
11
- AudioSortEnum["ByLastUpdatedDesc"] = "-lastUpdated";
12
- AudioSortEnum["ByLastUpdatedAsc"] = "lastUpdated";
13
- AudioSortEnum["ByIdDesc"] = "-id";
14
- AudioSortEnum["ByIdAsc"] = "id";
15
- })(AudioSortEnum || (exports.AudioSortEnum = AudioSortEnum = {}));
26
+ exports.openapi = void 0;
27
+ // This file was generated by OpenApiPlugin, do not edit it manually
28
+ var openapi = __importStar(require("./audio-api-openapi"));
29
+ exports.openapi = openapi;
16
30
  //# sourceMappingURL=audio-api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"audio-api.js","sourceRoot":"","sources":["../audio-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAE3C,IAAY,aASX;AATD,WAAY,aAAa;IACvB,+CAA8B,CAAA;IAC9B,6CAA4B,CAAA;IAC5B,uCAAsB,CAAA;IACtB,qCAAoB,CAAA;IACpB,mDAAkC,CAAA;IAClC,iDAAgC,CAAA;IAChC,iCAAgB,CAAA;IAChB,+BAAc,CAAA;AAChB,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
1
+ {"version":3,"file":"audio-api.js","sourceRoot":"","sources":["../audio-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAoE;AACpE,2DAA+C;AAGtC,0BAAO"}