@lansweeper/integrations-webhooks-notifier-grpc 0.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # 0.1.0 (2020-08-07)
7
+
8
+
9
+ ### Features
10
+
11
+ * added webhooks notifier grpc ([13050c3](https://github.com/Lansweeper/lansweeperapis/commit/13050c32ab4086e311c01d1571f204fd692319bd))
@@ -0,0 +1 @@
1
+ {"file":[{"name":"webhooks_notifier_consumer.proto","package":"lansweeper.integrationswebhooknotifierconsumer.v1","messageType":[{"name":"RedeliverNotificationRequest","field":[{"name":"notificationId","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"notificationId"}]},{"name":"RedeliverNotificationResponse","field":[{"name":"success","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_INT64","jsonName":"success"}]}],"service":[{"name":"IntegrationsRedeliverService","method":[{"name":"RedeliverNotification","inputType":".lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest","outputType":".lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,14,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,58]},{"path":[4,0],"span":[4,0,6,1]},{"path":[4,0,1],"span":[4,8,36]},{"path":[4,0,2,0],"span":[5,2,28]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,23]},{"path":[4,0,2,0,3],"span":[5,26,27]},{"path":[4,1],"span":[8,0,10,1]},{"path":[4,1,1],"span":[8,8,37]},{"path":[4,1,2,0],"span":[9,2,20]},{"path":[4,1,2,0,5],"span":[9,2,7]},{"path":[4,1,2,0,1],"span":[9,8,15]},{"path":[4,1,2,0,3],"span":[9,18,19]},{"path":[6,0],"span":[12,0,14,1]},{"path":[6,0,1],"span":[12,8,36]},{"path":[6,0,2,0],"span":[13,2,101]},{"path":[6,0,2,0,1],"span":[13,6,27]},{"path":[6,0,2,0,2],"span":[13,29,57]},{"path":[6,0,2,0,3],"span":[13,68,97]}]},"syntax":"proto3"}],"bufbuildImageExtension":{}}
@@ -0,0 +1,2 @@
1
+ export * from "./webhooks_notifier_consumer_grpc_pb";
2
+ export * from "./webhooks_notifier_consumer_pb";
@@ -0,0 +1,3 @@
1
+ const webhooks_notifier_consumer_grpc_pb = require("./webhooks_notifier_consumer_grpc_pb");
2
+ const webhooks_notifier_consumer_pb = require("./webhooks_notifier_consumer_pb");
3
+ Object.assign(exports, webhooks_notifier_consumer_grpc_pb, webhooks_notifier_consumer_pb)
@@ -0,0 +1,41 @@
1
+ // package: lansweeper.integrationswebhooknotifierconsumer.v1
2
+ // file: webhooks_notifier_consumer.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as grpc from "grpc";
8
+ import * as webhooks_notifier_consumer_pb from "./webhooks_notifier_consumer_pb";
9
+
10
+ interface IIntegrationsRedeliverServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
+ redeliverNotification: IIntegrationsRedeliverServiceService_IRedeliverNotification;
12
+ }
13
+
14
+ interface IIntegrationsRedeliverServiceService_IRedeliverNotification extends grpc.MethodDefinition<webhooks_notifier_consumer_pb.RedeliverNotificationRequest, webhooks_notifier_consumer_pb.RedeliverNotificationResponse> {
15
+ path: string; // "/lansweeper.integrationswebhooknotifierconsumer.v1.IntegrationsRedeliverService/RedeliverNotification"
16
+ requestStream: false;
17
+ responseStream: false;
18
+ requestSerialize: grpc.serialize<webhooks_notifier_consumer_pb.RedeliverNotificationRequest>;
19
+ requestDeserialize: grpc.deserialize<webhooks_notifier_consumer_pb.RedeliverNotificationRequest>;
20
+ responseSerialize: grpc.serialize<webhooks_notifier_consumer_pb.RedeliverNotificationResponse>;
21
+ responseDeserialize: grpc.deserialize<webhooks_notifier_consumer_pb.RedeliverNotificationResponse>;
22
+ }
23
+
24
+ export const IntegrationsRedeliverServiceService: IIntegrationsRedeliverServiceService;
25
+
26
+ export interface IIntegrationsRedeliverServiceServer {
27
+ redeliverNotification: grpc.handleUnaryCall<webhooks_notifier_consumer_pb.RedeliverNotificationRequest, webhooks_notifier_consumer_pb.RedeliverNotificationResponse>;
28
+ }
29
+
30
+ export interface IIntegrationsRedeliverServiceClient {
31
+ redeliverNotification(request: webhooks_notifier_consumer_pb.RedeliverNotificationRequest, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.RedeliverNotificationResponse) => void): grpc.ClientUnaryCall;
32
+ redeliverNotification(request: webhooks_notifier_consumer_pb.RedeliverNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.RedeliverNotificationResponse) => void): grpc.ClientUnaryCall;
33
+ redeliverNotification(request: webhooks_notifier_consumer_pb.RedeliverNotificationRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.RedeliverNotificationResponse) => void): grpc.ClientUnaryCall;
34
+ }
35
+
36
+ export class IntegrationsRedeliverServiceClient extends grpc.Client implements IIntegrationsRedeliverServiceClient {
37
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
38
+ public redeliverNotification(request: webhooks_notifier_consumer_pb.RedeliverNotificationRequest, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.RedeliverNotificationResponse) => void): grpc.ClientUnaryCall;
39
+ public redeliverNotification(request: webhooks_notifier_consumer_pb.RedeliverNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.RedeliverNotificationResponse) => void): grpc.ClientUnaryCall;
40
+ public redeliverNotification(request: webhooks_notifier_consumer_pb.RedeliverNotificationRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.RedeliverNotificationResponse) => void): grpc.ClientUnaryCall;
41
+ }
@@ -0,0 +1,44 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('grpc');
5
+ var webhooks_notifier_consumer_pb = require('./webhooks_notifier_consumer_pb.js');
6
+
7
+ function serialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationRequest(arg) {
8
+ if (!(arg instanceof webhooks_notifier_consumer_pb.RedeliverNotificationRequest)) {
9
+ throw new Error('Expected argument of type lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationRequest(buffer_arg) {
15
+ return webhooks_notifier_consumer_pb.RedeliverNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationResponse(arg) {
19
+ if (!(arg instanceof webhooks_notifier_consumer_pb.RedeliverNotificationResponse)) {
20
+ throw new Error('Expected argument of type lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationResponse(buffer_arg) {
26
+ return webhooks_notifier_consumer_pb.RedeliverNotificationResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+
30
+ var IntegrationsRedeliverServiceService = exports.IntegrationsRedeliverServiceService = {
31
+ redeliverNotification: {
32
+ path: '/lansweeper.integrationswebhooknotifierconsumer.v1.IntegrationsRedeliverService/RedeliverNotification',
33
+ requestStream: false,
34
+ responseStream: false,
35
+ requestType: webhooks_notifier_consumer_pb.RedeliverNotificationRequest,
36
+ responseType: webhooks_notifier_consumer_pb.RedeliverNotificationResponse,
37
+ requestSerialize: serialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationRequest,
38
+ requestDeserialize: deserialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationRequest,
39
+ responseSerialize: serialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationResponse,
40
+ responseDeserialize: deserialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationResponse,
41
+ },
42
+ };
43
+
44
+ exports.IntegrationsRedeliverServiceClient = grpc.makeGenericClientConstructor(IntegrationsRedeliverServiceService);
@@ -0,0 +1,49 @@
1
+ // package: lansweeper.integrationswebhooknotifierconsumer.v1
2
+ // file: webhooks_notifier_consumer.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+
9
+ export class RedeliverNotificationRequest extends jspb.Message {
10
+ getNotificationid(): string;
11
+ setNotificationid(value: string): RedeliverNotificationRequest;
12
+
13
+
14
+ serializeBinary(): Uint8Array;
15
+ toObject(includeInstance?: boolean): RedeliverNotificationRequest.AsObject;
16
+ static toObject(includeInstance: boolean, msg: RedeliverNotificationRequest): RedeliverNotificationRequest.AsObject;
17
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
18
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
19
+ static serializeBinaryToWriter(message: RedeliverNotificationRequest, writer: jspb.BinaryWriter): void;
20
+ static deserializeBinary(bytes: Uint8Array): RedeliverNotificationRequest;
21
+ static deserializeBinaryFromReader(message: RedeliverNotificationRequest, reader: jspb.BinaryReader): RedeliverNotificationRequest;
22
+ }
23
+
24
+ export namespace RedeliverNotificationRequest {
25
+ export type AsObject = {
26
+ notificationid: string,
27
+ }
28
+ }
29
+
30
+ export class RedeliverNotificationResponse extends jspb.Message {
31
+ getSuccess(): number;
32
+ setSuccess(value: number): RedeliverNotificationResponse;
33
+
34
+
35
+ serializeBinary(): Uint8Array;
36
+ toObject(includeInstance?: boolean): RedeliverNotificationResponse.AsObject;
37
+ static toObject(includeInstance: boolean, msg: RedeliverNotificationResponse): RedeliverNotificationResponse.AsObject;
38
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
39
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
40
+ static serializeBinaryToWriter(message: RedeliverNotificationResponse, writer: jspb.BinaryWriter): void;
41
+ static deserializeBinary(bytes: Uint8Array): RedeliverNotificationResponse;
42
+ static deserializeBinaryFromReader(message: RedeliverNotificationResponse, reader: jspb.BinaryReader): RedeliverNotificationResponse;
43
+ }
44
+
45
+ export namespace RedeliverNotificationResponse {
46
+ export type AsObject = {
47
+ success: number,
48
+ }
49
+ }
@@ -0,0 +1,319 @@
1
+ // source: webhooks_notifier_consumer.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
+ * field starts with 'MSG_' and isn't a translatable message.
7
+ * @public
8
+ */
9
+ // GENERATED CODE -- DO NOT EDIT!
10
+
11
+ var jspb = require('google-protobuf');
12
+ var goog = jspb;
13
+ var global = Function('return this')();
14
+
15
+ goog.exportSymbol('proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest', null, global);
16
+ goog.exportSymbol('proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse', null, global);
17
+ /**
18
+ * Generated by JsPbCodeGenerator.
19
+ * @param {Array=} opt_data Optional initial data array, typically from a
20
+ * server response, or constructed directly in Javascript. The array is used
21
+ * in place and becomes part of the constructed object. It is not cloned.
22
+ * If no data is provided, the constructed object will be empty, but still
23
+ * valid.
24
+ * @extends {jspb.Message}
25
+ * @constructor
26
+ */
27
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest = function(opt_data) {
28
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
29
+ };
30
+ goog.inherits(proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest, jspb.Message);
31
+ if (goog.DEBUG && !COMPILED) {
32
+ /**
33
+ * @public
34
+ * @override
35
+ */
36
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.displayName = 'proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest';
37
+ }
38
+ /**
39
+ * Generated by JsPbCodeGenerator.
40
+ * @param {Array=} opt_data Optional initial data array, typically from a
41
+ * server response, or constructed directly in Javascript. The array is used
42
+ * in place and becomes part of the constructed object. It is not cloned.
43
+ * If no data is provided, the constructed object will be empty, but still
44
+ * valid.
45
+ * @extends {jspb.Message}
46
+ * @constructor
47
+ */
48
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse = function(opt_data) {
49
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
50
+ };
51
+ goog.inherits(proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse, jspb.Message);
52
+ if (goog.DEBUG && !COMPILED) {
53
+ /**
54
+ * @public
55
+ * @override
56
+ */
57
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.displayName = 'proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse';
58
+ }
59
+
60
+
61
+
62
+ if (jspb.Message.GENERATE_TO_OBJECT) {
63
+ /**
64
+ * Creates an object representation of this proto.
65
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
66
+ * Optional fields that are not set will be set to undefined.
67
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
68
+ * For the list of reserved names please see:
69
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71
+ * JSPB instance for transitional soy proto support:
72
+ * http://goto/soy-param-migration
73
+ * @return {!Object}
74
+ */
75
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.prototype.toObject = function(opt_includeInstance) {
76
+ return proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.toObject(opt_includeInstance, this);
77
+ };
78
+
79
+
80
+ /**
81
+ * Static version of the {@see toObject} method.
82
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
83
+ * the JSPB instance for transitional soy proto support:
84
+ * http://goto/soy-param-migration
85
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest} msg The msg instance to transform.
86
+ * @return {!Object}
87
+ * @suppress {unusedLocalVariables} f is only used for nested messages
88
+ */
89
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.toObject = function(includeInstance, msg) {
90
+ var f, obj = {
91
+ notificationid: jspb.Message.getFieldWithDefault(msg, 1, "")
92
+ };
93
+
94
+ if (includeInstance) {
95
+ obj.$jspbMessageInstance = msg;
96
+ }
97
+ return obj;
98
+ };
99
+ }
100
+
101
+
102
+ /**
103
+ * Deserializes binary data (in protobuf wire format).
104
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
105
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest}
106
+ */
107
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.deserializeBinary = function(bytes) {
108
+ var reader = new jspb.BinaryReader(bytes);
109
+ var msg = new proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest;
110
+ return proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.deserializeBinaryFromReader(msg, reader);
111
+ };
112
+
113
+
114
+ /**
115
+ * Deserializes binary data (in protobuf wire format) from the
116
+ * given reader into the given message object.
117
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest} msg The message object to deserialize into.
118
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
119
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest}
120
+ */
121
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.deserializeBinaryFromReader = function(msg, reader) {
122
+ while (reader.nextField()) {
123
+ if (reader.isEndGroup()) {
124
+ break;
125
+ }
126
+ var field = reader.getFieldNumber();
127
+ switch (field) {
128
+ case 1:
129
+ var value = /** @type {string} */ (reader.readString());
130
+ msg.setNotificationid(value);
131
+ break;
132
+ default:
133
+ reader.skipField();
134
+ break;
135
+ }
136
+ }
137
+ return msg;
138
+ };
139
+
140
+
141
+ /**
142
+ * Serializes the message to binary data (in protobuf wire format).
143
+ * @return {!Uint8Array}
144
+ */
145
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.prototype.serializeBinary = function() {
146
+ var writer = new jspb.BinaryWriter();
147
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.serializeBinaryToWriter(this, writer);
148
+ return writer.getResultBuffer();
149
+ };
150
+
151
+
152
+ /**
153
+ * Serializes the given message to binary data (in protobuf wire
154
+ * format), writing to the given BinaryWriter.
155
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest} message
156
+ * @param {!jspb.BinaryWriter} writer
157
+ * @suppress {unusedLocalVariables} f is only used for nested messages
158
+ */
159
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.serializeBinaryToWriter = function(message, writer) {
160
+ var f = undefined;
161
+ f = message.getNotificationid();
162
+ if (f.length > 0) {
163
+ writer.writeString(
164
+ 1,
165
+ f
166
+ );
167
+ }
168
+ };
169
+
170
+
171
+ /**
172
+ * optional string notificationId = 1;
173
+ * @return {string}
174
+ */
175
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.prototype.getNotificationid = function() {
176
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
177
+ };
178
+
179
+
180
+ /**
181
+ * @param {string} value
182
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest} returns this
183
+ */
184
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.prototype.setNotificationid = function(value) {
185
+ return jspb.Message.setProto3StringField(this, 1, value);
186
+ };
187
+
188
+
189
+
190
+
191
+
192
+ if (jspb.Message.GENERATE_TO_OBJECT) {
193
+ /**
194
+ * Creates an object representation of this proto.
195
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
196
+ * Optional fields that are not set will be set to undefined.
197
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
198
+ * For the list of reserved names please see:
199
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
200
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
201
+ * JSPB instance for transitional soy proto support:
202
+ * http://goto/soy-param-migration
203
+ * @return {!Object}
204
+ */
205
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.prototype.toObject = function(opt_includeInstance) {
206
+ return proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.toObject(opt_includeInstance, this);
207
+ };
208
+
209
+
210
+ /**
211
+ * Static version of the {@see toObject} method.
212
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
213
+ * the JSPB instance for transitional soy proto support:
214
+ * http://goto/soy-param-migration
215
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse} msg The msg instance to transform.
216
+ * @return {!Object}
217
+ * @suppress {unusedLocalVariables} f is only used for nested messages
218
+ */
219
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.toObject = function(includeInstance, msg) {
220
+ var f, obj = {
221
+ success: jspb.Message.getFieldWithDefault(msg, 1, 0)
222
+ };
223
+
224
+ if (includeInstance) {
225
+ obj.$jspbMessageInstance = msg;
226
+ }
227
+ return obj;
228
+ };
229
+ }
230
+
231
+
232
+ /**
233
+ * Deserializes binary data (in protobuf wire format).
234
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
235
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse}
236
+ */
237
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.deserializeBinary = function(bytes) {
238
+ var reader = new jspb.BinaryReader(bytes);
239
+ var msg = new proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse;
240
+ return proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.deserializeBinaryFromReader(msg, reader);
241
+ };
242
+
243
+
244
+ /**
245
+ * Deserializes binary data (in protobuf wire format) from the
246
+ * given reader into the given message object.
247
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse} msg The message object to deserialize into.
248
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
249
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse}
250
+ */
251
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.deserializeBinaryFromReader = function(msg, reader) {
252
+ while (reader.nextField()) {
253
+ if (reader.isEndGroup()) {
254
+ break;
255
+ }
256
+ var field = reader.getFieldNumber();
257
+ switch (field) {
258
+ case 1:
259
+ var value = /** @type {number} */ (reader.readInt64());
260
+ msg.setSuccess(value);
261
+ break;
262
+ default:
263
+ reader.skipField();
264
+ break;
265
+ }
266
+ }
267
+ return msg;
268
+ };
269
+
270
+
271
+ /**
272
+ * Serializes the message to binary data (in protobuf wire format).
273
+ * @return {!Uint8Array}
274
+ */
275
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.prototype.serializeBinary = function() {
276
+ var writer = new jspb.BinaryWriter();
277
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.serializeBinaryToWriter(this, writer);
278
+ return writer.getResultBuffer();
279
+ };
280
+
281
+
282
+ /**
283
+ * Serializes the given message to binary data (in protobuf wire
284
+ * format), writing to the given BinaryWriter.
285
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse} message
286
+ * @param {!jspb.BinaryWriter} writer
287
+ * @suppress {unusedLocalVariables} f is only used for nested messages
288
+ */
289
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.serializeBinaryToWriter = function(message, writer) {
290
+ var f = undefined;
291
+ f = message.getSuccess();
292
+ if (f !== 0) {
293
+ writer.writeInt64(
294
+ 1,
295
+ f
296
+ );
297
+ }
298
+ };
299
+
300
+
301
+ /**
302
+ * optional int64 success = 1;
303
+ * @return {number}
304
+ */
305
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.prototype.getSuccess = function() {
306
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
307
+ };
308
+
309
+
310
+ /**
311
+ * @param {number} value
312
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse} returns this
313
+ */
314
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.prototype.setSuccess = function(value) {
315
+ return jspb.Message.setProto3IntField(this, 1, value);
316
+ };
317
+
318
+
319
+ goog.object.extend(exports, proto.lansweeper.integrationswebhooknotifierconsumer.v1);
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@lansweeper/integrations-webhooks-notifier-grpc",
3
+ "version": "0.1.0",
4
+ "main": "gen-proto/index.js",
5
+ "types": "gen-proto/index.d.ts",
6
+ "license": "MIT",
7
+ "dependencies": {
8
+ "google-protobuf": "^3.12.4",
9
+ "grpc": "^1.24.3"
10
+ },
11
+ "gitHead": "b01a03294bb00a7da4f45e67fc921ad801675e65"
12
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ package lansweeper.integrationswebhooknotifierconsumer.v1;
4
+
5
+ message RedeliverNotificationRequest {
6
+ string notificationId = 1;
7
+ }
8
+
9
+ message RedeliverNotificationResponse {
10
+ int64 success = 1;
11
+ }
12
+
13
+ service IntegrationsRedeliverService {
14
+ rpc RedeliverNotification (RedeliverNotificationRequest) returns (RedeliverNotificationResponse) {}
15
+ }