@jugarhoy/api 1.1.11 → 1.1.13
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/apis/PositionsApi.ts +235 -0
- package/apis/RecurringGamesApi.ts +279 -0
- package/apis/SportEventsApi.ts +133 -0
- package/apis/TeamFeedApi.ts +386 -0
- package/apis/TeamsApi.ts +578 -0
- package/apis/VotingApi.ts +404 -0
- package/apis/index.ts +6 -0
- package/models/ApiAppTeamsTeamIdEventsGet200Response.ts +73 -0
- package/models/ApiAppTeamsTeamIdEventsGet200ResponseEventsInner.ts +97 -0
- package/models/ApiAppTeamsTeamIdEventsPostRequest.ts +139 -0
- package/models/ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest.ts +81 -0
- package/models/ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest.ts +66 -0
- package/models/ApiAppTeamsTeamIdFeedSummaryGet200Response.ts +81 -0
- package/models/ApiAppVotingHasVotedPlaySearchIdGet200Response.ts +65 -0
- package/models/AssignPositionsRequest.ts +92 -0
- package/models/AssignPositionsRequestPositionsInner.ts +130 -0
- package/models/AutoAssignPositionsRequest.ts +93 -0
- package/models/CreateRecurringGameRequest.ts +130 -0
- package/models/CreateTeamFeedRequest.ts +82 -0
- package/models/CreateTeamRequest.ts +134 -0
- package/models/FeedMediaType.ts +56 -0
- package/models/GroupedPositionsResponse.ts +83 -0
- package/models/GroupedPositionsResponseHome.ts +83 -0
- package/models/JoinTeamRequest.ts +66 -0
- package/models/MatchVote.ts +134 -0
- package/models/PlaySearchPosition.ts +153 -0
- package/models/PlayerRatingResponse.ts +111 -0
- package/models/PositionResponse.ts +157 -0
- package/models/PositionStatus.ts +53 -0
- package/models/PositionTeam.ts +53 -0
- package/models/RecurringGame.ts +164 -0
- package/models/RecurringGameResponse.ts +155 -0
- package/models/SportEventData.ts +113 -0
- package/models/SportEventType.ts +77 -0
- package/models/SubmitRatingsRequest.ts +92 -0
- package/models/SubmitRatingsRequestRatingsInner.ts +99 -0
- package/models/Team.ts +186 -0
- package/models/TeamFeedItem.ts +188 -0
- package/models/TeamFeedItemResponse.ts +168 -0
- package/models/TeamFeedListResponse.ts +89 -0
- package/models/TeamFeedMedia.ts +101 -0
- package/models/TeamMember.ts +121 -0
- package/models/TeamMemberResponse.ts +123 -0
- package/models/TeamMemberRole.ts +54 -0
- package/models/TeamResponse.ts +194 -0
- package/models/TeamType.ts +53 -0
- package/models/UpdateMemberRoleRequest.ts +76 -0
- package/models/UpdateRecurringGameRequest.ts +124 -0
- package/models/UpdateTeamRequest.ts +105 -0
- package/models/VotingStatsResponse.ts +93 -0
- package/models/VotingStatusResponse.ts +82 -0
- package/models/index.ts +44 -0
- package/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Type of team (private team for matches or training group)
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const TeamType = {
|
|
21
|
+
PrivateTeam: 'PRIVATE_TEAM',
|
|
22
|
+
TrainingGroup: 'TRAINING_GROUP'
|
|
23
|
+
} as const;
|
|
24
|
+
export type TeamType = typeof TeamType[keyof typeof TeamType];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfTeamType(value: any): boolean {
|
|
28
|
+
for (const key in TeamType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(TeamType, key)) {
|
|
30
|
+
if (TeamType[key as keyof typeof TeamType] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TeamTypeFromJSON(json: any): TeamType {
|
|
39
|
+
return TeamTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TeamTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamType {
|
|
43
|
+
return json as TeamType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function TeamTypeToJSON(value?: TeamType | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function TeamTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TeamType {
|
|
51
|
+
return value as TeamType;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TeamMemberRole } from './TeamMemberRole';
|
|
17
|
+
import {
|
|
18
|
+
TeamMemberRoleFromJSON,
|
|
19
|
+
TeamMemberRoleFromJSONTyped,
|
|
20
|
+
TeamMemberRoleToJSON,
|
|
21
|
+
TeamMemberRoleToJSONTyped,
|
|
22
|
+
} from './TeamMemberRole';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateMemberRoleRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateMemberRoleRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {TeamMemberRole}
|
|
33
|
+
* @memberof UpdateMemberRoleRequest
|
|
34
|
+
*/
|
|
35
|
+
role: TeamMemberRole;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the UpdateMemberRoleRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfUpdateMemberRoleRequest(value: object): value is UpdateMemberRoleRequest {
|
|
44
|
+
if (!('role' in value) || value['role'] === undefined) return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function UpdateMemberRoleRequestFromJSON(json: any): UpdateMemberRoleRequest {
|
|
49
|
+
return UpdateMemberRoleRequestFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateMemberRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMemberRoleRequest {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'role': TeamMemberRoleFromJSON(json['role']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function UpdateMemberRoleRequestToJSON(json: any): UpdateMemberRoleRequest {
|
|
63
|
+
return UpdateMemberRoleRequestToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function UpdateMemberRoleRequestToJSONTyped(value?: UpdateMemberRoleRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'role': TeamMemberRoleToJSON(value['role']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateRecurringGameRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateRecurringGameRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UpdateRecurringGameRequest
|
|
26
|
+
*/
|
|
27
|
+
weekday?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateRecurringGameRequest
|
|
32
|
+
*/
|
|
33
|
+
time?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof UpdateRecurringGameRequest
|
|
38
|
+
*/
|
|
39
|
+
duration?: UpdateRecurringGameRequestDurationEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpdateRecurringGameRequest
|
|
44
|
+
*/
|
|
45
|
+
clubPlaceId?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof UpdateRecurringGameRequest
|
|
50
|
+
*/
|
|
51
|
+
precio?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof UpdateRecurringGameRequest
|
|
56
|
+
*/
|
|
57
|
+
daysBeforeMatch?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof UpdateRecurringGameRequest
|
|
62
|
+
*/
|
|
63
|
+
isActive?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const UpdateRecurringGameRequestDurationEnum = {
|
|
71
|
+
NUMBER_60: 60,
|
|
72
|
+
NUMBER_120: 120
|
|
73
|
+
} as const;
|
|
74
|
+
export type UpdateRecurringGameRequestDurationEnum = typeof UpdateRecurringGameRequestDurationEnum[keyof typeof UpdateRecurringGameRequestDurationEnum];
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the UpdateRecurringGameRequest interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfUpdateRecurringGameRequest(value: object): value is UpdateRecurringGameRequest {
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function UpdateRecurringGameRequestFromJSON(json: any): UpdateRecurringGameRequest {
|
|
85
|
+
return UpdateRecurringGameRequestFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function UpdateRecurringGameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRecurringGameRequest {
|
|
89
|
+
if (json == null) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'weekday': json['weekday'] == null ? undefined : json['weekday'],
|
|
95
|
+
'time': json['time'] == null ? undefined : json['time'],
|
|
96
|
+
'duration': json['duration'] == null ? undefined : json['duration'],
|
|
97
|
+
'clubPlaceId': json['clubPlaceId'] == null ? undefined : json['clubPlaceId'],
|
|
98
|
+
'precio': json['precio'] == null ? undefined : json['precio'],
|
|
99
|
+
'daysBeforeMatch': json['daysBeforeMatch'] == null ? undefined : json['daysBeforeMatch'],
|
|
100
|
+
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function UpdateRecurringGameRequestToJSON(json: any): UpdateRecurringGameRequest {
|
|
105
|
+
return UpdateRecurringGameRequestToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function UpdateRecurringGameRequestToJSONTyped(value?: UpdateRecurringGameRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'weekday': value['weekday'],
|
|
116
|
+
'time': value['time'],
|
|
117
|
+
'duration': value['duration'],
|
|
118
|
+
'clubPlaceId': value['clubPlaceId'],
|
|
119
|
+
'precio': value['precio'],
|
|
120
|
+
'daysBeforeMatch': value['daysBeforeMatch'],
|
|
121
|
+
'isActive': value['isActive'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateTeamRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateTeamRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateTeamRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateTeamRequest
|
|
32
|
+
*/
|
|
33
|
+
nivel?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UpdateTeamRequest
|
|
38
|
+
*/
|
|
39
|
+
avatarUrl?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Background color (hex code)
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpdateTeamRequest
|
|
44
|
+
*/
|
|
45
|
+
bgColor?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Foreground color (hex code)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UpdateTeamRequest
|
|
50
|
+
*/
|
|
51
|
+
fgColor?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof UpdateTeamRequest
|
|
56
|
+
*/
|
|
57
|
+
isActive?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the UpdateTeamRequest interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfUpdateTeamRequest(value: object): value is UpdateTeamRequest {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function UpdateTeamRequestFromJSON(json: any): UpdateTeamRequest {
|
|
68
|
+
return UpdateTeamRequestFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function UpdateTeamRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTeamRequest {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
78
|
+
'nivel': json['nivel'] == null ? undefined : json['nivel'],
|
|
79
|
+
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
80
|
+
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
81
|
+
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
82
|
+
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function UpdateTeamRequestToJSON(json: any): UpdateTeamRequest {
|
|
87
|
+
return UpdateTeamRequestToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function UpdateTeamRequestToJSONTyped(value?: UpdateTeamRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'name': value['name'],
|
|
98
|
+
'nivel': value['nivel'],
|
|
99
|
+
'avatarUrl': value['avatarUrl'],
|
|
100
|
+
'bgColor': value['bgColor'],
|
|
101
|
+
'fgColor': value['fgColor'],
|
|
102
|
+
'isActive': value['isActive'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VotingStatsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface VotingStatsResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof VotingStatsResponse
|
|
26
|
+
*/
|
|
27
|
+
totalVotes: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof VotingStatsResponse
|
|
32
|
+
*/
|
|
33
|
+
uniqueVoters: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof VotingStatsResponse
|
|
38
|
+
*/
|
|
39
|
+
eligibleVoters: number;
|
|
40
|
+
/**
|
|
41
|
+
* Percentage (0-100)
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof VotingStatsResponse
|
|
44
|
+
*/
|
|
45
|
+
participationRate: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the VotingStatsResponse interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfVotingStatsResponse(value: object): value is VotingStatsResponse {
|
|
52
|
+
if (!('totalVotes' in value) || value['totalVotes'] === undefined) return false;
|
|
53
|
+
if (!('uniqueVoters' in value) || value['uniqueVoters'] === undefined) return false;
|
|
54
|
+
if (!('eligibleVoters' in value) || value['eligibleVoters'] === undefined) return false;
|
|
55
|
+
if (!('participationRate' in value) || value['participationRate'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VotingStatsResponseFromJSON(json: any): VotingStatsResponse {
|
|
60
|
+
return VotingStatsResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VotingStatsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VotingStatsResponse {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'totalVotes': json['totalVotes'],
|
|
70
|
+
'uniqueVoters': json['uniqueVoters'],
|
|
71
|
+
'eligibleVoters': json['eligibleVoters'],
|
|
72
|
+
'participationRate': json['participationRate'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function VotingStatsResponseToJSON(json: any): VotingStatsResponse {
|
|
77
|
+
return VotingStatsResponseToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function VotingStatsResponseToJSONTyped(value?: VotingStatsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'totalVotes': value['totalVotes'],
|
|
88
|
+
'uniqueVoters': value['uniqueVoters'],
|
|
89
|
+
'eligibleVoters': value['eligibleVoters'],
|
|
90
|
+
'participationRate': value['participationRate'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VotingStatusResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface VotingStatusResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof VotingStatusResponse
|
|
26
|
+
*/
|
|
27
|
+
isOpen: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof VotingStatusResponse
|
|
32
|
+
*/
|
|
33
|
+
opensAt?: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof VotingStatusResponse
|
|
38
|
+
*/
|
|
39
|
+
closesAt?: Date | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the VotingStatusResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfVotingStatusResponse(value: object): value is VotingStatusResponse {
|
|
46
|
+
if (!('isOpen' in value) || value['isOpen'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function VotingStatusResponseFromJSON(json: any): VotingStatusResponse {
|
|
51
|
+
return VotingStatusResponseFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function VotingStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VotingStatusResponse {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'isOpen': json['isOpen'],
|
|
61
|
+
'opensAt': json['opensAt'] == null ? undefined : (new Date(json['opensAt'])),
|
|
62
|
+
'closesAt': json['closesAt'] == null ? undefined : (new Date(json['closesAt'])),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function VotingStatusResponseToJSON(json: any): VotingStatusResponse {
|
|
67
|
+
return VotingStatusResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function VotingStatusResponseToJSONTyped(value?: VotingStatusResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'isOpen': value['isOpen'],
|
|
78
|
+
'opensAt': value['opensAt'] == null ? undefined : ((value['opensAt'] as any).toISOString()),
|
|
79
|
+
'closesAt': value['closesAt'] == null ? undefined : ((value['closesAt'] as any).toISOString()),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
package/models/index.ts
CHANGED
|
@@ -8,8 +8,18 @@ export * from './ApiAdminPlayPricesIdPutRequest';
|
|
|
8
8
|
export * from './ApiAdminPlayPricesPostRequest';
|
|
9
9
|
export * from './ApiAppFalta1NotificationsSendNewPost200Response';
|
|
10
10
|
export * from './ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner';
|
|
11
|
+
export * from './ApiAppTeamsTeamIdEventsGet200Response';
|
|
12
|
+
export * from './ApiAppTeamsTeamIdEventsGet200ResponseEventsInner';
|
|
13
|
+
export * from './ApiAppTeamsTeamIdEventsPostRequest';
|
|
14
|
+
export * from './ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest';
|
|
15
|
+
export * from './ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest';
|
|
16
|
+
export * from './ApiAppTeamsTeamIdFeedSummaryGet200Response';
|
|
17
|
+
export * from './ApiAppVotingHasVotedPlaySearchIdGet200Response';
|
|
11
18
|
export * from './ApproveClubResponse';
|
|
12
19
|
export * from './ApproveClubResponseResult';
|
|
20
|
+
export * from './AssignPositionsRequest';
|
|
21
|
+
export * from './AssignPositionsRequestPositionsInner';
|
|
22
|
+
export * from './AutoAssignPositionsRequest';
|
|
13
23
|
export * from './AvailabilityShift';
|
|
14
24
|
export * from './AvailabilityShiftHour';
|
|
15
25
|
export * from './AvailabilityShiftSpot';
|
|
@@ -54,8 +64,11 @@ export * from './CreateFromInvite400Response';
|
|
|
54
64
|
export * from './CreateInvitationDto';
|
|
55
65
|
export * from './CreatePlayRegistrationRequest';
|
|
56
66
|
export * from './CreatePlaySearchRequest';
|
|
67
|
+
export * from './CreateRecurringGameRequest';
|
|
57
68
|
export * from './CreateServiceConfigRequest';
|
|
58
69
|
export * from './CreateShiftRequest';
|
|
70
|
+
export * from './CreateTeamFeedRequest';
|
|
71
|
+
export * from './CreateTeamRequest';
|
|
59
72
|
export * from './CreateUserNotificationDto';
|
|
60
73
|
export * from './Customer';
|
|
61
74
|
export * from './CustomerDocument';
|
|
@@ -83,6 +96,7 @@ export * from './ExpireUnpaidReservations500Response';
|
|
|
83
96
|
export * from './ExtendSubscriptions200Response';
|
|
84
97
|
export * from './ExtendSubscriptions200ResponseDetailsInner';
|
|
85
98
|
export * from './Feature';
|
|
99
|
+
export * from './FeedMediaType';
|
|
86
100
|
export * from './FindOccurrences200Response';
|
|
87
101
|
export * from './Frequency';
|
|
88
102
|
export * from './Gender';
|
|
@@ -97,11 +111,14 @@ export * from './GetMercadoPagoAuthUrl200Response';
|
|
|
97
111
|
export * from './GetNotificationByType200Response';
|
|
98
112
|
export * from './GetSession401Response';
|
|
99
113
|
export * from './GetSession500Response';
|
|
114
|
+
export * from './GroupedPositionsResponse';
|
|
115
|
+
export * from './GroupedPositionsResponseHome';
|
|
100
116
|
export * from './HasDoorlock200Response';
|
|
101
117
|
export * from './HourShiftDetail';
|
|
102
118
|
export * from './InitiateReservationParams';
|
|
103
119
|
export * from './InvitationListItem';
|
|
104
120
|
export * from './InvitationStatus';
|
|
121
|
+
export * from './JoinTeamRequest';
|
|
105
122
|
export * from './Level';
|
|
106
123
|
export * from './LightControlResponse';
|
|
107
124
|
export * from './LinkPaymentToBillRequest';
|
|
@@ -113,6 +130,7 @@ export * from './ManageLightSwitch200Response';
|
|
|
113
130
|
export * from './ManageLightSwitch500Response';
|
|
114
131
|
export * from './MarkNotificationAsRead200Response';
|
|
115
132
|
export * from './MatchRequirements';
|
|
133
|
+
export * from './MatchVote';
|
|
116
134
|
export * from './MercadoPagoIPN';
|
|
117
135
|
export * from './Message';
|
|
118
136
|
export * from './Notification';
|
|
@@ -145,6 +163,7 @@ export * from './PlaySearchDetailDTOAllOfCounts';
|
|
|
145
163
|
export * from './PlaySearchDetailDTOAllOfRegistrations';
|
|
146
164
|
export * from './PlaySearchDetailDTOAllOfUser';
|
|
147
165
|
export * from './PlaySearchListResponse';
|
|
166
|
+
export * from './PlaySearchPosition';
|
|
148
167
|
export * from './PlaySearchStatus';
|
|
149
168
|
export * from './PlaySearchType';
|
|
150
169
|
export * from './PlaySpot';
|
|
@@ -160,11 +179,17 @@ export * from './PlaySubscriptionListDto';
|
|
|
160
179
|
export * from './PlaySubscriptionParams';
|
|
161
180
|
export * from './PlaySubscriptionType';
|
|
162
181
|
export * from './PlayerCategory';
|
|
182
|
+
export * from './PlayerRatingResponse';
|
|
183
|
+
export * from './PositionResponse';
|
|
184
|
+
export * from './PositionStatus';
|
|
185
|
+
export * from './PositionTeam';
|
|
163
186
|
export * from './ProcessEmailMessageRequest';
|
|
164
187
|
export * from './ProcessMercadoPagoIPN200Response';
|
|
165
188
|
export * from './ProcessMercadoPagoPaymentParams';
|
|
166
189
|
export * from './ProcessMercadoPagoPaymentResponse';
|
|
167
190
|
export * from './ProcessMercadoPagoPaymentResponseResult';
|
|
191
|
+
export * from './RecurringGame';
|
|
192
|
+
export * from './RecurringGameResponse';
|
|
168
193
|
export * from './RefundPolicy';
|
|
169
194
|
export * from './RegisterClub400Response';
|
|
170
195
|
export * from './RegisterClub401Response';
|
|
@@ -200,9 +225,23 @@ export * from './ServiceType';
|
|
|
200
225
|
export * from './SetAuthCodeDto';
|
|
201
226
|
export * from './Shift';
|
|
202
227
|
export * from './Sport';
|
|
228
|
+
export * from './SportEventData';
|
|
229
|
+
export * from './SportEventType';
|
|
230
|
+
export * from './SubmitRatingsRequest';
|
|
231
|
+
export * from './SubmitRatingsRequestRatingsInner';
|
|
203
232
|
export * from './SubscriptionBill';
|
|
204
233
|
export * from './SubscriptionStatus';
|
|
205
234
|
export * from './SuccessResponse';
|
|
235
|
+
export * from './Team';
|
|
236
|
+
export * from './TeamFeedItem';
|
|
237
|
+
export * from './TeamFeedItemResponse';
|
|
238
|
+
export * from './TeamFeedListResponse';
|
|
239
|
+
export * from './TeamFeedMedia';
|
|
240
|
+
export * from './TeamMember';
|
|
241
|
+
export * from './TeamMemberResponse';
|
|
242
|
+
export * from './TeamMemberRole';
|
|
243
|
+
export * from './TeamResponse';
|
|
244
|
+
export * from './TeamType';
|
|
206
245
|
export * from './TestNotificationTemplate200Response';
|
|
207
246
|
export * from './TestNotificationTemplateRequest';
|
|
208
247
|
export * from './TimeOfDay';
|
|
@@ -213,9 +252,12 @@ export * from './TriggerDeviceActionRequest';
|
|
|
213
252
|
export * from './UnreadCountResponseDto';
|
|
214
253
|
export * from './UpdateBillRequest';
|
|
215
254
|
export * from './UpdateFeatureRequest';
|
|
255
|
+
export * from './UpdateMemberRoleRequest';
|
|
256
|
+
export * from './UpdateRecurringGameRequest';
|
|
216
257
|
export * from './UpdateReservationAdminRequest';
|
|
217
258
|
export * from './UpdateReserveDto';
|
|
218
259
|
export * from './UpdateServiceConfigRequest';
|
|
260
|
+
export * from './UpdateTeamRequest';
|
|
219
261
|
export * from './UpdateUserNotificationDto';
|
|
220
262
|
export * from './UpsertNotificationTemplateRequest';
|
|
221
263
|
export * from './User';
|
|
@@ -235,4 +277,6 @@ export * from './UserType';
|
|
|
235
277
|
export * from './VerifyEmail400Response';
|
|
236
278
|
export * from './VerifyPhoneNumber200Response';
|
|
237
279
|
export * from './VerifyPhoneNumberRequest';
|
|
280
|
+
export * from './VotingStatsResponse';
|
|
281
|
+
export * from './VotingStatusResponse';
|
|
238
282
|
export * from './WhatsAppProvider';
|