@myko/core 4.8.0 → 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.
@@ -1,81 +1,81 @@
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 GetConnectedServer {
5
- static queryId = "GetConnectedServer";
6
- static queryItemType = "Server";
7
- queryId = "GetConnectedServer";
8
- queryItemType = "Server";
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 GetPeerServers {
15
- static queryId = "GetPeerServers";
16
- static queryItemType = "Server";
17
- queryId = "GetPeerServers";
18
- queryItemType = "Server";
14
+ export class GetAllClients {
15
+ static queryId = "GetAllClients";
16
+ static queryItemType = "Client";
17
+ queryId = "GetAllClients";
18
+ queryItemType = "Client";
19
19
  query;
20
20
  constructor(args) {
21
21
  this.query = args;
22
22
  }
23
23
  }
24
- export class GetAllServers {
25
- static queryId = "GetAllServers";
26
- static queryItemType = "Server";
27
- queryId = "GetAllServers";
28
- queryItemType = "Server";
24
+ export class GetClientsByQuery {
25
+ static queryId = "GetClientsByQuery";
26
+ static queryItemType = "Client";
27
+ queryId = "GetClientsByQuery";
28
+ queryItemType = "Client";
29
29
  query;
30
30
  constructor(args) {
31
31
  this.query = args;
32
32
  }
33
33
  }
34
- export class GetServersByQuery {
35
- static queryId = "GetServersByQuery";
34
+ export class GetServersByIds {
35
+ static queryId = "GetServersByIds";
36
36
  static queryItemType = "Server";
37
- queryId = "GetServersByQuery";
37
+ queryId = "GetServersByIds";
38
38
  queryItemType = "Server";
39
39
  query;
40
40
  constructor(args) {
41
41
  this.query = args;
42
42
  }
43
43
  }
44
- export class GetServersByIds {
45
- static queryId = "GetServersByIds";
44
+ export class GetConnectedServer {
45
+ static queryId = "GetConnectedServer";
46
46
  static queryItemType = "Server";
47
- queryId = "GetServersByIds";
47
+ queryId = "GetConnectedServer";
48
48
  queryItemType = "Server";
49
49
  query;
50
50
  constructor(args) {
51
51
  this.query = args;
52
52
  }
53
53
  }
54
- export class GetClientsByQuery {
55
- static queryId = "GetClientsByQuery";
56
- static queryItemType = "Client";
57
- queryId = "GetClientsByQuery";
58
- queryItemType = "Client";
54
+ export class GetPeerServers {
55
+ static queryId = "GetPeerServers";
56
+ static queryItemType = "Server";
57
+ queryId = "GetPeerServers";
58
+ queryItemType = "Server";
59
59
  query;
60
60
  constructor(args) {
61
61
  this.query = args;
62
62
  }
63
63
  }
64
- export class GetClientsByIds {
65
- static queryId = "GetClientsByIds";
66
- static queryItemType = "Client";
67
- queryId = "GetClientsByIds";
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 GetAllClients {
75
- static queryId = "GetAllClients";
76
- static queryItemType = "Client";
77
- queryId = "GetAllClients";
78
- queryItemType = "Client";
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 GetAllClients {
83
83
  }
84
84
  // View classes
85
85
  // Report classes
86
- export class CountAllServers {
87
- static reportId = "CountAllServers";
88
- reportId = "CountAllServers";
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 GetServerById {
95
- static reportId = "GetServerById";
96
- reportId = "GetServerById";
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 ServerStats {
103
- static reportId = "ServerStats";
104
- reportId = "ServerStats";
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 CountServers {
111
- static reportId = "CountServers";
112
- reportId = "CountServers";
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 GetClientById {
119
- static reportId = "GetClientById";
120
- reportId = "GetClientById";
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 ClientStatus {
127
- static reportId = "ClientStatus";
128
- reportId = "ClientStatus";
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 CountAllClients {
135
- static reportId = "CountAllClients";
136
- reportId = "CountAllClients";
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 WindbackStatus {
143
- static reportId = "WindbackStatus";
144
- reportId = "WindbackStatus";
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 CountClients {
151
- static reportId = "CountClients";
152
- reportId = "CountClients";
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 EntitySearch {
159
- static reportId = "EntitySearch";
160
- reportId = "EntitySearch";
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 Loggers {
167
- static reportId = "Loggers";
168
- reportId = "Loggers";
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 FullChildEntities {
175
- static reportId = "FullChildEntities";
176
- reportId = "FullChildEntities";
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 GetPersistHealth {
183
- static reportId = "GetPersistHealth";
184
- reportId = "GetPersistHealth";
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 ChildEntities {
191
- static reportId = "ChildEntities";
192
- reportId = "ChildEntities";
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 ChildEntitiesAllTime {
199
- static reportId = "ChildEntitiesAllTime";
200
- reportId = "ChildEntitiesAllTime";
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 PeerAlive {
207
- static reportId = "PeerAlive";
208
- reportId = "PeerAlive";
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 EntitySnapshotDifference {
215
- static reportId = "EntitySnapshotDifference";
216
- reportId = "EntitySnapshotDifference";
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 EventsForTransaction {
223
- static reportId = "EventsForTransaction";
224
- reportId = "EventsForTransaction";
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 GetItemsByTypeAndIds {
231
- static reportId = "GetItemsByTypeAndIds";
232
- reportId = "GetItemsByTypeAndIds";
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 ServerLogLevel {
239
- static reportId = "ServerLogLevel";
240
- reportId = "ServerLogLevel";
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 ExportEntityTree {
247
- static reportId = "ExportEntityTree";
248
- reportId = "ExportEntityTree";
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 DeleteServers {
256
- static commandId = "DeleteServers";
257
- commandId = "DeleteServers";
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 DeleteServer {
264
- static commandId = "DeleteServer";
265
- commandId = "DeleteServer";
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 DeleteClients {
288
- static commandId = "DeleteClients";
289
- commandId = "DeleteClients";
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 ClearClientWindbackTime {
296
- static commandId = "ClearClientWindbackTime";
297
- commandId = "ClearClientWindbackTime";
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 SetLogLevel {
304
- static commandId = "SetLogLevel";
305
- commandId = "SetLogLevel";
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 ImportItems {
312
- static commandId = "ImportItems";
313
- commandId = "ImportItems";
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
- ProtocolSwitch: "ws:m:protocol-switch",
327
- ViewCancel: "ws:m:view-cancel",
328
- Benchmark: "ws:m:benchmark",
326
+ View: "ws:m:view",
329
327
  Query: "ws:m:query",
330
- CommandError: "ws:m:command-error",
331
- CommandResponse: "ws:m:command-response",
332
- QueryResponse: "ws:m:query-response",
333
328
  QueryWindow: "ws:m:query-window",
334
- QueryError: "ws:m:query-error",
329
+ QueryCancel: "ws:m:query-cancel",
335
330
  Command: "ws:m:command",
336
331
  ReportCancel: "ws:m:report-cancel",
337
- ReportError: "ws:m:report-error",
338
- ViewResponse: "ws:m:view-response",
339
- View: "ws:m:view",
340
- Event: "ws:m:event",
341
- QueryCancel: "ws:m:query-cancel",
342
332
  ViewWindow: "ws:m:view-window",
343
- ReportResponse: "ws:m:report-response",
344
- ViewError: "ws:m:view-error",
345
- EventBatch: "ws:m:event-batch",
333
+ ViewCancel: "ws:m:view-cancel",
334
+ ViewResponse: "ws:m:view-response",
346
335
  Ping: "ws:m:ping",
347
336
  Report: "ws:m:report",
337
+ EventBatch: "ws:m:event-batch",
338
+ ReportError: "ws:m:report-error",
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
@@ -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.0"
46
+ "version": "4.10.0"
47
47
  }