@tennac-booking/sdk 1.0.112 → 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/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<BookingPopulated>}
1268
+ * @type {Array<AgendaBooking>}
1135
1269
  * @memberof BookingsWithTimeBoundsResponse
1136
1270
  */
1137
- 'bookings': Array<BookingPopulated>;
1271
+ 'bookings': Array<AgendaBooking>;
1138
1272
  /**
1139
1273
  *
1140
1274
  * @type {TimeBounds}
@@ -1812,6 +1946,80 @@ export interface ClubMemberResponseUser {
1812
1946
  */
1813
1947
  'id': string;
1814
1948
  }
1949
+ /**
1950
+ *
1951
+ * @export
1952
+ * @interface ClubMetadataResponse
1953
+ */
1954
+ export interface ClubMetadataResponse {
1955
+ /**
1956
+ * ID unique du club
1957
+ * @type {string}
1958
+ * @memberof ClubMetadataResponse
1959
+ */
1960
+ 'id': string;
1961
+ /**
1962
+ * Nom du club
1963
+ * @type {string}
1964
+ * @memberof ClubMetadataResponse
1965
+ */
1966
+ 'name': string;
1967
+ /**
1968
+ * Description du club
1969
+ * @type {string}
1970
+ * @memberof ClubMetadataResponse
1971
+ */
1972
+ 'description'?: string;
1973
+ /**
1974
+ * URL de la photo de profil (pdp)
1975
+ * @type {string}
1976
+ * @memberof ClubMetadataResponse
1977
+ */
1978
+ 'picture'?: string;
1979
+ /**
1980
+ * URL de la bannière principale
1981
+ * @type {string}
1982
+ * @memberof ClubMetadataResponse
1983
+ */
1984
+ 'primaryBannerPicture'?: string;
1985
+ /**
1986
+ *
1987
+ * @type {ClubMetadataResponseLocation}
1988
+ * @memberof ClubMetadataResponse
1989
+ */
1990
+ 'location'?: ClubMetadataResponseLocation;
1991
+ }
1992
+ /**
1993
+ * Localisation du club
1994
+ * @export
1995
+ * @interface ClubMetadataResponseLocation
1996
+ */
1997
+ export interface ClubMetadataResponseLocation {
1998
+ /**
1999
+ *
2000
+ * @type {string}
2001
+ * @memberof ClubMetadataResponseLocation
2002
+ */
2003
+ 'country'?: string;
2004
+ /**
2005
+ *
2006
+ * @type {string}
2007
+ * @memberof ClubMetadataResponseLocation
2008
+ */
2009
+ 'zipCode'?: string;
2010
+ /**
2011
+ *
2012
+ * @type {string}
2013
+ * @memberof ClubMetadataResponseLocation
2014
+ */
2015
+ 'city'?: string;
2016
+ /**
2017
+ *
2018
+ * @type {string}
2019
+ * @memberof ClubMetadataResponseLocation
2020
+ */
2021
+ 'address'?: string;
2022
+ }
1815
2023
  /**
1816
2024
  *
1817
2025
  * @export
@@ -2146,6 +2354,12 @@ export interface ClubPlayerDetailResponse {
2146
2354
  * @memberof ClubPlayerDetailResponse
2147
2355
  */
2148
2356
  'birthDate': string | null;
2357
+ /**
2358
+ *
2359
+ * @type {number}
2360
+ * @memberof ClubPlayerDetailResponse
2361
+ */
2362
+ 'credits': number | null;
2149
2363
  }
2150
2364
  /**
2151
2365
  *
@@ -2888,7 +3102,19 @@ export interface ClubSummary {
2888
3102
  * @type {string}
2889
3103
  * @memberof ClubSummary
2890
3104
  */
2891
- 'address'?: string | null;
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>;
2892
3118
  /**
2893
3119
  *
2894
3120
  * @type {UserLocationSummary}
@@ -2901,6 +3127,12 @@ export interface ClubSummary {
2901
3127
  * @memberof ClubSummary
2902
3128
  */
