@sportsbroker/firebase-structure 6.1.0 → 6.2.0

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.
@@ -5,6 +5,8 @@ import type { ISODate, UUID } from "../common";
5
5
  export type Bet = {
6
6
  id: string;
7
7
  userId: UUID;
8
+ poolId: UUID;
9
+ fixtureKickOffTime: ISODate;
8
10
  engine: GameEngineEnum;
9
11
  questionSetId: UUID;
10
12
  status: BetStatusEnum;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuestionResultTypeEnum = exports.YesNoResultEnum = exports.MatchSideResultEnum = exports.QuestionKeyEnum = exports.GameEngineEnum = void 0;
4
- var GameEngineEnum;
5
- (function (GameEngineEnum) {
6
- GameEngineEnum["MATCH_PREDICTOR"] = "match-predictor";
7
- GameEngineEnum["EDGE"] = "edge";
8
- })(GameEngineEnum = exports.GameEngineEnum || (exports.GameEngineEnum = {}));
9
- var QuestionKeyEnum;
10
- (function (QuestionKeyEnum) {
11
- QuestionKeyEnum["MATCH_SCORE"] = "match-score";
12
- QuestionKeyEnum["TOTAL_SHOTS_ON_TARGET"] = "total-shots-on-target";
13
- QuestionKeyEnum["TOTAL_CARDS"] = "total-cards";
14
- // MATCH_RESULT = 'match-result',
15
- QuestionKeyEnum["RED_CARD_IS_GIVEN"] = "red-card-is-given";
16
- QuestionKeyEnum["PENALTY_AWARDED"] = "penalty-awarded";
17
- // BOTH_TEAM_SCORE = 'both-team-score',
18
- // GOAL_IN_BOTH_HALVES = 'goal-in-both-halves',
19
- QuestionKeyEnum["GOAL_IN_FIRST_15"] = "goal-in-first-15";
20
- QuestionKeyEnum["MOST_TACKLES_WON"] = "most-tackles-won";
21
- QuestionKeyEnum["CORNERS_10_OR_MORE"] = "corners-10-or-more";
22
- })(QuestionKeyEnum = exports.QuestionKeyEnum || (exports.QuestionKeyEnum = {}));
23
- var MatchSideResultEnum;
24
- (function (MatchSideResultEnum) {
25
- MatchSideResultEnum["HOME"] = "home";
26
- MatchSideResultEnum["AWAY"] = "away";
27
- MatchSideResultEnum["DRAW"] = "draw";
28
- })(MatchSideResultEnum = exports.MatchSideResultEnum || (exports.MatchSideResultEnum = {}));
29
- var YesNoResultEnum;
30
- (function (YesNoResultEnum) {
31
- YesNoResultEnum["YES"] = "yes";
32
- YesNoResultEnum["NO"] = "no";
33
- })(YesNoResultEnum = exports.YesNoResultEnum || (exports.YesNoResultEnum = {}));
34
- var QuestionResultTypeEnum;
35
- (function (QuestionResultTypeEnum) {
36
- QuestionResultTypeEnum["BOTH_SIDES_POSITIVE_INTEGER"] = "both-sides-positive-integer";
37
- QuestionResultTypeEnum["POSITIVE_INTEGER"] = "positive-integer";
38
- QuestionResultTypeEnum["MATCH_SIDE_RESULT"] = "match-side-result";
39
- QuestionResultTypeEnum["YES_NO"] = "yes-no";
40
- })(QuestionResultTypeEnum = exports.QuestionResultTypeEnum || (exports.QuestionResultTypeEnum = {}));
41
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./bet-events.model"), exports);
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.YesNoResultEnum = exports.MatchSideResultEnum = exports.BetStatusEnum = void 0;
4
- var BetStatusEnum;
5
- (function (BetStatusEnum) {
6
- BetStatusEnum["OPEN"] = "open";
7
- BetStatusEnum["PENDING"] = "pending";
8
- BetStatusEnum["WON"] = "won";
9
- BetStatusEnum["LOST"] = "lost";
10
- BetStatusEnum["CANCELLED"] = "cancelled";
11
- BetStatusEnum["LOCKED"] = "locked";
12
- })(BetStatusEnum = exports.BetStatusEnum || (exports.BetStatusEnum = {}));
13
- var MatchSideResultEnum;
14
- (function (MatchSideResultEnum) {
15
- MatchSideResultEnum["HOME"] = "home";
16
- MatchSideResultEnum["AWAY"] = "away";
17
- MatchSideResultEnum["DRAW"] = "draw";
18
- })(MatchSideResultEnum = exports.MatchSideResultEnum || (exports.MatchSideResultEnum = {}));
19
- var YesNoResultEnum;
20
- (function (YesNoResultEnum) {
21
- YesNoResultEnum["YES"] = "yes";
22
- YesNoResultEnum["NO"] = "no";
23
- })(YesNoResultEnum = exports.YesNoResultEnum || (exports.YesNoResultEnum = {}));
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./bets.model"), exports);
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InGameEventKey = exports.QuestionTypeEnum = void 0;
4
- var QuestionTypeEnum;
5
- (function (QuestionTypeEnum) {
6
- QuestionTypeEnum["OCCURRENCE_COUNT_FOR_SIDES"] = "occurrence-count-for-sides";
7
- QuestionTypeEnum["MOST_OCCURRENCE_RESULT"] = "most-occurrence-result";
8
- QuestionTypeEnum["TOTAL_OCCURRENCE_COUNT"] = "total-occurrence-count";
9
- QuestionTypeEnum["OCCURRED_OR_NOT"] = "occurred-or-not";
10
- })(QuestionTypeEnum = exports.QuestionTypeEnum || (exports.QuestionTypeEnum = {}));
11
- var InGameEventKey;
12
- (function (InGameEventKey) {
13
- InGameEventKey["SCORE"] = "score";
14
- InGameEventKey["GOAL"] = "goal";
15
- InGameEventKey["CORNERS"] = "corners";
16
- InGameEventKey["CORNERS_TOTAL"] = "corners_total";
17
- InGameEventKey["CORNERS_10_OR_MORE"] = "corners_10_or_more";
18
- InGameEventKey["RED_CARD"] = "red_card";
19
- InGameEventKey["RED_CARD_TOTAL"] = "red_card_total";
20
- InGameEventKey["YELLOW_CARD"] = "yellow_card";
21
- InGameEventKey["YELLOW_CARD_TOTAL"] = "yellow_card_total";
22
- InGameEventKey["TOTAL_CARDS"] = "total_cards";
23
- InGameEventKey["PENALTY"] = "penalty";
24
- InGameEventKey["TOTAL_GOALS"] = "total_goals";
25
- InGameEventKey["SHOTS_ON_TARGET"] = "shots_on_target";
26
- InGameEventKey["SHOTS_TOTAL"] = "shots_total";
27
- InGameEventKey["TACKLES"] = "tackles";
28
- InGameEventKey["TACKLES_TOTAL"] = "tackles_total";
29
- InGameEventKey["GOAL_IN_FIRST_15"] = "goal_in_first_15";
30
- InGameEventKey["OFFSIDES"] = "offsides";
31
- InGameEventKey["OFFSIDES_TOTAL"] = "offsides_total";
32
- InGameEventKey["FOULS"] = "fouls";
33
- InGameEventKey["FOULS_TOTAL"] = "fouls_total";
34
- InGameEventKey["POSSESSION"] = "possession";
35
- InGameEventKey["SAVES"] = "saves";
36
- InGameEventKey["SAVES_TOTAL"] = "saves_total";
37
- })(InGameEventKey = exports.InGameEventKey || (exports.InGameEventKey = {}));
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./events.model"), exports);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./fixtures.model"), exports);
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./leaderboard"), exports);
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./match-common"), exports);
18
- __exportStar(require("./match"), exports);
19
- __exportStar(require("./match-commentary"), exports);
20
- __exportStar(require("./match-event"), exports);
21
- __exportStar(require("./match-h2h-stats"), exports);
22
- __exportStar(require("./match-lineup"), exports);
23
- __exportStar(require("./match-stats"), exports);
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./pools.model"), exports);
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrizeDistributionStrategyEnum = void 0;
4
- var PrizeDistributionStrategyEnum;
5
- (function (PrizeDistributionStrategyEnum) {
6
- PrizeDistributionStrategyEnum["WINNER_TAKES_ALL"] = "winner-takes-all";
7
- PrizeDistributionStrategyEnum["TOP_3"] = "top-3";
8
- PrizeDistributionStrategyEnum["TOP_5"] = "top-5";
9
- })(PrizeDistributionStrategyEnum = exports.PrizeDistributionStrategyEnum || (exports.PrizeDistributionStrategyEnum = {}));
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./question-sets.model"), exports);
18
- __exportStar(require("./question.model"), exports);
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuestionSetStatusEnum = void 0;
4
- var QuestionSetStatusEnum;
5
- (function (QuestionSetStatusEnum) {
6
- QuestionSetStatusEnum["DRAFT"] = "draft";
7
- QuestionSetStatusEnum["PUBLISHED"] = "published";
8
- QuestionSetStatusEnum["ARCHIVED"] = "archived";
9
- })(QuestionSetStatusEnum = exports.QuestionSetStatusEnum || (exports.QuestionSetStatusEnum = {}));
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./score-predictor"), exports);
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./teams"), exports);
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./user"), exports);
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./onboarding"), exports);
18
- __exportStar(require("./tournament-sort-order"), exports);
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./cms"), exports);