@tennac-booking/sdk 1.0.108 → 1.0.110

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.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +9 -1
  2. package/README.md +15 -2
  3. package/api.ts +672 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +478 -1
  8. package/dist/api.js +280 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +478 -1
  16. package/dist/esm/api.js +280 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/CheckInEventParticipants200Response.md +22 -0
  28. package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
  29. package/docs/CheckInEventParticipantsRequest.md +20 -0
  30. package/docs/ClubsStaffApi.md +59 -0
  31. package/docs/CreateOnsiteInvoiceRequest.md +28 -0
  32. package/docs/CreateOnsiteInvoiceResponse.md +22 -0
  33. package/docs/CreateOnsiteInvoiceResponseInvoice.md +31 -0
  34. package/docs/EventConflictCheckRequest.md +28 -0
  35. package/docs/EventConflictCheckResponse.md +26 -0
  36. package/docs/EventsManagerApi.md +114 -0
  37. package/docs/EventsStaffApi.md +59 -0
  38. package/docs/JoinEventRequest.md +8 -0
  39. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +22 -0
  40. package/docs/PublishEventResponse.md +2 -0
  41. package/index.ts +1 -1
  42. package/package.json +1 -1
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.108
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1250,6 +1250,77 @@ export interface ChangePasswordResponse {
1250
1250
  */
1251
1251
  'message': string;
1252
1252
  }
