@milaboratories/pl-client 3.2.4 → 3.3.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.cjs +24 -56
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +12 -8
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +26 -58
- package/dist/core/client.js.map +1 -1
- package/dist/core/errors.cjs +20 -0
- package/dist/core/errors.cjs.map +1 -1
- package/dist/core/errors.d.ts +6 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +19 -1
- package/dist/core/errors.js.map +1 -1
- package/dist/core/final.cjs +6 -5
- package/dist/core/final.cjs.map +1 -1
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/final.js +7 -6
- package/dist/core/final.js.map +1 -1
- package/dist/core/ll_client.cjs +18 -1
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +6 -2
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +19 -2
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/transaction.cjs +109 -75
- package/dist/core/transaction.cjs.map +1 -1
- package/dist/core/transaction.d.ts +30 -22
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/transaction.js +111 -76
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/type_conversion.cjs +14 -6
- package/dist/core/type_conversion.cjs.map +1 -1
- package/dist/core/type_conversion.js +14 -6
- package/dist/core/type_conversion.js.map +1 -1
- package/dist/core/types.cjs +77 -17
- package/dist/core/types.cjs.map +1 -1
- package/dist/core/types.d.ts +49 -26
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +66 -14
- package/dist/core/types.js.map +1 -1
- package/dist/core/user_resources.cjs +181 -0
- package/dist/core/user_resources.cjs.map +1 -0
- package/dist/core/user_resources.d.ts +75 -0
- package/dist/core/user_resources.d.ts.map +1 -0
- package/dist/core/user_resources.js +180 -0
- package/dist/core/user_resources.js.map +1 -0
- package/dist/helpers/poll.cjs +4 -4
- package/dist/helpers/poll.cjs.map +1 -1
- package/dist/helpers/poll.d.ts +3 -3
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/poll.js +5 -5
- package/dist/helpers/poll.js.map +1 -1
- package/dist/helpers/tx_helpers.cjs +1 -1
- package/dist/helpers/tx_helpers.cjs.map +1 -1
- package/dist/helpers/tx_helpers.d.ts +3 -3
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.js +2 -2
- package/dist/helpers/tx_helpers.js.map +1 -1
- package/dist/index.cjs +16 -5
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5 -4
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +724 -188
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +34 -9
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +37 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +34 -9
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +326 -136
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js +724 -188
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +18 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +11 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +18 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +57 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +26 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +57 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -1
- package/dist/proto-rest/plapi.d.ts +421 -207
- package/dist/proto-rest/plapi.d.ts.map +1 -1
- package/dist/test/test_config.cjs +6 -3
- package/dist/test/test_config.cjs.map +1 -1
- package/dist/test/test_config.d.ts.map +1 -1
- package/dist/test/test_config.js +7 -4
- package/dist/test/test_config.js.map +1 -1
- package/package.json +5 -5
- package/src/core/client.ts +58 -103
- package/src/core/errors.ts +23 -0
- package/src/core/final.ts +16 -6
- package/src/core/ll_client.ts +39 -3
- package/src/core/ll_transaction.test.ts +41 -6
- package/src/core/transaction.ts +176 -86
- package/src/core/type_conversion.ts +24 -9
- package/src/core/types.ts +147 -41
- package/src/core/user_resources.ts +332 -0
- package/src/helpers/poll.ts +15 -8
- package/src/helpers/state_helpers.ts +2 -2
- package/src/helpers/tx_helpers.ts +5 -5
- package/src/index.ts +1 -0
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +61 -14
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.ts +1045 -379
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +33 -18
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +75 -6
- package/src/proto-grpc/google/protobuf/descriptor.ts +5 -2
- package/src/proto-rest/plapi.ts +447 -225
- package/src/test/test_config.ts +8 -5
|
@@ -102,7 +102,6 @@ var FieldRef$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
102
102
|
no: 4,
|
|
103
103
|
name: "resource_signature",
|
|
104
104
|
kind: "scalar",
|
|
105
|
-
opt: true,
|
|
106
105
|
T: 12
|
|
107
106
|
},
|
|
108
107
|
{
|
|
@@ -116,6 +115,7 @@ var FieldRef$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
116
115
|
create(value) {
|
|
117
116
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
118
117
|
message.resourceId = 0n;
|
|
118
|
+
message.resourceSignature = new Uint8Array(0);
|
|
119
119
|
message.fieldName = "";
|
|
120
120
|
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
121
121
|
return message;
|
|
@@ -146,7 +146,7 @@ var FieldRef$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
146
146
|
internalBinaryWrite(message, writer, options) {
|
|
147
147
|
if (message.resourceId !== 0n) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).uint64(message.resourceId);
|
|
148
148
|
if (message.fieldName !== "") writer.tag(3, _protobuf_ts_runtime.WireType.LengthDelimited).string(message.fieldName);
|
|
149
|
-
if (message.resourceSignature
|
|
149
|
+
if (message.resourceSignature.length) writer.tag(4, _protobuf_ts_runtime.WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
150
150
|
let u = options.writeUnknownFields;
|
|
151
151
|
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
152
152
|
return writer;
|
|
@@ -156,7 +156,62 @@ var FieldRef$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
|
156
156
|
* @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef
|
|
157
157
|
*/
|
|
158
158
|
const FieldRef = new FieldRef$Type();
|
|
159
|
+
var Color$Type = class extends _protobuf_ts_runtime.MessageType {
|
|
160
|
+
constructor() {
|
|
161
|
+
super("MiLaboratories.PL.Base.Color", [{
|
|
162
|
+
no: 1,
|
|
163
|
+
name: "root",
|
|
164
|
+
kind: "scalar",
|
|
165
|
+
T: 4,
|
|
166
|
+
L: 0
|
|
167
|
+
}, {
|
|
168
|
+
no: 2,
|
|
169
|
+
name: "permissions",
|
|
170
|
+
kind: "scalar",
|
|
171
|
+
T: 13
|
|
172
|
+
}]);
|
|
173
|
+
}
|
|
174
|
+
create(value) {
|
|
175
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
176
|
+
message.root = 0n;
|
|
177
|
+
message.permissions = 0;
|
|
178
|
+
if (value !== void 0) (0, _protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
179
|
+
return message;
|
|
180
|
+
}
|
|
181
|
+
internalBinaryRead(reader, length, options, target) {
|
|
182
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
183
|
+
while (reader.pos < end) {
|
|
184
|
+
let [fieldNo, wireType] = reader.tag();
|
|
185
|
+
switch (fieldNo) {
|
|
186
|
+
case 1:
|
|
187
|
+
message.root = reader.uint64().toBigInt();
|
|
188
|
+
break;
|
|
189
|
+
case 2:
|
|
190
|
+
message.permissions = reader.uint32();
|
|
191
|
+
break;
|
|
192
|
+
default:
|
|
193
|
+
let u = options.readUnknownField;
|
|
194
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
195
|
+
let d = reader.skip(wireType);
|
|
196
|
+
if (u !== false) (u === true ? _protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return message;
|
|
200
|
+
}
|
|
201
|
+
internalBinaryWrite(message, writer, options) {
|
|
202
|
+
if (message.root !== 0n) writer.tag(1, _protobuf_ts_runtime.WireType.Varint).uint64(message.root);
|
|
203
|
+
if (message.permissions !== 0) writer.tag(2, _protobuf_ts_runtime.WireType.Varint).uint32(message.permissions);
|
|
204
|
+
let u = options.writeUnknownFields;
|
|
205
|
+
if (u !== false) (u == true ? _protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
206
|
+
return writer;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.Base.Color
|
|
211
|
+
*/
|
|
212
|
+
const Color = new Color$Type();
|
|
159
213
|
//#endregion
|
|
214
|
+
exports.Color = Color;
|
|
160
215
|
exports.FieldRef = FieldRef;
|
|
161
216
|
exports.FieldType = FieldType;
|
|
162
217
|
exports.ResourceType = ResourceType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base_types.cjs","names":["MessageType","UnknownFieldHandler","WireType"],"sources":["../../../../../../../src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/plapi/plapiproto/base_types.proto\" (package \"MiLaboratories.PL.Base\", syntax proto3)\n// tslint:disable\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.ResourceType\n */\nexport interface ResourceType {\n /**\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * @generated from protobuf field: string version = 2\n */\n version: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.FieldRef\n */\nexport interface FieldRef {\n /**\n * @generated from protobuf field: uint64 resource_id = 2\n */\n resourceId: bigint;\n /**\n * @generated from protobuf field: optional bytes resource_signature = 4\n */\n resourceSignature?: Uint8Array;\n /**\n * @generated from protobuf field: string field_name = 3\n */\n fieldName: string;\n}\n/**\n * @generated from protobuf enum MiLaboratories.PL.Base.FieldType\n */\nexport enum FieldType {\n /**\n * @generated from protobuf enum value: INVALID = 0;\n */\n INVALID = 0,\n /**\n * @generated from protobuf enum value: INPUT = 1;\n */\n INPUT = 1,\n /**\n * @generated from protobuf enum value: OUTPUT = 2;\n */\n OUTPUT = 2,\n /**\n * @generated from protobuf enum value: SERVICE = 6;\n */\n SERVICE = 6,\n /**\n * @generated from protobuf enum value: ONE_TIME_WRITABLE = 4;\n */\n ONE_TIME_WRITABLE = 4,\n /**\n * @generated from protobuf enum value: DYNAMIC = 3;\n */\n DYNAMIC = 3,\n /**\n * @generated from protobuf enum value: MULTIPLE_TIMES_WRITABLE = 5;\n */\n MULTIPLE_TIMES_WRITABLE = 5\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass ResourceType$Type extends MessageType<ResourceType> {\n constructor() {\n super(\"MiLaboratories.PL.Base.ResourceType\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"version\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<ResourceType>): ResourceType {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.version = \"\";\n if (value !== undefined)\n reflectionMergePartial<ResourceType>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceType): ResourceType {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* string version */ 2:\n message.version = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: ResourceType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* string version = 2; */\n if (message.version !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.version);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.ResourceType\n */\nexport const ResourceType = new ResourceType$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass FieldRef$Type extends MessageType<FieldRef> {\n constructor() {\n super(\"MiLaboratories.PL.Base.FieldRef\", [\n { no: 2, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 4, name: \"resource_signature\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"field_name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<FieldRef>): FieldRef {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.fieldName = \"\";\n if (value !== undefined)\n reflectionMergePartial<FieldRef>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldRef): FieldRef {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 2:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional bytes resource_signature */ 4:\n message.resourceSignature = reader.bytes();\n break;\n case /* string field_name */ 3:\n message.fieldName = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: FieldRef, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 2; */\n if (message.resourceId !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.resourceId);\n /* string field_name = 3; */\n if (message.fieldName !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.fieldName);\n /* optional bytes resource_signature = 4; */\n if (message.resourceSignature !== undefined)\n writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef\n */\nexport const FieldRef = new FieldRef$Type();\n"],"mappings":";;;;;;AA6CA,IAAY,YAAL,yBAAA,WAAA;;;;AAIH,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,WAAA,KAAA;;;;AAIA,WAAA,UAAA,YAAA,KAAA;;;;AAIA,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,uBAAA,KAAA;;;;AAIA,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,6BAAA,KAAA;;K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AC,MAAM,OAAOC,qBAAAA,oBAAoB,SAAS,GAAG,KAAK,UAAU,SAAS,SAAS,UAAU,EAAE;;;AAG3G,SAAO;;CAEX,oBAAoB,SAAmB,QAAuB,SAA4C;AAEtG,MAAI,QAAQ,eAAe,GACvB,QAAO,IAAI,GAAGC,qBAAAA,SAAS,OAAO,CAAC,OAAO,QAAQ,WAAW;AAE7D,MAAI,QAAQ,cAAc,GACtB,QAAO,IAAI,GAAGA,qBAAAA,SAAS,gBAAgB,CAAC,OAAO,QAAQ,UAAU;AAErE,MAAI,QAAQ,sBAAsB,KAAA,EAC9B,QAAO,IAAI,GAAGA,qBAAAA,SAAS,gBAAgB,CAAC,MAAM,QAAQ,kBAAkB;EAC5E,IAAI,IAAI,QAAQ;AAChB,MAAI,MAAM,MACN,EAAC,KAAK,OAAOD,qBAAAA,oBAAoB,UAAU,GAAG,KAAK,UAAU,SAAS,OAAO;AACjF,SAAO;;;;;;AAMf,MAAa,WAAW,IAAI,eAAe"}
|
|
1
|
+
{"version":3,"file":"base_types.cjs","names":["MessageType","UnknownFieldHandler","WireType"],"sources":["../../../../../../../src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/plapi/plapiproto/base_types.proto\" (package \"MiLaboratories.PL.Base\", syntax proto3)\n// tslint:disable\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.ResourceType\n */\nexport interface ResourceType {\n /**\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * @generated from protobuf field: string version = 2\n */\n version: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.FieldRef\n */\nexport interface FieldRef {\n /**\n * @generated from protobuf field: uint64 resource_id = 2\n */\n resourceId: bigint;\n /**\n * @generated from protobuf field: bytes resource_signature = 4\n */\n resourceSignature: Uint8Array;\n /**\n * @generated from protobuf field: string field_name = 3\n */\n fieldName: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.Color\n */\nexport interface Color {\n /**\n * @generated from protobuf field: uint64 root = 1\n */\n root: bigint;\n /**\n * @generated from protobuf field: uint32 permissions = 2\n */\n permissions: number;\n}\n/**\n * @generated from protobuf enum MiLaboratories.PL.Base.FieldType\n */\nexport enum FieldType {\n /**\n * @generated from protobuf enum value: INVALID = 0;\n */\n INVALID = 0,\n /**\n * @generated from protobuf enum value: INPUT = 1;\n */\n INPUT = 1,\n /**\n * @generated from protobuf enum value: OUTPUT = 2;\n */\n OUTPUT = 2,\n /**\n * @generated from protobuf enum value: SERVICE = 6;\n */\n SERVICE = 6,\n /**\n * @generated from protobuf enum value: ONE_TIME_WRITABLE = 4;\n */\n ONE_TIME_WRITABLE = 4,\n /**\n * @generated from protobuf enum value: DYNAMIC = 3;\n */\n DYNAMIC = 3,\n /**\n * @generated from protobuf enum value: MULTIPLE_TIMES_WRITABLE = 5;\n */\n MULTIPLE_TIMES_WRITABLE = 5\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass ResourceType$Type extends MessageType<ResourceType> {\n constructor() {\n super(\"MiLaboratories.PL.Base.ResourceType\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"version\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<ResourceType>): ResourceType {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.version = \"\";\n if (value !== undefined)\n reflectionMergePartial<ResourceType>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceType): ResourceType {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* string version */ 2:\n message.version = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: ResourceType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* string version = 2; */\n if (message.version !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.version);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.ResourceType\n */\nexport const ResourceType = new ResourceType$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass FieldRef$Type extends MessageType<FieldRef> {\n constructor() {\n super(\"MiLaboratories.PL.Base.FieldRef\", [\n { no: 2, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 4, name: \"resource_signature\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"field_name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<FieldRef>): FieldRef {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.resourceSignature = new Uint8Array(0);\n message.fieldName = \"\";\n if (value !== undefined)\n reflectionMergePartial<FieldRef>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldRef): FieldRef {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 2:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* bytes resource_signature */ 4:\n message.resourceSignature = reader.bytes();\n break;\n case /* string field_name */ 3:\n message.fieldName = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: FieldRef, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 2; */\n if (message.resourceId !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.resourceId);\n /* string field_name = 3; */\n if (message.fieldName !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.fieldName);\n /* bytes resource_signature = 4; */\n if (message.resourceSignature.length)\n writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef\n */\nexport const FieldRef = new FieldRef$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Color$Type extends MessageType<Color> {\n constructor() {\n super(\"MiLaboratories.PL.Base.Color\", [\n { no: 1, name: \"root\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"permissions\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<Color>): Color {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.root = 0n;\n message.permissions = 0;\n if (value !== undefined)\n reflectionMergePartial<Color>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Color): Color {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 root */ 1:\n message.root = reader.uint64().toBigInt();\n break;\n case /* uint32 permissions */ 2:\n message.permissions = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: Color, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 root = 1; */\n if (message.root !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.root);\n /* uint32 permissions = 2; */\n if (message.permissions !== 0)\n writer.tag(2, WireType.Varint).uint32(message.permissions);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.Color\n */\nexport const Color = new Color$Type();\n"],"mappings":";;;;;;AA0DA,IAAY,YAAL,yBAAA,WAAA;;;;AAIH,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,WAAA,KAAA;;;;AAIA,WAAA,UAAA,YAAA,KAAA;;;;AAIA,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,uBAAA,KAAA;;;;AAIA,WAAA,UAAA,aAAA,KAAA;;;;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,IAAI,CAAC,SAAS,YAAY,OAAO,KAAK;AACtC,WAAQ,SAAR;IACI,KAAuB;AACnB,aAAQ,OAAO,OAAO,QAAQ,CAAC,UAAU;AACzC;IACJ,KAA8B;AAC1B,aAAQ,cAAc,OAAO,QAAQ;AACrC;IACJ;KACI,IAAI,IAAI,QAAQ;AAChB,SAAI,MAAM,QACN,OAAM,IAAI,WAAW,MAAM,iBAAiB,QAAQ,cAAc,SAAS,QAAQ,KAAK,WAAW;KACvG,IAAI,IAAI,OAAO,KAAK,SAAS;AAC7B,SAAI,MAAM,MACN,EAAC,MAAM,OAAOC,qBAAAA,oBAAoB,SAAS,GAAG,KAAK,UAAU,SAAS,SAAS,UAAU,EAAE;;;AAG3G,SAAO;;CAEX,oBAAoB,SAAgB,QAAuB,SAA4C;AAEnG,MAAI,QAAQ,SAAS,GACjB,QAAO,IAAI,GAAGC,qBAAAA,SAAS,OAAO,CAAC,OAAO,QAAQ,KAAK;AAEvD,MAAI,QAAQ,gBAAgB,EACxB,QAAO,IAAI,GAAGA,qBAAAA,SAAS,OAAO,CAAC,OAAO,QAAQ,YAAY;EAC9D,IAAI,IAAI,QAAQ;AAChB,MAAI,MAAM,MACN,EAAC,KAAK,OAAOD,qBAAAA,oBAAoB,UAAU,GAAG,KAAK,UAAU,SAAS,OAAO;AACjF,SAAO;;;;;;AAMf,MAAa,QAAQ,IAAI,YAAY"}
|
|
@@ -23,14 +23,27 @@ interface FieldRef {
|
|
|
23
23
|
*/
|
|
24
24
|
resourceId: bigint;
|
|
25
25
|
/**
|
|
26
|
-
* @generated from protobuf field:
|
|
26
|
+
* @generated from protobuf field: bytes resource_signature = 4
|
|
27
27
|
*/
|
|
28
|
-
resourceSignature
|
|
28
|
+
resourceSignature: Uint8Array;
|
|
29
29
|
/**
|
|
30
30
|
* @generated from protobuf field: string field_name = 3
|
|
31
31
|
*/
|
|
32
32
|
fieldName: string;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf message MiLaboratories.PL.Base.Color
|
|
36
|
+
*/
|
|
37
|
+
interface Color {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: uint64 root = 1
|
|
40
|
+
*/
|
|
41
|
+
root: bigint;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: uint32 permissions = 2
|
|
44
|
+
*/
|
|
45
|
+
permissions: number;
|
|
46
|
+
}
|
|
34
47
|
/**
|
|
35
48
|
* @generated from protobuf enum MiLaboratories.PL.Base.FieldType
|
|
36
49
|
*/
|
|
@@ -84,6 +97,16 @@ declare class FieldRef$Type extends MessageType<FieldRef> {
|
|
|
84
97
|
* @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef
|
|
85
98
|
*/
|
|
86
99
|
declare const FieldRef: FieldRef$Type;
|
|
100
|
+
declare class Color$Type extends MessageType<Color> {
|
|
101
|
+
constructor();
|
|
102
|
+
create(value?: PartialMessage<Color>): Color;
|
|
103
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Color): Color;
|
|
104
|
+
internalBinaryWrite(message: Color, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.Base.Color
|
|
108
|
+
*/
|
|
109
|
+
declare const Color: Color$Type;
|
|
87
110
|
//#endregion
|
|
88
|
-
export { FieldRef, FieldType, ResourceType };
|
|
111
|
+
export { Color, FieldRef, FieldType, ResourceType };
|
|
89
112
|
//# sourceMappingURL=base_types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base_types.d.ts","names":[],"sources":["../../../../../../../src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts"],"mappings":";;;;;AA4BA;UAbiB,YAAA;;;;EAIb,IAAA;
|
|
1
|
+
{"version":3,"file":"base_types.d.ts","names":[],"sources":["../../../../../../../src/proto-grpc/github.com/milaboratory/pl/plapi/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f,UAAA,SAAmB,WAAA,CAAY,KAAA;;EAOjC,MAAA,CAAO,KAAA,GAAQ,cAAA,CAAe,KAAA,IAAS,KAAA;EAQvC,kBAAA,CAAmB,MAAA,EAAQ,aAAA,EAAe,MAAA,UAAgB,OAAA,EAAS,iBAAA,EAAmB,MAAA,GAAS,KAAA,GAAQ,KAAA;EAsBvG,mBAAA,CAAoB,OAAA,EAAS,KAAA,EAAO,MAAA,EAAQ,aAAA,EAAe,OAAA,EAAS,kBAAA,GAAqB,aAAA;AAAA;;;;cAgBhF,KAAA,EAAK,UAAA"}
|
|
@@ -101,7 +101,6 @@ var FieldRef$Type = class extends MessageType {
|
|
|
101
101
|
no: 4,
|
|
102
102
|
name: "resource_signature",
|
|
103
103
|
kind: "scalar",
|
|
104
|
-
opt: true,
|
|
105
104
|
T: 12
|
|
106
105
|
},
|
|
107
106
|
{
|
|
@@ -115,6 +114,7 @@ var FieldRef$Type = class extends MessageType {
|
|
|
115
114
|
create(value) {
|
|
116
115
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
117
116
|
message.resourceId = 0n;
|
|
117
|
+
message.resourceSignature = new Uint8Array(0);
|
|
118
118
|
message.fieldName = "";
|
|
119
119
|
if (value !== void 0) reflectionMergePartial(this, message, value);
|
|
120
120
|
return message;
|
|
@@ -145,7 +145,7 @@ var FieldRef$Type = class extends MessageType {
|
|
|
145
145
|
internalBinaryWrite(message, writer, options) {
|
|
146
146
|
if (message.resourceId !== 0n) writer.tag(2, WireType.Varint).uint64(message.resourceId);
|
|
147
147
|
if (message.fieldName !== "") writer.tag(3, WireType.LengthDelimited).string(message.fieldName);
|
|
148
|
-
if (message.resourceSignature
|
|
148
|
+
if (message.resourceSignature.length) writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
149
149
|
let u = options.writeUnknownFields;
|
|
150
150
|
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
151
151
|
return writer;
|
|
@@ -155,7 +155,61 @@ var FieldRef$Type = class extends MessageType {
|
|
|
155
155
|
* @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef
|
|
156
156
|
*/
|
|
157
157
|
const FieldRef = new FieldRef$Type();
|
|
158
|
+
var Color$Type = class extends MessageType {
|
|
159
|
+
constructor() {
|
|
160
|
+
super("MiLaboratories.PL.Base.Color", [{
|
|
161
|
+
no: 1,
|
|
162
|
+
name: "root",
|
|
163
|
+
kind: "scalar",
|
|
164
|
+
T: 4,
|
|
165
|
+
L: 0
|
|
166
|
+
}, {
|
|
167
|
+
no: 2,
|
|
168
|
+
name: "permissions",
|
|
169
|
+
kind: "scalar",
|
|
170
|
+
T: 13
|
|
171
|
+
}]);
|
|
172
|
+
}
|
|
173
|
+
create(value) {
|
|
174
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
175
|
+
message.root = 0n;
|
|
176
|
+
message.permissions = 0;
|
|
177
|
+
if (value !== void 0) reflectionMergePartial(this, message, value);
|
|
178
|
+
return message;
|
|
179
|
+
}
|
|
180
|
+
internalBinaryRead(reader, length, options, target) {
|
|
181
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
182
|
+
while (reader.pos < end) {
|
|
183
|
+
let [fieldNo, wireType] = reader.tag();
|
|
184
|
+
switch (fieldNo) {
|
|
185
|
+
case 1:
|
|
186
|
+
message.root = reader.uint64().toBigInt();
|
|
187
|
+
break;
|
|
188
|
+
case 2:
|
|
189
|
+
message.permissions = reader.uint32();
|
|
190
|
+
break;
|
|
191
|
+
default:
|
|
192
|
+
let u = options.readUnknownField;
|
|
193
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
194
|
+
let d = reader.skip(wireType);
|
|
195
|
+
if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return message;
|
|
199
|
+
}
|
|
200
|
+
internalBinaryWrite(message, writer, options) {
|
|
201
|
+
if (message.root !== 0n) writer.tag(1, WireType.Varint).uint64(message.root);
|
|
202
|
+
if (message.permissions !== 0) writer.tag(2, WireType.Varint).uint32(message.permissions);
|
|
203
|
+
let u = options.writeUnknownFields;
|
|
204
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
205
|
+
return writer;
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.Base.Color
|
|
210
|
+
*/
|
|
211
|
+
const Color = new Color$Type();
|
|
158
212
|
//#endregion
|
|
159
|
-
export { FieldRef, FieldType, ResourceType };
|
|
213
|
+
export { Color, FieldRef, FieldType, ResourceType };
|
|
160
214
|
|
|
161
215
|
//# sourceMappingURL=base_types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base_types.js","names":[],"sources":["../../../../../../../src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/plapi/plapiproto/base_types.proto\" (package \"MiLaboratories.PL.Base\", syntax proto3)\n// tslint:disable\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.ResourceType\n */\nexport interface ResourceType {\n /**\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * @generated from protobuf field: string version = 2\n */\n version: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.FieldRef\n */\nexport interface FieldRef {\n /**\n * @generated from protobuf field: uint64 resource_id = 2\n */\n resourceId: bigint;\n /**\n * @generated from protobuf field: optional bytes resource_signature = 4\n */\n resourceSignature?: Uint8Array;\n /**\n * @generated from protobuf field: string field_name = 3\n */\n fieldName: string;\n}\n/**\n * @generated from protobuf enum MiLaboratories.PL.Base.FieldType\n */\nexport enum FieldType {\n /**\n * @generated from protobuf enum value: INVALID = 0;\n */\n INVALID = 0,\n /**\n * @generated from protobuf enum value: INPUT = 1;\n */\n INPUT = 1,\n /**\n * @generated from protobuf enum value: OUTPUT = 2;\n */\n OUTPUT = 2,\n /**\n * @generated from protobuf enum value: SERVICE = 6;\n */\n SERVICE = 6,\n /**\n * @generated from protobuf enum value: ONE_TIME_WRITABLE = 4;\n */\n ONE_TIME_WRITABLE = 4,\n /**\n * @generated from protobuf enum value: DYNAMIC = 3;\n */\n DYNAMIC = 3,\n /**\n * @generated from protobuf enum value: MULTIPLE_TIMES_WRITABLE = 5;\n */\n MULTIPLE_TIMES_WRITABLE = 5\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass ResourceType$Type extends MessageType<ResourceType> {\n constructor() {\n super(\"MiLaboratories.PL.Base.ResourceType\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"version\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<ResourceType>): ResourceType {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.version = \"\";\n if (value !== undefined)\n reflectionMergePartial<ResourceType>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceType): ResourceType {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* string version */ 2:\n message.version = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: ResourceType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* string version = 2; */\n if (message.version !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.version);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.ResourceType\n */\nexport const ResourceType = new ResourceType$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass FieldRef$Type extends MessageType<FieldRef> {\n constructor() {\n super(\"MiLaboratories.PL.Base.FieldRef\", [\n { no: 2, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 4, name: \"resource_signature\", kind: \"scalar\", opt: true, T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"field_name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<FieldRef>): FieldRef {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.fieldName = \"\";\n if (value !== undefined)\n reflectionMergePartial<FieldRef>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldRef): FieldRef {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 2:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* optional bytes resource_signature */ 4:\n message.resourceSignature = reader.bytes();\n break;\n case /* string field_name */ 3:\n message.fieldName = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: FieldRef, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 2; */\n if (message.resourceId !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.resourceId);\n /* string field_name = 3; */\n if (message.fieldName !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.fieldName);\n /* optional bytes resource_signature = 4; */\n if (message.resourceSignature !== undefined)\n writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef\n */\nexport const FieldRef = new FieldRef$Type();\n"],"mappings":";;;;;AA6CA,IAAY,YAAL,yBAAA,WAAA;;;;AAIH,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,WAAA,KAAA;;;;AAIA,WAAA,UAAA,YAAA,KAAA;;;;AAIA,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,uBAAA,KAAA;;;;AAIA,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,6BAAA,KAAA;;KACH;AAED,IAAM,oBAAN,cAAgC,YAA0B;CACtD,cAAc;AACV,QAAM,uCAAuC,CACzC;GAAE,IAAI;GAAG,MAAM;GAAQ,MAAM;GAAU,GAAG;GAAyB,EACn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Q,cAAc,GACtB,QAAO,IAAI,GAAG,SAAS,gBAAgB,CAAC,OAAO,QAAQ,UAAU;AAErE,MAAI,QAAQ,sBAAsB,KAAA,EAC9B,QAAO,IAAI,GAAG,SAAS,gBAAgB,CAAC,MAAM,QAAQ,kBAAkB;EAC5E,IAAI,IAAI,QAAQ;AAChB,MAAI,MAAM,MACN,EAAC,KAAK,OAAO,oBAAoB,UAAU,GAAG,KAAK,UAAU,SAAS,OAAO;AACjF,SAAO;;;;;;AAMf,MAAa,WAAW,IAAI,eAAe"}
|
|
1
|
+
{"version":3,"file":"base_types.js","names":[],"sources":["../../../../../../../src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"github.com/milaboratory/pl/plapi/plapiproto/base_types.proto\" (package \"MiLaboratories.PL.Base\", syntax proto3)\n// tslint:disable\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.ResourceType\n */\nexport interface ResourceType {\n /**\n * @generated from protobuf field: string name = 1\n */\n name: string;\n /**\n * @generated from protobuf field: string version = 2\n */\n version: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.FieldRef\n */\nexport interface FieldRef {\n /**\n * @generated from protobuf field: uint64 resource_id = 2\n */\n resourceId: bigint;\n /**\n * @generated from protobuf field: bytes resource_signature = 4\n */\n resourceSignature: Uint8Array;\n /**\n * @generated from protobuf field: string field_name = 3\n */\n fieldName: string;\n}\n/**\n * @generated from protobuf message MiLaboratories.PL.Base.Color\n */\nexport interface Color {\n /**\n * @generated from protobuf field: uint64 root = 1\n */\n root: bigint;\n /**\n * @generated from protobuf field: uint32 permissions = 2\n */\n permissions: number;\n}\n/**\n * @generated from protobuf enum MiLaboratories.PL.Base.FieldType\n */\nexport enum FieldType {\n /**\n * @generated from protobuf enum value: INVALID = 0;\n */\n INVALID = 0,\n /**\n * @generated from protobuf enum value: INPUT = 1;\n */\n INPUT = 1,\n /**\n * @generated from protobuf enum value: OUTPUT = 2;\n */\n OUTPUT = 2,\n /**\n * @generated from protobuf enum value: SERVICE = 6;\n */\n SERVICE = 6,\n /**\n * @generated from protobuf enum value: ONE_TIME_WRITABLE = 4;\n */\n ONE_TIME_WRITABLE = 4,\n /**\n * @generated from protobuf enum value: DYNAMIC = 3;\n */\n DYNAMIC = 3,\n /**\n * @generated from protobuf enum value: MULTIPLE_TIMES_WRITABLE = 5;\n */\n MULTIPLE_TIMES_WRITABLE = 5\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass ResourceType$Type extends MessageType<ResourceType> {\n constructor() {\n super(\"MiLaboratories.PL.Base.ResourceType\", [\n { no: 1, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"version\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<ResourceType>): ResourceType {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.name = \"\";\n message.version = \"\";\n if (value !== undefined)\n reflectionMergePartial<ResourceType>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceType): ResourceType {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string name */ 1:\n message.name = reader.string();\n break;\n case /* string version */ 2:\n message.version = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: ResourceType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string name = 1; */\n if (message.name !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.name);\n /* string version = 2; */\n if (message.version !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.version);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.ResourceType\n */\nexport const ResourceType = new ResourceType$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass FieldRef$Type extends MessageType<FieldRef> {\n constructor() {\n super(\"MiLaboratories.PL.Base.FieldRef\", [\n { no: 2, name: \"resource_id\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 4, name: \"resource_signature\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"field_name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<FieldRef>): FieldRef {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.resourceId = 0n;\n message.resourceSignature = new Uint8Array(0);\n message.fieldName = \"\";\n if (value !== undefined)\n reflectionMergePartial<FieldRef>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldRef): FieldRef {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 resource_id */ 2:\n message.resourceId = reader.uint64().toBigInt();\n break;\n case /* bytes resource_signature */ 4:\n message.resourceSignature = reader.bytes();\n break;\n case /* string field_name */ 3:\n message.fieldName = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: FieldRef, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 resource_id = 2; */\n if (message.resourceId !== 0n)\n writer.tag(2, WireType.Varint).uint64(message.resourceId);\n /* string field_name = 3; */\n if (message.fieldName !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.fieldName);\n /* bytes resource_signature = 4; */\n if (message.resourceSignature.length)\n writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef\n */\nexport const FieldRef = new FieldRef$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Color$Type extends MessageType<Color> {\n constructor() {\n super(\"MiLaboratories.PL.Base.Color\", [\n { no: 1, name: \"root\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"permissions\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<Color>): Color {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.root = 0n;\n message.permissions = 0;\n if (value !== undefined)\n reflectionMergePartial<Color>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Color): Color {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 root */ 1:\n message.root = reader.uint64().toBigInt();\n break;\n case /* uint32 permissions */ 2:\n message.permissions = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: Color, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 root = 1; */\n if (message.root !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.root);\n /* uint32 permissions = 2; */\n if (message.permissions !== 0)\n writer.tag(2, WireType.Varint).uint32(message.permissions);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message MiLaboratories.PL.Base.Color\n */\nexport const Color = new Color$Type();\n"],"mappings":";;;;;AA0DA,IAAY,YAAL,yBAAA,WAAA;;;;AAIH,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,WAAA,KAAA;;;;AAIA,WAAA,UAAA,YAAA,KAAA;;;;AAIA,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,uBAAA,KAAA;;;;AAIA,WAAA,UAAA,aAAA,KAAA;;;;AAIA,WAAA,UAAA,6BAAA,KAAA;;KACH;AAED,IAAM,oBAAN,cAAgC,YAA0B;CACtD,cAAc;AACV,QAAM,uCAAuC,CACzC;GAAE,IAAI;GAAG,MAAM;GAAQ,MAAM;GAAU,GAAG;GAAyB,EACnE;GAAE,IAAI;GAAG,MAAM;GAAW,MAAM;GAAU,GAAG;GAAyB,CACzE,CAAC;;CAEN,OAAO,OAAoD;EACvD,MAAM,UAAU,WAAW,OAAO,OAAQ,KAAK,iBAA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