@jetthai/cuora 1.1.330-dev-7 → 1.1.330-dev-9

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,14 @@
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.330-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.330-dev-8...v1.1.330-dev-9) (2024-12-26)
6
+
7
+ ### [1.1.332](https://github.com/jetthai/cuora-module/compare/v1.1.330-dev-7...v1.1.332) (2024-12-24)
8
+
9
+ ### [1.1.331](https://github.com/jetthai/cuora-module/compare/v1.1.330-dev-6...v1.1.331) (2024-12-24)
10
+
11
+ ### [1.1.330-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.330-dev-7...v1.1.330-dev-8) (2024-12-25)
12
+
5
13
  ### [1.1.330-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.330-dev-6...v1.1.330-dev-7) (2024-12-24)
6
14
 
7
15
  ### [1.1.330-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.330-dev-5...v1.1.330-dev-6) (2024-12-23)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.330-dev-7",
3
+ "version": "1.1.330-dev-9",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -25,6 +25,7 @@ export default function (request) {
25
25
  reachedAmountLimit: false,
26
26
  activityNo: null,
27
27
  claimResultData: null,
28
+ rebateDistributionTime: 0,
28
29
  },
29
30
  initial: 'idle',
30
31
  states: {
@@ -131,6 +132,7 @@ export default function (request) {
131
132
  remainingCount = 0,
132
133
  dailyRedemptionLimit = 0,
133
134
  reachedAmountLimit = false,
135
+ rebateDistributionTime = 0,
134
136
  } = event.data
135
137
 
136
138
  return {
@@ -151,6 +153,7 @@ export default function (request) {
151
153
  remainingCount,
152
154
  dailyRedemptionLimit,
153
155
  reachedAmountLimit,
156
+ rebateDistributionTime,
154
157
  }
155
158
  }),
