@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.
- package/gen-proto/blocking_rules_grpc_pb.d.ts +17 -0
- package/gen-proto/blocking_rules_grpc_pb.js +33 -0
- package/gen-proto/blocking_rules_pb.d.ts +88 -21
- package/gen-proto/blocking_rules_pb.js +602 -141
- package/gen-proto/image.json +1 -1
- package/package.json +2 -2
- package/proto/blocking_rules.proto +19 -7
package/gen-proto/image.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":[{"name":"proto/blocking_rules.proto","package":"lansweeper.blockingrules.v1","messageType":[{"name":"
|
|
1
|
+
{"file":[{"name":"proto/blocking_rules.proto","package":"lansweeper.blockingrules.v1","messageType":[{"name":"NullableString","field":[{"name":"data","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","oneofIndex":0,"jsonName":"data"}],"oneofDecl":[{"name":"kind"}]},{"name":"BlockingRule","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"entity","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"},{"name":"created_date","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"createdDate"},{"name":"id","number":5,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"}]},{"name":"GetBlockingRulesRequest"},{"name":"GetBlockingRulesByInstallRequest","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"SetBlockingRuleRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"entity","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"}]},{"name":"DeleteBlockingRuleRequest","field":[{"name":"id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"}]},{"name":"GetBlockingRulesByInstallResponse","field":[{"name":"blocking_rules","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.blockingrules.v1.BlockingRule","jsonName":"blockingRules"}]},{"name":"GetBlockingRulesResponse","field":[{"name":"blocking_rules","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.blockingrules.v1.BlockingRule","jsonName":"blockingRules"}]},{"name":"SetBlockingRuleResponse","field":[{"name":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"entity","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"},{"name":"created_date","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"createdDate"},{"name":"id","number":5,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"}]},{"name":"DeleteBlockingRuleResponse","field":[{"name":"id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.blockingrules.v1.NullableString","jsonName":"id"}]}],"service":[{"name":"BlockingRulesService","method":[{"name":"GetBlockingRules","inputType":".lansweeper.blockingrules.v1.GetBlockingRulesRequest","outputType":".lansweeper.blockingrules.v1.GetBlockingRulesResponse","options":{}},{"name":"GetBlockingRulesByInstall","inputType":".lansweeper.blockingrules.v1.GetBlockingRulesByInstallRequest","outputType":".lansweeper.blockingrules.v1.GetBlockingRulesByInstallResponse","options":{}},{"name":"SetBlockingRule","inputType":".lansweeper.blockingrules.v1.SetBlockingRuleRequest","outputType":".lansweeper.blockingrules.v1.SetBlockingRuleResponse","options":{}},{"name":"DeleteBlockingRule","inputType":".lansweeper.blockingrules.v1.DeleteBlockingRuleRequest","outputType":".lansweeper.blockingrules.v1.DeleteBlockingRuleResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,61,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,36]},{"path":[4,0],"span":[4,0,8,1]},{"path":[4,0,1],"span":[4,8,22]},{"path":[4,0,8,0],"span":[5,2,7,3]},{"path":[4,0,8,0,1],"span":[5,8,12]},{"path":[4,0,2,0],"span":[6,4,20]},{"path":[4,0,2,0,5],"span":[6,4,10]},{"path":[4,0,2,0,1],"span":[6,11,15]},{"path":[4,0,2,0,3],"span":[6,18,19]},{"path":[4,1],"span":[10,0,16,1]},{"path":[4,1,1],"span":[10,8,20]},{"path":[4,1,2,0],"span":[11,2,25]},{"path":[4,1,2,0,5],"span":[11,2,8]},{"path":[4,1,2,0,1],"span":[11,9,20]},{"path":[4,1,2,0,3],"span":[11,23,24]},{"path":[4,1,2,1],"span":[12,2,21]},{"path":[4,1,2,1,5],"span":[12,2,8]},{"path":[4,1,2,1,1],"span":[12,9,16]},{"path":[4,1,2,1,3],"span":[12,19,20]},{"path":[4,1,2,2],"span":[13,2,20]},{"path":[4,1,2,2,5],"span":[13,2,8]},{"path":[4,1,2,2,1],"span":[13,9,15]},{"path":[4,1,2,2,3],"span":[13,18,19]},{"path":[4,1,2,3],"span":[14,2,26]},{"path":[4,1,2,3,5],"span":[14,2,8]},{"path":[4,1,2,3,1],"span":[14,9,21]},{"path":[4,1,2,3,3],"span":[14,24,25]},{"path":[4,1,2,4],"span":[15,2,16]},{"path":[4,1,2,4,5],"span":[15,2,8]},{"path":[4,1,2,4,1],"span":[15,9,11]},{"path":[4,1,2,4,3],"span":[15,14,15]},{"path":[4,2],"span":[18,0,20,1]},{"path":[4,2,1],"span":[18,8,31]},{"path":[4,3],"span":[22,0,24,1]},{"path":[4,3,1],"span":[22,8,40]},{"path":[4,3,2,0],"span":[23,2,25]},{"path":[4,3,2,0,5],"span":[23,2,8]},{"path":[4,3,2,0,1],"span":[23,9,20]},{"path":[4,3,2,0,3],"span":[23,23,24]},{"path":[4,4],"span":[26,0,30,1]},{"path":[4,4,1],"span":[26,8,30]},{"path":[4,4,2,0],"span":[27,2,21]},{"path":[4,4,2,0,5],"span":[27,2,8]},{"path":[4,4,2,0,1],"span":[27,9,16]},{"path":[4,4,2,0,3],"span":[27,19,20]},{"path":[4,4,2,1],"span":[28,2,25]},{"path":[4,4,2,1,5],"span":[28,2,8]},{"path":[4,4,2,1,1],"span":[28,9,20]},{"path":[4,4,2,1,3],"span":[28,23,24]},{"path":[4,4,2,2],"span":[29,2,20]},{"path":[4,4,2,2,5],"span":[29,2,8]},{"path":[4,4,2,2,1],"span":[29,9,15]},{"path":[4,4,2,2,3],"span":[29,18,19]},{"path":[4,5],"span":[32,0,34,1]},{"path":[4,5,1],"span":[32,8,33]},{"path":[4,5,2,0],"span":[33,2,16]},{"path":[4,5,2,0,5],"span":[33,2,8]},{"path":[4,5,2,0,1],"span":[33,9,11]},{"path":[4,5,2,0,3],"span":[33,14,15]},{"path":[4,6],"span":[36,0,38,1]},{"path":[4,6,1],"span":[36,8,41]},{"path":[4,6,2,0],"span":[37,2,43]},{"path":[4,6,2,0,4],"span":[37,2,10]},{"path":[4,6,2,0,6],"span":[37,11,23]},{"path":[4,6,2,0,1],"span":[37,24,38]},{"path":[4,6,2,0,3],"span":[37,41,42]},{"path":[4,7],"span":[40,0,42,1]},{"path":[4,7,1],"span":[40,8,32]},{"path":[4,7,2,0],"span":[41,2,43]},{"path":[4,7,2,0,4],"span":[41,2,10]},{"path":[4,7,2,0,6],"span":[41,11,23]},{"path":[4,7,2,0,1],"span":[41,24,38]},{"path":[4,7,2,0,3],"span":[41,41,42]},{"path":[4,8],"span":[44,0,50,1]},{"path":[4,8,1],"span":[44,8,31]},{"path":[4,8,2,0],"span":[45,2,25]},{"path":[4,8,2,0,5],"span":[45,2,8]},{"path":[4,8,2,0,1],"span":[45,9,20]},{"path":[4,8,2,0,3],"span":[45,23,24]},{"path":[4,8,2,1],"span":[46,2,21]},{"path":[4,8,2,1,5],"span":[46,2,8]},{"path":[4,8,2,1,1],"span":[46,9,16]},{"path":[4,8,2,1,3],"span":[46,19,20]},{"path":[4,8,2,2],"span":[47,2,20]},{"path":[4,8,2,2,5],"span":[47,2,8]},{"path":[4,8,2,2,1],"span":[47,9,15]},{"path":[4,8,2,2,3],"span":[47,18,19]},{"path":[4,8,2,3],"span":[48,2,26]},{"path":[4,8,2,3,5],"span":[48,2,8]},{"path":[4,8,2,3,1],"span":[48,9,21]},{"path":[4,8,2,3,3],"span":[48,24,25]},{"path":[4,8,2,4],"span":[49,2,16]},{"path":[4,8,2,4,5],"span":[49,2,8]},{"path":[4,8,2,4,1],"span":[49,9,11]},{"path":[4,8,2,4,3],"span":[49,14,15]},{"path":[4,9],"span":[52,0,54,1]},{"path":[4,9,1],"span":[52,8,34]},{"path":[4,9,2,0],"span":[53,8,30]},{"path":[4,9,2,0,6],"span":[53,8,22]},{"path":[4,9,2,0,1],"span":[53,23,25]},{"path":[4,9,2,0,3],"span":[53,28,29]},{"path":[6,0],"span":[56,0,61,1]},{"path":[6,0,1],"span":[56,8,28]},{"path":[6,0,2,0],"span":[57,2,85]},{"path":[6,0,2,0,1],"span":[57,6,22]},{"path":[6,0,2,0,2],"span":[57,23,46]},{"path":[6,0,2,0,3],"span":[57,57,81]},{"path":[6,0,2,1],"span":[58,2,112]},{"path":[6,0,2,1,1],"span":[58,6,31]},{"path":[6,0,2,1,2],"span":[58,32,64]},{"path":[6,0,2,1,3],"span":[58,75,108]},{"path":[6,0,2,2],"span":[59,2,82]},{"path":[6,0,2,2,1],"span":[59,6,21]},{"path":[6,0,2,2,2],"span":[59,22,44]},{"path":[6,0,2,2,3],"span":[59,55,78]},{"path":[6,0,2,3],"span":[60,2,91]},{"path":[6,0,2,3,1],"span":[60,6,24]},{"path":[6,0,2,3,2],"span":[60,25,50]},{"path":[6,0,2,3,3],"span":[60,61,87]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/blocking-rules-grpc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "blocking rules grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/google-protobuf": "^3.15.5"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "c36b9e4a55177683c7421f6928f306581e8ad7fb"
|
|
20
20
|
}
|
|
@@ -2,17 +2,28 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package lansweeper.blockingrules.v1;
|
|
4
4
|
|
|
5
|
+
message NullableString {
|
|
6
|
+
oneof kind {
|
|
7
|
+
string data = 1;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
message BlockingRule {
|
|
6
12
|
string install_key = 1;
|
|
7
13
|
string site_id = 2;
|
|
8
14
|
string entity = 3;
|
|
9
15
|
string created_date = 4;
|
|
16
|
+
string id = 5;
|
|
10
17
|
}
|
|
11
18
|
|
|
12
19
|
message GetBlockingRulesRequest {
|
|
13
20
|
|
|
14
21
|
}
|
|
15
22
|
|
|
23
|
+
message GetBlockingRulesByInstallRequest {
|
|
24
|
+
string install_key = 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
16
27
|
message SetBlockingRuleRequest {
|
|
17
28
|
string site_id = 1;
|
|
18
29
|
string install_key = 2;
|
|
@@ -20,9 +31,11 @@ message SetBlockingRuleRequest {
|
|
|
20
31
|
}
|
|
21
32
|
|
|
22
33
|
message DeleteBlockingRuleRequest {
|
|
23
|
-
string
|
|
24
|
-
|
|
25
|
-
|
|
34
|
+
string id = 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message GetBlockingRulesByInstallResponse {
|
|
38
|
+
repeated BlockingRule blocking_rules = 1;
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
message GetBlockingRulesResponse {
|
|
@@ -34,17 +47,16 @@ message SetBlockingRuleResponse {
|
|
|
34
47
|
string site_id = 2;
|
|
35
48
|
string entity = 3;
|
|
36
49
|
string created_date = 4;
|
|
50
|
+
string id = 5;
|
|
37
51
|
}
|
|
38
52
|
|
|
39
53
|
message DeleteBlockingRuleResponse {
|
|
40
|
-
|
|
41
|
-
string install_key = 2;
|
|
42
|
-
string entity = 3;
|
|
43
|
-
bool deleted = 4;
|
|
54
|
+
NullableString id = 1;
|
|
44
55
|
}
|
|
45
56
|
|
|
46
57
|
service BlockingRulesService {
|
|
47
58
|
rpc GetBlockingRules(GetBlockingRulesRequest) returns (GetBlockingRulesResponse) {}
|
|
59
|
+
rpc GetBlockingRulesByInstall(GetBlockingRulesByInstallRequest) returns (GetBlockingRulesByInstallResponse) {}
|
|
48
60
|
rpc SetBlockingRule(SetBlockingRuleRequest) returns (SetBlockingRuleResponse) {}
|
|
49
61
|
rpc DeleteBlockingRule(DeleteBlockingRuleRequest) returns (DeleteBlockingRuleResponse) {}
|
|
50
62
|
}
|