game_client_logic_deb 1.8.76 → 1.8.96

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.
@@ -9,7 +9,7 @@ export declare namespace io.raspberryapps.card_game.core.utils.logger {
9
9
  enabled: boolean;
10
10
  d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
11
11
  e(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
12
- w(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
12
+ w(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
13
13
  readonly __doNotUseOrImplementIt: {
14
14
  readonly "io.raspberryapps.card_game.core.utils.logger.LoggerEnabledTrigger": unique symbol;
15
15
  } & io.raspberryapps.card_game.core.utils.logger.RaspberryLogger["__doNotUseOrImplementIt"];
@@ -26,7 +26,7 @@ export declare namespace io.raspberryapps.card_game.core.utils.logger {
26
26
  interface RaspberryLogger extends io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput {
27
27
  d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
28
28
  e(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
29
- w(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
29
+ w(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
30
30
  readonly __doNotUseOrImplementIt: {
31
31
  readonly "io.raspberryapps.card_game.core.utils.logger.RaspberryLogger": unique symbol;
32
32
  } & io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput["__doNotUseOrImplementIt"];
@@ -36,7 +36,7 @@ export declare namespace io.raspberryapps.card_game.core.utils.logger.output {
36
36
  interface LoggerOutput {
37
37
  d(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
38
38
  e(tag?: Nullable<string>, message?: Nullable<string>, exception?: Nullable<Error>, payload?: Nullable<any>): void;
39
- w(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
39
+ w(tag?: Nullable<string>, message?: Nullable<string>, exception?: Nullable<Error>, payload?: Nullable<any>): void;
40
40
  readonly __doNotUseOrImplementIt: {
41
41
  readonly "io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput": unique symbol;
42
42
  };
@@ -225,20 +225,6 @@ export declare namespace com.logic.data.models.player {
225
225
  } & any/* kotlinx.serialization.internal.SerializerFactory */;
226
226
  }
227
227
  }
228
- export declare namespace com.logic.data.models.player {
229
- class PlayerLuckyFactor implements com.logic.data.models.player.PlayerIdContract {
230
- constructor(playerId: string, factor: number, wasLiveDuringGame: boolean, liveDurationPercentage: Nullable<number>);
231
- get playerId(): string;
232
- get factor(): number;
233
- get wasLiveDuringGame(): boolean;
234
- get liveDurationPercentage(): Nullable<number>;
235
- copy(playerId?: string, factor?: number, wasLiveDuringGame?: boolean, liveDurationPercentage?: Nullable<number>): com.logic.data.models.player.PlayerLuckyFactor;
236
- toString(): string;
237
- hashCode(): number;
238
- equals(other: Nullable<any>): boolean;
239
- readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
240
- }
241
- }
242
228
  export declare namespace com.logic.data.models.rules {
243
229
  class Rules {
244
230
  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, tenCardsInHand: boolean);
@@ -421,7 +407,7 @@ export declare namespace com.logic.utils.logger.outputs {
421
407
  observe(types?: Array<com.logic.utils.logger.outputs.LogType>): any/* kotlinx.coroutines.flow.Flow<com.logic.utils.logger.outputs.LoggerOutputDataDto> */;
422
408
  d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
423
409
  e(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
424
- w(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
410
+ w(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
425
411
  enabled: boolean;
426
412
  readonly __doNotUseOrImplementIt: {
427
413
  readonly "com.logic.utils.logger.outputs.ObservableLoggerOutput": unique symbol;
@@ -463,6 +449,10 @@ export declare namespace com.debertz.logic.data.models {
463
449
  hashCode(): number;
464
450
  copy(dealerStrategy?: com.debertz.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number>>): com.debertz.logic.data.models.DealerConfig;
465
451
  toString(): string;
452
+ static get Companion(): {
453
+ getFromServerConfig(dealerStrategy?: string, cards?: Nullable<Array<number>>): com.debertz.logic.data.models.DealerConfig;
454
+ fake(cards?: Array<number>): com.debertz.logic.data.models.DealerConfig;
455
+ };
466
456
  }
467
457
  }
468
458
  export declare namespace com.debertz.logic.data.models {
@@ -520,6 +510,49 @@ export declare namespace com.debertz.logic.data.models {
520
510
  } & any/* kotlinx.serialization.internal.SerializerFactory */;
521
511
  }
522
512
  }
513
+ export declare namespace com.debertz.logic.data.models {
514
+ class GameSessionAnalytics {
515
+ constructor(duration: any/* kotlin.time.Duration */, gamesCount: number, roundsCountTotal: number, playerAnalytics: any/* kotlin.collections.List<com.debertz.logic.data.models.player.hand.PlayerAnalytics> */);
516
+ get duration(): any/* kotlin.time.Duration */;
517
+ get gamesCount(): number;
518
+ get roundsCountTotal(): number;
519
+ get playerAnalytics(): any/* kotlin.collections.List<com.debertz.logic.data.models.player.hand.PlayerAnalytics> */;
520
+ get allCombinationCounts(): any/* kotlin.collections.Map<com.debertz.logic.data.models.table.combinations.CombinationType, number> */;
521
+ copy(duration?: any/* kotlin.time.Duration */, gamesCount?: number, roundsCountTotal?: number, playerAnalytics?: any/* kotlin.collections.List<com.debertz.logic.data.models.player.hand.PlayerAnalytics> */): com.debertz.logic.data.models.GameSessionAnalytics;
522
+ toString(): string;
523
+ hashCode(): number;
524
+ equals(other: Nullable<any>): boolean;
525
+ }
526
+ }
527
+ export declare namespace com.debertz.logic.data.models.player.hand {
528
+ class CombinationRecord {
529
+ constructor(id: string, type: com.debertz.logic.data.models.table.combinations.CombinationType, state: com.debertz.logic.data.models.table.combinations.CombinationState, value: number);
530
+ get id(): string;
531
+ get type(): com.debertz.logic.data.models.table.combinations.CombinationType;
532
+ get state(): com.debertz.logic.data.models.table.combinations.CombinationState;
533
+ get value(): number;
534
+ copy(id?: string, type?: com.debertz.logic.data.models.table.combinations.CombinationType, state?: com.debertz.logic.data.models.table.combinations.CombinationState, value?: number): com.debertz.logic.data.models.player.hand.CombinationRecord;
535
+ toString(): string;
536
+ hashCode(): number;
537
+ equals(other: Nullable<any>): boolean;
538
+ }
539
+ }
540
+ export declare namespace com.debertz.logic.data.models.player.hand {
541
+ class PlayerAnalytics implements com.logic.data.models.player.PlayerIdContract {
542
+ constructor(playerId: string, factor: number, wasLiveDuringGame: boolean, liveDurationPercentage: Nullable<number>, combinationRecords: any/* kotlin.collections.List<com.debertz.logic.data.models.player.hand.CombinationRecord> */);
543
+ get playerId(): string;
544
+ get factor(): number;
545
+ get wasLiveDuringGame(): boolean;
546
+ get liveDurationPercentage(): Nullable<number>;
547
+ get combinationRecords(): any/* kotlin.collections.List<com.debertz.logic.data.models.player.hand.CombinationRecord> */;
548
+ get combinationCounts(): any/* kotlin.collections.Map<com.debertz.logic.data.models.table.combinations.CombinationType, number> */;
549
+ copy(playerId?: string, factor?: number, wasLiveDuringGame?: boolean, liveDurationPercentage?: Nullable<number>, combinationRecords?: any/* kotlin.collections.List<com.debertz.logic.data.models.player.hand.CombinationRecord> */): com.debertz.logic.data.models.player.hand.PlayerAnalytics;
550
+ toString(): string;
551
+ hashCode(): number;
552
+ equals(other: Nullable<any>): boolean;
553
+ readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
554
+ }
555
+ }
523
556
  export declare namespace com.debertz.logic.data.models.player.state {
524
557
  abstract class RoundContractState {
525
558
  private constructor();
@@ -626,6 +659,41 @@ export declare namespace com.debertz.logic.data.models.table.combinations {
626
659
  equals(other: Nullable<any>): boolean;
627
660
  }
628
661
  }
662
+ export declare namespace com.debertz.logic.data.models.table.combinations {
663
+ abstract class CombinationState {
664
+ private constructor();
665
+ static get NOT_VERIFIED(): com.debertz.logic.data.models.table.combinations.CombinationState & {
666
+ get name(): "NOT_VERIFIED";
667
+ get ordinal(): 0;
668
+ };
669
+ static get VERIFYING(): com.debertz.logic.data.models.table.combinations.CombinationState & {
670
+ get name(): "VERIFYING";
671
+ get ordinal(): 1;
672
+ };
673
+ static get ACCEPTED(): com.debertz.logic.data.models.table.combinations.CombinationState & {
674
+ get name(): "ACCEPTED";
675
+ get ordinal(): 2;
676
+ };
677
+ static get NOT_ACCEPTED(): com.debertz.logic.data.models.table.combinations.CombinationState & {
678
+ get name(): "NOT_ACCEPTED";
679
+ get ordinal(): 3;
680
+ };
681
+ static get REJECTED(): com.debertz.logic.data.models.table.combinations.CombinationState & {
682
+ get name(): "REJECTED";
683
+ get ordinal(): 4;
684
+ };
685
+ static get CANCELED(): com.debertz.logic.data.models.table.combinations.CombinationState & {
686
+ get name(): "CANCELED";
687
+ get ordinal(): 5;
688
+ };
689
+ static values(): Array<com.debertz.logic.data.models.table.combinations.CombinationState>;
690
+ static valueOf(value: string): com.debertz.logic.data.models.table.combinations.CombinationState;
691
+ get name(): "NOT_VERIFIED" | "VERIFYING" | "ACCEPTED" | "NOT_ACCEPTED" | "REJECTED" | "CANCELED";
692
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
693
+ static get Companion(): {
694
+ } & any/* kotlinx.serialization.internal.SerializerFactory */;
695
+ }
696
+ }
629
697
  export declare namespace com.debertz.logic.data.models.table.combinations {
630
698
  abstract class CombinationType {
631
699
  private constructor();
@@ -841,6 +909,7 @@ export declare namespace com.debertz.logic.data.models.table.history {
841
909
  get date(): string;
842
910
  get lastRoundHistory(): com.debertz.logic.data.models.table.history.RoundHistory;
843
911
  get isFirstRound(): boolean;
912
+ get roundsCount(): number;
844
913
  equals(other: Nullable<any>): boolean;
845
914
  hashCode(): number;
846
915
  toString(): string;
@@ -989,7 +1058,7 @@ export declare namespace com.debertz.logic.redux.actions.game {
989
1058
  get actionTag(): string;
990
1059
  }
991
1060
  class RoundEndedAction extends com.debertz.logic.redux.actions.game.GameAction {
992
- constructor(id: string, gameId: string, roundNumber: number, earnedBiggestPointPlayerId: string, roundCommitted: Array<string>, roundContractState: com.debertz.logic.data.models.player.state.RoundContractState, roundWinners: Array<string>, gameLosers: Nullable<Array<string>> | undefined, gameWinners: Nullable<Array<string>> | undefined, luckyFactors: Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>> | undefined, gameHistory: com.debertz.logic.data.models.table.history.GameHistory);
1061
+ constructor(id: string, gameId: string, roundNumber: number, earnedBiggestPointPlayerId: string, roundCommitted: Array<string>, roundContractState: com.debertz.logic.data.models.player.state.RoundContractState, roundWinners: Array<string>, gameLosers: Nullable<Array<string>> | undefined, gameWinners: Nullable<Array<string>> | undefined, playersGameAnalytics: Nullable<Array<com.debertz.logic.data.models.player.hand.PlayerAnalytics>> | undefined, playersRoundAnalytics: Nullable<Array<com.debertz.logic.data.models.player.hand.PlayerAnalytics>> | undefined, gameHistory: com.debertz.logic.data.models.table.history.GameHistory);
993
1062
  get id(): string;
994
1063
  get gameId(): string;
995
1064
  get roundNumber(): number;
@@ -999,14 +1068,15 @@ export declare namespace com.debertz.logic.redux.actions.game {
999
1068
  get roundWinners(): Array<string>;
1000
1069
  get gameLosers(): Nullable<Array<string>>;
1001
1070
  get gameWinners(): Nullable<Array<string>>;
1002
- get luckyFactors(): Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>;
1071
+ get playersGameAnalytics(): Nullable<Array<com.debertz.logic.data.models.player.hand.PlayerAnalytics>>;
1072
+ get playersRoundAnalytics(): Nullable<Array<com.debertz.logic.data.models.player.hand.PlayerAnalytics>>;
1003
1073
  get gameHistory(): com.debertz.logic.data.models.table.history.GameHistory;
1004
1074
  get roundContractStateName(): string;
1005
1075
  get isGameFinished(): boolean;
1006
1076
  toString(): string;
1007
1077
  equals(other: Nullable<any>): boolean;
1008
1078
  hashCode(): number;
1009
- copy(id?: string, gameId?: string, roundNumber?: number, earnedBiggestPointPlayerId?: string, roundCommitted?: Array<string>, roundContractState?: com.debertz.logic.data.models.player.state.RoundContractState, roundWinners?: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, luckyFactors?: Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>, gameHistory?: com.debertz.logic.data.models.table.history.GameHistory): com.debertz.logic.redux.actions.game.RoundEndedAction;
1079
+ copy(id?: string, gameId?: string, roundNumber?: number, earnedBiggestPointPlayerId?: string, roundCommitted?: Array<string>, roundContractState?: com.debertz.logic.data.models.player.state.RoundContractState, roundWinners?: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, playersGameAnalytics?: Nullable<Array<com.debertz.logic.data.models.player.hand.PlayerAnalytics>>, playersRoundAnalytics?: Nullable<Array<com.debertz.logic.data.models.player.hand.PlayerAnalytics>>, gameHistory?: com.debertz.logic.data.models.table.history.GameHistory): com.debertz.logic.redux.actions.game.RoundEndedAction;
1010
1080
  get actionTag(): string;
1011
1081
  }
1012
1082
  class PartyRestartedAction implements com.logic.redux.store.definitions.Action {
@@ -1063,15 +1133,19 @@ export declare namespace com.debertz.logic.redux.actions.mechanic {
1063
1133
  get actionTag(): string;
1064
1134
  }
1065
1135
  class FinishingGameMechanicAction extends com.debertz.logic.redux.actions.mechanic.MechanicAction implements com.debertz.logic.redux.actions.mechanic.TerminatedAction {
1066
- constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean);
1136
+ constructor(reason: com.logic.data.models.TerminationGameReason, sessionAnalytics: Nullable<com.debertz.logic.data.models.GameSessionAnalytics> | undefined, isGameFinished: boolean);
1067
1137
  get reason(): com.logic.data.models.TerminationGameReason;
1138
+ get sessionAnalytics(): Nullable<com.debertz.logic.data.models.GameSessionAnalytics>;
1068
1139
  get isGameFinished(): boolean;
1069
- copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean): com.debertz.logic.redux.actions.mechanic.FinishingGameMechanicAction;
1070
1140
  toString(): string;
1141
+ copy(reason?: com.logic.data.models.TerminationGameReason, sessionAnalytics?: Nullable<com.debertz.logic.data.models.GameSessionAnalytics>, isGameFinished?: boolean): com.debertz.logic.redux.actions.mechanic.FinishingGameMechanicAction;
1071
1142
  hashCode(): number;
1072
1143
  equals(other: Nullable<any>): boolean;
1073
1144
  get actionTag(): string;
1074
1145
  readonly __doNotUseOrImplementIt: com.debertz.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & com.debertz.logic.redux.actions.mechanic.TerminatedAction["__doNotUseOrImplementIt"];
1146
+ static get Companion(): {
1147
+ withAnalytics(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, table: Nullable<com.debertz.logic.data.models.table.DebertzTable>): com.debertz.logic.redux.actions.mechanic.FinishingGameMechanicAction;
1148
+ };
1075
1149
  }
1076
1150
  class FinishGameMechanicAction extends com.debertz.logic.redux.actions.mechanic.MechanicAction implements com.logic.redux.actions.validation.NotValidateIfGameFinishing, com.debertz.logic.redux.actions.mechanic.TerminatedAction {
1077
1151
  constructor(reason: com.logic.data.models.TerminationGameReason);
@@ -1101,8 +1175,8 @@ export declare namespace com.debertz.logic.redux.actions.mechanic {
1101
1175
  get actData(): Nullable<com.debertz.logic.data.models.scenes.ActData>;
1102
1176
  notValidateWhenFinished(): boolean;
1103
1177
  notValidateWhenFinishing(): boolean;
1104
- copy(sceneId?: string, actId?: Nullable<string>, sceneData?: Nullable<com.debertz.logic.data.models.scenes.SceneData>, actData?: Nullable<com.debertz.logic.data.models.scenes.ActData>): com.debertz.logic.redux.actions.mechanic.SceneMechanicAction;
1105
1178
  toString(): string;
1179
+ copy(sceneId?: string, actId?: Nullable<string>, sceneData?: Nullable<com.debertz.logic.data.models.scenes.SceneData>, actData?: Nullable<com.debertz.logic.data.models.scenes.ActData>): com.debertz.logic.redux.actions.mechanic.SceneMechanicAction;
1106
1180
  hashCode(): number;
1107
1181
  equals(other: Nullable<any>): boolean;
1108
1182
  get actionTag(): string;
@@ -1125,8 +1199,8 @@ export declare namespace com.debertz.logic.redux.actions.mechanic {
1125
1199
  get isShouldBeDisconnectedFromSockets(): boolean;
1126
1200
  get isDeleted(): boolean;
1127
1201
  get shouldNotifyPlayers(): boolean;
1128
- copy(playerId?: string, state?: com.logic.data.models.player.PlayerConnectionState, causeState?: Nullable<com.logic.data.models.player.PlayerConnectionState>, isNoneActivePlayers?: boolean, reconnectUntilTime?: Nullable<string>): com.debertz.logic.redux.actions.mechanic.PlayerConnectionChangedMechanicAction;
1129
1202
  toString(): string;
1203
+ copy(playerId?: string, state?: com.logic.data.models.player.PlayerConnectionState, causeState?: Nullable<com.logic.data.models.player.PlayerConnectionState>, isNoneActivePlayers?: boolean, reconnectUntilTime?: Nullable<string>): com.debertz.logic.redux.actions.mechanic.PlayerConnectionChangedMechanicAction;
1130
1204
  hashCode(): number;
1131
1205
  equals(other: Nullable<any>): boolean;
1132
1206
  get actionTag(): string;
@@ -1182,13 +1256,14 @@ export declare namespace com.debertz.logic.client.data.models.config {
1182
1256
  }
1183
1257
  export declare namespace com.debertz.logic.client.data.models.config {
1184
1258
  class GameClientConfig {
1185
- constructor(validateSceneActiveState?: boolean, validateCardOnMove?: boolean, validateExpectantActions?: boolean, isAutoStepCurrentPlayer?: boolean, areOpponentsCardsOpened?: boolean);
1259
+ constructor(validateSceneActiveState?: boolean, validateCardOnMove?: boolean, validateExpectantActions?: boolean, isAutoStepCurrentPlayer?: boolean, areOpponentsCardsOpened?: boolean, sessionAnalytics?: boolean);
1186
1260
  get validateSceneActiveState(): boolean;
1187
1261
  get validateCardOnMove(): boolean;
1188
1262
  get validateExpectantActions(): boolean;
1189
1263
  get isAutoStepCurrentPlayer(): boolean;
1190
1264
  get areOpponentsCardsOpened(): boolean;
1191
- copy(validateSceneActiveState?: boolean, validateCardOnMove?: boolean, validateExpectantActions?: boolean, isAutoStepCurrentPlayer?: boolean, areOpponentsCardsOpened?: boolean): com.debertz.logic.client.data.models.config.GameClientConfig;
1265
+ get sessionAnalytics(): boolean;
1266
+ copy(validateSceneActiveState?: boolean, validateCardOnMove?: boolean, validateExpectantActions?: boolean, isAutoStepCurrentPlayer?: boolean, areOpponentsCardsOpened?: boolean, sessionAnalytics?: boolean): com.debertz.logic.client.data.models.config.GameClientConfig;
1192
1267
  toString(): string;
1193
1268
  hashCode(): number;
1194
1269
  equals(other: Nullable<any>): boolean;
@@ -1329,7 +1404,7 @@ export declare namespace com.debertz.logic.client.utils {
1329
1404
  gameClientProvider: Nullable<() => any/* com.debertz.logic.client.GameClient */>;
1330
1405
  d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
1331
1406
  e(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
1332
- w(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
1407
+ w(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
1333
1408
  readonly __doNotUseOrImplementIt: {
1334
1409
  readonly "com.debertz.logic.client.utils.ShowErrorLoggerOutput": unique symbol;
1335
1410
  } & io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput["__doNotUseOrImplementIt"];