@kronos-integration/endpoint 11.0.27 → 11.0.28

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/endpoint",
3
- "version": "11.0.27",
3
+ "version": "11.0.28",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -47,7 +47,7 @@
47
47
  "c8": "^11.0.0",
48
48
  "documentation": "^14.0.3",
49
49
  "semantic-release": "^25.0.3",
50
- "typescript": "^5.9.3"
50
+ "typescript": "^6.0.2"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=24.13.1"
@@ -10,7 +10,7 @@ export function isEndpoint(object: any): boolean;
10
10
  * @param {Object} owner
11
11
  * @return {Interceptor[]}
12
12
  */
13
- export function instanciateInterceptors(interceptors: Interceptor[] | string[] | undefined, owner: any): Interceptor[];
13
+ export function instanciateInterceptors(interceptors: Interceptor[] | string[] | undefined, owner: Object): Interceptor[];
14
14
  /**
15
15
  * @typedef {Object} ConnectionState
16
16
  */
@@ -27,14 +27,14 @@ export class Endpoint {
27
27
  * @param {Endpoint} [options.connected]
28
28
  * @param {Array<Interceptor>} [options.receivingInterceptors]
29
29
  */
30
- constructor(name: string, owner: any, options: {
31
- didConnect?: (arg0: Endpoint, arg1: Endpoint) => void | undefined;
30
+ constructor(name: string, owner: Object, options: {
31
+ didConnect?: ((arg0: Endpoint, arg1: Endpoint) => void | undefined) | undefined;
32
32
  interceptors?: Interceptor[] | string[] | undefined;
33
- connected?: Endpoint;
34
- receivingInterceptors?: Array<Interceptor>;
33
+ connected?: Endpoint | undefined;
34
+ receivingInterceptors?: Interceptor[] | undefined;
35
35
  });
36
36
  name: string;
37
- owner: any;
37
+ owner: Object;
38
38
  /**
39
39
  *
40
40
  * @param {Endpoint} endpoint
@@ -63,14 +63,14 @@ export class Endpoint {
63
63
  * Mapping of properties used in toString.
64
64
  * @return {Object}
65
65
  */
66
- get toStringAttributes(): any;
66
+ get toStringAttributes(): Object;
67
67
  /**
68
68
  *
69
69
  * @param {Object} options
70
70
  * @param {boolean} [options.includeRuntimeInfo]
71
71
  */
72
72
  connectionNamesWithStates(options?: {
73
- includeRuntimeInfo?: boolean;
73
+ includeRuntimeInfo?: boolean | undefined;
74
74
  }): string[];
75
75
  toString(): string;
76
76
  get identifier(): string;
@@ -87,17 +87,17 @@ export class Endpoint {
87
87
  * @return {string|undefined} delivers data flow direction 'in', 'out', 'inout' or undefined
88
88
  */
89
89
  get direction(): string | undefined;
90
- toJSON(): any;
90
+ toJSON(): Object;
91
91
  /**
92
92
  * Additional attributes to present in json output.
93
93
  */
94
- get jsonAttributes(): any[];
94
+ get jsonAttributes(): never[];
95
95
  /**
96
96
  *
97
97
  * @param {Object} [options]
98
98
  * @returns {Object}
99
99
  */
100
- toJSONWithOptions(options?: any): any;
100
+ toJSONWithOptions(options?: Object): Object;
101
101
  /**
102
102
  * @return {boolean} true if there is at least one interceptor assigned
103
103
  */
@@ -168,7 +168,7 @@ export class Endpoint {
168
168
  * @param {ConnectionState} state
169
169
  */
170
170
  setConnectionState(other: Endpoint, state: ConnectionState): void;
171
- get receivingInterceptors(): any[];
171
+ get receivingInterceptors(): never[];
172
172
  }
173
- export type ConnectionState = any;
173
+ export type ConnectionState = Object;
174
174
  import { Interceptor } from "@kronos-integration/interceptor";
@@ -4,7 +4,25 @@
4
4
  */
5
5
  export class MultiConnectionEndpoint extends ReceivableEndpoint {
6
6
  constructor(name: any, owner: any, options: any);
7
+ /**
8
+ * Deliver connection state.
9
+ * @param {Endpoint} other
10
+ * @return {any} our state for the connection to other
11
+ */
12
+ getConnectionState(other: Endpoint): any;
13
+ /**
14
+ * Set connection state.
15
+ * @param {Endpoint} other
16
+ * @param {any} state for the connection to other
17
+ */
18
+ setConnectionState(other: Endpoint, state: any): void;
7
19
  addConnection(other: any, backpointer: any): void;
20
+ /**
21
+ * Actually stop the communication.
22
+ * @param {Endpoint} other
23
+ * @param {boolean?} [backpointer] true if this is the call form back call from the other side
24
+ */
25
+ removeConnection(other: Endpoint, backpointer?: boolean | null): void;
8
26
  /**
9
27
  * All connections
10
28
  */
@@ -13,11 +13,11 @@ export class ReceivableEndpoint extends Endpoint {
13
13
  * @param {Function} [options.receive]
14
14
  * @param {Array<Interceptor>} [options.receivingInterceptors]
15
15
  */
16
- constructor(name: string, owner: any, options: {
17
- receive?: Function;
18
- receivingInterceptors?: Array<Interceptor>;
16
+ constructor(name: string, owner: Object, options: {
17
+ receive?: Function | undefined;
18
+ receivingInterceptors?: Interceptor[] | undefined;
19
19
  });
20
- receive: Function;
20
+ receive: Function | undefined;
21
21
  }
22
22
  import { Endpoint } from "./endpoint.mjs";
23
23
  import { Interceptor } from "@kronos-integration/interceptor";
@@ -15,8 +15,8 @@ export class SendEndpoint extends ReceivableEndpoint {
15
15
  * @param {Object} options
16
16
  * @param {Endpoint} [options.connected]
17
17
  */
18
- constructor(name: string, owner: any, options: {
19
- connected?: Endpoint;
18
+ constructor(name: string, owner: Object, options: {
19
+ connected?: Endpoint | undefined;
20
20
  });
21
21
  getConnectionState(other: any): any;
22
22
  setConnectionState(other: any, state: any): void;