@lansweeper/asserver-grpc 2.2.3 → 2.2.5

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.
@@ -12,7 +12,6 @@ export class StringList extends jspb.Message {
12
12
  setItemsList(value: Array<string>): StringList;
13
13
  addItems(value: string, index?: number): string;
14
14
 
15
-
16
15
  serializeBinary(): Uint8Array;
17
16
  toObject(includeInstance?: boolean): StringList.AsObject;
18
17
  static toObject(includeInstance: boolean, msg: StringList): StringList.AsObject;
@@ -36,7 +35,6 @@ export class NullableStringList extends jspb.Message {
36
35
  getData(): StringList | undefined;
37
36
  setData(value?: StringList): NullableStringList;
38
37
 
39
-
40
38
  getKindCase(): NullableStringList.KindCase;
41
39
 
42
40
  serializeBinary(): Uint8Array;
@@ -56,9 +54,38 @@ export namespace NullableStringList {
56
54
 
57
55
  export enum KindCase {
58
56
  KIND_NOT_SET = 0,
59
-
60
- DATA = 1,
57
+ DATA = 1,
58
+ }
59
+
60
+ }
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
+ }
61
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,
62
89
  }
63
90
 
64
91
  }
@@ -66,31 +93,29 @@ export namespace NullableStringList {
66
93
  export class Headers extends jspb.Message {
67
94
  getEntityName(): string;
68
95
  setEntityName(value: string): Headers;
69
-
70
96
  getEntityId(): string;
71
97
  setEntityId(value: string): Headers;
72
-
73
98
  getEntityKey(): string;
74
99
  setEntityKey(value: string): Headers;
75
-
76
100
  getSyncType(): SyncType;
77
101
  setSyncType(value: SyncType): Headers;
78
-
79
102
  getAction(): Action;
80
103
  setAction(value: Action): Headers;
81
104
 
82
-
83
105
  hasPropertiesChanged(): boolean;
84
106
  clearPropertiesChanged(): void;
85
107
  getPropertiesChanged(): NullableStringList | undefined;
86
108
  setPropertiesChanged(value?: NullableStringList): Headers;
87
109
 
88
-
89
110
  hasPolicies(): boolean;
90
111
  clearPolicies(): void;
91
112
  getPolicies(): NullableStringList | undefined;
92
113
  setPolicies(value?: NullableStringList): Headers;
93
114
 
115
+ hasRetryNumber(): boolean;
116
+ clearRetryNumber(): void;
117
+ getRetryNumber(): NullableInt32 | undefined;
118
+ setRetryNumber(value?: NullableInt32): Headers;
94
119
 
95
120
  serializeBinary(): Uint8Array;
96
121
  toObject(includeInstance?: boolean): Headers.AsObject;
@@ -111,6 +136,7 @@ export namespace Headers {
111
136
  action: Action,
112
137
  propertiesChanged?: NullableStringList.AsObject,
113
138
  policies?: NullableStringList.AsObject,
139
+ retryNumber?: NullableInt32.AsObject,
114
140
  }
115
141
  }
116
142
 
@@ -124,3 +150,8 @@ export enum Action {
124
150
  UPDATE = 1,
125
151
  DELETE = 3,
126
152
  }
153
+
154
+ export enum Origin {
155
+ ONPREM = 0,
156
+ CLOUD = 1,
157
+ }
@@ -2,11 +2,14 @@
2
2
  /**
3
3
  * @fileoverview
4
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
5
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
7
  * field starts with 'MSG_' and isn't a translatable message.
7
8
  * @public
8
9
  */
9
10
  // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
10
13
 
11
14
  var jspb = require('google-protobuf');
12
15
  var goog = jspb;
@@ -14,8 +17,11 @@ var global = Function('return this')();
14
17
 
15
18
  goog.exportSymbol('proto.lansweeper.stream.v1.Action', null, global);
16
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);
17
22
  goog.exportSymbol('proto.lansweeper.stream.v1.NullableStringList', null, global);
18
23
  goog.exportSymbol('proto.lansweeper.stream.v1.NullableStringList.KindCase', null, global);
24
+ goog.exportSymbol('proto.lansweeper.stream.v1.Origin', null, global);
19
25
  goog.exportSymbol('proto.lansweeper.stream.v1.StringList', null, global);
20
26
  goog.exportSymbol('proto.lansweeper.stream.v1.SyncType', null, global);
21
27
  /**
@@ -60,6 +66,27 @@ if (goog.DEBUG && !COMPILED) {
60
66
  */
61
67
  proto.lansweeper.stream.v1.NullableStringList.displayName = 'proto.lansweeper.stream.v1.NullableStringList';
62
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
+ }
63
90
  /**
64
91
  * Generated by JsPbCodeGenerator.
65
92
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -414,6 +441,179 @@ proto.lansweeper.stream.v1.NullableStringList.prototype.hasData = function() {
414
441
 
415
442
 
416
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
+
417
617
 
418
618
 
419
619
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -451,7 +651,8 @@ proto.lansweeper.stream.v1.Headers.toObject = function(includeInstance, msg) {
451
651
  syncType: jspb.Message.getFieldWithDefault(msg, 4, 0),
452
652
  action: jspb.Message.getFieldWithDefault(msg, 5, 0),
453
653
  propertiesChanged: (f = msg.getPropertiesChanged()) && proto.lansweeper.stream.v1.NullableStringList.toObject(includeInstance, f),
454
- 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)
455
656
  };
456
657
 
457
658
  if (includeInstance) {
@@ -518,6 +719,11 @@ proto.lansweeper.stream.v1.Headers.deserializeBinaryFromReader = function(msg, r
518
719
  reader.readMessage(value,proto.lansweeper.stream.v1.NullableStringList.deserializeBinaryFromReader);
519
720
  msg.setPolicies(value);
520
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;
521
727
  default:
522
728
  reader.skipField();
523
729
  break;
@@ -598,6 +804,14 @@ proto.lansweeper.stream.v1.Headers.serializeBinaryToWriter = function(message, w
598
804
  proto.lansweeper.stream.v1.NullableStringList.serializeBinaryToWriter
599
805
  );
600
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
+ }
601
815
  };
602
816
 
603
817
 
@@ -765,6 +979,43 @@ proto.lansweeper.stream.v1.Headers.prototype.hasPolicies = function() {
765
979
  };
766
980
 
767
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
+
768
1019
  /**
769
1020
  * @enum {number}
770
1021
  */
@@ -782,4 +1033,12 @@ proto.lansweeper.stream.v1.Action = {
782
1033
  DELETE: 3
783
1034
  };
784
1035
 
1036
+ /**
1037
+ * @enum {number}
1038
+ */
1039
+ proto.lansweeper.stream.v1.Origin = {
1040
+ ONPREM: 0,
1041
+ CLOUD: 1
1042
+ };
1043
+
785
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.3",
4
+ "version": "2.2.5",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "google-protobuf": "^3.12.4",
10
- "grpc": "^1.24.3"
9
+ "@grpc/grpc-js": "^1.3.5",
10
+ "google-protobuf": "^3.17.0"
11
11
  },
12
12
  "scripts": {
13
13
  "prepublishOnly": "cp -r ../../shared ./proto"
14
14
  },
15
- "gitHead": "357f938576ebcb8c0d9f3f76498c20a44a531e9c"
15
+ "gitHead": "c18c35b8f2c606ddb591a6c00e09f0b134361d7f"
16
16
  }
@@ -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
  }