@tennac-booking/sdk 1.0.155 → 1.0.157

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.
@@ -118,6 +118,7 @@ docs/CourtBookingShareItem.md
118
118
  docs/CourtInfo.md
119
119
  docs/CourtResponse.md
120
120
  docs/CourtStatus.md
121
+ docs/CreateActualityRequest.md
121
122
  docs/CreateBookingRequest.md
122
123
  docs/CreateClubRequest.md
123
124
  docs/CreateClubRoleRequest.md
package/README.md CHANGED
@@ -194,7 +194,6 @@ Class | Method | HTTP request | Description
194
194
  *EventsManagerApi* | [**updateRecurringDefinition**](docs/EventsManagerApi.md#updaterecurringdefinition) | **PUT** /api/events/manager/recurring/{definitionId} |
195
195
  *EventsStaffApi* | [**checkInEventParticipants**](docs/EventsStaffApi.md#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in |
196
196
  *EventsStaffApi* | [**getDailyEvents**](docs/EventsStaffApi.md#getdailyevents) | **GET** /api/events/calendar/daily |
197
- *EventsStaffApi* | [**getEventByIdStaff**](docs/EventsStaffApi.md#geteventbyidstaff) | **GET** /api/events/staff/{eventId} |
198
197
  *EventsStaffApi* | [**getEventsByClub**](docs/EventsStaffApi.md#geteventsbyclub) | **GET** /api/events/staff/getEvents |
199
198
  *EventsStaffApi* | [**getMonthlyEvents**](docs/EventsStaffApi.md#getmonthlyevents) | **GET** /api/events/calendar/monthly |
200
199
  *EventsStaffApi* | [**getWeeklyEvents**](docs/EventsStaffApi.md#getweeklyevents) | **GET** /api/events/calendar/weekly |
@@ -237,6 +236,7 @@ Class | Method | HTTP request | Description
237
236
  *UsersApi* | [**getUserProfileById**](docs/UsersApi.md#getuserprofilebyid) | **GET** /api/users/profile/{id} |
238
237
  *UsersApi* | [**listPlayers**](docs/UsersApi.md#listplayers) | **GET** /api/users/players |
239
238
  *UsersApi* | [**login**](docs/UsersApi.md#login) | **POST** /api/users/login |
239
+ *UsersApi* | [**loginClubMember**](docs/UsersApi.md#loginclubmember) | **POST** /api/users/club-members/login |
240
240
  *UsersApi* | [**refreshToken**](docs/UsersApi.md#refreshtoken) | **POST** /api/users/refresh-token |
241
241
  *UsersApi* | [**register**](docs/UsersApi.md#register) | **POST** /api/users |
242
242
  *UsersApi* | [**removeFavoriteClub**](docs/UsersApi.md#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} |
@@ -352,6 +352,7 @@ Class | Method | HTTP request | Description
352
352
  - [CourtInfo](docs/CourtInfo.md)
353
353
  - [CourtResponse](docs/CourtResponse.md)
354
354
  - [CourtStatus](docs/CourtStatus.md)
355
+ - [CreateActualityRequest](docs/CreateActualityRequest.md)
355
356
  - [CreateBookingRequest](docs/CreateBookingRequest.md)
356
357
  - [CreateClubRequest](docs/CreateClubRequest.md)
357
358
  - [CreateClubRoleRequest](docs/CreateClubRoleRequest.md)
package/api.ts CHANGED
@@ -3812,6 +3812,58 @@ export const CourtStatus = {
3812
3812
  export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
3813
3813
 
3814
3814
 
3815
+ /**
3816
+ *
3817
+ * @export
3818
+ * @interface CreateActualityRequest
3819
+ */
3820
+ export interface CreateActualityRequest {
3821
+ /**
3822
+ *
3823
+ * @type {string}
3824
+ * @memberof CreateActualityRequest
3825
+ */
3826
+ 'diffusionMode'?: CreateActualityRequestDiffusionModeEnum;
3827
+ /**
3828
+ * Nom affiché du sport
3829
+ * @type {string}
3830
+ * @memberof CreateActualityRequest
3831
+ */
3832
+ 'title': string;
3833
+ /**
3834
+ * Description du sport
3835
+ * @type {string}
3836
+ * @memberof CreateActualityRequest
3837
+ */
3838
+ 'content': string;
3839
+ /**
3840
+ * Niveaux associés
3841
+ * @type {string}
3842
+ * @memberof CreateActualityRequest
3843
+ */
3844
+ 'imageUrl'?: string;
3845
+ /**
3846
+ * URLs de logos/images
3847
+ * @type {string}
3848
+ * @memberof CreateActualityRequest
3849
+ */
3850
+ 'externalLink'?: string;
3851
+ /**
3852
+ *
3853
+ * @type {boolean}
3854
+ * @memberof CreateActualityRequest
3855
+ */
3856
+ 'isPublished'?: boolean;
3857
+ }
3858
+
3859
+ export const CreateActualityRequestDiffusionModeEnum = {
3860
+ Page: 'page',
3861
+ Newsletter: 'newsletter',
3862
+ Both: 'both'
3863
+ } as const;
3864
+
3865
+ export type CreateActualityRequestDiffusionModeEnum = typeof CreateActualityRequestDiffusionModeEnum[keyof typeof CreateActualityRequestDiffusionModeEnum];
3866
+
3815
3867
  /**
3816
3868
  *
3817
3869
  * @export
@@ -8524,12 +8576,6 @@ export interface PublishEventResponse {
8524
8576
  * @memberof PublishEventResponse
8525
8577
  */
8526
8578
  'needsToSetupPaymentMethod'?: boolean;
8527
- /**
8528
- *
8529
- * @type {Array<EventBookingResponse>}
8530
- * @memberof PublishEventResponse
8531
- */
8532
- 'eventBookings'?: Array<EventBookingResponse>;
8533
8579
  }
8534
8580
  /**
8535
8581
  *
@@ -20257,13 +20303,13 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
20257
20303
  },
20258
20304
  /**
20259
20305
  *
20260
- * @param {any} body
20306
+ * @param {CreateActualityRequest} createActualityRequest
20261
20307
  * @param {*} [options] Override http request option.
20262
20308
  * @throws {RequiredError}
20263
20309
  */
20264
- createActuality: async (body: any, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20265
- // verify required parameter 'body' is not null or undefined
20266
- assertParamExists('createActuality', 'body', body)
20310
+ createActuality: async (createActualityRequest: CreateActualityRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20311
+ // verify required parameter 'createActualityRequest' is not null or undefined
20312
+ assertParamExists('createActuality', 'createActualityRequest', createActualityRequest)
20267
20313
  const localVarPath = `/api/clubs/actualities`;
20268
20314
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20269
20315
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -20287,7 +20333,7 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
20287
20333
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20288
20334
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20289
20335
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20290
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
20336
+ localVarRequestOptions.data = serializeDataIfNeeded(createActualityRequest, localVarRequestOptions, configuration)
20291
20337
 
20292
20338
  return {
20293
20339
  url: toPathString(localVarUrlObj),
@@ -21032,12 +21078,12 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
21032
21078
  },
21033
21079
  /**
21034
21080
  *
21035
- * @param {any} body
21081
+ * @param {CreateActualityRequest} createActualityRequest
21036
21082
  * @param {*} [options] Override http request option.
21037
21083
  * @throws {RequiredError}
21038
21084
  */
21039
- async createActuality(body: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActuality200Response>> {
21040
- const localVarAxiosArgs = await localVarAxiosParamCreator.createActuality(body, options);
21085
+ async createActuality(createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActuality200Response>> {
21086
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createActuality(createActualityRequest, options);
21041
21087
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21042
21088
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.createActuality']?.[localVarOperationServerIndex]?.url;
21043
21089
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -21297,7 +21343,7 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
21297
21343
  * @throws {RequiredError}
21298
21344
  */
21299
21345
  createActuality(requestParameters: ClubsManagerApiCreateActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateActuality200Response> {
21300
- return localVarFp.createActuality(requestParameters.body, options).then((request) => request(axios, basePath));
21346
+ return localVarFp.createActuality(requestParameters.createActualityRequest, options).then((request) => request(axios, basePath));
21301
21347
  },
21302
21348
  /**
21303
21349
  * Crée un nouveau terrain pour un club
@@ -21499,10 +21545,10 @@ export interface ClubsManagerApiArchivePriceForSubscriptionPlanRequest {
21499
21545
  export interface ClubsManagerApiCreateActualityRequest {
21500
21546
  /**
21501
21547
  *
21502
- * @type {any}
21548
+ * @type {CreateActualityRequest}
21503
21549
  * @memberof ClubsManagerApiCreateActuality
21504
21550
  */
21505
- readonly body: any
21551
+ readonly createActualityRequest: CreateActualityRequest
21506
21552
  }
21507
21553
 
21508
21554
  /**
@@ -21815,7 +21861,7 @@ export class ClubsManagerApi extends BaseAPI {
21815
21861
  * @memberof ClubsManagerApi
21816
21862
  */
21817
21863
  public createActuality(requestParameters: ClubsManagerApiCreateActualityRequest, options?: RawAxiosRequestConfig) {
21818
- return ClubsManagerApiFp(this.configuration).createActuality(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
21864
+ return ClubsManagerApiFp(this.configuration).createActuality(requestParameters.createActualityRequest, options).then((request) => request(this.axios, this.basePath));
21819
21865
  }
21820
21866
 
21821
21867
  /**
@@ -25065,43 +25111,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
25065
25111
 
25066
25112
 
25067
25113
 
25068
- setSearchParams(localVarUrlObj, localVarQueryParameter);
25069
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25070
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
25071
-
25072
- return {
25073
- url: toPathString(localVarUrlObj),
25074
- options: localVarRequestOptions,
25075
- };
25076
- },
25077
- /**
25078
- *
25079
- * @param {string} eventId
25080
- * @param {*} [options] Override http request option.
25081
- * @throws {RequiredError}
25082
- */
25083
- getEventByIdStaff: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
25084
- // verify required parameter 'eventId' is not null or undefined
25085
- assertParamExists('getEventByIdStaff', 'eventId', eventId)
25086
- const localVarPath = `/api/events/staff/{eventId}`
25087
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
25088
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
25089
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25090
- let baseOptions;
25091
- if (configuration) {
25092
- baseOptions = configuration.baseOptions;
25093
- }
25094
-
25095
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
25096
- const localVarHeaderParameter = {} as any;
25097
- const localVarQueryParameter = {} as any;
25098
-
25099
- // authentication bearerAuth required
25100
- // http bearer authentication required
25101
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
25102
-
25103
-
25104
-
25105
25114
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25106
25115
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25107
25116
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -25299,18 +25308,6 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
25299
25308
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
25300
25309
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25301
25310
  },
25302
- /**
25303
- *
25304
- * @param {string} eventId
25305
- * @param {*} [options] Override http request option.
25306
- * @throws {RequiredError}
25307
- */
25308
- async getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
25309
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
25310
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
25311
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdStaff']?.[localVarOperationServerIndex]?.url;
25312
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25313
- },
25314
25311
  /**
25315
25312
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
25316
25313
  * @param {*} [options] Override http request option.
@@ -25382,15 +25379,6 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
25382
25379
  getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
25383
25380
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
25384
25381
  },
25385
- /**
25386
- *
25387
- * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
25388
- * @param {*} [options] Override http request option.
25389
- * @throws {RequiredError}
25390
- */
25391
- getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
25392
- return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
25393
- },
25394
25382
  /**
25395
25383
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
25396
25384
  * @param {*} [options] Override http request option.
@@ -25483,20 +25471,6 @@ export interface EventsStaffApiGetDailyEventsRequest {
25483
25471
  readonly sportId?: string
25484
25472
  }
25485
25473
 
25486
- /**
25487
- * Request parameters for getEventByIdStaff operation in EventsStaffApi.
25488
- * @export
25489
- * @interface EventsStaffApiGetEventByIdStaffRequest
25490
- */
25491
- export interface EventsStaffApiGetEventByIdStaffRequest {
25492
- /**
25493
- *
25494
- * @type {string}
25495
- * @memberof EventsStaffApiGetEventByIdStaff
25496
- */
25497
- readonly eventId: string
25498
- }
25499
-
25500
25474
  /**
25501
25475
  * Request parameters for getMonthlyEvents operation in EventsStaffApi.
25502
25476
  * @export
@@ -25610,17 +25584,6 @@ export class EventsStaffApi extends BaseAPI {
25610
25584
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
25611
25585
  }
25612
25586
 
25613
- /**
25614
- *
25615
- * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
25616
- * @param {*} [options] Override http request option.
25617
- * @throws {RequiredError}
25618
- * @memberof EventsStaffApi
25619
- */
25620
- public getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig) {
25621
- return EventsStaffApiFp(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
25622
- }
25623
-
25624
25587
  /**
25625
25588
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
25626
25589
  * @param {*} [options] Override http request option.
@@ -28288,6 +28251,41 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
28288
28251
 
28289
28252
 
28290
28253
 
28254
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28255
+
28256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28259
+ localVarRequestOptions.data = serializeDataIfNeeded(loginRequestBody, localVarRequestOptions, configuration)
28260
+
28261
+ return {
28262
+ url: toPathString(localVarUrlObj),
28263
+ options: localVarRequestOptions,
28264
+ };
28265
+ },
28266
+ /**
28267
+ *
28268
+ * @param {LoginRequestBody} loginRequestBody
28269
+ * @param {*} [options] Override http request option.
28270
+ * @throws {RequiredError}
28271
+ */
28272
+ loginClubMember: async (loginRequestBody: LoginRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28273
+ // verify required parameter 'loginRequestBody' is not null or undefined
28274
+ assertParamExists('loginClubMember', 'loginRequestBody', loginRequestBody)
28275
+ const localVarPath = `/api/users/club-members/login`;
28276
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28277
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28278
+ let baseOptions;
28279
+ if (configuration) {
28280
+ baseOptions = configuration.baseOptions;
28281
+ }
28282
+
28283
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28284
+ const localVarHeaderParameter = {} as any;
28285
+ const localVarQueryParameter = {} as any;
28286
+
28287
+
28288
+
28291
28289
  localVarHeaderParameter['Content-Type'] = 'application/json';
28292
28290
 
28293
28291
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29132,6 +29130,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
29132
29130
  const localVarOperationServerBasePath = operationServerMap['UsersApi.login']?.[localVarOperationServerIndex]?.url;
29133
29131
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29134
29132
  },
29133
+ /**
29134
+ *
29135
+ * @param {LoginRequestBody} loginRequestBody
29136
+ * @param {*} [options] Override http request option.
29137
+ * @throws {RequiredError}
29138
+ */
29139
+ async loginClubMember(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
29140
+ const localVarAxiosArgs = await localVarAxiosParamCreator.loginClubMember(loginRequestBody, options);
29141
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29142
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.loginClubMember']?.[localVarOperationServerIndex]?.url;
29143
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29144
+ },
29135
29145
  /**
29136
29146
  *
29137
29147
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -29511,6 +29521,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
29511
29521
  login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse> {
29512
29522
  return localVarFp.login(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
29513
29523
  },
29524
+ /**
29525
+ *
29526
+ * @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
29527
+ * @param {*} [options] Override http request option.
29528
+ * @throws {RequiredError}
29529
+ */
29530
+ loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse> {
29531
+ return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
29532
+ },
29514
29533
  /**
29515
29534
  *
29516
29535
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -29977,6 +29996,20 @@ export interface UsersApiLoginRequest {
29977
29996
  readonly loginRequestBody: LoginRequestBody
29978
29997
  }
29979
29998
 
29999
+ /**
30000
+ * Request parameters for loginClubMember operation in UsersApi.
30001
+ * @export
30002
+ * @interface UsersApiLoginClubMemberRequest
30003
+ */
30004
+ export interface UsersApiLoginClubMemberRequest {
30005
+ /**
30006
+ *
30007
+ * @type {LoginRequestBody}
30008
+ * @memberof UsersApiLoginClubMember
30009
+ */
30010
+ readonly loginRequestBody: LoginRequestBody
30011
+ }
30012
+
29980
30013
  /**
29981
30014
  * Request parameters for refreshToken operation in UsersApi.
29982
30015
  * @export
@@ -30414,6 +30447,17 @@ export class UsersApi extends BaseAPI {
30414
30447
  return UsersApiFp(this.configuration).login(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
30415
30448
  }
30416
30449
 
30450
+ /**
30451
+ *
30452
+ * @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
30453
+ * @param {*} [options] Override http request option.
30454
+ * @throws {RequiredError}
30455
+ * @memberof UsersApi
30456
+ */
30457
+ public loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig) {
30458
+ return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
30459
+ }
30460
+
30417
30461
  /**
30418
30462
  *
30419
30463
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
package/dist/api.d.ts CHANGED
@@ -3755,6 +3755,55 @@ export declare const CourtStatus: {
3755
3755
  readonly Unavailable: "unavailable";
3756
3756
  };
3757
3757
  export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
3758
+ /**
3759
+ *
3760
+ * @export
3761
+ * @interface CreateActualityRequest
3762
+ */
3763
+ export interface CreateActualityRequest {
3764
+ /**
3765
+ *
3766
+ * @type {string}
3767
+ * @memberof CreateActualityRequest
3768
+ */
3769
+ 'diffusionMode'?: CreateActualityRequestDiffusionModeEnum;
3770
+ /**
3771
+ * Nom affiché du sport
3772
+ * @type {string}
3773
+ * @memberof CreateActualityRequest
3774
+ */
3775
+ 'title': string;
3776
+ /**
3777
+ * Description du sport
3778
+ * @type {string}
3779
+ * @memberof CreateActualityRequest
3780
+ */
3781
+ 'content': string;
3782
+ /**
3783
+ * Niveaux associés
3784
+ * @type {string}
3785
+ * @memberof CreateActualityRequest
3786
+ */
3787
+ 'imageUrl'?: string;
3788
+ /**
3789
+ * URLs de logos/images
3790
+ * @type {string}
3791
+ * @memberof CreateActualityRequest
3792
+ */
3793
+ 'externalLink'?: string;
3794
+ /**
3795
+ *
3796
+ * @type {boolean}
3797
+ * @memberof CreateActualityRequest
3798
+ */
3799
+ 'isPublished'?: boolean;
3800
+ }
3801
+ export declare const CreateActualityRequestDiffusionModeEnum: {
3802
+ readonly Page: "page";
3803
+ readonly Newsletter: "newsletter";
3804
+ readonly Both: "both";
3805
+ };
3806
+ export type CreateActualityRequestDiffusionModeEnum = typeof CreateActualityRequestDiffusionModeEnum[keyof typeof CreateActualityRequestDiffusionModeEnum];
3758
3807
  /**
3759
3808
  *
3760
3809
  * @export
@@ -8367,12 +8416,6 @@ export interface PublishEventResponse {
8367
8416
  * @memberof PublishEventResponse
8368
8417
  */
8369
8418
  'needsToSetupPaymentMethod'?: boolean;
8370
- /**
8371
- *
8372
- * @type {Array<EventBookingResponse>}
8373
- * @memberof PublishEventResponse
8374
- */
8375
- 'eventBookings'?: Array<EventBookingResponse>;
8376
8419
  }
8377
8420
  /**
8378
8421
  *
@@ -16108,11 +16151,11 @@ export declare const ClubsManagerApiAxiosParamCreator: (configuration?: Configur
16108
16151
  archivePriceForSubscriptionPlan: (priceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16109
16152
  /**
16110
16153
  *
16111
- * @param {any} body
16154
+ * @param {CreateActualityRequest} createActualityRequest
16112
16155
  * @param {*} [options] Override http request option.
16113
16156
  * @throws {RequiredError}
16114
16157
  */
16115
- createActuality: (body: any, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16158
+ createActuality: (createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16116
16159
  /**
16117
16160
  * Crée un nouveau terrain pour un club
16118
16161
  * @param {CreateCourtRequest} createCourtRequest
@@ -16265,11 +16308,11 @@ export declare const ClubsManagerApiFp: (configuration?: Configuration) => {
16265
16308
  archivePriceForSubscriptionPlan(priceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSubscriptionPlanForClub200Response>>;
16266
16309
  /**
16267
16310
  *
16268
- * @param {any} body
16311
+ * @param {CreateActualityRequest} createActualityRequest
16269
16312
  * @param {*} [options] Override http request option.
16270
16313
  * @throws {RequiredError}
16271
16314
  */
16272
- createActuality(body: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActuality200Response>>;
16315
+ createActuality(createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActuality200Response>>;
16273
16316
  /**
16274
16317
  * Crée un nouveau terrain pour un club
16275
16318
  * @param {CreateCourtRequest} createCourtRequest
@@ -16587,10 +16630,10 @@ export interface ClubsManagerApiArchivePriceForSubscriptionPlanRequest {
16587
16630
  export interface ClubsManagerApiCreateActualityRequest {
16588
16631
  /**
16589
16632
  *
16590
- * @type {any}
16633
+ * @type {CreateActualityRequest}
16591
16634
  * @memberof ClubsManagerApiCreateActuality
16592
16635
  */
16593
- readonly body: any;
16636
+ readonly createActualityRequest: CreateActualityRequest;
16594
16637
  }
16595
16638
  /**
16596
16639
  * Request parameters for createCourtForClub operation in ClubsManagerApi.
@@ -18556,13 +18599,6 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
18556
18599
  * @throws {RequiredError}
18557
18600
  */
18558
18601
  getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18559
- /**
18560
- *
18561
- * @param {string} eventId
18562
- * @param {*} [options] Override http request option.
18563
- * @throws {RequiredError}
18564
- */
18565
- getEventByIdStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18566
18602
  /**
18567
18603
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18568
18604
  * @param {*} [options] Override http request option.
@@ -18616,13 +18652,6 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
18616
18652
  * @throws {RequiredError}
18617
18653
  */
18618
18654
  getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
18619
- /**
18620
- *
18621
- * @param {string} eventId
18622
- * @param {*} [options] Override http request option.
18623
- * @throws {RequiredError}
18624
- */
18625
- getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
18626
18655
  /**
18627
18656
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18628
18657
  * @param {*} [options] Override http request option.
@@ -18671,13 +18700,6 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
18671
18700
  * @throws {RequiredError}
18672
18701
  */
18673
18702
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
18674
- /**
18675
- *
18676
- * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
18677
- * @param {*} [options] Override http request option.
18678
- * @throws {RequiredError}
18679
- */
18680
- getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
18681
18703
  /**
18682
18704
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18683
18705
  * @param {*} [options] Override http request option.
@@ -18755,19 +18777,6 @@ export interface EventsStaffApiGetDailyEventsRequest {
18755
18777
  */
18756
18778
  readonly sportId?: string;
18757
18779
  }
18758
- /**
18759
- * Request parameters for getEventByIdStaff operation in EventsStaffApi.
18760
- * @export
18761
- * @interface EventsStaffApiGetEventByIdStaffRequest
18762
- */
18763
- export interface EventsStaffApiGetEventByIdStaffRequest {
18764
- /**
18765
- *
18766
- * @type {string}
18767
- * @memberof EventsStaffApiGetEventByIdStaff
18768
- */
18769
- readonly eventId: string;
18770
- }
18771
18780
  /**
18772
18781
  * Request parameters for getMonthlyEvents operation in EventsStaffApi.
18773
18782
  * @export
@@ -18865,14 +18874,6 @@ export declare class EventsStaffApi extends BaseAPI {
18865
18874
  * @memberof EventsStaffApi
18866
18875
  */
18867
18876
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
18868
- /**
18869
- *
18870
- * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
18871
- * @param {*} [options] Override http request option.
18872
- * @throws {RequiredError}
18873
- * @memberof EventsStaffApi
18874
- */
18875
- getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
18876
18877
  /**
18877
18878
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18878
18879
  * @param {*} [options] Override http request option.
@@ -20013,6 +20014,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
20013
20014
  * @throws {RequiredError}
20014
20015
  */
20015
20016
  login: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20017
+ /**
20018
+ *
20019
+ * @param {LoginRequestBody} loginRequestBody
20020
+ * @param {*} [options] Override http request option.
20021
+ * @throws {RequiredError}
20022
+ */
20023
+ loginClubMember: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20016
20024
  /**
20017
20025
  *
20018
20026
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -20296,6 +20304,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
20296
20304
  * @throws {RequiredError}
20297
20305
  */
20298
20306
  login(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
20307
+ /**
20308
+ *
20309
+ * @param {LoginRequestBody} loginRequestBody
20310
+ * @param {*} [options] Override http request option.
20311
+ * @throws {RequiredError}
20312
+ */
20313
+ loginClubMember(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
20299
20314
  /**
20300
20315
  *
20301
20316
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -20560,6 +20575,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
20560
20575
  * @throws {RequiredError}
20561
20576
  */
20562
20577
  login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
20578
+ /**
20579
+ *
20580
+ * @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
20581
+ * @param {*} [options] Override http request option.
20582
+ * @throws {RequiredError}
20583
+ */
20584
+ loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
20563
20585
  /**
20564
20586
  *
20565
20587
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -20961,6 +20983,19 @@ export interface UsersApiLoginRequest {
20961
20983
  */
20962
20984
  readonly loginRequestBody: LoginRequestBody;
20963
20985
  }
20986
+ /**
20987
+ * Request parameters for loginClubMember operation in UsersApi.
20988
+ * @export
20989
+ * @interface UsersApiLoginClubMemberRequest
20990
+ */
20991
+ export interface UsersApiLoginClubMemberRequest {
20992
+ /**
20993
+ *
20994
+ * @type {LoginRequestBody}
20995
+ * @memberof UsersApiLoginClubMember
20996
+ */
20997
+ readonly loginRequestBody: LoginRequestBody;
20998
+ }
20964
20999
  /**
20965
21000
  * Request parameters for refreshToken operation in UsersApi.
20966
21001
  * @export
@@ -21326,6 +21361,14 @@ export declare class UsersApi extends BaseAPI {
21326
21361
  * @memberof UsersApi
21327
21362
  */
21328
21363
  login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
21364
+ /**
21365
+ *
21366
+ * @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
21367
+ * @param {*} [options] Override http request option.
21368
+ * @throws {RequiredError}
21369
+ * @memberof UsersApi
21370
+ */
21371
+ loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
21329
21372
  /**
21330
21373
  *
21331
21374
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.