node-opcua-factory 2.97.0 → 2.98.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,40 +1,40 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decodeNull = exports.encodeNull = exports.decodeAny = exports.encodeAny = exports.toJSONGuid = exports.defaultGuidValue = exports.defaultDecode = exports.defaultEncode = void 0;
4
- const node_opcua_assert_1 = require("node-opcua-assert");
5
- function defaultEncode(value, stream) {
6
- /** */
7
- }
8
- exports.defaultEncode = defaultEncode;
9
- function defaultDecode(stream) {
10
- return null;
11
- }
12
- exports.defaultDecode = defaultDecode;
13
- function defaultGuidValue() {
14
- return Buffer.alloc(0);
15
- }
16
- exports.defaultGuidValue = defaultGuidValue;
17
- function toJSONGuid(value) {
18
- if (typeof value === "string") {
19
- return value;
20
- }
21
- (0, node_opcua_assert_1.default)(value instanceof Buffer);
22
- return value.toString("base64");
23
- }
24
- exports.toJSONGuid = toJSONGuid;
25
- function encodeAny(value, stream) {
26
- (0, node_opcua_assert_1.default)(false, "type 'Any' cannot be encoded");
27
- }
28
- exports.encodeAny = encodeAny;
29
- function decodeAny(stream) {
30
- (0, node_opcua_assert_1.default)(false, "type 'Any' cannot be decoded");
31
- }
32
- exports.decodeAny = decodeAny;
33
- // eslint-disable-next-line @typescript-eslint/no-empty-function
34
- function encodeNull(value, stream) { }
35
- exports.encodeNull = encodeNull;
36
- function decodeNull(stream) {
37
- return null;
38
- }
39
- exports.decodeNull = decodeNull;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.decodeNull = exports.encodeNull = exports.decodeAny = exports.encodeAny = exports.toJSONGuid = exports.defaultGuidValue = exports.defaultDecode = exports.defaultEncode = void 0;
4
+ const node_opcua_assert_1 = require("node-opcua-assert");
5
+ function defaultEncode(value, stream) {
6
+ /** */
7
+ }
8
+ exports.defaultEncode = defaultEncode;
9
+ function defaultDecode(stream) {
10
+ return null;
11
+ }
12
+ exports.defaultDecode = defaultDecode;
13
+ function defaultGuidValue() {
14
+ return Buffer.alloc(0);
15
+ }
16
+ exports.defaultGuidValue = defaultGuidValue;
17
+ function toJSONGuid(value) {
18
+ if (typeof value === "string") {
19
+ return value;
20
+ }
21
+ (0, node_opcua_assert_1.default)(value instanceof Buffer);
22
+ return value.toString("base64");
23
+ }
24
+ exports.toJSONGuid = toJSONGuid;
25
+ function encodeAny(value, stream) {
26
+ (0, node_opcua_assert_1.default)(false, "type 'Any' cannot be encoded");
27
+ }
28
+ exports.encodeAny = encodeAny;
29
+ function decodeAny(stream) {
30
+ (0, node_opcua_assert_1.default)(false, "type 'Any' cannot be decoded");
31
+ }
32
+ exports.decodeAny = decodeAny;
33
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
34
+ function encodeNull(value, stream) { }
35
+ exports.encodeNull = encodeNull;
36
+ function decodeNull(stream) {
37
+ return null;
38
+ }
39
+ exports.decodeNull = decodeNull;
40
40
  //# sourceMappingURL=encode_decode.js.map
