@lansweeper/multitenant-api-grpc 0.4.41 → 0.4.43

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.
@@ -5,6 +5,7 @@
5
5
  /* eslint-disable */
6
6
 
7
7
  import * as jspb from "google-protobuf";
8
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
8
9
 
9
10
  export class CalculateRiskInsights extends jspb.Message {
10
11
 
@@ -41,13 +42,39 @@ export namespace CalculateRiskInsights {
41
42
  }
42
43
  }
43
44
 
45
+ export class ExpirableAllowedEntities extends jspb.Message {
46
+ getKey(): string;
47
+ setKey(value: string): ExpirableAllowedEntities;
48
+
49
+ hasExpiresAt(): boolean;
50
+ clearExpiresAt(): void;
51
+ getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
52
+ setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): ExpirableAllowedEntities;
53
+
54
+ serializeBinary(): Uint8Array;
55
+ toObject(includeInstance?: boolean): ExpirableAllowedEntities.AsObject;
56
+ static toObject(includeInstance: boolean, msg: ExpirableAllowedEntities): ExpirableAllowedEntities.AsObject;
57
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
58
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
59
+ static serializeBinaryToWriter(message: ExpirableAllowedEntities, writer: jspb.BinaryWriter): void;
60
+ static deserializeBinary(bytes: Uint8Array): ExpirableAllowedEntities;
61
+ static deserializeBinaryFromReader(message: ExpirableAllowedEntities, reader: jspb.BinaryReader): ExpirableAllowedEntities;
62
+ }
63
+
64
+ export namespace ExpirableAllowedEntities {
65
+ export type AsObject = {
66
+ key: string,
67
+ expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
68
+ }
69
+ }
70
+
44
71
  export class BaseLimit extends jspb.Message {
45
72
  getValue(): boolean;
46
73
  setValue(value: boolean): BaseLimit;
47
- clearAllowedList(): void;
48
- getAllowedList(): Array<string>;
49
- setAllowedList(value: Array<string>): BaseLimit;
50
- addAllowed(value: string, index?: number): string;
74
+ clearAllowedEntitiesList(): void;
75
+ getAllowedEntitiesList(): Array<ExpirableAllowedEntities>;
76
+ setAllowedEntitiesList(value: Array<ExpirableAllowedEntities>): BaseLimit;
77
+ addAllowedEntities(value?: ExpirableAllowedEntities, index?: number): ExpirableAllowedEntities;
51
78
 
52
79
  serializeBinary(): Uint8Array;
53
80
  toObject(includeInstance?: boolean): BaseLimit.AsObject;
@@ -62,7 +89,7 @@ export class BaseLimit extends jspb.Message {
62
89
  export namespace BaseLimit {
63
90
  export type AsObject = {
64
91
  value: boolean,
65
- allowedList: Array<string>,
92
+ allowedEntitiesList: Array<ExpirableAllowedEntities.AsObject>,
66
93
  }
67
94
  }
68
95
 
@@ -116,11 +143,6 @@ export class SiteLimits extends jspb.Message {
116
143
  getTier(): SiteLimitsTiers;
117
144
  setTier(value: SiteLimitsTiers): SiteLimits;
118
145
 
119
- hasCalculateRiskInsights(): boolean;
120
- clearCalculateRiskInsights(): void;
121
- getCalculateRiskInsights(): CalculateRiskInsights | undefined;
122
- setCalculateRiskInsights(value?: CalculateRiskInsights): SiteLimits;
123
-
124
146
  hasRiskInsights(): boolean;
125
147
  clearRiskInsights(): void;
126
148
  getRiskInsights(): RiskInsights | undefined;
@@ -144,7 +166,6 @@ export class SiteLimits extends jspb.Message {
144
166
  export namespace SiteLimits {
145
167
  export type AsObject = {
146
168
  tier: SiteLimitsTiers,
147
- calculateRiskInsights?: CalculateRiskInsights.AsObject,
148
169
  riskInsights?: RiskInsights.AsObject,
149
170
  assets?: Assets.AsObject,
150
171
  }
@@ -21,9 +21,12 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
24
26
  goog.exportSymbol('proto.lansweeper.shared.limits.v1.Assets', null, global);
25
27
  goog.exportSymbol('proto.lansweeper.shared.limits.v1.BaseLimit', null, global);
26
28
  goog.exportSymbol('proto.lansweeper.shared.limits.v1.CalculateRiskInsights', null, global);
29
+ goog.exportSymbol('proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities', null, global);
27
30
  goog.exportSymbol('proto.lansweeper.shared.limits.v1.RiskInsights', null, global);
28
31
  goog.exportSymbol('proto.lansweeper.shared.limits.v1.RiskInsightsSeverity', null, global);
29
32
  goog.exportSymbol('proto.lansweeper.shared.limits.v1.SiteLimits', null, global);
@@ -49,6 +52,27 @@ if (goog.DEBUG && !COMPILED) {
49
52
  */
50
53
  proto.lansweeper.shared.limits.v1.CalculateRiskInsights.displayName = 'proto.lansweeper.shared.limits.v1.CalculateRiskInsights';
51
54
  }
55
+ /**
56
+ * Generated by JsPbCodeGenerator.
57
+ * @param {Array=} opt_data Optional initial data array, typically from a
58
+ * server response, or constructed directly in Javascript. The array is used
59
+ * in place and becomes part of the constructed object. It is not cloned.
60
+ * If no data is provided, the constructed object will be empty, but still
61
+ * valid.
62
+ * @extends {jspb.Message}
63
+ * @constructor
64
+ */
65
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities = function(opt_data) {
66
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
67
+ };
68
+ goog.inherits(proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities, jspb.Message);
69
+ if (goog.DEBUG && !COMPILED) {
70
+ /**
71
+ * @public
72
+ * @override
73
+ */
74
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.displayName = 'proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities';
75
+ }
52
76
  /**
53
77
  * Generated by JsPbCodeGenerator.
54
78
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -378,12 +402,193 @@ proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.hasMax = funct
378
402
 
379
403
 
380
404
 
405
+
406
+
407
+ if (jspb.Message.GENERATE_TO_OBJECT) {
408
+ /**
409
+ * Creates an object representation of this proto.
410
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
411
+ * Optional fields that are not set will be set to undefined.
412
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
413
+ * For the list of reserved names please see:
414
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
415
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
416
+ * JSPB instance for transitional soy proto support:
417
+ * http://goto/soy-param-migration
418
+ * @return {!Object}
419
+ */
420
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.prototype.toObject = function(opt_includeInstance) {
421
+ return proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.toObject(opt_includeInstance, this);
422
+ };
423
+
424
+
425
+ /**
426
+ * Static version of the {@see toObject} method.
427
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
428
+ * the JSPB instance for transitional soy proto support:
429
+ * http://goto/soy-param-migration
430
+ * @param {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities} msg The msg instance to transform.
431
+ * @return {!Object}
432
+ * @suppress {unusedLocalVariables} f is only used for nested messages
433
+ */
434
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.toObject = function(includeInstance, msg) {
435
+ var f, obj = {
436
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
437
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
438
+ };
439
+
440
+ if (includeInstance) {
441
+ obj.$jspbMessageInstance = msg;
442
+ }
443
+ return obj;
444
+ };
445
+ }
446
+
447
+
448
+ /**
449
+ * Deserializes binary data (in protobuf wire format).
450
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
451
+ * @return {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities}
452
+ */
453
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.deserializeBinary = function(bytes) {
454
+ var reader = new jspb.BinaryReader(bytes);
455
+ var msg = new proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities;
456
+ return proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.deserializeBinaryFromReader(msg, reader);
457
+ };
458
+
459
+
460
+ /**
461
+ * Deserializes binary data (in protobuf wire format) from the
462
+ * given reader into the given message object.
463
+ * @param {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities} msg The message object to deserialize into.
464
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
465
+ * @return {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities}
466
+ */
467
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.deserializeBinaryFromReader = function(msg, reader) {
468
+ while (reader.nextField()) {
469
+ if (reader.isEndGroup()) {
470
+ break;
471
+ }
472
+ var field = reader.getFieldNumber();
473
+ switch (field) {
474
+ case 1:
475
+ var value = /** @type {string} */ (reader.readString());
476
+ msg.setKey(value);
477
+ break;
478
+ case 2:
479
+ var value = new google_protobuf_timestamp_pb.Timestamp;
480
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
481
+ msg.setExpiresAt(value);
482
+ break;
483
+ default:
484
+ reader.skipField();
485
+ break;
486
+ }
487
+ }
488
+ return msg;
489
+ };
490
+
491
+
492
+ /**
493
+ * Serializes the message to binary data (in protobuf wire format).
494
+ * @return {!Uint8Array}
495
+ */
496
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.prototype.serializeBinary = function() {
497
+ var writer = new jspb.BinaryWriter();
498
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.serializeBinaryToWriter(this, writer);
499
+ return writer.getResultBuffer();
500
+ };
501
+
502
+
503
+ /**
504
+ * Serializes the given message to binary data (in protobuf wire
505
+ * format), writing to the given BinaryWriter.
506
+ * @param {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities} message
507
+ * @param {!jspb.BinaryWriter} writer
508
+ * @suppress {unusedLocalVariables} f is only used for nested messages
509
+ */
510
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.serializeBinaryToWriter = function(message, writer) {
511
+ var f = undefined;
512
+ f = message.getKey();
513
+ if (f.length > 0) {
514
+ writer.writeString(
515
+ 1,
516
+ f
517
+ );
518
+ }
519
+ f = message.getExpiresAt();
520
+ if (f != null) {
521
+ writer.writeMessage(
522
+ 2,
523
+ f,
524
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
525
+ );
526
+ }
527
+ };
528
+
529
+
530
+ /**
531
+ * optional string key = 1;
532
+ * @return {string}
533
+ */
534
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.prototype.getKey = function() {
535
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
536
+ };
537
+
538
+
539
+ /**
540
+ * @param {string} value
541
+ * @return {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities} returns this
542
+ */
543
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.prototype.setKey = function(value) {
544
+ return jspb.Message.setProto3StringField(this, 1, value);
545
+ };
546
+
547
+
548
+ /**
549
+ * optional google.protobuf.Timestamp expires_at = 2;
550
+ * @return {?proto.google.protobuf.Timestamp}
551
+ */
552
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.prototype.getExpiresAt = function() {
553
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
554
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
555
+ };
556
+
557
+
558
+ /**
559
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
560
+ * @return {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities} returns this
561
+ */
562
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.prototype.setExpiresAt = function(value) {
563
+ return jspb.Message.setWrapperField(this, 2, value);
564
+ };
565
+
566
+
567
+ /**
568
+ * Clears the message field making it undefined.
569
+ * @return {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities} returns this
570
+ */
571
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.prototype.clearExpiresAt = function() {
572
+ return this.setExpiresAt(undefined);
573
+ };
574
+
575
+
576
+ /**
577
+ * Returns whether this field is set.
578
+ * @return {boolean}
579
+ */
580
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.prototype.hasExpiresAt = function() {
581
+ return jspb.Message.getField(this, 2) != null;
582
+ };
583
+
584
+
585
+
381
586
  /**
382
587
  * List of repeated fields within this message type.
383
588
  * @private {!Array<number>}
384
589
  * @const
385
590
  */
386
- proto.lansweeper.shared.limits.v1.BaseLimit.repeatedFields_ = [2];
591
+ proto.lansweeper.shared.limits.v1.BaseLimit.repeatedFields_ = [3];
387
592
 
388
593
 
389
594
 
@@ -417,7 +622,8 @@ proto.lansweeper.shared.limits.v1.BaseLimit.prototype.toObject = function(opt_in
417
622
  proto.lansweeper.shared.limits.v1.BaseLimit.toObject = function(includeInstance, msg) {
418
623
  var f, obj = {
419
624
  value: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
420
- allowedList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
625
+ allowedEntitiesList: jspb.Message.toObjectList(msg.getAllowedEntitiesList(),
626
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.toObject, includeInstance)
421
627
  };
422
628
 
423
629
  if (includeInstance) {
@@ -458,9 +664,10 @@ proto.lansweeper.shared.limits.v1.BaseLimit.deserializeBinaryFromReader = functi
458
664
  var value = /** @type {boolean} */ (reader.readBool());
459
665
  msg.setValue(value);
460
666
  break;
461
- case 2:
462
- var value = /** @type {string} */ (reader.readString());
463
- msg.addAllowed(value);
667
+ case 3:
668
+ var value = new proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities;
669
+ reader.readMessage(value,proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.deserializeBinaryFromReader);
670
+ msg.addAllowedEntities(value);
464
671
  break;
465
672
  default:
466
673
  reader.skipField();
@@ -498,11 +705,12 @@ proto.lansweeper.shared.limits.v1.BaseLimit.serializeBinaryToWriter = function(m
498
705
  f
499
706
  );
500
707
  }
501
- f = message.getAllowedList();
708
+ f = message.getAllowedEntitiesList();
502
709
  if (f.length > 0) {
503
- writer.writeRepeatedString(
504
- 2,
505
- f
710
+ writer.writeRepeatedMessage(
711
+ 3,
712
+ f,
713
+ proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities.serializeBinaryToWriter
506
714
  );
507
715
  }
508
716
  };
@@ -527,30 +735,31 @@ proto.lansweeper.shared.limits.v1.BaseLimit.prototype.setValue = function(value)
527
735
 
528
736
 
529
737
  /**
530
- * repeated string allowed = 2;
531
- * @return {!Array<string>}
738
+ * repeated ExpirableAllowedEntities allowed_entities = 3;
739
+ * @return {!Array<!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities>}
532
740
  */
533
- proto.lansweeper.shared.limits.v1.BaseLimit.prototype.getAllowedList = function() {
534
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
741
+ proto.lansweeper.shared.limits.v1.BaseLimit.prototype.getAllowedEntitiesList = function() {
742
+ return /** @type{!Array<!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities>} */ (
743
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities, 3));
535
744
  };
536
745
 
537
746
 
538
747
  /**
539
- * @param {!Array<string>} value
748
+ * @param {!Array<!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities>} value
540
749
  * @return {!proto.lansweeper.shared.limits.v1.BaseLimit} returns this
541
- */
542
- proto.lansweeper.shared.limits.v1.BaseLimit.prototype.setAllowedList = function(value) {
543
- return jspb.Message.setField(this, 2, value || []);
750
+ */
751
+ proto.lansweeper.shared.limits.v1.BaseLimit.prototype.setAllowedEntitiesList = function(value) {
752
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
544
753
  };
545
754
 
546
755
 
547
756
  /**
548
- * @param {string} value
757
+ * @param {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities=} opt_value
549
758
  * @param {number=} opt_index
550
- * @return {!proto.lansweeper.shared.limits.v1.BaseLimit} returns this
759
+ * @return {!proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities}
551
760
  */
552
- proto.lansweeper.shared.limits.v1.BaseLimit.prototype.addAllowed = function(value, opt_index) {
553
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
761
+ proto.lansweeper.shared.limits.v1.BaseLimit.prototype.addAllowedEntities = function(opt_value, opt_index) {
762
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities, opt_index);
554
763
  };
555
764
 
556
765
 
@@ -558,8 +767,8 @@ proto.lansweeper.shared.limits.v1.BaseLimit.prototype.addAllowed = function(valu
558
767
  * Clears the list making it empty but non-null.
559
768
  * @return {!proto.lansweeper.shared.limits.v1.BaseLimit} returns this
560
769
  */
561
- proto.lansweeper.shared.limits.v1.BaseLimit.prototype.clearAllowedList = function() {
562
- return this.setAllowedList([]);
770
+ proto.lansweeper.shared.limits.v1.BaseLimit.prototype.clearAllowedEntitiesList = function() {
771
+ return this.setAllowedEntitiesList([]);
563
772
  };
564
773
 
565
774
 
@@ -898,7 +1107,6 @@ proto.lansweeper.shared.limits.v1.SiteLimits.prototype.toObject = function(opt_i
898
1107
  proto.lansweeper.shared.limits.v1.SiteLimits.toObject = function(includeInstance, msg) {
899
1108
  var f, obj = {
900
1109
  tier: jspb.Message.getFieldWithDefault(msg, 1, 0),
901
- calculateRiskInsights: (f = msg.getCalculateRiskInsights()) && proto.lansweeper.shared.limits.v1.CalculateRiskInsights.toObject(includeInstance, f),
902
1110
  riskInsights: (f = msg.getRiskInsights()) && proto.lansweeper.shared.limits.v1.RiskInsights.toObject(includeInstance, f),
903
1111
  assets: (f = msg.getAssets()) && proto.lansweeper.shared.limits.v1.Assets.toObject(includeInstance, f)
904
1112
  };
@@ -941,11 +1149,6 @@ proto.lansweeper.shared.limits.v1.SiteLimits.deserializeBinaryFromReader = funct
941
1149
  var value = /** @type {!proto.lansweeper.shared.limits.v1.SiteLimitsTiers} */ (reader.readEnum());
942
1150
  msg.setTier(value);
943
1151
  break;
944
- case 2:
945
- var value = new proto.lansweeper.shared.limits.v1.CalculateRiskInsights;
946
- reader.readMessage(value,proto.lansweeper.shared.limits.v1.CalculateRiskInsights.deserializeBinaryFromReader);
947
- msg.setCalculateRiskInsights(value);
948
- break;
949
1152
  case 3:
950
1153
  var value = new proto.lansweeper.shared.limits.v1.RiskInsights;
951
1154
  reader.readMessage(value,proto.lansweeper.shared.limits.v1.RiskInsights.deserializeBinaryFromReader);
@@ -992,14 +1195,6 @@ proto.lansweeper.shared.limits.v1.SiteLimits.serializeBinaryToWriter = function(
992
1195
  f
993
1196
  );
994
1197
  }
995
- f = message.getCalculateRiskInsights();
996
- if (f != null) {
997
- writer.writeMessage(
998
- 2,
999
- f,
1000
- proto.lansweeper.shared.limits.v1.CalculateRiskInsights.serializeBinaryToWriter
1001
- );
1002
- }
1003
1198
  f = message.getRiskInsights();
1004
1199
  if (f != null) {
1005
1200
  writer.writeMessage(
@@ -1037,43 +1232,6 @@ proto.lansweeper.shared.limits.v1.SiteLimits.prototype.setTier = function(value)
1037
1232
  };
1038
1233
 
1039
1234
 
1040
- /**
1041
- * optional CalculateRiskInsights calculate_risk_insights = 2;
1042
- * @return {?proto.lansweeper.shared.limits.v1.CalculateRiskInsights}
1043
- */
1044
- proto.lansweeper.shared.limits.v1.SiteLimits.prototype.getCalculateRiskInsights = function() {
1045
- return /** @type{?proto.lansweeper.shared.limits.v1.CalculateRiskInsights} */ (
1046
- jspb.Message.getWrapperField(this, proto.lansweeper.shared.limits.v1.CalculateRiskInsights, 2));
1047
- };
1048
-
1049
-
1050
- /**
1051
- * @param {?proto.lansweeper.shared.limits.v1.CalculateRiskInsights|undefined} value
1052
- * @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
1053
- */
1054
- proto.lansweeper.shared.limits.v1.SiteLimits.prototype.setCalculateRiskInsights = function(value) {
1055
- return jspb.Message.setWrapperField(this, 2, value);
1056
- };
1057
-
1058
-
1059
- /**
1060
- * Clears the message field making it undefined.
1061
- * @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
1062
- */
1063
- proto.lansweeper.shared.limits.v1.SiteLimits.prototype.clearCalculateRiskInsights = function() {
1064
- return this.setCalculateRiskInsights(undefined);
1065
- };
1066
-
1067
-
1068
- /**
1069
- * Returns whether this field is set.
1070
- * @return {boolean}
1071
- */
1072
- proto.lansweeper.shared.limits.v1.SiteLimits.prototype.hasCalculateRiskInsights = function() {
1073
- return jspb.Message.getField(this, 2) != null;
1074
- };
1075
-
1076
-
1077
1235
  /**
1078
1236
  * optional RiskInsights risk_insights = 3;
1079
1237
  * @return {?proto.lansweeper.shared.limits.v1.RiskInsights}
@@ -18,6 +18,7 @@ interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedService
18
18
  createInstall: IMultitenantService_ICreateInstall;
19
19
  createAndLinkInstall: IMultitenantService_ICreateAndLinkInstall;
20
20
  getInstallsBySite: IMultitenantService_IGetInstallsBySite;
21
+ getInstallsforMultipleSites: IMultitenantService_IGetInstallsforMultipleSites;
21
22
  getInstallsById: IMultitenantService_IGetInstallsById;
22
23
  getInstallsCountBySite: IMultitenantService_IGetInstallsCountBySite;
23
24
  getInstallbyClientId: IMultitenantService_IGetInstallbyClientId;
@@ -128,6 +129,15 @@ interface IMultitenantService_IGetInstallsBySite extends grpc.MethodDefinition<m
128
129
  responseSerialize: grpc.serialize<multitenant_pb.GetInstallsBySiteResponse>;
129
130
  responseDeserialize: grpc.deserialize<multitenant_pb.GetInstallsBySiteResponse>;
130
131
  }
132
+ interface IMultitenantService_IGetInstallsforMultipleSites extends grpc.MethodDefinition<multitenant_pb.GetInstallsForMultipleSitesRequest, multitenant_pb.GetInstallsForMultipleSitesResponse> {
133
+ path: "/lansweeper.multitenant.v1.Multitenant/GetInstallsforMultipleSites";
134
+ requestStream: false;
135
+ responseStream: false;
136
+ requestSerialize: grpc.serialize<multitenant_pb.GetInstallsForMultipleSitesRequest>;
137
+ requestDeserialize: grpc.deserialize<multitenant_pb.GetInstallsForMultipleSitesRequest>;
138
+ responseSerialize: grpc.serialize<multitenant_pb.GetInstallsForMultipleSitesResponse>;
139
+ responseDeserialize: grpc.deserialize<multitenant_pb.GetInstallsForMultipleSitesResponse>;
140
+ }
131
141
  interface IMultitenantService_IGetInstallsById extends grpc.MethodDefinition<multitenant_pb.GetInstallsByIdRequest, multitenant_pb.GetInstallsByIdResponse> {
132
142
  path: "/lansweeper.multitenant.v1.Multitenant/GetInstallsById";
133
143
  requestStream: false;
@@ -384,6 +394,7 @@ export interface IMultitenantServer extends grpc.UntypedServiceImplementation {
384
394
  createInstall: grpc.handleUnaryCall<multitenant_pb.CreateInstallRequest, multitenant_pb.CreateInstallResponse>;
385
395
  createAndLinkInstall: grpc.handleUnaryCall<multitenant_pb.CreateAndLinkInstallRequest, multitenant_pb.CreateAndLinkInstallResponse>;
386
396
  getInstallsBySite: grpc.handleUnaryCall<multitenant_pb.GetInstallsBySiteRequest, multitenant_pb.GetInstallsBySiteResponse>;
397
+ getInstallsforMultipleSites: grpc.handleUnaryCall<multitenant_pb.GetInstallsForMultipleSitesRequest, multitenant_pb.GetInstallsForMultipleSitesResponse>;
387
398
  getInstallsById: grpc.handleUnaryCall<multitenant_pb.GetInstallsByIdRequest, multitenant_pb.GetInstallsByIdResponse>;
388
399
  getInstallsCountBySite: grpc.handleUnaryCall<multitenant_pb.GetInstallsCountBySiteRequest, multitenant_pb.GetInstallsCountResponse>;
389
400
  getInstallbyClientId: grpc.handleUnaryCall<multitenant_pb.GetInstallbyClientIdRequest, multitenant_pb.GetInstallbyClientIdResponse>;
@@ -441,6 +452,9 @@ export interface IMultitenantClient {
441
452
  getInstallsBySite(request: multitenant_pb.GetInstallsBySiteRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsBySiteResponse) => void): grpc.ClientUnaryCall;
442
453
  getInstallsBySite(request: multitenant_pb.GetInstallsBySiteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsBySiteResponse) => void): grpc.ClientUnaryCall;
443
454
  getInstallsBySite(request: multitenant_pb.GetInstallsBySiteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsBySiteResponse) => void): grpc.ClientUnaryCall;
455
+ getInstallsforMultipleSites(request: multitenant_pb.GetInstallsForMultipleSitesRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsForMultipleSitesResponse) => void): grpc.ClientUnaryCall;
456
+ getInstallsforMultipleSites(request: multitenant_pb.GetInstallsForMultipleSitesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsForMultipleSitesResponse) => void): grpc.ClientUnaryCall;
457
+ getInstallsforMultipleSites(request: multitenant_pb.GetInstallsForMultipleSitesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsForMultipleSitesResponse) => void): grpc.ClientUnaryCall;
444
458
  getInstallsById(request: multitenant_pb.GetInstallsByIdRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByIdResponse) => void): grpc.ClientUnaryCall;
445
459
  getInstallsById(request: multitenant_pb.GetInstallsByIdRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByIdResponse) => void): grpc.ClientUnaryCall;
446
460
  getInstallsById(request: multitenant_pb.GetInstallsByIdRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByIdResponse) => void): grpc.ClientUnaryCall;
@@ -553,6 +567,9 @@ export class MultitenantClient extends grpc.Client implements IMultitenantClient
553
567
  public getInstallsBySite(request: multitenant_pb.GetInstallsBySiteRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsBySiteResponse) => void): grpc.ClientUnaryCall;
554
568
  public getInstallsBySite(request: multitenant_pb.GetInstallsBySiteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsBySiteResponse) => void): grpc.ClientUnaryCall;
555
569
  public getInstallsBySite(request: multitenant_pb.GetInstallsBySiteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsBySiteResponse) => void): grpc.ClientUnaryCall;
570
+ public getInstallsforMultipleSites(request: multitenant_pb.GetInstallsForMultipleSitesRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsForMultipleSitesResponse) => void): grpc.ClientUnaryCall;
571
+ public getInstallsforMultipleSites(request: multitenant_pb.GetInstallsForMultipleSitesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsForMultipleSitesResponse) => void): grpc.ClientUnaryCall;
572
+ public getInstallsforMultipleSites(request: multitenant_pb.GetInstallsForMultipleSitesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsForMultipleSitesResponse) => void): grpc.ClientUnaryCall;
556
573
  public getInstallsById(request: multitenant_pb.GetInstallsByIdRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByIdResponse) => void): grpc.ClientUnaryCall;
557
574
  public getInstallsById(request: multitenant_pb.GetInstallsByIdRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByIdResponse) => void): grpc.ClientUnaryCall;
558
575
  public getInstallsById(request: multitenant_pb.GetInstallsByIdRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByIdResponse) => void): grpc.ClientUnaryCall;
@@ -423,6 +423,28 @@ function deserialize_lansweeper_multitenant_v1_GetInstallsCountResponse(buffer_a
423
423
  return multitenant_pb.GetInstallsCountResponse.deserializeBinary(new Uint8Array(buffer_arg));
424
424
  }
425
425
 
426
+ function serialize_lansweeper_multitenant_v1_GetInstallsForMultipleSitesRequest(arg) {
427
+ if (!(arg instanceof multitenant_pb.GetInstallsForMultipleSitesRequest)) {
428
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.GetInstallsForMultipleSitesRequest');
429
+ }
430
+ return Buffer.from(arg.serializeBinary());
431
+ }
432
+
433
+ function deserialize_lansweeper_multitenant_v1_GetInstallsForMultipleSitesRequest(buffer_arg) {
434
+ return multitenant_pb.GetInstallsForMultipleSitesRequest.deserializeBinary(new Uint8Array(buffer_arg));
435
+ }
436
+
437
+ function serialize_lansweeper_multitenant_v1_GetInstallsForMultipleSitesResponse(arg) {
438
+ if (!(arg instanceof multitenant_pb.GetInstallsForMultipleSitesResponse)) {
439
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.GetInstallsForMultipleSitesResponse');
440
+ }
441
+ return Buffer.from(arg.serializeBinary());
442
+ }
443
+
444
+ function deserialize_lansweeper_multitenant_v1_GetInstallsForMultipleSitesResponse(buffer_arg) {
445
+ return multitenant_pb.GetInstallsForMultipleSitesResponse.deserializeBinary(new Uint8Array(buffer_arg));
446
+ }
447
+
426
448
  function serialize_lansweeper_multitenant_v1_GetPreviewAccountByIdRequest(arg) {
427
449
  if (!(arg instanceof multitenant_pb.GetPreviewAccountByIdRequest)) {
428
450
  throw new Error('Expected argument of type lansweeper.multitenant.v1.GetPreviewAccountByIdRequest');
@@ -887,6 +909,17 @@ var MultitenantService = exports.MultitenantService = {
887
909
  responseSerialize: serialize_lansweeper_multitenant_v1_GetInstallsBySiteResponse,
888
910
  responseDeserialize: deserialize_lansweeper_multitenant_v1_GetInstallsBySiteResponse,
889
911
  },
912
+ getInstallsforMultipleSites: {
913
+ path: '/lansweeper.multitenant.v1.Multitenant/GetInstallsforMultipleSites',
914
+ requestStream: false,
915
+ responseStream: false,
916
+ requestType: multitenant_pb.GetInstallsForMultipleSitesRequest,
917
+ responseType: multitenant_pb.GetInstallsForMultipleSitesResponse,
918
+ requestSerialize: serialize_lansweeper_multitenant_v1_GetInstallsForMultipleSitesRequest,
919
+ requestDeserialize: deserialize_lansweeper_multitenant_v1_GetInstallsForMultipleSitesRequest,
920
+ responseSerialize: serialize_lansweeper_multitenant_v1_GetInstallsForMultipleSitesResponse,
921
+ responseDeserialize: deserialize_lansweeper_multitenant_v1_GetInstallsForMultipleSitesResponse,
922
+ },
890
923
  getInstallsById: {
891
924
  path: '/lansweeper.multitenant.v1.Multitenant/GetInstallsById',
892
925
  requestStream: false,
@@ -706,6 +706,50 @@ export namespace GetInstallsBySiteResponse {
706
706
  }
707
707
  }
708
708
 
709
+ export class GetInstallsForMultipleSitesRequest extends jspb.Message {
710
+ clearSiteIdsList(): void;
711
+ getSiteIdsList(): Array<string>;
712
+ setSiteIdsList(value: Array<string>): GetInstallsForMultipleSitesRequest;
713
+ addSiteIds(value: string, index?: number): string;
714
+
715
+ serializeBinary(): Uint8Array;
716
+ toObject(includeInstance?: boolean): GetInstallsForMultipleSitesRequest.AsObject;
717
+ static toObject(includeInstance: boolean, msg: GetInstallsForMultipleSitesRequest): GetInstallsForMultipleSitesRequest.AsObject;
718
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
719
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
720
+ static serializeBinaryToWriter(message: GetInstallsForMultipleSitesRequest, writer: jspb.BinaryWriter): void;
721
+ static deserializeBinary(bytes: Uint8Array): GetInstallsForMultipleSitesRequest;
722
+ static deserializeBinaryFromReader(message: GetInstallsForMultipleSitesRequest, reader: jspb.BinaryReader): GetInstallsForMultipleSitesRequest;
723
+ }
724
+
725
+ export namespace GetInstallsForMultipleSitesRequest {
726
+ export type AsObject = {
727
+ siteIdsList: Array<string>,
728
+ }
729
+ }
730
+
731
+ export class GetInstallsForMultipleSitesResponse extends jspb.Message {
732
+ clearInstallsList(): void;
733
+ getInstallsList(): Array<Install>;
734
+ setInstallsList(value: Array<Install>): GetInstallsForMultipleSitesResponse;
735
+ addInstalls(value?: Install, index?: number): Install;
736
+
737
+ serializeBinary(): Uint8Array;
738
+ toObject(includeInstance?: boolean): GetInstallsForMultipleSitesResponse.AsObject;
739
+ static toObject(includeInstance: boolean, msg: GetInstallsForMultipleSitesResponse): GetInstallsForMultipleSitesResponse.AsObject;
740
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
741
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
742
+ static serializeBinaryToWriter(message: GetInstallsForMultipleSitesResponse, writer: jspb.BinaryWriter): void;
743
+ static deserializeBinary(bytes: Uint8Array): GetInstallsForMultipleSitesResponse;
744
+ static deserializeBinaryFromReader(message: GetInstallsForMultipleSitesResponse, reader: jspb.BinaryReader): GetInstallsForMultipleSitesResponse;
745
+ }
746
+
747
+ export namespace GetInstallsForMultipleSitesResponse {
748
+ export type AsObject = {
749
+ installsList: Array<Install.AsObject>,
750
+ }
751
+ }
752
+
709
753
  export class GetInstallbyClientIdRequest extends jspb.Message {
710
754
  getClientId(): string;
711
755
  setClientId(value: string): GetInstallbyClientIdRequest;