protobuf-platform 1.2.616 → 1.2.619
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/notification/notification.proto +14 -0
- package/notification/notification_grpc_pb.js +34 -0
- package/notification/notification_pb.js +400 -0
- package/package.json +1 -1
- package/user/user.proto +2 -2
- package/user/user_pb.js +16 -16
|
@@ -41,6 +41,8 @@ service Notification {
|
|
|
41
41
|
// === Gamixter (internal) ===
|
|
42
42
|
rpc fireGamixterTrigger(FireGamixterTriggerRequest) returns (NotificationStatusResponse);
|
|
43
43
|
rpc processGamixterBonusAwardedWebhook(ProcessGamixterBonusAwardedWebhookRequest) returns (NotificationStatusResponse);
|
|
44
|
+
// === Affiliate attribution (internal) ===
|
|
45
|
+
rpc resolveAffiliateByPromoCode(ResolveAffiliateByPromoCodeRequest) returns (ResolveAffiliateByPromoCodeResponse);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
message PingRequest { string ping = 1; }
|
|
@@ -331,3 +333,15 @@ message ProcessGamixterBonusAwardedWebhookRequest {
|
|
|
331
333
|
optional string x_signature = 3;
|
|
332
334
|
optional string correlation_id = 4;
|
|
333
335
|
}
|
|
336
|
+
|
|
337
|
+
/* ===== Affiliate attribution (internal) ===== */
|
|
338
|
+
|
|
339
|
+
message ResolveAffiliateByPromoCodeRequest {
|
|
340
|
+
string promo_code = 1;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
message ResolveAffiliateByPromoCodeResponse {
|
|
344
|
+
bool resolved = 1;
|
|
345
|
+
optional int32 affiliate_id = 2;
|
|
346
|
+
optional int32 offer_id = 3;
|
|
347
|
+
}
|
|
@@ -356,6 +356,28 @@ function deserialize_notification_ReadAllUserNotificationsRequest(buffer_arg) {
|
|
|
356
356
|
return notification_pb.ReadAllUserNotificationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
+
function serialize_notification_ResolveAffiliateByPromoCodeRequest(arg) {
|
|
360
|
+
if (!(arg instanceof notification_pb.ResolveAffiliateByPromoCodeRequest)) {
|
|
361
|
+
throw new Error('Expected argument of type notification.ResolveAffiliateByPromoCodeRequest');
|
|
362
|
+
}
|
|
363
|
+
return Buffer.from(arg.serializeBinary());
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
function deserialize_notification_ResolveAffiliateByPromoCodeRequest(buffer_arg) {
|
|
367
|
+
return notification_pb.ResolveAffiliateByPromoCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
function serialize_notification_ResolveAffiliateByPromoCodeResponse(arg) {
|
|
371
|
+
if (!(arg instanceof notification_pb.ResolveAffiliateByPromoCodeResponse)) {
|
|
372
|
+
throw new Error('Expected argument of type notification.ResolveAffiliateByPromoCodeResponse');
|
|
373
|
+
}
|
|
374
|
+
return Buffer.from(arg.serializeBinary());
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
function deserialize_notification_ResolveAffiliateByPromoCodeResponse(buffer_arg) {
|
|
378
|
+
return notification_pb.ResolveAffiliateByPromoCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
379
|
+
}
|
|
380
|
+
|
|
359
381
|
function serialize_notification_SendNotificationRequest(arg) {
|
|
360
382
|
if (!(arg instanceof notification_pb.SendNotificationRequest)) {
|
|
361
383
|
throw new Error('Expected argument of type notification.SendNotificationRequest');
|
|
@@ -791,6 +813,18 @@ fireGamixterTrigger: {
|
|
|
791
813
|
responseSerialize: serialize_notification_NotificationStatusResponse,
|
|
792
814
|
responseDeserialize: deserialize_notification_NotificationStatusResponse,
|
|
793
815
|
},
|
|
816
|
+
// === Affiliate attribution (internal) ===
|
|
817
|
+
resolveAffiliateByPromoCode: {
|
|
818
|
+
path: '/notification.Notification/resolveAffiliateByPromoCode',
|
|
819
|
+
requestStream: false,
|
|
820
|
+
responseStream: false,
|
|
821
|
+
requestType: notification_pb.ResolveAffiliateByPromoCodeRequest,
|
|
822
|
+
responseType: notification_pb.ResolveAffiliateByPromoCodeResponse,
|
|
823
|
+
requestSerialize: serialize_notification_ResolveAffiliateByPromoCodeRequest,
|
|
824
|
+
requestDeserialize: deserialize_notification_ResolveAffiliateByPromoCodeRequest,
|
|
825
|
+
responseSerialize: serialize_notification_ResolveAffiliateByPromoCodeResponse,
|
|
826
|
+
responseDeserialize: deserialize_notification_ResolveAffiliateByPromoCodeResponse,
|
|
827
|
+
},
|
|
794
828
|
};
|
|
795
829
|
|
|
796
830
|
exports.NotificationClient = grpc.makeGenericClientConstructor(NotificationService, 'Notification');
|
|
@@ -62,6 +62,8 @@ goog.exportSymbol('proto.notification.PingRequest', null, global);
|
|
|
62
62
|
goog.exportSymbol('proto.notification.PongResponse', null, global);
|
|
63
63
|
goog.exportSymbol('proto.notification.ProcessGamixterBonusAwardedWebhookRequest', null, global);
|
|
64
64
|
goog.exportSymbol('proto.notification.ReadAllUserNotificationsRequest', null, global);
|
|
65
|
+
goog.exportSymbol('proto.notification.ResolveAffiliateByPromoCodeRequest', null, global);
|
|
66
|
+
goog.exportSymbol('proto.notification.ResolveAffiliateByPromoCodeResponse', null, global);
|
|
65
67
|
goog.exportSymbol('proto.notification.SendNotificationRequest', null, global);
|
|
66
68
|
goog.exportSymbol('proto.notification.SendSmsRequest', null, global);
|
|
67
69
|
goog.exportSymbol('proto.notification.SmsSendResponse', null, global);
|
|
@@ -1035,6 +1037,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1035
1037
|
*/
|
|
1036
1038
|
proto.notification.ProcessGamixterBonusAwardedWebhookRequest.displayName = 'proto.notification.ProcessGamixterBonusAwardedWebhookRequest';
|
|
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.notification.ResolveAffiliateByPromoCodeRequest = function(opt_data) {
|
|
1051
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1052
|
+
};
|
|
1053
|
+
goog.inherits(proto.notification.ResolveAffiliateByPromoCodeRequest, jspb.Message);
|
|
1054
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1055
|
+
/**
|
|
1056
|
+
* @public
|
|
1057
|
+
* @override
|
|
1058
|
+
*/
|
|
1059
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.displayName = 'proto.notification.ResolveAffiliateByPromoCodeRequest';
|
|
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.notification.ResolveAffiliateByPromoCodeResponse = function(opt_data) {
|
|
1072
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1073
|
+
};
|
|
1074
|
+
goog.inherits(proto.notification.ResolveAffiliateByPromoCodeResponse, jspb.Message);
|
|
1075
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1076
|
+
/**
|
|
1077
|
+
* @public
|
|
1078
|
+
* @override
|
|
1079
|
+
*/
|
|
1080
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.displayName = 'proto.notification.ResolveAffiliateByPromoCodeResponse';
|
|
1081
|
+
}
|
|
1038
1082
|
|
|
1039
1083
|
|
|
1040
1084
|
|
|
@@ -13735,4 +13779,360 @@ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.hasCorrel
|
|
|
13735
13779
|
};
|
|
13736
13780
|
|
|
13737
13781
|
|
|
13782
|
+
|
|
13783
|
+
|
|
13784
|
+
|
|
13785
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13786
|
+
/**
|
|
13787
|
+
* Creates an object representation of this proto.
|
|
13788
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13789
|
+
* Optional fields that are not set will be set to undefined.
|
|
13790
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13791
|
+
* For the list of reserved names please see:
|
|
13792
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13793
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13794
|
+
* JSPB instance for transitional soy proto support:
|
|
13795
|
+
* http://goto/soy-param-migration
|
|
13796
|
+
* @return {!Object}
|
|
13797
|
+
*/
|
|
13798
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
13799
|
+
return proto.notification.ResolveAffiliateByPromoCodeRequest.toObject(opt_includeInstance, this);
|
|
13800
|
+
};
|
|
13801
|
+
|
|
13802
|
+
|
|
13803
|
+
/**
|
|
13804
|
+
* Static version of the {@see toObject} method.
|
|
13805
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13806
|
+
* the JSPB instance for transitional soy proto support:
|
|
13807
|
+
* http://goto/soy-param-migration
|
|
13808
|
+
* @param {!proto.notification.ResolveAffiliateByPromoCodeRequest} msg The msg instance to transform.
|
|
13809
|
+
* @return {!Object}
|
|
13810
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13811
|
+
*/
|
|
13812
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.toObject = function(includeInstance, msg) {
|
|
13813
|
+
var f, obj = {
|
|
13814
|
+
promoCode: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
13815
|
+
};
|
|
13816
|
+
|
|
13817
|
+
if (includeInstance) {
|
|
13818
|
+
obj.$jspbMessageInstance = msg;
|
|
13819
|
+
}
|
|
13820
|
+
return obj;
|
|
13821
|
+
};
|
|
13822
|
+
}
|
|
13823
|
+
|
|
13824
|
+
|
|
13825
|
+
/**
|
|
13826
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13827
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13828
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeRequest}
|
|
13829
|
+
*/
|
|
13830
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.deserializeBinary = function(bytes) {
|
|
13831
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13832
|
+
var msg = new proto.notification.ResolveAffiliateByPromoCodeRequest;
|
|
13833
|
+
return proto.notification.ResolveAffiliateByPromoCodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
13834
|
+
};
|
|
13835
|
+
|
|
13836
|
+
|
|
13837
|
+
/**
|
|
13838
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13839
|
+
* given reader into the given message object.
|
|
13840
|
+
* @param {!proto.notification.ResolveAffiliateByPromoCodeRequest} msg The message object to deserialize into.
|
|
13841
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13842
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeRequest}
|
|
13843
|
+
*/
|
|
13844
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
13845
|
+
while (reader.nextField()) {
|
|
13846
|
+
if (reader.isEndGroup()) {
|
|
13847
|
+
break;
|
|
13848
|
+
}
|
|
13849
|
+
var field = reader.getFieldNumber();
|
|
13850
|
+
switch (field) {
|
|
13851
|
+
case 1:
|
|
13852
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13853
|
+
msg.setPromoCode(value);
|
|
13854
|
+
break;
|
|
13855
|
+
default:
|
|
13856
|
+
reader.skipField();
|
|
13857
|
+
break;
|
|
13858
|
+
}
|
|
13859
|
+
}
|
|
13860
|
+
return msg;
|
|
13861
|
+
};
|
|
13862
|
+
|
|
13863
|
+
|
|
13864
|
+
/**
|
|
13865
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13866
|
+
* @return {!Uint8Array}
|
|
13867
|
+
*/
|
|
13868
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.prototype.serializeBinary = function() {
|
|
13869
|
+
var writer = new jspb.BinaryWriter();
|
|
13870
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.serializeBinaryToWriter(this, writer);
|
|
13871
|
+
return writer.getResultBuffer();
|
|
13872
|
+
};
|
|
13873
|
+
|
|
13874
|
+
|
|
13875
|
+
/**
|
|
13876
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13877
|
+
* format), writing to the given BinaryWriter.
|
|
13878
|
+
* @param {!proto.notification.ResolveAffiliateByPromoCodeRequest} message
|
|
13879
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13880
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13881
|
+
*/
|
|
13882
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
13883
|
+
var f = undefined;
|
|
13884
|
+
f = message.getPromoCode();
|
|
13885
|
+
if (f.length > 0) {
|
|
13886
|
+
writer.writeString(
|
|
13887
|
+
1,
|
|
13888
|
+
f
|
|
13889
|
+
);
|
|
13890
|
+
}
|
|
13891
|
+
};
|
|
13892
|
+
|
|
13893
|
+
|
|
13894
|
+
/**
|
|
13895
|
+
* optional string promo_code = 1;
|
|
13896
|
+
* @return {string}
|
|
13897
|
+
*/
|
|
13898
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.prototype.getPromoCode = function() {
|
|
13899
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
13900
|
+
};
|
|
13901
|
+
|
|
13902
|
+
|
|
13903
|
+
/**
|
|
13904
|
+
* @param {string} value
|
|
13905
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeRequest} returns this
|
|
13906
|
+
*/
|
|
13907
|
+
proto.notification.ResolveAffiliateByPromoCodeRequest.prototype.setPromoCode = function(value) {
|
|
13908
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
13909
|
+
};
|
|
13910
|
+
|
|
13911
|
+
|
|
13912
|
+
|
|
13913
|
+
|
|
13914
|
+
|
|
13915
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13916
|
+
/**
|
|
13917
|
+
* Creates an object representation of this proto.
|
|
13918
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13919
|
+
* Optional fields that are not set will be set to undefined.
|
|
13920
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13921
|
+
* For the list of reserved names please see:
|
|
13922
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13923
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13924
|
+
* JSPB instance for transitional soy proto support:
|
|
13925
|
+
* http://goto/soy-param-migration
|
|
13926
|
+
* @return {!Object}
|
|
13927
|
+
*/
|
|
13928
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
13929
|
+
return proto.notification.ResolveAffiliateByPromoCodeResponse.toObject(opt_includeInstance, this);
|
|
13930
|
+
};
|
|
13931
|
+
|
|
13932
|
+
|
|
13933
|
+
/**
|
|
13934
|
+
* Static version of the {@see toObject} method.
|
|
13935
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13936
|
+
* the JSPB instance for transitional soy proto support:
|
|
13937
|
+
* http://goto/soy-param-migration
|
|
13938
|
+
* @param {!proto.notification.ResolveAffiliateByPromoCodeResponse} msg The msg instance to transform.
|
|
13939
|
+
* @return {!Object}
|
|
13940
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13941
|
+
*/
|
|
13942
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.toObject = function(includeInstance, msg) {
|
|
13943
|
+
var f, obj = {
|
|
13944
|
+
resolved: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
13945
|
+
affiliateId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
13946
|
+
offerId: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
13947
|
+
};
|
|
13948
|
+
|
|
13949
|
+
if (includeInstance) {
|
|
13950
|
+
obj.$jspbMessageInstance = msg;
|
|
13951
|
+
}
|
|
13952
|
+
return obj;
|
|
13953
|
+
};
|
|
13954
|
+
}
|
|
13955
|
+
|
|
13956
|
+
|
|
13957
|
+
/**
|
|
13958
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13959
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13960
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeResponse}
|
|
13961
|
+
*/
|
|
13962
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.deserializeBinary = function(bytes) {
|
|
13963
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13964
|
+
var msg = new proto.notification.ResolveAffiliateByPromoCodeResponse;
|
|
13965
|
+
return proto.notification.ResolveAffiliateByPromoCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
13966
|
+
};
|
|
13967
|
+
|
|
13968
|
+
|
|
13969
|
+
/**
|
|
13970
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13971
|
+
* given reader into the given message object.
|
|
13972
|
+
* @param {!proto.notification.ResolveAffiliateByPromoCodeResponse} msg The message object to deserialize into.
|
|
13973
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13974
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeResponse}
|
|
13975
|
+
*/
|
|
13976
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
13977
|
+
while (reader.nextField()) {
|
|
13978
|
+
if (reader.isEndGroup()) {
|
|
13979
|
+
break;
|
|
13980
|
+
}
|
|
13981
|
+
var field = reader.getFieldNumber();
|
|
13982
|
+
switch (field) {
|
|
13983
|
+
case 1:
|
|
13984
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
13985
|
+
msg.setResolved(value);
|
|
13986
|
+
break;
|
|
13987
|
+
case 2:
|
|
13988
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13989
|
+
msg.setAffiliateId(value);
|
|
13990
|
+
break;
|
|
13991
|
+
case 3:
|
|
13992
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13993
|
+
msg.setOfferId(value);
|
|
13994
|
+
break;
|
|
13995
|
+
default:
|
|
13996
|
+
reader.skipField();
|
|
13997
|
+
break;
|
|
13998
|
+
}
|
|
13999
|
+
}
|
|
14000
|
+
return msg;
|
|
14001
|
+
};
|
|
14002
|
+
|
|
14003
|
+
|
|
14004
|
+
/**
|
|
14005
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
14006
|
+
* @return {!Uint8Array}
|
|
14007
|
+
*/
|
|
14008
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.serializeBinary = function() {
|
|
14009
|
+
var writer = new jspb.BinaryWriter();
|
|
14010
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.serializeBinaryToWriter(this, writer);
|
|
14011
|
+
return writer.getResultBuffer();
|
|
14012
|
+
};
|
|
14013
|
+
|
|
14014
|
+
|
|
14015
|
+
/**
|
|
14016
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
14017
|
+
* format), writing to the given BinaryWriter.
|
|
14018
|
+
* @param {!proto.notification.ResolveAffiliateByPromoCodeResponse} message
|
|
14019
|
+
* @param {!jspb.BinaryWriter} writer
|
|
14020
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14021
|
+
*/
|
|
14022
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
14023
|
+
var f = undefined;
|
|
14024
|
+
f = message.getResolved();
|
|
14025
|
+
if (f) {
|
|
14026
|
+
writer.writeBool(
|
|
14027
|
+
1,
|
|
14028
|
+
f
|
|
14029
|
+
);
|
|
14030
|
+
}
|
|
14031
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
14032
|
+
if (f != null) {
|
|
14033
|
+
writer.writeInt32(
|
|
14034
|
+
2,
|
|
14035
|
+
f
|
|
14036
|
+
);
|
|
14037
|
+
}
|
|
14038
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
14039
|
+
if (f != null) {
|
|
14040
|
+
writer.writeInt32(
|
|
14041
|
+
3,
|
|
14042
|
+
f
|
|
14043
|
+
);
|
|
14044
|
+
}
|
|
14045
|
+
};
|
|
14046
|
+
|
|
14047
|
+
|
|
14048
|
+
/**
|
|
14049
|
+
* optional bool resolved = 1;
|
|
14050
|
+
* @return {boolean}
|
|
14051
|
+
*/
|
|
14052
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.getResolved = function() {
|
|
14053
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
14054
|
+
};
|
|
14055
|
+
|
|
14056
|
+
|
|
14057
|
+
/**
|
|
14058
|
+
* @param {boolean} value
|
|
14059
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeResponse} returns this
|
|
14060
|
+
*/
|
|
14061
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.setResolved = function(value) {
|
|
14062
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
14063
|
+
};
|
|
14064
|
+
|
|
14065
|
+
|
|
14066
|
+
/**
|
|
14067
|
+
* optional int32 affiliate_id = 2;
|
|
14068
|
+
* @return {number}
|
|
14069
|
+
*/
|
|
14070
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.getAffiliateId = function() {
|
|
14071
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
14072
|
+
};
|
|
14073
|
+
|
|
14074
|
+
|
|
14075
|
+
/**
|
|
14076
|
+
* @param {number} value
|
|
14077
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeResponse} returns this
|
|
14078
|
+
*/
|
|
14079
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.setAffiliateId = function(value) {
|
|
14080
|
+
return jspb.Message.setField(this, 2, value);
|
|
14081
|
+
};
|
|
14082
|
+
|
|
14083
|
+
|
|
14084
|
+
/**
|
|
14085
|
+
* Clears the field making it undefined.
|
|
14086
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeResponse} returns this
|
|
14087
|
+
*/
|
|
14088
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.clearAffiliateId = function() {
|
|
14089
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
14090
|
+
};
|
|
14091
|
+
|
|
14092
|
+
|
|
14093
|
+
/**
|
|
14094
|
+
* Returns whether this field is set.
|
|
14095
|
+
* @return {boolean}
|
|
14096
|
+
*/
|
|
14097
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.hasAffiliateId = function() {
|
|
14098
|
+
return jspb.Message.getField(this, 2) != null;
|
|
14099
|
+
};
|
|
14100
|
+
|
|
14101
|
+
|
|
14102
|
+
/**
|
|
14103
|
+
* optional int32 offer_id = 3;
|
|
14104
|
+
* @return {number}
|
|
14105
|
+
*/
|
|
14106
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.getOfferId = function() {
|
|
14107
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
14108
|
+
};
|
|
14109
|
+
|
|
14110
|
+
|
|
14111
|
+
/**
|
|
14112
|
+
* @param {number} value
|
|
14113
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeResponse} returns this
|
|
14114
|
+
*/
|
|
14115
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.setOfferId = function(value) {
|
|
14116
|
+
return jspb.Message.setField(this, 3, value);
|
|
14117
|
+
};
|
|
14118
|
+
|
|
14119
|
+
|
|
14120
|
+
/**
|
|
14121
|
+
* Clears the field making it undefined.
|
|
14122
|
+
* @return {!proto.notification.ResolveAffiliateByPromoCodeResponse} returns this
|
|
14123
|
+
*/
|
|
14124
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.clearOfferId = function() {
|
|
14125
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
14126
|
+
};
|
|
14127
|
+
|
|
14128
|
+
|
|
14129
|
+
/**
|
|
14130
|
+
* Returns whether this field is set.
|
|
14131
|
+
* @return {boolean}
|
|
14132
|
+
*/
|
|
14133
|
+
proto.notification.ResolveAffiliateByPromoCodeResponse.prototype.hasOfferId = function() {
|
|
14134
|
+
return jspb.Message.getField(this, 3) != null;
|
|
14135
|
+
};
|
|
14136
|
+
|
|
14137
|
+
|
|
13738
14138
|
goog.object.extend(exports, proto.notification);
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -622,8 +622,8 @@ message GetUserWalletBalancesRequest {
|
|
|
622
622
|
message UserWalletBalanceItem {
|
|
623
623
|
string currency = 1;
|
|
624
624
|
int32 currency_scale = 2;
|
|
625
|
-
int64 real_amount_minor = 3;
|
|
626
|
-
int64 bonus_amount_minor = 4;
|
|
625
|
+
int64 real_amount_minor = 3 [jstype = JS_STRING];
|
|
626
|
+
int64 bonus_amount_minor = 4 [jstype = JS_STRING];
|
|
627
627
|
optional string updated_at = 5;
|
|
628
628
|
}
|
|
629
629
|
message UserWalletBalancesResponse {
|
package/user/user_pb.js
CHANGED
|
@@ -24621,8 +24621,8 @@ proto.user.UserWalletBalanceItem.toObject = function(includeInstance, msg) {
|
|
|
24621
24621
|
var f, obj = {
|
|
24622
24622
|
currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
24623
24623
|
currencyScale: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
24624
|
-
realAmountMinor: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
24625
|
-
bonusAmountMinor: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
24624
|
+
realAmountMinor: jspb.Message.getFieldWithDefault(msg, 3, "0"),
|
|
24625
|
+
bonusAmountMinor: jspb.Message.getFieldWithDefault(msg, 4, "0"),
|
|
24626
24626
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
24627
24627
|
};
|
|
24628
24628
|
|
|
@@ -24669,11 +24669,11 @@ proto.user.UserWalletBalanceItem.deserializeBinaryFromReader = function(msg, rea
|
|
|
24669
24669
|
msg.setCurrencyScale(value);
|
|
24670
24670
|
break;
|
|
24671
24671
|
case 3:
|
|
24672
|
-
var value = /** @type {
|
|
24672
|
+
var value = /** @type {string} */ (reader.readInt64String());
|
|
24673
24673
|
msg.setRealAmountMinor(value);
|
|
24674
24674
|
break;
|
|
24675
24675
|
case 4:
|
|
24676
|
-
var value = /** @type {
|
|
24676
|
+
var value = /** @type {string} */ (reader.readInt64String());
|
|
24677
24677
|
msg.setBonusAmountMinor(value);
|
|
24678
24678
|
break;
|
|
24679
24679
|
case 5:
|
|
@@ -24724,15 +24724,15 @@ proto.user.UserWalletBalanceItem.serializeBinaryToWriter = function(message, wri
|
|
|
24724
24724
|
);
|
|
24725
24725
|
}
|
|
24726
24726
|
f = message.getRealAmountMinor();
|
|
24727
|
-
if (f !== 0) {
|
|
24728
|
-
writer.
|
|
24727
|
+
if (parseInt(f, 10) !== 0) {
|
|
24728
|
+
writer.writeInt64String(
|
|
24729
24729
|
3,
|
|
24730
24730
|
f
|
|
24731
24731
|
);
|
|
24732
24732
|
}
|
|
24733
24733
|
f = message.getBonusAmountMinor();
|
|
24734
|
-
if (f !== 0) {
|
|
24735
|
-
writer.
|
|
24734
|
+
if (parseInt(f, 10) !== 0) {
|
|
24735
|
+
writer.writeInt64String(
|
|
24736
24736
|
4,
|
|
24737
24737
|
f
|
|
24738
24738
|
);
|
|
@@ -24785,37 +24785,37 @@ proto.user.UserWalletBalanceItem.prototype.setCurrencyScale = function(value) {
|
|
|
24785
24785
|
|
|
24786
24786
|
/**
|
|
24787
24787
|
* optional int64 real_amount_minor = 3;
|
|
24788
|
-
* @return {
|
|
24788
|
+
* @return {string}
|
|
24789
24789
|
*/
|
|
24790
24790
|
proto.user.UserWalletBalanceItem.prototype.getRealAmountMinor = function() {
|
|
24791
|
-
return /** @type {
|
|
24791
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
|
|
24792
24792
|
};
|
|
24793
24793
|
|
|
24794
24794
|
|
|
24795
24795
|
/**
|
|
24796
|
-
* @param {
|
|
24796
|
+
* @param {string} value
|
|
24797
24797
|
* @return {!proto.user.UserWalletBalanceItem} returns this
|
|
24798
24798
|
*/
|
|
24799
24799
|
proto.user.UserWalletBalanceItem.prototype.setRealAmountMinor = function(value) {
|
|
24800
|
-
return jspb.Message.
|
|
24800
|
+
return jspb.Message.setProto3StringIntField(this, 3, value);
|
|
24801
24801
|
};
|
|
24802
24802
|
|
|
24803
24803
|
|
|
24804
24804
|
/**
|
|
24805
24805
|
* optional int64 bonus_amount_minor = 4;
|
|
24806
|
-
* @return {
|
|
24806
|
+
* @return {string}
|
|
24807
24807
|
*/
|
|
24808
24808
|
proto.user.UserWalletBalanceItem.prototype.getBonusAmountMinor = function() {
|
|
24809
|
-
return /** @type {
|
|
24809
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0"));
|
|
24810
24810
|
};
|
|
24811
24811
|
|
|
24812
24812
|
|
|
24813
24813
|
/**
|
|
24814
|
-
* @param {
|
|
24814
|
+
* @param {string} value
|
|
24815
24815
|
* @return {!proto.user.UserWalletBalanceItem} returns this
|
|
24816
24816
|
*/
|
|
24817
24817
|
proto.user.UserWalletBalanceItem.prototype.setBonusAmountMinor = function(value) {
|
|
24818
|
-
return jspb.Message.
|
|
24818
|
+
return jspb.Message.setProto3StringIntField(this, 4, value);
|
|
24819
24819
|
};
|
|
24820
24820
|
|
|
24821
24821
|
|