@jetthai/cuora 1.1.91 → 1.1.92

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.1.92](https://github.com/jetthai/cuora-module/compare/v1.1.91...v1.1.92) (2023-05-08)
6
+
5
7
  ### [1.1.91](https://github.com/jetthai/cuora-module/compare/v1.1.90-ac-1...v1.1.91) (2023-05-08)
6
8
 
7
9
  ### [1.1.90-ac-1](https://github.com/jetthai/cuora-module/compare/v1.1.90-ac...v1.1.90-ac-1) (2023-05-05)
package/dist/bundle.mjs CHANGED
@@ -7914,10 +7914,10 @@ function invite_friends_activity (request) {
7914
7914
  },
7915
7915
  fetching: {
7916
7916
  invoke: {
7917
- src: 'fetchAffiliate',
7917
+ src: 'fetchFriends',
7918
7918
  onDone: {
7919
7919
  target: 'idle',
7920
- actions: 'setAffiliateCode',
7920
+ actions: 'setFriendCode',
7921
7921
  },
7922
7922
  onError: {
7923
7923
  target: 'idle',
@@ -7926,7 +7926,7 @@ function invite_friends_activity (request) {
7926
7926
  },
7927
7927
  binding: {
7928
7928
  invoke: {
7929
- src: 'postAffiliate',
7929
+ src: 'postFriends',
7930
7930
  onDone: {
7931
7931
  target: 'awarding',
7932
7932
  },
@@ -7957,7 +7957,7 @@ function invite_friends_activity (request) {
7957
7957
  },
7958
7958
  {
7959
7959
  actions: {
7960
- setAffiliateCode: assign((context, event) => {
7960
+ setFriendCode: assign((context, event) => {
7961
7961
  const { friendCode, downlineCount } = event.data;
7962
7962
  return {
7963
7963
  friendCode,
@@ -7981,11 +7981,11 @@ function invite_friends_activity (request) {
7981
7981
  }),
7982
7982
  },
7983
7983
  services: {
7984
- postAffiliate: async (context, event) => {
7985
- return await request.send(user.postAffiliate({ friendCode: context.bindingCode }))
7984
+ postFriends: async (context, event) => {
7985
+ return await request.send(user.postFriends({ friendCode: context.bindingCode }))
7986
7986
  },
7987
- fetchAffiliate: async (context, event) => {
7988
- return await request.send(user.getAffiliate())
7987
+ fetchFriends: async (context, event) => {
7988
+ return await request.send(user.getFriends())
7989
7989
  },
7990
7990
  awardPrize: async (context, event) => {
7991
7991
  const { activityNo, uidSite, bindingCode } = context;
@@ -8022,7 +8022,7 @@ function friend_invite_friends_activity (request) {
8022
8022
  states: {
8023
8023
  fetching1: {
8024
8024
  invoke: {
8025
- src: 'fetchFriendsCode',
8025
+ src: 'fetchFriendCode',
8026
8026
  onDone: {
8027
8027
  target: 'checking',
8028
8028
  actions: 'setFriendsCode',
@@ -8173,7 +8173,7 @@ function friend_invite_friends_activity (request) {
8173
8173
  isFriendsEnable: (context, event) => context.friendsEnable,
8174
8174
  },
8175
8175
  services: {
8176
- fetchFriendsCode: async () => {
8176
+ fetchFriendCode: async () => {
8177
8177
  return await request.send(user.getFriends())
8178
8178
  },
8179
8179
  fetchFriendsData: async (context, event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.91",
3
+ "version": "1.1.92",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -27,7 +27,7 @@ export default function (request) {
27
27
  states: {
28
28
  fetching1: {
29
29
  invoke: {
30
- src: 'fetchFriendsCode',
30
+ src: 'fetchFriendCode',
31
31
  onDone: {
32
32
  target: 'checking',
33
33
  actions: 'setFriendsCode',
@@ -178,7 +178,7 @@ export default function (request) {
178
178
  isFriendsEnable: (context, event) => context.friendsEnable,
179
179
  },
180
180
  services: {
181
- fetchFriendsCode: async () => {
181
+ fetchFriendCode: async () => {
182
182
  return await request.send(user.getFriends())
183
183
  },
184
184
  fetchFriendsData: async (context, event) => {
@@ -30,10 +30,10 @@ export default function (request) {
30
30
  },
31
31
  fetching: {
32
32
  invoke: {
33
- src: 'fetchAffiliate',
33
+ src: 'fetchFriends',
34
34
  onDone: {
35
35
  target: 'idle',
36
- actions: 'setAffiliateCode',
36
+ actions: 'setFriendCode',
37
37
  },
38
38
  onError: {
39
39
  target: 'idle',
@@ -42,7 +42,7 @@ export default function (request) {
42
42
  },
43
43
  binding: {
44
44
  invoke: {
45
- src: 'postAffiliate',
45
+ src: 'postFriends',
46
46
  onDone: {
47
47
  target: 'awarding',
48
48
  },
@@ -73,7 +73,7 @@ export default function (request) {
73
73
  },
74
74
  {
75
75
  actions: {
76
- setAffiliateCode: assign((context, event) => {
76
+ setFriendCode: assign((context, event) => {
77
77
  const { friendCode, downlineCount } = event.data
78
78
  return {
79
79
  friendCode,
@@ -97,11 +97,11 @@ export default function (request) {
97
97
  }),
98
98
  },
99
99
  services: {
100
- postAffiliate: async (context, event) => {
101
- return await request.send(user.postAffiliate({ friendCode: context.bindingCode }))
100
+ postFriends: async (context, event) => {
101
+ return await request.send(user.postFriends({ friendCode: context.bindingCode }))
102
102
  },
103
- fetchAffiliate: async (context, event) => {
104
- return await request.send(user.getAffiliate())
103
+ fetchFriends: async (context, event) => {
104
+ return await request.send(user.getFriends())
105
105
  },
106
106
  awardPrize: async (context, event) => {
107
107
  const { activityNo, uidSite, bindingCode } = context