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