@lansweeper/asserver-grpc 2.2.4 → 2.2.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.
@@ -59,6 +59,37 @@ export namespace NullableStringList {
59
59
 
60
60
  }
61
61
 
62
+ export class NullableInt32 extends jspb.Message {
63
+
64
+ hasData(): boolean;
65
+ clearData(): void;
66
+ getData(): number;
67
+ setData(value: number): NullableInt32;
68
+
69
+ getKindCase(): NullableInt32.KindCase;
70
+
71
+ serializeBinary(): Uint8Array;
72
+ toObject(includeInstance?: boolean): NullableInt32.AsObject;
73
+ static toObject(includeInstance: boolean, msg: NullableInt32): NullableInt32.AsObject;
74
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
75
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
76
+ static serializeBinaryToWriter(message: NullableInt32, writer: jspb.BinaryWriter): void;
77
+ static deserializeBinary(bytes: Uint8Array): NullableInt32;
78
+ static deserializeBinaryFromReader(message: NullableInt32, reader: jspb.BinaryReader): NullableInt32;
79
+ }
80
+
81
+ export namespace NullableInt32 {
82
+ export type AsObject = {
83
+ data: number,
84
+ }
85
+
86
+ export enum KindCase {
87
+ KIND_NOT_SET = 0,
88
+ DATA = 1,
89
+ }
90
+
91
+ }
92
+
62
93
  export class Headers extends jspb.Message {
63
94
  getEntityName(): string;
64
95
  setEntityName(value: string): Headers;
@@ -81,6 +112,11 @@ export class Headers extends jspb.Message {
81
112
  getPolicies(): NullableStringList | undefined;
82
113
  setPolicies(value?: NullableStringList): Headers;
83
114
 
115
+ hasRetryNumber(): boolean;
116
+ clearRetryNumber(): void;
117
+ getRetryNumber(): NullableInt32 | undefined;
118
+ setRetryNumber(value?: NullableInt32): Headers;
119
+
84
120
  serializeBinary(): Uint8Array;
85
121
  toObject(includeInstance?: boolean): Headers.AsObject;
86
122
  static toObject(includeInstance: boolean, msg: Headers): Headers.AsObject;
@@ -100,6 +136,7 @@ export namespace Headers {
100
136
  action: Action,
101
137
  propertiesChanged?: NullableStringList.AsObject,
102
138
  policies?: NullableStringList.AsObject,
139
+ retryNumber?: NullableInt32.AsObject,
103
140
  }
104
141
  }
105
142
 
@@ -113,3 +150,8 @@ export enum Action {
113
150
  UPDATE = 1,
114
151
  DELETE = 3,
115
152
  }
153
+
154
+ export enum Origin {
155
+ ONPREM = 0,
156
+ CLOUD = 1,
157
+ }
@@ -17,8 +17,11 @@ var global = Function('return this')();
17
17
 
18
18
  goog.exportSymbol('proto.lansweeper.stream.v1.Action', null, global);
19
19
  goog.exportSymbol('proto.lansweeper.stream.v1.Headers', null, global);
20
+ goog.exportSymbol('proto.lansweeper.stream.v1.NullableInt32', null, global);
21
+ goog.exportSymbol('proto.lansweeper.stream.v1.NullableInt32.KindCase', null, global);
20
22
  goog.exportSymbol('proto.lansweeper.stream.v1.NullableStringList', null, global);
21
23
  goog.exportSymbol('proto.lansweeper.stream.v1.NullableStringList.KindCase', null, global);
24
+ goog.exportSymbol('proto.lansweeper.stream.v1.Origin', null, global);
22
25
  goog.exportSymbol('proto.lansweeper.stream.v1.StringList', null, global);
23
26
  goog.exportSymbol('proto.lansweeper.stream.v1.SyncType', null, global);
24
27
  /**
@@ -63,6 +66,27 @@ if (goog.DEBUG && !COMPILED) {
63
66
  */
64
67
  proto.lansweeper.stream.v1.NullableStringList.displayName = 'proto.lansweeper.stream.v1.NullableStringList';
65
68
  }
