pro-clubs-shared-dtos 3.7.0 → 3.9.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.
@@ -18,4 +18,6 @@ export * from './season-achievement-dtos';
18
18
  export * from './chat-dtos';
19
19
  export * from './team-model-dtos';
20
20
  export * from './player-model-dtos';
21
+ export * from './prediction-game-stats-dtos';
22
+ export * from './totw-dtos';
21
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dtos/responses/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dtos/responses/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,aAAa,CAAC"}
@@ -34,4 +34,6 @@ __exportStar(require("./season-achievement-dtos"), exports);
34
34
  __exportStar(require("./chat-dtos"), exports);
35
35
  __exportStar(require("./team-model-dtos"), exports);
36
36
  __exportStar(require("./player-model-dtos"), exports);
37
+ __exportStar(require("./prediction-game-stats-dtos"), exports);
38
+ __exportStar(require("./totw-dtos"), exports);
37
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dtos/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,8CAA4B;AAC5B,iDAA+B;AAC/B,gDAA8B;AAC9B,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,kDAAgC;AAChC,sDAAoC;AACpC,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,8CAA4B;AAC5B,iDAA+B;AAC/B,8CAA4B;AAC5B,iDAA+B;AAC/B,4DAA0C;AAC1C,8CAA4B;AAC5B,oDAAkC;AAClC,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dtos/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,8CAA4B;AAC5B,iDAA+B;AAC/B,gDAA8B;AAC9B,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,kDAAgC;AAChC,sDAAoC;AACpC,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,8CAA4B;AAC5B,iDAA+B;AAC/B,8CAA4B;AAC5B,iDAA+B;AAC/B,4DAA0C;AAC1C,8CAA4B;AAC5B,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,8CAA4B"}
@@ -0,0 +1,11 @@
1
+ export interface PredictionDistribution {
2
+ gameId: string;
3
+ totalPredictions: number;
4
+ homeWinCount: number;
5
+ awayWinCount: number;
6
+ drawCount: number;
7
+ homeWinPercentage: number;
8
+ awayWinPercentage: number;
9
+ drawPercentage: number;
10
+ }
11
+ //# sourceMappingURL=prediction-dtos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prediction-dtos.d.ts","sourceRoot":"","sources":["../../../src/dtos/responses/prediction-dtos.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=prediction-dtos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prediction-dtos.js","sourceRoot":"","sources":["../../../src/dtos/responses/prediction-dtos.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export interface PredictionGameStats {
2
+ gameId: string;
3
+ totalPredictions: number;
4
+ homeWinCount: number;
5
+ awayWinCount: number;
6
+ drawCount: number;
7
+ homeWinPercentage: number;
8
+ awayWinPercentage: number;
9
+ drawPercentage: number;
10
+ }
11
+ //# sourceMappingURL=prediction-game-stats-dtos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prediction-game-stats-dtos.d.ts","sourceRoot":"","sources":["../../../src/dtos/responses/prediction-game-stats-dtos.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=prediction-game-stats-dtos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prediction-game-stats-dtos.js","sourceRoot":"","sources":["../../../src/dtos/responses/prediction-game-stats-dtos.ts"],"names":[],"mappings":""}
@@ -0,0 +1,64 @@
1
+ export type PlayerPositionStats = {
2
+ goals: number;
3
+ games: number;
4
+ assists: number;
5
+ cleanSheets: number;
6
+ avgRating: number;
7
+ playerOfTheMatch: number;
8
+ score?: number;
9
+ };
10
+ export type PlayersWeekStatsMap = {
11
+ [playerId: string]: {
12
+ totalGames: number;
13
+ totalScore: number;
14
+ positionsStats: {
15
+ [position: string]: PlayerPositionStats;
16
+ };
17
+ };
18
+ };
19
+ export type TeamOfTheWeek = {
20
+ playerId: string;
21
+ position: string;
22
+ score: number;
23
+ stats: PlayerPositionStats;
24
+ }[];
25
+ export type HonorableMentions = {
26
+ playerId: string;
27
+ totalGames: number;
28
+ totalScore: number;
29
+ positionsStats: {
30
+ [position: string]: PlayerPositionStats;
31
+ };
32
+ }[];
33
+ export type EnrichedPlayerInfo = {
34
+ playerId: string;
35
+ name: string;
36
+ imgUrl?: string;
37
+ team: {
38
+ id: string;
39
+ name: string;
40
+ imgUrl?: string;
41
+ };
42
+ };
43
+ export type EnrichedTeamOfTheWeek = {
44
+ player: EnrichedPlayerInfo;
45
+ position: string;
46
+ score: number;
47
+ stats: PlayerPositionStats;
48
+ }[];
49
+ export type EnrichedHonorableMentions = {
50
+ player: EnrichedPlayerInfo;
51
+ totalGames: number;
52
+ totalScore: number;
53
+ positionsStats: {
54
+ [position: string]: PlayerPositionStats;
55
+ };
56
+ }[];
57
+ export type PlayersByPosition = {
58
+ [position: string]: Array<{
59
+ playerId: string;
60
+ score: number;
61
+ stats: PlayerPositionStats;
62
+ }>;
63
+ };
64
+ //# sourceMappingURL=totw-dtos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totw-dtos.d.ts","sourceRoot":"","sources":["../../../src/dtos/responses/totw-dtos.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,QAAQ,EAAE,MAAM,GAAG;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,EAAE;YACd,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,CAAC;SACzC,CAAC;KACH,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,mBAAmB,CAAC;CAC5B,EAAE,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE;QACd,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,CAAC;KACzC,CAAC;CACH,EAAE,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,mBAAmB,CAAC;CAC5B,EAAE,CAAC;AAEJ,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE;QACd,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,CAAC;KACzC,CAAC;CACH,EAAE,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,mBAAmB,CAAA;KAAE,CAAC,CAAC;CAC5F,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=totw-dtos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totw-dtos.js","sourceRoot":"","sources":["../../../src/dtos/responses/totw-dtos.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -37,6 +37,8 @@ export * from './dtos/responses/season-achievement-dtos';
37
37
  export * from './dtos/responses/chat-dtos';
