@marleena/trb-proto 0.1.6 → 1.0.4

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 (26) hide show
  1. package/README.md +3 -3
  2. package/gen/js-ts/{clickhouse_manager → api/clickhouse}/ManagerServiceClientPb.ts +262 -262
  3. package/gen/js-ts/{clickhouse_manager → api/clickhouse}/manager_pb.d.ts +2 -2
  4. package/gen/js-ts/{clickhouse_manager → api/clickhouse}/manager_pb.js +3 -3
  5. package/gen/js-ts/api/db_api/Db_apiServiceClientPb.ts +259 -0
  6. package/gen/js-ts/{db_api → api/db_api}/db_api_pb.d.ts +21 -100
  7. package/gen/js-ts/{db_api → api/db_api}/db_api_pb.js +72 -714
  8. package/gen/js-ts/{nats → api/nats}/ManagerServiceClientPb.ts +232 -232
  9. package/gen/js-ts/{nats → api/nats}/manager_pb.d.ts +1 -1
  10. package/gen/js-ts/{nats → api/nats}/manager_pb.js +2 -2
  11. package/gen/js-ts/{moex/MoexServiceClientPb.ts → api/test/TestServiceClientPb.ts} +23 -23
  12. package/gen/js-ts/api/test/test_pb.d.ts +40 -0
  13. package/gen/js-ts/api/test/test_pb.js +324 -0
  14. package/package.json +1 -1
  15. package/gen/js-ts/clickhouse/Clickhouse_grpcServiceClientPb.ts +0 -108
  16. package/gen/js-ts/clickhouse/clickhouse_grpc_pb.d.ts +0 -464
  17. package/gen/js-ts/clickhouse/clickhouse_grpc_pb.js +0 -3611
  18. package/gen/js-ts/db_api/Db_apiServiceClientPb.ts +0 -215
  19. package/gen/js-ts/example/ExampleServiceClientPb.ts +0 -108
  20. package/gen/js-ts/example/Example_pb.d.ts +0 -77
  21. package/gen/js-ts/example/Example_pb.js +0 -634
  22. package/gen/js-ts/manager_indicators/Manager_indicatorsServiceClientPb.ts +0 -86
  23. package/gen/js-ts/manager_indicators/manager_indicators_pb.d.ts +0 -190
  24. package/gen/js-ts/manager_indicators/manager_indicators_pb.js +0 -563
  25. package/gen/js-ts/moex/moex_pb.d.ts +0 -53
  26. package/gen/js-ts/moex/moex_pb.js +0 -420
