@lansweeper/blocking-rules-grpc 0.0.2
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 +75 -0
- package/gen-proto/blocking_rules_grpc_pb.js +110 -0
- package/gen-proto/blocking_rules_pb.d.ts +201 -0
- package/gen-proto/blocking_rules_pb.js +1586 -0
- package/gen-proto/image.json +1 -0
- package/gen-proto/index.d.ts +2 -0
- package/gen-proto/index.js +3 -0
- package/package.json +20 -0
- package/proto/blocking_rules.proto +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":[{"name":"proto/blocking_rules.proto","package":"lansweeper.blockingrules.v1","messageType":[{"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":"GetBlockingRulesRequest"},{"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":"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":"BlockingRuleResponse","field":[{"name":"blocking_rule","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.blockingrules.v1.BlockingRule","jsonName":"blockingRule"}]},{"name":"GetBlockingRulesResponse","field":[{"name":"blocking_rules","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.blockingrules.v1.BlockingRuleResponse","jsonName":"blockingRules"}]},{"name":"SetBlockingRuleResponse","field":[{"name":"blocking_rules","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.blockingrules.v1.BlockingRuleResponse","jsonName":"blockingRules"}]},{"name":"DeleteBlockingRuleResponse","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":"deleted","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"deleted"}]}],"service":[{"name":"BlockingRulesService","method":[{"name":"GetBlockingRules","inputType":".lansweeper.blockingrules.v1.GetBlockingRulesRequest","outputType":".lansweeper.blockingrules.v1.GetBlockingRulesResponse","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,50,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,36]},{"path":[4,0],"span":[4,0,9,1]},{"path":[4,0,1],"span":[4,8,20]},{"path":[4,0,2,0],"span":[5,2,25]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,20]},{"path":[4,0,2,0,3],"span":[5,23,24]},{"path":[4,0,2,1],"span":[6,2,21]},{"path":[4,0,2,1,5],"span":[6,2,8]},{"path":[4,0,2,1,1],"span":[6,9,16]},{"path":[4,0,2,1,3],"span":[6,19,20]},{"path":[4,0,2,2],"span":[7,2,20]},{"path":[4,0,2,2,5],"span":[7,2,8]},{"path":[4,0,2,2,1],"span":[7,9,15]},{"path":[4,0,2,2,3],"span":[7,18,19]},{"path":[4,0,2,3],"span":[8,2,26]},{"path":[4,0,2,3,5],"span":[8,2,8]},{"path":[4,0,2,3,1],"span":[8,9,21]},{"path":[4,0,2,3,3],"span":[8,24,25]},{"path":[4,1],"span":[11,0,13,1]},{"path":[4,1,1],"span":[11,8,31]},{"path":[4,2],"span":[15,0,19,1]},{"path":[4,2,1],"span":[15,8,30]},{"path":[4,2,2,0],"span":[16,2,21]},{"path":[4,2,2,0,5],"span":[16,2,8]},{"path":[4,2,2,0,1],"span":[16,9,16]},{"path":[4,2,2,0,3],"span":[16,19,20]},{"path":[4,2,2,1],"span":[17,2,25]},{"path":[4,2,2,1,5],"span":[17,2,8]},{"path":[4,2,2,1,1],"span":[17,9,20]},{"path":[4,2,2,1,3],"span":[17,23,24]},{"path":[4,2,2,2],"span":[18,2,20]},{"path":[4,2,2,2,5],"span":[18,2,8]},{"path":[4,2,2,2,1],"span":[18,9,15]},{"path":[4,2,2,2,3],"span":[18,18,19]},{"path":[4,3],"span":[21,0,25,1]},{"path":[4,3,1],"span":[21,8,33]},{"path":[4,3,2,0],"span":[22,2,21]},{"path":[4,3,2,0,5],"span":[22,2,8]},{"path":[4,3,2,0,1],"span":[22,9,16]},{"path":[4,3,2,0,3],"span":[22,19,20]},{"path":[4,3,2,1],"span":[23,2,25]},{"path":[4,3,2,1,5],"span":[23,2,8]},{"path":[4,3,2,1,1],"span":[23,9,20]},{"path":[4,3,2,1,3],"span":[23,23,24]},{"path":[4,3,2,2],"span":[24,2,20]},{"path":[4,3,2,2,5],"span":[24,2,8]},{"path":[4,3,2,2,1],"span":[24,9,15]},{"path":[4,3,2,2,3],"span":[24,18,19]},{"path":[4,4],"span":[27,0,29,1]},{"path":[4,4,1],"span":[27,8,28]},{"path":[4,4,2,0],"span":[28,2,33]},{"path":[4,4,2,0,6],"span":[28,2,14]},{"path":[4,4,2,0,1],"span":[28,15,28]},{"path":[4,4,2,0,3],"span":[28,31,32]},{"path":[4,5],"span":[31,0,33,1]},{"path":[4,5,1],"span":[31,8,32]},{"path":[4,5,2,0],"span":[32,2,51]},{"path":[4,5,2,0,4],"span":[32,2,10]},{"path":[4,5,2,0,6],"span":[32,11,31]},{"path":[4,5,2,0,1],"span":[32,32,46]},{"path":[4,5,2,0,3],"span":[32,49,50]},{"path":[4,6],"span":[35,0,37,1]},{"path":[4,6,1],"span":[35,8,31]},{"path":[4,6,2,0],"span":[36,2,51]},{"path":[4,6,2,0,4],"span":[36,2,10]},{"path":[4,6,2,0,6],"span":[36,11,31]},{"path":[4,6,2,0,1],"span":[36,32,46]},{"path":[4,6,2,0,3],"span":[36,49,50]},{"path":[4,7],"span":[39,0,44,1]},{"path":[4,7,1],"span":[39,8,34]},{"path":[4,7,2,0],"span":[40,2,21]},{"path":[4,7,2,0,5],"span":[40,2,8]},{"path":[4,7,2,0,1],"span":[40,9,16]},{"path":[4,7,2,0,3],"span":[40,19,20]},{"path":[4,7,2,1],"span":[41,2,25]},{"path":[4,7,2,1,5],"span":[41,2,8]},{"path":[4,7,2,1,1],"span":[41,9,20]},{"path":[4,7,2,1,3],"span":[41,23,24]},{"path":[4,7,2,2],"span":[42,2,20]},{"path":[4,7,2,2,5],"span":[42,2,8]},{"path":[4,7,2,2,1],"span":[42,9,15]},{"path":[4,7,2,2,3],"span":[42,18,19]},{"path":[4,7,2,3],"span":[43,2,19]},{"path":[4,7,2,3,5],"span":[43,2,6]},{"path":[4,7,2,3,1],"span":[43,7,14]},{"path":[4,7,2,3,3],"span":[43,17,18]},{"path":[6,0],"span":[46,0,50,1]},{"path":[6,0,1],"span":[46,8,28]},{"path":[6,0,2,0],"span":[47,2,85]},{"path":[6,0,2,0,1],"span":[47,6,22]},{"path":[6,0,2,0,2],"span":[47,23,46]},{"path":[6,0,2,0,3],"span":[47,57,81]},{"path":[6,0,2,1],"span":[48,2,82]},{"path":[6,0,2,1,1],"span":[48,6,21]},{"path":[6,0,2,1,2],"span":[48,22,44]},{"path":[6,0,2,1,3],"span":[48,55,78]},{"path":[6,0,2,2],"span":[49,2,91]},{"path":[6,0,2,2,1],"span":[49,6,24]},{"path":[6,0,2,2,2],"span":[49,25,50]},{"path":[6,0,2,2,3],"span":[49,61,87]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lansweeper/blocking-rules-grpc",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "blocking rules grpc",
|
|
5
|
+
"main": "gen-proto/index.js",
|
|
6
|
+
"types": "gen-proto/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"files": [
|
|
9
|
+
"gen-proto",
|
|
10
|
+
"proto"
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@grpc/grpc-js": "^1.5.1",
|
|
14
|
+
"google-protobuf": "^3.17.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/google-protobuf": "^3.15.5"
|
|
18
|
+
},
|
|
19
|
+
"gitHead": "e192b8a69f5f23576142e03686415045e4cdf483"
|
|
20
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package lansweeper.blockingrules.v1;
|
|
4
|
+
|
|
5
|
+
message BlockingRule {
|
|
6
|
+
string install_key = 1;
|
|
7
|
+
string site_id = 2;
|
|
8
|
+
string entity = 3;
|
|
9
|
+
string created_date = 4;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message GetBlockingRulesRequest {
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message SetBlockingRuleRequest {
|
|
17
|
+
string site_id = 1;
|
|
18
|
+
string install_key = 2;
|
|
19
|
+
string entity = 3;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message DeleteBlockingRuleRequest {
|
|
23
|
+
string site_id = 1;
|
|
24
|
+
string install_key = 2;
|
|
25
|
+
string entity = 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message BlockingRuleResponse {
|
|
29
|
+
BlockingRule blocking_rule = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message GetBlockingRulesResponse {
|
|
33
|
+
repeated BlockingRuleResponse blocking_rules = 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message SetBlockingRuleResponse {
|
|
37
|
+
repeated BlockingRuleResponse blocking_rules = 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message DeleteBlockingRuleResponse {
|
|
41
|
+
string site_id = 1;
|
|
42
|
+
string install_key = 2;
|
|
43
|
+
string entity = 3;
|
|
44
|
+
bool deleted = 4;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
service BlockingRulesService {
|
|
48
|
+
rpc GetBlockingRules(GetBlockingRulesRequest) returns (GetBlockingRulesResponse) {}
|
|
49
|
+
rpc SetBlockingRule(SetBlockingRuleRequest) returns (SetBlockingRuleResponse) {}
|
|
50
|
+
rpc DeleteBlockingRule(DeleteBlockingRuleRequest) returns (DeleteBlockingRuleResponse) {}
|
|
51
|
+
}
|