@sentio/runtime 2.59.0-rc.14 → 2.59.0-rc.16
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-GD7EL7GH.js → chunk-NIAALZHZ.js} +2 -2
- package/lib/{chunk-J23VJQSB.js → chunk-QLUHWTGU.js} +10 -6
- package/lib/{chunk-J23VJQSB.js.map → chunk-QLUHWTGU.js.map} +1 -1
- package/lib/{chunk-3T4PWGQU.js → chunk-YKYFIG5E.js} +344 -2
- package/lib/chunk-YKYFIG5E.js.map +1 -0
- package/lib/index.d.ts +110 -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 +409 -1
- package/src/metrics.ts +8 -4
- package/lib/chunk-3T4PWGQU.js.map +0 -1
- /package/lib/{chunk-GD7EL7GH.js.map → chunk-NIAALZHZ.js.map} +0 -0
package/lib/index.d.ts
CHANGED
@@ -235,6 +235,59 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
235
235
|
} | undefined;
|
236
236
|
}[] | undefined;
|
237
237
|
} | undefined;
|
238
|
+
update?: {
|
239
|
+
entity?: string[] | undefined;
|
240
|
+
id?: string[] | undefined;
|
241
|
+
entityData?: {
|
242
|
+
fields?: {
|
243
|
+
[x: string]: {
|
244
|
+
value?: {
|
245
|
+
nullValue?: _sentio_protos.RichValue_NullValue | undefined;
|
246
|
+
intValue?: number | undefined;
|
247
|
+
int64Value?: bigint | undefined;
|
248
|
+
floatValue?: number | undefined;
|
249
|
+
bytesValue?: Uint8Array | undefined;
|
250
|
+
boolValue?: boolean | undefined;
|
251
|
+
stringValue?: string | undefined;
|
252
|
+
timestampValue?: Date | undefined;
|
253
|
+
bigintValue?: {
|
254
|
+
negative?: boolean | undefined;
|
255
|
+
data?: Uint8Array | undefined;
|
256
|
+
} | undefined;
|
257
|
+
bigdecimalValue?: {
|
258
|
+
value?: {
|
259
|
+
negative?: boolean | undefined;
|
260
|
+
data?: Uint8Array | undefined;
|
261
|
+
} | undefined;
|
262
|
+
exp?: number | undefined;
|
263
|
+
} | undefined;
|
264
|
+
listValue?: {
|
265
|
+
values?: any[] | undefined;
|
266
|
+
} | undefined;
|
267
|
+
structValue?: any | undefined;
|
268
|
+
tokenValue?: {
|
269
|
+
token?: {
|
270
|
+
symbol?: string | undefined;
|
271
|
+
address?: {
|
272
|
+
address?: string | undefined;
|
273
|
+
chain?: string | undefined;
|
274
|
+
} | undefined;
|
275
|
+
} | undefined;
|
276
|
+
amount?: {
|
277
|
+
value?: {
|
278
|
+
negative?: boolean | undefined;
|
279
|
+
data?: Uint8Array | undefined;
|
280
|
+
} | undefined;
|
281
|
+
exp?: number | undefined;
|
282
|
+
} | undefined;
|
283
|
+
specifiedAt?: Date | undefined;
|
284
|
+
} | undefined;
|
285
|
+
} | undefined;
|
286
|
+
op?: _sentio_protos.EntityUpdateData_Operator | undefined;
|
287
|
+
} | undefined;
|
288
|
+
} | undefined;
|
289
|
+
}[] | undefined;
|
290
|
+
} | undefined;
|
238
291
|
delete?: {
|
239
292
|
entity?: string[] | undefined;
|
240
293
|
id?: string[] | undefined;
|
@@ -464,6 +517,59 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
464
517
|
} | undefined;
|
465
518
|
}[] | undefined;
|
466
519
|
} | undefined;
|
520
|
+
update?: {
|
521
|
+
entity?: string[] | undefined;
|
522
|
+
id?: string[] | undefined;
|
523
|
+
entityData?: {
|
524
|
+
fields?: {
|
525
|
+
[x: string]: {
|
526
|
+
value?: {
|
527
|
+
nullValue?: _sentio_protos.RichValue_NullValue | undefined;
|
528
|
+
intValue?: number | undefined;
|
529
|
+
int64Value?: bigint | undefined;
|
530
|
+
floatValue?: number | undefined;
|
531
|
+
bytesValue?: Uint8Array | undefined;
|
532
|
+
boolValue?: boolean | undefined;
|
533
|
+
stringValue?: string | undefined;
|
534
|
+
timestampValue?: Date | undefined;
|
535
|
+
bigintValue?: {
|
536
|
+
negative?: boolean | undefined;
|
537
|
+
data?: Uint8Array | undefined;
|
538
|
+
} | undefined;
|
539
|
+
bigdecimalValue?: {
|
540
|
+
value?: {
|
541
|
+
negative?: boolean | undefined;
|
542
|
+
data?: Uint8Array | undefined;
|
543
|
+
} | undefined;
|
544
|
+
exp?: number | undefined;
|
545
|
+
} | undefined;
|
546
|
+
listValue?: {
|
547
|
+
values?: any[] | undefined;
|
548
|
+
} | undefined;
|
549
|
+
structValue?: any | undefined;
|
550
|
+
tokenValue?: {
|
551
|
+
token?: {
|
552
|
+
symbol?: string | undefined;
|
553
|
+
address?: {
|
554
|
+
address?: string | undefined;
|
555
|
+
chain?: string | undefined;
|
556
|
+
} | undefined;
|
557
|
+
} | undefined;
|
558
|
+
amount?: {
|
559
|
+
value?: {
|
560
|
+
negative?: boolean | undefined;
|
561
|
+
data?: Uint8Array | undefined;
|
562
|
+
} | undefined;
|
563
|
+
exp?: number | undefined;
|
564
|
+
} | undefined;
|
565
|
+
specifiedAt?: Date | undefined;
|
566
|
+
} | undefined;
|
567
|
+
} | undefined;
|
568
|
+
op?: _sentio_protos.EntityUpdateData_Operator | undefined;
|
569
|
+
} | undefined;
|
570
|
+
} | undefined;
|
571
|
+
}[] | undefined;
|
572
|
+
} | undefined;
|
467
573
|
delete?: {
|
468
574
|
entity?: string[] | undefined;
|
469
575
|
id?: string[] | undefined;
|
@@ -568,24 +674,28 @@ declare const dbMetrics: {
|
|
568
674
|
upsert: C;
|
569
675
|
list: C;
|
570
676
|
delete: C;
|
677
|
+
update: C;
|
571
678
|
};
|
572
679
|
recv_counts: {
|
573
680
|
get: C;
|
574
681
|
upsert: C;
|
575
682
|
list: C;
|
576
683
|
delete: C;
|
684
|
+
update: C;
|
577
685
|
};
|
578
686
|
request_times: {
|
579
687
|
get: C;
|
580
688
|
upsert: C;
|
581
689
|
list: C;
|
582
690
|
delete: C;
|
691
|
+
update: C;
|
583
692
|
};
|
584
693
|
request_errors: {
|
585
694
|
get: C;
|
586
695
|
upsert: C;
|
587
696
|
list: C;
|
588
697
|
delete: C;
|
698
|
+
update: C;
|
589
699
|
};
|
590
700
|
batched_total_count: C;
|
591
701
|
batched_request_count: C;
|
package/lib/index.js
CHANGED
@@ -28,11 +28,11 @@ import {
|
|
28
28
|
providerMetrics,
|
29
29
|
recordRuntimeInfo,
|
30
30
|
timeoutError
|
31
|
-
} from "./chunk-
|
31
|
+
} from "./chunk-QLUHWTGU.js";
|
32
32
|
import {
|
33
33
|
Plugin,
|
34
34
|
PluginManager
|
35
|
-
} from "./chunk-
|
35
|
+
} from "./chunk-YKYFIG5E.js";
|
36
36
|
|
37
37
|
// src/chain-config.ts
|
38
38
|
import("node:process").then((p) => p.stdout.write(""));
|
package/lib/processor-runner.js
CHANGED
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
} from "./chunk-6XHWJ2VS.js";
|
6
6
|
import {
|
7
7
|
setupLogger
|
8
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-NIAALZHZ.js";
|
9
9
|
import {
|
10
10
|
DiagConsoleLogger,
|
11
11
|
DiagLogLevel,
|
@@ -44,7 +44,7 @@ import {
|
|
44
44
|
require_lodash,
|
45
45
|
require_src,
|
46
46
|
trace
|
47
|
-
} from "./chunk-
|
47
|
+
} from "./chunk-QLUHWTGU.js";
|
48
48
|
import {
|
49
49
|
ExecutionConfig,
|
50
50
|
HandlerType,
|
@@ -60,7 +60,7 @@ import {
|
|
60
60
|
__toCommonJS,
|
61
61
|
__toESM,
|
62
62
|
require_minimal2 as require_minimal
|
63
|
-
} from "./chunk-
|
63
|
+
} from "./chunk-YKYFIG5E.js";
|
64
64
|
|
65
65
|
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.25.1/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js
|
66
66
|
// @__NO_SIDE_EFFECTS__
|
package/lib/service-worker.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
2
2
|
import {
|
3
3
|
setupLogger
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-NIAALZHZ.js";
|
5
5
|
import {
|
6
6
|
AbstractStoreContext,
|
7
7
|
configureEndpoints,
|
@@ -10,12 +10,12 @@ import {
|
|
10
10
|
recordRuntimeInfo,
|
11
11
|
require_lib3 as require_lib,
|
12
12
|
require_lib4 as require_lib2
|
13
|
-
} from "./chunk-
|
13
|
+
} from "./chunk-QLUHWTGU.js";
|
14
14
|
import {
|
15
15
|
PluginManager,
|
16
16
|
ProcessConfigResponse,
|
17
17
|
__toESM
|
18
|
-
} from "./chunk-
|
18
|
+
} from "./chunk-YKYFIG5E.js";
|
19
19
|
|
20
20
|
// src/service-worker.ts
|
21
21
|
var import_nice_grpc = __toESM(require_lib(), 1);
|
package/package.json
CHANGED
@@ -957,10 +957,64 @@ export interface EntityList {
|
|
957
957
|
entities: Entity[];
|
958
958
|
}
|
959
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
|
+
|
960
1013
|
export interface DBRequest {
|
961
1014
|
opId: bigint;
|
962
1015
|
get?: DBRequest_DBGet | undefined;
|
963
1016
|
upsert?: DBRequest_DBUpsert | undefined;
|
1017
|
+
update?: DBRequest_DBUpdate | undefined;
|
964
1018
|
delete?: DBRequest_DBDelete | undefined;
|
965
1019
|
list?: DBRequest_DBList | undefined;
|
966
1020
|
}
|
@@ -1077,6 +1131,12 @@ export interface DBRequest_DBUpsert {
|
|
1077
1131
|
entityData: RichStruct[];
|
1078
1132
|
}
|
1079
1133
|
|
1134
|
+
export interface DBRequest_DBUpdate {
|
1135
|
+
entity: string[];
|
1136
|
+
id: string[];
|
1137
|
+
entityData: EntityUpdateData[];
|
1138
|
+
}
|
1139
|
+
|
1080
1140
|
export interface DBRequest_DBDelete {
|
1081
1141
|
entity: string[];
|
1082
1142
|
id: string[];
|
@@ -8654,8 +8714,248 @@ export const EntityList = {
|
|
8654
8714
|
},
|
8655
8715
|
};
|
8656
8716
|
|
8717
|
+
function createBaseEntityUpdateData(): EntityUpdateData {
|
8718
|
+
return { fields: {} };
|
8719
|
+
}
|
8720
|
+
|
8721
|
+
export const EntityUpdateData = {
|
8722
|
+
encode(message: EntityUpdateData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8723
|
+
Object.entries(message.fields).forEach(([key, value]) => {
|
8724
|
+
EntityUpdateData_FieldsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();
|
8725
|
+
});
|
8726
|
+
return writer;
|
8727
|
+
},
|
8728
|
+
|
8729
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData {
|
8730
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8731
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8732
|
+
const message = createBaseEntityUpdateData();
|
8733
|
+
while (reader.pos < end) {
|
8734
|
+
const tag = reader.uint32();
|
8735
|
+
switch (tag >>> 3) {
|
8736
|
+
case 1:
|
8737
|
+
if (tag !== 10) {
|
8738
|
+
break;
|
8739
|
+
}
|
8740
|
+
|
8741
|
+
const entry1 = EntityUpdateData_FieldsEntry.decode(reader, reader.uint32());
|
8742
|
+
if (entry1.value !== undefined) {
|
8743
|
+
message.fields[entry1.key] = entry1.value;
|
8744
|
+
}
|
8745
|
+
continue;
|
8746
|
+
}
|
8747
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8748
|
+
break;
|
8749
|
+
}
|
8750
|
+
reader.skipType(tag & 7);
|
8751
|
+
}
|
8752
|
+
return message;
|
8753
|
+
},
|
8754
|
+
|
8755
|
+
fromJSON(object: any): EntityUpdateData {
|
8756
|
+
return {
|
8757
|
+
fields: isObject(object.fields)
|
8758
|
+
? Object.entries(object.fields).reduce<{ [key: string]: EntityUpdateData_FieldValue }>((acc, [key, value]) => {
|
8759
|
+
acc[key] = EntityUpdateData_FieldValue.fromJSON(value);
|
8760
|
+
return acc;
|
8761
|
+
}, {})
|
8762
|
+
: {},
|
8763
|
+
};
|
8764
|
+
},
|
8765
|
+
|
8766
|
+
toJSON(message: EntityUpdateData): unknown {
|
8767
|
+
const obj: any = {};
|
8768
|
+
if (message.fields) {
|
8769
|
+
const entries = Object.entries(message.fields);
|
8770
|
+
if (entries.length > 0) {
|
8771
|
+
obj.fields = {};
|
8772
|
+
entries.forEach(([k, v]) => {
|
8773
|
+
obj.fields[k] = EntityUpdateData_FieldValue.toJSON(v);
|
8774
|
+
});
|
8775
|
+
}
|
8776
|
+
}
|
8777
|
+
return obj;
|
8778
|
+
},
|
8779
|
+
|
8780
|
+
create(base?: DeepPartial<EntityUpdateData>): EntityUpdateData {
|
8781
|
+
return EntityUpdateData.fromPartial(base ?? {});
|
8782
|
+
},
|
8783
|
+
fromPartial(object: DeepPartial<EntityUpdateData>): EntityUpdateData {
|
8784
|
+
const message = createBaseEntityUpdateData();
|
8785
|
+
message.fields = Object.entries(object.fields ?? {}).reduce<{ [key: string]: EntityUpdateData_FieldValue }>(
|
8786
|
+
(acc, [key, value]) => {
|
8787
|
+
if (value !== undefined) {
|
8788
|
+
acc[key] = EntityUpdateData_FieldValue.fromPartial(value);
|
8789
|
+
}
|
8790
|
+
return acc;
|
8791
|
+
},
|
8792
|
+
{},
|
8793
|
+
);
|
8794
|
+
return message;
|
8795
|
+
},
|
8796
|
+
};
|
8797
|
+
|
8798
|
+
function createBaseEntityUpdateData_FieldValue(): EntityUpdateData_FieldValue {
|
8799
|
+
return { value: undefined, op: 0 };
|
8800
|
+
}
|
8801
|
+
|
8802
|
+
export const EntityUpdateData_FieldValue = {
|
8803
|
+
encode(message: EntityUpdateData_FieldValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8804
|
+
if (message.value !== undefined) {
|
8805
|
+
RichValue.encode(message.value, writer.uint32(10).fork()).ldelim();
|
8806
|
+
}
|
8807
|
+
if (message.op !== 0) {
|
8808
|
+
writer.uint32(16).int32(message.op);
|
8809
|
+
}
|
8810
|
+
return writer;
|
8811
|
+
},
|
8812
|
+
|
8813
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData_FieldValue {
|
8814
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8815
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8816
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
8817
|
+
while (reader.pos < end) {
|
8818
|
+
const tag = reader.uint32();
|
8819
|
+
switch (tag >>> 3) {
|
8820
|
+
case 1:
|
8821
|
+
if (tag !== 10) {
|
8822
|
+
break;
|
8823
|
+
}
|
8824
|
+
|
8825
|
+
message.value = RichValue.decode(reader, reader.uint32());
|
8826
|
+
continue;
|
8827
|
+
case 2:
|
8828
|
+
if (tag !== 16) {
|
8829
|
+
break;
|
8830
|
+
}
|
8831
|
+
|
8832
|
+
message.op = reader.int32() as any;
|
8833
|
+
continue;
|
8834
|
+
}
|
8835
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8836
|
+
break;
|
8837
|
+
}
|
8838
|
+
reader.skipType(tag & 7);
|
8839
|
+
}
|
8840
|
+
return message;
|
8841
|
+
},
|
8842
|
+
|
8843
|
+
fromJSON(object: any): EntityUpdateData_FieldValue {
|
8844
|
+
return {
|
8845
|
+
value: isSet(object.value) ? RichValue.fromJSON(object.value) : undefined,
|
8846
|
+
op: isSet(object.op) ? entityUpdateData_OperatorFromJSON(object.op) : 0,
|
8847
|
+
};
|
8848
|
+
},
|
8849
|
+
|
8850
|
+
toJSON(message: EntityUpdateData_FieldValue): unknown {
|
8851
|
+
const obj: any = {};
|
8852
|
+
if (message.value !== undefined) {
|
8853
|
+
obj.value = RichValue.toJSON(message.value);
|
8854
|
+
}
|
8855
|
+
if (message.op !== 0) {
|
8856
|
+
obj.op = entityUpdateData_OperatorToJSON(message.op);
|
8857
|
+
}
|
8858
|
+
return obj;
|
8859
|
+
},
|
8860
|
+
|
8861
|
+
create(base?: DeepPartial<EntityUpdateData_FieldValue>): EntityUpdateData_FieldValue {
|
8862
|
+
return EntityUpdateData_FieldValue.fromPartial(base ?? {});
|
8863
|
+
},
|
8864
|
+
fromPartial(object: DeepPartial<EntityUpdateData_FieldValue>): EntityUpdateData_FieldValue {
|
8865
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
8866
|
+
message.value = (object.value !== undefined && object.value !== null)
|
8867
|
+
? RichValue.fromPartial(object.value)
|
8868
|
+
: undefined;
|
8869
|
+
message.op = object.op ?? 0;
|
8870
|
+
return message;
|
8871
|
+
},
|
8872
|
+
};
|
8873
|
+
|
8874
|
+
function createBaseEntityUpdateData_FieldsEntry(): EntityUpdateData_FieldsEntry {
|
8875
|
+
return { key: "", value: undefined };
|
8876
|
+
}
|
8877
|
+
|
8878
|
+
export const EntityUpdateData_FieldsEntry = {
|
8879
|
+
encode(message: EntityUpdateData_FieldsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8880
|
+
if (message.key !== "") {
|
8881
|
+
writer.uint32(10).string(message.key);
|
8882
|
+
}
|
8883
|
+
if (message.value !== undefined) {
|
8884
|
+
EntityUpdateData_FieldValue.encode(message.value, writer.uint32(18).fork()).ldelim();
|
8885
|
+
}
|
8886
|
+
return writer;
|
8887
|
+
},
|
8888
|
+
|
8889
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EntityUpdateData_FieldsEntry {
|
8890
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8891
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
8892
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
8893
|
+
while (reader.pos < end) {
|
8894
|
+
const tag = reader.uint32();
|
8895
|
+
switch (tag >>> 3) {
|
8896
|
+
case 1:
|
8897
|
+
if (tag !== 10) {
|
8898
|
+
break;
|
8899
|
+
}
|
8900
|
+
|
8901
|
+
message.key = reader.string();
|
8902
|
+
continue;
|
8903
|
+
case 2:
|
8904
|
+
if (tag !== 18) {
|
8905
|
+
break;
|
8906
|
+
}
|
8907
|
+
|
8908
|
+
message.value = EntityUpdateData_FieldValue.decode(reader, reader.uint32());
|
8909
|
+
continue;
|
8910
|
+
}
|
8911
|
+
if ((tag & 7) === 4 || tag === 0) {
|
8912
|
+
break;
|
8913
|
+
}
|
8914
|
+
reader.skipType(tag & 7);
|
8915
|
+
}
|
8916
|
+
return message;
|
8917
|
+
},
|
8918
|
+
|
8919
|
+
fromJSON(object: any): EntityUpdateData_FieldsEntry {
|
8920
|
+
return {
|
8921
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
8922
|
+
value: isSet(object.value) ? EntityUpdateData_FieldValue.fromJSON(object.value) : undefined,
|
8923
|
+
};
|
8924
|
+
},
|
8925
|
+
|
8926
|
+
toJSON(message: EntityUpdateData_FieldsEntry): unknown {
|
8927
|
+
const obj: any = {};
|
8928
|
+
if (message.key !== "") {
|
8929
|
+
obj.key = message.key;
|
8930
|
+
}
|
8931
|
+
if (message.value !== undefined) {
|
8932
|
+
obj.value = EntityUpdateData_FieldValue.toJSON(message.value);
|
8933
|
+
}
|
8934
|
+
return obj;
|
8935
|
+
},
|
8936
|
+
|
8937
|
+
create(base?: DeepPartial<EntityUpdateData_FieldsEntry>): EntityUpdateData_FieldsEntry {
|
8938
|
+
return EntityUpdateData_FieldsEntry.fromPartial(base ?? {});
|
8939
|
+
},
|
8940
|
+
fromPartial(object: DeepPartial<EntityUpdateData_FieldsEntry>): EntityUpdateData_FieldsEntry {
|
8941
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
8942
|
+
message.key = object.key ?? "";
|
8943
|
+
message.value = (object.value !== undefined && object.value !== null)
|
8944
|
+
? EntityUpdateData_FieldValue.fromPartial(object.value)
|
8945
|
+
: undefined;
|
8946
|
+
return message;
|
8947
|
+
},
|
8948
|
+
};
|
8949
|
+
|
8657
8950
|
function createBaseDBRequest(): DBRequest {
|
8658
|
-
return {
|
8951
|
+
return {
|
8952
|
+
opId: BigInt("0"),
|
8953
|
+
get: undefined,
|
8954
|
+
upsert: undefined,
|
8955
|
+
update: undefined,
|
8956
|
+
delete: undefined,
|
8957
|
+
list: undefined,
|
8958
|
+
};
|
8659
8959
|
}
|
8660
8960
|
|
8661
8961
|
export const DBRequest = {
|
@@ -8672,6 +8972,9 @@ export const DBRequest = {
|
|
8672
8972
|
if (message.upsert !== undefined) {
|
8673
8973
|
DBRequest_DBUpsert.encode(message.upsert, writer.uint32(26).fork()).ldelim();
|
8674
8974
|
}
|
8975
|
+
if (message.update !== undefined) {
|
8976
|
+
DBRequest_DBUpdate.encode(message.update, writer.uint32(50).fork()).ldelim();
|
8977
|
+
}
|
8675
8978
|
if (message.delete !== undefined) {
|
8676
8979
|
DBRequest_DBDelete.encode(message.delete, writer.uint32(34).fork()).ldelim();
|
8677
8980
|
}
|
@@ -8709,6 +9012,13 @@ export const DBRequest = {
|
|
8709
9012
|
|
8710
9013
|
message.upsert = DBRequest_DBUpsert.decode(reader, reader.uint32());
|
8711
9014
|
continue;
|
9015
|
+
case 6:
|
9016
|
+
if (tag !== 50) {
|
9017
|
+
break;
|
9018
|
+
}
|
9019
|
+
|
9020
|
+
message.update = DBRequest_DBUpdate.decode(reader, reader.uint32());
|
9021
|
+
continue;
|
8712
9022
|
case 4:
|
8713
9023
|
if (tag !== 34) {
|
8714
9024
|
break;
|
@@ -8737,6 +9047,7 @@ export const DBRequest = {
|
|
8737
9047
|
opId: isSet(object.opId) ? BigInt(object.opId) : BigInt("0"),
|
8738
9048
|
get: isSet(object.get) ? DBRequest_DBGet.fromJSON(object.get) : undefined,
|
8739
9049
|
upsert: isSet(object.upsert) ? DBRequest_DBUpsert.fromJSON(object.upsert) : undefined,
|
9050
|
+
update: isSet(object.update) ? DBRequest_DBUpdate.fromJSON(object.update) : undefined,
|
8740
9051
|
delete: isSet(object.delete) ? DBRequest_DBDelete.fromJSON(object.delete) : undefined,
|
8741
9052
|
list: isSet(object.list) ? DBRequest_DBList.fromJSON(object.list) : undefined,
|
8742
9053
|
};
|
@@ -8753,6 +9064,9 @@ export const DBRequest = {
|
|
8753
9064
|
if (message.upsert !== undefined) {
|
8754
9065
|
obj.upsert = DBRequest_DBUpsert.toJSON(message.upsert);
|
8755
9066
|
}
|
9067
|
+
if (message.update !== undefined) {
|
9068
|
+
obj.update = DBRequest_DBUpdate.toJSON(message.update);
|
9069
|
+
}
|
8756
9070
|
if (message.delete !== undefined) {
|
8757
9071
|
obj.delete = DBRequest_DBDelete.toJSON(message.delete);
|
8758
9072
|
}
|
@@ -8774,6 +9088,9 @@ export const DBRequest = {
|
|
8774
9088
|
message.upsert = (object.upsert !== undefined && object.upsert !== null)
|
8775
9089
|
? DBRequest_DBUpsert.fromPartial(object.upsert)
|
8776
9090
|
: undefined;
|
9091
|
+
message.update = (object.update !== undefined && object.update !== null)
|
9092
|
+
? DBRequest_DBUpdate.fromPartial(object.update)
|
9093
|
+
: undefined;
|
8777
9094
|
message.delete = (object.delete !== undefined && object.delete !== null)
|
8778
9095
|
? DBRequest_DBDelete.fromPartial(object.delete)
|
8779
9096
|
: undefined;
|
@@ -9070,6 +9387,97 @@ export const DBRequest_DBUpsert = {
|
|
9070
9387
|
},
|
9071
9388
|
};
|
9072
9389
|
|
9390
|
+
function createBaseDBRequest_DBUpdate(): DBRequest_DBUpdate {
|
9391
|
+
return { entity: [], id: [], entityData: [] };
|
9392
|
+
}
|
9393
|
+
|
9394
|
+
export const DBRequest_DBUpdate = {
|
9395
|
+
encode(message: DBRequest_DBUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9396
|
+
for (const v of message.entity) {
|
9397
|
+
writer.uint32(10).string(v!);
|
9398
|
+
}
|
9399
|
+
for (const v of message.id) {
|
9400
|
+
writer.uint32(18).string(v!);
|
9401
|
+
}
|
9402
|
+
for (const v of message.entityData) {
|
9403
|
+
EntityUpdateData.encode(v!, writer.uint32(26).fork()).ldelim();
|
9404
|
+
}
|
9405
|
+
return writer;
|
9406
|
+
},
|
9407
|
+
|
9408
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest_DBUpdate {
|
9409
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
9410
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
9411
|
+
const message = createBaseDBRequest_DBUpdate();
|
9412
|
+
while (reader.pos < end) {
|
9413
|
+
const tag = reader.uint32();
|
9414
|
+
switch (tag >>> 3) {
|
9415
|
+
case 1:
|
9416
|
+
if (tag !== 10) {
|
9417
|
+
break;
|
9418
|
+
}
|
9419
|
+
|
9420
|
+
message.entity.push(reader.string());
|
9421
|
+
continue;
|
9422
|
+
case 2:
|
9423
|
+
if (tag !== 18) {
|
9424
|
+
break;
|
9425
|
+
}
|
9426
|
+
|
9427
|
+
message.id.push(reader.string());
|
9428
|
+
continue;
|
9429
|
+
case 3:
|
9430
|
+
if (tag !== 26) {
|
9431
|
+
break;
|
9432
|
+
}
|
9433
|
+
|
9434
|
+
message.entityData.push(EntityUpdateData.decode(reader, reader.uint32()));
|
9435
|
+
continue;
|
9436
|
+
}
|
9437
|
+
if ((tag & 7) === 4 || tag === 0) {
|
9438
|
+
break;
|
9439
|
+
}
|
9440
|
+
reader.skipType(tag & 7);
|
9441
|
+
}
|
9442
|
+
return message;
|
9443
|
+
},
|
9444
|
+
|
9445
|
+
fromJSON(object: any): DBRequest_DBUpdate {
|
9446
|
+
return {
|
9447
|
+
entity: globalThis.Array.isArray(object?.entity) ? object.entity.map((e: any) => globalThis.String(e)) : [],
|
9448
|
+
id: globalThis.Array.isArray(object?.id) ? object.id.map((e: any) => globalThis.String(e)) : [],
|
9449
|
+
entityData: globalThis.Array.isArray(object?.entityData)
|
9450
|
+
? object.entityData.map((e: any) => EntityUpdateData.fromJSON(e))
|
9451
|
+
: [],
|
9452
|
+
};
|
9453
|
+
},
|
9454
|
+
|
9455
|
+
toJSON(message: DBRequest_DBUpdate): unknown {
|
9456
|
+
const obj: any = {};
|
9457
|
+
if (message.entity?.length) {
|
9458
|
+
obj.entity = message.entity;
|
9459
|
+
}
|
9460
|
+
if (message.id?.length) {
|
9461
|
+
obj.id = message.id;
|
9462
|
+
}
|
9463
|
+
if (message.entityData?.length) {
|
9464
|
+
obj.entityData = message.entityData.map((e) => EntityUpdateData.toJSON(e));
|
9465
|
+
}
|
9466
|
+
return obj;
|
9467
|
+
},
|
9468
|
+
|
9469
|
+
create(base?: DeepPartial<DBRequest_DBUpdate>): DBRequest_DBUpdate {
|
9470
|
+
return DBRequest_DBUpdate.fromPartial(base ?? {});
|
9471
|
+
},
|
9472
|
+
fromPartial(object: DeepPartial<DBRequest_DBUpdate>): DBRequest_DBUpdate {
|
9473
|
+
const message = createBaseDBRequest_DBUpdate();
|
9474
|
+
message.entity = object.entity?.map((e) => e) || [];
|
9475
|
+
message.id = object.id?.map((e) => e) || [];
|
9476
|
+
message.entityData = object.entityData?.map((e) => EntityUpdateData.fromPartial(e)) || [];
|
9477
|
+
return message;
|
9478
|
+
},
|
9479
|
+
};
|
9480
|
+
|
9073
9481
|
function createBaseDBRequest_DBDelete(): DBRequest_DBDelete {
|
9074
9482
|
return { entity: [], id: [] };
|
9075
9483
|
}
|