@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":"concept-api-openapi.js","sourceRoot":"","sources":["../concept-api-openapi.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
package/build/concept-api.d.ts
CHANGED
|
@@ -1,221 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export type
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
embedId?: string;
|
|
71
|
-
conceptType?: string;
|
|
72
|
-
aggregatePaths?: string[];
|
|
73
|
-
}
|
|
74
|
-
export interface IConceptSearchResultDTO {
|
|
75
|
-
totalCount: number;
|
|
76
|
-
page?: number;
|
|
77
|
-
pageSize: number;
|
|
78
|
-
language: string;
|
|
79
|
-
results: IConceptSummaryDTO[];
|
|
80
|
-
aggregations: IMultiSearchTermsAggregationDTO[];
|
|
81
|
-
}
|
|
82
|
-
export interface IConceptSummaryDTO {
|
|
83
|
-
id: number;
|
|
84
|
-
title: IConceptTitleDTO;
|
|
85
|
-
content: IConceptContent;
|
|
86
|
-
metaImage: IConceptMetaImageDTO;
|
|
87
|
-
tags?: IConceptTagsDTO;
|
|
88
|
-
supportedLanguages: string[];
|
|
89
|
-
lastUpdated: string;
|
|
90
|
-
created: string;
|
|
91
|
-
status: IStatusDTO;
|
|
92
|
-
updatedBy: string[];
|
|
93
|
-
license?: string;
|
|
94
|
-
copyright?: IDraftCopyrightDTO;
|
|
95
|
-
visualElement?: IVisualElementDTO;
|
|
96
|
-
source?: string;
|
|
97
|
-
responsible?: IConceptResponsibleDTO;
|
|
98
|
-
conceptType: string;
|
|
99
|
-
glossData?: IGlossDataDTO;
|
|
100
|
-
conceptTypeName: string;
|
|
101
|
-
}
|
|
102
|
-
export interface IConceptTagsDTO {
|
|
103
|
-
tags: string[];
|
|
104
|
-
language: string;
|
|
105
|
-
}
|
|
106
|
-
export interface IConceptTitleDTO {
|
|
107
|
-
title: string;
|
|
108
|
-
language: string;
|
|
109
|
-
}
|
|
110
|
-
export interface IDraftConceptSearchParamsDTO {
|
|
111
|
-
query?: string;
|
|
112
|
-
language?: string;
|
|
113
|
-
page?: number;
|
|
114
|
-
pageSize?: number;
|
|
115
|
-
ids?: number[];
|
|
116
|
-
sort?: Sort;
|
|
117
|
-
fallback?: boolean;
|
|
118
|
-
scrollId?: string;
|
|
119
|
-
tags?: string[];
|
|
120
|
-
status?: string[];
|
|
121
|
-
users?: string[];
|
|
122
|
-
embedResource?: string[];
|
|
123
|
-
embedId?: string;
|
|
124
|
-
responsibleIds?: string[];
|
|
125
|
-
conceptType?: string;
|
|
126
|
-
aggregatePaths?: string[];
|
|
127
|
-
}
|
|
128
|
-
export interface IDraftCopyrightDTO {
|
|
129
|
-
license?: ILicenseDTO;
|
|
130
|
-
origin?: string;
|
|
131
|
-
creators: IAuthorDTO[];
|
|
132
|
-
processors: IAuthorDTO[];
|
|
133
|
-
rightsholders: IAuthorDTO[];
|
|
134
|
-
validFrom?: string;
|
|
135
|
-
validTo?: string;
|
|
136
|
-
processed: boolean;
|
|
137
|
-
}
|
|
138
|
-
export interface IEditorNoteDTO {
|
|
139
|
-
note: string;
|
|
140
|
-
updatedBy: string;
|
|
141
|
-
status: IStatusDTO;
|
|
142
|
-
timestamp: string;
|
|
143
|
-
}
|
|
144
|
-
export interface IGlossDataDTO {
|
|
145
|
-
gloss: string;
|
|
146
|
-
wordClass: string;
|
|
147
|
-
originalLanguage: string;
|
|
148
|
-
transcriptions: {
|
|
149
|
-
[key: string]: string;
|
|
150
|
-
};
|
|
151
|
-
examples: IGlossExampleDTO[][];
|
|
152
|
-
}
|
|
153
|
-
export interface IGlossExampleDTO {
|
|
154
|
-
example: string;
|
|
155
|
-
language: string;
|
|
156
|
-
transcriptions: {
|
|
157
|
-
[key: string]: string;
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
export interface ILicenseDTO {
|
|
161
|
-
license: string;
|
|
162
|
-
description?: string;
|
|
163
|
-
url?: string;
|
|
164
|
-
}
|
|
165
|
-
export interface IMultiSearchTermsAggregationDTO {
|
|
166
|
-
field: string;
|
|
167
|
-
sumOtherDocCount: number;
|
|
168
|
-
docCountErrorUpperBound: number;
|
|
169
|
-
values: ITermValueDTO[];
|
|
170
|
-
}
|
|
171
|
-
export interface INewConceptDTO {
|
|
172
|
-
language: string;
|
|
173
|
-
title: string;
|
|
174
|
-
content?: string;
|
|
175
|
-
copyright?: IDraftCopyrightDTO;
|
|
176
|
-
metaImage?: INewConceptMetaImageDTO;
|
|
177
|
-
tags?: string[];
|
|
178
|
-
visualElement?: string;
|
|
179
|
-
responsibleId?: string;
|
|
180
|
-
conceptType: string;
|
|
181
|
-
glossData?: IGlossDataDTO;
|
|
182
|
-
}
|
|
183
|
-
export interface INewConceptMetaImageDTO {
|
|
184
|
-
id: string;
|
|
185
|
-
alt: string;
|
|
186
|
-
}
|
|
187
|
-
export interface IStatusDTO {
|
|
188
|
-
current: string;
|
|
189
|
-
other: string[];
|
|
190
|
-
}
|
|
191
|
-
export interface ITagsSearchResultDTO {
|
|
192
|
-
totalCount: number;
|
|
193
|
-
page: number;
|
|
194
|
-
pageSize: number;
|
|
195
|
-
language: string;
|
|
196
|
-
results: string[];
|
|
197
|
-
}
|
|
198
|
-
export interface ITermValueDTO {
|
|
199
|
-
value: string;
|
|
200
|
-
count: number;
|
|
201
|
-
}
|
|
202
|
-
export interface IUpdatedConceptDTO {
|
|
203
|
-
language: string;
|
|
204
|
-
title?: string;
|
|
205
|
-
content?: string;
|
|
206
|
-
metaImage: UpdateOrDeleteNewConceptMetaImageDTO;
|
|
207
|
-
copyright?: IDraftCopyrightDTO;
|
|
208
|
-
tags?: string[];
|
|
209
|
-
status?: string;
|
|
210
|
-
visualElement?: string;
|
|
211
|
-
responsibleId: UpdateOrDeleteString;
|
|
212
|
-
conceptType?: string;
|
|
213
|
-
glossData?: IGlossDataDTO;
|
|
214
|
-
}
|
|
215
|
-
export interface IVisualElementDTO {
|
|
216
|
-
visualElement: string;
|
|
217
|
-
language: string;
|
|
218
|
-
}
|
|
219
|
-
export type Sort = ConceptSortEnum;
|
|
220
|
-
export type UpdateOrDeleteNewConceptMetaImageDTO = (null | undefined | INewConceptMetaImageDTO);
|
|
221
|
-
export type UpdateOrDeleteString = (null | undefined | string);
|
|
1
|
+
import * as openapi from "./concept-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 ConceptContent = schemas["ConceptContent"];
|
|
9
|
+
export type IConceptContent = schemas["ConceptContent"];
|
|
10
|
+
export type ConceptDTO = schemas["ConceptDTO"];
|
|
11
|
+
export type IConceptDTO = schemas["ConceptDTO"];
|
|
12
|
+
export type ConceptMetaImageDTO = schemas["ConceptMetaImageDTO"];
|
|
13
|
+
export type IConceptMetaImageDTO = schemas["ConceptMetaImageDTO"];
|
|
14
|
+
export type ConceptResponsibleDTO = schemas["ConceptResponsibleDTO"];
|
|
15
|
+
export type IConceptResponsibleDTO = schemas["ConceptResponsibleDTO"];
|
|
16
|
+
export type ConceptSearchParamsDTO = schemas["ConceptSearchParamsDTO"];
|
|
17
|
+
export type IConceptSearchParamsDTO = schemas["ConceptSearchParamsDTO"];
|
|
18
|
+
export type ConceptSearchResultDTO = schemas["ConceptSearchResultDTO"];
|
|
19
|
+
export type IConceptSearchResultDTO = schemas["ConceptSearchResultDTO"];
|
|
20
|
+
export type ConceptSummaryDTO = schemas["ConceptSummaryDTO"];
|
|
21
|
+
export type IConceptSummaryDTO = schemas["ConceptSummaryDTO"];
|
|
22
|
+
export type ConceptTagsDTO = schemas["ConceptTagsDTO"];
|
|
23
|
+
export type IConceptTagsDTO = schemas["ConceptTagsDTO"];
|
|
24
|
+
export type ConceptTitleDTO = schemas["ConceptTitleDTO"];
|
|
25
|
+
export type IConceptTitleDTO = schemas["ConceptTitleDTO"];
|
|
26
|
+
export type ContributorType = schemas["ContributorType"];
|
|
27
|
+
export type IContributorType = schemas["ContributorType"];
|
|
28
|
+
export type DraftConceptSearchParamsDTO = schemas["DraftConceptSearchParamsDTO"];
|
|
29
|
+
export type IDraftConceptSearchParamsDTO = schemas["DraftConceptSearchParamsDTO"];
|
|
30
|
+
export type DraftCopyrightDTO = schemas["DraftCopyrightDTO"];
|
|
31
|
+
export type IDraftCopyrightDTO = schemas["DraftCopyrightDTO"];
|
|
32
|
+
export type EditorNoteDTO = schemas["EditorNoteDTO"];
|
|
33
|
+
export type IEditorNoteDTO = schemas["EditorNoteDTO"];
|
|
34
|
+
export type ErrorBody = schemas["ErrorBody"];
|
|
35
|
+
export type IErrorBody = schemas["ErrorBody"];
|
|
36
|
+
export type GlossDataDTO = schemas["GlossDataDTO"];
|
|
37
|
+
export type IGlossDataDTO = schemas["GlossDataDTO"];
|
|
38
|
+
export type GlossExampleDTO = schemas["GlossExampleDTO"];
|
|
39
|
+
export type IGlossExampleDTO = schemas["GlossExampleDTO"];
|
|
40
|
+
export type LicenseDTO = schemas["LicenseDTO"];
|
|
41
|
+
export type ILicenseDTO = schemas["LicenseDTO"];
|
|
42
|
+
export type Map_List_String = schemas["Map_List_String"];
|
|
43
|
+
export type IMap_List_String = schemas["Map_List_String"];
|
|
44
|
+
export type Map_String = schemas["Map_String"];
|
|
45
|
+
export type IMap_String = schemas["Map_String"];
|
|
46
|
+
export type MultiSearchTermsAggregationDTO = schemas["MultiSearchTermsAggregationDTO"];
|
|
47
|
+
export type IMultiSearchTermsAggregationDTO = schemas["MultiSearchTermsAggregationDTO"];
|
|
48
|
+
export type NewConceptDTO = schemas["NewConceptDTO"];
|
|
49
|
+
export type INewConceptDTO = schemas["NewConceptDTO"];
|
|
50
|
+
export type NewConceptMetaImageDTO = schemas["NewConceptMetaImageDTO"];
|
|
51
|
+
export type INewConceptMetaImageDTO = schemas["NewConceptMetaImageDTO"];
|
|
52
|
+
export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
53
|
+
export type INotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
54
|
+
export type Sort = schemas["Sort"];
|
|
55
|
+
export type ISort = schemas["Sort"];
|
|
56
|
+
export type StatusDTO = schemas["StatusDTO"];
|
|
57
|
+
export type IStatusDTO = schemas["StatusDTO"];
|
|
58
|
+
export type TagsSearchResultDTO = schemas["TagsSearchResultDTO"];
|
|
59
|
+
export type ITagsSearchResultDTO = schemas["TagsSearchResultDTO"];
|
|
60
|
+
export type TermValueDTO = schemas["TermValueDTO"];
|
|
61
|
+
export type ITermValueDTO = schemas["TermValueDTO"];
|
|
62
|
+
export type UpdatedConceptDTO = schemas["UpdatedConceptDTO"];
|
|
63
|
+
export type IUpdatedConceptDTO = schemas["UpdatedConceptDTO"];
|
|
64
|
+
export type ValidationErrorBody = schemas["ValidationErrorBody"];
|
|
65
|
+
export type IValidationErrorBody = schemas["ValidationErrorBody"];
|
|
66
|
+
export type ValidationMessage = schemas["ValidationMessage"];
|
|
67
|
+
export type IValidationMessage = schemas["ValidationMessage"];
|
|
68
|
+
export type VisualElementDTO = schemas["VisualElementDTO"];
|
|
69
|
+
export type IVisualElementDTO = schemas["VisualElementDTO"];
|
package/build/concept-api.js
CHANGED
|
@@ -1,24 +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
|
-
ConceptSortEnum["ByRelevanceAsc"] = "relevance";
|
|
9
|
-
ConceptSortEnum["ByTitleDesc"] = "-title";
|
|
10
|
-
ConceptSortEnum["ByTitleAsc"] = "title";
|
|
11
|
-
ConceptSortEnum["ByLastUpdatedDesc"] = "-lastUpdated";
|
|
12
|
-
ConceptSortEnum["ByLastUpdatedAsc"] = "lastUpdated";
|
|
13
|
-
ConceptSortEnum["ByIdDesc"] = "-id";
|
|
14
|
-
ConceptSortEnum["ByIdAsc"] = "id";
|
|
15
|
-
ConceptSortEnum["ByResponsibleLastUpdatedDesc"] = "-responsibleLastUpdated";
|
|
16
|
-
ConceptSortEnum["ByResponsibleLastUpdatedAsc"] = "responsibleLastUpdated";
|
|
17
|
-
ConceptSortEnum["ByStatusAsc"] = "status";
|
|
18
|
-
ConceptSortEnum["ByStatusDesc"] = "-status";
|
|
19
|
-
ConceptSortEnum["BySubjectAsc"] = "subject";
|
|
20
|
-
ConceptSortEnum["BySubjectDesc"] = "-subject";
|
|
21
|
-
ConceptSortEnum["ByConceptTypeAsc"] = "conceptType";
|
|
22
|
-
ConceptSortEnum["ByConceptTypeDesc"] = "-conceptType";
|
|
23
|
-
})(ConceptSortEnum || (exports.ConceptSortEnum = ConceptSortEnum = {}));
|
|
26
|
+
exports.openapi = void 0;
|
|
27
|
+
// This file was generated by OpenApiPlugin, do not edit it manually
|
|
28
|
+
var openapi = __importStar(require("./concept-api-openapi"));
|
|
29
|
+
exports.openapi = openapi;
|
|
24
30
|
//# sourceMappingURL=concept-api.js.map
|
package/build/concept-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concept-api.js","sourceRoot":"","sources":["../concept-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"concept-api.js","sourceRoot":"","sources":["../concept-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAoE;AACpE,6DAAiD;AAGxC,0BAAO"}
|