@myko/core 4.4.0-canary.5 → 4.4.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/package.json +1 -1
- package/src/generated/index.ts +148 -148
package/package.json
CHANGED
package/src/generated/index.ts
CHANGED
|
@@ -130,6 +130,19 @@ export class GetClientsByIds {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
export class GetAllClients {
|
|
134
|
+
static readonly queryId = "GetAllClients" as const;
|
|
135
|
+
static readonly queryItemType = "Client" as const;
|
|
136
|
+
readonly queryId = "GetAllClients" as const;
|
|
137
|
+
readonly queryItemType = "Client" as const;
|
|
138
|
+
readonly query: Omit<_GetAllClients, "tx" | "createdAt">;
|
|
139
|
+
declare readonly $res: () => Client[];
|
|
140
|
+
|
|
141
|
+
constructor(args: Omit<_GetAllClients, "tx" | "createdAt">) {
|
|
142
|
+
this.query = args;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
133
146
|
export class GetClientsByQuery {
|
|
134
147
|
static readonly queryId = "GetClientsByQuery" as const;
|
|
135
148
|
static readonly queryItemType = "Client" as const;
|
|
@@ -143,15 +156,15 @@ export class GetClientsByQuery {
|
|
|
143
156
|
}
|
|
144
157
|
}
|
|
145
158
|
|
|
146
|
-
export class
|
|
147
|
-
static readonly queryId = "
|
|
148
|
-
static readonly queryItemType = "
|
|
149
|
-
readonly queryId = "
|
|
150
|
-
readonly queryItemType = "
|
|
151
|
-
readonly query: Omit<
|
|
152
|
-
declare readonly $res: () =>
|
|
159
|
+
export class GetAllServers {
|
|
160
|
+
static readonly queryId = "GetAllServers" as const;
|
|
161
|
+
static readonly queryItemType = "Server" as const;
|
|
162
|
+
readonly queryId = "GetAllServers" as const;
|
|
163
|
+
readonly queryItemType = "Server" as const;
|
|
164
|
+
readonly query: Omit<_GetAllServers, "tx" | "createdAt">;
|
|
165
|
+
declare readonly $res: () => Server[];
|
|
153
166
|
|
|
154
|
-
constructor(args: Omit<
|
|
167
|
+
constructor(args: Omit<_GetAllServers, "tx" | "createdAt">) {
|
|
155
168
|
this.query = args;
|
|
156
169
|
}
|
|
157
170
|
}
|
|
@@ -182,6 +195,19 @@ export class GetServersByIds {
|
|
|
182
195
|
}
|
|
183
196
|
}
|
|
184
197
|
|
|
198
|
+
export class GetPeerServers {
|
|
199
|
+
static readonly queryId = "GetPeerServers" as const;
|
|
200
|
+
static readonly queryItemType = "Server" as const;
|
|
201
|
+
readonly queryId = "GetPeerServers" as const;
|
|
202
|
+
readonly queryItemType = "Server" as const;
|
|
203
|
+
readonly query: Omit<_GetPeerServers, "tx" | "createdAt">;
|
|
204
|
+
declare readonly $res: () => Server[];
|
|
205
|
+
|
|
206
|
+
constructor(args: Omit<_GetPeerServers, "tx" | "createdAt">) {
|
|
207
|
+
this.query = args;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
185
211
|
export class GetServersByQuery {
|
|
186
212
|
static readonly queryId = "GetServersByQuery" as const;
|
|
187
213
|
static readonly queryItemType = "Server" as const;
|
|
@@ -195,35 +221,42 @@ export class GetServersByQuery {
|
|
|
195
221
|
}
|
|
196
222
|
}
|
|
197
223
|
|
|
198
|
-
|
|
199
|
-
static readonly queryId = "GetAllServers" as const;
|
|
200
|
-
static readonly queryItemType = "Server" as const;
|
|
201
|
-
readonly queryId = "GetAllServers" as const;
|
|
202
|
-
readonly queryItemType = "Server" as const;
|
|
203
|
-
readonly query: Omit<_GetAllServers, "tx" | "createdAt">;
|
|
204
|
-
declare readonly $res: () => Server[];
|
|
224
|
+
// View classes
|
|
205
225
|
|
|
206
|
-
|
|
207
|
-
|
|
226
|
+
// Report classes
|
|
227
|
+
export class Loggers {
|
|
228
|
+
static readonly reportId = "Loggers" as const;
|
|
229
|
+
readonly reportId = "Loggers" as const;
|
|
230
|
+
readonly report: Omit<_Loggers, "tx">;
|
|
231
|
+
declare readonly $res: () => string[];
|
|
232
|
+
|
|
233
|
+
constructor(args: Omit<_Loggers, "tx">) {
|
|
234
|
+
this.report = args;
|
|
208
235
|
}
|
|
209
236
|
}
|
|
210
237
|
|
|
211
|
-
export class
|
|
212
|
-
static readonly
|
|
213
|
-
|
|
214
|
-
readonly
|
|
215
|
-
readonly
|
|
216
|
-
readonly query: Omit<_GetPeerServers, "tx" | "createdAt">;
|
|
217
|
-
declare readonly $res: () => Server[];
|
|
238
|
+
export class ServerLogLevel {
|
|
239
|
+
static readonly reportId = "ServerLogLevel" as const;
|
|
240
|
+
readonly reportId = "ServerLogLevel" as const;
|
|
241
|
+
readonly report: Omit<_ServerLogLevel, "tx">;
|
|
242
|
+
declare readonly $res: () => LogLevel;
|
|
218
243
|
|
|
219
|
-
constructor(args: Omit<
|
|
220
|
-
this.
|
|
244
|
+
constructor(args: Omit<_ServerLogLevel, "tx">) {
|
|
245
|
+
this.report = args;
|
|
221
246
|
}
|
|
222
247
|
}
|
|
223
248
|
|
|
224
|
-
|
|
249
|
+
export class FullChildEntities {
|
|
250
|
+
static readonly reportId = "FullChildEntities" as const;
|
|
251
|
+
readonly reportId = "FullChildEntities" as const;
|
|
252
|
+
readonly report: Omit<_FullChildEntities, "tx">;
|
|
253
|
+
declare readonly $res: () => ItemStub[];
|
|
254
|
+
|
|
255
|
+
constructor(args: Omit<_FullChildEntities, "tx">) {
|
|
256
|
+
this.report = args;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
225
259
|
|
|
226
|
-
// Report classes
|
|
227
260
|
export class GetItemsByTypeAndIds {
|
|
228
261
|
static readonly reportId = "GetItemsByTypeAndIds" as const;
|
|
229
262
|
readonly reportId = "GetItemsByTypeAndIds" as const;
|
|
@@ -235,13 +268,13 @@ export class GetItemsByTypeAndIds {
|
|
|
235
268
|
}
|
|
236
269
|
}
|
|
237
270
|
|
|
238
|
-
export class
|
|
239
|
-
static readonly reportId = "
|
|
240
|
-
readonly reportId = "
|
|
241
|
-
readonly report: Omit<
|
|
242
|
-
declare readonly $res: () =>
|
|
271
|
+
export class ChildEntitiesAllTime {
|
|
272
|
+
static readonly reportId = "ChildEntitiesAllTime" as const;
|
|
273
|
+
readonly reportId = "ChildEntitiesAllTime" as const;
|
|
274
|
+
readonly report: Omit<_ChildEntitiesAllTime, "tx">;
|
|
275
|
+
declare readonly $res: () => ItemStub[];
|
|
243
276
|
|
|
244
|
-
constructor(args: Omit<
|
|
277
|
+
constructor(args: Omit<_ChildEntitiesAllTime, "tx">) {
|
|
245
278
|
this.report = args;
|
|
246
279
|
}
|
|
247
280
|
}
|
|
@@ -268,6 +301,17 @@ export class ChildEntities {
|
|
|
268
301
|
}
|
|
269
302
|
}
|
|
270
303
|
|
|
304
|
+
export class EventsForTransaction {
|
|
305
|
+
static readonly reportId = "EventsForTransaction" as const;
|
|
306
|
+
readonly reportId = "EventsForTransaction" as const;
|
|
307
|
+
readonly report: Omit<_EventsForTransaction, "tx">;
|
|
308
|
+
declare readonly $res: () => MEvent[];
|
|
309
|
+
|
|
310
|
+
constructor(args: Omit<_EventsForTransaction, "tx">) {
|
|
311
|
+
this.report = args;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
271
315
|
export class GetPersistHealth {
|
|
272
316
|
static readonly reportId = "GetPersistHealth" as const;
|
|
273
317
|
readonly reportId = "GetPersistHealth" as const;
|
|
@@ -279,39 +323,6 @@ export class GetPersistHealth {
|
|
|
279
323
|
}
|
|
280
324
|
}
|
|
281
325
|
|
|
282
|
-
export class ServerLogLevel {
|
|
283
|
-
static readonly reportId = "ServerLogLevel" as const;
|
|
284
|
-
readonly reportId = "ServerLogLevel" as const;
|
|
285
|
-
readonly report: Omit<_ServerLogLevel, "tx">;
|
|
286
|
-
declare readonly $res: () => LogLevel;
|
|
287
|
-
|
|
288
|
-
constructor(args: Omit<_ServerLogLevel, "tx">) {
|
|
289
|
-
this.report = args;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export class ChildEntitiesAllTime {
|
|
294
|
-
static readonly reportId = "ChildEntitiesAllTime" as const;
|
|
295
|
-
readonly reportId = "ChildEntitiesAllTime" as const;
|
|
296
|
-
readonly report: Omit<_ChildEntitiesAllTime, "tx">;
|
|
297
|
-
declare readonly $res: () => ItemStub[];
|
|
298
|
-
|
|
299
|
-
constructor(args: Omit<_ChildEntitiesAllTime, "tx">) {
|
|
300
|
-
this.report = args;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export class FullChildEntities {
|
|
305
|
-
static readonly reportId = "FullChildEntities" as const;
|
|
306
|
-
readonly reportId = "FullChildEntities" as const;
|
|
307
|
-
readonly report: Omit<_FullChildEntities, "tx">;
|
|
308
|
-
declare readonly $res: () => ItemStub[];
|
|
309
|
-
|
|
310
|
-
constructor(args: Omit<_FullChildEntities, "tx">) {
|
|
311
|
-
this.report = args;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
326
|
export class PeerAlive {
|
|
316
327
|
static readonly reportId = "PeerAlive" as const;
|
|
317
328
|
readonly reportId = "PeerAlive" as const;
|
|
@@ -323,17 +334,6 @@ export class PeerAlive {
|
|
|
323
334
|
}
|
|
324
335
|
}
|
|
325
336
|
|
|
326
|
-
export class EventsForTransaction {
|
|
327
|
-
static readonly reportId = "EventsForTransaction" as const;
|
|
328
|
-
readonly reportId = "EventsForTransaction" as const;
|
|
329
|
-
readonly report: Omit<_EventsForTransaction, "tx">;
|
|
330
|
-
declare readonly $res: () => MEvent[];
|
|
331
|
-
|
|
332
|
-
constructor(args: Omit<_EventsForTransaction, "tx">) {
|
|
333
|
-
this.report = args;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
337
|
export class CountAllClients {
|
|
338
338
|
static readonly reportId = "CountAllClients" as const;
|
|
339
339
|
readonly reportId = "CountAllClients" as const;
|
|
@@ -356,6 +356,17 @@ export class CountClients {
|
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
+
export class GetClientById {
|
|
360
|
+
static readonly reportId = "GetClientById" as const;
|
|
361
|
+
readonly reportId = "GetClientById" as const;
|
|
362
|
+
readonly report: Omit<_GetClientById, "tx">;
|
|
363
|
+
declare readonly $res: () => Client | null;
|
|
364
|
+
|
|
365
|
+
constructor(args: Omit<_GetClientById, "tx">) {
|
|
366
|
+
this.report = args;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
359
370
|
export class ClientStatus {
|
|
360
371
|
static readonly reportId = "ClientStatus" as const;
|
|
361
372
|
readonly reportId = "ClientStatus" as const;
|
|
@@ -378,17 +389,6 @@ export class WindbackStatus {
|
|
|
378
389
|
}
|
|
379
390
|
}
|
|
380
391
|
|
|
381
|
-
export class GetClientById {
|
|
382
|
-
static readonly reportId = "GetClientById" as const;
|
|
383
|
-
readonly reportId = "GetClientById" as const;
|
|
384
|
-
readonly report: Omit<_GetClientById, "tx">;
|
|
385
|
-
declare readonly $res: () => Client | null;
|
|
386
|
-
|
|
387
|
-
constructor(args: Omit<_GetClientById, "tx">) {
|
|
388
|
-
this.report = args;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
392
|
export class EntitySearch {
|
|
393
393
|
static readonly reportId = "EntitySearch" as const;
|
|
394
394
|
readonly reportId = "EntitySearch" as const;
|
|
@@ -411,17 +411,6 @@ export class CountAllServers {
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
export class GetServerById {
|
|
415
|
-
static readonly reportId = "GetServerById" as const;
|
|
416
|
-
readonly reportId = "GetServerById" as const;
|
|
417
|
-
readonly report: Omit<_GetServerById, "tx">;
|
|
418
|
-
declare readonly $res: () => Server | null;
|
|
419
|
-
|
|
420
|
-
constructor(args: Omit<_GetServerById, "tx">) {
|
|
421
|
-
this.report = args;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
414
|
export class ServerStats {
|
|
426
415
|
static readonly reportId = "ServerStats" as const;
|
|
427
416
|
readonly reportId = "ServerStats" as const;
|
|
@@ -444,6 +433,17 @@ export class CountServers {
|
|
|
444
433
|
}
|
|
445
434
|
}
|
|
446
435
|
|
|
436
|
+
export class GetServerById {
|
|
437
|
+
static readonly reportId = "GetServerById" as const;
|
|
438
|
+
readonly reportId = "GetServerById" as const;
|
|
439
|
+
readonly report: Omit<_GetServerById, "tx">;
|
|
440
|
+
declare readonly $res: () => Server | null;
|
|
441
|
+
|
|
442
|
+
constructor(args: Omit<_GetServerById, "tx">) {
|
|
443
|
+
this.report = args;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
447
|
export class ExportEntityTree {
|
|
448
448
|
static readonly reportId = "ExportEntityTree" as const;
|
|
449
449
|
readonly reportId = "ExportEntityTree" as const;
|
|
@@ -456,6 +456,17 @@ export class ExportEntityTree {
|
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
// Command classes
|
|
459
|
+
export class SetLogLevel {
|
|
460
|
+
static readonly commandId = "SetLogLevel" as const;
|
|
461
|
+
readonly commandId = "SetLogLevel" as const;
|
|
462
|
+
readonly command: Omit<_SetLogLevel, "tx" | "createdAt">;
|
|
463
|
+
declare readonly $res: () => boolean;
|
|
464
|
+
|
|
465
|
+
constructor(args: Omit<_SetLogLevel, "tx" | "createdAt">) {
|
|
466
|
+
this.command = args;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
459
470
|
export class ImportItems {
|
|
460
471
|
static readonly commandId = "ImportItems" as const;
|
|
461
472
|
readonly commandId = "ImportItems" as const;
|
|
@@ -467,13 +478,24 @@ export class ImportItems {
|
|
|
467
478
|
}
|
|
468
479
|
}
|
|
469
480
|
|
|
470
|
-
export class
|
|
471
|
-
static readonly commandId = "
|
|
472
|
-
readonly commandId = "
|
|
473
|
-
readonly command: Omit<
|
|
481
|
+
export class DeleteClient {
|
|
482
|
+
static readonly commandId = "DeleteClient" as const;
|
|
483
|
+
readonly commandId = "DeleteClient" as const;
|
|
484
|
+
readonly command: Omit<_DeleteClient, "tx" | "createdAt">;
|
|
485
|
+
declare readonly $res: () => DeleteClientResult;
|
|
486
|
+
|
|
487
|
+
constructor(args: Omit<_DeleteClient, "tx" | "createdAt">) {
|
|
488
|
+
this.command = args;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export class ClearClientWindbackTime {
|
|
493
|
+
static readonly commandId = "ClearClientWindbackTime" as const;
|
|
494
|
+
readonly commandId = "ClearClientWindbackTime" as const;
|
|
495
|
+
readonly command: Omit<_ClearClientWindbackTime, "tx" | "createdAt">;
|
|
474
496
|
declare readonly $res: () => boolean;
|
|
475
497
|
|
|
476
|
-
constructor(args: Omit<
|
|
498
|
+
constructor(args: Omit<_ClearClientWindbackTime, "tx" | "createdAt">) {
|
|
477
499
|
this.command = args;
|
|
478
500
|
}
|
|
479
501
|
}
|
|
@@ -489,17 +511,6 @@ export class SetClientWindbackTime {
|
|
|
489
511
|
}
|
|
490
512
|
}
|
|
491
513
|
|
|
492
|
-
export class DeleteClient {
|
|
493
|
-
static readonly commandId = "DeleteClient" as const;
|
|
494
|
-
readonly commandId = "DeleteClient" as const;
|
|
495
|
-
readonly command: Omit<_DeleteClient, "tx" | "createdAt">;
|
|
496
|
-
declare readonly $res: () => DeleteClientResult;
|
|
497
|
-
|
|
498
|
-
constructor(args: Omit<_DeleteClient, "tx" | "createdAt">) {
|
|
499
|
-
this.command = args;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
|
|
503
514
|
export class DeleteClients {
|
|
504
515
|
static readonly commandId = "DeleteClients" as const;
|
|
505
516
|
readonly commandId = "DeleteClients" as const;
|
|
@@ -511,13 +522,13 @@ export class DeleteClients {
|
|
|
511
522
|
}
|
|
512
523
|
}
|
|
513
524
|
|
|
514
|
-
export class
|
|
515
|
-
static readonly commandId = "
|
|
516
|
-
readonly commandId = "
|
|
517
|
-
readonly command: Omit<
|
|
518
|
-
declare readonly $res: () =>
|
|
525
|
+
export class DeleteServers {
|
|
526
|
+
static readonly commandId = "DeleteServers" as const;
|
|
527
|
+
readonly commandId = "DeleteServers" as const;
|
|
528
|
+
readonly command: Omit<_DeleteServers, "tx" | "createdAt">;
|
|
529
|
+
declare readonly $res: () => DeleteServersResult;
|
|
519
530
|
|
|
520
|
-
constructor(args: Omit<
|
|
531
|
+
constructor(args: Omit<_DeleteServers, "tx" | "createdAt">) {
|
|
521
532
|
this.command = args;
|
|
522
533
|
}
|
|
523
534
|
}
|
|
@@ -533,17 +544,6 @@ export class DeleteServer {
|
|
|
533
544
|
}
|
|
534
545
|
}
|
|
535
546
|
|
|
536
|
-
export class DeleteServers {
|
|
537
|
-
static readonly commandId = "DeleteServers" as const;
|
|
538
|
-
readonly commandId = "DeleteServers" as const;
|
|
539
|
-
readonly command: Omit<_DeleteServers, "tx" | "createdAt">;
|
|
540
|
-
declare readonly $res: () => DeleteServersResult;
|
|
541
|
-
|
|
542
|
-
constructor(args: Omit<_DeleteServers, "tx" | "createdAt">) {
|
|
543
|
-
this.command = args;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
|
|
547
547
|
// Item constructors
|
|
548
548
|
export const items = {
|
|
549
549
|
Client: (args: Client) => ({ item: args, itemType: "Client" }),
|
|
@@ -552,28 +552,28 @@ export const items = {
|
|
|
552
552
|
|
|
553
553
|
// Message events
|
|
554
554
|
export const MykoEvent = {
|
|
555
|
-
QueryWindow: "ws:m:query-window",
|
|
556
|
-
ReportCancel: "ws:m:report-cancel",
|
|
557
|
-
View: "ws:m:view",
|
|
558
|
-
ReportError: "ws:m:report-error",
|
|
559
|
-
QueryResponse: "ws:m:query-response",
|
|
560
|
-
Event: "ws:m:event",
|
|
561
|
-
CommandResponse: "ws:m:command-response",
|
|
562
555
|
CommandError: "ws:m:command-error",
|
|
556
|
+
QueryResponse: "ws:m:query-response",
|
|
563
557
|
ViewResponse: "ws:m:view-response",
|
|
558
|
+
EventBatch: "ws:m:event-batch",
|
|
559
|
+
CommandResponse: "ws:m:command-response",
|
|
560
|
+
Report: "ws:m:report",
|
|
561
|
+
ReportError: "ws:m:report-error",
|
|
564
562
|
ViewError: "ws:m:view-error",
|
|
563
|
+
ViewCancel: "ws:m:view-cancel",
|
|
564
|
+
Query: "ws:m:query",
|
|
565
|
+
ReportResponse: "ws:m:report-response",
|
|
566
|
+
ReportCancel: "ws:m:report-cancel",
|
|
567
|
+
Event: "ws:m:event",
|
|
565
568
|
ViewWindow: "ws:m:view-window",
|
|
566
|
-
ProtocolSwitch: "ws:m:protocol-switch",
|
|
567
569
|
QueryError: "ws:m:query-error",
|
|
568
|
-
QueryCancel: "ws:m:query-cancel",
|
|
569
|
-
ReportResponse: "ws:m:report-response",
|
|
570
|
-
Query: "ws:m:query",
|
|
571
|
-
Command: "ws:m:command",
|
|
572
|
-
ViewCancel: "ws:m:view-cancel",
|
|
573
570
|
Benchmark: "ws:m:benchmark",
|
|
571
|
+
ProtocolSwitch: "ws:m:protocol-switch",
|
|
572
|
+
View: "ws:m:view",
|
|
573
|
+
Command: "ws:m:command",
|
|
574
|
+
QueryCancel: "ws:m:query-cancel",
|
|
574
575
|
Ping: "ws:m:ping",
|
|
575
|
-
|
|
576
|
-
EventBatch: "ws:m:event-batch",
|
|
576
|
+
QueryWindow: "ws:m:query-window",
|
|
577
577
|
} as const;
|
|
578
578
|
export type MykoEventType = typeof MykoEvent[keyof typeof MykoEvent];
|
|
579
579
|
|