@lansweeper/blocking-rules-grpc 0.0.4 → 0.0.6

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.
@@ -9,6 +9,7 @@ import * as blocking_rules_pb from "./blocking_rules_pb";
9
9
 
10
10
  interface IBlockingRulesServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
11
  getBlockingRules: IBlockingRulesServiceService_IGetBlockingRules;
12
+ getBlockingRulesByInstall: IBlockingRulesServiceService_IGetBlockingRulesByInstall;
12
13
  setBlockingRule: IBlockingRulesServiceService_ISetBlockingRule;
13
14
  deleteBlockingRule: IBlockingRulesServiceService_IDeleteBlockingRule;
14
15
  }
@@ -22,6 +23,15 @@ interface IBlockingRulesServiceService_IGetBlockingRules extends grpc.MethodDefi
22
23
  responseSerialize: grpc.serialize<blocking_rules_pb.GetBlockingRulesResponse>;
23
24
  responseDeserialize: grpc.deserialize<blocking_rules_pb.GetBlockingRulesResponse>;
24
25
  }
26
+ interface IBlockingRulesServiceService_IGetBlockingRulesByInstall extends grpc.MethodDefinition<blocking_rules_pb.GetBlockingRulesByInstallRequest, blocking_rules_pb.GetBlockingRulesByInstallResponse> {
27
+ path: "/lansweeper.blockingrules.v1.BlockingRulesService/GetBlockingRulesByInstall";
28
+ requestStream: false;
29
+ responseStream: false;
30
+ requestSerialize: grpc.serialize<blocking_rules_pb.GetBlockingRulesByInstallRequest>;
31
+ requestDeserialize: grpc.deserialize<blocking_rules_pb.GetBlockingRulesByInstallRequest>;
32
+ responseSerialize: grpc.serialize<blocking_rules_pb.GetBlockingRulesByInstallResponse>;
33
+ responseDeserialize: grpc.deserialize<blocking_rules_pb.GetBlockingRulesByInstallResponse>;
34
+ }
25
35
  interface IBlockingRulesServiceService_ISetBlockingRule extends grpc.MethodDefinition<blocking_rules_pb.SetBlockingRuleRequest, blocking_rules_pb.SetBlockingRuleResponse> {
26
36
  path: "/lansweeper.blockingrules.v1.BlockingRulesService/SetBlockingRule";
27
37
  requestStream: false;
@@ -45,6 +55,7 @@ export const BlockingRulesServiceService: IBlockingRulesServiceService;
45
55
 
46
56
  export interface IBlockingRulesServiceServer extends grpc.UntypedServiceImplementation {
47
57
  getBlockingRules: grpc.handleUnaryCall<blocking_rules_pb.GetBlockingRulesRequest, blocking_rules_pb.GetBlockingRulesResponse>;
58
+ getBlockingRulesByInstall: grpc.handleUnaryCall<blocking_rules_pb.GetBlockingRulesByInstallRequest, blocking_rules_pb.GetBlockingRulesByInstallResponse>;
48
59
  setBlockingRule: grpc.handleUnaryCall<blocking_rules_pb.SetBlockingRuleRequest, blocking_rules_pb.SetBlockingRuleResponse>;
49
60
  deleteBlockingRule: grpc.handleUnaryCall<blocking_rules_pb.DeleteBlockingRuleRequest, blocking_rules_pb.DeleteBlockingRuleResponse>;
50
61
  }
@@ -53,6 +64,9 @@ export interface IBlockingRulesServiceClient {
53
64
  getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
54
65
  getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
55
66
  getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
67
+ getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
68
+ getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
69
+ getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
56
70
  setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
57
71
  setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
58
72
  setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
@@ -66,6 +80,9 @@ export class BlockingRulesServiceClient extends grpc.Client implements IBlocking
66
80
  public getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
67
81
  public getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
68
82
  public getBlockingRules(request: blocking_rules_pb.GetBlockingRulesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesResponse) => void): grpc.ClientUnaryCall;
83
+ public getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
84
+ public getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
85
+ public getBlockingRulesByInstall(request: blocking_rules_pb.GetBlockingRulesByInstallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.GetBlockingRulesByInstallResponse) => void): grpc.ClientUnaryCall;
69
86
  public setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
70
87
  public setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
71
88
  public setBlockingRule(request: blocking_rules_pb.SetBlockingRuleRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blocking_rules_pb.SetBlockingRuleResponse) => void): grpc.ClientUnaryCall;
@@ -26,6 +26,28 @@ function deserialize_lansweeper_blockingrules_v1_DeleteBlockingRuleResponse(buff
26
26
  return blocking_rules_pb.DeleteBlockingRuleResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
27
  }
28
28
 
