volleyballsimtypes 0.0.148 → 0.0.150
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/cjs/src/data/common/index.d.ts +1 -0
- package/dist/cjs/src/data/common/index.js +17 -0
- package/dist/cjs/src/data/index.d.ts +1 -0
- package/dist/cjs/src/data/index.js +1 -0
- package/dist/cjs/src/data/models/competition.d.ts +1 -1
- package/dist/cjs/src/data/models/competition.js +2 -2
- package/dist/cjs/src/data/models/match.d.ts +1 -1
- package/dist/cjs/src/data/models/match.js +2 -2
- package/dist/cjs/src/data/transformers/set-position.d.ts +2 -2
- package/dist/cjs/src/service/competition/season.d.ts +1 -1
- package/dist/cjs/src/service/competition/tournament.d.ts +1 -1
- package/dist/cjs/src/service/match/match.d.ts +1 -1
- package/dist/cjs/src/service/match/match.js +2 -2
- package/dist/esm/src/data/common/index.d.ts +1 -0
- package/dist/esm/src/data/common/index.js +1 -0
- package/dist/esm/src/data/index.d.ts +1 -0
- package/dist/esm/src/data/index.js +1 -0
- package/dist/esm/src/data/models/competition.d.ts +1 -1
- package/dist/esm/src/data/models/competition.js +1 -1
- package/dist/esm/src/data/models/match.d.ts +1 -1
- package/dist/esm/src/data/models/match.js +1 -1
- package/dist/esm/src/data/transformers/set-position.d.ts +2 -2
- package/dist/esm/src/service/competition/season.d.ts +1 -1
- package/dist/esm/src/service/competition/tournament.d.ts +1 -1
- package/dist/esm/src/service/match/match.d.ts +1 -1
- package/dist/esm/src/service/match/match.js +1 -1
- package/package.json +1 -1
- /package/dist/cjs/src/{common → data/common}/status.d.ts +0 -0
- /package/dist/cjs/src/{common → data/common}/status.js +0 -0
- /package/dist/esm/src/{common → data/common}/status.d.ts +0 -0
- /package/dist/esm/src/{common → data/common}/status.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './status';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./status"), exports);
|
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.initModels = void 0;
|
|
18
18
|
__exportStar(require("./models"), exports);
|
|
19
19
|
__exportStar(require("./transformers"), exports);
|
|
20
|
+
__exportStar(require("./common"), exports);
|
|
20
21
|
var init_models_1 = require("./init-models");
|
|
21
22
|
Object.defineProperty(exports, "initModels", { enumerable: true, get: function () { return init_models_1.initModels; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
3
|
import { CompetitionChampionAttributes, CompetitionChampionId, CompetitionChampionModel, CompetitionMatchAttributes, CompetitionMatchId, CompetitionMatchModel, CompetitionTeamsAttributes, CompetitionTeamsId, CompetitionTeamsModel, IterationId, IterationModel, LeagueSeasonAttributes, LeagueSeasonId, LeagueSeasonModel, TeamId, TeamModel } from '.';
|
|
4
|
-
import { Status } from '
|
|
4
|
+
import { Status } from '../common';
|
|
5
5
|
export interface CompetitionAttributes {
|
|
6
6
|
competition_id: string;
|
|
7
7
|
iteration: number;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CompetitionModel = void 0;
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
|
-
const
|
|
5
|
+
const common_1 = require("../common");
|
|
6
6
|
class CompetitionModel extends sequelize_1.Model {
|
|
7
7
|
static initModel(sequelize) {
|
|
8
8
|
return CompetitionModel.init({
|
|
@@ -24,7 +24,7 @@ class CompetitionModel extends sequelize_1.Model {
|
|
|
24
24
|
allowNull: false
|
|
25
25
|
},
|
|
26
26
|
status: {
|
|
27
|
-
type:
|
|
27
|
+
type: common_1.StatusDataType,
|
|
28
28
|
allowNull: false,
|
|
29
29
|
defaultValue: 'PENDING'
|
|
30
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
3
|
import { CompetitionMatchId, CompetitionMatchModel, MatchRatingId, MatchRatingModel, MatchSetAttributes, MatchSetId, MatchSetModel, TeamId, TeamModel } from '.';
|
|
4
|
-
import { Status } from '
|
|
4
|
+
import { Status } from '../common';
|
|
5
5
|
export interface MatchAttributes {
|
|
6
6
|
match_id: string;
|
|
7
7
|
home_team: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MatchModel = void 0;
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
|
-
const
|
|
5
|
+
const common_1 = require("../common");
|
|
6
6
|
class MatchModel extends sequelize_1.Model {
|
|
7
7
|
static initModel(sequelize) {
|
|
8
8
|
return MatchModel.init({
|
|
@@ -32,7 +32,7 @@ class MatchModel extends sequelize_1.Model {
|
|
|
32
32
|
allowNull: false
|
|
33
33
|
},
|
|
34
34
|
status: {
|
|
35
|
-
type:
|
|
35
|
+
type: common_1.StatusDataType,
|
|
36
36
|
allowNull: false,
|
|
37
37
|
defaultValue: 'PENDING'
|
|
38
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PlayerPosition } from '../../service';
|
|
2
|
-
import { SetPositionAttributes, SetPositionModel } from '../models';
|
|
3
|
-
declare function transformToAttributes(playerPosition: PlayerPosition, side:
|
|
2
|
+
import { SetPositionAttributes, SetPositionModel, Side } from '../models';
|
|
3
|
+
declare function transformToAttributes(playerPosition: PlayerPosition, side: Side, setId: string): SetPositionAttributes;
|
|
4
4
|
declare function transformToObject(model: SetPositionModel): PlayerPosition;
|
|
5
5
|
export { transformToObject as transformToPlayerPosition, transformToAttributes as transformFromPlayerPosition };
|
|
@@ -2,7 +2,7 @@ import { Team } from '../team';
|
|
|
2
2
|
import { Match } from '../match';
|
|
3
3
|
import { Standing } from './standing';
|
|
4
4
|
import { Iteration } from './iteration';
|
|
5
|
-
import { StatusEnum } from '../../
|
|
5
|
+
import { StatusEnum } from '../../data';
|
|
6
6
|
interface SeasonOpts {
|
|
7
7
|
readonly id: string;
|
|
8
8
|
readonly teams: Team[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TournamentMatch } from './tournament-match';
|
|
2
2
|
import { Team } from '../team';
|
|
3
3
|
import { Iteration } from './iteration';
|
|
4
|
-
import { StatusEnum } from '../../
|
|
4
|
+
import { StatusEnum } from '../../data';
|
|
5
5
|
interface TournamentOpts {
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly iteration: Iteration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatchSet } from './match-set';
|
|
2
2
|
import { Team } from '../team';
|
|
3
3
|
import { MatchTeam } from './match-team';
|
|
4
|
-
import { StatusEnum } from '../../
|
|
4
|
+
import { StatusEnum } from '../../data';
|
|
5
5
|
interface MatchParams {
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly homeTeam: Team;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Match = exports.MatchScore = void 0;
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
const match_team_1 = require("./match-team");
|
|
6
|
-
const
|
|
6
|
+
const data_1 = require("../../data");
|
|
7
7
|
var MatchScore;
|
|
8
8
|
(function (MatchScore) {
|
|
9
9
|
MatchScore["3-0"] = "3-0";
|
|
@@ -58,7 +58,7 @@ class Match {
|
|
|
58
58
|
return team === match_team_1.MatchTeam.AWAY && this.getWinner() === this.awayTeam;
|
|
59
59
|
}
|
|
60
60
|
isSimulated() {
|
|
61
|
-
return this.status ===
|
|
61
|
+
return this.status === data_1.StatusEnum.COMPLETE;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
exports.Match = Match;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './status';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './status';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
3
|
import { CompetitionChampionAttributes, CompetitionChampionId, CompetitionChampionModel, CompetitionMatchAttributes, CompetitionMatchId, CompetitionMatchModel, CompetitionTeamsAttributes, CompetitionTeamsId, CompetitionTeamsModel, IterationId, IterationModel, LeagueSeasonAttributes, LeagueSeasonId, LeagueSeasonModel, TeamId, TeamModel } from '.';
|
|
4
|
-
import { Status } from '
|
|
4
|
+
import { Status } from '../common';
|
|
5
5
|
export interface CompetitionAttributes {
|
|
6
6
|
competition_id: string;
|
|
7
7
|
iteration: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
3
|
import { CompetitionMatchId, CompetitionMatchModel, MatchRatingId, MatchRatingModel, MatchSetAttributes, MatchSetId, MatchSetModel, TeamId, TeamModel } from '.';
|
|
4
|
-
import { Status } from '
|
|
4
|
+
import { Status } from '../common';
|
|
5
5
|
export interface MatchAttributes {
|
|
6
6
|
match_id: string;
|
|
7
7
|
home_team: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PlayerPosition } from '../../service';
|
|
2
|
-
import { SetPositionAttributes, SetPositionModel } from '../models';
|
|
3
|
-
declare function transformToAttributes(playerPosition: PlayerPosition, side:
|
|
2
|
+
import { SetPositionAttributes, SetPositionModel, Side } from '../models';
|
|
3
|
+
declare function transformToAttributes(playerPosition: PlayerPosition, side: Side, setId: string): SetPositionAttributes;
|
|
4
4
|
declare function transformToObject(model: SetPositionModel): PlayerPosition;
|
|
5
5
|
export { transformToObject as transformToPlayerPosition, transformToAttributes as transformFromPlayerPosition };
|
|
@@ -2,7 +2,7 @@ import { Team } from '../team';
|
|
|
2
2
|
import { Match } from '../match';
|
|
3
3
|
import { Standing } from './standing';
|
|
4
4
|
import { Iteration } from './iteration';
|
|
5
|
-
import { StatusEnum } from '../../
|
|
5
|
+
import { StatusEnum } from '../../data';
|
|
6
6
|
interface SeasonOpts {
|
|
7
7
|
readonly id: string;
|
|
8
8
|
readonly teams: Team[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TournamentMatch } from './tournament-match';
|
|
2
2
|
import { Team } from '../team';
|
|
3
3
|
import { Iteration } from './iteration';
|
|
4
|
-
import { StatusEnum } from '../../
|
|
4
|
+
import { StatusEnum } from '../../data';
|
|
5
5
|
interface TournamentOpts {
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly iteration: Iteration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatchSet } from './match-set';
|
|
2
2
|
import { Team } from '../team';
|
|
3
3
|
import { MatchTeam } from './match-team';
|
|
4
|
-
import { StatusEnum } from '../../
|
|
4
|
+
import { StatusEnum } from '../../data';
|
|
5
5
|
interface MatchParams {
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly homeTeam: Team;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|