@c-rex/interfaces 0.1.0 → 0.1.2

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 } from '@c-rex/types';
1
+ import { LogLevelType, LogCategoriesType, ResultViewStyles } from '@c-rex/types';
2
2
 
3
3
  interface DefaultPageInfo {
4
4
  pageNumber: number;
@@ -59,6 +59,7 @@ interface OIDCInterface {
59
59
  interface ConfigInterface {
60
60
  projectName: string;
61
61
  baseUrl: string;
62
+ resultViewStyle: ResultViewStyles;
62
63
  OIDC: {
63
64
  client: OIDCInterface;
64
65
  user: OIDCInterface;
@@ -76,7 +77,7 @@ interface ConfigInterface {
76
77
  sparqlWhere?: string;
77
78
  };
78
79
  logs: {
79
- console: logInfo;
80
+ console: Omit<logInfo, "url" | "app" | "categoriesLevel">;
80
81
  graylog: logInfo;
81
82
  matomo: logInfo;
82
83
  };
@@ -152,5 +153,11 @@ interface TreeOfContent {
152
153
  active: boolean;
153
154
  children: TreeOfContent[];
154
155
  }
156
+ interface SidebarAvailableVersionsInterface {
157
+ shortId: string;
158
+ lang: string;
159
+ country: string;
160
+ link: string;
161
+ }
155
162
 
156
- export type { AutocompleteSuggestion, ConfigInterface, DefaultLinksRequest, DefaultPageInfo, DefaultRequest, DirectoryNodes, DocumentTypesItem, Filters, Labels, LanguageAndCountries, OIDCInterface, TreeOfContent, idShortID, informationUnits, informationUnitsDirectories, informationUnitsItems, informationUnitsRenditions, informationUnitsResponse, logInfo };
163
+ export type { AutocompleteSuggestion, ConfigInterface, DefaultLinksRequest, DefaultPageInfo, DefaultRequest, DirectoryNodes, DocumentTypesItem, Filters, Labels, LanguageAndCountries, OIDCInterface, SidebarAvailableVersionsInterface, TreeOfContent, idShortID, informationUnits, informationUnitsClass, informationUnitsDirectories, informationUnitsItems, informationUnitsRenditions, informationUnitsResponse, logInfo };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { LogLevelType, LogCategoriesType } from '@c-rex/types';
1
+ import { LogLevelType, LogCategoriesType, ResultViewStyles } from '@c-rex/types';
2
2
 
3
3
  interface DefaultPageInfo {
4
4
  pageNumber: number;
@@ -59,6 +59,7 @@ interface OIDCInterface {
59
59
  interface ConfigInterface {
60
60
  projectName: string;
61
61
  baseUrl: string;
62
+ resultViewStyle: ResultViewStyles;
62
63
  OIDC: {
63
64
  client: OIDCInterface;
64
65
  user: OIDCInterface;
@@ -76,7 +77,7 @@ interface ConfigInterface {
76
77
  sparqlWhere?: string;
77
78
  };
78
79
  logs: {
79
- console: logInfo;
80
+ console: Omit<logInfo, "url" | "app" | "categoriesLevel">;
80
81
  graylog: logInfo;
81
82
  matomo: logInfo;
82
83
  };
@@ -152,5 +153,11 @@ interface TreeOfContent {
152
153
  active: boolean;
153
154
  children: TreeOfContent[];
154
155
  }
156
+ interface SidebarAvailableVersionsInterface {
157
+ shortId: string;
158
+ lang: string;
159
+ country: string;
160
+ link: string;
161
+ }
155
162
 
156
- export type { AutocompleteSuggestion, ConfigInterface, DefaultLinksRequest, DefaultPageInfo, DefaultRequest, DirectoryNodes, DocumentTypesItem, Filters, Labels, LanguageAndCountries, OIDCInterface, TreeOfContent, idShortID, informationUnits, informationUnitsDirectories, informationUnitsItems, informationUnitsRenditions, informationUnitsResponse, logInfo };
163
+ export type { AutocompleteSuggestion, ConfigInterface, DefaultLinksRequest, DefaultPageInfo, DefaultRequest, DirectoryNodes, DocumentTypesItem, Filters, Labels, LanguageAndCountries, OIDCInterface, SidebarAvailableVersionsInterface, TreeOfContent, idShortID, informationUnits, informationUnitsClass, informationUnitsDirectories, informationUnitsItems, informationUnitsRenditions, informationUnitsResponse, logInfo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-rex/interfaces",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "module": "./dist/index.mjs",
@@ -14,7 +14,9 @@
14
14
  "dev": "tsup --watch",
15
15
  "build": "tsup",
16
16
  "test:watch": "jest --watch",
17
- "test": "jest"
17
+ "test": "jest",
18
+ "lint": "eslint .",
19
+ "lint:fix": "eslint . --fix"
18
20
  },
19
21
  "devDependencies": {
20
22
  "@c-rex/typescript-config": "*",