@myko/core 5.0.5 → 6.0.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 (78) hide show
  1. package/dist/generated/ClearClientWindbackTime.d.ts +1 -1
  2. package/dist/generated/ClearClientWindbackTimeArgs.d.ts +1 -1
  3. package/dist/generated/Client.d.ts +2 -2
  4. package/dist/generated/Client.d.ts.map +1 -1
  5. package/dist/generated/ClientQuery.d.ts +11 -0
  6. package/dist/generated/ClientQuery.d.ts.map +1 -0
  7. package/dist/generated/CountAllClients.d.ts +1 -1
  8. package/dist/generated/CountAllServers.d.ts +1 -1
  9. package/dist/generated/CountClients.d.ts +2 -2
  10. package/dist/generated/CountClients.d.ts.map +1 -1
  11. package/dist/generated/CountServers.d.ts +2 -2
  12. package/dist/generated/CountServers.d.ts.map +1 -1
  13. package/dist/generated/DeleteClient.d.ts +0 -3
  14. package/dist/generated/DeleteClient.d.ts.map +1 -1
  15. package/dist/generated/DeleteClientResult.d.ts +0 -3
  16. package/dist/generated/DeleteClientResult.d.ts.map +1 -1
  17. package/dist/generated/DeleteClients.d.ts +0 -3
  18. package/dist/generated/DeleteClients.d.ts.map +1 -1
  19. package/dist/generated/DeleteClientsResult.d.ts +0 -3
  20. package/dist/generated/DeleteClientsResult.d.ts.map +1 -1
  21. package/dist/generated/DeleteServer.d.ts +0 -3
  22. package/dist/generated/DeleteServer.d.ts.map +1 -1
  23. package/dist/generated/DeleteServerResult.d.ts +0 -3
  24. package/dist/generated/DeleteServerResult.d.ts.map +1 -1
  25. package/dist/generated/DeleteServers.d.ts +0 -3
  26. package/dist/generated/DeleteServers.d.ts.map +1 -1
  27. package/dist/generated/DeleteServersResult.d.ts +0 -3
  28. package/dist/generated/DeleteServersResult.d.ts.map +1 -1
  29. package/dist/generated/EntitySnapshotDifferenceData.d.ts +1 -1
  30. package/dist/generated/EqFilter.d.ts +4 -0
  31. package/dist/generated/EqFilter.d.ts.map +1 -0
  32. package/dist/generated/GetAllClients.d.ts +1 -1
  33. package/dist/generated/GetAllServers.d.ts +1 -1
  34. package/dist/generated/GetClientsByQuery.d.ts +2 -2
  35. package/dist/generated/GetClientsByQuery.d.ts.map +1 -1
  36. package/dist/generated/GetConnectedServer.d.ts +1 -1
  37. package/dist/generated/GetPeerServers.d.ts +1 -1
  38. package/dist/generated/GetPersistHealth.d.ts +1 -1
  39. package/dist/generated/GetServersByQuery.d.ts +2 -2
  40. package/dist/generated/GetServersByQuery.d.ts.map +1 -1
  41. package/dist/generated/IdFilter.d.ts +4 -0
  42. package/dist/generated/IdFilter.d.ts.map +1 -0
  43. package/dist/generated/IdFilter.js +2 -0
  44. package/dist/generated/Loggers.d.ts +1 -1
  45. package/dist/generated/NumericFilter.d.ts +9 -0
  46. package/dist/generated/NumericFilter.d.ts.map +1 -0
  47. package/dist/generated/NumericFilter.js +2 -0
  48. package/dist/generated/SearchServer.d.ts +1 -3
  49. package/dist/generated/SearchServer.d.ts.map +1 -1
  50. package/dist/generated/ServerQuery.d.ts +12 -0
  51. package/dist/generated/ServerQuery.d.ts.map +1 -0
  52. package/dist/generated/ServerStats.d.ts +1 -1
  53. package/dist/generated/ServerStatsOutput.d.ts +3 -3
  54. package/dist/generated/ServerStatsOutput.d.ts.map +1 -1
  55. package/dist/generated/StringFilter.d.ts +8 -0
  56. package/dist/generated/StringFilter.d.ts.map +1 -0
  57. package/dist/generated/StringFilter.js +2 -0
  58. package/dist/generated/Unfilterable.d.ts +2 -0
  59. package/dist/generated/Unfilterable.d.ts.map +1 -0
  60. package/dist/generated/Unfilterable.js +2 -0
  61. package/dist/generated/WindbackStatus.d.ts +1 -1
  62. package/dist/generated/WindbackStatusOutput.d.ts +1 -1
  63. package/dist/generated/WindbackStatusOutput.d.ts.map +1 -1
  64. package/dist/generated/index.d.ts +157 -153
  65. package/dist/generated/index.d.ts.map +1 -1
  66. package/dist/generated/index.js +103 -103
  67. package/dist/generated/serde_json/JsonValue.d.ts +1 -1
  68. package/dist/generated/serde_json/JsonValue.d.ts.map +1 -1
  69. package/package.json +1 -1
  70. package/dist/generated/EventOptions.d.ts +0 -11
  71. package/dist/generated/EventOptions.d.ts.map +0 -1
  72. package/dist/generated/PartialClient.d.ts +0 -16
  73. package/dist/generated/PartialClient.d.ts.map +0 -1
  74. package/dist/generated/PartialServer.d.ts +0 -9
  75. package/dist/generated/PartialServer.d.ts.map +0 -1
  76. /package/dist/generated/{PartialClient.js → ClientQuery.js} +0 -0
  77. /package/dist/generated/{EventOptions.js → EqFilter.js} +0 -0
  78. /package/dist/generated/{PartialServer.js → ServerQuery.js} +0 -0
