@opexa/portal-sdk 0.0.35 → 0.0.37
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 +35 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +140 -114
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -1
- package/dist/sdk/types.d.ts +22 -0
- package/dist/services/account.service.d.ts +2 -1
- package/dist/services/queries.d.ts +1 -0
- package/dist/services/types.d.ts +13 -0
- package/dist/services/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Te = (n, e, t) => e in n ?
|
|
1
|
+
var Ce = Object.defineProperty;
|
|
2
|
+
var Te = (n, e, t) => e in n ? Ce(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var d = (n, e, t) => Te(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ObjectId as b } from "@opexa/object-id";
|
|
5
|
-
import { ObjectId as
|
|
5
|
+
import { ObjectId as Ot } from "@opexa/object-id";
|
|
6
6
|
const S = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
@@ -21,7 +21,7 @@ function o(n, ...e) {
|
|
|
21
21
|
}
|
|
22
22
|
return t.trim();
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const G = o`
|
|
25
25
|
fragment FileFragment on File {
|
|
26
26
|
id
|
|
27
27
|
url
|
|
@@ -29,7 +29,7 @@ const x = o`
|
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
31
|
`, ve = o`
|
|
32
|
-
${
|
|
32
|
+
${G}
|
|
33
33
|
|
|
34
34
|
query File($id: ObjectId!) {
|
|
35
35
|
node(id: $id) {
|
|
@@ -38,7 +38,7 @@ const x = o`
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`,
|
|
41
|
+
`, Me = o`
|
|
42
42
|
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
43
43
|
uploadPrivateImageFile(input: $input) {
|
|
44
44
|
... on FileFormatNotSupportedError {
|
|
@@ -52,7 +52,7 @@ const x = o`
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`, Ne = o`
|
|
56
56
|
query Wallet {
|
|
57
57
|
wallet {
|
|
58
58
|
id
|
|
@@ -163,7 +163,7 @@ const x = o`
|
|
|
163
163
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
164
164
|
endGameSession(input: $input)
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
166
|
+
`, Ge = o`
|
|
167
167
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
168
168
|
endGameSession(input: $input) {
|
|
169
169
|
... on GameSessionDoesNotExistError {
|
|
@@ -177,7 +177,7 @@ const x = o`
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`, xe = o`
|
|
181
181
|
query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
|
|
182
182
|
announcements(first: $first, after: $after, filter: $filter) {
|
|
183
183
|
edges {
|
|
@@ -203,7 +203,7 @@ const x = o`
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
`,
|
|
206
|
+
`, $e = o`
|
|
207
207
|
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
208
208
|
member {
|
|
209
209
|
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -270,7 +270,7 @@ const x = o`
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
`,
|
|
273
|
+
`, We = o`
|
|
274
274
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
275
275
|
createGCashWithdrawal(input: $input) {
|
|
276
276
|
... on AccountNotVerifiedError {
|
|
@@ -602,8 +602,8 @@ const x = o`
|
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
`,
|
|
606
|
-
${
|
|
605
|
+
`, W = o`
|
|
606
|
+
${G}
|
|
607
607
|
|
|
608
608
|
fragment PromoFragment on Promo {
|
|
609
609
|
id
|
|
@@ -622,7 +622,7 @@ const x = o`
|
|
|
622
622
|
dateTimeLastUpdated
|
|
623
623
|
}
|
|
624
624
|
`, Je = o`
|
|
625
|
-
${
|
|
625
|
+
${W}
|
|
626
626
|
|
|
627
627
|
query Promos {
|
|
628
628
|
promos {
|
|
@@ -630,7 +630,7 @@ const x = o`
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
`, Xe = o`
|
|
633
|
-
${
|
|
633
|
+
${W}
|
|
634
634
|
|
|
635
635
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
636
636
|
availablePromos(filter: $filter) {
|
|
@@ -638,7 +638,7 @@ const x = o`
|
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
`, Ee = o`
|
|
641
|
-
${
|
|
641
|
+
${G}
|
|
642
642
|
|
|
643
643
|
fragment CashbackFragment on Cashback {
|
|
644
644
|
id
|
|
@@ -663,7 +663,7 @@ const x = o`
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
`, et = o`
|
|
666
|
-
${
|
|
666
|
+
${W}
|
|
667
667
|
|
|
668
668
|
query Bonus {
|
|
669
669
|
bonus {
|
|
@@ -744,7 +744,7 @@ const x = o`
|
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
`, ot = o`
|
|
747
|
-
${
|
|
747
|
+
${G}
|
|
748
748
|
|
|
749
749
|
query MemberVerification {
|
|
750
750
|
memberAccount: self {
|
|
@@ -804,6 +804,14 @@ const x = o`
|
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
`, st = o`
|
|
807
|
+
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
808
|
+
registerMayaMemberAccount(input: $input) {
|
|
809
|
+
... on AccountNameNotAvailableError {
|
|
810
|
+
__typename
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
`, ct = o`
|
|
807
815
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
808
816
|
updateMemberAccount(input: $input) {
|
|
809
817
|
... on AccountNameNotAvailableError {
|
|
@@ -829,7 +837,7 @@ const x = o`
|
|
|
829
837
|
}
|
|
830
838
|
}
|
|
831
839
|
}
|
|
832
|
-
`,
|
|
840
|
+
`, dt = o`
|
|
833
841
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
834
842
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
835
843
|
... on AccountNotFoundError {
|
|
@@ -840,11 +848,11 @@ const x = o`
|
|
|
840
848
|
}
|
|
841
849
|
}
|
|
842
850
|
}
|
|
843
|
-
`,
|
|
851
|
+
`, mt = o`
|
|
844
852
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
845
853
|
deleteMemberAccount(input: $input)
|
|
846
854
|
}
|
|
847
|
-
`,
|
|
855
|
+
`, ut = o`
|
|
848
856
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
849
857
|
verifyMobileNumber(input: $input) {
|
|
850
858
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -855,7 +863,7 @@ const x = o`
|
|
|
855
863
|
}
|
|
856
864
|
}
|
|
857
865
|
}
|
|
858
|
-
`,
|
|
866
|
+
`, lt = o`
|
|
859
867
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
860
868
|
createMemberVerification(input: $input) {
|
|
861
869
|
... on FileDoesNotExistError {
|
|
@@ -869,7 +877,7 @@ const x = o`
|
|
|
869
877
|
}
|
|
870
878
|
}
|
|
871
879
|
}
|
|
872
|
-
`,
|
|
880
|
+
`, pt = o`
|
|
873
881
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
874
882
|
updateMemberVerification(input: $input) {
|
|
875
883
|
... on FileDoesNotExistError {
|
|
@@ -886,7 +894,7 @@ const x = o`
|
|
|
886
894
|
}
|
|
887
895
|
}
|
|
888
896
|
}
|
|
889
|
-
`,
|
|
897
|
+
`, ft = o`
|
|
890
898
|
query ProfileCompletion {
|
|
891
899
|
profileCompletion {
|
|
892
900
|
completionPercentage
|
|
@@ -897,7 +905,7 @@ const x = o`
|
|
|
897
905
|
accountPassword
|
|
898
906
|
}
|
|
899
907
|
}
|
|
900
|
-
`,
|
|
908
|
+
`, ht = o`
|
|
901
909
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
902
910
|
sendVerificationCode(input: $input) {
|
|
903
911
|
... on InvalidPlatformError {
|
|
@@ -908,7 +916,7 @@ const x = o`
|
|
|
908
916
|
}
|
|
909
917
|
}
|
|
910
918
|
}
|
|
911
|
-
`,
|
|
919
|
+
`, wt = o`
|
|
912
920
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
913
921
|
minimumAmount
|
|
914
922
|
maximumAmount
|
|
@@ -962,7 +970,7 @@ const x = o`
|
|
|
962
970
|
multiplier
|
|
963
971
|
}
|
|
964
972
|
}
|
|
965
|
-
`,
|
|
973
|
+
`, yt = o`
|
|
966
974
|
query MayaSession($id: ObjectId!) {
|
|
967
975
|
mayaSession(id: $id) {
|
|
968
976
|
id
|
|
@@ -970,11 +978,11 @@ const x = o`
|
|
|
970
978
|
dateTimeCreated
|
|
971
979
|
}
|
|
972
980
|
}
|
|
973
|
-
`,
|
|
981
|
+
`, gt = o`
|
|
974
982
|
mutation ValidateMayaSession {
|
|
975
983
|
validateMayaSession: validMayaSession
|
|
976
984
|
}
|
|
977
|
-
`,
|
|
985
|
+
`, bt = o`
|
|
978
986
|
query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
|
|
979
987
|
member {
|
|
980
988
|
activityRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -1052,7 +1060,7 @@ function m(n) {
|
|
|
1052
1060
|
}[n]
|
|
1053
1061
|
};
|
|
1054
1062
|
}
|
|
1055
|
-
class
|
|
1063
|
+
class St {
|
|
1056
1064
|
constructor(e) {
|
|
1057
1065
|
d(this, "client");
|
|
1058
1066
|
this.client = e;
|
|
@@ -1075,7 +1083,7 @@ class bt {
|
|
|
1075
1083
|
} : t;
|
|
1076
1084
|
}
|
|
1077
1085
|
async updateMemberAccount(e) {
|
|
1078
|
-
const t = await this.client.request(
|
|
1086
|
+
const t = await this.client.request(ct, e);
|
|
1079
1087
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1080
1088
|
ok: !1,
|
|
1081
1089
|
error: m(t.data.updateMemberAccount.__typename)
|
|
@@ -1084,7 +1092,7 @@ class bt {
|
|
|
1084
1092
|
} : t;
|
|
1085
1093
|
}
|
|
1086
1094
|
async deleteMemberAccount(e) {
|
|
1087
|
-
const t = await this.client.request(
|
|
1095
|
+
const t = await this.client.request(mt, e);
|
|
1088
1096
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1089
1097
|
ok: !0
|
|
1090
1098
|
} : {
|
|
@@ -1097,7 +1105,7 @@ class bt {
|
|
|
1097
1105
|
}
|
|
1098
1106
|
async resetPassword(e) {
|
|
1099
1107
|
const t = await this.client.request(
|
|
1100
|
-
|
|
1108
|
+
dt,
|
|
1101
1109
|
e
|
|
1102
1110
|
);
|
|
1103
1111
|
return t.ok ? t.data.resetPassword ? {
|
|
@@ -1108,14 +1116,14 @@ class bt {
|
|
|
1108
1116
|
} : t;
|
|
1109
1117
|
}
|
|
1110
1118
|
async profileCompletion() {
|
|
1111
|
-
const e = await this.client.request(
|
|
1119
|
+
const e = await this.client.request(ft);
|
|
1112
1120
|
return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
|
|
1113
1121
|
}
|
|
1114
1122
|
async platform() {
|
|
1115
|
-
return await this.client.request(
|
|
1123
|
+
return await this.client.request(wt);
|
|
1116
1124
|
}
|
|
1117
1125
|
async sendVerificationCode(e) {
|
|
1118
|
-
const t = await this.client.request(
|
|
1126
|
+
const t = await this.client.request(ht, e);
|
|
1119
1127
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1120
1128
|
ok: !1,
|
|
1121
1129
|
error: m(t.data.sendVerificationCode.__typename)
|
|
@@ -1124,7 +1132,7 @@ class bt {
|
|
|
1124
1132
|
} : t;
|
|
1125
1133
|
}
|
|
1126
1134
|
async verifyMobileNumber(e) {
|
|
1127
|
-
const t = await this.client.request(
|
|
1135
|
+
const t = await this.client.request(ut, e);
|
|
1128
1136
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1129
1137
|
ok: !1,
|
|
1130
1138
|
error: m(t.data.verifyMobileNumber.__typename)
|
|
@@ -1133,7 +1141,7 @@ class bt {
|
|
|
1133
1141
|
} : t;
|
|
1134
1142
|
}
|
|
1135
1143
|
async createMemberVerification(e) {
|
|
1136
|
-
const t = await this.client.request(
|
|
1144
|
+
const t = await this.client.request(lt, e);
|
|
1137
1145
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1138
1146
|
ok: !1,
|
|
1139
1147
|
error: m(t.data.createMemberVerification.__typename)
|
|
@@ -1142,7 +1150,7 @@ class bt {
|
|
|
1142
1150
|
} : t;
|
|
1143
1151
|
}
|
|
1144
1152
|
async updateMemberVerification(e) {
|
|
1145
|
-
const t = await this.client.request(
|
|
1153
|
+
const t = await this.client.request(pt, e);
|
|
1146
1154
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1147
1155
|
ok: !1,
|
|
1148
1156
|
error: m(t.data.updateMemberVerification.__typename)
|
|
@@ -1159,7 +1167,7 @@ class bt {
|
|
|
1159
1167
|
}
|
|
1160
1168
|
async announcements(e) {
|
|
1161
1169
|
const t = await this.client.request(
|
|
1162
|
-
|
|
1170
|
+
xe,
|
|
1163
1171
|
e
|
|
1164
1172
|
);
|
|
1165
1173
|
return t.ok ? {
|
|
@@ -1167,15 +1175,24 @@ class bt {
|
|
|
1167
1175
|
data: t.data.announcements
|
|
1168
1176
|
} : t;
|
|
1169
1177
|
}
|
|
1178
|
+
async registerMayaMemberAccount(e) {
|
|
1179
|
+
const t = await this.client.request(st, e);
|
|
1180
|
+
return t.ok ? t.data.registerMayaMemberAccount ? {
|
|
1181
|
+
ok: !1,
|
|
1182
|
+
error: m(t.data.registerMayaMemberAccount.__typename)
|
|
1183
|
+
} : {
|
|
1184
|
+
ok: !0
|
|
1185
|
+
} : t;
|
|
1186
|
+
}
|
|
1170
1187
|
}
|
|
1171
1188
|
function h(n, e) {
|
|
1172
|
-
const t =
|
|
1189
|
+
const t = x[n] ? x[n] : x[500];
|
|
1173
1190
|
return {
|
|
1174
1191
|
name: t.name,
|
|
1175
1192
|
message: e ?? t.message
|
|
1176
1193
|
};
|
|
1177
1194
|
}
|
|
1178
|
-
const
|
|
1195
|
+
const x = {
|
|
1179
1196
|
400: { name: "HttpBadRequest", message: "Bad Request" },
|
|
1180
1197
|
401: { name: "HttpUnauthorized", message: "Unauthorized" },
|
|
1181
1198
|
403: { name: "HttpForbidden", message: "Forbidden" },
|
|
@@ -1184,7 +1201,7 @@ const G = {
|
|
|
1184
1201
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1185
1202
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1186
1203
|
};
|
|
1187
|
-
class
|
|
1204
|
+
class Et {
|
|
1188
1205
|
constructor(e) {
|
|
1189
1206
|
d(this, "url");
|
|
1190
1207
|
d(this, "platform");
|
|
@@ -1325,7 +1342,7 @@ class St {
|
|
|
1325
1342
|
}
|
|
1326
1343
|
}
|
|
1327
1344
|
}
|
|
1328
|
-
class
|
|
1345
|
+
class At {
|
|
1329
1346
|
constructor(e) {
|
|
1330
1347
|
d(this, "client");
|
|
1331
1348
|
this.client = e;
|
|
@@ -1338,7 +1355,7 @@ class Et {
|
|
|
1338
1355
|
} : t;
|
|
1339
1356
|
}
|
|
1340
1357
|
async uploadPrivateImageFile(e) {
|
|
1341
|
-
const t = await this.client.upload(
|
|
1358
|
+
const t = await this.client.upload(Me, e);
|
|
1342
1359
|
return t.ok ? t.data.uploadPrivateImageFile ? {
|
|
1343
1360
|
ok: !1,
|
|
1344
1361
|
error: m(t.data.uploadPrivateImageFile.__typename)
|
|
@@ -1347,7 +1364,7 @@ class Et {
|
|
|
1347
1364
|
} : t;
|
|
1348
1365
|
}
|
|
1349
1366
|
}
|
|
1350
|
-
class
|
|
1367
|
+
class kt {
|
|
1351
1368
|
constructor(e) {
|
|
1352
1369
|
d(this, "client");
|
|
1353
1370
|
this.client = e;
|
|
@@ -1365,7 +1382,7 @@ class At {
|
|
|
1365
1382
|
}
|
|
1366
1383
|
async withdrawalRecords(e) {
|
|
1367
1384
|
const t = await this.client.request(
|
|
1368
|
-
|
|
1385
|
+
$e,
|
|
1369
1386
|
e
|
|
1370
1387
|
);
|
|
1371
1388
|
return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
|
|
@@ -1391,13 +1408,13 @@ class At {
|
|
|
1391
1408
|
}
|
|
1392
1409
|
async activityRecords(e) {
|
|
1393
1410
|
const t = await this.client.request(
|
|
1394
|
-
|
|
1411
|
+
bt,
|
|
1395
1412
|
e
|
|
1396
1413
|
);
|
|
1397
1414
|
return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
|
|
1398
1415
|
}
|
|
1399
1416
|
}
|
|
1400
|
-
class
|
|
1417
|
+
class _t {
|
|
1401
1418
|
constructor(e) {
|
|
1402
1419
|
d(this, "url");
|
|
1403
1420
|
this.url = e.url;
|
|
@@ -1450,7 +1467,7 @@ class Ae {
|
|
|
1450
1467
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
1451
1468
|
}
|
|
1452
1469
|
async wallet() {
|
|
1453
|
-
const e = await this.client.request(
|
|
1470
|
+
const e = await this.client.request(Ne);
|
|
1454
1471
|
return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
|
|
1455
1472
|
}
|
|
1456
1473
|
async deposit(e) {
|
|
@@ -1488,7 +1505,7 @@ class Ae {
|
|
|
1488
1505
|
} : t;
|
|
1489
1506
|
}
|
|
1490
1507
|
async createGCashWithdrawal(e) {
|
|
1491
|
-
const t = await this.client.request(
|
|
1508
|
+
const t = await this.client.request(We, e);
|
|
1492
1509
|
return t.ok ? t.data.createGCashWithdrawal ? {
|
|
1493
1510
|
ok: !1,
|
|
1494
1511
|
error: m(t.data.createGCashWithdrawal.__typename)
|
|
@@ -1544,7 +1561,7 @@ class Ae {
|
|
|
1544
1561
|
}
|
|
1545
1562
|
async mayaSession(e) {
|
|
1546
1563
|
const t = await this.client.request(
|
|
1547
|
-
|
|
1564
|
+
yt,
|
|
1548
1565
|
e
|
|
1549
1566
|
);
|
|
1550
1567
|
return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
|
|
@@ -1595,7 +1612,7 @@ class Ae {
|
|
|
1595
1612
|
}
|
|
1596
1613
|
async validateMayaSession() {
|
|
1597
1614
|
const e = await this.client.request(
|
|
1598
|
-
|
|
1615
|
+
gt
|
|
1599
1616
|
);
|
|
1600
1617
|
return e.ok ? e.data.validateMayaSession ? {
|
|
1601
1618
|
ok: !0
|
|
@@ -1623,9 +1640,9 @@ class Ct {
|
|
|
1623
1640
|
} : e;
|
|
1624
1641
|
}
|
|
1625
1642
|
async games(e) {
|
|
1626
|
-
var r, s, c, p, u, f, w, l, A, k,
|
|
1643
|
+
var r, s, c, p, u, f, w, l, A, k, _, C, T, v, M, N;
|
|
1627
1644
|
const t = new URLSearchParams();
|
|
1628
|
-
e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (p = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && p.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (u = e == null ? void 0 : e.filter) == null ? void 0 : u.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (l = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && l.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (
|
|
1645
|
+
e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (p = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && p.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (u = e == null ? void 0 : e.filter) == null ? void 0 : u.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (l = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && l.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (C = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && C.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (v = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && v.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (N = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && N.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(","));
|
|
1629
1646
|
const a = await this.getJson("/games", t);
|
|
1630
1647
|
return a.ok ? {
|
|
1631
1648
|
ok: !0,
|
|
@@ -1680,7 +1697,7 @@ class Ct {
|
|
|
1680
1697
|
}
|
|
1681
1698
|
}
|
|
1682
1699
|
}
|
|
1683
|
-
class
|
|
1700
|
+
class Tt {
|
|
1684
1701
|
constructor(e) {
|
|
1685
1702
|
d(this, "client");
|
|
1686
1703
|
this.client = e;
|
|
@@ -1715,7 +1732,7 @@ class _t {
|
|
|
1715
1732
|
} : t;
|
|
1716
1733
|
}
|
|
1717
1734
|
async endGameSession(e) {
|
|
1718
|
-
const t = await this.client.request(
|
|
1735
|
+
const t = await this.client.request(Ge, e);
|
|
1719
1736
|
return t.ok ? t.data.endGameSession ? {
|
|
1720
1737
|
ok: !1,
|
|
1721
1738
|
error: m(t.data.endGameSession.__typename)
|
|
@@ -1724,7 +1741,7 @@ class _t {
|
|
|
1724
1741
|
} : t;
|
|
1725
1742
|
}
|
|
1726
1743
|
}
|
|
1727
|
-
class
|
|
1744
|
+
class vt {
|
|
1728
1745
|
constructor(e) {
|
|
1729
1746
|
d(this, "client");
|
|
1730
1747
|
this.client = e;
|
|
@@ -1737,10 +1754,10 @@ class Tt {
|
|
|
1737
1754
|
} : e;
|
|
1738
1755
|
}
|
|
1739
1756
|
}
|
|
1740
|
-
function
|
|
1757
|
+
function Mt(n, e, t) {
|
|
1741
1758
|
return n < e ? e : n > t ? t : n;
|
|
1742
1759
|
}
|
|
1743
|
-
function
|
|
1760
|
+
function $(n) {
|
|
1744
1761
|
return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
|
|
1745
1762
|
}
|
|
1746
1763
|
function Nt(n) {
|
|
@@ -1748,7 +1765,7 @@ function Nt(n) {
|
|
|
1748
1765
|
function t(a, r = []) {
|
|
1749
1766
|
for (const s in a) {
|
|
1750
1767
|
const c = a[s];
|
|
1751
|
-
|
|
1768
|
+
$(c) ? t(c, [...r, s]) : Array.isArray(c) ? t(It(c), [...r, s]) : e.push({
|
|
1752
1769
|
key: [...r, s],
|
|
1753
1770
|
value: c
|
|
1754
1771
|
});
|
|
@@ -1756,7 +1773,7 @@ function Nt(n) {
|
|
|
1756
1773
|
}
|
|
1757
1774
|
return t(n), e;
|
|
1758
1775
|
}
|
|
1759
|
-
function
|
|
1776
|
+
function It(n) {
|
|
1760
1777
|
return n.reduce((e, t, a) => (e[a] = t, e), {});
|
|
1761
1778
|
}
|
|
1762
1779
|
class E {
|
|
@@ -1841,7 +1858,7 @@ class E {
|
|
|
1841
1858
|
}), r;
|
|
1842
1859
|
}
|
|
1843
1860
|
}
|
|
1844
|
-
async function
|
|
1861
|
+
async function y(n) {
|
|
1845
1862
|
const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
|
|
1846
1863
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
1847
1864
|
}
|
|
@@ -1877,7 +1894,7 @@ function R(n, e) {
|
|
|
1877
1894
|
function he(n, e) {
|
|
1878
1895
|
return n.getTime() > e.getTime();
|
|
1879
1896
|
}
|
|
1880
|
-
function
|
|
1897
|
+
function _e(n) {
|
|
1881
1898
|
return new Promise((e) => {
|
|
1882
1899
|
setTimeout(e, n);
|
|
1883
1900
|
});
|
|
@@ -1891,7 +1908,7 @@ function we(n, e) {
|
|
|
1891
1908
|
} = e;
|
|
1892
1909
|
async function s(c, p) {
|
|
1893
1910
|
const u = p ?? r, f = await n(...c);
|
|
1894
|
-
return t(f) ? f : u > 1 ? (await
|
|
1911
|
+
return t(f) ? f : u > 1 ? (await _e(a * ((r - u) / 2)), s(c, u - 1)) : f;
|
|
1895
1912
|
}
|
|
1896
1913
|
return async (...c) => await s(c);
|
|
1897
1914
|
}
|
|
@@ -1899,14 +1916,14 @@ function P(n, e) {
|
|
|
1899
1916
|
const t = B(n);
|
|
1900
1917
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
1901
1918
|
}
|
|
1902
|
-
class
|
|
1919
|
+
class Dt {
|
|
1903
1920
|
constructor(e) {
|
|
1904
1921
|
d(this, "logger");
|
|
1905
1922
|
d(this, "storageKey", "session");
|
|
1906
1923
|
d(this, "authService");
|
|
1907
1924
|
d(this, "walletService");
|
|
1908
1925
|
d(this, "_refreshing", !1);
|
|
1909
|
-
this.authService = new
|
|
1926
|
+
this.authService = new Et({
|
|
1910
1927
|
url: e.authUrl,
|
|
1911
1928
|
platform: e.platform
|
|
1912
1929
|
}), this.walletService = new Ae(
|
|
@@ -2034,7 +2051,7 @@ class It {
|
|
|
2034
2051
|
data: null
|
|
2035
2052
|
};
|
|
2036
2053
|
if (this.refreshing)
|
|
2037
|
-
return await
|
|
2054
|
+
return await _e(1e3), await this.get();
|
|
2038
2055
|
const e = window.localStorage.getItem(this.storageKey);
|
|
2039
2056
|
if (!e)
|
|
2040
2057
|
return {
|
|
@@ -2107,17 +2124,17 @@ class It {
|
|
|
2107
2124
|
return typeof window > "u";
|
|
2108
2125
|
}
|
|
2109
2126
|
}
|
|
2110
|
-
function
|
|
2127
|
+
function g(n) {
|
|
2111
2128
|
const e = {};
|
|
2112
2129
|
for (const t in n) {
|
|
2113
2130
|
const a = n[t];
|
|
2114
2131
|
if (a !== null && a !== void 0) {
|
|
2115
|
-
if (
|
|
2116
|
-
e[t] =
|
|
2132
|
+
if ($(a)) {
|
|
2133
|
+
e[t] = g(a);
|
|
2117
2134
|
continue;
|
|
2118
2135
|
}
|
|
2119
2136
|
if (Array.isArray(a)) {
|
|
2120
|
-
e[t] = a.map((r) =>
|
|
2137
|
+
e[t] = a.map((r) => $(r) ? g(r) : r);
|
|
2121
2138
|
continue;
|
|
2122
2139
|
}
|
|
2123
2140
|
e[t] = a;
|
|
@@ -2135,11 +2152,11 @@ function i(n, e) {
|
|
|
2135
2152
|
}
|
|
2136
2153
|
return e;
|
|
2137
2154
|
}
|
|
2138
|
-
class
|
|
2155
|
+
class Rt {
|
|
2139
2156
|
constructor(e) {
|
|
2140
2157
|
d(this, "staticService");
|
|
2141
2158
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2142
|
-
this.staticService = new
|
|
2159
|
+
this.staticService = new _t({
|
|
2143
2160
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
2144
2161
|
});
|
|
2145
2162
|
}
|
|
@@ -2178,10 +2195,10 @@ class Dt {
|
|
|
2178
2195
|
name: e.name,
|
|
2179
2196
|
logo: e.logo ?? void 0
|
|
2180
2197
|
};
|
|
2181
|
-
return
|
|
2198
|
+
return g(t);
|
|
2182
2199
|
}
|
|
2183
2200
|
platform(e) {
|
|
2184
|
-
var t, a, r, s, c, p, u, f, w, l, A, k,
|
|
2201
|
+
var t, a, r, s, c, p, u, f, w, l, A, k, _, C, T, v, M, N, I, O, U, q, F, L, V, Y, H, j, Q, K, z, J, X, Z, ee, te, ae, re, ne, oe, ie, se, ce, de, me, ue, le, pe, fe;
|
|
2185
2202
|
return {
|
|
2186
2203
|
paymentSettings: {
|
|
2187
2204
|
minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
|
|
@@ -2204,12 +2221,12 @@ class Dt {
|
|
|
2204
2221
|
maximumAmount: i((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
|
|
2205
2222
|
},
|
|
2206
2223
|
maya: {
|
|
2207
|
-
androidEnabled: ((
|
|
2208
|
-
iosEnabled: ((
|
|
2224
|
+
androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
|
|
2225
|
+
iosEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.iosEnabled) ?? !1,
|
|
2209
2226
|
webEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.webEnabled) ?? !1,
|
|
2210
2227
|
mobileWebEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.mobileWebEnabled) ?? !1,
|
|
2211
|
-
minimumAmount: i((
|
|
2212
|
-
maximumAmount: i((
|
|
2228
|
+
minimumAmount: i((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.minimumAmount),
|
|
2229
|
+
maximumAmount: i((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.maximumAmount)
|
|
2213
2230
|
},
|
|
2214
2231
|
mayaApp: {
|
|
2215
2232
|
androidEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.androidEnabled) ?? !1,
|
|
@@ -2287,7 +2304,7 @@ class Dt {
|
|
|
2287
2304
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2288
2305
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2289
2306
|
};
|
|
2290
|
-
return
|
|
2307
|
+
return g(t);
|
|
2291
2308
|
}
|
|
2292
2309
|
wallet(e) {
|
|
2293
2310
|
return {
|
|
@@ -2350,7 +2367,7 @@ class Dt {
|
|
|
2350
2367
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2351
2368
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2352
2369
|
};
|
|
2353
|
-
return
|
|
2370
|
+
return g(t);
|
|
2354
2371
|
}
|
|
2355
2372
|
deposit(e) {
|
|
2356
2373
|
const t = {
|
|
@@ -2359,7 +2376,7 @@ class Dt {
|
|
|
2359
2376
|
status: e.status,
|
|
2360
2377
|
checkoutUrl: e.checkoutUrl ?? void 0
|
|
2361
2378
|
};
|
|
2362
|
-
return
|
|
2379
|
+
return g(t);
|
|
2363
2380
|
}
|
|
2364
2381
|
depositRecord(e) {
|
|
2365
2382
|
const t = {
|
|
@@ -2374,7 +2391,7 @@ class Dt {
|
|
|
2374
2391
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2375
2392
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2376
2393
|
};
|
|
2377
|
-
return
|
|
2394
|
+
return g(t);
|
|
2378
2395
|
}
|
|
2379
2396
|
betRecord(e) {
|
|
2380
2397
|
var a;
|
|
@@ -2400,7 +2417,7 @@ class Dt {
|
|
|
2400
2417
|
odds: ((a = e.metadata) == null ? void 0 : a.odds) ?? void 0
|
|
2401
2418
|
}
|
|
2402
2419
|
};
|
|
2403
|
-
return
|
|
2420
|
+
return g(t);
|
|
2404
2421
|
}
|
|
2405
2422
|
latestBetRecord(e) {
|
|
2406
2423
|
return {
|
|
@@ -2424,7 +2441,7 @@ class Dt {
|
|
|
2424
2441
|
referenceNumber: e.referenceNumber,
|
|
2425
2442
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2426
2443
|
};
|
|
2427
|
-
return
|
|
2444
|
+
return g(t);
|
|
2428
2445
|
}
|
|
2429
2446
|
game(e) {
|
|
2430
2447
|
return {
|
|
@@ -2456,7 +2473,7 @@ class Dt {
|
|
|
2456
2473
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2457
2474
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2458
2475
|
};
|
|
2459
|
-
return
|
|
2476
|
+
return g(t);
|
|
2460
2477
|
}
|
|
2461
2478
|
promo(e) {
|
|
2462
2479
|
return {
|
|
@@ -2519,7 +2536,7 @@ class Dt {
|
|
|
2519
2536
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2520
2537
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2521
2538
|
};
|
|
2522
|
-
return
|
|
2539
|
+
return g(t);
|
|
2523
2540
|
}
|
|
2524
2541
|
cashbackBonus(e) {
|
|
2525
2542
|
return {
|
|
@@ -2537,7 +2554,7 @@ class Dt {
|
|
|
2537
2554
|
status: e.status,
|
|
2538
2555
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2539
2556
|
};
|
|
2540
|
-
return
|
|
2557
|
+
return g(t);
|
|
2541
2558
|
}
|
|
2542
2559
|
pointsWallet(e) {
|
|
2543
2560
|
return {
|
|
@@ -2565,7 +2582,7 @@ class Dt {
|
|
|
2565
2582
|
};
|
|
2566
2583
|
}
|
|
2567
2584
|
}
|
|
2568
|
-
class
|
|
2585
|
+
class $t {
|
|
2569
2586
|
constructor(e) {
|
|
2570
2587
|
d(this, "gameService");
|
|
2571
2588
|
d(this, "fileService");
|
|
@@ -2578,13 +2595,13 @@ class Gt {
|
|
|
2578
2595
|
d(this, "transformer");
|
|
2579
2596
|
d(this, "logger");
|
|
2580
2597
|
const t = e.environment === "development";
|
|
2581
|
-
this.sessionManager = new
|
|
2598
|
+
this.sessionManager = new Dt({
|
|
2582
2599
|
authUrl: t ? "https://auth.development.opexa.io" : "https://auth.opexa.io",
|
|
2583
2600
|
walletUrl: t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
|
|
2584
2601
|
platform: e.platform,
|
|
2585
2602
|
log: e.log
|
|
2586
2603
|
}), this.cmsPortalService = new Ct({
|
|
2587
|
-
url: "https://portal-api.opexacms.io/v1",
|
|
2604
|
+
url: t ? "https://portal-api.development.opexacms.io/v1" : "https://portal-api.opexacms.io/v1",
|
|
2588
2605
|
site: e.site,
|
|
2589
2606
|
platform: e.sitePlatform
|
|
2590
2607
|
});
|
|
@@ -2597,12 +2614,12 @@ class Gt {
|
|
|
2597
2614
|
}
|
|
2598
2615
|
}
|
|
2599
2616
|
};
|
|
2600
|
-
this.gameService = new
|
|
2617
|
+
this.gameService = new Tt(
|
|
2601
2618
|
new E(
|
|
2602
2619
|
t ? "https://game.development.opexa.io/graphql" : "https://game.opexa.io/graphql",
|
|
2603
2620
|
a
|
|
2604
2621
|
)
|
|
2605
|
-
), this.fileService = new
|
|
2622
|
+
), this.fileService = new At(
|
|
2606
2623
|
new E(
|
|
2607
2624
|
t ? "https://file.development.opexa.io/graphql" : "https://file.opexa.io/graphql",
|
|
2608
2625
|
a
|
|
@@ -2612,22 +2629,22 @@ class Gt {
|
|
|
2612
2629
|
t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
|
|
2613
2630
|
a
|
|
2614
2631
|
)
|
|
2615
|
-
), this.reportService = new
|
|
2632
|
+
), this.reportService = new kt(
|
|
2616
2633
|
new E(
|
|
2617
2634
|
t ? "https://report.development.opexa.io/graphql" : "https://report.opexa.io/graphql",
|
|
2618
2635
|
a
|
|
2619
2636
|
)
|
|
2620
|
-
), this.accountService = new
|
|
2637
|
+
), this.accountService = new St(
|
|
2621
2638
|
new E(
|
|
2622
2639
|
t ? "https://account.development.opexa.io/graphql" : "https://account.opexa.io/graphql",
|
|
2623
2640
|
a
|
|
2624
2641
|
)
|
|
2625
|
-
), this.portalService = new
|
|
2642
|
+
), this.portalService = new vt(
|
|
2626
2643
|
new E(
|
|
2627
2644
|
t ? "https://portal.development.opexa.io/graphql" : "https://portal.opexa.io/graphql",
|
|
2628
2645
|
a
|
|
2629
2646
|
)
|
|
2630
|
-
), this.transformer = new
|
|
2647
|
+
), this.transformer = new Rt(e), this.logger = new ke({
|
|
2631
2648
|
enabled: e.log ?? !1
|
|
2632
2649
|
});
|
|
2633
2650
|
}
|
|
@@ -2643,7 +2660,7 @@ class Gt {
|
|
|
2643
2660
|
case "NAME_AND_PASSWORD": {
|
|
2644
2661
|
const t = await this.sessionManager.create({
|
|
2645
2662
|
...e,
|
|
2646
|
-
password: await
|
|
2663
|
+
password: await y(e.password)
|
|
2647
2664
|
});
|
|
2648
2665
|
return t.ok ? t.data ? {
|
|
2649
2666
|
ok: !0,
|
|
@@ -2703,7 +2720,7 @@ class Gt {
|
|
|
2703
2720
|
return await this.sessionManager.createFromAuthenticator({
|
|
2704
2721
|
type: "SECURITY_QUESTION",
|
|
2705
2722
|
token: e.token,
|
|
2706
|
-
secretAnswer: await
|
|
2723
|
+
secretAnswer: await y(e.secretAnswer)
|
|
2707
2724
|
});
|
|
2708
2725
|
default:
|
|
2709
2726
|
return {
|
|
@@ -2743,7 +2760,7 @@ class Gt {
|
|
|
2743
2760
|
* ```
|
|
2744
2761
|
*/
|
|
2745
2762
|
watchSession(e) {
|
|
2746
|
-
const t =
|
|
2763
|
+
const t = Mt(e.interval ?? 3e4, 3e4, 6e4);
|
|
2747
2764
|
let a = null;
|
|
2748
2765
|
const r = () => setTimeout(async () => {
|
|
2749
2766
|
await this.sessionManager.verify() || await e.onInvalid(), a = r();
|
|
@@ -2834,7 +2851,7 @@ class Gt {
|
|
|
2834
2851
|
id: t,
|
|
2835
2852
|
name: e.name,
|
|
2836
2853
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
|
|
2837
|
-
password: await
|
|
2854
|
+
password: await y(e.password),
|
|
2838
2855
|
mobileNumber: this.addAreaCode(e.mobileNumber),
|
|
2839
2856
|
domain: e.domain,
|
|
2840
2857
|
btag: e.referralCode
|
|
@@ -2844,6 +2861,15 @@ class Gt {
|
|
|
2844
2861
|
});
|
|
2845
2862
|
return a.ok ? { ok: !0, data: { id: t } } : a;
|
|
2846
2863
|
}
|
|
2864
|
+
async registerMayaAccount(e) {
|
|
2865
|
+
return await this.accountService.registerMayaMemberAccount({
|
|
2866
|
+
input: {
|
|
2867
|
+
name: e.name,
|
|
2868
|
+
password: await y(e.password),
|
|
2869
|
+
domain: e.domain
|
|
2870
|
+
}
|
|
2871
|
+
});
|
|
2872
|
+
}
|
|
2847
2873
|
/**
|
|
2848
2874
|
* @example
|
|
2849
2875
|
* ```ts
|
|
@@ -2865,12 +2891,12 @@ class Gt {
|
|
|
2865
2891
|
id: e,
|
|
2866
2892
|
data: {
|
|
2867
2893
|
...t,
|
|
2868
|
-
password: t.password ? await
|
|
2869
|
-
transactionPassword: t.transactionPassword ? await
|
|
2894
|
+
password: t.password ? await y(t.password) : void 0,
|
|
2895
|
+
transactionPassword: t.transactionPassword ? await y(t.transactionPassword) : void 0,
|
|
2870
2896
|
...t.mobileNumber && {
|
|
2871
2897
|
mobileNumber: this.addAreaCode(t.mobileNumber)
|
|
2872
2898
|
},
|
|
2873
|
-
secretAnswer: t.secretAnswer ? await
|
|
2899
|
+
secretAnswer: t.secretAnswer ? await y(t.secretAnswer) : void 0
|
|
2874
2900
|
}
|
|
2875
2901
|
}
|
|
2876
2902
|
});
|
|
@@ -2948,7 +2974,7 @@ class Gt {
|
|
|
2948
2974
|
return await this.accountService.resetPassword({
|
|
2949
2975
|
input: {
|
|
2950
2976
|
mobileNumber: this.addAreaCode(e.mobileNumber),
|
|
2951
|
-
newPassword: await
|
|
2977
|
+
newPassword: await y(e.newPassword)
|
|
2952
2978
|
},
|
|
2953
2979
|
verificationCode: e.verificationCode
|
|
2954
2980
|
});
|
|
@@ -3041,7 +3067,7 @@ class Gt {
|
|
|
3041
3067
|
input: {
|
|
3042
3068
|
id: t,
|
|
3043
3069
|
amount: e.amount.toString(),
|
|
3044
|
-
transactionPassword: await
|
|
3070
|
+
transactionPassword: await y(e.transactionPassword)
|
|
3045
3071
|
}
|
|
3046
3072
|
});
|
|
3047
3073
|
if (!a.ok) return a;
|
|
@@ -3051,7 +3077,7 @@ class Gt {
|
|
|
3051
3077
|
input: {
|
|
3052
3078
|
id: t,
|
|
3053
3079
|
amount: e.amount.toString(),
|
|
3054
|
-
transactionPassword: await
|
|
3080
|
+
transactionPassword: await y(e.transactionPassword),
|
|
3055
3081
|
recipientMobileNumber: this.addAreaCode(e.recipientMobileNumber)
|
|
3056
3082
|
}
|
|
3057
3083
|
});
|
|
@@ -3062,7 +3088,7 @@ class Gt {
|
|
|
3062
3088
|
input: {
|
|
3063
3089
|
id: t,
|
|
3064
3090
|
amount: e.amount.toString(),
|
|
3065
|
-
transactionPassword: await
|
|
3091
|
+
transactionPassword: await y(e.transactionPassword),
|
|
3066
3092
|
recipientMobileNumber: this.addAreaCode(e.recipientMobileNumber)
|
|
3067
3093
|
}
|
|
3068
3094
|
});
|
|
@@ -3073,7 +3099,7 @@ class Gt {
|
|
|
3073
3099
|
input: {
|
|
3074
3100
|
id: t,
|
|
3075
3101
|
amount: e.amount.toString(),
|
|
3076
|
-
transactionPassword: await
|
|
3102
|
+
transactionPassword: await y(e.transactionPassword)
|
|
3077
3103
|
}
|
|
3078
3104
|
});
|
|
3079
3105
|
if (!a.ok) return a;
|
|
@@ -3443,7 +3469,7 @@ class Gt {
|
|
|
3443
3469
|
/**/
|
|
3444
3470
|
provider: r,
|
|
3445
3471
|
externalId: s
|
|
3446
|
-
} = a.data, c =
|
|
3472
|
+
} = a.data, c = Pt.includes(r) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
|
|
3447
3473
|
return c.ok ? { ok: !0, data: { id: t } } : c;
|
|
3448
3474
|
}
|
|
3449
3475
|
/** @deprecated use `endGameSession__next` */
|
|
@@ -3552,7 +3578,7 @@ class Gt {
|
|
|
3552
3578
|
return e.startsWith("+63") ? e : e.startsWith("63") ? `+${e}` : e.startsWith("0") ? `+63${e.substring(1)}` : `+63${e}`;
|
|
3553
3579
|
}
|
|
3554
3580
|
}
|
|
3555
|
-
const
|
|
3581
|
+
const Pt = [
|
|
3556
3582
|
/**/
|
|
3557
3583
|
"RTG",
|
|
3558
3584
|
"DARWIN",
|
|
@@ -3563,8 +3589,8 @@ const Rt = [
|
|
|
3563
3589
|
"EVOLUTION_REDTIGER"
|
|
3564
3590
|
];
|
|
3565
3591
|
export {
|
|
3566
|
-
|
|
3592
|
+
Ot as ObjectId,
|
|
3567
3593
|
S as ObjectType,
|
|
3568
|
-
|
|
3594
|
+
$t as Sdk
|
|
3569
3595
|
};
|
|
3570
3596
|
//# sourceMappingURL=index.mjs.map
|