@milaboratories/pl-client 2.7.12 → 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.
Files changed (116) hide show
  1. package/dist/core/auth.d.ts.map +1 -1
  2. package/dist/core/cache.d.ts.map +1 -1
  3. package/dist/core/client.d.ts +1 -1
  4. package/dist/core/client.d.ts.map +1 -1
  5. package/dist/core/default_client.d.ts.map +1 -1
  6. package/dist/core/driver.d.ts.map +1 -1
  7. package/dist/core/errors.d.ts.map +1 -1
  8. package/dist/core/final.d.ts.map +1 -1
  9. package/dist/core/ll_client.d.ts.map +1 -1
  10. package/dist/core/ll_transaction.d.ts.map +1 -1
  11. package/dist/core/transaction.d.ts +1 -1
  12. package/dist/core/transaction.d.ts.map +1 -1
  13. package/dist/core/type_conversion.d.ts.map +1 -1
  14. package/dist/core/types.d.ts +1 -1
  15. package/dist/core/types.d.ts.map +1 -1
  16. package/dist/core/unauth_client.d.ts.map +1 -1
  17. package/dist/helpers/pl.d.ts.map +1 -1
  18. package/dist/helpers/poll.d.ts.map +1 -1
  19. package/dist/helpers/state_helpers.d.ts.map +1 -1
  20. package/dist/helpers/tx_helpers.d.ts.map +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +4069 -4075
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
  26. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
  27. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
  28. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  29. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
  30. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  31. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
  32. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
  33. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
  34. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  35. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
  36. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  37. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
  38. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  39. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
  40. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  41. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
  42. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  43. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
  44. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
  45. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
  46. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
  47. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
  48. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
  49. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
  50. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
  51. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
  52. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
  53. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
  54. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
  55. package/dist/proto/google/api/http.d.ts +89 -89
  56. package/dist/proto/google/api/http.d.ts.map +1 -1
  57. package/dist/proto/google/protobuf/any.d.ts +52 -52
  58. package/dist/proto/google/protobuf/any.d.ts.map +1 -1
  59. package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
  60. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  61. package/dist/proto/google/protobuf/duration.d.ts +19 -19
  62. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  63. package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
  64. package/dist/proto/google/protobuf/struct.d.ts +56 -56
  65. package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
  66. package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
  67. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  68. package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
  69. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
  70. package/dist/test/test_config.d.ts.map +1 -1
  71. package/dist/util/util.d.ts.map +1 -1
  72. package/package.json +17 -13
  73. package/src/core/auth.ts +3 -3
  74. package/src/core/cache.ts +1 -1
  75. package/src/core/client.ts +39 -31
  76. package/src/core/config.ts +21 -21
  77. package/src/core/default_client.ts +15 -14
  78. package/src/core/driver.ts +4 -4
  79. package/src/core/errors.ts +3 -3
  80. package/src/core/final.ts +7 -4
  81. package/src/core/ll_client.ts +31 -27
  82. package/src/core/ll_transaction.ts +17 -17
  83. package/src/core/stat.ts +2 -2
  84. package/src/core/transaction.ts +93 -95
  85. package/src/core/type_conversion.ts +11 -8
  86. package/src/core/types.ts +25 -26
  87. package/src/core/unauth_client.ts +6 -6
  88. package/src/helpers/pl.ts +8 -7
  89. package/src/helpers/poll.ts +25 -21
  90. package/src/helpers/state_helpers.ts +2 -1
  91. package/src/helpers/tx_helpers.ts +4 -3
  92. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
  93. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
  94. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
  95. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
  96. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
  97. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
  98. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
  99. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
  100. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
  101. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
  102. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
  103. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
  104. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
  105. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
  106. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
  107. package/src/proto/google/api/http.ts +280 -271
  108. package/src/proto/google/protobuf/any.ts +149 -139
  109. package/src/proto/google/protobuf/descriptor.ts +2952 -2853
  110. package/src/proto/google/protobuf/duration.ts +107 -102
  111. package/src/proto/google/protobuf/empty.ts +41 -38
  112. package/src/proto/google/protobuf/struct.ts +336 -322
  113. package/src/proto/google/protobuf/timestamp.ts +131 -123
  114. package/src/proto/google/protobuf/wrappers.ts +536 -491
  115. package/src/test/test_config.ts +21 -19
  116. package/src/util/util.ts +1 -0
@@ -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 "@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";
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
- streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;
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
- readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;
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
- streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;
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
- readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;
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
- lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response>;
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
- typeName = Streaming.typeName;
83
- methods = Streaming.methods;
84
- options = Streaming.options;
85
- constructor(private readonly _transport: RpcTransport) {
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
- streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response> {
95
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
96
- return stackIntercept<StreamingAPI_StreamBinary, StreamingAPI_Response>("serverStreaming", this._transport, method, opt, input);
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
- readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response> {
107
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
108
- return stackIntercept<StreamingAPI_ReadBinary, StreamingAPI_Response>("unary", this._transport, method, opt, input);
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
- streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response> {
117
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
118
- return stackIntercept<StreamingAPI_StreamText, StreamingAPI_Response>("serverStreaming", this._transport, method, opt, input);
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
- readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response> {
129
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
130
- return stackIntercept<StreamingAPI_ReadText, StreamingAPI_Response>("unary", this._transport, method, opt, input);
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
- lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response> {
145
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
146
- return stackIntercept<StreamingAPI_LastLines, StreamingAPI_Response>("unary", this._transport, method, opt, input);
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
  }