@opexa/portal-sdk 0.0.21 → 0.0.23
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 +481 -469
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +920 -868
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +8 -23
- package/dist/sdk/session-manager.d.ts +8 -3
- package/dist/sdk/types.d.ts +141 -98
- package/dist/services/account.service.d.ts +1 -4
- package/dist/services/auth.service.d.ts +2 -4
- package/dist/services/file.service.d.ts +1 -1
- package/dist/services/game.service.d.ts +12 -7
- package/dist/services/index.d.ts +0 -16
- package/dist/services/portal.service.d.ts +1 -1
- package/dist/services/queries.d.ts +55 -0
- package/dist/services/report.service.d.ts +1 -6
- package/dist/services/types.d.ts +793 -8
- package/dist/services/utils.d.ts +2 -9
- package/dist/services/wallet.service.d.ts +17 -10
- package/dist/utils/clamp.d.ts +1 -0
- package/dist/utils/pollable.d.ts +28 -0
- package/package.json +4 -1
- package/dist/services/announcement.d.ts +0 -29
- package/dist/services/bet-record.d.ts +0 -65
- package/dist/services/bonus.d.ts +0 -45
- package/dist/services/cashback.d.ts +0 -20
- package/dist/services/deposit.d.ts +0 -90
- package/dist/services/file.d.ts +0 -49
- package/dist/services/game.d.ts +0 -98
- package/dist/services/member.d.ts +0 -202
- package/dist/services/platform.d.ts +0 -38
- package/dist/services/points.d.ts +0 -24
- package/dist/services/promo.d.ts +0 -33
- package/dist/services/session.d.ts +0 -80
- package/dist/services/transaction.d.ts +0 -25
- package/dist/services/wallet.d.ts +0 -14
- package/dist/services/withdrawal.d.ts +0 -114
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { ObjectId as
|
|
5
|
-
import { ObjectId as
|
|
6
|
-
const
|
|
1
|
+
var ke = Object.defineProperty;
|
|
2
|
+
var Ce = (n, e, t) => e in n ? ke(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var d = (n, e, t) => Ce(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { ObjectId as b } from "@opexa/object-id";
|
|
5
|
+
import { ObjectId as Pt } from "@opexa/object-id";
|
|
6
|
+
const g = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
9
9
|
Withdrawal: 14,
|
|
@@ -12,7 +12,7 @@ const w = {
|
|
|
12
12
|
GameSession: 204,
|
|
13
13
|
MayaSession: 230
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function o(n, ...e) {
|
|
16
16
|
let t = "";
|
|
17
17
|
for (const [a, r] of n.entries()) {
|
|
18
18
|
const s = e.at(a) ?? "";
|
|
@@ -20,55 +20,76 @@ function i(n, ...e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t.trim();
|
|
22
22
|
}
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
dateTimeCreated
|
|
38
|
-
dateTimeLastUpdated
|
|
39
|
-
}
|
|
40
|
-
}
|
|
23
|
+
const C = o`
|
|
24
|
+
fragment FileFragment on File {
|
|
25
|
+
id
|
|
26
|
+
url
|
|
27
|
+
status
|
|
28
|
+
dateTimeCreated
|
|
29
|
+
}
|
|
30
|
+
`, _e = o`
|
|
31
|
+
${C}
|
|
32
|
+
|
|
33
|
+
query File($id: ObjectId!) {
|
|
34
|
+
node(id: $id) {
|
|
35
|
+
... on File {
|
|
36
|
+
...FileFragment
|
|
41
37
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`, Te = o`
|
|
41
|
+
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
42
|
+
uploadPrivateImageFile(input: $input) {
|
|
43
|
+
... on FileFormatNotSupportedError {
|
|
44
|
+
__typename
|
|
45
|
+
}
|
|
46
|
+
... on FileNameTooLongError {
|
|
47
|
+
__typename
|
|
48
|
+
}
|
|
49
|
+
... on FileSizeTooBigError {
|
|
50
|
+
__typename
|
|
46
51
|
}
|
|
47
52
|
}
|
|
48
53
|
}
|
|
49
|
-
`,
|
|
54
|
+
`, ve = o`
|
|
55
|
+
query Wallet {
|
|
56
|
+
wallet {
|
|
57
|
+
id
|
|
58
|
+
balance
|
|
59
|
+
currency
|
|
60
|
+
dateTimeCreated
|
|
61
|
+
dateTimeLastUpdated
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`, Me = o`
|
|
65
|
+
query PointsWallet {
|
|
66
|
+
pointsWallet {
|
|
67
|
+
id
|
|
68
|
+
points
|
|
69
|
+
account
|
|
70
|
+
dateTimeCreated
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`, Ne = o`
|
|
74
|
+
mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
|
|
75
|
+
pointsToCashConversion(input: $input) {
|
|
76
|
+
... on InsufficientPointsError {
|
|
77
|
+
__typename
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
`, _ = o`
|
|
50
82
|
fragment GameFragment on Game {
|
|
51
83
|
id
|
|
52
84
|
type
|
|
53
85
|
name
|
|
54
86
|
provider
|
|
55
87
|
}
|
|
56
|
-
`,
|
|
57
|
-
${
|
|
88
|
+
`, we = o`
|
|
89
|
+
${_}
|
|
58
90
|
|
|
59
|
-
query
|
|
60
|
-
|
|
61
|
-
... on Game {
|
|
62
|
-
...GameFragment
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
`, Se = i`
|
|
67
|
-
${k}
|
|
68
|
-
|
|
69
|
-
query Games($after: Cursor, $first: Int, $filter: GameFilterInput) {
|
|
70
|
-
games(after: $after, first: $first, filter: $filter) {
|
|
71
|
-
totalCount
|
|
91
|
+
query Games($first: Int, $after: Cursor, $filter: GameFilterInput) {
|
|
92
|
+
games(first: $first, after: $after, filter: $filter) {
|
|
72
93
|
edges {
|
|
73
94
|
cursor
|
|
74
95
|
node {
|
|
@@ -77,25 +98,27 @@ const Ee = i`
|
|
|
77
98
|
}
|
|
78
99
|
}
|
|
79
100
|
}
|
|
101
|
+
totalCount
|
|
80
102
|
pageInfo {
|
|
81
103
|
hasNextPage
|
|
82
104
|
endCursor
|
|
83
105
|
}
|
|
84
106
|
}
|
|
85
107
|
}
|
|
86
|
-
`,
|
|
87
|
-
${
|
|
108
|
+
`, ye = o`
|
|
109
|
+
${_}
|
|
88
110
|
|
|
89
|
-
query GamesByName($search: String!, $filter: GameFilterInput
|
|
90
|
-
gamesByName(
|
|
91
|
-
|
|
111
|
+
query GamesByName($first: Int, $search: String!, $filter: GameFilterInput) {
|
|
112
|
+
gamesByName(first: $first, search: $search, filter: $filter) {
|
|
113
|
+
id
|
|
92
114
|
}
|
|
93
115
|
}
|
|
94
|
-
`,
|
|
116
|
+
`, De = o`
|
|
95
117
|
query GameSession($id: ObjectId!) {
|
|
96
118
|
node(id: $id) {
|
|
97
119
|
... on GameSession {
|
|
98
120
|
id
|
|
121
|
+
game
|
|
99
122
|
status
|
|
100
123
|
launchUrl
|
|
101
124
|
dateTimeCreated
|
|
@@ -103,7 +126,7 @@ const Ee = i`
|
|
|
103
126
|
}
|
|
104
127
|
}
|
|
105
128
|
}
|
|
106
|
-
`,
|
|
129
|
+
`, be = o`
|
|
107
130
|
mutation CreateGameSession($input: CreateGameSessionInput!) {
|
|
108
131
|
createGameSession(input: $input) {
|
|
109
132
|
... on GameDoesNotExistError {
|
|
@@ -111,43 +134,125 @@ const Ee = i`
|
|
|
111
134
|
}
|
|
112
135
|
}
|
|
113
136
|
}
|
|
114
|
-
`,
|
|
137
|
+
`, Ie = o`
|
|
115
138
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
116
139
|
endGameSession(input: $input)
|
|
117
140
|
}
|
|
118
|
-
`,
|
|
119
|
-
${
|
|
120
|
-
|
|
121
|
-
|
|
141
|
+
`, Re = o`
|
|
142
|
+
query GameSession($id: ObjectId!) {
|
|
143
|
+
node(id: $id) {
|
|
144
|
+
... on GameSession {
|
|
145
|
+
id
|
|
146
|
+
game {
|
|
147
|
+
id
|
|
148
|
+
}
|
|
149
|
+
status
|
|
150
|
+
launchUrl
|
|
151
|
+
dateTimeCreated
|
|
152
|
+
dateTimeLastUpdated
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
`, Ge = o`
|
|
157
|
+
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
158
|
+
endGameSession(input: $input) {
|
|
159
|
+
... on GameSessionDoesNotExistError {
|
|
160
|
+
__typename
|
|
161
|
+
}
|
|
162
|
+
... on GameSessionAlreadyClosedError {
|
|
163
|
+
__typename
|
|
164
|
+
}
|
|
165
|
+
... on GameProviderError {
|
|
166
|
+
__typename
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
`, Pe = o`
|
|
171
|
+
query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
|
|
172
|
+
announcements(first: $first, after: $after, filter: $filter) {
|
|
173
|
+
edges {
|
|
174
|
+
cursor
|
|
175
|
+
node {
|
|
176
|
+
... on Announcement {
|
|
177
|
+
id
|
|
178
|
+
type
|
|
179
|
+
title
|
|
180
|
+
status
|
|
181
|
+
message
|
|
182
|
+
activationStartDateTime
|
|
183
|
+
activationEndDateTime
|
|
184
|
+
dateTimeCreated
|
|
185
|
+
dateTimeLastUpdated
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
totalCount
|
|
190
|
+
pageInfo {
|
|
191
|
+
hasNextPage
|
|
192
|
+
endCursor
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
`, xe = o`
|
|
197
|
+
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
122
198
|
member {
|
|
123
|
-
|
|
124
|
-
totalCount
|
|
199
|
+
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
125
200
|
edges {
|
|
126
201
|
cursor
|
|
127
202
|
node {
|
|
128
|
-
... on
|
|
203
|
+
... on BankWithdrawalRecord {
|
|
129
204
|
id
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
winloss
|
|
137
|
-
jackpotPayout
|
|
138
|
-
jackpotContribution
|
|
205
|
+
type
|
|
206
|
+
bank
|
|
207
|
+
fee
|
|
208
|
+
netAmount
|
|
209
|
+
reference
|
|
210
|
+
amount
|
|
139
211
|
status
|
|
212
|
+
withdrawalNumber
|
|
213
|
+
dateTimeCreated
|
|
214
|
+
dateTimeLastUpdated
|
|
215
|
+
}
|
|
216
|
+
... on GCashWithdrawalRecord {
|
|
217
|
+
id
|
|
218
|
+
type
|
|
219
|
+
fee
|
|
220
|
+
netAmount
|
|
221
|
+
reference
|
|
222
|
+
amount
|
|
223
|
+
status
|
|
224
|
+
withdrawalNumber
|
|
225
|
+
recipientMobileNumber
|
|
226
|
+
dateTimeCreated
|
|
227
|
+
dateTimeLastUpdated
|
|
228
|
+
}
|
|
229
|
+
... on ManualWithdrawalRecord {
|
|
230
|
+
id
|
|
231
|
+
type
|
|
232
|
+
fee
|
|
233
|
+
netAmount
|
|
234
|
+
reference
|
|
235
|
+
amount
|
|
236
|
+
status
|
|
237
|
+
withdrawalNumber
|
|
238
|
+
dateTimeCreated
|
|
239
|
+
dateTimeLastUpdated
|
|
240
|
+
}
|
|
241
|
+
... on MayaAppWithdrawalRecord {
|
|
242
|
+
id
|
|
243
|
+
type
|
|
244
|
+
fee
|
|
245
|
+
netAmount
|
|
246
|
+
reference
|
|
247
|
+
amount
|
|
248
|
+
status
|
|
249
|
+
withdrawalNumber
|
|
140
250
|
dateTimeCreated
|
|
141
|
-
dateTimeSettled
|
|
142
251
|
dateTimeLastUpdated
|
|
143
|
-
metadata
|
|
144
|
-
vendorRoundId
|
|
145
|
-
betContent
|
|
146
|
-
contestName
|
|
147
|
-
externalCategory
|
|
148
252
|
}
|
|
149
253
|
}
|
|
150
254
|
}
|
|
255
|
+
totalCount
|
|
151
256
|
pageInfo {
|
|
152
257
|
hasNextPage
|
|
153
258
|
endCursor
|
|
@@ -155,168 +260,100 @@ const Ee = i`
|
|
|
155
260
|
}
|
|
156
261
|
}
|
|
157
262
|
}
|
|
158
|
-
`,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
id
|
|
164
|
-
name
|
|
263
|
+
`, $e = o`
|
|
264
|
+
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
265
|
+
createGCashWithdrawal(input: $input) {
|
|
266
|
+
... on AccountNotVerifiedError {
|
|
267
|
+
__typename
|
|
165
268
|
}
|
|
166
|
-
|
|
167
|
-
|
|
269
|
+
... on InvalidTransactionPasswordError {
|
|
270
|
+
__typename
|
|
168
271
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
validBet
|
|
172
|
-
dateTimeSettled
|
|
173
|
-
dateTimeCreated
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
${k}
|
|
178
|
-
`, T = i`
|
|
179
|
-
fragment FileFragment on File {
|
|
180
|
-
id
|
|
181
|
-
url
|
|
182
|
-
status
|
|
183
|
-
dateTimeCreated
|
|
184
|
-
}
|
|
185
|
-
`, De = i`
|
|
186
|
-
${T}
|
|
187
|
-
|
|
188
|
-
query File($id: ObjectId!) {
|
|
189
|
-
node(id: $id) {
|
|
190
|
-
... on File {
|
|
191
|
-
...FileFragment
|
|
272
|
+
... on InvalidWithdrawalAmountError {
|
|
273
|
+
__typename
|
|
192
274
|
}
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
`, Ne = i`
|
|
196
|
-
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
197
|
-
uploadPrivateImageFile(input: $input) {
|
|
198
|
-
... on FileFormatNotSupportedError {
|
|
275
|
+
... on MobileNumberNotVerifiedError {
|
|
199
276
|
__typename
|
|
200
277
|
}
|
|
201
|
-
... on
|
|
278
|
+
... on NotEnoughBalanceError {
|
|
202
279
|
__typename
|
|
203
280
|
}
|
|
204
|
-
... on
|
|
281
|
+
... on WithdrawalDailyLimitExceededError {
|
|
205
282
|
__typename
|
|
206
283
|
}
|
|
207
284
|
}
|
|
208
285
|
}
|
|
209
|
-
`,
|
|
210
|
-
${
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
name
|
|
215
|
-
banner {
|
|
216
|
-
...FileFragment
|
|
217
|
-
}
|
|
218
|
-
status
|
|
219
|
-
description
|
|
220
|
-
activationStartDateTime
|
|
221
|
-
activationEndDateTime
|
|
222
|
-
dateTimeCreated
|
|
223
|
-
dateTimeLastUpdated
|
|
224
|
-
}
|
|
225
|
-
`, Ie = i`
|
|
226
|
-
${he}
|
|
227
|
-
|
|
228
|
-
query Cashbacks {
|
|
229
|
-
cashbacks {
|
|
230
|
-
...CashbackFragment
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
`, v = i`
|
|
234
|
-
${T}
|
|
235
|
-
|
|
236
|
-
fragment PromoFragment on Promo {
|
|
237
|
-
id
|
|
238
|
-
type
|
|
239
|
-
name
|
|
240
|
-
banner {
|
|
241
|
-
...FileFragment
|
|
242
|
-
}
|
|
243
|
-
status
|
|
244
|
-
description
|
|
245
|
-
maximumBonusAmount
|
|
246
|
-
minimumBonusAmount
|
|
247
|
-
activationStartDateTime
|
|
248
|
-
activationEndDateTime
|
|
249
|
-
dateTimeCreated
|
|
250
|
-
dateTimeLastUpdated
|
|
251
|
-
}
|
|
252
|
-
`, Re = i`
|
|
253
|
-
${v}
|
|
254
|
-
|
|
255
|
-
query Promos {
|
|
256
|
-
promos {
|
|
257
|
-
...PromoFragment
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
`, Pe = i`
|
|
261
|
-
${v}
|
|
262
|
-
|
|
263
|
-
query AvailablePromos($filter: PromoFilterInput) {
|
|
264
|
-
availablePromos(filter: $filter) {
|
|
265
|
-
...PromoFragment
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
`, Ge = i`
|
|
269
|
-
${v}
|
|
270
|
-
|
|
271
|
-
query Bonus {
|
|
272
|
-
bonus {
|
|
273
|
-
id
|
|
274
|
-
promo {
|
|
275
|
-
...PromoFragment
|
|
286
|
+
`, Be = o`
|
|
287
|
+
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
288
|
+
createMayaWithdrawal(input: $input) {
|
|
289
|
+
... on AccountNotVerifiedError {
|
|
290
|
+
__typename
|
|
276
291
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
292
|
+
... on InvalidTransactionPasswordError {
|
|
293
|
+
__typename
|
|
294
|
+
}
|
|
295
|
+
... on InvalidWithdrawalAmountError {
|
|
296
|
+
__typename
|
|
297
|
+
}
|
|
298
|
+
... on MobileNumberNotVerifiedError {
|
|
299
|
+
__typename
|
|
300
|
+
}
|
|
301
|
+
... on NotEnoughBalanceError {
|
|
302
|
+
__typename
|
|
303
|
+
}
|
|
304
|
+
... on WithdrawalDailyLimitExceededError {
|
|
305
|
+
__typename
|
|
286
306
|
}
|
|
287
|
-
amount
|
|
288
|
-
balance
|
|
289
|
-
turnoverRequirement
|
|
290
|
-
currentTurnoverRequirementContribution
|
|
291
|
-
currentTurnoverRequirementContributionPercentage
|
|
292
|
-
expiration
|
|
293
|
-
dateTimeCreated
|
|
294
|
-
dateTimeLastUpdated
|
|
295
307
|
}
|
|
296
308
|
}
|
|
297
|
-
`,
|
|
298
|
-
${
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
309
|
+
`, We = o`
|
|
310
|
+
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
311
|
+
createMayaAppWithdrawal(input: $input) {
|
|
312
|
+
... on AccountNotVerifiedError {
|
|
313
|
+
__typename
|
|
314
|
+
}
|
|
315
|
+
... on InvalidTransactionPasswordError {
|
|
316
|
+
__typename
|
|
317
|
+
}
|
|
318
|
+
... on InvalidWithdrawalAmountError {
|
|
319
|
+
__typename
|
|
320
|
+
}
|
|
321
|
+
... on NotEnoughBalanceError {
|
|
322
|
+
__typename
|
|
323
|
+
}
|
|
324
|
+
... on WithdrawalDailyLimitExceededError {
|
|
325
|
+
__typename
|
|
306
326
|
}
|
|
307
|
-
dateTimeCreated
|
|
308
|
-
dateTimeLastUpdated
|
|
309
327
|
}
|
|
310
328
|
}
|
|
311
|
-
`,
|
|
312
|
-
mutation
|
|
313
|
-
|
|
314
|
-
... on
|
|
329
|
+
`, Ue = o`
|
|
330
|
+
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
331
|
+
createBankWithdrawal(input: $input) {
|
|
332
|
+
... on MobileNumberNotVerifiedError {
|
|
333
|
+
__typename
|
|
334
|
+
}
|
|
335
|
+
... on AccountNotVerifiedError {
|
|
336
|
+
__typename
|
|
337
|
+
}
|
|
338
|
+
... on InvalidWithdrawalAmountError {
|
|
339
|
+
__typename
|
|
340
|
+
}
|
|
341
|
+
... on WithdrawalDailyLimitExceededError {
|
|
342
|
+
__typename
|
|
343
|
+
}
|
|
344
|
+
... on InvalidTransactionPasswordError {
|
|
345
|
+
__typename
|
|
346
|
+
}
|
|
347
|
+
... on NotEnoughBalanceError {
|
|
315
348
|
__typename
|
|
316
349
|
}
|
|
317
350
|
}
|
|
318
351
|
}
|
|
319
|
-
`,
|
|
352
|
+
`, Oe = o`
|
|
353
|
+
query RemainingDailyWithdrawalsCount {
|
|
354
|
+
remainingDailyWithdrawalsCount
|
|
355
|
+
}
|
|
356
|
+
`, qe = o`
|
|
320
357
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
321
358
|
member {
|
|
322
359
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -345,7 +382,7 @@ const Ee = i`
|
|
|
345
382
|
}
|
|
346
383
|
}
|
|
347
384
|
}
|
|
348
|
-
`,
|
|
385
|
+
`, Fe = o`
|
|
349
386
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
350
387
|
createGCashDeposit(input: $input) {
|
|
351
388
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -374,7 +411,7 @@ const Ee = i`
|
|
|
374
411
|
}
|
|
375
412
|
}
|
|
376
413
|
}
|
|
377
|
-
`,
|
|
414
|
+
`, Le = o`
|
|
378
415
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
379
416
|
createMayaDeposit(input: $input) {
|
|
380
417
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -403,7 +440,7 @@ const Ee = i`
|
|
|
403
440
|
}
|
|
404
441
|
}
|
|
405
442
|
}
|
|
406
|
-
`,
|
|
443
|
+
`, Ve = o`
|
|
407
444
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
408
445
|
createMayaAppDeposit(input: $input) {
|
|
409
446
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -432,35 +469,199 @@ const Ee = i`
|
|
|
432
469
|
}
|
|
433
470
|
}
|
|
434
471
|
}
|
|
435
|
-
`,
|
|
472
|
+
`, Ye = o`
|
|
436
473
|
query Deposit($id: ObjectId!) {
|
|
437
474
|
node(id: $id) {
|
|
438
475
|
... on GCashDeposit {
|
|
439
476
|
id
|
|
440
477
|
type
|
|
441
|
-
amount
|
|
442
|
-
netAmount
|
|
443
|
-
fee
|
|
444
478
|
status
|
|
445
|
-
reference
|
|
446
479
|
checkoutUrl
|
|
447
|
-
dateTimeCreated
|
|
448
|
-
dateTimeLastUpdated
|
|
449
480
|
}
|
|
450
481
|
... on MayaDeposit {
|
|
451
482
|
id
|
|
452
483
|
type
|
|
453
|
-
amount
|
|
454
|
-
netAmount
|
|
455
|
-
fee
|
|
456
484
|
status
|
|
457
|
-
reference
|
|
458
485
|
checkoutUrl
|
|
459
|
-
dateTimeCreated
|
|
460
|
-
dateTimeLastUpdated
|
|
461
486
|
}
|
|
462
487
|
... on MayaAppDeposit {
|
|
463
488
|
id
|
|
489
|
+
type
|
|
490
|
+
status
|
|
491
|
+
}
|
|
492
|
+
... on BankDeposit {
|
|
493
|
+
id
|
|
494
|
+
type
|
|
495
|
+
status
|
|
496
|
+
}
|
|
497
|
+
... on ManualDeposit {
|
|
498
|
+
id
|
|
499
|
+
type
|
|
500
|
+
status
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
`, He = o`
|
|
505
|
+
query DepositsCount {
|
|
506
|
+
member {
|
|
507
|
+
depositsCount
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
`, je = o`
|
|
511
|
+
${_}
|
|
512
|
+
|
|
513
|
+
query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
|
|
514
|
+
member {
|
|
515
|
+
betRecords(first: $first, after: $after, filter: $filter) {
|
|
516
|
+
totalCount
|
|
517
|
+
edges {
|
|
518
|
+
cursor
|
|
519
|
+
node {
|
|
520
|
+
... on BetRecord {
|
|
521
|
+
id
|
|
522
|
+
serialCode
|
|
523
|
+
game {
|
|
524
|
+
...GameFragment
|
|
525
|
+
}
|
|
526
|
+
bet
|
|
527
|
+
payout
|
|
528
|
+
winloss
|
|
529
|
+
jackpotPayout
|
|
530
|
+
jackpotContribution
|
|
531
|
+
status
|
|
532
|
+
dateTimeCreated
|
|
533
|
+
dateTimeSettled
|
|
534
|
+
dateTimeLastUpdated
|
|
535
|
+
metadata
|
|
536
|
+
vendorRoundId
|
|
537
|
+
betContent
|
|
538
|
+
contestName
|
|
539
|
+
externalCategory
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
pageInfo {
|
|
544
|
+
hasNextPage
|
|
545
|
+
endCursor
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
`, Qe = o`
|
|
551
|
+
query LatestBetRecords {
|
|
552
|
+
latestBetRecords {
|
|
553
|
+
id
|
|
554
|
+
member {
|
|
555
|
+
id
|
|
556
|
+
name
|
|
557
|
+
}
|
|
558
|
+
game {
|
|
559
|
+
...GameFragment
|
|
560
|
+
}
|
|
561
|
+
bet
|
|
562
|
+
payout
|
|
563
|
+
validBet
|
|
564
|
+
dateTimeSettled
|
|
565
|
+
dateTimeCreated
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
${_}
|
|
570
|
+
`, Ke = o`
|
|
571
|
+
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
572
|
+
member {
|
|
573
|
+
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
574
|
+
edges {
|
|
575
|
+
cursor
|
|
576
|
+
node {
|
|
577
|
+
... on TransactionRecord {
|
|
578
|
+
id
|
|
579
|
+
type
|
|
580
|
+
amount
|
|
581
|
+
content
|
|
582
|
+
currentBalance
|
|
583
|
+
referenceNumber
|
|
584
|
+
dateTimeCreated
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
totalCount
|
|
589
|
+
pageInfo {
|
|
590
|
+
hasNextPage
|
|
591
|
+
endCursor
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
`, v = o`
|
|
597
|
+
${C}
|
|
598
|
+
|
|
599
|
+
fragment PromoFragment on Promo {
|
|
600
|
+
id
|
|
601
|
+
type
|
|
602
|
+
name
|
|
603
|
+
banner {
|
|
604
|
+
...FileFragment
|
|
605
|
+
}
|
|
606
|
+
status
|
|
607
|
+
description
|
|
608
|
+
maximumBonusAmount
|
|
609
|
+
minimumBonusAmount
|
|
610
|
+
activationStartDateTime
|
|
611
|
+
activationEndDateTime
|
|
612
|
+
dateTimeCreated
|
|
613
|
+
dateTimeLastUpdated
|
|
614
|
+
}
|
|
615
|
+
`, ze = o`
|
|
616
|
+
${v}
|
|
617
|
+
|
|
618
|
+
query Promos {
|
|
619
|
+
promos {
|
|
620
|
+
...PromoFragment
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
`, Je = o`
|
|
624
|
+
${v}
|
|
625
|
+
|
|
626
|
+
query AvailablePromos($filter: PromoFilterInput) {
|
|
627
|
+
availablePromos(filter: $filter) {
|
|
628
|
+
...PromoFragment
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
`, ge = o`
|
|
632
|
+
${C}
|
|
633
|
+
|
|
634
|
+
fragment CashbackFragment on Cashback {
|
|
635
|
+
id
|
|
636
|
+
name
|
|
637
|
+
banner {
|
|
638
|
+
...FileFragment
|
|
639
|
+
}
|
|
640
|
+
status
|
|
641
|
+
description
|
|
642
|
+
activationStartDateTime
|
|
643
|
+
activationEndDateTime
|
|
644
|
+
dateTimeCreated
|
|
645
|
+
dateTimeLastUpdated
|
|
646
|
+
}
|
|
647
|
+
`, Xe = o`
|
|
648
|
+
${ge}
|
|
649
|
+
|
|
650
|
+
query Cashbacks {
|
|
651
|
+
cashbacks {
|
|
652
|
+
...CashbackFragment
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
`, Ze = o`
|
|
656
|
+
${v}
|
|
657
|
+
|
|
658
|
+
query Bonus {
|
|
659
|
+
bonus {
|
|
660
|
+
id
|
|
661
|
+
promo {
|
|
662
|
+
...PromoFragment
|
|
663
|
+
}
|
|
664
|
+
deposit {
|
|
464
665
|
type
|
|
465
666
|
amount
|
|
466
667
|
netAmount
|
|
@@ -470,21 +671,45 @@ const Ee = i`
|
|
|
470
671
|
dateTimeCreated
|
|
471
672
|
dateTimeLastUpdated
|
|
472
673
|
}
|
|
674
|
+
amount
|
|
675
|
+
balance
|
|
676
|
+
turnoverRequirement
|
|
677
|
+
currentTurnoverRequirementContribution
|
|
678
|
+
currentTurnoverRequirementContributionPercentage
|
|
679
|
+
expiration
|
|
680
|
+
dateTimeCreated
|
|
681
|
+
dateTimeLastUpdated
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
`, et = o`
|
|
685
|
+
${ge}
|
|
686
|
+
|
|
687
|
+
query CashbackBonuses {
|
|
688
|
+
cashbackBonuses {
|
|
689
|
+
id
|
|
690
|
+
balance
|
|
691
|
+
cashback {
|
|
692
|
+
...CashbackFragment
|
|
693
|
+
}
|
|
694
|
+
dateTimeCreated
|
|
695
|
+
dateTimeLastUpdated
|
|
473
696
|
}
|
|
474
697
|
}
|
|
475
|
-
`,
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
698
|
+
`, tt = o`
|
|
699
|
+
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
700
|
+
claimCashbackBonus(input: $input) {
|
|
701
|
+
... on CashbackBonusDoesNotExistError {
|
|
702
|
+
__typename
|
|
703
|
+
}
|
|
479
704
|
}
|
|
480
705
|
}
|
|
481
|
-
`,
|
|
706
|
+
`, at = o`
|
|
482
707
|
query Member {
|
|
483
708
|
member {
|
|
484
709
|
dateTimeLastActive
|
|
485
710
|
}
|
|
486
711
|
}
|
|
487
|
-
`,
|
|
712
|
+
`, rt = o`
|
|
488
713
|
query MemberAccount {
|
|
489
714
|
memberAccount: self {
|
|
490
715
|
... on MemberAccount {
|
|
@@ -508,8 +733,8 @@ const Ee = i`
|
|
|
508
733
|
}
|
|
509
734
|
}
|
|
510
735
|
}
|
|
511
|
-
`,
|
|
512
|
-
${
|
|
736
|
+
`, nt = o`
|
|
737
|
+
${C}
|
|
513
738
|
|
|
514
739
|
query MemberVerification {
|
|
515
740
|
memberAccount: self {
|
|
@@ -532,7 +757,7 @@ const Ee = i`
|
|
|
532
757
|
}
|
|
533
758
|
}
|
|
534
759
|
}
|
|
535
|
-
`,
|
|
760
|
+
`, ot = o`
|
|
536
761
|
mutation RegisterMemberAccount(
|
|
537
762
|
$input: RegisterMemberAccountInput!
|
|
538
763
|
$referralCode: String
|
|
@@ -568,7 +793,7 @@ const Ee = i`
|
|
|
568
793
|
}
|
|
569
794
|
}
|
|
570
795
|
}
|
|
571
|
-
`,
|
|
796
|
+
`, it = o`
|
|
572
797
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
573
798
|
updateMemberAccount(input: $input) {
|
|
574
799
|
... on AccountNameNotAvailableError {
|
|
@@ -594,7 +819,7 @@ const Ee = i`
|
|
|
594
819
|
}
|
|
595
820
|
}
|
|
596
821
|
}
|
|
597
|
-
`,
|
|
822
|
+
`, st = o`
|
|
598
823
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
599
824
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
600
825
|
... on AccountNotFoundError {
|
|
@@ -605,22 +830,11 @@ const Ee = i`
|
|
|
605
830
|
}
|
|
606
831
|
}
|
|
607
832
|
}
|
|
608
|
-
`,
|
|
833
|
+
`, mt = o`
|
|
609
834
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
610
835
|
deleteMemberAccount(input: $input)
|
|
611
836
|
}
|
|
612
|
-
`,
|
|
613
|
-
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
614
|
-
sendVerificationCode(input: $input) {
|
|
615
|
-
... on InvalidPlatformError {
|
|
616
|
-
__typename
|
|
617
|
-
}
|
|
618
|
-
... on NotReadyToSendVerficationCodeError {
|
|
619
|
-
__typename
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
`, Je = i`
|
|
837
|
+
`, dt = o`
|
|
624
838
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
625
839
|
verifyMobileNumber(input: $input) {
|
|
626
840
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -631,7 +845,7 @@ const Ee = i`
|
|
|
631
845
|
}
|
|
632
846
|
}
|
|
633
847
|
}
|
|
634
|
-
`,
|
|
848
|
+
`, ct = o`
|
|
635
849
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
636
850
|
createMemberVerification(input: $input) {
|
|
637
851
|
... on FileDoesNotExistError {
|
|
@@ -645,7 +859,7 @@ const Ee = i`
|
|
|
645
859
|
}
|
|
646
860
|
}
|
|
647
861
|
}
|
|
648
|
-
`,
|
|
862
|
+
`, ut = o`
|
|
649
863
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
650
864
|
updateMemberVerification(input: $input) {
|
|
651
865
|
... on FileDoesNotExistError {
|
|
@@ -662,7 +876,7 @@ const Ee = i`
|
|
|
662
876
|
}
|
|
663
877
|
}
|
|
664
878
|
}
|
|
665
|
-
`,
|
|
879
|
+
`, lt = o`
|
|
666
880
|
query ProfileCompletion {
|
|
667
881
|
profileCompletion {
|
|
668
882
|
completionPercentage
|
|
@@ -673,7 +887,18 @@ const Ee = i`
|
|
|
673
887
|
accountPassword
|
|
674
888
|
}
|
|
675
889
|
}
|
|
676
|
-
`,
|
|
890
|
+
`, pt = o`
|
|
891
|
+
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
892
|
+
sendVerificationCode(input: $input) {
|
|
893
|
+
... on InvalidPlatformError {
|
|
894
|
+
__typename
|
|
895
|
+
}
|
|
896
|
+
... on NotReadyToSendVerficationCodeError {
|
|
897
|
+
__typename
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
`, ht = o`
|
|
677
902
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
678
903
|
minimumAmount
|
|
679
904
|
maximumAmount
|
|
@@ -727,24 +952,7 @@ const Ee = i`
|
|
|
727
952
|
multiplier
|
|
728
953
|
}
|
|
729
954
|
}
|
|
730
|
-
`,
|
|
731
|
-
query PointsWallet {
|
|
732
|
-
pointsWallet {
|
|
733
|
-
id
|
|
734
|
-
points
|
|
735
|
-
account
|
|
736
|
-
dateTimeCreated
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
`, rt = i`
|
|
740
|
-
mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
|
|
741
|
-
pointsToCashConversion(input: $input) {
|
|
742
|
-
... on InsufficientPointsError {
|
|
743
|
-
__typename
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
`, nt = i`
|
|
955
|
+
`, ft = o`
|
|
748
956
|
query MayaSession($id: ObjectId!) {
|
|
749
957
|
mayaSession(id: $id) {
|
|
750
958
|
id
|
|
@@ -752,202 +960,6 @@ const Ee = i`
|
|
|
752
960
|
dateTimeCreated
|
|
753
961
|
}
|
|
754
962
|
}
|
|
755
|
-
`, ot = i`
|
|
756
|
-
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
757
|
-
member {
|
|
758
|
-
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
759
|
-
edges {
|
|
760
|
-
cursor
|
|
761
|
-
node {
|
|
762
|
-
... on TransactionRecord {
|
|
763
|
-
id
|
|
764
|
-
type
|
|
765
|
-
amount
|
|
766
|
-
content
|
|
767
|
-
currentBalance
|
|
768
|
-
referenceNumber
|
|
769
|
-
dateTimeCreated
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
totalCount
|
|
774
|
-
pageInfo {
|
|
775
|
-
hasNextPage
|
|
776
|
-
endCursor
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
`, it = i`
|
|
782
|
-
query Wallet {
|
|
783
|
-
wallet {
|
|
784
|
-
id
|
|
785
|
-
balance
|
|
786
|
-
currency
|
|
787
|
-
dateTimeCreated
|
|
788
|
-
dateTimeLastUpdated
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
`, st = i`
|
|
792
|
-
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
793
|
-
member {
|
|
794
|
-
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
795
|
-
edges {
|
|
796
|
-
cursor
|
|
797
|
-
node {
|
|
798
|
-
... on BankWithdrawalRecord {
|
|
799
|
-
id
|
|
800
|
-
type
|
|
801
|
-
bank
|
|
802
|
-
fee
|
|
803
|
-
netAmount
|
|
804
|
-
reference
|
|
805
|
-
amount
|
|
806
|
-
status
|
|
807
|
-
withdrawalNumber
|
|
808
|
-
dateTimeCreated
|
|
809
|
-
dateTimeLastUpdated
|
|
810
|
-
}
|
|
811
|
-
... on GCashWithdrawalRecord {
|
|
812
|
-
id
|
|
813
|
-
type
|
|
814
|
-
fee
|
|
815
|
-
netAmount
|
|
816
|
-
reference
|
|
817
|
-
amount
|
|
818
|
-
status
|
|
819
|
-
withdrawalNumber
|
|
820
|
-
recipientMobileNumber
|
|
821
|
-
dateTimeCreated
|
|
822
|
-
dateTimeLastUpdated
|
|
823
|
-
}
|
|
824
|
-
... on ManualWithdrawalRecord {
|
|
825
|
-
id
|
|
826
|
-
type
|
|
827
|
-
fee
|
|
828
|
-
netAmount
|
|
829
|
-
reference
|
|
830
|
-
amount
|
|
831
|
-
status
|
|
832
|
-
withdrawalNumber
|
|
833
|
-
dateTimeCreated
|
|
834
|
-
dateTimeLastUpdated
|
|
835
|
-
}
|
|
836
|
-
... on MayaAppWithdrawalRecord {
|
|
837
|
-
id
|
|
838
|
-
type
|
|
839
|
-
fee
|
|
840
|
-
netAmount
|
|
841
|
-
reference
|
|
842
|
-
amount
|
|
843
|
-
status
|
|
844
|
-
withdrawalNumber
|
|
845
|
-
dateTimeCreated
|
|
846
|
-
dateTimeLastUpdated
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
totalCount
|
|
851
|
-
pageInfo {
|
|
852
|
-
hasNextPage
|
|
853
|
-
endCursor
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
`, dt = i`
|
|
859
|
-
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
860
|
-
createGCashWithdrawal(input: $input) {
|
|
861
|
-
... on AccountNotVerifiedError {
|
|
862
|
-
__typename
|
|
863
|
-
}
|
|
864
|
-
... on InvalidTransactionPasswordError {
|
|
865
|
-
__typename
|
|
866
|
-
}
|
|
867
|
-
... on InvalidWithdrawalAmountError {
|
|
868
|
-
__typename
|
|
869
|
-
}
|
|
870
|
-
... on MobileNumberNotVerifiedError {
|
|
871
|
-
__typename
|
|
872
|
-
}
|
|
873
|
-
... on NotEnoughBalanceError {
|
|
874
|
-
__typename
|
|
875
|
-
}
|
|
876
|
-
... on WithdrawalDailyLimitExceededError {
|
|
877
|
-
__typename
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
`, mt = i`
|
|
882
|
-
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
883
|
-
createMayaWithdrawal(input: $input) {
|
|
884
|
-
... on AccountNotVerifiedError {
|
|
885
|
-
__typename
|
|
886
|
-
}
|
|
887
|
-
... on InvalidTransactionPasswordError {
|
|
888
|
-
__typename
|
|
889
|
-
}
|
|
890
|
-
... on InvalidWithdrawalAmountError {
|
|
891
|
-
__typename
|
|
892
|
-
}
|
|
893
|
-
... on MobileNumberNotVerifiedError {
|
|
894
|
-
__typename
|
|
895
|
-
}
|
|
896
|
-
... on NotEnoughBalanceError {
|
|
897
|
-
__typename
|
|
898
|
-
}
|
|
899
|
-
... on WithdrawalDailyLimitExceededError {
|
|
900
|
-
__typename
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
`, ct = i`
|
|
905
|
-
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
906
|
-
createMayaAppWithdrawal(input: $input) {
|
|
907
|
-
... on AccountNotVerifiedError {
|
|
908
|
-
__typename
|
|
909
|
-
}
|
|
910
|
-
... on InvalidTransactionPasswordError {
|
|
911
|
-
__typename
|
|
912
|
-
}
|
|
913
|
-
... on InvalidWithdrawalAmountError {
|
|
914
|
-
__typename
|
|
915
|
-
}
|
|
916
|
-
... on NotEnoughBalanceError {
|
|
917
|
-
__typename
|
|
918
|
-
}
|
|
919
|
-
... on WithdrawalDailyLimitExceededError {
|
|
920
|
-
__typename
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
`, ut = i`
|
|
925
|
-
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
926
|
-
createBankWithdrawal(input: $input) {
|
|
927
|
-
... on MobileNumberNotVerifiedError {
|
|
928
|
-
__typename
|
|
929
|
-
}
|
|
930
|
-
... on AccountNotVerifiedError {
|
|
931
|
-
__typename
|
|
932
|
-
}
|
|
933
|
-
... on InvalidWithdrawalAmountError {
|
|
934
|
-
__typename
|
|
935
|
-
}
|
|
936
|
-
... on WithdrawalDailyLimitExceededError {
|
|
937
|
-
__typename
|
|
938
|
-
}
|
|
939
|
-
... on InvalidTransactionPasswordError {
|
|
940
|
-
__typename
|
|
941
|
-
}
|
|
942
|
-
... on NotEnoughBalanceError {
|
|
943
|
-
__typename
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
`, lt = i`
|
|
948
|
-
query RemainingDailyWithdrawalsCount {
|
|
949
|
-
remainingDailyWithdrawalsCount
|
|
950
|
-
}
|
|
951
963
|
`;
|
|
952
964
|
function c(n) {
|
|
953
965
|
return {
|
|
@@ -992,6 +1004,9 @@ function c(n) {
|
|
|
992
1004
|
ValidIdAlreadySetError: "Valid ID is already set",
|
|
993
1005
|
WalletDoesNotExistError: "Wallet does not exist",
|
|
994
1006
|
WithdrawalDailyLimitExceededError: "Daily withdrawal limit exceeded",
|
|
1007
|
+
GameProviderError: "Game provider error",
|
|
1008
|
+
GameSessionAlreadyClosedError: "Game session is already closed",
|
|
1009
|
+
GameSessionDoesNotExistError: "Game session does not exist",
|
|
995
1010
|
AccountBlacklisted: "Account is blacklisted",
|
|
996
1011
|
AccountNotFound: "Account not found",
|
|
997
1012
|
InvalidToken: "Invalid token",
|
|
@@ -1000,21 +1015,21 @@ function c(n) {
|
|
|
1000
1015
|
}[n]
|
|
1001
1016
|
};
|
|
1002
1017
|
}
|
|
1003
|
-
class
|
|
1018
|
+
class wt {
|
|
1004
1019
|
constructor(e) {
|
|
1005
|
-
|
|
1020
|
+
d(this, "client");
|
|
1006
1021
|
this.client = e;
|
|
1007
1022
|
}
|
|
1008
1023
|
/** aka `Query.self` */
|
|
1009
1024
|
async memberAccount() {
|
|
1010
|
-
const e = await this.client.request(
|
|
1025
|
+
const e = await this.client.request(rt);
|
|
1011
1026
|
return e.ok ? {
|
|
1012
1027
|
ok: !0,
|
|
1013
1028
|
data: e.data.memberAccount
|
|
1014
1029
|
} : e;
|
|
1015
1030
|
}
|
|
1016
1031
|
async registerMemberAccount(e) {
|
|
1017
|
-
const t = await this.client.request(
|
|
1032
|
+
const t = await this.client.request(ot, e);
|
|
1018
1033
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1019
1034
|
ok: !1,
|
|
1020
1035
|
error: c(t.data.registerMemberAccount.__typename)
|
|
@@ -1023,7 +1038,7 @@ class pt {
|
|
|
1023
1038
|
} : t;
|
|
1024
1039
|
}
|
|
1025
1040
|
async updateMemberAccount(e) {
|
|
1026
|
-
const t = await this.client.request(
|
|
1041
|
+
const t = await this.client.request(it, e);
|
|
1027
1042
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1028
1043
|
ok: !1,
|
|
1029
1044
|
error: c(t.data.updateMemberAccount.__typename)
|
|
@@ -1032,7 +1047,7 @@ class pt {
|
|
|
1032
1047
|
} : t;
|
|
1033
1048
|
}
|
|
1034
1049
|
async deleteMemberAccount(e) {
|
|
1035
|
-
const t = await this.client.request(
|
|
1050
|
+
const t = await this.client.request(mt, e);
|
|
1036
1051
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1037
1052
|
ok: !0
|
|
1038
1053
|
} : {
|
|
@@ -1045,7 +1060,7 @@ class pt {
|
|
|
1045
1060
|
}
|
|
1046
1061
|
async resetPassword(e) {
|
|
1047
1062
|
const t = await this.client.request(
|
|
1048
|
-
|
|
1063
|
+
st,
|
|
1049
1064
|
e
|
|
1050
1065
|
);
|
|
1051
1066
|
return t.ok ? t.data.resetPassword ? {
|
|
@@ -1056,14 +1071,14 @@ class pt {
|
|
|
1056
1071
|
} : t;
|
|
1057
1072
|
}
|
|
1058
1073
|
async profileCompletion() {
|
|
1059
|
-
const e = await this.client.request(
|
|
1074
|
+
const e = await this.client.request(lt);
|
|
1060
1075
|
return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
|
|
1061
1076
|
}
|
|
1062
1077
|
async platform() {
|
|
1063
|
-
return await this.client.request(
|
|
1078
|
+
return await this.client.request(ht);
|
|
1064
1079
|
}
|
|
1065
1080
|
async sendVerificationCode(e) {
|
|
1066
|
-
const t = await this.client.request(
|
|
1081
|
+
const t = await this.client.request(pt, e);
|
|
1067
1082
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1068
1083
|
ok: !1,
|
|
1069
1084
|
error: c(t.data.sendVerificationCode.__typename)
|
|
@@ -1072,7 +1087,7 @@ class pt {
|
|
|
1072
1087
|
} : t;
|
|
1073
1088
|
}
|
|
1074
1089
|
async verifyMobileNumber(e) {
|
|
1075
|
-
const t = await this.client.request(
|
|
1090
|
+
const t = await this.client.request(dt, e);
|
|
1076
1091
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1077
1092
|
ok: !1,
|
|
1078
1093
|
error: c(t.data.verifyMobileNumber.__typename)
|
|
@@ -1081,7 +1096,7 @@ class pt {
|
|
|
1081
1096
|
} : t;
|
|
1082
1097
|
}
|
|
1083
1098
|
async createMemberVerification(e) {
|
|
1084
|
-
const t = await this.client.request(
|
|
1099
|
+
const t = await this.client.request(ct, e);
|
|
1085
1100
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1086
1101
|
ok: !1,
|
|
1087
1102
|
error: c(t.data.createMemberVerification.__typename)
|
|
@@ -1090,7 +1105,7 @@ class pt {
|
|
|
1090
1105
|
} : t;
|
|
1091
1106
|
}
|
|
1092
1107
|
async updateMemberVerification(e) {
|
|
1093
|
-
const t = await this.client.request(
|
|
1108
|
+
const t = await this.client.request(ut, e);
|
|
1094
1109
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1095
1110
|
ok: !1,
|
|
1096
1111
|
error: c(t.data.updateMemberVerification.__typename)
|
|
@@ -1099,7 +1114,7 @@ class pt {
|
|
|
1099
1114
|
} : t;
|
|
1100
1115
|
}
|
|
1101
1116
|
async memberVerification() {
|
|
1102
|
-
const e = await this.client.request(
|
|
1117
|
+
const e = await this.client.request(nt);
|
|
1103
1118
|
return e.ok ? {
|
|
1104
1119
|
ok: !0,
|
|
1105
1120
|
data: e.data.memberAccount.verification
|
|
@@ -1107,7 +1122,7 @@ class pt {
|
|
|
1107
1122
|
}
|
|
1108
1123
|
async announcements(e) {
|
|
1109
1124
|
const t = await this.client.request(
|
|
1110
|
-
|
|
1125
|
+
Pe,
|
|
1111
1126
|
e
|
|
1112
1127
|
);
|
|
1113
1128
|
return t.ok ? {
|
|
@@ -1116,14 +1131,14 @@ class pt {
|
|
|
1116
1131
|
} : t;
|
|
1117
1132
|
}
|
|
1118
1133
|
}
|
|
1119
|
-
function
|
|
1120
|
-
const t =
|
|
1134
|
+
function p(n, e) {
|
|
1135
|
+
const t = T[n] ? T[n] : T[500];
|
|
1121
1136
|
return {
|
|
1122
1137
|
name: t.name,
|
|
1123
1138
|
message: e ?? t.message
|
|
1124
1139
|
};
|
|
1125
1140
|
}
|
|
1126
|
-
const
|
|
1141
|
+
const T = {
|
|
1127
1142
|
400: { name: "HttpBadRequest", message: "Bad Request" },
|
|
1128
1143
|
401: { name: "HttpUnauthorized", message: "Unauthorized" },
|
|
1129
1144
|
403: { name: "HttpForbidden", message: "Forbidden" },
|
|
@@ -1132,10 +1147,10 @@ const _ = {
|
|
|
1132
1147
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1133
1148
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1134
1149
|
};
|
|
1135
|
-
class
|
|
1150
|
+
class yt {
|
|
1136
1151
|
constructor(e) {
|
|
1137
|
-
|
|
1138
|
-
|
|
1152
|
+
d(this, "url");
|
|
1153
|
+
d(this, "platform");
|
|
1139
1154
|
this.url = e.url, this.platform = e.platform;
|
|
1140
1155
|
}
|
|
1141
1156
|
async createSession(e) {
|
|
@@ -1144,22 +1159,15 @@ class ft {
|
|
|
1144
1159
|
"Platform-Code": this.platform,
|
|
1145
1160
|
Role: "MEMBER"
|
|
1146
1161
|
});
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
const a = `${e.mobileNumber}:${e.verificationCode}`, r = Buffer.from(a).toString("base64");
|
|
1155
|
-
t.set("Authorization", `MobileNumberOTP ${r}`);
|
|
1156
|
-
break;
|
|
1157
|
-
}
|
|
1158
|
-
case "MAYA": {
|
|
1159
|
-
t.set("Authorization", `Maya ${e.sessionId}`);
|
|
1160
|
-
break;
|
|
1161
|
-
}
|
|
1162
|
+
if (e.name) {
|
|
1163
|
+
const a = `${e.name}:${e.password}`, r = Buffer.from(a).toString("base64");
|
|
1164
|
+
t.set("Authorization", `Basic ${r}`);
|
|
1165
|
+
}
|
|
1166
|
+
if (e.mobileNumber) {
|
|
1167
|
+
const a = `${e.mobileNumber}:${e.verificationCode}`, r = Buffer.from(a).toString("base64");
|
|
1168
|
+
t.set("Authorization", `MobileNumberOTP ${r}`);
|
|
1162
1169
|
}
|
|
1170
|
+
e.sessionId && t.set("Authorization", `Maya ${e.sessionId}`);
|
|
1163
1171
|
try {
|
|
1164
1172
|
const a = await fetch(`${this.url}/sessions`, {
|
|
1165
1173
|
method: "POST",
|
|
@@ -1173,12 +1181,12 @@ class ft {
|
|
|
1173
1181
|
error: c("AccountBlacklisted")
|
|
1174
1182
|
} : {
|
|
1175
1183
|
ok: !1,
|
|
1176
|
-
error:
|
|
1184
|
+
error: p(a.status)
|
|
1177
1185
|
};
|
|
1178
1186
|
} catch {
|
|
1179
1187
|
return {
|
|
1180
1188
|
ok: !1,
|
|
1181
|
-
error:
|
|
1189
|
+
error: p(500)
|
|
1182
1190
|
};
|
|
1183
1191
|
}
|
|
1184
1192
|
}
|
|
@@ -1206,12 +1214,12 @@ class ft {
|
|
|
1206
1214
|
error: c("InvalidTokenOrSecretAnswer")
|
|
1207
1215
|
} : {
|
|
1208
1216
|
ok: !1,
|
|
1209
|
-
error:
|
|
1217
|
+
error: p(a.status)
|
|
1210
1218
|
};
|
|
1211
1219
|
} catch {
|
|
1212
1220
|
return {
|
|
1213
1221
|
ok: !1,
|
|
1214
|
-
error:
|
|
1222
|
+
error: p(500)
|
|
1215
1223
|
};
|
|
1216
1224
|
}
|
|
1217
1225
|
}
|
|
@@ -1239,12 +1247,12 @@ class ft {
|
|
|
1239
1247
|
error: c("InvalidToken")
|
|
1240
1248
|
} : {
|
|
1241
1249
|
ok: !1,
|
|
1242
|
-
error:
|
|
1250
|
+
error: p(t.status)
|
|
1243
1251
|
};
|
|
1244
1252
|
} catch {
|
|
1245
1253
|
return {
|
|
1246
1254
|
ok: !1,
|
|
1247
|
-
error:
|
|
1255
|
+
error: p(500)
|
|
1248
1256
|
};
|
|
1249
1257
|
}
|
|
1250
1258
|
}
|
|
@@ -1259,9 +1267,9 @@ class ft {
|
|
|
1259
1267
|
Authorization: `Bearer ${e}`
|
|
1260
1268
|
}
|
|
1261
1269
|
});
|
|
1262
|
-
return t.ok ? { ok: !0 } : { ok: !1, error:
|
|
1270
|
+
return t.ok ? { ok: !0 } : { ok: !1, error: p(t.status) };
|
|
1263
1271
|
} catch {
|
|
1264
|
-
return { ok: !1, error:
|
|
1272
|
+
return { ok: !1, error: p(500) };
|
|
1265
1273
|
}
|
|
1266
1274
|
}
|
|
1267
1275
|
async verifySession(e) {
|
|
@@ -1280,20 +1288,20 @@ class ft {
|
|
|
1280
1288
|
}
|
|
1281
1289
|
}
|
|
1282
1290
|
}
|
|
1283
|
-
class
|
|
1291
|
+
class bt {
|
|
1284
1292
|
constructor(e) {
|
|
1285
|
-
|
|
1293
|
+
d(this, "client");
|
|
1286
1294
|
this.client = e;
|
|
1287
1295
|
}
|
|
1288
1296
|
async file(e) {
|
|
1289
|
-
const t = await this.client.request(
|
|
1297
|
+
const t = await this.client.request(_e, e);
|
|
1290
1298
|
return t.ok ? {
|
|
1291
1299
|
ok: !0,
|
|
1292
1300
|
data: t.data.node
|
|
1293
1301
|
} : t;
|
|
1294
1302
|
}
|
|
1295
1303
|
async uploadPrivateImageFile(e) {
|
|
1296
|
-
const t = await this.client.upload(
|
|
1304
|
+
const t = await this.client.upload(Te, e);
|
|
1297
1305
|
return t.ok ? t.data.uploadPrivateImageFile ? {
|
|
1298
1306
|
ok: !1,
|
|
1299
1307
|
error: c(t.data.uploadPrivateImageFile.__typename)
|
|
@@ -1302,100 +1310,48 @@ class ht {
|
|
|
1302
1310
|
} : t;
|
|
1303
1311
|
}
|
|
1304
1312
|
}
|
|
1305
|
-
class
|
|
1306
|
-
constructor(e) {
|
|
1307
|
-
m(this, "client");
|
|
1308
|
-
this.client = e;
|
|
1309
|
-
}
|
|
1310
|
-
async game(e) {
|
|
1311
|
-
const t = await this.client.request(Ae, e);
|
|
1312
|
-
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1313
|
-
}
|
|
1314
|
-
async games(e) {
|
|
1315
|
-
const t = await this.client.request(Se, e);
|
|
1316
|
-
return t.ok ? { ok: !0, data: t.data.games } : t;
|
|
1317
|
-
}
|
|
1318
|
-
async gamesByName(e) {
|
|
1319
|
-
const t = await this.client.request(
|
|
1320
|
-
ke,
|
|
1321
|
-
e
|
|
1322
|
-
);
|
|
1323
|
-
return t.ok ? { ok: !0, data: t.data.gamesByName } : t;
|
|
1324
|
-
}
|
|
1325
|
-
async gameSession(e) {
|
|
1326
|
-
const t = await this.client.request(
|
|
1327
|
-
Ce,
|
|
1328
|
-
e
|
|
1329
|
-
);
|
|
1330
|
-
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1331
|
-
}
|
|
1332
|
-
async createGameSession(e) {
|
|
1333
|
-
const t = await this.client.request(Te, e);
|
|
1334
|
-
return t.ok ? t.data.createGameSession ? {
|
|
1335
|
-
ok: !1,
|
|
1336
|
-
error: c(t.data.createGameSession.__typename)
|
|
1337
|
-
} : {
|
|
1338
|
-
ok: !0
|
|
1339
|
-
} : t;
|
|
1340
|
-
}
|
|
1341
|
-
async endGameSession(e) {
|
|
1342
|
-
const t = await this.client.request(
|
|
1343
|
-
_e,
|
|
1344
|
-
e
|
|
1345
|
-
);
|
|
1346
|
-
return t.ok ? t.data.endGameSession ? {
|
|
1347
|
-
ok: !0
|
|
1348
|
-
} : {
|
|
1349
|
-
ok: !1,
|
|
1350
|
-
error: {
|
|
1351
|
-
name: "UnknownError",
|
|
1352
|
-
message: "Something went wrong."
|
|
1353
|
-
}
|
|
1354
|
-
} : t;
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
class wt {
|
|
1313
|
+
class gt {
|
|
1358
1314
|
constructor(e) {
|
|
1359
|
-
|
|
1315
|
+
d(this, "client");
|
|
1360
1316
|
this.client = e;
|
|
1361
1317
|
}
|
|
1362
1318
|
async betRecords(e) {
|
|
1363
1319
|
const t = await this.client.request(
|
|
1364
|
-
|
|
1320
|
+
je,
|
|
1365
1321
|
e
|
|
1366
1322
|
);
|
|
1367
1323
|
return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
|
|
1368
1324
|
}
|
|
1369
1325
|
async transactionRecords(e) {
|
|
1370
|
-
const t = await this.client.request(
|
|
1326
|
+
const t = await this.client.request(Ke, e);
|
|
1371
1327
|
return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
|
|
1372
1328
|
}
|
|
1373
1329
|
async withdrawalRecords(e) {
|
|
1374
1330
|
const t = await this.client.request(
|
|
1375
|
-
|
|
1331
|
+
xe,
|
|
1376
1332
|
e
|
|
1377
1333
|
);
|
|
1378
1334
|
return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
|
|
1379
1335
|
}
|
|
1380
1336
|
async depositRecords(e) {
|
|
1381
1337
|
const t = await this.client.request(
|
|
1382
|
-
|
|
1338
|
+
qe,
|
|
1383
1339
|
e
|
|
1384
1340
|
);
|
|
1385
1341
|
return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
|
|
1386
1342
|
}
|
|
1387
1343
|
async depositsCount() {
|
|
1388
|
-
const e = await this.client.request(
|
|
1344
|
+
const e = await this.client.request(He);
|
|
1389
1345
|
return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
|
|
1390
1346
|
}
|
|
1391
1347
|
async member() {
|
|
1392
|
-
const e = await this.client.request(
|
|
1348
|
+
const e = await this.client.request(at);
|
|
1393
1349
|
return e.ok ? { ok: e.ok, data: e.data.member } : e;
|
|
1394
1350
|
}
|
|
1395
1351
|
}
|
|
1396
|
-
class
|
|
1352
|
+
class Et {
|
|
1397
1353
|
constructor(e) {
|
|
1398
|
-
|
|
1354
|
+
d(this, "url");
|
|
1399
1355
|
this.url = e.url;
|
|
1400
1356
|
}
|
|
1401
1357
|
gameThumbnails(e) {
|
|
@@ -1405,28 +1361,32 @@ class yt {
|
|
|
1405
1361
|
];
|
|
1406
1362
|
}
|
|
1407
1363
|
}
|
|
1408
|
-
class
|
|
1364
|
+
class Ee {
|
|
1365
|
+
constructor(e) {
|
|
1366
|
+
d(this, "client");
|
|
1367
|
+
this.client = e;
|
|
1368
|
+
}
|
|
1409
1369
|
async promos() {
|
|
1410
|
-
const e = await this.client.request(
|
|
1370
|
+
const e = await this.client.request(ze);
|
|
1411
1371
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
1412
1372
|
}
|
|
1413
1373
|
async cashbacks() {
|
|
1414
|
-
const e = await this.client.request(
|
|
1374
|
+
const e = await this.client.request(Xe);
|
|
1415
1375
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
1416
1376
|
}
|
|
1417
1377
|
async availablePromos(e) {
|
|
1418
1378
|
const t = await this.client.request(
|
|
1419
|
-
|
|
1379
|
+
Je,
|
|
1420
1380
|
e
|
|
1421
1381
|
);
|
|
1422
1382
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
1423
1383
|
}
|
|
1424
1384
|
async cashbackBonuses() {
|
|
1425
|
-
const e = await this.client.request(
|
|
1385
|
+
const e = await this.client.request(et);
|
|
1426
1386
|
return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
|
|
1427
1387
|
}
|
|
1428
1388
|
async claimCashbackBonus(e) {
|
|
1429
|
-
const t = await this.client.request(
|
|
1389
|
+
const t = await this.client.request(tt, e);
|
|
1430
1390
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
1431
1391
|
ok: !1,
|
|
1432
1392
|
error: c(t.data.claimCashbackBonus.__typename)
|
|
@@ -1438,22 +1398,22 @@ class bt extends we {
|
|
|
1438
1398
|
};
|
|
1439
1399
|
}
|
|
1440
1400
|
async bonus() {
|
|
1441
|
-
const e = await this.client.request(
|
|
1401
|
+
const e = await this.client.request(Ze);
|
|
1442
1402
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
1443
1403
|
}
|
|
1444
1404
|
async wallet() {
|
|
1445
|
-
const e = await this.client.request(
|
|
1405
|
+
const e = await this.client.request(ve);
|
|
1446
1406
|
return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
|
|
1447
1407
|
}
|
|
1448
1408
|
async deposit(e) {
|
|
1449
1409
|
const t = await this.client.request(
|
|
1450
|
-
|
|
1410
|
+
Ye,
|
|
1451
1411
|
e
|
|
1452
1412
|
);
|
|
1453
1413
|
return t.ok ? { ok: t.ok, data: t.data.node } : t;
|
|
1454
1414
|
}
|
|
1455
1415
|
async createGCashDeposit(e) {
|
|
1456
|
-
const t = await this.client.request(
|
|
1416
|
+
const t = await this.client.request(Fe, e);
|
|
1457
1417
|
return t.ok ? t.data.createGCashDeposit ? {
|
|
1458
1418
|
ok: !1,
|
|
1459
1419
|
error: c(t.data.createGCashDeposit.__typename)
|
|
@@ -1462,7 +1422,7 @@ class bt extends we {
|
|
|
1462
1422
|
} : t;
|
|
1463
1423
|
}
|
|
1464
1424
|
async createMayaDeposit(e) {
|
|
1465
|
-
const t = await this.client.request(
|
|
1425
|
+
const t = await this.client.request(Le, e);
|
|
1466
1426
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
1467
1427
|
ok: !1,
|
|
1468
1428
|
error: c(t.data.createMayaDeposit.__typename)
|
|
@@ -1471,7 +1431,7 @@ class bt extends we {
|
|
|
1471
1431
|
} : t;
|
|
1472
1432
|
}
|
|
1473
1433
|
async createMayaAppDeposit(e) {
|
|
1474
|
-
const t = await this.client.request(
|
|
1434
|
+
const t = await this.client.request(Ve, e);
|
|
1475
1435
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
1476
1436
|
ok: !1,
|
|
1477
1437
|
error: c(t.data.createMayaAppDeposit.__typename)
|
|
@@ -1480,7 +1440,7 @@ class bt extends we {
|
|
|
1480
1440
|
} : t;
|
|
1481
1441
|
}
|
|
1482
1442
|
async createGCashWithdrawal(e) {
|
|
1483
|
-
const t = await this.client.request(
|
|
1443
|
+
const t = await this.client.request($e, e);
|
|
1484
1444
|
return t.ok ? t.data.createGCashWithdrawal ? {
|
|
1485
1445
|
ok: !1,
|
|
1486
1446
|
error: c(t.data.createGCashWithdrawal.__typename)
|
|
@@ -1489,7 +1449,7 @@ class bt extends we {
|
|
|
1489
1449
|
} : t;
|
|
1490
1450
|
}
|
|
1491
1451
|
async createMayaWithdrawal(e) {
|
|
1492
|
-
const t = await this.client.request(
|
|
1452
|
+
const t = await this.client.request(Be, e);
|
|
1493
1453
|
return t.ok ? t.data.createMayaWithdrawal ? {
|
|
1494
1454
|
ok: !1,
|
|
1495
1455
|
error: c(t.data.createMayaWithdrawal.__typename)
|
|
@@ -1498,7 +1458,7 @@ class bt extends we {
|
|
|
1498
1458
|
} : t;
|
|
1499
1459
|
}
|
|
1500
1460
|
async createMayaAppWithdrawal(e) {
|
|
1501
|
-
const t = await this.client.request(
|
|
1461
|
+
const t = await this.client.request(We, e);
|
|
1502
1462
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1503
1463
|
ok: !1,
|
|
1504
1464
|
error: c(t.data.createMayaAppWithdrawal.__typename)
|
|
@@ -1507,7 +1467,7 @@ class bt extends we {
|
|
|
1507
1467
|
} : t;
|
|
1508
1468
|
}
|
|
1509
1469
|
async createBankWithdrawal(e) {
|
|
1510
|
-
const t = await this.client.request(
|
|
1470
|
+
const t = await this.client.request(Ue, e);
|
|
1511
1471
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
1512
1472
|
ok: !1,
|
|
1513
1473
|
error: c(t.data.createBankWithdrawal.__typename)
|
|
@@ -1517,16 +1477,16 @@ class bt extends we {
|
|
|
1517
1477
|
}
|
|
1518
1478
|
async remainingDailyWithdrawalsCount() {
|
|
1519
1479
|
const e = await this.client.request(
|
|
1520
|
-
|
|
1480
|
+
Oe
|
|
1521
1481
|
);
|
|
1522
1482
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
1523
1483
|
}
|
|
1524
1484
|
async pointsWallet() {
|
|
1525
|
-
const e = await this.client.request(
|
|
1485
|
+
const e = await this.client.request(Me);
|
|
1526
1486
|
return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
|
|
1527
1487
|
}
|
|
1528
1488
|
async pointsToCashConversion(e) {
|
|
1529
|
-
const t = await this.client.request(
|
|
1489
|
+
const t = await this.client.request(Ne, e);
|
|
1530
1490
|
return t.ok ? t.data.pointsToCashConversion ? {
|
|
1531
1491
|
ok: !1,
|
|
1532
1492
|
error: c(t.data.pointsToCashConversion.__typename)
|
|
@@ -1536,49 +1496,136 @@ class bt extends we {
|
|
|
1536
1496
|
}
|
|
1537
1497
|
async mayaSession(e) {
|
|
1538
1498
|
const t = await this.client.request(
|
|
1539
|
-
|
|
1499
|
+
ft,
|
|
1540
1500
|
e
|
|
1541
1501
|
);
|
|
1542
1502
|
return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
|
|
1543
1503
|
}
|
|
1504
|
+
async games(e) {
|
|
1505
|
+
const t = await this.client.request(we, e);
|
|
1506
|
+
return t.ok ? { ok: t.ok, data: t.data.games } : t;
|
|
1507
|
+
}
|
|
1508
|
+
async gamesByName(e) {
|
|
1509
|
+
const t = await this.client.request(
|
|
1510
|
+
ye,
|
|
1511
|
+
e
|
|
1512
|
+
);
|
|
1513
|
+
return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
|
|
1514
|
+
}
|
|
1515
|
+
async gameSession(e) {
|
|
1516
|
+
const t = await this.client.request(
|
|
1517
|
+
De,
|
|
1518
|
+
e
|
|
1519
|
+
);
|
|
1520
|
+
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1521
|
+
}
|
|
1522
|
+
async createGameSession(e) {
|
|
1523
|
+
const t = await this.client.request(be, e);
|
|
1524
|
+
return t.ok ? t.data.createGameSession ? {
|
|
1525
|
+
ok: !1,
|
|
1526
|
+
error: c(t.data.createGameSession.__typename)
|
|
1527
|
+
} : {
|
|
1528
|
+
ok: !0
|
|
1529
|
+
} : t;
|
|
1530
|
+
}
|
|
1531
|
+
async endGameSession(e) {
|
|
1532
|
+
const t = await this.client.request(
|
|
1533
|
+
Ie,
|
|
1534
|
+
e
|
|
1535
|
+
);
|
|
1536
|
+
return t.ok ? t.data.endGameSession ? {
|
|
1537
|
+
ok: !0
|
|
1538
|
+
} : {
|
|
1539
|
+
ok: !1,
|
|
1540
|
+
error: {
|
|
1541
|
+
name: "UnknownError",
|
|
1542
|
+
message: "Something went wrong."
|
|
1543
|
+
}
|
|
1544
|
+
} : t;
|
|
1545
|
+
}
|
|
1544
1546
|
}
|
|
1545
|
-
class
|
|
1547
|
+
class At {
|
|
1548
|
+
constructor(e) {
|
|
1549
|
+
d(this, "client");
|
|
1550
|
+
this.client = e;
|
|
1551
|
+
}
|
|
1552
|
+
async games(e) {
|
|
1553
|
+
const t = await this.client.request(we, e);
|
|
1554
|
+
return t.ok ? { ok: t.ok, data: t.data.games } : t;
|
|
1555
|
+
}
|
|
1556
|
+
async gamesByName(e) {
|
|
1557
|
+
const t = await this.client.request(
|
|
1558
|
+
ye,
|
|
1559
|
+
e
|
|
1560
|
+
);
|
|
1561
|
+
return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
|
|
1562
|
+
}
|
|
1563
|
+
async gameSession(e) {
|
|
1564
|
+
const t = await this.client.request(
|
|
1565
|
+
Re,
|
|
1566
|
+
e
|
|
1567
|
+
);
|
|
1568
|
+
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1569
|
+
}
|
|
1570
|
+
async createGameSession(e) {
|
|
1571
|
+
const t = await this.client.request(be, e);
|
|
1572
|
+
return t.ok ? t.data.createGameSession ? {
|
|
1573
|
+
ok: !1,
|
|
1574
|
+
error: c(t.data.createGameSession.__typename)
|
|
1575
|
+
} : {
|
|
1576
|
+
ok: !0
|
|
1577
|
+
} : t;
|
|
1578
|
+
}
|
|
1579
|
+
async endGameSession(e) {
|
|
1580
|
+
const t = await this.client.request(Ge, e);
|
|
1581
|
+
return t.ok ? t.data.endGameSession ? {
|
|
1582
|
+
ok: !1,
|
|
1583
|
+
error: c(t.data.endGameSession.__typename)
|
|
1584
|
+
} : {
|
|
1585
|
+
ok: !0
|
|
1586
|
+
} : t;
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
class St {
|
|
1546
1590
|
constructor(e) {
|
|
1547
|
-
|
|
1591
|
+
d(this, "client");
|
|
1548
1592
|
this.client = e;
|
|
1549
1593
|
}
|
|
1550
1594
|
async latestBetRecords() {
|
|
1551
|
-
const e = await this.client.request(
|
|
1595
|
+
const e = await this.client.request(Qe);
|
|
1552
1596
|
return e.ok ? {
|
|
1553
1597
|
ok: !0,
|
|
1554
1598
|
data: e.data.latestBetRecords
|
|
1555
1599
|
} : e;
|
|
1556
1600
|
}
|
|
1557
1601
|
}
|
|
1558
|
-
function
|
|
1602
|
+
function kt(n, e, t) {
|
|
1603
|
+
return n < e ? e : n > t ? t : n;
|
|
1604
|
+
}
|
|
1605
|
+
function Ct(n) {
|
|
1559
1606
|
return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
|
|
1560
1607
|
}
|
|
1561
|
-
function
|
|
1608
|
+
function _t(n) {
|
|
1562
1609
|
const e = [];
|
|
1563
1610
|
function t(a, r = []) {
|
|
1564
1611
|
for (const s in a) {
|
|
1565
|
-
const
|
|
1566
|
-
|
|
1612
|
+
const m = a[s];
|
|
1613
|
+
Ct(m) ? t(m, [...r, s]) : Array.isArray(m) ? t(Tt(m), [...r, s]) : e.push({
|
|
1567
1614
|
key: [...r, s],
|
|
1568
|
-
value:
|
|
1615
|
+
value: m
|
|
1569
1616
|
});
|
|
1570
1617
|
}
|
|
1571
1618
|
}
|
|
1572
1619
|
return t(n), e;
|
|
1573
1620
|
}
|
|
1574
|
-
function
|
|
1621
|
+
function Tt(n) {
|
|
1575
1622
|
return n.reduce((e, t, a) => (e[a] = t, e), {});
|
|
1576
1623
|
}
|
|
1577
|
-
class
|
|
1624
|
+
class E {
|
|
1578
1625
|
constructor(e, t) {
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1626
|
+
d(this, "url");
|
|
1627
|
+
d(this, "options");
|
|
1628
|
+
d(this, "middlewares");
|
|
1582
1629
|
var r;
|
|
1583
1630
|
const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
|
|
1584
1631
|
this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
|
|
@@ -1611,23 +1658,23 @@ class b {
|
|
|
1611
1658
|
return await this.exec(s);
|
|
1612
1659
|
}
|
|
1613
1660
|
async exec(e) {
|
|
1614
|
-
var t, a, r, s,
|
|
1661
|
+
var t, a, r, s, m, u;
|
|
1615
1662
|
try {
|
|
1616
|
-
const
|
|
1617
|
-
if (!
|
|
1618
|
-
return { ok: !1, error:
|
|
1619
|
-
const
|
|
1620
|
-
return
|
|
1663
|
+
const h = await fetch(e);
|
|
1664
|
+
if (!h.ok)
|
|
1665
|
+
return { ok: !1, error: p(h.status) };
|
|
1666
|
+
const l = await h.json(), y = l.data, f = (t = l.errors) == null ? void 0 : t.at(0);
|
|
1667
|
+
return f ? ((a = f.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = f.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: p(403, f.message) } : ((s = f.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: p(401, f.message) } : ((m = f.extensions) == null ? void 0 : m.code) === "BAD_USER_INPUT" || ((u = f.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: p(400, f.message) } : {
|
|
1621
1668
|
ok: !1,
|
|
1622
|
-
error:
|
|
1669
|
+
error: p(500, f.message)
|
|
1623
1670
|
} : {
|
|
1624
1671
|
ok: !0,
|
|
1625
|
-
data:
|
|
1672
|
+
data: y
|
|
1626
1673
|
};
|
|
1627
1674
|
} catch {
|
|
1628
1675
|
return {
|
|
1629
1676
|
ok: !1,
|
|
1630
|
-
error:
|
|
1677
|
+
error: p(500)
|
|
1631
1678
|
};
|
|
1632
1679
|
}
|
|
1633
1680
|
}
|
|
@@ -1638,8 +1685,8 @@ class b {
|
|
|
1638
1685
|
return t;
|
|
1639
1686
|
}
|
|
1640
1687
|
createUploadBody(e, t) {
|
|
1641
|
-
const a =
|
|
1642
|
-
(
|
|
1688
|
+
const a = _t(t).filter(
|
|
1689
|
+
(m) => m.value instanceof File || m.value instanceof Blob
|
|
1643
1690
|
), r = new FormData();
|
|
1644
1691
|
r.append(
|
|
1645
1692
|
"operations",
|
|
@@ -1649,20 +1696,20 @@ class b {
|
|
|
1649
1696
|
})
|
|
1650
1697
|
);
|
|
1651
1698
|
const s = {};
|
|
1652
|
-
return a.forEach((
|
|
1653
|
-
s[
|
|
1654
|
-
}), r.append("map", JSON.stringify(s)), a.forEach((
|
|
1655
|
-
r.append(
|
|
1699
|
+
return a.forEach((m, u) => {
|
|
1700
|
+
s[u.toString()] = [`variables.${m.key.join(".")}`];
|
|
1701
|
+
}), r.append("map", JSON.stringify(s)), a.forEach((m, u) => {
|
|
1702
|
+
r.append(u.toString(), m.value);
|
|
1656
1703
|
}), r;
|
|
1657
1704
|
}
|
|
1658
1705
|
}
|
|
1659
|
-
async function
|
|
1706
|
+
async function w(n) {
|
|
1660
1707
|
const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
|
|
1661
1708
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
1662
1709
|
}
|
|
1663
|
-
class
|
|
1710
|
+
class Ae {
|
|
1664
1711
|
constructor(e) {
|
|
1665
|
-
|
|
1712
|
+
d(this, "enabled");
|
|
1666
1713
|
this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
|
|
1667
1714
|
}
|
|
1668
1715
|
info(e) {
|
|
@@ -1681,33 +1728,56 @@ class ye {
|
|
|
1681
1728
|
function M(n) {
|
|
1682
1729
|
return new Date(n.getTime());
|
|
1683
1730
|
}
|
|
1684
|
-
function
|
|
1731
|
+
function A(n, e) {
|
|
1685
1732
|
const t = M(n);
|
|
1686
1733
|
return t.setDate(t.getDate() + e), t;
|
|
1687
1734
|
}
|
|
1688
|
-
function
|
|
1735
|
+
function S(n, e) {
|
|
1689
1736
|
const t = M(n);
|
|
1690
1737
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
1691
1738
|
}
|
|
1692
|
-
function
|
|
1739
|
+
function he(n, e) {
|
|
1693
1740
|
return n.getTime() > e.getTime();
|
|
1694
1741
|
}
|
|
1695
|
-
function
|
|
1742
|
+
function Se(n) {
|
|
1696
1743
|
return new Promise((e) => {
|
|
1697
1744
|
setTimeout(e, n);
|
|
1698
1745
|
});
|
|
1699
1746
|
}
|
|
1700
|
-
function
|
|
1747
|
+
function fe(n, e) {
|
|
1748
|
+
const {
|
|
1749
|
+
until: t,
|
|
1750
|
+
interval: a = 1e3,
|
|
1751
|
+
maxAttempt: r = 3
|
|
1752
|
+
/**/
|
|
1753
|
+
} = e;
|
|
1754
|
+
async function s(m, u) {
|
|
1755
|
+
const h = u ?? r, l = await n(...m);
|
|
1756
|
+
return t(l) ? l : h > 1 ? (await Se(a * ((r - h) / 2)), s(m, h - 1)) : l;
|
|
1757
|
+
}
|
|
1758
|
+
return async (...m) => await s(m);
|
|
1759
|
+
}
|
|
1760
|
+
function k(n, e) {
|
|
1701
1761
|
const t = M(n);
|
|
1702
1762
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
1703
1763
|
}
|
|
1704
|
-
class
|
|
1764
|
+
class vt {
|
|
1705
1765
|
constructor(e) {
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
this
|
|
1766
|
+
d(this, "logger");
|
|
1767
|
+
d(this, "storageKey", "session");
|
|
1768
|
+
d(this, "authService");
|
|
1769
|
+
d(this, "walletService");
|
|
1770
|
+
d(this, "_refreshing", !1);
|
|
1771
|
+
this.authService = new yt({
|
|
1772
|
+
url: e.authUrl,
|
|
1773
|
+
platform: e.platform
|
|
1774
|
+
}), this.walletService = new Ee(
|
|
1775
|
+
new E(e.walletUrl, {
|
|
1776
|
+
middlewares: [
|
|
1777
|
+
(t) => (t.headers.set("Platform", e.platform), t.headers.set("Role", "MEMBER"), t)
|
|
1778
|
+
]
|
|
1779
|
+
})
|
|
1780
|
+
), this.logger = new Ae({
|
|
1711
1781
|
enabled: e.log ?? !1
|
|
1712
1782
|
});
|
|
1713
1783
|
}
|
|
@@ -1727,23 +1797,33 @@ class Ct {
|
|
|
1727
1797
|
}
|
|
1728
1798
|
};
|
|
1729
1799
|
if (e.type === "MAYA") {
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
return
|
|
1800
|
+
const s = await fe(() => this.walletService.mayaSession({ id: e.sessionId }), {
|
|
1801
|
+
until: (l) => {
|
|
1802
|
+
var y;
|
|
1803
|
+
return l.ok && ((y = l.data) == null ? void 0 : y.member) != null;
|
|
1804
|
+
},
|
|
1805
|
+
interval: 1e3,
|
|
1806
|
+
maxAttempt: 5
|
|
1807
|
+
})();
|
|
1808
|
+
if (!s.ok) return s;
|
|
1809
|
+
const u = await fe(() => this.authService.createSession(e), {
|
|
1810
|
+
until: (l) => l.ok,
|
|
1811
|
+
interval: 1e3,
|
|
1812
|
+
maxAttempt: 5
|
|
1813
|
+
})();
|
|
1814
|
+
if (!u.ok) return u;
|
|
1815
|
+
const h = /* @__PURE__ */ new Date();
|
|
1816
|
+
return window.localStorage.setItem(
|
|
1817
|
+
this.storageKey,
|
|
1818
|
+
JSON.stringify({
|
|
1819
|
+
...u.data,
|
|
1820
|
+
accessTokenExpiresAt: S(h, 8).getTime(),
|
|
1821
|
+
refreshTokenExpiresAt: k(A(h, 30), 2).getTime()
|
|
1822
|
+
})
|
|
1823
|
+
), {
|
|
1824
|
+
ok: !0,
|
|
1825
|
+
data: null
|
|
1826
|
+
};
|
|
1747
1827
|
}
|
|
1748
1828
|
if (e.type === "MOBILE_NUMBER") {
|
|
1749
1829
|
const r = await this.authService.createSession(e);
|
|
@@ -1753,8 +1833,8 @@ class Ct {
|
|
|
1753
1833
|
this.storageKey,
|
|
1754
1834
|
JSON.stringify({
|
|
1755
1835
|
...r.data,
|
|
1756
|
-
accessTokenExpiresAt:
|
|
1757
|
-
refreshTokenExpiresAt:
|
|
1836
|
+
accessTokenExpiresAt: S(s, 8).getTime(),
|
|
1837
|
+
refreshTokenExpiresAt: k(A(s, 30), 2).getTime()
|
|
1758
1838
|
})
|
|
1759
1839
|
), {
|
|
1760
1840
|
ok: !0,
|
|
@@ -1777,8 +1857,8 @@ class Ct {
|
|
|
1777
1857
|
this.storageKey,
|
|
1778
1858
|
JSON.stringify({
|
|
1779
1859
|
...t.data,
|
|
1780
|
-
accessTokenExpiresAt:
|
|
1781
|
-
refreshTokenExpiresAt:
|
|
1860
|
+
accessTokenExpiresAt: S(a, 8).getTime(),
|
|
1861
|
+
refreshTokenExpiresAt: k(A(a, 30), 2).getTime()
|
|
1782
1862
|
})
|
|
1783
1863
|
), {
|
|
1784
1864
|
ok: !0,
|
|
@@ -1793,8 +1873,8 @@ class Ct {
|
|
|
1793
1873
|
this.storageKey,
|
|
1794
1874
|
JSON.stringify({
|
|
1795
1875
|
...t.data,
|
|
1796
|
-
accessTokenExpiresAt:
|
|
1797
|
-
refreshTokenExpiresAt:
|
|
1876
|
+
accessTokenExpiresAt: S(a, 8).getTime(),
|
|
1877
|
+
refreshTokenExpiresAt: k(A(a, 30), 2).getTime()
|
|
1798
1878
|
})
|
|
1799
1879
|
), { ok: !0 };
|
|
1800
1880
|
} else
|
|
@@ -1807,7 +1887,7 @@ class Ct {
|
|
|
1807
1887
|
data: null
|
|
1808
1888
|
};
|
|
1809
1889
|
if (this.refreshing)
|
|
1810
|
-
return await
|
|
1890
|
+
return await Se(1e3), await this.get();
|
|
1811
1891
|
const e = window.localStorage.getItem(this.storageKey);
|
|
1812
1892
|
if (!e)
|
|
1813
1893
|
return {
|
|
@@ -1817,7 +1897,7 @@ class Ct {
|
|
|
1817
1897
|
try {
|
|
1818
1898
|
let t = JSON.parse(e), a = /* @__PURE__ */ new Date();
|
|
1819
1899
|
const r = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
|
|
1820
|
-
if (
|
|
1900
|
+
if (he(a, s))
|
|
1821
1901
|
return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
|
|
1822
1902
|
ok: !1,
|
|
1823
1903
|
error: {
|
|
@@ -1825,22 +1905,22 @@ class Ct {
|
|
|
1825
1905
|
message: "Session expired."
|
|
1826
1906
|
}
|
|
1827
1907
|
};
|
|
1828
|
-
if (
|
|
1908
|
+
if (he(a, r)) {
|
|
1829
1909
|
this.logger.info("Refreshing session..."), this.refreshing = !0;
|
|
1830
|
-
const
|
|
1831
|
-
if (this.refreshing = !1, !
|
|
1832
|
-
return this.logger.error(`Failed to refresh session: ${
|
|
1910
|
+
const m = await this.authService.refreshSession(t.refreshToken);
|
|
1911
|
+
if (this.refreshing = !1, !m.ok)
|
|
1912
|
+
return this.logger.error(`Failed to refresh session: ${m.error.message}`), m.error.name === "InvalidToken" || m.error.name === "AccountBlacklisted" ? (window.localStorage.removeItem(this.storageKey), {
|
|
1833
1913
|
ok: !1,
|
|
1834
|
-
error:
|
|
1914
|
+
error: m.error
|
|
1835
1915
|
}) : (this.logger.warn("Old session returned."), {
|
|
1836
1916
|
ok: !0,
|
|
1837
1917
|
data: t
|
|
1838
1918
|
});
|
|
1839
1919
|
this.logger.success("Session refreshed!"), a = /* @__PURE__ */ new Date(), t = {
|
|
1840
1920
|
...t,
|
|
1841
|
-
...
|
|
1842
|
-
accessTokenExpiresAt:
|
|
1843
|
-
refreshTokenExpiresAt:
|
|
1921
|
+
...m.data,
|
|
1922
|
+
accessTokenExpiresAt: S(a, 8).getTime(),
|
|
1923
|
+
refreshTokenExpiresAt: k(A(a, 30), 2).getTime()
|
|
1844
1924
|
}, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
|
|
1845
1925
|
}
|
|
1846
1926
|
return {
|
|
@@ -1880,7 +1960,7 @@ class Ct {
|
|
|
1880
1960
|
return typeof window > "u";
|
|
1881
1961
|
}
|
|
1882
1962
|
}
|
|
1883
|
-
function
|
|
1963
|
+
function i(n, e) {
|
|
1884
1964
|
if (typeof n == "number" && !Number.isNaN(n))
|
|
1885
1965
|
return n;
|
|
1886
1966
|
if (typeof n == "string") {
|
|
@@ -1890,11 +1970,11 @@ function o(n, e) {
|
|
|
1890
1970
|
}
|
|
1891
1971
|
return e;
|
|
1892
1972
|
}
|
|
1893
|
-
class
|
|
1973
|
+
class Mt {
|
|
1894
1974
|
constructor(e) {
|
|
1895
|
-
|
|
1975
|
+
d(this, "staticService");
|
|
1896
1976
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
1897
|
-
this.staticService = new
|
|
1977
|
+
this.staticService = new Et({
|
|
1898
1978
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
1899
1979
|
});
|
|
1900
1980
|
}
|
|
@@ -1923,10 +2003,10 @@ class Tt {
|
|
|
1923
2003
|
};
|
|
1924
2004
|
}
|
|
1925
2005
|
platform(e) {
|
|
1926
|
-
var t, a, r, s,
|
|
2006
|
+
var t, a, r, s, m, u, h, l, y, f, N, D, I, R, G, P, x, $, B, W, U, O, q, F, L, V, Y, H, j, Q, K, z, J, X, Z, ee, te, ae, re, ne, oe, ie, se, me, de, ce, ue, le, pe;
|
|
1927
2007
|
return {
|
|
1928
2008
|
paymentSettings: {
|
|
1929
|
-
minimumFirstDepositAmount:
|
|
2009
|
+
minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
|
|
1930
2010
|
restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
|
|
1931
2011
|
depositGateway: {
|
|
1932
2012
|
bank: {
|
|
@@ -1934,32 +2014,32 @@ class Tt {
|
|
|
1934
2014
|
iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
|
|
1935
2015
|
webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
|
|
1936
2016
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
1937
|
-
minimumAmount:
|
|
1938
|
-
maximumAmount:
|
|
2017
|
+
minimumAmount: i((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
|
|
2018
|
+
maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
|
|
1939
2019
|
},
|
|
1940
2020
|
gcash: {
|
|
1941
|
-
androidEnabled: ((
|
|
1942
|
-
iosEnabled: ((
|
|
1943
|
-
webEnabled: ((
|
|
1944
|
-
mobileWebEnabled: ((
|
|
1945
|
-
minimumAmount:
|
|
1946
|
-
maximumAmount:
|
|
2021
|
+
androidEnabled: ((h = e.gcashDepositGatewaySettings) == null ? void 0 : h.androidEnabled) ?? !1,
|
|
2022
|
+
iosEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.iosEnabled) ?? !1,
|
|
2023
|
+
webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
|
|
2024
|
+
mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
|
|
2025
|
+
minimumAmount: i((N = e.gcashDepositGatewaySettings) == null ? void 0 : N.minimumAmount),
|
|
2026
|
+
maximumAmount: i((D = e.gcashDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
|
|
1947
2027
|
},
|
|
1948
2028
|
maya: {
|
|
1949
2029
|
androidEnabled: ((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.androidEnabled) ?? !1,
|
|
1950
2030
|
iosEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
|
|
1951
|
-
webEnabled: ((
|
|
1952
|
-
mobileWebEnabled: ((
|
|
1953
|
-
minimumAmount:
|
|
1954
|
-
maximumAmount:
|
|
2031
|
+
webEnabled: ((G = e.mayaDepositGatewaySettings) == null ? void 0 : G.webEnabled) ?? !1,
|
|
2032
|
+
mobileWebEnabled: ((P = e.mayaDepositGatewaySettings) == null ? void 0 : P.mobileWebEnabled) ?? !1,
|
|
2033
|
+
minimumAmount: i((x = e.mayaDepositGatewaySettings) == null ? void 0 : x.minimumAmount),
|
|
2034
|
+
maximumAmount: i(($ = e.mayaDepositGatewaySettings) == null ? void 0 : $.maximumAmount)
|
|
1955
2035
|
},
|
|
1956
2036
|
mayaApp: {
|
|
1957
2037
|
androidEnabled: ((B = e.mayaAppDepositGatewaySettings) == null ? void 0 : B.androidEnabled) ?? !1,
|
|
1958
2038
|
iosEnabled: ((W = e.mayaAppDepositGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
|
|
1959
2039
|
webEnabled: ((U = e.mayaAppDepositGatewaySettings) == null ? void 0 : U.webEnabled) ?? !1,
|
|
1960
2040
|
mobileWebEnabled: ((O = e.mayaAppDepositGatewaySettings) == null ? void 0 : O.mobileWebEnabled) ?? !1,
|
|
1961
|
-
minimumAmount:
|
|
1962
|
-
maximumAmount:
|
|
2041
|
+
minimumAmount: i((q = e.mayaAppDepositGatewaySettings) == null ? void 0 : q.minimumAmount),
|
|
2042
|
+
maximumAmount: i((F = e.mayaAppDepositGatewaySettings) == null ? void 0 : F.maximumAmount)
|
|
1963
2043
|
}
|
|
1964
2044
|
},
|
|
1965
2045
|
withdrawalGateway: {
|
|
@@ -1968,16 +2048,16 @@ class Tt {
|
|
|
1968
2048
|
iosEnabled: ((V = e.bankWithdrawalGatewaySettings) == null ? void 0 : V.iosEnabled) ?? !1,
|
|
1969
2049
|
webEnabled: ((Y = e.bankWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
|
|
1970
2050
|
mobileWebEnabled: ((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.mobileWebEnabled) ?? !1,
|
|
1971
|
-
minimumAmount:
|
|
1972
|
-
maximumAmount:
|
|
2051
|
+
minimumAmount: i((j = e.bankWithdrawalGatewaySettings) == null ? void 0 : j.minimumAmount),
|
|
2052
|
+
maximumAmount: i((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.maximumAmount)
|
|
1973
2053
|
},
|
|
1974
2054
|
gcash: {
|
|
1975
2055
|
androidEnabled: ((K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.androidEnabled) ?? !1,
|
|
1976
2056
|
iosEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.iosEnabled) ?? !1,
|
|
1977
2057
|
webEnabled: ((J = e.gcashWithdrawalGatewaySettings) == null ? void 0 : J.webEnabled) ?? !1,
|
|
1978
2058
|
mobileWebEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.mobileWebEnabled) ?? !1,
|
|
1979
|
-
minimumAmount:
|
|
1980
|
-
maximumAmount:
|
|
2059
|
+
minimumAmount: i((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.minimumAmount),
|
|
2060
|
+
maximumAmount: i(
|
|
1981
2061
|
(ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.maximumAmount,
|
|
1982
2062
|
1e6
|
|
1983
2063
|
)
|
|
@@ -1987,16 +2067,16 @@ class Tt {
|
|
|
1987
2067
|
iosEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.iosEnabled) ?? !1,
|
|
1988
2068
|
webEnabled: ((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.webEnabled) ?? !1,
|
|
1989
2069
|
mobileWebEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.mobileWebEnabled) ?? !1,
|
|
1990
|
-
minimumAmount:
|
|
1991
|
-
maximumAmount:
|
|
2070
|
+
minimumAmount: i((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.minimumAmount),
|
|
2071
|
+
maximumAmount: i((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.maximumAmount)
|
|
1992
2072
|
},
|
|
1993
2073
|
mayaApp: {
|
|
1994
2074
|
androidEnabled: ((se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.androidEnabled) ?? !1,
|
|
1995
|
-
iosEnabled: ((
|
|
1996
|
-
webEnabled: ((
|
|
2075
|
+
iosEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.iosEnabled) ?? !1,
|
|
2076
|
+
webEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
|
|
1997
2077
|
mobileWebEnabled: ((ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.mobileWebEnabled) ?? !1,
|
|
1998
|
-
minimumAmount:
|
|
1999
|
-
maximumAmount:
|
|
2078
|
+
minimumAmount: i((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.minimumAmount),
|
|
2079
|
+
maximumAmount: i(
|
|
2000
2080
|
(le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.maximumAmount,
|
|
2001
2081
|
1e6
|
|
2002
2082
|
)
|
|
@@ -2004,7 +2084,7 @@ class Tt {
|
|
|
2004
2084
|
}
|
|
2005
2085
|
},
|
|
2006
2086
|
pointsClubSettings: {
|
|
2007
|
-
multiplier:
|
|
2087
|
+
multiplier: i((pe = e.pointsClubSettings) == null ? void 0 : pe.multiplier, 0)
|
|
2008
2088
|
}
|
|
2009
2089
|
};
|
|
2010
2090
|
}
|
|
@@ -2021,7 +2101,7 @@ class Tt {
|
|
|
2021
2101
|
mobileNumber: e.mobileNumber ?? void 0,
|
|
2022
2102
|
mobileNumberVerified: e.mobileNumberVerified ?? !1,
|
|
2023
2103
|
mobileNumberVerificationRequired: e.mobileNumberVerificationRequired ?? !1,
|
|
2024
|
-
validId: e.validId
|
|
2104
|
+
validId: e.validId ? e.validId : void 0,
|
|
2025
2105
|
verificationStatus: e.verificationStatus,
|
|
2026
2106
|
transactionPassword: e.transactionPassword,
|
|
2027
2107
|
secretAnswerSubmitted: e.secretAnswerSubmitted ?? !1,
|
|
@@ -2033,7 +2113,7 @@ class Tt {
|
|
|
2033
2113
|
wallet(e) {
|
|
2034
2114
|
return {
|
|
2035
2115
|
...e,
|
|
2036
|
-
balance:
|
|
2116
|
+
balance: i(e.balance, 0),
|
|
2037
2117
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2038
2118
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2039
2119
|
};
|
|
@@ -2041,22 +2121,14 @@ class Tt {
|
|
|
2041
2121
|
verificationDetails(e) {
|
|
2042
2122
|
return {
|
|
2043
2123
|
...e,
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
url: e.idFrontImage.url ?? void 0,
|
|
2047
|
-
dateTimeCreated: new Date(e.idFrontImage.dateTimeCreated)
|
|
2048
|
-
},
|
|
2049
|
-
selfieImage: {
|
|
2050
|
-
...e.selfieImage,
|
|
2051
|
-
url: e.selfieImage.url ?? void 0,
|
|
2052
|
-
dateTimeCreated: new Date(e.selfieImage.dateTimeCreated)
|
|
2053
|
-
}
|
|
2124
|
+
selfieImage: this.file(e.selfieImage),
|
|
2125
|
+
idFrontImage: this.file(e.idFrontImage)
|
|
2054
2126
|
};
|
|
2055
2127
|
}
|
|
2056
2128
|
profileCompletion(e) {
|
|
2057
2129
|
return {
|
|
2058
2130
|
...e,
|
|
2059
|
-
completionPercentage:
|
|
2131
|
+
completionPercentage: i(e, 0)
|
|
2060
2132
|
};
|
|
2061
2133
|
}
|
|
2062
2134
|
announcement(e) {
|
|
@@ -2071,9 +2143,9 @@ class Tt {
|
|
|
2071
2143
|
withdrawalRecord(e) {
|
|
2072
2144
|
return {
|
|
2073
2145
|
...e,
|
|
2074
|
-
amount:
|
|
2075
|
-
netAmount:
|
|
2076
|
-
fee:
|
|
2146
|
+
amount: i(e.amount, 0),
|
|
2147
|
+
netAmount: i(e.netAmount, 0),
|
|
2148
|
+
fee: i(e.fee, 0),
|
|
2077
2149
|
reference: e.reference ?? void 0,
|
|
2078
2150
|
bank: e.bank ?? void 0,
|
|
2079
2151
|
recipientMobileNumber: e.recipientMobileNumber ?? void 0,
|
|
@@ -2084,22 +2156,18 @@ class Tt {
|
|
|
2084
2156
|
}
|
|
2085
2157
|
deposit(e) {
|
|
2086
2158
|
return {
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
reference: e.reference ?? void 0,
|
|
2092
|
-
checkoutUrl: e.checkoutUrl ?? void 0,
|
|
2093
|
-
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2094
|
-
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2159
|
+
id: e.id,
|
|
2160
|
+
type: e.type,
|
|
2161
|
+
status: e.status,
|
|
2162
|
+
checkoutUrl: e.checkoutUrl ?? void 0
|
|
2095
2163
|
};
|
|
2096
2164
|
}
|
|
2097
2165
|
depositRecord(e) {
|
|
2098
2166
|
return {
|
|
2099
2167
|
...e,
|
|
2100
|
-
amount:
|
|
2101
|
-
fee:
|
|
2102
|
-
netAmount:
|
|
2168
|
+
amount: i(e.amount, 0),
|
|
2169
|
+
fee: i(e.fee, 0),
|
|
2170
|
+
netAmount: i(e.netAmount, 0),
|
|
2103
2171
|
reference: e.reference ?? void 0,
|
|
2104
2172
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2105
2173
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
@@ -2109,12 +2177,12 @@ class Tt {
|
|
|
2109
2177
|
var t;
|
|
2110
2178
|
return {
|
|
2111
2179
|
...e,
|
|
2112
|
-
bet:
|
|
2113
|
-
payout:
|
|
2114
|
-
jackpotContribution:
|
|
2115
|
-
jackpotPayout:
|
|
2116
|
-
winloss:
|
|
2117
|
-
validBet:
|
|
2180
|
+
bet: i(e.bet, 0),
|
|
2181
|
+
payout: i(e.payout, 0),
|
|
2182
|
+
jackpotContribution: i(e.jackpotContribution, 0),
|
|
2183
|
+
jackpotPayout: i(e.jackpotPayout, 0),
|
|
2184
|
+
winloss: i(e.winloss),
|
|
2185
|
+
validBet: i(e.validBet, 0),
|
|
2118
2186
|
vendorRoundId: e.vendorRoundId ?? void 0,
|
|
2119
2187
|
game: this.game(e.game),
|
|
2120
2188
|
dateTimeSettled: e.dateTimeSettled ? new Date(e.dateTimeSettled) : void 0,
|
|
@@ -2132,9 +2200,9 @@ class Tt {
|
|
|
2132
2200
|
return {
|
|
2133
2201
|
...e,
|
|
2134
2202
|
game: this.game(e.game),
|
|
2135
|
-
bet:
|
|
2136
|
-
payout:
|
|
2137
|
-
validBet:
|
|
2203
|
+
bet: i(e.bet, 0),
|
|
2204
|
+
payout: i(e.payout, 0),
|
|
2205
|
+
validBet: i(e.validBet, 0),
|
|
2138
2206
|
dateTimeSettled: new Date(e.dateTimeSettled),
|
|
2139
2207
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2140
2208
|
};
|
|
@@ -2142,9 +2210,9 @@ class Tt {
|
|
|
2142
2210
|
transactionRecord(e) {
|
|
2143
2211
|
return {
|
|
2144
2212
|
...e,
|
|
2145
|
-
amount:
|
|
2213
|
+
amount: i(e.amount, 0),
|
|
2146
2214
|
content: e.content ?? void 0,
|
|
2147
|
-
currentBalance:
|
|
2215
|
+
currentBalance: i(e.currentBalance, 0),
|
|
2148
2216
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2149
2217
|
};
|
|
2150
2218
|
}
|
|
@@ -2165,12 +2233,9 @@ class Tt {
|
|
|
2165
2233
|
promo(e) {
|
|
2166
2234
|
return {
|
|
2167
2235
|
...e,
|
|
2168
|
-
banner:
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
},
|
|
2172
|
-
maximumBonusAmount: o(e.maximumBonusAmount),
|
|
2173
|
-
minimumBonusAmount: o(e.minimumBonusAmount),
|
|
2236
|
+
banner: this.file(e.banner),
|
|
2237
|
+
maximumBonusAmount: i(e.maximumBonusAmount),
|
|
2238
|
+
minimumBonusAmount: i(e.minimumBonusAmount),
|
|
2174
2239
|
activationEndDateTime: new Date(e.activationEndDateTime),
|
|
2175
2240
|
activationStartDateTime: new Date(e.activationStartDateTime),
|
|
2176
2241
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
@@ -2180,10 +2245,7 @@ class Tt {
|
|
|
2180
2245
|
cashback(e) {
|
|
2181
2246
|
return {
|
|
2182
2247
|
...e,
|
|
2183
|
-
banner:
|
|
2184
|
-
...e.banner,
|
|
2185
|
-
dateTimeCreated: new Date(e.banner.dateTimeCreated)
|
|
2186
|
-
},
|
|
2248
|
+
banner: this.file(e.banner),
|
|
2187
2249
|
activationEndDateTime: new Date(e.activationEndDateTime),
|
|
2188
2250
|
activationStartDateTime: new Date(e.activationStartDateTime),
|
|
2189
2251
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
@@ -2197,22 +2259,22 @@ class Tt {
|
|
|
2197
2259
|
/* deposit here does not have an id and depositNumber field */
|
|
2198
2260
|
deposit: e.deposit ? {
|
|
2199
2261
|
...e.deposit,
|
|
2200
|
-
fee:
|
|
2201
|
-
amount:
|
|
2202
|
-
netAmount:
|
|
2262
|
+
fee: i(e.deposit.fee, 0),
|
|
2263
|
+
amount: i(e.deposit.amount, 0),
|
|
2264
|
+
netAmount: i(e.deposit.netAmount, 0),
|
|
2203
2265
|
reference: e.deposit.reference ?? void 0,
|
|
2204
2266
|
dateTimeCreated: new Date(e.deposit.dateTimeCreated),
|
|
2205
2267
|
dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
|
|
2206
2268
|
} : void 0,
|
|
2207
|
-
balance:
|
|
2208
|
-
amount:
|
|
2269
|
+
balance: i(e.balance, 0),
|
|
2270
|
+
amount: i(e.amount, 0),
|
|
2209
2271
|
expiration: new Date(e.expiration),
|
|
2210
|
-
turnoverRequirement:
|
|
2211
|
-
currentTurnoverRequirementContribution:
|
|
2272
|
+
turnoverRequirement: i(e.turnoverRequirement, 0),
|
|
2273
|
+
currentTurnoverRequirementContribution: i(
|
|
2212
2274
|
e.currentTurnoverRequirementContribution,
|
|
2213
2275
|
0
|
|
2214
2276
|
),
|
|
2215
|
-
currentTurnoverRequirementContributionPercentage:
|
|
2277
|
+
currentTurnoverRequirementContributionPercentage: i(
|
|
2216
2278
|
e.currentTurnoverRequirementContributionPercentage,
|
|
2217
2279
|
0
|
|
2218
2280
|
),
|
|
@@ -2223,7 +2285,7 @@ class Tt {
|
|
|
2223
2285
|
cashbackBonus(e) {
|
|
2224
2286
|
return {
|
|
2225
2287
|
id: e.id,
|
|
2226
|
-
balance:
|
|
2288
|
+
balance: i(e.balance, 0),
|
|
2227
2289
|
cashback: this.cashback(e.cashback),
|
|
2228
2290
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2229
2291
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
@@ -2239,27 +2301,29 @@ class Tt {
|
|
|
2239
2301
|
pointsWallet(e) {
|
|
2240
2302
|
return {
|
|
2241
2303
|
id: e.id,
|
|
2242
|
-
points:
|
|
2304
|
+
points: i(e.points, 0),
|
|
2243
2305
|
account: e.account,
|
|
2244
2306
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2245
2307
|
};
|
|
2246
2308
|
}
|
|
2247
2309
|
}
|
|
2248
|
-
class
|
|
2310
|
+
class It {
|
|
2249
2311
|
constructor(e) {
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2312
|
+
d(this, "gameService");
|
|
2313
|
+
d(this, "fileService");
|
|
2314
|
+
d(this, "walletService");
|
|
2315
|
+
d(this, "reportService");
|
|
2316
|
+
d(this, "portalService");
|
|
2317
|
+
d(this, "accountService");
|
|
2318
|
+
d(this, "sessionManager");
|
|
2319
|
+
d(this, "transformer");
|
|
2320
|
+
d(this, "logger");
|
|
2259
2321
|
const t = e.environment === "development";
|
|
2260
|
-
this.sessionManager = new
|
|
2261
|
-
|
|
2262
|
-
|
|
2322
|
+
this.sessionManager = new vt({
|
|
2323
|
+
authUrl: t ? "https://auth.development.opexa.io" : "https://auth.opexa.io",
|
|
2324
|
+
walletUrl: t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
|
|
2325
|
+
platform: e.platform,
|
|
2326
|
+
log: e.log
|
|
2263
2327
|
});
|
|
2264
2328
|
const a = {
|
|
2265
2329
|
middlewares: [this.authMiddleware],
|
|
@@ -2270,37 +2334,37 @@ class Mt {
|
|
|
2270
2334
|
}
|
|
2271
2335
|
}
|
|
2272
2336
|
};
|
|
2273
|
-
this.gameService = new
|
|
2274
|
-
new
|
|
2337
|
+
this.gameService = new At(
|
|
2338
|
+
new E(
|
|
2275
2339
|
t ? "https://game.development.opexa.io/graphql" : "https://game.opexa.io/graphql",
|
|
2276
2340
|
a
|
|
2277
2341
|
)
|
|
2278
|
-
), this.fileService = new
|
|
2279
|
-
new
|
|
2342
|
+
), this.fileService = new bt(
|
|
2343
|
+
new E(
|
|
2280
2344
|
t ? "https://file.development.opexa.io/graphql" : "https://file.opexa.io/graphql",
|
|
2281
2345
|
a
|
|
2282
2346
|
)
|
|
2283
|
-
), this.walletService = new
|
|
2284
|
-
new
|
|
2347
|
+
), this.walletService = new Ee(
|
|
2348
|
+
new E(
|
|
2285
2349
|
t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
|
|
2286
2350
|
a
|
|
2287
2351
|
)
|
|
2288
|
-
), this.reportService = new
|
|
2289
|
-
new
|
|
2352
|
+
), this.reportService = new gt(
|
|
2353
|
+
new E(
|
|
2290
2354
|
t ? "https://report.development.opexa.io/graphql" : "https://report.opexa.io/graphql",
|
|
2291
2355
|
a
|
|
2292
2356
|
)
|
|
2293
|
-
), this.accountService = new
|
|
2294
|
-
new
|
|
2357
|
+
), this.accountService = new wt(
|
|
2358
|
+
new E(
|
|
2295
2359
|
t ? "https://account.development.opexa.io/graphql" : "https://account.opexa.io/graphql",
|
|
2296
2360
|
a
|
|
2297
2361
|
)
|
|
2298
|
-
), this.portalService = new
|
|
2299
|
-
new
|
|
2362
|
+
), this.portalService = new St(
|
|
2363
|
+
new E(
|
|
2300
2364
|
t ? "https://portal.development.opexa.io/graphql" : "https://portal.opexa.io/graphql",
|
|
2301
2365
|
a
|
|
2302
2366
|
)
|
|
2303
|
-
), this.transformer = new
|
|
2367
|
+
), this.transformer = new Mt(e), this.logger = new Ae({
|
|
2304
2368
|
enabled: e.log ?? !1
|
|
2305
2369
|
});
|
|
2306
2370
|
}
|
|
@@ -2316,7 +2380,7 @@ class Mt {
|
|
|
2316
2380
|
case "NAME_AND_PASSWORD": {
|
|
2317
2381
|
const t = await this.sessionManager.create({
|
|
2318
2382
|
...e,
|
|
2319
|
-
password: await
|
|
2383
|
+
password: await w(e.password)
|
|
2320
2384
|
});
|
|
2321
2385
|
return t.ok ? t.data ? {
|
|
2322
2386
|
ok: !0,
|
|
@@ -2376,7 +2440,7 @@ class Mt {
|
|
|
2376
2440
|
return await this.sessionManager.createFromAuthenticator({
|
|
2377
2441
|
type: "SECURITY_QUESTION",
|
|
2378
2442
|
token: e.token,
|
|
2379
|
-
secretAnswer: await
|
|
2443
|
+
secretAnswer: await w(e.secretAnswer)
|
|
2380
2444
|
});
|
|
2381
2445
|
default:
|
|
2382
2446
|
return {
|
|
@@ -2416,13 +2480,13 @@ class Mt {
|
|
|
2416
2480
|
* ```
|
|
2417
2481
|
*/
|
|
2418
2482
|
watchSession(e) {
|
|
2419
|
-
const t = e.interval ?? 3e4,
|
|
2420
|
-
let
|
|
2421
|
-
const
|
|
2422
|
-
await this.sessionManager.verify() || await
|
|
2483
|
+
const t = kt(e.interval ?? 3e4, 3e4, 6e4);
|
|
2484
|
+
let a = null;
|
|
2485
|
+
const r = () => setTimeout(async () => {
|
|
2486
|
+
await this.sessionManager.verify() || await e.onInvalid(), a = r();
|
|
2423
2487
|
}, t);
|
|
2424
|
-
return
|
|
2425
|
-
|
|
2488
|
+
return a = r(), function() {
|
|
2489
|
+
a && clearTimeout(a);
|
|
2426
2490
|
};
|
|
2427
2491
|
}
|
|
2428
2492
|
async session() {
|
|
@@ -2487,15 +2551,15 @@ class Mt {
|
|
|
2487
2551
|
* ```
|
|
2488
2552
|
*/
|
|
2489
2553
|
async createAccount(e) {
|
|
2490
|
-
const t = e.id ??
|
|
2554
|
+
const t = e.id ?? b.generate(g.Account).toString(), a = await this.accountService.registerMemberAccount({
|
|
2491
2555
|
input: {
|
|
2492
2556
|
id: t,
|
|
2493
2557
|
name: e.name,
|
|
2494
2558
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
|
|
2495
|
-
password: await
|
|
2559
|
+
password: await w(e.password),
|
|
2496
2560
|
mobileNumber: this.addAreaCode(e.mobileNumber),
|
|
2497
2561
|
domain: e.domain,
|
|
2498
|
-
btag: e.
|
|
2562
|
+
btag: e.referralCode
|
|
2499
2563
|
},
|
|
2500
2564
|
verificationCode: e.verificationCode,
|
|
2501
2565
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
@@ -2523,12 +2587,12 @@ class Mt {
|
|
|
2523
2587
|
id: e,
|
|
2524
2588
|
data: {
|
|
2525
2589
|
...t,
|
|
2526
|
-
password: t.password ? await
|
|
2527
|
-
transactionPassword: t.transactionPassword ? await
|
|
2590
|
+
password: t.password ? await w(t.password) : void 0,
|
|
2591
|
+
transactionPassword: t.transactionPassword ? await w(t.transactionPassword) : void 0,
|
|
2528
2592
|
...t.mobileNumber && {
|
|
2529
2593
|
mobileNumber: this.addAreaCode(t.mobileNumber)
|
|
2530
2594
|
},
|
|
2531
|
-
secretAnswer: t.secretAnswer ? await
|
|
2595
|
+
secretAnswer: t.secretAnswer ? await w(t.secretAnswer) : void 0
|
|
2532
2596
|
}
|
|
2533
2597
|
}
|
|
2534
2598
|
});
|
|
@@ -2569,7 +2633,7 @@ class Mt {
|
|
|
2569
2633
|
* ```
|
|
2570
2634
|
*/
|
|
2571
2635
|
async submitVerificationDetails(e) {
|
|
2572
|
-
const t = e.id ??
|
|
2636
|
+
const t = e.id ?? b.generate(g.Verification).toString(), a = await this.accountService.createMemberVerification({
|
|
2573
2637
|
input: {
|
|
2574
2638
|
id: t,
|
|
2575
2639
|
...e
|
|
@@ -2606,7 +2670,7 @@ class Mt {
|
|
|
2606
2670
|
return await this.accountService.resetPassword({
|
|
2607
2671
|
input: {
|
|
2608
2672
|
mobileNumber: this.addAreaCode(e.mobileNumber),
|
|
2609
|
-
newPassword: await
|
|
2673
|
+
newPassword: await w(e.newPassword)
|
|
2610
2674
|
},
|
|
2611
2675
|
verificationCode: e.verificationCode
|
|
2612
2676
|
});
|
|
@@ -2693,13 +2757,13 @@ class Mt {
|
|
|
2693
2757
|
* ```
|
|
2694
2758
|
*/
|
|
2695
2759
|
async createWithdrawal(e) {
|
|
2696
|
-
const t = e.id ??
|
|
2760
|
+
const t = e.id ?? b.generate(g.Withdrawal).toString();
|
|
2697
2761
|
if (e.type === "BANK") {
|
|
2698
2762
|
const a = await this.walletService.createBankWithdrawal({
|
|
2699
2763
|
input: {
|
|
2700
2764
|
id: t,
|
|
2701
2765
|
amount: e.amount.toString(),
|
|
2702
|
-
transactionPassword: await
|
|
2766
|
+
transactionPassword: await w(e.transactionPassword)
|
|
2703
2767
|
}
|
|
2704
2768
|
});
|
|
2705
2769
|
if (!a.ok) return a;
|
|
@@ -2709,7 +2773,7 @@ class Mt {
|
|
|
2709
2773
|
input: {
|
|
2710
2774
|
id: t,
|
|
2711
2775
|
amount: e.amount.toString(),
|
|
2712
|
-
transactionPassword: await
|
|
2776
|
+
transactionPassword: await w(e.transactionPassword),
|
|
2713
2777
|
recipientMobileNumber: this.addAreaCode(e.recipientMobileNumber)
|
|
2714
2778
|
}
|
|
2715
2779
|
});
|
|
@@ -2720,7 +2784,7 @@ class Mt {
|
|
|
2720
2784
|
input: {
|
|
2721
2785
|
id: t,
|
|
2722
2786
|
amount: e.amount.toString(),
|
|
2723
|
-
transactionPassword: await
|
|
2787
|
+
transactionPassword: await w(e.transactionPassword),
|
|
2724
2788
|
recipientMobileNumber: this.addAreaCode(e.recipientMobileNumber)
|
|
2725
2789
|
}
|
|
2726
2790
|
});
|
|
@@ -2731,7 +2795,7 @@ class Mt {
|
|
|
2731
2795
|
input: {
|
|
2732
2796
|
id: t,
|
|
2733
2797
|
amount: e.amount.toString(),
|
|
2734
|
-
transactionPassword: await
|
|
2798
|
+
transactionPassword: await w(e.transactionPassword)
|
|
2735
2799
|
}
|
|
2736
2800
|
});
|
|
2737
2801
|
if (!a.ok) return a;
|
|
@@ -2779,7 +2843,7 @@ class Mt {
|
|
|
2779
2843
|
* ```
|
|
2780
2844
|
*/
|
|
2781
2845
|
async createDeposit(e) {
|
|
2782
|
-
const t = e.id ??
|
|
2846
|
+
const t = e.id ?? b.generate(g.Deposit).toString();
|
|
2783
2847
|
if (e.type === "MAYA") {
|
|
2784
2848
|
const a = await this.walletService.createMayaDeposit({
|
|
2785
2849
|
input: {
|
|
@@ -2933,6 +2997,21 @@ class Mt {
|
|
|
2933
2997
|
* ========================================
|
|
2934
2998
|
*/
|
|
2935
2999
|
async games(e) {
|
|
3000
|
+
const t = await this.walletService.games(e);
|
|
3001
|
+
return t.ok ? {
|
|
3002
|
+
ok: !0,
|
|
3003
|
+
data: {
|
|
3004
|
+
games: t.data.edges.map(({ cursor: a, node: r }) => ({
|
|
3005
|
+
...this.transformer.transform.game(r),
|
|
3006
|
+
cursor: a
|
|
3007
|
+
})),
|
|
3008
|
+
totalCount: t.data.totalCount,
|
|
3009
|
+
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
3010
|
+
endCursor: t.data.pageInfo.endCursor ?? void 0
|
|
3011
|
+
}
|
|
3012
|
+
} : t;
|
|
3013
|
+
}
|
|
3014
|
+
async games__legacy(e) {
|
|
2936
3015
|
const t = await this.gameService.games(e);
|
|
2937
3016
|
return t.ok ? {
|
|
2938
3017
|
ok: !0,
|
|
@@ -2948,32 +3027,34 @@ class Mt {
|
|
|
2948
3027
|
} : t;
|
|
2949
3028
|
}
|
|
2950
3029
|
async gamesByName(e) {
|
|
2951
|
-
const t = await this.
|
|
3030
|
+
const t = await this.walletService.gamesByName(e);
|
|
2952
3031
|
return t.ok ? {
|
|
2953
3032
|
ok: !0,
|
|
2954
3033
|
data: t.data.map(this.transformer.transform.game)
|
|
2955
3034
|
} : t;
|
|
2956
3035
|
}
|
|
2957
|
-
async
|
|
2958
|
-
const t = await this.
|
|
3036
|
+
async gamesByName__legacy(e) {
|
|
3037
|
+
const t = await this.gameService.gamesByName(e);
|
|
2959
3038
|
return t.ok ? {
|
|
2960
3039
|
ok: !0,
|
|
2961
3040
|
data: t.data.map(this.transformer.transform.game)
|
|
2962
3041
|
} : t;
|
|
2963
3042
|
}
|
|
2964
|
-
async
|
|
2965
|
-
const t = await this.walletService.
|
|
3043
|
+
async gameSession(e) {
|
|
3044
|
+
const t = await this.walletService.gameSession({ id: e });
|
|
2966
3045
|
return t.ok ? {
|
|
2967
3046
|
ok: !0,
|
|
2968
|
-
data:
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
3047
|
+
data: t.data ? this.transformer.transform.gameSession(t.data) : null
|
|
3048
|
+
} : t;
|
|
3049
|
+
}
|
|
3050
|
+
async gameSession__legacy(e) {
|
|
3051
|
+
const t = await this.gameService.gameSession({ id: e });
|
|
3052
|
+
return t.ok ? {
|
|
3053
|
+
ok: !0,
|
|
3054
|
+
data: t.data ? this.transformer.transform.gameSession({
|
|
3055
|
+
...t.data,
|
|
3056
|
+
game: t.data.game.id
|
|
3057
|
+
}) : null
|
|
2977
3058
|
} : t;
|
|
2978
3059
|
}
|
|
2979
3060
|
/**
|
|
@@ -2992,7 +3073,7 @@ class Mt {
|
|
|
2992
3073
|
* ```
|
|
2993
3074
|
*/
|
|
2994
3075
|
async createGameSession(e) {
|
|
2995
|
-
const t = e.id ??
|
|
3076
|
+
const t = e.id ?? b.generate(g.GameSession).toString(), a = await this.walletService.createGameSession({
|
|
2996
3077
|
input: {
|
|
2997
3078
|
id: t,
|
|
2998
3079
|
game: e.game
|
|
@@ -3000,23 +3081,8 @@ class Mt {
|
|
|
3000
3081
|
});
|
|
3001
3082
|
return a.ok ? { ok: !0, data: { id: t } } : a;
|
|
3002
3083
|
}
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
* ```ts
|
|
3006
|
-
* const res = await sdk.createGameSession({
|
|
3007
|
-
* id: ObjectId.generate(ObjectType.GameSession).toString(),
|
|
3008
|
-
* game: game.id,
|
|
3009
|
-
* });
|
|
3010
|
-
*
|
|
3011
|
-
* if (!res.ok) {
|
|
3012
|
-
* window.alert(res.error.message);
|
|
3013
|
-
* } else {
|
|
3014
|
-
* // Do something
|
|
3015
|
-
* }
|
|
3016
|
-
* ```
|
|
3017
|
-
*/
|
|
3018
|
-
async createGameSession__next(e) {
|
|
3019
|
-
const t = e.id ?? h.generate(w.GameSession).toString(), a = await this.walletService.createGameSession({
|
|
3084
|
+
async createGameSession__legacy(e) {
|
|
3085
|
+
const t = e.id ?? b.generate(g.GameSession).toString(), a = await this.gameService.createGameSession({
|
|
3020
3086
|
input: {
|
|
3021
3087
|
id: t,
|
|
3022
3088
|
game: e.game
|
|
@@ -3024,26 +3090,12 @@ class Mt {
|
|
|
3024
3090
|
});
|
|
3025
3091
|
return a.ok ? { ok: !0, data: { id: t } } : a;
|
|
3026
3092
|
}
|
|
3027
|
-
async gameSession(e) {
|
|
3028
|
-
const t = await this.gameService.gameSession({ id: e });
|
|
3029
|
-
return t.ok ? {
|
|
3030
|
-
ok: !0,
|
|
3031
|
-
data: t.data ? this.transformer.transform.gameSession(t.data) : null
|
|
3032
|
-
} : t;
|
|
3033
|
-
}
|
|
3034
|
-
async gameSession__next(e) {
|
|
3035
|
-
const t = await this.walletService.gameSession({ id: e });
|
|
3036
|
-
return t.ok ? {
|
|
3037
|
-
ok: !0,
|
|
3038
|
-
data: t.data ? this.transformer.transform.gameSession(t.data) : null
|
|
3039
|
-
} : t;
|
|
3040
|
-
}
|
|
3041
3093
|
async endGameSession(e) {
|
|
3042
|
-
return await this.gameService.endGameSession({ input: { id: e } });
|
|
3043
|
-
}
|
|
3044
|
-
async endGameSession__next(e) {
|
|
3045
3094
|
return await this.walletService.endGameSession({ input: { id: e } });
|
|
3046
3095
|
}
|
|
3096
|
+
async endGameSession__legacy(e) {
|
|
3097
|
+
return await this.gameService.endGameSession({ input: { id: e } });
|
|
3098
|
+
}
|
|
3047
3099
|
/*
|
|
3048
3100
|
* ========================================
|
|
3049
3101
|
* File
|
|
@@ -3072,7 +3124,7 @@ class Mt {
|
|
|
3072
3124
|
* ```
|
|
3073
3125
|
*/
|
|
3074
3126
|
async uploadImageFile(e) {
|
|
3075
|
-
const t = e.id ??
|
|
3127
|
+
const t = e.id ?? b.generate(g.File).toString(), a = await this.fileService.uploadPrivateImageFile({
|
|
3076
3128
|
input: {
|
|
3077
3129
|
id: t,
|
|
3078
3130
|
file: e.file
|
|
@@ -3104,8 +3156,8 @@ class Mt {
|
|
|
3104
3156
|
}
|
|
3105
3157
|
}
|
|
3106
3158
|
export {
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3159
|
+
Pt as ObjectId,
|
|
3160
|
+
g as ObjectType,
|
|
3161
|
+
It as Sdk
|
|
3110
3162
|
};
|
|
3111
3163
|
//# sourceMappingURL=index.mjs.map
|