Files
npm-core-sdk/tiny-url.client.ts
2025-07-01 08:57:10 +00:00

172 lines
9.4 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "tiny-url.proto" (package "api", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { TinyURLService } from "./tiny-url";
import type { DeleteAllTinyURLsResult } from "./tiny-url";
import type { DeleteAllTinyURLsRequest } from "./tiny-url";
import type { GetPartnerAppTinyURLResult } from "./tiny-url";
import type { GetPartnerAppTinyURLRequest } from "./tiny-url";
import type { GetSiteTinyURLResult } from "./tiny-url";
import type { GetSiteTinyURLRequest } from "./tiny-url";
import type { DeletePartnerAppTinyURLResponse } from "./tiny-url";
import type { DeletePartnerAppTinyURLRequest } from "./tiny-url";
import type { DeleteSiteTinyURLResponse } from "./tiny-url";
import type { DeleteSiteTinyURLRequest } from "./tiny-url";
import type { ListPartnerAppTinyURLsResponse } from "./tiny-url";
import type { ListPartnerAppTinyURLsRequest } from "./tiny-url";
import type { ListSiteTinyURLsResponse } from "./tiny-url";
import type { ListSiteTinyURLsRequest } from "./tiny-url";
import type { UploadPartnerAppFileResponse } from "./tiny-url";
import type { UploadPartnerAppFileRequest } from "./tiny-url";
import type { UploadSiteFileResponse } from "./tiny-url";
import type { UploadSiteFileRequest } from "./tiny-url";
import type { ShortenPartnerAppURLResult } from "./tiny-url";
import type { ShortenPartnerAppURLRequest } from "./tiny-url";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { ShortenSiteURLResult } from "./tiny-url";
import type { ShortenSiteURLRequest } from "./tiny-url";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
// ============ SERVICE DESCRIPTION ============
/**
* @generated from protobuf service api.TinyURLService
*/
export interface ITinyURLServiceClient {
/**
* @generated from protobuf rpc: ShortenSiteURL
*/
shortenSiteURL(input: ShortenSiteURLRequest, options?: RpcOptions): UnaryCall<ShortenSiteURLRequest, ShortenSiteURLResult>;
/**
* @generated from protobuf rpc: ShortenPartnerAppURL
*/
shortenPartnerAppURL(input: ShortenPartnerAppURLRequest, options?: RpcOptions): UnaryCall<ShortenPartnerAppURLRequest, ShortenPartnerAppURLResult>;
/**
* @generated from protobuf rpc: UploadSiteFile
*/
uploadSiteFile(input: UploadSiteFileRequest, options?: RpcOptions): UnaryCall<UploadSiteFileRequest, UploadSiteFileResponse>;
/**
* @generated from protobuf rpc: UploadPartnerAppFile
*/
uploadPartnerAppFile(input: UploadPartnerAppFileRequest, options?: RpcOptions): UnaryCall<UploadPartnerAppFileRequest, UploadPartnerAppFileResponse>;
/**
* @generated from protobuf rpc: ListSiteTinyURLs
*/
listSiteTinyURLs(input: ListSiteTinyURLsRequest, options?: RpcOptions): UnaryCall<ListSiteTinyURLsRequest, ListSiteTinyURLsResponse>;
/**
* @generated from protobuf rpc: ListPartnerAppTinyURLs
*/
listPartnerAppTinyURLs(input: ListPartnerAppTinyURLsRequest, options?: RpcOptions): UnaryCall<ListPartnerAppTinyURLsRequest, ListPartnerAppTinyURLsResponse>;
/**
* @generated from protobuf rpc: DeleteSiteTinyURL
*/
deleteSiteTinyURL(input: DeleteSiteTinyURLRequest, options?: RpcOptions): UnaryCall<DeleteSiteTinyURLRequest, DeleteSiteTinyURLResponse>;
/**
* @generated from protobuf rpc: DeletePartnerAppTinyURL
*/
deletePartnerAppTinyURL(input: DeletePartnerAppTinyURLRequest, options?: RpcOptions): UnaryCall<DeletePartnerAppTinyURLRequest, DeletePartnerAppTinyURLResponse>;
/**
* @generated from protobuf rpc: GetSiteTinyURL
*/
getSiteTinyURL(input: GetSiteTinyURLRequest, options?: RpcOptions): UnaryCall<GetSiteTinyURLRequest, GetSiteTinyURLResult>;
/**
* @generated from protobuf rpc: GetPartnerAppTinyURL
*/
getPartnerAppTinyURL(input: GetPartnerAppTinyURLRequest, options?: RpcOptions): UnaryCall<GetPartnerAppTinyURLRequest, GetPartnerAppTinyURLResult>;
/**
* @generated from protobuf rpc: DeleteAll
*/
deleteAll(input: DeleteAllTinyURLsRequest, options?: RpcOptions): UnaryCall<DeleteAllTinyURLsRequest, DeleteAllTinyURLsResult>;
}
// ============ SERVICE DESCRIPTION ============
/**
* @generated from protobuf service api.TinyURLService
*/
export class TinyURLServiceClient implements ITinyURLServiceClient, ServiceInfo {
typeName = TinyURLService.typeName;
methods = TinyURLService.methods;
options = TinyURLService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: ShortenSiteURL
*/
shortenSiteURL(input: ShortenSiteURLRequest, options?: RpcOptions): UnaryCall<ShortenSiteURLRequest, ShortenSiteURLResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<ShortenSiteURLRequest, ShortenSiteURLResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ShortenPartnerAppURL
*/
shortenPartnerAppURL(input: ShortenPartnerAppURLRequest, options?: RpcOptions): UnaryCall<ShortenPartnerAppURLRequest, ShortenPartnerAppURLResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<ShortenPartnerAppURLRequest, ShortenPartnerAppURLResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UploadSiteFile
*/
uploadSiteFile(input: UploadSiteFileRequest, options?: RpcOptions): UnaryCall<UploadSiteFileRequest, UploadSiteFileResponse> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<UploadSiteFileRequest, UploadSiteFileResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UploadPartnerAppFile
*/
uploadPartnerAppFile(input: UploadPartnerAppFileRequest, options?: RpcOptions): UnaryCall<UploadPartnerAppFileRequest, UploadPartnerAppFileResponse> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<UploadPartnerAppFileRequest, UploadPartnerAppFileResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListSiteTinyURLs
*/
listSiteTinyURLs(input: ListSiteTinyURLsRequest, options?: RpcOptions): UnaryCall<ListSiteTinyURLsRequest, ListSiteTinyURLsResponse> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<ListSiteTinyURLsRequest, ListSiteTinyURLsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListPartnerAppTinyURLs
*/
listPartnerAppTinyURLs(input: ListPartnerAppTinyURLsRequest, options?: RpcOptions): UnaryCall<ListPartnerAppTinyURLsRequest, ListPartnerAppTinyURLsResponse> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<ListPartnerAppTinyURLsRequest, ListPartnerAppTinyURLsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteSiteTinyURL
*/
deleteSiteTinyURL(input: DeleteSiteTinyURLRequest, options?: RpcOptions): UnaryCall<DeleteSiteTinyURLRequest, DeleteSiteTinyURLResponse> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteSiteTinyURLRequest, DeleteSiteTinyURLResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeletePartnerAppTinyURL
*/
deletePartnerAppTinyURL(input: DeletePartnerAppTinyURLRequest, options?: RpcOptions): UnaryCall<DeletePartnerAppTinyURLRequest, DeletePartnerAppTinyURLResponse> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<DeletePartnerAppTinyURLRequest, DeletePartnerAppTinyURLResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetSiteTinyURL
*/
getSiteTinyURL(input: GetSiteTinyURLRequest, options?: RpcOptions): UnaryCall<GetSiteTinyURLRequest, GetSiteTinyURLResult> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteTinyURLRequest, GetSiteTinyURLResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetPartnerAppTinyURL
*/
getPartnerAppTinyURL(input: GetPartnerAppTinyURLRequest, options?: RpcOptions): UnaryCall<GetPartnerAppTinyURLRequest, GetPartnerAppTinyURLResult> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<GetPartnerAppTinyURLRequest, GetPartnerAppTinyURLResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteAll
*/
deleteAll(input: DeleteAllTinyURLsRequest, options?: RpcOptions): UnaryCall<DeleteAllTinyURLsRequest, DeleteAllTinyURLsResult> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteAllTinyURLsRequest, DeleteAllTinyURLsResult>("unary", this._transport, method, opt, input);
}
}