protobuf-platform 1.2.258 → 1.2.259

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.
package/cms/cms.proto CHANGED
@@ -449,6 +449,7 @@ message GameWidgetItem {
449
449
  optional string type = 3;
450
450
  optional int32 is_active = 4;
451
451
  optional string image = 5;
452
+ optional string image_cdn = 6;
452
453
  }
453
454
  message GameWidgetResponse {
454
455
  GameWidgetItem data = 1;
package/cms/cms_pb.js CHANGED
@@ -18559,7 +18559,8 @@ proto.cms.GameWidgetItem.toObject = function(includeInstance, msg) {
18559
18559
  title: jspb.Message.getFieldWithDefault(msg, 2, ""),
18560
18560
  type: jspb.Message.getFieldWithDefault(msg, 3, ""),
18561
18561
  isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
18562
- image: jspb.Message.getFieldWithDefault(msg, 5, "")
18562
+ image: jspb.Message.getFieldWithDefault(msg, 5, ""),
18563
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 6, "")
18563
18564
  };
18564
18565
 
18565
18566
  if (includeInstance) {
@@ -18616,6 +18617,10 @@ proto.cms.GameWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
18616
18617
  var value = /** @type {string} */ (reader.readString());
18617
18618
  msg.setImage(value);
18618
18619
  break;
18620
+ case 6:
18621
+ var value = /** @type {string} */ (reader.readString());
18622
+ msg.setImageCdn(value);
18623
+ break;
18619
18624
  default:
18620
18625
  reader.skipField();
18621
18626
  break;
@@ -18680,6 +18685,13 @@ proto.cms.GameWidgetItem.serializeBinaryToWriter = function(message, writer) {
18680
18685
  f
18681
18686
  );
18682
18687
  }
18688
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
18689
+ if (f != null) {
18690
+ writer.writeString(
18691
+ 6,
18692
+ f
18693
+ );
18694
+ }
18683
18695
  };
18684
18696
 
18685
18697
 
@@ -18863,6 +18875,42 @@ proto.cms.GameWidgetItem.prototype.hasImage = function() {
18863
18875
  };
18864
18876
 
18865
18877
 
18878
+ /**
18879
+ * optional string image_cdn = 6;
18880
+ * @return {string}
18881
+ */
18882
+ proto.cms.GameWidgetItem.prototype.getImageCdn = function() {
18883
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
18884
+ };
18885
+
18886
+
18887
+ /**
18888
+ * @param {string} value
18889
+ * @return {!proto.cms.GameWidgetItem} returns this
18890
+ */
18891
+ proto.cms.GameWidgetItem.prototype.setImageCdn = function(value) {
18892
+ return jspb.Message.setField(this, 6, value);
18893
+ };
18894
+
18895
+
18896
+ /**
18897
+ * Clears the field making it undefined.
18898
+ * @return {!proto.cms.GameWidgetItem} returns this
18899
+ */
18900
+ proto.cms.GameWidgetItem.prototype.clearImageCdn = function() {
18901
+ return jspb.Message.setField(this, 6, undefined);
18902
+ };
18903
+
18904
+
18905
+ /**
18906
+ * Returns whether this field is set.
18907
+ * @return {boolean}
18908
+ */
18909
+ proto.cms.GameWidgetItem.prototype.hasImageCdn = function() {
18910
+ return jspb.Message.getField(this, 6) != null;
18911
+ };
18912
+
18913
+
18866
18914
 
18867
18915
 
18868
18916
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.258",
3
+ "version": "1.2.259",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -38,6 +38,8 @@ service Payment {
38
38
  rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
39
39
  //Segmentation
40
40
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
41
+ //Currency source-of-truth
42
+ rpc getCurrencyMetadata(GetCurrencyMetadataRequest) returns (CurrencyMetadataResponse);
41
43
  }
42
44
  //Technical
43
45
  message PingRequest { string ping = 1; }
@@ -366,4 +368,12 @@ message SegmentedUserRequest {
366
368
  }
367
369
  message SegmentedUserResponse {
368
370
  repeated int32 user_ids = 1;
371
+ }
372
+ //Currency source-of-truth
373
+ message GetCurrencyMetadataRequest {
374
+ string currency = 1;
375
+ }
376
+ message CurrencyMetadataResponse {
377
+ string currency = 1;
378
+ int32 currency_scale = 2;
369
379
  }
