protobuf-platform 1.2.191 → 1.2.193
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/cashback/cashback.proto +16 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +723 -3
- package/game/game.proto +19 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +930 -0
- package/package.json +1 -1
package/cashback/cashback.proto
CHANGED
|
@@ -16,6 +16,7 @@ service Cashback {
|
|
|
16
16
|
//User
|
|
17
17
|
rpc getCashbackForUserByType(CashbackUserRequest) returns (CashbackResponse);
|
|
18
18
|
rpc getCashbacksListForUser(CashbackUserRequest) returns (UserCashbackItemsResponse);
|
|
19
|
+
rpc claimCashbackForUser(ClaimCashbackRequest) returns (ClaimCashbackResponse);
|
|
19
20
|
}
|
|
20
21
|
//Technical
|
|
21
22
|
message PingRequest { string ping = 1; }
|
|
@@ -109,6 +110,11 @@ message CashbackActions {
|
|
|
109
110
|
bool can_reactivate = 2;
|
|
110
111
|
bool can_calculate = 3;
|
|
111
112
|
}
|
|
113
|
+
message CashbackGamePreview {
|
|
114
|
+
string game_slug = 1;
|
|
115
|
+
string provider_slug = 2;
|
|
116
|
+
optional string image = 3;
|
|
117
|
+
}
|
|
112
118
|
//User
|
|
113
119
|
message UserCashbackItem {
|
|
114
120
|
int32 cashback_id = 1;
|
|
@@ -131,6 +137,8 @@ message UserCashbackItem {
|
|
|
131
137
|
|
|
132
138
|
optional int64 remaining_ms = 15;
|
|
133
139
|
optional float remaining_to_min = 16;
|
|
140
|
+
optional int32 cashback_user_id = 17;
|
|
141
|
+
repeated CashbackGamePreview games = 18;
|
|
134
142
|
}
|
|
135
143
|
message CashbackUserRequest {
|
|
136
144
|
int32 user_id = 1;
|
|
@@ -142,4 +150,12 @@ message UserCashbackItemsResponse {
|
|
|
142
150
|
optional int32 total_pages = 2;
|
|
143
151
|
optional int32 total_items = 3;
|
|
144
152
|
}
|
|
153
|
+
message ClaimCashbackRequest {
|
|
154
|
+
int32 user_id = 1;
|
|
155
|
+
int32 cashback_user_id = 2;
|
|
156
|
+
optional string currency = 3;
|
|
157
|
+
}
|
|
158
|
+
message ClaimCashbackResponse {
|
|
159
|
+
string status = 1;
|
|
160
|
+
}
|
|
145
161
|
|
|
@@ -81,6 +81,28 @@ function deserialize_cashback_CashbackUserRequest(buffer_arg) {
|
|
|
81
81
|
return cashback_pb.CashbackUserRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
function serialize_cashback_ClaimCashbackRequest(arg) {
|
|
85
|
+
if (!(arg instanceof cashback_pb.ClaimCashbackRequest)) {
|
|
86
|
+
throw new Error('Expected argument of type cashback.ClaimCashbackRequest');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_cashback_ClaimCashbackRequest(buffer_arg) {
|
|
92
|
+
return cashback_pb.ClaimCashbackRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function serialize_cashback_ClaimCashbackResponse(arg) {
|
|
96
|
+
if (!(arg instanceof cashback_pb.ClaimCashbackResponse)) {
|
|
97
|
+
throw new Error('Expected argument of type cashback.ClaimCashbackResponse');
|
|
98
|
+
}
|
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function deserialize_cashback_ClaimCashbackResponse(buffer_arg) {
|
|
103
|
+
return cashback_pb.ClaimCashbackResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
|
+
}
|
|
105
|
+
|
|
84
106
|
function serialize_cashback_File(arg) {
|
|
85
107
|
if (!(arg instanceof cashback_pb.File)) {
|
|
86
108
|
throw new Error('Expected argument of type cashback.File');
|
|
@@ -294,6 +316,17 @@ getCashbackForUserByType: {
|
|
|
294
316
|
responseSerialize: serialize_cashback_UserCashbackItemsResponse,
|
|
295
317
|
responseDeserialize: deserialize_cashback_UserCashbackItemsResponse,
|
|
296
318
|
},
|
|
319
|
+
claimCashbackForUser: {
|
|
320
|
+
path: '/cashback.Cashback/claimCashbackForUser',
|
|
321
|
+
requestStream: false,
|
|
322
|
+
responseStream: false,
|
|
323
|
+
requestType: cashback_pb.ClaimCashbackRequest,
|
|
324
|
+
responseType: cashback_pb.ClaimCashbackResponse,
|
|
325
|
+
requestSerialize: serialize_cashback_ClaimCashbackRequest,
|
|
326
|
+
requestDeserialize: deserialize_cashback_ClaimCashbackRequest,
|
|
327
|
+
responseSerialize: serialize_cashback_ClaimCashbackResponse,
|
|
328
|
+
responseDeserialize: deserialize_cashback_ClaimCashbackResponse,
|
|
329
|
+
},
|
|
297
330
|
};
|
|
298
331
|
|
|
299
332
|
exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService, 'Cashback');
|