volleyballsimtypes 0.0.502 → 0.0.503

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.
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  const player_1 = require("../../player");
6
6
  const incident_z_1 = require("./incident.z");
7
7
  const positional_z_1 = require("./positional.z");
8
- const spikeTypeValues = [0, 1, 2, 3, 4, 5];
8
+ const spikeTypeValues = [0, 1, 2, 3, 4, 5, 6];
9
9
  const spikeFailureValues = [0, 1, 2, 3, 4];
10
10
  const courtTargetValues = Array.from({ length: 13 }, (_, i) => i);
11
11
  exports.SpikeInputSchema = zod_1.z.object({
@@ -5,9 +5,10 @@ export declare enum SpikeTypeEnum {
5
5
  REVERSE_CROSS = 2,
6
6
  TIP = 3,
7
7
  DOWN_BALL = 4,
8
- OVERHAND = 5
8
+ OVERHAND = 5,
9
+ TOOL = 6
9
10
  }
10
- export type SpikeType = SpikeTypeEnum.CROSS_SHOT | SpikeTypeEnum.LINE_SHOT | SpikeTypeEnum.REVERSE_CROSS | SpikeTypeEnum.TIP | SpikeTypeEnum.DOWN_BALL | SpikeTypeEnum.OVERHAND;
11
+ export type SpikeType = SpikeTypeEnum.CROSS_SHOT | SpikeTypeEnum.LINE_SHOT | SpikeTypeEnum.REVERSE_CROSS | SpikeTypeEnum.TIP | SpikeTypeEnum.DOWN_BALL | SpikeTypeEnum.OVERHAND | SpikeTypeEnum.TOOL;
11
12
  export declare enum SpikeFailureEnum {
12
13
  NO_FAILURE = 0,
13
14
  FAULT = 1,
@@ -12,6 +12,10 @@ var SpikeTypeEnum;
12
12
  SpikeTypeEnum[SpikeTypeEnum["TIP"] = 3] = "TIP";
13
13
  SpikeTypeEnum[SpikeTypeEnum["DOWN_BALL"] = 4] = "DOWN_BALL";
14
14
  SpikeTypeEnum[SpikeTypeEnum["OVERHAND"] = 5] = "OVERHAND";
15
+ // A ball intentionally wiped/deflected off the block and out: the ATTACKER's shot (a kill), the block earns a
16
+ // TOUCH (FIVB: NOT a block error). Distinct from the legacy BlockFailureEnum.TOOL/WIPE, which the older zone
17
+ // engine still uses to mis-book a tool-out as a block error.
18
+ SpikeTypeEnum[SpikeTypeEnum["TOOL"] = 6] = "TOOL";
15
19
  })(SpikeTypeEnum || (exports.SpikeTypeEnum = SpikeTypeEnum = {}));
16
20
  var SpikeFailureEnum;
17
21
  (function (SpikeFailureEnum) {
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { TraitEnum } from '../../player';
3
3
  import { EventIncidentSchema } from './incident.z';
4
4
  import { positionalEventFields } from './positional.z';
5
- const spikeTypeValues = [0, 1, 2, 3, 4, 5];
5
+ const spikeTypeValues = [0, 1, 2, 3, 4, 5, 6];
6
6
  const spikeFailureValues = [0, 1, 2, 3, 4];
7
7
  const courtTargetValues = Array.from({ length: 13 }, (_, i) => i);
8
8
  export const SpikeInputSchema = z.object({
@@ -5,9 +5,10 @@ export declare enum SpikeTypeEnum {
5
5
  REVERSE_CROSS = 2,
6
6
  TIP = 3,
7
7
  DOWN_BALL = 4,
8
- OVERHAND = 5
8
+ OVERHAND = 5,
9
+ TOOL = 6
9
10
  }
10
- export type SpikeType = SpikeTypeEnum.CROSS_SHOT | SpikeTypeEnum.LINE_SHOT | SpikeTypeEnum.REVERSE_CROSS | SpikeTypeEnum.TIP | SpikeTypeEnum.DOWN_BALL | SpikeTypeEnum.OVERHAND;
11
+ export type SpikeType = SpikeTypeEnum.CROSS_SHOT | SpikeTypeEnum.LINE_SHOT | SpikeTypeEnum.REVERSE_CROSS | SpikeTypeEnum.TIP | SpikeTypeEnum.DOWN_BALL | SpikeTypeEnum.OVERHAND | SpikeTypeEnum.TOOL;
11
12
  export declare enum SpikeFailureEnum {
12
13
  NO_FAILURE = 0,
13
14
  FAULT = 1,
@@ -9,6 +9,10 @@ export var SpikeTypeEnum;
9
9
  SpikeTypeEnum[SpikeTypeEnum["TIP"] = 3] = "TIP";
10
10
  SpikeTypeEnum[SpikeTypeEnum["DOWN_BALL"] = 4] = "DOWN_BALL";
11
11
  SpikeTypeEnum[SpikeTypeEnum["OVERHAND"] = 5] = "OVERHAND";
12
+ // A ball intentionally wiped/deflected off the block and out: the ATTACKER's shot (a kill), the block earns a
13
+ // TOUCH (FIVB: NOT a block error). Distinct from the legacy BlockFailureEnum.TOOL/WIPE, which the older zone
14
+ // engine still uses to mis-book a tool-out as a block error.
15
+ SpikeTypeEnum[SpikeTypeEnum["TOOL"] = 6] = "TOOL";
12
16
  })(SpikeTypeEnum || (SpikeTypeEnum = {}));
13
17
  export var SpikeFailureEnum;
14
18
  (function (SpikeFailureEnum) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volleyballsimtypes",
3
- "version": "0.0.502",
3
+ "version": "0.0.503",
4
4
  "description": "vbsim types",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",