@jugarhoy/api 1.1.11 → 1.1.12

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.
Files changed (53) hide show
  1. package/apis/PositionsApi.ts +235 -0
  2. package/apis/RecurringGamesApi.ts +279 -0
  3. package/apis/SportEventsApi.ts +133 -0
  4. package/apis/TeamFeedApi.ts +386 -0
  5. package/apis/TeamsApi.ts +578 -0
  6. package/apis/VotingApi.ts +404 -0
  7. package/apis/index.ts +6 -0
  8. package/models/ApiAppTeamsTeamIdEventsGet200Response.ts +73 -0
  9. package/models/ApiAppTeamsTeamIdEventsGet200ResponseEventsInner.ts +97 -0
  10. package/models/ApiAppTeamsTeamIdEventsPostRequest.ts +139 -0
  11. package/models/ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest.ts +81 -0
  12. package/models/ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest.ts +66 -0
  13. package/models/ApiAppTeamsTeamIdFeedSummaryGet200Response.ts +81 -0
  14. package/models/ApiAppVotingHasVotedPlaySearchIdGet200Response.ts +65 -0
  15. package/models/AssignPositionsRequest.ts +92 -0
  16. package/models/AssignPositionsRequestPositionsInner.ts +130 -0
  17. package/models/AutoAssignPositionsRequest.ts +93 -0
  18. package/models/CreateRecurringGameRequest.ts +130 -0
  19. package/models/CreateTeamFeedRequest.ts +82 -0
  20. package/models/CreateTeamRequest.ts +134 -0
  21. package/models/FeedMediaType.ts +56 -0
  22. package/models/GroupedPositionsResponse.ts +83 -0
  23. package/models/GroupedPositionsResponseHome.ts +83 -0
  24. package/models/JoinTeamRequest.ts +66 -0
  25. package/models/MatchVote.ts +134 -0
  26. package/models/PlaySearchPosition.ts +153 -0
  27. package/models/PlayerRatingResponse.ts +111 -0
  28. package/models/PositionResponse.ts +157 -0
  29. package/models/PositionStatus.ts +53 -0
  30. package/models/PositionTeam.ts +53 -0
  31. package/models/RecurringGame.ts +164 -0
  32. package/models/RecurringGameResponse.ts +155 -0
  33. package/models/SportEventData.ts +113 -0
  34. package/models/SportEventType.ts +77 -0
  35. package/models/SubmitRatingsRequest.ts +92 -0
  36. package/models/SubmitRatingsRequestRatingsInner.ts +99 -0
  37. package/models/Team.ts +186 -0
  38. package/models/TeamFeedItem.ts +188 -0
  39. package/models/TeamFeedItemResponse.ts +168 -0
  40. package/models/TeamFeedListResponse.ts +89 -0
  41. package/models/TeamFeedMedia.ts +101 -0
  42. package/models/TeamMember.ts +121 -0
  43. package/models/TeamMemberResponse.ts +123 -0
  44. package/models/TeamMemberRole.ts +54 -0
  45. package/models/TeamResponse.ts +194 -0
  46. package/models/TeamType.ts +53 -0
  47. package/models/UpdateMemberRoleRequest.ts +76 -0
  48. package/models/UpdateRecurringGameRequest.ts +124 -0
  49. package/models/UpdateTeamRequest.ts +105 -0
  50. package/models/VotingStatsResponse.ts +93 -0
  51. package/models/VotingStatusResponse.ts +82 -0
  52. package/models/index.ts +44 -0
  53. package/package.json +1 -1
