@lansweeper/data-platform-outbound-grpc 0.1.12 → 0.1.13

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.
@@ -11,6 +11,7 @@ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/t
11
11
  interface IDataCoreOutboundServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
12
12
  getEntity: IDataCoreOutboundServiceService_IGetEntity;
13
13
  listEntities: IDataCoreOutboundServiceService_IListEntities;
14
+ catalogLookup: IDataCoreOutboundServiceService_ICatalogLookup;
14
15
  }
15
16
 
16
17
  interface IDataCoreOutboundServiceService_IGetEntity extends grpc.MethodDefinition<outbound_pb.GetEntityRequest, outbound_pb.GetEntityResponse> {
@@ -31,12 +32,22 @@ interface IDataCoreOutboundServiceService_IListEntities extends grpc.MethodDefin
31
32
  responseSerialize: grpc.serialize<outbound_pb.ListEntityResponse>;
32
33
  responseDeserialize: grpc.deserialize<outbound_pb.ListEntityResponse>;
33
34
  }
35
+ interface IDataCoreOutboundServiceService_ICatalogLookup extends grpc.MethodDefinition<outbound_pb.CatalogLookupRequest, outbound_pb.CatalogLookupResponse> {
36
+ path: "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/CatalogLookup";
37
+ requestStream: false;
38
+ responseStream: false;
39
+ requestSerialize: grpc.serialize<outbound_pb.CatalogLookupRequest>;
40
+ requestDeserialize: grpc.deserialize<outbound_pb.CatalogLookupRequest>;
41
+ responseSerialize: grpc.serialize<outbound_pb.CatalogLookupResponse>;
42
+ responseDeserialize: grpc.deserialize<outbound_pb.CatalogLookupResponse>;
43
+ }
34
44
 
35
45
  export const DataCoreOutboundServiceService: IDataCoreOutboundServiceService;
36
46
 
37
47
  export interface IDataCoreOutboundServiceServer extends grpc.UntypedServiceImplementation {
38
48
  getEntity: grpc.handleUnaryCall<outbound_pb.GetEntityRequest, outbound_pb.GetEntityResponse>;
39
49
  listEntities: grpc.handleServerStreamingCall<outbound_pb.ListEntityRequest, outbound_pb.ListEntityResponse>;
50
+ catalogLookup: grpc.handleUnaryCall<outbound_pb.CatalogLookupRequest, outbound_pb.CatalogLookupResponse>;
40
51
  }
41
52
 
