@jetthai/cuora 1.1.277-dev-2 → 1.1.277

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,42 +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.277-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.277-dev-1...v1.1.277-dev-2) (2024-06-04)
6
-
7
- ### [1.1.270-fix-2](https://github.com/jetthai/cuora-module/compare/v1.1.277-dev...v1.1.270-fix-2) (2024-06-03)
8
-
9
- ### [1.1.277-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.277-dev...v1.1.277-dev-1) (2024-06-04)
10
-
11
- ### [1.1.272-jackpot-1](https://github.com/jetthai/cuora-module/compare/v1.1.272...v1.1.272-jackpot-1) (2024-05-23)
12
-
13
- ### [1.1.277-dev](https://github.com/jetthai/cuora-module/compare/v1.1.270-fix-1...v1.1.277-dev) (2024-06-03)
14
-
15
- ### [1.1.277](https://github.com/jetthai/cuora-module/compare/v1.1.276...v1.1.277) (2024-05-31)
16
-
17
- ### [1.1.276](https://github.com/jetthai/cuora-module/compare/v1.1.275...v1.1.276) (2024-05-31)
18
-
19
- ### [1.1.275](https://github.com/jetthai/cuora-module/compare/v1.1.273-withdraw-6...v1.1.275) (2024-05-30)
20
-
21
- ### [1.1.273-withdraw-6](https://github.com/jetthai/cuora-module/compare/v1.1.273-withdraw-5...v1.1.273-withdraw-6) (2024-05-29)
22
-
23
- ### [1.1.273-withdraw-5](https://github.com/jetthai/cuora-module/compare/v1.1.270-fix...v1.1.273-withdraw-5) (2024-05-29)
24
-
25
- ### [1.1.273-withdraw-4](https://github.com/jetthai/cuora-module/compare/v1.1.273-withdraw-3...v1.1.273-withdraw-4) (2024-05-29)
26
-
27
- ### [1.1.273-withdraw-3](https://github.com/jetthai/cuora-module/compare/v1.1.273-withdraw-2...v1.1.273-withdraw-3) (2024-05-29)
28
-
29
- ### [1.1.273-withdraw-2](https://github.com/jetthai/cuora-module/compare/v1.1.274...v1.1.273-withdraw-2) (2024-05-29)
30
-
31
- ### [1.1.274](https://github.com/jetthai/cuora-module/compare/v1.1.273-withdraw-1...v1.1.274) (2024-05-28)
32
-
33
- ### [1.1.273-withdraw-1](https://github.com/jetthai/cuora-module/compare/v1.1.273...v1.1.273-withdraw-1) (2024-05-28)
34
-
35
- ### [1.1.273](https://github.com/jetthai/cuora-module/compare/v1.1.272...v1.1.273) (2024-05-27)
36
-
37
- ### [1.1.272](https://github.com/jetthai/cuora-module/compare/v1.1.271...v1.1.272) (2024-05-21)
38
-
39
- ### [1.1.271](https://github.com/jetthai/cuora-module/compare/v1.1.270...v1.1.271) (2024-05-21)
40
-
41
5
  ### [1.1.277](https://github.com/jetthai/cuora-module/compare/v1.1.276...v1.1.277) (2024-05-31)
42
6
 
43
7
  ### [1.1.276](https://github.com/jetthai/cuora-module/compare/v1.1.275...v1.1.276) (2024-05-31)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.277-dev-2",
3
+ "version": "1.1.277",
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',
@@ -10,11 +10,10 @@ export default function (request) {
10
10
  initial: 'init',
11
11
  context: {
12
12
  tick: 2000,
13
- specifyActivities: [4, 29, 34],
13
+ specifyActivities: [29, 34],
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