@mtgame/core 2.0.10 → 2.0.12

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.
Files changed (164) hide show
  1. package/api/league-api.d.ts +1 -0
  2. package/api/tournament-api.d.ts +1 -1
  3. package/api/tournament-season-api.d.ts +2 -0
  4. package/api/tournament-stage-api.d.ts +1 -1
  5. package/esm2020/api/basketball-game-api.mjs +4 -4
  6. package/esm2020/api/feedback-api.mjs +4 -4
  7. package/esm2020/api/file-api.mjs +4 -4
  8. package/esm2020/api/football-game-api.mjs +4 -4
  9. package/esm2020/api/game-base-api.mjs +4 -4
  10. package/esm2020/api/handball-game-api.mjs +4 -4
  11. package/esm2020/api/hockey-game-api.mjs +4 -4
  12. package/esm2020/api/league-api.mjs +18 -4
  13. package/esm2020/api/league-news-api.mjs +4 -4
  14. package/esm2020/api/league-player-api.mjs +4 -4
  15. package/esm2020/api/media-api.mjs +4 -4
  16. package/esm2020/api/notification-api.mjs +4 -4
  17. package/esm2020/api/notification-base-api.mjs +4 -4
  18. package/esm2020/api/org-notification-api.mjs +4 -4
  19. package/esm2020/api/public-team-api.mjs +4 -4
  20. package/esm2020/api/public-user-api.mjs +4 -4
  21. package/esm2020/api/reference-api.mjs +4 -4
  22. package/esm2020/api/rugby-game-api.mjs +4 -4
  23. package/esm2020/api/team-api.mjs +4 -4
  24. package/esm2020/api/team-event-api.mjs +4 -4
  25. package/esm2020/api/tournament-api.mjs +4 -4
  26. package/esm2020/api/tournament-join-api.mjs +4 -4
  27. package/esm2020/api/tournament-round-api.mjs +4 -4
  28. package/esm2020/api/tournament-season-api.mjs +19 -5
  29. package/esm2020/api/tournament-stage-api.mjs +14 -6
  30. package/esm2020/api/user-api.mjs +4 -4
  31. package/esm2020/api/volleyball-game-api.mjs +4 -4
  32. package/esm2020/api/waterpolo-game-api.mjs +4 -4
  33. package/esm2020/http-cookie.interceptor.mjs +4 -4
  34. package/esm2020/models/achievement.mjs +1 -1
  35. package/esm2020/models/basketball-game-config.mjs +1 -1
  36. package/esm2020/models/basketball-game-log.mjs +1 -1
  37. package/esm2020/models/basketball-game-statistic.mjs +1 -1
  38. package/esm2020/models/basketball-game-team-statistic.mjs +1 -1
  39. package/esm2020/models/basketball-profile.mjs +1 -1
  40. package/esm2020/models/basketball-statistic.mjs +1 -1
  41. package/esm2020/models/city.mjs +1 -1
  42. package/esm2020/models/device-info.mjs +1 -1
  43. package/esm2020/models/feedback.mjs +1 -1
  44. package/esm2020/models/file.mjs +1 -1
  45. package/esm2020/models/football-game-config.mjs +1 -1
  46. package/esm2020/models/football-game-log.mjs +1 -1
  47. package/esm2020/models/football-game-statistic.mjs +1 -1
  48. package/esm2020/models/football-game-team-statistic.mjs +1 -1
  49. package/esm2020/models/football-profile.mjs +1 -1
  50. package/esm2020/models/football-statistic.mjs +1 -1
  51. package/esm2020/models/game-bill.mjs +1 -1
  52. package/esm2020/models/game-invite.mjs +1 -1
  53. package/esm2020/models/game-timeline-stages.mjs +1 -1
  54. package/esm2020/models/game-user-disqualification.mjs +1 -1
  55. package/esm2020/models/game-user-limitation.mjs +1 -1
  56. package/esm2020/models/game-user.mjs +1 -1
  57. package/esm2020/models/game.mjs +1 -1
  58. package/esm2020/models/handball-game-config.mjs +1 -1
  59. package/esm2020/models/handball-game-log.mjs +1 -1
  60. package/esm2020/models/handball-game-statistic.mjs +1 -1
  61. package/esm2020/models/handball-game-team-statistic.mjs +1 -1
  62. package/esm2020/models/handball-profile.mjs +1 -1
  63. package/esm2020/models/handball-statistic.mjs +1 -1
  64. package/esm2020/models/hockey-game-config.mjs +1 -1
  65. package/esm2020/models/hockey-game-log.mjs +1 -1
  66. package/esm2020/models/hockey-game-statistic.mjs +1 -1
  67. package/esm2020/models/hockey-game-team-statistic.mjs +1 -1
  68. package/esm2020/models/hockey-profile.mjs +1 -1
  69. package/esm2020/models/hockey-statistic.mjs +1 -1
  70. package/esm2020/models/league-banner.mjs +1 -1
  71. package/esm2020/models/league-court.mjs +1 -1
  72. package/esm2020/models/league-document.mjs +1 -1
  73. package/esm2020/models/league-news.mjs +1 -1
  74. package/esm2020/models/league-partner.mjs +1 -1
  75. package/esm2020/models/league-player-field-value.mjs +1 -1
  76. package/esm2020/models/league-player-field.mjs +1 -1
  77. package/esm2020/models/league-player.mjs +1 -1
  78. package/esm2020/models/league-playlist.mjs +1 -1
  79. package/esm2020/models/league-team-field.mjs +1 -1
  80. package/esm2020/models/league-user.mjs +1 -1
  81. package/esm2020/models/league.mjs +1 -1
  82. package/esm2020/models/media-item.mjs +1 -1
  83. package/esm2020/models/notification-settings.mjs +1 -1
  84. package/esm2020/models/notification.mjs +1 -1
  85. package/esm2020/models/organization-bill.mjs +1 -1
  86. package/esm2020/models/organization-statistic.mjs +1 -1
  87. package/esm2020/models/organization-tariff.mjs +1 -1
  88. package/esm2020/models/organization.mjs +1 -1
  89. package/esm2020/models/playoff.mjs +1 -1
  90. package/esm2020/models/poll.mjs +1 -1
  91. package/esm2020/models/rugby-foul-type.mjs +1 -1
  92. package/esm2020/models/rugby-game-config.mjs +1 -1
  93. package/esm2020/models/rugby-game-log.mjs +1 -1
  94. package/esm2020/models/rugby-game-statistic.mjs +1 -1
  95. package/esm2020/models/rugby-game-team-statistic.mjs +1 -1
  96. package/esm2020/models/rugby-profile.mjs +1 -1
  97. package/esm2020/models/rugby-statistic.mjs +1 -1
  98. package/esm2020/models/season-tournament.mjs +1 -1
  99. package/esm2020/models/sport.mjs +1 -1
  100. package/esm2020/models/team-access.mjs +1 -1
  101. package/esm2020/models/team-achievement.mjs +1 -1
  102. package/esm2020/models/team-event-invite.mjs +1 -1
  103. package/esm2020/models/team-event.mjs +1 -1
  104. package/esm2020/models/team-invite-external.mjs +1 -1
  105. package/esm2020/models/team-invite.mjs +1 -1
  106. package/esm2020/models/team-permission.mjs +1 -1
  107. package/esm2020/models/team-user.mjs +1 -1
  108. package/esm2020/models/team.mjs +1 -1
  109. package/esm2020/models/teams-and-users.mjs +1 -1
  110. package/esm2020/models/tournament-disqualification.mjs +1 -1
  111. package/esm2020/models/tournament-division.mjs +1 -1
  112. package/esm2020/models/tournament-event.mjs +1 -1
  113. package/esm2020/models/tournament-group.mjs +1 -1
  114. package/esm2020/models/tournament-invite.mjs +1 -1
  115. package/esm2020/models/tournament-join-team.mjs +1 -1
  116. package/esm2020/models/tournament-join1x1-data.mjs +1 -1
  117. package/esm2020/models/tournament-news.mjs +1 -1
  118. package/esm2020/models/tournament-round-team.mjs +1 -1
  119. package/esm2020/models/tournament-round.mjs +1 -1
  120. package/esm2020/models/tournament-season.mjs +1 -1
  121. package/esm2020/models/tournament-stage-team.mjs +1 -1
  122. package/esm2020/models/tournament-stage.mjs +1 -1
  123. package/esm2020/models/tournament-team-field-value.mjs +1 -1
  124. package/esm2020/models/tournament-team-user-invite.mjs +1 -1
  125. package/esm2020/models/tournament-team-user.mjs +1 -1
  126. package/esm2020/models/tournament-team.mjs +1 -1
  127. package/esm2020/models/tournament.mjs +1 -1
  128. package/esm2020/models/user-access.mjs +1 -1
  129. package/esm2020/models/user-permission.mjs +1 -1
  130. package/esm2020/models/user-profile.mjs +1 -1
  131. package/esm2020/models/user.mjs +1 -1
  132. package/esm2020/models/util.mjs +5 -2
  133. package/esm2020/models/volleyball-game-config.mjs +1 -1
  134. package/esm2020/models/volleyball-game-log.mjs +1 -1
  135. package/esm2020/models/volleyball-game-statistic.mjs +1 -1
  136. package/esm2020/models/volleyball-game-team-statistic.mjs +1 -1
  137. package/esm2020/models/volleyball-profile.mjs +1 -1
  138. package/esm2020/models/volleyball-statistic.mjs +1 -1
  139. package/esm2020/models/waterpolo-game-config.mjs +1 -1
  140. package/esm2020/models/waterpolo-game-log.mjs +1 -1
  141. package/esm2020/models/waterpolo-game-statistic.mjs +1 -1
  142. package/esm2020/models/waterpolo-game-team-statistic.mjs +1 -1
  143. package/esm2020/models/waterpolo-profile.mjs +1 -1
  144. package/esm2020/models/waterpolo-statistic.mjs +1 -1
  145. package/esm2020/services/base.service.mjs +4 -4
  146. package/esm2020/services/centrifugo.service.mjs +7 -7
  147. package/esm2020/services/config.service.mjs +4 -4
  148. package/esm2020/services/device-info.service.mjs +4 -4
  149. package/esm2020/storage/new.mjs +10 -10
  150. package/esm2020/storage/old-storage-engine.mjs +3 -3
  151. package/esm2020/storage/storage-engine.mjs +2 -2
  152. package/esm2020/websocket/game.websocket.mjs +4 -4
  153. package/fesm2015/mtgame-core.mjs +159 -117
  154. package/fesm2015/mtgame-core.mjs.map +1 -1
  155. package/fesm2020/mtgame-core.mjs +158 -120
  156. package/fesm2020/mtgame-core.mjs.map +1 -1
  157. package/models/base-statistic.d.ts +1 -1
  158. package/models/game.d.ts +1 -1
  159. package/package.json +5 -5
  160. package/services/base.controller.d.ts +1 -1
  161. package/storage/new.d.ts +1 -1
  162. package/storage/storage-engine.d.ts +2 -2
  163. package/utils/data.d.ts +4 -4
  164. /package/{mtgame-core.d.ts → index.d.ts} +0 -0
