protobuf-platform 1.0.233 → 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.
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ package cashback;
4
+
5
+ service Cashback {
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 cashback_pb = require('./cashback_pb.js');
6
+
7
+ function serialize_cashback_PingRequest(arg) {
8
+ if (!(arg instanceof cashback_pb.PingRequest)) {
9
+ throw new Error('Expected argument of type cashback.PingRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_cashback_PingRequest(buffer_arg) {
15
+ return cashback_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_cashback_PongResponse(arg) {
19
+ if (!(arg instanceof cashback_pb.PongResponse)) {
20
+ throw new Error('Expected argument of type cashback.PongResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_cashback_PongResponse(buffer_arg) {
26
+ return cashback_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+
30
+ var CashbackService = exports.CashbackService = {
31
+ checkConnection: {
32
+ path: '/cashback.Cashback/checkConnection',
33
+ requestStream: false,
34
+ responseStream: false,
35
+ requestType: cashback_pb.PingRequest,
36
+ responseType: cashback_pb.PongResponse,
37
+ requestSerialize: serialize_cashback_PingRequest,
38
+ requestDeserialize: deserialize_cashback_PingRequest,
39
+ responseSerialize: serialize_cashback_PongResponse,
40
+ responseDeserialize: deserialize_cashback_PongResponse,
41
+ },
42
+ };
43
+
44
+ exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService);