game_client_logic_deb 1.8.144 → 1.8.181

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 (55) hide show
  1. package/Kosi-Kaverit-kaverit.js +79 -79
  2. package/Kosi-Kodein-kodein-di.js +624 -624
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +5660 -307
  4. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  5. package/Logic_Debertz-core.js +1742 -1602
  6. package/Logic_Debertz-core.js.map +1 -1
  7. package/Logic_Debertz-engine.js +19759 -15486
  8. package/Logic_Debertz-engine.js.map +1 -1
  9. package/Logic_Debertz-game_client.d.ts +338 -94
  10. package/Logic_Debertz-game_client.js +4974 -4762
  11. package/Logic_Debertz-game_client.js.map +1 -1
  12. package/kotlin-kotlin-stdlib.js +2652 -2316
  13. package/kotlin-kotlin-stdlib.js.map +1 -1
  14. package/kotlinx-atomicfu.js +31 -31
  15. package/kotlinx-atomicfu.js.map +1 -1
  16. package/kotlinx-coroutines-core.js +2520 -2520
  17. package/kotlinx-coroutines-core.js.map +1 -1
  18. package/kotlinx-io-kotlinx-io-core.js +280 -280
  19. package/kotlinx-serialization-kotlinx-serialization-core.js +2050 -2049
  20. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  21. package/kotlinx-serialization-kotlinx-serialization-json.js +1466 -1466
  22. package/ktor-ktor-client-content-negotiation.js +15 -0
  23. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  24. package/ktor-ktor-client-core.js +15 -0
  25. package/ktor-ktor-client-core.js.map +1 -0
  26. package/ktor-ktor-client-js.js +15 -0
  27. package/ktor-ktor-client-js.js.map +1 -0
  28. package/ktor-ktor-client-logging.js +57 -0
  29. package/ktor-ktor-client-logging.js.map +1 -0
  30. package/ktor-ktor-events.js +15 -0
  31. package/ktor-ktor-events.js.map +1 -0
  32. package/ktor-ktor-http.js +15 -0
  33. package/ktor-ktor-http.js.map +1 -0
  34. package/ktor-ktor-io.js +19 -0
  35. package/ktor-ktor-io.js.map +1 -0
  36. package/ktor-ktor-serialization-kotlinx-json.js +15 -0
  37. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  38. package/ktor-ktor-serialization-kotlinx.js +15 -0
  39. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  40. package/ktor-ktor-serialization.js +15 -0
  41. package/ktor-ktor-serialization.js.map +1 -0
  42. package/ktor-ktor-utils.js +19 -0
  43. package/ktor-ktor-utils.js.map +1 -0
  44. package/ktor-ktor-websocket-serialization.js +15 -0
  45. package/ktor-ktor-websocket-serialization.js.map +1 -0
  46. package/ktor-ktor-websockets.js +15 -0
  47. package/ktor-ktor-websockets.js.map +1 -0
  48. package/package.json +5 -2
  49. package/raspberry-cardgame-lib-core.js +217 -533
  50. package/raspberry-cardgame-lib-core.js.map +1 -1
  51. package/raspberry-cardgame-lib-logger.js +407 -0
  52. package/raspberry-cardgame-lib-logger.js.map +1 -0
  53. package/raspberry-cardgame-lib-random.js +403 -0
  54. package/raspberry-cardgame-lib-random.js.map +1 -0
  55. package/uuid.js +32 -32
@@ -6,6 +6,12 @@ export declare namespace kotlin.collections {
6
6
  readonly "kotlin.collections.KtList": unique symbol;
7
7
  };
8
8
  }
9
+ interface KtSet<E> /* extends kotlin.collections.Collection<E> */ {
10
+ asJsReadonlySetView(): ReadonlySet<E>;
11
+ readonly __doNotUseOrImplementIt: {
12
+ readonly "kotlin.collections.KtSet": unique symbol;
13
+ };
14
+ }
9
15
  interface KtMap<K, V> {
10
16
  asJsReadonlyMapView(): ReadonlyMap<K, V>;
11
17
  readonly __doNotUseOrImplementIt: {
@@ -13,34 +19,29 @@ export declare namespace kotlin.collections {
13
19
  };
14
20
  }
15
21
  }
