@tennac-booking/sdk 1.0.170 → 1.0.171

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.163
7
+ * The version of the OpenAPI document: 1.0.171
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5117,6 +5117,12 @@ export interface EventBookingDetailSummary {
5117
5117
  * @memberof EventBookingDetailSummary
5118
5118
  */
5119
5119
  'limitCancellationDate'?: string | null;
5120
+ /**
5121
+ * Position dans la file d\'attente si l\'utilisateur est en waitlist pour cet événement
5122
+ * @type {number}
5123
+ * @memberof EventBookingDetailSummary
5124
+ */
5125
+ 'waitListPosition'?: number | null;
5120
5126
  /**
5121
5127
  *
5122
5128
  * @type {string}
@@ -6245,6 +6251,44 @@ export interface GetSlotsByClubById200Response {
6245
6251
  */
6246
6252
  'slots': Array<any>;
6247
6253
  }
6254
+ /**
6255
+ *
6256
+ * @export
6257
+ * @interface GetUserPosition200Response
6258
+ */
6259
+ export interface GetUserPosition200Response {
6260
+ /**
6261
+ *
6262
+ * @type {string}
6263
+ * @memberof GetUserPosition200Response
6264
+ */
6265
+ 'message'?: string;
6266
+ /**
6267
+ *
6268
+ * @type {number}
6269
+ * @memberof GetUserPosition200Response
6270
+ */
6271
+ 'position': number | null;
6272
+ }
6273
+ /**
6274
+ *
6275
+ * @export
6276
+ * @interface GetWaitListForEvent200Response
6277
+ */
6278
+ export interface GetWaitListForEvent200Response {
6279
+ /**
6280
+ *
6281
+ * @type {number}
6282
+ * @memberof GetWaitListForEvent200Response
6283
+ */
6284
+ 'total': number;
6285
+ /**
6286
+ *
6287
+ * @type {Array<WaitListResponse>}
6288
+ * @memberof GetWaitListForEvent200Response
6289
+ */
6290
+ 'waitList': Array<WaitListResponse>;
6291
+ }
6248
6292
  /**
6249
6293
  *
6250
6294
  * @export
@@ -7302,6 +7346,58 @@ export interface JoinOpenEventResponse {
7302
7346
  */
7303
7347
  'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
7304
7348
  }