69
+ /**
70
+ * Generated by JsPbCodeGenerator.
71
+ * @param {Array=} opt_data Optional initial data array, typically from a
72
+ * server response, or constructed directly in Javascript. The array is used
73
+ * in place and becomes part of the constructed object. It is not cloned.
74
+ * If no data is provided, the constructed object will be empty, but still
75
+ * valid.
76
+ * @extends {jspb.Message}
77
+ * @constructor
78
+ */
79
+ proto.lansweeper.stream.v1.NullableInt32 = function(opt_data) {
80
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lansweeper.stream.v1.NullableInt32.oneofGroups_);
81
+ };
82
+ goog.inherits(proto.lansweeper.stream.v1.NullableInt32, jspb.Message);
83
+ if (goog.DEBUG && !COMPILED) {
84
+ /**
85
+ * @public
86
+ * @override
87
+ */
88
+ proto.lansweeper.stream.v1.NullableInt32.displayName = 'proto.lansweeper.stream.v1.NullableInt32';
89
+ }
66
90
  /**
67
91
  * Generated by JsPbCodeGenerator.
68
92
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -417,6 +441,179 @@ proto.lansweeper.stream.v1.NullableStringList.prototype.hasData = function() {
417
441
 
418
442
 
419
443
 
444
+ /**
445
+ * Oneof group definitions for this message. Each group defines the field
446
+ * numbers belonging to that group. When of these fields' value is set, all
447
+ * other fields in the group are cleared. During deserialization, if multiple
448
+ * fields are encountered for a group, only the last value seen will be kept.
449
+ * @private {!Array<!Array<number>>}
450
+ * @const
451
+ */
452
+ proto.lansweeper.stream.v1.NullableInt32.oneofGroups_ = [[1]];
453
+
454
+ /**
455
+ * @enum {number}
456
+ */
457
+ proto.lansweeper.stream.v1.NullableInt32.KindCase = {
458
+ KIND_NOT_SET: 0,
459
+ DATA: 1
460
+ };
461
+
462
+ /**
463
+ * @return {proto.lansweeper.stream.v1.NullableInt32.KindCase}
464
+ */
465
+ proto.lansweeper.stream.v1.NullableInt32.prototype.getKindCase = function() {
466
+ return /** @type {proto.lansweeper.stream.v1.NullableInt32.KindCase} */(jspb.Message.computeOneofCase(this, proto.lansweeper.stream.v1.NullableInt32.oneofGroups_[0]));
467
+ };
468
+
469
+
470
+
471
+ if (jspb.Message.GENERATE_TO_OBJECT) {
472
+ /**
473
+ * Creates an object representation of this proto.
474
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
475
+ * Optional fields that are not set will be set to undefined.
476
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
477
+ * For the list of reserved names please see:
478
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
479
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
480
+ * JSPB instance for transitional soy proto support:
481
+ * http://goto/soy-param-migration
482
+ * @return {!Object}
483
+ */
484
+ proto.lansweeper.stream.v1.NullableInt32.prototype.toObject = function(opt_includeInstance) {
485
+ return proto.lansweeper.stream.v1.NullableInt32.toObject(opt_includeInstance, this);
486
+ };
487
+
488
+
489
+ /**
490
+ * Static version of the {@see toObject} method.
491
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
492
+ * the JSPB instance for transitional soy proto support:
493
+ * http://goto/soy-param-migration
494
+ * @param {!proto.lansweeper.stream.v1.NullableInt32} msg The msg instance to transform.
495
+ * @return {!Object}
496
+ * @suppress {unusedLocalVariables} f is only used for nested messages
497
+ */
498
+ proto.lansweeper.stream.v1.NullableInt32.toObject = function(includeInstance, msg) {
499
+ var f, obj = {
500
+ data: jspb.Message.getFieldWithDefault(msg, 1, 0)
501
+ };
502
+
503
+ if (includeInstance) {
504
+ obj.$jspbMessageInstance = msg;
505
+ }
506
+ return obj;
507
+ };
508
+ }
509
+
510
+
511
+ /**
512
+ * Deserializes binary data (in protobuf wire format).
513
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
514
+ * @return {!proto.lansweeper.stream.v1.NullableInt32}
515
+ */
516
+ proto.lansweeper.stream.v1.NullableInt32.deserializeBinary = function(bytes) {
517
+ var reader = new jspb.BinaryReader(bytes);
518
+ var msg = new proto.lansweeper.stream.v1.NullableInt32;
519
+ return proto.lansweeper.stream.v1.NullableInt32.deserializeBinaryFromReader(msg, reader);
520
+ };
521
+
522
+
523
+ /**
524
+ * Deserializes binary data (in protobuf wire format) from the
525
+ * given reader into the given message object.
526
+ * @param {!proto.lansweeper.stream.v1.NullableInt32} msg The message object to deserialize into.
527
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
528
+ * @return {!proto.lansweeper.stream.v1.NullableInt32}
529
+ */
530
+ proto.lansweeper.stream.v1.NullableInt32.deserializeBinaryFromReader = function(msg, reader) {
531
+ while (reader.nextField()) {
532
+ if (reader.isEndGroup()) {
533
+ break;
534
+ }
535
+ var field = reader.getFieldNumber();
536
+ switch (field) {
537
+ case 1:
538
+ var value = /** @type {number} */ (reader.readInt32());
539
+ msg.setData(value);
540
+ break;
541
+ default:
542
+ reader.skipField();
543
+ break;
544
+ }
545
+ }
546
+ return msg;
547
+ };
548
+
549
+
550
+ /**
551
+ * Serializes the message to binary data (in protobuf wire format).
552
+ * @return {!Uint8Array}
553
+ */
554
+ proto.lansweeper.stream.v1.NullableInt32.prototype.serializeBinary = function() {
555
+ var writer = new jspb.BinaryWriter();
556
+ proto.lansweeper.stream.v1.NullableInt32.serializeBinaryToWriter(this, writer);
557
+ return writer.getResultBuffer();
558
+ };
559
+
560
+
561
+ /**
562
+ * Serializes the given message to binary data (in protobuf wire
563
+ * format), writing to the given BinaryWriter.
564
+ * @param {!proto.lansweeper.stream.v1.NullableInt32} message
565
+ * @param {!jspb.BinaryWriter} writer
566
+ * @suppress {unusedLocalVariables} f is only used for nested messages
567
+ */
568
+ proto.lansweeper.stream.v1.NullableInt32.serializeBinaryToWriter = function(message, writer) {
569
+ var f = undefined;
570
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
571
+ if (f != null) {
572
+ writer.writeInt32(
573
+ 1,
574
+ f
575
+ );
576
+ }
577
+ };
578
+
579
+
580
+ /**
581
+ * optional int32 data = 1;
582
+ * @return {number}
583
+ */
584
+ proto.lansweeper.stream.v1.NullableInt32.prototype.getData = function() {
585
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
586
+ };
587
+
588
+
589
+ /**
590
+ * @param {number} value
591
+ * @return {!proto.lansweeper.stream.v1.NullableInt32} returns this
592
+ */
593
+ proto.lansweeper.stream.v1.NullableInt32.prototype.setData = function(value) {
594
+ return jspb.Message.setOneofField(this, 1, proto.lansweeper.stream.v1.NullableInt32.oneofGroups_[0], value);
595
+ };
596
+
597
+
598
+ /**
599
+ * Clears the field making it undefined.
600
+ * @return {!proto.lansweeper.stream.v1.NullableInt32} returns this
601
+ */
602
+ proto.lansweeper.stream.v1.NullableInt32.prototype.clearData = function() {
603
+ return jspb.Message.setOneofField(this, 1, proto.lansweeper.stream.v1.NullableInt32.oneofGroups_[0], undefined);
604
+ };
605
+
606
+
607
+ /**
608
+ * Returns whether this field is set.
609
+ * @return {boolean}
610
+ */
611
+ proto.lansweeper.stream.v1.NullableInt32.prototype.hasData = function() {
612
+ return jspb.Message.getField(this, 1) != null;
613
+ };
614
+
615
+
616
+
420
617
 
