jp.ms.common.modules 1.0.20 → 1.0.22
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/dto/app-screen/app-screen-dialog.dto.d.ts +12 -0
- package/dist/dto/app-screen/app-screen-dialog.dto.js +90 -0
- package/dist/dto/app-screen/app-screen-dialog.dto.js.map +1 -0
- package/dist/dto/app-screen/app-screen-field-list-item.dto.d.ts +7 -0
- package/dist/dto/app-screen/app-screen-field-list-item.dto.js +63 -0
- package/dist/dto/app-screen/app-screen-field-list-item.dto.js.map +1 -0
- package/dist/dto/app-screen/app-screen-field.dto.d.ts +10 -0
- package/dist/dto/app-screen/app-screen-field.dto.js +83 -0
- package/dist/dto/app-screen/app-screen-field.dto.js.map +1 -0
- package/dist/dto/app-screen/app-screen.dto.d.ts +3 -0
- package/dist/dto/app-screen/app-screen.dto.js +12 -0
- package/dist/dto/app-screen/app-screen.dto.js.map +1 -1
- package/dist/dto/common/player-check-state.dto.d.ts +2 -2
- package/dist/dto/common/player-check-state.dto.js.map +1 -1
- package/dist/modules/base-achievements/base-achievements.module.d.ts +15 -0
- package/dist/modules/base-achievements/base-achievements.module.js +138 -0
- package/dist/modules/base-achievements/base-achievements.module.js.map +1 -0
- package/dist/modules/base-achievements/index.d.ts +1 -0
- package/dist/modules/base-achievements/index.js +6 -0
- package/dist/modules/base-achievements/index.js.map +1 -0
- package/dist/modules/event-bus/events-bus.app.subscribe.service.d.ts +7 -0
- package/dist/modules/event-bus/events-bus.app.subscribe.service.js +32 -0
- package/dist/modules/event-bus/events-bus.app.subscribe.service.js.map +1 -0
- package/dist/modules/event-bus/events-bus.main-tables.subscribe.service.d.ts +11 -0
- package/dist/modules/event-bus/events-bus.main-tables.subscribe.service.js +43 -0
- package/dist/modules/event-bus/events-bus.main-tables.subscribe.service.js.map +1 -0
- package/dist/modules/event-bus/events-bus.many-tables-tournament.subscribe.service.d.ts +3 -0
- package/dist/modules/event-bus/events-bus.many-tables-tournament.subscribe.service.js +18 -0
- package/dist/modules/event-bus/events-bus.many-tables-tournament.subscribe.service.js.map +1 -0
- package/dist/modules/event-bus/events-bus.module.d.ts +2 -0
- package/dist/modules/event-bus/events-bus.module.js +35 -0
- package/dist/modules/event-bus/events-bus.module.js.map +1 -0
- package/dist/modules/event-bus/events-bus.one-table-tournament.subscribe.service.d.ts +3 -0
- package/dist/modules/event-bus/events-bus.one-table-tournament.subscribe.service.js +18 -0
- package/dist/modules/event-bus/events-bus.one-table-tournament.subscribe.service.js.map +1 -0
- package/dist/modules/event-bus/events-bus.tournament.subscribe.service.d.ts +7 -0
- package/dist/modules/event-bus/events-bus.tournament.subscribe.service.js +18 -0
- package/dist/modules/event-bus/events-bus.tournament.subscribe.service.js.map +1 -0
- package/dist/modules/event-bus/index.d.ts +5 -0
- package/dist/modules/event-bus/index.js +14 -0
- package/dist/modules/event-bus/index.js.map +1 -0
- package/dist/modules/index.d.ts +2 -0
- package/dist/modules/index.js +6 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/main/main-tables-list-screen.view.d.ts +9 -0
- package/dist/modules/main/main-tables-list-screen.view.js +38 -0
- package/dist/modules/main/main-tables-list-screen.view.js.map +1 -0
- package/dist/modules/main/main.controller.d.ts +4 -2
- package/dist/modules/main/main.controller.js +23 -4
- package/dist/modules/main/main.controller.js.map +1 -1
- package/dist/modules/main/main.module.d.ts +7 -1
- package/dist/modules/main/main.module.js +29 -3
- package/dist/modules/main/main.module.js.map +1 -1
- package/dist/modules/main/main.service.d.ts +10 -3
- package/dist/modules/main/main.service.js +54 -26
- package/dist/modules/main/main.service.js.map +1 -1
- package/dist/modules/many-tables-tournament/many-tables-tournament-status-screen.view.d.ts +7 -0
- package/dist/modules/many-tables-tournament/many-tables-tournament-status-screen.view.js +19 -0
- package/dist/modules/many-tables-tournament/many-tables-tournament-status-screen.view.js.map +1 -0
- package/dist/modules/many-tables-tournament/many-tables-tournament-tables-list-screen.view.d.ts +7 -0
- package/dist/modules/many-tables-tournament/many-tables-tournament-tables-list-screen.view.js +18 -0
- package/dist/modules/many-tables-tournament/many-tables-tournament-tables-list-screen.view.js.map +1 -0
- package/dist/modules/many-tables-tournament/many-tables-tournament.controller.d.ts +4 -1
- package/dist/modules/many-tables-tournament/many-tables-tournament.controller.js +35 -1
- package/dist/modules/many-tables-tournament/many-tables-tournament.controller.js.map +1 -1
- package/dist/modules/many-tables-tournament/many-tables-tournament.module.d.ts +9 -1
- package/dist/modules/many-tables-tournament/many-tables-tournament.module.js +22 -2
- package/dist/modules/many-tables-tournament/many-tables-tournament.module.js.map +1 -1
- package/dist/modules/many-tables-tournament/many-tables-tournament.service.d.ts +4 -1
- package/dist/modules/many-tables-tournament/many-tables-tournament.service.js +34 -10
- package/dist/modules/many-tables-tournament/many-tables-tournament.service.js.map +1 -1
- package/dist/modules/menu/menu-screen.view.d.ts +7 -0
- package/dist/modules/menu/menu-screen.view.js +18 -0
- package/dist/modules/menu/menu-screen.view.js.map +1 -0
- package/dist/modules/menu/menu.service.d.ts +1 -1
- package/dist/modules/menu/menu.service.js +3 -5
- package/dist/modules/menu/menu.service.js.map +1 -1
- package/dist/modules/one-table-tournament/one-table-tournament-status-screen.view.d.ts +7 -0
- package/dist/modules/one-table-tournament/one-table-tournament-status-screen.view.js +19 -0
- package/dist/modules/one-table-tournament/one-table-tournament-status-screen.view.js.map +1 -0
- package/dist/modules/one-table-tournament/one-table-tournament.controller.d.ts +3 -1
- package/dist/modules/one-table-tournament/one-table-tournament.controller.js +23 -1
- package/dist/modules/one-table-tournament/one-table-tournament.controller.js.map +1 -1
- package/dist/modules/one-table-tournament/one-table-tournament.module.d.ts +9 -1
- package/dist/modules/one-table-tournament/one-table-tournament.module.js +22 -2
- package/dist/modules/one-table-tournament/one-table-tournament.module.js.map +1 -1
- package/dist/modules/one-table-tournament/one-table-tournament.service.d.ts +3 -1
- package/dist/modules/one-table-tournament/one-table-tournament.service.js +19 -6
- package/dist/modules/one-table-tournament/one-table-tournament.service.js.map +1 -1
- package/dist/modules/simple-rooms-manager/simple-rooms-manager.service.d.ts +7 -2
- package/dist/modules/simple-rooms-manager/simple-rooms-manager.service.js +20 -8
- package/dist/modules/simple-rooms-manager/simple-rooms-manager.service.js.map +1 -1
- package/dist/modules/tournament-many-tables-rooms-manager/tournament-many-tables-rooms-manager.service.d.ts +7 -2
- package/dist/modules/tournament-many-tables-rooms-manager/tournament-many-tables-rooms-manager.service.js +24 -5
- package/dist/modules/tournament-many-tables-rooms-manager/tournament-many-tables-rooms-manager.service.js.map +1 -1
- package/dist/modules/tournament-one-table-rooms-manager/tournament-one-table-rooms-manager.service.d.ts +5 -1
- package/dist/modules/tournament-one-table-rooms-manager/tournament-one-table-rooms-manager.service.js +17 -5
- package/dist/modules/tournament-one-table-rooms-manager/tournament-one-table-rooms-manager.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/views/index.d.ts +1 -0
- package/dist/views/index.js +6 -0
- package/dist/views/index.js.map +1 -0
- package/dist/views/tournament-buy-ticket-dialog.view.d.ts +4 -0
- package/dist/views/tournament-buy-ticket-dialog.view.js +11 -0
- package/dist/views/tournament-buy-ticket-dialog.view.js.map +1 -0
- package/package.json +7 -7
- package/src/dto/app-screen/app-screen-dialog.dto.ts +64 -0
- package/src/dto/app-screen/app-screen-field-list-item.dto.ts +42 -0
- package/src/dto/app-screen/app-screen-field.dto.ts +59 -0
- package/src/dto/app-screen/app-screen.dto.ts +12 -1
- package/src/dto/common/player-check-state.dto.ts +2 -2
- package/src/modules/base-achievements/base-achievements.module.ts +163 -0
- package/src/modules/base-achievements/index.ts +1 -0
- package/src/modules/event-bus/events-bus.app.subscribe.service.ts +21 -0
- package/src/modules/event-bus/events-bus.main-tables.subscribe.service.ts +34 -0
- package/src/modules/event-bus/events-bus.many-tables-tournament.subscribe.service.ts +6 -0
- package/src/modules/event-bus/events-bus.module.ts +23 -0
- package/src/modules/event-bus/events-bus.one-table-tournament.subscribe.service.ts +6 -0
- package/src/modules/event-bus/events-bus.tournament.subscribe.service.ts +19 -0
- package/src/modules/event-bus/index.ts +5 -0
- package/src/modules/index.ts +2 -1
- package/src/modules/main/main-tables-list-screen.view.ts +107 -0
- package/src/modules/main/main.controller.ts +16 -7
- package/src/modules/main/main.module.ts +30 -5
- package/src/modules/main/main.service.ts +66 -82
- package/src/modules/many-tables-tournament/index.ts +1 -1
- package/src/modules/many-tables-tournament/many-tables-tournament-status-screen.view.ts +59 -0
- package/src/modules/many-tables-tournament/many-tables-tournament-tables-list-screen.view.ts +53 -0
- package/src/modules/many-tables-tournament/many-tables-tournament.controller.ts +36 -11
- package/src/modules/many-tables-tournament/many-tables-tournament.module.ts +21 -4
- package/src/modules/many-tables-tournament/many-tables-tournament.service.ts +68 -73
- package/src/modules/menu/menu-screen.view.ts +48 -0
- package/src/modules/menu/menu.service.ts +14 -32
- package/src/modules/one-table-tournament/one-table-tournament-status-screen.view.ts +65 -0
- package/src/modules/one-table-tournament/one-table-tournament.controller.ts +23 -7
- package/src/modules/one-table-tournament/one-table-tournament.module.ts +21 -4
- package/src/modules/one-table-tournament/one-table-tournament.service.ts +39 -46
- package/src/modules/simple-rooms-manager/simple-rooms-manager.service.ts +30 -17
- package/src/modules/tournament-many-tables-rooms-manager/tournament-many-tables-rooms-manager.service.ts +39 -16
- package/src/modules/tournament-one-table-rooms-manager/tournament-one-table-rooms-manager.service.ts +48 -35
- package/src/views/index.ts +1 -0
- package/src/views/tournament-buy-ticket-dialog.view.ts +21 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ManyTablesTournamentStatusScreenView = void 0;
|
|
4
|
+
const jp_common_models_1 = require("jp.common.models");
|
|
5
|
+
class ManyTablesTournamentStatusScreenView extends jp_common_models_1.UniversalScreenView {
|
|
6
|
+
tournament;
|
|
7
|
+
constructor(localeService, lang, tournament) {
|
|
8
|
+
super(localeService, lang);
|
|
9
|
+
this.tournament = tournament;
|
|
10
|
+
}
|
|
11
|
+
build() {
|
|
12
|
+
return jp_common_models_1.AppScreen.CreateStatusScreen(jp_common_models_1.AppScreenIdEnum.ROOMS)
|
|
13
|
+
.addAppBar(jp_common_models_1.AppScreenAppBar.CreateStatusAppBar(this.localeService.t('common.rooms.screen.title', { lang: this.lang }), jp_common_models_1.AppScreenSectionButton.CreateArrowBackButton(this.localeService.t('common.button.back', { lang: this.lang }))))
|
|
14
|
+
.addSection((jp_common_models_1.AppScreenSection.CreateStatusHeader('status', 'description', jp_common_models_1.AppScreenSectionImage.CreateIconImage(jp_common_models_1.AppScreenIconEnum.EMOJI_EVENTS), jp_common_models_1.AppScreenSectionButtons.CreatePrimaryButtonSection(jp_common_models_1.AppScreenSectionButton.CreateTextButton('button')))))
|
|
15
|
+
.addSection(jp_common_models_1.AppScreenSection.CreateCardListSection('id1', this.tournament.getParticipants().map((item) => jp_common_models_1.AppScreenSectionListItem.CreateCardListItemMini(item.playerId, item.playerName, '', jp_common_models_1.AppScreenSectionImage.CreateUrlImage(item.playerAvatarUrl), true, ''))));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ManyTablesTournamentStatusScreenView = ManyTablesTournamentStatusScreenView;
|
|
19
|
+
//# sourceMappingURL=many-tables-tournament-status-screen.view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"many-tables-tournament-status-screen.view.js","sourceRoot":"","sources":["../../../src/modules/many-tables-tournament/many-tables-tournament-status-screen.view.ts"],"names":[],"mappings":";;;AAAA,uDAa0B;AAG1B,MAAa,oCAAqC,SAAQ,sCAAmB;IACxD,UAAU,CAA2B;IAEtD,YACI,aAA6B,EAC7B,IAAY,EACZ,UAAoC;QAEpC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,KAAK;QACD,OAAO,4BAAS,CAAC,kBAAkB,CAAC,kCAAe,CAAC,KAAK,CAAC;aACrD,SAAS,CACN,kCAAe,CAAC,kBAAkB,CAC9B,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,EACtE,yCAAsB,CAAC,qBAAqB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAChH,CACJ;aACA,UAAU,CAAC,CACR,mCAAgB,CAAC,kBAAkB,CAC/B,QAAQ,EACR,aAAa,EACb,wCAAqB,CAAC,eAAe,CAAC,oCAAiB,CAAC,YAAY,CAAC,EACrE,0CAAuB,CAAC,0BAA0B,CAAC,yCAAsB,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CACxG,CACJ,CAAC;aACD,UAAU,CACP,mCAAgB,CAAC,qBAAqB,CAClC,KAAK,EACL,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,2CAAwB,CAAC,sBAAsB,CAC3F,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,UAAU,EACf,EAAE,EACF,wCAAqB,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,CAAC,EAC1D,IAAI,EACJ,EAAE,CACL,CAAC,CACL,CACJ,CAAC;IACV,CAAC;CACJ;AA1CD,oFA0CC"}
|
package/dist/modules/many-tables-tournament/many-tables-tournament-tables-list-screen.view.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IAppScreen, UniversalScreenView, ILocaleService } from "jp.common.models";
|
|
2
|
+
import { ManyTablesTournamentRoom } from "jp.ms.common.engine";
|
|
3
|
+
export declare class ManyTablesTournamentTablesListScreenView extends UniversalScreenView {
|
|
4
|
+
private readonly tournament;
|
|
5
|
+
constructor(localeService: ILocaleService, lang: string, tournament: ManyTablesTournamentRoom);
|
|
6
|
+
build(): IAppScreen;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ManyTablesTournamentTablesListScreenView = void 0;
|
|
4
|
+
const jp_common_models_1 = require("jp.common.models");
|
|
5
|
+
class ManyTablesTournamentTablesListScreenView extends jp_common_models_1.UniversalScreenView {
|
|
6
|
+
tournament;
|
|
7
|
+
constructor(localeService, lang, tournament) {
|
|
8
|
+
super(localeService, lang);
|
|
9
|
+
this.tournament = tournament;
|
|
10
|
+
}
|
|
11
|
+
build() {
|
|
12
|
+
return jp_common_models_1.AppScreen.CreateStandardScreen(jp_common_models_1.AppScreenIdEnum.ROOMS)
|
|
13
|
+
.addAppBar(jp_common_models_1.AppScreenAppBar.CreateStandardAppBar(this.localeService.t('common.rooms.screen.title', { lang: this.lang }), jp_common_models_1.AppScreenSectionButton.CreateArrowBackButton(this.localeService.t('common.button.back', { lang: this.lang }))))
|
|
14
|
+
.addSection(jp_common_models_1.AppScreenSection.CreateCardListSection('id1', this.tournament?.getTables().map((table) => jp_common_models_1.AppScreenSectionListItem.CreateCardListItemMini(table.getId(), table.getTitle(this.lang), table.getSubtitle(this.lang), jp_common_models_1.AppScreenSectionImage.CreateIconImage(jp_common_models_1.AppScreenIconEnum.EMOJI_EVENTS), true, jp_common_models_1.router.getRoomPath(table.getId()))) ?? []));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ManyTablesTournamentTablesListScreenView = ManyTablesTournamentTablesListScreenView;
|
|
18
|
+
//# sourceMappingURL=many-tables-tournament-tables-list-screen.view.js.map
|
package/dist/modules/many-tables-tournament/many-tables-tournament-tables-list-screen.view.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"many-tables-tournament-tables-list-screen.view.js","sourceRoot":"","sources":["../../../src/modules/many-tables-tournament/many-tables-tournament-tables-list-screen.view.ts"],"names":[],"mappings":";;;AAAA,uDAa0B;AAG1B,MAAa,wCAAyC,SAAQ,sCAAmB;IAC5D,UAAU,CAA2B;IAEtD,YACI,aAA6B,EAC7B,IAAY,EACZ,UAAoC;QAEpC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,KAAK;QACD,OAAO,4BAAS,CAAC,oBAAoB,CAAC,kCAAe,CAAC,KAAK,CAAC;aACvD,SAAS,CACN,kCAAe,CAAC,oBAAoB,CAChC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,EACtE,yCAAsB,CAAC,qBAAqB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAChH,CACJ;aACA,UAAU,CACP,mCAAgB,CAAC,qBAAqB,CAClC,KAAK,EACL,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACvC,2CAAwB,CAAC,sBAAsB,CAC3C,KAAK,CAAC,KAAK,EAAE,EACb,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EACzB,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAC5B,wCAAqB,CAAC,eAAe,CAAC,oCAAiB,CAAC,YAAY,CAAC,EACrE,IAAI,EACJ,yBAAM,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CACpC,CACJ,IAAI,EAAE,CACV,CACJ,CAAC;IACV,CAAC;CACJ;AApCD,4FAoCC"}
|
|
@@ -6,12 +6,15 @@ import { ManyTablesTournamentUpdateDto } from '../../dto/common/many-tables-tour
|
|
|
6
6
|
export declare class ManyTablesTournamentController {
|
|
7
7
|
private readonly tournamentService;
|
|
8
8
|
constructor(tournamentService: ManyTablesTournamentService);
|
|
9
|
-
getStatusScreen(tournamentId: string, headers: IAppHeaders):
|
|
9
|
+
getStatusScreen(tournamentId: string, headers: IAppHeaders): IBaseAppScreen;
|
|
10
|
+
subscribeOnStatusScreen(tournamentId: string, headers: IAppHeaders): Promise<void>;
|
|
11
|
+
unsubscribeFromStatusScreen(tournamentId: string, headers: IAppHeaders): Promise<void>;
|
|
10
12
|
getTableListScreen(tournamentId: string, headers: IAppHeaders): Promise<IBaseAppScreen>;
|
|
11
13
|
watchTheTable(tableId: string, headers: IAppHeaders): IBaseTableGameState;
|
|
12
14
|
moveOnTheTable(tableId: string, baseMoveData: IBaseMoveData, headers: IAppHeaders): IBaseTableGameState;
|
|
13
15
|
joinTournament(tournamentId: string, headers: IAppHeaders): JoinTournamentDto;
|
|
14
16
|
leaveTournament(tournamentId: string, headers: IAppHeaders): IBaseTableGameState;
|
|
17
|
+
buyTicket(tournamentId: string, headers: IAppHeaders): Promise<void>;
|
|
15
18
|
createTournament(headers: IAppHeaders, createTournamentDto: ManyTablesTournamentCreateDto): Promise<void>;
|
|
16
19
|
updateTournament(tournamentId: string, updateTournamentDto: ManyTablesTournamentUpdateDto, headers: IAppHeaders): Promise<void>;
|
|
17
20
|
removeTournament(tournamentId: string, headers: IAppHeaders): Promise<void>;
|
|
@@ -26,6 +26,12 @@ let ManyTablesTournamentController = class ManyTablesTournamentController {
|
|
|
26
26
|
getStatusScreen(tournamentId, headers) {
|
|
27
27
|
return this.tournamentService.getStatusScreen(tournamentId, headers.client_language);
|
|
28
28
|
}
|
|
29
|
+
subscribeOnStatusScreen(tournamentId, headers) {
|
|
30
|
+
return this.tournamentService.subscribeOnStatusScreen(tournamentId, headers.client_language);
|
|
31
|
+
}
|
|
32
|
+
unsubscribeFromStatusScreen(tournamentId, headers) {
|
|
33
|
+
return this.tournamentService.unsubscribeFromStatusScreen(tournamentId, headers.client_language);
|
|
34
|
+
}
|
|
29
35
|
getTableListScreen(tournamentId, headers) {
|
|
30
36
|
return this.tournamentService.getTableListScreen(tournamentId, headers.client_language);
|
|
31
37
|
}
|
|
@@ -41,6 +47,9 @@ let ManyTablesTournamentController = class ManyTablesTournamentController {
|
|
|
41
47
|
leaveTournament(tournamentId, headers) {
|
|
42
48
|
return this.tournamentService.leaveTournament(tournamentId, headers.client_auth_token);
|
|
43
49
|
}
|
|
50
|
+
buyTicket(tournamentId, headers) {
|
|
51
|
+
return this.tournamentService.buyTicket(tournamentId, headers.client_auth_token);
|
|
52
|
+
}
|
|
44
53
|
createTournament(headers, createTournamentDto) {
|
|
45
54
|
return this.tournamentService.createTournament(createTournamentDto);
|
|
46
55
|
}
|
|
@@ -58,8 +67,24 @@ __decorate([
|
|
|
58
67
|
__param(1, (0, common_1.Headers)()),
|
|
59
68
|
__metadata("design:type", Function),
|
|
60
69
|
__metadata("design:paramtypes", [String, Object]),
|
|
61
|
-
__metadata("design:returntype",
|
|
70
|
+
__metadata("design:returntype", Object)
|
|
62
71
|
], ManyTablesTournamentController.prototype, "getStatusScreen", null);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, common_1.Get)('status/subscribe/:tournamentId'),
|
|
74
|
+
__param(0, (0, common_1.Param)('tournamentId')),
|
|
75
|
+
__param(1, (0, common_1.Headers)()),
|
|
76
|
+
__metadata("design:type", Function),
|
|
77
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
78
|
+
__metadata("design:returntype", Promise)
|
|
79
|
+
], ManyTablesTournamentController.prototype, "subscribeOnStatusScreen", null);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, common_1.Get)('status/unsubscribe/:tournamentId'),
|
|
82
|
+
__param(0, (0, common_1.Param)('tournamentId')),
|
|
83
|
+
__param(1, (0, common_1.Headers)()),
|
|
84
|
+
__metadata("design:type", Function),
|
|
85
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
86
|
+
__metadata("design:returntype", Promise)
|
|
87
|
+
], ManyTablesTournamentController.prototype, "unsubscribeFromStatusScreen", null);
|
|
63
88
|
__decorate([
|
|
64
89
|
(0, common_1.Get)('tables/:tournamentId'),
|
|
65
90
|
__param(0, (0, common_1.Param)('tournamentId')),
|
|
@@ -105,6 +130,15 @@ __decorate([
|
|
|
105
130
|
__metadata("design:paramtypes", [String, Object]),
|
|
106
131
|
__metadata("design:returntype", Object)
|
|
107
132
|
], ManyTablesTournamentController.prototype, "leaveTournament", null);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, common_1.Post)('buy_ticket/:tournamentId'),
|
|
135
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
136
|
+
__param(0, (0, common_1.Param)('tournamentId')),
|
|
137
|
+
__param(1, (0, common_1.Headers)()),
|
|
138
|
+
__metadata("design:type", Function),
|
|
139
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
140
|
+
__metadata("design:returntype", Promise)
|
|
141
|
+
], ManyTablesTournamentController.prototype, "buyTicket", null);
|
|
108
142
|
__decorate([
|
|
109
143
|
(0, common_1.Post)('create'),
|
|
110
144
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"many-tables-tournament.controller.js","sourceRoot":"","sources":["../../../src/modules/many-tables-tournament/many-tables-tournament.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAkH;AAGlH,qFAA+E;AAC/E,8EAAyE;AACzE,0GAAmG;AACnG,0GAAmG;AAG5F,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAElB;IADrB,YACqB,iBAA8C;QAA9C,sBAAiB,GAAjB,iBAAiB,CAA6B;IAEnE,CAAC;IAGD,eAAe,CACY,YAAoB,EAChC,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACzF,CAAC;IAGD,kBAAkB,CACS,YAAoB,EAChC,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,YAAY,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5F,CAAC;IAID,aAAa,CACS,OAAe,EACtB,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACpF,CAAC;IAID,cAAc,CACQ,OAAe,EACzB,YAA2B,EACxB,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;IACnG,CAAC;IAID,cAAc,CACa,YAAoB,EAChC,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,YAAY,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC1F,CAAC;IAID,eAAe,CACY,YAAoB,EAChC,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC3F,CAAC;IAID,gBAAgB,CACD,OAAoB,EACvB,mBAAkD;QAE1D,OAAO,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IACxE,CAAC;IAID,gBAAgB,CACW,YAAoB,EACnC,mBAAkD,EAC/C,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC;IACtF,CAAC;IAID,gBAAgB,CACW,YAAoB,EAChC,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACjE,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"many-tables-tournament.controller.js","sourceRoot":"","sources":["../../../src/modules/many-tables-tournament/many-tables-tournament.controller.ts"],"names":[],"mappings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T,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAsB,iEAA6B;;sEAG7D;AAID;IAFC,IAAA,cAAK,EAAC,sBAAsB,CAAC;IAC7B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAEnB,WAAA,IAAA,cAAK,EAAC,cAAc,CAAC,CAAA;IACrB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,gBAAO,GAAE,CAAA;;6CADmB,iEAA6B;;sEAI7D;AAID;IAFC,IAAA,eAAM,EAAC,sBAAsB,CAAC;IAC9B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAEnB,WAAA,IAAA,cAAK,EAAC,cAAc,CAAC,CAAA;IACrB,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;sEAGb;yCA9GQ,8BAA8B;IAD1C,IAAA,mBAAU,EAAC,wBAAwB,CAAC;qCAGO,4DAA2B;GAF1D,8BAA8B,CA+G1C"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { DynamicModule } from '@nestjs/common';
|
|
2
|
+
import { TournamentManyTablesRoomsManagerService } from '../tournament-many-tables-rooms-manager';
|
|
3
|
+
import { EventsBusManyTablesTournamentSubscribeService } from '../event-bus';
|
|
4
|
+
import { ManyTablesTournamentService } from './many-tables-tournament.service';
|
|
2
5
|
import { ManyTablesTournamentModuleOptions } from './many-tables-tournament.interfaces';
|
|
3
6
|
export declare class ManyTablesTournamentModule {
|
|
4
|
-
|
|
7
|
+
private readonly manyTablesRoomsManagerService;
|
|
8
|
+
private readonly eventsBusManyTablesTournamentSubscribeService;
|
|
9
|
+
private readonly manyTablesTournamentService;
|
|
10
|
+
constructor(manyTablesRoomsManagerService: TournamentManyTablesRoomsManagerService, eventsBusManyTablesTournamentSubscribeService: EventsBusManyTablesTournamentSubscribeService, manyTablesTournamentService: ManyTablesTournamentService);
|
|
5
11
|
static forRootAsync(options: ManyTablesTournamentModuleOptions): DynamicModule;
|
|
12
|
+
onModuleInit(): Promise<void>;
|
|
13
|
+
private onHandleStatusRoomChange;
|
|
6
14
|
}
|
|
@@ -14,11 +14,20 @@ exports.ManyTablesTournamentModule = void 0;
|
|
|
14
14
|
const common_1 = require("@nestjs/common");
|
|
15
15
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
16
16
|
const jp_db_schemas_1 = require("jp.db.schemas");
|
|
17
|
+
const jp_ms_common_engine_1 = require("jp.ms.common.engine");
|
|
18
|
+
const tournament_many_tables_rooms_manager_1 = require("../tournament-many-tables-rooms-manager");
|
|
19
|
+
const event_bus_1 = require("../event-bus");
|
|
17
20
|
const many_tables_tournament_controller_1 = require("./many-tables-tournament.controller");
|
|
18
21
|
const many_tables_tournament_service_1 = require("./many-tables-tournament.service");
|
|
19
22
|
const many_tables_tournament_constants_1 = require("./many-tables-tournament.constants");
|
|
20
23
|
let ManyTablesTournamentModule = ManyTablesTournamentModule_1 = class ManyTablesTournamentModule {
|
|
21
|
-
|
|
24
|
+
manyTablesRoomsManagerService;
|
|
25
|
+
eventsBusManyTablesTournamentSubscribeService;
|
|
26
|
+
manyTablesTournamentService;
|
|
27
|
+
constructor(manyTablesRoomsManagerService, eventsBusManyTablesTournamentSubscribeService, manyTablesTournamentService) {
|
|
28
|
+
this.manyTablesRoomsManagerService = manyTablesRoomsManagerService;
|
|
29
|
+
this.eventsBusManyTablesTournamentSubscribeService = eventsBusManyTablesTournamentSubscribeService;
|
|
30
|
+
this.manyTablesTournamentService = manyTablesTournamentService;
|
|
22
31
|
}
|
|
23
32
|
static forRootAsync(options) {
|
|
24
33
|
return {
|
|
@@ -33,6 +42,15 @@ let ManyTablesTournamentModule = ManyTablesTournamentModule_1 = class ManyTables
|
|
|
33
42
|
],
|
|
34
43
|
};
|
|
35
44
|
}
|
|
45
|
+
async onModuleInit() {
|
|
46
|
+
this.eventsBusManyTablesTournamentSubscribeService.subscribe(this.onHandleStatusRoomChange);
|
|
47
|
+
}
|
|
48
|
+
onHandleStatusRoomChange = (event) => {
|
|
49
|
+
this.manyTablesRoomsManagerService.getRoomById(event.roomId)?.getStatusScreenWatchers().forEach((subscriber) => {
|
|
50
|
+
const screen = this.manyTablesTournamentService.getStatusScreen(event.roomId, subscriber.language);
|
|
51
|
+
subscriber.sendMessage(new jp_ms_common_engine_1.ManyTablesTournamentUpdateStatusWsEvent(screen.screen));
|
|
52
|
+
});
|
|
53
|
+
};
|
|
36
54
|
};
|
|
37
55
|
exports.ManyTablesTournamentModule = ManyTablesTournamentModule;
|
|
38
56
|
exports.ManyTablesTournamentModule = ManyTablesTournamentModule = ManyTablesTournamentModule_1 = __decorate([
|
|
@@ -43,6 +61,8 @@ exports.ManyTablesTournamentModule = ManyTablesTournamentModule = ManyTablesTour
|
|
|
43
61
|
controllers: [many_tables_tournament_controller_1.ManyTablesTournamentController],
|
|
44
62
|
providers: [many_tables_tournament_service_1.ManyTablesTournamentService, jp_db_schemas_1.TournamentManyTablesRoomsRepository],
|
|
45
63
|
}),
|
|
46
|
-
__metadata("design:paramtypes", [
|
|
64
|
+
__metadata("design:paramtypes", [tournament_many_tables_rooms_manager_1.TournamentManyTablesRoomsManagerService,
|
|
65
|
+
event_bus_1.EventsBusManyTablesTournamentSubscribeService,
|
|
66
|
+
many_tables_tournament_service_1.ManyTablesTournamentService])
|
|
47
67
|
], ManyTablesTournamentModule);
|
|
48
68
|
//# sourceMappingURL=many-tables-tournament.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"many-tables-tournament.module.js","sourceRoot":"","sources":["../../../src/modules/many-tables-tournament/many-tables-tournament.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAiE;AACjE,+CAAkD;AAClD,iDAA8H;
|
|
1
|
+
{"version":3,"file":"many-tables-tournament.module.js","sourceRoot":"","sources":["../../../src/modules/many-tables-tournament/many-tables-tournament.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAiE;AACjE,+CAAkD;AAClD,iDAA8H;AAC9H,6DAAg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,EAAE;YACL,yBAAc,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,wCAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,8CAA8B,EAAE,CAAC,CAAC;SAC/G;QACD,WAAW,EAAE,CAAC,kEAA8B,CAAC;QAC7C,SAAS,EAAE,CAAC,4DAA2B,EAAE,mDAAmC,CAAC;KAChF,CAAC;qCAGsD,8EAAuC;QACvB,yDAA6C;QAC/D,4DAA2B;GAJpE,0BAA0B,CA+BtC"}
|
|
@@ -11,12 +11,15 @@ export declare class ManyTablesTournamentService {
|
|
|
11
11
|
private readonly playersManager;
|
|
12
12
|
private readonly options;
|
|
13
13
|
constructor(manyTablesRoomsManagerService: TournamentManyTablesRoomsManagerService, playersManager: PlayersManagerService, options: ManyTablesTournamentFactoryOptions);
|
|
14
|
-
getStatusScreen(tournamentId: string, lang: string):
|
|
14
|
+
getStatusScreen(tournamentId: string, lang: string): BaseAppScreenDto;
|
|
15
|
+
subscribeOnStatusScreen(tournamentId: string, clientAuthToken: string): Promise<void>;
|
|
16
|
+
unsubscribeFromStatusScreen(tournamentId: string, clientAuthToken: string): Promise<void>;
|
|
15
17
|
getTableListScreen(tournamentId: string, lang: string): Promise<BaseAppScreenDto>;
|
|
16
18
|
watchTheTable(tableId: string, clientAuthToken: string): IBaseTableGameState;
|
|
17
19
|
moveOnTheTable(tableId: string, clientAuthToken: string, moveDto: IBaseMoveData): IBaseTableGameState;
|
|
18
20
|
joinTournament(tournamentId: string, clientAuthToken: string): JoinTournamentDto;
|
|
19
21
|
leaveTournament(tournamentId: string, clientAuthToken: string): IBaseTableGameState;
|
|
22
|
+
buyTicket(tournamentId: string, clientAuthToken: string): Promise<void>;
|
|
20
23
|
createTournament(createTournamentDto: ManyTablesTournamentCreateDto): Promise<void>;
|
|
21
24
|
updateTournament(tournamentId: string, updateTournamentDto: ManyTablesTournamentUpdateDto): Promise<void>;
|
|
22
25
|
removeTournament(tournamentId: string): Promise<void>;
|
|
@@ -20,6 +20,8 @@ const tournament_many_tables_rooms_manager_service_1 = require("../tournament-ma
|
|
|
20
20
|
const players_manager_service_1 = require("../players-manager/players-manager.service");
|
|
21
21
|
const join_tournament_dto_1 = require("../../dto/common/join-tournament.dto");
|
|
22
22
|
const many_tables_tournament_constants_1 = require("./many-tables-tournament.constants");
|
|
23
|
+
const many_tables_tournament_status_screen_view_1 = require("./many-tables-tournament-status-screen.view");
|
|
24
|
+
const many_tables_tournament_tables_list_screen_view_1 = require("./many-tables-tournament-tables-list-screen.view");
|
|
23
25
|
let ManyTablesTournamentService = class ManyTablesTournamentService {
|
|
24
26
|
manyTablesRoomsManagerService;
|
|
25
27
|
playersManager;
|
|
@@ -29,22 +31,35 @@ let ManyTablesTournamentService = class ManyTablesTournamentService {
|
|
|
29
31
|
this.playersManager = playersManager;
|
|
30
32
|
this.options = options;
|
|
31
33
|
}
|
|
32
|
-
|
|
34
|
+
getStatusScreen(tournamentId, lang) {
|
|
33
35
|
const tournament = this.manyTablesRoomsManagerService.getRoomById(tournamentId);
|
|
34
36
|
if (!tournament) {
|
|
35
37
|
throw new common_1.InternalServerErrorException();
|
|
36
38
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
return new dto_1.BaseAppScreenDto(new jp_common_models_1.BaseAppScreen(new many_tables_tournament_status_screen_view_1.ManyTablesTournamentStatusScreenView(this.options.i18n, lang, tournament).build()));
|
|
40
|
+
}
|
|
41
|
+
subscribeOnStatusScreen(tournamentId, clientAuthToken) {
|
|
42
|
+
const player = this.playersManager.getPlayerById(clientAuthToken);
|
|
43
|
+
const tournament = this.manyTablesRoomsManagerService.getRoomById(tournamentId);
|
|
44
|
+
if (player && tournament) {
|
|
45
|
+
tournament.addToStatusScreenWatchers(player);
|
|
46
|
+
}
|
|
47
|
+
throw new common_1.InternalServerErrorException();
|
|
48
|
+
}
|
|
49
|
+
unsubscribeFromStatusScreen(tournamentId, clientAuthToken) {
|
|
50
|
+
const player = this.playersManager.getPlayerById(clientAuthToken);
|
|
51
|
+
const tournament = this.manyTablesRoomsManagerService.getRoomById(tournamentId);
|
|
52
|
+
if (player && tournament) {
|
|
53
|
+
tournament.removeFromStatusScreenWatchers(player);
|
|
54
|
+
}
|
|
55
|
+
throw new common_1.InternalServerErrorException();
|
|
42
56
|
}
|
|
43
57
|
async getTableListScreen(tournamentId, lang) {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
58
|
+
const tournament = this.manyTablesRoomsManagerService.getRoomById(tournamentId);
|
|
59
|
+
if (!tournament) {
|
|
60
|
+
throw new common_1.InternalServerErrorException();
|
|
61
|
+
}
|
|
62
|
+
return new dto_1.BaseAppScreenDto(new jp_common_models_1.BaseAppScreen(new many_tables_tournament_tables_list_screen_view_1.ManyTablesTournamentTablesListScreenView(this.options.i18n, lang, tournament).build()));
|
|
48
63
|
}
|
|
49
64
|
watchTheTable(tableId, clientAuthToken) {
|
|
50
65
|
const player = this.playersManager.getPlayerById(clientAuthToken);
|
|
@@ -96,6 +111,15 @@ let ManyTablesTournamentService = class ManyTablesTournamentService {
|
|
|
96
111
|
}
|
|
97
112
|
throw new common_1.InternalServerErrorException();
|
|
98
113
|
}
|
|
114
|
+
async buyTicket(tournamentId, clientAuthToken) {
|
|
115
|
+
const player = this.playersManager.getPlayerById(clientAuthToken);
|
|
116
|
+
const tournament = this.manyTablesRoomsManagerService.getRoomByTableId(tournamentId);
|
|
117
|
+
const master = tournament?.getMasterById(tournamentId);
|
|
118
|
+
if (player && tournament && master) {
|
|
119
|
+
return this.manyTablesRoomsManagerService.buyTicket(tournamentId, player);
|
|
120
|
+
}
|
|
121
|
+
throw new common_1.InternalServerErrorException();
|
|
122
|
+
}
|
|
99
123
|
async createTournament(createTournamentDto) {
|
|
100
124
|
return this.manyTablesRoomsManagerService.createTournament(createTournamentDto);
|
|
101
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"many-tables-tournament.service.js","sourceRoot":"","sources":["../../../src/modules/many-tables-tournament/many-tables-tournament.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAkF;AAClF,
|
|
1
|
+
{"version":3,"file":"many-tables-tournament.service.js","sourceRoot":"","sources":["../../../src/modules/many-tables-tournament/many-tables-tournament.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAkF;AAClF,uDAK0B;AAE1B,mCAA6C;AAC7C,uJAA+I;AAC/I,wFAAmF;AACnF,8EAAyE;AAKzE,yFAAoF;AACpF,2GAAmG;AACnG,qHAA4G;AAGrG,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAEf;IACA;IACwC;IAH7D,YACqB,6BAAsE,EACtE,cAAqC,EACG,OAA2C;QAFnF,kCAA6B,GAA7B,6BAA6B,CAAyC;QACtE,mBAAc,GAAd,cAAc,CAAuB;QACG,YAAO,GAAP,OAAO,CAAoC;IAExG,CAAC;IAED,eAAe,CAAC,YAAoB,EAAE,IAAY;QAC9C,MAAM,UAAU,GAAG,IAAI,CAAC,6BAA6B,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAEhF,IAAI,CAAC,UAAU,EAAE,CAAC;YACd,MAAM,IAAI,qCAA4B,EAAE,CAAC;QAC7C,CAAC;QAED,OAAO,IAAI,sBAAgB,CACvB,IAAI,gCAAa,CACb,IAAI,gFAAoC,CACpC,IAAI,CAAC,OAAO,CAAC,IAAI,EACjB,IAAI,EACJ,UAAU,CACb,CAAC,KAAK,EAAE,CACZ,CACJ,CAAC;IACN,CAAC;IAED,uBAAuB,CAAC,YAAoB,EAAE,eAAuB;QACjE,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAClE,MAAM,UAAU,GAAG,IAAI,CAAC,6BAA6B,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAEhF,IAAI,MAAM,IAAI,UAAU,EAAE,CAAC;YACvB,UAAU,CA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IAAI,MAAM,IAAI,UAAU,IAAI,MAAM,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC,6BAA6B,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QAC9E,CAAC;QAED,MAAM,IAAI,qCAA4B,EAAE,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,mBAAkD;QACrE,OAAO,IAAI,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IACpF,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,YAAoB,EAAE,mBAAkD;QAC3F,OAAO,IAAI,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC;IAClG,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,YAAoB;QACvC,OAAO,IAAI,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC7E,CAAC;CACJ,CAAA;AAlKY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,mBAAU,GAAE;IAKJ,WAAA,IAAA,eAAM,EAAC,iEAA8B,CAAC,CAAA;qCAFS,sFAAuC;QACtD,+CAAqB;GAHjD,2BAA2B,CAkKvC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IAppScreen, UniversalScreenView, ILocaleService } from "jp.common.models";
|
|
2
|
+
import { Menu } from "jp.db.schemas";
|
|
3
|
+
export declare class MenuScreenView extends UniversalScreenView {
|
|
4
|
+
private readonly menuItems;
|
|
5
|
+
constructor(localeService: ILocaleService, lang: string, menuItems: Array<Menu>);
|
|
6
|
+
build(): IAppScreen;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MenuScreenView = void 0;
|
|
4
|
+
const jp_common_models_1 = require("jp.common.models");
|
|
5
|
+
class MenuScreenView extends jp_common_models_1.UniversalScreenView {
|
|
6
|
+
menuItems;
|
|
7
|
+
constructor(localeService, lang, menuItems) {
|
|
8
|
+
super(localeService, lang);
|
|
9
|
+
this.menuItems = menuItems;
|
|
10
|
+
}
|
|
11
|
+
build() {
|
|
12
|
+
return new jp_common_models_1.StandardScreenComponent(jp_common_models_1.AppScreenIdEnum.MENU)
|
|
13
|
+
.addSection(new jp_common_models_1.MenuHeaderSectionComponent('header', this.localeService.t('common.menu.header.title', { lang: this.lang })))
|
|
14
|
+
.addSection(new jp_common_models_1.MenuListSectionComponent('id1', this.menuItems.map((item) => (new jp_common_models_1.MenuSectionListItemComponent(item.code, this.lang === 'ru' ? item.title : item.titleEn, new jp_common_models_1.IconImageComponent(item.icon), item.url)))));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MenuScreenView = MenuScreenView;
|
|
18
|
+
//# sourceMappingURL=menu-screen.view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-screen.view.js","sourceRoot":"","sources":["../../../src/modules/menu/menu-screen.view.ts"],"names":[],"mappings":";;;AAAA,uDAU0B;AAG1B,MAAa,cAAe,SAAQ,sCAAmB;IAClC,SAAS,CAAc;IAExC,YACI,aAA6B,EAC7B,IAAY,EACZ,SAAsB;QAEtB,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED,KAAK;QACD,OAAO,IAAI,0CAAuB,CAAC,kCAAe,CAAC,IAAI,CAAC;aACnD,UAAU,CACP,IAAI,6CAA0B,CAC1B,QAAQ,EACR,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CACxE,CACJ;aACA,UAAU,CACP,IAAI,2CAAwB,CACxB,KAAK,EACL,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACzB,IAAI,+CAA4B,CAC5B,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAC9C,IAAI,qCAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EACjC,IAAI,CAAC,GAAG,CACX,CACJ,CACJ,CACJ,CAAC,CAAC;IACX,CAAC;CACJ;AAlCD,wCAkCC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuRepository } from 'jp.db.schemas';
|
|
2
2
|
import { IAppHeaders } from 'jp.common.models';
|
|
3
|
-
import { MenuFactoryOptions } from './menu.interfaces';
|
|
4
3
|
import { BaseAppScreenDto } from '../../dto';
|
|
4
|
+
import { MenuFactoryOptions } from './menu.interfaces';
|
|
5
5
|
export declare class MenuService {
|
|
6
6
|
private readonly menuRepository;
|
|
7
7
|
private readonly options;
|
|
@@ -16,8 +16,9 @@ exports.MenuService = void 0;
|
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const jp_db_schemas_1 = require("jp.db.schemas");
|
|
18
18
|
const jp_common_models_1 = require("jp.common.models");
|
|
19
|
-
const menu_constants_1 = require("./menu.constants");
|
|
20
19
|
const dto_1 = require("../../dto");
|
|
20
|
+
const menu_constants_1 = require("./menu.constants");
|
|
21
|
+
const menu_screen_view_1 = require("./menu-screen.view");
|
|
21
22
|
let MenuService = class MenuService {
|
|
22
23
|
menuRepository;
|
|
23
24
|
options;
|
|
@@ -27,10 +28,7 @@ let MenuService = class MenuService {
|
|
|
27
28
|
}
|
|
28
29
|
async getScreen(headers) {
|
|
29
30
|
const menuItems = await this.menuRepository.findMenus('ALL', 'VK') ?? [];
|
|
30
|
-
|
|
31
|
-
.addSection(jp_common_models_1.AppScreenSection.CreateMenuHeaderSection('header', this.options.i18n.t('common.menu.header.title', { lang: headers.client_language })))
|
|
32
|
-
.addSection(jp_common_models_1.AppScreenSection.CreateMenuListSection('id1', menuItems.map((item) => jp_common_models_1.AppScreenSectionListItem.CreateMenuListItem(item.code, headers.client_language === 'ru' ? item.title : item.titleEn, jp_common_models_1.AppScreenSectionImage.CreateIconImage(item.icon), item.url))));
|
|
33
|
-
return new dto_1.BaseAppScreenDto(new jp_common_models_1.BaseAppScreen(screen));
|
|
31
|
+
return new dto_1.BaseAppScreenDto(new jp_common_models_1.BaseAppScreen(new menu_screen_view_1.MenuScreenView(this.options.i18n, headers.client_language, menuItems).build()));
|
|
34
32
|
}
|
|
35
33
|
};
|
|
36
34
|
exports.MenuService = MenuService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.service.js","sourceRoot":"","sources":["../../../src/modules/menu/menu.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,iDAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"menu.service.js","sourceRoot":"","sources":["../../../src/modules/menu/menu.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,iDAA+C;AAC/C,uDAG0B;AAE1B,mCAA6C;AAE7C,qDAAgD;AAEhD,yDAAoD;AAG7C,IAAM,WAAW,GAAjB,MAAM,WAAW;IAEC;IACsB;IAF3C,YACqB,cAA8B,EACR,OAA2B;QADjD,mBAAc,GAAd,cAAc,CAAgB;QACR,YAAO,GAAP,OAAO,CAAoB;IAEtE,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,OAAoB;QAChC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;QAEzE,OAAO,IAAI,sBAAgB,CACvB,IAAI,gCAAa,CACb,IAAI,iCAAc,CACd,IAAI,CAAC,OAAO,CAAC,IAAI,EACjB,OAAO,CAAC,eAAe,EACvB,SAAS,CACZ,CAAC,KAAK,EAAE,CACZ,CACJ,CAAC;IACN,CAAC;CACJ,CAAA;AApBY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,6BAAY,CAAC,CAAA;qCADY,8BAAc;GAF1C,WAAW,CAoBvB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IAppScreen, UniversalScreenView, ILocaleService } from "jp.common.models";
|
|
2
|
+
import { OneTableTournamentRoom } from "jp.ms.common.engine";
|
|
3
|
+
export declare class OneTableTournamentStatusScreenView extends UniversalScreenView {
|
|
4
|
+
private readonly tournament;
|
|
5
|
+
constructor(localeService: ILocaleService, lang: string, tournament: OneTableTournamentRoom);
|
|
6
|
+
build(): IAppScreen;
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OneTableTournamentStatusScreenView = void 0;
|
|
4
|
+
const jp_common_models_1 = require("jp.common.models");
|
|
5
|
+
class OneTableTournamentStatusScreenView extends jp_common_models_1.UniversalScreenView {
|
|
6
|
+
tournament;
|
|
7
|
+
constructor(localeService, lang, tournament) {
|
|
8
|
+
super(localeService, lang);
|
|
9
|
+
this.tournament = tournament;
|
|
10
|
+
}
|
|
11
|
+
build() {
|
|
12
|
+
return new jp_common_models_1.StandardScreenComponent(jp_common_models_1.AppScreenIdEnum.ROOMS)
|
|
13
|
+
.addAppBar(new jp_common_models_1.StatusAppBarComponent(this.localeService.t('common.rooms.screen.title', { lang: this.lang }), new jp_common_models_1.ArrowBackButtonComponent(this.localeService.t('common.button.back', { lang: this.lang }))))
|
|
14
|
+
.addSection(new jp_common_models_1.StatusHeaderSectionComponent('status', 'description', new jp_common_models_1.IconImageComponent(jp_common_models_1.AppScreenIconEnum.EMOJI_EVENTS), new jp_common_models_1.PrimaryButtonButtonsComponent(new jp_common_models_1.TextButtonComponent('button'))))
|
|
15
|
+
.addSection(new jp_common_models_1.CardListSectionComponent('id1', this.tournament.getParticipants().map((item) => (new jp_common_models_1.MiniCardSectionListItemComponent(item.playerId, item.playerName, '', new jp_common_models_1.UrlImageComponent(item.playerAvatarUrl), true, true, '')))));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.OneTableTournamentStatusScreenView = OneTableTournamentStatusScreenView;
|
|
19
|
+
//# sourceMappingURL=one-table-tournament-status-screen.view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"one-table-tournament-status-screen.view.js","sourceRoot":"","sources":["../../../src/modules/one-table-tournament/one-table-tournament-status-screen.view.ts"],"names":[],"mappings":";;;AAAA,uDAgB0B;AAG1B,MAAa,kCAAmC,SAAQ,sCAAmB;IACtD,UAAU,CAAyB;IAEpD,YACI,aAA6B,EAC7B,IAAY,EACZ,UAAkC;QAElC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,KAAK;QACD,OAAO,IAAI,0CAAuB,CAAC,kCAAe,CAAC,KAAK,CAAC;aACpD,SAAS,CACN,IAAI,wCAAqB,CACrB,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,EACtE,IAAI,2CAAwB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAChG,CACJ;aACA,UAAU,CACP,IAAI,+CAA4B,CAC5B,QAAQ,EACR,aAAa,EACb,IAAI,qCAAkB,CAAC,oCAAiB,CAAC,YAAY,CAAC,EACtD,IAAI,gDAA6B,CAAC,IAAI,sCAAmB,CAAC,QAAQ,CAAC,CAAC,CACvE,CACJ;aACA,UAAU,CACP,IAAI,2CAAwB,CACxB,KAAK,EACL,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC5C,IAAI,mDAAgC,CAChC,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,UAAU,EACf,EAAE,EACF,IAAI,oCAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,EAC3C,IAAI,EACJ,IAAI,EACJ,EAAE,CACL,CACJ,CAAC,CACL,CACJ,CAAC;IACV,CAAC;CACJ;AA7CD,gFA6CC"}
|
|
@@ -4,7 +4,9 @@ import { JoinTournamentDto } from '../../dto/common/join-tournament.dto';
|
|
|
4
4
|
export declare class OneTableTournamentController {
|
|
5
5
|
private readonly tournamentService;
|
|
6
6
|
constructor(tournamentService: OneTableTournamentService);
|
|
7
|
-
getStatusScreen(tournamentId: string, headers: IAppHeaders):
|
|
7
|
+
getStatusScreen(tournamentId: string, headers: IAppHeaders): IBaseAppScreen;
|
|
8
|
+
subscribeOnStatusScreen(tournamentId: string, headers: IAppHeaders): Promise<void>;
|
|
9
|
+
unsubscribeFromStatusScreen(tournamentId: string, headers: IAppHeaders): Promise<void>;
|
|
8
10
|
watchTheTable(tableId: string, headers: IAppHeaders): IBaseTableGameState;
|
|
9
11
|
moveOnTheTable(tableId: string, baseMoveData: IBaseMoveData, headers: IAppHeaders): IBaseTableGameState;
|
|
10
12
|
joinTournament(tournamentId: string, headers: IAppHeaders): JoinTournamentDto;
|
|
@@ -24,6 +24,12 @@ let OneTableTournamentController = class OneTableTournamentController {
|
|
|
24
24
|
getStatusScreen(tournamentId, headers) {
|
|
25
25
|
return this.tournamentService.getStatusScreen(tournamentId, headers.client_language);
|
|
26
26
|
}
|
|
27
|
+
subscribeOnStatusScreen(tournamentId, headers) {
|
|
28
|
+
return this.tournamentService.subscribeOnStatusScreen(tournamentId, headers.client_language);
|
|
29
|
+
}
|
|
30
|
+
unsubscribeFromStatusScreen(tournamentId, headers) {
|
|
31
|
+
return this.tournamentService.unsubscribeFromStatusScreen(tournamentId, headers.client_language);
|
|
32
|
+
}
|
|
27
33
|
watchTheTable(tableId, headers) {
|
|
28
34
|
return this.tournamentService.watchTheTable(tableId, headers.client_auth_token);
|
|
29
35
|
}
|
|
@@ -44,8 +50,24 @@ __decorate([
|
|
|
44
50
|
__param(1, (0, common_1.Headers)()),
|
|
45
51
|
__metadata("design:type", Function),
|
|
46
52
|
__metadata("design:paramtypes", [String, Object]),
|
|
47
|
-
__metadata("design:returntype",
|
|
53
|
+
__metadata("design:returntype", Object)
|
|
48
54
|
], OneTableTournamentController.prototype, "getStatusScreen", null);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, common_1.Get)('status/subscribe/:tournamentId'),
|
|
57
|
+
__param(0, (0, common_1.Param)('tournamentId')),
|
|
58
|
+
__param(1, (0, common_1.Headers)()),
|
|
59
|
+
__metadata("design:type", Function),
|
|
60
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
61
|
+
__metadata("design:returntype", Promise)
|
|
62
|
+
], OneTableTournamentController.prototype, "subscribeOnStatusScreen", null);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, common_1.Get)('status/unsubscribe/:tournamentId'),
|
|
65
|
+
__param(0, (0, common_1.Param)('tournamentId')),
|
|
66
|
+
__param(1, (0, common_1.Headers)()),
|
|
67
|
+
__metadata("design:type", Function),
|
|
68
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
69
|
+
__metadata("design:returntype", Promise)
|
|
70
|
+
], OneTableTournamentController.prototype, "unsubscribeFromStatusScreen", null);
|
|
49
71
|
__decorate([
|
|
50
72
|
(0, common_1.Post)('table/watch/:tableId'),
|
|
51
73
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-table-tournament.controller.js","sourceRoot":"","sources":["../../../src/modules/one-table-tournament/one-table-tournament.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAmG;AAGnG,iFAA2E;AAC3E,8EAAyE;AAGlE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAEhB;IADrB,YACqB,iBAA4C;QAA5C,sBAAiB,GAAjB,iBAAiB,CAA2B;IAEjE,CAAC;IAGD,eAAe,CACY,YAAoB,EAChC,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACzF,CAAC;IAID,aAAa,CACS,OAAe,EACtB,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACpF,CAAC;IAID,cAAc,CACQ,OAAe,EACzB,YAA2B,EACxB,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;IACnG,CAAC;IAID,cAAc,CACa,YAAoB,EAChC,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,YAAY,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC1F,CAAC;IAID,eAAe,CACY,YAAoB,EAChC,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC3F,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"one-table-tournament.controller.js","sourceRoot":"","sources":["../../../src/modules/one-table-tournament/one-table-tournament.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAmG;AAGnG,iFAA2E;AAC3E,8EAAyE;AAGlE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAEhB;IADrB,YACqB,iBAA4C;QAA5C,sBAAiB,GAAjB,iBAAiB,CAA2B;IAEjE,CAAC;IAGD,eAAe,CACY,YAAoB,EAChC,OAAoB;QAE/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,EAAE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AAE,CAAA;;;;2EAGb;AAGD;IADC,IAAA,YAAG,EAAC,kCAAkC,CAAC;IAEnC,WAAA,IAAA,cAAK,EAAC,cAAc,CAAC,CAAA;IACrB,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;+EAGb;AAID;IAFC,IAAA,aAAI,EAAC,sBAAsB,CAAC;IAC5B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAEnB,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;IAChB,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;iEAGb;AAID;IAFC,IAAA,aAAI,EAAC,qBAAqB,CAAC;IAC3B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAEnB,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;IAChB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;kEAGb;AAID;IAFC,IAAA,aAAI,EAAC,oBAAoB,CAAC;IAC1B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAEnB,WAAA,IAAA,cAAK,EAAC,cAAc,CAAC,CAAA;IACrB,WAAA,IAAA,gBAAO,GAAE,CAAA;;;oCACX,uCAAiB;kEAEnB;AAID;IAFC,IAAA,aAAI,EAAC,qBAAqB,CAAC;IAC3B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAEnB,WAAA,IAAA,cAAK,EAAC,cAAc,CAAC,CAAA;IACrB,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;mEAGb;uCAjEQ,4BAA4B;IADxC,IAAA,mBAAU,EAAC,sBAAsB,CAAC;qCAGS,wDAAyB;GAFxD,4BAA4B,CAkExC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { DynamicModule } from '@nestjs/common';
|
|
2
|
+
import { TournamentOneTableRoomsManagerService } from '../tournament-one-table-rooms-manager/tournament-one-table-rooms-manager.service';
|
|
3
|
+
import { EventsBusOneTableTournamentSubscribeService } from '../event-bus';
|
|
4
|
+
import { OneTableTournamentService } from './one-table-tournament.service';
|
|
2
5
|
import { OneTableTournamentModuleOptions } from './one-table-tournament.interfaces';
|
|
3
6
|
export declare class OneTableTournamentModule {
|
|
4
|
-
|
|
7
|
+
private readonly oneTableRoomsManagerService;
|
|
8
|
+
private readonly eventsBusOneTableTournamentSubscribeService;
|
|
9
|
+
private readonly oneTableTournamentService;
|
|
10
|
+
constructor(oneTableRoomsManagerService: TournamentOneTableRoomsManagerService, eventsBusOneTableTournamentSubscribeService: EventsBusOneTableTournamentSubscribeService, oneTableTournamentService: OneTableTournamentService);
|
|
5
11
|
static forRootAsync(options: OneTableTournamentModuleOptions): DynamicModule;
|
|
12
|
+
onModuleInit(): Promise<void>;
|
|
13
|
+
private onHandleStatusRoomChange;
|
|
6
14
|
}
|
|
@@ -14,11 +14,20 @@ exports.OneTableTournamentModule = void 0;
|
|
|
14
14
|
const common_1 = require("@nestjs/common");
|
|
15
15
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
16
16
|
const jp_db_schemas_1 = require("jp.db.schemas");
|
|
17
|
+
const jp_ms_common_engine_1 = require("jp.ms.common.engine");
|
|
18
|
+
const tournament_one_table_rooms_manager_service_1 = require("../tournament-one-table-rooms-manager/tournament-one-table-rooms-manager.service");
|
|
19
|
+
const event_bus_1 = require("../event-bus");
|
|
17
20
|
const one_table_tournament_controller_1 = require("./one-table-tournament.controller");
|
|
18
21
|
const one_table_tournament_service_1 = require("./one-table-tournament.service");
|
|
19
22
|
const one_table_tournament_constants_1 = require("./one-table-tournament.constants");
|
|
20
23
|
let OneTableTournamentModule = OneTableTournamentModule_1 = class OneTableTournamentModule {
|
|
21
|
-
|
|
24
|
+
oneTableRoomsManagerService;
|
|
25
|
+
eventsBusOneTableTournamentSubscribeService;
|
|
26
|
+
oneTableTournamentService;
|
|
27
|
+
constructor(oneTableRoomsManagerService, eventsBusOneTableTournamentSubscribeService, oneTableTournamentService) {
|
|
28
|
+
this.oneTableRoomsManagerService = oneTableRoomsManagerService;
|
|
29
|
+
this.eventsBusOneTableTournamentSubscribeService = eventsBusOneTableTournamentSubscribeService;
|
|
30
|
+
this.oneTableTournamentService = oneTableTournamentService;
|
|
22
31
|
}
|
|
23
32
|
static forRootAsync(options) {
|
|
24
33
|
return {
|
|
@@ -33,6 +42,15 @@ let OneTableTournamentModule = OneTableTournamentModule_1 = class OneTableTourna
|
|
|
33
42
|
],
|
|
34
43
|
};
|
|
35
44
|
}
|
|
45
|
+
async onModuleInit() {
|
|
46
|
+
this.eventsBusOneTableTournamentSubscribeService.subscribe(this.onHandleStatusRoomChange);
|
|
47
|
+
}
|
|
48
|
+
onHandleStatusRoomChange = (event) => {
|
|
49
|
+
this.oneTableRoomsManagerService.getRoomById(event.roomId)?.getStatusScreenWatchers().forEach((subscriber) => {
|
|
50
|
+
const screen = this.oneTableTournamentService.getStatusScreen(event.roomId, subscriber.language);
|
|
51
|
+
subscriber.sendMessage(new jp_ms_common_engine_1.OneTableTournamentUpdateStatusWsEvent(screen.screen));
|
|
52
|
+
});
|
|
53
|
+
};
|
|
36
54
|
};
|
|
37
55
|
exports.OneTableTournamentModule = OneTableTournamentModule;
|
|
38
56
|
exports.OneTableTournamentModule = OneTableTournamentModule = OneTableTournamentModule_1 = __decorate([
|
|
@@ -43,6 +61,8 @@ exports.OneTableTournamentModule = OneTableTournamentModule = OneTableTournament
|
|
|
43
61
|
controllers: [one_table_tournament_controller_1.OneTableTournamentController],
|
|
44
62
|
providers: [one_table_tournament_service_1.OneTableTournamentService, jp_db_schemas_1.TournamentOneTableRoomsRepository],
|
|
45
63
|
}),
|
|
46
|
-
__metadata("design:paramtypes", [
|
|
64
|
+
__metadata("design:paramtypes", [tournament_one_table_rooms_manager_service_1.TournamentOneTableRoomsManagerService,
|
|
65
|
+
event_bus_1.EventsBusOneTableTournamentSubscribeService,
|
|
66
|
+
one_table_tournament_service_1.OneTableTournamentService])
|
|
47
67
|
], OneTableTournamentModule);
|
|
48
68
|
//# sourceMappingURL=one-table-tournament.module.js.map
|