@@ -1,6 +1,36 @@
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 GetClientsByQuery {
5
+ static queryId = "GetClientsByQuery";
6
+ static queryItemType = "Client";
7
+ queryId = "GetClientsByQuery";
8
+ queryItemType = "Client";
9
+ query;
10
+ constructor(args) {
11
+ this.query = args;
12
+ }
13
+ }
14
+ export class GetClientsByIds {
15
+ static queryId = "GetClientsByIds";
16
+ static queryItemType = "Client";
17
+ queryId = "GetClientsByIds";
18
+ queryItemType = "Client";
19
+ query;
20
+ constructor(args) {
21
+ this.query = args;
22
+ }
23
+ }
24
+ export class GetAllClients {
25
+ static queryId = "GetAllClients";
26
+ static queryItemType = "Client";
27
+ queryId = "GetAllClients";
28
+ queryItemType = "Client";
29
+ query;
30
+ constructor(args) {
31
+ this.query = args;
32
+ }
33
+ }
4
34
  export class GetServersByQuery {
5
35
  static queryId = "GetServersByQuery";
6
36
  static queryItemType = "Server";
@@ -51,81 +81,59 @@ export class GetConnectedServer {
51
81
  this.query = args;
52
82
  }
53
83
  }
54
- export class GetClientsByQuery {
55
- static queryId = "GetClientsByQuery";
56
- static queryItemType = "Client";
57
- queryId = "GetClientsByQuery";
58
- queryItemType = "Client";
59
- query;
60
- constructor(args) {
61
- this.query = args;
62
- }
63
- }
64
- export class GetClientsByIds {
65
- static queryId = "GetClientsByIds";
66
- static queryItemType = "Client";
67
- queryId = "GetClientsByIds";
68
- queryItemType = "Client";
69
- query;
70
- constructor(args) {
71
- this.query = args;
72
- }
73
- }
74
- export class GetAllClients {
75
- static queryId = "GetAllClients";
76
- static queryItemType = "Client";
77
- queryId = "GetAllClients";
78
- queryItemType = "Client";
79
- query;
84
+ // View classes
85
+ // Report classes
86
+ export class EntitySearch {
87
+ static reportId = "EntitySearch";
88
+ reportId = "EntitySearch";
89
+ report;
80
90
  constructor(args) {
81
- this.query = args;
91
+ this.report = args;
82
92
  }
83
93
  }
84
- // View classes
85
- // Report classes
86
- export class GetServerById {
87
- static reportId = "GetServerById";
88
- reportId = "GetServerById";
94
+ export class ExportEntityTree {
95
+ static reportId = "ExportEntityTree";
96
+ reportId = "ExportEntityTree";
89
97
  report;
90
98
  constructor(args) {
91
99
  this.report = args;
92
100
  }
93
101
  }
94
- export class CountServers {
95
- static reportId = "CountServers";
96
- reportId = "CountServers";
102
+ export class CountAllClients {
103
+ static reportId = "CountAllClients";
104
+ reportId = "CountAllClients";
97
105
  report;
98
106
  constructor(args) {
99
107
  this.report = args;
100
108
  }
101
109
  }
102
- export class CountAllServers {
103
- static reportId = "CountAllServers";
104
- reportId = "CountAllServers";
110
+ export class GetClientById {
111
+ static reportId = "GetClientById";
112
+ reportId = "GetClientById";
105
113
  report;
106
114
  constructor(args) {
107
115
  this.report = args;
108
116
  }
109
117
  }
110
- export class ServerStats {
111
- static reportId = "ServerStats";
112
- reportId = "ServerStats";
118
+ export class CountClients {
119
+ static reportId = "CountClients";
120
+ reportId = "CountClients";
113
121
  report;
114
122
  constructor(args) {
115
123
  this.report = args;
116
124
  }
117
125
  }
118
- export class SearchServer {
119
- static reportId = "SearchServer";
120
- reportId = "SearchServer";
126
+ export class WindbackStatus {
127
+ static reportId = "WindbackStatus";
128
+ reportId = "WindbackStatus";
121
129
  report;
122
130
  constructor(args) {
123
131
  this.report = args;
124
132
  }
125
133
  }
126
- export class ServerLogLevel {
127
- static reportId = "ServerLogLevel";
128
- reportId = "ServerLogLevel";
134
+ export class ClientStatus {
135
+ static reportId = "ClientStatus";
136
+ reportId = "ClientStatus";
129
137
  report;
130
138
  constructor(args) {
131
139
  this.report = args;
@@ -179,6 +187,14 @@ export class PeerAlive {
179
187
  this.report = args;
180
188
  }
181
189
  }
190
+ export class ServerLogLevel {
191
+ static reportId = "ServerLogLevel";
192
+ reportId = "ServerLogLevel";
193
+ report;
194
+ constructor(args) {
195
+ this.report = args;
196
+ }
197
+ }
182
198
  export class ChildEntities {
183
199
  static reportId = "ChildEntities";
184
200
  reportId = "ChildEntities";
@@ -203,122 +219,106 @@ export class GetPersistHealth {
203
219
  this.report = args;
204
220
  }
205
221
  }
206
- export class ExportEntityTree {
207
- static reportId = "ExportEntityTree";
208
- reportId = "ExportEntityTree";
209
- report;
210
- constructor(args) {
211
- this.report = args;
212
- }
213
- }
214
- export class GetClientById {
215
- static reportId = "GetClientById";
216
- reportId = "GetClientById";
217
- report;
218
- constructor(args) {
219
- this.report = args;
220
- }
221
- }
222
- export class CountClients {
223
- static reportId = "CountClients";
224
- reportId = "CountClients";
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 CountAllClients {
231
- static reportId = "CountAllClients";
232
- reportId = "CountAllClients";
230
+ export class GetServerById {
231
+ static reportId = "GetServerById";
232
+ reportId = "GetServerById";
233
233
  report;
234
234
  constructor(args) {
235
235
  this.report = args;
236
236
  }
237
237
  }
238
- export class WindbackStatus {
239
- static reportId = "WindbackStatus";
240
- reportId = "WindbackStatus";
238
+ export class CountServers {
239
+ static reportId = "CountServers";
240
+ reportId = "CountServers";
241
241
  report;
242
242
  constructor(args) {
243
243
  this.report = args;
244
244
  }
245
245
  }
246
- export class ClientStatus {
247
- static reportId = "ClientStatus";
248
- reportId = "ClientStatus";
246
+ export class SearchServer {
247
+ static reportId = "SearchServer";
248
+ reportId = "SearchServer";
249
249
  report;
250
250
  constructor(args) {
251
251
  this.report = args;
252
252
  }
253
253
  }
254
- export class EntitySearch {
255
- static reportId = "EntitySearch";
256
- reportId = "EntitySearch";
254
+ export class ServerStats {
255
+ static reportId = "ServerStats";
256
+ reportId = "ServerStats";
257
257
  report;
258
258
  constructor(args) {
259
259
  this.report = args;
260
260
  }
261
261
  }
262
262
  // Command classes
263
- export class DeleteServers {
264
- static commandId = "DeleteServers";
265
- commandId = "DeleteServers";
263
+ export class DeleteClient {
264
+ static commandId = "DeleteClient";
265
+ commandId = "DeleteClient";
266
266
  command;
267
267
  constructor(args) {
268
268
  this.command = args;
269
269
  }
270
270
  }
271
- export class DeleteServer {
272
- static commandId = "DeleteServer";
273
- commandId = "DeleteServer";
271
+ export class SetClientWindbackTime {
272
+ static commandId = "SetClientWindbackTime";
273
+ commandId = "SetClientWindbackTime";
274
274
  command;
275
275
  constructor(args) {
276
276
  this.command = args;
277
277
  }
278
278
  }
279
- export class ImportItems {
280
- static commandId = "ImportItems";
281
- commandId = "ImportItems";
279
+ export class ClearClientWindbackTime {
280
+ static commandId = "ClearClientWindbackTime";
281
+ commandId = "ClearClientWindbackTime";
282
282
  command;
283
283
  constructor(args) {
284
284
  this.command = args;
285
285
  }
286
286
  }
287
- export class SetLogLevel {
288
- static commandId = "SetLogLevel";
289
- commandId = "SetLogLevel";
287
+ export class DeleteClients {
288
+ static commandId = "DeleteClients";
289
+ commandId = "DeleteClients";
290
290
  command;
291
291
  constructor(args) {
292
292
  this.command = args;
293
293
  }
294
294
  }
295
- export class DeleteClients {
296
- static commandId = "DeleteClients";
297
- commandId = "DeleteClients";
295
+ export class SetLogLevel {
296
+ static commandId = "SetLogLevel";
297
+ commandId = "SetLogLevel";
298
298
  command;
299
299
  constructor(args) {
300
300
  this.command = args;
301
301
  }
302
302
  }
303
- export class DeleteClient {
304
- static commandId = "DeleteClient";
305
- commandId = "DeleteClient";
303
+ export class ImportItems {
304
+ static commandId = "ImportItems";
305
+ commandId = "ImportItems";
306
306
  command;
307
307
  constructor(args) {
308
308
  this.command = args;
309
309
  }
310
310
  }
311
- export class ClearClientWindbackTime {
312
- static commandId = "ClearClientWindbackTime";
313
- commandId = "ClearClientWindbackTime";
311
+ export class DeleteServer {
312
+ static commandId = "DeleteServer";
313
+ commandId = "DeleteServer";
314
314
  command;
315
315
  constructor(args) {
316
316
  this.command = args;
317
317
  }
318
318
  }
319
- export class SetClientWindbackTime {
320
- static commandId = "SetClientWindbackTime";
321
- commandId = "SetClientWindbackTime";
319
+ export class DeleteServers {
320
+ static commandId = "DeleteServers";
321
+ commandId = "DeleteServers";
322
322
  command;
323
323
  constructor(args) {
324
324
  this.command = args;
@@ -326,8 +326,8 @@ export class SetClientWindbackTime {
326
326
  }
327
327
  // Item constructors
328
328
  export const items = {
329
- Server: (args) => ({ item: args, itemType: "Server" }),
330
329
  Client: (args) => ({ item: args, itemType: "Client" }),
330
+ Server: (args) => ({ item: args, itemType: "Server" }),
331
331
  };
332
332
  // Message events
333
333
  export const MykoEvent = {
@@ -1,4 +1,4 @@
1
1
  export type JsonValue = number | string | boolean | Array<JsonValue> | {
2
- [key in string]?: JsonValue;
2
+ [key in string]: JsonValue;
3
3
  } | null;
4
4
  //# sourceMappingURL=JsonValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"JsonValue.d.ts","sourceRoot":"","sources":["../../../src/generated/serde_json/JsonValue.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG;KAAG,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,SAAS;CAAE,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"JsonValue.d.ts","sourceRoot":"","sources":["../../../src/generated/serde_json/JsonValue.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG;KAAG,GAAG,IAAI,MAAM,GAAG,SAAS;CAAE,GAAG,IAAI,CAAC"}
package/package.json CHANGED
@@ -43,5 +43,5 @@
43
43
  },
44
44
  "type": "module",
45
45
  "types": "./dist/index.d.ts",
46
- "version": "5.0.5"
46
+ "version": "6.0.0"
47
47
  }
@@ -1,11 +0,0 @@
1
- /**
2
- * Options that can be attached to an event
3
- */
4
- export type EventOptions = {
5
- /**
6
- * When true, relationship cascades are skipped for this event.
7
- * Used to prevent infinite loops during cascade processing.
8
- */
9
- preventRelationshipUpdates: boolean;
10
- };
11
- //# sourceMappingURL=EventOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventOptions.d.ts","sourceRoot":"","sources":["../../src/generated/EventOptions.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAC3B;;;OAGG;IACH,0BAA0B,EAAE,OAAO,CAAC;CAAE,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { ClientId } from "./ClientId";
2
- import type { ServerId } from "./ServerId";
3
- export type PartialClient = {
4
- serverId?: ServerId;
5
- /**
6
- * Remote address of the WebSocket connection (e.g., "192.168.1.5:54320").
7
- */
8
- address?: string | null;
9
- /**
10
- * ISO timestamp for windback mode. When set, the client sees historical state
11
- * as of this timestamp instead of live state.
12
- */
13
- windback?: string | null;
14
- id?: ClientId;
15
- };
16
- //# sourceMappingURL=PartialClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PartialClient.d.ts","sourceRoot":"","sources":["../../src/generated/PartialClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,EAAE,CAAC,EAAE,QAAQ,CAAC;CAAE,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ServerId } from "./ServerId";
2
- export type PartialServer = {
3
- version?: string;
4
- address?: string;
5
- port?: number;
6
- startedAt?: string;
7
- id?: ServerId;
8
- };
9
- //# sourceMappingURL=PartialServer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PartialServer.d.ts","sourceRoot":"","sources":["../../src/generated/PartialServer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,QAAQ,CAAC;CAAE,CAAC"}
File without changes