@@ -126,7 +126,10 @@ function Model(config = {}) {
126
126
  instance[modelKey] = relation.create(data[key]);
127
127
  }
128
128
  else {
129
- instance[modelKey] = data[key];
129
+ const descriptor = Object.getOwnPropertyDescriptor(instance.constructor.prototype, modelKey);
130
+ if (!descriptor || descriptor.set) {
131
+ instance[modelKey] = data[key];
132
+ }
130
133
  }
131
134
  }
132
135
  Object.defineProperty(instance, 'json', {
@@ -1927,9 +1930,9 @@ class BaseService {
1927
1930
  this.store.dispose();
1928
1931
  }
1929
1932
  }
1930
- BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1931
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
1932
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
1933
+ BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1934
+ BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
1935
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaseService, decorators: [{
1933
1936
  type: Injectable,
1934
1937
  args: [{ providedIn: 'root' }]
1935
1938
  }] });
@@ -1960,9 +1963,9 @@ class ConfigService extends BaseService {
1960
1963
  return this.store.value(CONFIG_STORE_KEY) && this.store.value(CONFIG_STORE_KEY)[key];
1961
1964
  }
1962
1965
  }
1963
- ConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigService, deps: [{ token: CONFIG_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1964
- ConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigService, providedIn: 'root' });
1965
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigService, decorators: [{
1966
+ ConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ConfigService, deps: [{ token: CONFIG_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1967
+ ConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ConfigService, providedIn: 'root' });
1968
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ConfigService, decorators: [{
1966
1969
  type: Injectable,
1967
1970
  args: [{ providedIn: 'root' }]
1968
1971
  }], ctorParameters: function () {
@@ -2008,9 +2011,9 @@ class GameBaseApi {
2008
2011
  });
2009
2012
  }
2010
2013
  }
