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