@opexa/portal-sdk 0.0.28 → 0.0.30
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 +96 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +321 -205
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +3 -1
- package/dist/sdk/transformer.d.ts +4 -0
- package/dist/sdk/types.d.ts +25 -0
- package/dist/services/queries.d.ts +2 -0
- package/dist/services/report.service.d.ts +3 -1
- package/dist/services/types.d.ts +36 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Te = (o, e, t) => e in o ?
|
|
3
|
-
var
|
|
1
|
+
var _e = Object.defineProperty;
|
|
2
|
+
var Te = (o, e, t) => e in o ? _e(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var d = (o, e, t) => Te(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ObjectId as b } from "@opexa/object-id";
|
|
5
|
-
import { ObjectId as
|
|
5
|
+
import { ObjectId as $t } from "@opexa/object-id";
|
|
6
6
|
const S = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
@@ -21,7 +21,7 @@ function n(o, ...e) {
|
|
|
21
21
|
}
|
|
22
22
|
return t.trim();
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const x = n`
|
|
25
25
|
fragment FileFragment on File {
|
|
26
26
|
id
|
|
27
27
|
url
|
|
@@ -29,7 +29,7 @@ const G = n`
|
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
31
|
`, ve = n`
|
|
32
|
-
${
|
|
32
|
+
${x}
|
|
33
33
|
|
|
34
34
|
query File($id: ObjectId!) {
|
|
35
35
|
node(id: $id) {
|
|
@@ -62,7 +62,7 @@ const G = 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 G = 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,6 +79,34 @@ const G = n`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
`, Re = n`
|
|
83
|
+
query PointsWalletTransactions(
|
|
84
|
+
$first: Int
|
|
85
|
+
$after: Cursor
|
|
86
|
+
$filter: MemberPointsWalletTransactionFilterInput
|
|
87
|
+
) {
|
|
88
|
+
member {
|
|
89
|
+
pointsWalletTransactions(first: $first, after: $after, filter: $filter) {
|
|
90
|
+
edges {
|
|
91
|
+
cursor
|
|
92
|
+
node {
|
|
93
|
+
... on PointsWalletTransaction {
|
|
94
|
+
id
|
|
95
|
+
type
|
|
96
|
+
amount
|
|
97
|
+
balance
|
|
98
|
+
dateTimeCreated
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
totalCount
|
|
103
|
+
pageInfo {
|
|
104
|
+
hasNextPage
|
|
105
|
+
endCursor
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
82
110
|
`, ye = n`
|
|
83
111
|
query Games($first: Int, $after: Cursor, $filter: GameFilterInput) {
|
|
84
112
|
games(first: $first, after: $after, filter: $filter) {
|
|
@@ -131,11 +159,11 @@ const G = n`
|
|
|
131
159
|
}
|
|
132
160
|
}
|
|
133
161
|
}
|
|
134
|
-
`,
|
|
162
|
+
`, Pe = n`
|
|
135
163
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
136
164
|
endGameSession(input: $input)
|
|
137
165
|
}
|
|
138
|
-
`,
|
|
166
|
+
`, xe = n`
|
|
139
167
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
140
168
|
endGameSession(input: $input) {
|
|
141
169
|
... on GameSessionDoesNotExistError {
|
|
@@ -175,7 +203,7 @@ const G = n`
|
|
|
175
203
|
}
|
|
176
204
|
}
|
|
177
205
|
}
|
|
178
|
-
`,
|
|
206
|
+
`, $e = n`
|
|
179
207
|
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
180
208
|
member {
|
|
181
209
|
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -242,7 +270,7 @@ const G = n`
|
|
|
242
270
|
}
|
|
243
271
|
}
|
|
244
272
|
}
|
|
245
|
-
`,
|
|
273
|
+
`, We = n`
|
|
246
274
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
247
275
|
createGCashWithdrawal(input: $input) {
|
|
248
276
|
... on AccountNotVerifiedError {
|
|
@@ -265,7 +293,7 @@ const G = n`
|
|
|
265
293
|
}
|
|
266
294
|
}
|
|
267
295
|
}
|
|
268
|
-
`,
|
|
296
|
+
`, Be = n`
|
|
269
297
|
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
270
298
|
createMayaWithdrawal(input: $input) {
|
|
271
299
|
... on AccountNotVerifiedError {
|
|
@@ -288,7 +316,7 @@ const G = n`
|
|
|
288
316
|
}
|
|
289
317
|
}
|
|
290
318
|
}
|
|
291
|
-
`,
|
|
319
|
+
`, Ue = n`
|
|
292
320
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
293
321
|
createMayaAppWithdrawal(input: $input) {
|
|
294
322
|
... on AccountNotVerifiedError {
|
|
@@ -308,7 +336,7 @@ const G = n`
|
|
|
308
336
|
}
|
|
309
337
|
}
|
|
310
338
|
}
|
|
311
|
-
`,
|
|
339
|
+
`, Oe = n`
|
|
312
340
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
313
341
|
createBankWithdrawal(input: $input) {
|
|
314
342
|
... on MobileNumberNotVerifiedError {
|
|
@@ -331,11 +359,11 @@ const G = n`
|
|
|
331
359
|
}
|
|
332
360
|
}
|
|
333
361
|
}
|
|
334
|
-
`,
|
|
362
|
+
`, qe = n`
|
|
335
363
|
query RemainingDailyWithdrawalsCount {
|
|
336
364
|
remainingDailyWithdrawalsCount
|
|
337
365
|
}
|
|
338
|
-
`,
|
|
366
|
+
`, Fe = n`
|
|
339
367
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
340
368
|
member {
|
|
341
369
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -364,7 +392,7 @@ const G = n`
|
|
|
364
392
|
}
|
|
365
393
|
}
|
|
366
394
|
}
|
|
367
|
-
`,
|
|
395
|
+
`, Le = n`
|
|
368
396
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
369
397
|
createGCashDeposit(input: $input) {
|
|
370
398
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -393,7 +421,7 @@ const G = n`
|
|
|
393
421
|
}
|
|
394
422
|
}
|
|
395
423
|
}
|
|
396
|
-
`,
|
|
424
|
+
`, Ve = n`
|
|
397
425
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
398
426
|
createMayaDeposit(input: $input) {
|
|
399
427
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -422,7 +450,7 @@ const G = n`
|
|
|
422
450
|
}
|
|
423
451
|
}
|
|
424
452
|
}
|
|
425
|
-
`,
|
|
453
|
+
`, Ye = n`
|
|
426
454
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
427
455
|
createMayaAppDeposit(input: $input) {
|
|
428
456
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -483,13 +511,13 @@ const G = n`
|
|
|
483
511
|
}
|
|
484
512
|
}
|
|
485
513
|
}
|
|
486
|
-
`,
|
|
514
|
+
`, je = n`
|
|
487
515
|
query DepositsCount {
|
|
488
516
|
member {
|
|
489
517
|
depositsCount
|
|
490
518
|
}
|
|
491
519
|
}
|
|
492
|
-
`,
|
|
520
|
+
`, Qe = n`
|
|
493
521
|
query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
|
|
494
522
|
member {
|
|
495
523
|
betRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -529,7 +557,7 @@ const G = n`
|
|
|
529
557
|
}
|
|
530
558
|
}
|
|
531
559
|
}
|
|
532
|
-
`,
|
|
560
|
+
`, Ke = n`
|
|
533
561
|
query LatestBetRecords {
|
|
534
562
|
latestBetRecords {
|
|
535
563
|
id
|
|
@@ -548,7 +576,7 @@ const G = n`
|
|
|
548
576
|
dateTimeCreated
|
|
549
577
|
}
|
|
550
578
|
}
|
|
551
|
-
`,
|
|
579
|
+
`, ze = n`
|
|
552
580
|
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
553
581
|
member {
|
|
554
582
|
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -574,8 +602,8 @@ const G = n`
|
|
|
574
602
|
}
|
|
575
603
|
}
|
|
576
604
|
}
|
|
577
|
-
`,
|
|
578
|
-
${
|
|
605
|
+
`, W = n`
|
|
606
|
+
${x}
|
|
579
607
|
|
|
580
608
|
fragment PromoFragment on Promo {
|
|
581
609
|
id
|
|
@@ -593,16 +621,16 @@ const G = n`
|
|
|
593
621
|
dateTimeCreated
|
|
594
622
|
dateTimeLastUpdated
|
|
595
623
|
}
|
|
596
|
-
`,
|
|
597
|
-
${
|
|
624
|
+
`, Je = n`
|
|
625
|
+
${W}
|
|
598
626
|
|
|
599
627
|
query Promos {
|
|
600
628
|
promos {
|
|
601
629
|
...PromoFragment
|
|
602
630
|
}
|
|
603
631
|
}
|
|
604
|
-
`,
|
|
605
|
-
${
|
|
632
|
+
`, Xe = n`
|
|
633
|
+
${W}
|
|
606
634
|
|
|
607
635
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
608
636
|
availablePromos(filter: $filter) {
|
|
@@ -610,7 +638,7 @@ const G = n`
|
|
|
610
638
|
}
|
|
611
639
|
}
|
|
612
640
|
`, Ee = n`
|
|
613
|
-
${
|
|
641
|
+
${x}
|
|
614
642
|
|
|
615
643
|
fragment CashbackFragment on Cashback {
|
|
616
644
|
id
|
|
@@ -625,7 +653,7 @@ const G = n`
|
|
|
625
653
|
dateTimeCreated
|
|
626
654
|
dateTimeLastUpdated
|
|
627
655
|
}
|
|
628
|
-
`,
|
|
656
|
+
`, Ze = n`
|
|
629
657
|
${Ee}
|
|
630
658
|
|
|
631
659
|
query Cashbacks {
|
|
@@ -633,8 +661,8 @@ const G = n`
|
|
|
633
661
|
...CashbackFragment
|
|
634
662
|
}
|
|
635
663
|
}
|
|
636
|
-
`,
|
|
637
|
-
${
|
|
664
|
+
`, et = n`
|
|
665
|
+
${W}
|
|
638
666
|
|
|
639
667
|
query Bonus {
|
|
640
668
|
bonus {
|
|
@@ -662,7 +690,7 @@ const G = n`
|
|
|
662
690
|
dateTimeLastUpdated
|
|
663
691
|
}
|
|
664
692
|
}
|
|
665
|
-
`,
|
|
693
|
+
`, tt = n`
|
|
666
694
|
${Ee}
|
|
667
695
|
|
|
668
696
|
query CashbackBonuses {
|
|
@@ -676,7 +704,7 @@ const G = n`
|
|
|
676
704
|
dateTimeLastUpdated
|
|
677
705
|
}
|
|
678
706
|
}
|
|
679
|
-
`,
|
|
707
|
+
`, at = n`
|
|
680
708
|
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
681
709
|
claimCashbackBonus(input: $input) {
|
|
682
710
|
... on CashbackBonusDoesNotExistError {
|
|
@@ -684,13 +712,13 @@ const G = n`
|
|
|
684
712
|
}
|
|
685
713
|
}
|
|
686
714
|
}
|
|
687
|
-
`,
|
|
715
|
+
`, rt = n`
|
|
688
716
|
query Member {
|
|
689
717
|
member {
|
|
690
718
|
dateTimeLastActive
|
|
691
719
|
}
|
|
692
720
|
}
|
|
693
|
-
`,
|
|
721
|
+
`, ot = n`
|
|
694
722
|
query MemberAccount {
|
|
695
723
|
memberAccount: self {
|
|
696
724
|
... on MemberAccount {
|
|
@@ -714,8 +742,8 @@ const G = n`
|
|
|
714
742
|
}
|
|
715
743
|
}
|
|
716
744
|
}
|
|
717
|
-
`,
|
|
718
|
-
${
|
|
745
|
+
`, nt = n`
|
|
746
|
+
${x}
|
|
719
747
|
|
|
720
748
|
query MemberVerification {
|
|
721
749
|
memberAccount: self {
|
|
@@ -738,7 +766,7 @@ const G = n`
|
|
|
738
766
|
}
|
|
739
767
|
}
|
|
740
768
|
}
|
|
741
|
-
`,
|
|
769
|
+
`, it = n`
|
|
742
770
|
mutation RegisterMemberAccount(
|
|
743
771
|
$input: RegisterMemberAccountInput!
|
|
744
772
|
$referralCode: String
|
|
@@ -774,7 +802,7 @@ const G = n`
|
|
|
774
802
|
}
|
|
775
803
|
}
|
|
776
804
|
}
|
|
777
|
-
`,
|
|
805
|
+
`, st = n`
|
|
778
806
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
779
807
|
updateMemberAccount(input: $input) {
|
|
780
808
|
... on AccountNameNotAvailableError {
|
|
@@ -800,7 +828,7 @@ const G = n`
|
|
|
800
828
|
}
|
|
801
829
|
}
|
|
802
830
|
}
|
|
803
|
-
`,
|
|
831
|
+
`, ct = n`
|
|
804
832
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
805
833
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
806
834
|
... on AccountNotFoundError {
|
|
@@ -811,7 +839,7 @@ const G = n`
|
|
|
811
839
|
}
|
|
812
840
|
}
|
|
813
841
|
}
|
|
814
|
-
`,
|
|
842
|
+
`, dt = n`
|
|
815
843
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
816
844
|
deleteMemberAccount(input: $input)
|
|
817
845
|
}
|
|
@@ -826,7 +854,7 @@ const G = n`
|
|
|
826
854
|
}
|
|
827
855
|
}
|
|
828
856
|
}
|
|
829
|
-
`,
|
|
857
|
+
`, ut = n`
|
|
830
858
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
831
859
|
createMemberVerification(input: $input) {
|
|
832
860
|
... on FileDoesNotExistError {
|
|
@@ -840,7 +868,7 @@ const G = n`
|
|
|
840
868
|
}
|
|
841
869
|
}
|
|
842
870
|
}
|
|
843
|
-
`,
|
|
871
|
+
`, lt = n`
|
|
844
872
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
845
873
|
updateMemberVerification(input: $input) {
|
|
846
874
|
... on FileDoesNotExistError {
|
|
@@ -857,7 +885,7 @@ const G = n`
|
|
|
857
885
|
}
|
|
858
886
|
}
|
|
859
887
|
}
|
|
860
|
-
`,
|
|
888
|
+
`, pt = n`
|
|
861
889
|
query ProfileCompletion {
|
|
862
890
|
profileCompletion {
|
|
863
891
|
completionPercentage
|
|
@@ -868,7 +896,7 @@ const G = n`
|
|
|
868
896
|
accountPassword
|
|
869
897
|
}
|
|
870
898
|
}
|
|
871
|
-
`,
|
|
899
|
+
`, ft = n`
|
|
872
900
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
873
901
|
sendVerificationCode(input: $input) {
|
|
874
902
|
... on InvalidPlatformError {
|
|
@@ -879,7 +907,7 @@ const G = n`
|
|
|
879
907
|
}
|
|
880
908
|
}
|
|
881
909
|
}
|
|
882
|
-
`,
|
|
910
|
+
`, ht = n`
|
|
883
911
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
884
912
|
minimumAmount
|
|
885
913
|
maximumAmount
|
|
@@ -933,7 +961,7 @@ const G = n`
|
|
|
933
961
|
multiplier
|
|
934
962
|
}
|
|
935
963
|
}
|
|
936
|
-
`,
|
|
964
|
+
`, wt = n`
|
|
937
965
|
query MayaSession($id: ObjectId!) {
|
|
938
966
|
mayaSession(id: $id) {
|
|
939
967
|
id
|
|
@@ -941,8 +969,31 @@ const G = n`
|
|
|
941
969
|
dateTimeCreated
|
|
942
970
|
}
|
|
943
971
|
}
|
|
972
|
+
`, yt = n`
|
|
973
|
+
query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
|
|
974
|
+
member {
|
|
975
|
+
activityRecords(after: $after, first: $first, filter: $filter) {
|
|
976
|
+
edges {
|
|
977
|
+
cursor
|
|
978
|
+
node {
|
|
979
|
+
... on MemberActivity {
|
|
980
|
+
id
|
|
981
|
+
type
|
|
982
|
+
details
|
|
983
|
+
dateTimeCreated
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
totalCount
|
|
988
|
+
pageInfo {
|
|
989
|
+
hasNextPage
|
|
990
|
+
endCursor
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
}
|
|
944
995
|
`;
|
|
945
|
-
function
|
|
996
|
+
function m(o) {
|
|
946
997
|
return {
|
|
947
998
|
name: o,
|
|
948
999
|
message: {
|
|
@@ -996,39 +1047,39 @@ function d(o) {
|
|
|
996
1047
|
}[o]
|
|
997
1048
|
};
|
|
998
1049
|
}
|
|
999
|
-
class
|
|
1050
|
+
class gt {
|
|
1000
1051
|
constructor(e) {
|
|
1001
|
-
|
|
1052
|
+
d(this, "client");
|
|
1002
1053
|
this.client = e;
|
|
1003
1054
|
}
|
|
1004
1055
|
/** aka `Query.self` */
|
|
1005
1056
|
async memberAccount() {
|
|
1006
|
-
const e = await this.client.request(
|
|
1057
|
+
const e = await this.client.request(ot);
|
|
1007
1058
|
return e.ok ? {
|
|
1008
1059
|
ok: !0,
|
|
1009
1060
|
data: e.data.memberAccount
|
|
1010
1061
|
} : e;
|
|
1011
1062
|
}
|
|
1012
1063
|
async registerMemberAccount(e) {
|
|
1013
|
-
const t = await this.client.request(
|
|
1064
|
+
const t = await this.client.request(it, e);
|
|
1014
1065
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1015
1066
|
ok: !1,
|
|
1016
|
-
error:
|
|
1067
|
+
error: m(t.data.registerMemberAccount.__typename)
|
|
1017
1068
|
} : {
|
|
1018
1069
|
ok: !0
|
|
1019
1070
|
} : t;
|
|
1020
1071
|
}
|
|
1021
1072
|
async updateMemberAccount(e) {
|
|
1022
|
-
const t = await this.client.request(
|
|
1073
|
+
const t = await this.client.request(st, e);
|
|
1023
1074
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1024
1075
|
ok: !1,
|
|
1025
|
-
error:
|
|
1076
|
+
error: m(t.data.updateMemberAccount.__typename)
|
|
1026
1077
|
} : {
|
|
1027
1078
|
ok: !0
|
|
1028
1079
|
} : t;
|
|
1029
1080
|
}
|
|
1030
1081
|
async deleteMemberAccount(e) {
|
|
1031
|
-
const t = await this.client.request(
|
|
1082
|
+
const t = await this.client.request(dt, e);
|
|
1032
1083
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1033
1084
|
ok: !0
|
|
1034
1085
|
} : {
|
|
@@ -1041,28 +1092,28 @@ class wt {
|
|
|
1041
1092
|
}
|
|
1042
1093
|
async resetPassword(e) {
|
|
1043
1094
|
const t = await this.client.request(
|
|
1044
|
-
|
|
1095
|
+
ct,
|
|
1045
1096
|
e
|
|
1046
1097
|
);
|
|
1047
1098
|
return t.ok ? t.data.resetPassword ? {
|
|
1048
1099
|
ok: !1,
|
|
1049
|
-
error:
|
|
1100
|
+
error: m(t.data.resetPassword.__typename)
|
|
1050
1101
|
} : {
|
|
1051
1102
|
ok: !0
|
|
1052
1103
|
} : t;
|
|
1053
1104
|
}
|
|
1054
1105
|
async profileCompletion() {
|
|
1055
|
-
const e = await this.client.request(
|
|
1106
|
+
const e = await this.client.request(pt);
|
|
1056
1107
|
return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
|
|
1057
1108
|
}
|
|
1058
1109
|
async platform() {
|
|
1059
|
-
return await this.client.request(
|
|
1110
|
+
return await this.client.request(ht);
|
|
1060
1111
|
}
|
|
1061
1112
|
async sendVerificationCode(e) {
|
|
1062
|
-
const t = await this.client.request(
|
|
1113
|
+
const t = await this.client.request(ft, e);
|
|
1063
1114
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1064
1115
|
ok: !1,
|
|
1065
|
-
error:
|
|
1116
|
+
error: m(t.data.sendVerificationCode.__typename)
|
|
1066
1117
|
} : {
|
|
1067
1118
|
ok: !0
|
|
1068
1119
|
} : t;
|
|
@@ -1071,31 +1122,31 @@ class wt {
|
|
|
1071
1122
|
const t = await this.client.request(mt, e);
|
|
1072
1123
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1073
1124
|
ok: !1,
|
|
1074
|
-
error:
|
|
1125
|
+
error: m(t.data.verifyMobileNumber.__typename)
|
|
1075
1126
|
} : {
|
|
1076
1127
|
ok: !0
|
|
1077
1128
|
} : t;
|
|
1078
1129
|
}
|
|
1079
1130
|
async createMemberVerification(e) {
|
|
1080
|
-
const t = await this.client.request(
|
|
1131
|
+
const t = await this.client.request(ut, e);
|
|
1081
1132
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1082
1133
|
ok: !1,
|
|
1083
|
-
error:
|
|
1134
|
+
error: m(t.data.createMemberVerification.__typename)
|
|
1084
1135
|
} : {
|
|
1085
1136
|
ok: !0
|
|
1086
1137
|
} : t;
|
|
1087
1138
|
}
|
|
1088
1139
|
async updateMemberVerification(e) {
|
|
1089
|
-
const t = await this.client.request(
|
|
1140
|
+
const t = await this.client.request(lt, e);
|
|
1090
1141
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1091
1142
|
ok: !1,
|
|
1092
|
-
error:
|
|
1143
|
+
error: m(t.data.updateMemberVerification.__typename)
|
|
1093
1144
|
} : {
|
|
1094
1145
|
ok: !0
|
|
1095
1146
|
} : t;
|
|
1096
1147
|
}
|
|
1097
1148
|
async memberVerification() {
|
|
1098
|
-
const e = await this.client.request(
|
|
1149
|
+
const e = await this.client.request(nt);
|
|
1099
1150
|
return e.ok ? {
|
|
1100
1151
|
ok: !0,
|
|
1101
1152
|
data: e.data.memberAccount.verification
|
|
@@ -1113,13 +1164,13 @@ class wt {
|
|
|
1113
1164
|
}
|
|
1114
1165
|
}
|
|
1115
1166
|
function h(o, e) {
|
|
1116
|
-
const t =
|
|
1167
|
+
const t = G[o] ? G[o] : G[500];
|
|
1117
1168
|
return {
|
|
1118
1169
|
name: t.name,
|
|
1119
1170
|
message: e ?? t.message
|
|
1120
1171
|
};
|
|
1121
1172
|
}
|
|
1122
|
-
const
|
|
1173
|
+
const G = {
|
|
1123
1174
|
400: { name: "HttpBadRequest", message: "Bad Request" },
|
|
1124
1175
|
401: { name: "HttpUnauthorized", message: "Unauthorized" },
|
|
1125
1176
|
403: { name: "HttpForbidden", message: "Forbidden" },
|
|
@@ -1128,10 +1179,10 @@ const x = {
|
|
|
1128
1179
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1129
1180
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1130
1181
|
};
|
|
1131
|
-
class
|
|
1182
|
+
class bt {
|
|
1132
1183
|
constructor(e) {
|
|
1133
|
-
|
|
1134
|
-
|
|
1184
|
+
d(this, "url");
|
|
1185
|
+
d(this, "platform");
|
|
1135
1186
|
this.url = e.url, this.platform = e.platform;
|
|
1136
1187
|
}
|
|
1137
1188
|
async createSession(e) {
|
|
@@ -1159,7 +1210,7 @@ class yt {
|
|
|
1159
1210
|
data: r
|
|
1160
1211
|
} : r.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1161
1212
|
ok: !1,
|
|
1162
|
-
error:
|
|
1213
|
+
error: m("AccountBlacklisted")
|
|
1163
1214
|
} : {
|
|
1164
1215
|
ok: !1,
|
|
1165
1216
|
error: h(a.status)
|
|
@@ -1192,7 +1243,7 @@ class yt {
|
|
|
1192
1243
|
data: r
|
|
1193
1244
|
} : a.status === 401 || a.status === 403 ? {
|
|
1194
1245
|
ok: !1,
|
|
1195
|
-
error:
|
|
1246
|
+
error: m("InvalidTokenOrSecretAnswer")
|
|
1196
1247
|
} : {
|
|
1197
1248
|
ok: !1,
|
|
1198
1249
|
error: h(a.status)
|
|
@@ -1222,10 +1273,10 @@ class yt {
|
|
|
1222
1273
|
data: a
|
|
1223
1274
|
} : a.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1224
1275
|
ok: !1,
|
|
1225
|
-
error:
|
|
1276
|
+
error: m("AccountBlacklisted")
|
|
1226
1277
|
} : t.status === 403 || t.status === 401 ? {
|
|
1227
1278
|
ok: !1,
|
|
1228
|
-
error:
|
|
1279
|
+
error: m("InvalidToken")
|
|
1229
1280
|
} : {
|
|
1230
1281
|
ok: !1,
|
|
1231
1282
|
error: h(t.status)
|
|
@@ -1269,9 +1320,9 @@ class yt {
|
|
|
1269
1320
|
}
|
|
1270
1321
|
}
|
|
1271
1322
|
}
|
|
1272
|
-
class
|
|
1323
|
+
class St {
|
|
1273
1324
|
constructor(e) {
|
|
1274
|
-
|
|
1325
|
+
d(this, "client");
|
|
1275
1326
|
this.client = e;
|
|
1276
1327
|
}
|
|
1277
1328
|
async file(e) {
|
|
@@ -1285,54 +1336,65 @@ class gt {
|
|
|
1285
1336
|
const t = await this.client.upload(Ne, e);
|
|
1286
1337
|
return t.ok ? t.data.uploadPrivateImageFile ? {
|
|
1287
1338
|
ok: !1,
|
|
1288
|
-
error:
|
|
1339
|
+
error: m(t.data.uploadPrivateImageFile.__typename)
|
|
1289
1340
|
} : {
|
|
1290
1341
|
ok: !0
|
|
1291
1342
|
} : t;
|
|
1292
1343
|
}
|
|
1293
1344
|
}
|
|
1294
|
-
class
|
|
1345
|
+
class Et {
|
|
1295
1346
|
constructor(e) {
|
|
1296
|
-
|
|
1347
|
+
d(this, "client");
|
|
1297
1348
|
this.client = e;
|
|
1298
1349
|
}
|
|
1299
1350
|
async betRecords(e) {
|
|
1300
1351
|
const t = await this.client.request(
|
|
1301
|
-
|
|
1352
|
+
Qe,
|
|
1302
1353
|
e
|
|
1303
1354
|
);
|
|
1304
1355
|
return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
|
|
1305
1356
|
}
|
|
1306
1357
|
async transactionRecords(e) {
|
|
1307
|
-
const t = await this.client.request(
|
|
1358
|
+
const t = await this.client.request(ze, e);
|
|
1308
1359
|
return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
|
|
1309
1360
|
}
|
|
1310
1361
|
async withdrawalRecords(e) {
|
|
1311
1362
|
const t = await this.client.request(
|
|
1312
|
-
|
|
1363
|
+
$e,
|
|
1313
1364
|
e
|
|
1314
1365
|
);
|
|
1315
1366
|
return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
|
|
1316
1367
|
}
|
|
1317
1368
|
async depositRecords(e) {
|
|
1318
1369
|
const t = await this.client.request(
|
|
1319
|
-
|
|
1370
|
+
Fe,
|
|
1320
1371
|
e
|
|
1321
1372
|
);
|
|
1322
1373
|
return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
|
|
1323
1374
|
}
|
|
1324
1375
|
async depositsCount() {
|
|
1325
|
-
const e = await this.client.request(
|
|
1376
|
+
const e = await this.client.request(je);
|
|
1326
1377
|
return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
|
|
1327
1378
|
}
|
|
1328
1379
|
async member() {
|
|
1329
|
-
const e = await this.client.request(
|
|
1380
|
+
const e = await this.client.request(rt);
|
|
1330
1381
|
return e.ok ? { ok: e.ok, data: e.data.member } : e;
|
|
1331
1382
|
}
|
|
1383
|
+
async pointsWalletTransactions(e) {
|
|
1384
|
+
const t = await this.client.request(Re, e);
|
|
1385
|
+
return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
|
|
1386
|
+
}
|
|
1387
|
+
async activityRecords(e) {
|
|
1388
|
+
const t = await this.client.request(
|
|
1389
|
+
yt,
|
|
1390
|
+
e
|
|
1391
|
+
);
|
|
1392
|
+
return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
|
|
1393
|
+
}
|
|
1332
1394
|
}
|
|
1333
|
-
class
|
|
1395
|
+
class At {
|
|
1334
1396
|
constructor(e) {
|
|
1335
|
-
|
|
1397
|
+
d(this, "url");
|
|
1336
1398
|
this.url = e.url;
|
|
1337
1399
|
}
|
|
1338
1400
|
gameThumbnails(e) {
|
|
@@ -1344,33 +1406,33 @@ class St {
|
|
|
1344
1406
|
}
|
|
1345
1407
|
class Ae {
|
|
1346
1408
|
constructor(e) {
|
|
1347
|
-
|
|
1409
|
+
d(this, "client");
|
|
1348
1410
|
this.client = e;
|
|
1349
1411
|
}
|
|
1350
1412
|
async promos() {
|
|
1351
|
-
const e = await this.client.request(
|
|
1413
|
+
const e = await this.client.request(Je);
|
|
1352
1414
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
1353
1415
|
}
|
|
1354
1416
|
async cashbacks() {
|
|
1355
|
-
const e = await this.client.request(
|
|
1417
|
+
const e = await this.client.request(Ze);
|
|
1356
1418
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
1357
1419
|
}
|
|
1358
1420
|
async availablePromos(e) {
|
|
1359
1421
|
const t = await this.client.request(
|
|
1360
|
-
|
|
1422
|
+
Xe,
|
|
1361
1423
|
e
|
|
1362
1424
|
);
|
|
1363
1425
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
1364
1426
|
}
|
|
1365
1427
|
async cashbackBonuses() {
|
|
1366
|
-
const e = await this.client.request(
|
|
1428
|
+
const e = await this.client.request(tt);
|
|
1367
1429
|
return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
|
|
1368
1430
|
}
|
|
1369
1431
|
async claimCashbackBonus(e) {
|
|
1370
|
-
const t = await this.client.request(
|
|
1432
|
+
const t = await this.client.request(at, e);
|
|
1371
1433
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
1372
1434
|
ok: !1,
|
|
1373
|
-
error:
|
|
1435
|
+
error: m(t.data.claimCashbackBonus.__typename)
|
|
1374
1436
|
} : {
|
|
1375
1437
|
ok: !0
|
|
1376
1438
|
} : {
|
|
@@ -1379,7 +1441,7 @@ class Ae {
|
|
|
1379
1441
|
};
|
|
1380
1442
|
}
|
|
1381
1443
|
async bonus() {
|
|
1382
|
-
const e = await this.client.request(
|
|
1444
|
+
const e = await this.client.request(et);
|
|
1383
1445
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
1384
1446
|
}
|
|
1385
1447
|
async wallet() {
|
|
@@ -1394,90 +1456,90 @@ class Ae {
|
|
|
1394
1456
|
return t.ok ? { ok: t.ok, data: t.data.node } : t;
|
|
1395
1457
|
}
|
|
1396
1458
|
async createGCashDeposit(e) {
|
|
1397
|
-
const t = await this.client.request(
|
|
1459
|
+
const t = await this.client.request(Le, e);
|
|
1398
1460
|
return t.ok ? t.data.createGCashDeposit ? {
|
|
1399
1461
|
ok: !1,
|
|
1400
|
-
error:
|
|
1462
|
+
error: m(t.data.createGCashDeposit.__typename)
|
|
1401
1463
|
} : {
|
|
1402
1464
|
ok: !0
|
|
1403
1465
|
} : t;
|
|
1404
1466
|
}
|
|
1405
1467
|
async createMayaDeposit(e) {
|
|
1406
|
-
const t = await this.client.request(
|
|
1468
|
+
const t = await this.client.request(Ve, e);
|
|
1407
1469
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
1408
1470
|
ok: !1,
|
|
1409
|
-
error:
|
|
1471
|
+
error: m(t.data.createMayaDeposit.__typename)
|
|
1410
1472
|
} : {
|
|
1411
1473
|
ok: !0
|
|
1412
1474
|
} : t;
|
|
1413
1475
|
}
|
|
1414
1476
|
async createMayaAppDeposit(e) {
|
|
1415
|
-
const t = await this.client.request(
|
|
1477
|
+
const t = await this.client.request(Ye, e);
|
|
1416
1478
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
1417
1479
|
ok: !1,
|
|
1418
|
-
error:
|
|
1480
|
+
error: m(t.data.createMayaAppDeposit.__typename)
|
|
1419
1481
|
} : {
|
|
1420
1482
|
ok: !0
|
|
1421
1483
|
} : t;
|
|
1422
1484
|
}
|
|
1423
1485
|
async createGCashWithdrawal(e) {
|
|
1424
|
-
const t = await this.client.request(
|
|
1486
|
+
const t = await this.client.request(We, e);
|
|
1425
1487
|
return t.ok ? t.data.createGCashWithdrawal ? {
|
|
1426
1488
|
ok: !1,
|
|
1427
|
-
error:
|
|
1489
|
+
error: m(t.data.createGCashWithdrawal.__typename)
|
|
1428
1490
|
} : {
|
|
1429
1491
|
ok: !0
|
|
1430
1492
|
} : t;
|
|
1431
1493
|
}
|
|
1432
1494
|
async createMayaWithdrawal(e) {
|
|
1433
|
-
const t = await this.client.request(
|
|
1495
|
+
const t = await this.client.request(Be, e);
|
|
1434
1496
|
return t.ok ? t.data.createMayaWithdrawal ? {
|
|
1435
1497
|
ok: !1,
|
|
1436
|
-
error:
|
|
1498
|
+
error: m(t.data.createMayaWithdrawal.__typename)
|
|
1437
1499
|
} : {
|
|
1438
1500
|
ok: !0
|
|
1439
1501
|
} : t;
|
|
1440
1502
|
}
|
|
1441
1503
|
async createMayaAppWithdrawal(e) {
|
|
1442
|
-
const t = await this.client.request(
|
|
1504
|
+
const t = await this.client.request(Ue, e);
|
|
1443
1505
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1444
1506
|
ok: !1,
|
|
1445
|
-
error:
|
|
1507
|
+
error: m(t.data.createMayaAppWithdrawal.__typename)
|
|
1446
1508
|
} : {
|
|
1447
1509
|
ok: !0
|
|
1448
1510
|
} : t;
|
|
1449
1511
|
}
|
|
1450
1512
|
async createBankWithdrawal(e) {
|
|
1451
|
-
const t = await this.client.request(
|
|
1513
|
+
const t = await this.client.request(Oe, e);
|
|
1452
1514
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
1453
1515
|
ok: !1,
|
|
1454
|
-
error:
|
|
1516
|
+
error: m(t.data.createBankWithdrawal.__typename)
|
|
1455
1517
|
} : {
|
|
1456
1518
|
ok: !0
|
|
1457
1519
|
} : t;
|
|
1458
1520
|
}
|
|
1459
1521
|
async remainingDailyWithdrawalsCount() {
|
|
1460
1522
|
const e = await this.client.request(
|
|
1461
|
-
|
|
1523
|
+
qe
|
|
1462
1524
|
);
|
|
1463
1525
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
1464
1526
|
}
|
|
1465
1527
|
async pointsWallet() {
|
|
1466
|
-
const e = await this.client.request(
|
|
1528
|
+
const e = await this.client.request(Ie);
|
|
1467
1529
|
return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
|
|
1468
1530
|
}
|
|
1469
1531
|
async pointsToCashConversion(e) {
|
|
1470
|
-
const t = await this.client.request(
|
|
1532
|
+
const t = await this.client.request(De, e);
|
|
1471
1533
|
return t.ok ? t.data.pointsToCashConversion ? {
|
|
1472
1534
|
ok: !1,
|
|
1473
|
-
error:
|
|
1535
|
+
error: m(t.data.pointsToCashConversion.__typename)
|
|
1474
1536
|
} : {
|
|
1475
1537
|
ok: !0
|
|
1476
1538
|
} : t;
|
|
1477
1539
|
}
|
|
1478
1540
|
async mayaSession(e) {
|
|
1479
1541
|
const t = await this.client.request(
|
|
1480
|
-
|
|
1542
|
+
wt,
|
|
1481
1543
|
e
|
|
1482
1544
|
);
|
|
1483
1545
|
return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
|
|
@@ -1506,14 +1568,14 @@ class Ae {
|
|
|
1506
1568
|
const t = await this.client.request(Se, e);
|
|
1507
1569
|
return t.ok ? t.data.createGameSession ? {
|
|
1508
1570
|
ok: !1,
|
|
1509
|
-
error:
|
|
1571
|
+
error: m(t.data.createGameSession.__typename)
|
|
1510
1572
|
} : {
|
|
1511
1573
|
ok: !0
|
|
1512
1574
|
} : t;
|
|
1513
1575
|
}
|
|
1514
1576
|
async endGameSession(e) {
|
|
1515
1577
|
const t = await this.client.request(
|
|
1516
|
-
|
|
1578
|
+
Pe,
|
|
1517
1579
|
e
|
|
1518
1580
|
);
|
|
1519
1581
|
return t.ok ? t.data.endGameSession ? {
|
|
@@ -1527,11 +1589,11 @@ class Ae {
|
|
|
1527
1589
|
} : t;
|
|
1528
1590
|
}
|
|
1529
1591
|
}
|
|
1530
|
-
class
|
|
1592
|
+
class kt {
|
|
1531
1593
|
constructor(e) {
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1594
|
+
d(this, "url");
|
|
1595
|
+
d(this, "siteId");
|
|
1596
|
+
d(this, "platformId");
|
|
1535
1597
|
this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
|
|
1536
1598
|
}
|
|
1537
1599
|
async self() {
|
|
@@ -1542,16 +1604,16 @@ class Et {
|
|
|
1542
1604
|
} : e;
|
|
1543
1605
|
}
|
|
1544
1606
|
async games(e) {
|
|
1545
|
-
var r, s, c, u, l, p, y, f, A, k,
|
|
1607
|
+
var r, s, c, u, l, p, y, f, A, k, C, _, T, v, N, M;
|
|
1546
1608
|
const t = new URLSearchParams();
|
|
1547
|
-
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 = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.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), (p = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (
|
|
1609
|
+
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 = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.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), (p = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (_ = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && _.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (v = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && v.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (M = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && M.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(","));
|
|
1548
1610
|
const a = await this.getJson("/games", t);
|
|
1549
1611
|
return a.ok ? {
|
|
1550
1612
|
ok: !0,
|
|
1551
1613
|
data: {
|
|
1552
|
-
edges: a.data.data.map((
|
|
1553
|
-
node:
|
|
1554
|
-
cursor:
|
|
1614
|
+
edges: a.data.data.map((I) => ({
|
|
1615
|
+
node: I,
|
|
1616
|
+
cursor: I.cursor
|
|
1555
1617
|
})),
|
|
1556
1618
|
totalCount: a.data.totalCount ?? 0,
|
|
1557
1619
|
pageInfo: {
|
|
@@ -1599,9 +1661,9 @@ class Et {
|
|
|
1599
1661
|
}
|
|
1600
1662
|
}
|
|
1601
1663
|
}
|
|
1602
|
-
class
|
|
1664
|
+
class Ct {
|
|
1603
1665
|
constructor(e) {
|
|
1604
|
-
|
|
1666
|
+
d(this, "client");
|
|
1605
1667
|
this.client = e;
|
|
1606
1668
|
}
|
|
1607
1669
|
/** @deprecated */
|
|
@@ -1628,46 +1690,46 @@ class At {
|
|
|
1628
1690
|
const t = await this.client.request(Se, e);
|
|
1629
1691
|
return t.ok ? t.data.createGameSession ? {
|
|
1630
1692
|
ok: !1,
|
|
1631
|
-
error:
|
|
1693
|
+
error: m(t.data.createGameSession.__typename)
|
|
1632
1694
|
} : {
|
|
1633
1695
|
ok: !0
|
|
1634
1696
|
} : t;
|
|
1635
1697
|
}
|
|
1636
1698
|
async endGameSession(e) {
|
|
1637
|
-
const t = await this.client.request(
|
|
1699
|
+
const t = await this.client.request(xe, e);
|
|
1638
1700
|
return t.ok ? t.data.endGameSession ? {
|
|
1639
1701
|
ok: !1,
|
|
1640
|
-
error:
|
|
1702
|
+
error: m(t.data.endGameSession.__typename)
|
|
1641
1703
|
} : {
|
|
1642
1704
|
ok: !0
|
|
1643
1705
|
} : t;
|
|
1644
1706
|
}
|
|
1645
1707
|
}
|
|
1646
|
-
class
|
|
1708
|
+
class _t {
|
|
1647
1709
|
constructor(e) {
|
|
1648
|
-
|
|
1710
|
+
d(this, "client");
|
|
1649
1711
|
this.client = e;
|
|
1650
1712
|
}
|
|
1651
1713
|
async latestBetRecords() {
|
|
1652
|
-
const e = await this.client.request(
|
|
1714
|
+
const e = await this.client.request(Ke);
|
|
1653
1715
|
return e.ok ? {
|
|
1654
1716
|
ok: !0,
|
|
1655
1717
|
data: e.data.latestBetRecords
|
|
1656
1718
|
} : e;
|
|
1657
1719
|
}
|
|
1658
1720
|
}
|
|
1659
|
-
function
|
|
1721
|
+
function Tt(o, e, t) {
|
|
1660
1722
|
return o < e ? e : o > t ? t : o;
|
|
1661
1723
|
}
|
|
1662
|
-
function
|
|
1724
|
+
function $(o) {
|
|
1663
1725
|
return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
|
|
1664
1726
|
}
|
|
1665
|
-
function
|
|
1727
|
+
function vt(o) {
|
|
1666
1728
|
const e = [];
|
|
1667
1729
|
function t(a, r = []) {
|
|
1668
1730
|
for (const s in a) {
|
|
1669
1731
|
const c = a[s];
|
|
1670
|
-
|
|
1732
|
+
$(c) ? t(c, [...r, s]) : Array.isArray(c) ? t(Nt(c), [...r, s]) : e.push({
|
|
1671
1733
|
key: [...r, s],
|
|
1672
1734
|
value: c
|
|
1673
1735
|
});
|
|
@@ -1675,14 +1737,14 @@ function Ct(o) {
|
|
|
1675
1737
|
}
|
|
1676
1738
|
return t(o), e;
|
|
1677
1739
|
}
|
|
1678
|
-
function
|
|
1740
|
+
function Nt(o) {
|
|
1679
1741
|
return o.reduce((e, t, a) => (e[a] = t, e), {});
|
|
1680
1742
|
}
|
|
1681
1743
|
class E {
|
|
1682
1744
|
constructor(e, t) {
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1745
|
+
d(this, "url");
|
|
1746
|
+
d(this, "options");
|
|
1747
|
+
d(this, "middlewares");
|
|
1686
1748
|
var r;
|
|
1687
1749
|
const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
|
|
1688
1750
|
this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
|
|
@@ -1742,7 +1804,7 @@ class E {
|
|
|
1742
1804
|
return t;
|
|
1743
1805
|
}
|
|
1744
1806
|
createUploadBody(e, t) {
|
|
1745
|
-
const a =
|
|
1807
|
+
const a = vt(t).filter(
|
|
1746
1808
|
(c) => c.value instanceof File || c.value instanceof Blob
|
|
1747
1809
|
), r = new FormData();
|
|
1748
1810
|
r.append(
|
|
@@ -1766,7 +1828,7 @@ async function g(o) {
|
|
|
1766
1828
|
}
|
|
1767
1829
|
class ke {
|
|
1768
1830
|
constructor(e) {
|
|
1769
|
-
|
|
1831
|
+
d(this, "enabled");
|
|
1770
1832
|
this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
|
|
1771
1833
|
}
|
|
1772
1834
|
info(e) {
|
|
@@ -1782,21 +1844,21 @@ class ke {
|
|
|
1782
1844
|
this.enabled && console.log(`\x1B[32m[success] ${e}`);
|
|
1783
1845
|
}
|
|
1784
1846
|
}
|
|
1785
|
-
function
|
|
1847
|
+
function B(o) {
|
|
1786
1848
|
return new Date(o.getTime());
|
|
1787
1849
|
}
|
|
1788
|
-
function
|
|
1789
|
-
const t =
|
|
1850
|
+
function D(o, e) {
|
|
1851
|
+
const t = B(o);
|
|
1790
1852
|
return t.setDate(t.getDate() + e), t;
|
|
1791
1853
|
}
|
|
1792
1854
|
function R(o, e) {
|
|
1793
|
-
const t =
|
|
1855
|
+
const t = B(o);
|
|
1794
1856
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
1795
1857
|
}
|
|
1796
1858
|
function he(o, e) {
|
|
1797
1859
|
return o.getTime() > e.getTime();
|
|
1798
1860
|
}
|
|
1799
|
-
function
|
|
1861
|
+
function Ce(o) {
|
|
1800
1862
|
return new Promise((e) => {
|
|
1801
1863
|
setTimeout(e, o);
|
|
1802
1864
|
});
|
|
@@ -1810,22 +1872,22 @@ function we(o, e) {
|
|
|
1810
1872
|
} = e;
|
|
1811
1873
|
async function s(c, u) {
|
|
1812
1874
|
const l = u ?? r, p = await o(...c);
|
|
1813
|
-
return t(p) ? p : l > 1 ? (await
|
|
1875
|
+
return t(p) ? p : l > 1 ? (await Ce(a * ((r - l) / 2)), s(c, l - 1)) : p;
|
|
1814
1876
|
}
|
|
1815
1877
|
return async (...c) => await s(c);
|
|
1816
1878
|
}
|
|
1817
1879
|
function P(o, e) {
|
|
1818
|
-
const t =
|
|
1880
|
+
const t = B(o);
|
|
1819
1881
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
1820
1882
|
}
|
|
1821
|
-
class
|
|
1883
|
+
class Mt {
|
|
1822
1884
|
constructor(e) {
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
this.authService = new
|
|
1885
|
+
d(this, "logger");
|
|
1886
|
+
d(this, "storageKey", "session");
|
|
1887
|
+
d(this, "authService");
|
|
1888
|
+
d(this, "walletService");
|
|
1889
|
+
d(this, "_refreshing", !1);
|
|
1890
|
+
this.authService = new bt({
|
|
1829
1891
|
url: e.authUrl,
|
|
1830
1892
|
platform: e.platform
|
|
1831
1893
|
}), this.walletService = new Ae(
|
|
@@ -1875,7 +1937,7 @@ class vt {
|
|
|
1875
1937
|
JSON.stringify({
|
|
1876
1938
|
...u.data,
|
|
1877
1939
|
accessTokenExpiresAt: R(l, 8).getTime(),
|
|
1878
|
-
refreshTokenExpiresAt: P(
|
|
1940
|
+
refreshTokenExpiresAt: P(D(l, 30), 2).getTime()
|
|
1879
1941
|
})
|
|
1880
1942
|
), {
|
|
1881
1943
|
ok: !0,
|
|
@@ -1891,7 +1953,7 @@ class vt {
|
|
|
1891
1953
|
JSON.stringify({
|
|
1892
1954
|
...r.data,
|
|
1893
1955
|
accessTokenExpiresAt: R(s, 8).getTime(),
|
|
1894
|
-
refreshTokenExpiresAt: P(
|
|
1956
|
+
refreshTokenExpiresAt: P(D(s, 30), 2).getTime()
|
|
1895
1957
|
})
|
|
1896
1958
|
), {
|
|
1897
1959
|
ok: !0,
|
|
@@ -1915,7 +1977,7 @@ class vt {
|
|
|
1915
1977
|
JSON.stringify({
|
|
1916
1978
|
...t.data,
|
|
1917
1979
|
accessTokenExpiresAt: R(a, 8).getTime(),
|
|
1918
|
-
refreshTokenExpiresAt: P(
|
|
1980
|
+
refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
|
|
1919
1981
|
})
|
|
1920
1982
|
), {
|
|
1921
1983
|
ok: !0,
|
|
@@ -1931,7 +1993,7 @@ class vt {
|
|
|
1931
1993
|
JSON.stringify({
|
|
1932
1994
|
...t.data,
|
|
1933
1995
|
accessTokenExpiresAt: R(a, 8).getTime(),
|
|
1934
|
-
refreshTokenExpiresAt: P(
|
|
1996
|
+
refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
|
|
1935
1997
|
})
|
|
1936
1998
|
), { ok: !0 };
|
|
1937
1999
|
} else
|
|
@@ -1944,7 +2006,7 @@ class vt {
|
|
|
1944
2006
|
data: null
|
|
1945
2007
|
};
|
|
1946
2008
|
if (this.refreshing)
|
|
1947
|
-
return await
|
|
2009
|
+
return await Ce(1e3), await this.get();
|
|
1948
2010
|
const e = window.localStorage.getItem(this.storageKey);
|
|
1949
2011
|
if (!e)
|
|
1950
2012
|
return {
|
|
@@ -1977,7 +2039,7 @@ class vt {
|
|
|
1977
2039
|
...t,
|
|
1978
2040
|
...c.data,
|
|
1979
2041
|
accessTokenExpiresAt: R(a, 8).getTime(),
|
|
1980
|
-
refreshTokenExpiresAt: P(
|
|
2042
|
+
refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
|
|
1981
2043
|
}, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
|
|
1982
2044
|
}
|
|
1983
2045
|
return {
|
|
@@ -2022,12 +2084,12 @@ function w(o) {
|
|
|
2022
2084
|
for (const t in o) {
|
|
2023
2085
|
const a = o[t];
|
|
2024
2086
|
if (a !== null && a !== void 0) {
|
|
2025
|
-
if (
|
|
2087
|
+
if ($(a)) {
|
|
2026
2088
|
e[t] = w(a);
|
|
2027
2089
|
continue;
|
|
2028
2090
|
}
|
|
2029
2091
|
if (Array.isArray(a)) {
|
|
2030
|
-
e[t] = a.map((r) =>
|
|
2092
|
+
e[t] = a.map((r) => $(r) ? w(r) : r);
|
|
2031
2093
|
continue;
|
|
2032
2094
|
}
|
|
2033
2095
|
e[t] = a;
|
|
@@ -2045,11 +2107,11 @@ function i(o, e) {
|
|
|
2045
2107
|
}
|
|
2046
2108
|
return e;
|
|
2047
2109
|
}
|
|
2048
|
-
class
|
|
2110
|
+
class It {
|
|
2049
2111
|
constructor(e) {
|
|
2050
|
-
|
|
2112
|
+
d(this, "staticService");
|
|
2051
2113
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2052
|
-
this.staticService = new
|
|
2114
|
+
this.staticService = new At({
|
|
2053
2115
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
2054
2116
|
});
|
|
2055
2117
|
}
|
|
@@ -2077,7 +2139,9 @@ class Nt {
|
|
|
2077
2139
|
bonus: this.bonus.bind(this),
|
|
2078
2140
|
cashbackBonus: this.cashbackBonus.bind(this),
|
|
2079
2141
|
file: this.file.bind(this),
|
|
2080
|
-
pointsWallet: this.pointsWallet.bind(this)
|
|
2142
|
+
pointsWallet: this.pointsWallet.bind(this),
|
|
2143
|
+
pointsWalletTransaction: this.pointsWalletTransaction.bind(this),
|
|
2144
|
+
activityRecord: this.activityRecord.bind(this)
|
|
2081
2145
|
};
|
|
2082
2146
|
}
|
|
2083
2147
|
site(e) {
|
|
@@ -2089,7 +2153,7 @@ class Nt {
|
|
|
2089
2153
|
return w(t);
|
|
2090
2154
|
}
|
|
2091
2155
|
platform(e) {
|
|
2092
|
-
var t, a, r, s, c, u, l, p, y, f, A, k,
|
|
2156
|
+
var t, a, r, s, c, u, l, p, y, f, A, k, C, _, T, v, N, M, I, U, O, q, F, L, V, Y, H, j, Q, K, z, J, X, Z, ee, te, ae, re, oe, ne, ie, se, ce, de, me, ue, le, pe, fe;
|
|
2093
2157
|
return {
|
|
2094
2158
|
paymentSettings: {
|
|
2095
2159
|
minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
|
|
@@ -2112,15 +2176,15 @@ class Nt {
|
|
|
2112
2176
|
maximumAmount: i((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
|
|
2113
2177
|
},
|
|
2114
2178
|
maya: {
|
|
2115
|
-
androidEnabled: ((
|
|
2116
|
-
iosEnabled: ((
|
|
2179
|
+
androidEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.androidEnabled) ?? !1,
|
|
2180
|
+
iosEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.iosEnabled) ?? !1,
|
|
2117
2181
|
webEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.webEnabled) ?? !1,
|
|
2118
2182
|
mobileWebEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.mobileWebEnabled) ?? !1,
|
|
2119
2183
|
minimumAmount: i((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.minimumAmount),
|
|
2120
2184
|
maximumAmount: i((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.maximumAmount)
|
|
2121
2185
|
},
|
|
2122
2186
|
mayaApp: {
|
|
2123
|
-
androidEnabled: ((
|
|
2187
|
+
androidEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.androidEnabled) ?? !1,
|
|
2124
2188
|
iosEnabled: ((U = e.mayaAppDepositGatewaySettings) == null ? void 0 : U.iosEnabled) ?? !1,
|
|
2125
2189
|
webEnabled: ((O = e.mayaAppDepositGatewaySettings) == null ? void 0 : O.webEnabled) ?? !1,
|
|
2126
2190
|
mobileWebEnabled: ((q = e.mayaAppDepositGatewaySettings) == null ? void 0 : q.mobileWebEnabled) ?? !1,
|
|
@@ -2131,8 +2195,8 @@ class Nt {
|
|
|
2131
2195
|
withdrawalGateway: {
|
|
2132
2196
|
bank: {
|
|
2133
2197
|
androidEnabled: ((V = e.bankWithdrawalGatewaySettings) == null ? void 0 : V.androidEnabled) ?? !1,
|
|
2134
|
-
iosEnabled: ((
|
|
2135
|
-
webEnabled: ((
|
|
2198
|
+
iosEnabled: ((Y = e.bankWithdrawalGatewaySettings) == null ? void 0 : Y.iosEnabled) ?? !1,
|
|
2199
|
+
webEnabled: ((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.webEnabled) ?? !1,
|
|
2136
2200
|
mobileWebEnabled: ((j = e.bankWithdrawalGatewaySettings) == null ? void 0 : j.mobileWebEnabled) ?? !1,
|
|
2137
2201
|
minimumAmount: i((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.minimumAmount),
|
|
2138
2202
|
maximumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.maximumAmount)
|
|
@@ -2158,8 +2222,8 @@ class Nt {
|
|
|
2158
2222
|
},
|
|
2159
2223
|
mayaApp: {
|
|
2160
2224
|
androidEnabled: ((ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.androidEnabled) ?? !1,
|
|
2161
|
-
iosEnabled: ((
|
|
2162
|
-
webEnabled: ((
|
|
2225
|
+
iosEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
|
|
2226
|
+
webEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.webEnabled) ?? !1,
|
|
2163
2227
|
mobileWebEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.mobileWebEnabled) ?? !1,
|
|
2164
2228
|
minimumAmount: i((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.minimumAmount),
|
|
2165
2229
|
maximumAmount: i(
|
|
@@ -2452,26 +2516,43 @@ class Nt {
|
|
|
2452
2516
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2453
2517
|
};
|
|
2454
2518
|
}
|
|
2519
|
+
pointsWalletTransaction(e) {
|
|
2520
|
+
return {
|
|
2521
|
+
id: e.id,
|
|
2522
|
+
type: e.type,
|
|
2523
|
+
amount: i(e.amount, 0),
|
|
2524
|
+
balance: i(e.balance, 0),
|
|
2525
|
+
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2526
|
+
};
|
|
2527
|
+
}
|
|
2528
|
+
activityRecord(e) {
|
|
2529
|
+
return {
|
|
2530
|
+
id: e.id,
|
|
2531
|
+
type: e.type,
|
|
2532
|
+
details: e.details,
|
|
2533
|
+
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2534
|
+
};
|
|
2535
|
+
}
|
|
2455
2536
|
}
|
|
2456
|
-
class
|
|
2537
|
+
class Pt {
|
|
2457
2538
|
constructor(e) {
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2539
|
+
d(this, "gameService");
|
|
2540
|
+
d(this, "fileService");
|
|
2541
|
+
d(this, "walletService");
|
|
2542
|
+
d(this, "reportService");
|
|
2543
|
+
d(this, "portalService");
|
|
2544
|
+
d(this, "accountService");
|
|
2545
|
+
d(this, "cmsPortalService");
|
|
2546
|
+
d(this, "sessionManager");
|
|
2547
|
+
d(this, "transformer");
|
|
2548
|
+
d(this, "logger");
|
|
2468
2549
|
const t = e.environment === "development";
|
|
2469
|
-
this.sessionManager = new
|
|
2550
|
+
this.sessionManager = new Mt({
|
|
2470
2551
|
authUrl: t ? "https://auth.development.opexa.io" : "https://auth.opexa.io",
|
|
2471
2552
|
walletUrl: t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
|
|
2472
2553
|
platform: e.platform,
|
|
2473
2554
|
log: e.log
|
|
2474
|
-
}), this.cmsPortalService = new
|
|
2555
|
+
}), this.cmsPortalService = new kt({
|
|
2475
2556
|
url: "https://portal-api.opexacms.io/v1",
|
|
2476
2557
|
site: e.site,
|
|
2477
2558
|
platform: e.sitePlatform
|
|
@@ -2485,12 +2566,12 @@ class It {
|
|
|
2485
2566
|
}
|
|
2486
2567
|
}
|
|
2487
2568
|
};
|
|
2488
|
-
this.gameService = new
|
|
2569
|
+
this.gameService = new Ct(
|
|
2489
2570
|
new E(
|
|
2490
2571
|
t ? "https://game.development.opexa.io/graphql" : "https://game.opexa.io/graphql",
|
|
2491
2572
|
a
|
|
2492
2573
|
)
|
|
2493
|
-
), this.fileService = new
|
|
2574
|
+
), this.fileService = new St(
|
|
2494
2575
|
new E(
|
|
2495
2576
|
t ? "https://file.development.opexa.io/graphql" : "https://file.opexa.io/graphql",
|
|
2496
2577
|
a
|
|
@@ -2500,22 +2581,22 @@ class It {
|
|
|
2500
2581
|
t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
|
|
2501
2582
|
a
|
|
2502
2583
|
)
|
|
2503
|
-
), this.reportService = new
|
|
2584
|
+
), this.reportService = new Et(
|
|
2504
2585
|
new E(
|
|
2505
2586
|
t ? "https://report.development.opexa.io/graphql" : "https://report.opexa.io/graphql",
|
|
2506
2587
|
a
|
|
2507
2588
|
)
|
|
2508
|
-
), this.accountService = new
|
|
2589
|
+
), this.accountService = new gt(
|
|
2509
2590
|
new E(
|
|
2510
2591
|
t ? "https://account.development.opexa.io/graphql" : "https://account.opexa.io/graphql",
|
|
2511
2592
|
a
|
|
2512
2593
|
)
|
|
2513
|
-
), this.portalService = new
|
|
2594
|
+
), this.portalService = new _t(
|
|
2514
2595
|
new E(
|
|
2515
2596
|
t ? "https://portal.development.opexa.io/graphql" : "https://portal.opexa.io/graphql",
|
|
2516
2597
|
a
|
|
2517
2598
|
)
|
|
2518
|
-
), this.transformer = new
|
|
2599
|
+
), this.transformer = new It(e), this.logger = new ke({
|
|
2519
2600
|
enabled: e.log ?? !1
|
|
2520
2601
|
});
|
|
2521
2602
|
}
|
|
@@ -2631,7 +2712,7 @@ class It {
|
|
|
2631
2712
|
* ```
|
|
2632
2713
|
*/
|
|
2633
2714
|
watchSession(e) {
|
|
2634
|
-
const t =
|
|
2715
|
+
const t = Tt(e.interval ?? 3e4, 3e4, 6e4);
|
|
2635
2716
|
let a = null;
|
|
2636
2717
|
const r = () => setTimeout(async () => {
|
|
2637
2718
|
await this.sessionManager.verify() || await e.onInvalid(), a = r();
|
|
@@ -3396,13 +3477,48 @@ class It {
|
|
|
3396
3477
|
}
|
|
3397
3478
|
});
|
|
3398
3479
|
}
|
|
3480
|
+
async pointsWalletTransactions(e) {
|
|
3481
|
+
const t = await this.reportService.pointsWalletTransactions(e);
|
|
3482
|
+
return t.ok ? {
|
|
3483
|
+
ok: !0,
|
|
3484
|
+
data: {
|
|
3485
|
+
pointsWalletTransactions: t.data.edges.map(({ cursor: a, node: r }) => ({
|
|
3486
|
+
...this.transformer.transform.pointsWalletTransaction(r),
|
|
3487
|
+
cursor: a
|
|
3488
|
+
})),
|
|
3489
|
+
totalCount: t.data.totalCount,
|
|
3490
|
+
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
3491
|
+
endCursor: t.data.pageInfo.endCursor ?? void 0
|
|
3492
|
+
}
|
|
3493
|
+
} : t;
|
|
3494
|
+
}
|
|
3495
|
+
/**/
|
|
3496
|
+
/*+----------------------------------------+*/
|
|
3497
|
+
/*+ ACTIVITY +*/
|
|
3498
|
+
/*+----------------------------------------+*/
|
|
3499
|
+
/**/
|
|
3500
|
+
async activityRecords(e) {
|
|
3501
|
+
const t = await this.reportService.activityRecords(e);
|
|
3502
|
+
return t.ok ? {
|
|
3503
|
+
ok: !0,
|
|
3504
|
+
data: {
|
|
3505
|
+
activityRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
|
|
3506
|
+
...this.transformer.transform.activityRecord(r),
|
|
3507
|
+
cursor: a
|
|
3508
|
+
})),
|
|
3509
|
+
totalCount: t.data.totalCount,
|
|
3510
|
+
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
3511
|
+
endCursor: t.data.pageInfo.endCursor ?? void 0
|
|
3512
|
+
}
|
|
3513
|
+
} : t;
|
|
3514
|
+
}
|
|
3399
3515
|
addAreaCode(e) {
|
|
3400
3516
|
return e.startsWith("+63") ? e : e.startsWith("63") ? `+${e}` : e.startsWith("0") ? `+63${e.substring(1)}` : `+63${e}`;
|
|
3401
3517
|
}
|
|
3402
3518
|
}
|
|
3403
3519
|
export {
|
|
3404
|
-
|
|
3520
|
+
$t as ObjectId,
|
|
3405
3521
|
S as ObjectType,
|
|
3406
|
-
|
|
3522
|
+
Pt as Sdk
|
|
3407
3523
|
};
|
|
3408
3524
|
//# sourceMappingURL=index.mjs.map
|