@tsplc/build 0.5.10 → 0.5.13

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/dist/cli.js CHANGED
@@ -949,13 +949,24 @@ var controllerCredentialsSchema = z6.strictObject({
949
949
  username: z6.string().nonempty(),
950
950
  password: z6.string().nonempty()
951
951
  });
952
- var warmOperationSchema = z6.strictObject({
953
- operation: z6.enum(["download", "online-change", "review"]),
952
+ var resetKindSchema = z6.enum(["Warm", "Cold"]);
953
+ var warmRequest = {
954
954
  operationId: z6.uuid(),
955
955
  request: z6.string().nonempty(),
956
- initializeUser: z6.boolean(),
957
956
  credentials: controllerCredentialsSchema.optional()
958
- });
957
+ };
958
+ var warmOperationSchema = z6.discriminatedUnion("operation", [
959
+ z6.strictObject({
960
+ operation: z6.enum(["download", "online-change", "review"]),
961
+ ...warmRequest,
962
+ initializeUser: z6.boolean()
963
+ }),
964
+ z6.strictObject({
965
+ operation: z6.literal("restart"),
966
+ ...warmRequest,
967
+ reset: resetKindSchema
968
+ })
969
+ ]);
959
970
  var tracebackFailure = (traceback) => {
960
971
  const text = traceback.trim();
961
972
  const lastFrame = text.lastIndexOf(`
@@ -979,6 +990,7 @@ var controllerTarget = (config, online) => ({
979
990
  });
980
991
  var sameBuilder = (state, expected) => state.engineering && expected.engineering ? state.engineering === expected.engineering : state.imageId === expected.imageId;
981
992
  var sameBaseline = (state, expected) => sameBuilder(state, expected) && state.templateHash === expected.templateHash && JSON.stringify(state.target) === JSON.stringify(expected.target);
993
+ var restartReplySchema = z6.strictObject({ state: z6.string() });
982
994
  var reviewReplySchema = z6.strictObject({
983
995
  findings: z6.array(onlineChangeFindingSchema)
984
996
  });
@@ -1004,10 +1016,7 @@ var loginCommandSchema = z6.discriminatedUnion("command", [
1004
1016
  restore: z6.boolean()
1005
1017
  }),
1006
1018
  z6.strictObject({ command: z6.enum(["start", "stop"]) }),
1007
- z6.strictObject({
1008
- command: z6.literal("reset"),
1009
- kind: z6.enum(["Warm", "Cold"])
1010
- })
1019
+ z6.strictObject({ command: z6.literal("reset"), kind: resetKindSchema })
1011
1020
  ]);
1012
1021
  var loginResultSchema = z6.union([
1013
1022
  z6.strictObject({ values: z6.record(z6.string(), z6.string()) }),
@@ -2416,5 +2425,5 @@ try {
2416
2425
  process.exitCode = 1;
2417
2426
  }
2418
2427
 
2419
- //# debugId=63E5F7FC312D901464756E2164756E21
2428
+ //# debugId=B5952F23DC80EDB464756E2164756E21
2420
2429
  //# sourceMappingURL=cli.js.map