2903
3129
  'visitCount'?: number;
3130
+ /**
3131
+ *
3132
+ * @type {Array<string>}
3133
+ * @memberof ClubSummary
3134
+ */
3135
+ 'tags'?: Array<string>;
2904
3136
  }
2905
3137
  /**
2906
3138
  *
@@ -3378,13 +3610,19 @@ export interface CreateEventRequest {
3378
3610
  * @type {string}
3379
3611
  * @memberof CreateEventRequest
3380
3612
  */
3381
- 'recurringType': CreateEventRequestRecurringTypeEnum;
3613
+ 'recurringType'?: CreateEventRequestRecurringTypeEnum | null;
3382
3614
  /**
3383
3615
  *
3384
3616
  * @type {string}
3385
3617
  * @memberof CreateEventRequest
3386
3618
  */
3387
3619
  'recurrenceEndDate'?: string;
3620
+ /**
3621
+ *
3622
+ * @type {number}
3623
+ * @memberof CreateEventRequest
3624
+ */
3625
+ 'occurrences'?: number;
3388
3626
  /**
3389
3627
  *
3390
3628
  * @type {string}
@@ -9176,6 +9414,19 @@ export interface UpdateSubscriptionPlanForClub200Response {
9176
9414
  */
9177
9415
  'price': any;
9178
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
+ }
9179
9430
  /**
9180
9431
  *
9181
9432
  * @export
@@ -13551,7 +13802,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
13551
13802
  baseOptions = configuration.baseOptions;
13552
13803
  }
13553
13804
 
13554
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13805
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13555
13806
  const localVarHeaderParameter = {} as any;
13556
13807
  const localVarQueryParameter = {} as any;
13557
13808
 
@@ -13629,7 +13880,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
13629
13880
  baseOptions = configuration.baseOptions;
13630
13881
  }
13631
13882
 
13632
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13883
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13633
13884
  const localVarHeaderParameter = {} as any;
13634
13885
  const localVarQueryParameter = {} as any;
13635
13886
 
@@ -14393,6 +14644,39 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
14393
14644
 
14394
14645
 
14395
14646
 
14647
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14648
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14649
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14650
+
14651
+ return {
14652
+ url: toPathString(localVarUrlObj),
14653
+ options: localVarRequestOptions,
14654
+ };
14655
+ },
14656
+ /**
14657
+ * Récupère les métadonnées publiques d\'un club
14658
+ * @param {string} clubId
14659
+ * @param {*} [options] Override http request option.
14660
+ * @throws {RequiredError}
14661
+ */
14662
+ getClubMetadata: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14663
+ // verify required parameter 'clubId' is not null or undefined
14664
+ assertParamExists('getClubMetadata', 'clubId', clubId)
14665
+ const localVarPath = `/api/clubs/{clubId}/metadata`
14666
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
14667
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14668
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14669
+ let baseOptions;
14670
+ if (configuration) {
14671
+ baseOptions = configuration.baseOptions;
14672
+ }
14673
+
14674
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14675
+ const localVarHeaderParameter = {} as any;
14676
+ const localVarQueryParameter = {} as any;
14677
+
14678
+
14679
+
14396
14680
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14397
14681
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14398
14682
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -14715,6 +14999,18 @@ export const ClubsApiFp = function(configuration?: Configuration) {
14715
14999
  const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubInfo']?.[localVarOperationServerIndex]?.url;
14716
15000
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14717
15001
  },