2011
- GameBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GameBaseApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2012
- GameBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GameBaseApi, providedIn: 'root' });
2013
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GameBaseApi, decorators: [{
2014
+ GameBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameBaseApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2015
+ GameBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameBaseApi, providedIn: 'root' });
2016
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameBaseApi, decorators: [{
2014
2017
  type: Injectable,
2015
2018
  args: [{ providedIn: 'root' }]
2016
2019
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2054,9 +2057,9 @@ class BasketballGameApi extends GameBaseApi {
2054
2057
  });
2055
2058
  }
2056
2059
  }
2057
- BasketballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BasketballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2058
- BasketballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BasketballGameApi, providedIn: 'root' });
2059
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BasketballGameApi, decorators: [{
2060
+ BasketballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BasketballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2061
+ BasketballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BasketballGameApi, providedIn: 'root' });
2062
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BasketballGameApi, decorators: [{
2060
2063
  type: Injectable,
2061
2064
  args: [{ providedIn: 'root' }]
2062
2065
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2091,9 +2094,9 @@ class FeedbackApi {
2091
2094
  });
2092
2095
  }
2093
2096
  }
2094
- FeedbackApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FeedbackApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2095
- FeedbackApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FeedbackApi, providedIn: 'root' });
2096
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FeedbackApi, decorators: [{
2097
+ FeedbackApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FeedbackApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2098
+ FeedbackApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FeedbackApi, providedIn: 'root' });
2099
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FeedbackApi, decorators: [{
2097
2100
  type: Injectable,
2098
2101
  args: [{ providedIn: 'root' }]
2099
2102
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2129,9 +2132,9 @@ class FileApi {
2129
2132
  });
2130
2133
  }
2131
2134
  }
