node-opcua-factory 2.73.1 → 2.76.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.
Files changed (69) hide show
  1. package/LICENSE +3 -1
  2. package/dist/base_ua_object.d.ts +53 -53
  3. package/dist/base_ua_object.js +535 -535
  4. package/dist/basic_type.d.ts +40 -40
  5. package/dist/basic_type.js +118 -118
  6. package/dist/builtin_types.d.ts +46 -46
  7. package/dist/builtin_types.js +283 -283
  8. package/dist/builtin_types_special.d.ts +5 -5
  9. package/dist/builtin_types_special.js +45 -45
  10. package/dist/datatype_factory.d.ts +36 -36
  11. package/dist/datatype_factory.js +307 -305
  12. package/dist/datatype_factory.js.map +1 -1
  13. package/dist/encode_decode.d.ts +9 -9
  14. package/dist/encode_decode.js +39 -39
  15. package/dist/enumerations.d.ts +32 -32
  16. package/dist/enumerations.js +77 -77
  17. package/dist/get_built_in_type.js +1 -1
  18. package/dist/get_standard_data_type_factory.d.ts +12 -12
  19. package/dist/get_standard_data_type_factory.js +34 -34
  20. package/dist/get_structured_type_schema.d.ts +4 -4
  21. package/dist/get_structured_type_schema.js +12 -12
  22. package/dist/id_generator.d.ts +3 -3
  23. package/dist/id_generator.js +21 -21
  24. package/dist/index.d.ts +18 -18
  25. package/dist/index.js +34 -34
  26. package/dist/nodeid_type.d.ts +13 -13
  27. package/dist/nodeid_type.js +18 -18
  28. package/dist/parameters.d.ts +3 -3
  29. package/dist/parameters.js +6 -6
  30. package/dist/register_class_definition.d.ts +3 -3
  31. package/dist/register_class_definition.js +8 -8
  32. package/dist/schema_helpers.d.ts +24 -24
  33. package/dist/schema_helpers.js +99 -99
  34. package/dist/structured_type_schema.d.ts +44 -44
  35. package/dist/structured_type_schema.js +278 -278
  36. package/dist/types.d.ts +151 -151
  37. package/dist/types.js +9 -9
  38. package/package.json +15 -12
  39. package/source/datatype_factory.ts +8 -5
  40. package/dist/constructor_type.d.ts +0 -15
  41. package/dist/constructor_type.js +0 -3
  42. package/dist/constructor_type.js.map +0 -1
  43. package/dist/factories_baseobject.d.ts +0 -56
  44. package/dist/factories_baseobject.js +0 -535
  45. package/dist/factories_baseobject.js.map +0 -1
  46. package/dist/factories_basic_type.d.ts +0 -40
  47. package/dist/factories_basic_type.js +0 -136
  48. package/dist/factories_basic_type.js.map +0 -1
  49. package/dist/factories_builtin_types.d.ts +0 -32
  50. package/dist/factories_builtin_types.js +0 -262
  51. package/dist/factories_builtin_types.js.map +0 -1
  52. package/dist/factories_builtin_types_special.d.ts +0 -5
  53. package/dist/factories_builtin_types_special.js +0 -46
  54. package/dist/factories_builtin_types_special.js.map +0 -1
  55. package/dist/factories_enumerations.d.ts +0 -31
  56. package/dist/factories_enumerations.js +0 -78
  57. package/dist/factories_enumerations.js.map +0 -1
  58. package/dist/factories_factories.d.ts +0 -17
  59. package/dist/factories_factories.js +0 -54
  60. package/dist/factories_factories.js.map +0 -1
  61. package/dist/factories_id_generator.d.ts +0 -3
  62. package/dist/factories_id_generator.js +0 -22
  63. package/dist/factories_id_generator.js.map +0 -1
  64. package/dist/factories_schema_helpers.d.ts +0 -27
  65. package/dist/factories_schema_helpers.js +0 -122
  66. package/dist/factories_schema_helpers.js.map +0 -1
  67. package/dist/factories_structuredTypeSchema.d.ts +0 -45
  68. package/dist/factories_structuredTypeSchema.js +0 -277
  69. package/dist/factories_structuredTypeSchema.js.map +0 -1
@@ -1,40 +1,40 @@
1
- import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
2
- export interface BasicTypeOptions {
3
- name: string;
4
- subType: string;
5
- encode?: (value: any, stream: OutputBinaryStream) => void;
6
- decode?: (stream: BinaryStream) => void;
7
- validate?: (value: any) => boolean;
8
- coerce?: (value: any) => any;
9
- toJSON?: (value: any) => any;
10
- random?: () => any;
11
- defaultValue?: any;
12
- }
13
- /**
14
- * register a Basic Type ,
15
- * A basic type is new entity type that resolved to a SubType
16
- * @example:
17
- *
18
- *
19
- * registerBasicType({name:"Duration" ,subType:"Double"});
20
- *
21
- * @method registerBasicType
22
- * @param schema
23
- * @param schema.name {String}
24
- * @param schema.subType {String} mandatory, the basic type from which the new type derives.
25
- *
26
- * @param [schema.encode] {Function} optional,a specific encoder function to encode an instance of this type.
27
- * @param schema.encode.value {*}
28
- * @param schema.encode.stream {BinaryStream}
29
- *
30
- * @param [schema.decode] optional,a specific decoder function that returns the decode value out of the stream.
31
- * @param [schema.decode.stream] {BinaryStream}
32
- *
33
- * @param [schema.coerce] optional, a method to convert a value into the request type.
34
- * @param schema.coerce.value {*} the value to coerce.
35
- *
36
- * @param [schema.random] optional, a method to construct a random object of this type
37
- *
38
- * @param [schema.toJSON]optional, a method to convert a value into the request type.
39
- */
40
- export declare function registerBasicType(schema: BasicTypeOptions): void;
1
+ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
2
+ export interface BasicTypeOptions {
3
+ name: string;
4
+ subType: string;
5
+ encode?: (value: any, stream: OutputBinaryStream) => void;
6
+ decode?: (stream: BinaryStream) => void;
7
+ validate?: (value: any) => boolean;
8
+ coerce?: (value: any) => any;
9
+ toJSON?: (value: any) => any;
10
+ random?: () => any;
11
+ defaultValue?: any;
12
+ }
13
+ /**
14
+ * register a Basic Type ,
15
+ * A basic type is new entity type that resolved to a SubType
16
+ * @example:
17
+ *
18
+ *
19
+ * registerBasicType({name:"Duration" ,subType:"Double"});
20
+ *
21
+ * @method registerBasicType
22
+ * @param schema
23
+ * @param schema.name {String}
24
+ * @param schema.subType {String} mandatory, the basic type from which the new type derives.
25
+ *
26
+ * @param [schema.encode] {Function} optional,a specific encoder function to encode an instance of this type.
27
+ * @param schema.encode.value {*}
28
+ * @param schema.encode.stream {BinaryStream}
29
+ *
30
+ * @param [schema.decode] optional,a specific decoder function that returns the decode value out of the stream.
31
+ * @param [schema.decode.stream] {BinaryStream}
32
+ *
33
+ * @param [schema.coerce] optional, a method to convert a value into the request type.
34
+ * @param schema.coerce.value {*} the value to coerce.
35
+ *
36
+ * @param [schema.random] optional, a method to construct a random object of this type
37
+ *
38
+ * @param [schema.toJSON]optional, a method to convert a value into the request type.
39
+ */
40
+ export declare function registerBasicType(schema: BasicTypeOptions): void;
@@ -1,119 +1,119 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerBasicType = void 0;
4
- /**
5
- * @module node-opcua-factory
6
- */
7
- const node_opcua_assert_1 = require("node-opcua-assert");
8
- const node_opcua_basic_types_1 = require("node-opcua-basic-types");
9
- const node_opcua_debug_1 = require("node-opcua-debug");
10
- const builtin_types_1 = require("./builtin_types");
11
- const errorLog = (0, node_opcua_debug_1.make_errorLog)("Factory");
12
- /**
13
- * register a Basic Type ,
14
- * A basic type is new entity type that resolved to a SubType
15
- * @example:
16
- *
17
- *
18
- * registerBasicType({name:"Duration" ,subType:"Double"});
19
- *
20
- * @method registerBasicType
21
- * @param schema
22
- * @param schema.name {String}
23
- * @param schema.subType {String} mandatory, the basic type from which the new type derives.
24
- *
25
- * @param [schema.encode] {Function} optional,a specific encoder function to encode an instance of this type.
26
- * @param schema.encode.value {*}
27
- * @param schema.encode.stream {BinaryStream}
28
- *
29
- * @param [schema.decode] optional,a specific decoder function that returns the decode value out of the stream.
30
- * @param [schema.decode.stream] {BinaryStream}
31
- *
32
- * @param [schema.coerce] optional, a method to convert a value into the request type.
33
- * @param schema.coerce.value {*} the value to coerce.
34
- *
35
- * @param [schema.random] optional, a method to construct a random object of this type
36
- *
37
- * @param [schema.toJSON]optional, a method to convert a value into the request type.
38
- */
39
- function registerBasicType(schema) {
40
- const exists = (0, builtin_types_1.hasBuiltInType)(schema.name);
41
- /* istanbul ignore next */
42
- if (exists) {
43
- errorLog("registerBasicType:", schema);
44
- throw new Error(`Basic Type ${schema.name} already registered`);
45
- }
46
- const name = schema.name;
47
- const t = (0, builtin_types_1.getBuiltInType)(schema.subType);
48
- /* istanbul ignore next */
49
- if (!t) {
50
- // tslint:disable-next-line:no-console
51
- throw new Error(" cannot find subtype " + schema.subType);
52
- }
53
- (0, node_opcua_assert_1.assert)(typeof t.decode === "function");
54
- const encodeFunc = schema.encode || t.encode;
55
- (0, node_opcua_assert_1.assert)(typeof encodeFunc === "function");
56
- const decodeFunc = schema.decode || t.decode;
57
- (0, node_opcua_assert_1.assert)(typeof decodeFunc === "function");
58
- const defaultValue = schema.defaultValue === undefined ? t.defaultValue : schema.defaultValue;
59
- // assert(typeof defaultValue === "function");
60
- const coerceFunc = schema.coerce || t.coerce;
61
- const toJSONFunc = schema.toJSON || t.toJSON;
62
- const random = schema.random || defaultValue;
63
- const newSchema = {
64
- name,
65
- subType: schema.subType,
66
- coerce: coerceFunc,
67
- decode: decodeFunc,
68
- encode: encodeFunc,
69
- random,
70
- defaultValue,
71
- toJSON: toJSONFunc
72
- };
73
- (0, builtin_types_1.registerType)(newSchema);
74
- }
75
- exports.registerBasicType = registerBasicType;
76
- // =============================================================================================
77
- // Registering the Basic Type already defined int the OPC-UA Specification
78
- // =============================================================================================
79
- registerBasicType({ name: "Counter", subType: "UInt32" });
80
- // OPC Unified Architecture, part 3.0 $8.13 page 65
81
- registerBasicType({ name: "Duration", subType: "Double" });
82
- registerBasicType({ name: "UtcTime", subType: "DateTime" });
83
- registerBasicType({
84
- name: "LocaleId",
85
- subType: "String",
86
- defaultValue: null,
87
- decode: node_opcua_basic_types_1.decodeLocaleId,
88
- encode: node_opcua_basic_types_1.encodeLocaleId,
89
- validate: node_opcua_basic_types_1.validateLocaleId
90
- });
91
- registerBasicType({ name: "ContinuationPoint", subType: "ByteString" });
92
- registerBasicType({ name: "Image", subType: "ByteString" });
93
- registerBasicType({ name: "ImageBMP", subType: "Image" });
94
- registerBasicType({ name: "ImageGIF", subType: "Image" });
95
- registerBasicType({ name: "ImageJPG", subType: "Image" });
96
- registerBasicType({ name: "ImagePNG", subType: "Image" });
97
- registerBasicType({ name: "AudioDataType", subType: "ByteString" });
98
- registerBasicType({ name: "BitFieldMaskDataType", subType: "UInt64" });
99
- registerBasicType({ name: "DataSetFieldFlags", subType: "UInt16" });
100
- registerBasicType({ name: "DataSetFieldContentMask", subType: "UInt32" });
101
- registerBasicType({ name: "UadpNetworkMessageContentMask", subType: "UInt32" });
102
- registerBasicType({ name: "UadpDataSetMessageContentMask", subType: "UInt32" });
103
- registerBasicType({ name: "JsonNetworkMessageContentMask", subType: "UInt32" });
104
- registerBasicType({ name: "JsonDataSetMessageContentMask", subType: "UInt32" });
105
- registerBasicType({ name: "PermissionType", subType: "UInt32" });
106
- registerBasicType({ name: "AccessLevelType", subType: "Byte" });
107
- registerBasicType({ name: "AccessLevelExType", subType: "UInt32" });
108
- registerBasicType({ name: "EventNotifierType", subType: "Byte" });
109
- registerBasicType({ name: "AccessRestrictionType", subType: "UInt32" });
110
- registerBasicType({ name: "NormalizedString", subType: "String" });
111
- registerBasicType({ name: "DecimalString", subType: "String" });
112
- registerBasicType({ name: "DurationString", subType: "String" });
113
- registerBasicType({ name: "TimeString", subType: "String" });
114
- registerBasicType({ name: "DateString", subType: "String" });
115
- registerBasicType({ name: "Index", subType: "UInt32" });
116
- registerBasicType({ name: "VersionTime", subType: "UInt32" });
117
- registerBasicType({ name: "ApplicationInstanceCertificate", subType: "ByteString" });
118
- registerBasicType({ name: "AttributeWriteMask", subType: "UInt32" });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerBasicType = void 0;
4
+ /**
5
+ * @module node-opcua-factory
6
+ */
7
+ const node_opcua_assert_1 = require("node-opcua-assert");
8
+ const node_opcua_basic_types_1 = require("node-opcua-basic-types");
9
+ const node_opcua_debug_1 = require("node-opcua-debug");
10
+ const builtin_types_1 = require("./builtin_types");
11
+ const errorLog = (0, node_opcua_debug_1.make_errorLog)("Factory");
12
+ /**
13
+ * register a Basic Type ,
14
+ * A basic type is new entity type that resolved to a SubType
15
+ * @example:
16
+ *
17
+ *
18
+ * registerBasicType({name:"Duration" ,subType:"Double"});
19
+ *
20
+ * @method registerBasicType
21
+ * @param schema
22
+ * @param schema.name {String}
23
+ * @param schema.subType {String} mandatory, the basic type from which the new type derives.
24
+ *
25
+ * @param [schema.encode] {Function} optional,a specific encoder function to encode an instance of this type.
26
+ * @param schema.encode.value {*}
27
+ * @param schema.encode.stream {BinaryStream}
28
+ *
29
+ * @param [schema.decode] optional,a specific decoder function that returns the decode value out of the stream.
30
+ * @param [schema.decode.stream] {BinaryStream}
31
+ *
32
+ * @param [schema.coerce] optional, a method to convert a value into the request type.
33
+ * @param schema.coerce.value {*} the value to coerce.
34
+ *
35
+ * @param [schema.random] optional, a method to construct a random object of this type
36
+ *
37
+ * @param [schema.toJSON]optional, a method to convert a value into the request type.
38
+ */
39
+ function registerBasicType(schema) {
40
+ const exists = (0, builtin_types_1.hasBuiltInType)(schema.name);
41
+ /* istanbul ignore next */
42
+ if (exists) {
43
+ errorLog("registerBasicType:", schema);
44
+ throw new Error(`Basic Type ${schema.name} already registered`);
45
+ }
46
+ const name = schema.name;
47
+ const t = (0, builtin_types_1.getBuiltInType)(schema.subType);
48
+ /* istanbul ignore next */
49
+ if (!t) {
50
+ // tslint:disable-next-line:no-console
51
+ throw new Error(" cannot find subtype " + schema.subType);
52
+ }
53
+ (0, node_opcua_assert_1.assert)(typeof t.decode === "function");
54
+ const encodeFunc = schema.encode || t.encode;
55
+ (0, node_opcua_assert_1.assert)(typeof encodeFunc === "function");
56
+ const decodeFunc = schema.decode || t.decode;
57
+ (0, node_opcua_assert_1.assert)(typeof decodeFunc === "function");
58
+ const defaultValue = schema.defaultValue === undefined ? t.defaultValue : schema.defaultValue;
59
+ // assert(typeof defaultValue === "function");
60
+ const coerceFunc = schema.coerce || t.coerce;
61
+ const toJSONFunc = schema.toJSON || t.toJSON;
62
+ const random = schema.random || defaultValue;
63
+ const newSchema = {
64
+ name,
65
+ subType: schema.subType,
66
+ coerce: coerceFunc,
67
+ decode: decodeFunc,
68
+ encode: encodeFunc,
69
+ random,
70
+ defaultValue,
71
+ toJSON: toJSONFunc
72
+ };
73
+ (0, builtin_types_1.registerType)(newSchema);
74
+ }
75
+ exports.registerBasicType = registerBasicType;
76
+ // =============================================================================================
77
+ // Registering the Basic Type already defined int the OPC-UA Specification
78
+ // =============================================================================================
79
+ registerBasicType({ name: "Counter", subType: "UInt32" });
80
+ // OPC Unified Architecture, part 3.0 $8.13 page 65
81
+ registerBasicType({ name: "Duration", subType: "Double" });
82
+ registerBasicType({ name: "UtcTime", subType: "DateTime" });
83
+ registerBasicType({
84
+ name: "LocaleId",
85
+ subType: "String",
86
+ defaultValue: null,
87
+ decode: node_opcua_basic_types_1.decodeLocaleId,
88
+ encode: node_opcua_basic_types_1.encodeLocaleId,
89
+ validate: node_opcua_basic_types_1.validateLocaleId
90
+ });
91
+ registerBasicType({ name: "ContinuationPoint", subType: "ByteString" });
92
+ registerBasicType({ name: "Image", subType: "ByteString" });
93
+ registerBasicType({ name: "ImageBMP", subType: "Image" });
94
+ registerBasicType({ name: "ImageGIF", subType: "Image" });
95
+ registerBasicType({ name: "ImageJPG", subType: "Image" });
96
+ registerBasicType({ name: "ImagePNG", subType: "Image" });
97
+ registerBasicType({ name: "AudioDataType", subType: "ByteString" });
98
+ registerBasicType({ name: "BitFieldMaskDataType", subType: "UInt64" });
99
+ registerBasicType({ name: "DataSetFieldFlags", subType: "UInt16" });
100
+ registerBasicType({ name: "DataSetFieldContentMask", subType: "UInt32" });
101
+ registerBasicType({ name: "UadpNetworkMessageContentMask", subType: "UInt32" });
102
+ registerBasicType({ name: "UadpDataSetMessageContentMask", subType: "UInt32" });
103
+ registerBasicType({ name: "JsonNetworkMessageContentMask", subType: "UInt32" });
104
+ registerBasicType({ name: "JsonDataSetMessageContentMask", subType: "UInt32" });
105
+ registerBasicType({ name: "PermissionType", subType: "UInt32" });
106
+ registerBasicType({ name: "AccessLevelType", subType: "Byte" });
107
+ registerBasicType({ name: "AccessLevelExType", subType: "UInt32" });
108
+ registerBasicType({ name: "EventNotifierType", subType: "Byte" });
109
+ registerBasicType({ name: "AccessRestrictionType", subType: "UInt32" });
110
+ registerBasicType({ name: "NormalizedString", subType: "String" });
111
+ registerBasicType({ name: "DecimalString", subType: "String" });
112
+ registerBasicType({ name: "DurationString", subType: "String" });
113
+ registerBasicType({ name: "TimeString", subType: "String" });
114
+ registerBasicType({ name: "DateString", subType: "String" });
115
+ registerBasicType({ name: "Index", subType: "UInt32" });
116
+ registerBasicType({ name: "VersionTime", subType: "UInt32" });
117
+ registerBasicType({ name: "ApplicationInstanceCertificate", subType: "ByteString" });
118
+ registerBasicType({ name: "AttributeWriteMask", subType: "UInt32" });
119
119
  //# sourceMappingURL=basic_type.js.map
