@marleena/trb-proto 0.1.0 → 0.1.2

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 (33) hide show
  1. package/README.md +28 -23
  2. package/gen/js-ts/clickhouse/Clickhouse_grpcServiceClientPb.ts +108 -0
  3. package/gen/js-ts/clickhouse/clickhouse_grpc_pb.d.ts +464 -0
  4. package/gen/js-ts/db_api/Db_apiServiceClientPb.ts +215 -0
  5. package/gen/js-ts/db_api/db_api_pb.d.ts +406 -0
  6. package/gen/js-ts/db_api/db_api_pb.js +3371 -0
  7. package/gen/js-ts/example/ExampleServiceClientPb.ts +108 -0
  8. package/gen/js-ts/example/Example_pb.d.ts +77 -0
  9. package/gen/js-ts/manager_indicators/Manager_indicatorsServiceClientPb.ts +86 -0
  10. package/gen/js-ts/manager_indicators/manager_indicators_pb.d.ts +190 -0
  11. package/gen/js-ts/moex/MoexServiceClientPb.ts +86 -0
  12. package/gen/js-ts/moex/moex_pb.d.ts +53 -0
  13. package/gen/js-ts/nats/ManagerServiceClientPb.ts +1032 -0
  14. package/gen/js-ts/nats/manager_pb.d.ts +1416 -0
  15. package/gen/js-ts/nats/manager_pb.js +394 -0
  16. package/gen/js-ts/tinvest/InstrumentsServiceClientPb.ts +1892 -0
  17. package/gen/js-ts/tinvest/MarketdataServiceClientPb.ts +473 -0
  18. package/gen/js-ts/tinvest/OperationsServiceClientPb.ts +431 -0
  19. package/gen/js-ts/tinvest/OrdersServiceClientPb.ts +452 -0
  20. package/gen/js-ts/tinvest/SandboxServiceClientPb.ts +907 -0
  21. package/gen/js-ts/tinvest/SignalsServiceClientPb.ts +129 -0
  22. package/gen/js-ts/tinvest/StopordersServiceClientPb.ts +172 -0
  23. package/gen/js-ts/tinvest/UsersServiceClientPb.ts +387 -0
  24. package/gen/js-ts/tinvest/common_pb.d.ts +314 -0
  25. package/gen/js-ts/tinvest/instruments_pb.d.ts +6373 -0
  26. package/gen/js-ts/tinvest/marketdata_pb.d.ts +2397 -0
  27. package/gen/js-ts/tinvest/operations_pb.d.ts +2380 -0
  28. package/gen/js-ts/tinvest/orders_pb.d.ts +1555 -0
  29. package/gen/js-ts/tinvest/sandbox_pb.d.ts +129 -0
  30. package/gen/js-ts/tinvest/signals_pb.d.ts +408 -0
  31. package/gen/js-ts/tinvest/stoporders_pb.d.ts +493 -0
  32. package/gen/js-ts/tinvest/users_pb.d.ts +611 -0
  33. package/package.json +1 -1
