volleyballsimtypes 0.0.476 → 0.0.477
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 +9 -1
- package/dist/cjs/src/data/models/auth-session.d.ts +5 -1
- package/dist/cjs/src/data/models/auth-session.js +8 -0
- package/dist/cjs/src/data/models/tactics.d.ts +9 -1
- package/dist/cjs/src/data/transformers/tactics.js +33 -3
- package/dist/cjs/src/data/transformers/tactics.test.js +31 -0
- package/dist/cjs/src/service/team/designated-sub.d.ts +5 -0
- package/dist/cjs/src/service/team/schemas/designated-sub.z.d.ts +109 -0
- package/dist/cjs/src/service/team/schemas/designated-sub.z.js +15 -3
- package/dist/cjs/src/service/team/schemas/designated-sub.z.test.js +73 -0
- package/dist/cjs/src/service/team/schemas/libero-sub.z.d.ts +4 -4
- package/dist/cjs/src/service/team/schemas/tactics.z.d.ts +72 -2
- package/dist/cjs/src/service/team/schemas/team.z.d.ts +72 -2
- package/dist/esm/src/api/index.d.ts +9 -1
- package/dist/esm/src/data/models/auth-session.d.ts +5 -1
- package/dist/esm/src/data/models/auth-session.js +8 -0
- package/dist/esm/src/data/models/tactics.d.ts +9 -1
- package/dist/esm/src/data/transformers/tactics.js +33 -3
- package/dist/esm/src/data/transformers/tactics.test.js +31 -0
- package/dist/esm/src/service/team/designated-sub.d.ts +5 -0
- package/dist/esm/src/service/team/schemas/designated-sub.z.d.ts +109 -0
- package/dist/esm/src/service/team/schemas/designated-sub.z.js +14 -2
- package/dist/esm/src/service/team/schemas/designated-sub.z.test.js +73 -0
- package/dist/esm/src/service/team/schemas/libero-sub.z.d.ts +4 -4
- package/dist/esm/src/service/team/schemas/tactics.z.d.ts +72 -2
- package/dist/esm/src/service/team/schemas/team.z.d.ts +72 -2
- package/package.json +1 -1
|
@@ -55,6 +55,41 @@ export declare const TacticsInputSchema: z.ZodObject<{
|
|
|
55
55
|
phase: z.ZodEnum<typeof import("..").MatchPhase>;
|
|
56
56
|
}, z.core.$strip>], "type">>>;
|
|
57
57
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
58
|
+
pinchServer: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
subBackMode: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
FATIGUE: "FATIGUE";
|
|
61
|
+
CONDITIONS: "CONDITIONS";
|
|
62
|
+
}>>;
|
|
63
|
+
subBackConditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
64
|
+
type: z.ZodLiteral<import("..").PinchConditionType.ASAP>;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
type: z.ZodLiteral<import("..").PinchConditionType.TEAM_SET_POINT>;
|
|
67
|
+
margin: z.ZodNumber;
|
|
68
|
+
opponent: z.ZodEnum<typeof import("..").OpponentRelation>;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
type: z.ZodLiteral<import("..").PinchConditionType.OPPONENT_SET_POINT>;
|
|
71
|
+
margin: z.ZodNumber;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
type: z.ZodLiteral<import("..").PinchConditionType.SCORE_DIFF>;
|
|
74
|
+
direction: z.ZodEnum<typeof import("..").ScoreDirection>;
|
|
75
|
+
points: z.ZodNumber;
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
+
type: z.ZodLiteral<import("..").PinchConditionType.AFTER_ROTATIONS>;
|
|
78
|
+
rotations: z.ZodNumber;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<import("..").PinchConditionType.FROM_SET>;
|
|
81
|
+
set: z.ZodNumber;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OWN_SCORE>;
|
|
84
|
+
score: z.ZodNumber;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
87
|
+
score: z.ZodNumber;
|
|
88
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
+
type: z.ZodLiteral<import("..").PinchConditionType.PHASE>;
|
|
90
|
+
phase: z.ZodEnum<typeof import("..").MatchPhase>;
|
|
91
|
+
}, z.core.$strip>], "type">>>;
|
|
92
|
+
subBackConditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
58
93
|
}, z.core.$strip>>>;
|
|
59
94
|
mode: z.ZodEnum<{
|
|
60
95
|
NEVER: "NEVER";
|
|
@@ -94,6 +129,41 @@ export declare const TacticsInputSchema: z.ZodObject<{
|
|
|
94
129
|
phase: z.ZodEnum<typeof import("..").MatchPhase>;
|
|
95
130
|
}, z.core.$strip>], "type">>>;
|
|
96
131
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
132
|
+
pinchServer: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
subBackMode: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
FATIGUE: "FATIGUE";
|
|
135
|
+
CONDITIONS: "CONDITIONS";
|
|
136
|
+
}>>;
|
|
137
|
+
subBackConditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
|
+
type: z.ZodLiteral<import("..").PinchConditionType.ASAP>;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
type: z.ZodLiteral<import("..").PinchConditionType.TEAM_SET_POINT>;
|
|
141
|
+
margin: z.ZodNumber;
|
|
142
|
+
opponent: z.ZodEnum<typeof import("..").OpponentRelation>;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
type: z.ZodLiteral<import("..").PinchConditionType.OPPONENT_SET_POINT>;
|
|
145
|
+
margin: z.ZodNumber;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
type: z.ZodLiteral<import("..").PinchConditionType.SCORE_DIFF>;
|
|
148
|
+
direction: z.ZodEnum<typeof import("..").ScoreDirection>;
|
|
149
|
+
points: z.ZodNumber;
|
|
150
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
151
|
+
type: z.ZodLiteral<import("..").PinchConditionType.AFTER_ROTATIONS>;
|
|
152
|
+
rotations: z.ZodNumber;
|
|
153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
154
|
+
type: z.ZodLiteral<import("..").PinchConditionType.FROM_SET>;
|
|
155
|
+
set: z.ZodNumber;
|
|
156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
157
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OWN_SCORE>;
|
|
158
|
+
score: z.ZodNumber;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
161
|
+
score: z.ZodNumber;
|
|
162
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
163
|
+
type: z.ZodLiteral<import("..").PinchConditionType.PHASE>;
|
|
164
|
+
phase: z.ZodEnum<typeof import("..").MatchPhase>;
|
|
165
|
+
}, z.core.$strip>], "type">>>;
|
|
166
|
+
subBackConditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
97
167
|
starter: z.ZodCustom<Player, Player>;
|
|
98
168
|
}, z.core.$strip>>>;
|
|
99
169
|
substitutionBand: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<typeof EnergyBand>, z.ZodLiteral<"NEVER">]>>;
|
|
@@ -103,8 +173,8 @@ export declare const TacticsInputSchema: z.ZodObject<{
|
|
|
103
173
|
mode: z.ZodEnum<{
|
|
104
174
|
NEVER: "NEVER";
|
|
105
175
|
FATIGUE: "FATIGUE";
|
|
106
|
-
ALWAYS: "ALWAYS";
|
|
107
176
|
CONDITIONS: "CONDITIONS";
|
|
177
|
+
ALWAYS: "ALWAYS";
|
|
108
178
|
}>;
|
|
109
179
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof EnergyBand>>;
|
|
110
180
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -141,8 +211,8 @@ export declare const TacticsInputSchema: z.ZodObject<{
|
|
|
141
211
|
mode: z.ZodEnum<{
|
|
142
212
|
NEVER: "NEVER";
|
|
143
213
|
FATIGUE: "FATIGUE";
|
|
144
|
-
ALWAYS: "ALWAYS";
|
|
145
214
|
CONDITIONS: "CONDITIONS";
|
|
215
|
+
ALWAYS: "ALWAYS";
|
|
146
216
|
}>;
|
|
147
217
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof EnergyBand>>;
|
|
148
218
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -63,6 +63,41 @@ export declare const TeamInputSchema: z.ZodObject<{
|
|
|
63
63
|
phase: z.ZodEnum<typeof import("..").MatchPhase>;
|
|
64
64
|
}, z.core.$strip>], "type">>>;
|
|
65
65
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
66
|
+
pinchServer: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
subBackMode: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
FATIGUE: "FATIGUE";
|
|
69
|
+
CONDITIONS: "CONDITIONS";
|
|
70
|
+
}>>;
|
|
71
|
+
subBackConditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<import("..").PinchConditionType.ASAP>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<import("..").PinchConditionType.TEAM_SET_POINT>;
|
|
75
|
+
margin: z.ZodNumber;
|
|
76
|
+
opponent: z.ZodEnum<typeof import("..").OpponentRelation>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
type: z.ZodLiteral<import("..").PinchConditionType.OPPONENT_SET_POINT>;
|
|
79
|
+
margin: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<import("..").PinchConditionType.SCORE_DIFF>;
|
|
82
|
+
direction: z.ZodEnum<typeof import("..").ScoreDirection>;
|
|
83
|
+
points: z.ZodNumber;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<import("..").PinchConditionType.AFTER_ROTATIONS>;
|
|
86
|
+
rotations: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
type: z.ZodLiteral<import("..").PinchConditionType.FROM_SET>;
|
|
89
|
+
set: z.ZodNumber;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OWN_SCORE>;
|
|
92
|
+
score: z.ZodNumber;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
95
|
+
score: z.ZodNumber;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
type: z.ZodLiteral<import("..").PinchConditionType.PHASE>;
|
|
98
|
+
phase: z.ZodEnum<typeof import("..").MatchPhase>;
|
|
99
|
+
}, z.core.$strip>], "type">>>;
|
|
100
|
+
subBackConditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
66
101
|
}, z.core.$strip>>>;
|
|
67
102
|
mode: z.ZodEnum<{
|
|
68
103
|
NEVER: "NEVER";
|
|
@@ -102,6 +137,41 @@ export declare const TeamInputSchema: z.ZodObject<{
|
|
|
102
137
|
phase: z.ZodEnum<typeof import("..").MatchPhase>;
|
|
103
138
|
}, z.core.$strip>], "type">>>;
|
|
104
139
|
conditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
140
|
+
pinchServer: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
subBackMode: z.ZodOptional<z.ZodEnum<{
|
|
142
|
+
FATIGUE: "FATIGUE";
|
|
143
|
+
CONDITIONS: "CONDITIONS";
|
|
144
|
+
}>>;
|
|
145
|
+
subBackConditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
146
|
+
type: z.ZodLiteral<import("..").PinchConditionType.ASAP>;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
type: z.ZodLiteral<import("..").PinchConditionType.TEAM_SET_POINT>;
|
|
149
|
+
margin: z.ZodNumber;
|
|
150
|
+
opponent: z.ZodEnum<typeof import("..").OpponentRelation>;
|
|
151
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
152
|
+
type: z.ZodLiteral<import("..").PinchConditionType.OPPONENT_SET_POINT>;
|
|
153
|
+
margin: z.ZodNumber;
|
|
154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
155
|
+
type: z.ZodLiteral<import("..").PinchConditionType.SCORE_DIFF>;
|
|
156
|
+
direction: z.ZodEnum<typeof import("..").ScoreDirection>;
|
|
157
|
+
points: z.ZodNumber;
|
|
158
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
159
|
+
type: z.ZodLiteral<import("..").PinchConditionType.AFTER_ROTATIONS>;
|
|
160
|
+
rotations: z.ZodNumber;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
type: z.ZodLiteral<import("..").PinchConditionType.FROM_SET>;
|
|
163
|
+
set: z.ZodNumber;
|
|
164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OWN_SCORE>;
|
|
166
|
+
score: z.ZodNumber;
|
|
167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
+
type: z.ZodLiteral<import("..").PinchConditionType.MIN_OPPONENT_SCORE>;
|
|
169
|
+
score: z.ZodNumber;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
type: z.ZodLiteral<import("..").PinchConditionType.PHASE>;
|
|
172
|
+
phase: z.ZodEnum<typeof import("..").MatchPhase>;
|
|
173
|
+
}, z.core.$strip>], "type">>>;
|
|
174
|
+
subBackConditionLogic: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodLiteral<"ANY">]>>;
|
|
105
175
|
starter: z.ZodCustom<Player, Player>;
|
|
106
176
|
}, z.core.$strip>>>;
|
|
107
177
|
substitutionBand: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<typeof import("..").EnergyBand>, z.ZodLiteral<"NEVER">]>>;
|
|
@@ -111,8 +181,8 @@ export declare const TeamInputSchema: z.ZodObject<{
|
|
|
111
181
|
mode: z.ZodEnum<{
|
|
112
182
|
NEVER: "NEVER";
|
|
113
183
|
FATIGUE: "FATIGUE";
|
|
114
|
-
ALWAYS: "ALWAYS";
|
|
115
184
|
CONDITIONS: "CONDITIONS";
|
|
185
|
+
ALWAYS: "ALWAYS";
|
|
116
186
|
}>;
|
|
117
187
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof import("..").EnergyBand>>;
|
|
118
188
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -149,8 +219,8 @@ export declare const TeamInputSchema: z.ZodObject<{
|
|
|
149
219
|
mode: z.ZodEnum<{
|
|
150
220
|
NEVER: "NEVER";
|
|
151
221
|
FATIGUE: "FATIGUE";
|
|
152
|
-
ALWAYS: "ALWAYS";
|
|
153
222
|
CONDITIONS: "CONDITIONS";
|
|
223
|
+
ALWAYS: "ALWAYS";
|
|
154
224
|
}>;
|
|
155
225
|
fatigueBand: z.ZodOptional<z.ZodEnum<typeof import("..").EnergyBand>>;
|
|
156
226
|
conditions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|