@obb871001/api-integration-sdk 1.0.355 → 1.0.357
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/dist/index.cjs +1 -1
- package/dist/index.js +120 -108
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8048,114 +8048,126 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
8048
8048
|
queryKey: ["eventList", e],
|
|
8049
8049
|
queryFn: () => g({ paramsData: e }),
|
|
8050
8050
|
select: (r) => {
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
m,
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8051
|
+
try {
|
|
8052
|
+
const { data: a } = r;
|
|
8053
|
+
return Be(a, (o) => {
|
|
8054
|
+
const { events_attributes: m } = o, u = Ie(
|
|
8055
|
+
m,
|
|
8056
|
+
(v) => v.attribute_currency === U
|
|
8057
|
+
) || m[0], s = Y(
|
|
8058
|
+
u,
|
|
8059
|
+
"rewards",
|
|
8060
|
+
{}
|
|
8061
|
+
), c = Y(o, "carousels.[0]", {}), f = Ie(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
|
|
8062
|
+
...c,
|
|
8063
|
+
currentLngCarousel: {
|
|
8064
|
+
...f,
|
|
8065
|
+
carouselCurrentLanguagePCImageUrl: `${p}/carousels/${f?.image_pc}`,
|
|
8066
|
+
carouselCurrentLanguageMBImageUrl: `${p}/carousels/${f?.image_mobile}`,
|
|
8067
|
+
carouselCurrentLanguageS3PCImageUrl: `${Ke}/carousels/${f?.image_pc}`,
|
|
8068
|
+
carouselCurrentLanguageS3MBImageUrl: `${Ke}/carousels/${f?.image_mobile}`
|
|
8069
|
+
}
|
|
8070
|
+
}, _ = {
|
|
8071
|
+
eventUid: o.uid,
|
|
8072
|
+
enableCurrencyLimit: o.enable_currency_limit,
|
|
8073
|
+
//是否啟用幣別限制
|
|
8074
|
+
endTime: o.end_time,
|
|
8075
|
+
//結束時間
|
|
8076
|
+
startTime: o.start_time,
|
|
8077
|
+
//開始時間
|
|
8078
|
+
eventCode: o.event_code,
|
|
8079
|
+
//活動代碼
|
|
8080
|
+
eventShowType: o.event_show_type,
|
|
8081
|
+
//活動顯示類型
|
|
8082
|
+
isActive: o.is_active === 1,
|
|
8083
|
+
//是否啟用
|
|
8084
|
+
isShowCarousel: o.is_show_carousel === 1,
|
|
8085
|
+
//是否顯示輪播
|
|
8086
|
+
isShowPopup: o.is_show_pop_up === 1,
|
|
8087
|
+
//是否顯示彈跳視窗
|
|
8088
|
+
lastSettleDate: o.last_settle_date,
|
|
8089
|
+
//上次結算日期
|
|
8090
|
+
nextSettleDate: o.next_settle_date,
|
|
8091
|
+
//下次結算日期
|
|
8092
|
+
participatingPlatforms: o.participating_platforms,
|
|
8093
|
+
//參與平台
|
|
8094
|
+
resetCycle: o.reset_cycle,
|
|
8095
|
+
//重置週期
|
|
8096
|
+
settlementHour: o.settlement_hour,
|
|
8097
|
+
//結算小時
|
|
8098
|
+
settlementInterval: o.settlement_interval,
|
|
8099
|
+
//結算間隔
|
|
8100
|
+
settlementIntervalCount: o.settlement_interval_count,
|
|
8101
|
+
//結算間隔次數
|
|
8102
|
+
singleAmountTarget: o.single_amount_target,
|
|
8103
|
+
//單次目標金額
|
|
8104
|
+
subType: o.subtype,
|
|
8105
|
+
//活動子類型
|
|
8106
|
+
type: o.type,
|
|
8107
|
+
//活動類型
|
|
8108
|
+
valueBasis: o.value_basis,
|
|
8109
|
+
//數值基準
|
|
8110
|
+
vipGroup: o.vip_group,
|
|
8111
|
+
// VIP 群組
|
|
8112
|
+
tagsGroup: o.tags_group,
|
|
8113
|
+
//標籤群組
|
|
8114
|
+
eventBg: qn(),
|
|
8115
|
+
eventIcon: Kn(o.type),
|
|
8116
|
+
nextSettlementDate: o.next_settlement_date,
|
|
8117
|
+
//下一次結算日期
|
|
8118
|
+
lastSettlementDate: o.last_settlement_date
|
|
8119
|
+
//最後一次結算日期
|
|
8120
|
+
}, b = {
|
|
8121
|
+
isActive: u?.attribute_is_active === 1,
|
|
8122
|
+
//是否啟用
|
|
8123
|
+
currencyCode: u?.attribute_currency,
|
|
8124
|
+
//幣別代碼
|
|
8125
|
+
value: u?.attribute_value,
|
|
8126
|
+
//數值
|
|
8127
|
+
eventUid: u?.event_uid,
|
|
8128
|
+
//活動UID
|
|
8129
|
+
rewardType: u?.reward_type,
|
|
8130
|
+
//獎勵類型
|
|
8131
|
+
rewardDetail: u?.rewards || {}
|
|
8132
|
+
}, C = {
|
|
8133
|
+
baseValue: s.base_value,
|
|
8134
|
+
//基礎數值
|
|
8135
|
+
enableRewardsLimit: s.enable_rewards_limit === 1,
|
|
8136
|
+
//是否啟用獎勵限制
|
|
8137
|
+
enableAmountLimit: s.enable_amounts_limit === 1,
|
|
8138
|
+
//是否啟用金額限制
|
|
8139
|
+
limitAmount: s.limit_amounts,
|
|
8140
|
+
//限制金額
|
|
8141
|
+
enableTimesLimit: s.enable_times_limit === 1,
|
|
8142
|
+
//是否啟用次數限制
|
|
8143
|
+
limitTimes: s.limit_times,
|
|
8144
|
+
//限制次數
|
|
8145
|
+
enableWageringLimit: s.enable_wagering_limit === 1,
|
|
8146
|
+
//是否啟用投注限制
|
|
8147
|
+
wageringLimitType: s.wagering_limit_type,
|
|
8148
|
+
//投注限制類型
|
|
8149
|
+
wageringLimitValue: s.wagering_limit_value,
|
|
8150
|
+
//投注限制數值
|
|
8151
|
+
expirationDays: s.expiration_days,
|
|
8152
|
+
//獎勵過期天數
|
|
8153
|
+
rewardName: s.name,
|
|
8154
|
+
//獎勵名稱
|
|
8155
|
+
rewardUid: s.uid,
|
|
8156
|
+
//獎勵UID
|
|
8157
|
+
rewardType: s.type
|
|
8158
|
+
//獎勵類型
|
|
8159
|
+
};
|
|
8160
|
+
return {
|
|
8161
|
+
eventBase: _,
|
|
8162
|
+
eventAttribute: b,
|
|
8163
|
+
eventReward: C,
|
|
8164
|
+
eventCarousel: { ...y },
|
|
8165
|
+
originalData: o
|
|
8166
|
+
};
|
|
8167
|
+
});
|
|
8168
|
+
} catch (a) {
|
|
8169
|
+
return console.error("Error processing event list data:", a), [];
|
|
8170
|
+
}
|
|
8159
8171
|
},
|
|
8160
8172
|
...n
|
|
8161
8173
|
});
|