phx-node-test-1
Version:
PHX NODE
23 lines (22 loc) • 893 B
TypeScript
import { HttpService } from "@nestjs/axios";
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 logger;
private readonly grpcGatewayUrl;
private readonly projectSource;
constructor(httpService: HttpService);
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>;
}