@marleena/trb-proto 1.0.28 → 1.0.30

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.
Files changed (50) hide show
  1. package/README.md +15 -3
  2. package/gen/js-ts/{tinvest → api/tinvest}/InstrumentsServiceClientPb.ts +432 -432
  3. package/gen/js-ts/{tinvest → api/tinvest}/MarketdataServiceClientPb.ts +98 -98
  4. package/gen/js-ts/{tinvest → api/tinvest}/OperationsServiceClientPb.ts +90 -90
  5. package/gen/js-ts/{tinvest → api/tinvest}/OrdersServiceClientPb.ts +94 -94
  6. package/gen/js-ts/{tinvest → api/tinvest}/SandboxServiceClientPb.ts +206 -206
  7. package/gen/js-ts/{tinvest → api/tinvest}/SignalsServiceClientPb.ts +22 -22
  8. package/gen/js-ts/{tinvest → api/tinvest}/StopordersServiceClientPb.ts +32 -32
  9. package/gen/js-ts/{tinvest → api/tinvest}/UsersServiceClientPb.ts +82 -82
  10. package/gen/js-ts/{tinvest → api/tinvest}/common_pb.js +1 -1
  11. package/gen/js-ts/{tinvest → api/tinvest}/instruments_pb.d.ts +560 -560
  12. package/gen/js-ts/{tinvest → api/tinvest}/instruments_pb.js +804 -804
  13. package/gen/js-ts/{tinvest → api/tinvest}/marketdata_pb.d.ts +104 -104
  14. package/gen/js-ts/{tinvest → api/tinvest}/marketdata_pb.js +154 -154
  15. package/gen/js-ts/{tinvest → api/tinvest}/operations_pb.d.ts +229 -229
  16. package/gen/js-ts/{tinvest → api/tinvest}/operations_pb.js +364 -364
  17. package/gen/js-ts/{tinvest → api/tinvest}/orders_pb.d.ts +153 -153
  18. package/gen/js-ts/{tinvest → api/tinvest}/orders_pb.js +226 -226
  19. package/gen/js-ts/{tinvest → api/tinvest}/sandbox_pb.d.ts +12 -12
  20. package/gen/js-ts/{tinvest → api/tinvest}/sandbox_pb.js +22 -22
  21. package/gen/js-ts/{tinvest → api/tinvest}/signals_pb.d.ts +32 -32
  22. package/gen/js-ts/{tinvest → api/tinvest}/signals_pb.js +54 -54
  23. package/gen/js-ts/{tinvest → api/tinvest}/stoporders_pb.d.ts +38 -38
  24. package/gen/js-ts/{tinvest → api/tinvest}/stoporders_pb.js +59 -59
  25. package/gen/js-ts/{tinvest → api/tinvest}/users_pb.d.ts +36 -36
  26. package/gen/js-ts/{tinvest → api/tinvest}/users_pb.js +59 -59
  27. package/gen/js-ts/clickhouse/AdminServiceClientPb.ts +1161 -0
  28. package/gen/js-ts/clickhouse/ClickhouseServiceClientPb.ts +216 -0
  29. package/gen/js-ts/{api/clickhouse/manager_pb.d.ts → clickhouse/admin_pb.d.ts} +2 -2
  30. package/gen/js-ts/{api/clickhouse/manager_pb.js → clickhouse/admin_pb.js} +1551 -1551
  31. package/gen/js-ts/{api/db_api/db_api_pb.d.ts → clickhouse/clickhouse_pb.d.ts} +8 -158
  32. package/gen/js-ts/clickhouse/clickhouse_pb.js +2440 -0
  33. package/gen/js-ts/nats/NatsServiceClientPb.ts +1032 -0
  34. package/gen/js-ts/{api/nats/manager_pb.d.ts → nats/nats_pb.d.ts} +1 -1
  35. package/gen/js-ts/{api/nats/manager_pb.js → nats/nats_pb.js} +1784 -1784
  36. package/gen/js-ts/postgresql/AdminServiceClientPb.ts +1591 -0
  37. package/gen/js-ts/postgresql/PostgresqlServiceClientPb.ts +129 -0
  38. package/gen/js-ts/postgresql/admin_pb.d.ts +1895 -0
  39. package/gen/js-ts/postgresql/admin_pb.js +15465 -0
  40. package/gen/js-ts/postgresql/postgresql_pb.d.ts +156 -0
  41. package/gen/js-ts/postgresql/postgresql_pb.js +1311 -0
  42. package/gen/js-ts/{api/test → test}/TestServiceClientPb.ts +16 -16
  43. package/gen/js-ts/{api/test → test}/test_pb.d.ts +5 -5
  44. package/gen/js-ts/{api/test → test}/test_pb.js +58 -58
  45. package/package.json +1 -1
  46. package/gen/js-ts/api/clickhouse/ManagerServiceClientPb.ts +0 -1161
  47. package/gen/js-ts/api/db_api/Db_apiServiceClientPb.ts +0 -302
  48. package/gen/js-ts/api/db_api/db_api_pb.js +0 -3723
  49. package/gen/js-ts/api/nats/ManagerServiceClientPb.ts +0 -1032
  50. /package/gen/js-ts/{tinvest → api/tinvest}/common_pb.d.ts +0 -0