2132
- FileApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2133
- FileApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileApi, providedIn: 'root' });
2134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileApi, decorators: [{
2135
+ FileApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FileApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2136
+ FileApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FileApi, providedIn: 'root' });
2137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FileApi, decorators: [{
2135
2138
  type: Injectable,
2136
2139
  args: [{ providedIn: 'root' }]
2137
2140
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2481,9 +2484,9 @@ class HockeyGameApi extends GameBaseApi {
2481
2484
  });
2482
2485
  }
2483
2486
  }
2484
- HockeyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HockeyGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2485
- HockeyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HockeyGameApi, providedIn: 'root' });
2486
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HockeyGameApi, decorators: [{
2487
+ HockeyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HockeyGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2488
+ HockeyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HockeyGameApi, providedIn: 'root' });
2489
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HockeyGameApi, decorators: [{
2487
2490
  type: Injectable,
2488
2491
  args: [{ providedIn: 'root' }]
2489
2492
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2776,9 +2779,9 @@ class FootballGameApi extends GameBaseApi {
2776
2779
  });
2777
2780
  }
2778
2781
  }
2779
- FootballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FootballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2780
- FootballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FootballGameApi, providedIn: 'root' });
2781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FootballGameApi, decorators: [{
2782
+ FootballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FootballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2783
+ FootballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FootballGameApi, providedIn: 'root' });
2784
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FootballGameApi, decorators: [{
2782
2785
  type: Injectable,
2783
2786
  args: [{ providedIn: 'root' }]
2784
2787
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2994,9 +2997,9 @@ class HandballGameApi extends GameBaseApi {
2994
2997
  });
2995
2998
  }
2996
2999
  }
2997
- HandballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HandballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2998
- HandballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HandballGameApi, providedIn: 'root' });
2999
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HandballGameApi, decorators: [{
3000
+ HandballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HandballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3001
+ HandballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HandballGameApi, providedIn: 'root' });
3002
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HandballGameApi, decorators: [{
3000
3003
  type: Injectable,
3001
3004
  args: [{ providedIn: 'root' }]
3002
3005
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -3639,9 +3642,9 @@ class TournamentApi {
3639
3642
  });
3640
3643
  }
3641
3644
  }
3642
- TournamentApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3643
- TournamentApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentApi, providedIn: 'root' });
3644
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentApi, decorators: [{
3645
+ TournamentApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3646
+ TournamentApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentApi, providedIn: 'root' });
3647
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentApi, decorators: [{
3645
3648
  type: Injectable,
3646
3649
  args: [{ providedIn: 'root' }]
3647
3650
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -3818,6 +3821,22 @@ class LeagueApi {
3818
3821
  return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/tournaments/`, { params }).pipe(map(result => result.map(item => new Tournament(item)))).toPromise();
3819
3822
  });
3820
3823
  }
3824
+ getTournamentsPaginated(leagueId, filters, page = 1, size = 100) {
3825
+ return __awaiter(this, void 0, void 0, function* () {
3826
+ let params = new HttpParams()
3827
+ .set('page', page.toString())
3828
+ .set('size', size.toString());
3829
+ if (filters) {
3830
+ if (filters.statuses) {
3831
+ params = params.set('statuses', filters.statuses.map(s => TournamentStatuses[s]).join(','));
3832
+ }
3833
+ }
3834
+ return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/tournaments/`, { params, observe: 'response' }).pipe(map(result => ({
3835
+ total: +result.headers.get('X-Page-Count'),
3836
+ data: result.body.map(item => new Tournament(item))
3837
+ }))).toPromise();
3838
+ });
3839
+ }
3821
3840
  getEvents(leagueId, page, size, filters) {
3822
3841
  return __awaiter(this, void 0, void 0, function* () {
3823
3842
  let params = new HttpParams().set('page', page.toString())
@@ -3909,9 +3928,9 @@ class LeagueApi {
3909
3928
  });
3910
3929
  }
3911
3930
  }
3912
- LeagueApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LeagueApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3913
- LeagueApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LeagueApi, providedIn: 'root' });
3914
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LeagueApi, decorators: [{
3931
+ LeagueApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3932
+ LeagueApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueApi, providedIn: 'root' });
3933
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueApi, decorators: [{
3915
3934
  type: Injectable,
3916
3935
  args: [{ providedIn: 'root' }]
3917
3936
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -3969,9 +3988,9 @@ class LeagueNewsApi {
3969
3988
  });
3970
3989
  }
3971
3990
  }
