@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,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
+
@@ -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
+ /**
17
+ *
18
+ * @export
19
+ * @interface TrainerFeedDtoStats
20
+ */
21
+ export interface TrainerFeedDtoStats {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof TrainerFeedDtoStats
26
+ */
27
+ totalClassesToday?: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof TrainerFeedDtoStats
32
+ */
33
+ totalClassesThisWeek?: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof TrainerFeedDtoStats
38
+ */
39
+ totalClassesThisMonth?: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof TrainerFeedDtoStats
44
+ */
45
+ activeStudents?: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the TrainerFeedDtoStats interface.
50
+ */
51
+ export function instanceOfTrainerFeedDtoStats(value: object): value is TrainerFeedDtoStats {
52
+ return true;
53
+ }
54
+
55
+ export function TrainerFeedDtoStatsFromJSON(json: any): TrainerFeedDtoStats {
56
+ return TrainerFeedDtoStatsFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function TrainerFeedDtoStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainerFeedDtoStats {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'totalClassesToday': json['totalClassesToday'] == null ? undefined : json['totalClassesToday'],
66
+ 'totalClassesThisWeek': json['totalClassesThisWeek'] == null ? undefined : json['totalClassesThisWeek'],
67
+ 'totalClassesThisMonth': json['totalClassesThisMonth'] == null ? undefined : json['totalClassesThisMonth'],
68
+ 'activeStudents': json['activeStudents'] == null ? undefined : json['activeStudents'],
69
+ };
70
+ }
71
+
72
+ export function TrainerFeedDtoStatsToJSON(json: any): TrainerFeedDtoStats {
73
+ return TrainerFeedDtoStatsToJSONTyped(json, false);
74
+ }
75
+
76
+ export function TrainerFeedDtoStatsToJSONTyped(value?: TrainerFeedDtoStats | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'totalClassesToday': value['totalClassesToday'],
84
+ 'totalClassesThisWeek': value['totalClassesThisWeek'],
85
+ 'totalClassesThisMonth': value['totalClassesThisMonth'],
86
+ 'activeStudents': value['activeStudents'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,116 @@
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 UpdateCoachPriceDto
20
+ */
21
+ export interface UpdateCoachPriceDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UpdateCoachPriceDto
26
+ */
27
+ name?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof UpdateCoachPriceDto
32
+ */
33
+ duration?: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof UpdateCoachPriceDto
38
+ */
39
+ price?: number;
40
+ /**
41
+ *
42
+ * @type {Array<string>}
43
+ * @memberof UpdateCoachPriceDto
44
+ */
45
+ playSpotShiftIds?: Array<string>;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof UpdateCoachPriceDto
50
+ */
51
+ isSubscription?: boolean;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof UpdateCoachPriceDto
56
+ */
57
+ chargeOn?: UpdateCoachPriceDtoChargeOnEnum;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const UpdateCoachPriceDtoChargeOnEnum = {
65
+ Session: 'session',
66
+ Subscription: 'subscription'
67
+ } as const;
68
+ export type UpdateCoachPriceDtoChargeOnEnum = typeof UpdateCoachPriceDtoChargeOnEnum[keyof typeof UpdateCoachPriceDtoChargeOnEnum];
69
+
70
+
71
+ /**
72
+ * Check if a given object implements the UpdateCoachPriceDto interface.
73
+ */
74
+ export function instanceOfUpdateCoachPriceDto(value: object): value is UpdateCoachPriceDto {
75
+ return true;
76
+ }
77
+
78
+ export function UpdateCoachPriceDtoFromJSON(json: any): UpdateCoachPriceDto {
79
+ return UpdateCoachPriceDtoFromJSONTyped(json, false);
80
+ }
81
+
82
+ export function UpdateCoachPriceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCoachPriceDto {
83
+ if (json == null) {
84
+ return json;
85
+ }
86
+ return {
87
+
88
+ 'name': json['name'] == null ? undefined : json['name'],
89
+ 'duration': json['duration'] == null ? undefined : json['duration'],
90
+ 'price': json['price'] == null ? undefined : json['price'],
91
+ 'playSpotShiftIds': json['playSpotShiftIds'] == null ? undefined : json['playSpotShiftIds'],
92
+ 'isSubscription': json['isSubscription'] == null ? undefined : json['isSubscription'],
93
+ 'chargeOn': json['chargeOn'] == null ? undefined : json['chargeOn'],
94
+ };
95
+ }
96
+
97
+ export function UpdateCoachPriceDtoToJSON(json: any): UpdateCoachPriceDto {
98
+ return UpdateCoachPriceDtoToJSONTyped(json, false);
99
+ }
100
+
101
+ export function UpdateCoachPriceDtoToJSONTyped(value?: UpdateCoachPriceDto | null, ignoreDiscriminator: boolean = false): any {
102
+ if (value == null) {
103
+ return value;
104
+ }
105
+
106
+ return {
107
+
108
+ 'name': value['name'],
109
+ 'duration': value['duration'],
110
+ 'price': value['price'],
111
+ 'playSpotShiftIds': value['playSpotShiftIds'],
112
+ 'isSubscription': value['isSubscription'],
113
+ 'chargeOn': value['chargeOn'],
114
+ };
115
+ }
116
+
@@ -0,0 +1,187 @@
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 { UserCoachProfileRating } from './UserCoachProfileRating';
17
+ import {
18
+ UserCoachProfileRatingFromJSON,
19
+ UserCoachProfileRatingFromJSONTyped,
20
+ UserCoachProfileRatingToJSON,
21
+ UserCoachProfileRatingToJSONTyped,
22
+ } from './UserCoachProfileRating';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UserCoachProfile
28
+ */
29
+ export interface UserCoachProfile {
30
+ /**
31
+ * Unique identifier for the coach profile
32
+ * @type {string}
33
+ * @memberof UserCoachProfile
34
+ */
35
+ id: string;
36
+ /**
37
+ * User ID (links to User model)
38
+ * @type {string}
39
+ * @memberof UserCoachProfile
40
+ */
41
+ userId: string;
42
+ /**
43
+ * Array of sports the coach teaches
44
+ * @type {Array<string>}
45
+ * @memberof UserCoachProfile
46
+ */
47
+ sports: Array<string>;
48
+ /**
49
+ * Player categories (KIDS, ADULTS, etc.)
50
+ * @type {Array<string>}
51
+ * @memberof UserCoachProfile
52
+ */
53
+ categories: Array<string>;
54
+ /**
55
+ * Coach portfolio/certification photos
56
+ * @type {Array<string>}
57
+ * @memberof UserCoachProfile
58
+ */
59
+ photoUrls?: Array<string>;
60
+ /**
61
+ * Coach biography
62
+ * @type {string}
63
+ * @memberof UserCoachProfile
64
+ */
65
+ bio?: string;
66
+ /**
67
+ * Profile status
68
+ * @type {string}
69
+ * @memberof UserCoachProfile
70
+ */
71
+ status: UserCoachProfileStatusEnum;
72
+ /**
73
+ * Whether MercadoPago account is linked
74
+ * @type {boolean}
75
+ * @memberof UserCoachProfile
76
+ */
77
+ mercadoPagoLinked?: boolean;
78
+ /**
79
+ * MercadoPago account ID
80
+ * @type {string}
81
+ * @memberof UserCoachProfile
82
+ */
83
+ mercadoPagoAccountId?: string;
84
+ /**
85
+ * Whether coach accepts cash payments
86
+ * @type {boolean}
87
+ * @memberof UserCoachProfile
88
+ */
89
+ allowCashPayment?: boolean;
90
+ /**
91
+ *
92
+ * @type {UserCoachProfileRating}
93
+ * @memberof UserCoachProfile
94
+ */
95
+ rating?: UserCoachProfileRating;
96
+ /**
97
+ *
98
+ * @type {Date}
99
+ * @memberof UserCoachProfile
100
+ */
101
+ createdAt?: Date;
102
+ /**
103
+ *
104
+ * @type {Date}
105
+ * @memberof UserCoachProfile
106
+ */
107
+ updatedAt?: Date;
108
+ }
109
+
110
+
111
+ /**
112
+ * @export
113
+ */
114
+ export const UserCoachProfileStatusEnum = {
115
+ Inactive: 'INACTIVE',
116
+ Active: 'ACTIVE',
117
+ Suspended: 'SUSPENDED',
118
+ Deactivated: 'DEACTIVATED'
119
+ } as const;
120
+ export type UserCoachProfileStatusEnum = typeof UserCoachProfileStatusEnum[keyof typeof UserCoachProfileStatusEnum];
121
+
122
+
123
+ /**
124
+ * Check if a given object implements the UserCoachProfile interface.
125
+ */
126
+ export function instanceOfUserCoachProfile(value: object): value is UserCoachProfile {
127
+ if (!('id' in value) || value['id'] === undefined) return false;
128
+ if (!('userId' in value) || value['userId'] === undefined) return false;
129
+ if (!('sports' in value) || value['sports'] === undefined) return false;
130
+ if (!('categories' in value) || value['categories'] === undefined) return false;
131
+ if (!('status' in value) || value['status'] === undefined) return false;
132
+ return true;
133
+ }
134
+
135
+ export function UserCoachProfileFromJSON(json: any): UserCoachProfile {
136
+ return UserCoachProfileFromJSONTyped(json, false);
137
+ }
138
+
139
+ export function UserCoachProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserCoachProfile {
140
+ if (json == null) {
141
+ return json;
142
+ }
143
+ return {
144
+
145
+ 'id': json['id'],
146
+ 'userId': json['userId'],
147
+ 'sports': json['sports'],
148
+ 'categories': json['categories'],
149
+ 'photoUrls': json['photoUrls'] == null ? undefined : json['photoUrls'],
150
+ 'bio': json['bio'] == null ? undefined : json['bio'],
151
+ 'status': json['status'],
152
+ 'mercadoPagoLinked': json['mercadoPagoLinked'] == null ? undefined : json['mercadoPagoLinked'],
153
+ 'mercadoPagoAccountId': json['mercadoPagoAccountId'] == null ? undefined : json['mercadoPagoAccountId'],
154
+ 'allowCashPayment': json['allowCashPayment'] == null ? undefined : json['allowCashPayment'],
155
+ 'rating': json['rating'] == null ? undefined : UserCoachProfileRatingFromJSON(json['rating']),
156
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
157
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
158
+ };
159
+ }
160
+
161
+ export function UserCoachProfileToJSON(json: any): UserCoachProfile {
162
+ return UserCoachProfileToJSONTyped(json, false);
163
+ }
164
+
165
+ export function UserCoachProfileToJSONTyped(value?: UserCoachProfile | null, ignoreDiscriminator: boolean = false): any {
166
+ if (value == null) {
167
+ return value;
168
+ }
169
+
170
+ return {
171
+
172
+ 'id': value['id'],
173
+ 'userId': value['userId'],
174
+ 'sports': value['sports'],
175
+ 'categories': value['categories'],
176
+ 'photoUrls': value['photoUrls'],
177
+ 'bio': value['bio'],
178
+ 'status': value['status'],
179
+ 'mercadoPagoLinked': value['mercadoPagoLinked'],
180
+ 'mercadoPagoAccountId': value['mercadoPagoAccountId'],
181
+ 'allowCashPayment': value['allowCashPayment'],
182
+ 'rating': UserCoachProfileRatingToJSON(value['rating']),
183
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
184
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
185
+ };
186
+ }
187
+
@@ -0,0 +1,73 @@
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
+ * Coach rating
18
+ * @export
19
+ * @interface UserCoachProfileRating
20
+ */
21
+ export interface UserCoachProfileRating {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof UserCoachProfileRating
26
+ */
27
+ rating?: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof UserCoachProfileRating
32
+ */
33
+ reviewCount?: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the UserCoachProfileRating interface.
38
+ */
39
+ export function instanceOfUserCoachProfileRating(value: object): value is UserCoachProfileRating {
40
+ return true;
41
+ }
42
+
43
+ export function UserCoachProfileRatingFromJSON(json: any): UserCoachProfileRating {
44
+ return UserCoachProfileRatingFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function UserCoachProfileRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserCoachProfileRating {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'rating': json['rating'] == null ? undefined : json['rating'],
54
+ 'reviewCount': json['reviewCount'] == null ? undefined : json['reviewCount'],
55
+ };
56
+ }
57
+
58
+ export function UserCoachProfileRatingToJSON(json: any): UserCoachProfileRating {
59
+ return UserCoachProfileRatingToJSONTyped(json, false);
60
+ }
61
+
62
+ export function UserCoachProfileRatingToJSONTyped(value?: UserCoachProfileRating | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'rating': value['rating'],
70
+ 'reviewCount': value['reviewCount'],
71
+ };
72
+ }
73
+
@@ -75,6 +75,12 @@ export interface UserSession {
75
75
  * @memberof UserSession
76
76
  */
77
77
  userId?: string | null;
78
+ /**
79
+ * User type (PLAYER, COACH, CLUB_OWNER)
80
+ * @type {string}
81
+ * @memberof UserSession
82
+ */
83
+ type?: string | null;
78
84
  /**
79
85
  * User Auth identifier, if available
80
86
  * @type {string}
@@ -114,6 +120,7 @@ export function UserSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean
114
120
  'customer': json['customer'] == null ? undefined : UserSessionCustomerFromJSON(json['customer']),
115
121
  'locationId': json['locationId'] == null ? undefined : json['locationId'],
116
122
  'userId': json['userId'] == null ? undefined : json['userId'],
123
+ 'type': json['type'] == null ? undefined : json['type'],
117
124
  'userAuthId': json['userAuthId'] == null ? undefined : json['userAuthId'],
118
125
  'signInProvider': json['signInProvider'] == null ? undefined : json['signInProvider'],
119
126
  };
@@ -138,6 +145,7 @@ export function UserSessionToJSONTyped(value?: UserSession | null, ignoreDiscrim
138
145
  'customer': UserSessionCustomerToJSON(value['customer']),
139
146
  'locationId': value['locationId'],
140
147
  'userId': value['userId'],
148
+ 'type': value['type'],
141
149
  'userAuthId': value['userAuthId'],
142
150
  'signInProvider': value['signInProvider'],
143
151
  };