@@ -1,11 +1,11 @@
1
1
  import * as jspb from 'google-protobuf'
2
2
 
3
- import * as tinvest_common_pb from '../tinvest/common_pb'; // proto import: "tinvest/common.proto"
4
- import * as tinvest_orders_pb from '../tinvest/orders_pb'; // proto import: "tinvest/orders.proto"
5
- import * as tinvest_operations_pb from '../tinvest/operations_pb'; // proto import: "tinvest/operations.proto"
6
- import * as tinvest_stoporders_pb from '../tinvest/stoporders_pb'; // proto import: "tinvest/stoporders.proto"
7
- import * as tinvest_users_pb from '../tinvest/users_pb'; // proto import: "tinvest/users.proto"
8
- import * as google_api_field_behavior_pb from '../google/api/field_behavior_pb'; // proto import: "google/api/field_behavior.proto"
3
+ import * as api_tinvest_common_pb from '../../api/tinvest/common_pb'; // proto import: "api/tinvest/common.proto"
4
+ import * as api_tinvest_orders_pb from '../../api/tinvest/orders_pb'; // proto import: "api/tinvest/orders.proto"
5
+ import * as api_tinvest_operations_pb from '../../api/tinvest/operations_pb'; // proto import: "api/tinvest/operations.proto"
6
+ import * as api_tinvest_stoporders_pb from '../../api/tinvest/stoporders_pb'; // proto import: "api/tinvest/stoporders.proto"
7
+ import * as api_tinvest_users_pb from '../../api/tinvest/users_pb'; // proto import: "api/tinvest/users.proto"
8
+ import * as google_api_field_behavior_pb from '../../google/api/field_behavior_pb'; // proto import: "google/api/field_behavior.proto"
9
9
 
10
10
 