1253
+ /**
1254
+ *
1255
+ * @export
1256
+ * @interface CheckInEventParticipants200Response
1257
+ */
1258
+ export interface CheckInEventParticipants200Response {
1259
+ /**
1260
+ *
1261
+ * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
1262
+ * @memberof CheckInEventParticipants200Response
1263
+ */
1264
+ 'invoices': Array<CheckInEventParticipants200ResponseInvoicesInner>;
1265
+ /**
1266
+ *
1267
+ * @type {string}
1268
+ * @memberof CheckInEventParticipants200Response
1269
+ */
1270
+ 'message': string;
1271
+ }
1272
+ /**
1273
+ *
1274
+ * @export
1275
+ * @interface CheckInEventParticipants200ResponseInvoicesInner
1276
+ */
1277
+ export interface CheckInEventParticipants200ResponseInvoicesInner {
1278
+ /**
1279
+ *
1280
+ * @type {PaymentMethod}
1281
+ * @memberof CheckInEventParticipants200ResponseInvoicesInner
1282
+ */
1283
+ 'paymentMethod': PaymentMethod;
1284
+ /**
1285
+ *
1286
+ * @type {string}
1287
+ * @memberof CheckInEventParticipants200ResponseInvoicesInner
1288
+ */
1289
+ 'status': string;
1290
+ /**
1291
+ *
1292
+ * @type {number}
1293
+ * @memberof CheckInEventParticipants200ResponseInvoicesInner
1294
+ */
1295
+ 'amount': number;
1296
+ /**
1297
+ *
1298
+ * @type {string}
1299
+ * @memberof CheckInEventParticipants200ResponseInvoicesInner
1300
+ */
1301
+ 'invoiceId': string;
1302
+ /**
1303
+ *
1304
+ * @type {string}
1305
+ * @memberof CheckInEventParticipants200ResponseInvoicesInner
1306
+ */
1307
+ 'playerId': string;
1308
+ }
1309
+
1310
+
1311
+ /**
1312
+ *
1313
+ * @export
1314
+ * @interface CheckInEventParticipantsRequest
1315
+ */
1316
+ export interface CheckInEventParticipantsRequest {
1317
+ /**
1318
+ *
1319
+ * @type {Array<string>}
1320
+ * @memberof CheckInEventParticipantsRequest
1321
+ */
1322
+ 'playerIds': Array<string>;
1323
+ }
1253
1324
  /**
1254
1325
  *
1255
1326
  * @export
@@ -3398,6 +3469,109 @@ export const CreateEventRequestVisibilityTypeEnum = {
3398
3469
 
3399
3470
  export type CreateEventRequestVisibilityTypeEnum = typeof CreateEventRequestVisibilityTypeEnum[keyof typeof CreateEventRequestVisibilityTypeEnum];
3400
3471
 
3472
+ /**
3473
+ *
3474
+ * @export
3475
+ * @interface CreateOnsiteInvoiceRequest
3476
+ */
3477
+ export interface CreateOnsiteInvoiceRequest {
3478
+ /**
3479
+ * Payer user id (creator or player)
3480
+ * @type {string}
3481
+ * @memberof CreateOnsiteInvoiceRequest
3482
+ */
3483
+ 'userId': string;
3484
+ /**
3485
+ * Amount in cents
3486
+ * @type {number}
3487
+ * @memberof CreateOnsiteInvoiceRequest
3488
+ */
3489
+ 'amount': number;
3490
+ /**
3491
+ *
3492
+ * @type {PaymentMethod}
3493
+ * @memberof CreateOnsiteInvoiceRequest
3494
+ */
3495
+ 'paymentMethod': PaymentMethod;
3496
+ /**
3497
+ *
3498
+ * @type {InvoiceStatus}
3499
+ * @memberof CreateOnsiteInvoiceRequest
3500
+ */
3501
+ 'status': InvoiceStatus;
3502
+ /**
3503
+ * Optional note/reason about the invoice
3504
+ * @type {string}
3505
+ * @memberof CreateOnsiteInvoiceRequest
3506
+ */
3507
+ 'reason'?: string;
3508
+ }
3509
+
3510
+
3511
+ /**
3512
+ *
3513
+ * @export
3514
+ * @interface CreateOnsiteInvoiceResponse
3515
+ */
3516
+ export interface CreateOnsiteInvoiceResponse {
3517
+ /**
3518
+ * Confirmation message
3519
+ * @type {string}
3520
+ * @memberof CreateOnsiteInvoiceResponse
3521
+ */
3522
+ 'message': string;
3523
+ /**
3524
+ *
3525
+ * @type {CreateOnsiteInvoiceResponseInvoice}
3526
+ * @memberof CreateOnsiteInvoiceResponse
3527
+ */
3528
+ 'invoice': CreateOnsiteInvoiceResponseInvoice;
3529
+ }
3530
+ /**
3531
+ * Created invoice summary
3532
+ * @export
3533
+ * @interface CreateOnsiteInvoiceResponseInvoice
3534
+ */
3535
+ export interface CreateOnsiteInvoiceResponseInvoice {
3536
+ /**
3537
+ *
3538
+ * @type {string}
3539
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3540
+ */
3541
+ 'reason'?: string;
3542
+ /**
3543
+ *
3544
+ * @type {PaymentMethod}
3545
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3546
+ */
3547
+ 'paymentMethod': PaymentMethod;
3548
+ /**
3549
+ *
3550
+ * @type {InvoiceStatus}
3551
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3552
+ */
3553
+ 'status': InvoiceStatus;
3554
+ /**
3555
+ *
3556
+ * @type {number}
3557
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3558
+ */
3559
+ 'amount': number;
3560
+ /**
3561
+ *
3562
+ * @type {string}
3563
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3564
+ */
3565
+ 'userId': string;
3566
+ /**
3567
+ *
3568
+ * @type {string}
3569
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3570
+ */
3571
+ 'id': string;
3572
+ }
3573
+
3574
+
3401
3575
  /**
3402
3576
  *
3403
3577
  * @export
@@ -3731,6 +3905,74 @@ export const DiscountType = {
3731
3905
  export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
3732
3906
 
3733
3907
 
3908
+ /**
3909
+ *
3910
+ * @export
3911
+ * @interface EventConflictCheckRequest
3912
+ */
3913
+ export interface EventConflictCheckRequest {
3914
+ /**
3915
+ *
3916
+ * @type {string}
3917
+ * @memberof EventConflictCheckRequest
3918
+ */
3919
+ 'eventId'?: string;
3920
+ /**
3921
+ *
3922
+ * @type {string}
3923
+ * @memberof EventConflictCheckRequest
3924
+ */
3925
+ 'clubId'?: string;
3926
+ /**
3927
+ *
3928
+ * @type {string}
3929
+ * @memberof EventConflictCheckRequest
3930
+ */
3931
+ 'startDate'?: string;
3932
+ /**
3933
+ *
3934
+ * @type {string}
3935
+ * @memberof EventConflictCheckRequest
3936
+ */
3937
+ 'endDate'?: string;
3938
+ /**
3939
+ *
3940
+ * @type {Array<string>}
3941
+ * @memberof EventConflictCheckRequest
3942
+ */
3943
+ 'courts'?: Array<string>;
3944
+ }
3945
+ /**
3946
+ *
3947
+ * @export
3948
+ * @interface EventConflictCheckResponse
3949
+ */
3950
+ export interface EventConflictCheckResponse {
3951
+ /**
3952
+ *
3953
+ * @type {boolean}
3954
+ * @memberof EventConflictCheckResponse
3955
+ */
3956
+ 'hasRegularBookings': boolean;
3957
+ /**
3958
+ *
3959
+ * @type {number}
3960
+ * @memberof EventConflictCheckResponse
3961
+ */
3962
+ 'regularBookingsCount': number;
3963
+ /**
3964
+ *
3965
+ * @type {boolean}
3966
+ * @memberof EventConflictCheckResponse
3967
+ */
3968
+ 'hasEventBookings': boolean;
3969
+ /**
3970
+ *
3971
+ * @type {number}
3972
+ * @memberof EventConflictCheckResponse
3973
+ */
3974
+ 'eventBookingsCount': number;
3975
+ }
3734
3976
  /**
3735
3977
  *
3736
3978
  * @export
@@ -4799,7 +5041,54 @@ export interface JoinEventRequest {
4799
5041
  * @memberof JoinEventRequest
4800
5042
  */
