volleyballsimtypes 0.0.130 → 0.0.131

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,8 @@
1
1
  import { Match, MatchTeam } from '.';
2
- import { _CompetitionType } from '../competition';
2
+ import { CompetitionType } from '../../data';
3
3
  interface MatchRatingOpts {
4
4
  readonly match: Match;
5
- readonly competitionType: _CompetitionType;
5
+ readonly competitionType: CompetitionType;
6
6
  }
7
7
  interface SetScoreVariant {
8
8
  '3-0': number;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MatchRating = void 0;
4
4
  const _1 = require(".");
5
- const competition_1 = require("../competition");
6
5
  class MatchRating {
7
6
  constructor({ match, competitionType }) {
8
7
  this.match = match;
@@ -61,6 +60,6 @@ MatchRating.C3 = 0;
61
60
  MatchRating.C4 = 0.394;
62
61
  MatchRating.C5 = 1.060;
63
62
  MatchRating.MWF = {
64
- [competition_1._CompetitionType.TOURNAMENT]: 50,
65
- [competition_1._CompetitionType.LEAGUE]: 35
63
+ TOURNAMENT: 50,
64
+ LEAGUE: 35
66
65
  };
@@ -1,8 +1,8 @@
1
1
  import { Match, MatchTeam } from '.';
2
- import { _CompetitionType } from '../competition';
2
+ import { CompetitionType } from '../../data';
3
3
  interface MatchRatingOpts {
4
4
  readonly match: Match;
5
- readonly competitionType: _CompetitionType;
5
+ readonly competitionType: CompetitionType;
6
6
  }
7
7
  interface SetScoreVariant {
8
8
  '3-0': number;
@@ -1,5 +1,4 @@
1
1
  import { MatchScore } from '.';
2
- import { _CompetitionType } from '../competition';
3
2
  export class MatchRating {
4
3
  constructor({ match, competitionType }) {
5
4
  this.match = match;
@@ -57,6 +56,6 @@ MatchRating.C3 = 0;
57
56
  MatchRating.C4 = 0.394;
58
57
  MatchRating.C5 = 1.060;
59
58
  MatchRating.MWF = {
60
- [_CompetitionType.TOURNAMENT]: 50,
61
- [_CompetitionType.LEAGUE]: 35
59
+ TOURNAMENT: 50,
60
+ LEAGUE: 35
62
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volleyballsimtypes",
3
- "version": "0.0.130",
3
+ "version": "0.0.131",
4
4
  "description": "vbsim types",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",