@miradorlabs/web-grpc 2.75.0 → 2.76.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.
@@ -29,6 +29,28 @@ function deserialize_gateway_web_v1_BatchQueryRequest(buffer_arg) {
29
29
  return proto_gateway_web_v1_metric_gateway_pb.BatchQueryRequest.deserializeBinary(new Uint8Array(buffer_arg));
30
30
  }
31
31
 
32
+ function serialize_gateway_web_v1_CreateDashboardFromTemplateRequest(arg) {
33
+ if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.CreateDashboardFromTemplateRequest)) {
34
+ throw new Error('Expected argument of type gateway.web.v1.CreateDashboardFromTemplateRequest');
35
+ }
36
+ return Buffer.from(arg.serializeBinary());
37
+ }
38
+
39
+ function deserialize_gateway_web_v1_CreateDashboardFromTemplateRequest(buffer_arg) {
40
+ return proto_gateway_web_v1_metric_gateway_pb.CreateDashboardFromTemplateRequest.deserializeBinary(new Uint8Array(buffer_arg));
41
+ }
42
+
43
+ function serialize_gateway_web_v1_CreateDashboardFromTemplateResponse(arg) {
44
+ if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.CreateDashboardFromTemplateResponse)) {
45
+ throw new Error('Expected argument of type gateway.web.v1.CreateDashboardFromTemplateResponse');
46
+ }
47
+ return Buffer.from(arg.serializeBinary());
48
+ }
49
+
50
+ function deserialize_gateway_web_v1_CreateDashboardFromTemplateResponse(buffer_arg) {
51
+ return proto_gateway_web_v1_metric_gateway_pb.CreateDashboardFromTemplateResponse.deserializeBinary(new Uint8Array(buffer_arg));
52
+ }
53
+
32
54
  function serialize_gateway_web_v1_CreateDashboardRequest(arg) {
33
55
  if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.CreateDashboardRequest)) {
34
56
  throw new Error('Expected argument of type gateway.web.v1.CreateDashboardRequest');
@@ -117,6 +139,28 @@ function deserialize_gateway_web_v1_GetDashboardResponse(buffer_arg) {
117
139
  return proto_gateway_web_v1_metric_gateway_pb.GetDashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
118
140
  }
119
141
 
142
+ function serialize_gateway_web_v1_ListDashboardTemplatesRequest(arg) {
143
+ if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.ListDashboardTemplatesRequest)) {
144
+ throw new Error('Expected argument of type gateway.web.v1.ListDashboardTemplatesRequest');
145
+ }
146
+ return Buffer.from(arg.serializeBinary());
147
+ }
148
+
149
+ function deserialize_gateway_web_v1_ListDashboardTemplatesRequest(buffer_arg) {
150
+ return proto_gateway_web_v1_metric_gateway_pb.ListDashboardTemplatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
151
+ }
152
+
153
+ function serialize_gateway_web_v1_ListDashboardTemplatesResponse(arg) {
154
+ if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.ListDashboardTemplatesResponse)) {
155
+ throw new Error('Expected argument of type gateway.web.v1.ListDashboardTemplatesResponse');
156
+ }
157
+ return Buffer.from(arg.serializeBinary());
158
+ }
159
+
160
+ function deserialize_gateway_web_v1_ListDashboardTemplatesResponse(buffer_arg) {
161
+ return proto_gateway_web_v1_metric_gateway_pb.ListDashboardTemplatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
162
+ }
163
+
120
164
  function serialize_gateway_web_v1_ListDashboardsRequest(arg) {
121
165
  if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.ListDashboardsRequest)) {
122
166
  throw new Error('Expected argument of type gateway.web.v1.ListDashboardsRequest');
@@ -367,6 +411,32 @@ batchQuery: {
367
411
  responseSerialize: serialize_gateway_web_v1_DeleteDashboardResponse,
368
412
  responseDeserialize: deserialize_gateway_web_v1_DeleteDashboardResponse,
369
413
  },
414
+ // Starter dashboards for this gateway's product, with full widgets for
415
+ // previews. A product with none lists empty.
416
+ listDashboardTemplates: {
417
+ path: '/gateway.web.v1.MetricGatewayService/ListDashboardTemplates',
418
+ requestStream: false,
419
+ responseStream: false,
420
+ requestType: proto_gateway_web_v1_metric_gateway_pb.ListDashboardTemplatesRequest,
421
+ responseType: proto_gateway_web_v1_metric_gateway_pb.ListDashboardTemplatesResponse,
422
+ requestSerialize: serialize_gateway_web_v1_ListDashboardTemplatesRequest,
423
+ requestDeserialize: deserialize_gateway_web_v1_ListDashboardTemplatesRequest,
424
+ responseSerialize: serialize_gateway_web_v1_ListDashboardTemplatesResponse,
425
+ responseDeserialize: deserialize_gateway_web_v1_ListDashboardTemplatesResponse,
426
+ },
427
+ // Creates a plain copy of a template in the project; an unknown id (or one
428
+ // of another product) reports STATUS_CODE_NOT_FOUND.
429
+ createDashboardFromTemplate: {
430
+ path: '/gateway.web.v1.MetricGatewayService/CreateDashboardFromTemplate',
431
+ requestStream: false,
432
+ responseStream: false,
433
+ requestType: proto_gateway_web_v1_metric_gateway_pb.CreateDashboardFromTemplateRequest,
434
+ responseType: proto_gateway_web_v1_metric_gateway_pb.CreateDashboardFromTemplateResponse,
435
+ requestSerialize: serialize_gateway_web_v1_CreateDashboardFromTemplateRequest,
436
+ requestDeserialize: deserialize_gateway_web_v1_CreateDashboardFromTemplateRequest,
437
+ responseSerialize: serialize_gateway_web_v1_CreateDashboardFromTemplateResponse,
438
+ responseDeserialize: deserialize_gateway_web_v1_CreateDashboardFromTemplateResponse,
439
+ },
370
440
  // One stream per dashboard view: every widget query runs server-side and
371
441
  // all results multiplex onto this stream tagged with widget_id. Per-widget
372
442
  // failures are in-band and retried; the stream ends only on terminal