@lansweeper/data-platform-outbound-grpc 0.1.125 → 0.1.127

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.
@@ -107,3 +107,102 @@ export class DataCoreOutboundServiceClient extends grpc.Client implements IDataC
107
107
  public setIpLocationConfig(request: outbound_pb.SetIpLocationConfigRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.SetIpLocationConfigResponse) => void): grpc.ClientUnaryCall;
108
108
  public setIpLocationConfig(request: outbound_pb.SetIpLocationConfigRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.SetIpLocationConfigResponse) => void): grpc.ClientUnaryCall;
109
109
  }
110
+
111
+ interface IDataCoreBackofficeServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
112
+ createEntity: IDataCoreBackofficeServiceService_ICreateEntity;
113
+ getAsset: IDataCoreBackofficeServiceService_IGetAsset;
114
+ updateAsset: IDataCoreBackofficeServiceService_IUpdateAsset;
115
+ deleteAsset: IDataCoreBackofficeServiceService_IDeleteAsset;
116
+ listAssets: IDataCoreBackofficeServiceService_IListAssets;
117
+ }
118
+
119
+ interface IDataCoreBackofficeServiceService_ICreateEntity extends grpc.MethodDefinition<outbound_pb.Entity, outbound_pb.Entity> {
120
+ path: "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/CreateEntity";
121
+ requestStream: false;
122
+ responseStream: false;
123
+ requestSerialize: grpc.serialize<outbound_pb.Entity>;
124
+ requestDeserialize: grpc.deserialize<outbound_pb.Entity>;
125
+ responseSerialize: grpc.serialize<outbound_pb.Entity>;
126
+ responseDeserialize: grpc.deserialize<outbound_pb.Entity>;
127
+ }
128
+ interface IDataCoreBackofficeServiceService_IGetAsset extends grpc.MethodDefinition<outbound_pb.EntityPath, outbound_pb.Entity> {
129
+ path: "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/GetAsset";
130
+ requestStream: false;
131
+ responseStream: false;
132
+ requestSerialize: grpc.serialize<outbound_pb.EntityPath>;
133
+ requestDeserialize: grpc.deserialize<outbound_pb.EntityPath>;
134
+ responseSerialize: grpc.serialize<outbound_pb.Entity>;
135
+ responseDeserialize: grpc.deserialize<outbound_pb.Entity>;
136
+ }
137
+ interface IDataCoreBackofficeServiceService_IUpdateAsset extends grpc.MethodDefinition<outbound_pb.Entity, outbound_pb.Entity> {
138
+ path: "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/UpdateAsset";
139
+ requestStream: false;
140
+ responseStream: false;
141
+ requestSerialize: grpc.serialize<outbound_pb.Entity>;
142
+ requestDeserialize: grpc.deserialize<outbound_pb.Entity>;
143
+ responseSerialize: grpc.serialize<outbound_pb.Entity>;
144
+ responseDeserialize: grpc.deserialize<outbound_pb.Entity>;
145
+ }
146
+ interface IDataCoreBackofficeServiceService_IDeleteAsset extends grpc.MethodDefinition<outbound_pb.EntityPath, outbound_pb.Entity> {
147
+ path: "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/DeleteAsset";
148
+ requestStream: false;
149
+ responseStream: false;
150
+ requestSerialize: grpc.serialize<outbound_pb.EntityPath>;
151
+ requestDeserialize: grpc.deserialize<outbound_pb.EntityPath>;
152
+ responseSerialize: grpc.serialize<outbound_pb.Entity>;
153
+ responseDeserialize: grpc.deserialize<outbound_pb.Entity>;
154
+ }
155
+ interface IDataCoreBackofficeServiceService_IListAssets extends grpc.MethodDefinition<outbound_pb.EntityFilter, outbound_pb.Entity> {
156
+ path: "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/ListAssets";
157
+ requestStream: false;
158
+ responseStream: true;
159
+ requestSerialize: grpc.serialize<outbound_pb.EntityFilter>;
160
+ requestDeserialize: grpc.deserialize<outbound_pb.EntityFilter>;
161
+ responseSerialize: grpc.serialize<outbound_pb.Entity>;
162
+ responseDeserialize: grpc.deserialize<outbound_pb.Entity>;
163
+ }
164
+
165
+ export const DataCoreBackofficeServiceService: IDataCoreBackofficeServiceService;
166
+
167
+ export interface IDataCoreBackofficeServiceServer extends grpc.UntypedServiceImplementation {
168
+ createEntity: grpc.handleUnaryCall<outbound_pb.Entity, outbound_pb.Entity>;
169
+ getAsset: grpc.handleUnaryCall<outbound_pb.EntityPath, outbound_pb.Entity>;
170
+ updateAsset: grpc.handleUnaryCall<outbound_pb.Entity, outbound_pb.Entity>;
171
+ deleteAsset: grpc.handleUnaryCall<outbound_pb.EntityPath, outbound_pb.Entity>;
172
+ listAssets: grpc.handleServerStreamingCall<outbound_pb.EntityFilter, outbound_pb.Entity>;
173
+ }
174
+
175
+ export interface IDataCoreBackofficeServiceClient {
176
+ createEntity(request: outbound_pb.Entity, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
177
+ createEntity(request: outbound_pb.Entity, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
178
+ createEntity(request: outbound_pb.Entity, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
179
+ getAsset(request: outbound_pb.EntityPath, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
180
+ getAsset(request: outbound_pb.EntityPath, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
181
+ getAsset(request: outbound_pb.EntityPath, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
182
+ updateAsset(request: outbound_pb.Entity, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
183
+ updateAsset(request: outbound_pb.Entity, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
184
+ updateAsset(request: outbound_pb.Entity, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
185
+ deleteAsset(request: outbound_pb.EntityPath, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
186
+ deleteAsset(request: outbound_pb.EntityPath, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
187
+ deleteAsset(request: outbound_pb.EntityPath, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
188
+ listAssets(request: outbound_pb.EntityFilter, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.Entity>;
189
+ listAssets(request: outbound_pb.EntityFilter, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.Entity>;
190
+ }
191
+
192
+ export class DataCoreBackofficeServiceClient extends grpc.Client implements IDataCoreBackofficeServiceClient {
193
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
194
+ public createEntity(request: outbound_pb.Entity, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
195
+ public createEntity(request: outbound_pb.Entity, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
196
+ public createEntity(request: outbound_pb.Entity, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
197
+ public getAsset(request: outbound_pb.EntityPath, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
198
+ public getAsset(request: outbound_pb.EntityPath, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
199
+ public getAsset(request: outbound_pb.EntityPath, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
200
+ public updateAsset(request: outbound_pb.Entity, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
201
+ public updateAsset(request: outbound_pb.Entity, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
202
+ public updateAsset(request: outbound_pb.Entity, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
203
+ public deleteAsset(request: outbound_pb.EntityPath, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
204
+ public deleteAsset(request: outbound_pb.EntityPath, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
205
+ public deleteAsset(request: outbound_pb.EntityPath, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.Entity) => void): grpc.ClientUnaryCall;
206
+ public listAssets(request: outbound_pb.EntityFilter, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.Entity>;
207
+ public listAssets(request: outbound_pb.EntityFilter, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.Entity>;
208
+ }
@@ -35,6 +35,39 @@ function deserialize_com_lansweeper_dp_outbound_v1_CatalogLookupResponse(buffer_
35
35
  return outbound_pb.CatalogLookupResponse.deserializeBinary(new Uint8Array(buffer_arg));
36
36
  }
37
37
 
38
+ function serialize_com_lansweeper_dp_outbound_v1_Entity(arg) {
39
+ if (!(arg instanceof outbound_pb.Entity)) {
40
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.Entity');
41
+ }
42
+ return Buffer.from(arg.serializeBinary());
43
+ }
44
+
45
+ function deserialize_com_lansweeper_dp_outbound_v1_Entity(buffer_arg) {
46
+ return outbound_pb.Entity.deserializeBinary(new Uint8Array(buffer_arg));
47
+ }
48
+
49
+ function serialize_com_lansweeper_dp_outbound_v1_EntityFilter(arg) {
50
+ if (!(arg instanceof outbound_pb.EntityFilter)) {
51
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.EntityFilter');
52
+ }
53
+ return Buffer.from(arg.serializeBinary());
54
+ }
55
+
56
+ function deserialize_com_lansweeper_dp_outbound_v1_EntityFilter(buffer_arg) {
57
+ return outbound_pb.EntityFilter.deserializeBinary(new Uint8Array(buffer_arg));
58
+ }
59
+
60
+ function serialize_com_lansweeper_dp_outbound_v1_EntityPath(arg) {
61
+ if (!(arg instanceof outbound_pb.EntityPath)) {
62
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.EntityPath');
63
+ }
64
+ return Buffer.from(arg.serializeBinary());
65
+ }
66
+
67
+ function deserialize_com_lansweeper_dp_outbound_v1_EntityPath(buffer_arg) {
68
+ return outbound_pb.EntityPath.deserializeBinary(new Uint8Array(buffer_arg));
69
+ }
70
+
38
71
  function serialize_com_lansweeper_dp_outbound_v1_GetEntityRequest(arg) {
39
72
  if (!(arg instanceof outbound_pb.GetEntityRequest)) {
40
73
  throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.GetEntityRequest');
@@ -206,3 +239,66 @@ setIpLocationConfig: {
206
239
  };
207
240
 
208
241
  exports.DataCoreOutboundServiceClient = grpc.makeGenericClientConstructor(DataCoreOutboundServiceService);
242
+ // *
243
+ // GRPC Service for Backoffice
244
+ var DataCoreBackofficeServiceService = exports.DataCoreBackofficeServiceService = {
245
+ // CRUD Entity
246
+ createEntity: {
247
+ path: '/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/CreateEntity',
248
+ requestStream: false,
249
+ responseStream: false,
250
+ requestType: outbound_pb.Entity,
251
+ responseType: outbound_pb.Entity,
252
+ requestSerialize: serialize_com_lansweeper_dp_outbound_v1_Entity,
253
+ requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_Entity,
254
+ responseSerialize: serialize_com_lansweeper_dp_outbound_v1_Entity,
255
+ responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_Entity,
256
+ },
257
+ getAsset: {
258
+ path: '/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/GetAsset',
259
+ requestStream: false,
260
+ responseStream: false,
261
+ requestType: outbound_pb.EntityPath,
262
+ responseType: outbound_pb.Entity,
263
+ requestSerialize: serialize_com_lansweeper_dp_outbound_v1_EntityPath,
264
+ requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_EntityPath,
265
+ responseSerialize: serialize_com_lansweeper_dp_outbound_v1_Entity,
266
+ responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_Entity,
267
+ },
268
+ updateAsset: {
269
+ path: '/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/UpdateAsset',
270
+ requestStream: false,
271
+ responseStream: false,
272
+ requestType: outbound_pb.Entity,
273
+ responseType: outbound_pb.Entity,
274
+ requestSerialize: serialize_com_lansweeper_dp_outbound_v1_Entity,
275
+ requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_Entity,
276
+ responseSerialize: serialize_com_lansweeper_dp_outbound_v1_Entity,
277
+ responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_Entity,
278
+ },
279
+ deleteAsset: {
280
+ path: '/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/DeleteAsset',
281
+ requestStream: false,
282
+ responseStream: false,
283
+ requestType: outbound_pb.EntityPath,
284
+ responseType: outbound_pb.Entity,
285
+ requestSerialize: serialize_com_lansweeper_dp_outbound_v1_EntityPath,
286
+ requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_EntityPath,
287
+ responseSerialize: serialize_com_lansweeper_dp_outbound_v1_Entity,
288
+ responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_Entity,
289
+ },
290
+ // Just take site_id from entity path
291
+ listAssets: {
292
+ path: '/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/ListAssets',
293
+ requestStream: false,
294
+ responseStream: true,
295
+ requestType: outbound_pb.EntityFilter,
296
+ responseType: outbound_pb.Entity,
297
+ requestSerialize: serialize_com_lansweeper_dp_outbound_v1_EntityFilter,
298
+ requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_EntityFilter,
299
+ responseSerialize: serialize_com_lansweeper_dp_outbound_v1_Entity,
300
+ responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_Entity,
301
+ },
302
+ };
303
+
304
+ exports.DataCoreBackofficeServiceClient = grpc.makeGenericClientConstructor(DataCoreBackofficeServiceService);
@@ -8,6 +8,55 @@ import * as jspb from "google-protobuf";
8
8
  import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
9
9
  import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb";
10
10
 
11
+ export class EntityFilter extends jspb.Message {
12
+ getSiteId(): string;
13
+ setSiteId(value: string): EntityFilter;
14
+
15
+ hasFullEntity(): boolean;
16
+ clearFullEntity(): void;
17
+ getFullEntity(): boolean | undefined;
18
+ setFullEntity(value: boolean): EntityFilter;
19
+
20
+ hasEntryState(): boolean;
21
+ clearEntryState(): void;
22
+ getEntryState(): EntityFilter.EntryState | undefined;
23
+ setEntryState(value: EntityFilter.EntryState): EntityFilter;
24
+
25
+ hasVirtualState(): boolean;
26
+ clearVirtualState(): void;
27
+ getVirtualState(): EntityFilter.VirtualState | undefined;
28
+ setVirtualState(value: EntityFilter.VirtualState): EntityFilter;
29
+
30
+ serializeBinary(): Uint8Array;
31
+ toObject(includeInstance?: boolean): EntityFilter.AsObject;
32
+ static toObject(includeInstance: boolean, msg: EntityFilter): EntityFilter.AsObject;
33
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
34
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
35
+ static serializeBinaryToWriter(message: EntityFilter, writer: jspb.BinaryWriter): void;
36
+ static deserializeBinary(bytes: Uint8Array): EntityFilter;
37
+ static deserializeBinaryFromReader(message: EntityFilter, reader: jspb.BinaryReader): EntityFilter;
38
+ }
39
+
40
+ export namespace EntityFilter {
41
+ export type AsObject = {
42
+ siteId: string,
43
+ fullEntity?: boolean,
44
+ entryState?: EntityFilter.EntryState,
45
+ virtualState?: EntityFilter.VirtualState,
46
+ }
47
+
48
+ export enum EntryState {
49
+ GOLDEN = 0,
50
+ ALIAS = 1,
51
+ }
52
+
53
+ export enum VirtualState {
54
+ REAL = 0,
55
+ VIRTUAL = 1,
56
+ }
57
+
58
+ }
59
+
11
60
  export class GetEntityRequest extends jspb.Message {
12
61
 
13
62
  hasEntityPath(): boolean;
@@ -1149,11 +1198,10 @@ export class Relation extends jspb.Message {
1149
1198
  clearFrom(): void;
1150
1199
  getFrom(): EntityPath | undefined;
1151
1200
  setFrom(value?: EntityPath): Relation;
1152
-
1153
- hasTo(): boolean;
1154
- clearTo(): void;
1155
- getTo(): EntityPath | undefined;
1156
- setTo(value?: EntityPath): Relation;
1201
+ clearToList(): void;
1202
+ getToList(): Array<EntityPath>;
1203
+ setToList(value: Array<EntityPath>): Relation;
1204
+ addTo(value?: EntityPath, index?: number): EntityPath;
1157
1205
 
1158
1206
  hasStart(): boolean;
1159
1207
  clearStart(): void;
@@ -1184,7 +1232,7 @@ export class Relation extends jspb.Message {
1184
1232
  export namespace Relation {
1185
1233
  export type AsObject = {
1186
1234
  from?: EntityPath.AsObject,
1187
- to?: EntityPath.AsObject,
1235
+ toList: Array<EntityPath.AsObject>,
1188
1236
  start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
1189
1237
  end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
1190
1238
  name: string,