node-opcua-server 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.
Files changed (69) hide show
  1. package/dist/base_server.d.ts +110 -110
  2. package/dist/base_server.js +490 -490
  3. package/dist/base_server.js.map +1 -1
  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 -3
  7. package/dist/filter/check_where_clause_on_address_space.js +22 -22
  8. package/dist/filter/extract_event_fields.d.ts +10 -10
  9. package/dist/filter/extract_event_fields.js +17 -17
  10. package/dist/helper.d.ts +10 -10
  11. package/dist/helper.js +75 -75
  12. package/dist/history_server_capabilities.d.ts +35 -35
  13. package/dist/history_server_capabilities.js +43 -43
  14. package/dist/i_channel_data.d.ts +13 -13
  15. package/dist/i_channel_data.js +2 -2
  16. package/dist/i_register_server_manager.d.ts +16 -16
  17. package/dist/i_register_server_manager.js +2 -2
  18. package/dist/i_server_side_publish_engine.d.ts +36 -36
  19. package/dist/i_server_side_publish_engine.js +49 -49
  20. package/dist/i_socket_data.d.ts +11 -11
  21. package/dist/i_socket_data.js +2 -2
  22. package/dist/index.d.ts +16 -16
  23. package/dist/index.js +32 -32
  24. package/dist/monitored_item.d.ts +188 -188
  25. package/dist/monitored_item.js +1112 -1112
  26. package/dist/monitored_item.js.map +1 -1
  27. package/dist/node_sampler.d.ts +3 -3
  28. package/dist/node_sampler.js +79 -79
  29. package/dist/opcua_server.d.ts +747 -747
  30. package/dist/opcua_server.js +2428 -2428
  31. package/dist/opcua_server.js.map +1 -1
  32. package/dist/queue.d.ts +11 -11
  33. package/dist/queue.js +71 -71
  34. package/dist/register_server_manager.d.ts +96 -96
  35. package/dist/register_server_manager.js +584 -584
  36. package/dist/register_server_manager_hidden.d.ts +17 -17
  37. package/dist/register_server_manager_hidden.js +27 -27
  38. package/dist/register_server_manager_mdns_only.d.ts +22 -22
  39. package/dist/register_server_manager_mdns_only.js +55 -55
  40. package/dist/sampling_func.d.ts +3 -3
  41. package/dist/sampling_func.js +2 -2
  42. package/dist/server_capabilities.d.ts +148 -148
  43. package/dist/server_capabilities.js +101 -101
  44. package/dist/server_end_point.d.ts +185 -185
  45. package/dist/server_end_point.js +840 -840
  46. package/dist/server_engine.d.ts +318 -318
  47. package/dist/server_engine.js +1774 -1774
  48. package/dist/server_engine.js.map +1 -1
  49. package/dist/server_publish_engine.d.ts +113 -113
  50. package/dist/server_publish_engine.js +541 -541
  51. package/dist/server_publish_engine.js.map +1 -1
  52. package/dist/server_publish_engine_for_orphan_subscriptions.d.ts +16 -16
  53. package/dist/server_publish_engine_for_orphan_subscriptions.js +51 -51
  54. package/dist/server_session.d.ts +185 -185
  55. package/dist/server_session.js +757 -757
  56. package/dist/server_session.js.map +1 -1
  57. package/dist/server_subscription.d.ts +421 -421
  58. package/dist/server_subscription.js +1347 -1347
  59. package/dist/server_subscription.js.map +1 -1
  60. package/dist/sessions_compatible_for_transfer.d.ts +2 -2
  61. package/dist/sessions_compatible_for_transfer.js +39 -39
  62. package/dist/user_manager.d.ts +32 -32
  63. package/dist/user_manager.js +98 -98
  64. package/dist/user_manager_ua.d.ts +3 -3
  65. package/dist/user_manager_ua.js +39 -39
  66. package/dist/validate_filter.d.ts +5 -5
  67. package/dist/validate_filter.js +81 -81
  68. package/package.json +52 -48
  69. package/test_helpers/create_certificates.js +0 -1
@@ -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 {};