rategame-shared 1.1.322 → 1.1.323

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,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { pickSchema, miniPickSchema, pickSubmissionDtoSchema, pickSubmissionResponseDtoSchema, pickUpdateDtoSchema, gamePickStatsResponseDtoSchema, userPickResponseDtoSchema, userPicksLeagueStatsSchema, userPicksStatsResponseDtoSchema, userPicksTeamStatsSchema, userPicksByTeamResponseDtoSchema, gamePickUsersResponseDtoSchema, gamePickUsersPaginatedResponseDtoSchema } from "../schemas/pick";
2
+ import { pickSchema, miniPickSchema, pickSubmissionDtoSchema, pickSubmissionResponseDtoSchema, pickUpdateDtoSchema, pickDeleteResponseDtoSchema, gamePickStatsResponseDtoSchema, userPickResponseDtoSchema, userPicksLeagueStatsSchema, userPicksStatsResponseDtoSchema, userPicksTeamStatsSchema, userPicksByTeamResponseDtoSchema, gamePickUsersResponseDtoSchema, gamePickUsersPaginatedResponseDtoSchema } from "../schemas/pick";
3
3
  export type Pick = z.infer<typeof pickSchema>;
4
4
  export type MiniPick = z.infer<typeof miniPickSchema>;
5
5
  export type PickSubmissionDto = z.infer<typeof pickSubmissionDtoSchema>;
@@ -13,3 +13,4 @@ export type UserPicksTeamStats = z.infer<typeof userPicksTeamStatsSchema>;
13
13
  export type UserPicksByTeamResponseDto = z.infer<typeof userPicksByTeamResponseDtoSchema>;
14
14
  export type GamePickUsersResponseDto = z.infer<typeof gamePickUsersResponseDtoSchema>;
15
15
  export type GamePickUsersPaginatedResponseDto = z.infer<typeof gamePickUsersPaginatedResponseDtoSchema>;
16
+ export type PickDeleteResponseDto = z.infer<typeof pickDeleteResponseDtoSchema>;
@@ -64818,3 +64818,13 @@ export declare const gamePickUsersPaginatedResponseDtoSchema: z.ZodObject<{
64818
64818
  nextCursor: string | null;
64819
64819
  hasMore: boolean;
64820
64820
  }>;
64821
+ export declare const pickDeleteResponseDtoSchema: z.ZodObject<{
64822
+ success: z.ZodBoolean;
64823
+ message: z.ZodOptional<z.ZodString>;
64824
+ }, "strip", z.ZodTypeAny, {
64825
+ success: boolean;
64826
+ message?: string | undefined;
64827
+ }, {
64828
+ success: boolean;
64829
+ message?: string | undefined;
64830
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.gamePickUsersPaginatedResponseDtoSchema = exports.gamePickUsersResponseDtoSchema = exports.userPicksByTeamResponseDtoSchema = exports.userPicksTeamStatsSchema = exports.userPicksStatsResponseDtoSchema = exports.userPicksLeagueStatsSchema = exports.userPickResponseDtoSchema = exports.gamePickStatsResponseDtoSchema = exports.pickUpdateDtoSchema = exports.pickSubmissionResponseDtoSchema = exports.pickSubmissionDtoSchema = exports.miniPickSchema = exports.pickSchema = void 0;
3
+ exports.pickDeleteResponseDtoSchema = exports.gamePickUsersPaginatedResponseDtoSchema = exports.gamePickUsersResponseDtoSchema = exports.userPicksByTeamResponseDtoSchema = exports.userPicksTeamStatsSchema = exports.userPicksStatsResponseDtoSchema = exports.userPicksLeagueStatsSchema = exports.userPickResponseDtoSchema = exports.gamePickStatsResponseDtoSchema = exports.pickUpdateDtoSchema = exports.pickSubmissionResponseDtoSchema = exports.pickSubmissionDtoSchema = exports.miniPickSchema = exports.pickSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const sharedTypes_1 = require("./sharedTypes");
6
6
  const user_1 = require("./user");
@@ -101,3 +101,8 @@ exports.gamePickUsersPaginatedResponseDtoSchema = zod_1.z.object({
101
101
  nextCursor: zod_1.z.string().nullable(),
102
102
  hasMore: zod_1.z.boolean(),
103
103
  });
104
+ // Pick delete response DTO
105
+ exports.pickDeleteResponseDtoSchema = zod_1.z.object({
106
+ success: zod_1.z.boolean(),
107
+ message: zod_1.z.string().optional(),
108
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.322",
3
+ "version": "1.1.323",
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",