@sentio/runtime 2.59.0-rc.9 → 2.59.1-rc.1
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/lib/{chunk-J23VJQSB.js → chunk-4UYFH4YB.js} +4387 -4321
- package/lib/{chunk-J23VJQSB.js.map → chunk-4UYFH4YB.js.map} +1 -1
- package/lib/{chunk-3T4PWGQU.js → chunk-LCS6SRJY.js} +1036 -122
- package/lib/chunk-LCS6SRJY.js.map +1 -0
- package/lib/{chunk-GD7EL7GH.js → chunk-U5UZYRQ4.js} +2 -2
- package/lib/index.d.ts +193 -3
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +116 -94
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.d.ts +5 -6
- package/lib/service-worker.js +49 -47
- package/lib/service-worker.js.map +1 -1
- package/lib/test-processor.test.js.map +1 -1
- package/package.json +1 -1
- package/src/db-context.ts +3 -5
- package/src/full-service.ts +59 -13
- package/src/gen/processor/protos/processor.ts +1077 -159
- package/src/gen/service/common/protos/common.ts +17 -0
- package/src/metrics.ts +8 -4
- package/src/plugin.ts +24 -0
- package/src/processor-runner.ts +10 -3
- package/src/service-manager.ts +72 -106
- package/src/service-worker.ts +49 -60
- package/src/service.ts +89 -46
- package/src/utils.ts +20 -4
- package/lib/chunk-3T4PWGQU.js.map +0 -1
- /package/lib/{chunk-GD7EL7GH.js.map → chunk-U5UZYRQ4.js.map} +0 -0
@@ -912,12 +912,71 @@ export interface ProcessStreamRequest {
|
|
912
912
|
processId: number;
|
913
913
|
binding?: DataBinding | undefined;
|
914
914
|
dbResult?: DBResponse | undefined;
|
915
|
+
start?: boolean | undefined;
|
915
916
|
}
|
916
917
|
|
917
918
|
export interface ProcessStreamResponse {
|
918
919
|
processId: number;
|
919
920
|
dbRequest?: DBRequest | undefined;
|
920
921
|
result?: ProcessResult | undefined;
|
922
|
+
partitions?: ProcessStreamResponse_Partitions | undefined;
|
923
|
+
}
|
924
|
+
|
925
|
+
export interface ProcessStreamResponse_Partitions {
|
926
|
+
partitions: { [key: number]: ProcessStreamResponse_Partitions_Partition };
|
927
|
+
}
|
928
|
+
|
929
|
+
export interface ProcessStreamResponse_Partitions_Partition {
|
930
|
+
userValue?: string | undefined;
|
931
|
+
sysValue?: ProcessStreamResponse_Partitions_Partition_SysValue | undefined;
|
932
|
+
}
|
933
|
+
|
934
|
+
export enum ProcessStreamResponse_Partitions_Partition_SysValue {
|
935
|
+
BLOCK_NUMBER = 0,
|
936
|
+
SEQ_MODE = 1,
|
937
|
+
UNIQUE_VALUE = 2,
|
938
|
+
UNRECOGNIZED = -1,
|
939
|
+
}
|
940
|
+
|
941
|
+
export function processStreamResponse_Partitions_Partition_SysValueFromJSON(
|
942
|
+
object: any,
|
943
|
+
): ProcessStreamResponse_Partitions_Partition_SysValue {
|
944
|
+
switch (object) {
|
945
|
+
case 0:
|
946
|
+
case "BLOCK_NUMBER":
|
947
|
+
return ProcessStreamResponse_Partitions_Partition_SysValue.BLOCK_NUMBER;
|
948
|
+
case 1:
|
949
|
+
case "SEQ_MODE":
|
950
|
+
return ProcessStreamResponse_Partitions_Partition_SysValue.SEQ_MODE;
|
951
|
+
case 2:
|
952
|
+
case "UNIQUE_VALUE":
|
953
|
+
return ProcessStreamResponse_Partitions_Partition_SysValue.UNIQUE_VALUE;
|
954
|
+
case -1:
|
955
|
+
case "UNRECOGNIZED":
|
956
|
+
default:
|
957
|
+
return ProcessStreamResponse_Partitions_Partition_SysValue.UNRECOGNIZED;
|
958
|
+
}
|
959
|
+
}
|
960
|
+
|
961
|
+
export function processStreamResponse_Partitions_Partition_SysValueToJSON(
|
962
|
+
object: ProcessStreamResponse_Partitions_Partition_SysValue,
|
963
|
+
): string {
|
964
|
+
switch (object) {
|
965
|
+
case ProcessStreamResponse_Partitions_Partition_SysValue.BLOCK_NUMBER:
|
966
|
+
return "BLOCK_NUMBER";
|
967
|
+
case ProcessStreamResponse_Partitions_Partition_SysValue.SEQ_MODE:
|
968
|
+
return "SEQ_MODE";
|
969
|
+
case ProcessStreamResponse_Partitions_Partition_SysValue.UNIQUE_VALUE:
|
970
|
+
return "UNIQUE_VALUE";
|
971
|
+
case ProcessStreamResponse_Partitions_Partition_SysValue.UNRECOGNIZED:
|
972
|
+
default:
|
973
|
+
return "UNRECOGNIZED";
|
974
|
+
}
|
975
|
+
}
|
976
|
+
|
977
|
+
export interface ProcessStreamResponse_Partitions_PartitionsEntry {
|
978
|
+
key: number;
|
979
|
+
value: ProcessStreamResponse_Partitions_Partition | undefined;
|
921
980
|
}
|
922
981
|
|
923
982
|
export interface PreprocessStreamRequest {
|
@@ -957,10 +1016,64 @@ export interface EntityList {
|
|
957
1016
|
entities: Entity[];
|
958
1017
|
}
|
959
1018
|
|
1019
|
+
export interface EntityUpdateData {
|
1020
|
+
fields: { [key: string]: EntityUpdateData_FieldValue };
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
export enum EntityUpdateData_Operator {
|
1024
|
+
SET = 0,
|
1025
|
+
ADD = 1,
|
1026
|
+
MULTIPLY = 2,
|
1027
|
+
UNRECOGNIZED = -1,
|
1028
|
+
}
|
1029
|
+
|
1030
|
+
export function entityUpdateData_OperatorFromJSON(object: any): EntityUpdateData_Operator {
|
1031
|
+
switch (object) {
|
1032
|
+
case 0:
|
1033
|
+
case "SET":
|
1034
|
+
return EntityUpdateData_Operator.SET;
|
1035
|
+
case 1:
|
1036
|
+
case "ADD":
|
1037
|
+
return EntityUpdateData_Operator.ADD;
|
1038
|
+
case 2:
|
1039
|
+
case "MULTIPLY":
|
1040
|
+
return EntityUpdateData_Operator.MULTIPLY;
|
1041
|
+
case -1:
|
1042
|
+
case "UNRECOGNIZED":
|
1043
|
+
default:
|
1044
|
+
return EntityUpdateData_Operator.UNRECOGNIZED;
|
1045
|
+
}
|
1046
|
+
}
|
1047
|
+
|
1048
|
+
export function entityUpdateData_OperatorToJSON(object: EntityUpdateData_Operator): string {
|
1049
|
+
switch (object) {
|
1050
|
+
case EntityUpdateData_Operator.SET:
|
1051
|
+
return "SET";
|
1052
|
+
case EntityUpdateData_Operator.ADD:
|
1053
|
+
return "ADD";
|
1054
|
+
case EntityUpdateData_Operator.MULTIPLY:
|
1055
|
+
return "MULTIPLY";
|
1056
|
+
case EntityUpdateData_Operator.UNRECOGNIZED:
|
1057
|
+
default:
|
1058
|
+
return "UNRECOGNIZED";
|
1059
|
+
}
|
1060
|
+
}
|
1061
|
+
|
1062
|
+
export interface EntityUpdateData_FieldValue {
|
1063
|
+
value: RichValue | undefined;
|
1064
|
+
op: EntityUpdateData_Operator;
|
1065
|
+
}
|
1066
|
+
|
1067
|
+
export interface EntityUpdateData_FieldsEntry {
|
1068
|
+
key: string;
|
1069
|
+
value: EntityUpdateData_FieldValue | undefined;
|
1070
|
+
}
|
1071
|
+
|
960
1072
|
export interface DBRequest {
|
961
1073
|
opId: bigint;
|
962
1074
|
get?: DBRequest_DBGet | undefined;
|
963
1075
|
upsert?: DBRequest_DBUpsert | undefined;
|
1076
|
+
update?: DBRequest_DBUpdate | undefined;
|
964
1077
|
delete?: DBRequest_DBDelete | undefined;
|
965
1078
|
list?: DBRequest_DBList | undefined;
|
966
1079
|
}
|
@@ -1077,6 +1190,12 @@ export interface DBRequest_DBUpsert {
|
|
1077
1190
|
entityData: RichStruct[];
|
1078
1191
|
}
|
1079
1192
|
|
1193
|
+
export interface DBRequest_DBUpdate {
|
1194
|
+
entity: string[];
|
1195
|
+
id: string[];
|
1196
|
+
entityData: EntityUpdateData[];
|
1197
|
+
}
|
1198
|
+
|
1080
1199
|
export interface DBRequest_DBDelete {
|
1081
1200
|
entity: string[];
|
1082
1201
|
id: string[];
|
@@ -1281,6 +1400,7 @@ export interface ProcessResult {
|
|
1281
1400
|
events: EventTrackingResult[];
|
1282
1401
|
exports: ExportResult[];
|
1283
1402
|
states: StateResult | undefined;
|
1403
|
+
timeseriesResult: TimeseriesResult[];
|
1284
1404
|
}
|
1285
1405
|
|
1286
1406
|
export interface EthCallParam {
|
@@ -1369,6 +1489,52 @@ export interface EventTrackingResult {
|
|
1369
1489
|
noMetric: boolean;
|
1370
1490
|
}
|
1371
1491
|
|
1492
|
+
export interface TimeseriesResult {
|
1493
|
+
metadata: RecordMetaData | undefined;
|
1494
|
+
type: TimeseriesResult_TimeseriesType;
|
1495
|
+
data: RichStruct | undefined;
|
1496
|
+
runtimeInfo: RuntimeInfo | undefined;
|
1497
|
+
}
|
1498
|
+
|
1499
|
+
export enum TimeseriesResult_TimeseriesType {
|
1500
|
+
EVENT = 0,
|
1501
|
+
GAUGE = 1,
|
1502
|
+
COUNTER = 2,
|
1503
|
+
UNRECOGNIZED = -1,
|
1504
|
+
}
|
1505
|
+
|
1506
|
+
export function timeseriesResult_TimeseriesTypeFromJSON(object: any): TimeseriesResult_TimeseriesType {
|
1507
|
+
switch (object) {
|
1508
|
+
case 0:
|
1509
|
+
case "EVENT":
|
1510
|
+
return TimeseriesResult_TimeseriesType.EVENT;
|
1511
|
+
case 1:
|
1512
|
+
case "GAUGE":
|
1513
|
+
return TimeseriesResult_TimeseriesType.GAUGE;
|
1514
|
+
case 2:
|
1515
|
+
case "COUNTER":
|
1516
|
+
return TimeseriesResult_TimeseriesType.COUNTER;
|
1517
|
+
case -1:
|
1518
|
+
case "UNRECOGNIZED":
|
1519
|
+
default:
|
1520
|
+
return TimeseriesResult_TimeseriesType.UNRECOGNIZED;
|
1521
|
+
}
|
1522
|
+
}
|
1523
|
+
|
1524
|
+
export function timeseriesResult_TimeseriesTypeToJSON(object: TimeseriesResult_TimeseriesType): string {
|
1525
|
+
switch (object) {
|
1526
|
+
case TimeseriesResult_TimeseriesType.EVENT:
|
1527
|
+
return "EVENT";
|
1528
|
+
case TimeseriesResult_TimeseriesType.GAUGE:
|
1529
|
+
return "GAUGE";
|
1530
|
+
case TimeseriesResult_TimeseriesType.COUNTER:
|
1531
|
+
return "COUNTER";
|
1532
|
+
case TimeseriesResult_TimeseriesType.UNRECOGNIZED:
|
1533
|
+
default:
|
1534
|
+
return "UNRECOGNIZED";
|
1535
|
+
}
|
1536
|
+
}
|
1537
|
+
|
1372
1538
|
export interface ExportResult {
|
1373
1539
|
metadata: RecordMetaData | undefined;
|
1374
1540
|
payload: string;
|
@@ -7892,7 +8058,7 @@ export const ProcessBindingResponse = {
|
|
7892
8058
|
};
|
7893
8059
|
|
7894
8060
|
function createBaseProcessStreamRequest(): ProcessStreamRequest {
|
7895
|
-
return { processId: 0, binding: undefined, dbResult: undefined };
|
8061
|
+
return { processId: 0, binding: undefined, dbResult: undefined, start: undefined };
|
7896
8062
|
}
|
7897
8063
|
|
7898
8064
|
export const ProcessStreamRequest = {
|
@@ -7906,6 +8072,9 @@ export const ProcessStreamRequest = {
|
|
7906
8072
|
if (message.dbResult !== undefined) {
|
7907
8073
|
DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
|
7908
8074
|
}
|
8075
|
+
if (message.start !== undefined) {
|
8076
|
+
writer.uint32(32).bool(message.start);
|
8077
|
+
}
|
7909
8078
|
return writer;
|
7910
8079
|
},
|
7911
8080
|
|
@@ -7937,6 +8106,13 @@ export const ProcessStreamRequest = {
|
|
7937
8106
|
|
7938
8107
|
message.dbResult = DBResponse.decode(reader, reader.uint32());
|
7939
8108
|
continue;
|
8109
|
+
case 4:
|
8110
|
+
if (tag !== 32) {
|
8111
|
+
break;
|
8112
|
+
}
|
8113
|
+
|
8114
|
+
message.start = reader.bool();
|
8115
|
+
continue;
|
7940
8116
|
}
|
7941
8117
|
if ((tag & 7) === 4 || tag === 0) {
|
7942
8118
|
break;
|
@@ -7951,6 +8127,7 @@ export const ProcessStreamRequest = {
|
|
7951
8127
|
processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
|
7952
8128
|
binding: isSet(object.binding) ? DataBinding.fromJSON(object.binding) : undefined,
|
7953
8129
|
dbResult: isSet(object.dbResult) ? DBResponse.fromJSON(object.dbResult) : undefined,
|
8130
|
+
start: isSet(object.start) ? globalThis.Boolean(object.start) : undefined,
|
7954
8131
|
};
|
7955
8132
|
},
|
7956
8133
|
|
@@ -7965,6 +8142,9 @@ export const ProcessStreamRequest = {
|
|
7965
8142
|
if (message.dbResult !== undefined) {
|
7966
8143
|
obj.dbResult = DBResponse.toJSON(message.dbResult);
|
7967
8144
|
}
|
8145
|
+
if (message.start !== undefined) {
|
8146
|
+
obj.start = message.start;
|
8147
|
+
}
|
7968
8148
|
return obj;
|
7969
8149
|
},
|
7970
8150
|
|
@@ -7980,12 +8160,13 @@ export const ProcessStreamRequest = {
|
|
7980
8160
|
message.dbResult = (object.dbResult !== undefined && object.dbResult !== null)
|
7981
8161
|
? DBResponse.fromPartial(object.dbResult)
|
7982
8162
|
: undefined;
|
8163
|
+
message.start = object.start ?? undefined;
|
7983
8164
|
return message;
|
7984
8165
|
},
|
7985
8166
|
};
|
7986
8167
|
|
7987
8168
|
function createBaseProcessStreamResponse(): ProcessStreamResponse {
|
7988
|
-
return { processId: 0, dbRequest: undefined, result: undefined };
|
8169
|
+
return { processId: 0, dbRequest: undefined, result: undefined, partitions: undefined };
|
7989
8170
|
}
|
7990
8171
|
|
7991
8172
|
export const ProcessStreamResponse = {
|
@@ -7999,6 +8180,9 @@ export const ProcessStreamResponse = {
|
|
7999
8180
|
if (message.result !== undefined) {
|
8000
8181
|
ProcessResult.encode(message.result, writer.uint32(26).fork()).ldelim();
|
8001
8182
|
}
|
8183
|
+
if (message.partitions !== undefined) {
|
8184
|
+
ProcessStreamResponse_Partitions.encode(message.partitions, writer.uint32(34).fork()).ldelim();
|
8185
|
+
}
|
8002
8186
|
return writer;
|
8003
8187
|
},
|
8004
8188
|
|
@@ -8030,6 +8214,13 @@ export const ProcessStreamResponse = {
|
|
8030
8214
|
|
8031
8215
|
message.result = ProcessResult.decode(reader, reader.uint32());
|
8032
8216
|
continue;
|
8217
|
+
case 4:
|
8218
|
+
if (tag !== 34) {
|
8219
|
+
break;
|
8220
|
+
}
|
8221
|
+
|
8222
|
+
message.partitions = ProcessStreamResponse_Partitions.decode(reader, reader.uint32());
|
8223
|
+
continue;
|
8033
8224
|
}
|
8034
8225
|
if ((tag & 7) === 4 || tag === 0) {
|
8035
8226
|
break;
|
@@ -8044,6 +8235,7 @@ export const ProcessStreamResponse = {
|
|
8044
8235
|
processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
|
8045
8236
|
dbRequest: isSet(object.dbRequest) ? DBRequest.fromJSON(object.dbRequest) : undefined,
|
8046
8237
|
result: isSet(object.result) ? ProcessResult.fromJSON(object.result) : undefined,
|
8238
|
+
partitions: isSet(object.partitions) ? ProcessStreamResponse_Partitions.fromJSON(object.partitions) : undefined,
|
8047
8239
|
};
|
8048
8240
|
},
|
8049
8241
|
|
@@ -8058,6 +8250,9 @@ export const ProcessStreamResponse = {
|
|
8058
8250
|
if (message.result !== undefined) {
|
8059
8251
|
obj.result = ProcessResult.toJSON(message.result);
|
8060
8252
|
}
|
8253
|
+
if (message.partitions !== undefined) {
|
8254
|
+
obj.partitions = ProcessStreamResponse_Partitions.toJSON(message.partitions);
|
8255
|
+
}
|
8061
8256
|
return obj;
|
8062
8257
|
},
|
8063
8258
|
|
@@ -8073,55 +8268,42 @@ export const ProcessStreamResponse = {
|
|
8073
8268
|
message.result = (object.result !== undefined && object.result !== null)
|
8074
8269
|
? ProcessResult.fromPartial(object.result)
|
8075
8270
|
: undefined;
|
8271
|
+
message.partitions = (object.partitions !== undefined && object.partitions !== null)
|
8272
|
+
? ProcessStreamResponse_Partitions.fromPartial(object.partitions)
|
8273
|
+
: undefined;
|
8076
8274
|
return message;
|
8077
8275
|
},
|
8078
8276
|
};
|
8079
8277
|
|
8080
|
-
function
|
8081
|
-
return {
|
8278
|
+
function createBaseProcessStreamResponse_Partitions(): ProcessStreamResponse_Partitions {
|
8279
|
+
return { partitions: {} };
|
8082
8280
|
}
|
8083
8281
|
|
8084
|
-
export const
|
8085
|
-
encode(message:
|
8086
|
-
|
8087
|
-
writer.uint32(
|
8088
|
-
|
8089
|
-
|
8090
|
-
PreprocessStreamRequest_DataBindings.encode(message.bindings, writer.uint32(18).fork()).ldelim();
|
8091
|
-
}
|
8092
|
-
if (message.dbResult !== undefined) {
|
8093
|
-
DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
|
8094
|
-
}
|
8282
|
+
export const ProcessStreamResponse_Partitions = {
|
8283
|
+
encode(message: ProcessStreamResponse_Partitions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8284
|
+
Object.entries(message.partitions).forEach(([key, value]) => {
|
8285
|
+
ProcessStreamResponse_Partitions_PartitionsEntry.encode({ key: key as any, value }, writer.uint32(10).fork())
|
8286
|
+
.ldelim();
|
8287
|
+
});
|
8095
8288
|
return writer;
|
8096
8289
|
},
|
8097
8290
|
|
8098
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
8291
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponse_Partitions {
|
8099
8292
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8100
8293
|
let end = length === undefined ? reader.len : reader.pos + length;
|
8101
|
-
const message =
|
8294
|
+
const message = createBaseProcessStreamResponse_Partitions();
|
8102
8295
|
while (reader.pos < end) {
|
8103
8296
|
const tag = reader.uint32();
|
8104
8297
|
switch (tag >>> 3) {
|
8105
8298
|
case 1:
|
8106
|
-
if (tag !==
|
8107
|
-
break;
|
8108
|
-
}
|
8109
|
-
|
8110
|
-
message.processId = reader.int32();
|
8111
|
-
continue;
|
8112
|
-
case 2:
|
8113
|
-
if (tag !== 18) {
|
8299
|
+
if (tag !== 10) {
|
8114
8300
|
break;
|
8115
8301
|
}
|
8116
8302
|
|
8117
|
-
|
8118
|
-
|
8119
|
-
|
8120
|
-
if (tag !== 26) {
|
8121
|
-
break;
|
8303
|
+
const entry1 = ProcessStreamResponse_Partitions_PartitionsEntry.decode(reader, reader.uint32());
|
8304
|
+
if (entry1.value !== undefined) {
|
8305
|
+
message.partitions[entry1.key] = entry1.value;
|
8122
8306
|
}
|
8123
|
-
|
8124
|
-
message.dbResult = DBResponse.decode(reader, reader.uint32());
|
8125
8307
|
continue;
|
8126
8308
|
}
|
8127
8309
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -8132,60 +8314,70 @@ export const PreprocessStreamRequest = {
|
|
8132
8314
|
return message;
|
8133
8315
|
},
|
8134
8316
|
|
8135
|
-
fromJSON(object: any):
|
8317
|
+
fromJSON(object: any): ProcessStreamResponse_Partitions {
|
8136
8318
|
return {
|
8137
|
-
|
8138
|
-
|
8139
|
-
|
8319
|
+
partitions: isObject(object.partitions)
|
8320
|
+
? Object.entries(object.partitions).reduce<{ [key: number]: ProcessStreamResponse_Partitions_Partition }>(
|
8321
|
+
(acc, [key, value]) => {
|
8322
|
+
acc[globalThis.Number(key)] = ProcessStreamResponse_Partitions_Partition.fromJSON(value);
|
8323
|
+
return acc;
|
8324
|
+
},
|
8325
|
+
{},
|
8326
|
+
)
|
8327
|
+
: {},
|
8140
8328
|
};
|
8141
8329
|
},
|
8142
8330
|
|
8143
|
-
toJSON(message:
|
8331
|
+
toJSON(message: ProcessStreamResponse_Partitions): unknown {
|
8144
8332
|
const obj: any = {};
|
8145
|
-
if (message.
|
8146
|
-
|
8147
|
-
|
8148
|
-
|
8149
|
-
|
8150
|
-
|
8151
|
-
|
8152
|
-
|
8333
|
+
if (message.partitions) {
|
8334
|
+
const entries = Object.entries(message.partitions);
|
8335
|
+
if (entries.length > 0) {
|
8336
|
+
obj.partitions = {};
|
8337
|
+
entries.forEach(([k, v]) => {
|
8338
|
+
obj.partitions[k] = ProcessStreamResponse_Partitions_Partition.toJSON(v);
|
8339
|
+
});
|
8340
|
+
}
|
8153
8341
|
}
|
8154
8342
|
return obj;
|
8155
8343
|
},
|
8156
8344
|
|
8157
|
-
create(base?: DeepPartial<
|
8158
|
-
return
|
8345
|
+
create(base?: DeepPartial<ProcessStreamResponse_Partitions>): ProcessStreamResponse_Partitions {
|
8346
|
+
return ProcessStreamResponse_Partitions.fromPartial(base ?? {});
|
8159
8347
|
},
|
8160
|
-
fromPartial(object: DeepPartial<
|
8161
|
-
const message =
|
8162
|
-
message.
|
8163
|
-
|
8164
|
-
|
8165
|
-
|
8166
|
-
|
8167
|
-
|
8168
|
-
|
8348
|
+
fromPartial(object: DeepPartial<ProcessStreamResponse_Partitions>): ProcessStreamResponse_Partitions {
|
8349
|
+
const message = createBaseProcessStreamResponse_Partitions();
|
8350
|
+
message.partitions = Object.entries(object.partitions ?? {}).reduce<
|
8351
|
+
{ [key: number]: ProcessStreamResponse_Partitions_Partition }
|
8352
|
+
>((acc, [key, value]) => {
|
8353
|
+
if (value !== undefined) {
|
8354
|
+
acc[globalThis.Number(key)] = ProcessStreamResponse_Partitions_Partition.fromPartial(value);
|
8355
|
+
}
|
8356
|
+
return acc;
|
8357
|
+
}, {});
|
8169
8358
|
return message;
|
8170
8359
|
},
|
8171
8360
|
};
|
8172
8361
|
|
8173
|
-
function
|
8174
|
-
return {
|
8362
|
+
function createBaseProcessStreamResponse_Partitions_Partition(): ProcessStreamResponse_Partitions_Partition {
|
8363
|
+
return { userValue: undefined, sysValue: undefined };
|
8175
8364
|
}
|
8176
8365
|
|
8177
|
-
export const
|
8178
|
-
encode(message:
|
8179
|
-
|
8180
|
-
|
8366
|
+
export const ProcessStreamResponse_Partitions_Partition = {
|
8367
|
+
encode(message: ProcessStreamResponse_Partitions_Partition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8368
|
+
if (message.userValue !== undefined) {
|
8369
|
+
writer.uint32(10).string(message.userValue);
|
8370
|
+
}
|
8371
|
+
if (message.sysValue !== undefined) {
|
8372
|
+
writer.uint32(16).int32(message.sysValue);
|
8181
8373
|
}
|
8182
8374
|
return writer;
|
8183
8375
|
},
|
8184
8376
|
|
8185
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
8377
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponse_Partitions_Partition {
|
8186
8378
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8187
8379
|
let end = length === undefined ? reader.len : reader.pos + length;
|
8188
|
-
const message =
|
8380
|
+
const message = createBaseProcessStreamResponse_Partitions_Partition();
|
8189
8381
|
while (reader.pos < end) {
|
8190
8382
|
const tag = reader.uint32();
|
8191
8383
|
switch (tag >>> 3) {
|
@@ -8194,7 +8386,14 @@ export const PreprocessStreamRequest_DataBindings = {
|
|
8194
8386
|
break;
|
8195
8387
|
}
|
8196
8388
|
|
8197
|
-
message.
|
8389
|
+
message.userValue = reader.string();
|
8390
|
+
continue;
|
8391
|
+
case 2:
|
8392
|
+
if (tag !== 16) {
|
8393
|
+
break;
|
8394
|
+
}
|
8395
|
+
|
8396
|
+
message.sysValue = reader.int32() as any;
|
8198
8397
|
continue;
|
8199
8398
|
}
|
8200
8399
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -8205,51 +8404,61 @@ export const PreprocessStreamRequest_DataBindings = {
|
|
8205
8404
|
return message;
|
8206
8405
|
},
|
8207
8406
|
|
8208
|
-
fromJSON(object: any):
|
8407
|
+
fromJSON(object: any): ProcessStreamResponse_Partitions_Partition {
|
8209
8408
|
return {
|
8210
|
-
|
8211
|
-
|
8212
|
-
|
8409
|
+
userValue: isSet(object.userValue) ? globalThis.String(object.userValue) : undefined,
|
8410
|
+
sysValue: isSet(object.sysValue)
|
8411
|
+
? processStreamResponse_Partitions_Partition_SysValueFromJSON(object.sysValue)
|
8412
|
+
: undefined,
|
8213
8413
|
};
|
8214
8414
|
},
|
8215
8415
|
|
8216
|
-
toJSON(message:
|
8416
|
+
toJSON(message: ProcessStreamResponse_Partitions_Partition): unknown {
|
8217
8417
|
const obj: any = {};
|
8218
|
-
if (message.
|
8219
|
-
obj.
|
8418
|
+
if (message.userValue !== undefined) {
|
8419
|
+
obj.userValue = message.userValue;
|
8420
|
+
}
|
8421
|
+
if (message.sysValue !== undefined) {
|
8422
|
+
obj.sysValue = processStreamResponse_Partitions_Partition_SysValueToJSON(message.sysValue);
|
8220
8423
|
}
|
8221
8424
|
return obj;
|
8222
8425
|
},
|
8223
8426
|
|
8224
|
-
create(base?: DeepPartial<
|
8225
|
-
return
|
8427
|
+
create(base?: DeepPartial<ProcessStreamResponse_Partitions_Partition>): ProcessStreamResponse_Partitions_Partition {
|
8428
|
+
return ProcessStreamResponse_Partitions_Partition.fromPartial(base ?? {});
|
8226
8429
|
},
|
8227
|
-
fromPartial(
|
8228
|
-
|
8229
|
-
|
8430
|
+
fromPartial(
|
8431
|
+
object: DeepPartial<ProcessStreamResponse_Partitions_Partition>,
|
8432
|
+
): ProcessStreamResponse_Partitions_Partition {
|
8433
|
+
const message = createBaseProcessStreamResponse_Partitions_Partition();
|
8434
|
+
message.userValue = object.userValue ?? undefined;
|
8435
|
+
message.sysValue = object.sysValue ?? undefined;
|
8230
8436
|
return message;
|
8231
8437
|
},
|
8232
8438
|
};
|
8233
8439
|
|
8234
|
-
function
|
8235
|
-
return {
|
8440
|
+
function createBaseProcessStreamResponse_Partitions_PartitionsEntry(): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8441
|
+
return { key: 0, value: undefined };
|
8236
8442
|
}
|
8237
8443
|
|
8238
|
-
export const
|
8239
|
-
encode(
|
8240
|
-
|
8241
|
-
|
8444
|
+
export const ProcessStreamResponse_Partitions_PartitionsEntry = {
|
8445
|
+
encode(
|
8446
|
+
message: ProcessStreamResponse_Partitions_PartitionsEntry,
|
8447
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
8448
|
+
): _m0.Writer {
|
8449
|
+
if (message.key !== 0) {
|
8450
|
+
writer.uint32(8).int32(message.key);
|
8242
8451
|
}
|
8243
|
-
if (message.
|
8244
|
-
|
8452
|
+
if (message.value !== undefined) {
|
8453
|
+
ProcessStreamResponse_Partitions_Partition.encode(message.value, writer.uint32(18).fork()).ldelim();
|
8245
8454
|
}
|
8246
8455
|
return writer;
|
8247
8456
|
},
|
8248
8457
|
|
8249
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
8458
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8250
8459
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8251
8460
|
let end = length === undefined ? reader.len : reader.pos + length;
|
8252
|
-
const message =
|
8461
|
+
const message = createBaseProcessStreamResponse_Partitions_PartitionsEntry();
|
8253
8462
|
while (reader.pos < end) {
|
8254
8463
|
const tag = reader.uint32();
|
8255
8464
|
switch (tag >>> 3) {
|
@@ -8258,14 +8467,14 @@ export const PreprocessStreamResponse = {
|
|
8258
8467
|
break;
|
8259
8468
|
}
|
8260
8469
|
|
8261
|
-
message.
|
8470
|
+
message.key = reader.int32();
|
8262
8471
|
continue;
|
8263
8472
|
case 2:
|
8264
8473
|
if (tag !== 18) {
|
8265
8474
|
break;
|
8266
8475
|
}
|
8267
8476
|
|
8268
|
-
message.
|
8477
|
+
message.value = ProcessStreamResponse_Partitions_Partition.decode(reader, reader.uint32());
|
8269
8478
|
continue;
|
8270
8479
|
}
|
8271
8480
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -8276,59 +8485,293 @@ export const PreprocessStreamResponse = {
|
|
8276
8485
|
return message;
|
8277
8486
|
},
|
8278
8487
|
|
8279
|
-
fromJSON(object: any):
|
8488
|
+
fromJSON(object: any): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8280
8489
|
return {
|
8281
|
-
|
8282
|
-
|
8490
|
+
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
8491
|
+
value: isSet(object.value) ? ProcessStreamResponse_Partitions_Partition.fromJSON(object.value) : undefined,
|
8283
8492
|
};
|
8284
8493
|
},
|
8285
8494
|
|
8286
|
-
toJSON(message:
|
8495
|
+
toJSON(message: ProcessStreamResponse_Partitions_PartitionsEntry): unknown {
|
8287
8496
|
const obj: any = {};
|
8288
|
-
if (message.
|
8289
|
-
obj.
|
8497
|
+
if (message.key !== 0) {
|
8498
|
+
obj.key = Math.round(message.key);
|
8290
8499
|
}
|
8291
|
-
if (message.
|
8292
|
-
obj.
|
8500
|
+
if (message.value !== undefined) {
|
8501
|
+
obj.value = ProcessStreamResponse_Partitions_Partition.toJSON(message.value);
|
8293
8502
|
}
|
8294
8503
|
return obj;
|
8295
8504
|
},
|
8296
8505
|
|
8297
|
-
create(
|
8298
|
-
|
8506
|
+
create(
|
8507
|
+
base?: DeepPartial<ProcessStreamResponse_Partitions_PartitionsEntry>,
|
8508
|
+
): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8509
|
+
return ProcessStreamResponse_Partitions_PartitionsEntry.fromPartial(base ?? {});
|
8299
8510
|
},
|
8300
|
-
fromPartial(
|
8301
|
-
|
8302
|
-
|
8303
|
-
message
|
8304
|
-
|
8511
|
+
fromPartial(
|
8512
|
+
object: DeepPartial<ProcessStreamResponse_Partitions_PartitionsEntry>,
|
8513
|
+
): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8514
|
+
const message = createBaseProcessStreamResponse_Partitions_PartitionsEntry();
|
8515
|
+
message.key = object.key ?? 0;
|
8516
|
+
message.value = (object.value !== undefined && object.value !== null)
|
8517
|
+
? ProcessStreamResponse_Partitions_Partition.fromPartial(object.value)
|
8305
8518
|
: undefined;
|
8306
8519
|
return message;
|
8307
8520
|
},
|
8308
8521
|
};
|
8309
8522
|
|
8310
|
-
function
|
8311
|
-
return {
|
8312
|
-
opId: BigInt("0"),
|
8313
|
-
data: undefined,
|
8314
|
-
list: undefined,
|
8315
|
-
error: undefined,
|
8316
|
-
entities: undefined,
|
8317
|
-
entityList: undefined,
|
8318
|
-
nextCursor: undefined,
|
8319
|
-
};
|
8523
|
+
function createBasePreprocessStreamRequest(): PreprocessStreamRequest {
|
8524
|
+
return { processId: 0, bindings: undefined, dbResult: undefined };
|
8320
8525
|
}
|
8321
8526
|
|
8322
|
-
export const
|
8323
|
-
encode(message:
|
8324
|
-
if (message.
|
8325
|
-
|
8326
|
-
|
8327
|
-
|
8328
|
-
writer.uint32(
|
8329
|
-
}
|
8330
|
-
if (message.
|
8331
|
-
|
8527
|
+
export const PreprocessStreamRequest = {
|
8528
|
+
encode(message: PreprocessStreamRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8529
|
+
if (message.processId !== 0) {
|
8530
|
+
writer.uint32(8).int32(message.processId);
|
8531
|
+
}
|
8532
|
+
if (message.bindings !== undefined) {
|
8533
|
+
PreprocessStreamRequest_DataBindings.encode(message.bindings, writer.uint32(18).fork()).ldelim();
|
8534
|
+
}
|
8535
|
+
if (message.dbResult !== undefined) {
|
8536
|
+
DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
|
8537
|
+
}
|
8538
|
+
return writer;
|
8539
|
+
},
|
8540
|
+
|
8541
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PreprocessStreamRequest {
|
8542
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8543
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8544
|
+
const message = createBasePreprocessStreamRequest();
|
8545
|
+
while (reader.pos < end) {
|
8546
|
+
const tag = reader.uint32();
|
8547
|
+
switch (tag >>> 3) {
|
8548
|
+
case 1:
|
8549
|
+
if (tag !== 8) {
|
8550
|
+
break;
|
8551
|
+
}
|
8552
|
+
|
8553
|
+
message.processId = reader.int32();
|
8554
|
+
continue;
|
8555
|
+
case 2:
|
8556
|
+
if (tag !== 18) {
|
8557
|
+
break;
|
8558
|
+
}
|
8559
|
+
|
8560
|
+
message.bindings = PreprocessStreamRequest_DataBindings.decode(reader, reader.uint32());
|
8561
|
+
continue;
|
8562
|
+
case 3:
|
8563
|
+
if (tag !== 26) {
|
8564
|
+
break;
|
8565
|
+
}
|
8566
|
+
|
8567
|
+
message.dbResult = DBResponse.decode(reader, reader.uint32());
|
8568
|
+
continue;
|
8569
|
+
}
|
8570
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8571
|
+
break;
|
8572
|
+
}
|
8573
|
+
reader.skipType(tag & 7);
|
8574
|
+
}
|
8575
|
+
return message;
|
8576
|
+
},
|
8577
|
+
|
8578
|
+
fromJSON(object: any): PreprocessStreamRequest {
|
8579
|
+
return {
|
8580
|
+
processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
|
8581
|
+
bindings: isSet(object.bindings) ? PreprocessStreamRequest_DataBindings.fromJSON(object.bindings) : undefined,
|
8582
|
+
dbResult: isSet(object.dbResult) ? DBResponse.fromJSON(object.dbResult) : undefined,
|
8583
|
+
};
|
8584
|
+
},
|
8585
|
+
|
8586
|
+
toJSON(message: PreprocessStreamRequest): unknown {
|
8587
|
+
const obj: any = {};
|
8588
|
+
if (message.processId !== 0) {
|
8589
|
+
obj.processId = Math.round(message.processId);
|
8590
|
+
}
|
8591
|
+
if (message.bindings !== undefined) {
|
8592
|
+
obj.bindings = PreprocessStreamRequest_DataBindings.toJSON(message.bindings);
|
8593
|
+
}
|
8594
|
+
if (message.dbResult !== undefined) {
|
8595
|
+
obj.dbResult = DBResponse.toJSON(message.dbResult);
|
8596
|
+
}
|
8597
|
+
return obj;
|
8598
|
+
},
|
8599
|
+
|
8600
|
+
create(base?: DeepPartial<PreprocessStreamRequest>): PreprocessStreamRequest {
|
8601
|
+
return PreprocessStreamRequest.fromPartial(base ?? {});
|
8602
|
+
},
|
8603
|
+
fromPartial(object: DeepPartial<PreprocessStreamRequest>): PreprocessStreamRequest {
|
8604
|
+
const message = createBasePreprocessStreamRequest();
|
8605
|
+
message.processId = object.processId ?? 0;
|
8606
|
+
message.bindings = (object.bindings !== undefined && object.bindings !== null)
|
8607
|
+
? PreprocessStreamRequest_DataBindings.fromPartial(object.bindings)
|
8608
|
+
: undefined;
|
8609
|
+
message.dbResult = (object.dbResult !== undefined && object.dbResult !== null)
|
8610
|
+
? DBResponse.fromPartial(object.dbResult)
|
8611
|
+
: undefined;
|
8612
|
+
return message;
|
8613
|
+
},
|
8614
|
+
};
|
8615
|
+
|
8616
|
+
function createBasePreprocessStreamRequest_DataBindings(): PreprocessStreamRequest_DataBindings {
|
8617
|
+
return { bindings: [] };
|
8618
|
+
}
|
8619
|
+
|
8620
|
+
export const PreprocessStreamRequest_DataBindings = {
|
8621
|
+
encode(message: PreprocessStreamRequest_DataBindings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8622
|
+
for (const v of message.bindings) {
|
8623
|
+
DataBinding.encode(v!, writer.uint32(10).fork()).ldelim();
|
8624
|
+
}
|
8625
|
+
return writer;
|
8626
|
+
},
|
8627
|
+
|
8628
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PreprocessStreamRequest_DataBindings {
|
8629
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8630
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8631
|
+
const message = createBasePreprocessStreamRequest_DataBindings();
|
8632
|
+
while (reader.pos < end) {
|
8633
|
+
const tag = reader.uint32();
|
8634
|
+
switch (tag >>> 3) {
|
8635
|
+
case 1:
|
8636
|
+
if (tag !== 10) {
|
8637
|
+
break;
|
8638
|
+
}
|
8639
|
+
|
8640
|
+
message.bindings.push(DataBinding.decode(reader, reader.uint32()));
|
8641
|
+
continue;
|
8642
|
+
}
|
8643
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8644
|
+
break;
|
8645
|
+
}
|
8646
|
+
reader.skipType(tag & 7);
|
8647
|
+
}
|
8648
|
+
return message;
|
8649
|
+
},
|
8650
|
+
|
8651
|
+
fromJSON(object: any): PreprocessStreamRequest_DataBindings {
|
8652
|
+
return {
|
8653
|
+
bindings: globalThis.Array.isArray(object?.bindings)
|
8654
|
+
? object.bindings.map((e: any) => DataBinding.fromJSON(e))
|
8655
|
+
: [],
|
8656
|
+
};
|
8657
|
+
},
|
8658
|
+
|
8659
|
+
toJSON(message: PreprocessStreamRequest_DataBindings): unknown {
|
8660
|
+
const obj: any = {};
|
8661
|
+
if (message.bindings?.length) {
|
8662
|
+
obj.bindings = message.bindings.map((e) => DataBinding.toJSON(e));
|
8663
|
+
}
|
8664
|
+
return obj;
|
8665
|
+
},
|
8666
|
+
|
8667
|
+
create(base?: DeepPartial<PreprocessStreamRequest_DataBindings>): PreprocessStreamRequest_DataBindings {
|
8668
|
+
return PreprocessStreamRequest_DataBindings.fromPartial(base ?? {});
|
8669
|
+
},
|
8670
|
+
fromPartial(object: DeepPartial<PreprocessStreamRequest_DataBindings>): PreprocessStreamRequest_DataBindings {
|
8671
|
+
const message = createBasePreprocessStreamRequest_DataBindings();
|
8672
|
+
message.bindings = object.bindings?.map((e) => DataBinding.fromPartial(e)) || [];
|
8673
|
+
return message;
|
8674
|
+
},
|
8675
|
+
};
|
8676
|
+
|
8677
|
+
function createBasePreprocessStreamResponse(): PreprocessStreamResponse {
|
8678
|
+
return { processId: 0, dbRequest: undefined };
|
8679
|
+
}
|
8680
|
+
|
8681
|
+
export const PreprocessStreamResponse = {
|
8682
|
+
encode(message: PreprocessStreamResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8683
|
+
if (message.processId !== 0) {
|
8684
|
+
writer.uint32(8).int32(message.processId);
|
8685
|
+
}
|
8686
|
+
if (message.dbRequest !== undefined) {
|
8687
|
+
DBRequest.encode(message.dbRequest, writer.uint32(18).fork()).ldelim();
|
8688
|
+
}
|
8689
|
+
return writer;
|
8690
|
+
},
|
8691
|
+
|
8692
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PreprocessStreamResponse {
|
8693
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8694
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8695
|
+
const message = createBasePreprocessStreamResponse();
|
8696
|
+
while (reader.pos < end) {
|
8697
|
+
const tag = reader.uint32();
|
8698
|
+
switch (tag >>> 3) {
|
8699
|
+
case 1:
|
8700
|
+
if (tag !== 8) {
|
8701
|
+
break;
|
8702
|
+
}
|
8703
|
+
|
8704
|
+
message.processId = reader.int32();
|
8705
|
+
continue;
|
8706
|
+
case 2:
|
8707
|
+
if (tag !== 18) {
|
8708
|
+
break;
|
8709
|
+
}
|
8710
|
+
|
8711
|
+
message.dbRequest = DBRequest.decode(reader, reader.uint32());
|
8712
|
+
continue;
|
8713
|
+
}
|
8714
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8715
|
+
break;
|
8716
|
+
}
|
8717
|
+
reader.skipType(tag & 7);
|
8718
|
+
}
|
8719
|
+
return message;
|
8720
|
+
},
|
8721
|
+
|
8722
|
+
fromJSON(object: any): PreprocessStreamResponse {
|
8723
|
+
return {
|
8724
|
+
processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
|
8725
|
+
dbRequest: isSet(object.dbRequest) ? DBRequest.fromJSON(object.dbRequest) : undefined,
|
8726
|
+
};
|
8727
|
+
},
|
8728
|
+
|
8729
|
+
toJSON(message: PreprocessStreamResponse): unknown {
|
8730
|
+
const obj: any = {};
|
8731
|
+
if (message.processId !== 0) {
|
8732
|
+
obj.processId = Math.round(message.processId);
|
8733
|
+
}
|
8734
|
+
if (message.dbRequest !== undefined) {
|
8735
|
+
obj.dbRequest = DBRequest.toJSON(message.dbRequest);
|
8736
|
+
}
|
8737
|
+
return obj;
|
8738
|
+
},
|
8739
|
+
|
8740
|
+
create(base?: DeepPartial<PreprocessStreamResponse>): PreprocessStreamResponse {
|
8741
|
+
return PreprocessStreamResponse.fromPartial(base ?? {});
|
8742
|
+
},
|
8743
|
+
fromPartial(object: DeepPartial<PreprocessStreamResponse>): PreprocessStreamResponse {
|
8744
|
+
const message = createBasePreprocessStreamResponse();
|
8745
|
+
message.processId = object.processId ?? 0;
|
8746
|
+
message.dbRequest = (object.dbRequest !== undefined && object.dbRequest !== null)
|
8747
|
+
? DBRequest.fromPartial(object.dbRequest)
|
8748
|
+
: undefined;
|
8749
|
+
return message;
|
8750
|
+
},
|
8751
|
+
};
|
8752
|
+
|
8753
|
+
function createBaseDBResponse(): DBResponse {
|
8754
|
+
return {
|
8755
|
+
opId: BigInt("0"),
|
8756
|
+
data: undefined,
|
8757
|
+
list: undefined,
|
8758
|
+
error: undefined,
|
8759
|
+
entities: undefined,
|
8760
|
+
entityList: undefined,
|
8761
|
+
nextCursor: undefined,
|
8762
|
+
};
|
8763
|
+
}
|
8764
|
+
|
8765
|
+
export const DBResponse = {
|
8766
|
+
encode(message: DBResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8767
|
+
if (message.opId !== BigInt("0")) {
|
8768
|
+
if (BigInt.asUintN(64, message.opId) !== message.opId) {
|
8769
|
+
throw new globalThis.Error("value provided for field message.opId of type uint64 too large");
|
8770
|
+
}
|
8771
|
+
writer.uint32(8).uint64(message.opId.toString());
|
8772
|
+
}
|
8773
|
+
if (message.data !== undefined) {
|
8774
|
+
Struct.encode(Struct.wrap(message.data), writer.uint32(18).fork()).ldelim();
|
8332
8775
|
}
|
8333
8776
|
if (message.list !== undefined) {
|
8334
8777
|
ListValue.encode(ListValue.wrap(message.list), writer.uint32(34).fork()).ldelim();
|
@@ -8570,47 +9013,266 @@ export const Entity = {
|
|
8570
9013
|
if (message.genBlockChain !== "") {
|
8571
9014
|
obj.genBlockChain = message.genBlockChain;
|
8572
9015
|
}
|
8573
|
-
if (message.genBlockTime !== undefined) {
|
8574
|
-
obj.genBlockTime = message.genBlockTime.toISOString();
|
9016
|
+
if (message.genBlockTime !== undefined) {
|
9017
|
+
obj.genBlockTime = message.genBlockTime.toISOString();
|
9018
|
+
}
|
9019
|
+
if (message.data !== undefined) {
|
9020
|
+
obj.data = RichStruct.toJSON(message.data);
|
9021
|
+
}
|
9022
|
+
return obj;
|
9023
|
+
},
|
9024
|
+
|
9025
|
+
create(base?: DeepPartial<Entity>): Entity {
|
9026
|
+
return Entity.fromPartial(base ?? {});
|
9027
|
+
},
|
9028
|
+
fromPartial(object: DeepPartial<Entity>): Entity {
|
9029
|
+
const message = createBaseEntity();
|
9030
|
+
message.entity = object.entity ?? "";
|
9031
|
+
message.genBlockNumber = object.genBlockNumber ?? BigInt("0");
|
9032
|
+
message.genBlockChain = object.genBlockChain ?? "";
|
9033
|
+
message.genBlockTime = object.genBlockTime ?? undefined;
|
9034
|
+
message.data = (object.data !== undefined && object.data !== null)
|
9035
|
+
? RichStruct.fromPartial(object.data)
|
9036
|
+
: undefined;
|
9037
|
+
return message;
|
9038
|
+
},
|
9039
|
+
};
|
9040
|
+
|
9041
|
+
function createBaseEntityList(): EntityList {
|
9042
|
+
return { entities: [] };
|
9043
|
+
}
|
9044
|
+
|
9045
|
+
export const EntityList = {
|
9046
|
+
encode(message: EntityList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9047
|
+
for (const v of message.entities) {
|
9048
|
+
Entity.encode(v!, writer.uint32(10).fork()).ldelim();
|
9049
|
+
}
|
9050
|
+
return writer;
|
9051
|
+
},
|
9052
|
+
|
9053
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityList {
|
9054
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9055
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9056
|
+
const message = createBaseEntityList();
|
9057
|
+
while (reader.pos < end) {
|
9058
|
+
const tag = reader.uint32();
|
9059
|
+
switch (tag >>> 3) {
|
9060
|
+
case 1:
|
9061
|
+
if (tag !== 10) {
|
9062
|
+
break;
|
9063
|
+
}
|
9064
|
+
|
9065
|
+
message.entities.push(Entity.decode(reader, reader.uint32()));
|
9066
|
+
continue;
|
9067
|
+
}
|
9068
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9069
|
+
break;
|
9070
|
+
}
|
9071
|
+
reader.skipType(tag & 7);
|
9072
|
+
}
|
9073
|
+
return message;
|
9074
|
+
},
|
9075
|
+
|
9076
|
+
fromJSON(object: any): EntityList {
|
9077
|
+
return {
|
9078
|
+
entities: globalThis.Array.isArray(object?.entities) ? object.entities.map((e: any) => Entity.fromJSON(e)) : [],
|
9079
|
+
};
|
9080
|
+
},
|
9081
|
+
|
9082
|
+
toJSON(message: EntityList): unknown {
|
9083
|
+
const obj: any = {};
|
9084
|
+
if (message.entities?.length) {
|
9085
|
+
obj.entities = message.entities.map((e) => Entity.toJSON(e));
|
9086
|
+
}
|
9087
|
+
return obj;
|
9088
|
+
},
|
9089
|
+
|
9090
|
+
create(base?: DeepPartial<EntityList>): EntityList {
|
9091
|
+
return EntityList.fromPartial(base ?? {});
|
9092
|
+
},
|
9093
|
+
fromPartial(object: DeepPartial<EntityList>): EntityList {
|
9094
|
+
const message = createBaseEntityList();
|
9095
|
+
message.entities = object.entities?.map((e) => Entity.fromPartial(e)) || [];
|
9096
|
+
return message;
|
9097
|
+
},
|
9098
|
+
};
|
9099
|
+
|
9100
|
+
function createBaseEntityUpdateData(): EntityUpdateData {
|
9101
|
+
return { fields: {} };
|
9102
|
+
}
|
9103
|
+
|
9104
|
+
export const EntityUpdateData = {
|
9105
|
+
encode(message: EntityUpdateData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9106
|
+
Object.entries(message.fields).forEach(([key, value]) => {
|
9107
|
+
EntityUpdateData_FieldsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();
|
9108
|
+
});
|
9109
|
+
return writer;
|
9110
|
+
},
|
9111
|
+
|
9112
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData {
|
9113
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9114
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9115
|
+
const message = createBaseEntityUpdateData();
|
9116
|
+
while (reader.pos < end) {
|
9117
|
+
const tag = reader.uint32();
|
9118
|
+
switch (tag >>> 3) {
|
9119
|
+
case 1:
|
9120
|
+
if (tag !== 10) {
|
9121
|
+
break;
|
9122
|
+
}
|
9123
|
+
|
9124
|
+
const entry1 = EntityUpdateData_FieldsEntry.decode(reader, reader.uint32());
|
9125
|
+
if (entry1.value !== undefined) {
|
9126
|
+
message.fields[entry1.key] = entry1.value;
|
9127
|
+
}
|
9128
|
+
continue;
|
9129
|
+
}
|
9130
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9131
|
+
break;
|
9132
|
+
}
|
9133
|
+
reader.skipType(tag & 7);
|
9134
|
+
}
|
9135
|
+
return message;
|
9136
|
+
},
|
9137
|
+
|
9138
|
+
fromJSON(object: any): EntityUpdateData {
|
9139
|
+
return {
|
9140
|
+
fields: isObject(object.fields)
|
9141
|
+
? Object.entries(object.fields).reduce<{ [key: string]: EntityUpdateData_FieldValue }>((acc, [key, value]) => {
|
9142
|
+
acc[key] = EntityUpdateData_FieldValue.fromJSON(value);
|
9143
|
+
return acc;
|
9144
|
+
}, {})
|
9145
|
+
: {},
|
9146
|
+
};
|
9147
|
+
},
|
9148
|
+
|
9149
|
+
toJSON(message: EntityUpdateData): unknown {
|
9150
|
+
const obj: any = {};
|
9151
|
+
if (message.fields) {
|
9152
|
+
const entries = Object.entries(message.fields);
|
9153
|
+
if (entries.length > 0) {
|
9154
|
+
obj.fields = {};
|
9155
|
+
entries.forEach(([k, v]) => {
|
9156
|
+
obj.fields[k] = EntityUpdateData_FieldValue.toJSON(v);
|
9157
|
+
});
|
9158
|
+
}
|
9159
|
+
}
|
9160
|
+
return obj;
|
9161
|
+
},
|
9162
|
+
|
9163
|
+
create(base?: DeepPartial<EntityUpdateData>): EntityUpdateData {
|
9164
|
+
return EntityUpdateData.fromPartial(base ?? {});
|
9165
|
+
},
|
9166
|
+
fromPartial(object: DeepPartial<EntityUpdateData>): EntityUpdateData {
|
9167
|
+
const message = createBaseEntityUpdateData();
|
9168
|
+
message.fields = Object.entries(object.fields ?? {}).reduce<{ [key: string]: EntityUpdateData_FieldValue }>(
|
9169
|
+
(acc, [key, value]) => {
|
9170
|
+
if (value !== undefined) {
|
9171
|
+
acc[key] = EntityUpdateData_FieldValue.fromPartial(value);
|
9172
|
+
}
|
9173
|
+
return acc;
|
9174
|
+
},
|
9175
|
+
{},
|
9176
|
+
);
|
9177
|
+
return message;
|
9178
|
+
},
|
9179
|
+
};
|
9180
|
+
|
9181
|
+
function createBaseEntityUpdateData_FieldValue(): EntityUpdateData_FieldValue {
|
9182
|
+
return { value: undefined, op: 0 };
|
9183
|
+
}
|
9184
|
+
|
9185
|
+
export const EntityUpdateData_FieldValue = {
|
9186
|
+
encode(message: EntityUpdateData_FieldValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9187
|
+
if (message.value !== undefined) {
|
9188
|
+
RichValue.encode(message.value, writer.uint32(10).fork()).ldelim();
|
9189
|
+
}
|
9190
|
+
if (message.op !== 0) {
|
9191
|
+
writer.uint32(16).int32(message.op);
|
9192
|
+
}
|
9193
|
+
return writer;
|
9194
|
+
},
|
9195
|
+
|
9196
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData_FieldValue {
|
9197
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9198
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9199
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
9200
|
+
while (reader.pos < end) {
|
9201
|
+
const tag = reader.uint32();
|
9202
|
+
switch (tag >>> 3) {
|
9203
|
+
case 1:
|
9204
|
+
if (tag !== 10) {
|
9205
|
+
break;
|
9206
|
+
}
|
9207
|
+
|
9208
|
+
message.value = RichValue.decode(reader, reader.uint32());
|
9209
|
+
continue;
|
9210
|
+
case 2:
|
9211
|
+
if (tag !== 16) {
|
9212
|
+
break;
|
9213
|
+
}
|
9214
|
+
|
9215
|
+
message.op = reader.int32() as any;
|
9216
|
+
continue;
|
9217
|
+
}
|
9218
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9219
|
+
break;
|
9220
|
+
}
|
9221
|
+
reader.skipType(tag & 7);
|
9222
|
+
}
|
9223
|
+
return message;
|
9224
|
+
},
|
9225
|
+
|
9226
|
+
fromJSON(object: any): EntityUpdateData_FieldValue {
|
9227
|
+
return {
|
9228
|
+
value: isSet(object.value) ? RichValue.fromJSON(object.value) : undefined,
|
9229
|
+
op: isSet(object.op) ? entityUpdateData_OperatorFromJSON(object.op) : 0,
|
9230
|
+
};
|
9231
|
+
},
|
9232
|
+
|
9233
|
+
toJSON(message: EntityUpdateData_FieldValue): unknown {
|
9234
|
+
const obj: any = {};
|
9235
|
+
if (message.value !== undefined) {
|
9236
|
+
obj.value = RichValue.toJSON(message.value);
|
8575
9237
|
}
|
8576
|
-
if (message.
|
8577
|
-
obj.
|
9238
|
+
if (message.op !== 0) {
|
9239
|
+
obj.op = entityUpdateData_OperatorToJSON(message.op);
|
8578
9240
|
}
|
8579
9241
|
return obj;
|
8580
9242
|
},
|
8581
9243
|
|
8582
|
-
create(base?: DeepPartial<
|
8583
|
-
return
|
9244
|
+
create(base?: DeepPartial<EntityUpdateData_FieldValue>): EntityUpdateData_FieldValue {
|
9245
|
+
return EntityUpdateData_FieldValue.fromPartial(base ?? {});
|
8584
9246
|
},
|
8585
|
-
fromPartial(object: DeepPartial<
|
8586
|
-
const message =
|
8587
|
-
message.
|
8588
|
-
|
8589
|
-
message.genBlockChain = object.genBlockChain ?? "";
|
8590
|
-
message.genBlockTime = object.genBlockTime ?? undefined;
|
8591
|
-
message.data = (object.data !== undefined && object.data !== null)
|
8592
|
-
? RichStruct.fromPartial(object.data)
|
9247
|
+
fromPartial(object: DeepPartial<EntityUpdateData_FieldValue>): EntityUpdateData_FieldValue {
|
9248
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
9249
|
+
message.value = (object.value !== undefined && object.value !== null)
|
9250
|
+
? RichValue.fromPartial(object.value)
|
8593
9251
|
: undefined;
|
9252
|
+
message.op = object.op ?? 0;
|
8594
9253
|
return message;
|
8595
9254
|
},
|
8596
9255
|
};
|
8597
9256
|
|
8598
|
-
function
|
8599
|
-
return {
|
9257
|
+
function createBaseEntityUpdateData_FieldsEntry(): EntityUpdateData_FieldsEntry {
|
9258
|
+
return { key: "", value: undefined };
|
8600
9259
|
}
|
8601
9260
|
|
8602
|
-
export const
|
8603
|
-
encode(message:
|
8604
|
-
|
8605
|
-
|
9261
|
+
export const EntityUpdateData_FieldsEntry = {
|
9262
|
+
encode(message: EntityUpdateData_FieldsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9263
|
+
if (message.key !== "") {
|
9264
|
+
writer.uint32(10).string(message.key);
|
9265
|
+
}
|
9266
|
+
if (message.value !== undefined) {
|
9267
|
+
EntityUpdateData_FieldValue.encode(message.value, writer.uint32(18).fork()).ldelim();
|
8606
9268
|
}
|
8607
9269
|
return writer;
|
8608
9270
|
},
|
8609
9271
|
|
8610
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
9272
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData_FieldsEntry {
|
8611
9273
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8612
9274
|
let end = length === undefined ? reader.len : reader.pos + length;
|
8613
|
-
const message =
|
9275
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
8614
9276
|
while (reader.pos < end) {
|
8615
9277
|
const tag = reader.uint32();
|
8616
9278
|
switch (tag >>> 3) {
|
@@ -8619,7 +9281,14 @@ export const EntityList = {
|
|
8619
9281
|
break;
|
8620
9282
|
}
|
8621
9283
|
|
8622
|
-
message.
|
9284
|
+
message.key = reader.string();
|
9285
|
+
continue;
|
9286
|
+
case 2:
|
9287
|
+
if (tag !== 18) {
|
9288
|
+
break;
|
9289
|
+
}
|
9290
|
+
|
9291
|
+
message.value = EntityUpdateData_FieldValue.decode(reader, reader.uint32());
|
8623
9292
|
continue;
|
8624
9293
|
}
|
8625
9294
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -8630,32 +9299,46 @@ export const EntityList = {
|
|
8630
9299
|
return message;
|
8631
9300
|
},
|
8632
9301
|
|
8633
|
-
fromJSON(object: any):
|
9302
|
+
fromJSON(object: any): EntityUpdateData_FieldsEntry {
|
8634
9303
|
return {
|
8635
|
-
|
9304
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
9305
|
+
value: isSet(object.value) ? EntityUpdateData_FieldValue.fromJSON(object.value) : undefined,
|
8636
9306
|
};
|
8637
9307
|
},
|
8638
9308
|
|
8639
|
-
toJSON(message:
|
9309
|
+
toJSON(message: EntityUpdateData_FieldsEntry): unknown {
|
8640
9310
|
const obj: any = {};
|
8641
|
-
if (message.
|
8642
|
-
obj.
|
9311
|
+
if (message.key !== "") {
|
9312
|
+
obj.key = message.key;
|
9313
|
+
}
|
9314
|
+
if (message.value !== undefined) {
|
9315
|
+
obj.value = EntityUpdateData_FieldValue.toJSON(message.value);
|
8643
9316
|
}
|
8644
9317
|
return obj;
|
8645
9318
|
},
|
8646
9319
|
|
8647
|
-
create(base?: DeepPartial<
|
8648
|
-
return
|
9320
|
+
create(base?: DeepPartial<EntityUpdateData_FieldsEntry>): EntityUpdateData_FieldsEntry {
|
9321
|
+
return EntityUpdateData_FieldsEntry.fromPartial(base ?? {});
|
8649
9322
|
},
|
8650
|
-
fromPartial(object: DeepPartial<
|
8651
|
-
const message =
|
8652
|
-
message.
|
9323
|
+
fromPartial(object: DeepPartial<EntityUpdateData_FieldsEntry>): EntityUpdateData_FieldsEntry {
|
9324
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
9325
|
+
message.key = object.key ?? "";
|
9326
|
+
message.value = (object.value !== undefined && object.value !== null)
|
9327
|
+
? EntityUpdateData_FieldValue.fromPartial(object.value)
|
9328
|
+
: undefined;
|
8653
9329
|
return message;
|
8654
9330
|
},
|
8655
9331
|
};
|
8656
9332
|
|
8657
9333
|
function createBaseDBRequest(): DBRequest {
|
8658
|
-
return {
|
9334
|
+
return {
|
9335
|
+
opId: BigInt("0"),
|
9336
|
+
get: undefined,
|
9337
|
+
upsert: undefined,
|
9338
|
+
update: undefined,
|
9339
|
+
delete: undefined,
|
9340
|
+
list: undefined,
|
9341
|
+
};
|
8659
9342
|
}
|
8660
9343
|
|
8661
9344
|
export const DBRequest = {
|
@@ -8672,6 +9355,9 @@ export const DBRequest = {
|
|
8672
9355
|
if (message.upsert !== undefined) {
|
8673
9356
|
DBRequest_DBUpsert.encode(message.upsert, writer.uint32(26).fork()).ldelim();
|
8674
9357
|
}
|
9358
|
+
if (message.update !== undefined) {
|
9359
|
+
DBRequest_DBUpdate.encode(message.update, writer.uint32(50).fork()).ldelim();
|
9360
|
+
}
|
8675
9361
|
if (message.delete !== undefined) {
|
8676
9362
|
DBRequest_DBDelete.encode(message.delete, writer.uint32(34).fork()).ldelim();
|
8677
9363
|
}
|
@@ -8709,6 +9395,13 @@ export const DBRequest = {
|
|
8709
9395
|
|
8710
9396
|
message.upsert = DBRequest_DBUpsert.decode(reader, reader.uint32());
|
8711
9397
|
continue;
|
9398
|
+
case 6:
|
9399
|
+
if (tag !== 50) {
|
9400
|
+
break;
|
9401
|
+
}
|
9402
|
+
|
9403
|
+
message.update = DBRequest_DBUpdate.decode(reader, reader.uint32());
|
9404
|
+
continue;
|
8712
9405
|
case 4:
|
8713
9406
|
if (tag !== 34) {
|
8714
9407
|
break;
|
@@ -8737,6 +9430,7 @@ export const DBRequest = {
|
|
8737
9430
|
opId: isSet(object.opId) ? BigInt(object.opId) : BigInt("0"),
|
8738
9431
|
get: isSet(object.get) ? DBRequest_DBGet.fromJSON(object.get) : undefined,
|
8739
9432
|
upsert: isSet(object.upsert) ? DBRequest_DBUpsert.fromJSON(object.upsert) : undefined,
|
9433
|
+
update: isSet(object.update) ? DBRequest_DBUpdate.fromJSON(object.update) : undefined,
|
8740
9434
|
delete: isSet(object.delete) ? DBRequest_DBDelete.fromJSON(object.delete) : undefined,
|
8741
9435
|
list: isSet(object.list) ? DBRequest_DBList.fromJSON(object.list) : undefined,
|
8742
9436
|
};
|
@@ -8753,6 +9447,9 @@ export const DBRequest = {
|
|
8753
9447
|
if (message.upsert !== undefined) {
|
8754
9448
|
obj.upsert = DBRequest_DBUpsert.toJSON(message.upsert);
|
8755
9449
|
}
|
9450
|
+
if (message.update !== undefined) {
|
9451
|
+
obj.update = DBRequest_DBUpdate.toJSON(message.update);
|
9452
|
+
}
|
8756
9453
|
if (message.delete !== undefined) {
|
8757
9454
|
obj.delete = DBRequest_DBDelete.toJSON(message.delete);
|
8758
9455
|
}
|
@@ -8774,6 +9471,9 @@ export const DBRequest = {
|
|
8774
9471
|
message.upsert = (object.upsert !== undefined && object.upsert !== null)
|
8775
9472
|
? DBRequest_DBUpsert.fromPartial(object.upsert)
|
8776
9473
|
: undefined;
|
9474
|
+
message.update = (object.update !== undefined && object.update !== null)
|
9475
|
+
? DBRequest_DBUpdate.fromPartial(object.update)
|
9476
|
+
: undefined;
|
8777
9477
|
message.delete = (object.delete !== undefined && object.delete !== null)
|
8778
9478
|
? DBRequest_DBDelete.fromPartial(object.delete)
|
8779
9479
|
: undefined;
|
@@ -9070,6 +9770,97 @@ export const DBRequest_DBUpsert = {
|
|
9070
9770
|
},
|
9071
9771
|
};
|
9072
9772
|
|
9773
|
+
function createBaseDBRequest_DBUpdate(): DBRequest_DBUpdate {
|
9774
|
+
return { entity: [], id: [], entityData: [] };
|
9775
|
+
}
|
9776
|
+
|
9777
|
+
export const DBRequest_DBUpdate = {
|
9778
|
+
encode(message: DBRequest_DBUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9779
|
+
for (const v of message.entity) {
|
9780
|
+
writer.uint32(10).string(v!);
|
9781
|
+
}
|
9782
|
+
for (const v of message.id) {
|
9783
|
+
writer.uint32(18).string(v!);
|
9784
|
+
}
|
9785
|
+
for (const v of message.entityData) {
|
9786
|
+
EntityUpdateData.encode(v!, writer.uint32(26).fork()).ldelim();
|
9787
|
+
}
|
9788
|
+
return writer;
|
9789
|
+
},
|
9790
|
+
|
9791
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest_DBUpdate {
|
9792
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9793
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9794
|
+
const message = createBaseDBRequest_DBUpdate();
|
9795
|
+
while (reader.pos < end) {
|
9796
|
+
const tag = reader.uint32();
|
9797
|
+
switch (tag >>> 3) {
|
9798
|
+
case 1:
|
9799
|
+
if (tag !== 10) {
|
9800
|
+
break;
|
9801
|
+
}
|
9802
|
+
|
9803
|
+
message.entity.push(reader.string());
|
9804
|
+
continue;
|
9805
|
+
case 2:
|
9806
|
+
if (tag !== 18) {
|
9807
|
+
break;
|
9808
|
+
}
|
9809
|
+
|
9810
|
+
message.id.push(reader.string());
|
9811
|
+
continue;
|
9812
|
+
case 3:
|
9813
|
+
if (tag !== 26) {
|
9814
|
+
break;
|
9815
|
+
}
|
9816
|
+
|
9817
|
+
message.entityData.push(EntityUpdateData.decode(reader, reader.uint32()));
|
9818
|
+
continue;
|
9819
|
+
}
|
9820
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9821
|
+
break;
|
9822
|
+
}
|
9823
|
+
reader.skipType(tag & 7);
|
9824
|
+
}
|
9825
|
+
return message;
|
9826
|
+
},
|
9827
|
+
|
9828
|
+
fromJSON(object: any): DBRequest_DBUpdate {
|
9829
|
+
return {
|
9830
|
+
entity: globalThis.Array.isArray(object?.entity) ? object.entity.map((e: any) => globalThis.String(e)) : [],
|
9831
|
+
id: globalThis.Array.isArray(object?.id) ? object.id.map((e: any) => globalThis.String(e)) : [],
|
9832
|
+
entityData: globalThis.Array.isArray(object?.entityData)
|
9833
|
+
? object.entityData.map((e: any) => EntityUpdateData.fromJSON(e))
|
9834
|
+
: [],
|
9835
|
+
};
|
9836
|
+
},
|
9837
|
+
|
9838
|
+
toJSON(message: DBRequest_DBUpdate): unknown {
|
9839
|
+
const obj: any = {};
|
9840
|
+
if (message.entity?.length) {
|
9841
|
+
obj.entity = message.entity;
|
9842
|
+
}
|
9843
|
+
if (message.id?.length) {
|
9844
|
+
obj.id = message.id;
|
9845
|
+
}
|
9846
|
+
if (message.entityData?.length) {
|
9847
|
+
obj.entityData = message.entityData.map((e) => EntityUpdateData.toJSON(e));
|
9848
|
+
}
|
9849
|
+
return obj;
|
9850
|
+
},
|
9851
|
+
|
9852
|
+
create(base?: DeepPartial<DBRequest_DBUpdate>): DBRequest_DBUpdate {
|
9853
|
+
return DBRequest_DBUpdate.fromPartial(base ?? {});
|
9854
|
+
},
|
9855
|
+
fromPartial(object: DeepPartial<DBRequest_DBUpdate>): DBRequest_DBUpdate {
|
9856
|
+
const message = createBaseDBRequest_DBUpdate();
|
9857
|
+
message.entity = object.entity?.map((e) => e) || [];
|
9858
|
+
message.id = object.id?.map((e) => e) || [];
|
9859
|
+
message.entityData = object.entityData?.map((e) => EntityUpdateData.fromPartial(e)) || [];
|
9860
|
+
return message;
|
9861
|
+
},
|
9862
|
+
};
|
9863
|
+
|
9073
9864
|
function createBaseDBRequest_DBDelete(): DBRequest_DBDelete {
|
9074
9865
|
return { entity: [], id: [] };
|
9075
9866
|
}
|
@@ -11958,7 +12749,7 @@ export const StateResult = {
|
|
11958
12749
|
};
|
11959
12750
|
|
11960
12751
|
function createBaseProcessResult(): ProcessResult {
|
11961
|
-
return { gauges: [], counters: [], logs: [], events: [], exports: [], states: undefined };
|
12752
|
+
return { gauges: [], counters: [], logs: [], events: [], exports: [], states: undefined, timeseriesResult: [] };
|
11962
12753
|
}
|
11963
12754
|
|
11964
12755
|
export const ProcessResult = {
|
@@ -11981,6 +12772,9 @@ export const ProcessResult = {
|
|
11981
12772
|
if (message.states !== undefined) {
|
11982
12773
|
StateResult.encode(message.states, writer.uint32(50).fork()).ldelim();
|
11983
12774
|
}
|
12775
|
+
for (const v of message.timeseriesResult) {
|
12776
|
+
TimeseriesResult.encode(v!, writer.uint32(58).fork()).ldelim();
|
12777
|
+
}
|
11984
12778
|
return writer;
|
11985
12779
|
},
|
11986
12780
|
|
@@ -12033,6 +12827,13 @@ export const ProcessResult = {
|
|
12033
12827
|
|
12034
12828
|
message.states = StateResult.decode(reader, reader.uint32());
|
12035
12829
|
continue;
|
12830
|
+
case 7:
|
12831
|
+
if (tag !== 58) {
|
12832
|
+
break;
|
12833
|
+
}
|
12834
|
+
|
12835
|
+
message.timeseriesResult.push(TimeseriesResult.decode(reader, reader.uint32()));
|
12836
|
+
continue;
|
12036
12837
|
}
|
12037
12838
|
if ((tag & 7) === 4 || tag === 0) {
|
12038
12839
|
break;
|
@@ -12056,6 +12857,9 @@ export const ProcessResult = {
|
|
12056
12857
|
? object.exports.map((e: any) => ExportResult.fromJSON(e))
|
12057
12858
|
: [],
|
12058
12859
|
states: isSet(object.states) ? StateResult.fromJSON(object.states) : undefined,
|
12860
|
+
timeseriesResult: globalThis.Array.isArray(object?.timeseriesResult)
|
12861
|
+
? object.timeseriesResult.map((e: any) => TimeseriesResult.fromJSON(e))
|
12862
|
+
: [],
|
12059
12863
|
};
|
12060
12864
|
},
|
12061
12865
|
|
@@ -12079,6 +12883,9 @@ export const ProcessResult = {
|
|
12079
12883
|
if (message.states !== undefined) {
|
12080
12884
|
obj.states = StateResult.toJSON(message.states);
|
12081
12885
|
}
|
12886
|
+
if (message.timeseriesResult?.length) {
|
12887
|
+
obj.timeseriesResult = message.timeseriesResult.map((e) => TimeseriesResult.toJSON(e));
|
12888
|
+
}
|
12082
12889
|
return obj;
|
12083
12890
|
},
|
12084
12891
|
|
@@ -12095,6 +12902,7 @@ export const ProcessResult = {
|
|
12095
12902
|
message.states = (object.states !== undefined && object.states !== null)
|
12096
12903
|
? StateResult.fromPartial(object.states)
|
12097
12904
|
: undefined;
|
12905
|
+
message.timeseriesResult = object.timeseriesResult?.map((e) => TimeseriesResult.fromPartial(e)) || [];
|
12098
12906
|
return message;
|
12099
12907
|
},
|
12100
12908
|
};
|
@@ -13435,6 +14243,116 @@ export const EventTrackingResult = {
|
|
13435
14243
|
},
|
13436
14244
|
};
|
13437
14245
|
|
14246
|
+
function createBaseTimeseriesResult(): TimeseriesResult {
|
14247
|
+
return { metadata: undefined, type: 0, data: undefined, runtimeInfo: undefined };
|
14248
|
+
}
|
14249
|
+
|
14250
|
+
export const TimeseriesResult = {
|
14251
|
+
encode(message: TimeseriesResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
14252
|
+
if (message.metadata !== undefined) {
|
14253
|
+
RecordMetaData.encode(message.metadata, writer.uint32(10).fork()).ldelim();
|
14254
|
+
}
|
14255
|
+
if (message.type !== 0) {
|
14256
|
+
writer.uint32(16).int32(message.type);
|
14257
|
+
}
|
14258
|
+
if (message.data !== undefined) {
|
14259
|
+
RichStruct.encode(message.data, writer.uint32(26).fork()).ldelim();
|
14260
|
+
}
|
14261
|
+
if (message.runtimeInfo !== undefined) {
|
14262
|
+
RuntimeInfo.encode(message.runtimeInfo, writer.uint32(34).fork()).ldelim();
|
14263
|
+
}
|
14264
|
+
return writer;
|
14265
|
+
},
|
14266
|
+
|
14267
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TimeseriesResult {
|
14268
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
14269
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
14270
|
+
const message = createBaseTimeseriesResult();
|
14271
|
+
while (reader.pos < end) {
|
14272
|
+
const tag = reader.uint32();
|
14273
|
+
switch (tag >>> 3) {
|
14274
|
+
case 1:
|
14275
|
+
if (tag !== 10) {
|
14276
|
+
break;
|
14277
|
+
}
|
14278
|
+
|
14279
|
+
message.metadata = RecordMetaData.decode(reader, reader.uint32());
|
14280
|
+
continue;
|
14281
|
+
case 2:
|
14282
|
+
if (tag !== 16) {
|
14283
|
+
break;
|
14284
|
+
}
|
14285
|
+
|
14286
|
+
message.type = reader.int32() as any;
|
14287
|
+
continue;
|
14288
|
+
case 3:
|
14289
|
+
if (tag !== 26) {
|
14290
|
+
break;
|
14291
|
+
}
|
14292
|
+
|
14293
|
+
message.data = RichStruct.decode(reader, reader.uint32());
|
14294
|
+
continue;
|
14295
|
+
case 4:
|
14296
|
+
if (tag !== 34) {
|
14297
|
+
break;
|
14298
|
+
}
|
14299
|
+
|
14300
|
+
message.runtimeInfo = RuntimeInfo.decode(reader, reader.uint32());
|
14301
|
+
continue;
|
14302
|
+
}
|
14303
|
+
if ((tag & 7) === 4 || tag === 0) {
|
14304
|
+
break;
|
14305
|
+
}
|
14306
|
+
reader.skipType(tag & 7);
|
14307
|
+
}
|
14308
|
+
return message;
|
14309
|
+
},
|
14310
|
+
|
14311
|
+
fromJSON(object: any): TimeseriesResult {
|
14312
|
+
return {
|
14313
|
+
metadata: isSet(object.metadata) ? RecordMetaData.fromJSON(object.metadata) : undefined,
|
14314
|
+
type: isSet(object.type) ? timeseriesResult_TimeseriesTypeFromJSON(object.type) : 0,
|
14315
|
+
data: isSet(object.data) ? RichStruct.fromJSON(object.data) : undefined,
|
14316
|
+
runtimeInfo: isSet(object.runtimeInfo) ? RuntimeInfo.fromJSON(object.runtimeInfo) : undefined,
|
14317
|
+
};
|
14318
|
+
},
|
14319
|
+
|
14320
|
+
toJSON(message: TimeseriesResult): unknown {
|
14321
|
+
const obj: any = {};
|
14322
|
+
if (message.metadata !== undefined) {
|
14323
|
+
obj.metadata = RecordMetaData.toJSON(message.metadata);
|
14324
|
+
}
|
14325
|
+
if (message.type !== 0) {
|
14326
|
+
obj.type = timeseriesResult_TimeseriesTypeToJSON(message.type);
|
14327
|
+
}
|
14328
|
+
if (message.data !== undefined) {
|
14329
|
+
obj.data = RichStruct.toJSON(message.data);
|
14330
|
+
}
|
14331
|
+
if (message.runtimeInfo !== undefined) {
|
14332
|
+
obj.runtimeInfo = RuntimeInfo.toJSON(message.runtimeInfo);
|
14333
|
+
}
|
14334
|
+
return obj;
|
14335
|
+
},
|
14336
|
+
|
14337
|
+
create(base?: DeepPartial<TimeseriesResult>): TimeseriesResult {
|
14338
|
+
return TimeseriesResult.fromPartial(base ?? {});
|
14339
|
+
},
|
14340
|
+
fromPartial(object: DeepPartial<TimeseriesResult>): TimeseriesResult {
|
14341
|
+
const message = createBaseTimeseriesResult();
|
14342
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
14343
|
+
? RecordMetaData.fromPartial(object.metadata)
|
14344
|
+
: undefined;
|
14345
|
+
message.type = object.type ?? 0;
|
14346
|
+
message.data = (object.data !== undefined && object.data !== null)
|
14347
|
+
? RichStruct.fromPartial(object.data)
|
14348
|
+
: undefined;
|
14349
|
+
message.runtimeInfo = (object.runtimeInfo !== undefined && object.runtimeInfo !== null)
|
14350
|
+
? RuntimeInfo.fromPartial(object.runtimeInfo)
|
14351
|
+
: undefined;
|
14352
|
+
return message;
|
14353
|
+
},
|
14354
|
+
};
|
14355
|
+
|
13438
14356
|
function createBaseExportResult(): ExportResult {
|
13439
14357
|
return { metadata: undefined, payload: "", runtimeInfo: undefined };
|
13440
14358
|
}
|