29
+ function serialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallRequest(arg) {
30
+ if (!(arg instanceof blocking_rules_pb.GetBlockingRulesByInstallRequest)) {
31
+ throw new Error('Expected argument of type lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallRequest(buffer_arg) {
37
+ return blocking_rules_pb.GetBlockingRulesByInstallRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallResponse(arg) {
41
+ if (!(arg instanceof blocking_rules_pb.GetBlockingRulesByInstallResponse)) {
42
+ throw new Error('Expected argument of type lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallResponse(buffer_arg) {
48
+ return blocking_rules_pb.GetBlockingRulesByInstallResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
29
51
  function serialize_lansweeper_blockingrules_v1_GetBlockingRulesRequest(arg) {
30
52
  if (!(arg instanceof blocking_rules_pb.GetBlockingRulesRequest)) {
31
53
  throw new Error('Expected argument of type lansweeper.blockingrules.v1.GetBlockingRulesRequest');
@@ -83,6 +105,17 @@ var BlockingRulesServiceService = exports.BlockingRulesServiceService = {
83
105
  responseSerialize: serialize_lansweeper_blockingrules_v1_GetBlockingRulesResponse,
84
106
  responseDeserialize: deserialize_lansweeper_blockingrules_v1_GetBlockingRulesResponse,
85
107
  },
108
+ getBlockingRulesByInstall: {
109
+ path: '/lansweeper.blockingrules.v1.BlockingRulesService/GetBlockingRulesByInstall',
110
+ requestStream: false,
111
+ responseStream: false,
112
+ requestType: blocking_rules_pb.GetBlockingRulesByInstallRequest,
113
+ responseType: blocking_rules_pb.GetBlockingRulesByInstallResponse,
114
+ requestSerialize: serialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallRequest,
115
+ requestDeserialize: deserialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallRequest,
116
+ responseSerialize: serialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallResponse,
117
+ responseDeserialize: deserialize_lansweeper_blockingrules_v1_GetBlockingRulesByInstallResponse,
118
+ },
86
119
  setBlockingRule: {
87
120
  path: '/lansweeper.blockingrules.v1.BlockingRulesService/SetBlockingRule',
88
121
  requestStream: false,
@@ -6,6 +6,37 @@
6
6
 
7
7
  import * as jspb from "google-protobuf";
8
8
 
9
+ export class NullableString extends jspb.Message {
10
+
11
+ hasData(): boolean;
12
+ clearData(): void;
13
+ getData(): string;
14
+ setData(value: string): NullableString;
15
+
16
+ getKindCase(): NullableString.KindCase;
17
+
18
+ serializeBinary(): Uint8Array;
19
+ toObject(includeInstance?: boolean): NullableString.AsObject;
20
+ static toObject(includeInstance: boolean, msg: NullableString): NullableString.AsObject;
21
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
22
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
23
+ static serializeBinaryToWriter(message: NullableString, writer: jspb.BinaryWriter): void;
24
+ static deserializeBinary(bytes: Uint8Array): NullableString;
25
+ static deserializeBinaryFromReader(message: NullableString, reader: jspb.BinaryReader): NullableString;
26
+ }
27
+
28
+ export namespace NullableString {
29
+ export type AsObject = {
30
+ data: string,
31
+ }
32
+
33
+ export enum KindCase {
34
+ KIND_NOT_SET = 0,
35
+ DATA = 1,
36
+ }
37
+
38
+ }
39
+
9
40
  export class BlockingRule extends jspb.Message {
10
41
  getInstallKey(): string;
11
42
  setInstallKey(value: string): BlockingRule;
@@ -15,6 +46,8 @@ export class BlockingRule extends jspb.Message {
15
46
  setEntity(value: string): BlockingRule;
16
47
  getCreatedDate(): string;
17
48
  setCreatedDate(value: string): BlockingRule;
49
+ getId(): string;
50
+ setId(value: string): BlockingRule;
18
51
 
19
52
  serializeBinary(): Uint8Array;
20
53
  toObject(includeInstance?: boolean): BlockingRule.AsObject;
@@ -32,6 +65,7 @@ export namespace BlockingRule {
32
65
  siteId: string,
33
66
  entity: string,
34
67
  createdDate: string,
68
+ id: string,
35
69
  }
36
70
  }
37
71
 
@@ -52,6 +86,26 @@ export namespace GetBlockingRulesRequest {
52
86
  }
53
87
  }
54
88
 
89
+ export class GetBlockingRulesByInstallRequest extends jspb.Message {
90
+ getInstallKey(): string;
91
+ setInstallKey(value: string): GetBlockingRulesByInstallRequest;
92
+
93
+ serializeBinary(): Uint8Array;
94
+ toObject(includeInstance?: boolean): GetBlockingRulesByInstallRequest.AsObject;
95
+ static toObject(includeInstance: boolean, msg: GetBlockingRulesByInstallRequest): GetBlockingRulesByInstallRequest.AsObject;
96
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
97
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
98
+ static serializeBinaryToWriter(message: GetBlockingRulesByInstallRequest, writer: jspb.BinaryWriter): void;
99
+ static deserializeBinary(bytes: Uint8Array): GetBlockingRulesByInstallRequest;
100
+ static deserializeBinaryFromReader(message: GetBlockingRulesByInstallRequest, reader: jspb.BinaryReader): GetBlockingRulesByInstallRequest;
101
+ }
102
+
103
+ export namespace GetBlockingRulesByInstallRequest {
104
+ export type AsObject = {
105
+ installKey: string,
106
+ }
107
+ }
108
+
55
109
  export class SetBlockingRuleRequest extends jspb.Message {
56
110
  getSiteId(): string;
57
111
  setSiteId(value: string): SetBlockingRuleRequest;
@@ -79,12 +133,8 @@ export namespace SetBlockingRuleRequest {
79
133
  }
80
134
 
81
135
  export class DeleteBlockingRuleRequest extends jspb.Message {
82
- getSiteId(): string;
83
- setSiteId(value: string): DeleteBlockingRuleRequest;
84
- getInstallKey(): string;
85
- setInstallKey(value: string): DeleteBlockingRuleRequest;
86
- getEntity(): string;
87
- setEntity(value: string): DeleteBlockingRuleRequest;
136
+ getId(): string;
137
+ setId(value: string): DeleteBlockingRuleRequest;
88
138
 
89
139
  serializeBinary(): Uint8Array;
90
140
  toObject(includeInstance?: boolean): DeleteBlockingRuleRequest.AsObject;
@@ -98,9 +148,29 @@ export class DeleteBlockingRuleRequest extends jspb.Message {
98
148
 
99
149
  export namespace DeleteBlockingRuleRequest {
100
150
  export type AsObject = {
101
- siteId: string,
102
- installKey: string,
103
- entity: string,
151
+ id: string,
152
+ }
153
+ }
154
+
155
+ export class GetBlockingRulesByInstallResponse extends jspb.Message {
156
+ clearBlockingRulesList(): void;
157
+ getBlockingRulesList(): Array<BlockingRule>;
158
+ setBlockingRulesList(value: Array<BlockingRule>): GetBlockingRulesByInstallResponse;
159
+ addBlockingRules(value?: BlockingRule, index?: number): BlockingRule;
160
+
161
+ serializeBinary(): Uint8Array;
162
+ toObject(includeInstance?: boolean): GetBlockingRulesByInstallResponse.AsObject;
163
+ static toObject(includeInstance: boolean, msg: GetBlockingRulesByInstallResponse): GetBlockingRulesByInstallResponse.AsObject;
164
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
165
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
166
+ static serializeBinaryToWriter(message: GetBlockingRulesByInstallResponse, writer: jspb.BinaryWriter): void;
167
+ static deserializeBinary(bytes: Uint8Array): GetBlockingRulesByInstallResponse;
168
+ static deserializeBinaryFromReader(message: GetBlockingRulesByInstallResponse, reader: jspb.BinaryReader): GetBlockingRulesByInstallResponse;
169
+ }
170
+
171
+ export namespace GetBlockingRulesByInstallResponse {
172
+ export type AsObject = {
173
+ blockingRulesList: Array<BlockingRule.AsObject>,
104
174
  }
105
175
  }
106
176
 
@@ -135,6 +205,8 @@ export class SetBlockingRuleResponse extends jspb.Message {
135
205
  setEntity(value: string): SetBlockingRuleResponse;
136
206
  getCreatedDate(): string;
137
207
  setCreatedDate(value: string): SetBlockingRuleResponse;
208
+ getId(): string;
209
+ setId(value: string): SetBlockingRuleResponse;
138
210
 
139
211
  serializeBinary(): Uint8Array;
140
212
  toObject(includeInstance?: boolean): SetBlockingRuleResponse.AsObject;
@@ -152,18 +224,16 @@ export namespace SetBlockingRuleResponse {
152
224
  siteId: string,
153
225
  entity: string,
154
226
  createdDate: string,
227
+ id: string,
155
228
  }
156
229
  }
157
230
 
158
231
  export class DeleteBlockingRuleResponse extends jspb.Message {
159
- getSiteId(): string;
160
- setSiteId(value: string): DeleteBlockingRuleResponse;
161
- getInstallKey(): string;
162
- setInstallKey(value: string): DeleteBlockingRuleResponse;
163
- getEntity(): string;
164
- setEntity(value: string): DeleteBlockingRuleResponse;
165
- getDeleted(): boolean;
166
- setDeleted(value: boolean): DeleteBlockingRuleResponse;
232
+
233
+ hasId(): boolean;
234
+ clearId(): void;
235
+ getId(): NullableString | undefined;
236
+ setId(value?: NullableString): DeleteBlockingRuleResponse;
167
237
 
168
238
  serializeBinary(): Uint8Array;
169
239
  toObject(includeInstance?: boolean): DeleteBlockingRuleResponse.AsObject;
@@ -177,9 +247,6 @@ export class DeleteBlockingRuleResponse extends jspb.Message {
177
247
 
178
248
  export namespace DeleteBlockingRuleResponse {
179
249
  export type AsObject = {
180
- siteId: string,
181
- installKey: string,
182
- entity: string,
183
- deleted: boolean,
250
+ id?: NullableString.AsObject,
184
251
  }
185
252
  }