rategame-shared 1.0.7 → 1.0.9

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,21 +1,21 @@
1
1
  export declare const ratingSchema: import("zod").ZodObject<{
2
2
  id: import("zod").ZodString;
3
3
  comment: import("zod").ZodString;
4
- gameId: import("zod").ZodString;
5
4
  createdAt: import("zod").ZodNumber;
6
5
  rating: import("zod").ZodNumber;
7
6
  user: import("zod").ZodObject<{
8
- id: import("zod").ZodRecord<import("zod").ZodNumber, import("zod").ZodNumber>;
7
+ id: import("zod").ZodString;
9
8
  username: import("zod").ZodNumber;
10
9
  }, "strip", import("zod").ZodTypeAny, {
11
- id: Record<number, number>;
10
+ id: string;
12
11
  username: number;
13
12
  }, {
14
- id: Record<number, number>;
13
+ id: string;
15
14
  username: number;
16
15
  }>;
17
16
  round: import("zod").ZodNumber;
18
17
  game: import("zod").ZodObject<{
18
+ id: import("zod").ZodString;
19
19
  homeTeam: import("zod").ZodObject<{
20
20
  id: import("zod").ZodOptional<import("zod").ZodString>;
21
21
  teamId: import("zod").ZodNumber;
@@ -61,6 +61,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
61
61
  isWinner?: boolean | undefined;
62
62
  }>;
63
63
  }, "strip", import("zod").ZodTypeAny, {
64
+ id: string;
64
65
  homeTeam: {
65
66
  image: string;
66
67
  teamId: number;
@@ -78,6 +79,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
78
79
  isWinner?: boolean | undefined;
79
80
  };
80
81
  }, {
82
+ id: string;
81
83
  homeTeam: {
82
84
  image: string;
83
85
  teamId: number;
@@ -99,14 +101,14 @@ export declare const ratingSchema: import("zod").ZodObject<{
99
101
  id: string;
100
102
  round: number;
101
103
  user: {
102
- id: Record<number, number>;
104
+ id: string;
103
105
  username: number;
104
106
  };
105
107
  createdAt: number;
106
- gameId: string;
107
108
  rating: number;
108
109
  comment: string;
109
110
  game: {
111
+ id: string;
110
112
  homeTeam: {
111
113
  image: string;
112
114
  teamId: number;
@@ -128,14 +130,14 @@ export declare const ratingSchema: import("zod").ZodObject<{
128
130
  id: string;
129
131
  round: number;
130
132
  user: {
131
- id: Record<number, number>;
133
+ id: string;
132
134
  username: number;
133
135
  };
134
136
  createdAt: number;
135
- gameId: string;
136
137
  rating: number;
137
138
  comment: string;
138
139
  game: {
140
+ id: string;
139
141
  homeTeam: {
140
142
  image: string;
141
143
  teamId: number;
@@ -6,15 +6,15 @@ const game_1 = require("./game");
6
6
  exports.ratingSchema = (0, zod_1.object)({
7
7
  id: (0, zod_1.string)(),
8
8
  comment: (0, zod_1.string)(),
9
- gameId: (0, zod_1.string)(),
10
9
  createdAt: (0, zod_1.number)(),
11
10
  rating: (0, zod_1.number)(),
12
11
  user: (0, zod_1.object)({
13
- id: (0, zod_1.record)((0, zod_1.number)(), (0, zod_1.number)()),
12
+ id: (0, zod_1.string)(),
14
13
  username: (0, zod_1.number)(),
15
14
  }),
16
15
  round: (0, zod_1.number)(),
17
16
  game: (0, zod_1.object)({
17
+ id: (0, zod_1.string)(),
18
18
  homeTeam: game_1.gameTeamSchema,
19
19
  awayTeam: game_1.gameTeamSchema,
20
20
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
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",