@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=image-api-openapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-api-openapi.js","sourceRoot":"","sources":["../image-api-openapi.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -1,174 +1,61 @@
1
- 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");
2
- export interface IAuthorDTO {
3
- type: ContributorType;
4
- name: string;
5
- }
6
- export interface ICopyrightDTO {
7
- license: ILicenseDTO;
8
- origin?: string;
9
- creators: IAuthorDTO[];
10
- processors: IAuthorDTO[];
11
- rightsholders: IAuthorDTO[];
12
- validFrom?: string;
13
- validTo?: string;
14
- processed: boolean;
15
- }
16
- export interface IEditorNoteDTO {
17
- timestamp: string;
18
- updatedBy: string;
19
- note: string;
20
- }
21
- export interface IImageAltTextDTO {
22
- alttext: string;
23
- language: string;
24
- }
25
- export interface IImageCaptionDTO {
26
- caption: string;
27
- language: string;
28
- }
29
- export interface IImageDTO {
30
- url: string;
31
- size: number;
32
- contentType: string;
33
- }
34
- export interface IImageDimensionsDTO {
35
- width: number;
36
- height: number;
37
- }
38
- export interface IImageFileDTO {
39
- fileName: string;
40
- size: number;
41
- contentType: string;
42
- imageUrl: string;
43
- dimensions?: IImageDimensionsDTO;
44
- language: string;
45
- }
46
- export interface IImageMetaInformationV2DTO {
47
- id: string;
48
- metaUrl: string;
49
- title: IImageTitleDTO;
50
- alttext: IImageAltTextDTO;
51
- imageUrl: string;
52
- size: number;
53
- contentType: string;
54
- copyright: ICopyrightDTO;
55
- tags: IImageTagDTO;
56
- caption: IImageCaptionDTO;
57
- supportedLanguages: string[];
58
- created: string;
59
- createdBy: string;
60
- modelRelease: string;
61
- editorNotes?: IEditorNoteDTO[];
62
- imageDimensions?: IImageDimensionsDTO;
63
- }
64
- export interface IImageMetaInformationV3DTO {
65
- id: string;
66
- metaUrl: string;
67
- title: IImageTitleDTO;
68
- alttext: IImageAltTextDTO;
69
- copyright: ICopyrightDTO;
70
- tags: IImageTagDTO;
71
- caption: IImageCaptionDTO;
72
- supportedLanguages: string[];
73
- created: string;
74
- createdBy: string;
75
- modelRelease: string;
76
- editorNotes?: IEditorNoteDTO[];
77
- image: IImageFileDTO;
78
- }
79
- export interface IImageMetaSummaryDTO {
80
- id: string;
81
- title: IImageTitleDTO;
82
- contributors: string[];
83
- altText: IImageAltTextDTO;
84
- caption: IImageCaptionDTO;
85
- previewUrl: string;
86
- metaUrl: string;
87
- license: string;
88
- supportedLanguages: string[];
89
- modelRelease?: string;
90
- editorNotes?: string[];
91
- lastUpdated: string;
92
- fileSize: number;
93
- contentType: string;
94
- imageDimensions?: IImageDimensionsDTO;
95
- }
96
- export interface IImageTagDTO {
97
- tags: string[];
98
- language: string;
99
- }
100
- export interface IImageTitleDTO {
101
- title: string;
102
- language: string;
103
- }
104
- export interface ILicenseDTO {
105
- license: string;
106
- description?: string;
107
- url?: string;
108
- }
109
- export interface INewImageMetaInformationV2DTO {
110
- title: string;
111
- alttext?: string;
112
- copyright: ICopyrightDTO;
113
- tags: string[];
114
- caption: string;
115
- language: string;
116
- modelReleased?: string;
117
- }
118
- export interface ISearchParamsDTO {
119
- query?: string;
120
- license?: string;
121
- language?: string;
122
- fallback?: boolean;
123
- minimumSize?: number;
124
- includeCopyrighted?: boolean;
125
- sort?: Sort;
126
- page?: number;
127
- pageSize?: number;
128
- podcastFriendly?: boolean;
129
- scrollId?: string;
130
- modelReleased?: string[];
131
- users?: string[];
132
- }
133
- export interface ISearchResultDTO {
134
- totalCount: number;
135
- page?: number;
136
- pageSize: number;
137
- language: string;
138
- results: IImageMetaSummaryDTO[];
139
- }
140
- export interface ISearchResultV3DTO {
141
- totalCount: number;
142
- page?: number;
143
- pageSize: number;
144
- language: string;
145
- results: IImageMetaInformationV3DTO[];
146
- }
147
- export interface ITagsSearchResultDTO {
148
- totalCount: number;
149
- page: number;
150
- pageSize: number;
151
- language: string;
152
- results: string[];
153
- }
154
- export interface IUpdateImageMetaInformationDTO {
155
- language: string;
156
- title?: string;
157
- alttext: UpdateOrDeleteString;
158
- copyright?: ICopyrightDTO;
159
- tags?: string[];
160
- caption?: string;
161
- modelReleased?: string;
162
- }
163
- export declare enum ImageSortEnum {
164
- ByRelevanceDesc = "-relevance",
165
- ByRelevanceAsc = "relevance",
166
- ByTitleDesc = "-title",
167
- ByTitleAsc = "title",
168
- ByLastUpdatedDesc = "-lastUpdated",
169
- ByLastUpdatedAsc = "lastUpdated",
170
- ByIdDesc = "-id",
171
- ByIdAsc = "id"
172
- }
173
- export type Sort = ImageSortEnum;
174
- export type UpdateOrDeleteString = (null | undefined | string);
1
+ import * as openapi from "./image-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 AuthorDTO = schemas["AuthorDTO"];
7
+ export type IAuthorDTO = schemas["AuthorDTO"];
8
+ export type ContributorType = schemas["ContributorType"];
9
+ export type IContributorType = schemas["ContributorType"];
10
+ export type CopyMetaDataAndFileForm = schemas["CopyMetaDataAndFileForm"];
11
+ export type ICopyMetaDataAndFileForm = schemas["CopyMetaDataAndFileForm"];
12
+ export type CopyrightDTO = schemas["CopyrightDTO"];
13
+ export type ICopyrightDTO = schemas["CopyrightDTO"];
14
+ export type EditorNoteDTO = schemas["EditorNoteDTO"];
15
+ export type IEditorNoteDTO = schemas["EditorNoteDTO"];
16
+ export type ErrorBody = schemas["ErrorBody"];
17
+ export type IErrorBody = schemas["ErrorBody"];
18
+ export type ImageAltTextDTO = schemas["ImageAltTextDTO"];
19
+ export type IImageAltTextDTO = schemas["ImageAltTextDTO"];
20
+ export type ImageCaptionDTO = schemas["ImageCaptionDTO"];
21
+ export type IImageCaptionDTO = schemas["ImageCaptionDTO"];
22
+ export type ImageDimensionsDTO = schemas["ImageDimensionsDTO"];
23
+ export type IImageDimensionsDTO = schemas["ImageDimensionsDTO"];
24
+ export type ImageFileDTO = schemas["ImageFileDTO"];
25
+ export type IImageFileDTO = schemas["ImageFileDTO"];
26
+ export type ImageMetaInformationV2DTO = schemas["ImageMetaInformationV2DTO"];
27
+ export type IImageMetaInformationV2DTO = schemas["ImageMetaInformationV2DTO"];
28
+ export type ImageMetaInformationV3DTO = schemas["ImageMetaInformationV3DTO"];
29
+ export type IImageMetaInformationV3DTO = schemas["ImageMetaInformationV3DTO"];
30
+ export type ImageMetaSummaryDTO = schemas["ImageMetaSummaryDTO"];
31
+ export type IImageMetaSummaryDTO = schemas["ImageMetaSummaryDTO"];
32
+ export type ImageTagDTO = schemas["ImageTagDTO"];
33
+ export type IImageTagDTO = schemas["ImageTagDTO"];
34
+ export type ImageTitleDTO = schemas["ImageTitleDTO"];
35
+ export type IImageTitleDTO = schemas["ImageTitleDTO"];
36
+ export type LicenseDTO = schemas["LicenseDTO"];
37
+ export type ILicenseDTO = schemas["LicenseDTO"];
38
+ export type MetaDataAndFileForm = schemas["MetaDataAndFileForm"];
39
+ export type IMetaDataAndFileForm = schemas["MetaDataAndFileForm"];
40
+ export type NewImageMetaInformationV2DTO = schemas["NewImageMetaInformationV2DTO"];
41
+ export type INewImageMetaInformationV2DTO = schemas["NewImageMetaInformationV2DTO"];
42
+ export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
43
+ export type INotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
44
+ export type SearchParamsDTO = schemas["SearchParamsDTO"];
45
+ export type ISearchParamsDTO = schemas["SearchParamsDTO"];
46
+ export type SearchResultDTO = schemas["SearchResultDTO"];
47
+ export type ISearchResultDTO = schemas["SearchResultDTO"];
48
+ export type SearchResultV3DTO = schemas["SearchResultV3DTO"];
49
+ export type ISearchResultV3DTO = schemas["SearchResultV3DTO"];
50
+ export type Sort = schemas["Sort"];
51
+ export type ISort = schemas["Sort"];
52
+ export type TagsSearchResultDTO = schemas["TagsSearchResultDTO"];
53
+ export type ITagsSearchResultDTO = schemas["TagsSearchResultDTO"];
54
+ export type UpdateImageMetaInformationDTO = schemas["UpdateImageMetaInformationDTO"];
55
+ export type IUpdateImageMetaInformationDTO = schemas["UpdateImageMetaInformationDTO"];
56
+ export type UpdateMetaDataAndFileForm = schemas["UpdateMetaDataAndFileForm"];
57
+ export type IUpdateMetaDataAndFileForm = schemas["UpdateMetaDataAndFileForm"];
58
+ export type ValidationErrorBody = schemas["ValidationErrorBody"];
59
+ export type IValidationErrorBody = schemas["ValidationErrorBody"];
60
+ export type ValidationMessage = schemas["ValidationMessage"];
61
+ 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.ImageSortEnum = void 0;
5
- var ImageSortEnum;
6
- (function (ImageSortEnum) {
7
- ImageSortEnum["ByRelevanceDesc"] = "-relevance";
8
- ImageSortEnum["ByRelevanceAsc"] = "relevance";
9
- ImageSortEnum["ByTitleDesc"] = "-title";
10
- ImageSortEnum["ByTitleAsc"] = "title";
11
- ImageSortEnum["ByLastUpdatedDesc"] = "-lastUpdated";
12
- ImageSortEnum["ByLastUpdatedAsc"] = "lastUpdated";
13
- ImageSortEnum["ByIdDesc"] = "-id";
14
- ImageSortEnum["ByIdAsc"] = "id";
15
- })(ImageSortEnum || (exports.ImageSortEnum = ImageSortEnum = {}));
26
+ exports.openapi = void 0;
27
+ // This file was generated by OpenApiPlugin, do not edit it manually
28
+ var openapi = __importStar(require("./image-api-openapi"));
29
+ exports.openapi = openapi;
16
30
  //# sourceMappingURL=image-api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-api.js","sourceRoot":"","sources":["../image-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAyL3C,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":"image-api.js","sourceRoot":"","sources":["../image-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAoE;AACpE,2DAA+C;AAGtC,0BAAO"}