protobuf-platform 1.0.244 → 1.0.246

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,16 @@
1
+ syntax = "proto3";
2
+
3
+ package analytic;
4
+
5
+ service Analytic {
6
+ rpc checkConnection(PingRequest) returns (PongResponse);
7
+ }
8
+ //Technical
9
+ message PingRequest { string ping = 1; }
10
+ message PongResponse { string pong = 1; }
11
+ //Common
12
+ message PaginationRequest { int32 limit = 1; int32 offset = 2; optional GlobalSearchRequest global_search_params = 3; }
13
+ message GlobalSearchRequest {
14
+ optional string start_at = 1;
15
+ optional string end_at = 2;
16
+ }
package/index.js CHANGED
@@ -29,6 +29,8 @@ const PromoCodeService = require('./promocode/promocode_grpc_pb');
29
29
  const PromoCodeServiceMessages = require('./promocode/promocode_pb');
30
30
  const TournamentService = require('./tournament/tournament_grpc_pb');
31
31
  const TournamentServiceMessages = require('./tournament/tournament_pb');
32
+ const AnalyticService = require('./analytic/analytic_grpc_pb');
33
+ const AnalyticServiceMessages = require('./analytic/analytic_pb');
32
34
  module.exports = {
33
35
  gRPC: gRPC,
34
36
  maxSendMessageLength: 10388608,
@@ -90,4 +92,8 @@ module.exports = {
90
92
  service: TournamentService,
91
93
  messages: TournamentServiceMessages
92
94
  },
95
+ analytic: {
96
+ service: AnalyticService,
97
+ messages: AnalyticServiceMessages
98
+ },
93
99
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.244",
3
+ "version": "1.0.246",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,4 +13,5 @@ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:notification --grpc
13
13
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:payment --grpc_out=grpc_js:payment --proto_path=./payment ./payment/*.proto &&
14
14
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cashback --grpc_out=grpc_js:cashback --proto_path=./cashback ./cashback/*.proto &&
15
15
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:promocode --grpc_out=grpc_js:promocode --proto_path=./promocode ./promocode/*.proto &&
16
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:tournament --grpc_out=grpc_js:tournament --proto_path=./tournament ./tournament/*.proto
16
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:tournament --grpc_out=grpc_js:tournament --proto_path=./tournament ./tournament/*.proto &&
17
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:analytic --grpc_out=grpc_js:analytic --proto_path=./analytic ./analytic/*.proto
@@ -1,112 +0,0 @@
1
- // GENERATED CODE -- DO NOT EDIT!
2
-
3
- 'use strict';
4
- var grpc = require('@grpc/grpc-js');
5
- var bet_pb = require('./bet_pb.js');
6
-
7
- function serialize_bet_BetsHistoryResponse(arg) {
8
- if (!(arg instanceof bet_pb.BetsHistoryResponse)) {
9
- throw new Error('Expected argument of type bet.BetsHistoryResponse');
10
- }
11
- return Buffer.from(arg.serializeBinary());
12
- }
13
-
14
- function deserialize_bet_BetsHistoryResponse(buffer_arg) {
15
- return bet_pb.BetsHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
16
- }
17
-
18
- function serialize_bet_DashboardRequest(arg) {
19
- if (!(arg instanceof bet_pb.DashboardRequest)) {
20
- throw new Error('Expected argument of type bet.DashboardRequest');
21
- }
22
- return Buffer.from(arg.serializeBinary());
23
- }
24
-
25
- function deserialize_bet_DashboardRequest(buffer_arg) {
26
- return bet_pb.DashboardRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
- }
28
-
29
- function serialize_bet_DashboardResponse(arg) {
30
- if (!(arg instanceof bet_pb.DashboardResponse)) {
31
- throw new Error('Expected argument of type bet.DashboardResponse');
32
- }
33
- return Buffer.from(arg.serializeBinary());
34
- }
35
-
36
- function deserialize_bet_DashboardResponse(buffer_arg) {
37
- return bet_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
38
- }
39
-
40
- function serialize_bet_PaginationRequest(arg) {
41
- if (!(arg instanceof bet_pb.PaginationRequest)) {
42
- throw new Error('Expected argument of type bet.PaginationRequest');
43
- }
44
- return Buffer.from(arg.serializeBinary());
45
- }
46
-
47
- function deserialize_bet_PaginationRequest(buffer_arg) {
48
- return bet_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
49
- }
50
-
51
- function serialize_bet_PingRequest(arg) {
52
- if (!(arg instanceof bet_pb.PingRequest)) {
53
- throw new Error('Expected argument of type bet.PingRequest');
54
- }
55
- return Buffer.from(arg.serializeBinary());
56
- }
57
-
58
- function deserialize_bet_PingRequest(buffer_arg) {
59
- return bet_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
- }
61
-
62
- function serialize_bet_PongResponse(arg) {
63
- if (!(arg instanceof bet_pb.PongResponse)) {
64
- throw new Error('Expected argument of type bet.PongResponse');
65
- }
66
- return Buffer.from(arg.serializeBinary());
67
- }
68
-
69
- function deserialize_bet_PongResponse(buffer_arg) {
70
- return bet_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
- }
72
-
73
-
74
- var BetService = exports.BetService = {
75
- checkConnection: {
76
- path: '/bet.Bet/checkConnection',
77
- requestStream: false,
78
- responseStream: false,
79
- requestType: bet_pb.PingRequest,
80
- responseType: bet_pb.PongResponse,
81
- requestSerialize: serialize_bet_PingRequest,
82
- requestDeserialize: deserialize_bet_PingRequest,
83
- responseSerialize: serialize_bet_PongResponse,
84
- responseDeserialize: deserialize_bet_PongResponse,
85
- },
86
- // User bets info
87
- getBetsHistory: {
88
- path: '/bet.Bet/getBetsHistory',
89
- requestStream: false,
90
- responseStream: false,
91
- requestType: bet_pb.PaginationRequest,
92
- responseType: bet_pb.BetsHistoryResponse,
93
- requestSerialize: serialize_bet_PaginationRequest,
94
- requestDeserialize: deserialize_bet_PaginationRequest,
95
- responseSerialize: serialize_bet_BetsHistoryResponse,
96
- responseDeserialize: deserialize_bet_BetsHistoryResponse,
97
- },
98
- // Dashboard
99
- getDashboardInfo: {
100
- path: '/bet.Bet/getDashboardInfo',
101
- requestStream: false,
102
- responseStream: false,
103
- requestType: bet_pb.DashboardRequest,
104
- responseType: bet_pb.DashboardResponse,
105
- requestSerialize: serialize_bet_DashboardRequest,
106
- requestDeserialize: deserialize_bet_DashboardRequest,
107
- responseSerialize: serialize_bet_DashboardResponse,
108
- responseDeserialize: deserialize_bet_DashboardResponse,
109
- },
110
- };
111
-
112
- exports.BetClient = grpc.makeGenericClientConstructor(BetService);