knowmax-quest-types 2.13.1 → 2.15.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.
@@ -7,8 +7,13 @@ export interface IDocument {
7
7
  title: string;
8
8
  /** Explicit marking of document and all it's versions as archive. Not set in case Quest should infer this value. */
9
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;
10
14
  modified: string;
11
15
  modifiedBy: string;
12
16
  created: string;
13
17
  createdBy: string;
14
18
  }
19
+ export type IDocumentEditable = Pick<IDocument, 'questId' | 'title' | 'archive' | 'documentGroupId'>;
@@ -0,0 +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'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -22,6 +22,8 @@ export interface IReferenceInfo<T extends IDocumentNode<T> = IDocumentNode<any>>
22
22
  documentNode?: T;
23
23
  /** Resource referenced by Quest id (if any). */
24
24
  resource?: IResource;
25
+ /** Info about document alternative referenced by Quest id (if any). */
26
+ documentAlternative?: IDocumentAlternativeInfo;
25
27
  /** Metadata that belongs to Quest id (if requested). */
26
28
  metadata: IMetadata[];
27
29
  /** Collections in which document referenced by Quest id occurs (if requested). */
@@ -21,4 +21,6 @@ export interface IReferenceInfoOptions {
21
21
  includeDocumentVersionArchive?: boolean;
22
22
  /** Include information about available document alternatives at level of reference (either documentversion of documentnode). */
23
23
  includeDocumentAlternativesInfo?: boolean;
24
+ /** Include information about optional document group to which document referenced belongs. */
25
+ includeDocumentGroup?: boolean;
24
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.13.1",
3
+ "version": "2.15.0",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {