@dashevo/dapi-grpc 4.2.0-beta.4 → 4.2.0-beta.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.
@@ -266,6 +266,8 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAgg
266
266
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause', null, { proto });
267
267
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.Operator', null, { proto });
268
268
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.RightCase', null, { proto });
269
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection', null, { proto });
270
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid', null, { proto });
269
271
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause', null, { proto });
270
272
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.TargetCase', null, { proto });
271
273
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection', null, { proto });
@@ -3798,6 +3800,48 @@ if (goog.DEBUG && !COMPILED) {
3798
3800
  */
3799
3801
  proto.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.Grid';
3800
3802
  }
3803
+ /**
3804
+ * Generated by JsPbCodeGenerator.
3805
+ * @param {Array=} opt_data Optional initial data array, typically from a
3806
+ * server response, or constructed directly in Javascript. The array is used
3807
+ * in place and becomes part of the constructed object. It is not cloned.
3808
+ * If no data is provided, the constructed object will be empty, but still
3809
+ * valid.
3810
+ * @extends {jspb.Message}
3811
+ * @constructor
3812
+ */
3813
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection = function(opt_data) {
3814
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3815
+ };
3816
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection, jspb.Message);
3817
+ if (goog.DEBUG && !COMPILED) {
3818
+ /**
3819
+ * @public
3820
+ * @override
3821
+ */
3822
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection';
3823
+ }
3824
+ /**
3825
+ * Generated by JsPbCodeGenerator.
3826
+ * @param {Array=} opt_data Optional initial data array, typically from a
3827
+ * server response, or constructed directly in Javascript. The array is used
3828
+ * in place and becomes part of the constructed object. It is not cloned.
3829
+ * If no data is provided, the constructed object will be empty, but still
3830
+ * valid.
3831
+ * @extends {jspb.Message}
3832
+ * @constructor
3833
+ */
3834
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid = function(opt_data) {
3835
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3836
+ };
3837
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid, jspb.Message);
3838
+ if (goog.DEBUG && !COMPILED) {
3839
+ /**
3840
+ * @public
3841
+ * @override
3842
+ */
3843
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid';
3844
+ }
3801
3845
  /**
3802
3846
  * Generated by JsPbCodeGenerator.
3803
3847
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -41370,7 +41414,8 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator = {
41370
41414
  BETWEEN_EXCLUDE_RIGHT: 8,
41371
41415
  IN: 9,
41372
41416
  STARTS_WITH: 10,
41373
- IN_TIME_RANGE: 11
41417
+ IN_TIME_RANGE: 11,
41418
+ IN_INTEGER_RANGE: 12
41374
41419
  };
41375
41420
 
41376
41421
 
@@ -42507,6 +42552,398 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.prototype
42507
42552
 
42508
42553
 
42509
42554
 
42555
+ if (jspb.Message.GENERATE_TO_OBJECT) {
42556
+ /**
42557
+ * Creates an object representation of this proto.
42558
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
42559
+ * Optional fields that are not set will be set to undefined.
42560
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42561
+ * For the list of reserved names please see:
42562
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42563
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42564
+ * JSPB instance for transitional soy proto support:
42565
+ * http://goto/soy-param-migration
42566
+ * @return {!Object}
42567
+ */
42568
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.toObject = function(opt_includeInstance) {
42569
+ return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.toObject(opt_includeInstance, this);
42570
+ };
42571
+
42572
+
42573
+ /**
42574
+ * Static version of the {@see toObject} method.
42575
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42576
+ * the JSPB instance for transitional soy proto support:
42577
+ * http://goto/soy-param-migration
42578
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} msg The msg instance to transform.
42579
+ * @return {!Object}
42580
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42581
+ */
42582
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.toObject = function(includeInstance, msg) {
42583
+ var f, obj = {
42584
+ start: (f = msg.getStart()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(includeInstance, f),
42585
+ grid: (f = msg.getGrid()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.toObject(includeInstance, f)
42586
+ };
42587
+
42588
+ if (includeInstance) {
42589
+ obj.$jspbMessageInstance = msg;
42590
+ }
42591
+ return obj;
42592
+ };
42593
+ }
42594
+
42595
+
42596
+ /**
42597
+ * Deserializes binary data (in protobuf wire format).
42598
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
42599
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection}
42600
+ */
42601
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.deserializeBinary = function(bytes) {
42602
+ var reader = new jspb.BinaryReader(bytes);
42603
+ var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection;
42604
+ return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.deserializeBinaryFromReader(msg, reader);
42605
+ };
42606
+
42607
+
42608
+ /**
42609
+ * Deserializes binary data (in protobuf wire format) from the
42610
+ * given reader into the given message object.
42611
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} msg The message object to deserialize into.
42612
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42613
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection}
42614
+ */
42615
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.deserializeBinaryFromReader = function(msg, reader) {
42616
+ while (reader.nextField()) {
42617
+ if (reader.isEndGroup()) {
42618
+ break;
42619
+ }
42620
+ var field = reader.getFieldNumber();
42621
+ switch (field) {
42622
+ case 1:
42623
+ var value = new proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue;
42624
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.deserializeBinaryFromReader);
42625
+ msg.setStart(value);
42626
+ break;
42627
+ case 2:
42628
+ var value = new proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid;
42629
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.deserializeBinaryFromReader);
42630
+ msg.setGrid(value);
42631
+ break;
42632
+ default:
42633
+ reader.skipField();
42634
+ break;
42635
+ }
42636
+ }
42637
+ return msg;
42638
+ };
42639
+
42640
+
42641
+ /**
42642
+ * Serializes the message to binary data (in protobuf wire format).
42643
+ * @return {!Uint8Array}
42644
+ */
42645
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.serializeBinary = function() {
42646
+ var writer = new jspb.BinaryWriter();
42647
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.serializeBinaryToWriter(this, writer);
42648
+ return writer.getResultBuffer();
42649
+ };
42650
+
42651
+
42652
+ /**
42653
+ * Serializes the given message to binary data (in protobuf wire
42654
+ * format), writing to the given BinaryWriter.
42655
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} message
42656
+ * @param {!jspb.BinaryWriter} writer
42657
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42658
+ */
42659
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.serializeBinaryToWriter = function(message, writer) {
42660
+ var f = undefined;
42661
+ f = message.getStart();
42662
+ if (f != null) {
42663
+ writer.writeMessage(
42664
+ 1,
42665
+ f,
42666
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.serializeBinaryToWriter
42667
+ );
42668
+ }
42669
+ f = message.getGrid();
42670
+ if (f != null) {
42671
+ writer.writeMessage(
42672
+ 2,
42673
+ f,
42674
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.serializeBinaryToWriter
42675
+ );
42676
+ }
42677
+ };
42678
+
42679
+
42680
+
42681
+
42682
+
42683
+ if (jspb.Message.GENERATE_TO_OBJECT) {
42684
+ /**
42685
+ * Creates an object representation of this proto.
42686
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
42687
+ * Optional fields that are not set will be set to undefined.
42688
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42689
+ * For the list of reserved names please see:
42690
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42691
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42692
+ * JSPB instance for transitional soy proto support:
42693
+ * http://goto/soy-param-migration
42694
+ * @return {!Object}
42695
+ */
42696
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.prototype.toObject = function(opt_includeInstance) {
42697
+ return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.toObject(opt_includeInstance, this);
42698
+ };
42699
+
42700
+
42701
+ /**
42702
+ * Static version of the {@see toObject} method.
42703
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42704
+ * the JSPB instance for transitional soy proto support:
42705
+ * http://goto/soy-param-migration
42706
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} msg The msg instance to transform.
42707
+ * @return {!Object}
42708
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42709
+ */
42710
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.toObject = function(includeInstance, msg) {
42711
+ var f, obj = {
42712
+ range: jspb.Message.getFieldWithDefault(msg, 1, "0"),
42713
+ step: jspb.Message.getFieldWithDefault(msg, 2, "0"),
42714
+ phase: jspb.Message.getFieldWithDefault(msg, 3, "0")
42715
+ };
42716
+
42717
+ if (includeInstance) {
42718
+ obj.$jspbMessageInstance = msg;
42719
+ }
42720
+ return obj;
42721
+ };
42722
+ }
42723
+
42724
+
42725
+ /**
42726
+ * Deserializes binary data (in protobuf wire format).
42727
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
42728
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid}
42729
+ */
42730
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.deserializeBinary = function(bytes) {
42731
+ var reader = new jspb.BinaryReader(bytes);
42732
+ var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid;
42733
+ return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.deserializeBinaryFromReader(msg, reader);
42734
+ };
42735
+
42736
+
42737
+ /**
42738
+ * Deserializes binary data (in protobuf wire format) from the
42739
+ * given reader into the given message object.
42740
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} msg The message object to deserialize into.
42741
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42742
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid}
42743
+ */
42744
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.deserializeBinaryFromReader = function(msg, reader) {
42745
+ while (reader.nextField()) {
42746
+ if (reader.isEndGroup()) {
42747
+ break;
42748
+ }
42749
+ var field = reader.getFieldNumber();
42750
+ switch (field) {
42751
+ case 1:
42752
+ var value = /** @type {string} */ (reader.readUint64String());
42753
+ msg.setRange(value);
42754
+ break;
42755
+ case 2:
42756
+ var value = /** @type {string} */ (reader.readUint64String());
42757
+ msg.setStep(value);
42758
+ break;
42759
+ case 3:
42760
+ var value = /** @type {string} */ (reader.readUint64String());
42761
+ msg.setPhase(value);
42762
+ break;
42763
+ default:
42764
+ reader.skipField();
42765
+ break;
42766
+ }
42767
+ }
42768
+ return msg;
42769
+ };
42770
+
42771
+
42772
+ /**
42773
+ * Serializes the message to binary data (in protobuf wire format).
42774
+ * @return {!Uint8Array}
42775
+ */
42776
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.prototype.serializeBinary = function() {
42777
+ var writer = new jspb.BinaryWriter();
42778
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.serializeBinaryToWriter(this, writer);
42779
+ return writer.getResultBuffer();
42780
+ };
42781
+
42782
+
42783
+ /**
42784
+ * Serializes the given message to binary data (in protobuf wire
42785
+ * format), writing to the given BinaryWriter.
42786
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} message
42787
+ * @param {!jspb.BinaryWriter} writer
42788
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42789
+ */
42790
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.serializeBinaryToWriter = function(message, writer) {
42791
+ var f = undefined;
42792
+ f = message.getRange();
42793
+ if (parseInt(f, 10) !== 0) {
42794
+ writer.writeUint64String(
42795
+ 1,
42796
+ f
42797
+ );
42798
+ }
42799
+ f = message.getStep();
42800
+ if (parseInt(f, 10) !== 0) {
42801
+ writer.writeUint64String(
42802
+ 2,
42803
+ f
42804
+ );
42805
+ }
42806
+ f = message.getPhase();
42807
+ if (parseInt(f, 10) !== 0) {
42808
+ writer.writeUint64String(
42809
+ 3,
42810
+ f
42811
+ );
42812
+ }
42813
+ };
42814
+
42815
+
42816
+ /**
42817
+ * optional uint64 range = 1;
42818
+ * @return {string}
42819
+ */
42820
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.prototype.getRange = function() {
42821
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
42822
+ };
42823
+
42824
+
42825
+ /**
42826
+ * @param {string} value
42827
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} returns this
42828
+ */
42829
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.prototype.setRange = function(value) {
42830
+ return jspb.Message.setProto3StringIntField(this, 1, value);
42831
+ };
42832
+
42833
+
42834
+ /**
42835
+ * optional uint64 step = 2;
42836
+ * @return {string}
42837
+ */
42838
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.prototype.getStep = function() {
42839
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
42840
+ };
42841
+
42842
+
42843
+ /**
42844
+ * @param {string} value
42845
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} returns this
42846
+ */
42847
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.prototype.setStep = function(value) {
42848
+ return jspb.Message.setProto3StringIntField(this, 2, value);
42849
+ };
42850
+
42851
+
42852
+ /**
42853
+ * optional uint64 phase = 3;
42854
+ * @return {string}
42855
+ */
42856
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.prototype.getPhase = function() {
42857
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
42858
+ };
42859
+
42860
+
42861
+ /**
42862
+ * @param {string} value
42863
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} returns this
42864
+ */
42865
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid.prototype.setPhase = function(value) {
42866
+ return jspb.Message.setProto3StringIntField(this, 3, value);
42867
+ };
42868
+
42869
+
42870
+ /**
42871
+ * optional DocumentFieldValue start = 1;
42872
+ * @return {?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue}
42873
+ */
42874
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.getStart = function() {
42875
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue} */ (
42876
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue, 1));
42877
+ };
42878
+
42879
+
42880
+ /**
42881
+ * @param {?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue|undefined} value
42882
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} returns this
42883
+ */
42884
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.setStart = function(value) {
42885
+ return jspb.Message.setWrapperField(this, 1, value);
42886
+ };
42887
+
42888
+
42889
+ /**
42890
+ * Clears the message field making it undefined.
42891
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} returns this
42892
+ */
42893
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.clearStart = function() {
42894
+ return this.setStart(undefined);
42895
+ };
42896
+
42897
+
42898
+ /**
42899
+ * Returns whether this field is set.
42900
+ * @return {boolean}
42901
+ */
42902
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.hasStart = function() {
42903
+ return jspb.Message.getField(this, 1) != null;
42904
+ };
42905
+
42906
+
42907
+ /**
42908
+ * optional Grid grid = 2;
42909
+ * @return {?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid}
42910
+ */
42911
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.getGrid = function() {
42912
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid} */ (
42913
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid, 2));
42914
+ };
42915
+
42916
+
42917
+ /**
42918
+ * @param {?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.Grid|undefined} value
42919
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} returns this
42920
+ */
42921
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.setGrid = function(value) {
42922
+ return jspb.Message.setWrapperField(this, 2, value);
42923
+ };
42924
+
42925
+
42926
+ /**
42927
+ * Clears the message field making it undefined.
42928
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} returns this
42929
+ */
42930
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.clearGrid = function() {
42931
+ return this.setGrid(undefined);
42932
+ };
42933
+
42934
+
42935
+ /**
42936
+ * Returns whether this field is set.
42937
+ * @return {boolean}
42938
+ */
42939
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.prototype.hasGrid = function() {
42940
+ return jspb.Message.getField(this, 2) != null;
42941
+ };
42942
+
42943
+
42944
+
42945
+
42946
+
42510
42947
  if (jspb.Message.GENERATE_TO_OBJECT) {
42511
42948
  /**
42512
42949
  * Creates an object representation of this proto.
@@ -42539,7 +42976,8 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.toObject = funct
42539
42976
  field: jspb.Message.getFieldWithDefault(msg, 1, ""),
42540
42977
  operator: jspb.Message.getFieldWithDefault(msg, 2, 0),
42541
42978
  value: (f = msg.getValue()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.toObject(includeInstance, f),
42542
- timeRange: (f = msg.getTimeRange()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.toObject(includeInstance, f)
42979
+ timeRange: (f = msg.getTimeRange()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.toObject(includeInstance, f),
42980
+ integerRange: (f = msg.getIntegerRange()) && proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.toObject(includeInstance, f)
42543
42981
  };
42544
42982
 
42545
42983
  if (includeInstance) {
@@ -42594,6 +43032,11 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.deserializeBinar
42594
43032
  reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.deserializeBinaryFromReader);
42595
43033
  msg.setTimeRange(value);
42596
43034
  break;
43035
+ case 5:
43036
+ var value = new proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection;
43037
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.deserializeBinaryFromReader);
43038
+ msg.setIntegerRange(value);
43039
+ break;
42597
43040
  default:
42598
43041
  reader.skipField();
42599
43042
  break;
@@ -42653,6 +43096,14 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.serializeBinaryT
42653
43096
  proto.org.dash.platform.dapi.v0.GetDocumentsRequest.TimeRangeSelection.serializeBinaryToWriter
42654
43097
  );
42655
43098
  }
43099
+ f = message.getIntegerRange();
43100
+ if (f != null) {
43101
+ writer.writeMessage(
43102
+ 5,
43103
+ f,
43104
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection.serializeBinaryToWriter
43105
+ );
43106
+ }
42656
43107
  };
42657
43108
 
42658
43109
 
@@ -42766,6 +43217,43 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.prototype.hasTim
42766
43217
  };
42767
43218
 
42768
43219
 
43220
+ /**
43221
+ * optional IntegerRangeSelection integer_range = 5;
43222
+ * @return {?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection}
43223
+ */
43224
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.prototype.getIntegerRange = function() {
43225
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection} */ (
43226
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection, 5));
43227
+ };
43228
+
43229
+
43230
+ /**
43231
+ * @param {?proto.org.dash.platform.dapi.v0.GetDocumentsRequest.IntegerRangeSelection|undefined} value
43232
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause} returns this
43233
+ */
43234
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.prototype.setIntegerRange = function(value) {
43235
+ return jspb.Message.setWrapperField(this, 5, value);
43236
+ };
43237
+
43238
+
43239
+ /**
43240
+ * Clears the message field making it undefined.
43241
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause} returns this
43242
+ */
43243
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.prototype.clearIntegerRange = function() {
43244
+ return this.setIntegerRange(undefined);
43245
+ };
43246
+
43247
+
43248
+ /**
43249
+ * Returns whether this field is set.
43250
+ * @return {boolean}
43251
+ */
43252
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.prototype.hasIntegerRange = function() {
43253
+ return jspb.Message.getField(this, 5) != null;
43254
+ };
43255
+
43256
+
42769
43257
 
