Add option to exclude instances from bulk start operation

Co-authored-by: danielv <danielv@danielv.no>
This commit is contained in:
Cursor Agentanddanielv authored and Danielv123 committed 2025-08-04 17:36:18 +00:00
1 parent e1d9c1e414
commit 69240e7917
5 files changed
+19 -1

No files matched your search

@@ -45,6 +45,7 @@ export class InstanceDetails {
public factorioVersion: string | undefined,
/** Millisecond Unix timestamp this entry was last updated at */
public updatedAtMs = 0,
public excludeFromStartAll = false,
) { }
static jsonSchema = Type.Object({
@@ -58,6 +59,7 @@ export class InstanceDetails {
]),
"factorioVersion": Type.Optional(Type.String()),
"updatedAtMs": Type.Optional(Type.Number()),
"excludeFromStartAll": Type.Optional(Type.Boolean()),
});
static fromJSON(json: Static<typeof this.jsonSchema>) {
@@ -69,6 +71,7 @@ export class InstanceDetails {
json.status,
json.factorioVersion,
json.updatedAtMs,
json.excludeFromStartAll,
);
}