@jetthai/cuora 1.0.55 → 1.0.56

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,8 @@
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.0.56](https://github.com/jetthai/cuora-module/compare/v1.0.55...v1.0.56) (2021-12-15)
6
+
5
7
  ### [1.0.55](https://github.com/jetthai/cuora-module/compare/v1.0.54...v1.0.55) (2021-12-14)
6
8
 
7
9
  ### [1.0.54](https://github.com/jetthai/cuora-module/compare/v1.0.53...v1.0.54) (2021-12-13)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -35,10 +35,10 @@ export default {
35
35
  method: 'post',
36
36
  params: { activityNo, gender, email, score, suggest, uidSite, affiliateCode, appSecret },
37
37
  }),
38
- getReward: ({ activityNo, receiveNo, appSecret }) => ({
38
+ getReward: ({ activityNo, receiveNo, appSecret, attended }) => ({
39
39
  url: 'activities/rewards',
40
40
  method: 'post',
41
- params: { activityNo, receiveNo, appSecret },
41
+ params: { activityNo, receiveNo, appSecret, attended },
42
42
  }),
43
43
  getRewardList: ({ count, appSecret }) => ({ url: 'activities/rewards', method: 'get', params: { count, appSecret } }),
44
44
  exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
@@ -40,7 +40,7 @@ export default function (request) {
40
40
  on: {
41
41
  EXCHANGE: {
42
42
  target: 'exchanging',
43
- cond: 'isExchangeable'
43
+ cond: 'isExchangeable',
44
44
  },
45
45
  ADD_TO_CART: {
46
46
  actions: ['addProduct', 'count'],
@@ -137,7 +137,7 @@ export default function (request) {
137
137
  isExchangeable: (context, event) => {
138
138
  const { exchangeList } = context
139
139
  return exchangeList.length > 0
140
- }
140
+ },
141
141
  },
142
142
  services: {
143
143
  fetchActivityDetail: async (context, event) => {
@@ -41,11 +41,7 @@ export default function (request) {
41
41
  },
42
42
  },
43
43
  loaded: {
44
- always: [
45
- { target: 'receivable', cond: 'isReceivable' },
46
- { target: 'notReceivableYet', cond: 'isNotReceivableYet' },
47
- { target: 'empty' },
48
- ],
44
+ always: [{ target: 'receivable', cond: 'isReceivable' }, { target: 'notReceivableYet', cond: 'isNotReceivableYet' }, { target: 'empty' }],
49
45
  },
50
46
  receivable: {
51
47
  on: {