node-opcua-data-model
Advanced tools
Comparing version 2.55.0 to 2.56.0
@@ -1,1 +0,1 @@ | ||
export declare function _make_flag(str: string | number | null, noneValue: number, T: any): number; | ||
export declare function _make_flag(str: string | number | null, noneValue: number, T: Record<string | number, number | string>): number; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decodeAccessLevelExFlag = exports.encodeAccessLevelExFlag = exports.accessLevelExFlagToString = exports.randomAccessLevelEx = exports.makeAccessLevelExFlag = exports.AccessLevelExFlag = void 0; | ||
const node_opcua_factory_1 = require("node-opcua-factory"); | ||
const access_level_1 = require("./access_level"); | ||
const node_opcua_factory_1 = require("node-opcua-factory"); | ||
const _make_flag_1 = require("./_make_flag"); | ||
@@ -67,3 +67,3 @@ /** | ||
function encodeAccessLevelExFlag(value, stream) { | ||
stream.writeUInt32(value & 0xFFFFF); | ||
stream.writeUInt32(value & 0xfffff); | ||
} | ||
@@ -70,0 +70,0 @@ exports.encodeAccessLevelExFlag = encodeAccessLevelExFlag; |
@@ -5,3 +5,3 @@ /** | ||
import { QualifiedNameLike } from "./qualified_name"; | ||
export declare function isDataEncoding(dataEncoding: any): boolean; | ||
export declare function isDataEncoding(dataEncoding: unknown): boolean; | ||
export declare function isValidDataEncoding(dataEncoding?: string | null | QualifiedNameLike): boolean; |
@@ -5,3 +5,3 @@ "use strict"; | ||
function isDataEncoding(dataEncoding) { | ||
return dataEncoding && typeof dataEncoding.name === "string"; | ||
return !!dataEncoding && typeof dataEncoding === "object" && typeof dataEncoding.name === "string"; | ||
} | ||
@@ -14,3 +14,3 @@ exports.isDataEncoding = isDataEncoding; | ||
} | ||
if (dataEncoding.hasOwnProperty("name")) { | ||
if (Object.prototype.hasOwnProperty.call(dataEncoding, "name")) { | ||
dataEncoding = dataEncoding.name; | ||
@@ -17,0 +17,0 @@ } |
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; | ||
import { BaseUAObject, StructuredTypeSchema } from "node-opcua-factory"; | ||
import { BaseUAObject, DecodeDebugOptions, StructuredTypeSchema } from "node-opcua-factory"; | ||
import { StatusCode } from "node-opcua-status-code"; | ||
@@ -26,3 +26,3 @@ import { Int32, UAString } from "node-opcua-basic-types"; | ||
decode(stream: BinaryStream): void; | ||
decodeDebug(stream: BinaryStream, options: any): void; | ||
decodeDebug(stream: BinaryStream, options: DecodeDebugOptions): void; | ||
} | ||
@@ -29,0 +29,0 @@ export interface DiagnosticInfoOptions { |
import { LocaleId, UAString } from "node-opcua-basic-types"; | ||
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; | ||
import { BaseUAObject, StructuredTypeSchema } from "node-opcua-factory"; | ||
import { BaseUAObject, DecodeDebugOptions, StructuredTypeSchema } from "node-opcua-factory"; | ||
export declare function coerceLocalizedText(value?: null | string | LocalizedTextOptions): LocalizedText | null; | ||
@@ -13,3 +13,3 @@ export interface LocalizedTextOptions { | ||
static possibleFields: string[]; | ||
static coerce(value: any): LocalizedText | null; | ||
static coerce(value?: null | string | LocalizedTextOptions): LocalizedText | null; | ||
locale: LocaleId; | ||
@@ -20,3 +20,3 @@ text: UAString; | ||
encode(stream: OutputBinaryStream): void; | ||
decodeDebug(stream: BinaryStream, options: any): void; | ||
decodeDebug(stream: BinaryStream, options: DecodeDebugOptions): void; | ||
decode(stream: BinaryStream): void; | ||
@@ -23,0 +23,0 @@ } |
@@ -120,4 +120,4 @@ "use strict"; | ||
else { | ||
(0, node_opcua_assert_1.assert)(value.hasOwnProperty("namespaceIndex")); | ||
(0, node_opcua_assert_1.assert)(value.hasOwnProperty("name")); | ||
(0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(value, "namespaceIndex")); | ||
(0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(value, "name")); | ||
return new QualifiedName(value); | ||
@@ -124,0 +124,0 @@ } |
@@ -35,3 +35,3 @@ "use strict"; | ||
WriteMask[WriteMask["AccessRestrictions"] = 16777216] = "AccessRestrictions"; | ||
WriteMask[WriteMask["AccessLevelEx"] = 33554432] = "AccessLevelEx"; | ||
WriteMask[WriteMask["AccessLevelEx"] = 33554432] = "AccessLevelEx"; // Indicates if the AccessLevelEx Attribute is writable. | ||
// It does not apply for | ||
@@ -38,0 +38,0 @@ // Variables since this is handled by the AccessLevel and UserAccessLevel |
{ | ||
"name": "node-opcua-data-model", | ||
"version": "2.55.0", | ||
"version": "2.56.0", | ||
"description": "pure nodejs OPCUA SDK - module -data-model", | ||
@@ -8,2 +8,4 @@ "scripts": { | ||
"test": "mocha", | ||
"lint": "eslint source test", | ||
"format": "prettier --write source test", | ||
"clean": "node -e \"require('rimraf').sync('_generated_');require('rimraf').sync('dist');\"", | ||
@@ -16,12 +18,12 @@ "coverage": "npx nyc node ../../node_modules/mocha/bin/mocha" | ||
"node-opcua-assert": "2.55.0", | ||
"node-opcua-basic-types": "2.55.0", | ||
"node-opcua-basic-types": "2.56.0", | ||
"node-opcua-binary-stream": "2.55.0", | ||
"node-opcua-enum": "2.55.0", | ||
"node-opcua-factory": "2.55.0", | ||
"node-opcua-factory": "2.56.0", | ||
"node-opcua-nodeid": "2.55.0", | ||
"node-opcua-status-code": "2.55.0", | ||
"node-opcua-utils": "2.55.0" | ||
"node-opcua-status-code": "2.56.0", | ||
"node-opcua-utils": "2.56.0" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-packet-analyzer": "2.55.0", | ||
"node-opcua-packet-analyzer": "2.56.0", | ||
"should": "^13.2.3", | ||
@@ -45,3 +47,3 @@ "source-map-support": "^0.5.20" | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "28fdbfe1c5306fd0e69758ccacfa2c6d1722115c" | ||
"gitHead": "9f6eac1c658c0d182fbe03cf58f799af468615eb" | ||
} |
@@ -1,2 +0,2 @@ | ||
export function _make_flag(str: string | number | null, noneValue: number, T: any): number { | ||
export function _make_flag(str: string | number | null, noneValue: number, T: Record<string | number, number | string>): number { | ||
if (typeof str === "number") { | ||
@@ -10,3 +10,3 @@ const value = str as number; | ||
let accessFlag: number = 0; | ||
let accessFlag = 0; | ||
@@ -24,2 +24,1 @@ if (str === "" || str === null) { | ||
} | ||
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; | ||
import { registerBasicType } from "node-opcua-factory"; | ||
import { _accessLevelFlagToString } from "./access_level"; | ||
import { registerBasicType } from "node-opcua-factory"; | ||
import { _make_flag} from "./_make_flag"; | ||
import { _make_flag } from "./_make_flag"; | ||
/** | ||
* from https://reference.opcfoundation.org/v104/Core/docs/Part3/8.58/: | ||
* | ||
* This is a subtype of the UInt32 DataType with the OptionSetValues Property defined. | ||
* It is used to indicate how the Value of a Variable can be accessed (read/write), | ||
* | ||
* This is a subtype of the UInt32 DataType with the OptionSetValues Property defined. | ||
* It is used to indicate how the Value of a Variable can be accessed (read/write), | ||
* if it contains current and/or historic data and its atomicity. | ||
* The AccessLevelExType DataType is an extended version of the AccessLevelType DataType and | ||
* The AccessLevelExType DataType is an extended version of the AccessLevelType DataType and | ||
* as such contains the 8 bits of the AccessLevelType as the first 8 bits. | ||
* The NonatomicRead, and NonatomicWrite Fields represent the atomicity of a Variable. | ||
* In general Atomicity is expected of OPC UA read and write operations. | ||
* In general Atomicity is expected of OPC UA read and write operations. | ||
* These Fields are used by systems, in particular hard-realtime controllers, which can not ensure atomicity. | ||
*/ | ||
export enum AccessLevelExFlag { | ||
CurrentRead = 0x01, // bit 0 : Indicate if the current value is readable (0 means not readable, 1 means readable). | ||
CurrentWrite = 0x02, // bit 1 : Indicate if the current value is writable (0 means not writable, 1 means writable). | ||
HistoryRead = 0x04, // bit 2 : Indicates if the history of the value is readable (0 means not readable, 1 means readable). | ||
HistoryWrite = 0x08, // bit 3 : Indicates if the history of the value is writable (0 means not writable, 1 means writable). | ||
export enum AccessLevelExFlag { | ||
CurrentRead = 0x01, // bit 0 : Indicate if the current value is readable (0 means not readable, 1 means readable). | ||
CurrentWrite = 0x02, // bit 1 : Indicate if the current value is writable (0 means not writable, 1 means writable). | ||
HistoryRead = 0x04, // bit 2 : Indicates if the history of the value is readable (0 means not readable, 1 means readable). | ||
HistoryWrite = 0x08, // bit 3 : Indicates if the history of the value is writable (0 means not writable, 1 means writable). | ||
SemanticChange = 0x10, // bit 4 : Indicates if the Variable used as Property generates SemanticChangeEvents | ||
StatusWrite = 0x20, // bit 5 : Indicates if the current StatusCode of the value is writable (0 means not writable, 1 means writable). | ||
StatusWrite = 0x20, // bit 5 : Indicates if the current StatusCode of the value is writable (0 means not writable, 1 means writable). | ||
TimestampWrite = 0x40, // bit 6 : Indicates if the current SourceTimestamp of the value is writable (0 means not writable, 1 means writable). | ||
// reserved bit 7 | ||
NonatomicRead = 0x80, // bit 8 Indicates non-atomicity for Read access (0 means that atomicity is assured). | ||
NonatomicWrite = 0x100, // bit 9 Indicates non-atomicity for Write access (0 means that atomicity is assured). | ||
WriteFullArrayOnly= 0x200, // bit 10 Indicates if Write of IndexRange is supported.(0 means Write of IndexRange is supported) | ||
NoSubDataTypes = 0x400, // bit 11 | ||
NonatomicRead = 0x80, // bit 8 Indicates non-atomicity for Read access (0 means that atomicity is assured). | ||
NonatomicWrite = 0x100, // bit 9 Indicates non-atomicity for Write access (0 means that atomicity is assured). | ||
WriteFullArrayOnly = 0x200, // bit 10 Indicates if Write of IndexRange is supported.(0 means Write of IndexRange is supported) | ||
NoSubDataTypes = 0x400, // bit 11 | ||
// Reserved for future use. Shall always be zero. | ||
None = 0x800, | ||
None = 0x800 | ||
} | ||
// @example | ||
// makeAccessLevelFlag("CurrentRead | CurrentWrite").should.eql(0x03); | ||
export function makeAccessLevelExFlag(str: string | number | null): AccessLevelExFlag { | ||
return _make_flag(str,AccessLevelExFlag.None, AccessLevelExFlag) as AccessLevelExFlag; | ||
return _make_flag(str, AccessLevelExFlag.None, AccessLevelExFlag) as AccessLevelExFlag; | ||
} | ||
@@ -46,3 +45,2 @@ | ||
export function accessLevelExFlagToString(accessLevelFlag: AccessLevelExFlag): string { | ||
@@ -70,5 +68,4 @@ const retVal = _accessLevelFlagToString(accessLevelFlag); | ||
export function encodeAccessLevelExFlag(value: AccessLevelExFlag, stream: OutputBinaryStream) { | ||
stream.writeUInt32(value & 0xFFFFF); | ||
export function encodeAccessLevelExFlag(value: AccessLevelExFlag, stream: OutputBinaryStream): void { | ||
stream.writeUInt32(value & 0xfffff); | ||
} | ||
@@ -90,2 +87,2 @@ export function decodeAccessLevelExFlag(stream: BinaryStream): AccessLevelExFlag { | ||
random: randomAccessLevelEx | ||
}); | ||
}); |
@@ -10,17 +10,22 @@ // tslint:disable:no-bitwise | ||
export enum AccessLevelFlag { | ||
CurrentRead = 0x01, // bit 0 : Indicate if the current value is readable (0 means not readable, 1 means readable). | ||
CurrentWrite = 0x02, // bit 1 : Indicate if the current value is writable (0 means not writable, 1 means writable). | ||
HistoryRead = 0x04, // bit 2 : Indicates if the history of the value is readable (0 means not readable, 1 means readable). | ||
HistoryWrite = 0x08, // bit 3 : Indicates if the history of the value is writable (0 means not writable, 1 means writable). | ||
CurrentRead = 0x01, // bit 0 : Indicate if the current value is readable (0 means not readable, 1 means readable). | ||
CurrentWrite = 0x02, // bit 1 : Indicate if the current value is writable (0 means not writable, 1 means writable). | ||
HistoryRead = 0x04, // bit 2 : Indicates if the history of the value is readable (0 means not readable, 1 means readable). | ||
HistoryWrite = 0x08, // bit 3 : Indicates if the history of the value is writable (0 means not writable, 1 means writable). | ||
SemanticChange = 0x10, // bit 4 : Indicates if the Variable used as Property generates SemanticChangeEvents | ||
StatusWrite = 0x20, // bit 5 : Indicates if the current StatusCode of the value is writable (0 means not writable, 1 means writable). | ||
StatusWrite = 0x20, // bit 5 : Indicates if the current StatusCode of the value is writable (0 means not writable, 1 means writable). | ||
TimestampWrite = 0x40, // bit 6 : Indicates if the current SourceTimestamp of the value is writable (0 means not writable, 1 means writable). | ||
// reserved bit 7 | ||
NONE = 0x800, // Deprecated | ||
None = 0x800, | ||
NONE = 0x800, // Deprecated | ||
None = 0x800 | ||
} | ||
export type AccessLevelFlagString = "CurrentRead" |"CurrentWrite" | "HistoryRead" | "HistoryWrite" | "StatusWrite" | ||
/* | "SemanticChange" */| "TimestampWrite"; | ||
export type AccessLevelFlagString = | ||
| "CurrentRead" | ||
| "CurrentWrite" | ||
| "HistoryRead" | ||
| "HistoryWrite" | ||
| "StatusWrite" | ||
/* | "SemanticChange" */ | ||
| "TimestampWrite"; | ||
@@ -33,3 +38,3 @@ export function convertAccessLevelFlagToByte(accessLevel: AccessLevelFlag): number { | ||
export function makeAccessLevelFlag(str: string | number | null): AccessLevelFlag { | ||
return _make_flag(str,AccessLevelFlag.None, AccessLevelFlag) as AccessLevelFlag; | ||
return _make_flag(str, AccessLevelFlag.None, AccessLevelFlag) as AccessLevelFlag; | ||
} | ||
@@ -64,3 +69,3 @@ | ||
retVal.push("SemanticChange"); | ||
} | ||
} | ||
return retVal; | ||
@@ -80,3 +85,3 @@ } | ||
} | ||
export function encodeAccessLevelFlag(value: AccessLevelFlag, stream: OutputBinaryStream) { | ||
export function encodeAccessLevelFlag(value: AccessLevelFlag, stream: OutputBinaryStream): void { | ||
stream.writeUInt8(value & 0xff); | ||
@@ -83,0 +88,0 @@ } |
import { _make_flag } from "./_make_flag"; | ||
export enum AccessRestrictionsFlag { | ||
@@ -9,3 +8,3 @@ SigningRequired = 1, | ||
ApplyRestrictionsToBrowse = 8, | ||
None = 0x0, | ||
None = 0x0 | ||
} | ||
@@ -35,3 +34,2 @@ | ||
return retVal.join(" | "); | ||
} |
@@ -1,5 +0,1 @@ | ||
export { | ||
isValidAttributeId, | ||
attributeNameById, | ||
AttributeIds | ||
} from "node-opcua-basic-types"; | ||
export { isValidAttributeId, attributeNameById, AttributeIds } from "node-opcua-basic-types"; |
@@ -29,3 +29,3 @@ /** | ||
export function encodeBrowseDirection(value: BrowseDirection, stream: OutputBinaryStream) { | ||
export function encodeBrowseDirection(value: BrowseDirection, stream: OutputBinaryStream): void { | ||
stream.writeUInt32(value); | ||
@@ -32,0 +32,0 @@ } |
@@ -6,4 +6,4 @@ /** | ||
export function isDataEncoding(dataEncoding: any): boolean { | ||
return dataEncoding && typeof dataEncoding.name === "string"; | ||
export function isDataEncoding(dataEncoding: unknown): boolean { | ||
return !!dataEncoding && typeof dataEncoding === "object" && typeof (dataEncoding as any).name === "string"; | ||
} | ||
@@ -17,3 +17,3 @@ | ||
if ((dataEncoding as any).hasOwnProperty("name")) { | ||
if (Object.prototype.hasOwnProperty.call(dataEncoding as any, "name")) { | ||
dataEncoding = (dataEncoding as QualifiedNameOptions).name; | ||
@@ -20,0 +20,0 @@ } |
@@ -9,2 +9,3 @@ /** | ||
buildStructuredType, | ||
DecodeDebugOptions, | ||
parameters, | ||
@@ -123,9 +124,9 @@ registerSpecialVariantEncoder, | ||
} | ||
this.symbolicId = initialize_field(schema.fields[0], options.symbolicId); | ||
this.namespaceURI = initialize_field(schema.fields[1], options.namespaceURI); | ||
this.locale = initialize_field(schema.fields[2], options.locale); | ||
this.localizedText = initialize_field(schema.fields[3], options.localizedText); | ||
this.additionalInfo = initialize_field(schema.fields[4], options.additionalInfo); | ||
this.innerStatusCode = initialize_field(schema.fields[5], options.innerStatusCode); | ||
this.innerDiagnosticInfo = initialize_field(schema.fields[6], options.innerDiagnosticInfo); | ||
this.symbolicId = initialize_field(schema.fields[0], options.symbolicId) as Int32; | ||
this.namespaceURI = initialize_field(schema.fields[1], options.namespaceURI) as Int32; | ||
this.locale = initialize_field(schema.fields[2], options.locale) as Int32; | ||
this.localizedText = initialize_field(schema.fields[3], options.localizedText) as Int32; | ||
this.additionalInfo = initialize_field(schema.fields[4], options.additionalInfo) as UAString; | ||
this.innerStatusCode = initialize_field(schema.fields[5], options.innerStatusCode) as StatusCode; | ||
this.innerDiagnosticInfo = initialize_field(schema.fields[6], options.innerDiagnosticInfo) as DiagnosticInfo; | ||
} | ||
@@ -141,3 +142,3 @@ | ||
public decodeDebug(stream: BinaryStream, options: any): void { | ||
public decodeDebug(stream: BinaryStream, options: DecodeDebugOptions): void { | ||
decodeDebug_DiagnosticInfo(this, stream, options); | ||
@@ -239,3 +240,3 @@ } | ||
function decodeDebug_DiagnosticInfo(diagnosticInfo: DiagnosticInfo, stream: BinaryStream, options: any): void { | ||
function decodeDebug_DiagnosticInfo(diagnosticInfo: DiagnosticInfo, stream: BinaryStream, options: DecodeDebugOptions): void { | ||
const tracer = options.tracer; | ||
@@ -242,0 +243,0 @@ |
@@ -11,2 +11,3 @@ /** | ||
check_options_correctness_against_schema, | ||
DecodeDebugOptions, | ||
initialize_field, | ||
@@ -70,3 +71,3 @@ parameters, | ||
public static coerce(value: any): LocalizedText | null { | ||
public static coerce(value?: null | string | LocalizedTextOptions): LocalizedText | null { | ||
return coerceLocalizedText(value); | ||
@@ -104,3 +105,3 @@ } | ||
// OPCUA Part 6 $ 5.2.2.14 : localizedText have a special encoding | ||
public encode(stream: OutputBinaryStream) { | ||
public encode(stream: OutputBinaryStream): void { | ||
// tslint:disable:no-bitwise | ||
@@ -119,3 +120,3 @@ const encodingMask = getLocalizeText_EncodingByte(this); | ||
public decodeDebug(stream: BinaryStream, options: any) { | ||
public decodeDebug(stream: BinaryStream, options: DecodeDebugOptions): void { | ||
let cursorBefore; | ||
@@ -122,0 +123,0 @@ const tracer = options.tracer; |
@@ -15,10 +15,10 @@ /** | ||
export enum NodeClassMask { | ||
Object= (1 << 0), | ||
Variable = (1 << 1), | ||
Method= (1 << 2), | ||
ObjectType= (1 << 3), | ||
VariableType= (1 << 4), | ||
ReferenceType= (1 << 5), | ||
DataType= (1 << 6), | ||
View= (1 << 7) | ||
Object = 1 << 0, | ||
Variable = 1 << 1, | ||
Method = 1 << 2, | ||
ObjectType = 1 << 3, | ||
VariableType = 1 << 4, | ||
ReferenceType = 1 << 5, | ||
DataType = 1 << 6, | ||
View = 1 << 7 | ||
} | ||
@@ -25,0 +25,0 @@ |
@@ -7,11 +7,11 @@ /** | ||
export enum NodeClass { | ||
Unspecified= 0, // No classes are selected. | ||
Object= 1, // The node is an object. | ||
Variable= 2, // The node is a variable. | ||
Method= 4, // The node is a method. | ||
ObjectType= 8, // The node is an object type. | ||
VariableType= 16, // The node is an variable type. | ||
ReferenceType= 32, // The node is a reference type. | ||
DataType= 64, // The node is a data type. | ||
View= 128 // The node is a view. | ||
Unspecified = 0, // No classes are selected. | ||
Object = 1, // The node is an object. | ||
Variable = 2, // The node is a variable. | ||
Method = 4, // The node is a method. | ||
ObjectType = 8, // The node is an object type. | ||
VariableType = 16, // The node is an variable type. | ||
ReferenceType = 32, // The node is a reference type. | ||
DataType = 64, // The node is a data type. | ||
View = 128 // The node is a view. | ||
} | ||
@@ -18,0 +18,0 @@ export const schemaEnumNodeClass = { |
@@ -28,3 +28,3 @@ /** | ||
* The Client is allowed to write to Attributes other than the Value, | ||
* Historizing or RolePermissions Attribute if the WriteMask indicates that | ||
* Historizing or RolePermissions Attribute if the WriteMask indicates that | ||
* the Attribute is writeable. | ||
@@ -36,3 +36,3 @@ * This bit affects the value of a UserWriteMask Attribute. | ||
/** | ||
* The Client is allowed to write to the RolePermissions Attribute if the WriteMask | ||
* The Client is allowed to write to the RolePermissions Attribute if the WriteMask | ||
* indicates that the Attribute is writeable. | ||
@@ -86,3 +86,3 @@ * This bit affects the value of the UserWriteMask Attribute. | ||
/** | ||
* A Client only receives an Event if this bit is set on the Node identified | ||
* A Client only receives an Event if this bit is set on the Node identified | ||
* by the EventTypeId field and on the Node identified by the SourceNode field. | ||
@@ -93,4 +93,4 @@ * This Permission is only valid for EventType Nodes or SourceNodes. | ||
/** | ||
* The Client is allowed to call the Method if this bit is set on the Object or | ||
* ObjectType Node passed in the Call request and the Method Instance associated | ||
* The Client is allowed to call the Method if this bit is set on the Object or | ||
* ObjectType Node passed in the Call request and the Method Instance associated | ||
* with that Object or ObjectType. | ||
@@ -108,3 +108,3 @@ * This bit affects the UserExecutable Attribute when set on Method Node. | ||
* The Client is allowed to remove references from the Node. | ||
* This Permission is valid for all NodeClasses. | ||
* This Permission is valid for all NodeClasses. | ||
*/ | ||
@@ -125,4 +125,5 @@ RemoveReference = 16384, | ||
export const allPermissions = PermissionFlag.Browse | | ||
export const allPermissions = | ||
PermissionFlag.Browse | | ||
PermissionFlag.Browse | | ||
PermissionFlag.ReadRolePermissions | | ||
@@ -155,3 +156,2 @@ PermissionFlag.WriteAttribute | | ||
export function permissionFlagToString(permissionFlag: PermissionFlag): string { | ||
const retVal = []; | ||
@@ -158,0 +158,0 @@ for (const [key, value] of Object.entries(PermissionFlag)) { |
@@ -101,3 +101,3 @@ /** | ||
public isEmpty() { | ||
public isEmpty(): boolean { | ||
return !this.name || this.name.length === 0; | ||
@@ -158,4 +158,4 @@ } | ||
} else { | ||
assert(value.hasOwnProperty("namespaceIndex")); | ||
assert(value.hasOwnProperty("name")); | ||
assert(Object.prototype.hasOwnProperty.call(value, "namespaceIndex")); | ||
assert(Object.prototype.hasOwnProperty.call(value, "name")); | ||
return new QualifiedName(value); | ||
@@ -162,0 +162,0 @@ } |
@@ -11,8 +11,8 @@ /** | ||
export enum ResultMask { | ||
ReferenceType= 0x01, | ||
IsForward= 0x02, | ||
NodeClass= 0x04, | ||
BrowseName= 0x08, | ||
DisplayName= 0x10, | ||
TypeDefinition= 0x20 | ||
ReferenceType = 0x01, | ||
IsForward = 0x02, | ||
NodeClass = 0x04, | ||
BrowseName = 0x08, | ||
DisplayName = 0x10, | ||
TypeDefinition = 0x20 | ||
} | ||
@@ -19,0 +19,0 @@ export const schemaResultMask = { |
@@ -7,28 +7,28 @@ /** | ||
export enum WriteMask { | ||
AccessLevel = (1 << 0), // Indicates if the AccessLevel Attribute is writable. | ||
ArrayDimensions = (1 << 1), // Indicates if the ArrayDimensions Attribute is writable. | ||
BrowseName = (1 << 2), // Indicates if the BrowseName Attribute is writable. | ||
ContainsNoLoops = (1 << 3), // Indicates if the ContainsNoLoops Attribute is writable. | ||
DataType = (1 << 4), // Indicates if the DataType Attribute is writable. | ||
Description = (1 << 5), // Indicates if the Description Attribute is writable. | ||
DisplayName = (1 << 6), // Indicates if the DisplayName Attribute is writable. | ||
EventNotifier = (1 << 7), // Indicates if the EventNotifier Attribute is writable. | ||
Executable = (1 << 8), // Indicates if the Executable Attribute is writable. | ||
Historizing = (1 << 9), // Indicates if the Historizing Attribute is writable. | ||
InverseName = (1 << 10), // Indicates if the InverseName Attribute is writable. | ||
IsAbstract = (1 << 11), // Indicates if the IsAbstract Attribute is writable. | ||
MinimumSamplingInterval = (1 << 12), // Indicates if the MinimumSamplingInterval Attribute is writable. | ||
NodeClass = (1 << 13), // Indicates if the NodeClass Attribute is writable. | ||
NodeId = (1 << 14), // Indicates if the NodeId Attribute is writable. | ||
Symmetric = (1 << 15), // Indicates if the Symmetric Attribute is writable. | ||
UserAccessLevel = (1 << 16), // Indicates if the UserAccessLevel Attribute is writable. | ||
UserExecutable = (1 << 17), // Indicates if the UserExecutable Attribute is writable. | ||
UserWriteMask = (1 << 18), // Indicates if the UserWriteMask Attribute is writable. | ||
ValueRank = (1 << 19), // Indicates if the ValueRank Attribute is writable. | ||
WriteMask = (1 << 20), // Indicates if the WriteMask Attribute is writable. | ||
ValueForVariableType = (1 << 21), // Indicates if the Value Attribute is writable for a VariableType. | ||
DataTypeDefinition = (1 << 22), /// Indicates if the DataTypeDefinition Attribute is writable. | ||
RolePermissions = (1 << 23), // Indicates if the RolePermissions Attribute is writable. | ||
AccessRestrictions = (1 << 24),// Indicates if the AccessRestrictions Attribute is writable. | ||
AccessLevelEx = (1 << 25),// Indicates if the AccessLevelEx Attribute is writable. | ||
AccessLevel = 1 << 0, // Indicates if the AccessLevel Attribute is writable. | ||
ArrayDimensions = 1 << 1, // Indicates if the ArrayDimensions Attribute is writable. | ||
BrowseName = 1 << 2, // Indicates if the BrowseName Attribute is writable. | ||
ContainsNoLoops = 1 << 3, // Indicates if the ContainsNoLoops Attribute is writable. | ||
DataType = 1 << 4, // Indicates if the DataType Attribute is writable. | ||
Description = 1 << 5, // Indicates if the Description Attribute is writable. | ||
DisplayName = 1 << 6, // Indicates if the DisplayName Attribute is writable. | ||
EventNotifier = 1 << 7, // Indicates if the EventNotifier Attribute is writable. | ||
Executable = 1 << 8, // Indicates if the Executable Attribute is writable. | ||
Historizing = 1 << 9, // Indicates if the Historizing Attribute is writable. | ||
InverseName = 1 << 10, // Indicates if the InverseName Attribute is writable. | ||
IsAbstract = 1 << 11, // Indicates if the IsAbstract Attribute is writable. | ||
MinimumSamplingInterval = 1 << 12, // Indicates if the MinimumSamplingInterval Attribute is writable. | ||
NodeClass = 1 << 13, // Indicates if the NodeClass Attribute is writable. | ||
NodeId = 1 << 14, // Indicates if the NodeId Attribute is writable. | ||
Symmetric = 1 << 15, // Indicates if the Symmetric Attribute is writable. | ||
UserAccessLevel = 1 << 16, // Indicates if the UserAccessLevel Attribute is writable. | ||
UserExecutable = 1 << 17, // Indicates if the UserExecutable Attribute is writable. | ||
UserWriteMask = 1 << 18, // Indicates if the UserWriteMask Attribute is writable. | ||
ValueRank = 1 << 19, // Indicates if the ValueRank Attribute is writable. | ||
WriteMask = 1 << 20, // Indicates if the WriteMask Attribute is writable. | ||
ValueForVariableType = 1 << 21, // Indicates if the Value Attribute is writable for a VariableType. | ||
DataTypeDefinition = 1 << 22, /// Indicates if the DataTypeDefinition Attribute is writable. | ||
RolePermissions = 1 << 23, // Indicates if the RolePermissions Attribute is writable. | ||
AccessRestrictions = 1 << 24, // Indicates if the AccessRestrictions Attribute is writable. | ||
AccessLevelEx = 1 << 25 // Indicates if the AccessLevelEx Attribute is writable. | ||
// It does not apply for | ||
@@ -35,0 +35,0 @@ // Variables since this is handled by the AccessLevel and UserAccessLevel |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2849
151703
+ Addednode-opcua-basic-types@2.56.0(transitive)
+ Addednode-opcua-factory@2.56.0(transitive)
+ Addednode-opcua-status-code@2.56.0(transitive)
+ Addednode-opcua-utils@2.56.0(transitive)
- Removednode-opcua-basic-types@2.55.0(transitive)
- Removednode-opcua-factory@2.55.0(transitive)
- Removednode-opcua-status-code@2.55.0(transitive)
- Removednode-opcua-utils@2.55.0(transitive)
Updatednode-opcua-factory@2.56.0
Updatednode-opcua-utils@2.56.0