@jugarhoy/api 1.1.32 → 1.1.34

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 (56) hide show
  1. package/apis/CoachApi.ts +1199 -42
  2. package/apis/CoachWorkspaceApi.ts +93 -0
  3. package/apis/MyActivitiesApi.ts +72 -0
  4. package/apis/PlayerCoachBookingApi.ts +92 -7
  5. package/apis/PublicCoachDiscoveryApi.ts +292 -0
  6. package/apis/SubscriptionsApi.ts +64 -0
  7. package/apis/index.ts +3 -0
  8. package/models/AddCoachSubscriptionMemberRequest.ts +97 -0
  9. package/models/AddShiftWithLocationDto.ts +231 -0
  10. package/models/AgendaSlotDto.ts +142 -0
  11. package/models/ClubPlaceRegistrationStatus.ts +9 -0
  12. package/models/CoachClassDetailDto.ts +88 -0
  13. package/models/CoachClassFilters.ts +3 -3
  14. package/models/CoachClassLocationDto.ts +89 -0
  15. package/models/CoachLocationRegistrationDto.ts +149 -0
  16. package/models/CoachPaymentsDto.ts +81 -0
  17. package/models/CoachProfileDto.ts +104 -0
  18. package/models/CoachPublicSubscriptionDto.ts +183 -0
  19. package/models/CoachSearchParams.ts +42 -2
  20. package/models/CoachShiftInputDto.ts +170 -0
  21. package/models/CoachShiftRegistrationDto.ts +176 -0
  22. package/models/CoachTeamPlayerDto.ts +97 -0
  23. package/models/CoachTrainingTeamDto.ts +121 -0
  24. package/models/CoachWorkspaceLocationDto.ts +137 -0
  25. package/models/CoachWorkspaceProfileDto.ts +225 -0
  26. package/models/CoachWorkspaceShiftDto.ts +201 -0
  27. package/models/CreatePreReservationDto.ts +110 -0
  28. package/models/CreateRecurringGameRequest.ts +27 -0
  29. package/models/DayAgendaDto.ts +89 -0
  30. package/models/GenerateCoachSubscriptionBillsRequest.ts +74 -0
  31. package/models/GetCoachMercadoPagoAuthUrl200Response.ts +65 -0
  32. package/models/GetCoachSubscriptionMemberDebt200ResponseInner.ts +81 -0
  33. package/models/LinkCoachMercadoPagoRequest.ts +66 -0
  34. package/models/LinkPreview.ts +97 -0
  35. package/models/LinkShiftToTeamRequest.ts +65 -0
  36. package/models/MarkCoachSubscriptionBillPaid200Response.ts +65 -0
  37. package/models/PlaySubscription.ts +8 -0
  38. package/models/PublicAgendaSlotDto.ts +102 -0
  39. package/models/PublicDayAgendaDto.ts +92 -0
  40. package/models/PublicWeeklyAgendaDto.ts +83 -0
  41. package/models/RecurringGame.ts +27 -0
  42. package/models/RecurringGameResponse.ts +29 -0
  43. package/models/RegisterCoachProfileDto.ts +213 -0
  44. package/models/RegisterCoachProfileResponseDto.ts +89 -0
  45. package/models/ReserveStatus.ts +1 -0
  46. package/models/SubscriptionRequestResponseDto.ts +96 -0
  47. package/models/TeamResponse.ts +16 -0
  48. package/models/TrainingSubscriptionDto.ts +167 -0
  49. package/models/UpcomingActivityDto.ts +217 -0
  50. package/models/UpdateCoachProfileDto.ts +161 -0
  51. package/models/UpdateRecurringGameRequest.ts +27 -0
  52. package/models/UserDto.ts +31 -0
  53. package/models/UserReserveDto.ts +41 -0
  54. package/models/WeeklyAgendaDto.ts +81 -0
  55. package/models/index.ts +34 -0
  56. package/package.json +1 -1
