@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,139 @@
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 ApiAppTeamsTeamIdEventsPostRequest
20
+ */
21
+ export interface ApiAppTeamsTeamIdEventsPostRequest {
22
+ /**
23
+ * Event type code (GOAL, YELLOW_CARD, etc.)
24
+ * @type {string}
25
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
26
+ */
27
+ eventType: string;
28
+ /**
29
+ * Associated match ID
30
+ * @type {string}
31
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
32
+ */
33
+ playSearchId: string;
34
+ /**
35
+ * Player involved in the event
36
+ * @type {string}
37
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
38
+ */
39
+ playerId?: string;
40
+ /**
41
+ * Player name
42
+ * @type {string}
43
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
44
+ */
45
+ playerName?: string;
46
+ /**
47
+ * Match minute when event occurred
48
+ * @type {number}
49
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
50
+ */
51
+ minute?: number;
52
+ /**
53
+ * Team (A or B)
54
+ * @type {string}
55
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
56
+ */
57
+ team?: string;
58
+ /**
59
+ * Current score after event
60
+ * @type {string}
61
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
62
+ */
63
+ score?: string;
64
+ /**
65
+ * Assist player ID (for goals)
66
+ * @type {string}
67
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
68
+ */
69
+ assistPlayerId?: string;
70
+ /**
71
+ * Assist player name
72
+ * @type {string}
73
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
74
+ */
75
+ assistPlayerName?: string;
76
+ /**
77
+ * Any additional event-specific data
78
+ * @type {object}
79
+ * @memberof ApiAppTeamsTeamIdEventsPostRequest
80
+ */
81
+ additionalData?: object;
82
+ }
83
+
84
+ /**
85
+ * Check if a given object implements the ApiAppTeamsTeamIdEventsPostRequest interface.
86
+ */
87
+ export function instanceOfApiAppTeamsTeamIdEventsPostRequest(value: object): value is ApiAppTeamsTeamIdEventsPostRequest {
88
+ if (!('eventType' in value) || value['eventType'] === undefined) return false;
89
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
90
+ return true;
91
+ }
92
+
93
+ export function ApiAppTeamsTeamIdEventsPostRequestFromJSON(json: any): ApiAppTeamsTeamIdEventsPostRequest {
94
+ return ApiAppTeamsTeamIdEventsPostRequestFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function ApiAppTeamsTeamIdEventsPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAppTeamsTeamIdEventsPostRequest {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'eventType': json['eventType'],
104
+ 'playSearchId': json['playSearchId'],
105
+ 'playerId': json['playerId'] == null ? undefined : json['playerId'],
106
+ 'playerName': json['playerName'] == null ? undefined : json['playerName'],
107
+ 'minute': json['minute'] == null ? undefined : json['minute'],
108
+ 'team': json['team'] == null ? undefined : json['team'],
109
+ 'score': json['score'] == null ? undefined : json['score'],
110
+ 'assistPlayerId': json['assistPlayerId'] == null ? undefined : json['assistPlayerId'],
111
+ 'assistPlayerName': json['assistPlayerName'] == null ? undefined : json['assistPlayerName'],
112
+ 'additionalData': json['additionalData'] == null ? undefined : json['additionalData'],
113
+ };
114
+ }
115
+
116
+ export function ApiAppTeamsTeamIdEventsPostRequestToJSON(json: any): ApiAppTeamsTeamIdEventsPostRequest {
117
+ return ApiAppTeamsTeamIdEventsPostRequestToJSONTyped(json, false);
118
+ }
119
+
120
+ export function ApiAppTeamsTeamIdEventsPostRequestToJSONTyped(value?: ApiAppTeamsTeamIdEventsPostRequest | null, ignoreDiscriminator: boolean = false): any {
121
+ if (value == null) {
122
+ return value;
123
+ }
124
+
125
+ return {
126
+
127
+ 'eventType': value['eventType'],
128
+ 'playSearchId': value['playSearchId'],
129
+ 'playerId': value['playerId'],
130
+ 'playerName': value['playerName'],
131
+ 'minute': value['minute'],
132
+ 'team': value['team'],
133
+ 'score': value['score'],
134
+ 'assistPlayerId': value['assistPlayerId'],
135
+ 'assistPlayerName': value['assistPlayerName'],
136
+ 'additionalData': value['additionalData'],
137
+ };
138
+ }
139
+
@@ -0,0 +1,81 @@
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 { TeamFeedMedia } from './TeamFeedMedia';
17
+ import {
18
+ TeamFeedMediaFromJSON,
19
+ TeamFeedMediaFromJSONTyped,
20
+ TeamFeedMediaToJSON,
21
+ TeamFeedMediaToJSONTyped,
22
+ } from './TeamFeedMedia';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest
28
+ */
29
+ export interface ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest
34
+ */
35
+ content?: string;
36
+ /**
37
+ *
38
+ * @type {Array<TeamFeedMedia>}
39
+ * @memberof ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest
40
+ */
41
+ media?: Array<TeamFeedMedia>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest interface.
46
+ */
47
+ export function instanceOfApiAppTeamsTeamIdFeedFeedItemIdPatchRequest(value: object): value is ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest {
48
+ return true;
49
+ }
50
+
51
+ export function ApiAppTeamsTeamIdFeedFeedItemIdPatchRequestFromJSON(json: any): ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest {
52
+ return ApiAppTeamsTeamIdFeedFeedItemIdPatchRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function ApiAppTeamsTeamIdFeedFeedItemIdPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'content': json['content'] == null ? undefined : json['content'],
62
+ 'media': json['media'] == null ? undefined : ((json['media'] as Array<any>).map(TeamFeedMediaFromJSON)),
63
+ };
64
+ }
65
+
66
+ export function ApiAppTeamsTeamIdFeedFeedItemIdPatchRequestToJSON(json: any): ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest {
67
+ return ApiAppTeamsTeamIdFeedFeedItemIdPatchRequestToJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiAppTeamsTeamIdFeedFeedItemIdPatchRequestToJSONTyped(value?: ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'content': value['content'],
78
+ 'media': value['media'] == null ? undefined : ((value['media'] as Array<any>).map(TeamFeedMediaToJSON)),
79
+ };
80
+ }
81
+
@@ -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 ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest
20
+ */
21
+ export interface ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest {
22
+ /**
23
+ * Map of emoji to count
24
+ * @type {object}
25
+ * @memberof ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest
26
+ */
27
+ reactions: object;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest interface.
32
+ */
33
+ export function instanceOfApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest(value: object): value is ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest {
34
+ if (!('reactions' in value) || value['reactions'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequestFromJSON(json: any): ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest {
39
+ return ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'reactions': json['reactions'],
49
+ };
50
+ }
51
+
52
+ export function ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequestToJSON(json: any): ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest {
53
+ return ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequestToJSONTyped(value?: ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'reactions': value['reactions'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,81 @@
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 ApiAppTeamsTeamIdFeedSummaryGet200Response
20
+ */
21
+ export interface ApiAppTeamsTeamIdFeedSummaryGet200Response {
22
+ /**
23
+ * AI-generated summary of team activity
24
+ * @type {string}
25
+ * @memberof ApiAppTeamsTeamIdFeedSummaryGet200Response
26
+ */
27
+ summary?: string;
28
+ /**
29
+ * Whether the summary was served from cache
30
+ * @type {boolean}
31
+ * @memberof ApiAppTeamsTeamIdFeedSummaryGet200Response
32
+ */
33
+ fromCache?: boolean;
34
+ /**
35
+ * When the summary was generated
36
+ * @type {Date}
37
+ * @memberof ApiAppTeamsTeamIdFeedSummaryGet200Response
38
+ */
39
+ generatedAt?: Date;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ApiAppTeamsTeamIdFeedSummaryGet200Response interface.
44
+ */
45
+ export function instanceOfApiAppTeamsTeamIdFeedSummaryGet200Response(value: object): value is ApiAppTeamsTeamIdFeedSummaryGet200Response {
46
+ return true;
47
+ }
48
+
49
+ export function ApiAppTeamsTeamIdFeedSummaryGet200ResponseFromJSON(json: any): ApiAppTeamsTeamIdFeedSummaryGet200Response {
50
+ return ApiAppTeamsTeamIdFeedSummaryGet200ResponseFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function ApiAppTeamsTeamIdFeedSummaryGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAppTeamsTeamIdFeedSummaryGet200Response {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'summary': json['summary'] == null ? undefined : json['summary'],
60
+ 'fromCache': json['fromCache'] == null ? undefined : json['fromCache'],
61
+ 'generatedAt': json['generatedAt'] == null ? undefined : (new Date(json['generatedAt'])),
62
+ };
63
+ }
64
+
65
+ export function ApiAppTeamsTeamIdFeedSummaryGet200ResponseToJSON(json: any): ApiAppTeamsTeamIdFeedSummaryGet200Response {
66
+ return ApiAppTeamsTeamIdFeedSummaryGet200ResponseToJSONTyped(json, false);
67
+ }
68
+
69
+ export function ApiAppTeamsTeamIdFeedSummaryGet200ResponseToJSONTyped(value?: ApiAppTeamsTeamIdFeedSummaryGet200Response | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'summary': value['summary'],
77
+ 'fromCache': value['fromCache'],
78
+ 'generatedAt': value['generatedAt'] == null ? undefined : ((value['generatedAt']).toISOString()),
79
+ };
80
+ }
81
+
@@ -0,0 +1,65 @@
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 ApiAppVotingHasVotedPlaySearchIdGet200Response
20
+ */
21
+ export interface ApiAppVotingHasVotedPlaySearchIdGet200Response {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof ApiAppVotingHasVotedPlaySearchIdGet200Response
26
+ */
27
+ hasVoted?: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiAppVotingHasVotedPlaySearchIdGet200Response interface.
32
+ */
33
+ export function instanceOfApiAppVotingHasVotedPlaySearchIdGet200Response(value: object): value is ApiAppVotingHasVotedPlaySearchIdGet200Response {
34
+ return true;
35
+ }
36
+
37
+ export function ApiAppVotingHasVotedPlaySearchIdGet200ResponseFromJSON(json: any): ApiAppVotingHasVotedPlaySearchIdGet200Response {
38
+ return ApiAppVotingHasVotedPlaySearchIdGet200ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ApiAppVotingHasVotedPlaySearchIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAppVotingHasVotedPlaySearchIdGet200Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'hasVoted': json['hasVoted'] == null ? undefined : json['hasVoted'],
48
+ };
49
+ }
50
+
51
+ export function ApiAppVotingHasVotedPlaySearchIdGet200ResponseToJSON(json: any): ApiAppVotingHasVotedPlaySearchIdGet200Response {
52
+ return ApiAppVotingHasVotedPlaySearchIdGet200ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function ApiAppVotingHasVotedPlaySearchIdGet200ResponseToJSONTyped(value?: ApiAppVotingHasVotedPlaySearchIdGet200Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'hasVoted': value['hasVoted'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,92 @@
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 { AssignPositionsRequestPositionsInner } from './AssignPositionsRequestPositionsInner';
17
+ import {
18
+ AssignPositionsRequestPositionsInnerFromJSON,
19
+ AssignPositionsRequestPositionsInnerFromJSONTyped,
20
+ AssignPositionsRequestPositionsInnerToJSON,
21
+ AssignPositionsRequestPositionsInnerToJSONTyped,
22
+ } from './AssignPositionsRequestPositionsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AssignPositionsRequest
28
+ */
29
+ export interface AssignPositionsRequest {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AssignPositionsRequest
34
+ */
35
+ playSearchId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AssignPositionsRequest
40
+ */
41
+ teamId: string;
42
+ /**
43
+ *
44
+ * @type {Array<AssignPositionsRequestPositionsInner>}
45
+ * @memberof AssignPositionsRequest
46
+ */
47
+ positions: Array<AssignPositionsRequestPositionsInner>;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the AssignPositionsRequest interface.
52
+ */
53
+ export function instanceOfAssignPositionsRequest(value: object): value is AssignPositionsRequest {
54
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
55
+ if (!('teamId' in value) || value['teamId'] === undefined) return false;
56
+ if (!('positions' in value) || value['positions'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function AssignPositionsRequestFromJSON(json: any): AssignPositionsRequest {
61
+ return AssignPositionsRequestFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function AssignPositionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignPositionsRequest {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'playSearchId': json['playSearchId'],
71
+ 'teamId': json['teamId'],
72
+ 'positions': ((json['positions'] as Array<any>).map(AssignPositionsRequestPositionsInnerFromJSON)),
73
+ };
74
+ }
75
+
76
+ export function AssignPositionsRequestToJSON(json: any): AssignPositionsRequest {
77
+ return AssignPositionsRequestToJSONTyped(json, false);
78
+ }
79
+
80
+ export function AssignPositionsRequestToJSONTyped(value?: AssignPositionsRequest | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'playSearchId': value['playSearchId'],
88
+ 'teamId': value['teamId'],
89
+ 'positions': ((value['positions'] as Array<any>).map(AssignPositionsRequestPositionsInnerToJSON)),
90
+ };
91
+ }
92
+
@@ -0,0 +1,130 @@
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 AssignPositionsRequestPositionsInner
20
+ */
21
+ export interface AssignPositionsRequestPositionsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AssignPositionsRequestPositionsInner
26
+ */
27
+ playerId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AssignPositionsRequestPositionsInner
32
+ */
33
+ team: AssignPositionsRequestPositionsInnerTeamEnum;
34
+ /**
35
+ * e.g., GK, DEF, MID, FWD
36
+ * @type {string}
37
+ * @memberof AssignPositionsRequestPositionsInner
38
+ */
39
+ positionType: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof AssignPositionsRequestPositionsInner
44
+ */
45
+ positionNumber: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AssignPositionsRequestPositionsInner
50
+ */
51
+ status: AssignPositionsRequestPositionsInnerStatusEnum;
52
+ /**
53
+ * Required for SUPLENTE, must NOT be set for TITULAR
54
+ * @type {number}
55
+ * @memberof AssignPositionsRequestPositionsInner
56
+ */
57
+ benchOrder?: number | null;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const AssignPositionsRequestPositionsInnerTeamEnum = {
65
+ H: 'H',
66
+ A: 'A'
67
+ } as const;
68
+ export type AssignPositionsRequestPositionsInnerTeamEnum = typeof AssignPositionsRequestPositionsInnerTeamEnum[keyof typeof AssignPositionsRequestPositionsInnerTeamEnum];
69
+
70
+ /**
71
+ * @export
72
+ */
73
+ export const AssignPositionsRequestPositionsInnerStatusEnum = {
74
+ Titular: 'TITULAR',
75
+ Suplente: 'SUPLENTE'
76
+ } as const;
77
+ export type AssignPositionsRequestPositionsInnerStatusEnum = typeof AssignPositionsRequestPositionsInnerStatusEnum[keyof typeof AssignPositionsRequestPositionsInnerStatusEnum];
78
+
79
+
80
+ /**
81
+ * Check if a given object implements the AssignPositionsRequestPositionsInner interface.
82
+ */
83
+ export function instanceOfAssignPositionsRequestPositionsInner(value: object): value is AssignPositionsRequestPositionsInner {
84
+ if (!('playerId' in value) || value['playerId'] === undefined) return false;
85
+ if (!('team' in value) || value['team'] === undefined) return false;
86
+ if (!('positionType' in value) || value['positionType'] === undefined) return false;
87
+ if (!('positionNumber' in value) || value['positionNumber'] === undefined) return false;
88
+ if (!('status' in value) || value['status'] === undefined) return false;
89
+ return true;
90
+ }
91
+
92
+ export function AssignPositionsRequestPositionsInnerFromJSON(json: any): AssignPositionsRequestPositionsInner {
93
+ return AssignPositionsRequestPositionsInnerFromJSONTyped(json, false);
94
+ }
95
+
96
+ export function AssignPositionsRequestPositionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignPositionsRequestPositionsInner {
97
+ if (json == null) {
98
+ return json;
99
+ }
100
+ return {
101
+
102
+ 'playerId': json['playerId'],
103
+ 'team': json['team'],
104
+ 'positionType': json['positionType'],
105
+ 'positionNumber': json['positionNumber'],
106
+ 'status': json['status'],
107
+ 'benchOrder': json['benchOrder'] == null ? undefined : json['benchOrder'],
108
+ };
109
+ }
110
+
111
+ export function AssignPositionsRequestPositionsInnerToJSON(json: any): AssignPositionsRequestPositionsInner {
112
+ return AssignPositionsRequestPositionsInnerToJSONTyped(json, false);
113
+ }
114
+
115
+ export function AssignPositionsRequestPositionsInnerToJSONTyped(value?: AssignPositionsRequestPositionsInner | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'playerId': value['playerId'],
123
+ 'team': value['team'],
124
+ 'positionType': value['positionType'],
125
+ 'positionNumber': value['positionNumber'],
126
+ 'status': value['status'],
127
+ 'benchOrder': value['benchOrder'],
128
+ };
129
+ }
130
+