@myko/core 4.8.1 → 4.10.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.
- package/dist/client.d.ts +30 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +281 -96
- package/dist/generated/MykoMessage.d.ts +0 -5
- package/dist/generated/MykoMessage.d.ts.map +1 -1
- package/dist/generated/index.d.ts +201 -202
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +127 -128
- package/package.json +2 -2
package/dist/generated/index.js
CHANGED
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
// Auto-generated by type_gen - do not edit manually
|
|
2
2
|
export * from "./serde_json/JsonValue";
|
|
3
3
|
// Query classes
|
|
4
|
-
export class
|
|
5
|
-
static queryId = "
|
|
6
|
-
static queryItemType = "
|
|
7
|
-
queryId = "
|
|
8
|
-
queryItemType = "
|
|
4
|
+
export class GetClientsByIds {
|
|
5
|
+
static queryId = "GetClientsByIds";
|
|
6
|
+
static queryItemType = "Client";
|
|
7
|
+
queryId = "GetClientsByIds";
|
|
8
|
+
queryItemType = "Client";
|
|
9
9
|
query;
|
|
10
10
|
constructor(args) {
|
|
11
11
|
this.query = args;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export class
|
|
15
|
-
static queryId = "
|
|
16
|
-
static queryItemType = "
|
|
17
|
-
queryId = "
|
|
18
|
-
queryItemType = "
|
|
14
|
+
export class GetAllClients {
|
|
15
|
+
static queryId = "GetAllClients";
|
|
16
|
+
static queryItemType = "Client";
|
|
17
|
+
queryId = "GetAllClients";
|
|
18
|
+
queryItemType = "Client";
|
|
19
|
+
query;
|
|
20
|
+
constructor(args) {
|
|
21
|
+
this.query = args;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export class GetClientsByQuery {
|
|
25
|
+
static queryId = "GetClientsByQuery";
|
|
26
|
+
static queryItemType = "Client";
|
|
27
|
+
queryId = "GetClientsByQuery";
|
|
28
|
+
queryItemType = "Client";
|
|
19
29
|
query;
|
|
20
30
|
constructor(args) {
|
|
21
31
|
this.query = args;
|
|
@@ -51,31 +61,21 @@ export class GetPeerServers {
|
|
|
51
61
|
this.query = args;
|
|
52
62
|
}
|
|
53
63
|
}
|
|
54
|
-
export class
|
|
55
|
-
static queryId = "
|
|
56
|
-
static queryItemType = "
|
|
57
|
-
queryId = "
|
|
58
|
-
queryItemType = "
|
|
59
|
-
query;
|
|
60
|
-
constructor(args) {
|
|
61
|
-
this.query = args;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export class GetAllClients {
|
|
65
|
-
static queryId = "GetAllClients";
|
|
66
|
-
static queryItemType = "Client";
|
|
67
|
-
queryId = "GetAllClients";
|
|
68
|
-
queryItemType = "Client";
|
|
64
|
+
export class GetAllServers {
|
|
65
|
+
static queryId = "GetAllServers";
|
|
66
|
+
static queryItemType = "Server";
|
|
67
|
+
queryId = "GetAllServers";
|
|
68
|
+
queryItemType = "Server";
|
|
69
69
|
query;
|
|
70
70
|
constructor(args) {
|
|
71
71
|
this.query = args;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
export class
|
|
75
|
-
static queryId = "
|
|
76
|
-
static queryItemType = "
|
|
77
|
-
queryId = "
|
|
78
|
-
queryItemType = "
|
|
74
|
+
export class GetServersByQuery {
|
|
75
|
+
static queryId = "GetServersByQuery";
|
|
76
|
+
static queryItemType = "Server";
|
|
77
|
+
queryId = "GetServersByQuery";
|
|
78
|
+
queryItemType = "Server";
|
|
79
79
|
query;
|
|
80
80
|
constructor(args) {
|
|
81
81
|
this.query = args;
|
|
@@ -83,186 +83,186 @@ export class GetClientsByQuery {
|
|
|
83
83
|
}
|
|
84
84
|
// View classes
|
|
85
85
|
// Report classes
|
|
86
|
-
export class
|
|
87
|
-
static reportId = "
|
|
88
|
-
reportId = "
|
|
86
|
+
export class PeerAlive {
|
|
87
|
+
static reportId = "PeerAlive";
|
|
88
|
+
reportId = "PeerAlive";
|
|
89
89
|
report;
|
|
90
90
|
constructor(args) {
|
|
91
91
|
this.report = args;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
export class
|
|
95
|
-
static reportId = "
|
|
96
|
-
reportId = "
|
|
94
|
+
export class ChildEntities {
|
|
95
|
+
static reportId = "ChildEntities";
|
|
96
|
+
reportId = "ChildEntities";
|
|
97
97
|
report;
|
|
98
98
|
constructor(args) {
|
|
99
99
|
this.report = args;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
export class
|
|
103
|
-
static reportId = "
|
|
104
|
-
reportId = "
|
|
102
|
+
export class Loggers {
|
|
103
|
+
static reportId = "Loggers";
|
|
104
|
+
reportId = "Loggers";
|
|
105
105
|
report;
|
|
106
106
|
constructor(args) {
|
|
107
107
|
this.report = args;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
export class
|
|
111
|
-
static reportId = "
|
|
112
|
-
reportId = "
|
|
110
|
+
export class ServerLogLevel {
|
|
111
|
+
static reportId = "ServerLogLevel";
|
|
112
|
+
reportId = "ServerLogLevel";
|
|
113
113
|
report;
|
|
114
114
|
constructor(args) {
|
|
115
115
|
this.report = args;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
export class
|
|
119
|
-
static reportId = "
|
|
120
|
-
reportId = "
|
|
118
|
+
export class GetPersistHealth {
|
|
119
|
+
static reportId = "GetPersistHealth";
|
|
120
|
+
reportId = "GetPersistHealth";
|
|
121
121
|
report;
|
|
122
122
|
constructor(args) {
|
|
123
123
|
this.report = args;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
export class
|
|
127
|
-
static reportId = "
|
|
128
|
-
reportId = "
|
|
126
|
+
export class EventsForTransaction {
|
|
127
|
+
static reportId = "EventsForTransaction";
|
|
128
|
+
reportId = "EventsForTransaction";
|
|
129
129
|
report;
|
|
130
130
|
constructor(args) {
|
|
131
131
|
this.report = args;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
export class
|
|
135
|
-
static reportId = "
|
|
136
|
-
reportId = "
|
|
134
|
+
export class FullChildEntities {
|
|
135
|
+
static reportId = "FullChildEntities";
|
|
136
|
+
reportId = "FullChildEntities";
|
|
137
137
|
report;
|
|
138
138
|
constructor(args) {
|
|
139
139
|
this.report = args;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
export class
|
|
143
|
-
static reportId = "
|
|
144
|
-
reportId = "
|
|
142
|
+
export class ChildEntitiesAllTime {
|
|
143
|
+
static reportId = "ChildEntitiesAllTime";
|
|
144
|
+
reportId = "ChildEntitiesAllTime";
|
|
145
145
|
report;
|
|
146
146
|
constructor(args) {
|
|
147
147
|
this.report = args;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
export class
|
|
151
|
-
static reportId = "
|
|
152
|
-
reportId = "
|
|
150
|
+
export class GetItemsByTypeAndIds {
|
|
151
|
+
static reportId = "GetItemsByTypeAndIds";
|
|
152
|
+
reportId = "GetItemsByTypeAndIds";
|
|
153
153
|
report;
|
|
154
154
|
constructor(args) {
|
|
155
155
|
this.report = args;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
export class
|
|
159
|
-
static reportId = "
|
|
160
|
-
reportId = "
|
|
158
|
+
export class EntitySnapshotDifference {
|
|
159
|
+
static reportId = "EntitySnapshotDifference";
|
|
160
|
+
reportId = "EntitySnapshotDifference";
|
|
161
161
|
report;
|
|
162
162
|
constructor(args) {
|
|
163
163
|
this.report = args;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
export class
|
|
167
|
-
static reportId = "
|
|
168
|
-
reportId = "
|
|
166
|
+
export class ExportEntityTree {
|
|
167
|
+
static reportId = "ExportEntityTree";
|
|
168
|
+
reportId = "ExportEntityTree";
|
|
169
169
|
report;
|
|
170
170
|
constructor(args) {
|
|
171
171
|
this.report = args;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
export class
|
|
175
|
-
static reportId = "
|
|
176
|
-
reportId = "
|
|
174
|
+
export class CountClients {
|
|
175
|
+
static reportId = "CountClients";
|
|
176
|
+
reportId = "CountClients";
|
|
177
177
|
report;
|
|
178
178
|
constructor(args) {
|
|
179
179
|
this.report = args;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
export class
|
|
183
|
-
static reportId = "
|
|
184
|
-
reportId = "
|
|
182
|
+
export class CountAllClients {
|
|
183
|
+
static reportId = "CountAllClients";
|
|
184
|
+
reportId = "CountAllClients";
|
|
185
185
|
report;
|
|
186
186
|
constructor(args) {
|
|
187
187
|
this.report = args;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
export class
|
|
191
|
-
static reportId = "
|
|
192
|
-
reportId = "
|
|
190
|
+
export class WindbackStatus {
|
|
191
|
+
static reportId = "WindbackStatus";
|
|
192
|
+
reportId = "WindbackStatus";
|
|
193
193
|
report;
|
|
194
194
|
constructor(args) {
|
|
195
195
|
this.report = args;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
export class
|
|
199
|
-
static reportId = "
|
|
200
|
-
reportId = "
|
|
198
|
+
export class GetClientById {
|
|
199
|
+
static reportId = "GetClientById";
|
|
200
|
+
reportId = "GetClientById";
|
|
201
201
|
report;
|
|
202
202
|
constructor(args) {
|
|
203
203
|
this.report = args;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
export class
|
|
207
|
-
static reportId = "
|
|
208
|
-
reportId = "
|
|
206
|
+
export class ClientStatus {
|
|
207
|
+
static reportId = "ClientStatus";
|
|
208
|
+
reportId = "ClientStatus";
|
|
209
209
|
report;
|
|
210
210
|
constructor(args) {
|
|
211
211
|
this.report = args;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
export class
|
|
215
|
-
static reportId = "
|
|
216
|
-
reportId = "
|
|
214
|
+
export class GetServerById {
|
|
215
|
+
static reportId = "GetServerById";
|
|
216
|
+
reportId = "GetServerById";
|
|
217
217
|
report;
|
|
218
218
|
constructor(args) {
|
|
219
219
|
this.report = args;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
export class
|
|
223
|
-
static reportId = "
|
|
224
|
-
reportId = "
|
|
222
|
+
export class CountAllServers {
|
|
223
|
+
static reportId = "CountAllServers";
|
|
224
|
+
reportId = "CountAllServers";
|
|
225
225
|
report;
|
|
226
226
|
constructor(args) {
|
|
227
227
|
this.report = args;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
export class
|
|
231
|
-
static reportId = "
|
|
232
|
-
reportId = "
|
|
230
|
+
export class CountServers {
|
|
231
|
+
static reportId = "CountServers";
|
|
232
|
+
reportId = "CountServers";
|
|
233
233
|
report;
|
|
234
234
|
constructor(args) {
|
|
235
235
|
this.report = args;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
export class
|
|
239
|
-
static reportId = "
|
|
240
|
-
reportId = "
|
|
238
|
+
export class ServerStats {
|
|
239
|
+
static reportId = "ServerStats";
|
|
240
|
+
reportId = "ServerStats";
|
|
241
241
|
report;
|
|
242
242
|
constructor(args) {
|
|
243
243
|
this.report = args;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
export class
|
|
247
|
-
static reportId = "
|
|
248
|
-
reportId = "
|
|
246
|
+
export class EntitySearch {
|
|
247
|
+
static reportId = "EntitySearch";
|
|
248
|
+
reportId = "EntitySearch";
|
|
249
249
|
report;
|
|
250
250
|
constructor(args) {
|
|
251
251
|
this.report = args;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
// Command classes
|
|
255
|
-
export class
|
|
256
|
-
static commandId = "
|
|
257
|
-
commandId = "
|
|
255
|
+
export class SetLogLevel {
|
|
256
|
+
static commandId = "SetLogLevel";
|
|
257
|
+
commandId = "SetLogLevel";
|
|
258
258
|
command;
|
|
259
259
|
constructor(args) {
|
|
260
260
|
this.command = args;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
export class
|
|
264
|
-
static commandId = "
|
|
265
|
-
commandId = "
|
|
263
|
+
export class ImportItems {
|
|
264
|
+
static commandId = "ImportItems";
|
|
265
|
+
commandId = "ImportItems";
|
|
266
266
|
command;
|
|
267
267
|
constructor(args) {
|
|
268
268
|
this.command = args;
|
|
@@ -284,33 +284,33 @@ export class DeleteClient {
|
|
|
284
284
|
this.command = args;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
export class
|
|
288
|
-
static commandId = "
|
|
289
|
-
commandId = "
|
|
287
|
+
export class ClearClientWindbackTime {
|
|
288
|
+
static commandId = "ClearClientWindbackTime";
|
|
289
|
+
commandId = "ClearClientWindbackTime";
|
|
290
290
|
command;
|
|
291
291
|
constructor(args) {
|
|
292
292
|
this.command = args;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
export class
|
|
296
|
-
static commandId = "
|
|
297
|
-
commandId = "
|
|
295
|
+
export class DeleteClients {
|
|
296
|
+
static commandId = "DeleteClients";
|
|
297
|
+
commandId = "DeleteClients";
|
|
298
298
|
command;
|
|
299
299
|
constructor(args) {
|
|
300
300
|
this.command = args;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
export class
|
|
304
|
-
static commandId = "
|
|
305
|
-
commandId = "
|
|
303
|
+
export class DeleteServers {
|
|
304
|
+
static commandId = "DeleteServers";
|
|
305
|
+
commandId = "DeleteServers";
|
|
306
306
|
command;
|
|
307
307
|
constructor(args) {
|
|
308
308
|
this.command = args;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
export class
|
|
312
|
-
static commandId = "
|
|
313
|
-
commandId = "
|
|
311
|
+
export class DeleteServer {
|
|
312
|
+
static commandId = "DeleteServer";
|
|
313
|
+
commandId = "DeleteServer";
|
|
314
314
|
command;
|
|
315
315
|
constructor(args) {
|
|
316
316
|
this.command = args;
|
|
@@ -318,32 +318,31 @@ export class ImportItems {
|
|
|
318
318
|
}
|
|
319
319
|
// Item constructors
|
|
320
320
|
export const items = {
|
|
321
|
-
Server: (args) => ({ item: args, itemType: "Server" }),
|
|
322
321
|
Client: (args) => ({ item: args, itemType: "Client" }),
|
|
322
|
+
Server: (args) => ({ item: args, itemType: "Server" }),
|
|
323
323
|
};
|
|
324
324
|
// Message events
|
|
325
325
|
export const MykoEvent = {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
ReportResponse: "ws:m:report-response",
|
|
329
|
-
QueryResponse: "ws:m:query-response",
|
|
330
|
-
Event: "ws:m:event",
|
|
331
|
-
ViewResponse: "ws:m:view-response",
|
|
332
|
-
ViewWindow: "ws:m:view-window",
|
|
333
|
-
ViewError: "ws:m:view-error",
|
|
334
|
-
QueryCancel: "ws:m:query-cancel",
|
|
335
|
-
CommandError: "ws:m:command-error",
|
|
336
|
-
Report: "ws:m:report",
|
|
326
|
+
View: "ws:m:view",
|
|
327
|
+
Query: "ws:m:query",
|
|
337
328
|
QueryWindow: "ws:m:query-window",
|
|
338
|
-
|
|
329
|
+
QueryCancel: "ws:m:query-cancel",
|
|
339
330
|
Command: "ws:m:command",
|
|
340
|
-
|
|
341
|
-
|
|
331
|
+
ReportCancel: "ws:m:report-cancel",
|
|
332
|
+
ViewWindow: "ws:m:view-window",
|
|
342
333
|
ViewCancel: "ws:m:view-cancel",
|
|
343
|
-
|
|
334
|
+
ViewResponse: "ws:m:view-response",
|
|
344
335
|
Ping: "ws:m:ping",
|
|
336
|
+
Report: "ws:m:report",
|
|
345
337
|
EventBatch: "ws:m:event-batch",
|
|
346
|
-
|
|
338
|
+
ReportError: "ws:m:report-error",
|
|
347
339
|
CommandResponse: "ws:m:command-response",
|
|
340
|
+
ReportResponse: "ws:m:report-response",
|
|
341
|
+
Benchmark: "ws:m:benchmark",
|
|
342
|
+
QueryResponse: "ws:m:query-response",
|
|
343
|
+
CommandError: "ws:m:command-error",
|
|
344
|
+
Event: "ws:m:event",
|
|
345
|
+
ViewError: "ws:m:view-error",
|
|
346
|
+
QueryError: "ws:m:query-error",
|
|
348
347
|
};
|
|
349
348
|
// Shared constants
|
package/package.json
CHANGED