60p82u21t54k 0.0.16 → 0.0.18
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/60p82u21t54k.es.js +191 -159
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/type.d.ts +4 -1
- package/dist/api/type.d.ts.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/model/gameList/getGameListResponse.d.ts +5 -0
- package/dist/model/gameList/getGameListResponse.d.ts.map +1 -0
- package/dist/model/gameList/rawType.d.ts +38 -0
- package/dist/model/gameList/rawType.d.ts.map +1 -0
- package/dist/model/gameList/type.d.ts +2 -36
- package/dist/model/gameList/type.d.ts.map +1 -1
- package/dist/model/userProfile/getUserProfileResponse.d.ts +5 -0
- package/dist/model/userProfile/getUserProfileResponse.d.ts.map +1 -0
- package/dist/model/userProfile/rawType.d.ts +18 -0
- package/dist/model/userProfile/rawType.d.ts.map +1 -0
- package/dist/model/userProfile/type.d.ts +9 -0
- package/dist/model/userProfile/type.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
const b =
|
|
1
|
+
import k from "axios";
|
|
2
|
+
const b = k.create({
|
|
3
3
|
baseURL: "/graph",
|
|
4
4
|
timeout: 5e3,
|
|
5
5
|
// Request timeout
|
|
@@ -66,48 +66,48 @@ const T = (e) => new TextEncoder().encode(e), v = (e) => {
|
|
|
66
66
|
return console.error("Failed to decode Base64:", t), "";
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
var
|
|
70
|
-
const
|
|
69
|
+
var y = /* @__PURE__ */ ((e) => (e.announcement = "announcement", e.gameList = "gameList", e.fishGameList = "fishGameList", e.cmsList = "cmsList", e.paymentsProvider = "paymentsProvider", e.getUserProfile = "getUserProfile", e))(y || {});
|
|
70
|
+
const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71
71
|
__proto__: null,
|
|
72
|
-
Api:
|
|
72
|
+
Api: y
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
74
|
var g = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(g || {});
|
|
75
|
-
const
|
|
75
|
+
const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
76
|
__proto__: null,
|
|
77
77
|
PaymentType: g
|
|
78
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
79
|
-
const
|
|
78
|
+
}, Symbol.toStringTag, { value: "Module" })), j = (e) => e.mdPaymentChannels.map((t) => {
|
|
79
|
+
const s = [];
|
|
80
80
|
switch (t.name) {
|
|
81
81
|
case g.default:
|
|
82
|
-
|
|
82
|
+
s.push(O(t.paymentmethod.manual, e));
|
|
83
83
|
break;
|
|
84
84
|
case g.pay:
|
|
85
|
-
|
|
85
|
+
s.push(D(t.paymentmethod.onlinebanking, e));
|
|
86
86
|
break;
|
|
87
87
|
default:
|
|
88
|
-
if (t.paymentmethod.auto.bank.length > 0 &&
|
|
88
|
+
if (t.paymentmethod.auto.bank.length > 0 && s.push(
|
|
89
89
|
B(t.bankid ?? 0, t.paymentmethod.auto, e)
|
|
90
90
|
), t.paymentmethod.manual.bank.length > 0) {
|
|
91
91
|
let a = !1;
|
|
92
92
|
for (let n = 0; n < t.paymentmethod.manual.bank.length; n++) {
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
93
|
+
const o = t.paymentmethod.manual.bank[n];
|
|
94
|
+
if (o.list && o.list.length > 0) {
|
|
95
95
|
a = !0;
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
a &&
|
|
99
|
+
a && s.push(O(t.paymentmethod.manual, e));
|
|
100
100
|
}
|
|
101
|
-
t.paymentmethod.fixamount.bank.length > 0 &&
|
|
102
|
-
|
|
101
|
+
t.paymentmethod.fixamount.bank.length > 0 && s.push(
|
|
102
|
+
U(t.bankid ?? 0, t.paymentmethod.fixamount)
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
return {
|
|
106
106
|
name: t.label,
|
|
107
107
|
imageUrl: `/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,
|
|
108
|
-
paymentList:
|
|
108
|
+
paymentList: s
|
|
109
109
|
};
|
|
110
|
-
}),
|
|
110
|
+
}), L = {
|
|
111
111
|
id: 0,
|
|
112
112
|
name: "",
|
|
113
113
|
type: g.unknown,
|
|
@@ -127,48 +127,48 @@ const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
127
127
|
name: "excludePromo",
|
|
128
128
|
value: "0",
|
|
129
129
|
disabled: !0
|
|
130
|
-
},
|
|
130
|
+
}, s = e.map((a, n) => ({
|
|
131
131
|
id: n + 1,
|
|
132
132
|
name: a.promodesc,
|
|
133
133
|
value: a.promoindex.toString(),
|
|
134
134
|
disabled: !1
|
|
135
135
|
}));
|
|
136
|
-
return [t, ...
|
|
137
|
-
},
|
|
138
|
-
let n,
|
|
139
|
-
|
|
136
|
+
return [t, ...s];
|
|
137
|
+
}, _ = (e, t, s, a) => {
|
|
138
|
+
let n, o;
|
|
139
|
+
s > 0 ? n = e > 0 ? Math.max(s, e) : s : n = Math.max(e, 0), a > 0 ? o = t > 0 ? Math.min(a, t) : a : o = Math.max(t, 0);
|
|
140
140
|
const u = Math.round(n);
|
|
141
141
|
let i = 1e3;
|
|
142
|
-
|
|
142
|
+
o < i && (i = Math.round(o));
|
|
143
143
|
const m = i - u;
|
|
144
|
-
let
|
|
144
|
+
let r = "", d = "";
|
|
145
145
|
if (m > 0) {
|
|
146
146
|
let c = Math.round((i - u) * 0.25).toString().split(""), p = [];
|
|
147
|
-
for (const
|
|
148
|
-
|
|
149
|
-
for (let
|
|
150
|
-
|
|
147
|
+
for (const l of c)
|
|
148
|
+
l !== "" && p.push(l);
|
|
149
|
+
for (let l = 0; l < p.length; l++)
|
|
150
|
+
l === 0 ? r += (parseInt(p[l]) + 1).toString() : r += "0";
|
|
151
151
|
c = Math.round((i - u) * 0.5).toString().split(""), p = [];
|
|
152
|
-
for (const
|
|
153
|
-
|
|
154
|
-
for (let
|
|
155
|
-
|
|
152
|
+
for (const l of c)
|
|
153
|
+
l !== "" && p.push(l);
|
|
154
|
+
for (let l = 0; l < p.length; l++)
|
|
155
|
+
l === 0 ? d += (parseInt(p[l]) + 1).toString() : d += "0";
|
|
156
156
|
} else
|
|
157
|
-
|
|
157
|
+
r = i.toString(), d = i.toString();
|
|
158
158
|
return { amountList: [
|
|
159
159
|
u.toString(),
|
|
160
|
-
|
|
160
|
+
r,
|
|
161
161
|
d,
|
|
162
162
|
i.toString()
|
|
163
|
-
], minAmount: u, maxAmount:
|
|
164
|
-
},
|
|
163
|
+
], minAmount: u, maxAmount: o };
|
|
164
|
+
}, O = (e, t) => t ? {
|
|
165
165
|
id: 0,
|
|
166
166
|
name: "manualMethod",
|
|
167
167
|
type: g.manual,
|
|
168
168
|
promo: S(e.promo),
|
|
169
169
|
bank: e.bank.map((n) => {
|
|
170
|
-
const
|
|
171
|
-
Number(
|
|
170
|
+
const o = n.list && n.list.length > 0 ? n.list[0].mintransaction ?? "0.00" : "0.00", u = n.list && n.list.length > 0 ? n.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: i, minAmount: m, maxAmount: r } = _(
|
|
171
|
+
Number(o),
|
|
172
172
|
Number(u),
|
|
173
173
|
t.mdBankLevelDetail.deposit_min,
|
|
174
174
|
t.mdBankLevelDetail.deposit_max
|
|
@@ -182,108 +182,104 @@ const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
182
182
|
qrcode: n.list && n.list.length > 0 ? n.list[0].bankaccountdesc : "",
|
|
183
183
|
amountList: i,
|
|
184
184
|
min: m,
|
|
185
|
-
max:
|
|
185
|
+
max: r
|
|
186
186
|
};
|
|
187
187
|
}),
|
|
188
188
|
requiredField: {
|
|
189
189
|
...t.mdManualDepositRequireField,
|
|
190
190
|
uploadReceipt: t.mdUploadReceipt
|
|
191
191
|
}
|
|
192
|
-
} :
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
192
|
+
} : L, D = (e, t) => t ? {
|
|
193
|
+
id: 0,
|
|
194
|
+
name: "onlineBankingMethod",
|
|
195
|
+
type: g.pay,
|
|
196
|
+
promo: S(e.promo),
|
|
197
|
+
bank: e.banklist.map((n) => {
|
|
198
|
+
let o = "0.00", u = "0.00";
|
|
199
|
+
const i = n.bankindex ?? 0;
|
|
200
|
+
for (let c = 0; c < t.mdGatewayMinMax.length; c++)
|
|
201
|
+
t.mdGatewayMinMax[c].bankindex == i.toString() && (o = t.mdGatewayMinMax[c].min, u = t.mdGatewayMinMax[c].max);
|
|
202
|
+
const { amountList: m, minAmount: r, maxAmount: d } = _(
|
|
203
|
+
Number(o),
|
|
204
|
+
Number(u),
|
|
205
|
+
t.mdBankLevelDetail.onlinepayment_min,
|
|
206
|
+
t.mdBankLevelDetail.onlinepayment_max
|
|
207
|
+
), h = {
|
|
208
|
+
id: 0,
|
|
209
|
+
name: "autoChannel",
|
|
210
|
+
amountList: m,
|
|
211
|
+
min: r,
|
|
212
|
+
max: d
|
|
213
|
+
}, x = n.pg.map((c) => {
|
|
214
|
+
const p = c.mintransaction ?? "0.00", M = c.maxtransaction ?? "0.00", { amountList: P, minAmount: l, maxAmount: N } = _(
|
|
215
|
+
Number(p),
|
|
216
|
+
Number(M),
|
|
207
217
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
208
218
|
t.mdBankLevelDetail.onlinepayment_max
|
|
209
|
-
)
|
|
210
|
-
id: 0,
|
|
211
|
-
name: "autoChannel",
|
|
212
|
-
amountList: m,
|
|
213
|
-
min: l,
|
|
214
|
-
max: d
|
|
215
|
-
}, _ = n.pg.map((c) => {
|
|
216
|
-
const p = c.mintransaction ?? "0.00", L = c.maxtransaction ?? "0.00", { amountList: A, minAmount: r, maxAmount: R } = x(
|
|
217
|
-
Number(p),
|
|
218
|
-
Number(L),
|
|
219
|
-
t.mdBankLevelDetail.onlinepayment_min,
|
|
220
|
-
t.mdBankLevelDetail.onlinepayment_max
|
|
221
|
-
);
|
|
222
|
-
return {
|
|
223
|
-
id: c.pgindex,
|
|
224
|
-
name: c.bankaccountname,
|
|
225
|
-
amountList: A,
|
|
226
|
-
min: r,
|
|
227
|
-
max: R
|
|
228
|
-
};
|
|
229
|
-
});
|
|
219
|
+
);
|
|
230
220
|
return {
|
|
231
|
-
id:
|
|
232
|
-
name:
|
|
233
|
-
amountList:
|
|
234
|
-
min:
|
|
235
|
-
max:
|
|
236
|
-
gateway: [y, ..._]
|
|
221
|
+
id: c.pgindex,
|
|
222
|
+
name: c.bankaccountname,
|
|
223
|
+
amountList: P,
|
|
224
|
+
min: l,
|
|
225
|
+
max: N
|
|
237
226
|
};
|
|
238
|
-
})
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
227
|
+
});
|
|
228
|
+
return {
|
|
229
|
+
id: n.bankindex ?? 0,
|
|
230
|
+
name: n.banknameenglish ?? "",
|
|
231
|
+
amountList: [],
|
|
232
|
+
min: 0,
|
|
233
|
+
max: 0,
|
|
234
|
+
gateway: [h, ...x]
|
|
235
|
+
};
|
|
236
|
+
}),
|
|
237
|
+
requiredField: {
|
|
238
|
+
deposit_bank: !1,
|
|
239
|
+
deposit_datetime: !1,
|
|
240
|
+
deposit_detail: !1,
|
|
241
|
+
deposit_method: !1,
|
|
242
|
+
depositor: !1,
|
|
243
|
+
uploadReceipt: !1
|
|
244
|
+
}
|
|
245
|
+
} : L, B = (e, t, s) => {
|
|
246
|
+
if (!s) return L;
|
|
251
247
|
const a = g.auto;
|
|
252
248
|
let n = [];
|
|
253
|
-
const
|
|
254
|
-
if (t.bank.length > 0 &&
|
|
249
|
+
const o = s.mdGatewayMinMax;
|
|
250
|
+
if (t.bank.length > 0 && s.mdPGSelection == "1")
|
|
255
251
|
n = t.bank.map((i) => {
|
|
256
|
-
const { amountList: m, minAmount:
|
|
252
|
+
const { amountList: m, minAmount: r, maxAmount: d } = _(
|
|
257
253
|
i.minTransaction ?? 0,
|
|
258
254
|
i.maxTransaction ?? 0,
|
|
259
|
-
|
|
260
|
-
|
|
255
|
+
s.mdBankLevelDetail.onlinepayment_min,
|
|
256
|
+
s.mdBankLevelDetail.onlinepayment_max
|
|
261
257
|
);
|
|
262
258
|
return {
|
|
263
259
|
id: i.pgindex,
|
|
264
260
|
name: i.bankaccountname || "",
|
|
265
261
|
amountList: m,
|
|
266
|
-
min:
|
|
262
|
+
min: r,
|
|
267
263
|
max: d
|
|
268
264
|
};
|
|
269
265
|
});
|
|
270
266
|
else {
|
|
271
267
|
let i = "0.00", m = "0.00";
|
|
272
|
-
for (let f = 0; f <
|
|
273
|
-
|
|
274
|
-
const { amountList:
|
|
268
|
+
for (let f = 0; f < o.length; f++)
|
|
269
|
+
o[f].bankindex === e.toString() && (i = o[f].min, m = o[f].max);
|
|
270
|
+
const { amountList: r, minAmount: d, maxAmount: h } = _(
|
|
275
271
|
Number(i),
|
|
276
272
|
Number(m),
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
),
|
|
273
|
+
s.mdBankLevelDetail.onlinepayment_min,
|
|
274
|
+
s.mdBankLevelDetail.onlinepayment_max
|
|
275
|
+
), x = {
|
|
280
276
|
id: 0,
|
|
281
277
|
name: "autoChannel",
|
|
282
|
-
amountList:
|
|
278
|
+
amountList: r,
|
|
283
279
|
min: d,
|
|
284
|
-
max:
|
|
280
|
+
max: h
|
|
285
281
|
};
|
|
286
|
-
n.push(
|
|
282
|
+
n.push(x);
|
|
287
283
|
}
|
|
288
284
|
return {
|
|
289
285
|
id: e,
|
|
@@ -300,21 +296,21 @@ const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
300
296
|
uploadReceipt: !1
|
|
301
297
|
}
|
|
302
298
|
};
|
|
303
|
-
},
|
|
304
|
-
const
|
|
299
|
+
}, U = (e, t) => {
|
|
300
|
+
const s = g.fix;
|
|
305
301
|
return {
|
|
306
302
|
id: e,
|
|
307
303
|
name: "fixAmountMethod",
|
|
308
|
-
type:
|
|
304
|
+
type: s,
|
|
309
305
|
promo: S(t.promo),
|
|
310
306
|
bank: t.bank.map((n) => {
|
|
311
|
-
const
|
|
307
|
+
const o = n.amtlist.map(Number).sort((i, m) => i - m);
|
|
312
308
|
return {
|
|
313
309
|
id: n.pgindex,
|
|
314
310
|
name: n.name,
|
|
315
311
|
amountList: n.amtlist,
|
|
316
|
-
min:
|
|
317
|
-
max:
|
|
312
|
+
min: o.length > 0 ? o[0] : 0,
|
|
313
|
+
max: o.length > 0 ? o[o.length - 1] : 0
|
|
318
314
|
};
|
|
319
315
|
}),
|
|
320
316
|
requiredField: {
|
|
@@ -326,18 +322,44 @@ const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
326
322
|
uploadReceipt: !1
|
|
327
323
|
}
|
|
328
324
|
};
|
|
329
|
-
},
|
|
325
|
+
}, J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
330
326
|
__proto__: null,
|
|
331
|
-
getPaymentsProviderResponse:
|
|
332
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
327
|
+
getPaymentsProviderResponse: j
|
|
328
|
+
}, Symbol.toStringTag, { value: "Module" })), A = (e) => e.map((t) => ({
|
|
333
329
|
alert: t.announcement_alert == "1",
|
|
334
330
|
update_time: t.announcement_lastupdated,
|
|
335
331
|
content: t.announcement_simplified
|
|
336
|
-
})),
|
|
332
|
+
})), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
333
|
+
__proto__: null,
|
|
334
|
+
getAnnouncementResponse: A
|
|
335
|
+
}, Symbol.toStringTag, { value: "Module" })), q = (e) => ({
|
|
336
|
+
username: e.username,
|
|
337
|
+
birthday: e.mdUserDetail.dob,
|
|
338
|
+
email: e.mdUserDetail.email,
|
|
339
|
+
fullName: e.mdUserDetail.firstname,
|
|
340
|
+
phoneNumber: e.mdUserDetail.mobileno,
|
|
341
|
+
profilePicUrl: e.mdUserDetail.profile_pic
|
|
342
|
+
}), R = (e) => {
|
|
343
|
+
const t = e.mdDomains;
|
|
344
|
+
return e.mdGameListResult.map((s) => ({
|
|
345
|
+
code: s.code,
|
|
346
|
+
id: s.id,
|
|
347
|
+
name: s.name,
|
|
348
|
+
nextPage: s.nextPage === 1,
|
|
349
|
+
list: s.mdPlatformProducts.map((a) => {
|
|
350
|
+
const n = `${t[a.mdDomains_id]}/${a.img}?${a.filemtime}`;
|
|
351
|
+
return {
|
|
352
|
+
id: Number(a.id),
|
|
353
|
+
name: a.shortName,
|
|
354
|
+
imageUrl: n
|
|
355
|
+
};
|
|
356
|
+
})
|
|
357
|
+
}));
|
|
358
|
+
}, H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
337
359
|
__proto__: null,
|
|
338
|
-
|
|
339
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
340
|
-
var t,
|
|
360
|
+
getGameListResponse: R
|
|
361
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = async (e) => {
|
|
362
|
+
var t, s;
|
|
341
363
|
try {
|
|
342
364
|
const a = {
|
|
343
365
|
requests: e
|
|
@@ -346,33 +368,39 @@ const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
346
368
|
const n = await b.post(
|
|
347
369
|
"/jwt",
|
|
348
370
|
T(JSON.stringify(a))
|
|
349
|
-
),
|
|
371
|
+
), o = {
|
|
350
372
|
status: 200,
|
|
351
373
|
message: "",
|
|
352
374
|
result: {}
|
|
353
375
|
};
|
|
354
376
|
for (const u of n.data.responses) {
|
|
355
|
-
const i = v(u.attributes), m = u.name,
|
|
356
|
-
if (!
|
|
357
|
-
return
|
|
377
|
+
const i = v(u.attributes), m = u.name, r = i ? JSON.parse(i) : null;
|
|
378
|
+
if (!r)
|
|
379
|
+
return o.result[m] = null, o;
|
|
358
380
|
switch (m) {
|
|
359
|
-
case
|
|
360
|
-
|
|
381
|
+
case y.announcement:
|
|
382
|
+
o.result[m] = A(r);
|
|
383
|
+
break;
|
|
384
|
+
case y.gameList:
|
|
385
|
+
console.log(r), o.result[m] = R(r);
|
|
361
386
|
break;
|
|
362
|
-
case
|
|
363
|
-
|
|
387
|
+
case y.cmsList:
|
|
388
|
+
o.result[m] = r;
|
|
364
389
|
break;
|
|
365
|
-
case
|
|
366
|
-
|
|
390
|
+
case y.paymentsProvider: {
|
|
391
|
+
o.result[m] = j(r);
|
|
367
392
|
break;
|
|
368
393
|
}
|
|
394
|
+
case y.getUserProfile:
|
|
395
|
+
o.result[m] = q(r);
|
|
396
|
+
break;
|
|
369
397
|
}
|
|
370
398
|
}
|
|
371
|
-
return
|
|
399
|
+
return o;
|
|
372
400
|
} catch (a) {
|
|
373
|
-
return
|
|
401
|
+
return k.isAxiosError(a) ? (console.error(a), {
|
|
374
402
|
status: ((t = a.response) == null ? void 0 : t.status) || 500,
|
|
375
|
-
message: JSON.stringify((
|
|
403
|
+
message: JSON.stringify((s = a.response) == null ? void 0 : s.data),
|
|
376
404
|
result: {}
|
|
377
405
|
}) : (console.error(a), {
|
|
378
406
|
status: a.status || 500,
|
|
@@ -380,12 +408,12 @@ const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
380
408
|
result: {}
|
|
381
409
|
});
|
|
382
410
|
}
|
|
383
|
-
},
|
|
411
|
+
}, K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
384
412
|
__proto__: null,
|
|
385
|
-
post:
|
|
386
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
413
|
+
post: $
|
|
414
|
+
}, Symbol.toStringTag, { value: "Module" })), C = async (e, t) => {
|
|
387
415
|
try {
|
|
388
|
-
const
|
|
416
|
+
const s = {
|
|
389
417
|
status: 200,
|
|
390
418
|
message: ""
|
|
391
419
|
};
|
|
@@ -395,32 +423,36 @@ const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
395
423
|
usr: e,
|
|
396
424
|
pwd: t
|
|
397
425
|
})
|
|
398
|
-
),
|
|
399
|
-
} catch (
|
|
400
|
-
return console.error(`login: ${JSON.stringify(
|
|
401
|
-
status:
|
|
402
|
-
message:
|
|
426
|
+
), s;
|
|
427
|
+
} catch (s) {
|
|
428
|
+
return console.error(`login: ${JSON.stringify(s)}`), {
|
|
429
|
+
status: s.status || 500,
|
|
430
|
+
message: s.message
|
|
403
431
|
};
|
|
404
432
|
}
|
|
405
|
-
},
|
|
433
|
+
}, Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
406
434
|
__proto__: null,
|
|
407
|
-
login:
|
|
408
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
435
|
+
login: C
|
|
436
|
+
}, Symbol.toStringTag, { value: "Module" })), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
437
|
+
__proto__: null
|
|
438
|
+
}, Symbol.toStringTag, { value: "Module" })), W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
409
439
|
__proto__: null
|
|
410
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
440
|
+
}, Symbol.toStringTag, { value: "Module" })), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
411
441
|
__proto__: null
|
|
412
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
442
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = {
|
|
413
443
|
install() {
|
|
414
444
|
}
|
|
415
445
|
};
|
|
416
446
|
export {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
447
|
+
Y as Repository,
|
|
448
|
+
W as announcementType,
|
|
449
|
+
K as api,
|
|
450
|
+
E as apiType,
|
|
451
|
+
X as gameListType,
|
|
452
|
+
I as getAnnouncementResponse,
|
|
453
|
+
H as getGameListResponse,
|
|
454
|
+
J as getPaymentsProviderResponse,
|
|
455
|
+
Q as loginApi,
|
|
456
|
+
V as loginType,
|
|
457
|
+
F as paymentsProviderType
|
|
426
458
|
};
|
package/dist/60p82u21t54k.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(r,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],_):(r=typeof globalThis<"u"?globalThis:r||self,_(r["60p82u21t54k"]={},r.axios))})(this,function(r,_){"use strict";const S=_.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});S.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),S.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};return e.response?(t.status=e.response.status,t.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(t)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(t)});const N=e=>new TextEncoder().encode(e),v=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var y=(e=>(e.announcement="announcement",e.gameList="gameList",e.fishGameList="fishGameList",e.cmsList="cmsList",e.paymentsProvider="paymentsProvider",e.getUserProfile="getUserProfile",e))(y||{});const D=Object.freeze(Object.defineProperty({__proto__:null,Api:y},Symbol.toStringTag,{value:"Module"}));var f=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(f||{});const B=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:f},Symbol.toStringTag,{value:"Module"})),O=e=>e.mdPaymentChannels.map(t=>{const s=[];switch(t.name){case f.default:s.push(j(t.paymentmethod.manual,e));break;case f.pay:s.push(U(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&s.push(q(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let a=!1;for(let n=0;n<t.paymentmethod.manual.bank.length;n++){const o=t.paymentmethod.manual.bank[n];if(o.list&&o.list.length>0){a=!0;break}}a&&s.push(j(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&s.push($(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:s}}),P={id:0,name:"",type:f.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},L=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},s=e.map((a,n)=>({id:n+1,name:a.promodesc,value:a.promoindex.toString(),disabled:!1}));return[t,...s]},b=(e,t,s,a)=>{let n,o;s>0?n=e>0?Math.max(s,e):s:n=Math.max(e,0),a>0?o=t>0?Math.min(a,t):a:o=Math.max(t,0);const c=Math.round(n);let i=1e3;o<i&&(i=Math.round(o));const m=i-c;let l="",p="";if(m>0){let d=Math.round((i-c)*.25).toString().split(""),g=[];for(const u of d)u!==""&&g.push(u);for(let u=0;u<g.length;u++)u===0?l+=(parseInt(g[u])+1).toString():l+="0";d=Math.round((i-c)*.5).toString().split(""),g=[];for(const u of d)u!==""&&g.push(u);for(let u=0;u<g.length;u++)u===0?p+=(parseInt(g[u])+1).toString():p+="0"}else l=i.toString(),p=i.toString();return{amountList:[c.toString(),l,p,i.toString()],minAmount:c,maxAmount:o}},j=(e,t)=>t?{id:0,name:"manualMethod",type:f.manual,promo:L(e.promo),bank:e.bank.map(n=>{const o=n.list&&n.list.length>0?n.list[0].mintransaction??"0.00":"0.00",c=n.list&&n.list.length>0?n.list[0].maxtransaction??"0.00":"0.00",{amountList:i,minAmount:m,maxAmount:l}=b(Number(o),Number(c),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:n.bankindex??0,bankAccountId:n.list&&n.list.length>0?n.list[0].bankaccountindex??0:0,name:n.list&&n.list.length>0?n.list[0].label??"":"",accountName:n.list&&n.list.length>0?n.list[0].bankaccountname??"":"",accountNo:n.list&&n.list.length>0?n.list[0].bankaccountno??"":"",qrcode:n.list&&n.list.length>0?n.list[0].bankaccountdesc:"",amountList:i,min:m,max:l}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:P,U=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:f.pay,promo:L(e.promo),bank:e.banklist.map(n=>{let o="0.00",c="0.00";const i=n.bankindex??0;for(let d=0;d<t.mdGatewayMinMax.length;d++)t.mdGatewayMinMax[d].bankindex==i.toString()&&(o=t.mdGatewayMinMax[d].min,c=t.mdGatewayMinMax[d].max);const{amountList:m,minAmount:l,maxAmount:p}=b(Number(o),Number(c),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),x={id:0,name:"autoChannel",amountList:m,min:l,max:p},M=n.pg.map(d=>{const g=d.mintransaction??"0.00",T=d.maxtransaction??"0.00",{amountList:R,minAmount:u,maxAmount:V}=b(Number(g),Number(T),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:d.pgindex,name:d.bankaccountname,amountList:R,min:u,max:V}});return{id:n.bankindex??0,name:n.banknameenglish??"",amountList:[],min:0,max:0,gateway:[x,...M]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:P,q=(e,t,s)=>{if(!s)return P;const a=f.auto;let n=[];const o=s.mdGatewayMinMax;if(t.bank.length>0&&s.mdPGSelection=="1")n=t.bank.map(i=>{const{amountList:m,minAmount:l,maxAmount:p}=b(i.minTransaction??0,i.maxTransaction??0,s.mdBankLevelDetail.onlinepayment_min,s.mdBankLevelDetail.onlinepayment_max);return{id:i.pgindex,name:i.bankaccountname||"",amountList:m,min:l,max:p}});else{let i="0.00",m="0.00";for(let h=0;h<o.length;h++)o[h].bankindex===e.toString()&&(i=o[h].min,m=o[h].max);const{amountList:l,minAmount:p,maxAmount:x}=b(Number(i),Number(m),s.mdBankLevelDetail.onlinepayment_min,s.mdBankLevelDetail.onlinepayment_max),M={id:0,name:"autoChannel",amountList:l,min:p,max:x};n.push(M)}return{id:e,name:"autoMethod",type:a,promo:L(t.promo),bank:n,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},$=(e,t)=>{const s=f.fix;return{id:e,name:"fixAmountMethod",type:s,promo:L(t.promo),bank:t.bank.map(n=>{const o=n.amtlist.map(Number).sort((i,m)=>i-m);return{id:n.pgindex,name:n.name,amountList:n.amtlist,min:o.length>0?o[0]:0,max:o.length>0?o[o.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},C=Object.freeze(Object.defineProperty({__proto__:null,getPaymentsProviderResponse:O},Symbol.toStringTag,{value:"Module"})),k=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),G=Object.freeze(Object.defineProperty({__proto__:null,getAnnouncementResponse:k},Symbol.toStringTag,{value:"Module"})),z=e=>({username:e.username,birthday:e.mdUserDetail.dob,email:e.mdUserDetail.email,fullName:e.mdUserDetail.firstname,phoneNumber:e.mdUserDetail.mobileno,profilePicUrl:e.mdUserDetail.profile_pic}),A=e=>{const t=e.mdDomains;return e.mdGameListResult.map(s=>({code:s.code,id:s.id,name:s.name,nextPage:s.nextPage===1,list:s.mdPlatformProducts.map(a=>{const n=`${t[a.mdDomains_id]}/${a.img}?${a.filemtime}`;return{id:Number(a.id),name:a.shortName,imageUrl:n}})}))},E=Object.freeze(Object.defineProperty({__proto__:null,getGameListResponse:A},Symbol.toStringTag,{value:"Module"})),F=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,s;try{const a={requests:e};console.log(a);const n=await S.post("/jwt",N(JSON.stringify(a))),o={status:200,message:"",result:{}};for(const c of n.data.responses){const i=v(c.attributes),m=c.name,l=i?JSON.parse(i):null;if(!l)return o.result[m]=null,o;switch(m){case y.announcement:o.result[m]=k(l);break;case y.gameList:console.log(l),o.result[m]=A(l);break;case y.cmsList:o.result[m]=l;break;case y.paymentsProvider:{o.result[m]=O(l);break}case y.getUserProfile:o.result[m]=z(l);break}}return o}catch(a){return _.isAxiosError(a)?(console.error(a),{status:((t=a.response)==null?void 0:t.status)||500,message:JSON.stringify((s=a.response)==null?void 0:s.data),result:{}}):(console.error(a),{status:a.status||500,message:a.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null,login:async(e,t)=>{try{const s={status:200,message:""};return await S.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),s}catch(s){return console.error(`login: ${JSON.stringify(s)}`),{status:s.status||500,message:s.message}}}},Symbol.toStringTag,{value:"Module"})),I=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q={install(){}};r.Repository=Q,r.announcementType=H,r.api=F,r.apiType=D,r.gameListType=K,r.getAnnouncementResponse=G,r.getGameListResponse=E,r.getPaymentsProviderResponse=C,r.loginApi=J,r.loginType=I,r.paymentsProviderType=B,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
package/dist/api/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAkEnB,CAAA"}
|
package/dist/api/type.d.ts
CHANGED
|
@@ -3,13 +3,15 @@ import { CmsListResponse } from '../model/cms/type';
|
|
|
3
3
|
import { PaymentsProviderResponse } from '../model/deposit/type';
|
|
4
4
|
import { FishGameListResponse } from '../model/fishGameList/type';
|
|
5
5
|
import { GameListResponse } from '../model/gameList/type';
|
|
6
|
+
import { GetUserProfileResponse } from '../model/userProfile/type';
|
|
6
7
|
|
|
7
8
|
export declare enum Api {
|
|
8
9
|
announcement = "announcement",
|
|
9
10
|
gameList = "gameList",
|
|
10
11
|
fishGameList = "fishGameList",
|
|
11
12
|
cmsList = "cmsList",
|
|
12
|
-
paymentsProvider = "paymentsProvider"
|
|
13
|
+
paymentsProvider = "paymentsProvider",
|
|
14
|
+
getUserProfile = "getUserProfile"
|
|
13
15
|
}
|
|
14
16
|
export type ApiResponseMap = {
|
|
15
17
|
[Api.announcement]: AnnouncementResponse;
|
|
@@ -17,6 +19,7 @@ export type ApiResponseMap = {
|
|
|
17
19
|
[Api.fishGameList]: FishGameListResponse;
|
|
18
20
|
[Api.cmsList]: CmsListResponse;
|
|
19
21
|
[Api.paymentsProvider]: PaymentsProviderResponse;
|
|
22
|
+
[Api.getUserProfile]: GetUserProfileResponse;
|
|
20
23
|
};
|
|
21
24
|
export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
|
|
22
25
|
export type RequestPayload<T extends keyof ApiResponseMap> = {
|
package/dist/api/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/api/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/api/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,oBAAY,GAAG;IACb,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;CAClC;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACxC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAChC,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACxC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;IAC9B,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAA;IAChD,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,sBAAsB,CAAA;CAC7C,CAAA;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAE3E,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC3D,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;KACrD,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;CACnC,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,9 @@ import * as getAnnouncementResponse from './model/announcement/getAnnouncementRe
|
|
|
6
6
|
import * as announcementType from './model/announcement/type';
|
|
7
7
|
import * as getPaymentsProviderResponse from './model/deposit/getPaymentsProviderResponse';
|
|
8
8
|
import * as paymentsProviderType from './model/deposit/type';
|
|
9
|
-
|
|
9
|
+
import * as getGameListResponse from './model/gameList/getGameListResponse';
|
|
10
|
+
import * as gameListType from './model/gameList/type';
|
|
11
|
+
export { api, loginApi, apiType, loginType, getAnnouncementResponse, announcementType, getPaymentsProviderResponse, paymentsProviderType, getGameListResponse, gameListType, };
|
|
10
12
|
export type RepositoryType = {
|
|
11
13
|
api: typeof api;
|
|
12
14
|
loginApi: typeof loginApi;
|
|
@@ -16,6 +18,8 @@ export type RepositoryType = {
|
|
|
16
18
|
announcementType: typeof announcementType;
|
|
17
19
|
getPaymentsProviderResponse: typeof getPaymentsProviderResponse;
|
|
18
20
|
paymentsProviderType: typeof paymentsProviderType;
|
|
21
|
+
getGameListResponse: typeof getGameListResponse;
|
|
22
|
+
gameListType: typeof gameListType;
|
|
19
23
|
};
|
|
20
24
|
export { default as Repository } from './plugin';
|
|
21
25
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,WAAW,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,uBAAuB,MAAM,8CAA8C,CAAA;AACvF,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,2BAA2B,MAAM,6CAA6C,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,WAAW,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,uBAAuB,MAAM,8CAA8C,CAAA;AACvF,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,2BAA2B,MAAM,6CAA6C,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,mBAAmB,MAAM,sCAAsC,CAAA;AAC3E,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAA;AAErD,OAAO,EACL,GAAG,EACH,QAAQ,EACR,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,GACb,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,OAAO,GAAG,CAAA;IACf,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,OAAO,EAAE,OAAO,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,uBAAuB,EAAE,OAAO,uBAAuB,CAAA;IACvD,gBAAgB,EAAE,OAAO,gBAAgB,CAAA;IACzC,2BAA2B,EAAE,OAAO,2BAA2B,CAAA;IAC/D,oBAAoB,EAAE,OAAO,oBAAoB,CAAA;IACjD,mBAAmB,EAAE,OAAO,mBAAmB,CAAA;IAC/C,YAAY,EAAE,OAAO,YAAY,CAAA;CAClC,CAAA;AAED,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/main.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGameListResponse.d.ts","sourceRoot":"","sources":["../../../src/model/gameList/getGameListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,mBAAmB,QAAS,mBAAmB,KAAG,gBAkB9D,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type RawGameListResponse = {
|
|
2
|
+
mdGameListResult: RawProduct[];
|
|
3
|
+
mdCategoryMaster: RawCategoryMaster[];
|
|
4
|
+
mdDomains: string[];
|
|
5
|
+
mdGameLists: RawGame[];
|
|
6
|
+
};
|
|
7
|
+
export type RawProduct = {
|
|
8
|
+
id: number;
|
|
9
|
+
code: string;
|
|
10
|
+
name: string;
|
|
11
|
+
nextPage: number;
|
|
12
|
+
mdPlatformProducts: RawPlatform[];
|
|
13
|
+
};
|
|
14
|
+
export type RawCategoryMaster = {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
export type RawGame = {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
img: string;
|
|
22
|
+
id_PlatformProduct: string;
|
|
23
|
+
filemtime: string;
|
|
24
|
+
mdDomains_id: number;
|
|
25
|
+
};
|
|
26
|
+
export type RawPlatform = {
|
|
27
|
+
id: string;
|
|
28
|
+
shortName: string;
|
|
29
|
+
code: string;
|
|
30
|
+
flag: number;
|
|
31
|
+
id_GameMaster: string;
|
|
32
|
+
d_filemtime: string;
|
|
33
|
+
filemtime: string;
|
|
34
|
+
d_img: string;
|
|
35
|
+
img: string;
|
|
36
|
+
mdDomains_id: number;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=rawType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rawType.d.ts","sourceRoot":"","sources":["../../../src/model/gameList/rawType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB,EAAE,UAAU,EAAE,CAAA;IAC9B,gBAAgB,EAAE,iBAAiB,EAAE,CAAA;IACrC,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,WAAW,EAAE,OAAO,EAAE,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,kBAAkB,EAAE,WAAW,EAAE,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA"}
|
|
@@ -1,48 +1,14 @@
|
|
|
1
|
-
export type RawGameListResponse = {
|
|
2
|
-
mdGameListResult: RawProduct[];
|
|
3
|
-
mdCategoryMaster: RawCategoryMaster[];
|
|
4
|
-
mdDomains: string[];
|
|
5
|
-
mdGameLists: RawGame[];
|
|
6
|
-
};
|
|
7
|
-
export type RawProduct = {
|
|
8
|
-
id: number;
|
|
9
|
-
code: string;
|
|
10
|
-
name: string;
|
|
11
|
-
nextPage: number;
|
|
12
|
-
mdPlatformProducts: RawPlatform[];
|
|
13
|
-
};
|
|
14
|
-
export type RawCategoryMaster = {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
};
|
|
18
|
-
export type RawGame = {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
img: string;
|
|
22
|
-
id_PlatformProduct: string;
|
|
23
|
-
filemtime: string;
|
|
24
|
-
mdDomains_id: number;
|
|
25
|
-
};
|
|
26
|
-
export type RawPlatform = {
|
|
27
|
-
id: string;
|
|
28
|
-
shortName: string;
|
|
29
|
-
code: string;
|
|
30
|
-
flag: number;
|
|
31
|
-
id_GameMaster: string;
|
|
32
|
-
d_filemtime: string;
|
|
33
|
-
d_img: string;
|
|
34
|
-
mdDomains_id: number;
|
|
35
|
-
};
|
|
36
1
|
export type GameListResponse = Product[];
|
|
37
2
|
export type Product = {
|
|
38
3
|
code: string;
|
|
39
4
|
id: number;
|
|
40
5
|
name: string;
|
|
41
6
|
nextPage: boolean;
|
|
7
|
+
list: Platform[];
|
|
42
8
|
};
|
|
43
9
|
export type Platform = {
|
|
44
10
|
id: number;
|
|
45
11
|
name: string;
|
|
46
|
-
|
|
12
|
+
imageUrl: string;
|
|
47
13
|
};
|
|
48
14
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/gameList/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/gameList/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,OAAO,EAAE,CAAA;AAExC,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserProfileResponse.d.ts","sourceRoot":"","sources":["../../../src/model/userProfile/getUserProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAA;AAE/C,eAAO,MAAM,sBAAsB,QAC5B,yBAAyB,KAC7B,sBASF,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type RawGetUserProfileResponse = {
|
|
2
|
+
mdUserDetail: {
|
|
3
|
+
dob: string;
|
|
4
|
+
email: string;
|
|
5
|
+
firstname: string;
|
|
6
|
+
isVerify: string;
|
|
7
|
+
mobileno: string;
|
|
8
|
+
profile_pic: string;
|
|
9
|
+
qq: string;
|
|
10
|
+
unlock_app_function: string;
|
|
11
|
+
viber: string | null;
|
|
12
|
+
wechat: string;
|
|
13
|
+
whatsapp: string;
|
|
14
|
+
};
|
|
15
|
+
note: string;
|
|
16
|
+
username: string;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=rawType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rawType.d.ts","sourceRoot":"","sources":["../../../src/model/userProfile/rawType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,EAAE;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,EAAE,MAAM,CAAA;QAChB,WAAW,EAAE,MAAM,CAAA;QACnB,EAAE,EAAE,MAAM,CAAA;QACV,mBAAmB,EAAE,MAAM,CAAA;QAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;QACpB,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/userProfile/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA"}
|