@tennac-booking/sdk 1.0.148 → 1.0.149

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/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.132
5
+ * The version of the OpenAPI document: 1.0.149
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4698,6 +4698,68 @@ export interface EstimateEventPriceRequestSharesInner {
4698
4698
  */
4699
4699
  'playerId': string;
4700
4700
  }
4701
+ /**
4702
+ *
4703
+ * @export
4704
+ * @interface EstimateOpenEventBookingJoinPrice200Response
4705
+ */
4706
+ export interface EstimateOpenEventBookingJoinPrice200Response {
4707
+ /**
4708
+ *
4709
+ * @type {EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo}
4710
+ * @memberof EstimateOpenEventBookingJoinPrice200Response
4711
+ */
4712
+ 'subscriptionInfo'?: EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo;
4713
+ /**
4714
+ *
4715
+ * @type {number}
4716
+ * @memberof EstimateOpenEventBookingJoinPrice200Response
4717
+ */
4718
+ 'finalPrice': number;
4719
+ /**
4720
+ *
4721
+ * @type {number}
4722
+ * @memberof EstimateOpenEventBookingJoinPrice200Response
4723
+ */
4724
+ 'creditApplied': number;
4725
+ /**
4726
+ *
4727
+ * @type {number}
4728
+ * @memberof EstimateOpenEventBookingJoinPrice200Response
4729
+ */
4730
+ 'discountedPrice': number;
4731
+ /**
4732
+ *
4733
+ * @type {number}
4734
+ * @memberof EstimateOpenEventBookingJoinPrice200Response
4735
+ */
4736
+ 'basePrice': number;
4737
+ }
4738
+ /**
4739
+ *
4740
+ * @export
4741
+ * @interface EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo
4742
+ */
4743
+ export interface EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo {
4744
+ /**
4745
+ *
4746
+ * @type {string}
4747
+ * @memberof EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo
4748
+ */
4749
+ 'subscriptionName'?: string;
4750
+ /**
4751
+ *
4752
+ * @type {number}
4753
+ * @memberof EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo
4754
+ */
4755
+ 'discountPercentage'?: number;
4756
+ /**
4757
+ *
4758
+ * @type {boolean}
4759
+ * @memberof EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo
4760
+ */
4761
+ 'hasSubscription': boolean;
4762
+ }
4701
4763
  /**
4702
4764
  *
4703
4765
  * @export
@@ -5427,6 +5489,8 @@ export interface FavoritePlayersResponse {
5427
5489
  export declare const Gender: {
5428
5490
  readonly Male: "male";
5429
5491
  readonly Female: "female";
5492
+ readonly NonBinary: "non_binary";
5493
+ readonly Transgender: "transgender";
5430
5494
  readonly Other: "other";
5431
5495
  };
5432
5496
  export type Gender = typeof Gender[keyof typeof Gender];
@@ -5990,6 +6054,12 @@ export interface IUserAttributes {
5990
6054
  * @memberof IUserAttributes
5991
6055
  */
5992
6056
  'phone'?: string;
6057
+ /**
6058
+ *
6059
+ * @type {string}
6060
+ * @memberof IUserAttributes
6061
+ */
6062
+ 'birthDate'?: string;
5993
6063
  /**
5994
6064
  *
5995
6065
  * @type {string}
@@ -8616,6 +8686,18 @@ export interface RegisterRequestBody {
8616
8686
  * @memberof RegisterRequestBody
8617
8687
  */
8618
8688
  'phone'?: string;
8689
+ /**
8690
+ *
8691
+ * @type {Gender}
8692
+ * @memberof RegisterRequestBody
8693
+ */
8694
+ 'gender'?: Gender;
8695
+ /**
8696
+ *
8697
+ * @type {string}
8698
+ * @memberof RegisterRequestBody
8699
+ */
8700
+ 'birthDate'?: string;
8619
8701
  /**
8620
8702
  *
8621
8703
  * @type {string}
@@ -9591,6 +9673,12 @@ export interface StaffUserProfileResponse {
9591
9673
  * @memberof StaffUserProfileResponse
9592
9674
  */