3972
- LeagueNewsApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LeagueNewsApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3973
- LeagueNewsApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LeagueNewsApi, providedIn: 'root' });
3974
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LeagueNewsApi, decorators: [{
3991
+ LeagueNewsApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueNewsApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3992
+ LeagueNewsApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueNewsApi, providedIn: 'root' });
3993
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueNewsApi, decorators: [{
3975
3994
  type: Injectable,
3976
3995
  args: [{ providedIn: 'root' }]
3977
3996
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -3992,9 +4011,9 @@ class LeaguePlayerApi {
3992
4011
  return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league_player/${leaguePlayerId}/tournament_users/`, { params }).pipe(map(response => response.map(item => new TournamentTeamUser(item)))).toPromise();
3993
4012
  }
3994
4013
  }
3995
- LeaguePlayerApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LeaguePlayerApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3996
- LeaguePlayerApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LeaguePlayerApi, providedIn: 'root' });
3997
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LeaguePlayerApi, decorators: [{
4014
+ LeaguePlayerApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeaguePlayerApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4015
+ LeaguePlayerApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeaguePlayerApi, providedIn: 'root' });
4016
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeaguePlayerApi, decorators: [{
3998
4017
  type: Injectable,
3999
4018
  args: [{ providedIn: 'root' }]
4000
4019
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -4099,9 +4118,9 @@ class MediaApi {
4099
4118
  });
4100
4119
  }
4101
4120
  }
4102
- MediaApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MediaApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4103
- MediaApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MediaApi, providedIn: 'root' });
4104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MediaApi, decorators: [{
4121
+ MediaApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: MediaApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4122
+ MediaApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: MediaApi, providedIn: 'root' });
4123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: MediaApi, decorators: [{
4105
4124
  type: Injectable,
4106
4125
  args: [{ providedIn: 'root' }]
4107
4126
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -4481,9 +4500,9 @@ class NotificationBaseApi {
4481
4500
  });
4482
4501
  }
4483
4502
  }
4484
- NotificationBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBaseApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4485
- NotificationBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBaseApi, providedIn: 'root' });
4486
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBaseApi, decorators: [{
4503
+ NotificationBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationBaseApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4504
+ NotificationBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationBaseApi, providedIn: 'root' });
4505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationBaseApi, decorators: [{
4487
4506
  type: Injectable,
4488
4507
  args: [{ providedIn: 'root' }]
4489
4508
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -4494,9 +4513,9 @@ class NotificationApi extends NotificationBaseApi {
4494
4513
  this.apiUrl = '/api/v1';
4495
4514
  }
4496
4515
  }
4497
- NotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
4498
- NotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationApi, providedIn: 'root' });
4499
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationApi, decorators: [{
4516
+ NotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
4517
+ NotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationApi, providedIn: 'root' });
4518
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationApi, decorators: [{
4500
4519
  type: Injectable,
4501
4520
  args: [{ providedIn: 'root' }]
4502
4521
  }] });
@@ -4507,9 +4526,9 @@ class OrgNotificationApi extends NotificationBaseApi {
4507
4526
  this.apiUrl = '/org/api/v1';
4508
4527
  }
4509
4528
  }
4510
- OrgNotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OrgNotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
4511
- OrgNotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OrgNotificationApi, providedIn: 'root' });
4512
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OrgNotificationApi, decorators: [{
4529
+ OrgNotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: OrgNotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
4530
+ OrgNotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: OrgNotificationApi, providedIn: 'root' });
4531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: OrgNotificationApi, decorators: [{
4513
4532
  type: Injectable,
4514
4533
  args: [{ providedIn: 'root' }]
4515
4534
  }] });
@@ -4534,9 +4553,9 @@ class ReferenceApi {
4534
4553
  });
4535
4554
  }
4536
4555
  }
4537
- ReferenceApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReferenceApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4538
- ReferenceApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReferenceApi, providedIn: 'root' });
4539
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReferenceApi, decorators: [{
4556
+ ReferenceApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ReferenceApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4557
+ ReferenceApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ReferenceApi, providedIn: 'root' });
4558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ReferenceApi, decorators: [{
4540
4559
  type: Injectable,
4541
4560
  args: [{ providedIn: 'root' }]
4542
4561
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -4795,9 +4814,9 @@ class RugbyGameApi extends GameBaseApi {
4795
4814
  });
4796
4815
  }
4797
4816
  }
4798
- RugbyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RugbyGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4799
- RugbyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RugbyGameApi, providedIn: 'root' });
4800
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RugbyGameApi, decorators: [{
4817
+ RugbyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: RugbyGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4818
+ RugbyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: RugbyGameApi, providedIn: 'root' });
4819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: RugbyGameApi, decorators: [{
4801
4820
  type: Injectable,
4802
4821
  args: [{ providedIn: 'root' }]
4803
4822
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5199,9 +5218,9 @@ class TeamApi {
5199
5218
  });
5200
5219
  }
5201
5220
  }
5202
- TeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TeamApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5203
- TeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TeamApi, providedIn: 'root' });
5204
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TeamApi, decorators: [{
5221
+ TeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5222
+ TeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamApi, providedIn: 'root' });
5223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamApi, decorators: [{
5205
5224
  type: Injectable,
5206
5225
  args: [{ providedIn: 'root' }]
5207
5226
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5267,9 +5286,9 @@ class TeamEventApi {
5267
5286
  });
5268
5287
  }
5269
5288
  }
5270
- TeamEventApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TeamEventApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5271
- TeamEventApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TeamEventApi, providedIn: 'root' });
5272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TeamEventApi, decorators: [{
5289
+ TeamEventApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamEventApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5290
+ TeamEventApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamEventApi, providedIn: 'root' });
5291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamEventApi, decorators: [{
5273
5292
  type: Injectable,
5274
5293
  args: [{ providedIn: 'root' }]
5275
5294
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5346,9 +5365,9 @@ class TournamentJoinApi {
5346
5365
  });
5347
5366
  }
5348
5367
  }
5349
- TournamentJoinApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentJoinApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5350
- TournamentJoinApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentJoinApi, providedIn: 'root' });
5351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentJoinApi, decorators: [{
5368
+ TournamentJoinApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentJoinApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5369
+ TournamentJoinApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentJoinApi, providedIn: 'root' });
5370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentJoinApi, decorators: [{
5352
5371
  type: Injectable,
5353
5372
  args: [{ providedIn: 'root' }]
5354
5373
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5431,9 +5450,9 @@ class TournamentRoundApi {
5431
5450
  });
5432
5451
  }
5433
5452
  }
5434
- TournamentRoundApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentRoundApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5435
- TournamentRoundApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentRoundApi, providedIn: 'root' });
5436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentRoundApi, decorators: [{
5453
+ TournamentRoundApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentRoundApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5454
+ TournamentRoundApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentRoundApi, providedIn: 'root' });
5455
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentRoundApi, decorators: [{
5437
5456
  type: Injectable,
5438
5457
  args: [{ providedIn: 'root' }]
5439
5458
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5453,6 +5472,22 @@ class TournamentSeasonApi {
5453
5472
  return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_season/${seasonId}/tournaments/`).pipe(map(result => result.map(item => new Tournament(item)))).toPromise();
5454
5473
  });
