32 lines
977 B
TypeScript
32 lines
977 B
TypeScript
import * as grpcWeb from 'grpc-web';
|
|
|
|
import * as printer_v1_pdf_invoice_pb from '../../printer/v1/pdf_invoice_pb';
|
|
|
|
|
|
export class PrinterServiceClient {
|
|
constructor (hostname: string,
|
|
credentials?: null | { [index: string]: string; },
|
|
options?: null | { [index: string]: any; });
|
|
|
|
invoiceGen(
|
|
request: printer_v1_pdf_invoice_pb.Invoice,
|
|
metadata: grpcWeb.Metadata | undefined,
|
|
callback: (err: grpcWeb.RpcError,
|
|
response: printer_v1_pdf_invoice_pb.DocumentResponse) => void
|
|
): grpcWeb.ClientReadableStream<printer_v1_pdf_invoice_pb.DocumentResponse>;
|
|
|
|
}
|
|
|
|
export class PrinterServicePromiseClient {
|
|
constructor (hostname: string,
|
|
credentials?: null | { [index: string]: string; },
|
|
options?: null | { [index: string]: any; });
|
|
|
|
invoiceGen(
|
|
request: printer_v1_pdf_invoice_pb.Invoice,
|
|
metadata?: grpcWeb.Metadata
|
|
): Promise<printer_v1_pdf_invoice_pb.DocumentResponse>;
|
|
|
|
}
|
|
|