knowmax-quest-types 2.0.0 → 2.1.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/{icollectionnode.d.ts → ICollectionNode.d.ts} +0 -0
- package/dist/{icollectionnode.js → ICollectionNode.js} +0 -0
- package/dist/{idataoptions.d.ts → IDataOptions.d.ts} +0 -0
- package/dist/{idataoptions.js → IDataOptions.js} +0 -0
- package/dist/{idocument.d.ts → IDocument.d.ts} +0 -0
- package/dist/{idocument.js → IDocument.js} +0 -0
- package/dist/{idocumentnode.d.ts → IDocumentNode.d.ts} +4 -1
- package/dist/{idocumentnode.js → IDocumentNode.js} +0 -0
- package/dist/{idocumentversion.d.ts → IDocumentVersion.d.ts} +0 -0
- package/dist/{idocumentversion.js → IDocumentVersion.js} +0 -0
- package/dist/{ifavoriteinfo.d.ts → IFavoriteInfo.d.ts} +0 -0
- package/dist/{ifavoriteinfo.js → IFavoriteInfo.js} +0 -0
- package/dist/{imetadata.d.ts → IMetadata.d.ts} +0 -0
- package/dist/{imetadata.js → IMetadata.js} +0 -0
- package/dist/{ireferenceinfo.d.ts → IReferenceInfo.d.ts} +3 -1
- package/dist/{ireferenceinfo.js → IReferenceInfo.js} +0 -0
- package/dist/IReferenceInfo.test.js +6 -1
- package/dist/{iversionmapoptions.d.ts → IVersionMapOptions.d.ts} +0 -0
- package/dist/{ireferenceoptions.js → IVersionMapOptions.js} +0 -0
- package/package.json +30 -29
- package/dist/ireferenceoptions.d.ts +0 -12
- package/dist/iversionmapoptions.js +0 -2
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { IMetadata } from ".";
|
|
2
|
+
export interface IDocumentNode<T extends IDocumentNode<T> = IDocumentNode<any>> {
|
|
2
3
|
/** Internal identification. */
|
|
3
4
|
id: number;
|
|
4
5
|
/** Public Quest identification. */
|
|
@@ -15,5 +16,7 @@ export interface IDocumentNode<T extends IDocumentNode<T> = 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
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDocument, IDocumentVersion, IDocumentNode, IMetadata, IFavoriteInfo, ICollectionDocumentReference, ICoverInfo, IResource } from '.';
|
|
2
|
-
export interface IReferenceInfo<T extends IDocumentNode<T> = any
|
|
2
|
+
export interface IReferenceInfo<T extends IDocumentNode<T> = IDocumentNode<any>> {
|
|
3
3
|
/** Originally requested Quest id. */
|
|
4
4
|
requestedQuestId: string;
|
|
5
5
|
/** Quest id after parsing. */
|
|
@@ -30,6 +30,8 @@ export interface IReferenceInfo<T extends IDocumentNode<T> = 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. */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "knowmax-quest-types",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Contains type definitions for communicating with Knowmax Quest.",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "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": "
|
|
23
|
-
"@types/mocha": "
|
|
24
|
-
"chai": "^4.3.4",
|
|
25
|
-
"mocha": "
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "knowmax-quest-types",
|
|
3
|
+
"version": "2.1.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.2.22",
|
|
23
|
+
"@types/mocha": "9.0.0",
|
|
24
|
+
"chai": "^4.3.4",
|
|
25
|
+
"mocha": "9.1.3",
|
|
26
|
+
"rimraf": "^3.0.2",
|
|
27
|
+
"ts-mocha": "^8.0.0",
|
|
28
|
+
"typescript": "4.5.2"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface IReferenceOptions {
|
|
2
|
-
allowOffline?: boolean;
|
|
3
|
-
allowInvalid?: boolean;
|
|
4
|
-
includeDocumentVersion?: boolean;
|
|
5
|
-
includeResource?: boolean;
|
|
6
|
-
includeDocumentNode?: boolean;
|
|
7
|
-
includeDocumentAlternative?: boolean;
|
|
8
|
-
includeMetadata?: boolean;
|
|
9
|
-
includeCollections?: boolean;
|
|
10
|
-
includeCoverInfo?: boolean;
|
|
11
|
-
includeDocumentVersionArchive?: boolean;
|
|
12
|
-
}
|