@myko/core 4.4.0-canary.4 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/generated/index.ts +141 -141
package/package.json CHANGED
@@ -39,5 +39,5 @@
39
39
  },
40
40
  "type": "module",
41
41
  "types": "./src/index.ts",
42
- "version": "4.4.0-canary.4"
42
+ "version": "4.4.0"
43
43
  }
@@ -130,19 +130,6 @@ export class GetClientsByIds {
130
130
  }
131
131
  }
132
132
 
133
- export class GetClientsByQuery {
134
- static readonly queryId = "GetClientsByQuery" as const;
135
- static readonly queryItemType = "Client" as const;
136
- readonly queryId = "GetClientsByQuery" as const;
137
- readonly queryItemType = "Client" as const;
138
- readonly query: Omit<_GetClientsByQuery, "tx" | "createdAt">;
139
- declare readonly $res: () => Client[];
140
-
141
- constructor(args: Omit<_GetClientsByQuery, "tx" | "createdAt">) {
142
- this.query = args;
143
- }
144
- }
145
-
146
133
  export class GetAllClients {
147
134
  static readonly queryId = "GetAllClients" as const;
148
135
  static readonly queryItemType = "Client" as const;
@@ -156,41 +143,41 @@ export class GetAllClients {
156
143
  }
157
144
  }
158
145
 
