knowmax-quest-types 2.5.0 → 2.6.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.
@@ -1,4 +1,4 @@
1
- export interface ICollectionNode {
1
+ export interface ICollectionNode<T extends ICollectionNode<T> = ICollectionNode<any>> {
2
2
  /** Numeric identification of node. */
3
3
  id: number;
4
4
  /** Id of parent node. */
@@ -36,5 +36,5 @@ export interface ICollectionNode {
36
36
  hasLicenseEnabled?: boolean;
37
37
  /** Indicates if this node or any node in it's childs is disabled by license (and thus has a valid document reference). */
38
38
  hasLicenseDisabled?: boolean;
39
- child?: ICollectionNode[];
39
+ child?: T[];
40
40
  }
@@ -28,7 +28,7 @@ export interface IDocumentVersion {
28
28
  /** True in case document version is online. */
29
29
  online: boolean;
30
30
  /** Origin identification as set during data import. Custom field to describe origin of data import. */
31
- originId: string;
31
+ originId?: string;
32
32
  modified: string;
33
33
  modifiedBy: string;
34
34
  created: string;
@@ -0,0 +1,13 @@
1
+ import { IDocumentNode, IDocumentVersion } from ".";
2
+ export interface IImportlog {
3
+ id: number;
4
+ documentVersionId: number;
5
+ documentNodeId?: number;
6
+ type: string;
7
+ subject: string;
8
+ message: string;
9
+ details: string;
10
+ created: string;
11
+ documentNode?: IDocumentNode;
12
+ documentVersion?: IDocumentVersion;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { IDocumentNode, IDocumentVersion } from ".";
2
+ export interface IReference {
3
+ id: number;
4
+ documentVersionId: number;
5
+ documentNodeId?: number;
6
+ type: string;
7
+ value: string;
8
+ domain: string;
9
+ count: number;
10
+ documentNode?: IDocumentNode;
11
+ documentVersion?: IDocumentVersion;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
+ import { IDocumentVersion } from ".";
1
2
  export interface IResource {
2
3
  /** Internal identification. */
3
4
  id: number;
5
+ /** Internal id of document version to which resource belongs. */
6
+ documentVersionId: number;
4
7
  /** Name of resource. */
5
8
  name: string;
6
9
  /** Url to data for this resource. */
@@ -13,4 +16,6 @@ export interface IResource {
13
16
  mimeType: string;
14
17
  /** Optional group identification to which resource belongs. */
15
18
  group?: string;
19
+ /** Document version info. If requested. */
20
+ documentVersion?: IDocumentVersion;
16
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -25,6 +25,6 @@
25
25
  "mocha": "9.2.2",
26
26
  "rimraf": "^3.0.2",
27
27
  "ts-mocha": "9.0.2",
28
- "typescript": "4.6.2"
28
+ "typescript": "4.7.4"
29
29
  }
30
30
  }