knowmax-quest-types 2.23.1 → 2.25.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 +15 -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 -31
- package/dist/index.js +48 -47
- 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
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/** Refelcts document version with key document info. Closely represents document version as stored in database. */
|
|
2
|
-
export interface IDocumentVersionWithDocumentInfo {
|
|
3
|
-
/** Internal identification. */
|
|
4
|
-
id: number;
|
|
5
|
-
/** Internal identification for document to which version belongs. */
|
|
6
|
-
documentId: number;
|
|
7
|
-
/** Quest identification of document to which version belongs. */
|
|
8
|
-
questId: string;
|
|
9
|
-
/** Version number of this document version. */
|
|
10
|
-
version: number;
|
|
11
|
-
/** Title for this specific document version in case it differs from title for document to which this version belongs. */
|
|
12
|
-
title?: string;
|
|
13
|
-
/** Title of document to which this version belongs. */
|
|
14
|
-
documentTitle: string;
|
|
15
|
-
/** Date time for this document version. */
|
|
16
|
-
date: string;
|
|
17
|
-
/** Reflects optional setting for execlusive current version. Only one version which belongs to a document is allowed to be explicitly marked as current. If none
|
|
18
|
-
* is marked, automatic inference will be used to determine current version. */
|
|
19
|
-
current?: boolean;
|
|
20
|
-
/** Description as set for this document version. */
|
|
21
|
-
description?: string;
|
|
22
|
-
/** Quest importer responsible for importing this document version. */
|
|
23
|
-
importerId: string;
|
|
24
|
-
/** When false, this document only has contents on document root node. When true document has child nodes underneath document root node. */
|
|
25
|
-
documentRootChildNodes: boolean;
|
|
26
|
-
/** True in case document version is valid. */
|
|
27
|
-
valid: boolean;
|
|
28
|
-
/** True in case document version is online. */
|
|
29
|
-
online: boolean;
|
|
30
|
-
/** Set while document is being imported. */
|
|
31
|
-
importing?: boolean;
|
|
32
|
-
/** Origin identification as set during data import. Custom field to describe origin of data import. */
|
|
33
|
-
originId?: string;
|
|
34
|
-
modified: string;
|
|
35
|
-
modifiedBy: string;
|
|
36
|
-
created: string;
|
|
37
|
-
createdBy: string;
|
|
38
|
-
}
|
|
1
|
+
/** Refelcts document version with key document info. Closely represents document version as stored in database. */
|
|
2
|
+
export interface IDocumentVersionWithDocumentInfo {
|
|
3
|
+
/** Internal identification. */
|
|
4
|
+
id: number;
|
|
5
|
+
/** Internal identification for document to which version belongs. */
|
|
6
|
+
documentId: number;
|
|
7
|
+
/** Quest identification of document to which version belongs. */
|
|
8
|
+
questId: string;
|
|
9
|
+
/** Version number of this document version. */
|
|
10
|
+
version: number;
|
|
11
|
+
/** Title for this specific document version in case it differs from title for document to which this version belongs. */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** Title of document to which this version belongs. */
|
|
14
|
+
documentTitle: string;
|
|
15
|
+
/** Date time for this document version. */
|
|
16
|
+
date: string;
|
|
17
|
+
/** Reflects optional setting for execlusive current version. Only one version which belongs to a document is allowed to be explicitly marked as current. If none
|
|
18
|
+
* is marked, automatic inference will be used to determine current version. */
|
|
19
|
+
current?: boolean;
|
|
20
|
+
/** Description as set for this document version. */
|
|
21
|
+
description?: string;
|
|
22
|
+
/** Quest importer responsible for importing this document version. */
|
|
23
|
+
importerId: string;
|
|
24
|
+
/** When false, this document only has contents on document root node. When true document has child nodes underneath document root node. */
|
|
25
|
+
documentRootChildNodes: boolean;
|
|
26
|
+
/** True in case document version is valid. */
|
|
27
|
+
valid: boolean;
|
|
28
|
+
/** True in case document version is online. */
|
|
29
|
+
online: boolean;
|
|
30
|
+
/** Set while document is being imported. */
|
|
31
|
+
importing?: boolean;
|
|
32
|
+
/** Origin identification as set during data import. Custom field to describe origin of data import. */
|
|
33
|
+
originId?: string;
|
|
34
|
+
modified: string;
|
|
35
|
+
modifiedBy: string;
|
|
36
|
+
created: string;
|
|
37
|
+
createdBy: string;
|
|
38
|
+
}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import { IDocument } from '.';
|
|
2
|
-
export interface IDocumentWithVersionInfo extends IDocument {
|
|
3
|
-
versionCount: number;
|
|
4
|
-
firstVersion: string;
|
|
5
|
-
lastVersion: string;
|
|
6
|
-
}
|
|
1
|
+
import { IDocument } from '.';
|
|
2
|
+
export interface IDocumentWithVersionInfo extends IDocument {
|
|
3
|
+
versionCount: number;
|
|
4
|
+
firstVersion: string;
|
|
5
|
+
lastVersion: string;
|
|
6
|
+
}
|
|
@@ -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/IFavoriteInfo.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface IFavoriteInfo {
|
|
2
|
-
/** Reference is a direct favorite. */
|
|
3
|
-
exact: boolean;
|
|
4
|
-
/** Document is direct favorite or user has a favorite in document. */
|
|
5
|
-
document: boolean;
|
|
6
|
-
/** DocumentVersion is direct favorite or user has favorite in documentVersion. */
|
|
7
|
-
documentVersion: boolean;
|
|
8
|
-
/** DocumentNode is direct favorite. Must be an exact match. */
|
|
9
|
-
documentNode: boolean;
|
|
10
|
-
}
|
|
1
|
+
export interface IFavoriteInfo {
|
|
2
|
+
/** Reference is a direct favorite. */
|
|
3
|
+
exact: boolean;
|
|
4
|
+
/** Document is direct favorite or user has a favorite in document. */
|
|
5
|
+
document: boolean;
|
|
6
|
+
/** DocumentVersion is direct favorite or user has favorite in documentVersion. */
|
|
7
|
+
documentVersion: boolean;
|
|
8
|
+
/** DocumentNode is direct favorite. Must be an exact match. */
|
|
9
|
+
documentNode: boolean;
|
|
10
|
+
}
|
package/dist/IFavoriteInfo.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/IImportLog.d.ts
CHANGED
|
@@ -1,13 +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
|
-
}
|
|
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
|
+
}
|
package/dist/IImportLog.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/IListRequest.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/** Decribes request for lists from API. */
|
|
2
|
-
export interface IListRequest {
|
|
3
|
-
orderBy?: string;
|
|
4
|
-
search?: string;
|
|
5
|
-
filter?: string;
|
|
6
|
-
take?: number;
|
|
7
|
-
skip: number;
|
|
8
|
-
count: boolean;
|
|
9
|
-
}
|
|
1
|
+
/** Decribes request for lists from API. */
|
|
2
|
+
export interface IListRequest {
|
|
3
|
+
orderBy?: string;
|
|
4
|
+
search?: string;
|
|
5
|
+
filter?: string;
|
|
6
|
+
take?: number;
|
|
7
|
+
skip: number;
|
|
8
|
+
count: boolean;
|
|
9
|
+
}
|
package/dist/IListRequest.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/IMetadata.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface IMetadata {
|
|
2
|
-
familyLabel: string;
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
dataTypeHint?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
/** Origin of value. Possible values: Document, DocumentVersion, DocumentNode, Dynamic, DynamicIndexable, Collection */
|
|
8
|
-
origin?: string;
|
|
9
|
-
}
|
|
1
|
+
export interface IMetadata {
|
|
2
|
+
familyLabel: string;
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
dataTypeHint?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Origin of value. Possible values: Document, DocumentVersion, DocumentNode, Dynamic, DynamicIndexable, Collection */
|
|
8
|
+
origin?: string;
|
|
9
|
+
}
|
package/dist/IMetadata.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
|
-
import { IMetadataForQuestId } from ".";
|
|
2
|
-
/** Metadata for a collection of nodes within a document version. */
|
|
3
|
-
export interface IMetadataForNodes {
|
|
4
|
-
/** Identification of document to which these nodes belong. Without version specification. */
|
|
5
|
-
questId: string;
|
|
6
|
-
/** Version number of document version to which these nodes belong. */
|
|
7
|
-
version: number;
|
|
8
|
-
/** All hierarchically child nodes of document node specified by questId. */
|
|
9
|
-
nodes: IMetadataForQuestId[];
|
|
10
|
-
}
|
|
1
|
+
import { IMetadataForQuestId } from ".";
|
|
2
|
+
/** Metadata for a collection of nodes within a document version. */
|
|
3
|
+
export interface IMetadataForNodes {
|
|
4
|
+
/** Identification of document to which these nodes belong. Without version specification. */
|
|
5
|
+
questId: string;
|
|
6
|
+
/** Version number of document version to which these nodes belong. */
|
|
7
|
+
version: number;
|
|
8
|
+
/** All hierarchically child nodes of document node specified by questId. */
|
|
9
|
+
nodes: IMetadataForQuestId[];
|
|
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 });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IMetadata } from '.';
|
|
2
|
-
export interface IMetadataForQuestId {
|
|
3
|
-
questId: string;
|
|
4
|
-
/** List of metadata for document, document version or document node with given Quest id. */
|
|
5
|
-
list: IMetadata[];
|
|
6
|
-
}
|
|
1
|
+
import { IMetadata } from '.';
|
|
2
|
+
export interface IMetadataForQuestId {
|
|
3
|
+
questId: string;
|
|
4
|
+
/** List of metadata for document, document version or document node with given Quest id. */
|
|
5
|
+
list: IMetadata[];
|
|
6
|
+
}
|
|
@@ -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,13 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -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/IReference.d.ts
CHANGED
|
@@ -1,12 +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
|
-
}
|
|
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
|
+
}
|
package/dist/IReference.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/IReferenceInfo.d.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { IDocument, IDocumentVersion, IDocumentNode, IMetadata, IFavoriteInfo, ICollectionDocumentReference, ICoverInfo, IResource, IDocumentAlternativeInfo } from '.';
|
|
2
|
-
export interface IReferenceInfo<T extends IDocumentNode<T> = IDocumentNode<any>> {
|
|
3
|
-
/** Originally requested Quest id. */
|
|
4
|
-
requestedQuestId: string;
|
|
5
|
-
/** Quest id after parsing. */
|
|
6
|
-
parsedQuestId: string;
|
|
7
|
-
/** Contains last part of Quest id in case reference was partly located but last part could not be located. */
|
|
8
|
-
questIdLeftover?: string;
|
|
9
|
-
/** Contains located reference. In case a version was specified, it includes explicit version number. */
|
|
10
|
-
questId: string;
|
|
11
|
-
/** True if requested item was exactly located. */
|
|
12
|
-
located: boolean;
|
|
13
|
-
/** Contains type of reference located. */
|
|
14
|
-
type: string;
|
|
15
|
-
/** Set in case of error while resolving reference. Possible values: InvalidInput, InvalidIdentification, DocumentNotFound, DocumentVersionNotFound, DocumentNodeNotFound, DocumentAlternativeNotFound. */
|
|
16
|
-
error?: string;
|
|
17
|
-
/** Document referenced by Quest id. */
|
|
18
|
-
document?: IDocument;
|
|
19
|
-
/** Document version referenced by Quest id (if any). */
|
|
20
|
-
documentVersion?: IDocumentVersion;
|
|
21
|
-
/** Document node referenced by Quest id (if any). */
|
|
22
|
-
documentNode?: T;
|
|
23
|
-
/** Resource referenced by Quest id (if any). */
|
|
24
|
-
resource?: IResource;
|
|
25
|
-
/** Info about document alternative referenced by Quest id (if any). */
|
|
26
|
-
documentAlternative?: IDocumentAlternativeInfo;
|
|
27
|
-
/** Metadata that belongs to Quest id (if requested). */
|
|
28
|
-
metadata: IMetadata[];
|
|
29
|
-
/** Collections in which document referenced by Quest id occurs (if requested). */
|
|
30
|
-
collections: ICollectionDocumentReference[];
|
|
31
|
-
/** List of info about document alternatives referenced by Quest id (if requested). */
|
|
32
|
-
documentAlternativesInfo?: IDocumentAlternativeInfo[];
|
|
33
|
-
/** Information about cover image for document and/or documentversion specified by Quest id (if requested). */
|
|
34
|
-
coverInfo?: ICoverInfo;
|
|
35
|
-
/** Set for user calling this method. Only for users authenticated by Knowmax License System. Possible values: Unknown, Enabled, Disabled */
|
|
36
|
-
licenseItemAccess?: string;
|
|
37
|
-
/** Security labels for document. Only for users authenticated by Knowmax License System. */
|
|
38
|
-
securityLabels?: string[];
|
|
39
|
-
/** Set for user calling this method. Only for users with a custom identity in an associated application. */
|
|
40
|
-
favoriteInfo?: IFavoriteInfo;
|
|
41
|
-
/** Key for this document version in search index. */
|
|
42
|
-
documentVersionIndexKey?: string;
|
|
43
|
-
/** Key for this document node in search index. */
|
|
44
|
-
documentNodeIndexKey?: string;
|
|
45
|
-
}
|
|
1
|
+
import { IDocument, IDocumentVersion, IDocumentNode, IMetadata, IFavoriteInfo, ICollectionDocumentReference, ICoverInfo, IResource, IDocumentAlternativeInfo } from '.';
|
|
2
|
+
export interface IReferenceInfo<T extends IDocumentNode<T> = IDocumentNode<any>> {
|
|
3
|
+
/** Originally requested Quest id. */
|
|
4
|
+
requestedQuestId: string;
|
|
5
|
+
/** Quest id after parsing. */
|
|
6
|
+
parsedQuestId: string;
|
|
7
|
+
/** Contains last part of Quest id in case reference was partly located but last part could not be located. */
|
|
8
|
+
questIdLeftover?: string;
|
|
9
|
+
/** Contains located reference. In case a version was specified, it includes explicit version number. */
|
|
10
|
+
questId: string;
|
|
11
|
+
/** True if requested item was exactly located. */
|
|
12
|
+
located: boolean;
|
|
13
|
+
/** Contains type of reference located. */
|
|
14
|
+
type: string;
|
|
15
|
+
/** Set in case of error while resolving reference. Possible values: InvalidInput, InvalidIdentification, DocumentNotFound, DocumentVersionNotFound, DocumentNodeNotFound, DocumentAlternativeNotFound. */
|
|
16
|
+
error?: string;
|
|
17
|
+
/** Document referenced by Quest id. */
|
|
18
|
+
document?: IDocument;
|
|
19
|
+
/** Document version referenced by Quest id (if any). */
|
|
20
|
+
documentVersion?: IDocumentVersion;
|
|
21
|
+
/** Document node referenced by Quest id (if any). */
|
|
22
|
+
documentNode?: T;
|
|
23
|
+
/** Resource referenced by Quest id (if any). */
|
|
24
|
+
resource?: IResource;
|
|
25
|
+
/** Info about document alternative referenced by Quest id (if any). */
|
|
26
|
+
documentAlternative?: IDocumentAlternativeInfo;
|
|
27
|
+
/** Metadata that belongs to Quest id (if requested). */
|
|
28
|
+
metadata: IMetadata[];
|
|
29
|
+
/** Collections in which document referenced by Quest id occurs (if requested). */
|
|
30
|
+
collections: ICollectionDocumentReference[];
|
|
31
|
+
/** List of info about document alternatives referenced by Quest id (if requested). */
|
|
32
|
+
documentAlternativesInfo?: IDocumentAlternativeInfo[];
|
|
33
|
+
/** Information about cover image for document and/or documentversion specified by Quest id (if requested). */
|
|
34
|
+
coverInfo?: ICoverInfo;
|
|
35
|
+
/** Set for user calling this method. Only for users authenticated by Knowmax License System. Possible values: Unknown, Enabled, Disabled */
|
|
36
|
+
licenseItemAccess?: string;
|
|
37
|
+
/** Security labels for document. Only for users authenticated by Knowmax License System. */
|
|
38
|
+
securityLabels?: string[];
|
|
39
|
+
/** Set for user calling this method. Only for users with a custom identity in an associated application. */
|
|
40
|
+
favoriteInfo?: IFavoriteInfo;
|
|
41
|
+
/** Key for this document version in search index. */
|
|
42
|
+
documentVersionIndexKey?: string;
|
|
43
|
+
/** Key for this document node in search index. */
|
|
44
|
+
documentNodeIndexKey?: string;
|
|
45
|
+
}
|
package/dist/IReferenceInfo.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 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const chai_1 = require("chai");
|
|
4
|
-
it('IReference works without generic', () => {
|
|
5
|
-
const info = {
|
|
6
|
-
requestedQuestId: '',
|
|
7
|
-
parsedQuestId: '',
|
|
8
|
-
questId: '',
|
|
9
|
-
located: true,
|
|
10
|
-
type: '',
|
|
11
|
-
document: {
|
|
12
|
-
created: '',
|
|
13
|
-
createdBy: '',
|
|
14
|
-
id: 0,
|
|
15
|
-
questId: '',
|
|
16
|
-
title: '',
|
|
17
|
-
modified: '',
|
|
18
|
-
modifiedBy: ''
|
|
19
|
-
},
|
|
20
|
-
documentVersion: {
|
|
21
|
-
modifiedBy: '',
|
|
22
|
-
online: true,
|
|
23
|
-
modified: '',
|
|
24
|
-
createdBy: '',
|
|
25
|
-
created: '',
|
|
26
|
-
current: true,
|
|
27
|
-
id: 0,
|
|
28
|
-
date: '',
|
|
29
|
-
hasNodes: false,
|
|
30
|
-
documentRootChildNodes: false,
|
|
31
|
-
importerId: '',
|
|
32
|
-
messageCount: 0,
|
|
33
|
-
originId: '',
|
|
34
|
-
resourceCount: 0,
|
|
35
|
-
url: '',
|
|
36
|
-
valid: true,
|
|
37
|
-
version: 1
|
|
38
|
-
},
|
|
39
|
-
documentNode: {
|
|
40
|
-
id: 0,
|
|
41
|
-
type: '',
|
|
42
|
-
composable: false,
|
|
43
|
-
sequence: 0
|
|
44
|
-
},
|
|
45
|
-
metadata: [],
|
|
46
|
-
collections: [],
|
|
47
|
-
};
|
|
48
|
-
chai_1.assert.isDefined(info);
|
|
49
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const chai_1 = require("chai");
|
|
4
|
+
it('IReference works without generic', () => {
|
|
5
|
+
const info = {
|
|
6
|
+
requestedQuestId: '',
|
|
7
|
+
parsedQuestId: '',
|
|
8
|
+
questId: '',
|
|
9
|
+
located: true,
|
|
10
|
+
type: '',
|
|
11
|
+
document: {
|
|
12
|
+
created: '',
|
|
13
|
+
createdBy: '',
|
|
14
|
+
id: 0,
|
|
15
|
+
questId: '',
|
|
16
|
+
title: '',
|
|
17
|
+
modified: '',
|
|
18
|
+
modifiedBy: ''
|
|
19
|
+
},
|
|
20
|
+
documentVersion: {
|
|
21
|
+
modifiedBy: '',
|
|
22
|
+
online: true,
|
|
23
|
+
modified: '',
|
|
24
|
+
createdBy: '',
|
|
25
|
+
created: '',
|
|
26
|
+
current: true,
|
|
27
|
+
id: 0,
|
|
28
|
+
date: '',
|
|
29
|
+
hasNodes: false,
|
|
30
|
+
documentRootChildNodes: false,
|
|
31
|
+
importerId: '',
|
|
32
|
+
messageCount: 0,
|
|
33
|
+
originId: '',
|
|
34
|
+
resourceCount: 0,
|
|
35
|
+
url: '',
|
|
36
|
+
valid: true,
|
|
37
|
+
version: 1
|
|
38
|
+
},
|
|
39
|
+
documentNode: {
|
|
40
|
+
id: 0,
|
|
41
|
+
type: '',
|
|
42
|
+
composable: false,
|
|
43
|
+
sequence: 0
|
|
44
|
+
},
|
|
45
|
+
metadata: [],
|
|
46
|
+
collections: [],
|
|
47
|
+
};
|
|
48
|
+
chai_1.assert.isDefined(info);
|
|
49
|
+
});
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export interface IReferenceInfoOptions {
|
|
2
|
-
/** Get information for document versions marked offline. Specific version required. */
|
|
3
|
-
allowOffline?: boolean;
|
|
4
|
-
/** Get information for document versions marked invalid. Specific version required. */
|
|
5
|
-
allowInvalid?: boolean;
|
|
6
|
-
/** Include information about requested version. */
|
|
7
|
-
includeDocumentVersion?: boolean;
|
|
8
|
-
/** Include information about requested resource. */
|
|
9
|
-
includeResource?: boolean;
|
|
10
|
-
/** Include information about requested document node. */
|
|
11
|
-
includeDocumentNode?: boolean;
|
|
12
|
-
/** Include information about requested document alternative. */
|
|
13
|
-
includeDocumentAlternative?: boolean;
|
|
14
|
-
/** Include metadata. */
|
|
15
|
-
includeMetadata?: boolean;
|
|
16
|
-
/** Include collections in which document exists. */
|
|
17
|
-
includeCollections?: boolean;
|
|
18
|
-
/** Include availability information about cover image. */
|
|
19
|
-
includeCoverInfo?: boolean;
|
|
20
|
-
/** Include archive status of document version. Make sure to set includeDocumentVersion to true if archive value is required. */
|
|
21
|
-
includeDocumentVersionArchive?: boolean;
|
|
22
|
-
/** Include information about available document alternatives at level of reference (either documentversion of documentnode). */
|
|
23
|
-
includeDocumentAlternativesInfo?: boolean;
|
|
24
|
-
/** Include information about optional document group to which document referenced belongs. */
|
|
25
|
-
includeDocumentGroup?: boolean;
|
|
26
|
-
}
|
|
1
|
+
export interface IReferenceInfoOptions {
|
|
2
|
+
/** Get information for document versions marked offline. Specific version required. */
|
|
3
|
+
allowOffline?: boolean;
|
|
4
|
+
/** Get information for document versions marked invalid. Specific version required. */
|
|
5
|
+
allowInvalid?: boolean;
|
|
6
|
+
/** Include information about requested version. */
|
|
7
|
+
includeDocumentVersion?: boolean;
|
|
8
|
+
/** Include information about requested resource. */
|
|
9
|
+
includeResource?: boolean;
|
|
10
|
+
/** Include information about requested document node. */
|
|
11
|
+
includeDocumentNode?: boolean;
|
|
12
|
+
/** Include information about requested document alternative. */
|
|
13
|
+
includeDocumentAlternative?: boolean;
|
|
14
|
+
/** Include metadata. */
|
|
15
|
+
includeMetadata?: boolean;
|
|
16
|
+
/** Include collections in which document exists. */
|
|
17
|
+
includeCollections?: boolean;
|
|
18
|
+
/** Include availability information about cover image. */
|
|
19
|
+
includeCoverInfo?: boolean;
|
|
20
|
+
/** Include archive status of document version. Make sure to set includeDocumentVersion to true if archive value is required. */
|
|
21
|
+
includeDocumentVersionArchive?: boolean;
|
|
22
|
+
/** Include information about available document alternatives at level of reference (either documentversion of documentnode). */
|
|
23
|
+
includeDocumentAlternativesInfo?: boolean;
|
|
24
|
+
/** Include information about optional document group to which document referenced belongs. */
|
|
25
|
+
includeDocumentGroup?: boolean;
|
|
26
|
+
}
|
|
@@ -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/IResource.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { IDocumentVersion } from ".";
|
|
2
|
-
export interface IResource {
|
|
3
|
-
/** Internal identification. */
|
|
4
|
-
id: number;
|
|
5
|
-
/** Internal id of document version to which resource belongs. */
|
|
6
|
-
documentVersionId: number;
|
|
7
|
-
/** Name of resource. */
|
|
8
|
-
name: string;
|
|
9
|
-
/** Url to data for this resource. */
|
|
10
|
-
url: string;
|
|
11
|
-
/** Title of this resource. */
|
|
12
|
-
title: string;
|
|
13
|
-
/** Size in bytes of this resource. */
|
|
14
|
-
size: number;
|
|
15
|
-
/** MIME type which describes data associated with this resource. */
|
|
16
|
-
mimeType: string;
|
|
17
|
-
/** Optional group identification to which resource belongs. */
|
|
18
|
-
group?: string;
|
|
19
|
-
/** Document version info. If requested. */
|
|
20
|
-
documentVersion?: IDocumentVersion;
|
|
21
|
-
}
|
|
1
|
+
import { IDocumentVersion } from ".";
|
|
2
|
+
export interface IResource {
|
|
3
|
+
/** Internal identification. */
|
|
4
|
+
id: number;
|
|
5
|
+
/** Internal id of document version to which resource belongs. */
|
|
6
|
+
documentVersionId: number;
|
|
7
|
+
/** Name of resource. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Url to data for this resource. */
|
|
10
|
+
url: string;
|
|
11
|
+
/** Title of this resource. */
|
|
12
|
+
title: string;
|
|
13
|
+
/** Size in bytes of this resource. */
|
|
14
|
+
size: number;
|
|
15
|
+
/** MIME type which describes data associated with this resource. */
|
|
16
|
+
mimeType: string;
|
|
17
|
+
/** Optional group identification to which resource belongs. */
|
|
18
|
+
group?: string;
|
|
19
|
+
/** Document version info. If requested. */
|
|
20
|
+
documentVersion?: IDocumentVersion;
|
|
21
|
+
}
|