rategame-shared 1.1.425 → 1.1.426

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.
@@ -1,12 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare const fifaStandingsTeamSchema: z.ZodObject<{
3
- teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
3
  apiTeamId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
4
  name: z.ZodString;
6
5
  shortName: z.ZodOptional<z.ZodString>;
7
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- teamCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
- countryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
6
  order: z.ZodNumber;
11
7
  games: z.ZodNumber;
12
8
  wins: z.ZodNumber;
@@ -27,11 +23,7 @@ export declare const fifaStandingsTeamSchema: z.ZodObject<{
27
23
  goalsAgainst: number;
28
24
  goalsDifferential: number;
29
25
  points: number;
30
- image?: string | null | undefined;
31
26
  apiTeamId?: number | null | undefined;
32
- teamCode?: string | null | undefined;
33
- teamId?: string | null | undefined;
34
- countryId?: string | null | undefined;
35
27
  shortName?: string | undefined;
36
28
  }, {
37
29
  name: string;
@@ -44,24 +36,16 @@ export declare const fifaStandingsTeamSchema: z.ZodObject<{
44
36
  goalsAgainst: number;
45
37
  goalsDifferential: number;
46
38
  points: number;
47
- image?: string | null | undefined;
48
39
  apiTeamId?: number | null | undefined;
49
- teamCode?: string | null | undefined;
50
- teamId?: string | null | undefined;
51
- countryId?: string | null | undefined;
52
40
  shortName?: string | undefined;
53
41
  }>;
54
42
  export declare const fifaStandingsGroupSchema: z.ZodObject<{
55
43
  groupKey: z.ZodString;
56
44
  groupName: z.ZodString;
57
45
  teams: z.ZodArray<z.ZodObject<{
58
- teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
46
  apiTeamId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
47
  name: z.ZodString;
61
48
  shortName: z.ZodOptional<z.ZodString>;
62
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
- teamCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
- countryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
49
  order: z.ZodNumber;
66
50
  games: z.ZodNumber;
67
51
  wins: z.ZodNumber;
@@ -82,11 +66,7 @@ export declare const fifaStandingsGroupSchema: z.ZodObject<{
82
66
  goalsAgainst: number;
83
67
  goalsDifferential: number;
84
68
  points: number;
85
- image?: string | null | undefined;
86
69
  apiTeamId?: number | null | undefined;
87
- teamCode?: string | null | undefined;
88
- teamId?: string | null | undefined;
89
- countryId?: string | null | undefined;
90
70
  shortName?: string | undefined;
91
71
  }, {
92
72
  name: string;
@@ -99,11 +79,7 @@ export declare const fifaStandingsGroupSchema: z.ZodObject<{
99
79
  goalsAgainst: number;
100
80
  goalsDifferential: number;
101
81
  points: number;
102
- image?: string | null | undefined;
103
82
  apiTeamId?: number | null | undefined;
104
- teamCode?: string | null | undefined;
105
- teamId?: string | null | undefined;
106
- countryId?: string | null | undefined;
107
83
  shortName?: string | undefined;
108
84
  }>, "many">;
109
85
  }, "strip", z.ZodTypeAny, {
@@ -118,11 +94,7 @@ export declare const fifaStandingsGroupSchema: z.ZodObject<{
118
94
  goalsAgainst: number;
119
95
  goalsDifferential: number;
120
96
  points: number;
121
- image?: string | null | undefined;
122
97
  apiTeamId?: number | null | undefined;
123
- teamCode?: string | null | undefined;
124
- teamId?: string | null | undefined;
125
- countryId?: string | null | undefined;
126
98
  shortName?: string | undefined;
127
99
  }[];
128
100
  groupKey: string;
@@ -139,30 +111,20 @@ export declare const fifaStandingsGroupSchema: z.ZodObject<{
139
111
  goalsAgainst: number;
140
112
  goalsDifferential: number;
141
113
  points: number;
142
- image?: string | null | undefined;
143
114
  apiTeamId?: number | null | undefined;
144
- teamCode?: string | null | undefined;
145
- teamId?: string | null | undefined;
146
- countryId?: string | null | undefined;
147
115
  shortName?: string | undefined;
148
116
  }[];
149
117
  groupKey: string;
150
118
  groupName: string;
151
119
  }>;
152
120
  export declare const fifaStandingsResponseDtoSchema: z.ZodObject<{
153
- league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"fifa">, z.ZodUnion<[z.ZodLiteral<"global">, z.ZodString]>]>;
154
- season: z.ZodNumber;
155
121
  groups: z.ZodArray<z.ZodObject<{
156
122
  groupKey: z.ZodString;
157
123
  groupName: z.ZodString;
158
124
  teams: z.ZodArray<z.ZodObject<{
159
- teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
125
  apiTeamId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
161
126
  name: z.ZodString;
162
127
  shortName: z.ZodOptional<z.ZodString>;
163
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
- teamCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
- countryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
128
  order: z.ZodNumber;
167
129
  games: z.ZodNumber;
168
130
  wins: z.ZodNumber;
@@ -183,11 +145,7 @@ export declare const fifaStandingsResponseDtoSchema: z.ZodObject<{
183
145
  goalsAgainst: number;
184
146
  goalsDifferential: number;
185
147
  points: number;
186
- image?: string | null | undefined;
187
148
  apiTeamId?: number | null | undefined;
188
- teamCode?: string | null | undefined;
189
- teamId?: string | null | undefined;
190
- countryId?: string | null | undefined;
191
149
  shortName?: string | undefined;
192
150
  }, {
193
151
  name: string;
@@ -200,11 +158,7 @@ export declare const fifaStandingsResponseDtoSchema: z.ZodObject<{
200
158
  goalsAgainst: number;
201
159
  goalsDifferential: number;
202
160
  points: number;
203
- image?: string | null | undefined;
204
161
  apiTeamId?: number | null | undefined;
205
- teamCode?: string | null | undefined;
206
- teamId?: string | null | undefined;
207
- countryId?: string | null | undefined;
208
162
  shortName?: string | undefined;
209
163
  }>, "many">;
210
164
  }, "strip", z.ZodTypeAny, {
@@ -219,11 +173,7 @@ export declare const fifaStandingsResponseDtoSchema: z.ZodObject<{
219
173
  goalsAgainst: number;
220
174
  goalsDifferential: number;
221
175
  points: number;
222
- image?: string | null | undefined;
223
176
  apiTeamId?: number | null | undefined;
224
- teamCode?: string | null | undefined;
225
- teamId?: string | null | undefined;
226
- countryId?: string | null | undefined;
227
177
  shortName?: string | undefined;
228
178
  }[];
229
179
  groupKey: string;
@@ -240,17 +190,12 @@ export declare const fifaStandingsResponseDtoSchema: z.ZodObject<{
240
190
  goalsAgainst: number;
241
191
  goalsDifferential: number;
242
192
  points: number;
243
- image?: string | null | undefined;
244
193
  apiTeamId?: number | null | undefined;
245
- teamCode?: string | null | undefined;
246
- teamId?: string | null | undefined;
247
- countryId?: string | null | undefined;
248
194
  shortName?: string | undefined;
249
195
  }[];
250
196
  groupKey: string;
251
197
  groupName: string;
252
198
  }>, "many">;
253
- updatedAt: z.ZodNumber;
254
199
  }, "strip", z.ZodTypeAny, {
255
200
  groups: {
256
201
  teams: {
@@ -264,19 +209,12 @@ export declare const fifaStandingsResponseDtoSchema: z.ZodObject<{
264
209
  goalsAgainst: number;
265
210
  goalsDifferential: number;
266
211
  points: number;
267
- image?: string | null | undefined;
268
212
  apiTeamId?: number | null | undefined;
269
- teamCode?: string | null | undefined;
270
- teamId?: string | null | undefined;
271
- countryId?: string | null | undefined;
272
213
  shortName?: string | undefined;
273
214
  }[];
274
215
  groupKey: string;
275
216
  groupName: string;
276
217
  }[];
277
- league: string;
278
- updatedAt: number;
279
- season: number;
280
218
  }, {
281
219
  groups: {
282
220
  teams: {
@@ -290,17 +228,10 @@ export declare const fifaStandingsResponseDtoSchema: z.ZodObject<{
290
228
  goalsAgainst: number;
291
229
  goalsDifferential: number;
292
230
  points: number;
293
- image?: string | null | undefined;
294
231
  apiTeamId?: number | null | undefined;
295
- teamCode?: string | null | undefined;
296
- teamId?: string | null | undefined;
297
- countryId?: string | null | undefined;
298
232
  shortName?: string | undefined;
299
233
  }[];
300
234
  groupKey: string;
301
235
  groupName: string;
302
236
  }[];
303
- league: string;
304
- updatedAt: number;
305
- season: number;
306
237
  }>;
@@ -2,16 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fifaStandingsResponseDtoSchema = exports.fifaStandingsGroupSchema = exports.fifaStandingsTeamSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const sharedTypes_1 = require("./sharedTypes");
6
5
  // One team's row inside a group standings table
7
6
  exports.fifaStandingsTeamSchema = zod_1.z.object({
8
- teamId: zod_1.z.string().nullable().optional(),
9
7
  apiTeamId: zod_1.z.number().nullable().optional(),
10
8
  name: zod_1.z.string(),
11
9
  shortName: zod_1.z.string().optional(),
12
- image: zod_1.z.string().nullable().optional(),
13
- teamCode: zod_1.z.string().nullable().optional(),
14
- countryId: zod_1.z.string().nullable().optional(),
15
10
  order: zod_1.z.number(),
16
11
  games: zod_1.z.number(),
17
12
  wins: zod_1.z.number(),
@@ -28,8 +23,5 @@ exports.fifaStandingsGroupSchema = zod_1.z.object({
28
23
  teams: zod_1.z.array(exports.fifaStandingsTeamSchema),
29
24
  });
30
25
  exports.fifaStandingsResponseDtoSchema = zod_1.z.object({
31
- league: sharedTypes_1.leagueSlug,
32
- season: zod_1.z.number(),
33
26
  groups: zod_1.z.array(exports.fifaStandingsGroupSchema),
34
- updatedAt: zod_1.z.number(),
35
27
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.425",
3
+ "version": "1.1.426",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",