38
38
  export * from './dtos/responses/team-model-dtos';
39
39
  export * from './dtos/responses/player-model-dtos';
40
+ export * from './dtos/responses/prediction-game-stats-dtos';
41
+ export * from './dtos/responses/totw-dtos';
40
42
  export * from './dtos/requests/fixture-requests';
41
43
  export * from './dtos/requests/fixture-game-requests';
42
44
  export * from './dtos/requests/player-performance-request';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AAGzC,cAAc,8BAA8B,CAAC;AAG7C,cAAc,wBAAwB,CAAC;AAGvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAA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c,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAGhD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC"}
package/dist/index.js CHANGED
@@ -53,6 +53,8 @@ __exportStar(require("./dtos/responses/season-achievement-dtos"), exports);
53
53
  __exportStar(require("./dtos/responses/chat-dtos"), exports);
54
54
  __exportStar(require("./dtos/responses/team-model-dtos"), exports);
55
55
  __exportStar(require("./dtos/responses/player-model-dtos"), exports);
56
+ __exportStar(require("./dtos/responses/prediction-game-stats-dtos"), exports);
57
+ __exportStar(require("./dtos/responses/totw-dtos"), exports);
56
58
  __exportStar(require("./dtos/requests/fixture-requests"), exports);
57
59
  __exportStar(require("./dtos/requests/fixture-game-requests"), exports);
