jl-sprt-match 1.0.1 → 1.0.3
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/index.d.ts +3 -4
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/profiles/americanFootball/AmericanFootballProfile.d.ts +2 -1
- package/dist/profiles/americanFootball/AmericanFootballProfile.js +4 -0
- package/dist/profiles/americanFootball/AmericanFootballProfile.js.map +1 -1
- package/dist/profiles/football/FootballProfile.d.ts +2 -1
- package/dist/profiles/football/FootballProfile.js +4 -0
- package/dist/profiles/football/FootballProfile.js.map +1 -1
- package/dist/profiles/volleyball/VolleyballProfile.d.ts +2 -1
- package/dist/profiles/volleyball/VolleyballProfile.js +4 -0
- package/dist/profiles/volleyball/VolleyballProfile.js.map +1 -1
- package/dist/profiles/volleyball/VolleyballResult.js +0 -2
- package/dist/profiles/volleyball/VolleyballResult.js.map +1 -1
- package/package.json +2 -2
- package/dist/profiles/americanFootball/AmericanFootballScore.d.ts +0 -8
- package/dist/profiles/americanFootball/AmericanFootballScore.js +0 -3
- package/dist/profiles/americanFootball/AmericanFootballScore.js.map +0 -1
- package/dist/profiles/football/FootballScore.d.ts +0 -4
- package/dist/profiles/football/FootballScore.js +0 -3
- package/dist/profiles/football/FootballScore.js.map +0 -1
- package/dist/profiles/types.d.ts +0 -4
- package/dist/profiles/types.js +0 -3
- package/dist/profiles/types.js.map +0 -1
- package/dist/profiles/volleyball/VolleyballScore.d.ts +0 -5
- package/dist/profiles/volleyball/VolleyballScore.js +0 -3
- package/dist/profiles/volleyball/VolleyballScore.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,23 +4,22 @@ export { VolleyballProfile } from './profiles/volleyball/VolleyballProfile';
|
|
|
4
4
|
export { AmericanFootballMatch } from './profiles/americanFootball/AmericanFootballMatch';
|
|
5
5
|
export { AmericanFootballMatchPlay } from './profiles/americanFootball/AmericanFootballMatchPlay';
|
|
6
6
|
export { AmericanFootballResult } from './profiles/americanFootball/AmericanFootballResult';
|
|
7
|
+
export { AmericanFootballTeam } from './profiles/americanFootball/AmericanFootballTeam';
|
|
7
8
|
export { AmericanFootballSerie } from './profiles/americanFootball/AmericanFootballSerie';
|
|
8
9
|
export { AmericanFootballTeamTableItem } from './profiles/americanFootball/AmericanFootballTeamTableItem';
|
|
9
|
-
export { IAmericanFootballScore } from './profiles/americanFootball/AmericanFootballScore';
|
|
10
10
|
export type { AmericanFootballMatchResults, AmericanFootballMatchPuntuations, IAmericanFootballTeamTableItem } from './profiles/americanFootball/AmericanFootballTeamTableItem';
|
|
11
11
|
export { FootballMatch } from './profiles/football/FootballMatch';
|
|
12
12
|
export { FootballMatchPlay } from './profiles/football/FootballMatchPlay';
|
|
13
13
|
export { FootballResult } from './profiles/football/FootballResult';
|
|
14
|
+
export { FootballTeam } from './profiles/football/FootballTeam';
|
|
14
15
|
export { FootballSerie } from './profiles/football/FootballSerie';
|
|
15
16
|
export { FootballTeamTableItem } from './profiles/football/FootballTeamTableItem';
|
|
16
|
-
export { IFootballScore } from './profiles/football/FootballScore';
|
|
17
17
|
export type { FootballMatchResults, FootballMatchPuntuations, IFootballTeamTableItem } from './profiles/football/FootballTeamTableItem';
|
|
18
18
|
export { VolleyballMatch } from './profiles/volleyball/VolleyballMatch';
|
|
19
19
|
export { VolleyballMatchPlay } from './profiles/volleyball/VolleyballMatchPlay';
|
|
20
20
|
export { VolleyballResult } from './profiles/volleyball/VolleyballResult';
|
|
21
|
+
export { VolleyballTeam } from './profiles/volleyball/VolleyballTeam';
|
|
21
22
|
export { VolleyballSerie } from './profiles/volleyball/VolleyballSerie';
|
|
22
23
|
export { VolleyballTeamTableItem } from './profiles/volleyball/VolleyballTeamTableItem';
|
|
23
|
-
export { IVolleyballScore } from './profiles/volleyball/VolleyballScore';
|
|
24
24
|
export type { VolleyballMatchResults, VolleyballMatchPuntuations, IVolleyballTeamTableItem } from './profiles/volleyball/VolleyballTeamTableItem';
|
|
25
25
|
export { randomFloat, reseedRandom } from './randomSource';
|
|
26
|
-
export { TMatchScore } from './profiles/types';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.reseedRandom = exports.randomFloat = exports.VolleyballTeamTableItem = exports.VolleyballSerie = exports.VolleyballResult = exports.VolleyballMatchPlay = exports.VolleyballMatch = exports.FootballTeamTableItem = exports.FootballSerie = exports.FootballResult = exports.FootballMatchPlay = exports.FootballMatch = exports.AmericanFootballTeamTableItem = exports.AmericanFootballSerie = exports.AmericanFootballResult = exports.AmericanFootballMatchPlay = exports.AmericanFootballMatch = exports.VolleyballProfile = exports.FootballProfile = exports.AmericanFootballProfile = void 0;
|
|
3
|
+
exports.reseedRandom = exports.randomFloat = exports.VolleyballTeamTableItem = exports.VolleyballSerie = exports.VolleyballTeam = exports.VolleyballResult = exports.VolleyballMatchPlay = exports.VolleyballMatch = exports.FootballTeamTableItem = exports.FootballSerie = exports.FootballTeam = exports.FootballResult = exports.FootballMatchPlay = exports.FootballMatch = exports.AmericanFootballTeamTableItem = exports.AmericanFootballSerie = exports.AmericanFootballTeam = exports.AmericanFootballResult = exports.AmericanFootballMatchPlay = exports.AmericanFootballMatch = exports.VolleyballProfile = exports.FootballProfile = exports.AmericanFootballProfile = void 0;
|
|
4
4
|
// Profiles and concrete match implementations by sport.
|
|
5
5
|
var AmericanFootballProfile_1 = require("./profiles/americanFootball/AmericanFootballProfile");
|
|
6
6
|
Object.defineProperty(exports, "AmericanFootballProfile", { enumerable: true, get: function () { return AmericanFootballProfile_1.AmericanFootballProfile; } });
|
|
@@ -14,6 +14,8 @@ var AmericanFootballMatchPlay_1 = require("./profiles/americanFootball/AmericanF
|
|
|
14
14
|
Object.defineProperty(exports, "AmericanFootballMatchPlay", { enumerable: true, get: function () { return AmericanFootballMatchPlay_1.AmericanFootballMatchPlay; } });
|
|
15
15
|
var AmericanFootballResult_1 = require("./profiles/americanFootball/AmericanFootballResult");
|
|
16
16
|
Object.defineProperty(exports, "AmericanFootballResult", { enumerable: true, get: function () { return AmericanFootballResult_1.AmericanFootballResult; } });
|
|
17
|
+
var AmericanFootballTeam_1 = require("./profiles/americanFootball/AmericanFootballTeam");
|
|
18
|
+
Object.defineProperty(exports, "AmericanFootballTeam", { enumerable: true, get: function () { return AmericanFootballTeam_1.AmericanFootballTeam; } });
|
|
17
19
|
var AmericanFootballSerie_1 = require("./profiles/americanFootball/AmericanFootballSerie");
|
|
18
20
|
Object.defineProperty(exports, "AmericanFootballSerie", { enumerable: true, get: function () { return AmericanFootballSerie_1.AmericanFootballSerie; } });
|
|
19
21
|
var AmericanFootballTeamTableItem_1 = require("./profiles/americanFootball/AmericanFootballTeamTableItem");
|
|
@@ -24,6 +26,8 @@ var FootballMatchPlay_1 = require("./profiles/football/FootballMatchPlay");
|
|
|
24
26
|
Object.defineProperty(exports, "FootballMatchPlay", { enumerable: true, get: function () { return FootballMatchPlay_1.FootballMatchPlay; } });
|
|
25
27
|
var FootballResult_1 = require("./profiles/football/FootballResult");
|
|
26
28
|
Object.defineProperty(exports, "FootballResult", { enumerable: true, get: function () { return FootballResult_1.FootballResult; } });
|
|
29
|
+
var FootballTeam_1 = require("./profiles/football/FootballTeam");
|
|
30
|
+
Object.defineProperty(exports, "FootballTeam", { enumerable: true, get: function () { return FootballTeam_1.FootballTeam; } });
|
|
27
31
|
var FootballSerie_1 = require("./profiles/football/FootballSerie");
|
|
28
32
|
Object.defineProperty(exports, "FootballSerie", { enumerable: true, get: function () { return FootballSerie_1.FootballSerie; } });
|
|
29
33
|
var FootballTeamTableItem_1 = require("./profiles/football/FootballTeamTableItem");
|
|
@@ -34,6 +38,8 @@ var VolleyballMatchPlay_1 = require("./profiles/volleyball/VolleyballMatchPlay")
|
|
|
34
38
|
Object.defineProperty(exports, "VolleyballMatchPlay", { enumerable: true, get: function () { return VolleyballMatchPlay_1.VolleyballMatchPlay; } });
|
|
35
39
|
var VolleyballResult_1 = require("./profiles/volleyball/VolleyballResult");
|
|
36
40
|
Object.defineProperty(exports, "VolleyballResult", { enumerable: true, get: function () { return VolleyballResult_1.VolleyballResult; } });
|
|
41
|
+
var VolleyballTeam_1 = require("./profiles/volleyball/VolleyballTeam");
|
|
42
|
+
Object.defineProperty(exports, "VolleyballTeam", { enumerable: true, get: function () { return VolleyballTeam_1.VolleyballTeam; } });
|
|
37
43
|
var VolleyballSerie_1 = require("./profiles/volleyball/VolleyballSerie");
|
|
38
44
|
Object.defineProperty(exports, "VolleyballSerie", { enumerable: true, get: function () { return VolleyballSerie_1.VolleyballSerie; } });
|
|
39
45
|
var VolleyballTeamTableItem_1 = require("./profiles/volleyball/VolleyballTeamTableItem");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,+FAA8F;AAArF,kIAAA,uBAAuB,OAAA;AAChC,uEAAsE;AAA7D,kHAAA,eAAe,OAAA;AACxB,6EAA4E;AAAnE,sHAAA,iBAAiB,OAAA;AAE1B,2FAA0F;AAAjF,8HAAA,qBAAqB,OAAA;AAC9B,mGAAkG;AAAzF,sIAAA,yBAAyB,OAAA;AAClC,6FAA4F;AAAnF,gIAAA,sBAAsB,OAAA;AAC/B,2FAA0F;AAAjF,8HAAA,qBAAqB,OAAA;AAC9B,2GAA0G;AAAjG,8IAAA,6BAA6B,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,+FAA8F;AAArF,kIAAA,uBAAuB,OAAA;AAChC,uEAAsE;AAA7D,kHAAA,eAAe,OAAA;AACxB,6EAA4E;AAAnE,sHAAA,iBAAiB,OAAA;AAE1B,2FAA0F;AAAjF,8HAAA,qBAAqB,OAAA;AAC9B,mGAAkG;AAAzF,sIAAA,yBAAyB,OAAA;AAClC,6FAA4F;AAAnF,gIAAA,sBAAsB,OAAA;AAC/B,yFAAwF;AAA/E,4HAAA,oBAAoB,OAAA;AAC7B,2FAA0F;AAAjF,8HAAA,qBAAqB,OAAA;AAC9B,2GAA0G;AAAjG,8IAAA,6BAA6B,OAAA;AAGtC,mEAAkE;AAAzD,8GAAA,aAAa,OAAA;AACtB,2EAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAC1B,qEAAoE;AAA3D,gHAAA,cAAc,OAAA;AACvB,iEAAgE;AAAvD,4GAAA,YAAY,OAAA;AACrB,mEAAkE;AAAzD,8GAAA,aAAa,OAAA;AACtB,mFAAkF;AAAzE,8HAAA,qBAAqB,OAAA;AAG9B,yEAAwE;AAA/D,kHAAA,eAAe,OAAA;AACxB,iFAAgF;AAAvE,0HAAA,mBAAmB,OAAA;AAC5B,2EAA0E;AAAjE,oHAAA,gBAAgB,OAAA;AACzB,uEAAsE;AAA7D,gHAAA,cAAc,OAAA;AACvB,yEAAwE;AAA/D,kHAAA,eAAe,OAAA;AACxB,yFAAwF;AAA/E,kIAAA,uBAAuB,OAAA;AAGhC,+CAA2D;AAAlD,2GAAA,WAAW,OAAA;AAAE,4GAAA,YAAY,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IResultInfo, ISportProfile, IMatchCreationInfo, ISerieCreationInfo, IAmericanFootballScore } from "jl-sprt-core";
|
|
1
|
+
import { IResultInfo, ISportProfile, IMatchCreationInfo, ISerieCreationInfo, IAmericanFootballScore, ITeamCreator } from "jl-sprt-core";
|
|
2
2
|
import { AmericanFootballTeam } from './AmericanFootballTeam';
|
|
3
3
|
import { AmericanFootballRoster } from './AmericanFootballRoster';
|
|
4
4
|
import { AmericanFootballResult } from "./AmericanFootballResult";
|
|
@@ -14,6 +14,7 @@ import { AmericanFootballTeamTableItem, AmericanFootballMatchResults, AmericanFo
|
|
|
14
14
|
export declare class AmericanFootballProfile implements ISportProfile<IAmericanFootballScore, AmericanFootballMatchResults, AmericanFootballMatchPuntuations, AmericanFootballRoster> {
|
|
15
15
|
createMatch(info: IMatchCreationInfo<IAmericanFootballScore, AmericanFootballRoster>): AmericanFootballMatch;
|
|
16
16
|
createSerie(info: ISerieCreationInfo<AmericanFootballRoster>): AmericanFootballSerie;
|
|
17
|
+
createTeam(creator: ITeamCreator): AmericanFootballTeam;
|
|
17
18
|
createResult(teamOneId: string, teamTwoId: string): AmericanFootballResult;
|
|
18
19
|
createTableItem(team: AmericanFootballTeam, bsId: string): AmericanFootballTeamTableItem;
|
|
19
20
|
updateTableFromResult(tti: AmericanFootballTeamTableItem, resultInfo: IResultInfo<IAmericanFootballScore>): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AmericanFootballProfile = void 0;
|
|
4
|
+
const AmericanFootballTeam_1 = require("./AmericanFootballTeam");
|
|
4
5
|
const AmericanFootballResult_1 = require("./AmericanFootballResult");
|
|
5
6
|
const AmericanFootballMatch_1 = require("./AmericanFootballMatch");
|
|
6
7
|
const AmericanFootballSerie_1 = require("./AmericanFootballSerie");
|
|
@@ -18,6 +19,9 @@ class AmericanFootballProfile {
|
|
|
18
19
|
createSerie(info) {
|
|
19
20
|
return new AmericanFootballSerie_1.AmericanFootballSerie(info);
|
|
20
21
|
}
|
|
22
|
+
createTeam(creator) {
|
|
23
|
+
return new AmericanFootballTeam_1.AmericanFootballTeam(creator);
|
|
24
|
+
}
|
|
21
25
|
createResult(teamOneId, teamTwoId) {
|
|
22
26
|
return new AmericanFootballResult_1.AmericanFootballResult(teamOneId, teamTwoId);
|
|
23
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmericanFootballProfile.js","sourceRoot":"","sources":["../../../src/profiles/americanFootball/AmericanFootballProfile.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AmericanFootballProfile.js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QAElC,IAAI,UAAU,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;YAClC,GAAG,CAAC,KAAK,EAAE,CAAC;QACd,CAAC;aAAM,IAAI,UAAU,CAAC,SAAS,KAAK,GAAG,EAAE,CAAC;YACxC,GAAG,CAAC,KAAK,EAAE,CAAC;QACd,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,KAAK,EAAE,CAAC;QACd,CAAC;IACH,CAAC;CACF;AA3CD,0DA2CC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IResultInfo, ISportProfile, IMatchCreationInfo, ISerieCreationInfo, IFootballScore } from "jl-sprt-core";
|
|
1
|
+
import { IResultInfo, ISportProfile, IMatchCreationInfo, ISerieCreationInfo, ITeamCreator, IFootballScore } from "jl-sprt-core";
|
|
2
2
|
import { FootballTeam } from './FootballTeam';
|
|
3
3
|
import { FootballRoster } from './FootballRoster';
|
|
4
4
|
import { FootballResult } from "./FootballResult";
|
|
@@ -14,6 +14,7 @@ import { FootballTeamTableItem, FootballMatchResults, FootballMatchPuntuations }
|
|
|
14
14
|
export declare class FootballProfile implements ISportProfile<IFootballScore, FootballMatchResults, FootballMatchPuntuations, FootballRoster> {
|
|
15
15
|
createMatch(info: IMatchCreationInfo<IFootballScore, FootballRoster>): FootballMatch;
|
|
16
16
|
createSerie(info: ISerieCreationInfo<FootballRoster>): FootballSerie;
|
|
17
|
+
createTeam(creator: ITeamCreator): FootballTeam;
|
|
17
18
|
createResult(teamOneId: string, teamTwoId: string): FootballResult;
|
|
18
19
|
createTableItem(team: FootballTeam, bsId: string): FootballTeamTableItem;
|
|
19
20
|
updateTableFromResult(tti: FootballTeamTableItem, resultInfo: IResultInfo<IFootballScore>): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FootballProfile = void 0;
|
|
4
|
+
const FootballTeam_1 = require("./FootballTeam");
|
|
4
5
|
const FootballResult_1 = require("./FootballResult");
|
|
5
6
|
const FootballMatch_1 = require("./FootballMatch");
|
|
6
7
|
const FootballSerie_1 = require("./FootballSerie");
|
|
@@ -18,6 +19,9 @@ class FootballProfile {
|
|
|
18
19
|
createSerie(info) {
|
|
19
20
|
return new FootballSerie_1.FootballSerie(info);
|
|
20
21
|
}
|
|
22
|
+
createTeam(creator) {
|
|
23
|
+
return new FootballTeam_1.FootballTeam(creator);
|
|
24
|
+
}
|
|
21
25
|
createResult(teamOneId, teamTwoId) {
|
|
22
26
|
return new FootballResult_1.FootballResult(teamOneId, teamTwoId);
|
|
23
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FootballProfile.js","sourceRoot":"","sources":["../../../src/profiles/football/FootballProfile.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"FootballProfile.js","sourceRoot":"","sources":["../../../src/profiles/football/FootballProfile.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAE9C,qDAAkD;AAElD,mDAAgD;AAChD,mDAAgD;AAChD,mEAAgH;AAEhH;;;;;GAKG;AACH,MAAa,eAAe;IAE1B,WAAW,CAAC,IAAwD;QAClE,OAAO,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,WAAW,CAAC,IAAwC;QAClD,OAAO,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,UAAU,CAAC,OAAqB;QAC9B,OAAO,IAAI,2BAAY,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,SAAiB;QAC/C,OAAO,IAAI,+BAAc,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAClD,CAAC;IAED,eAAe,CAAC,IAAkB,EAAE,IAAY;QAC9C,OAAO,IAAI,6CAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,qBAAqB,CAAC,GAA0B,EAAE,UAAuC;QACvF,MAAM,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC,IAAI,KAAK,GAAG,CAAC;QACpD,MAAM,OAAO,GAAG,MAAM;YACpB,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,KAAK;YAC/B,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC;QAClC,MAAM,UAAU,GAAG,MAAM;YACvB,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,KAAK;YAC/B,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC;QAElC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACzB,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAE5B,IAAI,UAAU,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;YAClC,GAAG,CAAC,KAAK,EAAE,CAAC;QACd,CAAC;aAAM,IAAI,UAAU,CAAC,SAAS,KAAK,GAAG,EAAE,CAAC;YACxC,GAAG,CAAC,KAAK,EAAE,CAAC;QACd,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,KAAK,EAAE,CAAC;QACd,CAAC;IACH,CAAC;CACF;AA3CD,0CA2CC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IResultInfo, ISportProfile, IMatchCreationInfo, ISerieCreationInfo, IVolleyballScore } from "jl-sprt-core";
|
|
1
|
+
import { IResultInfo, ISportProfile, IMatchCreationInfo, ISerieCreationInfo, IVolleyballScore, ITeamCreator } from "jl-sprt-core";
|
|
2
2
|
import { VolleyballTeam } from './VolleyballTeam';
|
|
3
3
|
import { VolleyballRoster } from './VolleyballRoster';
|
|
4
4
|
import { VolleyballResult } from "./VolleyballResult";
|
|
@@ -15,6 +15,7 @@ import { VolleyballTeamTableItem, VolleyballMatchResults, VolleyballMatchPuntuat
|
|
|
15
15
|
export declare class VolleyballProfile implements ISportProfile<IVolleyballScore, VolleyballMatchResults, VolleyballMatchPuntuations, VolleyballRoster> {
|
|
16
16
|
createMatch(info: IMatchCreationInfo<IVolleyballScore, VolleyballRoster>): VolleyballMatch;
|
|
17
17
|
createSerie(info: ISerieCreationInfo<VolleyballRoster>): VolleyballSerie;
|
|
18
|
+
createTeam(creator: ITeamCreator): VolleyballTeam;
|
|
18
19
|
createResult(teamOneId: string, teamTwoId: string): VolleyballResult;
|
|
19
20
|
createMatchPlay(globalResult?: VolleyballResult): VolleyballMatchPlay;
|
|
20
21
|
createTableItem(team: VolleyballTeam, bsId: string): VolleyballTeamTableItem;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VolleyballProfile = void 0;
|
|
4
|
+
const VolleyballTeam_1 = require("./VolleyballTeam");
|
|
4
5
|
const VolleyballMatch_1 = require("./VolleyballMatch");
|
|
5
6
|
const VolleyballSerie_1 = require("./VolleyballSerie");
|
|
6
7
|
const VolleyballTeamTableItem_1 = require("./VolleyballTeamTableItem");
|
|
@@ -17,6 +18,9 @@ class VolleyballProfile {
|
|
|
17
18
|
createSerie(info) {
|
|
18
19
|
return new VolleyballSerie_1.VolleyballSerie(info);
|
|
19
20
|
}
|
|
21
|
+
createTeam(creator) {
|
|
22
|
+
return new VolleyballTeam_1.VolleyballTeam(creator);
|
|
23
|
+
}
|
|
20
24
|
createResult(teamOneId, teamTwoId) {
|
|
21
25
|
throw new Error(`no hace falta implementar esto, el propio Match crea sus MatchPlay`);
|
|
22
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolleyballProfile.js","sourceRoot":"","sources":["../../../src/profiles/volleyball/VolleyballProfile.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"VolleyballProfile.js","sourceRoot":"","sources":["../../../src/profiles/volleyball/VolleyballProfile.ts"],"names":[],"mappings":";;;AAEA,q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, teamTwoId) {
|
|
19
19
|
super(teamOneId, teamTwoId, startScore);
|
|
20
|
-
// this._teamOneScore = { team: teamOneId, score: { setsWon: 0, setPoints: [] } };
|
|
21
|
-
// this._teamTwoScore = { team: teamTwoId, score: { setsWon: 0, setPoints: [] } };
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
24
22
|
* Agrega el resultado de un set.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolleyballResult.js","sourceRoot":"","sources":["../../../src/profiles/volleyball/VolleyballResult.ts"],"names":[],"mappings":";;;AACA,+CAAoG;AAEpG,MAAM,UAAU,GAAG,GAAqB,EAAE;IACxC,OAAO;QACL,OAAO,EAAE,CAAC;QACV,SAAS,EAAE,EAAE;QACb,cAAc,EAAE,CAAC;KAClB,CAAA;AACH,CAAC,CAAA;AAcD;;;;GAIG;AACH,MAAa,gBAAiB,SAAQ,uBAA0B;IAE9D,YAAY,SAAiB,EAAE,SAAiB;QAC9C,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"VolleyballResult.js","sourceRoot":"","sources":["../../../src/profiles/volleyball/VolleyballResult.ts"],"names":[],"mappings":";;;AACA,+CAAoG;AAEpG,MAAM,UAAU,GAAG,GAAqB,EAAE;IACxC,OAAO;QACL,OAAO,EAAE,CAAC;QACV,SAAS,EAAE,EAAE;QACb,cAAc,EAAE,CAAC;KAClB,CAAA;AACH,CAAC,CAAA;AAcD;;;;GAIG;AACH,MAAa,gBAAiB,SAAQ,uBAA0B;IAE9D,YAAY,SAAiB,EAAE,SAAiB;QAC9C,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,MAAc,EAAE,GAA0B;QACjD,IAAI,GAAG,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAC5B,IAAI,MAAM,KAAK,IAAI,CAAC,aAAa,CAAC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CAAC;QAC9B,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC;QAE7B,2DAA2D;QAC3D,gDAAgD;QAEhD,OAAO;YACL,UAAU,EAAE,EAAE;YACd,SAAS,EAAE,EAAE;SACd,CAAC;IACJ,CAAC;CACF;AA3ED,4CA2EC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jl-sprt-match",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"vitest": "^5.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"jl-sprt-core": "^1.1.
|
|
29
|
+
"jl-sprt-core": "^1.1.5",
|
|
30
30
|
"jl-utlts": "^1.4.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AmericanFootballScore.js","sourceRoot":"","sources":["../../../src/profiles/americanFootball/AmericanFootballScore.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FootballScore.js","sourceRoot":"","sources":["../../../src/profiles/football/FootballScore.ts"],"names":[],"mappings":""}
|
package/dist/profiles/types.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IAmericanFootballScore } from './americanFootball/AmericanFootballScore';
|
|
2
|
-
import { IFootballScore } from './football/FootballScore';
|
|
3
|
-
import { IVolleyballScore } from './volleyball/VolleyballScore';
|
|
4
|
-
export type TMatchScore = IVolleyballScore | IFootballScore | IAmericanFootballScore;
|
package/dist/profiles/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/profiles/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VolleyballScore.js","sourceRoot":"","sources":["../../../src/profiles/volleyball/VolleyballScore.ts"],"names":[],"mappings":""}
|