@tennac-booking/sdk 1.0.192 → 1.0.194

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
@@ -867,6 +867,30 @@ export interface BookingPopulated {
867
867
  * @memberof BookingPopulated
868
868
  */
869
869
  'cancellationReason'?: string;
870
+ /**
871
+ *
872
+ * @type {boolean}
873
+ * @memberof BookingPopulated
874
+ */
875
+ 'isOpen': boolean;
876
+ /**
877
+ *
878
+ * @type {string}
879
+ * @memberof BookingPopulated
880
+ */
881
+ 'description'?: string;
882
+ /**
883
+ *
884
+ * @type {string}
885
+ * @memberof BookingPopulated
886
+ */
887
+ 'minLevel'?: string;
888
+ /**
889
+ *
890
+ * @type {number}
891
+ * @memberof BookingPopulated
892
+ */
893
+ 'maxPlayers'?: number;
870
894
  }
871
895
 
872
896
 
@@ -6677,6 +6701,25 @@ export interface GoogleAuthResponseUser {
6677
6701
  */
6678
6702
  'id': string;
6679
6703
  }
6704
+ /**
6705
+ *
6706
+ * @export
6707
+ * @interface Health200Response
6708
+ */
6709
+ export interface Health200Response {
6710
+ /**
6711
+ *
6712
+ * @type {string}
6713
+ * @memberof Health200Response
6714
+ */
6715
+ 'timestamp': string;
6716
+ /**
6717
+ *
6718
+ * @type {string}
6719
+ * @memberof Health200Response
6720
+ */
6721
+ 'status': string;
6722
+ }
6680
6723
  /**
6681
6724
  *
6682
6725
  * @export
@@ -7398,6 +7441,33 @@ export const InvoiceStatusSETUPSUCCESS = {
7398
7441
  export type InvoiceStatusSETUPSUCCESS = typeof InvoiceStatusSETUPSUCCESS[keyof typeof InvoiceStatusSETUPSUCCESS];
7399
7442
 
7400
7443
 
7444
+ /**
7445
+ *
7446
+ * @export
7447
+ * @interface JobResult
7448
+ */
7449
+ export interface JobResult {
7450
+ [key: string]: any;
7451
+
7452
+ /**
7453
+ *
7454
+ * @type {boolean}
7455
+ * @memberof JobResult
7456
+ */
7457
+ 'success': boolean;
7458
+ /**
7459
+ *
7460
+ * @type {string}
7461
+ * @memberof JobResult
7462
+ */
7463
+ 'job': string;
7464
+ /**
7465
+ *
7466
+ * @type {string}
7467
+ * @memberof JobResult
7468
+ */
7469
+ 'timestamp': string;
7470
+ }
7401
7471
  /**
7402
7472
  *
7403
7473
  * @export
@@ -14083,6 +14153,100 @@ export const VisibilityType = {
14083
14153
  export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
14084
14154
 
14085
14155
 
14156
+ /**
14157
+ *
14158
+ * @export
14159
+ * @interface WaitListEntryWithPlayer
14160
+ */
14161
+ export interface WaitListEntryWithPlayer {
14162
+ /**
14163
+ *
14164
+ * @type {string}
14165
+ * @memberof WaitListEntryWithPlayer
14166
+ */
14167
+ 'id': string;
14168
+ /**
14169
+ *
14170
+ * @type {string}
14171
+ * @memberof WaitListEntryWithPlayer
14172
+ */
14173
+ 'userId': string;
14174
+ /**
14175
+ *
14176
+ * @type {string}
14177
+ * @memberof WaitListEntryWithPlayer
14178
+ */
14179
+ 'clubId': string;
14180
+ /**
14181
+ *
14182
+ * @type {string}
14183
+ * @memberof WaitListEntryWithPlayer
14184
+ */
14185
+ 'targetType': WaitListEntryWithPlayerTargetTypeEnum;
14186
+ /**
14187
+ *
14188
+ * @type {string}
14189
+ * @memberof WaitListEntryWithPlayer
14190
+ */
14191
+ 'targetId': string;
14192
+ /**
14193
+ *
14194
+ * @type {string}
14195
+ * @memberof WaitListEntryWithPlayer
14196
+ */
14197
+ 'status': string;
14198
+ /**
14199
+ *
14200
+ * @type {number}
14201
+ * @memberof WaitListEntryWithPlayer
14202
+ */
14203
+ 'position': number;
14204
+ /**
14205
+ *
14206
+ * @type {number}
14207
+ * @memberof WaitListEntryWithPlayer
14208
+ */
14209
+ 'priceInCents': number;
14210
+ /**
14211
+ *
14212
+ * @type {string}
14213
+ * @memberof WaitListEntryWithPlayer
14214
+ */
14215
+ 'joinedAt': string;
14216
+ /**
14217
+ *
14218
+ * @type {string}
14219
+ * @memberof WaitListEntryWithPlayer
14220
+ */
14221
+ 'notifiedAt'?: string;
14222
+ /**
14223
+ *
14224
+ * @type {string}
14225
+ * @memberof WaitListEntryWithPlayer
14226
+ */
14227
+ 'paymentExpiresAt'?: string;
14228
+ /**
14229
+ *
14230
+ * @type {string}
14231
+ * @memberof WaitListEntryWithPlayer
14232
+ */
14233
+ 'confirmedAt'?: string;
14234
+ /**
14235
+ *
14236
+ * @type {WaitListPlayer}
14237
+ * @memberof WaitListEntryWithPlayer
14238
+ */
14239
+ 'player': WaitListPlayer;
14240
+ }
14241
+
14242
+ export const WaitListEntryWithPlayerTargetTypeEnum = {
14243
+ Event: 'event',
14244
+ Booking: 'booking',
14245
+ EventBooking: 'event_booking'
14246
+ } as const;
14247
+
14248
+ export type WaitListEntryWithPlayerTargetTypeEnum = typeof WaitListEntryWithPlayerTargetTypeEnum[keyof typeof WaitListEntryWithPlayerTargetTypeEnum];
14249
+
14086
14250
  /**
14087
14251
  *
14088
14252
  * @export
@@ -14102,6 +14266,62 @@ export interface WaitListListResponse {
14102
14266
  */
