weave-typescript 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,93 @@
1
+ import { GetConceptClusterRequest, GetConceptClusterResponse, GetConceptHierarchyRequest, GetConceptHierarchyResponse, GetConsolidationRunRequest, GetConsolidationRunResponse, ListConsolidationHistoryRequest, ListConsolidationHistoryResponse, TriggerConsolidationRequest, TriggerConsolidationResponse } from "./consolidation.pb";
2
+ export declare const protobufPackage = "weaveapi.consolidation.v1";
3
+ export interface ConsolidationService {
4
+ TriggerConsolidation(request: TriggerConsolidationRequest): Promise<TriggerConsolidationResponse>;
5
+ GetConsolidationRun(request: GetConsolidationRunRequest): Promise<GetConsolidationRunResponse>;
6
+ ListConsolidationHistory(request: ListConsolidationHistoryRequest): Promise<ListConsolidationHistoryResponse>;
7
+ GetConceptHierarchy(request: GetConceptHierarchyRequest): Promise<GetConceptHierarchyResponse>;
8
+ GetConceptCluster(request: GetConceptClusterRequest): Promise<GetConceptClusterResponse>;
9
+ }
10
+ export declare const ConsolidationServiceServiceName = "weaveapi.consolidation.v1.ConsolidationService";
11
+ export declare class ConsolidationServiceClientImpl implements ConsolidationService {
12
+ private readonly rpc;
13
+ private readonly service;
14
+ constructor(rpc: Rpc, opts?: {
15
+ service?: string;
16
+ });
17
+ TriggerConsolidation(request: TriggerConsolidationRequest): Promise<TriggerConsolidationResponse>;
18
+ GetConsolidationRun(request: GetConsolidationRunRequest): Promise<GetConsolidationRunResponse>;
19
+ ListConsolidationHistory(request: ListConsolidationHistoryRequest): Promise<ListConsolidationHistoryResponse>;
20
+ GetConceptHierarchy(request: GetConceptHierarchyRequest): Promise<GetConceptHierarchyResponse>;
21
+ GetConceptCluster(request: GetConceptClusterRequest): Promise<GetConceptClusterResponse>;
22
+ }
23
+ export type ConsolidationServiceDefinition = typeof ConsolidationServiceDefinition;
24
+ export declare const ConsolidationServiceDefinition: {
25
+ readonly name: "ConsolidationService";
26
+ readonly fullName: "weaveapi.consolidation.v1.ConsolidationService";
27
+ readonly methods: {
28
+ readonly triggerConsolidation: {
29
+ readonly name: "TriggerConsolidation";
30
+ readonly requestType: typeof TriggerConsolidationRequest;
31
+ readonly requestStream: false;
32
+ readonly responseType: typeof TriggerConsolidationResponse;
33
+ readonly responseStream: false;
34
+ readonly options: {
35
+ readonly _unknownFields: {
36
+ readonly 578365826: readonly [Uint8Array];
37
+ };
38
+ };
39
+ };
40
+ readonly getConsolidationRun: {
41
+ readonly name: "GetConsolidationRun";
42
+ readonly requestType: typeof GetConsolidationRunRequest;
43
+ readonly requestStream: false;
44
+ readonly responseType: typeof GetConsolidationRunResponse;
45
+ readonly responseStream: false;
46
+ readonly options: {
47
+ readonly _unknownFields: {
48
+ readonly 578365826: readonly [Uint8Array];
49
+ };
50
+ };
51
+ };
52
+ readonly listConsolidationHistory: {
53
+ readonly name: "ListConsolidationHistory";
54
+ readonly requestType: typeof ListConsolidationHistoryRequest;
55
+ readonly requestStream: false;
56
+ readonly responseType: typeof ListConsolidationHistoryResponse;
57
+ readonly responseStream: false;
58
+ readonly options: {
59
+ readonly _unknownFields: {
60
+ readonly 578365826: readonly [Uint8Array];
61
+ };
62
+ };
63
+ };
64
+ readonly getConceptHierarchy: {
65
+ readonly name: "GetConceptHierarchy";
66
+ readonly requestType: typeof GetConceptHierarchyRequest;
67
+ readonly requestStream: false;
68
+ readonly responseType: typeof GetConceptHierarchyResponse;
69
+ readonly responseStream: false;
70
+ readonly options: {
71
+ readonly _unknownFields: {
72
+ readonly 578365826: readonly [Uint8Array];
73
+ };
74
+ };
75
+ };
76
+ readonly getConceptCluster: {
77
+ readonly name: "GetConceptCluster";
78
+ readonly requestType: typeof GetConceptClusterRequest;
79
+ readonly requestStream: false;
80
+ readonly responseType: typeof GetConceptClusterResponse;
81
+ readonly responseStream: false;
82
+ readonly options: {
83
+ readonly _unknownFields: {
84
+ readonly 578365826: readonly [Uint8Array];
85
+ };
86
+ };
87
+ };
88
+ };
89
+ };
90
+ interface Rpc {
91
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
92
+ }
93
+ export {};
@@ -0,0 +1,427 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.6
5
+ // protoc unknown
6
+ // source: weaveapi/consolidation/v1/service.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ConsolidationServiceDefinition = exports.ConsolidationServiceClientImpl = exports.ConsolidationServiceServiceName = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const consolidation_pb_1 = require("./consolidation.pb");
12
+ exports.protobufPackage = "weaveapi.consolidation.v1";
13
+ exports.ConsolidationServiceServiceName = "weaveapi.consolidation.v1.ConsolidationService";
14
+ class ConsolidationServiceClientImpl {
15
+ constructor(rpc, opts) {
16
+ this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.ConsolidationServiceServiceName;
17
+ this.rpc = rpc;
18
+ this.TriggerConsolidation = this.TriggerConsolidation.bind(this);
19
+ this.GetConsolidationRun = this.GetConsolidationRun.bind(this);
20
+ this.ListConsolidationHistory = this.ListConsolidationHistory.bind(this);
21
+ this.GetConceptHierarchy = this.GetConceptHierarchy.bind(this);
22
+ this.GetConceptCluster = this.GetConceptCluster.bind(this);
23
+ }
24
+ TriggerConsolidation(request) {
25
+ const data = consolidation_pb_1.TriggerConsolidationRequest.encode(request).finish();
26
+ const promise = this.rpc.request(this.service, "TriggerConsolidation", data);
27
+ return promise.then((data) => consolidation_pb_1.TriggerConsolidationResponse.decode(new wire_1.BinaryReader(data)));
28
+ }
29
+ GetConsolidationRun(request) {
30
+ const data = consolidation_pb_1.GetConsolidationRunRequest.encode(request).finish();
31
+ const promise = this.rpc.request(this.service, "GetConsolidationRun", data);
32
+ return promise.then((data) => consolidation_pb_1.GetConsolidationRunResponse.decode(new wire_1.BinaryReader(data)));
33
+ }
34
+ ListConsolidationHistory(request) {
35
+ const data = consolidation_pb_1.ListConsolidationHistoryRequest.encode(request).finish();
36
+ const promise = this.rpc.request(this.service, "ListConsolidationHistory", data);
37
+ return promise.then((data) => consolidation_pb_1.ListConsolidationHistoryResponse.decode(new wire_1.BinaryReader(data)));
38
+ }
39
+ GetConceptHierarchy(request) {
40
+ const data = consolidation_pb_1.GetConceptHierarchyRequest.encode(request).finish();
41
+ const promise = this.rpc.request(this.service, "GetConceptHierarchy", data);
42
+ return promise.then((data) => consolidation_pb_1.GetConceptHierarchyResponse.decode(new wire_1.BinaryReader(data)));
43
+ }
44
+ GetConceptCluster(request) {
45
+ const data = consolidation_pb_1.GetConceptClusterRequest.encode(request).finish();
46
+ const promise = this.rpc.request(this.service, "GetConceptCluster", data);
47
+ return promise.then((data) => consolidation_pb_1.GetConceptClusterResponse.decode(new wire_1.BinaryReader(data)));
48
+ }
49
+ }
50
+ exports.ConsolidationServiceClientImpl = ConsolidationServiceClientImpl;
51
+ exports.ConsolidationServiceDefinition = {
52
+ name: "ConsolidationService",
53
+ fullName: "weaveapi.consolidation.v1.ConsolidationService",
54
+ methods: {
55
+ triggerConsolidation: {
56
+ name: "TriggerConsolidation",
57
+ requestType: consolidation_pb_1.TriggerConsolidationRequest,
58
+ requestStream: false,
59
+ responseType: consolidation_pb_1.TriggerConsolidationResponse,
60
+ responseStream: false,
61
+ options: {
62
+ _unknownFields: {
63
+ 578365826: [
64
+ new Uint8Array([
65
+ 52,
66
+ 58,
67
+ 1,
68
+ 42,
69
+ 34,
70
+ 47,
71
+ 47,
72
+ 118,
73
+ 49,
74
+ 47,
75
+ 111,
76
+ 114,
77
+ 103,
78
+ 47,
79
+ 123,
80
+ 111,
81
+ 114,
82
+ 103,
83
+ 97,
84
+ 110,
85
+ 105,
86
+ 122,
87
+ 97,
88
+ 116,
89
+ 105,
90
+ 111,
91
+ 110,
92
+ 95,
93
+ 105,
94
+ 100,
95
+ 125,
96
+ 47,
97
+ 99,
98
+ 111,
99
+ 110,
100
+ 115,
101
+ 111,
102
+ 108,
103
+ 105,
104
+ 100,
105
+ 97,
106
+ 116,
107
+ 105,
108
+ 111,
109
+ 110,
110
+ 47,
111
+ 116,
112
+ 114,
113
+ 105,
114
+ 103,
115
+ 103,
116
+ 101,
117
+ 114,
118
+ ]),
119
+ ],
120
+ },
121
+ },
122
+ },
123
+ getConsolidationRun: {
124
+ name: "GetConsolidationRun",
125
+ requestType: consolidation_pb_1.GetConsolidationRunRequest,
126
+ requestStream: false,
127
+ responseType: consolidation_pb_1.GetConsolidationRunResponse,
128
+ responseStream: false,
129
+ options: {
130
+ _unknownFields: {
131
+ 578365826: [
132
+ new Uint8Array([
133
+ 69,
134
+ 18,
135
+ 67,
136
+ 47,
137
+ 118,
138
+ 49,
139
+ 47,
140
+ 111,
141
+ 114,
142
+ 103,
143
+ 47,
144
+ 123,
145
+ 111,
146
+ 114,
147
+ 103,
148
+ 97,
149
+ 110,
150
+ 105,
151
+ 122,
152
+ 97,
153
+ 116,
154
+ 105,
155
+ 111,
156
+ 110,
157
+ 95,
158
+ 105,
159
+ 100,
160
+ 125,
161
+ 47,
162
+ 99,
163
+ 111,
164
+ 110,
165
+ 115,
166
+ 111,
167
+ 108,
168
+ 105,
169
+ 100,
170
+ 97,
171
+ 116,
172
+ 105,
173
+ 111,
174
+ 110,
175
+ 47,
176
+ 114,
177
+ 117,
178
+ 110,
179
+ 115,
180
+ 47,
181
+ 123,
182
+ 99,
183
+ 111,
184
+ 110,
185
+ 115,
186
+ 111,
187
+ 108,
188
+ 105,
189
+ 100,
190
+ 97,
191
+ 116,
192
+ 105,
193
+ 111,
194
+ 110,
195
+ 95,
196
+ 114,
197
+ 117,
198
+ 110,
199
+ 95,
200
+ 105,
201
+ 100,
202
+ 125,
203
+ ]),
204
+ ],
205
+ },
206
+ },
207
+ },
208
+ listConsolidationHistory: {
209
+ name: "ListConsolidationHistory",
210
+ requestType: consolidation_pb_1.ListConsolidationHistoryRequest,
211
+ requestStream: false,
212
+ responseType: consolidation_pb_1.ListConsolidationHistoryResponse,
213
+ responseStream: false,
214
+ options: {
215
+ _unknownFields: {
216
+ 578365826: [
217
+ new Uint8Array([
218
+ 49,
219
+ 18,
220
+ 47,
221
+ 47,
222
+ 118,
223
+ 49,
224
+ 47,
225
+ 111,
226
+ 114,
227
+ 103,
228
+ 47,
229
+ 123,
230
+ 111,
231
+ 114,
232
+ 103,
233
+ 97,
234
+ 110,
235
+ 105,
236
+ 122,
237
+ 97,
238
+ 116,
239
+ 105,
240
+ 111,
241
+ 110,
242
+ 95,
243
+ 105,
244
+ 100,
245
+ 125,
246
+ 47,
247
+ 99,
248
+ 111,
249
+ 110,
250
+ 115,
251
+ 111,
252
+ 108,
253
+ 105,
254
+ 100,
255
+ 97,
256
+ 116,
257
+ 105,
258
+ 111,
259
+ 110,
260
+ 47,
261
+ 104,
262
+ 105,
263
+ 115,
264
+ 116,
265
+ 111,
266
+ 114,
267
+ 121,
268
+ ]),
269
+ ],
270
+ },
271
+ },
272
+ },
273
+ getConceptHierarchy: {
274
+ name: "GetConceptHierarchy",
275
+ requestType: consolidation_pb_1.GetConceptHierarchyRequest,
276
+ requestStream: false,
277
+ responseType: consolidation_pb_1.GetConceptHierarchyResponse,
278
+ responseStream: false,
279
+ options: {
280
+ _unknownFields: {
281
+ 578365826: [
282
+ new Uint8Array([
283
+ 50,
284
+ 18,
285
+ 48,
286
+ 47,
287
+ 118,
288
+ 49,
289
+ 47,
290
+ 111,
291
+ 114,
292
+ 103,
293
+ 47,
294
+ 123,
295
+ 111,
296
+ 114,
297
+ 103,
298
+ 97,
299
+ 110,
300
+ 105,
301
+ 122,
302
+ 97,
303
+ 116,
304
+ 105,
305
+ 111,
306
+ 110,
307
+ 95,
308
+ 105,
309
+ 100,
310
+ 125,
311
+ 47,
312
+ 99,
313
+ 111,
314
+ 110,
315
+ 115,
316
+ 111,
317
+ 108,
318
+ 105,
319
+ 100,
320
+ 97,
321
+ 116,
322
+ 105,
323
+ 111,
324
+ 110,
325
+ 47,
326
+ 99,
327
+ 111,
328
+ 110,
329
+ 99,
330
+ 101,
331
+ 112,
332
+ 116,
333
+ 115,
334
+ ]),
335
+ ],
336
+ },
337
+ },
338
+ },
339
+ getConceptCluster: {
340
+ name: "GetConceptCluster",
341
+ requestType: consolidation_pb_1.GetConceptClusterRequest,
342
+ requestStream: false,
343
+ responseType: consolidation_pb_1.GetConceptClusterResponse,
344
+ responseStream: false,
345
+ options: {
346
+ _unknownFields: {
347
+ 578365826: [
348
+ new Uint8Array([
349
+ 71,
350
+ 18,
351
+ 69,
352
+ 47,
353
+ 118,
354
+ 49,
355
+ 47,
356
+ 111,
357
+ 114,
358
+ 103,
359
+ 47,
360
+ 123,
361
+ 111,
362
+ 114,
363
+ 103,
364
+ 97,
365
+ 110,
366
+ 105,
367
+ 122,
368
+ 97,
369
+ 116,
370
+ 105,
371
+ 111,
372
+ 110,
373
+ 95,
374
+ 105,
375
+ 100,
376
+ 125,
377
+ 47,
378
+ 99,
379
+ 111,
380
+ 110,
381
+ 115,
382
+ 111,
383
+ 108,
384
+ 105,
385
+ 100,
386
+ 97,
387
+ 116,
388
+ 105,
389
+ 111,
390
+ 110,
391
+ 47,
392
+ 99,
393
+ 111,
394
+ 110,
395
+ 99,
396
+ 101,
397
+ 112,
398
+ 116,
399
+ 115,
400
+ 47,
401
+ 123,
402
+ 99,
403
+ 111,
404
+ 110,
405
+ 99,
406
+ 101,
407
+ 112,
408
+ 116,
409
+ 95,
410
+ 99,
411
+ 108,
412
+ 117,
413
+ 115,
414
+ 116,
415
+ 101,
416
+ 114,
417
+ 95,
418
+ 105,
419
+ 100,
420
+ 125,
421
+ ]),
422
+ ],
423
+ },
424
+ },
425
+ },
426
+ },
427
+ };