4801
5043
  'players'?: Array<string>;
5044
+ /**
5045
+ *
5046
+ * @type {boolean}
5047
+ * @memberof JoinEventRequest
5048
+ */
5049
+ 'isCreatorPayingAll'?: boolean;
5050
+ /**
5051
+ *
5052
+ * @type {PaymentMethod}
5053
+ * @memberof JoinEventRequest
5054
+ */
5055
+ 'paymentMethod'?: PaymentMethod;
5056
+ /**
5057
+ *
5058
+ * @type {Array<JoinEventRequestPlayersPaymentMethodsInner>}
5059
+ * @memberof JoinEventRequest
5060
+ */
5061
+ 'playersPaymentMethods'?: Array<JoinEventRequestPlayersPaymentMethodsInner>;
5062
+ /**
5063
+ *
5064
+ * @type {boolean}
5065
+ * @memberof JoinEventRequest
5066
+ */
5067
+ 'useDefaultPaymentMethod'?: boolean;
4802
5068
  }
5069
+
5070
+
5071
+ /**
5072
+ *
5073
+ * @export
5074
+ * @interface JoinEventRequestPlayersPaymentMethodsInner
5075
+ */
5076
+ export interface JoinEventRequestPlayersPaymentMethodsInner {
5077
+ /**
5078
+ *
5079
+ * @type {PaymentMethod}
5080
+ * @memberof JoinEventRequestPlayersPaymentMethodsInner
5081
+ */
5082
+ 'paymentMethod': PaymentMethod;
5083
+ /**
5084
+ *
5085
+ * @type {string}
5086
+ * @memberof JoinEventRequestPlayersPaymentMethodsInner
5087
+ */
5088
+ 'id': string;
5089
+ }
5090
+
5091
+
4803
5092
  /**
4804
5093
  *
4805
5094
  * @export
@@ -5929,6 +6218,12 @@ export interface PublishEventResponse {
5929
6218
  * @memberof PublishEventResponse
5930
6219
  */
5931
6220
  'event': EventResponse;
6221
+ /**
6222
+ *
6223
+ * @type {Array<string>}
6224
+ * @memberof PublishEventResponse
6225
+ */
6226
+ 'refundedBookingIds'?: Array<string>;
5932
6227
  }
