@jetthai/cuora 1.1.286-dev3 → 1.1.287-dev-1

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/CHANGELOG.md CHANGED
@@ -2,11 +2,9 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [1.1.286-dev3](https://github.com/jetthai/cuora-module/compare/v1.1.286-dev2...v1.1.286-dev3) (2024-07-05)
5
+ ### [1.1.287-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.287...v1.1.287-dev-1) (2024-07-10)
6
6
 
7
- ### [1.1.286-dev2](https://github.com/jetthai/cuora-module/compare/v1.1.286...v1.1.286-dev2) (2024-07-01)
8
-
9
- ### [1.1.286-dev1](https://github.com/jetthai/cuora-module/compare/v1.1.286...v1.1.286-dev1) (2024-07-01)
7
+ ### [1.1.287](https://github.com/jetthai/cuora-module/compare/v1.1.286...v1.1.287) (2024-07-09)
10
8
 
11
9
  ### [1.1.286](https://github.com/jetthai/cuora-module/compare/v1.1.285...v1.1.286) (2024-07-01)
12
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.286-dev3",
3
+ "version": "1.1.287-dev-1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -6,12 +6,6 @@ export default {
6
6
  params: { appSecret, include },
7
7
  isPublic: true,
8
8
  }),
9
- getJackpotList: ({ appSecret }) => ({
10
- url: 'activities/jackpot/list',
11
- method: 'get',
12
- params: { appSecret },
13
- isPublic: true,
14
- }),
15
9
  getTournamentDetail: ({ activityNo, appSecret }) => ({
16
10
  url: 'tournament/detail',
17
11
  method: 'get',
@@ -14,7 +14,6 @@ export default function (request) {
14
14
  activitiesDetailList: [],
15
15
  activityList: [],
16
16
  promotionList: [],
17
- jackpotList: [],
18
17
  activityMap: {},
19
18
  tournamentList: [],
20
19
  refs: {},
@@ -35,7 +34,7 @@ export default function (request) {
35
34
  src: 'fetchList',
36
35
  onDone: {
37
36
  target: 'idle',
38
- actions: ['setActivityList', 'setTournamentList', 'setPromotionList', 'setJackpotList'],
37
+ actions: ['setActivityList', 'setTournamentList', 'setPromotionList'],
39
38
  },
40
39
  onError: {
41
40
  target: 'idle',
@@ -124,12 +123,6 @@ export default function (request) {
124
123
  promotionList,
125
124
  }
126
125
  }),
127
- setJackpotList: assign((context, event) => {
128
- const { jackpotList } = event.data
129
- return {
130
- jackpotList,
131
- }
132
- }),
133
126
  setActivitiesDetailList: assign((context, event) => {
134
127
  return {
135
128
  activitiesDetailList: event.data.map((item) => item.data),
@@ -169,13 +162,12 @@ export default function (request) {
169
162
  const hasToken = request.getToken()
170
163
  const isDoubleWallet = context.siteConfig?.walletMode === '4'
171
164
  const apiCallable = hasToken && isDoubleWallet
172
- const [{ data }, promotionList, jackpotList] = await Promise.all([
165
+ const [{ data }, promotionList] = await Promise.all([
173
166
  request.send(activity.getActivityList({ appSecret })),
174
167
  apiCallable ? request.send(payment.getPromotionsList()) : [],
175
- request.send(activity.getJackpotList({ appSecret })),
176
168
  ])
177
169
 
178
- return { activityList: data, promotionList, jackpotList: jackpotList.data }
170
+ return { activityList: data, promotionList }
179
171
  },
180
172
  fetchActivitiesDetail: async (context, event) => {
181
173
  await new Promise((resolve) => setTimeout(resolve, 1000)) // delay 1 second
@@ -13,7 +13,6 @@ export default function (request) {
13
13
  activityList: [],
14
14
  tournamentList: [],
15
15
  promotionList: [],
16
- jackpotList: [],
17
16
  uidSite: '',
18
17
  detailNeededActivityTypes: [29, 34],
19
18
  activityDetailList: [],
@@ -24,7 +23,7 @@ export default function (request) {
24
23
  src: 'fetchList',
25
24
  onDone: {
26
25
  target: 'checking',
27
- actions: ['setActivityList', 'setTournamentList', 'setPromotionList', 'setJackpotList'],
26
+ actions: ['setActivityList', 'setTournamentList', 'setPromotionList'],
28
27
  },
29
28
  onError: {
30
29
  target: 'pending',
@@ -97,12 +96,6 @@ export default function (request) {
97
96
  promotionList,
98
97
  }
99
98
  }),
100
- setJackpotList: assign((context, event) => {
101
- const { jackpotList } = event.data
102
- return {
103
- jackpotList,
104
- }
105
- }),
106
99
  setUnread: assign((context, event) => {
107
100
  const { uidSite, activityNo, unread } = event.data
108
101
  const list = JSON.parse(JSON.stringify(context.activityList))
@@ -139,13 +132,12 @@ export default function (request) {
139
132
  services: {
140
133
  fetchList: async (context, event) => {
141
134
  const hasToken = request.getToken()
142
- const [{ data }, promotionList, jackpotList] = await Promise.all([
135
+ const [{ data }, promotionList] = await Promise.all([
143
136
  request.send(activity.getActivityList({ appSecret })),
144
137
  hasToken ? request.send(payment.getPromotionsList()) : [],
145
- request.send(activity.getJackpotList({ appSecret })),
146
138
  ])
147
139
 
148
- return { activityList: data, promotionList, jackpotList: jackpotList.data }
140
+ return { activityList: data, promotionList }
149
141
  },
150
142
  fetchActivityDetailList: async (context, event) => {
151
143
  await new Promise((resolve) => setTimeout(resolve, 1000)) // delay 1 second
@@ -74,9 +74,6 @@ export default function (request) {
74
74
  target: 'connecting',
75
75
  actions: ['setGameInfo', 'setLang'],
76
76
  },
77
- UPDATE: {
78
- target: 'updating',
79
- },
80
77
  },
81
78
  },
82
79
  batchFetching: {
@@ -116,18 +113,6 @@ export default function (request) {
116
113
  { target: 'idle' },
117
114
  ],
118
115
  },
119
- updating: {
120
- invoke: {
121
- src: 'updatePageContent',
122
- onDone: {
123
- target: 'idle',
124
- actions: 'swapContent',
125
- },
126
- onError: {
127
- target: 'idle',
128
- },
129
- },
130
- },
131
116
  connecting: {
132
117
  invoke: {
133
118
  src: 'connectGame',
@@ -330,7 +315,7 @@ export default function (request) {
330
315
  if (room.categoryId === GAME_SEARCH) {
331
316
  return
332
317
  } else if (additionEnable) {
333
- const [content, addition = {}] = event.data
318
+ const [content, addition] = event.data
334
319
  return {
335
320
  content: {
336
321
  ...context.content,