@@ -91,6 +91,18 @@ export interface CreateRecurringGameRequest {
91
91
  * @memberof CreateRecurringGameRequest
92
92
  */
93
93
  daysBeforeMatch: number;
94
+ /**
95
+ * Video recording/streaming service provider
96
+ * @type {string}
97
+ * @memberof CreateRecurringGameRequest
98
+ */
99
+ videoServiceProvider?: CreateRecurringGameRequestVideoServiceProviderEnum;
100
+ /**
101
+ * URL for the video service
102
+ * @type {string}
103
+ * @memberof CreateRecurringGameRequest
104
+ */
105
+ videoUrl?: string;
94
106
  }
95
107
 
96
108
 
@@ -103,6 +115,17 @@ export const CreateRecurringGameRequestDurationEnum = {
103
115
  } as const;
104
116
  export type CreateRecurringGameRequestDurationEnum = typeof CreateRecurringGameRequestDurationEnum[keyof typeof CreateRecurringGameRequestDurationEnum];
105
117
 
118
+ /**
119
+ * @export
120
+ */
121
+ export const CreateRecurringGameRequestVideoServiceProviderEnum = {
122
+ BeelUp: 'BEEL_UP',
123
+ Youtube: 'YOUTUBE',
124
+ Twitch: 'TWITCH',
125
+ Instagram: 'INSTAGRAM'
126
+ } as const;
127
+ export type CreateRecurringGameRequestVideoServiceProviderEnum = typeof CreateRecurringGameRequestVideoServiceProviderEnum[keyof typeof CreateRecurringGameRequestVideoServiceProviderEnum];
128
+
106
129
 