9593
9675
  'phone'?: string;
9676
+ /**
9677
+ *
9678
+ * @type {string}
9679
+ * @memberof StaffUserProfileResponse
9680
+ */
9681
+ 'birthDate'?: string;
9594
9682
  /**
9595
9683
  *
9596
9684
  * @type {string}
@@ -11602,6 +11690,12 @@ export interface UserProfileResponse {
11602
11690
  * @memberof UserProfileResponse
11603
11691
  */
11604
11692
  'phone'?: string;
11693
+ /**
11694
+ *
11695
+ * @type {string}
11696
+ * @memberof UserProfileResponse
11697
+ */
11698
+ 'birthDate'?: string;
11605
11699
  /**
11606
11700
  *
11607
11701
  * @type {string}
@@ -11903,6 +11997,14 @@ export interface YearlyTurnoverResponse {
11903
11997
  * @export
11904
11998
  */
11905
11999
  export declare const BookingsApiAxiosParamCreator: (configuration?: Configuration) => {
12000
+ /**
12001
+ * Estimer le prix pour rejoindre une réservation ouverte
12002
+ * @param {string} bookingId
12003
+ * @param {number} [creditToUseInCents]
12004
+ * @param {*} [options] Override http request option.
12005
+ * @throws {RequiredError}
12006
+ */
12007
+ estimateOpenBookingJoinPrice: (bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11906
12008
  /**
11907
12009
  * Obtenir l\'historique d\'une réservation par ID
11908
12010
  * @param {string} bookingId
@@ -11962,6 +12064,14 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
11962
12064
  * @export
11963
12065
  */
11964
12066
  export declare const BookingsApiFp: (configuration?: Configuration) => {
12067
+ /**
12068
+ * Estimer le prix pour rejoindre une réservation ouverte
12069
+ * @param {string} bookingId
12070
+ * @param {number} [creditToUseInCents]
12071
+ * @param {*} [options] Override http request option.
12072
+ * @throws {RequiredError}
12073
+ */
12074
+ estimateOpenBookingJoinPrice(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>>;
11965
12075
  /**
11966
12076
  * Obtenir l\'historique d\'une réservation par ID
11967
12077
  * @param {string} bookingId
@@ -12021,6 +12131,13 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
12021
12131
  * @export
12022
12132
  */
12023
12133
  export declare const BookingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
12134
+ /**
12135
+ * Estimer le prix pour rejoindre une réservation ouverte
12136
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
12137
+ * @param {*} [options] Override http request option.
12138
+ * @throws {RequiredError}
12139
+ */
12140
+ estimateOpenBookingJoinPrice(requestParameters: BookingsApiEstimateOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>;
12024
12141
  /**
12025
12142
  * Obtenir l\'historique d\'une réservation par ID
12026
12143
  * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
@@ -12064,6 +12181,25 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
12064
12181
  */
12065
12182
  leaveOpenBooking(requestParameters: BookingsApiLeaveOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response>;
12066
12183
  };
12184
+ /**
12185
+ * Request parameters for estimateOpenBookingJoinPrice operation in BookingsApi.
12186
+ * @export
12187
+ * @interface BookingsApiEstimateOpenBookingJoinPriceRequest
12188
+ */
12189
+ export interface BookingsApiEstimateOpenBookingJoinPriceRequest {
12190
+ /**
12191
+ *
12192
+ * @type {string}
12193
+ * @memberof BookingsApiEstimateOpenBookingJoinPrice
12194
+ */
12195
+ readonly bookingId: string;
12196
+ /**
12197
+ *
12198
+ * @type {number}
12199
+ * @memberof BookingsApiEstimateOpenBookingJoinPrice
12200
+ */
12201
+ readonly creditToUseInCents?: number;
12202
+ }
12067
12203
  /**
12068
12204
  * Request parameters for getBookingHistory operation in BookingsApi.
12069
12205
  * @export
@@ -12215,6 +12351,14 @@ export interface BookingsApiLeaveOpenBookingRequest {
12215
12351
  * @extends {BaseAPI}
12216
12352
  */
12217
12353
  export declare class BookingsApi extends BaseAPI {
12354
+ /**
12355
+ * Estimer le prix pour rejoindre une réservation ouverte
12356
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
12357
+ * @param {*} [options] Override http request option.
12358
+ * @throws {RequiredError}
12359
+ * @memberof BookingsApi
12360
+ */
12361
+ estimateOpenBookingJoinPrice(requestParameters: BookingsApiEstimateOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateOpenEventBookingJoinPrice200Response, any, {}>>;
12218
12362
  /**
12219
12363
  * Obtenir l\'historique d\'une réservation par ID
12220
12364
  * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
@@ -17140,6 +17284,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
17140
17284
  * @throws {RequiredError}
17141
17285
  */
17142
17286
  estimateEventPrice: (eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17287
+ /**
17288
+ * Estimer le prix pour rejoindre un événement ouvert
17289
+ * @param {string} eventBookingId
17290
+ * @param {number} [creditToUseInCents]
17291
+ * @param {*} [options] Override http request option.
17292
+ * @throws {RequiredError}
17293
+ */
17294
+ estimateOpenEventBookingJoinPrice: (eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17143
17295
  /**
17144
17296
  * Get a specific event by ID
17145
17297
  * @param {string} eventId
@@ -17218,6 +17370,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
17218
17370
  * @throws {RequiredError}
17219
17371
  */
17220
17372
  estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPrice200Response>>;
17373
+ /**
17374
+ * Estimer le prix pour rejoindre un événement ouvert
17375
+ * @param {string} eventBookingId
17376
+ * @param {number} [creditToUseInCents]
17377
+ * @param {*} [options] Override http request option.
17378
+ * @throws {RequiredError}
17379
+ */
17380
+ estimateOpenEventBookingJoinPrice(eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>>;
17221
17381
  /**
17222
17382
  * Get a specific event by ID
17223
17383
  * @param {string} eventId
@@ -17294,6 +17454,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
17294
17454
  * @throws {RequiredError}
17295
17455
  */
17296
17456
  estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response>;
17457
+ /**
17458
+ * Estimer le prix pour rejoindre un événement ouvert
17459
+ * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
17460
+ * @param {*} [options] Override http request option.
17461
+ * @throws {RequiredError}
17462
+ */
17463
+ estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>;
17297
17464
  /**
17298
17465
  * Get a specific event by ID
17299
17466
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -17382,6 +17549,25 @@ export interface EventsApiEstimateEventPriceRequest {
17382
17549
  */
17383
17550
  readonly estimateEventPriceRequest: EstimateEventPriceRequest;
17384
17551
  }
17552
+ /**
17553
+ * Request parameters for estimateOpenEventBookingJoinPrice operation in EventsApi.
17554
+ * @export
17555
+ * @interface EventsApiEstimateOpenEventBookingJoinPriceRequest
17556
+ */
17557
+ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
17558
+ /**
17559
+ *
17560
+ * @type {string}
17561
+ * @memberof EventsApiEstimateOpenEventBookingJoinPrice
17562
+ */
17563
+ readonly eventBookingId: string;
17564
+ /**
17565
+ *
17566
+ * @type {number}
17567
+ * @memberof EventsApiEstimateOpenEventBookingJoinPrice
17568
+ */
17569
+ readonly creditToUseInCents?: number;
17570
+ }
17385
17571
  /**
17386
17572
  * Request parameters for getEventById operation in EventsApi.
17387
17573
  * @export
@@ -17538,6 +17724,14 @@ export declare class EventsApi extends BaseAPI {
17538
17724
  * @memberof EventsApi
17539
17725
  */
17540
17726
  estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateEventPrice200Response, any, {}>>;
17727
+ /**
17728
+ * Estimer le prix pour rejoindre un événement ouvert
17729
+ * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
17730
+ * @param {*} [options] Override http request option.
17731
+ * @throws {RequiredError}
17732
+ * @memberof EventsApi
17733
+ */
17734
+ estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateOpenEventBookingJoinPrice200Response, any, {}>>;
17541
17735
  /**
17542
17736
  * Get a specific event by ID
17543
17737
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
package/dist/esm/api.js 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.132
7
+ * The version of the OpenAPI document: 1.0.149
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -155,6 +155,8 @@ export const EventResponseVisibilityTypeEnum = {
155
155
  export const Gender = {
156
156
  Male: 'male',
157
157
  Female: 'female',
158
+ NonBinary: 'non_binary',
159
+ Transgender: 'transgender',
158
160
  Other: 'other'
159
161
  };
160
162
  export const IUserLocationTypeEnum = {
@@ -396,6 +398,41 @@ export const WeekdayKey = {
396
398
  */
397
399
  export const BookingsApiAxiosParamCreator = function (configuration) {
398
400
  return {
401
+ /**
402
+ * Estimer le prix pour rejoindre une réservation ouverte
403
+ * @param {string} bookingId
404
+ * @param {number} [creditToUseInCents]
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
409
+ // verify required parameter 'bookingId' is not null or undefined
410
+ assertParamExists('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
411
+ const localVarPath = `/api/bookings/{bookingId}/open/estimate`
412
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
413
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
414
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
415
+ let baseOptions;
416
+ if (configuration) {
417
+ baseOptions = configuration.baseOptions;
418
+ }
419
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
420
+ const localVarHeaderParameter = {};
421
+ const localVarQueryParameter = {};
422
+ // authentication bearerAuth required
423
+ // http bearer authentication required
424
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
425
+ if (creditToUseInCents !== undefined) {
426
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
427
+ }
428
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
429
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
430
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
431
+ return {
432
+ url: toPathString(localVarUrlObj),
433
+ options: localVarRequestOptions,
434
+ };
435
+ }),
399
436
  /**
400
437
  * Obtenir l\'historique d\'une réservation par ID
401
438
  * @param {string} bookingId
@@ -634,6 +671,22 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
634
671
  export const BookingsApiFp = function (configuration) {
635
672
  const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
636
673
  return {
674
+ /**
675
+ * Estimer le prix pour rejoindre une réservation ouverte
676
+ * @param {string} bookingId
677
+ * @param {number} [creditToUseInCents]
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
682
+ return __awaiter(this, void 0, void 0, function* () {
683
+ var _a, _b, _c;
684
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
685
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
686
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
687
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
688
+ });
689
+ },
637
690
  /**
638
691
  * Obtenir l\'historique d\'une réservation par ID
639
692
  * @param {string} bookingId
@@ -744,6 +797,15 @@ export const BookingsApiFp = function (configuration) {
744
797
  export const BookingsApiFactory = function (configuration, basePath, axios) {
745
798
  const localVarFp = BookingsApiFp(configuration);
746
799
  return {
800
+ /**
801
+ * Estimer le prix pour rejoindre une réservation ouverte
802
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ */
806
+ estimateOpenBookingJoinPrice(requestParameters, options) {
807
+ return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
808
+ },
747
809
  /**
748
810
  * Obtenir l\'historique d\'une réservation par ID
749
811
  * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
@@ -807,6 +869,16 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
807
869
  * @extends {BaseAPI}
808
870
  */
809
871
  export class BookingsApi extends BaseAPI {
872
+ /**
873
+ * Estimer le prix pour rejoindre une réservation ouverte
874
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ * @memberof BookingsApi
878
+ */
879
+ estimateOpenBookingJoinPrice(requestParameters, options) {
880
+ return BookingsApiFp(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
881
+ }
810
882
  /**
811
883
  * Obtenir l\'historique d\'une réservation par ID
812
884
  * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
@@ -8663,6 +8735,41 @@ export const EventsApiAxiosParamCreator = function (configuration) {
8663
8735
  options: localVarRequestOptions,
8664
8736
  };
8665
8737
  }),
8738
+ /**
8739
+ * Estimer le prix pour rejoindre un événement ouvert
8740
+ * @param {string} eventBookingId
8741
+ * @param {number} [creditToUseInCents]
8742
+ * @param {*} [options] Override http request option.
8743
+ * @throws {RequiredError}
8744
+ */
8745
+ estimateOpenEventBookingJoinPrice: (eventBookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [eventBookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (eventBookingId, creditToUseInCents, options = {}) {
8746
+ // verify required parameter 'eventBookingId' is not null or undefined
8747
+ assertParamExists('estimateOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId);
8748
+ const localVarPath = `/api/events/{eventBookingId}/open/estimate`
8749
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
8750
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8751
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8752
+ let baseOptions;
8753
+ if (configuration) {
8754
+ baseOptions = configuration.baseOptions;
8755
+ }
8756
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8757
+ const localVarHeaderParameter = {};
8758
+ const localVarQueryParameter = {};
8759
+ // authentication bearerAuth required
8760
+ // http bearer authentication required
8761
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8762
+ if (creditToUseInCents !== undefined) {
8763
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
8764
+ }
8765
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8766
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8767
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8768
+ return {
8769
+ url: toPathString(localVarUrlObj),
8770
+ options: localVarRequestOptions,
8771
+ };
8772
+ }),
8666
8773
  /**
8667
8774
  * Get a specific event by ID
8668
8775
  * @param {string} eventId
@@ -8942,6 +9049,22 @@ export const EventsApiFp = function (configuration) {
8942
9049
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8943
9050
  });
8944
9051
  },
9052
+ /**
9053
+ * Estimer le prix pour rejoindre un événement ouvert
9054
+ * @param {string} eventBookingId
9055
+ * @param {number} [creditToUseInCents]
9056
+ * @param {*} [options] Override http request option.
9057
+ * @throws {RequiredError}
9058
+ */
9059
+ estimateOpenEventBookingJoinPrice(eventBookingId, creditToUseInCents, options) {
9060
+ return __awaiter(this, void 0, void 0, function* () {
9061
+ var _a, _b, _c;
9062
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenEventBookingJoinPrice(eventBookingId, creditToUseInCents, options);
9063
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9064
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.estimateOpenEventBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9065
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9066
+ });
9067
+ },
8945
9068
  /**
8946
9069
  * Get a specific event by ID
8947
9070
  * @param {string} eventId
@@ -9081,6 +9204,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
9081
9204
  estimateEventPrice(requestParameters, options) {
9082
9205
  return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
9083
9206
  },
9207
+ /**
9208
+ * Estimer le prix pour rejoindre un événement ouvert
9209
+ * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9210
+ * @param {*} [options] Override http request option.
9211
+ * @throws {RequiredError}
9212
+ */
9213
+ estimateOpenEventBookingJoinPrice(requestParameters, options) {
9214
+ return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
9215
+ },
9084
9216
  /**
9085
9217
  * Get a specific event by ID
9086
9218
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -9173,6 +9305,16 @@ export class EventsApi extends BaseAPI {
9173
9305
  estimateEventPrice(requestParameters, options) {
9174
9306
  return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
9175
9307
  }
9308
+ /**
9309
+ * Estimer le prix pour rejoindre un événement ouvert
9310
+ * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9311
+ * @param {*} [options] Override http request option.
9312
+ * @throws {RequiredError}
9313
+ * @memberof EventsApi
9314
+ */
9315
+ estimateOpenEventBookingJoinPrice(requestParameters, options) {
9316
+ return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
9317
+ }
9176
9318
  /**
9177
9319
  * Get a specific event by ID
9178
9320
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.132
5
+ * The version of the OpenAPI document: 1.0.149
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js 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.132
7
+ * The version of the OpenAPI document: 1.0.149
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.132
5
+ * The version of the OpenAPI document: 1.0.149
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.132
7
+ * The version of the OpenAPI document: 1.0.149
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.132
5
+ * The version of the OpenAPI document: 1.0.149
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.132
7
+ * The version of the OpenAPI document: 1.0.149
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.132
5
+ * The version of the OpenAPI document: 1.0.149
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js 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.132
7
+ * The version of the OpenAPI document: 1.0.149
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.132
5
+ * The version of the OpenAPI document: 1.0.149
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.132
8
+ * The version of the OpenAPI document: 1.0.149
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).