sdk-sapi-promarketing 0.0.1
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/README.md +110 -0
- package/dist/index.d.mts +7311 -0
- package/dist/index.d.ts +7311 -0
- package/dist/index.js +2827 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2788 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +54 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2788 @@
|
|
|
1
|
+
import { Mixin } from 'ts-mixer';
|
|
2
|
+
|
|
3
|
+
// index.ts
|
|
4
|
+
|
|
5
|
+
// request/index.ts
|
|
6
|
+
var RequestSDK = class {
|
|
7
|
+
constructor(context) {
|
|
8
|
+
this.context = context;
|
|
9
|
+
}
|
|
10
|
+
context;
|
|
11
|
+
/**
|
|
12
|
+
* Get path.
|
|
13
|
+
*
|
|
14
|
+
* @returns Value path.
|
|
15
|
+
*/
|
|
16
|
+
get pathSdk() {
|
|
17
|
+
const { proxy } = this.context;
|
|
18
|
+
return proxy;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Get path.
|
|
22
|
+
*
|
|
23
|
+
* @returns Value path.
|
|
24
|
+
*/
|
|
25
|
+
get urlBase() {
|
|
26
|
+
const { url } = this.context;
|
|
27
|
+
return url;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Handles errors from the API response and reports them if necessary.
|
|
31
|
+
*
|
|
32
|
+
* @param data - The data object containing errors and message.
|
|
33
|
+
* @param response - The response object from the API request.
|
|
34
|
+
* @returns An object with errors and a flag indicating unauthorized status.
|
|
35
|
+
*/
|
|
36
|
+
controlErrors(data, response) {
|
|
37
|
+
const errors = data.errors ? data.errors : null;
|
|
38
|
+
const statusCode = response.status;
|
|
39
|
+
const isUnauthorized = statusCode === 401;
|
|
40
|
+
return { errors, isUnauthorized };
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Make the `request` function generic.
|
|
44
|
+
*
|
|
45
|
+
* @param endpoint Represent values.
|
|
46
|
+
* @param config Represent values.
|
|
47
|
+
* @returns Instance fetch.
|
|
48
|
+
*/
|
|
49
|
+
requestSdk = async (endpoint, config = {}) => {
|
|
50
|
+
const baseUrlClient = `/${this.pathSdk}${endpoint}`;
|
|
51
|
+
const baseUrlServer = `${this.urlBase}${endpoint}`;
|
|
52
|
+
const url = this.context.onlyServer ? baseUrlServer : baseUrlClient;
|
|
53
|
+
const response = await fetch(url, { ...config });
|
|
54
|
+
const data = await response.json();
|
|
55
|
+
const { errors, isUnauthorized } = this.controlErrors(data, response);
|
|
56
|
+
if (isUnauthorized) {
|
|
57
|
+
this.context.statusResponse = "401";
|
|
58
|
+
await this.context.callback401?.();
|
|
59
|
+
this.context.statusResponse = null;
|
|
60
|
+
throw new Error("Session vencida");
|
|
61
|
+
}
|
|
62
|
+
if (errors) throw data;
|
|
63
|
+
return data;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Make the `request` function generic.
|
|
67
|
+
*
|
|
68
|
+
* @param endpoint Represent values.
|
|
69
|
+
* @param config Represent values.
|
|
70
|
+
* @returns Instance fetch.
|
|
71
|
+
*/
|
|
72
|
+
requestBase = async (endpoint, config = {}) => {
|
|
73
|
+
const response = await fetch(`${this.urlBase}${endpoint}`, config);
|
|
74
|
+
const data = await response.json();
|
|
75
|
+
return await data;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Http GET action of fetch.
|
|
79
|
+
*
|
|
80
|
+
* @param endpoint The endpoint URL.
|
|
81
|
+
* @param options The HTTP options to send with the request.
|
|
82
|
+
* @returns Promise http get type action.
|
|
83
|
+
*/
|
|
84
|
+
get = (endpoint, options) => this.requestSdk(endpoint, {
|
|
85
|
+
...options,
|
|
86
|
+
method: "GET"
|
|
87
|
+
});
|
|
88
|
+
/**
|
|
89
|
+
* Http POST action of fetch.
|
|
90
|
+
*
|
|
91
|
+
* @param endpoint The endpoint URL.
|
|
92
|
+
* @param options The HTTP options to send with the request.
|
|
93
|
+
* @returns Promise http get type action.
|
|
94
|
+
*/
|
|
95
|
+
post = (endpoint, options) => this.requestSdk(endpoint, {
|
|
96
|
+
...options,
|
|
97
|
+
method: "POST"
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* Http PUT action of fetch.
|
|
101
|
+
*
|
|
102
|
+
* @param endpoint The endpoint URL.
|
|
103
|
+
* @param options The HTTP options to send with the request.
|
|
104
|
+
* @returns Promise http get type action.
|
|
105
|
+
*/
|
|
106
|
+
put = (endpoint, options) => this.requestSdk(endpoint, {
|
|
107
|
+
...options,
|
|
108
|
+
method: "PUT"
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
// request/base.ts
|
|
113
|
+
var RequestBase = class extends RequestSDK {
|
|
114
|
+
constructor(context, prefix) {
|
|
115
|
+
super(context);
|
|
116
|
+
this.context = context;
|
|
117
|
+
this.prefix = prefix;
|
|
118
|
+
}
|
|
119
|
+
context;
|
|
120
|
+
prefix;
|
|
121
|
+
/**
|
|
122
|
+
* TokenAuth..
|
|
123
|
+
*
|
|
124
|
+
* @returns Token value.
|
|
125
|
+
*/
|
|
126
|
+
tokenAuth() {
|
|
127
|
+
if (!this.context.valueToken) {
|
|
128
|
+
if (!this.context.token) {
|
|
129
|
+
throw new Error(
|
|
130
|
+
"SdkSapiContext.token is required when requesting with authentication"
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
this.context.valueToken = this.context.token();
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
Authorization: `Bearer ${this.context.valueToken}`
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Http GET action of fetch.
|
|
141
|
+
*
|
|
142
|
+
* @param endpoint The endpoint URL.
|
|
143
|
+
* @param options The HTTP options to send with the request.
|
|
144
|
+
* @param withToken Endpoint required token.
|
|
145
|
+
* @returns Promise http get type action.
|
|
146
|
+
*/
|
|
147
|
+
getBase = async (endpoint, options, withToken) => {
|
|
148
|
+
const headers = await this.getHeaders(options, withToken);
|
|
149
|
+
return this.requestSdk(`${this.prefix}${endpoint}`, {
|
|
150
|
+
...headers,
|
|
151
|
+
...options,
|
|
152
|
+
method: "GET"
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Handle headers.
|
|
157
|
+
*
|
|
158
|
+
* @param options Options values.
|
|
159
|
+
* @param withToken WithToken values.
|
|
160
|
+
* @returns Value header fetch.
|
|
161
|
+
*/
|
|
162
|
+
getHeaders = async (options = {}, withToken = false) => {
|
|
163
|
+
const token = withToken ? this.tokenAuth() : {};
|
|
164
|
+
return {
|
|
165
|
+
headers: {
|
|
166
|
+
...token,
|
|
167
|
+
...options.headers
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Http POST action of fetch.
|
|
173
|
+
*
|
|
174
|
+
* @param endpoint The endpoint URL.
|
|
175
|
+
* @param options The HTTP options to send with the request.
|
|
176
|
+
* @param withToken Endpoint required token.
|
|
177
|
+
* @returns Promise http get type action.
|
|
178
|
+
*/
|
|
179
|
+
postBase = async (endpoint, options, withToken) => {
|
|
180
|
+
const headers = await this.getHeaders(options, withToken);
|
|
181
|
+
return this.requestSdk(`${this.prefix}${endpoint}`, {
|
|
182
|
+
...options,
|
|
183
|
+
...headers,
|
|
184
|
+
method: "POST"
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Http PUT action of fetch.
|
|
189
|
+
*
|
|
190
|
+
* @param endpoint The endpoint URL.
|
|
191
|
+
* @param options The HTTP options to send with the request.
|
|
192
|
+
* @param withToken Endpoint required token.
|
|
193
|
+
* @returns Promise http get type action.
|
|
194
|
+
*/
|
|
195
|
+
putBase = async (endpoint, options, withToken) => {
|
|
196
|
+
const headers = await this.getHeaders(options, withToken);
|
|
197
|
+
return this.requestSdk(`${this.prefix}${endpoint}`, {
|
|
198
|
+
...options,
|
|
199
|
+
...headers,
|
|
200
|
+
method: "PUT"
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Http Delete action of fetch.
|
|
205
|
+
*
|
|
206
|
+
* @param endpoint The endpoint URL.
|
|
207
|
+
* @param options The HTTP options to send with the request.
|
|
208
|
+
* @param withToken Endpoint required token.
|
|
209
|
+
* @returns Promise http get type action.
|
|
210
|
+
*/
|
|
211
|
+
deleteBase = async (endpoint, options, withToken) => {
|
|
212
|
+
const headers = await this.getHeaders(options, withToken);
|
|
213
|
+
return this.requestSdk(`${this.prefix}${endpoint}`, {
|
|
214
|
+
...options,
|
|
215
|
+
...headers,
|
|
216
|
+
method: "DELETE"
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
// services/game.service.ts
|
|
222
|
+
var GameService = class extends RequestBase {
|
|
223
|
+
constructor(context) {
|
|
224
|
+
const prefixService = `/games`;
|
|
225
|
+
super(context, prefixService);
|
|
226
|
+
this.context = context;
|
|
227
|
+
}
|
|
228
|
+
context;
|
|
229
|
+
/**
|
|
230
|
+
* Get skin lobby by code.
|
|
231
|
+
*
|
|
232
|
+
* @param lobbyCode Lobby code.
|
|
233
|
+
* @param token Represent value token.
|
|
234
|
+
* @returns These returns values unknown.
|
|
235
|
+
*/
|
|
236
|
+
getSkinLobbyByCode = async (lobbyCode, token) => this.requestBase(
|
|
237
|
+
`/games/skin/${this.context.skin}/lobby/${lobbyCode}`,
|
|
238
|
+
{
|
|
239
|
+
...token && {
|
|
240
|
+
headers: {
|
|
241
|
+
Authorization: `Bearer ${token}`
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
/**
|
|
247
|
+
* Get game opening URL.
|
|
248
|
+
*
|
|
249
|
+
* @param gameId Represents game ID.
|
|
250
|
+
* @param device Represent value device.
|
|
251
|
+
* @param options Represent value options.
|
|
252
|
+
* @returns These returns values unknown.
|
|
253
|
+
*/
|
|
254
|
+
getGamesOpeningUrl = async (gameId, device, options = {}) => this.getBase(
|
|
255
|
+
`/${gameId}/device/${device}/opening-url`,
|
|
256
|
+
options,
|
|
257
|
+
true
|
|
258
|
+
);
|
|
259
|
+
/**
|
|
260
|
+
* Get game opening URL.
|
|
261
|
+
*
|
|
262
|
+
* @param gameId Represents game ID.
|
|
263
|
+
* @param options Represent value options.
|
|
264
|
+
* @returns These returns values unknown.
|
|
265
|
+
*/
|
|
266
|
+
getGameById = async (gameId, options = {}) => this.getBase(`/${gameId}/skin/${this.context.skin}`, options);
|
|
267
|
+
/**
|
|
268
|
+
* Get game opening URL.
|
|
269
|
+
*
|
|
270
|
+
* @param gameId Represents game ID.
|
|
271
|
+
* @param options Represent value options.
|
|
272
|
+
* @returns These returns values unknown.
|
|
273
|
+
*/
|
|
274
|
+
getGameByIdServer = async (gameId, options = {}) => this.requestBase(
|
|
275
|
+
`/games/${gameId}/skin/${this.context.skin}`,
|
|
276
|
+
options
|
|
277
|
+
);
|
|
278
|
+
/**
|
|
279
|
+
* Get game by supplier and category.
|
|
280
|
+
*
|
|
281
|
+
* @param supplier Supplier name.
|
|
282
|
+
* @param category Category name.
|
|
283
|
+
* @param query QueryType.
|
|
284
|
+
* @param options Represent value options.
|
|
285
|
+
* @param withToken Is fetch with session.
|
|
286
|
+
* @returns These returns values unknown.
|
|
287
|
+
*/
|
|
288
|
+
getGamesBySupplierAndCategory = async (supplier, category, query, options = {}, withToken = false) => {
|
|
289
|
+
if (!supplier) return {};
|
|
290
|
+
const categoryUrl = category ? `/category/${category}` : "";
|
|
291
|
+
const page = query?.page ?? 1;
|
|
292
|
+
const limit = query?.limit ?? 20;
|
|
293
|
+
return this.getBase(
|
|
294
|
+
`/provider/${supplier}/skin/${this.context.skin}${categoryUrl}?page=${page}&limit=${limit}`,
|
|
295
|
+
options,
|
|
296
|
+
withToken
|
|
297
|
+
);
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Get games by tournament ID and skin.
|
|
301
|
+
*
|
|
302
|
+
* @param tournamentId Represents tournament ID.
|
|
303
|
+
* @param query QueryType.
|
|
304
|
+
* @param options Represent value options.
|
|
305
|
+
* @returns These returns values unknown.
|
|
306
|
+
*/
|
|
307
|
+
getGamesByTournamentAndSkin = async (tournamentId, query, options = {}) => {
|
|
308
|
+
if (!tournamentId) return {};
|
|
309
|
+
const { page = 1, limit = 20 } = query || {};
|
|
310
|
+
return this.getBase(
|
|
311
|
+
`/skin/${this.context.skin}/tournament/${tournamentId}?page=${page}&limit=${limit}`,
|
|
312
|
+
options
|
|
313
|
+
);
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Get game types.
|
|
317
|
+
*
|
|
318
|
+
* @param options Represent value options.
|
|
319
|
+
* @param withToken Is fetch with session.
|
|
320
|
+
* @returns These returns values unknown.
|
|
321
|
+
*/
|
|
322
|
+
getGameTypes = async (options = {}, withToken = false) => this.getBase(`/types`, options, withToken);
|
|
323
|
+
/**
|
|
324
|
+
* Get game categories.
|
|
325
|
+
*
|
|
326
|
+
* @param options Represent value options.
|
|
327
|
+
* @returns These returns values unknown.
|
|
328
|
+
*/
|
|
329
|
+
getGameCategories = async (options = {}) => this.getBase(`/categories`, options, true);
|
|
330
|
+
/**
|
|
331
|
+
* Get game by lobby code.
|
|
332
|
+
*
|
|
333
|
+
* @param lobbyCode Represents tournament ID.
|
|
334
|
+
* @param query QueryType.
|
|
335
|
+
* @param options Represent value options.
|
|
336
|
+
* @param withToken Represent value options.
|
|
337
|
+
* @returns These returns values unknown.
|
|
338
|
+
*/
|
|
339
|
+
getGameByLobbyCode = async (lobbyCode, query, options = {}, withToken = false) => {
|
|
340
|
+
const { page = 1, limit = 20, ...queryParams } = query || {};
|
|
341
|
+
return this.getBase(
|
|
342
|
+
`/skin/${this.context.skin}/lobby-paginate/${lobbyCode}?page=${page}&limit=${limit}`,
|
|
343
|
+
options,
|
|
344
|
+
withToken
|
|
345
|
+
);
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* Get game by type.
|
|
349
|
+
*
|
|
350
|
+
* @param type Type name.
|
|
351
|
+
* @param query QueryType.
|
|
352
|
+
* @param options Represent value options.
|
|
353
|
+
* @param withToken Is fetch with session.
|
|
354
|
+
* @returns These returns values unknown.
|
|
355
|
+
*/
|
|
356
|
+
getGamesByType = async (type, query, options = {}, withToken = false) => {
|
|
357
|
+
const typeUrl = type ? `/type/${type}` : "";
|
|
358
|
+
const { page = 1, limit = 20 } = query || {};
|
|
359
|
+
return this.getBase(
|
|
360
|
+
`/skin/${this.context.skin}${typeUrl}?page=${page}&limit=${limit}`,
|
|
361
|
+
options,
|
|
362
|
+
withToken
|
|
363
|
+
);
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* Get skin games jackpots pragmatic .
|
|
367
|
+
*
|
|
368
|
+
* @param options Represent value options.
|
|
369
|
+
* @returns These returns values unknown.
|
|
370
|
+
*/
|
|
371
|
+
getSkinGamesJackpotsPragmatic = (options = {}) => this.getBase(
|
|
372
|
+
`/jackpot/pragmatic/skin/${this.context.skin}`,
|
|
373
|
+
options
|
|
374
|
+
);
|
|
375
|
+
/**
|
|
376
|
+
* Get game skin by code lobby.
|
|
377
|
+
*
|
|
378
|
+
* @param codeLobby Type name.
|
|
379
|
+
* @param query QueryType.
|
|
380
|
+
* @param options Represent value options.
|
|
381
|
+
* @returns These returns values unknown.
|
|
382
|
+
*/
|
|
383
|
+
getGamesSkinByCodeLobby = async (codeLobby, query, options = {}) => {
|
|
384
|
+
const { page = 1, limit = 20 } = query || {};
|
|
385
|
+
return this.getBase(
|
|
386
|
+
`/skin/${this.context.skin}/lobby/${codeLobby}?page=${page}&limit=${limit}`,
|
|
387
|
+
options,
|
|
388
|
+
true
|
|
389
|
+
);
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
// services/skin.service.ts
|
|
394
|
+
var SkinService = class extends RequestBase {
|
|
395
|
+
constructor(context) {
|
|
396
|
+
const { skin } = context;
|
|
397
|
+
const prefixService = `/skin/${skin}`;
|
|
398
|
+
super(context, prefixService);
|
|
399
|
+
this.context = context;
|
|
400
|
+
}
|
|
401
|
+
context;
|
|
402
|
+
/**
|
|
403
|
+
* Get faq by skin.
|
|
404
|
+
*
|
|
405
|
+
* @param withToken Represent value options.
|
|
406
|
+
* @returns These returns values unknown.
|
|
407
|
+
*/
|
|
408
|
+
getFaqBySkin = (withToken = false) => this.getBase("/faq", {}, withToken);
|
|
409
|
+
/**
|
|
410
|
+
* Get skin providers.
|
|
411
|
+
*
|
|
412
|
+
* @param query Represent value options.
|
|
413
|
+
* @param options Represent value options.
|
|
414
|
+
* @returns These returns values unknown.
|
|
415
|
+
*/
|
|
416
|
+
getSkinProviders = (query = {}, options = {}) => {
|
|
417
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
418
|
+
return this.getBase(`/providers?${handleQuery}`, options);
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Get skin providers.
|
|
422
|
+
*
|
|
423
|
+
* @param query Represent value options.
|
|
424
|
+
* @param options Represent value options.
|
|
425
|
+
* @returns These returns values unknown.
|
|
426
|
+
*/
|
|
427
|
+
getSkinProvidersServer = (query = {}, options = {}) => {
|
|
428
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
429
|
+
return this.requestBase(
|
|
430
|
+
`/skin/${this.context.skin}/providers?${handleQuery}`,
|
|
431
|
+
options
|
|
432
|
+
);
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Get Skin General Information.
|
|
436
|
+
*
|
|
437
|
+
* @param query Represent value query.
|
|
438
|
+
* @param options Represent value options.
|
|
439
|
+
* @returns These returns values unknown.
|
|
440
|
+
*/
|
|
441
|
+
getSkinInformation = (query = {}, options = {}) => {
|
|
442
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
443
|
+
return this.getBase(
|
|
444
|
+
`/information?${handleQuery}`,
|
|
445
|
+
options
|
|
446
|
+
);
|
|
447
|
+
};
|
|
448
|
+
/**
|
|
449
|
+
* Get Skin Country.
|
|
450
|
+
*
|
|
451
|
+
* @param options Represent value options.
|
|
452
|
+
* @returns These returns values unknown.
|
|
453
|
+
*/
|
|
454
|
+
getSkinCountry = (options = {}) => this.getBase(`/country`, options);
|
|
455
|
+
/**
|
|
456
|
+
* Get skin currency.
|
|
457
|
+
*
|
|
458
|
+
* @param options Represent value options.
|
|
459
|
+
* @returns These returns values unknown.
|
|
460
|
+
*/
|
|
461
|
+
getSkinCurrency = (options = {}) => this.getBase(`/currency`, options);
|
|
462
|
+
/**
|
|
463
|
+
* Get skin providers.
|
|
464
|
+
*
|
|
465
|
+
* @param options Represent value options.
|
|
466
|
+
* @returns These returns values unknown.
|
|
467
|
+
*/
|
|
468
|
+
getSkinProvidersList = (options = {}) => this.getBase(`/provider/list`, options);
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
// utils/headers.ts
|
|
472
|
+
var headersApplicationJson = {
|
|
473
|
+
"Content-Type": "application/json"
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
// services/player.service.ts
|
|
477
|
+
var PlayerService = class extends RequestBase {
|
|
478
|
+
constructor(context) {
|
|
479
|
+
const prefixService = `/player`;
|
|
480
|
+
super(context, prefixService);
|
|
481
|
+
this.context = context;
|
|
482
|
+
}
|
|
483
|
+
context;
|
|
484
|
+
postPlayerPreRegistration = async (data) => this.postBase(
|
|
485
|
+
"/create/preregister",
|
|
486
|
+
{
|
|
487
|
+
body: JSON.stringify({
|
|
488
|
+
...data,
|
|
489
|
+
skin: this.context.skin
|
|
490
|
+
}),
|
|
491
|
+
headers: headersApplicationJson
|
|
492
|
+
}
|
|
493
|
+
);
|
|
494
|
+
/**
|
|
495
|
+
* Get player bank accounts.
|
|
496
|
+
*
|
|
497
|
+
* @param options - Represent value options.
|
|
498
|
+
* @returns These returns a list with player notifications.
|
|
499
|
+
*/
|
|
500
|
+
getPlayerBankAccounts = async (options = {}) => this.getBase("/bank-accounts", options, true);
|
|
501
|
+
/**
|
|
502
|
+
* Post create player.
|
|
503
|
+
*
|
|
504
|
+
* @param data Represent the data to send in the body.
|
|
505
|
+
* @returns These returns values unknown.
|
|
506
|
+
*/
|
|
507
|
+
postCreatePlayer = (data) => this.postBase("/create", {
|
|
508
|
+
body: JSON.stringify({
|
|
509
|
+
country_id: 241,
|
|
510
|
+
...data
|
|
511
|
+
}),
|
|
512
|
+
headers: headersApplicationJson
|
|
513
|
+
});
|
|
514
|
+
/**
|
|
515
|
+
* Sends a POST request to edit player details.
|
|
516
|
+
*
|
|
517
|
+
* @param data - The data to be sent in the request body.
|
|
518
|
+
* @returns A promise that resolves with the response of the POST request.
|
|
519
|
+
*/
|
|
520
|
+
postPlayerAcceptChangeTermsAndPolicy = (data) => this.postBase(
|
|
521
|
+
"/details/edit",
|
|
522
|
+
{
|
|
523
|
+
headers: headersApplicationJson,
|
|
524
|
+
body: JSON.stringify(data)
|
|
525
|
+
},
|
|
526
|
+
true
|
|
527
|
+
);
|
|
528
|
+
/**
|
|
529
|
+
* Post send verification sms code.
|
|
530
|
+
*
|
|
531
|
+
* @param data - Represent the data to send in the body.
|
|
532
|
+
* @returns These returns values unknown.
|
|
533
|
+
*/
|
|
534
|
+
postSendVerificationSms = (data) => this.postBase("/send/sms-code-verify", {
|
|
535
|
+
body: JSON.stringify(data),
|
|
536
|
+
headers: headersApplicationJson
|
|
537
|
+
});
|
|
538
|
+
/**
|
|
539
|
+
* Post send password recover url.
|
|
540
|
+
*
|
|
541
|
+
* @param data - Represent the data to send in the body.
|
|
542
|
+
* @returns These returns values unknown.
|
|
543
|
+
*/
|
|
544
|
+
postSendPasswordRecover = (data) => this.postBase(
|
|
545
|
+
"/password-recovery/request",
|
|
546
|
+
{
|
|
547
|
+
headers: headersApplicationJson,
|
|
548
|
+
body: JSON.stringify({
|
|
549
|
+
...data,
|
|
550
|
+
skin: this.context.skin,
|
|
551
|
+
link: "password/recover/"
|
|
552
|
+
})
|
|
553
|
+
}
|
|
554
|
+
);
|
|
555
|
+
/**
|
|
556
|
+
* Put update password player.
|
|
557
|
+
*
|
|
558
|
+
* @param data - PlayerUpdatePasswordDataType.
|
|
559
|
+
* @returns These returns values unknown.
|
|
560
|
+
*/
|
|
561
|
+
putUpdatePasswordPlayer = async (data) => this.putBase(
|
|
562
|
+
"/update-password",
|
|
563
|
+
{
|
|
564
|
+
headers: headersApplicationJson,
|
|
565
|
+
body: JSON.stringify(data)
|
|
566
|
+
},
|
|
567
|
+
true
|
|
568
|
+
);
|
|
569
|
+
/**
|
|
570
|
+
* Set new password.
|
|
571
|
+
*
|
|
572
|
+
* @param data - PlayerSetPasswordDateType.
|
|
573
|
+
* @returns These returns values unknown.
|
|
574
|
+
*/
|
|
575
|
+
postUpdatePlayerPassword = async (data) => this.postBase("/password-recovery", {
|
|
576
|
+
headers: headersApplicationJson,
|
|
577
|
+
body: JSON.stringify({
|
|
578
|
+
...data,
|
|
579
|
+
skin: this.context.skin
|
|
580
|
+
})
|
|
581
|
+
});
|
|
582
|
+
/**
|
|
583
|
+
* Put edit player.
|
|
584
|
+
*
|
|
585
|
+
* @param data - PlayerEditDataType.
|
|
586
|
+
* @returns These returns values unknown.
|
|
587
|
+
*/
|
|
588
|
+
putEditPlayer = async (data) => this.putBase(
|
|
589
|
+
"/edit",
|
|
590
|
+
{
|
|
591
|
+
headers: headersApplicationJson,
|
|
592
|
+
body: JSON.stringify(data)
|
|
593
|
+
},
|
|
594
|
+
true
|
|
595
|
+
);
|
|
596
|
+
/**
|
|
597
|
+
* Request withdrawal.
|
|
598
|
+
*
|
|
599
|
+
* @param data - PlayerRequestWithdrawalDataType.
|
|
600
|
+
* @returns These returns values unknown.
|
|
601
|
+
*/
|
|
602
|
+
postRequestWithdrawal = async (data) => this.postBase(
|
|
603
|
+
"/request-withdrawal/create",
|
|
604
|
+
{
|
|
605
|
+
headers: headersApplicationJson,
|
|
606
|
+
body: JSON.stringify(data)
|
|
607
|
+
},
|
|
608
|
+
true
|
|
609
|
+
);
|
|
610
|
+
/**
|
|
611
|
+
* Get player info.
|
|
612
|
+
*
|
|
613
|
+
* @param options Represent value options.
|
|
614
|
+
* @returns These returns values unknown.
|
|
615
|
+
*/
|
|
616
|
+
getPlayerInfo = async (options = {}) => this.getBase("", options, true);
|
|
617
|
+
/**
|
|
618
|
+
* Get player balance.
|
|
619
|
+
*
|
|
620
|
+
* @param options Represent value options.
|
|
621
|
+
* @returns These returns values unknown.
|
|
622
|
+
*/
|
|
623
|
+
getPlayerBalance = async (options = {}) => this.getBase("/balance", options, true);
|
|
624
|
+
/**
|
|
625
|
+
* Get player request withdrawal status.
|
|
626
|
+
*
|
|
627
|
+
* @returns These returns values unknown.
|
|
628
|
+
*/
|
|
629
|
+
getPlayerRequestWithdrawalStatus = async () => this.getBase(
|
|
630
|
+
"/request-withdrawal/status",
|
|
631
|
+
{},
|
|
632
|
+
true
|
|
633
|
+
);
|
|
634
|
+
/**
|
|
635
|
+
* Get player request withdrawal pending tracking.
|
|
636
|
+
*
|
|
637
|
+
* @param props - PlayerRequestWithdrawalPendingTrackingType.
|
|
638
|
+
* @returns These returns values unknown.
|
|
639
|
+
*/
|
|
640
|
+
getPlayerRequestWithdrawalPendingTracking = async (playerRequestId) => this.getBase(
|
|
641
|
+
`/request-withdrawal/pending/${playerRequestId}`,
|
|
642
|
+
{},
|
|
643
|
+
true
|
|
644
|
+
);
|
|
645
|
+
/**
|
|
646
|
+
* Close player request withdrawal pending tracking.
|
|
647
|
+
*
|
|
648
|
+
* @param playerRequestId - Player request withdrawal id.
|
|
649
|
+
* @returns These returns values unknown.
|
|
650
|
+
*/
|
|
651
|
+
postPlayerRequestWithdrawalPendingClose = async (playerRequestId) => this.postBase(
|
|
652
|
+
"/request-withdrawal/pending/close",
|
|
653
|
+
{
|
|
654
|
+
headers: headersApplicationJson,
|
|
655
|
+
body: JSON.stringify({
|
|
656
|
+
player_request_id: playerRequestId
|
|
657
|
+
})
|
|
658
|
+
},
|
|
659
|
+
true
|
|
660
|
+
);
|
|
661
|
+
/**
|
|
662
|
+
* Get player bonus availables.
|
|
663
|
+
*
|
|
664
|
+
* @returns These returns values PlayerBonusAvailablesType.
|
|
665
|
+
*/
|
|
666
|
+
getPlayerBonusAvailable = async () => this.getBase("/bonus/availables", {}, true);
|
|
667
|
+
/**
|
|
668
|
+
* Get player bonus available count.
|
|
669
|
+
*
|
|
670
|
+
* @returns These returns values unknown.
|
|
671
|
+
*/
|
|
672
|
+
getPlayerBonusAvailableCount = async () => this.postBase(
|
|
673
|
+
"/bonus/available/count",
|
|
674
|
+
{},
|
|
675
|
+
true
|
|
676
|
+
);
|
|
677
|
+
/**
|
|
678
|
+
* Get bet round link.
|
|
679
|
+
*
|
|
680
|
+
* @param roundId - Round id.
|
|
681
|
+
* @returns These returns values unknown.
|
|
682
|
+
*/
|
|
683
|
+
getBetRoundLink = async (roundId) => this.getBase(
|
|
684
|
+
`/game-replay/transaction-id/${roundId}`,
|
|
685
|
+
{},
|
|
686
|
+
true
|
|
687
|
+
);
|
|
688
|
+
/**
|
|
689
|
+
* Post bonus activate.
|
|
690
|
+
*
|
|
691
|
+
* @param bonusId - String.
|
|
692
|
+
* @returns These returns values unknown.
|
|
693
|
+
*/
|
|
694
|
+
postPlayerBonusActivate = async (bonusId) => this.postBase(
|
|
695
|
+
`/bonus/activate/bonus-id/${bonusId}`,
|
|
696
|
+
{
|
|
697
|
+
headers: headersApplicationJson
|
|
698
|
+
},
|
|
699
|
+
true
|
|
700
|
+
);
|
|
701
|
+
/**
|
|
702
|
+
* Post bonus Give up.
|
|
703
|
+
*
|
|
704
|
+
* @param bonusId - String.
|
|
705
|
+
* @returns These returns values unknown.
|
|
706
|
+
*/
|
|
707
|
+
postPlayerBonusGiveUp = async (bonusId) => this.postBase(
|
|
708
|
+
`/bonus/give-up/bonus-id/${bonusId}`,
|
|
709
|
+
{
|
|
710
|
+
headers: headersApplicationJson
|
|
711
|
+
},
|
|
712
|
+
true
|
|
713
|
+
);
|
|
714
|
+
/**
|
|
715
|
+
* Get bonus activate.
|
|
716
|
+
*
|
|
717
|
+
* @param bonusId - String.
|
|
718
|
+
* @returns These returns values unknown.
|
|
719
|
+
*/
|
|
720
|
+
getPlayerBonusTermsConditions = async (bonusId) => this.getBase(
|
|
721
|
+
`/bonus/terms-conditions/bonus-id/${bonusId}`,
|
|
722
|
+
{},
|
|
723
|
+
true
|
|
724
|
+
);
|
|
725
|
+
/**
|
|
726
|
+
* Get transactions type.
|
|
727
|
+
*
|
|
728
|
+
* @returns These returns values unknown.
|
|
729
|
+
*/
|
|
730
|
+
getTransactionsTypes = async () => this.getBase(`/transactions/type`, {}, true);
|
|
731
|
+
/**
|
|
732
|
+
* Get transactions status.
|
|
733
|
+
*
|
|
734
|
+
* @returns These returns values unknown.
|
|
735
|
+
*/
|
|
736
|
+
getTransactionsStatus = async () => this.getBase(`/transactions/status`, {}, true);
|
|
737
|
+
/**
|
|
738
|
+
* Send email to confirm email verification.
|
|
739
|
+
*
|
|
740
|
+
* @returns These returns values unknown.
|
|
741
|
+
*/
|
|
742
|
+
postSendEmailConfirmationVerify = async () => this.postBase(
|
|
743
|
+
"/send/email-confirmation-verify",
|
|
744
|
+
{},
|
|
745
|
+
true
|
|
746
|
+
);
|
|
747
|
+
/**
|
|
748
|
+
* Get latest transactions.
|
|
749
|
+
*
|
|
750
|
+
* @returns These returns values unknown.
|
|
751
|
+
*/
|
|
752
|
+
getLatestTransactions = () => this.getBase(
|
|
753
|
+
`/transactions/latest?limit=2`,
|
|
754
|
+
{},
|
|
755
|
+
true
|
|
756
|
+
);
|
|
757
|
+
/**
|
|
758
|
+
* Post player preferences.
|
|
759
|
+
*
|
|
760
|
+
* @param isPreferSkin2 - Boolean.
|
|
761
|
+
* @param ip - String.
|
|
762
|
+
* @returns These returns values unknown.
|
|
763
|
+
*/
|
|
764
|
+
postPlayerPreferenceByIp = async (isPreferSkin2, ip) => this.postBase(
|
|
765
|
+
"/skin/ip/preference",
|
|
766
|
+
{
|
|
767
|
+
headers: headersApplicationJson,
|
|
768
|
+
body: JSON.stringify({
|
|
769
|
+
prefer_skin2: isPreferSkin2,
|
|
770
|
+
ip
|
|
771
|
+
})
|
|
772
|
+
},
|
|
773
|
+
false
|
|
774
|
+
);
|
|
775
|
+
/**
|
|
776
|
+
* Post player preferences.
|
|
777
|
+
*
|
|
778
|
+
* @param isPreferSkin2 - Boolean.
|
|
779
|
+
* @returns These returns values unknown.
|
|
780
|
+
*/
|
|
781
|
+
postPlayerPreferenceByUser = async (isPreferSkin2) => this.postBase(
|
|
782
|
+
"/skin/preference",
|
|
783
|
+
{
|
|
784
|
+
headers: headersApplicationJson,
|
|
785
|
+
body: JSON.stringify({
|
|
786
|
+
prefer_skin2: isPreferSkin2
|
|
787
|
+
})
|
|
788
|
+
},
|
|
789
|
+
true
|
|
790
|
+
);
|
|
791
|
+
/**
|
|
792
|
+
* Post update or create phone.
|
|
793
|
+
*
|
|
794
|
+
* @param data - The data to be verified.
|
|
795
|
+
* @returns These returns values unknown.
|
|
796
|
+
*/
|
|
797
|
+
postPlayerUpdateOrCreatePhone = (data) => this.postBase("/create/phone", {
|
|
798
|
+
body: JSON.stringify(data),
|
|
799
|
+
headers: headersApplicationJson
|
|
800
|
+
});
|
|
801
|
+
/**
|
|
802
|
+
* Post promotion activate bonus.
|
|
803
|
+
*
|
|
804
|
+
* @param data - PlayerBonusPromotionActivateDataType.
|
|
805
|
+
* @returns These returns values unknown.
|
|
806
|
+
*/
|
|
807
|
+
postPromotionActivateBonus = async (data) => this.postBase(
|
|
808
|
+
"/promotion/welcome/assign",
|
|
809
|
+
{
|
|
810
|
+
headers: headersApplicationJson,
|
|
811
|
+
body: JSON.stringify(data)
|
|
812
|
+
},
|
|
813
|
+
true
|
|
814
|
+
);
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
// services/validate.service.ts
|
|
818
|
+
var ValidateService = class extends RequestBase {
|
|
819
|
+
constructor(context) {
|
|
820
|
+
const prefixService = `/validate`;
|
|
821
|
+
super(context, prefixService);
|
|
822
|
+
this.context = context;
|
|
823
|
+
}
|
|
824
|
+
context;
|
|
825
|
+
/**
|
|
826
|
+
* Get username validation.
|
|
827
|
+
*
|
|
828
|
+
* @param username Username string.
|
|
829
|
+
* @param options Represent value options.
|
|
830
|
+
* @returns These returns values unknown.
|
|
831
|
+
*/
|
|
832
|
+
getUsernameValidation = (username, options = {}) => username && this.getBase(`/username/${username}`, options);
|
|
833
|
+
/**
|
|
834
|
+
* Get document validation by skin.
|
|
835
|
+
*
|
|
836
|
+
* @param document Document string.
|
|
837
|
+
* @param options Represent value options.
|
|
838
|
+
* @returns These returns values unknown.
|
|
839
|
+
*/
|
|
840
|
+
getDocumentValidationBySkin = (document, playerPreregisterId) => document && this.postBase(`/document`, {
|
|
841
|
+
headers: headersApplicationJson,
|
|
842
|
+
body: JSON.stringify({
|
|
843
|
+
document_rut: document,
|
|
844
|
+
skin: this.context.skin,
|
|
845
|
+
document_type: "CI",
|
|
846
|
+
player_preregister_id: playerPreregisterId
|
|
847
|
+
})
|
|
848
|
+
});
|
|
849
|
+
/**
|
|
850
|
+
* Get document validation by skin.
|
|
851
|
+
*
|
|
852
|
+
* @param body Document string.
|
|
853
|
+
* @returns These returns values unknown.
|
|
854
|
+
*/
|
|
855
|
+
getSerialValidationBySkin = (body) => this.postBase(`/serial`, {
|
|
856
|
+
headers: headersApplicationJson,
|
|
857
|
+
body: JSON.stringify({
|
|
858
|
+
...body,
|
|
859
|
+
skin: this.context.skin,
|
|
860
|
+
document_type: "CI"
|
|
861
|
+
})
|
|
862
|
+
});
|
|
863
|
+
/**
|
|
864
|
+
* Get affiliate code validation.
|
|
865
|
+
*
|
|
866
|
+
* @param code Affiliate Code string.
|
|
867
|
+
* @param options Represent value options.
|
|
868
|
+
* @returns These returns values unknown.
|
|
869
|
+
*/
|
|
870
|
+
getAffiliateValidation = (code, options = {}) => code && this.getBase(
|
|
871
|
+
`/skin/${this.context.skin}/affiliate/code/${code}`,
|
|
872
|
+
options
|
|
873
|
+
);
|
|
874
|
+
/**
|
|
875
|
+
* Get mail validation.
|
|
876
|
+
*
|
|
877
|
+
* @param mail Mail string.
|
|
878
|
+
* @param options Represent value options.
|
|
879
|
+
* @returns These returns values unknown.
|
|
880
|
+
*/
|
|
881
|
+
getMailValidation = (mail, options = {}) => mail && this.getBase(
|
|
882
|
+
`/mail/${mail}/skin/${this.context.skin}`,
|
|
883
|
+
options
|
|
884
|
+
);
|
|
885
|
+
/**
|
|
886
|
+
* Get phone validation by skin.
|
|
887
|
+
*
|
|
888
|
+
* @param phone - Phone number string.
|
|
889
|
+
* @param options - Represent value options.
|
|
890
|
+
* @returns These returns values unknown.
|
|
891
|
+
*/
|
|
892
|
+
getPhoneValidationBySkin = (phone, options = {}) => phone && this.getBase(
|
|
893
|
+
`/phone/${phone}/skin/${this.context.skin}`,
|
|
894
|
+
options
|
|
895
|
+
);
|
|
896
|
+
/**
|
|
897
|
+
* Get the code validation.
|
|
898
|
+
*
|
|
899
|
+
* @param code - Code to validate.
|
|
900
|
+
* @param options - Represent value options.
|
|
901
|
+
* @returns These returns values unknown.
|
|
902
|
+
*/
|
|
903
|
+
getPasswordRecoveryCodeValidation = (code, options = {}) => code && this.getBase(
|
|
904
|
+
`/password-recovery/code/${code}`,
|
|
905
|
+
options
|
|
906
|
+
);
|
|
907
|
+
postValidateSerial = (data, withToken = false) => this.postBase(
|
|
908
|
+
"/serial",
|
|
909
|
+
{
|
|
910
|
+
headers: headersApplicationJson,
|
|
911
|
+
body: JSON.stringify({
|
|
912
|
+
...data,
|
|
913
|
+
document_type: "CI",
|
|
914
|
+
skin: this.context.skin
|
|
915
|
+
})
|
|
916
|
+
},
|
|
917
|
+
withToken
|
|
918
|
+
);
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
// services/supplier.service.ts
|
|
922
|
+
var SupplierService = class extends RequestBase {
|
|
923
|
+
constructor(context) {
|
|
924
|
+
const prefixService = `/provider`;
|
|
925
|
+
super(context, prefixService);
|
|
926
|
+
this.context = context;
|
|
927
|
+
}
|
|
928
|
+
context;
|
|
929
|
+
/**
|
|
930
|
+
* Get game categories by supplier.
|
|
931
|
+
*
|
|
932
|
+
* @param supplier Represents the value of the supplier.
|
|
933
|
+
* @param options Represent Value options.
|
|
934
|
+
* @param withToken Is fetch with session.
|
|
935
|
+
* @returns These returns values unknown.
|
|
936
|
+
*/
|
|
937
|
+
getGameCategoriesBySupplier = async (supplier, options = {}, withToken = false) => this.getBase(
|
|
938
|
+
`/${supplier}/categories`,
|
|
939
|
+
options,
|
|
940
|
+
withToken
|
|
941
|
+
);
|
|
942
|
+
/**
|
|
943
|
+
* Get game categories by supplier.
|
|
944
|
+
*
|
|
945
|
+
* @param supplier Represents the value of the supplier.
|
|
946
|
+
* @param options Represent Value options.
|
|
947
|
+
* @returns These returns values unknown.
|
|
948
|
+
*/
|
|
949
|
+
getGameCategoriesBySupplierServer = async (supplier, options = {}) => {
|
|
950
|
+
const supplierSlug = supplier.trim().toLowerCase();
|
|
951
|
+
return this.requestBase(
|
|
952
|
+
`/provider/${encodeURIComponent(supplierSlug)}/categories`,
|
|
953
|
+
options
|
|
954
|
+
);
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
// services/verify.service.ts
|
|
959
|
+
var VerifyService = class extends RequestBase {
|
|
960
|
+
constructor(context) {
|
|
961
|
+
const prefixService = `/verify/player`;
|
|
962
|
+
super(context, prefixService);
|
|
963
|
+
this.context = context;
|
|
964
|
+
}
|
|
965
|
+
context;
|
|
966
|
+
/**
|
|
967
|
+
* Verify identity document.
|
|
968
|
+
*
|
|
969
|
+
* @param document - Identity document string.
|
|
970
|
+
* @param serial - Serial number.
|
|
971
|
+
* @param options - Represent value options.
|
|
972
|
+
* @returns These returns values unknown.
|
|
973
|
+
*/
|
|
974
|
+
verifyIdentityDocument = (document, serial, options = {}) => document && this.getBase(
|
|
975
|
+
`/document/${document}/skin/${this.context.skin}/verify?serial=${serial}`,
|
|
976
|
+
options
|
|
977
|
+
);
|
|
978
|
+
/**
|
|
979
|
+
* Verify player phone number.
|
|
980
|
+
*
|
|
981
|
+
* @param data - The data to be verified.
|
|
982
|
+
* @returns These returns values unknown.
|
|
983
|
+
*/
|
|
984
|
+
verifyPlayerPhone = (data) => this.requestBase(`/verify/player/phone`, {
|
|
985
|
+
method: "POST",
|
|
986
|
+
body: JSON.stringify(data),
|
|
987
|
+
headers: headersApplicationJson
|
|
988
|
+
});
|
|
989
|
+
/**
|
|
990
|
+
* Verify player email.
|
|
991
|
+
*
|
|
992
|
+
* @param code Code to verify the email.
|
|
993
|
+
* @returns These returns values unknown.
|
|
994
|
+
*/
|
|
995
|
+
verifyPlayerEmail = (code) => this.getBase(
|
|
996
|
+
`/auth/email/code/${code}`,
|
|
997
|
+
{},
|
|
998
|
+
true
|
|
999
|
+
);
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1002
|
+
// services/form.services.ts
|
|
1003
|
+
var FormService = class extends RequestBase {
|
|
1004
|
+
constructor(context) {
|
|
1005
|
+
const prefixService = `/form`;
|
|
1006
|
+
super(context, prefixService);
|
|
1007
|
+
this.context = context;
|
|
1008
|
+
}
|
|
1009
|
+
context;
|
|
1010
|
+
/**
|
|
1011
|
+
* This method sends contact form.
|
|
1012
|
+
*
|
|
1013
|
+
* @param data - Represent value data.
|
|
1014
|
+
* @returns These returns values unknown.
|
|
1015
|
+
*/
|
|
1016
|
+
postSendContactForm = (data) => this.postBase("/contact/create", {
|
|
1017
|
+
body: JSON.stringify({
|
|
1018
|
+
...data,
|
|
1019
|
+
skin: this.context.skin
|
|
1020
|
+
}),
|
|
1021
|
+
headers: headersApplicationJson
|
|
1022
|
+
});
|
|
1023
|
+
/**
|
|
1024
|
+
* This method sends deposit form.
|
|
1025
|
+
*
|
|
1026
|
+
* @param data - Represent value data.
|
|
1027
|
+
* @returns These returns values unknown.
|
|
1028
|
+
*/
|
|
1029
|
+
postSupportDepositForm = (data) => this.postBase("/deposit", { body: data }, true);
|
|
1030
|
+
/**
|
|
1031
|
+
* This method sends sport claim form.
|
|
1032
|
+
*
|
|
1033
|
+
* @param data - Represent value data.
|
|
1034
|
+
* @returns These returns values unknown.
|
|
1035
|
+
*/
|
|
1036
|
+
postSendSportClaimForm = (data) => this.postBase(
|
|
1037
|
+
"/support/sport",
|
|
1038
|
+
{
|
|
1039
|
+
body: JSON.stringify(data),
|
|
1040
|
+
headers: headersApplicationJson
|
|
1041
|
+
},
|
|
1042
|
+
true
|
|
1043
|
+
);
|
|
1044
|
+
/**
|
|
1045
|
+
* This method sends sport claim form.
|
|
1046
|
+
*
|
|
1047
|
+
* @param data - Represent value data.
|
|
1048
|
+
* @returns These returns values unknown.
|
|
1049
|
+
*/
|
|
1050
|
+
postSendCasinoClaimForm = (data) => this.postBase(
|
|
1051
|
+
"/support",
|
|
1052
|
+
{
|
|
1053
|
+
body: JSON.stringify(data),
|
|
1054
|
+
headers: headersApplicationJson
|
|
1055
|
+
},
|
|
1056
|
+
true
|
|
1057
|
+
);
|
|
1058
|
+
/**
|
|
1059
|
+
* This method sends update data form.
|
|
1060
|
+
*
|
|
1061
|
+
* @param data - Represent value data.
|
|
1062
|
+
* @returns These returns values unknown.
|
|
1063
|
+
*/
|
|
1064
|
+
postSendUpdateDataSupport = (data) => this.postBase(
|
|
1065
|
+
"/personal-data",
|
|
1066
|
+
{
|
|
1067
|
+
body: data
|
|
1068
|
+
},
|
|
1069
|
+
true
|
|
1070
|
+
);
|
|
1071
|
+
/**
|
|
1072
|
+
* This method sends unblock account support form.
|
|
1073
|
+
*
|
|
1074
|
+
* @param data - Represent value data.
|
|
1075
|
+
* @returns These returns values unknown.
|
|
1076
|
+
*/
|
|
1077
|
+
postSendAccountClosureSupport = (data) => {
|
|
1078
|
+
data.append("skin", this.context.skin);
|
|
1079
|
+
return this.postBase("/unlock", {
|
|
1080
|
+
body: data
|
|
1081
|
+
});
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
// services/self-exclusion.services.ts
|
|
1086
|
+
var SelfExclusionService = class extends RequestBase {
|
|
1087
|
+
constructor(context) {
|
|
1088
|
+
const prefixService = "/player/self-exclusion";
|
|
1089
|
+
super(context, prefixService);
|
|
1090
|
+
this.context = context;
|
|
1091
|
+
}
|
|
1092
|
+
context;
|
|
1093
|
+
/**
|
|
1094
|
+
* Post update or create self exclusion by category.
|
|
1095
|
+
*
|
|
1096
|
+
* @param data - PlayerCreateSelfExclusionByCategoryDataType.
|
|
1097
|
+
* @returns These returns values unknown.
|
|
1098
|
+
*/
|
|
1099
|
+
postCreateSelfExclusionByCategory = async (data) => this.postBase(
|
|
1100
|
+
"/category/create",
|
|
1101
|
+
{
|
|
1102
|
+
headers: headersApplicationJson,
|
|
1103
|
+
body: JSON.stringify(data)
|
|
1104
|
+
},
|
|
1105
|
+
true
|
|
1106
|
+
);
|
|
1107
|
+
/**
|
|
1108
|
+
* Post update or create self exclusion by provider.
|
|
1109
|
+
*
|
|
1110
|
+
* @param data - PlayerCreateSelfExclusionByProviderDataType.
|
|
1111
|
+
* @returns These returns values unknown.
|
|
1112
|
+
*/
|
|
1113
|
+
postCreateSelfExclusionByProvider = async (data) => this.postBase(
|
|
1114
|
+
"/provider/create",
|
|
1115
|
+
{
|
|
1116
|
+
headers: headersApplicationJson,
|
|
1117
|
+
body: JSON.stringify(data)
|
|
1118
|
+
},
|
|
1119
|
+
true
|
|
1120
|
+
);
|
|
1121
|
+
/**
|
|
1122
|
+
* Post create self exclusion revocation request.
|
|
1123
|
+
*
|
|
1124
|
+
* @param data - PlayerCreateSelfExclusionRevocationRequestDataType.
|
|
1125
|
+
* @returns These returns values unknown.
|
|
1126
|
+
*/
|
|
1127
|
+
postCreateSelfExclusionRevocationRequest = async (data) => this.postBase(
|
|
1128
|
+
"/revocation-request",
|
|
1129
|
+
{
|
|
1130
|
+
headers: headersApplicationJson,
|
|
1131
|
+
body: JSON.stringify(data)
|
|
1132
|
+
},
|
|
1133
|
+
true
|
|
1134
|
+
);
|
|
1135
|
+
/**
|
|
1136
|
+
* Post create self exclusion for account closure.
|
|
1137
|
+
*
|
|
1138
|
+
* @param data - PlayerCreateSelfExclusionAccountClosureDataType.
|
|
1139
|
+
* @returns These returns values unknown.
|
|
1140
|
+
*/
|
|
1141
|
+
postCreateSelfExclusionAccountClosure = async (data) => this.postBase(
|
|
1142
|
+
"/account-closure/create",
|
|
1143
|
+
{
|
|
1144
|
+
headers: headersApplicationJson,
|
|
1145
|
+
body: JSON.stringify(data)
|
|
1146
|
+
},
|
|
1147
|
+
true
|
|
1148
|
+
);
|
|
1149
|
+
/**
|
|
1150
|
+
* Post create self exclusion for total.
|
|
1151
|
+
*
|
|
1152
|
+
* @param data - PlayerCreateSelfExclusionTotalDataType.
|
|
1153
|
+
* @returns These returns values unknown.
|
|
1154
|
+
*/
|
|
1155
|
+
postCreateSelfExclusionTotal = async (data) => this.postBase(
|
|
1156
|
+
"/total/create",
|
|
1157
|
+
{
|
|
1158
|
+
headers: headersApplicationJson,
|
|
1159
|
+
body: JSON.stringify(data)
|
|
1160
|
+
},
|
|
1161
|
+
true
|
|
1162
|
+
);
|
|
1163
|
+
/**
|
|
1164
|
+
* Get self exclusion status.
|
|
1165
|
+
*
|
|
1166
|
+
* @returns These returns values unknown.
|
|
1167
|
+
*/
|
|
1168
|
+
getSelfExclusionStatus = async () => this.getBase("/active", {}, true);
|
|
1169
|
+
/**
|
|
1170
|
+
* Get self exclusion status.
|
|
1171
|
+
*
|
|
1172
|
+
* @returns These returns values unknown.
|
|
1173
|
+
*/
|
|
1174
|
+
getSelfExclusionRevocationRequestStatus = async () => this.getBase(
|
|
1175
|
+
"/revocation-request/block",
|
|
1176
|
+
{},
|
|
1177
|
+
true
|
|
1178
|
+
);
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
// types/tournament.interface.ts
|
|
1182
|
+
var TournamentCurrentStatus = /* @__PURE__ */ ((TournamentCurrentStatus2) => {
|
|
1183
|
+
TournamentCurrentStatus2["IN_GAME"] = "EN JUEGO";
|
|
1184
|
+
TournamentCurrentStatus2["EXPIRED"] = "EXPIRADO";
|
|
1185
|
+
TournamentCurrentStatus2["BEGIN"] = "POR EMPEZAR";
|
|
1186
|
+
TournamentCurrentStatus2["INACTIVE"] = "INACTIVE";
|
|
1187
|
+
TournamentCurrentStatus2["DEFAULT"] = "DEFAULT";
|
|
1188
|
+
return TournamentCurrentStatus2;
|
|
1189
|
+
})(TournamentCurrentStatus || {});
|
|
1190
|
+
|
|
1191
|
+
// types/player-session.interface.ts
|
|
1192
|
+
var AccessFlowControllerTypeEnum = /* @__PURE__ */ ((AccessFlowControllerTypeEnum2) => {
|
|
1193
|
+
AccessFlowControllerTypeEnum2["BLOCK_ACCOUNT"] = "BLOCK_ACCOUNT";
|
|
1194
|
+
AccessFlowControllerTypeEnum2["TEMPORAL_BLOCK"] = "TEMPORAL_BLOCK";
|
|
1195
|
+
AccessFlowControllerTypeEnum2["AGE_RESTRICTION"] = "AGE_RESTRICTION";
|
|
1196
|
+
AccessFlowControllerTypeEnum2["SAME_SKIN_FOUND"] = "SAME_SKIN_FOUND";
|
|
1197
|
+
AccessFlowControllerTypeEnum2["EXIST_OTHER_SKIN"] = "EXIST_OTHER_SKIN";
|
|
1198
|
+
AccessFlowControllerTypeEnum2["RESTRICTED_BLACKLIST"] = "RESTRICTED_BLACKLIST";
|
|
1199
|
+
AccessFlowControllerTypeEnum2["INCOMPLETE_REGISTRATION"] = "INCOMPLETE_REGISTRATION";
|
|
1200
|
+
AccessFlowControllerTypeEnum2["ACCOUNT_PENDING_SMS_VERIFICATION"] = "ACCOUNT_PENDING_SMS_VERIFICATION";
|
|
1201
|
+
AccessFlowControllerTypeEnum2["DOCUMENT_IP_BLOCK"] = "DOCUMENT_IP_BLOCK";
|
|
1202
|
+
AccessFlowControllerTypeEnum2["PROVIDER_ERROR"] = "PROVIDER_ERROR";
|
|
1203
|
+
AccessFlowControllerTypeEnum2["DOCUMENT_HARD_BLOCK"] = "DOCUMENT_HARD_BLOCK";
|
|
1204
|
+
AccessFlowControllerTypeEnum2["DOCUMENT_SERIAL_BLOCK"] = "DOCUMENT_SERIAL_BLOCK";
|
|
1205
|
+
AccessFlowControllerTypeEnum2["DOCUMENT_SERIAL_WARNING"] = "DOCUMENT_SERIAL_WARNING";
|
|
1206
|
+
AccessFlowControllerTypeEnum2["PLAYER_SMS_CODE_BLOCK"] = "PLAYER_SMS_CODE_BLOCK";
|
|
1207
|
+
AccessFlowControllerTypeEnum2["PLAYER_SMS_CODE_INVALID"] = "PLAYER_SMS_CODE_INVALID";
|
|
1208
|
+
AccessFlowControllerTypeEnum2["PLAYER_SMS_CODE_WARNING"] = "PLAYER_SMS_CODE_WARNING";
|
|
1209
|
+
AccessFlowControllerTypeEnum2["PLAYER_SMS_CODE_HARD_BLOCK"] = "PLAYER_SMS_CODE_HARD_BLOCK";
|
|
1210
|
+
AccessFlowControllerTypeEnum2["PLAYER_SMS_CODE_HARD_WARNING"] = "PLAYER_SMS_CODE_HARD_WARNING";
|
|
1211
|
+
return AccessFlowControllerTypeEnum2;
|
|
1212
|
+
})(AccessFlowControllerTypeEnum || {});
|
|
1213
|
+
var AccessFlowControllerFromOriginEnum = /* @__PURE__ */ ((AccessFlowControllerFromOriginEnum2) => {
|
|
1214
|
+
AccessFlowControllerFromOriginEnum2["LOGIN"] = "LOGIN";
|
|
1215
|
+
AccessFlowControllerFromOriginEnum2["REGISTER"] = "REGISTER";
|
|
1216
|
+
AccessFlowControllerFromOriginEnum2["VALIDATE_DOCUMENT"] = "VALIDATE_DOCUMENT";
|
|
1217
|
+
AccessFlowControllerFromOriginEnum2["VALIDATE_DOCUMENT_BONUS"] = "VALIDATE_DOCUMENT_BONUS";
|
|
1218
|
+
return AccessFlowControllerFromOriginEnum2;
|
|
1219
|
+
})(AccessFlowControllerFromOriginEnum || {});
|
|
1220
|
+
|
|
1221
|
+
// types/enums/menu-status.enum.ts
|
|
1222
|
+
var MenuStatusType = /* @__PURE__ */ ((MenuStatusType2) => {
|
|
1223
|
+
MenuStatusType2["WITH_WITHOUT_SESSION"] = "WITH_WITHOUT_SESSION";
|
|
1224
|
+
MenuStatusType2["WITH_SESSION"] = "WITH_SESSION";
|
|
1225
|
+
MenuStatusType2["WITHOUT_SESSION"] = "WITHOUT_SESSION";
|
|
1226
|
+
return MenuStatusType2;
|
|
1227
|
+
})(MenuStatusType || {});
|
|
1228
|
+
|
|
1229
|
+
// types/player-bonus-activate.interface.ts
|
|
1230
|
+
var PromotionTypeEnum = /* @__PURE__ */ ((PromotionTypeEnum2) => {
|
|
1231
|
+
PromotionTypeEnum2["CASINO"] = "CASINO";
|
|
1232
|
+
PromotionTypeEnum2["SPORTS"] = "SPORTS";
|
|
1233
|
+
return PromotionTypeEnum2;
|
|
1234
|
+
})(PromotionTypeEnum || {});
|
|
1235
|
+
|
|
1236
|
+
// types/session-report.interface.ts
|
|
1237
|
+
var PlayerSessionDeviceEnum = /* @__PURE__ */ ((PlayerSessionDeviceEnum2) => {
|
|
1238
|
+
PlayerSessionDeviceEnum2["PC"] = "PC";
|
|
1239
|
+
PlayerSessionDeviceEnum2["MOBILE"] = "MOBILE";
|
|
1240
|
+
PlayerSessionDeviceEnum2["TABLET"] = "TABLET";
|
|
1241
|
+
return PlayerSessionDeviceEnum2;
|
|
1242
|
+
})(PlayerSessionDeviceEnum || {});
|
|
1243
|
+
var PlayerSessionStatusEnum = /* @__PURE__ */ ((PlayerSessionStatusEnum2) => {
|
|
1244
|
+
PlayerSessionStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
1245
|
+
PlayerSessionStatusEnum2["TIMEOUT"] = "TIMEOUT";
|
|
1246
|
+
PlayerSessionStatusEnum2["CLOSED"] = "CLOSED";
|
|
1247
|
+
return PlayerSessionStatusEnum2;
|
|
1248
|
+
})(PlayerSessionStatusEnum || {});
|
|
1249
|
+
|
|
1250
|
+
// types/payment-create.interface.ts
|
|
1251
|
+
var SelfLimitationAlertKey = /* @__PURE__ */ ((SelfLimitationAlertKey2) => {
|
|
1252
|
+
SelfLimitationAlertKey2["FULL_LIMIT"] = "FULL_LIMIT";
|
|
1253
|
+
SelfLimitationAlertKey2["PARTIAL_LIMIT"] = "PARTIAL_LIMIT";
|
|
1254
|
+
return SelfLimitationAlertKey2;
|
|
1255
|
+
})(SelfLimitationAlertKey || {});
|
|
1256
|
+
|
|
1257
|
+
// types/payment-details.interface.ts
|
|
1258
|
+
var DepositStatusKey = /* @__PURE__ */ ((DepositStatusKey2) => {
|
|
1259
|
+
DepositStatusKey2["WAITING_RESPONSE"] = "WAITING_RESPONSE";
|
|
1260
|
+
DepositStatusKey2["CANCELED"] = "CANCELED";
|
|
1261
|
+
DepositStatusKey2["FAILED"] = "FAILED";
|
|
1262
|
+
DepositStatusKey2["PAID"] = "PAID";
|
|
1263
|
+
DepositStatusKey2["PENDING"] = "PENDING";
|
|
1264
|
+
DepositStatusKey2["ERROR"] = "ERROR";
|
|
1265
|
+
return DepositStatusKey2;
|
|
1266
|
+
})(DepositStatusKey || {});
|
|
1267
|
+
|
|
1268
|
+
// types/transactions-details.interface.ts
|
|
1269
|
+
var TransactionDetailsKey = /* @__PURE__ */ ((TransactionDetailsKey2) => {
|
|
1270
|
+
TransactionDetailsKey2["MANUAL_CHARGE"] = "MANUAL_CHARGE";
|
|
1271
|
+
TransactionDetailsKey2["DEPOSIT_APPROVED"] = "DEPOSIT_APPROVED";
|
|
1272
|
+
TransactionDetailsKey2["DEPOSIT_IN_PROCESS"] = "DEPOSIT_IN_PROCESS";
|
|
1273
|
+
TransactionDetailsKey2["DEPOSIT_CANCELLED"] = "DEPOSIT_CANCELLED";
|
|
1274
|
+
TransactionDetailsKey2["DEPOSIT_FAILED"] = "DEPOSIT_FAILED";
|
|
1275
|
+
TransactionDetailsKey2["WITHDRAWAL"] = "WITHDRAWAL";
|
|
1276
|
+
TransactionDetailsKey2["MANUAL_WITHDRAWAL"] = "MANUAL_WITHDRAWAL";
|
|
1277
|
+
return TransactionDetailsKey2;
|
|
1278
|
+
})(TransactionDetailsKey || {});
|
|
1279
|
+
var TransactionWithdrawalStatus = /* @__PURE__ */ ((TransactionWithdrawalStatus2) => {
|
|
1280
|
+
TransactionWithdrawalStatus2["PENDING"] = "PENDING";
|
|
1281
|
+
TransactionWithdrawalStatus2["REJECTED"] = "REJECTED";
|
|
1282
|
+
TransactionWithdrawalStatus2["PROCESSED"] = "PROCESSED";
|
|
1283
|
+
return TransactionWithdrawalStatus2;
|
|
1284
|
+
})(TransactionWithdrawalStatus || {});
|
|
1285
|
+
var DepositManualButtonKey = /* @__PURE__ */ ((DepositManualButtonKey2) => {
|
|
1286
|
+
DepositManualButtonKey2["WITHDRAWAL"] = "WITHDRAWAL";
|
|
1287
|
+
DepositManualButtonKey2["BONUS"] = "BONUS";
|
|
1288
|
+
DepositManualButtonKey2["NORMAL"] = "NORMAL";
|
|
1289
|
+
return DepositManualButtonKey2;
|
|
1290
|
+
})(DepositManualButtonKey || {});
|
|
1291
|
+
|
|
1292
|
+
// types/player-two-factor-authentication-methods.interface.ts
|
|
1293
|
+
var TWO_FACTOR_AUTHENTICATION_METHODS_ENUM = /* @__PURE__ */ ((TWO_FACTOR_AUTHENTICATION_METHODS_ENUM2) => {
|
|
1294
|
+
TWO_FACTOR_AUTHENTICATION_METHODS_ENUM2["SMS"] = "sms";
|
|
1295
|
+
TWO_FACTOR_AUTHENTICATION_METHODS_ENUM2["EMAIL"] = "email";
|
|
1296
|
+
return TWO_FACTOR_AUTHENTICATION_METHODS_ENUM2;
|
|
1297
|
+
})(TWO_FACTOR_AUTHENTICATION_METHODS_ENUM || {});
|
|
1298
|
+
|
|
1299
|
+
// types/player-two-factor-code-data.interface.ts
|
|
1300
|
+
var TWO_FACTOR_AUTHENTICATION_BLOCKED_ENUM = /* @__PURE__ */ ((TWO_FACTOR_AUTHENTICATION_BLOCKED_ENUM2) => {
|
|
1301
|
+
TWO_FACTOR_AUTHENTICATION_BLOCKED_ENUM2["REQUIRE_2FA"] = "REQUIRE_2FA";
|
|
1302
|
+
TWO_FACTOR_AUTHENTICATION_BLOCKED_ENUM2["TOTAL_BLOCK"] = "TOTAL_BLOCK";
|
|
1303
|
+
TWO_FACTOR_AUTHENTICATION_BLOCKED_ENUM2["CODE_BLOCK_ATTEMPTS"] = "CODE_BLOCK_ATTEMPTS";
|
|
1304
|
+
return TWO_FACTOR_AUTHENTICATION_BLOCKED_ENUM2;
|
|
1305
|
+
})(TWO_FACTOR_AUTHENTICATION_BLOCKED_ENUM || {});
|
|
1306
|
+
|
|
1307
|
+
// types/player-transactions.interface.ts
|
|
1308
|
+
var PlayerTransactionFlagEnum = /* @__PURE__ */ ((PlayerTransactionFlagEnum2) => {
|
|
1309
|
+
PlayerTransactionFlagEnum2["RED"] = "RED";
|
|
1310
|
+
PlayerTransactionFlagEnum2["GRAY"] = "GRAY";
|
|
1311
|
+
PlayerTransactionFlagEnum2["GREEN"] = "GREEN";
|
|
1312
|
+
return PlayerTransactionFlagEnum2;
|
|
1313
|
+
})(PlayerTransactionFlagEnum || {});
|
|
1314
|
+
var PlayerTransactionStatusEnum = /* @__PURE__ */ ((PlayerTransactionStatusEnum2) => {
|
|
1315
|
+
PlayerTransactionStatusEnum2["IN_PROCESS"] = "IN_PROCESS";
|
|
1316
|
+
PlayerTransactionStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
1317
|
+
PlayerTransactionStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
1318
|
+
PlayerTransactionStatusEnum2["NOT_COMPLETED"] = "NOT_COMPLETED";
|
|
1319
|
+
PlayerTransactionStatusEnum2["UNKNOWN"] = "UNKNOWN";
|
|
1320
|
+
return PlayerTransactionStatusEnum2;
|
|
1321
|
+
})(PlayerTransactionStatusEnum || {});
|
|
1322
|
+
var PlayerTransactionTypeEnum = /* @__PURE__ */ ((PlayerTransactionTypeEnum2) => {
|
|
1323
|
+
PlayerTransactionTypeEnum2["DEPOSIT"] = "Dep\xF3sito";
|
|
1324
|
+
PlayerTransactionTypeEnum2["WITHDRAWAL"] = "Retiro";
|
|
1325
|
+
PlayerTransactionTypeEnum2["DEPOSIT_MANUAL"] = "Carga manual";
|
|
1326
|
+
PlayerTransactionTypeEnum2["WITHDRAWAL_MANUAL"] = "Retiro manual";
|
|
1327
|
+
return PlayerTransactionTypeEnum2;
|
|
1328
|
+
})(PlayerTransactionTypeEnum || {});
|
|
1329
|
+
var PlayerTransactionTypeFilterEnum = /* @__PURE__ */ ((PlayerTransactionTypeFilterEnum2) => {
|
|
1330
|
+
PlayerTransactionTypeFilterEnum2["DEPOSIT"] = "DEPOSIT";
|
|
1331
|
+
PlayerTransactionTypeFilterEnum2["WITHDRAWAL"] = "WITHDRAWAL";
|
|
1332
|
+
return PlayerTransactionTypeFilterEnum2;
|
|
1333
|
+
})(PlayerTransactionTypeFilterEnum || {});
|
|
1334
|
+
|
|
1335
|
+
// types/player-self-limitation-info.interface.ts
|
|
1336
|
+
var SelfLimitationEnum = /* @__PURE__ */ ((SelfLimitationEnum2) => {
|
|
1337
|
+
SelfLimitationEnum2["DEPOSIT"] = "deposit";
|
|
1338
|
+
SelfLimitationEnum2["BET"] = "bet";
|
|
1339
|
+
SelfLimitationEnum2["SESSION"] = "session";
|
|
1340
|
+
return SelfLimitationEnum2;
|
|
1341
|
+
})(SelfLimitationEnum || {});
|
|
1342
|
+
var TypeSelfLimitationEnum = /* @__PURE__ */ ((TypeSelfLimitationEnum2) => {
|
|
1343
|
+
TypeSelfLimitationEnum2["DAILY"] = "daily";
|
|
1344
|
+
TypeSelfLimitationEnum2["WEEKLY"] = "weekly";
|
|
1345
|
+
TypeSelfLimitationEnum2["MONTHLY"] = "monthly";
|
|
1346
|
+
return TypeSelfLimitationEnum2;
|
|
1347
|
+
})(TypeSelfLimitationEnum || {});
|
|
1348
|
+
var SelfLimitationInfoResumeTypeEnum = /* @__PURE__ */ ((SelfLimitationInfoResumeTypeEnum2) => {
|
|
1349
|
+
SelfLimitationInfoResumeTypeEnum2["DEPOSIT"] = "depositSelfLimitationResume";
|
|
1350
|
+
SelfLimitationInfoResumeTypeEnum2["BET"] = "betSelfLimitationResume";
|
|
1351
|
+
SelfLimitationInfoResumeTypeEnum2["SESSION"] = "sessionSelfLimitationResume";
|
|
1352
|
+
return SelfLimitationInfoResumeTypeEnum2;
|
|
1353
|
+
})(SelfLimitationInfoResumeTypeEnum || {});
|
|
1354
|
+
|
|
1355
|
+
// types/player-self-limitation-cancel.interface.ts
|
|
1356
|
+
var SelfLimitationCancelEnum = /* @__PURE__ */ ((SelfLimitationCancelEnum2) => {
|
|
1357
|
+
SelfLimitationCancelEnum2["DAILY"] = "daily";
|
|
1358
|
+
SelfLimitationCancelEnum2["WEEKLY"] = "weekly";
|
|
1359
|
+
SelfLimitationCancelEnum2["MONTHLY"] = "monthly";
|
|
1360
|
+
return SelfLimitationCancelEnum2;
|
|
1361
|
+
})(SelfLimitationCancelEnum || {});
|
|
1362
|
+
|
|
1363
|
+
// types/player-self-limitation-info-data.interface.ts
|
|
1364
|
+
var SelfLimitationProgressBarStateEnum = /* @__PURE__ */ ((SelfLimitationProgressBarStateEnum2) => {
|
|
1365
|
+
SelfLimitationProgressBarStateEnum2["HIGH_USAGE"] = "HIGH_USAGE";
|
|
1366
|
+
SelfLimitationProgressBarStateEnum2["MEDIUM_USAGE"] = "MEDIUM_USAGE";
|
|
1367
|
+
SelfLimitationProgressBarStateEnum2["LOW_USAGE"] = "LOW_USAGE";
|
|
1368
|
+
return SelfLimitationProgressBarStateEnum2;
|
|
1369
|
+
})(SelfLimitationProgressBarStateEnum || {});
|
|
1370
|
+
var SelfLimitationStateEnum = /* @__PURE__ */ ((SelfLimitationStateEnum2) => {
|
|
1371
|
+
SelfLimitationStateEnum2["ACTIVE"] = "ACTIVE";
|
|
1372
|
+
SelfLimitationStateEnum2["REVISION"] = "REVISION";
|
|
1373
|
+
SelfLimitationStateEnum2["NOT_CREATED"] = "NOT_CREATED";
|
|
1374
|
+
return SelfLimitationStateEnum2;
|
|
1375
|
+
})(SelfLimitationStateEnum || {});
|
|
1376
|
+
var SelfLimitationRuleEnum = /* @__PURE__ */ ((SelfLimitationRuleEnum2) => {
|
|
1377
|
+
SelfLimitationRuleEnum2["DAILY"] = "amount_limit_day";
|
|
1378
|
+
SelfLimitationRuleEnum2["WEEKLY"] = "amount_limit_week";
|
|
1379
|
+
SelfLimitationRuleEnum2["MONTHLY"] = "amount_limit_month";
|
|
1380
|
+
return SelfLimitationRuleEnum2;
|
|
1381
|
+
})(SelfLimitationRuleEnum || {});
|
|
1382
|
+
|
|
1383
|
+
// types/player-create-self-exclusion-total-data.interface.ts
|
|
1384
|
+
var ChooseSeverityEnum = /* @__PURE__ */ ((ChooseSeverityEnum2) => {
|
|
1385
|
+
ChooseSeverityEnum2["ONE_DAY"] = "ONE_DAY";
|
|
1386
|
+
ChooseSeverityEnum2["ONE_WEEK"] = "ONE_WEEK";
|
|
1387
|
+
ChooseSeverityEnum2["ONE_MONTH"] = "ONE_MONTH";
|
|
1388
|
+
ChooseSeverityEnum2["THREE_MONTHS"] = "THREE_MONTHS";
|
|
1389
|
+
ChooseSeverityEnum2["SIX_MONTHS"] = "SIX_MONTHS";
|
|
1390
|
+
ChooseSeverityEnum2["ONE_YEAR"] = "ONE_YEAR";
|
|
1391
|
+
ChooseSeverityEnum2["TIME_UNLIMITED"] = "TIME_UNLIMITED";
|
|
1392
|
+
ChooseSeverityEnum2["TIME_CUSTOM"] = "TIME_CUSTOM";
|
|
1393
|
+
return ChooseSeverityEnum2;
|
|
1394
|
+
})(ChooseSeverityEnum || {});
|
|
1395
|
+
|
|
1396
|
+
// types/player-self-exclusion-status.interface.ts
|
|
1397
|
+
var SelfExclusionCardCurrentStatusEnum = /* @__PURE__ */ ((SelfExclusionCardCurrentStatusEnum2) => {
|
|
1398
|
+
SelfExclusionCardCurrentStatusEnum2["DEFAULT"] = "DEFAULT";
|
|
1399
|
+
SelfExclusionCardCurrentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
1400
|
+
SelfExclusionCardCurrentStatusEnum2["REVIEW"] = "REVIEW";
|
|
1401
|
+
SelfExclusionCardCurrentStatusEnum2["UPDATE"] = "UPDATE";
|
|
1402
|
+
return SelfExclusionCardCurrentStatusEnum2;
|
|
1403
|
+
})(SelfExclusionCardCurrentStatusEnum || {});
|
|
1404
|
+
|
|
1405
|
+
// types/player-sportbook-transactions-report.interface.ts
|
|
1406
|
+
var PlayerSportsbookTransactionsDetailsStatus = /* @__PURE__ */ ((PlayerSportsbookTransactionsDetailsStatus2) => {
|
|
1407
|
+
PlayerSportsbookTransactionsDetailsStatus2["WIN"] = "WIN";
|
|
1408
|
+
PlayerSportsbookTransactionsDetailsStatus2["LOSE"] = "LOSE";
|
|
1409
|
+
PlayerSportsbookTransactionsDetailsStatus2["PREPAID"] = "CANCELLED";
|
|
1410
|
+
PlayerSportsbookTransactionsDetailsStatus2["OPEN_BET"] = "OPEN";
|
|
1411
|
+
return PlayerSportsbookTransactionsDetailsStatus2;
|
|
1412
|
+
})(PlayerSportsbookTransactionsDetailsStatus || {});
|
|
1413
|
+
var PlayerSportsbookTransactionsDetailsType = /* @__PURE__ */ ((PlayerSportsbookTransactionsDetailsType2) => {
|
|
1414
|
+
PlayerSportsbookTransactionsDetailsType2["SINGLE"] = "SINGLE";
|
|
1415
|
+
PlayerSportsbookTransactionsDetailsType2["MULTIPLE"] = "MULTIPLE";
|
|
1416
|
+
return PlayerSportsbookTransactionsDetailsType2;
|
|
1417
|
+
})(PlayerSportsbookTransactionsDetailsType || {});
|
|
1418
|
+
|
|
1419
|
+
// types/bonus-status-available-data.interface.ts
|
|
1420
|
+
var BonusStatusAvailableEnum = /* @__PURE__ */ ((BonusStatusAvailableEnum2) => {
|
|
1421
|
+
BonusStatusAvailableEnum2["SHOW_BONUS"] = "SHOW_BONUS";
|
|
1422
|
+
BonusStatusAvailableEnum2["SHOW_PLAYS"] = "SHOW_PLAYS";
|
|
1423
|
+
return BonusStatusAvailableEnum2;
|
|
1424
|
+
})(BonusStatusAvailableEnum || {});
|
|
1425
|
+
var BonusStatusAvailableFlagEnum = /* @__PURE__ */ ((BonusStatusAvailableFlagEnum2) => {
|
|
1426
|
+
BonusStatusAvailableFlagEnum2["ACTIVE"] = "ACTIVE";
|
|
1427
|
+
BonusStatusAvailableFlagEnum2["AVAILABLE"] = "AVAILABLE";
|
|
1428
|
+
BonusStatusAvailableFlagEnum2["TO_RELEASE"] = "TO_RELEASE";
|
|
1429
|
+
return BonusStatusAvailableFlagEnum2;
|
|
1430
|
+
})(BonusStatusAvailableFlagEnum || {});
|
|
1431
|
+
|
|
1432
|
+
// types/bonus-status-finalized-data.interface.ts
|
|
1433
|
+
var BonusFinalizedTypeFlagEnum = /* @__PURE__ */ ((BonusFinalizedTypeFlagEnum2) => {
|
|
1434
|
+
BonusFinalizedTypeFlagEnum2["CASH"] = "CASH";
|
|
1435
|
+
BonusFinalizedTypeFlagEnum2["WEEKLY"] = "WEEKLY";
|
|
1436
|
+
BonusFinalizedTypeFlagEnum2["CHARGE"] = "CHARGE";
|
|
1437
|
+
BonusFinalizedTypeFlagEnum2["WELCOME"] = "WELCOME";
|
|
1438
|
+
BonusFinalizedTypeFlagEnum2["WEEKEND"] = "WEEKEND";
|
|
1439
|
+
BonusFinalizedTypeFlagEnum2["BIRTHDAY"] = "BIRTHDAY";
|
|
1440
|
+
BonusFinalizedTypeFlagEnum2["FREE_SPIN"] = "FREE_SPIN";
|
|
1441
|
+
return BonusFinalizedTypeFlagEnum2;
|
|
1442
|
+
})(BonusFinalizedTypeFlagEnum || {});
|
|
1443
|
+
var BonusFinalizedStatusEnum = /* @__PURE__ */ ((BonusFinalizedStatusEnum2) => {
|
|
1444
|
+
BonusFinalizedStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
1445
|
+
BonusFinalizedStatusEnum2["CANCELED"] = "CANCELED";
|
|
1446
|
+
BonusFinalizedStatusEnum2["DECLINED"] = "DECLINED";
|
|
1447
|
+
BonusFinalizedStatusEnum2["COMPLETED_WITH_PROFIT"] = "COMPLETED_WITH_PROFIT";
|
|
1448
|
+
BonusFinalizedStatusEnum2["COMPLETED_WITHOUT_PROFIT"] = "COMPLETED_WITHOUT_PROFIT";
|
|
1449
|
+
return BonusFinalizedStatusEnum2;
|
|
1450
|
+
})(BonusFinalizedStatusEnum || {});
|
|
1451
|
+
|
|
1452
|
+
// types/bonus-status-promotion-data.interface.ts
|
|
1453
|
+
var BonusParticipationButtonNum = /* @__PURE__ */ ((BonusParticipationButtonNum2) => {
|
|
1454
|
+
BonusParticipationButtonNum2["DEPOSIT"] = "DEPOSIT";
|
|
1455
|
+
BonusParticipationButtonNum2["PROGRESS"] = "PROGRESS";
|
|
1456
|
+
BonusParticipationButtonNum2["REQUIREMENTS"] = "REQUIREMENTS";
|
|
1457
|
+
return BonusParticipationButtonNum2;
|
|
1458
|
+
})(BonusParticipationButtonNum || {});
|
|
1459
|
+
var BonusParticipationStatusEnum = /* @__PURE__ */ ((BonusParticipationStatusEnum2) => {
|
|
1460
|
+
BonusParticipationStatusEnum2["NOT_COMPLY"] = "NOT_COMPLY";
|
|
1461
|
+
BonusParticipationStatusEnum2["PARTICIPATING"] = "PARTICIPATING";
|
|
1462
|
+
BonusParticipationStatusEnum2["PENDING_DEPOSIT"] = "PENDING_DEPOSIT";
|
|
1463
|
+
return BonusParticipationStatusEnum2;
|
|
1464
|
+
})(BonusParticipationStatusEnum || {});
|
|
1465
|
+
var BonusPromotionCodeEnum = /* @__PURE__ */ ((BonusPromotionCodeEnum2) => {
|
|
1466
|
+
BonusPromotionCodeEnum2["NWB"] = "NWB";
|
|
1467
|
+
BonusPromotionCodeEnum2["CBF"] = "CBF";
|
|
1468
|
+
BonusPromotionCodeEnum2["CBS"] = "CBS";
|
|
1469
|
+
BonusPromotionCodeEnum2["CBT"] = "CBT";
|
|
1470
|
+
BonusPromotionCodeEnum2["BSM"] = "BSM";
|
|
1471
|
+
BonusPromotionCodeEnum2["BSE"] = "BSE";
|
|
1472
|
+
BonusPromotionCodeEnum2["BFS"] = "BFS";
|
|
1473
|
+
BonusPromotionCodeEnum2["BGF"] = "BGF";
|
|
1474
|
+
return BonusPromotionCodeEnum2;
|
|
1475
|
+
})(BonusPromotionCodeEnum || {});
|
|
1476
|
+
|
|
1477
|
+
// types/player-request-withdrawal-pending-tracking.interface.ts
|
|
1478
|
+
var WithdrawalStatusEnum = /* @__PURE__ */ ((WithdrawalStatusEnum2) => {
|
|
1479
|
+
WithdrawalStatusEnum2["RECEIVED"] = "RECEIVED";
|
|
1480
|
+
WithdrawalStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
1481
|
+
WithdrawalStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
1482
|
+
WithdrawalStatusEnum2["SUCCESSFUL"] = "SUCCESSFUL";
|
|
1483
|
+
WithdrawalStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
1484
|
+
WithdrawalStatusEnum2["NOT_COMPLETED"] = "NOT_COMPLETED";
|
|
1485
|
+
return WithdrawalStatusEnum2;
|
|
1486
|
+
})(WithdrawalStatusEnum || {});
|
|
1487
|
+
|
|
1488
|
+
// services/self-limitation.services.ts
|
|
1489
|
+
var SelfLimitationService = class extends RequestBase {
|
|
1490
|
+
constructor(context) {
|
|
1491
|
+
const prefixService = `/player/self-limitation`;
|
|
1492
|
+
super(context, prefixService);
|
|
1493
|
+
this.context = context;
|
|
1494
|
+
}
|
|
1495
|
+
context;
|
|
1496
|
+
/**
|
|
1497
|
+
* Post update or create self limitation by session.
|
|
1498
|
+
*
|
|
1499
|
+
* @param data - PlayerCreateOrUpdateSelfLimitationBySessionDataType.
|
|
1500
|
+
* @returns These returns values unknown.
|
|
1501
|
+
*/
|
|
1502
|
+
postUpdateOrCreateSelfLimitationBySession = async (data) => this.postBase(
|
|
1503
|
+
"/session/updateOrCreate",
|
|
1504
|
+
{
|
|
1505
|
+
headers: headersApplicationJson,
|
|
1506
|
+
body: JSON.stringify(data)
|
|
1507
|
+
},
|
|
1508
|
+
true
|
|
1509
|
+
);
|
|
1510
|
+
/**
|
|
1511
|
+
* Post update or create self limitation by deposit.
|
|
1512
|
+
*
|
|
1513
|
+
* @param data - PlayerCreateOrUpdateSelfLimitationBySessionDataType.
|
|
1514
|
+
* @returns These returns values unknown.
|
|
1515
|
+
*/
|
|
1516
|
+
postUpdateOrCreateSelfLimitationByDeposit = async (data) => this.postBase(
|
|
1517
|
+
"/deposit/updateOrCreate",
|
|
1518
|
+
{
|
|
1519
|
+
headers: headersApplicationJson,
|
|
1520
|
+
body: JSON.stringify(data)
|
|
1521
|
+
},
|
|
1522
|
+
true
|
|
1523
|
+
);
|
|
1524
|
+
/**
|
|
1525
|
+
* Post update or create self limitation by bet.
|
|
1526
|
+
*
|
|
1527
|
+
* @param data - PlayerCreateOrUpdateSelfLimitationByBetDataType.
|
|
1528
|
+
* @returns These returns values unknown.
|
|
1529
|
+
*/
|
|
1530
|
+
postUpdateOrCreateSelfLimitationByBet = async (data) => this.postBase(
|
|
1531
|
+
"/bet/updateOrCreate",
|
|
1532
|
+
{
|
|
1533
|
+
headers: headersApplicationJson,
|
|
1534
|
+
body: JSON.stringify(data)
|
|
1535
|
+
},
|
|
1536
|
+
true
|
|
1537
|
+
);
|
|
1538
|
+
/**
|
|
1539
|
+
* Get self limitation bet report.
|
|
1540
|
+
*
|
|
1541
|
+
* @param query - QueryType.
|
|
1542
|
+
* @returns These returns values unknown.
|
|
1543
|
+
*/
|
|
1544
|
+
getSelfLimitationBetReport = async (query = {}) => {
|
|
1545
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
1546
|
+
return this.getBase(
|
|
1547
|
+
`/bet/report?${handleQuery}`,
|
|
1548
|
+
{},
|
|
1549
|
+
true
|
|
1550
|
+
);
|
|
1551
|
+
};
|
|
1552
|
+
/**
|
|
1553
|
+
* Get self limitation deposit report.
|
|
1554
|
+
*
|
|
1555
|
+
* @param query - QueryType.
|
|
1556
|
+
* @returns These returns values unknown.
|
|
1557
|
+
*/
|
|
1558
|
+
getSelfLimitationDepositReport = async (query = {}) => {
|
|
1559
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
1560
|
+
return this.getBase(
|
|
1561
|
+
`/deposit/report?${handleQuery}`,
|
|
1562
|
+
{},
|
|
1563
|
+
true
|
|
1564
|
+
);
|
|
1565
|
+
};
|
|
1566
|
+
/**
|
|
1567
|
+
* Fetches the self-limitation information for a given path (deposit, betting, or session).
|
|
1568
|
+
*
|
|
1569
|
+
* @param nameSelfLimitation - API path representing the limitation type. Defaults to deposit.
|
|
1570
|
+
* @returns A promise with the player's self-limitation information.
|
|
1571
|
+
*/
|
|
1572
|
+
getSelfLimitationInfo = async (nameSelfLimitation = "deposit" /* DEPOSIT */) => this.getBase(
|
|
1573
|
+
`/${nameSelfLimitation}/info`,
|
|
1574
|
+
{},
|
|
1575
|
+
true
|
|
1576
|
+
);
|
|
1577
|
+
/**
|
|
1578
|
+
* Sends a request to cancel a pending or active self-limitation.
|
|
1579
|
+
*
|
|
1580
|
+
* @param selfLimitation - The self-limitation path (deposit, betting, session).
|
|
1581
|
+
* @param typeSelfLimitation - The type of self-limitation to cancel.
|
|
1582
|
+
* @returns A promise with the server response about the cancellation status.
|
|
1583
|
+
*/
|
|
1584
|
+
postSelfLimitationCancel = async (selfLimitation, typeSelfLimitation) => {
|
|
1585
|
+
return this.postBase(
|
|
1586
|
+
`/${selfLimitation}/cancel`,
|
|
1587
|
+
{
|
|
1588
|
+
headers: headersApplicationJson,
|
|
1589
|
+
...typeSelfLimitation && {
|
|
1590
|
+
body: JSON.stringify({ type: typeSelfLimitation })
|
|
1591
|
+
}
|
|
1592
|
+
},
|
|
1593
|
+
true
|
|
1594
|
+
);
|
|
1595
|
+
};
|
|
1596
|
+
/**
|
|
1597
|
+
* Creates or updates a self-limitation configuration for the given path.
|
|
1598
|
+
*
|
|
1599
|
+
* @param nameSelfLimitation - The self-limitation category (deposit, betting, session).
|
|
1600
|
+
* @param data - Payload with the new or updated self-limitation data.
|
|
1601
|
+
* @returns A promise with the operation result.
|
|
1602
|
+
*/
|
|
1603
|
+
postSelfLimitationUpdateOrCreate = async (nameSelfLimitation = "deposit" /* DEPOSIT */, data) => this.postBase(
|
|
1604
|
+
`/${nameSelfLimitation}/updateOrCreate`,
|
|
1605
|
+
{
|
|
1606
|
+
headers: headersApplicationJson,
|
|
1607
|
+
body: JSON.stringify(data)
|
|
1608
|
+
},
|
|
1609
|
+
true
|
|
1610
|
+
);
|
|
1611
|
+
/**
|
|
1612
|
+
* Retrieves the self-limitation report for the specified path.
|
|
1613
|
+
*
|
|
1614
|
+
* @param query - Optional filters or query parameters for the report.
|
|
1615
|
+
* @returns A promise with the limitation report data.
|
|
1616
|
+
*/
|
|
1617
|
+
getSelfLimitationReport = async (query = {}) => {
|
|
1618
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
1619
|
+
return this.getBase(
|
|
1620
|
+
`/report?${handleQuery}`,
|
|
1621
|
+
{},
|
|
1622
|
+
true
|
|
1623
|
+
);
|
|
1624
|
+
};
|
|
1625
|
+
/**
|
|
1626
|
+
* Retrieves the self-limitation report for the specified path.
|
|
1627
|
+
*
|
|
1628
|
+
* @returns A promise with the limitation report data.
|
|
1629
|
+
*/
|
|
1630
|
+
getSelfLimitationTypes = async () => {
|
|
1631
|
+
return this.getBase(`/types`, {}, true);
|
|
1632
|
+
};
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
// services/bank.service.ts
|
|
1636
|
+
var BankService = class extends RequestBase {
|
|
1637
|
+
constructor(context) {
|
|
1638
|
+
const prefixService = `/player/bank-accounts`;
|
|
1639
|
+
super(context, prefixService);
|
|
1640
|
+
this.context = context;
|
|
1641
|
+
}
|
|
1642
|
+
context;
|
|
1643
|
+
/**
|
|
1644
|
+
* Get banks list.
|
|
1645
|
+
*
|
|
1646
|
+
* @returns These returns a list with banks.
|
|
1647
|
+
*/
|
|
1648
|
+
getBankList = async () => this.getBase("/bank", {}, true);
|
|
1649
|
+
/**
|
|
1650
|
+
* Get bank account type list.
|
|
1651
|
+
*
|
|
1652
|
+
* @returns These returns a list with bank account types.
|
|
1653
|
+
*/
|
|
1654
|
+
getBankAccountTypeList = async () => this.getBase("/account-type", {}, true);
|
|
1655
|
+
/**
|
|
1656
|
+
* Post add bank account.
|
|
1657
|
+
*
|
|
1658
|
+
* @param data - PlayerBankAccountDataType.
|
|
1659
|
+
* @returns These returns values unknown.
|
|
1660
|
+
*/
|
|
1661
|
+
postAddBankAccount = async (data) => this.postBase(
|
|
1662
|
+
"/create",
|
|
1663
|
+
{
|
|
1664
|
+
headers: headersApplicationJson,
|
|
1665
|
+
body: JSON.stringify(data)
|
|
1666
|
+
},
|
|
1667
|
+
true
|
|
1668
|
+
);
|
|
1669
|
+
/**
|
|
1670
|
+
* Put edit bank account.
|
|
1671
|
+
*
|
|
1672
|
+
* @param data - BankEditBankAccountDataType.
|
|
1673
|
+
* @returns These returns values unknown.
|
|
1674
|
+
*/
|
|
1675
|
+
putEditBankAccount = async (data) => this.putBase(
|
|
1676
|
+
"/edit",
|
|
1677
|
+
{
|
|
1678
|
+
headers: headersApplicationJson,
|
|
1679
|
+
body: JSON.stringify(data)
|
|
1680
|
+
},
|
|
1681
|
+
true
|
|
1682
|
+
);
|
|
1683
|
+
/**
|
|
1684
|
+
* Delete bank account.
|
|
1685
|
+
*
|
|
1686
|
+
* @param data - BankDeleteBankAccountDataType.
|
|
1687
|
+
* @returns These returns values unknown.
|
|
1688
|
+
*/
|
|
1689
|
+
deleteBankAccount = async (data) => this.deleteBase(
|
|
1690
|
+
"/delete",
|
|
1691
|
+
{
|
|
1692
|
+
headers: headersApplicationJson,
|
|
1693
|
+
body: JSON.stringify(data)
|
|
1694
|
+
},
|
|
1695
|
+
true
|
|
1696
|
+
);
|
|
1697
|
+
/**
|
|
1698
|
+
* Restore bank account.
|
|
1699
|
+
*
|
|
1700
|
+
* @param data - BankDeleteBankAccountDataType.
|
|
1701
|
+
* @returns These returns values unknown.
|
|
1702
|
+
*/
|
|
1703
|
+
restoreBankAccount = async (data) => this.postBase(
|
|
1704
|
+
"/restore",
|
|
1705
|
+
{
|
|
1706
|
+
headers: headersApplicationJson,
|
|
1707
|
+
body: JSON.stringify(data)
|
|
1708
|
+
},
|
|
1709
|
+
true
|
|
1710
|
+
);
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
// services/payment.service.ts
|
|
1714
|
+
var PaymentService = class extends RequestBase {
|
|
1715
|
+
constructor(context) {
|
|
1716
|
+
const prefixService = `/payment`;
|
|
1717
|
+
super(context, prefixService);
|
|
1718
|
+
this.context = context;
|
|
1719
|
+
}
|
|
1720
|
+
context;
|
|
1721
|
+
/**
|
|
1722
|
+
* Post create a new payment.
|
|
1723
|
+
*
|
|
1724
|
+
* @param data - PaymentCreateDataType.
|
|
1725
|
+
* @returns These returns values unknown.
|
|
1726
|
+
*/
|
|
1727
|
+
postCreatePayment = async (data) => this.postBase(
|
|
1728
|
+
"/create",
|
|
1729
|
+
{
|
|
1730
|
+
headers: headersApplicationJson,
|
|
1731
|
+
body: JSON.stringify(data)
|
|
1732
|
+
},
|
|
1733
|
+
true
|
|
1734
|
+
);
|
|
1735
|
+
/**
|
|
1736
|
+
* Get payment method list.
|
|
1737
|
+
*
|
|
1738
|
+
* @param options - Represent value options.
|
|
1739
|
+
* @returns These returns a list with payment methods.
|
|
1740
|
+
*/
|
|
1741
|
+
getPaymentMethods = async (options = {}) => this.getBase("/methods", options, true);
|
|
1742
|
+
/**
|
|
1743
|
+
* Post Confirm payment provider transaction.
|
|
1744
|
+
*
|
|
1745
|
+
* @param provider - Payment provider.
|
|
1746
|
+
* @param modality - Payment modality.
|
|
1747
|
+
* @param data - PaymentCreateDataType.
|
|
1748
|
+
* @returns These returns values unknown.
|
|
1749
|
+
*/
|
|
1750
|
+
postConfirmPayment = async (provider, modality, data) => this.postBase(
|
|
1751
|
+
`/confirm/provider/${provider}/modality/${modality}`,
|
|
1752
|
+
{
|
|
1753
|
+
headers: headersApplicationJson,
|
|
1754
|
+
body: JSON.stringify(data)
|
|
1755
|
+
},
|
|
1756
|
+
false
|
|
1757
|
+
);
|
|
1758
|
+
/**
|
|
1759
|
+
* Get payment details from provider.
|
|
1760
|
+
*
|
|
1761
|
+
* @param payment_id - Payment id.
|
|
1762
|
+
* @param options - Represent value options.
|
|
1763
|
+
* @returns These returns a list with payment methods.
|
|
1764
|
+
*/
|
|
1765
|
+
getPaymentDetails = async (payment_id, options = {}) => payment_id && this.getBase(
|
|
1766
|
+
`/details/payment-id/${payment_id}`,
|
|
1767
|
+
options,
|
|
1768
|
+
false
|
|
1769
|
+
);
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
// services/transactions.service.ts
|
|
1773
|
+
var TransactionsService = class extends RequestBase {
|
|
1774
|
+
constructor(context) {
|
|
1775
|
+
const prefixService = `/player/plays`;
|
|
1776
|
+
super(context, prefixService);
|
|
1777
|
+
this.context = context;
|
|
1778
|
+
}
|
|
1779
|
+
context;
|
|
1780
|
+
/**
|
|
1781
|
+
* Get Bets report.
|
|
1782
|
+
*
|
|
1783
|
+
* @param query - QueryType.
|
|
1784
|
+
* @returns These returns values unknown.
|
|
1785
|
+
*/
|
|
1786
|
+
getBetsReport = async (query = {}) => {
|
|
1787
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
1788
|
+
return this.getBase(
|
|
1789
|
+
`/report?${handleQuery}`,
|
|
1790
|
+
{},
|
|
1791
|
+
true
|
|
1792
|
+
);
|
|
1793
|
+
};
|
|
1794
|
+
/**
|
|
1795
|
+
* Get Bets types.
|
|
1796
|
+
*
|
|
1797
|
+
* @returns These returns values unknown.
|
|
1798
|
+
*/
|
|
1799
|
+
getBetsTypes = async () => this.getBase(`/type`, {}, true);
|
|
1800
|
+
/**
|
|
1801
|
+
* Get Bets types list.
|
|
1802
|
+
*
|
|
1803
|
+
* @returns These returns values unknown.
|
|
1804
|
+
*/
|
|
1805
|
+
getBetsTypesList = async () => this.getBase(`/types/list`, {}, true);
|
|
1806
|
+
/**
|
|
1807
|
+
* Download Bets report.
|
|
1808
|
+
*
|
|
1809
|
+
* @param query Represent query url.
|
|
1810
|
+
* @returns These returns values unknown.
|
|
1811
|
+
*/
|
|
1812
|
+
downloadBetsReport = async (query = {}) => {
|
|
1813
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
1814
|
+
return this.getBase(
|
|
1815
|
+
`/report/download?${handleQuery}`,
|
|
1816
|
+
{},
|
|
1817
|
+
true
|
|
1818
|
+
);
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
// services/identity-biometry.service.ts
|
|
1823
|
+
var IdentityBiometryService = class extends RequestBase {
|
|
1824
|
+
constructor(context) {
|
|
1825
|
+
const prefixService = `/player`;
|
|
1826
|
+
super(context, prefixService);
|
|
1827
|
+
this.context = context;
|
|
1828
|
+
}
|
|
1829
|
+
context;
|
|
1830
|
+
/**
|
|
1831
|
+
* Get Biometric Verify Status Of Player.
|
|
1832
|
+
*
|
|
1833
|
+
* @returns The player's biometric verification status.
|
|
1834
|
+
*/
|
|
1835
|
+
getBiometryVerifyStatusOfPlayer = async () => this.getBase(
|
|
1836
|
+
"/identity-biometry/verify/type/required",
|
|
1837
|
+
{},
|
|
1838
|
+
true
|
|
1839
|
+
);
|
|
1840
|
+
/**
|
|
1841
|
+
* Get Verify Validate Document.
|
|
1842
|
+
*
|
|
1843
|
+
* @returns The player's validate document status.
|
|
1844
|
+
*/
|
|
1845
|
+
getVerifyValidateDocument = async () => this.getBase(
|
|
1846
|
+
"/verify/serial",
|
|
1847
|
+
{},
|
|
1848
|
+
true
|
|
1849
|
+
);
|
|
1850
|
+
/**
|
|
1851
|
+
* Get Verify Identity Biometry For Recharge.
|
|
1852
|
+
*
|
|
1853
|
+
* @param amount Amount.
|
|
1854
|
+
* @returns The provider url to verify biometric identity.
|
|
1855
|
+
*/
|
|
1856
|
+
getVerifyIdentityBiometryForRecharge = async (amount) => this.getBase(
|
|
1857
|
+
`/identity-biometry/verify/type/recharge/amount/${amount}`,
|
|
1858
|
+
{},
|
|
1859
|
+
true
|
|
1860
|
+
);
|
|
1861
|
+
/**
|
|
1862
|
+
* Get Verify Identity Biometry For Withdrawal.
|
|
1863
|
+
*
|
|
1864
|
+
* @param amount Amount.
|
|
1865
|
+
* @returns The provider url to verify biometric identity.
|
|
1866
|
+
*/
|
|
1867
|
+
getVerifyIdentityBiometryForWithdrawal = async (amount) => this.getBase(
|
|
1868
|
+
`/identity-biometry/verify/type/withdrawal/amount/${amount}`,
|
|
1869
|
+
{},
|
|
1870
|
+
true
|
|
1871
|
+
);
|
|
1872
|
+
/**
|
|
1873
|
+
* Create identity biometry.
|
|
1874
|
+
*
|
|
1875
|
+
* @param data - PlayerCreateIdentifyBiometryDataType.
|
|
1876
|
+
* @returns The provider url to verify biometric identity.
|
|
1877
|
+
*/
|
|
1878
|
+
postCreateIdentityBiometry = async (data) => this.postBase(
|
|
1879
|
+
"/identity-biometry/create",
|
|
1880
|
+
{
|
|
1881
|
+
headers: headersApplicationJson,
|
|
1882
|
+
body: JSON.stringify(data)
|
|
1883
|
+
},
|
|
1884
|
+
true
|
|
1885
|
+
);
|
|
1886
|
+
/**
|
|
1887
|
+
* Create identity biometry.
|
|
1888
|
+
*
|
|
1889
|
+
* @param data - PlayerCreateIdentifyBiometryDataType.
|
|
1890
|
+
* @returns The provider url to verify biometric identity.
|
|
1891
|
+
*/
|
|
1892
|
+
postConfirmIdentityBiometry = async (data) => this.postBase(
|
|
1893
|
+
"/identity-biometry/confirm",
|
|
1894
|
+
{
|
|
1895
|
+
headers: headersApplicationJson,
|
|
1896
|
+
body: JSON.stringify(data)
|
|
1897
|
+
},
|
|
1898
|
+
true
|
|
1899
|
+
);
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1902
|
+
// services/pep-verification.service.ts
|
|
1903
|
+
var PepVerificationService = class extends RequestBase {
|
|
1904
|
+
constructor(context) {
|
|
1905
|
+
const prefixService = `/player`;
|
|
1906
|
+
super(context, prefixService);
|
|
1907
|
+
this.context = context;
|
|
1908
|
+
}
|
|
1909
|
+
context;
|
|
1910
|
+
/**
|
|
1911
|
+
* Get Pep Verify Status Of Player.
|
|
1912
|
+
*
|
|
1913
|
+
* @returns The player's Pep check verification status.
|
|
1914
|
+
*/
|
|
1915
|
+
getPepVerificationStatusOfPlayer = async () => this.getBase("/check/pep", {}, true);
|
|
1916
|
+
/**
|
|
1917
|
+
* Get pep verification questions.
|
|
1918
|
+
*
|
|
1919
|
+
* @returns The player's pep verification questions.
|
|
1920
|
+
*/
|
|
1921
|
+
getPepVerificationQuestions = async () => this.getBase(
|
|
1922
|
+
"/check/pep/questions",
|
|
1923
|
+
{},
|
|
1924
|
+
true
|
|
1925
|
+
);
|
|
1926
|
+
/**
|
|
1927
|
+
* Post send pep verification.
|
|
1928
|
+
*
|
|
1929
|
+
* @param data Confirm questions player.
|
|
1930
|
+
* @returns Success save questions.
|
|
1931
|
+
*/
|
|
1932
|
+
postSendPepVerification = async (data) => this.postBase(
|
|
1933
|
+
"/check/pep",
|
|
1934
|
+
{
|
|
1935
|
+
body: JSON.stringify(data),
|
|
1936
|
+
headers: headersApplicationJson
|
|
1937
|
+
},
|
|
1938
|
+
true
|
|
1939
|
+
);
|
|
1940
|
+
};
|
|
1941
|
+
|
|
1942
|
+
// services/sports.service.ts
|
|
1943
|
+
var SportsService = class extends RequestBase {
|
|
1944
|
+
constructor(context) {
|
|
1945
|
+
const prefixService = "/sport";
|
|
1946
|
+
super(context, prefixService);
|
|
1947
|
+
this.context = context;
|
|
1948
|
+
}
|
|
1949
|
+
context;
|
|
1950
|
+
/**
|
|
1951
|
+
* Get player balance from server.
|
|
1952
|
+
*
|
|
1953
|
+
* @param token Represent value token.
|
|
1954
|
+
* @returns These returns values unknown.
|
|
1955
|
+
*/
|
|
1956
|
+
getPlayerBalanceFromFirstProvider = async (token) => this.requestBase(
|
|
1957
|
+
`/sport/first/refreshSession?operatorToken=${token}`,
|
|
1958
|
+
{
|
|
1959
|
+
method: "GET",
|
|
1960
|
+
headers: {
|
|
1961
|
+
"Content-Type": "application/json"
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
);
|
|
1965
|
+
/**
|
|
1966
|
+
* Asynchronously retrieves the sport first provider skin based on the current context's skin.
|
|
1967
|
+
*
|
|
1968
|
+
* @param withAuth Boolean.
|
|
1969
|
+
* @returns A promise that resolves with an array of GameCategoryType objects representing the first provider skin.
|
|
1970
|
+
*/
|
|
1971
|
+
getSportFirstProvider = async (withAuth = true) => this.getBase(
|
|
1972
|
+
`/first/skin/${this.context.skin}`,
|
|
1973
|
+
{},
|
|
1974
|
+
withAuth
|
|
1975
|
+
);
|
|
1976
|
+
/**
|
|
1977
|
+
* Download Bets report.
|
|
1978
|
+
*
|
|
1979
|
+
* @param query Represent query url.
|
|
1980
|
+
* @returns These returns values unknown.
|
|
1981
|
+
*/
|
|
1982
|
+
downloadBetsSportsReport = async (query = {}) => {
|
|
1983
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
1984
|
+
return this.getBase(
|
|
1985
|
+
`/report/download?${handleQuery}`,
|
|
1986
|
+
{},
|
|
1987
|
+
true
|
|
1988
|
+
);
|
|
1989
|
+
};
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
// services/other.service.ts
|
|
1993
|
+
var OtherService = class extends RequestBase {
|
|
1994
|
+
constructor(context) {
|
|
1995
|
+
const prefixService = "";
|
|
1996
|
+
super(context, prefixService);
|
|
1997
|
+
this.context = context;
|
|
1998
|
+
}
|
|
1999
|
+
context;
|
|
2000
|
+
/**
|
|
2001
|
+
* Get Skin Countries.
|
|
2002
|
+
*
|
|
2003
|
+
* @param options Represent value options.
|
|
2004
|
+
* @returns These returns values unknown.
|
|
2005
|
+
*/
|
|
2006
|
+
getSkinCountries = (options = {}) => this.getBase("/skin/country", options);
|
|
2007
|
+
};
|
|
2008
|
+
|
|
2009
|
+
// services/bonus.service.ts
|
|
2010
|
+
var BonusService = class extends RequestBase {
|
|
2011
|
+
constructor(context) {
|
|
2012
|
+
const prefixService = `/player/bonus`;
|
|
2013
|
+
super(context, prefixService);
|
|
2014
|
+
this.context = context;
|
|
2015
|
+
}
|
|
2016
|
+
context;
|
|
2017
|
+
/**
|
|
2018
|
+
* Get player bonus status list.
|
|
2019
|
+
*
|
|
2020
|
+
* @returns These returns values PlayerBonusStatusType.
|
|
2021
|
+
*/
|
|
2022
|
+
getPlayerBonusStatus = async () => this.getBase("/status/list", {}, true);
|
|
2023
|
+
/**
|
|
2024
|
+
* Get player mode bonus active.
|
|
2025
|
+
*
|
|
2026
|
+
* @returns These returns values PlayerDetailModeBonusActive.
|
|
2027
|
+
*/
|
|
2028
|
+
getPlayerDetailsModeBonusActive = async () => this.getBase("/active", {}, true);
|
|
2029
|
+
/**
|
|
2030
|
+
* Get player bonus providers list.
|
|
2031
|
+
*
|
|
2032
|
+
* @returns These returns values PlayerBonusProvidersDataType.
|
|
2033
|
+
*/
|
|
2034
|
+
getPlayerBonusProviders = async () => this.getBase("/providers", {}, true);
|
|
2035
|
+
/**
|
|
2036
|
+
* Get player bonus availables.
|
|
2037
|
+
*
|
|
2038
|
+
* @returns These returns values PlayerBonusAvailablesType.
|
|
2039
|
+
*/
|
|
2040
|
+
getPlayerBonusAvailable = async () => this.getBase("/availables", {}, true);
|
|
2041
|
+
/**
|
|
2042
|
+
* Get player bonus available count.
|
|
2043
|
+
*
|
|
2044
|
+
* @returns These returns values unknown.
|
|
2045
|
+
*/
|
|
2046
|
+
getPlayerBonusAvailableCount = async () => this.postBase(
|
|
2047
|
+
"/available/count",
|
|
2048
|
+
{},
|
|
2049
|
+
true
|
|
2050
|
+
);
|
|
2051
|
+
/**
|
|
2052
|
+
* Post bonus activate.
|
|
2053
|
+
*
|
|
2054
|
+
* @param bonusId - String.
|
|
2055
|
+
* @returns These returns values unknown.
|
|
2056
|
+
*/
|
|
2057
|
+
postPlayerBonusActivate = async (bonusId) => this.postBase(
|
|
2058
|
+
`/activate/bonus-id/${bonusId}`,
|
|
2059
|
+
{
|
|
2060
|
+
headers: headersApplicationJson
|
|
2061
|
+
},
|
|
2062
|
+
true
|
|
2063
|
+
);
|
|
2064
|
+
/**
|
|
2065
|
+
* Post bonus Give up.
|
|
2066
|
+
*
|
|
2067
|
+
* @param bonusId - String.
|
|
2068
|
+
* @returns These returns values unknown.
|
|
2069
|
+
*/
|
|
2070
|
+
postPlayerBonusGiveUp = async (bonusId) => this.postBase(
|
|
2071
|
+
`/give-up/bonus-id/${bonusId}`,
|
|
2072
|
+
{
|
|
2073
|
+
headers: headersApplicationJson
|
|
2074
|
+
},
|
|
2075
|
+
true
|
|
2076
|
+
);
|
|
2077
|
+
/**
|
|
2078
|
+
* Get bonus terms conditions.
|
|
2079
|
+
*
|
|
2080
|
+
* @param bonusId - String.
|
|
2081
|
+
* @returns These returns values unknown.
|
|
2082
|
+
*/
|
|
2083
|
+
getPlayerBonusTermsConditions = async (bonusId) => this.getBase(
|
|
2084
|
+
`/terms-conditions/bonus-id/${bonusId}`,
|
|
2085
|
+
{},
|
|
2086
|
+
true
|
|
2087
|
+
);
|
|
2088
|
+
/**
|
|
2089
|
+
* Get bonus check status.
|
|
2090
|
+
*
|
|
2091
|
+
* @param bonusId - String.
|
|
2092
|
+
* @returns These returns values unknown.
|
|
2093
|
+
*/
|
|
2094
|
+
getPlayerBonusCheckStatusId = async (bonusId) => this.getBase(
|
|
2095
|
+
`/check-status/bonus-id/${bonusId}`,
|
|
2096
|
+
{},
|
|
2097
|
+
true
|
|
2098
|
+
);
|
|
2099
|
+
/**
|
|
2100
|
+
* Get bonus games list.
|
|
2101
|
+
*
|
|
2102
|
+
* @param bonusId - String.
|
|
2103
|
+
* @param query - Object.
|
|
2104
|
+
* @param options - Object.
|
|
2105
|
+
* @returns These returns values unknown.
|
|
2106
|
+
*/
|
|
2107
|
+
getPlayerBonusGamesList = async (bonusId, query = {}, options = {}) => {
|
|
2108
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2109
|
+
return this.getBase(
|
|
2110
|
+
`/games/${bonusId}?${handleQuery}`,
|
|
2111
|
+
options,
|
|
2112
|
+
true
|
|
2113
|
+
);
|
|
2114
|
+
};
|
|
2115
|
+
/**
|
|
2116
|
+
* Get bonus report list.
|
|
2117
|
+
*
|
|
2118
|
+
* @param query - Object.
|
|
2119
|
+
* @param options - Object.
|
|
2120
|
+
* @returns These returns values unknown.
|
|
2121
|
+
*/
|
|
2122
|
+
getPlayerBonusReports = async (query = {}, options = {}) => {
|
|
2123
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2124
|
+
return this.getBase(
|
|
2125
|
+
`/report?${handleQuery}`,
|
|
2126
|
+
options,
|
|
2127
|
+
true
|
|
2128
|
+
);
|
|
2129
|
+
};
|
|
2130
|
+
/**
|
|
2131
|
+
* Get bonus status available report.
|
|
2132
|
+
*
|
|
2133
|
+
* @returns These returns values BonusStatusAvailableData.
|
|
2134
|
+
*/
|
|
2135
|
+
getBonusStatusAvailableReport = async () => this.getBase("/available/report", {}, true);
|
|
2136
|
+
/**
|
|
2137
|
+
* Get bonus status promotion available.
|
|
2138
|
+
*
|
|
2139
|
+
* @returns These returns values BonusStatusAvailableData.
|
|
2140
|
+
*/
|
|
2141
|
+
getBonusStatusPromotionAvailable = async () => this.getBase(
|
|
2142
|
+
"/promotions/available",
|
|
2143
|
+
{},
|
|
2144
|
+
true
|
|
2145
|
+
);
|
|
2146
|
+
/**
|
|
2147
|
+
* Get bonus status promotion available code.
|
|
2148
|
+
*
|
|
2149
|
+
* @returns These returns values BonusStatusPromotionData.
|
|
2150
|
+
*/
|
|
2151
|
+
getBonusStatusPromotionAvailableCode = async (code) => this.getBase(
|
|
2152
|
+
`/promotions/available/${code}`,
|
|
2153
|
+
{},
|
|
2154
|
+
true
|
|
2155
|
+
);
|
|
2156
|
+
/**
|
|
2157
|
+
* Get bonus status finish report.
|
|
2158
|
+
*
|
|
2159
|
+
* @returns These returns values BonusStatusFinalizedData.
|
|
2160
|
+
*/
|
|
2161
|
+
getBonusStatusFinishReport = async (query = {}, options = {}) => {
|
|
2162
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2163
|
+
return this.getBase(
|
|
2164
|
+
`/finish/report?${handleQuery}`,
|
|
2165
|
+
options,
|
|
2166
|
+
true
|
|
2167
|
+
);
|
|
2168
|
+
};
|
|
2169
|
+
/**
|
|
2170
|
+
* Get bonus status details.
|
|
2171
|
+
*
|
|
2172
|
+
* @returns These returns values BonusStatusDetailsDataType.
|
|
2173
|
+
*/
|
|
2174
|
+
getBonusStatusDetails = async (code, query = {}) => {
|
|
2175
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2176
|
+
return this.getBase(
|
|
2177
|
+
`/promotions/details/${code}?${handleQuery}`,
|
|
2178
|
+
{},
|
|
2179
|
+
true
|
|
2180
|
+
);
|
|
2181
|
+
};
|
|
2182
|
+
/**
|
|
2183
|
+
* Get bonus promotion reason.
|
|
2184
|
+
*
|
|
2185
|
+
* @returns These returns values BonusPromotionReasonDataType.
|
|
2186
|
+
*/
|
|
2187
|
+
getBonusPromotionReason = async (code) => this.getBase(
|
|
2188
|
+
`/promotion/reason/${code}`,
|
|
2189
|
+
{},
|
|
2190
|
+
true
|
|
2191
|
+
);
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
// services/onboarding.service.ts
|
|
2195
|
+
var OnboardingService = class extends RequestBase {
|
|
2196
|
+
constructor(context) {
|
|
2197
|
+
const prefixService = `/player/tutorial`;
|
|
2198
|
+
super(context, prefixService);
|
|
2199
|
+
this.context = context;
|
|
2200
|
+
}
|
|
2201
|
+
context;
|
|
2202
|
+
/**
|
|
2203
|
+
* Retrieves the onboarding code for a player.
|
|
2204
|
+
*
|
|
2205
|
+
* @param code - The unique key associated with the player's onboarding process.
|
|
2206
|
+
* @returns A promise that resolves with the onboarding code details.
|
|
2207
|
+
*/
|
|
2208
|
+
getPlayerOnboardingCode = async (code) => this.getBase(`/${code}`, {}, true);
|
|
2209
|
+
/**
|
|
2210
|
+
* Sends a POST request to the player onboarding endpoint with the specified code and data.
|
|
2211
|
+
*
|
|
2212
|
+
* @param code - The unique key identifying the player onboarding process.
|
|
2213
|
+
* @param data - The data required to create a player onboarding, adhering to the PlayerCreateOnboardingDataType.
|
|
2214
|
+
* @returns A promise resolving to the response of type PlayerCreateOnboardingType.
|
|
2215
|
+
*/
|
|
2216
|
+
postPlayerOnboardingCode = async (code, data) => this.postBase(
|
|
2217
|
+
`/${code}`,
|
|
2218
|
+
{
|
|
2219
|
+
body: JSON.stringify(data),
|
|
2220
|
+
headers: headersApplicationJson
|
|
2221
|
+
},
|
|
2222
|
+
true
|
|
2223
|
+
);
|
|
2224
|
+
};
|
|
2225
|
+
|
|
2226
|
+
// services/two-factor-authentication.service.ts
|
|
2227
|
+
var TwoFactorAuthenticationService = class extends RequestBase {
|
|
2228
|
+
constructor(context) {
|
|
2229
|
+
const prefixService = "/player/two-factor";
|
|
2230
|
+
super(context, prefixService);
|
|
2231
|
+
this.context = context;
|
|
2232
|
+
}
|
|
2233
|
+
context;
|
|
2234
|
+
/**
|
|
2235
|
+
* Get Two Factor Authentication Methods.
|
|
2236
|
+
*
|
|
2237
|
+
* @returns Retrieves available two-factor authentication methods for a player.
|
|
2238
|
+
*/
|
|
2239
|
+
getTwoFactorAuthenticationMethods = async () => this.getBase(
|
|
2240
|
+
"/methods",
|
|
2241
|
+
{},
|
|
2242
|
+
false
|
|
2243
|
+
);
|
|
2244
|
+
/**
|
|
2245
|
+
* Post Verifies Two Factor Authentication Code.
|
|
2246
|
+
*
|
|
2247
|
+
* @param data Represent the data to send in the body.
|
|
2248
|
+
* @returns These returns values PlayerTwoFactorAuthenticationVerifiesCodeType.
|
|
2249
|
+
*/
|
|
2250
|
+
verifiesTwoFactorAuthenticationCode = (data) => this.requestBase(
|
|
2251
|
+
"/player/two-factor/verify",
|
|
2252
|
+
{
|
|
2253
|
+
method: "POST",
|
|
2254
|
+
headers: headersApplicationJson,
|
|
2255
|
+
body: JSON.stringify({
|
|
2256
|
+
...data,
|
|
2257
|
+
skin: this.context.skin
|
|
2258
|
+
})
|
|
2259
|
+
}
|
|
2260
|
+
);
|
|
2261
|
+
/**
|
|
2262
|
+
* Post Send Two Factor Authentication Code.
|
|
2263
|
+
*
|
|
2264
|
+
* @param data Represent the data to send in the body.
|
|
2265
|
+
* @returns These returns values PlayerTwoFactorAuthenticationVerifiesCodeType.
|
|
2266
|
+
*/
|
|
2267
|
+
postSendTwoFactorAuthenticationCode = (data) => this.postBase(
|
|
2268
|
+
"",
|
|
2269
|
+
{
|
|
2270
|
+
headers: headersApplicationJson,
|
|
2271
|
+
body: JSON.stringify({
|
|
2272
|
+
...data,
|
|
2273
|
+
skin: this.context.skin
|
|
2274
|
+
})
|
|
2275
|
+
},
|
|
2276
|
+
false
|
|
2277
|
+
);
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2280
|
+
// services/skin-content.service.ts
|
|
2281
|
+
var SkinContentService = class extends RequestBase {
|
|
2282
|
+
constructor(context) {
|
|
2283
|
+
const { skin, skinContent } = context;
|
|
2284
|
+
const valueSkinContent = skinContent || skin;
|
|
2285
|
+
const prefixService = `/skin/${valueSkinContent}`;
|
|
2286
|
+
super(context, prefixService);
|
|
2287
|
+
this.context = context;
|
|
2288
|
+
}
|
|
2289
|
+
context;
|
|
2290
|
+
/**
|
|
2291
|
+
* Get all tournament by skin.
|
|
2292
|
+
*
|
|
2293
|
+
* @param options Represent value options.
|
|
2294
|
+
* @returns These returns values unknown.
|
|
2295
|
+
*/
|
|
2296
|
+
getTournamentsBySkinServer = (options = {}) => this.requestBase(
|
|
2297
|
+
`/skin/${this.getSkinContent()}/tournaments`,
|
|
2298
|
+
{
|
|
2299
|
+
...options,
|
|
2300
|
+
...{ ...this.getHeaders(options) },
|
|
2301
|
+
method: "POST"
|
|
2302
|
+
}
|
|
2303
|
+
);
|
|
2304
|
+
/**
|
|
2305
|
+
* Get skin content.
|
|
2306
|
+
*
|
|
2307
|
+
* @returns These returns values unknown.
|
|
2308
|
+
*/
|
|
2309
|
+
getSkinContent = () => {
|
|
2310
|
+
return this.context.skinContent || this.context.skin;
|
|
2311
|
+
};
|
|
2312
|
+
/**
|
|
2313
|
+
* Get all tournament by skin.
|
|
2314
|
+
*
|
|
2315
|
+
* @param options Represent value options.
|
|
2316
|
+
* @returns These returns values unknown.
|
|
2317
|
+
*/
|
|
2318
|
+
getTournamentsBySkin = (options = {}) => this.postBase("/tournaments", options);
|
|
2319
|
+
/**
|
|
2320
|
+
* Get tournament details by ID.
|
|
2321
|
+
*
|
|
2322
|
+
* @param tournamentId Represent tournament ID.
|
|
2323
|
+
* @param options Represent value options.
|
|
2324
|
+
* @returns These returns values unknown.
|
|
2325
|
+
*/
|
|
2326
|
+
getTournamentDetailsById = (tournamentId, options = {}) => this.getBase(
|
|
2327
|
+
`/tournaments/${tournamentId}`,
|
|
2328
|
+
options
|
|
2329
|
+
);
|
|
2330
|
+
/**
|
|
2331
|
+
* Get tournament details by ID.
|
|
2332
|
+
*
|
|
2333
|
+
* @param tournamentId Represent tournament ID.
|
|
2334
|
+
* @param options Represent value options.
|
|
2335
|
+
* @returns These returns values unknown.
|
|
2336
|
+
*/
|
|
2337
|
+
getTournamentDetailsByIdServer = (tournamentId, options = {}) => this.requestBase(
|
|
2338
|
+
`/skin/${this.getSkinContent()}/tournaments/${tournamentId}`,
|
|
2339
|
+
options
|
|
2340
|
+
);
|
|
2341
|
+
/**
|
|
2342
|
+
* Get menu by skin.
|
|
2343
|
+
*
|
|
2344
|
+
* @param options Represent value options.
|
|
2345
|
+
* @returns These returns values unknown.
|
|
2346
|
+
*/
|
|
2347
|
+
getMenuBySkin = (options = {}) => this.getBase("/menu", options);
|
|
2348
|
+
/**
|
|
2349
|
+
* Get menu by skin.
|
|
2350
|
+
*
|
|
2351
|
+
* @param options Represent value options.
|
|
2352
|
+
* @returns These returns values unknown.
|
|
2353
|
+
*/
|
|
2354
|
+
getMenuBySkinServer = () => this.requestBase(`/skin/${this.getSkinContent()}/menu`);
|
|
2355
|
+
/**
|
|
2356
|
+
* Get content top of skin.
|
|
2357
|
+
*
|
|
2358
|
+
* @param options Represent value options.
|
|
2359
|
+
* @returns These returns values unknown.
|
|
2360
|
+
*/
|
|
2361
|
+
getTopSectionSkin = (options = {}) => this.requestBase(
|
|
2362
|
+
`/skin/${this.getSkinContent()}/content/section/top`,
|
|
2363
|
+
options
|
|
2364
|
+
);
|
|
2365
|
+
/**
|
|
2366
|
+
* Get content middle of skin.
|
|
2367
|
+
*
|
|
2368
|
+
* @param options Represent value options.
|
|
2369
|
+
* @returns These returns values unknown.
|
|
2370
|
+
*/
|
|
2371
|
+
getMiddleSectionSkin = (options = {}) => this.requestBase(
|
|
2372
|
+
`/skin/${this.getSkinContent()}/content/section/middle`,
|
|
2373
|
+
options
|
|
2374
|
+
);
|
|
2375
|
+
/**
|
|
2376
|
+
* Get content bottom of skin.
|
|
2377
|
+
*
|
|
2378
|
+
* @param options Represent value options.
|
|
2379
|
+
* @returns These returns values unknown.
|
|
2380
|
+
*/
|
|
2381
|
+
getLowerSectionSkin = (options = {}) => this.requestBase(
|
|
2382
|
+
`/skin/${this.getSkinContent()}/content/section/lower`,
|
|
2383
|
+
options
|
|
2384
|
+
);
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
// services/player-session.service.ts
|
|
2388
|
+
var PlayerSessionService = class extends RequestBase {
|
|
2389
|
+
constructor(context) {
|
|
2390
|
+
const prefixService = `/player/session`;
|
|
2391
|
+
super(context, prefixService);
|
|
2392
|
+
this.context = context;
|
|
2393
|
+
}
|
|
2394
|
+
context;
|
|
2395
|
+
/**
|
|
2396
|
+
* Get menu by skin.
|
|
2397
|
+
*
|
|
2398
|
+
* @param data Represent value options.
|
|
2399
|
+
* @returns These returns values unknown.
|
|
2400
|
+
*/
|
|
2401
|
+
postSignIn = (data) => this.postBase("/create", {
|
|
2402
|
+
method: "POST",
|
|
2403
|
+
body: JSON.stringify(data),
|
|
2404
|
+
headers: { "Content-Type": "application/json" }
|
|
2405
|
+
});
|
|
2406
|
+
/**
|
|
2407
|
+
* Get Session SignOut.
|
|
2408
|
+
*
|
|
2409
|
+
* @param reason - String.
|
|
2410
|
+
* @returns These returns function to Sign Out.
|
|
2411
|
+
*/
|
|
2412
|
+
getSignOut = (reason = "Logout") => this.getBase(`/close?reason=${reason}`, {}, true);
|
|
2413
|
+
/**
|
|
2414
|
+
* Get Session refresh.
|
|
2415
|
+
*
|
|
2416
|
+
* @returns These returns function to Sign Out.
|
|
2417
|
+
*/
|
|
2418
|
+
getSessionRefresh = () => this.getBase("/refresh", {}, true);
|
|
2419
|
+
/**
|
|
2420
|
+
* Get Session Status.
|
|
2421
|
+
*
|
|
2422
|
+
* @returns These returns function status.
|
|
2423
|
+
*/
|
|
2424
|
+
getSessionStatus = () => this.getBase("/status", {}, true);
|
|
2425
|
+
/**
|
|
2426
|
+
* Get sessions report report.
|
|
2427
|
+
*
|
|
2428
|
+
* @param query - QueryType.
|
|
2429
|
+
* @returns These returns values unknown.
|
|
2430
|
+
*/
|
|
2431
|
+
getSessionsReport = async (query = {}) => {
|
|
2432
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2433
|
+
return this.getBase(
|
|
2434
|
+
`/report?${handleQuery}`,
|
|
2435
|
+
{},
|
|
2436
|
+
true
|
|
2437
|
+
);
|
|
2438
|
+
};
|
|
2439
|
+
/**
|
|
2440
|
+
* Get latest sessions.
|
|
2441
|
+
*
|
|
2442
|
+
* @returns These returns values unknown.
|
|
2443
|
+
*/
|
|
2444
|
+
getSessionLatest = () => this.getBase(`/latest`, {}, true);
|
|
2445
|
+
};
|
|
2446
|
+
|
|
2447
|
+
// services/player-notification.services.ts
|
|
2448
|
+
var PlayerNotificationService = class extends RequestBase {
|
|
2449
|
+
constructor(context) {
|
|
2450
|
+
const prefixService = `/player/notify`;
|
|
2451
|
+
super(context, prefixService);
|
|
2452
|
+
this.context = context;
|
|
2453
|
+
}
|
|
2454
|
+
context;
|
|
2455
|
+
/**
|
|
2456
|
+
* Get player unread notifications.
|
|
2457
|
+
*
|
|
2458
|
+
* @param options Represent value options.
|
|
2459
|
+
* @returns These returns values unknown.
|
|
2460
|
+
*/
|
|
2461
|
+
getPlayerUnreadNotifications = async (options = {}) => this.getBase(
|
|
2462
|
+
`/notread/count`,
|
|
2463
|
+
options,
|
|
2464
|
+
true
|
|
2465
|
+
);
|
|
2466
|
+
/**
|
|
2467
|
+
* Put mark as read notify.
|
|
2468
|
+
*
|
|
2469
|
+
* @param data - PlayerNotifyMarkAsReadDataType.
|
|
2470
|
+
* @returns These returns values unknown.
|
|
2471
|
+
*/
|
|
2472
|
+
putMarkAsReadNotify = async (data) => this.putBase(
|
|
2473
|
+
"/mark-as-read",
|
|
2474
|
+
{
|
|
2475
|
+
headers: headersApplicationJson,
|
|
2476
|
+
body: JSON.stringify(data)
|
|
2477
|
+
},
|
|
2478
|
+
true
|
|
2479
|
+
);
|
|
2480
|
+
/**
|
|
2481
|
+
* Put restore notify.
|
|
2482
|
+
*
|
|
2483
|
+
* @param data - PlayerNotifyRestoreDataType.
|
|
2484
|
+
* @returns These returns values unknown.
|
|
2485
|
+
*/
|
|
2486
|
+
putRestoreNotify = async (data) => this.putBase(
|
|
2487
|
+
"/restore",
|
|
2488
|
+
{
|
|
2489
|
+
headers: headersApplicationJson,
|
|
2490
|
+
body: JSON.stringify(data)
|
|
2491
|
+
},
|
|
2492
|
+
true
|
|
2493
|
+
);
|
|
2494
|
+
/**
|
|
2495
|
+
* Delete notify.
|
|
2496
|
+
*
|
|
2497
|
+
* @param data - PlayerNotifyDeleteDataType.
|
|
2498
|
+
* @returns These returns values unknown.
|
|
2499
|
+
*/
|
|
2500
|
+
deleteNotify = async (data) => this.deleteBase(
|
|
2501
|
+
"/delete",
|
|
2502
|
+
{
|
|
2503
|
+
headers: headersApplicationJson,
|
|
2504
|
+
body: JSON.stringify(data)
|
|
2505
|
+
},
|
|
2506
|
+
true
|
|
2507
|
+
);
|
|
2508
|
+
/**
|
|
2509
|
+
* Get player notifications.
|
|
2510
|
+
*
|
|
2511
|
+
* @param query - QueryType.
|
|
2512
|
+
* @param options - Represent value options.
|
|
2513
|
+
* @returns These returns a list with player notifications.
|
|
2514
|
+
*/
|
|
2515
|
+
getPlayerNotifications = async (query, options = {}) => {
|
|
2516
|
+
const { page, limit } = { page: 1, limit: 20, ...query };
|
|
2517
|
+
return this.getBase(
|
|
2518
|
+
`?page=${page}&limit=${limit}`,
|
|
2519
|
+
options,
|
|
2520
|
+
true
|
|
2521
|
+
);
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
|
|
2525
|
+
// services/player-report.service.ts
|
|
2526
|
+
var PlayerReportService = class extends RequestBase {
|
|
2527
|
+
constructor(context) {
|
|
2528
|
+
const prefixService = `/player`;
|
|
2529
|
+
super(context, prefixService);
|
|
2530
|
+
this.context = context;
|
|
2531
|
+
}
|
|
2532
|
+
context;
|
|
2533
|
+
/**
|
|
2534
|
+
* Get self exclusion report.
|
|
2535
|
+
*
|
|
2536
|
+
* @param query - QueryType.
|
|
2537
|
+
* @returns These returns values unknown.
|
|
2538
|
+
*/
|
|
2539
|
+
getSelfExclusionReport = async (query = {}) => {
|
|
2540
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2541
|
+
return this.getBase(
|
|
2542
|
+
`/self-exclusion/report?${handleQuery}`,
|
|
2543
|
+
{},
|
|
2544
|
+
true
|
|
2545
|
+
);
|
|
2546
|
+
};
|
|
2547
|
+
/**
|
|
2548
|
+
* Get self limitation Session report.
|
|
2549
|
+
*
|
|
2550
|
+
* @param query - QueryType.
|
|
2551
|
+
* @returns These returns values unknown.
|
|
2552
|
+
*/
|
|
2553
|
+
getSelfLimitationSessionReport = async (query = {}) => {
|
|
2554
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2555
|
+
return this.getBase(
|
|
2556
|
+
`/self-limitation/session/report?${handleQuery}`,
|
|
2557
|
+
{},
|
|
2558
|
+
true
|
|
2559
|
+
);
|
|
2560
|
+
};
|
|
2561
|
+
/**
|
|
2562
|
+
* Get bonus transactions report list.
|
|
2563
|
+
*
|
|
2564
|
+
* @param bonusId - String.
|
|
2565
|
+
* @param query - Object.
|
|
2566
|
+
* @param options - Object.
|
|
2567
|
+
* @returns These returns values unknown.
|
|
2568
|
+
*/
|
|
2569
|
+
getPlayerBonusTransactionsReport = async (bonusId, query = {}, options = {}) => {
|
|
2570
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2571
|
+
return this.getBase(
|
|
2572
|
+
`/plays/bonus-id/${bonusId}/report?${handleQuery}`,
|
|
2573
|
+
options,
|
|
2574
|
+
true
|
|
2575
|
+
);
|
|
2576
|
+
};
|
|
2577
|
+
/**
|
|
2578
|
+
* Get self limitation deposit report.
|
|
2579
|
+
*
|
|
2580
|
+
* @param query - QueryType.
|
|
2581
|
+
* @returns These returns values unknown.
|
|
2582
|
+
*/
|
|
2583
|
+
getSelfLimitationDepositReport = async (query = {}) => {
|
|
2584
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2585
|
+
return this.getBase(
|
|
2586
|
+
`/self-limitation/deposit/report?${handleQuery}`,
|
|
2587
|
+
{},
|
|
2588
|
+
true
|
|
2589
|
+
);
|
|
2590
|
+
};
|
|
2591
|
+
/**
|
|
2592
|
+
* Get transactions report.
|
|
2593
|
+
*
|
|
2594
|
+
* @param query - QueryType.
|
|
2595
|
+
* @returns These returns values unknown.
|
|
2596
|
+
*/
|
|
2597
|
+
getTransactionsReport = async (query = {}) => {
|
|
2598
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2599
|
+
return this.getBase(
|
|
2600
|
+
`/transactions/report?${handleQuery}`,
|
|
2601
|
+
{},
|
|
2602
|
+
true
|
|
2603
|
+
);
|
|
2604
|
+
};
|
|
2605
|
+
/**
|
|
2606
|
+
* Download transactions report.
|
|
2607
|
+
*
|
|
2608
|
+
* @param query Represent query url.
|
|
2609
|
+
* @returns These returns values unknown.
|
|
2610
|
+
*/
|
|
2611
|
+
transactionsDownloadReport = async (query = {}) => {
|
|
2612
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2613
|
+
return this.getBase(
|
|
2614
|
+
`/transactions/report/download?${handleQuery}`,
|
|
2615
|
+
{},
|
|
2616
|
+
true
|
|
2617
|
+
);
|
|
2618
|
+
};
|
|
2619
|
+
/**
|
|
2620
|
+
* Get transactions details report.
|
|
2621
|
+
*
|
|
2622
|
+
* @param query - QueryType.
|
|
2623
|
+
* @returns These returns values unknown.
|
|
2624
|
+
*/
|
|
2625
|
+
getTransactionsDetailsReport = async (query = {}) => {
|
|
2626
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2627
|
+
return this.getBase(
|
|
2628
|
+
`/transactions/details?${handleQuery}`,
|
|
2629
|
+
{},
|
|
2630
|
+
true
|
|
2631
|
+
);
|
|
2632
|
+
};
|
|
2633
|
+
/**
|
|
2634
|
+
* Get sportbook transactions report.
|
|
2635
|
+
*
|
|
2636
|
+
* @param query - QueryType.
|
|
2637
|
+
* @returns These returns values unknown.
|
|
2638
|
+
*/
|
|
2639
|
+
getSportBookTransactionsReport = async (query = {}) => {
|
|
2640
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2641
|
+
return this.getBase(
|
|
2642
|
+
`/sport/report?${handleQuery}`,
|
|
2643
|
+
{},
|
|
2644
|
+
true
|
|
2645
|
+
);
|
|
2646
|
+
};
|
|
2647
|
+
/**
|
|
2648
|
+
* Download Bets report.
|
|
2649
|
+
*
|
|
2650
|
+
* @param query Represent query url.
|
|
2651
|
+
* @returns These returns values unknown.
|
|
2652
|
+
*/
|
|
2653
|
+
downloadBetsSportsReport = async (query = {}) => {
|
|
2654
|
+
const handleQuery = new URLSearchParams(query).toString();
|
|
2655
|
+
return this.getBase(
|
|
2656
|
+
`/sport/report/download?${handleQuery}`,
|
|
2657
|
+
{},
|
|
2658
|
+
true
|
|
2659
|
+
);
|
|
2660
|
+
};
|
|
2661
|
+
/**
|
|
2662
|
+
* Get sportsbook transactions report.
|
|
2663
|
+
*
|
|
2664
|
+
* @returns These returns values unknown.
|
|
2665
|
+
*/
|
|
2666
|
+
getSportBookStatusTransactions = async () => {
|
|
2667
|
+
return this.getBase(
|
|
2668
|
+
`/plays/types/sports/list`,
|
|
2669
|
+
{},
|
|
2670
|
+
true
|
|
2671
|
+
);
|
|
2672
|
+
};
|
|
2673
|
+
/**
|
|
2674
|
+
* Get sportsbook transactions report.
|
|
2675
|
+
*
|
|
2676
|
+
* @param bet_transaction_id - String.
|
|
2677
|
+
* @returns These returns values unknown.
|
|
2678
|
+
*/
|
|
2679
|
+
getSportBookDetailsTransactions = async (bet_transaction_id) => this.getBase(
|
|
2680
|
+
`/sport/details?bet_transaction_id=${bet_transaction_id}`,
|
|
2681
|
+
{},
|
|
2682
|
+
true
|
|
2683
|
+
);
|
|
2684
|
+
};
|
|
2685
|
+
|
|
2686
|
+
// services/optix.service.ts
|
|
2687
|
+
var OptixService = class extends RequestBase {
|
|
2688
|
+
constructor(context) {
|
|
2689
|
+
const prefixService = `/optix`;
|
|
2690
|
+
super(context, prefixService);
|
|
2691
|
+
this.context = context;
|
|
2692
|
+
}
|
|
2693
|
+
context;
|
|
2694
|
+
/**
|
|
2695
|
+
* Get game by name and skin.
|
|
2696
|
+
*
|
|
2697
|
+
* @param name Game ID.
|
|
2698
|
+
* @param query QueryType.
|
|
2699
|
+
* @param options Represent value options.
|
|
2700
|
+
* @param withToken Is fetch with session.
|
|
2701
|
+
* @returns These returns values unknown.
|
|
2702
|
+
*/
|
|
2703
|
+
getGameByNameAndSkin = async (name, query, options = {}, withToken = false) => {
|
|
2704
|
+
if (!name) return null;
|
|
2705
|
+
const { page, limit } = { page: 1, limit: 20, ...query };
|
|
2706
|
+
return this.getBase(
|
|
2707
|
+
`/games/search/name/${name}/skin/${this.context.skin}?page=${page}&limit=${limit}`,
|
|
2708
|
+
options,
|
|
2709
|
+
withToken
|
|
2710
|
+
);
|
|
2711
|
+
};
|
|
2712
|
+
getLobbyOptixByCode = async (lobbyCode, token) => this.requestBase(
|
|
2713
|
+
`/optix/games/skin/${this.context.skin}/lobby/${lobbyCode}?limit=100`,
|
|
2714
|
+
{
|
|
2715
|
+
...token && {
|
|
2716
|
+
headers: {
|
|
2717
|
+
Authorization: `Bearer ${token}`
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
);
|
|
2722
|
+
getListLobbyOptix = async (token) => this.requestBase(
|
|
2723
|
+
`/optix/games/skin/${this.context.skin}/lobby`,
|
|
2724
|
+
{
|
|
2725
|
+
...token && {
|
|
2726
|
+
headers: {
|
|
2727
|
+
Authorization: `Bearer ${token}`
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
);
|
|
2732
|
+
searchGamesEventOptix = async (data) => this.postBase(
|
|
2733
|
+
`/search/event`,
|
|
2734
|
+
{
|
|
2735
|
+
headers: headersApplicationJson,
|
|
2736
|
+
body: JSON.stringify(data)
|
|
2737
|
+
},
|
|
2738
|
+
true
|
|
2739
|
+
);
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
// index.ts
|
|
2743
|
+
var SdkSAPIExtendedService = class extends Mixin(
|
|
2744
|
+
SkinService,
|
|
2745
|
+
GameService,
|
|
2746
|
+
PlayerService,
|
|
2747
|
+
ValidateService,
|
|
2748
|
+
SupplierService,
|
|
2749
|
+
VerifyService,
|
|
2750
|
+
FormService,
|
|
2751
|
+
SelfExclusionService,
|
|
2752
|
+
SelfLimitationService,
|
|
2753
|
+
BankService
|
|
2754
|
+
) {
|
|
2755
|
+
};
|
|
2756
|
+
var SdkSAPIExtendedService2 = class extends Mixin(
|
|
2757
|
+
SkinContentService,
|
|
2758
|
+
PaymentService,
|
|
2759
|
+
TransactionsService,
|
|
2760
|
+
IdentityBiometryService,
|
|
2761
|
+
PepVerificationService,
|
|
2762
|
+
SportsService,
|
|
2763
|
+
OtherService,
|
|
2764
|
+
BonusService,
|
|
2765
|
+
OnboardingService,
|
|
2766
|
+
TwoFactorAuthenticationService
|
|
2767
|
+
) {
|
|
2768
|
+
};
|
|
2769
|
+
var SdkSAPIExtendedService3 = class extends Mixin(
|
|
2770
|
+
PlayerSessionService,
|
|
2771
|
+
PlayerNotificationService,
|
|
2772
|
+
PlayerReportService,
|
|
2773
|
+
OptixService
|
|
2774
|
+
) {
|
|
2775
|
+
};
|
|
2776
|
+
var SdkSAPI = class extends Mixin(
|
|
2777
|
+
SdkSAPIExtendedService,
|
|
2778
|
+
SdkSAPIExtendedService2,
|
|
2779
|
+
SdkSAPIExtendedService3
|
|
2780
|
+
) {
|
|
2781
|
+
constructor(context) {
|
|
2782
|
+
super(context);
|
|
2783
|
+
}
|
|
2784
|
+
};
|
|
2785
|
+
|
|
2786
|
+
export { AccessFlowControllerFromOriginEnum, AccessFlowControllerTypeEnum, BonusFinalizedStatusEnum, BonusFinalizedTypeFlagEnum, BonusParticipationButtonNum, BonusParticipationStatusEnum, BonusPromotionCodeEnum, BonusStatusAvailableEnum, BonusStatusAvailableFlagEnum, ChooseSeverityEnum, DepositManualButtonKey, DepositStatusKey, MenuStatusType, PlayerSessionDeviceEnum, PlayerSessionStatusEnum, PlayerSportsbookTransactionsDetailsStatus, PlayerSportsbookTransactionsDetailsType, PlayerTransactionFlagEnum, PlayerTransactionStatusEnum, PlayerTransactionTypeEnum, PlayerTransactionTypeFilterEnum, PromotionTypeEnum, SdkSAPI, SelfExclusionCardCurrentStatusEnum, SelfLimitationAlertKey, SelfLimitationCancelEnum, SelfLimitationEnum, SelfLimitationInfoResumeTypeEnum, SelfLimitationProgressBarStateEnum, SelfLimitationRuleEnum, SelfLimitationStateEnum, TWO_FACTOR_AUTHENTICATION_BLOCKED_ENUM, TWO_FACTOR_AUTHENTICATION_METHODS_ENUM, TournamentCurrentStatus, TransactionDetailsKey, TransactionWithdrawalStatus, TypeSelfLimitationEnum, WithdrawalStatusEnum };
|
|
2787
|
+
//# sourceMappingURL=index.mjs.map
|
|
2788
|
+
//# sourceMappingURL=index.mjs.map
|