protobuf-platform 1.2.751 → 1.2.752

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.
@@ -102,6 +102,21 @@ message DashboardResponse {
102
102
  // Exact Casino-only totals; legacy combined float fields remain unchanged.
103
103
  optional string casino_ggr_usd = 35;
104
104
  optional string casino_turnover_usd = 36;
105
+ optional CasinoAccounting casino_accounting = 37;
106
+ }
107
+
108
+ // Signed net USD components, including exact-once original-category reversals.
109
+ // Read-only calculations; no runtime accounting policy selector.
110
+ message CasinoAccounting {
111
+ string real_bet = 1;
112
+ string real_win = 2;
113
+ string bonus_bet = 3;
114
+ string bonus_win = 4;
115
+ string fs_win = 5;
116
+ string ggr_excluding_fs = 6;
117
+ string ggr_including_fs = 7;
118
+ string default_ggr = 8; // EXCLUDING_FS
119
+ bool hourly_conserved = 9; // Not proof of complete Bet reconciliation.
105
120
  }
106
121
 
107
122
  message MainDashboardResponse {
@@ -23,6 +23,7 @@ var global = (function() {
23
23
 
24
24
  goog.exportSymbol('proto.analytic.AffiliateWageredPlayerItem', null, global);
25
25
  goog.exportSymbol('proto.analytic.AffiliateWageredSortItem', null, global);
26
+ goog.exportSymbol('proto.analytic.CasinoAccounting', null, global);
26
27
  goog.exportSymbol('proto.analytic.DashboardRequest', null, global);
27
28
  goog.exportSymbol('proto.analytic.DashboardResponse', null, global);
28
29
  goog.exportSymbol('proto.analytic.DashboardTurnoverSeries', null, global);
@@ -179,6 +180,27 @@ if (goog.DEBUG && !COMPILED) {
179
180
  */
180
181
  proto.analytic.DashboardResponse.displayName = 'proto.analytic.DashboardResponse';
181
182
  }
183
+ /**
184
+ * Generated by JsPbCodeGenerator.
185
+ * @param {Array=} opt_data Optional initial data array, typically from a
186
+ * server response, or constructed directly in Javascript. The array is used
187
+ * in place and becomes part of the constructed object. It is not cloned.
188
+ * If no data is provided, the constructed object will be empty, but still
189
+ * valid.
190
+ * @extends {jspb.Message}
191
+ * @constructor
192
+ */
193
+ proto.analytic.CasinoAccounting = function(opt_data) {
194
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
195
+ };
196
+ goog.inherits(proto.analytic.CasinoAccounting, jspb.Message);
197
+ if (goog.DEBUG && !COMPILED) {
198
+ /**
199
+ * @public
200
+ * @override
201
+ */
202
+ proto.analytic.CasinoAccounting.displayName = 'proto.analytic.CasinoAccounting';
203
+ }
182
204
  /**
183
205
  * Generated by JsPbCodeGenerator.
184
206
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1763,7 +1785,8 @@ proto.analytic.DashboardResponse.toObject = function(includeInstance, msg) {
1763
1785
  casinoWinFsUsd: jspb.Message.getFieldWithDefault(msg, 33, ""),
1764
1786
  casinoBetFsUsd: jspb.Message.getFieldWithDefault(msg, 34, ""),
1765
1787
  casinoGgrUsd: jspb.Message.getFieldWithDefault(msg, 35, ""),
1766
- casinoTurnoverUsd: jspb.Message.getFieldWithDefault(msg, 36, "")
1788
+ casinoTurnoverUsd: jspb.Message.getFieldWithDefault(msg, 36, ""),
1789
+ casinoAccounting: (f = msg.getCasinoAccounting()) && proto.analytic.CasinoAccounting.toObject(includeInstance, f)
1767
1790
  };
1768
1791
 
1769
1792
  if (includeInstance) {
@@ -1944,6 +1967,11 @@ proto.analytic.DashboardResponse.deserializeBinaryFromReader = function(msg, rea
1944
1967
  var value = /** @type {string} */ (reader.readString());
1945
1968
  msg.setCasinoTurnoverUsd(value);
1946
1969
  break;
1970
+ case 37:
1971
+ var value = new proto.analytic.CasinoAccounting;
1972
+ reader.readMessage(value,proto.analytic.CasinoAccounting.deserializeBinaryFromReader);
1973
+ msg.setCasinoAccounting(value);
1974
+ break;
1947
1975
  default:
1948
1976
  reader.skipField();
1949
1977
  break;
@@ -2225,6 +2253,14 @@ proto.analytic.DashboardResponse.serializeBinaryToWriter = function(message, wri
2225
2253
  f
2226
2254
  );
2227
2255
  }
2256
+ f = message.getCasinoAccounting();
2257
+ if (f != null) {
2258
+ writer.writeMessage(
2259
+ 37,
2260
+ f,
2261
+ proto.analytic.CasinoAccounting.serializeBinaryToWriter
2262
+ );
2263
+ }
2228
2264
  };
2229
2265
 
2230
2266
 
@@ -3524,6 +3560,413 @@ proto.analytic.DashboardResponse.prototype.hasCasinoTurnoverUsd = function() {
3524
3560
  };
3525
3561
 
3526
3562
 
3563
+ /**
3564
+ * optional CasinoAccounting casino_accounting = 37;
3565
+ * @return {?proto.analytic.CasinoAccounting}
3566
+ */
3567
+ proto.analytic.DashboardResponse.prototype.getCasinoAccounting = function() {
3568
+ return /** @type{?proto.analytic.CasinoAccounting} */ (
3569
+ jspb.Message.getWrapperField(this, proto.analytic.CasinoAccounting, 37));
3570
+ };
3571
+
3572
+
3573
+ /**
3574
+ * @param {?proto.analytic.CasinoAccounting|undefined} value
3575
+ * @return {!proto.analytic.DashboardResponse} returns this
3576
+ */
3577
+ proto.analytic.DashboardResponse.prototype.setCasinoAccounting = function(value) {
3578
+ return jspb.Message.setWrapperField(this, 37, value);
3579
+ };
3580
+
3581
+
3582
+ /**
3583
+ * Clears the message field making it undefined.
3584
+ * @return {!proto.analytic.DashboardResponse} returns this
3585
+ */
3586
+ proto.analytic.DashboardResponse.prototype.clearCasinoAccounting = function() {
3587
+ return this.setCasinoAccounting(undefined);
3588
+ };
3589
+
3590
+
3591
+ /**
3592
+ * Returns whether this field is set.
3593
+ * @return {boolean}
3594
+ */
3595
+ proto.analytic.DashboardResponse.prototype.hasCasinoAccounting = function() {
3596
+ return jspb.Message.getField(this, 37) != null;
3597
+ };
3598
+
3599
+
3600
+
3601
+
3602
+
3603
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3604
+ /**
3605
+ * Creates an object representation of this proto.
3606
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3607
+ * Optional fields that are not set will be set to undefined.
3608
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3609
+ * For the list of reserved names please see:
3610
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3611
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3612
+ * JSPB instance for transitional soy proto support:
3613
+ * http://goto/soy-param-migration
3614
+ * @return {!Object}
3615
+ */
3616
+ proto.analytic.CasinoAccounting.prototype.toObject = function(opt_includeInstance) {
3617
+ return proto.analytic.CasinoAccounting.toObject(opt_includeInstance, this);
3618
+ };
3619
+
3620
+
3621
+ /**
3622
+ * Static version of the {@see toObject} method.
3623
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3624
+ * the JSPB instance for transitional soy proto support:
3625
+ * http://goto/soy-param-migration
3626
+ * @param {!proto.analytic.CasinoAccounting} msg The msg instance to transform.
3627
+ * @return {!Object}
3628
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3629
+ */
3630
+ proto.analytic.CasinoAccounting.toObject = function(includeInstance, msg) {
3631
+ var f, obj = {
3632
+ realBet: jspb.Message.getFieldWithDefault(msg, 1, ""),
3633
+ realWin: jspb.Message.getFieldWithDefault(msg, 2, ""),
3634
+ bonusBet: jspb.Message.getFieldWithDefault(msg, 3, ""),
3635
+ bonusWin: jspb.Message.getFieldWithDefault(msg, 4, ""),
3636
+ fsWin: jspb.Message.getFieldWithDefault(msg, 5, ""),
3637
+ ggrExcludingFs: jspb.Message.getFieldWithDefault(msg, 6, ""),
3638
+ ggrIncludingFs: jspb.Message.getFieldWithDefault(msg, 7, ""),
3639
+ defaultGgr: jspb.Message.getFieldWithDefault(msg, 8, ""),
3640
+ hourlyConserved: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
3641
+ };
3642
+
3643
+ if (includeInstance) {
3644
+ obj.$jspbMessageInstance = msg;
3645
+ }
3646
+ return obj;
3647
+ };
3648
+ }
3649
+
3650
+
3651
+ /**
3652
+ * Deserializes binary data (in protobuf wire format).
3653
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3654
+ * @return {!proto.analytic.CasinoAccounting}
3655
+ */
3656
+ proto.analytic.CasinoAccounting.deserializeBinary = function(bytes) {
3657
+ var reader = new jspb.BinaryReader(bytes);
3658
+ var msg = new proto.analytic.CasinoAccounting;
3659
+ return proto.analytic.CasinoAccounting.deserializeBinaryFromReader(msg, reader);
3660
+ };
3661
+
3662
+
3663
+ /**
3664
+ * Deserializes binary data (in protobuf wire format) from the
3665
+ * given reader into the given message object.
3666
+ * @param {!proto.analytic.CasinoAccounting} msg The message object to deserialize into.
3667
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3668
+ * @return {!proto.analytic.CasinoAccounting}
3669
+ */
3670
+ proto.analytic.CasinoAccounting.deserializeBinaryFromReader = function(msg, reader) {
3671
+ while (reader.nextField()) {
3672
+ if (reader.isEndGroup()) {
3673
+ break;
3674
+ }
3675
+ var field = reader.getFieldNumber();
3676
+ switch (field) {
3677
+ case 1:
3678
+ var value = /** @type {string} */ (reader.readString());
3679
+ msg.setRealBet(value);
3680
+ break;
3681
+ case 2:
3682
+ var value = /** @type {string} */ (reader.readString());
3683
+ msg.setRealWin(value);
3684
+ break;
3685
+ case 3:
3686
+ var value = /** @type {string} */ (reader.readString());
3687
+ msg.setBonusBet(value);
3688
+ break;
3689
+ case 4:
3690
+ var value = /** @type {string} */ (reader.readString());
3691
+ msg.setBonusWin(value);
3692
+ break;
3693
+ case 5:
3694
+ var value = /** @type {string} */ (reader.readString());
3695
+ msg.setFsWin(value);
3696
+ break;
3697
+ case 6:
3698
+ var value = /** @type {string} */ (reader.readString());
3699
+ msg.setGgrExcludingFs(value);
3700
+ break;
3701
+ case 7:
3702
+ var value = /** @type {string} */ (reader.readString());
3703
+ msg.setGgrIncludingFs(value);
3704
+ break;
3705
+ case 8:
3706
+ var value = /** @type {string} */ (reader.readString());
3707
+ msg.setDefaultGgr(value);
3708
+ break;
3709
+ case 9:
3710
+ var value = /** @type {boolean} */ (reader.readBool());
3711
+ msg.setHourlyConserved(value);
3712
+ break;
3713
+ default:
3714
+ reader.skipField();
3715
+ break;
3716
+ }
3717
+ }
3718
+ return msg;
3719
+ };
3720
+
3721
+
3722
+ /**
3723
+ * Serializes the message to binary data (in protobuf wire format).
3724
+ * @return {!Uint8Array}
3725
+ */
3726
+ proto.analytic.CasinoAccounting.prototype.serializeBinary = function() {
3727
+ var writer = new jspb.BinaryWriter();
3728
+ proto.analytic.CasinoAccounting.serializeBinaryToWriter(this, writer);
3729
+ return writer.getResultBuffer();
3730
+ };
3731
+
3732
+
3733
+ /**
3734
+ * Serializes the given message to binary data (in protobuf wire
3735
+ * format), writing to the given BinaryWriter.
3736
+ * @param {!proto.analytic.CasinoAccounting} message
3737
+ * @param {!jspb.BinaryWriter} writer
3738
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3739
+ */
3740
+ proto.analytic.CasinoAccounting.serializeBinaryToWriter = function(message, writer) {
3741
+ var f = undefined;
3742
+ f = message.getRealBet();
3743
+ if (f.length > 0) {
3744
+ writer.writeString(
3745
+ 1,
3746
+ f
3747
+ );
3748
+ }
3749
+ f = message.getRealWin();
3750
+ if (f.length > 0) {
3751
+ writer.writeString(
3752
+ 2,
3753
+ f
3754
+ );
3755
+ }
3756
+ f = message.getBonusBet();
3757
+ if (f.length > 0) {
3758
+ writer.writeString(
3759
+ 3,
3760
+ f
3761
+ );
3762
+ }
3763
+ f = message.getBonusWin();
3764
+ if (f.length > 0) {
3765
+ writer.writeString(
3766
+ 4,
3767
+ f
3768
+ );
3769
+ }
3770
+ f = message.getFsWin();
3771
+ if (f.length > 0) {
3772
+ writer.writeString(
3773
+ 5,
3774
+ f
3775
+ );
3776
+ }
3777
+ f = message.getGgrExcludingFs();
3778
+ if (f.length > 0) {
3779
+ writer.writeString(
3780
+ 6,
3781
+ f
3782
+ );
3783
+ }
3784
+ f = message.getGgrIncludingFs();
3785
+ if (f.length > 0) {
3786
+ writer.writeString(
3787
+ 7,
3788
+ f
3789
+ );
3790
+ }
3791
+ f = message.getDefaultGgr();
3792
+ if (f.length > 0) {
3793
+ writer.writeString(
3794
+ 8,
3795
+ f
3796
+ );
3797
+ }
3798
+ f = message.getHourlyConserved();
3799
+ if (f) {
3800
+ writer.writeBool(
3801
+ 9,
3802
+ f
3803
+ );
3804
+ }
3805
+ };
3806
+
3807
+
3808
+ /**
3809
+ * optional string real_bet = 1;
3810
+ * @return {string}
3811
+ */
3812
+ proto.analytic.CasinoAccounting.prototype.getRealBet = function() {
3813
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3814
+ };
3815
+
3816
+
3817
+ /**
3818
+ * @param {string} value
3819
+ * @return {!proto.analytic.CasinoAccounting} returns this
3820
+ */
3821
+ proto.analytic.CasinoAccounting.prototype.setRealBet = function(value) {
3822
+ return jspb.Message.setProto3StringField(this, 1, value);
3823
+ };
3824
+
3825
+
3826
+ /**
3827
+ * optional string real_win = 2;
3828
+ * @return {string}
3829
+ */
3830
+ proto.analytic.CasinoAccounting.prototype.getRealWin = function() {
3831
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3832
+ };
3833
+
3834
+
3835
+ /**
3836
+ * @param {string} value
3837
+ * @return {!proto.analytic.CasinoAccounting} returns this
3838
+ */
3839
+ proto.analytic.CasinoAccounting.prototype.setRealWin = function(value) {
3840
+ return jspb.Message.setProto3StringField(this, 2, value);
3841
+ };
3842
+
3843
+
3844
+ /**
3845
+ * optional string bonus_bet = 3;
3846
+ * @return {string}
3847
+ */
3848
+ proto.analytic.CasinoAccounting.prototype.getBonusBet = function() {
3849
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3850
+ };
3851
+
3852
+
3853
+ /**
3854
+ * @param {string} value
3855
+ * @return {!proto.analytic.CasinoAccounting} returns this
3856
+ */
3857
+ proto.analytic.CasinoAccounting.prototype.setBonusBet = function(value) {
3858
+ return jspb.Message.setProto3StringField(this, 3, value);
3859
+ };
3860
+
3861
+
3862
+ /**
3863
+ * optional string bonus_win = 4;
3864
+ * @return {string}
3865
+ */
3866
+ proto.analytic.CasinoAccounting.prototype.getBonusWin = function() {
3867
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3868
+ };
3869
+
3870
+
3871
+ /**
3872
+ * @param {string} value
3873
+ * @return {!proto.analytic.CasinoAccounting} returns this
3874
+ */
3875
+ proto.analytic.CasinoAccounting.prototype.setBonusWin = function(value) {
3876
+ return jspb.Message.setProto3StringField(this, 4, value);
3877
+ };
3878
+
3879
+
3880
+ /**
3881
+ * optional string fs_win = 5;
3882
+ * @return {string}
3883
+ */
3884
+ proto.analytic.CasinoAccounting.prototype.getFsWin = function() {
3885
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3886
+ };
3887
+
3888
+
3889
+ /**
3890
+ * @param {string} value
3891
+ * @return {!proto.analytic.CasinoAccounting} returns this
3892
+ */
3893
+ proto.analytic.CasinoAccounting.prototype.setFsWin = function(value) {
3894
+ return jspb.Message.setProto3StringField(this, 5, value);
3895
+ };
3896
+
3897
+
3898
+ /**
3899
+ * optional string ggr_excluding_fs = 6;
3900
+ * @return {string}
3901
+ */
3902
+ proto.analytic.CasinoAccounting.prototype.getGgrExcludingFs = function() {
3903
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3904
+ };
3905
+
3906
+
3907
+ /**
3908
+ * @param {string} value
3909
+ * @return {!proto.analytic.CasinoAccounting} returns this
3910
+ */
3911
+ proto.analytic.CasinoAccounting.prototype.setGgrExcludingFs = function(value) {
3912
+ return jspb.Message.setProto3StringField(this, 6, value);
3913
+ };
3914
+
3915
+
3916
+ /**
3917
+ * optional string ggr_including_fs = 7;
3918
+ * @return {string}
3919
+ */
3920
+ proto.analytic.CasinoAccounting.prototype.getGgrIncludingFs = function() {
3921
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3922
+ };
3923
+
3924
+
3925
+ /**
3926
+ * @param {string} value
3927
+ * @return {!proto.analytic.CasinoAccounting} returns this
3928
+ */
3929
+ proto.analytic.CasinoAccounting.prototype.setGgrIncludingFs = function(value) {
3930
+ return jspb.Message.setProto3StringField(this, 7, value);
3931
+ };
3932
+
3933
+
3934
+ /**
3935
+ * optional string default_ggr = 8;
3936
+ * @return {string}
3937
+ */
3938
+ proto.analytic.CasinoAccounting.prototype.getDefaultGgr = function() {
3939
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3940
+ };
3941
+
3942
+
3943
+ /**
3944
+ * @param {string} value
3945
+ * @return {!proto.analytic.CasinoAccounting} returns this
3946
+ */
3947
+ proto.analytic.CasinoAccounting.prototype.setDefaultGgr = function(value) {
3948
+ return jspb.Message.setProto3StringField(this, 8, value);
3949
+ };
3950
+
3951
+
3952
+ /**
3953
+ * optional bool hourly_conserved = 9;
3954
+ * @return {boolean}
3955
+ */
3956
+ proto.analytic.CasinoAccounting.prototype.getHourlyConserved = function() {
3957
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
3958
+ };
3959
+
3960
+
3961
+ /**
3962
+ * @param {boolean} value
3963
+ * @return {!proto.analytic.CasinoAccounting} returns this
3964
+ */
3965
+ proto.analytic.CasinoAccounting.prototype.setHourlyConserved = function(value) {
3966
+ return jspb.Message.setProto3BooleanField(this, 9, value);
3967
+ };
3968
+
3969
+
3527
3970
 
3528
3971
 
3529
3972
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.751",
3
+ "version": "1.2.752",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {