UNPKG

zaions-tool-kit

Version:

Zaions Tool Kit, this is generic tool kit package created by Zaions Dev Team (https://zaions.com), there are two other packages named "@zaionsofficial/server-tool-kit" and "@zaionsofficial/client-tool-kit" while this package is generic and contains code w

2 lines 8.25 kB
import {a,A as A$1}from'./chunk-EL7SDNMU.mjs';var c=(a=>(a[a.add=1]="add",a[a.subtract=2]="subtract",a))(c||{}),d=(a=>(a[a.exact=1]="exact",a[a.percentage=2]="percentage",a))(d||{}),C=(e=>(e[e.topup=1]="topup",e[e.withdraw=2]="withdraw",e[e.transferred=3]="transferred",e[e.received=4]="received",e[e.wonGameRoomPoolPrice=5]="wonGameRoomPoolPrice",e[e.gameRoomFeeReturnedAfterReleased=6]="gameRoomFeeReturnedAfterReleased",e[e.lostGameRoom=7]="lostGameRoom",e[e.coinsAddedByAdmin=8]="coinsAddedByAdmin",e[e.coinsRemovedByAdmin=9]="coinsRemovedByAdmin",e[e.earnedGameRoomEngagerFee=10]="earnedGameRoomEngagerFee",e))(C||{}),u=(s=>(s[s.allUsers=1]="allUsers",s[s.allAdmins=2]="allAdmins",s[s.allEngagers=3]="allEngagers",s[s.allPlayers=4]="allPlayers",s[s.allEngagersAndPlayers=5]="allEngagersAndPlayers",s[s.specificUsers=6]="specificUsers",s))(u||{}),f=(t=>(t[t.sent=1]="sent",t[t.pending=2]="pending",t[t.draft=3]="draft",t))(f||{}),p=(s=>(s[s.waitingForPlayers=1]="waitingForPlayers",s[s.inProgress=2]="inProgress",s[s.waitingForResult=3]="waitingForResult",s[s.completed=4]="completed",s[s.waitingForEngager=5]="waitingForEngager",s[s.released=6]="released",s))(p||{}),h=(l=>(l[l.processing=1]="processing",l[l.completed=2]="completed",l[l.rejected=3]="rejected",l[l.cancelled=4]="cancelled",l))(h||{}),w=(i=>(i[i.paymentVerificationRequired=1]="paymentVerificationRequired",i[i.waitingForReview=2]="waitingForReview",i[i.completed=3]="completed",i[i.rejected=4]="rejected",i[i.cancelled=5]="cancelled",i))(w||{}),A=(e=>(e[e.topup=1]="topup",e[e.withdraw=2]="withdraw",e[e.transfer=3]="transfer",e[e.received=4]="received",e[e.wonGameRoomPoolPrice=5]="wonGameRoomPoolPrice",e[e.gameRoomFeeReturnedAfterReleased=6]="gameRoomFeeReturnedAfterReleased",e[e.lostGameRoom=7]="lostGameRoom",e[e.coinsAddedByAdmin=8]="coinsAddedByAdmin",e[e.coinsRemovedByAdmin=9]="coinsRemovedByAdmin",e[e.earnedGameRoomEngagerFee=10]="earnedGameRoomEngagerFee",e))(A||{}),g=(a=>(a[a.add=0]="add",a[a.remove=1]="remove",a))(g||{}),I=(r=>(r[r.pubg=1]="pubg",r[r.ludoStar=2]="ludoStar",r[r.freeFire=3]="freeFire",r[r.callOfDuty=4]="callOfDuty",r[r.roblox=5]="roblox",r[r.eightBallPool=6]="eightBallPool",r[r.amongUs=7]="amongUs",r[r.uno=8]="uno",r[r.miniMilitia=9]="miniMilitia",r[r.carrom=10]="carrom",r[r.tennisClash=11]="tennisClash",r[r.chess=12]="chess",r[r.asphalt9=13]="asphalt9",r[r.golfBattle=14]="golfBattle",r[r.arenaBreakout=15]="arenaBreakout",r))(I||{});a(c,"duplicate values in BalanceUpdateActionEnum");a(d,"duplicate values in BalanceUpdateTypeEnum");a(C,"duplicate values in PlayerBalanceUpdateRequestTypeEnum");a(u,"duplicate values in InAppNotificationSendToEnum");a(f,"duplicate values in InAppNotificationStatusEnum");a(p,"duplicate values in GameRoomStatusEnum");a(h,"duplicate values in WithdrawRequestStatusEnum");a(w,"duplicate values in TopupStatusEnum");a(A,"duplicate values in TransactionTypeEnum");a(g,"duplicate values in CoinManagementActionEnum");a(I,"duplicate values in GameTypeEnum");var v=n=>({gameRoom:{leaveFee:{amount:0,type:1}},topup:{minTopupAmountAllowed:n.isDevelopment?1:100},withdraw:{minWithdrawAmountAllowed:n.isDevelopment?1:1e3},transfer:{minTransferAmountAllowed:n.isDevelopment?1:100}}),M={transfer:{maxPlayerPhoneNumber:100,minPlayerPhoneNumber:13}},x={engagerStartTime:15,playerJoinTime:5},R={user:{camelCase:"Users",smallerCase:"users",upperCase:"USERS",singularCamelCase:"User",singularSmallerCase:"user",singularUpperCase:"USER"},engager:{camelCase:"Engagers",smallerCase:"engagers",upperCase:"ENGAGERS",singularCamelCase:"Engager",singularSmallerCase:"engager",singularUpperCase:"ENGAGER"},player:{camelCase:"Players",smallerCase:"players",upperCase:"PLAYERS",singularCamelCase:"Player",singularSmallerCase:"player",singularUpperCase:"PLAYER"},topup:{camelCase:"Mawinga Coins",smallerCase:"mawinga coins",upperCase:"MAWINGA COINS",singularCamelCase:"Mawinga Coin",singularSmallerCase:"mawinga coin",singularUpperCase:"MAWINGA COIN"},withdraw:{camelCase:"Gift Coins to Mawinga",smallerCase:"gift coins to mawinga",upperCase:"GIFT COINS TO MAWINGA",singularCamelCase:"Gift Coin to Mawinga",singularSmallerCase:"gift coin to mawinga",singularUpperCase:"GIFT COIN TO MAWINGA"},transferCoin:{camelCase:"Gift Coins To Players",smallerCase:"gift coins to players",upperCase:"GIFT COINS TO PLAYERS",singularCamelCase:"Gift Coins To Player",singularSmallerCase:"gift coins to player",singularUpperCase:"GIFT COINS TO PLAYER"},gameRoom:{camelCase:"Game Rooms",smallerCase:"game rooms",upperCase:"GAME ROOMS",singularCamelCase:"Game Room",singularSmallerCase:"game room",singularUpperCase:"GAME ROOM"},game:{camelCase:"Games",smallerCase:"games",upperCase:"GAMES",singularCamelCase:"Game",singularSmallerCase:"game",singularUpperCase:"GAME"},role:{camelCase:"Roles",smallerCase:"roles",upperCase:"ROLES",singularCamelCase:"Role",singularSmallerCase:"role",singularUpperCase:"ROLE"},permission:{camelCase:"Permissions",smallerCase:"permissions",upperCase:"PERMISSIONS",singularCamelCase:"Permission",singularSmallerCase:"permission",singularUpperCase:"PERMISSION"},coinManagement:{camelCase:"Coin Managements",smallerCase:"coin managements",upperCase:"COIN MANAGEMENTS",singularCamelCase:"Coin Management",singularSmallerCase:"coin management",singularUpperCase:"COIN MANAGEMENT"},amount:{camelCase:"No. of Coins",smallerCase:"no. of coins",upperCase:"NO. OF COINS",singularCamelCase:"No. of Coin",singularSmallerCase:"no. of coin",singularUpperCase:"NO. OF COIN",column:"No. of Coins",inBetween:"no. of coins"}};var N=n=>{var F,a;return {validation:{selectMinimumOneOption:"Select minimum one option.",phoneNumberLengthError:`Phone number must be ${A$1.generic.phoneNumber.max.val} digits.`,minReferralCodeError:"Referral code must be at least 6 digits.",withdrawOptionsRequired:"Withdraw options are required.",passwordNotMatchError:"The password did not match.",confirmTextNotMatch:"Confirm text does not match.",invalidReason:"Please add a valid reason.",maxPlayersShouldBeGreaterOrEqualToMinPlayers:"Max players should be greater or equal to min players to start the game.",authCheckFailed:"Check failed.",userAlreadyExists:"User with this email or phone number already exists.",invalidCredential:"Invalid credential.",nameRequired:"Name is required.",descriptionRequired:"Description is required.",invalidAmount:"Invalid amount.",amountRequired:"The amount is required.",amountMustBeGreaterThanOrEqualTo:`Amount must be greater than or equal to ${(a=(F=v(n))==null?void 0:F.transfer)==null?void 0:a.minTransferAmountAllowed}`,phoneNumberMustStartWithCode:"Phone number must start with +92",notificationDescriptionLengthError:`Description must contain at most ${A$1.generic.description.short.max} character(s).`},game:{gameCreated:"Game created successfully.",gameUpdated:"Game updated successfully.",gameDeleted:"Game deleted successfully.",gameNotFound:"Game not found.",noGameIdProvided:"No game ID provided!",gameRoomJoined:"Successfully joined the game room.",gameRoomLeaved:"Successfully left the game room.",gameRoomStarted:"The game has started.",gameRoomReleased:"The game has been released."},request:{requestUpdated:"Request updated successfully.",topupRequestSend:"Topup request sent successfully. Please wait for review.",topupRequestAdded:"Topup request added successfully.",topupRequestUpdated:"Topup request updated successfully.",topupVerifiedRequestSend:"Verification information sent successfully. Please wait for review.",withdrawRequestSend:"Withdraw request sent successfully. Please wait for review."},transfer:{transferCoinSuccessfully:"Transfer completed successfully."},notification:{notificationSend:"Notification sent successfully.",notificationUpdatedSuccessfully:"Notification updated successfully.",notificationDeletedSuccessfully:"Notification deleted successfully.",notificationNotFound:"Notification not found.",selectUsersToSendNotification:"Please select users you want to send this notification to."},network:{networkDisconnected:"Network disconnected."}}};var O=[0,1];export{c as a,d as b,C as c,u as d,f as e,p as f,h as g,w as h,A as i,g as j,I as k,v as l,M as m,x as n,R as o,N as p,O as q};//# sourceMappingURL=chunk-YKREPC4C.mjs.map //# sourceMappingURL=chunk-YKREPC4C.mjs.map