module import { Certificate } from "node-opcua-crypto" ; import { SignedSoftwareCertificate } from "node-opcua-types" ; /**
 */ export interface OperationLimitsOptions { maxNodesPerRead ? : number ; maxNodesPerBrowse ? : number ; maxNodesPerWrite ? : number ; maxNodesPerMethodCall ? : number ; maxNodesPerRegisterNodes ? : number ; maxNodesPerNodeManagement ? : number ; maxMonitoredItemsPerCall ? : number ; maxNodesPerHistoryReadData ? : number ; maxNodesPerHistoryReadEvents ? : number ; maxNodesPerHistoryUpdateData ? : number ; maxNodesPerHistoryUpdateEvents ? : number ; maxNodesPerTranslateBrowsePathsToNodeIds ? : number ; } export class OperationLimits { public maxNodesPerRead : number ; public maxNodesPerBrowse : number ; public maxNodesPerWrite : number ; public maxNodesPerMethodCall : number ; public maxNodesPerRegisterNodes : number ; public maxNodesPerNodeManagement : number ; public maxMonitoredItemsPerCall : number ; public maxNodesPerHistoryReadData : number ; public maxNodesPerHistoryReadEvents : number ; public maxNodesPerHistoryUpdateData : number ; public maxNodesPerHistoryUpdateEvents : number ; public maxNodesPerTranslateBrowsePathsToNodeIds : number ; constructor ( options ) { property default this . maxNodesPerRead = options . maxNodesPerRead || 0 ; property default this . maxNodesPerWrite = options . maxNodesPerWrite || 0 ; property default this . maxNodesPerMethodCall = options . maxNodesPerMethodCall || 0 ; property default this . maxNodesPerBrowse = options . maxNodesPerBrowse || 0 ; property default this . maxNodesPerRegisterNodes = options . maxNodesPerRegisterNodes || 0 ; property default this . maxNodesPerNodeManagement = options . maxNodesPerNodeManagement || 0 ; property default this . maxMonitoredItemsPerCall = options . maxMonitoredItemsPerCall || 0 ; property this . maxNodesPerHistoryReadData = options . maxNodesPerHistoryReadData || 0 ; property default this . maxNodesPerHistoryReadEvents = options . maxNodesPerHistoryReadEvents || 0 ; property default this . maxNodesPerHistoryUpdateData = options . maxNodesPerHistoryUpdateData || 0 ; property default this . maxNodesPerHistoryUpdateEvents = options . maxNodesPerHistoryUpdateEvents || 0 ; property default this . maxNodesPerTranslateBrowsePathsToNodeIds = options . maxNodesPerTranslateBrowsePathsToNodeIds || 0 ; } } export interface ServerCapabilitiesOptions { maxBrowseContinuationPoints ? : number ; maxHistoryContinuationPoints ? : number ; maxStringLength ? : number ; maxArrayLength ? : number ; maxByteStringLength ? : number ; maxQueryContinuationPoints ? : number ; minSupportedSampleRate ? : number ; operationLimits ? : OperationLimitsOptions ; serverProfileArray ? : string [ ] ; localeIdArray ? : string [ ] ; softwareCertificates ? : SignedSoftwareCertificate [ ] ; } /**
 */ export class ServerCapabilities { public maxBrowseContinuationPoints : number ; public maxHistoryContinuationPoints : number ; public maxStringLength : number ; public maxArrayLength : number ; public maxByteStringLength : number ; public maxQueryContinuationPoints : number ; public minSupportedSampleRate : number ; public operationLimits : OperationLimits ; public serverProfileArray : string [ ] ; public localeIdArray : string [ ] ; public softwareCertificates : SignedSoftwareCertificate [ ] ; constructor ( options ) { options = options || { } ; options . operationLimits = options . operationLimits || { } ; this . serverProfileArray = options . serverProfileArray || [ ] ; this . localeIdArray = options . localeIdArray || [ ] ; this . softwareCertificates = options . softwareCertificates || [ ] ; property this . maxArrayLength = options . maxArrayLength || 0 ; property this . maxStringLength = options . maxStringLength || 0 ; property this . maxByteStringLength = options . maxByteStringLength || 0 ; property this . maxBrowseContinuationPoints = options . maxBrowseContinuationPoints || 0 ; property this . maxQueryContinuationPoints = options . maxQueryContinuationPoints || 0 ; property this . maxHistoryContinuationPoints = options . maxHistoryContinuationPoints || 0 ; property this . operationLimits = new OperationLimits ( options . operationLimits ) ; this . minSupportedSampleRate = 100 ; } }