node-hp-scan-to 1.6.1 → 1.7.2
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/README.md +247 -143
- package/dist/Destination.js +17 -7
- package/dist/Destination.js.map +1 -1
- package/dist/DeviceCapabilities.d.ts +2 -0
- package/dist/DeviceCapabilities.js.map +1 -1
- package/dist/DiscoveryTree.js.map +1 -1
- package/dist/Event.js.map +1 -1
- package/dist/EventTable.js.map +1 -1
- package/dist/HPApi.js +23 -15
- package/dist/HPApi.js.map +1 -1
- package/dist/InputSource.js +1 -1
- package/dist/InputSource.js.map +1 -1
- package/dist/Job.js +6 -6
- package/dist/Job.js.map +1 -1
- package/dist/JpegUtil.d.ts +0 -2
- package/dist/JpegUtil.js.map +1 -1
- package/dist/KnownShortcut.js.map +1 -1
- package/dist/PathHelper.js +2 -0
- package/dist/PathHelper.js.map +1 -1
- package/dist/ScanCaps.d.ts +6 -0
- package/dist/ScanCaps.js +18 -0
- package/dist/ScanCaps.js.map +1 -1
- package/dist/ScanContent.js.map +1 -1
- package/dist/ScanJobManifest.js.map +1 -1
- package/dist/ScanJobSettings.js.map +1 -1
- package/dist/ScanStatus.js.map +1 -1
- package/dist/WalkupScanDestination.js.map +1 -1
- package/dist/WalkupScanDestinations.js.map +1 -1
- package/dist/WalkupScanManifest.js.map +1 -1
- package/dist/WalkupScanToCompCaps.js.map +1 -1
- package/dist/WalkupScanToCompDestination.js.map +1 -1
- package/dist/WalkupScanToCompDestinations.js.map +1 -1
- package/dist/WalkupScanToCompEvent.js.map +1 -1
- package/dist/WalkupScanToCompManifest.js.map +1 -1
- package/dist/commitInfo.json +1 -1
- package/dist/delay.js +1 -2
- package/dist/delay.js.map +1 -1
- package/dist/healthcheck.js +1 -2
- package/dist/healthcheck.js.map +1 -1
- package/dist/index.js +22 -12
- package/dist/index.js.map +1 -1
- package/dist/listening.js +5 -6
- package/dist/listening.js.map +1 -1
- package/dist/nextcloud/NextcloudConfig.js.map +1 -1
- package/dist/nextcloud/nextcloud.js +4 -6
- package/dist/nextcloud/nextcloud.js.map +1 -1
- package/dist/paperless/PaperlessConfig.js.map +1 -1
- package/dist/paperless/paperless.js +4 -5
- package/dist/paperless/paperless.js.map +1 -1
- package/dist/pdfProcessing.js +4 -5
- package/dist/pdfProcessing.js.map +1 -1
- package/dist/postProcessing.js +2 -4
- package/dist/postProcessing.js.map +1 -1
- package/dist/readDeviceCapabilities.js +24 -20
- package/dist/readDeviceCapabilities.js.map +1 -1
- package/dist/scanProcessing.d.ts +2 -2
- package/dist/scanProcessing.js +28 -30
- package/dist/scanProcessing.js.map +1 -1
- package/package.json +19 -17
- package/dist/PaperlessCOnfig.d.ts +0 -7
- package/dist/PaperlessCOnfig.js +0 -3
- package/dist/PaperlessCOnfig.js.map +0 -1
- package/dist/PaperlessConfig.d.ts +0 -7
- package/dist/PaperlessConfig.js +0 -3
- package/dist/PaperlessConfig.js.map +0 -1
- package/dist/paperless.d.ts +0 -7
- package/dist/paperless.js +0 -83
- package/dist/paperless.js.map +0 -1
- package/dist/test/DiscoveryTree.test.d.ts +0 -1
- package/dist/test/DiscoveryTree.test.js +0 -68
- package/dist/test/DiscoveryTree.test.js.map +0 -1
- package/dist/test/EtagEventTable.test.d.ts +0 -1
- package/dist/test/EtagEventTable.test.js +0 -93
- package/dist/test/EtagEventTable.test.js.map +0 -1
- package/dist/test/Job.test.d.ts +0 -1
- package/dist/test/Job.test.js +0 -104
- package/dist/test/Job.test.js.map +0 -1
- package/dist/test/JpegUtil.test.d.ts +0 -1
- package/dist/test/JpegUtil.test.js +0 -53
- package/dist/test/JpegUtil.test.js.map +0 -1
- package/dist/test/PathHelper.test.d.ts +0 -1
- package/dist/test/PathHelper.test.js +0 -98
- package/dist/test/PathHelper.test.js.map +0 -1
- package/dist/test/ScanCaps.test.d.ts +0 -1
- package/dist/test/ScanCaps.test.js +0 -96
- package/dist/test/ScanCaps.test.js.map +0 -1
- package/dist/test/ScanJobManifest.test.d.ts +0 -1
- package/dist/test/ScanJobManifest.test.js +0 -56
- package/dist/test/ScanJobManifest.test.js.map +0 -1
- package/dist/test/ScanJobSettings.test.d.ts +0 -1
- package/dist/test/ScanJobSettings.test.js +0 -59
- package/dist/test/ScanJobSettings.test.js.map +0 -1
- package/dist/test/ScanStatus.test.d.ts +0 -1
- package/dist/test/ScanStatus.test.js +0 -75
- package/dist/test/ScanStatus.test.js.map +0 -1
- package/dist/test/WalkupScanDestination.test.d.ts +0 -1
- package/dist/test/WalkupScanDestination.test.js +0 -80
- package/dist/test/WalkupScanDestination.test.js.map +0 -1
- package/dist/test/WalkupScanDestinations.test.d.ts +0 -1
- package/dist/test/WalkupScanDestinations.test.js +0 -68
- package/dist/test/WalkupScanDestinations.test.js.map +0 -1
- package/dist/test/WalkupScanManifest.test.d.ts +0 -1
- package/dist/test/WalkupScanManifest.test.js +0 -46
- package/dist/test/WalkupScanManifest.test.js.map +0 -1
- package/dist/test/WalkupScanToCompCaps.test.d.ts +0 -1
- package/dist/test/WalkupScanToCompCaps.test.js +0 -56
- package/dist/test/WalkupScanToCompCaps.test.js.map +0 -1
- package/dist/test/WalkupScanToCompDestination.test.d.ts +0 -1
- package/dist/test/WalkupScanToCompDestination.test.js +0 -58
- package/dist/test/WalkupScanToCompDestination.test.js.map +0 -1
- package/dist/test/WalkupScanToCompDestinations.test.d.ts +0 -1
- package/dist/test/WalkupScanToCompDestinations.test.js +0 -58
- package/dist/test/WalkupScanToCompDestinations.test.js.map +0 -1
- package/dist/test/WalkupScanToCompEvent.test.d.ts +0 -1
- package/dist/test/WalkupScanToCompEvent.test.js +0 -46
- package/dist/test/WalkupScanToCompEvent.test.js.map +0 -1
- package/dist/test/WalkupScanToCompManifest.test.d.ts +0 -1
- package/dist/test/WalkupScanToCompManifest.test.js +0 -46
- package/dist/test/WalkupScanToCompManifest.test.js.map +0 -1
- package/dist/test/clean.d.ts +0 -1
- package/dist/test/clean.js +0 -21
- package/dist/test/clean.js.map +0 -1
- package/dist/test/nextcloud.test.d.ts +0 -1
- package/dist/test/nextcloud.test.js +0 -165
- package/dist/test/nextcloud.test.js.map +0 -1
- package/dist/test/scanProcessing.test.d.ts +0 -1
- package/dist/test/scanProcessing.test.js +0 -105
- package/dist/test/scanProcessing.test.js.map +0 -1
- package/dist/test-bonjour.d.ts +0 -1
- package/dist/test-bonjour.js +0 -20
- package/dist/test-bonjour.js.map +0 -1
- package/nodemon.json +0 -6
- package/src/Destination.ts +0 -63
- package/src/DeviceCapabilities.ts +0 -8
- package/src/DiscoveryTree.ts +0 -56
- package/src/Event.ts +0 -55
- package/src/EventTable.ts +0 -45
- package/src/HPApi.ts +0 -510
- package/src/InputSource.ts +0 -4
- package/src/Job.ts +0 -134
- package/src/JpegUtil.ts +0 -327
- package/src/KnownShortcut.ts +0 -6
- package/src/PathHelper.ts +0 -106
- package/src/ScanCaps.ts +0 -81
- package/src/ScanContent.ts +0 -15
- package/src/ScanJobManifest.ts +0 -56
- package/src/ScanJobSettings.ts +0 -84
- package/src/ScanStatus.ts +0 -48
- package/src/WalkupScanDestination.ts +0 -74
- package/src/WalkupScanDestinations.ts +0 -46
- package/src/WalkupScanManifest.ts +0 -59
- package/src/WalkupScanToCompCaps.ts +0 -36
- package/src/WalkupScanToCompDestination.ts +0 -79
- package/src/WalkupScanToCompDestinations.ts +0 -47
- package/src/WalkupScanToCompEvent.ts +0 -30
- package/src/WalkupScanToCompManifest.ts +0 -59
- package/src/commitInfo.json +0 -3
- package/src/delay.ts +0 -5
- package/src/healthcheck.ts +0 -17
- package/src/index.ts +0 -588
- package/src/listening.ts +0 -144
- package/src/nextcloud/NextcloudConfig.ts +0 -7
- package/src/nextcloud/nextcloud.ts +0 -146
- package/src/paperless/PaperlessConfig.ts +0 -7
- package/src/paperless/paperless.ts +0 -110
- package/src/pdfProcessing.ts +0 -67
- package/src/postProcessing.ts +0 -165
- package/src/readDeviceCapabilities.ts +0 -52
- package/src/scanProcessing.ts +0 -570
- package/tsconfig.json +0 -34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BAAoB,EAAE,KAAK,IAAI,EAAE;YAClC,IAAA,aAAM,EAAC,eAAe,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC","sourcesContent":["import { describe } from \"mocha\";\nimport { expect } from \"chai\";\nimport path from \"path\";\nimport * as fs from \"fs/promises\";\nimport ScanJobManifest from \"../src/ScanJobManifest\";\n\ndescribe(\"ScanJobManifest\", () => {\n describe(\"Parsing scanJobManifest.xml\", async () => {\n let scanJobManifest: ScanJobManifest;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/scanJobManifest.xml\"\n ),\n { encoding: \"utf8\" }\n );\n scanJobManifest = await ScanJobManifest.createScanJobManifest(content);\n });\n\n it(\"Parse ScanCaps uri\", async () => {\n expect(scanJobManifest.ScanCapsURI).to.be.eq(\"/Scan/ScanCaps\");\n });\n });\n describe(\"Parsing scanJobManifest2.xml\", async () => {\n let scanJobManifest: ScanJobManifest;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/scanJobManifest2.xml\"\n ),\n { encoding: \"utf8\" }\n );\n scanJobManifest = await ScanJobManifest.createScanJobManifest(content);\n });\n\n it(\"Parse ScanCaps uri\", async () => {\n expect(scanJobManifest.ScanCapsURI).to.be.eq(\"/Scan/ScanCaps\");\n });\n });\n\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const mocha_1 = require("mocha");
|
|
30
|
-
const chai_1 = require("chai");
|
|
31
|
-
const ScanJobSettings_1 = __importDefault(require("../src/ScanJobSettings"));
|
|
32
|
-
const path_1 = __importDefault(require("path"));
|
|
33
|
-
const fs = __importStar(require("fs/promises"));
|
|
34
|
-
const InputSource_1 = require("../src/InputSource");
|
|
35
|
-
(0, mocha_1.describe)("ScanJobSettings", () => {
|
|
36
|
-
(0, mocha_1.describe)("toXML", () => {
|
|
37
|
-
it("Allows to describe an ADF two side", async () => {
|
|
38
|
-
const scanJobSettings = new ScanJobSettings_1.default(InputSource_1.InputSource.Adf, "Document", 200, null, null, true);
|
|
39
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/adf_duplex_job.xml"), { encoding: 'utf8' });
|
|
40
|
-
(0, chai_1.expect)((await scanJobSettings.toXML()).trimEnd()).to.be.eq(content.trimEnd().replace(/\r\n/g, "\n"));
|
|
41
|
-
});
|
|
42
|
-
it("Allows to describe an ADF single side", async () => {
|
|
43
|
-
const scanJobSettings = new ScanJobSettings_1.default(InputSource_1.InputSource.Adf, "Document", 200, null, null, false);
|
|
44
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/adf_simplex_job.xml"), { encoding: 'utf8' });
|
|
45
|
-
(0, chai_1.expect)((await scanJobSettings.toXML()).trimEnd()).to.be.eq(content.trimEnd().replace(/\r\n/g, "\n"));
|
|
46
|
-
});
|
|
47
|
-
it("Allows to describe dpi of 300", async () => {
|
|
48
|
-
const scanJobSettings = new ScanJobSettings_1.default(InputSource_1.InputSource.Adf, "Document", 300, null, null, false);
|
|
49
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/300_dpi_job.xml"), { encoding: 'utf8' });
|
|
50
|
-
(0, chai_1.expect)((await scanJobSettings.toXML()).trimEnd()).to.be.eq(content.trimEnd().replace(/\r\n/g, "\n"));
|
|
51
|
-
});
|
|
52
|
-
it("Allows to describe a custom width and height", async () => {
|
|
53
|
-
const scanJobSettings = new ScanJobSettings_1.default(InputSource_1.InputSource.Adf, "Document", 200, 1000, 4000, false);
|
|
54
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/adf_simplex_custom_job.xml"), { encoding: 'utf8' });
|
|
55
|
-
(0, chai_1.expect)((await scanJobSettings.toXML()).trimEnd()).to.be.eq(content.trimEnd().replace(/\r\n/g, "\n"));
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
//# sourceMappingURL=ScanJobSettings.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScanJobSettings.test.js","sourceRoot":"","sources":["../../test/ScanJobSettings.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA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QACvG,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe } from \"mocha\";\nimport { expect } from \"chai\";\nimport ScanJobSettings from \"../src/ScanJobSettings\";\nimport path from \"path\";\nimport * as fs from \"fs/promises\";\nimport { InputSource } from \"../src/InputSource\";\n\ndescribe(\"ScanJobSettings\", () => {\n describe(\"toXML\", () => {\n it(\"Allows to describe an ADF two side\", async () => {\n const scanJobSettings = new ScanJobSettings(InputSource.Adf, \"Document\", 200, null, null, true);\n\n const content: string = await fs.readFile(\n path.resolve(__dirname, \"./asset/adf_duplex_job.xml\"), {encoding:'utf8' }\n );\n expect((await scanJobSettings.toXML()).trimEnd()).to.be.eq(content.trimEnd().replace(/\\r\\n/g, \"\\n\"));\n });\n\n it(\"Allows to describe an ADF single side\", async () => {\n const scanJobSettings = new ScanJobSettings(InputSource.Adf, \"Document\", 200, null, null, false);\n\n const content: string = await fs.readFile(\n path.resolve(__dirname, \"./asset/adf_simplex_job.xml\"), {encoding:'utf8' }\n );\n expect((await scanJobSettings.toXML()).trimEnd()).to.be.eq(content.trimEnd().replace(/\\r\\n/g, \"\\n\"));\n });\n\n it(\"Allows to describe dpi of 300\", async () => {\n const scanJobSettings = new ScanJobSettings(InputSource.Adf, \"Document\", 300, null, null, false);\n\n const content: string = await fs.readFile(\n path.resolve(__dirname, \"./asset/300_dpi_job.xml\"), {encoding:'utf8' }\n );\n expect((await scanJobSettings.toXML()).trimEnd()).to.be.eq(content.trimEnd().replace(/\\r\\n/g, \"\\n\"));\n });\n\n it (\"Allows to describe a custom width and height\", async () => {\n const scanJobSettings = new ScanJobSettings(InputSource.Adf, \"Document\", 200, 1000, 4000, false);\n\n const content: string = await fs.readFile(\n path.resolve(__dirname, \"./asset/adf_simplex_custom_job.xml\"), {encoding:'utf8' }\n );\n expect((await scanJobSettings.toXML()).trimEnd()).to.be.eq(content.trimEnd().replace(/\\r\\n/g, \"\\n\"));\n })\n });\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,75 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const mocha_1 = require("mocha");
|
|
30
|
-
const chai_1 = require("chai");
|
|
31
|
-
const path_1 = __importDefault(require("path"));
|
|
32
|
-
const fs = __importStar(require("fs/promises"));
|
|
33
|
-
const ScanStatus_1 = __importDefault(require("../src/ScanStatus"));
|
|
34
|
-
(0, mocha_1.describe)("ScanStatus", () => {
|
|
35
|
-
(0, mocha_1.describe)("Parsing scanStatus.xml", async () => {
|
|
36
|
-
let scanStatus;
|
|
37
|
-
before(async () => {
|
|
38
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/scanStatus.xml"), { encoding: "utf8" } //
|
|
39
|
-
);
|
|
40
|
-
scanStatus = await ScanStatus_1.default.createScanStatus(content);
|
|
41
|
-
});
|
|
42
|
-
it("Parse adfState", async () => {
|
|
43
|
-
(0, chai_1.expect)(scanStatus.adfState).to.be.eq("Loaded");
|
|
44
|
-
});
|
|
45
|
-
it("Parse scannerState", async () => {
|
|
46
|
-
(0, chai_1.expect)(scanStatus.scannerState).to.be.eq("Idle");
|
|
47
|
-
});
|
|
48
|
-
it("getInputSource", async () => {
|
|
49
|
-
(0, chai_1.expect)(scanStatus.getInputSource()).to.be.eq("Adf");
|
|
50
|
-
});
|
|
51
|
-
it("isLoaded", async () => {
|
|
52
|
-
(0, chai_1.expect)(scanStatus.isLoaded()).to.be.eq(true);
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
(0, mocha_1.describe)("Parsing sscanStatus_no_adf.xml", async () => {
|
|
56
|
-
let scanStatus;
|
|
57
|
-
before(async () => {
|
|
58
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/scanStatus_no_adf.xml"), { encoding: "utf8" });
|
|
59
|
-
scanStatus = await ScanStatus_1.default.createScanStatus(content);
|
|
60
|
-
});
|
|
61
|
-
it("Parse adfState", async () => {
|
|
62
|
-
(0, chai_1.expect)(scanStatus.adfState).to.be.eq("");
|
|
63
|
-
});
|
|
64
|
-
it("Parse scannerState", async () => {
|
|
65
|
-
(0, chai_1.expect)(scanStatus.scannerState).to.be.eq("Idle");
|
|
66
|
-
});
|
|
67
|
-
it("getInputSource", async () => {
|
|
68
|
-
(0, chai_1.expect)(scanStatus.getInputSource()).to.be.eq("Platen");
|
|
69
|
-
});
|
|
70
|
-
it("isLoaded", async () => {
|
|
71
|
-
(0, chai_1.expect)(scanStatus.isLoaded()).to.be.eq(false);
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
//# sourceMappingURL=ScanStatus.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScanStatus.test.js","sourceRoot":"","sources":["../../test/ScanStatus.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,+BAA8B;AAC9B,gDAAwB;AACxB,gDAAkC;AAClC,mEAA2C;AAE3C,IAAA,gBAAQ,EAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAA,gBAAQ,EAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;QAC5C,IAAI,UAAsB,CAAC;QAE3B,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,MAAM,OAAO,GAAW,MAAM,EAAE,CAAC,QAAQ,CACvC,cAAI,CAAC,OAAO,CACV,SAAS,EACT,wBAAwB,CACzB,EACD,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE;aACxB,CAAC;YACF,UAAU,GAAG,MAAM,oBAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;YAC9B,IAAA,aAAM,EAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;YAClC,IAAA,aAAM,EAAC,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;YAC9B,IAAA,aAAM,EAAC,UAAU,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AAC,CAAC;QACH,EAAE,CAAC,UAAU,EAAE,KAAK,IAAI,EAAE;YACxB,IAAA,aAAM,EAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe } from \"mocha\";\nimport { expect } from \"chai\";\nimport path from \"path\";\nimport * as fs from \"fs/promises\";\nimport ScanStatus from \"../src/ScanStatus\";\n\ndescribe(\"ScanStatus\", () => {\n describe(\"Parsing scanStatus.xml\", async () => {\n let scanStatus: ScanStatus;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/scanStatus.xml\"\n ),\n { encoding: \"utf8\" } //\n );\n scanStatus = await ScanStatus.createScanStatus(content);\n });\n\n it(\"Parse adfState\", async () => {\n expect(scanStatus.adfState).to.be.eq(\"Loaded\");\n });\n it(\"Parse scannerState\", async () => {\n expect(scanStatus.scannerState).to.be.eq(\"Idle\");\n });\n it(\"getInputSource\", async () => {\n expect(scanStatus.getInputSource()).to.be.eq(\"Adf\");\n });\n it(\"isLoaded\", async () => {\n expect(scanStatus.isLoaded()).to.be.eq(true);\n });\n });\n describe(\"Parsing sscanStatus_no_adf.xml\", async () => {\n let scanStatus: ScanStatus;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/scanStatus_no_adf.xml\"\n ),\n { encoding: \"utf8\" }\n );\n scanStatus = await ScanStatus.createScanStatus(content);\n });\n\n it(\"Parse adfState\", async () => {\n expect(scanStatus.adfState).to.be.eq(\"\");\n });\n it(\"Parse scannerState\", async () => {\n expect(scanStatus.scannerState).to.be.eq(\"Idle\");\n });\n it(\"getInputSource\", async () => {\n expect(scanStatus.getInputSource()).to.be.eq(\"Platen\");\n });\n it(\"isLoaded\", async () => {\n expect(scanStatus.isLoaded()).to.be.eq(false);\n });\n });\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,80 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const mocha_1 = require("mocha");
|
|
30
|
-
const chai_1 = require("chai");
|
|
31
|
-
const path_1 = __importDefault(require("path"));
|
|
32
|
-
const fs = __importStar(require("fs/promises"));
|
|
33
|
-
const WalkupScanDestination_1 = __importDefault(require("../src/WalkupScanDestination"));
|
|
34
|
-
(0, mocha_1.describe)("WalkupScanDestination", () => {
|
|
35
|
-
(0, mocha_1.describe)("Parsing walkupScanToCompDestination_with_ScanPlexMode.xml", async () => {
|
|
36
|
-
let destination;
|
|
37
|
-
before(async () => {
|
|
38
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/walkupScanDestination_with_ScanPlexMode.xml"), { encoding: "utf8" });
|
|
39
|
-
destination = await WalkupScanDestination_1.default.createWalkupScanDestination(content);
|
|
40
|
-
});
|
|
41
|
-
it("Parse scanPlexMode", async () => {
|
|
42
|
-
(0, chai_1.expect)(destination.scanPlexMode).to.be.eq("Simplex");
|
|
43
|
-
});
|
|
44
|
-
it("Parse shortcut", async () => {
|
|
45
|
-
(0, chai_1.expect)(destination.shortcut).to.be.eq("SavePDF");
|
|
46
|
-
});
|
|
47
|
-
it("Parse resourceURI", async () => {
|
|
48
|
-
(0, chai_1.expect)(destination.resourceURI).to.be.eq("http://192.168.1.7:8080/WalkupScan/WalkupScanDestinations/1cb3125d-7bde-1f09-8da2-2c768ab21113");
|
|
49
|
-
});
|
|
50
|
-
it("Parse hostname", async () => {
|
|
51
|
-
(0, chai_1.expect)(destination.hostname).to.be.eq("LAPTOP-BSHRTBV8");
|
|
52
|
-
});
|
|
53
|
-
it("Parse name", async () => {
|
|
54
|
-
(0, chai_1.expect)(destination.name).to.be.eq("LAPTOP-BSHRTBV8");
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
(0, mocha_1.describe)("Parsing walkupScanDestination_with_shortcut_SaveDocument1.xml", async () => {
|
|
58
|
-
let destination;
|
|
59
|
-
before(async () => {
|
|
60
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/walkupScanDestination_with_shortcut_SaveDocument1.xml"), { encoding: "utf8" });
|
|
61
|
-
destination = await WalkupScanDestination_1.default.createWalkupScanDestination(content);
|
|
62
|
-
});
|
|
63
|
-
it("Parse scanPlexMode", async () => {
|
|
64
|
-
(0, chai_1.expect)(destination.scanPlexMode).to.be.eq("Simplex");
|
|
65
|
-
});
|
|
66
|
-
it("Parse shortcut", async () => {
|
|
67
|
-
(0, chai_1.expect)(destination.shortcut).to.be.eq("SaveDocument1");
|
|
68
|
-
});
|
|
69
|
-
it("Parse resourceURI", async () => {
|
|
70
|
-
(0, chai_1.expect)(destination.resourceURI).to.be.eq("http://192.168.5.221:80/WalkupScan/WalkupScanDestinations/1c8530e5-b81c-1f08-8d61-984be142325d");
|
|
71
|
-
});
|
|
72
|
-
it("Parse hostname", async () => {
|
|
73
|
-
(0, chai_1.expect)(destination.hostname).to.be.eq("scan");
|
|
74
|
-
});
|
|
75
|
-
it("Parse name", async () => {
|
|
76
|
-
(0, chai_1.expect)(destination.name).to.be.eq("scan");
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=WalkupScanDestination.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalkupScanDestination.test.js","sourceRoot":"","sources":["../../test/WalkupScanDestination.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,+BAA8B;AAC9B,gDAAwB;AACxB,gDAAkC;AAClC,yFAAiE;AAEjE,IAAA,gBAAQ,EAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAA,gBAAQ,EAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;QAC/E,IAAI,WAAkC,CAAC;QAEvC,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,MAAM,OAAO,GAAW,MAAM,EAAE,CAAC,QAAQ,CACvC,cAAI,CAAC,OAAO,CACV,SAAS,EACT,qDAAqD,CACtD,EACD,EAAE,QAAQ,EAAE,MAAM,EAAE,CACrB,CAAC;YACF,WAAW,GAAG,MAAM,+BAAqB,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACjF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oBAAoB,EAAE,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B,CAAC,OAAO,CAAC,CAAC;QACjF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;YAClC,IAAA,aAAM,EAAC,WAAW,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;YAC9B,IAAA,aAAM,EAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;YACjC,IAAA,aAAM,EAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CACtC,gGAAgG,CACjG,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;YAC9B,IAAA,aAAM,EAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;YAC1B,IAAA,aAAM,EAAC,WAAW,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe } from \"mocha\";\nimport { expect } from \"chai\";\nimport path from \"path\";\nimport * as fs from \"fs/promises\";\nimport WalkupScanDestination from \"../src/WalkupScanDestination\";\n\ndescribe(\"WalkupScanDestination\", () => {\n describe(\"Parsing walkupScanToCompDestination_with_ScanPlexMode.xml\", async () => {\n let destination: WalkupScanDestination;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/walkupScanDestination_with_ScanPlexMode.xml\"\n ),\n { encoding: \"utf8\" }\n );\n destination = await WalkupScanDestination.createWalkupScanDestination(content);\n });\n\n it(\"Parse scanPlexMode\", async () => {\n expect(destination.scanPlexMode).to.be.eq(\"Simplex\");\n });\n\n it(\"Parse shortcut\", async () => {\n expect(destination.shortcut).to.be.eq(\"SavePDF\");\n });\n\n it(\"Parse resourceURI\", async () => {\n expect(destination.resourceURI).to.be.eq(\n \"http://192.168.1.7:8080/WalkupScan/WalkupScanDestinations/1cb3125d-7bde-1f09-8da2-2c768ab21113\"\n );\n });\n\n it(\"Parse hostname\", async () => {\n expect(destination.hostname).to.be.eq(\"LAPTOP-BSHRTBV8\");\n });\n\n it(\"Parse name\", async () => {\n expect(destination.name).to.be.eq(\"LAPTOP-BSHRTBV8\");\n });\n });\n describe(\"Parsing walkupScanDestination_with_shortcut_SaveDocument1.xml\", async () => {\n let destination: WalkupScanDestination;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/walkupScanDestination_with_shortcut_SaveDocument1.xml\"\n ),\n { encoding: \"utf8\" }\n );\n destination = await WalkupScanDestination.createWalkupScanDestination(content);\n });\n\n it(\"Parse scanPlexMode\", async () => {\n expect(destination.scanPlexMode).to.be.eq(\"Simplex\");\n });\n\n it(\"Parse shortcut\", async () => {\n expect(destination.shortcut).to.be.eq(\"SaveDocument1\");\n });\n\n it(\"Parse resourceURI\", async () => {\n expect(destination.resourceURI).to.be.eq(\n \"http://192.168.5.221:80/WalkupScan/WalkupScanDestinations/1c8530e5-b81c-1f08-8d61-984be142325d\"\n );\n });\n\n it(\"Parse hostname\", async () => {\n expect(destination.hostname).to.be.eq(\"scan\");\n });\n\n it(\"Parse name\", async () => {\n expect(destination.name).to.be.eq(\"scan\");\n });\n });\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const mocha_1 = require("mocha");
|
|
30
|
-
const chai_1 = require("chai");
|
|
31
|
-
const path_1 = __importDefault(require("path"));
|
|
32
|
-
const fs = __importStar(require("fs/promises"));
|
|
33
|
-
const WalkupScanDestinations_1 = __importDefault(require("../src/WalkupScanDestinations"));
|
|
34
|
-
(0, mocha_1.describe)("WalkupScanDestinations", () => {
|
|
35
|
-
(0, mocha_1.describe)("Parsing walkupScanDestinations.xml", async () => {
|
|
36
|
-
let destinations;
|
|
37
|
-
before(async () => {
|
|
38
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/walkupScanDestinations.xml"), { encoding: "utf8" });
|
|
39
|
-
destinations = await WalkupScanDestinations_1.default.createWalkupScanDestinations(content);
|
|
40
|
-
});
|
|
41
|
-
it("Parse scanPlexMode", async () => {
|
|
42
|
-
(0, chai_1.expect)(destinations.destinations[0].scanPlexMode).to.be.eq(null);
|
|
43
|
-
});
|
|
44
|
-
it("Parse shortcut", async () => {
|
|
45
|
-
(0, chai_1.expect)(destinations.destinations[0].shortcut).to.be.eq(null);
|
|
46
|
-
});
|
|
47
|
-
it("Parse resourceURI", async () => {
|
|
48
|
-
(0, chai_1.expect)(destinations.destinations[0].resourceURI).to.be.eq("http://192.168.1.30:80/WalkupScan/WalkupScanDestinations/1c856ba3-b916-1f08-be4e-2c768ab21113");
|
|
49
|
-
});
|
|
50
|
-
it("Parse hostname", async () => {
|
|
51
|
-
(0, chai_1.expect)(destinations.destinations[0].hostname).to.be.eq("manu-sve1511b1ew");
|
|
52
|
-
});
|
|
53
|
-
it("Parse name", async () => {
|
|
54
|
-
(0, chai_1.expect)(destinations.destinations[0].name).to.be.eq("manu-sve1511b1ew");
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
(0, mocha_1.describe)("Parsing walkupScanDestinations2.xml", async () => {
|
|
58
|
-
let destinations;
|
|
59
|
-
before(async () => {
|
|
60
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/walkupScanDestinations2.xml"), { encoding: "utf8" });
|
|
61
|
-
destinations = await WalkupScanDestinations_1.default.createWalkupScanDestinations(content);
|
|
62
|
-
});
|
|
63
|
-
it("Parse destinations", async () => {
|
|
64
|
-
(0, chai_1.expect)(destinations.destinations).to.be.empty;
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
//# sourceMappingURL=WalkupScanDestinations.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalkupScanDestinations.test.js","sourceRoot":"","sources":["../../test/WalkupScanDestinations.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,+BAA8B;AAC9B,gDAAwB;AACxB,gDAAkC;AAClC,2FAAmE;AAEnE,IAAA,gBAAQ,EAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAA,gBAAQ,EAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;QACxD,IAAI,YAAoC,CAAC;QAEzC,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,MAAM,OAAO,GAAW,MAAM,EAAE,CAAC,QAAQ,CACvC,cAAI,CAAC,OAAO,CACV,SAAS,EACT,oCAAoC,CACrC,EACD,EAAE,QAAQ,EAAE,MAAM,EAAE,CACrB,CAAC;YACF,YAAY,GAAG,MAAM,gCAAsB,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;YAClC,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;YAC9B,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;YACjC,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CACvD,+FAA+F,CAChG,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;YAC9B,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC;QAC7E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;YAC1B,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC;QACzE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,IAAA,gBAAQ,EAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACzD,IAAI,YAAoC,CAAC;QAEzC,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,MAAM,OAAO,GAAW,MAAM,EAAE,CAAC,QAAQ,CACvC,cAAI,CAAC,OAAO,CACV,SAAS,EACT,qCAAqC,CACtC,EACD,EAAE,QAAQ,EAAE,MAAM,EAAE,CACrB,CAAC;YACF,YAAY,GAAG,MAAM,gCAAsB,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;YAClC,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe } from \"mocha\";\nimport { expect } from \"chai\";\nimport path from \"path\";\nimport * as fs from \"fs/promises\";\nimport WalkupScanDestinations from \"../src/WalkupScanDestinations\";\n\ndescribe(\"WalkupScanDestinations\", () => {\n describe(\"Parsing walkupScanDestinations.xml\", async () => {\n let destinations: WalkupScanDestinations;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/walkupScanDestinations.xml\"\n ),\n { encoding: \"utf8\" }\n );\n destinations = await WalkupScanDestinations.createWalkupScanDestinations(content);\n });\n\n it(\"Parse scanPlexMode\", async () => {\n expect(destinations.destinations[0].scanPlexMode).to.be.eq(null);\n });\n\n it(\"Parse shortcut\", async () => {\n expect(destinations.destinations[0].shortcut).to.be.eq(null);\n });\n\n it(\"Parse resourceURI\", async () => {\n expect(destinations.destinations[0].resourceURI).to.be.eq(\n \"http://192.168.1.30:80/WalkupScan/WalkupScanDestinations/1c856ba3-b916-1f08-be4e-2c768ab21113\"\n );\n });\n\n it(\"Parse hostname\", async () => {\n expect(destinations.destinations[0].hostname).to.be.eq(\"manu-sve1511b1ew\");\n });\n\n it(\"Parse name\", async () => {\n expect(destinations.destinations[0].name).to.be.eq(\"manu-sve1511b1ew\");\n });\n });\n describe(\"Parsing walkupScanDestinations2.xml\", async () => {\n let destinations: WalkupScanDestinations;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/walkupScanDestinations2.xml\"\n ),\n { encoding: \"utf8\" }\n );\n destinations = await WalkupScanDestinations.createWalkupScanDestinations(content);\n });\n\n it(\"Parse destinations\", async () => {\n expect(destinations.destinations).to.be.empty;\n });\n });\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const mocha_1 = require("mocha");
|
|
30
|
-
const chai_1 = require("chai");
|
|
31
|
-
const path_1 = __importDefault(require("path"));
|
|
32
|
-
const fs = __importStar(require("fs/promises"));
|
|
33
|
-
const WalkupScanManifest_1 = __importDefault(require("../src/WalkupScanManifest"));
|
|
34
|
-
(0, mocha_1.describe)("WalkupScanManifest", () => {
|
|
35
|
-
(0, mocha_1.describe)("Parsing walkupScanManifest.xml", async () => {
|
|
36
|
-
let walkupScanManifest;
|
|
37
|
-
before(async () => {
|
|
38
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/walkupScanManifest.xml"), { encoding: "utf8" });
|
|
39
|
-
walkupScanManifest = await WalkupScanManifest_1.default.createWalkupScanManifest(content);
|
|
40
|
-
});
|
|
41
|
-
it("Parse walkupScanDestinationsURI uri", async () => {
|
|
42
|
-
(0, chai_1.expect)(walkupScanManifest.walkupScanDestinationsURI).to.be.eq("/WalkupScan/WalkupScanDestinations");
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=WalkupScanManifest.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalkupScanManifest.test.js","sourceRoot":"","sources":["../../test/WalkupScanManifest.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,+BAA8B;AAC9B,gDAAwB;AACxB,gDAAkC;AAClC,mFAA2D;AAE3D,IAAA,gBAAQ,EAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,IAAA,gBAAQ,EAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;QACpD,IAAI,kBAAsC,CAAC;QAE3C,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,MAAM,OAAO,GAAW,MAAM,EAAE,CAAC,QAAQ,CACvC,cAAI,CAAC,OAAO,CACV,SAAS,EACT,gCAAgC,CACjC,EACD,EAAE,QAAQ,EAAE,MAAM,EAAE,CACrB,CAAC;YACF,kBAAkB,GAAG,MAAM,4BAAkB,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAClF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;YACnD,IAAA,aAAM,EAAC,kBAAkB,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,oCAAoC,CAAC,CAAC;QACtG,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC","sourcesContent":["import { describe } from \"mocha\";\nimport { expect } from \"chai\";\nimport path from \"path\";\nimport * as fs from \"fs/promises\";\nimport WalkupScanManifest from \"../src/WalkupScanManifest\";\n\ndescribe(\"WalkupScanManifest\", () => {\n describe(\"Parsing walkupScanManifest.xml\", async () => {\n let walkupScanManifest: WalkupScanManifest;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/walkupScanManifest.xml\"\n ),\n { encoding: \"utf8\" }\n );\n walkupScanManifest = await WalkupScanManifest.createWalkupScanManifest(content);\n });\n\n it(\"Parse walkupScanDestinationsURI uri\", async () => {\n expect(walkupScanManifest.walkupScanDestinationsURI).to.be.eq(\"/WalkupScan/WalkupScanDestinations\");\n });\n });\n\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const mocha_1 = require("mocha");
|
|
30
|
-
const chai_1 = require("chai");
|
|
31
|
-
const path_1 = __importDefault(require("path"));
|
|
32
|
-
const fs = __importStar(require("fs/promises"));
|
|
33
|
-
const WalkupScanToCompCaps_1 = __importDefault(require("../src/WalkupScanToCompCaps"));
|
|
34
|
-
(0, mocha_1.describe)("WalkupScanToCompCaps", () => {
|
|
35
|
-
(0, mocha_1.describe)("Parsing walkupScanToCompCaps.xml", async () => {
|
|
36
|
-
let walkupScanToCompCaps;
|
|
37
|
-
before(async () => {
|
|
38
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/walkupScanToCompCaps.xml"), { encoding: "utf8" });
|
|
39
|
-
walkupScanToCompCaps = await WalkupScanToCompCaps_1.default.createWalkupScanToCompCaps(content);
|
|
40
|
-
});
|
|
41
|
-
it("Parse supportsMultiItemScanFromPlaten", async () => {
|
|
42
|
-
(0, chai_1.expect)(walkupScanToCompCaps.supportsMultiItemScanFromPlaten).to.be.eq(true);
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
(0, mocha_1.describe)("Parsing walkupScanToCompCaps2.xml", async () => {
|
|
46
|
-
let walkupScanToCompCaps;
|
|
47
|
-
before(async () => {
|
|
48
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/walkupScanToCompCaps2.xml"), { encoding: "utf8" });
|
|
49
|
-
walkupScanToCompCaps = await WalkupScanToCompCaps_1.default.createWalkupScanToCompCaps(content);
|
|
50
|
-
});
|
|
51
|
-
it("Parse supportsMultiItemScanFromPlaten", async () => {
|
|
52
|
-
(0, chai_1.expect)(walkupScanToCompCaps.supportsMultiItemScanFromPlaten).to.be.eq(false);
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=WalkupScanToCompCa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C,CAAC,CAAC;QAEH,EAAE,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;YACrD,IAAA,aAAM,EAAC,oBAAoB,CAAC,+BAA+B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAC/E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC","sourcesContent":["import { describe } from \"mocha\";\nimport { expect } from \"chai\";\nimport path from \"path\";\nimport * as fs from \"fs/promises\";\nimport WalkupScanToCompCaps from \"../src/WalkupScanToCompCaps\";\n\ndescribe(\"WalkupScanToCompCaps\", () => {\n describe(\"Parsing walkupScanToCompCaps.xml\", async () => {\n let walkupScanToCompCaps: WalkupScanToCompCaps;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/walkupScanToCompCaps.xml\"\n ),\n { encoding: \"utf8\" }\n );\n walkupScanToCompCaps = await WalkupScanToCompCaps.createWalkupScanToCompCaps(content);\n });\n\n it(\"Parse supportsMultiItemScanFromPlaten\", async () => {\n expect(walkupScanToCompCaps.supportsMultiItemScanFromPlaten).to.be.eq(true);\n });\n });\n describe(\"Parsing walkupScanToCompCaps2.xml\", async () => {\n let walkupScanToCompCaps: WalkupScanToCompCaps;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/walkupScanToCompCaps2.xml\"\n ),\n { encoding: \"utf8\" }\n );\n walkupScanToCompCaps = await WalkupScanToCompCaps.createWalkupScanToCompCaps(content);\n });\n\n it(\"Parse supportsMultiItemScanFromPlaten\", async () => {\n expect(walkupScanToCompCaps.supportsMultiItemScanFromPlaten).to.be.eq(false);\n });\n });\n\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const mocha_1 = require("mocha");
|
|
30
|
-
const chai_1 = require("chai");
|
|
31
|
-
const path_1 = __importDefault(require("path"));
|
|
32
|
-
const fs = __importStar(require("fs/promises"));
|
|
33
|
-
const WalkupScanToCompDestination_1 = __importDefault(require("../src/WalkupScanToCompDestination"));
|
|
34
|
-
(0, mocha_1.describe)("WalkupScanToCompDestination", () => {
|
|
35
|
-
(0, mocha_1.describe)("Parsing walkupScanToCompDestination_with_ScanPlexMode.xml", async () => {
|
|
36
|
-
let destination;
|
|
37
|
-
before(async () => {
|
|
38
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/walkupScanToCompDestination_with_ScanPlexMode.xml"), { encoding: "utf8" });
|
|
39
|
-
destination = await WalkupScanToCompDestination_1.default.createWalkupScanToCompDestination(content);
|
|
40
|
-
});
|
|
41
|
-
it("Parse scanPlexMode", async () => {
|
|
42
|
-
(0, chai_1.expect)(destination.scanPlexMode).to.be.eq("Simplex");
|
|
43
|
-
});
|
|
44
|
-
it("Parse shortcut", async () => {
|
|
45
|
-
(0, chai_1.expect)(destination.shortcut).to.be.eq("SavePDF");
|
|
46
|
-
});
|
|
47
|
-
it("Parse resourceURI", async () => {
|
|
48
|
-
(0, chai_1.expect)(destination.resourceURI).to.be.eq("/WalkupScanToComp/WalkupScanToCompDestinations/1c881fde-c4a0-1f08-822f-a01d48c5c091");
|
|
49
|
-
});
|
|
50
|
-
it("Parse hostname", async () => {
|
|
51
|
-
(0, chai_1.expect)(destination.hostname).to.be.eq("FIXE");
|
|
52
|
-
});
|
|
53
|
-
it("Parse name", async () => {
|
|
54
|
-
(0, chai_1.expect)(destination.name).to.be.eq("FIXE");
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=WalkupScanToCompDestination.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalkupScanToCompDestination.test.js","sourceRoot":"","sources":["../../test/WalkupScanToCompDestination.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,+BAA8B;AAC9B,gDAAwB;AACxB,gDAAkC;AAClC,qGAA6E;AAE7E,IAAA,gBAAQ,EAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,IAAA,gBAAQ,EAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;QAC/E,IAAI,WAAwC,CAAC;QAE7C,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,MAAM,OAAO,GAAW,MAAM,EAAE,CAAC,QAA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as fs from \"fs/promises\";\nimport WalkupScanToCompDestination from \"../src/WalkupScanToCompDestination\";\n\ndescribe(\"WalkupScanToCompDestination\", () => {\n describe(\"Parsing walkupScanToCompDestination_with_ScanPlexMode.xml\", async () => {\n let destination: WalkupScanToCompDestination;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/walkupScanToCompDestination_with_ScanPlexMode.xml\"\n ),\n { encoding: \"utf8\" }\n );\n destination = await WalkupScanToCompDestination.createWalkupScanToCompDestination(content);\n });\n\n it(\"Parse scanPlexMode\", async () => {\n expect(destination.scanPlexMode).to.be.eq(\"Simplex\");\n });\n\n it(\"Parse shortcut\", async () => {\n expect(destination.shortcut).to.be.eq(\"SavePDF\");\n });\n\n it(\"Parse resourceURI\", async () => {\n expect(destination.resourceURI).to.be.eq(\n \"/WalkupScanToComp/WalkupScanToCompDestinations/1c881fde-c4a0-1f08-822f-a01d48c5c091\"\n );\n });\n\n it(\"Parse hostname\", async () => {\n expect(destination.hostname).to.be.eq(\"FIXE\");\n });\n\n it(\"Parse name\", async () => {\n expect(destination.name).to.be.eq(\"FIXE\");\n });\n });\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const mocha_1 = require("mocha");
|
|
30
|
-
const chai_1 = require("chai");
|
|
31
|
-
const path_1 = __importDefault(require("path"));
|
|
32
|
-
const fs = __importStar(require("fs/promises"));
|
|
33
|
-
const WalkupScanToCompDestinations_1 = __importDefault(require("../src/WalkupScanToCompDestinations"));
|
|
34
|
-
(0, mocha_1.describe)("WalkupScanToCompDestinations", () => {
|
|
35
|
-
(0, mocha_1.describe)("Parsing walkupScanToCompDestination_with_ScanPlexMode.xml", async () => {
|
|
36
|
-
let destinations;
|
|
37
|
-
before(async () => {
|
|
38
|
-
const content = await fs.readFile(path_1.default.resolve(__dirname, "./asset/walkupScanToCompDestinations.xml"), { encoding: "utf8" });
|
|
39
|
-
destinations = await WalkupScanToCompDestinations_1.default.createWalkupScanToCompDestinations(content);
|
|
40
|
-
});
|
|
41
|
-
it("Parse scanPlexMode", async () => {
|
|
42
|
-
(0, chai_1.expect)(destinations.destinations[0].scanPlexMode).to.be.eq(null);
|
|
43
|
-
});
|
|
44
|
-
it("Parse shortcut", async () => {
|
|
45
|
-
(0, chai_1.expect)(destinations.destinations[0].shortcut).to.be.eq(null);
|
|
46
|
-
});
|
|
47
|
-
it("Parse resourceURI", async () => {
|
|
48
|
-
(0, chai_1.expect)(destinations.destinations[0].resourceURI).to.be.eq("/WalkupScanToComp/WalkupScanToCompDestinations/4ad05d8e-20e8-4b8c-bdaa-5e6eca0dd3d8");
|
|
49
|
-
});
|
|
50
|
-
it("Parse hostname", async () => {
|
|
51
|
-
(0, chai_1.expect)(destinations.destinations[0].hostname).to.be.eq("8d170beb5887");
|
|
52
|
-
});
|
|
53
|
-
it("Parse name", async () => {
|
|
54
|
-
(0, chai_1.expect)(destinations.destinations[0].name).to.be.eq("8d170beb5887");
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=WalkupScanToCompDestinations.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalkupScanToCompDestinations.test.js","sourceRoot":"","sources":["../../test/WalkupScanToCompDestinations.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,+BAA8B;AAC9B,gDAAwB;AACxB,gDAAkC;AAClC,uGAA+E;AAE/E,IAAA,gBAAQ,EAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,IAAA,gBAAQ,EAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;QAC/E,IAAI,YAA0C,CAAC;QAE/C,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,MAAM,OAAO,GAAW,MAAM,EAAE,CAAC,QAAQ,CACvC,cAAI,CAAC,OAAO,CACV,SAAS,EACT,0CAA0C,CAC3C,EACD,EAAE,QAAQ,EAAE,MAAM,EAAE,CACrB,CAAC;YACF,YAAY,GAAG,MAAM,sCAA4B,CAAC,kCAAkC,CAAC,OAAO,CAAC,CAAC;QAChG,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;YAClC,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;YAC9B,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;YACjC,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CACvD,qFAAqF,CACtF,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;YAC9B,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;QACzE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;YAC1B,IAAA,aAAM,EAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;QACrE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe } from \"mocha\";\nimport { expect } from \"chai\";\nimport path from \"path\";\nimport * as fs from \"fs/promises\";\nimport WalkupScanToCompDestinations from \"../src/WalkupScanToCompDestinations\";\n\ndescribe(\"WalkupScanToCompDestinations\", () => {\n describe(\"Parsing walkupScanToCompDestination_with_ScanPlexMode.xml\", async () => {\n let destinations: WalkupScanToCompDestinations;\n\n before(async () => {\n const content: string = await fs.readFile(\n path.resolve(\n __dirname,\n \"./asset/walkupScanToCompDestinations.xml\"\n ),\n { encoding: \"utf8\" }\n );\n destinations = await WalkupScanToCompDestinations.createWalkupScanToCompDestinations(content);\n });\n\n it(\"Parse scanPlexMode\", async () => {\n expect(destinations.destinations[0].scanPlexMode).to.be.eq(null);\n });\n\n it(\"Parse shortcut\", async () => {\n expect(destinations.destinations[0].shortcut).to.be.eq(null);\n });\n\n it(\"Parse resourceURI\", async () => {\n expect(destinations.destinations[0].resourceURI).to.be.eq(\n \"/WalkupScanToComp/WalkupScanToCompDestinations/4ad05d8e-20e8-4b8c-bdaa-5e6eca0dd3d8\"\n );\n });\n\n it(\"Parse hostname\", async () => {\n expect(destinations.destinations[0].hostname).to.be.eq(\"8d170beb5887\");\n });\n\n it(\"Parse name\", async () => {\n expect(destinations.destinations[0].name).to.be.eq(\"8d170beb5887\");\n });\n });\n});\n"]}
|