node-opcua-server 2.75.0 → 2.76.0

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 (61) 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/filter/check_where_clause_on_address_space.d.ts +3 -3
  6. package/dist/filter/check_where_clause_on_address_space.js +22 -22
  7. package/dist/filter/extract_event_fields.d.ts +10 -10
  8. package/dist/filter/extract_event_fields.js +17 -17
  9. package/dist/helper.d.ts +10 -10
  10. package/dist/helper.js +75 -75
  11. package/dist/history_server_capabilities.d.ts +35 -35
  12. package/dist/history_server_capabilities.js +43 -43
  13. package/dist/i_channel_data.d.ts +13 -13
  14. package/dist/i_channel_data.js +2 -2
  15. package/dist/i_register_server_manager.d.ts +16 -16
  16. package/dist/i_register_server_manager.js +2 -2
  17. package/dist/i_server_side_publish_engine.d.ts +36 -36
  18. package/dist/i_server_side_publish_engine.js +49 -49
  19. package/dist/i_socket_data.d.ts +11 -11
  20. package/dist/i_socket_data.js +2 -2
  21. package/dist/index.d.ts +16 -16
  22. package/dist/index.js +32 -32
  23. package/dist/monitored_item.d.ts +177 -177
  24. package/dist/monitored_item.js +1001 -1001
  25. package/dist/node_sampler.d.ts +3 -3
  26. package/dist/node_sampler.js +75 -75
  27. package/dist/opcua_server.d.ts +747 -650
  28. package/dist/opcua_server.js +2431 -2396
  29. package/dist/opcua_server.js.map +1 -1
  30. package/dist/queue.d.ts +11 -11
  31. package/dist/queue.js +71 -71
  32. package/dist/register_server_manager.d.ts +96 -96
  33. package/dist/register_server_manager.js +584 -584
  34. package/dist/register_server_manager_hidden.d.ts +17 -17
  35. package/dist/register_server_manager_hidden.js +27 -27
  36. package/dist/register_server_manager_mdns_only.d.ts +22 -22
  37. package/dist/register_server_manager_mdns_only.js +55 -55
  38. package/dist/server_capabilities.d.ts +148 -148
  39. package/dist/server_capabilities.js +92 -92
  40. package/dist/server_end_point.d.ts +183 -183
  41. package/dist/server_end_point.js +817 -817
  42. package/dist/server_engine.d.ts +317 -317
  43. package/dist/server_engine.js +1716 -1716
  44. package/dist/server_publish_engine.d.ts +113 -113
  45. package/dist/server_publish_engine.js +541 -541
  46. package/dist/server_publish_engine_for_orphan_subscriptions.d.ts +16 -16
  47. package/dist/server_publish_engine_for_orphan_subscriptions.js +51 -51
  48. package/dist/server_session.d.ts +182 -182
  49. package/dist/server_session.js +739 -739
  50. package/dist/server_subscription.d.ts +421 -421
  51. package/dist/server_subscription.js +1346 -1346
  52. package/dist/sessions_compatible_for_transfer.d.ts +2 -2
  53. package/dist/sessions_compatible_for_transfer.js +39 -39
  54. package/dist/user_manager.d.ts +32 -32
  55. package/dist/user_manager.js +74 -74
  56. package/dist/user_manager_ua.d.ts +3 -3
  57. package/dist/user_manager_ua.js +39 -39
  58. package/dist/validate_filter.d.ts +5 -5
  59. package/dist/validate_filter.js +60 -60
  60. package/package.json +47 -49
  61. package/source/opcua_server.ts +154 -14
@@ -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 {};