156
159
  setClaimesult: assign((context, event) => {
@@ -10,7 +10,6 @@ import game_search_v2 from './game_search_v2.js'
10
10
  import game_hot_new from './game_hot_new.js'
11
11
  import game_info from './game_info.js'
12
12
  import game_replay from './game_replay.js'
13
- import game_free from './game_free.js'
14
13
  import inbox from './inbox.js'
15
14
  import merge from './merge.js'
16
15
  import payment_data from './payment_data.js'
@@ -52,7 +51,6 @@ export default {
52
51
  game_hot_new,
53
52
  game_info,
54
53
  game_replay,
55
- game_free,
56
54
  inbox,
57
55
  merge,
58
56
  payment_data,
@@ -58,39 +58,35 @@ export default function (request) {
58
58
  src: 'withdrawCheck',
59
59
  onDone: [
60
60
  {
61
- target: 'notWithdrawMinDepositAmount',
62
- cond: 'isNotWithdrawMinDepositAmount',
61
+ target: 'checkingWithdrawStatus',
63
62
  actions: assign((context, event) => {
64
63
  return {
65
64
  withdrawCheck: event.data,
66
65
  }
67
66
  }),
68
67
  },
69
- {
70
- target: 'passWithdrawCooldownTime',
71
- cond: 'isPassWithdrawCooldownTime',
72
- actions: assign((context, event) => {
73
- return {
74
- withdrawCheck: event.data,
75
- }
76
- }),
77
- },
78
- {
79
- target: 'notWithdrawable',
80
- cond: 'isNotWithdrawable',
81
- },
82
- {
83
- target: 'withdrawable',
84
- },
85
68
  ],
86
69
  onError: {
87
70
  target: '#withdraw_krway.fail',
88
71
  },
89
72
  },
90
73
  },
74
+ checkingWithdrawStatus: {
75
+ always: [
76
+ // 提款最低存款金額
77
+ { target: 'notWithdrawMinDepositAmount', cond: 'isNotWithdrawMinDepositAmount' },
78
+ // 提款冷卻時間
79
+ { target: 'passWithdrawCooldownTime', cond: 'isPassWithdrawCooldownTime' },
80
+ // 提款服務時間
81
+ { target: 'withdrawServiceTime', cond: 'isNotWIthdrawServiceTime' },
82
+ { target: 'notWithdrawable', cond: 'isNotWithdrawable' },
83
+ { target: 'withdrawable' },
84
+ ],
85
+ },
91
86
  notWithdrawMinDepositAmount: {},
92
87
  passWithdrawCooldownTime: {},
93
88
  inProcessing: {},
89
+ withdrawServiceTime: {},
94
90
  notWithdrawable: {},
95
91
  withdrawable: {
96
92
  on: {
@@ -180,10 +176,16 @@ export default function (request) {
180
176
  return !enableWithdraw || balance < minWithdrawAmount
181
177
  },
182
178
  isNotWithdrawMinDepositAmount: (context, event) => {
183
- return !event.data?.passDepositeLimit
179
+ const { withdrawCheck } = context
180
+ return !withdrawCheck?.passDepositeLimit
184
181
  },
185
182
  isPassWithdrawCooldownTime: (context, event) => {
186
- return !event.data?.passWithdrawCooldownTime
183
+ const { withdrawCheck } = context
184
+ return !withdrawCheck?.passWithdrawCooldownTime
185
+ },
186
+ isNotWIthdrawServiceTime: (context, event) => {
187
+ const { withdrawCheck } = context
188
+ return !withdrawCheck?.withdrawInServiceTime
187
189
  },
188
190
  },
189
191
  services: {
@@ -168,41 +168,35 @@ export default function (request) {
168
168
  invoke: {
169
169
  src: 'withdrawCheck',
170
170
  onDone: [
171
- // 提款最低存款金額
172
171
  {
173
- target: 'notWithdrawMinDepositAmount',
174
- cond: 'isNotWithdrawMinDepositAmount',
172
+ target: 'checkingWithdrawStatus',
175
173
  actions: assign((context, event) => {
176
174
  return {
177
175
  withdrawCheck: event.data,
178
176
  }
179
177
  }),
180
178
  },
181
- // 提款冷卻時間
182
- {
183
- target: 'passWithdrawCooldownTime',
184
- cond: 'isPassWithdrawCooldownTime',
185
- actions: assign((context, event) => {
186
- return {
187
- withdrawCheck: event.data,
188
- }
189
- }),
190
- },
191
- {
192
- target: 'notWithdrawable',
193
- cond: 'isNotWithdrawable',
194
- },
195
- {
196
- target: 'withdrawable',
197
- },
198
179
  ],
199
180
  onError: {
200
181
  target: '#withdraw_manual.fail',
201
182
  },
202
183
  },
203
184
  },
185
+ checkingWithdrawStatus: {
186
+ always: [
187
+ // 提款最低存款金額
188
+ { target: 'notWithdrawMinDepositAmount', cond: 'isNotWithdrawMinDepositAmount' },
189
+ // 提款冷卻時間
190
+ { target: 'passWithdrawCooldownTime', cond: 'isPassWithdrawCooldownTime' },
191
+ // 提款服務時間
192
+ { target: 'withdrawServiceTime', cond: 'isNotWIthdrawServiceTime' },
193
+ { target: 'notWithdrawable', cond: 'isNotWithdrawable' },
194
+ { target: 'withdrawable' },
195
+ ],
196
+ },
204
197
  notWithdrawMinDepositAmount: {},
205
198
  passWithdrawCooldownTime: {},
199
+ withdrawServiceTime: {},
206
200
  notWithdrawable: {},
207
201
  unbound: {
208
202
  // to bank_binding.js
@@ -525,10 +519,16 @@ export default function (request) {
525
519
  return event.data?.status === 'otp-verifying'
526
520
  },
527
521
  isNotWithdrawMinDepositAmount: (context, event) => {
528
- return !event.data?.passDepositeLimit
522
+ const { withdrawCheck } = context
523
+ return !withdrawCheck?.passDepositeLimit
529
524
  },
530
525
  isPassWithdrawCooldownTime: (context, event) => {
531
- return !event.data?.passWithdrawCooldownTime
526
+ const { withdrawCheck } = context
527
+ return !withdrawCheck?.passWithdrawCooldownTime
528
+ },
529
+ isNotWIthdrawServiceTime: (context, event) => {
530
+ const { withdrawCheck } = context
531
+ return !withdrawCheck?.withdrawInServiceTime
532
532
  },
533
533
  },
534
534
  services: {
@@ -142,38 +142,34 @@ export default function (request) {
142
142
  src: 'withdrawCheck',
143
143
  onDone: [
144
144
  {
145
- target: 'notWithdrawMinDepositAmount',
146
- cond: 'isNotWithdrawMinDepositAmount',
145
+ target: 'checkingWithdrawStatus',
147
146
  actions: assign((context, event) => {
148
147
  return {
149
148
  withdrawCheck: event.data,
150
149
  }
151
150
  }),
152
151
  },
153
- {
154
- target: 'passWithdrawCooldownTime',
155
- cond: 'isPassWithdrawCooldownTime',
156
- actions: assign((context, event) => {
157
- return {
158
- withdrawCheck: event.data,
159
- }
160
- }),
161
- },
162
- {
163
- target: 'notWithdrawable',
164
- cond: 'isNotWithdrawable',
165
- },
166
- {
167
- target: 'withdrawable',
168
- },
169
152
  ],
170
153
  onError: {
171
154
  target: '#withdraw_vn.fail',
172
155
  },
173
156
  },
174
157
  },
158
+ checkingWithdrawStatus: {
159
+ always: [
160
+ // 提款最低存款金額
161
+ { target: 'notWithdrawMinDepositAmount', cond: 'isNotWithdrawMinDepositAmount' },
162
+ // 提款冷卻時間
163
+ { target: 'passWithdrawCooldownTime', cond: 'isPassWithdrawCooldownTime' },
164
+ // 提款服務時間
165
+ { target: 'withdrawServiceTime', cond: 'isNotWIthdrawServiceTime' },
166
+ { target: 'notWithdrawable', cond: 'isNotWithdrawable' },
167
+ { target: 'withdrawable' },
168
+ ],
169
+ },
175
170
  notWithdrawMinDepositAmount: {},
176
171
  passWithdrawCooldownTime: {},
172
+ withdrawServiceTime: {},
177
173
  notWithdrawable: {},
178
174
  unbound: {
179
175
  // to bank_binding.js
@@ -459,10 +455,16 @@ export default function (request) {
459
455
  },
460
456
  isNewWalletMode: (context, event) => context.siteConfig.walletMode > 0,
461
457
  isNotWithdrawMinDepositAmount: (context, event) => {
462
- return !event.data?.passDepositeLimit
458
+ const { withdrawCheck } = context
459
+ return !withdrawCheck?.passDepositeLimit
463
460
  },
464
461
  isPassWithdrawCooldownTime: (context, event) => {
465
- return !event.data?.passWithdrawCooldownTime
462
+ const { withdrawCheck } = context
463
+ return !withdrawCheck?.passWithdrawCooldownTime
464
+ },
465
+ isNotWIthdrawServiceTime: (context, event) => {
466
+ const { withdrawCheck } = context
467
+ return !withdrawCheck?.withdrawInServiceTime
466
468
  },
467
469
  },
468
470
  services: {
@@ -170,38 +170,34 @@ export default function (request) {
170
170
  src: 'withdrawCheck',
171
171
  onDone: [
172
172
  {
173
- target: 'notWithdrawMinDepositAmount',
174
- cond: 'isNotWithdrawMinDepositAmount',
173
+ target: 'checkingWithdrawStatus',
175
174
  actions: assign((context, event) => {
176
175
  return {
177
176
  withdrawCheck: event.data,
178
177
  }
179
178
  }),
180
179
  },
181
- {
182
- target: 'passWithdrawCooldownTime',
183
- cond: 'isPassWithdrawCooldownTime',
184
- actions: assign((context, event) => {
185
- return {
186
- withdrawCheck: event.data,
187
- }
188
- }),
189
- },
190
- {
191
- target: 'notWithdrawable',
192
- cond: 'isNotWithdrawable',
193
- },
194
- {
195
- target: 'withdrawable',
196
- },
197
180
  ],
198
181
  onError: {
199
182
  target: '#withdraw_vn2.fail',
200
183
  },
201
184
  },
202
185
  },
186
+ checkingWithdrawStatus: {
187
+ always: [
188
+ // 提款最低存款金額
189
+ { target: 'notWithdrawMinDepositAmount', cond: 'isNotWithdrawMinDepositAmount' },
190
+ // 提款冷卻時間
191
+ { target: 'passWithdrawCooldownTime', cond: 'isPassWithdrawCooldownTime' },
192
+ // 提款服務時間
193
+ { target: 'withdrawServiceTime', cond: 'isNotWIthdrawServiceTime' },
194
+ { target: 'notWithdrawable', cond: 'isNotWithdrawable' },
195
+ { target: 'withdrawable' },
196
+ ],
197
+ },
203
198
  notWithdrawMinDepositAmount: {},
204
199
  passWithdrawCooldownTime: {},
200
+ withdrawServiceTime: {},
205
201
  notWithdrawable: {},
206
202
  unbound: {
207
203
  // to bank_binding.js
@@ -484,10 +480,16 @@ export default function (request) {
484
480
  return event.data?.status === 'otp-verifying'
485
481
  },
486
482
  isNotWithdrawMinDepositAmount: (context, event) => {
487
- return !event.data?.passDepositeLimit
483
+ const { withdrawCheck } = context
484
+ return !withdrawCheck?.passDepositeLimit
488
485
  },
489
486
  isPassWithdrawCooldownTime: (context, event) => {
490
- return !event.data?.passWithdrawCooldownTime
487
+ const { withdrawCheck } = context
488
+ return !withdrawCheck?.passWithdrawCooldownTime
489
+ },
490
+ isNotWIthdrawServiceTime: (context, event) => {
491
+ const { withdrawCheck } = context
492
+ return !withdrawCheck?.withdrawInServiceTime
491
493
  },
492
494
  },
493
495
  services: {