node-opcua-server 2.71.0 → 2.72.2

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.
Files changed (65) hide show
  1. package/dist/base_server.d.ts +110 -110
  2. package/dist/base_server.js +473 -473
  3. package/dist/factory.d.ts +12 -12
  4. package/dist/factory.js +23 -23
  5. package/dist/history_server_capabilities.d.ts +35 -35
  6. package/dist/history_server_capabilities.js +43 -43
  7. package/dist/i_channel_data.d.ts +13 -13
  8. package/dist/i_channel_data.js +2 -2
  9. package/dist/i_register_server_manager.d.ts +16 -16
  10. package/dist/i_register_server_manager.js +2 -2
  11. package/dist/i_server_side_publish_engine.d.ts +36 -36
  12. package/dist/i_server_side_publish_engine.js +49 -49
  13. package/dist/i_socket_data.d.ts +11 -11
  14. package/dist/i_socket_data.js +2 -2
  15. package/dist/index.d.ts +15 -15
  16. package/dist/index.js +31 -31
  17. package/dist/monitored_item.d.ts +177 -177
  18. package/dist/monitored_item.js +998 -998
  19. package/dist/node_sampler.d.ts +3 -3
  20. package/dist/node_sampler.js +75 -75
  21. package/dist/opcua_server.d.ts +650 -647
  22. package/dist/opcua_server.js +2392 -2385
  23. package/dist/opcua_server.js.map +1 -1
  24. package/dist/queue.d.ts +11 -11
  25. package/dist/queue.js +71 -71
  26. package/dist/register_server_manager.d.ts +96 -96
  27. package/dist/register_server_manager.js +584 -584
  28. package/dist/register_server_manager_hidden.d.ts +17 -17
  29. package/dist/register_server_manager_hidden.js +27 -27
  30. package/dist/register_server_manager_mdns_only.d.ts +22 -22
  31. package/dist/register_server_manager_mdns_only.js +55 -55
  32. package/dist/server_capabilities.d.ts +148 -61
  33. package/dist/server_capabilities.js +91 -108
  34. package/dist/server_capabilities.js.map +1 -1
  35. package/dist/server_end_point.d.ts +183 -183
  36. package/dist/server_end_point.js +817 -816
  37. package/dist/server_end_point.js.map +1 -1
  38. package/dist/server_engine.d.ts +317 -316
  39. package/dist/server_engine.js +1716 -1688
  40. package/dist/server_engine.js.map +1 -1
  41. package/dist/server_publish_engine.d.ts +112 -112
  42. package/dist/server_publish_engine.js +530 -530
  43. package/dist/server_publish_engine_for_orphan_subscriptions.d.ts +16 -16
  44. package/dist/server_publish_engine_for_orphan_subscriptions.js +49 -49
  45. package/dist/server_session.d.ts +181 -181
  46. package/dist/server_session.js +738 -738
  47. package/dist/server_session.js.map +1 -1
  48. package/dist/server_subscription.d.ts +415 -395
  49. package/dist/server_subscription.js +1334 -1316
  50. package/dist/server_subscription.js.map +1 -1
  51. package/dist/sessions_compatible_for_transfer.d.ts +2 -2
  52. package/dist/sessions_compatible_for_transfer.js +36 -36
  53. package/dist/user_manager.d.ts +32 -32
  54. package/dist/user_manager.js +74 -74
  55. package/dist/user_manager_ua.d.ts +3 -3
  56. package/dist/user_manager_ua.js +39 -39
  57. package/dist/validate_filter.d.ts +5 -5
  58. package/dist/validate_filter.js +60 -60
  59. package/package.json +34 -34
  60. package/source/opcua_server.ts +27 -16
  61. package/source/server_capabilities.ts +178 -91
  62. package/source/server_end_point.ts +9 -8
  63. package/source/server_engine.ts +30 -1
  64. package/source/server_session.ts +1 -0
  65. package/source/server_subscription.ts +46 -5
