knowmax-quest-types 2.0.2 → 2.3.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,7 @@
1
+ import { IReferenceInfo } from '.';
2
+ export interface IDataCompare {
3
+ referenceInfo1: IReferenceInfo;
4
+ referenceInfo2: IReferenceInfo;
5
+ /** Html string with comparison of both references. */
6
+ html: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /** Options for getting document data comparison. */
2
+ export interface IDataCompareOptions {
3
+ id2: string;
4
+ allowOffline?: boolean;
5
+ allowInvalid?: boolean;
6
+ compose?: boolean | string;
7
+ transform?: string;
8
+ linkManager?: boolean;
9
+ linkManagerMode?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ /** Options for getting document data. */
1
2
  export interface IDataOptions {
2
3
  allowOffline?: boolean;
3
4
  allowInvalid?: boolean;
@@ -1,3 +1,4 @@
1
+ import { IMetadata } from ".";
1
2
  export interface IDocumentNode<T extends IDocumentNode<T> = IDocumentNode<any>> {
2
3
  /** Internal identification. */
3
4
  id: number;
@@ -15,5 +16,7 @@ export interface IDocumentNode<T extends IDocumentNode<T> = IDocumentNode<any>>
15
16
  mimeType?: string;
16
17
  /** Describes ordinal sequence within other document nodes at same level. */
17
18
  sequence: number;
19
+ /** Describes metadata for this document node. */
20
+ metadata?: IMetadata[];
18
21
  child?: T[];
19
22
  }
@@ -30,6 +30,8 @@ export interface IReferenceInfo<T extends IDocumentNode<T> = IDocumentNode<any>>
30
30
  coverInfo?: ICoverInfo;
31
31
  /** Set for user calling this method. Only for users authenticated by Knowmax License System. Possible values: Unknown, Enabled, Disabled */
32
32
  licenseItemAccess?: string;
33
+ /** Security labels for document. Only for users authenticated by Knowmax License System. */
34
+ securityLabels?: string[];
33
35
  /** Set for user calling this method. Only for users with a custom identity in an associated application. */
34
36
  favoriteInfo?: IFavoriteInfo;
35
37
  /** Key for this document version in search index. */
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './contenttypes';
2
2
  export * from './licenseaccess';
3
3
  export * from './ICollectionNode';
4
4
  export * from './IDataOptions';
5
+ export * from './IDataCompareOptions';
5
6
  export * from './IDocument';
6
7
  export * from './IDocumentNode';
7
8
  export * from './IDocumentVersion';
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ __exportStar(require("./contenttypes"), exports);
14
14
  __exportStar(require("./licenseaccess"), exports);
15
15
  __exportStar(require("./ICollectionNode"), exports);
16
16
  __exportStar(require("./IDataOptions"), exports);
17
+ __exportStar(require("./IDataCompareOptions"), exports);
17
18
  __exportStar(require("./IDocument"), exports);
18
19
  __exportStar(require("./IDocumentNode"), exports);
19
20
  __exportStar(require("./IDocumentVersion"), exports);
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "name": "knowmax-quest-types",
3
- "version": "2.0.2",
4
- "description": "Contains type definitions for communicating with Knowmax Quest.",
5
- "main": "./dist/index.js",
6
- "scripts": {
7
- "build": "rimraf ./dist && tsc",
8
- "test": "ts-mocha **/*.test.ts"
9
- },
10
- "files": [
11
- "dist",
12
- "LICENSE",
13
- "README.md"
14
- ],
15
- "keywords": [
16
- "knowmax",
17
- "quest"
18
- ],
19
- "author": "Knowmax BV",
20
- "license": "MIT",
21
- "devDependencies": {
22
- "@types/chai": "^4.2.19",
23
- "@types/mocha": "^8.2.2",
24
- "chai": "^4.3.4",
25
- "mocha": "^9.0.1",
26
- "rimraf": "^3.0.2",
27
- "ts-mocha": "^8.0.0",
28
- "typescript": "4.3.5"
29
- }
1
+ {
2
+ "name": "knowmax-quest-types",
3
+ "version": "2.3.0",
4
+ "description": "Contains type definitions for communicating with Knowmax Quest.",
5
+ "main": "./dist/index.js",
6
+ "scripts": {
7
+ "build": "rimraf ./dist && tsc",
8
+ "test": "ts-mocha **/*.test.ts"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "LICENSE",
13
+ "README.md"
14
+ ],
15
+ "keywords": [
16
+ "knowmax",
17
+ "quest"
18
+ ],
19
+ "author": "Knowmax BV",
20
+ "license": "MIT",
21
+ "devDependencies": {
22
+ "@types/chai": "4.3.0",
23
+ "@types/mocha": "9.1.0",
24
+ "chai": "^4.3.5",
25
+ "mocha": "9.2.0",
26
+ "rimraf": "^3.0.2",
27
+ "ts-mocha": "9.0.2",
28
+ "typescript": "4.5.5"
29
+ }
30
30
  }