@marleena/trb-proto 1.0.40 → 1.0.42

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.
@@ -168,5 +168,134 @@ export class IndicatorsClient {
168
168
  this.methodDescriptorComputeForInstrument);
169
169
  }
170
170
 
171
+ methodDescriptorListSchedulerTargets = new grpcWeb.MethodDescriptor(
172
+ '/trb.indicators.v1.Indicators/ListSchedulerTargets',
173
+ grpcWeb.MethodType.UNARY,
174
+ indicators_indicators_pb.ListSchedulerTargetsRequest,
175
+ indicators_indicators_pb.ListSchedulerTargetsResponse,
176
+ (request: indicators_indicators_pb.ListSchedulerTargetsRequest) => {
177
+ return request.serializeBinary();
178
+ },
179
+ indicators_indicators_pb.ListSchedulerTargetsResponse.deserializeBinary
180
+ );
181
+
182
+ listSchedulerTargets(
183
+ request: indicators_indicators_pb.ListSchedulerTargetsRequest,
184
+ metadata?: grpcWeb.Metadata | null): Promise<indicators_indicators_pb.ListSchedulerTargetsResponse>;
185
+
186
+ listSchedulerTargets(
187
+ request: indicators_indicators_pb.ListSchedulerTargetsRequest,
188
+ metadata: grpcWeb.Metadata | null,
189
+ callback: (err: grpcWeb.RpcError,
190
+ response: indicators_indicators_pb.ListSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<indicators_indicators_pb.ListSchedulerTargetsResponse>;
191
+
192
+ listSchedulerTargets(
193
+ request: indicators_indicators_pb.ListSchedulerTargetsRequest,
194
+ metadata?: grpcWeb.Metadata | null,
195
+ callback?: (err: grpcWeb.RpcError,
196
+ response: indicators_indicators_pb.ListSchedulerTargetsResponse) => void) {
197
+ if (callback !== undefined) {
198
+ return this.client_.rpcCall(
199
+ this.hostname_ +
200
+ '/trb.indicators.v1.Indicators/ListSchedulerTargets',
201
+ request,
202
+ metadata || {},
203
+ this.methodDescriptorListSchedulerTargets,
204
+ callback);
205
+ }
206
+ return this.client_.unaryCall(
207
+ this.hostname_ +
208
+ '/trb.indicators.v1.Indicators/ListSchedulerTargets',
209
+ request,
210
+ metadata || {},
211
+ this.methodDescriptorListSchedulerTargets);
212
+ }
213
+
214
+ methodDescriptorSyncSchedulerTargets = new grpcWeb.MethodDescriptor(
215
+ '/trb.indicators.v1.Indicators/SyncSchedulerTargets',
216
+ grpcWeb.MethodType.UNARY,
217
+ indicators_indicators_pb.SyncSchedulerTargetsRequest,
218
+ indicators_indicators_pb.SyncSchedulerTargetsResponse,
219
+ (request: indicators_indicators_pb.SyncSchedulerTargetsRequest) => {
220
+ return request.serializeBinary();
221
+ },
222
+ indicators_indicators_pb.SyncSchedulerTargetsResponse.deserializeBinary
223
+ );
224
+
225
+ syncSchedulerTargets(
226
+ request: indicators_indicators_pb.SyncSchedulerTargetsRequest,
227
+ metadata?: grpcWeb.Metadata | null): Promise<indicators_indicators_pb.SyncSchedulerTargetsResponse>;
228
+
229
+ syncSchedulerTargets(
230
+ request: indicators_indicators_pb.SyncSchedulerTargetsRequest,
231
+ metadata: grpcWeb.Metadata | null,
232
+ callback: (err: grpcWeb.RpcError,
233
+ response: indicators_indicators_pb.SyncSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<indicators_indicators_pb.SyncSchedulerTargetsResponse>;
234
+
235
+ syncSchedulerTargets(
236
+ request: indicators_indicators_pb.SyncSchedulerTargetsRequest,
237
+ metadata?: grpcWeb.Metadata | null,
238
+ callback?: (err: grpcWeb.RpcError,
239
+ response: indicators_indicators_pb.SyncSchedulerTargetsResponse) => void) {
240
+ if (callback !== undefined) {
241
+ return this.client_.rpcCall(
242
+ this.hostname_ +
243
+ '/trb.indicators.v1.Indicators/SyncSchedulerTargets',
244
+ request,
245
+ metadata || {},
246
+ this.methodDescriptorSyncSchedulerTargets,
247
+ callback);
248
+ }
249
+ return this.client_.unaryCall(
250
+ this.hostname_ +
251
+ '/trb.indicators.v1.Indicators/SyncSchedulerTargets',
252
+ request,
253
+ metadata || {},
254
+ this.methodDescriptorSyncSchedulerTargets);
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);
298
+ }
299
+
171
300
  }
172
301
 
@@ -98,6 +98,11 @@ export class ComputeForInstrumentRequest extends jspb.Message {
98
98
  getPersist(): boolean;
99
99
  setPersist(value: boolean): ComputeForInstrumentRequest;
100
100
 
101
+ getMaxResponsePoints(): number;
102
+ setMaxResponsePoints(value: number): ComputeForInstrumentRequest;
103
+ hasMaxResponsePoints(): boolean;
104
+ clearMaxResponsePoints(): ComputeForInstrumentRequest;
105
+
101
106
  serializeBinary(): Uint8Array;
102
107
  toObject(includeInstance?: boolean): ComputeForInstrumentRequest.AsObject;
103
108
  static toObject(includeInstance: boolean, msg: ComputeForInstrumentRequest): ComputeForInstrumentRequest.AsObject;
@@ -115,6 +120,64 @@ export namespace ComputeForInstrumentRequest {
115
120
  type: IndicatorType,
116
121
  paramsMap: Array<[string, number]>,
117
122
  persist: boolean,
123
+ maxResponsePoints?: number,
124
+ }
125
+
126
+ export enum MaxResponsePointsCase {
127
+ _MAX_RESPONSE_POINTS_NOT_SET = 0,
128
+ MAX_RESPONSE_POINTS = 8,
129
+ }
130
+ }
131
+
132
+ export class ListIndicatorValuesRequest extends jspb.Message {
133
+ getUid(): string;
134
+ setUid(value: string): ListIndicatorValuesRequest;
135
+
136
+ getInterval(): number;
137
+ setInterval(value: number): ListIndicatorValuesRequest;
138
+
139
+ getFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
140
+ setFrom(value?: google_protobuf_timestamp_pb.Timestamp): ListIndicatorValuesRequest;
141
+ hasFrom(): boolean;
142
+ clearFrom(): ListIndicatorValuesRequest;
143
+
144
+ getTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
145
+ setTo(value?: google_protobuf_timestamp_pb.Timestamp): ListIndicatorValuesRequest;
146
+ hasTo(): boolean;
147
+ clearTo(): ListIndicatorValuesRequest;
148
+
149
+ getType(): IndicatorType;
150
+ setType(value: IndicatorType): ListIndicatorValuesRequest;
151
+
152
+ getParamsMap(): jspb.Map<string, number>;
153
+ clearParamsMap(): ListIndicatorValuesRequest;
154
+
155
+ getLimit(): number;
156
+ setLimit(value: number): ListIndicatorValuesRequest;
157
+
158
+ getAfter(): google_protobuf_timestamp_pb.Timestamp | undefined;
159
+ setAfter(value?: google_protobuf_timestamp_pb.Timestamp): ListIndicatorValuesRequest;
160
+ hasAfter(): boolean;
161
+ clearAfter(): ListIndicatorValuesRequest;
162
+
163
+ serializeBinary(): Uint8Array;
164
+ toObject(includeInstance?: boolean): ListIndicatorValuesRequest.AsObject;
165
+ static toObject(includeInstance: boolean, msg: ListIndicatorValuesRequest): ListIndicatorValuesRequest.AsObject;
166
+ static serializeBinaryToWriter(message: ListIndicatorValuesRequest, writer: jspb.BinaryWriter): void;
167
+ static deserializeBinary(bytes: Uint8Array): ListIndicatorValuesRequest;
168
+ static deserializeBinaryFromReader(message: ListIndicatorValuesRequest, reader: jspb.BinaryReader): ListIndicatorValuesRequest;
169
+ }
170
+
171
+ export namespace ListIndicatorValuesRequest {
172
+ export type AsObject = {
173
+ uid: string,
174
+ interval: number,
175
+ from?: google_protobuf_timestamp_pb.Timestamp.AsObject,
176
+ to?: google_protobuf_timestamp_pb.Timestamp.AsObject,
177
+ type: IndicatorType,
178
+ paramsMap: Array<[string, number]>,
179
+ limit: number,
180
+ after?: google_protobuf_timestamp_pb.Timestamp.AsObject,
118
181
  }
119
182
  }
120
183
 
@@ -154,6 +217,9 @@ export class ComputeResponse extends jspb.Message {
154
217
  clearPointsList(): ComputeResponse;
155
218
  addPoints(value?: IndicatorPoint, index?: number): IndicatorPoint;
156
219
 
220
+ getTotalPoints(): number;
221
+ setTotalPoints(value: number): ComputeResponse;
222
+
157
223
  serializeBinary(): Uint8Array;
158
224
  toObject(includeInstance?: boolean): ComputeResponse.AsObject;
159
225
  static toObject(includeInstance: boolean, msg: ComputeResponse): ComputeResponse.AsObject;
@@ -167,6 +233,39 @@ export namespace ComputeResponse {
167
233
  type: IndicatorType,
168
234
  paramsMap: Array<[string, number]>,
169
235
  pointsList: Array<IndicatorPoint.AsObject>,
236
+ totalPoints: number,
237
+ }
238
+ }
239
+
240
+ export class ListIndicatorValuesResponse extends jspb.Message {
241
+ getType(): IndicatorType;
242
+ setType(value: IndicatorType): ListIndicatorValuesResponse;
243
+
244
+ getParamsMap(): jspb.Map<string, number>;
245
+ clearParamsMap(): ListIndicatorValuesResponse;
246
+
247
+ getPointsList(): Array<IndicatorPoint>;
248
+ setPointsList(value: Array<IndicatorPoint>): ListIndicatorValuesResponse;
249
+ clearPointsList(): ListIndicatorValuesResponse;
250
+ addPoints(value?: IndicatorPoint, index?: number): IndicatorPoint;
251
+
252
+ getHasMore(): boolean;
253
+ setHasMore(value: boolean): ListIndicatorValuesResponse;
254
+
255
+ serializeBinary(): Uint8Array;
256
+ toObject(includeInstance?: boolean): ListIndicatorValuesResponse.AsObject;
257
+ static toObject(includeInstance: boolean, msg: ListIndicatorValuesResponse): ListIndicatorValuesResponse.AsObject;
258
+ static serializeBinaryToWriter(message: ListIndicatorValuesResponse, writer: jspb.BinaryWriter): void;
259
+ static deserializeBinary(bytes: Uint8Array): ListIndicatorValuesResponse;
260
+ static deserializeBinaryFromReader(message: ListIndicatorValuesResponse, reader: jspb.BinaryReader): ListIndicatorValuesResponse;
261
+ }
262
+
263
+ export namespace ListIndicatorValuesResponse {
264
+ export type AsObject = {
265
+ type: IndicatorType,
266
+ paramsMap: Array<[string, number]>,
267
+ pointsList: Array<IndicatorPoint.AsObject>,
268
+ hasMore: boolean,
170
269
  }
171
270
  }
172
271
 
@@ -234,6 +333,116 @@ export namespace ListSupportedResponse {
234
333
  }
235
334
  }
236
335
 
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
+
237
446
  export enum IndicatorType {
238
447
  INDICATOR_TYPE_UNSPECIFIED = 0,
239
448
  INDICATOR_TYPE_RSI = 1,