@lansweeper/data-platform-outbound-grpc 0.1.11 → 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;
@@ -273,6 +363,8 @@ export namespace Asset {
273
363
  export class AssetType extends jspb.Message {
274
364
  getLsName(): string;
275
365
  setLsName(value: string): AssetType;
366
+ getLsId(): number;
367
+ setLsId(value: number): AssetType;
276
368
 
277
369
  hasFingType(): boolean;
278
370
  clearFingType(): void;
@@ -292,6 +384,7 @@ export class AssetType extends jspb.Message {
292
384
  export namespace AssetType {
293
385
  export type AsObject = {
294
386
  lsName: string,
387
+ lsId: number,
295
388
  fingType?: string,
296
389
  }
297
390
  }
@@ -420,21 +513,6 @@ export class HardwareInfo extends jspb.Message {
420
513
  getRank(): number | undefined;
421
514
  setRank(value: number): HardwareInfo;
422
515
 
423
- hasCatalogBrand(): boolean;
424
- clearCatalogBrand(): void;
425
- getCatalogBrand(): CatalogBrand | undefined;
426
- setCatalogBrand(value?: CatalogBrand): HardwareInfo;
427
-
428
- hasCatalogModel(): boolean;
429
- clearCatalogModel(): void;
430
- getCatalogModel(): CatalogModel | undefined;
431
- setCatalogModel(value?: CatalogModel): HardwareInfo;
432
-
433
- hasCatalogFamily(): boolean;
434
- clearCatalogFamily(): void;
435
- getCatalogFamily(): CatalogModel | undefined;
436
- setCatalogFamily(value?: CatalogModel): HardwareInfo;
437
-
438
516
  hasRaw(): boolean;
439
517
  clearRaw(): void;
440
518
  getRaw(): RawHardwareInfo | undefined;
@@ -464,9 +542,6 @@ export namespace HardwareInfo {
464
542
  familyName?: string,
465
543
  cpe?: string,
466
544
  rank?: number,
467
- catalogBrand?: CatalogBrand.AsObject,
468
- catalogModel?: CatalogModel.AsObject,
469
- catalogFamily?: CatalogModel.AsObject,
470
545
  raw?: RawHardwareInfo.AsObject,
471
546
  }
472
547
  }
@@ -559,16 +634,6 @@ export class OperatingSystemInfo extends jspb.Message {
559
634
  getRank(): number | undefined;
560
635
  setRank(value: number): OperatingSystemInfo;
561
636
 
562
- hasCatalogBrand(): boolean;
563
- clearCatalogBrand(): void;
564
- getCatalogBrand(): CatalogBrand | undefined;
565
- setCatalogBrand(value?: CatalogBrand): OperatingSystemInfo;
566
-
567
- hasCatalogOs(): boolean;
568
- clearCatalogOs(): void;
569
- getCatalogOs(): CatalogOs | undefined;
570
- setCatalogOs(value?: CatalogOs): OperatingSystemInfo;
571
-
572
637
  hasWindows(): boolean;
573
638
  clearWindows(): void;
574
639
  getWindows(): WindowsRawOperatingSystemInfo | undefined;
@@ -597,8 +662,6 @@ export namespace OperatingSystemInfo {
597
662
  cpe?: string,
598
663
  fwCpe?: string,
599
664
  rank?: number,
600
- catalogBrand?: CatalogBrand.AsObject,
601
- catalogOs?: CatalogOs.AsObject,
602
665
  windows?: WindowsRawOperatingSystemInfo.AsObject,
603
666
  }
604
667
 
@@ -715,8 +778,20 @@ export namespace MonitorInventory {
715
778
  }
716
779
 
717
780
  export class Monitor extends jspb.Message {
718
- getModel(): string;
719
- 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;
720
795
 
721
796
  hasSerialNumber(): boolean;
722
797
  clearSerialNumber(): void;
@@ -728,16 +803,6 @@ export class Monitor extends jspb.Message {
728
803
  getManufacturerDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
729
804
  setManufacturerDate(value?: google_protobuf_timestamp_pb.Timestamp): Monitor;
730
805
 
731
- hasCatalogBrand(): boolean;
732
- clearCatalogBrand(): void;
733
- getCatalogBrand(): CatalogBrand | undefined;
734
- setCatalogBrand(value?: CatalogBrand): Monitor;
735
-
736
- hasCatalogMonitor(): boolean;
737
- clearCatalogMonitor(): void;
738
- getCatalogMonitor(): CatalogMonitor | undefined;
739
- setCatalogMonitor(value?: CatalogMonitor): Monitor;
740
-
741
806
  hasWindows(): boolean;
742
807
  clearWindows(): void;
743
808
  getWindows(): WindowsRawMonitorInfo | undefined;
@@ -757,11 +822,12 @@ export class Monitor extends jspb.Message {
757
822
 
758
823
  export namespace Monitor {
759
824
  export type AsObject = {
760
- model: string,
825
+ id?: number,
826
+ makeId?: number,
827
+ makeName: string,
828
+ modelName: string,
761
829
  serialNumber?: string,
762
830
  manufacturerDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
763
- catalogBrand?: CatalogBrand.AsObject,
764
- catalogMonitor?: CatalogMonitor.AsObject,
765
831
  windows?: WindowsRawMonitorInfo.AsObject,
766
832
  }
767
833
 
@@ -949,21 +1015,6 @@ export class Software extends jspb.Message {
949
1015
  getCpe(): string | undefined;
950
1016
  setCpe(value: string): Software;
951
1017
 
952
- hasCatalogBrand(): boolean;
953
- clearCatalogBrand(): void;
954
- getCatalogBrand(): CatalogBrand | undefined;
955
- setCatalogBrand(value?: CatalogBrand): Software;
956
-
957
- hasCatalogSoftware(): boolean;
958
- clearCatalogSoftware(): void;
959
- getCatalogSoftware(): CatalogSoftware | undefined;
960
- setCatalogSoftware(value?: CatalogSoftware): Software;
961
-
962
- hasCatalogLatest(): boolean;
963
- clearCatalogLatest(): void;
964
- getCatalogLatest(): CatalogSoftware | undefined;
965
- setCatalogLatest(value?: CatalogSoftware): Software;
966
-
967
1018
  hasRaw(): boolean;
968
1019
  clearRaw(): void;
969
1020
  getRaw(): RawSoftware | undefined;
@@ -1008,9 +1059,6 @@ export namespace Software {
1008
1059
  arch?: string,
1009
1060
  lang?: string,
1010
1061
  cpe?: string,
1011
- catalogBrand?: CatalogBrand.AsObject,
1012
- catalogSoftware?: CatalogSoftware.AsObject,
1013
- catalogLatest?: CatalogSoftware.AsObject,
1014
1062
  raw?: RawSoftware.AsObject,
1015
1063
  rawHash?: string,
1016
1064
  nreHash?: string,