42
53
  export interface IDataCoreOutboundServiceClient {
@@ -45,6 +56,9 @@ export interface IDataCoreOutboundServiceClient {
45
56
  getEntity(request: outbound_pb.GetEntityRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.GetEntityResponse) => void): grpc.ClientUnaryCall;
46
57
  listEntities(request: outbound_pb.ListEntityRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.ListEntityResponse>;
47
58
  listEntities(request: outbound_pb.ListEntityRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.ListEntityResponse>;
59
+ catalogLookup(request: outbound_pb.CatalogLookupRequest, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
60
+ catalogLookup(request: outbound_pb.CatalogLookupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
61
+ catalogLookup(request: outbound_pb.CatalogLookupRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
48
62
  }
49
63
 
50
64
  export class DataCoreOutboundServiceClient extends grpc.Client implements IDataCoreOutboundServiceClient {
@@ -54,4 +68,7 @@ export class DataCoreOutboundServiceClient extends grpc.Client implements IDataC
54
68
  public getEntity(request: outbound_pb.GetEntityRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.GetEntityResponse) => void): grpc.ClientUnaryCall;
55
69
  public listEntities(request: outbound_pb.ListEntityRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.ListEntityResponse>;
56
70
  public listEntities(request: outbound_pb.ListEntityRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.ListEntityResponse>;
71
+ public catalogLookup(request: outbound_pb.CatalogLookupRequest, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
72
+ public catalogLookup(request: outbound_pb.CatalogLookupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
73
+ public catalogLookup(request: outbound_pb.CatalogLookupRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
57
74
  }
@@ -12,6 +12,28 @@ 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_outbound_v1_CatalogLookupRequest(arg) {
16
+ if (!(arg instanceof outbound_pb.CatalogLookupRequest)) {
17
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.CatalogLookupRequest');
18
+ }
19
+ return Buffer.from(arg.serializeBinary());
20
+ }
21
+
22
+ function deserialize_com_lansweeper_dp_outbound_v1_CatalogLookupRequest(buffer_arg) {
23
+ return outbound_pb.CatalogLookupRequest.deserializeBinary(new Uint8Array(buffer_arg));
24
+ }
25
+
26
+ function serialize_com_lansweeper_dp_outbound_v1_CatalogLookupResponse(arg) {
27
+ if (!(arg instanceof outbound_pb.CatalogLookupResponse)) {
28
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.CatalogLookupResponse');
29
+ }
30
+ return Buffer.from(arg.serializeBinary());
31
+ }
32
+
33
+ function deserialize_com_lansweeper_dp_outbound_v1_CatalogLookupResponse(buffer_arg) {
34
+ return outbound_pb.CatalogLookupResponse.deserializeBinary(new Uint8Array(buffer_arg));
35
+ }
36
+
15
37
  function serialize_com_lansweeper_dp_outbound_v1_GetEntityRequest(arg) {
16
38
  if (!(arg instanceof outbound_pb.GetEntityRequest)) {
17
39
  throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.GetEntityRequest');
@@ -88,6 +110,18 @@ listEntities: {
88
110
  responseSerialize: serialize_com_lansweeper_dp_outbound_v1_ListEntityResponse,
89
111
  responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_ListEntityResponse,
90
112
  },
113
+ // Retrieve a single entity by site/inst-id/type/id
114
+ catalogLookup: {
115
+ path: '/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/CatalogLookup',
116
+ requestStream: false,
117
+ responseStream: false,
118
+ requestType: outbound_pb.CatalogLookupRequest,
119
+ responseType: outbound_pb.CatalogLookupResponse,
120
+ requestSerialize: serialize_com_lansweeper_dp_outbound_v1_CatalogLookupRequest,
121
+ requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_CatalogLookupRequest,
122
+ responseSerialize: serialize_com_lansweeper_dp_outbound_v1_CatalogLookupResponse,
123
+ responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_CatalogLookupResponse,
124
+ },
91
125
  };
92
126
 
93
127
  exports.DataCoreOutboundServiceClient = grpc.makeGenericClientConstructor(DataCoreOutboundServiceService);
@@ -118,6 +118,96 @@ export namespace ListEntityResponse {
118
118
  }
119
119
  }
120
120
 
121
+ export class CatalogLookupRequest extends jspb.Message {
122
+ clearBrandIdList(): void;
123
+ getBrandIdList(): Array<number>;
124
+ setBrandIdList(value: Array<number>): CatalogLookupRequest;
125
+ addBrandId(value: number, index?: number): number;
126
+ clearModelIdList(): void;
127
+ getModelIdList(): Array<number>;
128
+ setModelIdList(value: Array<number>): CatalogLookupRequest;
129
+ addModelId(value: number, index?: number): number;
130
+ clearOsIdList(): void;
131
+ getOsIdList(): Array<number>;
132
+ setOsIdList(value: Array<number>): CatalogLookupRequest;
133
+ addOsId(value: number, index?: number): number;
134
+ clearSwIdList(): void;
135
+ getSwIdList(): Array<number>;
136
+ setSwIdList(value: Array<number>): CatalogLookupRequest;
137
+ addSwId(value: number, index?: number): number;
138
+ clearMonitorIdList(): void;
139
+ getMonitorIdList(): Array<number>;
140
+ setMonitorIdList(value: Array<number>): CatalogLookupRequest;
141
+ addMonitorId(value: number, index?: number): number;
142
+
143
+ hasOnlyRequested(): boolean;
144
+ clearOnlyRequested(): void;
145
+ getOnlyRequested(): boolean | undefined;
146
+ setOnlyRequested(value: boolean): CatalogLookupRequest;
147
+
148
+ serializeBinary(): Uint8Array;
149
+ toObject(includeInstance?: boolean): CatalogLookupRequest.AsObject;
150
+ static toObject(includeInstance: boolean, msg: CatalogLookupRequest): CatalogLookupRequest.AsObject;
151
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
152
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
153
+ static serializeBinaryToWriter(message: CatalogLookupRequest, writer: jspb.BinaryWriter): void;
154
+ static deserializeBinary(bytes: Uint8Array): CatalogLookupRequest;
155
+ static deserializeBinaryFromReader(message: CatalogLookupRequest, reader: jspb.BinaryReader): CatalogLookupRequest;
156
+ }
157
+
158
+ export namespace CatalogLookupRequest {
159
+ export type AsObject = {
160
+ brandIdList: Array<number>,
161
+ modelIdList: Array<number>,
162
+ osIdList: Array<number>,
163
+ swIdList: Array<number>,
164
+ monitorIdList: Array<number>,
165
+ onlyRequested?: boolean,
166
+ }
167
+ }
168
+
169
+ export class CatalogLookupResponse extends jspb.Message {
170
+ clearBrandList(): void;
171
+ getBrandList(): Array<CatalogBrand>;
172
+ setBrandList(value: Array<CatalogBrand>): CatalogLookupResponse;
173
+ addBrand(value?: CatalogBrand, index?: number): CatalogBrand;
174
+ clearModelList(): void;
175
+ getModelList(): Array<CatalogModel>;
176
+ setModelList(value: Array<CatalogModel>): CatalogLookupResponse;
177
+ addModel(value?: CatalogModel, index?: number): CatalogModel;
178
+ clearOsList(): void;
179
+ getOsList(): Array<CatalogOs>;
180
+ setOsList(value: Array<CatalogOs>): CatalogLookupResponse;
181
+ addOs(value?: CatalogOs, index?: number): CatalogOs;
182
+ clearSwList(): void;
183
+ getSwList(): Array<CatalogSoftware>;
184
+ setSwList(value: Array<CatalogSoftware>): CatalogLookupResponse;
185
+ addSw(value?: CatalogSoftware, index?: number): CatalogSoftware;
186
+ clearMonitorList(): void;
187
+ getMonitorList(): Array<CatalogMonitor>;
188
+ setMonitorList(value: Array<CatalogMonitor>): CatalogLookupResponse;
189
+ addMonitor(value?: CatalogMonitor, index?: number): CatalogMonitor;
190
+
191
+ serializeBinary(): Uint8Array;
192
+ toObject(includeInstance?: boolean): CatalogLookupResponse.AsObject;
193
+ static toObject(includeInstance: boolean, msg: CatalogLookupResponse): CatalogLookupResponse.AsObject;
194
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
195
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
196
+ static serializeBinaryToWriter(message: CatalogLookupResponse, writer: jspb.BinaryWriter): void;
197
+ static deserializeBinary(bytes: Uint8Array): CatalogLookupResponse;
198
+ static deserializeBinaryFromReader(message: CatalogLookupResponse, reader: jspb.BinaryReader): CatalogLookupResponse;
199
+ }
200
+
201
+ export namespace CatalogLookupResponse {
202
+ export type AsObject = {
203
+ brandList: Array<CatalogBrand.AsObject>,
204
+ modelList: Array<CatalogModel.AsObject>,
205
+ osList: Array<CatalogOs.AsObject>,
206
+ swList: Array<CatalogSoftware.AsObject>,
207
+ monitorList: Array<CatalogMonitor.AsObject>,
208
+ }
209
+ }
210
+
121
211
  export class EntityPath extends jspb.Message {
122
212
  getSiteId(): string;
123
213
  setSiteId(value: string): EntityPath;
@@ -423,21 +513,6 @@ export class HardwareInfo extends jspb.Message {
423
513
  getRank(): number | undefined;
424
514
  setRank(value: number): HardwareInfo;
425
515
 
426
- hasCatalogBrand(): boolean;
427
- clearCatalogBrand(): void;
428
- getCatalogBrand(): CatalogBrand | undefined;
429
- setCatalogBrand(value?: CatalogBrand): HardwareInfo;
430
-
431
- hasCatalogModel(): boolean;
432
- clearCatalogModel(): void;
433
- getCatalogModel(): CatalogModel | undefined;
434
- setCatalogModel(value?: CatalogModel): HardwareInfo;
435
-
436
- hasCatalogFamily(): boolean;
437
- clearCatalogFamily(): void;
438
- getCatalogFamily(): CatalogModel | undefined;
439
- setCatalogFamily(value?: CatalogModel): HardwareInfo;
440
-
441
516
  hasRaw(): boolean;
442
517
  clearRaw(): void;
443
518
  getRaw(): RawHardwareInfo | undefined;
@@ -467,9 +542,6 @@ export namespace HardwareInfo {
467
542
  familyName?: string,
468
543
  cpe?: string,
469
544
  rank?: number,
470
- catalogBrand?: CatalogBrand.AsObject,
471
- catalogModel?: CatalogModel.AsObject,
472
- catalogFamily?: CatalogModel.AsObject,
473
545
  raw?: RawHardwareInfo.AsObject,
474
546
  }
475
547
  }
@@ -562,16 +634,6 @@ export class OperatingSystemInfo extends jspb.Message {
562
634
  getRank(): number | undefined;
563
635
  setRank(value: number): OperatingSystemInfo;
564
636
 
565
- hasCatalogBrand(): boolean;
566
- clearCatalogBrand(): void;
567
- getCatalogBrand(): CatalogBrand | undefined;
568
- setCatalogBrand(value?: CatalogBrand): OperatingSystemInfo;
569
-
570
- hasCatalogOs(): boolean;
571
- clearCatalogOs(): void;
572
- getCatalogOs(): CatalogOs | undefined;
573
- setCatalogOs(value?: CatalogOs): OperatingSystemInfo;
574
-
575
637
  hasWindows(): boolean;
576
638
  clearWindows(): void;
577
639
  getWindows(): WindowsRawOperatingSystemInfo | undefined;
@@ -600,8 +662,6 @@ export namespace OperatingSystemInfo {
600
662
  cpe?: string,
601
663
  fwCpe?: string,
602
664
  rank?: number,
603
- catalogBrand?: CatalogBrand.AsObject,
604
- catalogOs?: CatalogOs.AsObject,
605
665
  windows?: WindowsRawOperatingSystemInfo.AsObject,
606
666
  }
607
667
 
@@ -718,8 +778,20 @@ export namespace MonitorInventory {
718
778
  }
719
779
 
720
780
  export class Monitor extends jspb.Message {
721
- getModel(): string;
722
- setModel(value: string): Monitor;
781
+
782
+ hasId(): boolean;
783
+ clearId(): void;
784
+ getId(): number | undefined;
785
+ setId(value: number): Monitor;
786
+
787
+ hasMakeId(): boolean;
788
+ clearMakeId(): void;
789
+ getMakeId(): number | undefined;
790
+ setMakeId(value: number): Monitor;
791
+ getMakeName(): string;
792
+ setMakeName(value: string): Monitor;
793
+ getModelName(): string;
794
+ setModelName(value: string): Monitor;
723
795
 
724
796
  hasSerialNumber(): boolean;
725
797
  clearSerialNumber(): void;
@@ -731,16 +803,6 @@ export class Monitor extends jspb.Message {
731
803
  getManufacturerDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
732
804
  setManufacturerDate(value?: google_protobuf_timestamp_pb.Timestamp): Monitor;
733
805
 
734
- hasCatalogBrand(): boolean;
735
- clearCatalogBrand(): void;
736
- getCatalogBrand(): CatalogBrand | undefined;
737
- setCatalogBrand(value?: CatalogBrand): Monitor;
738
-
739
- hasCatalogMonitor(): boolean;
740
- clearCatalogMonitor(): void;
741
- getCatalogMonitor(): CatalogMonitor | undefined;
742
- setCatalogMonitor(value?: CatalogMonitor): Monitor;
743
-
744
806
  hasWindows(): boolean;
745
807
  clearWindows(): void;
746
808
  getWindows(): WindowsRawMonitorInfo | undefined;
@@ -760,11 +822,12 @@ export class Monitor extends jspb.Message {
760
822
 
761
823
  export namespace Monitor {
762
824
  export type AsObject = {
763
- model: string,
825
+ id?: number,
826
+ makeId?: number,
827
+ makeName: string,
828
+ modelName: string,
764
829
  serialNumber?: string,
765
830
  manufacturerDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
766
- catalogBrand?: CatalogBrand.AsObject,
767
- catalogMonitor?: CatalogMonitor.AsObject,
768
831
  windows?: WindowsRawMonitorInfo.AsObject,
769
832
  }
770
833
 
@@ -952,21 +1015,6 @@ export class Software extends jspb.Message {
952
1015
  getCpe(): string | undefined;
953
1016
  setCpe(value: string): Software;
954
1017
 
955
- hasCatalogBrand(): boolean;
956
- clearCatalogBrand(): void;
957
- getCatalogBrand(): CatalogBrand | undefined;
958
- setCatalogBrand(value?: CatalogBrand): Software;
959
-
960
- hasCatalogSoftware(): boolean;
961
- clearCatalogSoftware(): void;
962
- getCatalogSoftware(): CatalogSoftware | undefined;
963
- setCatalogSoftware(value?: CatalogSoftware): Software;
964
-
965
- hasCatalogLatest(): boolean;
966
- clearCatalogLatest(): void;
967
- getCatalogLatest(): CatalogSoftware | undefined;
968
- setCatalogLatest(value?: CatalogSoftware): Software;
969
-
970
1018
  hasRaw(): boolean;
971
1019
  clearRaw(): void;
972
1020
  getRaw(): RawSoftware | undefined;
@@ -1011,9 +1059,6 @@ export namespace Software {
1011
1059
  arch?: string,
1012
1060
  lang?: string,
1013
1061
  cpe?: string,
1014
- catalogBrand?: CatalogBrand.AsObject,
1015
- catalogSoftware?: CatalogSoftware.AsObject,
1016
- catalogLatest?: CatalogSoftware.AsObject,
1017
1062
  raw?: RawSoftware.AsObject,
1018
1063
  rawHash?: string,
1019
1064
  nreHash?: string,