@marleena/trb-proto 1.0.42 → 1.0.44
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/gen/js-ts/indicators/IndicatorsServiceClientPb.ts +39 -81
- package/gen/js-ts/indicators/indicators_pb.d.ts +60 -110
- package/gen/js-ts/indicators/indicators_pb.js +1313 -1767
- package/gen/js-ts/indicators/params_pb.d.ts +4325 -0
- package/gen/js-ts/indicators/params_pb.js +35391 -0
- package/gen/js-ts/indicators/values_pb.d.ts +1943 -0
- package/gen/js-ts/indicators/values_pb.js +15239 -0
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
import * as grpcWeb from 'grpc-web';
|
|
19
19
|
|
|
20
20
|
import * as indicators_indicators_pb from '../indicators/indicators_pb'; // proto import: "indicators/indicators.proto"
|
|
21
|
+
import * as indicators_values_pb from '../indicators/values_pb'; // proto import: "indicators/values.proto"
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
export class IndicatorsClient {
|
|
@@ -168,133 +169,90 @@ export class IndicatorsClient {
|
|
|
168
169
|
this.methodDescriptorComputeForInstrument);
|
|
169
170
|
}
|
|
170
171
|
|
|
171
|
-
|
|
172
|
-
'/trb.indicators.v1.Indicators/
|
|
172
|
+
methodDescriptorIndicatorValues = new grpcWeb.MethodDescriptor(
|
|
173
|
+
'/trb.indicators.v1.Indicators/IndicatorValues',
|
|
173
174
|
grpcWeb.MethodType.UNARY,
|
|
174
|
-
indicators_indicators_pb.
|
|
175
|
-
|
|
176
|
-
(request: indicators_indicators_pb.
|
|
175
|
+
indicators_indicators_pb.SettingsRequest,
|
|
176
|
+
indicators_values_pb.IndicatorValuesResponse,
|
|
177
|
+
(request: indicators_indicators_pb.SettingsRequest) => {
|
|
177
178
|
return request.serializeBinary();
|
|
178
179
|
},
|
|
179
|
-
|
|
180
|
+
indicators_values_pb.IndicatorValuesResponse.deserializeBinary
|
|
180
181
|
);
|
|
181
182
|
|
|
182
|
-
|
|
183
|
-
request: indicators_indicators_pb.
|
|
184
|
-
metadata?: grpcWeb.Metadata | null): Promise<
|
|
183
|
+
indicatorValues(
|
|
184
|
+
request: indicators_indicators_pb.SettingsRequest,
|
|
185
|
+
metadata?: grpcWeb.Metadata | null): Promise<indicators_values_pb.IndicatorValuesResponse>;
|
|
185
186
|
|
|
186
|
-
|
|
187
|
-
request: indicators_indicators_pb.
|
|
187
|
+
indicatorValues(
|
|
188
|
+
request: indicators_indicators_pb.SettingsRequest,
|
|
188
189
|
metadata: grpcWeb.Metadata | null,
|
|
189
190
|
callback: (err: grpcWeb.RpcError,
|
|
190
|
-
response:
|
|
191
|
+
response: indicators_values_pb.IndicatorValuesResponse) => void): grpcWeb.ClientReadableStream<indicators_values_pb.IndicatorValuesResponse>;
|
|
191
192
|
|
|
192
|
-
|
|
193
|
-
request: indicators_indicators_pb.
|
|
193
|
+
indicatorValues(
|
|
194
|
+
request: indicators_indicators_pb.SettingsRequest,
|
|
194
195
|
metadata?: grpcWeb.Metadata | null,
|
|
195
196
|
callback?: (err: grpcWeb.RpcError,
|
|
196
|
-
response:
|
|
197
|
+
response: indicators_values_pb.IndicatorValuesResponse) => void) {
|
|
197
198
|
if (callback !== undefined) {
|
|
198
199
|
return this.client_.rpcCall(
|
|
199
200
|
this.hostname_ +
|
|
200
|
-
'/trb.indicators.v1.Indicators/
|
|
201
|
+
'/trb.indicators.v1.Indicators/IndicatorValues',
|
|
201
202
|
request,
|
|
202
203
|
metadata || {},
|
|
203
|
-
this.
|
|
204
|
+
this.methodDescriptorIndicatorValues,
|
|
204
205
|
callback);
|
|
205
206
|
}
|
|
206
207
|
return this.client_.unaryCall(
|
|
207
208
|
this.hostname_ +
|
|
208
|
-
'/trb.indicators.v1.Indicators/
|
|
209
|
+
'/trb.indicators.v1.Indicators/IndicatorValues',
|
|
209
210
|
request,
|
|
210
211
|
metadata || {},
|
|
211
|
-
this.
|
|
212
|
+
this.methodDescriptorIndicatorValues);
|
|
212
213
|
}
|
|
213
214
|
|
|
214
|
-
|
|
215
|
-
'/trb.indicators.v1.Indicators/
|
|
215
|
+
methodDescriptorSettingsHash = new grpcWeb.MethodDescriptor(
|
|
216
|
+
'/trb.indicators.v1.Indicators/SettingsHash',
|
|
216
217
|
grpcWeb.MethodType.UNARY,
|
|
217
|
-
indicators_indicators_pb.
|
|
218
|
-
indicators_indicators_pb.
|
|
219
|
-
(request: indicators_indicators_pb.
|
|
218
|
+
indicators_indicators_pb.SettingsRequest,
|
|
219
|
+
indicators_indicators_pb.SettingsHashResponse,
|
|
220
|
+
(request: indicators_indicators_pb.SettingsRequest) => {
|
|
220
221
|
return request.serializeBinary();
|
|
221
222
|
},
|
|
222
|
-
indicators_indicators_pb.
|
|
223
|
+
indicators_indicators_pb.SettingsHashResponse.deserializeBinary
|
|
223
224
|
);
|
|
224
225
|
|
|
225
|
-
|
|
226
|
-
request: indicators_indicators_pb.
|
|
227
|
-
metadata?: grpcWeb.Metadata | null): Promise<indicators_indicators_pb.
|
|
226
|
+
settingsHash(
|
|
227
|
+
request: indicators_indicators_pb.SettingsRequest,
|
|
228
|
+
metadata?: grpcWeb.Metadata | null): Promise<indicators_indicators_pb.SettingsHashResponse>;
|
|
228
229
|
|
|
229
|
-
|
|
230
|
-
request: indicators_indicators_pb.
|
|
230
|
+
settingsHash(
|
|
231
|
+
request: indicators_indicators_pb.SettingsRequest,
|
|
231
232
|
metadata: grpcWeb.Metadata | null,
|
|
232
233
|
callback: (err: grpcWeb.RpcError,
|
|
233
|
-
response: indicators_indicators_pb.
|
|
234
|
+
response: indicators_indicators_pb.SettingsHashResponse) => void): grpcWeb.ClientReadableStream<indicators_indicators_pb.SettingsHashResponse>;
|
|
234
235
|
|
|
235
|
-
|
|
236
|
-
request: indicators_indicators_pb.
|
|
236
|
+
settingsHash(
|
|
237
|
+
request: indicators_indicators_pb.SettingsRequest,
|
|
237
238
|
metadata?: grpcWeb.Metadata | null,
|
|
238
239
|
callback?: (err: grpcWeb.RpcError,
|
|
239
|
-
response: indicators_indicators_pb.
|
|
240
|
+
response: indicators_indicators_pb.SettingsHashResponse) => void) {
|
|
240
241
|
if (callback !== undefined) {
|
|
241
242
|
return this.client_.rpcCall(
|
|
242
243
|
this.hostname_ +
|
|
243
|
-
'/trb.indicators.v1.Indicators/
|
|
244
|
+
'/trb.indicators.v1.Indicators/SettingsHash',
|
|
244
245
|
request,
|
|
245
246
|
metadata || {},
|
|
246
|
-
this.
|
|
247
|
+
this.methodDescriptorSettingsHash,
|
|
247
248
|
callback);
|
|
248
249
|
}
|
|
249
250
|
return this.client_.unaryCall(
|
|
250
251
|
this.hostname_ +
|
|
251
|
-
'/trb.indicators.v1.Indicators/
|
|
252
|
+
'/trb.indicators.v1.Indicators/SettingsHash',
|
|
252
253
|
request,
|
|
253
254
|
metadata || {},
|
|
254
|
-
this.
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
methodDescriptorListIndicatorValues = new grpcWeb.MethodDescriptor(
|
|
258
|
-
'/trb.indicators.v1.Indicators/ListIndicatorValues',
|
|
259
|
-
grpcWeb.MethodType.UNARY,
|
|
260
|
-
indicators_indicators_pb.ListIndicatorValuesRequest,
|
|
261
|
-
indicators_indicators_pb.ListIndicatorValuesResponse,
|
|
262
|
-
(request: indicators_indicators_pb.ListIndicatorValuesRequest) => {
|
|
263
|
-
return request.serializeBinary();
|
|
264
|
-
},
|
|
265
|
-
indicators_indicators_pb.ListIndicatorValuesResponse.deserializeBinary
|
|
266
|
-
);
|
|
267
|
-
|
|
268
|
-
listIndicatorValues(
|
|
269
|
-
request: indicators_indicators_pb.ListIndicatorValuesRequest,
|
|
270
|
-
metadata?: grpcWeb.Metadata | null): Promise<indicators_indicators_pb.ListIndicatorValuesResponse>;
|
|
271
|
-
|
|
272
|
-
listIndicatorValues(
|
|
273
|
-
request: indicators_indicators_pb.ListIndicatorValuesRequest,
|
|
274
|
-
metadata: grpcWeb.Metadata | null,
|
|
275
|
-
callback: (err: grpcWeb.RpcError,
|
|
276
|
-
response: indicators_indicators_pb.ListIndicatorValuesResponse) => void): grpcWeb.ClientReadableStream<indicators_indicators_pb.ListIndicatorValuesResponse>;
|
|
277
|
-
|
|
278
|
-
listIndicatorValues(
|
|
279
|
-
request: indicators_indicators_pb.ListIndicatorValuesRequest,
|
|
280
|
-
metadata?: grpcWeb.Metadata | null,
|
|
281
|
-
callback?: (err: grpcWeb.RpcError,
|
|
282
|
-
response: indicators_indicators_pb.ListIndicatorValuesResponse) => void) {
|
|
283
|
-
if (callback !== undefined) {
|
|
284
|
-
return this.client_.rpcCall(
|
|
285
|
-
this.hostname_ +
|
|
286
|
-
'/trb.indicators.v1.Indicators/ListIndicatorValues',
|
|
287
|
-
request,
|
|
288
|
-
metadata || {},
|
|
289
|
-
this.methodDescriptorListIndicatorValues,
|
|
290
|
-
callback);
|
|
291
|
-
}
|
|
292
|
-
return this.client_.unaryCall(
|
|
293
|
-
this.hostname_ +
|
|
294
|
-
'/trb.indicators.v1.Indicators/ListIndicatorValues',
|
|
295
|
-
request,
|
|
296
|
-
metadata || {},
|
|
297
|
-
this.methodDescriptorListIndicatorValues);
|
|
255
|
+
this.methodDescriptorSettingsHash);
|
|
298
256
|
}
|
|
299
257
|
|
|
300
258
|
}
|
|
@@ -2,8 +2,68 @@ 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 indicators_params_pb from '../indicators/params_pb'; // proto import: "indicators/params.proto"
|
|
6
|
+
import * as indicators_values_pb from '../indicators/values_pb'; // proto import: "indicators/values.proto"
|
|
5
7
|
|
|
6
8
|
|
|
9
|
+
export class SettingsRequest extends jspb.Message {
|
|
10
|
+
getInterval(): number;
|
|
11
|
+
setInterval(value: number): SettingsRequest;
|
|
12
|
+
|
|
13
|
+
getUid(): string;
|
|
14
|
+
setUid(value: string): SettingsRequest;
|
|
15
|
+
|
|
16
|
+
getSettings(): indicators_params_pb.IndicatorSettings | undefined;
|
|
17
|
+
setSettings(value?: indicators_params_pb.IndicatorSettings): SettingsRequest;
|
|
18
|
+
hasSettings(): boolean;
|
|
19
|
+
clearSettings(): SettingsRequest;
|
|
20
|
+
|
|
21
|
+
getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
22
|
+
setStart(value?: google_protobuf_timestamp_pb.Timestamp): SettingsRequest;
|
|
23
|
+
hasStart(): boolean;
|
|
24
|
+
clearStart(): SettingsRequest;
|
|
25
|
+
|
|
26
|
+
getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
27
|
+
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): SettingsRequest;
|
|
28
|
+
hasEnd(): boolean;
|
|
29
|
+
clearEnd(): SettingsRequest;
|
|
30
|
+
|
|
31
|
+
serializeBinary(): Uint8Array;
|
|
32
|
+
toObject(includeInstance?: boolean): SettingsRequest.AsObject;
|
|
33
|
+
static toObject(includeInstance: boolean, msg: SettingsRequest): SettingsRequest.AsObject;
|
|
34
|
+
static serializeBinaryToWriter(message: SettingsRequest, writer: jspb.BinaryWriter): void;
|
|
35
|
+
static deserializeBinary(bytes: Uint8Array): SettingsRequest;
|
|
36
|
+
static deserializeBinaryFromReader(message: SettingsRequest, reader: jspb.BinaryReader): SettingsRequest;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export namespace SettingsRequest {
|
|
40
|
+
export type AsObject = {
|
|
41
|
+
interval: number,
|
|
42
|
+
uid: string,
|
|
43
|
+
settings?: indicators_params_pb.IndicatorSettings.AsObject,
|
|
44
|
+
start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
45
|
+
end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class SettingsHashResponse extends jspb.Message {
|
|
50
|
+
getHash(): number;
|
|
51
|
+
setHash(value: number): SettingsHashResponse;
|
|
52
|
+
|
|
53
|
+
serializeBinary(): Uint8Array;
|
|
54
|
+
toObject(includeInstance?: boolean): SettingsHashResponse.AsObject;
|
|
55
|
+
static toObject(includeInstance: boolean, msg: SettingsHashResponse): SettingsHashResponse.AsObject;
|
|
56
|
+
static serializeBinaryToWriter(message: SettingsHashResponse, writer: jspb.BinaryWriter): void;
|
|
57
|
+
static deserializeBinary(bytes: Uint8Array): SettingsHashResponse;
|
|
58
|
+
static deserializeBinaryFromReader(message: SettingsHashResponse, reader: jspb.BinaryReader): SettingsHashResponse;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export namespace SettingsHashResponse {
|
|
62
|
+
export type AsObject = {
|
|
63
|
+
hash: number,
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
7
67
|
export class Candle extends jspb.Message {
|
|
8
68
|
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
9
69
|
setTime(value?: google_protobuf_timestamp_pb.Timestamp): Candle;
|
|
@@ -333,116 +393,6 @@ export namespace ListSupportedResponse {
|
|
|
333
393
|
}
|
|
334
394
|
}
|
|
335
395
|
|
|
336
|
-
export class SchedulerTarget extends jspb.Message {
|
|
337
|
-
getUid(): string;
|
|
338
|
-
setUid(value: string): SchedulerTarget;
|
|
339
|
-
|
|
340
|
-
getInterval(): number;
|
|
341
|
-
setInterval(value: number): SchedulerTarget;
|
|
342
|
-
|
|
343
|
-
getIndicator(): string;
|
|
344
|
-
setIndicator(value: string): SchedulerTarget;
|
|
345
|
-
|
|
346
|
-
getParamsMap(): jspb.Map<string, number>;
|
|
347
|
-
clearParamsMap(): SchedulerTarget;
|
|
348
|
-
|
|
349
|
-
getEnabled(): boolean;
|
|
350
|
-
setEnabled(value: boolean): SchedulerTarget;
|
|
351
|
-
|
|
352
|
-
serializeBinary(): Uint8Array;
|
|
353
|
-
toObject(includeInstance?: boolean): SchedulerTarget.AsObject;
|
|
354
|
-
static toObject(includeInstance: boolean, msg: SchedulerTarget): SchedulerTarget.AsObject;
|
|
355
|
-
static serializeBinaryToWriter(message: SchedulerTarget, writer: jspb.BinaryWriter): void;
|
|
356
|
-
static deserializeBinary(bytes: Uint8Array): SchedulerTarget;
|
|
357
|
-
static deserializeBinaryFromReader(message: SchedulerTarget, reader: jspb.BinaryReader): SchedulerTarget;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export namespace SchedulerTarget {
|
|
361
|
-
export type AsObject = {
|
|
362
|
-
uid: string,
|
|
363
|
-
interval: number,
|
|
364
|
-
indicator: string,
|
|
365
|
-
paramsMap: Array<[string, number]>,
|
|
366
|
-
enabled: boolean,
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
export class ListSchedulerTargetsRequest extends jspb.Message {
|
|
371
|
-
serializeBinary(): Uint8Array;
|
|
372
|
-
toObject(includeInstance?: boolean): ListSchedulerTargetsRequest.AsObject;
|
|
373
|
-
static toObject(includeInstance: boolean, msg: ListSchedulerTargetsRequest): ListSchedulerTargetsRequest.AsObject;
|
|
374
|
-
static serializeBinaryToWriter(message: ListSchedulerTargetsRequest, writer: jspb.BinaryWriter): void;
|
|
375
|
-
static deserializeBinary(bytes: Uint8Array): ListSchedulerTargetsRequest;
|
|
376
|
-
static deserializeBinaryFromReader(message: ListSchedulerTargetsRequest, reader: jspb.BinaryReader): ListSchedulerTargetsRequest;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
export namespace ListSchedulerTargetsRequest {
|
|
380
|
-
export type AsObject = {
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export class ListSchedulerTargetsResponse extends jspb.Message {
|
|
385
|
-
getItemsList(): Array<SchedulerTarget>;
|
|
386
|
-
setItemsList(value: Array<SchedulerTarget>): ListSchedulerTargetsResponse;
|
|
387
|
-
clearItemsList(): ListSchedulerTargetsResponse;
|
|
388
|
-
addItems(value?: SchedulerTarget, index?: number): SchedulerTarget;
|
|
389
|
-
|
|
390
|
-
serializeBinary(): Uint8Array;
|
|
391
|
-
toObject(includeInstance?: boolean): ListSchedulerTargetsResponse.AsObject;
|
|
392
|
-
static toObject(includeInstance: boolean, msg: ListSchedulerTargetsResponse): ListSchedulerTargetsResponse.AsObject;
|
|
393
|
-
static serializeBinaryToWriter(message: ListSchedulerTargetsResponse, writer: jspb.BinaryWriter): void;
|
|
394
|
-
static deserializeBinary(bytes: Uint8Array): ListSchedulerTargetsResponse;
|
|
395
|
-
static deserializeBinaryFromReader(message: ListSchedulerTargetsResponse, reader: jspb.BinaryReader): ListSchedulerTargetsResponse;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
export namespace ListSchedulerTargetsResponse {
|
|
399
|
-
export type AsObject = {
|
|
400
|
-
itemsList: Array<SchedulerTarget.AsObject>,
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
export class SyncSchedulerTargetsRequest extends jspb.Message {
|
|
405
|
-
getItemsList(): Array<SchedulerTarget>;
|
|
406
|
-
setItemsList(value: Array<SchedulerTarget>): SyncSchedulerTargetsRequest;
|
|
407
|
-
clearItemsList(): SyncSchedulerTargetsRequest;
|
|
408
|
-
addItems(value?: SchedulerTarget, index?: number): SchedulerTarget;
|
|
409
|
-
|
|
410
|
-
getAllowEmpty(): boolean;
|
|
411
|
-
setAllowEmpty(value: boolean): SyncSchedulerTargetsRequest;
|
|
412
|
-
|
|
413
|
-
serializeBinary(): Uint8Array;
|
|
414
|
-
toObject(includeInstance?: boolean): SyncSchedulerTargetsRequest.AsObject;
|
|
415
|
-
static toObject(includeInstance: boolean, msg: SyncSchedulerTargetsRequest): SyncSchedulerTargetsRequest.AsObject;
|
|
416
|
-
static serializeBinaryToWriter(message: SyncSchedulerTargetsRequest, writer: jspb.BinaryWriter): void;
|
|
417
|
-
static deserializeBinary(bytes: Uint8Array): SyncSchedulerTargetsRequest;
|
|
418
|
-
static deserializeBinaryFromReader(message: SyncSchedulerTargetsRequest, reader: jspb.BinaryReader): SyncSchedulerTargetsRequest;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
export namespace SyncSchedulerTargetsRequest {
|
|
422
|
-
export type AsObject = {
|
|
423
|
-
itemsList: Array<SchedulerTarget.AsObject>,
|
|
424
|
-
allowEmpty: boolean,
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export class SyncSchedulerTargetsResponse extends jspb.Message {
|
|
429
|
-
getCount(): number;
|
|
430
|
-
setCount(value: number): SyncSchedulerTargetsResponse;
|
|
431
|
-
|
|
432
|
-
serializeBinary(): Uint8Array;
|
|
433
|
-
toObject(includeInstance?: boolean): SyncSchedulerTargetsResponse.AsObject;
|
|
434
|
-
static toObject(includeInstance: boolean, msg: SyncSchedulerTargetsResponse): SyncSchedulerTargetsResponse.AsObject;
|
|
435
|
-
static serializeBinaryToWriter(message: SyncSchedulerTargetsResponse, writer: jspb.BinaryWriter): void;
|
|
436
|
-
static deserializeBinary(bytes: Uint8Array): SyncSchedulerTargetsResponse;
|
|
437
|
-
static deserializeBinaryFromReader(message: SyncSchedulerTargetsResponse, reader: jspb.BinaryReader): SyncSchedulerTargetsResponse;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
export namespace SyncSchedulerTargetsResponse {
|
|
441
|
-
export type AsObject = {
|
|
442
|
-
count: number,
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
|
|
446
396
|
export enum IndicatorType {
|
|
447
397
|
INDICATOR_TYPE_UNSPECIFIED = 0,
|
|
448
398
|
INDICATOR_TYPE_RSI = 1,
|