@sportsbroker/firebase-structure 3.55.6 → 3.55.7

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,8 +1,2 @@
1
1
  export * from "./common";
2
2
  export * from "./user-status";
3
- export * from "./match";
4
- export * from "./match-commentary";
5
- export * from "./match-event";
6
- export * from "./match-h2h-stats";
7
- export * from "./match-lineup";
8
- export * from "./match-stats";
@@ -0,0 +1,6 @@
1
+ export * from "./match";
2
+ export * from "./match-commentary";
3
+ export * from "./match-event";
4
+ export * from "./match-h2h-stats";
5
+ export * from "./match-lineup";
6
+ export * from "./match-stats";
@@ -1,13 +1,13 @@
1
- import { ISODate, UUID, Image, Doc, Sport } from "./common";
1
+ import { ISODate, UUID, Image, Doc, Sport } from "./../common";
2
2
  import { MatchCommentary } from "./match-commentary";
3
3
  import { MatchEvent } from "./match-event";
4
4
  import { MatchHeadToHeadStats } from "./match-h2h-stats";
5
5
  import { MatchLineup } from "./match-lineup";
6
6
  import { MatchStats } from "./match-stats";
7
7
 
8
- export type MatchDoc = MatchData & Doc;
8
+ export type MatchDoc = Match & Doc;
9
9
 
10
- export type MatchData = {
10
+ export type Match = {
11
11
  matchId: UUID;
12
12
  sport: Sport;
13
13
  startDate: ISODate;
@@ -0,0 +1 @@
1
+ export * from "./teams";
@@ -0,0 +1,21 @@
1
+ import { Doc, Sport, UUID } from "../common";
2
+
3
+ export type TeamDoc = Team & Doc;
4
+
5
+ export interface Team {
6
+ teamId: UUID;
7
+ officialName: string;
8
+ code: string;
9
+ logo: string;
10
+ sport: Sport;
11
+ type: TeamType;
12
+ seasons: UUID[];
13
+ tradingData: TradingData;
14
+ }
15
+
16
+ export type TeamType = "national" | "club";
17
+
18
+ export type TradingData = {
19
+ sharePrice: number;
20
+ sharesVolume: number;
21
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.55.6",
3
+ "version": "3.55.7",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {