@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":"article-api-openapi.js","sourceRoot":"","sources":["../article-api-openapi.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
package/build/article-api.d.ts
CHANGED
|
@@ -1,156 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type
|
|
12
|
-
export type
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
export
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
visualElement?: IVisualElementDTO;
|
|
59
|
-
introduction?: IArticleIntroductionDTO;
|
|
60
|
-
metaDescription?: IArticleMetaDescriptionDTO;
|
|
61
|
-
metaImage?: IArticleMetaImageDTO;
|
|
62
|
-
url: string;
|
|
63
|
-
license: string;
|
|
64
|
-
articleType: string;
|
|
65
|
-
lastUpdated: string;
|
|
66
|
-
supportedLanguages: string[];
|
|
67
|
-
grepCodes: string[];
|
|
68
|
-
availability: string;
|
|
69
|
-
}
|
|
70
|
-
export interface IArticleTagDTO {
|
|
71
|
-
tags: string[];
|
|
72
|
-
language: string;
|
|
73
|
-
}
|
|
74
|
-
export interface IArticleTitleDTO {
|
|
75
|
-
title: string;
|
|
76
|
-
htmlTitle: string;
|
|
77
|
-
language: string;
|
|
78
|
-
}
|
|
79
|
-
export interface IArticleV2DTO {
|
|
80
|
-
id: number;
|
|
81
|
-
oldNdlaUrl?: string;
|
|
82
|
-
revision: number;
|
|
83
|
-
title: IArticleTitleDTO;
|
|
84
|
-
content: IArticleContentV2DTO;
|
|
85
|
-
copyright: ICopyrightDTO;
|
|
86
|
-
tags: IArticleTagDTO;
|
|
87
|
-
requiredLibraries: IRequiredLibraryDTO[];
|
|
88
|
-
visualElement?: IVisualElementDTO;
|
|
89
|
-
metaImage?: IArticleMetaImageDTO;
|
|
90
|
-
introduction?: IArticleIntroductionDTO;
|
|
91
|
-
metaDescription: IArticleMetaDescriptionDTO;
|
|
92
|
-
created: string;
|
|
93
|
-
updated: string;
|
|
94
|
-
updatedBy: string;
|
|
95
|
-
published: string;
|
|
96
|
-
articleType: string;
|
|
97
|
-
supportedLanguages: string[];
|
|
98
|
-
grepCodes: string[];
|
|
99
|
-
conceptIds: number[];
|
|
100
|
-
availability: string;
|
|
101
|
-
relatedContent: (IRelatedContentLinkDTO | number)[];
|
|
102
|
-
revisionDate?: string;
|
|
103
|
-
slug?: string;
|
|
104
|
-
disclaimer?: IDisclaimerDTO;
|
|
105
|
-
}
|
|
106
|
-
export interface IAuthorDTO {
|
|
107
|
-
type: ContributorType;
|
|
108
|
-
name: string;
|
|
109
|
-
}
|
|
110
|
-
export interface ICopyrightDTO {
|
|
111
|
-
license: ILicenseDTO;
|
|
112
|
-
origin?: string;
|
|
113
|
-
creators: IAuthorDTO[];
|
|
114
|
-
processors: IAuthorDTO[];
|
|
115
|
-
rightsholders: IAuthorDTO[];
|
|
116
|
-
validFrom?: string;
|
|
117
|
-
validTo?: string;
|
|
118
|
-
processed: boolean;
|
|
119
|
-
}
|
|
120
|
-
export interface IDisclaimerDTO {
|
|
121
|
-
disclaimer: string;
|
|
122
|
-
language: string;
|
|
123
|
-
}
|
|
124
|
-
export interface ILicenseDTO {
|
|
125
|
-
license: string;
|
|
126
|
-
description?: string;
|
|
127
|
-
url?: string;
|
|
128
|
-
}
|
|
129
|
-
export interface IRelatedContentLinkDTO {
|
|
130
|
-
title: string;
|
|
131
|
-
url: string;
|
|
132
|
-
}
|
|
133
|
-
export interface IRequiredLibraryDTO {
|
|
134
|
-
mediaType: string;
|
|
135
|
-
name: string;
|
|
136
|
-
url: string;
|
|
137
|
-
}
|
|
138
|
-
export interface ISearchResultV2DTO {
|
|
139
|
-
totalCount: number;
|
|
140
|
-
page?: number;
|
|
141
|
-
pageSize: number;
|
|
142
|
-
language: string;
|
|
143
|
-
results: IArticleSummaryV2DTO[];
|
|
144
|
-
}
|
|
145
|
-
export interface ITagsSearchResultDTO {
|
|
146
|
-
totalCount: number;
|
|
147
|
-
page: number;
|
|
148
|
-
pageSize: number;
|
|
149
|
-
language: string;
|
|
150
|
-
results: string[];
|
|
151
|
-
}
|
|
152
|
-
export interface IVisualElementDTO {
|
|
153
|
-
visualElement: string;
|
|
154
|
-
language: string;
|
|
155
|
-
}
|
|
156
|
-
export type Sort = ArticleSortEnum;
|
|
1
|
+
import * as openapi from "./article-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 ArticleContentV2DTO = schemas["ArticleContentV2DTO"];
|
|
7
|
+
export type IArticleContentV2DTO = schemas["ArticleContentV2DTO"];
|
|
8
|
+
export type ArticleIdV2DTO = schemas["ArticleIdV2DTO"];
|
|
9
|
+
export type IArticleIdV2DTO = schemas["ArticleIdV2DTO"];
|
|
10
|
+
export type ArticleIdsDTO = schemas["ArticleIdsDTO"];
|
|
11
|
+
export type IArticleIdsDTO = schemas["ArticleIdsDTO"];
|
|
12
|
+
export type ArticleIntroductionDTO = schemas["ArticleIntroductionDTO"];
|
|
13
|
+
export type IArticleIntroductionDTO = schemas["ArticleIntroductionDTO"];
|
|
14
|
+
export type ArticleMetaDescriptionDTO = schemas["ArticleMetaDescriptionDTO"];
|
|
15
|
+
export type IArticleMetaDescriptionDTO = schemas["ArticleMetaDescriptionDTO"];
|
|
16
|
+
export type ArticleMetaImageDTO = schemas["ArticleMetaImageDTO"];
|
|
17
|
+
export type IArticleMetaImageDTO = schemas["ArticleMetaImageDTO"];
|
|
18
|
+
export type ArticleSearchParamsDTO = schemas["ArticleSearchParamsDTO"];
|
|
19
|
+
export type IArticleSearchParamsDTO = schemas["ArticleSearchParamsDTO"];
|
|
20
|
+
export type ArticleSummaryV2DTO = schemas["ArticleSummaryV2DTO"];
|
|
21
|
+
export type IArticleSummaryV2DTO = schemas["ArticleSummaryV2DTO"];
|
|
22
|
+
export type ArticleTagDTO = schemas["ArticleTagDTO"];
|
|
23
|
+
export type IArticleTagDTO = schemas["ArticleTagDTO"];
|
|
24
|
+
export type ArticleTitleDTO = schemas["ArticleTitleDTO"];
|
|
25
|
+
export type IArticleTitleDTO = schemas["ArticleTitleDTO"];
|
|
26
|
+
export type ArticleV2DTO = schemas["ArticleV2DTO"];
|
|
27
|
+
export type IArticleV2DTO = schemas["ArticleV2DTO"];
|
|
28
|
+
export type AuthorDTO = schemas["AuthorDTO"];
|
|
29
|
+
export type IAuthorDTO = schemas["AuthorDTO"];
|
|
30
|
+
export type ContributorType = schemas["ContributorType"];
|
|
31
|
+
export type IContributorType = schemas["ContributorType"];
|
|
32
|
+
export type CopyrightDTO = schemas["CopyrightDTO"];
|
|
33
|
+
export type ICopyrightDTO = schemas["CopyrightDTO"];
|
|
34
|
+
export type DisclaimerDTO = schemas["DisclaimerDTO"];
|
|
35
|
+
export type IDisclaimerDTO = schemas["DisclaimerDTO"];
|
|
36
|
+
export type ErrorBody = schemas["ErrorBody"];
|
|
37
|
+
export type IErrorBody = schemas["ErrorBody"];
|
|
38
|
+
export type LicenseDTO = schemas["LicenseDTO"];
|
|
39
|
+
export type ILicenseDTO = schemas["LicenseDTO"];
|
|
40
|
+
export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
41
|
+
export type INotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
42
|
+
export type RelatedContentLinkDTO = schemas["RelatedContentLinkDTO"];
|
|
43
|
+
export type IRelatedContentLinkDTO = schemas["RelatedContentLinkDTO"];
|
|
44
|
+
export type RequiredLibraryDTO = schemas["RequiredLibraryDTO"];
|
|
45
|
+
export type IRequiredLibraryDTO = schemas["RequiredLibraryDTO"];
|
|
46
|
+
export type SearchResultV2DTO = schemas["SearchResultV2DTO"];
|
|
47
|
+
export type ISearchResultV2DTO = schemas["SearchResultV2DTO"];
|
|
48
|
+
export type Sort = schemas["Sort"];
|
|
49
|
+
export type ISort = schemas["Sort"];
|
|
50
|
+
export type TagsSearchResultDTO = schemas["TagsSearchResultDTO"];
|
|
51
|
+
export type ITagsSearchResultDTO = schemas["TagsSearchResultDTO"];
|
|
52
|
+
export type ValidationErrorBody = schemas["ValidationErrorBody"];
|
|
53
|
+
export type IValidationErrorBody = schemas["ValidationErrorBody"];
|
|
54
|
+
export type ValidationMessage = schemas["ValidationMessage"];
|
|
55
|
+
export type IValidationMessage = schemas["ValidationMessage"];
|
|
56
|
+
export type VisualElementDTO = schemas["VisualElementDTO"];
|
|
57
|
+
export type IVisualElementDTO = schemas["VisualElementDTO"];
|
package/build/article-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
|
-
ArticleSortEnum["ByRelevanceAsc"] = "relevance";
|
|
9
|
-
ArticleSortEnum["ByTitleDesc"] = "-title";
|
|
10
|
-
ArticleSortEnum["ByTitleAsc"] = "title";
|
|
11
|
-
ArticleSortEnum["ByLastUpdatedDesc"] = "-lastUpdated";
|
|
12
|
-
ArticleSortEnum["ByLastUpdatedAsc"] = "lastUpdated";
|
|
13
|
-
ArticleSortEnum["ByIdDesc"] = "-id";
|
|
14
|
-
ArticleSortEnum["ByIdAsc"] = "id";
|
|
15
|
-
})(ArticleSortEnum || (exports.ArticleSortEnum = ArticleSortEnum = {}));
|
|
26
|
+
exports.openapi = void 0;
|
|
27
|
+
// This file was generated by OpenApiPlugin, do not edit it manually
|
|
28
|
+
var openapi = __importStar(require("./article-api-openapi"));
|
|
29
|
+
exports.openapi = openapi;
|
|
16
30
|
//# sourceMappingURL=article-api.js.map
|
package/build/article-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"article-api.js","sourceRoot":"","sources":["../article-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"article-api.js","sourceRoot":"","sources":["../article-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAoE;AACpE,6DAAiD;AAGxC,0BAAO"}
|