@sentio/runtime 2.59.0-rc.2 → 2.59.0-rc.20
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-ZUTD563J.js → chunk-45FF2A6M.js} +756 -67
- package/lib/chunk-45FF2A6M.js.map +1 -0
- package/lib/{chunk-QELD44EL.js → chunk-EPAMG3V5.js} +11 -6
- package/lib/{chunk-QELD44EL.js.map → chunk-EPAMG3V5.js.map} +1 -1
- package/lib/{chunk-BPGFX5S5.js → chunk-GWKJGG55.js} +2 -2
- package/lib/index.d.ts +175 -0
- package/lib/index.js +2 -2
- package/lib/processor-runner.js +3 -3
- package/lib/service-worker.js +3 -3
- package/package.json +1 -1
- package/src/gen/processor/protos/processor.ts +621 -3
- package/src/gen/service/common/protos/common.ts +115 -1
- package/src/metrics.ts +8 -4
- package/src/utils.ts +1 -0
- package/lib/chunk-ZUTD563J.js.map +0 -1
- /package/lib/{chunk-BPGFX5S5.js.map → chunk-GWKJGG55.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
|
}
|
@@ -955,10 +957,64 @@ export interface EntityList {
|
|
955
957
|
entities: Entity[];
|
956
958
|
}
|
957
959
|
|
960
|
+
export interface EntityUpdateData {
|
961
|
+
fields: { [key: string]: EntityUpdateData_FieldValue };
|
962
|
+
}
|
963
|
+
|
964
|
+
export enum EntityUpdateData_Operator {
|
965
|
+
SET = 0,
|
966
|
+
ADD = 1,
|
967
|
+
MULTIPLY = 2,
|
968
|
+
UNRECOGNIZED = -1,
|
969
|
+
}
|
970
|
+
|
971
|
+
export function entityUpdateData_OperatorFromJSON(object: any): EntityUpdateData_Operator {
|
972
|
+
switch (object) {
|
973
|
+
case 0:
|
974
|
+
case "SET":
|
975
|
+
return EntityUpdateData_Operator.SET;
|
976
|
+
case 1:
|
977
|
+
case "ADD":
|
978
|
+
return EntityUpdateData_Operator.ADD;
|
979
|
+
case 2:
|
980
|
+
case "MULTIPLY":
|
981
|
+
return EntityUpdateData_Operator.MULTIPLY;
|
982
|
+
case -1:
|
983
|
+
case "UNRECOGNIZED":
|
984
|
+
default:
|
985
|
+
return EntityUpdateData_Operator.UNRECOGNIZED;
|
986
|
+
}
|
987
|
+
}
|
988
|
+
|
989
|
+
export function entityUpdateData_OperatorToJSON(object: EntityUpdateData_Operator): string {
|
990
|
+
switch (object) {
|
991
|
+
case EntityUpdateData_Operator.SET:
|
992
|
+
return "SET";
|
993
|
+
case EntityUpdateData_Operator.ADD:
|
994
|
+
return "ADD";
|
995
|
+
case EntityUpdateData_Operator.MULTIPLY:
|
996
|
+
return "MULTIPLY";
|
997
|
+
case EntityUpdateData_Operator.UNRECOGNIZED:
|
998
|
+
default:
|
999
|
+
return "UNRECOGNIZED";
|
1000
|
+
}
|
1001
|
+
}
|
1002
|
+
|
1003
|
+
export interface EntityUpdateData_FieldValue {
|
1004
|
+
value: RichValue | undefined;
|
1005
|
+
op: EntityUpdateData_Operator;
|
1006
|
+
}
|
1007
|
+
|
1008
|
+
export interface EntityUpdateData_FieldsEntry {
|
1009
|
+
key: string;
|
1010
|
+
value: EntityUpdateData_FieldValue | undefined;
|
1011
|
+
}
|
1012
|
+
|
958
1013
|
export interface DBRequest {
|
959
1014
|
opId: bigint;
|
960
1015
|
get?: DBRequest_DBGet | undefined;
|
961
1016
|
upsert?: DBRequest_DBUpsert | undefined;
|
1017
|
+
update?: DBRequest_DBUpdate | undefined;
|
962
1018
|
delete?: DBRequest_DBDelete | undefined;
|
963
1019
|
list?: DBRequest_DBList | undefined;
|
964
1020
|
}
|
@@ -1075,6 +1131,12 @@ export interface DBRequest_DBUpsert {
|
|
1075
1131
|
entityData: RichStruct[];
|
1076
1132
|
}
|
1077
1133
|
|
1134
|
+
export interface DBRequest_DBUpdate {
|
1135
|
+
entity: string[];
|
1136
|
+
id: string[];
|
1137
|
+
entityData: EntityUpdateData[];
|
1138
|
+
}
|
1139
|
+
|
1078
1140
|
export interface DBRequest_DBDelete {
|
1079
1141
|
entity: string[];
|
1080
1142
|
id: string[];
|
@@ -1279,6 +1341,7 @@ export interface ProcessResult {
|
|
1279
1341
|
events: EventTrackingResult[];
|
1280
1342
|
exports: ExportResult[];
|
1281
1343
|
states: StateResult | undefined;
|
1344
|
+
timeseriesResult: TimeseriesResult[];
|
1282
1345
|
}
|
1283
1346
|
|
1284
1347
|
export interface EthCallParam {
|
@@ -1367,6 +1430,52 @@ export interface EventTrackingResult {
|
|
1367
1430
|
noMetric: boolean;
|
1368
1431
|
}
|
1369
1432
|
|
1433
|
+
export interface TimeseriesResult {
|
1434
|
+
metadata: RecordMetaData | undefined;
|
1435
|
+
type: TimeseriesResult_TimeseriesType;
|
1436
|
+
data: RichStruct | undefined;
|
1437
|
+
runtimeInfo: RuntimeInfo | undefined;
|
1438
|
+
}
|
1439
|
+
|
1440
|
+
export enum TimeseriesResult_TimeseriesType {
|
1441
|
+
EVENT = 0,
|
1442
|
+
GAUGE = 1,
|
1443
|
+
COUNTER = 2,
|
1444
|
+
UNRECOGNIZED = -1,
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
export function timeseriesResult_TimeseriesTypeFromJSON(object: any): TimeseriesResult_TimeseriesType {
|
1448
|
+
switch (object) {
|
1449
|
+
case 0:
|
1450
|
+
case "EVENT":
|
1451
|
+
return TimeseriesResult_TimeseriesType.EVENT;
|
1452
|
+
case 1:
|
1453
|
+
case "GAUGE":
|
1454
|
+
return TimeseriesResult_TimeseriesType.GAUGE;
|
1455
|
+
case 2:
|
1456
|
+
case "COUNTER":
|
1457
|
+
return TimeseriesResult_TimeseriesType.COUNTER;
|
1458
|
+
case -1:
|
1459
|
+
case "UNRECOGNIZED":
|
1460
|
+
default:
|
1461
|
+
return TimeseriesResult_TimeseriesType.UNRECOGNIZED;
|
1462
|
+
}
|
1463
|
+
}
|
1464
|
+
|
1465
|
+
export function timeseriesResult_TimeseriesTypeToJSON(object: TimeseriesResult_TimeseriesType): string {
|
1466
|
+
switch (object) {
|
1467
|
+
case TimeseriesResult_TimeseriesType.EVENT:
|
1468
|
+
return "EVENT";
|
1469
|
+
case TimeseriesResult_TimeseriesType.GAUGE:
|
1470
|
+
return "GAUGE";
|
1471
|
+
case TimeseriesResult_TimeseriesType.COUNTER:
|
1472
|
+
return "COUNTER";
|
1473
|
+
case TimeseriesResult_TimeseriesType.UNRECOGNIZED:
|
1474
|
+
default:
|
1475
|
+
return "UNRECOGNIZED";
|
1476
|
+
}
|
1477
|
+
}
|
1478
|
+
|
1370
1479
|
export interface ExportResult {
|
1371
1480
|
metadata: RecordMetaData | undefined;
|
1372
1481
|
payload: string;
|
@@ -3319,6 +3428,7 @@ function createBaseAccountConfig(): AccountConfig {
|
|
3319
3428
|
chainId: "",
|
3320
3429
|
address: "",
|
3321
3430
|
startBlock: BigInt("0"),
|
3431
|
+
endBlock: BigInt("0"),
|
3322
3432
|
intervalConfigs: [],
|
3323
3433
|
aptosIntervalConfigs: [],
|
3324
3434
|
moveIntervalConfigs: [],
|
@@ -3342,6 +3452,12 @@ export const AccountConfig = {
|
|
3342
3452
|
}
|
3343
3453
|
writer.uint32(24).uint64(message.startBlock.toString());
|
3344
3454
|
}
|
3455
|
+
if (message.endBlock !== BigInt("0")) {
|
3456
|
+
if (BigInt.asUintN(64, message.endBlock) !== message.endBlock) {
|
3457
|
+
throw new globalThis.Error("value provided for field message.endBlock of type uint64 too large");
|
3458
|
+
}
|
3459
|
+
writer.uint32(80).uint64(message.endBlock.toString());
|
3460
|
+
}
|
3345
3461
|
for (const v of message.intervalConfigs) {
|
3346
3462
|
OnIntervalConfig.encode(v!, writer.uint32(34).fork()).ldelim();
|
3347
3463
|
}
|
@@ -3391,6 +3507,13 @@ export const AccountConfig = {
|
|
3391
3507
|
|
3392
3508
|
message.startBlock = longToBigint(reader.uint64() as Long);
|
3393
3509
|
continue;
|
3510
|
+
case 10:
|
3511
|
+
if (tag !== 80) {
|
3512
|
+
break;
|
3513
|
+
}
|
3514
|
+
|
3515
|
+
message.endBlock = longToBigint(reader.uint64() as Long);
|
3516
|
+
continue;
|
3394
3517
|
case 4:
|
3395
3518
|
if (tag !== 34) {
|
3396
3519
|
break;
|
@@ -3447,6 +3570,7 @@ export const AccountConfig = {
|
|
3447
3570
|
chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
|
3448
3571
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
3449
3572
|
startBlock: isSet(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
|
3573
|
+
endBlock: isSet(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
|
3450
3574
|
intervalConfigs: globalThis.Array.isArray(object?.intervalConfigs)
|
3451
3575
|
? object.intervalConfigs.map((e: any) => OnIntervalConfig.fromJSON(e))
|
3452
3576
|
: [],
|
@@ -3479,6 +3603,9 @@ export const AccountConfig = {
|
|
3479
3603
|
if (message.startBlock !== BigInt("0")) {
|
3480
3604
|
obj.startBlock = message.startBlock.toString();
|
3481
3605
|
}
|
3606
|
+
if (message.endBlock !== BigInt("0")) {
|
3607
|
+
obj.endBlock = message.endBlock.toString();
|
3608
|
+
}
|
3482
3609
|
if (message.intervalConfigs?.length) {
|
3483
3610
|
obj.intervalConfigs = message.intervalConfigs.map((e) => OnIntervalConfig.toJSON(e));
|
3484
3611
|
}
|
@@ -3508,6 +3635,7 @@ export const AccountConfig = {
|
|
3508
3635
|
message.chainId = object.chainId ?? "";
|
3509
3636
|
message.address = object.address ?? "";
|
3510
3637
|
message.startBlock = object.startBlock ?? BigInt("0");
|
3638
|
+
message.endBlock = object.endBlock ?? BigInt("0");
|
3511
3639
|
message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
|
3512
3640
|
message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
|
3513
3641
|
message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
|
@@ -6093,7 +6221,7 @@ export const MoveCallHandlerConfig = {
|
|
6093
6221
|
};
|
6094
6222
|
|
6095
6223
|
function createBaseMoveResourceChangeConfig(): MoveResourceChangeConfig {
|
6096
|
-
return { type: "", handlerId: 0, handlerName: "" };
|
6224
|
+
return { type: "", includeDeleted: false, handlerId: 0, handlerName: "" };
|
6097
6225
|
}
|
6098
6226
|
|
6099
6227
|
export const MoveResourceChangeConfig = {
|
@@ -6101,6 +6229,9 @@ export const MoveResourceChangeConfig = {
|
|
6101
6229
|
if (message.type !== "") {
|
6102
6230
|
writer.uint32(10).string(message.type);
|
6103
6231
|
}
|
6232
|
+
if (message.includeDeleted !== false) {
|
6233
|
+
writer.uint32(32).bool(message.includeDeleted);
|
6234
|
+
}
|
6104
6235
|
if (message.handlerId !== 0) {
|
6105
6236
|
writer.uint32(16).int32(message.handlerId);
|
6106
6237
|
}
|
@@ -6124,6 +6255,13 @@ export const MoveResourceChangeConfig = {
|
|
6124
6255
|
|
6125
6256
|
message.type = reader.string();
|
6126
6257
|
continue;
|
6258
|
+
case 4:
|
6259
|
+
if (tag !== 32) {
|
6260
|
+
break;
|
6261
|
+
}
|
6262
|
+
|
6263
|
+
message.includeDeleted = reader.bool();
|
6264
|
+
continue;
|
6127
6265
|
case 2:
|
6128
6266
|
if (tag !== 16) {
|
6129
6267
|
break;
|
@@ -6150,6 +6288,7 @@ export const MoveResourceChangeConfig = {
|
|
6150
6288
|
fromJSON(object: any): MoveResourceChangeConfig {
|
6151
6289
|
return {
|
6152
6290
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
6291
|
+
includeDeleted: isSet(object.includeDeleted) ? globalThis.Boolean(object.includeDeleted) : false,
|
6153
6292
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
6154
6293
|
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
6155
6294
|
};
|
@@ -6160,6 +6299,9 @@ export const MoveResourceChangeConfig = {
|
|
6160
6299
|
if (message.type !== "") {
|
6161
6300
|
obj.type = message.type;
|
6162
6301
|
}
|
6302
|
+
if (message.includeDeleted !== false) {
|
6303
|
+
obj.includeDeleted = message.includeDeleted;
|
6304
|
+
}
|
6163
6305
|
if (message.handlerId !== 0) {
|
6164
6306
|
obj.handlerId = Math.round(message.handlerId);
|
6165
6307
|
}
|
@@ -6175,6 +6317,7 @@ export const MoveResourceChangeConfig = {
|
|
6175
6317
|
fromPartial(object: DeepPartial<MoveResourceChangeConfig>): MoveResourceChangeConfig {
|
6176
6318
|
const message = createBaseMoveResourceChangeConfig();
|
6177
6319
|
message.type = object.type ?? "";
|
6320
|
+
message.includeDeleted = object.includeDeleted ?? false;
|
6178
6321
|
message.handlerId = object.handlerId ?? 0;
|
6179
6322
|
message.handlerName = object.handlerName ?? "";
|
6180
6323
|
return message;
|
@@ -8618,8 +8761,248 @@ export const EntityList = {
|
|
8618
8761
|
},
|
8619
8762
|
};
|
8620
8763
|
|
8764
|
+
function createBaseEntityUpdateData(): EntityUpdateData {
|
8765
|
+
return { fields: {} };
|
8766
|
+
}
|
8767
|
+
|
8768
|
+
export const EntityUpdateData = {
|
8769
|
+
encode(message: EntityUpdateData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8770
|
+
Object.entries(message.fields).forEach(([key, value]) => {
|
8771
|
+
EntityUpdateData_FieldsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();
|
8772
|
+
});
|
8773
|
+
return writer;
|
8774
|
+
},
|
8775
|
+
|
8776
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData {
|
8777
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8778
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8779
|
+
const message = createBaseEntityUpdateData();
|
8780
|
+
while (reader.pos < end) {
|
8781
|
+
const tag = reader.uint32();
|
8782
|
+
switch (tag >>> 3) {
|
8783
|
+
case 1:
|
8784
|
+
if (tag !== 10) {
|
8785
|
+
break;
|
8786
|
+
}
|
8787
|
+
|
8788
|
+
const entry1 = EntityUpdateData_FieldsEntry.decode(reader, reader.uint32());
|
8789
|
+
if (entry1.value !== undefined) {
|
8790
|
+
message.fields[entry1.key] = entry1.value;
|
8791
|
+
}
|
8792
|
+
continue;
|
8793
|
+
}
|
8794
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8795
|
+
break;
|
8796
|
+
}
|
8797
|
+
reader.skipType(tag & 7);
|
8798
|
+
}
|
8799
|
+
return message;
|
8800
|
+
},
|
8801
|
+
|
8802
|
+
fromJSON(object: any): EntityUpdateData {
|
8803
|
+
return {
|
8804
|
+
fields: isObject(object.fields)
|
8805
|
+
? Object.entries(object.fields).reduce<{ [key: string]: EntityUpdateData_FieldValue }>((acc, [key, value]) => {
|
8806
|
+
acc[key] = EntityUpdateData_FieldValue.fromJSON(value);
|
8807
|
+
return acc;
|
8808
|
+
}, {})
|
8809
|
+
: {},
|
8810
|
+
};
|
8811
|
+
},
|
8812
|
+
|
8813
|
+
toJSON(message: EntityUpdateData): unknown {
|
8814
|
+
const obj: any = {};
|
8815
|
+
if (message.fields) {
|
8816
|
+
const entries = Object.entries(message.fields);
|
8817
|
+
if (entries.length > 0) {
|
8818
|
+
obj.fields = {};
|
8819
|
+
entries.forEach(([k, v]) => {
|
8820
|
+
obj.fields[k] = EntityUpdateData_FieldValue.toJSON(v);
|
8821
|
+
});
|
8822
|
+
}
|
8823
|
+
}
|
8824
|
+
return obj;
|
8825
|
+
},
|
8826
|
+
|
8827
|
+
create(base?: DeepPartial<EntityUpdateData>): EntityUpdateData {
|
8828
|
+
return EntityUpdateData.fromPartial(base ?? {});
|
8829
|
+
},
|
8830
|
+
fromPartial(object: DeepPartial<EntityUpdateData>): EntityUpdateData {
|
8831
|
+
const message = createBaseEntityUpdateData();
|
8832
|
+
message.fields = Object.entries(object.fields ?? {}).reduce<{ [key: string]: EntityUpdateData_FieldValue }>(
|
8833
|
+
(acc, [key, value]) => {
|
8834
|
+
if (value !== undefined) {
|
8835
|
+
acc[key] = EntityUpdateData_FieldValue.fromPartial(value);
|
8836
|
+
}
|
8837
|
+
return acc;
|
8838
|
+
},
|
8839
|
+
{},
|
8840
|
+
);
|
8841
|
+
return message;
|
8842
|
+
},
|
8843
|
+
};
|
8844
|
+
|
8845
|
+
function createBaseEntityUpdateData_FieldValue(): EntityUpdateData_FieldValue {
|
8846
|
+
return { value: undefined, op: 0 };
|
8847
|
+
}
|
8848
|
+
|
8849
|
+
export const EntityUpdateData_FieldValue = {
|
8850
|
+
encode(message: EntityUpdateData_FieldValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8851
|
+
if (message.value !== undefined) {
|
8852
|
+
RichValue.encode(message.value, writer.uint32(10).fork()).ldelim();
|
8853
|
+
}
|
8854
|
+
if (message.op !== 0) {
|
8855
|
+
writer.uint32(16).int32(message.op);
|
8856
|
+
}
|
8857
|
+
return writer;
|
8858
|
+
},
|
8859
|
+
|
8860
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData_FieldValue {
|
8861
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8862
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8863
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
8864
|
+
while (reader.pos < end) {
|
8865
|
+
const tag = reader.uint32();
|
8866
|
+
switch (tag >>> 3) {
|
8867
|
+
case 1:
|
8868
|
+
if (tag !== 10) {
|
8869
|
+
break;
|
8870
|
+
}
|
8871
|
+
|
8872
|
+
message.value = RichValue.decode(reader, reader.uint32());
|
8873
|
+
continue;
|
8874
|
+
case 2:
|
8875
|
+
if (tag !== 16) {
|
8876
|
+
break;
|
8877
|
+
}
|
8878
|
+
|
8879
|
+
message.op = reader.int32() as any;
|
8880
|
+
continue;
|
8881
|
+
}
|
8882
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8883
|
+
break;
|
8884
|
+
}
|
8885
|
+
reader.skipType(tag & 7);
|
8886
|
+
}
|
8887
|
+
return message;
|
8888
|
+
},
|
8889
|
+
|
8890
|
+
fromJSON(object: any): EntityUpdateData_FieldValue {
|
8891
|
+
return {
|
8892
|
+
value: isSet(object.value) ? RichValue.fromJSON(object.value) : undefined,
|
8893
|
+
op: isSet(object.op) ? entityUpdateData_OperatorFromJSON(object.op) : 0,
|
8894
|
+
};
|
8895
|
+
},
|
8896
|
+
|
8897
|
+
toJSON(message: EntityUpdateData_FieldValue): unknown {
|
8898
|
+
const obj: any = {};
|
8899
|
+
if (message.value !== undefined) {
|
8900
|
+
obj.value = RichValue.toJSON(message.value);
|
8901
|
+
}
|
8902
|
+
if (message.op !== 0) {
|
8903
|
+
obj.op = entityUpdateData_OperatorToJSON(message.op);
|
8904
|
+
}
|
8905
|
+
return obj;
|
8906
|
+
},
|
8907
|
+
|
8908
|
+
create(base?: DeepPartial<EntityUpdateData_FieldValue>): EntityUpdateData_FieldValue {
|
8909
|
+
return EntityUpdateData_FieldValue.fromPartial(base ?? {});
|
8910
|
+
},
|
8911
|
+
fromPartial(object: DeepPartial<EntityUpdateData_FieldValue>): EntityUpdateData_FieldValue {
|
8912
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
8913
|
+
message.value = (object.value !== undefined && object.value !== null)
|
8914
|
+
? RichValue.fromPartial(object.value)
|
8915
|
+
: undefined;
|
8916
|
+
message.op = object.op ?? 0;
|
8917
|
+
return message;
|
8918
|
+
},
|
8919
|
+
};
|
8920
|
+
|
8921
|
+
function createBaseEntityUpdateData_FieldsEntry(): EntityUpdateData_FieldsEntry {
|
8922
|
+
return { key: "", value: undefined };
|
8923
|
+
}
|
8924
|
+
|
8925
|
+
export const EntityUpdateData_FieldsEntry = {
|
8926
|
+
encode(message: EntityUpdateData_FieldsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8927
|
+
if (message.key !== "") {
|
8928
|
+
writer.uint32(10).string(message.key);
|
8929
|
+
}
|
8930
|
+
if (message.value !== undefined) {
|
8931
|
+
EntityUpdateData_FieldValue.encode(message.value, writer.uint32(18).fork()).ldelim();
|
8932
|
+
}
|
8933
|
+
return writer;
|
8934
|
+
},
|
8935
|
+
|
8936
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData_FieldsEntry {
|
8937
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8938
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8939
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
8940
|
+
while (reader.pos < end) {
|
8941
|
+
const tag = reader.uint32();
|
8942
|
+
switch (tag >>> 3) {
|
8943
|
+
case 1:
|
8944
|
+
if (tag !== 10) {
|
8945
|
+
break;
|
8946
|
+
}
|
8947
|
+
|
8948
|
+
message.key = reader.string();
|
8949
|
+
continue;
|
8950
|
+
case 2:
|
8951
|
+
if (tag !== 18) {
|
8952
|
+
break;
|
8953
|
+
}
|
8954
|
+
|
8955
|
+
message.value = EntityUpdateData_FieldValue.decode(reader, reader.uint32());
|
8956
|
+
continue;
|
8957
|
+
}
|
8958
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8959
|
+
break;
|
8960
|
+
}
|
8961
|
+
reader.skipType(tag & 7);
|
8962
|
+
}
|
8963
|
+
return message;
|
8964
|
+
},
|
8965
|
+
|
8966
|
+
fromJSON(object: any): EntityUpdateData_FieldsEntry {
|
8967
|
+
return {
|
8968
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
8969
|
+
value: isSet(object.value) ? EntityUpdateData_FieldValue.fromJSON(object.value) : undefined,
|
8970
|
+
};
|
8971
|
+
},
|
8972
|
+
|
8973
|
+
toJSON(message: EntityUpdateData_FieldsEntry): unknown {
|
8974
|
+
const obj: any = {};
|
8975
|
+
if (message.key !== "") {
|
8976
|
+
obj.key = message.key;
|
8977
|
+
}
|
8978
|
+
if (message.value !== undefined) {
|
8979
|
+
obj.value = EntityUpdateData_FieldValue.toJSON(message.value);
|
8980
|
+
}
|
8981
|
+
return obj;
|
8982
|
+
},
|
8983
|
+
|
8984
|
+
create(base?: DeepPartial<EntityUpdateData_FieldsEntry>): EntityUpdateData_FieldsEntry {
|
8985
|
+
return EntityUpdateData_FieldsEntry.fromPartial(base ?? {});
|
8986
|
+
},
|
8987
|
+
fromPartial(object: DeepPartial<EntityUpdateData_FieldsEntry>): EntityUpdateData_FieldsEntry {
|
8988
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
8989
|
+
message.key = object.key ?? "";
|
8990
|
+
message.value = (object.value !== undefined && object.value !== null)
|
8991
|
+
? EntityUpdateData_FieldValue.fromPartial(object.value)
|
8992
|
+
: undefined;
|
8993
|
+
return message;
|
8994
|
+
},
|
8995
|
+
};
|
8996
|
+
|
8621
8997
|
function createBaseDBRequest(): DBRequest {
|
8622
|
-
return {
|
8998
|
+
return {
|
8999
|
+
opId: BigInt("0"),
|
9000
|
+
get: undefined,
|
9001
|
+
upsert: undefined,
|
9002
|
+
update: undefined,
|
9003
|
+
delete: undefined,
|
9004
|
+
list: undefined,
|
9005
|
+
};
|
8623
9006
|
}
|
8624
9007
|
|
8625
9008
|
export const DBRequest = {
|
@@ -8636,6 +9019,9 @@ export const DBRequest = {
|
|
8636
9019
|
if (message.upsert !== undefined) {
|
8637
9020
|
DBRequest_DBUpsert.encode(message.upsert, writer.uint32(26).fork()).ldelim();
|
8638
9021
|
}
|
9022
|
+
if (message.update !== undefined) {
|
9023
|
+
DBRequest_DBUpdate.encode(message.update, writer.uint32(50).fork()).ldelim();
|
9024
|
+
}
|
8639
9025
|
if (message.delete !== undefined) {
|
8640
9026
|
DBRequest_DBDelete.encode(message.delete, writer.uint32(34).fork()).ldelim();
|
8641
9027
|
}
|
@@ -8673,6 +9059,13 @@ export const DBRequest = {
|
|
8673
9059
|
|
8674
9060
|
message.upsert = DBRequest_DBUpsert.decode(reader, reader.uint32());
|
8675
9061
|
continue;
|
9062
|
+
case 6:
|
9063
|
+
if (tag !== 50) {
|
9064
|
+
break;
|
9065
|
+
}
|
9066
|
+
|
9067
|
+
message.update = DBRequest_DBUpdate.decode(reader, reader.uint32());
|
9068
|
+
continue;
|
8676
9069
|
case 4:
|
8677
9070
|
if (tag !== 34) {
|
8678
9071
|
break;
|
@@ -8701,6 +9094,7 @@ export const DBRequest = {
|
|
8701
9094
|
opId: isSet(object.opId) ? BigInt(object.opId) : BigInt("0"),
|
8702
9095
|
get: isSet(object.get) ? DBRequest_DBGet.fromJSON(object.get) : undefined,
|
8703
9096
|
upsert: isSet(object.upsert) ? DBRequest_DBUpsert.fromJSON(object.upsert) : undefined,
|
9097
|
+
update: isSet(object.update) ? DBRequest_DBUpdate.fromJSON(object.update) : undefined,
|
8704
9098
|
delete: isSet(object.delete) ? DBRequest_DBDelete.fromJSON(object.delete) : undefined,
|
8705
9099
|
list: isSet(object.list) ? DBRequest_DBList.fromJSON(object.list) : undefined,
|
8706
9100
|
};
|
@@ -8717,6 +9111,9 @@ export const DBRequest = {
|
|
8717
9111
|
if (message.upsert !== undefined) {
|
8718
9112
|
obj.upsert = DBRequest_DBUpsert.toJSON(message.upsert);
|
8719
9113
|
}
|
9114
|
+
if (message.update !== undefined) {
|
9115
|
+
obj.update = DBRequest_DBUpdate.toJSON(message.update);
|
9116
|
+
}
|
8720
9117
|
if (message.delete !== undefined) {
|
8721
9118
|
obj.delete = DBRequest_DBDelete.toJSON(message.delete);
|
8722
9119
|
}
|
@@ -8738,6 +9135,9 @@ export const DBRequest = {
|
|
8738
9135
|
message.upsert = (object.upsert !== undefined && object.upsert !== null)
|
8739
9136
|
? DBRequest_DBUpsert.fromPartial(object.upsert)
|
8740
9137
|
: undefined;
|
9138
|
+
message.update = (object.update !== undefined && object.update !== null)
|
9139
|
+
? DBRequest_DBUpdate.fromPartial(object.update)
|
9140
|
+
: undefined;
|
8741
9141
|
message.delete = (object.delete !== undefined && object.delete !== null)
|
8742
9142
|
? DBRequest_DBDelete.fromPartial(object.delete)
|
8743
9143
|
: undefined;
|
@@ -9034,6 +9434,97 @@ export const DBRequest_DBUpsert = {
|
|
9034
9434
|
},
|
9035
9435
|
};
|
9036
9436
|
|
9437
|
+
function createBaseDBRequest_DBUpdate(): DBRequest_DBUpdate {
|
9438
|
+
return { entity: [], id: [], entityData: [] };
|
9439
|
+
}
|
9440
|
+
|
9441
|
+
export const DBRequest_DBUpdate = {
|
9442
|
+
encode(message: DBRequest_DBUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9443
|
+
for (const v of message.entity) {
|
9444
|
+
writer.uint32(10).string(v!);
|
9445
|
+
}
|
9446
|
+
for (const v of message.id) {
|
9447
|
+
writer.uint32(18).string(v!);
|
9448
|
+
}
|
9449
|
+
for (const v of message.entityData) {
|
9450
|
+
EntityUpdateData.encode(v!, writer.uint32(26).fork()).ldelim();
|
9451
|
+
}
|
9452
|
+
return writer;
|
9453
|
+
},
|
9454
|
+
|
9455
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest_DBUpdate {
|
9456
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9457
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9458
|
+
const message = createBaseDBRequest_DBUpdate();
|
9459
|
+
while (reader.pos < end) {
|
9460
|
+
const tag = reader.uint32();
|
9461
|
+
switch (tag >>> 3) {
|
9462
|
+
case 1:
|
9463
|
+
if (tag !== 10) {
|
9464
|
+
break;
|
9465
|
+
}
|
9466
|
+
|
9467
|
+
message.entity.push(reader.string());
|
9468
|
+
continue;
|
9469
|
+
case 2:
|
9470
|
+
if (tag !== 18) {
|
9471
|
+
break;
|
9472
|
+
}
|
9473
|
+
|
9474
|
+
message.id.push(reader.string());
|
9475
|
+
continue;
|
9476
|
+
case 3:
|
9477
|
+
if (tag !== 26) {
|
9478
|
+
break;
|
9479
|
+
}
|
9480
|
+
|
9481
|
+
message.entityData.push(EntityUpdateData.decode(reader, reader.uint32()));
|
9482
|
+
continue;
|
9483
|
+
}
|
9484
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9485
|
+
break;
|
9486
|
+
}
|
9487
|
+
reader.skipType(tag & 7);
|
9488
|
+
}
|
9489
|
+
return message;
|
9490
|
+
},
|
9491
|
+
|
9492
|
+
fromJSON(object: any): DBRequest_DBUpdate {
|
9493
|
+
return {
|
9494
|
+
entity: globalThis.Array.isArray(object?.entity) ? object.entity.map((e: any) => globalThis.String(e)) : [],
|
9495
|
+
id: globalThis.Array.isArray(object?.id) ? object.id.map((e: any) => globalThis.String(e)) : [],
|
9496
|
+
entityData: globalThis.Array.isArray(object?.entityData)
|
9497
|
+
? object.entityData.map((e: any) => EntityUpdateData.fromJSON(e))
|
9498
|
+
: [],
|
9499
|
+
};
|
9500
|
+
},
|
9501
|
+
|
9502
|
+
toJSON(message: DBRequest_DBUpdate): unknown {
|
9503
|
+
const obj: any = {};
|
9504
|
+
if (message.entity?.length) {
|
9505
|
+
obj.entity = message.entity;
|
9506
|
+
}
|
9507
|
+
if (message.id?.length) {
|
9508
|
+
obj.id = message.id;
|
9509
|
+
}
|
9510
|
+
if (message.entityData?.length) {
|
9511
|
+
obj.entityData = message.entityData.map((e) => EntityUpdateData.toJSON(e));
|
9512
|
+
}
|
9513
|
+
return obj;
|
9514
|
+
},
|
9515
|
+
|
9516
|
+
create(base?: DeepPartial<DBRequest_DBUpdate>): DBRequest_DBUpdate {
|
9517
|
+
return DBRequest_DBUpdate.fromPartial(base ?? {});
|
9518
|
+
},
|
9519
|
+
fromPartial(object: DeepPartial<DBRequest_DBUpdate>): DBRequest_DBUpdate {
|
9520
|
+
const message = createBaseDBRequest_DBUpdate();
|
9521
|
+
message.entity = object.entity?.map((e) => e) || [];
|
9522
|
+
message.id = object.id?.map((e) => e) || [];
|
9523
|
+
message.entityData = object.entityData?.map((e) => EntityUpdateData.fromPartial(e)) || [];
|
9524
|
+
return message;
|
9525
|
+
},
|
9526
|
+
};
|
9527
|
+
|
9037
9528
|
function createBaseDBRequest_DBDelete(): DBRequest_DBDelete {
|
9038
9529
|
return { entity: [], id: [] };
|
9039
9530
|
}
|
@@ -11922,7 +12413,7 @@ export const StateResult = {
|
|
11922
12413
|
};
|
11923
12414
|
|
11924
12415
|
function createBaseProcessResult(): ProcessResult {
|
11925
|
-
return { gauges: [], counters: [], logs: [], events: [], exports: [], states: undefined };
|
12416
|
+
return { gauges: [], counters: [], logs: [], events: [], exports: [], states: undefined, timeseriesResult: [] };
|
11926
12417
|
}
|
11927
12418
|
|
11928
12419
|
export const ProcessResult = {
|
@@ -11945,6 +12436,9 @@ export const ProcessResult = {
|
|
11945
12436
|
if (message.states !== undefined) {
|
11946
12437
|
StateResult.encode(message.states, writer.uint32(50).fork()).ldelim();
|
11947
12438
|
}
|
12439
|
+
for (const v of message.timeseriesResult) {
|
12440
|
+
TimeseriesResult.encode(v!, writer.uint32(58).fork()).ldelim();
|
12441
|
+
}
|
11948
12442
|
return writer;
|
11949
12443
|
},
|
11950
12444
|
|
@@ -11997,6 +12491,13 @@ export const ProcessResult = {
|
|
11997
12491
|
|
11998
12492
|
message.states = StateResult.decode(reader, reader.uint32());
|
11999
12493
|
continue;
|
12494
|
+
case 7:
|
12495
|
+
if (tag !== 58) {
|
12496
|
+
break;
|
12497
|
+
}
|
12498
|
+
|
12499
|
+
message.timeseriesResult.push(TimeseriesResult.decode(reader, reader.uint32()));
|
12500
|
+
continue;
|
12000
12501
|
}
|
12001
12502
|
if ((tag & 7) === 4 || tag === 0) {
|
12002
12503
|
break;
|
@@ -12020,6 +12521,9 @@ export const ProcessResult = {
|
|
12020
12521
|
? object.exports.map((e: any) => ExportResult.fromJSON(e))
|
12021
12522
|
: [],
|
12022
12523
|
states: isSet(object.states) ? StateResult.fromJSON(object.states) : undefined,
|
12524
|
+
timeseriesResult: globalThis.Array.isArray(object?.timeseriesResult)
|
12525
|
+
? object.timeseriesResult.map((e: any) => TimeseriesResult.fromJSON(e))
|
12526
|
+
: [],
|
12023
12527
|
};
|
12024
12528
|
},
|
12025
12529
|
|
@@ -12043,6 +12547,9 @@ export const ProcessResult = {
|
|
12043
12547
|
if (message.states !== undefined) {
|
12044
12548
|
obj.states = StateResult.toJSON(message.states);
|
12045
12549
|
}
|
12550
|
+
if (message.timeseriesResult?.length) {
|
12551
|
+
obj.timeseriesResult = message.timeseriesResult.map((e) => TimeseriesResult.toJSON(e));
|
12552
|
+
}
|
12046
12553
|
return obj;
|
12047
12554
|
},
|
12048
12555
|
|
@@ -12059,6 +12566,7 @@ export const ProcessResult = {
|
|
12059
12566
|
message.states = (object.states !== undefined && object.states !== null)
|
12060
12567
|
? StateResult.fromPartial(object.states)
|
12061
12568
|
: undefined;
|
12569
|
+
message.timeseriesResult = object.timeseriesResult?.map((e) => TimeseriesResult.fromPartial(e)) || [];
|
12062
12570
|
return message;
|
12063
12571
|
},
|
12064
12572
|
};
|
@@ -13399,6 +13907,116 @@ export const EventTrackingResult = {
|
|
13399
13907
|
},
|
13400
13908
|
};
|
13401
13909
|
|
13910
|
+
function createBaseTimeseriesResult(): TimeseriesResult {
|
13911
|
+
return { metadata: undefined, type: 0, data: undefined, runtimeInfo: undefined };
|
13912
|
+
}
|
13913
|
+
|
13914
|
+
export const TimeseriesResult = {
|
13915
|
+
encode(message: TimeseriesResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
13916
|
+
if (message.metadata !== undefined) {
|
13917
|
+
RecordMetaData.encode(message.metadata, writer.uint32(10).fork()).ldelim();
|
13918
|
+
}
|
13919
|
+
if (message.type !== 0) {
|
13920
|
+
writer.uint32(16).int32(message.type);
|
13921
|
+
}
|
13922
|
+
if (message.data !== undefined) {
|
13923
|
+
RichStruct.encode(message.data, writer.uint32(26).fork()).ldelim();
|
13924
|
+
}
|
13925
|
+
if (message.runtimeInfo !== undefined) {
|
13926
|
+
RuntimeInfo.encode(message.runtimeInfo, writer.uint32(34).fork()).ldelim();
|
13927
|
+
}
|
13928
|
+
return writer;
|
13929
|
+
},
|
13930
|
+
|
13931
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TimeseriesResult {
|
13932
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
13933
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
13934
|
+
const message = createBaseTimeseriesResult();
|
13935
|
+
while (reader.pos < end) {
|
13936
|
+
const tag = reader.uint32();
|
13937
|
+
switch (tag >>> 3) {
|
13938
|
+
case 1:
|
13939
|
+
if (tag !== 10) {
|
13940
|
+
break;
|
13941
|
+
}
|
13942
|
+
|
13943
|
+
message.metadata = RecordMetaData.decode(reader, reader.uint32());
|
13944
|
+
continue;
|
13945
|
+
case 2:
|
13946
|
+
if (tag !== 16) {
|
13947
|
+
break;
|
13948
|
+
}
|
13949
|
+
|
13950
|
+
message.type = reader.int32() as any;
|
13951
|
+
continue;
|
13952
|
+
case 3:
|
13953
|
+
if (tag !== 26) {
|
13954
|
+
break;
|
13955
|
+
}
|
13956
|
+
|
13957
|
+
message.data = RichStruct.decode(reader, reader.uint32());
|
13958
|
+
continue;
|
13959
|
+
case 4:
|
13960
|
+
if (tag !== 34) {
|
13961
|
+
break;
|
13962
|
+
}
|
13963
|
+
|
13964
|
+
message.runtimeInfo = RuntimeInfo.decode(reader, reader.uint32());
|
13965
|
+
continue;
|
13966
|
+
}
|
13967
|
+
if ((tag & 7) === 4 || tag === 0) {
|
13968
|
+
break;
|
13969
|
+
}
|
13970
|
+
reader.skipType(tag & 7);
|
13971
|
+
}
|
13972
|
+
return message;
|
13973
|
+
},
|
13974
|
+
|
13975
|
+
fromJSON(object: any): TimeseriesResult {
|
13976
|
+
return {
|
13977
|
+
metadata: isSet(object.metadata) ? RecordMetaData.fromJSON(object.metadata) : undefined,
|
13978
|
+
type: isSet(object.type) ? timeseriesResult_TimeseriesTypeFromJSON(object.type) : 0,
|
13979
|
+
data: isSet(object.data) ? RichStruct.fromJSON(object.data) : undefined,
|
13980
|
+
runtimeInfo: isSet(object.runtimeInfo) ? RuntimeInfo.fromJSON(object.runtimeInfo) : undefined,
|
13981
|
+
};
|
13982
|
+
},
|
13983
|
+
|
13984
|
+
toJSON(message: TimeseriesResult): unknown {
|
13985
|
+
const obj: any = {};
|
13986
|
+
if (message.metadata !== undefined) {
|
13987
|
+
obj.metadata = RecordMetaData.toJSON(message.metadata);
|
13988
|
+
}
|
13989
|
+
if (message.type !== 0) {
|
13990
|
+
obj.type = timeseriesResult_TimeseriesTypeToJSON(message.type);
|
13991
|
+
}
|
13992
|
+
if (message.data !== undefined) {
|
13993
|
+
obj.data = RichStruct.toJSON(message.data);
|
13994
|
+
}
|
13995
|
+
if (message.runtimeInfo !== undefined) {
|
13996
|
+
obj.runtimeInfo = RuntimeInfo.toJSON(message.runtimeInfo);
|
13997
|
+
}
|
13998
|
+
return obj;
|
13999
|
+
},
|
14000
|
+
|
14001
|
+
create(base?: DeepPartial<TimeseriesResult>): TimeseriesResult {
|
14002
|
+
return TimeseriesResult.fromPartial(base ?? {});
|
14003
|
+
},
|
14004
|
+
fromPartial(object: DeepPartial<TimeseriesResult>): TimeseriesResult {
|
14005
|
+
const message = createBaseTimeseriesResult();
|
14006
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
14007
|
+
? RecordMetaData.fromPartial(object.metadata)
|
14008
|
+
: undefined;
|
14009
|
+
message.type = object.type ?? 0;
|
14010
|
+
message.data = (object.data !== undefined && object.data !== null)
|
14011
|
+
? RichStruct.fromPartial(object.data)
|
14012
|
+
: undefined;
|
14013
|
+
message.runtimeInfo = (object.runtimeInfo !== undefined && object.runtimeInfo !== null)
|
14014
|
+
? RuntimeInfo.fromPartial(object.runtimeInfo)
|
14015
|
+
: undefined;
|
14016
|
+
return message;
|
14017
|
+
},
|
14018
|
+
};
|
14019
|
+
|
13402
14020
|
function createBaseExportResult(): ExportResult {
|
13403
14021
|
return { metadata: undefined, payload: "", runtimeInfo: undefined };
|
13404
14022
|
}
|