@myko/core 4.4.0-canary.5 → 4.4.1

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 +117 -117
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.5"
42
+ "version": "4.4.1"
43
43
  }
@@ -117,15 +117,15 @@ import type { WindbackStatus as _WindbackStatus } from "./WindbackStatus";
117
117
  import type { WindbackStatusOutput } from "./WindbackStatusOutput";
118
118
 
119
119
  // Query classes
120
- export class GetClientsByIds {
121
- static readonly queryId = "GetClientsByIds" as const;
120
+ export class GetAllClients {
121
+ static readonly queryId = "GetAllClients" as const;
122
122
  static readonly queryItemType = "Client" as const;
123
- readonly queryId = "GetClientsByIds" as const;
123
+ readonly queryId = "GetAllClients" as const;
124
124
  readonly queryItemType = "Client" as const;
125
- readonly query: Omit<_GetClientsByIds, "tx" | "createdAt">;
125
+ readonly query: Omit<_GetAllClients, "tx" | "createdAt">;
126
126
  declare readonly $res: () => Client[];
127
127
 
128
- constructor(args: Omit<_GetClientsByIds, "tx" | "createdAt">) {
128
+ constructor(args: Omit<_GetAllClients, "tx" | "createdAt">) {
129
129
  this.query = args;
130
130
  }
131
131
  }
@@ -143,15 +143,15 @@ export class GetClientsByQuery {
143
143
  }
144
144
  }
145
145
 
146
- export class GetAllClients {
147
- static readonly queryId = "GetAllClients" as const;
146
+ export class GetClientsByIds {
147
+ static readonly queryId = "GetClientsByIds" as const;
148
148
  static readonly queryItemType = "Client" as const;
149
- readonly queryId = "GetAllClients" as const;
149
+ readonly queryId = "GetClientsByIds" as const;
150
150
  readonly queryItemType = "Client" as const;
151
- readonly query: Omit<_GetAllClients, "tx" | "createdAt">;
151
+ readonly query: Omit<_GetClientsByIds, "tx" | "createdAt">;
152
152
  declare readonly $res: () => Client[];
153
153
 
154
- constructor(args: Omit<_GetAllClients, "tx" | "createdAt">) {
154
+ constructor(args: Omit<_GetClientsByIds, "tx" | "createdAt">) {
155
155
  this.query = args;
156
156
  }
157
157
  }
@@ -169,6 +169,19 @@ export class GetConnectedServer {
169
169
  }
170
170
  }
171
171
 
172
+ export class GetAllServers {
173
+ static readonly queryId = "GetAllServers" as const;
174
+ static readonly queryItemType = "Server" as const;
175
+ readonly queryId = "GetAllServers" as const;
176
+ readonly queryItemType = "Server" as const;
177
+ readonly query: Omit<_GetAllServers, "tx" | "createdAt">;
178
+ declare readonly $res: () => Server[];
179
+
180
+ constructor(args: Omit<_GetAllServers, "tx" | "createdAt">) {
181
+ this.query = args;
182
+ }
183
+ }
184
+
172
185
  export class GetServersByIds {
173
186
  static readonly queryId = "GetServersByIds" as const;
174
187
  static readonly queryItemType = "Server" as const;
@@ -195,19 +208,6 @@ export class GetServersByQuery {
195
208
  }
196
209
  }
197
210
 
198
- export class GetAllServers {
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[];
205
-
206
- constructor(args: Omit<_GetAllServers, "tx" | "createdAt">) {
207
- this.query = args;
208
- }
209
- }
210
-
211
211
  export class GetPeerServers {
212
212
  static readonly queryId = "GetPeerServers" as const;
213
213
  static readonly queryItemType = "Server" as const;
@@ -224,6 +224,17 @@ export class GetPeerServers {
224
224
  // View classes
225
225
 
226
226
  // Report classes
227
+ export class ChildEntities {
228
+ static readonly reportId = "ChildEntities" as const;
229
+ readonly reportId = "ChildEntities" as const;
230
+ readonly report: Omit<_ChildEntities, "tx">;
231
+ declare readonly $res: () => ItemStub[];
232
+
233
+ constructor(args: Omit<_ChildEntities, "tx">) {
234
+ this.report = args;
235
+ }
236
+ }
237
+
227
238
  export class GetItemsByTypeAndIds {
228
239
  static readonly reportId = "GetItemsByTypeAndIds" as const;
229
240
  readonly reportId = "GetItemsByTypeAndIds" as const;
@@ -246,28 +257,6 @@ export class Loggers {
246
257
  }
247
258
  }
248
259
 
249
- export class EntitySnapshotDifference {
250
- static readonly reportId = "EntitySnapshotDifference" as const;
251
- readonly reportId = "EntitySnapshotDifference" as const;
252
- readonly report: Omit<_EntitySnapshotDifference, "tx">;
253
- declare readonly $res: () => EntitySnapshotDifferenceData;
254
-
255
- constructor(args: Omit<_EntitySnapshotDifference, "tx">) {
256
- this.report = args;
257
- }
258
- }
259
-
260
- export class ChildEntities {
261
- static readonly reportId = "ChildEntities" as const;
262
- readonly reportId = "ChildEntities" as const;
263
- readonly report: Omit<_ChildEntities, "tx">;
264
- declare readonly $res: () => ItemStub[];
265
-
266
- constructor(args: Omit<_ChildEntities, "tx">) {
267
- this.report = args;
268
- }
269
- }
270
-
271
260
  export class GetPersistHealth {
272
261
  static readonly reportId = "GetPersistHealth" as const;
273
262
  readonly reportId = "GetPersistHealth" as const;
@@ -312,6 +301,17 @@ export class FullChildEntities {
312
301
  }
313
302
  }
314
303
 
304
+ export class EntitySnapshotDifference {
305
+ static readonly reportId = "EntitySnapshotDifference" as const;
306
+ readonly reportId = "EntitySnapshotDifference" as const;
307
+ readonly report: Omit<_EntitySnapshotDifference, "tx">;
308
+ declare readonly $res: () => EntitySnapshotDifferenceData;
309
+
310
+ constructor(args: Omit<_EntitySnapshotDifference, "tx">) {
311
+ this.report = args;
312
+ }
313
+ }
314
+
315
315
  export class PeerAlive {
316
316
  static readonly reportId = "PeerAlive" as const;
317
317
  readonly reportId = "PeerAlive" as const;
@@ -334,13 +334,24 @@ export class EventsForTransaction {
334
334
  }
335
335
  }
336
336
 
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;
337
+ export class GetClientById {
338
+ static readonly reportId = "GetClientById" as const;
339
+ readonly reportId = "GetClientById" as const;
340
+ readonly report: Omit<_GetClientById, "tx">;
341
+ declare readonly $res: () => Client | null;
342
342
 
343
- constructor(args: Omit<_CountAllClients, "tx">) {
343
+ constructor(args: Omit<_GetClientById, "tx">) {
344
+ this.report = args;
345
+ }
346
+ }
347
+
348
+ export class WindbackStatus {
349
+ static readonly reportId = "WindbackStatus" as const;
350
+ readonly reportId = "WindbackStatus" as const;
351
+ readonly report: Omit<_WindbackStatus, "tx">;
352
+ declare readonly $res: () => WindbackStatusOutput;
353
+
354
+ constructor(args: Omit<_WindbackStatus, "tx">) {
344
355
  this.report = args;
345
356
  }
346
357
  }
@@ -367,24 +378,13 @@ export class ClientStatus {
367
378
  }
368
379
  }
369
380
 
370
- export class WindbackStatus {
371
- static readonly reportId = "WindbackStatus" as const;
372
- readonly reportId = "WindbackStatus" as const;
373
- readonly report: Omit<_WindbackStatus, "tx">;
374
- declare readonly $res: () => WindbackStatusOutput;
375
-
376
- constructor(args: Omit<_WindbackStatus, "tx">) {
377
- this.report = args;
378
- }
379
- }
380
-
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;
381
+ export class CountAllClients {
382
+ static readonly reportId = "CountAllClients" as const;
383
+ readonly reportId = "CountAllClients" as const;
384
+ readonly report: Omit<_CountAllClients, "tx">;
385
+ declare readonly $res: () => ClientCount;
386
386
 
387
- constructor(args: Omit<_GetClientById, "tx">) {
387
+ constructor(args: Omit<_CountAllClients, "tx">) {
388
388
  this.report = args;
389
389
  }
390
390
  }
@@ -411,13 +411,13 @@ 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;
414
+ export class CountServers {
415
+ static readonly reportId = "CountServers" as const;
416
+ readonly reportId = "CountServers" as const;
417
+ readonly report: Omit<_CountServers, "tx">;
418
+ declare readonly $res: () => ServerCount;
419
419
 
420
- constructor(args: Omit<_GetServerById, "tx">) {
420
+ constructor(args: Omit<_CountServers, "tx">) {
421
421
  this.report = args;
422
422
  }
423
423
  }
@@ -433,13 +433,13 @@ export class ServerStats {
433
433
  }
434
434
  }
435
435
 
436
- export class CountServers {
437
- static readonly reportId = "CountServers" as const;
438
- readonly reportId = "CountServers" as const;
439
- readonly report: Omit<_CountServers, "tx">;
440
- declare readonly $res: () => ServerCount;
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
441
 
442
- constructor(args: Omit<_CountServers, "tx">) {
442
+ constructor(args: Omit<_GetServerById, "tx">) {
443
443
  this.report = args;
444
444
  }
445
445
  }
@@ -478,6 +478,17 @@ export class SetLogLevel {
478
478
  }
479
479
  }
480
480
 
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;
486
+
487
+ constructor(args: Omit<_DeleteClients, "tx" | "createdAt">) {
488
+ this.command = args;
489
+ }
490
+ }
491
+
481
492
  export class SetClientWindbackTime {
482
493
  static readonly commandId = "SetClientWindbackTime" as const;
483
494
  readonly commandId = "SetClientWindbackTime" as const;
@@ -500,17 +511,6 @@ export class DeleteClient {
500
511
  }
501
512
  }
502
513
 
503
- export class DeleteClients {
504
- static readonly commandId = "DeleteClients" as const;
505
- readonly commandId = "DeleteClients" as const;
506
- readonly command: Omit<_DeleteClients, "tx" | "createdAt">;
507
- declare readonly $res: () => DeleteClientsResult;
508
-
509
- constructor(args: Omit<_DeleteClients, "tx" | "createdAt">) {
510
- this.command = args;
511
- }
512
- }
513
-
514
514
  export class ClearClientWindbackTime {
515
515
  static readonly commandId = "ClearClientWindbackTime" as const;
516
516
  readonly commandId = "ClearClientWindbackTime" as const;
@@ -522,17 +522,6 @@ export class ClearClientWindbackTime {
522
522
  }
523
523
  }
524
524
 
525
- export class DeleteServer {
526
- static readonly commandId = "DeleteServer" as const;
527
- readonly commandId = "DeleteServer" as const;
528
- readonly command: Omit<_DeleteServer, "tx" | "createdAt">;
529
- declare readonly $res: () => DeleteServerResult;
530
-
531
- constructor(args: Omit<_DeleteServer, "tx" | "createdAt">) {
532
- this.command = args;
533
- }
534
- }
535
-
536
525
  export class DeleteServers {
537
526
  static readonly commandId = "DeleteServers" as const;
538
527
  readonly commandId = "DeleteServers" as const;
@@ -544,6 +533,17 @@ export class DeleteServers {
544
533
  }
545
534
  }
546
535
 
536
+ export class DeleteServer {
537
+ static readonly commandId = "DeleteServer" as const;
538
+ readonly commandId = "DeleteServer" as const;
539
+ readonly command: Omit<_DeleteServer, "tx" | "createdAt">;
540
+ declare readonly $res: () => DeleteServerResult;
541
+
542
+ constructor(args: Omit<_DeleteServer, "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
555
  CommandResponse: "ws:m:command-response",
556
+ ReportError: "ws:m:report-error",
557
+ Ping: "ws:m:ping",
558
+ QueryCancel: "ws:m:query-cancel",
559
+ Report: "ws:m:report",
562
560
  CommandError: "ws:m:command-error",
563
- ViewResponse: "ws:m:view-response",
564
- ViewError: "ws:m:view-error",
565
- ViewWindow: "ws:m:view-window",
561
+ Command: "ws:m:command",
566
562
  ProtocolSwitch: "ws:m:protocol-switch",
567
- QueryError: "ws:m:query-error",
568
- QueryCancel: "ws:m:query-cancel",
563
+ ViewCancel: "ws:m:view-cancel",
564
+ ReportCancel: "ws:m:report-cancel",
565
+ Event: "ws:m:event",
566
+ QueryResponse: "ws:m:query-response",
569
567
  ReportResponse: "ws:m:report-response",
568
+ ViewResponse: "ws:m:view-response",
570
569
  Query: "ws:m:query",
571
- Command: "ws:m:command",
572
- ViewCancel: "ws:m:view-cancel",
570
+ ViewWindow: "ws:m:view-window",
571
+ ViewError: "ws:m:view-error",
572
+ QueryWindow: "ws:m:query-window",
573
+ View: "ws:m:view",
573
574
  Benchmark: "ws:m:benchmark",
574
- Ping: "ws:m:ping",
575
- Report: "ws:m:report",
576
575
  EventBatch: "ws:m:event-batch",
576
+ QueryError: "ws:m:query-error",
577
577
  } as const;
578
578
  export type MykoEventType = typeof MykoEvent[keyof typeof MykoEvent];
579
579