@jugarhoy/api 1.1.42 → 1.1.43
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/MediaApi.ts +83 -0
- package/apis/index.ts +1 -0
- package/models/ClubProfileDtoProfile.ts +18 -0
- package/models/IssueUploadUrlRequest.ts +93 -0
- package/models/IssueUploadUrlResponse.ts +102 -0
- package/models/RegisterClubParams.ts +22 -8
- package/models/UpdateClubSettingsParams.ts +18 -2
- package/models/UploadKind.ts +59 -0
- package/models/UserDto.ts +9 -1
- package/models/index.ts +3 -0
- package/package.json +1 -1
- package/runtime.ts +1 -1
package/apis/MediaApi.ts
ADDED
|
@@ -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/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,93 @@
|
|
|
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.
|
|
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
|
+
} as const;
|
|
52
|
+
export type IssueUploadUrlRequestContentTypeEnum = typeof IssueUploadUrlRequestContentTypeEnum[keyof typeof IssueUploadUrlRequestContentTypeEnum];
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the IssueUploadUrlRequest interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfIssueUploadUrlRequest(value: object): value is IssueUploadUrlRequest {
|
|
59
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IssueUploadUrlRequestFromJSON(json: any): IssueUploadUrlRequest {
|
|
64
|
+
return IssueUploadUrlRequestFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function IssueUploadUrlRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueUploadUrlRequest {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'kind': UploadKindFromJSON(json['kind']),
|
|
74
|
+
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function IssueUploadUrlRequestToJSON(json: any): IssueUploadUrlRequest {
|
|
79
|
+
return IssueUploadUrlRequestToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function IssueUploadUrlRequestToJSONTyped(value?: IssueUploadUrlRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'kind': UploadKindToJSON(value['kind']),
|
|
90
|
+
'contentType': value['contentType'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -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
|
+
|
|
@@ -87,7 +87,7 @@ export interface RegisterClubParams {
|
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @memberof RegisterClubParams
|
|
89
89
|
*/
|
|
90
|
-
website
|
|
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
|
|
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 (
|
|
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
|
|
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
|
}
|
|
@@ -83,17 +83,29 @@ export interface UpdateClubSettingsParams {
|
|
|
83
83
|
*/
|
|
84
84
|
youtubeHandle?: string | null;
|
|
85
85
|
/**
|
|
86
|
-
* Base64 encoded avatar image (
|
|
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 (
|
|
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,59 @@
|
|
|
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 image being uploaded. Determines the storage folder and ownership scoping.
|
|
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
|
+
} as const;
|
|
30
|
+
export type UploadKind = typeof UploadKind[keyof typeof UploadKind];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
export function instanceOfUploadKind(value: any): boolean {
|
|
34
|
+
for (const key in UploadKind) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(UploadKind, key)) {
|
|
36
|
+
if (UploadKind[key as keyof typeof UploadKind] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function UploadKindFromJSON(json: any): UploadKind {
|
|
45
|
+
return UploadKindFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function UploadKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadKind {
|
|
49
|
+
return json as UploadKind;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UploadKindToJSON(value?: UploadKind | null): any {
|
|
53
|
+
return value as any;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UploadKindToJSONTyped(value: any, ignoreDiscriminator: boolean): UploadKind {
|
|
57
|
+
return value as UploadKind;
|
|
58
|
+
}
|
|
59
|
+
|
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';
|
|
@@ -356,6 +358,7 @@ export * from './UpdateServiceConfigRequest';
|
|
|
356
358
|
export * from './UpdateTeamRequest';
|
|
357
359
|
export * from './UpdateUserNotificationDto';
|
|
358
360
|
export * from './UploadBillReceipt200Response';
|
|
361
|
+
export * from './UploadKind';
|
|
359
362
|
export * from './UpsertNotificationTemplateRequest';
|
|
360
363
|
export * from './User';
|
|
361
364
|
export * from './UserAuth';
|
package/package.json
CHANGED
package/runtime.ts
CHANGED