knowmax-quest-types 2.38.0 → 2.39.0-beta.1

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.
@@ -1,4 +1,4 @@
1
- import { IMetadata } from '.';
1
+ import type { IMetadata } from '.';
2
2
  export interface ICollection {
3
3
  id: number;
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import { ICollection } from ".";
1
+ import type { ICollection } from ".";
2
2
  export interface ICollectionDocumentReference {
3
3
  collection: ICollection;
4
4
  /** Describes version of document that is referenced from this collection. Null in case current version is referenced. */
@@ -1,4 +1,4 @@
1
- import { IReferenceInfo } from '.';
1
+ import type { IReferenceInfo } from '.';
2
2
  export interface IDataCompare {
3
3
  referenceInfo1: IReferenceInfo;
4
4
  referenceInfo2: IReferenceInfo;
@@ -1,4 +1,4 @@
1
- import { IDocumentNode, IDocumentVersion } from ".";
1
+ import type { IDocumentNode, IDocumentVersion } from ".";
2
2
  export interface IDocumentAlternative {
3
3
  id: number;
4
4
  documentVersionId: number;
@@ -1,4 +1,4 @@
1
- import { IMetadata } from ".";
1
+ import type { IMetadata } from ".";
2
2
  export interface IDocumentNode<T extends IDocumentNode<T> = IDocumentNode<any>> {
3
3
  /** Internal identification. */
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import { IDocument } from '.';
1
+ import type { IDocument } from '.';
2
2
  export interface IDocumentWithVersionInfo extends IDocument {
3
3
  versionCount: number;
4
4
  firstVersion: string;
@@ -1,4 +1,4 @@
1
- import { IDocumentNode, IDocumentVersion } from ".";
1
+ import type { IDocumentNode, IDocumentVersion } from ".";
2
2
  export interface IImportlog {
3
3
  id: number;
4
4
  documentVersionId: number;
@@ -1,4 +1,4 @@
1
- import { IMetadataForQuestId } from ".";
1
+ import type { IMetadataForQuestId } from ".";
2
2
  /** Metadata for a collection of nodes within a document version. */
3
3
  export interface IMetadataForNodes {
4
4
  /** Identification of document to which these nodes belong. Without version specification. */
@@ -1,4 +1,4 @@
1
- import { IMetadata } from '.';
1
+ import type { IMetadata } from '.';
2
2
  export interface IMetadataForQuestId {
3
3
  questId: string;
4
4
  /** List of metadata for document, document version or document node with given Quest id. */
@@ -1,4 +1,4 @@
1
- import { IDocumentNode, IDocumentVersion } from ".";
1
+ import type { IDocumentNode, IDocumentVersion } from ".";
2
2
  export interface IReference {
3
3
  id: number;
4
4
  documentVersionId: number;
@@ -1,4 +1,4 @@
1
- import { IDocument, IDocumentVersion, IDocumentNode, IMetadata, IFavoriteInfo, ICollectionDocumentReference, ICoverInfo, IResource, IDocumentAlternativeInfo } from '.';
1
+ import type { 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;
@@ -1,4 +1,4 @@
1
- import { IDocumentVersion } from ".";
1
+ import type { IDocumentVersion } from ".";
2
2
  export interface IResource {
3
3
  /** Internal identification. */
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import { IDocument, IDocumentVersion } from '.';
1
+ import type { IDocument, IDocumentVersion } from '.';
2
2
  export interface IVersionMapItem {
3
3
  type: 'Revision' | 'Successor' | 'Predecessor';
4
4
  current: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.38.0",
3
+ "version": "2.39.0-beta.1",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,6 +19,10 @@
19
19
  "knowmax",
20
20
  "quest"
21
21
  ],
22
+ "jest": {
23
+ "preset": "ts-jest/presets/default-esm",
24
+ "extensionsToTreatAsEsm": [".ts"]
25
+ },
22
26
  "author": "Knowmax BV",
23
27
  "license": "MIT",
24
28
  "devDependencies": {