@ciganov/contracts 1.1.24 → 1.1.26
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/dist/gen/betting.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "betting.v1";
|
|
3
|
+
export interface GetBetCountByEventRequest {
|
|
4
|
+
eventId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface GetBetCountByEventResponse {
|
|
7
|
+
count: number;
|
|
8
|
+
}
|
|
3
9
|
export interface PlaceBetRequest {
|
|
4
10
|
userId: string;
|
|
5
11
|
outcomeId: string;
|
|
@@ -12,9 +18,11 @@ export interface PlaceBetResponse {
|
|
|
12
18
|
export declare const BETTING_V1_PACKAGE_NAME = "betting.v1";
|
|
13
19
|
export interface BettingServiceClient {
|
|
14
20
|
placeBet(request: PlaceBetRequest): Observable<PlaceBetResponse>;
|
|
21
|
+
getBetCountByEvent(request: GetBetCountByEventRequest): Observable<GetBetCountByEventResponse>;
|
|
15
22
|
}
|
|
16
23
|
export interface BettingServiceController {
|
|
17
24
|
placeBet(request: PlaceBetRequest): Promise<PlaceBetResponse> | Observable<PlaceBetResponse> | PlaceBetResponse;
|
|
25
|
+
getBetCountByEvent(request: GetBetCountByEventRequest): Promise<GetBetCountByEventResponse> | Observable<GetBetCountByEventResponse> | GetBetCountByEventResponse;
|
|
18
26
|
}
|
|
19
27
|
export declare function BettingServiceControllerMethods(): (constructor: Function) => void;
|
|
20
28
|
export declare const BETTING_SERVICE_NAME = "BettingService";
|
package/dist/gen/betting.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.protobufPackage = "betting.v1";
|
|
|
13
13
|
exports.BETTING_V1_PACKAGE_NAME = "betting.v1";
|
|
14
14
|
function BettingServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = ["placeBet"];
|
|
16
|
+
const grpcMethods = ["placeBet", "getBetCountByEvent"];
|
|
17
17
|
for (const method of grpcMethods) {
|
|
18
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
19
|
(0, microservices_1.GrpcMethod)("BettingService", method)(constructor.prototype[method], method, descriptor);
|
package/dist/gen/odd.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface CreateCategoryRequest {
|
|
|
24
24
|
slug: string;
|
|
25
25
|
description: string;
|
|
26
26
|
image: string;
|
|
27
|
+
badgeColor: string;
|
|
27
28
|
}
|
|
28
29
|
export interface CreateCategoryResponse {
|
|
29
30
|
ok: boolean;
|
|
@@ -103,6 +104,7 @@ export interface Category {
|
|
|
103
104
|
isActive: boolean;
|
|
104
105
|
description: string;
|
|
105
106
|
image: string;
|
|
107
|
+
badgeColor: string;
|
|
106
108
|
}
|
|
107
109
|
export interface Outcome {
|
|
108
110
|
id: string;
|
|
@@ -120,6 +122,8 @@ export interface Event {
|
|
|
120
122
|
end: Timestamp | undefined;
|
|
121
123
|
isLive: boolean;
|
|
122
124
|
outcomes: Outcome[];
|
|
125
|
+
categoryTitle: string;
|
|
126
|
+
badgeColor: string;
|
|
123
127
|
}
|
|
124
128
|
export declare const ODD_V1_PACKAGE_NAME = "odd.v1";
|
|
125
129
|
export interface OddServiceClient {
|
|
@@ -5,6 +5,15 @@ package betting.v1;
|
|
|
5
5
|
|
|
6
6
|
service BettingService {
|
|
7
7
|
rpc PlaceBet(PlaceBetRequest) returns (PlaceBetResponse);
|
|
8
|
+
rpc GetBetCountByEvent(GetBetCountByEventRequest) returns (GetBetCountByEventResponse);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message GetBetCountByEventRequest {
|
|
12
|
+
string event_id = 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message GetBetCountByEventResponse {
|
|
16
|
+
int32 count = 1;
|
|
8
17
|
}
|
|
9
18
|
|
|
10
19
|
message PlaceBetRequest {
|
|
@@ -38,6 +38,7 @@ message CreateCategoryRequest {
|
|
|
38
38
|
string slug = 2;
|
|
39
39
|
string description = 3;
|
|
40
40
|
string image = 4;
|
|
41
|
+
string badge_color = 5;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
message CreateCategoryResponse {
|
|
@@ -141,6 +142,7 @@ message Category {
|
|
|
141
142
|
bool is_active = 4;
|
|
142
143
|
string description = 5;
|
|
143
144
|
string image = 6;
|
|
145
|
+
string badge_color = 7;
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
message Outcome {
|
|
@@ -160,6 +162,8 @@ message Event {
|
|
|
160
162
|
google.protobuf.Timestamp end = 6;
|
|
161
163
|
bool is_live = 7;
|
|
162
164
|
repeated Outcome outcomes = 8;
|
|
165
|
+
string category_title = 9;
|
|
166
|
+
string badge_color = 10;
|
|
163
167
|
}
|
|
164
168
|
|
|
165
169
|
enum EventStatus {
|