@@ -1,46 +1,46 @@
1
- import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
2
- import { BasicTypeDefinition, BasicTypeDefinitionOptions, BasicTypeDefinitionOptionsBase, CommonInterface, FieldCategory, TypeSchemaConstructorOptions } from "./types";
3
- /**
4
- * @class TypeSchemaBase
5
- * @param options {Object}
6
- * @constructor
7
- * create a new type Schema
8
- */
9
- export declare class TypeSchemaBase implements CommonInterface {
10
- name: string;
11
- defaultValue: any;
12
- encode?: (value: any, stream: OutputBinaryStream) => void;
13
- decode?: (stream: BinaryStream) => any;
14
- coerce?: (value: any) => any;
15
- toJSON?: () => string;
16
- category: FieldCategory;
17
- subType: string;
18
- isAbstract: boolean;
19
- constructor(options: TypeSchemaConstructorOptions);
20
- /**
21
- * @method computer_default_value
22
- * @param defaultValue {*} the default value
23
- * @return {*}
24
- */
25
- computer_default_value(defaultValue: unknown): any;
26
- getBaseType(): CommonInterface | null;
27
- isSubTypeOf(type: CommonInterface): boolean;
28
- }
29
- export declare class BasicTypeSchema extends TypeSchemaBase implements BasicTypeDefinition {
30
- subType: string;
31
- isAbstract: boolean;
32
- encode: (value: any, stream: OutputBinaryStream) => void;
33
- decode: (stream: BinaryStream) => any;
34
- constructor(options: BasicTypeDefinitionOptions);
35
- }
36
- /**
37
- * @method registerType
38
- * @param schema {TypeSchemaBase}
39
- */
40
- export declare function registerType(schema: BasicTypeDefinitionOptionsBase): void;
41
- export declare const registerBuiltInType: typeof registerType;
42
- export declare function unregisterType(typeName: string): void;
43
- export declare function getBuiltInType(name: string): TypeSchemaBase;
44
- export declare function hasBuiltInType(name: string): boolean;
45
- /** */
46
- export declare function findBuiltInType(dataTypeName: string): BasicTypeDefinition;
1
+ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
2
+ import { BasicTypeDefinition, BasicTypeDefinitionOptions, BasicTypeDefinitionOptionsBase, CommonInterface, FieldCategory, TypeSchemaConstructorOptions } from "./types";
3
+ /**
4
+ * @class TypeSchemaBase
5
+ * @param options {Object}
6
+ * @constructor
7
+ * create a new type Schema
8
+ */
9
+ export declare class TypeSchemaBase implements CommonInterface {
10
+ name: string;
11
+ defaultValue: any;
12
+ encode?: (value: any, stream: OutputBinaryStream) => void;
13
+ decode?: (stream: BinaryStream) => any;
14
+ coerce?: (value: any) => any;
15
+ toJSON?: () => string;
16
+ category: FieldCategory;
17
+ subType: string;
18
+ isAbstract: boolean;
19
+ constructor(options: TypeSchemaConstructorOptions);
20
+ /**
21
+ * @method computer_default_value
22
+ * @param defaultValue {*} the default value
23
+ * @return {*}
24
+ */
25
+ computer_default_value(defaultValue: unknown): any;
26
+ getBaseType(): CommonInterface | null;
27
+ isSubTypeOf(type: CommonInterface): boolean;
28
+ }
29
+ export declare class BasicTypeSchema extends TypeSchemaBase implements BasicTypeDefinition {
30
+ subType: string;
31
+ isAbstract: boolean;
32
+ encode: (value: any, stream: OutputBinaryStream) => void;
33
+ decode: (stream: BinaryStream) => any;
34
+ constructor(options: BasicTypeDefinitionOptions);
35
+ }
36
+ /**
37
+ * @method registerType
38
+ * @param schema {TypeSchemaBase}
39
+ */
40
+ export declare function registerType(schema: BasicTypeDefinitionOptionsBase): void;
41
+ export declare const registerBuiltInType: typeof registerType;
42
+ export declare function unregisterType(typeName: string): void;
43
+ export declare function getBuiltInType(name: string): TypeSchemaBase;
44
+ export declare function hasBuiltInType(name: string): boolean;
45
+ /** */
46
+ export declare function findBuiltInType(dataTypeName: string): BasicTypeDefinition;