@@ -0,0 +1,66 @@
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 JoinTeamRequest
20
+ */
21
+ export interface JoinTeamRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof JoinTeamRequest
26
+ */
27
+ inviteCode: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the JoinTeamRequest interface.
32
+ */
33
+ export function instanceOfJoinTeamRequest(value: object): value is JoinTeamRequest {
34
+ if (!('inviteCode' in value) || value['inviteCode'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function JoinTeamRequestFromJSON(json: any): JoinTeamRequest {
39
+ return JoinTeamRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function JoinTeamRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): JoinTeamRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'inviteCode': json['inviteCode'],
49
+ };
50
+ }
51
+
52
+ export function JoinTeamRequestToJSON(json: any): JoinTeamRequest {
53
+ return JoinTeamRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function JoinTeamRequestToJSONTyped(value?: JoinTeamRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'inviteCode': value['inviteCode'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,134 @@
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 MatchVote
20
+ */
21
+ export interface MatchVote {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MatchVote
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof MatchVote
32
+ */
33
+ playSearchId: string;
34
+ /**
35
+ * User who is rating
36
+ * @type {string}
37
+ * @memberof MatchVote
38
+ */
39
+ voterId: string;
40
+ /**
41
+ * User being rated
42
+ * @type {string}
43
+ * @memberof MatchVote
44
+ */
45
+ ratedPlayerId: string;
46
+ /**
47
+ * Optional reference to position
48
+ * @type {string}
49
+ * @memberof MatchVote
50
+ */
51
+ ratedPositionId?: string | null;
52
+ /**
53
+ * Rating on 1-10 scale
54
+ * @type {number}
55
+ * @memberof MatchVote
56
+ */
57
+ rating: number;
58
+ /**
59
+ * Optional feedback message
60
+ * @type {string}
61
+ * @memberof MatchVote
62
+ */
63
+ message?: string | null;
64
+ /**
65
+ * Optional emoji reactions
66
+ * @type {Array<string>}
67
+ * @memberof MatchVote
68
+ */
69
+ reactions?: Array<string>;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof MatchVote
74
+ */
75
+ createdAt?: Date;
76
+ }
77
+
78
+ /**
79
+ * Check if a given object implements the MatchVote interface.
80
+ */
81
+ export function instanceOfMatchVote(value: object): value is MatchVote {
82
+ if (!('id' in value) || value['id'] === undefined) return false;
83
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
84
+ if (!('voterId' in value) || value['voterId'] === undefined) return false;
85
+ if (!('ratedPlayerId' in value) || value['ratedPlayerId'] === undefined) return false;
86
+ if (!('rating' in value) || value['rating'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function MatchVoteFromJSON(json: any): MatchVote {
91
+ return MatchVoteFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function MatchVoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchVote {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'id': json['id'],
101
+ 'playSearchId': json['playSearchId'],
102
+ 'voterId': json['voterId'],
103
+ 'ratedPlayerId': json['ratedPlayerId'],
104
+ 'ratedPositionId': json['ratedPositionId'] == null ? undefined : json['ratedPositionId'],
105
+ 'rating': json['rating'],
106
+ 'message': json['message'] == null ? undefined : json['message'],
107
+ 'reactions': json['reactions'] == null ? undefined : json['reactions'],
108
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
109
+ };
110
+ }
111
+
112
+ export function MatchVoteToJSON(json: any): MatchVote {
113
+ return MatchVoteToJSONTyped(json, false);
114
+ }
115
+
116
+ export function MatchVoteToJSONTyped(value?: MatchVote | null, ignoreDiscriminator: boolean = false): any {
117
+ if (value == null) {
118
+ return value;
119
+ }
120
+
121
+ return {
122
+
123
+ 'id': value['id'],
124
+ 'playSearchId': value['playSearchId'],
125
+ 'voterId': value['voterId'],
126
+ 'ratedPlayerId': value['ratedPlayerId'],
127
+ 'ratedPositionId': value['ratedPositionId'],
128
+ 'rating': value['rating'],
129
+ 'message': value['message'],
130
+ 'reactions': value['reactions'],
131
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
132
+ };
133
+ }
134
+
@@ -0,0 +1,153 @@
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 { PositionTeam } from './PositionTeam';
17
+ import {
18
+ PositionTeamFromJSON,
19
+ PositionTeamFromJSONTyped,
20
+ PositionTeamToJSON,
21
+ PositionTeamToJSONTyped,
22
+ } from './PositionTeam';
23
+ import type { PositionStatus } from './PositionStatus';
24
+ import {
25
+ PositionStatusFromJSON,
26
+ PositionStatusFromJSONTyped,
27
+ PositionStatusToJSON,
28
+ PositionStatusToJSONTyped,
29
+ } from './PositionStatus';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PlaySearchPosition
35
+ */
36
+ export interface PlaySearchPosition {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof PlaySearchPosition
41
+ */
42
+ id: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PlaySearchPosition
47
+ */
48
+ playSearchId: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof PlaySearchPosition
53
+ */
54
+ playerId: string;
55
+ /**
56
+ *
57
+ * @type {PositionTeam}
58
+ * @memberof PlaySearchPosition
59
+ */
60
+ team: PositionTeam;
61
+ /**
62
+ * Position type (GK, DEF, MID, FWD, etc.)
63
+ * @type {string}
64
+ * @memberof PlaySearchPosition
65
+ */
66
+ positionType: string;
67
+ /**
68
+ * Field slot number (1=GK in soccer, etc.)
69
+ * @type {number}
70
+ * @memberof PlaySearchPosition
71
+ */
72
+ positionNumber: number;
73
+ /**
74
+ *
75
+ * @type {PositionStatus}
76
+ * @memberof PlaySearchPosition
77
+ */
78
+ status: PositionStatus;
79
+ /**
80
+ * Required for SUPLENTE, null for TITULAR
81
+ * @type {number}
82
+ * @memberof PlaySearchPosition
83
+ */
84
+ benchOrder?: number | null;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof PlaySearchPosition
89
+ */
90
+ createdAt?: Date;
91
+ }
92
+
93
+
94
+
95
+ /**
96
+ * Check if a given object implements the PlaySearchPosition interface.
97
+ */
98
+ export function instanceOfPlaySearchPosition(value: object): value is PlaySearchPosition {
99
+ if (!('id' in value) || value['id'] === undefined) return false;
100
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
101
+ if (!('playerId' in value) || value['playerId'] === undefined) return false;
102
+ if (!('team' in value) || value['team'] === undefined) return false;
103
+ if (!('positionType' in value) || value['positionType'] === undefined) return false;
104
+ if (!('positionNumber' in value) || value['positionNumber'] === undefined) return false;
105
+ if (!('status' in value) || value['status'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function PlaySearchPositionFromJSON(json: any): PlaySearchPosition {
110
+ return PlaySearchPositionFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function PlaySearchPositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchPosition {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'id': json['id'],
120
+ 'playSearchId': json['playSearchId'],
121
+ 'playerId': json['playerId'],
122
+ 'team': PositionTeamFromJSON(json['team']),
123
+ 'positionType': json['positionType'],
124
+ 'positionNumber': json['positionNumber'],
125
+ 'status': PositionStatusFromJSON(json['status']),
126
+ 'benchOrder': json['benchOrder'] == null ? undefined : json['benchOrder'],
127
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
128
+ };
129
+ }
130
+
131
+ export function PlaySearchPositionToJSON(json: any): PlaySearchPosition {
132
+ return PlaySearchPositionToJSONTyped(json, false);
133
+ }
134
+
135
+ export function PlaySearchPositionToJSONTyped(value?: PlaySearchPosition | null, ignoreDiscriminator: boolean = false): any {
136
+ if (value == null) {
137
+ return value;
138
+ }
139
+
140
+ return {
141
+
142
+ 'id': value['id'],
143
+ 'playSearchId': value['playSearchId'],
144
+ 'playerId': value['playerId'],
145
+ 'team': PositionTeamToJSON(value['team']),
146
+ 'positionType': value['positionType'],
147
+ 'positionNumber': value['positionNumber'],
148
+ 'status': PositionStatusToJSON(value['status']),
149
+ 'benchOrder': value['benchOrder'],
150
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
151
+ };
152
+ }
153
+
@@ -0,0 +1,111 @@
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 PlayerRatingResponse
20
+ */
21
+ export interface PlayerRatingResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PlayerRatingResponse
26
+ */
27
+ playerId: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof PlayerRatingResponse
32
+ */
33
+ averageRating: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof PlayerRatingResponse
38
+ */
39
+ totalRatings: number;
40
+ /**
41
+ *
42
+ * @type {Array<string>}
43
+ * @memberof PlayerRatingResponse
44
+ */
45
+ messages: Array<string>;
46
+ /**
47
+ * Map of emoji to count
48
+ * @type {{ [key: string]: number; }}
49
+ * @memberof PlayerRatingResponse
50
+ */
51
+ reactions: { [key: string]: number; };
52
+ /**
53
+ * Map of rating (1-10) to count
54
+ * @type {{ [key: string]: number; }}
55
+ * @memberof PlayerRatingResponse
56
+ */
57
+ ratingDistribution: { [key: string]: number; };
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the PlayerRatingResponse interface.
62
+ */
63
+ export function instanceOfPlayerRatingResponse(value: object): value is PlayerRatingResponse {
64
+ if (!('playerId' in value) || value['playerId'] === undefined) return false;
65
+ if (!('averageRating' in value) || value['averageRating'] === undefined) return false;
66
+ if (!('totalRatings' in value) || value['totalRatings'] === undefined) return false;
67
+ if (!('messages' in value) || value['messages'] === undefined) return false;
68
+ if (!('reactions' in value) || value['reactions'] === undefined) return false;
69
+ if (!('ratingDistribution' in value) || value['ratingDistribution'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function PlayerRatingResponseFromJSON(json: any): PlayerRatingResponse {
74
+ return PlayerRatingResponseFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function PlayerRatingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerRatingResponse {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'playerId': json['playerId'],
84
+ 'averageRating': json['averageRating'],
85
+ 'totalRatings': json['totalRatings'],
86
+ 'messages': json['messages'],
87
+ 'reactions': json['reactions'],
88
+ 'ratingDistribution': json['ratingDistribution'],
89
+ };
90
+ }
91
+
92
+ export function PlayerRatingResponseToJSON(json: any): PlayerRatingResponse {
93
+ return PlayerRatingResponseToJSONTyped(json, false);
94
+ }
95
+
96
+ export function PlayerRatingResponseToJSONTyped(value?: PlayerRatingResponse | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'playerId': value['playerId'],
104
+ 'averageRating': value['averageRating'],
105
+ 'totalRatings': value['totalRatings'],
106
+ 'messages': value['messages'],
107
+ 'reactions': value['reactions'],
108
+ 'ratingDistribution': value['ratingDistribution'],
109
+ };
110
+ }
111
+
@@ -0,0 +1,157 @@
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 PositionResponse
20
+ */
21
+ export interface PositionResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PositionResponse
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PositionResponse
32
+ */
33
+ playSearchId: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PositionResponse
38
+ */
39
+ playerId: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PositionResponse
44
+ */
45
+ team: PositionResponseTeamEnum;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof PositionResponse
50
+ */
51
+ positionType: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof PositionResponse
56
+ */
57
+ positionNumber: number;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof PositionResponse
62
+ */
63
+ status: PositionResponseStatusEnum;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof PositionResponse
68
+ */
69
+ benchOrder?: number | null;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof PositionResponse
74
+ */
75
+ createdAt: Date;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const PositionResponseTeamEnum = {
83
+ H: 'H',
84
+ A: 'A'
85
+ } as const;
86
+ export type PositionResponseTeamEnum = typeof PositionResponseTeamEnum[keyof typeof PositionResponseTeamEnum];
87
+
88
+ /**
89
+ * @export
90
+ */
91
+ export const PositionResponseStatusEnum = {
92
+ Titular: 'TITULAR',
93
+ Suplente: 'SUPLENTE'
94
+ } as const;
95
+ export type PositionResponseStatusEnum = typeof PositionResponseStatusEnum[keyof typeof PositionResponseStatusEnum];
96
+
97
+
98
+ /**
99
+ * Check if a given object implements the PositionResponse interface.
100
+ */
101
+ export function instanceOfPositionResponse(value: object): value is PositionResponse {
102
+ if (!('id' in value) || value['id'] === undefined) return false;
103
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
104
+ if (!('playerId' in value) || value['playerId'] === undefined) return false;
105
+ if (!('team' in value) || value['team'] === undefined) return false;
106
+ if (!('positionType' in value) || value['positionType'] === undefined) return false;
107
+ if (!('positionNumber' in value) || value['positionNumber'] === undefined) return false;
108
+ if (!('status' in value) || value['status'] === undefined) return false;
109
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
110
+ return true;
111
+ }
112
+
113
+ export function PositionResponseFromJSON(json: any): PositionResponse {
114
+ return PositionResponseFromJSONTyped(json, false);
115
+ }
116
+
117
+ export function PositionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PositionResponse {
118
+ if (json == null) {
119
+ return json;
120
+ }
121
+ return {
122
+
123
+ 'id': json['id'],
124
+ 'playSearchId': json['playSearchId'],
125
+ 'playerId': json['playerId'],
126
+ 'team': json['team'],
127
+ 'positionType': json['positionType'],
128
+ 'positionNumber': json['positionNumber'],
129
+ 'status': json['status'],
130
+ 'benchOrder': json['benchOrder'] == null ? undefined : json['benchOrder'],
131
+ 'createdAt': (new Date(json['createdAt'])),
132
+ };
133
+ }
134
+
135
+ export function PositionResponseToJSON(json: any): PositionResponse {
136
+ return PositionResponseToJSONTyped(json, false);
137
+ }
138
+
139
+ export function PositionResponseToJSONTyped(value?: PositionResponse | null, ignoreDiscriminator: boolean = false): any {
140
+ if (value == null) {
141
+ return value;
142
+ }
143
+
144
+ return {
145
+
146
+ 'id': value['id'],
147
+ 'playSearchId': value['playSearchId'],
148
+ 'playerId': value['playerId'],
149
+ 'team': value['team'],
150
+ 'positionType': value['positionType'],
151
+ 'positionNumber': value['positionNumber'],
152
+ 'status': value['status'],
153
+ 'benchOrder': value['benchOrder'],
154
+ 'createdAt': ((value['createdAt']).toISOString()),
155
+ };
156
+ }
157
+
@@ -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
+ * Player status (TITULAR=Starting lineup, SUPLENTE=Bench/substitute)
18
+ * @export
19
+ */
20
+ export const PositionStatus = {
21
+ Titular: 'TITULAR',
22
+ Suplente: 'SUPLENTE'
23
+ } as const;
24
+ export type PositionStatus = typeof PositionStatus[keyof typeof PositionStatus];
25
+
26
+
27
+ export function instanceOfPositionStatus(value: any): boolean {
28
+ for (const key in PositionStatus) {
29
+ if (Object.prototype.hasOwnProperty.call(PositionStatus, key)) {
30
+ if (PositionStatus[key as keyof typeof PositionStatus] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function PositionStatusFromJSON(json: any): PositionStatus {
39
+ return PositionStatusFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PositionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PositionStatus {
43
+ return json as PositionStatus;
44
+ }
45
+
46
+ export function PositionStatusToJSON(value?: PositionStatus | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function PositionStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PositionStatus {
51
+ return value as PositionStatus;
52
+ }
53
+