11
11
  export class OpenSandboxAccountRequest extends jspb.Message {
@@ -87,8 +87,8 @@ export class SandboxPayInRequest extends jspb.Message {
87
87
  getAccountId(): string;
88
88
  setAccountId(value: string): SandboxPayInRequest;
89
89
 
90
- getAmount(): tinvest_common_pb.MoneyValue | undefined;
91
- setAmount(value?: tinvest_common_pb.MoneyValue): SandboxPayInRequest;
90
+ getAmount(): api_tinvest_common_pb.MoneyValue | undefined;
91
+ setAmount(value?: api_tinvest_common_pb.MoneyValue): SandboxPayInRequest;
92
92
  hasAmount(): boolean;
93
93
  clearAmount(): SandboxPayInRequest;
94
94
 
@@ -103,13 +103,13 @@ export class SandboxPayInRequest extends jspb.Message {
103
103
  export namespace SandboxPayInRequest {
104
104
  export type AsObject = {
105
105
  accountId: string,
106
- amount?: tinvest_common_pb.MoneyValue.AsObject,
106
+ amount?: api_tinvest_common_pb.MoneyValue.AsObject,
107
107
  }
108
108
  }
109
109
 
110
110
  export class SandboxPayInResponse extends jspb.Message {
111
- getBalance(): tinvest_common_pb.MoneyValue | undefined;
112
- setBalance(value?: tinvest_common_pb.MoneyValue): SandboxPayInResponse;
111
+ getBalance(): api_tinvest_common_pb.MoneyValue | undefined;
112
+ setBalance(value?: api_tinvest_common_pb.MoneyValue): SandboxPayInResponse;
113
113
  hasBalance(): boolean;
114
114
  clearBalance(): SandboxPayInResponse;
115
115
 
@@ -123,7 +123,7 @@ export class SandboxPayInResponse extends jspb.Message {
123
123
 
124
124
  export namespace SandboxPayInResponse {
125
125
  export type AsObject = {
126
- balance?: tinvest_common_pb.MoneyValue.AsObject,
126
+ balance?: api_tinvest_common_pb.MoneyValue.AsObject,
127
127
  }
128
128
  }
129
129
 
@@ -1,4 +1,4 @@
1
- // source: tinvest/sandbox.proto
1
+ // source: api/tinvest/sandbox.proto
2
2
  /**
3
3
  * @fileoverview
4
4
  * @enhanceable
@@ -21,17 +21,17 @@ var global =
21
21
  (function () { return this; }).call(null) ||
22
22
  Function('return this')();
23
23
 
24
- var tinvest_common_pb = require('../tinvest/common_pb.js');
25
- goog.object.extend(proto, tinvest_common_pb);
26
- var tinvest_orders_pb = require('../tinvest/orders_pb.js');
27
- goog.object.extend(proto, tinvest_orders_pb);
28
- var tinvest_operations_pb = require('../tinvest/operations_pb.js');
29
- goog.object.extend(proto, tinvest_operations_pb);
30
- var tinvest_stoporders_pb = require('../tinvest/stoporders_pb.js');
31
- goog.object.extend(proto, tinvest_stoporders_pb);
32
- var tinvest_users_pb = require('../tinvest/users_pb.js');
33
- goog.object.extend(proto, tinvest_users_pb);
34
- var google_api_field_behavior_pb = require('../google/api/field_behavior_pb.js');
24
+ var api_tinvest_common_pb = require('../../api/tinvest/common_pb.js');
25
+ goog.object.extend(proto, api_tinvest_common_pb);
26
+ var api_tinvest_orders_pb = require('../../api/tinvest/orders_pb.js');
27
+ goog.object.extend(proto, api_tinvest_orders_pb);
28
+ var api_tinvest_operations_pb = require('../../api/tinvest/operations_pb.js');
29
+ goog.object.extend(proto, api_tinvest_operations_pb);
30
+ var api_tinvest_stoporders_pb = require('../../api/tinvest/stoporders_pb.js');
31
+ goog.object.extend(proto, api_tinvest_stoporders_pb);
32
+ var api_tinvest_users_pb = require('../../api/tinvest/users_pb.js');
33
+ goog.object.extend(proto, api_tinvest_users_pb);
34
+ var google_api_field_behavior_pb = require('../../google/api/field_behavior_pb.js');
35
35
  goog.object.extend(proto, google_api_field_behavior_pb);
36
36
  goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountRequest', null, global);
37
37
  goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.CloseSandboxAccountResponse', null, global);
@@ -707,7 +707,7 @@ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.toObje
707
707
  proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.toObject = function(includeInstance, msg) {
708
708
  var f, obj = {
709
709
  accountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
710
- amount: (f = msg.getAmount()) && tinvest_common_pb.MoneyValue.toObject(includeInstance, f)
710
+ amount: (f = msg.getAmount()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f)
711
711
  };
712
712
 
713
713
  if (includeInstance) {
@@ -749,8 +749,8 @@ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.deserializeBinar
749
749
  msg.setAccountId(value);
750
750
  break;
751
751
  case 2:
752
- var value = new tinvest_common_pb.MoneyValue;
753
- reader.readMessage(value,tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
752
+ var value = new api_tinvest_common_pb.MoneyValue;
753
+ reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
754
754
  msg.setAmount(value);
755
755
  break;
756
756
  default:
@@ -794,7 +794,7 @@ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.serializeBinaryT
794
794
  writer.writeMessage(
795
795
  2,
796
796
  f,
797
- tinvest_common_pb.MoneyValue.serializeBinaryToWriter
797
+ api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
798
798
  );
799
799
  }
800
800
  };
@@ -824,7 +824,7 @@ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.setAcc
824
824
  */
825
825
  proto.tinkoff.public.invest.api.contract.v1.SandboxPayInRequest.prototype.getAmount = function() {
826
826
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
827
- jspb.Message.getWrapperField(this, tinvest_common_pb.MoneyValue, 2));
827
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 2));
828
828
  };
829
829
 
830
830
 
@@ -887,7 +887,7 @@ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.prototype.toObj
887
887
  */
888
888
  proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.toObject = function(includeInstance, msg) {
889
889
  var f, obj = {
890
- balance: (f = msg.getBalance()) && tinvest_common_pb.MoneyValue.toObject(includeInstance, f)
890
+ balance: (f = msg.getBalance()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f)
891
891
  };
892
892
 
893
893
  if (includeInstance) {
@@ -925,8 +925,8 @@ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.deserializeBina
925
925
  var field = reader.getFieldNumber();
926
926
  switch (field) {
927
927
  case 1:
928
- var value = new tinvest_common_pb.MoneyValue;
929
- reader.readMessage(value,tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
928
+ var value = new api_tinvest_common_pb.MoneyValue;
929
+ reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
930
930
  msg.setBalance(value);
931
931
  break;
932
932
  default:
@@ -963,7 +963,7 @@ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.serializeBinary
963
963
  writer.writeMessage(
964
964
  1,
965
965
  f,
966
- tinvest_common_pb.MoneyValue.serializeBinaryToWriter
966
+ api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
967
967
  );
968
968
  }
969
969
  };
@@ -975,7 +975,7 @@ proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.serializeBinary
975
975
  */
976
976
  proto.tinkoff.public.invest.api.contract.v1.SandboxPayInResponse.prototype.getBalance = function() {
977
977
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
978
- jspb.Message.getWrapperField(this, tinvest_common_pb.MoneyValue, 1));
978
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 1));
979
979
  };
980
980
 
981
981
 
@@ -1,8 +1,8 @@
1
1
  import * as jspb from 'google-protobuf'
2
2
 
3
3
  import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
4
- import * as google_api_field_behavior_pb from '../google/api/field_behavior_pb'; // proto import: "google/api/field_behavior.proto"
5
- import * as tinvest_common_pb from '../tinvest/common_pb'; // proto import: "tinvest/common.proto"
4
+ import * as google_api_field_behavior_pb from '../../google/api/field_behavior_pb'; // proto import: "google/api/field_behavior.proto"
5
+ import * as api_tinvest_common_pb from '../../api/tinvest/common_pb'; // proto import: "api/tinvest/common.proto"
6
6
 
7
7
 
8
8
  export class GetStrategiesRequest extends jspb.Message {
@@ -79,23 +79,23 @@ export class Strategy extends jspb.Message {
79
79
  getTimeInPosition(): number;
80
80
  setTimeInPosition(value: number): Strategy;
81
81
 
82
- getAverageSignalYield(): tinvest_common_pb.Quotation | undefined;
83
- setAverageSignalYield(value?: tinvest_common_pb.Quotation): Strategy;
82
+ getAverageSignalYield(): api_tinvest_common_pb.Quotation | undefined;
83
+ setAverageSignalYield(value?: api_tinvest_common_pb.Quotation): Strategy;
84
84
  hasAverageSignalYield(): boolean;
85
85
  clearAverageSignalYield(): Strategy;
86
86
 
87
- getAverageSignalYieldYear(): tinvest_common_pb.Quotation | undefined;
88
- setAverageSignalYieldYear(value?: tinvest_common_pb.Quotation): Strategy;
87
+ getAverageSignalYieldYear(): api_tinvest_common_pb.Quotation | undefined;
88
+ setAverageSignalYieldYear(value?: api_tinvest_common_pb.Quotation): Strategy;
89
89
  hasAverageSignalYieldYear(): boolean;
90
90
  clearAverageSignalYieldYear(): Strategy;
91
91
 
92
- getYield(): tinvest_common_pb.Quotation | undefined;
93
- setYield(value?: tinvest_common_pb.Quotation): Strategy;
92
+ getYield(): api_tinvest_common_pb.Quotation | undefined;
93
+ setYield(value?: api_tinvest_common_pb.Quotation): Strategy;
94
94
  hasYield(): boolean;
95
95
  clearYield(): Strategy;
96
96
 
97
- getYieldYear(): tinvest_common_pb.Quotation | undefined;
98
- setYieldYear(value?: tinvest_common_pb.Quotation): Strategy;
97
+ getYieldYear(): api_tinvest_common_pb.Quotation | undefined;
98
+ setYieldYear(value?: api_tinvest_common_pb.Quotation): Strategy;
99
99
  hasYieldYear(): boolean;
100
100
  clearYieldYear(): Strategy;
101
101
 
@@ -117,10 +117,10 @@ export namespace Strategy {
117
117
  activeSignals: number,
118
118
  totalSignals: number,
119
119
  timeInPosition: number,
120
- averageSignalYield?: tinvest_common_pb.Quotation.AsObject,
121
- averageSignalYieldYear?: tinvest_common_pb.Quotation.AsObject,
122
- yield?: tinvest_common_pb.Quotation.AsObject,
123
- yieldYear?: tinvest_common_pb.Quotation.AsObject,
120
+ averageSignalYield?: api_tinvest_common_pb.Quotation.AsObject,
121
+ averageSignalYieldYear?: api_tinvest_common_pb.Quotation.AsObject,
122
+ yield?: api_tinvest_common_pb.Quotation.AsObject,
123
+ yieldYear?: api_tinvest_common_pb.Quotation.AsObject,
124
124
  }
125
125
 
126
126
  export enum StrategyDescriptionCase {
@@ -175,8 +175,8 @@ export class GetSignalsRequest extends jspb.Message {
175
175
  hasActive(): boolean;
176
176
  clearActive(): GetSignalsRequest;
177
177
 
178
- getPaging(): tinvest_common_pb.Page | undefined;
179
- setPaging(value?: tinvest_common_pb.Page): GetSignalsRequest;
178
+ getPaging(): api_tinvest_common_pb.Page | undefined;
179
+ setPaging(value?: api_tinvest_common_pb.Page): GetSignalsRequest;
180
180
  hasPaging(): boolean;
181
181
  clearPaging(): GetSignalsRequest;
182
182
 
@@ -198,7 +198,7 @@ export namespace GetSignalsRequest {
198
198
  to?: google_protobuf_timestamp_pb.Timestamp.AsObject,
199
199
  direction?: SignalDirection,
200
200
  active?: SignalState,
201
- paging?: tinvest_common_pb.Page.AsObject,
201
+ paging?: api_tinvest_common_pb.Page.AsObject,
202
202
  }
203
203
 
204
204
  export enum SignalIdCase {
@@ -253,8 +253,8 @@ export class GetSignalsResponse extends jspb.Message {
253
253
  clearSignalsList(): GetSignalsResponse;
254
254
  addSignals(value?: Signal, index?: number): Signal;
255
255
 
256
- getPaging(): tinvest_common_pb.PageResponse | undefined;
257
- setPaging(value?: tinvest_common_pb.PageResponse): GetSignalsResponse;
256
+ getPaging(): api_tinvest_common_pb.PageResponse | undefined;
257
+ setPaging(value?: api_tinvest_common_pb.PageResponse): GetSignalsResponse;
258
258
  hasPaging(): boolean;
259
259
  clearPaging(): GetSignalsResponse;
260
260
 
@@ -269,7 +269,7 @@ export class GetSignalsResponse extends jspb.Message {
269
269
  export namespace GetSignalsResponse {
270
270
  export type AsObject = {
271
271
  signalsList: Array<Signal.AsObject>,
272
- paging?: tinvest_common_pb.PageResponse.AsObject,
272
+ paging?: api_tinvest_common_pb.PageResponse.AsObject,
273
273
  }
274
274
  }
275
275
 
@@ -294,8 +294,8 @@ export class Signal extends jspb.Message {
294
294
  getDirection(): SignalDirection;
295
295
  setDirection(value: SignalDirection): Signal;
296
296
 
297
- getInitialPrice(): tinvest_common_pb.Quotation | undefined;
298
- setInitialPrice(value?: tinvest_common_pb.Quotation): Signal;
297
+ getInitialPrice(): api_tinvest_common_pb.Quotation | undefined;
298
+ setInitialPrice(value?: api_tinvest_common_pb.Quotation): Signal;
299
299
  hasInitialPrice(): boolean;
300
300
  clearInitialPrice(): Signal;
301
301
 
@@ -307,8 +307,8 @@ export class Signal extends jspb.Message {
307
307
  getName(): string;
308
308
  setName(value: string): Signal;
309
309
 
310
- getTargetPrice(): tinvest_common_pb.Quotation | undefined;
311
- setTargetPrice(value?: tinvest_common_pb.Quotation): Signal;
310
+ getTargetPrice(): api_tinvest_common_pb.Quotation | undefined;
311
+ setTargetPrice(value?: api_tinvest_common_pb.Quotation): Signal;
312
312
  hasTargetPrice(): boolean;
313
313
  clearTargetPrice(): Signal;
314
314
 
@@ -322,13 +322,13 @@ export class Signal extends jspb.Message {
322
322
  hasProbability(): boolean;
323
323
  clearProbability(): Signal;
324
324
 
325
- getStoploss(): tinvest_common_pb.Quotation | undefined;
326
- setStoploss(value?: tinvest_common_pb.Quotation): Signal;
325
+ getStoploss(): api_tinvest_common_pb.Quotation | undefined;
326
+ setStoploss(value?: api_tinvest_common_pb.Quotation): Signal;
327
327
  hasStoploss(): boolean;
328
328
  clearStoploss(): Signal;
329
329
 
330
- getClosePrice(): tinvest_common_pb.Quotation | undefined;
331
- setClosePrice(value?: tinvest_common_pb.Quotation): Signal;
330
+ getClosePrice(): api_tinvest_common_pb.Quotation | undefined;
331
+ setClosePrice(value?: api_tinvest_common_pb.Quotation): Signal;
332
332
  hasClosePrice(): boolean;
333
333
  clearClosePrice(): Signal;
334
334
 
@@ -353,14 +353,14 @@ export namespace Signal {
353
353
  instrumentUid: string,
354
354
  createDt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
355
355
  direction: SignalDirection,
356
- initialPrice?: tinvest_common_pb.Quotation.AsObject,
356
+ initialPrice?: api_tinvest_common_pb.Quotation.AsObject,
357
357
  info?: string,
358
358
  name: string,
359
- targetPrice?: tinvest_common_pb.Quotation.AsObject,
359
+ targetPrice?: api_tinvest_common_pb.Quotation.AsObject,
360
360
  endDt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
361
361
  probability?: number,
362
- stoploss?: tinvest_common_pb.Quotation.AsObject,
363
- closePrice?: tinvest_common_pb.Quotation.AsObject,
362
+ stoploss?: api_tinvest_common_pb.Quotation.AsObject,
363
+ closePrice?: api_tinvest_common_pb.Quotation.AsObject,
364
364
  closeDt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
365
365
  }
366
366
 
@@ -1,4 +1,4 @@
1
- // source: tinvest/signals.proto
1
+ // source: api/tinvest/signals.proto
2
2
  /**
3
3
  * @fileoverview
4
4
  * @enhanceable
@@ -23,10 +23,10 @@ var global =
23
23
 
24
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
26
- var google_api_field_behavior_pb = require('../google/api/field_behavior_pb.js');
26
+ var google_api_field_behavior_pb = require('../../google/api/field_behavior_pb.js');
27
27
  goog.object.extend(proto, google_api_field_behavior_pb);
28
- var tinvest_common_pb = require('../tinvest/common_pb.js');
29
- goog.object.extend(proto, tinvest_common_pb);
28
+ var api_tinvest_common_pb = require('../../api/tinvest/common_pb.js');
29
+ goog.object.extend(proto, api_tinvest_common_pb);
30
30
  goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.GetSignalsRequest', null, global);
31
31
  goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.GetSignalsResponse', null, global);
32
32
  goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.GetStrategiesRequest', null, global);
@@ -510,10 +510,10 @@ strategyType: jspb.Message.getFieldWithDefault(msg, 5, 0),
510
510
  activeSignals: jspb.Message.getFieldWithDefault(msg, 6, 0),
511
511
  totalSignals: jspb.Message.getFieldWithDefault(msg, 7, 0),
512
512
  timeInPosition: jspb.Message.getFieldWithDefault(msg, 8, 0),
513
- averageSignalYield: (f = msg.getAverageSignalYield()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
514
- averageSignalYieldYear: (f = msg.getAverageSignalYieldYear()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
515
- yield: (f = msg.getYield()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
516
- yieldYear: (f = msg.getYieldYear()) && tinvest_common_pb.Quotation.toObject(includeInstance, f)
513
+ averageSignalYield: (f = msg.getAverageSignalYield()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
514
+ averageSignalYieldYear: (f = msg.getAverageSignalYieldYear()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
515
+ yield: (f = msg.getYield()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
516
+ yieldYear: (f = msg.getYieldYear()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f)
517
517
  };
518
518
 
519
519
  if (includeInstance) {
@@ -583,23 +583,23 @@ proto.tinkoff.public.invest.api.contract.v1.Strategy.deserializeBinaryFromReader
583
583
  msg.setTimeInPosition(value);
584
584
  break;
585
585
  case 9:
586
- var value = new tinvest_common_pb.Quotation;
587
- reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
586
+ var value = new api_tinvest_common_pb.Quotation;
587
+ reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
588
588
  msg.setAverageSignalYield(value);
589
589
  break;
590
590
  case 10:
591
- var value = new tinvest_common_pb.Quotation;
592
- reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
591
+ var value = new api_tinvest_common_pb.Quotation;
592
+ reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
593
593
  msg.setAverageSignalYieldYear(value);
594
594
  break;
595
595
  case 11:
596
- var value = new tinvest_common_pb.Quotation;
597
- reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
596
+ var value = new api_tinvest_common_pb.Quotation;
597
+ reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
598
598
  msg.setYield(value);
599
599
  break;
600
600
  case 12:
601
- var value = new tinvest_common_pb.Quotation;
602
- reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
601
+ var value = new api_tinvest_common_pb.Quotation;
602
+ reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
603
603
  msg.setYieldYear(value);
604
604
  break;
605
605
  default:
@@ -692,7 +692,7 @@ proto.tinkoff.public.invest.api.contract.v1.Strategy.serializeBinaryToWriter = f
692
692
  writer.writeMessage(
693
693
  9,
694
694
  f,
695
- tinvest_common_pb.Quotation.serializeBinaryToWriter
695
+ api_tinvest_common_pb.Quotation.serializeBinaryToWriter
696
696
  );
697
697
  }
698
698
  f = message.getAverageSignalYieldYear();
@@ -700,7 +700,7 @@ proto.tinkoff.public.invest.api.contract.v1.Strategy.serializeBinaryToWriter = f
700
700
  writer.writeMessage(
701
701
  10,
702
702
  f,
703
- tinvest_common_pb.Quotation.serializeBinaryToWriter
703
+ api_tinvest_common_pb.Quotation.serializeBinaryToWriter
704
704
  );
705
705
  }
706
706
  f = message.getYield();
@@ -708,7 +708,7 @@ proto.tinkoff.public.invest.api.contract.v1.Strategy.serializeBinaryToWriter = f
708
708
  writer.writeMessage(
709
709
  11,
710
710
  f,
711
- tinvest_common_pb.Quotation.serializeBinaryToWriter
711
+ api_tinvest_common_pb.Quotation.serializeBinaryToWriter
712
712
  );
713
713
  }
714
714
  f = message.getYieldYear();
@@ -716,7 +716,7 @@ proto.tinkoff.public.invest.api.contract.v1.Strategy.serializeBinaryToWriter = f
716
716
  writer.writeMessage(
717
717
  12,
718
718
  f,
719
- tinvest_common_pb.Quotation.serializeBinaryToWriter
719
+ api_tinvest_common_pb.Quotation.serializeBinaryToWriter
720
720
  );
721
721
  }
722
722
  };
@@ -908,7 +908,7 @@ proto.tinkoff.public.invest.api.contract.v1.Strategy.prototype.setTimeInPosition
908
908
  */
909
909
  proto.tinkoff.public.invest.api.contract.v1.Strategy.prototype.getAverageSignalYield = function() {
910
910
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
911
- jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 9));
911
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 9));
912
912
  };
913
913
 
914
914
 
@@ -945,7 +945,7 @@ proto.tinkoff.public.invest.api.contract.v1.Strategy.prototype.hasAverageSignalY
945
945
  */
946
946
  proto.tinkoff.public.invest.api.contract.v1.Strategy.prototype.getAverageSignalYieldYear = function() {
947
947
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
948
- jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 10));
948
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 10));
949
949
  };
950
950
 
951
951
 
@@ -982,7 +982,7 @@ proto.tinkoff.public.invest.api.contract.v1.Strategy.prototype.hasAverageSignalY
982
982
  */
983
983
  proto.tinkoff.public.invest.api.contract.v1.Strategy.prototype.getYield = function() {
984
984
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
985
- jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 11));
985
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 11));
986
986
  };
