node-opcua-factory 2.97.0 → 2.98.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/package.json +9 -9
- package/dist/base_ua_object.d.ts +0 -53
- package/dist/base_ua_object.js +0 -548
- package/dist/base_ua_object.js.map +0 -1
- package/dist/basic_type.d.ts +0 -40
- package/dist/basic_type.js +0 -119
- package/dist/basic_type.js.map +0 -1
- package/dist/builtin_types.d.ts +0 -46
- package/dist/builtin_types.js +0 -284
- package/dist/builtin_types.js.map +0 -1
- package/dist/builtin_types_special.d.ts +0 -5
- package/dist/builtin_types_special.js +0 -46
- package/dist/builtin_types_special.js.map +0 -1
- package/dist/datatype_factory.d.ts +0 -43
- package/dist/datatype_factory.js +0 -308
- package/dist/datatype_factory.js.map +0 -1
- package/dist/encode_decode.d.ts +0 -9
- package/dist/encode_decode.js +0 -40
- package/dist/encode_decode.js.map +0 -1
- package/dist/enumerations.d.ts +0 -34
- package/dist/enumerations.js +0 -82
- package/dist/enumerations.js.map +0 -1
- package/dist/get_built_in_type.d.ts +0 -0
- package/dist/get_built_in_type.js +0 -2
- package/dist/get_built_in_type.js.map +0 -1
- package/dist/get_standard_data_type_factory.d.ts +0 -5
- package/dist/get_standard_data_type_factory.js +0 -30
- package/dist/get_standard_data_type_factory.js.map +0 -1
- package/dist/get_structured_type_schema.d.ts +0 -1
- package/dist/get_structured_type_schema.js +0 -9
- package/dist/get_structured_type_schema.js.map +0 -1
- package/dist/id_generator.d.ts +0 -3
- package/dist/id_generator.js +0 -22
- package/dist/id_generator.js.map +0 -1
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -35
- package/dist/index.js.map +0 -1
- package/dist/nodeid_type.d.ts +0 -13
- package/dist/nodeid_type.js +0 -19
- package/dist/nodeid_type.js.map +0 -1
- package/dist/parameters.d.ts +0 -3
- package/dist/parameters.js +0 -7
- package/dist/parameters.js.map +0 -1
- package/dist/register_class_definition.d.ts +0 -3
- package/dist/register_class_definition.js +0 -9
- package/dist/register_class_definition.js.map +0 -1
- package/dist/schema_helpers.d.ts +0 -24
- package/dist/schema_helpers.js +0 -100
- package/dist/schema_helpers.js.map +0 -1
- package/dist/structured_type_schema.d.ts +0 -39
- package/dist/structured_type_schema.js +0 -284
- package/dist/structured_type_schema.js.map +0 -1
- package/dist/types.d.ts +0 -160
- package/dist/types.js +0 -10
- package/dist/types.js.map +0 -1
package/dist/types.d.ts
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-factory
|
|
3
|
-
*/
|
|
4
|
-
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
|
|
5
|
-
import { Enum } from "node-opcua-enum";
|
|
6
|
-
import { ExpandedNodeId, NodeId } from "node-opcua-nodeid";
|
|
7
|
-
import { DataTypeFactory } from "./datatype_factory";
|
|
8
|
-
export declare enum FieldCategory {
|
|
9
|
-
enumeration = "enumeration",
|
|
10
|
-
complex = "complex",
|
|
11
|
-
basic = "basic"
|
|
12
|
-
}
|
|
13
|
-
export interface CommonInterface {
|
|
14
|
-
name: string;
|
|
15
|
-
defaultValue?: any;
|
|
16
|
-
encode?: (value: any, stream: OutputBinaryStream) => void;
|
|
17
|
-
decode?: (stream: BinaryStream) => any;
|
|
18
|
-
coerce?: (value: any) => any;
|
|
19
|
-
toJSON?: (value: any) => any;
|
|
20
|
-
category: FieldCategory;
|
|
21
|
-
random?: () => any;
|
|
22
|
-
validate?: (value: any) => void;
|
|
23
|
-
computer_default_value(defaultValue: any): any;
|
|
24
|
-
subType: string;
|
|
25
|
-
isAbstract: boolean;
|
|
26
|
-
isSubTypeOf(type: CommonInterface): boolean;
|
|
27
|
-
}
|
|
28
|
-
export interface FieldInterfaceOptions {
|
|
29
|
-
name: string;
|
|
30
|
-
defaultValue?: any | DefaultValueFunc;
|
|
31
|
-
fieldType: string;
|
|
32
|
-
isArray?: boolean;
|
|
33
|
-
documentation?: string;
|
|
34
|
-
category?: FieldCategory;
|
|
35
|
-
schema?: CommonInterface;
|
|
36
|
-
switchBit?: number;
|
|
37
|
-
switchValue?: number;
|
|
38
|
-
allowSubType?: boolean;
|
|
39
|
-
dataType?: NodeId;
|
|
40
|
-
basicDataType?: number;
|
|
41
|
-
valueRank?: number;
|
|
42
|
-
}
|
|
43
|
-
export type Func1<T> = (value: any, field: StructuredTypeField, data: T, args?: any) => void;
|
|
44
|
-
export interface DecodeDebugOptions {
|
|
45
|
-
tracer: any;
|
|
46
|
-
name: string;
|
|
47
|
-
}
|
|
48
|
-
export interface IBaseUAObject {
|
|
49
|
-
schema: IStructuredTypeSchema;
|
|
50
|
-
encode(stream: OutputBinaryStream): void;
|
|
51
|
-
decode(stream: BinaryStream): void;
|
|
52
|
-
binaryStoreSize(): number;
|
|
53
|
-
toString(...args: any[]): string;
|
|
54
|
-
isValid(): boolean;
|
|
55
|
-
explore(): string;
|
|
56
|
-
applyOnAllFields<T>(func: Func1<T>, data: T): void;
|
|
57
|
-
toJSON(): any;
|
|
58
|
-
decodeDebug(stream: BinaryStream, options: DecodeDebugOptions): void;
|
|
59
|
-
clone(): IBaseUAObject;
|
|
60
|
-
}
|
|
61
|
-
type BaseUAObjectConstructable = new (options?: Record<string, unknown>) => IBaseUAObject;
|
|
62
|
-
export type ConstructorFunc = BaseUAObjectConstructable;
|
|
63
|
-
export interface ConstructorFuncWithSchema extends ConstructorFunc {
|
|
64
|
-
schema: IStructuredTypeSchema;
|
|
65
|
-
possibleFields: string[];
|
|
66
|
-
encodingDefaultBinary: ExpandedNodeId;
|
|
67
|
-
encodingDefaultXml: ExpandedNodeId;
|
|
68
|
-
encodingDefaultJson?: ExpandedNodeId;
|
|
69
|
-
}
|
|
70
|
-
export interface StructuredTypeField {
|
|
71
|
-
name: string;
|
|
72
|
-
originalName: string;
|
|
73
|
-
fieldType: string;
|
|
74
|
-
isArray?: boolean;
|
|
75
|
-
documentation?: string;
|
|
76
|
-
category: FieldCategory;
|
|
77
|
-
defaultValue?: any | DefaultValueFunc;
|
|
78
|
-
schema: CommonInterface;
|
|
79
|
-
switchBit?: number;
|
|
80
|
-
switchValue?: number;
|
|
81
|
-
allowSubType?: boolean;
|
|
82
|
-
dataType?: NodeId;
|
|
83
|
-
basicDataType?: number;
|
|
84
|
-
fieldTypeConstructor?: ConstructorFunc;
|
|
85
|
-
subType?: string;
|
|
86
|
-
validate?: (value: any) => boolean;
|
|
87
|
-
decode?: (stream: BinaryStream) => any;
|
|
88
|
-
}
|
|
89
|
-
export interface FieldEnumeration extends StructuredTypeField {
|
|
90
|
-
}
|
|
91
|
-
export interface FieldComplex extends StructuredTypeField {
|
|
92
|
-
}
|
|
93
|
-
export interface FieldBasic extends StructuredTypeField {
|
|
94
|
-
}
|
|
95
|
-
export type FieldType = FieldEnumeration | FieldComplex | FieldBasic;
|
|
96
|
-
export type DefaultValueFunc = () => any;
|
|
97
|
-
export interface StructuredTypeOptions {
|
|
98
|
-
name: string;
|
|
99
|
-
fields: FieldInterfaceOptions[];
|
|
100
|
-
documentation?: string;
|
|
101
|
-
baseType: string;
|
|
102
|
-
category?: FieldCategory;
|
|
103
|
-
_resolved?: boolean;
|
|
104
|
-
bitFields?: {
|
|
105
|
-
name: string;
|
|
106
|
-
length: number;
|
|
107
|
-
}[];
|
|
108
|
-
deprecated_base?: StructuredTypeOptions;
|
|
109
|
-
dataTypeFactory: DataTypeFactory;
|
|
110
|
-
}
|
|
111
|
-
export interface TypeSchemaConstructorOptions {
|
|
112
|
-
name: string;
|
|
113
|
-
subType?: string;
|
|
114
|
-
isAbstract?: boolean;
|
|
115
|
-
category?: FieldCategory;
|
|
116
|
-
defaultValue?: any;
|
|
117
|
-
encode?: (value: any, stream: OutputBinaryStream) => void;
|
|
118
|
-
decode?: (stream: BinaryStream) => any;
|
|
119
|
-
coerce?: (value: any) => any;
|
|
120
|
-
}
|
|
121
|
-
export interface BasicTypeDefinitionOptionsB extends TypeSchemaConstructorOptions {
|
|
122
|
-
toJSON?: (value: any) => any;
|
|
123
|
-
random?: () => any;
|
|
124
|
-
validate?: (value: any) => void;
|
|
125
|
-
}
|
|
126
|
-
export interface BasicTypeDefinitionOptionsBase extends BasicTypeDefinitionOptionsB {
|
|
127
|
-
}
|
|
128
|
-
export interface BasicTypeDefinitionOptions extends BasicTypeDefinitionOptionsB {
|
|
129
|
-
subType: string;
|
|
130
|
-
}
|
|
131
|
-
export interface BasicTypeDefinition extends CommonInterface {
|
|
132
|
-
subType: string;
|
|
133
|
-
}
|
|
134
|
-
export interface BuiltInTypeDefinition extends BasicTypeDefinition {
|
|
135
|
-
}
|
|
136
|
-
export interface EnumerationDefinition extends CommonInterface {
|
|
137
|
-
typedEnum: Enum;
|
|
138
|
-
documentation?: string;
|
|
139
|
-
}
|
|
140
|
-
export type TypeDefinition = BuiltInTypeDefinition | EnumerationDefinition | BasicTypeDefinition | CommonInterface;
|
|
141
|
-
export interface BitField {
|
|
142
|
-
name: string;
|
|
143
|
-
length: number;
|
|
144
|
-
}
|
|
145
|
-
export interface IStructuredTypeSchema extends CommonInterface {
|
|
146
|
-
fields: FieldType[];
|
|
147
|
-
dataTypeNodeId: NodeId;
|
|
148
|
-
baseType: string;
|
|
149
|
-
getBaseSchema(): IStructuredTypeSchema | null;
|
|
150
|
-
getDataTypeFactory(): DataTypeFactory;
|
|
151
|
-
documentation?: string;
|
|
152
|
-
isValid?: (options: any) => boolean;
|
|
153
|
-
decodeDebug?: (stream: BinaryStream, options: any) => any;
|
|
154
|
-
constructHook?: (options: any) => any;
|
|
155
|
-
encodingDefaultBinary?: ExpandedNodeId;
|
|
156
|
-
encodingDefaultXml?: ExpandedNodeId;
|
|
157
|
-
encodingDefaultJson?: ExpandedNodeId;
|
|
158
|
-
bitFields?: BitField[];
|
|
159
|
-
}
|
|
160
|
-
export {};
|
package/dist/types.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FieldCategory = void 0;
|
|
4
|
-
var FieldCategory;
|
|
5
|
-
(function (FieldCategory) {
|
|
6
|
-
FieldCategory["enumeration"] = "enumeration";
|
|
7
|
-
FieldCategory["complex"] = "complex";
|
|
8
|
-
FieldCategory["basic"] = "basic";
|
|
9
|
-
})(FieldCategory = exports.FieldCategory || (exports.FieldCategory = {}));
|
|
10
|
-
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../source/types.ts"],"names":[],"mappings":";;;AAQA,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,4CAA2B,CAAA;IAC3B,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACnB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB"}
|