knowmax-quest-types 2.10.0 → 2.11.0

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.
@@ -0,0 +1,13 @@
1
+ /** Single result from /api/metadatavalue/suggest endpoint. */
2
+ export interface IMetadataValueSuggestion {
3
+ /** Identification of metadata when requesting suggestions. Usually in format familylabel.label */
4
+ metadataDefinition: string;
5
+ /** Suggested values for metadata. */
6
+ values: IMetadataValueSuggestionItem[];
7
+ }
8
+ export interface IMetadataValueSuggestionItem {
9
+ /** Actual value. */
10
+ value: string;
11
+ /** Value with marking of query. */
12
+ highlightedValue: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -24,3 +24,4 @@ export * from './IReference';
24
24
  export * from './IDocumentAlternative';
25
25
  export * from './IMetadataForNodes';
26
26
  export * from './IMetadataForQuestId';
27
+ export * from './IMetadataValueSuggestion';
package/dist/index.js CHANGED
@@ -40,3 +40,4 @@ __exportStar(require("./IReference"), exports);
40
40
  __exportStar(require("./IDocumentAlternative"), exports);
41
41
  __exportStar(require("./IMetadataForNodes"), exports);
42
42
  __exportStar(require("./IMetadataForQuestId"), exports);
43
+ __exportStar(require("./IMetadataValueSuggestion"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -19,12 +19,12 @@
19
19
  "author": "Knowmax BV",
20
20
  "license": "MIT",
21
21
  "devDependencies": {
22
- "@types/chai": "4.3.3",
23
- "@types/mocha": "9.1.0",
24
- "chai": "4.3.6",
25
- "mocha": "9.2.2",
26
- "rimraf": "^3.0.2",
27
- "ts-mocha": "9.0.2",
28
- "typescript": "4.8.4"
22
+ "@types/chai": "4.3.4",
23
+ "@types/mocha": "10.0.1",
24
+ "chai": "4.3.7",
25
+ "mocha": "10.2.0",
26
+ "rimraf": "5.0.0",
27
+ "ts-mocha": "10.0.0",
28
+ "typescript": "4.9.5"
29
29
  }
30
30
  }