@pluto-khronos/types 0.2.2 → 0.2.3

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 CHANGED
@@ -1,5 +1,6 @@
1
- export * from './schemas/colors';
2
- export * from './schemas/sports';
1
+ export * from './schemas/betting';
3
2
  export * from './schemas/channels';
3
+ export * from './schemas/colors';
4
4
  export * from './schemas/guilds';
5
5
  export * from './schemas/shared';
6
+ export * from './schemas/sports';
package/dist/index.js CHANGED
@@ -15,8 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // Export all schemas and types
18
- __exportStar(require("./schemas/colors"), exports);
19
- __exportStar(require("./schemas/sports"), exports);
18
+ __exportStar(require("./schemas/betting"), exports);
20
19
  __exportStar(require("./schemas/channels"), exports);
20
+ __exportStar(require("./schemas/colors"), exports);
21
21
  __exportStar(require("./schemas/guilds"), exports);
22
22
  __exportStar(require("./schemas/shared"), exports);
23
+ __exportStar(require("./schemas/sports"), exports);
@@ -13,3 +13,29 @@ export declare const matchOddsSchema: z.ZodObject<{
13
13
  away_team_odds: z.ZodNumber;
14
14
  }, z.core.$strip>;
15
15
  export type MatchOdds = z.infer<typeof matchOddsSchema>;
16
+ /**
17
+ * Schema for a pushed bet result (tie game refund)
18
+ * @group Betting
19
+ */
20
+ export declare const betslipPushSchema: z.ZodObject<{
21
+ userid: z.ZodString;
22
+ amount: z.ZodNumber;
23
+ betid: z.ZodNumber;
24
+ team: z.ZodString;
25
+ }, z.core.$strip>;
26
+ export type IBetslipPush = z.infer<typeof betslipPushSchema>;
27
+ /**
28
+ * Schema for bet result notification payload
29
+ * @group Betting
30
+ */
31
+ export declare const notificationBetResultsSchema: z.ZodObject<{
32
+ winners: z.ZodNullable<z.ZodArray<z.ZodAny>>;
33
+ losers: z.ZodArray<z.ZodAny>;
34
+ pushes: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ userid: z.ZodString;
36
+ amount: z.ZodNumber;
37
+ betid: z.ZodNumber;
38
+ team: z.ZodString;
39
+ }, z.core.$strip>>>;
40
+ }, z.core.$strip>;
41
+ export type INotificationBetResults = z.infer<typeof notificationBetResultsSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.matchOddsSchema = void 0;
3
+ exports.notificationBetResultsSchema = exports.betslipPushSchema = exports.matchOddsSchema = void 0;
4
4
  /**
5
5
  * @group Betting
6
6
  * Schemas for betting and odds-related data
@@ -17,3 +17,29 @@ exports.matchOddsSchema = zod_1.z
17
17
  away_team_odds: zod_1.z.number().describe('Betting odds for away team'),
18
18
  })
19
19
  .describe('Match betting odds information');
20
+ /**
21
+ * Schema for a pushed bet result (tie game refund)
22
+ * @group Betting
23
+ */
24
+ exports.betslipPushSchema = zod_1.z
25
+ .object({
26
+ userid: zod_1.z.string().describe('User ID who placed the bet'),
27
+ amount: zod_1.z.number().describe('Amount refunded to user'),
28
+ betid: zod_1.z.number().describe('Unique bet identifier'),
29
+ team: zod_1.z.string().describe('Team the user bet on'),
30
+ })
31
+ .describe('Information about a bet that was pushed due to a tie game');
32
+ /**
33
+ * Schema for bet result notification payload
34
+ * @group Betting
35
+ */
36
+ exports.notificationBetResultsSchema = zod_1.z
37
+ .object({
38
+ winners: zod_1.z.array(zod_1.z.any()).nullable().describe('Array of winning bets'),
39
+ losers: zod_1.z.array(zod_1.z.any()).describe('Array of losing bets'),
40
+ pushes: zod_1.z
41
+ .array(exports.betslipPushSchema)
42
+ .optional()
43
+ .describe('Array of pushed bets from tie games'),
44
+ })
45
+ .describe('Notification payload for bet results including pushes from ties');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluto-khronos/types",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Shared TypeScript types for Pluto & Khronos projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",