@opprs/core 2.2.1 → 3.0.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.
- package/LICENSE +12 -18
- package/README.md +1 -1
- package/dist/index.d.cts +1 -5
- package/dist/index.d.ts +1 -5
- package/package.json +3 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
OPPRS - pinball tournament software
|
|
2
|
+
Copyright (C) 2026 Mitch McAffee
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
This program is free software: you can redistribute it and/or modify
|
|
5
|
+
it under the terms of the GNU Affero General Public License as
|
|
6
|
+
published by the Free Software Foundation, either version 3 of the
|
|
7
|
+
License, or (at your option) any later version.
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
9
|
+
This program is distributed in the hope that it will be useful,
|
|
10
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
GNU Affero General Public License for more details.
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
14
|
+
You should have received a copy of the GNU Affero General Public License
|
|
15
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
package/README.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -23,10 +23,6 @@ type TournamentFormatType = 'single-elimination' | 'double-elimination' | 'match
|
|
|
23
23
|
* Qualifying format configuration
|
|
24
24
|
*/
|
|
25
25
|
type QualifyingType = 'unlimited' | 'limited' | 'hybrid' | 'none';
|
|
26
|
-
/**
|
|
27
|
-
* Group size for match play formats
|
|
28
|
-
*/
|
|
29
|
-
type GroupSize = 2 | 3 | 4;
|
|
30
26
|
/**
|
|
31
27
|
* Event booster classification
|
|
32
28
|
*/
|
|
@@ -1232,4 +1228,4 @@ declare function validateDateNotFuture(date: Date, fieldName?: string): void;
|
|
|
1232
1228
|
*/
|
|
1233
1229
|
declare function validatePercentage(value: number, fieldName?: string): void;
|
|
1234
1230
|
|
|
1235
|
-
export { DEFAULT_CONSTANTS, type DecayConfig, type EventBoosterType, type
|
|
1231
|
+
export { DEFAULT_CONSTANTS, type DecayConfig, type EventBoosterType, type OPPRConfig, type ParsePlayerCSVOptions, type ParsedPlayer, type PartialOPPRConfig, type Player, type PlayerEvent, type PlayerProfile, type PlayerResult, type PointDistribution, type QualifyingType, type RatingResult, type RatingUpdate, type TGPConfig, type Tournament, type TournamentFormatType, type TournamentResult, type TournamentValue, ValidationError, analyzeEfficiencyTrend, applyEventBooster, applyRDDecay, applyTimeDecay, calculateBaseValue, calculateDaysBetween, calculateDecayMultiplier, calculateDecayedEfficiency, calculateDynamicPoints, calculateEventAge, calculateEventEfficiency, calculateFinalsTGP, calculateFlipFrenzyTGP, calculateLinearPoints, calculateOverallEfficiency, calculatePlayerPoints, calculatePlayerRankingContribution, calculatePlayerRatingContribution, calculatePositionPercentage, calculateQualifyingTGP, calculateRankingTVA, calculateRatingTVA, calculateTGP, calculateTopNEfficiency, calculateTotalTVA, calculateUnlimitedCardTGP, configureOPPR, countRatedPlayers, createNewPlayerRating, determineEventBooster, distributePoints, filterActiveEvents, getDecayMultiplier, getDefaultConfig, getEfficiencyStats, getEventBoosterMultiplier, getEventDecayInfo, getPointsForPosition, getTopRankedPlayers, getTopRatedPlayers, isEventActive, isPlayerRated, isProvisionalRating, parsePlayerCSV, qualifiesForCertified, qualifiesForCertifiedPlus, ratingContributesToTVA, resetConfig, simulateTournamentMatches, updateRating, validateDateNotFuture, validateFinalsEligibility, validateFinalsRequirements, validateMinimumPlayers, validatePercentage, validatePlayer, validatePlayerResults, validatePlayers, validatePrivateTournament, validateTGPConfig, validateTournament };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,10 +23,6 @@ type TournamentFormatType = 'single-elimination' | 'double-elimination' | 'match
|
|
|
23
23
|
* Qualifying format configuration
|
|
24
24
|
*/
|
|
25
25
|
type QualifyingType = 'unlimited' | 'limited' | 'hybrid' | 'none';
|
|
26
|
-
/**
|
|
27
|
-
* Group size for match play formats
|
|
28
|
-
*/
|
|
29
|
-
type GroupSize = 2 | 3 | 4;
|
|
30
26
|
/**
|
|
31
27
|
* Event booster classification
|
|
32
28
|
*/
|
|
@@ -1232,4 +1228,4 @@ declare function validateDateNotFuture(date: Date, fieldName?: string): void;
|
|
|
1232
1228
|
*/
|
|
1233
1229
|
declare function validatePercentage(value: number, fieldName?: string): void;
|
|
1234
1230
|
|
|
1235
|
-
export { DEFAULT_CONSTANTS, type DecayConfig, type EventBoosterType, type
|
|
1231
|
+
export { DEFAULT_CONSTANTS, type DecayConfig, type EventBoosterType, type OPPRConfig, type ParsePlayerCSVOptions, type ParsedPlayer, type PartialOPPRConfig, type Player, type PlayerEvent, type PlayerProfile, type PlayerResult, type PointDistribution, type QualifyingType, type RatingResult, type RatingUpdate, type TGPConfig, type Tournament, type TournamentFormatType, type TournamentResult, type TournamentValue, ValidationError, analyzeEfficiencyTrend, applyEventBooster, applyRDDecay, applyTimeDecay, calculateBaseValue, calculateDaysBetween, calculateDecayMultiplier, calculateDecayedEfficiency, calculateDynamicPoints, calculateEventAge, calculateEventEfficiency, calculateFinalsTGP, calculateFlipFrenzyTGP, calculateLinearPoints, calculateOverallEfficiency, calculatePlayerPoints, calculatePlayerRankingContribution, calculatePlayerRatingContribution, calculatePositionPercentage, calculateQualifyingTGP, calculateRankingTVA, calculateRatingTVA, calculateTGP, calculateTopNEfficiency, calculateTotalTVA, calculateUnlimitedCardTGP, configureOPPR, countRatedPlayers, createNewPlayerRating, determineEventBooster, distributePoints, filterActiveEvents, getDecayMultiplier, getDefaultConfig, getEfficiencyStats, getEventBoosterMultiplier, getEventDecayInfo, getPointsForPosition, getTopRankedPlayers, getTopRatedPlayers, isEventActive, isPlayerRated, isProvisionalRating, parsePlayerCSV, qualifiesForCertified, qualifiesForCertifiedPlus, ratingContributesToTVA, resetConfig, simulateTournamentMatches, updateRating, validateDateNotFuture, validateFinalsEligibility, validateFinalsRequirements, validateMinimumPlayers, validatePercentage, validatePlayer, validatePlayerResults, validatePlayers, validatePrivateTournament, validateTGPConfig, validateTournament };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opprs/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Open Pinball Player Ranking System - A TypeScript library for calculating pinball tournament rankings and ratings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pinball",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"scoring"
|
|
12
12
|
],
|
|
13
13
|
"author": "Mitch McAffee",
|
|
14
|
-
"license": "
|
|
14
|
+
"license": "AGPL-3.0-or-later",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "https://github.com/themcaffee/OPPR",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
48
|
+
"postbuild": "cp ../../LICENSE .",
|
|
48
49
|
"test": "vitest run",
|
|
49
50
|
"test:watch": "vitest",
|
|
50
51
|
"test:coverage": "vitest run --coverage",
|