@lansweeper/data-platform-outbound-grpc 0.0.2 → 0.1.1

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.
@@ -1,4 +1,4 @@
1
- // package: com.lansweeper.dp.outboundapi.v1
1
+ // package: com.lansweeper.dp.outbound.v1
2
2
  // file: outbound.proto
3
3
 
4
4
  /* tslint:disable */
@@ -14,7 +14,7 @@ interface IDataCoreOutboundServiceService extends grpc.ServiceDefinition<grpc.Un
14
14
  }
15
15
 
16
16
  interface IDataCoreOutboundServiceService_IGetEntity extends grpc.MethodDefinition<outbound_pb.GetEntityRequest, outbound_pb.GetEntityResponse> {
17
- path: "/com.lansweeper.dp.outboundapi.v1.DataCoreOutboundService/GetEntity";
17
+ path: "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/GetEntity";
18
18
  requestStream: false;
19
19
  responseStream: false;
20
20
  requestSerialize: grpc.serialize<outbound_pb.GetEntityRequest>;
@@ -23,7 +23,7 @@ interface IDataCoreOutboundServiceService_IGetEntity extends grpc.MethodDefiniti
23
23
  responseDeserialize: grpc.deserialize<outbound_pb.GetEntityResponse>;
24
24
  }
25
25
  interface IDataCoreOutboundServiceService_IListEntities extends grpc.MethodDefinition<outbound_pb.ListEntityRequest, outbound_pb.ListEntityResponse> {
26
- path: "/com.lansweeper.dp.outboundapi.v1.DataCoreOutboundService/ListEntities";
26
+ path: "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/ListEntities";
27
27
  requestStream: false;
28
28
  responseStream: true;
29
29
  requestSerialize: grpc.serialize<outbound_pb.ListEntityRequest>;
@@ -2,87 +2,91 @@
2
2
 
3
3
  // Original file comments:
4
4
  // *
5
- // Copyright Lansweper (c)
5
+ // Copyright Lansweeper (c)
6
6
  //
7
- // This files contains
7
+ // This files contains the Data Access API and the definition of outbound model
8
8
  //
9
- // https://github.com/pseudomuto/protoc-gen-doc
9
+ // N.B. This file has been documented using the specification available here: https://github.com/pseudomuto/protoc-gen-doc
10
10
  'use strict';
11
11
  var grpc = require('@grpc/grpc-js');
12
12
  var outbound_pb = require('./outbound_pb.js');
13
13
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
14
14
 
15
- function serialize_com_lansweeper_dp_outboundapi_v1_GetEntityRequest(arg) {
15
+ function serialize_com_lansweeper_dp_outbound_v1_GetEntityRequest(arg) {
16
16
  if (!(arg instanceof outbound_pb.GetEntityRequest)) {
17
- throw new Error('Expected argument of type com.lansweeper.dp.outboundapi.v1.GetEntityRequest');
17
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.GetEntityRequest');
18
18
  }
19
19
  return Buffer.from(arg.serializeBinary());
20
20
  }
21
21
 
22
- function deserialize_com_lansweeper_dp_outboundapi_v1_GetEntityRequest(buffer_arg) {
22
+ function deserialize_com_lansweeper_dp_outbound_v1_GetEntityRequest(buffer_arg) {
23
23
  return outbound_pb.GetEntityRequest.deserializeBinary(new Uint8Array(buffer_arg));
24
24
  }
25
25
 
26
- function serialize_com_lansweeper_dp_outboundapi_v1_GetEntityResponse(arg) {
26
+ function serialize_com_lansweeper_dp_outbound_v1_GetEntityResponse(arg) {
27
27
  if (!(arg instanceof outbound_pb.GetEntityResponse)) {
28
- throw new Error('Expected argument of type com.lansweeper.dp.outboundapi.v1.GetEntityResponse');
28
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.GetEntityResponse');
29
29
  }
30
30
  return Buffer.from(arg.serializeBinary());
31
31
  }
32
32
 
33
- function deserialize_com_lansweeper_dp_outboundapi_v1_GetEntityResponse(buffer_arg) {
33
+ function deserialize_com_lansweeper_dp_outbound_v1_GetEntityResponse(buffer_arg) {
34
34
  return outbound_pb.GetEntityResponse.deserializeBinary(new Uint8Array(buffer_arg));
35
35
  }
36
36
 
37
- function serialize_com_lansweeper_dp_outboundapi_v1_ListEntityRequest(arg) {
37
+ function serialize_com_lansweeper_dp_outbound_v1_ListEntityRequest(arg) {
38
38
  if (!(arg instanceof outbound_pb.ListEntityRequest)) {
39
- throw new Error('Expected argument of type com.lansweeper.dp.outboundapi.v1.ListEntityRequest');
39
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.ListEntityRequest');
40
40
  }
41
41
  return Buffer.from(arg.serializeBinary());
42
42
  }
43
43
 
44
- function deserialize_com_lansweeper_dp_outboundapi_v1_ListEntityRequest(buffer_arg) {
44
+ function deserialize_com_lansweeper_dp_outbound_v1_ListEntityRequest(buffer_arg) {
45
45
  return outbound_pb.ListEntityRequest.deserializeBinary(new Uint8Array(buffer_arg));
46
46
  }
47
47
 
48
- function serialize_com_lansweeper_dp_outboundapi_v1_ListEntityResponse(arg) {
48
+ function serialize_com_lansweeper_dp_outbound_v1_ListEntityResponse(arg) {
49
49
  if (!(arg instanceof outbound_pb.ListEntityResponse)) {
50
- throw new Error('Expected argument of type com.lansweeper.dp.outboundapi.v1.ListEntityResponse');
50
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.ListEntityResponse');
51
51
  }
52
52
  return Buffer.from(arg.serializeBinary());
53
53
  }
54
54
 
55
- function deserialize_com_lansweeper_dp_outboundapi_v1_ListEntityResponse(buffer_arg) {
55
+ function deserialize_com_lansweeper_dp_outbound_v1_ListEntityResponse(buffer_arg) {
56
56
  return outbound_pb.ListEntityResponse.deserializeBinary(new Uint8Array(buffer_arg));
57
57
  }
58
58
 
59
59
 
60
60
  // ----- Service Part ------
61
61
  //
62
+ // *
63
+ // GRPC Service. Currently supported operation:
64
+ // - Get Entity
65
+ // - Stream Entities
62
66
  var DataCoreOutboundServiceService = exports.DataCoreOutboundServiceService = {
63
67
  // Retrieve a single entity by site/inst-id/type/id
64
68
  getEntity: {
65
- path: '/com.lansweeper.dp.outboundapi.v1.DataCoreOutboundService/GetEntity',
69
+ path: '/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/GetEntity',
66
70
  requestStream: false,
67
71
  responseStream: false,
68
72
  requestType: outbound_pb.GetEntityRequest,
69
73
  responseType: outbound_pb.GetEntityResponse,
70
- requestSerialize: serialize_com_lansweeper_dp_outboundapi_v1_GetEntityRequest,
71
- requestDeserialize: deserialize_com_lansweeper_dp_outboundapi_v1_GetEntityRequest,
72
- responseSerialize: serialize_com_lansweeper_dp_outboundapi_v1_GetEntityResponse,
73
- responseDeserialize: deserialize_com_lansweeper_dp_outboundapi_v1_GetEntityResponse,
74
+ requestSerialize: serialize_com_lansweeper_dp_outbound_v1_GetEntityRequest,
75
+ requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_GetEntityRequest,
76
+ responseSerialize: serialize_com_lansweeper_dp_outbound_v1_GetEntityResponse,
77
+ responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_GetEntityResponse,
74
78
  },
75
79
  // lists entities for a site or site/type
76
80
  listEntities: {
77
- path: '/com.lansweeper.dp.outboundapi.v1.DataCoreOutboundService/ListEntities',
81
+ path: '/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/ListEntities',
78
82
  requestStream: false,
79
83
  responseStream: true,
80
84
  requestType: outbound_pb.ListEntityRequest,
81
85
  responseType: outbound_pb.ListEntityResponse,
82
- requestSerialize: serialize_com_lansweeper_dp_outboundapi_v1_ListEntityRequest,
83
- requestDeserialize: deserialize_com_lansweeper_dp_outboundapi_v1_ListEntityRequest,
84
- responseSerialize: serialize_com_lansweeper_dp_outboundapi_v1_ListEntityResponse,
85
- responseDeserialize: deserialize_com_lansweeper_dp_outboundapi_v1_ListEntityResponse,
86
+ requestSerialize: serialize_com_lansweeper_dp_outbound_v1_ListEntityRequest,
87
+ requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_ListEntityRequest,
88
+ responseSerialize: serialize_com_lansweeper_dp_outbound_v1_ListEntityResponse,
89
+ responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_ListEntityResponse,
86
90
  },
87
91
  };
88
92
 
@@ -1,4 +1,4 @@
1
- // package: com.lansweeper.dp.outboundapi.v1
1
+ // package: com.lansweeper.dp.outbound.v1
2
2
  // file: outbound.proto
3
3
 
4
4
  /* tslint:disable */