@lansweeper/integrations-webhooks-notifier-grpc 0.1.1 → 0.2.2

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 CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.2](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/integrations-webhooks-notifier-grpc@0.2.1...@lansweeper/integrations-webhooks-notifier-grpc@0.2.2) (2021-05-24)
7
+
8
+ **Note:** Version bump only for package @lansweeper/integrations-webhooks-notifier-grpc
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.2.1](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/integrations-webhooks-notifier-grpc@0.2.0...@lansweeper/integrations-webhooks-notifier-grpc@0.2.1) (2020-10-14)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * force grpc publish ([15c8fda](https://github.com/Lansweeper/lansweeperapis/commit/15c8fda8893aee7040e92b74c7211b10262ed02b))
20
+
21
+
22
+
23
+
24
+
25
+ # [0.2.0](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/integrations-webhooks-notifier-grpc@0.1.1...@lansweeper/integrations-webhooks-notifier-grpc@0.2.0) (2020-10-13)
26
+
27
+
28
+ ### Features
29
+
30
+ * add traceId to integrations protos ([e468f7b](https://github.com/Lansweeper/lansweeperapis/commit/e468f7b35680d87e2b27083fb8b664c7a6becc7f))
31
+
32
+
33
+
34
+
35
+
6
36
  ## [0.1.1](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/integrations-webhooks-notifier-grpc@0.1.0...@lansweeper/integrations-webhooks-notifier-grpc@0.1.1) (2020-08-25)
7
37
 
8
38
  **Note:** Version bump only for package @lansweeper/integrations-webhooks-notifier-grpc
@@ -1 +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":{}}
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":"traceId","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"traceId"}]},{"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,15,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,58]},{"path":[4,0],"span":[4,0,7,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,0,2,1],"span":[6,2,21]},{"path":[4,0,2,1,5],"span":[6,2,8]},{"path":[4,0,2,1,1],"span":[6,9,16]},{"path":[4,0,2,1,3],"span":[6,19,20]},{"path":[4,1],"span":[9,0,11,1]},{"path":[4,1,1],"span":[9,8,37]},{"path":[4,1,2,0],"span":[10,2,20]},{"path":[4,1,2,0,5],"span":[10,2,7]},{"path":[4,1,2,0,1],"span":[10,8,15]},{"path":[4,1,2,0,3],"span":[10,18,19]},{"path":[6,0],"span":[13,0,15,1]},{"path":[6,0,1],"span":[13,8,36]},{"path":[6,0,2,0],"span":[14,2,101]},{"path":[6,0,2,0,1],"span":[14,6,27]},{"path":[6,0,2,0,2],"span":[14,29,57]},{"path":[6,0,2,0,3],"span":[14,68,97]}]},"syntax":"proto3"}],"bufbuildImageExtension":{}}
@@ -1,2 +1,2 @@
1
- export * from "./webhooks_notifier_consumer_grpc_pb";
2
- export * from "./webhooks_notifier_consumer_pb";
1
+ export * from "./webhooks_notifier_consumer_grpc_pb.d";
2
+ export * from "./webhooks_notifier_consumer_pb.d";
@@ -4,7 +4,8 @@
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
 
7
- import * as grpc from "grpc";
7
+ import * as grpc from "@grpc/grpc-js";
8
+ import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call";
8
9
  import * as webhooks_notifier_consumer_pb from "./webhooks_notifier_consumer_pb";
9
10
 
10
11
  interface IIntegrationsRedeliverServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
@@ -12,7 +13,7 @@ interface IIntegrationsRedeliverServiceService extends grpc.ServiceDefinition<gr
12
13
  }
13
14
 
14
15
  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
+ path: "/lansweeper.integrationswebhooknotifierconsumer.v1.IntegrationsRedeliverService/RedeliverNotification";
16
17
  requestStream: false;
17
18
  responseStream: false;
18
19
  requestSerialize: grpc.serialize<webhooks_notifier_consumer_pb.RedeliverNotificationRequest>;
@@ -23,7 +24,7 @@ interface IIntegrationsRedeliverServiceService_IRedeliverNotification extends gr
23
24
 
24
25
  export const IntegrationsRedeliverServiceService: IIntegrationsRedeliverServiceService;
25
26
 
26
- export interface IIntegrationsRedeliverServiceServer {
27
+ export interface IIntegrationsRedeliverServiceServer extends grpc.UntypedServiceImplementation {
27
28
  redeliverNotification: grpc.handleUnaryCall<webhooks_notifier_consumer_pb.RedeliverNotificationRequest, webhooks_notifier_consumer_pb.RedeliverNotificationResponse>;
28
29
  }
29
30
 
@@ -34,7 +35,7 @@ export interface IIntegrationsRedeliverServiceClient {
34
35
  }
35
36
 
36
37
  export class IntegrationsRedeliverServiceClient extends grpc.Client implements IIntegrationsRedeliverServiceClient {
37
- constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
38
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
38
39
  public redeliverNotification(request: webhooks_notifier_consumer_pb.RedeliverNotificationRequest, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.RedeliverNotificationResponse) => void): grpc.ClientUnaryCall;
39
40
  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
41
  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;
@@ -1,7 +1,7 @@
1
1
  // GENERATED CODE -- DO NOT EDIT!
2
2
 
3
3
  'use strict';
4
- var grpc = require('grpc');
4
+ var grpc = require('@grpc/grpc-js');
5
5
  var webhooks_notifier_consumer_pb = require('./webhooks_notifier_consumer_pb.js');
6
6
 
7
7
  function serialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationRequest(arg) {
@@ -9,7 +9,8 @@ import * as jspb from "google-protobuf";
9
9
  export class RedeliverNotificationRequest extends jspb.Message {
10
10
  getNotificationid(): string;
11
11
  setNotificationid(value: string): RedeliverNotificationRequest;
12
-
12
+ getTraceid(): string;
13
+ setTraceid(value: string): RedeliverNotificationRequest;
13
14
 
14
15
  serializeBinary(): Uint8Array;
15
16
  toObject(includeInstance?: boolean): RedeliverNotificationRequest.AsObject;
@@ -24,6 +25,7 @@ export class RedeliverNotificationRequest extends jspb.Message {
24
25
  export namespace RedeliverNotificationRequest {
25
26
  export type AsObject = {
26
27
  notificationid: string,
28
+ traceid: string,
27
29
  }
28
30
  }
29
31
 
@@ -31,7 +33,6 @@ export class RedeliverNotificationResponse extends jspb.Message {
31
33
  getSuccess(): number;
32
34
  setSuccess(value: number): RedeliverNotificationResponse;
33
35
 
34
-
35
36
  serializeBinary(): Uint8Array;
36
37
  toObject(includeInstance?: boolean): RedeliverNotificationResponse.AsObject;
37
38
  static toObject(includeInstance: boolean, msg: RedeliverNotificationResponse): RedeliverNotificationResponse.AsObject;
@@ -2,11 +2,14 @@
2
2
  /**
3
3
  * @fileoverview
4
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
5
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
7
  * field starts with 'MSG_' and isn't a translatable message.
7
8
  * @public
8
9
  */
9
10
  // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
10
13
 
11
14
  var jspb = require('google-protobuf');
12
15
  var goog = jspb;
@@ -88,7 +91,8 @@ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationReq
88
91
  */
89
92
  proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.toObject = function(includeInstance, msg) {
90
93
  var f, obj = {
91
- notificationid: jspb.Message.getFieldWithDefault(msg, 1, "")
94
+ notificationid: jspb.Message.getFieldWithDefault(msg, 1, ""),
95
+ traceid: jspb.Message.getFieldWithDefault(msg, 2, "")
92
96
  };
93
97
 
94
98
  if (includeInstance) {
@@ -129,6 +133,10 @@ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationReq
129
133
  var value = /** @type {string} */ (reader.readString());
130
134
  msg.setNotificationid(value);
131
135
  break;
136
+ case 2:
137
+ var value = /** @type {string} */ (reader.readString());
138
+ msg.setTraceid(value);
139
+ break;
132
140
  default:
133
141
  reader.skipField();
134
142
  break;
@@ -165,6 +173,13 @@ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationReq
165
173
  f
166
174
  );
167
175
  }
176
+ f = message.getTraceid();
177
+ if (f.length > 0) {
178
+ writer.writeString(
179
+ 2,
180
+ f
181
+ );
182
+ }
168
183
  };
169
184
 
170
185
 
@@ -186,6 +201,24 @@ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationReq
186
201
  };
187
202
 
188
203
 
204
+ /**
205
+ * optional string traceId = 2;
206
+ * @return {string}
207
+ */
208
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.prototype.getTraceid = function() {
209
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
210
+ };
211
+
212
+
213
+ /**
214
+ * @param {string} value
215
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest} returns this
216
+ */
217
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest.prototype.setTraceid = function(value) {
218
+ return jspb.Message.setProto3StringField(this, 2, value);
219
+ };
220
+
221
+
189
222
 
190
223
 
191
224
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@lansweeper/integrations-webhooks-notifier-grpc",
3
- "version": "0.1.1",
3
+ "version": "0.2.2",
4
4
  "main": "gen-proto/index.js",
5
5
  "types": "gen-proto/index.d.ts",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
- "google-protobuf": "^3.12.4",
9
- "grpc": "^1.24.3"
8
+ "@grpc/grpc-js": "^1.3.2",
9
+ "google-protobuf": "^3.17.0"
10
10
  },
11
- "gitHead": "cc2416a65df5b19c9474cd87d33fb1e9cdb5e475"
11
+ "gitHead": "f2b029a2de060d0bded7b42ed6caacc44f3ebd45"
12
12
  }
@@ -4,6 +4,7 @@ package lansweeper.integrationswebhooknotifierconsumer.v1;
4
4
 
5
5
  message RedeliverNotificationRequest {
6
6
  string notificationId = 1;
7
+ string traceId = 2;
7
8
  }
8
9
 
9
10
  message RedeliverNotificationResponse {
@@ -12,4 +13,4 @@ message RedeliverNotificationResponse {
12
13
 
13
14
  service IntegrationsRedeliverService {
14
15
  rpc RedeliverNotification (RedeliverNotificationRequest) returns (RedeliverNotificationResponse) {}
15
- }
16
+ }