node-opcua-convert-nodeset-to-javascript 2.70.1 → 2.71.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.
- package/dist/convert_namespace_to_typescript.d.ts +3 -3
- package/dist/convert_namespace_to_typescript.js +172 -172
- package/dist/convert_to_typescript.d.ts +110 -110
- package/dist/convert_to_typescript.js +912 -912
- package/dist/index.d.ts +3 -3
- package/dist/index.js +19 -19
- package/dist/main.d.ts +1 -1
- package/dist/main.js +74 -74
- package/dist/official_namespaces.d.ts +23 -23
- package/dist/official_namespaces.js +35 -35
- package/dist/options.d.ts +5 -5
- package/dist/options.js +2 -2
- package/dist/private/cache.d.ts +59 -59
- package/dist/private/cache.js +221 -221
- package/dist/private/to_filename.d.ts +1 -1
- package/dist/private/to_filename.js +9 -9
- package/dist/private/utils.d.ts +31 -31
- package/dist/private/utils.js +289 -289
- package/dist/private-stuff.d.ts +4 -4
- package/dist/private-stuff.js +20 -20
- package/dist/walk_through.d.ts +13 -13
- package/dist/walk_through.js +86 -86
- package/package.json +21 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./convert_to_typescript";
|
|
2
|
-
export * from "./convert_namespace_to_typescript";
|
|
3
|
-
export * from "./walk_through";
|
|
1
|
+
export * from "./convert_to_typescript";
|
|
2
|
+
export * from "./convert_namespace_to_typescript";
|
|
3
|
+
export * from "./walk_through";
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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("./convert_to_typescript"), exports);
|
|
18
|
-
__exportStar(require("./convert_namespace_to_typescript"), exports);
|
|
19
|
-
__exportStar(require("./walk_through"), exports);
|
|
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("./convert_to_typescript"), exports);
|
|
18
|
+
__exportStar(require("./convert_namespace_to_typescript"), exports);
|
|
19
|
+
__exportStar(require("./walk_through"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
package/dist/main.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/main.js
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const path = require("path");
|
|
13
|
-
const node_opcua_address_space_1 = require("node-opcua-address-space");
|
|
14
|
-
const nodeJS_1 = require("node-opcua-address-space/nodeJS");
|
|
15
|
-
const node_opcua_nodesets_1 = require("node-opcua-nodesets");
|
|
16
|
-
const convert_namespace_to_typescript_1 = require("./convert_namespace_to_typescript");
|
|
17
|
-
function main() {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const addressSpace = node_opcua_address_space_1.AddressSpace.create();
|
|
20
|
-
yield (0, nodeJS_1.generateAddressSpace)(addressSpace, [
|
|
21
|
-
node_opcua_nodesets_1.nodesets.standard,
|
|
22
|
-
node_opcua_nodesets_1.nodesets.di,
|
|
23
|
-
node_opcua_nodesets_1.nodesets.adi,
|
|
24
|
-
node_opcua_nodesets_1.nodesets.autoId,
|
|
25
|
-
node_opcua_nodesets_1.nodesets.machineVision,
|
|
26
|
-
node_opcua_nodesets_1.nodesets.commercialKitchenEquipment,
|
|
27
|
-
node_opcua_nodesets_1.nodesets.gds,
|
|
28
|
-
node_opcua_nodesets_1.nodesets.robotics,
|
|
29
|
-
node_opcua_nodesets_1.nodesets.machinery,
|
|
30
|
-
node_opcua_nodesets_1.nodesets.ia,
|
|
31
|
-
node_opcua_nodesets_1.nodesets.machineTool,
|
|
32
|
-
node_opcua_nodesets_1.nodesets.cnc,
|
|
33
|
-
node_opcua_nodesets_1.nodesets.woodWorking,
|
|
34
|
-
node_opcua_nodesets_1.nodesets.glass
|
|
35
|
-
]);
|
|
36
|
-
const nsUA = 0;
|
|
37
|
-
const nsDI = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/DI/");
|
|
38
|
-
const nsADI = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/ADI/");
|
|
39
|
-
const nsMachineVision = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/MachineVision");
|
|
40
|
-
const nsAutoId = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/AutoID/");
|
|
41
|
-
const nsGds = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/GDS/");
|
|
42
|
-
const nsRobotics = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Robotics/");
|
|
43
|
-
const nsMachinery = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Machinery/");
|
|
44
|
-
const nsIA = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/IA/");
|
|
45
|
-
const nsMachineTool = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/MachineTool/");
|
|
46
|
-
const ncCNC = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/CNC");
|
|
47
|
-
const nsCommercialKitchenEquipment = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/CommercialKitchenEquipment/");
|
|
48
|
-
const nsWW = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Woodworking/");
|
|
49
|
-
const nsGlass = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Glass/Flat/");
|
|
50
|
-
const session = new node_opcua_address_space_1.PseudoSession(addressSpace);
|
|
51
|
-
const options = {
|
|
52
|
-
baseFolder: path.join(__dirname, "../../"),
|
|
53
|
-
prefix: "node-opcua-nodeset-"
|
|
54
|
-
};
|
|
55
|
-
const promises = [
|
|
56
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsUA, options),
|
|
57
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsDI, options),
|
|
58
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsADI, options),
|
|
59
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsMachineVision, options),
|
|
60
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsAutoId, options),
|
|
61
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsGds, options),
|
|
62
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsRobotics, options),
|
|
63
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsMachinery, options),
|
|
64
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsIA, options),
|
|
65
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsMachineTool, options),
|
|
66
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, ncCNC, options),
|
|
67
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsCommercialKitchenEquipment, options),
|
|
68
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsWW, options),
|
|
69
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsGlass, options)
|
|
70
|
-
];
|
|
71
|
-
yield Promise.all(promises);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
main();
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const path = require("path");
|
|
13
|
+
const node_opcua_address_space_1 = require("node-opcua-address-space");
|
|
14
|
+
const nodeJS_1 = require("node-opcua-address-space/nodeJS");
|
|
15
|
+
const node_opcua_nodesets_1 = require("node-opcua-nodesets");
|
|
16
|
+
const convert_namespace_to_typescript_1 = require("./convert_namespace_to_typescript");
|
|
17
|
+
function main() {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const addressSpace = node_opcua_address_space_1.AddressSpace.create();
|
|
20
|
+
yield (0, nodeJS_1.generateAddressSpace)(addressSpace, [
|
|
21
|
+
node_opcua_nodesets_1.nodesets.standard,
|
|
22
|
+
node_opcua_nodesets_1.nodesets.di,
|
|
23
|
+
node_opcua_nodesets_1.nodesets.adi,
|
|
24
|
+
node_opcua_nodesets_1.nodesets.autoId,
|
|
25
|
+
node_opcua_nodesets_1.nodesets.machineVision,
|
|
26
|
+
node_opcua_nodesets_1.nodesets.commercialKitchenEquipment,
|
|
27
|
+
node_opcua_nodesets_1.nodesets.gds,
|
|
28
|
+
node_opcua_nodesets_1.nodesets.robotics,
|
|
29
|
+
node_opcua_nodesets_1.nodesets.machinery,
|
|
30
|
+
node_opcua_nodesets_1.nodesets.ia,
|
|
31
|
+
node_opcua_nodesets_1.nodesets.machineTool,
|
|
32
|
+
node_opcua_nodesets_1.nodesets.cnc,
|
|
33
|
+
node_opcua_nodesets_1.nodesets.woodWorking,
|
|
34
|
+
node_opcua_nodesets_1.nodesets.glass
|
|
35
|
+
]);
|
|
36
|
+
const nsUA = 0;
|
|
37
|
+
const nsDI = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/DI/");
|
|
38
|
+
const nsADI = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/ADI/");
|
|
39
|
+
const nsMachineVision = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/MachineVision");
|
|
40
|
+
const nsAutoId = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/AutoID/");
|
|
41
|
+
const nsGds = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/GDS/");
|
|
42
|
+
const nsRobotics = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Robotics/");
|
|
43
|
+
const nsMachinery = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Machinery/");
|
|
44
|
+
const nsIA = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/IA/");
|
|
45
|
+
const nsMachineTool = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/MachineTool/");
|
|
46
|
+
const ncCNC = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/CNC");
|
|
47
|
+
const nsCommercialKitchenEquipment = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/CommercialKitchenEquipment/");
|
|
48
|
+
const nsWW = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Woodworking/");
|
|
49
|
+
const nsGlass = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Glass/Flat/");
|
|
50
|
+
const session = new node_opcua_address_space_1.PseudoSession(addressSpace);
|
|
51
|
+
const options = {
|
|
52
|
+
baseFolder: path.join(__dirname, "../../"),
|
|
53
|
+
prefix: "node-opcua-nodeset-"
|
|
54
|
+
};
|
|
55
|
+
const promises = [
|
|
56
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsUA, options),
|
|
57
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsDI, options),
|
|
58
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsADI, options),
|
|
59
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsMachineVision, options),
|
|
60
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsAutoId, options),
|
|
61
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsGds, options),
|
|
62
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsRobotics, options),
|
|
63
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsMachinery, options),
|
|
64
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsIA, options),
|
|
65
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsMachineTool, options),
|
|
66
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, ncCNC, options),
|
|
67
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsCommercialKitchenEquipment, options),
|
|
68
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsWW, options),
|
|
69
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsGlass, options)
|
|
70
|
+
];
|
|
71
|
+
yield Promise.all(promises);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
main();
|
|
75
75
|
//# sourceMappingURL=main.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare const officialNamespaces: {
|
|
2
|
-
standard: {
|
|
3
|
-
location: string;
|
|
4
|
-
};
|
|
5
|
-
di: {
|
|
6
|
-
location: string;
|
|
7
|
-
};
|
|
8
|
-
adi: {
|
|
9
|
-
location: string;
|
|
10
|
-
};
|
|
11
|
-
autoId: {
|
|
12
|
-
location: string;
|
|
13
|
-
};
|
|
14
|
-
machineVision: {
|
|
15
|
-
location: string;
|
|
16
|
-
};
|
|
17
|
-
commercialKitchenEquipment: {
|
|
18
|
-
location: string;
|
|
19
|
-
};
|
|
20
|
-
gds: {
|
|
21
|
-
location: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
1
|
+
export declare const officialNamespaces: {
|
|
2
|
+
standard: {
|
|
3
|
+
location: string;
|
|
4
|
+
};
|
|
5
|
+
di: {
|
|
6
|
+
location: string;
|
|
7
|
+
};
|
|
8
|
+
adi: {
|
|
9
|
+
location: string;
|
|
10
|
+
};
|
|
11
|
+
autoId: {
|
|
12
|
+
location: string;
|
|
13
|
+
};
|
|
14
|
+
machineVision: {
|
|
15
|
+
location: string;
|
|
16
|
+
};
|
|
17
|
+
commercialKitchenEquipment: {
|
|
18
|
+
location: string;
|
|
19
|
+
};
|
|
20
|
+
gds: {
|
|
21
|
+
location: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.officialNamespaces = void 0;
|
|
4
|
-
exports.officialNamespaces = {
|
|
5
|
-
"standard": {
|
|
6
|
-
location: "node-opcua-ua-types-ua"
|
|
7
|
-
},
|
|
8
|
-
"di": {
|
|
9
|
-
location: "node-opcua-nodeset-di"
|
|
10
|
-
},
|
|
11
|
-
"adi": {
|
|
12
|
-
location: "node-opcua-nodeset-adi"
|
|
13
|
-
},
|
|
14
|
-
"autoId": {
|
|
15
|
-
location: "node-opcua-nodeset-auto-id"
|
|
16
|
-
},
|
|
17
|
-
"machineVision": {
|
|
18
|
-
location: "node-opcua-nodeset-machine-vision"
|
|
19
|
-
},
|
|
20
|
-
"commercialKitchenEquipment": {
|
|
21
|
-
location: "node-opcua-nodeset-commercial-kitchen-equipment"
|
|
22
|
-
},
|
|
23
|
-
"gds": {
|
|
24
|
-
location: "node-opcua-types-gds"
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
/*
|
|
28
|
-
nodesets.standard,
|
|
29
|
-
nodesets.di,
|
|
30
|
-
nodesets.adi,
|
|
31
|
-
nodesets.autoId,
|
|
32
|
-
nodesets.machineVision,
|
|
33
|
-
nodesets.commercialKitchenEquipment,
|
|
34
|
-
nodesets.gds
|
|
35
|
-
*/
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.officialNamespaces = void 0;
|
|
4
|
+
exports.officialNamespaces = {
|
|
5
|
+
"standard": {
|
|
6
|
+
location: "node-opcua-ua-types-ua"
|
|
7
|
+
},
|
|
8
|
+
"di": {
|
|
9
|
+
location: "node-opcua-nodeset-di"
|
|
10
|
+
},
|
|
11
|
+
"adi": {
|
|
12
|
+
location: "node-opcua-nodeset-adi"
|
|
13
|
+
},
|
|
14
|
+
"autoId": {
|
|
15
|
+
location: "node-opcua-nodeset-auto-id"
|
|
16
|
+
},
|
|
17
|
+
"machineVision": {
|
|
18
|
+
location: "node-opcua-nodeset-machine-vision"
|
|
19
|
+
},
|
|
20
|
+
"commercialKitchenEquipment": {
|
|
21
|
+
location: "node-opcua-nodeset-commercial-kitchen-equipment"
|
|
22
|
+
},
|
|
23
|
+
"gds": {
|
|
24
|
+
location: "node-opcua-types-gds"
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
/*
|
|
28
|
+
nodesets.standard,
|
|
29
|
+
nodesets.di,
|
|
30
|
+
nodesets.adi,
|
|
31
|
+
nodesets.autoId,
|
|
32
|
+
nodesets.machineVision,
|
|
33
|
+
nodesets.commercialKitchenEquipment,
|
|
34
|
+
nodesets.gds
|
|
35
|
+
*/
|
|
36
36
|
//# sourceMappingURL=official_namespaces.js.map
|
package/dist/options.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface Options {
|
|
2
|
-
baseFolder: string;
|
|
3
|
-
prefix: string;
|
|
4
|
-
lookupFolders?: string[];
|
|
5
|
-
}
|
|
1
|
+
export interface Options {
|
|
2
|
+
baseFolder: string;
|
|
3
|
+
prefix: string;
|
|
4
|
+
lookupFolders?: string[];
|
|
5
|
+
}
|
package/dist/options.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=options.js.map
|
package/dist/private/cache.d.ts
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { NodeClass, QualifiedName } from "node-opcua-data-model";
|
|
2
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
3
|
-
import { IBasicSession } from "node-opcua-pseudo-session";
|
|
4
|
-
import { DataTypeDefinition } from "node-opcua-types";
|
|
5
|
-
import { Options } from "../options";
|
|
6
|
-
export interface Import {
|
|
7
|
-
name: string;
|
|
8
|
-
module: string;
|
|
9
|
-
namespace: number;
|
|
10
|
-
}
|
|
11
|
-
interface CacheInterfaceNamespace {
|
|
12
|
-
namespaceUri: string;
|
|
13
|
-
sourceFolder: string;
|
|
14
|
-
module: string;
|
|
15
|
-
symbols: {
|
|
16
|
-
[key: string]: number;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
interface CacheInterface {
|
|
20
|
-
namespace: CacheInterfaceNamespace[];
|
|
21
|
-
requestedSymbols: RequestedSymbol;
|
|
22
|
-
}
|
|
23
|
-
export interface RequestedSubSymbol {
|
|
24
|
-
subSymbols: {
|
|
25
|
-
[key: string]: number;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
interface RequestedSymbol {
|
|
29
|
-
namespace: {
|
|
30
|
-
symbols: {
|
|
31
|
-
[key: string]: RequestedSubSymbol;
|
|
32
|
-
};
|
|
33
|
-
}[];
|
|
34
|
-
}
|
|
35
|
-
export declare class Cache implements CacheInterface {
|
|
36
|
-
namespace: CacheInterfaceNamespace[];
|
|
37
|
-
requestedSymbols: RequestedSymbol;
|
|
38
|
-
requestedBasicTypes: {
|
|
39
|
-
[key: string]: number;
|
|
40
|
-
};
|
|
41
|
-
imports: {
|
|
42
|
-
[key: string]: {
|
|
43
|
-
[key: string]: number;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
constructor();
|
|
47
|
-
resetRequire(): void;
|
|
48
|
-
referenceBasicType(basicType: string): string;
|
|
49
|
-
_reference(namespaceIndex: number, typeName: string, mainTypeName?: string): void;
|
|
50
|
-
ensureImported(i: Import): void;
|
|
51
|
-
}
|
|
52
|
-
export declare function referenceExtensionObject(session: IBasicSession, extensionObjectDataType: NodeId): Promise<Import>;
|
|
53
|
-
export declare function referenceEnumeration(session: IBasicSession, enumerationDataType: NodeId): Promise<Import>;
|
|
54
|
-
export declare class Cache2 extends Cache {
|
|
55
|
-
namespaceArray: string[];
|
|
56
|
-
}
|
|
57
|
-
export declare function constructCache(session: IBasicSession, options: Options): Promise<Cache2>;
|
|
58
|
-
export declare function makeTypeNameNew(nodeClass: NodeClass, definition: DataTypeDefinition | null, browseName: QualifiedName, suffix?: string): Import;
|
|
59
|
-
export {};
|
|
1
|
+
import { NodeClass, QualifiedName } from "node-opcua-data-model";
|
|
2
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
3
|
+
import { IBasicSession } from "node-opcua-pseudo-session";
|
|
4
|
+
import { DataTypeDefinition } from "node-opcua-types";
|
|
5
|
+
import { Options } from "../options";
|
|
6
|
+
export interface Import {
|
|
7
|
+
name: string;
|
|
8
|
+
module: string;
|
|
9
|
+
namespace: number;
|
|
10
|
+
}
|
|
11
|
+
interface CacheInterfaceNamespace {
|
|
12
|
+
namespaceUri: string;
|
|
13
|
+
sourceFolder: string;
|
|
14
|
+
module: string;
|
|
15
|
+
symbols: {
|
|
16
|
+
[key: string]: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
interface CacheInterface {
|
|
20
|
+
namespace: CacheInterfaceNamespace[];
|
|
21
|
+
requestedSymbols: RequestedSymbol;
|
|
22
|
+
}
|
|
23
|
+
export interface RequestedSubSymbol {
|
|
24
|
+
subSymbols: {
|
|
25
|
+
[key: string]: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
interface RequestedSymbol {
|
|
29
|
+
namespace: {
|
|
30
|
+
symbols: {
|
|
31
|
+
[key: string]: RequestedSubSymbol;
|
|
32
|
+
};
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
35
|
+
export declare class Cache implements CacheInterface {
|
|
36
|
+
namespace: CacheInterfaceNamespace[];
|
|
37
|
+
requestedSymbols: RequestedSymbol;
|
|
38
|
+
requestedBasicTypes: {
|
|
39
|
+
[key: string]: number;
|
|
40
|
+
};
|
|
41
|
+
imports: {
|
|
42
|
+
[key: string]: {
|
|
43
|
+
[key: string]: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
constructor();
|
|
47
|
+
resetRequire(): void;
|
|
48
|
+
referenceBasicType(basicType: string): string;
|
|
49
|
+
_reference(namespaceIndex: number, typeName: string, mainTypeName?: string): void;
|
|
50
|
+
ensureImported(i: Import): void;
|
|
51
|
+
}
|
|
52
|
+
export declare function referenceExtensionObject(session: IBasicSession, extensionObjectDataType: NodeId): Promise<Import>;
|
|
53
|
+
export declare function referenceEnumeration(session: IBasicSession, enumerationDataType: NodeId): Promise<Import>;
|
|
54
|
+
export declare class Cache2 extends Cache {
|
|
55
|
+
namespaceArray: string[];
|
|
56
|
+
}
|
|
57
|
+
export declare function constructCache(session: IBasicSession, options: Options): Promise<Cache2>;
|
|
58
|
+
export declare function makeTypeNameNew(nodeClass: NodeClass, definition: DataTypeDefinition | null, browseName: QualifiedName, suffix?: string): Import;
|
|
59
|
+
export {};
|