@ciganov/contracts 1.1.22 → 1.1.24
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/odd.d.ts +7 -0
- package/dist/gen/odd.js +1 -0
- package/dist/proto/contracts/odd.proto +7 -0
- package/package.json +1 -1
package/dist/gen/odd.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ export declare enum EventStatus {
|
|
|
13
13
|
export interface GetRandomEventsRequest {
|
|
14
14
|
randomCount: number;
|
|
15
15
|
}
|
|
16
|
+
export interface GetEventsResponse {
|
|
17
|
+
events: Event[];
|
|
18
|
+
}
|
|
16
19
|
export interface GetRandomEventsResponse {
|
|
17
20
|
events: Event[];
|
|
18
21
|
}
|
|
@@ -20,6 +23,7 @@ export interface CreateCategoryRequest {
|
|
|
20
23
|
name: string;
|
|
21
24
|
slug: string;
|
|
22
25
|
description: string;
|
|
26
|
+
image: string;
|
|
23
27
|
}
|
|
24
28
|
export interface CreateCategoryResponse {
|
|
25
29
|
ok: boolean;
|
|
@@ -98,6 +102,7 @@ export interface Category {
|
|
|
98
102
|
slug: string;
|
|
99
103
|
isActive: boolean;
|
|
100
104
|
description: string;
|
|
105
|
+
image: string;
|
|
101
106
|
}
|
|
102
107
|
export interface Outcome {
|
|
103
108
|
id: string;
|
|
@@ -123,6 +128,7 @@ export interface OddServiceClient {
|
|
|
123
128
|
getCategories(request: Empty): Observable<GetCategoriesResponse>;
|
|
124
129
|
createEvent(request: CreateEventRequest): Observable<CreateEventResponse>;
|
|
125
130
|
getEvent(request: GetEventRequest): Observable<GetEventResponse>;
|
|
131
|
+
getEvents(request: Empty): Observable<GetEventsResponse>;
|
|
126
132
|
getEventsByCategory(request: GetEventsByCategoryRequest): Observable<GetEventsByCategoryResponse>;
|
|
127
133
|
switchEventLiveState(request: SwitchEventLiveStateRequest): Observable<SwitchEventLiveStateResponse>;
|
|
128
134
|
createOutcome(request: CreateOutcomeRequest): Observable<CreateOutcomeResponse>;
|
|
@@ -137,6 +143,7 @@ export interface OddServiceController {
|
|
|
137
143
|
getCategories(request: Empty): Promise<GetCategoriesResponse> | Observable<GetCategoriesResponse> | GetCategoriesResponse;
|
|
138
144
|
createEvent(request: CreateEventRequest): Promise<CreateEventResponse> | Observable<CreateEventResponse> | CreateEventResponse;
|
|
139
145
|
getEvent(request: GetEventRequest): Promise<GetEventResponse> | Observable<GetEventResponse> | GetEventResponse;
|
|
146
|
+
getEvents(request: Empty): Promise<GetEventsResponse> | Observable<GetEventsResponse> | GetEventsResponse;
|
|
140
147
|
getEventsByCategory(request: GetEventsByCategoryRequest): Promise<GetEventsByCategoryResponse> | Observable<GetEventsByCategoryResponse> | GetEventsByCategoryResponse;
|
|
141
148
|
switchEventLiveState(request: SwitchEventLiveStateRequest): Promise<SwitchEventLiveStateResponse> | Observable<SwitchEventLiveStateResponse> | SwitchEventLiveStateResponse;
|
|
142
149
|
createOutcome(request: CreateOutcomeRequest): Promise<CreateOutcomeResponse> | Observable<CreateOutcomeResponse> | CreateOutcomeResponse;
|
package/dist/gen/odd.js
CHANGED
|
@@ -11,6 +11,7 @@ service OddService {
|
|
|
11
11
|
rpc GetCategories(google.protobuf.Empty) returns (GetCategoriesResponse);
|
|
12
12
|
rpc CreateEvent(CreateEventRequest) returns (CreateEventResponse);
|
|
13
13
|
rpc GetEvent(GetEventRequest) returns (GetEventResponse);
|
|
14
|
+
rpc GetEvents(google.protobuf.Empty) returns (GetEventsResponse);
|
|
14
15
|
rpc GetEventsByCategory(GetEventsByCategoryRequest) returns (GetEventsByCategoryResponse);
|
|
15
16
|
rpc SwitchEventLiveState(SwitchEventLiveStateRequest) returns (SwitchEventLiveStateResponse);
|
|
16
17
|
rpc CreateOutcome(CreateOutcomeRequest) returns (CreateOutcomeResponse);
|
|
@@ -24,6 +25,10 @@ message GetRandomEventsRequest {
|
|
|
24
25
|
int32 randomCount = 1;
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
message GetEventsResponse {
|
|
29
|
+
repeated Event events = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
message GetRandomEventsResponse {
|
|
28
33
|
repeated Event events = 1;
|
|
29
34
|
}
|
|
@@ -32,6 +37,7 @@ message CreateCategoryRequest {
|
|
|
32
37
|
string name = 1;
|
|
33
38
|
string slug = 2;
|
|
34
39
|
string description = 3;
|
|
40
|
+
string image = 4;
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
message CreateCategoryResponse {
|
|
@@ -134,6 +140,7 @@ message Category {
|
|
|
134
140
|
string slug = 3;
|
|
135
141
|
bool is_active = 4;
|
|
136
142
|
string description = 5;
|
|
143
|
+
string image = 6;
|
|
137
144
|
}
|
|
138
145
|
|
|
139
146
|
message Outcome {
|