@@ -15,6 +15,17 @@ function deserialize_payment_AttemptDepositRequest(buffer_arg) {
15
15
  return payment_pb.AttemptDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
16
  }
17
17
 
18
+ function serialize_payment_CurrencyMetadataResponse(arg) {
19
+ if (!(arg instanceof payment_pb.CurrencyMetadataResponse)) {
20
+ throw new Error('Expected argument of type payment.CurrencyMetadataResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_payment_CurrencyMetadataResponse(buffer_arg) {
26
+ return payment_pb.CurrencyMetadataResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
18
29
  function serialize_payment_DepositItemsResponse(arg) {
19
30
  if (!(arg instanceof payment_pb.DepositItemsResponse)) {
20
31
  throw new Error('Expected argument of type payment.DepositItemsResponse');
@@ -92,6 +103,17 @@ function deserialize_payment_File(buffer_arg) {
92
103
  return payment_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
93
104
  }
94
105
 
106
+ function serialize_payment_GetCurrencyMetadataRequest(arg) {
107
+ if (!(arg instanceof payment_pb.GetCurrencyMetadataRequest)) {
108
+ throw new Error('Expected argument of type payment.GetCurrencyMetadataRequest');
109
+ }
110
+ return Buffer.from(arg.serializeBinary());
111
+ }
112
+
113
+ function deserialize_payment_GetCurrencyMetadataRequest(buffer_arg) {
114
+ return payment_pb.GetCurrencyMetadataRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
+ }
116
+
95
117
  function serialize_payment_GetDepositRequest(arg) {
96
118
  if (!(arg instanceof payment_pb.GetDepositRequest)) {
97
119
  throw new Error('Expected argument of type payment.GetDepositRequest');
@@ -727,6 +749,18 @@ getSegmentedUsers: {
727
749
  responseSerialize: serialize_payment_SegmentedUserResponse,
728
750
  responseDeserialize: deserialize_payment_SegmentedUserResponse,
729
751
  },
752
+ // Currency source-of-truth
753
+ getCurrencyMetadata: {
754
+ path: '/payment.Payment/getCurrencyMetadata',
755
+ requestStream: false,
756
+ responseStream: false,
757
+ requestType: payment_pb.GetCurrencyMetadataRequest,
758
+ responseType: payment_pb.CurrencyMetadataResponse,
759
+ requestSerialize: serialize_payment_GetCurrencyMetadataRequest,
760
+ requestDeserialize: deserialize_payment_GetCurrencyMetadataRequest,
761
+ responseSerialize: serialize_payment_CurrencyMetadataResponse,
762
+ responseDeserialize: deserialize_payment_CurrencyMetadataResponse,
763
+ },
730
764
  };
731
765
 
732
766
  exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService, 'Payment');
@@ -22,6 +22,7 @@ var global = (function() {
22
22
  }.call(null));
23
23
 
24
24
  goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
25
+ goog.exportSymbol('proto.payment.CurrencyMetadataResponse', null, global);
25
26
  goog.exportSymbol('proto.payment.DepositItem', null, global);
26
27
  goog.exportSymbol('proto.payment.DepositItemsResponse', null, global);
27
28
  goog.exportSymbol('proto.payment.DepositRedirectFormRequest', null, global);
@@ -31,6 +32,7 @@ goog.exportSymbol('proto.payment.DepositStatus', null, global);
31
32
  goog.exportSymbol('proto.payment.DepositStatusItemsResponse', null, global);
32
33
  goog.exportSymbol('proto.payment.DepositWebHookRequest', null, global);
33
34
  goog.exportSymbol('proto.payment.File', null, global);
35
+ goog.exportSymbol('proto.payment.GetCurrencyMetadataRequest', null, global);
34
36
  goog.exportSymbol('proto.payment.GetDepositRequest', null, global);
35
37
  goog.exportSymbol('proto.payment.GetFileRequest', null, global);
36
38
  goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
@@ -1035,6 +1037,48 @@ if (goog.DEBUG && !COMPILED) {
1035
1037
  */
1036
1038
  proto.payment.SegmentedUserResponse.displayName = 'proto.payment.SegmentedUserResponse';
1037
1039
  }
1040
+ /**
1041
+ * Generated by JsPbCodeGenerator.
1042
+ * @param {Array=} opt_data Optional initial data array, typically from a
1043
+ * server response, or constructed directly in Javascript. The array is used
1044
+ * in place and becomes part of the constructed object. It is not cloned.
1045
+ * If no data is provided, the constructed object will be empty, but still
1046
+ * valid.
1047
+ * @extends {jspb.Message}
1048
+ * @constructor
1049
+ */
1050
+ proto.payment.GetCurrencyMetadataRequest = function(opt_data) {
1051
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1052
+ };
1053
+ goog.inherits(proto.payment.GetCurrencyMetadataRequest, jspb.Message);
1054
+ if (goog.DEBUG && !COMPILED) {
1055
+ /**
1056
+ * @public
1057
+ * @override
1058
+ */
1059
+ proto.payment.GetCurrencyMetadataRequest.displayName = 'proto.payment.GetCurrencyMetadataRequest';
1060
+ }
1061
+ /**
1062
+ * Generated by JsPbCodeGenerator.
1063
+ * @param {Array=} opt_data Optional initial data array, typically from a
1064
+ * server response, or constructed directly in Javascript. The array is used
1065
+ * in place and becomes part of the constructed object. It is not cloned.
1066
+ * If no data is provided, the constructed object will be empty, but still
1067
+ * valid.
1068
+ * @extends {jspb.Message}
1069
+ * @constructor
1070
+ */
1071
+ proto.payment.CurrencyMetadataResponse = function(opt_data) {
1072
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1073
+ };
1074
+ goog.inherits(proto.payment.CurrencyMetadataResponse, jspb.Message);
1075
+ if (goog.DEBUG && !COMPILED) {
1076
+ /**
1077
+ * @public
1078
+ * @override
1079
+ */
1080
+ proto.payment.CurrencyMetadataResponse.displayName = 'proto.payment.CurrencyMetadataResponse';
1081
+ }
1038
1082
 
1039
1083
 
1040
1084
 
@@ -15889,4 +15933,294 @@ proto.payment.SegmentedUserResponse.prototype.clearUserIdsList = function() {
15889
15933
  };
15890
15934
 
15891
15935
 
15936
+
15937
+
15938
+
15939
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15940
+ /**
15941
+ * Creates an object representation of this proto.
15942
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15943
+ * Optional fields that are not set will be set to undefined.
15944
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15945
+ * For the list of reserved names please see:
15946
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15947
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15948
+ * JSPB instance for transitional soy proto support:
15949
+ * http://goto/soy-param-migration
15950
+ * @return {!Object}
15951
+ */
15952
+ proto.payment.GetCurrencyMetadataRequest.prototype.toObject = function(opt_includeInstance) {
15953
+ return proto.payment.GetCurrencyMetadataRequest.toObject(opt_includeInstance, this);
15954
+ };
15955
+
15956
+
15957
+ /**
15958
+ * Static version of the {@see toObject} method.
15959
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15960
+ * the JSPB instance for transitional soy proto support:
15961
+ * http://goto/soy-param-migration
15962
+ * @param {!proto.payment.GetCurrencyMetadataRequest} msg The msg instance to transform.
15963
+ * @return {!Object}
15964
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15965
+ */
15966
+ proto.payment.GetCurrencyMetadataRequest.toObject = function(includeInstance, msg) {
15967
+ var f, obj = {
15968
+ currency: jspb.Message.getFieldWithDefault(msg, 1, "")
15969
+ };
15970
+
15971
+ if (includeInstance) {
15972
+ obj.$jspbMessageInstance = msg;
15973
+ }
15974
+ return obj;
15975
+ };
15976
+ }
15977
+
15978
+
15979
+ /**
15980
+ * Deserializes binary data (in protobuf wire format).
15981
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15982
+ * @return {!proto.payment.GetCurrencyMetadataRequest}
15983
+ */
15984
+ proto.payment.GetCurrencyMetadataRequest.deserializeBinary = function(bytes) {
15985
+ var reader = new jspb.BinaryReader(bytes);
15986
+ var msg = new proto.payment.GetCurrencyMetadataRequest;
15987
+ return proto.payment.GetCurrencyMetadataRequest.deserializeBinaryFromReader(msg, reader);
15988
+ };
15989
+
15990
+
15991
+ /**
15992
+ * Deserializes binary data (in protobuf wire format) from the
15993
+ * given reader into the given message object.
15994
+ * @param {!proto.payment.GetCurrencyMetadataRequest} msg The message object to deserialize into.
15995
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15996
+ * @return {!proto.payment.GetCurrencyMetadataRequest}
15997
+ */
15998
+ proto.payment.GetCurrencyMetadataRequest.deserializeBinaryFromReader = function(msg, reader) {
15999
+ while (reader.nextField()) {
16000
+ if (reader.isEndGroup()) {
16001
+ break;
16002
+ }
16003
+ var field = reader.getFieldNumber();
16004
+ switch (field) {
16005
+ case 1:
16006
+ var value = /** @type {string} */ (reader.readString());
16007
+ msg.setCurrency(value);
16008
+ break;
16009
+ default:
16010
+ reader.skipField();
16011
+ break;
16012
+ }
16013
+ }
16014
+ return msg;
16015
+ };
16016
+
16017
+
16018
+ /**
16019
+ * Serializes the message to binary data (in protobuf wire format).
16020
+ * @return {!Uint8Array}
16021
+ */
16022
+ proto.payment.GetCurrencyMetadataRequest.prototype.serializeBinary = function() {
16023
+ var writer = new jspb.BinaryWriter();
16024
+ proto.payment.GetCurrencyMetadataRequest.serializeBinaryToWriter(this, writer);
16025
+ return writer.getResultBuffer();
16026
+ };
16027
+
16028
+
16029
+ /**
16030
+ * Serializes the given message to binary data (in protobuf wire
16031
+ * format), writing to the given BinaryWriter.
16032
+ * @param {!proto.payment.GetCurrencyMetadataRequest} message
16033
+ * @param {!jspb.BinaryWriter} writer
16034
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16035
+ */
16036
+ proto.payment.GetCurrencyMetadataRequest.serializeBinaryToWriter = function(message, writer) {
16037
+ var f = undefined;
16038
+ f = message.getCurrency();
16039
+ if (f.length > 0) {
16040
+ writer.writeString(
16041
+ 1,
16042
+ f
16043
+ );
16044
+ }
16045
+ };
16046
+
16047
+
16048
+ /**
16049
+ * optional string currency = 1;
16050
+ * @return {string}
16051
+ */
16052
+ proto.payment.GetCurrencyMetadataRequest.prototype.getCurrency = function() {
16053
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16054
+ };
16055
+
16056
+
16057
+ /**
16058
+ * @param {string} value
16059
+ * @return {!proto.payment.GetCurrencyMetadataRequest} returns this
16060
+ */
16061
+ proto.payment.GetCurrencyMetadataRequest.prototype.setCurrency = function(value) {
16062
+ return jspb.Message.setProto3StringField(this, 1, value);
16063
+ };
16064
+
16065
+
16066
+
16067
+
16068
+
16069
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16070
+ /**
16071
+ * Creates an object representation of this proto.
16072
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16073
+ * Optional fields that are not set will be set to undefined.
16074
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16075
+ * For the list of reserved names please see:
16076
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16077
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16078
+ * JSPB instance for transitional soy proto support:
16079
+ * http://goto/soy-param-migration
16080
+ * @return {!Object}
16081
+ */
16082
+ proto.payment.CurrencyMetadataResponse.prototype.toObject = function(opt_includeInstance) {
16083
+ return proto.payment.CurrencyMetadataResponse.toObject(opt_includeInstance, this);
16084
+ };
16085
+
16086
+
16087
+ /**
16088
+ * Static version of the {@see toObject} method.
16089
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16090
+ * the JSPB instance for transitional soy proto support:
16091
+ * http://goto/soy-param-migration
16092
+ * @param {!proto.payment.CurrencyMetadataResponse} msg The msg instance to transform.
16093
+ * @return {!Object}
16094
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16095
+ */
16096
+ proto.payment.CurrencyMetadataResponse.toObject = function(includeInstance, msg) {
16097
+ var f, obj = {
16098
+ currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
16099
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 2, 0)
16100
+ };
16101
+
16102
+ if (includeInstance) {
16103
+ obj.$jspbMessageInstance = msg;
16104
+ }
16105
+ return obj;
16106
+ };
16107
+ }
16108
+
16109
+
16110
+ /**
16111
+ * Deserializes binary data (in protobuf wire format).
16112
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16113
+ * @return {!proto.payment.CurrencyMetadataResponse}
16114
+ */
16115
+ proto.payment.CurrencyMetadataResponse.deserializeBinary = function(bytes) {
16116
+ var reader = new jspb.BinaryReader(bytes);
16117
+ var msg = new proto.payment.CurrencyMetadataResponse;
16118
+ return proto.payment.CurrencyMetadataResponse.deserializeBinaryFromReader(msg, reader);
16119
+ };
16120
+
16121
+
16122
+ /**
16123
+ * Deserializes binary data (in protobuf wire format) from the
16124
+ * given reader into the given message object.
16125
+ * @param {!proto.payment.CurrencyMetadataResponse} msg The message object to deserialize into.
16126
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16127
+ * @return {!proto.payment.CurrencyMetadataResponse}
16128
+ */
16129
+ proto.payment.CurrencyMetadataResponse.deserializeBinaryFromReader = function(msg, reader) {
16130
+ while (reader.nextField()) {
16131
+ if (reader.isEndGroup()) {
16132
+ break;
16133
+ }
16134
+ var field = reader.getFieldNumber();
16135
+ switch (field) {
16136
+ case 1:
16137
+ var value = /** @type {string} */ (reader.readString());
16138
+ msg.setCurrency(value);
16139
+ break;
16140
+ case 2:
16141
+ var value = /** @type {number} */ (reader.readInt32());
16142
+ msg.setCurrencyScale(value);
16143
+ break;
16144
+ default:
16145
+ reader.skipField();
16146
+ break;
16147
+ }
16148
+ }
16149
+ return msg;
16150
+ };
16151
+
16152
+
16153
+ /**
16154
+ * Serializes the message to binary data (in protobuf wire format).
16155
+ * @return {!Uint8Array}
16156
+ */
16157
+ proto.payment.CurrencyMetadataResponse.prototype.serializeBinary = function() {
16158
+ var writer = new jspb.BinaryWriter();
16159
+ proto.payment.CurrencyMetadataResponse.serializeBinaryToWriter(this, writer);
16160
+ return writer.getResultBuffer();
16161
+ };
16162
+
16163
+
16164
+ /**
16165
+ * Serializes the given message to binary data (in protobuf wire
16166
+ * format), writing to the given BinaryWriter.
16167
+ * @param {!proto.payment.CurrencyMetadataResponse} message
16168
+ * @param {!jspb.BinaryWriter} writer
16169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16170
+ */
16171
+ proto.payment.CurrencyMetadataResponse.serializeBinaryToWriter = function(message, writer) {
16172
+ var f = undefined;
16173
+ f = message.getCurrency();
16174
+ if (f.length > 0) {
16175
+ writer.writeString(
16176
+ 1,
16177
+ f
16178
+ );
16179
+ }
16180
+ f = message.getCurrencyScale();
16181
+ if (f !== 0) {
16182
+ writer.writeInt32(
16183
+ 2,
16184
+ f
16185
+ );
16186
+ }
16187
+ };
16188
+
16189
+
16190
+ /**
16191
+ * optional string currency = 1;
16192
+ * @return {string}
16193
+ */
16194
+ proto.payment.CurrencyMetadataResponse.prototype.getCurrency = function() {
16195
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16196
+ };
16197
+
16198
+
16199
+ /**
16200
+ * @param {string} value
16201
+ * @return {!proto.payment.CurrencyMetadataResponse} returns this
16202
+ */
16203
+ proto.payment.CurrencyMetadataResponse.prototype.setCurrency = function(value) {
16204
+ return jspb.Message.setProto3StringField(this, 1, value);
16205
+ };
16206
+
16207
+
16208
+ /**
16209
+ * optional int32 currency_scale = 2;
16210
+ * @return {number}
16211
+ */
16212
+ proto.payment.CurrencyMetadataResponse.prototype.getCurrencyScale = function() {
16213
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
16214
+ };
16215
+
16216
+
16217
+ /**
16218
+ * @param {number} value
16219
+ * @return {!proto.payment.CurrencyMetadataResponse} returns this
16220
+ */
16221
+ proto.payment.CurrencyMetadataResponse.prototype.setCurrencyScale = function(value) {
16222
+ return jspb.Message.setProto3IntField(this, 2, value);
16223
+ };
16224
+
16225
+
15892
16226
  goog.object.extend(exports, proto.payment);