node-opcua-file-transfer 2.97.0 → 2.98.1

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.
@@ -1,92 +1,92 @@
1
- /// <reference types="node" />
2
- /**
3
- * @module node-opcua-file-transfer
4
- */
5
- import { Int32, Int64, UInt16, UInt32, UInt64 } from "node-opcua-basic-types";
6
- import { NodeId } from "node-opcua-nodeid";
7
- import { IBasicSession } from "node-opcua-pseudo-session";
8
- import { OpenFileMode } from "../open_mode";
9
- export { OpenFileMode } from "../open_mode";
10
- export interface IClientFile {
11
- fileHandle: number;
12
- open(mode: OpenFileMode): Promise<number>;
13
- close(): Promise<void>;
14
- getPosition(): Promise<UInt64>;
15
- setPosition(position: UInt64 | UInt32): Promise<void>;
16
- read(bytesToRead: UInt32 | Int32 | Int64 | UInt64): Promise<Buffer>;
17
- write(data: Buffer): Promise<void>;
18
- openCount(): Promise<UInt16>;
19
- size(): Promise<UInt64>;
20
- session: IBasicSession;
21
- }
22
- export interface IClientFilePriv extends IClientFile {
23
- readonly fileNodeId: NodeId;
24
- openMethodNodeId?: NodeId;
25
- closeMethodNodeId?: NodeId;
26
- setPositionNodeId?: NodeId;
27
- getPositionNodeId?: NodeId;
28
- readNodeId?: NodeId;
29
- writeNodeId?: NodeId;
30
- openCountNodeId?: NodeId;
31
- sizeNodeId?: NodeId;
32
- ensureInitialized(): Promise<void>;
33
- }
34
- /**
35
- *
36
- *
37
- */
38
- export declare class ClientFile implements IClientFile {
39
- static useGlobalMethod: boolean;
40
- fileHandle: number;
41
- session: IBasicSession;
42
- protected readonly fileNodeId: NodeId;
43
- private openMethodNodeId?;
44
- private closeMethodNodeId?;
45
- private setPositionNodeId?;
46
- private getPositionNodeId?;
47
- private readNodeId?;
48
- private writeNodeId?;
49
- private openCountNodeId?;
50
- private sizeNodeId?;
51
- constructor(session: IBasicSession, nodeId: NodeId);
52
- open(mode: OpenFileMode): Promise<number>;
53
- close(): Promise<void>;
54
- getPosition(): Promise<UInt64>;
55
- setPosition(position: UInt64 | UInt32): Promise<void>;
56
- read(bytesToRead: UInt32 | Int32 | Int64 | UInt64): Promise<Buffer>;
57
- write(data: Buffer): Promise<void>;
58
- openCount(): Promise<UInt16>;
59
- size(): Promise<UInt64>;
60
- protected extractMethodsIds(): Promise<void>;
61
- protected ensureInitialized(): Promise<void>;
62
- }
63
- /**
64
- * 5.2.10 UserRolePermissions
65
- *
66
- * The optional UserRolePermissions Attribute specifies the Permissions that apply to a Node for
67
- * all Roles granted to current Session. The value of the Attribute is an array of
68
- * RolePermissionType Structures (see Table 8).
69
- * Clients may determine their effective Permissions by logically ORing the Permissions for each
70
- * Role in the array.
71
- * The value of this Attribute is derived from the rules used by the Server to map Sessions to
72
- * Roles. This mapping may be vendor specific or it may use the standard Role model defined in 4.8.
73
- * This Attribute shall not be writeable.
74
- * If not specified, the value of DefaultUserRolePermissions Property from the Namespace
75
- * Metadata Object associated with the Node is used instead. If the NamespaceMetadata Object
76
- * does not define the Property or does not exist, then the Server does not publish any information
77
- * about Roles mapped to the current Session.
78
- *
79
- *
80
- * 5.2.11 AccessRestrictions
81
- * The optional AccessRestrictions Attribute specifies the AccessRestrictions that apply to a Node.
82
- * Its data type is defined in 8.56. If a Server supports AccessRestrictions for a particular
83
- * Namespace it adds the DefaultAccessRestrictions Property to the NamespaceMetadata Object
84
- * for that Namespace (see Figure 8). If a particular Node in the Namespace needs to override
85
- * the default value the Server adds the AccessRestrictions Attribute to the Node.
86
- * If a Server implements a vendor specific access restriction model for a Namespace, it does not
87
- * add the DefaultAccessRestrictions Property to the NamespaceMetadata Object.
88
- *
89
- *
90
- * DefaultAccessRestrictions
91
- *
92
- */
1
+ /// <reference types="node" />
2
+ /**
3
+ * @module node-opcua-file-transfer
4
+ */
5
+ import { Int32, Int64, UInt16, UInt32, UInt64 } from "node-opcua-basic-types";
6
+ import { NodeId } from "node-opcua-nodeid";
7
+ import { IBasicSession } from "node-opcua-pseudo-session";
8
+ import { OpenFileMode } from "../open_mode";
9
+ export { OpenFileMode } from "../open_mode";
10
+ export interface IClientFile {
11
+ fileHandle: number;
12
+ open(mode: OpenFileMode): Promise<number>;
13
+ close(): Promise<void>;
14
+ getPosition(): Promise<UInt64>;
15
+ setPosition(position: UInt64 | UInt32): Promise<void>;
16
+ read(bytesToRead: UInt32 | Int32 | Int64 | UInt64): Promise<Buffer>;
17
+ write(data: Buffer): Promise<void>;
18
+ openCount(): Promise<UInt16>;
19
+ size(): Promise<UInt64>;
20
+ session: IBasicSession;
21
+ }
22
+ export interface IClientFilePriv extends IClientFile {
23
+ readonly fileNodeId: NodeId;
24
+ openMethodNodeId?: NodeId;
25
+ closeMethodNodeId?: NodeId;
26
+ setPositionNodeId?: NodeId;
27
+ getPositionNodeId?: NodeId;
28
+ readNodeId?: NodeId;
29
+ writeNodeId?: NodeId;
30
+ openCountNodeId?: NodeId;
31
+ sizeNodeId?: NodeId;
32
+ ensureInitialized(): Promise<void>;
33
+ }
34
+ /**
35
+ *
36
+ *
37
+ */
38
+ export declare class ClientFile implements IClientFile {
39
+ static useGlobalMethod: boolean;
40
+ fileHandle: number;
41
+ session: IBasicSession;
42
+ protected readonly fileNodeId: NodeId;
43
+ private openMethodNodeId?;
44
+ private closeMethodNodeId?;
45
+ private setPositionNodeId?;
46
+ private getPositionNodeId?;
47
+ private readNodeId?;
48
+ private writeNodeId?;
49
+ private openCountNodeId?;
50
+ private sizeNodeId?;
51
+ constructor(session: IBasicSession, nodeId: NodeId);
52
+ open(mode: OpenFileMode): Promise<number>;
53
+ close(): Promise<void>;
54
+ getPosition(): Promise<UInt64>;
55
+ setPosition(position: UInt64 | UInt32): Promise<void>;
56
+ read(bytesToRead: UInt32 | Int32 | Int64 | UInt64): Promise<Buffer>;
57
+ write(data: Buffer): Promise<void>;
58
+ openCount(): Promise<UInt16>;
59
+ size(): Promise<UInt64>;
60
+ protected extractMethodsIds(): Promise<void>;
61
+ protected ensureInitialized(): Promise<void>;
62
+ }
63
+ /**
64
+ * 5.2.10 UserRolePermissions
65
+ *
66
+ * The optional UserRolePermissions Attribute specifies the Permissions that apply to a Node for
67
+ * all Roles granted to current Session. The value of the Attribute is an array of
68
+ * RolePermissionType Structures (see Table 8).
69
+ * Clients may determine their effective Permissions by logically ORing the Permissions for each
70
+ * Role in the array.
71
+ * The value of this Attribute is derived from the rules used by the Server to map Sessions to
72
+ * Roles. This mapping may be vendor specific or it may use the standard Role model defined in 4.8.
73
+ * This Attribute shall not be writeable.
74
+ * If not specified, the value of DefaultUserRolePermissions Property from the Namespace
75
+ * Metadata Object associated with the Node is used instead. If the NamespaceMetadata Object
76
+ * does not define the Property or does not exist, then the Server does not publish any information
77
+ * about Roles mapped to the current Session.
78
+ *
79
+ *
80
+ * 5.2.11 AccessRestrictions
81
+ * The optional AccessRestrictions Attribute specifies the AccessRestrictions that apply to a Node.
82
+ * Its data type is defined in 8.56. If a Server supports AccessRestrictions for a particular
83
+ * Namespace it adds the DefaultAccessRestrictions Property to the NamespaceMetadata Object
84
+ * for that Namespace (see Figure 8). If a particular Node in the Namespace needs to override
85
+ * the default value the Server adds the AccessRestrictions Attribute to the Node.
86
+ * If a Server implements a vendor specific access restriction model for a Namespace, it does not
87
+ * add the DefaultAccessRestrictions Property to the NamespaceMetadata Object.
88
+ *
89
+ *
90
+ * DefaultAccessRestrictions
91
+ *
92
+ */