@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.
- package/README.md +15 -3
- package/gen/js-ts/{tinvest → api/tinvest}/InstrumentsServiceClientPb.ts +432 -432
- package/gen/js-ts/{tinvest → api/tinvest}/MarketdataServiceClientPb.ts +98 -98
- package/gen/js-ts/{tinvest → api/tinvest}/OperationsServiceClientPb.ts +90 -90
- package/gen/js-ts/{tinvest → api/tinvest}/OrdersServiceClientPb.ts +94 -94
- package/gen/js-ts/{tinvest → api/tinvest}/SandboxServiceClientPb.ts +206 -206
- package/gen/js-ts/{tinvest → api/tinvest}/SignalsServiceClientPb.ts +22 -22
- package/gen/js-ts/{tinvest → api/tinvest}/StopordersServiceClientPb.ts +32 -32
- package/gen/js-ts/{tinvest → api/tinvest}/UsersServiceClientPb.ts +82 -82
- package/gen/js-ts/{tinvest → api/tinvest}/common_pb.js +1 -1
- package/gen/js-ts/{tinvest → api/tinvest}/instruments_pb.d.ts +560 -560
- package/gen/js-ts/{tinvest → api/tinvest}/instruments_pb.js +804 -804
- package/gen/js-ts/{tinvest → api/tinvest}/marketdata_pb.d.ts +104 -104
- package/gen/js-ts/{tinvest → api/tinvest}/marketdata_pb.js +154 -154
- package/gen/js-ts/{tinvest → api/tinvest}/operations_pb.d.ts +229 -229
- package/gen/js-ts/{tinvest → api/tinvest}/operations_pb.js +364 -364
- package/gen/js-ts/{tinvest → api/tinvest}/orders_pb.d.ts +153 -153
- package/gen/js-ts/{tinvest → api/tinvest}/orders_pb.js +226 -226
- package/gen/js-ts/{tinvest → api/tinvest}/sandbox_pb.d.ts +12 -12
- package/gen/js-ts/{tinvest → api/tinvest}/sandbox_pb.js +22 -22
- package/gen/js-ts/{tinvest → api/tinvest}/signals_pb.d.ts +32 -32
- package/gen/js-ts/{tinvest → api/tinvest}/signals_pb.js +54 -54
- package/gen/js-ts/{tinvest → api/tinvest}/stoporders_pb.d.ts +38 -38
- package/gen/js-ts/{tinvest → api/tinvest}/stoporders_pb.js +59 -59
- package/gen/js-ts/{tinvest → api/tinvest}/users_pb.d.ts +36 -36
- package/gen/js-ts/{tinvest → api/tinvest}/users_pb.js +59 -59
- package/gen/js-ts/clickhouse/AdminServiceClientPb.ts +1161 -0
- package/gen/js-ts/clickhouse/ClickhouseServiceClientPb.ts +216 -0
- package/gen/js-ts/{api/clickhouse/manager_pb.d.ts → clickhouse/admin_pb.d.ts} +2 -2
- package/gen/js-ts/{api/clickhouse/manager_pb.js → clickhouse/admin_pb.js} +1551 -1551
- package/gen/js-ts/{api/db_api/db_api_pb.d.ts → clickhouse/clickhouse_pb.d.ts} +8 -158
- package/gen/js-ts/clickhouse/clickhouse_pb.js +2440 -0
- package/gen/js-ts/nats/NatsServiceClientPb.ts +1032 -0
- package/gen/js-ts/{api/nats/manager_pb.d.ts → nats/nats_pb.d.ts} +1 -1
- package/gen/js-ts/{api/nats/manager_pb.js → nats/nats_pb.js} +1784 -1784
- package/gen/js-ts/postgresql/AdminServiceClientPb.ts +1591 -0
- package/gen/js-ts/postgresql/PostgresqlServiceClientPb.ts +129 -0
- package/gen/js-ts/postgresql/admin_pb.d.ts +1895 -0
- package/gen/js-ts/postgresql/admin_pb.js +15465 -0
- package/gen/js-ts/postgresql/postgresql_pb.d.ts +156 -0
- package/gen/js-ts/postgresql/postgresql_pb.js +1311 -0
- package/gen/js-ts/{api/test → test}/TestServiceClientPb.ts +16 -16
- package/gen/js-ts/{api/test → test}/test_pb.d.ts +5 -5
- package/gen/js-ts/{api/test → test}/test_pb.js +58 -58
- package/package.json +1 -1
- package/gen/js-ts/api/clickhouse/ManagerServiceClientPb.ts +0 -1161
- package/gen/js-ts/api/db_api/Db_apiServiceClientPb.ts +0 -302
- package/gen/js-ts/api/db_api/db_api_pb.js +0 -3723
- package/gen/js-ts/api/nats/ManagerServiceClientPb.ts +0 -1032
- /package/gen/js-ts/{tinvest → api/tinvest}/common_pb.d.ts +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for trb.postgresql.v1
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v7.34.1
|
|
11
|
+
// source: postgresql/postgresql.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as postgresql_postgresql_pb from '../postgresql/postgresql_pb'; // proto import: "postgresql/postgresql.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class PostgreSQLClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'binary';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorListSchedulerTargets = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/trb.postgresql.v1.PostgreSQL/ListSchedulerTargets',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
postgresql_postgresql_pb.ListSchedulerTargetsRequest,
|
|
46
|
+
postgresql_postgresql_pb.ListSchedulerTargetsResponse,
|
|
47
|
+
(request: postgresql_postgresql_pb.ListSchedulerTargetsRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
postgresql_postgresql_pb.ListSchedulerTargetsResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
listSchedulerTargets(
|
|
54
|
+
request: postgresql_postgresql_pb.ListSchedulerTargetsRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<postgresql_postgresql_pb.ListSchedulerTargetsResponse>;
|
|
56
|
+
|
|
57
|
+
listSchedulerTargets(
|
|
58
|
+
request: postgresql_postgresql_pb.ListSchedulerTargetsRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: postgresql_postgresql_pb.ListSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<postgresql_postgresql_pb.ListSchedulerTargetsResponse>;
|
|
62
|
+
|
|
63
|
+
listSchedulerTargets(
|
|
64
|
+
request: postgresql_postgresql_pb.ListSchedulerTargetsRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: postgresql_postgresql_pb.ListSchedulerTargetsResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/trb.postgresql.v1.PostgreSQL/ListSchedulerTargets',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorListSchedulerTargets,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/trb.postgresql.v1.PostgreSQL/ListSchedulerTargets',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorListSchedulerTargets);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
methodDescriptorSyncSchedulerTargets = new grpcWeb.MethodDescriptor(
|
|
86
|
+
'/trb.postgresql.v1.PostgreSQL/SyncSchedulerTargets',
|
|
87
|
+
grpcWeb.MethodType.UNARY,
|
|
88
|
+
postgresql_postgresql_pb.SyncSchedulerTargetsRequest,
|
|
89
|
+
postgresql_postgresql_pb.SyncSchedulerTargetsResponse,
|
|
90
|
+
(request: postgresql_postgresql_pb.SyncSchedulerTargetsRequest) => {
|
|
91
|
+
return request.serializeBinary();
|
|
92
|
+
},
|
|
93
|
+
postgresql_postgresql_pb.SyncSchedulerTargetsResponse.deserializeBinary
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
syncSchedulerTargets(
|
|
97
|
+
request: postgresql_postgresql_pb.SyncSchedulerTargetsRequest,
|
|
98
|
+
metadata?: grpcWeb.Metadata | null): Promise<postgresql_postgresql_pb.SyncSchedulerTargetsResponse>;
|
|
99
|
+
|
|
100
|
+
syncSchedulerTargets(
|
|
101
|
+
request: postgresql_postgresql_pb.SyncSchedulerTargetsRequest,
|
|
102
|
+
metadata: grpcWeb.Metadata | null,
|
|
103
|
+
callback: (err: grpcWeb.RpcError,
|
|
104
|
+
response: postgresql_postgresql_pb.SyncSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<postgresql_postgresql_pb.SyncSchedulerTargetsResponse>;
|
|
105
|
+
|
|
106
|
+
syncSchedulerTargets(
|
|
107
|
+
request: postgresql_postgresql_pb.SyncSchedulerTargetsRequest,
|
|
108
|
+
metadata?: grpcWeb.Metadata | null,
|
|
109
|
+
callback?: (err: grpcWeb.RpcError,
|
|
110
|
+
response: postgresql_postgresql_pb.SyncSchedulerTargetsResponse) => void) {
|
|
111
|
+
if (callback !== undefined) {
|
|
112
|
+
return this.client_.rpcCall(
|
|
113
|
+
this.hostname_ +
|
|
114
|
+
'/trb.postgresql.v1.PostgreSQL/SyncSchedulerTargets',
|
|
115
|
+
request,
|
|
116
|
+
metadata || {},
|
|
117
|
+
this.methodDescriptorSyncSchedulerTargets,
|
|
118
|
+
callback);
|
|
119
|
+
}
|
|
120
|
+
return this.client_.unaryCall(
|
|
121
|
+
this.hostname_ +
|
|
122
|
+
'/trb.postgresql.v1.PostgreSQL/SyncSchedulerTargets',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
this.methodDescriptorSyncSchedulerTargets);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|
|
129
|
+
|