You've already forked npm-core-sdk
70 lines
3.2 KiB
TypeScript
70 lines
3.2 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 type { NotifCustomFieldsUpdatedResponse } from "./notifInput";
|
|
import type { NotifCustomFieldsUpdatedRequest } from "./notifInput";
|
|
import type { NotifSanitisedResponse } from "./notifInput";
|
|
import type { NotifSanitisedRequest } 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>;
|
|
/**
|
|
* @generated from protobuf rpc: Sanitised
|
|
*/
|
|
sanitised(input: NotifSanitisedRequest, options?: RpcOptions): UnaryCall<NotifSanitisedRequest, NotifSanitisedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: CustomFieldsUpdated
|
|
*/
|
|
customFieldsUpdated(input: NotifCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<NotifCustomFieldsUpdatedRequest, NotifCustomFieldsUpdatedResponse>;
|
|
}
|
|
/**
|
|
*
|
|
* 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);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Sanitised
|
|
*/
|
|
sanitised(input: NotifSanitisedRequest, options?: RpcOptions): UnaryCall<NotifSanitisedRequest, NotifSanitisedResponse> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<NotifSanitisedRequest, NotifSanitisedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CustomFieldsUpdated
|
|
*/
|
|
customFieldsUpdated(input: NotifCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<NotifCustomFieldsUpdatedRequest, NotifCustomFieldsUpdatedResponse> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<NotifCustomFieldsUpdatedRequest, NotifCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|