14103
14267
  'total': number;
14104
14268
  }
14269
+ /**
14270
+ *
14271
+ * @export
14272
+ * @interface WaitListPlayer
14273
+ */
14274
+ export interface WaitListPlayer {
14275
+ /**
14276
+ *
14277
+ * @type {string}
14278
+ * @memberof WaitListPlayer
14279
+ */
14280
+ 'id': string;
14281
+ /**
14282
+ *
14283
+ * @type {string}
14284
+ * @memberof WaitListPlayer
14285
+ */
14286
+ 'firstName': string;
14287
+ /**
14288
+ *
14289
+ * @type {string}
14290
+ * @memberof WaitListPlayer
14291
+ */
14292
+ 'lastName': string;
14293
+ /**
14294
+ *
14295
+ * @type {string}
14296
+ * @memberof WaitListPlayer
14297
+ */
14298
+ 'username'?: string;
14299
+ /**
14300
+ *
14301
+ * @type {string}
14302
+ * @memberof WaitListPlayer
14303
+ */
14304
+ 'profilePicture'?: string;
14305
+ }
14306
+ /**
14307
+ *
14308
+ * @export
14309
+ * @interface WaitListPlayersListResponse
14310
+ */
14311
+ export interface WaitListPlayersListResponse {
14312
+ /**
14313
+ *
14314
+ * @type {Array<WaitListEntryWithPlayer>}
14315
+ * @memberof WaitListPlayersListResponse
14316
+ */
14317
+ 'waitList': Array<WaitListEntryWithPlayer>;
14318
+ /**
14319
+ *
14320
+ * @type {number}
14321
+ * @memberof WaitListPlayersListResponse
14322
+ */
14323
+ 'total': number;
14324
+ }
14105
14325
  /**
14106
14326
  *
14107
14327
  * @export
@@ -28619,6 +28839,479 @@ export class ImagesApi extends BaseAPI {
28619
28839
 
28620
28840
 
28621
28841
 
28842
+ /**
28843
+ * JobsApi - axios parameter creator
28844
+ * @export
28845
+ */
28846
+ export const JobsApiAxiosParamCreator = function (configuration?: Configuration) {
28847
+ return {
28848
+ /**
28849
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
28850
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
28851
+ * @param {*} [options] Override http request option.
28852
+ * @throws {RequiredError}
28853
+ */
28854
+ captureExpiringAuthorizations: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28855
+ const localVarPath = `/api/jobs/capture-expiring-authorizations`;
28856
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28857
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28858
+ let baseOptions;
28859
+ if (configuration) {
28860
+ baseOptions = configuration.baseOptions;
28861
+ }
28862
+
28863
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28864
+ const localVarHeaderParameter = {} as any;
28865
+ const localVarQueryParameter = {} as any;
28866
+
28867
+
28868
+
28869
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28870
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28871
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28872
+
28873
+ return {
28874
+ url: toPathString(localVarUrlObj),
28875
+ options: localVarRequestOptions,
28876
+ };
28877
+ },
28878
+ /**
28879
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
28880
+ * @summary Capture les paiements autorisés pour les réservations passées
28881
+ * @param {*} [options] Override http request option.
28882
+ * @throws {RequiredError}
28883
+ */
28884
+ capturePastReservations: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28885
+ const localVarPath = `/api/jobs/capture-past-reservations`;
28886
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28887
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28888
+ let baseOptions;
28889
+ if (configuration) {
28890
+ baseOptions = configuration.baseOptions;
28891
+ }
28892
+
28893
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28894
+ const localVarHeaderParameter = {} as any;
28895
+ const localVarQueryParameter = {} as any;
28896
+
28897
+
28898
+
28899
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28900
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28901
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28902
+
28903
+ return {
28904
+ url: toPathString(localVarUrlObj),
28905
+ options: localVarRequestOptions,
28906
+ };
28907
+ },
28908
+ /**
28909
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
28910
+ * @summary Expire les réservations en attente de paiement
28911
+ * @param {*} [options] Override http request option.
28912
+ * @throws {RequiredError}
28913
+ */
28914
+ expireBookingWaitingPayments: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28915
+ const localVarPath = `/api/jobs/expire-booking-waiting-payments`;
28916
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28917
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28918
+ let baseOptions;
28919
+ if (configuration) {
28920
+ baseOptions = configuration.baseOptions;
28921
+ }
28922
+
28923
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28924
+ const localVarHeaderParameter = {} as any;
28925
+ const localVarQueryParameter = {} as any;
28926
+
28927
+
28928
+
28929
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28931
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28932
+
28933
+ return {
28934
+ url: toPathString(localVarUrlObj),
28935
+ options: localVarRequestOptions,
28936
+ };
28937
+ },
28938
+ /**
28939
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
28940
+ * @summary Expire les paiements en attente sur la waitlist
28941
+ * @param {*} [options] Override http request option.
28942
+ * @throws {RequiredError}
28943
+ */
28944
+ expireWaitlistPayments: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28945
+ const localVarPath = `/api/jobs/expire-waitlist-payments`;
28946
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28947
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28948
+ let baseOptions;
28949
+ if (configuration) {
28950
+ baseOptions = configuration.baseOptions;
28951
+ }
28952
+
28953
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28954
+ const localVarHeaderParameter = {} as any;
28955
+ const localVarQueryParameter = {} as any;
28956
+
28957
+
28958
+
28959
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28960
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28961
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28962
+
28963
+ return {
28964
+ url: toPathString(localVarUrlObj),
28965
+ options: localVarRequestOptions,
28966
+ };
28967
+ },
28968
+ /**
28969
+ * Route de santé pour vérifier que le service jobs est opérationnel
28970
+ * @summary Health check pour les jobs
28971
+ * @param {*} [options] Override http request option.
28972
+ * @throws {RequiredError}
28973
+ */
28974
+ health: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28975
+ const localVarPath = `/api/jobs/health`;
28976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28978
+ let baseOptions;
28979
+ if (configuration) {
28980
+ baseOptions = configuration.baseOptions;
28981
+ }
28982
+
28983
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28984
+ const localVarHeaderParameter = {} as any;
28985
+ const localVarQueryParameter = {} as any;
28986
+
28987
+
28988
+
28989
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28990
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28991
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28992
+
28993
+ return {
28994
+ url: toPathString(localVarUrlObj),
28995
+ options: localVarRequestOptions,
28996
+ };
28997
+ },
28998
+ /**
28999
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
29000
+ * @summary Génère les créneaux futurs et nettoie les anciens
29001
+ * @param {*} [options] Override http request option.
29002
+ * @throws {RequiredError}
29003
+ */
29004
+ maintainSlots: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29005
+ const localVarPath = `/api/jobs/maintain-slots`;
29006
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29007
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29008
+ let baseOptions;
29009
+ if (configuration) {
29010
+ baseOptions = configuration.baseOptions;
29011
+ }
29012
+
29013
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29014
+ const localVarHeaderParameter = {} as any;
29015
+ const localVarQueryParameter = {} as any;
29016
+
29017
+
29018
+
29019
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29020
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29021
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29022
+
29023
+ return {
29024
+ url: toPathString(localVarUrlObj),
29025
+ options: localVarRequestOptions,
29026
+ };
29027
+ },
29028
+ /**
29029
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
29030
+ * @summary Libère les anciennes réservations terminées
29031
+ * @param {*} [options] Override http request option.
29032
+ * @throws {RequiredError}
29033
+ */
29034
+ releaseOldBookings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29035
+ const localVarPath = `/api/jobs/release-old-bookings`;
29036
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29037
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29038
+ let baseOptions;
29039
+ if (configuration) {
29040
+ baseOptions = configuration.baseOptions;
29041
+ }
29042
+
29043
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29044
+ const localVarHeaderParameter = {} as any;
29045
+ const localVarQueryParameter = {} as any;
29046
+
29047
+
29048
+
29049
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29051
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29052
+
29053
+ return {
29054
+ url: toPathString(localVarUrlObj),
29055
+ options: localVarRequestOptions,
29056
+ };
29057
+ },
29058
+ }
29059
+ };
29060
+
29061
+ /**
29062
+ * JobsApi - functional programming interface
29063
+ * @export
29064
+ */
29065
+ export const JobsApiFp = function(configuration?: Configuration) {
29066
+ const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration)
29067
+ return {
29068
+ /**
29069
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
29070
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
29071
+ * @param {*} [options] Override http request option.
29072
+ * @throws {RequiredError}
29073
+ */
29074
+ async captureExpiringAuthorizations(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobResult>> {
29075
+ const localVarAxiosArgs = await localVarAxiosParamCreator.captureExpiringAuthorizations(options);
29076
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29077
+ const localVarOperationServerBasePath = operationServerMap['JobsApi.captureExpiringAuthorizations']?.[localVarOperationServerIndex]?.url;
29078
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29079
+ },
29080
+ /**
29081
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
29082
+ * @summary Capture les paiements autorisés pour les réservations passées
29083
+ * @param {*} [options] Override http request option.
29084
+ * @throws {RequiredError}
29085
+ */
29086
+ async capturePastReservations(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobResult>> {
29087
+ const localVarAxiosArgs = await localVarAxiosParamCreator.capturePastReservations(options);
29088
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29089
+ const localVarOperationServerBasePath = operationServerMap['JobsApi.capturePastReservations']?.[localVarOperationServerIndex]?.url;
29090
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29091
+ },
29092
+ /**
29093
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
29094
+ * @summary Expire les réservations en attente de paiement
29095
+ * @param {*} [options] Override http request option.
29096
+ * @throws {RequiredError}
29097
+ */
29098
+ async expireBookingWaitingPayments(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobResult>> {
29099
+ const localVarAxiosArgs = await localVarAxiosParamCreator.expireBookingWaitingPayments(options);
29100
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29101
+ const localVarOperationServerBasePath = operationServerMap['JobsApi.expireBookingWaitingPayments']?.[localVarOperationServerIndex]?.url;
29102
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29103
+ },
29104
+ /**
29105
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
29106
+ * @summary Expire les paiements en attente sur la waitlist
29107
+ * @param {*} [options] Override http request option.
29108
+ * @throws {RequiredError}
29109
+ */
29110
+ async expireWaitlistPayments(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobResult>> {
29111
+ const localVarAxiosArgs = await localVarAxiosParamCreator.expireWaitlistPayments(options);
29112
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29113
+ const localVarOperationServerBasePath = operationServerMap['JobsApi.expireWaitlistPayments']?.[localVarOperationServerIndex]?.url;
29114
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29115
+ },
29116
+ /**
29117
+ * Route de santé pour vérifier que le service jobs est opérationnel
29118
+ * @summary Health check pour les jobs
29119
+ * @param {*} [options] Override http request option.
29120
+ * @throws {RequiredError}
29121
+ */
29122
+ async health(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Health200Response>> {
29123
+ const localVarAxiosArgs = await localVarAxiosParamCreator.health(options);
29124
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29125
+ const localVarOperationServerBasePath = operationServerMap['JobsApi.health']?.[localVarOperationServerIndex]?.url;
29126
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29127
+ },
29128
+ /**
29129
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
29130
+ * @summary Génère les créneaux futurs et nettoie les anciens
29131
+ * @param {*} [options] Override http request option.
29132
+ * @throws {RequiredError}
29133
+ */
29134
+ async maintainSlots(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobResult>> {
29135
+ const localVarAxiosArgs = await localVarAxiosParamCreator.maintainSlots(options);
29136
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29137
+ const localVarOperationServerBasePath = operationServerMap['JobsApi.maintainSlots']?.[localVarOperationServerIndex]?.url;
29138
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29139
+ },
29140
+ /**
29141
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
29142
+ * @summary Libère les anciennes réservations terminées
29143
+ * @param {*} [options] Override http request option.
29144
+ * @throws {RequiredError}
29145
+ */
29146
+ async releaseOldBookings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobResult>> {
29147
+ const localVarAxiosArgs = await localVarAxiosParamCreator.releaseOldBookings(options);
29148
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29149
+ const localVarOperationServerBasePath = operationServerMap['JobsApi.releaseOldBookings']?.[localVarOperationServerIndex]?.url;
29150
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29151
+ },
29152
+ }
29153
+ };
29154
+
29155
+ /**
29156
+ * JobsApi - factory interface
29157
+ * @export
29158
+ */
29159
+ export const JobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29160
+ const localVarFp = JobsApiFp(configuration)
29161
+ return {
29162
+ /**
29163
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
29164
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
29165
+ * @param {*} [options] Override http request option.
29166
+ * @throws {RequiredError}
29167
+ */
29168
+ captureExpiringAuthorizations(options?: RawAxiosRequestConfig): AxiosPromise<JobResult> {
29169
+ return localVarFp.captureExpiringAuthorizations(options).then((request) => request(axios, basePath));
29170
+ },
29171
+ /**
29172
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
29173
+ * @summary Capture les paiements autorisés pour les réservations passées
29174
+ * @param {*} [options] Override http request option.
29175
+ * @throws {RequiredError}
29176
+ */
29177
+ capturePastReservations(options?: RawAxiosRequestConfig): AxiosPromise<JobResult> {
29178
+ return localVarFp.capturePastReservations(options).then((request) => request(axios, basePath));
29179
+ },
29180
+ /**
29181
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
29182
+ * @summary Expire les réservations en attente de paiement
29183
+ * @param {*} [options] Override http request option.
29184
+ * @throws {RequiredError}
29185
+ */
29186
+ expireBookingWaitingPayments(options?: RawAxiosRequestConfig): AxiosPromise<JobResult> {
29187
+ return localVarFp.expireBookingWaitingPayments(options).then((request) => request(axios, basePath));
29188
+ },
29189
+ /**
29190
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
29191
+ * @summary Expire les paiements en attente sur la waitlist
29192
+ * @param {*} [options] Override http request option.
29193
+ * @throws {RequiredError}
29194
+ */
29195
+ expireWaitlistPayments(options?: RawAxiosRequestConfig): AxiosPromise<JobResult> {
29196
+ return localVarFp.expireWaitlistPayments(options).then((request) => request(axios, basePath));
29197
+ },
29198
+ /**
29199
+ * Route de santé pour vérifier que le service jobs est opérationnel
29200
+ * @summary Health check pour les jobs
29201
+ * @param {*} [options] Override http request option.
29202
+ * @throws {RequiredError}
29203
+ */
29204
+ health(options?: RawAxiosRequestConfig): AxiosPromise<Health200Response> {
29205
+ return localVarFp.health(options).then((request) => request(axios, basePath));
29206
+ },
29207
+ /**
29208
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
29209
+ * @summary Génère les créneaux futurs et nettoie les anciens
29210
+ * @param {*} [options] Override http request option.
29211
+ * @throws {RequiredError}
29212
+ */
29213
+ maintainSlots(options?: RawAxiosRequestConfig): AxiosPromise<JobResult> {
29214
+ return localVarFp.maintainSlots(options).then((request) => request(axios, basePath));
29215
+ },
29216
+ /**
29217
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
29218
+ * @summary Libère les anciennes réservations terminées
29219
+ * @param {*} [options] Override http request option.
29220
+ * @throws {RequiredError}
29221
+ */
29222
+ releaseOldBookings(options?: RawAxiosRequestConfig): AxiosPromise<JobResult> {
29223
+ return localVarFp.releaseOldBookings(options).then((request) => request(axios, basePath));
29224
+ },
29225
+ };
29226
+ };
29227
+
29228
+ /**
29229
+ * JobsApi - object-oriented interface
29230
+ * @export
29231
+ * @class JobsApi
29232
+ * @extends {BaseAPI}
29233
+ */
29234
+ export class JobsApi extends BaseAPI {
29235
+ /**
29236
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
29237
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
29238
+ * @param {*} [options] Override http request option.
29239
+ * @throws {RequiredError}
29240
+ * @memberof JobsApi
29241
+ */
29242
+ public captureExpiringAuthorizations(options?: RawAxiosRequestConfig) {
29243
+ return JobsApiFp(this.configuration).captureExpiringAuthorizations(options).then((request) => request(this.axios, this.basePath));
29244
+ }
29245
+
29246
+ /**
29247
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
29248
+ * @summary Capture les paiements autorisés pour les réservations passées
29249
+ * @param {*} [options] Override http request option.
29250
+ * @throws {RequiredError}
29251
+ * @memberof JobsApi
29252
+ */
29253
+ public capturePastReservations(options?: RawAxiosRequestConfig) {
29254
+ return JobsApiFp(this.configuration).capturePastReservations(options).then((request) => request(this.axios, this.basePath));
29255
+ }
29256
+
29257
+ /**
29258
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
29259
+ * @summary Expire les réservations en attente de paiement
29260
+ * @param {*} [options] Override http request option.
29261
+ * @throws {RequiredError}
29262
+ * @memberof JobsApi
29263
+ */
29264
+ public expireBookingWaitingPayments(options?: RawAxiosRequestConfig) {
29265
+ return JobsApiFp(this.configuration).expireBookingWaitingPayments(options).then((request) => request(this.axios, this.basePath));
29266
+ }
29267
+
29268
+ /**
29269
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
29270
+ * @summary Expire les paiements en attente sur la waitlist
29271
+ * @param {*} [options] Override http request option.
29272
+ * @throws {RequiredError}
29273
+ * @memberof JobsApi
29274
+ */
29275
+ public expireWaitlistPayments(options?: RawAxiosRequestConfig) {
29276
+ return JobsApiFp(this.configuration).expireWaitlistPayments(options).then((request) => request(this.axios, this.basePath));
29277
+ }
29278
+
29279
+ /**
29280
+ * Route de santé pour vérifier que le service jobs est opérationnel
29281
+ * @summary Health check pour les jobs
29282
+ * @param {*} [options] Override http request option.
29283
+ * @throws {RequiredError}
29284
+ * @memberof JobsApi
29285
+ */
29286
+ public health(options?: RawAxiosRequestConfig) {
29287
+ return JobsApiFp(this.configuration).health(options).then((request) => request(this.axios, this.basePath));
29288
+ }
29289
+
29290
+ /**
29291
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
29292
+ * @summary Génère les créneaux futurs et nettoie les anciens
29293
+ * @param {*} [options] Override http request option.
29294
+ * @throws {RequiredError}
29295
+ * @memberof JobsApi
29296
+ */
29297
+ public maintainSlots(options?: RawAxiosRequestConfig) {
29298
+ return JobsApiFp(this.configuration).maintainSlots(options).then((request) => request(this.axios, this.basePath));
29299
+ }
29300
+
29301
+ /**
29302
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
29303
+ * @summary Libère les anciennes réservations terminées
29304
+ * @param {*} [options] Override http request option.
29305
+ * @throws {RequiredError}
29306
+ * @memberof JobsApi
29307
+ */
29308
+ public releaseOldBookings(options?: RawAxiosRequestConfig) {
29309
+ return JobsApiFp(this.configuration).releaseOldBookings(options).then((request) => request(this.axios, this.basePath));
29310
+ }
29311
+ }
29312
+
29313
+
29314
+
28622
29315
  /**
28623
29316
  * PublicEmailApi - axios parameter creator
28624
29317
  * @export
@@ -35045,6 +35738,43 @@ export const WaitListStaffApiAxiosParamCreator = function (configuration?: Confi
35045
35738
 
35046
35739
 
35047
35740
 
35741
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35742
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35743
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35744
+
35745
+ return {
35746
+ url: toPathString(localVarUrlObj),
35747
+ options: localVarRequestOptions,
35748
+ };
35749
+ },
35750
+ /**
35751
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
35752
+ * @param {string} eventId
35753
+ * @param {*} [options] Override http request option.
35754
+ * @throws {RequiredError}
35755
+ */
35756
+ getEventWaitListPlayers: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35757
+ // verify required parameter 'eventId' is not null or undefined
35758
+ assertParamExists('getEventWaitListPlayers', 'eventId', eventId)
35759
+ const localVarPath = `/api/waitlist/event/{eventId}/players`
35760
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
35761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35763
+ let baseOptions;
35764
+ if (configuration) {
35765
+ baseOptions = configuration.baseOptions;
35766
+ }
35767
+
35768
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35769
+ const localVarHeaderParameter = {} as any;
35770
+ const localVarQueryParameter = {} as any;
35771
+
35772
+ // authentication bearerAuth required
35773
+ // http bearer authentication required
35774
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
35775
+
35776
+
35777
+
35048
35778
  setSearchParams(localVarUrlObj, localVarQueryParameter);
35049
35779
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35050
35780
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -35211,6 +35941,18 @@ export const WaitListStaffApiFp = function(configuration?: Configuration) {
35211
35941
  const localVarOperationServerBasePath = operationServerMap['WaitListStaffApi.getEventWaitList']?.[localVarOperationServerIndex]?.url;
35212
35942
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35213
35943
  },
35944
+ /**
35945
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
35946
+ * @param {string} eventId
35947
+ * @param {*} [options] Override http request option.
35948
+ * @throws {RequiredError}
35949
+ */
35950
+ async getEventWaitListPlayers(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WaitListPlayersListResponse>> {
35951
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventWaitListPlayers(eventId, options);
35952
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
35953
+ const localVarOperationServerBasePath = operationServerMap['WaitListStaffApi.getEventWaitListPlayers']?.[localVarOperationServerIndex]?.url;
35954
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35955
+ },
35214
35956
  /**
35215
35957
  * Forcer le traitement de la waitlist pour un booking (staff only)
35216
35958
  * @param {string} bookingId
@@ -35284,6 +36026,15 @@ export const WaitListStaffApiFactory = function (configuration?: Configuration,
35284
36026
  getEventWaitList(requestParameters: WaitListStaffApiGetEventWaitListRequest, options?: RawAxiosRequestConfig): AxiosPromise<WaitListListResponse> {
35285
36027
  return localVarFp.getEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
35286
36028
  },
36029
+ /**
36030
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
36031
+ * @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
36032
+ * @param {*} [options] Override http request option.
36033
+ * @throws {RequiredError}
36034
+ */
36035
+ getEventWaitListPlayers(requestParameters: WaitListStaffApiGetEventWaitListPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<WaitListPlayersListResponse> {
36036
+ return localVarFp.getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(axios, basePath));
36037
+ },
35287
36038
  /**
35288
36039
  * Forcer le traitement de la waitlist pour un booking (staff only)
35289
36040
  * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
@@ -35356,6 +36107,20 @@ export interface WaitListStaffApiGetEventWaitListRequest {
35356
36107
  readonly eventId: string
35357
36108
  }
35358
36109
 
36110
+ /**
36111
+ * Request parameters for getEventWaitListPlayers operation in WaitListStaffApi.
36112
+ * @export
36113
+ * @interface WaitListStaffApiGetEventWaitListPlayersRequest
36114
+ */
36115
+ export interface WaitListStaffApiGetEventWaitListPlayersRequest {
36116
+ /**
36117
+ *
36118
+ * @type {string}
36119
+ * @memberof WaitListStaffApiGetEventWaitListPlayers
36120
+ */
36121
+ readonly eventId: string
36122
+ }
36123
+
35359
36124
  /**
35360
36125
  * Request parameters for processBookingWaitList operation in WaitListStaffApi.
35361
36126
  * @export
@@ -35438,6 +36203,17 @@ export class WaitListStaffApi extends BaseAPI {
35438
36203
  return WaitListStaffApiFp(this.configuration).getEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
35439
36204
  }
35440
36205
 
36206
+ /**
36207
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
36208
+ * @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
36209
+ * @param {*} [options] Override http request option.
36210
+ * @throws {RequiredError}
36211
+ * @memberof WaitListStaffApi
36212
+ */
36213
+ public getEventWaitListPlayers(requestParameters: WaitListStaffApiGetEventWaitListPlayersRequest, options?: RawAxiosRequestConfig) {
36214
+ return WaitListStaffApiFp(this.configuration).getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
36215
+ }
36216
+
35441
36217
  /**
35442
36218
  * Forcer le traitement de la waitlist pour un booking (staff only)
35443
36219
  * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.