@twin.org/data-processing-rest-client 0.0.3-next.1 → 0.0.3-next.2
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/README.md +1 -1
- package/docs/changelog.md +56 -42
- package/docs/examples.md +61 -1
- package/docs/reference/classes/DataProcessingRestClient.md +8 -8
- package/package.json +5 -5
package/README.md
CHANGED
package/docs/changelog.md
CHANGED
|
@@ -1,24 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0.3-next.
|
|
3
|
+
## [0.0.3-next.2](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.3-next.1...data-processing-rest-client-v0.0.3-next.2) (2026-05-11)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Features
|
|
7
7
|
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
8
|
+
* typescript 6 update ([b67debb](https://github.com/iotaledger/twin-data-processing/commit/b67debb8aff83c0f3b179c6db038ed733f7308b1))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/data-processing-models bumped from 0.0.3-next.1 to 0.0.3-next.2
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.1](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.3-next.0...data-processing-rest-client-v0.0.3-next.1) (2025-11-11)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add context id features ([#25](https://github.com/iotaledger/twin-data-processing/issues/25)) ([2a2a955](https://github.com/iotaledger/twin-data-processing/commit/2a2a9559d54e8c703e97e2c05996e678416ef560))
|
|
23
|
+
* Add rule group query functionality ([#2](https://github.com/iotaledger/twin-data-processing/issues/2)) ([0fbbfb0](https://github.com/iotaledger/twin-data-processing/commit/0fbbfb065b6ecc293920b25f97ba011743105486))
|
|
24
|
+
* add validate-locales ([9af0874](https://github.com/iotaledger/twin-data-processing/commit/9af0874cd3f44a4cfca514dde8380f002e62337e))
|
|
25
|
+
* eslint migration to flat config ([a8138b0](https://github.com/iotaledger/twin-data-processing/commit/a8138b020ed58baeff162a822d4df207a6aeadc4))
|
|
26
|
+
* pass the mimeTypeOverride through the component extract method ([#9](https://github.com/iotaledger/twin-data-processing/issues/9)) ([a2b36de](https://github.com/iotaledger/twin-data-processing/commit/a2b36de5c19c56e4172d3f22b176aa83e1df84c8))
|
|
27
|
+
* update dependencies ([21b8e80](https://github.com/iotaledger/twin-data-processing/commit/21b8e8007c87136a09f0a8e35ffde13a07ff4711))
|
|
28
|
+
* update framework core ([96f6e80](https://github.com/iotaledger/twin-data-processing/commit/96f6e8016a4ef0fb873f6775e750b4ab42e9f491))
|
|
29
|
+
* use shared store mechanism ([#6](https://github.com/iotaledger/twin-data-processing/issues/6)) ([6009228](https://github.com/iotaledger/twin-data-processing/commit/600922880acef07cc2f818dee7645c342929108b))
|
|
16
30
|
|
|
17
31
|
|
|
18
32
|
### Bug Fixes
|
|
19
33
|
|
|
20
|
-
* supporting array usage ([#20](https://github.com/
|
|
21
|
-
* Update endpoint for fetching rule group list ([#3](https://github.com/
|
|
34
|
+
* supporting array usage ([#20](https://github.com/iotaledger/twin-data-processing/issues/20)) ([d2c68cd](https://github.com/iotaledger/twin-data-processing/commit/d2c68cd3983622586cc073377545d6416b87a827))
|
|
35
|
+
* Update endpoint for fetching rule group list ([#3](https://github.com/iotaledger/twin-data-processing/issues/3)) ([919c1b4](https://github.com/iotaledger/twin-data-processing/commit/919c1b435e760251ca57f96ed9f701b08542f318))
|
|
22
36
|
|
|
23
37
|
|
|
24
38
|
### Dependencies
|
|
@@ -27,12 +41,12 @@
|
|
|
27
41
|
* dependencies
|
|
28
42
|
* @twin.org/data-processing-models bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
29
43
|
|
|
30
|
-
## [0.0.2-next.4](https://github.com/
|
|
44
|
+
## [0.0.2-next.4](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.2-next.3...data-processing-rest-client-v0.0.2-next.4) (2025-10-22)
|
|
31
45
|
|
|
32
46
|
|
|
33
47
|
### Bug Fixes
|
|
34
48
|
|
|
35
|
-
* supporting array usage ([#20](https://github.com/
|
|
49
|
+
* supporting array usage ([#20](https://github.com/iotaledger/twin-data-processing/issues/20)) ([d2c68cd](https://github.com/iotaledger/twin-data-processing/commit/d2c68cd3983622586cc073377545d6416b87a827))
|
|
36
50
|
|
|
37
51
|
|
|
38
52
|
### Dependencies
|
|
@@ -41,12 +55,12 @@
|
|
|
41
55
|
* dependencies
|
|
42
56
|
* @twin.org/data-processing-models bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
43
57
|
|
|
44
|
-
## [0.0.2-next.3](https://github.com/
|
|
58
|
+
## [0.0.2-next.3](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.2-next.2...data-processing-rest-client-v0.0.2-next.3) (2025-10-09)
|
|
45
59
|
|
|
46
60
|
|
|
47
61
|
### Features
|
|
48
62
|
|
|
49
|
-
* add validate-locales ([9af0874](https://github.com/
|
|
63
|
+
* add validate-locales ([9af0874](https://github.com/iotaledger/twin-data-processing/commit/9af0874cd3f44a4cfca514dde8380f002e62337e))
|
|
50
64
|
|
|
51
65
|
|
|
52
66
|
### Dependencies
|
|
@@ -55,12 +69,12 @@
|
|
|
55
69
|
* dependencies
|
|
56
70
|
* @twin.org/data-processing-models bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
57
71
|
|
|
58
|
-
## [0.0.2-next.2](https://github.com/
|
|
72
|
+
## [0.0.2-next.2](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.2-next.1...data-processing-rest-client-v0.0.2-next.2) (2025-08-29)
|
|
59
73
|
|
|
60
74
|
|
|
61
75
|
### Features
|
|
62
76
|
|
|
63
|
-
* eslint migration to flat config ([a8138b0](https://github.com/
|
|
77
|
+
* eslint migration to flat config ([a8138b0](https://github.com/iotaledger/twin-data-processing/commit/a8138b020ed58baeff162a822d4df207a6aeadc4))
|
|
64
78
|
|
|
65
79
|
|
|
66
80
|
### Dependencies
|
|
@@ -69,21 +83,21 @@
|
|
|
69
83
|
* dependencies
|
|
70
84
|
* @twin.org/data-processing-models bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
71
85
|
|
|
72
|
-
## [0.0.2-next.1](https://github.com/
|
|
86
|
+
## [0.0.2-next.1](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.2-next.0...data-processing-rest-client-v0.0.2-next.1) (2025-08-20)
|
|
73
87
|
|
|
74
88
|
|
|
75
89
|
### Features
|
|
76
90
|
|
|
77
|
-
* Add rule group query functionality ([#2](https://github.com/
|
|
78
|
-
* pass the mimeTypeOverride through the component extract method ([#9](https://github.com/
|
|
79
|
-
* update dependencies ([21b8e80](https://github.com/
|
|
80
|
-
* update framework core ([96f6e80](https://github.com/
|
|
81
|
-
* use shared store mechanism ([#6](https://github.com/
|
|
91
|
+
* Add rule group query functionality ([#2](https://github.com/iotaledger/twin-data-processing/issues/2)) ([0fbbfb0](https://github.com/iotaledger/twin-data-processing/commit/0fbbfb065b6ecc293920b25f97ba011743105486))
|
|
92
|
+
* pass the mimeTypeOverride through the component extract method ([#9](https://github.com/iotaledger/twin-data-processing/issues/9)) ([a2b36de](https://github.com/iotaledger/twin-data-processing/commit/a2b36de5c19c56e4172d3f22b176aa83e1df84c8))
|
|
93
|
+
* update dependencies ([21b8e80](https://github.com/iotaledger/twin-data-processing/commit/21b8e8007c87136a09f0a8e35ffde13a07ff4711))
|
|
94
|
+
* update framework core ([96f6e80](https://github.com/iotaledger/twin-data-processing/commit/96f6e8016a4ef0fb873f6775e750b4ab42e9f491))
|
|
95
|
+
* use shared store mechanism ([#6](https://github.com/iotaledger/twin-data-processing/issues/6)) ([6009228](https://github.com/iotaledger/twin-data-processing/commit/600922880acef07cc2f818dee7645c342929108b))
|
|
82
96
|
|
|
83
97
|
|
|
84
98
|
### Bug Fixes
|
|
85
99
|
|
|
86
|
-
* Update endpoint for fetching rule group list ([#3](https://github.com/
|
|
100
|
+
* Update endpoint for fetching rule group list ([#3](https://github.com/iotaledger/twin-data-processing/issues/3)) ([919c1b4](https://github.com/iotaledger/twin-data-processing/commit/919c1b435e760251ca57f96ed9f701b08542f318))
|
|
87
101
|
|
|
88
102
|
|
|
89
103
|
### Dependencies
|
|
@@ -97,16 +111,16 @@
|
|
|
97
111
|
|
|
98
112
|
### Features
|
|
99
113
|
|
|
100
|
-
* Add rule group query functionality ([#2](https://github.com/
|
|
101
|
-
* pass the mimeTypeOverride through the component extract method ([#9](https://github.com/
|
|
102
|
-
* release to production ([531ba89](https://github.com/
|
|
103
|
-
* update dependencies ([21b8e80](https://github.com/
|
|
104
|
-
* use shared store mechanism ([#6](https://github.com/
|
|
114
|
+
* Add rule group query functionality ([#2](https://github.com/iotaledger/twin-data-processing/issues/2)) ([0fbbfb0](https://github.com/iotaledger/twin-data-processing/commit/0fbbfb065b6ecc293920b25f97ba011743105486))
|
|
115
|
+
* pass the mimeTypeOverride through the component extract method ([#9](https://github.com/iotaledger/twin-data-processing/issues/9)) ([a2b36de](https://github.com/iotaledger/twin-data-processing/commit/a2b36de5c19c56e4172d3f22b176aa83e1df84c8))
|
|
116
|
+
* release to production ([531ba89](https://github.com/iotaledger/twin-data-processing/commit/531ba89dea2deb2810870b72851dca3081f9d2ce))
|
|
117
|
+
* update dependencies ([21b8e80](https://github.com/iotaledger/twin-data-processing/commit/21b8e8007c87136a09f0a8e35ffde13a07ff4711))
|
|
118
|
+
* use shared store mechanism ([#6](https://github.com/iotaledger/twin-data-processing/issues/6)) ([6009228](https://github.com/iotaledger/twin-data-processing/commit/600922880acef07cc2f818dee7645c342929108b))
|
|
105
119
|
|
|
106
120
|
|
|
107
121
|
### Bug Fixes
|
|
108
122
|
|
|
109
|
-
* Update endpoint for fetching rule group list ([#3](https://github.com/
|
|
123
|
+
* Update endpoint for fetching rule group list ([#3](https://github.com/iotaledger/twin-data-processing/issues/3)) ([919c1b4](https://github.com/iotaledger/twin-data-processing/commit/919c1b435e760251ca57f96ed9f701b08542f318))
|
|
110
124
|
|
|
111
125
|
|
|
112
126
|
### Dependencies
|
|
@@ -115,7 +129,7 @@
|
|
|
115
129
|
* dependencies
|
|
116
130
|
* @twin.org/data-processing-models bumped from ^0.0.0 to ^0.0.1
|
|
117
131
|
|
|
118
|
-
## [0.0.1-next.16](https://github.com/
|
|
132
|
+
## [0.0.1-next.16](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.1-next.15...data-processing-rest-client-v0.0.1-next.16) (2025-06-20)
|
|
119
133
|
|
|
120
134
|
|
|
121
135
|
### Miscellaneous Chores
|
|
@@ -129,12 +143,12 @@
|
|
|
129
143
|
* dependencies
|
|
130
144
|
* @twin.org/data-processing-models bumped from 0.0.1-next.15 to 0.0.1-next.16
|
|
131
145
|
|
|
132
|
-
## [0.0.1-next.15](https://github.com/
|
|
146
|
+
## [0.0.1-next.15](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.1-next.14...data-processing-rest-client-v0.0.1-next.15) (2025-06-12)
|
|
133
147
|
|
|
134
148
|
|
|
135
149
|
### Features
|
|
136
150
|
|
|
137
|
-
* update dependencies ([21b8e80](https://github.com/
|
|
151
|
+
* update dependencies ([21b8e80](https://github.com/iotaledger/twin-data-processing/commit/21b8e8007c87136a09f0a8e35ffde13a07ff4711))
|
|
138
152
|
|
|
139
153
|
|
|
140
154
|
### Dependencies
|
|
@@ -143,12 +157,12 @@
|
|
|
143
157
|
* dependencies
|
|
144
158
|
* @twin.org/data-processing-models bumped from 0.0.1-next.14 to 0.0.1-next.15
|
|
145
159
|
|
|
146
|
-
## [0.0.1-next.14](https://github.com/
|
|
160
|
+
## [0.0.1-next.14](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.1-next.13...data-processing-rest-client-v0.0.1-next.14) (2025-04-28)
|
|
147
161
|
|
|
148
162
|
|
|
149
163
|
### Features
|
|
150
164
|
|
|
151
|
-
* pass the mimeTypeOverride through the component extract method ([#9](https://github.com/
|
|
165
|
+
* pass the mimeTypeOverride through the component extract method ([#9](https://github.com/iotaledger/twin-data-processing/issues/9)) ([a2b36de](https://github.com/iotaledger/twin-data-processing/commit/a2b36de5c19c56e4172d3f22b176aa83e1df84c8))
|
|
152
166
|
|
|
153
167
|
|
|
154
168
|
### Dependencies
|
|
@@ -157,7 +171,7 @@
|
|
|
157
171
|
* dependencies
|
|
158
172
|
* @twin.org/data-processing-models bumped from 0.0.1-next.13 to 0.0.1-next.14
|
|
159
173
|
|
|
160
|
-
## [0.0.1-next.13](https://github.com/
|
|
174
|
+
## [0.0.1-next.13](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.1-next.12...data-processing-rest-client-v0.0.1-next.13) (2025-04-24)
|
|
161
175
|
|
|
162
176
|
|
|
163
177
|
### Miscellaneous Chores
|
|
@@ -171,12 +185,12 @@
|
|
|
171
185
|
* dependencies
|
|
172
186
|
* @twin.org/data-processing-models bumped from 0.0.1-next.12 to 0.0.1-next.13
|
|
173
187
|
|
|
174
|
-
## [0.0.1-next.12](https://github.com/
|
|
188
|
+
## [0.0.1-next.12](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.1-next.11...data-processing-rest-client-v0.0.1-next.12) (2025-04-17)
|
|
175
189
|
|
|
176
190
|
|
|
177
191
|
### Features
|
|
178
192
|
|
|
179
|
-
* use shared store mechanism ([#6](https://github.com/
|
|
193
|
+
* use shared store mechanism ([#6](https://github.com/iotaledger/twin-data-processing/issues/6)) ([6009228](https://github.com/iotaledger/twin-data-processing/commit/600922880acef07cc2f818dee7645c342929108b))
|
|
180
194
|
|
|
181
195
|
|
|
182
196
|
### Dependencies
|
|
@@ -185,17 +199,17 @@
|
|
|
185
199
|
* dependencies
|
|
186
200
|
* @twin.org/data-processing-models bumped from 0.0.1-next.11 to 0.0.1-next.12
|
|
187
201
|
|
|
188
|
-
## [0.0.1-next.11](https://github.com/
|
|
202
|
+
## [0.0.1-next.11](https://github.com/iotaledger/twin-data-processing/compare/data-processing-rest-client-v0.0.1-next.10...data-processing-rest-client-v0.0.1-next.11) (2025-03-28)
|
|
189
203
|
|
|
190
204
|
|
|
191
205
|
### Features
|
|
192
206
|
|
|
193
|
-
* Add rule group query functionality ([#2](https://github.com/
|
|
207
|
+
* Add rule group query functionality ([#2](https://github.com/iotaledger/twin-data-processing/issues/2)) ([0fbbfb0](https://github.com/iotaledger/twin-data-processing/commit/0fbbfb065b6ecc293920b25f97ba011743105486))
|
|
194
208
|
|
|
195
209
|
|
|
196
210
|
### Bug Fixes
|
|
197
211
|
|
|
198
|
-
* Update endpoint for fetching rule group list ([#3](https://github.com/
|
|
212
|
+
* Update endpoint for fetching rule group list ([#3](https://github.com/iotaledger/twin-data-processing/issues/3)) ([919c1b4](https://github.com/iotaledger/twin-data-processing/commit/919c1b435e760251ca57f96ed9f701b08542f318))
|
|
199
213
|
|
|
200
214
|
|
|
201
215
|
### Dependencies
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,61 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Data Processing REST Client Examples
|
|
2
|
+
|
|
3
|
+
These snippets show how to connect to a running service, maintain rule groups, and call extraction and conversion endpoints.
|
|
4
|
+
|
|
5
|
+
## DataProcessingRestClient
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { ObjectHelper } from '@twin.org/core';
|
|
9
|
+
import type { IRuleGroup } from '@twin.org/data-processing-models';
|
|
10
|
+
import { DataProcessingRestClient } from '@twin.org/data-processing-rest-client';
|
|
11
|
+
|
|
12
|
+
const client = new DataProcessingRestClient({ endpoint: 'http://localhost:8080' });
|
|
13
|
+
|
|
14
|
+
console.log(client.className()); // dataProcessingRestClient
|
|
15
|
+
|
|
16
|
+
const ruleGroup: IRuleGroup = {
|
|
17
|
+
id: 'orders-summary',
|
|
18
|
+
label: 'Orders Summary',
|
|
19
|
+
rules: [
|
|
20
|
+
{ source: '$.orders[*].id', target: 'orderIds' },
|
|
21
|
+
{ source: '$.orders[*].total', target: 'totals' }
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
await client.ruleGroupSet(ruleGroup);
|
|
26
|
+
|
|
27
|
+
const saved = await client.ruleGroupGet('orders-summary');
|
|
28
|
+
console.log(saved); // { id: 'orders-summary', label: 'Orders Summary', rules: [ { source: '$.orders[*].id', target: 'orderIds' }, { source: '$.orders[*].total', target: 'totals' } ] }
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { ObjectHelper } from '@twin.org/core';
|
|
33
|
+
import { DataProcessingRestClient } from '@twin.org/data-processing-rest-client';
|
|
34
|
+
|
|
35
|
+
const client = new DataProcessingRestClient({ endpoint: 'http://localhost:8080' });
|
|
36
|
+
|
|
37
|
+
const payload = ObjectHelper.toBytes({
|
|
38
|
+
orders: [
|
|
39
|
+
{ id: 'A-100', total: 19.99 },
|
|
40
|
+
{ id: 'A-101', total: 24.5 }
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const extracted = await client.extract('orders-summary', payload);
|
|
45
|
+
console.log(extracted); // { orderIds: ['A-100', 'A-101'], totals: [19.99, 24.5] }
|
|
46
|
+
|
|
47
|
+
const converted = await client.convert(payload, 'application/json');
|
|
48
|
+
console.log(converted); // { orders: [ { id: 'A-100', total: 19.99 }, { id: 'A-101', total: 24.5 } ] }
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```typescript
|
|
52
|
+
import { DataProcessingRestClient } from '@twin.org/data-processing-rest-client';
|
|
53
|
+
|
|
54
|
+
const client = new DataProcessingRestClient({ endpoint: 'http://localhost:8080' });
|
|
55
|
+
|
|
56
|
+
const listed = await client.query(undefined, 10);
|
|
57
|
+
console.log(listed.entities.length); // 1
|
|
58
|
+
console.log(listed.cursor); // undefined
|
|
59
|
+
|
|
60
|
+
await client.ruleGroupRemove('orders-summary');
|
|
61
|
+
```
|
|
@@ -36,7 +36,7 @@ The configuration for the client.
|
|
|
36
36
|
|
|
37
37
|
## Properties
|
|
38
38
|
|
|
39
|
-
### CLASS\_NAME
|
|
39
|
+
### CLASS\_NAME {#class_name}
|
|
40
40
|
|
|
41
41
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@ Runtime name for the class.
|
|
|
44
44
|
|
|
45
45
|
## Methods
|
|
46
46
|
|
|
47
|
-
### className()
|
|
47
|
+
### className() {#classname}
|
|
48
48
|
|
|
49
49
|
> **className**(): `string`
|
|
50
50
|
|
|
@@ -62,7 +62,7 @@ The class name of the component.
|
|
|
62
62
|
|
|
63
63
|
***
|
|
64
64
|
|
|
65
|
-
### ruleGroupSet()
|
|
65
|
+
### ruleGroupSet() {#rulegroupset}
|
|
66
66
|
|
|
67
67
|
> **ruleGroupSet**(`ruleGroup`): `Promise`\<`void`\>
|
|
68
68
|
|
|
@@ -88,7 +88,7 @@ Nothing.
|
|
|
88
88
|
|
|
89
89
|
***
|
|
90
90
|
|
|
91
|
-
### ruleGroupGet()
|
|
91
|
+
### ruleGroupGet() {#rulegroupget}
|
|
92
92
|
|
|
93
93
|
> **ruleGroupGet**(`ruleGroupId`): `Promise`\<`IRuleGroup`\>
|
|
94
94
|
|
|
@@ -114,7 +114,7 @@ The rule group.
|
|
|
114
114
|
|
|
115
115
|
***
|
|
116
116
|
|
|
117
|
-
### ruleGroupRemove()
|
|
117
|
+
### ruleGroupRemove() {#rulegroupremove}
|
|
118
118
|
|
|
119
119
|
> **ruleGroupRemove**(`ruleGroupId`): `Promise`\<`void`\>
|
|
120
120
|
|
|
@@ -140,7 +140,7 @@ Nothing.
|
|
|
140
140
|
|
|
141
141
|
***
|
|
142
142
|
|
|
143
|
-
### extract()
|
|
143
|
+
### extract() {#extract}
|
|
144
144
|
|
|
145
145
|
> **extract**(`ruleGroupId`, `data`, `overrideExtractorType?`, `overrideMimeType?`): `Promise`\<`unknown`\>
|
|
146
146
|
|
|
@@ -184,7 +184,7 @@ The extracted data.
|
|
|
184
184
|
|
|
185
185
|
***
|
|
186
186
|
|
|
187
|
-
### convert()
|
|
187
|
+
### convert() {#convert}
|
|
188
188
|
|
|
189
189
|
> **convert**(`data`, `overrideMimeType?`): `Promise`\<`unknown`\>
|
|
190
190
|
|
|
@@ -216,7 +216,7 @@ The converted data.
|
|
|
216
216
|
|
|
217
217
|
***
|
|
218
218
|
|
|
219
|
-
### query()
|
|
219
|
+
### query() {#query}
|
|
220
220
|
|
|
221
221
|
> **query**(`cursor?`, `limit?`): `Promise`\<\{ `entities`: `IRuleGroup`[]; `cursor?`: `string`; \}\>
|
|
222
222
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/data-processing-rest-client",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.2",
|
|
4
|
+
"description": "REST client for calling data processing service endpoints from applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/data-processing.git",
|
|
8
8
|
"directory": "packages/data-processing-rest-client"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@twin.org/api-core": "next",
|
|
18
18
|
"@twin.org/api-models": "next",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
|
-
"@twin.org/data-processing-models": "0.0.3-next.
|
|
20
|
+
"@twin.org/data-processing-models": "0.0.3-next.2",
|
|
21
21
|
"@twin.org/entity": "next",
|
|
22
22
|
"@twin.org/nameof": "next",
|
|
23
23
|
"@twin.org/web": "next"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"conversion"
|
|
52
52
|
],
|
|
53
53
|
"bugs": {
|
|
54
|
-
"url": "git+https://github.com/
|
|
54
|
+
"url": "git+https://github.com/iotaledger/data-processing/issues"
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://twindev.org"
|
|
57
57
|
}
|