@twin.org/dataspace-data-plane-socket-client 0.0.3-next.15
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/LICENSE +201 -0
- package/README.md +21 -0
- package/dist/es/dataspaceDataPlaneSocketClient.js +236 -0
- package/dist/es/dataspaceDataPlaneSocketClient.js.map +1 -0
- package/dist/es/index.js +6 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IDataspaceDataPlaneSocketClientConfig.js +2 -0
- package/dist/es/models/IDataspaceDataPlaneSocketClientConfig.js.map +1 -0
- package/dist/es/models/IDataspaceDataPlaneSocketClientConstructorOptions.js +2 -0
- package/dist/es/models/IDataspaceDataPlaneSocketClientConstructorOptions.js.map +1 -0
- package/dist/types/dataspaceDataPlaneSocketClient.d.ts +89 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/models/IDataspaceDataPlaneSocketClientConfig.d.ts +6 -0
- package/dist/types/models/IDataspaceDataPlaneSocketClientConstructorOptions.d.ts +14 -0
- package/docs/changelog.md +306 -0
- package/docs/examples.md +1 -0
- package/docs/reference/classes/DataspaceDataPlaneSocketClient.md +317 -0
- package/docs/reference/index.md +10 -0
- package/docs/reference/interfaces/IDataspaceDataPlaneSocketClientConfig.md +7 -0
- package/docs/reference/interfaces/IDataspaceDataPlaneSocketClientConstructorOptions.md +19 -0
- package/locales/en.json +15 -0
- package/package.json +55 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.0.3-next.15](https://github.com/twinfoundation/dataspace/compare/dataspace-data-plane-socket-client-v0.0.3-next.14...dataspace-data-plane-socket-client-v0.0.3-next.15) (2026-03-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* unification of the data exchange and the data space connector ([#57](https://github.com/twinfoundation/dataspace/issues/57)) ([df2644d](https://github.com/twinfoundation/dataspace/commit/df2644d989471e07dadd83d27bef736179e31bf4))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.14 to 0.0.3-next.15
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.12](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.11...dataspace-socket-client-v0.0.3-next.12) (2026-01-22)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **dataspace-socket-client:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.11 to 0.0.3-next.12
|
|
30
|
+
|
|
31
|
+
## [0.0.3-next.11](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.10...dataspace-socket-client-v0.0.3-next.11) (2026-01-22)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Miscellaneous Chores
|
|
35
|
+
|
|
36
|
+
* **dataspace-socket-client:** Synchronize repo versions
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Dependencies
|
|
40
|
+
|
|
41
|
+
* The following workspace dependencies were updated
|
|
42
|
+
* dependencies
|
|
43
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
44
|
+
|
|
45
|
+
## [0.0.3-next.10](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.9...dataspace-socket-client-v0.0.3-next.10) (2026-01-19)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* replace registerApp with factory pattern ([#51](https://github.com/twinfoundation/dataspace/issues/51)) ([a7ef328](https://github.com/twinfoundation/dataspace/commit/a7ef32873f5781f7b1f8aa3670f5fb612dd17018))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Dependencies
|
|
54
|
+
|
|
55
|
+
* The following workspace dependencies were updated
|
|
56
|
+
* dependencies
|
|
57
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.9 to 0.0.3-next.10
|
|
58
|
+
|
|
59
|
+
## [0.0.3-next.9](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.8...dataspace-socket-client-v0.0.3-next.9) (2026-01-19)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Features
|
|
63
|
+
|
|
64
|
+
* update data space connector to use trust service ([#47](https://github.com/twinfoundation/dataspace/issues/47)) ([41c5113](https://github.com/twinfoundation/dataspace/commit/41c5113512cdc477c2f9508b27dfaff84529d841))
|
|
65
|
+
* update order of trustPayload parameter ([0656ddd](https://github.com/twinfoundation/dataspace/commit/0656ddd328accda0370d979a6cb5f947071e700b))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Dependencies
|
|
69
|
+
|
|
70
|
+
* The following workspace dependencies were updated
|
|
71
|
+
* dependencies
|
|
72
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.8 to 0.0.3-next.9
|
|
73
|
+
|
|
74
|
+
## [0.0.3-next.8](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.7...dataspace-socket-client-v0.0.3-next.8) (2026-01-16)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Miscellaneous Chores
|
|
78
|
+
|
|
79
|
+
* **dataspace-socket-client:** Synchronize repo versions
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Dependencies
|
|
83
|
+
|
|
84
|
+
* The following workspace dependencies were updated
|
|
85
|
+
* dependencies
|
|
86
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
87
|
+
|
|
88
|
+
## [0.0.3-next.7](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.6...dataspace-socket-client-v0.0.3-next.7) (2026-01-16)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Features
|
|
92
|
+
|
|
93
|
+
* implement Link headers for pagination ([#43](https://github.com/twinfoundation/dataspace/issues/43)) ([ce2a31f](https://github.com/twinfoundation/dataspace/commit/ce2a31fab1b5a1338d34b8514e96a203705c68d1))
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Dependencies
|
|
97
|
+
|
|
98
|
+
* The following workspace dependencies were updated
|
|
99
|
+
* dependencies
|
|
100
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
101
|
+
|
|
102
|
+
## [0.0.3-next.6](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.5...dataspace-socket-client-v0.0.3-next.6) (2026-01-15)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Miscellaneous Chores
|
|
106
|
+
|
|
107
|
+
* **dataspace-socket-client:** Synchronize repo versions
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Dependencies
|
|
111
|
+
|
|
112
|
+
* The following workspace dependencies were updated
|
|
113
|
+
* dependencies
|
|
114
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.5 to 0.0.3-next.6
|
|
115
|
+
|
|
116
|
+
## [0.0.3-next.5](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.4...dataspace-socket-client-v0.0.3-next.5) (2026-01-07)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Miscellaneous Chores
|
|
120
|
+
|
|
121
|
+
* **dataspace-socket-client:** Synchronize repo versions
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Dependencies
|
|
125
|
+
|
|
126
|
+
* The following workspace dependencies were updated
|
|
127
|
+
* dependencies
|
|
128
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.4 to 0.0.3-next.5
|
|
129
|
+
|
|
130
|
+
## [0.0.3-next.4](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.3...dataspace-socket-client-v0.0.3-next.4) (2026-01-06)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Features
|
|
134
|
+
|
|
135
|
+
* update standards dependencies ([8534ad7](https://github.com/twinfoundation/dataspace/commit/8534ad74b996610ed5994b5213c857989c2bf57a))
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Dependencies
|
|
139
|
+
|
|
140
|
+
* The following workspace dependencies were updated
|
|
141
|
+
* dependencies
|
|
142
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.3 to 0.0.3-next.4
|
|
143
|
+
|
|
144
|
+
## [0.0.3-next.3](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.2...dataspace-socket-client-v0.0.3-next.3) (2025-12-01)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Miscellaneous Chores
|
|
148
|
+
|
|
149
|
+
* **dataspace-socket-client:** Synchronize repo versions
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Dependencies
|
|
153
|
+
|
|
154
|
+
* The following workspace dependencies were updated
|
|
155
|
+
* dependencies
|
|
156
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.2 to 0.0.3-next.3
|
|
157
|
+
|
|
158
|
+
## [0.0.3-next.2](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.1...dataspace-socket-client-v0.0.3-next.2) (2025-11-28)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Bug Fixes
|
|
162
|
+
|
|
163
|
+
* not supported error handling ([b946505](https://github.com/twinfoundation/dataspace/commit/b9465059f2b4bdce1d79fbca596b3abd7eadc918))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Dependencies
|
|
167
|
+
|
|
168
|
+
* The following workspace dependencies were updated
|
|
169
|
+
* dependencies
|
|
170
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.1 to 0.0.3-next.2
|
|
171
|
+
|
|
172
|
+
## [0.0.3-next.1](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.3-next.0...dataspace-socket-client-v0.0.3-next.1) (2025-11-12)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Features
|
|
176
|
+
|
|
177
|
+
* add context id features ([#26](https://github.com/twinfoundation/dataspace/issues/26)) ([6429a16](https://github.com/twinfoundation/dataspace/commit/6429a160dac9499304fdfb93a9dbdce37277ca7d))
|
|
178
|
+
* add rest and socket clients ([950bf70](https://github.com/twinfoundation/dataspace/commit/950bf705e6df4e709bbbe58e93968510067b9ddc))
|
|
179
|
+
* add validate-locales ([c0b08a7](https://github.com/twinfoundation/dataspace/commit/c0b08a73268f9fd3eb6ac3079b49d1ab0c01f118))
|
|
180
|
+
* eslint migration to flat config ([b84e875](https://github.com/twinfoundation/dataspace/commit/b84e87530aa249891618096ab6e072b21ff9f63a))
|
|
181
|
+
* expose client methods ([3de1ecb](https://github.com/twinfoundation/dataspace/commit/3de1ecbd345d36cef352e9d4dce26353f21b3f99))
|
|
182
|
+
* query interface data space connector ([#18](https://github.com/twinfoundation/dataspace/issues/18)) ([b12eca1](https://github.com/twinfoundation/dataspace/commit/b12eca124a8f46d290c168e364b7ed4bf72001d8))
|
|
183
|
+
* update framework components ([4d9ca95](https://github.com/twinfoundation/dataspace/commit/4d9ca95879bd6cae9d031595292b6a872bf5b5fd))
|
|
184
|
+
* use new engine extensions config ([80bdb5b](https://github.com/twinfoundation/dataspace/commit/80bdb5b298b65b5b22fa9927a0ad031cb9a3534d))
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
### Dependencies
|
|
188
|
+
|
|
189
|
+
* The following workspace dependencies were updated
|
|
190
|
+
* dependencies
|
|
191
|
+
* @twin.org/dataspace-models bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
192
|
+
|
|
193
|
+
## [0.0.1-next.8](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.1-next.7...dataspace-socket-client-v0.0.1-next.8) (2025-10-09)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### Features
|
|
197
|
+
|
|
198
|
+
* add validate-locales ([c0b08a7](https://github.com/twinfoundation/dataspace/commit/c0b08a73268f9fd3eb6ac3079b49d1ab0c01f118))
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Dependencies
|
|
202
|
+
|
|
203
|
+
* The following workspace dependencies were updated
|
|
204
|
+
* dependencies
|
|
205
|
+
* @twin.org/dataspace-models bumped from 0.0.1-next.7 to 0.0.1-next.8
|
|
206
|
+
|
|
207
|
+
## [0.0.1-next.7](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.1-next.6...dataspace-socket-client-v0.0.1-next.7) (2025-10-02)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### Features
|
|
211
|
+
|
|
212
|
+
* use new engine extensions config ([80bdb5b](https://github.com/twinfoundation/dataspace/commit/80bdb5b298b65b5b22fa9927a0ad031cb9a3534d))
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Dependencies
|
|
216
|
+
|
|
217
|
+
* The following workspace dependencies were updated
|
|
218
|
+
* dependencies
|
|
219
|
+
* @twin.org/dataspace-models bumped from 0.0.1-next.6 to 0.0.1-next.7
|
|
220
|
+
|
|
221
|
+
## [0.0.1-next.6](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.1-next.5...dataspace-socket-client-v0.0.1-next.6) (2025-09-29)
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
### Miscellaneous Chores
|
|
225
|
+
|
|
226
|
+
* **dataspace-socket-client:** Synchronize repo versions
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### Dependencies
|
|
230
|
+
|
|
231
|
+
* The following workspace dependencies were updated
|
|
232
|
+
* dependencies
|
|
233
|
+
* @twin.org/dataspace-models bumped from 0.0.1-next.5 to 0.0.1-next.6
|
|
234
|
+
|
|
235
|
+
## [0.0.1-next.5](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.1-next.4...dataspace-socket-client-v0.0.1-next.5) (2025-09-29)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
### Features
|
|
239
|
+
|
|
240
|
+
* update framework components ([4d9ca95](https://github.com/twinfoundation/dataspace/commit/4d9ca95879bd6cae9d031595292b6a872bf5b5fd))
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### Dependencies
|
|
244
|
+
|
|
245
|
+
* The following workspace dependencies were updated
|
|
246
|
+
* dependencies
|
|
247
|
+
* @twin.org/dataspace-models bumped from 0.0.1-next.4 to 0.0.1-next.5
|
|
248
|
+
|
|
249
|
+
## [0.0.1-next.4](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.1-next.3...dataspace-socket-client-v0.0.1-next.4) (2025-08-29)
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
### Features
|
|
253
|
+
|
|
254
|
+
* eslint migration to flat config ([b84e875](https://github.com/twinfoundation/dataspace/commit/b84e87530aa249891618096ab6e072b21ff9f63a))
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### Dependencies
|
|
258
|
+
|
|
259
|
+
* The following workspace dependencies were updated
|
|
260
|
+
* dependencies
|
|
261
|
+
* @twin.org/dataspace-models bumped from 0.0.1-next.3 to 0.0.1-next.4
|
|
262
|
+
|
|
263
|
+
## [0.0.1-next.3](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.1-next.2...dataspace-socket-client-v0.0.1-next.3) (2025-08-25)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
### Miscellaneous Chores
|
|
267
|
+
|
|
268
|
+
* **dataspace-socket-client:** Synchronize repo versions
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### Dependencies
|
|
272
|
+
|
|
273
|
+
* The following workspace dependencies were updated
|
|
274
|
+
* dependencies
|
|
275
|
+
* @twin.org/dataspace-models bumped from 0.0.1-next.2 to 0.0.1-next.3
|
|
276
|
+
|
|
277
|
+
## [0.0.1-next.2](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.1-next.1...dataspace-socket-client-v0.0.1-next.2) (2025-08-25)
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
### Features
|
|
281
|
+
|
|
282
|
+
* add rest and socket clients ([950bf70](https://github.com/twinfoundation/dataspace/commit/950bf705e6df4e709bbbe58e93968510067b9ddc))
|
|
283
|
+
* expose client methods ([3de1ecb](https://github.com/twinfoundation/dataspace/commit/3de1ecbd345d36cef352e9d4dce26353f21b3f99))
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
### Dependencies
|
|
287
|
+
|
|
288
|
+
* The following workspace dependencies were updated
|
|
289
|
+
* dependencies
|
|
290
|
+
* @twin.org/dataspace-models bumped from 0.0.1-next.1 to 0.0.1-next.2
|
|
291
|
+
|
|
292
|
+
## [0.0.1-next.1](https://github.com/twinfoundation/dataspace/compare/dataspace-socket-client-v0.0.1-next.0...dataspace-socket-client-v0.0.1-next.1) (2025-08-25)
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### Features
|
|
296
|
+
|
|
297
|
+
* add rest and socket clients ([950bf70](https://github.com/twinfoundation/dataspace/commit/950bf705e6df4e709bbbe58e93968510067b9ddc))
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
### Dependencies
|
|
301
|
+
|
|
302
|
+
* The following workspace dependencies were updated
|
|
303
|
+
* dependencies
|
|
304
|
+
* @twin.org/dataspace-models bumped from 0.0.1-next.0 to 0.0.1-next.1
|
|
305
|
+
|
|
306
|
+
## @twin.org/dataspace-socket-client - Changelog
|
package/docs/examples.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @twin.org/dataspace-socket-client - Examples
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
# Class: DataspaceDataPlaneSocketClient
|
|
2
|
+
|
|
3
|
+
Dataspace data plane client which publishes using REST API and websockets.
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- `BaseSocketClient`
|
|
8
|
+
|
|
9
|
+
## Implements
|
|
10
|
+
|
|
11
|
+
- `IDataspaceDataPlaneComponent`
|
|
12
|
+
|
|
13
|
+
## Constructors
|
|
14
|
+
|
|
15
|
+
### Constructor
|
|
16
|
+
|
|
17
|
+
> **new DataspaceDataPlaneSocketClient**(`options`): `DataspaceDataPlaneSocketClient`
|
|
18
|
+
|
|
19
|
+
Create a new instance of DataspaceDataPlaneSocketClient.
|
|
20
|
+
|
|
21
|
+
#### Parameters
|
|
22
|
+
|
|
23
|
+
##### options
|
|
24
|
+
|
|
25
|
+
[`IDataspaceDataPlaneSocketClientConstructorOptions`](../interfaces/IDataspaceDataPlaneSocketClientConstructorOptions.md)
|
|
26
|
+
|
|
27
|
+
Options for the client.
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
`DataspaceDataPlaneSocketClient`
|
|
32
|
+
|
|
33
|
+
#### Overrides
|
|
34
|
+
|
|
35
|
+
`BaseSocketClient.constructor`
|
|
36
|
+
|
|
37
|
+
## Properties
|
|
38
|
+
|
|
39
|
+
### CLASS\_NAME
|
|
40
|
+
|
|
41
|
+
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
42
|
+
|
|
43
|
+
Runtime name for the class.
|
|
44
|
+
|
|
45
|
+
## Methods
|
|
46
|
+
|
|
47
|
+
### className()
|
|
48
|
+
|
|
49
|
+
> **className**(): `string`
|
|
50
|
+
|
|
51
|
+
Returns the class name of the component.
|
|
52
|
+
|
|
53
|
+
#### Returns
|
|
54
|
+
|
|
55
|
+
`string`
|
|
56
|
+
|
|
57
|
+
The class name of the component.
|
|
58
|
+
|
|
59
|
+
#### Implementation of
|
|
60
|
+
|
|
61
|
+
`IDataspaceDataPlaneComponent.className`
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### notifyActivity()
|
|
66
|
+
|
|
67
|
+
> **notifyActivity**(`activity`): `Promise`\<`string`\>
|
|
68
|
+
|
|
69
|
+
Notify an Activity to the Dataspace Activity Stream - implemented in REST Client.
|
|
70
|
+
|
|
71
|
+
#### Parameters
|
|
72
|
+
|
|
73
|
+
##### activity
|
|
74
|
+
|
|
75
|
+
`IActivityStreamsActivity`
|
|
76
|
+
|
|
77
|
+
The Activity notified.
|
|
78
|
+
|
|
79
|
+
#### Returns
|
|
80
|
+
|
|
81
|
+
`Promise`\<`string`\>
|
|
82
|
+
|
|
83
|
+
The Activity's identifier.
|
|
84
|
+
|
|
85
|
+
#### Implementation of
|
|
86
|
+
|
|
87
|
+
`IDataspaceDataPlaneComponent.notifyActivity`
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
91
|
+
### subscribeToActivityLog()
|
|
92
|
+
|
|
93
|
+
> **subscribeToActivityLog**(`callback`, `subscriptionId?`): `Promise`\<`string`\>
|
|
94
|
+
|
|
95
|
+
Subscribes to the activity log.
|
|
96
|
+
|
|
97
|
+
#### Parameters
|
|
98
|
+
|
|
99
|
+
##### callback
|
|
100
|
+
|
|
101
|
+
(`notification`) => `Promise`\<`void`\>
|
|
102
|
+
|
|
103
|
+
The callback to be called when Activity Log is called.
|
|
104
|
+
|
|
105
|
+
##### subscriptionId?
|
|
106
|
+
|
|
107
|
+
`string`
|
|
108
|
+
|
|
109
|
+
The subscription Id.
|
|
110
|
+
|
|
111
|
+
#### Returns
|
|
112
|
+
|
|
113
|
+
`Promise`\<`string`\>
|
|
114
|
+
|
|
115
|
+
The subscription Id.
|
|
116
|
+
|
|
117
|
+
#### Implementation of
|
|
118
|
+
|
|
119
|
+
`IDataspaceDataPlaneComponent.subscribeToActivityLog`
|
|
120
|
+
|
|
121
|
+
***
|
|
122
|
+
|
|
123
|
+
### unSubscribeToActivityLog()
|
|
124
|
+
|
|
125
|
+
> **unSubscribeToActivityLog**(`subscriptionId`): `Promise`\<`void`\>
|
|
126
|
+
|
|
127
|
+
Unsubscribes to the activity log.
|
|
128
|
+
|
|
129
|
+
#### Parameters
|
|
130
|
+
|
|
131
|
+
##### subscriptionId
|
|
132
|
+
|
|
133
|
+
`string`
|
|
134
|
+
|
|
135
|
+
The subscription Id.
|
|
136
|
+
|
|
137
|
+
#### Returns
|
|
138
|
+
|
|
139
|
+
`Promise`\<`void`\>
|
|
140
|
+
|
|
141
|
+
The subscription Id.
|
|
142
|
+
|
|
143
|
+
#### Implementation of
|
|
144
|
+
|
|
145
|
+
`IDataspaceDataPlaneComponent.unSubscribeToActivityLog`
|
|
146
|
+
|
|
147
|
+
***
|
|
148
|
+
|
|
149
|
+
### getActivityLogEntry()
|
|
150
|
+
|
|
151
|
+
> **getActivityLogEntry**(`logEntryId`): `Promise`\<`IActivityLogEntry`\>
|
|
152
|
+
|
|
153
|
+
Returns Activity Log Entry which contains the Activity processing details - implemented in REST Client.
|
|
154
|
+
|
|
155
|
+
#### Parameters
|
|
156
|
+
|
|
157
|
+
##### logEntryId
|
|
158
|
+
|
|
159
|
+
`string`
|
|
160
|
+
|
|
161
|
+
The Id of the Activity Log Entry (a URI).
|
|
162
|
+
|
|
163
|
+
#### Returns
|
|
164
|
+
|
|
165
|
+
`Promise`\<`IActivityLogEntry`\>
|
|
166
|
+
|
|
167
|
+
the Activity Log Entry with the processing details.
|
|
168
|
+
|
|
169
|
+
#### Throws
|
|
170
|
+
|
|
171
|
+
NotFoundError if activity log entry is not known.
|
|
172
|
+
|
|
173
|
+
#### Implementation of
|
|
174
|
+
|
|
175
|
+
`IDataspaceDataPlaneComponent.getActivityLogEntry`
|
|
176
|
+
|
|
177
|
+
***
|
|
178
|
+
|
|
179
|
+
### getDataAssetEntities()
|
|
180
|
+
|
|
181
|
+
> **getDataAssetEntities**(`entitySet`, `consumerPid`, `cursor?`, `limit?`, `trustPayload?`): `Promise`\<`IDataAssetItemListResult`\>
|
|
182
|
+
|
|
183
|
+
Get Data Asset entities. Allows to retrieve entities by their type or id.
|
|
184
|
+
|
|
185
|
+
#### Parameters
|
|
186
|
+
|
|
187
|
+
##### entitySet
|
|
188
|
+
|
|
189
|
+
`IEntitySet` & `object`
|
|
190
|
+
|
|
191
|
+
The set of entities to be retrieved.
|
|
192
|
+
|
|
193
|
+
##### consumerPid
|
|
194
|
+
|
|
195
|
+
`string`
|
|
196
|
+
|
|
197
|
+
The consumer Process ID from the DSP Transfer Process.
|
|
198
|
+
Used to resolve datasetId from the Transfer Process.
|
|
199
|
+
|
|
200
|
+
##### cursor?
|
|
201
|
+
|
|
202
|
+
`string`
|
|
203
|
+
|
|
204
|
+
Pagination details - cursor.
|
|
205
|
+
|
|
206
|
+
##### limit?
|
|
207
|
+
|
|
208
|
+
`number`
|
|
209
|
+
|
|
210
|
+
Pagination details - max number of entities.
|
|
211
|
+
|
|
212
|
+
##### trustPayload?
|
|
213
|
+
|
|
214
|
+
`unknown`
|
|
215
|
+
|
|
216
|
+
Trust payload to verify the requesters identity.
|
|
217
|
+
|
|
218
|
+
#### Returns
|
|
219
|
+
|
|
220
|
+
`Promise`\<`IDataAssetItemListResult`\>
|
|
221
|
+
|
|
222
|
+
The item list and optional cursor for pagination via Link headers.
|
|
223
|
+
|
|
224
|
+
#### Implementation of
|
|
225
|
+
|
|
226
|
+
`IDataspaceDataPlaneComponent.getDataAssetEntities`
|
|
227
|
+
|
|
228
|
+
***
|
|
229
|
+
|
|
230
|
+
### queryDataAsset()
|
|
231
|
+
|
|
232
|
+
> **queryDataAsset**(`consumerPid`, `query`, `cursor?`, `limit?`, `trustPayload?`): `Promise`\<`IDataAssetItemListResult`\>
|
|
233
|
+
|
|
234
|
+
Queries a data asset controlled by this Dataspace App.
|
|
235
|
+
|
|
236
|
+
#### Parameters
|
|
237
|
+
|
|
238
|
+
##### consumerPid
|
|
239
|
+
|
|
240
|
+
`string`
|
|
241
|
+
|
|
242
|
+
The consumer Process ID from the DSP Transfer Process.
|
|
243
|
+
Used to resolve datasetId from the Transfer Process.
|
|
244
|
+
|
|
245
|
+
##### query
|
|
246
|
+
|
|
247
|
+
`IFilteringQuery`
|
|
248
|
+
|
|
249
|
+
The filtering query.
|
|
250
|
+
|
|
251
|
+
##### cursor?
|
|
252
|
+
|
|
253
|
+
`string`
|
|
254
|
+
|
|
255
|
+
Pagination details - cursor.
|
|
256
|
+
|
|
257
|
+
##### limit?
|
|
258
|
+
|
|
259
|
+
`number`
|
|
260
|
+
|
|
261
|
+
Pagination details - max number of entities.
|
|
262
|
+
|
|
263
|
+
##### trustPayload?
|
|
264
|
+
|
|
265
|
+
`unknown`
|
|
266
|
+
|
|
267
|
+
Trust payload to verify the requesters identity.
|
|
268
|
+
|
|
269
|
+
#### Returns
|
|
270
|
+
|
|
271
|
+
`Promise`\<`IDataAssetItemListResult`\>
|
|
272
|
+
|
|
273
|
+
The item list and optional cursor for pagination via Link headers.
|
|
274
|
+
|
|
275
|
+
#### Implementation of
|
|
276
|
+
|
|
277
|
+
`IDataspaceDataPlaneComponent.queryDataAsset`
|
|
278
|
+
|
|
279
|
+
***
|
|
280
|
+
|
|
281
|
+
### handleConnected()
|
|
282
|
+
|
|
283
|
+
> `protected` **handleConnected**(): `Promise`\<`void`\>
|
|
284
|
+
|
|
285
|
+
Handle the socket connection.
|
|
286
|
+
|
|
287
|
+
#### Returns
|
|
288
|
+
|
|
289
|
+
`Promise`\<`void`\>
|
|
290
|
+
|
|
291
|
+
#### Overrides
|
|
292
|
+
|
|
293
|
+
`BaseSocketClient.handleConnected`
|
|
294
|
+
|
|
295
|
+
***
|
|
296
|
+
|
|
297
|
+
### handleError()
|
|
298
|
+
|
|
299
|
+
> `protected` **handleError**(`err`): `Promise`\<`void`\>
|
|
300
|
+
|
|
301
|
+
Handle an error.
|
|
302
|
+
|
|
303
|
+
#### Parameters
|
|
304
|
+
|
|
305
|
+
##### err
|
|
306
|
+
|
|
307
|
+
`IError`
|
|
308
|
+
|
|
309
|
+
The error to handle.
|
|
310
|
+
|
|
311
|
+
#### Returns
|
|
312
|
+
|
|
313
|
+
`Promise`\<`void`\>
|
|
314
|
+
|
|
315
|
+
#### Overrides
|
|
316
|
+
|
|
317
|
+
`BaseSocketClient.handleError`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# @twin.org/dataspace-data-plane-socket-client
|
|
2
|
+
|
|
3
|
+
## Classes
|
|
4
|
+
|
|
5
|
+
- [DataspaceDataPlaneSocketClient](classes/DataspaceDataPlaneSocketClient.md)
|
|
6
|
+
|
|
7
|
+
## Interfaces
|
|
8
|
+
|
|
9
|
+
- [IDataspaceDataPlaneSocketClientConfig](interfaces/IDataspaceDataPlaneSocketClientConfig.md)
|
|
10
|
+
- [IDataspaceDataPlaneSocketClientConstructorOptions](interfaces/IDataspaceDataPlaneSocketClientConstructorOptions.md)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Interface: IDataspaceDataPlaneSocketClientConstructorOptions
|
|
2
|
+
|
|
3
|
+
The options for the dataspace data plane socket client.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### loggingComponentType?
|
|
8
|
+
|
|
9
|
+
> `optional` **loggingComponentType**: `string`
|
|
10
|
+
|
|
11
|
+
The type of logging component to use.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### config
|
|
16
|
+
|
|
17
|
+
> **config**: [`IDataspaceDataPlaneSocketClientConfig`](IDataspaceDataPlaneSocketClientConfig.md)
|
|
18
|
+
|
|
19
|
+
The configuration for the dataspace data plane socket client.
|
package/locales/en.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"error": {
|
|
3
|
+
"dataspaceDataPlaneSocketClient": {
|
|
4
|
+
"socketConnect": "Failure during socket connect",
|
|
5
|
+
"callback": "Error when calling local callback",
|
|
6
|
+
"notSupportedOnClient": "The method \"{methodName}\" is not supported on the socket client, it can only be used on a server side component"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"info": {
|
|
10
|
+
"dataspaceDataPlaneSocketClient": {
|
|
11
|
+
"subscribeActivityLogs": "Subscription created for topic activity logs with id \"{subscriptionId}\"",
|
|
12
|
+
"unsubscribeActivityLogs": "Subscription removed for topic activity logs with id \"{subscriptionId}\""
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|