@opexa/portal-sdk 0.0.59 → 0.0.61
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 +52 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +237 -211
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +3 -3
- package/dist/sdk/session-manager.d.ts +4 -5
- package/dist/sdk/types.d.ts +1 -0
- package/dist/services/auth.service.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = (o, e, t) =>
|
|
1
|
+
var Ce = Object.defineProperty;
|
|
2
|
+
var Te = (o, e, t) => e in o ? Ce(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var m = (o, e, t) => Te(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ObjectId as A } from "@opexa/object-id";
|
|
5
5
|
import { ObjectId as Yt } from "@opexa/object-id";
|
|
6
|
-
const
|
|
6
|
+
const b = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
9
9
|
Withdrawal: 14,
|
|
@@ -28,7 +28,7 @@ const L = n`
|
|
|
28
28
|
status
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`, ve = n`
|
|
32
32
|
${L}
|
|
33
33
|
|
|
34
34
|
query File($id: ObjectId!) {
|
|
@@ -38,7 +38,7 @@ const L = n`
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`,
|
|
41
|
+
`, Me = n`
|
|
42
42
|
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
43
43
|
uploadPrivateImageFile(input: $input) {
|
|
44
44
|
... on FileFormatNotSupportedError {
|
|
@@ -52,7 +52,7 @@ const L = n`
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`, Ne = n`
|
|
56
56
|
query Wallet {
|
|
57
57
|
wallet {
|
|
58
58
|
id
|
|
@@ -62,7 +62,7 @@ const L = n`
|
|
|
62
62
|
dateTimeLastUpdated
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`,
|
|
65
|
+
`, Ie = n`
|
|
66
66
|
query PointsWallet {
|
|
67
67
|
pointsWallet {
|
|
68
68
|
id
|
|
@@ -71,7 +71,7 @@ const L = n`
|
|
|
71
71
|
dateTimeCreated
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`,
|
|
74
|
+
`, De = n`
|
|
75
75
|
mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
|
|
76
76
|
pointsToCashConversion(input: $input) {
|
|
77
77
|
... on InsufficientPointsError {
|
|
@@ -79,7 +79,7 @@ const L = n`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`, Re = n`
|
|
83
83
|
query PointsWalletTransactions(
|
|
84
84
|
$first: Int
|
|
85
85
|
$after: Cursor
|
|
@@ -139,7 +139,7 @@ const L = n`
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
`,
|
|
142
|
+
`, Se = n`
|
|
143
143
|
query GameSession($id: ObjectId!) {
|
|
144
144
|
node(id: $id) {
|
|
145
145
|
... on GameSession {
|
|
@@ -151,7 +151,7 @@ const L = n`
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`, Ae = n`
|
|
155
155
|
mutation CreateGameSession($input: CreateGameSessionInput!) {
|
|
156
156
|
createGameSession(input: $input) {
|
|
157
157
|
... on GameDoesNotExistError {
|
|
@@ -159,11 +159,11 @@ const L = n`
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
`,
|
|
162
|
+
`, Pe = n`
|
|
163
163
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
164
164
|
endGameSession(input: $input)
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
166
|
+
`, xe = n`
|
|
167
167
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
168
168
|
endGameSession(input: $input) {
|
|
169
169
|
... on GameSessionDoesNotExistError {
|
|
@@ -177,7 +177,7 @@ const L = n`
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`, Ge = n`
|
|
181
181
|
query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
|
|
182
182
|
announcements(first: $first, after: $after, filter: $filter) {
|
|
183
183
|
edges {
|
|
@@ -203,7 +203,7 @@ const L = n`
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
`,
|
|
206
|
+
`, We = n`
|
|
207
207
|
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
208
208
|
member {
|
|
209
209
|
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -270,7 +270,7 @@ const L = n`
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
`,
|
|
273
|
+
`, $e = n`
|
|
274
274
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
275
275
|
createGCashWithdrawal(input: $input) {
|
|
276
276
|
... on AccountNotVerifiedError {
|
|
@@ -293,7 +293,7 @@ const L = n`
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
`,
|
|
296
|
+
`, Ue = n`
|
|
297
297
|
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
298
298
|
createMayaWithdrawal(input: $input) {
|
|
299
299
|
... on AccountNotVerifiedError {
|
|
@@ -316,7 +316,7 @@ const L = n`
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
`,
|
|
319
|
+
`, Oe = n`
|
|
320
320
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
321
321
|
createMayaAppWithdrawal(input: $input) {
|
|
322
322
|
... on AccountNotVerifiedError {
|
|
@@ -336,7 +336,7 @@ const L = n`
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
`,
|
|
339
|
+
`, Be = n`
|
|
340
340
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
341
341
|
createMayaAppWithdrawal: createMayaAppWithdrawal_next(input: $input) {
|
|
342
342
|
... on AccountNotVerifiedError {
|
|
@@ -356,7 +356,7 @@ const L = n`
|
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
`,
|
|
359
|
+
`, qe = n`
|
|
360
360
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
361
361
|
createBankWithdrawal(input: $input) {
|
|
362
362
|
... on MobileNumberNotVerifiedError {
|
|
@@ -379,11 +379,11 @@ const L = n`
|
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
`,
|
|
382
|
+
`, Fe = n`
|
|
383
383
|
query RemainingDailyWithdrawalsCount {
|
|
384
384
|
remainingDailyWithdrawalsCount
|
|
385
385
|
}
|
|
386
|
-
`,
|
|
386
|
+
`, Le = n`
|
|
387
387
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
388
388
|
member {
|
|
389
389
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -412,7 +412,7 @@ const L = n`
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
`,
|
|
415
|
+
`, Ve = n`
|
|
416
416
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
417
417
|
createGCashDeposit(input: $input) {
|
|
418
418
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -441,7 +441,7 @@ const L = n`
|
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
`,
|
|
444
|
+
`, Ye = n`
|
|
445
445
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
446
446
|
createMayaDeposit(input: $input) {
|
|
447
447
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -470,7 +470,7 @@ const L = n`
|
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
`,
|
|
473
|
+
`, He = n`
|
|
474
474
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
475
475
|
createMayaAppDeposit(input: $input) {
|
|
476
476
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -499,7 +499,7 @@ const L = n`
|
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
`,
|
|
502
|
+
`, je = n`
|
|
503
503
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
504
504
|
createMayaAppDeposit: createMayaAppDeposit_next(input: $input) {
|
|
505
505
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -528,7 +528,7 @@ const L = n`
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
`,
|
|
531
|
+
`, Qe = n`
|
|
532
532
|
query Deposit($id: ObjectId!) {
|
|
533
533
|
node(id: $id) {
|
|
534
534
|
... on GCashDeposit {
|
|
@@ -560,7 +560,7 @@ const L = n`
|
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
`,
|
|
563
|
+
`, Ke = n`
|
|
564
564
|
query DepositsCount {
|
|
565
565
|
member {
|
|
566
566
|
depositsCount
|
|
@@ -607,7 +607,7 @@ const L = n`
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
`,
|
|
610
|
+
`, ze = n`
|
|
611
611
|
query LatestBetRecords {
|
|
612
612
|
latestBetRecords {
|
|
613
613
|
id
|
|
@@ -627,7 +627,7 @@ const L = n`
|
|
|
627
627
|
dateTimeCreated
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
`,
|
|
630
|
+
`, Xe = n`
|
|
631
631
|
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
632
632
|
member {
|
|
633
633
|
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -672,7 +672,7 @@ const L = n`
|
|
|
672
672
|
dateTimeCreated
|
|
673
673
|
dateTimeLastUpdated
|
|
674
674
|
}
|
|
675
|
-
`,
|
|
675
|
+
`, Ze = n`
|
|
676
676
|
${H}
|
|
677
677
|
|
|
678
678
|
query Promos {
|
|
@@ -680,7 +680,7 @@ const L = n`
|
|
|
680
680
|
...PromoFragment
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
`,
|
|
683
|
+
`, et = n`
|
|
684
684
|
${H}
|
|
685
685
|
|
|
686
686
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
@@ -705,7 +705,7 @@ const L = n`
|
|
|
705
705
|
dateTimeCreated
|
|
706
706
|
dateTimeLastUpdated
|
|
707
707
|
}
|
|
708
|
-
`,
|
|
708
|
+
`, tt = n`
|
|
709
709
|
${be}
|
|
710
710
|
|
|
711
711
|
query Cashbacks {
|
|
@@ -713,7 +713,7 @@ const L = n`
|
|
|
713
713
|
...CashbackFragment
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
`,
|
|
716
|
+
`, rt = n`
|
|
717
717
|
${H}
|
|
718
718
|
|
|
719
719
|
query Bonus {
|
|
@@ -742,7 +742,7 @@ const L = n`
|
|
|
742
742
|
dateTimeLastUpdated
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
`,
|
|
745
|
+
`, at = n`
|
|
746
746
|
${be}
|
|
747
747
|
|
|
748
748
|
query CashbackBonuses {
|
|
@@ -756,7 +756,7 @@ const L = n`
|
|
|
756
756
|
dateTimeLastUpdated
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
`,
|
|
759
|
+
`, ot = n`
|
|
760
760
|
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
761
761
|
claimCashbackBonus(input: $input) {
|
|
762
762
|
... on CashbackBonusDoesNotExistError {
|
|
@@ -764,13 +764,13 @@ const L = n`
|
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
`,
|
|
767
|
+
`, nt = n`
|
|
768
768
|
query Member {
|
|
769
769
|
member {
|
|
770
770
|
dateTimeLastActive
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
|
-
`,
|
|
773
|
+
`, it = n`
|
|
774
774
|
query MemberAccount {
|
|
775
775
|
memberAccount: self {
|
|
776
776
|
... on MemberAccount {
|
|
@@ -794,7 +794,7 @@ const L = n`
|
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
|
-
`,
|
|
797
|
+
`, st = n`
|
|
798
798
|
${L}
|
|
799
799
|
|
|
800
800
|
query MemberVerification {
|
|
@@ -818,7 +818,7 @@ const L = n`
|
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
|
-
`,
|
|
821
|
+
`, ct = n`
|
|
822
822
|
mutation RegisterMemberAccount(
|
|
823
823
|
$input: RegisterMemberAccountInput!
|
|
824
824
|
$referralCode: String
|
|
@@ -854,7 +854,7 @@ const L = n`
|
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
`,
|
|
857
|
+
`, mt = n`
|
|
858
858
|
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
859
859
|
registerMayaMemberAccount(input: $input) {
|
|
860
860
|
... on AccountNameNotAvailableError {
|
|
@@ -862,7 +862,7 @@ const L = n`
|
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
`,
|
|
865
|
+
`, dt = n`
|
|
866
866
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
867
867
|
updateMemberAccount(input: $input) {
|
|
868
868
|
... on AccountNameNotAvailableError {
|
|
@@ -888,7 +888,7 @@ const L = n`
|
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
|
-
`,
|
|
891
|
+
`, ut = n`
|
|
892
892
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
893
893
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
894
894
|
... on AccountNotFoundError {
|
|
@@ -899,11 +899,11 @@ const L = n`
|
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
`,
|
|
902
|
+
`, lt = n`
|
|
903
903
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
904
904
|
deleteMemberAccount(input: $input)
|
|
905
905
|
}
|
|
906
|
-
`,
|
|
906
|
+
`, pt = n`
|
|
907
907
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
908
908
|
verifyMobileNumber(input: $input) {
|
|
909
909
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -914,7 +914,7 @@ const L = n`
|
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
`,
|
|
917
|
+
`, ft = n`
|
|
918
918
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
919
919
|
createMemberVerification(input: $input) {
|
|
920
920
|
... on FileDoesNotExistError {
|
|
@@ -928,7 +928,7 @@ const L = n`
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
`,
|
|
931
|
+
`, ht = n`
|
|
932
932
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
933
933
|
updateMemberVerification(input: $input) {
|
|
934
934
|
... on FileDoesNotExistError {
|
|
@@ -945,7 +945,7 @@ const L = n`
|
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
`,
|
|
948
|
+
`, yt = n`
|
|
949
949
|
query ProfileCompletion {
|
|
950
950
|
profileCompletion {
|
|
951
951
|
completionPercentage
|
|
@@ -956,7 +956,7 @@ const L = n`
|
|
|
956
956
|
accountPassword
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
`,
|
|
959
|
+
`, wt = n`
|
|
960
960
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
961
961
|
sendVerificationCode(input: $input) {
|
|
962
962
|
... on InvalidPlatformError {
|
|
@@ -967,7 +967,7 @@ const L = n`
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
`,
|
|
970
|
+
`, gt = n`
|
|
971
971
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
972
972
|
minimumAmount
|
|
973
973
|
maximumAmount
|
|
@@ -1021,7 +1021,7 @@ const L = n`
|
|
|
1021
1021
|
multiplier
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
|
-
`,
|
|
1024
|
+
`, Et = n`
|
|
1025
1025
|
query MayaSession($id: ObjectId!) {
|
|
1026
1026
|
mayaSession(id: $id) {
|
|
1027
1027
|
id
|
|
@@ -1033,7 +1033,7 @@ const L = n`
|
|
|
1033
1033
|
mutation ValidateMayaSession {
|
|
1034
1034
|
validateMayaSession: validMayaSession
|
|
1035
1035
|
}
|
|
1036
|
-
`,
|
|
1036
|
+
`, At = n`
|
|
1037
1037
|
query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
|
|
1038
1038
|
member {
|
|
1039
1039
|
activityRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -1058,11 +1058,11 @@ const L = n`
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
}
|
|
1061
|
-
`,
|
|
1061
|
+
`, bt = n`
|
|
1062
1062
|
query ReferralCode {
|
|
1063
1063
|
referralCode
|
|
1064
1064
|
}
|
|
1065
|
-
`,
|
|
1065
|
+
`, kt = n`
|
|
1066
1066
|
mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
|
|
1067
1067
|
updateReferralCode(input: $input) {
|
|
1068
1068
|
... on ReferralCodeNotAvailableError {
|
|
@@ -1126,21 +1126,21 @@ function d(o) {
|
|
|
1126
1126
|
}[o]
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
class
|
|
1129
|
+
class _t {
|
|
1130
1130
|
constructor(e) {
|
|
1131
1131
|
m(this, "client");
|
|
1132
1132
|
this.client = e;
|
|
1133
1133
|
}
|
|
1134
1134
|
/** aka `Query.self` */
|
|
1135
1135
|
async memberAccount() {
|
|
1136
|
-
const e = await this.client.request(
|
|
1136
|
+
const e = await this.client.request(it);
|
|
1137
1137
|
return e.ok ? {
|
|
1138
1138
|
ok: !0,
|
|
1139
1139
|
data: e.data.memberAccount
|
|
1140
1140
|
} : e;
|
|
1141
1141
|
}
|
|
1142
1142
|
async registerMemberAccount(e) {
|
|
1143
|
-
const t = await this.client.request(
|
|
1143
|
+
const t = await this.client.request(ct, e);
|
|
1144
1144
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1145
1145
|
ok: !1,
|
|
1146
1146
|
error: d(t.data.registerMemberAccount.__typename)
|
|
@@ -1149,7 +1149,7 @@ class Ct {
|
|
|
1149
1149
|
} : t;
|
|
1150
1150
|
}
|
|
1151
1151
|
async updateMemberAccount(e) {
|
|
1152
|
-
const t = await this.client.request(
|
|
1152
|
+
const t = await this.client.request(dt, e);
|
|
1153
1153
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1154
1154
|
ok: !1,
|
|
1155
1155
|
error: d(t.data.updateMemberAccount.__typename)
|
|
@@ -1158,7 +1158,7 @@ class Ct {
|
|
|
1158
1158
|
} : t;
|
|
1159
1159
|
}
|
|
1160
1160
|
async deleteMemberAccount(e) {
|
|
1161
|
-
const t = await this.client.request(
|
|
1161
|
+
const t = await this.client.request(lt, e);
|
|
1162
1162
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1163
1163
|
ok: !0
|
|
1164
1164
|
} : {
|
|
@@ -1171,7 +1171,7 @@ class Ct {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
async resetPassword(e) {
|
|
1173
1173
|
const t = await this.client.request(
|
|
1174
|
-
|
|
1174
|
+
ut,
|
|
1175
1175
|
e
|
|
1176
1176
|
);
|
|
1177
1177
|
return t.ok ? t.data.resetPassword ? {
|
|
@@ -1182,14 +1182,14 @@ class Ct {
|
|
|
1182
1182
|
} : t;
|
|
1183
1183
|
}
|
|
1184
1184
|
async profileCompletion() {
|
|
1185
|
-
const e = await this.client.request(
|
|
1185
|
+
const e = await this.client.request(yt);
|
|
1186
1186
|
return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
|
|
1187
1187
|
}
|
|
1188
1188
|
async platform() {
|
|
1189
|
-
return await this.client.request(
|
|
1189
|
+
return await this.client.request(gt);
|
|
1190
1190
|
}
|
|
1191
1191
|
async sendVerificationCode(e) {
|
|
1192
|
-
const t = await this.client.request(
|
|
1192
|
+
const t = await this.client.request(wt, e);
|
|
1193
1193
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1194
1194
|
ok: !1,
|
|
1195
1195
|
error: d(t.data.sendVerificationCode.__typename)
|
|
@@ -1198,7 +1198,7 @@ class Ct {
|
|
|
1198
1198
|
} : t;
|
|
1199
1199
|
}
|
|
1200
1200
|
async verifyMobileNumber(e) {
|
|
1201
|
-
const t = await this.client.request(
|
|
1201
|
+
const t = await this.client.request(pt, e);
|
|
1202
1202
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1203
1203
|
ok: !1,
|
|
1204
1204
|
error: d(t.data.verifyMobileNumber.__typename)
|
|
@@ -1207,7 +1207,7 @@ class Ct {
|
|
|
1207
1207
|
} : t;
|
|
1208
1208
|
}
|
|
1209
1209
|
async createMemberVerification(e) {
|
|
1210
|
-
const t = await this.client.request(
|
|
1210
|
+
const t = await this.client.request(ft, e);
|
|
1211
1211
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1212
1212
|
ok: !1,
|
|
1213
1213
|
error: d(t.data.createMemberVerification.__typename)
|
|
@@ -1216,7 +1216,7 @@ class Ct {
|
|
|
1216
1216
|
} : t;
|
|
1217
1217
|
}
|
|
1218
1218
|
async updateMemberVerification(e) {
|
|
1219
|
-
const t = await this.client.request(
|
|
1219
|
+
const t = await this.client.request(ht, e);
|
|
1220
1220
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1221
1221
|
ok: !1,
|
|
1222
1222
|
error: d(t.data.updateMemberVerification.__typename)
|
|
@@ -1225,7 +1225,7 @@ class Ct {
|
|
|
1225
1225
|
} : t;
|
|
1226
1226
|
}
|
|
1227
1227
|
async memberVerification() {
|
|
1228
|
-
const e = await this.client.request(
|
|
1228
|
+
const e = await this.client.request(st);
|
|
1229
1229
|
return e.ok ? {
|
|
1230
1230
|
ok: !0,
|
|
1231
1231
|
data: e.data.memberAccount.verification
|
|
@@ -1233,7 +1233,7 @@ class Ct {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
async announcements(e) {
|
|
1235
1235
|
const t = await this.client.request(
|
|
1236
|
-
|
|
1236
|
+
Ge,
|
|
1237
1237
|
e
|
|
1238
1238
|
);
|
|
1239
1239
|
return t.ok ? {
|
|
@@ -1242,7 +1242,7 @@ class Ct {
|
|
|
1242
1242
|
} : t;
|
|
1243
1243
|
}
|
|
1244
1244
|
async registerMayaMemberAccount(e) {
|
|
1245
|
-
const t = await this.client.request(
|
|
1245
|
+
const t = await this.client.request(mt, e);
|
|
1246
1246
|
return t.ok ? t.data.registerMayaMemberAccount ? {
|
|
1247
1247
|
ok: !1,
|
|
1248
1248
|
error: d(t.data.registerMayaMemberAccount.__typename)
|
|
@@ -1251,14 +1251,14 @@ class Ct {
|
|
|
1251
1251
|
} : t;
|
|
1252
1252
|
}
|
|
1253
1253
|
async referralCode() {
|
|
1254
|
-
const e = await this.client.request(
|
|
1254
|
+
const e = await this.client.request(bt);
|
|
1255
1255
|
return e.ok ? {
|
|
1256
1256
|
ok: !0,
|
|
1257
1257
|
data: e.data.referralCode
|
|
1258
1258
|
} : e;
|
|
1259
1259
|
}
|
|
1260
1260
|
async updateReferralCode(e) {
|
|
1261
|
-
const t = await this.client.request(
|
|
1261
|
+
const t = await this.client.request(kt, e);
|
|
1262
1262
|
return t.ok ? t.data.updateReferralCode ? {
|
|
1263
1263
|
ok: !1,
|
|
1264
1264
|
error: d(t.data.updateReferralCode.__typename)
|
|
@@ -1267,6 +1267,9 @@ class Ct {
|
|
|
1267
1267
|
} : t;
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
+
function W(o) {
|
|
1271
|
+
return o.startsWith("+63") ? o : o.startsWith("63") ? `+${o}` : o.startsWith("0") ? `+63${o.substring(1)}` : `+63${o}`;
|
|
1272
|
+
}
|
|
1270
1273
|
function h(o, e) {
|
|
1271
1274
|
const t = V[o] ? V[o] : V[500];
|
|
1272
1275
|
return {
|
|
@@ -1283,7 +1286,7 @@ const V = {
|
|
|
1283
1286
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1284
1287
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1285
1288
|
};
|
|
1286
|
-
class
|
|
1289
|
+
class Ct {
|
|
1287
1290
|
constructor(e) {
|
|
1288
1291
|
m(this, "url");
|
|
1289
1292
|
m(this, "platform");
|
|
@@ -1423,8 +1426,33 @@ class Tt {
|
|
|
1423
1426
|
return !0;
|
|
1424
1427
|
}
|
|
1425
1428
|
}
|
|
1429
|
+
async sendVerificationCode(e) {
|
|
1430
|
+
try {
|
|
1431
|
+
const t = await fetch(`${this.url}/sendVerificationCode`, {
|
|
1432
|
+
method: "GET",
|
|
1433
|
+
headers: {
|
|
1434
|
+
"Content-Type": "application/json",
|
|
1435
|
+
"Platform-Code": this.platform,
|
|
1436
|
+
Role: "MEMBER"
|
|
1437
|
+
},
|
|
1438
|
+
body: JSON.stringify({
|
|
1439
|
+
channel: "SMS",
|
|
1440
|
+
recipient: W(e)
|
|
1441
|
+
})
|
|
1442
|
+
});
|
|
1443
|
+
return t.ok ? { ok: !0 } : {
|
|
1444
|
+
ok: !1,
|
|
1445
|
+
error: h(t.status)
|
|
1446
|
+
};
|
|
1447
|
+
} catch {
|
|
1448
|
+
return {
|
|
1449
|
+
ok: !1,
|
|
1450
|
+
error: h(500)
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1426
1454
|
}
|
|
1427
|
-
class
|
|
1455
|
+
class Tt {
|
|
1428
1456
|
constructor(e) {
|
|
1429
1457
|
m(this, "url");
|
|
1430
1458
|
m(this, "siteId");
|
|
@@ -1439,22 +1467,22 @@ class vt {
|
|
|
1439
1467
|
} : e;
|
|
1440
1468
|
}
|
|
1441
1469
|
async games(e) {
|
|
1442
|
-
var a, s, c,
|
|
1470
|
+
var a, s, c, u, l, f, y, p, C, T, v, M, N, E, I, D, k, R, P, x, _, G, U, O;
|
|
1443
1471
|
const t = new URLSearchParams();
|
|
1444
|
-
e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (
|
|
1472
|
+
e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (p = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && p.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (T = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && T.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (M = (v = e == null ? void 0 : e.filter) == null ? void 0 : v.provider) != null && M.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (E = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && E.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (D = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.provider) != null && D.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (R = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.tags) != null && R.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (x = (P = e == null ? void 0 : e.filter) == null ? void 0 : P.tags) != null && x.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (G = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.tags) != null && G.in && t.set(
|
|
1445
1473
|
"filter[tags][in]",
|
|
1446
|
-
e.filter.tags.in.map((
|
|
1474
|
+
e.filter.tags.in.map((S) => S.toLowerCase()).join(",")
|
|
1447
1475
|
), (O = (U = e == null ? void 0 : e.filter) == null ? void 0 : U.tags) != null && O.notIn && t.set(
|
|
1448
1476
|
"filter[tags][nin]",
|
|
1449
|
-
e.filter.tags.notIn.map((
|
|
1477
|
+
e.filter.tags.notIn.map((S) => S.toLowerCase()).join(",")
|
|
1450
1478
|
);
|
|
1451
1479
|
const r = await this.getJson("/games", t);
|
|
1452
1480
|
return r.ok ? {
|
|
1453
1481
|
ok: !0,
|
|
1454
1482
|
data: {
|
|
1455
|
-
edges: r.data.data.map((
|
|
1456
|
-
node:
|
|
1457
|
-
cursor:
|
|
1483
|
+
edges: r.data.data.map((S) => ({
|
|
1484
|
+
node: S,
|
|
1485
|
+
cursor: S.cursor
|
|
1458
1486
|
})),
|
|
1459
1487
|
totalCount: r.data.totalCount ?? 0,
|
|
1460
1488
|
pageInfo: {
|
|
@@ -1502,20 +1530,20 @@ class vt {
|
|
|
1502
1530
|
}
|
|
1503
1531
|
}
|
|
1504
1532
|
}
|
|
1505
|
-
class
|
|
1533
|
+
class vt {
|
|
1506
1534
|
constructor(e) {
|
|
1507
1535
|
m(this, "client");
|
|
1508
1536
|
this.client = e;
|
|
1509
1537
|
}
|
|
1510
1538
|
async file(e) {
|
|
1511
|
-
const t = await this.client.request(
|
|
1539
|
+
const t = await this.client.request(ve, e);
|
|
1512
1540
|
return t.ok ? {
|
|
1513
1541
|
ok: !0,
|
|
1514
1542
|
data: t.data.node
|
|
1515
1543
|
} : t;
|
|
1516
1544
|
}
|
|
1517
1545
|
async uploadPrivateImageFile(e) {
|
|
1518
|
-
const t = await this.client.upload(
|
|
1546
|
+
const t = await this.client.upload(Me, e);
|
|
1519
1547
|
return t.ok ? t.data.uploadPrivateImageFile ? {
|
|
1520
1548
|
ok: !1,
|
|
1521
1549
|
error: d(t.data.uploadPrivateImageFile.__typename)
|
|
@@ -1524,7 +1552,7 @@ class Mt {
|
|
|
1524
1552
|
} : t;
|
|
1525
1553
|
}
|
|
1526
1554
|
}
|
|
1527
|
-
class
|
|
1555
|
+
class Mt {
|
|
1528
1556
|
constructor(e) {
|
|
1529
1557
|
m(this, "client");
|
|
1530
1558
|
this.client = e;
|
|
@@ -1544,13 +1572,13 @@ class Nt {
|
|
|
1544
1572
|
}
|
|
1545
1573
|
async gameSession(e) {
|
|
1546
1574
|
const t = await this.client.request(
|
|
1547
|
-
|
|
1575
|
+
Se,
|
|
1548
1576
|
e
|
|
1549
1577
|
);
|
|
1550
1578
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1551
1579
|
}
|
|
1552
1580
|
async createGameSession(e) {
|
|
1553
|
-
const t = await this.client.request(
|
|
1581
|
+
const t = await this.client.request(Ae, e);
|
|
1554
1582
|
return t.ok ? t.data.createGameSession ? {
|
|
1555
1583
|
ok: !1,
|
|
1556
1584
|
error: d(t.data.createGameSession.__typename)
|
|
@@ -1559,7 +1587,7 @@ class Nt {
|
|
|
1559
1587
|
} : t;
|
|
1560
1588
|
}
|
|
1561
1589
|
async endGameSession(e) {
|
|
1562
|
-
const t = await this.client.request(
|
|
1590
|
+
const t = await this.client.request(xe, e);
|
|
1563
1591
|
return t.ok ? t.data.endGameSession ? {
|
|
1564
1592
|
ok: !1,
|
|
1565
1593
|
error: d(t.data.endGameSession.__typename)
|
|
@@ -1568,20 +1596,20 @@ class Nt {
|
|
|
1568
1596
|
} : t;
|
|
1569
1597
|
}
|
|
1570
1598
|
}
|
|
1571
|
-
class
|
|
1599
|
+
class Nt {
|
|
1572
1600
|
constructor(e) {
|
|
1573
1601
|
m(this, "client");
|
|
1574
1602
|
this.client = e;
|
|
1575
1603
|
}
|
|
1576
1604
|
async latestBetRecords() {
|
|
1577
|
-
const e = await this.client.request(
|
|
1605
|
+
const e = await this.client.request(ze);
|
|
1578
1606
|
return e.ok ? {
|
|
1579
1607
|
ok: !0,
|
|
1580
1608
|
data: e.data.latestBetRecords
|
|
1581
1609
|
} : e;
|
|
1582
1610
|
}
|
|
1583
1611
|
}
|
|
1584
|
-
class
|
|
1612
|
+
class It {
|
|
1585
1613
|
constructor(e) {
|
|
1586
1614
|
m(this, "client");
|
|
1587
1615
|
this.client = e;
|
|
@@ -1594,44 +1622,44 @@ class Dt {
|
|
|
1594
1622
|
return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
|
|
1595
1623
|
}
|
|
1596
1624
|
async transactionRecords(e) {
|
|
1597
|
-
const t = await this.client.request(
|
|
1625
|
+
const t = await this.client.request(Xe, e);
|
|
1598
1626
|
return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
|
|
1599
1627
|
}
|
|
1600
1628
|
async withdrawalRecords(e) {
|
|
1601
1629
|
const t = await this.client.request(
|
|
1602
|
-
|
|
1630
|
+
We,
|
|
1603
1631
|
e
|
|
1604
1632
|
);
|
|
1605
1633
|
return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
|
|
1606
1634
|
}
|
|
1607
1635
|
async depositRecords(e) {
|
|
1608
1636
|
const t = await this.client.request(
|
|
1609
|
-
|
|
1637
|
+
Le,
|
|
1610
1638
|
e
|
|
1611
1639
|
);
|
|
1612
1640
|
return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
|
|
1613
1641
|
}
|
|
1614
1642
|
async depositsCount() {
|
|
1615
|
-
const e = await this.client.request(
|
|
1643
|
+
const e = await this.client.request(Ke);
|
|
1616
1644
|
return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
|
|
1617
1645
|
}
|
|
1618
1646
|
async member() {
|
|
1619
|
-
const e = await this.client.request(
|
|
1647
|
+
const e = await this.client.request(nt);
|
|
1620
1648
|
return e.ok ? { ok: e.ok, data: e.data.member } : e;
|
|
1621
1649
|
}
|
|
1622
1650
|
async pointsWalletTransactions(e) {
|
|
1623
|
-
const t = await this.client.request(
|
|
1651
|
+
const t = await this.client.request(Re, e);
|
|
1624
1652
|
return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
|
|
1625
1653
|
}
|
|
1626
1654
|
async activityRecords(e) {
|
|
1627
1655
|
const t = await this.client.request(
|
|
1628
|
-
|
|
1656
|
+
At,
|
|
1629
1657
|
e
|
|
1630
1658
|
);
|
|
1631
1659
|
return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
|
|
1632
1660
|
}
|
|
1633
1661
|
}
|
|
1634
|
-
class
|
|
1662
|
+
class Dt {
|
|
1635
1663
|
constructor(e) {
|
|
1636
1664
|
m(this, "url");
|
|
1637
1665
|
this.url = e.url;
|
|
@@ -1643,32 +1671,32 @@ class Rt {
|
|
|
1643
1671
|
];
|
|
1644
1672
|
}
|
|
1645
1673
|
}
|
|
1646
|
-
class
|
|
1674
|
+
class Rt {
|
|
1647
1675
|
constructor(e) {
|
|
1648
1676
|
m(this, "client");
|
|
1649
1677
|
this.client = e;
|
|
1650
1678
|
}
|
|
1651
1679
|
async promos() {
|
|
1652
|
-
const e = await this.client.request(
|
|
1680
|
+
const e = await this.client.request(Ze);
|
|
1653
1681
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
1654
1682
|
}
|
|
1655
1683
|
async cashbacks() {
|
|
1656
|
-
const e = await this.client.request(
|
|
1684
|
+
const e = await this.client.request(tt);
|
|
1657
1685
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
1658
1686
|
}
|
|
1659
1687
|
async availablePromos(e) {
|
|
1660
1688
|
const t = await this.client.request(
|
|
1661
|
-
|
|
1689
|
+
et,
|
|
1662
1690
|
e
|
|
1663
1691
|
);
|
|
1664
1692
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
1665
1693
|
}
|
|
1666
1694
|
async cashbackBonuses() {
|
|
1667
|
-
const e = await this.client.request(
|
|
1695
|
+
const e = await this.client.request(at);
|
|
1668
1696
|
return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
|
|
1669
1697
|
}
|
|
1670
1698
|
async claimCashbackBonus(e) {
|
|
1671
|
-
const t = await this.client.request(
|
|
1699
|
+
const t = await this.client.request(ot, e);
|
|
1672
1700
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
1673
1701
|
ok: !1,
|
|
1674
1702
|
error: d(t.data.claimCashbackBonus.__typename)
|
|
@@ -1680,22 +1708,22 @@ class ke {
|
|
|
1680
1708
|
};
|
|
1681
1709
|
}
|
|
1682
1710
|
async bonus() {
|
|
1683
|
-
const e = await this.client.request(
|
|
1711
|
+
const e = await this.client.request(rt);
|
|
1684
1712
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
1685
1713
|
}
|
|
1686
1714
|
async wallet() {
|
|
1687
|
-
const e = await this.client.request(
|
|
1715
|
+
const e = await this.client.request(Ne);
|
|
1688
1716
|
return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
|
|
1689
1717
|
}
|
|
1690
1718
|
async deposit(e) {
|
|
1691
1719
|
const t = await this.client.request(
|
|
1692
|
-
|
|
1720
|
+
Qe,
|
|
1693
1721
|
e
|
|
1694
1722
|
);
|
|
1695
1723
|
return t.ok ? { ok: t.ok, data: t.data.node } : t;
|
|
1696
1724
|
}
|
|
1697
1725
|
async createGCashDeposit(e) {
|
|
1698
|
-
const t = await this.client.request(
|
|
1726
|
+
const t = await this.client.request(Ve, e);
|
|
1699
1727
|
return t.ok ? t.data.createGCashDeposit ? {
|
|
1700
1728
|
ok: !1,
|
|
1701
1729
|
error: d(t.data.createGCashDeposit.__typename)
|
|
@@ -1704,7 +1732,7 @@ class ke {
|
|
|
1704
1732
|
} : t;
|
|
1705
1733
|
}
|
|
1706
1734
|
async createMayaDeposit(e) {
|
|
1707
|
-
const t = await this.client.request(
|
|
1735
|
+
const t = await this.client.request(Ye, e);
|
|
1708
1736
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
1709
1737
|
ok: !1,
|
|
1710
1738
|
error: d(t.data.createMayaDeposit.__typename)
|
|
@@ -1713,7 +1741,7 @@ class ke {
|
|
|
1713
1741
|
} : t;
|
|
1714
1742
|
}
|
|
1715
1743
|
async createMayaAppDeposit(e) {
|
|
1716
|
-
const t = await this.client.request(
|
|
1744
|
+
const t = await this.client.request(He, e);
|
|
1717
1745
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
1718
1746
|
ok: !1,
|
|
1719
1747
|
error: d(t.data.createMayaAppDeposit.__typename)
|
|
@@ -1722,7 +1750,7 @@ class ke {
|
|
|
1722
1750
|
} : t;
|
|
1723
1751
|
}
|
|
1724
1752
|
async createMayaAppDeposit__next(e) {
|
|
1725
|
-
const t = await this.client.request(
|
|
1753
|
+
const t = await this.client.request(je, e);
|
|
1726
1754
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
1727
1755
|
ok: !1,
|
|
1728
1756
|
error: d(t.data.createMayaAppDeposit.__typename)
|
|
@@ -1731,7 +1759,7 @@ class ke {
|
|
|
1731
1759
|
} : t;
|
|
1732
1760
|
}
|
|
1733
1761
|
async createGCashWithdrawal(e) {
|
|
1734
|
-
const t = await this.client.request(
|
|
1762
|
+
const t = await this.client.request($e, e);
|
|
1735
1763
|
return t.ok ? t.data.createGCashWithdrawal ? {
|
|
1736
1764
|
ok: !1,
|
|
1737
1765
|
error: d(t.data.createGCashWithdrawal.__typename)
|
|
@@ -1740,7 +1768,7 @@ class ke {
|
|
|
1740
1768
|
} : t;
|
|
1741
1769
|
}
|
|
1742
1770
|
async createMayaWithdrawal(e) {
|
|
1743
|
-
const t = await this.client.request(
|
|
1771
|
+
const t = await this.client.request(Ue, e);
|
|
1744
1772
|
return t.ok ? t.data.createMayaWithdrawal ? {
|
|
1745
1773
|
ok: !1,
|
|
1746
1774
|
error: d(t.data.createMayaWithdrawal.__typename)
|
|
@@ -1749,7 +1777,7 @@ class ke {
|
|
|
1749
1777
|
} : t;
|
|
1750
1778
|
}
|
|
1751
1779
|
async createMayaAppWithdrawal(e) {
|
|
1752
|
-
const t = await this.client.request(
|
|
1780
|
+
const t = await this.client.request(Oe, e);
|
|
1753
1781
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1754
1782
|
ok: !1,
|
|
1755
1783
|
error: d(t.data.createMayaAppWithdrawal.__typename)
|
|
@@ -1758,7 +1786,7 @@ class ke {
|
|
|
1758
1786
|
} : t;
|
|
1759
1787
|
}
|
|
1760
1788
|
async createMayaAppWithdrawal__next(e) {
|
|
1761
|
-
const t = await this.client.request(
|
|
1789
|
+
const t = await this.client.request(Be, e);
|
|
1762
1790
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1763
1791
|
ok: !1,
|
|
1764
1792
|
error: d(t.data.createMayaAppWithdrawal.__typename)
|
|
@@ -1767,7 +1795,7 @@ class ke {
|
|
|
1767
1795
|
} : t;
|
|
1768
1796
|
}
|
|
1769
1797
|
async createBankWithdrawal(e) {
|
|
1770
|
-
const t = await this.client.request(
|
|
1798
|
+
const t = await this.client.request(qe, e);
|
|
1771
1799
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
1772
1800
|
ok: !1,
|
|
1773
1801
|
error: d(t.data.createBankWithdrawal.__typename)
|
|
@@ -1777,16 +1805,16 @@ class ke {
|
|
|
1777
1805
|
}
|
|
1778
1806
|
async remainingDailyWithdrawalsCount() {
|
|
1779
1807
|
const e = await this.client.request(
|
|
1780
|
-
|
|
1808
|
+
Fe
|
|
1781
1809
|
);
|
|
1782
1810
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
1783
1811
|
}
|
|
1784
1812
|
async pointsWallet() {
|
|
1785
|
-
const e = await this.client.request(
|
|
1813
|
+
const e = await this.client.request(Ie);
|
|
1786
1814
|
return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
|
|
1787
1815
|
}
|
|
1788
1816
|
async pointsToCashConversion(e) {
|
|
1789
|
-
const t = await this.client.request(
|
|
1817
|
+
const t = await this.client.request(De, e);
|
|
1790
1818
|
return t.ok ? t.data.pointsToCashConversion ? {
|
|
1791
1819
|
ok: !1,
|
|
1792
1820
|
error: d(t.data.pointsToCashConversion.__typename)
|
|
@@ -1796,7 +1824,7 @@ class ke {
|
|
|
1796
1824
|
}
|
|
1797
1825
|
async mayaSession(e) {
|
|
1798
1826
|
const t = await this.client.request(
|
|
1799
|
-
|
|
1827
|
+
Et,
|
|
1800
1828
|
e
|
|
1801
1829
|
);
|
|
1802
1830
|
return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
|
|
@@ -1816,13 +1844,13 @@ class ke {
|
|
|
1816
1844
|
}
|
|
1817
1845
|
async gameSession(e) {
|
|
1818
1846
|
const t = await this.client.request(
|
|
1819
|
-
|
|
1847
|
+
Se,
|
|
1820
1848
|
e
|
|
1821
1849
|
);
|
|
1822
1850
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1823
1851
|
}
|
|
1824
1852
|
async createGameSession(e) {
|
|
1825
|
-
const t = await this.client.request(
|
|
1853
|
+
const t = await this.client.request(Ae, e);
|
|
1826
1854
|
return t.ok ? t.data.createGameSession ? {
|
|
1827
1855
|
ok: !1,
|
|
1828
1856
|
error: d(t.data.createGameSession.__typename)
|
|
@@ -1832,7 +1860,7 @@ class ke {
|
|
|
1832
1860
|
}
|
|
1833
1861
|
async endGameSession(e) {
|
|
1834
1862
|
const t = await this.client.request(
|
|
1835
|
-
|
|
1863
|
+
Pe,
|
|
1836
1864
|
e
|
|
1837
1865
|
);
|
|
1838
1866
|
return t.ok ? t.data.endGameSession ? {
|
|
@@ -1882,7 +1910,7 @@ function xt(o) {
|
|
|
1882
1910
|
function Gt(o) {
|
|
1883
1911
|
return o.reduce((e, t, r) => (e[r] = t, e), {});
|
|
1884
1912
|
}
|
|
1885
|
-
class
|
|
1913
|
+
class $ {
|
|
1886
1914
|
constructor(e, t) {
|
|
1887
1915
|
m(this, "url");
|
|
1888
1916
|
m(this, "options");
|
|
@@ -1919,15 +1947,15 @@ class k {
|
|
|
1919
1947
|
return await this.exec(s);
|
|
1920
1948
|
}
|
|
1921
1949
|
async exec(e) {
|
|
1922
|
-
var t, r, a, s, c,
|
|
1950
|
+
var t, r, a, s, c, u;
|
|
1923
1951
|
try {
|
|
1924
1952
|
const l = await fetch(e);
|
|
1925
1953
|
if (!l.ok)
|
|
1926
1954
|
return { ok: !1, error: h(l.status) };
|
|
1927
|
-
const f = await l.json(), y = f.data,
|
|
1928
|
-
return
|
|
1955
|
+
const f = await l.json(), y = f.data, p = (t = f.errors) == null ? void 0 : t.at(0);
|
|
1956
|
+
return p ? ((r = p.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = p.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, p.message) } : ((s = p.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, p.message) } : ((c = p.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((u = p.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, p.message) } : {
|
|
1929
1957
|
ok: !1,
|
|
1930
|
-
error: h(500,
|
|
1958
|
+
error: h(500, p.message)
|
|
1931
1959
|
} : {
|
|
1932
1960
|
ok: !0,
|
|
1933
1961
|
data: y
|
|
@@ -1957,21 +1985,18 @@ class k {
|
|
|
1957
1985
|
})
|
|
1958
1986
|
);
|
|
1959
1987
|
const s = {};
|
|
1960
|
-
return r.forEach((c,
|
|
1961
|
-
s[
|
|
1962
|
-
}), a.append("map", JSON.stringify(s)), r.forEach((c,
|
|
1963
|
-
a.append(
|
|
1988
|
+
return r.forEach((c, u) => {
|
|
1989
|
+
s[u.toString()] = [`variables.${c.key.join(".")}`];
|
|
1990
|
+
}), a.append("map", JSON.stringify(s)), r.forEach((c, u) => {
|
|
1991
|
+
a.append(u.toString(), c.value);
|
|
1964
1992
|
}), a;
|
|
1965
1993
|
}
|
|
1966
1994
|
}
|
|
1967
|
-
function _(o) {
|
|
1968
|
-
return o.startsWith("+63") ? o : o.startsWith("63") ? `+${o}` : o.startsWith("0") ? `+63${o.substring(1)}` : `+63${o}`;
|
|
1969
|
-
}
|
|
1970
1995
|
async function w(o) {
|
|
1971
1996
|
const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
|
|
1972
1997
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
1973
1998
|
}
|
|
1974
|
-
class
|
|
1999
|
+
class ke {
|
|
1975
2000
|
constructor(e) {
|
|
1976
2001
|
m(this, "enabled");
|
|
1977
2002
|
this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
|
|
@@ -2003,7 +2028,7 @@ function q(o, e) {
|
|
|
2003
2028
|
function ye(o, e) {
|
|
2004
2029
|
return o.getTime() > e.getTime();
|
|
2005
2030
|
}
|
|
2006
|
-
function
|
|
2031
|
+
function _e(o) {
|
|
2007
2032
|
return new Promise((e) => {
|
|
2008
2033
|
setTimeout(e, o);
|
|
2009
2034
|
});
|
|
@@ -2015,9 +2040,9 @@ function we(o, e) {
|
|
|
2015
2040
|
maxAttempt: a = 3
|
|
2016
2041
|
/**/
|
|
2017
2042
|
} = e;
|
|
2018
|
-
async function s(c,
|
|
2019
|
-
const l =
|
|
2020
|
-
return t(f) ? f : l > 1 ? (await
|
|
2043
|
+
async function s(c, u) {
|
|
2044
|
+
const l = u ?? a, f = await o(...c);
|
|
2045
|
+
return t(f) ? f : l > 1 ? (await _e(r * ((a - l) / 2)), s(c, l - 1)) : f;
|
|
2021
2046
|
}
|
|
2022
2047
|
return async (...c) => await s(c);
|
|
2023
2048
|
}
|
|
@@ -2032,16 +2057,7 @@ class Wt {
|
|
|
2032
2057
|
m(this, "authService");
|
|
2033
2058
|
m(this, "walletService");
|
|
2034
2059
|
m(this, "_refreshing", !1);
|
|
2035
|
-
this.authService = new
|
|
2036
|
-
url: e.authUrl,
|
|
2037
|
-
platform: e.platform
|
|
2038
|
-
}), this.walletService = new ke(
|
|
2039
|
-
new k(e.walletUrl, {
|
|
2040
|
-
middlewares: [
|
|
2041
|
-
(t) => (t.headers.set("Platform", e.platform), t.headers.set("Role", "MEMBER"), t)
|
|
2042
|
-
]
|
|
2043
|
-
})
|
|
2044
|
-
), this.logger = new _e({
|
|
2060
|
+
this.authService = e.authService, this.walletService = e.walletService, this.logger = new ke({
|
|
2045
2061
|
enabled: e.logs ?? !1
|
|
2046
2062
|
});
|
|
2047
2063
|
}
|
|
@@ -2064,8 +2080,8 @@ class Wt {
|
|
|
2064
2080
|
if (e.type === "MAYA") {
|
|
2065
2081
|
const c = await we(() => this.walletService.mayaSession({ id: e.sessionId }), {
|
|
2066
2082
|
until: (y) => {
|
|
2067
|
-
var
|
|
2068
|
-
return y.ok && ((
|
|
2083
|
+
var p;
|
|
2084
|
+
return y.ok && ((p = y.data) == null ? void 0 : p.member) != null;
|
|
2069
2085
|
},
|
|
2070
2086
|
interval: 1e3,
|
|
2071
2087
|
maxAttempt: 5
|
|
@@ -2160,7 +2176,7 @@ class Wt {
|
|
|
2160
2176
|
data: null
|
|
2161
2177
|
};
|
|
2162
2178
|
if (this.refreshing)
|
|
2163
|
-
return await
|
|
2179
|
+
return await _e(1e3), await this.get();
|
|
2164
2180
|
const e = window.localStorage.getItem(this.storageKey);
|
|
2165
2181
|
if (!e)
|
|
2166
2182
|
return {
|
|
@@ -2265,7 +2281,7 @@ class $t {
|
|
|
2265
2281
|
constructor(e) {
|
|
2266
2282
|
m(this, "staticService");
|
|
2267
2283
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2268
|
-
this.staticService = new
|
|
2284
|
+
this.staticService = new Dt({
|
|
2269
2285
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
2270
2286
|
});
|
|
2271
2287
|
}
|
|
@@ -2308,7 +2324,7 @@ class $t {
|
|
|
2308
2324
|
return g(t);
|
|
2309
2325
|
}
|
|
2310
2326
|
platform(e) {
|
|
2311
|
-
var t, r, a, s, c,
|
|
2327
|
+
var t, r, a, s, c, u, l, f, y, p, C, T, v, M, N, E, I, D, k, R, P, x, _, G, U, O, S, Q, K, J, z, X, Z, ee, te, re, ae, oe, ne, ie, se, ce, me, de, ue, le, pe, fe, he;
|
|
2312
2328
|
return {
|
|
2313
2329
|
paymentSettings: {
|
|
2314
2330
|
minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
|
|
@@ -2320,44 +2336,44 @@ class $t {
|
|
|
2320
2336
|
webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
|
|
2321
2337
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
2322
2338
|
minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
|
|
2323
|
-
maximumAmount: i((
|
|
2339
|
+
maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
|
|
2324
2340
|
},
|
|
2325
2341
|
gcash: {
|
|
2326
2342
|
androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
|
|
2327
2343
|
iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
|
|
2328
2344
|
webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
|
|
2329
|
-
mobileWebEnabled: ((
|
|
2330
|
-
minimumAmount: i((
|
|
2331
|
-
maximumAmount: i((
|
|
2345
|
+
mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
|
|
2346
|
+
minimumAmount: i((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
|
|
2347
|
+
maximumAmount: i((T = e.gcashDepositGatewaySettings) == null ? void 0 : T.maximumAmount)
|
|
2332
2348
|
},
|
|
2333
2349
|
maya: {
|
|
2334
|
-
androidEnabled: ((
|
|
2335
|
-
iosEnabled: ((
|
|
2336
|
-
webEnabled: ((
|
|
2337
|
-
mobileWebEnabled: ((
|
|
2350
|
+
androidEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.androidEnabled) ?? !1,
|
|
2351
|
+
iosEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.iosEnabled) ?? !1,
|
|
2352
|
+
webEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
|
|
2353
|
+
mobileWebEnabled: ((E = e.mayaDepositGatewaySettings) == null ? void 0 : E.mobileWebEnabled) ?? !1,
|
|
2338
2354
|
minimumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
|
|
2339
2355
|
maximumAmount: i((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
|
|
2340
2356
|
},
|
|
2341
2357
|
mayaApp: {
|
|
2342
|
-
androidEnabled: ((
|
|
2343
|
-
iosEnabled: ((
|
|
2344
|
-
webEnabled: ((
|
|
2345
|
-
mobileWebEnabled: ((
|
|
2346
|
-
minimumAmount: i((
|
|
2347
|
-
maximumAmount: i((
|
|
2358
|
+
androidEnabled: ((k = e.mayaAppDepositGatewaySettings) == null ? void 0 : k.androidEnabled) ?? !1,
|
|
2359
|
+
iosEnabled: ((R = e.mayaAppDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
|
|
2360
|
+
webEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.webEnabled) ?? !1,
|
|
2361
|
+
mobileWebEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
|
|
2362
|
+
minimumAmount: i((_ = e.mayaAppDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
|
|
2363
|
+
maximumAmount: i((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
|
|
2348
2364
|
}
|
|
2349
2365
|
},
|
|
2350
2366
|
withdrawalGateway: {
|
|
2351
2367
|
bank: {
|
|
2352
2368
|
androidEnabled: ((U = e.bankWithdrawalGatewaySettings) == null ? void 0 : U.androidEnabled) ?? !1,
|
|
2353
2369
|
iosEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.iosEnabled) ?? !1,
|
|
2354
|
-
webEnabled: ((
|
|
2370
|
+
webEnabled: ((S = e.bankWithdrawalGatewaySettings) == null ? void 0 : S.webEnabled) ?? !1,
|
|
2355
2371
|
mobileWebEnabled: ((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.mobileWebEnabled) ?? !1,
|
|
2356
2372
|
minimumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
|
|
2357
|
-
maximumAmount: i((
|
|
2373
|
+
maximumAmount: i((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
|
|
2358
2374
|
},
|
|
2359
2375
|
gcash: {
|
|
2360
|
-
androidEnabled: ((
|
|
2376
|
+
androidEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
|
|
2361
2377
|
iosEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.iosEnabled) ?? !1,
|
|
2362
2378
|
webEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.webEnabled) ?? !1,
|
|
2363
2379
|
mobileWebEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.mobileWebEnabled) ?? !1,
|
|
@@ -2710,6 +2726,7 @@ class $t {
|
|
|
2710
2726
|
class Ft {
|
|
2711
2727
|
constructor(e) {
|
|
2712
2728
|
m(this, "cmsPortalService");
|
|
2729
|
+
m(this, "authService");
|
|
2713
2730
|
m(this, "gameService");
|
|
2714
2731
|
m(this, "fileService");
|
|
2715
2732
|
m(this, "walletService");
|
|
@@ -2719,34 +2736,40 @@ class Ft {
|
|
|
2719
2736
|
m(this, "sessionManager");
|
|
2720
2737
|
m(this, "transformer");
|
|
2721
2738
|
m(this, "logger");
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
}), this.
|
|
2733
|
-
|
|
2734
|
-
walletUrl: a,
|
|
2735
|
-
platform: e.platform,
|
|
2736
|
-
logs: e.logs
|
|
2739
|
+
const {
|
|
2740
|
+
/**/
|
|
2741
|
+
site: t,
|
|
2742
|
+
sitePlatform: r,
|
|
2743
|
+
platform: a,
|
|
2744
|
+
environment: s,
|
|
2745
|
+
logs: c
|
|
2746
|
+
} = e, u = s === "production";
|
|
2747
|
+
this.transformer = new $t({
|
|
2748
|
+
environment: s
|
|
2749
|
+
}), this.logger = new ke({
|
|
2750
|
+
enabled: c ?? !1
|
|
2737
2751
|
});
|
|
2738
|
-
const u = {
|
|
2752
|
+
const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", y = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", C = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", T = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", v = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", M = u ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1", N = new Tt({
|
|
2753
|
+
url: M,
|
|
2754
|
+
site: t,
|
|
2755
|
+
platform: r
|
|
2756
|
+
}), E = {
|
|
2739
2757
|
middlewares: [this.authMiddleware],
|
|
2740
2758
|
fetchOptions: {
|
|
2741
|
-
...e.graphql,
|
|
2742
2759
|
headers: {
|
|
2743
|
-
...(b = e.graphql) == null ? void 0 : b.headers,
|
|
2744
2760
|
Role: "MEMBER",
|
|
2745
|
-
"Platform-Code":
|
|
2761
|
+
"Platform-Code": a
|
|
2746
2762
|
}
|
|
2747
2763
|
}
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2764
|
+
}, I = new Mt(new $(v, E)), D = new vt(new $(T, E)), k = new Rt(new $(f, E)), R = new _t(new $(p, E)), P = new It(new $(y, E)), x = new Nt(new $(C, E)), _ = new Ct({
|
|
2765
|
+
url: l,
|
|
2766
|
+
platform: a
|
|
2767
|
+
}), G = new Wt({
|
|
2768
|
+
logs: c,
|
|
2769
|
+
authService: _,
|
|
2770
|
+
walletService: k
|
|
2771
|
+
});
|
|
2772
|
+
this.authService = _, this.gameService = I, this.fileService = D, this.walletService = k, this.accountService = R, this.reportService = P, this.portalService = x, this.sessionManager = G, this.cmsPortalService = N;
|
|
2750
2773
|
}
|
|
2751
2774
|
get authMiddleware() {
|
|
2752
2775
|
return async (e) => {
|
|
@@ -2781,6 +2804,9 @@ class Ft {
|
|
|
2781
2804
|
}
|
|
2782
2805
|
}
|
|
2783
2806
|
}
|
|
2807
|
+
async sendAuthenticationCode(e) {
|
|
2808
|
+
return this.authService.sendVerificationCode(e);
|
|
2809
|
+
}
|
|
2784
2810
|
/**
|
|
2785
2811
|
* @example
|
|
2786
2812
|
* ```ts
|
|
@@ -2946,7 +2972,7 @@ class Ft {
|
|
|
2946
2972
|
* ```
|
|
2947
2973
|
*/
|
|
2948
2974
|
async createAccount(e) {
|
|
2949
|
-
const t = e.id ?? A.generate(
|
|
2975
|
+
const t = e.id ?? A.generate(b.Account).toString(), r = await this.accountService.registerMemberAccount({
|
|
2950
2976
|
input: {
|
|
2951
2977
|
id: t,
|
|
2952
2978
|
btag: e.btag,
|
|
@@ -2954,7 +2980,7 @@ class Ft {
|
|
|
2954
2980
|
domain: e.domain,
|
|
2955
2981
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
|
|
2956
2982
|
password: await w(e.password),
|
|
2957
|
-
mobileNumber:
|
|
2983
|
+
mobileNumber: W(e.mobileNumber)
|
|
2958
2984
|
},
|
|
2959
2985
|
referralCode: e.referralCode,
|
|
2960
2986
|
verificationCode: e.verificationCode,
|
|
@@ -2995,7 +3021,7 @@ class Ft {
|
|
|
2995
3021
|
password: t.password ? await w(t.password) : void 0,
|
|
2996
3022
|
transactionPassword: t.transactionPassword ? await w(t.transactionPassword) : void 0,
|
|
2997
3023
|
...t.mobileNumber && {
|
|
2998
|
-
mobileNumber:
|
|
3024
|
+
mobileNumber: W(t.mobileNumber)
|
|
2999
3025
|
},
|
|
3000
3026
|
secretAnswer: t.secretAnswer ? await w(t.secretAnswer) : void 0
|
|
3001
3027
|
}
|
|
@@ -3038,7 +3064,7 @@ class Ft {
|
|
|
3038
3064
|
* ```
|
|
3039
3065
|
*/
|
|
3040
3066
|
async submitVerificationDetails(e) {
|
|
3041
|
-
const t = e.id ?? A.generate(
|
|
3067
|
+
const t = e.id ?? A.generate(b.Verification).toString(), r = await this.accountService.createMemberVerification({
|
|
3042
3068
|
input: {
|
|
3043
3069
|
id: t,
|
|
3044
3070
|
...e
|
|
@@ -3074,7 +3100,7 @@ class Ft {
|
|
|
3074
3100
|
async resetPassword(e) {
|
|
3075
3101
|
return await this.accountService.resetPassword({
|
|
3076
3102
|
input: {
|
|
3077
|
-
mobileNumber:
|
|
3103
|
+
mobileNumber: W(e.mobileNumber),
|
|
3078
3104
|
newPassword: await w(e.newPassword)
|
|
3079
3105
|
},
|
|
3080
3106
|
verificationCode: e.verificationCode
|
|
@@ -3098,7 +3124,7 @@ class Ft {
|
|
|
3098
3124
|
return await this.accountService.sendVerificationCode({
|
|
3099
3125
|
input: {
|
|
3100
3126
|
channel: "SMS",
|
|
3101
|
-
recipient:
|
|
3127
|
+
recipient: W(e)
|
|
3102
3128
|
}
|
|
3103
3129
|
});
|
|
3104
3130
|
}
|
|
@@ -3162,7 +3188,7 @@ class Ft {
|
|
|
3162
3188
|
* ```
|
|
3163
3189
|
*/
|
|
3164
3190
|
async createWithdrawal(e) {
|
|
3165
|
-
const t = e.id ?? A.generate(
|
|
3191
|
+
const t = e.id ?? A.generate(b.Withdrawal).toString();
|
|
3166
3192
|
if (e.type === "BANK") {
|
|
3167
3193
|
const r = await this.walletService.createBankWithdrawal({
|
|
3168
3194
|
input: {
|
|
@@ -3179,7 +3205,7 @@ class Ft {
|
|
|
3179
3205
|
id: t,
|
|
3180
3206
|
amount: e.amount.toString(),
|
|
3181
3207
|
transactionPassword: await w(e.transactionPassword),
|
|
3182
|
-
recipientMobileNumber:
|
|
3208
|
+
recipientMobileNumber: W(e.recipientMobileNumber)
|
|
3183
3209
|
}
|
|
3184
3210
|
});
|
|
3185
3211
|
if (!r.ok) return r;
|
|
@@ -3190,7 +3216,7 @@ class Ft {
|
|
|
3190
3216
|
id: t,
|
|
3191
3217
|
amount: e.amount.toString(),
|
|
3192
3218
|
transactionPassword: await w(e.transactionPassword),
|
|
3193
|
-
recipientMobileNumber:
|
|
3219
|
+
recipientMobileNumber: W(e.recipientMobileNumber)
|
|
3194
3220
|
}
|
|
3195
3221
|
});
|
|
3196
3222
|
if (!r.ok) return r;
|
|
@@ -3258,7 +3284,7 @@ class Ft {
|
|
|
3258
3284
|
* ```
|
|
3259
3285
|
*/
|
|
3260
3286
|
async createDeposit(e) {
|
|
3261
|
-
const t = e.id ?? A.generate(
|
|
3287
|
+
const t = e.id ?? A.generate(b.Deposit).toString();
|
|
3262
3288
|
if (e.type === "MAYA") {
|
|
3263
3289
|
const r = await this.walletService.createMayaDeposit({
|
|
3264
3290
|
input: {
|
|
@@ -3554,23 +3580,23 @@ class Ft {
|
|
|
3554
3580
|
* ```
|
|
3555
3581
|
*/
|
|
3556
3582
|
async createGameSession(e) {
|
|
3557
|
-
const t = e.id ?? A.generate(
|
|
3583
|
+
const t = e.id ?? A.generate(b.GameSession).toString(), r = await this.walletService.createGameSession({ input: { id: t, game: e.game } });
|
|
3558
3584
|
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3559
3585
|
}
|
|
3560
3586
|
/** @deprecated use `createGameSession__next` */
|
|
3561
3587
|
async createGameSession__legacy(e) {
|
|
3562
|
-
const t = e.id ?? A.generate(
|
|
3588
|
+
const t = e.id ?? A.generate(b.GameSession).toString(), r = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
|
|
3563
3589
|
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3564
3590
|
}
|
|
3565
3591
|
async createGameSession__next(e) {
|
|
3566
|
-
const t = e.id ?? A.generate(
|
|
3592
|
+
const t = e.id ?? A.generate(b.GameSession).toString();
|
|
3567
3593
|
if (e.game.startsWith("SPORTS:")) {
|
|
3568
|
-
const
|
|
3594
|
+
const u = await A.generateFromKey(b.Game, e.game).then(
|
|
3569
3595
|
(f) => f.toString()
|
|
3570
3596
|
), l = await this.gameService.createGameSession({
|
|
3571
3597
|
input: {
|
|
3572
3598
|
id: t,
|
|
3573
|
-
game:
|
|
3599
|
+
game: u
|
|
3574
3600
|
}
|
|
3575
3601
|
});
|
|
3576
3602
|
return l.ok ? { ok: !0, data: { id: t } } : l;
|
|
@@ -3631,7 +3657,7 @@ class Ft {
|
|
|
3631
3657
|
* ```
|
|
3632
3658
|
*/
|
|
3633
3659
|
async uploadImageFile(e) {
|
|
3634
|
-
const t = e.id ?? A.generate(
|
|
3660
|
+
const t = e.id ?? A.generate(b.File).toString(), r = await this.fileService.uploadPrivateImageFile({
|
|
3635
3661
|
input: {
|
|
3636
3662
|
id: t,
|
|
3637
3663
|
file: e.file
|
|
@@ -3724,7 +3750,7 @@ function Ot(o) {
|
|
|
3724
3750
|
}
|
|
3725
3751
|
export {
|
|
3726
3752
|
Yt as ObjectId,
|
|
3727
|
-
|
|
3753
|
+
b as ObjectType,
|
|
3728
3754
|
Ft as Sdk
|
|
3729
3755
|
};
|
|
3730
3756
|
//# sourceMappingURL=index.mjs.map
|