UNPKG

mysterium-vpn-js

Version:
44 lines (43 loc) 1.25 kB
/** * Copyright (c) 2020 BlockDev AG * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { Quality } from './quality'; import { AccessPolicyRef } from '../access-policy/access-policy'; import { ServiceLocation } from './service-location'; import { Price } from './price'; export interface Proposal { format: string; compatibility: number; providerId: string; serviceType: string; location: ServiceLocation; price: Price; quality?: Quality; accessPolicies?: AccessPolicyRef[]; } export declare function parseProposal(data: any): Proposal; export interface ProposalQuery { presetId?: number; providerId?: string; from?: string; serviceType?: string; locationCountry?: string; accessPolicy?: string; accessPolicySource?: string; ipType?: string; priceGibMax?: number; priceHourMax?: number; compatibilityMin?: number; compatibilityMax?: number; natCompatibility?: string; qualityMin?: number; includeMonitoringFailed?: boolean; } interface ProposalList { proposals: Proposal[]; } export declare function parseProposalList(responseData: any): ProposalList; export {};