1 import { HTTP_ERROR_CODES } from '../errors';
3 export const getClientVPNInfo = () => ({
8 export const queryVPNCountriesCount = () => ({
10 url: 'vpn/countries/count',
13 export const queryVPNLogicalServerInfo = () => ({
18 export const queryVPNLogicalServerInfoCount = () => ({
20 url: 'vpn/logicals/count',
26 export const queryVPNServersCount = () => ({
28 url: 'vpn/v1/servers-count',
31 export const getLocation = () => ({
34 ignoreHandler: [HTTP_ERROR_CODES.TOO_MANY_REQUESTS],
37 export const getVPNServerConfig = ({ LogicalID, ServerID, Country, Category, Tier, Platform, Protocol }: any) => ({
40 output: 'arrayBuffer',
41 params: { LogicalID, ServerID, Country, Category, Tier, Platform, Protocol },
44 export const resetVPNSettings = () => ({
46 url: 'vpn/settings/reset',