rategame-shared 1.1.318 → 1.1.320
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/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/pick.d.ts +15 -0
- package/dist/models/pick.js +2 -0
- package/dist/models/rating.d.ts +2 -1
- package/dist/schemas/notification.d.ts +152 -0
- package/dist/schemas/pick.d.ts +64499 -0
- package/dist/schemas/pick.js +103 -0
- package/dist/schemas/rating.d.ts +312 -0
- package/dist/schemas/rating.js +7 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./schemas/player";
|
|
|
13
13
|
export * from "./schemas/voting";
|
|
14
14
|
export * from "./schemas/stadium";
|
|
15
15
|
export * from "./schemas/content";
|
|
16
|
+
export * from "./schemas/pick";
|
|
16
17
|
export * from "./models/user";
|
|
17
18
|
export * from "./models/rating";
|
|
18
19
|
export * from "./models/game";
|
|
@@ -29,4 +30,5 @@ export * from "./helpers/index";
|
|
|
29
30
|
export * from "./models/player";
|
|
30
31
|
export * from "./models/voting";
|
|
31
32
|
export * from "./models/stadium";
|
|
33
|
+
export * from "./models/pick";
|
|
32
34
|
export * from "./constants";
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./schemas/player"), exports);
|
|
|
29
29
|
__exportStar(require("./schemas/voting"), exports);
|
|
30
30
|
__exportStar(require("./schemas/stadium"), exports);
|
|
31
31
|
__exportStar(require("./schemas/content"), exports);
|
|
32
|
+
__exportStar(require("./schemas/pick"), exports);
|
|
32
33
|
__exportStar(require("./models/user"), exports);
|
|
33
34
|
__exportStar(require("./models/rating"), exports);
|
|
34
35
|
__exportStar(require("./models/game"), exports);
|
|
@@ -45,4 +46,5 @@ __exportStar(require("./helpers/index"), exports);
|
|
|
45
46
|
__exportStar(require("./models/player"), exports);
|
|
46
47
|
__exportStar(require("./models/voting"), exports);
|
|
47
48
|
__exportStar(require("./models/stadium"), exports);
|
|
49
|
+
__exportStar(require("./models/pick"), exports);
|
|
48
50
|
__exportStar(require("./constants"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { pickSchema, miniPickSchema, pickSubmissionDtoSchema, pickSubmissionResponseDtoSchema, pickUpdateDtoSchema, gamePickStatsResponseDtoSchema, userPickResponseDtoSchema, userPicksLeagueStatsSchema, userPicksStatsResponseDtoSchema, userPicksTeamStatsSchema, userPicksByTeamResponseDtoSchema, gamePickUsersResponseDtoSchema, gamePickUsersPaginatedResponseDtoSchema } from "../schemas/pick";
|
|
3
|
+
export type Pick = z.infer<typeof pickSchema>;
|
|
4
|
+
export type MiniPick = z.infer<typeof miniPickSchema>;
|
|
5
|
+
export type PickSubmissionDto = z.infer<typeof pickSubmissionDtoSchema>;
|
|
6
|
+
export type PickSubmissionResponseDto = z.infer<typeof pickSubmissionResponseDtoSchema>;
|
|
7
|
+
export type PickUpdateDto = z.infer<typeof pickUpdateDtoSchema>;
|
|
8
|
+
export type GamePickStatsResponseDto = z.infer<typeof gamePickStatsResponseDtoSchema>;
|
|
9
|
+
export type UserPickResponseDto = z.infer<typeof userPickResponseDtoSchema>;
|
|
10
|
+
export type UserPicksLeagueStats = z.infer<typeof userPicksLeagueStatsSchema>;
|
|
11
|
+
export type UserPicksStatsResponseDto = z.infer<typeof userPicksStatsResponseDtoSchema>;
|
|
12
|
+
export type UserPicksTeamStats = z.infer<typeof userPicksTeamStatsSchema>;
|
|
13
|
+
export type UserPicksByTeamResponseDto = z.infer<typeof userPicksByTeamResponseDtoSchema>;
|
|
14
|
+
export type GamePickUsersResponseDto = z.infer<typeof gamePickUsersResponseDtoSchema>;
|
|
15
|
+
export type GamePickUsersPaginatedResponseDto = z.infer<typeof gamePickUsersPaginatedResponseDtoSchema>;
|
package/dist/models/rating.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingCategorySchema, ratingLikeSchema, ratingSchema, roundStatsSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, seriesStatsSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
|
|
2
|
+
import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingCategorySchema, ratingLikeSchema, ratingMiniPickSchema, ratingSchema, roundStatsSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, seriesStatsSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
|
|
3
3
|
import { seasonGroupingSchema } from "../schemas/sharedTypes";
|
|
4
4
|
export type Rating = z.infer<typeof ratingSchema>;
|
|
5
|
+
export type RatingMiniPick = z.infer<typeof ratingMiniPickSchema>;
|
|
5
6
|
export type RatingCategory = z.infer<typeof ratingCategorySchema>;
|
|
6
7
|
export type ProfileRatingStats = z.infer<typeof profileRatingStatsSchema>;
|
|
7
8
|
export type SeasonStats = z.infer<typeof seasonStatsSchema>;
|
|
@@ -264,6 +264,86 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
264
264
|
edited: z.ZodOptional<z.ZodBoolean>;
|
|
265
265
|
category: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"watched">, z.ZodLiteral<"attended">, z.ZodLiteral<"highlights">, z.ZodLiteral<"listened">, z.ZodLiteral<"partiallyWatched">]>>;
|
|
266
266
|
userLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
267
|
+
pick: z.ZodOptional<z.ZodObject<{
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
team: z.ZodObject<{
|
|
270
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
271
|
+
apiTeamId: z.ZodNullable<z.ZodNumber>;
|
|
272
|
+
name: z.ZodNullable<z.ZodString>;
|
|
273
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
isWinner: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
275
|
+
image: z.ZodNullable<z.ZodString>;
|
|
276
|
+
seed: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
277
|
+
teamCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
278
|
+
scoreExtraTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
279
|
+
stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
280
|
+
school: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
281
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
282
|
+
venueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
name: string | null;
|
|
285
|
+
image: string | null;
|
|
286
|
+
apiTeamId: number | null;
|
|
287
|
+
id?: string | null | undefined;
|
|
288
|
+
score?: number | undefined;
|
|
289
|
+
isWinner?: boolean | null | undefined;
|
|
290
|
+
seed?: number | null | undefined;
|
|
291
|
+
teamCode?: string | null | undefined;
|
|
292
|
+
scoreExtraTime?: number | null | undefined;
|
|
293
|
+
stadiumUrl?: string | null | undefined;
|
|
294
|
+
school?: string | null | undefined;
|
|
295
|
+
city?: string | null | undefined;
|
|
296
|
+
venueName?: string | null | undefined;
|
|
297
|
+
}, {
|
|
298
|
+
name: string | null;
|
|
299
|
+
image: string | null;
|
|
300
|
+
apiTeamId: number | null;
|
|
301
|
+
id?: string | null | undefined;
|
|
302
|
+
score?: number | undefined;
|
|
303
|
+
isWinner?: boolean | null | undefined;
|
|
304
|
+
seed?: number | null | undefined;
|
|
305
|
+
teamCode?: string | null | undefined;
|
|
306
|
+
scoreExtraTime?: number | null | undefined;
|
|
307
|
+
stadiumUrl?: string | null | undefined;
|
|
308
|
+
school?: string | null | undefined;
|
|
309
|
+
city?: string | null | undefined;
|
|
310
|
+
venueName?: string | null | undefined;
|
|
311
|
+
}>;
|
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
|
313
|
+
id: string;
|
|
314
|
+
team: {
|
|
315
|
+
name: string | null;
|
|
316
|
+
image: string | null;
|
|
317
|
+
apiTeamId: number | null;
|
|
318
|
+
id?: string | null | undefined;
|
|
319
|
+
score?: number | undefined;
|
|
320
|
+
isWinner?: boolean | null | undefined;
|
|
321
|
+
seed?: number | null | undefined;
|
|
322
|
+
teamCode?: string | null | undefined;
|
|
323
|
+
scoreExtraTime?: number | null | undefined;
|
|
324
|
+
stadiumUrl?: string | null | undefined;
|
|
325
|
+
school?: string | null | undefined;
|
|
326
|
+
city?: string | null | undefined;
|
|
327
|
+
venueName?: string | null | undefined;
|
|
328
|
+
};
|
|
329
|
+
}, {
|
|
330
|
+
id: string;
|
|
331
|
+
team: {
|
|
332
|
+
name: string | null;
|
|
333
|
+
image: string | null;
|
|
334
|
+
apiTeamId: number | null;
|
|
335
|
+
id?: string | null | undefined;
|
|
336
|
+
score?: number | undefined;
|
|
337
|
+
isWinner?: boolean | null | undefined;
|
|
338
|
+
seed?: number | null | undefined;
|
|
339
|
+
teamCode?: string | null | undefined;
|
|
340
|
+
scoreExtraTime?: number | null | undefined;
|
|
341
|
+
stadiumUrl?: string | null | undefined;
|
|
342
|
+
school?: string | null | undefined;
|
|
343
|
+
city?: string | null | undefined;
|
|
344
|
+
venueName?: string | null | undefined;
|
|
345
|
+
};
|
|
346
|
+
}>>;
|
|
267
347
|
}, "strip", z.ZodTypeAny, {
|
|
268
348
|
id: string;
|
|
269
349
|
user: {
|
|
@@ -321,6 +401,24 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
321
401
|
seasonType?: number | undefined;
|
|
322
402
|
roundName?: string | undefined;
|
|
323
403
|
};
|
|
404
|
+
pick?: {
|
|
405
|
+
id: string;
|
|
406
|
+
team: {
|
|
407
|
+
name: string | null;
|
|
408
|
+
image: string | null;
|
|
409
|
+
apiTeamId: number | null;
|
|
410
|
+
id?: string | null | undefined;
|
|
411
|
+
score?: number | undefined;
|
|
412
|
+
isWinner?: boolean | null | undefined;
|
|
413
|
+
seed?: number | null | undefined;
|
|
414
|
+
teamCode?: string | null | undefined;
|
|
415
|
+
scoreExtraTime?: number | null | undefined;
|
|
416
|
+
stadiumUrl?: string | null | undefined;
|
|
417
|
+
school?: string | null | undefined;
|
|
418
|
+
city?: string | null | undefined;
|
|
419
|
+
venueName?: string | null | undefined;
|
|
420
|
+
};
|
|
421
|
+
} | undefined;
|
|
324
422
|
weightedRating?: number | undefined;
|
|
325
423
|
updatedAt?: number | undefined;
|
|
326
424
|
comment?: string | undefined;
|
|
@@ -389,6 +487,24 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
389
487
|
seasonType?: number | undefined;
|
|
390
488
|
roundName?: string | undefined;
|
|
391
489
|
};
|
|
490
|
+
pick?: {
|
|
491
|
+
id: string;
|
|
492
|
+
team: {
|
|
493
|
+
name: string | null;
|
|
494
|
+
image: string | null;
|
|
495
|
+
apiTeamId: number | null;
|
|
496
|
+
id?: string | null | undefined;
|
|
497
|
+
score?: number | undefined;
|
|
498
|
+
isWinner?: boolean | null | undefined;
|
|
499
|
+
seed?: number | null | undefined;
|
|
500
|
+
teamCode?: string | null | undefined;
|
|
501
|
+
scoreExtraTime?: number | null | undefined;
|
|
502
|
+
stadiumUrl?: string | null | undefined;
|
|
503
|
+
school?: string | null | undefined;
|
|
504
|
+
city?: string | null | undefined;
|
|
505
|
+
venueName?: string | null | undefined;
|
|
506
|
+
};
|
|
507
|
+
} | undefined;
|
|
392
508
|
weightedRating?: number | undefined;
|
|
393
509
|
updatedAt?: number | undefined;
|
|
394
510
|
comment?: string | undefined;
|
|
@@ -474,6 +590,24 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
474
590
|
seasonType?: number | undefined;
|
|
475
591
|
roundName?: string | undefined;
|
|
476
592
|
};
|
|
593
|
+
pick?: {
|
|
594
|
+
id: string;
|
|
595
|
+
team: {
|
|
596
|
+
name: string | null;
|
|
597
|
+
image: string | null;
|
|
598
|
+
apiTeamId: number | null;
|
|
599
|
+
id?: string | null | undefined;
|
|
600
|
+
score?: number | undefined;
|
|
601
|
+
isWinner?: boolean | null | undefined;
|
|
602
|
+
seed?: number | null | undefined;
|
|
603
|
+
teamCode?: string | null | undefined;
|
|
604
|
+
scoreExtraTime?: number | null | undefined;
|
|
605
|
+
stadiumUrl?: string | null | undefined;
|
|
606
|
+
school?: string | null | undefined;
|
|
607
|
+
city?: string | null | undefined;
|
|
608
|
+
venueName?: string | null | undefined;
|
|
609
|
+
};
|
|
610
|
+
} | undefined;
|
|
477
611
|
weightedRating?: number | undefined;
|
|
478
612
|
updatedAt?: number | undefined;
|
|
479
613
|
comment?: string | undefined;
|
|
@@ -560,6 +694,24 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
560
694
|
seasonType?: number | undefined;
|
|
561
695
|
roundName?: string | undefined;
|
|
562
696
|
};
|
|
697
|
+
pick?: {
|
|
698
|
+
id: string;
|
|
699
|
+
team: {
|
|
700
|
+
name: string | null;
|
|
701
|
+
image: string | null;
|
|
702
|
+
apiTeamId: number | null;
|
|
703
|
+
id?: string | null | undefined;
|
|
704
|
+
score?: number | undefined;
|
|
705
|
+
isWinner?: boolean | null | undefined;
|
|
706
|
+
seed?: number | null | undefined;
|
|
707
|
+
teamCode?: string | null | undefined;
|
|
708
|
+
scoreExtraTime?: number | null | undefined;
|
|
709
|
+
stadiumUrl?: string | null | undefined;
|
|
710
|
+
school?: string | null | undefined;
|
|
711
|
+
city?: string | null | undefined;
|
|
712
|
+
venueName?: string | null | undefined;
|
|
713
|
+
};
|
|
714
|
+
} | undefined;
|
|
563
715
|
weightedRating?: number | undefined;
|
|
564
716
|
updatedAt?: number | undefined;
|
|
565
717
|
comment?: string | undefined;
|