Members
(constant) API_PATH
- Source:
(constant) API_URLS
- Source:
(constant) BET_STATUS
- Source:
(constant) BET_TYPES
- Source:
(constant) BET_TYPES_VALUES
- Source:
(constant) CNT_PATH
- Source:
(constant) CONFIRM_MODAL_CONTENT
- Source:
(constant) COUNTRIES
- Source:
(constant) COUNTRY_TIMEZONE
- Source:
(constant) COUNTRY_TIMEZONES
- Source:
(constant) COUPONS_TYPE
- Source:
(constant) COUPON_PAGES
- Source:
(constant) DEFAULT_PAGE_SIZE
- Source:
(constant) DEFAULT_TIMEZONE
- Source:
(constant) DIGITS
- Source:
(constant) EDIT_USER_MODAL_MESSAGE
- Source:
(constant) ENABLED_ROUND_SHIFT_LEAGUES_MATCH_DURATION
- Source:
(constant) ERRORS
- Source:
(constant) GAMES_SETTINGS_SHOP_FIELDS
- Source:
(constant) GAME_SETTINGS_SHOP_LEAGUES
- Source:
(constant) GAME_STATUS
- Source:
(constant) IMG_PATH
- Source:
(constant) LEAGUE_POSITION_MAP
- Source:
(constant) LOCAL_STORAGE_KEYS
- Source:
(constant) MANIPULATIONS
- Source:
(constant) MENU
- Source:
(constant) MENU_ICONS
- Source:
(constant) MENU_ITEMS
- Source:
(constant) MENU_ROUTES
- Source:
(constant) MODALS
- Source:
(constant) MONTH_NAMES
- Source:
(constant) ODDS_TEMPLATES_FILES_TXT
- Source:
(constant) PAGES
- Source:
(constant) PERMISSIONS
- Source:
(constant) ROLE_STATUS
- Source:
(constant) ROUND_STATUS
- Source:
(constant) ROUND_STATUS_ID
- Source:
(constant) ROUND_TYPE
- Source:
(constant) STATIC_VERSION
- Source:
(constant) STATS_TEMPLATES_FILES_TXT
- Source:
(constant) STATUS_CODE_ERROR_MESSAGE
- Source:
(constant) SUCCESS_MODALS
- Source:
(constant) SVG_ICONS
- Source:
(constant) convertDateTimeToNigerian
- Description:
adjusts date and time according to Nigerian timezone uses "en-GB" option to obtain specific format "29/08/2022, 08:11:00"
- Source:
adjusts date and time according to Nigerian timezone uses "en-GB" option to obtain specific format "29/08/2022, 08:11:00"
(constant) desc30
- Source:
(constant) getDateIntervalLastYearToNextYear
- Description:
get date interval from (currentDate, currentMonth, currentYear - 1) to (currentDate,currentMonth, currentYear + 1)
- Source:
get date interval from (currentDate, currentMonth, currentYear - 1) to (currentDate,currentMonth, currentYear + 1)
Methods
(async, generator) campaignDetailsRequestSaga(action)
- Description:
Request campaign details
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator) campaignReportRequestSaga(action)
- Description:
Request campaign report
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
convertBEFormatToInteger(num) → {number}
- Description:
converts BE number format into integer
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
num |
number |
Returns:
formatted number
- Type
- number
convertEmptyInputToZero(obj) → {object}
- Description:
replaces empty values in object by 0
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
object |
Returns:
updated object
- Type
- object
convertToPercentage(num, decimalPlaces) → {number}
- Description:
converts number to percentage
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
num |
number | |
decimalPlaces |
number |
Returns:
formatted number
- Type
- number
(async, generator) createFreeBetsCampaignSaga(action)
- Description:
Create freeBets campaign
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
createOlafApplication() → {Application}
- Description:
Olaf function to create usable aplications with passed routes, reducers, sagas and so on
- Source:
Returns:
- Type
- Application
(async, generator) deleteCampaignSaga(action)
- Description:
Shop freebets delete specific campaign
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator) editCampaignSaga(action)
- Description:
Edit freeBets campaign
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator) editUserListSaga(action)
- Description:
Update userList for shop freebets campaign
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
formatFullDateString(date) → {string}
- Description:
format date string according to format 2021-09-27
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
date |
Date |
Returns:
2021-09-27
- Type
- string
formatPercentageToFitBE(num) → {number}
- Description:
converts number back to format used on BE
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
num |
number |
Returns:
formatted
- Type
- number
formatTimer(milliseconds) → {string}
- Description:
format time to hh:mm:ss.sss
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
milliseconds |
integer |
Returns:
string
- Type
- string
(generator) getFreeBetsCampaignsSaga(action)
- Description:
Get freeBets campaigns list
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(generator) invalidateOddsSaga(action)
- Description:
Invalidate Odds
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
padToNDigits(num, digit) → {string}
- Source:
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
num |
number | ||
digit |
integer |
2
|
Returns:
- Type
- string
parseRoute(pathname) → {object}
- Description:
Getting page name and section in sidebar from route pathname
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
pathname |
string |
Returns:
- Type
- object
render() → {view}
- Description:
Render
- Source:
Returns:
- Type
- view
requestPostFormData(url, data, session) → {void}
- Description:
Requesr for Content-Type: multipart/form-data;
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
url |
string | |
data |
FormData | |
session |
boolean |
Returns:
- Type
- void
setFilterFromUrl(url, filterField) → {string}
- Description:
Getting Filter from URL for setting as default upon page refresh
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
url |
string | |
filterField |
string |
Returns:
- Type
- string
(generator) setPaidStatusToWontPay(action)
- Description:
Set coupon as Won't Pay
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator) toggleAssinationSaga(action)
- Description:
Toggle Assignation for freebets campaign
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator) toggleUsageSaga(action)
- Description:
Toggle Usage for freebets campaign
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator) updateEndTimeSaga(action)
- Description:
Update endTime for campaign
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(generator) updateSettledCouponsSaga(action)
- Description:
update settled coupon list
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(generator) voidCouponSaga(action)
- Description:
Void Coupon
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |