knowmax-quest-types 2.3.1 → 2.5.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.
@@ -14,25 +14,27 @@ export interface ICollectionNode {
14
14
  documentVersion?: number;
15
15
  customValue?: string;
16
16
  customLicenseId?: string;
17
+ created: string;
18
+ createdBy: string;
19
+ modified: string;
20
+ modifiedBy: string;
21
+ /** Indicates if child nodes are available for this node. */
22
+ hasChilds: boolean;
17
23
  /** Title of referenced Quest document. Either title of specific document version of document. */
18
24
  referencedTitle?: string;
19
25
  /** Version of referenced Quest document. */
20
26
  referencedVersion?: number;
27
+ /** Date of referenced Quest document. */
28
+ referencedDate?: string;
21
29
  /** Indicates if referenced Quest document is valid. */
22
30
  referenceValid?: boolean;
23
31
  /** Indicates if referenced Quest document could be located exactly. */
24
32
  referenceExact?: boolean;
25
- /** Indicates if child nodes are available for this node. */
26
- hasChilds: boolean;
27
33
  /** License information for user calling method that returns this CollectionNodeInfoEx. Only applies to nodes with a valid document reference. Possible values: Unknown, Enabled, Disabled. */
28
34
  license?: string;
29
35
  /** Indicates if this node or any node in it's childs is enabled by license (and thus has a valid document reference). */
30
36
  hasLicenseEnabled?: boolean;
31
37
  /** Indicates if this node or any node in it's childs is disabled by license (and thus has a valid document reference). */
32
38
  hasLicenseDisabled?: boolean;
33
- created: string;
34
- createdBy: string;
35
- modified: string;
36
- modifiedBy: string;
37
39
  child?: ICollectionNode[];
38
40
  }
@@ -2,6 +2,8 @@ import { IReferenceInfo } from '.';
2
2
  export interface IDataCompare {
3
3
  referenceInfo1: IReferenceInfo;
4
4
  referenceInfo2: IReferenceInfo;
5
+ /** True if versions are different. */
6
+ changed: boolean;
5
7
  /** Html string with comparison of both references. */
6
8
  html: string;
7
9
  }
@@ -0,0 +1,7 @@
1
+ import { IDocument, IDocumentVersion } from '.';
2
+ export interface IVersionMapItem {
3
+ type: 'Revision' | 'Successor' | 'Predecessor';
4
+ current: boolean;
5
+ document: IDocument;
6
+ documentVersion: IDocumentVersion;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export * from './IMetadata';
12
12
  export * from './IReferenceInfo';
13
13
  export * from './IReferenceInfoOptions';
14
14
  export * from './IVersionMapOptions';
15
+ export * from './IVersionMapItem';
15
16
  export * from './ICoverOptions';
16
17
  export * from './ICollectionDocumentReference';
17
18
  export * from './ICollection';
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -24,6 +28,7 @@ __exportStar(require("./IMetadata"), exports);
24
28
  __exportStar(require("./IReferenceInfo"), exports);
25
29
  __exportStar(require("./IReferenceInfoOptions"), exports);
26
30
  __exportStar(require("./IVersionMapOptions"), exports);
31
+ __exportStar(require("./IVersionMapItem"), exports);
27
32
  __exportStar(require("./ICoverOptions"), exports);
28
33
  __exportStar(require("./ICollectionDocumentReference"), exports);
29
34
  __exportStar(require("./ICollection"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.3.1",
3
+ "version": "2.5.0",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  "devDependencies": {
22
22
  "@types/chai": "4.3.0",
23
23
  "@types/mocha": "9.1.0",
24
- "chai": "^4.3.5",
25
- "mocha": "9.2.0",
24
+ "chai": "^4.3.6",
25
+ "mocha": "9.2.2",
26
26
  "rimraf": "^3.0.2",
27
27
  "ts-mocha": "9.0.2",
28
- "typescript": "4.5.5"
28
+ "typescript": "4.6.2"
29
29
  }
30
30
  }