@sentio/runtime 1.0.0-development
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/gen/google/protobuf/empty.d.ts +16 -0
- package/lib/gen/google/protobuf/empty.js +47 -0
- package/lib/gen/google/protobuf/empty.js.map +1 -0
- package/lib/gen/google/protobuf/struct.d.ts +73 -0
- package/lib/gen/google/protobuf/struct.js +371 -0
- package/lib/gen/google/protobuf/struct.js.map +1 -0
- package/lib/gen/processor/protos/processor.d.ts +826 -0
- package/lib/gen/processor/protos/processor.js +3988 -0
- package/lib/gen/processor/protos/processor.js.map +1 -0
- package/lib/gen/src/google/protobuf/timestamp.d.ts +18 -0
- package/lib/gen/src/google/protobuf/timestamp.js +71 -0
- package/lib/gen/src/google/protobuf/timestamp.js.map +1 -0
- package/package.json +52 -0
- package/processor_full.proto +433 -0
- package/src/gen/google/protobuf/empty.ts +58 -0
- package/src/gen/google/protobuf/struct.ts +422 -0
- package/src/gen/processor/protos/processor.ts +4619 -0
- package/src/gen/src/google/protobuf/timestamp.ts +85 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export interface Empty {
|
|
4
|
+
}
|
|
5
|
+
export declare const Empty: {
|
|
6
|
+
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
7
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
8
|
+
fromJSON(_: any): Empty;
|
|
9
|
+
toJSON(_: Empty): unknown;
|
|
10
|
+
fromPartial(_: DeepPartial<Empty>): Empty;
|
|
11
|
+
};
|
|
12
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
13
|
+
declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
14
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
15
|
+
} : Partial<T>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Empty = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
function createBaseEmpty() {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
exports.Empty = {
|
|
14
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
return writer;
|
|
16
|
+
},
|
|
17
|
+
decode(input, length) {
|
|
18
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
19
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
20
|
+
const message = createBaseEmpty();
|
|
21
|
+
while (reader.pos < end) {
|
|
22
|
+
const tag = reader.uint32();
|
|
23
|
+
switch (tag >>> 3) {
|
|
24
|
+
default:
|
|
25
|
+
reader.skipType(tag & 7);
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return message;
|
|
30
|
+
},
|
|
31
|
+
fromJSON(_) {
|
|
32
|
+
return {};
|
|
33
|
+
},
|
|
34
|
+
toJSON(_) {
|
|
35
|
+
const obj = {};
|
|
36
|
+
return obj;
|
|
37
|
+
},
|
|
38
|
+
fromPartial(_) {
|
|
39
|
+
const message = createBaseEmpty();
|
|
40
|
+
return message;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
44
|
+
minimal_1.default.util.Long = long_1.default;
|
|
45
|
+
minimal_1.default.configure();
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../src/gen/google/protobuf/empty.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,gDAAwB;AACxB,iEAAqC;AAKrC,SAAS,eAAe;IACtB,OAAO,EAAE,CAAC;AACZ,CAAC;AAEY,QAAA,KAAK,GAAG;IACnB,MAAM,CAAC,CAAQ,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACvD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpD,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,iBAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,eAAe,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE;YACvB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YAC5B,QAAQ,GAAG,KAAK,CAAC,EAAE;gBACjB;oBACE,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;oBACzB,MAAM;aACT;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,QAAQ,CAAC,CAAM;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,CAAC,CAAQ;QACb,MAAM,GAAG,GAAQ,EAAE,CAAC;QACpB,OAAO,GAAG,CAAC;IACb,CAAC;IAED,WAAW,CAAC,CAAqB;QAC/B,MAAM,OAAO,GAAG,eAAe,EAAE,CAAC;QAClC,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAUF,IAAI,iBAAG,CAAC,IAAI,CAAC,IAAI,KAAK,cAAI,EAAE;IAC1B,iBAAG,CAAC,IAAI,CAAC,IAAI,GAAG,cAAW,CAAC;IAC5B,iBAAG,CAAC,SAAS,EAAE,CAAC;CACjB","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport interface Empty {\n}\n\nfunction createBaseEmpty(): Empty {\n return {};\n}\n\nexport const Empty = {\n encode(_: Empty, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Empty {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseEmpty();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(_: any): Empty {\n return {};\n },\n\n toJSON(_: Empty): unknown {\n const obj: any = {};\n return obj;\n },\n\n fromPartial(_: DeepPartial<Empty>): Empty {\n const message = createBaseEmpty();\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare enum NullValue {
|
|
4
|
+
NULL_VALUE = 0,
|
|
5
|
+
UNRECOGNIZED = -1
|
|
6
|
+
}
|
|
7
|
+
export declare function nullValueFromJSON(object: any): NullValue;
|
|
8
|
+
export declare function nullValueToJSON(object: NullValue): string;
|
|
9
|
+
export interface Struct {
|
|
10
|
+
fields: {
|
|
11
|
+
[key: string]: any | undefined;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface Struct_FieldsEntry {
|
|
15
|
+
key: string;
|
|
16
|
+
value: any | undefined;
|
|
17
|
+
}
|
|
18
|
+
export interface Value {
|
|
19
|
+
nullValue?: NullValue | undefined;
|
|
20
|
+
numberValue?: number | undefined;
|
|
21
|
+
stringValue?: string | undefined;
|
|
22
|
+
boolValue?: boolean | undefined;
|
|
23
|
+
structValue?: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
} | undefined;
|
|
26
|
+
listValue?: Array<any> | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface ListValue {
|
|
29
|
+
values: any[];
|
|
30
|
+
}
|
|
31
|
+
export declare const Struct: {
|
|
32
|
+
encode(message: Struct, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Struct;
|
|
34
|
+
fromJSON(object: any): Struct;
|
|
35
|
+
toJSON(message: Struct): unknown;
|
|
36
|
+
fromPartial(object: DeepPartial<Struct>): Struct;
|
|
37
|
+
wrap(object: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
} | undefined): Struct;
|
|
40
|
+
unwrap(message: Struct): {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const Struct_FieldsEntry: {
|
|
45
|
+
encode(message: Struct_FieldsEntry, writer?: _m0.Writer): _m0.Writer;
|
|
46
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Struct_FieldsEntry;
|
|
47
|
+
fromJSON(object: any): Struct_FieldsEntry;
|
|
48
|
+
toJSON(message: Struct_FieldsEntry): unknown;
|
|
49
|
+
fromPartial(object: DeepPartial<Struct_FieldsEntry>): Struct_FieldsEntry;
|
|
50
|
+
};
|
|
51
|
+
export declare const Value: {
|
|
52
|
+
encode(message: Value, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Value;
|
|
54
|
+
fromJSON(object: any): Value;
|
|
55
|
+
toJSON(message: Value): unknown;
|
|
56
|
+
fromPartial(object: DeepPartial<Value>): Value;
|
|
57
|
+
wrap(value: any): Value;
|
|
58
|
+
unwrap(message: Value): string | number | boolean | Object | null | Array<any> | undefined;
|
|
59
|
+
};
|
|
60
|
+
export declare const ListValue: {
|
|
61
|
+
encode(message: ListValue, writer?: _m0.Writer): _m0.Writer;
|
|
62
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListValue;
|
|
63
|
+
fromJSON(object: any): ListValue;
|
|
64
|
+
toJSON(message: ListValue): unknown;
|
|
65
|
+
fromPartial(object: DeepPartial<ListValue>): ListValue;
|
|
66
|
+
wrap(value: Array<any> | undefined): ListValue;
|
|
67
|
+
unwrap(message: ListValue): Array<any>;
|
|
68
|
+
};
|
|
69
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
70
|
+
declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
71
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
72
|
+
} : Partial<T>;
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ListValue = exports.Value = exports.Struct_FieldsEntry = exports.Struct = exports.nullValueToJSON = exports.nullValueFromJSON = exports.NullValue = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
var NullValue;
|
|
11
|
+
(function (NullValue) {
|
|
12
|
+
NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
|
|
13
|
+
NullValue[NullValue["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
14
|
+
})(NullValue = exports.NullValue || (exports.NullValue = {}));
|
|
15
|
+
function nullValueFromJSON(object) {
|
|
16
|
+
switch (object) {
|
|
17
|
+
case 0:
|
|
18
|
+
case "NULL_VALUE":
|
|
19
|
+
return NullValue.NULL_VALUE;
|
|
20
|
+
case -1:
|
|
21
|
+
case "UNRECOGNIZED":
|
|
22
|
+
default:
|
|
23
|
+
return NullValue.UNRECOGNIZED;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.nullValueFromJSON = nullValueFromJSON;
|
|
27
|
+
function nullValueToJSON(object) {
|
|
28
|
+
switch (object) {
|
|
29
|
+
case NullValue.NULL_VALUE:
|
|
30
|
+
return "NULL_VALUE";
|
|
31
|
+
case NullValue.UNRECOGNIZED:
|
|
32
|
+
default:
|
|
33
|
+
return "UNRECOGNIZED";
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.nullValueToJSON = nullValueToJSON;
|
|
37
|
+
function createBaseStruct() {
|
|
38
|
+
return { fields: {} };
|
|
39
|
+
}
|
|
40
|
+
exports.Struct = {
|
|
41
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
42
|
+
Object.entries(message.fields).forEach(([key, value]) => {
|
|
43
|
+
if (value !== undefined) {
|
|
44
|
+
exports.Struct_FieldsEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
return writer;
|
|
48
|
+
},
|
|
49
|
+
decode(input, length) {
|
|
50
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
51
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
52
|
+
const message = createBaseStruct();
|
|
53
|
+
while (reader.pos < end) {
|
|
54
|
+
const tag = reader.uint32();
|
|
55
|
+
switch (tag >>> 3) {
|
|
56
|
+
case 1:
|
|
57
|
+
const entry1 = exports.Struct_FieldsEntry.decode(reader, reader.uint32());
|
|
58
|
+
if (entry1.value !== undefined) {
|
|
59
|
+
message.fields[entry1.key] = entry1.value;
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
reader.skipType(tag & 7);
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return message;
|
|
68
|
+
},
|
|
69
|
+
fromJSON(object) {
|
|
70
|
+
return {
|
|
71
|
+
fields: isObject(object.fields)
|
|
72
|
+
? Object.entries(object.fields).reduce((acc, [key, value]) => {
|
|
73
|
+
acc[key] = value;
|
|
74
|
+
return acc;
|
|
75
|
+
}, {})
|
|
76
|
+
: {},
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
toJSON(message) {
|
|
80
|
+
const obj = {};
|
|
81
|
+
obj.fields = {};
|
|
82
|
+
if (message.fields) {
|
|
83
|
+
Object.entries(message.fields).forEach(([k, v]) => {
|
|
84
|
+
obj.fields[k] = v;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return obj;
|
|
88
|
+
},
|
|
89
|
+
fromPartial(object) {
|
|
90
|
+
const message = createBaseStruct();
|
|
91
|
+
message.fields = Object.entries(object.fields ?? {}).reduce((acc, [key, value]) => {
|
|
92
|
+
if (value !== undefined) {
|
|
93
|
+
acc[key] = value;
|
|
94
|
+
}
|
|
95
|
+
return acc;
|
|
96
|
+
}, {});
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
wrap(object) {
|
|
100
|
+
const struct = createBaseStruct();
|
|
101
|
+
if (object !== undefined) {
|
|
102
|
+
Object.keys(object).forEach((key) => {
|
|
103
|
+
struct.fields[key] = object[key];
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return struct;
|
|
107
|
+
},
|
|
108
|
+
unwrap(message) {
|
|
109
|
+
const object = {};
|
|
110
|
+
Object.keys(message.fields).forEach((key) => {
|
|
111
|
+
object[key] = message.fields[key];
|
|
112
|
+
});
|
|
113
|
+
return object;
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
function createBaseStruct_FieldsEntry() {
|
|
117
|
+
return { key: "", value: undefined };
|
|
118
|
+
}
|
|
119
|
+
exports.Struct_FieldsEntry = {
|
|
120
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
121
|
+
if (message.key !== "") {
|
|
122
|
+
writer.uint32(10).string(message.key);
|
|
123
|
+
}
|
|
124
|
+
if (message.value !== undefined) {
|
|
125
|
+
exports.Value.encode(exports.Value.wrap(message.value), writer.uint32(18).fork()).ldelim();
|
|
126
|
+
}
|
|
127
|
+
return writer;
|
|
128
|
+
},
|
|
129
|
+
decode(input, length) {
|
|
130
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
131
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
132
|
+
const message = createBaseStruct_FieldsEntry();
|
|
133
|
+
while (reader.pos < end) {
|
|
134
|
+
const tag = reader.uint32();
|
|
135
|
+
switch (tag >>> 3) {
|
|
136
|
+
case 1:
|
|
137
|
+
message.key = reader.string();
|
|
138
|
+
break;
|
|
139
|
+
case 2:
|
|
140
|
+
message.value = exports.Value.unwrap(exports.Value.decode(reader, reader.uint32()));
|
|
141
|
+
break;
|
|
142
|
+
default:
|
|
143
|
+
reader.skipType(tag & 7);
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
fromJSON(object) {
|
|
150
|
+
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object?.value) ? object.value : undefined };
|
|
151
|
+
},
|
|
152
|
+
toJSON(message) {
|
|
153
|
+
const obj = {};
|
|
154
|
+
message.key !== undefined && (obj.key = message.key);
|
|
155
|
+
message.value !== undefined && (obj.value = message.value);
|
|
156
|
+
return obj;
|
|
157
|
+
},
|
|
158
|
+
fromPartial(object) {
|
|
159
|
+
const message = createBaseStruct_FieldsEntry();
|
|
160
|
+
message.key = object.key ?? "";
|
|
161
|
+
message.value = object.value ?? undefined;
|
|
162
|
+
return message;
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
function createBaseValue() {
|
|
166
|
+
return {
|
|
167
|
+
nullValue: undefined,
|
|
168
|
+
numberValue: undefined,
|
|
169
|
+
stringValue: undefined,
|
|
170
|
+
boolValue: undefined,
|
|
171
|
+
structValue: undefined,
|
|
172
|
+
listValue: undefined,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
exports.Value = {
|
|
176
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
177
|
+
if (message.nullValue !== undefined) {
|
|
178
|
+
writer.uint32(8).int32(message.nullValue);
|
|
179
|
+
}
|
|
180
|
+
if (message.numberValue !== undefined) {
|
|
181
|
+
writer.uint32(17).double(message.numberValue);
|
|
182
|
+
}
|
|
183
|
+
if (message.stringValue !== undefined) {
|
|
184
|
+
writer.uint32(26).string(message.stringValue);
|
|
185
|
+
}
|
|
186
|
+
if (message.boolValue !== undefined) {
|
|
187
|
+
writer.uint32(32).bool(message.boolValue);
|
|
188
|
+
}
|
|
189
|
+
if (message.structValue !== undefined) {
|
|
190
|
+
exports.Struct.encode(exports.Struct.wrap(message.structValue), writer.uint32(42).fork()).ldelim();
|
|
191
|
+
}
|
|
192
|
+
if (message.listValue !== undefined) {
|
|
193
|
+
exports.ListValue.encode(exports.ListValue.wrap(message.listValue), writer.uint32(50).fork()).ldelim();
|
|
194
|
+
}
|
|
195
|
+
return writer;
|
|
196
|
+
},
|
|
197
|
+
decode(input, length) {
|
|
198
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
199
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
200
|
+
const message = createBaseValue();
|
|
201
|
+
while (reader.pos < end) {
|
|
202
|
+
const tag = reader.uint32();
|
|
203
|
+
switch (tag >>> 3) {
|
|
204
|
+
case 1:
|
|
205
|
+
message.nullValue = reader.int32();
|
|
206
|
+
break;
|
|
207
|
+
case 2:
|
|
208
|
+
message.numberValue = reader.double();
|
|
209
|
+
break;
|
|
210
|
+
case 3:
|
|
211
|
+
message.stringValue = reader.string();
|
|
212
|
+
break;
|
|
213
|
+
case 4:
|
|
214
|
+
message.boolValue = reader.bool();
|
|
215
|
+
break;
|
|
216
|
+
case 5:
|
|
217
|
+
message.structValue = exports.Struct.unwrap(exports.Struct.decode(reader, reader.uint32()));
|
|
218
|
+
break;
|
|
219
|
+
case 6:
|
|
220
|
+
message.listValue = exports.ListValue.unwrap(exports.ListValue.decode(reader, reader.uint32()));
|
|
221
|
+
break;
|
|
222
|
+
default:
|
|
223
|
+
reader.skipType(tag & 7);
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return message;
|
|
228
|
+
},
|
|
229
|
+
fromJSON(object) {
|
|
230
|
+
return {
|
|
231
|
+
nullValue: isSet(object.nullValue) ? nullValueFromJSON(object.nullValue) : undefined,
|
|
232
|
+
numberValue: isSet(object.numberValue) ? Number(object.numberValue) : undefined,
|
|
233
|
+
stringValue: isSet(object.stringValue) ? String(object.stringValue) : undefined,
|
|
234
|
+
boolValue: isSet(object.boolValue) ? Boolean(object.boolValue) : undefined,
|
|
235
|
+
structValue: isObject(object.structValue) ? object.structValue : undefined,
|
|
236
|
+
listValue: Array.isArray(object.listValue) ? [...object.listValue] : undefined,
|
|
237
|
+
};
|
|
238
|
+
},
|
|
239
|
+
toJSON(message) {
|
|
240
|
+
const obj = {};
|
|
241
|
+
message.nullValue !== undefined &&
|
|
242
|
+
(obj.nullValue = message.nullValue !== undefined ? nullValueToJSON(message.nullValue) : undefined);
|
|
243
|
+
message.numberValue !== undefined && (obj.numberValue = message.numberValue);
|
|
244
|
+
message.stringValue !== undefined && (obj.stringValue = message.stringValue);
|
|
245
|
+
message.boolValue !== undefined && (obj.boolValue = message.boolValue);
|
|
246
|
+
message.structValue !== undefined && (obj.structValue = message.structValue);
|
|
247
|
+
message.listValue !== undefined && (obj.listValue = message.listValue);
|
|
248
|
+
return obj;
|
|
249
|
+
},
|
|
250
|
+
fromPartial(object) {
|
|
251
|
+
const message = createBaseValue();
|
|
252
|
+
message.nullValue = object.nullValue ?? undefined;
|
|
253
|
+
message.numberValue = object.numberValue ?? undefined;
|
|
254
|
+
message.stringValue = object.stringValue ?? undefined;
|
|
255
|
+
message.boolValue = object.boolValue ?? undefined;
|
|
256
|
+
message.structValue = object.structValue ?? undefined;
|
|
257
|
+
message.listValue = object.listValue ?? undefined;
|
|
258
|
+
return message;
|
|
259
|
+
},
|
|
260
|
+
wrap(value) {
|
|
261
|
+
const result = createBaseValue();
|
|
262
|
+
if (value === null) {
|
|
263
|
+
result.nullValue = NullValue.NULL_VALUE;
|
|
264
|
+
}
|
|
265
|
+
else if (typeof value === "boolean") {
|
|
266
|
+
result.boolValue = value;
|
|
267
|
+
}
|
|
268
|
+
else if (typeof value === "number") {
|
|
269
|
+
result.numberValue = value;
|
|
270
|
+
}
|
|
271
|
+
else if (typeof value === "string") {
|
|
272
|
+
result.stringValue = value;
|
|
273
|
+
}
|
|
274
|
+
else if (Array.isArray(value)) {
|
|
275
|
+
result.listValue = value;
|
|
276
|
+
}
|
|
277
|
+
else if (typeof value === "object") {
|
|
278
|
+
result.structValue = value;
|
|
279
|
+
}
|
|
280
|
+
else if (typeof value !== "undefined") {
|
|
281
|
+
throw new Error("Unsupported any value type: " + typeof value);
|
|
282
|
+
}
|
|
283
|
+
return result;
|
|
284
|
+
},
|
|
285
|
+
unwrap(message) {
|
|
286
|
+
if (message?.stringValue !== undefined) {
|
|
287
|
+
return message.stringValue;
|
|
288
|
+
}
|
|
289
|
+
else if (message?.numberValue !== undefined) {
|
|
290
|
+
return message.numberValue;
|
|
291
|
+
}
|
|
292
|
+
else if (message?.boolValue !== undefined) {
|
|
293
|
+
return message.boolValue;
|
|
294
|
+
}
|
|
295
|
+
else if (message?.structValue !== undefined) {
|
|
296
|
+
return message.structValue;
|
|
297
|
+
}
|
|
298
|
+
else if (message?.listValue !== undefined) {
|
|
299
|
+
return message.listValue;
|
|
300
|
+
}
|
|
301
|
+
else if (message?.nullValue !== undefined) {
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
return undefined;
|
|
305
|
+
},
|
|
306
|
+
};
|
|
307
|
+
function createBaseListValue() {
|
|
308
|
+
return { values: [] };
|
|
309
|
+
}
|
|
310
|
+
exports.ListValue = {
|
|
311
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
312
|
+
for (const v of message.values) {
|
|
313
|
+
exports.Value.encode(exports.Value.wrap(v), writer.uint32(10).fork()).ldelim();
|
|
314
|
+
}
|
|
315
|
+
return writer;
|
|
316
|
+
},
|
|
317
|
+
decode(input, length) {
|
|
318
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
319
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
320
|
+
const message = createBaseListValue();
|
|
321
|
+
while (reader.pos < end) {
|
|
322
|
+
const tag = reader.uint32();
|
|
323
|
+
switch (tag >>> 3) {
|
|
324
|
+
case 1:
|
|
325
|
+
message.values.push(exports.Value.unwrap(exports.Value.decode(reader, reader.uint32())));
|
|
326
|
+
break;
|
|
327
|
+
default:
|
|
328
|
+
reader.skipType(tag & 7);
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return message;
|
|
333
|
+
},
|
|
334
|
+
fromJSON(object) {
|
|
335
|
+
return { values: Array.isArray(object?.values) ? [...object.values] : [] };
|
|
336
|
+
},
|
|
337
|
+
toJSON(message) {
|
|
338
|
+
const obj = {};
|
|
339
|
+
if (message.values) {
|
|
340
|
+
obj.values = message.values.map((e) => e);
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
obj.values = [];
|
|
344
|
+
}
|
|
345
|
+
return obj;
|
|
346
|
+
},
|
|
347
|
+
fromPartial(object) {
|
|
348
|
+
const message = createBaseListValue();
|
|
349
|
+
message.values = object.values?.map((e) => e) || [];
|
|
350
|
+
return message;
|
|
351
|
+
},
|
|
352
|
+
wrap(value) {
|
|
353
|
+
const result = createBaseListValue();
|
|
354
|
+
result.values = value ?? [];
|
|
355
|
+
return result;
|
|
356
|
+
},
|
|
357
|
+
unwrap(message) {
|
|
358
|
+
return message.values;
|
|
359
|
+
},
|
|
360
|
+
};
|
|
361
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
362
|
+
minimal_1.default.util.Long = long_1.default;
|
|
363
|
+
minimal_1.default.configure();
|
|
364
|
+
}
|
|
365
|
+
function isObject(value) {
|
|
366
|
+
return typeof value === "object" && value !== null;
|
|
367
|
+
}
|
|
368
|
+
function isSet(value) {
|
|
369
|
+
return value !== null && value !== undefined;
|
|
370
|
+
}
|
|
371
|
+
//# sourceMappingURL=struct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../src/gen/google/protobuf/struct.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,gDAAwB;AACxB,iEAAqC;AAErC,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,qDAAc,CAAA;IACd,0DAAiB,CAAA;AACnB,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAED,SAAgB,iBAAiB,CAAC,MAAW;IAC3C,QAAQ,MAAM,EAAE;QACd,KAAK,CAAC,CAAC;QACP,KAAK,YAAY;YACf,OAAO,SAAS,CAAC,UAAU,CAAC;QAC9B,KAAK,CAAC,CAAC,CAAC;QACR,KAAK,cAAc,CAAC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C,CAAC","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport enum NullValue {\n NULL_VALUE = 0,\n UNRECOGNIZED = -1,\n}\n\nexport function nullValueFromJSON(object: any): NullValue {\n switch (object) {\n case 0:\n case \"NULL_VALUE\":\n return NullValue.NULL_VALUE;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return NullValue.UNRECOGNIZED;\n }\n}\n\nexport function nullValueToJSON(object: NullValue): string {\n switch (object) {\n case NullValue.NULL_VALUE:\n return \"NULL_VALUE\";\n case NullValue.UNRECOGNIZED:\n default:\n return \"UNRECOGNIZED\";\n }\n}\n\nexport interface Struct {\n fields: { [key: string]: any | undefined };\n}\n\nexport interface Struct_FieldsEntry {\n key: string;\n value: any | undefined;\n}\n\nexport interface Value {\n nullValue?: NullValue | undefined;\n numberValue?: number | undefined;\n stringValue?: string | undefined;\n boolValue?: boolean | undefined;\n structValue?: { [key: string]: any } | undefined;\n listValue?: Array<any> | undefined;\n}\n\nexport interface ListValue {\n values: any[];\n}\n\nfunction createBaseStruct(): Struct {\n return { fields: {} };\n}\n\nexport const Struct = {\n encode(message: Struct, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n Object.entries(message.fields).forEach(([key, value]) => {\n if (value !== undefined) {\n Struct_FieldsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();\n }\n });\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Struct {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseStruct();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n const entry1 = Struct_FieldsEntry.decode(reader, reader.uint32());\n if (entry1.value !== undefined) {\n message.fields[entry1.key] = entry1.value;\n }\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(object: any): Struct {\n return {\n fields: isObject(object.fields)\n ? Object.entries(object.fields).reduce<{ [key: string]: any | undefined }>((acc, [key, value]) => {\n acc[key] = value as any | undefined;\n return acc;\n }, {})\n : {},\n };\n },\n\n toJSON(message: Struct): unknown {\n const obj: any = {};\n obj.fields = {};\n if (message.fields) {\n Object.entries(message.fields).forEach(([k, v]) => {\n obj.fields[k] = v;\n });\n }\n return obj;\n },\n\n fromPartial(object: DeepPartial<Struct>): Struct {\n const message = createBaseStruct();\n message.fields = Object.entries(object.fields ?? {}).reduce<{ [key: string]: any | undefined }>(\n (acc, [key, value]) => {\n if (value !== undefined) {\n acc[key] = value;\n }\n return acc;\n },\n {},\n );\n return message;\n },\n\n wrap(object: { [key: string]: any } | undefined): Struct {\n const struct = createBaseStruct();\n if (object !== undefined) {\n Object.keys(object).forEach((key) => {\n struct.fields[key] = object[key];\n });\n }\n return struct;\n },\n\n unwrap(message: Struct): { [key: string]: any } {\n const object: { [key: string]: any } = {};\n Object.keys(message.fields).forEach((key) => {\n object[key] = message.fields[key];\n });\n return object;\n },\n};\n\nfunction createBaseStruct_FieldsEntry(): Struct_FieldsEntry {\n return { key: \"\", value: undefined };\n}\n\nexport const Struct_FieldsEntry = {\n encode(message: Struct_FieldsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.key !== \"\") {\n writer.uint32(10).string(message.key);\n }\n if (message.value !== undefined) {\n Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).ldelim();\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Struct_FieldsEntry {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseStruct_FieldsEntry();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.key = reader.string();\n break;\n case 2:\n message.value = Value.unwrap(Value.decode(reader, reader.uint32()));\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(object: any): Struct_FieldsEntry {\n return { key: isSet(object.key) ? String(object.key) : \"\", value: isSet(object?.value) ? object.value : undefined };\n },\n\n toJSON(message: Struct_FieldsEntry): unknown {\n const obj: any = {};\n message.key !== undefined && (obj.key = message.key);\n message.value !== undefined && (obj.value = message.value);\n return obj;\n },\n\n fromPartial(object: DeepPartial<Struct_FieldsEntry>): Struct_FieldsEntry {\n const message = createBaseStruct_FieldsEntry();\n message.key = object.key ?? \"\";\n message.value = object.value ?? undefined;\n return message;\n },\n};\n\nfunction createBaseValue(): Value {\n return {\n nullValue: undefined,\n numberValue: undefined,\n stringValue: undefined,\n boolValue: undefined,\n structValue: undefined,\n listValue: undefined,\n };\n}\n\nexport const Value = {\n encode(message: Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.nullValue !== undefined) {\n writer.uint32(8).int32(message.nullValue);\n }\n if (message.numberValue !== undefined) {\n writer.uint32(17).double(message.numberValue);\n }\n if (message.stringValue !== undefined) {\n writer.uint32(26).string(message.stringValue);\n }\n if (message.boolValue !== undefined) {\n writer.uint32(32).bool(message.boolValue);\n }\n if (message.structValue !== undefined) {\n Struct.encode(Struct.wrap(message.structValue), writer.uint32(42).fork()).ldelim();\n }\n if (message.listValue !== undefined) {\n ListValue.encode(ListValue.wrap(message.listValue), writer.uint32(50).fork()).ldelim();\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Value {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.nullValue = reader.int32() as any;\n break;\n case 2:\n message.numberValue = reader.double();\n break;\n case 3:\n message.stringValue = reader.string();\n break;\n case 4:\n message.boolValue = reader.bool();\n break;\n case 5:\n message.structValue = Struct.unwrap(Struct.decode(reader, reader.uint32()));\n break;\n case 6:\n message.listValue = ListValue.unwrap(ListValue.decode(reader, reader.uint32()));\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(object: any): Value {\n return {\n nullValue: isSet(object.nullValue) ? nullValueFromJSON(object.nullValue) : undefined,\n numberValue: isSet(object.numberValue) ? Number(object.numberValue) : undefined,\n stringValue: isSet(object.stringValue) ? String(object.stringValue) : undefined,\n boolValue: isSet(object.boolValue) ? Boolean(object.boolValue) : undefined,\n structValue: isObject(object.structValue) ? object.structValue : undefined,\n listValue: Array.isArray(object.listValue) ? [...object.listValue] : undefined,\n };\n },\n\n toJSON(message: Value): unknown {\n const obj: any = {};\n message.nullValue !== undefined &&\n (obj.nullValue = message.nullValue !== undefined ? nullValueToJSON(message.nullValue) : undefined);\n message.numberValue !== undefined && (obj.numberValue = message.numberValue);\n message.stringValue !== undefined && (obj.stringValue = message.stringValue);\n message.boolValue !== undefined && (obj.boolValue = message.boolValue);\n message.structValue !== undefined && (obj.structValue = message.structValue);\n message.listValue !== undefined && (obj.listValue = message.listValue);\n return obj;\n },\n\n fromPartial(object: DeepPartial<Value>): Value {\n const message = createBaseValue();\n message.nullValue = object.nullValue ?? undefined;\n message.numberValue = object.numberValue ?? undefined;\n message.stringValue = object.stringValue ?? undefined;\n message.boolValue = object.boolValue ?? undefined;\n message.structValue = object.structValue ?? undefined;\n message.listValue = object.listValue ?? undefined;\n return message;\n },\n\n wrap(value: any): Value {\n const result = createBaseValue();\n\n if (value === null) {\n result.nullValue = NullValue.NULL_VALUE;\n } else if (typeof value === \"boolean\") {\n result.boolValue = value;\n } else if (typeof value === \"number\") {\n result.numberValue = value;\n } else if (typeof value === \"string\") {\n result.stringValue = value;\n } else if (Array.isArray(value)) {\n result.listValue = value;\n } else if (typeof value === \"object\") {\n result.structValue = value;\n } else if (typeof value !== \"undefined\") {\n throw new Error(\"Unsupported any value type: \" + typeof value);\n }\n\n return result;\n },\n\n unwrap(message: Value): string | number | boolean | Object | null | Array<any> | undefined {\n if (message?.stringValue !== undefined) {\n return message.stringValue;\n } else if (message?.numberValue !== undefined) {\n return message.numberValue;\n } else if (message?.boolValue !== undefined) {\n return message.boolValue;\n } else if (message?.structValue !== undefined) {\n return message.structValue;\n } else if (message?.listValue !== undefined) {\n return message.listValue;\n } else if (message?.nullValue !== undefined) {\n return null;\n }\n return undefined;\n },\n};\n\nfunction createBaseListValue(): ListValue {\n return { values: [] };\n}\n\nexport const ListValue = {\n encode(message: ListValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n for (const v of message.values) {\n Value.encode(Value.wrap(v!), writer.uint32(10).fork()).ldelim();\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): ListValue {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseListValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.values.push(Value.unwrap(Value.decode(reader, reader.uint32())));\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(object: any): ListValue {\n return { values: Array.isArray(object?.values) ? [...object.values] : [] };\n },\n\n toJSON(message: ListValue): unknown {\n const obj: any = {};\n if (message.values) {\n obj.values = message.values.map((e) => e);\n } else {\n obj.values = [];\n }\n return obj;\n },\n\n fromPartial(object: DeepPartial<ListValue>): ListValue {\n const message = createBaseListValue();\n message.values = object.values?.map((e) => e) || [];\n return message;\n },\n\n wrap(value: Array<any> | undefined): ListValue {\n const result = createBaseListValue();\n\n result.values = value ?? [];\n\n return result;\n },\n\n unwrap(message: ListValue): Array<any> {\n return message.values;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n\nfunction isObject(value: any): boolean {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n"]}
|