@kalamba/sdk 0.4.0 → 0.5.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/wrapper.d.ts CHANGED
@@ -86,10 +86,6 @@ declare type Error_2 = {
86
86
  type: 'CLOSE' | 'RELOAD' | 'CONTINUE';
87
87
  };
88
88
 
89
- declare type ExtraPlayPayload = {
90
- [key: string]: any;
91
- };
92
-
93
89
  declare type ForwardToPluginsMessage<P extends PluginDomain> = keyof ForwardToPluginsMessageMap<'sdk'>[P] | keyof ForwardToPluginsMessageMap<'rgs'>[P] | keyof ForwardToPluginsMessageMap<'casino'>[P] | keyof ForwardToPluginsMessageMap<'telemetry'>[P];
94
90
 
95
91
  declare interface ForwardToPluginsMessageMap<SourceDomain extends DomainPrefix> {
@@ -149,10 +145,7 @@ declare type OpenGameResponse = {
149
145
  contract: {
150
146
  bet: {
151
147
  available: Record<number, number[]>;
152
- default: {
153
- base: number;
154
- multiplier: number;
155
- };
148
+ default: Bet;
156
149
  max: number;
157
150
  last: Bet | null;
158
151
  lastPaid: Bet | null;
@@ -174,6 +167,7 @@ declare type OpenGameResponse = {
174
167
  }[];
175
168
  version: string;
176
169
  };
170
+ roundId?: string;
177
171
  serverTime: number;
178
172
  sessionId: string;
179
173
  stateType: {
@@ -196,7 +190,7 @@ declare type PlayError = {
196
190
 
197
191
  declare type PlayRequest = {
198
192
  contract: ContractPlayPayload;
199
- extra: ExtraPlayPayload;
193
+ extra?: unknown;
200
194
  actionType: string;
201
195
  };
202
196
 
@@ -210,8 +204,8 @@ declare type PlayResponse = {
210
204
  coins: number;
211
205
  version: number;
212
206
  };
213
- serverTime: number;
214
207
  roundId: string;
208
+ serverTime: number;
215
209
  stateType: {
216
210
  thisRound: string;
217
211
  nextRound: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kalamba/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "type": "module",
6
6
  "files": [
@@ -45,6 +45,7 @@
45
45
  "casino"
46
46
  ],
47
47
  "dependencies": {
48
+ "date-fns": "3.6.0",
48
49
  "ua-parser-js": "2.0.0-beta.2",
49
50
  "uuid": "9.0.1"
50
51
  },