UNPKG

@aneoconsultingfr/armonik.api

Version:

gRPC API to interact with ArmoniK built for the web

36 lines (25 loc) 1.57 kB
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _chunkK6S4Y2G2js = require('./chunk-K6S4Y2G2.js'); // src/generated/partitions_service.ts var _minimaljs = require('protobufjs/minimal.js'); var _minimaljs2 = _interopRequireDefault(_minimaljs); var protobufPackage = "armonik.api.grpc.v1.partitions"; var PartitionsServiceName = "armonik.api.grpc.v1.partitions.Partitions"; var PartitionsClientImpl = class { constructor(rpc, opts) { this.service = (opts == null ? void 0 : opts.service) || PartitionsServiceName; this.rpc = rpc; this.ListPartitions = this.ListPartitions.bind(this); this.GetPartition = this.GetPartition.bind(this); } ListPartitions(request) { const data = _chunkK6S4Y2G2js.ListPartitionsRequest.encode(request).finish(); const promise = this.rpc.request(this.service, "ListPartitions", data); return promise.then((data2) => _chunkK6S4Y2G2js.ListPartitionsResponse.decode(_minimaljs2.default.Reader.create(data2))); } GetPartition(request) { const data = _chunkK6S4Y2G2js.GetPartitionRequest.encode(request).finish(); const promise = this.rpc.request(this.service, "GetPartition", data); return promise.then((data2) => _chunkK6S4Y2G2js.GetPartitionResponse.decode(_minimaljs2.default.Reader.create(data2))); } }; exports.protobufPackage = protobufPackage; exports.PartitionsServiceName = PartitionsServiceName; exports.PartitionsClientImpl = PartitionsClientImpl;