@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=article-api-openapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"article-api-openapi.js","sourceRoot":"","sources":["../article-api-openapi.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -1,156 +1,57 @@
1
- export declare enum ArticleSortEnum {
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 Availability = ("everyone" | "teacher");
12
- 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");
13
- export interface IArticleContentV2DTO {
14
- content: string;
15
- language: string;
16
- }
17
- export interface IArticleDumpDTO {
18
- totalCount: number;
19
- page: number;
20
- pageSize: number;
21
- language: string;
22
- results: IArticleV2DTO[];
23
- }
24
- export interface IArticleIdsDTO {
25
- articleId: number;
26
- externalIds: string[];
27
- }
28
- export interface IArticleIntroductionDTO {
29
- introduction: string;
30
- htmlIntroduction: string;
31
- language: string;
32
- }
33
- export interface IArticleMetaDescriptionDTO {
34
- metaDescription: string;
35
- language: string;
36
- }
37
- export interface IArticleMetaImageDTO {
38
- url: string;
39
- alt: string;
40
- language: string;
41
- }
42
- export interface IArticleSearchParamsDTO {
43
- query?: string;
44
- language?: string;
45
- license?: string;
46
- page?: number;
47
- pageSize?: number;
48
- ids?: number[];
49
- articleTypes?: string[];
50
- sort?: Sort;
51
- fallback?: boolean;
52
- scrollId?: string;
53
- grepCodes?: string[];
54
- }
55
- export interface IArticleSummaryV2DTO {
56
- id: number;
57
- title: IArticleTitleDTO;
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"];
@@ -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.ArticleSortEnum = void 0;
5
- var ArticleSortEnum;
6
- (function (ArticleSortEnum) {
7
- ArticleSortEnum["ByRelevanceDesc"] = "-relevance";
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
@@ -1 +1 @@
1
- {"version":3,"file":"article-api.js","sourceRoot":"","sources":["../article-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAE3C,IAAY,eASX;AATD,WAAY,eAAe;IACzB,iDAA8B,CAAA;IAC9B,+CAA4B,CAAA;IAC5B,yCAAsB,CAAA;IACtB,uCAAoB,CAAA;IACpB,qDAAkC,CAAA;IAClC,mDAAgC,CAAA;IAChC,mCAAgB,CAAA;IAChB,iCAAc,CAAA;AAChB,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B"}
1
+ {"version":3,"file":"article-api.js","sourceRoot":"","sources":["../article-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAoE;AACpE,6DAAiD;AAGxC,0BAAO"}