@kalamba/sdk 0.1.1 → 0.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/index.cjs +1 -1
- package/dist/index.d.ts +17 -8
- package/dist/index.js +45 -45
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.d.ts +19 -10
- package/dist/plugins.js +172 -179
- package/dist/wrapper.d.ts +16 -7
- package/package.json +1 -1
package/dist/wrapper.d.ts
CHANGED
|
@@ -55,6 +55,11 @@ declare abstract class CasinoPlugin {
|
|
|
55
55
|
protected send<M extends DomainMessage<'casino'>>(message: M, ...[payload]: DomainMessagePayload<'casino', M> extends never ? [] : [payload: DomainMessagePayload<'casino', M>]): void;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
declare type ContractPlayPayload = {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
bet: Bet | null;
|
|
61
|
+
};
|
|
62
|
+
|
|
58
63
|
declare type DeepPartial<T> = T extends object ? {
|
|
59
64
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
60
65
|
} : T;
|
|
@@ -81,6 +86,12 @@ declare type Error_2 = {
|
|
|
81
86
|
type: 'CLOSE' | 'RELOAD' | 'CONTINUE';
|
|
82
87
|
};
|
|
83
88
|
|
|
89
|
+
declare type ExtraPlayPayload = {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
} & {
|
|
92
|
+
bet?: never;
|
|
93
|
+
};
|
|
94
|
+
|
|
84
95
|
declare type ForwardToPluginsMessage<P extends PluginDomain> = keyof ForwardToPluginsMessageMap<'sdk'>[P] | keyof ForwardToPluginsMessageMap<'rgs'>[P] | keyof ForwardToPluginsMessageMap<'casino'>[P] | keyof ForwardToPluginsMessageMap<'telemetry'>[P];
|
|
85
96
|
|
|
86
97
|
declare interface ForwardToPluginsMessageMap<SourceDomain extends DomainPrefix> {
|
|
@@ -146,11 +157,9 @@ declare type PlayError = {
|
|
|
146
157
|
};
|
|
147
158
|
|
|
148
159
|
declare type PlayRequest = {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
} | {
|
|
153
|
-
opaqueGameAttributes: unknown;
|
|
160
|
+
contract: ContractPlayPayload;
|
|
161
|
+
extra: ExtraPlayPayload;
|
|
162
|
+
actionType: string;
|
|
154
163
|
};
|
|
155
164
|
|
|
156
165
|
declare type PlayResponse = {
|
|
@@ -303,12 +312,12 @@ declare type SdkOnlyMessagePayloadMap = {
|
|
|
303
312
|
openGame: OpenGameRequest;
|
|
304
313
|
play: PlayRequest;
|
|
305
314
|
playCycleEnd: PlayResponse;
|
|
306
|
-
playCycleStart:
|
|
315
|
+
playCycleStart: ContractPlayPayload;
|
|
307
316
|
playEnd: PlayResponse;
|
|
308
317
|
playReady: {
|
|
309
318
|
ready: boolean;
|
|
310
319
|
};
|
|
311
|
-
playStart:
|
|
320
|
+
playStart: ContractPlayPayload;
|
|
312
321
|
translations: Record<string, Record<string, string>>;
|
|
313
322
|
settings: Settings;
|
|
314
323
|
'telemetry.click': {
|