trucoshi 9.0.0 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -204,12 +204,13 @@ export declare enum GAME_ERROR {
204
204
  TEAM_NOT_READY = "TEAM_NOT_READY",
205
205
  TEAM_IS_FULL = "TEAM_IS_FULL",
206
206
  ENVIDO_NOT_ACCEPTED = "ENVIDO_NOT_ACCEPTED",
207
- INVALID_COMAND = "INVALID_COMAND",
207
+ INVALID_COMMAND = "INVALID_COMMAND",
208
208
  INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE",
209
209
  GAME_REQUIRES_ACCOUNT = "GAME_REQUIRES_ACCOUNT",
210
210
  NO_FLOR = "NO_FLOR",
211
211
  INVALID_SESSION = "INVALID_SESSION",
212
- PAYMENT_REQUIRED = "PAYMENT_REQUIRED"
212
+ PAYMENT_REQUIRED = "PAYMENT_REQUIRED",
213
+ PAYMENT_ERROR = "PAYMENT_ERROR"
213
214
  }
214
215
  export interface EnvidoState {
215
216
  accept: number;
@@ -218,7 +219,6 @@ export interface EnvidoState {
218
219
  }
219
220
  export type IEnvidoCalculatorResult = {
220
221
  accept: number;
221
- decline: number;
222
222
  replace?: number;
223
223
  next: Array<ECommand>;
224
224
  };
@@ -228,7 +228,6 @@ export type IFaltaEnvidoCalculatorArgs = {
228
228
  };
229
229
  export type IEnvidoCalculatorArgs = {
230
230
  stake: number;
231
- declineStake: number;
232
231
  } & (IFaltaEnvidoCalculatorArgs | never);
233
232
  export type IEnvidoCalculator = {
234
233
  [key in EEnvidoCommand]: (args?: IEnvidoCalculatorArgs) => IEnvidoCalculatorResult;
package/dist/types.js CHANGED
@@ -69,12 +69,13 @@ export var GAME_ERROR;
69
69
  GAME_ERROR["TEAM_NOT_READY"] = "TEAM_NOT_READY";
70
70
  GAME_ERROR["TEAM_IS_FULL"] = "TEAM_IS_FULL";
71
71
  GAME_ERROR["ENVIDO_NOT_ACCEPTED"] = "ENVIDO_NOT_ACCEPTED";
72
- GAME_ERROR["INVALID_COMAND"] = "INVALID_COMAND";
72
+ GAME_ERROR["INVALID_COMMAND"] = "INVALID_COMMAND";
73
73
  GAME_ERROR["INSUFFICIENT_BALANCE"] = "INSUFFICIENT_BALANCE";
74
74
  GAME_ERROR["GAME_REQUIRES_ACCOUNT"] = "GAME_REQUIRES_ACCOUNT";
75
75
  GAME_ERROR["NO_FLOR"] = "NO_FLOR";
76
76
  GAME_ERROR["INVALID_SESSION"] = "INVALID_SESSION";
77
77
  GAME_ERROR["PAYMENT_REQUIRED"] = "PAYMENT_REQUIRED";
78
+ GAME_ERROR["PAYMENT_ERROR"] = "PAYMENT_ERROR";
78
79
  })(GAME_ERROR || (GAME_ERROR = {}));
79
80
  export const DANGEROUS_COMMANDS = [
80
81
  ESayCommand.MAZO,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trucoshi",
3
- "version": "9.0.0",
3
+ "version": "9.2.0",
4
4
  "description": "Lightning Truco Server",
5
5
  "main": "dist/types.js",
6
6
  "license": "GPL-3.0",