15002
+ /**
15003
+ * Récupère les métadonnées publiques d\'un club
15004
+ * @param {string} clubId
15005
+ * @param {*} [options] Override http request option.
15006
+ * @throws {RequiredError}
15007
+ */
15008
+ async getClubMetadata(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubMetadataResponse>> {
15009
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubMetadata(clubId, options);
15010
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15011
+ const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubMetadata']?.[localVarOperationServerIndex]?.url;
15012
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15013
+ },
14718
15014
  /**
14719
15015
  *
14720
15016
  * @param {string} clubId
@@ -14860,6 +15156,15 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
14860
15156
  getClubInfo(options?: RawAxiosRequestConfig): AxiosPromise<ClubResponse> {
14861
15157
  return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
14862
15158
  },
15159
+ /**
15160
+ * Récupère les métadonnées publiques d\'un club
15161
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
15162
+ * @param {*} [options] Override http request option.
15163
+ * @throws {RequiredError}
15164
+ */
15165
+ getClubMetadata(requestParameters: ClubsApiGetClubMetadataRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubMetadataResponse> {
15166
+ return localVarFp.getClubMetadata(requestParameters.clubId, options).then((request) => request(axios, basePath));
15167
+ },
14863
15168
  /**
14864
15169
  *
14865
15170
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -14988,6 +15293,20 @@ export interface ClubsApiGetAvailableSlotsBySportsAndDayRequest {
14988
15293
  readonly day: string
14989
15294
  }
14990
15295
 
15296
+ /**
15297
+ * Request parameters for getClubMetadata operation in ClubsApi.
15298
+ * @export
15299
+ * @interface ClubsApiGetClubMetadataRequest
15300
+ */
15301
+ export interface ClubsApiGetClubMetadataRequest {
15302
+ /**
15303
+ *
15304
+ * @type {string}
15305
+ * @memberof ClubsApiGetClubMetadata
15306
+ */
15307
+ readonly clubId: string
15308
+ }
15309
+
14991
15310
  /**
14992
15311
  * Request parameters for getClubPageInfo operation in ClubsApi.
14993
15312
  * @export
@@ -15149,6 +15468,17 @@ export class ClubsApi extends BaseAPI {
15149
15468
  return ClubsApiFp(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
15150
15469
  }
15151
15470
 
15471
+ /**
15472
+ * Récupère les métadonnées publiques d\'un club
15473
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
15474
+ * @param {*} [options] Override http request option.
15475
+ * @throws {RequiredError}
15476
+ * @memberof ClubsApi
15477
+ */
15478
+ public getClubMetadata(requestParameters: ClubsApiGetClubMetadataRequest, options?: RawAxiosRequestConfig) {
15479
+ return ClubsApiFp(this.configuration).getClubMetadata(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
15480
+ }
15481
+
15152
15482
  /**
15153
15483
  *
15154
15484
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -15508,8 +15838,45 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
15508
15838
  };
15509
15839
  },
15510
15840
  /**
15511
- * Supprime un terrain et ses créneaux futurs
15512
- * @param {string} courtId
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
+
15868
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15869
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15870
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15871
+
15872
+ return {
15873
+ url: toPathString(localVarUrlObj),
15874
+ options: localVarRequestOptions,
15875
+ };
15876
+ },
15877
+ /**
15878
+ * Supprime un terrain et ses créneaux futurs
15879
+ * @param {string} courtId
15513
15880
  * @param {*} [options] Override http request option.
15514
15881
  * @throws {RequiredError}
15515
15882
  */
@@ -16109,6 +16476,18 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
16109
16476
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteActuality']?.[localVarOperationServerIndex]?.url;
16110
16477
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16111
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
+ },
16112
16491
  /**
16113
16492
  * Supprime un terrain et ses créneaux futurs
16114
16493
  * @param {string} courtId
@@ -16341,6 +16720,15 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
16341
16720
  deleteActuality(requestParameters: ClubsManagerApiDeleteActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
16342
16721
  return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
16343
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
+ },
16344
16732
  /**
16345
16733
  * Supprime un terrain et ses créneaux futurs
16346
16734
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -16565,6 +16953,20 @@ export interface ClubsManagerApiDeleteActualityRequest {
16565
16953
  readonly actualityId: string
16566
16954
  }
16567
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
+
16568
16970
  /**
16569
16971
  * Request parameters for deleteCourt operation in ClubsManagerApi.
16570
16972
  * @export
@@ -16845,6 +17247,17 @@ export class ClubsManagerApi extends BaseAPI {
16845
17247
  return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
16846
17248
  }
16847
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
+
16848
17261
  /**
16849
17262
  * Supprime un terrain et ses créneaux futurs
16850
17263
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -17302,6 +17715,49 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17302
17715
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17303
17716
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17304
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
+
17305
17761
  return {
17306
17762
  url: toPathString(localVarUrlObj),
17307
17763
  options: localVarRequestOptions,
@@ -17419,6 +17875,19 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
17419
17875
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getUserProfileStaff']?.[localVarOperationServerIndex]?.url;
17420
17876
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17421
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
+ },
17422
17891
  }
17423
17892
  };
17424
17893
 
@@ -17503,6 +17972,15 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
17503
17972
  getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
17504
17973
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
17505
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
+ },
17506
17984
  };
17507
17985
  };
17508
17986
 
@@ -17541,6 +18019,27 @@ export interface ClubsStaffApiGetUserProfileStaffRequest {
17541
18019
  readonly id: string
17542
18020
  }
17543
18021
 
18022
+ /**
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
+
17544
18043
  /**
17545
18044
  * ClubsStaffApi - object-oriented interface
17546
18045
  * @export
@@ -17639,6 +18138,17 @@ export class ClubsStaffApi extends BaseAPI {
17639
18138
  public getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig) {
17640
18139
  return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
17641
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
+ }
17642
18152
  }
17643
18153
 
17644
18154
 
@@ -18898,6 +19408,64 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
18898
19408
  options: localVarRequestOptions,
18899
19409
  };
18900
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
+ },
18901
19469
  /**
18902
19470
  * Get all events for a club (staff only)
18903
19471
  * @param {*} [options] Override http request option.
@@ -18922,6 +19490,122 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
18922
19490
 
18923
19491
 
18924
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
+
18925
19609
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18926
19610
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18927
19611
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -18954,6 +19638,22 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
18954
19638
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.checkInEventParticipants']?.[localVarOperationServerIndex]?.url;
18955
19639
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18956
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
+ },
18957
19657
  /**
18958
19658
  * Get all events for a club (staff only)
18959
19659
  * @param {*} [options] Override http request option.
@@ -18965,6 +19665,38 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
18965
19665
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
18966
19666
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18967
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
+ },
18968
19700
  }
18969
19701
  };
18970
19702
 
@@ -18984,6 +19716,15 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
18984
19716
  checkInEventParticipants(requestParameters: EventsStaffApiCheckInEventParticipantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInEventParticipants200Response> {
18985
19717
  return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
18986
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
+ },
18987
19728
  /**
18988
19729
  * Get all events for a club (staff only)
18989
19730
  * @param {*} [options] Override http request option.
@@ -18992,6 +19733,24 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
18992
19733
  getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
18993
19734
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
18994
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
+ },
18995
19754
  };
18996
19755
  };
18997
19756
 
@@ -19016,6 +19775,132 @@ export interface EventsStaffApiCheckInEventParticipantsRequest {
19016
19775
  readonly checkInEventParticipantsRequest: CheckInEventParticipantsRequest
19017
19776
  }
19018
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
+
19019
19904
  /**
19020
19905
  * EventsStaffApi - object-oriented interface
19021
19906
  * @export
@@ -19034,6 +19919,17 @@ export class EventsStaffApi extends BaseAPI {
19034
19919
  return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
19035
19920
  }
19036
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
+
19037
19933
  /**
19038
19934
  * Get all events for a club (staff only)
19039
19935
  * @param {*} [options] Override http request option.
@@ -19043,8 +19939,81 @@ export class EventsStaffApi extends BaseAPI {
19043
19939
  public getEventsByClub(options?: RawAxiosRequestConfig) {
19044
19940
  return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
19045
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
+ }
19046
19964
  }
19047
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];
19048
20017
 
19049
20018
 
19050
20019
  /**