@jugarhoy/api 1.1.15 → 1.1.17

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.
@@ -0,0 +1,103 @@
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 { PlaySpot } from './PlaySpot';
17
+ import {
18
+ PlaySpotFromJSON,
19
+ PlaySpotFromJSONTyped,
20
+ PlaySpotToJSON,
21
+ PlaySpotToJSONTyped,
22
+ } from './PlaySpot';
23
+ import type { Customer } from './Customer';
24
+ import {
25
+ CustomerFromJSON,
26
+ CustomerFromJSONTyped,
27
+ CustomerToJSON,
28
+ CustomerToJSONTyped,
29
+ } from './Customer';
30
+ import type { Location } from './Location';
31
+ import {
32
+ LocationFromJSON,
33
+ LocationFromJSONTyped,
34
+ LocationToJSON,
35
+ LocationToJSONTyped,
36
+ } from './Location';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface AddCoachLocation200Response
42
+ */
43
+ export interface AddCoachLocation200Response {
44
+ /**
45
+ *
46
+ * @type {Customer}
47
+ * @memberof AddCoachLocation200Response
48
+ */
49
+ customer?: Customer;
50
+ /**
51
+ *
52
+ * @type {Location}
53
+ * @memberof AddCoachLocation200Response
54
+ */
55
+ location?: Location;
56
+ /**
57
+ *
58
+ * @type {PlaySpot}
59
+ * @memberof AddCoachLocation200Response
60
+ */
61
+ playSpot?: PlaySpot;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the AddCoachLocation200Response interface.
66
+ */
67
+ export function instanceOfAddCoachLocation200Response(value: object): value is AddCoachLocation200Response {
68
+ return true;
69
+ }
70
+
71
+ export function AddCoachLocation200ResponseFromJSON(json: any): AddCoachLocation200Response {
72
+ return AddCoachLocation200ResponseFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function AddCoachLocation200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddCoachLocation200Response {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'customer': json['customer'] == null ? undefined : CustomerFromJSON(json['customer']),
82
+ 'location': json['location'] == null ? undefined : LocationFromJSON(json['location']),
83
+ 'playSpot': json['playSpot'] == null ? undefined : PlaySpotFromJSON(json['playSpot']),
84
+ };
85
+ }
86
+
87
+ export function AddCoachLocation200ResponseToJSON(json: any): AddCoachLocation200Response {
88
+ return AddCoachLocation200ResponseToJSONTyped(json, false);
89
+ }
90
+
91
+ export function AddCoachLocation200ResponseToJSONTyped(value?: AddCoachLocation200Response | null, ignoreDiscriminator: boolean = false): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+
96
+ return {
97
+
98
+ 'customer': CustomerToJSON(value['customer']),
99
+ 'location': LocationToJSON(value['location']),
100
+ 'playSpot': PlaySpotToJSON(value['playSpot']),
101
+ };
102
+ }
103
+
@@ -0,0 +1,120 @@
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 AddCoachLocationRequest
20
+ */
21
+ export interface AddCoachLocationRequest {
22
+ /**
23
+ * Google Place ID of the location
24
+ * @type {string}
25
+ * @memberof AddCoachLocationRequest
26
+ */
27
+ clubPlaceId: string;
28
+ /**
29
+ * Name of the club/place
30
+ * @type {string}
31
+ * @memberof AddCoachLocationRequest
32
+ */
33
+ clubPlaceName: string;
34
+ /**
35
+ * Full address
36
+ * @type {string}
37
+ * @memberof AddCoachLocationRequest
38
+ */
39
+ address: string;
40
+ /**
41
+ * Latitude coordinate
42
+ * @type {number}
43
+ * @memberof AddCoachLocationRequest
44
+ */
45
+ latitude: number;
46
+ /**
47
+ * Longitude coordinate
48
+ * @type {number}
49
+ * @memberof AddCoachLocationRequest
50
+ */
51
+ longitude: number;
52
+ /**
53
+ * Contact phone number
54
+ * @type {string}
55
+ * @memberof AddCoachLocationRequest
56
+ */
57
+ phone: string;
58
+ /**
59
+ * Sports available at this location
60
+ * @type {Array<string>}
61
+ * @memberof AddCoachLocationRequest
62
+ */
63
+ sports: Array<string>;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the AddCoachLocationRequest interface.
68
+ */
69
+ export function instanceOfAddCoachLocationRequest(value: object): value is AddCoachLocationRequest {
70
+ if (!('clubPlaceId' in value) || value['clubPlaceId'] === undefined) return false;
71
+ if (!('clubPlaceName' in value) || value['clubPlaceName'] === undefined) return false;
72
+ if (!('address' in value) || value['address'] === undefined) return false;
73
+ if (!('latitude' in value) || value['latitude'] === undefined) return false;
74
+ if (!('longitude' in value) || value['longitude'] === undefined) return false;
75
+ if (!('phone' in value) || value['phone'] === undefined) return false;
76
+ if (!('sports' in value) || value['sports'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function AddCoachLocationRequestFromJSON(json: any): AddCoachLocationRequest {
81
+ return AddCoachLocationRequestFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function AddCoachLocationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddCoachLocationRequest {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'clubPlaceId': json['clubPlaceId'],
91
+ 'clubPlaceName': json['clubPlaceName'],
92
+ 'address': json['address'],
93
+ 'latitude': json['latitude'],
94
+ 'longitude': json['longitude'],
95
+ 'phone': json['phone'],
96
+ 'sports': json['sports'],
97
+ };
98
+ }
99
+
100
+ export function AddCoachLocationRequestToJSON(json: any): AddCoachLocationRequest {
101
+ return AddCoachLocationRequestToJSONTyped(json, false);
102
+ }
103
+
104
+ export function AddCoachLocationRequestToJSONTyped(value?: AddCoachLocationRequest | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'clubPlaceId': value['clubPlaceId'],
112
+ 'clubPlaceName': value['clubPlaceName'],
113
+ 'address': value['address'],
114
+ 'latitude': value['latitude'],
115
+ 'longitude': value['longitude'],
116
+ 'phone': value['phone'],
117
+ 'sports': value['sports'],
118
+ };
119
+ }
120
+
@@ -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
+ import type { PaymentMethod } from './PaymentMethod';
17
+ import {
18
+ PaymentMethodFromJSON,
19
+ PaymentMethodFromJSONTyped,
20
+ PaymentMethodToJSON,
21
+ PaymentMethodToJSONTyped,
22
+ } from './PaymentMethod';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface BookCoachClassDto
28
+ */
29
+ export interface BookCoachClassDto {
30
+ /**
31
+ * The coach's user ID
32
+ * @type {string}
33
+ * @memberof BookCoachClassDto
34
+ */
35
+ coachId: string;
36
+ /**
37
+ * The location ID where the class will take place
38
+ * @type {string}
39
+ * @memberof BookCoachClassDto
40
+ */
41
+ locationId: string;
42
+ /**
43
+ * The play spot ID (usually DEFAULT for coaches)
44
+ * @type {string}
45
+ * @memberof BookCoachClassDto
46
+ */
47
+ playSpotId: string;
48
+ /**
49
+ * Start date and time of the class
50
+ * @type {Date}
51
+ * @memberof BookCoachClassDto
52
+ */
53
+ rentedFrom: Date;
54
+ /**
55
+ * Duration in minutes
56
+ * @type {number}
57
+ * @memberof BookCoachClassDto
58
+ */
59
+ duration: number;
60
+ /**
61
+ * The price ID to use
62
+ * @type {string}
63
+ * @memberof BookCoachClassDto
64
+ */
65
+ playPriceId: string;
66
+ /**
67
+ *
68
+ * @type {PaymentMethod}
69
+ * @memberof BookCoachClassDto
70
+ */
71
+ paymentMethod: PaymentMethod;
72
+ }
73
+
74
+
75
+
76
+ /**
77
+ * Check if a given object implements the BookCoachClassDto interface.
78
+ */
79
+ export function instanceOfBookCoachClassDto(value: object): value is BookCoachClassDto {
80
+ if (!('coachId' in value) || value['coachId'] === undefined) return false;
81
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
82
+ if (!('playSpotId' in value) || value['playSpotId'] === undefined) return false;
83
+ if (!('rentedFrom' in value) || value['rentedFrom'] === undefined) return false;
84
+ if (!('duration' in value) || value['duration'] === undefined) return false;
85
+ if (!('playPriceId' in value) || value['playPriceId'] === undefined) return false;
86
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function BookCoachClassDtoFromJSON(json: any): BookCoachClassDto {
91
+ return BookCoachClassDtoFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function BookCoachClassDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookCoachClassDto {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'coachId': json['coachId'],
101
+ 'locationId': json['locationId'],
102
+ 'playSpotId': json['playSpotId'],
103
+ 'rentedFrom': (new Date(json['rentedFrom'])),
104
+ 'duration': json['duration'],
105
+ 'playPriceId': json['playPriceId'],
106
+ 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
107
+ };
108
+ }
109
+
110
+ export function BookCoachClassDtoToJSON(json: any): BookCoachClassDto {
111
+ return BookCoachClassDtoToJSONTyped(json, false);
112
+ }
113
+
114
+ export function BookCoachClassDtoToJSONTyped(value?: BookCoachClassDto | null, ignoreDiscriminator: boolean = false): any {
115
+ if (value == null) {
116
+ return value;
117
+ }
118
+
119
+ return {
120
+
121
+ 'coachId': value['coachId'],
122
+ 'locationId': value['locationId'],
123
+ 'playSpotId': value['playSpotId'],
124
+ 'rentedFrom': ((value['rentedFrom']).toISOString()),
125
+ 'duration': value['duration'],
126
+ 'playPriceId': value['playPriceId'],
127
+ 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
128
+ };
129
+ }
130
+
@@ -0,0 +1,108 @@
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 { PlayPrice } from './PlayPrice';
17
+ import {
18
+ PlayPriceFromJSON,
19
+ PlayPriceFromJSONTyped,
20
+ PlayPriceToJSON,
21
+ PlayPriceToJSONTyped,
22
+ } from './PlayPrice';
23
+ import type { PlaySpotShift } from './PlaySpotShift';
24
+ import {
25
+ PlaySpotShiftFromJSON,
26
+ PlaySpotShiftFromJSONTyped,
27
+ PlaySpotShiftToJSON,
28
+ PlaySpotShiftToJSONTyped,
29
+ } from './PlaySpotShift';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface CoachAvailabilityDto
35
+ */
36
+ export interface CoachAvailabilityDto {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof CoachAvailabilityDto
41
+ */
42
+ coachId: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof CoachAvailabilityDto
47
+ */
48
+ locationId: string;
49
+ /**
50
+ *
51
+ * @type {Array<PlaySpotShift>}
52
+ * @memberof CoachAvailabilityDto
53
+ */
54
+ shifts: Array<PlaySpotShift>;
55
+ /**
56
+ *
57
+ * @type {Array<PlayPrice>}
58
+ * @memberof CoachAvailabilityDto
59
+ */
60
+ prices: Array<PlayPrice>;
61
+ }
62
+
63
+ /**
64
+ * Check if a given object implements the CoachAvailabilityDto interface.
65
+ */
66
+ export function instanceOfCoachAvailabilityDto(value: object): value is CoachAvailabilityDto {
67
+ if (!('coachId' in value) || value['coachId'] === undefined) return false;
68
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
69
+ if (!('shifts' in value) || value['shifts'] === undefined) return false;
70
+ if (!('prices' in value) || value['prices'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function CoachAvailabilityDtoFromJSON(json: any): CoachAvailabilityDto {
75
+ return CoachAvailabilityDtoFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function CoachAvailabilityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachAvailabilityDto {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'coachId': json['coachId'],
85
+ 'locationId': json['locationId'],
86
+ 'shifts': ((json['shifts'] as Array<any>).map(PlaySpotShiftFromJSON)),
87
+ 'prices': ((json['prices'] as Array<any>).map(PlayPriceFromJSON)),
88
+ };
89
+ }
90
+
91
+ export function CoachAvailabilityDtoToJSON(json: any): CoachAvailabilityDto {
92
+ return CoachAvailabilityDtoToJSONTyped(json, false);
93
+ }
94
+
95
+ export function CoachAvailabilityDtoToJSONTyped(value?: CoachAvailabilityDto | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'coachId': value['coachId'],
103
+ 'locationId': value['locationId'],
104
+ 'shifts': ((value['shifts'] as Array<any>).map(PlaySpotShiftToJSON)),
105
+ 'prices': ((value['prices'] as Array<any>).map(PlayPriceToJSON)),
106
+ };
107
+ }
108
+
@@ -0,0 +1,99 @@
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 { ReserveStatus } from './ReserveStatus';
17
+ import {
18
+ ReserveStatusFromJSON,
19
+ ReserveStatusFromJSONTyped,
20
+ ReserveStatusToJSON,
21
+ ReserveStatusToJSONTyped,
22
+ } from './ReserveStatus';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CoachClassFilters
28
+ */
29
+ export interface CoachClassFilters {
30
+ /**
31
+ * Filter by location
32
+ * @type {string}
33
+ * @memberof CoachClassFilters
34
+ */
35
+ locationId?: string;
36
+ /**
37
+ *
38
+ * @type {ReserveStatus}
39
+ * @memberof CoachClassFilters
40
+ */
41
+ status?: ReserveStatus;
42
+ /**
43
+ * Filter classes from this date
44
+ * @type {Date}
45
+ * @memberof CoachClassFilters
46
+ */
47
+ fromDate?: Date;
48
+ /**
49
+ * Filter classes until this date
50
+ * @type {Date}
51
+ * @memberof CoachClassFilters
52
+ */
53
+ toDate?: Date;
54
+ }
55
+
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the CoachClassFilters interface.
60
+ */
61
+ export function instanceOfCoachClassFilters(value: object): value is CoachClassFilters {
62
+ return true;
63
+ }
64
+
65
+ export function CoachClassFiltersFromJSON(json: any): CoachClassFilters {
66
+ return CoachClassFiltersFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function CoachClassFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachClassFilters {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'locationId': json['locationId'] == null ? undefined : json['locationId'],
76
+ 'status': json['status'] == null ? undefined : ReserveStatusFromJSON(json['status']),
77
+ 'fromDate': json['fromDate'] == null ? undefined : (new Date(json['fromDate'])),
78
+ 'toDate': json['toDate'] == null ? undefined : (new Date(json['toDate'])),
79
+ };
80
+ }
81
+
82
+ export function CoachClassFiltersToJSON(json: any): CoachClassFilters {
83
+ return CoachClassFiltersToJSONTyped(json, false);
84
+ }
85
+
86
+ export function CoachClassFiltersToJSONTyped(value?: CoachClassFilters | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'locationId': value['locationId'],
94
+ 'status': ReserveStatusToJSON(value['status']),
95
+ 'fromDate': value['fromDate'] == null ? undefined : ((value['fromDate']).toISOString()),
96
+ 'toDate': value['toDate'] == null ? undefined : ((value['toDate']).toISOString()),
97
+ };
98
+ }
99
+