@shipload/sdk 1.0.0-next.70 → 1.0.0-next.71
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/lib/shipload.d.ts +231 -86
- package/lib/shipload.js +378 -53
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +368 -51
- package/lib/shipload.m.js.map +1 -1
- package/lib/testing.d.ts +50 -7
- package/lib/testing.js +151 -22
- package/lib/testing.js.map +1 -1
- package/lib/testing.m.js +151 -22
- package/lib/testing.m.js.map +1 -1
- package/package.json +1 -1
- package/src/contracts/server.ts +138 -18
- package/src/index-module.ts +22 -8
- package/src/managers/actions.ts +14 -4
- package/src/managers/jobs.test.ts +25 -9
- package/src/managers/jobs.ts +8 -4
- package/src/receipts.ts +9 -9
- package/src/scheduling/jobs.test.ts +417 -18
- package/src/scheduling/jobs.ts +222 -16
- package/src/scheduling/lanes.ts +53 -1
package/lib/testing.d.ts
CHANGED
|
@@ -87,11 +87,6 @@ declare namespace Types {
|
|
|
87
87
|
id: UInt64;
|
|
88
88
|
inputs: cargo_item[];
|
|
89
89
|
}
|
|
90
|
-
class booking_receipt extends Struct {
|
|
91
|
-
job_id: UInt64;
|
|
92
|
-
lands_at: TimePoint;
|
|
93
|
-
runtime: UInt32;
|
|
94
|
-
}
|
|
95
90
|
class builder_lane extends Struct {
|
|
96
91
|
slot_index: UInt8;
|
|
97
92
|
speed: UInt16;
|
|
@@ -105,7 +100,6 @@ declare namespace Types {
|
|
|
105
100
|
class buildjob extends Struct {
|
|
106
101
|
target_id: UInt64;
|
|
107
102
|
dock_id: UInt64;
|
|
108
|
-
slot: UInt8;
|
|
109
103
|
target_item_id: UInt16;
|
|
110
104
|
inputs: cargo_item[];
|
|
111
105
|
}
|
|
@@ -126,6 +120,7 @@ declare namespace Types {
|
|
|
126
120
|
target_item_id: UInt16;
|
|
127
121
|
cargo: cargo_item[];
|
|
128
122
|
deposited: boolean;
|
|
123
|
+
arrives_at: TimePoint;
|
|
129
124
|
}
|
|
130
125
|
class buildjobs_result extends Struct {
|
|
131
126
|
jobs: buildjob_row[];
|
|
@@ -159,6 +154,9 @@ declare namespace Types {
|
|
|
159
154
|
lane_key: UInt8;
|
|
160
155
|
from_id: UInt64;
|
|
161
156
|
}
|
|
157
|
+
class cancelcraft extends Struct {
|
|
158
|
+
job_id: UInt64;
|
|
159
|
+
}
|
|
162
160
|
class cargo_row extends Struct {
|
|
163
161
|
id: UInt64;
|
|
164
162
|
entity_id: UInt64;
|
|
@@ -363,7 +361,6 @@ declare namespace Types {
|
|
|
363
361
|
class craftjob extends Struct {
|
|
364
362
|
ship_id: UInt64;
|
|
365
363
|
workshop_id: UInt64;
|
|
366
|
-
slot: UInt8;
|
|
367
364
|
recipe_id: UInt16;
|
|
368
365
|
quantity: UInt32;
|
|
369
366
|
inputs: cargo_item[];
|
|
@@ -382,6 +379,7 @@ declare namespace Types {
|
|
|
382
379
|
energy_paid: UInt32;
|
|
383
380
|
cargo: cargo_item[];
|
|
384
381
|
deposited: boolean;
|
|
382
|
+
arrives_at: TimePoint;
|
|
385
383
|
}
|
|
386
384
|
class craftjobs_result extends Struct {
|
|
387
385
|
jobs: craftjob_row[];
|
|
@@ -393,6 +391,10 @@ declare namespace Types {
|
|
|
393
391
|
amount_atomic: UInt64;
|
|
394
392
|
node?: UInt32;
|
|
395
393
|
}
|
|
394
|
+
class dbgjobs extends Struct {
|
|
395
|
+
crafts: craftjob_row[];
|
|
396
|
+
builds: buildjob_row[];
|
|
397
|
+
}
|
|
396
398
|
class dbgmandate extends Struct {
|
|
397
399
|
x: Int64;
|
|
398
400
|
y: Int64;
|
|
@@ -405,10 +407,38 @@ declare namespace Types {
|
|
|
405
407
|
class dbgpagerows extends Struct {
|
|
406
408
|
rows: UInt32;
|
|
407
409
|
}
|
|
410
|
+
class reserved_window extends Struct {
|
|
411
|
+
id: UInt64;
|
|
412
|
+
arrival: TimePoint;
|
|
413
|
+
starts_at: TimePoint;
|
|
414
|
+
completes_at: TimePoint;
|
|
415
|
+
}
|
|
416
|
+
class socket_candidate extends Struct {
|
|
417
|
+
windows: reserved_window[];
|
|
418
|
+
duration: UInt32;
|
|
419
|
+
active: UInt16;
|
|
420
|
+
}
|
|
421
|
+
class dbgpick extends Struct {
|
|
422
|
+
sockets: socket_candidate[];
|
|
423
|
+
id: UInt64;
|
|
424
|
+
arrival: TimePoint;
|
|
425
|
+
cap: UInt16;
|
|
426
|
+
}
|
|
427
|
+
class dbgplace extends Struct {
|
|
428
|
+
windows: reserved_window[];
|
|
429
|
+
id: UInt64;
|
|
430
|
+
arrival: TimePoint;
|
|
431
|
+
duration: UInt32;
|
|
432
|
+
}
|
|
408
433
|
class dbgpurge extends Struct {
|
|
409
434
|
table_name: Name;
|
|
410
435
|
scope?: Name;
|
|
411
436
|
}
|
|
437
|
+
class dbgrepack extends Struct {
|
|
438
|
+
windows: reserved_window[];
|
|
439
|
+
cancelled_id: UInt64;
|
|
440
|
+
now: TimePoint;
|
|
441
|
+
}
|
|
412
442
|
class dbgseats extends Struct {
|
|
413
443
|
x: Int64;
|
|
414
444
|
y: Int64;
|
|
@@ -1234,6 +1264,9 @@ declare namespace Types {
|
|
|
1234
1264
|
id: UInt64;
|
|
1235
1265
|
name: string;
|
|
1236
1266
|
}
|
|
1267
|
+
class repack_result extends Struct {
|
|
1268
|
+
windows: reserved_window[];
|
|
1269
|
+
}
|
|
1237
1270
|
class resolve extends Struct {
|
|
1238
1271
|
id: UInt64;
|
|
1239
1272
|
count?: UInt64;
|
|
@@ -1362,6 +1395,11 @@ declare namespace Types {
|
|
|
1362
1395
|
to_id: UInt64;
|
|
1363
1396
|
items: cargo_item[];
|
|
1364
1397
|
}
|
|
1398
|
+
class socket_pick extends Struct {
|
|
1399
|
+
found: boolean;
|
|
1400
|
+
socket: UInt8;
|
|
1401
|
+
window: reserved_window;
|
|
1402
|
+
}
|
|
1365
1403
|
class standing_row extends Struct {
|
|
1366
1404
|
account: Name;
|
|
1367
1405
|
lifetime: UInt64;
|
|
@@ -1489,6 +1527,11 @@ declare namespace Types {
|
|
|
1489
1527
|
x: Int64;
|
|
1490
1528
|
y: Int64;
|
|
1491
1529
|
}
|
|
1530
|
+
class window_receipt extends Struct {
|
|
1531
|
+
job_id: UInt64;
|
|
1532
|
+
starts_at: TimePoint;
|
|
1533
|
+
completes_at: TimePoint;
|
|
1534
|
+
}
|
|
1492
1535
|
class wipe extends Struct {
|
|
1493
1536
|
}
|
|
1494
1537
|
class worlds_row extends Struct {
|