UNPKG

phx-node-test

Version:

PHX NODE

25 lines (24 loc) 1.01 kB
import { HttpService } from "@nestjs/axios"; import { ConfigService } from "@nestjs/config"; export interface GrpcRequestType { query: string; hostname: string; variables?: Record<string, any> | null | undefined; } export interface GrpcRequestDataCenterType { query: string; variables?: Record<string, any> | null | undefined; } export declare class PHXGrpcClientSystemService { private readonly httpService; private readonly configService; private readonly logger; private readonly internalGrpcGateway; private readonly projectSource; constructor(httpService: HttpService, configService: ConfigService); debug(hostname: string): void; query({ query, variables, hostname, }: GrpcRequestType): Promise<any>; mutation({ query, variables, hostname, }: GrpcRequestType): Promise<any>; queryDataCenter({ query, variables, }: GrpcRequestDataCenterType): Promise<any>; mutationDataCenter({ query, variables, }: GrpcRequestDataCenterType): Promise<any>; }