Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 7x 136x 44x 44x 44x 7x 47x 7x 44x 7x 15x 7x 11x 7x 19x | import { CustomerVariables, GetVariableResult } from './customer-variables'
import { CustomerVariableType } from './types'
const extractVariable = (result: GetVariableResult) => result.value
export const getAgentUri = async (variables: CustomerVariables) => `/${await getAgentDownloadPath(variables)}`
export const getResultUri = async (variables: CustomerVariables) => `/${await getResultPath(variables)}(/.*)?`
export const getStatusUri = () => `/status`
export const getAgentDownloadPath = async (variables: CustomerVariables) =>
variables.getVariable(CustomerVariableType.AgentDownloadPath).then(extractVariable)
export const getResultPath = async (variables: CustomerVariables) =>
variables.getVariable(CustomerVariableType.GetResultPath).then(extractVariable)
export const getPreSharedSecret = async (variables: CustomerVariables) =>
variables.getVariable(CustomerVariableType.PreSharedSecret).then(extractVariable)
export const getFpCdnUrl = async (variables: CustomerVariables) =>
variables.getVariable(CustomerVariableType.FpCdnUrl).then(extractVariable)
export const getFpIngressBaseHost = async (variables: CustomerVariables) =>
variables.getVariable(CustomerVariableType.FpIngressBaseHost).then(extractVariable)
|