@@ -1,34 +1,34 @@
1
- import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
2
- import { Enum, EnumItem, _TypescriptEnum } from "node-opcua-enum";
3
- import { NodeId } from "node-opcua-nodeid";
4
- import { TypeSchemaBase } from "./builtin_types";
5
- import { EnumerationDefinition, TypeSchemaConstructorOptions } from "./types";
6
- export interface EnumerationDefinitionOptions extends TypeSchemaConstructorOptions {
7
- enumValues: _TypescriptEnum | string[];
8
- typedEnum?: Enum;
9
- lengthInBits?: number;
10
- defaultValue?: EnumItem;
11
- encode?: (value: EnumItem, stream: OutputBinaryStream) => void;
12
- decode?: (stream: BinaryStream) => EnumItem;
13
- }
14
- export declare class EnumerationDefinitionSchema extends TypeSchemaBase implements EnumerationDefinition {
15
- enumValues: _TypescriptEnum;
16
- typedEnum: Enum;
17
- lengthInBits: number;
18
- dataTypeNodeId: NodeId;
19
- constructor(dataTypeNodeId: NodeId, options: EnumerationDefinitionOptions);
20
- }
21
- /**
22
- * @method registerEnumeration
23
- * @param options
24
- * @param options.name {string}
25
- * @param options.enumValues [{key:Name, value:values}]
26
- * @param options.encode
27
- * @param options.decode
28
- * @param options.typedEnum
29
- * @param options.defaultValue
30
- * @return {Enum}
31
- */
32
- export declare function registerEnumeration(options: EnumerationDefinitionOptions): Enum;
33
- export declare function hasBuiltInEnumeration(enumerationName: string): boolean;
34
- export declare function getBuiltInEnumeration(enumerationName: string): EnumerationDefinitionSchema;
1
+ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
2
+ import { Enum, EnumItem, _TypescriptEnum } from "node-opcua-enum";
3
+ import { NodeId } from "node-opcua-nodeid";
4
+ import { TypeSchemaBase } from "./builtin_types";
5
+ import { EnumerationDefinition, TypeSchemaConstructorOptions } from "./types";
6
+ export interface EnumerationDefinitionOptions extends TypeSchemaConstructorOptions {
7
+ enumValues: _TypescriptEnum | string[];
8
+ typedEnum?: Enum;
9
+ lengthInBits?: number;
10
+ defaultValue?: EnumItem;
11
+ encode?: (value: EnumItem, stream: OutputBinaryStream) => void;
12
+ decode?: (stream: BinaryStream) => EnumItem;
13
+ }
14
+ export declare class EnumerationDefinitionSchema extends TypeSchemaBase implements EnumerationDefinition {
15
+ enumValues: _TypescriptEnum;
16
+ typedEnum: Enum;
17
+ lengthInBits: number;
18
+ dataTypeNodeId: NodeId;
19
+ constructor(dataTypeNodeId: NodeId, options: EnumerationDefinitionOptions);
20
+ }
21
+ /**
22
+ * @method registerEnumeration
23
+ * @param options
24
+ * @param options.name {string}
25
+ * @param options.enumValues [{key:Name, value:values}]
26
+ * @param options.encode
27
+ * @param options.decode
28
+ * @param options.typedEnum
29
+ * @param options.defaultValue
30
+ * @return {Enum}
31
+ */
32
+ export declare function registerEnumeration(options: EnumerationDefinitionOptions): Enum;
33
+ export declare function hasBuiltInEnumeration(enumerationName: string): boolean;
34
+ export declare function getBuiltInEnumeration(enumerationName: string): EnumerationDefinitionSchema;
@@ -1,82 +1,82 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBuiltInEnumeration = exports.hasBuiltInEnumeration = exports.registerEnumeration = exports.EnumerationDefinitionSchema = void 0;
4
- /**
5
- * @module node-opcua-factory
6
- */
7
- const node_opcua_assert_1 = require("node-opcua-assert");
8
- const node_opcua_constants_1 = require("node-opcua-constants");
9
- const node_opcua_enum_1 = require("node-opcua-enum");
10
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
11
- const builtin_types_1 = require("./builtin_types");
12
- function _encode_enumeration(typedEnum, value, stream) {
13
- (0, node_opcua_assert_1.assert)(typeof value === "number", "Expecting a number here");
14
- (0, node_opcua_assert_1.assert)(typedEnum.get(value) !== undefined, "expecting a valid value");
15
- stream.writeInteger(value);
16
- }
17
- function _decode_enumeration(typedEnum, stream) {
18
- const value = stream.readInteger();
19
- const e = typedEnum.get(value);
20
- // istanbul ignore next
21
- if (!e) {
22
- throw new Error("cannot coerce value=" + value + " to " + typedEnum.constructor.name);
23
- }
24
- return value;
25
- }
26
- class EnumerationDefinitionSchema extends builtin_types_1.TypeSchemaBase {
27
- // xx encode: (value: EnumItem, stream: OutputBinaryStream) => void;
28
- // xx decode: (stream: BinaryStream) => EnumItem;
29
- constructor(dataTypeNodeId, options) {
30
- super(options);
31
- this.dataTypeNodeId = dataTypeNodeId;
32
- // create a new Enum
33
- this.enumValues = (0, node_opcua_enum_1.adaptTypescriptEnum)(options.enumValues);
34
- const typedEnum = new node_opcua_enum_1.Enum(options.enumValues);
35
- options.typedEnum = typedEnum;
36
- (0, node_opcua_assert_1.assert)(!options.encode || typeof options.encode === "function");
37
- (0, node_opcua_assert_1.assert)(!options.decode || typeof options.decode === "function");
38
- this.encode = options.encode || _encode_enumeration.bind(null, typedEnum);
39
- this.decode = options.decode || _decode_enumeration.bind(null, typedEnum);
40
- this.typedEnum = options.typedEnum;
41
- this.defaultValue = this.typedEnum.getDefaultValue().value;
42
- this.lengthInBits = options.lengthInBits || 32;
43
- }
44
- }
45
- exports.EnumerationDefinitionSchema = EnumerationDefinitionSchema;
46
- const _enumerations = new Map();
47
- /**
48
- * @method registerEnumeration
49
- * @param options
50
- * @param options.name {string}
51
- * @param options.enumValues [{key:Name, value:values}]
52
- * @param options.encode
53
- * @param options.decode
54
- * @param options.typedEnum
55
- * @param options.defaultValue
56
- * @return {Enum}
57
- */
58
- function registerEnumeration(options) {
59
- const dataTypeNodeId = (0, node_opcua_nodeid_1.resolveNodeId)(node_opcua_constants_1.DataTypeIds[options.name]);
60
- (0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(options, "name"));
61
- (0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(options, "enumValues"));
62
- const name = options.name;
63
- if (Object.prototype.hasOwnProperty.call(_enumerations, name)) {
64
- throw new Error("factories.registerEnumeration : Enumeration " + options.name + " has been already inserted");
65
- }
66
- const enumerationDefinition = new EnumerationDefinitionSchema(dataTypeNodeId, options);
67
- _enumerations.set(name, enumerationDefinition);
68
- return enumerationDefinition.typedEnum;
69
- }
70
- exports.registerEnumeration = registerEnumeration;
71
- function hasBuiltInEnumeration(enumerationName) {
72
- return _enumerations.has(enumerationName);
73
- }
74
- exports.hasBuiltInEnumeration = hasBuiltInEnumeration;
75
- function getBuiltInEnumeration(enumerationName) {
76
- if (!hasBuiltInEnumeration(enumerationName)) {
77
- throw new Error("Cannot find enumeration with type " + enumerationName);
78
- }
79
- return _enumerations.get(enumerationName);
80
- }
81
- exports.getBuiltInEnumeration = getBuiltInEnumeration;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBuiltInEnumeration = exports.hasBuiltInEnumeration = exports.registerEnumeration = exports.EnumerationDefinitionSchema = void 0;
4
+ /**
5
+ * @module node-opcua-factory
6
+ */
7
+ const node_opcua_assert_1 = require("node-opcua-assert");
8
+ const node_opcua_constants_1 = require("node-opcua-constants");
9
+ const node_opcua_enum_1 = require("node-opcua-enum");
10
+ const node_opcua_nodeid_1 = require("node-opcua-nodeid");
11
+ const builtin_types_1 = require("./builtin_types");
12
+ function _encode_enumeration(typedEnum, value, stream) {
13
+ (0, node_opcua_assert_1.assert)(typeof value === "number", "Expecting a number here");
14
+ (0, node_opcua_assert_1.assert)(typedEnum.get(value) !== undefined, "expecting a valid value");
15
+ stream.writeInteger(value);
16
+ }
17
+ function _decode_enumeration(typedEnum, stream) {
18
+ const value = stream.readInteger();
19
+ const e = typedEnum.get(value);
20
+ // istanbul ignore next
21
+ if (!e) {
22
+ throw new Error("cannot coerce value=" + value + " to " + typedEnum.constructor.name);
23
+ }
24
+ return value;
25
+ }
26
+ class EnumerationDefinitionSchema extends builtin_types_1.TypeSchemaBase {
27
+ // xx encode: (value: EnumItem, stream: OutputBinaryStream) => void;
28
+ // xx decode: (stream: BinaryStream) => EnumItem;
29
+ constructor(dataTypeNodeId, options) {
30
+ super(options);
31
+ this.dataTypeNodeId = dataTypeNodeId;
32
+ // create a new Enum
33
+ this.enumValues = (0, node_opcua_enum_1.adaptTypescriptEnum)(options.enumValues);
34
+ const typedEnum = new node_opcua_enum_1.Enum(options.enumValues);
35
+ options.typedEnum = typedEnum;
36
+ (0, node_opcua_assert_1.assert)(!options.encode || typeof options.encode === "function");
37
+ (0, node_opcua_assert_1.assert)(!options.decode || typeof options.decode === "function");
38
+ this.encode = options.encode || _encode_enumeration.bind(null, typedEnum);
39
+ this.decode = options.decode || _decode_enumeration.bind(null, typedEnum);
40
+ this.typedEnum = options.typedEnum;
41
+ this.defaultValue = this.typedEnum.getDefaultValue().value;
42
+ this.lengthInBits = options.lengthInBits || 32;
43
+ }
44
+ }
45
+ exports.EnumerationDefinitionSchema = EnumerationDefinitionSchema;
46
+ const _enumerations = new Map();
47
+ /**
48
+ * @method registerEnumeration
49
+ * @param options
50
+ * @param options.name {string}
51
+ * @param options.enumValues [{key:Name, value:values}]
52
+ * @param options.encode
53
+ * @param options.decode
54
+ * @param options.typedEnum
55
+ * @param options.defaultValue
56
+ * @return {Enum}
57
+ */
58
+ function registerEnumeration(options) {
59
+ const dataTypeNodeId = (0, node_opcua_nodeid_1.resolveNodeId)(node_opcua_constants_1.DataTypeIds[options.name]);
60
+ (0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(options, "name"));
61
+ (0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(options, "enumValues"));
62
+ const name = options.name;
63
+ if (Object.prototype.hasOwnProperty.call(_enumerations, name)) {
64
+ throw new Error("factories.registerEnumeration : Enumeration " + options.name + " has been already inserted");
65
+ }
66
+ const enumerationDefinition = new EnumerationDefinitionSchema(dataTypeNodeId, options);
67
+ _enumerations.set(name, enumerationDefinition);
68
+ return enumerationDefinition.typedEnum;
69
+ }
70
+ exports.registerEnumeration = registerEnumeration;
71
+ function hasBuiltInEnumeration(enumerationName) {
72
+ return _enumerations.has(enumerationName);
73
+ }
74
+ exports.hasBuiltInEnumeration = hasBuiltInEnumeration;
75
+ function getBuiltInEnumeration(enumerationName) {
76
+ if (!hasBuiltInEnumeration(enumerationName)) {
77
+ throw new Error("Cannot find enumeration with type " + enumerationName);
78
+ }
79
+ return _enumerations.get(enumerationName);
80
+ }
81
+ exports.getBuiltInEnumeration = getBuiltInEnumeration;
82
82
  //# sourceMappingURL=enumerations.js.map