5933
6228
  /**
5934
6229
  *
@@ -16701,6 +16996,49 @@ export class ClubsManagerApi extends BaseAPI {
16701
16996
  */
16702
16997
  export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
16703
16998
  return {
16999
+ /**
17000
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
17001
+ * @param {string} bookingId
17002
+ * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
17003
+ * @param {*} [options] Override http request option.
17004
+ * @throws {RequiredError}
17005
+ */
17006
+ createOnsiteInvoiceForBooking: async (bookingId: string, createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17007
+ // verify required parameter 'bookingId' is not null or undefined
17008
+ assertParamExists('createOnsiteInvoiceForBooking', 'bookingId', bookingId)
17009
+ // verify required parameter 'createOnsiteInvoiceRequest' is not null or undefined
17010
+ assertParamExists('createOnsiteInvoiceForBooking', 'createOnsiteInvoiceRequest', createOnsiteInvoiceRequest)
17011
+ const localVarPath = `/api/clubs/staff/bookings/{bookingId}/invoices`
17012
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
17013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17015
+ let baseOptions;
17016
+ if (configuration) {
17017
+ baseOptions = configuration.baseOptions;
17018
+ }
17019
+
17020
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17021
+ const localVarHeaderParameter = {} as any;
17022
+ const localVarQueryParameter = {} as any;
17023
+
17024
+ // authentication bearerAuth required
17025
+ // http bearer authentication required
17026
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17027
+
17028
+
17029
+
17030
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17031
+
17032
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17033
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17034
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17035
+ localVarRequestOptions.data = serializeDataIfNeeded(createOnsiteInvoiceRequest, localVarRequestOptions, configuration)
17036
+
17037
+ return {
17038
+ url: toPathString(localVarUrlObj),
17039
+ options: localVarRequestOptions,
17040
+ };
17041
+ },
16704
17042
  /**
16705
17043
  *
16706
17044
  * @param {*} [options] Override http request option.
@@ -16979,6 +17317,19 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
16979
17317
  export const ClubsStaffApiFp = function(configuration?: Configuration) {
16980
17318
  const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration)
16981
17319
  return {
17320
+ /**
17321
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
17322
+ * @param {string} bookingId
17323
+ * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
17324
+ * @param {*} [options] Override http request option.
17325
+ * @throws {RequiredError}
17326
+ */
17327
+ async createOnsiteInvoiceForBooking(bookingId: string, createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOnsiteInvoiceResponse>> {
17328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options);
17329
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17330
+ const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.createOnsiteInvoiceForBooking']?.[localVarOperationServerIndex]?.url;
17331
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17332
+ },
16982
17333
  /**
16983
17334
  *
16984
17335
  * @param {*} [options] Override http request option.
@@ -17078,6 +17429,15 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
17078
17429
  export const ClubsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
17079
17430
  const localVarFp = ClubsStaffApiFp(configuration)
17080
17431
  return {
17432
+ /**
17433
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
17434
+ * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
17435
+ * @param {*} [options] Override http request option.
17436
+ * @throws {RequiredError}
17437
+ */
17438
+ createOnsiteInvoiceForBooking(requestParameters: ClubsStaffApiCreateOnsiteInvoiceForBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOnsiteInvoiceResponse> {
17439
+ return localVarFp.createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(axios, basePath));
17440
+ },
17081
17441
  /**
17082
17442
  *
17083
17443
  * @param {*} [options] Override http request option.
@@ -17146,6 +17506,27 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
17146
17506
  };
17147
17507
  };
17148
17508
 
17509
+ /**
17510
+ * Request parameters for createOnsiteInvoiceForBooking operation in ClubsStaffApi.
17511
+ * @export
17512
+ * @interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest
17513
+ */
17514
+ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
17515
+ /**
17516
+ *
17517
+ * @type {string}
17518
+ * @memberof ClubsStaffApiCreateOnsiteInvoiceForBooking
17519
+ */
17520
+ readonly bookingId: string
17521
+
17522
+ /**
17523
+ *
17524
+ * @type {CreateOnsiteInvoiceRequest}
17525
+ * @memberof ClubsStaffApiCreateOnsiteInvoiceForBooking
17526
+ */
17527
+ readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest
17528
+ }
17529
+
17149
17530
  /**
17150
17531
  * Request parameters for getUserProfileStaff operation in ClubsStaffApi.
17151
17532
  * @export
@@ -17167,6 +17548,17 @@ export interface ClubsStaffApiGetUserProfileStaffRequest {
17167
17548
  * @extends {BaseAPI}
17168
17549
  */
