Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function main() {
try {
// await build_generated_folder();
const filename = path.join(__dirname, "../xmlschemas/Opc.Ua.Types.bsd");
const generatedTypescriptFilename = path.join(__dirname, "_generated_opcua_types.ts");
await generate(filename, generatedTypescriptFilename);
} catch (err) {
console.log(err);
}
}
main().then().catch();
const generator = require("node-opcua-generator");
// node Management service
generator.registerObject("AddNodesItem");
generator.registerObject("AddNodesRequest");
generator.registerObject("AddNodesResult");
generator.registerObject("AddNodesResponse");
generator.registerObject("AddReferencesItem");
generator.registerObject("AddReferencesRequest");
generator.registerObject("AddReferencesResponse");
generator.registerObject("DeleteNodesItem");
generator.registerObject("DeleteNodesRequest");
generator.registerObject("DeleteNodesResponse");
generator.registerObject("DeleteReferencesItem");
generator.registerObject("DeleteReferencesRequest");
generator.registerObject("DeleteReferencesResponse");
const generator = require("node-opcua-generator");
require("node-opcua-service-secure-channel");
require("node-opcua-service-filter");
// Historizing service
generator.registerObject("AggregateConfiguration");
generator.registerObject("HistoryReadValueId");
generator.registerObject("HistoryReadRequest");
generator.registerObject("HistoryReadResult");
generator.registerObject("HistoryReadResponse");
generator.registerObject("HistoryReadDetails");
//Xx generator.registerObject("MonitoringFilter");
// history
generator.registerObject("ModificationInfo");
generator.registerObject("HistoryData");
generator.registerObject("HistoryModifiedData");
generator.registerObject("HistoryUpdateResult");
generator.registerObject("HistoryUpdateRequest");
generator.registerObject("HistoryUpdateResponse");
generator.registerObject("ReadRawModifiedDetails");
generator.registerObject("ReadProcessedDetails");
generator.registerObject("ReadAtTimeDetails");
generator.registerObject("ReadEventDetails");
const generator = require("node-opcua-generator");
require("node-opcua-service-secure-channel");
require("node-opcua-service-filter");
// Historizing service
generator.registerObject("AggregateConfiguration");
generator.registerObject("HistoryReadValueId");
generator.registerObject("HistoryReadRequest");
generator.registerObject("HistoryReadResult");
generator.registerObject("HistoryReadResponse");
generator.registerObject("HistoryReadDetails");
//Xx generator.registerObject("MonitoringFilter");
// history
generator.registerObject("ModificationInfo");
generator.registerObject("HistoryData");
generator.registerObject("HistoryModifiedData");
generator.registerObject("HistoryUpdateResult");
generator.registerObject("HistoryUpdateRequest");
generator.registerObject("HistoryUpdateResponse");
generator.registerObject("ReadRawModifiedDetails");
generator.registerObject("ReadProcessedDetails");
generator.registerObject("ReadAtTimeDetails");
generator.registerObject("ReadEventDetails");
const generator = require("node-opcua-generator");
require("node-opcua-basic-types");
require("node-opcua-variant");
generator.registerObject("ReferenceDescription");
generator.registerObject("ViewDescription");
generator.registerObject("BrowseDescription");
generator.registerObject("BrowseResult");
generator.registerObject("BrowseRequest");
generator.registerObject("BrowseResponse");
generator.registerObject("BrowseNextRequest");
generator.registerObject("BrowseNextResponse");
const generator = require("node-opcua-generator");
require("node-opcua-basic-types");
generator.registerObject("LocalizedText");
generator.registerObject("QualifiedName");
generator.registerObject("DiagnosticInfo");
generator.registerObject("EnumValueType");
generator.registerObject("TimeZone");
const generator = require("node-opcua-generator");
require("node-opcua-basic-types");
generator.registerObject("LocalizedText");
generator.registerObject("QualifiedName");
generator.registerObject("DiagnosticInfo");
generator.registerObject("EnumValueType");
generator.registerObject("TimeZone");
const generator = require("node-opcua-generator");
require("node-opcua-data-model");
generator.registerObject("UserTokenPolicy");
generator.registerObject("ApplicationDescription");
generator.registerObject("EndpointDescription");
generator.registerObject("GetEndpointsRequest");
generator.registerObject("GetEndpointsResponse");
const generator = require("node-opcua-generator");
generator.registerObject("WriteValue");
generator.registerObject("WriteRequest");
generator.registerObject("WriteResponse");
generator.registerObject("AsymmetricAlgorithmSecurityHeader");
generator.registerObject("SymmetricAlgorithmSecurityHeader");
generator.registerObject("SequenceHeader");
generator.registerObject("ErrorMessage");
//xx generator.registerObject("DiagnosticInfo");
generator.registerObject("RequestHeader");
generator.registerObject("ResponseHeader");
generator.registerObject("ChannelSecurityToken");
generator.registerObject("SignatureData");
generator.registerObject("OpenSecureChannelRequest");
generator.registerObject("OpenSecureChannelResponse");
generator.registerObject("CloseSecureChannelRequest");
generator.registerObject("CloseSecureChannelResponse");
generator.registerObject("ServiceFault");