node-opcua-server 2.73.1 → 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 (72) hide show
  1. package/LICENSE +3 -1
  2. package/dist/base_server.d.ts +110 -110
  3. package/dist/base_server.js +473 -473
  4. package/dist/factory.d.ts +12 -12
  5. package/dist/factory.js +23 -23
  6. package/dist/filter/check_where_clause_on_address_space.d.ts +3 -0
  7. package/dist/filter/check_where_clause_on_address_space.js +23 -0
  8. package/dist/filter/check_where_clause_on_address_space.js.map +1 -0
  9. package/dist/filter/extract_event_fields.d.ts +10 -0
  10. package/dist/filter/extract_event_fields.js +18 -0
  11. package/dist/filter/extract_event_fields.js.map +1 -0
  12. package/dist/helper.d.ts +10 -10
  13. package/dist/helper.js +75 -75
  14. package/dist/history_server_capabilities.d.ts +35 -35
  15. package/dist/history_server_capabilities.js +43 -43
  16. package/dist/i_channel_data.d.ts +13 -13
  17. package/dist/i_channel_data.js +2 -2
  18. package/dist/i_register_server_manager.d.ts +16 -16
  19. package/dist/i_register_server_manager.js +2 -2
  20. package/dist/i_server_side_publish_engine.d.ts +36 -36
  21. package/dist/i_server_side_publish_engine.js +49 -49
  22. package/dist/i_socket_data.d.ts +11 -11
  23. package/dist/i_socket_data.js +2 -2
  24. package/dist/index.d.ts +16 -16
  25. package/dist/index.js +32 -32
  26. package/dist/monitored_item.d.ts +177 -177
  27. package/dist/monitored_item.js +1001 -999
  28. package/dist/monitored_item.js.map +1 -1
  29. package/dist/node_sampler.d.ts +3 -3
  30. package/dist/node_sampler.js +75 -75
  31. package/dist/opcua_server.d.ts +747 -650
  32. package/dist/opcua_server.js +2431 -2394
  33. package/dist/opcua_server.js.map +1 -1
  34. package/dist/queue.d.ts +11 -11
  35. package/dist/queue.js +71 -71
  36. package/dist/register_server_manager.d.ts +96 -96
  37. package/dist/register_server_manager.js +584 -584
  38. package/dist/register_server_manager_hidden.d.ts +17 -17
  39. package/dist/register_server_manager_hidden.js +27 -27
  40. package/dist/register_server_manager_mdns_only.d.ts +22 -22
  41. package/dist/register_server_manager_mdns_only.js +55 -55
  42. package/dist/server_capabilities.d.ts +148 -148
  43. package/dist/server_capabilities.js +92 -92
  44. package/dist/server_end_point.d.ts +183 -183
  45. package/dist/server_end_point.js +817 -817
  46. package/dist/server_engine.d.ts +317 -317
  47. package/dist/server_engine.js +1716 -1716
  48. package/dist/server_publish_engine.d.ts +113 -112
  49. package/dist/server_publish_engine.js +541 -535
  50. package/dist/server_publish_engine.js.map +1 -1
  51. package/dist/server_publish_engine_for_orphan_subscriptions.d.ts +16 -16
  52. package/dist/server_publish_engine_for_orphan_subscriptions.js +51 -51
  53. package/dist/server_session.d.ts +182 -182
  54. package/dist/server_session.js +739 -739
  55. package/dist/server_subscription.d.ts +421 -421
  56. package/dist/server_subscription.js +1346 -1345
  57. package/dist/server_subscription.js.map +1 -1
  58. package/dist/sessions_compatible_for_transfer.d.ts +2 -2
  59. package/dist/sessions_compatible_for_transfer.js +39 -39
  60. package/dist/user_manager.d.ts +32 -32
  61. package/dist/user_manager.js +74 -74
  62. package/dist/user_manager_ua.d.ts +3 -3
  63. package/dist/user_manager_ua.js +39 -39
  64. package/dist/validate_filter.d.ts +5 -5
  65. package/dist/validate_filter.js +60 -60
  66. package/package.json +50 -51
  67. package/source/filter/check_where_clause_on_address_space.ts +29 -0
  68. package/source/filter/extract_event_fields.ts +21 -0
  69. package/source/monitored_item.ts +5 -11
  70. package/source/opcua_server.ts +175 -36
  71. package/source/server_publish_engine.ts +24 -19
  72. package/source/server_subscription.ts +11 -10
package/LICENSE CHANGED
@@ -1,6 +1,8 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014-2021 Etienne Rossignon
3
+ Copyright (c) 2022 Sterfive SAS - 833264583 RCS ORLEANS - France (https://www.sterfive.com)
4
+
5
+ Copyright (c) 2014-2022 Etienne Rossignon
4
6
 
5
7
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
8
  this software and associated documentation files (the "Software"), to deal in
@@ -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 {};