42770
43258
 
42771
43259
 
package/codegen.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "recipe_repository": "dashpay/dash-selfhosted-image",
3
+ "recipe_revision": "e49e8bc9977f5f961a76ba1d1f7673c72173679f",
4
+ "recipe_files": {
5
+ "build.py": "17e260ff1e79e416d9addd7da32a7a04e10d7d4db07e3d919e34dac7e471dd49",
6
+ "CMakeLists.txt": "814bf56f8efd9d8ddd91e64201050ad8397071a03e21b59d6fbd83f365d137e4",
7
+ "lock.json": "f67f983d739633cf4632e9b30786a7928f1d526df969c4d4acea8804295232cc"
8
+ },
9
+ "toolchain": {
10
+ "schema": 1,
11
+ "versions": {
12
+ "protobuf": "3.18.1",
13
+ "grpc": "1.46.3",
14
+ "grpc_java": "1.42.1"
15
+ },
16
+ "sources": [
17
+ {
18
+ "url": "https://github.com/protocolbuffers/protobuf/releases/download/v3.18.1/protobuf-cpp-3.18.1.tar.gz",
19
+ "sha256": "6ee35eda3f79e49608d2ace8d866313fdec539d8bb14c6c54e8d2a16fa4e6780"
20
+ },
21
+ {
22
+ "url": "https://github.com/grpc/grpc/archive/refs/tags/v1.46.3.tar.gz",
23
+ "sha256": "d6cbf22cb5007af71b61c6be316a79397469c58c82a942552a62e708bce60964"
24
+ },
25
+ {
26
+ "url": "https://github.com/grpc/grpc-java/archive/refs/tags/v1.42.1.tar.gz",
27
+ "sha256": "33775a1ad05974bbba6ff97801cd9b326485b21fab91b08a4e1bc53e500e6326"
28
+ }
29
+ ]
30
+ }
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/dapi-grpc",
3
- "version": "4.2.0-beta.4",
3
+ "version": "4.2.0-beta.7",
4
4
  "description": "DAPI GRPC definition file and generated clients",
5
5
  "browser": "browser.js",
6
6
  "main": "node.js",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "homepage": "https://github.com/dashevo/dapi-grpc#readme",
47
47
  "dependencies": {
48
- "@dashevo/grpc-common": "4.2.0-beta.4",
48
+ "@dashevo/grpc-common": "4.2.0-beta.7",
49
49
  "@dashevo/protobufjs": "6.10.5",
50
50
  "@grpc/grpc-js": "^1.14.3",
51
51
  "@improbable-eng/grpc-web": "^0.15.0",
@@ -60,6 +60,7 @@
60
60
  "mocha": "^11.1.0",
61
61
  "mocha-sinon": "^2.1.2",
62
62
  "sinon": "^18.0.1",
63
- "sinon-chai": "^3.7.0"
63
+ "sinon-chai": "^3.7.0",
64
+ "ts-protoc-gen": "0.15.0"
64
65
  }
65
66
  }
@@ -829,7 +829,7 @@ message GetContractModerationEntriesResponse {
829
829
  }
830
830
 
831
831
  // The records of the documents a contract's moderators deleted, within one
832
- // document type whose documents they may delete (`canBeDeletedByModerators`):
832
+ // document type whose documents they may delete (`moderatorAbilities.delete`):
833
833
  // the ones of the document ids named, or one page in document id order.
834
834
  message GetContractDocumentRemovalsRequest {
835
835
  message DocumentIds {
@@ -1112,6 +1112,15 @@ message GetDocumentsRequest {
1112
1112
  // index/count proof either way. See `timeRange` in the document
1113
1113
  // meta-schema and `drive::query::resolve_time_range_bucket_clause`.
1114
1114
  IN_TIME_RANGE = 11;
1115
+ // Integer-range window selection (v1 only). `field` names an integer
1116
+ // property covered by an `integerRange` index. The operand is
1117
+ // `WhereClause.integer_range` (an `IntegerRangeSelection`);
1118
+ // `WhereClause.value` must be unset. The window is named by its
1119
+ // start, so the server and the verifier both resolve it from the
1120
+ // query alone to a window-start equality — an ordinary index/count
1121
+ // proof. See `integerRange` in the document meta-schema and
1122
+ // `drive::query::resolve_integer_range_bucket_clause`.
1123
+ IN_INTEGER_RANGE = 12;
1115
1124
  }
1116
1125
 
1117
1126
  // Tagged scalar (or list) operand for a `WhereClause`. The
@@ -1212,6 +1221,32 @@ message GetDocumentsRequest {
1212
1221
  Grid grid = 3;
1213
1222
  }
1214
1223
 
1224
+ // Operand of an `IN_INTEGER_RANGE` where clause: which window of an
1225
+ // `integerRange` grid the query selects, named by its start.
1226
+ //
1227
+ // `start` is required and must be a window start of the grid:
1228
+ // `phase + k * step` within the property's integer type, or the
1229
+ // type's minimum (0 for a property with a non-negative minimum), which
1230
+ // starts the bottom window when the grid clamps it. An unaligned start
1231
+ // is rejected rather than snapped. It rides as a `DocumentFieldValue`
1232
+ // (`int64_value` or `uint64_value`) and is coerced through the schema
1233
+ // like any value of the field. A window with no documents is a
1234
+ // provable empty answer, not an error.
1235
+ message IntegerRangeSelection {
1236
+ // Names one of the field's declared grids, verbatim from the
1237
+ // contract's `integerRange` declaration. Required when more than one
1238
+ // grid buckets the field; optional while exactly one does. A zero
1239
+ // `phase` is the proto3 default, matching the contract grammar where
1240
+ // `phase` is an omittable key.
1241
+ message Grid {
1242
+ uint64 range = 1 [jstype = JS_STRING];
1243
+ uint64 step = 2 [jstype = JS_STRING];
1244
+ uint64 phase = 3 [jstype = JS_STRING];
1245
+ }
1246
+ DocumentFieldValue start = 1;
1247
+ Grid grid = 2;
1248
+ }
1249
+
1215
1250
  // Single `field <op> value` clause. The server reassembles a
1216
1251
  // `Vec<WhereClause>` from the request's `where_clauses` field,
1217
1252
  // runs the same `WhereClause::group_clauses` validator (rejects
@@ -1222,14 +1257,16 @@ message GetDocumentsRequest {
1222
1257
  // triples — only the envelope differs.
1223
1258
  //
1224
1259
  // Exactly one operand field is set, keyed by the operator:
1225
- // `operator = IN_TIME_RANGE` carries its operand in `time_range`
1226
- // (`value` must be unset); every other operator carries `value`
1227
- // (`time_range` must be unset). Either mismatch is rejected.
1260
+ // `operator = IN_TIME_RANGE` carries its operand in `time_range`,
1261
+ // `operator = IN_INTEGER_RANGE` in `integer_range` (`value` unset in
1262
+ // both); every other operator carries `value` (`time_range` and
1263
+ // `integer_range` unset). Any mismatch is rejected.
1228
1264
  message WhereClause {
1229
1265
  string field = 1;
1230
1266
  WhereOperator operator = 2;
1231
1267
  DocumentFieldValue value = 3;
1232
1268
  TimeRangeSelection time_range = 4;
1269
+ IntegerRangeSelection integer_range = 5;
1233
1270
  }
1234
1271
 
1235
1272
  // Per-group aggregate operand for the left side of a