17169
17550
  export class ClubsStaffApi extends BaseAPI {
17551
+ /**
17552
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
17553
+ * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
17554
+ * @param {*} [options] Override http request option.
17555
+ * @throws {RequiredError}
17556
+ * @memberof ClubsStaffApi
17557
+ */
17558
+ public createOnsiteInvoiceForBooking(requestParameters: ClubsStaffApiCreateOnsiteInvoiceForBookingRequest, options?: RawAxiosRequestConfig) {
17559
+ return ClubsStaffApiFp(this.configuration).createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
17560
+ }
17561
+
17170
17562
  /**
17171
17563
  *
17172
17564
  * @param {*} [options] Override http request option.
@@ -17811,6 +18203,45 @@ export type GetPublishedEventsByClubIdTypeEnum = typeof GetPublishedEventsByClub
17811
18203
  */
17812
18204
  export const EventsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
17813
18205
  return {
18206
+ /**
18207
+ * Check if there are bookings overlapping an event window (for create/update/delete)
18208
+ * @param {EventConflictCheckRequest} eventConflictCheckRequest
18209
+ * @param {*} [options] Override http request option.
18210
+ * @throws {RequiredError}
18211
+ */
18212
+ checkEventConflicts: async (eventConflictCheckRequest: EventConflictCheckRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18213
+ // verify required parameter 'eventConflictCheckRequest' is not null or undefined
18214
+ assertParamExists('checkEventConflicts', 'eventConflictCheckRequest', eventConflictCheckRequest)
18215
+ const localVarPath = `/api/events/manager/checkConflicts`;
18216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18217
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18218
+ let baseOptions;
18219
+ if (configuration) {
18220
+ baseOptions = configuration.baseOptions;
18221
+ }
18222
+
18223
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18224
+ const localVarHeaderParameter = {} as any;
18225
+ const localVarQueryParameter = {} as any;
18226
+
18227
+ // authentication bearerAuth required
18228
+ // http bearer authentication required
18229
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18230
+
18231
+
18232
+
18233
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18234
+
18235
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18236
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18237
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18238
+ localVarRequestOptions.data = serializeDataIfNeeded(eventConflictCheckRequest, localVarRequestOptions, configuration)
18239
+
18240
+ return {
18241
+ url: toPathString(localVarUrlObj),
18242
+ options: localVarRequestOptions,
18243
+ };
18244
+ },
17814
18245
  /**
17815
18246
  * Create a new event (manager)
17816
18247
  * @param {CreateEventRequest} createEventRequest
@@ -17992,6 +18423,49 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
17992
18423
 
17993
18424
 
17994
18425
 
18426
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18427
+
18428
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18429
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18430
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18431
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration)
18432
+
18433
+ return {
18434
+ url: toPathString(localVarUrlObj),
18435
+ options: localVarRequestOptions,
18436
+ };
18437
+ },
18438
+ /**
18439
+ * Update a published event (manager) and propagate slot changes and conflicts
18440
+ * @param {string} eventId
18441
+ * @param {UpdateEventRequest} updateEventRequest
18442
+ * @param {*} [options] Override http request option.
18443
+ * @throws {RequiredError}
18444
+ */
18445
+ updatePublishedEvent: async (eventId: string, updateEventRequest: UpdateEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18446
+ // verify required parameter 'eventId' is not null or undefined
18447
+ assertParamExists('updatePublishedEvent', 'eventId', eventId)
18448
+ // verify required parameter 'updateEventRequest' is not null or undefined
18449
+ assertParamExists('updatePublishedEvent', 'updateEventRequest', updateEventRequest)
18450
+ const localVarPath = `/api/events/manager/updatePublishedEvent/{eventId}`
18451
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
18452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18453
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18454
+ let baseOptions;
18455
+ if (configuration) {
18456
+ baseOptions = configuration.baseOptions;
18457
+ }
18458
+
18459
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18460
+ const localVarHeaderParameter = {} as any;
18461
+ const localVarQueryParameter = {} as any;
18462
+
18463
+ // authentication bearerAuth required
18464
+ // http bearer authentication required
18465
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18466
+
18467
+
18468
+
17995
18469
  localVarHeaderParameter['Content-Type'] = 'application/json';
17996
18470
 
17997
18471
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18014,6 +18488,18 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
18014
18488
  export const EventsManagerApiFp = function(configuration?: Configuration) {
18015
18489
  const localVarAxiosParamCreator = EventsManagerApiAxiosParamCreator(configuration)
18016
18490
  return {
18491
+ /**
18492
+ * Check if there are bookings overlapping an event window (for create/update/delete)
18493
+ * @param {EventConflictCheckRequest} eventConflictCheckRequest
18494
+ * @param {*} [options] Override http request option.
18495
+ * @throws {RequiredError}
18496
+ */
18497
+ async checkEventConflicts(eventConflictCheckRequest: EventConflictCheckRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventConflictCheckResponse>> {
18498
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkEventConflicts(eventConflictCheckRequest, options);
18499
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18500
+ const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.checkEventConflicts']?.[localVarOperationServerIndex]?.url;
18501
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18502
+ },
18017
18503
  /**
18018
18504
  * Create a new event (manager)
18019
18505
  * @param {CreateEventRequest} createEventRequest
@@ -18075,6 +18561,19 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
18075
18561
  const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updateEvent']?.[localVarOperationServerIndex]?.url;
18076
18562
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18077
18563
  },
18564
+ /**
18565
+ * Update a published event (manager) and propagate slot changes and conflicts
18566
+ * @param {string} eventId
18567
+ * @param {UpdateEventRequest} updateEventRequest
18568
+ * @param {*} [options] Override http request option.
18569
+ * @throws {RequiredError}
18570
+ */
18571
+ async updatePublishedEvent(eventId: string, updateEventRequest: UpdateEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
18572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublishedEvent(eventId, updateEventRequest, options);
18573
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18574
+ const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updatePublishedEvent']?.[localVarOperationServerIndex]?.url;
18575
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18576
+ },
18078
18577
  }
18079
18578
  };
18080
18579
 
@@ -18085,6 +18584,15 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
18085
18584
  export const EventsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18086
18585
  const localVarFp = EventsManagerApiFp(configuration)
18087
18586
  return {
18587
+ /**
18588
+ * Check if there are bookings overlapping an event window (for create/update/delete)
18589
+ * @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
18590
+ * @param {*} [options] Override http request option.
18591
+ * @throws {RequiredError}
18592
+ */
18593
+ checkEventConflicts(requestParameters: EventsManagerApiCheckEventConflictsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventConflictCheckResponse> {
18594
+ return localVarFp.checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(axios, basePath));
18595
+ },
18088
18596
  /**
18089
18597
  * Create a new event (manager)
18090
18598
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -18130,9 +18638,32 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
18130
18638
  updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
18131
18639
  return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
18132
18640
  },
18641
+ /**
18642
+ * Update a published event (manager) and propagate slot changes and conflicts
18643
+ * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
18644
+ * @param {*} [options] Override http request option.
18645
+ * @throws {RequiredError}
18646
+ */
18647
+ updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
18648
+ return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
18649
+ },
18133
18650
  };
18134
18651
  };
18135
18652
 
18653
+ /**
18654
+ * Request parameters for checkEventConflicts operation in EventsManagerApi.
18655
+ * @export
18656
+ * @interface EventsManagerApiCheckEventConflictsRequest
18657
+ */
18658
+ export interface EventsManagerApiCheckEventConflictsRequest {
18659
+ /**
18660
+ *
18661
+ * @type {EventConflictCheckRequest}
18662
+ * @memberof EventsManagerApiCheckEventConflicts
18663
+ */
18664
+ readonly eventConflictCheckRequest: EventConflictCheckRequest
18665
+ }
18666
+
18136
18667
  /**
18137
18668
  * Request parameters for createEvent operation in EventsManagerApi.
18138
18669
  * @export
@@ -18210,6 +18741,27 @@ export interface EventsManagerApiUpdateEventRequest {
18210
18741
  readonly updateEventRequest: UpdateEventRequest
18211
18742
  }
18212
18743
 
18744
+ /**
18745
+ * Request parameters for updatePublishedEvent operation in EventsManagerApi.
18746
+ * @export
18747
+ * @interface EventsManagerApiUpdatePublishedEventRequest
18748
+ */
18749
+ export interface EventsManagerApiUpdatePublishedEventRequest {
18750
+ /**
18751
+ *
18752
+ * @type {string}
18753
+ * @memberof EventsManagerApiUpdatePublishedEvent
18754
+ */
18755
+ readonly eventId: string
18756
+
18757
+ /**
18758
+ *
18759
+ * @type {UpdateEventRequest}
18760
+ * @memberof EventsManagerApiUpdatePublishedEvent
18761
+ */
18762
+ readonly updateEventRequest: UpdateEventRequest
18763
+ }
18764
+
18213
18765
  /**
18214
18766
  * EventsManagerApi - object-oriented interface
18215
18767
  * @export
@@ -18217,6 +18769,17 @@ export interface EventsManagerApiUpdateEventRequest {
18217
18769
  * @extends {BaseAPI}
18218
18770
  */
18219
18771
  export class EventsManagerApi extends BaseAPI {
18772
+ /**
18773
+ * Check if there are bookings overlapping an event window (for create/update/delete)
18774
+ * @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
18775
+ * @param {*} [options] Override http request option.
18776
+ * @throws {RequiredError}
18777
+ * @memberof EventsManagerApi
18778
+ */
18779
+ public checkEventConflicts(requestParameters: EventsManagerApiCheckEventConflictsRequest, options?: RawAxiosRequestConfig) {
18780
+ return EventsManagerApiFp(this.configuration).checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(this.axios, this.basePath));
18781
+ }
18782
+
18220
18783
  /**
18221
18784
  * Create a new event (manager)
18222
18785
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -18271,6 +18834,17 @@ export class EventsManagerApi extends BaseAPI {
18271
18834
  public updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig) {
18272
18835
  return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
18273
18836
  }
18837
+
18838
+ /**
18839
+ * Update a published event (manager) and propagate slot changes and conflicts
18840
+ * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
18841
+ * @param {*} [options] Override http request option.
18842
+ * @throws {RequiredError}
18843
+ * @memberof EventsManagerApi
18844
+ */
18845
+ public updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig) {
18846
+ return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
18847
+ }
18274
18848
  }
