knowmax-quest-types 2.12.0 → 2.13.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.
@@ -0,0 +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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -35,5 +35,4 @@ export interface IDocumentVersion {
35
35
  createdBy: string;
36
36
  resourceCount: number;
37
37
  messageCount: number;
38
- documentAlternativeCount: number;
39
38
  }
@@ -1,4 +1,4 @@
1
- import { IDocument, IDocumentVersion, IDocumentNode, IMetadata, IFavoriteInfo, ICollectionDocumentReference, ICoverInfo, IResource } from '.';
1
+ import { IDocument, IDocumentVersion, IDocumentNode, IMetadata, IFavoriteInfo, ICollectionDocumentReference, ICoverInfo, IResource, IDocumentAlternativeInfo } from '.';
2
2
  export interface IReferenceInfo<T extends IDocumentNode<T> = IDocumentNode<any>> {
3
3
  /** Originally requested Quest id. */
4
4
  requestedQuestId: string;
@@ -26,6 +26,8 @@ export interface IReferenceInfo<T extends IDocumentNode<T> = IDocumentNode<any>>
26
26
  metadata: IMetadata[];
27
27
  /** Collections in which document referenced by Quest id occurs (if requested). */
28
28
  collections: ICollectionDocumentReference[];
29
+ /** List of info about document alternatives referenced by Quest id (if requested). */
30
+ documentAlternativesInfo?: IDocumentAlternativeInfo[];
29
31
  /** Information about cover image for document and/or documentversion specified by Quest id (if requested). */
30
32
  coverInfo?: ICoverInfo;
31
33
  /** Set for user calling this method. Only for users authenticated by Knowmax License System. Possible values: Unknown, Enabled, Disabled */
@@ -26,7 +26,6 @@ it('IReference works without generic', () => {
26
26
  current: true,
27
27
  id: 0,
28
28
  date: '',
29
- documentAlternativeCount: 0,
30
29
  hasNodes: false,
31
30
  importerId: '',
32
31
  messageCount: 0,
package/dist/index.d.ts CHANGED
@@ -25,4 +25,5 @@ export * from './IDocumentAlternative';
25
25
  export * from './IMetadataForNodes';
26
26
  export * from './IMetadataForQuestId';
27
27
  export * from './IMetadataValueSuggestion';
28
+ export * from './IDocumentAlternativeInfo';
28
29
  export * from './metadata';
package/dist/index.js CHANGED
@@ -41,4 +41,5 @@ __exportStar(require("./IDocumentAlternative"), exports);
41
41
  __exportStar(require("./IMetadataForNodes"), exports);
42
42
  __exportStar(require("./IMetadataForQuestId"), exports);
43
43
  __exportStar(require("./IMetadataValueSuggestion"), exports);
44
+ __exportStar(require("./IDocumentAlternativeInfo"), exports);
44
45
  __exportStar(require("./metadata"), exports);
@@ -4,3 +4,4 @@ export declare const METADATAORIGIN_DOCUMENTNODE = "DocumentNode";
4
4
  export declare const METADATAORIGIN_COLLECTION = "Collection";
5
5
  export declare const METADATAORIGIN_DYNAMIC = "Dynamic";
6
6
  export declare const METADATAORIGIN_DYNAMICINDEXABLE = "DynamicIndexable";
7
+ export type MetadataOrigin = typeof METADATAORIGIN_DOCUMENT | typeof METADATAORIGIN_DOCUMENTVERSION | typeof METADATAORIGIN_DOCUMENTNODE | typeof METADATAORIGIN_COLLECTION | typeof METADATAORIGIN_DYNAMIC | typeof METADATAORIGIN_DYNAMICINDEXABLE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "author": "Knowmax BV",
20
20
  "license": "MIT",
21
21
  "devDependencies": {
22
- "@types/chai": "4.3.4",
22
+ "@types/chai": "4.3.5",
23
23
  "@types/mocha": "10.0.1",
24
24
  "chai": "4.3.7",
25
25
  "mocha": "10.2.0",