@aneoconsultingfr/armonik.api
Version:
gRPC API to interact with ArmoniK built for the web
28 lines (25 loc) • 911 B
JavaScript
import {
ListApplicationsRequest,
ListApplicationsResponse
} from "./chunk-CRED76GY.mjs";
// src/generated/applications_service.ts
import _m0 from "protobufjs/minimal.js";
var protobufPackage = "armonik.api.grpc.v1.applications";
var ApplicationsServiceName = "armonik.api.grpc.v1.applications.Applications";
var ApplicationsClientImpl = class {
constructor(rpc, opts) {
this.service = (opts == null ? void 0 : opts.service) || ApplicationsServiceName;
this.rpc = rpc;
this.ListApplications = this.ListApplications.bind(this);
}
ListApplications(request) {
const data = ListApplicationsRequest.encode(request).finish();
const promise = this.rpc.request(this.service, "ListApplications", data);
return promise.then((data2) => ListApplicationsResponse.decode(_m0.Reader.create(data2)));
}
};
export {
protobufPackage,
ApplicationsServiceName,
ApplicationsClientImpl
};