421
618
 
422
619
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -454,7 +651,8 @@ proto.lansweeper.stream.v1.Headers.toObject = function(includeInstance, msg) {
454
651
  syncType: jspb.Message.getFieldWithDefault(msg, 4, 0),
455
652
  action: jspb.Message.getFieldWithDefault(msg, 5, 0),
456
653
  propertiesChanged: (f = msg.getPropertiesChanged()) && proto.lansweeper.stream.v1.NullableStringList.toObject(includeInstance, f),
457
- policies: (f = msg.getPolicies()) && proto.lansweeper.stream.v1.NullableStringList.toObject(includeInstance, f)
654
+ policies: (f = msg.getPolicies()) && proto.lansweeper.stream.v1.NullableStringList.toObject(includeInstance, f),
655
+ retryNumber: (f = msg.getRetryNumber()) && proto.lansweeper.stream.v1.NullableInt32.toObject(includeInstance, f)
458
656
  };
459
657
 
460
658
  if (includeInstance) {
@@ -521,6 +719,11 @@ proto.lansweeper.stream.v1.Headers.deserializeBinaryFromReader = function(msg, r
521
719
  reader.readMessage(value,proto.lansweeper.stream.v1.NullableStringList.deserializeBinaryFromReader);
522
720
  msg.setPolicies(value);
523
721
  break;
722
+ case 8:
723
+ var value = new proto.lansweeper.stream.v1.NullableInt32;
724
+ reader.readMessage(value,proto.lansweeper.stream.v1.NullableInt32.deserializeBinaryFromReader);
725
+ msg.setRetryNumber(value);
726
+ break;
524
727
  default:
525
728
  reader.skipField();
526
729
  break;
@@ -601,6 +804,14 @@ proto.lansweeper.stream.v1.Headers.serializeBinaryToWriter = function(message, w
601
804
  proto.lansweeper.stream.v1.NullableStringList.serializeBinaryToWriter
602
805
  );
603
806
  }
807
+ f = message.getRetryNumber();
808
+ if (f != null) {
809
+ writer.writeMessage(
810
+ 8,
811
+ f,
812
+ proto.lansweeper.stream.v1.NullableInt32.serializeBinaryToWriter
813
+ );
814
+ }
604
815
  };
