@marleena/trb-proto 1.0.44 → 1.0.46

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.
@@ -3,40 +3,39 @@ import * as jspb from 'google-protobuf'
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
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"
7
6
 
8
7
 
9
- export class SettingsRequest extends jspb.Message {
8
+ export class Settings extends jspb.Message {
10
9
  getInterval(): number;
11
- setInterval(value: number): SettingsRequest;
10
+ setInterval(value: number): Settings;
12
11
 
13
12
  getUid(): string;
14
- setUid(value: string): SettingsRequest;
13
+ setUid(value: string): Settings;
15
14
 
16
15
  getSettings(): indicators_params_pb.IndicatorSettings | undefined;
17
- setSettings(value?: indicators_params_pb.IndicatorSettings): SettingsRequest;
16
+ setSettings(value?: indicators_params_pb.IndicatorSettings): Settings;
18
17
  hasSettings(): boolean;
19
- clearSettings(): SettingsRequest;
18
+ clearSettings(): Settings;
20
19
 
21
20
  getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
22
- setStart(value?: google_protobuf_timestamp_pb.Timestamp): SettingsRequest;
21
+ setStart(value?: google_protobuf_timestamp_pb.Timestamp): Settings;
23
22
  hasStart(): boolean;
24
- clearStart(): SettingsRequest;
23
+ clearStart(): Settings;
25
24
 
26
25
  getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
27
- setEnd(value?: google_protobuf_timestamp_pb.Timestamp): SettingsRequest;
26
+ setEnd(value?: google_protobuf_timestamp_pb.Timestamp): Settings;
28
27
  hasEnd(): boolean;
29
- clearEnd(): SettingsRequest;
28
+ clearEnd(): Settings;
30
29
 
31
30
  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;
31
+ toObject(includeInstance?: boolean): Settings.AsObject;
32
+ static toObject(includeInstance: boolean, msg: Settings): Settings.AsObject;
33
+ static serializeBinaryToWriter(message: Settings, writer: jspb.BinaryWriter): void;
34
+ static deserializeBinary(bytes: Uint8Array): Settings;
35
+ static deserializeBinaryFromReader(message: Settings, reader: jspb.BinaryReader): Settings;
37
36
  }
38
37
 
39
- export namespace SettingsRequest {
38
+ export namespace Settings {
40
39
  export type AsObject = {
41
40
  interval: number,
42
41
  uid: string,
@@ -46,358 +45,65 @@ export namespace SettingsRequest {
46
45
  }
47
46
  }
48
47
 
49
- export class SettingsHashResponse extends jspb.Message {
48
+ export class SettingsHash extends jspb.Message {
50
49
  getHash(): number;
51
- setHash(value: number): SettingsHashResponse;
50
+ setHash(value: number): SettingsHash;
52
51
 
53
52
  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;
53
+ toObject(includeInstance?: boolean): SettingsHash.AsObject;
54
+ static toObject(includeInstance: boolean, msg: SettingsHash): SettingsHash.AsObject;
55
+ static serializeBinaryToWriter(message: SettingsHash, writer: jspb.BinaryWriter): void;
56
+ static deserializeBinary(bytes: Uint8Array): SettingsHash;
57
+ static deserializeBinaryFromReader(message: SettingsHash, reader: jspb.BinaryReader): SettingsHash;
59
58
  }
60
59
 
61
- export namespace SettingsHashResponse {
60
+ export namespace SettingsHash {
62
61
  export type AsObject = {
63
62
  hash: number,
64
63
  }
65
64
  }
66
65
 
67
- export class Candle extends jspb.Message {
68
- getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
69
- setTime(value?: google_protobuf_timestamp_pb.Timestamp): Candle;
70
- hasTime(): boolean;
71
- clearTime(): Candle;
72
-
73
- getOpen(): number;
74
- setOpen(value: number): Candle;
75
-
76
- getHigh(): number;
77
- setHigh(value: number): Candle;
78
-
79
- getLow(): number;
80
- setLow(value: number): Candle;
81
-
82
- getClose(): number;
83
- setClose(value: number): Candle;
84
-
85
- getVolume(): number;
86
- setVolume(value: number): Candle;
87
-
88
- serializeBinary(): Uint8Array;
89
- toObject(includeInstance?: boolean): Candle.AsObject;
90
- static toObject(includeInstance: boolean, msg: Candle): Candle.AsObject;
91
- static serializeBinaryToWriter(message: Candle, writer: jspb.BinaryWriter): void;
92
- static deserializeBinary(bytes: Uint8Array): Candle;
93
- static deserializeBinaryFromReader(message: Candle, reader: jspb.BinaryReader): Candle;
94
- }
95
-
96
- export namespace Candle {
97
- export type AsObject = {
98
- time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
99
- open: number,
100
- high: number,
101
- low: number,
102
- close: number,
103
- volume: number,
104
- }
105
- }
106
-
107
- export class ComputeRequest extends jspb.Message {
108
- getType(): IndicatorType;
109
- setType(value: IndicatorType): ComputeRequest;
110
-
111
- getCandlesList(): Array<Candle>;
112
- setCandlesList(value: Array<Candle>): ComputeRequest;
113
- clearCandlesList(): ComputeRequest;
114
- addCandles(value?: Candle, index?: number): Candle;
115
-
116
- getParamsMap(): jspb.Map<string, number>;
117
- clearParamsMap(): ComputeRequest;
118
-
119
- serializeBinary(): Uint8Array;
120
- toObject(includeInstance?: boolean): ComputeRequest.AsObject;
121
- static toObject(includeInstance: boolean, msg: ComputeRequest): ComputeRequest.AsObject;
122
- static serializeBinaryToWriter(message: ComputeRequest, writer: jspb.BinaryWriter): void;
123
- static deserializeBinary(bytes: Uint8Array): ComputeRequest;
124
- static deserializeBinaryFromReader(message: ComputeRequest, reader: jspb.BinaryReader): ComputeRequest;
125
- }
126
-
127
- export namespace ComputeRequest {
128
- export type AsObject = {
129
- type: IndicatorType,
130
- candlesList: Array<Candle.AsObject>,
131
- paramsMap: Array<[string, number]>,
132
- }
133
- }
134
-
135
- export class ComputeForInstrumentRequest extends jspb.Message {
136
- getUid(): string;
137
- setUid(value: string): ComputeForInstrumentRequest;
138
-
139
- getInterval(): number;
140
- setInterval(value: number): ComputeForInstrumentRequest;
141
-
142
- getFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
143
- setFrom(value?: google_protobuf_timestamp_pb.Timestamp): ComputeForInstrumentRequest;
144
- hasFrom(): boolean;
145
- clearFrom(): ComputeForInstrumentRequest;
146
-
147
- getTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
148
- setTo(value?: google_protobuf_timestamp_pb.Timestamp): ComputeForInstrumentRequest;
149
- hasTo(): boolean;
150
- clearTo(): ComputeForInstrumentRequest;
151
-
152
- getType(): IndicatorType;
153
- setType(value: IndicatorType): ComputeForInstrumentRequest;
154
-
155
- getParamsMap(): jspb.Map<string, number>;
156
- clearParamsMap(): ComputeForInstrumentRequest;
157
-
158
- getPersist(): boolean;
159
- setPersist(value: boolean): ComputeForInstrumentRequest;
160
-
161
- getMaxResponsePoints(): number;
162
- setMaxResponsePoints(value: number): ComputeForInstrumentRequest;
163
- hasMaxResponsePoints(): boolean;
164
- clearMaxResponsePoints(): ComputeForInstrumentRequest;
165
-
166
- serializeBinary(): Uint8Array;
167
- toObject(includeInstance?: boolean): ComputeForInstrumentRequest.AsObject;
168
- static toObject(includeInstance: boolean, msg: ComputeForInstrumentRequest): ComputeForInstrumentRequest.AsObject;
169
- static serializeBinaryToWriter(message: ComputeForInstrumentRequest, writer: jspb.BinaryWriter): void;
170
- static deserializeBinary(bytes: Uint8Array): ComputeForInstrumentRequest;
171
- static deserializeBinaryFromReader(message: ComputeForInstrumentRequest, reader: jspb.BinaryReader): ComputeForInstrumentRequest;
172
- }
173
-
174
- export namespace ComputeForInstrumentRequest {
175
- export type AsObject = {
176
- uid: string,
177
- interval: number,
178
- from?: google_protobuf_timestamp_pb.Timestamp.AsObject,
179
- to?: google_protobuf_timestamp_pb.Timestamp.AsObject,
180
- type: IndicatorType,
181
- paramsMap: Array<[string, number]>,
182
- persist: boolean,
183
- maxResponsePoints?: number,
184
- }
185
-
186
- export enum MaxResponsePointsCase {
187
- _MAX_RESPONSE_POINTS_NOT_SET = 0,
188
- MAX_RESPONSE_POINTS = 8,
189
- }
190
- }
191
-
192
- export class ListIndicatorValuesRequest extends jspb.Message {
193
- getUid(): string;
194
- setUid(value: string): ListIndicatorValuesRequest;
195
-
196
- getInterval(): number;
197
- setInterval(value: number): ListIndicatorValuesRequest;
198
-
199
- getFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
200
- setFrom(value?: google_protobuf_timestamp_pb.Timestamp): ListIndicatorValuesRequest;
201
- hasFrom(): boolean;
202
- clearFrom(): ListIndicatorValuesRequest;
203
-
204
- getTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
205
- setTo(value?: google_protobuf_timestamp_pb.Timestamp): ListIndicatorValuesRequest;
206
- hasTo(): boolean;
207
- clearTo(): ListIndicatorValuesRequest;
208
-
209
- getType(): IndicatorType;
210
- setType(value: IndicatorType): ListIndicatorValuesRequest;
211
-
212
- getParamsMap(): jspb.Map<string, number>;
213
- clearParamsMap(): ListIndicatorValuesRequest;
214
-
215
- getLimit(): number;
216
- setLimit(value: number): ListIndicatorValuesRequest;
217
-
218
- getAfter(): google_protobuf_timestamp_pb.Timestamp | undefined;
219
- setAfter(value?: google_protobuf_timestamp_pb.Timestamp): ListIndicatorValuesRequest;
220
- hasAfter(): boolean;
221
- clearAfter(): ListIndicatorValuesRequest;
222
-
223
- serializeBinary(): Uint8Array;
224
- toObject(includeInstance?: boolean): ListIndicatorValuesRequest.AsObject;
225
- static toObject(includeInstance: boolean, msg: ListIndicatorValuesRequest): ListIndicatorValuesRequest.AsObject;
226
- static serializeBinaryToWriter(message: ListIndicatorValuesRequest, writer: jspb.BinaryWriter): void;
227
- static deserializeBinary(bytes: Uint8Array): ListIndicatorValuesRequest;
228
- static deserializeBinaryFromReader(message: ListIndicatorValuesRequest, reader: jspb.BinaryReader): ListIndicatorValuesRequest;
229
- }
230
-
231
- export namespace ListIndicatorValuesRequest {
232
- export type AsObject = {
233
- uid: string,
234
- interval: number,
235
- from?: google_protobuf_timestamp_pb.Timestamp.AsObject,
236
- to?: google_protobuf_timestamp_pb.Timestamp.AsObject,
237
- type: IndicatorType,
238
- paramsMap: Array<[string, number]>,
239
- limit: number,
240
- after?: google_protobuf_timestamp_pb.Timestamp.AsObject,
241
- }
242
- }
243
-
244
- export class IndicatorPoint extends jspb.Message {
245
- getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
246
- setTime(value?: google_protobuf_timestamp_pb.Timestamp): IndicatorPoint;
247
- hasTime(): boolean;
248
- clearTime(): IndicatorPoint;
249
-
250
- getValuesMap(): jspb.Map<string, number>;
251
- clearValuesMap(): IndicatorPoint;
252
-
253
- serializeBinary(): Uint8Array;
254
- toObject(includeInstance?: boolean): IndicatorPoint.AsObject;
255
- static toObject(includeInstance: boolean, msg: IndicatorPoint): IndicatorPoint.AsObject;
256
- static serializeBinaryToWriter(message: IndicatorPoint, writer: jspb.BinaryWriter): void;
257
- static deserializeBinary(bytes: Uint8Array): IndicatorPoint;
258
- static deserializeBinaryFromReader(message: IndicatorPoint, reader: jspb.BinaryReader): IndicatorPoint;
259
- }
260
-
261
- export namespace IndicatorPoint {
262
- export type AsObject = {
263
- time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
264
- valuesMap: Array<[string, number]>,
265
- }
266
- }
267
-
268
- export class ComputeResponse extends jspb.Message {
269
- getType(): IndicatorType;
270
- setType(value: IndicatorType): ComputeResponse;
271
-
272
- getParamsMap(): jspb.Map<string, number>;
273
- clearParamsMap(): ComputeResponse;
274
-
275
- getPointsList(): Array<IndicatorPoint>;
276
- setPointsList(value: Array<IndicatorPoint>): ComputeResponse;
277
- clearPointsList(): ComputeResponse;
278
- addPoints(value?: IndicatorPoint, index?: number): IndicatorPoint;
279
-
280
- getTotalPoints(): number;
281
- setTotalPoints(value: number): ComputeResponse;
282
-
283
- serializeBinary(): Uint8Array;
284
- toObject(includeInstance?: boolean): ComputeResponse.AsObject;
285
- static toObject(includeInstance: boolean, msg: ComputeResponse): ComputeResponse.AsObject;
286
- static serializeBinaryToWriter(message: ComputeResponse, writer: jspb.BinaryWriter): void;
287
- static deserializeBinary(bytes: Uint8Array): ComputeResponse;
288
- static deserializeBinaryFromReader(message: ComputeResponse, reader: jspb.BinaryReader): ComputeResponse;
289
- }
290
-
291
- export namespace ComputeResponse {
292
- export type AsObject = {
293
- type: IndicatorType,
294
- paramsMap: Array<[string, number]>,
295
- pointsList: Array<IndicatorPoint.AsObject>,
296
- totalPoints: number,
297
- }
298
- }
299
-
300
- export class ListIndicatorValuesResponse extends jspb.Message {
301
- getType(): IndicatorType;
302
- setType(value: IndicatorType): ListIndicatorValuesResponse;
303
-
304
- getParamsMap(): jspb.Map<string, number>;
305
- clearParamsMap(): ListIndicatorValuesResponse;
306
-
307
- getPointsList(): Array<IndicatorPoint>;
308
- setPointsList(value: Array<IndicatorPoint>): ListIndicatorValuesResponse;
309
- clearPointsList(): ListIndicatorValuesResponse;
310
- addPoints(value?: IndicatorPoint, index?: number): IndicatorPoint;
311
-
312
- getHasMore(): boolean;
313
- setHasMore(value: boolean): ListIndicatorValuesResponse;
314
-
315
- serializeBinary(): Uint8Array;
316
- toObject(includeInstance?: boolean): ListIndicatorValuesResponse.AsObject;
317
- static toObject(includeInstance: boolean, msg: ListIndicatorValuesResponse): ListIndicatorValuesResponse.AsObject;
318
- static serializeBinaryToWriter(message: ListIndicatorValuesResponse, writer: jspb.BinaryWriter): void;
319
- static deserializeBinary(bytes: Uint8Array): ListIndicatorValuesResponse;
320
- static deserializeBinaryFromReader(message: ListIndicatorValuesResponse, reader: jspb.BinaryReader): ListIndicatorValuesResponse;
321
- }
322
-
323
- export namespace ListIndicatorValuesResponse {
324
- export type AsObject = {
325
- type: IndicatorType,
326
- paramsMap: Array<[string, number]>,
327
- pointsList: Array<IndicatorPoint.AsObject>,
328
- hasMore: boolean,
329
- }
330
- }
331
-
332
- export class IndicatorInfo extends jspb.Message {
333
- getType(): IndicatorType;
334
- setType(value: IndicatorType): IndicatorInfo;
335
-
336
- getName(): string;
337
- setName(value: string): IndicatorInfo;
338
-
339
- getMinBars(): number;
340
- setMinBars(value: number): IndicatorInfo;
66
+ export class DeleteSettingsResponse extends jspb.Message {
67
+ getHash(): number;
68
+ setHash(value: number): DeleteSettingsResponse;
341
69
 
342
- getDefaultParamsMap(): jspb.Map<string, number>;
343
- clearDefaultParamsMap(): IndicatorInfo;
70
+ getDelete(): boolean;
71
+ setDelete(value: boolean): DeleteSettingsResponse;
344
72
 
345
73
  serializeBinary(): Uint8Array;
346
- toObject(includeInstance?: boolean): IndicatorInfo.AsObject;
347
- static toObject(includeInstance: boolean, msg: IndicatorInfo): IndicatorInfo.AsObject;
348
- static serializeBinaryToWriter(message: IndicatorInfo, writer: jspb.BinaryWriter): void;
349
- static deserializeBinary(bytes: Uint8Array): IndicatorInfo;
350
- static deserializeBinaryFromReader(message: IndicatorInfo, reader: jspb.BinaryReader): IndicatorInfo;
74
+ toObject(includeInstance?: boolean): DeleteSettingsResponse.AsObject;
75
+ static toObject(includeInstance: boolean, msg: DeleteSettingsResponse): DeleteSettingsResponse.AsObject;
76
+ static serializeBinaryToWriter(message: DeleteSettingsResponse, writer: jspb.BinaryWriter): void;
77
+ static deserializeBinary(bytes: Uint8Array): DeleteSettingsResponse;
78
+ static deserializeBinaryFromReader(message: DeleteSettingsResponse, reader: jspb.BinaryReader): DeleteSettingsResponse;
351
79
  }
352
80
 
353
- export namespace IndicatorInfo {
81
+ export namespace DeleteSettingsResponse {
354
82
  export type AsObject = {
355
- type: IndicatorType,
356
- name: string,
357
- minBars: number,
358
- defaultParamsMap: Array<[string, number]>,
83
+ hash: number,
84
+ pb_delete: boolean,
359
85
  }
360
86
  }
361
87
 
362
- export class ListSupportedRequest extends jspb.Message {
363
- serializeBinary(): Uint8Array;
364
- toObject(includeInstance?: boolean): ListSupportedRequest.AsObject;
365
- static toObject(includeInstance: boolean, msg: ListSupportedRequest): ListSupportedRequest.AsObject;
366
- static serializeBinaryToWriter(message: ListSupportedRequest, writer: jspb.BinaryWriter): void;
367
- static deserializeBinary(bytes: Uint8Array): ListSupportedRequest;
368
- static deserializeBinaryFromReader(message: ListSupportedRequest, reader: jspb.BinaryReader): ListSupportedRequest;
369
- }
370
-
371
- export namespace ListSupportedRequest {
372
- export type AsObject = {
373
- }
374
- }
88
+ export class UpdateSettingsResponse extends jspb.Message {
89
+ getHash(): number;
90
+ setHash(value: number): UpdateSettingsResponse;
375
91
 
376
- export class ListSupportedResponse extends jspb.Message {
377
- getIndicatorsList(): Array<IndicatorInfo>;
378
- setIndicatorsList(value: Array<IndicatorInfo>): ListSupportedResponse;
379
- clearIndicatorsList(): ListSupportedResponse;
380
- addIndicators(value?: IndicatorInfo, index?: number): IndicatorInfo;
92
+ getUpdate(): boolean;
93
+ setUpdate(value: boolean): UpdateSettingsResponse;
381
94
 
382
95
  serializeBinary(): Uint8Array;
383
- toObject(includeInstance?: boolean): ListSupportedResponse.AsObject;
384
- static toObject(includeInstance: boolean, msg: ListSupportedResponse): ListSupportedResponse.AsObject;
385
- static serializeBinaryToWriter(message: ListSupportedResponse, writer: jspb.BinaryWriter): void;
386
- static deserializeBinary(bytes: Uint8Array): ListSupportedResponse;
387
- static deserializeBinaryFromReader(message: ListSupportedResponse, reader: jspb.BinaryReader): ListSupportedResponse;
96
+ toObject(includeInstance?: boolean): UpdateSettingsResponse.AsObject;
97
+ static toObject(includeInstance: boolean, msg: UpdateSettingsResponse): UpdateSettingsResponse.AsObject;
98
+ static serializeBinaryToWriter(message: UpdateSettingsResponse, writer: jspb.BinaryWriter): void;
99
+ static deserializeBinary(bytes: Uint8Array): UpdateSettingsResponse;
100
+ static deserializeBinaryFromReader(message: UpdateSettingsResponse, reader: jspb.BinaryReader): UpdateSettingsResponse;
388
101
  }
389
102
 
390
- export namespace ListSupportedResponse {
103
+ export namespace UpdateSettingsResponse {
391
104
  export type AsObject = {
392
- indicatorsList: Array<IndicatorInfo.AsObject>,
105
+ hash: number,
106
+ update: boolean,
393
107
  }
394
108
  }
395
109
 
396
- export enum IndicatorType {
397
- INDICATOR_TYPE_UNSPECIFIED = 0,
398
- INDICATOR_TYPE_RSI = 1,
399
- INDICATOR_TYPE_SMA = 2,
400
- INDICATOR_TYPE_EMA = 3,
401
- INDICATOR_TYPE_MACD = 4,
402
- INDICATOR_TYPE_BB = 5,
403
- }