@jetthai/cuora 1.1.321 → 1.1.322

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.322](https://github.com/jetthai/cuora-module/compare/v1.1.321...v1.1.322) (2024-12-03)
6
+
5
7
  ### [1.1.321](https://github.com/jetthai/cuora-module/compare/v1.1.320...v1.1.321) (2024-12-02)
6
8
 
7
9
  ### [1.1.320](https://github.com/jetthai/cuora-module/compare/v1.1.319...v1.1.320) (2024-11-26)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.321",
3
+ "version": "1.1.322",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -6,6 +6,12 @@ export default {
6
6
  params: { appSecret, include },
7
7
  isPublic: true,
8
8
  }),
9
+ getAllActivityList: ({ appSecret, include = 'cl' }) => ({
10
+ url: 'all-activities/list',
11
+ method: 'get',
12
+ params: { appSecret },
13
+ isPublic: true,
14
+ }),
9
15
  getJackpotList: ({ appSecret }) => ({
10
16
  url: 'activities/jackpot/list',
11
17
  method: 'get',
@@ -163,7 +163,7 @@ export default function (request) {
163
163
  const isDoubleWallet = context.siteConfig?.walletMode === '4'
164
164
  const apiCallable = hasToken && isDoubleWallet
165
165
  const [{ data }, promotionList] = await Promise.all([
166
- request.send(activity.getActivityList({ appSecret })),
166
+ hasToken ? request.send(activity.getActivityList({ appSecret })) : request.send(activity.getAllActivityList({ appSecret })),
167
167
  apiCallable ? request.send(payment.getPromotionsList()) : [],
168
168
  ])
169
169
 
@@ -133,7 +133,7 @@ export default function (request) {
133
133
  fetchList: async (context, event) => {
134
134
  const hasToken = request.getToken()
135
135
  const [{ data }, promotionList] = await Promise.all([
136
- request.send(activity.getActivityList({ appSecret })),
136
+ hasToken ? request.send(activity.getActivityList({ appSecret })) : request.send(activity.getAllActivityList({ appSecret })),
137
137
  hasToken ? request.send(payment.getPromotionsList()) : [],
138
138
  ])
139
139