605
816
 
606
817
 
@@ -768,6 +979,43 @@ proto.lansweeper.stream.v1.Headers.prototype.hasPolicies = function() {
768
979
  };
769
980
 
770
981
 
982
+ /**
983
+ * optional NullableInt32 retry_number = 8;
984
+ * @return {?proto.lansweeper.stream.v1.NullableInt32}
985
+ */
986
+ proto.lansweeper.stream.v1.Headers.prototype.getRetryNumber = function() {
987
+ return /** @type{?proto.lansweeper.stream.v1.NullableInt32} */ (
988
+ jspb.Message.getWrapperField(this, proto.lansweeper.stream.v1.NullableInt32, 8));
989
+ };
990
+
991
+
992
+ /**
993
+ * @param {?proto.lansweeper.stream.v1.NullableInt32|undefined} value
994
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
995
+ */
996
+ proto.lansweeper.stream.v1.Headers.prototype.setRetryNumber = function(value) {
997
+ return jspb.Message.setWrapperField(this, 8, value);
998
+ };
999
+
1000
+
1001
+ /**
1002
+ * Clears the message field making it undefined.
1003
+ * @return {!proto.lansweeper.stream.v1.Headers} returns this
1004
+ */
1005
+ proto.lansweeper.stream.v1.Headers.prototype.clearRetryNumber = function() {
1006
+ return this.setRetryNumber(undefined);
1007
+ };
1008
+
1009
+
1010
+ /**
1011
+ * Returns whether this field is set.
1012
+ * @return {boolean}
1013
+ */
1014
+ proto.lansweeper.stream.v1.Headers.prototype.hasRetryNumber = function() {
1015
+ return jspb.Message.getField(this, 8) != null;
1016
+ };
1017
+
1018
+
771
1019
  /**
772
1020
  * @enum {number}
773
1021
  */
