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