node-opcua-types 2.98.0 → 2.98.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/dist/_generated_opcua_types.d.ts +6972 -0
- package/dist/_generated_opcua_types.js +25750 -0
- package/dist/_generated_opcua_types.js.map +1 -0
- package/dist/generate.d.ts +1 -0
- package/dist/generate.js +41 -0
- package/dist/generate.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/package.json +20 -16
- package/xmlschemas/OPCBinarySchema.xsd +0 -149
- package/xmlschemas/Opc.Ua.Types.bsd +0 -3353
- package/xmlschemas/Opc.Ua.Types.bsd.xml +0 -1
- package/xmlschemas/Opc.Ua.Types.xsd +0 -5712
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/generate.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* @module node-opcua-types
|
|
14
|
+
*/
|
|
15
|
+
// tslint:disable:no-console
|
|
16
|
+
const path = require("path");
|
|
17
|
+
const d = require("node-opcua-data-model");
|
|
18
|
+
const node_opcua_data_value_1 = require("node-opcua-data-value");
|
|
19
|
+
const node_opcua_generator_1 = require("node-opcua-generator");
|
|
20
|
+
const n = require("node-opcua-numeric-range");
|
|
21
|
+
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
22
|
+
const force_inclusion = n.NumericRange;
|
|
23
|
+
const force_inclusion_QualifiedName = d.QualifiedName;
|
|
24
|
+
const force_inclusion_LocalizedText = d.LocalizedText;
|
|
25
|
+
const force_inclusion_Variant = node_opcua_variant_1.Variant;
|
|
26
|
+
const force_inclusion_DataValue = node_opcua_data_value_1.DataValue;
|
|
27
|
+
function main() {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
try {
|
|
30
|
+
// await build_generated_folder();
|
|
31
|
+
const filename = path.join(__dirname, "../xmlschemas/Opc.Ua.Types.bsd");
|
|
32
|
+
const generatedTypescriptFilename = path.join(__dirname, "_generated_opcua_types.ts");
|
|
33
|
+
yield (0, node_opcua_generator_1.generate)(filename, generatedTypescriptFilename);
|
|
34
|
+
}
|
|
35
|
+
catch (err) {
|
|
36
|
+
console.log(err);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
main().then().catch();
|
|
41
|
+
//# sourceMappingURL=generate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../source/generate.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA;;GAEG;AACH,4BAA4B;AAC5B,6BAA6B;AAC7B,2CAA2C;AAC3C,iEAAkD;AAClD,+DAAgD;AAChD,8CAA8C;AAC9C,2DAA6C;AAE7C,MAAM,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;AACvC,MAAM,6BAA6B,GAAG,CAAC,CAAC,aAAa,CAAC;AACtD,MAAM,6BAA6B,GAAG,CAAC,CAAC,aAAa,CAAC;AACtD,MAAM,uBAAuB,GAAG,4BAAO,CAAC;AACxC,MAAM,yBAAyB,GAAG,iCAAS,CAAC;AAE5C,SAAe,IAAI;;QACf,IAAI;YACA,kCAAkC;YAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,gCAAgC,CAAC,CAAC;YACxE,MAAM,2BAA2B,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAC;YACtF,MAAM,IAAA,+BAAQ,EAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;SACzD;QAAC,OAAO,GAAG,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACpB;IACL,CAAC;CAAA;AACD,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
/**
|
|
18
|
+
* @module node-opcua-types
|
|
19
|
+
*/
|
|
20
|
+
__exportStar(require("./_generated_opcua_types"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,2DAAyC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-types",
|
|
3
|
-
"version": "2.98.
|
|
4
|
-
"description": "pure nodejs OPCUA SDK - module
|
|
3
|
+
"version": "2.98.2",
|
|
4
|
+
"description": "pure nodejs OPCUA SDK - module types",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"clean": "npx rimraf node_modules dist *.tsbuildinfo"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"node-opcua-assert": "2.
|
|
16
|
-
"node-opcua-basic-types": "2.98.
|
|
17
|
-
"node-opcua-binary-stream": "2.98.
|
|
18
|
-
"node-opcua-data-model": "2.98.
|
|
19
|
-
"node-opcua-data-value": "2.98.
|
|
20
|
-
"node-opcua-enum": "2.98.
|
|
21
|
-
"node-opcua-extension-object": "2.98.
|
|
22
|
-
"node-opcua-factory": "2.98.
|
|
23
|
-
"node-opcua-generator": "2.98.
|
|
24
|
-
"node-opcua-nodeid": "2.98.
|
|
25
|
-
"node-opcua-numeric-range": "2.98.
|
|
26
|
-
"node-opcua-status-code": "2.98.
|
|
27
|
-
"node-opcua-variant": "2.98.
|
|
15
|
+
"node-opcua-assert": "2.98.1",
|
|
16
|
+
"node-opcua-basic-types": "2.98.1",
|
|
17
|
+
"node-opcua-binary-stream": "2.98.1",
|
|
18
|
+
"node-opcua-data-model": "2.98.1",
|
|
19
|
+
"node-opcua-data-value": "2.98.1",
|
|
20
|
+
"node-opcua-enum": "2.98.1",
|
|
21
|
+
"node-opcua-extension-object": "2.98.1",
|
|
22
|
+
"node-opcua-factory": "2.98.1",
|
|
23
|
+
"node-opcua-generator": "2.98.2",
|
|
24
|
+
"node-opcua-nodeid": "2.98.1",
|
|
25
|
+
"node-opcua-numeric-range": "2.98.1",
|
|
26
|
+
"node-opcua-status-code": "2.98.1",
|
|
27
|
+
"node-opcua-variant": "2.98.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"should": "^13.2.3"
|
|
@@ -44,5 +44,9 @@
|
|
|
44
44
|
"internet of things"
|
|
45
45
|
],
|
|
46
46
|
"homepage": "http://node-opcua.github.io/",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "6df8aa25475ba1235e585566cb2dec68b7e7a85f",
|
|
48
|
+
"files": [
|
|
49
|
+
"dist",
|
|
50
|
+
"source"
|
|
51
|
+
]
|
|
48
52
|
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
-
<!--
|
|
3
|
-
* Copyright (c) 2005-2020 The OPC Foundation, Inc. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* OPC Foundation MIT License 1.00
|
|
6
|
-
*
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person
|
|
8
|
-
* obtaining a copy of this software and associated documentation
|
|
9
|
-
* files (the "Software"), to deal in the Software without
|
|
10
|
-
* restriction, including without limitation the rights to use,
|
|
11
|
-
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
* copies of the Software, and to permit persons to whom the
|
|
13
|
-
* Software is furnished to do so, subject to the following
|
|
14
|
-
* conditions:
|
|
15
|
-
*
|
|
16
|
-
* The above copyright notice and this permission notice shall be
|
|
17
|
-
* included in all copies or substantial portions of the Software.
|
|
18
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
19
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
20
|
-
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
21
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
22
|
-
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
23
|
-
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
24
|
-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
25
|
-
* OTHER DEALINGS IN THE SOFTWARE.
|
|
26
|
-
*
|
|
27
|
-
* The complete license agreement can be found here:
|
|
28
|
-
* http://opcfoundation.org/License/MIT/1.00/
|
|
29
|
-
-->
|
|
30
|
-
|
|
31
|
-
<xs:schema
|
|
32
|
-
targetNamespace="http://opcfoundation.org/BinarySchema/"
|
|
33
|
-
elementFormDefault="qualified"
|
|
34
|
-
xmlns="http://opcfoundation.org/BinarySchema/"
|
|
35
|
-
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
36
|
-
>
|
|
37
|
-
<xs:element name="Documentation">
|
|
38
|
-
<xs:complexType mixed="true">
|
|
39
|
-
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
|
40
|
-
<xs:any minOccurs="0" maxOccurs="unbounded"/>
|
|
41
|
-
</xs:choice>
|
|
42
|
-
<xs:anyAttribute/>
|
|
43
|
-
</xs:complexType>
|
|
44
|
-
</xs:element>
|
|
45
|
-
|
|
46
|
-
<xs:complexType name="ImportDirective">
|
|
47
|
-
<xs:attribute name="Namespace" type="xs:string" use="optional" />
|
|
48
|
-
<xs:attribute name="Location" type="xs:string" use="optional" />
|
|
49
|
-
</xs:complexType>
|
|
50
|
-
|
|
51
|
-
<xs:simpleType name="ByteOrder">
|
|
52
|
-
<xs:restriction base="xs:string">
|
|
53
|
-
<xs:enumeration value="BigEndian" />
|
|
54
|
-
<xs:enumeration value="LittleEndian" />
|
|
55
|
-
</xs:restriction>
|
|
56
|
-
</xs:simpleType>
|
|
57
|
-
|
|
58
|
-
<xs:complexType name="TypeDescription">
|
|
59
|
-
<xs:sequence>
|
|
60
|
-
<xs:element ref="Documentation" minOccurs="0" maxOccurs="1" />
|
|
61
|
-
</xs:sequence>
|
|
62
|
-
<xs:attribute name="Name" type="xs:NCName" use="required" />
|
|
63
|
-
<xs:attribute name="DefaultByteOrder" type="ByteOrder" use="optional" />
|
|
64
|
-
<xs:anyAttribute processContents="lax" />
|
|
65
|
-
</xs:complexType>
|
|
66
|
-
|
|
67
|
-
<xs:complexType name="OpaqueType">
|
|
68
|
-
<xs:complexContent>
|
|
69
|
-
<xs:extension base="TypeDescription">
|
|
70
|
-
<xs:attribute name="LengthInBits" type="xs:int" use="optional" />
|
|
71
|
-
<xs:attribute name="ByteOrderSignificant" type="xs:boolean" default="false" />
|
|
72
|
-
</xs:extension>
|
|
73
|
-
</xs:complexContent>
|
|
74
|
-
</xs:complexType>
|
|
75
|
-
|
|
76
|
-
<xs:complexType name="EnumeratedValue">
|
|
77
|
-
<xs:sequence>
|
|
78
|
-
<xs:element ref="Documentation" minOccurs="0" maxOccurs="1" />
|
|
79
|
-
</xs:sequence>
|
|
80
|
-
<xs:attribute name="Name" type="xs:string" use="optional" />
|
|
81
|
-
<xs:attribute name="Value" type="xs:int" use="optional" />
|
|
82
|
-
</xs:complexType>
|
|
83
|
-
|
|
84
|
-
<xs:complexType name="EnumeratedType">
|
|
85
|
-
<xs:complexContent>
|
|
86
|
-
<xs:extension base="OpaqueType">
|
|
87
|
-
<xs:sequence>
|
|
88
|
-
<xs:element name="EnumeratedValue" type="EnumeratedValue" maxOccurs="unbounded" />
|
|
89
|
-
</xs:sequence>
|
|
90
|
-
<xs:attribute name="IsOptionSet" type="xs:boolean" default="false" />
|
|
91
|
-
</xs:extension>
|
|
92
|
-
</xs:complexContent>
|
|
93
|
-
</xs:complexType>
|
|
94
|
-
|
|
95
|
-
<xs:simpleType name="SwitchOperand">
|
|
96
|
-
<xs:restriction base="xs:string">
|
|
97
|
-
<xs:enumeration value="Equals" />
|
|
98
|
-
<xs:enumeration value="GreaterThan" />
|
|
99
|
-
<xs:enumeration value="LessThan" />
|
|
100
|
-
<xs:enumeration value="GreaterThanOrEqual" />
|
|
101
|
-
<xs:enumeration value="LessThanOrEqual" />
|
|
102
|
-
<xs:enumeration value="NotEqual" />
|
|
103
|
-
</xs:restriction>
|
|
104
|
-
</xs:simpleType>
|
|
105
|
-
|
|
106
|
-
<xs:complexType name="FieldType">
|
|
107
|
-
<xs:sequence>
|
|
108
|
-
<xs:element ref="Documentation" minOccurs="0" maxOccurs="1" />
|
|
109
|
-
</xs:sequence>
|
|
110
|
-
<xs:attribute name="Name" type="xs:string" use="required" />
|
|
111
|
-
<xs:attribute name="TypeName" type="xs:QName" use="optional" />
|
|
112
|
-
<xs:attribute name="Length" type="xs:unsignedInt" use="optional" />
|
|
113
|
-
<xs:attribute name="LengthField" type="xs:string" use="optional" />
|
|
114
|
-
<xs:attribute name="IsLengthInBytes" type="xs:boolean" default="false" />
|
|
115
|
-
<xs:attribute name="SwitchField" type="xs:string" use="optional" />
|
|
116
|
-
<xs:attribute name="SwitchValue" type="xs:unsignedInt" use="optional" />
|
|
117
|
-
<xs:attribute name="SwitchOperand" type="SwitchOperand" use="optional" />
|
|
118
|
-
<xs:attribute name="Terminator" type="xs:hexBinary" use="optional" />
|
|
119
|
-
<xs:anyAttribute processContents="lax" />
|
|
120
|
-
</xs:complexType>
|
|
121
|
-
|
|
122
|
-
<xs:complexType name="StructuredType">
|
|
123
|
-
<xs:complexContent>
|
|
124
|
-
<xs:extension base="TypeDescription">
|
|
125
|
-
<xs:sequence>
|
|
126
|
-
<xs:element name="Field" type="FieldType" minOccurs="0" maxOccurs="unbounded" />
|
|
127
|
-
</xs:sequence>
|
|
128
|
-
</xs:extension>
|
|
129
|
-
</xs:complexContent>
|
|
130
|
-
</xs:complexType>
|
|
131
|
-
|
|
132
|
-
<xs:element name="TypeDictionary">
|
|
133
|
-
<xs:complexType>
|
|
134
|
-
<xs:sequence>
|
|
135
|
-
<xs:element ref="Documentation" minOccurs="0" maxOccurs="1" />
|
|
136
|
-
<xs:element name="Import" type="ImportDirective" minOccurs="0" maxOccurs="unbounded" />
|
|
137
|
-
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
|
138
|
-
<xs:element name="OpaqueType" type="OpaqueType" />
|
|
139
|
-
<xs:element name="EnumeratedType" type="EnumeratedType" />
|
|
140
|
-
<xs:element name="StructuredType" type="StructuredType" />
|
|
141
|
-
</xs:choice>
|
|
142
|
-
</xs:sequence>
|
|
143
|
-
<xs:attribute name="TargetNamespace" type="xs:string" use="required" />
|
|
144
|
-
<xs:attribute name="DefaultByteOrder" type="ByteOrder" use="optional" />
|
|
145
|
-
<xs:anyAttribute processContents="lax" />
|
|
146
|
-
</xs:complexType>
|
|
147
|
-
</xs:element>
|
|
148
|
-
|
|
149
|
-
</xs:schema>
|