@tennac-booking/sdk 1.0.280 → 1.0.282
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +4 -0
- package/api.ts +242 -0
- package/dist/api.d.ts +156 -0
- package/dist/api.js +136 -0
- package/dist/esm/api.d.ts +156 -0
- package/dist/esm/api.js +136 -0
- package/docs/DeleteEventSeriesResponse.md +24 -0
- package/docs/EventsManagerApi.md +55 -0
- package/docs/EventsStaffApi.md +58 -0
- package/docs/StaffRegisterPlayerToEventRequest.md +28 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -182,6 +182,7 @@ docs/DefaultApi.md
|
|
|
182
182
|
docs/DeleteClubRoleResponse.md
|
|
183
183
|
docs/DeleteCourtResponse.md
|
|
184
184
|
docs/DeleteEventResponse.md
|
|
185
|
+
docs/DeleteEventSeriesResponse.md
|
|
185
186
|
docs/DeleteSportResponse.md
|
|
186
187
|
docs/DeleteSubscriptionPlanResponse.md
|
|
187
188
|
docs/DiscountType.md
|
|
@@ -424,6 +425,7 @@ docs/StaffEventDetailResponse.md
|
|
|
424
425
|
docs/StaffEventSeriesContext.md
|
|
425
426
|
docs/StaffEventSeriesResponse.md
|
|
426
427
|
docs/StaffEventsPageResponse.md
|
|
428
|
+
docs/StaffRegisterPlayerToEventRequest.md
|
|
427
429
|
docs/StaffUserProfileResponse.md
|
|
428
430
|
docs/SubscribeRequestBody.md
|
|
429
431
|
docs/SubscriberPrice.md
|
package/README.md
CHANGED
|
@@ -208,6 +208,7 @@ Class | Method | HTTP request | Description
|
|
|
208
208
|
*EventsManagerApi* | [**checkEventConflicts**](docs/EventsManagerApi.md#checkeventconflicts) | **POST** /api/events/manager/checkConflicts |
|
|
209
209
|
*EventsManagerApi* | [**createEvent**](docs/EventsManagerApi.md#createevent) | **POST** /api/events/manager/createEvent |
|
|
210
210
|
*EventsManagerApi* | [**deleteEvent**](docs/EventsManagerApi.md#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} |
|
|
211
|
+
*EventsManagerApi* | [**deleteEventSeries**](docs/EventsManagerApi.md#deleteeventseries) | **DELETE** /api/events/manager/deleteSeries/{seriesId} |
|
|
211
212
|
*EventsManagerApi* | [**getExpiringRecurringDefinitions**](docs/EventsManagerApi.md#getexpiringrecurringdefinitions) | **GET** /api/events/manager/recurring/expiring |
|
|
212
213
|
*EventsManagerApi* | [**publishEvent**](docs/EventsManagerApi.md#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} |
|
|
213
214
|
*EventsManagerApi* | [**unpublishEvent**](docs/EventsManagerApi.md#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} |
|
|
@@ -223,6 +224,7 @@ Class | Method | HTTP request | Description
|
|
|
223
224
|
*EventsStaffApi* | [**getPastEventsByClub**](docs/EventsStaffApi.md#getpasteventsbyclub) | **GET** /api/events/staff/getEvents/past |
|
|
224
225
|
*EventsStaffApi* | [**getUpcomingEventsByClub**](docs/EventsStaffApi.md#getupcomingeventsbyclub) | **GET** /api/events/staff/getEvents/upcoming |
|
|
225
226
|
*EventsStaffApi* | [**getWeeklyEvents**](docs/EventsStaffApi.md#getweeklyevents) | **GET** /api/events/calendar/weekly |
|
|
227
|
+
*EventsStaffApi* | [**registerPlayerToEventAsStaff**](docs/EventsStaffApi.md#registerplayertoeventasstaff) | **POST** /api/events/staff/{eventId}/register-player |
|
|
226
228
|
*ImagesApi* | [**cleanupImages**](docs/ImagesApi.md#cleanupimages) | **POST** /api/images/cleanup |
|
|
227
229
|
*JobsApi* | [**captureExpiringAuthorizations**](docs/JobsApi.md#captureexpiringauthorizations) | **GET** /api/jobs/capture-expiring-authorizations | Capture les autorisations Stripe qui expirent dans moins de 4h
|
|
228
230
|
*JobsApi* | [**capturePastReservations**](docs/JobsApi.md#capturepastreservations) | **GET** /api/jobs/capture-past-reservations | Capture les paiements autorisés pour les réservations passées
|
|
@@ -499,6 +501,7 @@ Class | Method | HTTP request | Description
|
|
|
499
501
|
- [DeleteClubRoleResponse](docs/DeleteClubRoleResponse.md)
|
|
500
502
|
- [DeleteCourtResponse](docs/DeleteCourtResponse.md)
|
|
501
503
|
- [DeleteEventResponse](docs/DeleteEventResponse.md)
|
|
504
|
+
- [DeleteEventSeriesResponse](docs/DeleteEventSeriesResponse.md)
|
|
502
505
|
- [DeleteSportResponse](docs/DeleteSportResponse.md)
|
|
503
506
|
- [DeleteSubscriptionPlanResponse](docs/DeleteSubscriptionPlanResponse.md)
|
|
504
507
|
- [DiscountType](docs/DiscountType.md)
|
|
@@ -732,6 +735,7 @@ Class | Method | HTTP request | Description
|
|
|
732
735
|
- [StaffEventSeriesContext](docs/StaffEventSeriesContext.md)
|
|
733
736
|
- [StaffEventSeriesResponse](docs/StaffEventSeriesResponse.md)
|
|
734
737
|
- [StaffEventsPageResponse](docs/StaffEventsPageResponse.md)
|
|
738
|
+
- [StaffRegisterPlayerToEventRequest](docs/StaffRegisterPlayerToEventRequest.md)
|
|
735
739
|
- [StaffUserProfileResponse](docs/StaffUserProfileResponse.md)
|
|
736
740
|
- [SubscribeRequestBody](docs/SubscribeRequestBody.md)
|
|
737
741
|
- [SubscriberPrice](docs/SubscriberPrice.md)
|
package/api.ts
CHANGED
|
@@ -6284,6 +6284,31 @@ export interface DeleteEventResponse {
|
|
|
6284
6284
|
*/
|
|
6285
6285
|
'message': string;
|
|
6286
6286
|
}
|
|
6287
|
+
/**
|
|
6288
|
+
*
|
|
6289
|
+
* @export
|
|
6290
|
+
* @interface DeleteEventSeriesResponse
|
|
6291
|
+
*/
|
|
6292
|
+
export interface DeleteEventSeriesResponse {
|
|
6293
|
+
/**
|
|
6294
|
+
*
|
|
6295
|
+
* @type {string}
|
|
6296
|
+
* @memberof DeleteEventSeriesResponse
|
|
6297
|
+
*/
|
|
6298
|
+
'message': string;
|
|
6299
|
+
/**
|
|
6300
|
+
*
|
|
6301
|
+
* @type {string}
|
|
6302
|
+
* @memberof DeleteEventSeriesResponse
|
|
6303
|
+
*/
|
|
6304
|
+
'seriesId': string;
|
|
6305
|
+
/**
|
|
6306
|
+
*
|
|
6307
|
+
* @type {number}
|
|
6308
|
+
* @memberof DeleteEventSeriesResponse
|
|
6309
|
+
*/
|
|
6310
|
+
'deletedEvents': number;
|
|
6311
|
+
}
|
|
6287
6312
|
/**
|
|
6288
6313
|
*
|
|
6289
6314
|
* @export
|
|
@@ -14852,6 +14877,43 @@ export interface StaffEventsPageResponse {
|
|
|
14852
14877
|
*/
|
|
14853
14878
|
'pagination': PaginationInfo;
|
|
14854
14879
|
}
|
|
14880
|
+
/**
|
|
14881
|
+
*
|
|
14882
|
+
* @export
|
|
14883
|
+
* @interface StaffRegisterPlayerToEventRequest
|
|
14884
|
+
*/
|
|
14885
|
+
export interface StaffRegisterPlayerToEventRequest {
|
|
14886
|
+
/**
|
|
14887
|
+
* Joueur existant à inscrire
|
|
14888
|
+
* @type {string}
|
|
14889
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14890
|
+
*/
|
|
14891
|
+
'playerId': string;
|
|
14892
|
+
/**
|
|
14893
|
+
* Nom de l\'équipe (requis pour les événements en équipe)
|
|
14894
|
+
* @type {string}
|
|
14895
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14896
|
+
*/
|
|
14897
|
+
'teamName'?: string;
|
|
14898
|
+
/**
|
|
14899
|
+
* Coéquipiers à inscrire avec `playerId` (sans inclure `playerId` lui-même) Utilisé pour les événements en équipe.
|
|
14900
|
+
* @type {Array<string>}
|
|
14901
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14902
|
+
*/
|
|
14903
|
+
'teammateIds'?: Array<string>;
|
|
14904
|
+
/**
|
|
14905
|
+
* Numéro de licence du joueur principal
|
|
14906
|
+
* @type {string}
|
|
14907
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14908
|
+
*/
|
|
14909
|
+
'licenceNumber'?: string;
|
|
14910
|
+
/**
|
|
14911
|
+
* Construct a type with a set of properties K of type T
|
|
14912
|
+
* @type {{ [key: string]: string; }}
|
|
14913
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14914
|
+
*/
|
|
14915
|
+
'playersLicenceNumbers'?: { [key: string]: string; };
|
|
14916
|
+
}
|
|
14855
14917
|
/**
|
|
14856
14918
|
*
|
|
14857
14919
|
* @export
|
|
@@ -32469,6 +32531,43 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
32469
32531
|
|
|
32470
32532
|
|
|
32471
32533
|
|
|
32534
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32535
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32536
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32537
|
+
|
|
32538
|
+
return {
|
|
32539
|
+
url: toPathString(localVarUrlObj),
|
|
32540
|
+
options: localVarRequestOptions,
|
|
32541
|
+
};
|
|
32542
|
+
},
|
|
32543
|
+
/**
|
|
32544
|
+
* Delete all events of a series (manager)
|
|
32545
|
+
* @param {string} seriesId
|
|
32546
|
+
* @param {*} [options] Override http request option.
|
|
32547
|
+
* @throws {RequiredError}
|
|
32548
|
+
*/
|
|
32549
|
+
deleteEventSeries: async (seriesId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32550
|
+
// verify required parameter 'seriesId' is not null or undefined
|
|
32551
|
+
assertParamExists('deleteEventSeries', 'seriesId', seriesId)
|
|
32552
|
+
const localVarPath = `/api/events/manager/deleteSeries/{seriesId}`
|
|
32553
|
+
.replace(`{${"seriesId"}}`, encodeURIComponent(String(seriesId)));
|
|
32554
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32555
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32556
|
+
let baseOptions;
|
|
32557
|
+
if (configuration) {
|
|
32558
|
+
baseOptions = configuration.baseOptions;
|
|
32559
|
+
}
|
|
32560
|
+
|
|
32561
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
32562
|
+
const localVarHeaderParameter = {} as any;
|
|
32563
|
+
const localVarQueryParameter = {} as any;
|
|
32564
|
+
|
|
32565
|
+
// authentication bearerAuth required
|
|
32566
|
+
// http bearer authentication required
|
|
32567
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32568
|
+
|
|
32569
|
+
|
|
32570
|
+
|
|
32472
32571
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32473
32572
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32474
32573
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -32777,6 +32876,18 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
|
|
|
32777
32876
|
const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.deleteEvent']?.[localVarOperationServerIndex]?.url;
|
|
32778
32877
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32779
32878
|
},
|
|
32879
|
+
/**
|
|
32880
|
+
* Delete all events of a series (manager)
|
|
32881
|
+
* @param {string} seriesId
|
|
32882
|
+
* @param {*} [options] Override http request option.
|
|
32883
|
+
* @throws {RequiredError}
|
|
32884
|
+
*/
|
|
32885
|
+
async deleteEventSeries(seriesId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventSeriesResponse>> {
|
|
32886
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEventSeries(seriesId, options);
|
|
32887
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32888
|
+
const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.deleteEventSeries']?.[localVarOperationServerIndex]?.url;
|
|
32889
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32890
|
+
},
|
|
32780
32891
|
/**
|
|
32781
32892
|
* List recurring definitions about to expire within `days` (manager)
|
|
32782
32893
|
* @param {number} [days]
|
|
@@ -32898,6 +33009,15 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
|
|
|
32898
33009
|
deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventResponse> {
|
|
32899
33010
|
return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
32900
33011
|
},
|
|
33012
|
+
/**
|
|
33013
|
+
* Delete all events of a series (manager)
|
|
33014
|
+
* @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
|
|
33015
|
+
* @param {*} [options] Override http request option.
|
|
33016
|
+
* @throws {RequiredError}
|
|
33017
|
+
*/
|
|
33018
|
+
deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventSeriesResponse> {
|
|
33019
|
+
return localVarFp.deleteEventSeries(requestParameters.seriesId, options).then((request) => request(axios, basePath));
|
|
33020
|
+
},
|
|
32901
33021
|
/**
|
|
32902
33022
|
* List recurring definitions about to expire within `days` (manager)
|
|
32903
33023
|
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
@@ -33011,6 +33131,20 @@ export interface EventsManagerApiDeleteEventRequest {
|
|
|
33011
33131
|
readonly eventId: string
|
|
33012
33132
|
}
|
|
33013
33133
|
|
|
33134
|
+
/**
|
|
33135
|
+
* Request parameters for deleteEventSeries operation in EventsManagerApi.
|
|
33136
|
+
* @export
|
|
33137
|
+
* @interface EventsManagerApiDeleteEventSeriesRequest
|
|
33138
|
+
*/
|
|
33139
|
+
export interface EventsManagerApiDeleteEventSeriesRequest {
|
|
33140
|
+
/**
|
|
33141
|
+
*
|
|
33142
|
+
* @type {string}
|
|
33143
|
+
* @memberof EventsManagerApiDeleteEventSeries
|
|
33144
|
+
*/
|
|
33145
|
+
readonly seriesId: string
|
|
33146
|
+
}
|
|
33147
|
+
|
|
33014
33148
|
/**
|
|
33015
33149
|
* Request parameters for getExpiringRecurringDefinitions operation in EventsManagerApi.
|
|
33016
33150
|
* @export
|
|
@@ -33167,6 +33301,17 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
33167
33301
|
return EventsManagerApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
33168
33302
|
}
|
|
33169
33303
|
|
|
33304
|
+
/**
|
|
33305
|
+
* Delete all events of a series (manager)
|
|
33306
|
+
* @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
|
|
33307
|
+
* @param {*} [options] Override http request option.
|
|
33308
|
+
* @throws {RequiredError}
|
|
33309
|
+
* @memberof EventsManagerApi
|
|
33310
|
+
*/
|
|
33311
|
+
public deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig) {
|
|
33312
|
+
return EventsManagerApiFp(this.configuration).deleteEventSeries(requestParameters.seriesId, options).then((request) => request(this.axios, this.basePath));
|
|
33313
|
+
}
|
|
33314
|
+
|
|
33170
33315
|
/**
|
|
33171
33316
|
* List recurring definitions about to expire within `days` (manager)
|
|
33172
33317
|
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
@@ -33642,6 +33787,49 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
33642
33787
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33643
33788
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33644
33789
|
|
|
33790
|
+
return {
|
|
33791
|
+
url: toPathString(localVarUrlObj),
|
|
33792
|
+
options: localVarRequestOptions,
|
|
33793
|
+
};
|
|
33794
|
+
},
|
|
33795
|
+
/**
|
|
33796
|
+
* Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
|
|
33797
|
+
* @param {string} eventId
|
|
33798
|
+
* @param {StaffRegisterPlayerToEventRequest} staffRegisterPlayerToEventRequest
|
|
33799
|
+
* @param {*} [options] Override http request option.
|
|
33800
|
+
* @throws {RequiredError}
|
|
33801
|
+
*/
|
|
33802
|
+
registerPlayerToEventAsStaff: async (eventId: string, staffRegisterPlayerToEventRequest: StaffRegisterPlayerToEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33803
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
33804
|
+
assertParamExists('registerPlayerToEventAsStaff', 'eventId', eventId)
|
|
33805
|
+
// verify required parameter 'staffRegisterPlayerToEventRequest' is not null or undefined
|
|
33806
|
+
assertParamExists('registerPlayerToEventAsStaff', 'staffRegisterPlayerToEventRequest', staffRegisterPlayerToEventRequest)
|
|
33807
|
+
const localVarPath = `/api/events/staff/{eventId}/register-player`
|
|
33808
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
33809
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33810
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33811
|
+
let baseOptions;
|
|
33812
|
+
if (configuration) {
|
|
33813
|
+
baseOptions = configuration.baseOptions;
|
|
33814
|
+
}
|
|
33815
|
+
|
|
33816
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
33817
|
+
const localVarHeaderParameter = {} as any;
|
|
33818
|
+
const localVarQueryParameter = {} as any;
|
|
33819
|
+
|
|
33820
|
+
// authentication bearerAuth required
|
|
33821
|
+
// http bearer authentication required
|
|
33822
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33823
|
+
|
|
33824
|
+
|
|
33825
|
+
|
|
33826
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33827
|
+
|
|
33828
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33829
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33830
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33831
|
+
localVarRequestOptions.data = serializeDataIfNeeded(staffRegisterPlayerToEventRequest, localVarRequestOptions, configuration)
|
|
33832
|
+
|
|
33645
33833
|
return {
|
|
33646
33834
|
url: toPathString(localVarUrlObj),
|
|
33647
33835
|
options: localVarRequestOptions,
|
|
@@ -33778,6 +33966,19 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
33778
33966
|
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getWeeklyEvents']?.[localVarOperationServerIndex]?.url;
|
|
33779
33967
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33780
33968
|
},
|
|
33969
|
+
/**
|
|
33970
|
+
* Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
|
|
33971
|
+
* @param {string} eventId
|
|
33972
|
+
* @param {StaffRegisterPlayerToEventRequest} staffRegisterPlayerToEventRequest
|
|
33973
|
+
* @param {*} [options] Override http request option.
|
|
33974
|
+
* @throws {RequiredError}
|
|
33975
|
+
*/
|
|
33976
|
+
async registerPlayerToEventAsStaff(eventId: string, staffRegisterPlayerToEventRequest: StaffRegisterPlayerToEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventResponse>> {
|
|
33977
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registerPlayerToEventAsStaff(eventId, staffRegisterPlayerToEventRequest, options);
|
|
33978
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33979
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.registerPlayerToEventAsStaff']?.[localVarOperationServerIndex]?.url;
|
|
33980
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33981
|
+
},
|
|
33781
33982
|
}
|
|
33782
33983
|
};
|
|
33783
33984
|
|
|
@@ -33866,6 +34067,15 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
33866
34067
|
getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
33867
34068
|
return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
33868
34069
|
},
|
|
34070
|
+
/**
|
|
34071
|
+
* Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
|
|
34072
|
+
* @param {EventsStaffApiRegisterPlayerToEventAsStaffRequest} requestParameters Request parameters.
|
|
34073
|
+
* @param {*} [options] Override http request option.
|
|
34074
|
+
* @throws {RequiredError}
|
|
34075
|
+
*/
|
|
34076
|
+
registerPlayerToEventAsStaff(requestParameters: EventsStaffApiRegisterPlayerToEventAsStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
|
|
34077
|
+
return localVarFp.registerPlayerToEventAsStaff(requestParameters.eventId, requestParameters.staffRegisterPlayerToEventRequest, options).then((request) => request(axios, basePath));
|
|
34078
|
+
},
|
|
33869
34079
|
};
|
|
33870
34080
|
};
|
|
33871
34081
|
|
|
@@ -34065,6 +34275,27 @@ export interface EventsStaffApiGetWeeklyEventsRequest {
|
|
|
34065
34275
|
readonly sportId?: string
|
|
34066
34276
|
}
|
|
34067
34277
|
|
|
34278
|
+
/**
|
|
34279
|
+
* Request parameters for registerPlayerToEventAsStaff operation in EventsStaffApi.
|
|
34280
|
+
* @export
|
|
34281
|
+
* @interface EventsStaffApiRegisterPlayerToEventAsStaffRequest
|
|
34282
|
+
*/
|
|
34283
|
+
export interface EventsStaffApiRegisterPlayerToEventAsStaffRequest {
|
|
34284
|
+
/**
|
|
34285
|
+
*
|
|
34286
|
+
* @type {string}
|
|
34287
|
+
* @memberof EventsStaffApiRegisterPlayerToEventAsStaff
|
|
34288
|
+
*/
|
|
34289
|
+
readonly eventId: string
|
|
34290
|
+
|
|
34291
|
+
/**
|
|
34292
|
+
*
|
|
34293
|
+
* @type {StaffRegisterPlayerToEventRequest}
|
|
34294
|
+
* @memberof EventsStaffApiRegisterPlayerToEventAsStaff
|
|
34295
|
+
*/
|
|
34296
|
+
readonly staffRegisterPlayerToEventRequest: StaffRegisterPlayerToEventRequest
|
|
34297
|
+
}
|
|
34298
|
+
|
|
34068
34299
|
/**
|
|
34069
34300
|
* EventsStaffApi - object-oriented interface
|
|
34070
34301
|
* @export
|
|
@@ -34167,6 +34398,17 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
34167
34398
|
public getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
34168
34399
|
return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
34169
34400
|
}
|
|
34401
|
+
|
|
34402
|
+
/**
|
|
34403
|
+
* Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
|
|
34404
|
+
* @param {EventsStaffApiRegisterPlayerToEventAsStaffRequest} requestParameters Request parameters.
|
|
34405
|
+
* @param {*} [options] Override http request option.
|
|
34406
|
+
* @throws {RequiredError}
|
|
34407
|
+
* @memberof EventsStaffApi
|
|
34408
|
+
*/
|
|
34409
|
+
public registerPlayerToEventAsStaff(requestParameters: EventsStaffApiRegisterPlayerToEventAsStaffRequest, options?: RawAxiosRequestConfig) {
|
|
34410
|
+
return EventsStaffApiFp(this.configuration).registerPlayerToEventAsStaff(requestParameters.eventId, requestParameters.staffRegisterPlayerToEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34411
|
+
}
|
|
34170
34412
|
}
|
|
34171
34413
|
|
|
34172
34414
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -6189,6 +6189,31 @@ export interface DeleteEventResponse {
|
|
|
6189
6189
|
*/
|
|
6190
6190
|
'message': string;
|
|
6191
6191
|
}
|
|
6192
|
+
/**
|
|
6193
|
+
*
|
|
6194
|
+
* @export
|
|
6195
|
+
* @interface DeleteEventSeriesResponse
|
|
6196
|
+
*/
|
|
6197
|
+
export interface DeleteEventSeriesResponse {
|
|
6198
|
+
/**
|
|
6199
|
+
*
|
|
6200
|
+
* @type {string}
|
|
6201
|
+
* @memberof DeleteEventSeriesResponse
|
|
6202
|
+
*/
|
|
6203
|
+
'message': string;
|
|
6204
|
+
/**
|
|
6205
|
+
*
|
|
6206
|
+
* @type {string}
|
|
6207
|
+
* @memberof DeleteEventSeriesResponse
|
|
6208
|
+
*/
|
|
6209
|
+
'seriesId': string;
|
|
6210
|
+
/**
|
|
6211
|
+
*
|
|
6212
|
+
* @type {number}
|
|
6213
|
+
* @memberof DeleteEventSeriesResponse
|
|
6214
|
+
*/
|
|
6215
|
+
'deletedEvents': number;
|
|
6216
|
+
}
|
|
6192
6217
|
/**
|
|
6193
6218
|
*
|
|
6194
6219
|
* @export
|
|
@@ -14607,6 +14632,45 @@ export interface StaffEventsPageResponse {
|
|
|
14607
14632
|
*/
|
|
14608
14633
|
'pagination': PaginationInfo;
|
|
14609
14634
|
}
|
|
14635
|
+
/**
|
|
14636
|
+
*
|
|
14637
|
+
* @export
|
|
14638
|
+
* @interface StaffRegisterPlayerToEventRequest
|
|
14639
|
+
*/
|
|
14640
|
+
export interface StaffRegisterPlayerToEventRequest {
|
|
14641
|
+
/**
|
|
14642
|
+
* Joueur existant à inscrire
|
|
14643
|
+
* @type {string}
|
|
14644
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14645
|
+
*/
|
|
14646
|
+
'playerId': string;
|
|
14647
|
+
/**
|
|
14648
|
+
* Nom de l\'équipe (requis pour les événements en équipe)
|
|
14649
|
+
* @type {string}
|
|
14650
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14651
|
+
*/
|
|
14652
|
+
'teamName'?: string;
|
|
14653
|
+
/**
|
|
14654
|
+
* Coéquipiers à inscrire avec `playerId` (sans inclure `playerId` lui-même) Utilisé pour les événements en équipe.
|
|
14655
|
+
* @type {Array<string>}
|
|
14656
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14657
|
+
*/
|
|
14658
|
+
'teammateIds'?: Array<string>;
|
|
14659
|
+
/**
|
|
14660
|
+
* Numéro de licence du joueur principal
|
|
14661
|
+
* @type {string}
|
|
14662
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14663
|
+
*/
|
|
14664
|
+
'licenceNumber'?: string;
|
|
14665
|
+
/**
|
|
14666
|
+
* Construct a type with a set of properties K of type T
|
|
14667
|
+
* @type {{ [key: string]: string; }}
|
|
14668
|
+
* @memberof StaffRegisterPlayerToEventRequest
|
|
14669
|
+
*/
|
|
14670
|
+
'playersLicenceNumbers'?: {
|
|
14671
|
+
[key: string]: string;
|
|
14672
|
+
};
|
|
14673
|
+
}
|
|
14610
14674
|
/**
|
|
14611
14675
|
*
|
|
14612
14676
|
* @export
|
|
@@ -25332,6 +25396,13 @@ export declare const EventsManagerApiAxiosParamCreator: (configuration?: Configu
|
|
|
25332
25396
|
* @throws {RequiredError}
|
|
25333
25397
|
*/
|
|
25334
25398
|
deleteEvent: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25399
|
+
/**
|
|
25400
|
+
* Delete all events of a series (manager)
|
|
25401
|
+
* @param {string} seriesId
|
|
25402
|
+
* @param {*} [options] Override http request option.
|
|
25403
|
+
* @throws {RequiredError}
|
|
25404
|
+
*/
|
|
25405
|
+
deleteEventSeries: (seriesId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25335
25406
|
/**
|
|
25336
25407
|
* List recurring definitions about to expire within `days` (manager)
|
|
25337
25408
|
* @param {number} [days]
|
|
@@ -25411,6 +25482,13 @@ export declare const EventsManagerApiFp: (configuration?: Configuration) => {
|
|
|
25411
25482
|
* @throws {RequiredError}
|
|
25412
25483
|
*/
|
|
25413
25484
|
deleteEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventResponse>>;
|
|
25485
|
+
/**
|
|
25486
|
+
* Delete all events of a series (manager)
|
|
25487
|
+
* @param {string} seriesId
|
|
25488
|
+
* @param {*} [options] Override http request option.
|
|
25489
|
+
* @throws {RequiredError}
|
|
25490
|
+
*/
|
|
25491
|
+
deleteEventSeries(seriesId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventSeriesResponse>>;
|
|
25414
25492
|
/**
|
|
25415
25493
|
* List recurring definitions about to expire within `days` (manager)
|
|
25416
25494
|
* @param {number} [days]
|
|
@@ -25490,6 +25568,13 @@ export declare const EventsManagerApiFactory: (configuration?: Configuration, ba
|
|
|
25490
25568
|
* @throws {RequiredError}
|
|
25491
25569
|
*/
|
|
25492
25570
|
deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventResponse>;
|
|
25571
|
+
/**
|
|
25572
|
+
* Delete all events of a series (manager)
|
|
25573
|
+
* @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
|
|
25574
|
+
* @param {*} [options] Override http request option.
|
|
25575
|
+
* @throws {RequiredError}
|
|
25576
|
+
*/
|
|
25577
|
+
deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventSeriesResponse>;
|
|
25493
25578
|
/**
|
|
25494
25579
|
* List recurring definitions about to expire within `days` (manager)
|
|
25495
25580
|
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
@@ -25585,6 +25670,19 @@ export interface EventsManagerApiDeleteEventRequest {
|
|
|
25585
25670
|
*/
|
|
25586
25671
|
readonly eventId: string;
|
|
25587
25672
|
}
|
|
25673
|
+
/**
|
|
25674
|
+
* Request parameters for deleteEventSeries operation in EventsManagerApi.
|
|
25675
|
+
* @export
|
|
25676
|
+
* @interface EventsManagerApiDeleteEventSeriesRequest
|
|
25677
|
+
*/
|
|
25678
|
+
export interface EventsManagerApiDeleteEventSeriesRequest {
|
|
25679
|
+
/**
|
|
25680
|
+
*
|
|
25681
|
+
* @type {string}
|
|
25682
|
+
* @memberof EventsManagerApiDeleteEventSeries
|
|
25683
|
+
*/
|
|
25684
|
+
readonly seriesId: string;
|
|
25685
|
+
}
|
|
25588
25686
|
/**
|
|
25589
25687
|
* Request parameters for getExpiringRecurringDefinitions operation in EventsManagerApi.
|
|
25590
25688
|
* @export
|
|
@@ -25720,6 +25818,14 @@ export declare class EventsManagerApi extends BaseAPI {
|
|
|
25720
25818
|
* @memberof EventsManagerApi
|
|
25721
25819
|
*/
|
|
25722
25820
|
deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteEventResponse, any, {}>>;
|
|
25821
|
+
/**
|
|
25822
|
+
* Delete all events of a series (manager)
|
|
25823
|
+
* @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
|
|
25824
|
+
* @param {*} [options] Override http request option.
|
|
25825
|
+
* @throws {RequiredError}
|
|
25826
|
+
* @memberof EventsManagerApi
|
|
25827
|
+
*/
|
|
25828
|
+
deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteEventSeriesResponse, any, {}>>;
|
|
25723
25829
|
/**
|
|
25724
25830
|
* List recurring definitions about to expire within `days` (manager)
|
|
25725
25831
|
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
@@ -25850,6 +25956,14 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
|
|
|
25850
25956
|
* @throws {RequiredError}
|
|
25851
25957
|
*/
|
|
25852
25958
|
getWeeklyEvents: (clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25959
|
+
/**
|
|
25960
|
+
* Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
|
|
25961
|
+
* @param {string} eventId
|
|
25962
|
+
* @param {StaffRegisterPlayerToEventRequest} staffRegisterPlayerToEventRequest
|
|
25963
|
+
* @param {*} [options] Override http request option.
|
|
25964
|
+
* @throws {RequiredError}
|
|
25965
|
+
*/
|
|
25966
|
+
registerPlayerToEventAsStaff: (eventId: string, staffRegisterPlayerToEventRequest: StaffRegisterPlayerToEventRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25853
25967
|
};
|
|
25854
25968
|
/**
|
|
25855
25969
|
* EventsStaffApi - functional programming interface
|
|
@@ -25932,6 +26046,14 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
|
|
|
25932
26046
|
* @throws {RequiredError}
|
|
25933
26047
|
*/
|
|
25934
26048
|
getWeeklyEvents(clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
|
|
26049
|
+
/**
|
|
26050
|
+
* Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
|
|
26051
|
+
* @param {string} eventId
|
|
26052
|
+
* @param {StaffRegisterPlayerToEventRequest} staffRegisterPlayerToEventRequest
|
|
26053
|
+
* @param {*} [options] Override http request option.
|
|
26054
|
+
* @throws {RequiredError}
|
|
26055
|
+
*/
|
|
26056
|
+
registerPlayerToEventAsStaff(eventId: string, staffRegisterPlayerToEventRequest: StaffRegisterPlayerToEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventResponse>>;
|
|
25935
26057
|
};
|
|
25936
26058
|
/**
|
|
25937
26059
|
* EventsStaffApi - factory interface
|
|
@@ -25998,6 +26120,13 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
|
|
|
25998
26120
|
* @throws {RequiredError}
|
|
25999
26121
|
*/
|
|
26000
26122
|
getWeeklyEvents(requestParameters?: EventsStaffApiGetWeeklyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
|
|
26123
|
+
/**
|
|
26124
|
+
* Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
|
|
26125
|
+
* @param {EventsStaffApiRegisterPlayerToEventAsStaffRequest} requestParameters Request parameters.
|
|
26126
|
+
* @param {*} [options] Override http request option.
|
|
26127
|
+
* @throws {RequiredError}
|
|
26128
|
+
*/
|
|
26129
|
+
registerPlayerToEventAsStaff(requestParameters: EventsStaffApiRegisterPlayerToEventAsStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse>;
|
|
26001
26130
|
};
|
|
26002
26131
|
/**
|
|
26003
26132
|
* Request parameters for checkInEventParticipants operation in EventsStaffApi.
|
|
@@ -26173,6 +26302,25 @@ export interface EventsStaffApiGetWeeklyEventsRequest {
|
|
|
26173
26302
|
*/
|
|
26174
26303
|
readonly sportId?: string;
|
|
26175
26304
|
}
|
|
26305
|
+
/**
|
|
26306
|
+
* Request parameters for registerPlayerToEventAsStaff operation in EventsStaffApi.
|
|
26307
|
+
* @export
|
|
26308
|
+
* @interface EventsStaffApiRegisterPlayerToEventAsStaffRequest
|
|
26309
|
+
*/
|
|
26310
|
+
export interface EventsStaffApiRegisterPlayerToEventAsStaffRequest {
|
|
26311
|
+
/**
|
|
26312
|
+
*
|
|
26313
|
+
* @type {string}
|
|
26314
|
+
* @memberof EventsStaffApiRegisterPlayerToEventAsStaff
|
|
26315
|
+
*/
|
|
26316
|
+
readonly eventId: string;
|
|
26317
|
+
/**
|
|
26318
|
+
*
|
|
26319
|
+
* @type {StaffRegisterPlayerToEventRequest}
|
|
26320
|
+
* @memberof EventsStaffApiRegisterPlayerToEventAsStaff
|
|
26321
|
+
*/
|
|
26322
|
+
readonly staffRegisterPlayerToEventRequest: StaffRegisterPlayerToEventRequest;
|
|
26323
|
+
}
|
|
26176
26324
|
/**
|
|
26177
26325
|
* EventsStaffApi - object-oriented interface
|
|
26178
26326
|
* @export
|
|
@@ -26249,6 +26397,14 @@ export declare class EventsStaffApi extends BaseAPI {
|
|
|
26249
26397
|
* @memberof EventsStaffApi
|
|
26250
26398
|
*/
|
|
26251
26399
|
getWeeklyEvents(requestParameters?: EventsStaffApiGetWeeklyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
|
|
26400
|
+
/**
|
|
26401
|
+
* Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
|
|
26402
|
+
* @param {EventsStaffApiRegisterPlayerToEventAsStaffRequest} requestParameters Request parameters.
|
|
26403
|
+
* @param {*} [options] Override http request option.
|
|
26404
|
+
* @throws {RequiredError}
|
|
26405
|
+
* @memberof EventsStaffApi
|
|
26406
|
+
*/
|
|
26407
|
+
registerPlayerToEventAsStaff(requestParameters: EventsStaffApiRegisterPlayerToEventAsStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JoinEventResponse, any, {}>>;
|
|
26252
26408
|
}
|
|
26253
26409
|
/**
|
|
26254
26410
|
* @export
|