@@ -785,4 +1033,12 @@ proto.lansweeper.stream.v1.Action = {
785
1033
  DELETE: 3
786
1034
  };
787
1035
 
1036
+ /**
1037
+ * @enum {number}
1038
+ */
1039
+ proto.lansweeper.stream.v1.Origin = {
1040
+ ONPREM: 0,
1041
+ CLOUD: 1
1042
+ };
1043
+
788
1044
  goog.object.extend(exports, proto.lansweeper.stream.v1);
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@lansweeper/asserver-grpc",
3
3
  "description": "asserver-grpc.",
4
- "version": "2.2.4",
4
+ "version": "2.2.6",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@grpc/grpc-js": "^1.3.2",
9
+ "@grpc/grpc-js": "^1.3.5",
10
10
  "google-protobuf": "^3.17.0"
11
11
  },
12
12
  "scripts": {
13
13
  "prepublishOnly": "cp -r ../../shared ./proto"
14
14
  },
15
- "gitHead": "f2b029a2de060d0bded7b42ed6caacc44f3ebd45"
15
+ "gitHead": "e94689c34123af69cae2e81a19fdeeba8bf577ed"
16
16
  }
@@ -12,12 +12,6 @@ message NullableString {
12
12
  }
13
13
  }
14
14
 
15
- message NullableInt32 {
16
- oneof kind {
17
- int32 data = 1;
18
- }
19
- }
20
-
21
15
  message NullableInt64 {
22
16
  oneof kind {
23
17
  int64 data = 1;
@@ -107,7 +101,7 @@ message AsServer {
107
101
  NullableBoolean asset_group_sscannow = 74;
108
102
  bool renamed_computer_detection = 75;
109
103
  string last_active_scan = 76;
110
- NullableInt32 max_deployment_threads = 77;
104
+ lansweeper.stream.v1.NullableInt32 max_deployment_threads = 77;
111
105
  string del_deployment_log_days = 78;
112
106
  int32 scan_history_days = 79;
113
107
  int32 active_scanning_maxrescan_time = 80;
@@ -115,7 +109,7 @@ message AsServer {
115
109
  int32 active_scanning_inter_val = 82;
116
110
  bool clear_queue = 83;
117
111
  bool mail_server = 84;
118
- NullableInt32 encryption_key_hash = 85;
112
+ lansweeper.stream.v1.NullableInt32 encryption_key_hash = 85;
119
113
  int32 del_configuration_log_days = 86;
120
114
  int32 del_login_log_days = 87;
121
115
  int32 proxy_timeout = 88;
@@ -130,7 +124,7 @@ message AsServer {
130
124
  int32 del_sccm_data_days = 97;
131
125
  bool d_e_l_s_c_c_m_c_o_m_p = 98;
132
126
  bool scan_last_logon = 99;
133
- NullableInt32 proxy_port = 100;
127
+ lansweeper.stream.v1.NullableInt32 proxy_port = 100;
134
128
  bool is_asset_radar_compatible = 101;
135
129
  NullableString asset_radar_compatible_last_scanned = 102;
136
130
  bool check_asset_radar_compatibility_now = 103;
@@ -14,6 +14,12 @@ message NullableStringList {
14
14
  }
15
15
  }
16
16
 
17
+ message NullableInt32 {
18
+ oneof kind {
19
+ int32 data = 1;
20
+ }
21
+ }
22
+
17
23
  enum SyncType {
18
24
  FULLLSYNC = 0;
19
25
  REGULARSYNC = 1;
@@ -25,6 +31,11 @@ enum Action {
25
31
  DELETE = 3;
26
32
  }
27
33
 
34
+ enum Origin {
35
+ ONPREM = 0;
36
+ CLOUD = 1;
37
+ }
38
+
28
39
  message Headers {
29
40
  string entity_name = 1;
30
41
  string entity_id = 2;
@@ -33,4 +44,5 @@ message Headers {
33
44
  Action action = 5;
34
45
  NullableStringList properties_changed = 6;
35
46
  NullableStringList policies = 7;
47
+ NullableInt32 retry_number = 8;
36
48
  }