@milaboratories/pl-client 2.7.13 → 2.7.14
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/dist/core/auth.d.ts.map +1 -1
- package/dist/core/cache.d.ts.map +1 -1
- package/dist/core/client.d.ts +1 -1
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/default_client.d.ts.map +1 -1
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/transaction.d.ts +1 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/type_conversion.d.ts.map +1 -1
- package/dist/core/types.d.ts +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/helpers/pl.d.ts.map +1 -1
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/state_helpers.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4069 -4075
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
- package/dist/proto/google/api/http.d.ts +89 -89
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +52 -52
- package/dist/proto/google/protobuf/any.d.ts.map +1 -1
- package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +19 -19
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
- package/dist/proto/google/protobuf/struct.d.ts +56 -56
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
- package/dist/test/test_config.d.ts.map +1 -1
- package/dist/util/util.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/core/auth.ts +3 -3
- package/src/core/cache.ts +1 -1
- package/src/core/client.ts +39 -31
- package/src/core/config.ts +21 -21
- package/src/core/default_client.ts +15 -14
- package/src/core/driver.ts +4 -4
- package/src/core/errors.ts +3 -3
- package/src/core/final.ts +7 -4
- package/src/core/ll_client.ts +31 -27
- package/src/core/ll_transaction.ts +17 -17
- package/src/core/stat.ts +2 -2
- package/src/core/transaction.ts +93 -95
- package/src/core/type_conversion.ts +11 -8
- package/src/core/types.ts +25 -26
- package/src/core/unauth_client.ts +6 -6
- package/src/helpers/pl.ts +8 -7
- package/src/helpers/poll.ts +25 -21
- package/src/helpers/state_helpers.ts +2 -1
- package/src/helpers/tx_helpers.ts +4 -3
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
- package/src/proto/google/api/http.ts +280 -271
- package/src/proto/google/protobuf/any.ts +149 -139
- package/src/proto/google/protobuf/descriptor.ts +2952 -2853
- package/src/proto/google/protobuf/duration.ts +107 -102
- package/src/proto/google/protobuf/empty.ts +41 -38
- package/src/proto/google/protobuf/struct.ts +336 -322
- package/src/proto/google/protobuf/timestamp.ts +131 -123
- package/src/proto/google/protobuf/wrappers.ts +536 -491
- package/src/test/test_config.ts +21 -19
- package/src/util/util.ts +1 -0
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.9.5 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
|
-
import type { RpcTransport } from
|
|
5
|
-
import type { ServiceInfo } from
|
|
6
|
-
import { Streaming } from
|
|
7
|
-
import type { StreamingAPI_LastLines } from
|
|
8
|
-
import type { StreamingAPI_ReadText } from
|
|
9
|
-
import type { StreamingAPI_StreamText } from
|
|
10
|
-
import type { StreamingAPI_ReadBinary } from
|
|
11
|
-
import type { UnaryCall } from
|
|
12
|
-
import { stackIntercept } from
|
|
13
|
-
import type { StreamingAPI_Response } from
|
|
14
|
-
import type { StreamingAPI_StreamBinary } from
|
|
15
|
-
import type { ServerStreamingCall } from
|
|
16
|
-
import type { RpcOptions } from
|
|
4
|
+
import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
|
|
5
|
+
import type { ServiceInfo } from '@protobuf-ts/runtime-rpc';
|
|
6
|
+
import { Streaming } from './protocol';
|
|
7
|
+
import type { StreamingAPI_LastLines } from './protocol';
|
|
8
|
+
import type { StreamingAPI_ReadText } from './protocol';
|
|
9
|
+
import type { StreamingAPI_StreamText } from './protocol';
|
|
10
|
+
import type { StreamingAPI_ReadBinary } from './protocol';
|
|
11
|
+
import type { UnaryCall } from '@protobuf-ts/runtime-rpc';
|
|
12
|
+
import { stackIntercept } from '@protobuf-ts/runtime-rpc';
|
|
13
|
+
import type { StreamingAPI_Response } from './protocol';
|
|
14
|
+
import type { StreamingAPI_StreamBinary } from './protocol';
|
|
15
|
+
import type { ServerStreamingCall } from '@protobuf-ts/runtime-rpc';
|
|
16
|
+
import type { RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
|
|
@@ -23,15 +23,15 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
23
23
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
24
24
|
*/
|
|
25
25
|
export interface IStreamingClient {
|
|
26
|
-
|
|
26
|
+
/**
|
|
27
27
|
* StreamBinary provides stream of binary file. Each response message keeps
|
|
28
28
|
* one single chunk of binary data from data source. See StreamingAPI.Binary message
|
|
29
29
|
* for more info on available options.
|
|
30
30
|
*
|
|
31
31
|
* @generated from protobuf rpc: StreamBinary(MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary) returns (stream MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;
|
|
34
|
+
/**
|
|
35
35
|
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
36
36
|
* The difference to StreamBinary is that the client receives single response for each
|
|
37
37
|
* call and has to send new calls to the server to get fresh data from remote item.
|
|
@@ -39,15 +39,15 @@ export interface IStreamingClient {
|
|
|
39
39
|
*
|
|
40
40
|
* @generated from protobuf rpc: ReadBinary(MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary) returns (MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
41
41
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;
|
|
43
|
+
/**
|
|
44
44
|
* StreamText provides stream of textual file, splitting the data by newline symbol.
|
|
45
45
|
* Each response message keeps one single line of text from data source.
|
|
46
46
|
*
|
|
47
47
|
* @generated from protobuf rpc: StreamText(MiLaboratories.Controller.Shared.StreamingAPI.StreamText) returns (stream MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
48
48
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;
|
|
50
|
+
/**
|
|
51
51
|
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
52
52
|
* The difference to StreamBinary is that the client receives single response for each
|
|
53
53
|
* call and has to send new calls to the server to get fresh data from remote item.
|
|
@@ -55,8 +55,8 @@ export interface IStreamingClient {
|
|
|
55
55
|
*
|
|
56
56
|
* @generated from protobuf rpc: ReadText(MiLaboratories.Controller.Shared.StreamingAPI.ReadText) returns (MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
57
57
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;
|
|
59
|
+
/**
|
|
60
60
|
* LastLines provides single message with the last lines from data source.
|
|
61
61
|
* When search pattern is specified, the last lines matching the given pattern are returned.
|
|
62
62
|
* The lines are returned in reversed order, as server reads data source from the end.
|
|
@@ -68,7 +68,7 @@ export interface IStreamingClient {
|
|
|
68
68
|
*
|
|
69
69
|
* @generated from protobuf rpc: LastLines(MiLaboratories.Controller.Shared.StreamingAPI.LastLines) returns (MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response>;
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
@@ -79,23 +79,25 @@ export interface IStreamingClient {
|
|
|
79
79
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
|
|
80
80
|
*/
|
|
81
81
|
export class StreamingClient implements IStreamingClient, ServiceInfo {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
typeName = Streaming.typeName;
|
|
83
|
+
methods = Streaming.methods;
|
|
84
|
+
options = Streaming.options;
|
|
85
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
88
89
|
* StreamBinary provides stream of binary file. Each response message keeps
|
|
89
90
|
* one single chunk of binary data from data source. See StreamingAPI.Binary message
|
|
90
91
|
* for more info on available options.
|
|
91
92
|
*
|
|
92
93
|
* @generated from protobuf rpc: StreamBinary(MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary) returns (stream MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
93
94
|
*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response> {
|
|
96
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
97
|
+
return stackIntercept<StreamingAPI_StreamBinary, StreamingAPI_Response>('serverStreaming', this._transport, method, opt, input);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
99
101
|
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
100
102
|
* The difference to StreamBinary is that the client receives single response for each
|
|
101
103
|
* call and has to send new calls to the server to get fresh data from remote item.
|
|
@@ -103,21 +105,23 @@ export class StreamingClient implements IStreamingClient, ServiceInfo {
|
|
|
103
105
|
*
|
|
104
106
|
* @generated from protobuf rpc: ReadBinary(MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary) returns (MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
105
107
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response> {
|
|
109
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
110
|
+
return stackIntercept<StreamingAPI_ReadBinary, StreamingAPI_Response>('unary', this._transport, method, opt, input);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
111
114
|
* StreamText provides stream of textual file, splitting the data by newline symbol.
|
|
112
115
|
* Each response message keeps one single line of text from data source.
|
|
113
116
|
*
|
|
114
117
|
* @generated from protobuf rpc: StreamText(MiLaboratories.Controller.Shared.StreamingAPI.StreamText) returns (stream MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
115
118
|
*/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response> {
|
|
120
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
121
|
+
return stackIntercept<StreamingAPI_StreamText, StreamingAPI_Response>('serverStreaming', this._transport, method, opt, input);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
121
125
|
* ReadBinary allows to read remote item in chunks using stream-like API.
|
|
122
126
|
* The difference to StreamBinary is that the client receives single response for each
|
|
123
127
|
* call and has to send new calls to the server to get fresh data from remote item.
|
|
@@ -125,11 +129,12 @@ export class StreamingClient implements IStreamingClient, ServiceInfo {
|
|
|
125
129
|
*
|
|
126
130
|
* @generated from protobuf rpc: ReadText(MiLaboratories.Controller.Shared.StreamingAPI.ReadText) returns (MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
127
131
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response> {
|
|
133
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
134
|
+
return stackIntercept<StreamingAPI_ReadText, StreamingAPI_Response>('unary', this._transport, method, opt, input);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
133
138
|
* LastLines provides single message with the last lines from data source.
|
|
134
139
|
* When search pattern is specified, the last lines matching the given pattern are returned.
|
|
135
140
|
* The lines are returned in reversed order, as server reads data source from the end.
|
|
@@ -141,8 +146,8 @@ export class StreamingClient implements IStreamingClient, ServiceInfo {
|
|
|
141
146
|
*
|
|
142
147
|
* @generated from protobuf rpc: LastLines(MiLaboratories.Controller.Shared.StreamingAPI.LastLines) returns (MiLaboratories.Controller.Shared.StreamingAPI.Response);
|
|
143
148
|
*/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
149
|
+
lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response> {
|
|
150
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
151
|
+
return stackIntercept<StreamingAPI_LastLines, StreamingAPI_Response>('unary', this._transport, method, opt, input);
|
|
152
|
+
}
|
|
148
153
|
}
|