@@ -0,0 +1,611 @@
1
+ import * as jspb from 'google-protobuf'
2
+
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"
6
+
7
+
8
+ export class GetAccountsRequest extends jspb.Message {
9
+ getStatus(): AccountStatus;
10
+ setStatus(value: AccountStatus): GetAccountsRequest;
11
+ hasStatus(): boolean;
12
+ clearStatus(): GetAccountsRequest;
13
+
14
+ serializeBinary(): Uint8Array;
15
+ toObject(includeInstance?: boolean): GetAccountsRequest.AsObject;
16
+ static toObject(includeInstance: boolean, msg: GetAccountsRequest): GetAccountsRequest.AsObject;
17
+ static serializeBinaryToWriter(message: GetAccountsRequest, writer: jspb.BinaryWriter): void;
18
+ static deserializeBinary(bytes: Uint8Array): GetAccountsRequest;
19
+ static deserializeBinaryFromReader(message: GetAccountsRequest, reader: jspb.BinaryReader): GetAccountsRequest;
20
+ }
21
+
22
+ export namespace GetAccountsRequest {
23
+ export type AsObject = {
24
+ status?: AccountStatus,
25
+ }
26
+
27
+ export enum StatusCase {
28
+ _STATUS_NOT_SET = 0,
29
+ STATUS = 1,
30
+ }
31
+ }
32
+
33
+ export class GetAccountsResponse extends jspb.Message {
34
+ getAccountsList(): Array<Account>;
35
+ setAccountsList(value: Array<Account>): GetAccountsResponse;
36
+ clearAccountsList(): GetAccountsResponse;
37
+ addAccounts(value?: Account, index?: number): Account;
38
+
39
+ serializeBinary(): Uint8Array;
40
+ toObject(includeInstance?: boolean): GetAccountsResponse.AsObject;
41
+ static toObject(includeInstance: boolean, msg: GetAccountsResponse): GetAccountsResponse.AsObject;
42
+ static serializeBinaryToWriter(message: GetAccountsResponse, writer: jspb.BinaryWriter): void;
43
+ static deserializeBinary(bytes: Uint8Array): GetAccountsResponse;
44
+ static deserializeBinaryFromReader(message: GetAccountsResponse, reader: jspb.BinaryReader): GetAccountsResponse;
45
+ }
46
+
47
+ export namespace GetAccountsResponse {
48
+ export type AsObject = {
49
+ accountsList: Array<Account.AsObject>,
50
+ }
51
+ }
52
+
53
+ export class Account extends jspb.Message {
54
+ getId(): string;
55
+ setId(value: string): Account;
56
+
57
+ getType(): AccountType;
58
+ setType(value: AccountType): Account;
59
+
60
+ getName(): string;
61
+ setName(value: string): Account;
62
+
63
+ getStatus(): AccountStatus;
64
+ setStatus(value: AccountStatus): Account;
65
+
66
+ getOpenedDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
67
+ setOpenedDate(value?: google_protobuf_timestamp_pb.Timestamp): Account;
68
+ hasOpenedDate(): boolean;
69
+ clearOpenedDate(): Account;
70
+
71
+ getClosedDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
72
+ setClosedDate(value?: google_protobuf_timestamp_pb.Timestamp): Account;
73
+ hasClosedDate(): boolean;
74
+ clearClosedDate(): Account;
75
+
76
+ getAccessLevel(): AccessLevel;
77
+ setAccessLevel(value: AccessLevel): Account;
78
+
79
+ serializeBinary(): Uint8Array;
80
+ toObject(includeInstance?: boolean): Account.AsObject;
81
+ static toObject(includeInstance: boolean, msg: Account): Account.AsObject;
82
+ static serializeBinaryToWriter(message: Account, writer: jspb.BinaryWriter): void;
83
+ static deserializeBinary(bytes: Uint8Array): Account;
84
+ static deserializeBinaryFromReader(message: Account, reader: jspb.BinaryReader): Account;
85
+ }
86
+
87
+ export namespace Account {
88
+ export type AsObject = {
89
+ id: string,
90
+ type: AccountType,
91
+ name: string,
92
+ status: AccountStatus,
93
+ openedDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
94
+ closedDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
95
+ accessLevel: AccessLevel,
96
+ }
97
+ }
98
+
99
+ export class GetMarginAttributesRequest extends jspb.Message {
100
+ getAccountId(): string;
101
+ setAccountId(value: string): GetMarginAttributesRequest;
102
+
103
+ serializeBinary(): Uint8Array;
104
+ toObject(includeInstance?: boolean): GetMarginAttributesRequest.AsObject;
105
+ static toObject(includeInstance: boolean, msg: GetMarginAttributesRequest): GetMarginAttributesRequest.AsObject;
106
+ static serializeBinaryToWriter(message: GetMarginAttributesRequest, writer: jspb.BinaryWriter): void;
107
+ static deserializeBinary(bytes: Uint8Array): GetMarginAttributesRequest;
108
+ static deserializeBinaryFromReader(message: GetMarginAttributesRequest, reader: jspb.BinaryReader): GetMarginAttributesRequest;
109
+ }
110
+
111
+ export namespace GetMarginAttributesRequest {
112
+ export type AsObject = {
113
+ accountId: string,
114
+ }
115
+ }
116
+
117
+ export class GetMarginAttributesResponse extends jspb.Message {
118
+ getLiquidPortfolio(): tinvest_common_pb.MoneyValue | undefined;
119
+ setLiquidPortfolio(value?: tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
120
+ hasLiquidPortfolio(): boolean;
121
+ clearLiquidPortfolio(): GetMarginAttributesResponse;
122
+
123
+ getStartingMargin(): tinvest_common_pb.MoneyValue | undefined;
124
+ setStartingMargin(value?: tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
125
+ hasStartingMargin(): boolean;
126
+ clearStartingMargin(): GetMarginAttributesResponse;
127
+
128
+ getMinimalMargin(): tinvest_common_pb.MoneyValue | undefined;
129
+ setMinimalMargin(value?: tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
130
+ hasMinimalMargin(): boolean;
131
+ clearMinimalMargin(): GetMarginAttributesResponse;
132
+
133
+ getFundsSufficiencyLevel(): tinvest_common_pb.Quotation | undefined;
134
+ setFundsSufficiencyLevel(value?: tinvest_common_pb.Quotation): GetMarginAttributesResponse;
135
+ hasFundsSufficiencyLevel(): boolean;
136
+ clearFundsSufficiencyLevel(): GetMarginAttributesResponse;
137
+
138
+ getAmountOfMissingFunds(): tinvest_common_pb.MoneyValue | undefined;
139
+ setAmountOfMissingFunds(value?: tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
140
+ hasAmountOfMissingFunds(): boolean;
141
+ clearAmountOfMissingFunds(): GetMarginAttributesResponse;
142
+
143
+ getCorrectedMargin(): tinvest_common_pb.MoneyValue | undefined;
144
+ setCorrectedMargin(value?: tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
145
+ hasCorrectedMargin(): boolean;
146
+ clearCorrectedMargin(): GetMarginAttributesResponse;
147
+
148
+ getGuaranteeForFutures(): tinvest_common_pb.MoneyValue | undefined;
149
+ setGuaranteeForFutures(value?: tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
150
+ hasGuaranteeForFutures(): boolean;
151
+ clearGuaranteeForFutures(): GetMarginAttributesResponse;
152
+
153
+ serializeBinary(): Uint8Array;
154
+ toObject(includeInstance?: boolean): GetMarginAttributesResponse.AsObject;
155
+ static toObject(includeInstance: boolean, msg: GetMarginAttributesResponse): GetMarginAttributesResponse.AsObject;
156
+ static serializeBinaryToWriter(message: GetMarginAttributesResponse, writer: jspb.BinaryWriter): void;
157
+ static deserializeBinary(bytes: Uint8Array): GetMarginAttributesResponse;
158
+ static deserializeBinaryFromReader(message: GetMarginAttributesResponse, reader: jspb.BinaryReader): GetMarginAttributesResponse;
159
+ }
160
+
161
+ export namespace GetMarginAttributesResponse {
162
+ export type AsObject = {
163
+ liquidPortfolio?: tinvest_common_pb.MoneyValue.AsObject,
164
+ startingMargin?: tinvest_common_pb.MoneyValue.AsObject,
165
+ minimalMargin?: tinvest_common_pb.MoneyValue.AsObject,
166
+ fundsSufficiencyLevel?: tinvest_common_pb.Quotation.AsObject,
167
+ amountOfMissingFunds?: tinvest_common_pb.MoneyValue.AsObject,
168
+ correctedMargin?: tinvest_common_pb.MoneyValue.AsObject,
169
+ guaranteeForFutures?: tinvest_common_pb.MoneyValue.AsObject,
170
+ }
171
+ }
172
+
173
+ export class GetUserTariffRequest extends jspb.Message {
174
+ serializeBinary(): Uint8Array;
175
+ toObject(includeInstance?: boolean): GetUserTariffRequest.AsObject;
176
+ static toObject(includeInstance: boolean, msg: GetUserTariffRequest): GetUserTariffRequest.AsObject;
177
+ static serializeBinaryToWriter(message: GetUserTariffRequest, writer: jspb.BinaryWriter): void;
178
+ static deserializeBinary(bytes: Uint8Array): GetUserTariffRequest;
179
+ static deserializeBinaryFromReader(message: GetUserTariffRequest, reader: jspb.BinaryReader): GetUserTariffRequest;
180
+ }
181
+
182
+ export namespace GetUserTariffRequest {
183
+ export type AsObject = {
184
+ }
185
+ }
186
+
187
+ export class GetUserTariffResponse extends jspb.Message {
188
+ getUnaryLimitsList(): Array<UnaryLimit>;
189
+ setUnaryLimitsList(value: Array<UnaryLimit>): GetUserTariffResponse;
190
+ clearUnaryLimitsList(): GetUserTariffResponse;
191
+ addUnaryLimits(value?: UnaryLimit, index?: number): UnaryLimit;
192
+
193
+ getStreamLimitsList(): Array<StreamLimit>;
194
+ setStreamLimitsList(value: Array<StreamLimit>): GetUserTariffResponse;
195
+ clearStreamLimitsList(): GetUserTariffResponse;
196
+ addStreamLimits(value?: StreamLimit, index?: number): StreamLimit;
197
+
198
+ serializeBinary(): Uint8Array;
199
+ toObject(includeInstance?: boolean): GetUserTariffResponse.AsObject;
200
+ static toObject(includeInstance: boolean, msg: GetUserTariffResponse): GetUserTariffResponse.AsObject;
201
+ static serializeBinaryToWriter(message: GetUserTariffResponse, writer: jspb.BinaryWriter): void;
202
+ static deserializeBinary(bytes: Uint8Array): GetUserTariffResponse;
203
+ static deserializeBinaryFromReader(message: GetUserTariffResponse, reader: jspb.BinaryReader): GetUserTariffResponse;
204
+ }
205
+
206
+ export namespace GetUserTariffResponse {
207
+ export type AsObject = {
208
+ unaryLimitsList: Array<UnaryLimit.AsObject>,
209
+ streamLimitsList: Array<StreamLimit.AsObject>,
210
+ }
211
+ }
212
+
213
+ export class UnaryLimit extends jspb.Message {
214
+ getLimitPerMinute(): number;
215
+ setLimitPerMinute(value: number): UnaryLimit;
216
+
217
+ getMethodsList(): Array<string>;
218
+ setMethodsList(value: Array<string>): UnaryLimit;
219
+ clearMethodsList(): UnaryLimit;
220
+ addMethods(value: string, index?: number): UnaryLimit;
221
+
222
+ getLimitPerSecond(): number;
223
+ setLimitPerSecond(value: number): UnaryLimit;
224
+ hasLimitPerSecond(): boolean;
225
+ clearLimitPerSecond(): UnaryLimit;
226
+
227
+ serializeBinary(): Uint8Array;
228
+ toObject(includeInstance?: boolean): UnaryLimit.AsObject;
229
+ static toObject(includeInstance: boolean, msg: UnaryLimit): UnaryLimit.AsObject;
230
+ static serializeBinaryToWriter(message: UnaryLimit, writer: jspb.BinaryWriter): void;
231
+ static deserializeBinary(bytes: Uint8Array): UnaryLimit;
232
+ static deserializeBinaryFromReader(message: UnaryLimit, reader: jspb.BinaryReader): UnaryLimit;
233
+ }
234
+
235
+ export namespace UnaryLimit {
236
+ export type AsObject = {
237
+ limitPerMinute: number,
238
+ methodsList: Array<string>,
239
+ limitPerSecond?: number,
240
+ }
241
+
242
+ export enum LimitPerSecondCase {
243
+ _LIMIT_PER_SECOND_NOT_SET = 0,
244
+ LIMIT_PER_SECOND = 3,
245
+ }
246
+ }
247
+
248
+ export class StreamLimit extends jspb.Message {
249
+ getLimit(): number;
250
+ setLimit(value: number): StreamLimit;
251
+
252
+ getStreamsList(): Array<string>;
253
+ setStreamsList(value: Array<string>): StreamLimit;
254
+ clearStreamsList(): StreamLimit;
255
+ addStreams(value: string, index?: number): StreamLimit;
256
+
257
+ getOpen(): number;
258
+ setOpen(value: number): StreamLimit;
259
+
260
+ serializeBinary(): Uint8Array;
261
+ toObject(includeInstance?: boolean): StreamLimit.AsObject;
262
+ static toObject(includeInstance: boolean, msg: StreamLimit): StreamLimit.AsObject;
263
+ static serializeBinaryToWriter(message: StreamLimit, writer: jspb.BinaryWriter): void;
264
+ static deserializeBinary(bytes: Uint8Array): StreamLimit;
265
+ static deserializeBinaryFromReader(message: StreamLimit, reader: jspb.BinaryReader): StreamLimit;
266
+ }
267
+
268
+ export namespace StreamLimit {
269
+ export type AsObject = {
270
+ limit: number,
271
+ streamsList: Array<string>,
272
+ open: number,
273
+ }
274
+ }
275
+
276
+ export class GetInfoRequest extends jspb.Message {
277
+ serializeBinary(): Uint8Array;
278
+ toObject(includeInstance?: boolean): GetInfoRequest.AsObject;
279
+ static toObject(includeInstance: boolean, msg: GetInfoRequest): GetInfoRequest.AsObject;
280
+ static serializeBinaryToWriter(message: GetInfoRequest, writer: jspb.BinaryWriter): void;
281
+ static deserializeBinary(bytes: Uint8Array): GetInfoRequest;
282
+ static deserializeBinaryFromReader(message: GetInfoRequest, reader: jspb.BinaryReader): GetInfoRequest;
283
+ }
284
+
285
+ export namespace GetInfoRequest {
286
+ export type AsObject = {
287
+ }
288
+ }
289
+
290
+ export class GetInfoResponse extends jspb.Message {
291
+ getPremStatus(): boolean;
292
+ setPremStatus(value: boolean): GetInfoResponse;
293
+
294
+ getQualStatus(): boolean;
295
+ setQualStatus(value: boolean): GetInfoResponse;
296
+
297
+ getQualifiedForWorkWithList(): Array<string>;
298
+ setQualifiedForWorkWithList(value: Array<string>): GetInfoResponse;
299
+ clearQualifiedForWorkWithList(): GetInfoResponse;
300
+ addQualifiedForWorkWith(value: string, index?: number): GetInfoResponse;
301
+
302
+ getTariff(): string;
303
+ setTariff(value: string): GetInfoResponse;
304
+
305
+ getUserId(): string;
306
+ setUserId(value: string): GetInfoResponse;
307
+
308
+ getRiskLevelCode(): string;
309
+ setRiskLevelCode(value: string): GetInfoResponse;
310
+
311
+ serializeBinary(): Uint8Array;
312
+ toObject(includeInstance?: boolean): GetInfoResponse.AsObject;
313
+ static toObject(includeInstance: boolean, msg: GetInfoResponse): GetInfoResponse.AsObject;
314
+ static serializeBinaryToWriter(message: GetInfoResponse, writer: jspb.BinaryWriter): void;
315
+ static deserializeBinary(bytes: Uint8Array): GetInfoResponse;
316
+ static deserializeBinaryFromReader(message: GetInfoResponse, reader: jspb.BinaryReader): GetInfoResponse;
317
+ }
318
+
319
+ export namespace GetInfoResponse {
320
+ export type AsObject = {
321
+ premStatus: boolean,
322
+ qualStatus: boolean,
323
+ qualifiedForWorkWithList: Array<string>,
324
+ tariff: string,
325
+ userId: string,
326
+ riskLevelCode: string,
327
+ }
328
+ }
329
+
330
+ export class GetBankAccountsRequest extends jspb.Message {
331
+ serializeBinary(): Uint8Array;
332
+ toObject(includeInstance?: boolean): GetBankAccountsRequest.AsObject;
333
+ static toObject(includeInstance: boolean, msg: GetBankAccountsRequest): GetBankAccountsRequest.AsObject;
334
+ static serializeBinaryToWriter(message: GetBankAccountsRequest, writer: jspb.BinaryWriter): void;
335
+ static deserializeBinary(bytes: Uint8Array): GetBankAccountsRequest;
336
+ static deserializeBinaryFromReader(message: GetBankAccountsRequest, reader: jspb.BinaryReader): GetBankAccountsRequest;
337
+ }
338
+
339
+ export namespace GetBankAccountsRequest {
340
+ export type AsObject = {
341
+ }
342
+ }
343
+
344
+ export class GetBankAccountsResponse extends jspb.Message {
345
+ getBankAccountsList(): Array<BankAccount>;
346
+ setBankAccountsList(value: Array<BankAccount>): GetBankAccountsResponse;
347
+ clearBankAccountsList(): GetBankAccountsResponse;
348
+ addBankAccounts(value?: BankAccount, index?: number): BankAccount;
349
+
350
+ serializeBinary(): Uint8Array;
351
+ toObject(includeInstance?: boolean): GetBankAccountsResponse.AsObject;
352
+ static toObject(includeInstance: boolean, msg: GetBankAccountsResponse): GetBankAccountsResponse.AsObject;
353
+ static serializeBinaryToWriter(message: GetBankAccountsResponse, writer: jspb.BinaryWriter): void;
354
+ static deserializeBinary(bytes: Uint8Array): GetBankAccountsResponse;
355
+ static deserializeBinaryFromReader(message: GetBankAccountsResponse, reader: jspb.BinaryReader): GetBankAccountsResponse;
356
+ }
357
+
358
+ export namespace GetBankAccountsResponse {
359
+ export type AsObject = {
360
+ bankAccountsList: Array<BankAccount.AsObject>,
361
+ }
362
+ }
363
+
364
+ export class BankAccount extends jspb.Message {
365
+ getId(): string;
366
+ setId(value: string): BankAccount;
367
+
368
+ getName(): string;
369
+ setName(value: string): BankAccount;
370
+
371
+ getMoneyList(): Array<tinvest_common_pb.MoneyValue>;
372
+ setMoneyList(value: Array<tinvest_common_pb.MoneyValue>): BankAccount;
373
+ clearMoneyList(): BankAccount;
374
+ addMoney(value?: tinvest_common_pb.MoneyValue, index?: number): tinvest_common_pb.MoneyValue;
375
+
376
+ getOpenedDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
377
+ setOpenedDate(value?: google_protobuf_timestamp_pb.Timestamp): BankAccount;
378
+ hasOpenedDate(): boolean;
379
+ clearOpenedDate(): BankAccount;
380
+
381
+ getType(): AccountType;
382
+ setType(value: AccountType): BankAccount;
383
+
384
+ serializeBinary(): Uint8Array;
385
+ toObject(includeInstance?: boolean): BankAccount.AsObject;
386
+ static toObject(includeInstance: boolean, msg: BankAccount): BankAccount.AsObject;
387
+ static serializeBinaryToWriter(message: BankAccount, writer: jspb.BinaryWriter): void;
388
+ static deserializeBinary(bytes: Uint8Array): BankAccount;
389
+ static deserializeBinaryFromReader(message: BankAccount, reader: jspb.BinaryReader): BankAccount;
390
+ }
391
+
392
+ export namespace BankAccount {
393
+ export type AsObject = {
394
+ id: string,
395
+ name: string,
396
+ moneyList: Array<tinvest_common_pb.MoneyValue.AsObject>,
397
+ openedDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
398
+ type: AccountType,
399
+ }
400
+ }
401
+
402
+ export class CurrencyTransferRequest extends jspb.Message {
403
+ getFromAccountId(): string;
404
+ setFromAccountId(value: string): CurrencyTransferRequest;
405
+
406
+ getToAccountId(): string;
407
+ setToAccountId(value: string): CurrencyTransferRequest;
408
+
409
+ getAmount(): tinvest_common_pb.MoneyValue | undefined;
410
+ setAmount(value?: tinvest_common_pb.MoneyValue): CurrencyTransferRequest;
411
+ hasAmount(): boolean;
412
+ clearAmount(): CurrencyTransferRequest;
413
+
414
+ getTransactionId(): string;
415
+ setTransactionId(value: string): CurrencyTransferRequest;
416
+
417
+ serializeBinary(): Uint8Array;
418
+ toObject(includeInstance?: boolean): CurrencyTransferRequest.AsObject;
419
+ static toObject(includeInstance: boolean, msg: CurrencyTransferRequest): CurrencyTransferRequest.AsObject;
420
+ static serializeBinaryToWriter(message: CurrencyTransferRequest, writer: jspb.BinaryWriter): void;
421
+ static deserializeBinary(bytes: Uint8Array): CurrencyTransferRequest;
422
+ static deserializeBinaryFromReader(message: CurrencyTransferRequest, reader: jspb.BinaryReader): CurrencyTransferRequest;
423
+ }
424
+
425
+ export namespace CurrencyTransferRequest {
426
+ export type AsObject = {
427
+ fromAccountId: string,
428
+ toAccountId: string,
429
+ amount?: tinvest_common_pb.MoneyValue.AsObject,
430
+ transactionId: string,
431
+ }
432
+ }
433
+
434
+ export class CurrencyTransferResponse extends jspb.Message {
435
+ serializeBinary(): Uint8Array;
436
+ toObject(includeInstance?: boolean): CurrencyTransferResponse.AsObject;
437
+ static toObject(includeInstance: boolean, msg: CurrencyTransferResponse): CurrencyTransferResponse.AsObject;
438
+ static serializeBinaryToWriter(message: CurrencyTransferResponse, writer: jspb.BinaryWriter): void;
439
+ static deserializeBinary(bytes: Uint8Array): CurrencyTransferResponse;
440
+ static deserializeBinaryFromReader(message: CurrencyTransferResponse, reader: jspb.BinaryReader): CurrencyTransferResponse;
441
+ }
442
+
443
+ export namespace CurrencyTransferResponse {
444
+ export type AsObject = {
445
+ }
446
+ }
447
+
448
+ export class PayInRequest extends jspb.Message {
449
+ getFromAccountId(): string;
450
+ setFromAccountId(value: string): PayInRequest;
451
+
452
+ getToAccountId(): string;
453
+ setToAccountId(value: string): PayInRequest;
454
+
455
+ getAmount(): tinvest_common_pb.MoneyValue | undefined;
456
+ setAmount(value?: tinvest_common_pb.MoneyValue): PayInRequest;
457
+ hasAmount(): boolean;
458
+ clearAmount(): PayInRequest;
459
+
460
+ serializeBinary(): Uint8Array;
461
+ toObject(includeInstance?: boolean): PayInRequest.AsObject;
462
+ static toObject(includeInstance: boolean, msg: PayInRequest): PayInRequest.AsObject;
463
+ static serializeBinaryToWriter(message: PayInRequest, writer: jspb.BinaryWriter): void;
464
+ static deserializeBinary(bytes: Uint8Array): PayInRequest;
465
+ static deserializeBinaryFromReader(message: PayInRequest, reader: jspb.BinaryReader): PayInRequest;
466
+ }
467
+
468
+ export namespace PayInRequest {
469
+ export type AsObject = {
470
+ fromAccountId: string,
471
+ toAccountId: string,
472
+ amount?: tinvest_common_pb.MoneyValue.AsObject,
473
+ }
474
+ }
475
+
476
+ export class PayInResponse extends jspb.Message {
477
+ serializeBinary(): Uint8Array;
478
+ toObject(includeInstance?: boolean): PayInResponse.AsObject;
479
+ static toObject(includeInstance: boolean, msg: PayInResponse): PayInResponse.AsObject;
480
+ static serializeBinaryToWriter(message: PayInResponse, writer: jspb.BinaryWriter): void;
481
+ static deserializeBinary(bytes: Uint8Array): PayInResponse;
482
+ static deserializeBinaryFromReader(message: PayInResponse, reader: jspb.BinaryReader): PayInResponse;
483
+ }
484
+
485
+ export namespace PayInResponse {
486
+ export type AsObject = {
487
+ }
488
+ }
489
+
490
+ export class GetAccountValuesRequest extends jspb.Message {
491
+ getAccountsList(): Array<string>;
492
+ setAccountsList(value: Array<string>): GetAccountValuesRequest;
493
+ clearAccountsList(): GetAccountValuesRequest;
494
+ addAccounts(value: string, index?: number): GetAccountValuesRequest;
495
+
496
+ getValuesList(): Array<AccountValue>;
497
+ setValuesList(value: Array<AccountValue>): GetAccountValuesRequest;
498
+ clearValuesList(): GetAccountValuesRequest;
499
+ addValues(value: AccountValue, index?: number): GetAccountValuesRequest;
500
+
501
+ serializeBinary(): Uint8Array;
502
+ toObject(includeInstance?: boolean): GetAccountValuesRequest.AsObject;
503
+ static toObject(includeInstance: boolean, msg: GetAccountValuesRequest): GetAccountValuesRequest.AsObject;
504
+ static serializeBinaryToWriter(message: GetAccountValuesRequest, writer: jspb.BinaryWriter): void;
505
+ static deserializeBinary(bytes: Uint8Array): GetAccountValuesRequest;
506
+ static deserializeBinaryFromReader(message: GetAccountValuesRequest, reader: jspb.BinaryReader): GetAccountValuesRequest;
507
+ }
508
+
509
+ export namespace GetAccountValuesRequest {
510
+ export type AsObject = {
511
+ accountsList: Array<string>,
512
+ valuesList: Array<AccountValue>,
513
+ }
514
+ }
515
+
516
+ export class GetAccountValuesResponse extends jspb.Message {
517
+ getAccountsList(): Array<AccountValuesWithParameters>;
518
+ setAccountsList(value: Array<AccountValuesWithParameters>): GetAccountValuesResponse;
519
+ clearAccountsList(): GetAccountValuesResponse;
520
+ addAccounts(value?: AccountValuesWithParameters, index?: number): AccountValuesWithParameters;
521
+
522
+ serializeBinary(): Uint8Array;
523
+ toObject(includeInstance?: boolean): GetAccountValuesResponse.AsObject;
524
+ static toObject(includeInstance: boolean, msg: GetAccountValuesResponse): GetAccountValuesResponse.AsObject;
525
+ static serializeBinaryToWriter(message: GetAccountValuesResponse, writer: jspb.BinaryWriter): void;
526
+ static deserializeBinary(bytes: Uint8Array): GetAccountValuesResponse;
527
+ static deserializeBinaryFromReader(message: GetAccountValuesResponse, reader: jspb.BinaryReader): GetAccountValuesResponse;
528
+ }
529
+
530
+ export namespace GetAccountValuesResponse {
531
+ export type AsObject = {
532
+ accountsList: Array<AccountValuesWithParameters.AsObject>,
533
+ }
534
+ }
535
+
536
+ export class AccountValuesWithParameters extends jspb.Message {
537
+ getAccountId(): string;
538
+ setAccountId(value: string): AccountValuesWithParameters;
539
+
540
+ getValuesList(): Array<InstrumentParameter>;
541
+ setValuesList(value: Array<InstrumentParameter>): AccountValuesWithParameters;
542
+ clearValuesList(): AccountValuesWithParameters;
543
+ addValues(value?: InstrumentParameter, index?: number): InstrumentParameter;
544
+
545
+ serializeBinary(): Uint8Array;
546
+ toObject(includeInstance?: boolean): AccountValuesWithParameters.AsObject;
547
+ static toObject(includeInstance: boolean, msg: AccountValuesWithParameters): AccountValuesWithParameters.AsObject;
548
+ static serializeBinaryToWriter(message: AccountValuesWithParameters, writer: jspb.BinaryWriter): void;
549
+ static deserializeBinary(bytes: Uint8Array): AccountValuesWithParameters;
550
+ static deserializeBinaryFromReader(message: AccountValuesWithParameters, reader: jspb.BinaryReader): AccountValuesWithParameters;
551
+ }
552
+
553
+ export namespace AccountValuesWithParameters {
554
+ export type AsObject = {
555
+ accountId: string,
556
+ valuesList: Array<InstrumentParameter.AsObject>,
557
+ }
558
+ }
559
+
560
+ export class InstrumentParameter extends jspb.Message {
561
+ getName(): AccountValue;
562
+ setName(value: AccountValue): InstrumentParameter;
563
+
564
+ getValue(): tinvest_common_pb.MoneyValue | undefined;
565
+ setValue(value?: tinvest_common_pb.MoneyValue): InstrumentParameter;
566
+ hasValue(): boolean;
567
+ clearValue(): InstrumentParameter;
568
+
569
+ serializeBinary(): Uint8Array;
570
+ toObject(includeInstance?: boolean): InstrumentParameter.AsObject;
571
+ static toObject(includeInstance: boolean, msg: InstrumentParameter): InstrumentParameter.AsObject;
572
+ static serializeBinaryToWriter(message: InstrumentParameter, writer: jspb.BinaryWriter): void;
573
+ static deserializeBinary(bytes: Uint8Array): InstrumentParameter;
574
+ static deserializeBinaryFromReader(message: InstrumentParameter, reader: jspb.BinaryReader): InstrumentParameter;
575
+ }
576
+
577
+ export namespace InstrumentParameter {
578
+ export type AsObject = {
579
+ name: AccountValue,
580
+ value?: tinvest_common_pb.MoneyValue.AsObject,
581
+ }
582
+ }
583
+
584
+ export enum AccountType {
585
+ ACCOUNT_TYPE_UNSPECIFIED = 0,
586
+ ACCOUNT_TYPE_TINKOFF = 1,
587
+ ACCOUNT_TYPE_TINKOFF_IIS = 2,
588
+ ACCOUNT_TYPE_INVEST_BOX = 3,
589
+ ACCOUNT_TYPE_INVEST_FUND = 4,
590
+ ACCOUNT_TYPE_DEBIT = 5,
591
+ ACCOUNT_TYPE_SAVING = 6,
592
+ ACCOUNT_TYPE_DFA = 7,
593
+ }
594
+ export enum AccountStatus {
595
+ ACCOUNT_STATUS_UNSPECIFIED = 0,
596
+ ACCOUNT_STATUS_NEW = 1,
597
+ ACCOUNT_STATUS_OPEN = 2,
598
+ ACCOUNT_STATUS_CLOSED = 3,
599
+ ACCOUNT_STATUS_ALL = 4,
600
+ }
601
+ export enum AccessLevel {
602
+ ACCOUNT_ACCESS_LEVEL_UNSPECIFIED = 0,
603
+ ACCOUNT_ACCESS_LEVEL_FULL_ACCESS = 1,
604
+ ACCOUNT_ACCESS_LEVEL_READ_ONLY = 2,
605
+ ACCOUNT_ACCESS_LEVEL_NO_ACCESS = 3,
606
+ }
607
+ export enum AccountValue {
608
+ ACCOUNT_VALUE_UNSPECIFIED = 0,
609
+ ACCOUNT_VALUE_MARGIN_FEE = 1,
610
+ ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE = 2,
611
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marleena/trb-proto",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Generated protobuf messages and gRPC-Web clients for TrB services",
5
5
  "license": "MIT",
6
6
  "repository": {