@lansweeper/blocking-rules-grpc 0.0.6 → 0.0.7

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.
@@ -40,8 +40,6 @@ export namespace NullableString {
40
40
  export class BlockingRule extends jspb.Message {
41
41
  getInstallKey(): string;
42
42
  setInstallKey(value: string): BlockingRule;
43
- getSiteId(): string;
44
- setSiteId(value: string): BlockingRule;
45
43
  getEntity(): string;
46
44
  setEntity(value: string): BlockingRule;
47
45
  getCreatedDate(): string;
@@ -62,7 +60,6 @@ export class BlockingRule extends jspb.Message {
62
60
  export namespace BlockingRule {
63
61
  export type AsObject = {
64
62
  installKey: string,
65
- siteId: string,
66
63
  entity: string,
67
64
  createdDate: string,
68
65
  id: string,
@@ -107,8 +104,6 @@ export namespace GetBlockingRulesByInstallRequest {
107
104
  }
108
105
 
109
106
  export class SetBlockingRuleRequest extends jspb.Message {
110
- getSiteId(): string;
111
- setSiteId(value: string): SetBlockingRuleRequest;
112
107
  getInstallKey(): string;
113
108
  setInstallKey(value: string): SetBlockingRuleRequest;
114
109
  getEntity(): string;
@@ -126,7 +121,6 @@ export class SetBlockingRuleRequest extends jspb.Message {
126
121
 
127
122
  export namespace SetBlockingRuleRequest {
128
123
  export type AsObject = {
129
- siteId: string,
130
124
  installKey: string,
131
125
  entity: string,
132
126
  }
@@ -199,8 +193,6 @@ export namespace GetBlockingRulesResponse {
199
193
  export class SetBlockingRuleResponse extends jspb.Message {
200
194
  getInstallKey(): string;
201
195
  setInstallKey(value: string): SetBlockingRuleResponse;
202
- getSiteId(): string;
203
- setSiteId(value: string): SetBlockingRuleResponse;
204
196
  getEntity(): string;
205
197
  setEntity(value: string): SetBlockingRuleResponse;
206
198
  getCreatedDate(): string;
@@ -221,7 +213,6 @@ export class SetBlockingRuleResponse extends jspb.Message {
221
213
  export namespace SetBlockingRuleResponse {
222
214
  export type AsObject = {
223
215
  installKey: string,
224
- siteId: string,
225
216
  entity: string,
226
217
  createdDate: string,
227
218
  id: string,
@@ -442,10 +442,9 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.toObject = function(opt
442
442
  proto.lansweeper.blockingrules.v1.BlockingRule.toObject = function(includeInstance, msg) {
443
443
  var f, obj = {
444
444
  installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
445
- siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
446
- entity: jspb.Message.getFieldWithDefault(msg, 3, ""),
447
- createdDate: jspb.Message.getFieldWithDefault(msg, 4, ""),
448
- id: jspb.Message.getFieldWithDefault(msg, 5, "")
445
+ entity: jspb.Message.getFieldWithDefault(msg, 2, ""),
446
+ createdDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
447
+ id: jspb.Message.getFieldWithDefault(msg, 4, "")
449
448
  };
450
449
 
451
450
  if (includeInstance) {
@@ -487,18 +486,14 @@ proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinaryFromReader = fun
487
486
  msg.setInstallKey(value);
488
487
  break;
489
488
  case 2:
490
- var value = /** @type {string} */ (reader.readString());
491
- msg.setSiteId(value);
492
- break;
493
- case 3:
494
489
  var value = /** @type {string} */ (reader.readString());
495
490
  msg.setEntity(value);
496
491
  break;
497
- case 4:
492
+ case 3:
498
493
  var value = /** @type {string} */ (reader.readString());
499
494
  msg.setCreatedDate(value);
500
495
  break;
501
- case 5:
496
+ case 4:
502
497
  var value = /** @type {string} */ (reader.readString());
503
498
  msg.setId(value);
504
499
  break;
@@ -538,31 +533,24 @@ proto.lansweeper.blockingrules.v1.BlockingRule.serializeBinaryToWriter = functio
538
533
  f
539
534
  );
540
535
  }
541
- f = message.getSiteId();
542
- if (f.length > 0) {
543
- writer.writeString(
544
- 2,
545
- f
546
- );
547
- }
548
536
  f = message.getEntity();
549
537
  if (f.length > 0) {
550
538
  writer.writeString(
551
- 3,
539
+ 2,
552
540
  f
553
541
  );
554
542
  }
555
543
  f = message.getCreatedDate();
556
544
  if (f.length > 0) {
557
545
  writer.writeString(
558
- 4,
546
+ 3,
559
547
  f
560
548
  );
561
549
  }
562
550
  f = message.getId();
563
551
  if (f.length > 0) {
564
552
  writer.writeString(
565
- 5,
553
+ 4,
566
554
  f
567
555
  );
568
556
  }
@@ -588,29 +576,11 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setInstallKey = functio
588
576
 
589
577
 
590
578
  /**
591
- * optional string site_id = 2;
592
- * @return {string}
593
- */
594
- proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getSiteId = function() {
595
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
596
- };
597
-
598
-
599
- /**
600
- * @param {string} value
601
- * @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
602
- */
603
- proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setSiteId = function(value) {
604
- return jspb.Message.setProto3StringField(this, 2, value);
605
- };
606
-
607
-
608
- /**
609
- * optional string entity = 3;
579
+ * optional string entity = 2;
610
580
  * @return {string}
611
581
  */
612
582
  proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getEntity = function() {
613
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
583
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
614
584
  };
615
585
 
616
586
 
@@ -619,16 +589,16 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getEntity = function()
619
589
  * @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
620
590
  */
621
591
  proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setEntity = function(value) {
622
- return jspb.Message.setProto3StringField(this, 3, value);
592
+ return jspb.Message.setProto3StringField(this, 2, value);
623
593
  };
624
594
 
625
595
 
626
596
  /**
627
- * optional string created_date = 4;
597
+ * optional string created_date = 3;
628
598
  * @return {string}
629
599
  */
630
600
  proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getCreatedDate = function() {
631
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
601
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
632
602
  };
633
603
 
634
604
 
@@ -637,16 +607,16 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getCreatedDate = functi
637
607
  * @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
638
608
  */
639
609
  proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setCreatedDate = function(value) {
640
- return jspb.Message.setProto3StringField(this, 4, value);
610
+ return jspb.Message.setProto3StringField(this, 3, value);
641
611
  };
642
612
 
643
613
 
644
614
  /**
645
- * optional string id = 5;
615
+ * optional string id = 4;
646
616
  * @return {string}
647
617
  */
648
618
  proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getId = function() {
649
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
619
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
650
620
  };
651
621
 
652
622
 
@@ -655,7 +625,7 @@ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getId = function() {
655
625
  * @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
656
626
  */
657
627
  proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setId = function(value) {
658
- return jspb.Message.setProto3StringField(this, 5, value);
628
+ return jspb.Message.setProto3StringField(this, 4, value);
659
629
  };
660
630
 
661
631
 
@@ -922,9 +892,8 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.toObject = fu
922
892
  */
923
893
  proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.toObject = function(includeInstance, msg) {
924
894
  var f, obj = {
925
- siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
926
- installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
927
- entity: jspb.Message.getFieldWithDefault(msg, 3, "")
895
+ installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
896
+ entity: jspb.Message.getFieldWithDefault(msg, 2, "")
928
897
  };
929
898
 
930
899
  if (includeInstance) {
@@ -962,14 +931,10 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.deserializeBinaryFromRe
962
931
  var field = reader.getFieldNumber();
963
932
  switch (field) {
964
933
  case 1:
965
- var value = /** @type {string} */ (reader.readString());
966
- msg.setSiteId(value);
967
- break;
968
- case 2:
969
934
  var value = /** @type {string} */ (reader.readString());
970
935
  msg.setInstallKey(value);
971
936
  break;
972
- case 3:
937
+ case 2:
973
938
  var value = /** @type {string} */ (reader.readString());
974
939
  msg.setEntity(value);
975
940
  break;
@@ -1002,24 +967,17 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.serializeBina
1002
967
  */
1003
968
  proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.serializeBinaryToWriter = function(message, writer) {
1004
969
  var f = undefined;
1005
- f = message.getSiteId();
1006
- if (f.length > 0) {
1007
- writer.writeString(
1008
- 1,
1009
- f
1010
- );
1011
- }
1012
970
  f = message.getInstallKey();
1013
971
  if (f.length > 0) {
1014
972
  writer.writeString(
1015
- 2,
973
+ 1,
1016
974
  f
1017
975
  );
1018
976
  }
1019
977
  f = message.getEntity();
1020
978
  if (f.length > 0) {
1021
979
  writer.writeString(
1022
- 3,
980
+ 2,
1023
981
  f
1024
982
  );
1025
983
  }
@@ -1027,29 +985,11 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.serializeBinaryToWriter
1027
985
 
1028
986
 
1029
987
  /**
1030
- * optional string site_id = 1;
1031
- * @return {string}
1032
- */
1033
- proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getSiteId = function() {
1034
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1035
- };
1036
-
1037
-
1038
- /**
1039
- * @param {string} value
1040
- * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} returns this
1041
- */
1042
- proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.setSiteId = function(value) {
1043
- return jspb.Message.setProto3StringField(this, 1, value);
1044
- };
1045
-
1046
-
1047
- /**
1048
- * optional string install_key = 2;
988
+ * optional string install_key = 1;
1049
989
  * @return {string}
1050
990
  */
1051
991
  proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getInstallKey = function() {
1052
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
992
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1053
993
  };
1054
994
 
1055
995
 
@@ -1058,16 +998,16 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getInstallKey
1058
998
  * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} returns this
1059
999
  */
1060
1000
  proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.setInstallKey = function(value) {
1061
- return jspb.Message.setProto3StringField(this, 2, value);
1001
+ return jspb.Message.setProto3StringField(this, 1, value);
1062
1002
  };
1063
1003
 
1064
1004
 
1065
1005
  /**
1066
- * optional string entity = 3;
1006
+ * optional string entity = 2;
1067
1007
  * @return {string}
1068
1008
  */
1069
1009
  proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getEntity = function() {
1070
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1010
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1071
1011
  };
1072
1012
 
1073
1013
 
@@ -1076,7 +1016,7 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getEntity = f
1076
1016
  * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} returns this
1077
1017
  */
1078
1018
  proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.setEntity = function(value) {
1079
- return jspb.Message.setProto3StringField(this, 3, value);
1019
+ return jspb.Message.setProto3StringField(this, 2, value);
1080
1020
  };
1081
1021
 
1082
1022
 
@@ -1563,10 +1503,9 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.toObject = f
1563
1503
  proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.toObject = function(includeInstance, msg) {
1564
1504
  var f, obj = {
1565
1505
  installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
1566
- siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1567
- entity: jspb.Message.getFieldWithDefault(msg, 3, ""),
1568
- createdDate: jspb.Message.getFieldWithDefault(msg, 4, ""),
1569
- id: jspb.Message.getFieldWithDefault(msg, 5, "")
1506
+ entity: jspb.Message.getFieldWithDefault(msg, 2, ""),
1507
+ createdDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
1508
+ id: jspb.Message.getFieldWithDefault(msg, 4, "")
1570
1509
  };
1571
1510
 
1572
1511
  if (includeInstance) {
@@ -1608,18 +1547,14 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.deserializeBinaryFromR
1608
1547
  msg.setInstallKey(value);
1609
1548
  break;
1610
1549
  case 2:
1611
- var value = /** @type {string} */ (reader.readString());
1612
- msg.setSiteId(value);
1613
- break;
1614
- case 3:
1615
1550
  var value = /** @type {string} */ (reader.readString());
1616
1551
  msg.setEntity(value);
1617
1552
  break;
1618
- case 4:
1553
+ case 3:
1619
1554
  var value = /** @type {string} */ (reader.readString());
1620
1555
  msg.setCreatedDate(value);
1621
1556
  break;
1622
- case 5:
1557
+ case 4:
1623
1558
  var value = /** @type {string} */ (reader.readString());
1624
1559
  msg.setId(value);
1625
1560
  break;
@@ -1659,31 +1594,24 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.serializeBinaryToWrite
1659
1594
  f
1660
1595
  );
1661
1596
  }
1662
- f = message.getSiteId();
1663
- if (f.length > 0) {
1664
- writer.writeString(
1665
- 2,
1666
- f
1667
- );
1668
- }
1669
1597
  f = message.getEntity();
1670
1598
  if (f.length > 0) {
1671
1599
  writer.writeString(
1672
- 3,
1600
+ 2,
1673
1601
  f
1674
1602
  );
1675
1603
  }
1676
1604
  f = message.getCreatedDate();
1677
1605
  if (f.length > 0) {
1678
1606
  writer.writeString(
1679
- 4,
1607
+ 3,
1680
1608
  f
1681
1609
  );
1682
1610
  }
1683
1611
  f = message.getId();
1684
1612
  if (f.length > 0) {
1685
1613
  writer.writeString(
1686
- 5,
1614
+ 4,
1687
1615
  f
1688
1616
  );
1689
1617
  }
@@ -1709,29 +1637,11 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setInstallKe
1709
1637
 
1710
1638
 
1711
1639
  /**
1712
- * optional string site_id = 2;
1713
- * @return {string}
1714
- */
1715
- proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getSiteId = function() {
1716
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1717
- };
1718
-
1719
-
1720
- /**
1721
- * @param {string} value
1722
- * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
1723
- */
1724
- proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setSiteId = function(value) {
1725
- return jspb.Message.setProto3StringField(this, 2, value);
1726
- };
1727
-
1728
-
1729
- /**
1730
- * optional string entity = 3;
1640
+ * optional string entity = 2;
1731
1641
  * @return {string}
1732
1642
  */
1733
1643
  proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getEntity = function() {
1734
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1644
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1735
1645
  };
1736
1646
 
1737
1647
 
@@ -1740,16 +1650,16 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getEntity =
1740
1650
  * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
1741
1651
  */
1742
1652
  proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setEntity = function(value) {
1743
- return jspb.Message.setProto3StringField(this, 3, value);
1653
+ return jspb.Message.setProto3StringField(this, 2, value);
1744
1654
  };
1745
1655
 
1746
1656
 
1747
1657
  /**
1748
- * optional string created_date = 4;
1658
+ * optional string created_date = 3;
1749
1659
  * @return {string}
1750
1660
  */
1751
1661
  proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getCreatedDate = function() {
1752
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1662
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1753
1663
  };
1754
1664
 
1755
1665
 
@@ -1758,16 +1668,16 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getCreatedDa
1758
1668
  * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
1759
1669
  */
1760
1670
  proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setCreatedDate = function(value) {
1761
- return jspb.Message.setProto3StringField(this, 4, value);
1671
+ return jspb.Message.setProto3StringField(this, 3, value);
1762
1672
  };
1763
1673
 
1764
1674
 
1765
1675
  /**
1766
- * optional string id = 5;
1676
+ * optional string id = 4;
1767
1677
  * @return {string}
1768
1678
  */
1769
1679
  proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getId = function() {
1770
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1680
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1771
1681
  };
1772
1682
 
1773
1683
 
@@ -1776,7 +1686,7 @@ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getId = func
1776
1686
  * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
1777
1687
  */
1778
1688
  proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setId = function(value) {
1779
- return jspb.Message.setProto3StringField(this, 5, value);
1689
+ return jspb.Message.setProto3StringField(this, 4, value);
1780
1690
  };
1781
1691
 
1782
1692
 
@@ -1 +1 @@
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}}]}
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":"entity","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"},{"name":"created_date","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"createdDate"},{"name":"id","number":4,"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":"install_key","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"entity","number":2,"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":"entity","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"entity"},{"name":"created_date","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"createdDate"},{"name":"id","number":4,"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,58,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,15,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,20]},{"path":[4,1,2,1,5],"span":[12,2,8]},{"path":[4,1,2,1,1],"span":[12,9,15]},{"path":[4,1,2,1,3],"span":[12,18,19]},{"path":[4,1,2,2],"span":[13,2,26]},{"path":[4,1,2,2,5],"span":[13,2,8]},{"path":[4,1,2,2,1],"span":[13,9,21]},{"path":[4,1,2,2,3],"span":[13,24,25]},{"path":[4,1,2,3],"span":[14,2,16]},{"path":[4,1,2,3,5],"span":[14,2,8]},{"path":[4,1,2,3,1],"span":[14,9,11]},{"path":[4,1,2,3,3],"span":[14,14,15]},{"path":[4,2],"span":[17,0,19,1]},{"path":[4,2,1],"span":[17,8,31]},{"path":[4,3],"span":[21,0,23,1]},{"path":[4,3,1],"span":[21,8,40]},{"path":[4,3,2,0],"span":[22,2,25]},{"path":[4,3,2,0,5],"span":[22,2,8]},{"path":[4,3,2,0,1],"span":[22,9,20]},{"path":[4,3,2,0,3],"span":[22,23,24]},{"path":[4,4],"span":[25,0,28,1]},{"path":[4,4,1],"span":[25,8,30]},{"path":[4,4,2,0],"span":[26,2,25]},{"path":[4,4,2,0,5],"span":[26,2,8]},{"path":[4,4,2,0,1],"span":[26,9,20]},{"path":[4,4,2,0,3],"span":[26,23,24]},{"path":[4,4,2,1],"span":[27,2,20]},{"path":[4,4,2,1,5],"span":[27,2,8]},{"path":[4,4,2,1,1],"span":[27,9,15]},{"path":[4,4,2,1,3],"span":[27,18,19]},{"path":[4,5],"span":[30,0,32,1]},{"path":[4,5,1],"span":[30,8,33]},{"path":[4,5,2,0],"span":[31,2,16]},{"path":[4,5,2,0,5],"span":[31,2,8]},{"path":[4,5,2,0,1],"span":[31,9,11]},{"path":[4,5,2,0,3],"span":[31,14,15]},{"path":[4,6],"span":[34,0,36,1]},{"path":[4,6,1],"span":[34,8,41]},{"path":[4,6,2,0],"span":[35,2,43]},{"path":[4,6,2,0,4],"span":[35,2,10]},{"path":[4,6,2,0,6],"span":[35,11,23]},{"path":[4,6,2,0,1],"span":[35,24,38]},{"path":[4,6,2,0,3],"span":[35,41,42]},{"path":[4,7],"span":[38,0,40,1]},{"path":[4,7,1],"span":[38,8,32]},{"path":[4,7,2,0],"span":[39,2,43]},{"path":[4,7,2,0,4],"span":[39,2,10]},{"path":[4,7,2,0,6],"span":[39,11,23]},{"path":[4,7,2,0,1],"span":[39,24,38]},{"path":[4,7,2,0,3],"span":[39,41,42]},{"path":[4,8],"span":[42,0,47,1]},{"path":[4,8,1],"span":[42,8,31]},{"path":[4,8,2,0],"span":[43,2,25]},{"path":[4,8,2,0,5],"span":[43,2,8]},{"path":[4,8,2,0,1],"span":[43,9,20]},{"path":[4,8,2,0,3],"span":[43,23,24]},{"path":[4,8,2,1],"span":[44,2,20]},{"path":[4,8,2,1,5],"span":[44,2,8]},{"path":[4,8,2,1,1],"span":[44,9,15]},{"path":[4,8,2,1,3],"span":[44,18,19]},{"path":[4,8,2,2],"span":[45,2,26]},{"path":[4,8,2,2,5],"span":[45,2,8]},{"path":[4,8,2,2,1],"span":[45,9,21]},{"path":[4,8,2,2,3],"span":[45,24,25]},{"path":[4,8,2,3],"span":[46,2,16]},{"path":[4,8,2,3,5],"span":[46,2,8]},{"path":[4,8,2,3,1],"span":[46,9,11]},{"path":[4,8,2,3,3],"span":[46,14,15]},{"path":[4,9],"span":[49,0,51,1]},{"path":[4,9,1],"span":[49,8,34]},{"path":[4,9,2,0],"span":[50,8,30]},{"path":[4,9,2,0,6],"span":[50,8,22]},{"path":[4,9,2,0,1],"span":[50,23,25]},{"path":[4,9,2,0,3],"span":[50,28,29]},{"path":[6,0],"span":[53,0,58,1]},{"path":[6,0,1],"span":[53,8,28]},{"path":[6,0,2,0],"span":[54,2,85]},{"path":[6,0,2,0,1],"span":[54,6,22]},{"path":[6,0,2,0,2],"span":[54,23,46]},{"path":[6,0,2,0,3],"span":[54,57,81]},{"path":[6,0,2,1],"span":[55,2,112]},{"path":[6,0,2,1,1],"span":[55,6,31]},{"path":[6,0,2,1,2],"span":[55,32,64]},{"path":[6,0,2,1,3],"span":[55,75,108]},{"path":[6,0,2,2],"span":[56,2,82]},{"path":[6,0,2,2,1],"span":[56,6,21]},{"path":[6,0,2,2,2],"span":[56,22,44]},{"path":[6,0,2,2,3],"span":[56,55,78]},{"path":[6,0,2,3],"span":[57,2,91]},{"path":[6,0,2,3,1],"span":[57,6,24]},{"path":[6,0,2,3,2],"span":[57,25,50]},{"path":[6,0,2,3,3],"span":[57,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.6",
3
+ "version": "0.0.7",
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": "c36b9e4a55177683c7421f6928f306581e8ad7fb"
19
+ "gitHead": "3ca4dbc98964f78b09024d0f398cf19c27256756"
20
20
  }
@@ -10,10 +10,9 @@ message NullableString {
10
10
 
11
11
  message BlockingRule {
12
12
  string install_key = 1;
13
- string site_id = 2;
14
- string entity = 3;
15
- string created_date = 4;
16
- string id = 5;
13
+ string entity = 2;
14
+ string created_date = 3;
15
+ string id = 4;
17
16
  }
18
17
 
19
18
  message GetBlockingRulesRequest {
@@ -25,9 +24,8 @@ message GetBlockingRulesByInstallRequest {
25
24
  }
26
25
 
27
26
  message SetBlockingRuleRequest {
28
- string site_id = 1;
29
- string install_key = 2;
30
- string entity = 3;
27
+ string install_key = 1;
28
+ string entity = 2;
31
29
  }
32
30
 
33
31
  message DeleteBlockingRuleRequest {
@@ -44,10 +42,9 @@ message GetBlockingRulesResponse {
44
42
 
45
43
  message SetBlockingRuleResponse {
46
44
  string install_key = 1;
47
- string site_id = 2;
48
- string entity = 3;
49
- string created_date = 4;
50
- string id = 5;
45
+ string entity = 2;
46
+ string created_date = 3;
47
+ string id = 4;
51
48
  }
52
49
 
53
50
  message DeleteBlockingRuleResponse {