@goplus123/core-api 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1643 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+ var _chunkXID56HIJcjs = require('./chunk-XID56HIJ.cjs');
156
+
157
+ // src/modules/auth.ts
158
+ var _protobuf = require('@bufbuild/protobuf');
159
+ var authService = (grpc) => {
160
+ const client = grpc.getService(_chunkXID56HIJcjs.FrontendAuthService);
161
+ const faceId = grpc.getService(_chunkXID56HIJcjs.FrontendFaceIdService);
162
+ const facebook = grpc.getService(_chunkXID56HIJcjs.FrontendFacebookService);
163
+ const player = grpc.getService(_chunkXID56HIJcjs.FrontendPlayerService);
164
+ const gLife = grpc.getService(_chunkXID56HIJcjs.GLifeService);
165
+ const maya = grpc.getService(_chunkXID56HIJcjs.MayaService);
166
+ const playerRegisterRequestCode = (payload, options) => {
167
+ return grpc.unary(
168
+ _chunkXID56HIJcjs.PlayerRegisterRequestCodeReqSchema,
169
+ payload,
170
+ (req, opt) => client.playerRegisterRequestCode(req, opt),
171
+ options
172
+ );
173
+ };
174
+ const playerRegisterWithCode = (payload, options) => {
175
+ return grpc.unary(
176
+ _chunkXID56HIJcjs.PlayerRegisterWithCodeReqSchema,
177
+ payload,
178
+ (req, opt) => client.playerRegisterWithCode(req, opt),
179
+ options
180
+ );
181
+ };
182
+ const playerLoginWithSessionToken = (payload, options) => {
183
+ return grpc.unary(
184
+ _chunkXID56HIJcjs.PlayerLoginWithSessionTokenReqSchema,
185
+ payload,
186
+ (req, opt) => client.playerLoginWithSessionToken(req, opt),
187
+ options
188
+ );
189
+ };
190
+ const phoneNumberLoginWithPassword = (payload, options) => {
191
+ return grpc.unary(
192
+ _chunkXID56HIJcjs.PhoneNumberLoginWithPasswordReqSchema,
193
+ payload,
194
+ (req, opt) => client.phoneNumberLoginWithPassword(req, opt),
195
+ options
196
+ );
197
+ };
198
+ const playerLoginOrRegisterWithSMS = (payload, options) => {
199
+ return grpc.unary(
200
+ _chunkXID56HIJcjs.PlayerLoginOrRegisterWithSMSReqSchema,
201
+ payload,
202
+ (req, opt) => client.playerLoginOrRegisterWithSMS(req, opt),
203
+ options
204
+ );
205
+ };
206
+ const authenticate = (payload, options) => {
207
+ return grpc.unary(
208
+ _chunkXID56HIJcjs.AuthenticateReqSchema,
209
+ payload,
210
+ (req, opt) => client.authenticate(req, opt),
211
+ options
212
+ );
213
+ };
214
+ const sendSmsCode = (payload, options) => {
215
+ return grpc.unary(
216
+ _chunkXID56HIJcjs.SendSmsCodeReqSchema,
217
+ payload,
218
+ (req, opt) => client.sendSmsCode(req, opt),
219
+ options
220
+ );
221
+ };
222
+ const playerLogout = (payload, options) => {
223
+ return grpc.unary(
224
+ _chunkXID56HIJcjs.PlayerLogoutReqSchema,
225
+ payload,
226
+ (req, opt) => client.playerLogout(req, opt),
227
+ options
228
+ );
229
+ };
230
+ const sendSmsCodeViber = (payload, options) => {
231
+ return grpc.unary(
232
+ _chunkXID56HIJcjs.SendSmsCodeViberReqSchema,
233
+ payload,
234
+ (req, opt) => client.sendSmsCodeViber(req, opt),
235
+ options
236
+ );
237
+ };
238
+ const enableFaceId = (payload, options) => {
239
+ return grpc.unary(
240
+ _chunkXID56HIJcjs.EnableFaceIdReqSchema,
241
+ payload,
242
+ (req, opt) => faceId.enableFaceId(req, opt),
243
+ options
244
+ );
245
+ };
246
+ const initFaceIdSession = (payload, options) => {
247
+ return grpc.unary(
248
+ _chunkXID56HIJcjs.InitFaceIdSessionReqSchema,
249
+ payload,
250
+ (req, opt) => faceId.initFaceIdSession(req, opt),
251
+ options
252
+ );
253
+ };
254
+ const playerLoginWithFaceId = (payload, options) => {
255
+ return grpc.unary(
256
+ _chunkXID56HIJcjs.PlayerLoginWithFaceIdReqSchema,
257
+ payload,
258
+ (req, opt) => faceId.playerLoginWithFaceId(req, opt),
259
+ options
260
+ );
261
+ };
262
+ const disableFaceId = (payload, options) => {
263
+ return grpc.unary(
264
+ _chunkXID56HIJcjs.DisableFaceIdReqSchema,
265
+ payload,
266
+ (req, opt) => faceId.disableFaceId(req, opt),
267
+ options
268
+ );
269
+ };
270
+ const initEnrollSession = (payload, options) => {
271
+ return grpc.unary(
272
+ _chunkXID56HIJcjs.InitEnrollSessionReqSchema,
273
+ payload,
274
+ (req, opt) => faceId.initEnrollSession(req, opt),
275
+ options
276
+ );
277
+ };
278
+ const getFaceIdInfo = (payload, options) => {
279
+ return grpc.unary(
280
+ _chunkXID56HIJcjs.GetFaceIdInfoReqSchema,
281
+ payload,
282
+ (req, opt) => faceId.getFaceIdInfo(req, opt),
283
+ options
284
+ );
285
+ };
286
+ const playerLoginOrRegisterWithFacebook = (payload, options) => {
287
+ return grpc.unary(
288
+ _chunkXID56HIJcjs.PlayerLoginOrRegisterWithFacebookReqSchema,
289
+ payload,
290
+ (req, opt) => facebook.playerLoginOrRegisterWithFacebook(req, opt),
291
+ options
292
+ );
293
+ };
294
+ const getFacebookConsentPage = (payload, options) => {
295
+ return grpc.unary(
296
+ _chunkXID56HIJcjs.GetFacebookConsentPageReqSchema,
297
+ payload,
298
+ (req, opt) => facebook.getFacebookConsentPage(req, opt),
299
+ options
300
+ );
301
+ };
302
+ const facebookAuthorization = (payload, options) => {
303
+ return grpc.unary(
304
+ _chunkXID56HIJcjs.FacebookAuthorizationReqSchema,
305
+ payload,
306
+ (req, opt) => facebook.facebookAuthorization(req, opt),
307
+ options
308
+ );
309
+ };
310
+ const getFacebookFriendList = (payload, options) => {
311
+ return grpc.unary(
312
+ _chunkXID56HIJcjs.GetFacebookFriendListReqSchema,
313
+ payload,
314
+ (req, opt) => facebook.getFacebookFriendList(req, opt),
315
+ options
316
+ );
317
+ };
318
+ const manualFetchFacebookFriends = (payload, options) => {
319
+ return grpc.unary(
320
+ _chunkXID56HIJcjs.ManualFetchFacebookFriendsReqSchema,
321
+ payload,
322
+ (req, opt) => facebook.manualFetchFacebookFriends(req, opt),
323
+ options
324
+ );
325
+ };
326
+ const bindFacebookAccount = (payload, options) => {
327
+ return grpc.unary(
328
+ _chunkXID56HIJcjs.BindFacebookAccountReqSchema,
329
+ payload,
330
+ (req, opt) => facebook.bindFacebookAccount(req, opt),
331
+ options
332
+ );
333
+ };
334
+ const unbindFacebookAccount = (payload, options) => {
335
+ return grpc.unary(
336
+ _chunkXID56HIJcjs.EmptySchema,
337
+ payload,
338
+ (req, opt) => facebook.unbindFacebookAccount(req, opt),
339
+ options
340
+ );
341
+ };
342
+ const facebookVerifyPhoneNumber = (payload, options) => {
343
+ return grpc.unary(
344
+ _chunkXID56HIJcjs.FacebookVerifyPhoneNumberReqSchema,
345
+ payload,
346
+ (req, opt) => facebook.facebookVerifyPhoneNumber(req, opt),
347
+ options
348
+ );
349
+ };
350
+ const verifyPassword = (payload, options) => {
351
+ return grpc.unary(
352
+ _chunkXID56HIJcjs.VerifyPasswordReqSchema,
353
+ payload,
354
+ (req, opt) => player.verifyPassword(req, opt),
355
+ options
356
+ );
357
+ };
358
+ const gLifeAuth = (payload, options) => {
359
+ return grpc.unary(_chunkXID56HIJcjs.GLifeAuthReqSchema, payload, (req, opt) => gLife.gLifeAuth(req, opt), options);
360
+ };
361
+ const playerLoginWithGLife = (payload, options) => {
362
+ return grpc.unary(
363
+ _chunkXID56HIJcjs.PlayerLoginWithGLifeReqSchema,
364
+ payload,
365
+ (req, opt) => gLife.playerLoginWithGLife(req, opt),
366
+ options
367
+ );
368
+ };
369
+ const playerLoginOrRegisterWithGLife = (payload, options) => {
370
+ return grpc.unary(
371
+ _chunkXID56HIJcjs.PlayerLoginOrRegisterWithGLifeReqSchema,
372
+ payload,
373
+ (req, opt) => gLife.playerLoginOrRegisterWithGLife(req, opt),
374
+ options
375
+ );
376
+ };
377
+ const mayaAuth = (payload, options) => {
378
+ return grpc.unary(_chunkXID56HIJcjs.MayaAuthReqSchema, payload, (req, opt) => maya.mayaAuth(req, opt), options);
379
+ };
380
+ const playerLoginWithMaya = (payload, options) => {
381
+ return grpc.unary(
382
+ _chunkXID56HIJcjs.PlayerLoginWithMayaReqSchema,
383
+ payload,
384
+ (req, opt) => maya.playerLoginWithMaya(req, opt),
385
+ options
386
+ );
387
+ };
388
+ const playerLoginOrRegisterWithMaya = (payload, options) => {
389
+ return grpc.unary(
390
+ _chunkXID56HIJcjs.PlayerLoginOrRegisterWithMayaReqSchema,
391
+ payload,
392
+ (req, opt) => maya.playerLoginOrRegisterWithMaya(req, opt),
393
+ options
394
+ );
395
+ };
396
+ return {
397
+ transport: "grpc",
398
+ playerRegisterRequestCode,
399
+ playerRegisterWithCode,
400
+ playerLoginWithSessionToken,
401
+ phoneNumberLoginWithPassword,
402
+ playerLoginOrRegisterWithSMS,
403
+ authenticate,
404
+ sendSmsCode,
405
+ sendSmsCodeViber,
406
+ playerLogout,
407
+ enableFaceId,
408
+ initFaceIdSession,
409
+ playerLoginWithFaceId,
410
+ disableFaceId,
411
+ initEnrollSession,
412
+ getFaceIdInfo,
413
+ playerLoginOrRegisterWithFacebook,
414
+ getFacebookConsentPage,
415
+ facebookAuthorization,
416
+ getFacebookFriendList,
417
+ manualFetchFacebookFriends,
418
+ bindFacebookAccount,
419
+ unbindFacebookAccount,
420
+ facebookVerifyPhoneNumber,
421
+ verifyPassword,
422
+ gLifeAuth,
423
+ playerLoginWithGLife,
424
+ playerLoginOrRegisterWithGLife,
425
+ mayaAuth,
426
+ playerLoginWithMaya,
427
+ playerLoginOrRegisterWithMaya
428
+ };
429
+ };
430
+
431
+ // src/modules/packet.ts
432
+ var packetService = (grpc) => {
433
+ const frontend = grpc.getService(_chunkXID56HIJcjs.FrontendPacketService);
434
+ const recaptcha = grpc.getService(_chunkXID56HIJcjs.RecaptchaPacketService);
435
+ const assignPacket = (payload, options) => {
436
+ return grpc.unary(
437
+ _chunkXID56HIJcjs.AssignPacketReqSchema,
438
+ payload,
439
+ (req, opt) => frontend.assignPacket(req, opt),
440
+ options
441
+ );
442
+ };
443
+ const getServerTime = (payload, options) => {
444
+ return grpc.unary(
445
+ _chunkXID56HIJcjs.GetServerTimeReqSchema,
446
+ payload,
447
+ (req, opt) => frontend.getServerTime(req, opt),
448
+ options
449
+ );
450
+ };
451
+ const getPacketsInfo = (payload, options) => {
452
+ return grpc.unary(
453
+ _chunkXID56HIJcjs.GetPacketsInfoReqSchema,
454
+ payload,
455
+ (req, opt) => frontend.getPacketsInfo(req, opt),
456
+ options
457
+ );
458
+ };
459
+ const verifyPlayerPacket = (payload, options) => {
460
+ return grpc.unary(
461
+ _chunkXID56HIJcjs.VerifyPlayerPacketReqSchema,
462
+ payload,
463
+ (req, opt) => recaptcha.verifyPlayerPacket(req, opt),
464
+ options
465
+ );
466
+ };
467
+ return {
468
+ transport: "grpc",
469
+ assignPacket,
470
+ getServerTime,
471
+ getPacketsInfo,
472
+ verifyPlayerPacket
473
+ };
474
+ };
475
+
476
+ // src/modules/payment.ts
477
+ var paymentService = (grpc) => {
478
+ const bankCard = grpc.getService(_chunkXID56HIJcjs.FrontendBankCardService);
479
+ const credit = grpc.getService(_chunkXID56HIJcjs.FrontendCreditService);
480
+ const depositEffect = grpc.getService(_chunkXID56HIJcjs.FrontendDepositEffectService);
481
+ const freeSpin = grpc.getService(_chunkXID56HIJcjs.FrontendFreeSpinService);
482
+ const mud = grpc.getService(_chunkXID56HIJcjs.FrontendMudService);
483
+ const getBankTypes = (payload, options) => {
484
+ return grpc.unary(
485
+ _chunkXID56HIJcjs.GetBankTypesReqSchema,
486
+ payload,
487
+ (req, opt) => bankCard.getBankTypes(req, opt),
488
+ options
489
+ );
490
+ };
491
+ const getBindBankCards = (payload, options) => {
492
+ return grpc.unary(
493
+ _chunkXID56HIJcjs.GetBindBankCardsReqSchema,
494
+ payload,
495
+ (req, opt) => bankCard.getBindBankCards(req, opt),
496
+ options
497
+ );
498
+ };
499
+ const getAvailableDepositMethods = (payload, options) => {
500
+ return grpc.unary(
501
+ _chunkXID56HIJcjs.GetAvailableDepositMethodsReqSchema,
502
+ payload,
503
+ (req, opt) => bankCard.getAvailableDepositMethods(req, opt),
504
+ options
505
+ );
506
+ };
507
+ const updatePaymentInfo = (payload, options) => {
508
+ return grpc.unary(
509
+ _chunkXID56HIJcjs.UpdatePaymentInfoReqSchema,
510
+ payload,
511
+ (req, opt) => bankCard.updatePaymentInfo(req, opt),
512
+ options
513
+ );
514
+ };
515
+ const verifyUnionBank = (payload, options) => {
516
+ return grpc.unary(
517
+ _chunkXID56HIJcjs.VerifyUnionBankReqSchema,
518
+ payload,
519
+ (req, opt) => bankCard.verifyUnionBank(req, opt),
520
+ options
521
+ );
522
+ };
523
+ const getCredit = (payload, options) => {
524
+ return grpc.unary(
525
+ _chunkXID56HIJcjs.GetCreditReqSchema,
526
+ payload,
527
+ (req, opt) => credit.getCredit(req, opt),
528
+ options
529
+ );
530
+ };
531
+ const getCreditChangeNotifyMsg = (payload, options) => {
532
+ return grpc.unary(
533
+ _chunkXID56HIJcjs.EmptySchema,
534
+ payload,
535
+ (req, opt) => depositEffect.getCreditChangeNotifyMsg(req, opt),
536
+ options
537
+ );
538
+ };
539
+ const removeCreditChangeNotifyMsg = (payload, options) => {
540
+ return grpc.unary(
541
+ _chunkXID56HIJcjs.RemoveCreditChangeNotifyMsgReqSchema,
542
+ payload,
543
+ (req, opt) => depositEffect.removeCreditChangeNotifyMsg(req, opt),
544
+ options
545
+ );
546
+ };
547
+ const getPlatformPlayerFreeSpinListing = (payload, options) => {
548
+ return grpc.unary(
549
+ _chunkXID56HIJcjs.GetPlatformPlayerFreeSpinListingReqSchema,
550
+ payload,
551
+ (req, opt) => freeSpin.getPlatformPlayerFreeSpinListing(req, opt),
552
+ options
553
+ );
554
+ };
555
+ const getPlayerDisbursements = (payload, options) => {
556
+ return grpc.unary(
557
+ _chunkXID56HIJcjs.GetPlayerDisbursementsReqSchema,
558
+ payload,
559
+ (req, opt) => mud.getPlayerDisbursements(req, opt),
560
+ options
561
+ );
562
+ };
563
+ const claimPlayerDisbursement = (payload, options) => {
564
+ return grpc.unary(
565
+ _chunkXID56HIJcjs.ClaimPlayerDisbursementReqSchema,
566
+ payload,
567
+ (req, opt) => mud.claimPlayerDisbursement(req, opt),
568
+ options
569
+ );
570
+ };
571
+ const getPlayerMudTransactions = (payload, options) => {
572
+ return grpc.unary(
573
+ _chunkXID56HIJcjs.GetPlayerMudTransactionsReqSchema,
574
+ payload,
575
+ (req, opt) => mud.getPlayerMudTransactions(req, opt),
576
+ options
577
+ );
578
+ };
579
+ const getMudTransactionHistory = (payload, options) => {
580
+ return grpc.unary(
581
+ _chunkXID56HIJcjs.GetMudTransactionHistoryReqSchema,
582
+ payload,
583
+ (req, opt) => mud.getMudTransactionHistory(req, opt),
584
+ options
585
+ );
586
+ };
587
+ return {
588
+ transport: "grpc",
589
+ getBankTypes,
590
+ getBindBankCards,
591
+ getAvailableDepositMethods,
592
+ updatePaymentInfo,
593
+ verifyUnionBank,
594
+ getCredit,
595
+ getCreditChangeNotifyMsg,
596
+ removeCreditChangeNotifyMsg,
597
+ getPlatformPlayerFreeSpinListing,
598
+ getPlayerDisbursements,
599
+ claimPlayerDisbursement,
600
+ getPlayerMudTransactions,
601
+ getMudTransactionHistory
602
+ };
603
+ };
604
+
605
+ // src/modules/player.ts
606
+ var playerService = (grpc) => {
607
+ const player = grpc.getService(_chunkXID56HIJcjs.PlayerService);
608
+ const email = grpc.getService(_chunkXID56HIJcjs.FrontendEmailService);
609
+ const mergePlayer = grpc.getService(_chunkXID56HIJcjs.FrontendMergePlayerService);
610
+ const permission = grpc.getService(_chunkXID56HIJcjs.FrontendPlayerPermissionService);
611
+ const frontendPlayer = grpc.getService(_chunkXID56HIJcjs.FrontendPlayerService2);
612
+ const zoloz = grpc.getService(_chunkXID56HIJcjs.FrontendZolozService);
613
+ const getVerificationStatus = (payload, options) => {
614
+ return grpc.unary(
615
+ _chunkXID56HIJcjs.EmptySchema,
616
+ payload,
617
+ (req, opt) => email.getVerificationStatus(req, opt),
618
+ options
619
+ );
620
+ };
621
+ const verifyEmail = (payload, options) => {
622
+ return grpc.unary(
623
+ _chunkXID56HIJcjs.VerifyEmailReqSchema,
624
+ payload,
625
+ (req, opt) => email.verifyEmail(req, opt),
626
+ options
627
+ );
628
+ };
629
+ const getMergingList = (payload, options) => {
630
+ return grpc.unary(
631
+ _chunkXID56HIJcjs.EmptySchema,
632
+ payload,
633
+ (req, opt) => mergePlayer.getMergingList(req, opt),
634
+ options
635
+ );
636
+ };
637
+ const mergePlayerAccount = (payload, options) => {
638
+ return grpc.unary(
639
+ _chunkXID56HIJcjs.MergePlayerReqSchema,
640
+ payload,
641
+ (req, opt) => mergePlayer.mergePlayer(req, opt),
642
+ options
643
+ );
644
+ };
645
+ const verifyMergePlayerCode = (payload, options) => {
646
+ return grpc.unary(
647
+ _chunkXID56HIJcjs.VerifyMergePlayerCodeReqSchema,
648
+ payload,
649
+ (req, opt) => mergePlayer.verifyMergePlayerCode(req, opt),
650
+ options
651
+ );
652
+ };
653
+ const getMergingListPendingProposalCount = (payload, options) => {
654
+ return grpc.unary(
655
+ _chunkXID56HIJcjs.EmptySchema,
656
+ payload,
657
+ (req, opt) => mergePlayer.getMergingListPendingProposalCount(req, opt),
658
+ options
659
+ );
660
+ };
661
+ const checkMergePlayerProposal = (payload, options) => {
662
+ return grpc.unary(
663
+ _chunkXID56HIJcjs.CheckMergePlayerProposalReqSchema,
664
+ payload,
665
+ (req, opt) => mergePlayer.checkMergePlayerProposal(req, opt),
666
+ options
667
+ );
668
+ };
669
+ const playerBypassKycRestriction = (payload, options) => {
670
+ return grpc.unary(
671
+ _chunkXID56HIJcjs.EmptySchema,
672
+ payload,
673
+ (req, opt) => permission.playerBypassKycRestriction(req, opt),
674
+ options
675
+ );
676
+ };
677
+ const checkPlayerLoginStatus = (payload, options) => {
678
+ return grpc.unary(
679
+ _chunkXID56HIJcjs.EmptySchema,
680
+ payload,
681
+ (req, opt) => frontendPlayer.checkPlayerLoginStatus(req, opt),
682
+ options
683
+ );
684
+ };
685
+ const getPlayerProfileByJwt = (payload, options) => {
686
+ return grpc.unary(
687
+ _chunkXID56HIJcjs.EmptySchema,
688
+ payload,
689
+ (req, opt) => frontendPlayer.getPlayerProfileByJwt(req, opt),
690
+ options
691
+ );
692
+ };
693
+ const updatePassword = (payload, options) => {
694
+ return grpc.unary(
695
+ _chunkXID56HIJcjs.UpdatePasswordReqSchema,
696
+ payload,
697
+ (req, opt) => frontendPlayer.updatePassword(req, opt),
698
+ options
699
+ );
700
+ };
701
+ const getPlayerInfoForSportsForum = (payload, options) => {
702
+ return grpc.unary(
703
+ _chunkXID56HIJcjs.EmptySchema,
704
+ payload,
705
+ (req, opt) => frontendPlayer.getPlayerInfoForSportsForum(req, opt),
706
+ options
707
+ );
708
+ };
709
+ const getWithdrawalInfo = (payload, options) => {
710
+ return grpc.unary(
711
+ _chunkXID56HIJcjs.EmptySchema,
712
+ payload,
713
+ (req, opt) => frontendPlayer.getWithdrawalInfo(req, opt),
714
+ options
715
+ );
716
+ };
717
+ const getDepositInfo = (payload, options) => {
718
+ return grpc.unary(
719
+ _chunkXID56HIJcjs.EmptySchema,
720
+ payload,
721
+ (req, opt) => frontendPlayer.getDepositInfo(req, opt),
722
+ options
723
+ );
724
+ };
725
+ const getAccountCombineInfo = (payload, options) => {
726
+ return grpc.unary(
727
+ _chunkXID56HIJcjs.EmptySchema,
728
+ payload,
729
+ (req, opt) => frontendPlayer.getAccountCombineInfo(req, opt),
730
+ options
731
+ );
732
+ };
733
+ const getViberStatus = (payload, options) => {
734
+ return grpc.unary(
735
+ _chunkXID56HIJcjs.GetViberStatusReqSchema,
736
+ payload,
737
+ (req, opt) => frontendPlayer.getViberStatus(req, opt),
738
+ options
739
+ );
740
+ };
741
+ const updateAdditionalInfo = (payload, options) => {
742
+ return grpc.unary(
743
+ _chunkXID56HIJcjs.UpdateAdditionalInfoReqSchema,
744
+ payload,
745
+ (req, opt) => frontendPlayer.updateAdditionalInfo(req, opt),
746
+ options
747
+ );
748
+ };
749
+ const playerGetPlayerProfileByJwt = (payload, options) => {
750
+ return grpc.unary(
751
+ _chunkXID56HIJcjs.EmptySchema,
752
+ payload,
753
+ (req, opt) => player.getPlayerProfileByJwt(req, opt),
754
+ options
755
+ );
756
+ };
757
+ const playerUpdatePassword = (payload, options) => {
758
+ return grpc.unary(
759
+ _chunkXID56HIJcjs.UpdatePasswordReqSchema,
760
+ payload,
761
+ (req, opt) => player.updatePassword(req, opt),
762
+ options
763
+ );
764
+ };
765
+ const playerGetPlayerInfoForSportsForum = (payload, options) => {
766
+ return grpc.unary(
767
+ _chunkXID56HIJcjs.EmptySchema,
768
+ payload,
769
+ (req, opt) => player.getPlayerInfoForSportsForum(req, opt),
770
+ options
771
+ );
772
+ };
773
+ const playerGetWithdrawalInfo = (payload, options) => {
774
+ return grpc.unary(
775
+ _chunkXID56HIJcjs.EmptySchema,
776
+ payload,
777
+ (req, opt) => player.getWithdrawalInfo(req, opt),
778
+ options
779
+ );
780
+ };
781
+ const playerGetDepositInfo = (payload, options) => {
782
+ return grpc.unary(_chunkXID56HIJcjs.EmptySchema, payload, (req, opt) => player.getDepositInfo(req, opt), options);
783
+ };
784
+ const playerGetAccountCombineInfo = (payload, options) => {
785
+ return grpc.unary(
786
+ _chunkXID56HIJcjs.EmptySchema,
787
+ payload,
788
+ (req, opt) => player.getAccountCombineInfo(req, opt),
789
+ options
790
+ );
791
+ };
792
+ const playerGetViberStatus = (payload, options) => {
793
+ return grpc.unary(
794
+ _chunkXID56HIJcjs.GetViberStatusReqSchema,
795
+ payload,
796
+ (req, opt) => player.getViberStatus(req, opt),
797
+ options
798
+ );
799
+ };
800
+ const updatePasswordAndNotify = (payload, options) => {
801
+ return grpc.unary(
802
+ _chunkXID56HIJcjs.UpdatePasswordAndNotifyReqSchema,
803
+ payload,
804
+ (req, opt) => player.updatePasswordAndNotify(req, opt),
805
+ options
806
+ );
807
+ };
808
+ const resetPasswordFg = (payload, options) => {
809
+ return grpc.unary(
810
+ _chunkXID56HIJcjs.ResetPasswordFgReqSchema,
811
+ payload,
812
+ (req, opt) => player.resetPasswordFg(req, opt),
813
+ options
814
+ );
815
+ };
816
+ const updateDob = (payload, options) => {
817
+ return grpc.unary(
818
+ _chunkXID56HIJcjs.UpdateDobReqSchema,
819
+ payload,
820
+ (req, opt) => player.updateDob(req, opt),
821
+ options
822
+ );
823
+ };
824
+ const updatePlaceOfBirth = (payload, options) => {
825
+ return grpc.unary(
826
+ _chunkXID56HIJcjs.UpdatePlaceOfBirthReqSchema,
827
+ payload,
828
+ (req, opt) => player.updatePlaceOfBirth(req, opt),
829
+ options
830
+ );
831
+ };
832
+ const updateGender = (payload, options) => {
833
+ return grpc.unary(
834
+ _chunkXID56HIJcjs.UpdateGenderReqSchema,
835
+ payload,
836
+ (req, opt) => player.updateGender(req, opt),
837
+ options
838
+ );
839
+ };
840
+ const updateNickname = (payload, options) => {
841
+ return grpc.unary(
842
+ _chunkXID56HIJcjs.UpdateNicknameReqSchema,
843
+ payload,
844
+ (req, opt) => player.updateNickname(req, opt),
845
+ options
846
+ );
847
+ };
848
+ const updateEmail = (payload, options) => {
849
+ return grpc.unary(
850
+ _chunkXID56HIJcjs.UpdateEmailReqSchema,
851
+ payload,
852
+ (req, opt) => player.updateEmail(req, opt),
853
+ options
854
+ );
855
+ };
856
+ const updateAddress = (payload, options) => {
857
+ return grpc.unary(
858
+ _chunkXID56HIJcjs.UpdateAddressReqSchema,
859
+ payload,
860
+ (req, opt) => player.updateAddress(req, opt),
861
+ options
862
+ );
863
+ };
864
+ const updatePhone = (payload, options) => {
865
+ return grpc.unary(
866
+ _chunkXID56HIJcjs.UpdatePhoneReqSchema,
867
+ payload,
868
+ (req, opt) => player.updatePhone(req, opt),
869
+ options
870
+ );
871
+ };
872
+ const updatePlayerAvatar = (payload, options) => {
873
+ return grpc.unary(
874
+ _chunkXID56HIJcjs.UpdatePlayerAvatarReqSchema,
875
+ payload,
876
+ (req, opt) => player.updatePlayerAvatar(req, opt),
877
+ options
878
+ );
879
+ };
880
+ const updateEKyc = (payload, options) => {
881
+ return grpc.unary(
882
+ _chunkXID56HIJcjs.UpdateEKycReqSchema,
883
+ payload,
884
+ (req, opt) => player.updateEKyc(req, opt),
885
+ options
886
+ );
887
+ };
888
+ const getSmsStatus = (payload, options) => {
889
+ return grpc.unary(_chunkXID56HIJcjs.EmptySchema, payload, (req, opt) => player.getSmsStatus(req, opt), options);
890
+ };
891
+ const updateSmsStatus = (payload, options) => {
892
+ return grpc.unary(
893
+ _chunkXID56HIJcjs.UpdateSmsStatusReqSchema,
894
+ payload,
895
+ (req, opt) => player.updateSmsStatus(req, opt),
896
+ options
897
+ );
898
+ };
899
+ const getAllLevel = (payload, options) => {
900
+ return grpc.unary(_chunkXID56HIJcjs.EmptySchema, payload, (req, opt) => player.getAllLevel(req, opt), options);
901
+ };
902
+ const getPlayerProgress = (payload, options) => {
903
+ return grpc.unary(
904
+ _chunkXID56HIJcjs.EmptySchema,
905
+ payload,
906
+ (req, opt) => player.getPlayerProgress(req, opt),
907
+ options
908
+ );
909
+ };
910
+ const verifyPhoneNumberWithSms = (payload, options) => {
911
+ return grpc.unary(
912
+ _chunkXID56HIJcjs.VerifyPhoneNumberWithSmsReqSchema,
913
+ payload,
914
+ (req, opt) => player.verifyPhoneNumberWithSms(req, opt),
915
+ options
916
+ );
917
+ };
918
+ const updateSourceOfFunds = (payload, options) => {
919
+ return grpc.unary(
920
+ _chunkXID56HIJcjs.UpdateSourceOfFundsReqSchema,
921
+ payload,
922
+ (req, opt) => player.updateSourceOfFunds(req, opt),
923
+ options
924
+ );
925
+ };
926
+ const updateNatureOfWork = (payload, options) => {
927
+ return grpc.unary(
928
+ _chunkXID56HIJcjs.UpdateNatureOfWorkReqSchema,
929
+ payload,
930
+ (req, opt) => player.updateNatureOfWork(req, opt),
931
+ options
932
+ );
933
+ };
934
+ const updateRealName = (payload, options) => {
935
+ return grpc.unary(
936
+ _chunkXID56HIJcjs.UpdateRealNameReqSchema,
937
+ payload,
938
+ (req, opt) => player.updateRealName(req, opt),
939
+ options
940
+ );
941
+ };
942
+ const checkIsValidSmsCode = (payload, options) => {
943
+ return grpc.unary(
944
+ _chunkXID56HIJcjs.CheckIsValidSmsCodeReqSchema,
945
+ payload,
946
+ (req, opt) => player.checkIsValidSmsCode(req, opt),
947
+ options
948
+ );
949
+ };
950
+ const getAllPlayerLevel = (payload, options) => {
951
+ return grpc.unary(
952
+ _chunkXID56HIJcjs.GetAllPlayerLevelReqSchema,
953
+ payload,
954
+ (req, opt) => player.getAllPlayerLevel(req, opt),
955
+ options
956
+ );
957
+ };
958
+ const getPlayerLevelWithPlayerLevelObjId = (payload, options) => {
959
+ return grpc.unary(
960
+ _chunkXID56HIJcjs.GetPlayerLevelWithPlayerLevelObjIdReqSchema,
961
+ payload,
962
+ (req, opt) => player.getPlayerLevelWithPlayerLevelObjId(req, opt),
963
+ options
964
+ );
965
+ };
966
+ const getCasinoPlayerByPlayerId = (payload, options) => {
967
+ return grpc.unary(
968
+ _chunkXID56HIJcjs.GetCasinoPlayerByPlayerIdReqSchema,
969
+ payload,
970
+ (req, opt) => player.getCasinoPlayerByPlayerId(req, opt),
971
+ options
972
+ );
973
+ };
974
+ const getCasinoPlayers = (payload, options) => {
975
+ return grpc.unary(
976
+ _chunkXID56HIJcjs.GetCasinoPlayersReqSchema,
977
+ payload,
978
+ (req, opt) => player.getCasinoPlayers(req, opt),
979
+ options
980
+ );
981
+ };
982
+ const getCasinoPlayerByMemberCardId = (payload, options) => {
983
+ return grpc.unary(
984
+ _chunkXID56HIJcjs.GetCasinoPlayerByMemberCardIdReqSchema,
985
+ payload,
986
+ (req, opt) => player.getCasinoPlayerByMemberCardId(req, opt),
987
+ options
988
+ );
989
+ };
990
+ const updateCasinoPlayerByPlayerId = (payload, options) => {
991
+ return grpc.unary(
992
+ _chunkXID56HIJcjs.UpdateCasinoPlayerByPlayerIdReqSchema,
993
+ payload,
994
+ (req, opt) => player.updateCasinoPlayerByPlayerId(req, opt),
995
+ options
996
+ );
997
+ };
998
+ const updatePlayerStatusByPlayerId = (payload, options) => {
999
+ return grpc.unary(
1000
+ _chunkXID56HIJcjs.UpdatePlayerStatusByPlayerIdReqSchema,
1001
+ payload,
1002
+ (req, opt) => player.updatePlayerStatusByPlayerId(req, opt),
1003
+ options
1004
+ );
1005
+ };
1006
+ const getBetRecordsByPlayerId = (payload, options) => {
1007
+ return grpc.unary(
1008
+ _chunkXID56HIJcjs.GetBetRecordsByPlayerIdReqSchema,
1009
+ payload,
1010
+ (req, opt) => player.getBetRecordsByPlayerId(req, opt),
1011
+ options
1012
+ );
1013
+ };
1014
+ const getPlayerInfoWithPlayerId = (payload, options) => {
1015
+ return grpc.unary(
1016
+ _chunkXID56HIJcjs.GetPlayerInfoWithPlayerIdReqSchema,
1017
+ payload,
1018
+ (req, opt) => player.getPlayerInfoWithPlayerId(req, opt),
1019
+ options
1020
+ );
1021
+ };
1022
+ const updatePlayerBaccaratTicket = (payload, options) => {
1023
+ return grpc.unary(
1024
+ _chunkXID56HIJcjs.UpdatePlayerBaccaratTicketReqSchema,
1025
+ payload,
1026
+ (req, opt) => player.updatePlayerBaccaratTicket(req, opt),
1027
+ options
1028
+ );
1029
+ };
1030
+ const getPlayerPhoneAndBankInfo = (payload, options) => {
1031
+ return grpc.unary(
1032
+ _chunkXID56HIJcjs.EmptySchema,
1033
+ payload,
1034
+ (req, opt) => player.getPlayerPhoneAndBankInfo(req, opt),
1035
+ options
1036
+ );
1037
+ };
1038
+ const getPlayerKYCAndWithdrawStatus = (payload, options) => {
1039
+ return grpc.unary(
1040
+ _chunkXID56HIJcjs.GetPlayerKYCAndWithdrawStatusReqSchema,
1041
+ payload,
1042
+ (req, opt) => player.getPlayerKYCAndWithdrawStatus(req, opt),
1043
+ options
1044
+ );
1045
+ };
1046
+ const getPlayerValidCreditByPlayerObjId = (payload, options) => {
1047
+ return grpc.unary(
1048
+ _chunkXID56HIJcjs.GetPlayerValidCreditByPlayerObjIdReqSchema,
1049
+ payload,
1050
+ (req, opt) => player.getPlayerValidCreditByPlayerObjId(req, opt),
1051
+ options
1052
+ );
1053
+ };
1054
+ const getPlayerIdAndName = (payload, options) => {
1055
+ return grpc.unary(
1056
+ _chunkXID56HIJcjs.EmptySchema,
1057
+ payload,
1058
+ (req, opt) => player.getPlayerIdAndName(req, opt),
1059
+ options
1060
+ );
1061
+ };
1062
+ const getFreeSpinPlayerInfo = (payload, options) => {
1063
+ return grpc.unary(
1064
+ _chunkXID56HIJcjs.EmptySchema,
1065
+ payload,
1066
+ (req, opt) => player.getFreeSpinPlayerInfo(req, opt),
1067
+ options
1068
+ );
1069
+ };
1070
+ const getPlayerInfo = (payload, options) => {
1071
+ return grpc.unary(
1072
+ _chunkXID56HIJcjs.GetPlayerInfoReqSchema,
1073
+ payload,
1074
+ (req, opt) => player.getPlayerInfo(req, opt),
1075
+ options
1076
+ );
1077
+ };
1078
+ const getPlayerEmailByPlayerId = (payload, options) => {
1079
+ return grpc.unary(
1080
+ _chunkXID56HIJcjs.GetPlayerEmailByPlayerIdReqSchema,
1081
+ payload,
1082
+ (req, opt) => player.getPlayerEmailByPlayerId(req, opt),
1083
+ options
1084
+ );
1085
+ };
1086
+ const getPlayerIdAndLevelByPhone = (payload, options) => {
1087
+ return grpc.unary(
1088
+ _chunkXID56HIJcjs.GetPlayerIdAndLevelByPhoneReqSchema,
1089
+ payload,
1090
+ (req, opt) => player.getPlayerIdAndLevelByPhone(req, opt),
1091
+ options
1092
+ );
1093
+ };
1094
+ const updateViberStatus = (payload, options) => {
1095
+ return grpc.unary(
1096
+ _chunkXID56HIJcjs.UpdateViberStatusReqSchema,
1097
+ payload,
1098
+ (req, opt) => player.updateViberStatus(req, opt),
1099
+ options
1100
+ );
1101
+ };
1102
+ const getPlayerAvatars = (payload, options) => {
1103
+ return grpc.unary(
1104
+ _chunkXID56HIJcjs.EmptySchema,
1105
+ payload,
1106
+ (req, opt) => frontendPlayer.getPlayerAvatars(req, opt),
1107
+ options
1108
+ );
1109
+ };
1110
+ const getKycParamsConfig = (payload, options) => {
1111
+ return grpc.unary(
1112
+ _chunkXID56HIJcjs.GetKycParamsConfigReqSchema,
1113
+ payload,
1114
+ (req, opt) => zoloz.getKycParamsConfig(req, opt),
1115
+ options
1116
+ );
1117
+ };
1118
+ const ekycInit = (payload, options) => {
1119
+ return grpc.unary(_chunkXID56HIJcjs.EkycInitReqSchema, payload, (req, opt) => zoloz.ekycInit(req, opt), options);
1120
+ };
1121
+ const ekycResult = (payload, options) => {
1122
+ return grpc.unary(
1123
+ _chunkXID56HIJcjs.EkycResultReqSchema,
1124
+ payload,
1125
+ (req, opt) => zoloz.ekycResult(req, opt),
1126
+ options
1127
+ );
1128
+ };
1129
+ return {
1130
+ transport: "grpc",
1131
+ player,
1132
+ getVerificationStatus,
1133
+ verifyEmail,
1134
+ getMergingList,
1135
+ mergePlayerAccount,
1136
+ verifyMergePlayerCode,
1137
+ getMergingListPendingProposalCount,
1138
+ checkMergePlayerProposal,
1139
+ playerBypassKycRestriction,
1140
+ checkPlayerLoginStatus,
1141
+ getPlayerProfileByJwt,
1142
+ updatePassword,
1143
+ getPlayerInfoForSportsForum,
1144
+ getWithdrawalInfo,
1145
+ getDepositInfo,
1146
+ getAccountCombineInfo,
1147
+ getViberStatus,
1148
+ updateAdditionalInfo,
1149
+ playerGetPlayerProfileByJwt,
1150
+ playerUpdatePassword,
1151
+ playerGetPlayerInfoForSportsForum,
1152
+ playerGetWithdrawalInfo,
1153
+ playerGetDepositInfo,
1154
+ playerGetAccountCombineInfo,
1155
+ playerGetViberStatus,
1156
+ updatePasswordAndNotify,
1157
+ resetPasswordFg,
1158
+ updateDob,
1159
+ updatePlaceOfBirth,
1160
+ updateGender,
1161
+ updateNickname,
1162
+ updateEmail,
1163
+ updateAddress,
1164
+ updatePhone,
1165
+ updatePlayerAvatar,
1166
+ updateEKyc,
1167
+ getSmsStatus,
1168
+ updateSmsStatus,
1169
+ getAllLevel,
1170
+ getPlayerProgress,
1171
+ verifyPhoneNumberWithSms,
1172
+ updateSourceOfFunds,
1173
+ updateNatureOfWork,
1174
+ updateRealName,
1175
+ checkIsValidSmsCode,
1176
+ getAllPlayerLevel,
1177
+ getPlayerLevelWithPlayerLevelObjId,
1178
+ getCasinoPlayerByPlayerId,
1179
+ getCasinoPlayers,
1180
+ getCasinoPlayerByMemberCardId,
1181
+ updateCasinoPlayerByPlayerId,
1182
+ updatePlayerStatusByPlayerId,
1183
+ getBetRecordsByPlayerId,
1184
+ getPlayerInfoWithPlayerId,
1185
+ updatePlayerBaccaratTicket,
1186
+ getPlayerPhoneAndBankInfo,
1187
+ getPlayerKYCAndWithdrawStatus,
1188
+ getPlayerValidCreditByPlayerObjId,
1189
+ getPlayerIdAndName,
1190
+ getFreeSpinPlayerInfo,
1191
+ getPlayerInfo,
1192
+ getPlayerEmailByPlayerId,
1193
+ getPlayerIdAndLevelByPhone,
1194
+ updateViberStatus,
1195
+ getPlayerAvatars,
1196
+ getKycParamsConfig,
1197
+ ekycInit,
1198
+ ekycResult
1199
+ };
1200
+ };
1201
+
1202
+ // src/modules/promotion.ts
1203
+ var promotionService = (grpc) => {
1204
+ const adminLiveDraw = grpc.getService(_chunkXID56HIJcjs.AdminLiveDrawService);
1205
+ const charity = grpc.getService(_chunkXID56HIJcjs.FrontendCharityService);
1206
+ const leaderboard = grpc.getService(_chunkXID56HIJcjs.FrontendLeaderboardService);
1207
+ const liveDraw = grpc.getService(_chunkXID56HIJcjs.FrontendLiveDrawService);
1208
+ const promotion = grpc.getService(_chunkXID56HIJcjs.FrontendPromotionService);
1209
+ const frontend = grpc.getService(_chunkXID56HIJcjs.FrontendService);
1210
+ const specialEvent = grpc.getService(_chunkXID56HIJcjs.FrontendSpecialEventService);
1211
+ const getTodayLiveDrawEvents = (payload, options) => {
1212
+ return grpc.unary(
1213
+ _chunkXID56HIJcjs.GetTodayLiveDrawEventsReqSchema,
1214
+ payload,
1215
+ (req, opt) => adminLiveDraw.getTodayLiveDrawEvents(req, opt),
1216
+ options
1217
+ );
1218
+ };
1219
+ const getTodayCurrentRoundLiveDrawEvents = (payload, options) => {
1220
+ return grpc.unary(
1221
+ _chunkXID56HIJcjs.GetTodayCurrentRoundLiveDrawEventsReqSchema,
1222
+ payload,
1223
+ (req, opt) => adminLiveDraw.getTodayCurrentRoundLiveDrawEvents(req, opt),
1224
+ options
1225
+ );
1226
+ };
1227
+ const startLiveDrawEvent = (payload, options) => {
1228
+ return grpc.unary(
1229
+ _chunkXID56HIJcjs.StartLiveDrawEventReqSchema,
1230
+ payload,
1231
+ (req, opt) => adminLiveDraw.startLiveDrawEvent(req, opt),
1232
+ options
1233
+ );
1234
+ };
1235
+ const redrawLiveDrawEvent = (payload, options) => {
1236
+ return grpc.unary(
1237
+ _chunkXID56HIJcjs.RedrawLiveDrawEventReqSchema,
1238
+ payload,
1239
+ (req, opt) => adminLiveDraw.redrawLiveDrawEvent(req, opt),
1240
+ options
1241
+ );
1242
+ };
1243
+ const confirmLiveDraw = (payload, options) => {
1244
+ return grpc.unary(
1245
+ _chunkXID56HIJcjs.ConfirmLiveDrawReqSchema,
1246
+ payload,
1247
+ (req, opt) => adminLiveDraw.confirmLiveDraw(req, opt),
1248
+ options
1249
+ );
1250
+ };
1251
+ const liveDrawEventPhoneCallPlayer = (payload, options) => {
1252
+ return grpc.unary(
1253
+ _chunkXID56HIJcjs.LiveDrawEventPhoneCallPlayerReqSchema,
1254
+ payload,
1255
+ (req, opt) => adminLiveDraw.liveDrawEventPhoneCallPlayer(req, opt),
1256
+ options
1257
+ );
1258
+ };
1259
+ const getLiveDrawEventWinnerList = (payload, options) => {
1260
+ return grpc.unary(
1261
+ _chunkXID56HIJcjs.GetLiveDrawEventWinnerListReqSchema,
1262
+ payload,
1263
+ (req, opt) => adminLiveDraw.getLiveDrawEventWinnerList(req, opt),
1264
+ options
1265
+ );
1266
+ };
1267
+ const makePhoneCall = (payload, options) => {
1268
+ return grpc.unary(
1269
+ _chunkXID56HIJcjs.MakePhoneCallReqSchema,
1270
+ payload,
1271
+ (req, opt) => adminLiveDraw.makePhoneCall(req, opt),
1272
+ options
1273
+ );
1274
+ };
1275
+ const getCharityDetail = (payload, options) => {
1276
+ return grpc.unary(
1277
+ _chunkXID56HIJcjs.EmptySchema,
1278
+ payload,
1279
+ (req, opt) => charity.getCharityDetail(req, opt),
1280
+ options
1281
+ );
1282
+ };
1283
+ const getPlayerCharityDetail = (payload, options) => {
1284
+ return grpc.unary(
1285
+ _chunkXID56HIJcjs.EmptySchema,
1286
+ payload,
1287
+ (req, opt) => charity.getPlayerCharityDetail(req, opt),
1288
+ options
1289
+ );
1290
+ };
1291
+ const getPlayerRewardProgress = (payload, options) => {
1292
+ return grpc.unary(
1293
+ _chunkXID56HIJcjs.GetPlayerRewardProgressReqSchema,
1294
+ payload,
1295
+ (req, opt) => leaderboard.getPlayerRewardProgress(req, opt),
1296
+ options
1297
+ );
1298
+ };
1299
+ const claimReward = (payload, options) => {
1300
+ return grpc.unary(
1301
+ _chunkXID56HIJcjs.ClaimRewardReqSchema,
1302
+ payload,
1303
+ (req, opt) => leaderboard.claimReward(req, opt),
1304
+ options
1305
+ );
1306
+ };
1307
+ const getLuckyDrawRewardList = (payload, options) => {
1308
+ return grpc.unary(
1309
+ _chunkXID56HIJcjs.GetLuckyDrawRewardListReqSchema,
1310
+ payload,
1311
+ (req, opt) => liveDraw.getLuckyDrawRewardList(req, opt),
1312
+ options
1313
+ );
1314
+ };
1315
+ const getPlayerTicketList = (payload, options) => {
1316
+ return grpc.unary(
1317
+ _chunkXID56HIJcjs.EmptySchema,
1318
+ payload,
1319
+ (req, opt) => liveDraw.getPlayerTicketList(req, opt),
1320
+ options
1321
+ );
1322
+ };
1323
+ const getPlayerInRiskList = (payload, options) => {
1324
+ return grpc.unary(
1325
+ _chunkXID56HIJcjs.EmptySchema,
1326
+ payload,
1327
+ (req, opt) => liveDraw.getPlayerInRiskList(req, opt),
1328
+ options
1329
+ );
1330
+ };
1331
+ const claimCampaignPromoCode = (payload, options) => {
1332
+ return grpc.unary(
1333
+ _chunkXID56HIJcjs.ClaimCampaignPromoCodeReqSchema,
1334
+ payload,
1335
+ (req, opt) => promotion.claimCampaignPromoCode(req, opt),
1336
+ options
1337
+ );
1338
+ };
1339
+ const hasReceiveEventCampaignReward = (payload, options) => {
1340
+ return grpc.unary(
1341
+ _chunkXID56HIJcjs.HasReceiveEventCampaignRewardReqSchema,
1342
+ payload,
1343
+ (req, opt) => promotion.hasReceiveEventCampaignReward(req, opt),
1344
+ options
1345
+ );
1346
+ };
1347
+ const getPlayerFreeSpinInfo = (payload, options) => {
1348
+ return grpc.unary(
1349
+ _chunkXID56HIJcjs.GetPlayerFreeSpinInfoReqSchema,
1350
+ payload,
1351
+ (req, opt) => frontend.getPlayerFreeSpinInfo(req, opt),
1352
+ options
1353
+ );
1354
+ };
1355
+ const getFreeSpinHistory = (payload, options) => {
1356
+ return grpc.unary(
1357
+ _chunkXID56HIJcjs.GetFreeSpinHistoryReqSchema,
1358
+ payload,
1359
+ (req, opt) => frontend.getFreeSpinHistory(req, opt),
1360
+ options
1361
+ );
1362
+ };
1363
+ const getCurrentMissionConfig = (payload, options) => {
1364
+ return grpc.unary(
1365
+ _chunkXID56HIJcjs.EmptySchema,
1366
+ payload,
1367
+ (req, opt) => specialEvent.getCurrentMissionConfig(req, opt),
1368
+ options
1369
+ );
1370
+ };
1371
+ const getPlayerTaskProgress = (payload, options) => {
1372
+ return grpc.unary(
1373
+ _chunkXID56HIJcjs.GetPlayerTaskProgressReqSchema,
1374
+ payload,
1375
+ (req, opt) => specialEvent.getPlayerTaskProgress(req, opt),
1376
+ options
1377
+ );
1378
+ };
1379
+ const claimTaskReward = (payload, options) => {
1380
+ return grpc.unary(
1381
+ _chunkXID56HIJcjs.ClaimTaskRewardReqSchema,
1382
+ payload,
1383
+ (req, opt) => specialEvent.claimTaskReward(req, opt),
1384
+ options
1385
+ );
1386
+ };
1387
+ const checkAndCreateMission = (payload, options) => {
1388
+ return grpc.unary(
1389
+ _chunkXID56HIJcjs.CheckAndCreateMissionReqSchema,
1390
+ payload,
1391
+ (req, opt) => specialEvent.checkAndCreateMission(req, opt),
1392
+ options
1393
+ );
1394
+ };
1395
+ const getCurrentCardEvents = (payload, options) => {
1396
+ return grpc.unary(
1397
+ _chunkXID56HIJcjs.EmptySchema,
1398
+ payload,
1399
+ (req, opt) => specialEvent.getCurrentCardEvents(req, opt),
1400
+ options
1401
+ );
1402
+ };
1403
+ const playerReceiveEgg = (payload, options) => {
1404
+ return grpc.unary(
1405
+ _chunkXID56HIJcjs.PlayerReceiveEggReqSchema,
1406
+ payload,
1407
+ (req, opt) => specialEvent.playerReceiveEgg(req, opt),
1408
+ options
1409
+ );
1410
+ };
1411
+ const getConsumptionProgress = (payload, options) => {
1412
+ return grpc.unary(
1413
+ _chunkXID56HIJcjs.GetConsumptionProgressReqSchema,
1414
+ payload,
1415
+ (req, opt) => specialEvent.getConsumptionProgress(req, opt),
1416
+ options
1417
+ );
1418
+ };
1419
+ const playerClaimAllDailyReward = (payload, options) => {
1420
+ return grpc.unary(
1421
+ _chunkXID56HIJcjs.PlayerClaimAllDailyRewardReqSchema,
1422
+ payload,
1423
+ (req, opt) => specialEvent.playerClaimAllDailyReward(req, opt),
1424
+ options
1425
+ );
1426
+ };
1427
+ const claimTimedEventReward = (payload, options) => {
1428
+ return grpc.unary(
1429
+ _chunkXID56HIJcjs.ClaimTimedEventRewardReqSchema,
1430
+ payload,
1431
+ (req, opt) => specialEvent.claimTimedEventReward(req, opt),
1432
+ options
1433
+ );
1434
+ };
1435
+ const getEventRewardHistory = (payload, options) => {
1436
+ return grpc.unary(
1437
+ _chunkXID56HIJcjs.GetEventRewardHistoryReqSchema,
1438
+ payload,
1439
+ (req, opt) => specialEvent.getEventRewardHistory(req, opt),
1440
+ options
1441
+ );
1442
+ };
1443
+ const dailyClaimReward = (payload, options) => {
1444
+ return grpc.unary(
1445
+ _chunkXID56HIJcjs.DailyClaimRewardReqSchema,
1446
+ payload,
1447
+ (req, opt) => specialEvent.dailyClaimReward(req, opt),
1448
+ options
1449
+ );
1450
+ };
1451
+ const queryPlayerEgg = (payload, options) => {
1452
+ return grpc.unary(
1453
+ _chunkXID56HIJcjs.QueryPlayerEggReqSchema,
1454
+ payload,
1455
+ (req, opt) => specialEvent.queryPlayerEgg(req, opt),
1456
+ options
1457
+ );
1458
+ };
1459
+ const updateTutorialFlag = (payload, options) => {
1460
+ return grpc.unary(
1461
+ _chunkXID56HIJcjs.UpdateTutorialFlagReqSchema,
1462
+ payload,
1463
+ (req, opt) => specialEvent.updateTutorialFlag(req, opt),
1464
+ options
1465
+ );
1466
+ };
1467
+ const referralAssistance = (payload, options) => {
1468
+ return grpc.unary(
1469
+ _chunkXID56HIJcjs.ReferralAssistanceReqSchema,
1470
+ payload,
1471
+ (req, opt) => specialEvent.referralAssistance(req, opt),
1472
+ options
1473
+ );
1474
+ };
1475
+ const getSingleRewardInfo = (payload, options) => {
1476
+ return grpc.unary(
1477
+ _chunkXID56HIJcjs.GetSingleRewardInfoReqSchema,
1478
+ payload,
1479
+ (req, opt) => specialEvent.getSingleRewardInfo(req, opt),
1480
+ options
1481
+ );
1482
+ };
1483
+ const getPlayerRedPacketRecords = (payload, options) => {
1484
+ return grpc.unary(
1485
+ _chunkXID56HIJcjs.GetPlayerRedPacketRecordsReqSchema,
1486
+ payload,
1487
+ (req, opt) => specialEvent.getPlayerRedPacketRecords(req, opt),
1488
+ options
1489
+ );
1490
+ };
1491
+ return {
1492
+ transport: "grpc",
1493
+ getTodayLiveDrawEvents,
1494
+ getTodayCurrentRoundLiveDrawEvents,
1495
+ startLiveDrawEvent,
1496
+ redrawLiveDrawEvent,
1497
+ confirmLiveDraw,
1498
+ liveDrawEventPhoneCallPlayer,
1499
+ getLiveDrawEventWinnerList,
1500
+ makePhoneCall,
1501
+ getCharityDetail,
1502
+ getPlayerCharityDetail,
1503
+ getPlayerRewardProgress,
1504
+ claimReward,
1505
+ getLuckyDrawRewardList,
1506
+ getPlayerTicketList,
1507
+ getPlayerInRiskList,
1508
+ claimCampaignPromoCode,
1509
+ hasReceiveEventCampaignReward,
1510
+ getPlayerFreeSpinInfo,
1511
+ getFreeSpinHistory,
1512
+ getCurrentMissionConfig,
1513
+ getPlayerTaskProgress,
1514
+ claimTaskReward,
1515
+ checkAndCreateMission,
1516
+ getCurrentCardEvents,
1517
+ playerReceiveEgg,
1518
+ getConsumptionProgress,
1519
+ playerClaimAllDailyReward,
1520
+ claimTimedEventReward,
1521
+ getEventRewardHistory,
1522
+ dailyClaimReward,
1523
+ queryPlayerEgg,
1524
+ updateTutorialFlag,
1525
+ referralAssistance,
1526
+ getSingleRewardInfo,
1527
+ getPlayerRedPacketRecords
1528
+ };
1529
+ };
1530
+
1531
+ // src/modules/recommend.ts
1532
+ var recommendService = (grpc) => {
1533
+ const client = grpc.getService(_chunkXID56HIJcjs.FrontendRecommendService);
1534
+ const saveSearchHistory = (payload, options) => {
1535
+ return grpc.unary(
1536
+ _chunkXID56HIJcjs.SaveSearchHistoryReqSchema,
1537
+ payload,
1538
+ (req, opt) => client.saveSearchHistory(req, opt),
1539
+ options
1540
+ );
1541
+ };
1542
+ const getSearchHistories = (payload, options) => {
1543
+ return grpc.unary(
1544
+ _chunkXID56HIJcjs.EmptySchema,
1545
+ payload,
1546
+ (req, opt) => client.getSearchHistories(req, opt),
1547
+ options
1548
+ );
1549
+ };
1550
+ const deleteSearchHistory = (payload, options) => {
1551
+ return grpc.unary(
1552
+ _chunkXID56HIJcjs.DeleteSearchHistoryReqSchema,
1553
+ payload,
1554
+ (req, opt) => client.deleteSearchHistory(req, opt),
1555
+ options
1556
+ );
1557
+ };
1558
+ const searchGames = (payload, options) => {
1559
+ return grpc.unary(
1560
+ _chunkXID56HIJcjs.SearchGamesReqSchema,
1561
+ payload,
1562
+ (req, opt) => client.searchGames(req, opt),
1563
+ options
1564
+ );
1565
+ };
1566
+ return {
1567
+ transport: "grpc",
1568
+ saveSearchHistory,
1569
+ getSearchHistories,
1570
+ deleteSearchHistory,
1571
+ searchGames
1572
+ };
1573
+ };
1574
+
1575
+ // src/modules/riskcontrol.ts
1576
+ var riskcontrolService = (grpc) => {
1577
+ const client = grpc.getService(_chunkXID56HIJcjs.FrontendDepositLimitService);
1578
+ const getPlayerDepositLimitStateOverview = (payload, options) => {
1579
+ return grpc.unary(
1580
+ _chunkXID56HIJcjs.EmptySchema,
1581
+ payload,
1582
+ (req, opt) => client.playerDepositLimitStateOverview(req, opt),
1583
+ options
1584
+ );
1585
+ };
1586
+ const updatePlayerDepositLimitSwitch = (payload, options) => {
1587
+ return grpc.unary(
1588
+ _chunkXID56HIJcjs.UpdatePlayerDepositLimitSwitchReqSchema,
1589
+ payload,
1590
+ (req, opt) => client.updatePlayerDepositLimitSwitch(req, opt),
1591
+ options
1592
+ );
1593
+ };
1594
+ const updatePlayerPeriodDepositLimit = (payload, options) => {
1595
+ return grpc.unary(
1596
+ _chunkXID56HIJcjs.UpdatePlayerPeriodDepositLimitReqSchema,
1597
+ payload,
1598
+ (req, opt) => client.updatePlayerPeriodDepositLimit(req, opt),
1599
+ options
1600
+ );
1601
+ };
1602
+ return {
1603
+ transport: "grpc",
1604
+ getPlayerDepositLimitStateOverview,
1605
+ updatePlayerDepositLimitSwitch,
1606
+ updatePlayerPeriodDepositLimit
1607
+ };
1608
+ };
1609
+
1610
+ // src/modules/userEngagement.ts
1611
+ var userEngagementService = (grpc) => {
1612
+ const client = grpc.getService(_chunkXID56HIJcjs.FrontendPwaNotificationService);
1613
+ const updatePWASubscriptionStatus = (payload, options) => {
1614
+ return grpc.unary(
1615
+ _chunkXID56HIJcjs.UpdatePWASubscriptionStatusReqSchema,
1616
+ payload,
1617
+ (req, opt) => client.updatePWASubscriptionStatus(req, opt),
1618
+ options
1619
+ );
1620
+ };
1621
+ return {
1622
+ transport: "grpc",
1623
+ updatePWASubscriptionStatus
1624
+ };
1625
+ };
1626
+
1627
+ // src/modules/legacy.ts
1628
+ function createLegacyServices(grpc) {
1629
+ return {
1630
+ auth: authService(grpc),
1631
+ packet: packetService(grpc),
1632
+ payment: paymentService(grpc),
1633
+ player: playerService(grpc),
1634
+ promotion: promotionService(grpc),
1635
+ recommend: recommendService(grpc),
1636
+ riskcontrol: riskcontrolService(grpc),
1637
+ userEngagement: userEngagementService(grpc)
1638
+ };
1639
+ }
1640
+
1641
+
1642
+ exports.createLegacyServices = createLegacyServices;
1643
+ //# sourceMappingURL=legacy-CO3UUF6P.cjs.map