@milaboratories/pl-client 2.7.14 → 2.8.0
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/client.d.ts +4 -1
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/ll_client.d.ts +12 -2
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4341 -4316
- 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/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/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 +790 -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/protobuf/any.d.ts +52 -52
- package/dist/proto/google/protobuf/any.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/package.json +3 -3
- package/src/core/client.ts +31 -35
- package/src/core/ll_client.ts +48 -23
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +72 -75
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -22
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +276 -291
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +54 -59
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +470 -491
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +238 -263
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11058 -11752
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1115 -1156
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +126 -132
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +201 -204
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +541 -560
- package/src/proto/google/protobuf/any.ts +140 -150
- package/src/proto/google/protobuf/duration.ts +103 -108
- package/src/proto/google/protobuf/empty.ts +39 -42
- package/src/proto/google/protobuf/struct.ts +323 -337
- package/src/proto/google/protobuf/timestamp.ts +124 -132
- package/src/proto/google/protobuf/wrappers.ts +492 -537
|
@@ -1,127 +1,124 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "github.com/milaboratory/pl/plapi/plapiproto/base_types.proto" (package "MiLaboratories.PL.Base", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
|
-
import type { BinaryWriteOptions } from
|
|
5
|
-
import type { IBinaryWriter } from
|
|
6
|
-
import { WireType } from
|
|
7
|
-
import type { BinaryReadOptions } from
|
|
8
|
-
import type { IBinaryReader } from
|
|
9
|
-
import { UnknownFieldHandler } from
|
|
10
|
-
import type { PartialMessage } from
|
|
11
|
-
import { reflectionMergePartial } from
|
|
12
|
-
import { MessageType } from
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
/**
|
|
14
14
|
* @generated from protobuf message MiLaboratories.PL.Base.ResourceType
|
|
15
15
|
*/
|
|
16
16
|
export interface ResourceType {
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
18
|
* @generated from protobuf field: string name = 1;
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
22
|
* @generated from protobuf field: string version = 2;
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
version: string;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* @generated from protobuf message MiLaboratories.PL.Base.FieldRef
|
|
28
28
|
*/
|
|
29
29
|
export interface FieldRef {
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
31
|
* @generated from protobuf field: uint64 resource_id = 2;
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
resourceId: bigint;
|
|
34
|
+
/**
|
|
35
35
|
* @generated from protobuf field: string field_name = 3;
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
fieldName: string;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* @generated from protobuf enum MiLaboratories.PL.Base.FieldType
|
|
41
41
|
*/
|
|
42
42
|
export enum FieldType {
|
|
43
|
-
|
|
43
|
+
/**
|
|
44
44
|
* @generated from protobuf enum value: INVALID = 0;
|
|
45
45
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
INVALID = 0,
|
|
47
|
+
/**
|
|
48
48
|
* @generated from protobuf enum value: INPUT = 1;
|
|
49
49
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
INPUT = 1,
|
|
51
|
+
/**
|
|
52
52
|
* @generated from protobuf enum value: OUTPUT = 2;
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
OUTPUT = 2,
|
|
55
|
+
/**
|
|
56
56
|
* @generated from protobuf enum value: SERVICE = 6;
|
|
57
57
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
SERVICE = 6,
|
|
59
|
+
/**
|
|
60
60
|
* @generated from protobuf enum value: ONE_TIME_WRITABLE = 4;
|
|
61
61
|
*/
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
ONE_TIME_WRITABLE = 4,
|
|
63
|
+
/**
|
|
64
64
|
* @generated from protobuf enum value: DYNAMIC = 3;
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
DYNAMIC = 3,
|
|
67
|
+
/**
|
|
68
68
|
* @generated from protobuf enum value: MULTIPLE_TIMES_WRITABLE = 5;
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
MULTIPLE_TIMES_WRITABLE = 5
|
|
71
71
|
}
|
|
72
72
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
73
73
|
class ResourceType$Type extends MessageType<ResourceType> {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
74
|
+
constructor() {
|
|
75
|
+
super("MiLaboratories.PL.Base.ResourceType", [
|
|
76
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
77
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
78
|
+
]);
|
|
79
|
+
}
|
|
80
|
+
create(value?: PartialMessage<ResourceType>): ResourceType {
|
|
81
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
82
|
+
message.name = "";
|
|
83
|
+
message.version = "";
|
|
84
|
+
if (value !== undefined)
|
|
85
|
+
reflectionMergePartial<ResourceType>(this, message, value);
|
|
86
|
+
return message;
|
|
87
|
+
}
|
|
88
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceType): ResourceType {
|
|
89
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
90
|
+
while (reader.pos < end) {
|
|
91
|
+
let [fieldNo, wireType] = reader.tag();
|
|
92
|
+
switch (fieldNo) {
|
|
93
|
+
case /* string name */ 1:
|
|
94
|
+
message.name = reader.string();
|
|
95
|
+
break;
|
|
96
|
+
case /* string version */ 2:
|
|
97
|
+
message.version = reader.string();
|
|
98
|
+
break;
|
|
99
|
+
default:
|
|
100
|
+
let u = options.readUnknownField;
|
|
101
|
+
if (u === "throw")
|
|
102
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
103
|
+
let d = reader.skip(wireType);
|
|
104
|
+
if (u !== false)
|
|
105
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
}
|
|
110
|
+
internalBinaryWrite(message: ResourceType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
111
|
+
/* string name = 1; */
|
|
112
|
+
if (message.name !== "")
|
|
113
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
114
|
+
/* string version = 2; */
|
|
115
|
+
if (message.version !== "")
|
|
116
|
+
writer.tag(2, WireType.LengthDelimited).string(message.version);
|
|
117
|
+
let u = options.writeUnknownFields;
|
|
118
|
+
if (u !== false)
|
|
119
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
120
|
+
return writer;
|
|
109
121
|
}
|
|
110
|
-
return message;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
internalBinaryWrite(message: ResourceType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
114
|
-
/* string name = 1; */
|
|
115
|
-
if (message.name !== '')
|
|
116
|
-
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
117
|
-
/* string version = 2; */
|
|
118
|
-
if (message.version !== '')
|
|
119
|
-
writer.tag(2, WireType.LengthDelimited).string(message.version);
|
|
120
|
-
const u = options.writeUnknownFields;
|
|
121
|
-
if (u !== false)
|
|
122
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
123
|
-
return writer;
|
|
124
|
-
}
|
|
125
122
|
}
|
|
126
123
|
/**
|
|
127
124
|
* @generated MessageType for protobuf message MiLaboratories.PL.Base.ResourceType
|
|
@@ -129,57 +126,54 @@ class ResourceType$Type extends MessageType<ResourceType> {
|
|
|
129
126
|
export const ResourceType = new ResourceType$Type();
|
|
130
127
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
131
128
|
class FieldRef$Type extends MessageType<FieldRef> {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
129
|
+
constructor() {
|
|
130
|
+
super("MiLaboratories.PL.Base.FieldRef", [
|
|
131
|
+
{ no: 2, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
132
|
+
{ no: 3, name: "field_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
133
|
+
]);
|
|
134
|
+
}
|
|
135
|
+
create(value?: PartialMessage<FieldRef>): FieldRef {
|
|
136
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
137
|
+
message.resourceId = 0n;
|
|
138
|
+
message.fieldName = "";
|
|
139
|
+
if (value !== undefined)
|
|
140
|
+
reflectionMergePartial<FieldRef>(this, message, value);
|
|
141
|
+
return message;
|
|
142
|
+
}
|
|
143
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldRef): FieldRef {
|
|
144
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
let [fieldNo, wireType] = reader.tag();
|
|
147
|
+
switch (fieldNo) {
|
|
148
|
+
case /* uint64 resource_id */ 2:
|
|
149
|
+
message.resourceId = reader.uint64().toBigInt();
|
|
150
|
+
break;
|
|
151
|
+
case /* string field_name */ 3:
|
|
152
|
+
message.fieldName = reader.string();
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
let u = options.readUnknownField;
|
|
156
|
+
if (u === "throw")
|
|
157
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
158
|
+
let d = reader.skip(wireType);
|
|
159
|
+
if (u !== false)
|
|
160
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return message;
|
|
164
|
+
}
|
|
165
|
+
internalBinaryWrite(message: FieldRef, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
166
|
+
/* uint64 resource_id = 2; */
|
|
167
|
+
if (message.resourceId !== 0n)
|
|
168
|
+
writer.tag(2, WireType.Varint).uint64(message.resourceId);
|
|
169
|
+
/* string field_name = 3; */
|
|
170
|
+
if (message.fieldName !== "")
|
|
171
|
+
writer.tag(3, WireType.LengthDelimited).string(message.fieldName);
|
|
172
|
+
let u = options.writeUnknownFields;
|
|
173
|
+
if (u !== false)
|
|
174
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
175
|
+
return writer;
|
|
167
176
|
}
|
|
168
|
-
return message;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
internalBinaryWrite(message: FieldRef, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
172
|
-
/* uint64 resource_id = 2; */
|
|
173
|
-
if (message.resourceId !== 0n)
|
|
174
|
-
writer.tag(2, WireType.Varint).uint64(message.resourceId);
|
|
175
|
-
/* string field_name = 3; */
|
|
176
|
-
if (message.fieldName !== '')
|
|
177
|
-
writer.tag(3, WireType.LengthDelimited).string(message.fieldName);
|
|
178
|
-
const u = options.writeUnknownFields;
|
|
179
|
-
if (u !== false)
|
|
180
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
181
|
-
return writer;
|
|
182
|
-
}
|
|
183
177
|
}
|
|
184
178
|
/**
|
|
185
179
|
* @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef
|