@@ -1,2 +1,2 @@
1
- "use strict";
1
+ "use strict";
2
2
  //# sourceMappingURL=get_built_in_type.js.map
@@ -1,5 +1,5 @@
1
- import { DataTypeFactory } from "./datatype_factory";
2
- import { ConstructorFuncWithSchema } from "./types";
3
- export declare function getStandardDataTypeFactory(): DataTypeFactory;
4
- export declare function getStructureTypeConstructor(typeName: string): ConstructorFuncWithSchema;
5
- export declare function dump(): void;
1
+ import { DataTypeFactory } from "./datatype_factory";
2
+ import { ConstructorFuncWithSchema } from "./types";
3
+ export declare function getStandardDataTypeFactory(): DataTypeFactory;
4
+ export declare function getStructureTypeConstructor(typeName: string): ConstructorFuncWithSchema;
5
+ export declare function dump(): void;
@@ -1,30 +1,30 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dump = exports.getStructureTypeConstructor = exports.getStandardDataTypeFactory = void 0;
4
- const datatype_factory_1 = require("./datatype_factory");
5
- let globalFactory;
6
- function getStandardDataTypeFactory() {
7
- if (!globalFactory) {
8
- globalFactory = new datatype_factory_1.DataTypeFactory([]);
9
- globalFactory.targetNamespace = "http://opcfoundation.org/UA/";
10
- }
11
- return globalFactory;
12
- }
13
- exports.getStandardDataTypeFactory = getStandardDataTypeFactory;
14
- function getStructureTypeConstructor(typeName) {
15
- const structureInfo = getStandardDataTypeFactory().getStructureInfoByTypeName(typeName);
16
- if (!structureInfo) {
17
- throw new Error("cannot find Structure Information for " + typeName);
18
- }
19
- if (!structureInfo.constructor) {
20
- throw new Error("cannot Structure is Abstract ! " + typeName);
21
- }
22
- return structureInfo.constructor;
23
- }
24
- exports.getStructureTypeConstructor = getStructureTypeConstructor;
25
- /* istanbul ignore next */
26
- function dump() {
27
- getStandardDataTypeFactory().dump();
28
- }
29
- exports.dump = dump;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dump = exports.getStructureTypeConstructor = exports.getStandardDataTypeFactory = void 0;
4
+ const datatype_factory_1 = require("./datatype_factory");
5
+ let globalFactory;
6
+ function getStandardDataTypeFactory() {
7
+ if (!globalFactory) {
8
+ globalFactory = new datatype_factory_1.DataTypeFactory([]);
9
+ globalFactory.targetNamespace = "http://opcfoundation.org/UA/";
10
+ }
11
+ return globalFactory;
12
+ }
13
+ exports.getStandardDataTypeFactory = getStandardDataTypeFactory;
14
+ function getStructureTypeConstructor(typeName) {
15
+ const structureInfo = getStandardDataTypeFactory().getStructureInfoByTypeName(typeName);
16
+ if (!structureInfo) {
17
+ throw new Error("cannot find Structure Information for " + typeName);
18
+ }
19
+ if (!structureInfo.constructor) {
20
+ throw new Error("cannot Structure is Abstract ! " + typeName);
21
+ }
22
+ return structureInfo.constructor;
23
+ }
24
+ exports.getStructureTypeConstructor = getStructureTypeConstructor;
25
+ /* istanbul ignore next */
26
+ function dump() {
27
+ getStandardDataTypeFactory().dump();
28
+ }
29
+ exports.dump = dump;
30
30
  //# sourceMappingURL=get_standard_data_type_factory.js.map
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,9 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // export function getStructuredTypeSchema(typeName: string): IStructuredTypeSchema {
4
- // return getStandardDataTypeFactory().getStructuredTypeSchema(typeName);
5
- // }
6
- // export function constructObject(binaryEncodingNodeId: ExpandedNodeId): IBaseUAObject {
7
- // return getStandardDataTypeFactory().constructObject(binaryEncodingNodeId);
8
- // }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // export function getStructuredTypeSchema(typeName: string): IStructuredTypeSchema {
4
+ // return getStandardDataTypeFactory().getStructuredTypeSchema(typeName);
5
+ // }
6
+ // export function constructObject(binaryEncodingNodeId: ExpandedNodeId): IBaseUAObject {
7
+ // return getStandardDataTypeFactory().constructObject(binaryEncodingNodeId);
8
+ // }
9
9
  //# sourceMappingURL=get_structured_type_schema.js.map
