hkjc-api
Version:
Node.js package for communicating with HKJC GraphQL API
328 lines (327 loc) • 7.96 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runningMatchQuery = exports.footballMatchDetailsQuery = exports.footballMatchesQuery = void 0;
exports.footballMatchesQuery = `
query matchList($startIndex: Int, $endIndex: Int,$startDate: String, $endDate: String, $matchIds: [String], $tournIds: [String], $fbOddsTypes: [FBOddsType]!, $fbOddsTypesM: [FBOddsType]!, $inplayOnly: Boolean, $featuredMatchesOnly: Boolean, $frontEndIds: [String], $earlySettlementOnly: Boolean, $showAllMatch: Boolean) {
matches(startIndex: $startIndex,endIndex: $endIndex, startDate: $startDate, endDate: $endDate, matchIds: $matchIds, tournIds: $tournIds, fbOddsTypes: $fbOddsTypesM, inplayOnly: $inplayOnly, featuredMatchesOnly: $featuredMatchesOnly, frontEndIds: $frontEndIds, earlySettlementOnly: $earlySettlementOnly, showAllMatch: $showAllMatch) {
id
frontEndId
matchDate
kickOffTime
status
updateAt
sequence
esIndicatorEnabled
homeTeam {
id
name_en
name_ch
}
awayTeam {
id
name_en
name_ch
}
tournament {
id
frontEndId
nameProfileId
isInteractiveServiceAvailable
code
name_en
name_ch
}
isInteractiveServiceAvailable
inplayDelay
venue {
code
name_en
name_ch
}
tvChannels {
code
name_en
name_ch
}
liveEvents {
id
code
}
featureStartTime
featureMatchSequence
poolInfo {
normalPools
inplayPools
sellingPools
ntsInfo
entInfo
definedPools
}
runningResult {
homeScore
awayScore
corner
homeCorner
awayCorner
}
runningResultExtra {
homeScore
awayScore
corner
homeCorner
awayCorner
}
adminOperation {
remark {
typ
}
}
foPools(fbOddsTypes: $fbOddsTypes) {
id
status
oddsType
instNo
inplay
name_ch
name_en
updateAt
expectedSuspendDateTime
lines {
lineId
status
condition
main
combinations {
combId
str
status
offerEarlySettlement
currentOdds
selections {
selId
str
name_ch
name_en
}
}
}
}
}
}
`;
exports.footballMatchDetailsQuery = `
query matchList($startIndex: Int, $endIndex: Int,$startDate: String, $endDate: String, $matchIds: [String], $tournIds: [String], $fbOddsTypes: [FBOddsType]!, $fbOddsTypesM: [FBOddsType]!, $inplayOnly: Boolean, $featuredMatchesOnly: Boolean, $frontEndIds: [String], $earlySettlementOnly: Boolean, $showAllMatch: Boolean) {
matches(startIndex: $startIndex,endIndex: $endIndex, startDate: $startDate, endDate: $endDate, matchIds: $matchIds, tournIds: $tournIds, fbOddsTypes: $fbOddsTypesM, inplayOnly: $inplayOnly, featuredMatchesOnly: $featuredMatchesOnly, frontEndIds: $frontEndIds, earlySettlementOnly: $earlySettlementOnly, showAllMatch: $showAllMatch) {
id
frontEndId
matchDate
kickOffTime
status
updateAt
sequence
esIndicatorEnabled
homeTeam {
id
name_en
name_ch
}
awayTeam {
id
name_en
name_ch
}
tournament {
id
frontEndId
nameProfileId
isInteractiveServiceAvailable
code
name_en
name_ch
}
isInteractiveServiceAvailable
inplayDelay
venue {
code
name_en
name_ch
}
tvChannels {
code
name_en
name_ch
}
liveEvents {
id
code
}
featureStartTime
featureMatchSequence
poolInfo {
normalPools
inplayPools
sellingPools
ntsInfo
entInfo
definedPools
}
runningResult {
homeScore
awayScore
corner
homeCorner
awayCorner
}
runningResultExtra {
homeScore
awayScore
corner
homeCorner
awayCorner
}
adminOperation {
remark {
typ
}
}
foPools(fbOddsTypes: $fbOddsTypes) {
id
status
oddsType
instNo
inplay
name_ch
name_en
updateAt
expectedSuspendDateTime
lines {
lineId
status
condition
main
combinations {
combId
str
status
offerEarlySettlement
currentOdds
selections {
selId
str
name_ch
name_en
}
}
}
}
}
}
`;
exports.runningMatchQuery = `
query matchList($startIndex: Int, $endIndex: Int,$startDate: String, $endDate: String, $matchIds: [String], $tournIds: [String], $fbOddsTypes: [FBOddsType]!, $fbOddsTypesM: [FBOddsType]!, $inplayOnly: Boolean, $featuredMatchesOnly: Boolean, $frontEndIds: [String], $earlySettlementOnly: Boolean, $showAllMatch: Boolean) {
matches(startIndex: $startIndex,endIndex: $endIndex, startDate: $startDate, endDate: $endDate, matchIds: $matchIds, tournIds: $tournIds, fbOddsTypes: $fbOddsTypesM, inplayOnly: $inplayOnly, featuredMatchesOnly: $featuredMatchesOnly, frontEndIds: $frontEndIds, earlySettlementOnly: $earlySettlementOnly, showAllMatch: $showAllMatch) {
id
frontEndId
matchDate
kickOffTime
status
updateAt
sequence
esIndicatorEnabled
homeTeam {
id
name_en
name_ch
}
awayTeam {
id
name_en
name_ch
}
tournament {
id
frontEndId
nameProfileId
isInteractiveServiceAvailable
code
name_en
name_ch
}
isInteractiveServiceAvailable
inplayDelay
venue {
code
name_en
name_ch
}
tvChannels {
code
name_en
name_ch
}
liveEvents {
id
code
}
featureStartTime
featureMatchSequence
poolInfo {
normalPools
inplayPools
sellingPools
ntsInfo
entInfo
definedPools
}
runningResult {
homeScore
awayScore
corner
homeCorner
awayCorner
}
runningResultExtra {
homeScore
awayScore
corner
homeCorner
awayCorner
}
adminOperation {
remark {
typ
}
}
foPools(fbOddsTypes: $fbOddsTypes) {
id
status
oddsType
instNo
inplay
name_ch
name_en
updateAt
expectedSuspendDateTime
lines {
lineId
status
condition
main
combinations {
combId
str
status
offerEarlySettlement
currentOdds
selections {
selId
str
name_ch
name_en
}
}
}
}
}
}
`;