@marleena/trb-proto 1.0.3 → 1.0.6
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/README.md +3 -3
- package/gen/js-ts/api/db_api/Db_apiServiceClientPb.ts +302 -0
- package/gen/js-ts/api/{data/data_pb.d.ts → db_api/db_api_pb.d.ts} +72 -83
- package/gen/js-ts/api/{data/data_pb.js → db_api/db_api_pb.js} +415 -469
- package/gen/js-ts/api/test/TestServiceClientPb.ts +86 -0
- package/gen/js-ts/api/test/test_pb.d.ts +40 -0
- package/gen/js-ts/api/test/test_pb.js +324 -0
- package/package.json +1 -1
- package/gen/js-ts/api/data/DataServiceClientPb.ts +0 -215
package/README.md
CHANGED
|
@@ -32,11 +32,11 @@ const req = new MessageRequest();
|
|
|
32
32
|
req.setText('hello');
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Сервисы: `example`, `tinvest`, `moex`, `clickhouse` (native gRPC), `manager_indicators`, `api/nats`, `api/clickhouse`, `api/
|
|
35
|
+
Сервисы: `example`, `tinvest`, `moex`, `clickhouse` (native gRPC), `manager_indicators`, `api/nats`, `api/clickhouse`, `api/db_api`, `api/test`.
|
|
36
36
|
|
|
37
|
-
`api/clickhouse` (`trb.clickhouse.manager.public.contract.v1.ClickHouseManager`) — DDL: базы, таблицы, колонки. Запросы — `clickhouse.grpc.ClickHouse`, прикладные выборки — `api/
|
|
37
|
+
`api/clickhouse` (`trb.clickhouse.manager.public.contract.v1.ClickHouseManager`) — DDL: базы, таблицы, колонки. Запросы — `clickhouse.grpc.ClickHouse`, прикладные выборки — `api/db_api`.
|
|
38
38
|
|
|
39
|
-
`api/
|
|
39
|
+
`api/db_api` (`trb.db.api.public.contract.v1.DbApi`) — gRPC API веб-клиента к ClickHouse и Postgres. Новый метод добавляется RPC-ом в `services/api/db_api/db_api.proto`.
|
|
40
40
|
|
|
41
41
|
## Релиз
|
|
42
42
|
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for trb.db.api.public.contract.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: api/db_api/db_api.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as tinvest_instruments_pb from '../../tinvest/instruments_pb'; // proto import: "tinvest/instruments.proto"
|
|
21
|
+
import * as api_db_api_db_api_pb from '../../api/db_api/db_api_pb'; // proto import: "api/db_api/db_api.proto"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export class DbApiClient {
|
|
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.db.api.public.contract.v1.DbApi/ListInstruments',
|
|
45
|
+
grpcWeb.MethodType.UNARY,
|
|
46
|
+
api_db_api_db_api_pb.ListInstrumentsRequest,
|
|
47
|
+
tinvest_instruments_pb.SharesResponse,
|
|
48
|
+
(request: api_db_api_db_api_pb.ListInstrumentsRequest) => {
|
|
49
|
+
return request.serializeBinary();
|
|
50
|
+
},
|
|
51
|
+
tinvest_instruments_pb.SharesResponse.deserializeBinary
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
listInstruments(
|
|
55
|
+
request: api_db_api_db_api_pb.ListInstrumentsRequest,
|
|
56
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_instruments_pb.SharesResponse>;
|
|
57
|
+
|
|
58
|
+
listInstruments(
|
|
59
|
+
request: api_db_api_db_api_pb.ListInstrumentsRequest,
|
|
60
|
+
metadata: grpcWeb.Metadata | null,
|
|
61
|
+
callback: (err: grpcWeb.RpcError,
|
|
62
|
+
response: tinvest_instruments_pb.SharesResponse) => void): grpcWeb.ClientReadableStream<tinvest_instruments_pb.SharesResponse>;
|
|
63
|
+
|
|
64
|
+
listInstruments(
|
|
65
|
+
request: api_db_api_db_api_pb.ListInstrumentsRequest,
|
|
66
|
+
metadata?: grpcWeb.Metadata | null,
|
|
67
|
+
callback?: (err: grpcWeb.RpcError,
|
|
68
|
+
response: tinvest_instruments_pb.SharesResponse) => void) {
|
|
69
|
+
if (callback !== undefined) {
|
|
70
|
+
return this.client_.rpcCall(
|
|
71
|
+
this.hostname_ +
|
|
72
|
+
'/trb.db.api.public.contract.v1.DbApi/ListInstruments',
|
|
73
|
+
request,
|
|
74
|
+
metadata || {},
|
|
75
|
+
this.methodDescriptorListInstruments,
|
|
76
|
+
callback);
|
|
77
|
+
}
|
|
78
|
+
return this.client_.unaryCall(
|
|
79
|
+
this.hostname_ +
|
|
80
|
+
'/trb.db.api.public.contract.v1.DbApi/ListInstruments',
|
|
81
|
+
request,
|
|
82
|
+
metadata || {},
|
|
83
|
+
this.methodDescriptorListInstruments);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
methodDescriptorListInstrumentVersions = new grpcWeb.MethodDescriptor(
|
|
87
|
+
'/trb.db.api.public.contract.v1.DbApi/ListInstrumentVersions',
|
|
88
|
+
grpcWeb.MethodType.UNARY,
|
|
89
|
+
api_db_api_db_api_pb.ListInstrumentVersionsRequest,
|
|
90
|
+
api_db_api_db_api_pb.ListInstrumentVersionsResponse,
|
|
91
|
+
(request: api_db_api_db_api_pb.ListInstrumentVersionsRequest) => {
|
|
92
|
+
return request.serializeBinary();
|
|
93
|
+
},
|
|
94
|
+
api_db_api_db_api_pb.ListInstrumentVersionsResponse.deserializeBinary
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
listInstrumentVersions(
|
|
98
|
+
request: api_db_api_db_api_pb.ListInstrumentVersionsRequest,
|
|
99
|
+
metadata?: grpcWeb.Metadata | null): Promise<api_db_api_db_api_pb.ListInstrumentVersionsResponse>;
|
|
100
|
+
|
|
101
|
+
listInstrumentVersions(
|
|
102
|
+
request: api_db_api_db_api_pb.ListInstrumentVersionsRequest,
|
|
103
|
+
metadata: grpcWeb.Metadata | null,
|
|
104
|
+
callback: (err: grpcWeb.RpcError,
|
|
105
|
+
response: api_db_api_db_api_pb.ListInstrumentVersionsResponse) => void): grpcWeb.ClientReadableStream<api_db_api_db_api_pb.ListInstrumentVersionsResponse>;
|
|
106
|
+
|
|
107
|
+
listInstrumentVersions(
|
|
108
|
+
request: api_db_api_db_api_pb.ListInstrumentVersionsRequest,
|
|
109
|
+
metadata?: grpcWeb.Metadata | null,
|
|
110
|
+
callback?: (err: grpcWeb.RpcError,
|
|
111
|
+
response: api_db_api_db_api_pb.ListInstrumentVersionsResponse) => void) {
|
|
112
|
+
if (callback !== undefined) {
|
|
113
|
+
return this.client_.rpcCall(
|
|
114
|
+
this.hostname_ +
|
|
115
|
+
'/trb.db.api.public.contract.v1.DbApi/ListInstrumentVersions',
|
|
116
|
+
request,
|
|
117
|
+
metadata || {},
|
|
118
|
+
this.methodDescriptorListInstrumentVersions,
|
|
119
|
+
callback);
|
|
120
|
+
}
|
|
121
|
+
return this.client_.unaryCall(
|
|
122
|
+
this.hostname_ +
|
|
123
|
+
'/trb.db.api.public.contract.v1.DbApi/ListInstrumentVersions',
|
|
124
|
+
request,
|
|
125
|
+
metadata || {},
|
|
126
|
+
this.methodDescriptorListInstrumentVersions);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
methodDescriptorUpsertInstruments = new grpcWeb.MethodDescriptor(
|
|
130
|
+
'/trb.db.api.public.contract.v1.DbApi/UpsertInstruments',
|
|
131
|
+
grpcWeb.MethodType.UNARY,
|
|
132
|
+
tinvest_instruments_pb.SharesResponse,
|
|
133
|
+
api_db_api_db_api_pb.UpsertInstrumentsResponse,
|
|
134
|
+
(request: tinvest_instruments_pb.SharesResponse) => {
|
|
135
|
+
return request.serializeBinary();
|
|
136
|
+
},
|
|
137
|
+
api_db_api_db_api_pb.UpsertInstrumentsResponse.deserializeBinary
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
upsertInstruments(
|
|
141
|
+
request: tinvest_instruments_pb.SharesResponse,
|
|
142
|
+
metadata?: grpcWeb.Metadata | null): Promise<api_db_api_db_api_pb.UpsertInstrumentsResponse>;
|
|
143
|
+
|
|
144
|
+
upsertInstruments(
|
|
145
|
+
request: tinvest_instruments_pb.SharesResponse,
|
|
146
|
+
metadata: grpcWeb.Metadata | null,
|
|
147
|
+
callback: (err: grpcWeb.RpcError,
|
|
148
|
+
response: api_db_api_db_api_pb.UpsertInstrumentsResponse) => void): grpcWeb.ClientReadableStream<api_db_api_db_api_pb.UpsertInstrumentsResponse>;
|
|
149
|
+
|
|
150
|
+
upsertInstruments(
|
|
151
|
+
request: tinvest_instruments_pb.SharesResponse,
|
|
152
|
+
metadata?: grpcWeb.Metadata | null,
|
|
153
|
+
callback?: (err: grpcWeb.RpcError,
|
|
154
|
+
response: api_db_api_db_api_pb.UpsertInstrumentsResponse) => void) {
|
|
155
|
+
if (callback !== undefined) {
|
|
156
|
+
return this.client_.rpcCall(
|
|
157
|
+
this.hostname_ +
|
|
158
|
+
'/trb.db.api.public.contract.v1.DbApi/UpsertInstruments',
|
|
159
|
+
request,
|
|
160
|
+
metadata || {},
|
|
161
|
+
this.methodDescriptorUpsertInstruments,
|
|
162
|
+
callback);
|
|
163
|
+
}
|
|
164
|
+
return this.client_.unaryCall(
|
|
165
|
+
this.hostname_ +
|
|
166
|
+
'/trb.db.api.public.contract.v1.DbApi/UpsertInstruments',
|
|
167
|
+
request,
|
|
168
|
+
metadata || {},
|
|
169
|
+
this.methodDescriptorUpsertInstruments);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
methodDescriptorListSchedulerTargets = new grpcWeb.MethodDescriptor(
|
|
173
|
+
'/trb.db.api.public.contract.v1.DbApi/ListSchedulerTargets',
|
|
174
|
+
grpcWeb.MethodType.UNARY,
|
|
175
|
+
api_db_api_db_api_pb.ListSchedulerTargetsRequest,
|
|
176
|
+
api_db_api_db_api_pb.ListSchedulerTargetsResponse,
|
|
177
|
+
(request: api_db_api_db_api_pb.ListSchedulerTargetsRequest) => {
|
|
178
|
+
return request.serializeBinary();
|
|
179
|
+
},
|
|
180
|
+
api_db_api_db_api_pb.ListSchedulerTargetsResponse.deserializeBinary
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
listSchedulerTargets(
|
|
184
|
+
request: api_db_api_db_api_pb.ListSchedulerTargetsRequest,
|
|
185
|
+
metadata?: grpcWeb.Metadata | null): Promise<api_db_api_db_api_pb.ListSchedulerTargetsResponse>;
|
|
186
|
+
|
|
187
|
+
listSchedulerTargets(
|
|
188
|
+
request: api_db_api_db_api_pb.ListSchedulerTargetsRequest,
|
|
189
|
+
metadata: grpcWeb.Metadata | null,
|
|
190
|
+
callback: (err: grpcWeb.RpcError,
|
|
191
|
+
response: api_db_api_db_api_pb.ListSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<api_db_api_db_api_pb.ListSchedulerTargetsResponse>;
|
|
192
|
+
|
|
193
|
+
listSchedulerTargets(
|
|
194
|
+
request: api_db_api_db_api_pb.ListSchedulerTargetsRequest,
|
|
195
|
+
metadata?: grpcWeb.Metadata | null,
|
|
196
|
+
callback?: (err: grpcWeb.RpcError,
|
|
197
|
+
response: api_db_api_db_api_pb.ListSchedulerTargetsResponse) => void) {
|
|
198
|
+
if (callback !== undefined) {
|
|
199
|
+
return this.client_.rpcCall(
|
|
200
|
+
this.hostname_ +
|
|
201
|
+
'/trb.db.api.public.contract.v1.DbApi/ListSchedulerTargets',
|
|
202
|
+
request,
|
|
203
|
+
metadata || {},
|
|
204
|
+
this.methodDescriptorListSchedulerTargets,
|
|
205
|
+
callback);
|
|
206
|
+
}
|
|
207
|
+
return this.client_.unaryCall(
|
|
208
|
+
this.hostname_ +
|
|
209
|
+
'/trb.db.api.public.contract.v1.DbApi/ListSchedulerTargets',
|
|
210
|
+
request,
|
|
211
|
+
metadata || {},
|
|
212
|
+
this.methodDescriptorListSchedulerTargets);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
methodDescriptorSyncSchedulerTargets = new grpcWeb.MethodDescriptor(
|
|
216
|
+
'/trb.db.api.public.contract.v1.DbApi/SyncSchedulerTargets',
|
|
217
|
+
grpcWeb.MethodType.UNARY,
|
|
218
|
+
api_db_api_db_api_pb.SyncSchedulerTargetsRequest,
|
|
219
|
+
api_db_api_db_api_pb.SyncSchedulerTargetsResponse,
|
|
220
|
+
(request: api_db_api_db_api_pb.SyncSchedulerTargetsRequest) => {
|
|
221
|
+
return request.serializeBinary();
|
|
222
|
+
},
|
|
223
|
+
api_db_api_db_api_pb.SyncSchedulerTargetsResponse.deserializeBinary
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
syncSchedulerTargets(
|
|
227
|
+
request: api_db_api_db_api_pb.SyncSchedulerTargetsRequest,
|
|
228
|
+
metadata?: grpcWeb.Metadata | null): Promise<api_db_api_db_api_pb.SyncSchedulerTargetsResponse>;
|
|
229
|
+
|
|
230
|
+
syncSchedulerTargets(
|
|
231
|
+
request: api_db_api_db_api_pb.SyncSchedulerTargetsRequest,
|
|
232
|
+
metadata: grpcWeb.Metadata | null,
|
|
233
|
+
callback: (err: grpcWeb.RpcError,
|
|
234
|
+
response: api_db_api_db_api_pb.SyncSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<api_db_api_db_api_pb.SyncSchedulerTargetsResponse>;
|
|
235
|
+
|
|
236
|
+
syncSchedulerTargets(
|
|
237
|
+
request: api_db_api_db_api_pb.SyncSchedulerTargetsRequest,
|
|
238
|
+
metadata?: grpcWeb.Metadata | null,
|
|
239
|
+
callback?: (err: grpcWeb.RpcError,
|
|
240
|
+
response: api_db_api_db_api_pb.SyncSchedulerTargetsResponse) => void) {
|
|
241
|
+
if (callback !== undefined) {
|
|
242
|
+
return this.client_.rpcCall(
|
|
243
|
+
this.hostname_ +
|
|
244
|
+
'/trb.db.api.public.contract.v1.DbApi/SyncSchedulerTargets',
|
|
245
|
+
request,
|
|
246
|
+
metadata || {},
|
|
247
|
+
this.methodDescriptorSyncSchedulerTargets,
|
|
248
|
+
callback);
|
|
249
|
+
}
|
|
250
|
+
return this.client_.unaryCall(
|
|
251
|
+
this.hostname_ +
|
|
252
|
+
'/trb.db.api.public.contract.v1.DbApi/SyncSchedulerTargets',
|
|
253
|
+
request,
|
|
254
|
+
metadata || {},
|
|
255
|
+
this.methodDescriptorSyncSchedulerTargets);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
methodDescriptorListLastDownloads = new grpcWeb.MethodDescriptor(
|
|
259
|
+
'/trb.db.api.public.contract.v1.DbApi/ListLastDownloads',
|
|
260
|
+
grpcWeb.MethodType.UNARY,
|
|
261
|
+
api_db_api_db_api_pb.ListLastDownloadsRequest,
|
|
262
|
+
api_db_api_db_api_pb.ListLastDownloadsResponse,
|
|
263
|
+
(request: api_db_api_db_api_pb.ListLastDownloadsRequest) => {
|
|
264
|
+
return request.serializeBinary();
|
|
265
|
+
},
|
|
266
|
+
api_db_api_db_api_pb.ListLastDownloadsResponse.deserializeBinary
|
|
267
|
+
);
|
|
268
|
+
|
|
269
|
+
listLastDownloads(
|
|
270
|
+
request: api_db_api_db_api_pb.ListLastDownloadsRequest,
|
|
271
|
+
metadata?: grpcWeb.Metadata | null): Promise<api_db_api_db_api_pb.ListLastDownloadsResponse>;
|
|
272
|
+
|
|
273
|
+
listLastDownloads(
|
|
274
|
+
request: api_db_api_db_api_pb.ListLastDownloadsRequest,
|
|
275
|
+
metadata: grpcWeb.Metadata | null,
|
|
276
|
+
callback: (err: grpcWeb.RpcError,
|
|
277
|
+
response: api_db_api_db_api_pb.ListLastDownloadsResponse) => void): grpcWeb.ClientReadableStream<api_db_api_db_api_pb.ListLastDownloadsResponse>;
|
|
278
|
+
|
|
279
|
+
listLastDownloads(
|
|
280
|
+
request: api_db_api_db_api_pb.ListLastDownloadsRequest,
|
|
281
|
+
metadata?: grpcWeb.Metadata | null,
|
|
282
|
+
callback?: (err: grpcWeb.RpcError,
|
|
283
|
+
response: api_db_api_db_api_pb.ListLastDownloadsResponse) => void) {
|
|
284
|
+
if (callback !== undefined) {
|
|
285
|
+
return this.client_.rpcCall(
|
|
286
|
+
this.hostname_ +
|
|
287
|
+
'/trb.db.api.public.contract.v1.DbApi/ListLastDownloads',
|
|
288
|
+
request,
|
|
289
|
+
metadata || {},
|
|
290
|
+
this.methodDescriptorListLastDownloads,
|
|
291
|
+
callback);
|
|
292
|
+
}
|
|
293
|
+
return this.client_.unaryCall(
|
|
294
|
+
this.hostname_ +
|
|
295
|
+
'/trb.db.api.public.contract.v1.DbApi/ListLastDownloads',
|
|
296
|
+
request,
|
|
297
|
+
metadata || {},
|
|
298
|
+
this.methodDescriptorListLastDownloads);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
}
|
|
302
|
+
|
|
@@ -2,6 +2,7 @@ import * as jspb from 'google-protobuf'
|
|
|
2
2
|
|
|
3
3
|
import * as google_api_annotations_pb from '../../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
|
|
4
4
|
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
|
|
5
|
+
import * as tinvest_instruments_pb from '../../tinvest/instruments_pb'; // proto import: "tinvest/instruments.proto"
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
export class ListFilter extends jspb.Message {
|
|
@@ -54,113 +55,101 @@ export namespace ListInstrumentsRequest {
|
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
|
|
57
|
-
export class
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
clearItemsList(): ListInstrumentsResponse;
|
|
61
|
-
addItems(value?: Instrument, index?: number): Instrument;
|
|
58
|
+
export class ListInstrumentVersionsRequest extends jspb.Message {
|
|
59
|
+
getUid(): string;
|
|
60
|
+
setUid(value: string): ListInstrumentVersionsRequest;
|
|
62
61
|
|
|
63
62
|
serializeBinary(): Uint8Array;
|
|
64
|
-
toObject(includeInstance?: boolean):
|
|
65
|
-
static toObject(includeInstance: boolean, msg:
|
|
66
|
-
static serializeBinaryToWriter(message:
|
|
67
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
68
|
-
static deserializeBinaryFromReader(message:
|
|
63
|
+
toObject(includeInstance?: boolean): ListInstrumentVersionsRequest.AsObject;
|
|
64
|
+
static toObject(includeInstance: boolean, msg: ListInstrumentVersionsRequest): ListInstrumentVersionsRequest.AsObject;
|
|
65
|
+
static serializeBinaryToWriter(message: ListInstrumentVersionsRequest, writer: jspb.BinaryWriter): void;
|
|
66
|
+
static deserializeBinary(bytes: Uint8Array): ListInstrumentVersionsRequest;
|
|
67
|
+
static deserializeBinaryFromReader(message: ListInstrumentVersionsRequest, reader: jspb.BinaryReader): ListInstrumentVersionsRequest;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
export namespace
|
|
70
|
+
export namespace ListInstrumentVersionsRequest {
|
|
72
71
|
export type AsObject = {
|
|
73
|
-
|
|
72
|
+
uid: string,
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
export class
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
export class InstrumentVersion extends jspb.Message {
|
|
77
|
+
getShare(): tinvest_instruments_pb.Share | undefined;
|
|
78
|
+
setShare(value?: tinvest_instruments_pb.Share): InstrumentVersion;
|
|
79
|
+
hasShare(): boolean;
|
|
80
|
+
clearShare(): InstrumentVersion;
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
getActual(): boolean;
|
|
83
|
+
setActual(value: boolean): InstrumentVersion;
|
|
83
84
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
setName(value: string): Instrument;
|
|
85
|
+
getVersion(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
86
|
+
setVersion(value?: google_protobuf_timestamp_pb.Timestamp): InstrumentVersion;
|
|
87
|
+
hasVersion(): boolean;
|
|
88
|
+
clearVersion(): InstrumentVersion;
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
setLot(value: number): Instrument;
|
|
98
|
-
|
|
99
|
-
getCurrency(): string;
|
|
100
|
-
setCurrency(value: string): Instrument;
|
|
101
|
-
|
|
102
|
-
getExchange(): string;
|
|
103
|
-
setExchange(value: string): Instrument;
|
|
104
|
-
|
|
105
|
-
getSector(): string;
|
|
106
|
-
setSector(value: string): Instrument;
|
|
90
|
+
serializeBinary(): Uint8Array;
|
|
91
|
+
toObject(includeInstance?: boolean): InstrumentVersion.AsObject;
|
|
92
|
+
static toObject(includeInstance: boolean, msg: InstrumentVersion): InstrumentVersion.AsObject;
|
|
93
|
+
static serializeBinaryToWriter(message: InstrumentVersion, writer: jspb.BinaryWriter): void;
|
|
94
|
+
static deserializeBinary(bytes: Uint8Array): InstrumentVersion;
|
|
95
|
+
static deserializeBinaryFromReader(message: InstrumentVersion, reader: jspb.BinaryReader): InstrumentVersion;
|
|
96
|
+
}
|
|
107
97
|
|
|
108
|
-
|
|
109
|
-
|
|
98
|
+
export namespace InstrumentVersion {
|
|
99
|
+
export type AsObject = {
|
|
100
|
+
share?: tinvest_instruments_pb.Share.AsObject,
|
|
101
|
+
actual: boolean,
|
|
102
|
+
version?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
103
|
+
}
|
|
104
|
+
}
|
|
110
105
|
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
export class ListInstrumentVersionsResponse extends jspb.Message {
|
|
107
|
+
getItemsList(): Array<InstrumentVersion>;
|
|
108
|
+
setItemsList(value: Array<InstrumentVersion>): ListInstrumentVersionsResponse;
|
|
109
|
+
clearItemsList(): ListInstrumentVersionsResponse;
|
|
110
|
+
addItems(value?: InstrumentVersion, index?: number): InstrumentVersion;
|
|
113
111
|
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
serializeBinary(): Uint8Array;
|
|
113
|
+
toObject(includeInstance?: boolean): ListInstrumentVersionsResponse.AsObject;
|
|
114
|
+
static toObject(includeInstance: boolean, msg: ListInstrumentVersionsResponse): ListInstrumentVersionsResponse.AsObject;
|
|
115
|
+
static serializeBinaryToWriter(message: ListInstrumentVersionsResponse, writer: jspb.BinaryWriter): void;
|
|
116
|
+
static deserializeBinary(bytes: Uint8Array): ListInstrumentVersionsResponse;
|
|
117
|
+
static deserializeBinaryFromReader(message: ListInstrumentVersionsResponse, reader: jspb.BinaryReader): ListInstrumentVersionsResponse;
|
|
118
|
+
}
|
|
116
119
|
|
|
117
|
-
|
|
118
|
-
|
|
120
|
+
export namespace ListInstrumentVersionsResponse {
|
|
121
|
+
export type AsObject = {
|
|
122
|
+
itemsList: Array<InstrumentVersion.AsObject>,
|
|
123
|
+
}
|
|
124
|
+
}
|
|
119
125
|
|
|
120
|
-
|
|
121
|
-
|
|
126
|
+
export class UpsertInstrumentsResponse extends jspb.Message {
|
|
127
|
+
getFetched(): number;
|
|
128
|
+
setFetched(value: number): UpsertInstrumentsResponse;
|
|
122
129
|
|
|
123
|
-
|
|
124
|
-
|
|
130
|
+
getInserted(): number;
|
|
131
|
+
setInserted(value: number): UpsertInstrumentsResponse;
|
|
125
132
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
hasFirst1minCandleDate(): boolean;
|
|
129
|
-
clearFirst1minCandleDate(): Instrument;
|
|
133
|
+
getUpdated(): number;
|
|
134
|
+
setUpdated(value: number): UpsertInstrumentsResponse;
|
|
130
135
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
hasFirst1dayCandleDate(): boolean;
|
|
134
|
-
clearFirst1dayCandleDate(): Instrument;
|
|
136
|
+
getUnchanged(): number;
|
|
137
|
+
setUnchanged(value: number): UpsertInstrumentsResponse;
|
|
135
138
|
|
|
136
139
|
serializeBinary(): Uint8Array;
|
|
137
|
-
toObject(includeInstance?: boolean):
|
|
138
|
-
static toObject(includeInstance: boolean, msg:
|
|
139
|
-
static serializeBinaryToWriter(message:
|
|
140
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
141
|
-
static deserializeBinaryFromReader(message:
|
|
140
|
+
toObject(includeInstance?: boolean): UpsertInstrumentsResponse.AsObject;
|
|
141
|
+
static toObject(includeInstance: boolean, msg: UpsertInstrumentsResponse): UpsertInstrumentsResponse.AsObject;
|
|
142
|
+
static serializeBinaryToWriter(message: UpsertInstrumentsResponse, writer: jspb.BinaryWriter): void;
|
|
143
|
+
static deserializeBinary(bytes: Uint8Array): UpsertInstrumentsResponse;
|
|
144
|
+
static deserializeBinaryFromReader(message: UpsertInstrumentsResponse, reader: jspb.BinaryReader): UpsertInstrumentsResponse;
|
|
142
145
|
}
|
|
143
146
|
|
|
144
|
-
export namespace
|
|
147
|
+
export namespace UpsertInstrumentsResponse {
|
|
145
148
|
export type AsObject = {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
classCode: string,
|
|
151
|
-
isin: string,
|
|
152
|
-
lot: number,
|
|
153
|
-
currency: string,
|
|
154
|
-
exchange: string,
|
|
155
|
-
sector: string,
|
|
156
|
-
tradingStatus: number,
|
|
157
|
-
liquidityFlag: boolean,
|
|
158
|
-
shortEnabledFlag: boolean,
|
|
159
|
-
apiTradeAvailableFlag: boolean,
|
|
160
|
-
buyAvailableFlag: boolean,
|
|
161
|
-
sellAvailableFlag: boolean,
|
|
162
|
-
first1minCandleDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
163
|
-
first1dayCandleDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
149
|
+
fetched: number,
|
|
150
|
+
inserted: number,
|
|
151
|
+
updated: number,
|
|
152
|
+
unchanged: number,
|
|
164
153
|
}
|
|
165
154
|
}
|
|
166
155
|
|