knowmax-quest-types 2.25.0 → 2.27.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.
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/dist/IDocument.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/dist/IMetadata.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/dist/IResource.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONTENTTYPE_SVG = exports.CONTENTTYPE_JSON = exports.CONTENTTYPE_XML = exports.CONTENTTYPE_PDF = void 0;
4
- exports.CONTENTTYPE_PDF = 'application/pdf';
5
- exports.CONTENTTYPE_XML = 'application/xml';
6
- exports.CONTENTTYPE_JSON = 'application/json';
7
- exports.CONTENTTYPE_SVG = 'image/svg+xml';
1
+ export const CONTENTTYPE_PDF = 'application/pdf';
2
+ export const CONTENTTYPE_XML = 'application/xml';
3
+ export const CONTENTTYPE_JSON = 'application/json';
4
+ export const CONTENTTYPE_SVG = 'image/svg+xml';
package/dist/index.js CHANGED
@@ -1,48 +1,32 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./contenttypes"), exports);
18
- __exportStar(require("./licenseaccess"), exports);
19
- __exportStar(require("./ICollectionNode"), exports);
20
- __exportStar(require("./IDataOptions"), exports);
21
- __exportStar(require("./IDataCompareOptions"), exports);
22
- __exportStar(require("./IDataCompare"), exports);
23
- __exportStar(require("./IDocument"), exports);
24
- __exportStar(require("./IDocumentWithVersionInfo"), exports);
25
- __exportStar(require("./IDocumentNode"), exports);
26
- __exportStar(require("./IDocumentVersion"), exports);
27
- __exportStar(require("./IDocumentVersionWithDocumentInfo"), exports);
28
- __exportStar(require("./IFavoriteInfo"), exports);
29
- __exportStar(require("./IMetadata"), exports);
30
- __exportStar(require("./IReferenceInfo"), exports);
31
- __exportStar(require("./IReferenceInfoOptions"), exports);
32
- __exportStar(require("./IVersionMapOptions"), exports);
33
- __exportStar(require("./IVersionMapItem"), exports);
34
- __exportStar(require("./ICoverOptions"), exports);
35
- __exportStar(require("./ICollectionDocumentReference"), exports);
36
- __exportStar(require("./ICollection"), exports);
37
- __exportStar(require("./ICoverInfo"), exports);
38
- __exportStar(require("./IResource"), exports);
39
- __exportStar(require("./IImportLog"), exports);
40
- __exportStar(require("./IReference"), exports);
41
- __exportStar(require("./IDocumentAlternative"), exports);
42
- __exportStar(require("./IMetadataForNodes"), exports);
43
- __exportStar(require("./IMetadataForQuestId"), exports);
44
- __exportStar(require("./IMetadataValueSuggestion"), exports);
45
- __exportStar(require("./IDocumentAlternativeInfo"), exports);
46
- __exportStar(require("./IDocumentPredecessor"), exports);
47
- __exportStar(require("./metadata"), exports);
48
- __exportStar(require("./IListRequest"), exports);
1
+ export * from './contenttypes';
2
+ export * from './licenseaccess';
3
+ export * from './ICollectionNode';
4
+ export * from './IDataOptions';
5
+ export * from './IDataCompareOptions';
6
+ export * from './IDataCompare';
7
+ export * from './IDocument';
8
+ export * from './IDocumentWithVersionInfo';
9
+ export * from './IDocumentNode';
10
+ export * from './IDocumentVersion';
11
+ export * from './IDocumentVersionWithDocumentInfo';
12
+ export * from './IFavoriteInfo';
13
+ export * from './IMetadata';
14
+ export * from './IReferenceInfo';
15
+ export * from './IReferenceInfoOptions';
16
+ export * from './IVersionMapOptions';
17
+ export * from './IVersionMapItem';
18
+ export * from './ICoverOptions';
19
+ export * from './ICollectionDocumentReference';
20
+ export * from './ICollection';
21
+ export * from './ICoverInfo';
22
+ export * from './IResource';
23
+ export * from './IImportLog';
24
+ export * from './IReference';
25
+ export * from './IDocumentAlternative';
26
+ export * from './IMetadataForNodes';
27
+ export * from './IMetadataForQuestId';
28
+ export * from './IMetadataValueSuggestion';
29
+ export * from './IDocumentAlternativeInfo';
30
+ export * from './IDocumentPredecessor';
31
+ export * from './metadata';
32
+ export * from './IListRequest';
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LICENSEACCESS_UNKNOWN = exports.LICENSEACCESS_DISABLED = exports.LICENSEACCESS_ENABLED = void 0;
4
- exports.LICENSEACCESS_ENABLED = 'Enabled';
5
- exports.LICENSEACCESS_DISABLED = 'Disabled';
6
- exports.LICENSEACCESS_UNKNOWN = 'Unknown';
1
+ export const LICENSEACCESS_ENABLED = 'Enabled';
2
+ export const LICENSEACCESS_DISABLED = 'Disabled';
3
+ export const LICENSEACCESS_UNKNOWN = 'Unknown';
package/dist/metadata.js CHANGED
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.METADATAORIGIN_DYNAMICINDEXABLE = exports.METADATAORIGIN_DYNAMIC = exports.METADATAORIGIN_COLLECTION = exports.METADATAORIGIN_DOCUMENTNODE = exports.METADATAORIGIN_DOCUMENTVERSION = exports.METADATAORIGIN_DOCUMENT = void 0;
4
- exports.METADATAORIGIN_DOCUMENT = 'Document';
5
- exports.METADATAORIGIN_DOCUMENTVERSION = 'DocumentVersion';
6
- exports.METADATAORIGIN_DOCUMENTNODE = 'DocumentNode';
7
- exports.METADATAORIGIN_COLLECTION = 'Collection';
8
- exports.METADATAORIGIN_DYNAMIC = 'Dynamic';
9
- exports.METADATAORIGIN_DYNAMICINDEXABLE = 'DynamicIndexable';
1
+ export const METADATAORIGIN_DOCUMENT = 'Document';
2
+ export const METADATAORIGIN_DOCUMENTVERSION = 'DocumentVersion';
3
+ export const METADATAORIGIN_DOCUMENTNODE = 'DocumentNode';
4
+ export const METADATAORIGIN_COLLECTION = 'Collection';
5
+ export const METADATAORIGIN_DYNAMIC = 'Dynamic';
6
+ export const METADATAORIGIN_DYNAMICINDEXABLE = 'DynamicIndexable';
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.25.0",
3
+ "version": "2.27.0",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
6
7
  "scripts": {
7
8
  "build": "rimraf ./dist && tsc",
8
- "test": "ts-mocha **/*.test.ts"
9
+ "test": "jest",
10
+ "test:watch": "jest --watch"
9
11
  },
10
12
  "files": [
11
13
  "dist",
@@ -19,12 +21,11 @@
19
21
  "author": "Knowmax BV",
20
22
  "license": "MIT",
21
23
  "devDependencies": {
22
- "@types/chai": "4.3.11",
23
- "@types/mocha": "10.0.6",
24
- "chai": "4.3.10",
25
- "mocha": "10.2.0",
24
+ "@jest/globals": "^29.7.0",
25
+ "jest": "^29.7.0",
26
26
  "rimraf": "5.0.5",
27
- "ts-mocha": "10.0.0",
27
+ "ts-jest": "^29.1.2",
28
+ "ts-node": "^10.9.2",
28
29
  "typescript": "5.3.3"
29
30
  }
30
- }
31
+ }
@@ -1 +0,0 @@
1
- export {};
@@ -1,49 +0,0 @@
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
- });