node-opcua-schemas 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.
@@ -0,0 +1,22 @@
1
+ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
2
+ import { ExtensionObject } from "node-opcua-extension-object";
3
+ import { ConstructorFuncWithSchema, DataTypeFactory, IStructuredTypeSchema } from "node-opcua-factory";
4
+ import { ExpandedNodeId } from "node-opcua-nodeid";
5
+ export declare function getOrCreateConstructor(dataTypeName: string, dataTypeFactory: DataTypeFactory, encodingDefaultBinary?: ExpandedNodeId, encodingDefaultXml?: ExpandedNodeId): AnyConstructorFunc;
6
+ export declare class DynamicExtensionObject extends ExtensionObject {
7
+ static schema: IStructuredTypeSchema;
8
+ static possibleFields: string[];
9
+ constructor(options: Record<string, unknown>, schema: IStructuredTypeSchema, dataTypeFactory: DataTypeFactory);
10
+ encode(stream: OutputBinaryStream): void;
11
+ decode(stream: BinaryStream): void;
12
+ get schema(): IStructuredTypeSchema;
13
+ toJSON(): any;
14
+ }
15
+ interface AnyConstructable {
16
+ schema: IStructuredTypeSchema;
17
+ possibleFields: string[];
18
+ new (options?: any, schema?: IStructuredTypeSchema, factory?: DataTypeFactory): any;
19
+ }
20
+ export type AnyConstructorFunc = AnyConstructable;
21
+ export declare function createDynamicObjectConstructor(schema: IStructuredTypeSchema, dataTypeFactory: DataTypeFactory): ConstructorFuncWithSchema;
22
+ export {};