tenniscommon 1.1.25 → 1.1.26
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/common/matchplay/initialStats.js +4 -2
- package/dist/cjs/common/matchplay/interfaces.d.ts +19 -1
- package/dist/esm/common/matchplay/initialStats.js +4 -2
- package/dist/esm/common/matchplay/interfaces.d.ts +19 -1
- package/dist/types/common/matchplay/interfaces.d.ts +19 -1
- package/package.json +1 -1
|
@@ -15,7 +15,6 @@ const createStatsPack = () => {
|
|
|
15
15
|
const statsPack = {
|
|
16
16
|
basicStatsPack: (0, exports.createBasicStatsPack)(),
|
|
17
17
|
enhancedStatsPack: (0, exports.createEnhancedStatsPack)(),
|
|
18
|
-
pointsStatsPack: (0, exports.createPointStatsPack)(),
|
|
19
18
|
};
|
|
20
19
|
return statsPack;
|
|
21
20
|
};
|
|
@@ -63,6 +62,8 @@ const createPointStatsPack = () => {
|
|
|
63
62
|
second: { average: 0, count: 0 },
|
|
64
63
|
total: { average: 0, count: 0 },
|
|
65
64
|
},
|
|
65
|
+
firstServeComparedToHistory: { latestPointStat: 0, last5PointStat: 0, last10PointStat: 0, last20PointStat: 0 },
|
|
66
|
+
tripleRollingAverages: [],
|
|
66
67
|
},
|
|
67
68
|
returnAverages: {
|
|
68
69
|
basic: {
|
|
@@ -75,7 +76,8 @@ const createPointStatsPack = () => {
|
|
|
75
76
|
first: { average: 0, count: 0 },
|
|
76
77
|
second: { average: 0, count: 0 },
|
|
77
78
|
total: { average: 0, count: 0 },
|
|
78
|
-
}
|
|
79
|
+
},
|
|
80
|
+
tripleRollingAverages: [],
|
|
79
81
|
},
|
|
80
82
|
};
|
|
81
83
|
return pointStatsPack;
|
|
@@ -195,7 +195,6 @@ export interface SpecificStats {
|
|
|
195
195
|
export interface StatsPack {
|
|
196
196
|
basicStatsPack: BasicStatsPack;
|
|
197
197
|
enhancedStatsPack: EnhancedStatsPack;
|
|
198
|
-
pointsStatsPack: PointStatsPack;
|
|
199
198
|
}
|
|
200
199
|
export interface EnhancedStatsPack {
|
|
201
200
|
matchStats_ByFormat: {
|
|
@@ -312,6 +311,8 @@ export interface PointStatsPack {
|
|
|
312
311
|
count: number;
|
|
313
312
|
};
|
|
314
313
|
};
|
|
314
|
+
firstServeComparedToHistory: PointStatComparedToHistory;
|
|
315
|
+
tripleRollingAverages: TriplePointStat[];
|
|
315
316
|
};
|
|
316
317
|
returnAverages: {
|
|
317
318
|
basic: {
|
|
@@ -346,6 +347,7 @@ export interface PointStatsPack {
|
|
|
346
347
|
count: number;
|
|
347
348
|
};
|
|
348
349
|
};
|
|
350
|
+
tripleRollingAverages: TriplePointStat[];
|
|
349
351
|
};
|
|
350
352
|
}
|
|
351
353
|
export interface PointsData {
|
|
@@ -383,3 +385,19 @@ export interface ReturnsData {
|
|
|
383
385
|
total: string;
|
|
384
386
|
};
|
|
385
387
|
}
|
|
388
|
+
export interface IndividualPointStat {
|
|
389
|
+
date: string;
|
|
390
|
+
pointStat: number;
|
|
391
|
+
}
|
|
392
|
+
export interface TriplePointStat {
|
|
393
|
+
date: string;
|
|
394
|
+
pointStatOne: number;
|
|
395
|
+
pointStatTwo: number;
|
|
396
|
+
pointStatThree: number;
|
|
397
|
+
}
|
|
398
|
+
export interface PointStatComparedToHistory {
|
|
399
|
+
latestPointStat: number;
|
|
400
|
+
last5PointStat: number;
|
|
401
|
+
last10PointStat: number;
|
|
402
|
+
last20PointStat: number;
|
|
403
|
+
}
|
|
@@ -11,7 +11,6 @@ export const createStatsPack = () => {
|
|
|
11
11
|
const statsPack = {
|
|
12
12
|
basicStatsPack: createBasicStatsPack(),
|
|
13
13
|
enhancedStatsPack: createEnhancedStatsPack(),
|
|
14
|
-
pointsStatsPack: createPointStatsPack(),
|
|
15
14
|
};
|
|
16
15
|
return statsPack;
|
|
17
16
|
};
|
|
@@ -57,6 +56,8 @@ export const createPointStatsPack = () => {
|
|
|
57
56
|
second: { average: 0, count: 0 },
|
|
58
57
|
total: { average: 0, count: 0 },
|
|
59
58
|
},
|
|
59
|
+
firstServeComparedToHistory: { latestPointStat: 0, last5PointStat: 0, last10PointStat: 0, last20PointStat: 0 },
|
|
60
|
+
tripleRollingAverages: [],
|
|
60
61
|
},
|
|
61
62
|
returnAverages: {
|
|
62
63
|
basic: {
|
|
@@ -69,7 +70,8 @@ export const createPointStatsPack = () => {
|
|
|
69
70
|
first: { average: 0, count: 0 },
|
|
70
71
|
second: { average: 0, count: 0 },
|
|
71
72
|
total: { average: 0, count: 0 },
|
|
72
|
-
}
|
|
73
|
+
},
|
|
74
|
+
tripleRollingAverages: [],
|
|
73
75
|
},
|
|
74
76
|
};
|
|
75
77
|
return pointStatsPack;
|
|
@@ -195,7 +195,6 @@ export interface SpecificStats {
|
|
|
195
195
|
export interface StatsPack {
|
|
196
196
|
basicStatsPack: BasicStatsPack;
|
|
197
197
|
enhancedStatsPack: EnhancedStatsPack;
|
|
198
|
-
pointsStatsPack: PointStatsPack;
|
|
199
198
|
}
|
|
200
199
|
export interface EnhancedStatsPack {
|
|
201
200
|
matchStats_ByFormat: {
|
|
@@ -312,6 +311,8 @@ export interface PointStatsPack {
|
|
|
312
311
|
count: number;
|
|
313
312
|
};
|
|
314
313
|
};
|
|
314
|
+
firstServeComparedToHistory: PointStatComparedToHistory;
|
|
315
|
+
tripleRollingAverages: TriplePointStat[];
|
|
315
316
|
};
|
|
316
317
|
returnAverages: {
|
|
317
318
|
basic: {
|
|
@@ -346,6 +347,7 @@ export interface PointStatsPack {
|
|
|
346
347
|
count: number;
|
|
347
348
|
};
|
|
348
349
|
};
|
|
350
|
+
tripleRollingAverages: TriplePointStat[];
|
|
349
351
|
};
|
|
350
352
|
}
|
|
351
353
|
export interface PointsData {
|
|
@@ -383,3 +385,19 @@ export interface ReturnsData {
|
|
|
383
385
|
total: string;
|
|
384
386
|
};
|
|
385
387
|
}
|
|
388
|
+
export interface IndividualPointStat {
|
|
389
|
+
date: string;
|
|
390
|
+
pointStat: number;
|
|
391
|
+
}
|
|
392
|
+
export interface TriplePointStat {
|
|
393
|
+
date: string;
|
|
394
|
+
pointStatOne: number;
|
|
395
|
+
pointStatTwo: number;
|
|
396
|
+
pointStatThree: number;
|
|
397
|
+
}
|
|
398
|
+
export interface PointStatComparedToHistory {
|
|
399
|
+
latestPointStat: number;
|
|
400
|
+
last5PointStat: number;
|
|
401
|
+
last10PointStat: number;
|
|
402
|
+
last20PointStat: number;
|
|
403
|
+
}
|
|
@@ -195,7 +195,6 @@ export interface SpecificStats {
|
|
|
195
195
|
export interface StatsPack {
|
|
196
196
|
basicStatsPack: BasicStatsPack;
|
|
197
197
|
enhancedStatsPack: EnhancedStatsPack;
|
|
198
|
-
pointsStatsPack: PointStatsPack;
|
|
199
198
|
}
|
|
200
199
|
export interface EnhancedStatsPack {
|
|
201
200
|
matchStats_ByFormat: {
|
|
@@ -312,6 +311,8 @@ export interface PointStatsPack {
|
|
|
312
311
|
count: number;
|
|
313
312
|
};
|
|
314
313
|
};
|
|
314
|
+
firstServeComparedToHistory: PointStatComparedToHistory;
|
|
315
|
+
tripleRollingAverages: TriplePointStat[];
|
|
315
316
|
};
|
|
316
317
|
returnAverages: {
|
|
317
318
|
basic: {
|
|
@@ -346,6 +347,7 @@ export interface PointStatsPack {
|
|
|
346
347
|
count: number;
|
|
347
348
|
};
|
|
348
349
|
};
|
|
350
|
+
tripleRollingAverages: TriplePointStat[];
|
|
349
351
|
};
|
|
350
352
|
}
|
|
351
353
|
export interface PointsData {
|
|
@@ -383,3 +385,19 @@ export interface ReturnsData {
|
|
|
383
385
|
total: string;
|
|
384
386
|
};
|
|
385
387
|
}
|
|
388
|
+
export interface IndividualPointStat {
|
|
389
|
+
date: string;
|
|
390
|
+
pointStat: number;
|
|
391
|
+
}
|
|
392
|
+
export interface TriplePointStat {
|
|
393
|
+
date: string;
|
|
394
|
+
pointStatOne: number;
|
|
395
|
+
pointStatTwo: number;
|
|
396
|
+
pointStatThree: number;
|
|
397
|
+
}
|
|
398
|
+
export interface PointStatComparedToHistory {
|
|
399
|
+
latestPointStat: number;
|
|
400
|
+
last5PointStat: number;
|
|
401
|
+
last10PointStat: number;
|
|
402
|
+
last20PointStat: number;
|
|
403
|
+
}
|