@marleena/trb-proto 1.0.52 → 1.0.53

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marleena/trb-proto",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "Generated protobuf messages and gRPC-Web clients for TrB services",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,259 +0,0 @@
1
- /**
2
- * @fileoverview gRPC-Web generated client stub for trb.clickhouse.v1
3
- * @enhanceable
4
- * @public
5
- */
6
-
7
- // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
- // versions:
9
- // protoc-gen-grpc-web v1.5.0
10
- // protoc v7.34.1
11
- // source: clickhouse/clickhouse.proto
12
-
13
-
14
- /* eslint-disable */
15
- // @ts-nocheck
16
-
17
-
18
- import * as grpcWeb from 'grpc-web';
19
-
20
- import * as api_tinvest_instruments_pb from '../api/tinvest/instruments_pb'; // proto import: "api/tinvest/instruments.proto"
21
- import * as clickhouse_clickhouse_pb from '../clickhouse/clickhouse_pb'; // proto import: "clickhouse/clickhouse.proto"
22
-
23
-
24
- export class ClickHouseClient {
25
- client_: grpcWeb.AbstractClientBase;
26
- hostname_: string;
27
- credentials_: null | { [index: string]: string; };
28
- options_: null | { [index: string]: any; };
29
-
30
- constructor (hostname: string,
31
- credentials?: null | { [index: string]: string; },
32
- options?: null | { [index: string]: any; }) {
33
- if (!options) options = {};
34
- if (!credentials) credentials = {};
35
- options['format'] = 'binary';
36
-
37
- this.client_ = new grpcWeb.GrpcWebClientBase(options);
38
- this.hostname_ = hostname.replace(/\/+$/, '');
39
- this.credentials_ = credentials;
40
- this.options_ = options;
41
- }
42
-
43
- methodDescriptorListInstruments = new grpcWeb.MethodDescriptor(
44
- '/trb.clickhouse.v1.ClickHouse/ListInstruments',
45
- grpcWeb.MethodType.UNARY,
46
- clickhouse_clickhouse_pb.ListInstrumentsRequest,
47
- clickhouse_clickhouse_pb.ListInstrumentsResponse,
48
- (request: clickhouse_clickhouse_pb.ListInstrumentsRequest) => {
49
- return request.serializeBinary();
50
- },
51
- clickhouse_clickhouse_pb.ListInstrumentsResponse.deserializeBinary
52
- );
53
-
54
- listInstruments(
55
- request: clickhouse_clickhouse_pb.ListInstrumentsRequest,
56
- metadata?: grpcWeb.Metadata | null): Promise<clickhouse_clickhouse_pb.ListInstrumentsResponse>;
57
-
58
- listInstruments(
59
- request: clickhouse_clickhouse_pb.ListInstrumentsRequest,
60
- metadata: grpcWeb.Metadata | null,
61
- callback: (err: grpcWeb.RpcError,
62
- response: clickhouse_clickhouse_pb.ListInstrumentsResponse) => void): grpcWeb.ClientReadableStream<clickhouse_clickhouse_pb.ListInstrumentsResponse>;
63
-
64
- listInstruments(
65
- request: clickhouse_clickhouse_pb.ListInstrumentsRequest,
66
- metadata?: grpcWeb.Metadata | null,
67
- callback?: (err: grpcWeb.RpcError,
68
- response: clickhouse_clickhouse_pb.ListInstrumentsResponse) => void) {
69
- if (callback !== undefined) {
70
- return this.client_.rpcCall(
71
- this.hostname_ +
72
- '/trb.clickhouse.v1.ClickHouse/ListInstruments',
73
- request,
74
- metadata || {},
75
- this.methodDescriptorListInstruments,
76
- callback);
77
- }
78
- return this.client_.unaryCall(
79
- this.hostname_ +
80
- '/trb.clickhouse.v1.ClickHouse/ListInstruments',
81
- request,
82
- metadata || {},
83
- this.methodDescriptorListInstruments);
84
- }
85
-
86
- methodDescriptorListInstrumentVersions = new grpcWeb.MethodDescriptor(
87
- '/trb.clickhouse.v1.ClickHouse/ListInstrumentVersions',
88
- grpcWeb.MethodType.UNARY,
89
- clickhouse_clickhouse_pb.ListInstrumentVersionsRequest,
90
- clickhouse_clickhouse_pb.ListInstrumentVersionsResponse,
91
- (request: clickhouse_clickhouse_pb.ListInstrumentVersionsRequest) => {
92
- return request.serializeBinary();
93
- },
94
- clickhouse_clickhouse_pb.ListInstrumentVersionsResponse.deserializeBinary
95
- );
96
-
97
- listInstrumentVersions(
98
- request: clickhouse_clickhouse_pb.ListInstrumentVersionsRequest,
99
- metadata?: grpcWeb.Metadata | null): Promise<clickhouse_clickhouse_pb.ListInstrumentVersionsResponse>;
100
-
101
- listInstrumentVersions(
102
- request: clickhouse_clickhouse_pb.ListInstrumentVersionsRequest,
103
- metadata: grpcWeb.Metadata | null,
104
- callback: (err: grpcWeb.RpcError,
105
- response: clickhouse_clickhouse_pb.ListInstrumentVersionsResponse) => void): grpcWeb.ClientReadableStream<clickhouse_clickhouse_pb.ListInstrumentVersionsResponse>;
106
-
107
- listInstrumentVersions(
108
- request: clickhouse_clickhouse_pb.ListInstrumentVersionsRequest,
109
- metadata?: grpcWeb.Metadata | null,
110
- callback?: (err: grpcWeb.RpcError,
111
- response: clickhouse_clickhouse_pb.ListInstrumentVersionsResponse) => void) {
112
- if (callback !== undefined) {
113
- return this.client_.rpcCall(
114
- this.hostname_ +
115
- '/trb.clickhouse.v1.ClickHouse/ListInstrumentVersions',
116
- request,
117
- metadata || {},
118
- this.methodDescriptorListInstrumentVersions,
119
- callback);
120
- }
121
- return this.client_.unaryCall(
122
- this.hostname_ +
123
- '/trb.clickhouse.v1.ClickHouse/ListInstrumentVersions',
124
- request,
125
- metadata || {},
126
- this.methodDescriptorListInstrumentVersions);
127
- }
128
-
129
- methodDescriptorUpsertInstruments = new grpcWeb.MethodDescriptor(
130
- '/trb.clickhouse.v1.ClickHouse/UpsertInstruments',
131
- grpcWeb.MethodType.UNARY,
132
- api_tinvest_instruments_pb.SharesResponse,
133
- clickhouse_clickhouse_pb.UpsertInstrumentsResponse,
134
- (request: api_tinvest_instruments_pb.SharesResponse) => {
135
- return request.serializeBinary();
136
- },
137
- clickhouse_clickhouse_pb.UpsertInstrumentsResponse.deserializeBinary
138
- );
139
-
140
- upsertInstruments(
141
- request: api_tinvest_instruments_pb.SharesResponse,
142
- metadata?: grpcWeb.Metadata | null): Promise<clickhouse_clickhouse_pb.UpsertInstrumentsResponse>;
143
-
144
- upsertInstruments(
145
- request: api_tinvest_instruments_pb.SharesResponse,
146
- metadata: grpcWeb.Metadata | null,
147
- callback: (err: grpcWeb.RpcError,
148
- response: clickhouse_clickhouse_pb.UpsertInstrumentsResponse) => void): grpcWeb.ClientReadableStream<clickhouse_clickhouse_pb.UpsertInstrumentsResponse>;
149
-
150
- upsertInstruments(
151
- request: api_tinvest_instruments_pb.SharesResponse,
152
- metadata?: grpcWeb.Metadata | null,
153
- callback?: (err: grpcWeb.RpcError,
154
- response: clickhouse_clickhouse_pb.UpsertInstrumentsResponse) => void) {
155
- if (callback !== undefined) {
156
- return this.client_.rpcCall(
157
- this.hostname_ +
158
- '/trb.clickhouse.v1.ClickHouse/UpsertInstruments',
159
- request,
160
- metadata || {},
161
- this.methodDescriptorUpsertInstruments,
162
- callback);
163
- }
164
- return this.client_.unaryCall(
165
- this.hostname_ +
166
- '/trb.clickhouse.v1.ClickHouse/UpsertInstruments',
167
- request,
168
- metadata || {},
169
- this.methodDescriptorUpsertInstruments);
170
- }
171
-
172
- methodDescriptorListLastDownloads = new grpcWeb.MethodDescriptor(
173
- '/trb.clickhouse.v1.ClickHouse/ListLastDownloads',
174
- grpcWeb.MethodType.UNARY,
175
- clickhouse_clickhouse_pb.ListLastDownloadsRequest,
176
- clickhouse_clickhouse_pb.ListLastDownloadsResponse,
177
- (request: clickhouse_clickhouse_pb.ListLastDownloadsRequest) => {
178
- return request.serializeBinary();
179
- },
180
- clickhouse_clickhouse_pb.ListLastDownloadsResponse.deserializeBinary
181
- );
182
-
183
- listLastDownloads(
184
- request: clickhouse_clickhouse_pb.ListLastDownloadsRequest,
185
- metadata?: grpcWeb.Metadata | null): Promise<clickhouse_clickhouse_pb.ListLastDownloadsResponse>;
186
-
187
- listLastDownloads(
188
- request: clickhouse_clickhouse_pb.ListLastDownloadsRequest,
189
- metadata: grpcWeb.Metadata | null,
190
- callback: (err: grpcWeb.RpcError,
191
- response: clickhouse_clickhouse_pb.ListLastDownloadsResponse) => void): grpcWeb.ClientReadableStream<clickhouse_clickhouse_pb.ListLastDownloadsResponse>;
192
-
193
- listLastDownloads(
194
- request: clickhouse_clickhouse_pb.ListLastDownloadsRequest,
195
- metadata?: grpcWeb.Metadata | null,
196
- callback?: (err: grpcWeb.RpcError,
197
- response: clickhouse_clickhouse_pb.ListLastDownloadsResponse) => void) {
198
- if (callback !== undefined) {
199
- return this.client_.rpcCall(
200
- this.hostname_ +
201
- '/trb.clickhouse.v1.ClickHouse/ListLastDownloads',
202
- request,
203
- metadata || {},
204
- this.methodDescriptorListLastDownloads,
205
- callback);
206
- }
207
- return this.client_.unaryCall(
208
- this.hostname_ +
209
- '/trb.clickhouse.v1.ClickHouse/ListLastDownloads',
210
- request,
211
- metadata || {},
212
- this.methodDescriptorListLastDownloads);
213
- }
214
-
215
- methodDescriptorListCandles = new grpcWeb.MethodDescriptor(
216
- '/trb.clickhouse.v1.ClickHouse/ListCandles',
217
- grpcWeb.MethodType.UNARY,
218
- clickhouse_clickhouse_pb.ListCandlesRequest,
219
- clickhouse_clickhouse_pb.ListCandlesResponse,
220
- (request: clickhouse_clickhouse_pb.ListCandlesRequest) => {
221
- return request.serializeBinary();
222
- },
223
- clickhouse_clickhouse_pb.ListCandlesResponse.deserializeBinary
224
- );
225
-
226
- listCandles(
227
- request: clickhouse_clickhouse_pb.ListCandlesRequest,
228
- metadata?: grpcWeb.Metadata | null): Promise<clickhouse_clickhouse_pb.ListCandlesResponse>;
229
-
230
- listCandles(
231
- request: clickhouse_clickhouse_pb.ListCandlesRequest,
232
- metadata: grpcWeb.Metadata | null,
233
- callback: (err: grpcWeb.RpcError,
234
- response: clickhouse_clickhouse_pb.ListCandlesResponse) => void): grpcWeb.ClientReadableStream<clickhouse_clickhouse_pb.ListCandlesResponse>;
235
-
236
- listCandles(
237
- request: clickhouse_clickhouse_pb.ListCandlesRequest,
238
- metadata?: grpcWeb.Metadata | null,
239
- callback?: (err: grpcWeb.RpcError,
240
- response: clickhouse_clickhouse_pb.ListCandlesResponse) => void) {
241
- if (callback !== undefined) {
242
- return this.client_.rpcCall(
243
- this.hostname_ +
244
- '/trb.clickhouse.v1.ClickHouse/ListCandles',
245
- request,
246
- metadata || {},
247
- this.methodDescriptorListCandles,
248
- callback);
249
- }
250
- return this.client_.unaryCall(
251
- this.hostname_ +
252
- '/trb.clickhouse.v1.ClickHouse/ListCandles',
253
- request,
254
- metadata || {},
255
- this.methodDescriptorListCandles);
256
- }
257
-
258
- }
259
-