987
987
 
988
988
 
@@ -1019,7 +1019,7 @@ proto.tinkoff.public.invest.api.contract.v1.Strategy.prototype.hasYield = functi
1019
1019
  */
1020
1020
  proto.tinkoff.public.invest.api.contract.v1.Strategy.prototype.getYieldYear = function() {
1021
1021
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
1022
- jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 12));
1022
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 12));
1023
1023
  };
1024
1024
 
1025
1025
 
@@ -1090,7 +1090,7 @@ from: (f = msg.getFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(inc
1090
1090
  to: (f = msg.getTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1091
1091
  direction: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
1092
1092
  active: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
1093
- paging: (f = msg.getPaging()) && tinvest_common_pb.Page.toObject(includeInstance, f)
1093
+ paging: (f = msg.getPaging()) && api_tinvest_common_pb.Page.toObject(includeInstance, f)
1094
1094
  };
1095
1095
 
1096
1096
  if (includeInstance) {
@@ -1162,8 +1162,8 @@ proto.tinkoff.public.invest.api.contract.v1.GetSignalsRequest.deserializeBinaryF
1162
1162
  msg.setActive(value);
1163
1163
  break;
1164
1164
  case 9:
1165
- var value = new tinvest_common_pb.Page;
1166
- reader.readMessage(value,tinvest_common_pb.Page.deserializeBinaryFromReader);
1165
+ var value = new api_tinvest_common_pb.Page;
1166
+ reader.readMessage(value,api_tinvest_common_pb.Page.deserializeBinaryFromReader);
1167
1167
  msg.setPaging(value);
1168
1168
  break;
1169
1169
  default:
@@ -1258,7 +1258,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetSignalsRequest.serializeBinaryToW
1258
1258
  writer.writeMessage(
1259
1259
  9,
1260
1260
  f,
1261
- tinvest_common_pb.Page.serializeBinaryToWriter
1261
+ api_tinvest_common_pb.Page.serializeBinaryToWriter
1262
1262
  );
1263
1263
  }
1264
1264
  };
@@ -1560,7 +1560,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetSignalsRequest.prototype.hasActiv
1560
1560
  */
1561
1561
  proto.tinkoff.public.invest.api.contract.v1.GetSignalsRequest.prototype.getPaging = function() {
1562
1562
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Page} */ (
1563
- jspb.Message.getWrapperField(this, tinvest_common_pb.Page, 9));
1563
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.Page, 9));
1564
1564
  };
