Files
npm-core-sdk/notifInput.client.ts
2025-06-19 09:15:58 +00:00

44 lines
1.7 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "notifInput.proto" (package "api", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { NotifInputAPI } from "./notifInput";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { NotifCreatedResponse } from "./notifInput";
import type { NotifCreatedRequest } from "./notifInput";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
*
* API-server services
*
* @generated from protobuf service api.NotifInputAPI
*/
export interface INotifInputAPIClient {
/**
* @generated from protobuf rpc: Created
*/
created(input: NotifCreatedRequest, options?: RpcOptions): UnaryCall<NotifCreatedRequest, NotifCreatedResponse>;
}
/**
*
* API-server services
*
* @generated from protobuf service api.NotifInputAPI
*/
export class NotifInputAPIClient implements INotifInputAPIClient, ServiceInfo {
typeName = NotifInputAPI.typeName;
methods = NotifInputAPI.methods;
options = NotifInputAPI.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: Created
*/
created(input: NotifCreatedRequest, options?: RpcOptions): UnaryCall<NotifCreatedRequest, NotifCreatedResponse> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<NotifCreatedRequest, NotifCreatedResponse>("unary", this._transport, method, opt, input);
}
}