@opexa/portal-sdk 0.59.71 → 0.59.73
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/{chunk-YZWPC2FD.js → chunk-2KACCSX3.js} +108 -2
- package/dist/chunk-2KACCSX3.js.map +1 -0
- package/dist/index.cjs +264 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +159 -89
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +106 -0
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +8 -3
- package/dist/services/index.d.ts +8 -3
- package/dist/services/index.js +1 -1
- package/dist/{types-CEPxVuIs.d.ts → types-C2Mdipgs.d.ts} +41 -1
- package/dist/{types-FjtMTuKB.d.cts → types-DXuCcBxY.d.cts} +41 -1
- package/package.json +1 -1
- package/dist/chunk-YZWPC2FD.js.map +0 -1
|
@@ -55,6 +55,14 @@ var MEMBER_WALLET_ACCOUNT_QUERY = gql`
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
`;
|
|
58
|
+
var MEMBER_LEVEL_HISTORY_QUERY = gql`
|
|
59
|
+
query MemberLevelHistory {
|
|
60
|
+
self {
|
|
61
|
+
id
|
|
62
|
+
memberLevelHistory
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
58
66
|
var POINTS_WALLET_QUERY = gql`
|
|
59
67
|
query PointsWallet {
|
|
60
68
|
pointsWallet {
|
|
@@ -3308,6 +3316,30 @@ var FAVORITE_GAMES_QUERY = gql`
|
|
|
3308
3316
|
}
|
|
3309
3317
|
}
|
|
3310
3318
|
`;
|
|
3319
|
+
var FAVORITE_GAMES_QUERY__NEXT = gql`
|
|
3320
|
+
query FavoriteGames {
|
|
3321
|
+
favoriteGames {
|
|
3322
|
+
id
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
`;
|
|
3326
|
+
var RECENT_GAMES_QUERY = gql`
|
|
3327
|
+
query RecentGames {
|
|
3328
|
+
recentGames {
|
|
3329
|
+
id
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
`;
|
|
3333
|
+
var ADD_FAVORITE_GAME_MUTATION = gql`
|
|
3334
|
+
mutation AddFavoriteGame($game: ObjectId!) {
|
|
3335
|
+
addFavoriteGame(input: { game: $game })
|
|
3336
|
+
}
|
|
3337
|
+
`;
|
|
3338
|
+
var REMOVE_FAVORITE_GAME_MUTATION = gql`
|
|
3339
|
+
mutation RemoveFavoriteGame($game: ObjectId!) {
|
|
3340
|
+
removeFavoriteGame(input: { game: $game })
|
|
3341
|
+
}
|
|
3342
|
+
`;
|
|
3311
3343
|
var WALLET_GAMES_QUERY = gql`
|
|
3312
3344
|
query Games($first: Int $after: Cursor, $filter: GameFilterInput) {
|
|
3313
3345
|
games(first: $first, after: $after, filter: $filter) {
|
|
@@ -5016,6 +5048,74 @@ var PortalService = class {
|
|
|
5016
5048
|
data: res.data.recommendedGames
|
|
5017
5049
|
};
|
|
5018
5050
|
}
|
|
5051
|
+
async favoriteGames() {
|
|
5052
|
+
const res = await this.client.request(
|
|
5053
|
+
FAVORITE_GAMES_QUERY__NEXT
|
|
5054
|
+
);
|
|
5055
|
+
if (!res.ok) return res;
|
|
5056
|
+
if (!res.data.favoriteGames) {
|
|
5057
|
+
return {
|
|
5058
|
+
ok: false,
|
|
5059
|
+
error: {
|
|
5060
|
+
name: "UnknownError",
|
|
5061
|
+
message: "Something went wrong."
|
|
5062
|
+
}
|
|
5063
|
+
};
|
|
5064
|
+
}
|
|
5065
|
+
return {
|
|
5066
|
+
ok: true,
|
|
5067
|
+
data: res.data.favoriteGames
|
|
5068
|
+
};
|
|
5069
|
+
}
|
|
5070
|
+
async recentGames() {
|
|
5071
|
+
const res = await this.client.request(RECENT_GAMES_QUERY);
|
|
5072
|
+
if (!res.ok) return res;
|
|
5073
|
+
if (!res.data.recentGames) {
|
|
5074
|
+
return {
|
|
5075
|
+
ok: false,
|
|
5076
|
+
error: {
|
|
5077
|
+
name: "UnknownError",
|
|
5078
|
+
message: "Something went wrong."
|
|
5079
|
+
}
|
|
5080
|
+
};
|
|
5081
|
+
}
|
|
5082
|
+
return {
|
|
5083
|
+
ok: true,
|
|
5084
|
+
data: res.data.recentGames
|
|
5085
|
+
};
|
|
5086
|
+
}
|
|
5087
|
+
async addFavoriteGame(variables) {
|
|
5088
|
+
const res = await this.client.request(ADD_FAVORITE_GAME_MUTATION, variables);
|
|
5089
|
+
if (!res.ok) return res;
|
|
5090
|
+
if (!res.data.addFavoriteGame) {
|
|
5091
|
+
return {
|
|
5092
|
+
ok: false,
|
|
5093
|
+
error: {
|
|
5094
|
+
name: "UnknownError",
|
|
5095
|
+
message: "Something went wrong."
|
|
5096
|
+
}
|
|
5097
|
+
};
|
|
5098
|
+
}
|
|
5099
|
+
return {
|
|
5100
|
+
ok: true
|
|
5101
|
+
};
|
|
5102
|
+
}
|
|
5103
|
+
async removeFavoriteGame(variables) {
|
|
5104
|
+
const res = await this.client.request(REMOVE_FAVORITE_GAME_MUTATION, variables);
|
|
5105
|
+
if (!res.ok) return res;
|
|
5106
|
+
if (!res.data.removeFavoriteGame) {
|
|
5107
|
+
return {
|
|
5108
|
+
ok: false,
|
|
5109
|
+
error: {
|
|
5110
|
+
name: "UnknownError",
|
|
5111
|
+
message: "Something went wrong."
|
|
5112
|
+
}
|
|
5113
|
+
};
|
|
5114
|
+
}
|
|
5115
|
+
return {
|
|
5116
|
+
ok: true
|
|
5117
|
+
};
|
|
5118
|
+
}
|
|
5019
5119
|
async onboardingStatus() {
|
|
5020
5120
|
const res = await this.client.request(
|
|
5021
5121
|
ONBOARDING_STATUS_QUERY
|
|
@@ -5500,6 +5600,12 @@ var WalletService = class {
|
|
|
5500
5600
|
);
|
|
5501
5601
|
return res.ok ? { ok: res.ok, data: res.data.self } : res;
|
|
5502
5602
|
}
|
|
5603
|
+
async memberLevelHistory() {
|
|
5604
|
+
const res = await this.client.request(
|
|
5605
|
+
MEMBER_LEVEL_HISTORY_QUERY
|
|
5606
|
+
);
|
|
5607
|
+
return res.ok ? { ok: res.ok, data: res.data.self } : res;
|
|
5608
|
+
}
|
|
5503
5609
|
async deposit(variables) {
|
|
5504
5610
|
const res = await this.client.request(
|
|
5505
5611
|
DEPOSIT_QUERY,
|
|
@@ -6365,5 +6471,5 @@ var ExtensionService = class {
|
|
|
6365
6471
|
};
|
|
6366
6472
|
|
|
6367
6473
|
export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint };
|
|
6368
|
-
//# sourceMappingURL=chunk-
|
|
6369
|
-
//# sourceMappingURL=chunk-
|
|
6474
|
+
//# sourceMappingURL=chunk-2KACCSX3.js.map
|
|
6475
|
+
//# sourceMappingURL=chunk-2KACCSX3.js.map
|