@@ -1,110 +1,110 @@
1
- import { OPCUACertificateManager } from "node-opcua-certificate-manager";
2
- import { IOPCUASecureObjectOptions, OPCUASecureObject } from "node-opcua-common";
3
- import { Message, ServerSecureChannelLayer } from "node-opcua-secure-channel";
4
- import { ApplicationType } from "node-opcua-service-endpoints";
5
- import { ApplicationDescription } from "node-opcua-service-endpoints";
6
- import { ServiceFault } from "node-opcua-service-secure-channel";
7
- import { StatusCode } from "node-opcua-status-code";
8
- import { ApplicationDescriptionOptions } from "node-opcua-types";
9
- import { EndpointDescription } from "node-opcua-types";
10
- import { OPCUAServerEndPoint } from "./server_end_point";
11
- /**
12
- *
13
- */
14
- export interface OPCUABaseServerOptions extends IOPCUASecureObjectOptions {
15
- /**
16
- * the information used in the end point description
17
- */
18
- serverInfo?: ApplicationDescriptionOptions;
19
- /**
20
- * the server Certificate Manager
21
- */
22
- serverCertificateManager?: OPCUACertificateManager;
23
- }
24
- /**
25
- * @class OPCUABaseServer
26
- * @constructor
27
- */
28
- export declare class OPCUABaseServer extends OPCUASecureObject {
29
- static makeServiceFault: typeof makeServiceFault;
30
- /**
31
- * The type of server
32
- */
33
- get serverType(): ApplicationType;
34
- serverInfo: ApplicationDescription;
35
- endpoints: OPCUAServerEndPoint[];
36
- readonly serverCertificateManager: OPCUACertificateManager;
37
- capabilitiesForMDNS: string[];
38
- protected _preInitTask: any[];
39
- protected options: OPCUABaseServerOptions;
40
- constructor(options?: OPCUABaseServerOptions);
41
- protected createDefaultCertificate(): Promise<void>;
42
- initializeCM(): Promise<void>;
43
- /**
44
- * start all registered endPoint, in parallel, and call done when all endPoints are listening.
45
- * @method start
46
- * @async
47
- * @param {callback} done
48
- */
49
- start(done: (err?: Error | null) => void): void;
50
- protected performPreInitialization(): Promise<void>;
51
- protected startAsync(): Promise<void>;
52
- /**
53
- * shutdown all server endPoints
54
- * @async
55
- */
56
- shutdown(done: (err?: Error) => void): void;
57
- shutdownChannels(): Promise<void>;
58
- shutdownChannels(callback: (err?: Error | null) => void): void;
59
- /**
60
- * @private
61
- */
62
- on_request(message: Message, channel: ServerSecureChannelLayer): void;
63
- /**
64
- * @private
65
- */
66
- _get_endpoints(endpointUrl?: string | null): EndpointDescription[];
67
- /**
68
- * get one of the possible endpointUrl
69
- */
70
- getEndpointUrl(): string;
71
- getDiscoveryUrls(): string[];
72
- getServers(channel: ServerSecureChannelLayer): ApplicationDescription[];
73
- /**
74
- * set all the end point into a state where they do not accept further connections
75
- *
76
- * note:
77
- * this method is useful for testing purpose
78
- *
79
- */
80
- suspendEndPoints(): Promise<void>;
81
- suspendEndPoints(callback: (err?: Error) => void): void;
82
- /**
83
- * set all the end point into a state where they do accept connections
84
- * note:
85
- * this method is useful for testing purpose
86
- */
87
- resumeEndPoints(): Promise<void>;
88
- resumeEndPoints(callback: (err?: Error) => void): void;
89
- protected prepare(message: Message, channel: ServerSecureChannelLayer): void;
90
- /**
91
- * @private
92
- */
93
- protected _on_GetEndpointsRequest(message: Message, channel: ServerSecureChannelLayer): void;
94
- /**
95
- * @private
96
- */
97
- protected _on_FindServersRequest(message: Message, channel: ServerSecureChannelLayer): void;
98
- /**
99
- * returns a array of currently active channels
100
- */
101
- protected getChannels(): ServerSecureChannelLayer[];
102
- }
103
- /**
104
- * construct a service Fault response
105
- * @method makeServiceFault
106
- * @param statusCode
107
- * @param messages
108
- */
109
- declare function makeServiceFault(statusCode: StatusCode, messages: string[]): ServiceFault;
110
- export {};
1
+ import { OPCUACertificateManager } from "node-opcua-certificate-manager";
2
+ import { IOPCUASecureObjectOptions, OPCUASecureObject } from "node-opcua-common";
3
+ import { Message, ServerSecureChannelLayer } from "node-opcua-secure-channel";
4
+ import { ApplicationType } from "node-opcua-service-endpoints";
5
+ import { ApplicationDescription } from "node-opcua-service-endpoints";
6
+ import { ServiceFault } from "node-opcua-service-secure-channel";
7
+ import { StatusCode } from "node-opcua-status-code";
8
+ import { ApplicationDescriptionOptions } from "node-opcua-types";
9
+ import { EndpointDescription } from "node-opcua-types";
10
+ import { OPCUAServerEndPoint } from "./server_end_point";
11
+ /**
12
+ *
13
+ */
14
+ export interface OPCUABaseServerOptions extends IOPCUASecureObjectOptions {
15
+ /**
16
+ * the information used in the end point description
17
+ */
18
+ serverInfo?: ApplicationDescriptionOptions;
19
+ /**
20
+ * the server Certificate Manager
21
+ */
22
+ serverCertificateManager?: OPCUACertificateManager;
23
+ }
24
+ /**
25
+ * @class OPCUABaseServer
26
+ * @constructor
27
+ */
28
+ export declare class OPCUABaseServer extends OPCUASecureObject {
29
+ static makeServiceFault: typeof makeServiceFault;
30
+ /**
31
+ * The type of server
32
+ */
33
+ get serverType(): ApplicationType;
34
+ serverInfo: ApplicationDescription;
35
+ endpoints: OPCUAServerEndPoint[];
36
+ readonly serverCertificateManager: OPCUACertificateManager;
37
+ capabilitiesForMDNS: string[];
38
+ protected _preInitTask: any[];
39
+ protected options: OPCUABaseServerOptions;
40
+ constructor(options?: OPCUABaseServerOptions);
41
+ protected createDefaultCertificate(): Promise<void>;
42
+ initializeCM(): Promise<void>;
43
+ /**
44
+ * start all registered endPoint, in parallel, and call done when all endPoints are listening.
45
+ * @method start
46
+ * @async
47
+ * @param {callback} done
48
+ */
49
+ start(done: (err?: Error | null) => void): void;
50
+ protected performPreInitialization(): Promise<void>;
51
+ protected startAsync(): Promise<void>;
52
+ /**
53
+ * shutdown all server endPoints
54
+ * @async
55
+ */
56
+ shutdown(done: (err?: Error) => void): void;
57
+ shutdownChannels(): Promise<void>;
58
+ shutdownChannels(callback: (err?: Error | null) => void): void;
59
+ /**
60
+ * @private
61
+ */
62
+ on_request(message: Message, channel: ServerSecureChannelLayer): void;
63
+ /**
64
+ * @private
65
+ */
66
+ _get_endpoints(endpointUrl?: string | null): EndpointDescription[];
67
+ /**
68
+ * get one of the possible endpointUrl
69
+ */
70
+ getEndpointUrl(): string;
71
+ getDiscoveryUrls(): string[];
72
+ getServers(channel: ServerSecureChannelLayer): ApplicationDescription[];
73
+ /**
74
+ * set all the end point into a state where they do not accept further connections
75
+ *
76
+ * note:
77
+ * this method is useful for testing purpose
78
+ *
79
+ */
80
+ suspendEndPoints(): Promise<void>;
81
+ suspendEndPoints(callback: (err?: Error) => void): void;
82
+ /**
83
+ * set all the end point into a state where they do accept connections
84
+ * note:
85
+ * this method is useful for testing purpose
86
+ */
87
+ resumeEndPoints(): Promise<void>;
88
+ resumeEndPoints(callback: (err?: Error) => void): void;
89
+ protected prepare(message: Message, channel: ServerSecureChannelLayer): void;
90
+ /**
91
+ * @private
92
+ */
93
+ protected _on_GetEndpointsRequest(message: Message, channel: ServerSecureChannelLayer): void;
94
+ /**
95
+ * @private
96
+ */
97
+ protected _on_FindServersRequest(message: Message, channel: ServerSecureChannelLayer): void;
98
+ /**
99
+ * returns a array of currently active channels
100
+ */
101
+ protected getChannels(): ServerSecureChannelLayer[];
102
+ }
103
+ /**
104
+ * construct a service Fault response
105
+ * @method makeServiceFault
106
+ * @param statusCode
107
+ * @param messages
108
+ */
109
+ declare function makeServiceFault(statusCode: StatusCode, messages: string[]): ServiceFault;
110
+ export {};