@wundergraph/cosmo-connect 0.2.0
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/LICENSE +201 -0
- package/README.md +13 -0
- package/dist/common_pb.d.ts +49 -0
- package/dist/common_pb.js +70 -0
- package/dist/common_pb.js.map +1 -0
- package/dist/node/v1/node-NodeService_connectquery.d.ts +6 -0
- package/dist/node/v1/node-NodeService_connectquery.js +25 -0
- package/dist/node/v1/node-NodeService_connectquery.js.map +1 -0
- package/dist/node/v1/node_connect.d.ts +19 -0
- package/dist/node/v1/node_connect.js +24 -0
- package/dist/node/v1/node_connect.js.map +1 -0
- package/dist/node/v1/node_pb.d.ts +765 -0
- package/dist/node/v1/node_pb.js +1183 -0
- package/dist/node/v1/node_pb.js.map +1 -0
- package/dist/platform/v1/platform-PlatformService_connectquery.d.ts +169 -0
- package/dist/platform/v1/platform-PlatformService_connectquery.js +527 -0
- package/dist/platform/v1/platform-PlatformService_connectquery.js.map +1 -0
- package/dist/platform/v1/platform_connect.d.ts +324 -0
- package/dist/platform/v1/platform_connect.js +330 -0
- package/dist/platform/v1/platform_connect.js.map +1 -0
- package/dist/platform/v1/platform_pb.d.ts +2141 -0
- package/dist/platform/v1/platform_pb.js +3367 -0
- package/dist/platform/v1/platform_pb.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,1183 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.3.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file wg/cosmo/node/v1/node.proto (package wg.cosmo.node.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
|
+
import { EnumStatusCode } from "../../common_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum wg.cosmo.node.v1.ArgumentRenderConfiguration
|
|
9
|
+
*/
|
|
10
|
+
export var ArgumentRenderConfiguration;
|
|
11
|
+
(function (ArgumentRenderConfiguration) {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: RENDER_ARGUMENT_DEFAULT = 0;
|
|
14
|
+
*/
|
|
15
|
+
ArgumentRenderConfiguration[ArgumentRenderConfiguration["RENDER_ARGUMENT_DEFAULT"] = 0] = "RENDER_ARGUMENT_DEFAULT";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: RENDER_ARGUMENT_AS_GRAPHQL_VALUE = 1;
|
|
18
|
+
*/
|
|
19
|
+
ArgumentRenderConfiguration[ArgumentRenderConfiguration["RENDER_ARGUMENT_AS_GRAPHQL_VALUE"] = 1] = "RENDER_ARGUMENT_AS_GRAPHQL_VALUE";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: RENDER_ARGUMENT_AS_ARRAY_CSV = 2;
|
|
22
|
+
*/
|
|
23
|
+
ArgumentRenderConfiguration[ArgumentRenderConfiguration["RENDER_ARGUMENT_AS_ARRAY_CSV"] = 2] = "RENDER_ARGUMENT_AS_ARRAY_CSV";
|
|
24
|
+
})(ArgumentRenderConfiguration || (ArgumentRenderConfiguration = {}));
|
|
25
|
+
// Retrieve enum metadata with: proto3.getEnumType(ArgumentRenderConfiguration)
|
|
26
|
+
proto3.util.setEnumType(ArgumentRenderConfiguration, "wg.cosmo.node.v1.ArgumentRenderConfiguration", [
|
|
27
|
+
{ no: 0, name: "RENDER_ARGUMENT_DEFAULT" },
|
|
28
|
+
{ no: 1, name: "RENDER_ARGUMENT_AS_GRAPHQL_VALUE" },
|
|
29
|
+
{ no: 2, name: "RENDER_ARGUMENT_AS_ARRAY_CSV" },
|
|
30
|
+
]);
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum wg.cosmo.node.v1.ArgumentSource
|
|
33
|
+
*/
|
|
34
|
+
export var ArgumentSource;
|
|
35
|
+
(function (ArgumentSource) {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: OBJECT_FIELD = 0;
|
|
38
|
+
*/
|
|
39
|
+
ArgumentSource[ArgumentSource["OBJECT_FIELD"] = 0] = "OBJECT_FIELD";
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: FIELD_ARGUMENT = 1;
|
|
42
|
+
*/
|
|
43
|
+
ArgumentSource[ArgumentSource["FIELD_ARGUMENT"] = 1] = "FIELD_ARGUMENT";
|
|
44
|
+
})(ArgumentSource || (ArgumentSource = {}));
|
|
45
|
+
// Retrieve enum metadata with: proto3.getEnumType(ArgumentSource)
|
|
46
|
+
proto3.util.setEnumType(ArgumentSource, "wg.cosmo.node.v1.ArgumentSource", [
|
|
47
|
+
{ no: 0, name: "OBJECT_FIELD" },
|
|
48
|
+
{ no: 1, name: "FIELD_ARGUMENT" },
|
|
49
|
+
]);
|
|
50
|
+
/**
|
|
51
|
+
* @generated from enum wg.cosmo.node.v1.DataSourceKind
|
|
52
|
+
*/
|
|
53
|
+
export var DataSourceKind;
|
|
54
|
+
(function (DataSourceKind) {
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: STATIC = 0;
|
|
57
|
+
*/
|
|
58
|
+
DataSourceKind[DataSourceKind["STATIC"] = 0] = "STATIC";
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: GRAPHQL = 1;
|
|
61
|
+
*/
|
|
62
|
+
DataSourceKind[DataSourceKind["GRAPHQL"] = 1] = "GRAPHQL";
|
|
63
|
+
})(DataSourceKind || (DataSourceKind = {}));
|
|
64
|
+
// Retrieve enum metadata with: proto3.getEnumType(DataSourceKind)
|
|
65
|
+
proto3.util.setEnumType(DataSourceKind, "wg.cosmo.node.v1.DataSourceKind", [
|
|
66
|
+
{ no: 0, name: "STATIC" },
|
|
67
|
+
{ no: 1, name: "GRAPHQL" },
|
|
68
|
+
]);
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum wg.cosmo.node.v1.ConfigurationVariableKind
|
|
71
|
+
*/
|
|
72
|
+
export var ConfigurationVariableKind;
|
|
73
|
+
(function (ConfigurationVariableKind) {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum value: STATIC_CONFIGURATION_VARIABLE = 0;
|
|
76
|
+
*/
|
|
77
|
+
ConfigurationVariableKind[ConfigurationVariableKind["STATIC_CONFIGURATION_VARIABLE"] = 0] = "STATIC_CONFIGURATION_VARIABLE";
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: ENV_CONFIGURATION_VARIABLE = 1;
|
|
80
|
+
*/
|
|
81
|
+
ConfigurationVariableKind[ConfigurationVariableKind["ENV_CONFIGURATION_VARIABLE"] = 1] = "ENV_CONFIGURATION_VARIABLE";
|
|
82
|
+
/**
|
|
83
|
+
* @generated from enum value: PLACEHOLDER_CONFIGURATION_VARIABLE = 2;
|
|
84
|
+
*/
|
|
85
|
+
ConfigurationVariableKind[ConfigurationVariableKind["PLACEHOLDER_CONFIGURATION_VARIABLE"] = 2] = "PLACEHOLDER_CONFIGURATION_VARIABLE";
|
|
86
|
+
})(ConfigurationVariableKind || (ConfigurationVariableKind = {}));
|
|
87
|
+
// Retrieve enum metadata with: proto3.getEnumType(ConfigurationVariableKind)
|
|
88
|
+
proto3.util.setEnumType(ConfigurationVariableKind, "wg.cosmo.node.v1.ConfigurationVariableKind", [
|
|
89
|
+
{ no: 0, name: "STATIC_CONFIGURATION_VARIABLE" },
|
|
90
|
+
{ no: 1, name: "ENV_CONFIGURATION_VARIABLE" },
|
|
91
|
+
{ no: 2, name: "PLACEHOLDER_CONFIGURATION_VARIABLE" },
|
|
92
|
+
]);
|
|
93
|
+
/**
|
|
94
|
+
* @generated from enum wg.cosmo.node.v1.HTTPMethod
|
|
95
|
+
*/
|
|
96
|
+
export var HTTPMethod;
|
|
97
|
+
(function (HTTPMethod) {
|
|
98
|
+
/**
|
|
99
|
+
* @generated from enum value: GET = 0;
|
|
100
|
+
*/
|
|
101
|
+
HTTPMethod[HTTPMethod["GET"] = 0] = "GET";
|
|
102
|
+
/**
|
|
103
|
+
* @generated from enum value: POST = 1;
|
|
104
|
+
*/
|
|
105
|
+
HTTPMethod[HTTPMethod["POST"] = 1] = "POST";
|
|
106
|
+
/**
|
|
107
|
+
* @generated from enum value: PUT = 2;
|
|
108
|
+
*/
|
|
109
|
+
HTTPMethod[HTTPMethod["PUT"] = 2] = "PUT";
|
|
110
|
+
/**
|
|
111
|
+
* @generated from enum value: DELETE = 3;
|
|
112
|
+
*/
|
|
113
|
+
HTTPMethod[HTTPMethod["DELETE"] = 3] = "DELETE";
|
|
114
|
+
/**
|
|
115
|
+
* @generated from enum value: OPTIONS = 4;
|
|
116
|
+
*/
|
|
117
|
+
HTTPMethod[HTTPMethod["OPTIONS"] = 4] = "OPTIONS";
|
|
118
|
+
})(HTTPMethod || (HTTPMethod = {}));
|
|
119
|
+
// Retrieve enum metadata with: proto3.getEnumType(HTTPMethod)
|
|
120
|
+
proto3.util.setEnumType(HTTPMethod, "wg.cosmo.node.v1.HTTPMethod", [
|
|
121
|
+
{ no: 0, name: "GET" },
|
|
122
|
+
{ no: 1, name: "POST" },
|
|
123
|
+
{ no: 2, name: "PUT" },
|
|
124
|
+
{ no: 3, name: "DELETE" },
|
|
125
|
+
{ no: 4, name: "OPTIONS" },
|
|
126
|
+
]);
|
|
127
|
+
/**
|
|
128
|
+
* @generated from message wg.cosmo.node.v1.RouterConfig
|
|
129
|
+
*/
|
|
130
|
+
export class RouterConfig extends Message {
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: wg.cosmo.node.v1.EngineConfiguration engine_config = 1;
|
|
133
|
+
*/
|
|
134
|
+
engineConfig;
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: string version = 2;
|
|
137
|
+
*/
|
|
138
|
+
version = "";
|
|
139
|
+
constructor(data) {
|
|
140
|
+
super();
|
|
141
|
+
proto3.util.initPartial(data, this);
|
|
142
|
+
}
|
|
143
|
+
static runtime = proto3;
|
|
144
|
+
static typeName = "wg.cosmo.node.v1.RouterConfig";
|
|
145
|
+
static fields = proto3.util.newFieldList(() => [
|
|
146
|
+
{ no: 1, name: "engine_config", kind: "message", T: EngineConfiguration },
|
|
147
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
148
|
+
]);
|
|
149
|
+
static fromBinary(bytes, options) {
|
|
150
|
+
return new RouterConfig().fromBinary(bytes, options);
|
|
151
|
+
}
|
|
152
|
+
static fromJson(jsonValue, options) {
|
|
153
|
+
return new RouterConfig().fromJson(jsonValue, options);
|
|
154
|
+
}
|
|
155
|
+
static fromJsonString(jsonString, options) {
|
|
156
|
+
return new RouterConfig().fromJsonString(jsonString, options);
|
|
157
|
+
}
|
|
158
|
+
static equals(a, b) {
|
|
159
|
+
return proto3.util.equals(RouterConfig, a, b);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @generated from message wg.cosmo.node.v1.Response
|
|
164
|
+
*/
|
|
165
|
+
export class Response extends Message {
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: wg.cosmo.common.EnumStatusCode code = 1;
|
|
168
|
+
*/
|
|
169
|
+
code = EnumStatusCode.OK;
|
|
170
|
+
/**
|
|
171
|
+
* details is an optional field which can be used to provide more details about the error.
|
|
172
|
+
*
|
|
173
|
+
* @generated from field: optional string details = 2;
|
|
174
|
+
*/
|
|
175
|
+
details;
|
|
176
|
+
constructor(data) {
|
|
177
|
+
super();
|
|
178
|
+
proto3.util.initPartial(data, this);
|
|
179
|
+
}
|
|
180
|
+
static runtime = proto3;
|
|
181
|
+
static typeName = "wg.cosmo.node.v1.Response";
|
|
182
|
+
static fields = proto3.util.newFieldList(() => [
|
|
183
|
+
{ no: 1, name: "code", kind: "enum", T: proto3.getEnumType(EnumStatusCode) },
|
|
184
|
+
{ no: 2, name: "details", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
185
|
+
]);
|
|
186
|
+
static fromBinary(bytes, options) {
|
|
187
|
+
return new Response().fromBinary(bytes, options);
|
|
188
|
+
}
|
|
189
|
+
static fromJson(jsonValue, options) {
|
|
190
|
+
return new Response().fromJson(jsonValue, options);
|
|
191
|
+
}
|
|
192
|
+
static fromJsonString(jsonString, options) {
|
|
193
|
+
return new Response().fromJsonString(jsonString, options);
|
|
194
|
+
}
|
|
195
|
+
static equals(a, b) {
|
|
196
|
+
return proto3.util.equals(Response, a, b);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @generated from message wg.cosmo.node.v1.ResponseStatus
|
|
201
|
+
*/
|
|
202
|
+
export class ResponseStatus extends Message {
|
|
203
|
+
/**
|
|
204
|
+
* @generated from field: int32 code = 1;
|
|
205
|
+
*/
|
|
206
|
+
code = 0;
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: string message = 2;
|
|
209
|
+
*/
|
|
210
|
+
message = "";
|
|
211
|
+
constructor(data) {
|
|
212
|
+
super();
|
|
213
|
+
proto3.util.initPartial(data, this);
|
|
214
|
+
}
|
|
215
|
+
static runtime = proto3;
|
|
216
|
+
static typeName = "wg.cosmo.node.v1.ResponseStatus";
|
|
217
|
+
static fields = proto3.util.newFieldList(() => [
|
|
218
|
+
{ no: 1, name: "code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
219
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
220
|
+
]);
|
|
221
|
+
static fromBinary(bytes, options) {
|
|
222
|
+
return new ResponseStatus().fromBinary(bytes, options);
|
|
223
|
+
}
|
|
224
|
+
static fromJson(jsonValue, options) {
|
|
225
|
+
return new ResponseStatus().fromJson(jsonValue, options);
|
|
226
|
+
}
|
|
227
|
+
static fromJsonString(jsonString, options) {
|
|
228
|
+
return new ResponseStatus().fromJsonString(jsonString, options);
|
|
229
|
+
}
|
|
230
|
+
static equals(a, b) {
|
|
231
|
+
return proto3.util.equals(ResponseStatus, a, b);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @generated from message wg.cosmo.node.v1.GetConfigRequest
|
|
236
|
+
*/
|
|
237
|
+
export class GetConfigRequest extends Message {
|
|
238
|
+
/**
|
|
239
|
+
* The FQDN of the graph to get the config for e.g. "wg.production"
|
|
240
|
+
*
|
|
241
|
+
* @generated from field: string graph_name = 1;
|
|
242
|
+
*/
|
|
243
|
+
graphName = "";
|
|
244
|
+
constructor(data) {
|
|
245
|
+
super();
|
|
246
|
+
proto3.util.initPartial(data, this);
|
|
247
|
+
}
|
|
248
|
+
static runtime = proto3;
|
|
249
|
+
static typeName = "wg.cosmo.node.v1.GetConfigRequest";
|
|
250
|
+
static fields = proto3.util.newFieldList(() => [
|
|
251
|
+
{ no: 1, name: "graph_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
252
|
+
]);
|
|
253
|
+
static fromBinary(bytes, options) {
|
|
254
|
+
return new GetConfigRequest().fromBinary(bytes, options);
|
|
255
|
+
}
|
|
256
|
+
static fromJson(jsonValue, options) {
|
|
257
|
+
return new GetConfigRequest().fromJson(jsonValue, options);
|
|
258
|
+
}
|
|
259
|
+
static fromJsonString(jsonString, options) {
|
|
260
|
+
return new GetConfigRequest().fromJsonString(jsonString, options);
|
|
261
|
+
}
|
|
262
|
+
static equals(a, b) {
|
|
263
|
+
return proto3.util.equals(GetConfigRequest, a, b);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @generated from message wg.cosmo.node.v1.GetConfigResponse
|
|
268
|
+
*/
|
|
269
|
+
export class GetConfigResponse extends Message {
|
|
270
|
+
/**
|
|
271
|
+
* @generated from field: wg.cosmo.node.v1.Response response = 1;
|
|
272
|
+
*/
|
|
273
|
+
response;
|
|
274
|
+
/**
|
|
275
|
+
* @generated from field: optional wg.cosmo.node.v1.RouterConfig config = 2;
|
|
276
|
+
*/
|
|
277
|
+
config;
|
|
278
|
+
constructor(data) {
|
|
279
|
+
super();
|
|
280
|
+
proto3.util.initPartial(data, this);
|
|
281
|
+
}
|
|
282
|
+
static runtime = proto3;
|
|
283
|
+
static typeName = "wg.cosmo.node.v1.GetConfigResponse";
|
|
284
|
+
static fields = proto3.util.newFieldList(() => [
|
|
285
|
+
{ no: 1, name: "response", kind: "message", T: Response },
|
|
286
|
+
{ no: 2, name: "config", kind: "message", T: RouterConfig, opt: true },
|
|
287
|
+
]);
|
|
288
|
+
static fromBinary(bytes, options) {
|
|
289
|
+
return new GetConfigResponse().fromBinary(bytes, options);
|
|
290
|
+
}
|
|
291
|
+
static fromJson(jsonValue, options) {
|
|
292
|
+
return new GetConfigResponse().fromJson(jsonValue, options);
|
|
293
|
+
}
|
|
294
|
+
static fromJsonString(jsonString, options) {
|
|
295
|
+
return new GetConfigResponse().fromJsonString(jsonString, options);
|
|
296
|
+
}
|
|
297
|
+
static equals(a, b) {
|
|
298
|
+
return proto3.util.equals(GetConfigResponse, a, b);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* @generated from message wg.cosmo.node.v1.EngineConfiguration
|
|
303
|
+
*/
|
|
304
|
+
export class EngineConfiguration extends Message {
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: int64 defaultFlushInterval = 1;
|
|
307
|
+
*/
|
|
308
|
+
defaultFlushInterval = protoInt64.zero;
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: repeated wg.cosmo.node.v1.DataSourceConfiguration datasource_configurations = 2;
|
|
311
|
+
*/
|
|
312
|
+
datasourceConfigurations = [];
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: repeated wg.cosmo.node.v1.FieldConfiguration field_configurations = 3;
|
|
315
|
+
*/
|
|
316
|
+
fieldConfigurations = [];
|
|
317
|
+
/**
|
|
318
|
+
* @generated from field: string graphqlSchema = 4;
|
|
319
|
+
*/
|
|
320
|
+
graphqlSchema = "";
|
|
321
|
+
/**
|
|
322
|
+
* @generated from field: repeated wg.cosmo.node.v1.TypeConfiguration type_configurations = 5;
|
|
323
|
+
*/
|
|
324
|
+
typeConfigurations = [];
|
|
325
|
+
/**
|
|
326
|
+
* @generated from field: map<string, string> string_storage = 6;
|
|
327
|
+
*/
|
|
328
|
+
stringStorage = {};
|
|
329
|
+
constructor(data) {
|
|
330
|
+
super();
|
|
331
|
+
proto3.util.initPartial(data, this);
|
|
332
|
+
}
|
|
333
|
+
static runtime = proto3;
|
|
334
|
+
static typeName = "wg.cosmo.node.v1.EngineConfiguration";
|
|
335
|
+
static fields = proto3.util.newFieldList(() => [
|
|
336
|
+
{ no: 1, name: "defaultFlushInterval", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
337
|
+
{ no: 2, name: "datasource_configurations", kind: "message", T: DataSourceConfiguration, repeated: true },
|
|
338
|
+
{ no: 3, name: "field_configurations", kind: "message", T: FieldConfiguration, repeated: true },
|
|
339
|
+
{ no: 4, name: "graphqlSchema", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
340
|
+
{ no: 5, name: "type_configurations", kind: "message", T: TypeConfiguration, repeated: true },
|
|
341
|
+
{ no: 6, name: "string_storage", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
342
|
+
]);
|
|
343
|
+
static fromBinary(bytes, options) {
|
|
344
|
+
return new EngineConfiguration().fromBinary(bytes, options);
|
|
345
|
+
}
|
|
346
|
+
static fromJson(jsonValue, options) {
|
|
347
|
+
return new EngineConfiguration().fromJson(jsonValue, options);
|
|
348
|
+
}
|
|
349
|
+
static fromJsonString(jsonString, options) {
|
|
350
|
+
return new EngineConfiguration().fromJsonString(jsonString, options);
|
|
351
|
+
}
|
|
352
|
+
static equals(a, b) {
|
|
353
|
+
return proto3.util.equals(EngineConfiguration, a, b);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* @generated from message wg.cosmo.node.v1.DataSourceConfiguration
|
|
358
|
+
*/
|
|
359
|
+
export class DataSourceConfiguration extends Message {
|
|
360
|
+
/**
|
|
361
|
+
* @generated from field: wg.cosmo.node.v1.DataSourceKind kind = 1;
|
|
362
|
+
*/
|
|
363
|
+
kind = DataSourceKind.STATIC;
|
|
364
|
+
/**
|
|
365
|
+
* @generated from field: repeated wg.cosmo.node.v1.TypeField root_nodes = 2;
|
|
366
|
+
*/
|
|
367
|
+
rootNodes = [];
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: repeated wg.cosmo.node.v1.TypeField child_nodes = 3;
|
|
370
|
+
*/
|
|
371
|
+
childNodes = [];
|
|
372
|
+
/**
|
|
373
|
+
* @generated from field: bool override_field_path_from_alias = 4;
|
|
374
|
+
*/
|
|
375
|
+
overrideFieldPathFromAlias = false;
|
|
376
|
+
/**
|
|
377
|
+
* @generated from field: wg.cosmo.node.v1.DataSourceCustom_GraphQL custom_graphql = 5;
|
|
378
|
+
*/
|
|
379
|
+
customGraphql;
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: wg.cosmo.node.v1.DataSourceCustom_Static custom_static = 6;
|
|
382
|
+
*/
|
|
383
|
+
customStatic;
|
|
384
|
+
/**
|
|
385
|
+
* @generated from field: repeated wg.cosmo.node.v1.DirectiveConfiguration directives = 7;
|
|
386
|
+
*/
|
|
387
|
+
directives = [];
|
|
388
|
+
/**
|
|
389
|
+
* @generated from field: int64 request_timeout_seconds = 8;
|
|
390
|
+
*/
|
|
391
|
+
requestTimeoutSeconds = protoInt64.zero;
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: string id = 9;
|
|
394
|
+
*/
|
|
395
|
+
id = "";
|
|
396
|
+
/**
|
|
397
|
+
* @generated from field: repeated wg.cosmo.node.v1.RequiredField required_fields = 10;
|
|
398
|
+
*/
|
|
399
|
+
requiredFields = [];
|
|
400
|
+
constructor(data) {
|
|
401
|
+
super();
|
|
402
|
+
proto3.util.initPartial(data, this);
|
|
403
|
+
}
|
|
404
|
+
static runtime = proto3;
|
|
405
|
+
static typeName = "wg.cosmo.node.v1.DataSourceConfiguration";
|
|
406
|
+
static fields = proto3.util.newFieldList(() => [
|
|
407
|
+
{ no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(DataSourceKind) },
|
|
408
|
+
{ no: 2, name: "root_nodes", kind: "message", T: TypeField, repeated: true },
|
|
409
|
+
{ no: 3, name: "child_nodes", kind: "message", T: TypeField, repeated: true },
|
|
410
|
+
{ no: 4, name: "override_field_path_from_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
411
|
+
{ no: 5, name: "custom_graphql", kind: "message", T: DataSourceCustom_GraphQL },
|
|
412
|
+
{ no: 6, name: "custom_static", kind: "message", T: DataSourceCustom_Static },
|
|
413
|
+
{ no: 7, name: "directives", kind: "message", T: DirectiveConfiguration, repeated: true },
|
|
414
|
+
{ no: 8, name: "request_timeout_seconds", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
415
|
+
{ no: 9, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
416
|
+
{ no: 10, name: "required_fields", kind: "message", T: RequiredField, repeated: true },
|
|
417
|
+
]);
|
|
418
|
+
static fromBinary(bytes, options) {
|
|
419
|
+
return new DataSourceConfiguration().fromBinary(bytes, options);
|
|
420
|
+
}
|
|
421
|
+
static fromJson(jsonValue, options) {
|
|
422
|
+
return new DataSourceConfiguration().fromJson(jsonValue, options);
|
|
423
|
+
}
|
|
424
|
+
static fromJsonString(jsonString, options) {
|
|
425
|
+
return new DataSourceConfiguration().fromJsonString(jsonString, options);
|
|
426
|
+
}
|
|
427
|
+
static equals(a, b) {
|
|
428
|
+
return proto3.util.equals(DataSourceConfiguration, a, b);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @generated from message wg.cosmo.node.v1.FieldConfiguration
|
|
433
|
+
*/
|
|
434
|
+
export class FieldConfiguration extends Message {
|
|
435
|
+
/**
|
|
436
|
+
* @generated from field: string type_name = 1;
|
|
437
|
+
*/
|
|
438
|
+
typeName = "";
|
|
439
|
+
/**
|
|
440
|
+
* @generated from field: string field_name = 2;
|
|
441
|
+
*/
|
|
442
|
+
fieldName = "";
|
|
443
|
+
/**
|
|
444
|
+
* @generated from field: bool disable_default_field_mapping = 3;
|
|
445
|
+
*/
|
|
446
|
+
disableDefaultFieldMapping = false;
|
|
447
|
+
/**
|
|
448
|
+
* @generated from field: repeated string path = 4;
|
|
449
|
+
*/
|
|
450
|
+
path = [];
|
|
451
|
+
/**
|
|
452
|
+
* @generated from field: repeated wg.cosmo.node.v1.ArgumentConfiguration arguments_configuration = 6;
|
|
453
|
+
*/
|
|
454
|
+
argumentsConfiguration = [];
|
|
455
|
+
/**
|
|
456
|
+
* @generated from field: bool unescape_response_json = 7;
|
|
457
|
+
*/
|
|
458
|
+
unescapeResponseJson = false;
|
|
459
|
+
constructor(data) {
|
|
460
|
+
super();
|
|
461
|
+
proto3.util.initPartial(data, this);
|
|
462
|
+
}
|
|
463
|
+
static runtime = proto3;
|
|
464
|
+
static typeName = "wg.cosmo.node.v1.FieldConfiguration";
|
|
465
|
+
static fields = proto3.util.newFieldList(() => [
|
|
466
|
+
{ no: 1, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
467
|
+
{ no: 2, name: "field_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
468
|
+
{ no: 3, name: "disable_default_field_mapping", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
469
|
+
{ no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
470
|
+
{ no: 6, name: "arguments_configuration", kind: "message", T: ArgumentConfiguration, repeated: true },
|
|
471
|
+
{ no: 7, name: "unescape_response_json", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
472
|
+
]);
|
|
473
|
+
static fromBinary(bytes, options) {
|
|
474
|
+
return new FieldConfiguration().fromBinary(bytes, options);
|
|
475
|
+
}
|
|
476
|
+
static fromJson(jsonValue, options) {
|
|
477
|
+
return new FieldConfiguration().fromJson(jsonValue, options);
|
|
478
|
+
}
|
|
479
|
+
static fromJsonString(jsonString, options) {
|
|
480
|
+
return new FieldConfiguration().fromJsonString(jsonString, options);
|
|
481
|
+
}
|
|
482
|
+
static equals(a, b) {
|
|
483
|
+
return proto3.util.equals(FieldConfiguration, a, b);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* @generated from message wg.cosmo.node.v1.ArgumentConfiguration
|
|
488
|
+
*/
|
|
489
|
+
export class ArgumentConfiguration extends Message {
|
|
490
|
+
/**
|
|
491
|
+
* @generated from field: string name = 1;
|
|
492
|
+
*/
|
|
493
|
+
name = "";
|
|
494
|
+
/**
|
|
495
|
+
* @generated from field: wg.cosmo.node.v1.ArgumentSource source_type = 2;
|
|
496
|
+
*/
|
|
497
|
+
sourceType = ArgumentSource.OBJECT_FIELD;
|
|
498
|
+
/**
|
|
499
|
+
* @generated from field: repeated string source_path = 3;
|
|
500
|
+
*/
|
|
501
|
+
sourcePath = [];
|
|
502
|
+
/**
|
|
503
|
+
* @generated from field: wg.cosmo.node.v1.ArgumentRenderConfiguration render_configuration = 4;
|
|
504
|
+
*/
|
|
505
|
+
renderConfiguration = ArgumentRenderConfiguration.RENDER_ARGUMENT_DEFAULT;
|
|
506
|
+
/**
|
|
507
|
+
* @generated from field: string rename_type_to = 5;
|
|
508
|
+
*/
|
|
509
|
+
renameTypeTo = "";
|
|
510
|
+
constructor(data) {
|
|
511
|
+
super();
|
|
512
|
+
proto3.util.initPartial(data, this);
|
|
513
|
+
}
|
|
514
|
+
static runtime = proto3;
|
|
515
|
+
static typeName = "wg.cosmo.node.v1.ArgumentConfiguration";
|
|
516
|
+
static fields = proto3.util.newFieldList(() => [
|
|
517
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
518
|
+
{ no: 2, name: "source_type", kind: "enum", T: proto3.getEnumType(ArgumentSource) },
|
|
519
|
+
{ no: 3, name: "source_path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
520
|
+
{ no: 4, name: "render_configuration", kind: "enum", T: proto3.getEnumType(ArgumentRenderConfiguration) },
|
|
521
|
+
{ no: 5, name: "rename_type_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
522
|
+
]);
|
|
523
|
+
static fromBinary(bytes, options) {
|
|
524
|
+
return new ArgumentConfiguration().fromBinary(bytes, options);
|
|
525
|
+
}
|
|
526
|
+
static fromJson(jsonValue, options) {
|
|
527
|
+
return new ArgumentConfiguration().fromJson(jsonValue, options);
|
|
528
|
+
}
|
|
529
|
+
static fromJsonString(jsonString, options) {
|
|
530
|
+
return new ArgumentConfiguration().fromJsonString(jsonString, options);
|
|
531
|
+
}
|
|
532
|
+
static equals(a, b) {
|
|
533
|
+
return proto3.util.equals(ArgumentConfiguration, a, b);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* @generated from message wg.cosmo.node.v1.TypeConfiguration
|
|
538
|
+
*/
|
|
539
|
+
export class TypeConfiguration extends Message {
|
|
540
|
+
/**
|
|
541
|
+
* @generated from field: string type_name = 1;
|
|
542
|
+
*/
|
|
543
|
+
typeName = "";
|
|
544
|
+
/**
|
|
545
|
+
* @generated from field: string rename_to = 2;
|
|
546
|
+
*/
|
|
547
|
+
renameTo = "";
|
|
548
|
+
constructor(data) {
|
|
549
|
+
super();
|
|
550
|
+
proto3.util.initPartial(data, this);
|
|
551
|
+
}
|
|
552
|
+
static runtime = proto3;
|
|
553
|
+
static typeName = "wg.cosmo.node.v1.TypeConfiguration";
|
|
554
|
+
static fields = proto3.util.newFieldList(() => [
|
|
555
|
+
{ no: 1, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
556
|
+
{ no: 2, name: "rename_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
557
|
+
]);
|
|
558
|
+
static fromBinary(bytes, options) {
|
|
559
|
+
return new TypeConfiguration().fromBinary(bytes, options);
|
|
560
|
+
}
|
|
561
|
+
static fromJson(jsonValue, options) {
|
|
562
|
+
return new TypeConfiguration().fromJson(jsonValue, options);
|
|
563
|
+
}
|
|
564
|
+
static fromJsonString(jsonString, options) {
|
|
565
|
+
return new TypeConfiguration().fromJsonString(jsonString, options);
|
|
566
|
+
}
|
|
567
|
+
static equals(a, b) {
|
|
568
|
+
return proto3.util.equals(TypeConfiguration, a, b);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* @generated from message wg.cosmo.node.v1.TypeField
|
|
573
|
+
*/
|
|
574
|
+
export class TypeField extends Message {
|
|
575
|
+
/**
|
|
576
|
+
* @generated from field: string type_name = 1;
|
|
577
|
+
*/
|
|
578
|
+
typeName = "";
|
|
579
|
+
/**
|
|
580
|
+
* @generated from field: repeated string field_names = 2;
|
|
581
|
+
*/
|
|
582
|
+
fieldNames = [];
|
|
583
|
+
constructor(data) {
|
|
584
|
+
super();
|
|
585
|
+
proto3.util.initPartial(data, this);
|
|
586
|
+
}
|
|
587
|
+
static runtime = proto3;
|
|
588
|
+
static typeName = "wg.cosmo.node.v1.TypeField";
|
|
589
|
+
static fields = proto3.util.newFieldList(() => [
|
|
590
|
+
{ no: 1, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
591
|
+
{ no: 2, name: "field_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
592
|
+
]);
|
|
593
|
+
static fromBinary(bytes, options) {
|
|
594
|
+
return new TypeField().fromBinary(bytes, options);
|
|
595
|
+
}
|
|
596
|
+
static fromJson(jsonValue, options) {
|
|
597
|
+
return new TypeField().fromJson(jsonValue, options);
|
|
598
|
+
}
|
|
599
|
+
static fromJsonString(jsonString, options) {
|
|
600
|
+
return new TypeField().fromJsonString(jsonString, options);
|
|
601
|
+
}
|
|
602
|
+
static equals(a, b) {
|
|
603
|
+
return proto3.util.equals(TypeField, a, b);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* @generated from message wg.cosmo.node.v1.RequiredField
|
|
608
|
+
*/
|
|
609
|
+
export class RequiredField extends Message {
|
|
610
|
+
/**
|
|
611
|
+
* @generated from field: string type_name = 1;
|
|
612
|
+
*/
|
|
613
|
+
typeName = "";
|
|
614
|
+
/**
|
|
615
|
+
* @generated from field: string field_name = 2;
|
|
616
|
+
*/
|
|
617
|
+
fieldName = "";
|
|
618
|
+
/**
|
|
619
|
+
* @generated from field: string selection_set = 3;
|
|
620
|
+
*/
|
|
621
|
+
selectionSet = "";
|
|
622
|
+
constructor(data) {
|
|
623
|
+
super();
|
|
624
|
+
proto3.util.initPartial(data, this);
|
|
625
|
+
}
|
|
626
|
+
static runtime = proto3;
|
|
627
|
+
static typeName = "wg.cosmo.node.v1.RequiredField";
|
|
628
|
+
static fields = proto3.util.newFieldList(() => [
|
|
629
|
+
{ no: 1, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
630
|
+
{ no: 2, name: "field_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
631
|
+
{ no: 3, name: "selection_set", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
632
|
+
]);
|
|
633
|
+
static fromBinary(bytes, options) {
|
|
634
|
+
return new RequiredField().fromBinary(bytes, options);
|
|
635
|
+
}
|
|
636
|
+
static fromJson(jsonValue, options) {
|
|
637
|
+
return new RequiredField().fromJson(jsonValue, options);
|
|
638
|
+
}
|
|
639
|
+
static fromJsonString(jsonString, options) {
|
|
640
|
+
return new RequiredField().fromJsonString(jsonString, options);
|
|
641
|
+
}
|
|
642
|
+
static equals(a, b) {
|
|
643
|
+
return proto3.util.equals(RequiredField, a, b);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* @generated from message wg.cosmo.node.v1.FetchConfiguration
|
|
648
|
+
*/
|
|
649
|
+
export class FetchConfiguration extends Message {
|
|
650
|
+
/**
|
|
651
|
+
* You should either configure url OR a combination of baseURL and path
|
|
652
|
+
* If url resolves to a non empty string, it takes precedence over baseURL and path
|
|
653
|
+
* If url resolves to an empty string, the url will be configured as "{{baseURL}}{{path}}"
|
|
654
|
+
*
|
|
655
|
+
* @generated from field: wg.cosmo.node.v1.ConfigurationVariable url = 1;
|
|
656
|
+
*/
|
|
657
|
+
url;
|
|
658
|
+
/**
|
|
659
|
+
* @generated from field: wg.cosmo.node.v1.HTTPMethod method = 2;
|
|
660
|
+
*/
|
|
661
|
+
method = HTTPMethod.GET;
|
|
662
|
+
/**
|
|
663
|
+
* @generated from field: map<string, wg.cosmo.node.v1.HTTPHeader> header = 3;
|
|
664
|
+
*/
|
|
665
|
+
header = {};
|
|
666
|
+
/**
|
|
667
|
+
* @generated from field: wg.cosmo.node.v1.ConfigurationVariable body = 4;
|
|
668
|
+
*/
|
|
669
|
+
body;
|
|
670
|
+
/**
|
|
671
|
+
* @generated from field: repeated wg.cosmo.node.v1.URLQueryConfiguration query = 5;
|
|
672
|
+
*/
|
|
673
|
+
query = [];
|
|
674
|
+
/**
|
|
675
|
+
* urlEncodeBody defines whether the body should be URL encoded or not
|
|
676
|
+
* by default, the body will be JSON encoded
|
|
677
|
+
* setting urlEncodeBody to true will render the body empty,
|
|
678
|
+
* the Header Content-Type will be set to application/x-www-form-urlencoded,
|
|
679
|
+
* and the body will be URL encoded and set as the URL Query String
|
|
680
|
+
*
|
|
681
|
+
* @generated from field: bool url_encode_body = 7;
|
|
682
|
+
*/
|
|
683
|
+
urlEncodeBody = false;
|
|
684
|
+
/**
|
|
685
|
+
* @generated from field: wg.cosmo.node.v1.MTLSConfiguration mtls = 8;
|
|
686
|
+
*/
|
|
687
|
+
mtls;
|
|
688
|
+
/**
|
|
689
|
+
* @generated from field: wg.cosmo.node.v1.ConfigurationVariable base_url = 9;
|
|
690
|
+
*/
|
|
691
|
+
baseUrl;
|
|
692
|
+
/**
|
|
693
|
+
* @generated from field: wg.cosmo.node.v1.ConfigurationVariable path = 10;
|
|
694
|
+
*/
|
|
695
|
+
path;
|
|
696
|
+
/**
|
|
697
|
+
* @generated from field: optional wg.cosmo.node.v1.ConfigurationVariable http_proxy_url = 11;
|
|
698
|
+
*/
|
|
699
|
+
httpProxyUrl;
|
|
700
|
+
constructor(data) {
|
|
701
|
+
super();
|
|
702
|
+
proto3.util.initPartial(data, this);
|
|
703
|
+
}
|
|
704
|
+
static runtime = proto3;
|
|
705
|
+
static typeName = "wg.cosmo.node.v1.FetchConfiguration";
|
|
706
|
+
static fields = proto3.util.newFieldList(() => [
|
|
707
|
+
{ no: 1, name: "url", kind: "message", T: ConfigurationVariable },
|
|
708
|
+
{ no: 2, name: "method", kind: "enum", T: proto3.getEnumType(HTTPMethod) },
|
|
709
|
+
{ no: 3, name: "header", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: HTTPHeader } },
|
|
710
|
+
{ no: 4, name: "body", kind: "message", T: ConfigurationVariable },
|
|
711
|
+
{ no: 5, name: "query", kind: "message", T: URLQueryConfiguration, repeated: true },
|
|
712
|
+
{ no: 7, name: "url_encode_body", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
713
|
+
{ no: 8, name: "mtls", kind: "message", T: MTLSConfiguration },
|
|
714
|
+
{ no: 9, name: "base_url", kind: "message", T: ConfigurationVariable },
|
|
715
|
+
{ no: 10, name: "path", kind: "message", T: ConfigurationVariable },
|
|
716
|
+
{ no: 11, name: "http_proxy_url", kind: "message", T: ConfigurationVariable, opt: true },
|
|
717
|
+
]);
|
|
718
|
+
static fromBinary(bytes, options) {
|
|
719
|
+
return new FetchConfiguration().fromBinary(bytes, options);
|
|
720
|
+
}
|
|
721
|
+
static fromJson(jsonValue, options) {
|
|
722
|
+
return new FetchConfiguration().fromJson(jsonValue, options);
|
|
723
|
+
}
|
|
724
|
+
static fromJsonString(jsonString, options) {
|
|
725
|
+
return new FetchConfiguration().fromJsonString(jsonString, options);
|
|
726
|
+
}
|
|
727
|
+
static equals(a, b) {
|
|
728
|
+
return proto3.util.equals(FetchConfiguration, a, b);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* @generated from message wg.cosmo.node.v1.StatusCodeTypeMapping
|
|
733
|
+
*/
|
|
734
|
+
export class StatusCodeTypeMapping extends Message {
|
|
735
|
+
/**
|
|
736
|
+
* @generated from field: int64 status_code = 1;
|
|
737
|
+
*/
|
|
738
|
+
statusCode = protoInt64.zero;
|
|
739
|
+
/**
|
|
740
|
+
* @generated from field: string type_name = 2;
|
|
741
|
+
*/
|
|
742
|
+
typeName = "";
|
|
743
|
+
/**
|
|
744
|
+
* @generated from field: bool inject_status_code_into_body = 3;
|
|
745
|
+
*/
|
|
746
|
+
injectStatusCodeIntoBody = false;
|
|
747
|
+
constructor(data) {
|
|
748
|
+
super();
|
|
749
|
+
proto3.util.initPartial(data, this);
|
|
750
|
+
}
|
|
751
|
+
static runtime = proto3;
|
|
752
|
+
static typeName = "wg.cosmo.node.v1.StatusCodeTypeMapping";
|
|
753
|
+
static fields = proto3.util.newFieldList(() => [
|
|
754
|
+
{ no: 1, name: "status_code", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
755
|
+
{ no: 2, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
756
|
+
{ no: 3, name: "inject_status_code_into_body", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
757
|
+
]);
|
|
758
|
+
static fromBinary(bytes, options) {
|
|
759
|
+
return new StatusCodeTypeMapping().fromBinary(bytes, options);
|
|
760
|
+
}
|
|
761
|
+
static fromJson(jsonValue, options) {
|
|
762
|
+
return new StatusCodeTypeMapping().fromJson(jsonValue, options);
|
|
763
|
+
}
|
|
764
|
+
static fromJsonString(jsonString, options) {
|
|
765
|
+
return new StatusCodeTypeMapping().fromJsonString(jsonString, options);
|
|
766
|
+
}
|
|
767
|
+
static equals(a, b) {
|
|
768
|
+
return proto3.util.equals(StatusCodeTypeMapping, a, b);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* @generated from message wg.cosmo.node.v1.DataSourceCustom_GraphQL
|
|
773
|
+
*/
|
|
774
|
+
export class DataSourceCustom_GraphQL extends Message {
|
|
775
|
+
/**
|
|
776
|
+
* @generated from field: wg.cosmo.node.v1.FetchConfiguration fetch = 1;
|
|
777
|
+
*/
|
|
778
|
+
fetch;
|
|
779
|
+
/**
|
|
780
|
+
* @generated from field: wg.cosmo.node.v1.GraphQLSubscriptionConfiguration subscription = 2;
|
|
781
|
+
*/
|
|
782
|
+
subscription;
|
|
783
|
+
/**
|
|
784
|
+
* @generated from field: wg.cosmo.node.v1.GraphQLFederationConfiguration federation = 3;
|
|
785
|
+
*/
|
|
786
|
+
federation;
|
|
787
|
+
/**
|
|
788
|
+
* @generated from field: wg.cosmo.node.v1.InternedString upstream_schema = 4;
|
|
789
|
+
*/
|
|
790
|
+
upstreamSchema;
|
|
791
|
+
/**
|
|
792
|
+
* @generated from field: repeated wg.cosmo.node.v1.SingleTypeField custom_scalar_type_fields = 6;
|
|
793
|
+
*/
|
|
794
|
+
customScalarTypeFields = [];
|
|
795
|
+
constructor(data) {
|
|
796
|
+
super();
|
|
797
|
+
proto3.util.initPartial(data, this);
|
|
798
|
+
}
|
|
799
|
+
static runtime = proto3;
|
|
800
|
+
static typeName = "wg.cosmo.node.v1.DataSourceCustom_GraphQL";
|
|
801
|
+
static fields = proto3.util.newFieldList(() => [
|
|
802
|
+
{ no: 1, name: "fetch", kind: "message", T: FetchConfiguration },
|
|
803
|
+
{ no: 2, name: "subscription", kind: "message", T: GraphQLSubscriptionConfiguration },
|
|
804
|
+
{ no: 3, name: "federation", kind: "message", T: GraphQLFederationConfiguration },
|
|
805
|
+
{ no: 4, name: "upstream_schema", kind: "message", T: InternedString },
|
|
806
|
+
{ no: 6, name: "custom_scalar_type_fields", kind: "message", T: SingleTypeField, repeated: true },
|
|
807
|
+
]);
|
|
808
|
+
static fromBinary(bytes, options) {
|
|
809
|
+
return new DataSourceCustom_GraphQL().fromBinary(bytes, options);
|
|
810
|
+
}
|
|
811
|
+
static fromJson(jsonValue, options) {
|
|
812
|
+
return new DataSourceCustom_GraphQL().fromJson(jsonValue, options);
|
|
813
|
+
}
|
|
814
|
+
static fromJsonString(jsonString, options) {
|
|
815
|
+
return new DataSourceCustom_GraphQL().fromJsonString(jsonString, options);
|
|
816
|
+
}
|
|
817
|
+
static equals(a, b) {
|
|
818
|
+
return proto3.util.equals(DataSourceCustom_GraphQL, a, b);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* @generated from message wg.cosmo.node.v1.DataSourceCustom_Static
|
|
823
|
+
*/
|
|
824
|
+
export class DataSourceCustom_Static extends Message {
|
|
825
|
+
/**
|
|
826
|
+
* @generated from field: wg.cosmo.node.v1.ConfigurationVariable data = 1;
|
|
827
|
+
*/
|
|
828
|
+
data;
|
|
829
|
+
constructor(data) {
|
|
830
|
+
super();
|
|
831
|
+
proto3.util.initPartial(data, this);
|
|
832
|
+
}
|
|
833
|
+
static runtime = proto3;
|
|
834
|
+
static typeName = "wg.cosmo.node.v1.DataSourceCustom_Static";
|
|
835
|
+
static fields = proto3.util.newFieldList(() => [
|
|
836
|
+
{ no: 1, name: "data", kind: "message", T: ConfigurationVariable },
|
|
837
|
+
]);
|
|
838
|
+
static fromBinary(bytes, options) {
|
|
839
|
+
return new DataSourceCustom_Static().fromBinary(bytes, options);
|
|
840
|
+
}
|
|
841
|
+
static fromJson(jsonValue, options) {
|
|
842
|
+
return new DataSourceCustom_Static().fromJson(jsonValue, options);
|
|
843
|
+
}
|
|
844
|
+
static fromJsonString(jsonString, options) {
|
|
845
|
+
return new DataSourceCustom_Static().fromJsonString(jsonString, options);
|
|
846
|
+
}
|
|
847
|
+
static equals(a, b) {
|
|
848
|
+
return proto3.util.equals(DataSourceCustom_Static, a, b);
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* @generated from message wg.cosmo.node.v1.ConfigurationVariable
|
|
853
|
+
*/
|
|
854
|
+
export class ConfigurationVariable extends Message {
|
|
855
|
+
/**
|
|
856
|
+
* @generated from field: wg.cosmo.node.v1.ConfigurationVariableKind kind = 1;
|
|
857
|
+
*/
|
|
858
|
+
kind = ConfigurationVariableKind.STATIC_CONFIGURATION_VARIABLE;
|
|
859
|
+
/**
|
|
860
|
+
* @generated from field: string static_variable_content = 2;
|
|
861
|
+
*/
|
|
862
|
+
staticVariableContent = "";
|
|
863
|
+
/**
|
|
864
|
+
* @generated from field: string environment_variable_name = 3;
|
|
865
|
+
*/
|
|
866
|
+
environmentVariableName = "";
|
|
867
|
+
/**
|
|
868
|
+
* @generated from field: string environment_variable_default_value = 4;
|
|
869
|
+
*/
|
|
870
|
+
environmentVariableDefaultValue = "";
|
|
871
|
+
/**
|
|
872
|
+
* @generated from field: string placeholder_variable_name = 5;
|
|
873
|
+
*/
|
|
874
|
+
placeholderVariableName = "";
|
|
875
|
+
constructor(data) {
|
|
876
|
+
super();
|
|
877
|
+
proto3.util.initPartial(data, this);
|
|
878
|
+
}
|
|
879
|
+
static runtime = proto3;
|
|
880
|
+
static typeName = "wg.cosmo.node.v1.ConfigurationVariable";
|
|
881
|
+
static fields = proto3.util.newFieldList(() => [
|
|
882
|
+
{ no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(ConfigurationVariableKind) },
|
|
883
|
+
{ no: 2, name: "static_variable_content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
884
|
+
{ no: 3, name: "environment_variable_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
885
|
+
{ no: 4, name: "environment_variable_default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
886
|
+
{ no: 5, name: "placeholder_variable_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
887
|
+
]);
|
|
888
|
+
static fromBinary(bytes, options) {
|
|
889
|
+
return new ConfigurationVariable().fromBinary(bytes, options);
|
|
890
|
+
}
|
|
891
|
+
static fromJson(jsonValue, options) {
|
|
892
|
+
return new ConfigurationVariable().fromJson(jsonValue, options);
|
|
893
|
+
}
|
|
894
|
+
static fromJsonString(jsonString, options) {
|
|
895
|
+
return new ConfigurationVariable().fromJsonString(jsonString, options);
|
|
896
|
+
}
|
|
897
|
+
static equals(a, b) {
|
|
898
|
+
return proto3.util.equals(ConfigurationVariable, a, b);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* @generated from message wg.cosmo.node.v1.DirectiveConfiguration
|
|
903
|
+
*/
|
|
904
|
+
export class DirectiveConfiguration extends Message {
|
|
905
|
+
/**
|
|
906
|
+
* @generated from field: string directive_name = 1;
|
|
907
|
+
*/
|
|
908
|
+
directiveName = "";
|
|
909
|
+
/**
|
|
910
|
+
* @generated from field: string rename_to = 2;
|
|
911
|
+
*/
|
|
912
|
+
renameTo = "";
|
|
913
|
+
constructor(data) {
|
|
914
|
+
super();
|
|
915
|
+
proto3.util.initPartial(data, this);
|
|
916
|
+
}
|
|
917
|
+
static runtime = proto3;
|
|
918
|
+
static typeName = "wg.cosmo.node.v1.DirectiveConfiguration";
|
|
919
|
+
static fields = proto3.util.newFieldList(() => [
|
|
920
|
+
{ no: 1, name: "directive_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
921
|
+
{ no: 2, name: "rename_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
922
|
+
]);
|
|
923
|
+
static fromBinary(bytes, options) {
|
|
924
|
+
return new DirectiveConfiguration().fromBinary(bytes, options);
|
|
925
|
+
}
|
|
926
|
+
static fromJson(jsonValue, options) {
|
|
927
|
+
return new DirectiveConfiguration().fromJson(jsonValue, options);
|
|
928
|
+
}
|
|
929
|
+
static fromJsonString(jsonString, options) {
|
|
930
|
+
return new DirectiveConfiguration().fromJsonString(jsonString, options);
|
|
931
|
+
}
|
|
932
|
+
static equals(a, b) {
|
|
933
|
+
return proto3.util.equals(DirectiveConfiguration, a, b);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* @generated from message wg.cosmo.node.v1.URLQueryConfiguration
|
|
938
|
+
*/
|
|
939
|
+
export class URLQueryConfiguration extends Message {
|
|
940
|
+
/**
|
|
941
|
+
* @generated from field: string name = 1;
|
|
942
|
+
*/
|
|
943
|
+
name = "";
|
|
944
|
+
/**
|
|
945
|
+
* @generated from field: string value = 2;
|
|
946
|
+
*/
|
|
947
|
+
value = "";
|
|
948
|
+
constructor(data) {
|
|
949
|
+
super();
|
|
950
|
+
proto3.util.initPartial(data, this);
|
|
951
|
+
}
|
|
952
|
+
static runtime = proto3;
|
|
953
|
+
static typeName = "wg.cosmo.node.v1.URLQueryConfiguration";
|
|
954
|
+
static fields = proto3.util.newFieldList(() => [
|
|
955
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
956
|
+
{ no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
957
|
+
]);
|
|
958
|
+
static fromBinary(bytes, options) {
|
|
959
|
+
return new URLQueryConfiguration().fromBinary(bytes, options);
|
|
960
|
+
}
|
|
961
|
+
static fromJson(jsonValue, options) {
|
|
962
|
+
return new URLQueryConfiguration().fromJson(jsonValue, options);
|
|
963
|
+
}
|
|
964
|
+
static fromJsonString(jsonString, options) {
|
|
965
|
+
return new URLQueryConfiguration().fromJsonString(jsonString, options);
|
|
966
|
+
}
|
|
967
|
+
static equals(a, b) {
|
|
968
|
+
return proto3.util.equals(URLQueryConfiguration, a, b);
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* @generated from message wg.cosmo.node.v1.HTTPHeader
|
|
973
|
+
*/
|
|
974
|
+
export class HTTPHeader extends Message {
|
|
975
|
+
/**
|
|
976
|
+
* @generated from field: repeated wg.cosmo.node.v1.ConfigurationVariable values = 1;
|
|
977
|
+
*/
|
|
978
|
+
values = [];
|
|
979
|
+
constructor(data) {
|
|
980
|
+
super();
|
|
981
|
+
proto3.util.initPartial(data, this);
|
|
982
|
+
}
|
|
983
|
+
static runtime = proto3;
|
|
984
|
+
static typeName = "wg.cosmo.node.v1.HTTPHeader";
|
|
985
|
+
static fields = proto3.util.newFieldList(() => [
|
|
986
|
+
{ no: 1, name: "values", kind: "message", T: ConfigurationVariable, repeated: true },
|
|
987
|
+
]);
|
|
988
|
+
static fromBinary(bytes, options) {
|
|
989
|
+
return new HTTPHeader().fromBinary(bytes, options);
|
|
990
|
+
}
|
|
991
|
+
static fromJson(jsonValue, options) {
|
|
992
|
+
return new HTTPHeader().fromJson(jsonValue, options);
|
|
993
|
+
}
|
|
994
|
+
static fromJsonString(jsonString, options) {
|
|
995
|
+
return new HTTPHeader().fromJsonString(jsonString, options);
|
|
996
|
+
}
|
|
997
|
+
static equals(a, b) {
|
|
998
|
+
return proto3.util.equals(HTTPHeader, a, b);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* @generated from message wg.cosmo.node.v1.MTLSConfiguration
|
|
1003
|
+
*/
|
|
1004
|
+
export class MTLSConfiguration extends Message {
|
|
1005
|
+
/**
|
|
1006
|
+
* @generated from field: wg.cosmo.node.v1.ConfigurationVariable key = 1;
|
|
1007
|
+
*/
|
|
1008
|
+
key;
|
|
1009
|
+
/**
|
|
1010
|
+
* @generated from field: wg.cosmo.node.v1.ConfigurationVariable cert = 2;
|
|
1011
|
+
*/
|
|
1012
|
+
cert;
|
|
1013
|
+
/**
|
|
1014
|
+
* @generated from field: bool insecureSkipVerify = 3;
|
|
1015
|
+
*/
|
|
1016
|
+
insecureSkipVerify = false;
|
|
1017
|
+
constructor(data) {
|
|
1018
|
+
super();
|
|
1019
|
+
proto3.util.initPartial(data, this);
|
|
1020
|
+
}
|
|
1021
|
+
static runtime = proto3;
|
|
1022
|
+
static typeName = "wg.cosmo.node.v1.MTLSConfiguration";
|
|
1023
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1024
|
+
{ no: 1, name: "key", kind: "message", T: ConfigurationVariable },
|
|
1025
|
+
{ no: 2, name: "cert", kind: "message", T: ConfigurationVariable },
|
|
1026
|
+
{ no: 3, name: "insecureSkipVerify", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1027
|
+
]);
|
|
1028
|
+
static fromBinary(bytes, options) {
|
|
1029
|
+
return new MTLSConfiguration().fromBinary(bytes, options);
|
|
1030
|
+
}
|
|
1031
|
+
static fromJson(jsonValue, options) {
|
|
1032
|
+
return new MTLSConfiguration().fromJson(jsonValue, options);
|
|
1033
|
+
}
|
|
1034
|
+
static fromJsonString(jsonString, options) {
|
|
1035
|
+
return new MTLSConfiguration().fromJsonString(jsonString, options);
|
|
1036
|
+
}
|
|
1037
|
+
static equals(a, b) {
|
|
1038
|
+
return proto3.util.equals(MTLSConfiguration, a, b);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* @generated from message wg.cosmo.node.v1.GraphQLSubscriptionConfiguration
|
|
1043
|
+
*/
|
|
1044
|
+
export class GraphQLSubscriptionConfiguration extends Message {
|
|
1045
|
+
/**
|
|
1046
|
+
* @generated from field: bool enabled = 1;
|
|
1047
|
+
*/
|
|
1048
|
+
enabled = false;
|
|
1049
|
+
/**
|
|
1050
|
+
* @generated from field: wg.cosmo.node.v1.ConfigurationVariable url = 2;
|
|
1051
|
+
*/
|
|
1052
|
+
url;
|
|
1053
|
+
/**
|
|
1054
|
+
* @generated from field: bool useSSE = 3;
|
|
1055
|
+
*/
|
|
1056
|
+
useSSE = false;
|
|
1057
|
+
constructor(data) {
|
|
1058
|
+
super();
|
|
1059
|
+
proto3.util.initPartial(data, this);
|
|
1060
|
+
}
|
|
1061
|
+
static runtime = proto3;
|
|
1062
|
+
static typeName = "wg.cosmo.node.v1.GraphQLSubscriptionConfiguration";
|
|
1063
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1064
|
+
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1065
|
+
{ no: 2, name: "url", kind: "message", T: ConfigurationVariable },
|
|
1066
|
+
{ no: 3, name: "useSSE", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1067
|
+
]);
|
|
1068
|
+
static fromBinary(bytes, options) {
|
|
1069
|
+
return new GraphQLSubscriptionConfiguration().fromBinary(bytes, options);
|
|
1070
|
+
}
|
|
1071
|
+
static fromJson(jsonValue, options) {
|
|
1072
|
+
return new GraphQLSubscriptionConfiguration().fromJson(jsonValue, options);
|
|
1073
|
+
}
|
|
1074
|
+
static fromJsonString(jsonString, options) {
|
|
1075
|
+
return new GraphQLSubscriptionConfiguration().fromJsonString(jsonString, options);
|
|
1076
|
+
}
|
|
1077
|
+
static equals(a, b) {
|
|
1078
|
+
return proto3.util.equals(GraphQLSubscriptionConfiguration, a, b);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* @generated from message wg.cosmo.node.v1.GraphQLFederationConfiguration
|
|
1083
|
+
*/
|
|
1084
|
+
export class GraphQLFederationConfiguration extends Message {
|
|
1085
|
+
/**
|
|
1086
|
+
* @generated from field: bool enabled = 1;
|
|
1087
|
+
*/
|
|
1088
|
+
enabled = false;
|
|
1089
|
+
/**
|
|
1090
|
+
* @generated from field: string serviceSdl = 2;
|
|
1091
|
+
*/
|
|
1092
|
+
serviceSdl = "";
|
|
1093
|
+
constructor(data) {
|
|
1094
|
+
super();
|
|
1095
|
+
proto3.util.initPartial(data, this);
|
|
1096
|
+
}
|
|
1097
|
+
static runtime = proto3;
|
|
1098
|
+
static typeName = "wg.cosmo.node.v1.GraphQLFederationConfiguration";
|
|
1099
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1100
|
+
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1101
|
+
{ no: 2, name: "serviceSdl", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1102
|
+
]);
|
|
1103
|
+
static fromBinary(bytes, options) {
|
|
1104
|
+
return new GraphQLFederationConfiguration().fromBinary(bytes, options);
|
|
1105
|
+
}
|
|
1106
|
+
static fromJson(jsonValue, options) {
|
|
1107
|
+
return new GraphQLFederationConfiguration().fromJson(jsonValue, options);
|
|
1108
|
+
}
|
|
1109
|
+
static fromJsonString(jsonString, options) {
|
|
1110
|
+
return new GraphQLFederationConfiguration().fromJsonString(jsonString, options);
|
|
1111
|
+
}
|
|
1112
|
+
static equals(a, b) {
|
|
1113
|
+
return proto3.util.equals(GraphQLFederationConfiguration, a, b);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* @generated from message wg.cosmo.node.v1.InternedString
|
|
1118
|
+
*/
|
|
1119
|
+
export class InternedString extends Message {
|
|
1120
|
+
/**
|
|
1121
|
+
* key to index into EngineConfiguration.stringStorage
|
|
1122
|
+
*
|
|
1123
|
+
* @generated from field: string key = 1;
|
|
1124
|
+
*/
|
|
1125
|
+
key = "";
|
|
1126
|
+
constructor(data) {
|
|
1127
|
+
super();
|
|
1128
|
+
proto3.util.initPartial(data, this);
|
|
1129
|
+
}
|
|
1130
|
+
static runtime = proto3;
|
|
1131
|
+
static typeName = "wg.cosmo.node.v1.InternedString";
|
|
1132
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1133
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1134
|
+
]);
|
|
1135
|
+
static fromBinary(bytes, options) {
|
|
1136
|
+
return new InternedString().fromBinary(bytes, options);
|
|
1137
|
+
}
|
|
1138
|
+
static fromJson(jsonValue, options) {
|
|
1139
|
+
return new InternedString().fromJson(jsonValue, options);
|
|
1140
|
+
}
|
|
1141
|
+
static fromJsonString(jsonString, options) {
|
|
1142
|
+
return new InternedString().fromJsonString(jsonString, options);
|
|
1143
|
+
}
|
|
1144
|
+
static equals(a, b) {
|
|
1145
|
+
return proto3.util.equals(InternedString, a, b);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* @generated from message wg.cosmo.node.v1.SingleTypeField
|
|
1150
|
+
*/
|
|
1151
|
+
export class SingleTypeField extends Message {
|
|
1152
|
+
/**
|
|
1153
|
+
* @generated from field: string type_name = 1;
|
|
1154
|
+
*/
|
|
1155
|
+
typeName = "";
|
|
1156
|
+
/**
|
|
1157
|
+
* @generated from field: string field_name = 2;
|
|
1158
|
+
*/
|
|
1159
|
+
fieldName = "";
|
|
1160
|
+
constructor(data) {
|
|
1161
|
+
super();
|
|
1162
|
+
proto3.util.initPartial(data, this);
|
|
1163
|
+
}
|
|
1164
|
+
static runtime = proto3;
|
|
1165
|
+
static typeName = "wg.cosmo.node.v1.SingleTypeField";
|
|
1166
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1167
|
+
{ no: 1, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1168
|
+
{ no: 2, name: "field_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1169
|
+
]);
|
|
1170
|
+
static fromBinary(bytes, options) {
|
|
1171
|
+
return new SingleTypeField().fromBinary(bytes, options);
|
|
1172
|
+
}
|
|
1173
|
+
static fromJson(jsonValue, options) {
|
|
1174
|
+
return new SingleTypeField().fromJson(jsonValue, options);
|
|
1175
|
+
}
|
|
1176
|
+
static fromJsonString(jsonString, options) {
|
|
1177
|
+
return new SingleTypeField().fromJsonString(jsonString, options);
|
|
1178
|
+
}
|
|
1179
|
+
static equals(a, b) {
|
|
1180
|
+
return proto3.util.equals(SingleTypeField, a, b);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
//# sourceMappingURL=node_pb.js.map
|