protobuf-platform 1.2.504 → 1.2.507
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/bonus/bonus.proto +3 -0
- package/bonus/bonus_pb.js +145 -1
- package/cashback/cashback.proto +36 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +1805 -125
- package/package.json +1 -1
- package/payment/payment.proto +44 -0
- package/payment/payment_grpc_pb.js +67 -0
- package/payment/payment_pb.js +1836 -136
- package/tournament/tournament.proto +25 -0
- package/tournament/tournament_grpc_pb.js +34 -0
- package/tournament/tournament_pb.js +1186 -0
package/bonus/bonus.proto
CHANGED
|
@@ -271,6 +271,9 @@ message BonusSnapshotItem {
|
|
|
271
271
|
optional string mobile_image_cdn = 7;
|
|
272
272
|
optional string status = 8;
|
|
273
273
|
optional int32 status_id = 9;
|
|
274
|
+
optional string description = 10;
|
|
275
|
+
optional string started_at = 11;
|
|
276
|
+
optional string finished_at = 12;
|
|
274
277
|
}
|
|
275
278
|
message BonusSnapshotItemsResponse {
|
|
276
279
|
repeated BonusSnapshotItem items = 1;
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -10931,7 +10931,10 @@ proto.bonus.BonusSnapshotItem.toObject = function(includeInstance, msg) {
|
|
|
10931
10931
|
mobileImage: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
10932
10932
|
mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
10933
10933
|
status: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
10934
|
-
statusId: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
10934
|
+
statusId: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
10935
|
+
description: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
10936
|
+
startedAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
10937
|
+
finishedAt: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
10935
10938
|
};
|
|
10936
10939
|
|
|
10937
10940
|
if (includeInstance) {
|
|
@@ -11004,6 +11007,18 @@ proto.bonus.BonusSnapshotItem.deserializeBinaryFromReader = function(msg, reader
|
|
|
11004
11007
|
var value = /** @type {number} */ (reader.readInt32());
|
|
11005
11008
|
msg.setStatusId(value);
|
|
11006
11009
|
break;
|
|
11010
|
+
case 10:
|
|
11011
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11012
|
+
msg.setDescription(value);
|
|
11013
|
+
break;
|
|
11014
|
+
case 11:
|
|
11015
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11016
|
+
msg.setStartedAt(value);
|
|
11017
|
+
break;
|
|
11018
|
+
case 12:
|
|
11019
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11020
|
+
msg.setFinishedAt(value);
|
|
11021
|
+
break;
|
|
11007
11022
|
default:
|
|
11008
11023
|
reader.skipField();
|
|
11009
11024
|
break;
|
|
@@ -11096,6 +11111,27 @@ proto.bonus.BonusSnapshotItem.serializeBinaryToWriter = function(message, writer
|
|
|
11096
11111
|
f
|
|
11097
11112
|
);
|
|
11098
11113
|
}
|
|
11114
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
11115
|
+
if (f != null) {
|
|
11116
|
+
writer.writeString(
|
|
11117
|
+
10,
|
|
11118
|
+
f
|
|
11119
|
+
);
|
|
11120
|
+
}
|
|
11121
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
|
11122
|
+
if (f != null) {
|
|
11123
|
+
writer.writeString(
|
|
11124
|
+
11,
|
|
11125
|
+
f
|
|
11126
|
+
);
|
|
11127
|
+
}
|
|
11128
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 12));
|
|
11129
|
+
if (f != null) {
|
|
11130
|
+
writer.writeString(
|
|
11131
|
+
12,
|
|
11132
|
+
f
|
|
11133
|
+
);
|
|
11134
|
+
}
|
|
11099
11135
|
};
|
|
11100
11136
|
|
|
11101
11137
|
|
|
@@ -11405,6 +11441,114 @@ proto.bonus.BonusSnapshotItem.prototype.hasStatusId = function() {
|
|
|
11405
11441
|
};
|
|
11406
11442
|
|
|
11407
11443
|
|
|
11444
|
+
/**
|
|
11445
|
+
* optional string description = 10;
|
|
11446
|
+
* @return {string}
|
|
11447
|
+
*/
|
|
11448
|
+
proto.bonus.BonusSnapshotItem.prototype.getDescription = function() {
|
|
11449
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
11450
|
+
};
|
|
11451
|
+
|
|
11452
|
+
|
|
11453
|
+
/**
|
|
11454
|
+
* @param {string} value
|
|
11455
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11456
|
+
*/
|
|
11457
|
+
proto.bonus.BonusSnapshotItem.prototype.setDescription = function(value) {
|
|
11458
|
+
return jspb.Message.setField(this, 10, value);
|
|
11459
|
+
};
|
|
11460
|
+
|
|
11461
|
+
|
|
11462
|
+
/**
|
|
11463
|
+
* Clears the field making it undefined.
|
|
11464
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11465
|
+
*/
|
|
11466
|
+
proto.bonus.BonusSnapshotItem.prototype.clearDescription = function() {
|
|
11467
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
11468
|
+
};
|
|
11469
|
+
|
|
11470
|
+
|
|
11471
|
+
/**
|
|
11472
|
+
* Returns whether this field is set.
|
|
11473
|
+
* @return {boolean}
|
|
11474
|
+
*/
|
|
11475
|
+
proto.bonus.BonusSnapshotItem.prototype.hasDescription = function() {
|
|
11476
|
+
return jspb.Message.getField(this, 10) != null;
|
|
11477
|
+
};
|
|
11478
|
+
|
|
11479
|
+
|
|
11480
|
+
/**
|
|
11481
|
+
* optional string started_at = 11;
|
|
11482
|
+
* @return {string}
|
|
11483
|
+
*/
|
|
11484
|
+
proto.bonus.BonusSnapshotItem.prototype.getStartedAt = function() {
|
|
11485
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
11486
|
+
};
|
|
11487
|
+
|
|
11488
|
+
|
|
11489
|
+
/**
|
|
11490
|
+
* @param {string} value
|
|
11491
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11492
|
+
*/
|
|
11493
|
+
proto.bonus.BonusSnapshotItem.prototype.setStartedAt = function(value) {
|
|
11494
|
+
return jspb.Message.setField(this, 11, value);
|
|
11495
|
+
};
|
|
11496
|
+
|
|
11497
|
+
|
|
11498
|
+
/**
|
|
11499
|
+
* Clears the field making it undefined.
|
|
11500
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11501
|
+
*/
|
|
11502
|
+
proto.bonus.BonusSnapshotItem.prototype.clearStartedAt = function() {
|
|
11503
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
11504
|
+
};
|
|
11505
|
+
|
|
11506
|
+
|
|
11507
|
+
/**
|
|
11508
|
+
* Returns whether this field is set.
|
|
11509
|
+
* @return {boolean}
|
|
11510
|
+
*/
|
|
11511
|
+
proto.bonus.BonusSnapshotItem.prototype.hasStartedAt = function() {
|
|
11512
|
+
return jspb.Message.getField(this, 11) != null;
|
|
11513
|
+
};
|
|
11514
|
+
|
|
11515
|
+
|
|
11516
|
+
/**
|
|
11517
|
+
* optional string finished_at = 12;
|
|
11518
|
+
* @return {string}
|
|
11519
|
+
*/
|
|
11520
|
+
proto.bonus.BonusSnapshotItem.prototype.getFinishedAt = function() {
|
|
11521
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
11522
|
+
};
|
|
11523
|
+
|
|
11524
|
+
|
|
11525
|
+
/**
|
|
11526
|
+
* @param {string} value
|
|
11527
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11528
|
+
*/
|
|
11529
|
+
proto.bonus.BonusSnapshotItem.prototype.setFinishedAt = function(value) {
|
|
11530
|
+
return jspb.Message.setField(this, 12, value);
|
|
11531
|
+
};
|
|
11532
|
+
|
|
11533
|
+
|
|
11534
|
+
/**
|
|
11535
|
+
* Clears the field making it undefined.
|
|
11536
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11537
|
+
*/
|
|
11538
|
+
proto.bonus.BonusSnapshotItem.prototype.clearFinishedAt = function() {
|
|
11539
|
+
return jspb.Message.setField(this, 12, undefined);
|
|
11540
|
+
};
|
|
11541
|
+
|
|
11542
|
+
|
|
11543
|
+
/**
|
|
11544
|
+
* Returns whether this field is set.
|
|
11545
|
+
* @return {boolean}
|
|
11546
|
+
*/
|
|
11547
|
+
proto.bonus.BonusSnapshotItem.prototype.hasFinishedAt = function() {
|
|
11548
|
+
return jspb.Message.getField(this, 12) != null;
|
|
11549
|
+
};
|
|
11550
|
+
|
|
11551
|
+
|
|
11408
11552
|
|
|
11409
11553
|
/**
|
|
11410
11554
|
* List of repeated fields within this message type.
|
package/cashback/cashback.proto
CHANGED
|
@@ -19,6 +19,7 @@ service Cashback {
|
|
|
19
19
|
rpc getUserCashbackByType(CashbackUserRequest) returns (UserCashbackResponse);
|
|
20
20
|
rpc claimCashbackForUser(ClaimCashbackRequest) returns (ClaimCashbackResponse);
|
|
21
21
|
rpc reactivateCashbackForUser(ReactivateCashbackRequest) returns (UserCashbackResponse);
|
|
22
|
+
rpc getUserCashbackInformation(GetUserCashbackInformationRequest) returns (GetUserCashbackInformationResponse);
|
|
22
23
|
}
|
|
23
24
|
//Technical
|
|
24
25
|
message PingRequest { string ping = 1; }
|
|
@@ -62,6 +63,9 @@ message CashbackItem {
|
|
|
62
63
|
optional string checking_at = 10;
|
|
63
64
|
repeated CashbackConfigItem config = 11;
|
|
64
65
|
optional int32 bonus_template_id = 12;
|
|
66
|
+
optional string content = 13;
|
|
67
|
+
optional int32 claim_expiration_hours = 14;
|
|
68
|
+
optional int32 loyalty_level_id = 15;
|
|
65
69
|
}
|
|
66
70
|
message CashbackRequest {
|
|
67
71
|
oneof request {
|
|
@@ -79,6 +83,9 @@ message CashbackItemRequest {
|
|
|
79
83
|
optional string type = 8;
|
|
80
84
|
optional string checking_at = 9;
|
|
81
85
|
optional int32 bonus_template_id = 10;
|
|
86
|
+
optional string content = 11;
|
|
87
|
+
optional int32 claim_expiration_hours = 12;
|
|
88
|
+
optional int32 loyalty_level_id = 13;
|
|
82
89
|
}
|
|
83
90
|
message GetCashbackRequest {
|
|
84
91
|
int32 id = 1;
|
|
@@ -146,6 +153,11 @@ message UserCashbackItem {
|
|
|
146
153
|
optional int32 cashback_user_id = 18;
|
|
147
154
|
repeated CashbackGamePreview games = 19;
|
|
148
155
|
optional int32 user_bonus_id = 20;
|
|
156
|
+
optional int64 reward_minor = 21;
|
|
157
|
+
optional int32 currency_scale = 22;
|
|
158
|
+
optional string claim_expires_at = 23;
|
|
159
|
+
optional int32 loyalty_level_id = 24;
|
|
160
|
+
optional bool is_expired = 25;
|
|
149
161
|
}
|
|
150
162
|
message CashbackUserRequest {
|
|
151
163
|
int32 user_id = 1;
|
|
@@ -174,4 +186,28 @@ message ClaimCashbackResponse {
|
|
|
174
186
|
message UserCashbackResponse {
|
|
175
187
|
UserCashbackItem data = 1;
|
|
176
188
|
}
|
|
189
|
+
message GetUserCashbackInformationRequest {
|
|
190
|
+
int32 user_id = 1;
|
|
191
|
+
string currency = 2;
|
|
192
|
+
}
|
|
193
|
+
message UserCashbackInformationDefinitionItem {
|
|
194
|
+
optional int32 id = 1;
|
|
195
|
+
optional int32 loyalty_level_id = 2;
|
|
196
|
+
optional int32 level = 3;
|
|
197
|
+
optional string type = 4;
|
|
198
|
+
optional float percentage = 5;
|
|
199
|
+
optional float min = 6;
|
|
200
|
+
optional float max = 7;
|
|
201
|
+
optional int32 claim_expiration_hours = 8;
|
|
202
|
+
optional int32 is_active = 9;
|
|
203
|
+
}
|
|
204
|
+
message GetUserCashbackInformationResponse {
|
|
205
|
+
string currency = 1;
|
|
206
|
+
int32 currency_scale = 2;
|
|
207
|
+
int64 claimable_amount_minor = 3;
|
|
208
|
+
optional string title = 4;
|
|
209
|
+
optional string content = 5;
|
|
210
|
+
optional string nearest_claim_expires_at = 6;
|
|
211
|
+
repeated UserCashbackInformationDefinitionItem definitions = 7;
|
|
212
|
+
}
|
|
177
213
|
|
|
@@ -136,6 +136,28 @@ function deserialize_cashback_GetFileRequest(buffer_arg) {
|
|
|
136
136
|
return cashback_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
function serialize_cashback_GetUserCashbackInformationRequest(arg) {
|
|
140
|
+
if (!(arg instanceof cashback_pb.GetUserCashbackInformationRequest)) {
|
|
141
|
+
throw new Error('Expected argument of type cashback.GetUserCashbackInformationRequest');
|
|
142
|
+
}
|
|
143
|
+
return Buffer.from(arg.serializeBinary());
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function deserialize_cashback_GetUserCashbackInformationRequest(buffer_arg) {
|
|
147
|
+
return cashback_pb.GetUserCashbackInformationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function serialize_cashback_GetUserCashbackInformationResponse(arg) {
|
|
151
|
+
if (!(arg instanceof cashback_pb.GetUserCashbackInformationResponse)) {
|
|
152
|
+
throw new Error('Expected argument of type cashback.GetUserCashbackInformationResponse');
|
|
153
|
+
}
|
|
154
|
+
return Buffer.from(arg.serializeBinary());
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function deserialize_cashback_GetUserCashbackInformationResponse(buffer_arg) {
|
|
158
|
+
return cashback_pb.GetUserCashbackInformationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
|
+
}
|
|
160
|
+
|
|
139
161
|
function serialize_cashback_ItemsBunchRequest(arg) {
|
|
140
162
|
if (!(arg instanceof cashback_pb.ItemsBunchRequest)) {
|
|
141
163
|
throw new Error('Expected argument of type cashback.ItemsBunchRequest');
|
|
@@ -371,6 +393,17 @@ getCashbackForUserByType: {
|
|
|
371
393
|
responseSerialize: serialize_cashback_UserCashbackResponse,
|
|
372
394
|
responseDeserialize: deserialize_cashback_UserCashbackResponse,
|
|
373
395
|
},
|
|
396
|
+
getUserCashbackInformation: {
|
|
397
|
+
path: '/cashback.Cashback/getUserCashbackInformation',
|
|
398
|
+
requestStream: false,
|
|
399
|
+
responseStream: false,
|
|
400
|
+
requestType: cashback_pb.GetUserCashbackInformationRequest,
|
|
401
|
+
responseType: cashback_pb.GetUserCashbackInformationResponse,
|
|
402
|
+
requestSerialize: serialize_cashback_GetUserCashbackInformationRequest,
|
|
403
|
+
requestDeserialize: deserialize_cashback_GetUserCashbackInformationRequest,
|
|
404
|
+
responseSerialize: serialize_cashback_GetUserCashbackInformationResponse,
|
|
405
|
+
responseDeserialize: deserialize_cashback_GetUserCashbackInformationResponse,
|
|
406
|
+
},
|
|
374
407
|
};
|
|
375
408
|
|
|
376
409
|
exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService, 'Cashback');
|