cobrili-client 1.0.13 → 1.0.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/README.md CHANGED
@@ -181,7 +181,20 @@ if (result.error) {
181
181
 
182
182
  ## API Methods
183
183
 
184
- The client provides 130+ auto-generated API methods. Use `API_METHODS` to explore all available methods:
184
+ The client provides **163 auto-generated API methods**. See [API_COMPLETE_REFERENCE.md](./docs/API_COMPLETE_REFERENCE.md) for the full list.
185
+
186
+ ### Key Method Categories
187
+
188
+ | Category | Examples |
189
+ |----------|----------|
190
+ | **Session** | `init()`, `login()`, `logout()` |
191
+ | **Helpsets** | `switchMasterHelpSet()`, `getAllHelpsets()`, `loadActiveHelpset()` |
192
+ | **Navigation** | `getNavigation()`, `getBreadCrumb()`, `navigateToTopic()` |
193
+ | **Content** | `getContent()`, `getTopicInfo()`, `getTopicForExternalId()` |
194
+ | **Metadata** | `getPossibleMetaValues()`, `setCurrentMetaDataSetForSession()` |
195
+ | **Search** | `startSearch()`, `getSearchResults()`, `getSuggestionsForSearchInput()` |
196
+ | **Bookmarks** | `addBookmark()`, `deleteBookmark()`, `getBookmarkList()` |
197
+ | **Users** | `createUser()`, `modifyUser()`, `getAllUsers()` |
185
198
 
186
199
  ```typescript
187
200
  import { API_METHODS } from 'cobrili-client'
@@ -190,100 +203,6 @@ import { API_METHODS } from 'cobrili-client'
190
203
  console.log(Object.keys(API_METHODS))
191
204
  ```
192
205
 
193
- ### Session & Authentication
194
-
195
- - `init()` - Initialize session (required first)
196
- - `isInitialized()` - Check if session is active
197
- - `login({ loginUser })` - Login with credentials
198
- - `logout({})` - Logout
199
- - `getLoggedInUserInfo({})` - Get current user info
200
- - `changePassword({ oldPassword, newPassword })` - Change password
201
-
202
- ### Master Helpset
203
-
204
- - `switchMasterHelpSet({ masterHelpSetApplicationIdentifier, initActiveHelpset })` - Activate master
205
- - `getAllHelpsets({ masterHelpSetApplicationIdentifier, withMetadata })` - Get all helpsets
206
- - `getHelpsetInfosExtended({ masterHelpSetApplicationIdentifier, withMetadata, metaData })` - Get helpsets with filtering
207
- - `getAllowedMetaKeysForMasterhelpset({ masterHelpSetApplicationIdentifier })` - Get metadata keys
208
- - `checkMasterHelpsetID({ masterHelpSetID })` - Validate master helpset ID
209
-
210
- ### Helpset
211
-
212
- - `loadActiveHelpset({ helpsetID })` - Load a helpset
213
- - `getHelpsetInfoForActiveHelpset({})` - Get active helpset info
214
- - `getHomeTopicId({ helpsetID })` - Get home topic ID
215
- - `getHomeTopicExternalId({ helpsetID })` - Get home topic external ID
216
- - `getHelpsetInfoForTopic({ topicID })` - Get helpset info for a topic
217
- - `isValidHelpsetID({ helpsetID })` - Validate helpset ID
218
-
219
- ### Navigation
220
-
221
- - `getNavigationWithMetaData({ currentNavigationID, wantedMetaKeys, useHelpsetMetadataFallback })` - Get navigation tree with metadata
222
- - `getNavigation({ currentNavigationID })` - Get navigation tree
223
- - `navigateToTopic({ topicID, navigationID })` - Navigate to topic
224
- - `getBreadCrumb({ navigationID })` - Get breadcrumb path
225
- - `getBreadCrumbWithMetaData({ navigationID, wantedMetaKeys })` - Get breadcrumb with metadata
226
- - `getRawNavigationEntriesForHelpset({ helpsetID })` - Get raw navigation entries
227
-
228
- ### Content
229
-
230
- - `getContent({ topicID })` - Get topic content (base64-encoded HTML)
231
- - `getTopicForExternalId({ externalIdForTopic, externalIdForHelpset })` - Find topic by external ID
232
- - `getMetaValuesForTopics({ externalTopicIDs, wantedMetaKeys })` - Get metadata for topics
233
- - `getTopicInfo({ topicID })` - Get topic information
234
- - `getTitleForTopic({ topicID })` - Get topic title
235
- - `isValidTopicID({ topicID })` - Validate topic ID
236
- - `isTopicVisible({ topicID })` - Check topic visibility
237
- - `getChildTopics({ topicID })` - Get child topics
238
- - `getRelatedTopics({ topicID })` - Get related topics
239
- - `getExternalIdForTopic({ topicID })` - Get external ID for topic
240
-
241
- ### Metadata
242
-
243
- - `getPossibleMetaValues({ metaKey })` - Get possible values for a meta key
244
- - `getMetaValueForTopic({ metaKey, topicID })` - Get meta value for topic
245
- - `getAllMetaValuesForTopic({ topicID, wantedMetaKeys })` - Get all metadata for topic
246
- - `getUsedMetaValues({ metaKey })` - Get used meta values
247
- - `setCurrentMetaDataSetForSession({ metaData })` - Set session metadata filter
248
- - `getCurrentMetaDataSetForSession({})` - Get current session metadata
249
- - `addToCurrentMetaDataSetForSession({ metaDataToAdd })` - Add to session metadata
250
- - `removeFromCurrentMetaDataSetForSession({ metaDataToRemove })` - Remove from session metadata
251
-
252
- ### Search
253
-
254
- - `startSearch({ searchString })` - Start a search
255
- - `startExtendedSearch({ searchRequest })` - Start search with advanced options
256
- - `getSearchResults({ searchID })` - Get search results
257
- - `getSearchResultsExtended({ searchID, sortCriteria })` - Get sorted search results
258
- - `getSuggestionsForSearchInput({ searchString })` - Get search suggestions
259
- - `getSearchSettings({})` - Get search configuration
260
-
261
- ### History & Bookmarks
262
-
263
- - `historyBack({ steps })` / `historyForward({ steps })` - Navigate history
264
- - `getHistoryList({})` - Get history list
265
- - `getBookmarkList({})` - Get bookmarks
266
- - `addBookmark({ topicID, navigationID, title })` - Add bookmark
267
- - `deleteBookmark({ bookmarkID })` - Delete bookmark
268
- - `isInBookmarks({ topicID })` - Check if topic is bookmarked
269
-
270
- ### User Management
271
-
272
- - `createUser({ user, groupIDs })` - Create user
273
- - `modifyUser({ user })` - Modify user
274
- - `deleteUser({ userID })` - Delete user
275
- - `getAllUsers({})` - Get all users
276
- - `createGroup({ group })` - Create group
277
- - `getAllGroups({})` - Get all groups
278
-
279
- ### System
280
-
281
- - `getCurrentCobriliVersion({})` - Get version
282
- - `getConfigurationData({})` - Get configuration
283
- - `clearStaticCaches({})` - Clear caches
284
- - `refreshStaticCaches({})` - Refresh caches
285
- - `getResourceStrings({ resourceKeys })` - Get localization strings
286
-
287
206
  ## CommonJS
288
207
 
289
208
  ```javascript
@@ -293,6 +212,13 @@ const client = createCobriliClient({ baseUrl: 'https://your-server.com' })
293
212
  await client.init()
294
213
  ```
295
214
 
215
+ ## Documentation
216
+
217
+ For detailed documentation, see the [docs](./docs/) folder:
218
+
219
+ - **[COBRILI_CONCEPTS.md](./docs/COBRILI_CONCEPTS.md)** - Core concepts (MasterHelpset, Helpset, Topic, Navigation, Metadata), typical workflows, and architecture overview
220
+ - **[API_COMPLETE_REFERENCE.md](./docs/API_COMPLETE_REFERENCE.md)** - Complete API reference with all 163 methods, parameters, and XML definitions
221
+
296
222
  ## Links
297
223
 
298
224
  - [Cobrili™ Product Page](https://acolada.de/produkte/cobrili-2/) - Acolada GmbH
@@ -231,6 +231,22 @@ var CobriliAdapter = (() => {
231
231
  category: "Helpsets",
232
232
  description: "Get all helpsets for a master helpset"
233
233
  },
234
+ getAllHelpsets_WithoutCheckingAccessRights: {
235
+ method: "GetAllHelpsets_WithoutCheckingAccessRights",
236
+ requestType: "GetAllHelpsetsRequest",
237
+ requestFields: [
238
+ field("masterHelpSetApplicationIdentifier", "string", {}),
239
+ field("withMetadata", "boolean", { xmlTag: "with_metadata" })
240
+ ],
241
+ responseFields: [
242
+ field("helpsetInfos", "array", {
243
+ itemObjectType: "HelpsetInfo",
244
+ xmlTag: "helpsetInfos"
245
+ })
246
+ ],
247
+ category: "Helpsets",
248
+ description: "Get all helpsets for a master helpset without checking access rights"
249
+ },
234
250
  getHelpsetInfoForTopic: {
235
251
  requestFields: [field("topicID", "double", {})],
236
252
  responseFields: [field("helpsetInfo", "object", { objectType: "HelpsetInfo" })],
@@ -966,7 +982,7 @@ var CobriliAdapter = (() => {
966
982
  field("pageType", "string", {}),
967
983
  field("searchHistoryEntry", "object", {
968
984
  optional: true,
969
- objectType: "SearchHistoryEntry"
985
+ objectType: "SearchHistoryEntryExtended"
970
986
  })
971
987
  ],
972
988
  responseFields: [field("success", "boolean")],
@@ -1309,10 +1325,13 @@ var CobriliAdapter = (() => {
1309
1325
  description: "Add to current metadata set for session"
1310
1326
  },
1311
1327
  removeFromCurrentMetaDataSetForSession: {
1312
- requestFields: [field("metaKey", "string", {}), field("metaValue", "string", {})],
1328
+ requestFields: [
1329
+ field("metaKey", "string", {}),
1330
+ field("metaValue", "string", { optional: true })
1331
+ ],
1313
1332
  responseFields: [field("success", "boolean", { xmlTag: "not_used" })],
1314
1333
  category: "Metadata Extended",
1315
- description: "Remove from current metadata set for session"
1334
+ description: "Remove from current metadata set for session. If metaValue is not provided, the entire metaKey is removed."
1316
1335
  },
1317
1336
  getMetaKeysWhichAreConfiguredForContentFiltering: {
1318
1337
  requestFields: [field("not_used", "boolean", {})],
@@ -1739,7 +1758,13 @@ var CobriliAdapter = (() => {
1739
1758
  },
1740
1759
  getRawNavigationEntriesForHelpset: {
1741
1760
  requestFields: [field("helpsetID", "double", {})],
1742
- responseFields: [field("entries", "array", { itemObjectType: "RawNavigationEntry" })],
1761
+ responseFields: [
1762
+ field("entries", "array", {
1763
+ itemObjectType: "RawNavigationEntry",
1764
+ xmlTag: "NavigationEntry",
1765
+ varname: "entries"
1766
+ })
1767
+ ],
1743
1768
  description: "Get raw navigation entries for helpset"
1744
1769
  },
1745
1770
  getDatabaseIDsForCobriliLink: {
@@ -2173,9 +2198,24 @@ var CobriliAdapter = (() => {
2173
2198
  RawNavigationEntry: [
2174
2199
  field("navigationID", "double", {}),
2175
2200
  field("topicID", "double", {}),
2176
- field("parentNavigationID", "double", {}),
2201
+ field("helpsetID", "double", {}),
2177
2202
  field("title", "string", {}),
2178
- field("sortOrder", "int", {})
2203
+ field("hasChildren", "boolean", {}),
2204
+ field("isPlaceHolderForContainedHelpset", "boolean", {}),
2205
+ field("isMetaDataDrivenNavigationEntry", "boolean", {}),
2206
+ field("children", "object", {
2207
+ objectType: "RawNavigationEntryList",
2208
+ xmlTag: "NavigationEntryList",
2209
+ varname: "children",
2210
+ optional: true
2211
+ })
2212
+ ],
2213
+ RawNavigationEntryList: [
2214
+ field("entries", "array", {
2215
+ itemObjectType: "RawNavigationEntry",
2216
+ xmlTag: "NavigationEntry",
2217
+ varname: "entries"
2218
+ })
2179
2219
  ],
2180
2220
  ChildTopicBasedOnMetadata: [
2181
2221
  field("topicID", "double", {}),
@@ -2226,10 +2266,7 @@ var CobriliAdapter = (() => {
2226
2266
  field("navigationID", "double", {}),
2227
2267
  field("title", "string", {})
2228
2268
  ],
2229
- SearchQueryMetaData: [
2230
- field("metaKey", "string", {}),
2231
- field("metaValue", "string", {})
2232
- ],
2269
+ SearchQueryMetaData: [field("metaKey", "string", {}), field("metaValue", "string", {})],
2233
2270
  SearchQueryParameters: [
2234
2271
  field("metaData", "array", { itemObjectType: "SearchQueryMetaData", optional: true })
2235
2272
  ],
@@ -2237,6 +2274,20 @@ var CobriliAdapter = (() => {
2237
2274
  field("searchID", "double", {}),
2238
2275
  field("hitRangeBegin", "int", {}),
2239
2276
  field("hitRangeEnd", "int", {})
2277
+ ],
2278
+ SearchHistoryEntryExtended: [
2279
+ field("searchID", "double", {}),
2280
+ field("hitRangeBegin", "int", {}),
2281
+ field("hitRangeEnd", "int", {}),
2282
+ field("searchID_Video", "double", {}),
2283
+ field("hitRangeBegin_Video", "int", {}),
2284
+ field("hitRangeEnd_Video", "int", {}),
2285
+ field("showVideoTopics", "boolean", {}),
2286
+ field("showStandardTopics", "boolean", {}),
2287
+ field("possible_SearchRestrictions", "array", {
2288
+ itemObjectType: "PossibleSearchRestrictionEntry",
2289
+ optional: true
2290
+ })
2240
2291
  ]
2241
2292
  };
2242
2293