@@ -1,3 +1,3 @@
1
- export declare function generate_new_id(): number;
2
- export declare function next_available_id(): number;
3
- export declare function is_internal_id(value: number): boolean;
1
+ export declare function generate_new_id(): number;
2
+ export declare function next_available_id(): number;
3
+ export declare function is_internal_id(value: number): boolean;
@@ -1,22 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.is_internal_id = exports.next_available_id = exports.generate_new_id = void 0;
4
- /**
5
- * @module node-opcua-factory
6
- */
7
- const _FIRST_INTERNAL_ID = 0xfffe0000;
8
- let _nextAvailableId = _FIRST_INTERNAL_ID;
9
- function generate_new_id() {
10
- _nextAvailableId += 1;
11
- return _nextAvailableId;
12
- }
13
- exports.generate_new_id = generate_new_id;
14
- function next_available_id() {
15
- return -1;
16
- }
17
- exports.next_available_id = next_available_id;
18
- function is_internal_id(value) {
19
- return value >= _FIRST_INTERNAL_ID;
20
- }
21
- exports.is_internal_id = is_internal_id;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.is_internal_id = exports.next_available_id = exports.generate_new_id = void 0;
4
+ /**
5
+ * @module node-opcua-factory
6
+ */
7
+ const _FIRST_INTERNAL_ID = 0xfffe0000;
8
+ let _nextAvailableId = _FIRST_INTERNAL_ID;
9
+ function generate_new_id() {
10
+ _nextAvailableId += 1;
11
+ return _nextAvailableId;
12
+ }
13
+ exports.generate_new_id = generate_new_id;
14
+ function next_available_id() {
15
+ return -1;
16
+ }
17
+ exports.next_available_id = next_available_id;
18
+ function is_internal_id(value) {
19
+ return value >= _FIRST_INTERNAL_ID;
20
+ }
21
+ exports.is_internal_id = is_internal_id;
22
22
  //# sourceMappingURL=id_generator.js.map
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- /**
2
- * @module node-opcua-factory
3
- */
4
- export * from "./base_ua_object";
5
- export * from "./basic_type";
6
- export * from "./builtin_types_special";
7
- export * from "./builtin_types";
8
- export * from "./datatype_factory";
9
- export * from "./enumerations";
10
- export * from "./get_standard_data_type_factory";
11
- export * from "./get_structured_type_schema";
12
- export * from "./id_generator";
13
- export * from "./nodeid_type";
14
- export * from "./parameters";
15
- export * from "./register_class_definition";
16
- export * from "./schema_helpers";
17
- export * from "./structured_type_schema";
18
- export * from "./types";
1
+ /**
2
+ * @module node-opcua-factory
3
+ */
4
+ export * from "./base_ua_object";
5
+ export * from "./basic_type";
6
+ export * from "./builtin_types_special";
7
+ export * from "./builtin_types";
8
+ export * from "./datatype_factory";
9
+ export * from "./enumerations";
10
+ export * from "./get_standard_data_type_factory";
11
+ export * from "./get_structured_type_schema";
12
+ export * from "./id_generator";
13
+ export * from "./nodeid_type";
14
+ export * from "./parameters";
15
+ export * from "./register_class_definition";
16
+ export * from "./schema_helpers";
17
+ export * from "./structured_type_schema";
18
+ export * from "./types";
package/dist/index.js CHANGED
@@ -1,35 +1,35 @@
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-factory
19
- */
20
- __exportStar(require("./base_ua_object"), exports);
21
- __exportStar(require("./basic_type"), exports);
22
- __exportStar(require("./builtin_types_special"), exports);
23
- __exportStar(require("./builtin_types"), exports);
24
- __exportStar(require("./datatype_factory"), exports);
25
- __exportStar(require("./enumerations"), exports);
26
- __exportStar(require("./get_standard_data_type_factory"), exports);
27
- __exportStar(require("./get_structured_type_schema"), exports);
28
- __exportStar(require("./id_generator"), exports);
29
- __exportStar(require("./nodeid_type"), exports);
30
- __exportStar(require("./parameters"), exports);
31
- __exportStar(require("./register_class_definition"), exports);
32
- __exportStar(require("./schema_helpers"), exports);
33
- __exportStar(require("./structured_type_schema"), exports);
34
- __exportStar(require("./types"), 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
+ /**
18
+ * @module node-opcua-factory
19
+ */
20
+ __exportStar(require("./base_ua_object"), exports);
21
+ __exportStar(require("./basic_type"), exports);
22
+ __exportStar(require("./builtin_types_special"), exports);
23
+ __exportStar(require("./builtin_types"), exports);
24
+ __exportStar(require("./datatype_factory"), exports);
25
+ __exportStar(require("./enumerations"), exports);
26
+ __exportStar(require("./get_standard_data_type_factory"), exports);
27
+ __exportStar(require("./get_structured_type_schema"), exports);
28
+ __exportStar(require("./id_generator"), exports);
29
+ __exportStar(require("./nodeid_type"), exports);
30
+ __exportStar(require("./parameters"), exports);
31
+ __exportStar(require("./register_class_definition"), exports);
32
+ __exportStar(require("./schema_helpers"), exports);
33
+ __exportStar(require("./structured_type_schema"), exports);
34
+ __exportStar(require("./types"), exports);
35
35
  //# sourceMappingURL=index.js.map
@@ -1,13 +1,13 @@
1
- export declare enum NodeIdType {
2
- ReferenceType = 1,
3
- IsForward = 2,
4
- NodeClass = 4,
5
- BrowseName = 8,
6
- DisplayName = 16,
7
- TypeDefinition = 32
8
- }
9
- export declare const schemaNodeIdType: {
10
- name: string;
11
- enumValues: typeof NodeIdType;
12
- };
13
- export declare const _enumerationNodeIdType: import("node-opcua-enum").Enum;
1
+ export declare enum NodeIdType {
2
+ ReferenceType = 1,
3
+ IsForward = 2,
4
+ NodeClass = 4,
5
+ BrowseName = 8,
6
+ DisplayName = 16,
7
+ TypeDefinition = 32
8
+ }
9
+ export declare const schemaNodeIdType: {
10
+ name: string;
11
+ enumValues: typeof NodeIdType;
12
+ };
13
+ export declare const _enumerationNodeIdType: import("node-opcua-enum").Enum;
@@ -1,19 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._enumerationNodeIdType = exports.schemaNodeIdType = exports.NodeIdType = void 0;
4
- const enumerations_1 = require("./enumerations");
5
- var NodeIdType;
6
- (function (NodeIdType) {
7
- NodeIdType[NodeIdType["ReferenceType"] = 1] = "ReferenceType";
8
- NodeIdType[NodeIdType["IsForward"] = 2] = "IsForward";
9
- NodeIdType[NodeIdType["NodeClass"] = 4] = "NodeClass";
10
- NodeIdType[NodeIdType["BrowseName"] = 8] = "BrowseName";
11
- NodeIdType[NodeIdType["DisplayName"] = 16] = "DisplayName";
12
- NodeIdType[NodeIdType["TypeDefinition"] = 32] = "TypeDefinition";
13
- })(NodeIdType = exports.NodeIdType || (exports.NodeIdType = {}));
14
- exports.schemaNodeIdType = {
15
- name: "NodeIdType",
16
- enumValues: NodeIdType
17
- };
18
- exports._enumerationNodeIdType = (0, enumerations_1.registerEnumeration)(exports.schemaNodeIdType);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._enumerationNodeIdType = exports.schemaNodeIdType = exports.NodeIdType = void 0;
4
+ const enumerations_1 = require("./enumerations");
5
+ var NodeIdType;
6
+ (function (NodeIdType) {
7
+ NodeIdType[NodeIdType["ReferenceType"] = 1] = "ReferenceType";
8
+ NodeIdType[NodeIdType["IsForward"] = 2] = "IsForward";
9
+ NodeIdType[NodeIdType["NodeClass"] = 4] = "NodeClass";
10
+ NodeIdType[NodeIdType["BrowseName"] = 8] = "BrowseName";
11
+ NodeIdType[NodeIdType["DisplayName"] = 16] = "DisplayName";
12
+ NodeIdType[NodeIdType["TypeDefinition"] = 32] = "TypeDefinition";
13
+ })(NodeIdType = exports.NodeIdType || (exports.NodeIdType = {}));
14
+ exports.schemaNodeIdType = {
15
+ name: "NodeIdType",
16
+ enumValues: NodeIdType
17
+ };
18
+ exports._enumerationNodeIdType = (0, enumerations_1.registerEnumeration)(exports.schemaNodeIdType);
19
19
  //# sourceMappingURL=nodeid_type.js.map