@jetthai/cuora 1.1.287-dev-4 → 1.1.287

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,14 +2,6 @@
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.287-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.287-dev-3...v1.1.287-dev-4) (2024-07-15)
6
-
7
- ### [1.1.287-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.287-dev-2...v1.1.287-dev-3) (2024-07-11)
8
-
9
- ### [1.1.287-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.287-dev-1...v1.1.287-dev-2) (2024-07-11)
10
-
11
- ### [1.1.287-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.287...v1.1.287-dev-1) (2024-07-10)
12
-
13
5
  ### [1.1.287](https://github.com/jetthai/cuora-module/compare/v1.1.286...v1.1.287) (2024-07-09)
14
6
 
15
7
  ### [1.1.286](https://github.com/jetthai/cuora-module/compare/v1.1.285...v1.1.286) (2024-07-01)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.287-dev-4",
3
+ "version": "1.1.287",
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
@@ -101,7 +101,7 @@ export default function (request) {
101
101
  }),
102
102
  setResult: assign((context, event) => {
103
103
  const { resultMap, selectedCrypto } = context
104
- const { action, cdtime, accountNumber, currency, network, name, qrcode, redirect } = event.data
104
+ const { action, cdtime, accountNumber, currency, network, name, qrcode } = event.data
105
105
  const result = {
106
106
  action,
107
107
  cdtime,
@@ -110,7 +110,6 @@ export default function (request) {
110
110
  network,
111
111
  name,
112
112
  qrcode,
113
- redirect,
114
113
  }
115
114
 
116
115
  return {
@@ -93,8 +93,8 @@ export default function (request) {
93
93
  }),
94
94
  setResult: assign((context, event) => {
95
95
  const { resultMap, selectedCrypto } = context
96
- const { accountNumber, action, currency, network, qrcode, forexRate, redirect } = event.data
97
- const result = { accountNumber, action, currency, network, qrcode, forexRate, redirect }
96
+ const { accountNumber, currency, network, qrcode, forexRate } = event.data
97
+ const result = { accountNumber, currency, network, qrcode, forexRate }
98
98
 
99
99
  return {
100
100
  result,
@@ -44,7 +44,6 @@ export default function (request) {
44
44
  gameURL: null,
45
45
  gameToken: null,
46
46
  gameHtml: null,
47
- switchGame: null,
48
47
  ...oldContext,
49
48
  },
50
49
  states: {
@@ -75,9 +74,6 @@ export default function (request) {
75
74
  target: 'connecting',
76
75
  actions: ['setGameInfo', 'setLang'],
77
76
  },
78
- UPDATE: {
79
- target: 'updating',
80
- },
81
77
  },
82
78
  },
83
79
  batchFetching: {
@@ -117,18 +113,6 @@ export default function (request) {
117
113
  { target: 'idle' },
118
114
  ],
119
115
  },
120
- updating: {
121
- invoke: {
122
- src: 'updatePageContent',
123
- onDone: {
124
- target: 'idle',
125
- actions: 'swapContent',
126
- },
127
- onError: {
128
- target: 'idle',
129
- },
130
- },
131
- },
132
116
  connecting: {
133
117
  invoke: {
134
118
  src: 'connectGame',
@@ -145,32 +129,6 @@ export default function (request) {
145
129
  EXIT_GAME: {
146
130
  target: 'disconnect',
147
131
  },
148
- ENTER_GAME: {
149
- target: 'connectSwitching',
150
- actions: ['setSwitch', 'setLang'],
151
- },
152
- },
153
- },
154
- connectSwitching: {
155
- invoke: {
156
- src: 'disconnectGame',
157
- onDone: {
158
- target: 'connecting',
159
- actions: ['setSwitchGameInfo', 'setGameURL'],
160
- },
161
- onError: {
162
- target: 'idle',
163
- actions: ['setSwitchGameInfo', 'setGameURL'],
164
- },
165
- },
166
- on: {
167
- EXIT_GAME: {
168
- target: 'disconnect',
169
- },
170
- ENTER_GAME: {
171
- target: 'connectSwitching',
172
- actions: ['setSwitch', 'setLang'],
173
- },
174
132
  },
175
133
  },
176
134
  playing: {
@@ -181,10 +139,6 @@ export default function (request) {
181
139
  REFRESH: {
182
140
  target: 'refreshing',
183
141
  },
184
- ENTER_GAME: {
185
- target: 'connectSwitching',
186
- actions: ['setSwitch', 'setLang'],
187
- },
188
142
  },
189
143
  },
190
144
  refreshing: {
@@ -361,7 +315,7 @@ export default function (request) {
361
315
  if (room.categoryId === GAME_SEARCH) {
362
316
  return
363
317
  } else if (additionEnable) {
364
- const [content, addition = {}] = event.data
318
+ const [content, addition] = event.data
365
319
  return {
366
320
  content: {
367
321
  ...context.content,
@@ -418,13 +372,6 @@ export default function (request) {
418
372
  clearGameInfo: assign((context, event) => {
419
373
  return { game: { providerId: null, gameId: null, gameTypeId: null, mappingId: null } }
420
374
  }),
421
- setSwitch: assign((context, event) => {
422
- return { switchGame: event.data.game }
423
- }),
424
- setSwitchGameInfo: assign((context, event) => {
425
- const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name } = context.switchGame
426
- return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name } }
427
- }),
428
375
  setGameInfo: assign((context, event) => {
429
376
  const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name } = event.data.game
430
377
  return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name } }