You've already forked npm-core-sdk
173 lines
8.8 KiB
TypeScript
173 lines
8.8 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 { HttpBody } from "./google/api/httpbody";
|
|
import type { DownloadFileRequest } from "./tiny-url";
|
|
import type { GetLongURLResult } from "./tiny-url";
|
|
import type { GetLongURLRequest } 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";
|
|
// TODOs :
|
|
// - Parler avec Vincent de la compilation
|
|
// - Un endpoint sans rscType
|
|
// - TTL enum
|
|
// - Gestion UMA sans interceptor
|
|
// - k8sService
|
|
|
|
// ============ 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: GetLongURL
|
|
*/
|
|
getLongURL(input: GetLongURLRequest, options?: RpcOptions): UnaryCall<GetLongURLRequest, GetLongURLResult>;
|
|
/**
|
|
* @generated from protobuf rpc: DownloadFile
|
|
*/
|
|
downloadFile(input: DownloadFileRequest, options?: RpcOptions): UnaryCall<DownloadFileRequest, HttpBody>;
|
|
}
|
|
// TODOs :
|
|
// - Parler avec Vincent de la compilation
|
|
// - Un endpoint sans rscType
|
|
// - TTL enum
|
|
// - Gestion UMA sans interceptor
|
|
// - k8sService
|
|
|
|
// ============ 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: GetLongURL
|
|
*/
|
|
getLongURL(input: GetLongURLRequest, options?: RpcOptions): UnaryCall<GetLongURLRequest, GetLongURLResult> {
|
|
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetLongURLRequest, GetLongURLResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DownloadFile
|
|
*/
|
|
downloadFile(input: DownloadFileRequest, options?: RpcOptions): UnaryCall<DownloadFileRequest, HttpBody> {
|
|
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DownloadFileRequest, HttpBody>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|