159
- export class GetConnectedServer {
160
- static readonly queryId = "GetConnectedServer" as const;
161
- static readonly queryItemType = "Server" as const;
162
- readonly queryId = "GetConnectedServer" as const;
163
- readonly queryItemType = "Server" as const;
164
- readonly query: Omit<_GetConnectedServer, "tx" | "createdAt">;
165
- declare readonly $res: () => Server[];
146
+ export class GetClientsByQuery {
147
+ static readonly queryId = "GetClientsByQuery" as const;
148
+ static readonly queryItemType = "Client" as const;
149
+ readonly queryId = "GetClientsByQuery" as const;
150
+ readonly queryItemType = "Client" as const;
151
+ readonly query: Omit<_GetClientsByQuery, "tx" | "createdAt">;
152
+ declare readonly $res: () => Client[];
166
153
 
167
- constructor(args: Omit<_GetConnectedServer, "tx" | "createdAt">) {
154
+ constructor(args: Omit<_GetClientsByQuery, "tx" | "createdAt">) {
168
155
  this.query = args;
169
156
  }
170
157
  }
171
158
 
172
- export class GetServersByQuery {
173
- static readonly queryId = "GetServersByQuery" as const;
159
+ export class GetAllServers {
160
+ static readonly queryId = "GetAllServers" as const;
174
161
  static readonly queryItemType = "Server" as const;
175
- readonly queryId = "GetServersByQuery" as const;
162
+ readonly queryId = "GetAllServers" as const;
176
163
  readonly queryItemType = "Server" as const;
177
- readonly query: Omit<_GetServersByQuery, "tx" | "createdAt">;
164
+ readonly query: Omit<_GetAllServers, "tx" | "createdAt">;
178
165
  declare readonly $res: () => Server[];
179
166
 
180
- constructor(args: Omit<_GetServersByQuery, "tx" | "createdAt">) {
167
+ constructor(args: Omit<_GetAllServers, "tx" | "createdAt">) {
181
168
  this.query = args;
182
169
  }
183
170
  }
184
171
 
185
- export class GetAllServers {
186
- static readonly queryId = "GetAllServers" as const;
172
+ export class GetConnectedServer {
173
+ static readonly queryId = "GetConnectedServer" as const;
187
174
  static readonly queryItemType = "Server" as const;
188
- readonly queryId = "GetAllServers" as const;
175
+ readonly queryId = "GetConnectedServer" as const;
189
176
  readonly queryItemType = "Server" as const;
190
- readonly query: Omit<_GetAllServers, "tx" | "createdAt">;
177
+ readonly query: Omit<_GetConnectedServer, "tx" | "createdAt">;
191
178
  declare readonly $res: () => Server[];
192
179
 
193
- constructor(args: Omit<_GetAllServers, "tx" | "createdAt">) {
180
+ constructor(args: Omit<_GetConnectedServer, "tx" | "createdAt">) {
194
181
  this.query = args;
195
182
  }
196
183
  }
@@ -221,9 +208,33 @@ export class GetPeerServers {
221
208
  }
222
209
  }
223
210
 
211
+ export class GetServersByQuery {
212
+ static readonly queryId = "GetServersByQuery" as const;
213
+ static readonly queryItemType = "Server" as const;
214
+ readonly queryId = "GetServersByQuery" as const;
215
+ readonly queryItemType = "Server" as const;
216
+ readonly query: Omit<_GetServersByQuery, "tx" | "createdAt">;
217
+ declare readonly $res: () => Server[];
218
+
219
+ constructor(args: Omit<_GetServersByQuery, "tx" | "createdAt">) {
220
+ this.query = args;
221
+ }
222
+ }
223
+
224
224
  // View classes
225
225
 
226
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;
235
+ }
236
+ }
237
+
227
238
  export class ServerLogLevel {
228
239
  static readonly reportId = "ServerLogLevel" as const;
229
240
  readonly reportId = "ServerLogLevel" as const;
@@ -235,35 +246,35 @@ export class ServerLogLevel {
235
246
  }
236
247
  }
237
248
 
238
- export class ChildEntitiesAllTime {
239
- static readonly reportId = "ChildEntitiesAllTime" as const;
240
- readonly reportId = "ChildEntitiesAllTime" as const;
241
- readonly report: Omit<_ChildEntitiesAllTime, "tx">;
249
+ export class FullChildEntities {
250
+ static readonly reportId = "FullChildEntities" as const;
251
+ readonly reportId = "FullChildEntities" as const;
252
+ readonly report: Omit<_FullChildEntities, "tx">;
242
253
  declare readonly $res: () => ItemStub[];
243
254
 
244
- constructor(args: Omit<_ChildEntitiesAllTime, "tx">) {
255
+ constructor(args: Omit<_FullChildEntities, "tx">) {
245
256
  this.report = args;
246
257
  }
247
258
  }
248
259
 
249
- export class ChildEntities {
250
- static readonly reportId = "ChildEntities" as const;
251
- readonly reportId = "ChildEntities" as const;
252
- readonly report: Omit<_ChildEntities, "tx">;
253
- declare readonly $res: () => ItemStub[];
260
+ export class GetItemsByTypeAndIds {
261
+ static readonly reportId = "GetItemsByTypeAndIds" as const;
262
+ readonly reportId = "GetItemsByTypeAndIds" as const;
263
+ readonly report: Omit<_GetItemsByTypeAndIds, "tx">;
264
+ declare readonly $res: () => JsonValue[];
254
265
 
255
- constructor(args: Omit<_ChildEntities, "tx">) {
266
+ constructor(args: Omit<_GetItemsByTypeAndIds, "tx">) {
256
267
  this.report = args;
257
268
  }
258
269
  }
259
270
 
260
- export class Loggers {
261
- static readonly reportId = "Loggers" as const;
262
- readonly reportId = "Loggers" as const;
263
- readonly report: Omit<_Loggers, "tx">;
264
- declare readonly $res: () => string[];
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[];
265
276
 
266
- constructor(args: Omit<_Loggers, "tx">) {
277
+ constructor(args: Omit<_ChildEntitiesAllTime, "tx">) {
267
278
  this.report = args;
268
279
  }
269
280
  }
@@ -279,6 +290,17 @@ export class EntitySnapshotDifference {
279
290
  }
280
291
  }
281
292
 
293
+ export class ChildEntities {
294
+ static readonly reportId = "ChildEntities" as const;
295
+ readonly reportId = "ChildEntities" as const;
296
+ readonly report: Omit<_ChildEntities, "tx">;
297
+ declare readonly $res: () => ItemStub[];
298
+
299
+ constructor(args: Omit<_ChildEntities, "tx">) {
300
+ this.report = args;
301
+ }
302
+ }
303
+
282
304
  export class EventsForTransaction {
283
305
  static readonly reportId = "EventsForTransaction" as const;
284
306
  readonly reportId = "EventsForTransaction" as const;
@@ -290,13 +312,13 @@ export class EventsForTransaction {
290
312
  }
291
313
  }
292
314
 
293
- export class FullChildEntities {
294
- static readonly reportId = "FullChildEntities" as const;
295
- readonly reportId = "FullChildEntities" as const;
296
- readonly report: Omit<_FullChildEntities, "tx">;
297
- declare readonly $res: () => ItemStub[];
315
+ export class GetPersistHealth {
316
+ static readonly reportId = "GetPersistHealth" as const;
317
+ readonly reportId = "GetPersistHealth" as const;
318
+ readonly report: Omit<_GetPersistHealth, "tx">;
319
+ declare readonly $res: () => PersistHealthStatus;
298
320
 
299
- constructor(args: Omit<_FullChildEntities, "tx">) {
321
+ constructor(args: Omit<_GetPersistHealth, "tx">) {
300
322
  this.report = args;
301
323
  }
302
324
  }
@@ -312,24 +334,24 @@ export class PeerAlive {
312
334
  }
313
335
  }
314
336
 
315
- export class GetItemsByTypeAndIds {
316
- static readonly reportId = "GetItemsByTypeAndIds" as const;
317
- readonly reportId = "GetItemsByTypeAndIds" as const;
318
- readonly report: Omit<_GetItemsByTypeAndIds, "tx">;
319
- declare readonly $res: () => JsonValue[];
337
+ export class CountAllClients {
338
+ static readonly reportId = "CountAllClients" as const;
339
+ readonly reportId = "CountAllClients" as const;
340
+ readonly report: Omit<_CountAllClients, "tx">;
341
+ declare readonly $res: () => ClientCount;
320
342
 
321
- constructor(args: Omit<_GetItemsByTypeAndIds, "tx">) {
343
+ constructor(args: Omit<_CountAllClients, "tx">) {
322
344
  this.report = args;
323
345
  }
324
346
  }
325
347
 
326
- export class GetPersistHealth {
327
- static readonly reportId = "GetPersistHealth" as const;
328
- readonly reportId = "GetPersistHealth" as const;
329
- readonly report: Omit<_GetPersistHealth, "tx">;
330
- declare readonly $res: () => PersistHealthStatus;
348
+ export class CountClients {
349
+ static readonly reportId = "CountClients" as const;
350
+ readonly reportId = "CountClients" as const;
351
+ readonly report: Omit<_CountClients, "tx">;
352
+ declare readonly $res: () => ClientCount;
331
353
 
332
- constructor(args: Omit<_GetPersistHealth, "tx">) {
354
+ constructor(args: Omit<_CountClients, "tx">) {
333
355
  this.report = args;
334
356
  }
335
357
  }
@@ -367,28 +389,6 @@ export class WindbackStatus {
367
389
  }
368
390
  }
369
391
 
370
- export class CountAllClients {
371
- static readonly reportId = "CountAllClients" as const;
372
- readonly reportId = "CountAllClients" as const;
373
- readonly report: Omit<_CountAllClients, "tx">;
374
- declare readonly $res: () => ClientCount;
375
-
376
- constructor(args: Omit<_CountAllClients, "tx">) {
377
- this.report = args;
378
- }
379
- }
380
-
381
- export class CountClients {
382
- static readonly reportId = "CountClients" as const;
383
- readonly reportId = "CountClients" as const;
384
- readonly report: Omit<_CountClients, "tx">;
385
- declare readonly $res: () => ClientCount;
386
-
387
- constructor(args: Omit<_CountClients, "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;
@@ -400,13 +400,13 @@ export class EntitySearch {
400
400
  }
401
401
  }
402
402
 
403
- export class CountServers {
404
- static readonly reportId = "CountServers" as const;
405
- readonly reportId = "CountServers" as const;
406
- readonly report: Omit<_CountServers, "tx">;
403
+ export class CountAllServers {
404
+ static readonly reportId = "CountAllServers" as const;
405
+ readonly reportId = "CountAllServers" as const;
406
+ readonly report: Omit<_CountAllServers, "tx">;
407
407
  declare readonly $res: () => ServerCount;
408
408
 
409
- constructor(args: Omit<_CountServers, "tx">) {
409
+ constructor(args: Omit<_CountAllServers, "tx">) {
410
410
  this.report = args;
411
411
  }
412
412
  }
@@ -422,13 +422,13 @@ export class ServerStats {
422
422
  }
423
423
  }
424
424
 
425
- export class CountAllServers {
426
- static readonly reportId = "CountAllServers" as const;
427
- readonly reportId = "CountAllServers" as const;
428
- readonly report: Omit<_CountAllServers, "tx">;
425
+ export class CountServers {
426
+ static readonly reportId = "CountServers" as const;
427
+ readonly reportId = "CountServers" as const;
428
+ readonly report: Omit<_CountServers, "tx">;
429
429
  declare readonly $res: () => ServerCount;
430
430
 
431
- constructor(args: Omit<_CountAllServers, "tx">) {
431
+ constructor(args: Omit<_CountServers, "tx">) {
432
432
  this.report = args;
433
433
  }
434
434
  }
@@ -456,17 +456,6 @@ export class ExportEntityTree {
456
456
  }
457
457
 
458
458
  // Command classes
459
- export class ImportItems {
460
- static readonly commandId = "ImportItems" as const;
461
- readonly commandId = "ImportItems" as const;
462
- readonly command: Omit<_ImportItems, "tx" | "createdAt">;
463
- declare readonly $res: () => number;
464
-
465
- constructor(args: Omit<_ImportItems, "tx" | "createdAt">) {
466
- this.command = args;
467
- }
468
- }
469
-
470
459
  export class SetLogLevel {
471
460
  static readonly commandId = "SetLogLevel" as const;
472
461
  readonly commandId = "SetLogLevel" as const;
@@ -478,24 +467,24 @@ export class SetLogLevel {
478
467
  }
479
468
  }
480
469
 
481
- export class DeleteClients {
482
- static readonly commandId = "DeleteClients" as const;
483
- readonly commandId = "DeleteClients" as const;
484
- readonly command: Omit<_DeleteClients, "tx" | "createdAt">;
485
- declare readonly $res: () => DeleteClientsResult;
470
+ export class ImportItems {
471
+ static readonly commandId = "ImportItems" as const;
472
+ readonly commandId = "ImportItems" as const;
473
+ readonly command: Omit<_ImportItems, "tx" | "createdAt">;
474
+ declare readonly $res: () => number;
486
475
 
487
- constructor(args: Omit<_DeleteClients, "tx" | "createdAt">) {
476
+ constructor(args: Omit<_ImportItems, "tx" | "createdAt">) {
488
477
  this.command = args;
489
478
  }
490
479
  }
491
480
 
492
- export class SetClientWindbackTime {
493
- static readonly commandId = "SetClientWindbackTime" as const;
494
- readonly commandId = "SetClientWindbackTime" as const;
495
- readonly command: Omit<_SetClientWindbackTime, "tx" | "createdAt">;
496
- declare readonly $res: () => boolean;
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;
497
486
 
498
- constructor(args: Omit<_SetClientWindbackTime, "tx" | "createdAt">) {
487
+ constructor(args: Omit<_DeleteClient, "tx" | "createdAt">) {
499
488
  this.command = args;
500
489
  }
501
490
  }
@@ -511,13 +500,24 @@ export class ClearClientWindbackTime {
511
500
  }
512
501
  }
513
502
 
514
- export class DeleteClient {
515
- static readonly commandId = "DeleteClient" as const;
516
- readonly commandId = "DeleteClient" as const;
517
- readonly command: Omit<_DeleteClient, "tx" | "createdAt">;
518
- declare readonly $res: () => DeleteClientResult;
503
+ export class SetClientWindbackTime {
504
+ static readonly commandId = "SetClientWindbackTime" as const;
505
+ readonly commandId = "SetClientWindbackTime" as const;
506
+ readonly command: Omit<_SetClientWindbackTime, "tx" | "createdAt">;
507
+ declare readonly $res: () => boolean;
519
508
 
520
- constructor(args: Omit<_DeleteClient, "tx" | "createdAt">) {
509
+ constructor(args: Omit<_SetClientWindbackTime, "tx" | "createdAt">) {
510
+ this.command = args;
511
+ }
512
+ }
513
+
514
+ export class DeleteClients {
515
+ static readonly commandId = "DeleteClients" as const;
516
+ readonly commandId = "DeleteClients" as const;
517
+ readonly command: Omit<_DeleteClients, "tx" | "createdAt">;
518
+ declare readonly $res: () => DeleteClientsResult;
519
+
520
+ constructor(args: Omit<_DeleteClients, "tx" | "createdAt">) {
521
521
  this.command = args;
522
522
  }
523
523
  }
@@ -552,28 +552,28 @@ export const items = {
552
552
 
553
553
  // Message events
554
554
  export const MykoEvent = {
555
+ CommandError: "ws:m:command-error",
556
+ QueryResponse: "ws:m:query-response",
555
557
  ViewResponse: "ws:m:view-response",
556
- QueryWindow: "ws:m:query-window",
557
- QueryCancel: "ws:m:query-cancel",
558
- ViewCancel: "ws:m:view-cancel",
559
- ReportResponse: "ws:m:report-response",
560
558
  EventBatch: "ws:m:event-batch",
559
+ CommandResponse: "ws:m:command-response",
560
+ Report: "ws:m:report",
561
561
  ReportError: "ws:m:report-error",
562
- Query: "ws:m:query",
563
- Event: "ws:m:event",
564
- View: "ws:m:view",
565
- Ping: "ws:m:ping",
566
- Benchmark: "ws:m:benchmark",
567
562
  ViewError: "ws:m:view-error",
563
+ ViewCancel: "ws:m:view-cancel",
564
+ Query: "ws:m:query",
565
+ ReportResponse: "ws:m:report-response",
568
566
  ReportCancel: "ws:m:report-cancel",
569
- QueryResponse: "ws:m:query-response",
570
- CommandResponse: "ws:m:command-response",
571
- CommandError: "ws:m:command-error",
567
+ Event: "ws:m:event",
568
+ ViewWindow: "ws:m:view-window",
572
569
  QueryError: "ws:m:query-error",
570
+ Benchmark: "ws:m:benchmark",
573
571
  ProtocolSwitch: "ws:m:protocol-switch",
572
+ View: "ws:m:view",
574
573
  Command: "ws:m:command",
575
- ViewWindow: "ws:m:view-window",
576
- Report: "ws:m:report",
574
+ QueryCancel: "ws:m:query-cancel",
575
+ Ping: "ws:m:ping",
576
+ QueryWindow: "ws:m:query-window",
577
577
  } as const;
578
578
  export type MykoEventType = typeof MykoEvent[keyof typeof MykoEvent];
579
579