@miradorlabs/web-grpc 3.50.0 → 3.51.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.
|
@@ -7,6 +7,28 @@ var google_api_field_behavior_pb = require('../../../../google/api/field_behavio
|
|
|
7
7
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
8
8
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
9
9
|
|
|
10
|
+
function serialize_gateway_web_v1_GetDigestSlackChannelRequest(arg) {
|
|
11
|
+
if (!(arg instanceof proto_gateway_web_v1_notification_gateway_pb.GetDigestSlackChannelRequest)) {
|
|
12
|
+
throw new Error('Expected argument of type gateway.web.v1.GetDigestSlackChannelRequest');
|
|
13
|
+
}
|
|
14
|
+
return Buffer.from(arg.serializeBinary());
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function deserialize_gateway_web_v1_GetDigestSlackChannelRequest(buffer_arg) {
|
|
18
|
+
return proto_gateway_web_v1_notification_gateway_pb.GetDigestSlackChannelRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function serialize_gateway_web_v1_GetDigestSlackChannelResponse(arg) {
|
|
22
|
+
if (!(arg instanceof proto_gateway_web_v1_notification_gateway_pb.GetDigestSlackChannelResponse)) {
|
|
23
|
+
throw new Error('Expected argument of type gateway.web.v1.GetDigestSlackChannelResponse');
|
|
24
|
+
}
|
|
25
|
+
return Buffer.from(arg.serializeBinary());
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function deserialize_gateway_web_v1_GetDigestSlackChannelResponse(buffer_arg) {
|
|
29
|
+
return proto_gateway_web_v1_notification_gateway_pb.GetDigestSlackChannelResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
30
|
+
}
|
|
31
|
+
|
|
10
32
|
function serialize_gateway_web_v1_ListAlertsRequest(arg) {
|
|
11
33
|
if (!(arg instanceof proto_gateway_web_v1_notification_gateway_pb.ListAlertsRequest)) {
|
|
12
34
|
throw new Error('Expected argument of type gateway.web.v1.ListAlertsRequest');
|
|
@@ -51,10 +73,32 @@ function deserialize_gateway_web_v1_MarkAlertsReadResponse(buffer_arg) {
|
|
|
51
73
|
return proto_gateway_web_v1_notification_gateway_pb.MarkAlertsReadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
52
74
|
}
|
|
53
75
|
|
|
76
|
+
function serialize_gateway_web_v1_SetDigestSlackChannelRequest(arg) {
|
|
77
|
+
if (!(arg instanceof proto_gateway_web_v1_notification_gateway_pb.SetDigestSlackChannelRequest)) {
|
|
78
|
+
throw new Error('Expected argument of type gateway.web.v1.SetDigestSlackChannelRequest');
|
|
79
|
+
}
|
|
80
|
+
return Buffer.from(arg.serializeBinary());
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function deserialize_gateway_web_v1_SetDigestSlackChannelRequest(buffer_arg) {
|
|
84
|
+
return proto_gateway_web_v1_notification_gateway_pb.SetDigestSlackChannelRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function serialize_gateway_web_v1_SetDigestSlackChannelResponse(arg) {
|
|
88
|
+
if (!(arg instanceof proto_gateway_web_v1_notification_gateway_pb.SetDigestSlackChannelResponse)) {
|
|
89
|
+
throw new Error('Expected argument of type gateway.web.v1.SetDigestSlackChannelResponse');
|
|
90
|
+
}
|
|
91
|
+
return Buffer.from(arg.serializeBinary());
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function deserialize_gateway_web_v1_SetDigestSlackChannelResponse(buffer_arg) {
|
|
95
|
+
return proto_gateway_web_v1_notification_gateway_pb.SetDigestSlackChannelResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
96
|
+
}
|
|
97
|
+
|
|
54
98
|
|
|
55
99
|
// NotificationGatewayService mirrors notification.api.v1.NotificationService: the organization's in-app alerts, which
|
|
56
|
-
// every member sees, with the signed-in member's own read state
|
|
57
|
-
// and every 30-60 s); there is no stream.
|
|
100
|
+
// every member sees, with the signed-in member's own read state, and the Slack channel its daily digest posts to. Poll
|
|
101
|
+
// ListAlerts for the bell (on load, on window focus and every 30-60 s); there is no stream.
|
|
58
102
|
var NotificationGatewayServiceService = exports.NotificationGatewayServiceService = {
|
|
59
103
|
// ListAlerts pages the organization's alerts newest first; pages never overlap. Paging is weakly consistent: an
|
|
60
104
|
// alert that becomes visible behind the cursor during a walk shows up on the next walk from the first page.
|
|
@@ -81,6 +125,34 @@ markAlertsRead: {
|
|
|
81
125
|
responseSerialize: serialize_gateway_web_v1_MarkAlertsReadResponse,
|
|
82
126
|
responseDeserialize: deserialize_gateway_web_v1_MarkAlertsReadResponse,
|
|
83
127
|
},
|
|
128
|
+
// GetDigestSlackChannel returns the Slack channel the organization's daily digest posts to, absent when none is
|
|
129
|
+
// set. Any member may call it.
|
|
130
|
+
getDigestSlackChannel: {
|
|
131
|
+
path: '/gateway.web.v1.NotificationGatewayService/GetDigestSlackChannel',
|
|
132
|
+
requestStream: false,
|
|
133
|
+
responseStream: false,
|
|
134
|
+
requestType: proto_gateway_web_v1_notification_gateway_pb.GetDigestSlackChannelRequest,
|
|
135
|
+
responseType: proto_gateway_web_v1_notification_gateway_pb.GetDigestSlackChannelResponse,
|
|
136
|
+
requestSerialize: serialize_gateway_web_v1_GetDigestSlackChannelRequest,
|
|
137
|
+
requestDeserialize: deserialize_gateway_web_v1_GetDigestSlackChannelRequest,
|
|
138
|
+
responseSerialize: serialize_gateway_web_v1_GetDigestSlackChannelResponse,
|
|
139
|
+
responseDeserialize: deserialize_gateway_web_v1_GetDigestSlackChannelResponse,
|
|
140
|
+
},
|
|
141
|
+
// SetDigestSlackChannel picks the Slack channel the organization's daily digest posts to, or clears it. Admins
|
|
142
|
+
// only. The channel must be one OAuthGatewayService.ListSlackChannels lists; STATUS_CODE_VALIDATION_ERROR for a
|
|
143
|
+
// non-admin, when Slack is not connected, or for a channel it does not list, and STATUS_CODE_UNAVAILABLE when
|
|
144
|
+
// Slack cannot be asked. Clearing never asks Slack, so it works while Slack is disconnected or down.
|
|
145
|
+
setDigestSlackChannel: {
|
|
146
|
+
path: '/gateway.web.v1.NotificationGatewayService/SetDigestSlackChannel',
|
|
147
|
+
requestStream: false,
|
|
148
|
+
responseStream: false,
|
|
149
|
+
requestType: proto_gateway_web_v1_notification_gateway_pb.SetDigestSlackChannelRequest,
|
|
150
|
+
responseType: proto_gateway_web_v1_notification_gateway_pb.SetDigestSlackChannelResponse,
|
|
151
|
+
requestSerialize: serialize_gateway_web_v1_SetDigestSlackChannelRequest,
|
|
152
|
+
requestDeserialize: deserialize_gateway_web_v1_SetDigestSlackChannelRequest,
|
|
153
|
+
responseSerialize: serialize_gateway_web_v1_SetDigestSlackChannelResponse,
|
|
154
|
+
responseDeserialize: deserialize_gateway_web_v1_SetDigestSlackChannelResponse,
|
|
155
|
+
},
|
|
84
156
|
};
|
|
85
157
|
|
|
86
158
|
exports.NotificationGatewayServiceClient = grpc.makeGenericClientConstructor(NotificationGatewayServiceService, 'NotificationGatewayService');
|