rategame-shared 1.1.413 → 1.1.415

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,3 +1,6 @@
1
1
  import { z } from "zod";
2
- import { featuredVideoSchema } from "../schemas/content";
2
+ import { createFeaturedVideoScheduleInputSchema, featuredVideoScheduleSchema, featuredVideoSchema, updateFeaturedVideoScheduleInputSchema } from "../schemas/content";
3
3
  export type FeaturedVideo = z.infer<typeof featuredVideoSchema>;
4
+ export type CreateFeaturedVideoScheduleInput = z.infer<typeof createFeaturedVideoScheduleInputSchema>;
5
+ export type UpdateFeaturedVideoScheduleInput = z.infer<typeof updateFeaturedVideoScheduleInputSchema>;
6
+ export type FeaturedVideoSchedule = z.infer<typeof featuredVideoScheduleSchema>;
@@ -17,3 +17,96 @@ export declare const featuredVideoSchema: import("zod").ZodObject<{
17
17
  description: string;
18
18
  thumbnail: string;
19
19
  }>;
20
+ export declare const createFeaturedVideoScheduleInputSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
21
+ id: import("zod").ZodString;
22
+ title: import("zod").ZodString;
23
+ description: import("zod").ZodString;
24
+ url: import("zod").ZodString;
25
+ thumbnail: import("zod").ZodString;
26
+ }, {
27
+ startsAt: import("zod").ZodNumber;
28
+ endsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
29
+ }>, "strip", import("zod").ZodTypeAny, {
30
+ id: string;
31
+ url: string;
32
+ title: string;
33
+ description: string;
34
+ thumbnail: string;
35
+ startsAt: number;
36
+ endsAt?: number | undefined;
37
+ }, {
38
+ id: string;
39
+ url: string;
40
+ title: string;
41
+ description: string;
42
+ thumbnail: string;
43
+ startsAt: number;
44
+ endsAt?: number | undefined;
45
+ }>;
46
+ export declare const updateFeaturedVideoScheduleInputSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
47
+ id: import("zod").ZodString;
48
+ title: import("zod").ZodString;
49
+ description: import("zod").ZodString;
50
+ url: import("zod").ZodString;
51
+ thumbnail: import("zod").ZodString;
52
+ }, {
53
+ startsAt: import("zod").ZodNumber;
54
+ endsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
55
+ }>, "strip", import("zod").ZodTypeAny, {
56
+ id: string;
57
+ url: string;
58
+ title: string;
59
+ description: string;
60
+ thumbnail: string;
61
+ startsAt: number;
62
+ endsAt?: number | undefined;
63
+ }, {
64
+ id: string;
65
+ url: string;
66
+ title: string;
67
+ description: string;
68
+ thumbnail: string;
69
+ startsAt: number;
70
+ endsAt?: number | undefined;
71
+ }>;
72
+ export declare const featuredVideoScheduleSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
73
+ id: import("zod").ZodString;
74
+ title: import("zod").ZodString;
75
+ description: import("zod").ZodString;
76
+ url: import("zod").ZodString;
77
+ thumbnail: import("zod").ZodString;
78
+ }, {
79
+ scheduleId: import("zod").ZodString;
80
+ startsAt: import("zod").ZodNumber;
81
+ endsAt: import("zod").ZodNumber;
82
+ createdAt: import("zod").ZodNumber;
83
+ updatedAt: import("zod").ZodNumber;
84
+ isCanceled: import("zod").ZodBoolean;
85
+ canceledAt: import("zod").ZodOptional<import("zod").ZodNumber>;
86
+ }>, "strip", import("zod").ZodTypeAny, {
87
+ id: string;
88
+ url: string;
89
+ title: string;
90
+ description: string;
91
+ createdAt: number;
92
+ updatedAt: number;
93
+ thumbnail: string;
94
+ startsAt: number;
95
+ endsAt: number;
96
+ scheduleId: string;
97
+ isCanceled: boolean;
98
+ canceledAt?: number | undefined;
99
+ }, {
100
+ id: string;
101
+ url: string;
102
+ title: string;
103
+ description: string;
104
+ createdAt: number;
105
+ updatedAt: number;
106
+ thumbnail: string;
107
+ startsAt: number;
108
+ endsAt: number;
109
+ scheduleId: string;
110
+ isCanceled: boolean;
111
+ canceledAt?: number | undefined;
112
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.featuredVideoSchema = void 0;
3
+ exports.featuredVideoScheduleSchema = exports.updateFeaturedVideoScheduleInputSchema = exports.createFeaturedVideoScheduleInputSchema = exports.featuredVideoSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.featuredVideoSchema = (0, zod_1.object)({
6
6
  id: (0, zod_1.string)(),
@@ -9,3 +9,17 @@ exports.featuredVideoSchema = (0, zod_1.object)({
9
9
  url: (0, zod_1.string)(),
10
10
  thumbnail: (0, zod_1.string)(),
11
11
  });
12
+ exports.createFeaturedVideoScheduleInputSchema = exports.featuredVideoSchema.extend({
13
+ startsAt: (0, zod_1.number)(),
14
+ endsAt: (0, zod_1.number)().optional(),
15
+ });
16
+ exports.updateFeaturedVideoScheduleInputSchema = exports.createFeaturedVideoScheduleInputSchema;
17
+ exports.featuredVideoScheduleSchema = exports.featuredVideoSchema.extend({
18
+ scheduleId: (0, zod_1.string)(),
19
+ startsAt: (0, zod_1.number)(),
20
+ endsAt: (0, zod_1.number)(),
21
+ createdAt: (0, zod_1.number)(),
22
+ updatedAt: (0, zod_1.number)(),
23
+ isCanceled: (0, zod_1.boolean)(),
24
+ canceledAt: (0, zod_1.number)().optional(),
25
+ });
@@ -144,6 +144,7 @@ export declare const experienceRatingSchema: z.ZodObject<{
144
144
  createdAt: z.ZodNumber;
145
145
  rating: z.ZodNumber;
146
146
  comment: z.ZodOptional<z.ZodString>;
147
+ commentLanguage: z.ZodOptional<z.ZodString>;
147
148
  user: z.ZodObject<Pick<{
148
149
  id: z.ZodString;
149
150
  email: z.ZodString;
@@ -1484,6 +1485,7 @@ export declare const experienceRatingSchema: z.ZodObject<{
1484
1485
  ratingCount?: number | undefined;
1485
1486
  };
1486
1487
  }[] | undefined;
1488
+ commentLanguage?: string | undefined;
1487
1489
  }, {
1488
1490
  id: string;
1489
1491
  user: {
@@ -1530,6 +1532,7 @@ export declare const experienceRatingSchema: z.ZodObject<{
1530
1532
  ratingCount?: number | undefined;
1531
1533
  };
1532
1534
  }[] | undefined;
1535
+ commentLanguage?: string | undefined;
1533
1536
  }>;
1534
1537
  /**
1535
1538
  * Search/filter parameters for experience ratings
@@ -1582,6 +1585,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
1582
1585
  createdAt: z.ZodNumber;
1583
1586
  rating: z.ZodNumber;
1584
1587
  comment: z.ZodOptional<z.ZodString>;
1588
+ commentLanguage: z.ZodOptional<z.ZodString>;
1585
1589
  user: z.ZodObject<Pick<{
1586
1590
  id: z.ZodString;
1587
1591
  email: z.ZodString;
@@ -2974,6 +2978,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
2974
2978
  ratingCount?: number | undefined;
2975
2979
  };
2976
2980
  }[] | undefined;
2981
+ commentLanguage?: string | undefined;
2977
2982
  }, {
2978
2983
  id: string;
2979
2984
  user: {
@@ -3012,6 +3017,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
3012
3017
  ratingCount?: number | undefined;
3013
3018
  };
3014
3019
  }[] | undefined;
3020
+ commentLanguage?: string | undefined;
3015
3021
  }>;
3016
3022
  /**
3017
3023
  * Thread comment schema for experience ratings
@@ -37,6 +37,7 @@ exports.experienceRatingSchema = zod_1.z.object({
37
37
  createdAt: zod_1.z.number(),
38
38
  rating: zod_1.z.number(),
39
39
  comment: zod_1.z.string().optional(),
40
+ commentLanguage: zod_1.z.string().optional(),
40
41
  user: user_1.reducedUserSchema,
41
42
  experience: exports.experienceSchema,
42
43
  userLikes: zod_1.z.number().optional(),
@@ -3,6 +3,7 @@ export declare const listSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
5
  description: z.ZodOptional<z.ZodString>;
6
+ descriptionLanguage: z.ZodOptional<z.ZodString>;
6
7
  createdAt: z.ZodOptional<z.ZodNumber>;
7
8
  updatedAt: z.ZodOptional<z.ZodNumber>;
8
9
  user: z.ZodObject<Pick<{
@@ -1203,6 +1204,7 @@ export declare const listSchema: z.ZodObject<{
1203
1204
  createdAt?: number | undefined;
1204
1205
  updatedAt?: number | undefined;
1205
1206
  season?: string | undefined;
1207
+ descriptionLanguage?: string | undefined;
1206
1208
  likesCount?: number | undefined;
1207
1209
  }, {
1208
1210
  type: "rating" | "stadium" | "game" | "stadium-rating";
@@ -1222,12 +1224,14 @@ export declare const listSchema: z.ZodObject<{
1222
1224
  createdAt?: number | undefined;
1223
1225
  updatedAt?: number | undefined;
1224
1226
  season?: string | undefined;
1227
+ descriptionLanguage?: string | undefined;
1225
1228
  likesCount?: number | undefined;
1226
1229
  }>;
1227
1230
  export declare const listCreateSchema: z.ZodObject<Omit<{
1228
1231
  id: z.ZodString;
1229
1232
  name: z.ZodString;
1230
1233
  description: z.ZodOptional<z.ZodString>;
1234
+ descriptionLanguage: z.ZodOptional<z.ZodString>;
1231
1235
  createdAt: z.ZodOptional<z.ZodNumber>;
1232
1236
  updatedAt: z.ZodOptional<z.ZodNumber>;
1233
1237
  user: z.ZodObject<Pick<{
@@ -2425,6 +2429,7 @@ export declare const listCreateSchema: z.ZodObject<Omit<{
2425
2429
  description?: string | undefined;
2426
2430
  league?: string | undefined;
2427
2431
  season?: string | undefined;
2432
+ descriptionLanguage?: string | undefined;
2428
2433
  likesCount?: number | undefined;
2429
2434
  }, {
2430
2435
  type: "rating" | "stadium" | "game" | "stadium-rating";
@@ -2441,6 +2446,7 @@ export declare const listCreateSchema: z.ZodObject<Omit<{
2441
2446
  description?: string | undefined;
2442
2447
  league?: string | undefined;
2443
2448
  season?: string | undefined;
2449
+ descriptionLanguage?: string | undefined;
2444
2450
  likesCount?: number | undefined;
2445
2451
  }>;
2446
2452
  export declare const listCommentSchema: z.ZodObject<{
@@ -8,6 +8,7 @@ exports.listSchema = zod_1.z.object({
8
8
  id: zod_1.z.string(),
9
9
  name: zod_1.z.string(),
10
10
  description: zod_1.z.string().optional(),
11
+ descriptionLanguage: zod_1.z.string().optional(),
11
12
  createdAt: zod_1.z.number().optional(),
12
13
  updatedAt: zod_1.z.number().optional(),
13
14
  user: user_1.reducedUserSchema,
@@ -255,6 +255,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
255
255
  createdAt: z.ZodNumber;
256
256
  rating: z.ZodNumber;
257
257
  comment: z.ZodOptional<z.ZodString>;
258
+ commentLanguage: z.ZodOptional<z.ZodString>;
258
259
  user: z.ZodObject<Pick<{
259
260
  id: z.ZodString;
260
261
  email: z.ZodString;
@@ -1922,6 +1923,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
1922
1923
  ratingCount?: number | undefined;
1923
1924
  };
1924
1925
  }[] | undefined;
1926
+ commentLanguage?: string | undefined;
1925
1927
  gamesAttended?: number | undefined;
1926
1928
  }, {
1927
1929
  type: "stadium" | "game";
@@ -2028,6 +2030,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
2028
2030
  ratingCount?: number | undefined;
2029
2031
  };
2030
2032
  }[] | undefined;
2033
+ commentLanguage?: string | undefined;
2031
2034
  gamesAttended?: number | undefined;
2032
2035
  }>;
2033
2036
  export declare const searchStadiumRatingSchema: z.ZodObject<{
@@ -2084,6 +2087,7 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
2084
2087
  createdAt: z.ZodNumber;
2085
2088
  rating: z.ZodNumber;
2086
2089
  comment: z.ZodOptional<z.ZodString>;
2090
+ commentLanguage: z.ZodOptional<z.ZodString>;
2087
2091
  user: z.ZodObject<Pick<{
2088
2092
  id: z.ZodString;
2089
2093
  email: z.ZodString;
@@ -3850,6 +3854,7 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
3850
3854
  ratingCount?: number | undefined;
3851
3855
  };
3852
3856
  }[] | undefined;
3857
+ commentLanguage?: string | undefined;
3853
3858
  gamesAttended?: number | undefined;
3854
3859
  }, {
3855
3860
  type: "stadium" | "game";
@@ -3948,6 +3953,7 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
3948
3953
  ratingCount?: number | undefined;
3949
3954
  };
3950
3955
  }[] | undefined;
3956
+ commentLanguage?: string | undefined;
3951
3957
  gamesAttended?: number | undefined;
3952
3958
  }>;
3953
3959
  export declare const stadiumThreadCommentSchema: z.ZodObject<{
@@ -59,6 +59,7 @@ exports.stadiumRatingSchema = zod_1.z.object({
59
59
  createdAt: zod_1.z.number(),
60
60
  rating: zod_1.z.number(),
61
61
  comment: zod_1.z.string().optional(),
62
+ commentLanguage: zod_1.z.string().optional(),
62
63
  user: user_1.reducedUserSchema,
63
64
  stadium: exports.stadiumSchema,
64
65
  gamesAttended: zod_1.z.number().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.413",
3
+ "version": "1.1.415",
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",