@jugarhoy/api 1.1.16 → 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,91 @@
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 { Sport } from './Sport';
17
+ import {
18
+ SportFromJSON,
19
+ SportFromJSONTyped,
20
+ SportToJSON,
21
+ SportToJSONTyped,
22
+ } from './Sport';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CoachSearchParams
28
+ */
29
+ export interface CoachSearchParams {
30
+ /**
31
+ *
32
+ * @type {Sport}
33
+ * @memberof CoachSearchParams
34
+ */
35
+ sport?: Sport;
36
+ /**
37
+ * Filter by location ID
38
+ * @type {string}
39
+ * @memberof CoachSearchParams
40
+ */
41
+ locationId?: string;
42
+ /**
43
+ * Filter by category
44
+ * @type {string}
45
+ * @memberof CoachSearchParams
46
+ */
47
+ category?: string;
48
+ }
49
+
50
+
51
+
52
+ /**
53
+ * Check if a given object implements the CoachSearchParams interface.
54
+ */
55
+ export function instanceOfCoachSearchParams(value: object): value is CoachSearchParams {
56
+ return true;
57
+ }
58
+
59
+ export function CoachSearchParamsFromJSON(json: any): CoachSearchParams {
60
+ return CoachSearchParamsFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function CoachSearchParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachSearchParams {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'sport': json['sport'] == null ? undefined : SportFromJSON(json['sport']),
70
+ 'locationId': json['locationId'] == null ? undefined : json['locationId'],
71
+ 'category': json['category'] == null ? undefined : json['category'],
72
+ };
73
+ }
74
+
75
+ export function CoachSearchParamsToJSON(json: any): CoachSearchParams {
76
+ return CoachSearchParamsToJSONTyped(json, false);
77
+ }
78
+
79
+ export function CoachSearchParamsToJSONTyped(value?: CoachSearchParams | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'sport': SportToJSON(value['sport']),
87
+ 'locationId': value['locationId'],
88
+ 'category': value['category'],
89
+ };
90
+ }
91
+
@@ -0,0 +1,122 @@
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 CreateCoachPriceDto
20
+ */
21
+ export interface CreateCoachPriceDto {
22
+ /**
23
+ * Name of the pricing option (e.g., "Clase Individual 60 min")
24
+ * @type {string}
25
+ * @memberof CreateCoachPriceDto
26
+ */
27
+ name: string;
28
+ /**
29
+ * Duration in minutes
30
+ * @type {number}
31
+ * @memberof CreateCoachPriceDto
32
+ */
33
+ duration: number;
34
+ /**
35
+ * Price amount in ARS
36
+ * @type {number}
37
+ * @memberof CreateCoachPriceDto
38
+ */
39
+ price: number;
40
+ /**
41
+ * IDs of the shifts this price applies to
42
+ * @type {Array<string>}
43
+ * @memberof CreateCoachPriceDto
44
+ */
45
+ playSpotShiftIds: Array<string>;
46
+ /**
47
+ * Whether this is for subscription-based access
48
+ * @type {boolean}
49
+ * @memberof CreateCoachPriceDto
50
+ */
51
+ isSubscription: boolean;
52
+ /**
53
+ * When to charge (per session or per subscription)
54
+ * @type {string}
55
+ * @memberof CreateCoachPriceDto
56
+ */
57
+ chargeOn: CreateCoachPriceDtoChargeOnEnum;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const CreateCoachPriceDtoChargeOnEnum = {
65
+ Session: 'session',
66
+ Subscription: 'subscription'
67
+ } as const;
68
+ export type CreateCoachPriceDtoChargeOnEnum = typeof CreateCoachPriceDtoChargeOnEnum[keyof typeof CreateCoachPriceDtoChargeOnEnum];
69
+
70
+
71
+ /**
72
+ * Check if a given object implements the CreateCoachPriceDto interface.
73
+ */
74
+ export function instanceOfCreateCoachPriceDto(value: object): value is CreateCoachPriceDto {
75
+ if (!('name' in value) || value['name'] === undefined) return false;
76
+ if (!('duration' in value) || value['duration'] === undefined) return false;
77
+ if (!('price' in value) || value['price'] === undefined) return false;
78
+ if (!('playSpotShiftIds' in value) || value['playSpotShiftIds'] === undefined) return false;
79
+ if (!('isSubscription' in value) || value['isSubscription'] === undefined) return false;
80
+ if (!('chargeOn' in value) || value['chargeOn'] === undefined) return false;
81
+ return true;
82
+ }
83
+
84
+ export function CreateCoachPriceDtoFromJSON(json: any): CreateCoachPriceDto {
85
+ return CreateCoachPriceDtoFromJSONTyped(json, false);
86
+ }
87
+
88
+ export function CreateCoachPriceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCoachPriceDto {
89
+ if (json == null) {
90
+ return json;
91
+ }
92
+ return {
93
+
94
+ 'name': json['name'],
95
+ 'duration': json['duration'],
96
+ 'price': json['price'],
97
+ 'playSpotShiftIds': json['playSpotShiftIds'],
98
+ 'isSubscription': json['isSubscription'],
99
+ 'chargeOn': json['chargeOn'],
100
+ };
101
+ }
102
+
103
+ export function CreateCoachPriceDtoToJSON(json: any): CreateCoachPriceDto {
104
+ return CreateCoachPriceDtoToJSONTyped(json, false);
105
+ }
106
+
107
+ export function CreateCoachPriceDtoToJSONTyped(value?: CreateCoachPriceDto | null, ignoreDiscriminator: boolean = false): any {
108
+ if (value == null) {
109
+ return value;
110
+ }
111
+
112
+ return {
113
+
114
+ 'name': value['name'],
115
+ 'duration': value['duration'],
116
+ 'price': value['price'],
117
+ 'playSpotShiftIds': value['playSpotShiftIds'],
118
+ 'isSubscription': value['isSubscription'],
119
+ 'chargeOn': value['chargeOn'],
120
+ };
121
+ }
122
+
@@ -0,0 +1,83 @@
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 { DefineCoachScheduleRequestShiftsInner } from './DefineCoachScheduleRequestShiftsInner';
17
+ import {
18
+ DefineCoachScheduleRequestShiftsInnerFromJSON,
19
+ DefineCoachScheduleRequestShiftsInnerFromJSONTyped,
20
+ DefineCoachScheduleRequestShiftsInnerToJSON,
21
+ DefineCoachScheduleRequestShiftsInnerToJSONTyped,
22
+ } from './DefineCoachScheduleRequestShiftsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface DefineCoachScheduleRequest
28
+ */
29
+ export interface DefineCoachScheduleRequest {
30
+ /**
31
+ * ID of the location for this schedule
32
+ * @type {string}
33
+ * @memberof DefineCoachScheduleRequest
34
+ */
35
+ locationId: string;
36
+ /**
37
+ *
38
+ * @type {Array<DefineCoachScheduleRequestShiftsInner>}
39
+ * @memberof DefineCoachScheduleRequest
40
+ */
41
+ shifts: Array<DefineCoachScheduleRequestShiftsInner>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the DefineCoachScheduleRequest interface.
46
+ */
47
+ export function instanceOfDefineCoachScheduleRequest(value: object): value is DefineCoachScheduleRequest {
48
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
49
+ if (!('shifts' in value) || value['shifts'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function DefineCoachScheduleRequestFromJSON(json: any): DefineCoachScheduleRequest {
54
+ return DefineCoachScheduleRequestFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function DefineCoachScheduleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefineCoachScheduleRequest {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'locationId': json['locationId'],
64
+ 'shifts': ((json['shifts'] as Array<any>).map(DefineCoachScheduleRequestShiftsInnerFromJSON)),
65
+ };
66
+ }
67
+
68
+ export function DefineCoachScheduleRequestToJSON(json: any): DefineCoachScheduleRequest {
69
+ return DefineCoachScheduleRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function DefineCoachScheduleRequestToJSONTyped(value?: DefineCoachScheduleRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'locationId': value['locationId'],
80
+ 'shifts': ((value['shifts'] as Array<any>).map(DefineCoachScheduleRequestShiftsInnerToJSON)),
81
+ };
82
+ }
83
+
@@ -0,0 +1,110 @@
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 { DayOfWeek } from './DayOfWeek';
17
+ import {
18
+ DayOfWeekFromJSON,
19
+ DayOfWeekFromJSONTyped,
20
+ DayOfWeekToJSON,
21
+ DayOfWeekToJSONTyped,
22
+ } from './DayOfWeek';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface DefineCoachScheduleRequestShiftsInner
28
+ */
29
+ export interface DefineCoachScheduleRequestShiftsInner {
30
+ /**
31
+ * Name of the shift
32
+ * @type {string}
33
+ * @memberof DefineCoachScheduleRequestShiftsInner
34
+ */
35
+ name: string;
36
+ /**
37
+ * Days of the week for this shift
38
+ * @type {Array<DayOfWeek>}
39
+ * @memberof DefineCoachScheduleRequestShiftsInner
40
+ */
41
+ days: Array<DayOfWeek>;
42
+ /**
43
+ * Start time (HH:mm format)
44
+ * @type {string}
45
+ * @memberof DefineCoachScheduleRequestShiftsInner
46
+ */
47
+ fromHour: string;
48
+ /**
49
+ * End time (HH:mm format)
50
+ * @type {string}
51
+ * @memberof DefineCoachScheduleRequestShiftsInner
52
+ */
53
+ toHour: string;
54
+ /**
55
+ * Available class durations in minutes
56
+ * @type {Array<number>}
57
+ * @memberof DefineCoachScheduleRequestShiftsInner
58
+ */
59
+ durations: Array<number>;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the DefineCoachScheduleRequestShiftsInner interface.
64
+ */
65
+ export function instanceOfDefineCoachScheduleRequestShiftsInner(value: object): value is DefineCoachScheduleRequestShiftsInner {
66
+ if (!('name' in value) || value['name'] === undefined) return false;
67
+ if (!('days' in value) || value['days'] === undefined) return false;
68
+ if (!('fromHour' in value) || value['fromHour'] === undefined) return false;
69
+ if (!('toHour' in value) || value['toHour'] === undefined) return false;
70
+ if (!('durations' in value) || value['durations'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function DefineCoachScheduleRequestShiftsInnerFromJSON(json: any): DefineCoachScheduleRequestShiftsInner {
75
+ return DefineCoachScheduleRequestShiftsInnerFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function DefineCoachScheduleRequestShiftsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefineCoachScheduleRequestShiftsInner {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'name': json['name'],
85
+ 'days': ((json['days'] as Array<any>).map(DayOfWeekFromJSON)),
86
+ 'fromHour': json['fromHour'],
87
+ 'toHour': json['toHour'],
88
+ 'durations': json['durations'],
89
+ };
90
+ }
91
+
92
+ export function DefineCoachScheduleRequestShiftsInnerToJSON(json: any): DefineCoachScheduleRequestShiftsInner {
93
+ return DefineCoachScheduleRequestShiftsInnerToJSONTyped(json, false);
94
+ }
95
+
96
+ export function DefineCoachScheduleRequestShiftsInnerToJSONTyped(value?: DefineCoachScheduleRequestShiftsInner | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'name': value['name'],
104
+ 'days': ((value['days'] as Array<any>).map(DayOfWeekToJSON)),
105
+ 'fromHour': value['fromHour'],
106
+ 'toHour': value['toHour'],
107
+ 'durations': value['durations'],
108
+ };
109
+ }
110
+
@@ -69,6 +69,12 @@ export interface ReservationParams {
69
69
  * @memberof ReservationParams
70
70
  */
71
71
  mobile?: boolean;
72
+ /**
73
+ * Optional coach ID for coach-led reservations
74
+ * @type {string}
75
+ * @memberof ReservationParams
76
+ */
77
+ coachId?: string | null;
72
78
  }
73
79
 
74
80
 
@@ -103,6 +109,7 @@ export function ReservationParamsFromJSONTyped(json: any, ignoreDiscriminator: b
103
109
  'duration': json['duration'],
104
110
  'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
105
111
  'mobile': json['mobile'] == null ? undefined : json['mobile'],
112
+ 'coachId': json['coachId'] == null ? undefined : json['coachId'],
106
113
  };
107
114
  }
108
115
 
@@ -124,6 +131,7 @@ export function ReservationParamsToJSONTyped(value?: ReservationParams | null, i
124
131
  'duration': value['duration'],
125
132
  'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
126
133
  'mobile': value['mobile'],
134
+ 'coachId': value['coachId'],
127
135
  };
128
136
  }
129
137
 
@@ -0,0 +1,91 @@
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 SaveCoachBasicInfoRequest
20
+ */
21
+ export interface SaveCoachBasicInfoRequest {
22
+ /**
23
+ * Sports taught by the coach
24
+ * @type {Array<string>}
25
+ * @memberof SaveCoachBasicInfoRequest
26
+ */
27
+ sports: Array<string>;
28
+ /**
29
+ * Categories taught (e.g., age groups, skill levels)
30
+ * @type {Array<string>}
31
+ * @memberof SaveCoachBasicInfoRequest
32
+ */
33
+ categories: Array<string>;
34
+ /**
35
+ * URLs of coach photos
36
+ * @type {Array<string>}
37
+ * @memberof SaveCoachBasicInfoRequest
38
+ */
39
+ photoUrls?: Array<string>;
40
+ /**
41
+ * Coach biography
42
+ * @type {string}
43
+ * @memberof SaveCoachBasicInfoRequest
44
+ */
45
+ bio?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the SaveCoachBasicInfoRequest interface.
50
+ */
51
+ export function instanceOfSaveCoachBasicInfoRequest(value: object): value is SaveCoachBasicInfoRequest {
52
+ if (!('sports' in value) || value['sports'] === undefined) return false;
53
+ if (!('categories' in value) || value['categories'] === undefined) return false;
54
+ return true;
55
+ }
56
+
57
+ export function SaveCoachBasicInfoRequestFromJSON(json: any): SaveCoachBasicInfoRequest {
58
+ return SaveCoachBasicInfoRequestFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function SaveCoachBasicInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCoachBasicInfoRequest {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'sports': json['sports'],
68
+ 'categories': json['categories'],
69
+ 'photoUrls': json['photoUrls'] == null ? undefined : json['photoUrls'],
70
+ 'bio': json['bio'] == null ? undefined : json['bio'],
71
+ };
72
+ }
73
+
74
+ export function SaveCoachBasicInfoRequestToJSON(json: any): SaveCoachBasicInfoRequest {
75
+ return SaveCoachBasicInfoRequestToJSONTyped(json, false);
76
+ }
77
+
78
+ export function SaveCoachBasicInfoRequestToJSONTyped(value?: SaveCoachBasicInfoRequest | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'sports': value['sports'],
86
+ 'categories': value['categories'],
87
+ 'photoUrls': value['photoUrls'],
88
+ 'bio': value['bio'],
89
+ };
90
+ }
91
+
@@ -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 { Reserve } from './Reserve';
17
+ import {
18
+ ReserveFromJSON,
19
+ ReserveFromJSONTyped,
20
+ ReserveToJSON,
21
+ ReserveToJSONTyped,
22
+ } from './Reserve';
23
+ import type { TrainerFeedDtoStats } from './TrainerFeedDtoStats';
24
+ import {
25
+ TrainerFeedDtoStatsFromJSON,
26
+ TrainerFeedDtoStatsFromJSONTyped,
27
+ TrainerFeedDtoStatsToJSON,
28
+ TrainerFeedDtoStatsToJSONTyped,
29
+ } from './TrainerFeedDtoStats';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface TrainerFeedDto
35
+ */
36
+ export interface TrainerFeedDto {
37
+ /**
38
+ * Upcoming classes in the next 7 days
39
+ * @type {Array<Reserve>}
40
+ * @memberof TrainerFeedDto
41
+ */
42
+ upcomingClasses: Array<Reserve>;
43
+ /**
44
+ * Recent bookings (last 7 days)
45
+ * @type {Array<Reserve>}
46
+ * @memberof TrainerFeedDto
47
+ */
48
+ recentBookings: Array<Reserve>;
49
+ /**
50
+ *
51
+ * @type {TrainerFeedDtoStats}
52
+ * @memberof TrainerFeedDto
53
+ */
54
+ stats: TrainerFeedDtoStats;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the TrainerFeedDto interface.
59
+ */
60
+ export function instanceOfTrainerFeedDto(value: object): value is TrainerFeedDto {
61
+ if (!('upcomingClasses' in value) || value['upcomingClasses'] === undefined) return false;
62
+ if (!('recentBookings' in value) || value['recentBookings'] === undefined) return false;
63
+ if (!('stats' in value) || value['stats'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function TrainerFeedDtoFromJSON(json: any): TrainerFeedDto {
68
+ return TrainerFeedDtoFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function TrainerFeedDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainerFeedDto {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'upcomingClasses': ((json['upcomingClasses'] as Array<any>).map(ReserveFromJSON)),
78
+ 'recentBookings': ((json['recentBookings'] as Array<any>).map(ReserveFromJSON)),
79
+ 'stats': TrainerFeedDtoStatsFromJSON(json['stats']),
80
+ };
81
+ }
82
+
83
+ export function TrainerFeedDtoToJSON(json: any): TrainerFeedDto {
84
+ return TrainerFeedDtoToJSONTyped(json, false);
85
+ }
86
+
87
+ export function TrainerFeedDtoToJSONTyped(value?: TrainerFeedDto | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'upcomingClasses': ((value['upcomingClasses'] as Array<any>).map(ReserveToJSON)),
95
+ 'recentBookings': ((value['recentBookings'] as Array<any>).map(ReserveToJSON)),
96
+ 'stats': TrainerFeedDtoStatsToJSON(value['stats']),
97
+ };
98
+ }
99
+