@sentio/runtime 2.39.3 → 2.39.4-rc.2
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/db-context.d.ts +55 -2
- package/lib/db-context.d.ts.map +1 -1
- package/lib/db-context.js +1 -4
- package/lib/db-context.js.map +1 -1
- package/lib/full-service.d.ts +55 -2
- package/lib/full-service.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +32 -15
- package/lib/gen/processor/protos/processor.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.js +226 -88
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/gen/service/common/protos/common.d.ts +97 -0
- package/lib/gen/service/common/protos/common.d.ts.map +1 -1
- package/lib/gen/service/common/protos/common.js +624 -0
- package/lib/gen/service/common/protos/common.js.map +1 -1
- package/lib/service.d.ts +55 -2
- package/lib/service.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/db-context.ts +1 -3
- package/src/gen/processor/protos/processor.ts +251 -103
- package/src/gen/service/common/protos/common.ts +727 -0
package/lib/service.d.ts
CHANGED
@@ -25,6 +25,33 @@ export declare class ProcessorServiceImpl implements ProcessorServiceImplementat
|
|
25
25
|
data?: {
|
26
26
|
[x: string]: any;
|
27
27
|
}[] | undefined;
|
28
|
+
entityData?: {
|
29
|
+
fields?: {
|
30
|
+
[x: string]: {
|
31
|
+
nullValue?: import("@sentio/protos").RichValue_NullValue | undefined;
|
32
|
+
intValue?: number | undefined;
|
33
|
+
floatValue?: number | undefined;
|
34
|
+
bytesValue?: Uint8Array | undefined;
|
35
|
+
boolValue?: boolean | undefined;
|
36
|
+
stringValue?: string | undefined;
|
37
|
+
timestampValue?: Date | undefined;
|
38
|
+
bigintValue?: {
|
39
|
+
negative?: boolean | undefined;
|
40
|
+
data?: Uint8Array | undefined;
|
41
|
+
} | undefined;
|
42
|
+
bigdecimalValue?: {
|
43
|
+
value?: {
|
44
|
+
negative?: boolean | undefined;
|
45
|
+
data?: Uint8Array | undefined;
|
46
|
+
} | undefined;
|
47
|
+
exp?: number | undefined;
|
48
|
+
} | undefined;
|
49
|
+
listValue?: {
|
50
|
+
values?: any[] | undefined;
|
51
|
+
} | undefined;
|
52
|
+
} | undefined;
|
53
|
+
} | undefined;
|
54
|
+
}[] | undefined;
|
28
55
|
} | undefined;
|
29
56
|
delete?: {
|
30
57
|
entity?: string[] | undefined;
|
@@ -32,8 +59,34 @@ export declare class ProcessorServiceImpl implements ProcessorServiceImplementat
|
|
32
59
|
} | undefined;
|
33
60
|
list?: {
|
34
61
|
entity?: string | undefined;
|
35
|
-
|
36
|
-
|
62
|
+
filters?: {
|
63
|
+
field?: string | undefined;
|
64
|
+
op?: import("@sentio/protos").DBRequest_DBOperator | undefined;
|
65
|
+
value?: {
|
66
|
+
values?: {
|
67
|
+
nullValue?: import("@sentio/protos").RichValue_NullValue | undefined;
|
68
|
+
intValue?: number | undefined;
|
69
|
+
floatValue?: number | undefined;
|
70
|
+
bytesValue?: Uint8Array | undefined;
|
71
|
+
boolValue?: boolean | undefined;
|
72
|
+
stringValue?: string | undefined;
|
73
|
+
timestampValue?: Date | undefined;
|
74
|
+
bigintValue?: {
|
75
|
+
negative?: boolean | undefined;
|
76
|
+
data?: Uint8Array | undefined;
|
77
|
+
} | undefined;
|
78
|
+
bigdecimalValue?: {
|
79
|
+
value?: {
|
80
|
+
negative?: boolean | undefined;
|
81
|
+
data?: Uint8Array | undefined;
|
82
|
+
} | undefined;
|
83
|
+
exp?: number | undefined;
|
84
|
+
} | undefined;
|
85
|
+
listValue?: any | undefined;
|
86
|
+
}[] | undefined;
|
87
|
+
} | undefined;
|
88
|
+
}[] | undefined;
|
89
|
+
cursor?: string | undefined;
|
37
90
|
} | undefined;
|
38
91
|
} | undefined;
|
39
92
|
result?: {
|
package/lib/service.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AA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package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/runtime",
|
3
|
-
"version": "2.39.
|
3
|
+
"version": "2.39.4-rc.2",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"rxjs": "^7.8.1",
|
33
33
|
"utility-types": "^3.11.0",
|
34
34
|
"winston": "^3.11.0",
|
35
|
-
"@sentio/protos": "2.39.
|
35
|
+
"@sentio/protos": "2.39.4-rc.2"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
38
|
"@types/command-line-args": "^5.2.3",
|
package/src/db-context.ts
CHANGED
@@ -36,10 +36,8 @@ export class StoreContext {
|
|
36
36
|
if (defer) {
|
37
37
|
if (dbResult.error) {
|
38
38
|
defer.reject(new Error(dbResult.error))
|
39
|
-
} else if (dbResult.list) {
|
40
|
-
defer.resolve(dbResult.list)
|
41
39
|
} else {
|
42
|
-
defer.resolve(dbResult
|
40
|
+
defer.resolve(dbResult)
|
43
41
|
}
|
44
42
|
this.defers.delete(opId)
|
45
43
|
}
|
@@ -5,7 +5,7 @@ import _m0 from "protobufjs/minimal.js";
|
|
5
5
|
import { Empty } from "../../google/protobuf/empty.js";
|
6
6
|
import { ListValue, Struct } from "../../google/protobuf/struct.js";
|
7
7
|
import { Timestamp } from "../../google/protobuf/timestamp.js";
|
8
|
-
import { CoinID } from "../../service/common/protos/common.js";
|
8
|
+
import { BigInteger, CoinID, RichStruct, RichStructList, RichValueList } from "../../service/common/protos/common.js";
|
9
9
|
|
10
10
|
export enum MetricType {
|
11
11
|
UNKNOWN_TYPE = 0,
|
@@ -756,6 +756,8 @@ export interface DBResponse {
|
|
756
756
|
data?: { [key: string]: any } | undefined;
|
757
757
|
list?: Array<any> | undefined;
|
758
758
|
error?: string | undefined;
|
759
|
+
entities?: RichStructList | undefined;
|
760
|
+
nextCursor?: string | undefined;
|
759
761
|
}
|
760
762
|
|
761
763
|
export interface DBRequest {
|
@@ -766,6 +768,75 @@ export interface DBRequest {
|
|
766
768
|
list?: DBRequest_DBList | undefined;
|
767
769
|
}
|
768
770
|
|
771
|
+
export enum DBRequest_DBOperator {
|
772
|
+
EQ = 0,
|
773
|
+
NE = 1,
|
774
|
+
GT = 2,
|
775
|
+
GE = 3,
|
776
|
+
LT = 4,
|
777
|
+
LE = 5,
|
778
|
+
IN = 6,
|
779
|
+
NOT_IN = 7,
|
780
|
+
UNRECOGNIZED = -1,
|
781
|
+
}
|
782
|
+
|
783
|
+
export function dBRequest_DBOperatorFromJSON(object: any): DBRequest_DBOperator {
|
784
|
+
switch (object) {
|
785
|
+
case 0:
|
786
|
+
case "EQ":
|
787
|
+
return DBRequest_DBOperator.EQ;
|
788
|
+
case 1:
|
789
|
+
case "NE":
|
790
|
+
return DBRequest_DBOperator.NE;
|
791
|
+
case 2:
|
792
|
+
case "GT":
|
793
|
+
return DBRequest_DBOperator.GT;
|
794
|
+
case 3:
|
795
|
+
case "GE":
|
796
|
+
return DBRequest_DBOperator.GE;
|
797
|
+
case 4:
|
798
|
+
case "LT":
|
799
|
+
return DBRequest_DBOperator.LT;
|
800
|
+
case 5:
|
801
|
+
case "LE":
|
802
|
+
return DBRequest_DBOperator.LE;
|
803
|
+
case 6:
|
804
|
+
case "IN":
|
805
|
+
return DBRequest_DBOperator.IN;
|
806
|
+
case 7:
|
807
|
+
case "NOT_IN":
|
808
|
+
return DBRequest_DBOperator.NOT_IN;
|
809
|
+
case -1:
|
810
|
+
case "UNRECOGNIZED":
|
811
|
+
default:
|
812
|
+
return DBRequest_DBOperator.UNRECOGNIZED;
|
813
|
+
}
|
814
|
+
}
|
815
|
+
|
816
|
+
export function dBRequest_DBOperatorToJSON(object: DBRequest_DBOperator): string {
|
817
|
+
switch (object) {
|
818
|
+
case DBRequest_DBOperator.EQ:
|
819
|
+
return "EQ";
|
820
|
+
case DBRequest_DBOperator.NE:
|
821
|
+
return "NE";
|
822
|
+
case DBRequest_DBOperator.GT:
|
823
|
+
return "GT";
|
824
|
+
case DBRequest_DBOperator.GE:
|
825
|
+
return "GE";
|
826
|
+
case DBRequest_DBOperator.LT:
|
827
|
+
return "LT";
|
828
|
+
case DBRequest_DBOperator.LE:
|
829
|
+
return "LE";
|
830
|
+
case DBRequest_DBOperator.IN:
|
831
|
+
return "IN";
|
832
|
+
case DBRequest_DBOperator.NOT_IN:
|
833
|
+
return "NOT_IN";
|
834
|
+
case DBRequest_DBOperator.UNRECOGNIZED:
|
835
|
+
default:
|
836
|
+
return "UNRECOGNIZED";
|
837
|
+
}
|
838
|
+
}
|
839
|
+
|
769
840
|
export interface DBRequest_DBGet {
|
770
841
|
entity: string;
|
771
842
|
id: string;
|
@@ -773,14 +844,15 @@ export interface DBRequest_DBGet {
|
|
773
844
|
|
774
845
|
export interface DBRequest_DBList {
|
775
846
|
entity: string;
|
776
|
-
|
777
|
-
|
847
|
+
filters: DBRequest_DBFilter[];
|
848
|
+
cursor: string;
|
778
849
|
}
|
779
850
|
|
780
851
|
export interface DBRequest_DBUpsert {
|
781
852
|
entity: string[];
|
782
853
|
id: string[];
|
783
854
|
data: { [key: string]: any }[];
|
855
|
+
entityData: RichStruct[];
|
784
856
|
}
|
785
857
|
|
786
858
|
export interface DBRequest_DBDelete {
|
@@ -788,6 +860,12 @@ export interface DBRequest_DBDelete {
|
|
788
860
|
id: string[];
|
789
861
|
}
|
790
862
|
|
863
|
+
export interface DBRequest_DBFilter {
|
864
|
+
field: string;
|
865
|
+
op: DBRequest_DBOperator;
|
866
|
+
value: RichValueList | undefined;
|
867
|
+
}
|
868
|
+
|
791
869
|
export interface Data {
|
792
870
|
/** @deprecated */
|
793
871
|
raw: Uint8Array;
|
@@ -937,11 +1015,6 @@ export interface MetricValue {
|
|
937
1015
|
bigInteger?: BigInteger | undefined;
|
938
1016
|
}
|
939
1017
|
|
940
|
-
export interface BigInteger {
|
941
|
-
negative: boolean;
|
942
|
-
data: Uint8Array;
|
943
|
-
}
|
944
|
-
|
945
1018
|
export interface RuntimeInfo {
|
946
1019
|
from: HandlerType;
|
947
1020
|
}
|
@@ -5805,7 +5878,14 @@ export const ProcessStreamResponse = {
|
|
5805
5878
|
};
|
5806
5879
|
|
5807
5880
|
function createBaseDBResponse(): DBResponse {
|
5808
|
-
return {
|
5881
|
+
return {
|
5882
|
+
opId: BigInt("0"),
|
5883
|
+
data: undefined,
|
5884
|
+
list: undefined,
|
5885
|
+
error: undefined,
|
5886
|
+
entities: undefined,
|
5887
|
+
nextCursor: undefined,
|
5888
|
+
};
|
5809
5889
|
}
|
5810
5890
|
|
5811
5891
|
export const DBResponse = {
|
@@ -5825,6 +5905,12 @@ export const DBResponse = {
|
|
5825
5905
|
if (message.error !== undefined) {
|
5826
5906
|
writer.uint32(26).string(message.error);
|
5827
5907
|
}
|
5908
|
+
if (message.entities !== undefined) {
|
5909
|
+
RichStructList.encode(message.entities, writer.uint32(50).fork()).ldelim();
|
5910
|
+
}
|
5911
|
+
if (message.nextCursor !== undefined) {
|
5912
|
+
writer.uint32(42).string(message.nextCursor);
|
5913
|
+
}
|
5828
5914
|
return writer;
|
5829
5915
|
},
|
5830
5916
|
|
@@ -5863,6 +5949,20 @@ export const DBResponse = {
|
|
5863
5949
|
|
5864
5950
|
message.error = reader.string();
|
5865
5951
|
continue;
|
5952
|
+
case 6:
|
5953
|
+
if (tag !== 50) {
|
5954
|
+
break;
|
5955
|
+
}
|
5956
|
+
|
5957
|
+
message.entities = RichStructList.decode(reader, reader.uint32());
|
5958
|
+
continue;
|
5959
|
+
case 5:
|
5960
|
+
if (tag !== 42) {
|
5961
|
+
break;
|
5962
|
+
}
|
5963
|
+
|
5964
|
+
message.nextCursor = reader.string();
|
5965
|
+
continue;
|
5866
5966
|
}
|
5867
5967
|
if ((tag & 7) === 4 || tag === 0) {
|
5868
5968
|
break;
|
@@ -5878,6 +5978,8 @@ export const DBResponse = {
|
|
5878
5978
|
data: isObject(object.data) ? object.data : undefined,
|
5879
5979
|
list: globalThis.Array.isArray(object.list) ? [...object.list] : undefined,
|
5880
5980
|
error: isSet(object.error) ? globalThis.String(object.error) : undefined,
|
5981
|
+
entities: isSet(object.entities) ? RichStructList.fromJSON(object.entities) : undefined,
|
5982
|
+
nextCursor: isSet(object.nextCursor) ? globalThis.String(object.nextCursor) : undefined,
|
5881
5983
|
};
|
5882
5984
|
},
|
5883
5985
|
|
@@ -5895,6 +5997,12 @@ export const DBResponse = {
|
|
5895
5997
|
if (message.error !== undefined) {
|
5896
5998
|
obj.error = message.error;
|
5897
5999
|
}
|
6000
|
+
if (message.entities !== undefined) {
|
6001
|
+
obj.entities = RichStructList.toJSON(message.entities);
|
6002
|
+
}
|
6003
|
+
if (message.nextCursor !== undefined) {
|
6004
|
+
obj.nextCursor = message.nextCursor;
|
6005
|
+
}
|
5898
6006
|
return obj;
|
5899
6007
|
},
|
5900
6008
|
|
@@ -5907,6 +6015,10 @@ export const DBResponse = {
|
|
5907
6015
|
message.data = object.data ?? undefined;
|
5908
6016
|
message.list = object.list ?? undefined;
|
5909
6017
|
message.error = object.error ?? undefined;
|
6018
|
+
message.entities = (object.entities !== undefined && object.entities !== null)
|
6019
|
+
? RichStructList.fromPartial(object.entities)
|
6020
|
+
: undefined;
|
6021
|
+
message.nextCursor = object.nextCursor ?? undefined;
|
5910
6022
|
return message;
|
5911
6023
|
},
|
5912
6024
|
};
|
@@ -6116,7 +6228,7 @@ export const DBRequest_DBGet = {
|
|
6116
6228
|
};
|
6117
6229
|
|
6118
6230
|
function createBaseDBRequest_DBList(): DBRequest_DBList {
|
6119
|
-
return { entity: "",
|
6231
|
+
return { entity: "", filters: [], cursor: "" };
|
6120
6232
|
}
|
6121
6233
|
|
6122
6234
|
export const DBRequest_DBList = {
|
@@ -6124,11 +6236,11 @@ export const DBRequest_DBList = {
|
|
6124
6236
|
if (message.entity !== "") {
|
6125
6237
|
writer.uint32(10).string(message.entity);
|
6126
6238
|
}
|
6127
|
-
|
6128
|
-
writer.uint32(
|
6239
|
+
for (const v of message.filters) {
|
6240
|
+
DBRequest_DBFilter.encode(v!, writer.uint32(34).fork()).ldelim();
|
6129
6241
|
}
|
6130
|
-
if (message.
|
6131
|
-
writer.uint32(
|
6242
|
+
if (message.cursor !== "") {
|
6243
|
+
writer.uint32(42).string(message.cursor);
|
6132
6244
|
}
|
6133
6245
|
return writer;
|
6134
6246
|
},
|
@@ -6147,19 +6259,19 @@ export const DBRequest_DBList = {
|
|
6147
6259
|
|
6148
6260
|
message.entity = reader.string();
|
6149
6261
|
continue;
|
6150
|
-
case
|
6151
|
-
if (tag !==
|
6262
|
+
case 4:
|
6263
|
+
if (tag !== 34) {
|
6152
6264
|
break;
|
6153
6265
|
}
|
6154
6266
|
|
6155
|
-
message.
|
6267
|
+
message.filters.push(DBRequest_DBFilter.decode(reader, reader.uint32()));
|
6156
6268
|
continue;
|
6157
|
-
case
|
6158
|
-
if (tag !==
|
6269
|
+
case 5:
|
6270
|
+
if (tag !== 42) {
|
6159
6271
|
break;
|
6160
6272
|
}
|
6161
6273
|
|
6162
|
-
message.
|
6274
|
+
message.cursor = reader.string();
|
6163
6275
|
continue;
|
6164
6276
|
}
|
6165
6277
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -6173,8 +6285,10 @@ export const DBRequest_DBList = {
|
|
6173
6285
|
fromJSON(object: any): DBRequest_DBList {
|
6174
6286
|
return {
|
6175
6287
|
entity: isSet(object.entity) ? globalThis.String(object.entity) : "",
|
6176
|
-
|
6177
|
-
|
6288
|
+
filters: globalThis.Array.isArray(object?.filters)
|
6289
|
+
? object.filters.map((e: any) => DBRequest_DBFilter.fromJSON(e))
|
6290
|
+
: [],
|
6291
|
+
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
6178
6292
|
};
|
6179
6293
|
},
|
6180
6294
|
|
@@ -6183,11 +6297,11 @@ export const DBRequest_DBList = {
|
|
6183
6297
|
if (message.entity !== "") {
|
6184
6298
|
obj.entity = message.entity;
|
6185
6299
|
}
|
6186
|
-
if (message.
|
6187
|
-
obj.
|
6300
|
+
if (message.filters?.length) {
|
6301
|
+
obj.filters = message.filters.map((e) => DBRequest_DBFilter.toJSON(e));
|
6188
6302
|
}
|
6189
|
-
if (message.
|
6190
|
-
obj.
|
6303
|
+
if (message.cursor !== "") {
|
6304
|
+
obj.cursor = message.cursor;
|
6191
6305
|
}
|
6192
6306
|
return obj;
|
6193
6307
|
},
|
@@ -6198,14 +6312,14 @@ export const DBRequest_DBList = {
|
|
6198
6312
|
fromPartial(object: DeepPartial<DBRequest_DBList>): DBRequest_DBList {
|
6199
6313
|
const message = createBaseDBRequest_DBList();
|
6200
6314
|
message.entity = object.entity ?? "";
|
6201
|
-
message.
|
6202
|
-
message.
|
6315
|
+
message.filters = object.filters?.map((e) => DBRequest_DBFilter.fromPartial(e)) || [];
|
6316
|
+
message.cursor = object.cursor ?? "";
|
6203
6317
|
return message;
|
6204
6318
|
},
|
6205
6319
|
};
|
6206
6320
|
|
6207
6321
|
function createBaseDBRequest_DBUpsert(): DBRequest_DBUpsert {
|
6208
|
-
return { entity: [], id: [], data: [] };
|
6322
|
+
return { entity: [], id: [], data: [], entityData: [] };
|
6209
6323
|
}
|
6210
6324
|
|
6211
6325
|
export const DBRequest_DBUpsert = {
|
@@ -6219,6 +6333,9 @@ export const DBRequest_DBUpsert = {
|
|
6219
6333
|
for (const v of message.data) {
|
6220
6334
|
Struct.encode(Struct.wrap(v!), writer.uint32(26).fork()).ldelim();
|
6221
6335
|
}
|
6336
|
+
for (const v of message.entityData) {
|
6337
|
+
RichStruct.encode(v!, writer.uint32(34).fork()).ldelim();
|
6338
|
+
}
|
6222
6339
|
return writer;
|
6223
6340
|
},
|
6224
6341
|
|
@@ -6250,6 +6367,13 @@ export const DBRequest_DBUpsert = {
|
|
6250
6367
|
|
6251
6368
|
message.data.push(Struct.unwrap(Struct.decode(reader, reader.uint32())));
|
6252
6369
|
continue;
|
6370
|
+
case 4:
|
6371
|
+
if (tag !== 34) {
|
6372
|
+
break;
|
6373
|
+
}
|
6374
|
+
|
6375
|
+
message.entityData.push(RichStruct.decode(reader, reader.uint32()));
|
6376
|
+
continue;
|
6253
6377
|
}
|
6254
6378
|
if ((tag & 7) === 4 || tag === 0) {
|
6255
6379
|
break;
|
@@ -6264,6 +6388,9 @@ export const DBRequest_DBUpsert = {
|
|
6264
6388
|
entity: globalThis.Array.isArray(object?.entity) ? object.entity.map((e: any) => globalThis.String(e)) : [],
|
6265
6389
|
id: globalThis.Array.isArray(object?.id) ? object.id.map((e: any) => globalThis.String(e)) : [],
|
6266
6390
|
data: globalThis.Array.isArray(object?.data) ? [...object.data] : [],
|
6391
|
+
entityData: globalThis.Array.isArray(object?.entityData)
|
6392
|
+
? object.entityData.map((e: any) => RichStruct.fromJSON(e))
|
6393
|
+
: [],
|
6267
6394
|
};
|
6268
6395
|
},
|
6269
6396
|
|
@@ -6278,6 +6405,9 @@ export const DBRequest_DBUpsert = {
|
|
6278
6405
|
if (message.data?.length) {
|
6279
6406
|
obj.data = message.data;
|
6280
6407
|
}
|
6408
|
+
if (message.entityData?.length) {
|
6409
|
+
obj.entityData = message.entityData.map((e) => RichStruct.toJSON(e));
|
6410
|
+
}
|
6281
6411
|
return obj;
|
6282
6412
|
},
|
6283
6413
|
|
@@ -6289,6 +6419,7 @@ export const DBRequest_DBUpsert = {
|
|
6289
6419
|
message.entity = object.entity?.map((e) => e) || [];
|
6290
6420
|
message.id = object.id?.map((e) => e) || [];
|
6291
6421
|
message.data = object.data?.map((e) => e) || [];
|
6422
|
+
message.entityData = object.entityData?.map((e) => RichStruct.fromPartial(e)) || [];
|
6292
6423
|
return message;
|
6293
6424
|
},
|
6294
6425
|
};
|
@@ -6367,6 +6498,97 @@ export const DBRequest_DBDelete = {
|
|
6367
6498
|
},
|
6368
6499
|
};
|
6369
6500
|
|
6501
|
+
function createBaseDBRequest_DBFilter(): DBRequest_DBFilter {
|
6502
|
+
return { field: "", op: 0, value: undefined };
|
6503
|
+
}
|
6504
|
+
|
6505
|
+
export const DBRequest_DBFilter = {
|
6506
|
+
encode(message: DBRequest_DBFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
6507
|
+
if (message.field !== "") {
|
6508
|
+
writer.uint32(10).string(message.field);
|
6509
|
+
}
|
6510
|
+
if (message.op !== 0) {
|
6511
|
+
writer.uint32(16).int32(message.op);
|
6512
|
+
}
|
6513
|
+
if (message.value !== undefined) {
|
6514
|
+
RichValueList.encode(message.value, writer.uint32(26).fork()).ldelim();
|
6515
|
+
}
|
6516
|
+
return writer;
|
6517
|
+
},
|
6518
|
+
|
6519
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest_DBFilter {
|
6520
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
6521
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
6522
|
+
const message = createBaseDBRequest_DBFilter();
|
6523
|
+
while (reader.pos < end) {
|
6524
|
+
const tag = reader.uint32();
|
6525
|
+
switch (tag >>> 3) {
|
6526
|
+
case 1:
|
6527
|
+
if (tag !== 10) {
|
6528
|
+
break;
|
6529
|
+
}
|
6530
|
+
|
6531
|
+
message.field = reader.string();
|
6532
|
+
continue;
|
6533
|
+
case 2:
|
6534
|
+
if (tag !== 16) {
|
6535
|
+
break;
|
6536
|
+
}
|
6537
|
+
|
6538
|
+
message.op = reader.int32() as any;
|
6539
|
+
continue;
|
6540
|
+
case 3:
|
6541
|
+
if (tag !== 26) {
|
6542
|
+
break;
|
6543
|
+
}
|
6544
|
+
|
6545
|
+
message.value = RichValueList.decode(reader, reader.uint32());
|
6546
|
+
continue;
|
6547
|
+
}
|
6548
|
+
if ((tag & 7) === 4 || tag === 0) {
|
6549
|
+
break;
|
6550
|
+
}
|
6551
|
+
reader.skipType(tag & 7);
|
6552
|
+
}
|
6553
|
+
return message;
|
6554
|
+
},
|
6555
|
+
|
6556
|
+
fromJSON(object: any): DBRequest_DBFilter {
|
6557
|
+
return {
|
6558
|
+
field: isSet(object.field) ? globalThis.String(object.field) : "",
|
6559
|
+
op: isSet(object.op) ? dBRequest_DBOperatorFromJSON(object.op) : 0,
|
6560
|
+
value: isSet(object.value) ? RichValueList.fromJSON(object.value) : undefined,
|
6561
|
+
};
|
6562
|
+
},
|
6563
|
+
|
6564
|
+
toJSON(message: DBRequest_DBFilter): unknown {
|
6565
|
+
const obj: any = {};
|
6566
|
+
if (message.field !== "") {
|
6567
|
+
obj.field = message.field;
|
6568
|
+
}
|
6569
|
+
if (message.op !== 0) {
|
6570
|
+
obj.op = dBRequest_DBOperatorToJSON(message.op);
|
6571
|
+
}
|
6572
|
+
if (message.value !== undefined) {
|
6573
|
+
obj.value = RichValueList.toJSON(message.value);
|
6574
|
+
}
|
6575
|
+
return obj;
|
6576
|
+
},
|
6577
|
+
|
6578
|
+
create(base?: DeepPartial<DBRequest_DBFilter>): DBRequest_DBFilter {
|
6579
|
+
return DBRequest_DBFilter.fromPartial(base ?? {});
|
6580
|
+
},
|
6581
|
+
fromPartial(object: DeepPartial<DBRequest_DBFilter>): DBRequest_DBFilter {
|
6582
|
+
const message = createBaseDBRequest_DBFilter();
|
6583
|
+
message.field = object.field ?? "";
|
6584
|
+
message.op = object.op ?? 0;
|
6585
|
+
message.value = (object.value !== undefined && object.value !== null)
|
6586
|
+
? RichValueList.fromPartial(object.value)
|
6587
|
+
: undefined;
|
6588
|
+
return message;
|
6589
|
+
},
|
6590
|
+
};
|
6591
|
+
|
6370
6592
|
function createBaseData(): Data {
|
6371
6593
|
return {
|
6372
6594
|
raw: new Uint8Array(0),
|
@@ -8686,80 +8908,6 @@ export const MetricValue = {
|
|
8686
8908
|
},
|
8687
8909
|
};
|
8688
8910
|
|
8689
|
-
function createBaseBigInteger(): BigInteger {
|
8690
|
-
return { negative: false, data: new Uint8Array(0) };
|
8691
|
-
}
|
8692
|
-
|
8693
|
-
export const BigInteger = {
|
8694
|
-
encode(message: BigInteger, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8695
|
-
if (message.negative !== false) {
|
8696
|
-
writer.uint32(8).bool(message.negative);
|
8697
|
-
}
|
8698
|
-
if (message.data.length !== 0) {
|
8699
|
-
writer.uint32(18).bytes(message.data);
|
8700
|
-
}
|
8701
|
-
return writer;
|
8702
|
-
},
|
8703
|
-
|
8704
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BigInteger {
|
8705
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
8706
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
8707
|
-
const message = createBaseBigInteger();
|
8708
|
-
while (reader.pos < end) {
|
8709
|
-
const tag = reader.uint32();
|
8710
|
-
switch (tag >>> 3) {
|
8711
|
-
case 1:
|
8712
|
-
if (tag !== 8) {
|
8713
|
-
break;
|
8714
|
-
}
|
8715
|
-
|
8716
|
-
message.negative = reader.bool();
|
8717
|
-
continue;
|
8718
|
-
case 2:
|
8719
|
-
if (tag !== 18) {
|
8720
|
-
break;
|
8721
|
-
}
|
8722
|
-
|
8723
|
-
message.data = reader.bytes();
|
8724
|
-
continue;
|
8725
|
-
}
|
8726
|
-
if ((tag & 7) === 4 || tag === 0) {
|
8727
|
-
break;
|
8728
|
-
}
|
8729
|
-
reader.skipType(tag & 7);
|
8730
|
-
}
|
8731
|
-
return message;
|
8732
|
-
},
|
8733
|
-
|
8734
|
-
fromJSON(object: any): BigInteger {
|
8735
|
-
return {
|
8736
|
-
negative: isSet(object.negative) ? globalThis.Boolean(object.negative) : false,
|
8737
|
-
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
8738
|
-
};
|
8739
|
-
},
|
8740
|
-
|
8741
|
-
toJSON(message: BigInteger): unknown {
|
8742
|
-
const obj: any = {};
|
8743
|
-
if (message.negative !== false) {
|
8744
|
-
obj.negative = message.negative;
|
8745
|
-
}
|
8746
|
-
if (message.data.length !== 0) {
|
8747
|
-
obj.data = base64FromBytes(message.data);
|
8748
|
-
}
|
8749
|
-
return obj;
|
8750
|
-
},
|
8751
|
-
|
8752
|
-
create(base?: DeepPartial<BigInteger>): BigInteger {
|
8753
|
-
return BigInteger.fromPartial(base ?? {});
|
8754
|
-
},
|
8755
|
-
fromPartial(object: DeepPartial<BigInteger>): BigInteger {
|
8756
|
-
const message = createBaseBigInteger();
|
8757
|
-
message.negative = object.negative ?? false;
|
8758
|
-
message.data = object.data ?? new Uint8Array(0);
|
8759
|
-
return message;
|
8760
|
-
},
|
8761
|
-
};
|
8762
|
-
|
8763
8911
|
function createBaseRuntimeInfo(): RuntimeInfo {
|
8764
8912
|
return { from: 0 };
|
8765
8913
|
}
|