@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,124 +1,127 @@
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/plapi/plapiproto/base_types.proto" (package "MiLaboratories.PL.Base", syntax proto3)
3
3
  // tslint:disable
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";
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
- name: string;
21
- /**
20
+ name: string;
21
+ /**
22
22
  * @generated from protobuf field: string version = 2;
23
23
  */
24
- version: string;
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
- resourceId: bigint;
34
- /**
33
+ resourceId: bigint;
34
+ /**
35
35
  * @generated from protobuf field: string field_name = 3;
36
36
  */
37
- fieldName: string;
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
- INVALID = 0,
47
- /**
46
+ INVALID = 0,
47
+ /**
48
48
  * @generated from protobuf enum value: INPUT = 1;
49
49
  */
50
- INPUT = 1,
51
- /**
50
+ INPUT = 1,
51
+ /**
52
52
  * @generated from protobuf enum value: OUTPUT = 2;
53
53
  */
54
- OUTPUT = 2,
55
- /**
54
+ OUTPUT = 2,
55
+ /**
56
56
  * @generated from protobuf enum value: SERVICE = 6;
57
57
  */
58
- SERVICE = 6,
59
- /**
58
+ SERVICE = 6,
59
+ /**
60
60
  * @generated from protobuf enum value: ONE_TIME_WRITABLE = 4;
61
61
  */
62
- ONE_TIME_WRITABLE = 4,
63
- /**
62
+ ONE_TIME_WRITABLE = 4,
63
+ /**
64
64
  * @generated from protobuf enum value: DYNAMIC = 3;
65
65
  */
66
- DYNAMIC = 3,
67
- /**
66
+ DYNAMIC = 3,
67
+ /**
68
68
  * @generated from protobuf enum value: MULTIPLE_TIMES_WRITABLE = 5;
69
69
  */
70
- MULTIPLE_TIMES_WRITABLE = 5
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
- 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;
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
+
81
+ create(value?: PartialMessage<ResourceType>): ResourceType {
82
+ const message = globalThis.Object.create((this.messagePrototype!));
83
+ message.name = '';
84
+ message.version = '';
85
+ if (value !== undefined)
86
+ reflectionMergePartial<ResourceType>(this, message, value);
87
+ return message;
88
+ }
89
+
90
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceType): ResourceType {
91
+ const message = target ?? this.create(), end = reader.pos + length;
92
+ while (reader.pos < end) {
93
+ const [fieldNo, wireType] = reader.tag();
94
+ switch (fieldNo) {
95
+ case /* string name */ 1:
96
+ message.name = reader.string();
97
+ break;
98
+ case /* string version */ 2:
99
+ message.version = reader.string();
100
+ break;
101
+ default:
102
+ const u = options.readUnknownField;
103
+ if (u === 'throw')
104
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
105
+ const d = reader.skip(wireType);
106
+ if (u !== false)
107
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
108
+ }
121
109
  }
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
+ }
122
125
  }
123
126
  /**
124
127
  * @generated MessageType for protobuf message MiLaboratories.PL.Base.ResourceType
@@ -126,54 +129,57 @@ class ResourceType$Type extends MessageType<ResourceType> {
126
129
  export const ResourceType = new ResourceType$Type();
127
130
  // @generated message type with reflection information, may provide speed optimized methods
128
131
  class FieldRef$Type extends MessageType<FieldRef> {
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;
132
+ constructor() {
133
+ super('MiLaboratories.PL.Base.FieldRef', [
134
+ { no: 2, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
135
+ { no: 3, name: 'field_name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
136
+ ]);
137
+ }
138
+
139
+ create(value?: PartialMessage<FieldRef>): FieldRef {
140
+ const message = globalThis.Object.create((this.messagePrototype!));
141
+ message.resourceId = 0n;
142
+ message.fieldName = '';
143
+ if (value !== undefined)
144
+ reflectionMergePartial<FieldRef>(this, message, value);
145
+ return message;
146
+ }
147
+
148
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldRef): FieldRef {
149
+ const message = target ?? this.create(), end = reader.pos + length;
150
+ while (reader.pos < end) {
151
+ const [fieldNo, wireType] = reader.tag();
152
+ switch (fieldNo) {
153
+ case /* uint64 resource_id */ 2:
154
+ message.resourceId = reader.uint64().toBigInt();
155
+ break;
156
+ case /* string field_name */ 3:
157
+ message.fieldName = reader.string();
158
+ break;
159
+ default:
160
+ const u = options.readUnknownField;
161
+ if (u === 'throw')
162
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
163
+ const d = reader.skip(wireType);
164
+ if (u !== false)
165
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
166
+ }
176
167
  }
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
+ }
177
183
  }
178
184
  /**
179
185
  * @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef