60p82u21t54k 0.0.56 → 0.0.58
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/60p82u21t54k.es.js +410 -306
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/type.d.ts +6 -2
- package/dist/api/type.d.ts.map +1 -1
- package/dist/model/upcomingMatches/getUpcomingMatchesResponse.d.ts +21 -0
- package/dist/model/upcomingMatches/getUpcomingMatchesResponse.d.ts.map +1 -0
- package/dist/model/upcomingMatches/type.d.ts +16 -0
- package/dist/model/upcomingMatches/type.d.ts.map +1 -0
- package/dist/model/vipFieldStatus/getVipFieldStatusResponse.d.ts +1 -1
- package/dist/model/vipFieldStatus/getVipFieldStatusResponse.d.ts.map +1 -1
- package/dist/model/vipFieldStatus/type.d.ts +3 -2
- package/dist/model/vipFieldStatus/type.d.ts.map +1 -1
- package/dist/model/vipList/getVipListResponse.d.ts +1 -1
- package/dist/model/vipList/getVipListResponse.d.ts.map +1 -1
- package/dist/model/vipList/type.d.ts +7 -2
- package/dist/model/vipList/type.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/60p82u21t54k.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(p,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],D):(p=typeof globalThis<"u"?globalThis:p||self,D(p["60p82u21t54k"]={},p.axios))})(this,function(p,D){"use strict";const M=D.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});M.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),M.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};return e.response?(t.status=e.response.status,t.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(t)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(t)});const ee=e=>new TextEncoder().encode(e),te=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var i=(e=>(e.announcement="announcement",e.gameList="gameList",e.fishGameList="fishGameList",e.cmsList="cmsList",e.paymentsProvider="paymentsProvider",e.getUserProfile="getUserProfile",e.vipList="vipList",e.vipStatus="vipStatus",e.vipBonus="vipBonus",e.vipFieldStatus="vipFieldStatus",e.promotion="promotion",e.getSetting="getSetting",e.getCountryMobile="getCountryMobile",e.getPlatformTurnoverRate="getPlatformTurnoverRate",e.mainWallet="mainWallet",e.getLanguageSetting="getLanguageSetting",e.getFourDimensionData="getfourDimensionData",e.getCompany="getCompany",e.searchResultDate="searchResultDate",e.searchHot="searchHot",e.searchByDate="searchByDate",e))(i||{});const $=Object.freeze(Object.defineProperty({__proto__:null,Api:i},Symbol.toStringTag,{value:"Module"}));var L=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(L||{});const U=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:L},Symbol.toStringTag,{value:"Module"})),ne=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case L.default:n.push(I(t.paymentmethod.manual,e));break;case L.pay:n.push(oe(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(se(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let r=!1;for(let s=0;s<t.paymentmethod.manual.bank.length;s++){const c=t.paymentmethod.manual.bank[s];if(c.list&&c.list.length>0){r=!0;break}}r&&n.push(I(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&n.push(ae(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:n}}),F={id:0,name:"",type:L.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},k=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((r,s)=>({id:s+1,name:r.promodesc,value:r.promoindex.toString(),disabled:!1}));return[t,...n]},P=(e,t,n,r)=>{let s,c;n>0?s=e>0?Math.max(n,e):n:s=Math.max(e,0),r>0?c=t>0?Math.min(r,t):r:c=Math.max(t,0);const f=Math.round(s);let d=1e3;c<d&&(d=Math.round(c));const b=d-f;let y="",_="";if(b>0){let g=Math.round((d-f)*.25).toString().split(""),x=[];for(const o of g)o!==""&&x.push(o);for(let o=0;o<x.length;o++)o===0?y+=(parseInt(x[o])+1).toString():y+="0";g=Math.round((d-f)*.5).toString().split(""),x=[];for(const o of g)o!==""&&x.push(o);for(let o=0;o<x.length;o++)o===0?_+=(parseInt(x[o])+1).toString():_+="0"}else y=d.toString(),_=d.toString();return{amountList:[f.toString(),y,_,d.toString()],minAmount:f,maxAmount:c}},I=(e,t)=>t?{id:0,name:"manualMethod",type:L.manual,promo:k(e.promo),bank:e.bank.map(s=>{const c=s.list&&s.list.length>0?s.list[0].mintransaction??"0.00":"0.00",f=s.list&&s.list.length>0?s.list[0].maxtransaction??"0.00":"0.00",{amountList:d,minAmount:b,maxAmount:y}=P(Number(c),Number(f),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:s.bankindex??0,bankAccountId:s.list&&s.list.length>0?s.list[0].bankaccountindex??0:0,name:s.list&&s.list.length>0?s.list[0].label??"":"",accountName:s.list&&s.list.length>0?s.list[0].bankaccountname??"":"",accountNo:s.list&&s.list.length>0?s.list[0].bankaccountno??"":"",qrcode:s.list&&s.list.length>0?s.list[0].bankaccountdesc:"",amountList:d,min:b,max:y}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:F,oe=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:L.pay,promo:k(e.promo),bank:e.banklist.map(s=>{let c="0.00",f="0.00";const d=s.bankindex??0;for(let g=0;g<t.mdGatewayMinMax.length;g++)t.mdGatewayMinMax[g].bankindex==d.toString()&&(c=t.mdGatewayMinMax[g].min,f=t.mdGatewayMinMax[g].max);const{amountList:b,minAmount:y,maxAmount:_}=P(Number(c),Number(f),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),S={id:0,name:"autoChannel",amountList:b,min:y,max:_},v=s.pg.map(g=>{const x=g.mintransaction??"0.00",O=g.maxtransaction??"0.00",{amountList:B,minAmount:o,maxAmount:l}=P(Number(x),Number(O),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:g.pgindex,name:g.bankaccountname,amountList:B,min:o,max:l}});return{id:s.bankindex??0,name:s.banknameenglish??"",amountList:[],min:0,max:0,gateway:[S,...v]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:F,se=(e,t,n)=>{if(!n)return F;const r=L.auto;let s=[];const c=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")s=t.bank.map(d=>{const{amountList:b,minAmount:y,maxAmount:_}=P(d.minTransaction??0,d.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:d.pgindex,name:d.bankaccountname||"",amountList:b,min:y,max:_}});else{let d="0.00",b="0.00";for(let a=0;a<c.length;a++)c[a].bankindex===e.toString()&&(d=c[a].min,b=c[a].max);const{amountList:y,minAmount:_,maxAmount:S}=P(Number(d),Number(b),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),v={id:0,name:"autoChannel",amountList:y,min:_,max:S};s.push(v)}return{id:e,name:"autoMethod",type:r,promo:k(t.promo),bank:s,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ae=(e,t)=>{const n=L.fix;return{id:e,name:"fixAmountMethod",type:n,promo:k(t.promo),bank:t.bank.map(s=>{const c=s.amtlist.map(Number).sort((d,b)=>d-b);return{id:s.pgindex,name:s.name,amountList:s.amtlist,min:c.length>0?c[0]:0,max:c.length>0?c[c.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ie=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),re=e=>({username:e.username,birthday:e.mdUserDetail.dob,email:e.mdUserDetail.email,fullName:e.mdUserDetail.firstname,phoneNumber:e.mdUserDetail.mobileno,profilePicUrl:e.mdUserDetail.profile_pic}),le=e=>e.mdGameListResult.map(t=>({code:t.code,id:t.id,name:t.name,nextPage:t.nextPage===1,list:t.mdPlatformProducts.map(n=>({id:Number(n.id),name:n.shortName,flag:n.flag,imageUrl:n.img,rate:"0.00"}))})),ue=e=>({list:e.mdGrade.map(t=>({id:t.gradeindex,is_current_level:!1,name:t.grade_simplified,percentage:0,turnover:{isShow:!1,current:"0",total:t.min_activebet},deposit:{isShow:!1,current:"0",total:t.min_deposit},promo_list:t.promocash.filter(n=>n.isshow==1&&n.status=="1").map(n=>({name:n.promosimplified,min_deposit:n.min_deposit,promo_bonus:n.percentage,promo_limit:n.max_promo_amt,turnover_multiplier:n.multiply,type:n.promo_type})),benefit_list:t.benefit})),detail:[],bonus:{showMonthButton:!1,showWeekButton:!1,showDayButton:!1}}),me=e=>({category:e.category.sort((t,n)=>t.sequence-n.sequence).map(t=>({id:t.catid,name:t.name})),list:e.list.sort((t,n)=>t.sequence-n.sequence).map(t=>{let n="";return t.stime!==""&&t.etime!==""&&(n=`${t.stime} - ${t.etime}`),t.stime!==""&&t.etime===""&&(n=t.stime),t.stime===""&&t.etime!==""&&(n=t.etime),{category_id:t.catid,img_url:t.banner,content:t.content,time:n,name:t.title}})}),ce=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),de=e=>e.mdVipSetting.filter(t=>{t.status==1}).map(t=>({name:t.showname})),pe=e=>({current_deposit:e.deposit,current_turnover:e.turnOver,current_grade_id:e.mdCurrentGrade.gradeindex,next_grade_id:e.mdNextGrade.gradeindex,percentage:Number(e.percentage)*100}),ge=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let n=[];return e.extralivechat&&(n=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:n.filter(r=>r.status===1).map(r=>({name:r.name,image_url:r.imgname,url:r.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},fe=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let n=[];e.mobileAd&&(n=e.mobileAd);let r=[];return e.mobileAbout&&(r=e.mobileAbout),{banner:t.map(s=>`${s.imagepath}?${s.filemtime}`),ad:n.map(s=>`${s.imagepath}?${s.filemtime}`),about:r.map(s=>({name:s.name,content:s.content}))}},be=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),ye=e=>e,_e=e=>{let t=null;return e?e.status!=1?t=0:t=e.mainwallet:t=0,{amount:t}},he=e=>e.data.filter(t=>t.status=="1").map(t=>({name:t.title,icon_url:t.flag_icon,code:t.code})),ve=e=>(console.log(e),{name:""}),Se=e=>e.data.filter(t=>t.company_status==1).map(t=>({id:t.company_id,name:t.company_name,date:[]})),xe=e=>e.data.map(t=>({id:t.key,date:t.draw_date.map(n=>Le(n.draw_tmactive))}));function Le(e){const t=new Date(e*1e3),n=t.getFullYear(),r=("0"+(t.getMonth()+1)).slice(-2),s=("0"+t.getDate()).slice(-2);return`${n}-${r}-${s}`}const Te=e=>e.data.map(t=>({id:t.company_id,list:t.drawCount.map(n=>({combination:n.combination_combination,total:n.total}))})),Re=e=>e.data.map(t=>({id:t.company_id,resultByDateList:t.draws.map(n=>{const r=n.results.filter(a=>a.combination_dimension==3).map(a=>a.combination_combination),s=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==1).map(a=>a.combination_combination),c=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==2).map(a=>a.combination_combination),f=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==3).map(a=>a.combination_combination),d=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==4).map(a=>a.combination_combination),b=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==5).map(a=>a.combination_combination),y=n.results.filter(a=>a.combination_dimension==5&&a.combination_position==1).map(a=>a.combination_combination),_=n.results.filter(a=>a.combination_dimension==5).map(a=>a.combination_combination),S=n.results.filter(a=>a.combination_dimension==6&&a.combination_position==1).map(a=>a.combination_combination),v=n.results.filter(a=>a.combination_dimension==6).map(a=>a.combination_combination);return{date:n.date,3:r,4:{1:s,2:c,3:f,4:d,5:b},5:{1:y,all:_},6:{1:S,all:v}}})})),z=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n,r,s,c,f,d,b,y,_,S;try{e.findIndex(l=>l.name===i.vipList)!==-1&&e.push({name:i.vipBonus,query:""},{name:i.vipFieldStatus,query:""},{name:i.vipStatus,query:""},{name:i.getSetting,query:JSON.stringify({name:["vipcalculation"]})}),e.findIndex(l=>l.name===i.gameList)!==-1&&e.push({name:i.getPlatformTurnoverRate,query:""});const g=e.findIndex(l=>l.name===i.getFourDimensionData);g!==-1&&e[g].query==""&&(e.splice(g),e.push({name:i.getFourDimensionData,query:JSON.stringify({action:"getCompany",native:"1"})},{name:i.getFourDimensionData,query:JSON.stringify({action:"searchResultDate",limit:100,company:[],native:"1",splitCompany:"1"})}));const O={requests:e.map(l=>({name:l.name,query:btoa(l.query)}))},B=await M.post("/jwt",ee(JSON.stringify(O))),o={status:200,message:"",result:{}};for(const l of B.data.responses){l.error!=null&&l.error.code!=200&&(o.status=l.error.code,o.message=l.error.message);const h=l.attributes!==null&&l.attributes!==void 0?te(l.attributes):null,u=l.name,m=h?JSON.parse(h):null;if(!m)o.result[u]=null;else switch(u){case i.announcement:o.result[u]=ie(m);break;case i.gameList:o.result[u]=le(m);break;case i.cmsList:o.result[u]=fe(m);break;case i.paymentsProvider:o.result[u]=ne(m);break;case i.getUserProfile:o.result[u]=re(m);break;case i.vipList:o.result[u]=ue(m);break;case i.vipBonus:o.result[u]=ce(m);break;case i.vipFieldStatus:o.result[u]=de(m);break;case i.vipStatus:o.result[u]=pe(m);break;case i.promotion:o.result[u]=me(m);break;case i.getSetting:o.result[u]=ge(m);break;case i.getCountryMobile:o.result[u]=be(m);break;case i.getPlatformTurnoverRate:o.result[u]=ye(m);break;case i.mainWallet:o.result[u]=_e(m);break;case i.getLanguageSetting:o.result[u]=he(m);break;case i.getFourDimensionData:o.result[u]=ve(m);break;case i.getCompany:o.result[u]=Se(m);break;case i.searchResultDate:o.result[u]=xe(m);break;case i.searchHot:o.result[u]=Te(m);break;case i.searchByDate:o.result[u]=Re(m);break}}if(i.vipList in o.result&&((t=o.result)!=null&&t.vipList)){const l=o.result.vipList;let h=4;if(i.getSetting in o.result&&((n=o.result)!=null&&n.getSetting)&&(h=o.result.getSetting.vip_calculation,delete o.result.getSetting),i.vipBonus in o.result&&((r=o.result)!=null&&r.vipBonus)&&(l.bonus=o.result.vipBonus,delete o.result.vipBonus),i.vipFieldStatus in o.result&&((s=o.result)!=null&&s.vipFieldStatus)&&(console.log(o.result.vipFieldStatus),delete o.result.vipFieldStatus),i.vipStatus in o.result&&((c=o.result)!=null&&c.vipStatus)){const u=o.result.vipStatus,{current_grade_id:m,current_deposit:R,current_turnover:q,percentage:Pe}=u,A=l.list.findIndex(T=>T.id===m);l.list=l.list.map((T,G)=>{const w=G===A;let N="0",j="0",C=0;return w?(N=`${Math.min(Number(R),Number(T.deposit.total))}`,j=`${Math.min(Number(q),Number(T.turnover.total))}`,C=Pe):G<A?(N=T.deposit.total,j=T.turnover.total,C=1):G>A&&(N="0.00",j="0.00",C=0),{...T,is_current_level:w,deposit:{...T.deposit,isShow:h===1||h===3||h===4,current:N},turnover:{...T.turnover,isShow:h===2||h===3||h===4,current:j},percentage:C}}),delete o.result.vipStatus}o.result.vipList=l}if(i.gameList in o.result&&((f=o.result)!=null&&f.gameList)){const l=o.result.gameList;if(i.getPlatformTurnoverRate in o.result&&((d=o.result)!=null&&d.getPlatformTurnoverRate)){const h=o.result.getPlatformTurnoverRate;l.forEach(u=>{u.list=u.list.map(m=>{const R=h.find(q=>q.id===m.id);return{...m,rate:(R==null?void 0:R.percentage)??"0.00"}})}),delete o.result.getPlatformTurnoverRate}o.result.gameList=l}if(i.getCompany in o.result&&((b=o.result)!=null&&b.getCompany)){const l=o.result.getCompany;if(i.searchResultDate in o.result&&((y=o.result)!=null&&y.searchResultDate)){const h=o.result.searchResultDate;l.forEach(u=>{const m=h.find(R=>R.id==u.id);m&&(u.date=m==null?void 0:m.date)}),delete o.result.searchResultDate}o.result.getCompany=l}return o}catch(v){return D.isAxiosError(v)?{status:((_=v.response)==null?void 0:_.status)||600,message:JSON.stringify((S=v.response)==null?void 0:S.data),result:{}}:(console.error(v),{status:v.status||500,message:v.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),E=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const n={status:200,message:""};return await M.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),n}catch(n){return console.error(`login: ${JSON.stringify(n)}`),{status:n.status||500,message:n.message}}}},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await M.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),De={api:z,loginApi:E,logoutApi:J,apiType:$,loginType:W,logoutType:V,announcementType:H,paymentsProviderType:U,gameListType:Y,vipListType:K,promotionType:Q,cmsListType:X,mainWalletType:Z},Me={install(e){e.config.globalProperties.$library=De}};p.Repository=Me,p.announcementType=H,p.api=z,p.apiType=$,p.cmsListType=X,p.gameListType=Y,p.loginApi=E,p.loginType=W,p.logoutApi=J,p.logoutType=V,p.mainWalletType=Z,p.paymentsProviderType=U,p.promotionType=Q,p.vipListType=K,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(f,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],N):(f=typeof globalThis<"u"?globalThis:f||self,N(f["60p82u21t54k"]={},f.axios))})(this,function(f,N){"use strict";const B=N.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});B.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),B.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};return e.response?(t.status=e.response.status,t.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(t)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(t)});const te=e=>new TextEncoder().encode(e),ne=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var u=(e=>(e.announcement="announcement",e.gameList="gameList",e.fishGameList="fishGameList",e.cmsList="cmsList",e.paymentsProvider="paymentsProvider",e.getUserProfile="getUserProfile",e.vipList="vipList",e.vipStatus="vipStatus",e.vipBonus="vipBonus",e.vipFieldStatus="vipFieldStatus",e.promotion="promotion",e.getSetting="getSetting",e.getCountryMobile="getCountryMobile",e.getPlatformTurnoverRate="getPlatformTurnoverRate",e.mainWallet="mainWallet",e.getLanguageSetting="getLanguageSetting",e.getFourDimensionData="getfourDimensionData",e.getCompany="getCompany",e.searchResultDate="searchResultDate",e.searchHot="searchHot",e.searchByDate="searchByDate",e.upcomingMatches="upcomingMatches",e))(u||{});const U=Object.freeze(Object.defineProperty({__proto__:null,Api:u},Symbol.toStringTag,{value:"Module"}));var M=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(M||{});const z=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:M},Symbol.toStringTag,{value:"Module"})),oe=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case M.default:n.push(E(t.paymentmethod.manual,e));break;case M.pay:n.push(ae(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(se(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let c=!1;for(let a=0;a<t.paymentmethod.manual.bank.length;a++){const d=t.paymentmethod.manual.bank[a];if(d.list&&d.list.length>0){c=!0;break}}c&&n.push(E(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&n.push(ie(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:n}}),A={id:0,name:"",type:M.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},I=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((c,a)=>({id:a+1,name:c.promodesc,value:c.promoindex.toString(),disabled:!1}));return[t,...n]},j=(e,t,n,c)=>{let a,d;n>0?a=e>0?Math.max(n,e):n:a=Math.max(e,0),c>0?d=t>0?Math.min(c,t):c:d=Math.max(t,0);const b=Math.round(a);let p=1e3;d<p&&(p=Math.round(d));const _=p-b;let h="",v="";if(_>0){let y=Math.round((p-b)*.25).toString().split(""),T=[];for(const o of y)o!==""&&T.push(o);for(let o=0;o<T.length;o++)o===0?h+=(parseInt(T[o])+1).toString():h+="0";y=Math.round((p-b)*.5).toString().split(""),T=[];for(const o of y)o!==""&&T.push(o);for(let o=0;o<T.length;o++)o===0?v+=(parseInt(T[o])+1).toString():v+="0"}else h=p.toString(),v=p.toString();return{amountList:[b.toString(),h,v,p.toString()],minAmount:b,maxAmount:d}},E=(e,t)=>t?{id:0,name:"manualMethod",type:M.manual,promo:I(e.promo),bank:e.bank.map(a=>{const d=a.list&&a.list.length>0?a.list[0].mintransaction??"0.00":"0.00",b=a.list&&a.list.length>0?a.list[0].maxtransaction??"0.00":"0.00",{amountList:p,minAmount:_,maxAmount:h}=j(Number(d),Number(b),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:a.bankindex??0,bankAccountId:a.list&&a.list.length>0?a.list[0].bankaccountindex??0:0,name:a.list&&a.list.length>0?a.list[0].label??"":"",accountName:a.list&&a.list.length>0?a.list[0].bankaccountname??"":"",accountNo:a.list&&a.list.length>0?a.list[0].bankaccountno??"":"",qrcode:a.list&&a.list.length>0?a.list[0].bankaccountdesc:"",amountList:p,min:_,max:h}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:A,ae=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:M.pay,promo:I(e.promo),bank:e.banklist.map(a=>{let d="0.00",b="0.00";const p=a.bankindex??0;for(let y=0;y<t.mdGatewayMinMax.length;y++)t.mdGatewayMinMax[y].bankindex==p.toString()&&(d=t.mdGatewayMinMax[y].min,b=t.mdGatewayMinMax[y].max);const{amountList:_,minAmount:h,maxAmount:v}=j(Number(d),Number(b),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),L={id:0,name:"autoChannel",amountList:_,min:h,max:v},x=a.pg.map(y=>{const T=y.mintransaction??"0.00",F=y.maxtransaction??"0.00",{amountList:q,minAmount:o,maxAmount:l}=j(Number(T),Number(F),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:y.pgindex,name:y.bankaccountname,amountList:q,min:o,max:l}});return{id:a.bankindex??0,name:a.banknameenglish??"",amountList:[],min:0,max:0,gateway:[L,...x]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:A,se=(e,t,n)=>{if(!n)return A;const c=M.auto;let a=[];const d=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")a=t.bank.map(p=>{const{amountList:_,minAmount:h,maxAmount:v}=j(p.minTransaction??0,p.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:p.pgindex,name:p.bankaccountname||"",amountList:_,min:h,max:v}});else{let p="0.00",_="0.00";for(let s=0;s<d.length;s++)d[s].bankindex===e.toString()&&(p=d[s].min,_=d[s].max);const{amountList:h,minAmount:v,maxAmount:L}=j(Number(p),Number(_),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),x={id:0,name:"autoChannel",amountList:h,min:v,max:L};a.push(x)}return{id:e,name:"autoMethod",type:c,promo:I(t.promo),bank:a,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ie=(e,t)=>{const n=M.fix;return{id:e,name:"fixAmountMethod",type:n,promo:I(t.promo),bank:t.bank.map(a=>{const d=a.amtlist.map(Number).sort((p,_)=>p-_);return{id:a.pgindex,name:a.name,amountList:a.amtlist,min:d.length>0?d[0]:0,max:d.length>0?d[d.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},re=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),le=e=>({username:e.username,birthday:e.mdUserDetail.dob,email:e.mdUserDetail.email,fullName:e.mdUserDetail.firstname,phoneNumber:e.mdUserDetail.mobileno,profilePicUrl:e.mdUserDetail.profile_pic}),ue=e=>e.mdGameListResult.map(t=>({code:t.code,id:t.id,name:t.name,nextPage:t.nextPage===1,list:t.mdPlatformProducts.map(n=>({id:Number(n.id),name:n.shortName,flag:n.flag,imageUrl:n.img,rate:"0.00"}))})),me=e=>({list:e.mdGrade.map(t=>({id:t.gradeindex,is_current_level:!1,name:t.grade_simplified,percentage:0,turnover:{isShow:!1,current:"0",total:t.min_activebet},deposit:{isShow:!1,current:"0",total:t.min_deposit},promo_list:t.promocash.filter(n=>n.isshow==1&&n.status=="1").map(n=>({name:n.promosimplified,min_deposit:n.min_deposit,promo_bonus:n.percentage,promo_limit:n.max_promo_amt,turnover_multiplier:n.multiply,type:n.promo_type})),benefit_list:t.benefit})),detail:[],bonus:{showMonthButton:!1,showWeekButton:!1,showDayButton:!1}}),ce=e=>({category:e.category.sort((t,n)=>t.sequence-n.sequence).map(t=>({id:t.catid,name:t.name})),list:e.list.sort((t,n)=>t.sequence-n.sequence).map(t=>{let n="";return t.stime!==""&&t.etime!==""&&(n=`${t.stime} - ${t.etime}`),t.stime!==""&&t.etime===""&&(n=t.stime),t.stime===""&&t.etime!==""&&(n=t.etime),{category_id:t.catid,img_url:t.banner,content:t.content,time:n,name:t.title}})}),de=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),pe=e=>e.mdVipSetting.filter(n=>n.status==1).map(n=>({fieldName:n.fieldname,showName:n.showname})),ge=e=>({current_deposit:e.deposit,current_turnover:e.turnOver,current_grade_id:e.mdCurrentGrade.gradeindex,next_grade_id:e.mdNextGrade.gradeindex,percentage:Number(e.percentage)*100}),fe=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let n=[];return e.extralivechat&&(n=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:n.filter(c=>c.status===1).map(c=>({name:c.name,image_url:c.imgname,url:c.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},ye=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let n=[];e.mobileAd&&(n=e.mobileAd);let c=[];return e.mobileAbout&&(c=e.mobileAbout),{banner:t.map(a=>`${a.imagepath}?${a.filemtime}`),ad:n.map(a=>`${a.imagepath}?${a.filemtime}`),about:c.map(a=>({name:a.name,content:a.content}))}},be=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),_e=e=>e,he=e=>{let t=null;return e?e.status!=1?t=0:t=e.mainwallet:t=0,{amount:t}},ve=e=>e.data.filter(t=>t.status=="1").map(t=>({name:t.title,icon_url:t.flag_icon,code:t.code})),xe=e=>(console.log(e),{name:""}),Se=e=>e.data.filter(t=>t.company_status==1).map(t=>({id:t.company_id,name:t.company_name,date:[]})),Le=e=>e.data.map(t=>({id:t.key,date:t.draw_date.map(n=>Te(n.draw_tmactive))}));function Te(e){const t=new Date(e*1e3),n=t.getFullYear(),c=("0"+(t.getMonth()+1)).slice(-2),a=("0"+t.getDate()).slice(-2);return`${n}-${c}-${a}`}const Re=e=>e.data.map(t=>({id:t.company_id,list:t.drawCount.map(n=>({combination:n.combination_combination,total:n.total}))})),Me=e=>e.data.map(t=>({id:t.company_id,resultByDateList:t.draws.map(n=>{const c=n.results.filter(s=>s.combination_dimension==3).map(s=>s.combination_combination),a=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==1).map(s=>s.combination_combination),d=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==2).map(s=>s.combination_combination),b=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==3).map(s=>s.combination_combination),p=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==4).map(s=>s.combination_combination),_=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==5).map(s=>s.combination_combination),h=n.results.filter(s=>s.combination_dimension==5&&s.combination_position==1).map(s=>s.combination_combination),v=n.results.filter(s=>s.combination_dimension==5).map(s=>s.combination_combination),L=n.results.filter(s=>s.combination_dimension==6&&s.combination_position==1).map(s=>s.combination_combination),x=n.results.filter(s=>s.combination_dimension==6).map(s=>s.combination_combination);return{date:n.date,3:c,4:{1:a,2:d,3:b,4:p,5:_},5:{1:h,all:v},6:{1:L,all:x}}})})),ke=e=>e.data.map(t=>({id:t.id,date:t.matchDate,tag:t.tag,away:{id:t.awayid,name:t.away,logo_url:t.awayLogo},home:{id:t.homeid,name:t.home,logo_url:t.homeLogo}})),J=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n,c,a,d,b,p,_,h,v,L;try{e.findIndex(l=>l.name===u.vipList)!==-1&&e.push({name:u.vipBonus,query:""},{name:u.vipFieldStatus,query:""},{name:u.vipStatus,query:""},{name:u.getSetting,query:JSON.stringify({name:["vipcalculation"]})}),e.findIndex(l=>l.name===u.gameList)!==-1&&e.push({name:u.getPlatformTurnoverRate,query:""});const y=e.findIndex(l=>l.name===u.getFourDimensionData);y!==-1&&e[y].query==""&&(e.splice(y),e.push({name:u.getFourDimensionData,query:JSON.stringify({action:"getCompany",native:"1"})},{name:u.getFourDimensionData,query:JSON.stringify({action:"searchResultDate",limit:100,company:[],native:"1",splitCompany:"1"})}));const F={requests:e.map(l=>({name:l.name,query:btoa(l.query)}))},q=await B.post("/jwt",te(JSON.stringify(F))),o={status:200,message:"",result:{}};for(const l of q.data.responses){l.error!=null&&l.error.code!=200&&(o.status=l.error.code,o.message=l.error.message);const g=l.attributes!==null&&l.attributes!==void 0?ne(l.attributes):null,i=l.name,r=g?JSON.parse(g):null;if(!r)o.result[i]=null;else switch(i){case u.announcement:o.result[i]=re(r);break;case u.gameList:o.result[i]=ue(r);break;case u.cmsList:o.result[i]=ye(r);break;case u.paymentsProvider:o.result[i]=oe(r);break;case u.getUserProfile:o.result[i]=le(r);break;case u.vipList:o.result[i]=me(r);break;case u.vipBonus:o.result[i]=de(r);break;case u.vipFieldStatus:o.result[i]=pe(r);break;case u.vipStatus:o.result[i]=ge(r);break;case u.promotion:o.result[i]=ce(r);break;case u.getSetting:o.result[i]=fe(r);break;case u.getCountryMobile:o.result[i]=be(r);break;case u.getPlatformTurnoverRate:o.result[i]=_e(r);break;case u.mainWallet:o.result[i]=he(r);break;case u.getLanguageSetting:o.result[i]=ve(r);break;case u.getFourDimensionData:o.result[i]=xe(r);break;case u.getCompany:o.result[i]=Se(r);break;case u.searchResultDate:o.result[i]=Le(r);break;case u.searchHot:o.result[i]=Re(r);break;case u.searchByDate:o.result[i]=Me(r);break;case u.upcomingMatches:o.result[i]=ke(r);break}}if(u.vipList in o.result&&((t=o.result)!=null&&t.vipList)){const l=o.result.vipList;let g=4;if(u.getSetting in o.result&&((n=o.result)!=null&&n.getSetting&&(g=o.result.getSetting.vip_calculation),delete o.result.getSetting),u.vipBonus in o.result&&((c=o.result)!=null&&c.vipBonus&&(l.bonus=o.result.vipBonus),delete o.result.vipBonus),u.vipStatus in o.result){if((a=o.result)!=null&&a.vipStatus){const i=o.result.vipStatus,{current_grade_id:r,current_deposit:R,current_turnover:D,percentage:G}=i,P=l.list.findIndex(S=>S.id===r);l.list=l.list.map((S,O)=>{const C=O===P;let k="0",m="0",$=0;return C?(k=`${Math.min(Number(R),Number(S.deposit.total))}`,m=`${Math.min(Number(D),Number(S.turnover.total))}`,$=G):O<P?(k=S.deposit.total,m=S.turnover.total,$=1):O>P&&(k="0.00",m="0.00",$=0),{...S,is_current_level:C,deposit:{...S.deposit,isShow:g===1||g===3||g===4,current:k},turnover:{...S.turnover,isShow:g===2||g===3||g===4,current:m},percentage:$}})}delete o.result.vipStatus}if(u.vipFieldStatus in o.result){if((d=o.result)!=null&&d.vipFieldStatus){const i=o.result.vipFieldStatus,r=[];r.push({name:"",code:"vipLevel",value:l.list.map(m=>m.name)});const R=i.findIndex(m=>m.fieldName=="upgrade_bonus");R>-1&&r.push({name:i[R].showName,code:"",value:l.list.map(m=>m.benefit_list.upgrade.bonus)});const D=i.findIndex(m=>m.fieldName=="upgrade_bonus_multiply");D>-1&&r.push({name:i[D].showName,code:"",value:l.list.map(m=>m.benefit_list.upgrade.turnover)});const G=i.findIndex(m=>m.fieldName=="monthly_bonus");G>-1&&r.push({name:i[G].showName,code:"",value:l.list.map(m=>m.benefit_list.monthly.bonus)});const P=i.findIndex(m=>m.fieldName=="monthly_bonus_multiply");P>-1&&r.push({name:i[P].showName,code:"",value:l.list.map(m=>m.benefit_list.monthly.turnover)});const S=i.findIndex(m=>m.fieldName=="weekly_bonus");S>-1&&r.push({name:i[S].showName,code:"",value:l.list.map(m=>m.benefit_list.weekly.bonus)});const O=i.findIndex(m=>m.fieldName=="weekly_bonus_multiply");O>-1&&r.push({name:i[O].showName,code:"",value:l.list.map(m=>m.benefit_list.weekly.turnover)});const C=i.findIndex(m=>m.fieldName=="daily_bonus");C>-1&&r.push({name:i[C].showName,code:"",value:l.list.map(m=>m.benefit_list.daily.bonus)});const k=i.findIndex(m=>m.fieldName=="daily_bonus_multiply");k>-1&&r.push({name:i[k].showName,code:"",value:l.list.map(m=>m.benefit_list.daily.turnover)}),(g===1||g===3||g===4)&&r.push({name:"",code:"detail_deposit",value:l.list.map(m=>m.deposit.total)}),(g===2||g===3||g===4)&&r.push({name:"",code:"detail_turnover",value:l.list.map(m=>m.turnover.total)}),l.detail=r}delete o.result.vipFieldStatus}o.result.vipList=l}if(u.gameList in o.result&&((b=o.result)!=null&&b.gameList)){const l=o.result.gameList;if(u.getPlatformTurnoverRate in o.result&&((p=o.result)!=null&&p.getPlatformTurnoverRate)){const g=o.result.getPlatformTurnoverRate;l.forEach(i=>{i.list=i.list.map(r=>{const R=g.find(D=>D.id===r.id);return{...r,rate:(R==null?void 0:R.percentage)??"0.00"}})}),delete o.result.getPlatformTurnoverRate}o.result.gameList=l}if(u.getCompany in o.result&&((_=o.result)!=null&&_.getCompany)){const l=o.result.getCompany;if(u.searchResultDate in o.result&&(h=o.result)!=null&&h.searchResultDate){const g=o.result.searchResultDate;l.forEach(i=>{const r=g.find(R=>R.id==i.id);r&&(i.date=r==null?void 0:r.date)}),delete o.result.searchResultDate}o.result.getCompany=l}return o}catch(x){return N.isAxiosError(x)?{status:((v=x.response)==null?void 0:v.status)||600,message:JSON.stringify((L=x.response)==null?void 0:L.data),result:{}}:(console.error(x),{status:x.status||500,message:x.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),w=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const n={status:200,message:""};return await B.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),n}catch(n){return console.error(`login: ${JSON.stringify(n)}`),{status:n.status||500,message:n.message}}}},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await B.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ee=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ne={api:J,loginApi:w,logoutApi:W,apiType:U,loginType:V,logoutType:H,announcementType:Y,paymentsProviderType:z,gameListType:K,vipListType:Q,promotionType:X,cmsListType:Z,mainWalletType:ee},De={install(e){e.config.globalProperties.$library=Ne}};f.Repository=De,f.announcementType=Y,f.api=J,f.apiType=U,f.cmsListType=Z,f.gameListType=K,f.loginApi=w,f.loginType=V,f.logoutApi=W,f.logoutType=H,f.mainWalletType=ee,f.paymentsProviderType=z,f.promotionType=X,f.vipListType=Q,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
|
package/dist/api/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiCnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CA4anB,CAAA"}
|
package/dist/api/type.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ import { getCompanyResponse } from '../model/getCompany/type';
|
|
|
18
18
|
import { searchResultDateResponse } from '../model/searchResultDate/type';
|
|
19
19
|
import { searchHotResponse } from '../model/searchHot/type';
|
|
20
20
|
import { searchByDateResponse } from '../model/searchByDate/type';
|
|
21
|
+
import { VipFieldStatusResponse } from '../model/vipFieldStatus/type';
|
|
22
|
+
import { upcomingMatchesResponse } from '../model/upcomingMatches/type';
|
|
21
23
|
|
|
22
24
|
export declare enum Api {
|
|
23
25
|
announcement = "announcement",
|
|
@@ -40,7 +42,8 @@ export declare enum Api {
|
|
|
40
42
|
getCompany = "getCompany",
|
|
41
43
|
searchResultDate = "searchResultDate",
|
|
42
44
|
searchHot = "searchHot",
|
|
43
|
-
searchByDate = "searchByDate"
|
|
45
|
+
searchByDate = "searchByDate",
|
|
46
|
+
upcomingMatches = "upcomingMatches"
|
|
44
47
|
}
|
|
45
48
|
export type ApiResponseMap = {
|
|
46
49
|
[Api.announcement]: AnnouncementResponse;
|
|
@@ -52,7 +55,7 @@ export type ApiResponseMap = {
|
|
|
52
55
|
[Api.vipList]: VipListResponse;
|
|
53
56
|
[Api.vipStatus]: VipStatusResponse;
|
|
54
57
|
[Api.vipBonus]: VipBonusResponse;
|
|
55
|
-
[Api.vipFieldStatus]:
|
|
58
|
+
[Api.vipFieldStatus]: VipFieldStatusResponse;
|
|
56
59
|
[Api.promotion]: PromotionResponse;
|
|
57
60
|
[Api.getSetting]: GetSettingResponse;
|
|
58
61
|
[Api.getCountryMobile]: getCountryMobileResponse;
|
|
@@ -64,6 +67,7 @@ export type ApiResponseMap = {
|
|
|
64
67
|
[Api.searchResultDate]: searchResultDateResponse;
|
|
65
68
|
[Api.searchHot]: searchHotResponse;
|
|
66
69
|
[Api.searchByDate]: searchByDateResponse;
|
|
70
|
+
[Api.upcomingMatches]: upcomingMatchesResponse;
|
|
67
71
|
};
|
|
68
72
|
export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
|
|
69
73
|
export type RequestPayload<T extends keyof ApiResponseMap> = {
|
package/dist/api/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/api/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACh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,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAClC,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACxC,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,uBAAuB,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAE3E,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC3D,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;KACrD,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;CACnC,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { upcomingMatchesResponse } from './type';
|
|
2
|
+
|
|
3
|
+
export declare const getUpcomingMatchesResponse: (raw: rawGetUpcomingMatchesResponse) => upcomingMatchesResponse;
|
|
4
|
+
type rawGetUpcomingMatchesResponse = {
|
|
5
|
+
status: number;
|
|
6
|
+
message: string | null;
|
|
7
|
+
errormessage: string | null;
|
|
8
|
+
data: {
|
|
9
|
+
away: string;
|
|
10
|
+
awayLogo: string;
|
|
11
|
+
awayid: string;
|
|
12
|
+
home: string;
|
|
13
|
+
homeLogo: string;
|
|
14
|
+
homeid: string;
|
|
15
|
+
id: number;
|
|
16
|
+
matchDate: string;
|
|
17
|
+
tag: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=getUpcomingMatchesResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUpcomingMatchesResponse.d.ts","sourceRoot":"","sources":["../../../src/model/upcomingMatches/getUpcomingMatchesResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAA;AAEhD,eAAO,MAAM,0BAA0B,QAChC,6BAA6B,KACjC,uBAkBF,CAAA;AAED,KAAK,6BAA6B,GAAG;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE,MAAM,CAAA;QACd,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,MAAM,CAAA;QACjB,GAAG,EAAE,MAAM,CAAA;KACZ,EAAE,CAAA;CACJ,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type upcomingMatchesResponse = {
|
|
2
|
+
id: number;
|
|
3
|
+
date: string;
|
|
4
|
+
tag: string;
|
|
5
|
+
away: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
logo_url: string;
|
|
9
|
+
};
|
|
10
|
+
home: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
logo_url: string;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/upcomingMatches/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VipFieldStatusResponse } from './type';
|
|
2
2
|
|
|
3
|
-
export declare const getVipFieldStatusResponse: (raw: RawVipFieldStatusResponse) => VipFieldStatusResponse
|
|
3
|
+
export declare const getVipFieldStatusResponse: (raw: RawVipFieldStatusResponse) => VipFieldStatusResponse;
|
|
4
4
|
type RawVipFieldStatusResponse = {
|
|
5
5
|
mdVipSetting: {
|
|
6
6
|
fieldname: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVipFieldStatusResponse.d.ts","sourceRoot":"","sources":["../../../src/model/vipFieldStatus/getVipFieldStatusResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAA;AAE/C,eAAO,MAAM,yBAAyB,QAC/B,yBAAyB,KAC7B,
|
|
1
|
+
{"version":3,"file":"getVipFieldStatusResponse.d.ts","sourceRoot":"","sources":["../../../src/model/vipFieldStatus/getVipFieldStatusResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAA;AAE/C,eAAO,MAAM,yBAAyB,QAC/B,yBAAyB,KAC7B,sBAUF,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,YAAY,EAAE;QACZ,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,MAAM,CAAA;QAChB,WAAW,EAAE,MAAM,CAAA;QACnB,MAAM,EAAE,MAAM,CAAA;KACf,EAAE,CAAA;CACJ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/vipFieldStatus/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/vipFieldStatus/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVipListResponse.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/getVipListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,kBAAkB,QAAS,kBAAkB,KAAG,eAwC5D,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAED,KAAK,OAAO,GAAG;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,SAAS,EAAE,CAAA;IACtB,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"getVipListResponse.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/getVipListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,kBAAkB,QAAS,kBAAkB,KAAG,eAwC5D,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAED,KAAK,OAAO,GAAG;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,SAAS,EAAE,CAAA;IACtB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,KAAK,OAAO,GAAG;IACb,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAA;QACb,UAAU,EAAE,MAAM,CAAA;QAClB,QAAQ,EAAE,MAAM,CAAA;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AAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,MAAM,CAAA;IACzB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,YAAY,EAAE,MAAM,CAAA;IACpB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
|
@@ -47,13 +47,18 @@ export type VipListResponse = {
|
|
|
47
47
|
turnover: string;
|
|
48
48
|
turnover_name: string;
|
|
49
49
|
};
|
|
50
|
-
}
|
|
50
|
+
};
|
|
51
51
|
}[];
|
|
52
|
-
detail:
|
|
52
|
+
detail: VipDetail;
|
|
53
53
|
bonus: {
|
|
54
54
|
showMonthButton: boolean;
|
|
55
55
|
showWeekButton: boolean;
|
|
56
56
|
showDayButton: boolean;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
+
export type VipDetail = {
|
|
60
|
+
code: string;
|
|
61
|
+
name: string;
|
|
62
|
+
value: string[];
|
|
63
|
+
}[];
|
|
59
64
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,gBAAgB,EAAE,OAAO,CAAA;QACzB,IAAI,EAAE,MAAM,CAAA;QACZ,UAAU,EAAE,MAAM,CAAA;QAClB,QAAQ,EAAE;YACR,MAAM,EAAE,OAAO,CAAA;YACf,OAAO,EAAE,MAAM,CAAA;YACf,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;QACD,OAAO,EAAE;YACP,MAAM,EAAE,OAAO,CAAA;YACf,OAAO,EAAE,MAAM,CAAA;YACf,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;QACD,UAAU,EAAE;YACV,IAAI,EAAE,MAAM,CAAA;YACZ,WAAW,EAAE,MAAM,CAAA;YACnB,WAAW,EAAE,MAAM,CAAA;YACnB,WAAW,EAAE,MAAM,CAAA;YACnB,mBAAmB,EAAE,MAAM,CAAA;YAC3B,IAAI,EAAE,MAAM,CAAA;SACb,EAAE,CAAA;QACH,YAAY,EAAE;YACZ,KAAK,EAAE;gBACL,KAAK,EAAE,MAAM,CAAA;gBACb,UAAU,EAAE,MAAM,CAAA;gBAClB,QAAQ,EAAE,MAAM,CAAA;gBAChB,aAAa,EAAE,MAAM,CAAA;aACtB,CAAA;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,MAAM,CAAA;gBACb,UAAU,EAAE,MAAM,CAAA;gBAClB,QAAQ,EAAE,MAAM,CAAA;gBAChB,aAAa,EAAE,MAAM,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