node-opcua-types 2.70.2 → 2.72.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/dist/_generated_opcua_types.d.ts +495 -24
- package/dist/_generated_opcua_types.js +1902 -230
- package/dist/_generated_opcua_types.js.map +1 -1
- package/package.json +20 -20
- package/source/_generated_opcua_types.ts +2197 -204
- package/xmlschemas/Opc.Ua.Types.bsd +298 -5
- package/xmlschemas/Opc.Ua.Types.xsd +605 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// --------- This code has been automatically generated !!! 2022-
|
|
2
|
+
// --------- This code has been automatically generated !!! 2022-07-12T11:52:31.681Z
|
|
3
3
|
/**
|
|
4
4
|
* @module node-opcua-types
|
|
5
5
|
*/
|
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
// tslint:disable:object-literal-sort-keys
|
|
12
12
|
// tslint:disable:max-line-length
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.WriterGroupTransportDataType = exports.BrokerDataSetWriterTransportDataType = exports.DataSetWriterTransportDataType = exports.BrokerDataSetReaderTransportDataType = exports._enumerationBrokerTransportQualityOfService = exports.BrokerTransportQualityOfService = exports.DataSetReaderTransportDataType = exports.BrokerConnectionTransportDataType = exports.ConnectionTransportDataType = exports.AttributeOperand = exports.RelativePath = exports.RelativePathElement = exports.Argument = exports.ApplicationDescription = exports._enumerationApplicationType = exports.ApplicationType = exports.AnonymousIdentityToken = exports.UserIdentityToken = exports.Annotation = exports.AliasNameDataType = exports.AggregateFilterResult = exports.MonitoringFilterResult = exports.AggregateFilter = exports.MonitoringFilter = exports.AggregateConfiguration = exports.AdditionalParametersType = exports.KeyValuePair = exports.AddReferencesResponse = exports.AddReferencesRequest = exports.AddReferencesItem = exports.AddNodesResponse = exports.AddNodesResult = exports.AddNodesRequest = exports.AddNodesItem = exports._enumerationNodeClass = exports.NodeClass = exports.ActivateSessionResponse = exports.ResponseHeader = exports.ActivateSessionRequest = exports.SignedSoftwareCertificate = exports.SignatureData = exports.RequestHeader = exports.SimpleAttributeOperand = exports.FilterOperand = exports.AxisInformation = exports._enumerationAxisScaleEnumeration = exports.AxisScaleEnumeration = exports.Range = exports.EUInformation =
|
|
15
|
-
exports.CreateSubscriptionRequest = exports.CreateSessionResponse = exports.EndpointDescription = exports.UserTokenPolicy = exports._enumerationUserTokenType = exports.UserTokenType = exports._enumerationMessageSecurityMode = exports.MessageSecurityMode = exports.CreateSessionRequest = exports.CreateMonitoredItemsResponse = exports.MonitoredItemCreateResult = exports.CreateMonitoredItemsRequest = exports.MonitoredItemCreateRequest = exports.MonitoringParameters = exports._enumerationMonitoringMode = exports.MonitoringMode = exports.ReadValueId = exports.ContentFilterResult = exports.ContentFilterElementResult = exports.ContentFilter = exports.ContentFilterElement = exports._enumerationFilterOperator = exports.FilterOperator = exports.ConfigurationVersionDataType = exports.ComplexNumberType = exports.CloseSessionResponse = exports.CloseSessionRequest = exports.CloseSecureChannelResponse = exports.CloseSecureChannelRequest = exports.ChannelSecurityToken = exports.CartesianCoordinates = exports.CancelResponse = exports.CancelRequest = exports.CallResponse = exports.CallRequest = exports.CallMethodResult = exports.CallMethodRequest = exports.BuildInfo = exports.BrowseResponse = exports.BrowseRequest = exports.ViewDescription = exports.BrowsePathResult = exports.BrowsePathTarget = exports.BrowsePath = exports.BrowseNextResponse = exports.BrowseResult = exports.ReferenceDescription = exports.BrowseNextRequest = exports.BrowseDescription =
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
14
|
+
exports.BrokerWriterGroupTransportDataType = exports.WriterGroupTransportDataType = exports.BrokerDataSetWriterTransportDataType = exports.DataSetWriterTransportDataType = exports.BrokerDataSetReaderTransportDataType = exports._enumerationBrokerTransportQualityOfService = exports.BrokerTransportQualityOfService = exports.DataSetReaderTransportDataType = exports.BrokerConnectionTransportDataType = exports.ConnectionTransportDataType = exports.AttributeOperand = exports.RelativePath = exports.RelativePathElement = exports.Argument = exports.ApplicationDescription = exports._enumerationApplicationType = exports.ApplicationType = exports.AnonymousIdentityToken = exports.UserIdentityToken = exports.Annotation = exports.AliasNameDataType = exports.AggregateFilterResult = exports.MonitoringFilterResult = exports.AggregateFilter = exports.MonitoringFilter = exports.AggregateConfiguration = exports.AdditionalParametersType = exports.KeyValuePair = exports.AddReferencesResponse = exports.AddReferencesRequest = exports.AddReferencesItem = exports.AddNodesResponse = exports.AddNodesResult = exports.AddNodesRequest = exports.AddNodesItem = exports._enumerationNodeClass = exports.NodeClass = exports.ActivateSessionResponse = exports.ResponseHeader = exports.ActivateSessionRequest = exports.SignedSoftwareCertificate = exports.SignatureData = exports.RequestHeader = exports.SimpleAttributeOperand = exports.FilterOperand = exports.AxisInformation = exports._enumerationAxisScaleEnumeration = exports.AxisScaleEnumeration = exports.Range = exports.EUInformation = void 0;
|
|
15
|
+
exports.CreateSubscriptionResponse = exports.CreateSubscriptionRequest = exports.CreateSessionResponse = exports.EndpointDescription = exports.UserTokenPolicy = exports._enumerationUserTokenType = exports.UserTokenType = exports._enumerationMessageSecurityMode = exports.MessageSecurityMode = exports.CreateSessionRequest = exports.CreateMonitoredItemsResponse = exports.MonitoredItemCreateResult = exports.CreateMonitoredItemsRequest = exports.MonitoredItemCreateRequest = exports.MonitoringParameters = exports._enumerationMonitoringMode = exports.MonitoringMode = exports.ReadValueId = exports.ContentFilterResult = exports.ContentFilterElementResult = exports.ContentFilter = exports.ContentFilterElement = exports._enumerationFilterOperator = exports.FilterOperator = exports.ConfigurationVersionDataType = exports.ComplexNumberType = exports.CloseSessionResponse = exports.CloseSessionRequest = exports.CloseSecureChannelResponse = exports.CloseSecureChannelRequest = exports.ChannelSecurityToken = exports.CartesianCoordinates = exports.CancelResponse = exports.CancelRequest = exports.CallResponse = exports.CallRequest = exports.CallMethodResult = exports.CallMethodRequest = exports.BuildInfo = exports.BrowseResponse = exports.BrowseRequest = exports.ViewDescription = exports.BrowsePathResult = exports.BrowsePathTarget = exports.BrowsePath = exports.BrowseNextResponse = exports.BrowseResult = exports.ReferenceDescription = exports.BrowseNextRequest = exports.BrowseDescription = void 0;
|
|
16
|
+
exports.DeleteMonitoredItemsResponse = exports.DeleteMonitoredItemsRequest = exports.DeleteEventDetails = exports.DeleteAtTimeDetails = exports.HistoryUpdateDetails = exports.DecimalDataType = exports.DatagramWriterGroupTransport2DataType = exports.DatagramWriterGroupTransportDataType = exports.DatagramDataSetReaderTransportDataType = exports.DatagramConnectionTransport2DataType = exports.DatagramConnectionTransportDataType = exports.DataTypeNode = exports.TypeNode = exports.Node = exports.ReferenceNode = exports.RolePermissionType = exports._enumerationPermissionType = exports.PermissionType = exports.DataTypeAttributes = exports.NodeAttributes = exports.DataSetWriterMessageDataType = exports.DataSetWriterDataType = exports.DataSetReaderMessageDataType = exports.DataSetReaderDataType = exports._enumerationDataSetFieldContentMask = exports.DataSetFieldContentMask = exports.DataSetMetaDataType = exports.FieldMetaData = exports._enumerationDataSetFieldFlags = exports.DataSetFieldFlags = exports.DataTypeSchemaHeader = exports.SimpleTypeDescription = exports.EnumDescription = exports.EnumDefinition = exports.EnumField = exports.EnumValueType = exports.StructureDescription = exports.StructureDefinition = exports.StructureField = exports._enumerationStructureType = exports.StructureType = exports.DataTypeDefinition = exports.DataTypeDescription = exports.DataChangeNotification = exports.MonitoredItemNotification = exports.NotificationData = exports.DataChangeFilter = exports._enumerationDataChangeTrigger = exports.DataChangeTrigger = exports.CurrencyUnitType = void 0;
|
|
17
|
+
exports._enumerationIdentityCriteriaType = exports.IdentityCriteriaType = exports.HistoryUpdateResponse = exports.HistoryUpdateResult = exports.HistoryUpdateRequest = exports.HistoryReadResponse = exports.HistoryReadResult = exports.HistoryReadRequest = exports.HistoryReadValueId = exports.HistoryReadDetails = exports.HistoryModifiedData = exports.ModificationInfo = exports._enumerationHistoryUpdateType = exports.HistoryUpdateType = exports.HistoryEvent = exports.HistoryEventFieldList = exports.HistoryData = exports.GetEndpointsResponse = exports.GetEndpointsRequest = exports.GenericAttributes = exports.GenericAttributeValue = exports.Frame = exports.FindServersResponse = exports.FindServersRequest = exports.FindServersOnNetworkResponse = exports.ServerOnNetwork = exports.FindServersOnNetworkRequest = exports.FieldTargetDataType = exports._enumerationOverrideValueHandling = exports.OverrideValueHandling = exports.EventNotificationList = exports.EventFilterResult = exports.EventFilter = exports.EventFieldList = exports.EphemeralKeyType = exports.EndpointUrlListDataType = exports.EndpointType = exports.EndpointConfiguration = exports.ElementOperand = exports.DoubleComplexNumberType = exports.DiscoveryConfiguration = exports.DeleteSubscriptionsResponse = exports.DeleteSubscriptionsRequest = exports.DeleteReferencesResponse = exports.DeleteReferencesRequest = exports.DeleteReferencesItem = exports.DeleteRawModifiedDetails = exports.DeleteNodesResponse = exports.DeleteNodesRequest = exports.DeleteNodesItem = void 0;
|
|
18
|
+
exports.ReaderGroupDataType = exports.WriterGroupDataType = exports.PubSubGroupDataType = exports.PublishedDataSetDataType = exports.ProgramDiagnosticDataType = exports.StatusResult = exports.ProgramDiagnostic2DataType = exports.PriorityMappingEntryType = exports.PortableQualifiedName = exports.PortableNodeId = exports.ParsingResult = exports.Orientation = exports.OptionSet = exports.OpenSecureChannelResponse = exports.OpenSecureChannelRequest = exports._enumerationSecurityTokenRequestType = exports.SecurityTokenRequestType = exports.ObjectTypeNode = exports.ObjectTypeAttributes = exports.ObjectNode = exports.ObjectAttributes = exports.NotificationMessage = exports.NodeTypeDescription = exports.QueryDataDescription = exports.NodeReference = exports.NetworkGroupDataType = exports.NetworkAddressUrlDataType = exports.NetworkAddressDataType = exports.ModifySubscriptionResponse = exports.ModifySubscriptionRequest = exports.ModifyMonitoredItemsResponse = exports.MonitoredItemModifyResult = exports.ModifyMonitoredItemsRequest = exports.MonitoredItemModifyRequest = exports.ModelChangeStructureDataType = exports.MethodNode = exports.MethodAttributes = exports.MdnsDiscoveryConfiguration = exports.LiteralOperand = exports.JsonWriterGroupMessageDataType = exports.WriterGroupMessageDataType = exports.JsonDataSetWriterMessageDataType = exports.JsonDataSetReaderMessageDataType = exports._enumerationJsonDataSetMessageContentMask = exports.JsonDataSetMessageContentMask = exports._enumerationJsonNetworkMessageContentMask = exports.JsonNetworkMessageContentMask = exports.IssuedIdentityToken = exports.InstanceNode = exports.IdentityMappingRuleType = void 0;
|
|
19
|
+
exports.RepublishRequest = exports.RegisterServerResponse = exports.RegisterServerRequest = exports.RegisterServer2Response = exports.RegisterServer2Request = exports.RegisteredServer = exports.RegisterNodesResponse = exports.RegisterNodesRequest = exports.ReferenceTypeNode = exports.ReferenceTypeAttributes = exports.RedundantServerDataType = exports._enumerationServerState = exports.ServerState = exports.ReceiveQosPriorityDataType = exports.ReceiveQosDataType = exports.ReaderGroupTransportDataType = exports.ReaderGroupMessageDataType = exports.ReadResponse = exports.ReadRequest = exports.ReadRawModifiedDetails = exports.ReadProcessedDetails = exports.ReadEventDetails = exports.ReadAtTimeDetails = exports.ReadAnnotationDataDetails = exports.RationalNumber = exports.QueryNextResponse = exports.QueryNextRequest = exports.QueryFirstResponse = exports.QueryFirstRequest = exports.QueryDataSet = exports.QosDataType = exports.PublishedEventsDataType = exports.PublishedDataSetCustomSourceDataType = exports.PublishedDataItemsDataType = exports.PublishedVariableDataType = exports.PublishedDataSetSourceDataType = exports.PublishResponse = exports.PublishRequest = exports.SubscriptionAcknowledgement = exports.PubSubConfigurationValueDataType = exports.PubSubConfigurationRefDataType = exports._enumerationPubSubConfigurationRefMask = exports.PubSubConfigurationRefMask = exports.PubSubConfiguration2DataType = exports.PubSubKeyPushTargetDataType = exports.SecurityGroupDataType = exports.StandaloneSubscribedDataSetDataType = exports.SubscribedDataSetDataType = exports.PubSubConfigurationDataType = exports.PubSubConnectionDataType = void 0;
|
|
20
|
+
exports.UnsignedRationalNumber = exports.UnregisterNodesResponse = exports.UnregisterNodesRequest = exports.Union = exports.UadpWriterGroupMessageDataType = exports._enumerationDataSetOrderingType = exports.DataSetOrderingType = exports.UadpDataSetWriterMessageDataType = exports.UadpDataSetReaderMessageDataType = exports._enumerationUadpDataSetMessageContentMask = exports.UadpDataSetMessageContentMask = exports._enumerationUadpNetworkMessageContentMask = exports.UadpNetworkMessageContentMask = exports.UABinaryFileDataType = exports.TrustListDataType = exports.TransmitQosPriorityDataType = exports.TransmitQosDataType = exports.TranslateBrowsePathsToNodeIdsResponse = exports.TranslateBrowsePathsToNodeIdsRequest = exports.TransferSubscriptionsResponse = exports.TransferSubscriptionsRequest = exports.TransferResult = exports.TimeZoneDataType = exports.ThreeDVector = exports.Vector = exports.ThreeDFrame = exports.ThreeDOrientation = exports.ThreeDCartesianCoordinates = exports.TargetVariablesDataType = exports.SubscriptionDiagnosticsDataType = exports.SubscribedDataSetMirrorDataType = exports.StatusChangeNotification = exports.StandaloneSubscribedDataSetRefDataType = exports.SetTriggeringResponse = exports.SetTriggeringRequest = exports.SetPublishingModeResponse = exports.SetPublishingModeRequest = exports.SetMonitoringModeResponse = exports.SetMonitoringModeRequest = exports.SessionlessInvokeResponseType = exports.SessionlessInvokeRequestType = exports.SessionSecurityDiagnosticsDataType = exports.SessionDiagnosticsDataType = exports.ServiceFault = exports.ServiceCounterDataType = exports.ServerStatusDataType = exports.ServerDiagnosticsSummaryDataType = exports.SemanticChangeStructureDataType = exports.SamplingIntervalDiagnosticsDataType = exports.RepublishResponse = void 0;
|
|
21
|
+
exports.XVType = exports.X509IdentityToken = exports.WriteResponse = exports.WriteRequest = exports.WriteValue = exports.ViewNode = exports.ViewAttributes = exports.VariableTypeNode = exports.VariableTypeAttributes = exports.VariableNode = exports.VariableAttributes = exports.UserNameIdentityToken = exports.UserManagementDataType = exports._enumerationUserConfigurationMask = exports.UserConfigurationMask = exports.UpdateStructureDataDetails = exports.UpdateEventDetails = exports.UpdateDataDetails = exports._enumerationPerformUpdateType = exports.PerformUpdateType = void 0;
|
|
21
22
|
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
22
23
|
const node_opcua_basic_types_1 = require("node-opcua-basic-types");
|
|
23
24
|
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
@@ -28,13 +29,6 @@ const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
|
28
29
|
const node_opcua_numeric_range_1 = require("node-opcua-numeric-range");
|
|
29
30
|
const node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
30
31
|
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
31
|
-
class DataTypeDefinition extends node_opcua_factory_1.BaseUAObject {
|
|
32
|
-
constructor(options) {
|
|
33
|
-
options = options; // do not remove
|
|
34
|
-
super();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.DataTypeDefinition = DataTypeDefinition;
|
|
38
32
|
// --------------------------------------------------------------------------------------------
|
|
39
33
|
const schemaEUInformation = (0, node_opcua_factory_1.buildStructuredType)({
|
|
40
34
|
name: "EUInformation",
|
|
@@ -7007,18 +7001,60 @@ DataTypeDescription.schema.encodingDefaultXml = DataTypeDescription.encodingDefa
|
|
|
7007
7001
|
DataTypeDescription.schema.encodingDefaultJson = DataTypeDescription.encodingDefaultJson;
|
|
7008
7002
|
(0, node_opcua_factory_1.registerClassDefinition)(DataTypeDescription.dataTypeNodeId, "DataTypeDescription", DataTypeDescription);
|
|
7009
7003
|
// --------------------------------------------------------------------------------------------
|
|
7004
|
+
const schemaDataTypeDefinition = (0, node_opcua_factory_1.buildStructuredType)({
|
|
7005
|
+
name: "DataTypeDefinition",
|
|
7006
|
+
baseType: "ExtensionObject",
|
|
7007
|
+
fields: []
|
|
7008
|
+
});
|
|
7009
|
+
class DataTypeDefinition extends node_opcua_extension_object_1.ExtensionObject {
|
|
7010
|
+
constructor(options) {
|
|
7011
|
+
super(options);
|
|
7012
|
+
if (options === null) {
|
|
7013
|
+
return;
|
|
7014
|
+
}
|
|
7015
|
+
const schema = DataTypeDefinition.schema;
|
|
7016
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
7017
|
+
/* istanbul ignore next */
|
|
7018
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
7019
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
7020
|
+
}
|
|
7021
|
+
}
|
|
7022
|
+
static get schema() { return schemaDataTypeDefinition; }
|
|
7023
|
+
encode(stream) {
|
|
7024
|
+
/* NEEDED */ super.encode(stream);
|
|
7025
|
+
}
|
|
7026
|
+
decode(stream) {
|
|
7027
|
+
// call base class implementation first
|
|
7028
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
7029
|
+
}
|
|
7030
|
+
get schema() { return schemaDataTypeDefinition; }
|
|
7031
|
+
}
|
|
7032
|
+
exports.DataTypeDefinition = DataTypeDefinition;
|
|
7033
|
+
DataTypeDefinition.possibleFields = [];
|
|
7034
|
+
DataTypeDefinition.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(97, 0);
|
|
7035
|
+
DataTypeDefinition.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(121, 0);
|
|
7036
|
+
DataTypeDefinition.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(14797, 0);
|
|
7037
|
+
DataTypeDefinition.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15063, 0);
|
|
7038
|
+
DataTypeDefinition.schema.dataTypeNodeId = DataTypeDefinition.dataTypeNodeId;
|
|
7039
|
+
DataTypeDefinition.schema.encodingDefaultBinary = DataTypeDefinition.encodingDefaultBinary;
|
|
7040
|
+
DataTypeDefinition.schema.encodingDefaultXml = DataTypeDefinition.encodingDefaultXml;
|
|
7041
|
+
DataTypeDefinition.schema.encodingDefaultJson = DataTypeDefinition.encodingDefaultJson;
|
|
7042
|
+
(0, node_opcua_factory_1.registerClassDefinition)(DataTypeDefinition.dataTypeNodeId, "DataTypeDefinition", DataTypeDefinition);
|
|
7043
|
+
// --------------------------------------------------------------------------------------------
|
|
7010
7044
|
var StructureType;
|
|
7011
7045
|
(function (StructureType) {
|
|
7012
7046
|
StructureType[StructureType["Structure"] = 0] = "Structure";
|
|
7013
7047
|
StructureType[StructureType["StructureWithOptionalFields"] = 1] = "StructureWithOptionalFields";
|
|
7014
7048
|
StructureType[StructureType["Union"] = 2] = "Union";
|
|
7049
|
+
StructureType[StructureType["StructureWithSubtypedValues"] = 3] = "StructureWithSubtypedValues";
|
|
7050
|
+
StructureType[StructureType["UnionWithSubtypedValues"] = 4] = "UnionWithSubtypedValues";
|
|
7015
7051
|
StructureType[StructureType["Invalid"] = 4294967295] = "Invalid";
|
|
7016
7052
|
})(StructureType = exports.StructureType || (exports.StructureType = {}));
|
|
7017
7053
|
const schemaStructureType = {
|
|
7018
7054
|
enumValues: StructureType,
|
|
7019
7055
|
flaggable: false,
|
|
7020
7056
|
minValue: 0,
|
|
7021
|
-
maxValue:
|
|
7057
|
+
maxValue: 4,
|
|
7022
7058
|
name: "StructureType"
|
|
7023
7059
|
};
|
|
7024
7060
|
function decodeStructureType(stream, _value) {
|
|
@@ -9137,6 +9173,164 @@ DatagramConnectionTransportDataType.schema.encodingDefaultXml = DatagramConnecti
|
|
|
9137
9173
|
DatagramConnectionTransportDataType.schema.encodingDefaultJson = DatagramConnectionTransportDataType.encodingDefaultJson;
|
|
9138
9174
|
(0, node_opcua_factory_1.registerClassDefinition)(DatagramConnectionTransportDataType.dataTypeNodeId, "DatagramConnectionTransportDataType", DatagramConnectionTransportDataType);
|
|
9139
9175
|
// --------------------------------------------------------------------------------------------
|
|
9176
|
+
const schemaDatagramConnectionTransport2DataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
9177
|
+
name: "DatagramConnectionTransport2DataType",
|
|
9178
|
+
baseType: "DatagramConnectionTransportDataType",
|
|
9179
|
+
fields: [
|
|
9180
|
+
{
|
|
9181
|
+
name: "discoveryAnnounceRate",
|
|
9182
|
+
fieldType: "UInt32",
|
|
9183
|
+
},
|
|
9184
|
+
{
|
|
9185
|
+
name: "discoveryMaxMessageSize",
|
|
9186
|
+
fieldType: "UInt32",
|
|
9187
|
+
},
|
|
9188
|
+
{
|
|
9189
|
+
name: "qosCategory",
|
|
9190
|
+
fieldType: "UAString",
|
|
9191
|
+
},
|
|
9192
|
+
{
|
|
9193
|
+
name: "datagramQos",
|
|
9194
|
+
fieldType: "ExtensionObject",
|
|
9195
|
+
isArray: true
|
|
9196
|
+
},
|
|
9197
|
+
]
|
|
9198
|
+
});
|
|
9199
|
+
class DatagramConnectionTransport2DataType extends DatagramConnectionTransportDataType {
|
|
9200
|
+
constructor(options) {
|
|
9201
|
+
super(options);
|
|
9202
|
+
if (options === null) {
|
|
9203
|
+
this.discoveryAnnounceRate = 0;
|
|
9204
|
+
this.discoveryMaxMessageSize = 0;
|
|
9205
|
+
this.qosCategory = null;
|
|
9206
|
+
this.datagramQos = [];
|
|
9207
|
+
return;
|
|
9208
|
+
}
|
|
9209
|
+
const schema = DatagramConnectionTransport2DataType.schema;
|
|
9210
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
9211
|
+
/* istanbul ignore next */
|
|
9212
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
9213
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
9214
|
+
}
|
|
9215
|
+
this.discoveryAnnounceRate = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.discoveryAnnounceRate);
|
|
9216
|
+
this.discoveryMaxMessageSize = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.discoveryMaxMessageSize);
|
|
9217
|
+
this.qosCategory = (0, node_opcua_factory_1.initialize_field)(schema.fields[2], options === null || options === void 0 ? void 0 : options.qosCategory);
|
|
9218
|
+
this.datagramQos = (0, node_opcua_factory_1.initialize_field_array)(schema.fields[3], options === null || options === void 0 ? void 0 : options.datagramQos);
|
|
9219
|
+
}
|
|
9220
|
+
static get schema() { return schemaDatagramConnectionTransport2DataType; }
|
|
9221
|
+
encode(stream) {
|
|
9222
|
+
/* NEEDED */ super.encode(stream);
|
|
9223
|
+
(0, node_opcua_basic_types_1.encodeUInt32)(this.discoveryAnnounceRate, stream);
|
|
9224
|
+
(0, node_opcua_basic_types_1.encodeUInt32)(this.discoveryMaxMessageSize, stream);
|
|
9225
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.qosCategory, stream);
|
|
9226
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.datagramQos, stream, node_opcua_extension_object_1.encodeExtensionObject);
|
|
9227
|
+
}
|
|
9228
|
+
decode(stream) {
|
|
9229
|
+
// call base class implementation first
|
|
9230
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
9231
|
+
this.discoveryAnnounceRate = (0, node_opcua_basic_types_1.decodeUInt32)(stream, this.discoveryAnnounceRate);
|
|
9232
|
+
this.discoveryMaxMessageSize = (0, node_opcua_basic_types_1.decodeUInt32)(stream, this.discoveryMaxMessageSize);
|
|
9233
|
+
this.qosCategory = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.qosCategory);
|
|
9234
|
+
this.datagramQos = (0, node_opcua_basic_types_1.decodeArray)(stream, node_opcua_extension_object_1.decodeExtensionObject);
|
|
9235
|
+
}
|
|
9236
|
+
get schema() { return schemaDatagramConnectionTransport2DataType; }
|
|
9237
|
+
}
|
|
9238
|
+
exports.DatagramConnectionTransport2DataType = DatagramConnectionTransport2DataType;
|
|
9239
|
+
DatagramConnectionTransport2DataType.possibleFields = [
|
|
9240
|
+
"discoveryAnnounceRate",
|
|
9241
|
+
"discoveryMaxMessageSize",
|
|
9242
|
+
"qosCategory",
|
|
9243
|
+
"datagramQos"
|
|
9244
|
+
];
|
|
9245
|
+
DatagramConnectionTransport2DataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23612, 0);
|
|
9246
|
+
DatagramConnectionTransport2DataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23864, 0);
|
|
9247
|
+
DatagramConnectionTransport2DataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23932, 0);
|
|
9248
|
+
DatagramConnectionTransport2DataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24000, 0);
|
|
9249
|
+
DatagramConnectionTransport2DataType.schema.dataTypeNodeId = DatagramConnectionTransport2DataType.dataTypeNodeId;
|
|
9250
|
+
DatagramConnectionTransport2DataType.schema.encodingDefaultBinary = DatagramConnectionTransport2DataType.encodingDefaultBinary;
|
|
9251
|
+
DatagramConnectionTransport2DataType.schema.encodingDefaultXml = DatagramConnectionTransport2DataType.encodingDefaultXml;
|
|
9252
|
+
DatagramConnectionTransport2DataType.schema.encodingDefaultJson = DatagramConnectionTransport2DataType.encodingDefaultJson;
|
|
9253
|
+
(0, node_opcua_factory_1.registerClassDefinition)(DatagramConnectionTransport2DataType.dataTypeNodeId, "DatagramConnectionTransport2DataType", DatagramConnectionTransport2DataType);
|
|
9254
|
+
// --------------------------------------------------------------------------------------------
|
|
9255
|
+
const schemaDatagramDataSetReaderTransportDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
9256
|
+
name: "DatagramDataSetReaderTransportDataType",
|
|
9257
|
+
baseType: "DataSetReaderTransportDataType",
|
|
9258
|
+
fields: [
|
|
9259
|
+
{
|
|
9260
|
+
name: "address",
|
|
9261
|
+
fieldType: "ExtensionObject",
|
|
9262
|
+
},
|
|
9263
|
+
{
|
|
9264
|
+
name: "qosCategory",
|
|
9265
|
+
fieldType: "UAString",
|
|
9266
|
+
},
|
|
9267
|
+
{
|
|
9268
|
+
name: "datagramQos",
|
|
9269
|
+
fieldType: "ExtensionObject",
|
|
9270
|
+
isArray: true
|
|
9271
|
+
},
|
|
9272
|
+
{
|
|
9273
|
+
name: "topic",
|
|
9274
|
+
fieldType: "UAString",
|
|
9275
|
+
},
|
|
9276
|
+
]
|
|
9277
|
+
});
|
|
9278
|
+
class DatagramDataSetReaderTransportDataType extends DataSetReaderTransportDataType {
|
|
9279
|
+
constructor(options) {
|
|
9280
|
+
super(options);
|
|
9281
|
+
if (options === null) {
|
|
9282
|
+
this.address = null;
|
|
9283
|
+
this.qosCategory = null;
|
|
9284
|
+
this.datagramQos = [];
|
|
9285
|
+
this.topic = null;
|
|
9286
|
+
return;
|
|
9287
|
+
}
|
|
9288
|
+
const schema = DatagramDataSetReaderTransportDataType.schema;
|
|
9289
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
9290
|
+
/* istanbul ignore next */
|
|
9291
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
9292
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
9293
|
+
}
|
|
9294
|
+
this.address = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.address);
|
|
9295
|
+
this.qosCategory = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.qosCategory);
|
|
9296
|
+
this.datagramQos = (0, node_opcua_factory_1.initialize_field_array)(schema.fields[2], options === null || options === void 0 ? void 0 : options.datagramQos);
|
|
9297
|
+
this.topic = (0, node_opcua_factory_1.initialize_field)(schema.fields[3], options === null || options === void 0 ? void 0 : options.topic);
|
|
9298
|
+
}
|
|
9299
|
+
static get schema() { return schemaDatagramDataSetReaderTransportDataType; }
|
|
9300
|
+
encode(stream) {
|
|
9301
|
+
/* NEEDED */ super.encode(stream);
|
|
9302
|
+
(0, node_opcua_extension_object_1.encodeExtensionObject)(this.address, stream);
|
|
9303
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.qosCategory, stream);
|
|
9304
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.datagramQos, stream, node_opcua_extension_object_1.encodeExtensionObject);
|
|
9305
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.topic, stream);
|
|
9306
|
+
}
|
|
9307
|
+
decode(stream) {
|
|
9308
|
+
// call base class implementation first
|
|
9309
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
9310
|
+
this.address = (0, node_opcua_extension_object_1.decodeExtensionObject)(stream, this.address);
|
|
9311
|
+
this.qosCategory = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.qosCategory);
|
|
9312
|
+
this.datagramQos = (0, node_opcua_basic_types_1.decodeArray)(stream, node_opcua_extension_object_1.decodeExtensionObject);
|
|
9313
|
+
this.topic = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.topic);
|
|
9314
|
+
}
|
|
9315
|
+
get schema() { return schemaDatagramDataSetReaderTransportDataType; }
|
|
9316
|
+
}
|
|
9317
|
+
exports.DatagramDataSetReaderTransportDataType = DatagramDataSetReaderTransportDataType;
|
|
9318
|
+
DatagramDataSetReaderTransportDataType.possibleFields = [
|
|
9319
|
+
"address",
|
|
9320
|
+
"qosCategory",
|
|
9321
|
+
"datagramQos",
|
|
9322
|
+
"topic"
|
|
9323
|
+
];
|
|
9324
|
+
DatagramDataSetReaderTransportDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23614, 0);
|
|
9325
|
+
DatagramDataSetReaderTransportDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23866, 0);
|
|
9326
|
+
DatagramDataSetReaderTransportDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23934, 0);
|
|
9327
|
+
DatagramDataSetReaderTransportDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24002, 0);
|
|
9328
|
+
DatagramDataSetReaderTransportDataType.schema.dataTypeNodeId = DatagramDataSetReaderTransportDataType.dataTypeNodeId;
|
|
9329
|
+
DatagramDataSetReaderTransportDataType.schema.encodingDefaultBinary = DatagramDataSetReaderTransportDataType.encodingDefaultBinary;
|
|
9330
|
+
DatagramDataSetReaderTransportDataType.schema.encodingDefaultXml = DatagramDataSetReaderTransportDataType.encodingDefaultXml;
|
|
9331
|
+
DatagramDataSetReaderTransportDataType.schema.encodingDefaultJson = DatagramDataSetReaderTransportDataType.encodingDefaultJson;
|
|
9332
|
+
(0, node_opcua_factory_1.registerClassDefinition)(DatagramDataSetReaderTransportDataType.dataTypeNodeId, "DatagramDataSetReaderTransportDataType", DatagramDataSetReaderTransportDataType);
|
|
9333
|
+
// --------------------------------------------------------------------------------------------
|
|
9140
9334
|
const schemaDatagramWriterGroupTransportDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
9141
9335
|
name: "DatagramWriterGroupTransportDataType",
|
|
9142
9336
|
baseType: "WriterGroupTransportDataType",
|
|
@@ -9197,6 +9391,94 @@ DatagramWriterGroupTransportDataType.schema.encodingDefaultXml = DatagramWriterG
|
|
|
9197
9391
|
DatagramWriterGroupTransportDataType.schema.encodingDefaultJson = DatagramWriterGroupTransportDataType.encodingDefaultJson;
|
|
9198
9392
|
(0, node_opcua_factory_1.registerClassDefinition)(DatagramWriterGroupTransportDataType.dataTypeNodeId, "DatagramWriterGroupTransportDataType", DatagramWriterGroupTransportDataType);
|
|
9199
9393
|
// --------------------------------------------------------------------------------------------
|
|
9394
|
+
const schemaDatagramWriterGroupTransport2DataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
9395
|
+
name: "DatagramWriterGroupTransport2DataType",
|
|
9396
|
+
baseType: "DatagramWriterGroupTransportDataType",
|
|
9397
|
+
fields: [
|
|
9398
|
+
{
|
|
9399
|
+
name: "address",
|
|
9400
|
+
fieldType: "ExtensionObject",
|
|
9401
|
+
},
|
|
9402
|
+
{
|
|
9403
|
+
name: "qosCategory",
|
|
9404
|
+
fieldType: "UAString",
|
|
9405
|
+
},
|
|
9406
|
+
{
|
|
9407
|
+
name: "datagramQos",
|
|
9408
|
+
fieldType: "ExtensionObject",
|
|
9409
|
+
isArray: true
|
|
9410
|
+
},
|
|
9411
|
+
{
|
|
9412
|
+
name: "discoveryAnnounceRate",
|
|
9413
|
+
fieldType: "UInt32",
|
|
9414
|
+
},
|
|
9415
|
+
{
|
|
9416
|
+
name: "topic",
|
|
9417
|
+
fieldType: "UAString",
|
|
9418
|
+
},
|
|
9419
|
+
]
|
|
9420
|
+
});
|
|
9421
|
+
class DatagramWriterGroupTransport2DataType extends DatagramWriterGroupTransportDataType {
|
|
9422
|
+
constructor(options) {
|
|
9423
|
+
super(options);
|
|
9424
|
+
if (options === null) {
|
|
9425
|
+
this.address = null;
|
|
9426
|
+
this.qosCategory = null;
|
|
9427
|
+
this.datagramQos = [];
|
|
9428
|
+
this.discoveryAnnounceRate = 0;
|
|
9429
|
+
this.topic = null;
|
|
9430
|
+
return;
|
|
9431
|
+
}
|
|
9432
|
+
const schema = DatagramWriterGroupTransport2DataType.schema;
|
|
9433
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
9434
|
+
/* istanbul ignore next */
|
|
9435
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
9436
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
9437
|
+
}
|
|
9438
|
+
this.address = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.address);
|
|
9439
|
+
this.qosCategory = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.qosCategory);
|
|
9440
|
+
this.datagramQos = (0, node_opcua_factory_1.initialize_field_array)(schema.fields[2], options === null || options === void 0 ? void 0 : options.datagramQos);
|
|
9441
|
+
this.discoveryAnnounceRate = (0, node_opcua_factory_1.initialize_field)(schema.fields[3], options === null || options === void 0 ? void 0 : options.discoveryAnnounceRate);
|
|
9442
|
+
this.topic = (0, node_opcua_factory_1.initialize_field)(schema.fields[4], options === null || options === void 0 ? void 0 : options.topic);
|
|
9443
|
+
}
|
|
9444
|
+
static get schema() { return schemaDatagramWriterGroupTransport2DataType; }
|
|
9445
|
+
encode(stream) {
|
|
9446
|
+
/* NEEDED */ super.encode(stream);
|
|
9447
|
+
(0, node_opcua_extension_object_1.encodeExtensionObject)(this.address, stream);
|
|
9448
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.qosCategory, stream);
|
|
9449
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.datagramQos, stream, node_opcua_extension_object_1.encodeExtensionObject);
|
|
9450
|
+
(0, node_opcua_basic_types_1.encodeUInt32)(this.discoveryAnnounceRate, stream);
|
|
9451
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.topic, stream);
|
|
9452
|
+
}
|
|
9453
|
+
decode(stream) {
|
|
9454
|
+
// call base class implementation first
|
|
9455
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
9456
|
+
this.address = (0, node_opcua_extension_object_1.decodeExtensionObject)(stream, this.address);
|
|
9457
|
+
this.qosCategory = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.qosCategory);
|
|
9458
|
+
this.datagramQos = (0, node_opcua_basic_types_1.decodeArray)(stream, node_opcua_extension_object_1.decodeExtensionObject);
|
|
9459
|
+
this.discoveryAnnounceRate = (0, node_opcua_basic_types_1.decodeUInt32)(stream, this.discoveryAnnounceRate);
|
|
9460
|
+
this.topic = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.topic);
|
|
9461
|
+
}
|
|
9462
|
+
get schema() { return schemaDatagramWriterGroupTransport2DataType; }
|
|
9463
|
+
}
|
|
9464
|
+
exports.DatagramWriterGroupTransport2DataType = DatagramWriterGroupTransport2DataType;
|
|
9465
|
+
DatagramWriterGroupTransport2DataType.possibleFields = [
|
|
9466
|
+
"address",
|
|
9467
|
+
"qosCategory",
|
|
9468
|
+
"datagramQos",
|
|
9469
|
+
"discoveryAnnounceRate",
|
|
9470
|
+
"topic"
|
|
9471
|
+
];
|
|
9472
|
+
DatagramWriterGroupTransport2DataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23613, 0);
|
|
9473
|
+
DatagramWriterGroupTransport2DataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23865, 0);
|
|
9474
|
+
DatagramWriterGroupTransport2DataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23933, 0);
|
|
9475
|
+
DatagramWriterGroupTransport2DataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24001, 0);
|
|
9476
|
+
DatagramWriterGroupTransport2DataType.schema.dataTypeNodeId = DatagramWriterGroupTransport2DataType.dataTypeNodeId;
|
|
9477
|
+
DatagramWriterGroupTransport2DataType.schema.encodingDefaultBinary = DatagramWriterGroupTransport2DataType.encodingDefaultBinary;
|
|
9478
|
+
DatagramWriterGroupTransport2DataType.schema.encodingDefaultXml = DatagramWriterGroupTransport2DataType.encodingDefaultXml;
|
|
9479
|
+
DatagramWriterGroupTransport2DataType.schema.encodingDefaultJson = DatagramWriterGroupTransport2DataType.encodingDefaultJson;
|
|
9480
|
+
(0, node_opcua_factory_1.registerClassDefinition)(DatagramWriterGroupTransport2DataType.dataTypeNodeId, "DatagramWriterGroupTransport2DataType", DatagramWriterGroupTransport2DataType);
|
|
9481
|
+
// --------------------------------------------------------------------------------------------
|
|
9200
9482
|
const schemaDecimalDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
9201
9483
|
name: "DecimalDataType",
|
|
9202
9484
|
baseType: "ExtensionObject",
|
|
@@ -12670,13 +12952,15 @@ var IdentityCriteriaType;
|
|
|
12670
12952
|
IdentityCriteriaType[IdentityCriteriaType["GroupId"] = 4] = "GroupId";
|
|
12671
12953
|
IdentityCriteriaType[IdentityCriteriaType["Anonymous"] = 5] = "Anonymous";
|
|
12672
12954
|
IdentityCriteriaType[IdentityCriteriaType["AuthenticatedUser"] = 6] = "AuthenticatedUser";
|
|
12955
|
+
IdentityCriteriaType[IdentityCriteriaType["Application"] = 7] = "Application";
|
|
12956
|
+
IdentityCriteriaType[IdentityCriteriaType["X509Subject"] = 8] = "X509Subject";
|
|
12673
12957
|
IdentityCriteriaType[IdentityCriteriaType["Invalid"] = 4294967295] = "Invalid";
|
|
12674
12958
|
})(IdentityCriteriaType = exports.IdentityCriteriaType || (exports.IdentityCriteriaType = {}));
|
|
12675
12959
|
const schemaIdentityCriteriaType = {
|
|
12676
12960
|
enumValues: IdentityCriteriaType,
|
|
12677
12961
|
flaggable: false,
|
|
12678
|
-
minValue:
|
|
12679
|
-
maxValue:
|
|
12962
|
+
minValue: NaN,
|
|
12963
|
+
maxValue: NaN,
|
|
12680
12964
|
name: "IdentityCriteriaType"
|
|
12681
12965
|
};
|
|
12682
12966
|
function decodeIdentityCriteriaType(stream, _value) {
|
|
@@ -12892,6 +13176,9 @@ var JsonDataSetMessageContentMask;
|
|
|
12892
13176
|
JsonDataSetMessageContentMask[JsonDataSetMessageContentMask["SequenceNumber"] = 4] = "SequenceNumber";
|
|
12893
13177
|
JsonDataSetMessageContentMask[JsonDataSetMessageContentMask["Timestamp"] = 8] = "Timestamp";
|
|
12894
13178
|
JsonDataSetMessageContentMask[JsonDataSetMessageContentMask["Status"] = 16] = "Status";
|
|
13179
|
+
JsonDataSetMessageContentMask[JsonDataSetMessageContentMask["MessageType"] = 32] = "MessageType";
|
|
13180
|
+
JsonDataSetMessageContentMask[JsonDataSetMessageContentMask["DataSetWriterName"] = 64] = "DataSetWriterName";
|
|
13181
|
+
JsonDataSetMessageContentMask[JsonDataSetMessageContentMask["ReversibleFieldEncoding"] = 128] = "ReversibleFieldEncoding";
|
|
12895
13182
|
})(JsonDataSetMessageContentMask = exports.JsonDataSetMessageContentMask || (exports.JsonDataSetMessageContentMask = {}));
|
|
12896
13183
|
const schemaJsonDataSetMessageContentMask = {
|
|
12897
13184
|
enumValues: JsonDataSetMessageContentMask,
|
|
@@ -15167,103 +15454,241 @@ ParsingResult.schema.encodingDefaultXml = ParsingResult.encodingDefaultXml;
|
|
|
15167
15454
|
ParsingResult.schema.encodingDefaultJson = ParsingResult.encodingDefaultJson;
|
|
15168
15455
|
(0, node_opcua_factory_1.registerClassDefinition)(ParsingResult.dataTypeNodeId, "ParsingResult", ParsingResult);
|
|
15169
15456
|
// --------------------------------------------------------------------------------------------
|
|
15170
|
-
const
|
|
15171
|
-
name: "
|
|
15457
|
+
const schemaPortableNodeId = (0, node_opcua_factory_1.buildStructuredType)({
|
|
15458
|
+
name: "PortableNodeId",
|
|
15172
15459
|
baseType: "ExtensionObject",
|
|
15173
15460
|
fields: [
|
|
15174
15461
|
{
|
|
15175
|
-
name: "
|
|
15176
|
-
fieldType: "
|
|
15462
|
+
name: "namespaceUri",
|
|
15463
|
+
fieldType: "UAString",
|
|
15177
15464
|
},
|
|
15178
15465
|
{
|
|
15179
|
-
name: "
|
|
15180
|
-
fieldType: "
|
|
15466
|
+
name: "identifier",
|
|
15467
|
+
fieldType: "NodeId",
|
|
15181
15468
|
},
|
|
15182
15469
|
]
|
|
15183
15470
|
});
|
|
15184
|
-
class
|
|
15471
|
+
class PortableNodeId extends node_opcua_extension_object_1.ExtensionObject {
|
|
15185
15472
|
constructor(options) {
|
|
15186
15473
|
super(options);
|
|
15187
15474
|
if (options === null) {
|
|
15188
|
-
this.
|
|
15189
|
-
this.
|
|
15475
|
+
this.namespaceUri = null;
|
|
15476
|
+
this.identifier = new node_opcua_nodeid_1.NodeId(null);
|
|
15190
15477
|
return;
|
|
15191
15478
|
}
|
|
15192
|
-
const schema =
|
|
15479
|
+
const schema = PortableNodeId.schema;
|
|
15193
15480
|
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
15194
15481
|
/* istanbul ignore next */
|
|
15195
15482
|
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
15196
15483
|
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
15197
15484
|
}
|
|
15198
|
-
this.
|
|
15199
|
-
this.
|
|
15485
|
+
this.namespaceUri = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.namespaceUri);
|
|
15486
|
+
this.identifier = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.identifier);
|
|
15200
15487
|
}
|
|
15201
|
-
static get schema() { return
|
|
15488
|
+
static get schema() { return schemaPortableNodeId; }
|
|
15202
15489
|
encode(stream) {
|
|
15203
15490
|
/* NEEDED */ super.encode(stream);
|
|
15204
|
-
(0,
|
|
15205
|
-
(0,
|
|
15491
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.namespaceUri, stream);
|
|
15492
|
+
(0, node_opcua_basic_types_1.encodeNodeId)(this.identifier, stream);
|
|
15206
15493
|
}
|
|
15207
15494
|
decode(stream) {
|
|
15208
15495
|
// call base class implementation first
|
|
15209
15496
|
/* NEEDED !!! */ super.decode(stream);
|
|
15210
|
-
this.
|
|
15211
|
-
this.
|
|
15497
|
+
this.namespaceUri = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.namespaceUri);
|
|
15498
|
+
this.identifier = (0, node_opcua_basic_types_1.decodeNodeId)(stream, this.identifier);
|
|
15212
15499
|
}
|
|
15213
|
-
get schema() { return
|
|
15500
|
+
get schema() { return schemaPortableNodeId; }
|
|
15214
15501
|
}
|
|
15215
|
-
exports.
|
|
15216
|
-
|
|
15217
|
-
"
|
|
15218
|
-
"
|
|
15219
|
-
];
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
|
|
15228
|
-
(0, node_opcua_factory_1.registerClassDefinition)(
|
|
15229
|
-
// --------------------------------------------------------------------------------------------
|
|
15230
|
-
const
|
|
15231
|
-
name: "
|
|
15502
|
+
exports.PortableNodeId = PortableNodeId;
|
|
15503
|
+
PortableNodeId.possibleFields = [
|
|
15504
|
+
"namespaceUri",
|
|
15505
|
+
"identifier"
|
|
15506
|
+
];
|
|
15507
|
+
PortableNodeId.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24106, 0);
|
|
15508
|
+
PortableNodeId.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24109, 0);
|
|
15509
|
+
PortableNodeId.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24121, 0);
|
|
15510
|
+
PortableNodeId.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24133, 0);
|
|
15511
|
+
PortableNodeId.schema.dataTypeNodeId = PortableNodeId.dataTypeNodeId;
|
|
15512
|
+
PortableNodeId.schema.encodingDefaultBinary = PortableNodeId.encodingDefaultBinary;
|
|
15513
|
+
PortableNodeId.schema.encodingDefaultXml = PortableNodeId.encodingDefaultXml;
|
|
15514
|
+
PortableNodeId.schema.encodingDefaultJson = PortableNodeId.encodingDefaultJson;
|
|
15515
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PortableNodeId.dataTypeNodeId, "PortableNodeId", PortableNodeId);
|
|
15516
|
+
// --------------------------------------------------------------------------------------------
|
|
15517
|
+
const schemaPortableQualifiedName = (0, node_opcua_factory_1.buildStructuredType)({
|
|
15518
|
+
name: "PortableQualifiedName",
|
|
15232
15519
|
baseType: "ExtensionObject",
|
|
15233
15520
|
fields: [
|
|
15234
15521
|
{
|
|
15235
|
-
name: "
|
|
15236
|
-
fieldType: "NodeId",
|
|
15237
|
-
},
|
|
15238
|
-
{
|
|
15239
|
-
name: "createClientName",
|
|
15522
|
+
name: "namespaceUri",
|
|
15240
15523
|
fieldType: "UAString",
|
|
15241
15524
|
},
|
|
15242
15525
|
{
|
|
15243
|
-
name: "
|
|
15244
|
-
fieldType: "
|
|
15526
|
+
name: "name",
|
|
15527
|
+
fieldType: "UAString",
|
|
15245
15528
|
},
|
|
15529
|
+
]
|
|
15530
|
+
});
|
|
15531
|
+
class PortableQualifiedName extends node_opcua_extension_object_1.ExtensionObject {
|
|
15532
|
+
constructor(options) {
|
|
15533
|
+
super(options);
|
|
15534
|
+
if (options === null) {
|
|
15535
|
+
this.namespaceUri = null;
|
|
15536
|
+
this.name = null;
|
|
15537
|
+
return;
|
|
15538
|
+
}
|
|
15539
|
+
const schema = PortableQualifiedName.schema;
|
|
15540
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
15541
|
+
/* istanbul ignore next */
|
|
15542
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
15543
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
15544
|
+
}
|
|
15545
|
+
this.namespaceUri = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.namespaceUri);
|
|
15546
|
+
this.name = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.name);
|
|
15547
|
+
}
|
|
15548
|
+
static get schema() { return schemaPortableQualifiedName; }
|
|
15549
|
+
encode(stream) {
|
|
15550
|
+
/* NEEDED */ super.encode(stream);
|
|
15551
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.namespaceUri, stream);
|
|
15552
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.name, stream);
|
|
15553
|
+
}
|
|
15554
|
+
decode(stream) {
|
|
15555
|
+
// call base class implementation first
|
|
15556
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
15557
|
+
this.namespaceUri = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.namespaceUri);
|
|
15558
|
+
this.name = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.name);
|
|
15559
|
+
}
|
|
15560
|
+
get schema() { return schemaPortableQualifiedName; }
|
|
15561
|
+
}
|
|
15562
|
+
exports.PortableQualifiedName = PortableQualifiedName;
|
|
15563
|
+
PortableQualifiedName.possibleFields = [
|
|
15564
|
+
"namespaceUri",
|
|
15565
|
+
"name"
|
|
15566
|
+
];
|
|
15567
|
+
PortableQualifiedName.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24105, 0);
|
|
15568
|
+
PortableQualifiedName.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24108, 0);
|
|
15569
|
+
PortableQualifiedName.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24120, 0);
|
|
15570
|
+
PortableQualifiedName.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24132, 0);
|
|
15571
|
+
PortableQualifiedName.schema.dataTypeNodeId = PortableQualifiedName.dataTypeNodeId;
|
|
15572
|
+
PortableQualifiedName.schema.encodingDefaultBinary = PortableQualifiedName.encodingDefaultBinary;
|
|
15573
|
+
PortableQualifiedName.schema.encodingDefaultXml = PortableQualifiedName.encodingDefaultXml;
|
|
15574
|
+
PortableQualifiedName.schema.encodingDefaultJson = PortableQualifiedName.encodingDefaultJson;
|
|
15575
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PortableQualifiedName.dataTypeNodeId, "PortableQualifiedName", PortableQualifiedName);
|
|
15576
|
+
// --------------------------------------------------------------------------------------------
|
|
15577
|
+
const schemaPriorityMappingEntryType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
15578
|
+
name: "PriorityMappingEntryType",
|
|
15579
|
+
baseType: "ExtensionObject",
|
|
15580
|
+
fields: [
|
|
15246
15581
|
{
|
|
15247
|
-
name: "
|
|
15248
|
-
fieldType: "
|
|
15582
|
+
name: "mappingUri",
|
|
15583
|
+
fieldType: "UAString",
|
|
15249
15584
|
},
|
|
15250
15585
|
{
|
|
15251
|
-
name: "
|
|
15586
|
+
name: "priorityLabel",
|
|
15252
15587
|
fieldType: "UAString",
|
|
15253
15588
|
},
|
|
15254
15589
|
{
|
|
15255
|
-
name: "
|
|
15256
|
-
fieldType: "
|
|
15590
|
+
name: "priorityValue_PCP",
|
|
15591
|
+
fieldType: "Byte",
|
|
15257
15592
|
},
|
|
15258
15593
|
{
|
|
15259
|
-
name: "
|
|
15260
|
-
fieldType: "
|
|
15261
|
-
isArray: true
|
|
15594
|
+
name: "priorityValue_DSCP",
|
|
15595
|
+
fieldType: "UInt32",
|
|
15262
15596
|
},
|
|
15263
|
-
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
|
|
15597
|
+
]
|
|
15598
|
+
});
|
|
15599
|
+
class PriorityMappingEntryType extends node_opcua_extension_object_1.ExtensionObject {
|
|
15600
|
+
constructor(options) {
|
|
15601
|
+
super(options);
|
|
15602
|
+
if (options === null) {
|
|
15603
|
+
this.mappingUri = null;
|
|
15604
|
+
this.priorityLabel = null;
|
|
15605
|
+
this.priorityValue_PCP = 0;
|
|
15606
|
+
this.priorityValue_DSCP = 0;
|
|
15607
|
+
return;
|
|
15608
|
+
}
|
|
15609
|
+
const schema = PriorityMappingEntryType.schema;
|
|
15610
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
15611
|
+
/* istanbul ignore next */
|
|
15612
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
15613
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
15614
|
+
}
|
|
15615
|
+
this.mappingUri = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.mappingUri);
|
|
15616
|
+
this.priorityLabel = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.priorityLabel);
|
|
15617
|
+
this.priorityValue_PCP = (0, node_opcua_factory_1.initialize_field)(schema.fields[2], options === null || options === void 0 ? void 0 : options.priorityValue_PCP);
|
|
15618
|
+
this.priorityValue_DSCP = (0, node_opcua_factory_1.initialize_field)(schema.fields[3], options === null || options === void 0 ? void 0 : options.priorityValue_DSCP);
|
|
15619
|
+
}
|
|
15620
|
+
static get schema() { return schemaPriorityMappingEntryType; }
|
|
15621
|
+
encode(stream) {
|
|
15622
|
+
/* NEEDED */ super.encode(stream);
|
|
15623
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.mappingUri, stream);
|
|
15624
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.priorityLabel, stream);
|
|
15625
|
+
(0, node_opcua_basic_types_1.encodeByte)(this.priorityValue_PCP, stream);
|
|
15626
|
+
(0, node_opcua_basic_types_1.encodeUInt32)(this.priorityValue_DSCP, stream);
|
|
15627
|
+
}
|
|
15628
|
+
decode(stream) {
|
|
15629
|
+
// call base class implementation first
|
|
15630
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
15631
|
+
this.mappingUri = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.mappingUri);
|
|
15632
|
+
this.priorityLabel = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.priorityLabel);
|
|
15633
|
+
this.priorityValue_PCP = (0, node_opcua_basic_types_1.decodeByte)(stream, this.priorityValue_PCP);
|
|
15634
|
+
this.priorityValue_DSCP = (0, node_opcua_basic_types_1.decodeUInt32)(stream, this.priorityValue_DSCP);
|
|
15635
|
+
}
|
|
15636
|
+
get schema() { return schemaPriorityMappingEntryType; }
|
|
15637
|
+
}
|
|
15638
|
+
exports.PriorityMappingEntryType = PriorityMappingEntryType;
|
|
15639
|
+
PriorityMappingEntryType.possibleFields = [
|
|
15640
|
+
"mappingUri",
|
|
15641
|
+
"priorityLabel",
|
|
15642
|
+
"priorityValue_PCP",
|
|
15643
|
+
"priorityValue_DSCP"
|
|
15644
|
+
];
|
|
15645
|
+
PriorityMappingEntryType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25220, 0);
|
|
15646
|
+
PriorityMappingEntryType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25239, 0);
|
|
15647
|
+
PriorityMappingEntryType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25243, 0);
|
|
15648
|
+
PriorityMappingEntryType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25247, 0);
|
|
15649
|
+
PriorityMappingEntryType.schema.dataTypeNodeId = PriorityMappingEntryType.dataTypeNodeId;
|
|
15650
|
+
PriorityMappingEntryType.schema.encodingDefaultBinary = PriorityMappingEntryType.encodingDefaultBinary;
|
|
15651
|
+
PriorityMappingEntryType.schema.encodingDefaultXml = PriorityMappingEntryType.encodingDefaultXml;
|
|
15652
|
+
PriorityMappingEntryType.schema.encodingDefaultJson = PriorityMappingEntryType.encodingDefaultJson;
|
|
15653
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PriorityMappingEntryType.dataTypeNodeId, "PriorityMappingEntryType", PriorityMappingEntryType);
|
|
15654
|
+
// --------------------------------------------------------------------------------------------
|
|
15655
|
+
const schemaProgramDiagnostic2DataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
15656
|
+
name: "ProgramDiagnostic2DataType",
|
|
15657
|
+
baseType: "ExtensionObject",
|
|
15658
|
+
fields: [
|
|
15659
|
+
{
|
|
15660
|
+
name: "createSessionId",
|
|
15661
|
+
fieldType: "NodeId",
|
|
15662
|
+
},
|
|
15663
|
+
{
|
|
15664
|
+
name: "createClientName",
|
|
15665
|
+
fieldType: "UAString",
|
|
15666
|
+
},
|
|
15667
|
+
{
|
|
15668
|
+
name: "invocationCreationTime",
|
|
15669
|
+
fieldType: "DateTime",
|
|
15670
|
+
},
|
|
15671
|
+
{
|
|
15672
|
+
name: "lastTransitionTime",
|
|
15673
|
+
fieldType: "DateTime",
|
|
15674
|
+
},
|
|
15675
|
+
{
|
|
15676
|
+
name: "lastMethodCall",
|
|
15677
|
+
fieldType: "UAString",
|
|
15678
|
+
},
|
|
15679
|
+
{
|
|
15680
|
+
name: "lastMethodSessionId",
|
|
15681
|
+
fieldType: "NodeId",
|
|
15682
|
+
},
|
|
15683
|
+
{
|
|
15684
|
+
name: "lastMethodInputArguments",
|
|
15685
|
+
fieldType: "Argument",
|
|
15686
|
+
isArray: true
|
|
15687
|
+
},
|
|
15688
|
+
{
|
|
15689
|
+
name: "lastMethodOutputArguments",
|
|
15690
|
+
fieldType: "Argument",
|
|
15691
|
+
isArray: true
|
|
15267
15692
|
},
|
|
15268
15693
|
{
|
|
15269
15694
|
name: "lastMethodInputValues",
|
|
@@ -15281,7 +15706,7 @@ const schemaProgramDiagnostic2DataType = (0, node_opcua_factory_1.buildStructure
|
|
|
15281
15706
|
},
|
|
15282
15707
|
{
|
|
15283
15708
|
name: "lastMethodReturnStatus",
|
|
15284
|
-
fieldType: "
|
|
15709
|
+
fieldType: "StatusCode",
|
|
15285
15710
|
},
|
|
15286
15711
|
]
|
|
15287
15712
|
});
|
|
@@ -15300,7 +15725,7 @@ class ProgramDiagnostic2DataType extends node_opcua_extension_object_1.Extension
|
|
|
15300
15725
|
this.lastMethodInputValues = [];
|
|
15301
15726
|
this.lastMethodOutputValues = [];
|
|
15302
15727
|
this.lastMethodCallTime = new Date();
|
|
15303
|
-
this.lastMethodReturnStatus =
|
|
15728
|
+
this.lastMethodReturnStatus = node_opcua_status_code_1.StatusCodes.Good;
|
|
15304
15729
|
return;
|
|
15305
15730
|
}
|
|
15306
15731
|
const schema = ProgramDiagnostic2DataType.schema;
|
|
@@ -15328,7 +15753,7 @@ class ProgramDiagnostic2DataType extends node_opcua_extension_object_1.Extension
|
|
|
15328
15753
|
this.lastMethodInputValues = (0, node_opcua_factory_1.initialize_field_array)(schema.fields[8], options === null || options === void 0 ? void 0 : options.lastMethodInputValues);
|
|
15329
15754
|
this.lastMethodOutputValues = (0, node_opcua_factory_1.initialize_field_array)(schema.fields[9], options === null || options === void 0 ? void 0 : options.lastMethodOutputValues);
|
|
15330
15755
|
this.lastMethodCallTime = (0, node_opcua_factory_1.initialize_field)(schema.fields[10], options === null || options === void 0 ? void 0 : options.lastMethodCallTime);
|
|
15331
|
-
this.lastMethodReturnStatus =
|
|
15756
|
+
this.lastMethodReturnStatus = (0, node_opcua_factory_1.initialize_field)(schema.fields[11], options === null || options === void 0 ? void 0 : options.lastMethodReturnStatus);
|
|
15332
15757
|
}
|
|
15333
15758
|
static get schema() { return schemaProgramDiagnostic2DataType; }
|
|
15334
15759
|
encode(stream) {
|
|
@@ -15344,7 +15769,7 @@ class ProgramDiagnostic2DataType extends node_opcua_extension_object_1.Extension
|
|
|
15344
15769
|
(0, node_opcua_basic_types_1.encodeArray)(this.lastMethodInputValues, stream, node_opcua_variant_1.encodeVariant);
|
|
15345
15770
|
(0, node_opcua_basic_types_1.encodeArray)(this.lastMethodOutputValues, stream, node_opcua_variant_1.encodeVariant);
|
|
15346
15771
|
(0, node_opcua_basic_types_1.encodeDateTime)(this.lastMethodCallTime, stream);
|
|
15347
|
-
this.lastMethodReturnStatus
|
|
15772
|
+
(0, node_opcua_status_code_1.encodeStatusCode)(this.lastMethodReturnStatus, stream);
|
|
15348
15773
|
}
|
|
15349
15774
|
decode(stream) {
|
|
15350
15775
|
// call base class implementation first
|
|
@@ -15368,7 +15793,7 @@ class ProgramDiagnostic2DataType extends node_opcua_extension_object_1.Extension
|
|
|
15368
15793
|
this.lastMethodInputValues = (0, node_opcua_basic_types_1.decodeArray)(stream, node_opcua_variant_1.decodeVariant);
|
|
15369
15794
|
this.lastMethodOutputValues = (0, node_opcua_basic_types_1.decodeArray)(stream, node_opcua_variant_1.decodeVariant);
|
|
15370
15795
|
this.lastMethodCallTime = (0, node_opcua_basic_types_1.decodeDateTime)(stream, this.lastMethodCallTime);
|
|
15371
|
-
this.lastMethodReturnStatus.
|
|
15796
|
+
this.lastMethodReturnStatus = (0, node_opcua_status_code_1.decodeStatusCode)(stream, this.lastMethodReturnStatus);
|
|
15372
15797
|
}
|
|
15373
15798
|
get schema() { return schemaProgramDiagnostic2DataType; }
|
|
15374
15799
|
}
|
|
@@ -15397,6 +15822,66 @@ ProgramDiagnostic2DataType.schema.encodingDefaultXml = ProgramDiagnostic2DataTyp
|
|
|
15397
15822
|
ProgramDiagnostic2DataType.schema.encodingDefaultJson = ProgramDiagnostic2DataType.encodingDefaultJson;
|
|
15398
15823
|
(0, node_opcua_factory_1.registerClassDefinition)(ProgramDiagnostic2DataType.dataTypeNodeId, "ProgramDiagnostic2DataType", ProgramDiagnostic2DataType);
|
|
15399
15824
|
// --------------------------------------------------------------------------------------------
|
|
15825
|
+
const schemaStatusResult = (0, node_opcua_factory_1.buildStructuredType)({
|
|
15826
|
+
name: "StatusResult",
|
|
15827
|
+
baseType: "ExtensionObject",
|
|
15828
|
+
fields: [
|
|
15829
|
+
{
|
|
15830
|
+
name: "statusCode",
|
|
15831
|
+
fieldType: "StatusCode",
|
|
15832
|
+
},
|
|
15833
|
+
{
|
|
15834
|
+
name: "diagnosticInfo",
|
|
15835
|
+
fieldType: "DiagnosticInfo",
|
|
15836
|
+
},
|
|
15837
|
+
]
|
|
15838
|
+
});
|
|
15839
|
+
class StatusResult extends node_opcua_extension_object_1.ExtensionObject {
|
|
15840
|
+
constructor(options) {
|
|
15841
|
+
super(options);
|
|
15842
|
+
if (options === null) {
|
|
15843
|
+
this.statusCode = node_opcua_status_code_1.StatusCodes.Good;
|
|
15844
|
+
this.diagnosticInfo = null;
|
|
15845
|
+
return;
|
|
15846
|
+
}
|
|
15847
|
+
const schema = StatusResult.schema;
|
|
15848
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
15849
|
+
/* istanbul ignore next */
|
|
15850
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
15851
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
15852
|
+
}
|
|
15853
|
+
this.statusCode = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.statusCode);
|
|
15854
|
+
this.diagnosticInfo = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.diagnosticInfo);
|
|
15855
|
+
}
|
|
15856
|
+
static get schema() { return schemaStatusResult; }
|
|
15857
|
+
encode(stream) {
|
|
15858
|
+
/* NEEDED */ super.encode(stream);
|
|
15859
|
+
(0, node_opcua_status_code_1.encodeStatusCode)(this.statusCode, stream);
|
|
15860
|
+
(0, node_opcua_data_model_1.encodeDiagnosticInfo)(this.diagnosticInfo, stream);
|
|
15861
|
+
}
|
|
15862
|
+
decode(stream) {
|
|
15863
|
+
// call base class implementation first
|
|
15864
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
15865
|
+
this.statusCode = (0, node_opcua_status_code_1.decodeStatusCode)(stream, this.statusCode);
|
|
15866
|
+
this.diagnosticInfo = (0, node_opcua_data_model_1.decodeDiagnosticInfo)(stream, this.diagnosticInfo);
|
|
15867
|
+
}
|
|
15868
|
+
get schema() { return schemaStatusResult; }
|
|
15869
|
+
}
|
|
15870
|
+
exports.StatusResult = StatusResult;
|
|
15871
|
+
StatusResult.possibleFields = [
|
|
15872
|
+
"statusCode",
|
|
15873
|
+
"diagnosticInfo"
|
|
15874
|
+
];
|
|
15875
|
+
StatusResult.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(299, 0);
|
|
15876
|
+
StatusResult.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(301, 0);
|
|
15877
|
+
StatusResult.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(300, 0);
|
|
15878
|
+
StatusResult.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15371, 0);
|
|
15879
|
+
StatusResult.schema.dataTypeNodeId = StatusResult.dataTypeNodeId;
|
|
15880
|
+
StatusResult.schema.encodingDefaultBinary = StatusResult.encodingDefaultBinary;
|
|
15881
|
+
StatusResult.schema.encodingDefaultXml = StatusResult.encodingDefaultXml;
|
|
15882
|
+
StatusResult.schema.encodingDefaultJson = StatusResult.encodingDefaultJson;
|
|
15883
|
+
(0, node_opcua_factory_1.registerClassDefinition)(StatusResult.dataTypeNodeId, "StatusResult", StatusResult);
|
|
15884
|
+
// --------------------------------------------------------------------------------------------
|
|
15400
15885
|
const schemaProgramDiagnosticDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
15401
15886
|
name: "ProgramDiagnosticDataType",
|
|
15402
15887
|
baseType: "ExtensionObject",
|
|
@@ -16108,122 +16593,864 @@ class PubSubConnectionDataType extends node_opcua_extension_object_1.ExtensionOb
|
|
|
16108
16593
|
obj.decode(stream1);
|
|
16109
16594
|
return obj;
|
|
16110
16595
|
});
|
|
16111
|
-
this.readerGroups = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
16112
|
-
const obj = new ReaderGroupDataType(null);
|
|
16596
|
+
this.readerGroups = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
16597
|
+
const obj = new ReaderGroupDataType(null);
|
|
16598
|
+
obj.decode(stream1);
|
|
16599
|
+
return obj;
|
|
16600
|
+
});
|
|
16601
|
+
}
|
|
16602
|
+
get schema() { return schemaPubSubConnectionDataType; }
|
|
16603
|
+
}
|
|
16604
|
+
exports.PubSubConnectionDataType = PubSubConnectionDataType;
|
|
16605
|
+
PubSubConnectionDataType.possibleFields = [
|
|
16606
|
+
"name",
|
|
16607
|
+
"enabled",
|
|
16608
|
+
"publisherId",
|
|
16609
|
+
"transportProfileUri",
|
|
16610
|
+
"address",
|
|
16611
|
+
"connectionProperties",
|
|
16612
|
+
"transportSettings",
|
|
16613
|
+
"writerGroups",
|
|
16614
|
+
"readerGroups"
|
|
16615
|
+
];
|
|
16616
|
+
PubSubConnectionDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15617, 0);
|
|
16617
|
+
PubSubConnectionDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15694, 0);
|
|
16618
|
+
PubSubConnectionDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15992, 0);
|
|
16619
|
+
PubSubConnectionDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(16281, 0);
|
|
16620
|
+
PubSubConnectionDataType.schema.dataTypeNodeId = PubSubConnectionDataType.dataTypeNodeId;
|
|
16621
|
+
PubSubConnectionDataType.schema.encodingDefaultBinary = PubSubConnectionDataType.encodingDefaultBinary;
|
|
16622
|
+
PubSubConnectionDataType.schema.encodingDefaultXml = PubSubConnectionDataType.encodingDefaultXml;
|
|
16623
|
+
PubSubConnectionDataType.schema.encodingDefaultJson = PubSubConnectionDataType.encodingDefaultJson;
|
|
16624
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PubSubConnectionDataType.dataTypeNodeId, "PubSubConnectionDataType", PubSubConnectionDataType);
|
|
16625
|
+
// --------------------------------------------------------------------------------------------
|
|
16626
|
+
const schemaPubSubConfigurationDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
16627
|
+
name: "PubSubConfigurationDataType",
|
|
16628
|
+
baseType: "ExtensionObject",
|
|
16629
|
+
fields: [
|
|
16630
|
+
{
|
|
16631
|
+
name: "publishedDataSets",
|
|
16632
|
+
fieldType: "PublishedDataSetDataType",
|
|
16633
|
+
isArray: true
|
|
16634
|
+
},
|
|
16635
|
+
{
|
|
16636
|
+
name: "connections",
|
|
16637
|
+
fieldType: "PubSubConnectionDataType",
|
|
16638
|
+
isArray: true
|
|
16639
|
+
},
|
|
16640
|
+
{
|
|
16641
|
+
name: "enabled",
|
|
16642
|
+
fieldType: "UABoolean",
|
|
16643
|
+
},
|
|
16644
|
+
]
|
|
16645
|
+
});
|
|
16646
|
+
class PubSubConfigurationDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
16647
|
+
constructor(options) {
|
|
16648
|
+
super(options);
|
|
16649
|
+
if (options === null) {
|
|
16650
|
+
this.publishedDataSets = null; /* null array */
|
|
16651
|
+
this.connections = null; /* null array */
|
|
16652
|
+
this.enabled = false;
|
|
16653
|
+
return;
|
|
16654
|
+
}
|
|
16655
|
+
const schema = PubSubConfigurationDataType.schema;
|
|
16656
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
16657
|
+
/* istanbul ignore next */
|
|
16658
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
16659
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
16660
|
+
}
|
|
16661
|
+
this.publishedDataSets = []; // should default
|
|
16662
|
+
if (options.publishedDataSets) {
|
|
16663
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.publishedDataSets));
|
|
16664
|
+
this.publishedDataSets = options.publishedDataSets.map((e) => new PublishedDataSetDataType(e));
|
|
16665
|
+
}
|
|
16666
|
+
this.connections = []; // should default
|
|
16667
|
+
if (options.connections) {
|
|
16668
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.connections));
|
|
16669
|
+
this.connections = options.connections.map((e) => new PubSubConnectionDataType(e));
|
|
16670
|
+
}
|
|
16671
|
+
this.enabled = (0, node_opcua_factory_1.initialize_field)(schema.fields[2], options === null || options === void 0 ? void 0 : options.enabled);
|
|
16672
|
+
}
|
|
16673
|
+
static get schema() { return schemaPubSubConfigurationDataType; }
|
|
16674
|
+
encode(stream) {
|
|
16675
|
+
/* NEEDED */ super.encode(stream);
|
|
16676
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.publishedDataSets, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
16677
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.connections, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
16678
|
+
(0, node_opcua_basic_types_1.encodeUABoolean)(this.enabled, stream);
|
|
16679
|
+
}
|
|
16680
|
+
decode(stream) {
|
|
16681
|
+
// call base class implementation first
|
|
16682
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
16683
|
+
this.publishedDataSets = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
16684
|
+
const obj = new PublishedDataSetDataType(null);
|
|
16685
|
+
obj.decode(stream1);
|
|
16686
|
+
return obj;
|
|
16687
|
+
});
|
|
16688
|
+
this.connections = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
16689
|
+
const obj = new PubSubConnectionDataType(null);
|
|
16690
|
+
obj.decode(stream1);
|
|
16691
|
+
return obj;
|
|
16692
|
+
});
|
|
16693
|
+
this.enabled = (0, node_opcua_basic_types_1.decodeUABoolean)(stream, this.enabled);
|
|
16694
|
+
}
|
|
16695
|
+
get schema() { return schemaPubSubConfigurationDataType; }
|
|
16696
|
+
}
|
|
16697
|
+
exports.PubSubConfigurationDataType = PubSubConfigurationDataType;
|
|
16698
|
+
PubSubConfigurationDataType.possibleFields = [
|
|
16699
|
+
"publishedDataSets",
|
|
16700
|
+
"connections",
|
|
16701
|
+
"enabled"
|
|
16702
|
+
];
|
|
16703
|
+
PubSubConfigurationDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15530, 0);
|
|
16704
|
+
PubSubConfigurationDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(21154, 0);
|
|
16705
|
+
PubSubConfigurationDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(21178, 0);
|
|
16706
|
+
PubSubConfigurationDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(21202, 0);
|
|
16707
|
+
PubSubConfigurationDataType.schema.dataTypeNodeId = PubSubConfigurationDataType.dataTypeNodeId;
|
|
16708
|
+
PubSubConfigurationDataType.schema.encodingDefaultBinary = PubSubConfigurationDataType.encodingDefaultBinary;
|
|
16709
|
+
PubSubConfigurationDataType.schema.encodingDefaultXml = PubSubConfigurationDataType.encodingDefaultXml;
|
|
16710
|
+
PubSubConfigurationDataType.schema.encodingDefaultJson = PubSubConfigurationDataType.encodingDefaultJson;
|
|
16711
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PubSubConfigurationDataType.dataTypeNodeId, "PubSubConfigurationDataType", PubSubConfigurationDataType);
|
|
16712
|
+
// --------------------------------------------------------------------------------------------
|
|
16713
|
+
const schemaSubscribedDataSetDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
16714
|
+
name: "SubscribedDataSetDataType",
|
|
16715
|
+
baseType: "ExtensionObject",
|
|
16716
|
+
fields: []
|
|
16717
|
+
});
|
|
16718
|
+
class SubscribedDataSetDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
16719
|
+
constructor(options) {
|
|
16720
|
+
super(options);
|
|
16721
|
+
if (options === null) {
|
|
16722
|
+
return;
|
|
16723
|
+
}
|
|
16724
|
+
const schema = SubscribedDataSetDataType.schema;
|
|
16725
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
16726
|
+
/* istanbul ignore next */
|
|
16727
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
16728
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
16729
|
+
}
|
|
16730
|
+
}
|
|
16731
|
+
static get schema() { return schemaSubscribedDataSetDataType; }
|
|
16732
|
+
encode(stream) {
|
|
16733
|
+
/* NEEDED */ super.encode(stream);
|
|
16734
|
+
}
|
|
16735
|
+
decode(stream) {
|
|
16736
|
+
// call base class implementation first
|
|
16737
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
16738
|
+
}
|
|
16739
|
+
get schema() { return schemaSubscribedDataSetDataType; }
|
|
16740
|
+
}
|
|
16741
|
+
exports.SubscribedDataSetDataType = SubscribedDataSetDataType;
|
|
16742
|
+
SubscribedDataSetDataType.possibleFields = [];
|
|
16743
|
+
SubscribedDataSetDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15630, 0);
|
|
16744
|
+
SubscribedDataSetDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15707, 0);
|
|
16745
|
+
SubscribedDataSetDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(16010, 0);
|
|
16746
|
+
SubscribedDataSetDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(16308, 0);
|
|
16747
|
+
SubscribedDataSetDataType.schema.dataTypeNodeId = SubscribedDataSetDataType.dataTypeNodeId;
|
|
16748
|
+
SubscribedDataSetDataType.schema.encodingDefaultBinary = SubscribedDataSetDataType.encodingDefaultBinary;
|
|
16749
|
+
SubscribedDataSetDataType.schema.encodingDefaultXml = SubscribedDataSetDataType.encodingDefaultXml;
|
|
16750
|
+
SubscribedDataSetDataType.schema.encodingDefaultJson = SubscribedDataSetDataType.encodingDefaultJson;
|
|
16751
|
+
(0, node_opcua_factory_1.registerClassDefinition)(SubscribedDataSetDataType.dataTypeNodeId, "SubscribedDataSetDataType", SubscribedDataSetDataType);
|
|
16752
|
+
// --------------------------------------------------------------------------------------------
|
|
16753
|
+
const schemaStandaloneSubscribedDataSetDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
16754
|
+
name: "StandaloneSubscribedDataSetDataType",
|
|
16755
|
+
baseType: "SubscribedDataSetDataType",
|
|
16756
|
+
fields: [
|
|
16757
|
+
{
|
|
16758
|
+
name: "name",
|
|
16759
|
+
fieldType: "UAString",
|
|
16760
|
+
},
|
|
16761
|
+
{
|
|
16762
|
+
name: "dataSetFolder",
|
|
16763
|
+
fieldType: "UAString",
|
|
16764
|
+
isArray: true
|
|
16765
|
+
},
|
|
16766
|
+
{
|
|
16767
|
+
name: "dataSetMetaData",
|
|
16768
|
+
fieldType: "DataSetMetaDataType",
|
|
16769
|
+
},
|
|
16770
|
+
{
|
|
16771
|
+
name: "subscribedDataSet",
|
|
16772
|
+
fieldType: "ExtensionObject",
|
|
16773
|
+
},
|
|
16774
|
+
]
|
|
16775
|
+
});
|
|
16776
|
+
class StandaloneSubscribedDataSetDataType extends SubscribedDataSetDataType {
|
|
16777
|
+
constructor(options) {
|
|
16778
|
+
super(options);
|
|
16779
|
+
if (options === null) {
|
|
16780
|
+
this.name = null;
|
|
16781
|
+
this.dataSetFolder = [];
|
|
16782
|
+
this.dataSetMetaData = new DataSetMetaDataType(null);
|
|
16783
|
+
this.subscribedDataSet = null;
|
|
16784
|
+
return;
|
|
16785
|
+
}
|
|
16786
|
+
const schema = StandaloneSubscribedDataSetDataType.schema;
|
|
16787
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
16788
|
+
/* istanbul ignore next */
|
|
16789
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
16790
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
16791
|
+
}
|
|
16792
|
+
this.name = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.name);
|
|
16793
|
+
this.dataSetFolder = (0, node_opcua_factory_1.initialize_field_array)(schema.fields[1], options === null || options === void 0 ? void 0 : options.dataSetFolder);
|
|
16794
|
+
this.dataSetMetaData = new DataSetMetaDataType(options.dataSetMetaData);
|
|
16795
|
+
this.subscribedDataSet = (0, node_opcua_factory_1.initialize_field)(schema.fields[3], options === null || options === void 0 ? void 0 : options.subscribedDataSet);
|
|
16796
|
+
}
|
|
16797
|
+
static get schema() { return schemaStandaloneSubscribedDataSetDataType; }
|
|
16798
|
+
encode(stream) {
|
|
16799
|
+
/* NEEDED */ super.encode(stream);
|
|
16800
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.name, stream);
|
|
16801
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.dataSetFolder, stream, node_opcua_basic_types_1.encodeUAString);
|
|
16802
|
+
this.dataSetMetaData.encode(stream);
|
|
16803
|
+
(0, node_opcua_extension_object_1.encodeExtensionObject)(this.subscribedDataSet, stream);
|
|
16804
|
+
}
|
|
16805
|
+
decode(stream) {
|
|
16806
|
+
// call base class implementation first
|
|
16807
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
16808
|
+
this.name = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.name);
|
|
16809
|
+
this.dataSetFolder = (0, node_opcua_basic_types_1.decodeArray)(stream, node_opcua_basic_types_1.decodeUAString);
|
|
16810
|
+
this.dataSetMetaData.decode(stream);
|
|
16811
|
+
this.subscribedDataSet = (0, node_opcua_extension_object_1.decodeExtensionObject)(stream, this.subscribedDataSet);
|
|
16812
|
+
}
|
|
16813
|
+
get schema() { return schemaStandaloneSubscribedDataSetDataType; }
|
|
16814
|
+
}
|
|
16815
|
+
exports.StandaloneSubscribedDataSetDataType = StandaloneSubscribedDataSetDataType;
|
|
16816
|
+
StandaloneSubscribedDataSetDataType.possibleFields = [
|
|
16817
|
+
"name",
|
|
16818
|
+
"dataSetFolder",
|
|
16819
|
+
"dataSetMetaData",
|
|
16820
|
+
"subscribedDataSet"
|
|
16821
|
+
];
|
|
16822
|
+
StandaloneSubscribedDataSetDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23600, 0);
|
|
16823
|
+
StandaloneSubscribedDataSetDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23852, 0);
|
|
16824
|
+
StandaloneSubscribedDataSetDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23920, 0);
|
|
16825
|
+
StandaloneSubscribedDataSetDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23988, 0);
|
|
16826
|
+
StandaloneSubscribedDataSetDataType.schema.dataTypeNodeId = StandaloneSubscribedDataSetDataType.dataTypeNodeId;
|
|
16827
|
+
StandaloneSubscribedDataSetDataType.schema.encodingDefaultBinary = StandaloneSubscribedDataSetDataType.encodingDefaultBinary;
|
|
16828
|
+
StandaloneSubscribedDataSetDataType.schema.encodingDefaultXml = StandaloneSubscribedDataSetDataType.encodingDefaultXml;
|
|
16829
|
+
StandaloneSubscribedDataSetDataType.schema.encodingDefaultJson = StandaloneSubscribedDataSetDataType.encodingDefaultJson;
|
|
16830
|
+
(0, node_opcua_factory_1.registerClassDefinition)(StandaloneSubscribedDataSetDataType.dataTypeNodeId, "StandaloneSubscribedDataSetDataType", StandaloneSubscribedDataSetDataType);
|
|
16831
|
+
// --------------------------------------------------------------------------------------------
|
|
16832
|
+
const schemaSecurityGroupDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
16833
|
+
name: "SecurityGroupDataType",
|
|
16834
|
+
baseType: "ExtensionObject",
|
|
16835
|
+
fields: [
|
|
16836
|
+
{
|
|
16837
|
+
name: "name",
|
|
16838
|
+
fieldType: "UAString",
|
|
16839
|
+
},
|
|
16840
|
+
{
|
|
16841
|
+
name: "securityGroupFolder",
|
|
16842
|
+
fieldType: "UAString",
|
|
16843
|
+
isArray: true
|
|
16844
|
+
},
|
|
16845
|
+
{
|
|
16846
|
+
name: "keyLifetime",
|
|
16847
|
+
fieldType: "Double",
|
|
16848
|
+
},
|
|
16849
|
+
{
|
|
16850
|
+
name: "securityPolicyUri",
|
|
16851
|
+
fieldType: "UAString",
|
|
16852
|
+
},
|
|
16853
|
+
{
|
|
16854
|
+
name: "maxFutureKeyCount",
|
|
16855
|
+
fieldType: "UInt32",
|
|
16856
|
+
},
|
|
16857
|
+
{
|
|
16858
|
+
name: "maxPastKeyCount",
|
|
16859
|
+
fieldType: "UInt32",
|
|
16860
|
+
},
|
|
16861
|
+
{
|
|
16862
|
+
name: "securityGroupId",
|
|
16863
|
+
fieldType: "UAString",
|
|
16864
|
+
},
|
|
16865
|
+
{
|
|
16866
|
+
name: "rolePermissions",
|
|
16867
|
+
fieldType: "RolePermissionType",
|
|
16868
|
+
isArray: true
|
|
16869
|
+
},
|
|
16870
|
+
{
|
|
16871
|
+
name: "groupProperties",
|
|
16872
|
+
fieldType: "KeyValuePair",
|
|
16873
|
+
isArray: true
|
|
16874
|
+
},
|
|
16875
|
+
]
|
|
16876
|
+
});
|
|
16877
|
+
class SecurityGroupDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
16878
|
+
constructor(options) {
|
|
16879
|
+
super(options);
|
|
16880
|
+
if (options === null) {
|
|
16881
|
+
this.name = null;
|
|
16882
|
+
this.securityGroupFolder = [];
|
|
16883
|
+
this.keyLifetime = 0;
|
|
16884
|
+
this.securityPolicyUri = null;
|
|
16885
|
+
this.maxFutureKeyCount = 0;
|
|
16886
|
+
this.maxPastKeyCount = 0;
|
|
16887
|
+
this.securityGroupId = null;
|
|
16888
|
+
this.rolePermissions = null; /* null array */
|
|
16889
|
+
this.groupProperties = null; /* null array */
|
|
16890
|
+
return;
|
|
16891
|
+
}
|
|
16892
|
+
const schema = SecurityGroupDataType.schema;
|
|
16893
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
16894
|
+
/* istanbul ignore next */
|
|
16895
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
16896
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
16897
|
+
}
|
|
16898
|
+
this.name = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.name);
|
|
16899
|
+
this.securityGroupFolder = (0, node_opcua_factory_1.initialize_field_array)(schema.fields[1], options === null || options === void 0 ? void 0 : options.securityGroupFolder);
|
|
16900
|
+
this.keyLifetime = (0, node_opcua_factory_1.initialize_field)(schema.fields[2], options === null || options === void 0 ? void 0 : options.keyLifetime);
|
|
16901
|
+
this.securityPolicyUri = (0, node_opcua_factory_1.initialize_field)(schema.fields[3], options === null || options === void 0 ? void 0 : options.securityPolicyUri);
|
|
16902
|
+
this.maxFutureKeyCount = (0, node_opcua_factory_1.initialize_field)(schema.fields[4], options === null || options === void 0 ? void 0 : options.maxFutureKeyCount);
|
|
16903
|
+
this.maxPastKeyCount = (0, node_opcua_factory_1.initialize_field)(schema.fields[5], options === null || options === void 0 ? void 0 : options.maxPastKeyCount);
|
|
16904
|
+
this.securityGroupId = (0, node_opcua_factory_1.initialize_field)(schema.fields[6], options === null || options === void 0 ? void 0 : options.securityGroupId);
|
|
16905
|
+
this.rolePermissions = []; // should default
|
|
16906
|
+
if (options.rolePermissions) {
|
|
16907
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.rolePermissions));
|
|
16908
|
+
this.rolePermissions = options.rolePermissions.map((e) => new RolePermissionType(e));
|
|
16909
|
+
}
|
|
16910
|
+
this.groupProperties = []; // should default
|
|
16911
|
+
if (options.groupProperties) {
|
|
16912
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.groupProperties));
|
|
16913
|
+
this.groupProperties = options.groupProperties.map((e) => new KeyValuePair(e));
|
|
16914
|
+
}
|
|
16915
|
+
}
|
|
16916
|
+
static get schema() { return schemaSecurityGroupDataType; }
|
|
16917
|
+
encode(stream) {
|
|
16918
|
+
/* NEEDED */ super.encode(stream);
|
|
16919
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.name, stream);
|
|
16920
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.securityGroupFolder, stream, node_opcua_basic_types_1.encodeUAString);
|
|
16921
|
+
(0, node_opcua_basic_types_1.encodeDouble)(this.keyLifetime, stream);
|
|
16922
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.securityPolicyUri, stream);
|
|
16923
|
+
(0, node_opcua_basic_types_1.encodeUInt32)(this.maxFutureKeyCount, stream);
|
|
16924
|
+
(0, node_opcua_basic_types_1.encodeUInt32)(this.maxPastKeyCount, stream);
|
|
16925
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.securityGroupId, stream);
|
|
16926
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.rolePermissions, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
16927
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.groupProperties, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
16928
|
+
}
|
|
16929
|
+
decode(stream) {
|
|
16930
|
+
// call base class implementation first
|
|
16931
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
16932
|
+
this.name = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.name);
|
|
16933
|
+
this.securityGroupFolder = (0, node_opcua_basic_types_1.decodeArray)(stream, node_opcua_basic_types_1.decodeUAString);
|
|
16934
|
+
this.keyLifetime = (0, node_opcua_basic_types_1.decodeDouble)(stream, this.keyLifetime);
|
|
16935
|
+
this.securityPolicyUri = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.securityPolicyUri);
|
|
16936
|
+
this.maxFutureKeyCount = (0, node_opcua_basic_types_1.decodeUInt32)(stream, this.maxFutureKeyCount);
|
|
16937
|
+
this.maxPastKeyCount = (0, node_opcua_basic_types_1.decodeUInt32)(stream, this.maxPastKeyCount);
|
|
16938
|
+
this.securityGroupId = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.securityGroupId);
|
|
16939
|
+
this.rolePermissions = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
16940
|
+
const obj = new RolePermissionType(null);
|
|
16941
|
+
obj.decode(stream1);
|
|
16942
|
+
return obj;
|
|
16943
|
+
});
|
|
16944
|
+
this.groupProperties = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
16945
|
+
const obj = new KeyValuePair(null);
|
|
16946
|
+
obj.decode(stream1);
|
|
16947
|
+
return obj;
|
|
16948
|
+
});
|
|
16949
|
+
}
|
|
16950
|
+
get schema() { return schemaSecurityGroupDataType; }
|
|
16951
|
+
}
|
|
16952
|
+
exports.SecurityGroupDataType = SecurityGroupDataType;
|
|
16953
|
+
SecurityGroupDataType.possibleFields = [
|
|
16954
|
+
"name",
|
|
16955
|
+
"securityGroupFolder",
|
|
16956
|
+
"keyLifetime",
|
|
16957
|
+
"securityPolicyUri",
|
|
16958
|
+
"maxFutureKeyCount",
|
|
16959
|
+
"maxPastKeyCount",
|
|
16960
|
+
"securityGroupId",
|
|
16961
|
+
"rolePermissions",
|
|
16962
|
+
"groupProperties"
|
|
16963
|
+
];
|
|
16964
|
+
SecurityGroupDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23601, 0);
|
|
16965
|
+
SecurityGroupDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23853, 0);
|
|
16966
|
+
SecurityGroupDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23921, 0);
|
|
16967
|
+
SecurityGroupDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23989, 0);
|
|
16968
|
+
SecurityGroupDataType.schema.dataTypeNodeId = SecurityGroupDataType.dataTypeNodeId;
|
|
16969
|
+
SecurityGroupDataType.schema.encodingDefaultBinary = SecurityGroupDataType.encodingDefaultBinary;
|
|
16970
|
+
SecurityGroupDataType.schema.encodingDefaultXml = SecurityGroupDataType.encodingDefaultXml;
|
|
16971
|
+
SecurityGroupDataType.schema.encodingDefaultJson = SecurityGroupDataType.encodingDefaultJson;
|
|
16972
|
+
(0, node_opcua_factory_1.registerClassDefinition)(SecurityGroupDataType.dataTypeNodeId, "SecurityGroupDataType", SecurityGroupDataType);
|
|
16973
|
+
// --------------------------------------------------------------------------------------------
|
|
16974
|
+
const schemaPubSubKeyPushTargetDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
16975
|
+
name: "PubSubKeyPushTargetDataType",
|
|
16976
|
+
baseType: "ExtensionObject",
|
|
16977
|
+
fields: [
|
|
16978
|
+
{
|
|
16979
|
+
name: "applicationUri",
|
|
16980
|
+
fieldType: "UAString",
|
|
16981
|
+
},
|
|
16982
|
+
{
|
|
16983
|
+
name: "pushTargetFolder",
|
|
16984
|
+
fieldType: "UAString",
|
|
16985
|
+
isArray: true
|
|
16986
|
+
},
|
|
16987
|
+
{
|
|
16988
|
+
name: "endpointUrl",
|
|
16989
|
+
fieldType: "UAString",
|
|
16990
|
+
},
|
|
16991
|
+
{
|
|
16992
|
+
name: "securityPolicyUri",
|
|
16993
|
+
fieldType: "UAString",
|
|
16994
|
+
},
|
|
16995
|
+
{
|
|
16996
|
+
name: "userTokenType",
|
|
16997
|
+
fieldType: "UserTokenPolicy",
|
|
16998
|
+
},
|
|
16999
|
+
{
|
|
17000
|
+
name: "requestedKeyCount",
|
|
17001
|
+
fieldType: "UInt16",
|
|
17002
|
+
},
|
|
17003
|
+
{
|
|
17004
|
+
name: "retryInterval",
|
|
17005
|
+
fieldType: "Double",
|
|
17006
|
+
},
|
|
17007
|
+
{
|
|
17008
|
+
name: "pushTargetProperties",
|
|
17009
|
+
fieldType: "KeyValuePair",
|
|
17010
|
+
isArray: true
|
|
17011
|
+
},
|
|
17012
|
+
{
|
|
17013
|
+
name: "securityGroups",
|
|
17014
|
+
fieldType: "UAString",
|
|
17015
|
+
isArray: true
|
|
17016
|
+
},
|
|
17017
|
+
]
|
|
17018
|
+
});
|
|
17019
|
+
class PubSubKeyPushTargetDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
17020
|
+
constructor(options) {
|
|
17021
|
+
super(options);
|
|
17022
|
+
if (options === null) {
|
|
17023
|
+
this.applicationUri = null;
|
|
17024
|
+
this.pushTargetFolder = [];
|
|
17025
|
+
this.endpointUrl = null;
|
|
17026
|
+
this.securityPolicyUri = null;
|
|
17027
|
+
this.userTokenType = new UserTokenPolicy(null);
|
|
17028
|
+
this.requestedKeyCount = 0;
|
|
17029
|
+
this.retryInterval = 0;
|
|
17030
|
+
this.pushTargetProperties = null; /* null array */
|
|
17031
|
+
this.securityGroups = [];
|
|
17032
|
+
return;
|
|
17033
|
+
}
|
|
17034
|
+
const schema = PubSubKeyPushTargetDataType.schema;
|
|
17035
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
17036
|
+
/* istanbul ignore next */
|
|
17037
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
17038
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
17039
|
+
}
|
|
17040
|
+
this.applicationUri = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.applicationUri);
|
|
17041
|
+
this.pushTargetFolder = (0, node_opcua_factory_1.initialize_field_array)(schema.fields[1], options === null || options === void 0 ? void 0 : options.pushTargetFolder);
|
|
17042
|
+
this.endpointUrl = (0, node_opcua_factory_1.initialize_field)(schema.fields[2], options === null || options === void 0 ? void 0 : options.endpointUrl);
|
|
17043
|
+
this.securityPolicyUri = (0, node_opcua_factory_1.initialize_field)(schema.fields[3], options === null || options === void 0 ? void 0 : options.securityPolicyUri);
|
|
17044
|
+
this.userTokenType = new UserTokenPolicy(options.userTokenType);
|
|
17045
|
+
this.requestedKeyCount = (0, node_opcua_factory_1.initialize_field)(schema.fields[5], options === null || options === void 0 ? void 0 : options.requestedKeyCount);
|
|
17046
|
+
this.retryInterval = (0, node_opcua_factory_1.initialize_field)(schema.fields[6], options === null || options === void 0 ? void 0 : options.retryInterval);
|
|
17047
|
+
this.pushTargetProperties = []; // should default
|
|
17048
|
+
if (options.pushTargetProperties) {
|
|
17049
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.pushTargetProperties));
|
|
17050
|
+
this.pushTargetProperties = options.pushTargetProperties.map((e) => new KeyValuePair(e));
|
|
17051
|
+
}
|
|
17052
|
+
this.securityGroups = (0, node_opcua_factory_1.initialize_field_array)(schema.fields[8], options === null || options === void 0 ? void 0 : options.securityGroups);
|
|
17053
|
+
}
|
|
17054
|
+
static get schema() { return schemaPubSubKeyPushTargetDataType; }
|
|
17055
|
+
encode(stream) {
|
|
17056
|
+
/* NEEDED */ super.encode(stream);
|
|
17057
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.applicationUri, stream);
|
|
17058
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.pushTargetFolder, stream, node_opcua_basic_types_1.encodeUAString);
|
|
17059
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.endpointUrl, stream);
|
|
17060
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.securityPolicyUri, stream);
|
|
17061
|
+
this.userTokenType.encode(stream);
|
|
17062
|
+
(0, node_opcua_basic_types_1.encodeUInt16)(this.requestedKeyCount, stream);
|
|
17063
|
+
(0, node_opcua_basic_types_1.encodeDouble)(this.retryInterval, stream);
|
|
17064
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.pushTargetProperties, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
17065
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.securityGroups, stream, node_opcua_basic_types_1.encodeUAString);
|
|
17066
|
+
}
|
|
17067
|
+
decode(stream) {
|
|
17068
|
+
// call base class implementation first
|
|
17069
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
17070
|
+
this.applicationUri = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.applicationUri);
|
|
17071
|
+
this.pushTargetFolder = (0, node_opcua_basic_types_1.decodeArray)(stream, node_opcua_basic_types_1.decodeUAString);
|
|
17072
|
+
this.endpointUrl = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.endpointUrl);
|
|
17073
|
+
this.securityPolicyUri = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.securityPolicyUri);
|
|
17074
|
+
this.userTokenType.decode(stream);
|
|
17075
|
+
this.requestedKeyCount = (0, node_opcua_basic_types_1.decodeUInt16)(stream, this.requestedKeyCount);
|
|
17076
|
+
this.retryInterval = (0, node_opcua_basic_types_1.decodeDouble)(stream, this.retryInterval);
|
|
17077
|
+
this.pushTargetProperties = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
17078
|
+
const obj = new KeyValuePair(null);
|
|
17079
|
+
obj.decode(stream1);
|
|
17080
|
+
return obj;
|
|
17081
|
+
});
|
|
17082
|
+
this.securityGroups = (0, node_opcua_basic_types_1.decodeArray)(stream, node_opcua_basic_types_1.decodeUAString);
|
|
17083
|
+
}
|
|
17084
|
+
get schema() { return schemaPubSubKeyPushTargetDataType; }
|
|
17085
|
+
}
|
|
17086
|
+
exports.PubSubKeyPushTargetDataType = PubSubKeyPushTargetDataType;
|
|
17087
|
+
PubSubKeyPushTargetDataType.possibleFields = [
|
|
17088
|
+
"applicationUri",
|
|
17089
|
+
"pushTargetFolder",
|
|
17090
|
+
"endpointUrl",
|
|
17091
|
+
"securityPolicyUri",
|
|
17092
|
+
"userTokenType",
|
|
17093
|
+
"requestedKeyCount",
|
|
17094
|
+
"retryInterval",
|
|
17095
|
+
"pushTargetProperties",
|
|
17096
|
+
"securityGroups"
|
|
17097
|
+
];
|
|
17098
|
+
PubSubKeyPushTargetDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25270, 0);
|
|
17099
|
+
PubSubKeyPushTargetDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25530, 0);
|
|
17100
|
+
PubSubKeyPushTargetDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25546, 0);
|
|
17101
|
+
PubSubKeyPushTargetDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25562, 0);
|
|
17102
|
+
PubSubKeyPushTargetDataType.schema.dataTypeNodeId = PubSubKeyPushTargetDataType.dataTypeNodeId;
|
|
17103
|
+
PubSubKeyPushTargetDataType.schema.encodingDefaultBinary = PubSubKeyPushTargetDataType.encodingDefaultBinary;
|
|
17104
|
+
PubSubKeyPushTargetDataType.schema.encodingDefaultXml = PubSubKeyPushTargetDataType.encodingDefaultXml;
|
|
17105
|
+
PubSubKeyPushTargetDataType.schema.encodingDefaultJson = PubSubKeyPushTargetDataType.encodingDefaultJson;
|
|
17106
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PubSubKeyPushTargetDataType.dataTypeNodeId, "PubSubKeyPushTargetDataType", PubSubKeyPushTargetDataType);
|
|
17107
|
+
// --------------------------------------------------------------------------------------------
|
|
17108
|
+
const schemaPubSubConfiguration2DataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
17109
|
+
name: "PubSubConfiguration2DataType",
|
|
17110
|
+
baseType: "PubSubConfigurationDataType",
|
|
17111
|
+
fields: [
|
|
17112
|
+
{
|
|
17113
|
+
name: "subscribedDataSets",
|
|
17114
|
+
fieldType: "StandaloneSubscribedDataSetDataType",
|
|
17115
|
+
isArray: true
|
|
17116
|
+
},
|
|
17117
|
+
{
|
|
17118
|
+
name: "dataSetClasses",
|
|
17119
|
+
fieldType: "DataSetMetaDataType",
|
|
17120
|
+
isArray: true
|
|
17121
|
+
},
|
|
17122
|
+
{
|
|
17123
|
+
name: "defaultSecurityKeyServices",
|
|
17124
|
+
fieldType: "EndpointDescription",
|
|
17125
|
+
isArray: true
|
|
17126
|
+
},
|
|
17127
|
+
{
|
|
17128
|
+
name: "securityGroups",
|
|
17129
|
+
fieldType: "SecurityGroupDataType",
|
|
17130
|
+
isArray: true
|
|
17131
|
+
},
|
|
17132
|
+
{
|
|
17133
|
+
name: "pubSubKeyPushTargets",
|
|
17134
|
+
fieldType: "PubSubKeyPushTargetDataType",
|
|
17135
|
+
isArray: true
|
|
17136
|
+
},
|
|
17137
|
+
{
|
|
17138
|
+
name: "configurationVersion",
|
|
17139
|
+
fieldType: "UInt32",
|
|
17140
|
+
},
|
|
17141
|
+
{
|
|
17142
|
+
name: "configurationProperties",
|
|
17143
|
+
fieldType: "KeyValuePair",
|
|
17144
|
+
isArray: true
|
|
17145
|
+
},
|
|
17146
|
+
]
|
|
17147
|
+
});
|
|
17148
|
+
class PubSubConfiguration2DataType extends PubSubConfigurationDataType {
|
|
17149
|
+
constructor(options) {
|
|
17150
|
+
super(options);
|
|
17151
|
+
if (options === null) {
|
|
17152
|
+
this.subscribedDataSets = null; /* null array */
|
|
17153
|
+
this.dataSetClasses = null; /* null array */
|
|
17154
|
+
this.defaultSecurityKeyServices = null; /* null array */
|
|
17155
|
+
this.securityGroups = null; /* null array */
|
|
17156
|
+
this.pubSubKeyPushTargets = null; /* null array */
|
|
17157
|
+
this.configurationVersion = 0;
|
|
17158
|
+
this.configurationProperties = null; /* null array */
|
|
17159
|
+
return;
|
|
17160
|
+
}
|
|
17161
|
+
const schema = PubSubConfiguration2DataType.schema;
|
|
17162
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
17163
|
+
/* istanbul ignore next */
|
|
17164
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
17165
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
17166
|
+
}
|
|
17167
|
+
this.subscribedDataSets = []; // should default
|
|
17168
|
+
if (options.subscribedDataSets) {
|
|
17169
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.subscribedDataSets));
|
|
17170
|
+
this.subscribedDataSets = options.subscribedDataSets.map((e) => new StandaloneSubscribedDataSetDataType(e));
|
|
17171
|
+
}
|
|
17172
|
+
this.dataSetClasses = []; // should default
|
|
17173
|
+
if (options.dataSetClasses) {
|
|
17174
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.dataSetClasses));
|
|
17175
|
+
this.dataSetClasses = options.dataSetClasses.map((e) => new DataSetMetaDataType(e));
|
|
17176
|
+
}
|
|
17177
|
+
this.defaultSecurityKeyServices = []; // should default
|
|
17178
|
+
if (options.defaultSecurityKeyServices) {
|
|
17179
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.defaultSecurityKeyServices));
|
|
17180
|
+
this.defaultSecurityKeyServices = options.defaultSecurityKeyServices.map((e) => new EndpointDescription(e));
|
|
17181
|
+
}
|
|
17182
|
+
this.securityGroups = []; // should default
|
|
17183
|
+
if (options.securityGroups) {
|
|
17184
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.securityGroups));
|
|
17185
|
+
this.securityGroups = options.securityGroups.map((e) => new SecurityGroupDataType(e));
|
|
17186
|
+
}
|
|
17187
|
+
this.pubSubKeyPushTargets = []; // should default
|
|
17188
|
+
if (options.pubSubKeyPushTargets) {
|
|
17189
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.pubSubKeyPushTargets));
|
|
17190
|
+
this.pubSubKeyPushTargets = options.pubSubKeyPushTargets.map((e) => new PubSubKeyPushTargetDataType(e));
|
|
17191
|
+
}
|
|
17192
|
+
this.configurationVersion = (0, node_opcua_factory_1.initialize_field)(schema.fields[5], options === null || options === void 0 ? void 0 : options.configurationVersion);
|
|
17193
|
+
this.configurationProperties = []; // should default
|
|
17194
|
+
if (options.configurationProperties) {
|
|
17195
|
+
(0, node_opcua_assert_1.assert)(Array.isArray(options.configurationProperties));
|
|
17196
|
+
this.configurationProperties = options.configurationProperties.map((e) => new KeyValuePair(e));
|
|
17197
|
+
}
|
|
17198
|
+
}
|
|
17199
|
+
static get schema() { return schemaPubSubConfiguration2DataType; }
|
|
17200
|
+
encode(stream) {
|
|
17201
|
+
/* NEEDED */ super.encode(stream);
|
|
17202
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.subscribedDataSets, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
17203
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.dataSetClasses, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
17204
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.defaultSecurityKeyServices, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
17205
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.securityGroups, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
17206
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.pubSubKeyPushTargets, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
17207
|
+
(0, node_opcua_basic_types_1.encodeUInt32)(this.configurationVersion, stream);
|
|
17208
|
+
(0, node_opcua_basic_types_1.encodeArray)(this.configurationProperties, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
17209
|
+
}
|
|
17210
|
+
decode(stream) {
|
|
17211
|
+
// call base class implementation first
|
|
17212
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
17213
|
+
this.subscribedDataSets = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
17214
|
+
const obj = new StandaloneSubscribedDataSetDataType(null);
|
|
17215
|
+
obj.decode(stream1);
|
|
17216
|
+
return obj;
|
|
17217
|
+
});
|
|
17218
|
+
this.dataSetClasses = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
17219
|
+
const obj = new DataSetMetaDataType(null);
|
|
17220
|
+
obj.decode(stream1);
|
|
17221
|
+
return obj;
|
|
17222
|
+
});
|
|
17223
|
+
this.defaultSecurityKeyServices = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
17224
|
+
const obj = new EndpointDescription(null);
|
|
17225
|
+
obj.decode(stream1);
|
|
17226
|
+
return obj;
|
|
17227
|
+
});
|
|
17228
|
+
this.securityGroups = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
17229
|
+
const obj = new SecurityGroupDataType(null);
|
|
17230
|
+
obj.decode(stream1);
|
|
17231
|
+
return obj;
|
|
17232
|
+
});
|
|
17233
|
+
this.pubSubKeyPushTargets = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
17234
|
+
const obj = new PubSubKeyPushTargetDataType(null);
|
|
17235
|
+
obj.decode(stream1);
|
|
17236
|
+
return obj;
|
|
17237
|
+
});
|
|
17238
|
+
this.configurationVersion = (0, node_opcua_basic_types_1.decodeUInt32)(stream, this.configurationVersion);
|
|
17239
|
+
this.configurationProperties = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
17240
|
+
const obj = new KeyValuePair(null);
|
|
16113
17241
|
obj.decode(stream1);
|
|
16114
17242
|
return obj;
|
|
16115
17243
|
});
|
|
16116
17244
|
}
|
|
16117
|
-
get schema() { return
|
|
17245
|
+
get schema() { return schemaPubSubConfiguration2DataType; }
|
|
17246
|
+
}
|
|
17247
|
+
exports.PubSubConfiguration2DataType = PubSubConfiguration2DataType;
|
|
17248
|
+
PubSubConfiguration2DataType.possibleFields = [
|
|
17249
|
+
"subscribedDataSets",
|
|
17250
|
+
"dataSetClasses",
|
|
17251
|
+
"defaultSecurityKeyServices",
|
|
17252
|
+
"securityGroups",
|
|
17253
|
+
"pubSubKeyPushTargets",
|
|
17254
|
+
"configurationVersion",
|
|
17255
|
+
"configurationProperties"
|
|
17256
|
+
];
|
|
17257
|
+
PubSubConfiguration2DataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23602, 0);
|
|
17258
|
+
PubSubConfiguration2DataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23854, 0);
|
|
17259
|
+
PubSubConfiguration2DataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23922, 0);
|
|
17260
|
+
PubSubConfiguration2DataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23990, 0);
|
|
17261
|
+
PubSubConfiguration2DataType.schema.dataTypeNodeId = PubSubConfiguration2DataType.dataTypeNodeId;
|
|
17262
|
+
PubSubConfiguration2DataType.schema.encodingDefaultBinary = PubSubConfiguration2DataType.encodingDefaultBinary;
|
|
17263
|
+
PubSubConfiguration2DataType.schema.encodingDefaultXml = PubSubConfiguration2DataType.encodingDefaultXml;
|
|
17264
|
+
PubSubConfiguration2DataType.schema.encodingDefaultJson = PubSubConfiguration2DataType.encodingDefaultJson;
|
|
17265
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PubSubConfiguration2DataType.dataTypeNodeId, "PubSubConfiguration2DataType", PubSubConfiguration2DataType);
|
|
17266
|
+
// --------------------------------------------------------------------------------------------
|
|
17267
|
+
var PubSubConfigurationRefMask;
|
|
17268
|
+
(function (PubSubConfigurationRefMask) {
|
|
17269
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["None"] = 0] = "None";
|
|
17270
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ElementAdd"] = 1] = "ElementAdd";
|
|
17271
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ElementMatch"] = 2] = "ElementMatch";
|
|
17272
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ElementModify"] = 4] = "ElementModify";
|
|
17273
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ElementRemove"] = 8] = "ElementRemove";
|
|
17274
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ReferenceWriter"] = 16] = "ReferenceWriter";
|
|
17275
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ReferenceReader"] = 32] = "ReferenceReader";
|
|
17276
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ReferenceWriterGroup"] = 64] = "ReferenceWriterGroup";
|
|
17277
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ReferenceReaderGroup"] = 128] = "ReferenceReaderGroup";
|
|
17278
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ReferenceConnection"] = 256] = "ReferenceConnection";
|
|
17279
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ReferencePubDataset"] = 512] = "ReferencePubDataset";
|
|
17280
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ReferenceSubDataset"] = 1024] = "ReferenceSubDataset";
|
|
17281
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ReferenceSecurityGroup"] = 2048] = "ReferenceSecurityGroup";
|
|
17282
|
+
PubSubConfigurationRefMask[PubSubConfigurationRefMask["ReferencePushTarget"] = 4096] = "ReferencePushTarget";
|
|
17283
|
+
})(PubSubConfigurationRefMask = exports.PubSubConfigurationRefMask || (exports.PubSubConfigurationRefMask = {}));
|
|
17284
|
+
const schemaPubSubConfigurationRefMask = {
|
|
17285
|
+
enumValues: PubSubConfigurationRefMask,
|
|
17286
|
+
flaggable: true,
|
|
17287
|
+
name: "PubSubConfigurationRefMask"
|
|
17288
|
+
};
|
|
17289
|
+
function decodePubSubConfigurationRefMask(stream, _value) {
|
|
17290
|
+
return stream.readUInt32();
|
|
16118
17291
|
}
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
|
|
16122
|
-
|
|
16123
|
-
|
|
16124
|
-
"transportProfileUri",
|
|
16125
|
-
"address",
|
|
16126
|
-
"connectionProperties",
|
|
16127
|
-
"transportSettings",
|
|
16128
|
-
"writerGroups",
|
|
16129
|
-
"readerGroups"
|
|
16130
|
-
];
|
|
16131
|
-
PubSubConnectionDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15617, 0);
|
|
16132
|
-
PubSubConnectionDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15694, 0);
|
|
16133
|
-
PubSubConnectionDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15992, 0);
|
|
16134
|
-
PubSubConnectionDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(16281, 0);
|
|
16135
|
-
PubSubConnectionDataType.schema.dataTypeNodeId = PubSubConnectionDataType.dataTypeNodeId;
|
|
16136
|
-
PubSubConnectionDataType.schema.encodingDefaultBinary = PubSubConnectionDataType.encodingDefaultBinary;
|
|
16137
|
-
PubSubConnectionDataType.schema.encodingDefaultXml = PubSubConnectionDataType.encodingDefaultXml;
|
|
16138
|
-
PubSubConnectionDataType.schema.encodingDefaultJson = PubSubConnectionDataType.encodingDefaultJson;
|
|
16139
|
-
(0, node_opcua_factory_1.registerClassDefinition)(PubSubConnectionDataType.dataTypeNodeId, "PubSubConnectionDataType", PubSubConnectionDataType);
|
|
17292
|
+
function encodePubSubConfigurationRefMask(value, stream) {
|
|
17293
|
+
stream.writeUInt32(value);
|
|
17294
|
+
}
|
|
17295
|
+
exports._enumerationPubSubConfigurationRefMask = (0, node_opcua_factory_1.registerEnumeration)(schemaPubSubConfigurationRefMask);
|
|
17296
|
+
(0, node_opcua_assert_1.assert)(exports._enumerationPubSubConfigurationRefMask.isFlaggable === true);
|
|
16140
17297
|
// --------------------------------------------------------------------------------------------
|
|
16141
|
-
const
|
|
16142
|
-
name: "
|
|
17298
|
+
const schemaPubSubConfigurationRefDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
17299
|
+
name: "PubSubConfigurationRefDataType",
|
|
16143
17300
|
baseType: "ExtensionObject",
|
|
16144
17301
|
fields: [
|
|
16145
17302
|
{
|
|
16146
|
-
name: "
|
|
16147
|
-
fieldType: "
|
|
16148
|
-
isArray: true
|
|
17303
|
+
name: "configurationMask",
|
|
17304
|
+
fieldType: "PubSubConfigurationRefMask",
|
|
16149
17305
|
},
|
|
16150
17306
|
{
|
|
16151
|
-
name: "
|
|
16152
|
-
fieldType: "
|
|
16153
|
-
isArray: true
|
|
17307
|
+
name: "elementIndex",
|
|
17308
|
+
fieldType: "UInt16",
|
|
16154
17309
|
},
|
|
16155
17310
|
{
|
|
16156
|
-
name: "
|
|
16157
|
-
fieldType: "
|
|
17311
|
+
name: "connectionIndex",
|
|
17312
|
+
fieldType: "UInt16",
|
|
17313
|
+
},
|
|
17314
|
+
{
|
|
17315
|
+
name: "groupIndex",
|
|
17316
|
+
fieldType: "UInt16",
|
|
16158
17317
|
},
|
|
16159
17318
|
]
|
|
16160
17319
|
});
|
|
16161
|
-
class
|
|
17320
|
+
class PubSubConfigurationRefDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
16162
17321
|
constructor(options) {
|
|
16163
17322
|
super(options);
|
|
16164
17323
|
if (options === null) {
|
|
16165
|
-
this.
|
|
16166
|
-
this.
|
|
16167
|
-
this.
|
|
17324
|
+
this.configurationMask = 0;
|
|
17325
|
+
this.elementIndex = 0;
|
|
17326
|
+
this.connectionIndex = 0;
|
|
17327
|
+
this.groupIndex = 0;
|
|
16168
17328
|
return;
|
|
16169
17329
|
}
|
|
16170
|
-
const schema =
|
|
17330
|
+
const schema = PubSubConfigurationRefDataType.schema;
|
|
16171
17331
|
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
16172
17332
|
/* istanbul ignore next */
|
|
16173
17333
|
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
16174
17334
|
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
16175
17335
|
}
|
|
16176
|
-
this.
|
|
16177
|
-
|
|
16178
|
-
|
|
16179
|
-
|
|
17336
|
+
this.configurationMask = this.setConfigurationMask((0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.configurationMask));
|
|
17337
|
+
this.elementIndex = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.elementIndex);
|
|
17338
|
+
this.connectionIndex = (0, node_opcua_factory_1.initialize_field)(schema.fields[2], options === null || options === void 0 ? void 0 : options.connectionIndex);
|
|
17339
|
+
this.groupIndex = (0, node_opcua_factory_1.initialize_field)(schema.fields[3], options === null || options === void 0 ? void 0 : options.groupIndex);
|
|
17340
|
+
}
|
|
17341
|
+
static get schema() { return schemaPubSubConfigurationRefDataType; }
|
|
17342
|
+
encode(stream) {
|
|
17343
|
+
/* NEEDED */ super.encode(stream);
|
|
17344
|
+
encodePubSubConfigurationRefMask(this.configurationMask, stream);
|
|
17345
|
+
(0, node_opcua_basic_types_1.encodeUInt16)(this.elementIndex, stream);
|
|
17346
|
+
(0, node_opcua_basic_types_1.encodeUInt16)(this.connectionIndex, stream);
|
|
17347
|
+
(0, node_opcua_basic_types_1.encodeUInt16)(this.groupIndex, stream);
|
|
17348
|
+
}
|
|
17349
|
+
decode(stream) {
|
|
17350
|
+
// call base class implementation first
|
|
17351
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
17352
|
+
this.configurationMask = decodePubSubConfigurationRefMask(stream, this.configurationMask);
|
|
17353
|
+
this.elementIndex = (0, node_opcua_basic_types_1.decodeUInt16)(stream, this.elementIndex);
|
|
17354
|
+
this.connectionIndex = (0, node_opcua_basic_types_1.decodeUInt16)(stream, this.connectionIndex);
|
|
17355
|
+
this.groupIndex = (0, node_opcua_basic_types_1.decodeUInt16)(stream, this.groupIndex);
|
|
17356
|
+
}
|
|
17357
|
+
// Define Enumeration setters
|
|
17358
|
+
setConfigurationMask(value) {
|
|
17359
|
+
const coercedValue = exports._enumerationPubSubConfigurationRefMask.get(value);
|
|
17360
|
+
/* istanbul ignore next */
|
|
17361
|
+
if (coercedValue === undefined || coercedValue === null) {
|
|
17362
|
+
throw new Error("value cannot be coerced to PubSubConfigurationRefMask :" + value);
|
|
17363
|
+
}
|
|
17364
|
+
this.configurationMask = coercedValue.value;
|
|
17365
|
+
return this.configurationMask;
|
|
17366
|
+
}
|
|
17367
|
+
get schema() { return schemaPubSubConfigurationRefDataType; }
|
|
17368
|
+
}
|
|
17369
|
+
exports.PubSubConfigurationRefDataType = PubSubConfigurationRefDataType;
|
|
17370
|
+
PubSubConfigurationRefDataType.possibleFields = [
|
|
17371
|
+
"configurationMask",
|
|
17372
|
+
"elementIndex",
|
|
17373
|
+
"connectionIndex",
|
|
17374
|
+
"groupIndex"
|
|
17375
|
+
];
|
|
17376
|
+
PubSubConfigurationRefDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25519, 0);
|
|
17377
|
+
PubSubConfigurationRefDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25531, 0);
|
|
17378
|
+
PubSubConfigurationRefDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25547, 0);
|
|
17379
|
+
PubSubConfigurationRefDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25563, 0);
|
|
17380
|
+
PubSubConfigurationRefDataType.schema.dataTypeNodeId = PubSubConfigurationRefDataType.dataTypeNodeId;
|
|
17381
|
+
PubSubConfigurationRefDataType.schema.encodingDefaultBinary = PubSubConfigurationRefDataType.encodingDefaultBinary;
|
|
17382
|
+
PubSubConfigurationRefDataType.schema.encodingDefaultXml = PubSubConfigurationRefDataType.encodingDefaultXml;
|
|
17383
|
+
PubSubConfigurationRefDataType.schema.encodingDefaultJson = PubSubConfigurationRefDataType.encodingDefaultJson;
|
|
17384
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PubSubConfigurationRefDataType.dataTypeNodeId, "PubSubConfigurationRefDataType", PubSubConfigurationRefDataType);
|
|
17385
|
+
// --------------------------------------------------------------------------------------------
|
|
17386
|
+
const schemaPubSubConfigurationValueDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
17387
|
+
name: "PubSubConfigurationValueDataType",
|
|
17388
|
+
baseType: "ExtensionObject",
|
|
17389
|
+
fields: [
|
|
17390
|
+
{
|
|
17391
|
+
name: "configurationElement",
|
|
17392
|
+
fieldType: "PubSubConfigurationRefDataType",
|
|
17393
|
+
},
|
|
17394
|
+
{
|
|
17395
|
+
name: "name",
|
|
17396
|
+
fieldType: "UAString",
|
|
17397
|
+
},
|
|
17398
|
+
{
|
|
17399
|
+
name: "identifier",
|
|
17400
|
+
fieldType: "Variant",
|
|
17401
|
+
},
|
|
17402
|
+
]
|
|
17403
|
+
});
|
|
17404
|
+
class PubSubConfigurationValueDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
17405
|
+
constructor(options) {
|
|
17406
|
+
super(options);
|
|
17407
|
+
if (options === null) {
|
|
17408
|
+
this.configurationElement = new PubSubConfigurationRefDataType(null);
|
|
17409
|
+
this.name = null;
|
|
17410
|
+
this.identifier = new node_opcua_variant_1.Variant(null);
|
|
17411
|
+
return;
|
|
16180
17412
|
}
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
17413
|
+
const schema = PubSubConfigurationValueDataType.schema;
|
|
17414
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
17415
|
+
/* istanbul ignore next */
|
|
17416
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
17417
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
16185
17418
|
}
|
|
16186
|
-
this.
|
|
17419
|
+
this.configurationElement = new PubSubConfigurationRefDataType(options.configurationElement);
|
|
17420
|
+
this.name = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.name);
|
|
17421
|
+
this.identifier = (0, node_opcua_factory_1.initialize_field)(schema.fields[2], options === null || options === void 0 ? void 0 : options.identifier);
|
|
16187
17422
|
}
|
|
16188
|
-
static get schema() { return
|
|
17423
|
+
static get schema() { return schemaPubSubConfigurationValueDataType; }
|
|
16189
17424
|
encode(stream) {
|
|
16190
17425
|
/* NEEDED */ super.encode(stream);
|
|
16191
|
-
|
|
16192
|
-
(0, node_opcua_basic_types_1.
|
|
16193
|
-
(0,
|
|
17426
|
+
this.configurationElement.encode(stream);
|
|
17427
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.name, stream);
|
|
17428
|
+
(0, node_opcua_variant_1.encodeVariant)(this.identifier, stream);
|
|
16194
17429
|
}
|
|
16195
17430
|
decode(stream) {
|
|
16196
17431
|
// call base class implementation first
|
|
16197
17432
|
/* NEEDED !!! */ super.decode(stream);
|
|
16198
|
-
this.
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
return obj;
|
|
16202
|
-
});
|
|
16203
|
-
this.connections = (0, node_opcua_basic_types_1.decodeArray)(stream, (stream1) => {
|
|
16204
|
-
const obj = new PubSubConnectionDataType(null);
|
|
16205
|
-
obj.decode(stream1);
|
|
16206
|
-
return obj;
|
|
16207
|
-
});
|
|
16208
|
-
this.enabled = (0, node_opcua_basic_types_1.decodeUABoolean)(stream, this.enabled);
|
|
17433
|
+
this.configurationElement.decode(stream);
|
|
17434
|
+
this.name = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.name);
|
|
17435
|
+
this.identifier = (0, node_opcua_variant_1.decodeVariant)(stream, this.identifier);
|
|
16209
17436
|
}
|
|
16210
|
-
get schema() { return
|
|
17437
|
+
get schema() { return schemaPubSubConfigurationValueDataType; }
|
|
16211
17438
|
}
|
|
16212
|
-
exports.
|
|
16213
|
-
|
|
16214
|
-
"
|
|
16215
|
-
"
|
|
16216
|
-
"
|
|
16217
|
-
];
|
|
16218
|
-
|
|
16219
|
-
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16223
|
-
|
|
16224
|
-
|
|
16225
|
-
|
|
16226
|
-
(0, node_opcua_factory_1.registerClassDefinition)(
|
|
17439
|
+
exports.PubSubConfigurationValueDataType = PubSubConfigurationValueDataType;
|
|
17440
|
+
PubSubConfigurationValueDataType.possibleFields = [
|
|
17441
|
+
"configurationElement",
|
|
17442
|
+
"name",
|
|
17443
|
+
"identifier"
|
|
17444
|
+
];
|
|
17445
|
+
PubSubConfigurationValueDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25520, 0);
|
|
17446
|
+
PubSubConfigurationValueDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25532, 0);
|
|
17447
|
+
PubSubConfigurationValueDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25548, 0);
|
|
17448
|
+
PubSubConfigurationValueDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25564, 0);
|
|
17449
|
+
PubSubConfigurationValueDataType.schema.dataTypeNodeId = PubSubConfigurationValueDataType.dataTypeNodeId;
|
|
17450
|
+
PubSubConfigurationValueDataType.schema.encodingDefaultBinary = PubSubConfigurationValueDataType.encodingDefaultBinary;
|
|
17451
|
+
PubSubConfigurationValueDataType.schema.encodingDefaultXml = PubSubConfigurationValueDataType.encodingDefaultXml;
|
|
17452
|
+
PubSubConfigurationValueDataType.schema.encodingDefaultJson = PubSubConfigurationValueDataType.encodingDefaultJson;
|
|
17453
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PubSubConfigurationValueDataType.dataTypeNodeId, "PubSubConfigurationValueDataType", PubSubConfigurationValueDataType);
|
|
16227
17454
|
// --------------------------------------------------------------------------------------------
|
|
16228
17455
|
const schemaSubscriptionAcknowledgement = (0, node_opcua_factory_1.buildStructuredType)({
|
|
16229
17456
|
name: "SubscriptionAcknowledgement",
|
|
@@ -16677,6 +17904,57 @@ PublishedDataItemsDataType.schema.encodingDefaultXml = PublishedDataItemsDataTyp
|
|
|
16677
17904
|
PublishedDataItemsDataType.schema.encodingDefaultJson = PublishedDataItemsDataType.encodingDefaultJson;
|
|
16678
17905
|
(0, node_opcua_factory_1.registerClassDefinition)(PublishedDataItemsDataType.dataTypeNodeId, "PublishedDataItemsDataType", PublishedDataItemsDataType);
|
|
16679
17906
|
// --------------------------------------------------------------------------------------------
|
|
17907
|
+
const schemaPublishedDataSetCustomSourceDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
17908
|
+
name: "PublishedDataSetCustomSourceDataType",
|
|
17909
|
+
baseType: "PublishedDataSetSourceDataType",
|
|
17910
|
+
fields: [
|
|
17911
|
+
{
|
|
17912
|
+
name: "cyclicDataSet",
|
|
17913
|
+
fieldType: "UABoolean",
|
|
17914
|
+
},
|
|
17915
|
+
]
|
|
17916
|
+
});
|
|
17917
|
+
class PublishedDataSetCustomSourceDataType extends PublishedDataSetSourceDataType {
|
|
17918
|
+
constructor(options) {
|
|
17919
|
+
super(options);
|
|
17920
|
+
if (options === null) {
|
|
17921
|
+
this.cyclicDataSet = false;
|
|
17922
|
+
return;
|
|
17923
|
+
}
|
|
17924
|
+
const schema = PublishedDataSetCustomSourceDataType.schema;
|
|
17925
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
17926
|
+
/* istanbul ignore next */
|
|
17927
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
17928
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
17929
|
+
}
|
|
17930
|
+
this.cyclicDataSet = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.cyclicDataSet);
|
|
17931
|
+
}
|
|
17932
|
+
static get schema() { return schemaPublishedDataSetCustomSourceDataType; }
|
|
17933
|
+
encode(stream) {
|
|
17934
|
+
/* NEEDED */ super.encode(stream);
|
|
17935
|
+
(0, node_opcua_basic_types_1.encodeUABoolean)(this.cyclicDataSet, stream);
|
|
17936
|
+
}
|
|
17937
|
+
decode(stream) {
|
|
17938
|
+
// call base class implementation first
|
|
17939
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
17940
|
+
this.cyclicDataSet = (0, node_opcua_basic_types_1.decodeUABoolean)(stream, this.cyclicDataSet);
|
|
17941
|
+
}
|
|
17942
|
+
get schema() { return schemaPublishedDataSetCustomSourceDataType; }
|
|
17943
|
+
}
|
|
17944
|
+
exports.PublishedDataSetCustomSourceDataType = PublishedDataSetCustomSourceDataType;
|
|
17945
|
+
PublishedDataSetCustomSourceDataType.possibleFields = [
|
|
17946
|
+
"cyclicDataSet"
|
|
17947
|
+
];
|
|
17948
|
+
PublishedDataSetCustomSourceDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25269, 0);
|
|
17949
|
+
PublishedDataSetCustomSourceDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25529, 0);
|
|
17950
|
+
PublishedDataSetCustomSourceDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25545, 0);
|
|
17951
|
+
PublishedDataSetCustomSourceDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(25561, 0);
|
|
17952
|
+
PublishedDataSetCustomSourceDataType.schema.dataTypeNodeId = PublishedDataSetCustomSourceDataType.dataTypeNodeId;
|
|
17953
|
+
PublishedDataSetCustomSourceDataType.schema.encodingDefaultBinary = PublishedDataSetCustomSourceDataType.encodingDefaultBinary;
|
|
17954
|
+
PublishedDataSetCustomSourceDataType.schema.encodingDefaultXml = PublishedDataSetCustomSourceDataType.encodingDefaultXml;
|
|
17955
|
+
PublishedDataSetCustomSourceDataType.schema.encodingDefaultJson = PublishedDataSetCustomSourceDataType.encodingDefaultJson;
|
|
17956
|
+
(0, node_opcua_factory_1.registerClassDefinition)(PublishedDataSetCustomSourceDataType.dataTypeNodeId, "PublishedDataSetCustomSourceDataType", PublishedDataSetCustomSourceDataType);
|
|
17957
|
+
// --------------------------------------------------------------------------------------------
|
|
16680
17958
|
const schemaPublishedEventsDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
16681
17959
|
name: "PublishedEventsDataType",
|
|
16682
17960
|
baseType: "PublishedDataSetSourceDataType",
|
|
@@ -16755,6 +18033,46 @@ PublishedEventsDataType.schema.encodingDefaultXml = PublishedEventsDataType.enco
|
|
|
16755
18033
|
PublishedEventsDataType.schema.encodingDefaultJson = PublishedEventsDataType.encodingDefaultJson;
|
|
16756
18034
|
(0, node_opcua_factory_1.registerClassDefinition)(PublishedEventsDataType.dataTypeNodeId, "PublishedEventsDataType", PublishedEventsDataType);
|
|
16757
18035
|
// --------------------------------------------------------------------------------------------
|
|
18036
|
+
const schemaQosDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
18037
|
+
name: "QosDataType",
|
|
18038
|
+
baseType: "ExtensionObject",
|
|
18039
|
+
fields: []
|
|
18040
|
+
});
|
|
18041
|
+
class QosDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
18042
|
+
constructor(options) {
|
|
18043
|
+
super(options);
|
|
18044
|
+
if (options === null) {
|
|
18045
|
+
return;
|
|
18046
|
+
}
|
|
18047
|
+
const schema = QosDataType.schema;
|
|
18048
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
18049
|
+
/* istanbul ignore next */
|
|
18050
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
18051
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
18052
|
+
}
|
|
18053
|
+
}
|
|
18054
|
+
static get schema() { return schemaQosDataType; }
|
|
18055
|
+
encode(stream) {
|
|
18056
|
+
/* NEEDED */ super.encode(stream);
|
|
18057
|
+
}
|
|
18058
|
+
decode(stream) {
|
|
18059
|
+
// call base class implementation first
|
|
18060
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
18061
|
+
}
|
|
18062
|
+
get schema() { return schemaQosDataType; }
|
|
18063
|
+
}
|
|
18064
|
+
exports.QosDataType = QosDataType;
|
|
18065
|
+
QosDataType.possibleFields = [];
|
|
18066
|
+
QosDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23603, 0);
|
|
18067
|
+
QosDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23855, 0);
|
|
18068
|
+
QosDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23923, 0);
|
|
18069
|
+
QosDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23991, 0);
|
|
18070
|
+
QosDataType.schema.dataTypeNodeId = QosDataType.dataTypeNodeId;
|
|
18071
|
+
QosDataType.schema.encodingDefaultBinary = QosDataType.encodingDefaultBinary;
|
|
18072
|
+
QosDataType.schema.encodingDefaultXml = QosDataType.encodingDefaultXml;
|
|
18073
|
+
QosDataType.schema.encodingDefaultJson = QosDataType.encodingDefaultJson;
|
|
18074
|
+
(0, node_opcua_factory_1.registerClassDefinition)(QosDataType.dataTypeNodeId, "QosDataType", QosDataType);
|
|
18075
|
+
// --------------------------------------------------------------------------------------------
|
|
16758
18076
|
const schemaQueryDataSet = (0, node_opcua_factory_1.buildStructuredType)({
|
|
16759
18077
|
name: "QueryDataSet",
|
|
16760
18078
|
baseType: "ExtensionObject",
|
|
@@ -17791,20 +19109,100 @@ const schemaReaderGroupMessageDataType = (0, node_opcua_factory_1.buildStructure
|
|
|
17791
19109
|
baseType: "ExtensionObject",
|
|
17792
19110
|
fields: []
|
|
17793
19111
|
});
|
|
17794
|
-
class ReaderGroupMessageDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
19112
|
+
class ReaderGroupMessageDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
19113
|
+
constructor(options) {
|
|
19114
|
+
super(options);
|
|
19115
|
+
if (options === null) {
|
|
19116
|
+
return;
|
|
19117
|
+
}
|
|
19118
|
+
const schema = ReaderGroupMessageDataType.schema;
|
|
19119
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
19120
|
+
/* istanbul ignore next */
|
|
19121
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
19122
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
19123
|
+
}
|
|
19124
|
+
}
|
|
19125
|
+
static get schema() { return schemaReaderGroupMessageDataType; }
|
|
19126
|
+
encode(stream) {
|
|
19127
|
+
/* NEEDED */ super.encode(stream);
|
|
19128
|
+
}
|
|
19129
|
+
decode(stream) {
|
|
19130
|
+
// call base class implementation first
|
|
19131
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
19132
|
+
}
|
|
19133
|
+
get schema() { return schemaReaderGroupMessageDataType; }
|
|
19134
|
+
}
|
|
19135
|
+
exports.ReaderGroupMessageDataType = ReaderGroupMessageDataType;
|
|
19136
|
+
ReaderGroupMessageDataType.possibleFields = [];
|
|
19137
|
+
ReaderGroupMessageDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15622, 0);
|
|
19138
|
+
ReaderGroupMessageDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15702, 0);
|
|
19139
|
+
ReaderGroupMessageDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15996, 0);
|
|
19140
|
+
ReaderGroupMessageDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(16285, 0);
|
|
19141
|
+
ReaderGroupMessageDataType.schema.dataTypeNodeId = ReaderGroupMessageDataType.dataTypeNodeId;
|
|
19142
|
+
ReaderGroupMessageDataType.schema.encodingDefaultBinary = ReaderGroupMessageDataType.encodingDefaultBinary;
|
|
19143
|
+
ReaderGroupMessageDataType.schema.encodingDefaultXml = ReaderGroupMessageDataType.encodingDefaultXml;
|
|
19144
|
+
ReaderGroupMessageDataType.schema.encodingDefaultJson = ReaderGroupMessageDataType.encodingDefaultJson;
|
|
19145
|
+
(0, node_opcua_factory_1.registerClassDefinition)(ReaderGroupMessageDataType.dataTypeNodeId, "ReaderGroupMessageDataType", ReaderGroupMessageDataType);
|
|
19146
|
+
// --------------------------------------------------------------------------------------------
|
|
19147
|
+
const schemaReaderGroupTransportDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
19148
|
+
name: "ReaderGroupTransportDataType",
|
|
19149
|
+
baseType: "ExtensionObject",
|
|
19150
|
+
fields: []
|
|
19151
|
+
});
|
|
19152
|
+
class ReaderGroupTransportDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
19153
|
+
constructor(options) {
|
|
19154
|
+
super(options);
|
|
19155
|
+
if (options === null) {
|
|
19156
|
+
return;
|
|
19157
|
+
}
|
|
19158
|
+
const schema = ReaderGroupTransportDataType.schema;
|
|
19159
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
19160
|
+
/* istanbul ignore next */
|
|
19161
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
19162
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
19163
|
+
}
|
|
19164
|
+
}
|
|
19165
|
+
static get schema() { return schemaReaderGroupTransportDataType; }
|
|
19166
|
+
encode(stream) {
|
|
19167
|
+
/* NEEDED */ super.encode(stream);
|
|
19168
|
+
}
|
|
19169
|
+
decode(stream) {
|
|
19170
|
+
// call base class implementation first
|
|
19171
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
19172
|
+
}
|
|
19173
|
+
get schema() { return schemaReaderGroupTransportDataType; }
|
|
19174
|
+
}
|
|
19175
|
+
exports.ReaderGroupTransportDataType = ReaderGroupTransportDataType;
|
|
19176
|
+
ReaderGroupTransportDataType.possibleFields = [];
|
|
19177
|
+
ReaderGroupTransportDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15621, 0);
|
|
19178
|
+
ReaderGroupTransportDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15701, 0);
|
|
19179
|
+
ReaderGroupTransportDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15995, 0);
|
|
19180
|
+
ReaderGroupTransportDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(16284, 0);
|
|
19181
|
+
ReaderGroupTransportDataType.schema.dataTypeNodeId = ReaderGroupTransportDataType.dataTypeNodeId;
|
|
19182
|
+
ReaderGroupTransportDataType.schema.encodingDefaultBinary = ReaderGroupTransportDataType.encodingDefaultBinary;
|
|
19183
|
+
ReaderGroupTransportDataType.schema.encodingDefaultXml = ReaderGroupTransportDataType.encodingDefaultXml;
|
|
19184
|
+
ReaderGroupTransportDataType.schema.encodingDefaultJson = ReaderGroupTransportDataType.encodingDefaultJson;
|
|
19185
|
+
(0, node_opcua_factory_1.registerClassDefinition)(ReaderGroupTransportDataType.dataTypeNodeId, "ReaderGroupTransportDataType", ReaderGroupTransportDataType);
|
|
19186
|
+
// --------------------------------------------------------------------------------------------
|
|
19187
|
+
const schemaReceiveQosDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
19188
|
+
name: "ReceiveQosDataType",
|
|
19189
|
+
baseType: "QosDataType",
|
|
19190
|
+
fields: []
|
|
19191
|
+
});
|
|
19192
|
+
class ReceiveQosDataType extends QosDataType {
|
|
17795
19193
|
constructor(options) {
|
|
17796
19194
|
super(options);
|
|
17797
19195
|
if (options === null) {
|
|
17798
19196
|
return;
|
|
17799
19197
|
}
|
|
17800
|
-
const schema =
|
|
19198
|
+
const schema = ReceiveQosDataType.schema;
|
|
17801
19199
|
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
17802
19200
|
/* istanbul ignore next */
|
|
17803
19201
|
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
17804
19202
|
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
17805
19203
|
}
|
|
17806
19204
|
}
|
|
17807
|
-
static get schema() { return
|
|
19205
|
+
static get schema() { return schemaReceiveQosDataType; }
|
|
17808
19206
|
encode(stream) {
|
|
17809
19207
|
/* NEEDED */ super.encode(stream);
|
|
17810
19208
|
}
|
|
@@ -17812,59 +19210,70 @@ class ReaderGroupMessageDataType extends node_opcua_extension_object_1.Extension
|
|
|
17812
19210
|
// call base class implementation first
|
|
17813
19211
|
/* NEEDED !!! */ super.decode(stream);
|
|
17814
19212
|
}
|
|
17815
|
-
get schema() { return
|
|
19213
|
+
get schema() { return schemaReceiveQosDataType; }
|
|
17816
19214
|
}
|
|
17817
|
-
exports.
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
(0, node_opcua_factory_1.registerClassDefinition)(
|
|
19215
|
+
exports.ReceiveQosDataType = ReceiveQosDataType;
|
|
19216
|
+
ReceiveQosDataType.possibleFields = [];
|
|
19217
|
+
ReceiveQosDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23608, 0);
|
|
19218
|
+
ReceiveQosDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23860, 0);
|
|
19219
|
+
ReceiveQosDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23928, 0);
|
|
19220
|
+
ReceiveQosDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23996, 0);
|
|
19221
|
+
ReceiveQosDataType.schema.dataTypeNodeId = ReceiveQosDataType.dataTypeNodeId;
|
|
19222
|
+
ReceiveQosDataType.schema.encodingDefaultBinary = ReceiveQosDataType.encodingDefaultBinary;
|
|
19223
|
+
ReceiveQosDataType.schema.encodingDefaultXml = ReceiveQosDataType.encodingDefaultXml;
|
|
19224
|
+
ReceiveQosDataType.schema.encodingDefaultJson = ReceiveQosDataType.encodingDefaultJson;
|
|
19225
|
+
(0, node_opcua_factory_1.registerClassDefinition)(ReceiveQosDataType.dataTypeNodeId, "ReceiveQosDataType", ReceiveQosDataType);
|
|
17828
19226
|
// --------------------------------------------------------------------------------------------
|
|
17829
|
-
const
|
|
17830
|
-
name: "
|
|
17831
|
-
baseType: "
|
|
17832
|
-
fields: [
|
|
19227
|
+
const schemaReceiveQosPriorityDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
19228
|
+
name: "ReceiveQosPriorityDataType",
|
|
19229
|
+
baseType: "ReceiveQosDataType",
|
|
19230
|
+
fields: [
|
|
19231
|
+
{
|
|
19232
|
+
name: "priorityLabel",
|
|
19233
|
+
fieldType: "UAString",
|
|
19234
|
+
},
|
|
19235
|
+
]
|
|
17833
19236
|
});
|
|
17834
|
-
class
|
|
19237
|
+
class ReceiveQosPriorityDataType extends ReceiveQosDataType {
|
|
17835
19238
|
constructor(options) {
|
|
17836
19239
|
super(options);
|
|
17837
19240
|
if (options === null) {
|
|
19241
|
+
this.priorityLabel = null;
|
|
17838
19242
|
return;
|
|
17839
19243
|
}
|
|
17840
|
-
const schema =
|
|
19244
|
+
const schema = ReceiveQosPriorityDataType.schema;
|
|
17841
19245
|
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
17842
19246
|
/* istanbul ignore next */
|
|
17843
19247
|
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
17844
19248
|
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
17845
19249
|
}
|
|
19250
|
+
this.priorityLabel = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.priorityLabel);
|
|
17846
19251
|
}
|
|
17847
|
-
static get schema() { return
|
|
19252
|
+
static get schema() { return schemaReceiveQosPriorityDataType; }
|
|
17848
19253
|
encode(stream) {
|
|
17849
19254
|
/* NEEDED */ super.encode(stream);
|
|
19255
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.priorityLabel, stream);
|
|
17850
19256
|
}
|
|
17851
19257
|
decode(stream) {
|
|
17852
19258
|
// call base class implementation first
|
|
17853
19259
|
/* NEEDED !!! */ super.decode(stream);
|
|
19260
|
+
this.priorityLabel = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.priorityLabel);
|
|
17854
19261
|
}
|
|
17855
|
-
get schema() { return
|
|
19262
|
+
get schema() { return schemaReceiveQosPriorityDataType; }
|
|
17856
19263
|
}
|
|
17857
|
-
exports.
|
|
17858
|
-
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
19264
|
+
exports.ReceiveQosPriorityDataType = ReceiveQosPriorityDataType;
|
|
19265
|
+
ReceiveQosPriorityDataType.possibleFields = [
|
|
19266
|
+
"priorityLabel"
|
|
19267
|
+
];
|
|
19268
|
+
ReceiveQosPriorityDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23609, 0);
|
|
19269
|
+
ReceiveQosPriorityDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23861, 0);
|
|
19270
|
+
ReceiveQosPriorityDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23929, 0);
|
|
19271
|
+
ReceiveQosPriorityDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23997, 0);
|
|
19272
|
+
ReceiveQosPriorityDataType.schema.dataTypeNodeId = ReceiveQosPriorityDataType.dataTypeNodeId;
|
|
19273
|
+
ReceiveQosPriorityDataType.schema.encodingDefaultBinary = ReceiveQosPriorityDataType.encodingDefaultBinary;
|
|
19274
|
+
ReceiveQosPriorityDataType.schema.encodingDefaultXml = ReceiveQosPriorityDataType.encodingDefaultXml;
|
|
19275
|
+
ReceiveQosPriorityDataType.schema.encodingDefaultJson = ReceiveQosPriorityDataType.encodingDefaultJson;
|
|
19276
|
+
(0, node_opcua_factory_1.registerClassDefinition)(ReceiveQosPriorityDataType.dataTypeNodeId, "ReceiveQosPriorityDataType", ReceiveQosPriorityDataType);
|
|
17868
19277
|
// --------------------------------------------------------------------------------------------
|
|
17869
19278
|
var ServerState;
|
|
17870
19279
|
(function (ServerState) {
|
|
@@ -20507,6 +21916,57 @@ SetTriggeringResponse.schema.encodingDefaultXml = SetTriggeringResponse.encoding
|
|
|
20507
21916
|
SetTriggeringResponse.schema.encodingDefaultJson = SetTriggeringResponse.encodingDefaultJson;
|
|
20508
21917
|
(0, node_opcua_factory_1.registerClassDefinition)(SetTriggeringResponse.dataTypeNodeId, "SetTriggeringResponse", SetTriggeringResponse);
|
|
20509
21918
|
// --------------------------------------------------------------------------------------------
|
|
21919
|
+
const schemaStandaloneSubscribedDataSetRefDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
21920
|
+
name: "StandaloneSubscribedDataSetRefDataType",
|
|
21921
|
+
baseType: "SubscribedDataSetDataType",
|
|
21922
|
+
fields: [
|
|
21923
|
+
{
|
|
21924
|
+
name: "dataSetName",
|
|
21925
|
+
fieldType: "UAString",
|
|
21926
|
+
},
|
|
21927
|
+
]
|
|
21928
|
+
});
|
|
21929
|
+
class StandaloneSubscribedDataSetRefDataType extends SubscribedDataSetDataType {
|
|
21930
|
+
constructor(options) {
|
|
21931
|
+
super(options);
|
|
21932
|
+
if (options === null) {
|
|
21933
|
+
this.dataSetName = null;
|
|
21934
|
+
return;
|
|
21935
|
+
}
|
|
21936
|
+
const schema = StandaloneSubscribedDataSetRefDataType.schema;
|
|
21937
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
21938
|
+
/* istanbul ignore next */
|
|
21939
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
21940
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
21941
|
+
}
|
|
21942
|
+
this.dataSetName = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.dataSetName);
|
|
21943
|
+
}
|
|
21944
|
+
static get schema() { return schemaStandaloneSubscribedDataSetRefDataType; }
|
|
21945
|
+
encode(stream) {
|
|
21946
|
+
/* NEEDED */ super.encode(stream);
|
|
21947
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.dataSetName, stream);
|
|
21948
|
+
}
|
|
21949
|
+
decode(stream) {
|
|
21950
|
+
// call base class implementation first
|
|
21951
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
21952
|
+
this.dataSetName = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.dataSetName);
|
|
21953
|
+
}
|
|
21954
|
+
get schema() { return schemaStandaloneSubscribedDataSetRefDataType; }
|
|
21955
|
+
}
|
|
21956
|
+
exports.StandaloneSubscribedDataSetRefDataType = StandaloneSubscribedDataSetRefDataType;
|
|
21957
|
+
StandaloneSubscribedDataSetRefDataType.possibleFields = [
|
|
21958
|
+
"dataSetName"
|
|
21959
|
+
];
|
|
21960
|
+
StandaloneSubscribedDataSetRefDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23599, 0);
|
|
21961
|
+
StandaloneSubscribedDataSetRefDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23851, 0);
|
|
21962
|
+
StandaloneSubscribedDataSetRefDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23919, 0);
|
|
21963
|
+
StandaloneSubscribedDataSetRefDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23987, 0);
|
|
21964
|
+
StandaloneSubscribedDataSetRefDataType.schema.dataTypeNodeId = StandaloneSubscribedDataSetRefDataType.dataTypeNodeId;
|
|
21965
|
+
StandaloneSubscribedDataSetRefDataType.schema.encodingDefaultBinary = StandaloneSubscribedDataSetRefDataType.encodingDefaultBinary;
|
|
21966
|
+
StandaloneSubscribedDataSetRefDataType.schema.encodingDefaultXml = StandaloneSubscribedDataSetRefDataType.encodingDefaultXml;
|
|
21967
|
+
StandaloneSubscribedDataSetRefDataType.schema.encodingDefaultJson = StandaloneSubscribedDataSetRefDataType.encodingDefaultJson;
|
|
21968
|
+
(0, node_opcua_factory_1.registerClassDefinition)(StandaloneSubscribedDataSetRefDataType.dataTypeNodeId, "StandaloneSubscribedDataSetRefDataType", StandaloneSubscribedDataSetRefDataType);
|
|
21969
|
+
// --------------------------------------------------------------------------------------------
|
|
20510
21970
|
const schemaStatusChangeNotification = (0, node_opcua_factory_1.buildStructuredType)({
|
|
20511
21971
|
name: "StatusChangeNotification",
|
|
20512
21972
|
baseType: "NotificationData",
|
|
@@ -20567,46 +22027,6 @@ StatusChangeNotification.schema.encodingDefaultXml = StatusChangeNotification.en
|
|
|
20567
22027
|
StatusChangeNotification.schema.encodingDefaultJson = StatusChangeNotification.encodingDefaultJson;
|
|
20568
22028
|
(0, node_opcua_factory_1.registerClassDefinition)(StatusChangeNotification.dataTypeNodeId, "StatusChangeNotification", StatusChangeNotification);
|
|
20569
22029
|
// --------------------------------------------------------------------------------------------
|
|
20570
|
-
const schemaSubscribedDataSetDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
20571
|
-
name: "SubscribedDataSetDataType",
|
|
20572
|
-
baseType: "ExtensionObject",
|
|
20573
|
-
fields: []
|
|
20574
|
-
});
|
|
20575
|
-
class SubscribedDataSetDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
20576
|
-
constructor(options) {
|
|
20577
|
-
super(options);
|
|
20578
|
-
if (options === null) {
|
|
20579
|
-
return;
|
|
20580
|
-
}
|
|
20581
|
-
const schema = SubscribedDataSetDataType.schema;
|
|
20582
|
-
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
20583
|
-
/* istanbul ignore next */
|
|
20584
|
-
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
20585
|
-
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
20586
|
-
}
|
|
20587
|
-
}
|
|
20588
|
-
static get schema() { return schemaSubscribedDataSetDataType; }
|
|
20589
|
-
encode(stream) {
|
|
20590
|
-
/* NEEDED */ super.encode(stream);
|
|
20591
|
-
}
|
|
20592
|
-
decode(stream) {
|
|
20593
|
-
// call base class implementation first
|
|
20594
|
-
/* NEEDED !!! */ super.decode(stream);
|
|
20595
|
-
}
|
|
20596
|
-
get schema() { return schemaSubscribedDataSetDataType; }
|
|
20597
|
-
}
|
|
20598
|
-
exports.SubscribedDataSetDataType = SubscribedDataSetDataType;
|
|
20599
|
-
SubscribedDataSetDataType.possibleFields = [];
|
|
20600
|
-
SubscribedDataSetDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15630, 0);
|
|
20601
|
-
SubscribedDataSetDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(15707, 0);
|
|
20602
|
-
SubscribedDataSetDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(16010, 0);
|
|
20603
|
-
SubscribedDataSetDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(16308, 0);
|
|
20604
|
-
SubscribedDataSetDataType.schema.dataTypeNodeId = SubscribedDataSetDataType.dataTypeNodeId;
|
|
20605
|
-
SubscribedDataSetDataType.schema.encodingDefaultBinary = SubscribedDataSetDataType.encodingDefaultBinary;
|
|
20606
|
-
SubscribedDataSetDataType.schema.encodingDefaultXml = SubscribedDataSetDataType.encodingDefaultXml;
|
|
20607
|
-
SubscribedDataSetDataType.schema.encodingDefaultJson = SubscribedDataSetDataType.encodingDefaultJson;
|
|
20608
|
-
(0, node_opcua_factory_1.registerClassDefinition)(SubscribedDataSetDataType.dataTypeNodeId, "SubscribedDataSetDataType", SubscribedDataSetDataType);
|
|
20609
|
-
// --------------------------------------------------------------------------------------------
|
|
20610
22030
|
const schemaSubscribedDataSetMirrorDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
20611
22031
|
name: "SubscribedDataSetMirrorDataType",
|
|
20612
22032
|
baseType: "SubscribedDataSetDataType",
|
|
@@ -21782,6 +23202,97 @@ TranslateBrowsePathsToNodeIdsResponse.schema.encodingDefaultXml = TranslateBrows
|
|
|
21782
23202
|
TranslateBrowsePathsToNodeIdsResponse.schema.encodingDefaultJson = TranslateBrowsePathsToNodeIdsResponse.encodingDefaultJson;
|
|
21783
23203
|
(0, node_opcua_factory_1.registerClassDefinition)(TranslateBrowsePathsToNodeIdsResponse.dataTypeNodeId, "TranslateBrowsePathsToNodeIdsResponse", TranslateBrowsePathsToNodeIdsResponse);
|
|
21784
23204
|
// --------------------------------------------------------------------------------------------
|
|
23205
|
+
const schemaTransmitQosDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
23206
|
+
name: "TransmitQosDataType",
|
|
23207
|
+
baseType: "QosDataType",
|
|
23208
|
+
fields: []
|
|
23209
|
+
});
|
|
23210
|
+
class TransmitQosDataType extends QosDataType {
|
|
23211
|
+
constructor(options) {
|
|
23212
|
+
super(options);
|
|
23213
|
+
if (options === null) {
|
|
23214
|
+
return;
|
|
23215
|
+
}
|
|
23216
|
+
const schema = TransmitQosDataType.schema;
|
|
23217
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
23218
|
+
/* istanbul ignore next */
|
|
23219
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
23220
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
23221
|
+
}
|
|
23222
|
+
}
|
|
23223
|
+
static get schema() { return schemaTransmitQosDataType; }
|
|
23224
|
+
encode(stream) {
|
|
23225
|
+
/* NEEDED */ super.encode(stream);
|
|
23226
|
+
}
|
|
23227
|
+
decode(stream) {
|
|
23228
|
+
// call base class implementation first
|
|
23229
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
23230
|
+
}
|
|
23231
|
+
get schema() { return schemaTransmitQosDataType; }
|
|
23232
|
+
}
|
|
23233
|
+
exports.TransmitQosDataType = TransmitQosDataType;
|
|
23234
|
+
TransmitQosDataType.possibleFields = [];
|
|
23235
|
+
TransmitQosDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23604, 0);
|
|
23236
|
+
TransmitQosDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23856, 0);
|
|
23237
|
+
TransmitQosDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23924, 0);
|
|
23238
|
+
TransmitQosDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23992, 0);
|
|
23239
|
+
TransmitQosDataType.schema.dataTypeNodeId = TransmitQosDataType.dataTypeNodeId;
|
|
23240
|
+
TransmitQosDataType.schema.encodingDefaultBinary = TransmitQosDataType.encodingDefaultBinary;
|
|
23241
|
+
TransmitQosDataType.schema.encodingDefaultXml = TransmitQosDataType.encodingDefaultXml;
|
|
23242
|
+
TransmitQosDataType.schema.encodingDefaultJson = TransmitQosDataType.encodingDefaultJson;
|
|
23243
|
+
(0, node_opcua_factory_1.registerClassDefinition)(TransmitQosDataType.dataTypeNodeId, "TransmitQosDataType", TransmitQosDataType);
|
|
23244
|
+
// --------------------------------------------------------------------------------------------
|
|
23245
|
+
const schemaTransmitQosPriorityDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
23246
|
+
name: "TransmitQosPriorityDataType",
|
|
23247
|
+
baseType: "TransmitQosDataType",
|
|
23248
|
+
fields: [
|
|
23249
|
+
{
|
|
23250
|
+
name: "priorityLabel",
|
|
23251
|
+
fieldType: "UAString",
|
|
23252
|
+
},
|
|
23253
|
+
]
|
|
23254
|
+
});
|
|
23255
|
+
class TransmitQosPriorityDataType extends TransmitQosDataType {
|
|
23256
|
+
constructor(options) {
|
|
23257
|
+
super(options);
|
|
23258
|
+
if (options === null) {
|
|
23259
|
+
this.priorityLabel = null;
|
|
23260
|
+
return;
|
|
23261
|
+
}
|
|
23262
|
+
const schema = TransmitQosPriorityDataType.schema;
|
|
23263
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
23264
|
+
/* istanbul ignore next */
|
|
23265
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
23266
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
23267
|
+
}
|
|
23268
|
+
this.priorityLabel = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.priorityLabel);
|
|
23269
|
+
}
|
|
23270
|
+
static get schema() { return schemaTransmitQosPriorityDataType; }
|
|
23271
|
+
encode(stream) {
|
|
23272
|
+
/* NEEDED */ super.encode(stream);
|
|
23273
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.priorityLabel, stream);
|
|
23274
|
+
}
|
|
23275
|
+
decode(stream) {
|
|
23276
|
+
// call base class implementation first
|
|
23277
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
23278
|
+
this.priorityLabel = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.priorityLabel);
|
|
23279
|
+
}
|
|
23280
|
+
get schema() { return schemaTransmitQosPriorityDataType; }
|
|
23281
|
+
}
|
|
23282
|
+
exports.TransmitQosPriorityDataType = TransmitQosPriorityDataType;
|
|
23283
|
+
TransmitQosPriorityDataType.possibleFields = [
|
|
23284
|
+
"priorityLabel"
|
|
23285
|
+
];
|
|
23286
|
+
TransmitQosPriorityDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23605, 0);
|
|
23287
|
+
TransmitQosPriorityDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23857, 0);
|
|
23288
|
+
TransmitQosPriorityDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23925, 0);
|
|
23289
|
+
TransmitQosPriorityDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(23993, 0);
|
|
23290
|
+
TransmitQosPriorityDataType.schema.dataTypeNodeId = TransmitQosPriorityDataType.dataTypeNodeId;
|
|
23291
|
+
TransmitQosPriorityDataType.schema.encodingDefaultBinary = TransmitQosPriorityDataType.encodingDefaultBinary;
|
|
23292
|
+
TransmitQosPriorityDataType.schema.encodingDefaultXml = TransmitQosPriorityDataType.encodingDefaultXml;
|
|
23293
|
+
TransmitQosPriorityDataType.schema.encodingDefaultJson = TransmitQosPriorityDataType.encodingDefaultJson;
|
|
23294
|
+
(0, node_opcua_factory_1.registerClassDefinition)(TransmitQosPriorityDataType.dataTypeNodeId, "TransmitQosPriorityDataType", TransmitQosPriorityDataType);
|
|
23295
|
+
// --------------------------------------------------------------------------------------------
|
|
21785
23296
|
const schemaTrustListDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
21786
23297
|
name: "TrustListDataType",
|
|
21787
23298
|
baseType: "ExtensionObject",
|
|
@@ -22518,6 +24029,66 @@ UnregisterNodesResponse.schema.encodingDefaultXml = UnregisterNodesResponse.enco
|
|
|
22518
24029
|
UnregisterNodesResponse.schema.encodingDefaultJson = UnregisterNodesResponse.encodingDefaultJson;
|
|
22519
24030
|
(0, node_opcua_factory_1.registerClassDefinition)(UnregisterNodesResponse.dataTypeNodeId, "UnregisterNodesResponse", UnregisterNodesResponse);
|
|
22520
24031
|
// --------------------------------------------------------------------------------------------
|
|
24032
|
+
const schemaUnsignedRationalNumber = (0, node_opcua_factory_1.buildStructuredType)({
|
|
24033
|
+
name: "UnsignedRationalNumber",
|
|
24034
|
+
baseType: "ExtensionObject",
|
|
24035
|
+
fields: [
|
|
24036
|
+
{
|
|
24037
|
+
name: "numerator",
|
|
24038
|
+
fieldType: "UInt32",
|
|
24039
|
+
},
|
|
24040
|
+
{
|
|
24041
|
+
name: "denominator",
|
|
24042
|
+
fieldType: "UInt32",
|
|
24043
|
+
},
|
|
24044
|
+
]
|
|
24045
|
+
});
|
|
24046
|
+
class UnsignedRationalNumber extends node_opcua_extension_object_1.ExtensionObject {
|
|
24047
|
+
constructor(options) {
|
|
24048
|
+
super(options);
|
|
24049
|
+
if (options === null) {
|
|
24050
|
+
this.numerator = 0;
|
|
24051
|
+
this.denominator = 0;
|
|
24052
|
+
return;
|
|
24053
|
+
}
|
|
24054
|
+
const schema = UnsignedRationalNumber.schema;
|
|
24055
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
24056
|
+
/* istanbul ignore next */
|
|
24057
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
24058
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
24059
|
+
}
|
|
24060
|
+
this.numerator = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.numerator);
|
|
24061
|
+
this.denominator = (0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.denominator);
|
|
24062
|
+
}
|
|
24063
|
+
static get schema() { return schemaUnsignedRationalNumber; }
|
|
24064
|
+
encode(stream) {
|
|
24065
|
+
/* NEEDED */ super.encode(stream);
|
|
24066
|
+
(0, node_opcua_basic_types_1.encodeUInt32)(this.numerator, stream);
|
|
24067
|
+
(0, node_opcua_basic_types_1.encodeUInt32)(this.denominator, stream);
|
|
24068
|
+
}
|
|
24069
|
+
decode(stream) {
|
|
24070
|
+
// call base class implementation first
|
|
24071
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
24072
|
+
this.numerator = (0, node_opcua_basic_types_1.decodeUInt32)(stream, this.numerator);
|
|
24073
|
+
this.denominator = (0, node_opcua_basic_types_1.decodeUInt32)(stream, this.denominator);
|
|
24074
|
+
}
|
|
24075
|
+
get schema() { return schemaUnsignedRationalNumber; }
|
|
24076
|
+
}
|
|
24077
|
+
exports.UnsignedRationalNumber = UnsignedRationalNumber;
|
|
24078
|
+
UnsignedRationalNumber.possibleFields = [
|
|
24079
|
+
"numerator",
|
|
24080
|
+
"denominator"
|
|
24081
|
+
];
|
|
24082
|
+
UnsignedRationalNumber.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24107, 0);
|
|
24083
|
+
UnsignedRationalNumber.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24110, 0);
|
|
24084
|
+
UnsignedRationalNumber.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24122, 0);
|
|
24085
|
+
UnsignedRationalNumber.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24134, 0);
|
|
24086
|
+
UnsignedRationalNumber.schema.dataTypeNodeId = UnsignedRationalNumber.dataTypeNodeId;
|
|
24087
|
+
UnsignedRationalNumber.schema.encodingDefaultBinary = UnsignedRationalNumber.encodingDefaultBinary;
|
|
24088
|
+
UnsignedRationalNumber.schema.encodingDefaultXml = UnsignedRationalNumber.encodingDefaultXml;
|
|
24089
|
+
UnsignedRationalNumber.schema.encodingDefaultJson = UnsignedRationalNumber.encodingDefaultJson;
|
|
24090
|
+
(0, node_opcua_factory_1.registerClassDefinition)(UnsignedRationalNumber.dataTypeNodeId, "UnsignedRationalNumber", UnsignedRationalNumber);
|
|
24091
|
+
// --------------------------------------------------------------------------------------------
|
|
22521
24092
|
var PerformUpdateType;
|
|
22522
24093
|
(function (PerformUpdateType) {
|
|
22523
24094
|
PerformUpdateType[PerformUpdateType["Insert"] = 1] = "Insert";
|
|
@@ -22774,6 +24345,107 @@ UpdateStructureDataDetails.schema.encodingDefaultXml = UpdateStructureDataDetail
|
|
|
22774
24345
|
UpdateStructureDataDetails.schema.encodingDefaultJson = UpdateStructureDataDetails.encodingDefaultJson;
|
|
22775
24346
|
(0, node_opcua_factory_1.registerClassDefinition)(UpdateStructureDataDetails.dataTypeNodeId, "UpdateStructureDataDetails", UpdateStructureDataDetails);
|
|
22776
24347
|
// --------------------------------------------------------------------------------------------
|
|
24348
|
+
var UserConfigurationMask;
|
|
24349
|
+
(function (UserConfigurationMask) {
|
|
24350
|
+
UserConfigurationMask[UserConfigurationMask["None"] = 0] = "None";
|
|
24351
|
+
UserConfigurationMask[UserConfigurationMask["NoDelete"] = 1] = "NoDelete";
|
|
24352
|
+
UserConfigurationMask[UserConfigurationMask["Disabled"] = 2] = "Disabled";
|
|
24353
|
+
UserConfigurationMask[UserConfigurationMask["NoChangeByUser"] = 4] = "NoChangeByUser";
|
|
24354
|
+
UserConfigurationMask[UserConfigurationMask["MustChangePassword"] = 8] = "MustChangePassword";
|
|
24355
|
+
})(UserConfigurationMask = exports.UserConfigurationMask || (exports.UserConfigurationMask = {}));
|
|
24356
|
+
const schemaUserConfigurationMask = {
|
|
24357
|
+
enumValues: UserConfigurationMask,
|
|
24358
|
+
flaggable: true,
|
|
24359
|
+
name: "UserConfigurationMask"
|
|
24360
|
+
};
|
|
24361
|
+
function decodeUserConfigurationMask(stream, _value) {
|
|
24362
|
+
return stream.readUInt32();
|
|
24363
|
+
}
|
|
24364
|
+
function encodeUserConfigurationMask(value, stream) {
|
|
24365
|
+
stream.writeUInt32(value);
|
|
24366
|
+
}
|
|
24367
|
+
exports._enumerationUserConfigurationMask = (0, node_opcua_factory_1.registerEnumeration)(schemaUserConfigurationMask);
|
|
24368
|
+
(0, node_opcua_assert_1.assert)(exports._enumerationUserConfigurationMask.isFlaggable === true);
|
|
24369
|
+
// --------------------------------------------------------------------------------------------
|
|
24370
|
+
const schemaUserManagementDataType = (0, node_opcua_factory_1.buildStructuredType)({
|
|
24371
|
+
name: "UserManagementDataType",
|
|
24372
|
+
baseType: "ExtensionObject",
|
|
24373
|
+
fields: [
|
|
24374
|
+
{
|
|
24375
|
+
name: "userName",
|
|
24376
|
+
fieldType: "UAString",
|
|
24377
|
+
},
|
|
24378
|
+
{
|
|
24379
|
+
name: "userConfiguration",
|
|
24380
|
+
fieldType: "UserConfigurationMask",
|
|
24381
|
+
},
|
|
24382
|
+
{
|
|
24383
|
+
name: "description",
|
|
24384
|
+
fieldType: "UAString",
|
|
24385
|
+
},
|
|
24386
|
+
]
|
|
24387
|
+
});
|
|
24388
|
+
class UserManagementDataType extends node_opcua_extension_object_1.ExtensionObject {
|
|
24389
|
+
constructor(options) {
|
|
24390
|
+
super(options);
|
|
24391
|
+
if (options === null) {
|
|
24392
|
+
this.userName = null;
|
|
24393
|
+
this.userConfiguration = 0;
|
|
24394
|
+
this.description = null;
|
|
24395
|
+
return;
|
|
24396
|
+
}
|
|
24397
|
+
const schema = UserManagementDataType.schema;
|
|
24398
|
+
options = (schema.constructHook ? schema.constructHook(options) : options) || {};
|
|
24399
|
+
/* istanbul ignore next */
|
|
24400
|
+
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
24401
|
+
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
24402
|
+
}
|
|
24403
|
+
this.userName = (0, node_opcua_factory_1.initialize_field)(schema.fields[0], options === null || options === void 0 ? void 0 : options.userName);
|
|
24404
|
+
this.userConfiguration = this.setUserConfiguration((0, node_opcua_factory_1.initialize_field)(schema.fields[1], options === null || options === void 0 ? void 0 : options.userConfiguration));
|
|
24405
|
+
this.description = (0, node_opcua_factory_1.initialize_field)(schema.fields[2], options === null || options === void 0 ? void 0 : options.description);
|
|
24406
|
+
}
|
|
24407
|
+
static get schema() { return schemaUserManagementDataType; }
|
|
24408
|
+
encode(stream) {
|
|
24409
|
+
/* NEEDED */ super.encode(stream);
|
|
24410
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.userName, stream);
|
|
24411
|
+
encodeUserConfigurationMask(this.userConfiguration, stream);
|
|
24412
|
+
(0, node_opcua_basic_types_1.encodeUAString)(this.description, stream);
|
|
24413
|
+
}
|
|
24414
|
+
decode(stream) {
|
|
24415
|
+
// call base class implementation first
|
|
24416
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
24417
|
+
this.userName = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.userName);
|
|
24418
|
+
this.userConfiguration = decodeUserConfigurationMask(stream, this.userConfiguration);
|
|
24419
|
+
this.description = (0, node_opcua_basic_types_1.decodeUAString)(stream, this.description);
|
|
24420
|
+
}
|
|
24421
|
+
// Define Enumeration setters
|
|
24422
|
+
setUserConfiguration(value) {
|
|
24423
|
+
const coercedValue = exports._enumerationUserConfigurationMask.get(value);
|
|
24424
|
+
/* istanbul ignore next */
|
|
24425
|
+
if (coercedValue === undefined || coercedValue === null) {
|
|
24426
|
+
throw new Error("value cannot be coerced to UserConfigurationMask :" + value);
|
|
24427
|
+
}
|
|
24428
|
+
this.userConfiguration = coercedValue.value;
|
|
24429
|
+
return this.userConfiguration;
|
|
24430
|
+
}
|
|
24431
|
+
get schema() { return schemaUserManagementDataType; }
|
|
24432
|
+
}
|
|
24433
|
+
exports.UserManagementDataType = UserManagementDataType;
|
|
24434
|
+
UserManagementDataType.possibleFields = [
|
|
24435
|
+
"userName",
|
|
24436
|
+
"userConfiguration",
|
|
24437
|
+
"description"
|
|
24438
|
+
];
|
|
24439
|
+
UserManagementDataType.dataTypeNodeId = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24281, 0);
|
|
24440
|
+
UserManagementDataType.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24292, 0);
|
|
24441
|
+
UserManagementDataType.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24296, 0);
|
|
24442
|
+
UserManagementDataType.encodingDefaultJson = (0, node_opcua_nodeid_1.makeExpandedNodeId)(24300, 0);
|
|
24443
|
+
UserManagementDataType.schema.dataTypeNodeId = UserManagementDataType.dataTypeNodeId;
|
|
24444
|
+
UserManagementDataType.schema.encodingDefaultBinary = UserManagementDataType.encodingDefaultBinary;
|
|
24445
|
+
UserManagementDataType.schema.encodingDefaultXml = UserManagementDataType.encodingDefaultXml;
|
|
24446
|
+
UserManagementDataType.schema.encodingDefaultJson = UserManagementDataType.encodingDefaultJson;
|
|
24447
|
+
(0, node_opcua_factory_1.registerClassDefinition)(UserManagementDataType.dataTypeNodeId, "UserManagementDataType", UserManagementDataType);
|
|
24448
|
+
// --------------------------------------------------------------------------------------------
|
|
22777
24449
|
const schemaUserNameIdentityToken = (0, node_opcua_factory_1.buildStructuredType)({
|
|
22778
24450
|
name: "UserNameIdentityToken",
|
|
22779
24451
|
baseType: "UserIdentityToken",
|