58
60
  __exportStar(require("./dtos/requests/player-performance-request"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names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4DAA0C;AAC1C,wDAAsC;AACtC,qDAAmC;AACnC,kDAAgC;AAChC,0DAAwC;AACxC,gEAA8C;AAC9C,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,gEAA8C;AAC9C,6DAA2C;AAC3C,gEAA8C;AAC9C,2EAAyD;AACzD,6DAA2C;AAC3C,mEAAiD;AACjD,qEAAmD;AACnD,8EAA4D;AAC5D,6DAA2C;AAC3C,mEAAiD;AACjD,wEAAsD;AACtD,6EAA2D;AAC3D,kEAAgD;AAGhD,kEAAgD;AAChD,kEAAgD;AAChD,kEAAgD;AAChD,wEAAsD;AACtD,qEAAmD;AACnD,kFAAgE;AAChE,8EAA4D;AAC5D,8EAA4D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pro-clubs-shared-dtos",
3
- "version": "3.7.0",
3
+ "version": "3.9.0",
4
4
  "description": "Shared DTOs for Pro Clubs Manager Client and Server",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,4 +19,6 @@ export * from './season-achievement-dtos';
19
19
  export * from './chat-dtos';
20
20
  export * from './team-model-dtos';
21
21
  export * from './player-model-dtos';
22
+ export * from './prediction-game-stats-dtos';
23
+ export * from './totw-dtos';
22
24
 
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Game-specific prediction statistics
3
+ * Contains detailed prediction metrics for a particular game
4
+ */
5
+ export interface PredictionGameStats {
6
+ gameId: string;
7
+ totalPredictions: number;
8
+ homeWinCount: number;
9
+ awayWinCount: number;
10
+ drawCount: number;
11
+ homeWinPercentage: number;
12
+ awayWinPercentage: number;
13
+ drawPercentage: number;
14
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Team of the Week (TOTW) related DTOs
3
+ * Contains types for TOTW player rankings and stats
4
+ */
5
+
6
+ export type PlayerPositionStats = {
7
+ goals: number;
8
+ games: number;
9
+ assists: number;
10
+ cleanSheets: number;
11
+ avgRating: number;
12
+ playerOfTheMatch: number;
13
+ score?: number;
14
+ };
15
+
16
+ export type PlayersWeekStatsMap = {
17
+ [playerId: string]: {
18
+ totalGames: number;
19
+ totalScore: number;
20
+ positionsStats: {
21
+ [position: string]: PlayerPositionStats;
22
+ };
23
+ };
24
+ };
25
+
26
+ export type TeamOfTheWeek = {
27
+ playerId: string;
28
+ position: string;
29
+ score: number;
30
+ stats: PlayerPositionStats;
31
+ }[];
32
+
33
+ export type HonorableMentions = {
34
+ playerId: string;
35
+ totalGames: number;
36
+ totalScore: number;
37
+ positionsStats: {
38
+ [position: string]: PlayerPositionStats;
39
+ };
40
+ }[];
41
+
42
+ export type EnrichedPlayerInfo = {
43
+ playerId: string;
44
+ name: string;
45
+ imgUrl?: string;
46
+ team: {
47
+ id: string;
48
+ name: string;
49
+ imgUrl?: string;
50
+ };
51
+ };
52
+
53
+ export type EnrichedTeamOfTheWeek = {
54
+ player: EnrichedPlayerInfo;
55
+ position: string;
56
+ score: number;
57
+ stats: PlayerPositionStats;
58
+ }[];
59
+
60
+ export type EnrichedHonorableMentions = {
61
+ player: EnrichedPlayerInfo;
62
+ totalGames: number;
63
+ totalScore: number;
64
+ positionsStats: {
65
+ [position: string]: PlayerPositionStats;
66
+ };
67
+ }[];
68
+
69
+ export type PlayersByPosition = {
70
+ [position: string]: Array<{ playerId: string; score: number; stats: PlayerPositionStats }>;
71
+ };
package/src/index.ts CHANGED
@@ -44,6 +44,8 @@ export * from './dtos/responses/season-achievement-dtos';
44
44
  export * from './dtos/responses/chat-dtos';
45
45
  export * from './dtos/responses/team-model-dtos';
46
46
  export * from './dtos/responses/player-model-dtos';
47
+ export * from './dtos/responses/prediction-game-stats-dtos';
48
+ export * from './dtos/responses/totw-dtos';
47
49
  export * from './dtos/requests/fixture-requests';
48
50
  export * from './dtos/requests/fixture-game-requests';
49
51
  export * from './dtos/requests/player-performance-request';