107
130
  /**
108
131
  * Check if a given object implements the CreateRecurringGameRequest interface.
@@ -139,6 +162,8 @@ export function CreateRecurringGameRequestFromJSONTyped(json: any, ignoreDiscrim
139
162
  'precio': json['precio'] == null ? undefined : json['precio'],
140
163
  'quota': json['quota'] == null ? undefined : json['quota'],
141
164
  'daysBeforeMatch': json['daysBeforeMatch'],
165
+ 'videoServiceProvider': json['videoServiceProvider'] == null ? undefined : json['videoServiceProvider'],
166
+ 'videoUrl': json['videoUrl'] == null ? undefined : json['videoUrl'],
142
167
  };
143
168
  }
144
169
 
@@ -165,6 +190,8 @@ export function CreateRecurringGameRequestToJSONTyped(value?: CreateRecurringGam
165
190
  'precio': value['precio'],
166
191
  'quota': value['quota'],
167
192
  'daysBeforeMatch': value['daysBeforeMatch'],
193
+ 'videoServiceProvider': value['videoServiceProvider'],
194
+ 'videoUrl': value['videoUrl'],
168
195
  };
169
196
  }
170
197
 
@@ -0,0 +1,89 @@
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 { AgendaSlotDto } from './AgendaSlotDto';
17
+ import {
18
+ AgendaSlotDtoFromJSON,
19
+ AgendaSlotDtoFromJSONTyped,
20
+ AgendaSlotDtoToJSON,
21
+ AgendaSlotDtoToJSONTyped,
22
+ } from './AgendaSlotDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface DayAgendaDto
28
+ */
29
+ export interface DayAgendaDto {
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof DayAgendaDto
34
+ */
35
+ date?: Date;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof DayAgendaDto
40
+ */
41
+ dayOfWeek?: string;
42
+ /**
43
+ *
44
+ * @type {Array<AgendaSlotDto>}
45
+ * @memberof DayAgendaDto
46
+ */
47
+ slots?: Array<AgendaSlotDto>;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the DayAgendaDto interface.
52
+ */
53
+ export function instanceOfDayAgendaDto(value: object): value is DayAgendaDto {
54
+ return true;
55
+ }
56
+
57
+ export function DayAgendaDtoFromJSON(json: any): DayAgendaDto {
58
+ return DayAgendaDtoFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function DayAgendaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DayAgendaDto {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'date': json['date'] == null ? undefined : (new Date(json['date'])),
68
+ 'dayOfWeek': json['dayOfWeek'] == null ? undefined : json['dayOfWeek'],
69
+ 'slots': json['slots'] == null ? undefined : ((json['slots'] as Array<any>).map(AgendaSlotDtoFromJSON)),
70
+ };
71
+ }
72
+
73
+ export function DayAgendaDtoToJSON(json: any): DayAgendaDto {
74
+ return DayAgendaDtoToJSONTyped(json, false);
75
+ }
76
+
77
+ export function DayAgendaDtoToJSONTyped(value?: DayAgendaDto | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
85
+ 'dayOfWeek': value['dayOfWeek'],
86
+ 'slots': value['slots'] == null ? undefined : ((value['slots'] as Array<any>).map(AgendaSlotDtoToJSON)),
87
+ };
88
+ }
89
+
@@ -0,0 +1,74 @@
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 GenerateCoachSubscriptionBillsRequest
20
+ */
21
+ export interface GenerateCoachSubscriptionBillsRequest {
22
+ /**
23
+ * Period number (e.g. month 1-12 for monthly billing)
24
+ * @type {number}
25
+ * @memberof GenerateCoachSubscriptionBillsRequest
26
+ */
27
+ periodNumber: number;
28
+ /**
29
+ * Billing year (defaults to current year)
30
+ * @type {number}
31
+ * @memberof GenerateCoachSubscriptionBillsRequest
32
+ */
33
+ billingYear?: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the GenerateCoachSubscriptionBillsRequest interface.
38
+ */
39
+ export function instanceOfGenerateCoachSubscriptionBillsRequest(value: object): value is GenerateCoachSubscriptionBillsRequest {
40
+ if (!('periodNumber' in value) || value['periodNumber'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function GenerateCoachSubscriptionBillsRequestFromJSON(json: any): GenerateCoachSubscriptionBillsRequest {
45
+ return GenerateCoachSubscriptionBillsRequestFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function GenerateCoachSubscriptionBillsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateCoachSubscriptionBillsRequest {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'periodNumber': json['periodNumber'],
55
+ 'billingYear': json['billingYear'] == null ? undefined : json['billingYear'],
56
+ };
57
+ }
58
+
59
+ export function GenerateCoachSubscriptionBillsRequestToJSON(json: any): GenerateCoachSubscriptionBillsRequest {
60
+ return GenerateCoachSubscriptionBillsRequestToJSONTyped(json, false);
61
+ }
62
+
63
+ export function GenerateCoachSubscriptionBillsRequestToJSONTyped(value?: GenerateCoachSubscriptionBillsRequest | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'periodNumber': value['periodNumber'],
71
+ 'billingYear': value['billingYear'],
72
+ };
73
+ }
74
+
@@ -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 GetCoachMercadoPagoAuthUrl200Response
20
+ */
21
+ export interface GetCoachMercadoPagoAuthUrl200Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetCoachMercadoPagoAuthUrl200Response
26
+ */
27
+ url?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GetCoachMercadoPagoAuthUrl200Response interface.
32
+ */
33
+ export function instanceOfGetCoachMercadoPagoAuthUrl200Response(value: object): value is GetCoachMercadoPagoAuthUrl200Response {
34
+ return true;
35
+ }
36
+
37
+ export function GetCoachMercadoPagoAuthUrl200ResponseFromJSON(json: any): GetCoachMercadoPagoAuthUrl200Response {
38
+ return GetCoachMercadoPagoAuthUrl200ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function GetCoachMercadoPagoAuthUrl200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCoachMercadoPagoAuthUrl200Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'url': json['url'] == null ? undefined : json['url'],
48
+ };
49
+ }
50
+
51
+ export function GetCoachMercadoPagoAuthUrl200ResponseToJSON(json: any): GetCoachMercadoPagoAuthUrl200Response {
52
+ return GetCoachMercadoPagoAuthUrl200ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function GetCoachMercadoPagoAuthUrl200ResponseToJSONTyped(value?: GetCoachMercadoPagoAuthUrl200Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'url': value['url'],
63
+ };
64
+ }
65
+
@@ -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 GetCoachSubscriptionMemberDebt200ResponseInner
20
+ */
21
+ export interface GetCoachSubscriptionMemberDebt200ResponseInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetCoachSubscriptionMemberDebt200ResponseInner
26
+ */
27
+ userId?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof GetCoachSubscriptionMemberDebt200ResponseInner
32
+ */
33
+ unpaidCount?: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof GetCoachSubscriptionMemberDebt200ResponseInner
38
+ */
39
+ unpaidTotal?: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the GetCoachSubscriptionMemberDebt200ResponseInner interface.
44
+ */
45
+ export function instanceOfGetCoachSubscriptionMemberDebt200ResponseInner(value: object): value is GetCoachSubscriptionMemberDebt200ResponseInner {
46
+ return true;
47
+ }
48
+
49
+ export function GetCoachSubscriptionMemberDebt200ResponseInnerFromJSON(json: any): GetCoachSubscriptionMemberDebt200ResponseInner {
50
+ return GetCoachSubscriptionMemberDebt200ResponseInnerFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function GetCoachSubscriptionMemberDebt200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCoachSubscriptionMemberDebt200ResponseInner {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'userId': json['userId'] == null ? undefined : json['userId'],
60
+ 'unpaidCount': json['unpaidCount'] == null ? undefined : json['unpaidCount'],
61
+ 'unpaidTotal': json['unpaidTotal'] == null ? undefined : json['unpaidTotal'],
62
+ };
63
+ }
64
+
65
+ export function GetCoachSubscriptionMemberDebt200ResponseInnerToJSON(json: any): GetCoachSubscriptionMemberDebt200ResponseInner {
66
+ return GetCoachSubscriptionMemberDebt200ResponseInnerToJSONTyped(json, false);
67
+ }
68
+
69
+ export function GetCoachSubscriptionMemberDebt200ResponseInnerToJSONTyped(value?: GetCoachSubscriptionMemberDebt200ResponseInner | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'userId': value['userId'],
77
+ 'unpaidCount': value['unpaidCount'],
78
+ 'unpaidTotal': value['unpaidTotal'],
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 LinkCoachMercadoPagoRequest
20
+ */
21
+ export interface LinkCoachMercadoPagoRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LinkCoachMercadoPagoRequest
26
+ */
27
+ authCode: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the LinkCoachMercadoPagoRequest interface.
32
+ */
33
+ export function instanceOfLinkCoachMercadoPagoRequest(value: object): value is LinkCoachMercadoPagoRequest {
34
+ if (!('authCode' in value) || value['authCode'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function LinkCoachMercadoPagoRequestFromJSON(json: any): LinkCoachMercadoPagoRequest {
39
+ return LinkCoachMercadoPagoRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function LinkCoachMercadoPagoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkCoachMercadoPagoRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'authCode': json['authCode'],
49
+ };
50
+ }
51
+
52
+ export function LinkCoachMercadoPagoRequestToJSON(json: any): LinkCoachMercadoPagoRequest {
53
+ return LinkCoachMercadoPagoRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function LinkCoachMercadoPagoRequestToJSONTyped(value?: LinkCoachMercadoPagoRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'authCode': value['authCode'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,97 @@
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 LinkPreview
20
+ */
21
+ export interface LinkPreview {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LinkPreview
26
+ */
27
+ title?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof LinkPreview
32
+ */
33
+ description?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof LinkPreview
38
+ */
39
+ image?: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof LinkPreview
44
+ */
45
+ siteName?: string | null;
46
+ /**
47
+ * Detected provider (youtube, twitch, instagram, etc.)
48
+ * @type {string}
49
+ * @memberof LinkPreview
50
+ */
51
+ provider?: string | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the LinkPreview interface.
56
+ */
57
+ export function instanceOfLinkPreview(value: object): value is LinkPreview {
58
+ return true;
59
+ }
60
+
61
+ export function LinkPreviewFromJSON(json: any): LinkPreview {
62
+ return LinkPreviewFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function LinkPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPreview {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'title': json['title'] == null ? undefined : json['title'],
72
+ 'description': json['description'] == null ? undefined : json['description'],
73
+ 'image': json['image'] == null ? undefined : json['image'],
74
+ 'siteName': json['siteName'] == null ? undefined : json['siteName'],
75
+ 'provider': json['provider'] == null ? undefined : json['provider'],
76
+ };
77
+ }
78
+
79
+ export function LinkPreviewToJSON(json: any): LinkPreview {
80
+ return LinkPreviewToJSONTyped(json, false);
81
+ }
82
+
83
+ export function LinkPreviewToJSONTyped(value?: LinkPreview | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'title': value['title'],
91
+ 'description': value['description'],
92
+ 'image': value['image'],
93
+ 'siteName': value['siteName'],
94
+ 'provider': value['provider'],
95
+ };
96
+ }
97
+
@@ -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 LinkShiftToTeamRequest
20
+ */
21
+ export interface LinkShiftToTeamRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LinkShiftToTeamRequest
26
+ */
27
+ teamId?: string | null;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the LinkShiftToTeamRequest interface.
32
+ */
33
+ export function instanceOfLinkShiftToTeamRequest(value: object): value is LinkShiftToTeamRequest {
34
+ return true;
35
+ }
36
+
37
+ export function LinkShiftToTeamRequestFromJSON(json: any): LinkShiftToTeamRequest {
38
+ return LinkShiftToTeamRequestFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function LinkShiftToTeamRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkShiftToTeamRequest {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'teamId': json['teamId'] == null ? undefined : json['teamId'],
48
+ };
49
+ }
50
+
51
+ export function LinkShiftToTeamRequestToJSON(json: any): LinkShiftToTeamRequest {
52
+ return LinkShiftToTeamRequestToJSONTyped(json, false);
53
+ }
54
+
55
+ export function LinkShiftToTeamRequestToJSONTyped(value?: LinkShiftToTeamRequest | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'teamId': value['teamId'],
63
+ };
64
+ }
65
+
@@ -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 MarkCoachSubscriptionBillPaid200Response
20
+ */
21
+ export interface MarkCoachSubscriptionBillPaid200Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof MarkCoachSubscriptionBillPaid200Response
26
+ */
27
+ count?: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the MarkCoachSubscriptionBillPaid200Response interface.
32
+ */
33
+ export function instanceOfMarkCoachSubscriptionBillPaid200Response(value: object): value is MarkCoachSubscriptionBillPaid200Response {
34
+ return true;
35
+ }
36
+
37
+ export function MarkCoachSubscriptionBillPaid200ResponseFromJSON(json: any): MarkCoachSubscriptionBillPaid200Response {
38
+ return MarkCoachSubscriptionBillPaid200ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function MarkCoachSubscriptionBillPaid200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarkCoachSubscriptionBillPaid200Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'count': json['count'] == null ? undefined : json['count'],
48
+ };
49
+ }
50
+
51
+ export function MarkCoachSubscriptionBillPaid200ResponseToJSON(json: any): MarkCoachSubscriptionBillPaid200Response {
52
+ return MarkCoachSubscriptionBillPaid200ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function MarkCoachSubscriptionBillPaid200ResponseToJSONTyped(value?: MarkCoachSubscriptionBillPaid200Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'count': value['count'],
63
+ };
64
+ }
65
+
@@ -249,6 +249,12 @@ export interface PlaySubscription {
249
249
  * @memberof PlaySubscription
250
250
  */
251
251
  coachesCount?: number;
252
+ /**
253
+ * Maximum number of players allowed in this subscription (null = unlimited)
254
+ * @type {number}
255
+ * @memberof PlaySubscription
256
+ */
257
+ maxPlayers?: number | null;
252
258
  /**
253
259
  * Date when the subscription was created
254
260
  * @type {Date}
@@ -329,6 +335,7 @@ export function PlaySubscriptionFromJSONTyped(json: any, ignoreDiscriminator: bo
329
335
  'occurrencesCount': json['occurrencesCount'] == null ? undefined : json['occurrencesCount'],
330
336
  'memberCount': json['memberCount'] == null ? undefined : json['memberCount'],
331
337
  'coachesCount': json['coachesCount'] == null ? undefined : json['coachesCount'],
338
+ 'maxPlayers': json['maxPlayers'] == null ? undefined : json['maxPlayers'],
332
339
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
333
340
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
334
341
  };
@@ -375,6 +382,7 @@ export function PlaySubscriptionToJSONTyped(value?: PlaySubscription | null, ign
375
382
  'occurrencesCount': value['occurrencesCount'],
376
383
  'memberCount': value['memberCount'],
377
384
  'coachesCount': value['coachesCount'],
385
+ 'maxPlayers': value['maxPlayers'],
378
386
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
379
387
  'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
380
388
  };