16
- export declare namespace io.raspberryapps.cardgame.core {
17
- const CoreConfig: {
18
- get version(): string;
19
- };
20
- }
21
- export declare namespace io.raspberryapps.card_game.core.utils.logger {
22
- interface LoggerEnabledTrigger extends io.raspberryapps.card_game.core.utils.logger.RaspberryLogger {
22
+ export declare namespace games.raspberry.logger {
23
+ interface LoggerEnabledTrigger extends games.raspberry.logger.RaspberryLogger {
23
24
  enabled: boolean;
24
25
  readonly __doNotUseOrImplementIt: {
25
- readonly "io.raspberryapps.card_game.core.utils.logger.LoggerEnabledTrigger": unique symbol;
26
- } & io.raspberryapps.card_game.core.utils.logger.RaspberryLogger["__doNotUseOrImplementIt"];
26
+ readonly "games.raspberry.logger.LoggerEnabledTrigger": unique symbol;
27
+ } & games.raspberry.logger.RaspberryLogger["__doNotUseOrImplementIt"];
27
28
  }
28
29
  }
29
- export declare namespace io.raspberryapps.card_game.core.utils.logger {
30
+ export declare namespace games.raspberry.logger {
30
31
  interface LoggerPayload {
31
32
  readonly __doNotUseOrImplementIt: {
32
- readonly "io.raspberryapps.card_game.core.utils.logger.LoggerPayload": unique symbol;
33
+ readonly "games.raspberry.logger.LoggerPayload": unique symbol;
33
34
  };
34
35
  }
35
36
  }
36
- export declare namespace io.raspberryapps.card_game.core.utils.logger {
37
- interface RaspberryLogger extends io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput {
37
+ export declare namespace games.raspberry.logger {
38
+ interface RaspberryLogger extends games.raspberry.logger.output.LoggerOutput {
38
39
  readonly __doNotUseOrImplementIt: {
39
- readonly "io.raspberryapps.card_game.core.utils.logger.RaspberryLogger": unique symbol;
40
- } & io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput["__doNotUseOrImplementIt"];
40
+ readonly "games.raspberry.logger.RaspberryLogger": unique symbol;
41
+ } & games.raspberry.logger.output.LoggerOutput["__doNotUseOrImplementIt"];
41
42
  }
42
43
  }
43
- export declare namespace io.raspberryapps.card_game.core.utils.logger.output {
44
+ export declare namespace games.raspberry.logger.output {
44
45
  interface LoggerOutput {
45
46
  d(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
46
47
  e(tag?: Nullable<string>, message?: Nullable<string>, exception?: Nullable<Error>, payload?: Nullable<any>): void;
@@ -48,10 +49,66 @@ export declare namespace io.raspberryapps.card_game.core.utils.logger.output {
48
49
  v(tag?: Nullable<string>, message?: Nullable<string>, exception?: Nullable<Error>, payload?: Nullable<any>): void;
49
50
  i(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
50
51
  readonly __doNotUseOrImplementIt: {
51
- readonly "io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput": unique symbol;
52
+ readonly "games.raspberry.logger.output.LoggerOutput": unique symbol;
52
53
  };
53
54
  }
54
55
  }
56
+ export declare namespace games.raspberry.card_game.random.data.models {
57
+ class GameCardDecksRecord {
58
+ constructor(signature: string, userData: any/* games.raspberry.card_game.random.data.models.CardDeckRequestUserData */, rounds?: kotlin.collections.KtList<games.raspberry.card_game.random.data.models.GameCardDeckData>);
59
+ get signature(): string;
60
+ get userData(): any/* games.raspberry.card_game.random.data.models.CardDeckRequestUserData */;
61
+ get rounds(): kotlin.collections.KtList<games.raspberry.card_game.random.data.models.GameCardDeckData>;
62
+ copy(signature?: string, userData?: any/* games.raspberry.card_game.random.data.models.CardDeckRequestUserData */, rounds?: kotlin.collections.KtList<games.raspberry.card_game.random.data.models.GameCardDeckData>): games.raspberry.card_game.random.data.models.GameCardDecksRecord;
63
+ toString(): string;
64
+ hashCode(): number;
65
+ equals(other: Nullable<any>): boolean;
66
+ static get Companion(): {
67
+ firstRound(signature: string, newCardDeckData: games.raspberry.card_game.random.data.models.GameCardDeckData, userData: any/* games.raspberry.card_game.random.data.models.CardDeckRequestUserData */): games.raspberry.card_game.random.data.models.GameCardDecksRecord;
68
+ newRound(gameCardDecksRecord: games.raspberry.card_game.random.data.models.GameCardDecksRecord, newCardDeckData: games.raspberry.card_game.random.data.models.GameCardDeckData): games.raspberry.card_game.random.data.models.GameCardDecksRecord;
69
+ };
70
+ }
71
+ class GameCardDeckData {
72
+ constructor(cardDeckIndex: number, cards: kotlin.collections.KtList<number>);
73
+ get cardDeckIndex(): number;
74
+ get cards(): kotlin.collections.KtList<number>;
75
+ copy(cardDeckIndex?: number, cards?: kotlin.collections.KtList<number>): games.raspberry.card_game.random.data.models.GameCardDeckData;
76
+ toString(): string;
77
+ hashCode(): number;
78
+ equals(other: Nullable<any>): boolean;
79
+ }
80
+ }
81
+ export declare namespace games.raspberry.card_game.random.data.models {
82
+ class RandomOrgConfig {
83
+ constructor(apiKey?: string, poolSize?: number, thresholdForUsedPool?: number, httpConfig?: games.raspberry.card_game.random.di.HttpConfig);
84
+ get apiKey(): string;
85
+ get poolSize(): number;
86
+ get thresholdForUsedPool(): number;
87
+ get httpConfig(): games.raspberry.card_game.random.di.HttpConfig;
88
+ copy(apiKey?: string, poolSize?: number, thresholdForUsedPool?: number, httpConfig?: games.raspberry.card_game.random.di.HttpConfig): games.raspberry.card_game.random.data.models.RandomOrgConfig;
89
+ toString(): string;
90
+ hashCode(): number;
91
+ equals(other: Nullable<any>): boolean;
92
+ }
93
+ }
94
+ export declare namespace games.raspberry.card_game.random.di {
95
+ class HttpConfig {
96
+ constructor(baseUrl: string, timeoutMillis?: any/* kotlin.Long */, loggingLevel?: any/* io.ktor.client.plugins.logging.LogLevel */, json?: any/* kotlinx.serialization.json.Json */);
97
+ get baseUrl(): string;
98
+ get timeoutMillis(): any/* kotlin.Long */;
99
+ get loggingLevel(): any/* io.ktor.client.plugins.logging.LogLevel */;
100
+ get json(): any/* kotlinx.serialization.json.Json */;
101
+ copy(baseUrl?: string, timeoutMillis?: any/* kotlin.Long */, loggingLevel?: any/* io.ktor.client.plugins.logging.LogLevel */, json?: any/* kotlinx.serialization.json.Json */): games.raspberry.card_game.random.di.HttpConfig;
102
+ toString(): string;
103
+ hashCode(): number;
104
+ equals(other: Nullable<any>): boolean;
105
+ }
106
+ }
107
+ export declare namespace io.raspberryapps.cardgame.core {
108
+ const CoreConfig: {
109
+ get version(): string;
110
+ };
111
+ }
55
112
  export declare namespace com.logic {
56
113
  const GameEngineConfig: {
57
114
  get version(): string;
@@ -359,20 +416,22 @@ export declare namespace com.logic.utils.logger.outputs {
359
416
  }
360
417
  }
361
418
  export declare namespace com.logic.utils.logger.outputs {
362
- interface ObservableLoggerOutput extends io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput, io.raspberryapps.card_game.core.utils.logger.LoggerEnabledTrigger {
419
+ interface ObservableLoggerOutput extends games.raspberry.logger.output.LoggerOutput, games.raspberry.logger.LoggerEnabledTrigger {
420
+ payloadToKeyMapper: (p0: Nullable<any>) => Nullable<string>;
363
421
  observe(types?: Array<com.logic.utils.logger.outputs.LogType>): any/* kotlinx.coroutines.flow.Flow<com.logic.utils.logger.outputs.LoggerOutputDataDto> */;
364
422
  readonly __doNotUseOrImplementIt: {
365
423
  readonly "com.logic.utils.logger.outputs.ObservableLoggerOutput": unique symbol;
366
- } & io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput["__doNotUseOrImplementIt"] & io.raspberryapps.card_game.core.utils.logger.LoggerEnabledTrigger["__doNotUseOrImplementIt"];
424
+ } & games.raspberry.logger.output.LoggerOutput["__doNotUseOrImplementIt"] & games.raspberry.logger.LoggerEnabledTrigger["__doNotUseOrImplementIt"];
367
425
  }
368
426
  class LoggerOutputDataDto {
369
- constructor(type: com.logic.utils.logger.outputs.LogType, tag: Nullable<string>, message: Nullable<string>, stackTrace: Nullable<string>);
427
+ constructor(type: com.logic.utils.logger.outputs.LogType, key: Nullable<string>, tag: Nullable<string>, message: Nullable<string>, stackTrace: Nullable<string>);
370
428
  get type(): com.logic.utils.logger.outputs.LogType;
429
+ get key(): Nullable<string>;
371
430
  get tag(): Nullable<string>;
372
431
  get message(): Nullable<string>;
373
432
  get stackTrace(): Nullable<string>;
374
433
  toMessageLog(): string;
375
- copy(type?: com.logic.utils.logger.outputs.LogType, tag?: Nullable<string>, message?: Nullable<string>, stackTrace?: Nullable<string>): com.logic.utils.logger.outputs.LoggerOutputDataDto;
434
+ copy(type?: com.logic.utils.logger.outputs.LogType, key?: Nullable<string>, tag?: Nullable<string>, message?: Nullable<string>, stackTrace?: Nullable<string>): com.logic.utils.logger.outputs.LoggerOutputDataDto;
376
435
  toString(): string;
377
436
  hashCode(): number;
378
437
  equals(other: Nullable<any>): boolean;
@@ -402,7 +461,7 @@ export declare namespace games.jass.logic.data.models {
402
461
  copy(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number>>): games.jass.logic.data.models.DealerConfig;
403
462
  toString(): string;
404
463
  static get Companion(): {
405
- getFromServerConfig(dealerStrategy?: string, cards?: Nullable<Array<number>>): games.jass.logic.data.models.DealerConfig;
464
+ getFromServerConfig(dealerStrategy?: string, cardsJson?: Nullable<string>): games.jass.logic.data.models.DealerConfig;
406
465
  fake(cards?: Array<number>): games.jass.logic.data.models.DealerConfig;
407
466
  };
408
467
  }
@@ -422,13 +481,14 @@ export declare namespace games.jass.logic.data.models {
422
481
  }
423
482
  export declare namespace games.jass.logic.data.models {
424
483
  class EngineLogicConfig {
425
- constructor(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean, validateFromClientActionTags?: boolean, playerTimeoutFactorToFinishStep?: number);
484
+ constructor(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean, gameHistoryAnalytics?: boolean, validateFromClientActionTags?: boolean, playerTimeoutFactorToFinishStep?: number);
426
485
  get supportBackwardActions(): boolean;
427
486
  get validateTestMode(): boolean;
428
487
  get verboseGameHistory(): boolean;
488
+ get gameHistoryMetadata(): boolean;
429
489
  get validateFromClientActionTags(): boolean;
430
490
  get playerTimeoutFactorToFinishStep(): number;
431
- copy(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean, validateFromClientActionTags?: boolean, playerTimeoutFactorToFinishStep?: number): games.jass.logic.data.models.EngineLogicConfig;
491
+ copy(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean, gameHistoryAnalytics?: boolean, validateFromClientActionTags?: boolean, playerTimeoutFactorToFinishStep?: number): games.jass.logic.data.models.EngineLogicConfig;
432
492
  toString(): string;
433
493
  hashCode(): number;
434
494
  equals(other: Nullable<any>): boolean;
@@ -467,22 +527,161 @@ export declare namespace games.jass.logic.data.models {
467
527
  }
468
528
  export declare namespace games.jass.logic.data.models {
469
529
  class GameSessionAnalytics {
470
- constructor(duration: any/* kotlin.time.Duration */, gamesCount: number, roundsCountTotal: number, playerAnalytics: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.PlayerAnalytics>);
530
+ constructor(duration: any/* kotlin.time.Duration */, gamesCount: number, roundsCountTotal: number, handsCount: number, playerAnalytics: Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>);
471
531
  get duration(): any/* kotlin.time.Duration */;
472
532
  get gamesCount(): number;
473
533
  get roundsCountTotal(): number;
474
- get playerAnalytics(): kotlin.collections.KtList<games.jass.logic.data.models.player.hand.PlayerAnalytics>;
534
+ get handsCount(): number;
535
+ get playerAnalytics(): Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>;
475
536
  get allCombinationCounts(): Array<games.jass.logic.data.models.CombinationPair>;
476
- copy(duration?: any/* kotlin.time.Duration */, gamesCount?: number, roundsCountTotal?: number, playerAnalytics?: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.PlayerAnalytics>): games.jass.logic.data.models.GameSessionAnalytics;
537
+ get allCombinationsAnalytics(): games.jass.logic.data.models.player.analytics.CombinationsAnalytics;
538
+ equals(other: Nullable<any>): boolean;
539
+ hashCode(): number;
540
+ toString(): string;
541
+ copy(duration?: any/* kotlin.time.Duration */, gamesCount?: number, roundsCountTotal?: number, handsCount?: number, playerAnalytics?: Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>): games.jass.logic.data.models.GameSessionAnalytics;
542
+ }
543
+ class CombinationPair {
544
+ constructor(type: games.jass.logic.data.models.table.combinations.CombinationType, count: number);
545
+ get type(): games.jass.logic.data.models.table.combinations.CombinationType;
546
+ get count(): number;
547
+ copy(type?: games.jass.logic.data.models.table.combinations.CombinationType, count?: number): games.jass.logic.data.models.CombinationPair;
477
548
  toString(): string;
478
549
  hashCode(): number;
479
550
  equals(other: Nullable<any>): boolean;
480
551
  }
481
- class CombinationPair {
482
- constructor(combinationType: games.jass.logic.data.models.table.combinations.CombinationType, count: number);
483
- get combinationType(): games.jass.logic.data.models.table.combinations.CombinationType;
552
+ }
553
+ export declare namespace games.jass.logic.data.models.config {
554
+ class ServerReduxConfig {
555
+ constructor(finishGameIfAllBots?: boolean, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsPeriod?: number);
556
+ get finishGameIfAllBots(): boolean;
557
+ get waitForPlayerToReconnect(): boolean;
558
+ get waitForPlayerToReconnectTimeOutMillis(): number;
559
+ get closeIfBotsAtFinish(): boolean;
560
+ get botReplacesPlayerAfterTimeout(): boolean;
561
+ get enabledCombinedEvents(): boolean;
562
+ get delayToAskBotMillis(): number;
563
+ get combinedEventsPeriod(): number;
564
+ copy(finishGameIfAllBots?: boolean, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsPeriod?: number): games.jass.logic.data.models.config.ServerReduxConfig;
565
+ toString(): string;
566
+ hashCode(): number;
567
+ equals(other: Nullable<any>): boolean;
568
+ static get Companion(): {
569
+ get DELAY_TO_BUFFER_EVENTS_MILLIS(): number;
570
+ getServerEngineMode(finishGameIfAllBots: boolean, botReplacesPlayerAfterTimeout: boolean, closeIfBotsAtFinish: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number): games.jass.logic.data.models.config.ServerReduxConfig;
571
+ };
572
+ }
573
+ }
574
+ export declare namespace games.jass.logic.data.models.dealer {
575
+ class RandomData {
576
+ constructor(signature: string, indexes: kotlin.collections.KtList<number>);
577
+ get signature(): string;
578
+ get indexes(): kotlin.collections.KtList<number>;
579
+ }
580
+ }
581
+ export declare namespace games.jass.logic.data.models.messages.combinatios {
582
+ abstract class CombinationReason /* implements kotlin.Comparable<games.jass.logic.data.models.messages.combinatios.CombinationReason> */ {
583
+ private constructor();
584
+ static get WIN_SINGLE_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
585
+ get name(): "WIN_SINGLE_COMBINATION";
586
+ get ordinal(): 0;
587
+ };
588
+ static get WIN_HIGHER_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
589
+ get name(): "WIN_HIGHER_COMBINATION";
590
+ get ordinal(): 1;
591
+ };
592
+ static get WIN_HIGHER_CARD_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
593
+ get name(): "WIN_HIGHER_CARD_COMBINATION";
594
+ get ordinal(): 2;
595
+ };
596
+ static get WIN_TRUMP_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
597
+ get name(): "WIN_TRUMP_COMBINATION";
598
+ get ordinal(): 3;
599
+ };
600
+ static get WIN_HIGHER_PLAYER_NUMBER_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
601
+ get name(): "WIN_HIGHER_PLAYER_NUMBER_COMBINATION";
602
+ get ordinal(): 4;
603
+ };
604
+ static get WIN_PARTNER_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
605
+ get name(): "WIN_PARTNER_COMBINATION";
606
+ get ordinal(): 5;
607
+ };
608
+ static get REJECTED_NOT_TRUMP_SEVEN_IN_ROW_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
609
+ get name(): "REJECTED_NOT_TRUMP_SEVEN_IN_ROW_COMBINATION";
610
+ get ordinal(): 6;
611
+ };
612
+ get name(): "WIN_SINGLE_COMBINATION" | "WIN_HIGHER_COMBINATION" | "WIN_HIGHER_CARD_COMBINATION" | "WIN_TRUMP_COMBINATION" | "WIN_HIGHER_PLAYER_NUMBER_COMBINATION" | "WIN_PARTNER_COMBINATION" | "REJECTED_NOT_TRUMP_SEVEN_IN_ROW_COMBINATION";
613
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
614
+ static values(): Array<games.jass.logic.data.models.messages.combinatios.CombinationReason>;
615
+ static valueOf(value: string): games.jass.logic.data.models.messages.combinatios.CombinationReason;
616
+ }
617
+ }
618
+ export declare namespace games.jass.logic.data.models.player {
619
+ class UserProfilePayload {
620
+ constructor(socketId?: Nullable<string>, rating?: Nullable<number>, playedGamesCount?: number);
621
+ get socketId(): Nullable<string>;
622
+ get rating(): Nullable<number>;
623
+ get playedGamesCount(): number;
624
+ copy(socketId?: Nullable<string>, rating?: Nullable<number>, playedGamesCount?: number): games.jass.logic.data.models.player.UserProfilePayload;
625
+ toString(): string;
626
+ hashCode(): number;
627
+ equals(other: Nullable<any>): boolean;
628
+ }
629
+ }
630
+ export declare namespace games.jass.logic.data.models.player.achievements {
631
+ class PlayerAchievements {
632
+ constructor(oldRating: number, newRating: number);
633
+ get oldRating(): number;
634
+ get newRating(): number;
635
+ copy(oldRating?: number, newRating?: number): games.jass.logic.data.models.player.achievements.PlayerAchievements;
636
+ toString(): string;
637
+ hashCode(): number;
638
+ equals(other: Nullable<any>): boolean;
639
+ }
640
+ }
641
+ export declare namespace games.jass.logic.data.models.player.analytics {
642
+ class CombinationsAnalytics {
643
+ constructor(combinations: Array<games.jass.logic.data.models.player.analytics.CombinationAnalytics>);
644
+ get combinations(): Array<games.jass.logic.data.models.player.analytics.CombinationAnalytics>;
645
+ equals(other: Nullable<any>): boolean;
646
+ hashCode(): number;
647
+ copy(combinations?: Array<games.jass.logic.data.models.player.analytics.CombinationAnalytics>): games.jass.logic.data.models.player.analytics.CombinationsAnalytics;
648
+ toString(): string;
649
+ }
650
+ class CombinationAnalytics {
651
+ constructor(type: games.jass.logic.data.models.table.combinations.CombinationType, count: number, acceptedCounts: number);
652
+ get type(): games.jass.logic.data.models.table.combinations.CombinationType;
484
653
  get count(): number;
485
- copy(combinationType?: games.jass.logic.data.models.table.combinations.CombinationType, count?: number): games.jass.logic.data.models.CombinationPair;
654
+ get acceptedCounts(): number;
655
+ copy(type?: games.jass.logic.data.models.table.combinations.CombinationType, count?: number, acceptedCounts?: number): games.jass.logic.data.models.player.analytics.CombinationAnalytics;
656
+ toString(): string;
657
+ hashCode(): number;
658
+ equals(other: Nullable<any>): boolean;
659
+ }
660
+ }
661
+ export declare namespace games.jass.logic.data.models.player.analytics {
662
+ class PlayerAnalytics implements com.logic.data.models.player.PlayerIdContract {
663
+ constructor(playerId: string, factor: number, wasLiveDuringGame: boolean, liveDurationPercentage: Nullable<number>, combinationRecords: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>);
664
+ get playerId(): string;
665
+ get factor(): number;
666
+ get wasLiveDuringGame(): boolean;
667
+ get liveDurationPercentage(): Nullable<number>;
668
+ get combinationRecords(): kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>;
669
+ get combinationCounts(): kotlin.collections.KtMap<games.jass.logic.data.models.table.combinations.CombinationType, number>;
670
+ get combinationsAnalytics(): games.jass.logic.data.models.player.analytics.CombinationsAnalytics;
671
+ toString(): string;
672
+ copy(playerId?: string, factor?: number, wasLiveDuringGame?: boolean, liveDurationPercentage?: Nullable<number>, combinationRecords?: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>): games.jass.logic.data.models.player.analytics.PlayerAnalytics;
673
+ hashCode(): number;
674
+ equals(other: Nullable<any>): boolean;
675
+ readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
676
+ }
677
+ }
678
+ export declare namespace games.jass.logic.data.models.player.analytics {
679
+ class PlayerHistoryAnalytics /* implements games.jass.logic.data.models.table.history.PlayerHistoryItem */ {
680
+ constructor(playerId: string, liveDurationPercentage: Nullable<number>, combinations: Nullable<kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.CombinationAnalytics>>, achievements: Nullable<games.jass.logic.data.models.player.achievements.PlayerAchievements>);
681
+ get liveDurationPercentage(): Nullable<number>;
682
+ get combinations(): Nullable<kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.CombinationAnalytics>>;
683
+ get achievements(): Nullable<games.jass.logic.data.models.player.achievements.PlayerAchievements>;
684
+ copy(playerId?: string, liveDurationPercentage?: Nullable<number>, combinations?: Nullable<kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.CombinationAnalytics>>, achievements?: Nullable<games.jass.logic.data.models.player.achievements.PlayerAchievements>): games.jass.logic.data.models.player.analytics.PlayerHistoryAnalytics;
486
685
  toString(): string;
487
686
  hashCode(): number;
488
687
  equals(other: Nullable<any>): boolean;
@@ -528,28 +727,13 @@ export declare namespace games.jass.logic.data.models.player.hand {
528
727
  get type(): games.jass.logic.data.models.table.combinations.CombinationType;
529
728
  get state(): games.jass.logic.data.models.table.combinations.CombinationState;
530
729
  get value(): number;
730
+ get isAccepted(): boolean;
531
731
  copy(id?: string, type?: games.jass.logic.data.models.table.combinations.CombinationType, state?: games.jass.logic.data.models.table.combinations.CombinationState, value?: number): games.jass.logic.data.models.player.hand.CombinationRecord;
532
732
  toString(): string;
533
733
  hashCode(): number;
534
734
  equals(other: Nullable<any>): boolean;
535
735
  }
536
736
  }
537
- export declare namespace games.jass.logic.data.models.player.hand {
538
- class PlayerAnalytics implements com.logic.data.models.player.PlayerIdContract {
539
- constructor(playerId: string, factor: number, wasLiveDuringGame: boolean, liveDurationPercentage: Nullable<number>, combinationRecords: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>);
540
- get playerId(): string;
541
- get factor(): number;
542
- get wasLiveDuringGame(): boolean;
543
- get liveDurationPercentage(): Nullable<number>;
544
- get combinationRecords(): kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>;
545
- get combinationCounts(): kotlin.collections.KtMap<games.jass.logic.data.models.table.combinations.CombinationType, number>;
546
- copy(playerId?: string, factor?: number, wasLiveDuringGame?: boolean, liveDurationPercentage?: Nullable<number>, combinationRecords?: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>): games.jass.logic.data.models.player.hand.PlayerAnalytics;
547
- toString(): string;
548
- hashCode(): number;
549
- equals(other: Nullable<any>): boolean;
550
- readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
551
- }
552
- }
553
737
  export declare namespace games.jass.logic.data.models.player.state {
554
738
  abstract class RoundContractState {
555
739
  private constructor();
@@ -606,33 +790,34 @@ export declare namespace games.jass.logic.data.models.player.state {
606
790
  }
607
791
  export declare namespace games.jass.logic.data.models.rules {
608
792
  class Rules {
609
- constructor(needToPutHigherTrump: boolean, distributePoints: boolean, protectBella: boolean, oneTryToProtectBella: boolean, enableFourSevensCombination: boolean, enableTrumpSevenCombination: boolean, enableTrumpSevenCombinationAfterDistribution: boolean, playerWhoChooseSuitGoFirst: boolean, winnerShuffleCards: boolean, playWithoutLiabilities: boolean, trumpCardGoToPlayerWhoShuffleCards: boolean, enableFineIfNoBribes: boolean, fineIfNoBribes: number, enableFineAfterThirdByte: boolean, checkTrumpCombination: boolean, checkOnlyTrumpDebertz: boolean, dealerInitialCardsCount: number, dealerFinalCardsCount: number, dealerCounterClockwise: boolean, contractTypes: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes: Array<games.jass.logic.data.models.player.bids.BidType>, combinationsWithFirstCard: Array<games.jass.logic.data.models.table.combinations.CombinationType>);
793
+ constructor(needToPutHigherTrump: boolean, playerWhoChooseSuitGoFirst: boolean, winnerShuffleCards: boolean, playWithoutLiabilities: boolean, trumpCardGoToPlayerWhoShuffleCards: boolean, dealerInitialCardsCount: number, dealerFinalCardsCount: number, dealerCounterClockwise: boolean, contractTypes: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes: Array<games.jass.logic.data.models.player.bids.BidType>, combinationsWithFirstCard: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella: boolean, oneTryToProtectBella: boolean, enableFourSevensCombination: boolean, enableTrumpSevenCombination: boolean, enableTrumpSevenCombinationAfterDistribution: boolean, checkTrumpCombination: boolean, checkOnlyTrumpDebertz: boolean, distributePoints: boolean, enableFineAfterThirdFailedContract: boolean, fineAfterThirdFailedContract: number, enableFineIfNoBribes: boolean, fineIfNoBribes: number);
610
794
  get needToPutHigherTrump(): boolean;
611
- get distributePoints(): boolean;
612
- get protectBella(): boolean;
613
- get oneTryToProtectBella(): boolean;
614
- get enableFourSevensCombination(): boolean;
615
- get enableTrumpSevenCombination(): boolean;
616
- get enableTrumpSevenCombinationAfterDistribution(): boolean;
617
795
  get playerWhoChooseSuitGoFirst(): boolean;
618
796
  get winnerShuffleCards(): boolean;
619
797
  get playWithoutLiabilities(): boolean;
620
798
  get trumpCardGoToPlayerWhoShuffleCards(): boolean;
621
- get enableFineIfNoBribes(): boolean;
622
- get fineIfNoBribes(): number;
623
- get enableFineAfterThirdByte(): boolean;
624
- get checkTrumpCombination(): boolean;
625
- get checkOnlyTrumpDebertz(): boolean;
626
799
  get dealerInitialCardsCount(): number;
627
800
  get dealerFinalCardsCount(): number;
628
801
  get dealerCounterClockwise(): boolean;
629
802
  get contractTypes(): Array<games.jass.logic.data.models.player.state.RoundContractType>;
630
803
  get bidTypes(): Array<games.jass.logic.data.models.player.bids.BidType>;
631
804
  get combinationsWithFirstCard(): Array<games.jass.logic.data.models.table.combinations.CombinationType>;
805
+ get protectBella(): boolean;
806
+ get oneTryToProtectBella(): boolean;
807
+ get enableFourSevensCombination(): boolean;
808
+ get enableTrumpSevenCombination(): boolean;
809
+ get enableTrumpSevenCombinationAfterDistribution(): boolean;
810
+ get checkTrumpCombination(): boolean;
811
+ get checkOnlyTrumpDebertz(): boolean;
812
+ get distributePoints(): boolean;
813
+ get enableFineAfterThirdByte(): boolean;
814
+ get fineAfterThirdFailedContract(): number;
815
+ get enableFineIfNoBribes(): boolean;
816
+ get fineIfNoBribes(): number;
632
817
  toString(): string;
633
818
  equals(other: Nullable<any>): boolean;
634
819
  hashCode(): number;
635
- copy(needToPutHigherTrump?: boolean, distributePoints?: boolean, protectBella?: boolean, oneTryToProtectBella?: boolean, enableFourSevensCombination?: boolean, enableTrumpSevenCombination?: boolean, enableTrumpSevenCombinationAfterDistribution?: boolean, playerWhoChooseSuitGoFirst?: boolean, winnerShuffleCards?: boolean, playWithoutLiabilities?: boolean, trumpCardGoToPlayerWhoShuffleCards?: boolean, enableFineIfNoBribes?: boolean, fineIfNoBribes?: number, enableFineAfterThirdByte?: boolean, checkTrumpCombination?: boolean, checkOnlyTrumpDebertz?: boolean, dealerInitialCardsCount?: number, dealerFinalCardsCount?: number, dealerCounterClockwise?: boolean, contractTypes?: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes?: Array<games.jass.logic.data.models.player.bids.BidType>, combinationsWithFirstCard?: Array<games.jass.logic.data.models.table.combinations.CombinationType>): games.jass.logic.data.models.rules.Rules;
820
+ copy(needToPutHigherTrump?: boolean, playerWhoChooseSuitGoFirst?: boolean, winnerShuffleCards?: boolean, playWithoutLiabilities?: boolean, trumpCardGoToPlayerWhoShuffleCards?: boolean, dealerInitialCardsCount?: number, dealerFinalCardsCount?: number, dealerCounterClockwise?: boolean, contractTypes?: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes?: Array<games.jass.logic.data.models.player.bids.BidType>, combinationsWithFirstCard?: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella?: boolean, oneTryToProtectBella?: boolean, enableFourSevensCombination?: boolean, enableTrumpSevenCombination?: boolean, enableTrumpSevenCombinationAfterDistribution?: boolean, checkTrumpCombination?: boolean, checkOnlyTrumpDebertz?: boolean, distributePoints?: boolean, enableFineAfterThirdFailedContract?: boolean, fineAfterThirdFailedContract?: number, enableFineIfNoBribes?: boolean, fineIfNoBribes?: number): games.jass.logic.data.models.rules.Rules;
636
821
  static get Companion(): {
637
822
  get HAND_CARDS_INITIAL(): number;
638
823
  get HAND_CARDS_FINAL(): number;
@@ -731,7 +916,7 @@ export declare namespace games.jass.logic.data.models.table {
731
916
  }
732
917
  }
733
918
  export declare namespace games.jass.logic.data.models.table {
734
- class TableLoggerPayload implements io.raspberryapps.card_game.core.utils.logger.LoggerPayload {
919
+ class TableLoggerPayload implements games.raspberry.logger.LoggerPayload {
735
920
  constructor(id: string, gameId: string, players: Array<games.jass.logic.data.models.table.PlayerLoggerPayload>);
736
921
  get id(): string;
737
922
  get gameId(): string;
@@ -740,9 +925,9 @@ export declare namespace games.jass.logic.data.models.table {
740
925
  hashCode(): number;
741
926
  toString(): string;
742
927
  copy(id?: string, gameId?: string, players?: Array<games.jass.logic.data.models.table.PlayerLoggerPayload>): games.jass.logic.data.models.table.TableLoggerPayload;
743
- readonly __doNotUseOrImplementIt: io.raspberryapps.card_game.core.utils.logger.LoggerPayload["__doNotUseOrImplementIt"];
928
+ readonly __doNotUseOrImplementIt: games.raspberry.logger.LoggerPayload["__doNotUseOrImplementIt"];
744
929
  }
745
- class PlayerLoggerPayload implements io.raspberryapps.card_game.core.utils.logger.LoggerPayload {
930
+ class PlayerLoggerPayload implements games.raspberry.logger.LoggerPayload {
746
931
  constructor(playerId: string, connectionState: Nullable<com.logic.data.models.player.PlayerConnectionState>);
747
932
  get playerId(): string;
748
933
  get connectionState(): Nullable<com.logic.data.models.player.PlayerConnectionState>;
@@ -750,14 +935,14 @@ export declare namespace games.jass.logic.data.models.table {
750
935
  copy(playerId?: string, connectionState?: Nullable<com.logic.data.models.player.PlayerConnectionState>): games.jass.logic.data.models.table.PlayerLoggerPayload;
751
936
  hashCode(): number;
752
937
  equals(other: Nullable<any>): boolean;
753
- readonly __doNotUseOrImplementIt: io.raspberryapps.card_game.core.utils.logger.LoggerPayload["__doNotUseOrImplementIt"];
938
+ readonly __doNotUseOrImplementIt: games.raspberry.logger.LoggerPayload["__doNotUseOrImplementIt"];
754
939
  }
755
940
  }
756
941
  export declare namespace games.jass.logic.data.models.table.combinations {
757
942
  class Combination /* implements games.jass.logic.data.models.table.combinations.CombinationContract */ {
758
- constructor(id: string, type: games.jass.logic.data.models.table.combinations.CombinationType, cards: Nullable<kotlin.collections.KtList<any/* io.raspberryapps.card_game.core.data.models.cards.GameCard */>>);
759
- copy(id?: string, type?: games.jass.logic.data.models.table.combinations.CombinationType, cards?: Nullable<kotlin.collections.KtList<any/* io.raspberryapps.card_game.core.data.models.cards.GameCard */>>): games.jass.logic.data.models.table.combinations.Combination;
943
+ constructor(id: string, type: games.jass.logic.data.models.table.combinations.CombinationType, cards: Nullable<kotlin.collections.KtList<any/* io.raspberryapps.card_game.core.data.models.cards.GameCard */>>, reasons: kotlin.collections.KtSet<games.jass.logic.data.models.messages.combinatios.CombinationReason>);
760
944
  toString(): string;
945
+ copy(id?: string, type?: games.jass.logic.data.models.table.combinations.CombinationType, cards?: Nullable<kotlin.collections.KtList<any/* io.raspberryapps.card_game.core.data.models.cards.GameCard */>>, reasons?: kotlin.collections.KtSet<games.jass.logic.data.models.messages.combinatios.CombinationReason>): games.jass.logic.data.models.table.combinations.Combination;
761
946
  hashCode(): number;
762
947
  equals(other: Nullable<any>): boolean;
763
948
  }
@@ -1040,23 +1225,39 @@ export declare namespace games.jass.logic.data.models.table.config {
1040
1225
  }
1041
1226
  export declare namespace games.jass.logic.data.models.table.history {
1042
1227
  class GameHistory {
1043
- constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, rounds: Array<games.jass.logic.data.models.table.history.RoundHistory>);
1228
+ constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, rounds: Array<games.jass.logic.data.models.table.history.RoundHistory>, gameWinners: Nullable<Array<string>>, metadata: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>);
1044
1229
  get gameId(): string;
1045
1230
  get createdAt(): any/* kotlinx.datetime.Instant */;
1046
1231
  get rounds(): Array<games.jass.logic.data.models.table.history.RoundHistory>;
1232
+ get gameWinners(): Nullable<Array<string>>;
1233
+ get metadata(): Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>;
1047
1234
  get date(): string;
1048
1235
  get lastRoundHistory(): games.jass.logic.data.models.table.history.RoundHistory;
1049
1236
  get isFirstRound(): boolean;
1050
1237
  get roundsCount(): number;
1238
+ toString(): string;
1051
1239
  equals(other: Nullable<any>): boolean;
1052
1240
  hashCode(): number;
1053
- toString(): string;
1054
- copy(gameId?: string, createdAt?: any/* kotlinx.datetime.Instant */, rounds?: Array<games.jass.logic.data.models.table.history.RoundHistory>): games.jass.logic.data.models.table.history.GameHistory;
1241
+ copy(gameId?: string, createdAt?: any/* kotlinx.datetime.Instant */, rounds?: Array<games.jass.logic.data.models.table.history.RoundHistory>, gameWinners?: Nullable<Array<string>>, metadata?: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>): games.jass.logic.data.models.table.history.GameHistory;
1055
1242
  static get Companion(): {
1056
1243
  initial(gameId: string, createdAt?: any/* kotlinx.datetime.Instant */): games.jass.logic.data.models.table.history.GameHistory;
1057
1244
  };
1058
1245
  }
1059
1246
  }
1247
+ export declare namespace games.jass.logic.data.models.table.history {
1248
+ class GameHistoryMetadata {
1249
+ constructor(randomData: Nullable<games.jass.logic.data.models.dealer.RandomData>, playersAnalytics: kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.PlayerHistoryAnalytics>);
1250
+ get randomData(): Nullable<games.jass.logic.data.models.dealer.RandomData>;
1251
+ get playersAnalytics(): kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.PlayerHistoryAnalytics>;
1252
+ copy(randomData?: Nullable<games.jass.logic.data.models.dealer.RandomData>, playersAnalytics?: kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.PlayerHistoryAnalytics>): games.jass.logic.data.models.table.history.GameHistoryMetadata;
1253
+ toString(): string;
1254
+ hashCode(): number;
1255
+ equals(other: Nullable<any>): boolean;
1256
+ static get Companion(): {
1257
+ initial(): games.jass.logic.data.models.table.history.GameHistoryMetadata;
1258
+ };
1259
+ }
1260
+ }
1060
1261
  export declare namespace games.jass.logic.data.models.table.history {
1061
1262
  class RoundHistory {
1062
1263
  constructor(roundNumber: number, items: Array<games.jass.logic.data.models.table.history.RoundHistoryItem>, roundCommitted: Nullable<Array<string>>, roundContractState: Nullable<games.jass.logic.data.models.player.state.RoundContractState>, roundWinners: Nullable<Array<string>>);
@@ -1066,7 +1267,6 @@ export declare namespace games.jass.logic.data.models.table.history {
1066
1267
  get roundContractState(): Nullable<games.jass.logic.data.models.player.state.RoundContractState>;
1067
1268
  get roundWinners(): Nullable<Array<string>>;
1068
1269
  get roundContractStateName(): Nullable<string>;
1069
- get isRoundEmpty(): boolean;
1070
1270
  equals(other: Nullable<any>): boolean;
1071
1271
  hashCode(): number;
1072
1272
  toStringShort(): string;
@@ -1083,6 +1283,23 @@ export declare namespace games.jass.logic.data.models.table.history {
1083
1283
  abstract get createdAt(): any/* kotlinx.datetime.Instant */;
1084
1284
  }
1085
1285
  }
1286
+ export declare namespace games.jass.logic.data.models.table.round {
1287
+ class Round {
1288
+ constructor(roundNumber: number, numberOfBribe: Nullable<number>, trump: Nullable<any>/* Nullable<io.raspberryapps.card_game.core.data.models.cards.Suit> */);
1289
+ get roundNumber(): number;
1290
+ get numberOfBribe(): Nullable<number>;
1291
+ get trump(): Nullable<any>/* Nullable<io.raspberryapps.card_game.core.data.models.cards.Suit> */;
1292
+ get selectedTrump(): any/* io.raspberryapps.card_game.core.data.models.cards.Suit */;
1293
+ get numberOfBribeOrZero(): number;
1294
+ copy(roundNumber?: number, numberOfBribe?: Nullable<number>, trump?: Nullable<any>/* Nullable<io.raspberryapps.card_game.core.data.models.cards.Suit> */): games.jass.logic.data.models.table.round.Round;
1295
+ toString(): string;
1296
+ hashCode(): number;
1297
+ equals(other: Nullable<any>): boolean;
1298
+ static get Companion(): {
1299
+ initial(): games.jass.logic.data.models.table.round.Round;
1300
+ };
1301
+ }
1302
+ }
1086
1303
  export declare namespace games.jass.logic.domain.interactors.dealer {
1087
1304
  abstract class DealerStrategy {
1088
1305
  private constructor();
@@ -1106,8 +1323,12 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
1106
1323
  get name(): "RANDOM";
1107
1324
  get ordinal(): 4;
1108
1325
  };
1109
- get name(): "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE" | "RANDOM";
1110
- get ordinal(): 0 | 1 | 2 | 3 | 4;
1326
+ static get RANDOM_ORG(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
1327
+ get name(): "RANDOM_ORG";
1328
+ get ordinal(): 5;
1329
+ };
1330
+ get name(): "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE" | "RANDOM" | "RANDOM_ORG";
1331
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
1111
1332
  shouldEqualiseHand(): boolean;
1112
1333
  static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
1113
1334
  static valueOf(value: string): games.jass.logic.domain.interactors.dealer.DealerStrategy;
@@ -1197,28 +1418,29 @@ export declare namespace games.jass.logic.redux.actions.game {
1197
1418
  get isFirstRound(): boolean;
1198
1419
  get gameNumber(): number;
1199
1420
  get gameHistory(): games.jass.logic.data.models.table.history.GameHistory;
1421
+ toString(): string;
1200
1422
  equals(other: Nullable<any>): boolean;
1201
1423
  hashCode(): number;
1202
- toString(): string;
1203
1424
  copy(id?: string, gameId?: string, roundNumber?: number, players?: Array<string>, isFirstRound?: boolean, gameNumber?: number, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.redux.actions.game.RoundStartedAction;
1204
1425
  get actionTag(): string;
1205
1426
  }
1206
1427
  class RoundEndedAction extends games.jass.logic.redux.actions.game.GameAction {
1207
- constructor(id: string, gameId: string, roundNumber: number, earnedBiggestPointPlayerId: string, gameLosers: Nullable<Array<string>> | undefined, gameWinners: Nullable<Array<string>> | undefined, playersGameAnalytics: Nullable<Array<games.jass.logic.data.models.player.hand.PlayerAnalytics>> | undefined, playersRoundAnalytics: Nullable<Array<games.jass.logic.data.models.player.hand.PlayerAnalytics>> | undefined, gameHistory: games.jass.logic.data.models.table.history.GameHistory);
1428
+ constructor(id: string, gameId: string, roundNumber: number, earnedBiggestPointPlayerId: string, gameLosers: Nullable<Array<string>> | undefined, gameWinners: Nullable<Array<string>> | undefined, playersGameAnalytics: Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>, playersRoundAnalytics: Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>, achievements: Nullable<kotlin.collections.KtMap<string, games.jass.logic.data.models.player.achievements.PlayerAchievements>>, gameHistory: games.jass.logic.data.models.table.history.GameHistory);
1208
1429
  get id(): string;
1209
1430
  get gameId(): string;
1210
1431
  get roundNumber(): number;
1211
1432
  get earnedBiggestPointPlayerId(): string;
1212
1433
  get gameLosers(): Nullable<Array<string>>;
1213
1434
  get gameWinners(): Nullable<Array<string>>;
1214
- get playersGameAnalytics(): Nullable<Array<games.jass.logic.data.models.player.hand.PlayerAnalytics>>;
1215
- get playersRoundAnalytics(): Nullable<Array<games.jass.logic.data.models.player.hand.PlayerAnalytics>>;
1435
+ get playersGameAnalytics(): Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>;
1436
+ get playersRoundAnalytics(): Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>;
1437
+ get achievements(): Nullable<kotlin.collections.KtMap<string, games.jass.logic.data.models.player.achievements.PlayerAchievements>>;
1216
1438
  get gameHistory(): games.jass.logic.data.models.table.history.GameHistory;
1217
1439
  get isGameFinished(): boolean;
1218
1440
  toString(): string;
1219
1441
  equals(other: Nullable<any>): boolean;
1220
1442
  hashCode(): number;
1221
- copy(id?: string, gameId?: string, roundNumber?: number, earnedBiggestPointPlayerId?: string, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, playersGameAnalytics?: Nullable<Array<games.jass.logic.data.models.player.hand.PlayerAnalytics>>, playersRoundAnalytics?: Nullable<Array<games.jass.logic.data.models.player.hand.PlayerAnalytics>>, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.redux.actions.game.RoundEndedAction;
1443
+ copy(id?: string, gameId?: string, roundNumber?: number, earnedBiggestPointPlayerId?: string, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, playersGameAnalytics?: Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>, playersRoundAnalytics?: Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>, achievements?: Nullable<kotlin.collections.KtMap<string, games.jass.logic.data.models.player.achievements.PlayerAchievements>>, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.redux.actions.game.RoundEndedAction;
1222
1444
  get actionTag(): string;
1223
1445
  }
1224
1446
  class PartyRestartedAction implements com.logic.redux.store.definitions.Action {
@@ -1274,26 +1496,28 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
1274
1496
  get actionTag(): string;
1275
1497
  }
1276
1498
  /* @ts-ignore: https://github.com/microsoft/TypeScript/issues/4628 */
1277
- class FinishingGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements games.jass.logic.redux.actions.mechanic.TerminatedAction {
1278
- constructor(reason: com.logic.data.models.TerminationGameReason, sessionAnalytics: Nullable<games.jass.logic.data.models.GameSessionAnalytics> | undefined, isGameFinished: boolean, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>);
1499
+ class FinishingGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements games.jass.logic.redux.actions.mechanic.TerminatedAction, com.logic.redux.actions.validation.NotValidateIfGameFinishing {
1500
+ constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>);
1279
1501
  get reason(): com.logic.data.models.TerminationGameReason;
1280
- get sessionAnalytics(): Nullable<games.jass.logic.data.models.GameSessionAnalytics>;
1281
1502
  get isGameFinished(): boolean;
1503
+ get sessionAnalytics(): Nullable<games.jass.logic.data.models.GameSessionAnalytics>;
1282
1504
  get gameHistory(): Nullable<games.jass.logic.data.models.table.history.GameHistory>;
1283
1505
  toString(): string;
1284
- copy(reason?: com.logic.data.models.TerminationGameReason, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>, isGameFinished?: boolean, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
1506
+ copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
1285
1507
  hashCode(): number;
1286
1508
  equals(other: Nullable<any>): boolean;
1287
1509
  get actionTag(): string;
1288
- readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & games.jass.logic.redux.actions.mechanic.TerminatedAction["__doNotUseOrImplementIt"];
1510
+ notValidateWhenFinishing(): boolean;
1511
+ readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & games.jass.logic.redux.actions.mechanic.TerminatedAction["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinishing["__doNotUseOrImplementIt"];
1289
1512
  static get Companion(): {
1290
1513
  withAnalytics(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, table: Nullable<games.jass.logic.data.models.table.JassTable>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
1291
1514
  };
1292
1515
  }
1293
1516
  class FinishGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements com.logic.redux.actions.validation.NotValidateIfGameFinishing, games.jass.logic.redux.actions.mechanic.TerminatedAction {
1294
- constructor(reason: com.logic.data.models.TerminationGameReason);
1517
+ constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean);
1295
1518
  get reason(): com.logic.data.models.TerminationGameReason;
1296
- copy(reason?: com.logic.data.models.TerminationGameReason): games.jass.logic.redux.actions.mechanic.FinishGameMechanicAction;
1519
+ get isGameFinished(): boolean;
1520
+ copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean): games.jass.logic.redux.actions.mechanic.FinishGameMechanicAction;
1297
1521
  toString(): string;
1298
1522
  hashCode(): number;
1299
1523
  equals(other: Nullable<any>): boolean;
@@ -1326,6 +1550,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
1326
1550
  }
1327
1551
  interface TerminatedAction extends com.logic.redux.store.definitions.Action {
1328
1552
  readonly reason: com.logic.data.models.TerminationGameReason;
1553
+ readonly isGameFinished: boolean;
1329
1554
  readonly __doNotUseOrImplementIt: {
1330
1555
  readonly "games.jass.logic.redux.actions.mechanic.TerminatedAction": unique symbol;
1331
1556
  } & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
@@ -1360,10 +1585,28 @@ export declare interface ParserHelper {
1360
1585
  decodeToClientEventToMechanicActions(playerId: string, engine: games.jass.logic.GameStoreContract, json: string): Array<games.jass.logic.redux.actions.mechanic.MechanicAction>;
1361
1586
  encodeGameRound(round: games.jass.logic.data.models.table.history.RoundHistory): string;
1362
1587
  encodeGameRoundItems(round: games.jass.logic.data.models.table.history.RoundHistory): string;
1588
+ encodeGameMetadata(metadata: games.jass.logic.data.models.table.history.GameHistoryMetadata): string;
1589
+ encodeRoomConfig(config: models.RoomConfig): string;
1363
1590
  readonly __doNotUseOrImplementIt: {
1364
1591
  readonly ParserHelper: unique symbol;
1365
1592
  };
1366
1593
  }
1594
+ export declare namespace models {
1595
+ class RoomConfig {
1596
+ constructor(players: number, points: number, timeoutTime: number, rulesPreset: string, isPrivate?: Nullable<boolean>, isChatEnabled?: Nullable<boolean>, rules?: Nullable<any>/* Nullable<com.logic.data.models.serializable.rules.RulesDto> */);
1597
+ get players(): number;
1598
+ get points(): number;
1599
+ get timeoutTime(): number;
1600
+ get rulesPreset(): string;
1601
+ get isPrivate(): Nullable<boolean>;
1602
+ get isChatEnabled(): Nullable<boolean>;
1603
+ get rules(): Nullable<any>/* Nullable<com.logic.data.models.serializable.rules.RulesDto> */;
1604
+ copy(players?: number, points?: number, timeoutTime?: number, rulesPreset?: string, isPrivate?: Nullable<boolean>, isChatEnabled?: Nullable<boolean>, rules?: Nullable<any>/* Nullable<com.logic.data.models.serializable.rules.RulesDto> */): models.RoomConfig;
1605
+ toString(): string;
1606
+ hashCode(): number;
1607
+ equals(other: Nullable<any>): boolean;
1608
+ }
1609
+ }
1367
1610
  export declare namespace games.jass.logic.client.data.models.config {
1368
1611
  abstract class GameType {
1369
1612
  private constructor();
@@ -1375,19 +1618,19 @@ export declare namespace games.jass.logic.client.data.models.config {
1375
1618
  get name(): "SERVER";
1376
1619
  get ordinal(): 1;
1377
1620
  };
1378
- static get P2P_CLIENT(): games.jass.logic.client.data.models.config.GameType & {
1379
- get name(): "P2P_CLIENT";
1621
+ static get P2P_PARTICIPANT(): games.jass.logic.client.data.models.config.GameType & {
1622
+ get name(): "P2P_PARTICIPANT";
1380
1623
  get ordinal(): 2;
1381
1624
  };
1382
- static get P2P_SERVER(): games.jass.logic.client.data.models.config.GameType & {
1383
- get name(): "P2P_SERVER";
1625
+ static get P2P_HOST(): games.jass.logic.client.data.models.config.GameType & {
1626
+ get name(): "P2P_HOST";
1384
1627
  get ordinal(): 3;
1385
1628
  };
1386
1629
  static get TUTORIAL(): games.jass.logic.client.data.models.config.GameType & {
1387
1630
  get name(): "TUTORIAL";
1388
1631
  get ordinal(): 4;
1389
1632
  };
1390
- get name(): "SINGLE" | "SERVER" | "P2P_CLIENT" | "P2P_SERVER" | "TUTORIAL";
1633
+ get name(): "SINGLE" | "SERVER" | "P2P_PARTICIPANT" | "P2P_HOST" | "TUTORIAL";
1391
1634
  get ordinal(): 0 | 1 | 2 | 3 | 4;
1392
1635
  static values(): Array<games.jass.logic.client.data.models.config.GameType>;
1393
1636
  static valueOf(value: string): games.jass.logic.client.data.models.config.GameType;
@@ -1415,17 +1658,18 @@ export declare namespace games.jass.logic.client.data.models.config {
1415
1658
  }
1416
1659
  export declare namespace games.jass.logic.client.data.models.vm {
1417
1660
  class GameHistoryViewModel /* extends games.jass.logic.client.data.models.vm.HistoryViewModel */ {
1418
- constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, gameType: games.jass.logic.client.data.models.config.GameType, users: Array<com.logic.data.models.player.GameUserInfo>, config: games.jass.logic.data.models.table.config.ConfigLite, gameWinners: Nullable<Array<string>>);
1661
+ constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, gameType: games.jass.logic.client.data.models.config.GameType, users: Array<com.logic.data.models.player.GameUserInfo>, config: games.jass.logic.data.models.table.config.ConfigLite, gameWinners: Nullable<Array<string>>, metadata: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>);
1419
1662
  get gameId(): string;
1420
1663
  get createdAt(): any/* kotlinx.datetime.Instant */;
1421
1664
  get gameType(): games.jass.logic.client.data.models.config.GameType;
1422
1665
  get users(): Array<com.logic.data.models.player.GameUserInfo>;
1423
1666
  get config(): games.jass.logic.data.models.table.config.ConfigLite;
1424
1667
  get gameWinners(): Nullable<Array<string>>;
1425
- toString(): string;
1668
+ get metadata(): Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>;
1426
1669
  equals(other: Nullable<any>): boolean;
1427
1670
  hashCode(): number;
1428
- copy(gameId?: string, createdAt?: any/* kotlinx.datetime.Instant */, gameType?: games.jass.logic.client.data.models.config.GameType, users?: Array<com.logic.data.models.player.GameUserInfo>, config?: games.jass.logic.data.models.table.config.ConfigLite, gameWinners?: Nullable<Array<string>>): games.jass.logic.client.data.models.vm.GameHistoryViewModel;
1671
+ toString(): string;
1672
+ copy(gameId?: string, createdAt?: any/* kotlinx.datetime.Instant */, gameType?: games.jass.logic.client.data.models.config.GameType, users?: Array<com.logic.data.models.player.GameUserInfo>, config?: games.jass.logic.data.models.table.config.ConfigLite, gameWinners?: Nullable<Array<string>>, metadata?: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>): games.jass.logic.client.data.models.vm.GameHistoryViewModel;
1429
1673
  }
1430
1674
  class RoundEndedHistoryViewModel /* extends games.jass.logic.client.data.models.vm.HistoryViewModel */ {
1431
1675
  constructor(gameId: string, roundNumber: number, items: Array<games.jass.logic.data.models.table.history.RoundHistoryItem>, roundContractState: Nullable<games.jass.logic.data.models.player.state.RoundContractState>, roundCommitted: Nullable<Array<string>>, roundWinners: Nullable<Array<string>>, gameEndedHistory: Nullable<games.jass.logic.client.data.models.vm.GameHistoryViewModel>);
@@ -1490,12 +1734,12 @@ export declare namespace games.jass.logic.client.domain.mechanic.online {
1490
1734
  }
1491
1735
  }
1492
1736
  export declare namespace games.jass.logic.client.utils {
1493
- interface ShowErrorLoggerOutput extends io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput {
1737
+ interface ShowErrorLoggerOutput extends games.raspberry.logger.output.LoggerOutput {
1494
1738
  skipWarnings: boolean;
1495
1739
  gameClientProvider: Nullable<() => any/* games.jass.logic.client.GameClient */>;
1496
1740
  readonly __doNotUseOrImplementIt: {
1497
1741
  readonly "games.jass.logic.client.utils.ShowErrorLoggerOutput": unique symbol;
1498
- } & io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput["__doNotUseOrImplementIt"];
1742
+ } & games.raspberry.logger.output.LoggerOutput["__doNotUseOrImplementIt"];
1499
1743
  }
1500
1744
  }
1501
1745
  export declare interface GameClientEngineController {