@opexa/portal-sdk 0.0.26 → 0.0.27
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 +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -6
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +8 -1
- package/dist/services/types.d.ts +2 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -534,7 +534,6 @@ const x = n`
|
|
|
534
534
|
latestBetRecords {
|
|
535
535
|
id
|
|
536
536
|
member {
|
|
537
|
-
id
|
|
538
537
|
name
|
|
539
538
|
}
|
|
540
539
|
game {
|
|
@@ -1554,7 +1553,7 @@ class bt {
|
|
|
1554
1553
|
node: M,
|
|
1555
1554
|
cursor: M.cursor
|
|
1556
1555
|
})),
|
|
1557
|
-
totalCount: a.data.totalCount,
|
|
1556
|
+
totalCount: a.data.totalCount ?? 0,
|
|
1558
1557
|
pageInfo: {
|
|
1559
1558
|
hasNextPage: !!a.data.next,
|
|
1560
1559
|
endCursor: a.data.next
|
|
@@ -3072,13 +3071,27 @@ class Rt {
|
|
|
3072
3071
|
/*+----------------------------------------+*/
|
|
3073
3072
|
/**/
|
|
3074
3073
|
async betRecords(e) {
|
|
3075
|
-
|
|
3074
|
+
var a, r;
|
|
3075
|
+
const t = await this.reportService.betRecords({
|
|
3076
|
+
...e,
|
|
3077
|
+
...(e == null ? void 0 : e.filter) && {
|
|
3078
|
+
filter: {
|
|
3079
|
+
...e.filter,
|
|
3080
|
+
...((a = e.filter) == null ? void 0 : a.gameType) && {
|
|
3081
|
+
game__type: e.filter.gameType
|
|
3082
|
+
},
|
|
3083
|
+
...((r = e.filter) == null ? void 0 : r.gameProvider) && {
|
|
3084
|
+
game__provider: e.filter.gameProvider
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
});
|
|
3076
3089
|
return t.ok ? {
|
|
3077
3090
|
ok: !0,
|
|
3078
3091
|
data: {
|
|
3079
|
-
betRecords: t.data.edges.map(({ cursor:
|
|
3080
|
-
...this.transformer.transform.betRecord(
|
|
3081
|
-
cursor:
|
|
3092
|
+
betRecords: t.data.edges.map(({ cursor: s, node: c }) => ({
|
|
3093
|
+
...this.transformer.transform.betRecord(c),
|
|
3094
|
+
cursor: s
|
|
3082
3095
|
})),
|
|
3083
3096
|
totalCount: t.data.totalCount,
|
|
3084
3097
|
endCursor: t.data.pageInfo.endCursor ?? void 0,
|