18275
18849
 
18276
18850
 
@@ -18281,6 +18855,49 @@ export class EventsManagerApi extends BaseAPI {
18281
18855
  */
18282
18856
  export const EventsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
18283
18857
  return {
18858
+ /**
18859
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
18860
+ * @param {string} eventBookingId
18861
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
18862
+ * @param {*} [options] Override http request option.
18863
+ * @throws {RequiredError}
18864
+ */
18865
+ checkInEventParticipants: async (eventBookingId: string, checkInEventParticipantsRequest: CheckInEventParticipantsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18866
+ // verify required parameter 'eventBookingId' is not null or undefined
18867
+ assertParamExists('checkInEventParticipants', 'eventBookingId', eventBookingId)
18868
+ // verify required parameter 'checkInEventParticipantsRequest' is not null or undefined
18869
+ assertParamExists('checkInEventParticipants', 'checkInEventParticipantsRequest', checkInEventParticipantsRequest)
18870
+ const localVarPath = `/api/events/{eventBookingId}/check-in`
18871
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
18872
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18873
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18874
+ let baseOptions;
18875
+ if (configuration) {
18876
+ baseOptions = configuration.baseOptions;
18877
+ }
18878
+
18879
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18880
+ const localVarHeaderParameter = {} as any;
18881
+ const localVarQueryParameter = {} as any;
18882
+
18883
+ // authentication bearerAuth required
18884
+ // http bearer authentication required
18885
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18886
+
18887
+
18888
+
18889
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18890
+
18891
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18893
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18894
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInEventParticipantsRequest, localVarRequestOptions, configuration)
18895
+
18896
+ return {
18897
+ url: toPathString(localVarUrlObj),
18898
+ options: localVarRequestOptions,
18899
+ };
18900
+ },
18284
18901
  /**
18285
18902
  * Get all events for a club (staff only)
18286
18903
  * @param {*} [options] Override http request option.
@@ -18324,6 +18941,19 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
18324
18941
  export const EventsStaffApiFp = function(configuration?: Configuration) {
18325
18942
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration)
18326
18943
  return {
18944
+ /**
18945
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
18946
+ * @param {string} eventBookingId
18947
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
18948
+ * @param {*} [options] Override http request option.
18949
+ * @throws {RequiredError}
18950
+ */
18951
+ async checkInEventParticipants(eventBookingId: string, checkInEventParticipantsRequest: CheckInEventParticipantsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInEventParticipants200Response>> {
18952
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options);
18953
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18954
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.checkInEventParticipants']?.[localVarOperationServerIndex]?.url;
18955
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18956
+ },
18327
18957
  /**
18328
18958
  * Get all events for a club (staff only)
18329
18959
  * @param {*} [options] Override http request option.
@@ -18345,6 +18975,15 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
18345
18975
  export const EventsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18346
18976
  const localVarFp = EventsStaffApiFp(configuration)
18347
18977
  return {
18978
+ /**
18979
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
18980
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
18981
+ * @param {*} [options] Override http request option.
18982
+ * @throws {RequiredError}
18983
+ */
18984
+ checkInEventParticipants(requestParameters: EventsStaffApiCheckInEventParticipantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInEventParticipants200Response> {
18985
+ return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
18986
+ },
18348
18987
  /**
18349
18988
  * Get all events for a club (staff only)
18350
18989
  * @param {*} [options] Override http request option.
@@ -18356,6 +18995,27 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
18356
18995
  };
18357
18996
  };
18358
18997
 
18998
+ /**
18999
+ * Request parameters for checkInEventParticipants operation in EventsStaffApi.
19000
+ * @export
19001
+ * @interface EventsStaffApiCheckInEventParticipantsRequest
19002
+ */
19003
+ export interface EventsStaffApiCheckInEventParticipantsRequest {
19004
+ /**
19005
+ *
19006
+ * @type {string}
19007
+ * @memberof EventsStaffApiCheckInEventParticipants
19008
+ */
19009
+ readonly eventBookingId: string
19010
+
19011
+ /**
19012
+ *
19013
+ * @type {CheckInEventParticipantsRequest}
19014
+ * @memberof EventsStaffApiCheckInEventParticipants
19015
+ */
19016
+ readonly checkInEventParticipantsRequest: CheckInEventParticipantsRequest
19017
+ }
19018
+
18359
19019
  /**
18360
19020
  * EventsStaffApi - object-oriented interface
18361
19021
  * @export
@@ -18363,6 +19023,17 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
18363
19023
  * @extends {BaseAPI}
18364
19024
  */
18365
19025
  export class EventsStaffApi extends BaseAPI {
19026
+ /**
19027
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
19028
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
19029
+ * @param {*} [options] Override http request option.
19030
+ * @throws {RequiredError}
19031
+ * @memberof EventsStaffApi
19032
+ */
19033
+ public checkInEventParticipants(requestParameters: EventsStaffApiCheckInEventParticipantsRequest, options?: RawAxiosRequestConfig) {
19034
+ return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
19035
+ }
19036
+
18366
19037
  /**
18367
19038
  * Get all events for a club (staff only)
18368
19039
  * @param {*} [options] Override http request option.