@milaboratories/pl-client 2.11.3 → 2.11.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.
- package/dist/core/transaction.d.ts +2 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1377 -1173
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +3 -3
- 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 +2 -2
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +11 -11
- 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 +10 -10
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +25 -25
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +50 -50
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +415 -304
- 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 +70 -66
- 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 +4 -4
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +16 -16
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +30 -30
- package/dist/proto/google/api/http.d.ts +93 -89
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +2 -2
- package/dist/proto/google/protobuf/descriptor.d.ts +1298 -1151
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +2 -2
- package/dist/proto/google/protobuf/struct.d.ts +10 -8
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +2 -2
- package/dist/proto/google/protobuf/wrappers.d.ts +36 -9
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/ll_client.test.ts +3 -3
- package/src/core/ll_transaction.test.ts +4 -4
- package/src/core/transaction.ts +2 -0
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +5 -5
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +23 -24
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +232 -247
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +3 -3
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +13 -13
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +35 -37
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +375 -399
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +11 -11
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +26 -26
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +51 -51
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +687 -418
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +113 -101
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +5 -5
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +17 -17
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +50 -50
- package/src/proto/google/api/http.ts +290 -295
- package/src/proto/google/protobuf/any.ts +3 -3
- package/src/proto/google/protobuf/descriptor.ts +3235 -3123
- package/src/proto/google/protobuf/duration.ts +3 -3
- package/src/proto/google/protobuf/empty.ts +1 -1
- package/src/proto/google/protobuf/struct.ts +13 -11
- package/src/proto/google/protobuf/timestamp.ts +3 -3
- package/src/proto/google/protobuf/wrappers.ts +48 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.0 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -24,20 +24,20 @@ export interface LsAPI_ListItem {
|
|
|
24
24
|
/**
|
|
25
25
|
* name of the item in storage, without any prefixes
|
|
26
26
|
*
|
|
27
|
-
* @generated from protobuf field: string name = 1
|
|
27
|
+
* @generated from protobuf field: string name = 1
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
30
|
/**
|
|
31
31
|
* size of item in bytes
|
|
32
32
|
* is always zero for directories (is_dir = true)
|
|
33
33
|
*
|
|
34
|
-
* @generated from protobuf field: uint64 size = 2
|
|
34
|
+
* @generated from protobuf field: uint64 size = 2
|
|
35
35
|
*/
|
|
36
36
|
size: bigint;
|
|
37
37
|
/**
|
|
38
38
|
* is_dir is true for item, that can have subitems.
|
|
39
39
|
*
|
|
40
|
-
* @generated from protobuf field: bool is_dir = 3
|
|
40
|
+
* @generated from protobuf field: bool is_dir = 3
|
|
41
41
|
*/
|
|
42
42
|
isDir: boolean;
|
|
43
43
|
/**
|
|
@@ -45,20 +45,20 @@ export interface LsAPI_ListItem {
|
|
|
45
45
|
* it is <directory> + <name>
|
|
46
46
|
* The <delimiter>, used in names, is storage-specific and is NOT guaranteed to be '/'.
|
|
47
47
|
*
|
|
48
|
-
* @generated from protobuf field: string full_name = 10
|
|
48
|
+
* @generated from protobuf field: string full_name = 10
|
|
49
49
|
*/
|
|
50
50
|
fullName: string;
|
|
51
51
|
/**
|
|
52
52
|
* directory, the item is located in. The value here is always a prefix of name:
|
|
53
53
|
* name.HasPrefix(directory) is always true.
|
|
54
54
|
*
|
|
55
|
-
* @generated from protobuf field: string directory = 11
|
|
55
|
+
* @generated from protobuf field: string directory = 11
|
|
56
56
|
*/
|
|
57
57
|
directory: string;
|
|
58
58
|
/**
|
|
59
59
|
* last_modified keeps the item last modification timestamp
|
|
60
60
|
*
|
|
61
|
-
* @generated from protobuf field: google.protobuf.Timestamp last_modified = 12
|
|
61
|
+
* @generated from protobuf field: google.protobuf.Timestamp last_modified = 12
|
|
62
62
|
*/
|
|
63
63
|
lastModified?: Timestamp;
|
|
64
64
|
/**
|
|
@@ -70,7 +70,7 @@ export interface LsAPI_ListItem {
|
|
|
70
70
|
* Anyway, client should not try to interpret this field, but should provide it to the Platform
|
|
71
71
|
* in operations with given item (like BlobImportInternal) to help Platform with deduplication.
|
|
72
72
|
*
|
|
73
|
-
* @generated from protobuf field: string version = 13
|
|
73
|
+
* @generated from protobuf field: string version = 13
|
|
74
74
|
*/
|
|
75
75
|
version: string;
|
|
76
76
|
}
|
|
@@ -86,14 +86,14 @@ export interface LsAPI_List_Request {
|
|
|
86
86
|
/**
|
|
87
87
|
* resource_id of 'LS/<Storage>' resource
|
|
88
88
|
*
|
|
89
|
-
* @generated from protobuf field: uint64 resource_id = 1
|
|
89
|
+
* @generated from protobuf field: uint64 resource_id = 1
|
|
90
90
|
*/
|
|
91
91
|
resourceId: bigint;
|
|
92
92
|
/**
|
|
93
93
|
* location to list, absolute to storage root. Only items, that have <full_name> starting
|
|
94
94
|
* from <location> are included into list response.
|
|
95
95
|
*
|
|
96
|
-
* @generated from protobuf field: string location = 2
|
|
96
|
+
* @generated from protobuf field: string location = 2
|
|
97
97
|
*/
|
|
98
98
|
location: string;
|
|
99
99
|
}
|
|
@@ -107,14 +107,14 @@ export interface LsAPI_List_Response {
|
|
|
107
107
|
* item is located, and the item name itself.
|
|
108
108
|
* The delimiter, used in names, is storage-specific and is NOT guaranteed to be '/'.
|
|
109
109
|
*
|
|
110
|
-
* @generated from protobuf field: repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1
|
|
110
|
+
* @generated from protobuf field: repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1
|
|
111
111
|
*/
|
|
112
112
|
items: LsAPI_ListItem[];
|
|
113
113
|
/**
|
|
114
114
|
* delimiter is path separator, used in this storage. Client can use it to parse item names into parts,
|
|
115
115
|
* to extract directory names.
|
|
116
116
|
*
|
|
117
|
-
* @generated from protobuf field: string delimiter = 2
|
|
117
|
+
* @generated from protobuf field: string delimiter = 2
|
|
118
118
|
*/
|
|
119
119
|
delimiter: string;
|
|
120
120
|
}
|
|
@@ -347,7 +347,7 @@ export const LsAPI_List_Request = new LsAPI_List_Request$Type();
|
|
|
347
347
|
class LsAPI_List_Response$Type extends MessageType<LsAPI_List_Response> {
|
|
348
348
|
constructor() {
|
|
349
349
|
super("MiLaboratories.Controller.Shared.LsAPI.List.Response", [
|
|
350
|
-
{ no: 1, name: "items", kind: "message", repeat:
|
|
350
|
+
{ no: 1, name: "items", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LsAPI_ListItem },
|
|
351
351
|
{ no: 2, name: "delimiter", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
352
352
|
]);
|
|
353
353
|
}
|
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.0 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
|
-
import type { RpcTransport } from
|
|
5
|
-
import type { ServiceInfo } from
|
|
6
|
-
import { Progress } from
|
|
7
|
-
import type { ProgressAPI_RealtimeStatus_Response } from
|
|
8
|
-
import type { ProgressAPI_RealtimeStatus_Request } from
|
|
9
|
-
import type { ServerStreamingCall } from
|
|
10
|
-
import { stackIntercept } from
|
|
11
|
-
import type { ProgressAPI_GetStatus_Response } from
|
|
12
|
-
import type { ProgressAPI_GetStatus_Request } from
|
|
13
|
-
import type { UnaryCall } from
|
|
14
|
-
import type { RpcOptions } from
|
|
4
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import { Progress } from "./protocol";
|
|
7
|
+
import type { ProgressAPI_RealtimeStatus_Response } from "./protocol";
|
|
8
|
+
import type { ProgressAPI_RealtimeStatus_Request } from "./protocol";
|
|
9
|
+
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
10
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
11
|
+
import type { ProgressAPI_GetStatus_Response } from "./protocol";
|
|
12
|
+
import type { ProgressAPI_GetStatus_Request } from "./protocol";
|
|
13
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
14
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* Progress provides access to progress of any long-running process associated with resource.
|
|
@@ -20,14 +20,14 @@ import type { RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
|
20
20
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Progress
|
|
21
21
|
*/
|
|
22
22
|
export interface IProgressClient {
|
|
23
|
-
|
|
24
|
-
* @generated from protobuf rpc: GetStatus
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf rpc: GetStatus
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
* @generated from protobuf rpc: RealtimeStatus
|
|
26
|
+
getStatus(input: ProgressAPI_GetStatus_Request, options?: RpcOptions): UnaryCall<ProgressAPI_GetStatus_Request, ProgressAPI_GetStatus_Response>;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf rpc: RealtimeStatus
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
realtimeStatus(input: ProgressAPI_RealtimeStatus_Request, options?: RpcOptions): ServerStreamingCall<ProgressAPI_RealtimeStatus_Request, ProgressAPI_RealtimeStatus_Response>;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
@@ -37,25 +37,23 @@ export interface IProgressClient {
|
|
|
37
37
|
* @generated from protobuf service MiLaboratories.Controller.Shared.Progress
|
|
38
38
|
*/
|
|
39
39
|
export class ProgressClient implements IProgressClient, ServiceInfo {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
* @generated from protobuf rpc: GetStatus(MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request) returns (MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response);
|
|
40
|
+
typeName = Progress.typeName;
|
|
41
|
+
methods = Progress.methods;
|
|
42
|
+
options = Progress.options;
|
|
43
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf rpc: GetStatus
|
|
48
47
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
* @generated from protobuf rpc: RealtimeStatus(MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request) returns (stream MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response);
|
|
48
|
+
getStatus(input: ProgressAPI_GetStatus_Request, options?: RpcOptions): UnaryCall<ProgressAPI_GetStatus_Request, ProgressAPI_GetStatus_Response> {
|
|
49
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
50
|
+
return stackIntercept<ProgressAPI_GetStatus_Request, ProgressAPI_GetStatus_Response>("unary", this._transport, method, opt, input);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf rpc: RealtimeStatus
|
|
56
54
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
realtimeStatus(input: ProgressAPI_RealtimeStatus_Request, options?: RpcOptions): ServerStreamingCall<ProgressAPI_RealtimeStatus_Request, ProgressAPI_RealtimeStatus_Response> {
|
|
56
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
57
|
+
return stackIntercept<ProgressAPI_RealtimeStatus_Request, ProgressAPI_RealtimeStatus_Response>("serverStreaming", this._transport, method, opt, input);
|
|
58
|
+
}
|
|
61
59
|
}
|