7349
+ /**
7350
+ *
7351
+ * @export
7352
+ * @interface JoinWaitList200Response
7353
+ */
7354
+ export interface JoinWaitList200Response {
7355
+ /**
7356
+ *
7357
+ * @type {boolean}
7358
+ * @memberof JoinWaitList200Response
7359
+ */
7360
+ 'requiresSetup'?: boolean;
7361
+ /**
7362
+ *
7363
+ * @type {string}
7364
+ * @memberof JoinWaitList200Response
7365
+ */
7366
+ 'paymentLink'?: string;
7367
+ /**
7368
+ *
7369
+ * @type {WaitListResponse}
7370
+ * @memberof JoinWaitList200Response
7371
+ */
7372
+ 'waitList': WaitListResponse;
7373
+ /**
7374
+ *
7375
+ * @type {string}
7376
+ * @memberof JoinWaitList200Response
7377
+ */
7378
+ 'message': string;
7379
+ }
7380
+ /**
7381
+ *
7382
+ * @export
7383
+ * @interface JoinWaitListRequest
7384
+ */
7385
+ export interface JoinWaitListRequest {
7386
+ /**
7387
+ *
7388
+ * @type {PaymentMethod}
7389
+ * @memberof JoinWaitListRequest
7390
+ */
7391
+ 'paymentMethod'?: PaymentMethod;
7392
+ /**
7393
+ *
7394
+ * @type {boolean}
7395
+ * @memberof JoinWaitListRequest
7396
+ */
7397
+ 'useDefaultPaymentMethod'?: boolean;
7398
+ }
7399
+
7400
+
7305
7401
  /**
7306
7402
  *
7307
7403
  * @export
@@ -12819,6 +12915,73 @@ export const VisibilityType = {
12819
12915
  export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
12820
12916
 
12821
12917
 
12918
+ /**
12919
+ *
12920
+ * @export
12921
+ * @interface WaitListResponse
12922
+ */
12923
+ export interface WaitListResponse {
12924
+ /**
12925
+ *
12926
+ * @type {string}
12927
+ * @memberof WaitListResponse
12928
+ */
12929
+ 'id': string;
12930
+ /**
12931
+ *
12932
+ * @type {string}
12933
+ * @memberof WaitListResponse
12934
+ */
12935
+ 'eventId': string;
12936
+ /**
12937
+ *
12938
+ * @type {string}
12939
+ * @memberof WaitListResponse
12940
+ */
12941
+ 'userId': string;
12942
+ /**
12943
+ *
12944
+ * @type {string}
12945
+ * @memberof WaitListResponse
12946
+ */
12947
+ 'status': string;
12948
+ /**
12949
+ *
12950
+ * @type {number}
12951
+ * @memberof WaitListResponse
12952
+ */
12953
+ 'position': number;
12954
+ /**
12955
+ *
12956
+ * @type {number}
12957
+ * @memberof WaitListResponse
12958
+ */
12959
+ 'priceInCents': number;
12960
+ /**
12961
+ *
12962
+ * @type {boolean}
12963
+ * @memberof WaitListResponse
12964
+ */
12965
+ 'paymentAuthorized': boolean;
12966
+ /**
12967
+ *
12968
+ * @type {string}
12969
+ * @memberof WaitListResponse
12970
+ */
12971
+ 'joinedAt': string;
12972
+ /**
12973
+ *
12974
+ * @type {string}
12975
+ * @memberof WaitListResponse
12976
+ */
12977
+ 'expiresAt'?: string;
12978
+ /**
12979
+ *
12980
+ * @type {string}
12981
+ * @memberof WaitListResponse
12982
+ */
12983
+ 'paymentLink'?: string;
12984
+ }
12822
12985
  /**
12823
12986
  *
12824
12987
  * @export
@@ -26413,6 +26576,513 @@ export const GetWeeklyEventsTypeEnum = {
26413
26576
  export type GetWeeklyEventsTypeEnum = typeof GetWeeklyEventsTypeEnum[keyof typeof GetWeeklyEventsTypeEnum];
26414
26577
 
26415
26578
 
26579
+ /**
26580
+ * EventsWaitListApi - axios parameter creator
26581
+ * @export
26582
+ */
26583
+ export const EventsWaitListApiAxiosParamCreator = function (configuration?: Configuration) {
26584
+ return {
26585
+ /**
26586
+ * Obtenir la position actuelle dans la file d\'attente
26587
+ * @param {string} eventId
26588
+ * @param {*} [options] Override http request option.
26589
+ * @throws {RequiredError}
26590
+ */
26591
+ getUserPosition: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26592
+ // verify required parameter 'eventId' is not null or undefined
26593
+ assertParamExists('getUserPosition', 'eventId', eventId)
26594
+ const localVarPath = `/api/events/waitlist/{eventId}/position`
26595
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
26596
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26597
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26598
+ let baseOptions;
26599
+ if (configuration) {
26600
+ baseOptions = configuration.baseOptions;
26601
+ }
26602
+
26603
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26604
+ const localVarHeaderParameter = {} as any;
26605
+ const localVarQueryParameter = {} as any;
26606
+
26607
+ // authentication bearerAuth required
26608
+ // http bearer authentication required
26609
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26610
+
26611
+
26612
+
26613
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26614
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26615
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26616
+
26617
+ return {
26618
+ url: toPathString(localVarUrlObj),
26619
+ options: localVarRequestOptions,
26620
+ };
26621
+ },
26622
+ /**
26623
+ * Rejoindre la file d\'attente pour un événement
26624
+ * @param {string} eventId
26625
+ * @param {JoinWaitListRequest} joinWaitListRequest
26626
+ * @param {*} [options] Override http request option.
26627
+ * @throws {RequiredError}
26628
+ */
26629
+ joinWaitList: async (eventId: string, joinWaitListRequest: JoinWaitListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26630
+ // verify required parameter 'eventId' is not null or undefined
26631
+ assertParamExists('joinWaitList', 'eventId', eventId)
26632
+ // verify required parameter 'joinWaitListRequest' is not null or undefined
26633
+ assertParamExists('joinWaitList', 'joinWaitListRequest', joinWaitListRequest)
26634
+ const localVarPath = `/api/events/waitlist/{eventId}/join`
26635
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
26636
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26637
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26638
+ let baseOptions;
26639
+ if (configuration) {
26640
+ baseOptions = configuration.baseOptions;
26641
+ }
26642
+
26643
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26644
+ const localVarHeaderParameter = {} as any;
26645
+ const localVarQueryParameter = {} as any;
26646
+
26647
+ // authentication bearerAuth required
26648
+ // http bearer authentication required
26649
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26650
+
26651
+
26652
+
26653
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26654
+
26655
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26656
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26657
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26658
+ localVarRequestOptions.data = serializeDataIfNeeded(joinWaitListRequest, localVarRequestOptions, configuration)
26659
+
26660
+ return {
26661
+ url: toPathString(localVarUrlObj),
26662
+ options: localVarRequestOptions,
26663
+ };
26664
+ },
26665
+ /**
26666
+ * Quitter la file d\'attente
26667
+ * @param {string} eventId
26668
+ * @param {*} [options] Override http request option.
26669
+ * @throws {RequiredError}
26670
+ */
26671
+ leaveWaitList: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26672
+ // verify required parameter 'eventId' is not null or undefined
26673
+ assertParamExists('leaveWaitList', 'eventId', eventId)
26674
+ const localVarPath = `/api/events/waitlist/{eventId}/leave`
26675
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
26676
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26677
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26678
+ let baseOptions;
26679
+ if (configuration) {
26680
+ baseOptions = configuration.baseOptions;
26681
+ }
26682
+
26683
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
26684
+ const localVarHeaderParameter = {} as any;
26685
+ const localVarQueryParameter = {} as any;
26686
+
26687
+ // authentication bearerAuth required
26688
+ // http bearer authentication required
26689
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26690
+
26691
+
26692
+
26693
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26694
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26695
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26696
+
26697
+ return {
26698
+ url: toPathString(localVarUrlObj),
26699
+ options: localVarRequestOptions,
26700
+ };
26701
+ },
26702
+ }
26703
+ };
26704
+
26705
+ /**
26706
+ * EventsWaitListApi - functional programming interface
26707
+ * @export
26708
+ */
26709
+ export const EventsWaitListApiFp = function(configuration?: Configuration) {
26710
+ const localVarAxiosParamCreator = EventsWaitListApiAxiosParamCreator(configuration)
26711
+ return {
26712
+ /**
26713
+ * Obtenir la position actuelle dans la file d\'attente
26714
+ * @param {string} eventId
26715
+ * @param {*} [options] Override http request option.
26716
+ * @throws {RequiredError}
26717
+ */
26718
+ async getUserPosition(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserPosition200Response>> {
26719
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPosition(eventId, options);
26720
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26721
+ const localVarOperationServerBasePath = operationServerMap['EventsWaitListApi.getUserPosition']?.[localVarOperationServerIndex]?.url;
26722
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26723
+ },
26724
+ /**
26725
+ * Rejoindre la file d\'attente pour un événement
26726
+ * @param {string} eventId
26727
+ * @param {JoinWaitListRequest} joinWaitListRequest
26728
+ * @param {*} [options] Override http request option.
26729
+ * @throws {RequiredError}
26730
+ */
26731
+ async joinWaitList(eventId: string, joinWaitListRequest: JoinWaitListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinWaitList200Response>> {
26732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.joinWaitList(eventId, joinWaitListRequest, options);
26733
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26734
+ const localVarOperationServerBasePath = operationServerMap['EventsWaitListApi.joinWaitList']?.[localVarOperationServerIndex]?.url;
26735
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26736
+ },
26737
+ /**
26738
+ * Quitter la file d\'attente
26739
+ * @param {string} eventId
26740
+ * @param {*} [options] Override http request option.
26741
+ * @throws {RequiredError}
26742
+ */
26743
+ async leaveWaitList(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
26744
+ const localVarAxiosArgs = await localVarAxiosParamCreator.leaveWaitList(eventId, options);
26745
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26746
+ const localVarOperationServerBasePath = operationServerMap['EventsWaitListApi.leaveWaitList']?.[localVarOperationServerIndex]?.url;
26747
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26748
+ },
26749
+ }
26750
+ };
26751
+
26752
+ /**
26753
+ * EventsWaitListApi - factory interface
26754
+ * @export
26755
+ */
26756
+ export const EventsWaitListApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
26757
+ const localVarFp = EventsWaitListApiFp(configuration)
26758
+ return {
26759
+ /**
26760
+ * Obtenir la position actuelle dans la file d\'attente
26761
+ * @param {EventsWaitListApiGetUserPositionRequest} requestParameters Request parameters.
26762
+ * @param {*} [options] Override http request option.
26763
+ * @throws {RequiredError}
26764
+ */
26765
+ getUserPosition(requestParameters: EventsWaitListApiGetUserPositionRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPosition200Response> {
26766
+ return localVarFp.getUserPosition(requestParameters.eventId, options).then((request) => request(axios, basePath));
26767
+ },
26768
+ /**
26769
+ * Rejoindre la file d\'attente pour un événement
26770
+ * @param {EventsWaitListApiJoinWaitListRequest} requestParameters Request parameters.
26771
+ * @param {*} [options] Override http request option.
26772
+ * @throws {RequiredError}
26773
+ */
26774
+ joinWaitList(requestParameters: EventsWaitListApiJoinWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinWaitList200Response> {
26775
+ return localVarFp.joinWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(axios, basePath));
26776
+ },
26777
+ /**
26778
+ * Quitter la file d\'attente
26779
+ * @param {EventsWaitListApiLeaveWaitListRequest} requestParameters Request parameters.
26780
+ * @param {*} [options] Override http request option.
26781
+ * @throws {RequiredError}
26782
+ */
26783
+ leaveWaitList(requestParameters: EventsWaitListApiLeaveWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
26784
+ return localVarFp.leaveWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
26785
+ },
26786
+ };
26787
+ };
26788
+
26789
+ /**
26790
+ * Request parameters for getUserPosition operation in EventsWaitListApi.
26791
+ * @export
26792
+ * @interface EventsWaitListApiGetUserPositionRequest
26793
+ */
26794
+ export interface EventsWaitListApiGetUserPositionRequest {
26795
+ /**
26796
+ *
26797
+ * @type {string}
26798
+ * @memberof EventsWaitListApiGetUserPosition
26799
+ */
26800
+ readonly eventId: string
26801
+ }
26802
+
26803
+ /**
26804
+ * Request parameters for joinWaitList operation in EventsWaitListApi.
26805
+ * @export
26806
+ * @interface EventsWaitListApiJoinWaitListRequest
26807
+ */
26808
+ export interface EventsWaitListApiJoinWaitListRequest {
26809
+ /**
26810
+ *
26811
+ * @type {string}
26812
+ * @memberof EventsWaitListApiJoinWaitList
26813
+ */
26814
+ readonly eventId: string
26815
+
26816
+ /**
26817
+ *
26818
+ * @type {JoinWaitListRequest}
26819
+ * @memberof EventsWaitListApiJoinWaitList
26820
+ */
26821
+ readonly joinWaitListRequest: JoinWaitListRequest
26822
+ }
26823
+
26824
+ /**
26825
+ * Request parameters for leaveWaitList operation in EventsWaitListApi.
26826
+ * @export
26827
+ * @interface EventsWaitListApiLeaveWaitListRequest
26828
+ */
26829
+ export interface EventsWaitListApiLeaveWaitListRequest {
26830
+ /**
26831
+ *
26832
+ * @type {string}
26833
+ * @memberof EventsWaitListApiLeaveWaitList
26834
+ */
26835
+ readonly eventId: string
26836
+ }
26837
+
26838
+ /**
26839
+ * EventsWaitListApi - object-oriented interface
26840
+ * @export
26841
+ * @class EventsWaitListApi
26842
+ * @extends {BaseAPI}
26843
+ */
26844
+ export class EventsWaitListApi extends BaseAPI {
26845
+ /**
26846
+ * Obtenir la position actuelle dans la file d\'attente
26847
+ * @param {EventsWaitListApiGetUserPositionRequest} requestParameters Request parameters.
26848
+ * @param {*} [options] Override http request option.
26849
+ * @throws {RequiredError}
26850
+ * @memberof EventsWaitListApi
26851
+ */
26852
+ public getUserPosition(requestParameters: EventsWaitListApiGetUserPositionRequest, options?: RawAxiosRequestConfig) {
26853
+ return EventsWaitListApiFp(this.configuration).getUserPosition(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
26854
+ }
26855
+
26856
+ /**
26857
+ * Rejoindre la file d\'attente pour un événement
26858
+ * @param {EventsWaitListApiJoinWaitListRequest} requestParameters Request parameters.
26859
+ * @param {*} [options] Override http request option.
26860
+ * @throws {RequiredError}
26861
+ * @memberof EventsWaitListApi
26862
+ */
26863
+ public joinWaitList(requestParameters: EventsWaitListApiJoinWaitListRequest, options?: RawAxiosRequestConfig) {
26864
+ return EventsWaitListApiFp(this.configuration).joinWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(this.axios, this.basePath));
26865
+ }
26866
+
26867
+ /**
26868
+ * Quitter la file d\'attente
26869
+ * @param {EventsWaitListApiLeaveWaitListRequest} requestParameters Request parameters.
26870
+ * @param {*} [options] Override http request option.
26871
+ * @throws {RequiredError}
26872
+ * @memberof EventsWaitListApi
26873
+ */
26874
+ public leaveWaitList(requestParameters: EventsWaitListApiLeaveWaitListRequest, options?: RawAxiosRequestConfig) {
26875
+ return EventsWaitListApiFp(this.configuration).leaveWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
26876
+ }
26877
+ }
26878
+
26879
+
26880
+
26881
+ /**
26882
+ * EventsWaitListStaffApi - axios parameter creator
26883
+ * @export
26884
+ */
26885
+ export const EventsWaitListStaffApiAxiosParamCreator = function (configuration?: Configuration) {
26886
+ return {
26887
+ /**
26888
+ * Obtenir la liste complète de la file d\'attente (staff only)
26889
+ * @param {string} eventId
26890
+ * @param {*} [options] Override http request option.
26891
+ * @throws {RequiredError}
26892
+ */
26893
+ getWaitListForEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26894
+ // verify required parameter 'eventId' is not null or undefined
26895
+ assertParamExists('getWaitListForEvent', 'eventId', eventId)
26896
+ const localVarPath = `/api/events/waitlist/{eventId}`
26897
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
26898
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26899
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26900
+ let baseOptions;
26901
+ if (configuration) {
26902
+ baseOptions = configuration.baseOptions;
26903
+ }
26904
+
26905
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26906
+ const localVarHeaderParameter = {} as any;
26907
+ const localVarQueryParameter = {} as any;
26908
+
26909
+ // authentication bearerAuth required
26910
+ // http bearer authentication required
26911
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26912
+
26913
+
26914
+
26915
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26916
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26917
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26918
+
26919
+ return {
26920
+ url: toPathString(localVarUrlObj),
26921
+ options: localVarRequestOptions,
26922
+ };
26923
+ },
26924
+ /**
26925
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
26926
+ * @param {string} eventId
26927
+ * @param {*} [options] Override http request option.
26928
+ * @throws {RequiredError}
26929
+ */
26930
+ processWaitList: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26931
+ // verify required parameter 'eventId' is not null or undefined
26932
+ assertParamExists('processWaitList', 'eventId', eventId)
26933
+ const localVarPath = `/api/events/waitlist/{eventId}/process`
26934
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
26935
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26936
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26937
+ let baseOptions;
26938
+ if (configuration) {
26939
+ baseOptions = configuration.baseOptions;
26940
+ }
26941
+
26942
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26943
+ const localVarHeaderParameter = {} as any;
26944
+ const localVarQueryParameter = {} as any;
26945
+
26946
+ // authentication bearerAuth required
26947
+ // http bearer authentication required
26948
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26949
+
26950
+
26951
+
26952
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26953
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26954
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26955
+
26956
+ return {
26957
+ url: toPathString(localVarUrlObj),
26958
+ options: localVarRequestOptions,
26959
+ };
26960
+ },
26961
+ }
26962
+ };
26963
+
26964
+ /**
26965
+ * EventsWaitListStaffApi - functional programming interface
26966
+ * @export
26967
+ */
26968
+ export const EventsWaitListStaffApiFp = function(configuration?: Configuration) {
26969
+ const localVarAxiosParamCreator = EventsWaitListStaffApiAxiosParamCreator(configuration)
26970
+ return {
26971
+ /**
26972
+ * Obtenir la liste complète de la file d\'attente (staff only)
26973
+ * @param {string} eventId
26974
+ * @param {*} [options] Override http request option.
26975
+ * @throws {RequiredError}
26976
+ */
26977
+ async getWaitListForEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetWaitListForEvent200Response>> {
26978
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWaitListForEvent(eventId, options);
26979
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26980
+ const localVarOperationServerBasePath = operationServerMap['EventsWaitListStaffApi.getWaitListForEvent']?.[localVarOperationServerIndex]?.url;
26981
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26982
+ },
26983
+ /**
26984
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
26985
+ * @param {string} eventId
26986
+ * @param {*} [options] Override http request option.
26987
+ * @throws {RequiredError}
26988
+ */
26989
+ async processWaitList(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
26990
+ const localVarAxiosArgs = await localVarAxiosParamCreator.processWaitList(eventId, options);
26991
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26992
+ const localVarOperationServerBasePath = operationServerMap['EventsWaitListStaffApi.processWaitList']?.[localVarOperationServerIndex]?.url;
26993
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26994
+ },
26995
+ }
26996
+ };
26997
+
26998
+ /**
26999
+ * EventsWaitListStaffApi - factory interface
27000
+ * @export
27001
+ */
27002
+ export const EventsWaitListStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27003
+ const localVarFp = EventsWaitListStaffApiFp(configuration)
27004
+ return {
27005
+ /**
27006
+ * Obtenir la liste complète de la file d\'attente (staff only)
27007
+ * @param {EventsWaitListStaffApiGetWaitListForEventRequest} requestParameters Request parameters.
27008
+ * @param {*} [options] Override http request option.
27009
+ * @throws {RequiredError}
27010
+ */
27011
+ getWaitListForEvent(requestParameters: EventsWaitListStaffApiGetWaitListForEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetWaitListForEvent200Response> {
27012
+ return localVarFp.getWaitListForEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
27013
+ },
27014
+ /**
27015
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27016
+ * @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
27017
+ * @param {*} [options] Override http request option.
27018
+ * @throws {RequiredError}
27019
+ */
27020
+ processWaitList(requestParameters: EventsWaitListStaffApiProcessWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
27021
+ return localVarFp.processWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
27022
+ },
27023
+ };
27024
+ };
27025
+
27026
+ /**
27027
+ * Request parameters for getWaitListForEvent operation in EventsWaitListStaffApi.
27028
+ * @export
27029
+ * @interface EventsWaitListStaffApiGetWaitListForEventRequest
27030
+ */
27031
+ export interface EventsWaitListStaffApiGetWaitListForEventRequest {
27032
+ /**
27033
+ *
27034
+ * @type {string}
27035
+ * @memberof EventsWaitListStaffApiGetWaitListForEvent
27036
+ */
27037
+ readonly eventId: string
27038
+ }
27039
+
27040
+ /**
27041
+ * Request parameters for processWaitList operation in EventsWaitListStaffApi.
27042
+ * @export
27043
+ * @interface EventsWaitListStaffApiProcessWaitListRequest
27044
+ */
27045
+ export interface EventsWaitListStaffApiProcessWaitListRequest {
27046
+ /**
27047
+ *
27048
+ * @type {string}
27049
+ * @memberof EventsWaitListStaffApiProcessWaitList
27050
+ */
27051
+ readonly eventId: string
27052
+ }
27053
+
27054
+ /**
27055
+ * EventsWaitListStaffApi - object-oriented interface
27056
+ * @export
27057
+ * @class EventsWaitListStaffApi
27058
+ * @extends {BaseAPI}
27059
+ */
27060
+ export class EventsWaitListStaffApi extends BaseAPI {
27061
+ /**
27062
+ * Obtenir la liste complète de la file d\'attente (staff only)
27063
+ * @param {EventsWaitListStaffApiGetWaitListForEventRequest} requestParameters Request parameters.
27064
+ * @param {*} [options] Override http request option.
27065
+ * @throws {RequiredError}
27066
+ * @memberof EventsWaitListStaffApi
27067
+ */
27068
+ public getWaitListForEvent(requestParameters: EventsWaitListStaffApiGetWaitListForEventRequest, options?: RawAxiosRequestConfig) {
27069
+ return EventsWaitListStaffApiFp(this.configuration).getWaitListForEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
27070
+ }
27071
+
27072
+ /**
27073
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27074
+ * @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
27075
+ * @param {*} [options] Override http request option.
27076
+ * @throws {RequiredError}
27077
+ * @memberof EventsWaitListStaffApi
27078
+ */
27079
+ public processWaitList(requestParameters: EventsWaitListStaffApiProcessWaitListRequest, options?: RawAxiosRequestConfig) {
27080
+ return EventsWaitListStaffApiFp(this.configuration).processWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
27081
+ }
27082
+ }
27083
+
27084
+
27085
+
26416
27086
  /**
26417
27087
  * ImagesApi - axios parameter creator
26418
27088
  * @export