1565
1565
 
1566
1566
 
@@ -1632,7 +1632,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetSignalsResponse.toObject = functi
1632
1632
  var f, obj = {
1633
1633
  signalsList: jspb.Message.toObjectList(msg.getSignalsList(),
1634
1634
  proto.tinkoff.public.invest.api.contract.v1.Signal.toObject, includeInstance),
1635
- paging: (f = msg.getPaging()) && tinvest_common_pb.PageResponse.toObject(includeInstance, f)
1635
+ paging: (f = msg.getPaging()) && api_tinvest_common_pb.PageResponse.toObject(includeInstance, f)
1636
1636
  };
1637
1637
 
1638
1638
  if (includeInstance) {
@@ -1675,8 +1675,8 @@ proto.tinkoff.public.invest.api.contract.v1.GetSignalsResponse.deserializeBinary
1675
1675
  msg.addSignals(value);
1676
1676
  break;
1677
1677
  case 2:
1678
- var value = new tinvest_common_pb.PageResponse;
1679
- reader.readMessage(value,tinvest_common_pb.PageResponse.deserializeBinaryFromReader);
1678
+ var value = new api_tinvest_common_pb.PageResponse;
1679
+ reader.readMessage(value,api_tinvest_common_pb.PageResponse.deserializeBinaryFromReader);
1680
1680
  msg.setPaging(value);
1681
1681
  break;
1682
1682
  default:
@@ -1721,7 +1721,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetSignalsResponse.serializeBinaryTo
1721
1721
  writer.writeMessage(
1722
1722
  2,
1723
1723
  f,
1724
- tinvest_common_pb.PageResponse.serializeBinaryToWriter
1724
+ api_tinvest_common_pb.PageResponse.serializeBinaryToWriter
1725
1725
  );
1726
1726
  }
