@jugarhoy/api 1.1.42 → 1.1.44

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/ClubApi.ts CHANGED
@@ -19,7 +19,9 @@ import type {
19
19
  ClubMySubscriptionDto,
20
20
  ClubProfileDto,
21
21
  ClubSearchResponse,
22
+ CustomerDocument,
22
23
  MyClubDto,
24
+ RecordClubDocumentParams,
23
25
  RegisterClub400Response,
24
26
  RegisterClub401Response,
25
27
  RegisterClub500Response,
@@ -27,6 +29,7 @@ import type {
27
29
  RegisterClubResponse,
28
30
  SearchClubs400Response,
29
31
  SearchClubs500Response,
32
+ SendClubDocumentsParams,
30
33
  Sport,
31
34
  UpdateAppLocationParams,
32
35
  UpdateClubSettingsParams,
@@ -41,8 +44,12 @@ import {
41
44
  ClubProfileDtoToJSON,
42
45
  ClubSearchResponseFromJSON,
43
46
  ClubSearchResponseToJSON,
47
+ CustomerDocumentFromJSON,
48
+ CustomerDocumentToJSON,
44
49
  MyClubDtoFromJSON,
45
50
  MyClubDtoToJSON,
51
+ RecordClubDocumentParamsFromJSON,
52
+ RecordClubDocumentParamsToJSON,
46
53
  RegisterClub400ResponseFromJSON,
47
54
  RegisterClub400ResponseToJSON,
48
55
  RegisterClub401ResponseFromJSON,
@@ -57,6 +64,8 @@ import {
57
64
  SearchClubs400ResponseToJSON,
58
65
  SearchClubs500ResponseFromJSON,
59
66
  SearchClubs500ResponseToJSON,
67
+ SendClubDocumentsParamsFromJSON,
68
+ SendClubDocumentsParamsToJSON,
60
69
  SportFromJSON,
61
70
  SportToJSON,
62
71
  UpdateAppLocationParamsFromJSON,
@@ -72,6 +81,11 @@ export interface ApiClubClubCodeSubscriptionsSubscriptionIdRequestCancellationPo
72
81
  subscriptionId: string;
73
82
  }
74
83
 
84
+ export interface DeleteClubDocumentRequest {
85
+ clubCode: string;
86
+ documentId: string;
87
+ }
88
+
75
89
  export interface GetClubLocationRequest {
76
90
  clubCode: string;
77
91
  locationId: string;
@@ -85,10 +99,19 @@ export interface GetClubProfileRequest {
85
99
  clubCode: string;
86
100
  }
87
101
 
102
+ export interface ListClubDocumentsRequest {
103
+ clubCode: string;
104
+ }
105
+
88
106
  export interface ListClubLocationsRequest {
89
107
  clubCode: string;
90
108
  }
91
109
 
110
+ export interface RecordClubDocumentRequest {
111
+ clubCode: string;
112
+ recordClubDocumentParams: RecordClubDocumentParams;
113
+ }
114
+
92
115
  export interface RegisterClubRequest {
93
116
  registerClubParams: RegisterClubParams;
94
117
  }
@@ -103,6 +126,11 @@ export interface SearchClubsRequest {
103
126
  size?: number;
104
127
  }
105
128
 
129
+ export interface SendClubDocumentsRequest {
130
+ clubCode: string;
131
+ sendClubDocumentsParams: SendClubDocumentsParams;
132
+ }
133
+
106
134
  export interface UpdateClubLocationRequest {
107
135
  clubCode: string;
108
136
  locationId: string;
@@ -166,6 +194,53 @@ export class ClubApi extends runtime.BaseAPI {
166
194
  await this.apiClubClubCodeSubscriptionsSubscriptionIdRequestCancellationPostRaw(requestParameters, initOverrides);
167
195
  }
168
196
 
197
+ /**
198
+ * Delete a verification document for a club (admin only)
199
+ */
200
+ async deleteClubDocumentRaw(requestParameters: DeleteClubDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
201
+ if (requestParameters['clubCode'] == null) {
202
+ throw new runtime.RequiredError(
203
+ 'clubCode',
204
+ 'Required parameter "clubCode" was null or undefined when calling deleteClubDocument().'
205
+ );
206
+ }
207
+
208
+ if (requestParameters['documentId'] == null) {
209
+ throw new runtime.RequiredError(
210
+ 'documentId',
211
+ 'Required parameter "documentId" was null or undefined when calling deleteClubDocument().'
212
+ );
213
+ }
214
+
215
+ const queryParameters: any = {};
216
+
217
+ const headerParameters: runtime.HTTPHeaders = {};
218
+
219
+ if (this.configuration && this.configuration.accessToken) {
220
+ const token = this.configuration.accessToken;
221
+ const tokenString = await token("bearerAuth", []);
222
+
223
+ if (tokenString) {
224
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
225
+ }
226
+ }
227
+ const response = await this.request({
228
+ path: `/api/club/{clubCode}/documents/{documentId}`.replace(`{${"clubCode"}}`, encodeURIComponent(String(requestParameters['clubCode']))).replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId']))),
229
+ method: 'DELETE',
230
+ headers: headerParameters,
231
+ query: queryParameters,
232
+ }, initOverrides);
233
+
234
+ return new runtime.VoidApiResponse(response);
235
+ }
236
+
237
+ /**
238
+ * Delete a verification document for a club (admin only)
239
+ */
240
+ async deleteClubDocument(requestParameters: DeleteClubDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
241
+ await this.deleteClubDocumentRaw(requestParameters, initOverrides);
242
+ }
243
+
169
244
  /**
170
245
  * Get a single location with hours (club admin only)
171
246
  */
@@ -330,6 +405,47 @@ export class ClubApi extends runtime.BaseAPI {
330
405
  return await response.value();
331
406
  }
332
407
 
408
+ /**
409
+ * List verification documents for a club (admin only)
410
+ */
411
+ async listClubDocumentsRaw(requestParameters: ListClubDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CustomerDocument>>> {
412
+ if (requestParameters['clubCode'] == null) {
413
+ throw new runtime.RequiredError(
414
+ 'clubCode',
415
+ 'Required parameter "clubCode" was null or undefined when calling listClubDocuments().'
416
+ );
417
+ }
418
+
419
+ const queryParameters: any = {};
420
+
421
+ const headerParameters: runtime.HTTPHeaders = {};
422
+
423
+ if (this.configuration && this.configuration.accessToken) {
424
+ const token = this.configuration.accessToken;
425
+ const tokenString = await token("bearerAuth", []);
426
+
427
+ if (tokenString) {
428
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
429
+ }
430
+ }
431
+ const response = await this.request({
432
+ path: `/api/club/{clubCode}/documents`.replace(`{${"clubCode"}}`, encodeURIComponent(String(requestParameters['clubCode']))),
433
+ method: 'GET',
434
+ headers: headerParameters,
435
+ query: queryParameters,
436
+ }, initOverrides);
437
+
438
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CustomerDocumentFromJSON));
439
+ }
440
+
441
+ /**
442
+ * List verification documents for a club (admin only)
443
+ */
444
+ async listClubDocuments(requestParameters: ListClubDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CustomerDocument>> {
445
+ const response = await this.listClubDocumentsRaw(requestParameters, initOverrides);
446
+ return await response.value();
447
+ }
448
+
333
449
  /**
334
450
  * List locations for the club (club admin only)
335
451
  */
@@ -371,6 +487,59 @@ export class ClubApi extends runtime.BaseAPI {
371
487
  return await response.value();
372
488
  }
373
489
 
490
+ /**
491
+ * Persists metadata for a document the club admin has just uploaded directly to Firebase Storage via a CLUB_DOCUMENT signed URL. The fileUrl is verified against the caller\'s owner-scoped folder.
492
+ * Record a verification document for a club (admin only)
493
+ */
494
+ async recordClubDocumentRaw(requestParameters: RecordClubDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerDocument>> {
495
+ if (requestParameters['clubCode'] == null) {
496
+ throw new runtime.RequiredError(
497
+ 'clubCode',
498
+ 'Required parameter "clubCode" was null or undefined when calling recordClubDocument().'
499
+ );
500
+ }
501
+
502
+ if (requestParameters['recordClubDocumentParams'] == null) {
503
+ throw new runtime.RequiredError(
504
+ 'recordClubDocumentParams',
505
+ 'Required parameter "recordClubDocumentParams" was null or undefined when calling recordClubDocument().'
506
+ );
507
+ }
508
+
509
+ const queryParameters: any = {};
510
+
511
+ const headerParameters: runtime.HTTPHeaders = {};
512
+
513
+ headerParameters['Content-Type'] = 'application/json';
514
+
515
+ if (this.configuration && this.configuration.accessToken) {
516
+ const token = this.configuration.accessToken;
517
+ const tokenString = await token("bearerAuth", []);
518
+
519
+ if (tokenString) {
520
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
521
+ }
522
+ }
523
+ const response = await this.request({
524
+ path: `/api/club/{clubCode}/documents`.replace(`{${"clubCode"}}`, encodeURIComponent(String(requestParameters['clubCode']))),
525
+ method: 'POST',
526
+ headers: headerParameters,
527
+ query: queryParameters,
528
+ body: RecordClubDocumentParamsToJSON(requestParameters['recordClubDocumentParams']),
529
+ }, initOverrides);
530
+
531
+ return new runtime.JSONApiResponse(response, (jsonValue) => CustomerDocumentFromJSON(jsonValue));
532
+ }
533
+
534
+ /**
535
+ * Persists metadata for a document the club admin has just uploaded directly to Firebase Storage via a CLUB_DOCUMENT signed URL. The fileUrl is verified against the caller\'s owner-scoped folder.
536
+ * Record a verification document for a club (admin only)
537
+ */
538
+ async recordClubDocument(requestParameters: RecordClubDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerDocument> {
539
+ const response = await this.recordClubDocumentRaw(requestParameters, initOverrides);
540
+ return await response.value();
541
+ }
542
+
374
543
  /**
375
544
  * Register a new club
376
545
  */
@@ -477,6 +646,59 @@ export class ClubApi extends runtime.BaseAPI {
477
646
  return await response.value();
478
647
  }
479
648
 
649
+ /**
650
+ * Records every document in the body for this club, then sends a single notification email to the support inbox. Used by the mobile \"Enviar Documentos\" confirm button so each user action triggers exactly one support email.
651
+ * Record + notify Jugar Hoy support of a batch of verification documents (admin only)
652
+ */
653
+ async sendClubDocumentsRaw(requestParameters: SendClubDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CustomerDocument>>> {
654
+ if (requestParameters['clubCode'] == null) {
655
+ throw new runtime.RequiredError(
656
+ 'clubCode',
657
+ 'Required parameter "clubCode" was null or undefined when calling sendClubDocuments().'
658
+ );
659
+ }
660
+
661
+ if (requestParameters['sendClubDocumentsParams'] == null) {
662
+ throw new runtime.RequiredError(
663
+ 'sendClubDocumentsParams',
664
+ 'Required parameter "sendClubDocumentsParams" was null or undefined when calling sendClubDocuments().'
665
+ );
666
+ }
667
+
668
+ const queryParameters: any = {};
669
+
670
+ const headerParameters: runtime.HTTPHeaders = {};
671
+
672
+ headerParameters['Content-Type'] = 'application/json';
673
+
674
+ if (this.configuration && this.configuration.accessToken) {
675
+ const token = this.configuration.accessToken;
676
+ const tokenString = await token("bearerAuth", []);
677
+
678
+ if (tokenString) {
679
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
680
+ }
681
+ }
682
+ const response = await this.request({
683
+ path: `/api/club/{clubCode}/documents/send`.replace(`{${"clubCode"}}`, encodeURIComponent(String(requestParameters['clubCode']))),
684
+ method: 'POST',
685
+ headers: headerParameters,
686
+ query: queryParameters,
687
+ body: SendClubDocumentsParamsToJSON(requestParameters['sendClubDocumentsParams']),
688
+ }, initOverrides);
689
+
690
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CustomerDocumentFromJSON));
691
+ }
692
+
693
+ /**
694
+ * Records every document in the body for this club, then sends a single notification email to the support inbox. Used by the mobile \"Enviar Documentos\" confirm button so each user action triggers exactly one support email.
695
+ * Record + notify Jugar Hoy support of a batch of verification documents (admin only)
696
+ */
697
+ async sendClubDocuments(requestParameters: SendClubDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CustomerDocument>> {
698
+ const response = await this.sendClubDocumentsRaw(requestParameters, initOverrides);
699
+ return await response.value();
700
+ }
701
+
480
702
  /**
481
703
  * Update a location and its hours (club admin only)
482
704
  */
@@ -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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ IssueUploadUrlRequest,
19
+ IssueUploadUrlResponse,
20
+ } from '../models/index';
21
+ import {
22
+ IssueUploadUrlRequestFromJSON,
23
+ IssueUploadUrlRequestToJSON,
24
+ IssueUploadUrlResponseFromJSON,
25
+ IssueUploadUrlResponseToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface IssueUploadUrlOperationRequest {
29
+ issueUploadUrlRequest: IssueUploadUrlRequest;
30
+ }
31
+
32
+ /**
33
+ *
34
+ */
35
+ export class MediaApi extends runtime.BaseAPI {
36
+
37
+ /**
38
+ * Returns a short-lived v4 signed PUT URL scoped to the caller\'s owner folder, plus a long-lived signed read URL that can be persisted on the entity once the upload completes. Mobile clients PUT the image binary directly to `uploadUrl` then send `publicUrl` back to the relevant resource endpoint.
39
+ * Issue a signed URL for direct-to-Firebase image upload
40
+ */
41
+ async issueUploadUrlRaw(requestParameters: IssueUploadUrlOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueUploadUrlResponse>> {
42
+ if (requestParameters['issueUploadUrlRequest'] == null) {
43
+ throw new runtime.RequiredError(
44
+ 'issueUploadUrlRequest',
45
+ 'Required parameter "issueUploadUrlRequest" was null or undefined when calling issueUploadUrl().'
46
+ );
47
+ }
48
+
49
+ const queryParameters: any = {};
50
+
51
+ const headerParameters: runtime.HTTPHeaders = {};
52
+
53
+ headerParameters['Content-Type'] = 'application/json';
54
+
55
+ if (this.configuration && this.configuration.accessToken) {
56
+ const token = this.configuration.accessToken;
57
+ const tokenString = await token("bearerAuth", []);
58
+
59
+ if (tokenString) {
60
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
61
+ }
62
+ }
63
+ const response = await this.request({
64
+ path: `/api/app/media/upload-url`,
65
+ method: 'POST',
66
+ headers: headerParameters,
67
+ query: queryParameters,
68
+ body: IssueUploadUrlRequestToJSON(requestParameters['issueUploadUrlRequest']),
69
+ }, initOverrides);
70
+
71
+ return new runtime.JSONApiResponse(response, (jsonValue) => IssueUploadUrlResponseFromJSON(jsonValue));
72
+ }
73
+
74
+ /**
75
+ * Returns a short-lived v4 signed PUT URL scoped to the caller\'s owner folder, plus a long-lived signed read URL that can be persisted on the entity once the upload completes. Mobile clients PUT the image binary directly to `uploadUrl` then send `publicUrl` back to the relevant resource endpoint.
76
+ * Issue a signed URL for direct-to-Firebase image upload
77
+ */
78
+ async issueUploadUrl(requestParameters: IssueUploadUrlOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueUploadUrlResponse> {
79
+ const response = await this.issueUploadUrlRaw(requestParameters, initOverrides);
80
+ return await response.value();
81
+ }
82
+
83
+ }
package/apis/UsersApi.ts CHANGED
@@ -213,6 +213,39 @@ export class UsersApi extends runtime.BaseAPI {
213
213
  return await response.value();
214
214
  }
215
215
 
216
+ /**
217
+ * Delete the authenticated user\'s own account
218
+ */
219
+ async deleteOwnAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
220
+ const queryParameters: any = {};
221
+
222
+ const headerParameters: runtime.HTTPHeaders = {};
223
+
224
+ if (this.configuration && this.configuration.accessToken) {
225
+ const token = this.configuration.accessToken;
226
+ const tokenString = await token("bearerAuth", []);
227
+
228
+ if (tokenString) {
229
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
230
+ }
231
+ }
232
+ const response = await this.request({
233
+ path: `/api/users/me`,
234
+ method: 'DELETE',
235
+ headers: headerParameters,
236
+ query: queryParameters,
237
+ }, initOverrides);
238
+
239
+ return new runtime.VoidApiResponse(response);
240
+ }
241
+
242
+ /**
243
+ * Delete the authenticated user\'s own account
244
+ */
245
+ async deleteOwnAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
246
+ await this.deleteOwnAccountRaw(initOverrides);
247
+ }
248
+
216
249
  /**
217
250
  * Delete a notification preference for the current user
218
251
  */
package/apis/index.ts CHANGED
@@ -30,6 +30,7 @@ export * from './CoachWorkspaceApi';
30
30
  export * from './DevicesApi';
31
31
  export * from './FALTA1NotificationsApi';
32
32
  export * from './HealthApi';
33
+ export * from './MediaApi';
33
34
  export * from './MercadoPagoApi';
34
35
  export * from './MercadoPagoIPNApi';
35
36
  export * from './MyActivitiesApi';
@@ -143,6 +143,12 @@ export interface ClubProfileDtoProfile {
143
143
  * @memberof ClubProfileDtoProfile
144
144
  */
145
145
  userRole: ClubProfileDtoProfileUserRoleEnum;
146
+ /**
147
+ * Approval status of the club. NEW = pending audit, APPROVED = active.
148
+ * @type {string}
149
+ * @memberof ClubProfileDtoProfile
150
+ */
151
+ customerStatus: ClubProfileDtoProfileCustomerStatusEnum;
146
152
  /**
147
153
  *
148
154
  * @type {string}
@@ -222,6 +228,15 @@ export const ClubProfileDtoProfileUserRoleEnum = {
222
228
  } as const;
223
229
  export type ClubProfileDtoProfileUserRoleEnum = typeof ClubProfileDtoProfileUserRoleEnum[keyof typeof ClubProfileDtoProfileUserRoleEnum];
224
230
 
231
+ /**
232
+ * @export
233
+ */
234
+ export const ClubProfileDtoProfileCustomerStatusEnum = {
235
+ New: 'NEW',
236
+ Approved: 'APPROVED'
237
+ } as const;
238
+ export type ClubProfileDtoProfileCustomerStatusEnum = typeof ClubProfileDtoProfileCustomerStatusEnum[keyof typeof ClubProfileDtoProfileCustomerStatusEnum];
239
+
225
240
 
226
241
  /**
227
242
  * Check if a given object implements the ClubProfileDtoProfile interface.
@@ -233,6 +248,7 @@ export function instanceOfClubProfileDtoProfile(value: object): value is ClubPro
233
248
  if (!('sports' in value) || value['sports'] === undefined) return false;
234
249
  if (!('photoUrls' in value) || value['photoUrls'] === undefined) return false;
235
250
  if (!('userRole' in value) || value['userRole'] === undefined) return false;
251
+ if (!('customerStatus' in value) || value['customerStatus'] === undefined) return false;
236
252
  return true;
237
253
  }
238
254
 
@@ -263,6 +279,7 @@ export function ClubProfileDtoProfileFromJSONTyped(json: any, ignoreDiscriminato
263
279
  'memberSince': json['memberSince'] == null ? undefined : json['memberSince'],
264
280
  'membershipLabel': json['membershipLabel'] == null ? undefined : json['membershipLabel'],
265
281
  'userRole': json['userRole'],
282
+ 'customerStatus': json['customerStatus'],
266
283
  'email': json['email'] == null ? undefined : json['email'],
267
284
  'instagramHandle': json['instagramHandle'] == null ? undefined : json['instagramHandle'],
268
285
  'facebookHandle': json['facebookHandle'] == null ? undefined : json['facebookHandle'],
@@ -305,6 +322,7 @@ export function ClubProfileDtoProfileToJSONTyped(value?: ClubProfileDtoProfile |
305
322
  'memberSince': value['memberSince'],
306
323
  'membershipLabel': value['membershipLabel'],
307
324
  'userRole': value['userRole'],
325
+ 'customerStatus': value['customerStatus'],
308
326
  'email': value['email'],
309
327
  'instagramHandle': value['instagramHandle'],
310
328
  'facebookHandle': value['facebookHandle'],
@@ -0,0 +1,94 @@
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 { UploadKind } from './UploadKind';
17
+ import {
18
+ UploadKindFromJSON,
19
+ UploadKindFromJSONTyped,
20
+ UploadKindToJSON,
21
+ UploadKindToJSONTyped,
22
+ } from './UploadKind';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface IssueUploadUrlRequest
28
+ */
29
+ export interface IssueUploadUrlRequest {
30
+ /**
31
+ *
32
+ * @type {UploadKind}
33
+ * @memberof IssueUploadUrlRequest
34
+ */
35
+ kind: UploadKind;
36
+ /**
37
+ * Content type the client will PUT. Must match the actual bytes. application/pdf is only valid for kind=CLUB_DOCUMENT.
38
+ * @type {string}
39
+ * @memberof IssueUploadUrlRequest
40
+ */
41
+ contentType?: IssueUploadUrlRequestContentTypeEnum;
42
+ }
43
+
44
+
45
+ /**
46
+ * @export
47
+ */
48
+ export const IssueUploadUrlRequestContentTypeEnum = {
49
+ ImageJpeg: 'image/jpeg',
50
+ ImagePng: 'image/png',
51
+ ApplicationPdf: 'application/pdf'
52
+ } as const;
53
+ export type IssueUploadUrlRequestContentTypeEnum = typeof IssueUploadUrlRequestContentTypeEnum[keyof typeof IssueUploadUrlRequestContentTypeEnum];
54
+
55
+
56
+ /**
57
+ * Check if a given object implements the IssueUploadUrlRequest interface.
58
+ */
59
+ export function instanceOfIssueUploadUrlRequest(value: object): value is IssueUploadUrlRequest {
60
+ if (!('kind' in value) || value['kind'] === undefined) return false;
61
+ return true;
62
+ }
63
+
64
+ export function IssueUploadUrlRequestFromJSON(json: any): IssueUploadUrlRequest {
65
+ return IssueUploadUrlRequestFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function IssueUploadUrlRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueUploadUrlRequest {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'kind': UploadKindFromJSON(json['kind']),
75
+ 'contentType': json['contentType'] == null ? undefined : json['contentType'],
76
+ };
77
+ }
78
+
79
+ export function IssueUploadUrlRequestToJSON(json: any): IssueUploadUrlRequest {
80
+ return IssueUploadUrlRequestToJSONTyped(json, false);
81
+ }
82
+
83
+ export function IssueUploadUrlRequestToJSONTyped(value?: IssueUploadUrlRequest | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'kind': UploadKindToJSON(value['kind']),
91
+ 'contentType': value['contentType'],
92
+ };
93
+ }
94
+
@@ -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 IssueUploadUrlResponse
20
+ */
21
+ export interface IssueUploadUrlResponse {
22
+ /**
23
+ * Short-lived (10 min) signed URL for HTTP PUT of the image bytes.
24
+ * @type {string}
25
+ * @memberof IssueUploadUrlResponse
26
+ */
27
+ uploadUrl: string;
28
+ /**
29
+ * Long-lived signed URL to read the uploaded object. Persist this on the entity.
30
+ * @type {string}
31
+ * @memberof IssueUploadUrlResponse
32
+ */
33
+ publicUrl: string;
34
+ /**
35
+ * Storage path (folder/owner/uuid.jpg).
36
+ * @type {string}
37
+ * @memberof IssueUploadUrlResponse
38
+ */
39
+ objectPath: string;
40
+ /**
41
+ * When the upload URL stops accepting PUTs.
42
+ * @type {Date}
43
+ * @memberof IssueUploadUrlResponse
44
+ */
45
+ expiresAt: Date;
46
+ /**
47
+ * Firebase Storage bucket name the URLs point to.
48
+ * @type {string}
49
+ * @memberof IssueUploadUrlResponse
50
+ */
51
+ bucket: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the IssueUploadUrlResponse interface.
56
+ */
57
+ export function instanceOfIssueUploadUrlResponse(value: object): value is IssueUploadUrlResponse {
58
+ if (!('uploadUrl' in value) || value['uploadUrl'] === undefined) return false;
59
+ if (!('publicUrl' in value) || value['publicUrl'] === undefined) return false;
60
+ if (!('objectPath' in value) || value['objectPath'] === undefined) return false;
61
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
62
+ if (!('bucket' in value) || value['bucket'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function IssueUploadUrlResponseFromJSON(json: any): IssueUploadUrlResponse {
67
+ return IssueUploadUrlResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function IssueUploadUrlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueUploadUrlResponse {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'uploadUrl': json['uploadUrl'],
77
+ 'publicUrl': json['publicUrl'],
78
+ 'objectPath': json['objectPath'],
79
+ 'expiresAt': (new Date(json['expiresAt'])),
80
+ 'bucket': json['bucket'],
81
+ };
82
+ }
83
+
84
+ export function IssueUploadUrlResponseToJSON(json: any): IssueUploadUrlResponse {
85
+ return IssueUploadUrlResponseToJSONTyped(json, false);
86
+ }
87
+
88
+ export function IssueUploadUrlResponseToJSONTyped(value?: IssueUploadUrlResponse | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'uploadUrl': value['uploadUrl'],
96
+ 'publicUrl': value['publicUrl'],
97
+ 'objectPath': value['objectPath'],
98
+ 'expiresAt': ((value['expiresAt']).toISOString()),
99
+ 'bucket': value['bucket'],
100
+ };
101
+ }
102
+
@@ -0,0 +1,113 @@
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 RecordClubDocumentParams
20
+ */
21
+ export interface RecordClubDocumentParams {
22
+ /**
23
+ * Signed Firebase Storage URL returned by /api/app/media/upload-url with kind=CLUB_DOCUMENT.
24
+ * @type {string}
25
+ * @memberof RecordClubDocumentParams
26
+ */
27
+ fileUrl: string;
28
+ /**
29
+ * Original file name as picked by the user.
30
+ * @type {string}
31
+ * @memberof RecordClubDocumentParams
32
+ */
33
+ fileName: string;
34
+ /**
35
+ * File size in bytes (max 10MB).
36
+ * @type {number}
37
+ * @memberof RecordClubDocumentParams
38
+ */
39
+ fileSize: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof RecordClubDocumentParams
44
+ */
45
+ mimeType: RecordClubDocumentParamsMimeTypeEnum;
46
+ /**
47
+ * Optional description of the document.
48
+ * @type {string}
49
+ * @memberof RecordClubDocumentParams
50
+ */
51
+ description?: string | null;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const RecordClubDocumentParamsMimeTypeEnum = {
59
+ ApplicationPdf: 'application/pdf',
60
+ ImageJpeg: 'image/jpeg',
61
+ ImagePng: 'image/png'
62
+ } as const;
63
+ export type RecordClubDocumentParamsMimeTypeEnum = typeof RecordClubDocumentParamsMimeTypeEnum[keyof typeof RecordClubDocumentParamsMimeTypeEnum];
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the RecordClubDocumentParams interface.
68
+ */
69
+ export function instanceOfRecordClubDocumentParams(value: object): value is RecordClubDocumentParams {
70
+ if (!('fileUrl' in value) || value['fileUrl'] === undefined) return false;
71
+ if (!('fileName' in value) || value['fileName'] === undefined) return false;
72
+ if (!('fileSize' in value) || value['fileSize'] === undefined) return false;
73
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
74
+ return true;
75
+ }
76
+
77
+ export function RecordClubDocumentParamsFromJSON(json: any): RecordClubDocumentParams {
78
+ return RecordClubDocumentParamsFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function RecordClubDocumentParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecordClubDocumentParams {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'fileUrl': json['fileUrl'],
88
+ 'fileName': json['fileName'],
89
+ 'fileSize': json['fileSize'],
90
+ 'mimeType': json['mimeType'],
91
+ 'description': json['description'] == null ? undefined : json['description'],
92
+ };
93
+ }
94
+
95
+ export function RecordClubDocumentParamsToJSON(json: any): RecordClubDocumentParams {
96
+ return RecordClubDocumentParamsToJSONTyped(json, false);
97
+ }
98
+
99
+ export function RecordClubDocumentParamsToJSONTyped(value?: RecordClubDocumentParams | null, ignoreDiscriminator: boolean = false): any {
100
+ if (value == null) {
101
+ return value;
102
+ }
103
+
104
+ return {
105
+
106
+ 'fileUrl': value['fileUrl'],
107
+ 'fileName': value['fileName'],
108
+ 'fileSize': value['fileSize'],
109
+ 'mimeType': value['mimeType'],
110
+ 'description': value['description'],
111
+ };
112
+ }
113
+
@@ -87,7 +87,7 @@ export interface RegisterClubParams {
87
87
  * @type {string}
88
88
  * @memberof RegisterClubParams
89
89
  */
90
- website: string;
90
+ website?: string;
91
91
  /**
92
92
  * Email of the club
93
93
  * @type {string}
@@ -99,7 +99,7 @@ export interface RegisterClubParams {
99
99
  * @type {string}
100
100
  * @memberof RegisterClubParams
101
101
  */
102
- instagramPage: string;
102
+ instagramPage?: string;
103
103
  /**
104
104
  * Latitude coordinate from Google Maps
105
105
  * @type {number}
@@ -119,17 +119,29 @@ export interface RegisterClubParams {
119
119
  */
120
120
  placeId: string;
121
121
  /**
122
- * Base64 encoded avatar image (data:image/jpeg;base64,...)
122
+ * Base64 encoded avatar image (legacy path; prefer avatarUrl)
123
123
  * @type {string}
124
124
  * @memberof RegisterClubParams
125
125
  */
126
126
  avatarBase64?: string;
127
127
  /**
128
- * Base64 encoded header/banner image (data:image/jpeg;base64,...)
128
+ * Base64 encoded header image (legacy path; prefer headerUrl)
129
129
  * @type {string}
130
130
  * @memberof RegisterClubParams
131
131
  */
132
132
  headerBase64?: string;
133
+ /**
134
+ * Signed Firebase Storage URL (CLUB_AVATAR scope) returned by /api/app/media/upload-url
135
+ * @type {string}
136
+ * @memberof RegisterClubParams
137
+ */
138
+ avatarUrl?: string;
139
+ /**
140
+ * Signed Firebase Storage URL (CLUB_HEADER scope) returned by /api/app/media/upload-url
141
+ * @type {string}
142
+ * @memberof RegisterClubParams
143
+ */
144
+ headerUrl?: string;
133
145
  /**
134
146
  * Optional operating hours pre-loaded from Google Places
135
147
  * @type {Array<RegisterClubParamsLocationHoursInner>}
@@ -150,9 +162,7 @@ export function instanceOfRegisterClubParams(value: object): value is RegisterCl
150
162
  if (!('googleMapsUrl' in value) || value['googleMapsUrl'] === undefined) return false;
151
163
  if (!('sports' in value) || value['sports'] === undefined) return false;
152
164
  if (!('phone' in value) || value['phone'] === undefined) return false;
153
- if (!('website' in value) || value['website'] === undefined) return false;
154
165
  if (!('email' in value) || value['email'] === undefined) return false;
155
- if (!('instagramPage' in value) || value['instagramPage'] === undefined) return false;
156
166
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
157
167
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
158
168
  if (!('placeId' in value) || value['placeId'] === undefined) return false;
@@ -177,14 +187,16 @@ export function RegisterClubParamsFromJSONTyped(json: any, ignoreDiscriminator:
177
187
  'googleMapsUrl': json['googleMapsUrl'],
178
188
  'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
179
189
  'phone': json['phone'],
180
- 'website': json['website'],
190
+ 'website': json['website'] == null ? undefined : json['website'],
181
191
  'email': json['email'],
182
- 'instagramPage': json['instagramPage'],
192
+ 'instagramPage': json['instagramPage'] == null ? undefined : json['instagramPage'],
183
193
  'latitude': json['latitude'],
184
194
  'longitude': json['longitude'],
185
195
  'placeId': json['placeId'],
186
196
  'avatarBase64': json['avatarBase64'] == null ? undefined : json['avatarBase64'],
187
197
  'headerBase64': json['headerBase64'] == null ? undefined : json['headerBase64'],
198
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
199
+ 'headerUrl': json['headerUrl'] == null ? undefined : json['headerUrl'],
188
200
  'locationHours': json['locationHours'] == null ? undefined : ((json['locationHours'] as Array<any>).map(RegisterClubParamsLocationHoursInnerFromJSON)),
189
201
  };
190
202
  }
@@ -216,6 +228,8 @@ export function RegisterClubParamsToJSONTyped(value?: RegisterClubParams | null,
216
228
  'placeId': value['placeId'],
217
229
  'avatarBase64': value['avatarBase64'],
218
230
  'headerBase64': value['headerBase64'],
231
+ 'avatarUrl': value['avatarUrl'],
232
+ 'headerUrl': value['headerUrl'],
219
233
  'locationHours': value['locationHours'] == null ? undefined : ((value['locationHours'] as Array<any>).map(RegisterClubParamsLocationHoursInnerToJSON)),
220
234
  };
221
235
  }
@@ -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
+ import type { RecordClubDocumentParams } from './RecordClubDocumentParams';
17
+ import {
18
+ RecordClubDocumentParamsFromJSON,
19
+ RecordClubDocumentParamsFromJSONTyped,
20
+ RecordClubDocumentParamsToJSON,
21
+ RecordClubDocumentParamsToJSONTyped,
22
+ } from './RecordClubDocumentParams';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SendClubDocumentsParams
28
+ */
29
+ export interface SendClubDocumentsParams {
30
+ /**
31
+ *
32
+ * @type {Array<RecordClubDocumentParams>}
33
+ * @memberof SendClubDocumentsParams
34
+ */
35
+ documents: Array<RecordClubDocumentParams>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SendClubDocumentsParams interface.
40
+ */
41
+ export function instanceOfSendClubDocumentsParams(value: object): value is SendClubDocumentsParams {
42
+ if (!('documents' in value) || value['documents'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SendClubDocumentsParamsFromJSON(json: any): SendClubDocumentsParams {
47
+ return SendClubDocumentsParamsFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SendClubDocumentsParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendClubDocumentsParams {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'documents': ((json['documents'] as Array<any>).map(RecordClubDocumentParamsFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function SendClubDocumentsParamsToJSON(json: any): SendClubDocumentsParams {
61
+ return SendClubDocumentsParamsToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SendClubDocumentsParamsToJSONTyped(value?: SendClubDocumentsParams | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'documents': ((value['documents'] as Array<any>).map(RecordClubDocumentParamsToJSON)),
72
+ };
73
+ }
74
+
@@ -83,17 +83,29 @@ export interface UpdateClubSettingsParams {
83
83
  */
84
84
  youtubeHandle?: string | null;
85
85
  /**
86
- * Base64 encoded avatar image (data:image/jpeg;base64,...)
86
+ * Base64 encoded avatar image (legacy path; prefer avatarUrl)
87
87
  * @type {string}
88
88
  * @memberof UpdateClubSettingsParams
89
89
  */
90
90
  avatarBase64?: string | null;
91
91
  /**
92
- * Base64 encoded banner image (data:image/jpeg;base64,...)
92
+ * Base64 encoded banner image (legacy path; prefer headerUrl)
93
93
  * @type {string}
94
94
  * @memberof UpdateClubSettingsParams
95
95
  */
96
96
  headerBase64?: string | null;
97
+ /**
98
+ * Signed Firebase Storage URL (CLUB_AVATAR scope) returned by /api/app/media/upload-url
99
+ * @type {string}
100
+ * @memberof UpdateClubSettingsParams
101
+ */
102
+ avatarUrl?: string | null;
103
+ /**
104
+ * Signed Firebase Storage URL (CLUB_HEADER scope) returned by /api/app/media/upload-url
105
+ * @type {string}
106
+ * @memberof UpdateClubSettingsParams
107
+ */
108
+ headerUrl?: string | null;
97
109
  /**
98
110
  * Background color for the club header (hex, e.g. "#FF8C32")
99
111
  * @type {string}
@@ -141,6 +153,8 @@ export function UpdateClubSettingsParamsFromJSONTyped(json: any, ignoreDiscrimin
141
153
  'youtubeHandle': json['youtubeHandle'] == null ? undefined : json['youtubeHandle'],
142
154
  'avatarBase64': json['avatarBase64'] == null ? undefined : json['avatarBase64'],
143
155
  'headerBase64': json['headerBase64'] == null ? undefined : json['headerBase64'],
156
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
157
+ 'headerUrl': json['headerUrl'] == null ? undefined : json['headerUrl'],
144
158
  'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
145
159
  'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
146
160
  'serviceTypes': json['serviceTypes'] == null ? undefined : ((json['serviceTypes'] as Array<any>).map(UpdateClubSettingsServiceTypeItemFromJSON)),
@@ -168,6 +182,8 @@ export function UpdateClubSettingsParamsToJSONTyped(value?: UpdateClubSettingsPa
168
182
  'youtubeHandle': value['youtubeHandle'],
169
183
  'avatarBase64': value['avatarBase64'],
170
184
  'headerBase64': value['headerBase64'],
185
+ 'avatarUrl': value['avatarUrl'],
186
+ 'headerUrl': value['headerUrl'],
171
187
  'bgColor': value['bgColor'],
172
188
  'fgColor': value['fgColor'],
173
189
  'serviceTypes': value['serviceTypes'] == null ? undefined : ((value['serviceTypes'] as Array<any>).map(UpdateClubSettingsServiceTypeItemToJSON)),
@@ -0,0 +1,60 @@
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
+
16
+ /**
17
+ * Category of file being uploaded. Determines the storage folder, ownership scoping, and allowed content types (image-only for most kinds; image+pdf for CLUB_DOCUMENT).
18
+ * @export
19
+ */
20
+ export const UploadKind = {
21
+ Avatar: 'AVATAR',
22
+ UserGuestAvatar: 'USER_GUEST_AVATAR',
23
+ CoachHero: 'COACH_HERO',
24
+ CoachGallery: 'COACH_GALLERY',
25
+ TeamAvatar: 'TEAM_AVATAR',
26
+ TeamBanner: 'TEAM_BANNER',
27
+ ClubAvatar: 'CLUB_AVATAR',
28
+ ClubHeader: 'CLUB_HEADER',
29
+ ClubDocument: 'CLUB_DOCUMENT'
30
+ } as const;
31
+ export type UploadKind = typeof UploadKind[keyof typeof UploadKind];
32
+
33
+
34
+ export function instanceOfUploadKind(value: any): boolean {
35
+ for (const key in UploadKind) {
36
+ if (Object.prototype.hasOwnProperty.call(UploadKind, key)) {
37
+ if (UploadKind[key as keyof typeof UploadKind] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+
45
+ export function UploadKindFromJSON(json: any): UploadKind {
46
+ return UploadKindFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function UploadKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadKind {
50
+ return json as UploadKind;
51
+ }
52
+
53
+ export function UploadKindToJSON(value?: UploadKind | null): any {
54
+ return value as any;
55
+ }
56
+
57
+ export function UploadKindToJSONTyped(value: any, ignoreDiscriminator: boolean): UploadKind {
58
+ return value as UploadKind;
59
+ }
60
+
package/models/UserDto.ts CHANGED
@@ -65,11 +65,17 @@ export interface UserDto {
65
65
  */
66
66
  birthDate?: Date;
67
67
  /**
68
- * Base64 encoded string of the user's profile picture
68
+ * Base64 encoded string of the user's profile picture (legacy path; prefer avatarUrl)
69
69
  * @type {string}
70
70
  * @memberof UserDto
71
71
  */
72
72
  avatarBase64?: string;
73
+ /**
74
+ * Signed Firebase Storage URL returned by POST /api/app/media/upload-url. Must be scoped to the caller's folder (AVATAR or USER_GUEST_AVATAR).
75
+ * @type {string}
76
+ * @memberof UserDto
77
+ */
78
+ avatarUrl?: string;
73
79
  /**
74
80
  * User's Instagram username
75
81
  * @type {string}
@@ -166,6 +172,7 @@ export function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): U
166
172
  'phone': json['phone'] == null ? undefined : json['phone'],
167
173
  'birthDate': json['birthDate'] == null ? undefined : (new Date(json['birthDate'])),
168
174
  'avatarBase64': json['avatarBase64'] == null ? undefined : json['avatarBase64'],
175
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
169
176
  'instagramHandle': json['instagramHandle'] == null ? undefined : json['instagramHandle'],
170
177
  'handle': json['handle'] == null ? undefined : json['handle'],
171
178
  'bio': json['bio'] == null ? undefined : json['bio'],
@@ -197,6 +204,7 @@ export function UserDtoToJSONTyped(value?: UserDto | null, ignoreDiscriminator:
197
204
  'phone': value['phone'],
198
205
  'birthDate': value['birthDate'] == null ? undefined : ((value['birthDate']).toISOString().substring(0,10)),
199
206
  'avatarBase64': value['avatarBase64'],
207
+ 'avatarUrl': value['avatarUrl'],
200
208
  'instagramHandle': value['instagramHandle'],
201
209
  'handle': value['handle'],
202
210
  'bio': value['bio'],
package/models/index.ts CHANGED
@@ -166,6 +166,8 @@ export * from './HourShiftDetail';
166
166
  export * from './InitiateReservationParams';
167
167
  export * from './InvitationListItem';
168
168
  export * from './InvitationStatus';
169
+ export * from './IssueUploadUrlRequest';
170
+ export * from './IssueUploadUrlResponse';
169
171
  export * from './JoinTeamRequest';
170
172
  export * from './Level';
171
173
  export * from './LightControlResponse';
@@ -255,6 +257,7 @@ export * from './ProcessMercadoPagoPaymentResponseResult';
255
257
  export * from './PublicAgendaSlotDto';
256
258
  export * from './PublicDayAgendaDto';
257
259
  export * from './PublicWeeklyAgendaDto';
260
+ export * from './RecordClubDocumentParams';
258
261
  export * from './RecurringGame';
259
262
  export * from './RecurringGameResponse';
260
263
  export * from './RefundPolicy';
@@ -293,6 +296,7 @@ export * from './SavePushTokenRequest';
293
296
  export * from './SaveTransferDetailsRequest';
294
297
  export * from './SearchClubs400Response';
295
298
  export * from './SearchClubs500Response';
299
+ export * from './SendClubDocumentsParams';
296
300
  export * from './SendEmailVerification500Response';
297
301
  export * from './SendEmailVerificationRequest';
298
302
  export * from './ServiceType';
@@ -356,6 +360,7 @@ export * from './UpdateServiceConfigRequest';
356
360
  export * from './UpdateTeamRequest';
357
361
  export * from './UpdateUserNotificationDto';
358
362
  export * from './UploadBillReceipt200Response';
363
+ export * from './UploadKind';
359
364
  export * from './UpsertNotificationTemplateRequest';
360
365
  export * from './User';
361
366
  export * from './UserAuth';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jugarhoy/api",
3
- "version": "1.1.42",
3
+ "version": "1.1.44",
4
4
  "description": "TypeScript SDK for Jugar Hoy API",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",
package/runtime.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- export const BASE_PATH = "http://localhost:7173".replace(/\/+$/, "");
16
+ export const BASE_PATH = "http://localhost:6173".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path