@ndla/types-backend 0.2.47 → 0.2.49

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.
@@ -52,6 +52,7 @@ export interface IConceptSearchParams {
52
52
  embedResource?: string;
53
53
  embedId?: string;
54
54
  conceptType?: string;
55
+ aggregatePaths: string[];
55
56
  }
56
57
  export interface IConceptSearchResult {
57
58
  totalCount: number;
@@ -59,6 +60,7 @@ export interface IConceptSearchResult {
59
60
  pageSize: number;
60
61
  language: string;
61
62
  results: IConceptSummary[];
63
+ aggregations: IMultiSearchTermsAggregation[];
62
64
  }
63
65
  export interface IConceptSummary {
64
66
  id: number;
@@ -108,6 +110,7 @@ export interface IDraftConceptSearchParams {
108
110
  embedId?: string;
109
111
  responsibleIds: string[];
110
112
  conceptType?: string;
113
+ aggregatePaths: string[];
111
114
  }
112
115
  export interface IDraftCopyright {
113
116
  license?: ILicense;
@@ -146,6 +149,12 @@ export interface ILicense {
146
149
  description?: string;
147
150
  url?: string;
148
151
  }
152
+ export interface IMultiSearchTermsAggregation {
153
+ field: string;
154
+ sumOtherDocCount: number;
155
+ docCountErrorUpperBound: number;
156
+ values: ITermValue[];
157
+ }
149
158
  export interface INewConcept {
150
159
  language: string;
151
160
  title: string;
@@ -180,6 +189,10 @@ export interface ITagsSearchResult {
180
189
  language: string;
181
190
  results: string[];
182
191
  }
192
+ export interface ITermValue {
193
+ value: string;
194
+ count: number;
195
+ }
183
196
  export interface IUpdatedConcept {
184
197
  language: string;
185
198
  title?: string;
@@ -39,6 +39,7 @@ export interface IArticleContent {
39
39
  }
40
40
  export interface IArticleIntroduction {
41
41
  introduction: string;
42
+ htmlIntroduction: string;
42
43
  language: string;
43
44
  }
44
45
  export interface IArticleMetaDescription {
@@ -72,6 +73,7 @@ export interface IArticleTag {
72
73
  }
73
74
  export interface IArticleTitle {
74
75
  title: string;
76
+ htmlTitle: string;
75
77
  language: string;
76
78
  }
77
79
  export interface IAuthor {
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.0.2"
29
29
  },
30
- "version": "0.2.47"
30
+ "version": "0.2.49"
31
31
  }