@sentio/runtime 2.59.0-rc.3 → 2.59.0-rc.31
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-BPGFX5S5.js → chunk-CPLWSUD7.js} +2 -2
- package/lib/{chunk-ZUTD563J.js → chunk-FO2V2K7T.js} +1020 -34
- package/lib/chunk-FO2V2K7T.js.map +1 -0
- package/lib/{chunk-QELD44EL.js → chunk-X2VTMTYL.js} +52 -24
- package/lib/{chunk-QELD44EL.js.map → chunk-X2VTMTYL.js.map} +1 -1
- package/lib/index.d.ts +627 -16
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +106 -55
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +3 -3
- package/package.json +1 -1
- package/src/full-service.ts +59 -13
- package/src/gen/processor/protos/processor.ts +1099 -125
- package/src/gen/service/common/protos/common.ts +304 -1
- package/src/index.ts +7 -0
- package/src/metrics.ts +8 -4
- package/src/plugin.ts +24 -0
- package/src/service-manager.ts +50 -30
- package/src/service.ts +53 -21
- package/src/utils.ts +1 -0
- package/lib/chunk-ZUTD563J.js.map +0 -1
- /package/lib/{chunk-BPGFX5S5.js.map → chunk-CPLWSUD7.js.map} +0 -0
@@ -612,6 +612,7 @@ export interface AccountConfig {
|
|
612
612
|
chainId: string;
|
613
613
|
address: string;
|
614
614
|
startBlock: bigint;
|
615
|
+
endBlock: bigint;
|
615
616
|
intervalConfigs: OnIntervalConfig[];
|
616
617
|
/** @deprecated */
|
617
618
|
aptosIntervalConfigs: AptosOnIntervalConfig[];
|
@@ -792,6 +793,7 @@ export interface MoveCallHandlerConfig {
|
|
792
793
|
|
793
794
|
export interface MoveResourceChangeConfig {
|
794
795
|
type: string;
|
796
|
+
includeDeleted: boolean;
|
795
797
|
handlerId: number;
|
796
798
|
handlerName: string;
|
797
799
|
}
|
@@ -910,12 +912,71 @@ export interface ProcessStreamRequest {
|
|
910
912
|
processId: number;
|
911
913
|
binding?: DataBinding | undefined;
|
912
914
|
dbResult?: DBResponse | undefined;
|
915
|
+
start?: boolean | undefined;
|
913
916
|
}
|
914
917
|
|
915
918
|
export interface ProcessStreamResponse {
|
916
919
|
processId: number;
|
917
920
|
dbRequest?: DBRequest | undefined;
|
918
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;
|
919
980
|
}
|
920
981
|
|
921
982
|
export interface PreprocessStreamRequest {
|
@@ -955,10 +1016,64 @@ export interface EntityList {
|
|
955
1016
|
entities: Entity[];
|
956
1017
|
}
|
957
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
|
+
|
958
1072
|
export interface DBRequest {
|
959
1073
|
opId: bigint;
|
960
1074
|
get?: DBRequest_DBGet | undefined;
|
961
1075
|
upsert?: DBRequest_DBUpsert | undefined;
|
1076
|
+
update?: DBRequest_DBUpdate | undefined;
|
962
1077
|
delete?: DBRequest_DBDelete | undefined;
|
963
1078
|
list?: DBRequest_DBList | undefined;
|
964
1079
|
}
|
@@ -1075,6 +1190,12 @@ export interface DBRequest_DBUpsert {
|
|
1075
1190
|
entityData: RichStruct[];
|
1076
1191
|
}
|
1077
1192
|
|
1193
|
+
export interface DBRequest_DBUpdate {
|
1194
|
+
entity: string[];
|
1195
|
+
id: string[];
|
1196
|
+
entityData: EntityUpdateData[];
|
1197
|
+
}
|
1198
|
+
|
1078
1199
|
export interface DBRequest_DBDelete {
|
1079
1200
|
entity: string[];
|
1080
1201
|
id: string[];
|
@@ -1113,10 +1234,20 @@ export interface Data {
|
|
1113
1234
|
}
|
1114
1235
|
|
1115
1236
|
export interface Data_EthLog {
|
1237
|
+
/** @deprecated */
|
1116
1238
|
log: { [key: string]: any } | undefined;
|
1117
|
-
timestamp:
|
1118
|
-
|
1119
|
-
|
1239
|
+
timestamp:
|
1240
|
+
| Date
|
1241
|
+
| undefined;
|
1242
|
+
/** @deprecated */
|
1243
|
+
transaction?:
|
1244
|
+
| { [key: string]: any }
|
1245
|
+
| undefined;
|
1246
|
+
/** @deprecated */
|
1247
|
+
transactionReceipt?:
|
1248
|
+
| { [key: string]: any }
|
1249
|
+
| undefined;
|
1250
|
+
/** @deprecated */
|
1120
1251
|
block?: { [key: string]: any } | undefined;
|
1121
1252
|
rawLog: string;
|
1122
1253
|
rawTransaction?: string | undefined;
|
@@ -1129,10 +1260,20 @@ export interface Data_EthBlock {
|
|
1129
1260
|
}
|
1130
1261
|
|
1131
1262
|
export interface Data_EthTransaction {
|
1263
|
+
/** @deprecated */
|
1132
1264
|
transaction: { [key: string]: any } | undefined;
|
1133
|
-
timestamp:
|
1134
|
-
|
1135
|
-
|
1265
|
+
timestamp:
|
1266
|
+
| Date
|
1267
|
+
| undefined;
|
1268
|
+
/** @deprecated */
|
1269
|
+
transactionReceipt?:
|
1270
|
+
| { [key: string]: any }
|
1271
|
+
| undefined;
|
1272
|
+
/** @deprecated */
|
1273
|
+
block?:
|
1274
|
+
| { [key: string]: any }
|
1275
|
+
| undefined;
|
1276
|
+
/** @deprecated */
|
1136
1277
|
trace?: { [key: string]: any } | undefined;
|
1137
1278
|
rawTransaction: string;
|
1138
1279
|
rawTransactionReceipt?: string | undefined;
|
@@ -1279,6 +1420,7 @@ export interface ProcessResult {
|
|
1279
1420
|
events: EventTrackingResult[];
|
1280
1421
|
exports: ExportResult[];
|
1281
1422
|
states: StateResult | undefined;
|
1423
|
+
timeseriesResult: TimeseriesResult[];
|
1282
1424
|
}
|
1283
1425
|
|
1284
1426
|
export interface EthCallParam {
|
@@ -1367,6 +1509,52 @@ export interface EventTrackingResult {
|
|
1367
1509
|
noMetric: boolean;
|
1368
1510
|
}
|
1369
1511
|
|
1512
|
+
export interface TimeseriesResult {
|
1513
|
+
metadata: RecordMetaData | undefined;
|
1514
|
+
type: TimeseriesResult_TimeseriesType;
|
1515
|
+
data: RichStruct | undefined;
|
1516
|
+
runtimeInfo: RuntimeInfo | undefined;
|
1517
|
+
}
|
1518
|
+
|
1519
|
+
export enum TimeseriesResult_TimeseriesType {
|
1520
|
+
EVENT = 0,
|
1521
|
+
GAUGE = 1,
|
1522
|
+
COUNTER = 2,
|
1523
|
+
UNRECOGNIZED = -1,
|
1524
|
+
}
|
1525
|
+
|
1526
|
+
export function timeseriesResult_TimeseriesTypeFromJSON(object: any): TimeseriesResult_TimeseriesType {
|
1527
|
+
switch (object) {
|
1528
|
+
case 0:
|
1529
|
+
case "EVENT":
|
1530
|
+
return TimeseriesResult_TimeseriesType.EVENT;
|
1531
|
+
case 1:
|
1532
|
+
case "GAUGE":
|
1533
|
+
return TimeseriesResult_TimeseriesType.GAUGE;
|
1534
|
+
case 2:
|
1535
|
+
case "COUNTER":
|
1536
|
+
return TimeseriesResult_TimeseriesType.COUNTER;
|
1537
|
+
case -1:
|
1538
|
+
case "UNRECOGNIZED":
|
1539
|
+
default:
|
1540
|
+
return TimeseriesResult_TimeseriesType.UNRECOGNIZED;
|
1541
|
+
}
|
1542
|
+
}
|
1543
|
+
|
1544
|
+
export function timeseriesResult_TimeseriesTypeToJSON(object: TimeseriesResult_TimeseriesType): string {
|
1545
|
+
switch (object) {
|
1546
|
+
case TimeseriesResult_TimeseriesType.EVENT:
|
1547
|
+
return "EVENT";
|
1548
|
+
case TimeseriesResult_TimeseriesType.GAUGE:
|
1549
|
+
return "GAUGE";
|
1550
|
+
case TimeseriesResult_TimeseriesType.COUNTER:
|
1551
|
+
return "COUNTER";
|
1552
|
+
case TimeseriesResult_TimeseriesType.UNRECOGNIZED:
|
1553
|
+
default:
|
1554
|
+
return "UNRECOGNIZED";
|
1555
|
+
}
|
1556
|
+
}
|
1557
|
+
|
1370
1558
|
export interface ExportResult {
|
1371
1559
|
metadata: RecordMetaData | undefined;
|
1372
1560
|
payload: string;
|
@@ -3319,6 +3507,7 @@ function createBaseAccountConfig(): AccountConfig {
|
|
3319
3507
|
chainId: "",
|
3320
3508
|
address: "",
|
3321
3509
|
startBlock: BigInt("0"),
|
3510
|
+
endBlock: BigInt("0"),
|
3322
3511
|
intervalConfigs: [],
|
3323
3512
|
aptosIntervalConfigs: [],
|
3324
3513
|
moveIntervalConfigs: [],
|
@@ -3342,6 +3531,12 @@ export const AccountConfig = {
|
|
3342
3531
|
}
|
3343
3532
|
writer.uint32(24).uint64(message.startBlock.toString());
|
3344
3533
|
}
|
3534
|
+
if (message.endBlock !== BigInt("0")) {
|
3535
|
+
if (BigInt.asUintN(64, message.endBlock) !== message.endBlock) {
|
3536
|
+
throw new globalThis.Error("value provided for field message.endBlock of type uint64 too large");
|
3537
|
+
}
|
3538
|
+
writer.uint32(80).uint64(message.endBlock.toString());
|
3539
|
+
}
|
3345
3540
|
for (const v of message.intervalConfigs) {
|
3346
3541
|
OnIntervalConfig.encode(v!, writer.uint32(34).fork()).ldelim();
|
3347
3542
|
}
|
@@ -3391,6 +3586,13 @@ export const AccountConfig = {
|
|
3391
3586
|
|
3392
3587
|
message.startBlock = longToBigint(reader.uint64() as Long);
|
3393
3588
|
continue;
|
3589
|
+
case 10:
|
3590
|
+
if (tag !== 80) {
|
3591
|
+
break;
|
3592
|
+
}
|
3593
|
+
|
3594
|
+
message.endBlock = longToBigint(reader.uint64() as Long);
|
3595
|
+
continue;
|
3394
3596
|
case 4:
|
3395
3597
|
if (tag !== 34) {
|
3396
3598
|
break;
|
@@ -3447,6 +3649,7 @@ export const AccountConfig = {
|
|
3447
3649
|
chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
|
3448
3650
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
3449
3651
|
startBlock: isSet(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
|
3652
|
+
endBlock: isSet(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
|
3450
3653
|
intervalConfigs: globalThis.Array.isArray(object?.intervalConfigs)
|
3451
3654
|
? object.intervalConfigs.map((e: any) => OnIntervalConfig.fromJSON(e))
|
3452
3655
|
: [],
|
@@ -3479,6 +3682,9 @@ export const AccountConfig = {
|
|
3479
3682
|
if (message.startBlock !== BigInt("0")) {
|
3480
3683
|
obj.startBlock = message.startBlock.toString();
|
3481
3684
|
}
|
3685
|
+
if (message.endBlock !== BigInt("0")) {
|
3686
|
+
obj.endBlock = message.endBlock.toString();
|
3687
|
+
}
|
3482
3688
|
if (message.intervalConfigs?.length) {
|
3483
3689
|
obj.intervalConfigs = message.intervalConfigs.map((e) => OnIntervalConfig.toJSON(e));
|
3484
3690
|
}
|
@@ -3508,6 +3714,7 @@ export const AccountConfig = {
|
|
3508
3714
|
message.chainId = object.chainId ?? "";
|
3509
3715
|
message.address = object.address ?? "";
|
3510
3716
|
message.startBlock = object.startBlock ?? BigInt("0");
|
3717
|
+
message.endBlock = object.endBlock ?? BigInt("0");
|
3511
3718
|
message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
|
3512
3719
|
message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
|
3513
3720
|
message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
|
@@ -6093,7 +6300,7 @@ export const MoveCallHandlerConfig = {
|
|
6093
6300
|
};
|
6094
6301
|
|
6095
6302
|
function createBaseMoveResourceChangeConfig(): MoveResourceChangeConfig {
|
6096
|
-
return { type: "", handlerId: 0, handlerName: "" };
|
6303
|
+
return { type: "", includeDeleted: false, handlerId: 0, handlerName: "" };
|
6097
6304
|
}
|
6098
6305
|
|
6099
6306
|
export const MoveResourceChangeConfig = {
|
@@ -6101,6 +6308,9 @@ export const MoveResourceChangeConfig = {
|
|
6101
6308
|
if (message.type !== "") {
|
6102
6309
|
writer.uint32(10).string(message.type);
|
6103
6310
|
}
|
6311
|
+
if (message.includeDeleted !== false) {
|
6312
|
+
writer.uint32(32).bool(message.includeDeleted);
|
6313
|
+
}
|
6104
6314
|
if (message.handlerId !== 0) {
|
6105
6315
|
writer.uint32(16).int32(message.handlerId);
|
6106
6316
|
}
|
@@ -6124,6 +6334,13 @@ export const MoveResourceChangeConfig = {
|
|
6124
6334
|
|
6125
6335
|
message.type = reader.string();
|
6126
6336
|
continue;
|
6337
|
+
case 4:
|
6338
|
+
if (tag !== 32) {
|
6339
|
+
break;
|
6340
|
+
}
|
6341
|
+
|
6342
|
+
message.includeDeleted = reader.bool();
|
6343
|
+
continue;
|
6127
6344
|
case 2:
|
6128
6345
|
if (tag !== 16) {
|
6129
6346
|
break;
|
@@ -6150,6 +6367,7 @@ export const MoveResourceChangeConfig = {
|
|
6150
6367
|
fromJSON(object: any): MoveResourceChangeConfig {
|
6151
6368
|
return {
|
6152
6369
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
6370
|
+
includeDeleted: isSet(object.includeDeleted) ? globalThis.Boolean(object.includeDeleted) : false,
|
6153
6371
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
6154
6372
|
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
6155
6373
|
};
|
@@ -6160,6 +6378,9 @@ export const MoveResourceChangeConfig = {
|
|
6160
6378
|
if (message.type !== "") {
|
6161
6379
|
obj.type = message.type;
|
6162
6380
|
}
|
6381
|
+
if (message.includeDeleted !== false) {
|
6382
|
+
obj.includeDeleted = message.includeDeleted;
|
6383
|
+
}
|
6163
6384
|
if (message.handlerId !== 0) {
|
6164
6385
|
obj.handlerId = Math.round(message.handlerId);
|
6165
6386
|
}
|
@@ -6175,6 +6396,7 @@ export const MoveResourceChangeConfig = {
|
|
6175
6396
|
fromPartial(object: DeepPartial<MoveResourceChangeConfig>): MoveResourceChangeConfig {
|
6176
6397
|
const message = createBaseMoveResourceChangeConfig();
|
6177
6398
|
message.type = object.type ?? "";
|
6399
|
+
message.includeDeleted = object.includeDeleted ?? false;
|
6178
6400
|
message.handlerId = object.handlerId ?? 0;
|
6179
6401
|
message.handlerName = object.handlerName ?? "";
|
6180
6402
|
return message;
|
@@ -7856,7 +8078,7 @@ export const ProcessBindingResponse = {
|
|
7856
8078
|
};
|
7857
8079
|
|
7858
8080
|
function createBaseProcessStreamRequest(): ProcessStreamRequest {
|
7859
|
-
return { processId: 0, binding: undefined, dbResult: undefined };
|
8081
|
+
return { processId: 0, binding: undefined, dbResult: undefined, start: undefined };
|
7860
8082
|
}
|
7861
8083
|
|
7862
8084
|
export const ProcessStreamRequest = {
|
@@ -7870,6 +8092,9 @@ export const ProcessStreamRequest = {
|
|
7870
8092
|
if (message.dbResult !== undefined) {
|
7871
8093
|
DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
|
7872
8094
|
}
|
8095
|
+
if (message.start !== undefined) {
|
8096
|
+
writer.uint32(32).bool(message.start);
|
8097
|
+
}
|
7873
8098
|
return writer;
|
7874
8099
|
},
|
7875
8100
|
|
@@ -7901,6 +8126,13 @@ export const ProcessStreamRequest = {
|
|
7901
8126
|
|
7902
8127
|
message.dbResult = DBResponse.decode(reader, reader.uint32());
|
7903
8128
|
continue;
|
8129
|
+
case 4:
|
8130
|
+
if (tag !== 32) {
|
8131
|
+
break;
|
8132
|
+
}
|
8133
|
+
|
8134
|
+
message.start = reader.bool();
|
8135
|
+
continue;
|
7904
8136
|
}
|
7905
8137
|
if ((tag & 7) === 4 || tag === 0) {
|
7906
8138
|
break;
|
@@ -7915,6 +8147,7 @@ export const ProcessStreamRequest = {
|
|
7915
8147
|
processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
|
7916
8148
|
binding: isSet(object.binding) ? DataBinding.fromJSON(object.binding) : undefined,
|
7917
8149
|
dbResult: isSet(object.dbResult) ? DBResponse.fromJSON(object.dbResult) : undefined,
|
8150
|
+
start: isSet(object.start) ? globalThis.Boolean(object.start) : undefined,
|
7918
8151
|
};
|
7919
8152
|
},
|
7920
8153
|
|
@@ -7929,6 +8162,9 @@ export const ProcessStreamRequest = {
|
|
7929
8162
|
if (message.dbResult !== undefined) {
|
7930
8163
|
obj.dbResult = DBResponse.toJSON(message.dbResult);
|
7931
8164
|
}
|
8165
|
+
if (message.start !== undefined) {
|
8166
|
+
obj.start = message.start;
|
8167
|
+
}
|
7932
8168
|
return obj;
|
7933
8169
|
},
|
7934
8170
|
|
@@ -7944,12 +8180,13 @@ export const ProcessStreamRequest = {
|
|
7944
8180
|
message.dbResult = (object.dbResult !== undefined && object.dbResult !== null)
|
7945
8181
|
? DBResponse.fromPartial(object.dbResult)
|
7946
8182
|
: undefined;
|
8183
|
+
message.start = object.start ?? undefined;
|
7947
8184
|
return message;
|
7948
8185
|
},
|
7949
8186
|
};
|
7950
8187
|
|
7951
8188
|
function createBaseProcessStreamResponse(): ProcessStreamResponse {
|
7952
|
-
return { processId: 0, dbRequest: undefined, result: undefined };
|
8189
|
+
return { processId: 0, dbRequest: undefined, result: undefined, partitions: undefined };
|
7953
8190
|
}
|
7954
8191
|
|
7955
8192
|
export const ProcessStreamResponse = {
|
@@ -7963,6 +8200,9 @@ export const ProcessStreamResponse = {
|
|
7963
8200
|
if (message.result !== undefined) {
|
7964
8201
|
ProcessResult.encode(message.result, writer.uint32(26).fork()).ldelim();
|
7965
8202
|
}
|
8203
|
+
if (message.partitions !== undefined) {
|
8204
|
+
ProcessStreamResponse_Partitions.encode(message.partitions, writer.uint32(34).fork()).ldelim();
|
8205
|
+
}
|
7966
8206
|
return writer;
|
7967
8207
|
},
|
7968
8208
|
|
@@ -7994,6 +8234,13 @@ export const ProcessStreamResponse = {
|
|
7994
8234
|
|
7995
8235
|
message.result = ProcessResult.decode(reader, reader.uint32());
|
7996
8236
|
continue;
|
8237
|
+
case 4:
|
8238
|
+
if (tag !== 34) {
|
8239
|
+
break;
|
8240
|
+
}
|
8241
|
+
|
8242
|
+
message.partitions = ProcessStreamResponse_Partitions.decode(reader, reader.uint32());
|
8243
|
+
continue;
|
7997
8244
|
}
|
7998
8245
|
if ((tag & 7) === 4 || tag === 0) {
|
7999
8246
|
break;
|
@@ -8008,6 +8255,7 @@ export const ProcessStreamResponse = {
|
|
8008
8255
|
processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
|
8009
8256
|
dbRequest: isSet(object.dbRequest) ? DBRequest.fromJSON(object.dbRequest) : undefined,
|
8010
8257
|
result: isSet(object.result) ? ProcessResult.fromJSON(object.result) : undefined,
|
8258
|
+
partitions: isSet(object.partitions) ? ProcessStreamResponse_Partitions.fromJSON(object.partitions) : undefined,
|
8011
8259
|
};
|
8012
8260
|
},
|
8013
8261
|
|
@@ -8022,6 +8270,9 @@ export const ProcessStreamResponse = {
|
|
8022
8270
|
if (message.result !== undefined) {
|
8023
8271
|
obj.result = ProcessResult.toJSON(message.result);
|
8024
8272
|
}
|
8273
|
+
if (message.partitions !== undefined) {
|
8274
|
+
obj.partitions = ProcessStreamResponse_Partitions.toJSON(message.partitions);
|
8275
|
+
}
|
8025
8276
|
return obj;
|
8026
8277
|
},
|
8027
8278
|
|
@@ -8037,55 +8288,42 @@ export const ProcessStreamResponse = {
|
|
8037
8288
|
message.result = (object.result !== undefined && object.result !== null)
|
8038
8289
|
? ProcessResult.fromPartial(object.result)
|
8039
8290
|
: undefined;
|
8291
|
+
message.partitions = (object.partitions !== undefined && object.partitions !== null)
|
8292
|
+
? ProcessStreamResponse_Partitions.fromPartial(object.partitions)
|
8293
|
+
: undefined;
|
8040
8294
|
return message;
|
8041
8295
|
},
|
8042
8296
|
};
|
8043
8297
|
|
8044
|
-
function
|
8045
|
-
return {
|
8298
|
+
function createBaseProcessStreamResponse_Partitions(): ProcessStreamResponse_Partitions {
|
8299
|
+
return { partitions: {} };
|
8046
8300
|
}
|
8047
8301
|
|
8048
|
-
export const
|
8049
|
-
encode(message:
|
8050
|
-
|
8051
|
-
writer.uint32(
|
8052
|
-
|
8053
|
-
|
8054
|
-
PreprocessStreamRequest_DataBindings.encode(message.bindings, writer.uint32(18).fork()).ldelim();
|
8055
|
-
}
|
8056
|
-
if (message.dbResult !== undefined) {
|
8057
|
-
DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
|
8058
|
-
}
|
8302
|
+
export const ProcessStreamResponse_Partitions = {
|
8303
|
+
encode(message: ProcessStreamResponse_Partitions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8304
|
+
Object.entries(message.partitions).forEach(([key, value]) => {
|
8305
|
+
ProcessStreamResponse_Partitions_PartitionsEntry.encode({ key: key as any, value }, writer.uint32(10).fork())
|
8306
|
+
.ldelim();
|
8307
|
+
});
|
8059
8308
|
return writer;
|
8060
8309
|
},
|
8061
8310
|
|
8062
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
8311
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponse_Partitions {
|
8063
8312
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8064
8313
|
let end = length === undefined ? reader.len : reader.pos + length;
|
8065
|
-
const message =
|
8314
|
+
const message = createBaseProcessStreamResponse_Partitions();
|
8066
8315
|
while (reader.pos < end) {
|
8067
8316
|
const tag = reader.uint32();
|
8068
8317
|
switch (tag >>> 3) {
|
8069
8318
|
case 1:
|
8070
|
-
if (tag !==
|
8071
|
-
break;
|
8072
|
-
}
|
8073
|
-
|
8074
|
-
message.processId = reader.int32();
|
8075
|
-
continue;
|
8076
|
-
case 2:
|
8077
|
-
if (tag !== 18) {
|
8319
|
+
if (tag !== 10) {
|
8078
8320
|
break;
|
8079
8321
|
}
|
8080
8322
|
|
8081
|
-
|
8082
|
-
|
8083
|
-
|
8084
|
-
if (tag !== 26) {
|
8085
|
-
break;
|
8323
|
+
const entry1 = ProcessStreamResponse_Partitions_PartitionsEntry.decode(reader, reader.uint32());
|
8324
|
+
if (entry1.value !== undefined) {
|
8325
|
+
message.partitions[entry1.key] = entry1.value;
|
8086
8326
|
}
|
8087
|
-
|
8088
|
-
message.dbResult = DBResponse.decode(reader, reader.uint32());
|
8089
8327
|
continue;
|
8090
8328
|
}
|
8091
8329
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -8096,60 +8334,70 @@ export const PreprocessStreamRequest = {
|
|
8096
8334
|
return message;
|
8097
8335
|
},
|
8098
8336
|
|
8099
|
-
fromJSON(object: any):
|
8337
|
+
fromJSON(object: any): ProcessStreamResponse_Partitions {
|
8100
8338
|
return {
|
8101
|
-
|
8102
|
-
|
8103
|
-
|
8339
|
+
partitions: isObject(object.partitions)
|
8340
|
+
? Object.entries(object.partitions).reduce<{ [key: number]: ProcessStreamResponse_Partitions_Partition }>(
|
8341
|
+
(acc, [key, value]) => {
|
8342
|
+
acc[globalThis.Number(key)] = ProcessStreamResponse_Partitions_Partition.fromJSON(value);
|
8343
|
+
return acc;
|
8344
|
+
},
|
8345
|
+
{},
|
8346
|
+
)
|
8347
|
+
: {},
|
8104
8348
|
};
|
8105
8349
|
},
|
8106
8350
|
|
8107
|
-
toJSON(message:
|
8351
|
+
toJSON(message: ProcessStreamResponse_Partitions): unknown {
|
8108
8352
|
const obj: any = {};
|
8109
|
-
if (message.
|
8110
|
-
|
8111
|
-
|
8112
|
-
|
8113
|
-
|
8114
|
-
|
8115
|
-
|
8116
|
-
|
8353
|
+
if (message.partitions) {
|
8354
|
+
const entries = Object.entries(message.partitions);
|
8355
|
+
if (entries.length > 0) {
|
8356
|
+
obj.partitions = {};
|
8357
|
+
entries.forEach(([k, v]) => {
|
8358
|
+
obj.partitions[k] = ProcessStreamResponse_Partitions_Partition.toJSON(v);
|
8359
|
+
});
|
8360
|
+
}
|
8117
8361
|
}
|
8118
8362
|
return obj;
|
8119
8363
|
},
|
8120
8364
|
|
8121
|
-
create(base?: DeepPartial<
|
8122
|
-
return
|
8365
|
+
create(base?: DeepPartial<ProcessStreamResponse_Partitions>): ProcessStreamResponse_Partitions {
|
8366
|
+
return ProcessStreamResponse_Partitions.fromPartial(base ?? {});
|
8123
8367
|
},
|
8124
|
-
fromPartial(object: DeepPartial<
|
8125
|
-
const message =
|
8126
|
-
message.
|
8127
|
-
|
8128
|
-
|
8129
|
-
|
8130
|
-
|
8131
|
-
|
8132
|
-
|
8368
|
+
fromPartial(object: DeepPartial<ProcessStreamResponse_Partitions>): ProcessStreamResponse_Partitions {
|
8369
|
+
const message = createBaseProcessStreamResponse_Partitions();
|
8370
|
+
message.partitions = Object.entries(object.partitions ?? {}).reduce<
|
8371
|
+
{ [key: number]: ProcessStreamResponse_Partitions_Partition }
|
8372
|
+
>((acc, [key, value]) => {
|
8373
|
+
if (value !== undefined) {
|
8374
|
+
acc[globalThis.Number(key)] = ProcessStreamResponse_Partitions_Partition.fromPartial(value);
|
8375
|
+
}
|
8376
|
+
return acc;
|
8377
|
+
}, {});
|
8133
8378
|
return message;
|
8134
8379
|
},
|
8135
8380
|
};
|
8136
8381
|
|
8137
|
-
function
|
8138
|
-
return {
|
8382
|
+
function createBaseProcessStreamResponse_Partitions_Partition(): ProcessStreamResponse_Partitions_Partition {
|
8383
|
+
return { userValue: undefined, sysValue: undefined };
|
8139
8384
|
}
|
8140
8385
|
|
8141
|
-
export const
|
8142
|
-
encode(message:
|
8143
|
-
|
8144
|
-
|
8386
|
+
export const ProcessStreamResponse_Partitions_Partition = {
|
8387
|
+
encode(message: ProcessStreamResponse_Partitions_Partition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8388
|
+
if (message.userValue !== undefined) {
|
8389
|
+
writer.uint32(10).string(message.userValue);
|
8390
|
+
}
|
8391
|
+
if (message.sysValue !== undefined) {
|
8392
|
+
writer.uint32(16).int32(message.sysValue);
|
8145
8393
|
}
|
8146
8394
|
return writer;
|
8147
8395
|
},
|
8148
8396
|
|
8149
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
8397
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponse_Partitions_Partition {
|
8150
8398
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8151
8399
|
let end = length === undefined ? reader.len : reader.pos + length;
|
8152
|
-
const message =
|
8400
|
+
const message = createBaseProcessStreamResponse_Partitions_Partition();
|
8153
8401
|
while (reader.pos < end) {
|
8154
8402
|
const tag = reader.uint32();
|
8155
8403
|
switch (tag >>> 3) {
|
@@ -8158,7 +8406,14 @@ export const PreprocessStreamRequest_DataBindings = {
|
|
8158
8406
|
break;
|
8159
8407
|
}
|
8160
8408
|
|
8161
|
-
message.
|
8409
|
+
message.userValue = reader.string();
|
8410
|
+
continue;
|
8411
|
+
case 2:
|
8412
|
+
if (tag !== 16) {
|
8413
|
+
break;
|
8414
|
+
}
|
8415
|
+
|
8416
|
+
message.sysValue = reader.int32() as any;
|
8162
8417
|
continue;
|
8163
8418
|
}
|
8164
8419
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -8169,40 +8424,284 @@ export const PreprocessStreamRequest_DataBindings = {
|
|
8169
8424
|
return message;
|
8170
8425
|
},
|
8171
8426
|
|
8172
|
-
fromJSON(object: any):
|
8427
|
+
fromJSON(object: any): ProcessStreamResponse_Partitions_Partition {
|
8173
8428
|
return {
|
8174
|
-
|
8175
|
-
|
8176
|
-
|
8429
|
+
userValue: isSet(object.userValue) ? globalThis.String(object.userValue) : undefined,
|
8430
|
+
sysValue: isSet(object.sysValue)
|
8431
|
+
? processStreamResponse_Partitions_Partition_SysValueFromJSON(object.sysValue)
|
8432
|
+
: undefined,
|
8177
8433
|
};
|
8178
8434
|
},
|
8179
8435
|
|
8180
|
-
toJSON(message:
|
8436
|
+
toJSON(message: ProcessStreamResponse_Partitions_Partition): unknown {
|
8181
8437
|
const obj: any = {};
|
8182
|
-
if (message.
|
8183
|
-
obj.
|
8438
|
+
if (message.userValue !== undefined) {
|
8439
|
+
obj.userValue = message.userValue;
|
8440
|
+
}
|
8441
|
+
if (message.sysValue !== undefined) {
|
8442
|
+
obj.sysValue = processStreamResponse_Partitions_Partition_SysValueToJSON(message.sysValue);
|
8184
8443
|
}
|
8185
8444
|
return obj;
|
8186
8445
|
},
|
8187
8446
|
|
8188
|
-
create(base?: DeepPartial<
|
8189
|
-
return
|
8447
|
+
create(base?: DeepPartial<ProcessStreamResponse_Partitions_Partition>): ProcessStreamResponse_Partitions_Partition {
|
8448
|
+
return ProcessStreamResponse_Partitions_Partition.fromPartial(base ?? {});
|
8190
8449
|
},
|
8191
|
-
fromPartial(
|
8192
|
-
|
8193
|
-
|
8450
|
+
fromPartial(
|
8451
|
+
object: DeepPartial<ProcessStreamResponse_Partitions_Partition>,
|
8452
|
+
): ProcessStreamResponse_Partitions_Partition {
|
8453
|
+
const message = createBaseProcessStreamResponse_Partitions_Partition();
|
8454
|
+
message.userValue = object.userValue ?? undefined;
|
8455
|
+
message.sysValue = object.sysValue ?? undefined;
|
8194
8456
|
return message;
|
8195
8457
|
},
|
8196
8458
|
};
|
8197
8459
|
|
8198
|
-
function
|
8199
|
-
return {
|
8460
|
+
function createBaseProcessStreamResponse_Partitions_PartitionsEntry(): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8461
|
+
return { key: 0, value: undefined };
|
8200
8462
|
}
|
8201
8463
|
|
8202
|
-
export const
|
8203
|
-
encode(
|
8204
|
-
|
8205
|
-
|
8464
|
+
export const ProcessStreamResponse_Partitions_PartitionsEntry = {
|
8465
|
+
encode(
|
8466
|
+
message: ProcessStreamResponse_Partitions_PartitionsEntry,
|
8467
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
8468
|
+
): _m0.Writer {
|
8469
|
+
if (message.key !== 0) {
|
8470
|
+
writer.uint32(8).int32(message.key);
|
8471
|
+
}
|
8472
|
+
if (message.value !== undefined) {
|
8473
|
+
ProcessStreamResponse_Partitions_Partition.encode(message.value, writer.uint32(18).fork()).ldelim();
|
8474
|
+
}
|
8475
|
+
return writer;
|
8476
|
+
},
|
8477
|
+
|
8478
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8479
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8480
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8481
|
+
const message = createBaseProcessStreamResponse_Partitions_PartitionsEntry();
|
8482
|
+
while (reader.pos < end) {
|
8483
|
+
const tag = reader.uint32();
|
8484
|
+
switch (tag >>> 3) {
|
8485
|
+
case 1:
|
8486
|
+
if (tag !== 8) {
|
8487
|
+
break;
|
8488
|
+
}
|
8489
|
+
|
8490
|
+
message.key = reader.int32();
|
8491
|
+
continue;
|
8492
|
+
case 2:
|
8493
|
+
if (tag !== 18) {
|
8494
|
+
break;
|
8495
|
+
}
|
8496
|
+
|
8497
|
+
message.value = ProcessStreamResponse_Partitions_Partition.decode(reader, reader.uint32());
|
8498
|
+
continue;
|
8499
|
+
}
|
8500
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8501
|
+
break;
|
8502
|
+
}
|
8503
|
+
reader.skipType(tag & 7);
|
8504
|
+
}
|
8505
|
+
return message;
|
8506
|
+
},
|
8507
|
+
|
8508
|
+
fromJSON(object: any): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8509
|
+
return {
|
8510
|
+
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
8511
|
+
value: isSet(object.value) ? ProcessStreamResponse_Partitions_Partition.fromJSON(object.value) : undefined,
|
8512
|
+
};
|
8513
|
+
},
|
8514
|
+
|
8515
|
+
toJSON(message: ProcessStreamResponse_Partitions_PartitionsEntry): unknown {
|
8516
|
+
const obj: any = {};
|
8517
|
+
if (message.key !== 0) {
|
8518
|
+
obj.key = Math.round(message.key);
|
8519
|
+
}
|
8520
|
+
if (message.value !== undefined) {
|
8521
|
+
obj.value = ProcessStreamResponse_Partitions_Partition.toJSON(message.value);
|
8522
|
+
}
|
8523
|
+
return obj;
|
8524
|
+
},
|
8525
|
+
|
8526
|
+
create(
|
8527
|
+
base?: DeepPartial<ProcessStreamResponse_Partitions_PartitionsEntry>,
|
8528
|
+
): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8529
|
+
return ProcessStreamResponse_Partitions_PartitionsEntry.fromPartial(base ?? {});
|
8530
|
+
},
|
8531
|
+
fromPartial(
|
8532
|
+
object: DeepPartial<ProcessStreamResponse_Partitions_PartitionsEntry>,
|
8533
|
+
): ProcessStreamResponse_Partitions_PartitionsEntry {
|
8534
|
+
const message = createBaseProcessStreamResponse_Partitions_PartitionsEntry();
|
8535
|
+
message.key = object.key ?? 0;
|
8536
|
+
message.value = (object.value !== undefined && object.value !== null)
|
8537
|
+
? ProcessStreamResponse_Partitions_Partition.fromPartial(object.value)
|
8538
|
+
: undefined;
|
8539
|
+
return message;
|
8540
|
+
},
|
8541
|
+
};
|
8542
|
+
|
8543
|
+
function createBasePreprocessStreamRequest(): PreprocessStreamRequest {
|
8544
|
+
return { processId: 0, bindings: undefined, dbResult: undefined };
|
8545
|
+
}
|
8546
|
+
|
8547
|
+
export const PreprocessStreamRequest = {
|
8548
|
+
encode(message: PreprocessStreamRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8549
|
+
if (message.processId !== 0) {
|
8550
|
+
writer.uint32(8).int32(message.processId);
|
8551
|
+
}
|
8552
|
+
if (message.bindings !== undefined) {
|
8553
|
+
PreprocessStreamRequest_DataBindings.encode(message.bindings, writer.uint32(18).fork()).ldelim();
|
8554
|
+
}
|
8555
|
+
if (message.dbResult !== undefined) {
|
8556
|
+
DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
|
8557
|
+
}
|
8558
|
+
return writer;
|
8559
|
+
},
|
8560
|
+
|
8561
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PreprocessStreamRequest {
|
8562
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8563
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8564
|
+
const message = createBasePreprocessStreamRequest();
|
8565
|
+
while (reader.pos < end) {
|
8566
|
+
const tag = reader.uint32();
|
8567
|
+
switch (tag >>> 3) {
|
8568
|
+
case 1:
|
8569
|
+
if (tag !== 8) {
|
8570
|
+
break;
|
8571
|
+
}
|
8572
|
+
|
8573
|
+
message.processId = reader.int32();
|
8574
|
+
continue;
|
8575
|
+
case 2:
|
8576
|
+
if (tag !== 18) {
|
8577
|
+
break;
|
8578
|
+
}
|
8579
|
+
|
8580
|
+
message.bindings = PreprocessStreamRequest_DataBindings.decode(reader, reader.uint32());
|
8581
|
+
continue;
|
8582
|
+
case 3:
|
8583
|
+
if (tag !== 26) {
|
8584
|
+
break;
|
8585
|
+
}
|
8586
|
+
|
8587
|
+
message.dbResult = DBResponse.decode(reader, reader.uint32());
|
8588
|
+
continue;
|
8589
|
+
}
|
8590
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8591
|
+
break;
|
8592
|
+
}
|
8593
|
+
reader.skipType(tag & 7);
|
8594
|
+
}
|
8595
|
+
return message;
|
8596
|
+
},
|
8597
|
+
|
8598
|
+
fromJSON(object: any): PreprocessStreamRequest {
|
8599
|
+
return {
|
8600
|
+
processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
|
8601
|
+
bindings: isSet(object.bindings) ? PreprocessStreamRequest_DataBindings.fromJSON(object.bindings) : undefined,
|
8602
|
+
dbResult: isSet(object.dbResult) ? DBResponse.fromJSON(object.dbResult) : undefined,
|
8603
|
+
};
|
8604
|
+
},
|
8605
|
+
|
8606
|
+
toJSON(message: PreprocessStreamRequest): unknown {
|
8607
|
+
const obj: any = {};
|
8608
|
+
if (message.processId !== 0) {
|
8609
|
+
obj.processId = Math.round(message.processId);
|
8610
|
+
}
|
8611
|
+
if (message.bindings !== undefined) {
|
8612
|
+
obj.bindings = PreprocessStreamRequest_DataBindings.toJSON(message.bindings);
|
8613
|
+
}
|
8614
|
+
if (message.dbResult !== undefined) {
|
8615
|
+
obj.dbResult = DBResponse.toJSON(message.dbResult);
|
8616
|
+
}
|
8617
|
+
return obj;
|
8618
|
+
},
|
8619
|
+
|
8620
|
+
create(base?: DeepPartial<PreprocessStreamRequest>): PreprocessStreamRequest {
|
8621
|
+
return PreprocessStreamRequest.fromPartial(base ?? {});
|
8622
|
+
},
|
8623
|
+
fromPartial(object: DeepPartial<PreprocessStreamRequest>): PreprocessStreamRequest {
|
8624
|
+
const message = createBasePreprocessStreamRequest();
|
8625
|
+
message.processId = object.processId ?? 0;
|
8626
|
+
message.bindings = (object.bindings !== undefined && object.bindings !== null)
|
8627
|
+
? PreprocessStreamRequest_DataBindings.fromPartial(object.bindings)
|
8628
|
+
: undefined;
|
8629
|
+
message.dbResult = (object.dbResult !== undefined && object.dbResult !== null)
|
8630
|
+
? DBResponse.fromPartial(object.dbResult)
|
8631
|
+
: undefined;
|
8632
|
+
return message;
|
8633
|
+
},
|
8634
|
+
};
|
8635
|
+
|
8636
|
+
function createBasePreprocessStreamRequest_DataBindings(): PreprocessStreamRequest_DataBindings {
|
8637
|
+
return { bindings: [] };
|
8638
|
+
}
|
8639
|
+
|
8640
|
+
export const PreprocessStreamRequest_DataBindings = {
|
8641
|
+
encode(message: PreprocessStreamRequest_DataBindings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8642
|
+
for (const v of message.bindings) {
|
8643
|
+
DataBinding.encode(v!, writer.uint32(10).fork()).ldelim();
|
8644
|
+
}
|
8645
|
+
return writer;
|
8646
|
+
},
|
8647
|
+
|
8648
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PreprocessStreamRequest_DataBindings {
|
8649
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8650
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8651
|
+
const message = createBasePreprocessStreamRequest_DataBindings();
|
8652
|
+
while (reader.pos < end) {
|
8653
|
+
const tag = reader.uint32();
|
8654
|
+
switch (tag >>> 3) {
|
8655
|
+
case 1:
|
8656
|
+
if (tag !== 10) {
|
8657
|
+
break;
|
8658
|
+
}
|
8659
|
+
|
8660
|
+
message.bindings.push(DataBinding.decode(reader, reader.uint32()));
|
8661
|
+
continue;
|
8662
|
+
}
|
8663
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8664
|
+
break;
|
8665
|
+
}
|
8666
|
+
reader.skipType(tag & 7);
|
8667
|
+
}
|
8668
|
+
return message;
|
8669
|
+
},
|
8670
|
+
|
8671
|
+
fromJSON(object: any): PreprocessStreamRequest_DataBindings {
|
8672
|
+
return {
|
8673
|
+
bindings: globalThis.Array.isArray(object?.bindings)
|
8674
|
+
? object.bindings.map((e: any) => DataBinding.fromJSON(e))
|
8675
|
+
: [],
|
8676
|
+
};
|
8677
|
+
},
|
8678
|
+
|
8679
|
+
toJSON(message: PreprocessStreamRequest_DataBindings): unknown {
|
8680
|
+
const obj: any = {};
|
8681
|
+
if (message.bindings?.length) {
|
8682
|
+
obj.bindings = message.bindings.map((e) => DataBinding.toJSON(e));
|
8683
|
+
}
|
8684
|
+
return obj;
|
8685
|
+
},
|
8686
|
+
|
8687
|
+
create(base?: DeepPartial<PreprocessStreamRequest_DataBindings>): PreprocessStreamRequest_DataBindings {
|
8688
|
+
return PreprocessStreamRequest_DataBindings.fromPartial(base ?? {});
|
8689
|
+
},
|
8690
|
+
fromPartial(object: DeepPartial<PreprocessStreamRequest_DataBindings>): PreprocessStreamRequest_DataBindings {
|
8691
|
+
const message = createBasePreprocessStreamRequest_DataBindings();
|
8692
|
+
message.bindings = object.bindings?.map((e) => DataBinding.fromPartial(e)) || [];
|
8693
|
+
return message;
|
8694
|
+
},
|
8695
|
+
};
|
8696
|
+
|
8697
|
+
function createBasePreprocessStreamResponse(): PreprocessStreamResponse {
|
8698
|
+
return { processId: 0, dbRequest: undefined };
|
8699
|
+
}
|
8700
|
+
|
8701
|
+
export const PreprocessStreamResponse = {
|
8702
|
+
encode(message: PreprocessStreamResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8703
|
+
if (message.processId !== 0) {
|
8704
|
+
writer.uint32(8).int32(message.processId);
|
8206
8705
|
}
|
8207
8706
|
if (message.dbRequest !== undefined) {
|
8208
8707
|
DBRequest.encode(message.dbRequest, writer.uint32(18).fork()).ldelim();
|
@@ -8534,47 +9033,266 @@ export const Entity = {
|
|
8534
9033
|
if (message.genBlockChain !== "") {
|
8535
9034
|
obj.genBlockChain = message.genBlockChain;
|
8536
9035
|
}
|
8537
|
-
if (message.genBlockTime !== undefined) {
|
8538
|
-
obj.genBlockTime = message.genBlockTime.toISOString();
|
9036
|
+
if (message.genBlockTime !== undefined) {
|
9037
|
+
obj.genBlockTime = message.genBlockTime.toISOString();
|
9038
|
+
}
|
9039
|
+
if (message.data !== undefined) {
|
9040
|
+
obj.data = RichStruct.toJSON(message.data);
|
9041
|
+
}
|
9042
|
+
return obj;
|
9043
|
+
},
|
9044
|
+
|
9045
|
+
create(base?: DeepPartial<Entity>): Entity {
|
9046
|
+
return Entity.fromPartial(base ?? {});
|
9047
|
+
},
|
9048
|
+
fromPartial(object: DeepPartial<Entity>): Entity {
|
9049
|
+
const message = createBaseEntity();
|
9050
|
+
message.entity = object.entity ?? "";
|
9051
|
+
message.genBlockNumber = object.genBlockNumber ?? BigInt("0");
|
9052
|
+
message.genBlockChain = object.genBlockChain ?? "";
|
9053
|
+
message.genBlockTime = object.genBlockTime ?? undefined;
|
9054
|
+
message.data = (object.data !== undefined && object.data !== null)
|
9055
|
+
? RichStruct.fromPartial(object.data)
|
9056
|
+
: undefined;
|
9057
|
+
return message;
|
9058
|
+
},
|
9059
|
+
};
|
9060
|
+
|
9061
|
+
function createBaseEntityList(): EntityList {
|
9062
|
+
return { entities: [] };
|
9063
|
+
}
|
9064
|
+
|
9065
|
+
export const EntityList = {
|
9066
|
+
encode(message: EntityList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9067
|
+
for (const v of message.entities) {
|
9068
|
+
Entity.encode(v!, writer.uint32(10).fork()).ldelim();
|
9069
|
+
}
|
9070
|
+
return writer;
|
9071
|
+
},
|
9072
|
+
|
9073
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityList {
|
9074
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9075
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9076
|
+
const message = createBaseEntityList();
|
9077
|
+
while (reader.pos < end) {
|
9078
|
+
const tag = reader.uint32();
|
9079
|
+
switch (tag >>> 3) {
|
9080
|
+
case 1:
|
9081
|
+
if (tag !== 10) {
|
9082
|
+
break;
|
9083
|
+
}
|
9084
|
+
|
9085
|
+
message.entities.push(Entity.decode(reader, reader.uint32()));
|
9086
|
+
continue;
|
9087
|
+
}
|
9088
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9089
|
+
break;
|
9090
|
+
}
|
9091
|
+
reader.skipType(tag & 7);
|
9092
|
+
}
|
9093
|
+
return message;
|
9094
|
+
},
|
9095
|
+
|
9096
|
+
fromJSON(object: any): EntityList {
|
9097
|
+
return {
|
9098
|
+
entities: globalThis.Array.isArray(object?.entities) ? object.entities.map((e: any) => Entity.fromJSON(e)) : [],
|
9099
|
+
};
|
9100
|
+
},
|
9101
|
+
|
9102
|
+
toJSON(message: EntityList): unknown {
|
9103
|
+
const obj: any = {};
|
9104
|
+
if (message.entities?.length) {
|
9105
|
+
obj.entities = message.entities.map((e) => Entity.toJSON(e));
|
9106
|
+
}
|
9107
|
+
return obj;
|
9108
|
+
},
|
9109
|
+
|
9110
|
+
create(base?: DeepPartial<EntityList>): EntityList {
|
9111
|
+
return EntityList.fromPartial(base ?? {});
|
9112
|
+
},
|
9113
|
+
fromPartial(object: DeepPartial<EntityList>): EntityList {
|
9114
|
+
const message = createBaseEntityList();
|
9115
|
+
message.entities = object.entities?.map((e) => Entity.fromPartial(e)) || [];
|
9116
|
+
return message;
|
9117
|
+
},
|
9118
|
+
};
|
9119
|
+
|
9120
|
+
function createBaseEntityUpdateData(): EntityUpdateData {
|
9121
|
+
return { fields: {} };
|
9122
|
+
}
|
9123
|
+
|
9124
|
+
export const EntityUpdateData = {
|
9125
|
+
encode(message: EntityUpdateData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9126
|
+
Object.entries(message.fields).forEach(([key, value]) => {
|
9127
|
+
EntityUpdateData_FieldsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();
|
9128
|
+
});
|
9129
|
+
return writer;
|
9130
|
+
},
|
9131
|
+
|
9132
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData {
|
9133
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9134
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9135
|
+
const message = createBaseEntityUpdateData();
|
9136
|
+
while (reader.pos < end) {
|
9137
|
+
const tag = reader.uint32();
|
9138
|
+
switch (tag >>> 3) {
|
9139
|
+
case 1:
|
9140
|
+
if (tag !== 10) {
|
9141
|
+
break;
|
9142
|
+
}
|
9143
|
+
|
9144
|
+
const entry1 = EntityUpdateData_FieldsEntry.decode(reader, reader.uint32());
|
9145
|
+
if (entry1.value !== undefined) {
|
9146
|
+
message.fields[entry1.key] = entry1.value;
|
9147
|
+
}
|
9148
|
+
continue;
|
9149
|
+
}
|
9150
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9151
|
+
break;
|
9152
|
+
}
|
9153
|
+
reader.skipType(tag & 7);
|
9154
|
+
}
|
9155
|
+
return message;
|
9156
|
+
},
|
9157
|
+
|
9158
|
+
fromJSON(object: any): EntityUpdateData {
|
9159
|
+
return {
|
9160
|
+
fields: isObject(object.fields)
|
9161
|
+
? Object.entries(object.fields).reduce<{ [key: string]: EntityUpdateData_FieldValue }>((acc, [key, value]) => {
|
9162
|
+
acc[key] = EntityUpdateData_FieldValue.fromJSON(value);
|
9163
|
+
return acc;
|
9164
|
+
}, {})
|
9165
|
+
: {},
|
9166
|
+
};
|
9167
|
+
},
|
9168
|
+
|
9169
|
+
toJSON(message: EntityUpdateData): unknown {
|
9170
|
+
const obj: any = {};
|
9171
|
+
if (message.fields) {
|
9172
|
+
const entries = Object.entries(message.fields);
|
9173
|
+
if (entries.length > 0) {
|
9174
|
+
obj.fields = {};
|
9175
|
+
entries.forEach(([k, v]) => {
|
9176
|
+
obj.fields[k] = EntityUpdateData_FieldValue.toJSON(v);
|
9177
|
+
});
|
9178
|
+
}
|
9179
|
+
}
|
9180
|
+
return obj;
|
9181
|
+
},
|
9182
|
+
|
9183
|
+
create(base?: DeepPartial<EntityUpdateData>): EntityUpdateData {
|
9184
|
+
return EntityUpdateData.fromPartial(base ?? {});
|
9185
|
+
},
|
9186
|
+
fromPartial(object: DeepPartial<EntityUpdateData>): EntityUpdateData {
|
9187
|
+
const message = createBaseEntityUpdateData();
|
9188
|
+
message.fields = Object.entries(object.fields ?? {}).reduce<{ [key: string]: EntityUpdateData_FieldValue }>(
|
9189
|
+
(acc, [key, value]) => {
|
9190
|
+
if (value !== undefined) {
|
9191
|
+
acc[key] = EntityUpdateData_FieldValue.fromPartial(value);
|
9192
|
+
}
|
9193
|
+
return acc;
|
9194
|
+
},
|
9195
|
+
{},
|
9196
|
+
);
|
9197
|
+
return message;
|
9198
|
+
},
|
9199
|
+
};
|
9200
|
+
|
9201
|
+
function createBaseEntityUpdateData_FieldValue(): EntityUpdateData_FieldValue {
|
9202
|
+
return { value: undefined, op: 0 };
|
9203
|
+
}
|
9204
|
+
|
9205
|
+
export const EntityUpdateData_FieldValue = {
|
9206
|
+
encode(message: EntityUpdateData_FieldValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9207
|
+
if (message.value !== undefined) {
|
9208
|
+
RichValue.encode(message.value, writer.uint32(10).fork()).ldelim();
|
9209
|
+
}
|
9210
|
+
if (message.op !== 0) {
|
9211
|
+
writer.uint32(16).int32(message.op);
|
9212
|
+
}
|
9213
|
+
return writer;
|
9214
|
+
},
|
9215
|
+
|
9216
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData_FieldValue {
|
9217
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9218
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9219
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
9220
|
+
while (reader.pos < end) {
|
9221
|
+
const tag = reader.uint32();
|
9222
|
+
switch (tag >>> 3) {
|
9223
|
+
case 1:
|
9224
|
+
if (tag !== 10) {
|
9225
|
+
break;
|
9226
|
+
}
|
9227
|
+
|
9228
|
+
message.value = RichValue.decode(reader, reader.uint32());
|
9229
|
+
continue;
|
9230
|
+
case 2:
|
9231
|
+
if (tag !== 16) {
|
9232
|
+
break;
|
9233
|
+
}
|
9234
|
+
|
9235
|
+
message.op = reader.int32() as any;
|
9236
|
+
continue;
|
9237
|
+
}
|
9238
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9239
|
+
break;
|
9240
|
+
}
|
9241
|
+
reader.skipType(tag & 7);
|
9242
|
+
}
|
9243
|
+
return message;
|
9244
|
+
},
|
9245
|
+
|
9246
|
+
fromJSON(object: any): EntityUpdateData_FieldValue {
|
9247
|
+
return {
|
9248
|
+
value: isSet(object.value) ? RichValue.fromJSON(object.value) : undefined,
|
9249
|
+
op: isSet(object.op) ? entityUpdateData_OperatorFromJSON(object.op) : 0,
|
9250
|
+
};
|
9251
|
+
},
|
9252
|
+
|
9253
|
+
toJSON(message: EntityUpdateData_FieldValue): unknown {
|
9254
|
+
const obj: any = {};
|
9255
|
+
if (message.value !== undefined) {
|
9256
|
+
obj.value = RichValue.toJSON(message.value);
|
8539
9257
|
}
|
8540
|
-
if (message.
|
8541
|
-
obj.
|
9258
|
+
if (message.op !== 0) {
|
9259
|
+
obj.op = entityUpdateData_OperatorToJSON(message.op);
|
8542
9260
|
}
|
8543
9261
|
return obj;
|
8544
9262
|
},
|
8545
9263
|
|
8546
|
-
create(base?: DeepPartial<
|
8547
|
-
return
|
9264
|
+
create(base?: DeepPartial<EntityUpdateData_FieldValue>): EntityUpdateData_FieldValue {
|
9265
|
+
return EntityUpdateData_FieldValue.fromPartial(base ?? {});
|
8548
9266
|
},
|
8549
|
-
fromPartial(object: DeepPartial<
|
8550
|
-
const message =
|
8551
|
-
message.
|
8552
|
-
|
8553
|
-
message.genBlockChain = object.genBlockChain ?? "";
|
8554
|
-
message.genBlockTime = object.genBlockTime ?? undefined;
|
8555
|
-
message.data = (object.data !== undefined && object.data !== null)
|
8556
|
-
? RichStruct.fromPartial(object.data)
|
9267
|
+
fromPartial(object: DeepPartial<EntityUpdateData_FieldValue>): EntityUpdateData_FieldValue {
|
9268
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
9269
|
+
message.value = (object.value !== undefined && object.value !== null)
|
9270
|
+
? RichValue.fromPartial(object.value)
|
8557
9271
|
: undefined;
|
9272
|
+
message.op = object.op ?? 0;
|
8558
9273
|
return message;
|
8559
9274
|
},
|
8560
9275
|
};
|
8561
9276
|
|
8562
|
-
function
|
8563
|
-
return {
|
9277
|
+
function createBaseEntityUpdateData_FieldsEntry(): EntityUpdateData_FieldsEntry {
|
9278
|
+
return { key: "", value: undefined };
|
8564
9279
|
}
|
8565
9280
|
|
8566
|
-
export const
|
8567
|
-
encode(message:
|
8568
|
-
|
8569
|
-
|
9281
|
+
export const EntityUpdateData_FieldsEntry = {
|
9282
|
+
encode(message: EntityUpdateData_FieldsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9283
|
+
if (message.key !== "") {
|
9284
|
+
writer.uint32(10).string(message.key);
|
9285
|
+
}
|
9286
|
+
if (message.value !== undefined) {
|
9287
|
+
EntityUpdateData_FieldValue.encode(message.value, writer.uint32(18).fork()).ldelim();
|
8570
9288
|
}
|
8571
9289
|
return writer;
|
8572
9290
|
},
|
8573
9291
|
|
8574
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
9292
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData_FieldsEntry {
|
8575
9293
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8576
9294
|
let end = length === undefined ? reader.len : reader.pos + length;
|
8577
|
-
const message =
|
9295
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
8578
9296
|
while (reader.pos < end) {
|
8579
9297
|
const tag = reader.uint32();
|
8580
9298
|
switch (tag >>> 3) {
|
@@ -8583,7 +9301,14 @@ export const EntityList = {
|
|
8583
9301
|
break;
|
8584
9302
|
}
|
8585
9303
|
|
8586
|
-
message.
|
9304
|
+
message.key = reader.string();
|
9305
|
+
continue;
|
9306
|
+
case 2:
|
9307
|
+
if (tag !== 18) {
|
9308
|
+
break;
|
9309
|
+
}
|
9310
|
+
|
9311
|
+
message.value = EntityUpdateData_FieldValue.decode(reader, reader.uint32());
|
8587
9312
|
continue;
|
8588
9313
|
}
|
8589
9314
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -8594,32 +9319,46 @@ export const EntityList = {
|
|
8594
9319
|
return message;
|
8595
9320
|
},
|
8596
9321
|
|
8597
|
-
fromJSON(object: any):
|
9322
|
+
fromJSON(object: any): EntityUpdateData_FieldsEntry {
|
8598
9323
|
return {
|
8599
|
-
|
9324
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
9325
|
+
value: isSet(object.value) ? EntityUpdateData_FieldValue.fromJSON(object.value) : undefined,
|
8600
9326
|
};
|
8601
9327
|
},
|
8602
9328
|
|
8603
|
-
toJSON(message:
|
9329
|
+
toJSON(message: EntityUpdateData_FieldsEntry): unknown {
|
8604
9330
|
const obj: any = {};
|
8605
|
-
if (message.
|
8606
|
-
obj.
|
9331
|
+
if (message.key !== "") {
|
9332
|
+
obj.key = message.key;
|
9333
|
+
}
|
9334
|
+
if (message.value !== undefined) {
|
9335
|
+
obj.value = EntityUpdateData_FieldValue.toJSON(message.value);
|
8607
9336
|
}
|
8608
9337
|
return obj;
|
8609
9338
|
},
|
8610
9339
|
|
8611
|
-
create(base?: DeepPartial<
|
8612
|
-
return
|
9340
|
+
create(base?: DeepPartial<EntityUpdateData_FieldsEntry>): EntityUpdateData_FieldsEntry {
|
9341
|
+
return EntityUpdateData_FieldsEntry.fromPartial(base ?? {});
|
8613
9342
|
},
|
8614
|
-
fromPartial(object: DeepPartial<
|
8615
|
-
const message =
|
8616
|
-
message.
|
9343
|
+
fromPartial(object: DeepPartial<EntityUpdateData_FieldsEntry>): EntityUpdateData_FieldsEntry {
|
9344
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
9345
|
+
message.key = object.key ?? "";
|
9346
|
+
message.value = (object.value !== undefined && object.value !== null)
|
9347
|
+
? EntityUpdateData_FieldValue.fromPartial(object.value)
|
9348
|
+
: undefined;
|
8617
9349
|
return message;
|
8618
9350
|
},
|
8619
9351
|
};
|
8620
9352
|
|
8621
9353
|
function createBaseDBRequest(): DBRequest {
|
8622
|
-
return {
|
9354
|
+
return {
|
9355
|
+
opId: BigInt("0"),
|
9356
|
+
get: undefined,
|
9357
|
+
upsert: undefined,
|
9358
|
+
update: undefined,
|
9359
|
+
delete: undefined,
|
9360
|
+
list: undefined,
|
9361
|
+
};
|
8623
9362
|
}
|
8624
9363
|
|
8625
9364
|
export const DBRequest = {
|
@@ -8636,6 +9375,9 @@ export const DBRequest = {
|
|
8636
9375
|
if (message.upsert !== undefined) {
|
8637
9376
|
DBRequest_DBUpsert.encode(message.upsert, writer.uint32(26).fork()).ldelim();
|
8638
9377
|
}
|
9378
|
+
if (message.update !== undefined) {
|
9379
|
+
DBRequest_DBUpdate.encode(message.update, writer.uint32(50).fork()).ldelim();
|
9380
|
+
}
|
8639
9381
|
if (message.delete !== undefined) {
|
8640
9382
|
DBRequest_DBDelete.encode(message.delete, writer.uint32(34).fork()).ldelim();
|
8641
9383
|
}
|
@@ -8673,6 +9415,13 @@ export const DBRequest = {
|
|
8673
9415
|
|
8674
9416
|
message.upsert = DBRequest_DBUpsert.decode(reader, reader.uint32());
|
8675
9417
|
continue;
|
9418
|
+
case 6:
|
9419
|
+
if (tag !== 50) {
|
9420
|
+
break;
|
9421
|
+
}
|
9422
|
+
|
9423
|
+
message.update = DBRequest_DBUpdate.decode(reader, reader.uint32());
|
9424
|
+
continue;
|
8676
9425
|
case 4:
|
8677
9426
|
if (tag !== 34) {
|
8678
9427
|
break;
|
@@ -8701,6 +9450,7 @@ export const DBRequest = {
|
|
8701
9450
|
opId: isSet(object.opId) ? BigInt(object.opId) : BigInt("0"),
|
8702
9451
|
get: isSet(object.get) ? DBRequest_DBGet.fromJSON(object.get) : undefined,
|
8703
9452
|
upsert: isSet(object.upsert) ? DBRequest_DBUpsert.fromJSON(object.upsert) : undefined,
|
9453
|
+
update: isSet(object.update) ? DBRequest_DBUpdate.fromJSON(object.update) : undefined,
|
8704
9454
|
delete: isSet(object.delete) ? DBRequest_DBDelete.fromJSON(object.delete) : undefined,
|
8705
9455
|
list: isSet(object.list) ? DBRequest_DBList.fromJSON(object.list) : undefined,
|
8706
9456
|
};
|
@@ -8717,6 +9467,9 @@ export const DBRequest = {
|
|
8717
9467
|
if (message.upsert !== undefined) {
|
8718
9468
|
obj.upsert = DBRequest_DBUpsert.toJSON(message.upsert);
|
8719
9469
|
}
|
9470
|
+
if (message.update !== undefined) {
|
9471
|
+
obj.update = DBRequest_DBUpdate.toJSON(message.update);
|
9472
|
+
}
|
8720
9473
|
if (message.delete !== undefined) {
|
8721
9474
|
obj.delete = DBRequest_DBDelete.toJSON(message.delete);
|
8722
9475
|
}
|
@@ -8738,6 +9491,9 @@ export const DBRequest = {
|
|
8738
9491
|
message.upsert = (object.upsert !== undefined && object.upsert !== null)
|
8739
9492
|
? DBRequest_DBUpsert.fromPartial(object.upsert)
|
8740
9493
|
: undefined;
|
9494
|
+
message.update = (object.update !== undefined && object.update !== null)
|
9495
|
+
? DBRequest_DBUpdate.fromPartial(object.update)
|
9496
|
+
: undefined;
|
8741
9497
|
message.delete = (object.delete !== undefined && object.delete !== null)
|
8742
9498
|
? DBRequest_DBDelete.fromPartial(object.delete)
|
8743
9499
|
: undefined;
|
@@ -9034,6 +9790,97 @@ export const DBRequest_DBUpsert = {
|
|
9034
9790
|
},
|
9035
9791
|
};
|
9036
9792
|
|
9793
|
+
function createBaseDBRequest_DBUpdate(): DBRequest_DBUpdate {
|
9794
|
+
return { entity: [], id: [], entityData: [] };
|
9795
|
+
}
|
9796
|
+
|
9797
|
+
export const DBRequest_DBUpdate = {
|
9798
|
+
encode(message: DBRequest_DBUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9799
|
+
for (const v of message.entity) {
|
9800
|
+
writer.uint32(10).string(v!);
|
9801
|
+
}
|
9802
|
+
for (const v of message.id) {
|
9803
|
+
writer.uint32(18).string(v!);
|
9804
|
+
}
|
9805
|
+
for (const v of message.entityData) {
|
9806
|
+
EntityUpdateData.encode(v!, writer.uint32(26).fork()).ldelim();
|
9807
|
+
}
|
9808
|
+
return writer;
|
9809
|
+
},
|
9810
|
+
|
9811
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest_DBUpdate {
|
9812
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9813
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9814
|
+
const message = createBaseDBRequest_DBUpdate();
|
9815
|
+
while (reader.pos < end) {
|
9816
|
+
const tag = reader.uint32();
|
9817
|
+
switch (tag >>> 3) {
|
9818
|
+
case 1:
|
9819
|
+
if (tag !== 10) {
|
9820
|
+
break;
|
9821
|
+
}
|
9822
|
+
|
9823
|
+
message.entity.push(reader.string());
|
9824
|
+
continue;
|
9825
|
+
case 2:
|
9826
|
+
if (tag !== 18) {
|
9827
|
+
break;
|
9828
|
+
}
|
9829
|
+
|
9830
|
+
message.id.push(reader.string());
|
9831
|
+
continue;
|
9832
|
+
case 3:
|
9833
|
+
if (tag !== 26) {
|
9834
|
+
break;
|
9835
|
+
}
|
9836
|
+
|
9837
|
+
message.entityData.push(EntityUpdateData.decode(reader, reader.uint32()));
|
9838
|
+
continue;
|
9839
|
+
}
|
9840
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9841
|
+
break;
|
9842
|
+
}
|
9843
|
+
reader.skipType(tag & 7);
|
9844
|
+
}
|
9845
|
+
return message;
|
9846
|
+
},
|
9847
|
+
|
9848
|
+
fromJSON(object: any): DBRequest_DBUpdate {
|
9849
|
+
return {
|
9850
|
+
entity: globalThis.Array.isArray(object?.entity) ? object.entity.map((e: any) => globalThis.String(e)) : [],
|
9851
|
+
id: globalThis.Array.isArray(object?.id) ? object.id.map((e: any) => globalThis.String(e)) : [],
|
9852
|
+
entityData: globalThis.Array.isArray(object?.entityData)
|
9853
|
+
? object.entityData.map((e: any) => EntityUpdateData.fromJSON(e))
|
9854
|
+
: [],
|
9855
|
+
};
|
9856
|
+
},
|
9857
|
+
|
9858
|
+
toJSON(message: DBRequest_DBUpdate): unknown {
|
9859
|
+
const obj: any = {};
|
9860
|
+
if (message.entity?.length) {
|
9861
|
+
obj.entity = message.entity;
|
9862
|
+
}
|
9863
|
+
if (message.id?.length) {
|
9864
|
+
obj.id = message.id;
|
9865
|
+
}
|
9866
|
+
if (message.entityData?.length) {
|
9867
|
+
obj.entityData = message.entityData.map((e) => EntityUpdateData.toJSON(e));
|
9868
|
+
}
|
9869
|
+
return obj;
|
9870
|
+
},
|
9871
|
+
|
9872
|
+
create(base?: DeepPartial<DBRequest_DBUpdate>): DBRequest_DBUpdate {
|
9873
|
+
return DBRequest_DBUpdate.fromPartial(base ?? {});
|
9874
|
+
},
|
9875
|
+
fromPartial(object: DeepPartial<DBRequest_DBUpdate>): DBRequest_DBUpdate {
|
9876
|
+
const message = createBaseDBRequest_DBUpdate();
|
9877
|
+
message.entity = object.entity?.map((e) => e) || [];
|
9878
|
+
message.id = object.id?.map((e) => e) || [];
|
9879
|
+
message.entityData = object.entityData?.map((e) => EntityUpdateData.fromPartial(e)) || [];
|
9880
|
+
return message;
|
9881
|
+
},
|
9882
|
+
};
|
9883
|
+
|
9037
9884
|
function createBaseDBRequest_DBDelete(): DBRequest_DBDelete {
|
9038
9885
|
return { entity: [], id: [] };
|
9039
9886
|
}
|
@@ -11922,7 +12769,7 @@ export const StateResult = {
|
|
11922
12769
|
};
|
11923
12770
|
|
11924
12771
|
function createBaseProcessResult(): ProcessResult {
|
11925
|
-
return { gauges: [], counters: [], logs: [], events: [], exports: [], states: undefined };
|
12772
|
+
return { gauges: [], counters: [], logs: [], events: [], exports: [], states: undefined, timeseriesResult: [] };
|
11926
12773
|
}
|
11927
12774
|
|
11928
12775
|
export const ProcessResult = {
|
@@ -11945,6 +12792,9 @@ export const ProcessResult = {
|
|
11945
12792
|
if (message.states !== undefined) {
|
11946
12793
|
StateResult.encode(message.states, writer.uint32(50).fork()).ldelim();
|
11947
12794
|
}
|
12795
|
+
for (const v of message.timeseriesResult) {
|
12796
|
+
TimeseriesResult.encode(v!, writer.uint32(58).fork()).ldelim();
|
12797
|
+
}
|
11948
12798
|
return writer;
|
11949
12799
|
},
|
11950
12800
|
|
@@ -11997,6 +12847,13 @@ export const ProcessResult = {
|
|
11997
12847
|
|
11998
12848
|
message.states = StateResult.decode(reader, reader.uint32());
|
11999
12849
|
continue;
|
12850
|
+
case 7:
|
12851
|
+
if (tag !== 58) {
|
12852
|
+
break;
|
12853
|
+
}
|
12854
|
+
|
12855
|
+
message.timeseriesResult.push(TimeseriesResult.decode(reader, reader.uint32()));
|
12856
|
+
continue;
|
12000
12857
|
}
|
12001
12858
|
if ((tag & 7) === 4 || tag === 0) {
|
12002
12859
|
break;
|
@@ -12020,6 +12877,9 @@ export const ProcessResult = {
|
|
12020
12877
|
? object.exports.map((e: any) => ExportResult.fromJSON(e))
|
12021
12878
|
: [],
|
12022
12879
|
states: isSet(object.states) ? StateResult.fromJSON(object.states) : undefined,
|
12880
|
+
timeseriesResult: globalThis.Array.isArray(object?.timeseriesResult)
|
12881
|
+
? object.timeseriesResult.map((e: any) => TimeseriesResult.fromJSON(e))
|
12882
|
+
: [],
|
12023
12883
|
};
|
12024
12884
|
},
|
12025
12885
|
|
@@ -12043,6 +12903,9 @@ export const ProcessResult = {
|
|
12043
12903
|
if (message.states !== undefined) {
|
12044
12904
|
obj.states = StateResult.toJSON(message.states);
|
12045
12905
|
}
|
12906
|
+
if (message.timeseriesResult?.length) {
|
12907
|
+
obj.timeseriesResult = message.timeseriesResult.map((e) => TimeseriesResult.toJSON(e));
|
12908
|
+
}
|
12046
12909
|
return obj;
|
12047
12910
|
},
|
12048
12911
|
|
@@ -12059,6 +12922,7 @@ export const ProcessResult = {
|
|
12059
12922
|
message.states = (object.states !== undefined && object.states !== null)
|
12060
12923
|
? StateResult.fromPartial(object.states)
|
12061
12924
|
: undefined;
|
12925
|
+
message.timeseriesResult = object.timeseriesResult?.map((e) => TimeseriesResult.fromPartial(e)) || [];
|
12062
12926
|
return message;
|
12063
12927
|
},
|
12064
12928
|
};
|
@@ -13399,6 +14263,116 @@ export const EventTrackingResult = {
|
|
13399
14263
|
},
|
13400
14264
|
};
|
13401
14265
|
|
14266
|
+
function createBaseTimeseriesResult(): TimeseriesResult {
|
14267
|
+
return { metadata: undefined, type: 0, data: undefined, runtimeInfo: undefined };
|
14268
|
+
}
|
14269
|
+
|
14270
|
+
export const TimeseriesResult = {
|
14271
|
+
encode(message: TimeseriesResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
14272
|
+
if (message.metadata !== undefined) {
|
14273
|
+
RecordMetaData.encode(message.metadata, writer.uint32(10).fork()).ldelim();
|
14274
|
+
}
|
14275
|
+
if (message.type !== 0) {
|
14276
|
+
writer.uint32(16).int32(message.type);
|
14277
|
+
}
|
14278
|
+
if (message.data !== undefined) {
|
14279
|
+
RichStruct.encode(message.data, writer.uint32(26).fork()).ldelim();
|
14280
|
+
}
|
14281
|
+
if (message.runtimeInfo !== undefined) {
|
14282
|
+
RuntimeInfo.encode(message.runtimeInfo, writer.uint32(34).fork()).ldelim();
|
14283
|
+
}
|
14284
|
+
return writer;
|
14285
|
+
},
|
14286
|
+
|
14287
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TimeseriesResult {
|
14288
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
14289
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
14290
|
+
const message = createBaseTimeseriesResult();
|
14291
|
+
while (reader.pos < end) {
|
14292
|
+
const tag = reader.uint32();
|
14293
|
+
switch (tag >>> 3) {
|
14294
|
+
case 1:
|
14295
|
+
if (tag !== 10) {
|
14296
|
+
break;
|
14297
|
+
}
|
14298
|
+
|
14299
|
+
message.metadata = RecordMetaData.decode(reader, reader.uint32());
|
14300
|
+
continue;
|
14301
|
+
case 2:
|
14302
|
+
if (tag !== 16) {
|
14303
|
+
break;
|
14304
|
+
}
|
14305
|
+
|
14306
|
+
message.type = reader.int32() as any;
|
14307
|
+
continue;
|
14308
|
+
case 3:
|
14309
|
+
if (tag !== 26) {
|
14310
|
+
break;
|
14311
|
+
}
|
14312
|
+
|
14313
|
+
message.data = RichStruct.decode(reader, reader.uint32());
|
14314
|
+
continue;
|
14315
|
+
case 4:
|
14316
|
+
if (tag !== 34) {
|
14317
|
+
break;
|
14318
|
+
}
|
14319
|
+
|
14320
|
+
message.runtimeInfo = RuntimeInfo.decode(reader, reader.uint32());
|
14321
|
+
continue;
|
14322
|
+
}
|
14323
|
+
if ((tag & 7) === 4 || tag === 0) {
|
14324
|
+
break;
|
14325
|
+
}
|
14326
|
+
reader.skipType(tag & 7);
|
14327
|
+
}
|
14328
|
+
return message;
|
14329
|
+
},
|
14330
|
+
|
14331
|
+
fromJSON(object: any): TimeseriesResult {
|
14332
|
+
return {
|
14333
|
+
metadata: isSet(object.metadata) ? RecordMetaData.fromJSON(object.metadata) : undefined,
|
14334
|
+
type: isSet(object.type) ? timeseriesResult_TimeseriesTypeFromJSON(object.type) : 0,
|
14335
|
+
data: isSet(object.data) ? RichStruct.fromJSON(object.data) : undefined,
|
14336
|
+
runtimeInfo: isSet(object.runtimeInfo) ? RuntimeInfo.fromJSON(object.runtimeInfo) : undefined,
|
14337
|
+
};
|
14338
|
+
},
|
14339
|
+
|
14340
|
+
toJSON(message: TimeseriesResult): unknown {
|
14341
|
+
const obj: any = {};
|
14342
|
+
if (message.metadata !== undefined) {
|
14343
|
+
obj.metadata = RecordMetaData.toJSON(message.metadata);
|
14344
|
+
}
|
14345
|
+
if (message.type !== 0) {
|
14346
|
+
obj.type = timeseriesResult_TimeseriesTypeToJSON(message.type);
|
14347
|
+
}
|
14348
|
+
if (message.data !== undefined) {
|
14349
|
+
obj.data = RichStruct.toJSON(message.data);
|
14350
|
+
}
|
14351
|
+
if (message.runtimeInfo !== undefined) {
|
14352
|
+
obj.runtimeInfo = RuntimeInfo.toJSON(message.runtimeInfo);
|
14353
|
+
}
|
14354
|
+
return obj;
|
14355
|
+
},
|
14356
|
+
|
14357
|
+
create(base?: DeepPartial<TimeseriesResult>): TimeseriesResult {
|
14358
|
+
return TimeseriesResult.fromPartial(base ?? {});
|
14359
|
+
},
|
14360
|
+
fromPartial(object: DeepPartial<TimeseriesResult>): TimeseriesResult {
|
14361
|
+
const message = createBaseTimeseriesResult();
|
14362
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
14363
|
+
? RecordMetaData.fromPartial(object.metadata)
|
14364
|
+
: undefined;
|
14365
|
+
message.type = object.type ?? 0;
|
14366
|
+
message.data = (object.data !== undefined && object.data !== null)
|
14367
|
+
? RichStruct.fromPartial(object.data)
|
14368
|
+
: undefined;
|
14369
|
+
message.runtimeInfo = (object.runtimeInfo !== undefined && object.runtimeInfo !== null)
|
14370
|
+
? RuntimeInfo.fromPartial(object.runtimeInfo)
|
14371
|
+
: undefined;
|
14372
|
+
return message;
|
14373
|
+
},
|
14374
|
+
};
|
14375
|
+
|
13402
14376
|
function createBaseExportResult(): ExportResult {
|
13403
14377
|
return { metadata: undefined, payload: "", runtimeInfo: undefined };
|
13404
14378
|
}
|