volleyballsimtypes 0.0.397 → 0.0.398
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/cjs/src/api/index.d.ts +1 -0
- package/dist/cjs/src/data/models/tactics.d.ts +2 -1
- package/dist/cjs/src/data/transformers/tactics.js +2 -0
- package/dist/cjs/src/service/team/designated-sub.d.ts +1 -0
- package/dist/cjs/src/service/team/pinch-condition.d.ts +7 -2
- package/dist/cjs/src/service/team/pinch-condition.js +2 -1
- package/dist/cjs/src/service/team/schemas/designated-sub.z.d.ts +7 -0
- package/dist/cjs/src/service/team/schemas/designated-sub.z.js +3 -1
- package/dist/cjs/src/service/team/schemas/tactics.z.d.ts +4 -0
- package/dist/cjs/src/service/team/schemas/team.z.d.ts +4 -0
- package/dist/esm/src/api/index.d.ts +1 -0
- package/dist/esm/src/data/models/tactics.d.ts +2 -1
- package/dist/esm/src/data/transformers/tactics.js +2 -0
- package/dist/esm/src/service/team/designated-sub.d.ts +1 -0
- package/dist/esm/src/service/team/pinch-condition.d.ts +7 -2
- package/dist/esm/src/service/team/pinch-condition.js +2 -1
- package/dist/esm/src/service/team/schemas/designated-sub.z.d.ts +7 -0
- package/dist/esm/src/service/team/schemas/designated-sub.z.js +3 -1
- package/dist/esm/src/service/team/schemas/tactics.z.d.ts +4 -0
- package/dist/esm/src/service/team/schemas/team.z.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
3
|
import { PlayerId, TeamId, TeamModel } from '.';
|
|
4
|
-
import { ConditionLogic, CourtPosition, PinchCondition, RotationSystemEnum, SubBand, SubMode } from '../../service';
|
|
4
|
+
import { ConditionLogic, CourtPosition, EnergyBand, PinchCondition, RotationSystemEnum, SubBand, SubMode } from '../../service';
|
|
5
5
|
export interface TacticsLineupAttributes {
|
|
6
6
|
[CourtPosition.LIBERO_ZONE]?: PlayerId;
|
|
7
7
|
[CourtPosition.LEFT_BACK]: PlayerId;
|
|
@@ -19,6 +19,7 @@ export interface DesignatedSubAttributes {
|
|
|
19
19
|
mode?: SubMode;
|
|
20
20
|
isPinchServer?: boolean;
|
|
21
21
|
fatigueBand?: SubBand;
|
|
22
|
+
fatigueBandsBySet?: EnergyBand[];
|
|
22
23
|
conditions?: PinchCondition[];
|
|
23
24
|
conditionLogic?: ConditionLogic;
|
|
24
25
|
}
|
|
@@ -59,6 +59,7 @@ function transformToAttributes(tactics, teamId) {
|
|
|
59
59
|
benchId: ds.bench?.id,
|
|
60
60
|
mode: ds.mode,
|
|
61
61
|
fatigueBand: ds.fatigueBand,
|
|
62
|
+
fatigueBandsBySet: ds.fatigueBandsBySet,
|
|
62
63
|
conditions: ds.conditions,
|
|
63
64
|
conditionLogic: ds.conditionLogic
|
|
64
65
|
})),
|
|
@@ -90,6 +91,7 @@ function transformToObject(model, roster) {
|
|
|
90
91
|
bench: d.benchId != null ? findPlayer(d.benchId, roster) : undefined,
|
|
91
92
|
mode: subModeFromAttributes(d),
|
|
92
93
|
fatigueBand: d.fatigueBand === 'NEVER' ? undefined : d.fatigueBand,
|
|
94
|
+
fatigueBandsBySet: d.fatigueBandsBySet,
|
|
93
95
|
conditions: d.conditions,
|
|
94
96
|
conditionLogic: d.conditionLogic
|
|
95
97
|
})),
|
|
@@ -5,7 +5,8 @@ export declare enum PinchConditionType {
|
|
|
5
5
|
SCORE_DIFF = "SCORE_DIFF",// team trailing/leading by at least `points`
|
|
6
6
|
AFTER_ROTATIONS = "AFTER_ROTATIONS",// from the team's Nth serve turn in the set onward
|
|
7
7
|
FROM_SET = "FROM_SET",// only set N or later
|
|
8
|
-
MIN_OWN_SCORE = "MIN_OWN_SCORE"
|
|
8
|
+
MIN_OWN_SCORE = "MIN_OWN_SCORE",// only once own score >= N
|
|
9
|
+
MIN_OPPONENT_SCORE = "MIN_OPPONENT_SCORE"
|
|
9
10
|
}
|
|
10
11
|
export declare enum OpponentRelation {
|
|
11
12
|
AHEAD = "AHEAD",
|
|
@@ -45,7 +46,11 @@ export interface MinOwnScoreCondition {
|
|
|
45
46
|
readonly type: PinchConditionType.MIN_OWN_SCORE;
|
|
46
47
|
readonly score: number;
|
|
47
48
|
}
|
|
48
|
-
export
|
|
49
|
+
export interface MinOpponentScoreCondition {
|
|
50
|
+
readonly type: PinchConditionType.MIN_OPPONENT_SCORE;
|
|
51
|
+
readonly score: number;
|
|
52
|
+
}
|
|
53
|
+
export type PinchCondition = AsapCondition | TeamSetPointCondition | OpponentSetPointCondition | ScoreDiffCondition | AfterRotationsCondition | FromSetCondition | MinOwnScoreCondition | MinOpponentScoreCondition;
|
|
49
54
|
export type ConditionLogic = 'ALL' | 'ANY';
|
|
50
55
|
export interface PinchSetState {
|
|
51
56
|
readonly ownScore: number;
|
|
@@ -12,7 +12,8 @@ var PinchConditionType;
|
|
|
12
12
|
PinchConditionType["SCORE_DIFF"] = "SCORE_DIFF";
|
|
13
13
|
PinchConditionType["AFTER_ROTATIONS"] = "AFTER_ROTATIONS";
|
|
14
14
|
PinchConditionType["FROM_SET"] = "FROM_SET";
|
|
15
|
-
PinchConditionType["MIN_OWN_SCORE"] = "MIN_OWN_SCORE";
|
|
15
|
+
PinchConditionType["MIN_OWN_SCORE"] = "MIN_OWN_SCORE";
|
|
16
|
+
PinchConditionType["MIN_OPPONENT_SCORE"] = "MIN_OPPONENT_SCORE"; // only once opponent score >= N
|
|
16
17
|
})(PinchConditionType || (exports.PinchConditionType = PinchConditionType = {}));
|
|
17
18
|
var OpponentRelation;
|
|
18
19
|
(function (OpponentRelation) {
|
|
@@ -25,6 +25,9 @@ export declare const PinchConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
25
25
|
}, z.core.$strip>, z.ZodObject<{
|
|
26
26
|
type: z.ZodLiteral<PinchConditionType.MIN_OWN_SCORE>;
|
|
27
27
|
score: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
30
|
+
score: z.ZodNumber;
|
|
28
31
|
}, z.core.$strip>], "type">;
|
|
29
32
|
export declare const ConditionLogicSchema: z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>;
|
|
30
33
|
export declare const SubModeSchema: z.ZodEnum<{
|
|
@@ -41,6 +44,7 @@ export declare const DesignatedSubSchema: z.ZodObject<{
|
|
|
41
44
|
PINCH: "PINCH";
|
|
42
45
|
}>;
|
|
43
46
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof EnergyBand>>;
|
|
47
|
+
fatigueBandsBySet: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof EnergyBand>>>;
|
|
44
48
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
49
|
type: z.ZodLiteral<PinchConditionType.ASAP>;
|
|
46
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -63,6 +67,9 @@ export declare const DesignatedSubSchema: z.ZodObject<{
|
|
|
63
67
|
}, z.core.$strip>, z.ZodObject<{
|
|
64
68
|
type: z.ZodLiteral<PinchConditionType.MIN_OWN_SCORE>;
|
|
65
69
|
score: z.ZodNumber;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
72
|
+
score: z.ZodNumber;
|
|
66
73
|
}, z.core.$strip>], "type">>>;
|
|
67
74
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
68
75
|
}, z.core.$strip>;
|
|
@@ -16,7 +16,8 @@ exports.PinchConditionSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
16
16
|
zod_1.z.object({ type: zod_1.z.literal(pinch_condition_1.PinchConditionType.SCORE_DIFF), direction: zod_1.z.nativeEnum(pinch_condition_1.ScoreDirection), points: zod_1.z.number().int().min(1).max(25) }),
|
|
17
17
|
zod_1.z.object({ type: zod_1.z.literal(pinch_condition_1.PinchConditionType.AFTER_ROTATIONS), rotations: zod_1.z.number().int().min(1).max(6) }),
|
|
18
18
|
zod_1.z.object({ type: zod_1.z.literal(pinch_condition_1.PinchConditionType.FROM_SET), set: zod_1.z.number().int().min(1).max(5) }),
|
|
19
|
-
zod_1.z.object({ type: zod_1.z.literal(pinch_condition_1.PinchConditionType.MIN_OWN_SCORE), score: zod_1.z.number().int().min(0).max(40) })
|
|
19
|
+
zod_1.z.object({ type: zod_1.z.literal(pinch_condition_1.PinchConditionType.MIN_OWN_SCORE), score: zod_1.z.number().int().min(0).max(40) }),
|
|
20
|
+
zod_1.z.object({ type: zod_1.z.literal(pinch_condition_1.PinchConditionType.MIN_OPPONENT_SCORE), score: zod_1.z.number().int().min(0).max(40) })
|
|
20
21
|
]);
|
|
21
22
|
exports.ConditionLogicSchema = zod_1.z.union([zod_1.z.literal('ALL'), zod_1.z.literal('ANY')]);
|
|
22
23
|
exports.SubModeSchema = zod_1.z.enum(['FATIGUE', 'PINCH', 'NEVER']);
|
|
@@ -25,6 +26,7 @@ exports.DesignatedSubSchema = zod_1.z.object({
|
|
|
25
26
|
bench: playerInstanceSchema.optional(),
|
|
26
27
|
mode: exports.SubModeSchema,
|
|
27
28
|
fatigueBand: zod_1.z.nativeEnum(energy_band_1.EnergyBand).optional(),
|
|
29
|
+
fatigueBandsBySet: zod_1.z.array(zod_1.z.nativeEnum(energy_band_1.EnergyBand)).max(5).optional(),
|
|
28
30
|
conditions: zod_1.z.array(exports.PinchConditionSchema).optional(),
|
|
29
31
|
conditionLogic: exports.ConditionLogicSchema.optional()
|
|
30
32
|
}).superRefine((data, ctx) => {
|
|
@@ -26,6 +26,7 @@ export declare const TacticsInputSchema: z.ZodObject<{
|
|
|
26
26
|
PINCH: "PINCH";
|
|
27
27
|
}>;
|
|
28
28
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof EnergyBand>>;
|
|
29
|
+
fatigueBandsBySet: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof EnergyBand>>>;
|
|
29
30
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
31
|
type: z.ZodLiteral<import("..").PinchConditionType.ASAP>;
|
|
31
32
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -48,6 +49,9 @@ export declare const TacticsInputSchema: z.ZodObject<{
|
|
|
48
49
|
}, z.core.$strip>, z.ZodObject<{
|
|
49
50
|
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OWN_SCORE>;
|
|
50
51
|
score: z.ZodNumber;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
54
|
+
score: z.ZodNumber;
|
|
51
55
|
}, z.core.$strip>], "type">>>;
|
|
52
56
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
53
57
|
}, z.core.$strip>>>;
|
|
@@ -34,6 +34,7 @@ export declare const TeamInputSchema: z.ZodObject<{
|
|
|
34
34
|
PINCH: "PINCH";
|
|
35
35
|
}>;
|
|
36
36
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof import("..").EnergyBand>>;
|
|
37
|
+
fatigueBandsBySet: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").EnergyBand>>>;
|
|
37
38
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
39
|
type: z.ZodLiteral<import("..").PinchConditionType.ASAP>;
|
|
39
40
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -56,6 +57,9 @@ export declare const TeamInputSchema: z.ZodObject<{
|
|
|
56
57
|
}, z.core.$strip>, z.ZodObject<{
|
|
57
58
|
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OWN_SCORE>;
|
|
58
59
|
score: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
62
|
+
score: z.ZodNumber;
|
|
59
63
|
}, z.core.$strip>], "type">>>;
|
|
60
64
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
61
65
|
}, z.core.$strip>>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
3
|
import { PlayerId, TeamId, TeamModel } from '.';
|
|
4
|
-
import { ConditionLogic, CourtPosition, PinchCondition, RotationSystemEnum, SubBand, SubMode } from '../../service';
|
|
4
|
+
import { ConditionLogic, CourtPosition, EnergyBand, PinchCondition, RotationSystemEnum, SubBand, SubMode } from '../../service';
|
|
5
5
|
export interface TacticsLineupAttributes {
|
|
6
6
|
[CourtPosition.LIBERO_ZONE]?: PlayerId;
|
|
7
7
|
[CourtPosition.LEFT_BACK]: PlayerId;
|
|
@@ -19,6 +19,7 @@ export interface DesignatedSubAttributes {
|
|
|
19
19
|
mode?: SubMode;
|
|
20
20
|
isPinchServer?: boolean;
|
|
21
21
|
fatigueBand?: SubBand;
|
|
22
|
+
fatigueBandsBySet?: EnergyBand[];
|
|
22
23
|
conditions?: PinchCondition[];
|
|
23
24
|
conditionLogic?: ConditionLogic;
|
|
24
25
|
}
|
|
@@ -55,6 +55,7 @@ function transformToAttributes(tactics, teamId) {
|
|
|
55
55
|
benchId: ds.bench?.id,
|
|
56
56
|
mode: ds.mode,
|
|
57
57
|
fatigueBand: ds.fatigueBand,
|
|
58
|
+
fatigueBandsBySet: ds.fatigueBandsBySet,
|
|
58
59
|
conditions: ds.conditions,
|
|
59
60
|
conditionLogic: ds.conditionLogic
|
|
60
61
|
})),
|
|
@@ -86,6 +87,7 @@ function transformToObject(model, roster) {
|
|
|
86
87
|
bench: d.benchId != null ? findPlayer(d.benchId, roster) : undefined,
|
|
87
88
|
mode: subModeFromAttributes(d),
|
|
88
89
|
fatigueBand: d.fatigueBand === 'NEVER' ? undefined : d.fatigueBand,
|
|
90
|
+
fatigueBandsBySet: d.fatigueBandsBySet,
|
|
89
91
|
conditions: d.conditions,
|
|
90
92
|
conditionLogic: d.conditionLogic
|
|
91
93
|
})),
|
|
@@ -5,7 +5,8 @@ export declare enum PinchConditionType {
|
|
|
5
5
|
SCORE_DIFF = "SCORE_DIFF",// team trailing/leading by at least `points`
|
|
6
6
|
AFTER_ROTATIONS = "AFTER_ROTATIONS",// from the team's Nth serve turn in the set onward
|
|
7
7
|
FROM_SET = "FROM_SET",// only set N or later
|
|
8
|
-
MIN_OWN_SCORE = "MIN_OWN_SCORE"
|
|
8
|
+
MIN_OWN_SCORE = "MIN_OWN_SCORE",// only once own score >= N
|
|
9
|
+
MIN_OPPONENT_SCORE = "MIN_OPPONENT_SCORE"
|
|
9
10
|
}
|
|
10
11
|
export declare enum OpponentRelation {
|
|
11
12
|
AHEAD = "AHEAD",
|
|
@@ -45,7 +46,11 @@ export interface MinOwnScoreCondition {
|
|
|
45
46
|
readonly type: PinchConditionType.MIN_OWN_SCORE;
|
|
46
47
|
readonly score: number;
|
|
47
48
|
}
|
|
48
|
-
export
|
|
49
|
+
export interface MinOpponentScoreCondition {
|
|
50
|
+
readonly type: PinchConditionType.MIN_OPPONENT_SCORE;
|
|
51
|
+
readonly score: number;
|
|
52
|
+
}
|
|
53
|
+
export type PinchCondition = AsapCondition | TeamSetPointCondition | OpponentSetPointCondition | ScoreDiffCondition | AfterRotationsCondition | FromSetCondition | MinOwnScoreCondition | MinOpponentScoreCondition;
|
|
49
54
|
export type ConditionLogic = 'ALL' | 'ANY';
|
|
50
55
|
export interface PinchSetState {
|
|
51
56
|
readonly ownScore: number;
|
|
@@ -9,7 +9,8 @@ export var PinchConditionType;
|
|
|
9
9
|
PinchConditionType["SCORE_DIFF"] = "SCORE_DIFF";
|
|
10
10
|
PinchConditionType["AFTER_ROTATIONS"] = "AFTER_ROTATIONS";
|
|
11
11
|
PinchConditionType["FROM_SET"] = "FROM_SET";
|
|
12
|
-
PinchConditionType["MIN_OWN_SCORE"] = "MIN_OWN_SCORE";
|
|
12
|
+
PinchConditionType["MIN_OWN_SCORE"] = "MIN_OWN_SCORE";
|
|
13
|
+
PinchConditionType["MIN_OPPONENT_SCORE"] = "MIN_OPPONENT_SCORE"; // only once opponent score >= N
|
|
13
14
|
})(PinchConditionType || (PinchConditionType = {}));
|
|
14
15
|
export var OpponentRelation;
|
|
15
16
|
(function (OpponentRelation) {
|
|
@@ -25,6 +25,9 @@ export declare const PinchConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
25
25
|
}, z.core.$strip>, z.ZodObject<{
|
|
26
26
|
type: z.ZodLiteral<PinchConditionType.MIN_OWN_SCORE>;
|
|
27
27
|
score: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
30
|
+
score: z.ZodNumber;
|
|
28
31
|
}, z.core.$strip>], "type">;
|
|
29
32
|
export declare const ConditionLogicSchema: z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>;
|
|
30
33
|
export declare const SubModeSchema: z.ZodEnum<{
|
|
@@ -41,6 +44,7 @@ export declare const DesignatedSubSchema: z.ZodObject<{
|
|
|
41
44
|
PINCH: "PINCH";
|
|
42
45
|
}>;
|
|
43
46
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof EnergyBand>>;
|
|
47
|
+
fatigueBandsBySet: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof EnergyBand>>>;
|
|
44
48
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
49
|
type: z.ZodLiteral<PinchConditionType.ASAP>;
|
|
46
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -63,6 +67,9 @@ export declare const DesignatedSubSchema: z.ZodObject<{
|
|
|
63
67
|
}, z.core.$strip>, z.ZodObject<{
|
|
64
68
|
type: z.ZodLiteral<PinchConditionType.MIN_OWN_SCORE>;
|
|
65
69
|
score: z.ZodNumber;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
72
|
+
score: z.ZodNumber;
|
|
66
73
|
}, z.core.$strip>], "type">>>;
|
|
67
74
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
68
75
|
}, z.core.$strip>;
|
|
@@ -13,7 +13,8 @@ export const PinchConditionSchema = z.discriminatedUnion('type', [
|
|
|
13
13
|
z.object({ type: z.literal(PinchConditionType.SCORE_DIFF), direction: z.nativeEnum(ScoreDirection), points: z.number().int().min(1).max(25) }),
|
|
14
14
|
z.object({ type: z.literal(PinchConditionType.AFTER_ROTATIONS), rotations: z.number().int().min(1).max(6) }),
|
|
15
15
|
z.object({ type: z.literal(PinchConditionType.FROM_SET), set: z.number().int().min(1).max(5) }),
|
|
16
|
-
z.object({ type: z.literal(PinchConditionType.MIN_OWN_SCORE), score: z.number().int().min(0).max(40) })
|
|
16
|
+
z.object({ type: z.literal(PinchConditionType.MIN_OWN_SCORE), score: z.number().int().min(0).max(40) }),
|
|
17
|
+
z.object({ type: z.literal(PinchConditionType.MIN_OPPONENT_SCORE), score: z.number().int().min(0).max(40) })
|
|
17
18
|
]);
|
|
18
19
|
export const ConditionLogicSchema = z.union([z.literal('ALL'), z.literal('ANY')]);
|
|
19
20
|
export const SubModeSchema = z.enum(['FATIGUE', 'PINCH', 'NEVER']);
|
|
@@ -22,6 +23,7 @@ export const DesignatedSubSchema = z.object({
|
|
|
22
23
|
bench: playerInstanceSchema.optional(),
|
|
23
24
|
mode: SubModeSchema,
|
|
24
25
|
fatigueBand: z.nativeEnum(EnergyBand).optional(),
|
|
26
|
+
fatigueBandsBySet: z.array(z.nativeEnum(EnergyBand)).max(5).optional(),
|
|
25
27
|
conditions: z.array(PinchConditionSchema).optional(),
|
|
26
28
|
conditionLogic: ConditionLogicSchema.optional()
|
|
27
29
|
}).superRefine((data, ctx) => {
|
|
@@ -26,6 +26,7 @@ export declare const TacticsInputSchema: z.ZodObject<{
|
|
|
26
26
|
PINCH: "PINCH";
|
|
27
27
|
}>;
|
|
28
28
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof EnergyBand>>;
|
|
29
|
+
fatigueBandsBySet: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof EnergyBand>>>;
|
|
29
30
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
31
|
type: z.ZodLiteral<import("..").PinchConditionType.ASAP>;
|
|
31
32
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -48,6 +49,9 @@ export declare const TacticsInputSchema: z.ZodObject<{
|
|
|
48
49
|
}, z.core.$strip>, z.ZodObject<{
|
|
49
50
|
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OWN_SCORE>;
|
|
50
51
|
score: z.ZodNumber;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
54
|
+
score: z.ZodNumber;
|
|
51
55
|
}, z.core.$strip>], "type">>>;
|
|
52
56
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
53
57
|
}, z.core.$strip>>>;
|
|
@@ -34,6 +34,7 @@ export declare const TeamInputSchema: z.ZodObject<{
|
|
|
34
34
|
PINCH: "PINCH";
|
|
35
35
|
}>;
|
|
36
36
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof import("..").EnergyBand>>;
|
|
37
|
+
fatigueBandsBySet: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").EnergyBand>>>;
|
|
37
38
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
39
|
type: z.ZodLiteral<import("..").PinchConditionType.ASAP>;
|
|
39
40
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -56,6 +57,9 @@ export declare const TeamInputSchema: z.ZodObject<{
|
|
|
56
57
|
}, z.core.$strip>, z.ZodObject<{
|
|
57
58
|
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OWN_SCORE>;
|
|
58
59
|
score: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
62
|
+
score: z.ZodNumber;
|
|
59
63
|
}, z.core.$strip>], "type">>>;
|
|
60
64
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
61
65
|
}, z.core.$strip>>>;
|