@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.
- package/build/article-api-openapi.d.ts +1092 -0
- package/build/article-api-openapi.js +7 -0
- package/build/article-api-openapi.js.map +1 -0
- package/build/article-api.d.ts +57 -156
- package/build/article-api.js +27 -13
- package/build/article-api.js.map +1 -1
- package/build/audio-api-openapi.d.ts +2153 -0
- package/build/audio-api-openapi.js +7 -0
- package/build/audio-api-openapi.js.map +1 -0
- package/build/audio-api.d.ts +69 -190
- package/build/audio-api.js +27 -13
- package/build/audio-api.js.map +1 -1
- package/build/concept-api-openapi.d.ts +1682 -0
- package/build/concept-api-openapi.js +7 -0
- package/build/concept-api-openapi.js.map +1 -0
- package/build/concept-api.d.ts +69 -221
- package/build/concept-api.js +27 -21
- package/build/concept-api.js.map +1 -1
- package/build/draft-api-openapi.d.ts +2893 -0
- package/build/draft-api-openapi.js +7 -0
- package/build/draft-api-openapi.js.map +1 -0
- package/build/draft-api.d.ts +117 -292
- package/build/draft-api.js +27 -13
- package/build/draft-api.js.map +1 -1
- package/build/frontpage-api-openapi.d.ts +800 -0
- package/build/frontpage-api-openapi.js +7 -0
- package/build/frontpage-api-openapi.js.map +1 -0
- package/build/frontpage-api.d.ts +53 -121
- package/build/frontpage-api.js +27 -1
- package/build/frontpage-api.js.map +1 -1
- package/build/image-api-openapi.d.ts +2192 -0
- package/build/image-api-openapi.js +7 -0
- package/build/image-api-openapi.js.map +1 -0
- package/build/image-api.d.ts +61 -174
- package/build/image-api.js +27 -13
- package/build/image-api.js.map +1 -1
- package/build/learningpath-api-openapi.d.ts +2671 -0
- package/build/learningpath-api-openapi.js +7 -0
- package/build/learningpath-api-openapi.js.map +1 -0
- package/build/learningpath-api.d.ts +71 -143
- package/build/learningpath-api.js +27 -1
- package/build/learningpath-api.js.map +1 -1
- package/build/myndla-api-openapi.d.ts +2718 -0
- package/build/myndla-api-openapi.js +7 -0
- package/build/myndla-api-openapi.js.map +1 -0
- package/build/myndla-api.d.ts +69 -125
- package/build/myndla-api.js +27 -1
- package/build/myndla-api.js.map +1 -1
- package/build/oembed-proxy-openapi.d.ts +249 -0
- package/build/oembed-proxy-openapi.js +7 -0
- package/build/oembed-proxy-openapi.js.map +1 -0
- package/build/oembed-proxy.d.ts +15 -0
- package/build/oembed-proxy.js +30 -0
- package/build/oembed-proxy.js.map +1 -0
- package/build/search-api-openapi.d.ts +1525 -0
- package/build/search-api-openapi.js +7 -0
- package/build/search-api-openapi.js.map +1 -0
- package/build/search-api.d.ts +121 -422
- package/build/search-api.js +27 -33
- package/build/search-api.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-api-openapi.js","sourceRoot":"","sources":["../image-api-openapi.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
package/build/image-api.d.ts
CHANGED
|
@@ -1,174 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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"];
|
package/build/image-api.js
CHANGED
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
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.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
package/build/image-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-api.js","sourceRoot":"","sources":["../image-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image-api.js","sourceRoot":"","sources":["../image-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAoE;AACpE,2DAA+C;AAGtC,0BAAO"}
|