5455
5474
  }
5475
+ getTournamentsPaginated(seasonId, filters, page = 1, size = 100) {
5476
+ return __awaiter(this, void 0, void 0, function* () {
5477
+ let params = new HttpParams()
5478
+ .set('page', page.toString())
5479
+ .set('size', size.toString());
5480
+ if (filters) {
5481
+ if (filters.statuses) {
5482
+ params = params.set('statuses', filters.statuses.map(s => TournamentStatuses[s]).join(','));
5483
+ }
5484
+ }
5485
+ return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_season/${seasonId}/tournaments/`, { params, observe: 'response' }).pipe(map(result => ({
5486
+ total: +result.headers.get('X-Page-Count'),
5487
+ data: result.body.map(item => new Tournament(item))
5488
+ }))).toPromise();
5489
+ });
5490
+ }
5456
5491
  getGames(seasonId, page, size, filters) {
5457
5492
  return __awaiter(this, void 0, void 0, function* () {
5458
5493
  let params = new HttpParams().set('page', page.toString());
@@ -5524,9 +5559,9 @@ class TournamentSeasonApi {
5524
5559
  });
5525
5560
  }
5526
5561
  }
5527
- TournamentSeasonApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentSeasonApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5528
- TournamentSeasonApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentSeasonApi, providedIn: 'root' });
5529
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentSeasonApi, decorators: [{
5562
+ TournamentSeasonApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentSeasonApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5563
+ TournamentSeasonApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentSeasonApi, providedIn: 'root' });
5564
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentSeasonApi, decorators: [{
5530
5565
  type: Injectable,
5531
5566
  args: [{ providedIn: 'root' }]
5532
5567
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5564,17 +5599,24 @@ class TournamentStageApi {
5564
5599
  .toPromise();
5565
5600
  });
5566
5601
  }
5567
- getTeams(stageId) {
5602
+ getTeams(stageId, groupId, short) {
5568
5603
  return __awaiter(this, void 0, void 0, function* () {
5569
- return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_stage/${stageId}/teams/`)
5604
+ let params = new HttpParams();
5605
+ if (groupId) {
5606
+ params = params.set('group_id', groupId.toString());
5607
+ }
5608
+ if (short) {
5609
+ params = params.set('short', '1');
5610
+ }
5611
+ return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_stage/${stageId}/teams/`, { params })
5570
5612
  .pipe(map(result => result.map(item => new TournamentStageTeam(item))))
5571
5613
  .toPromise();
5572
5614
  });
5573
5615
  }
5574
5616
  }
5575
- TournamentStageApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentStageApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5576
- TournamentStageApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentStageApi, providedIn: 'root' });
5577
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TournamentStageApi, decorators: [{
5617
+ TournamentStageApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentStageApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5618
+ TournamentStageApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentStageApi, providedIn: 'root' });
5619
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentStageApi, decorators: [{
5578
5620
  type: Injectable,
5579
5621
  args: [{ providedIn: 'root' }]
5580
5622
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5857,9 +5899,9 @@ class UserApi {
5857
5899
  });
5858
5900
  }
5859
5901
  }
5860
- UserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UserApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5861
- UserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UserApi, providedIn: 'root' });
5862
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UserApi, decorators: [{
5902
+ UserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: UserApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5903
+ UserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: UserApi, providedIn: 'root' });
5904
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: UserApi, decorators: [{
5863
5905
  type: Injectable,
5864
5906
  args: [{ providedIn: 'root' }]
5865
5907
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -6076,9 +6118,9 @@ class VolleyballGameApi extends GameBaseApi {
6076
6118
  });
6077
6119
  }
6078
6120
  }
6079
- VolleyballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: VolleyballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6080
- VolleyballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: VolleyballGameApi, providedIn: 'root' });
6081
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: VolleyballGameApi, decorators: [{
6121
+ VolleyballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: VolleyballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6122
+ VolleyballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: VolleyballGameApi, providedIn: 'root' });
6123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: VolleyballGameApi, decorators: [{
6082
6124
  type: Injectable,
6083
6125
  args: [{ providedIn: 'root' }]
6084
6126
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -6742,9 +6784,9 @@ class WaterpoloGameApi extends GameBaseApi {
6742
6784
  });
6743
6785
  }
6744
6786
  }
6745
- WaterpoloGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaterpoloGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6746
- WaterpoloGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaterpoloGameApi, providedIn: 'root' });
6747
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaterpoloGameApi, decorators: [{
6787
+ WaterpoloGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: WaterpoloGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6788
+ WaterpoloGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: WaterpoloGameApi, providedIn: 'root' });
6789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: WaterpoloGameApi, decorators: [{
6748
6790
  type: Injectable,
6749
6791
  args: [{ providedIn: 'root' }]
6750
6792
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -6770,9 +6812,9 @@ class PublicTeamApi {
6770
6812
  });
6771
6813
  }
6772
6814
  }
6773
- PublicTeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PublicTeamApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6774
- PublicTeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PublicTeamApi, providedIn: 'root' });
6775
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PublicTeamApi, decorators: [{
6815
+ PublicTeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicTeamApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6816
+ PublicTeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicTeamApi, providedIn: 'root' });
6817
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicTeamApi, decorators: [{
6776
6818
  type: Injectable,
6777
6819
  args: [{ providedIn: 'root' }]
6778
6820
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -6798,9 +6840,9 @@ class PublicUserApi {
6798
6840
  return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/public_user/${userId}/league_player/`, { params }).pipe(map(result => new LeaguePlayer(result))).toPromise();
6799
6841
  }
