@tennac-booking/sdk 1.0.113 → 1.0.114
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/.openapi-generator/FILES +5 -1
- package/README.md +12 -2
- package/api.ts +823 -7
- package/dist/api.d.ts +540 -4
- package/dist/api.js +452 -6
- package/dist/esm/api.d.ts +540 -4
- package/dist/esm/api.js +448 -2
- package/docs/AgendaBooking.md +30 -0
- package/docs/AgendaBookingPlayer.md +26 -0
- package/docs/AgendaBookingSlot.md +30 -0
- package/docs/AgendaPaymentStatus.md +12 -0
- package/docs/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/ClubPlayerDetailResponse.md +2 -0
- package/docs/ClubSettingsManagerApi.md +2 -2
- package/docs/ClubSummary.md +8 -2
- package/docs/ClubsManagerApi.md +56 -0
- package/docs/ClubsStaffApi.md +55 -0
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventsStaffApi.md +198 -0
- package/docs/UpdateUserCreditsRequest.md +20 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -110,6 +110,140 @@ export interface AddOrganizationRequest {
|
|
|
110
110
|
*/
|
|
111
111
|
'organizationId'?: string;
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @export
|
|
116
|
+
* @interface AgendaBooking
|
|
117
|
+
*/
|
|
118
|
+
export interface AgendaBooking {
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof AgendaBooking
|
|
123
|
+
*/
|
|
124
|
+
'id': string;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {BookingStatus}
|
|
128
|
+
* @memberof AgendaBooking
|
|
129
|
+
*/
|
|
130
|
+
'status': BookingStatus;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof AgendaBooking
|
|
135
|
+
*/
|
|
136
|
+
'creatorName': string;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {Array<AgendaBookingPlayer>}
|
|
140
|
+
* @memberof AgendaBooking
|
|
141
|
+
*/
|
|
142
|
+
'players': Array<AgendaBookingPlayer>;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {AgendaPaymentStatus}
|
|
146
|
+
* @memberof AgendaBooking
|
|
147
|
+
*/
|
|
148
|
+
'paymentStatus': AgendaPaymentStatus;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {Array<AgendaBookingSlot>}
|
|
152
|
+
* @memberof AgendaBooking
|
|
153
|
+
*/
|
|
154
|
+
'slots': Array<AgendaBookingSlot>;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @interface AgendaBookingPlayer
|
|
162
|
+
*/
|
|
163
|
+
export interface AgendaBookingPlayer {
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof AgendaBookingPlayer
|
|
168
|
+
*/
|
|
169
|
+
'id': string;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof AgendaBookingPlayer
|
|
174
|
+
*/
|
|
175
|
+
'firstName': string;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof AgendaBookingPlayer
|
|
180
|
+
*/
|
|
181
|
+
'lastName': string;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof AgendaBookingPlayer
|
|
186
|
+
*/
|
|
187
|
+
'profilePictureUrl'?: string;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @export
|
|
192
|
+
* @interface AgendaBookingSlot
|
|
193
|
+
*/
|
|
194
|
+
export interface AgendaBookingSlot {
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof AgendaBookingSlot
|
|
199
|
+
*/
|
|
200
|
+
'start': string;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @type {string}
|
|
204
|
+
* @memberof AgendaBookingSlot
|
|
205
|
+
*/
|
|
206
|
+
'end': string;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @memberof AgendaBookingSlot
|
|
211
|
+
*/
|
|
212
|
+
'courtName': string;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @type {string}
|
|
216
|
+
* @memberof AgendaBookingSlot
|
|
217
|
+
*/
|
|
218
|
+
'sportKey': string;
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @type {string}
|
|
222
|
+
* @memberof AgendaBookingSlot
|
|
223
|
+
*/
|
|
224
|
+
'surface'?: string;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {boolean}
|
|
228
|
+
* @memberof AgendaBookingSlot
|
|
229
|
+
*/
|
|
230
|
+
'isIndoor'?: boolean;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @export
|
|
235
|
+
* @enum {string}
|
|
236
|
+
*/
|
|
237
|
+
|
|
238
|
+
export const AgendaPaymentStatus = {
|
|
239
|
+
Pay: 'payé',
|
|
240
|
+
NonPay: 'non payé',
|
|
241
|
+
EnAttente: 'en attente'
|
|
242
|
+
} as const;
|
|
243
|
+
|
|
244
|
+
export type AgendaPaymentStatus = typeof AgendaPaymentStatus[keyof typeof AgendaPaymentStatus];
|
|
245
|
+
|
|
246
|
+
|
|
113
247
|
/**
|
|
114
248
|
*
|
|
115
249
|
* @export
|
|
@@ -1131,10 +1265,10 @@ export interface BookingSummaryClubAddress {
|
|
|
1131
1265
|
export interface BookingsWithTimeBoundsResponse {
|
|
1132
1266
|
/**
|
|
1133
1267
|
*
|
|
1134
|
-
* @type {Array<
|
|
1268
|
+
* @type {Array<AgendaBooking>}
|
|
1135
1269
|
* @memberof BookingsWithTimeBoundsResponse
|
|
1136
1270
|
*/
|
|
1137
|
-
'bookings': Array<
|
|
1271
|
+
'bookings': Array<AgendaBooking>;
|
|
1138
1272
|
/**
|
|
1139
1273
|
*
|
|
1140
1274
|
* @type {TimeBounds}
|
|
@@ -2220,6 +2354,12 @@ export interface ClubPlayerDetailResponse {
|
|
|
2220
2354
|
* @memberof ClubPlayerDetailResponse
|
|
2221
2355
|
*/
|
|
2222
2356
|
'birthDate': string | null;
|
|
2357
|
+
/**
|
|
2358
|
+
*
|
|
2359
|
+
* @type {number}
|
|
2360
|
+
* @memberof ClubPlayerDetailResponse
|
|
2361
|
+
*/
|
|
2362
|
+
'credits': number | null;
|
|
2223
2363
|
}
|
|
2224
2364
|
/**
|
|
2225
2365
|
*
|
|
@@ -2962,7 +3102,19 @@ export interface ClubSummary {
|
|
|
2962
3102
|
* @type {string}
|
|
2963
3103
|
* @memberof ClubSummary
|
|
2964
3104
|
*/
|
|
2965
|
-
'
|
|
3105
|
+
'picture'?: string;
|
|
3106
|
+
/**
|
|
3107
|
+
*
|
|
3108
|
+
* @type {Array<string>}
|
|
3109
|
+
* @memberof ClubSummary
|
|
3110
|
+
*/
|
|
3111
|
+
'bannerPictures'?: Array<string>;
|
|
3112
|
+
/**
|
|
3113
|
+
*
|
|
3114
|
+
* @type {Array<string>}
|
|
3115
|
+
* @memberof ClubSummary
|
|
3116
|
+
*/
|
|
3117
|
+
'galleryPictures'?: Array<string>;
|
|
2966
3118
|
/**
|
|
2967
3119
|
*
|
|
2968
3120
|
* @type {UserLocationSummary}
|
|
@@ -2975,6 +3127,12 @@ export interface ClubSummary {
|
|
|
2975
3127
|
* @memberof ClubSummary
|
|
2976
3128
|
*/
|
|
2977
3129
|
'visitCount'?: number;
|
|
3130
|
+
/**
|
|
3131
|
+
*
|
|
3132
|
+
* @type {Array<string>}
|
|
3133
|
+
* @memberof ClubSummary
|
|
3134
|
+
*/
|
|
3135
|
+
'tags'?: Array<string>;
|
|
2978
3136
|
}
|
|
2979
3137
|
/**
|
|
2980
3138
|
*
|
|
@@ -3452,13 +3610,19 @@ export interface CreateEventRequest {
|
|
|
3452
3610
|
* @type {string}
|
|
3453
3611
|
* @memberof CreateEventRequest
|
|
3454
3612
|
*/
|
|
3455
|
-
'recurringType'
|
|
3613
|
+
'recurringType'?: CreateEventRequestRecurringTypeEnum | null;
|
|
3456
3614
|
/**
|
|
3457
3615
|
*
|
|
3458
3616
|
* @type {string}
|
|
3459
3617
|
* @memberof CreateEventRequest
|
|
3460
3618
|
*/
|
|
3461
3619
|
'recurrenceEndDate'?: string;
|
|
3620
|
+
/**
|
|
3621
|
+
*
|
|
3622
|
+
* @type {number}
|
|
3623
|
+
* @memberof CreateEventRequest
|
|
3624
|
+
*/
|
|
3625
|
+
'occurrences'?: number;
|
|
3462
3626
|
/**
|
|
3463
3627
|
*
|
|
3464
3628
|
* @type {string}
|
|
@@ -9250,6 +9414,19 @@ export interface UpdateSubscriptionPlanForClub200Response {
|
|
|
9250
9414
|
*/
|
|
9251
9415
|
'price': any;
|
|
9252
9416
|
}
|
|
9417
|
+
/**
|
|
9418
|
+
*
|
|
9419
|
+
* @export
|
|
9420
|
+
* @interface UpdateUserCreditsRequest
|
|
9421
|
+
*/
|
|
9422
|
+
export interface UpdateUserCreditsRequest {
|
|
9423
|
+
/**
|
|
9424
|
+
* Variation du crédit à appliquer, exprimée en centimes. Peut être négative pour retirer du crédit.
|
|
9425
|
+
* @type {number}
|
|
9426
|
+
* @memberof UpdateUserCreditsRequest
|
|
9427
|
+
*/
|
|
9428
|
+
'deltaInCents': number;
|
|
9429
|
+
}
|
|
9253
9430
|
/**
|
|
9254
9431
|
*
|
|
9255
9432
|
* @export
|
|
@@ -13625,7 +13802,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
|
|
|
13625
13802
|
baseOptions = configuration.baseOptions;
|
|
13626
13803
|
}
|
|
13627
13804
|
|
|
13628
|
-
const localVarRequestOptions = { method: '
|
|
13805
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
13629
13806
|
const localVarHeaderParameter = {} as any;
|
|
13630
13807
|
const localVarQueryParameter = {} as any;
|
|
13631
13808
|
|
|
@@ -13703,7 +13880,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
|
|
|
13703
13880
|
baseOptions = configuration.baseOptions;
|
|
13704
13881
|
}
|
|
13705
13882
|
|
|
13706
|
-
const localVarRequestOptions = { method: '
|
|
13883
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
13707
13884
|
const localVarHeaderParameter = {} as any;
|
|
13708
13885
|
const localVarQueryParameter = {} as any;
|
|
13709
13886
|
|
|
@@ -15651,6 +15828,43 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
|
|
|
15651
15828
|
|
|
15652
15829
|
|
|
15653
15830
|
|
|
15831
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15832
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15833
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15834
|
+
|
|
15835
|
+
return {
|
|
15836
|
+
url: toPathString(localVarUrlObj),
|
|
15837
|
+
options: localVarRequestOptions,
|
|
15838
|
+
};
|
|
15839
|
+
},
|
|
15840
|
+
/**
|
|
15841
|
+
* Supprime un membre d\'un club
|
|
15842
|
+
* @param {string} userId
|
|
15843
|
+
* @param {*} [options] Override http request option.
|
|
15844
|
+
* @throws {RequiredError}
|
|
15845
|
+
*/
|
|
15846
|
+
deleteClubMember: async (userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15847
|
+
// verify required parameter 'userId' is not null or undefined
|
|
15848
|
+
assertParamExists('deleteClubMember', 'userId', userId)
|
|
15849
|
+
const localVarPath = `/api/clubs/members/{userId}`
|
|
15850
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
15851
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15852
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15853
|
+
let baseOptions;
|
|
15854
|
+
if (configuration) {
|
|
15855
|
+
baseOptions = configuration.baseOptions;
|
|
15856
|
+
}
|
|
15857
|
+
|
|
15858
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
15859
|
+
const localVarHeaderParameter = {} as any;
|
|
15860
|
+
const localVarQueryParameter = {} as any;
|
|
15861
|
+
|
|
15862
|
+
// authentication bearerAuth required
|
|
15863
|
+
// http bearer authentication required
|
|
15864
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15865
|
+
|
|
15866
|
+
|
|
15867
|
+
|
|
15654
15868
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15655
15869
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15656
15870
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -16262,6 +16476,18 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
|
|
|
16262
16476
|
const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteActuality']?.[localVarOperationServerIndex]?.url;
|
|
16263
16477
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16264
16478
|
},
|
|
16479
|
+
/**
|
|
16480
|
+
* Supprime un membre d\'un club
|
|
16481
|
+
* @param {string} userId
|
|
16482
|
+
* @param {*} [options] Override http request option.
|
|
16483
|
+
* @throws {RequiredError}
|
|
16484
|
+
*/
|
|
16485
|
+
async deleteClubMember(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddClubMember201Response>> {
|
|
16486
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClubMember(userId, options);
|
|
16487
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16488
|
+
const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteClubMember']?.[localVarOperationServerIndex]?.url;
|
|
16489
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16490
|
+
},
|
|
16265
16491
|
/**
|
|
16266
16492
|
* Supprime un terrain et ses créneaux futurs
|
|
16267
16493
|
* @param {string} courtId
|
|
@@ -16494,6 +16720,15 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
|
|
|
16494
16720
|
deleteActuality(requestParameters: ClubsManagerApiDeleteActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
16495
16721
|
return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
|
|
16496
16722
|
},
|
|
16723
|
+
/**
|
|
16724
|
+
* Supprime un membre d\'un club
|
|
16725
|
+
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
16726
|
+
* @param {*} [options] Override http request option.
|
|
16727
|
+
* @throws {RequiredError}
|
|
16728
|
+
*/
|
|
16729
|
+
deleteClubMember(requestParameters: ClubsManagerApiDeleteClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddClubMember201Response> {
|
|
16730
|
+
return localVarFp.deleteClubMember(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
16731
|
+
},
|
|
16497
16732
|
/**
|
|
16498
16733
|
* Supprime un terrain et ses créneaux futurs
|
|
16499
16734
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -16718,6 +16953,20 @@ export interface ClubsManagerApiDeleteActualityRequest {
|
|
|
16718
16953
|
readonly actualityId: string
|
|
16719
16954
|
}
|
|
16720
16955
|
|
|
16956
|
+
/**
|
|
16957
|
+
* Request parameters for deleteClubMember operation in ClubsManagerApi.
|
|
16958
|
+
* @export
|
|
16959
|
+
* @interface ClubsManagerApiDeleteClubMemberRequest
|
|
16960
|
+
*/
|
|
16961
|
+
export interface ClubsManagerApiDeleteClubMemberRequest {
|
|
16962
|
+
/**
|
|
16963
|
+
*
|
|
16964
|
+
* @type {string}
|
|
16965
|
+
* @memberof ClubsManagerApiDeleteClubMember
|
|
16966
|
+
*/
|
|
16967
|
+
readonly userId: string
|
|
16968
|
+
}
|
|
16969
|
+
|
|
16721
16970
|
/**
|
|
16722
16971
|
* Request parameters for deleteCourt operation in ClubsManagerApi.
|
|
16723
16972
|
* @export
|
|
@@ -16998,6 +17247,17 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
16998
17247
|
return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
|
|
16999
17248
|
}
|
|
17000
17249
|
|
|
17250
|
+
/**
|
|
17251
|
+
* Supprime un membre d\'un club
|
|
17252
|
+
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
17253
|
+
* @param {*} [options] Override http request option.
|
|
17254
|
+
* @throws {RequiredError}
|
|
17255
|
+
* @memberof ClubsManagerApi
|
|
17256
|
+
*/
|
|
17257
|
+
public deleteClubMember(requestParameters: ClubsManagerApiDeleteClubMemberRequest, options?: RawAxiosRequestConfig) {
|
|
17258
|
+
return ClubsManagerApiFp(this.configuration).deleteClubMember(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
17259
|
+
}
|
|
17260
|
+
|
|
17001
17261
|
/**
|
|
17002
17262
|
* Supprime un terrain et ses créneaux futurs
|
|
17003
17263
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -17455,6 +17715,49 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
|
|
|
17455
17715
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17456
17716
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17457
17717
|
|
|
17718
|
+
return {
|
|
17719
|
+
url: toPathString(localVarUrlObj),
|
|
17720
|
+
options: localVarRequestOptions,
|
|
17721
|
+
};
|
|
17722
|
+
},
|
|
17723
|
+
/**
|
|
17724
|
+
*
|
|
17725
|
+
* @param {string} id
|
|
17726
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
17727
|
+
* @param {*} [options] Override http request option.
|
|
17728
|
+
* @throws {RequiredError}
|
|
17729
|
+
*/
|
|
17730
|
+
updateUserCreditsStaff: async (id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17731
|
+
// verify required parameter 'id' is not null or undefined
|
|
17732
|
+
assertParamExists('updateUserCreditsStaff', 'id', id)
|
|
17733
|
+
// verify required parameter 'updateUserCreditsRequest' is not null or undefined
|
|
17734
|
+
assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest)
|
|
17735
|
+
const localVarPath = `/api/clubs/staff/user-credits/{id}`
|
|
17736
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
17737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17738
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17739
|
+
let baseOptions;
|
|
17740
|
+
if (configuration) {
|
|
17741
|
+
baseOptions = configuration.baseOptions;
|
|
17742
|
+
}
|
|
17743
|
+
|
|
17744
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
17745
|
+
const localVarHeaderParameter = {} as any;
|
|
17746
|
+
const localVarQueryParameter = {} as any;
|
|
17747
|
+
|
|
17748
|
+
// authentication bearerAuth required
|
|
17749
|
+
// http bearer authentication required
|
|
17750
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17751
|
+
|
|
17752
|
+
|
|
17753
|
+
|
|
17754
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17755
|
+
|
|
17756
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17757
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17758
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17759
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration)
|
|
17760
|
+
|
|
17458
17761
|
return {
|
|
17459
17762
|
url: toPathString(localVarUrlObj),
|
|
17460
17763
|
options: localVarRequestOptions,
|
|
@@ -17572,6 +17875,19 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
|
|
|
17572
17875
|
const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getUserProfileStaff']?.[localVarOperationServerIndex]?.url;
|
|
17573
17876
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17574
17877
|
},
|
|
17878
|
+
/**
|
|
17879
|
+
*
|
|
17880
|
+
* @param {string} id
|
|
17881
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
17882
|
+
* @param {*} [options] Override http request option.
|
|
17883
|
+
* @throws {RequiredError}
|
|
17884
|
+
*/
|
|
17885
|
+
async updateUserCreditsStaff(id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffUserProfileResponse>> {
|
|
17886
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
|
|
17887
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17888
|
+
const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']?.[localVarOperationServerIndex]?.url;
|
|
17889
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17890
|
+
},
|
|
17575
17891
|
}
|
|
17576
17892
|
};
|
|
17577
17893
|
|
|
@@ -17656,6 +17972,15 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
|
|
|
17656
17972
|
getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
|
|
17657
17973
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
17658
17974
|
},
|
|
17975
|
+
/**
|
|
17976
|
+
*
|
|
17977
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
17978
|
+
* @param {*} [options] Override http request option.
|
|
17979
|
+
* @throws {RequiredError}
|
|
17980
|
+
*/
|
|
17981
|
+
updateUserCreditsStaff(requestParameters: ClubsStaffApiUpdateUserCreditsStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
|
|
17982
|
+
return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
|
|
17983
|
+
},
|
|
17659
17984
|
};
|
|
17660
17985
|
};
|
|
17661
17986
|
|
|
@@ -17695,7 +18020,28 @@ export interface ClubsStaffApiGetUserProfileStaffRequest {
|
|
|
17695
18020
|
}
|
|
17696
18021
|
|
|
17697
18022
|
/**
|
|
17698
|
-
*
|
|
18023
|
+
* Request parameters for updateUserCreditsStaff operation in ClubsStaffApi.
|
|
18024
|
+
* @export
|
|
18025
|
+
* @interface ClubsStaffApiUpdateUserCreditsStaffRequest
|
|
18026
|
+
*/
|
|
18027
|
+
export interface ClubsStaffApiUpdateUserCreditsStaffRequest {
|
|
18028
|
+
/**
|
|
18029
|
+
*
|
|
18030
|
+
* @type {string}
|
|
18031
|
+
* @memberof ClubsStaffApiUpdateUserCreditsStaff
|
|
18032
|
+
*/
|
|
18033
|
+
readonly id: string
|
|
18034
|
+
|
|
18035
|
+
/**
|
|
18036
|
+
*
|
|
18037
|
+
* @type {UpdateUserCreditsRequest}
|
|
18038
|
+
* @memberof ClubsStaffApiUpdateUserCreditsStaff
|
|
18039
|
+
*/
|
|
18040
|
+
readonly updateUserCreditsRequest: UpdateUserCreditsRequest
|
|
18041
|
+
}
|
|
18042
|
+
|
|
18043
|
+
/**
|
|
18044
|
+
* ClubsStaffApi - object-oriented interface
|
|
17699
18045
|
* @export
|
|
17700
18046
|
* @class ClubsStaffApi
|
|
17701
18047
|
* @extends {BaseAPI}
|
|
@@ -17792,6 +18138,17 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
17792
18138
|
public getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig) {
|
|
17793
18139
|
return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
17794
18140
|
}
|
|
18141
|
+
|
|
18142
|
+
/**
|
|
18143
|
+
*
|
|
18144
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
18145
|
+
* @param {*} [options] Override http request option.
|
|
18146
|
+
* @throws {RequiredError}
|
|
18147
|
+
* @memberof ClubsStaffApi
|
|
18148
|
+
*/
|
|
18149
|
+
public updateUserCreditsStaff(requestParameters: ClubsStaffApiUpdateUserCreditsStaffRequest, options?: RawAxiosRequestConfig) {
|
|
18150
|
+
return ClubsStaffApiFp(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18151
|
+
}
|
|
17795
18152
|
}
|
|
17796
18153
|
|
|
17797
18154
|
|
|
@@ -19051,6 +19408,64 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
19051
19408
|
options: localVarRequestOptions,
|
|
19052
19409
|
};
|
|
19053
19410
|
},
|
|
19411
|
+
/**
|
|
19412
|
+
* Get events for the day view (entire week)
|
|
19413
|
+
* @param {string} [clubId]
|
|
19414
|
+
* @param {string} [date]
|
|
19415
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
19416
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
19417
|
+
* @param {string} [sportId]
|
|
19418
|
+
* @param {*} [options] Override http request option.
|
|
19419
|
+
* @throws {RequiredError}
|
|
19420
|
+
*/
|
|
19421
|
+
getDailyEvents: async (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19422
|
+
const localVarPath = `/api/events/calendar/daily`;
|
|
19423
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19424
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19425
|
+
let baseOptions;
|
|
19426
|
+
if (configuration) {
|
|
19427
|
+
baseOptions = configuration.baseOptions;
|
|
19428
|
+
}
|
|
19429
|
+
|
|
19430
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19431
|
+
const localVarHeaderParameter = {} as any;
|
|
19432
|
+
const localVarQueryParameter = {} as any;
|
|
19433
|
+
|
|
19434
|
+
// authentication bearerAuth required
|
|
19435
|
+
// http bearer authentication required
|
|
19436
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19437
|
+
|
|
19438
|
+
if (clubId !== undefined) {
|
|
19439
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
19440
|
+
}
|
|
19441
|
+
|
|
19442
|
+
if (date !== undefined) {
|
|
19443
|
+
localVarQueryParameter['date'] = date;
|
|
19444
|
+
}
|
|
19445
|
+
|
|
19446
|
+
if (visibilityType !== undefined) {
|
|
19447
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
19448
|
+
}
|
|
19449
|
+
|
|
19450
|
+
if (type !== undefined) {
|
|
19451
|
+
localVarQueryParameter['type'] = type;
|
|
19452
|
+
}
|
|
19453
|
+
|
|
19454
|
+
if (sportId !== undefined) {
|
|
19455
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
19456
|
+
}
|
|
19457
|
+
|
|
19458
|
+
|
|
19459
|
+
|
|
19460
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19461
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19462
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19463
|
+
|
|
19464
|
+
return {
|
|
19465
|
+
url: toPathString(localVarUrlObj),
|
|
19466
|
+
options: localVarRequestOptions,
|
|
19467
|
+
};
|
|
19468
|
+
},
|
|
19054
19469
|
/**
|
|
19055
19470
|
* Get all events for a club (staff only)
|
|
19056
19471
|
* @param {*} [options] Override http request option.
|
|
@@ -19075,6 +19490,122 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
19075
19490
|
|
|
19076
19491
|
|
|
19077
19492
|
|
|
19493
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19495
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19496
|
+
|
|
19497
|
+
return {
|
|
19498
|
+
url: toPathString(localVarUrlObj),
|
|
19499
|
+
options: localVarRequestOptions,
|
|
19500
|
+
};
|
|
19501
|
+
},
|
|
19502
|
+
/**
|
|
19503
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
19504
|
+
* @param {string} [clubId]
|
|
19505
|
+
* @param {string} [date]
|
|
19506
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
19507
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
19508
|
+
* @param {string} [sportId]
|
|
19509
|
+
* @param {*} [options] Override http request option.
|
|
19510
|
+
* @throws {RequiredError}
|
|
19511
|
+
*/
|
|
19512
|
+
getMonthlyEvents: async (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19513
|
+
const localVarPath = `/api/events/calendar/monthly`;
|
|
19514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19515
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19516
|
+
let baseOptions;
|
|
19517
|
+
if (configuration) {
|
|
19518
|
+
baseOptions = configuration.baseOptions;
|
|
19519
|
+
}
|
|
19520
|
+
|
|
19521
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19522
|
+
const localVarHeaderParameter = {} as any;
|
|
19523
|
+
const localVarQueryParameter = {} as any;
|
|
19524
|
+
|
|
19525
|
+
// authentication bearerAuth required
|
|
19526
|
+
// http bearer authentication required
|
|
19527
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19528
|
+
|
|
19529
|
+
if (clubId !== undefined) {
|
|
19530
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
19531
|
+
}
|
|
19532
|
+
|
|
19533
|
+
if (date !== undefined) {
|
|
19534
|
+
localVarQueryParameter['date'] = date;
|
|
19535
|
+
}
|
|
19536
|
+
|
|
19537
|
+
if (visibilityType !== undefined) {
|
|
19538
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
19539
|
+
}
|
|
19540
|
+
|
|
19541
|
+
if (type !== undefined) {
|
|
19542
|
+
localVarQueryParameter['type'] = type;
|
|
19543
|
+
}
|
|
19544
|
+
|
|
19545
|
+
if (sportId !== undefined) {
|
|
19546
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
19547
|
+
}
|
|
19548
|
+
|
|
19549
|
+
|
|
19550
|
+
|
|
19551
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19552
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19553
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19554
|
+
|
|
19555
|
+
return {
|
|
19556
|
+
url: toPathString(localVarUrlObj),
|
|
19557
|
+
options: localVarRequestOptions,
|
|
19558
|
+
};
|
|
19559
|
+
},
|
|
19560
|
+
/**
|
|
19561
|
+
* Get events for the week view (30 day sliding window)
|
|
19562
|
+
* @param {string} [clubId]
|
|
19563
|
+
* @param {string} [date]
|
|
19564
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
19565
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
19566
|
+
* @param {string} [sportId]
|
|
19567
|
+
* @param {*} [options] Override http request option.
|
|
19568
|
+
* @throws {RequiredError}
|
|
19569
|
+
*/
|
|
19570
|
+
getWeeklyEvents: async (clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19571
|
+
const localVarPath = `/api/events/calendar/weekly`;
|
|
19572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19574
|
+
let baseOptions;
|
|
19575
|
+
if (configuration) {
|
|
19576
|
+
baseOptions = configuration.baseOptions;
|
|
19577
|
+
}
|
|
19578
|
+
|
|
19579
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19580
|
+
const localVarHeaderParameter = {} as any;
|
|
19581
|
+
const localVarQueryParameter = {} as any;
|
|
19582
|
+
|
|
19583
|
+
// authentication bearerAuth required
|
|
19584
|
+
// http bearer authentication required
|
|
19585
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19586
|
+
|
|
19587
|
+
if (clubId !== undefined) {
|
|
19588
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
19589
|
+
}
|
|
19590
|
+
|
|
19591
|
+
if (date !== undefined) {
|
|
19592
|
+
localVarQueryParameter['date'] = date;
|
|
19593
|
+
}
|
|
19594
|
+
|
|
19595
|
+
if (visibilityType !== undefined) {
|
|
19596
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
19597
|
+
}
|
|
19598
|
+
|
|
19599
|
+
if (type !== undefined) {
|
|
19600
|
+
localVarQueryParameter['type'] = type;
|
|
19601
|
+
}
|
|
19602
|
+
|
|
19603
|
+
if (sportId !== undefined) {
|
|
19604
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
19605
|
+
}
|
|
19606
|
+
|
|
19607
|
+
|
|
19608
|
+
|
|
19078
19609
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19079
19610
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19080
19611
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -19107,6 +19638,22 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
19107
19638
|
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.checkInEventParticipants']?.[localVarOperationServerIndex]?.url;
|
|
19108
19639
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19109
19640
|
},
|
|
19641
|
+
/**
|
|
19642
|
+
* Get events for the day view (entire week)
|
|
19643
|
+
* @param {string} [clubId]
|
|
19644
|
+
* @param {string} [date]
|
|
19645
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
19646
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
19647
|
+
* @param {string} [sportId]
|
|
19648
|
+
* @param {*} [options] Override http request option.
|
|
19649
|
+
* @throws {RequiredError}
|
|
19650
|
+
*/
|
|
19651
|
+
async getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
|
|
19652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
19653
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19654
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
|
|
19655
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19656
|
+
},
|
|
19110
19657
|
/**
|
|
19111
19658
|
* Get all events for a club (staff only)
|
|
19112
19659
|
* @param {*} [options] Override http request option.
|
|
@@ -19118,6 +19665,38 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
19118
19665
|
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
|
|
19119
19666
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19120
19667
|
},
|
|
19668
|
+
/**
|
|
19669
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
19670
|
+
* @param {string} [clubId]
|
|
19671
|
+
* @param {string} [date]
|
|
19672
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
19673
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
19674
|
+
* @param {string} [sportId]
|
|
19675
|
+
* @param {*} [options] Override http request option.
|
|
19676
|
+
* @throws {RequiredError}
|
|
19677
|
+
*/
|
|
19678
|
+
async getMonthlyEvents(clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
|
|
19679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
19680
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19681
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getMonthlyEvents']?.[localVarOperationServerIndex]?.url;
|
|
19682
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19683
|
+
},
|
|
19684
|
+
/**
|
|
19685
|
+
* Get events for the week view (30 day sliding window)
|
|
19686
|
+
* @param {string} [clubId]
|
|
19687
|
+
* @param {string} [date]
|
|
19688
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
19689
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
19690
|
+
* @param {string} [sportId]
|
|
19691
|
+
* @param {*} [options] Override http request option.
|
|
19692
|
+
* @throws {RequiredError}
|
|
19693
|
+
*/
|
|
19694
|
+
async getWeeklyEvents(clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
|
|
19695
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
19696
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19697
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getWeeklyEvents']?.[localVarOperationServerIndex]?.url;
|
|
19698
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19699
|
+
},
|
|
19121
19700
|
}
|
|
19122
19701
|
};
|
|
19123
19702
|
|
|
@@ -19137,6 +19716,15 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
19137
19716
|
checkInEventParticipants(requestParameters: EventsStaffApiCheckInEventParticipantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInEventParticipants200Response> {
|
|
19138
19717
|
return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
|
|
19139
19718
|
},
|
|
19719
|
+
/**
|
|
19720
|
+
* Get events for the day view (entire week)
|
|
19721
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
19722
|
+
* @param {*} [options] Override http request option.
|
|
19723
|
+
* @throws {RequiredError}
|
|
19724
|
+
*/
|
|
19725
|
+
getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
19726
|
+
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
19727
|
+
},
|
|
19140
19728
|
/**
|
|
19141
19729
|
* Get all events for a club (staff only)
|
|
19142
19730
|
* @param {*} [options] Override http request option.
|
|
@@ -19145,6 +19733,24 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
19145
19733
|
getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
19146
19734
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
19147
19735
|
},
|
|
19736
|
+
/**
|
|
19737
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
19738
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
19739
|
+
* @param {*} [options] Override http request option.
|
|
19740
|
+
* @throws {RequiredError}
|
|
19741
|
+
*/
|
|
19742
|
+
getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
19743
|
+
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
19744
|
+
},
|
|
19745
|
+
/**
|
|
19746
|
+
* Get events for the week view (30 day sliding window)
|
|
19747
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
19748
|
+
* @param {*} [options] Override http request option.
|
|
19749
|
+
* @throws {RequiredError}
|
|
19750
|
+
*/
|
|
19751
|
+
getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
19752
|
+
return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
19753
|
+
},
|
|
19148
19754
|
};
|
|
19149
19755
|
};
|
|
19150
19756
|
|
|
@@ -19169,6 +19775,132 @@ export interface EventsStaffApiCheckInEventParticipantsRequest {
|
|
|
19169
19775
|
readonly checkInEventParticipantsRequest: CheckInEventParticipantsRequest
|
|
19170
19776
|
}
|
|
19171
19777
|
|
|
19778
|
+
/**
|
|
19779
|
+
* Request parameters for getDailyEvents operation in EventsStaffApi.
|
|
19780
|
+
* @export
|
|
19781
|
+
* @interface EventsStaffApiGetDailyEventsRequest
|
|
19782
|
+
*/
|
|
19783
|
+
export interface EventsStaffApiGetDailyEventsRequest {
|
|
19784
|
+
/**
|
|
19785
|
+
*
|
|
19786
|
+
* @type {string}
|
|
19787
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19788
|
+
*/
|
|
19789
|
+
readonly clubId?: string
|
|
19790
|
+
|
|
19791
|
+
/**
|
|
19792
|
+
*
|
|
19793
|
+
* @type {string}
|
|
19794
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19795
|
+
*/
|
|
19796
|
+
readonly date?: string
|
|
19797
|
+
|
|
19798
|
+
/**
|
|
19799
|
+
*
|
|
19800
|
+
* @type {'public' | 'private' | 'invitation'}
|
|
19801
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19802
|
+
*/
|
|
19803
|
+
readonly visibilityType?: GetDailyEventsVisibilityTypeEnum
|
|
19804
|
+
|
|
19805
|
+
/**
|
|
19806
|
+
*
|
|
19807
|
+
* @type {'event' | 'closure'}
|
|
19808
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19809
|
+
*/
|
|
19810
|
+
readonly type?: GetDailyEventsTypeEnum
|
|
19811
|
+
|
|
19812
|
+
/**
|
|
19813
|
+
*
|
|
19814
|
+
* @type {string}
|
|
19815
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19816
|
+
*/
|
|
19817
|
+
readonly sportId?: string
|
|
19818
|
+
}
|
|
19819
|
+
|
|
19820
|
+
/**
|
|
19821
|
+
* Request parameters for getMonthlyEvents operation in EventsStaffApi.
|
|
19822
|
+
* @export
|
|
19823
|
+
* @interface EventsStaffApiGetMonthlyEventsRequest
|
|
19824
|
+
*/
|
|
19825
|
+
export interface EventsStaffApiGetMonthlyEventsRequest {
|
|
19826
|
+
/**
|
|
19827
|
+
*
|
|
19828
|
+
* @type {string}
|
|
19829
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19830
|
+
*/
|
|
19831
|
+
readonly clubId?: string
|
|
19832
|
+
|
|
19833
|
+
/**
|
|
19834
|
+
*
|
|
19835
|
+
* @type {string}
|
|
19836
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19837
|
+
*/
|
|
19838
|
+
readonly date?: string
|
|
19839
|
+
|
|
19840
|
+
/**
|
|
19841
|
+
*
|
|
19842
|
+
* @type {'public' | 'private' | 'invitation'}
|
|
19843
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19844
|
+
*/
|
|
19845
|
+
readonly visibilityType?: GetMonthlyEventsVisibilityTypeEnum
|
|
19846
|
+
|
|
19847
|
+
/**
|
|
19848
|
+
*
|
|
19849
|
+
* @type {'event' | 'closure'}
|
|
19850
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19851
|
+
*/
|
|
19852
|
+
readonly type?: GetMonthlyEventsTypeEnum
|
|
19853
|
+
|
|
19854
|
+
/**
|
|
19855
|
+
*
|
|
19856
|
+
* @type {string}
|
|
19857
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19858
|
+
*/
|
|
19859
|
+
readonly sportId?: string
|
|
19860
|
+
}
|
|
19861
|
+
|
|
19862
|
+
/**
|
|
19863
|
+
* Request parameters for getWeeklyEvents operation in EventsStaffApi.
|
|
19864
|
+
* @export
|
|
19865
|
+
* @interface EventsStaffApiGetWeeklyEventsRequest
|
|
19866
|
+
*/
|
|
19867
|
+
export interface EventsStaffApiGetWeeklyEventsRequest {
|
|
19868
|
+
/**
|
|
19869
|
+
*
|
|
19870
|
+
* @type {string}
|
|
19871
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19872
|
+
*/
|
|
19873
|
+
readonly clubId?: string
|
|
19874
|
+
|
|
19875
|
+
/**
|
|
19876
|
+
*
|
|
19877
|
+
* @type {string}
|
|
19878
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19879
|
+
*/
|
|
19880
|
+
readonly date?: string
|
|
19881
|
+
|
|
19882
|
+
/**
|
|
19883
|
+
*
|
|
19884
|
+
* @type {'public' | 'private' | 'invitation'}
|
|
19885
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19886
|
+
*/
|
|
19887
|
+
readonly visibilityType?: GetWeeklyEventsVisibilityTypeEnum
|
|
19888
|
+
|
|
19889
|
+
/**
|
|
19890
|
+
*
|
|
19891
|
+
* @type {'event' | 'closure'}
|
|
19892
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19893
|
+
*/
|
|
19894
|
+
readonly type?: GetWeeklyEventsTypeEnum
|
|
19895
|
+
|
|
19896
|
+
/**
|
|
19897
|
+
*
|
|
19898
|
+
* @type {string}
|
|
19899
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19900
|
+
*/
|
|
19901
|
+
readonly sportId?: string
|
|
19902
|
+
}
|
|
19903
|
+
|
|
19172
19904
|
/**
|
|
19173
19905
|
* EventsStaffApi - object-oriented interface
|
|
19174
19906
|
* @export
|
|
@@ -19187,6 +19919,17 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
19187
19919
|
return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19188
19920
|
}
|
|
19189
19921
|
|
|
19922
|
+
/**
|
|
19923
|
+
* Get events for the day view (entire week)
|
|
19924
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
19925
|
+
* @param {*} [options] Override http request option.
|
|
19926
|
+
* @throws {RequiredError}
|
|
19927
|
+
* @memberof EventsStaffApi
|
|
19928
|
+
*/
|
|
19929
|
+
public getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
19930
|
+
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
19931
|
+
}
|
|
19932
|
+
|
|
19190
19933
|
/**
|
|
19191
19934
|
* Get all events for a club (staff only)
|
|
19192
19935
|
* @param {*} [options] Override http request option.
|
|
@@ -19196,8 +19939,81 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
19196
19939
|
public getEventsByClub(options?: RawAxiosRequestConfig) {
|
|
19197
19940
|
return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
19198
19941
|
}
|
|
19942
|
+
|
|
19943
|
+
/**
|
|
19944
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
19945
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
19946
|
+
* @param {*} [options] Override http request option.
|
|
19947
|
+
* @throws {RequiredError}
|
|
19948
|
+
* @memberof EventsStaffApi
|
|
19949
|
+
*/
|
|
19950
|
+
public getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
19951
|
+
return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
19952
|
+
}
|
|
19953
|
+
|
|
19954
|
+
/**
|
|
19955
|
+
* Get events for the week view (30 day sliding window)
|
|
19956
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
19957
|
+
* @param {*} [options] Override http request option.
|
|
19958
|
+
* @throws {RequiredError}
|
|
19959
|
+
* @memberof EventsStaffApi
|
|
19960
|
+
*/
|
|
19961
|
+
public getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
19962
|
+
return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
19963
|
+
}
|
|
19199
19964
|
}
|
|
19200
19965
|
|
|
19966
|
+
/**
|
|
19967
|
+
* @export
|
|
19968
|
+
*/
|
|
19969
|
+
export const GetDailyEventsVisibilityTypeEnum = {
|
|
19970
|
+
Public: 'public',
|
|
19971
|
+
Private: 'private',
|
|
19972
|
+
Invitation: 'invitation'
|
|
19973
|
+
} as const;
|
|
19974
|
+
export type GetDailyEventsVisibilityTypeEnum = typeof GetDailyEventsVisibilityTypeEnum[keyof typeof GetDailyEventsVisibilityTypeEnum];
|
|
19975
|
+
/**
|
|
19976
|
+
* @export
|
|
19977
|
+
*/
|
|
19978
|
+
export const GetDailyEventsTypeEnum = {
|
|
19979
|
+
Event: 'event',
|
|
19980
|
+
Closure: 'closure'
|
|
19981
|
+
} as const;
|
|
19982
|
+
export type GetDailyEventsTypeEnum = typeof GetDailyEventsTypeEnum[keyof typeof GetDailyEventsTypeEnum];
|
|
19983
|
+
/**
|
|
19984
|
+
* @export
|
|
19985
|
+
*/
|
|
19986
|
+
export const GetMonthlyEventsVisibilityTypeEnum = {
|
|
19987
|
+
Public: 'public',
|
|
19988
|
+
Private: 'private',
|
|
19989
|
+
Invitation: 'invitation'
|
|
19990
|
+
} as const;
|
|
19991
|
+
export type GetMonthlyEventsVisibilityTypeEnum = typeof GetMonthlyEventsVisibilityTypeEnum[keyof typeof GetMonthlyEventsVisibilityTypeEnum];
|
|
19992
|
+
/**
|
|
19993
|
+
* @export
|
|
19994
|
+
*/
|
|
19995
|
+
export const GetMonthlyEventsTypeEnum = {
|
|
19996
|
+
Event: 'event',
|
|
19997
|
+
Closure: 'closure'
|
|
19998
|
+
} as const;
|
|
19999
|
+
export type GetMonthlyEventsTypeEnum = typeof GetMonthlyEventsTypeEnum[keyof typeof GetMonthlyEventsTypeEnum];
|
|
20000
|
+
/**
|
|
20001
|
+
* @export
|
|
20002
|
+
*/
|
|
20003
|
+
export const GetWeeklyEventsVisibilityTypeEnum = {
|
|
20004
|
+
Public: 'public',
|
|
20005
|
+
Private: 'private',
|
|
20006
|
+
Invitation: 'invitation'
|
|
20007
|
+
} as const;
|
|
20008
|
+
export type GetWeeklyEventsVisibilityTypeEnum = typeof GetWeeklyEventsVisibilityTypeEnum[keyof typeof GetWeeklyEventsVisibilityTypeEnum];
|
|
20009
|
+
/**
|
|
20010
|
+
* @export
|
|
20011
|
+
*/
|
|
20012
|
+
export const GetWeeklyEventsTypeEnum = {
|
|
20013
|
+
Event: 'event',
|
|
20014
|
+
Closure: 'closure'
|
|
20015
|
+
} as const;
|
|
20016
|
+
export type GetWeeklyEventsTypeEnum = typeof GetWeeklyEventsTypeEnum[keyof typeof GetWeeklyEventsTypeEnum];
|
|
19201
20017
|
|
|
19202
20018
|
|
|
19203
20019
|
/**
|