@c-rex/interfaces 0.1.8 → 0.1.9

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/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { LogLevelType, LogCategoriesType, ResultViewStyles, ResultTypes, articlePageLayoutType, FilesExtensions, WildCardType } from '@c-rex/types';
1
+ import { LogLevelType, LogCategoriesType, ResultViewStyles, ResultTypes, articlePageLayoutType, FilesExtensions, WildCardType, DocumentsType, articleInfoItemType } from '@c-rex/types';
2
2
 
3
3
  interface DefaultCrexDirectories extends idShortID {
4
4
  labels: Labels[];
@@ -171,14 +171,7 @@ interface informationUnitsResponseItem {
171
171
  localeType: string;
172
172
  link: string;
173
173
  disabled: boolean;
174
- filesToOpen: {
175
- format: string;
176
- link: string;
177
- }[];
178
- filesToDownload: {
179
- format: string;
180
- link: string;
181
- }[];
174
+ files: DocumentsType;
182
175
  }
183
176
  interface informationUnitsResponse {
184
177
  items: informationUnitsResponseItem[];
@@ -199,7 +192,7 @@ interface TreeOfContent {
199
192
  active: boolean;
200
193
  children: TreeOfContent[];
201
194
  }
202
- interface SidebarAvailableVersionsInterface {
195
+ interface AvailableVersionsInterface {
203
196
  shortId: string;
204
197
  active: boolean;
205
198
  lang: string;
@@ -232,4 +225,24 @@ interface LanguageAndCountries {
232
225
  value: string;
233
226
  }
234
227
 
235
- export type { AutocompleteSuggestion, ClassInterface, ConfigInterface, DefaultCrexDirectories, DefaultCrexObject, DefaultCrexRenditions, DefaultPageInfo, DefaultRequest, DefaultResponse, DirectoryNodes, DirectoryNodesResponse, DocumentTypesItem, DocumentTypesResponse, Filters, Labels, LanguageAndCountries, Link, OIDCInterface, SidebarAvailableVersionsInterface, Tags, TopicsRequestItem, TopicsResponseItem, TreeOfContent, idShortID, informationUnitsItems, informationUnitsRenditions, informationUnitsResponse, informationUnitsResponseItem, logInfo };
228
+ interface CollectionContext {
229
+ id: string;
230
+ informationUnitsItem: informationUnitsItems;
231
+ rootNode: DirectoryNodes;
232
+ }
233
+ interface CollectionResult {
234
+ metaTags: {
235
+ name: string;
236
+ content: string;
237
+ }[];
238
+ articleHtml: string;
239
+ document: informationUnitsItems;
240
+ article: informationUnitsItems;
241
+ attachments?: DocumentsType;
242
+ articleInfo?: articleInfoItemType[];
243
+ documentInfo?: articleInfoItemType[];
244
+ rootNode: DirectoryNodes;
245
+ availableVersions: informationUnitsResponseItem[];
246
+ }
247
+
248
+ export type { AutocompleteSuggestion, AvailableVersionsInterface, ClassInterface, CollectionContext, CollectionResult, ConfigInterface, DefaultCrexDirectories, DefaultCrexObject, DefaultCrexRenditions, DefaultPageInfo, DefaultRequest, DefaultResponse, DirectoryNodes, DirectoryNodesResponse, DocumentTypesItem, DocumentTypesResponse, Filters, Labels, LanguageAndCountries, Link, OIDCInterface, Tags, TopicsRequestItem, TopicsResponseItem, TreeOfContent, idShortID, informationUnitsItems, informationUnitsRenditions, informationUnitsResponse, informationUnitsResponseItem, logInfo };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { LogLevelType, LogCategoriesType, ResultViewStyles, ResultTypes, articlePageLayoutType, FilesExtensions, WildCardType } from '@c-rex/types';
1
+ import { LogLevelType, LogCategoriesType, ResultViewStyles, ResultTypes, articlePageLayoutType, FilesExtensions, WildCardType, DocumentsType, articleInfoItemType } from '@c-rex/types';
2
2
 
3
3
  interface DefaultCrexDirectories extends idShortID {
4
4
  labels: Labels[];
@@ -171,14 +171,7 @@ interface informationUnitsResponseItem {
171
171
  localeType: string;
172
172
  link: string;
173
173
  disabled: boolean;
174
- filesToOpen: {
175
- format: string;
176
- link: string;
177
- }[];
178
- filesToDownload: {
179
- format: string;
180
- link: string;
181
- }[];
174
+ files: DocumentsType;
182
175
  }
183
176
  interface informationUnitsResponse {
184
177
  items: informationUnitsResponseItem[];
@@ -199,7 +192,7 @@ interface TreeOfContent {
199
192
  active: boolean;
200
193
  children: TreeOfContent[];
201
194
  }
202
- interface SidebarAvailableVersionsInterface {
195
+ interface AvailableVersionsInterface {
203
196
  shortId: string;
204
197
  active: boolean;
205
198
  lang: string;
@@ -232,4 +225,24 @@ interface LanguageAndCountries {
232
225
  value: string;
233
226
  }
234
227
 
235
- export type { AutocompleteSuggestion, ClassInterface, ConfigInterface, DefaultCrexDirectories, DefaultCrexObject, DefaultCrexRenditions, DefaultPageInfo, DefaultRequest, DefaultResponse, DirectoryNodes, DirectoryNodesResponse, DocumentTypesItem, DocumentTypesResponse, Filters, Labels, LanguageAndCountries, Link, OIDCInterface, SidebarAvailableVersionsInterface, Tags, TopicsRequestItem, TopicsResponseItem, TreeOfContent, idShortID, informationUnitsItems, informationUnitsRenditions, informationUnitsResponse, informationUnitsResponseItem, logInfo };
228
+ interface CollectionContext {
229
+ id: string;
230
+ informationUnitsItem: informationUnitsItems;
231
+ rootNode: DirectoryNodes;
232
+ }
233
+ interface CollectionResult {
234
+ metaTags: {
235
+ name: string;
236
+ content: string;
237
+ }[];
238
+ articleHtml: string;
239
+ document: informationUnitsItems;
240
+ article: informationUnitsItems;
241
+ attachments?: DocumentsType;
242
+ articleInfo?: articleInfoItemType[];
243
+ documentInfo?: articleInfoItemType[];
244
+ rootNode: DirectoryNodes;
245
+ availableVersions: informationUnitsResponseItem[];
246
+ }
247
+
248
+ export type { AutocompleteSuggestion, AvailableVersionsInterface, ClassInterface, CollectionContext, CollectionResult, ConfigInterface, DefaultCrexDirectories, DefaultCrexObject, DefaultCrexRenditions, DefaultPageInfo, DefaultRequest, DefaultResponse, DirectoryNodes, DirectoryNodesResponse, DocumentTypesItem, DocumentTypesResponse, Filters, Labels, LanguageAndCountries, Link, OIDCInterface, Tags, TopicsRequestItem, TopicsResponseItem, TreeOfContent, idShortID, informationUnitsItems, informationUnitsRenditions, informationUnitsResponse, informationUnitsResponseItem, logInfo };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './common'\nexport * from './config'\nexport * from './directoryNodes'\nexport * from './documentTypes'\nexport * from './informationUnits'\nexport * from './treeOfContent'\nexport * from './topics'\nexport * from './languages'"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './common'\nexport * from './config'\nexport * from './directoryNodes'\nexport * from './documentTypes'\nexport * from './informationUnits'\nexport * from './treeOfContent'\nexport * from './topics'\nexport * from './languages'\nexport * from './collectors'"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-rex/interfaces",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "module": "./dist/index.mjs",