protobuf-platform 1.0.234 → 1.0.235
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 +15 -0
- package/cashback/cashback_grpc_pb.js +44 -0
- package/cashback/cashback_pb.js +827 -0
- package/index.js +18 -0
- package/package.json +1 -1
- package/promocode/promocode.proto +15 -0
- package/promocode/promocode_grpc_pb.js +44 -0
- package/promocode/promocode_pb.js +827 -0
- package/tournament/tournament.proto +15 -0
- package/tournament/tournament_grpc_pb.js +44 -0
- package/tournament/tournament_pb.js +827 -0
- package/update_protobuf.sh +4 -1
package/index.js
CHANGED
@@ -23,6 +23,12 @@ const NotificationService = require('./notification/notification_grpc_pb');
|
|
23
23
|
const NotificationServiceMessages = require('./notification/notification_pb');
|
24
24
|
const PaymentService = require('./payment/payment_grpc_pb');
|
25
25
|
const PaymentServiceMessages = require('./payment/payment_pb');
|
26
|
+
const CashBackService = require('./cashback/cashback_grpc_pb');
|
27
|
+
const CashBackServiceMessages = require('./cashback/cashback_pb');
|
28
|
+
const PromoCodeService = require('./promocode/promocode_grpc_pb');
|
29
|
+
const PromoCodeServiceMessages = require('./promocode/promocode_pb');
|
30
|
+
const TournamentService = require('./tournament/tournament_grpc_pb');
|
31
|
+
const TournamentServiceMessages = require('./tournament/tournament_pb');
|
26
32
|
module.exports = {
|
27
33
|
gRPC: gRPC,
|
28
34
|
maxSendMessageLength: 10388608,
|
@@ -72,4 +78,16 @@ module.exports = {
|
|
72
78
|
service: PaymentService,
|
73
79
|
messages: PaymentServiceMessages
|
74
80
|
},
|
81
|
+
cashback: {
|
82
|
+
service: CashBackService,
|
83
|
+
messages: CashBackServiceMessages
|
84
|
+
},
|
85
|
+
promocode: {
|
86
|
+
service: PromoCodeService,
|
87
|
+
messages: PromoCodeServiceMessages
|
88
|
+
},
|
89
|
+
tournament: {
|
90
|
+
service: TournamentService,
|
91
|
+
messages: TournamentServiceMessages
|
92
|
+
},
|
75
93
|
};
|
package/package.json
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package promocode;
|
4
|
+
|
5
|
+
service Promocode {
|
6
|
+
rpc checkConnection(PingRequest) returns (PongResponse);
|
7
|
+
}
|
8
|
+
message PingRequest { string ping = 1; }
|
9
|
+
message PongResponse { string pong = 1; }
|
10
|
+
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional UserSearchRequest user_search_params = 3; }
|
11
|
+
message UserSearchRequest {
|
12
|
+
optional int32 user_id = 1;
|
13
|
+
optional string balance_type = 2;
|
14
|
+
optional string currency = 3;
|
15
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
2
|
+
|
3
|
+
'use strict';
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
5
|
+
var promocode_pb = require('./promocode_pb.js');
|
6
|
+
|
7
|
+
function serialize_promocode_PingRequest(arg) {
|
8
|
+
if (!(arg instanceof promocode_pb.PingRequest)) {
|
9
|
+
throw new Error('Expected argument of type promocode.PingRequest');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_promocode_PingRequest(buffer_arg) {
|
15
|
+
return promocode_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_promocode_PongResponse(arg) {
|
19
|
+
if (!(arg instanceof promocode_pb.PongResponse)) {
|
20
|
+
throw new Error('Expected argument of type promocode.PongResponse');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_promocode_PongResponse(buffer_arg) {
|
26
|
+
return promocode_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
var PromocodeService = exports.PromocodeService = {
|
31
|
+
checkConnection: {
|
32
|
+
path: '/promocode.Promocode/checkConnection',
|
33
|
+
requestStream: false,
|
34
|
+
responseStream: false,
|
35
|
+
requestType: promocode_pb.PingRequest,
|
36
|
+
responseType: promocode_pb.PongResponse,
|
37
|
+
requestSerialize: serialize_promocode_PingRequest,
|
38
|
+
requestDeserialize: deserialize_promocode_PingRequest,
|
39
|
+
responseSerialize: serialize_promocode_PongResponse,
|
40
|
+
responseDeserialize: deserialize_promocode_PongResponse,
|
41
|
+
},
|
42
|
+
};
|
43
|
+
|
44
|
+
exports.PromocodeClient = grpc.makeGenericClientConstructor(PromocodeService);
|