@c-rex/interfaces 0.1.12 → 0.1.14
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 +39 -24
- package/dist/index.d.ts +39 -24
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogLevelType, LogCategoriesType, ResultViewStyles, ResultTypes, articlePageLayoutType, FilesExtensions,
|
|
1
|
+
import { LogLevelType, LogCategoriesType, WildCardType, ResultViewStyles, ResultTypes, articlePageLayoutType, FilesExtensions, DocumentsType, articleInfoItemType } from '@c-rex/types';
|
|
2
2
|
|
|
3
3
|
interface DefaultCrexDirectories extends idShortID {
|
|
4
4
|
labels: Labels[];
|
|
@@ -16,7 +16,7 @@ interface DefaultCrexObject extends idShortID {
|
|
|
16
16
|
class: ClassInterface;
|
|
17
17
|
labels: Labels[];
|
|
18
18
|
titles: Labels[];
|
|
19
|
-
versionOf:
|
|
19
|
+
versionOf: ClassInterface;
|
|
20
20
|
packages: idShortID[];
|
|
21
21
|
links: Link[];
|
|
22
22
|
renditions: DefaultCrexRenditions[];
|
|
@@ -103,50 +103,63 @@ interface OIDCInterface {
|
|
|
103
103
|
scope?: string;
|
|
104
104
|
userInfoEndPoint?: string;
|
|
105
105
|
}
|
|
106
|
+
interface SearchSettings {
|
|
107
|
+
fields: string[];
|
|
108
|
+
tags: string[];
|
|
109
|
+
restrict?: Filters[];
|
|
110
|
+
filter?: Filters[];
|
|
111
|
+
sparqlWhere?: string;
|
|
112
|
+
wildcard: WildCardType;
|
|
113
|
+
}
|
|
114
|
+
interface ResultsConfig {
|
|
115
|
+
resultViewStyle: ResultViewStyles;
|
|
116
|
+
disabledResults: ResultTypes[];
|
|
117
|
+
articlePageLayout: articlePageLayoutType;
|
|
118
|
+
filesEnabledToDownload?: FilesExtensions[];
|
|
119
|
+
filesEnabledToOpen?: FilesExtensions[];
|
|
120
|
+
resultsToHide?: ResultTypes[];
|
|
121
|
+
}
|
|
122
|
+
interface LanguageSwitcherConfig {
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
default: string;
|
|
125
|
+
endpoint: string;
|
|
126
|
+
}
|
|
106
127
|
interface CookiesConfigs {
|
|
128
|
+
projectName: string;
|
|
107
129
|
publicNextApiUrl: string;
|
|
108
130
|
OIDC: {
|
|
109
131
|
clientEnabled: boolean;
|
|
110
132
|
userEnabled: boolean;
|
|
111
133
|
};
|
|
112
|
-
languageSwitcher:
|
|
113
|
-
|
|
114
|
-
default: string;
|
|
115
|
-
endpoint: string;
|
|
116
|
-
};
|
|
117
|
-
results: {
|
|
118
|
-
resultViewStyle: ResultViewStyles;
|
|
119
|
-
disabledResults: ResultTypes[];
|
|
120
|
-
articlePageLayout: articlePageLayoutType;
|
|
121
|
-
filesEnabledToDownload?: FilesExtensions[];
|
|
122
|
-
filesEnabledToOpen?: FilesExtensions[];
|
|
123
|
-
resultsToHide?: ResultTypes[];
|
|
124
|
-
};
|
|
134
|
+
languageSwitcher: LanguageSwitcherConfig;
|
|
135
|
+
results: ResultsConfig;
|
|
125
136
|
}
|
|
126
137
|
interface ConfigInterface {
|
|
127
138
|
baseUrl: string;
|
|
139
|
+
projectName: string;
|
|
128
140
|
OIDC: {
|
|
129
141
|
client: OIDCInterface;
|
|
130
142
|
user: OIDCInterface;
|
|
143
|
+
issuerMetadata?: any;
|
|
131
144
|
};
|
|
132
|
-
search:
|
|
133
|
-
fields: string[];
|
|
134
|
-
tags: string[];
|
|
135
|
-
restrict?: Filters[];
|
|
136
|
-
filter?: Filters[];
|
|
137
|
-
sparqlWhere?: string;
|
|
138
|
-
wildcard: WildCardType;
|
|
139
|
-
};
|
|
145
|
+
search: SearchSettings;
|
|
140
146
|
logs: {
|
|
141
147
|
console: Omit<logInfo, "hostname" | "app" | "categoriesLevel">;
|
|
142
148
|
graylog: logInfo;
|
|
143
149
|
matomo: logInfo;
|
|
144
150
|
};
|
|
145
151
|
}
|
|
152
|
+
interface CustomerConfig {
|
|
153
|
+
projectName: string;
|
|
154
|
+
search: SearchSettings;
|
|
155
|
+
languageSwitcher: LanguageSwitcherConfig;
|
|
156
|
+
results: ResultsConfig;
|
|
157
|
+
}
|
|
146
158
|
|
|
147
159
|
interface DirectoryNodes extends DefaultCrexDirectories {
|
|
148
160
|
childNodes: DefaultCrexDirectories[];
|
|
149
161
|
parents: idShortID[];
|
|
162
|
+
ancestors: idShortID[][];
|
|
150
163
|
informationUnits: (idShortID & {
|
|
151
164
|
labels: Labels[];
|
|
152
165
|
})[];
|
|
@@ -178,6 +191,8 @@ interface informationUnitsResponseItem {
|
|
|
178
191
|
localeType: string;
|
|
179
192
|
link: string;
|
|
180
193
|
disabled: boolean;
|
|
194
|
+
multipleVersions: string[];
|
|
195
|
+
revision: string;
|
|
181
196
|
files: DocumentsType;
|
|
182
197
|
}
|
|
183
198
|
interface informationUnitsResponse {
|
|
@@ -253,4 +268,4 @@ interface CollectionResult {
|
|
|
253
268
|
documentAvailableVersions: informationUnitsResponseItem[];
|
|
254
269
|
}
|
|
255
270
|
|
|
256
|
-
export type { AutocompleteSuggestion, AvailableVersionsInterface, ClassInterface, CollectionContext, CollectionResult, ConfigInterface, CookiesConfigs, 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 };
|
|
271
|
+
export type { AutocompleteSuggestion, AvailableVersionsInterface, ClassInterface, CollectionContext, CollectionResult, ConfigInterface, CookiesConfigs, CustomerConfig, DefaultCrexDirectories, DefaultCrexObject, DefaultCrexRenditions, DefaultPageInfo, DefaultRequest, DefaultResponse, DirectoryNodes, DirectoryNodesResponse, DocumentTypesItem, DocumentTypesResponse, Filters, Labels, LanguageAndCountries, LanguageSwitcherConfig, Link, OIDCInterface, ResultsConfig, SearchSettings, 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,
|
|
1
|
+
import { LogLevelType, LogCategoriesType, WildCardType, ResultViewStyles, ResultTypes, articlePageLayoutType, FilesExtensions, DocumentsType, articleInfoItemType } from '@c-rex/types';
|
|
2
2
|
|
|
3
3
|
interface DefaultCrexDirectories extends idShortID {
|
|
4
4
|
labels: Labels[];
|
|
@@ -16,7 +16,7 @@ interface DefaultCrexObject extends idShortID {
|
|
|
16
16
|
class: ClassInterface;
|
|
17
17
|
labels: Labels[];
|
|
18
18
|
titles: Labels[];
|
|
19
|
-
versionOf:
|
|
19
|
+
versionOf: ClassInterface;
|
|
20
20
|
packages: idShortID[];
|
|
21
21
|
links: Link[];
|
|
22
22
|
renditions: DefaultCrexRenditions[];
|
|
@@ -103,50 +103,63 @@ interface OIDCInterface {
|
|
|
103
103
|
scope?: string;
|
|
104
104
|
userInfoEndPoint?: string;
|
|
105
105
|
}
|
|
106
|
+
interface SearchSettings {
|
|
107
|
+
fields: string[];
|
|
108
|
+
tags: string[];
|
|
109
|
+
restrict?: Filters[];
|
|
110
|
+
filter?: Filters[];
|
|
111
|
+
sparqlWhere?: string;
|
|
112
|
+
wildcard: WildCardType;
|
|
113
|
+
}
|
|
114
|
+
interface ResultsConfig {
|
|
115
|
+
resultViewStyle: ResultViewStyles;
|
|
116
|
+
disabledResults: ResultTypes[];
|
|
117
|
+
articlePageLayout: articlePageLayoutType;
|
|
118
|
+
filesEnabledToDownload?: FilesExtensions[];
|
|
119
|
+
filesEnabledToOpen?: FilesExtensions[];
|
|
120
|
+
resultsToHide?: ResultTypes[];
|
|
121
|
+
}
|
|
122
|
+
interface LanguageSwitcherConfig {
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
default: string;
|
|
125
|
+
endpoint: string;
|
|
126
|
+
}
|
|
106
127
|
interface CookiesConfigs {
|
|
128
|
+
projectName: string;
|
|
107
129
|
publicNextApiUrl: string;
|
|
108
130
|
OIDC: {
|
|
109
131
|
clientEnabled: boolean;
|
|
110
132
|
userEnabled: boolean;
|
|
111
133
|
};
|
|
112
|
-
languageSwitcher:
|
|
113
|
-
|
|
114
|
-
default: string;
|
|
115
|
-
endpoint: string;
|
|
116
|
-
};
|
|
117
|
-
results: {
|
|
118
|
-
resultViewStyle: ResultViewStyles;
|
|
119
|
-
disabledResults: ResultTypes[];
|
|
120
|
-
articlePageLayout: articlePageLayoutType;
|
|
121
|
-
filesEnabledToDownload?: FilesExtensions[];
|
|
122
|
-
filesEnabledToOpen?: FilesExtensions[];
|
|
123
|
-
resultsToHide?: ResultTypes[];
|
|
124
|
-
};
|
|
134
|
+
languageSwitcher: LanguageSwitcherConfig;
|
|
135
|
+
results: ResultsConfig;
|
|
125
136
|
}
|
|
126
137
|
interface ConfigInterface {
|
|
127
138
|
baseUrl: string;
|
|
139
|
+
projectName: string;
|
|
128
140
|
OIDC: {
|
|
129
141
|
client: OIDCInterface;
|
|
130
142
|
user: OIDCInterface;
|
|
143
|
+
issuerMetadata?: any;
|
|
131
144
|
};
|
|
132
|
-
search:
|
|
133
|
-
fields: string[];
|
|
134
|
-
tags: string[];
|
|
135
|
-
restrict?: Filters[];
|
|
136
|
-
filter?: Filters[];
|
|
137
|
-
sparqlWhere?: string;
|
|
138
|
-
wildcard: WildCardType;
|
|
139
|
-
};
|
|
145
|
+
search: SearchSettings;
|
|
140
146
|
logs: {
|
|
141
147
|
console: Omit<logInfo, "hostname" | "app" | "categoriesLevel">;
|
|
142
148
|
graylog: logInfo;
|
|
143
149
|
matomo: logInfo;
|
|
144
150
|
};
|
|
145
151
|
}
|
|
152
|
+
interface CustomerConfig {
|
|
153
|
+
projectName: string;
|
|
154
|
+
search: SearchSettings;
|
|
155
|
+
languageSwitcher: LanguageSwitcherConfig;
|
|
156
|
+
results: ResultsConfig;
|
|
157
|
+
}
|
|
146
158
|
|
|
147
159
|
interface DirectoryNodes extends DefaultCrexDirectories {
|
|
148
160
|
childNodes: DefaultCrexDirectories[];
|
|
149
161
|
parents: idShortID[];
|
|
162
|
+
ancestors: idShortID[][];
|
|
150
163
|
informationUnits: (idShortID & {
|
|
151
164
|
labels: Labels[];
|
|
152
165
|
})[];
|
|
@@ -178,6 +191,8 @@ interface informationUnitsResponseItem {
|
|
|
178
191
|
localeType: string;
|
|
179
192
|
link: string;
|
|
180
193
|
disabled: boolean;
|
|
194
|
+
multipleVersions: string[];
|
|
195
|
+
revision: string;
|
|
181
196
|
files: DocumentsType;
|
|
182
197
|
}
|
|
183
198
|
interface informationUnitsResponse {
|
|
@@ -253,4 +268,4 @@ interface CollectionResult {
|
|
|
253
268
|
documentAvailableVersions: informationUnitsResponseItem[];
|
|
254
269
|
}
|
|
255
270
|
|
|
256
|
-
export type { AutocompleteSuggestion, AvailableVersionsInterface, ClassInterface, CollectionContext, CollectionResult, ConfigInterface, CookiesConfigs, 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 };
|
|
271
|
+
export type { AutocompleteSuggestion, AvailableVersionsInterface, ClassInterface, CollectionContext, CollectionResult, ConfigInterface, CookiesConfigs, CustomerConfig, DefaultCrexDirectories, DefaultCrexObject, DefaultCrexRenditions, DefaultPageInfo, DefaultRequest, DefaultResponse, DirectoryNodes, DirectoryNodesResponse, DocumentTypesItem, DocumentTypesResponse, Filters, Labels, LanguageAndCountries, LanguageSwitcherConfig, Link, OIDCInterface, ResultsConfig, SearchSettings, Tags, TopicsRequestItem, TopicsResponseItem, TreeOfContent, idShortID, informationUnitsItems, informationUnitsRenditions, informationUnitsResponse, informationUnitsResponseItem, logInfo };
|