@jugarhoy/api 1.1.33 → 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.
- package/apis/CoachApi.ts +1199 -42
- package/apis/CoachWorkspaceApi.ts +93 -0
- package/apis/MyActivitiesApi.ts +72 -0
- package/apis/PlayerCoachBookingApi.ts +92 -7
- package/apis/PublicCoachDiscoveryApi.ts +292 -0
- package/apis/SubscriptionsApi.ts +64 -0
- package/apis/index.ts +3 -0
- package/models/AddCoachSubscriptionMemberRequest.ts +97 -0
- package/models/AddShiftWithLocationDto.ts +231 -0
- package/models/AgendaSlotDto.ts +142 -0
- package/models/CoachClassDetailDto.ts +88 -0
- package/models/CoachClassFilters.ts +3 -3
- package/models/CoachClassLocationDto.ts +89 -0
- package/models/CoachLocationRegistrationDto.ts +149 -0
- package/models/CoachPaymentsDto.ts +81 -0
- package/models/CoachProfileDto.ts +104 -0
- package/models/CoachPublicSubscriptionDto.ts +183 -0
- package/models/CoachSearchParams.ts +42 -2
- package/models/CoachShiftInputDto.ts +170 -0
- package/models/CoachShiftRegistrationDto.ts +176 -0
- package/models/CoachTeamPlayerDto.ts +97 -0
- package/models/CoachTrainingTeamDto.ts +121 -0
- package/models/CoachWorkspaceLocationDto.ts +137 -0
- package/models/CoachWorkspaceProfileDto.ts +225 -0
- package/models/CoachWorkspaceShiftDto.ts +201 -0
- package/models/CreatePreReservationDto.ts +110 -0
- package/models/CreateRecurringGameRequest.ts +27 -0
- package/models/DayAgendaDto.ts +89 -0
- package/models/GenerateCoachSubscriptionBillsRequest.ts +74 -0
- package/models/GetCoachMercadoPagoAuthUrl200Response.ts +65 -0
- package/models/GetCoachSubscriptionMemberDebt200ResponseInner.ts +81 -0
- package/models/LinkCoachMercadoPagoRequest.ts +66 -0
- package/models/LinkPreview.ts +97 -0
- package/models/LinkShiftToTeamRequest.ts +65 -0
- package/models/MarkCoachSubscriptionBillPaid200Response.ts +65 -0
- package/models/PlaySubscription.ts +8 -0
- package/models/PublicAgendaSlotDto.ts +102 -0
- package/models/PublicDayAgendaDto.ts +92 -0
- package/models/PublicWeeklyAgendaDto.ts +83 -0
- package/models/RecurringGame.ts +27 -0
- package/models/RecurringGameResponse.ts +29 -0
- package/models/RegisterCoachProfileDto.ts +213 -0
- package/models/RegisterCoachProfileResponseDto.ts +89 -0
- package/models/ReserveStatus.ts +1 -0
- package/models/SubscriptionRequestResponseDto.ts +96 -0
- package/models/TeamResponse.ts +16 -0
- package/models/TrainingSubscriptionDto.ts +167 -0
- package/models/UpcomingActivityDto.ts +217 -0
- package/models/UpdateCoachProfileDto.ts +161 -0
- package/models/UpdateRecurringGameRequest.ts +27 -0
- package/models/UserDto.ts +31 -0
- package/models/UserReserveDto.ts +41 -0
- package/models/WeeklyAgendaDto.ts +81 -0
- package/models/index.ts +34 -0
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -0,0 +1,102 @@
|
|
|
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 PublicAgendaSlotDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicAgendaSlotDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PublicAgendaSlotDto
|
|
26
|
+
*/
|
|
27
|
+
hour: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PublicAgendaSlotDto
|
|
32
|
+
*/
|
|
33
|
+
status: PublicAgendaSlotDtoStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PublicAgendaSlotDto
|
|
38
|
+
*/
|
|
39
|
+
shiftId?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PublicAgendaSlotDto
|
|
44
|
+
*/
|
|
45
|
+
playSpotId?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const PublicAgendaSlotDtoStatusEnum = {
|
|
53
|
+
Available: 'available',
|
|
54
|
+
Disabled: 'disabled'
|
|
55
|
+
} as const;
|
|
56
|
+
export type PublicAgendaSlotDtoStatusEnum = typeof PublicAgendaSlotDtoStatusEnum[keyof typeof PublicAgendaSlotDtoStatusEnum];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the PublicAgendaSlotDto interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfPublicAgendaSlotDto(value: object): value is PublicAgendaSlotDto {
|
|
63
|
+
if (!('hour' in value) || value['hour'] === undefined) return false;
|
|
64
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PublicAgendaSlotDtoFromJSON(json: any): PublicAgendaSlotDto {
|
|
69
|
+
return PublicAgendaSlotDtoFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PublicAgendaSlotDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAgendaSlotDto {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'hour': json['hour'],
|
|
79
|
+
'status': json['status'],
|
|
80
|
+
'shiftId': json['shiftId'] == null ? undefined : json['shiftId'],
|
|
81
|
+
'playSpotId': json['playSpotId'] == null ? undefined : json['playSpotId'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function PublicAgendaSlotDtoToJSON(json: any): PublicAgendaSlotDto {
|
|
86
|
+
return PublicAgendaSlotDtoToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function PublicAgendaSlotDtoToJSONTyped(value?: PublicAgendaSlotDto | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'hour': value['hour'],
|
|
97
|
+
'status': value['status'],
|
|
98
|
+
'shiftId': value['shiftId'],
|
|
99
|
+
'playSpotId': value['playSpotId'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|