@@ -1,215 +0,0 @@
1
- /**
2
- * @fileoverview gRPC-Web generated client stub for trb.db.api.public.contract.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: db_api/db_api.proto
12
-
13
-
14
- /* eslint-disable */
15
- // @ts-nocheck
16
-
17
-
18
- import * as grpcWeb from 'grpc-web';
19
-
20
- import * as db_api_db_api_pb from '../db_api/db_api_pb'; // proto import: "db_api/db_api.proto"
21
-
22
-
23
- export class DbApiClient {
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
- methodDescriptorListInstruments = new grpcWeb.MethodDescriptor(
43
- '/trb.db.api.public.contract.v1.DbApi/ListInstruments',
44
- grpcWeb.MethodType.UNARY,
45
- db_api_db_api_pb.ListInstrumentsRequest,
46
- db_api_db_api_pb.ListInstrumentsResponse,
47
- (request: db_api_db_api_pb.ListInstrumentsRequest) => {
48
- return request.serializeBinary();
49
- },
50
- db_api_db_api_pb.ListInstrumentsResponse.deserializeBinary
51
- );
52
-
53
- listInstruments(
54
- request: db_api_db_api_pb.ListInstrumentsRequest,
55
- metadata?: grpcWeb.Metadata | null): Promise<db_api_db_api_pb.ListInstrumentsResponse>;
56
-
57
- listInstruments(
58
- request: db_api_db_api_pb.ListInstrumentsRequest,
59
- metadata: grpcWeb.Metadata | null,
60
- callback: (err: grpcWeb.RpcError,
61
- response: db_api_db_api_pb.ListInstrumentsResponse) => void): grpcWeb.ClientReadableStream<db_api_db_api_pb.ListInstrumentsResponse>;
62
-
63
- listInstruments(
64
- request: db_api_db_api_pb.ListInstrumentsRequest,
65
- metadata?: grpcWeb.Metadata | null,
66
- callback?: (err: grpcWeb.RpcError,
67
- response: db_api_db_api_pb.ListInstrumentsResponse) => void) {
68
- if (callback !== undefined) {
69
- return this.client_.rpcCall(
70
- this.hostname_ +
71
- '/trb.db.api.public.contract.v1.DbApi/ListInstruments',
72
- request,
73
- metadata || {},
74
- this.methodDescriptorListInstruments,
75
- callback);
76
- }
77
- return this.client_.unaryCall(
78
- this.hostname_ +
79
- '/trb.db.api.public.contract.v1.DbApi/ListInstruments',
80
- request,
81
- metadata || {},
82
- this.methodDescriptorListInstruments);
83
- }
84
-
85
- methodDescriptorListSchedulerTargets = new grpcWeb.MethodDescriptor(
86
- '/trb.db.api.public.contract.v1.DbApi/ListSchedulerTargets',
87
- grpcWeb.MethodType.UNARY,
88
- db_api_db_api_pb.ListSchedulerTargetsRequest,
89
- db_api_db_api_pb.ListSchedulerTargetsResponse,
90
- (request: db_api_db_api_pb.ListSchedulerTargetsRequest) => {
91
- return request.serializeBinary();
92
- },
93
- db_api_db_api_pb.ListSchedulerTargetsResponse.deserializeBinary
94
- );
95
-
96
- listSchedulerTargets(
97
- request: db_api_db_api_pb.ListSchedulerTargetsRequest,
98
- metadata?: grpcWeb.Metadata | null): Promise<db_api_db_api_pb.ListSchedulerTargetsResponse>;
99
-
100
- listSchedulerTargets(
101
- request: db_api_db_api_pb.ListSchedulerTargetsRequest,
102
- metadata: grpcWeb.Metadata | null,
103
- callback: (err: grpcWeb.RpcError,
104
- response: db_api_db_api_pb.ListSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<db_api_db_api_pb.ListSchedulerTargetsResponse>;
105
-
106
- listSchedulerTargets(
107
- request: db_api_db_api_pb.ListSchedulerTargetsRequest,
108
- metadata?: grpcWeb.Metadata | null,
109
- callback?: (err: grpcWeb.RpcError,
110
- response: db_api_db_api_pb.ListSchedulerTargetsResponse) => void) {
111
- if (callback !== undefined) {
112
- return this.client_.rpcCall(
113
- this.hostname_ +
114
- '/trb.db.api.public.contract.v1.DbApi/ListSchedulerTargets',
115
- request,
116
- metadata || {},
117
- this.methodDescriptorListSchedulerTargets,
118
- callback);
119
- }
120
- return this.client_.unaryCall(
121
- this.hostname_ +
122
- '/trb.db.api.public.contract.v1.DbApi/ListSchedulerTargets',
123
- request,
124
- metadata || {},
125
- this.methodDescriptorListSchedulerTargets);
126
- }
127
-
128
- methodDescriptorSyncSchedulerTargets = new grpcWeb.MethodDescriptor(
129
- '/trb.db.api.public.contract.v1.DbApi/SyncSchedulerTargets',
130
- grpcWeb.MethodType.UNARY,
131
- db_api_db_api_pb.SyncSchedulerTargetsRequest,
132
- db_api_db_api_pb.SyncSchedulerTargetsResponse,
133
- (request: db_api_db_api_pb.SyncSchedulerTargetsRequest) => {
134
- return request.serializeBinary();
135
- },
136
- db_api_db_api_pb.SyncSchedulerTargetsResponse.deserializeBinary
137
- );
138
-
139
- syncSchedulerTargets(
140
- request: db_api_db_api_pb.SyncSchedulerTargetsRequest,
141
- metadata?: grpcWeb.Metadata | null): Promise<db_api_db_api_pb.SyncSchedulerTargetsResponse>;
142
-
143
- syncSchedulerTargets(
144
- request: db_api_db_api_pb.SyncSchedulerTargetsRequest,
145
- metadata: grpcWeb.Metadata | null,
146
- callback: (err: grpcWeb.RpcError,
147
- response: db_api_db_api_pb.SyncSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<db_api_db_api_pb.SyncSchedulerTargetsResponse>;
148
-
149
- syncSchedulerTargets(
150
- request: db_api_db_api_pb.SyncSchedulerTargetsRequest,
151
- metadata?: grpcWeb.Metadata | null,
152
- callback?: (err: grpcWeb.RpcError,
153
- response: db_api_db_api_pb.SyncSchedulerTargetsResponse) => void) {
154
- if (callback !== undefined) {
155
- return this.client_.rpcCall(
156
- this.hostname_ +
157
- '/trb.db.api.public.contract.v1.DbApi/SyncSchedulerTargets',
158
- request,
159
- metadata || {},
160
- this.methodDescriptorSyncSchedulerTargets,
161
- callback);
162
- }
163
- return this.client_.unaryCall(
164
- this.hostname_ +
165
- '/trb.db.api.public.contract.v1.DbApi/SyncSchedulerTargets',
166
- request,
167
- metadata || {},
168
- this.methodDescriptorSyncSchedulerTargets);
169
- }
170
-
171
- methodDescriptorListLastDownloads = new grpcWeb.MethodDescriptor(
172
- '/trb.db.api.public.contract.v1.DbApi/ListLastDownloads',
173
- grpcWeb.MethodType.UNARY,
174
- db_api_db_api_pb.ListLastDownloadsRequest,
175
- db_api_db_api_pb.ListLastDownloadsResponse,
176
- (request: db_api_db_api_pb.ListLastDownloadsRequest) => {
177
- return request.serializeBinary();
178
- },
179
- db_api_db_api_pb.ListLastDownloadsResponse.deserializeBinary
180
- );
181
-
182
- listLastDownloads(
183
- request: db_api_db_api_pb.ListLastDownloadsRequest,
184
- metadata?: grpcWeb.Metadata | null): Promise<db_api_db_api_pb.ListLastDownloadsResponse>;
185
-
186
- listLastDownloads(
187
- request: db_api_db_api_pb.ListLastDownloadsRequest,
188
- metadata: grpcWeb.Metadata | null,
189
- callback: (err: grpcWeb.RpcError,
190
- response: db_api_db_api_pb.ListLastDownloadsResponse) => void): grpcWeb.ClientReadableStream<db_api_db_api_pb.ListLastDownloadsResponse>;
191
-
192
- listLastDownloads(
193
- request: db_api_db_api_pb.ListLastDownloadsRequest,
194
- metadata?: grpcWeb.Metadata | null,
195
- callback?: (err: grpcWeb.RpcError,
196
- response: db_api_db_api_pb.ListLastDownloadsResponse) => void) {
197
- if (callback !== undefined) {
198
- return this.client_.rpcCall(
199
- this.hostname_ +
200
- '/trb.db.api.public.contract.v1.DbApi/ListLastDownloads',
201
- request,
202
- metadata || {},
203
- this.methodDescriptorListLastDownloads,
204
- callback);
205
- }
206
- return this.client_.unaryCall(
207
- this.hostname_ +
208
- '/trb.db.api.public.contract.v1.DbApi/ListLastDownloads',
209
- request,
210
- metadata || {},
211
- this.methodDescriptorListLastDownloads);
212
- }
213
-
214
- }
215
-
@@ -1,108 +0,0 @@
1
- /**
2
- * @fileoverview gRPC-Web generated client stub for example.contract.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: example/Example.proto
12
-
13
-
14
- /* eslint-disable */
15
- // @ts-nocheck
16
-
17
-
18
- import * as grpcWeb from 'grpc-web';
19
-
20
- import * as example_Example_pb from '../example/Example_pb'; // proto import: "example/Example.proto"
21
-
22
-
23
- export class exampleClient {
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
- methodDescriptorUnaryRPCMessage = new grpcWeb.MethodDescriptor(
43
- '/example.contract.v1.example/UnaryRPCMessage',
44
- grpcWeb.MethodType.UNARY,
45
- example_Example_pb.MessageRequest,
46
- example_Example_pb.MessageResponse,
47
- (request: example_Example_pb.MessageRequest) => {
48
- return request.serializeBinary();
49
- },
50
- example_Example_pb.MessageResponse.deserializeBinary
51
- );
52
-
53
- unaryRPCMessage(
54
- request: example_Example_pb.MessageRequest,
55
- metadata?: grpcWeb.Metadata | null): Promise<example_Example_pb.MessageResponse>;
56
-
57
- unaryRPCMessage(
58
- request: example_Example_pb.MessageRequest,
59
- metadata: grpcWeb.Metadata | null,
60
- callback: (err: grpcWeb.RpcError,
61
- response: example_Example_pb.MessageResponse) => void): grpcWeb.ClientReadableStream<example_Example_pb.MessageResponse>;
62
-
63
- unaryRPCMessage(
64
- request: example_Example_pb.MessageRequest,
65
- metadata?: grpcWeb.Metadata | null,
66
- callback?: (err: grpcWeb.RpcError,
67
- response: example_Example_pb.MessageResponse) => void) {
68
- if (callback !== undefined) {
69
- return this.client_.rpcCall(
70
- this.hostname_ +
71
- '/example.contract.v1.example/UnaryRPCMessage',
72
- request,
73
- metadata || {},
74
- this.methodDescriptorUnaryRPCMessage,
75
- callback);
76
- }
77
- return this.client_.unaryCall(
78
- this.hostname_ +
79
- '/example.contract.v1.example/UnaryRPCMessage',
80
- request,
81
- metadata || {},
82
- this.methodDescriptorUnaryRPCMessage);
83
- }
84
-
85
- methodDescriptorServerSideStream = new grpcWeb.MethodDescriptor(
86
- '/example.contract.v1.example/ServerSideStream',
87
- grpcWeb.MethodType.SERVER_STREAMING,
88
- example_Example_pb.MessageRequest,
89
- example_Example_pb.MessageStreamResponse,
90
- (request: example_Example_pb.MessageRequest) => {
91
- return request.serializeBinary();
92
- },
93
- example_Example_pb.MessageStreamResponse.deserializeBinary
94
- );
95
-
96
- serverSideStream(
97
- request: example_Example_pb.MessageRequest,
98
- metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<example_Example_pb.MessageStreamResponse> {
99
- return this.client_.serverStreaming(
100
- this.hostname_ +
101
- '/example.contract.v1.example/ServerSideStream',
102
- request,
103
- metadata || {},
104
- this.methodDescriptorServerSideStream);
105
- }
106
-
107
- }
108
-
@@ -1,77 +0,0 @@
1
- import * as jspb from 'google-protobuf'
2
-
3
- import * as google_api_annotations_pb from '../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
4
-
5
-
6
- export class MessageRequest extends jspb.Message {
7
- getText(): string;
8
- setText(value: string): MessageRequest;
9
-
10
- serializeBinary(): Uint8Array;
11
- toObject(includeInstance?: boolean): MessageRequest.AsObject;
12
- static toObject(includeInstance: boolean, msg: MessageRequest): MessageRequest.AsObject;
13
- static serializeBinaryToWriter(message: MessageRequest, writer: jspb.BinaryWriter): void;
14
- static deserializeBinary(bytes: Uint8Array): MessageRequest;
15
- static deserializeBinaryFromReader(message: MessageRequest, reader: jspb.BinaryReader): MessageRequest;
16
- }
17
-
18
- export namespace MessageRequest {
19
- export type AsObject = {
20
- text: string,
21
- }
22
- }
23
-
24
- export class MessageResponse extends jspb.Message {
25
- getText(): string;
26
- setText(value: string): MessageResponse;
27
-
28
- serializeBinary(): Uint8Array;
29
- toObject(includeInstance?: boolean): MessageResponse.AsObject;
30
- static toObject(includeInstance: boolean, msg: MessageResponse): MessageResponse.AsObject;
31
- static serializeBinaryToWriter(message: MessageResponse, writer: jspb.BinaryWriter): void;
32
- static deserializeBinary(bytes: Uint8Array): MessageResponse;
33
- static deserializeBinaryFromReader(message: MessageResponse, reader: jspb.BinaryReader): MessageResponse;
34
- }
35
-
36
- export namespace MessageResponse {
37
- export type AsObject = {
38
- text: string,
39
- }
40
- }
41
-
42
- export class MessageStreamRequest extends jspb.Message {
43
- getText(): string;
44
- setText(value: string): MessageStreamRequest;
45
-
46
- serializeBinary(): Uint8Array;
47
- toObject(includeInstance?: boolean): MessageStreamRequest.AsObject;
48
- static toObject(includeInstance: boolean, msg: MessageStreamRequest): MessageStreamRequest.AsObject;
49
- static serializeBinaryToWriter(message: MessageStreamRequest, writer: jspb.BinaryWriter): void;
50
- static deserializeBinary(bytes: Uint8Array): MessageStreamRequest;
51
- static deserializeBinaryFromReader(message: MessageStreamRequest, reader: jspb.BinaryReader): MessageStreamRequest;
52
- }
53
-
54
- export namespace MessageStreamRequest {
55
- export type AsObject = {
56
- text: string,
57
- }
58
- }
59
-
60
- export class MessageStreamResponse extends jspb.Message {
61
- getText(): string;
62
- setText(value: string): MessageStreamResponse;
63
-
64
- serializeBinary(): Uint8Array;
65
- toObject(includeInstance?: boolean): MessageStreamResponse.AsObject;
66
- static toObject(includeInstance: boolean, msg: MessageStreamResponse): MessageStreamResponse.AsObject;
67
- static serializeBinaryToWriter(message: MessageStreamResponse, writer: jspb.BinaryWriter): void;
68
- static deserializeBinary(bytes: Uint8Array): MessageStreamResponse;
69
- static deserializeBinaryFromReader(message: MessageStreamResponse, reader: jspb.BinaryReader): MessageStreamResponse;
70
- }
71
-
72
- export namespace MessageStreamResponse {
73
- export type AsObject = {
74
- text: string,
75
- }
76
- }
77
-