@c-rex/interfaces 0.1.11 → 0.1.13

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
@@ -16,7 +16,7 @@ interface DefaultCrexObject extends idShortID {
16
16
  class: ClassInterface;
17
17
  labels: Labels[];
18
18
  titles: Labels[];
19
- versionOf: idShortID;
19
+ versionOf: ClassInterface;
20
20
  packages: idShortID[];
21
21
  links: Link[];
22
22
  renditions: DefaultCrexRenditions[];
@@ -97,17 +97,23 @@ interface logInfo {
97
97
  }
98
98
  interface OIDCInterface {
99
99
  enabled: boolean;
100
- name: string;
101
100
  id: string;
102
101
  secret: string;
103
102
  issuer: string;
104
103
  scope?: string;
105
104
  userInfoEndPoint?: string;
106
105
  }
107
- interface ConfigInterface {
108
- projectName: string;
109
- baseUrl: string;
106
+ interface CookiesConfigs {
110
107
  publicNextApiUrl: string;
108
+ OIDC: {
109
+ clientEnabled: boolean;
110
+ userEnabled: boolean;
111
+ };
112
+ languageSwitcher: {
113
+ enabled: boolean;
114
+ default: string;
115
+ endpoint: string;
116
+ };
111
117
  results: {
112
118
  resultViewStyle: ResultViewStyles;
113
119
  disabledResults: ResultTypes[];
@@ -116,15 +122,13 @@ interface ConfigInterface {
116
122
  filesEnabledToOpen?: FilesExtensions[];
117
123
  resultsToHide?: ResultTypes[];
118
124
  };
125
+ }
126
+ interface ConfigInterface {
127
+ baseUrl: string;
119
128
  OIDC: {
120
129
  client: OIDCInterface;
121
130
  user: OIDCInterface;
122
131
  };
123
- languageSwitcher: {
124
- enabled: boolean;
125
- default: string;
126
- endpoint: string;
127
- };
128
132
  search: {
129
133
  fields: string[];
130
134
  tags: string[];
@@ -143,6 +147,7 @@ interface ConfigInterface {
143
147
  interface DirectoryNodes extends DefaultCrexDirectories {
144
148
  childNodes: DefaultCrexDirectories[];
145
149
  parents: idShortID[];
150
+ ancestors: idShortID[][];
146
151
  informationUnits: (idShortID & {
147
152
  labels: Labels[];
148
153
  })[];
@@ -174,6 +179,8 @@ interface informationUnitsResponseItem {
174
179
  localeType: string;
175
180
  link: string;
176
181
  disabled: boolean;
182
+ multipleVersions: string[];
183
+ revision: string;
177
184
  files: DocumentsType;
178
185
  }
179
186
  interface informationUnitsResponse {
@@ -249,4 +256,4 @@ interface CollectionResult {
249
256
  documentAvailableVersions: informationUnitsResponseItem[];
250
257
  }
251
258
 
252
- 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 };
259
+ 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 };
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ interface DefaultCrexObject extends idShortID {
16
16
  class: ClassInterface;
17
17
  labels: Labels[];
18
18
  titles: Labels[];
19
- versionOf: idShortID;
19
+ versionOf: ClassInterface;
20
20
  packages: idShortID[];
21
21
  links: Link[];
22
22
  renditions: DefaultCrexRenditions[];
@@ -97,17 +97,23 @@ interface logInfo {
97
97
  }
98
98
  interface OIDCInterface {
99
99
  enabled: boolean;
100
- name: string;
101
100
  id: string;
102
101
  secret: string;
103
102
  issuer: string;
104
103
  scope?: string;
105
104
  userInfoEndPoint?: string;
106
105
  }
107
- interface ConfigInterface {
108
- projectName: string;
109
- baseUrl: string;
106
+ interface CookiesConfigs {
110
107
  publicNextApiUrl: string;
108
+ OIDC: {
109
+ clientEnabled: boolean;
110
+ userEnabled: boolean;
111
+ };
112
+ languageSwitcher: {
113
+ enabled: boolean;
114
+ default: string;
115
+ endpoint: string;
116
+ };
111
117
  results: {
112
118
  resultViewStyle: ResultViewStyles;
113
119
  disabledResults: ResultTypes[];
@@ -116,15 +122,13 @@ interface ConfigInterface {
116
122
  filesEnabledToOpen?: FilesExtensions[];
117
123
  resultsToHide?: ResultTypes[];
118
124
  };
125
+ }
126
+ interface ConfigInterface {
127
+ baseUrl: string;
119
128
  OIDC: {
120
129
  client: OIDCInterface;
121
130
  user: OIDCInterface;
122
131
  };
123
- languageSwitcher: {
124
- enabled: boolean;
125
- default: string;
126
- endpoint: string;
127
- };
128
132
  search: {
129
133
  fields: string[];
130
134
  tags: string[];
@@ -143,6 +147,7 @@ interface ConfigInterface {
143
147
  interface DirectoryNodes extends DefaultCrexDirectories {
144
148
  childNodes: DefaultCrexDirectories[];
145
149
  parents: idShortID[];
150
+ ancestors: idShortID[][];
146
151
  informationUnits: (idShortID & {
147
152
  labels: Labels[];
148
153
  })[];
@@ -174,6 +179,8 @@ interface informationUnitsResponseItem {
174
179
  localeType: string;
175
180
  link: string;
176
181
  disabled: boolean;
182
+ multipleVersions: string[];
183
+ revision: string;
177
184
  files: DocumentsType;
178
185
  }
179
186
  interface informationUnitsResponse {
@@ -249,4 +256,4 @@ interface CollectionResult {
249
256
  documentAvailableVersions: informationUnitsResponseItem[];
250
257
  }
251
258
 
252
- 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 };
259
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-rex/interfaces",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "module": "./dist/index.mjs",