1727
1727
  };
@@ -1771,7 +1771,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetSignalsResponse.prototype.clearSi
1771
1771
  */
1772
1772
  proto.tinkoff.public.invest.api.contract.v1.GetSignalsResponse.prototype.getPaging = function() {
1773
1773
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.PageResponse} */ (
1774
- jspb.Message.getWrapperField(this, tinvest_common_pb.PageResponse, 2));
1774
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.PageResponse, 2));
1775
1775
  };
1776
1776
 
1777
1777
 
@@ -1840,14 +1840,14 @@ strategyName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1840
1840
  instrumentUid: jspb.Message.getFieldWithDefault(msg, 4, ""),
1841
1841
  createDt: (f = msg.getCreateDt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1842
1842
  direction: jspb.Message.getFieldWithDefault(msg, 6, 0),
1843
- initialPrice: (f = msg.getInitialPrice()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
1843
+ initialPrice: (f = msg.getInitialPrice()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
1844
1844
  info: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
1845
1845
  name: jspb.Message.getFieldWithDefault(msg, 9, ""),
1846
- targetPrice: (f = msg.getTargetPrice()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
1846
+ targetPrice: (f = msg.getTargetPrice()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
1847
1847
  endDt: (f = msg.getEndDt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1848
1848
  probability: (f = jspb.Message.getField(msg, 12)) == null ? undefined : f,
1849
- stoploss: (f = msg.getStoploss()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
1850
- closePrice: (f = msg.getClosePrice()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
1849
+ stoploss: (f = msg.getStoploss()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
1850
+ closePrice: (f = msg.getClosePrice()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
1851
1851
  closeDt: (f = msg.getCloseDt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1852
1852
  };
1853
1853
 
@@ -1911,8 +1911,8 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.deserializeBinaryFromReader =
1911
1911
  msg.setDirection(value);
1912
1912
  break;
1913
1913
  case 7:
1914
- var value = new tinvest_common_pb.Quotation;
1915
- reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
1914
+ var value = new api_tinvest_common_pb.Quotation;
1915
+ reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
1916
1916
  msg.setInitialPrice(value);
1917
1917
  break;
1918
1918
  case 8:
@@ -1924,8 +1924,8 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.deserializeBinaryFromReader =
1924
1924
  msg.setName(value);
1925
1925
  break;
1926
1926
  case 10:
1927
- var value = new tinvest_common_pb.Quotation;
1928
- reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
1927
+ var value = new api_tinvest_common_pb.Quotation;
1928
+ reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
1929
1929
  msg.setTargetPrice(value);
1930
1930
  break;
1931
1931
  case 11:
@@ -1938,13 +1938,13 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.deserializeBinaryFromReader =
1938
1938
  msg.setProbability(value);
1939
1939
  break;
1940
1940
  case 13:
1941
- var value = new tinvest_common_pb.Quotation;
1942
- reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
1941
+ var value = new api_tinvest_common_pb.Quotation;
1942
+ reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
1943
1943
  msg.setStoploss(value);
1944
1944
  break;
1945
1945
  case 14:
1946
- var value = new tinvest_common_pb.Quotation;
1947
- reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
1946
+ var value = new api_tinvest_common_pb.Quotation;
1947
+ reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
1948
1948
  msg.setClosePrice(value);
1949
1949
  break;
1950
1950
  case 15:
@@ -2029,7 +2029,7 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.serializeBinaryToWriter = fun
2029
2029
  writer.writeMessage(
2030
2030
  7,
2031
2031
  f,
2032
- tinvest_common_pb.Quotation.serializeBinaryToWriter
2032
+ api_tinvest_common_pb.Quotation.serializeBinaryToWriter
2033
2033
  );
2034
2034
  }
2035
2035
  f = /** @type {string} */ (jspb.Message.getField(message, 8));
@@ -2051,7 +2051,7 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.serializeBinaryToWriter = fun
2051
2051
  writer.writeMessage(
2052
2052
  10,
2053
2053
  f,
2054
- tinvest_common_pb.Quotation.serializeBinaryToWriter
2054
+ api_tinvest_common_pb.Quotation.serializeBinaryToWriter
2055
2055
  );
2056
2056
  }
2057
2057
  f = message.getEndDt();
@@ -2074,7 +2074,7 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.serializeBinaryToWriter = fun
2074
2074
  writer.writeMessage(
2075
2075
  13,
2076
2076
  f,
2077
- tinvest_common_pb.Quotation.serializeBinaryToWriter
2077
+ api_tinvest_common_pb.Quotation.serializeBinaryToWriter
2078
2078
  );
2079
2079
  }
2080
2080
  f = message.getClosePrice();
@@ -2082,7 +2082,7 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.serializeBinaryToWriter = fun
2082
2082
  writer.writeMessage(
2083
2083
  14,
2084
2084
  f,
2085
- tinvest_common_pb.Quotation.serializeBinaryToWriter
2085
+ api_tinvest_common_pb.Quotation.serializeBinaryToWriter
2086
2086
  );
2087
2087
  }
2088
2088
  f = message.getCloseDt();
@@ -2229,7 +2229,7 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.prototype.setDirection = func
2229
2229
  */
2230
2230
  proto.tinkoff.public.invest.api.contract.v1.Signal.prototype.getInitialPrice = function() {
2231
2231
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
2232
- jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 7));
2232
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 7));
2233
2233
  };
2234
2234
 
2235
2235
 
@@ -2320,7 +2320,7 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.prototype.setName = function(
2320
2320
  */
2321
2321
  proto.tinkoff.public.invest.api.contract.v1.Signal.prototype.getTargetPrice = function() {
2322
2322
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
2323
- jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 10));
2323
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 10));
2324
2324
  };
2325
2325
 
2326
2326
 
@@ -2430,7 +2430,7 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.prototype.hasProbability = fu
2430
2430
  */
2431
2431
  proto.tinkoff.public.invest.api.contract.v1.Signal.prototype.getStoploss = function() {
2432
2432
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
2433
- jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 13));
2433
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 13));
2434
2434
  };
2435
2435
 
2436
2436
 
@@ -2467,7 +2467,7 @@ proto.tinkoff.public.invest.api.contract.v1.Signal.prototype.hasStoploss = funct
2467
2467
  */
2468
2468
  proto.tinkoff.public.invest.api.contract.v1.Signal.prototype.getClosePrice = function() {
2469
2469
  return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
2470
- jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 14));
2470
+ jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 14));
2471
2471
  };
2472
2472
 
2473
2473