@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,4 +1,4 @@
|
|
|
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 "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
33
33
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
34
34
|
//
|
|
35
|
-
import type { BinaryWriteOptions } from
|
|
36
|
-
import type { IBinaryWriter } from
|
|
37
|
-
import { WireType } from
|
|
38
|
-
import type { BinaryReadOptions } from
|
|
39
|
-
import type { IBinaryReader } from
|
|
40
|
-
import { UnknownFieldHandler } from
|
|
41
|
-
import type { PartialMessage } from
|
|
42
|
-
import { reflectionMergePartial } from
|
|
43
|
-
import { typeofJsonValue } from
|
|
44
|
-
import type { JsonValue } from
|
|
45
|
-
import type { JsonReadOptions } from
|
|
46
|
-
import type { JsonWriteOptions } from
|
|
47
|
-
import { PbLong } from
|
|
48
|
-
import { MessageType } from
|
|
35
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
36
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
37
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
38
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
39
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
40
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
41
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
42
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
43
|
+
import { typeofJsonValue } from "@protobuf-ts/runtime";
|
|
44
|
+
import type { JsonValue } from "@protobuf-ts/runtime";
|
|
45
|
+
import type { JsonReadOptions } from "@protobuf-ts/runtime";
|
|
46
|
+
import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
47
|
+
import { PbLong } from "@protobuf-ts/runtime";
|
|
48
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
49
49
|
/**
|
|
50
50
|
* A Timestamp represents a point in time independent of any time zone or local
|
|
51
51
|
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
@@ -141,15 +141,15 @@ import { MessageType } from '@protobuf-ts/runtime';
|
|
|
141
141
|
* @generated from protobuf message google.protobuf.Timestamp
|
|
142
142
|
*/
|
|
143
143
|
export interface Timestamp {
|
|
144
|
-
|
|
144
|
+
/**
|
|
145
145
|
* Represents seconds of UTC time since Unix epoch
|
|
146
146
|
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
147
147
|
* 9999-12-31T23:59:59Z inclusive.
|
|
148
148
|
*
|
|
149
149
|
* @generated from protobuf field: int64 seconds = 1;
|
|
150
150
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
seconds: bigint;
|
|
152
|
+
/**
|
|
153
153
|
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
154
154
|
* second values with fractions must still have non-negative nanos values
|
|
155
155
|
* that count forward in time. Must be from 0 to 999,999,999
|
|
@@ -157,137 +157,129 @@ export interface Timestamp {
|
|
|
157
157
|
*
|
|
158
158
|
* @generated from protobuf field: int32 nanos = 2;
|
|
159
159
|
*/
|
|
160
|
-
|
|
160
|
+
nanos: number;
|
|
161
161
|
}
|
|
162
162
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
163
163
|
class Timestamp$Type extends MessageType<Timestamp> {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
/**
|
|
164
|
+
constructor() {
|
|
165
|
+
super("google.protobuf.Timestamp", [
|
|
166
|
+
{ no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
167
|
+
{ no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
168
|
+
]);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
172
171
|
* Creates a new `Timestamp` for the current time.
|
|
173
172
|
*/
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
/**
|
|
173
|
+
now(): Timestamp {
|
|
174
|
+
const msg = this.create();
|
|
175
|
+
const ms = Date.now();
|
|
176
|
+
msg.seconds = PbLong.from(Math.floor(ms / 1000)).toBigInt();
|
|
177
|
+
msg.nanos = (ms % 1000) * 1000000;
|
|
178
|
+
return msg;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
183
181
|
* Converts a `Timestamp` to a JavaScript Date.
|
|
184
182
|
*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
/**
|
|
183
|
+
toDate(message: Timestamp): Date {
|
|
184
|
+
return new Date(PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000));
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
190
187
|
* Converts a JavaScript Date to a `Timestamp`.
|
|
191
188
|
*/
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
/**
|
|
189
|
+
fromDate(date: Date): Timestamp {
|
|
190
|
+
const msg = this.create();
|
|
191
|
+
const ms = date.getTime();
|
|
192
|
+
msg.seconds = PbLong.from(Math.floor(ms / 1000)).toBigInt();
|
|
193
|
+
msg.nanos = ((ms % 1000) + (ms < 0 && ms % 1000 !== 0 ? 1000 : 0)) * 1000000;
|
|
194
|
+
return msg;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
201
197
|
* In JSON format, the `Timestamp` type is encoded as a string
|
|
202
198
|
* in the RFC 3339 format.
|
|
203
199
|
*/
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
200
|
+
internalJsonWrite(message: Timestamp, options: JsonWriteOptions): JsonValue {
|
|
201
|
+
let ms = PbLong.from(message.seconds).toNumber() * 1000;
|
|
202
|
+
if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
|
|
203
|
+
throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
204
|
+
if (message.nanos < 0)
|
|
205
|
+
throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
|
|
206
|
+
let z = "Z";
|
|
207
|
+
if (message.nanos > 0) {
|
|
208
|
+
let nanosStr = (message.nanos + 1000000000).toString().substring(1);
|
|
209
|
+
if (nanosStr.substring(3) === "000000")
|
|
210
|
+
z = "." + nanosStr.substring(0, 3) + "Z";
|
|
211
|
+
else if (nanosStr.substring(6) === "000")
|
|
212
|
+
z = "." + nanosStr.substring(0, 6) + "Z";
|
|
213
|
+
else
|
|
214
|
+
z = "." + nanosStr + "Z";
|
|
215
|
+
}
|
|
216
|
+
return new Date(ms).toISOString().replace(".000Z", z);
|
|
219
217
|
}
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
218
|
+
/**
|
|
224
219
|
* In JSON format, the `Timestamp` type is encoded as a string
|
|
225
220
|
* in the RFC 3339 format.
|
|
226
221
|
*/
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
222
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Timestamp): Timestamp {
|
|
223
|
+
if (typeof json !== "string")
|
|
224
|
+
throw new Error("Unable to parse Timestamp from JSON " + typeofJsonValue(json) + ".");
|
|
225
|
+
let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
|
|
226
|
+
if (!matches)
|
|
227
|
+
throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
|
|
228
|
+
let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
|
|
229
|
+
if (Number.isNaN(ms))
|
|
230
|
+
throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
|
|
231
|
+
if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
|
|
232
|
+
throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
233
|
+
if (!target)
|
|
234
|
+
target = this.create();
|
|
235
|
+
target.seconds = PbLong.from(ms / 1000).toBigInt();
|
|
236
|
+
target.nanos = 0;
|
|
237
|
+
if (matches[7])
|
|
238
|
+
target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000);
|
|
239
|
+
return target;
|
|
240
|
+
}
|
|
241
|
+
create(value?: PartialMessage<Timestamp>): Timestamp {
|
|
242
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
243
|
+
message.seconds = 0n;
|
|
244
|
+
message.nanos = 0;
|
|
245
|
+
if (value !== undefined)
|
|
246
|
+
reflectionMergePartial<Timestamp>(this, message, value);
|
|
247
|
+
return message;
|
|
248
|
+
}
|
|
249
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timestamp): Timestamp {
|
|
250
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
251
|
+
while (reader.pos < end) {
|
|
252
|
+
let [fieldNo, wireType] = reader.tag();
|
|
253
|
+
switch (fieldNo) {
|
|
254
|
+
case /* int64 seconds */ 1:
|
|
255
|
+
message.seconds = reader.int64().toBigInt();
|
|
256
|
+
break;
|
|
257
|
+
case /* int32 nanos */ 2:
|
|
258
|
+
message.nanos = reader.int32();
|
|
259
|
+
break;
|
|
260
|
+
default:
|
|
261
|
+
let u = options.readUnknownField;
|
|
262
|
+
if (u === "throw")
|
|
263
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
264
|
+
let d = reader.skip(wireType);
|
|
265
|
+
if (u !== false)
|
|
266
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return message;
|
|
270
|
+
}
|
|
271
|
+
internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
272
|
+
/* int64 seconds = 1; */
|
|
273
|
+
if (message.seconds !== 0n)
|
|
274
|
+
writer.tag(1, WireType.Varint).int64(message.seconds);
|
|
275
|
+
/* int32 nanos = 2; */
|
|
276
|
+
if (message.nanos !== 0)
|
|
277
|
+
writer.tag(2, WireType.Varint).int32(message.nanos);
|
|
278
|
+
let u = options.writeUnknownFields;
|
|
279
|
+
if (u !== false)
|
|
280
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
281
|
+
return writer;
|
|
275
282
|
}
|
|
276
|
-
return message;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
280
|
-
/* int64 seconds = 1; */
|
|
281
|
-
if (message.seconds !== 0n)
|
|
282
|
-
writer.tag(1, WireType.Varint).int64(message.seconds);
|
|
283
|
-
/* int32 nanos = 2; */
|
|
284
|
-
if (message.nanos !== 0)
|
|
285
|
-
writer.tag(2, WireType.Varint).int32(message.nanos);
|
|
286
|
-
const u = options.writeUnknownFields;
|
|
287
|
-
if (u !== false)
|
|
288
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
289
|
-
return writer;
|
|
290
|
-
}
|
|
291
283
|
}
|
|
292
284
|
/**
|
|
293
285
|
* @generated MessageType for protobuf message google.protobuf.Timestamp
|