@tennac-booking/sdk 1.0.113 → 1.0.115
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 -0
- package/README.md +12 -2
- package/api.ts +840 -12
- package/dist/api.d.ts +552 -4
- package/dist/api.js +452 -6
- package/dist/esm/api.d.ts +552 -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 +5 -1
- package/docs/EventResponse.md +2 -0
- 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}
|
|
@@ -3483,6 +3647,12 @@ export interface CreateEventRequest {
|
|
|
3483
3647
|
* @memberof CreateEventRequest
|
|
3484
3648
|
*/
|
|
3485
3649
|
'playerLimit'?: number;
|
|
3650
|
+
/**
|
|
3651
|
+
*
|
|
3652
|
+
* @type {number}
|
|
3653
|
+
* @memberof CreateEventRequest
|
|
3654
|
+
*/
|
|
3655
|
+
'playersPerTeam'?: number;
|
|
3486
3656
|
/**
|
|
3487
3657
|
*
|
|
3488
3658
|
* @type {number}
|
|
@@ -4155,6 +4325,12 @@ export interface EventResponse {
|
|
|
4155
4325
|
* @memberof EventResponse
|
|
4156
4326
|
*/
|
|
4157
4327
|
'teamLimit'?: number;
|
|
4328
|
+
/**
|
|
4329
|
+
*
|
|
4330
|
+
* @type {number}
|
|
4331
|
+
* @memberof EventResponse
|
|
4332
|
+
*/
|
|
4333
|
+
'playersPerTeam'?: number;
|
|
4158
4334
|
/**
|
|
4159
4335
|
*
|
|
4160
4336
|
* @type {number}
|
|
@@ -9250,6 +9426,19 @@ export interface UpdateSubscriptionPlanForClub200Response {
|
|
|
9250
9426
|
*/
|
|
9251
9427
|
'price': any;
|
|
9252
9428
|
}
|
|
9429
|
+
/**
|
|
9430
|
+
*
|
|
9431
|
+
* @export
|
|
9432
|
+
* @interface UpdateUserCreditsRequest
|
|
9433
|
+
*/
|
|
9434
|
+
export interface UpdateUserCreditsRequest {
|
|
9435
|
+
/**
|
|
9436
|
+
* Variation du crédit à appliquer, exprimée en centimes. Peut être négative pour retirer du crédit.
|
|
9437
|
+
* @type {number}
|
|
9438
|
+
* @memberof UpdateUserCreditsRequest
|
|
9439
|
+
*/
|
|
9440
|
+
'deltaInCents': number;
|
|
9441
|
+
}
|
|
9253
9442
|
/**
|
|
9254
9443
|
*
|
|
9255
9444
|
* @export
|
|
@@ -13625,7 +13814,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
|
|
|
13625
13814
|
baseOptions = configuration.baseOptions;
|
|
13626
13815
|
}
|
|
13627
13816
|
|
|
13628
|
-
const localVarRequestOptions = { method: '
|
|
13817
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
13629
13818
|
const localVarHeaderParameter = {} as any;
|
|
13630
13819
|
const localVarQueryParameter = {} as any;
|
|
13631
13820
|
|
|
@@ -13703,7 +13892,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
|
|
|
13703
13892
|
baseOptions = configuration.baseOptions;
|
|
13704
13893
|
}
|
|
13705
13894
|
|
|
13706
|
-
const localVarRequestOptions = { method: '
|
|
13895
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
13707
13896
|
const localVarHeaderParameter = {} as any;
|
|
13708
13897
|
const localVarQueryParameter = {} as any;
|
|
13709
13898
|
|
|
@@ -15651,6 +15840,43 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
|
|
|
15651
15840
|
|
|
15652
15841
|
|
|
15653
15842
|
|
|
15843
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15845
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15846
|
+
|
|
15847
|
+
return {
|
|
15848
|
+
url: toPathString(localVarUrlObj),
|
|
15849
|
+
options: localVarRequestOptions,
|
|
15850
|
+
};
|
|
15851
|
+
},
|
|
15852
|
+
/**
|
|
15853
|
+
* Supprime un membre d\'un club
|
|
15854
|
+
* @param {string} userId
|
|
15855
|
+
* @param {*} [options] Override http request option.
|
|
15856
|
+
* @throws {RequiredError}
|
|
15857
|
+
*/
|
|
15858
|
+
deleteClubMember: async (userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15859
|
+
// verify required parameter 'userId' is not null or undefined
|
|
15860
|
+
assertParamExists('deleteClubMember', 'userId', userId)
|
|
15861
|
+
const localVarPath = `/api/clubs/members/{userId}`
|
|
15862
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
15863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15864
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15865
|
+
let baseOptions;
|
|
15866
|
+
if (configuration) {
|
|
15867
|
+
baseOptions = configuration.baseOptions;
|
|
15868
|
+
}
|
|
15869
|
+
|
|
15870
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
15871
|
+
const localVarHeaderParameter = {} as any;
|
|
15872
|
+
const localVarQueryParameter = {} as any;
|
|
15873
|
+
|
|
15874
|
+
// authentication bearerAuth required
|
|
15875
|
+
// http bearer authentication required
|
|
15876
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15877
|
+
|
|
15878
|
+
|
|
15879
|
+
|
|
15654
15880
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15655
15881
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15656
15882
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -16262,6 +16488,18 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
|
|
|
16262
16488
|
const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteActuality']?.[localVarOperationServerIndex]?.url;
|
|
16263
16489
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16264
16490
|
},
|
|
16491
|
+
/**
|
|
16492
|
+
* Supprime un membre d\'un club
|
|
16493
|
+
* @param {string} userId
|
|
16494
|
+
* @param {*} [options] Override http request option.
|
|
16495
|
+
* @throws {RequiredError}
|
|
16496
|
+
*/
|
|
16497
|
+
async deleteClubMember(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddClubMember201Response>> {
|
|
16498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClubMember(userId, options);
|
|
16499
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16500
|
+
const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteClubMember']?.[localVarOperationServerIndex]?.url;
|
|
16501
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16502
|
+
},
|
|
16265
16503
|
/**
|
|
16266
16504
|
* Supprime un terrain et ses créneaux futurs
|
|
16267
16505
|
* @param {string} courtId
|
|
@@ -16494,6 +16732,15 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
|
|
|
16494
16732
|
deleteActuality(requestParameters: ClubsManagerApiDeleteActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
16495
16733
|
return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
|
|
16496
16734
|
},
|
|
16735
|
+
/**
|
|
16736
|
+
* Supprime un membre d\'un club
|
|
16737
|
+
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
16738
|
+
* @param {*} [options] Override http request option.
|
|
16739
|
+
* @throws {RequiredError}
|
|
16740
|
+
*/
|
|
16741
|
+
deleteClubMember(requestParameters: ClubsManagerApiDeleteClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddClubMember201Response> {
|
|
16742
|
+
return localVarFp.deleteClubMember(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
16743
|
+
},
|
|
16497
16744
|
/**
|
|
16498
16745
|
* Supprime un terrain et ses créneaux futurs
|
|
16499
16746
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -16718,6 +16965,20 @@ export interface ClubsManagerApiDeleteActualityRequest {
|
|
|
16718
16965
|
readonly actualityId: string
|
|
16719
16966
|
}
|
|
16720
16967
|
|
|
16968
|
+
/**
|
|
16969
|
+
* Request parameters for deleteClubMember operation in ClubsManagerApi.
|
|
16970
|
+
* @export
|
|
16971
|
+
* @interface ClubsManagerApiDeleteClubMemberRequest
|
|
16972
|
+
*/
|
|
16973
|
+
export interface ClubsManagerApiDeleteClubMemberRequest {
|
|
16974
|
+
/**
|
|
16975
|
+
*
|
|
16976
|
+
* @type {string}
|
|
16977
|
+
* @memberof ClubsManagerApiDeleteClubMember
|
|
16978
|
+
*/
|
|
16979
|
+
readonly userId: string
|
|
16980
|
+
}
|
|
16981
|
+
|
|
16721
16982
|
/**
|
|
16722
16983
|
* Request parameters for deleteCourt operation in ClubsManagerApi.
|
|
16723
16984
|
* @export
|
|
@@ -16998,6 +17259,17 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
16998
17259
|
return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
|
|
16999
17260
|
}
|
|
17000
17261
|
|
|
17262
|
+
/**
|
|
17263
|
+
* Supprime un membre d\'un club
|
|
17264
|
+
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
17265
|
+
* @param {*} [options] Override http request option.
|
|
17266
|
+
* @throws {RequiredError}
|
|
17267
|
+
* @memberof ClubsManagerApi
|
|
17268
|
+
*/
|
|
17269
|
+
public deleteClubMember(requestParameters: ClubsManagerApiDeleteClubMemberRequest, options?: RawAxiosRequestConfig) {
|
|
17270
|
+
return ClubsManagerApiFp(this.configuration).deleteClubMember(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
17271
|
+
}
|
|
17272
|
+
|
|
17001
17273
|
/**
|
|
17002
17274
|
* Supprime un terrain et ses créneaux futurs
|
|
17003
17275
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -17455,6 +17727,49 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
|
|
|
17455
17727
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17456
17728
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17457
17729
|
|
|
17730
|
+
return {
|
|
17731
|
+
url: toPathString(localVarUrlObj),
|
|
17732
|
+
options: localVarRequestOptions,
|
|
17733
|
+
};
|
|
17734
|
+
},
|
|
17735
|
+
/**
|
|
17736
|
+
*
|
|
17737
|
+
* @param {string} id
|
|
17738
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
17739
|
+
* @param {*} [options] Override http request option.
|
|
17740
|
+
* @throws {RequiredError}
|
|
17741
|
+
*/
|
|
17742
|
+
updateUserCreditsStaff: async (id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17743
|
+
// verify required parameter 'id' is not null or undefined
|
|
17744
|
+
assertParamExists('updateUserCreditsStaff', 'id', id)
|
|
17745
|
+
// verify required parameter 'updateUserCreditsRequest' is not null or undefined
|
|
17746
|
+
assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest)
|
|
17747
|
+
const localVarPath = `/api/clubs/staff/user-credits/{id}`
|
|
17748
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
17749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17750
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17751
|
+
let baseOptions;
|
|
17752
|
+
if (configuration) {
|
|
17753
|
+
baseOptions = configuration.baseOptions;
|
|
17754
|
+
}
|
|
17755
|
+
|
|
17756
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
17757
|
+
const localVarHeaderParameter = {} as any;
|
|
17758
|
+
const localVarQueryParameter = {} as any;
|
|
17759
|
+
|
|
17760
|
+
// authentication bearerAuth required
|
|
17761
|
+
// http bearer authentication required
|
|
17762
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17763
|
+
|
|
17764
|
+
|
|
17765
|
+
|
|
17766
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17767
|
+
|
|
17768
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17770
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17771
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration)
|
|
17772
|
+
|
|
17458
17773
|
return {
|
|
17459
17774
|
url: toPathString(localVarUrlObj),
|
|
17460
17775
|
options: localVarRequestOptions,
|
|
@@ -17572,12 +17887,25 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
|
|
|
17572
17887
|
const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getUserProfileStaff']?.[localVarOperationServerIndex]?.url;
|
|
17573
17888
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17574
17889
|
},
|
|
17575
|
-
|
|
17576
|
-
|
|
17577
|
-
|
|
17578
|
-
|
|
17579
|
-
*
|
|
17580
|
-
|
|
17890
|
+
/**
|
|
17891
|
+
*
|
|
17892
|
+
* @param {string} id
|
|
17893
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
17894
|
+
* @param {*} [options] Override http request option.
|
|
17895
|
+
* @throws {RequiredError}
|
|
17896
|
+
*/
|
|
17897
|
+
async updateUserCreditsStaff(id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffUserProfileResponse>> {
|
|
17898
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
|
|
17899
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17900
|
+
const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']?.[localVarOperationServerIndex]?.url;
|
|
17901
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17902
|
+
},
|
|
17903
|
+
}
|
|
17904
|
+
};
|
|
17905
|
+
|
|
17906
|
+
/**
|
|
17907
|
+
* ClubsStaffApi - factory interface
|
|
17908
|
+
* @export
|
|
17581
17909
|
*/
|
|
17582
17910
|
export const ClubsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
17583
17911
|
const localVarFp = ClubsStaffApiFp(configuration)
|
|
@@ -17656,6 +17984,15 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
|
|
|
17656
17984
|
getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
|
|
17657
17985
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
17658
17986
|
},
|
|
17987
|
+
/**
|
|
17988
|
+
*
|
|
17989
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
17990
|
+
* @param {*} [options] Override http request option.
|
|
17991
|
+
* @throws {RequiredError}
|
|
17992
|
+
*/
|
|
17993
|
+
updateUserCreditsStaff(requestParameters: ClubsStaffApiUpdateUserCreditsStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
|
|
17994
|
+
return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
|
|
17995
|
+
},
|
|
17659
17996
|
};
|
|
17660
17997
|
};
|
|
17661
17998
|
|
|
@@ -17694,6 +18031,27 @@ export interface ClubsStaffApiGetUserProfileStaffRequest {
|
|
|
17694
18031
|
readonly id: string
|
|
17695
18032
|
}
|
|
17696
18033
|
|
|
18034
|
+
/**
|
|
18035
|
+
* Request parameters for updateUserCreditsStaff operation in ClubsStaffApi.
|
|
18036
|
+
* @export
|
|
18037
|
+
* @interface ClubsStaffApiUpdateUserCreditsStaffRequest
|
|
18038
|
+
*/
|
|
18039
|
+
export interface ClubsStaffApiUpdateUserCreditsStaffRequest {
|
|
18040
|
+
/**
|
|
18041
|
+
*
|
|
18042
|
+
* @type {string}
|
|
18043
|
+
* @memberof ClubsStaffApiUpdateUserCreditsStaff
|
|
18044
|
+
*/
|
|
18045
|
+
readonly id: string
|
|
18046
|
+
|
|
18047
|
+
/**
|
|
18048
|
+
*
|
|
18049
|
+
* @type {UpdateUserCreditsRequest}
|
|
18050
|
+
* @memberof ClubsStaffApiUpdateUserCreditsStaff
|
|
18051
|
+
*/
|
|
18052
|
+
readonly updateUserCreditsRequest: UpdateUserCreditsRequest
|
|
18053
|
+
}
|
|
18054
|
+
|
|
17697
18055
|
/**
|
|
17698
18056
|
* ClubsStaffApi - object-oriented interface
|
|
17699
18057
|
* @export
|
|
@@ -17792,6 +18150,17 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
17792
18150
|
public getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig) {
|
|
17793
18151
|
return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
17794
18152
|
}
|
|
18153
|
+
|
|
18154
|
+
/**
|
|
18155
|
+
*
|
|
18156
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
18157
|
+
* @param {*} [options] Override http request option.
|
|
18158
|
+
* @throws {RequiredError}
|
|
18159
|
+
* @memberof ClubsStaffApi
|
|
18160
|
+
*/
|
|
18161
|
+
public updateUserCreditsStaff(requestParameters: ClubsStaffApiUpdateUserCreditsStaffRequest, options?: RawAxiosRequestConfig) {
|
|
18162
|
+
return ClubsStaffApiFp(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18163
|
+
}
|
|
17795
18164
|
}
|
|
17796
18165
|
|
|
17797
18166
|
|
|
@@ -19051,6 +19420,64 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
19051
19420
|
options: localVarRequestOptions,
|
|
19052
19421
|
};
|
|
19053
19422
|
},
|
|
19423
|
+
/**
|
|
19424
|
+
* Get events for the day view (entire week)
|
|
19425
|
+
* @param {string} [clubId]
|
|
19426
|
+
* @param {string} [date]
|
|
19427
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
19428
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
19429
|
+
* @param {string} [sportId]
|
|
19430
|
+
* @param {*} [options] Override http request option.
|
|
19431
|
+
* @throws {RequiredError}
|
|
19432
|
+
*/
|
|
19433
|
+
getDailyEvents: async (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19434
|
+
const localVarPath = `/api/events/calendar/daily`;
|
|
19435
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19436
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19437
|
+
let baseOptions;
|
|
19438
|
+
if (configuration) {
|
|
19439
|
+
baseOptions = configuration.baseOptions;
|
|
19440
|
+
}
|
|
19441
|
+
|
|
19442
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19443
|
+
const localVarHeaderParameter = {} as any;
|
|
19444
|
+
const localVarQueryParameter = {} as any;
|
|
19445
|
+
|
|
19446
|
+
// authentication bearerAuth required
|
|
19447
|
+
// http bearer authentication required
|
|
19448
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19449
|
+
|
|
19450
|
+
if (clubId !== undefined) {
|
|
19451
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
19452
|
+
}
|
|
19453
|
+
|
|
19454
|
+
if (date !== undefined) {
|
|
19455
|
+
localVarQueryParameter['date'] = date;
|
|
19456
|
+
}
|
|
19457
|
+
|
|
19458
|
+
if (visibilityType !== undefined) {
|
|
19459
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
19460
|
+
}
|
|
19461
|
+
|
|
19462
|
+
if (type !== undefined) {
|
|
19463
|
+
localVarQueryParameter['type'] = type;
|
|
19464
|
+
}
|
|
19465
|
+
|
|
19466
|
+
if (sportId !== undefined) {
|
|
19467
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
19468
|
+
}
|
|
19469
|
+
|
|
19470
|
+
|
|
19471
|
+
|
|
19472
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19473
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19474
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19475
|
+
|
|
19476
|
+
return {
|
|
19477
|
+
url: toPathString(localVarUrlObj),
|
|
19478
|
+
options: localVarRequestOptions,
|
|
19479
|
+
};
|
|
19480
|
+
},
|
|
19054
19481
|
/**
|
|
19055
19482
|
* Get all events for a club (staff only)
|
|
19056
19483
|
* @param {*} [options] Override http request option.
|
|
@@ -19075,6 +19502,122 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
19075
19502
|
|
|
19076
19503
|
|
|
19077
19504
|
|
|
19505
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19507
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19508
|
+
|
|
19509
|
+
return {
|
|
19510
|
+
url: toPathString(localVarUrlObj),
|
|
19511
|
+
options: localVarRequestOptions,
|
|
19512
|
+
};
|
|
19513
|
+
},
|
|
19514
|
+
/**
|
|
19515
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
19516
|
+
* @param {string} [clubId]
|
|
19517
|
+
* @param {string} [date]
|
|
19518
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
19519
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
19520
|
+
* @param {string} [sportId]
|
|
19521
|
+
* @param {*} [options] Override http request option.
|
|
19522
|
+
* @throws {RequiredError}
|
|
19523
|
+
*/
|
|
19524
|
+
getMonthlyEvents: async (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19525
|
+
const localVarPath = `/api/events/calendar/monthly`;
|
|
19526
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19527
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19528
|
+
let baseOptions;
|
|
19529
|
+
if (configuration) {
|
|
19530
|
+
baseOptions = configuration.baseOptions;
|
|
19531
|
+
}
|
|
19532
|
+
|
|
19533
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19534
|
+
const localVarHeaderParameter = {} as any;
|
|
19535
|
+
const localVarQueryParameter = {} as any;
|
|
19536
|
+
|
|
19537
|
+
// authentication bearerAuth required
|
|
19538
|
+
// http bearer authentication required
|
|
19539
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19540
|
+
|
|
19541
|
+
if (clubId !== undefined) {
|
|
19542
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
19543
|
+
}
|
|
19544
|
+
|
|
19545
|
+
if (date !== undefined) {
|
|
19546
|
+
localVarQueryParameter['date'] = date;
|
|
19547
|
+
}
|
|
19548
|
+
|
|
19549
|
+
if (visibilityType !== undefined) {
|
|
19550
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
19551
|
+
}
|
|
19552
|
+
|
|
19553
|
+
if (type !== undefined) {
|
|
19554
|
+
localVarQueryParameter['type'] = type;
|
|
19555
|
+
}
|
|
19556
|
+
|
|
19557
|
+
if (sportId !== undefined) {
|
|
19558
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
19559
|
+
}
|
|
19560
|
+
|
|
19561
|
+
|
|
19562
|
+
|
|
19563
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19564
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19565
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19566
|
+
|
|
19567
|
+
return {
|
|
19568
|
+
url: toPathString(localVarUrlObj),
|
|
19569
|
+
options: localVarRequestOptions,
|
|
19570
|
+
};
|
|
19571
|
+
},
|
|
19572
|
+
/**
|
|
19573
|
+
* Get events for the week view (30 day sliding window)
|
|
19574
|
+
* @param {string} [clubId]
|
|
19575
|
+
* @param {string} [date]
|
|
19576
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
19577
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
19578
|
+
* @param {string} [sportId]
|
|
19579
|
+
* @param {*} [options] Override http request option.
|
|
19580
|
+
* @throws {RequiredError}
|
|
19581
|
+
*/
|
|
19582
|
+
getWeeklyEvents: async (clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19583
|
+
const localVarPath = `/api/events/calendar/weekly`;
|
|
19584
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19585
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19586
|
+
let baseOptions;
|
|
19587
|
+
if (configuration) {
|
|
19588
|
+
baseOptions = configuration.baseOptions;
|
|
19589
|
+
}
|
|
19590
|
+
|
|
19591
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19592
|
+
const localVarHeaderParameter = {} as any;
|
|
19593
|
+
const localVarQueryParameter = {} as any;
|
|
19594
|
+
|
|
19595
|
+
// authentication bearerAuth required
|
|
19596
|
+
// http bearer authentication required
|
|
19597
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19598
|
+
|
|
19599
|
+
if (clubId !== undefined) {
|
|
19600
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
19601
|
+
}
|
|
19602
|
+
|
|
19603
|
+
if (date !== undefined) {
|
|
19604
|
+
localVarQueryParameter['date'] = date;
|
|
19605
|
+
}
|
|
19606
|
+
|
|
19607
|
+
if (visibilityType !== undefined) {
|
|
19608
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
19609
|
+
}
|
|
19610
|
+
|
|
19611
|
+
if (type !== undefined) {
|
|
19612
|
+
localVarQueryParameter['type'] = type;
|
|
19613
|
+
}
|
|
19614
|
+
|
|
19615
|
+
if (sportId !== undefined) {
|
|
19616
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
19617
|
+
}
|
|
19618
|
+
|
|
19619
|
+
|
|
19620
|
+
|
|
19078
19621
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19079
19622
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19080
19623
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -19107,6 +19650,22 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
19107
19650
|
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.checkInEventParticipants']?.[localVarOperationServerIndex]?.url;
|
|
19108
19651
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19109
19652
|
},
|
|
19653
|
+
/**
|
|
19654
|
+
* Get events for the day view (entire week)
|
|
19655
|
+
* @param {string} [clubId]
|
|
19656
|
+
* @param {string} [date]
|
|
19657
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
19658
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
19659
|
+
* @param {string} [sportId]
|
|
19660
|
+
* @param {*} [options] Override http request option.
|
|
19661
|
+
* @throws {RequiredError}
|
|
19662
|
+
*/
|
|
19663
|
+
async getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
|
|
19664
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
19665
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19666
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
|
|
19667
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19668
|
+
},
|
|
19110
19669
|
/**
|
|
19111
19670
|
* Get all events for a club (staff only)
|
|
19112
19671
|
* @param {*} [options] Override http request option.
|
|
@@ -19118,6 +19677,38 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
19118
19677
|
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
|
|
19119
19678
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19120
19679
|
},
|
|
19680
|
+
/**
|
|
19681
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
19682
|
+
* @param {string} [clubId]
|
|
19683
|
+
* @param {string} [date]
|
|
19684
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
19685
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
19686
|
+
* @param {string} [sportId]
|
|
19687
|
+
* @param {*} [options] Override http request option.
|
|
19688
|
+
* @throws {RequiredError}
|
|
19689
|
+
*/
|
|
19690
|
+
async getMonthlyEvents(clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
|
|
19691
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
19692
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19693
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getMonthlyEvents']?.[localVarOperationServerIndex]?.url;
|
|
19694
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19695
|
+
},
|
|
19696
|
+
/**
|
|
19697
|
+
* Get events for the week view (30 day sliding window)
|
|
19698
|
+
* @param {string} [clubId]
|
|
19699
|
+
* @param {string} [date]
|
|
19700
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
19701
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
19702
|
+
* @param {string} [sportId]
|
|
19703
|
+
* @param {*} [options] Override http request option.
|
|
19704
|
+
* @throws {RequiredError}
|
|
19705
|
+
*/
|
|
19706
|
+
async getWeeklyEvents(clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
|
|
19707
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
19708
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19709
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getWeeklyEvents']?.[localVarOperationServerIndex]?.url;
|
|
19710
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19711
|
+
},
|
|
19121
19712
|
}
|
|
19122
19713
|
};
|
|
19123
19714
|
|
|
@@ -19137,6 +19728,15 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
19137
19728
|
checkInEventParticipants(requestParameters: EventsStaffApiCheckInEventParticipantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInEventParticipants200Response> {
|
|
19138
19729
|
return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
|
|
19139
19730
|
},
|
|
19731
|
+
/**
|
|
19732
|
+
* Get events for the day view (entire week)
|
|
19733
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
19734
|
+
* @param {*} [options] Override http request option.
|
|
19735
|
+
* @throws {RequiredError}
|
|
19736
|
+
*/
|
|
19737
|
+
getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
19738
|
+
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
19739
|
+
},
|
|
19140
19740
|
/**
|
|
19141
19741
|
* Get all events for a club (staff only)
|
|
19142
19742
|
* @param {*} [options] Override http request option.
|
|
@@ -19145,6 +19745,24 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
19145
19745
|
getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
19146
19746
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
19147
19747
|
},
|
|
19748
|
+
/**
|
|
19749
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
19750
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
19751
|
+
* @param {*} [options] Override http request option.
|
|
19752
|
+
* @throws {RequiredError}
|
|
19753
|
+
*/
|
|
19754
|
+
getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
19755
|
+
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
19756
|
+
},
|
|
19757
|
+
/**
|
|
19758
|
+
* Get events for the week view (30 day sliding window)
|
|
19759
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
19760
|
+
* @param {*} [options] Override http request option.
|
|
19761
|
+
* @throws {RequiredError}
|
|
19762
|
+
*/
|
|
19763
|
+
getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
19764
|
+
return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
19765
|
+
},
|
|
19148
19766
|
};
|
|
19149
19767
|
};
|
|
19150
19768
|
|
|
@@ -19169,6 +19787,132 @@ export interface EventsStaffApiCheckInEventParticipantsRequest {
|
|
|
19169
19787
|
readonly checkInEventParticipantsRequest: CheckInEventParticipantsRequest
|
|
19170
19788
|
}
|
|
19171
19789
|
|
|
19790
|
+
/**
|
|
19791
|
+
* Request parameters for getDailyEvents operation in EventsStaffApi.
|
|
19792
|
+
* @export
|
|
19793
|
+
* @interface EventsStaffApiGetDailyEventsRequest
|
|
19794
|
+
*/
|
|
19795
|
+
export interface EventsStaffApiGetDailyEventsRequest {
|
|
19796
|
+
/**
|
|
19797
|
+
*
|
|
19798
|
+
* @type {string}
|
|
19799
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19800
|
+
*/
|
|
19801
|
+
readonly clubId?: string
|
|
19802
|
+
|
|
19803
|
+
/**
|
|
19804
|
+
*
|
|
19805
|
+
* @type {string}
|
|
19806
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19807
|
+
*/
|
|
19808
|
+
readonly date?: string
|
|
19809
|
+
|
|
19810
|
+
/**
|
|
19811
|
+
*
|
|
19812
|
+
* @type {'public' | 'private' | 'invitation'}
|
|
19813
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19814
|
+
*/
|
|
19815
|
+
readonly visibilityType?: GetDailyEventsVisibilityTypeEnum
|
|
19816
|
+
|
|
19817
|
+
/**
|
|
19818
|
+
*
|
|
19819
|
+
* @type {'event' | 'closure'}
|
|
19820
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19821
|
+
*/
|
|
19822
|
+
readonly type?: GetDailyEventsTypeEnum
|
|
19823
|
+
|
|
19824
|
+
/**
|
|
19825
|
+
*
|
|
19826
|
+
* @type {string}
|
|
19827
|
+
* @memberof EventsStaffApiGetDailyEvents
|
|
19828
|
+
*/
|
|
19829
|
+
readonly sportId?: string
|
|
19830
|
+
}
|
|
19831
|
+
|
|
19832
|
+
/**
|
|
19833
|
+
* Request parameters for getMonthlyEvents operation in EventsStaffApi.
|
|
19834
|
+
* @export
|
|
19835
|
+
* @interface EventsStaffApiGetMonthlyEventsRequest
|
|
19836
|
+
*/
|
|
19837
|
+
export interface EventsStaffApiGetMonthlyEventsRequest {
|
|
19838
|
+
/**
|
|
19839
|
+
*
|
|
19840
|
+
* @type {string}
|
|
19841
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19842
|
+
*/
|
|
19843
|
+
readonly clubId?: string
|
|
19844
|
+
|
|
19845
|
+
/**
|
|
19846
|
+
*
|
|
19847
|
+
* @type {string}
|
|
19848
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19849
|
+
*/
|
|
19850
|
+
readonly date?: string
|
|
19851
|
+
|
|
19852
|
+
/**
|
|
19853
|
+
*
|
|
19854
|
+
* @type {'public' | 'private' | 'invitation'}
|
|
19855
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19856
|
+
*/
|
|
19857
|
+
readonly visibilityType?: GetMonthlyEventsVisibilityTypeEnum
|
|
19858
|
+
|
|
19859
|
+
/**
|
|
19860
|
+
*
|
|
19861
|
+
* @type {'event' | 'closure'}
|
|
19862
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19863
|
+
*/
|
|
19864
|
+
readonly type?: GetMonthlyEventsTypeEnum
|
|
19865
|
+
|
|
19866
|
+
/**
|
|
19867
|
+
*
|
|
19868
|
+
* @type {string}
|
|
19869
|
+
* @memberof EventsStaffApiGetMonthlyEvents
|
|
19870
|
+
*/
|
|
19871
|
+
readonly sportId?: string
|
|
19872
|
+
}
|
|
19873
|
+
|
|
19874
|
+
/**
|
|
19875
|
+
* Request parameters for getWeeklyEvents operation in EventsStaffApi.
|
|
19876
|
+
* @export
|
|
19877
|
+
* @interface EventsStaffApiGetWeeklyEventsRequest
|
|
19878
|
+
*/
|
|
19879
|
+
export interface EventsStaffApiGetWeeklyEventsRequest {
|
|
19880
|
+
/**
|
|
19881
|
+
*
|
|
19882
|
+
* @type {string}
|
|
19883
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19884
|
+
*/
|
|
19885
|
+
readonly clubId?: string
|
|
19886
|
+
|
|
19887
|
+
/**
|
|
19888
|
+
*
|
|
19889
|
+
* @type {string}
|
|
19890
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19891
|
+
*/
|
|
19892
|
+
readonly date?: string
|
|
19893
|
+
|
|
19894
|
+
/**
|
|
19895
|
+
*
|
|
19896
|
+
* @type {'public' | 'private' | 'invitation'}
|
|
19897
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19898
|
+
*/
|
|
19899
|
+
readonly visibilityType?: GetWeeklyEventsVisibilityTypeEnum
|
|
19900
|
+
|
|
19901
|
+
/**
|
|
19902
|
+
*
|
|
19903
|
+
* @type {'event' | 'closure'}
|
|
19904
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19905
|
+
*/
|
|
19906
|
+
readonly type?: GetWeeklyEventsTypeEnum
|
|
19907
|
+
|
|
19908
|
+
/**
|
|
19909
|
+
*
|
|
19910
|
+
* @type {string}
|
|
19911
|
+
* @memberof EventsStaffApiGetWeeklyEvents
|
|
19912
|
+
*/
|
|
19913
|
+
readonly sportId?: string
|
|
19914
|
+
}
|
|
19915
|
+
|
|
19172
19916
|
/**
|
|
19173
19917
|
* EventsStaffApi - object-oriented interface
|
|
19174
19918
|
* @export
|
|
@@ -19187,6 +19931,17 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
19187
19931
|
return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19188
19932
|
}
|
|
19189
19933
|
|
|
19934
|
+
/**
|
|
19935
|
+
* Get events for the day view (entire week)
|
|
19936
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
19937
|
+
* @param {*} [options] Override http request option.
|
|
19938
|
+
* @throws {RequiredError}
|
|
19939
|
+
* @memberof EventsStaffApi
|
|
19940
|
+
*/
|
|
19941
|
+
public getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
19942
|
+
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
19943
|
+
}
|
|
19944
|
+
|
|
19190
19945
|
/**
|
|
19191
19946
|
* Get all events for a club (staff only)
|
|
19192
19947
|
* @param {*} [options] Override http request option.
|
|
@@ -19196,8 +19951,81 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
19196
19951
|
public getEventsByClub(options?: RawAxiosRequestConfig) {
|
|
19197
19952
|
return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
19198
19953
|
}
|
|
19954
|
+
|
|
19955
|
+
/**
|
|
19956
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
19957
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
19958
|
+
* @param {*} [options] Override http request option.
|
|
19959
|
+
* @throws {RequiredError}
|
|
19960
|
+
* @memberof EventsStaffApi
|
|
19961
|
+
*/
|
|
19962
|
+
public getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
19963
|
+
return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
19964
|
+
}
|
|
19965
|
+
|
|
19966
|
+
/**
|
|
19967
|
+
* Get events for the week view (30 day sliding window)
|
|
19968
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
19969
|
+
* @param {*} [options] Override http request option.
|
|
19970
|
+
* @throws {RequiredError}
|
|
19971
|
+
* @memberof EventsStaffApi
|
|
19972
|
+
*/
|
|
19973
|
+
public getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
19974
|
+
return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
19975
|
+
}
|
|
19199
19976
|
}
|
|
19200
19977
|
|
|
19978
|
+
/**
|
|
19979
|
+
* @export
|
|
19980
|
+
*/
|
|
19981
|
+
export const GetDailyEventsVisibilityTypeEnum = {
|
|
19982
|
+
Public: 'public',
|
|
19983
|
+
Private: 'private',
|
|
19984
|
+
Invitation: 'invitation'
|
|
19985
|
+
} as const;
|
|
19986
|
+
export type GetDailyEventsVisibilityTypeEnum = typeof GetDailyEventsVisibilityTypeEnum[keyof typeof GetDailyEventsVisibilityTypeEnum];
|
|
19987
|
+
/**
|
|
19988
|
+
* @export
|
|
19989
|
+
*/
|
|
19990
|
+
export const GetDailyEventsTypeEnum = {
|
|
19991
|
+
Event: 'event',
|
|
19992
|
+
Closure: 'closure'
|
|
19993
|
+
} as const;
|
|
19994
|
+
export type GetDailyEventsTypeEnum = typeof GetDailyEventsTypeEnum[keyof typeof GetDailyEventsTypeEnum];
|
|
19995
|
+
/**
|
|
19996
|
+
* @export
|
|
19997
|
+
*/
|
|
19998
|
+
export const GetMonthlyEventsVisibilityTypeEnum = {
|
|
19999
|
+
Public: 'public',
|
|
20000
|
+
Private: 'private',
|
|
20001
|
+
Invitation: 'invitation'
|
|
20002
|
+
} as const;
|
|
20003
|
+
export type GetMonthlyEventsVisibilityTypeEnum = typeof GetMonthlyEventsVisibilityTypeEnum[keyof typeof GetMonthlyEventsVisibilityTypeEnum];
|
|
20004
|
+
/**
|
|
20005
|
+
* @export
|
|
20006
|
+
*/
|
|
20007
|
+
export const GetMonthlyEventsTypeEnum = {
|
|
20008
|
+
Event: 'event',
|
|
20009
|
+
Closure: 'closure'
|
|
20010
|
+
} as const;
|
|
20011
|
+
export type GetMonthlyEventsTypeEnum = typeof GetMonthlyEventsTypeEnum[keyof typeof GetMonthlyEventsTypeEnum];
|
|
20012
|
+
/**
|
|
20013
|
+
* @export
|
|
20014
|
+
*/
|
|
20015
|
+
export const GetWeeklyEventsVisibilityTypeEnum = {
|
|
20016
|
+
Public: 'public',
|
|
20017
|
+
Private: 'private',
|
|
20018
|
+
Invitation: 'invitation'
|
|
20019
|
+
} as const;
|
|
20020
|
+
export type GetWeeklyEventsVisibilityTypeEnum = typeof GetWeeklyEventsVisibilityTypeEnum[keyof typeof GetWeeklyEventsVisibilityTypeEnum];
|
|
20021
|
+
/**
|
|
20022
|
+
* @export
|
|
20023
|
+
*/
|
|
20024
|
+
export const GetWeeklyEventsTypeEnum = {
|
|
20025
|
+
Event: 'event',
|
|
20026
|
+
Closure: 'closure'
|
|
20027
|
+
} as const;
|
|
20028
|
+
export type GetWeeklyEventsTypeEnum = typeof GetWeeklyEventsTypeEnum[keyof typeof GetWeeklyEventsTypeEnum];
|
|
19201
20029
|
|
|
19202
20030
|
|
|
19203
20031
|
/**
|