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 132x 43x 43x 43x 7x 46x 7x 43x 7x 14x 7x 11x 7x 18x | 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) |