phx-node
Version:
PHX NODE
24 lines (23 loc) • 1.19 kB
TypeScript
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>;
queryDevPortal({ query, variables, persistedId, }: GrpcRequestDataCenterType): Promise<any>;
mutationDevPortal({ query, variables, persistedId, }: GrpcRequestDataCenterType): Promise<any>;
}