6800
6842
  }
6801
- PublicUserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PublicUserApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6802
- PublicUserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PublicUserApi, providedIn: 'root' });
6803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PublicUserApi, decorators: [{
6843
+ PublicUserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicUserApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6844
+ PublicUserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicUserApi, providedIn: 'root' });
6845
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicUserApi, decorators: [{
6804
6846
  type: Injectable,
6805
6847
  args: [{ providedIn: 'root' }]
6806
6848
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -7345,6 +7387,9 @@ TournamentJoin1x1Data = __decorate([
7345
7387
  ], TournamentJoin1x1Data);
7346
7388
 
7347
7389
  class CentrifugoService {
7390
+ get connected$() {
7391
+ return this.connectedSubject;
7392
+ }
7348
7393
  constructor(httpClient, configService, platformId) {
7349
7394
  this.httpClient = httpClient;
7350
7395
  this.configService = configService;
@@ -7353,9 +7398,6 @@ class CentrifugoService {
7353
7398
  this.subscriptions = {};
7354
7399
  this.connectedSubject = new BehaviorSubject(false);
7355
7400
  }
7356
- get connected$() {
7357
- return this.connectedSubject;
7358
- }
7359
7401
  listen(channel) {
7360
7402
  if (!isPlatformBrowser(this.platformId)) {
7361
7403
  return new Observable(observer => {
@@ -7453,9 +7495,9 @@ class CentrifugoService {
7453
7495
  this.channels$[channel].next(message);
7454
7496
  }
7455
7497
  }
7456
- CentrifugoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CentrifugoService, deps: [{ token: i1.HttpClient }, { token: ConfigService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7457
- CentrifugoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CentrifugoService, providedIn: 'root' });
7458
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CentrifugoService, decorators: [{
7498
+ CentrifugoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: CentrifugoService, deps: [{ token: i1.HttpClient }, { token: ConfigService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7499
+ CentrifugoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: CentrifugoService, providedIn: 'root' });
7500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: CentrifugoService, decorators: [{
7459
7501
  type: Injectable,
7460
7502
  args: [{ providedIn: 'root' }]
7461
7503
  }], ctorParameters: function () {
@@ -7504,9 +7546,9 @@ class DeviceInfoService {
7504
7546
  });
7505
7547
  }
7506
7548
  }
7507
- DeviceInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DeviceInfoService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7508
- DeviceInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DeviceInfoService, providedIn: 'root' });
7509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DeviceInfoService, decorators: [{
7549
+ DeviceInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: DeviceInfoService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7550
+ DeviceInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: DeviceInfoService, providedIn: 'root' });
7551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: DeviceInfoService, decorators: [{
7510
7552
  type: Injectable,
7511
7553
  args: [{ providedIn: 'root' }]
7512
7554
  }], ctorParameters: function () {
@@ -7549,13 +7591,13 @@ class OldStorageEngine {
7549
7591
  if (!this.fields[key]) {
7550
7592
  return;
7551
7593
  }
7552
- this.setItem(`${this.name}_${key}`, this.fields[key].json(value));
7594
+ this.setItem(`${this.name}_${key.toString()}`, this.fields[key].json(value));
7553
7595
  }
7554
7596
  get(key) {
7555
7597
  if (!this.fields[key]) {
7556
7598
  return;
7557
7599
  }
7558
- const value = this.getItem(`${this.name}_${key}`);
7600
+ const value = this.getItem(`${this.name}_${key.toString()}`);
7559
7601
  return this.fields[key].create(value);
7560
7602
  }
7561
7603
  clear() {
@@ -7583,11 +7625,6 @@ class OldLocalStorageEngine extends OldStorageEngine {
7583
7625
  }
7584
7626
 
7585
7627
  class Storage {
7586
- constructor(initial, engine) {
7587
- this.initial = initial;
7588
- this.subject = new BehaviorSubject(Object.assign(Object.assign({}, initial), (engine ? engine.getAll() : {})));
7589
- this.engine = engine;
7590
- }
7591
7628
  get data$() {
7592
7629
  return this.subject.asObservable().pipe(distinctUntilChanged((oldValue, newValue) => Object.keys(newValue).filter(key => newValue[key] !== oldValue[key]).length === 0 &&
7593
7630
  Object.keys(newValue).length === Object.keys(oldValue).length));
@@ -7602,6 +7639,11 @@ class Storage {
7602
7639
  get data() {
7603
7640
  return this.subject.getValue();
7604
7641
  }
7642
+ constructor(initial, engine) {
7643
+ this.initial = initial;
7644
+ this.subject = new BehaviorSubject(Object.assign(Object.assign({}, initial), (engine ? engine.getAll() : {})));
7645
+ this.engine = engine;
7646
+ }
7605
7647
  update(data) {
7606
7648
  this.subject.next(Object.assign(Object.assign({}, this.subject.value), data));
7607
7649
  if (this.engine) {
@@ -7611,7 +7653,7 @@ class Storage {
7611
7653
  reset() {
7612
7654
  this.subject.next(Object.assign({}, this.initial));
7613
7655
  }
7614
- mergeWith(data$, mapper) {
7656
+ mergeWith(data$, mapper = data => data) {
7615
7657
  data$.subscribe(data => this.update(mapper(data)));
7616
7658
  return this;
7617
7659
  }
@@ -7648,7 +7690,7 @@ class StorageEngine {
7648
7690
  }
7649
7691
  }
7650
7692
  getValue(key) {
7651
- const value = this.getItem(`${this.name}_${key}`);
7693
+ const value = this.getItem(`${this.name}_${key.toString()}`);
7652
7694
  return this.fields[key].create(value);
7653
7695
  }
7654
7696
  getAll() {
@@ -7868,9 +7910,9 @@ class HttpCookieInterceptor {
7868
7910
  return next.handle(req);
7869
7911
  }
7870
7912
  }
7871
- HttpCookieInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HttpCookieInterceptor, deps: [{ token: i0.Injector }, { token: ConfigService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7872
- HttpCookieInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HttpCookieInterceptor });
7873
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HttpCookieInterceptor, decorators: [{
7913
+ HttpCookieInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HttpCookieInterceptor, deps: [{ token: i0.Injector }, { token: ConfigService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7914
+ HttpCookieInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HttpCookieInterceptor });
7915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HttpCookieInterceptor, decorators: [{
7874
7916
  type: Injectable
7875
7917
  }], ctorParameters: function () {
7876
7918
  return [{ type: i0.Injector }, { type: ConfigService }, { type: undefined, decorators: [{
@@ -7926,9 +7968,9 @@ class GameWebsocket {
7926
7968
  return this.centrifugoService.listen(`game_${gameId}`).pipe(filter(item => item.action === GameWebsocketEvents.GAME_USER_DELETED), map(item => new GameUser(item.data)));
7927
7969
  }
7928
7970
  }
7929
- GameWebsocket.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GameWebsocket, deps: [{ token: CentrifugoService }], target: i0.ɵɵFactoryTarget.Injectable });
7930
- GameWebsocket.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GameWebsocket, providedIn: 'root' });
7931
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GameWebsocket, decorators: [{
7971
+ GameWebsocket.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameWebsocket, deps: [{ token: CentrifugoService }], target: i0.ɵɵFactoryTarget.Injectable });
7972
+ GameWebsocket.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameWebsocket, providedIn: 'root' });
7973
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameWebsocket, decorators: [{
7932
7974
  type: Injectable,
7933
7975
  args: [{ providedIn: 'root' }]
7934
7976
  }], ctorParameters: function () { return [{ type: CentrifugoService }]; } });