UNPKG

phx-node-test

Version:

PHX NODE

22 lines (21 loc) 992 B
import { HttpService } from "@nestjs/axios"; import { QueryOrPersistedId } from "./types"; export type GrpcRequestType = QueryOrPersistedId & { hostname: string; variables?: Record<string, any> | null | undefined; }; export type GrpcRequestDataCenterType = QueryOrPersistedId & { variables?: Record<string, any> | null | undefined; }; export declare class PHXGrpcClientSystemService { private readonly httpService; private readonly logger; private readonly internalGrpcGateway; private readonly projectSource; constructor(httpService: HttpService); debug(hostname: string): void; query({ query, variables, hostname, persistedId }: GrpcRequestType): Promise<any>; mutation({ query, variables, hostname, persistedId }: GrpcRequestType): Promise<any>; queryDataCenter({ query, variables, persistedId }: GrpcRequestDataCenterType): Promise<any>; mutationDataCenter({ query, variables, persistedId }: GrpcRequestDataCenterType): Promise<any>; }