@jetthai/cuora 1.1.387 → 1.1.389-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,6 +2,12 @@
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.389-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.389...v1.1.389-dev-1) (2025-10-09)
6
+
7
+ ### [1.1.389](https://github.com/jetthai/cuora-module/compare/v1.1.388...v1.1.389) (2025-10-07)
8
+
9
+ ### [1.1.388](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.388) (2025-10-07)
10
+
5
11
  ### [1.1.387](https://github.com/jetthai/cuora-module/compare/v1.1.386...v1.1.387) (2025-09-23)
6
12
 
7
13
  ### [1.1.386](https://github.com/jetthai/cuora-module/compare/v1.1.385...v1.1.386) (2025-09-19)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.387",
3
+ "version": "1.1.389-dev-1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -85,6 +85,7 @@ export default {
85
85
  exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
86
86
  collect: (data) => ({ url: 'activities/collect', method: 'post', params: data }),
87
87
  getVipTable: ({ appSecret }) => ({ url: 'activities/viptable', method: 'get', params: { appSecret } }),
88
+ getLevelBonusInfo: () => ({ url: 'activities/level-bonus/info', method: 'get' }),
88
89
  getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
89
90
  exchangeDiamond: ({ activityNo, exchangeAward = [] }) => ({
90
91
  url: 'activities/exchange/diamond',
@@ -41,6 +41,7 @@ export default function (request) {
41
41
  defaultAffiliateCode: null,
42
42
  friendCode: null,
43
43
  isPlaying: false,
44
+ isLogin: false,
44
45
  },
45
46
  states: {
46
47
  config: {
@@ -88,8 +89,20 @@ export default function (request) {
88
89
  },
89
90
  },
90
91
  feed: {
91
- initial: 'updating',
92
+ initial: 'idle',
92
93
  states: {
94
+ idle: {
95
+ on: {
96
+ LOGIN_REFRESH: {
97
+ target: 'updating',
98
+ actions: 'login',
99
+ },
100
+ LEAVE_GAME_REFRESH: {
101
+ target: 'updating',
102
+ actions: 'leaveGame',
103
+ },
104
+ },
105
+ },
93
106
  updating: {
94
107
  invoke: {
95
108
  src: 'fetchFeeds',
@@ -110,11 +123,12 @@ export default function (request) {
110
123
  },
111
124
  on: {
112
125
  ENTER_GAME_PAUSE: {
126
+ target: '.idle',
113
127
  actions: 'resetByEnterGame',
114
128
  },
115
- LEAVE_GAME_REFRESH: {
116
- target: '.updating',
117
- actions: 'leaveGame',
129
+ LOGOUT_PAUSE: {
130
+ target: '.idle',
131
+ actions: 'resetByLogout',
118
132
  },
119
133
  },
120
134
  },
@@ -296,7 +310,7 @@ export default function (request) {
296
310
  const { broadcastList, mailBoxInfo } = event.data
297
311
  const { siteConfig } = context
298
312
  const customerMessageEnable = siteConfig?.csChat?.some((item) => item.enable && item.name === 'customermessage')
299
- if (!customerMessageEnable) {
313
+ if (!customerMessageEnable && mailBoxInfo) {
300
314
  mailBoxInfo.rows -= mailBoxInfo.detailRows?.CUSTOMER || 0
301
315
  }
302
316
  return { broadcastList, mailBoxInfo }
@@ -334,6 +348,19 @@ export default function (request) {
334
348
  isPlaying: false,
335
349
  }
336
350
  }),
351
+ resetByLogout: assign((context, event) => {
352
+ return {
353
+ isLogin: false,
354
+ broadcastList: null,
355
+ mailBoxInfo: null,
356
+ promotions: null,
357
+ }
358
+ }),
359
+ login: assign((context, event) => {
360
+ return {
361
+ isLogin: true,
362
+ }
363
+ }),
337
364
  },
338
365
  guards: {
339
366
  isAffiliateCodeInstructionsEnable: (context, event) => {
@@ -76,6 +76,7 @@ export default function (request) {
76
76
  }),
77
77
  setSignUpId: assign((context, event) => {
78
78
  const {
79
+ email,
79
80
  username,
80
81
  nick_name,
81
82
  password,
@@ -93,6 +94,7 @@ export default function (request) {
93
94
  return {
94
95
  signUpData: {
95
96
  provider: 'local',
97
+ email,
96
98
  username,
97
99
  nick_name,
98
100
  password,
@@ -111,6 +113,7 @@ export default function (request) {
111
113
  }),
112
114
  setSignUpPhone: assign((context, event) => {
113
115
  const {
116
+ email,
114
117
  countryCode,
115
118
  phone,
116
119
  nick_name,
@@ -127,6 +130,7 @@ export default function (request) {
127
130
  return {
128
131
  signUpData: {
129
132
  provider: 'phone',
133
+ email,
130
134
  countryCode,
131
135
  phone,
132
136
  nick_name,
@@ -111,6 +111,7 @@ const supportVersion2List = [
111
111
  'activities/types',
112
112
  'activities/promo',
113
113
  'activities/viptable',
114
+ 'activities/level-bonus/info',
114
115
  'activities/numbers',
115
116
  'activities/honorBroadcast',
116
117
  'activities/exchange/diamond/max-amount',