knowmax-quest-types 2.23.0 → 2.24.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.
- package/dist/ICollection.d.ts +15 -15
- package/dist/ICollection.js +2 -2
- package/dist/ICollectionDocumentReference.d.ts +8 -8
- package/dist/ICollectionDocumentReference.js +2 -2
- package/dist/ICollectionNode.d.ts +46 -46
- package/dist/ICollectionNode.js +2 -2
- package/dist/ICoverInfo.d.ts +8 -8
- package/dist/ICoverInfo.js +2 -2
- package/dist/ICoverOptions.d.ts +10 -10
- package/dist/ICoverOptions.js +2 -2
- package/dist/IDataCompare.d.ts +9 -9
- package/dist/IDataCompare.js +2 -2
- package/dist/IDataCompareOptions.d.ts +10 -10
- package/dist/IDataCompareOptions.js +2 -2
- package/dist/IDataOptions.d.ts +11 -11
- package/dist/IDataOptions.js +2 -2
- package/dist/IDocument.d.ts +19 -19
- package/dist/IDocument.js +2 -2
- package/dist/IDocumentAlternative.d.ts +16 -16
- package/dist/IDocumentAlternative.js +2 -2
- package/dist/IDocumentAlternativeInfo.d.ts +9 -9
- package/dist/IDocumentAlternativeInfo.js +2 -2
- package/dist/IDocumentGroup.d.ts +13 -13
- package/dist/IDocumentGroup.js +2 -2
- package/dist/IDocumentNode.d.ts +22 -22
- package/dist/IDocumentNode.js +2 -2
- package/dist/IDocumentPredecessor.d.ts +13 -0
- package/dist/IDocumentPredecessor.js +2 -0
- package/dist/IDocumentVersion.d.ts +42 -42
- package/dist/IDocumentVersion.js +2 -2
- package/dist/IDocumentVersionWithDocumentInfo.d.ts +38 -38
- package/dist/IDocumentVersionWithDocumentInfo.js +2 -2
- package/dist/IDocumentWithVersionInfo.d.ts +6 -6
- package/dist/IDocumentWithVersionInfo.js +2 -2
- package/dist/IFavoriteInfo.d.ts +10 -10
- package/dist/IFavoriteInfo.js +2 -2
- package/dist/IImportLog.d.ts +13 -13
- package/dist/IImportLog.js +2 -2
- package/dist/IListRequest.d.ts +9 -9
- package/dist/IListRequest.js +2 -2
- package/dist/IMetadata.d.ts +9 -9
- package/dist/IMetadata.js +2 -2
- package/dist/IMetadataForNodes.d.ts +10 -10
- package/dist/IMetadataForNodes.js +2 -2
- package/dist/IMetadataForQuestId.d.ts +6 -6
- package/dist/IMetadataForQuestId.js +2 -2
- package/dist/IMetadataValueSuggestion.d.ts +13 -13
- package/dist/IMetadataValueSuggestion.js +2 -2
- package/dist/IReference.d.ts +12 -12
- package/dist/IReference.js +2 -2
- package/dist/IReferenceInfo.d.ts +45 -45
- package/dist/IReferenceInfo.js +2 -2
- package/dist/IReferenceInfo.test.d.ts +1 -1
- package/dist/IReferenceInfo.test.js +49 -49
- package/dist/IReferenceInfoOptions.d.ts +26 -26
- package/dist/IReferenceInfoOptions.js +2 -2
- package/dist/IResource.d.ts +21 -21
- package/dist/IResource.js +2 -2
- package/dist/IVersionMapItem.d.ts +7 -7
- package/dist/IVersionMapItem.js +2 -2
- package/dist/IVersionMapOptions.d.ts +9 -9
- package/dist/IVersionMapOptions.js +2 -2
- package/dist/contenttypes.d.ts +4 -4
- package/dist/contenttypes.js +7 -7
- package/dist/index.d.ts +32 -30
- package/dist/index.js +48 -46
- package/dist/licenseaccess.d.ts +3 -3
- package/dist/licenseaccess.js +6 -6
- package/dist/metadata.d.ts +7 -7
- package/dist/metadata.js +9 -9
- package/package.json +2 -2
package/dist/ICollection.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IMetadata } from '.';
|
|
2
|
-
export interface ICollection {
|
|
3
|
-
id: number;
|
|
4
|
-
label: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
/** Optional quest id of document to which collection is associated. */
|
|
8
|
-
associatedQuestId?: string;
|
|
9
|
-
modified: string;
|
|
10
|
-
modifiedBy: string;
|
|
11
|
-
created: string;
|
|
12
|
-
createdBy: string;
|
|
13
|
-
/** Optional metadata associated with colection. */
|
|
14
|
-
metadata?: IMetadata[];
|
|
15
|
-
}
|
|
1
|
+
import { IMetadata } from '.';
|
|
2
|
+
export interface ICollection {
|
|
3
|
+
id: number;
|
|
4
|
+
label: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Optional quest id of document to which collection is associated. */
|
|
8
|
+
associatedQuestId?: string;
|
|
9
|
+
modified: string;
|
|
10
|
+
modifiedBy: string;
|
|
11
|
+
created: string;
|
|
12
|
+
createdBy: string;
|
|
13
|
+
/** Optional metadata associated with colection. */
|
|
14
|
+
metadata?: IMetadata[];
|
|
15
|
+
}
|
package/dist/ICollection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ICollection } from ".";
|
|
2
|
-
export interface ICollectionDocumentReference {
|
|
3
|
-
collection: ICollection;
|
|
4
|
-
/** Describes version of document that is referenced from this collection. Null in case current version is referenced. */
|
|
5
|
-
version?: number;
|
|
6
|
-
/** Describes that document to which this collection document reference belongs is the actual version referenced. */
|
|
7
|
-
versionMatch: boolean;
|
|
8
|
-
}
|
|
1
|
+
import { ICollection } from ".";
|
|
2
|
+
export interface ICollectionDocumentReference {
|
|
3
|
+
collection: ICollection;
|
|
4
|
+
/** Describes version of document that is referenced from this collection. Null in case current version is referenced. */
|
|
5
|
+
version?: number;
|
|
6
|
+
/** Describes that document to which this collection document reference belongs is the actual version referenced. */
|
|
7
|
+
versionMatch: boolean;
|
|
8
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
export interface ICollectionNode<T extends ICollectionNode<T> = ICollectionNode<any>> {
|
|
2
|
-
/** Numeric identification of node. */
|
|
3
|
-
id: number;
|
|
4
|
-
/** Id of collection to which node belongs. */
|
|
5
|
-
collectionId: number;
|
|
6
|
-
/** Id of parent node. */
|
|
7
|
-
parentId?: number;
|
|
8
|
-
sequence: number;
|
|
9
|
-
title?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
/** Optional reference to a Quest document (without version specification). */
|
|
12
|
-
documentQuestId?: string;
|
|
13
|
-
/** Resolved numeric id of referenced document. */
|
|
14
|
-
documentId?: number;
|
|
15
|
-
/** Explicitly specified version. If omited the current version is assumed. */
|
|
16
|
-
documentVersion?: number;
|
|
17
|
-
customValue?: string;
|
|
18
|
-
customLicenseId?: string;
|
|
19
|
-
created: string;
|
|
20
|
-
createdBy: string;
|
|
21
|
-
modified: string;
|
|
22
|
-
modifiedBy: string;
|
|
23
|
-
/** Indicates if child nodes are available for this node. */
|
|
24
|
-
hasChilds: boolean;
|
|
25
|
-
/** Title of referenced Quest document. Either title of specific document version of document. */
|
|
26
|
-
referencedTitle?: string;
|
|
27
|
-
/** Version of referenced Quest document. */
|
|
28
|
-
referencedVersion?: number;
|
|
29
|
-
/** Date of referenced Quest document. */
|
|
30
|
-
referencedDate?: string;
|
|
31
|
-
/** Indicates if referenced Quest document is valid. */
|
|
32
|
-
referenceValid?: boolean;
|
|
33
|
-
/** Indicates if referenced Quest document could be located exactly. */
|
|
34
|
-
referenceExact?: boolean;
|
|
35
|
-
/** Indicates if reference Quest document has a cover. */
|
|
36
|
-
referenceCover?: boolean;
|
|
37
|
-
/** Indicates if reference Quest document root node has child nodes. If false, this document only has contents on document root node. If true document has child nodes and thus a toc. */
|
|
38
|
-
referenceRootChildNodes?: boolean;
|
|
39
|
-
/** License information for user calling method that returns this CollectionNodeInfoEx. Only applies to nodes with a valid document reference. Possible values: Unknown, Enabled, Disabled. */
|
|
40
|
-
license?: string;
|
|
41
|
-
/** Indicates if this node or any node in it's childs is enabled by license (and thus has a valid document reference). */
|
|
42
|
-
hasLicenseEnabled?: boolean;
|
|
43
|
-
/** Indicates if this node or any node in it's childs is disabled by license (and thus has a valid document reference). */
|
|
44
|
-
hasLicenseDisabled?: boolean;
|
|
45
|
-
child?: T[];
|
|
46
|
-
}
|
|
1
|
+
export interface ICollectionNode<T extends ICollectionNode<T> = ICollectionNode<any>> {
|
|
2
|
+
/** Numeric identification of node. */
|
|
3
|
+
id: number;
|
|
4
|
+
/** Id of collection to which node belongs. */
|
|
5
|
+
collectionId: number;
|
|
6
|
+
/** Id of parent node. */
|
|
7
|
+
parentId?: number;
|
|
8
|
+
sequence: number;
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
/** Optional reference to a Quest document (without version specification). */
|
|
12
|
+
documentQuestId?: string;
|
|
13
|
+
/** Resolved numeric id of referenced document. */
|
|
14
|
+
documentId?: number;
|
|
15
|
+
/** Explicitly specified version. If omited the current version is assumed. */
|
|
16
|
+
documentVersion?: number;
|
|
17
|
+
customValue?: string;
|
|
18
|
+
customLicenseId?: string;
|
|
19
|
+
created: string;
|
|
20
|
+
createdBy: string;
|
|
21
|
+
modified: string;
|
|
22
|
+
modifiedBy: string;
|
|
23
|
+
/** Indicates if child nodes are available for this node. */
|
|
24
|
+
hasChilds: boolean;
|
|
25
|
+
/** Title of referenced Quest document. Either title of specific document version of document. */
|
|
26
|
+
referencedTitle?: string;
|
|
27
|
+
/** Version of referenced Quest document. */
|
|
28
|
+
referencedVersion?: number;
|
|
29
|
+
/** Date of referenced Quest document. */
|
|
30
|
+
referencedDate?: string;
|
|
31
|
+
/** Indicates if referenced Quest document is valid. */
|
|
32
|
+
referenceValid?: boolean;
|
|
33
|
+
/** Indicates if referenced Quest document could be located exactly. */
|
|
34
|
+
referenceExact?: boolean;
|
|
35
|
+
/** Indicates if reference Quest document has a cover. */
|
|
36
|
+
referenceCover?: boolean;
|
|
37
|
+
/** Indicates if reference Quest document root node has child nodes. If false, this document only has contents on document root node. If true document has child nodes and thus a toc. */
|
|
38
|
+
referenceRootChildNodes?: boolean;
|
|
39
|
+
/** License information for user calling method that returns this CollectionNodeInfoEx. Only applies to nodes with a valid document reference. Possible values: Unknown, Enabled, Disabled. */
|
|
40
|
+
license?: string;
|
|
41
|
+
/** Indicates if this node or any node in it's childs is enabled by license (and thus has a valid document reference). */
|
|
42
|
+
hasLicenseEnabled?: boolean;
|
|
43
|
+
/** Indicates if this node or any node in it's childs is disabled by license (and thus has a valid document reference). */
|
|
44
|
+
hasLicenseDisabled?: boolean;
|
|
45
|
+
child?: T[];
|
|
46
|
+
}
|
package/dist/ICollectionNode.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/ICoverInfo.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface ICoverInfo {
|
|
2
|
-
/** Document requested or document to which DocumentVersion requested belongs has cover image specified. */
|
|
3
|
-
documentAvailable: boolean;
|
|
4
|
-
documentMimeType?: string;
|
|
5
|
-
/** DocumentVersion requested has cover image specified. */
|
|
6
|
-
versionAvailable: boolean;
|
|
7
|
-
versionMimeType?: string;
|
|
8
|
-
}
|
|
1
|
+
export interface ICoverInfo {
|
|
2
|
+
/** Document requested or document to which DocumentVersion requested belongs has cover image specified. */
|
|
3
|
+
documentAvailable: boolean;
|
|
4
|
+
documentMimeType?: string;
|
|
5
|
+
/** DocumentVersion requested has cover image specified. */
|
|
6
|
+
versionAvailable: boolean;
|
|
7
|
+
versionMimeType?: string;
|
|
8
|
+
}
|
package/dist/ICoverInfo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/ICoverOptions.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/** Options for getting cover. */
|
|
2
|
-
export interface ICoverOptions {
|
|
3
|
-
/** Return thumb instead of full image. Thumb will be of type JPG or SVG. Default true. */
|
|
4
|
-
thumb?: boolean;
|
|
5
|
-
/** If set to true only document version specific cover is returned. Otherwise allows to fall back to document specific image. Default false. */
|
|
6
|
-
versionSpecific?: boolean;
|
|
7
|
-
/** If set to true JSON reference info of requested document will be returned in case no cover image could be located.
|
|
8
|
-
* The reference info includes document meta info to allow the client to determine alternative image. Default false. */
|
|
9
|
-
softFail?: boolean;
|
|
10
|
-
}
|
|
1
|
+
/** Options for getting cover. */
|
|
2
|
+
export interface ICoverOptions {
|
|
3
|
+
/** Return thumb instead of full image. Thumb will be of type JPG or SVG. Default true. */
|
|
4
|
+
thumb?: boolean;
|
|
5
|
+
/** If set to true only document version specific cover is returned. Otherwise allows to fall back to document specific image. Default false. */
|
|
6
|
+
versionSpecific?: boolean;
|
|
7
|
+
/** If set to true JSON reference info of requested document will be returned in case no cover image could be located.
|
|
8
|
+
* The reference info includes document meta info to allow the client to determine alternative image. Default false. */
|
|
9
|
+
softFail?: boolean;
|
|
10
|
+
}
|
package/dist/ICoverOptions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/IDataCompare.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IReferenceInfo } from '.';
|
|
2
|
-
export interface IDataCompare {
|
|
3
|
-
referenceInfo1: IReferenceInfo;
|
|
4
|
-
referenceInfo2: IReferenceInfo;
|
|
5
|
-
/** True if versions are different. */
|
|
6
|
-
changed: boolean;
|
|
7
|
-
/** Html string with comparison of both references. */
|
|
8
|
-
html: string;
|
|
9
|
-
}
|
|
1
|
+
import { IReferenceInfo } from '.';
|
|
2
|
+
export interface IDataCompare {
|
|
3
|
+
referenceInfo1: IReferenceInfo;
|
|
4
|
+
referenceInfo2: IReferenceInfo;
|
|
5
|
+
/** True if versions are different. */
|
|
6
|
+
changed: boolean;
|
|
7
|
+
/** Html string with comparison of both references. */
|
|
8
|
+
html: string;
|
|
9
|
+
}
|
package/dist/IDataCompare.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,10 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/IDataOptions.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/** Options for getting document data. */
|
|
2
|
-
export interface IDataOptions {
|
|
3
|
-
allowOffline?: boolean;
|
|
4
|
-
allowInvalid?: boolean;
|
|
5
|
-
compose?: boolean | string;
|
|
6
|
-
transform?: string;
|
|
7
|
-
linkManager?: boolean;
|
|
8
|
-
linkManagerMode?: string;
|
|
9
|
-
preview?: boolean | number;
|
|
10
|
-
previewImage?: string;
|
|
11
|
-
}
|
|
1
|
+
/** Options for getting document data. */
|
|
2
|
+
export interface IDataOptions {
|
|
3
|
+
allowOffline?: boolean;
|
|
4
|
+
allowInvalid?: boolean;
|
|
5
|
+
compose?: boolean | string;
|
|
6
|
+
transform?: string;
|
|
7
|
+
linkManager?: boolean;
|
|
8
|
+
linkManagerMode?: string;
|
|
9
|
+
preview?: boolean | number;
|
|
10
|
+
previewImage?: string;
|
|
11
|
+
}
|
package/dist/IDataOptions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/IDocument.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export interface IDocument {
|
|
2
|
-
/** Internal identification. */
|
|
3
|
-
id: number;
|
|
4
|
-
/** Public Quest identification. */
|
|
5
|
-
questId: string;
|
|
6
|
-
/** Document title. */
|
|
7
|
-
title: string;
|
|
8
|
-
/** Explicit marking of document and all it's versions as archive. Not set in case Quest should infer this value. */
|
|
9
|
-
archive?: boolean;
|
|
10
|
-
/** Internal identification of optional document group to which this document belongs. */
|
|
11
|
-
documentGroupId?: number;
|
|
12
|
-
/** Quest identification of optional document group to which this document belongs. */
|
|
13
|
-
documentGroupQuestId?: string;
|
|
14
|
-
modified: string;
|
|
15
|
-
modifiedBy: string;
|
|
16
|
-
created: string;
|
|
17
|
-
createdBy: string;
|
|
18
|
-
}
|
|
19
|
-
export type IDocumentEditable = Pick<IDocument, 'questId' | 'title' | 'archive' | 'documentGroupId'>;
|
|
1
|
+
export interface IDocument {
|
|
2
|
+
/** Internal identification. */
|
|
3
|
+
id: number;
|
|
4
|
+
/** Public Quest identification. */
|
|
5
|
+
questId: string;
|
|
6
|
+
/** Document title. */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Explicit marking of document and all it's versions as archive. Not set in case Quest should infer this value. */
|
|
9
|
+
archive?: boolean;
|
|
10
|
+
/** Internal identification of optional document group to which this document belongs. */
|
|
11
|
+
documentGroupId?: number;
|
|
12
|
+
/** Quest identification of optional document group to which this document belongs. */
|
|
13
|
+
documentGroupQuestId?: string;
|
|
14
|
+
modified: string;
|
|
15
|
+
modifiedBy: string;
|
|
16
|
+
created: string;
|
|
17
|
+
createdBy: string;
|
|
18
|
+
}
|
|
19
|
+
export type IDocumentEditable = Pick<IDocument, 'questId' | 'title' | 'archive' | 'documentGroupId'>;
|
package/dist/IDocument.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { IDocumentNode, IDocumentVersion } from ".";
|
|
2
|
-
export interface IDocumentAlternative {
|
|
3
|
-
id: number;
|
|
4
|
-
documentVersionId: number;
|
|
5
|
-
documentNodeId?: number;
|
|
6
|
-
label: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
mimeType: string;
|
|
10
|
-
modified: string;
|
|
11
|
-
modifiedBy: string;
|
|
12
|
-
created: string;
|
|
13
|
-
createdBy: string;
|
|
14
|
-
documentNode?: IDocumentNode;
|
|
15
|
-
documentVersion?: IDocumentVersion;
|
|
16
|
-
}
|
|
1
|
+
import { IDocumentNode, IDocumentVersion } from ".";
|
|
2
|
+
export interface IDocumentAlternative {
|
|
3
|
+
id: number;
|
|
4
|
+
documentVersionId: number;
|
|
5
|
+
documentNodeId?: number;
|
|
6
|
+
label: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
mimeType: string;
|
|
10
|
+
modified: string;
|
|
11
|
+
modifiedBy: string;
|
|
12
|
+
created: string;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
documentNode?: IDocumentNode;
|
|
15
|
+
documentVersion?: IDocumentVersion;
|
|
16
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface IDocumentAlternativeInfo {
|
|
2
|
-
id: number;
|
|
3
|
-
label: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
mimeType: string;
|
|
7
|
-
/** Origin of document alternative. Possible values: DocumentVersion, DocumentNode */
|
|
8
|
-
origin: string;
|
|
9
|
-
}
|
|
1
|
+
export interface IDocumentAlternativeInfo {
|
|
2
|
+
id: number;
|
|
3
|
+
label: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
mimeType: string;
|
|
7
|
+
/** Origin of document alternative. Possible values: DocumentVersion, DocumentNode */
|
|
8
|
+
origin: string;
|
|
9
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/IDocumentGroup.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export interface IDocumentGroup {
|
|
2
|
-
/** Internal identification. */
|
|
3
|
-
id: number;
|
|
4
|
-
/** Quest identification for document group. */
|
|
5
|
-
questId: string;
|
|
6
|
-
/** Document group title */
|
|
7
|
-
title?: string;
|
|
8
|
-
modified: string;
|
|
9
|
-
modifiedBy: string;
|
|
10
|
-
created: string;
|
|
11
|
-
createdBy: string;
|
|
12
|
-
}
|
|
13
|
-
export type IDocumentGroupEditable = Pick<IDocumentGroup, 'questId' | 'title'>;
|
|
1
|
+
export interface IDocumentGroup {
|
|
2
|
+
/** Internal identification. */
|
|
3
|
+
id: number;
|
|
4
|
+
/** Quest identification for document group. */
|
|
5
|
+
questId: string;
|
|
6
|
+
/** Document group title */
|
|
7
|
+
title?: string;
|
|
8
|
+
modified: string;
|
|
9
|
+
modifiedBy: string;
|
|
10
|
+
created: string;
|
|
11
|
+
createdBy: string;
|
|
12
|
+
}
|
|
13
|
+
export type IDocumentGroupEditable = Pick<IDocumentGroup, 'questId' | 'title'>;
|
package/dist/IDocumentGroup.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/IDocumentNode.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { IMetadata } from ".";
|
|
2
|
-
export interface IDocumentNode<T extends IDocumentNode<T> = IDocumentNode<any>> {
|
|
3
|
-
/** Internal identification. */
|
|
4
|
-
id: number;
|
|
5
|
-
/** Public Quest identification. */
|
|
6
|
-
questId?: string;
|
|
7
|
-
/** Url to data for this node. */
|
|
8
|
-
url?: string;
|
|
9
|
-
/** Title for this document node. */
|
|
10
|
-
title?: string;
|
|
11
|
-
/** Describes Quest specific type for this document node. */
|
|
12
|
-
type: string;
|
|
13
|
-
/** True in case this document node is composable. Composable nodes can optionally be included in their parents data contents. */
|
|
14
|
-
composable: boolean;
|
|
15
|
-
/** Describes MIME type for data associated with this document node. */
|
|
16
|
-
mimeType?: string;
|
|
17
|
-
/** Describes ordinal sequence within other document nodes at same level. */
|
|
18
|
-
sequence: number;
|
|
19
|
-
/** Describes metadata for this document node. */
|
|
20
|
-
metadata?: IMetadata[];
|
|
21
|
-
child?: T[];
|
|
22
|
-
}
|
|
1
|
+
import { IMetadata } from ".";
|
|
2
|
+
export interface IDocumentNode<T extends IDocumentNode<T> = IDocumentNode<any>> {
|
|
3
|
+
/** Internal identification. */
|
|
4
|
+
id: number;
|
|
5
|
+
/** Public Quest identification. */
|
|
6
|
+
questId?: string;
|
|
7
|
+
/** Url to data for this node. */
|
|
8
|
+
url?: string;
|
|
9
|
+
/** Title for this document node. */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** Describes Quest specific type for this document node. */
|
|
12
|
+
type: string;
|
|
13
|
+
/** True in case this document node is composable. Composable nodes can optionally be included in their parents data contents. */
|
|
14
|
+
composable: boolean;
|
|
15
|
+
/** Describes MIME type for data associated with this document node. */
|
|
16
|
+
mimeType?: string;
|
|
17
|
+
/** Describes ordinal sequence within other document nodes at same level. */
|
|
18
|
+
sequence: number;
|
|
19
|
+
/** Describes metadata for this document node. */
|
|
20
|
+
metadata?: IMetadata[];
|
|
21
|
+
child?: T[];
|
|
22
|
+
}
|
package/dist/IDocumentNode.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IDocumentPredecessor {
|
|
2
|
+
/** Internal identification. */
|
|
3
|
+
id: number;
|
|
4
|
+
/** Id of document of which predecessor is decribed. */
|
|
5
|
+
documentId: number;
|
|
6
|
+
/** QuestId of predecessor. */
|
|
7
|
+
documentQuestId: string;
|
|
8
|
+
modified: string;
|
|
9
|
+
modifiedBy: string;
|
|
10
|
+
created: string;
|
|
11
|
+
createdBy: string;
|
|
12
|
+
}
|
|
13
|
+
export type IDocumentPredecessorEditable = Pick<IDocumentPredecessor, 'documentId' | 'documentQuestId'>;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export interface IDocumentVersion {
|
|
2
|
-
/** Internal identification. */
|
|
3
|
-
id: number;
|
|
4
|
-
/** Version number of this document version. */
|
|
5
|
-
version: number;
|
|
6
|
-
/** Url to data for this document version. */
|
|
7
|
-
url: string;
|
|
8
|
-
/** Title for this specific document version in case it differs from title for document to which this version belongs. */
|
|
9
|
-
title?: string;
|
|
10
|
-
/** Date time for this document version. */
|
|
11
|
-
date: string;
|
|
12
|
-
/** Reflects inferred current version setting. It's either true because it was explicitly set as current document or
|
|
13
|
-
* because it was inferred because this document is the latest online version for a document without expliciet document version marked as current.
|
|
14
|
-
*/
|
|
15
|
-
current: boolean;
|
|
16
|
-
/** Original - non inferred - current setting. Set to undefined for automatic inference by Knowmax Quest. */
|
|
17
|
-
originalCurrent?: boolean;
|
|
18
|
-
/** Reflects inferred value indiciating whether this version is considered archive. It's true in case document to which version belongs
|
|
19
|
-
* was explicitly marked archive or in case this version is older than current version for this document.
|
|
20
|
-
*/
|
|
21
|
-
archive?: boolean;
|
|
22
|
-
/** Description as set for this document version. */
|
|
23
|
-
description?: string;
|
|
24
|
-
/** Quest importer responsible for importing this document version. */
|
|
25
|
-
importerId: string;
|
|
26
|
-
/** Describes if this document version contains any document nodes. */
|
|
27
|
-
hasNodes: boolean;
|
|
28
|
-
/** When false, this document only has contents on document root node. When true document has child nodes underneath document root node. */
|
|
29
|
-
documentRootChildNodes: boolean;
|
|
30
|
-
/** True in case document version is valid. */
|
|
31
|
-
valid: boolean;
|
|
32
|
-
/** True in case document version is online. */
|
|
33
|
-
online: boolean;
|
|
34
|
-
/** Origin identification as set during data import. Custom field to describe origin of data import. */
|
|
35
|
-
originId?: string;
|
|
36
|
-
modified: string;
|
|
37
|
-
modifiedBy: string;
|
|
38
|
-
created: string;
|
|
39
|
-
createdBy: string;
|
|
40
|
-
resourceCount: number;
|
|
41
|
-
messageCount: number;
|
|
42
|
-
}
|
|
1
|
+
export interface IDocumentVersion {
|
|
2
|
+
/** Internal identification. */
|
|
3
|
+
id: number;
|
|
4
|
+
/** Version number of this document version. */
|
|
5
|
+
version: number;
|
|
6
|
+
/** Url to data for this document version. */
|
|
7
|
+
url: string;
|
|
8
|
+
/** Title for this specific document version in case it differs from title for document to which this version belongs. */
|
|
9
|
+
title?: string;
|
|
10
|
+
/** Date time for this document version. */
|
|
11
|
+
date: string;
|
|
12
|
+
/** Reflects inferred current version setting. It's either true because it was explicitly set as current document or
|
|
13
|
+
* because it was inferred because this document is the latest online version for a document without expliciet document version marked as current.
|
|
14
|
+
*/
|
|
15
|
+
current: boolean;
|
|
16
|
+
/** Original - non inferred - current setting. Set to undefined for automatic inference by Knowmax Quest. */
|
|
17
|
+
originalCurrent?: boolean;
|
|
18
|
+
/** Reflects inferred value indiciating whether this version is considered archive. It's true in case document to which version belongs
|
|
19
|
+
* was explicitly marked archive or in case this version is older than current version for this document.
|
|
20
|
+
*/
|
|
21
|
+
archive?: boolean;
|
|
22
|
+
/** Description as set for this document version. */
|
|
23
|
+
description?: string;
|
|
24
|
+
/** Quest importer responsible for importing this document version. */
|
|
25
|
+
importerId: string;
|
|
26
|
+
/** Describes if this document version contains any document nodes. */
|
|
27
|
+
hasNodes: boolean;
|
|
28
|
+
/** When false, this document only has contents on document root node. When true document has child nodes underneath document root node. */
|
|
29
|
+
documentRootChildNodes: boolean;
|
|
30
|
+
/** True in case document version is valid. */
|
|
31
|
+
valid: boolean;
|
|
32
|
+
/** True in case document version is online. */
|
|
33
|
+
online: boolean;
|
|
34
|
+
/** Origin identification as set during data import. Custom field to describe origin of data import. */
|
|
35
|
+
originId?: string;
|
|
36
|
+
modified: string;
|
|
37
|
+
modifiedBy: string;
|
|
38
|
+
created: string;
|
|
39
|
+
createdBy: string;
|
|
40
|
+
resourceCount: number;
|
|
41
|
+
messageCount: number;
|
|
42
|
+
}
|
package/dist/IDocumentVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|