@sportsbroker/firebase-structure 3.5.2 → 3.7.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.
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
package/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/firebase-structure.iml" filepath="$PROJECT_DIR$/.idea/firebase-structure.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="c25c12c1-92cf-4b48-9665-ce4aa95c492f" name="Default Changelist" comment="" />
5
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
+ <option name="SHOW_DIALOG" value="false" />
7
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
8
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
9
+ <option name="LAST_RESOLUTION" value="IGNORE" />
10
+ </component>
11
+ <component name="ComposerSettings">
12
+ <execution>
13
+ <executable />
14
+ </execution>
15
+ </component>
16
+ <component name="Git.Settings">
17
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
18
+ </component>
19
+ <component name="ProjectId" id="1WnqFegWJM8ozCn5pZGzULxnYew" />
20
+ <component name="PropertiesComponent">
21
+ <property name="WebServerToolWindowFactoryState" value="false" />
22
+ <property name="ts.external.directory.path" value="$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external" />
23
+ </component>
24
+ <component name="RunDashboard">
25
+ <option name="ruleStates">
26
+ <list>
27
+ <RuleState>
28
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
29
+ </RuleState>
30
+ <RuleState>
31
+ <option name="name" value="StatusDashboardGroupingRule" />
32
+ </RuleState>
33
+ </list>
34
+ </option>
35
+ </component>
36
+ <component name="SvnConfiguration">
37
+ <configuration />
38
+ </component>
39
+ <component name="TaskManager">
40
+ <task active="true" id="Default" summary="Default task">
41
+ <changelist id="c25c12c1-92cf-4b48-9665-ce4aa95c492f" name="Default Changelist" comment="" />
42
+ <created>1579795603272</created>
43
+ <option name="number" value="Default" />
44
+ <option name="presentableId" value="Default" />
45
+ <updated>1579795603272</updated>
46
+ <workItem from="1579795605208" duration="2230000" />
47
+ <workItem from="1579855537949" duration="3926000" />
48
+ <workItem from="1580116455639" duration="1416000" />
49
+ <workItem from="1580203699571" duration="4292000" />
50
+ </task>
51
+ <servers />
52
+ </component>
53
+ <component name="TypeScriptGeneratedFilesManager">
54
+ <option name="version" value="1" />
55
+ </component>
56
+ <component name="Vcs.Log.Tabs.Properties">
57
+ <option name="TAB_STATES">
58
+ <map>
59
+ <entry key="MAIN">
60
+ <value>
61
+ <State>
62
+ <option name="COLUMN_ORDER" />
63
+ </State>
64
+ </value>
65
+ </entry>
66
+ </map>
67
+ </option>
68
+ </component>
69
+ </project>
@@ -1,25 +1,42 @@
1
- export type StatsType =
2
- | "possession"
3
- | "shotsOnTarget"
4
- | "clearances"
5
- | "corners"
6
- | "offsides"
7
- | "passes"
8
- | "penalties"
9
- | "shots"
10
- | "tackles"
11
- | "touches"
12
- | "yellowCards"
13
- | "redCards"
14
- | "foulsConceded";
15
-
16
- interface TeamsStats {
1
+ export interface TeamsStats {
17
2
  home: number;
18
3
  away: number;
19
4
  }
20
5
 
6
+ export interface MatchStats {
7
+ possession: TeamsStats,
8
+ attackingThirdPossession: TeamsStats,
9
+ ownThirdPossession: TeamsStats,
10
+ shotsOnTarget: TeamsStats,
11
+ shotsOffTarget: TeamsStats,
12
+ clearances: TeamsStats,
13
+ corners: TeamsStats,
14
+ offsides: TeamsStats,
15
+ passes: TeamsStats,
16
+ interceptions: TeamsStats,
17
+ penalties: TeamsStats,
18
+ shots: TeamsStats,
19
+ ownGoals: TeamsStats,
20
+ saves: TeamsStats,
21
+ freeKickAwarded: TeamsStats,
22
+ freeKickConceded: TeamsStats,
23
+ crossBlocked: TeamsStats,
24
+ tackles: TeamsStats,
25
+ touches: TeamsStats,
26
+ yellowCards: TeamsStats,
27
+ redCards: TeamsStats,
28
+ foulsConceded: TeamsStats,
29
+ groundDuelsWon: TeamsStats,
30
+ aerialDuelsWon: TeamsStats,
31
+ punches: TeamsStats,
32
+ cornerKicks: TeamsStats,
33
+ successfulPasses: TeamsStats,
34
+ successfulCrosses: TeamsStats,
35
+ unsuccessfulPasses: TeamsStats,
36
+ }
37
+
21
38
  export interface Stats {
22
39
  [sportID: string]: {
23
- [matchID: string]: Record<StatsType, TeamsStats>
40
+ [matchID: string]: MatchStats
24
41
  };
25
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.5.2",
3
+ "version": "3.7.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {