@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/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/api.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).
@@ -161,6 +161,8 @@ exports.EventResponseVisibilityTypeEnum = {
161
161
  exports.Gender = {
162
162
  Male: 'male',
163
163
  Female: 'female',
164
+ NonBinary: 'non_binary',
165
+ Transgender: 'transgender',
164
166
  Other: 'other'
165
167
  };
166
168
  exports.IUserLocationTypeEnum = {
@@ -402,6 +404,41 @@ exports.WeekdayKey = {
402
404
  */
403
405
  const BookingsApiAxiosParamCreator = function (configuration) {
404
406
  return {
407
+ /**
408
+ * Estimer le prix pour rejoindre une réservation ouverte
409
+ * @param {string} bookingId
410
+ * @param {number} [creditToUseInCents]
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ */
414
+ estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
415
+ // verify required parameter 'bookingId' is not null or undefined
416
+ (0, common_1.assertParamExists)('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
417
+ const localVarPath = `/api/bookings/{bookingId}/open/estimate`
418
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
419
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
420
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
421
+ let baseOptions;
422
+ if (configuration) {
423
+ baseOptions = configuration.baseOptions;
424
+ }
425
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
426
+ const localVarHeaderParameter = {};
427
+ const localVarQueryParameter = {};
428
+ // authentication bearerAuth required
429
+ // http bearer authentication required
430
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
431
+ if (creditToUseInCents !== undefined) {
432
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
433
+ }
434
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
435
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
436
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
437
+ return {
438
+ url: (0, common_1.toPathString)(localVarUrlObj),
439
+ options: localVarRequestOptions,
440
+ };
441
+ }),
405
442
  /**
406
443
  * Obtenir l\'historique d\'une réservation par ID
407
444
  * @param {string} bookingId
@@ -641,6 +678,22 @@ exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
641
678
  const BookingsApiFp = function (configuration) {
642
679
  const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
643
680
  return {
681
+ /**
682
+ * Estimer le prix pour rejoindre une réservation ouverte
683
+ * @param {string} bookingId
684
+ * @param {number} [creditToUseInCents]
685
+ * @param {*} [options] Override http request option.
686
+ * @throws {RequiredError}
687
+ */
688
+ estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
689
+ return __awaiter(this, void 0, void 0, function* () {
690
+ var _a, _b, _c;
691
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
692
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
693
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
694
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
695
+ });
696
+ },
644
697
  /**
645
698
  * Obtenir l\'historique d\'une réservation par ID
646
699
  * @param {string} bookingId
@@ -752,6 +805,15 @@ exports.BookingsApiFp = BookingsApiFp;
752
805
  const BookingsApiFactory = function (configuration, basePath, axios) {
753
806
  const localVarFp = (0, exports.BookingsApiFp)(configuration);
754
807
  return {
808
+ /**
809
+ * Estimer le prix pour rejoindre une réservation ouverte
810
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ */
814
+ estimateOpenBookingJoinPrice(requestParameters, options) {
815
+ return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
816
+ },
755
817
  /**
756
818
  * Obtenir l\'historique d\'une réservation par ID
757
819
  * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
@@ -816,6 +878,16 @@ exports.BookingsApiFactory = BookingsApiFactory;
816
878
  * @extends {BaseAPI}
817
879
  */
818
880
  class BookingsApi extends base_1.BaseAPI {
881
+ /**
882
+ * Estimer le prix pour rejoindre une réservation ouverte
883
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ * @memberof BookingsApi
887
+ */
888
+ estimateOpenBookingJoinPrice(requestParameters, options) {
889
+ return (0, exports.BookingsApiFp)(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
890
+ }
819
891
  /**
820
892
  * Obtenir l\'historique d\'une réservation par ID
821
893
  * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
@@ -8737,6 +8809,41 @@ const EventsApiAxiosParamCreator = function (configuration) {
8737
8809
  options: localVarRequestOptions,
8738
8810
  };
8739
8811
  }),
8812
+ /**
8813
+ * Estimer le prix pour rejoindre un événement ouvert
8814
+ * @param {string} eventBookingId
8815
+ * @param {number} [creditToUseInCents]
8816
+ * @param {*} [options] Override http request option.
8817
+ * @throws {RequiredError}
8818
+ */
8819
+ estimateOpenEventBookingJoinPrice: (eventBookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [eventBookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (eventBookingId, creditToUseInCents, options = {}) {
8820
+ // verify required parameter 'eventBookingId' is not null or undefined
8821
+ (0, common_1.assertParamExists)('estimateOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId);
8822
+ const localVarPath = `/api/events/{eventBookingId}/open/estimate`
8823
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
8824
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8825
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8826
+ let baseOptions;
8827
+ if (configuration) {
8828
+ baseOptions = configuration.baseOptions;
8829
+ }
8830
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8831
+ const localVarHeaderParameter = {};
8832
+ const localVarQueryParameter = {};
8833
+ // authentication bearerAuth required
8834
+ // http bearer authentication required
8835
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8836
+ if (creditToUseInCents !== undefined) {
8837
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
8838
+ }
8839
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8841
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8842
+ return {
8843
+ url: (0, common_1.toPathString)(localVarUrlObj),
8844
+ options: localVarRequestOptions,
8845
+ };
8846
+ }),
8740
8847
  /**
8741
8848
  * Get a specific event by ID
8742
8849
  * @param {string} eventId
@@ -9017,6 +9124,22 @@ const EventsApiFp = function (configuration) {
9017
9124
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9018
9125
  });
9019
9126
  },
9127
+ /**
9128
+ * Estimer le prix pour rejoindre un événement ouvert
9129
+ * @param {string} eventBookingId
9130
+ * @param {number} [creditToUseInCents]
9131
+ * @param {*} [options] Override http request option.
9132
+ * @throws {RequiredError}
9133
+ */
9134
+ estimateOpenEventBookingJoinPrice(eventBookingId, creditToUseInCents, options) {
9135
+ return __awaiter(this, void 0, void 0, function* () {
9136
+ var _a, _b, _c;
9137
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenEventBookingJoinPrice(eventBookingId, creditToUseInCents, options);
9138
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9139
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.estimateOpenEventBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9140
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9141
+ });
9142
+ },
9020
9143
  /**
9021
9144
  * Get a specific event by ID
9022
9145
  * @param {string} eventId
@@ -9157,6 +9280,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
9157
9280
  estimateEventPrice(requestParameters, options) {
9158
9281
  return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
9159
9282
  },
9283
+ /**
9284
+ * Estimer le prix pour rejoindre un événement ouvert
9285
+ * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9286
+ * @param {*} [options] Override http request option.
9287
+ * @throws {RequiredError}
9288
+ */
9289
+ estimateOpenEventBookingJoinPrice(requestParameters, options) {
9290
+ return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
9291
+ },
9160
9292
  /**
9161
9293
  * Get a specific event by ID
9162
9294
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -9250,6 +9382,16 @@ class EventsApi extends base_1.BaseAPI {
9250
9382
  estimateEventPrice(requestParameters, options) {
9251
9383
  return (0, exports.EventsApiFp)(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
9252
9384
  }
9385
+ /**
9386
+ * Estimer le prix pour rejoindre un événement ouvert
9387
+ * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9388
+ * @param {*} [options] Override http request option.
9389
+ * @throws {RequiredError}
9390
+ * @memberof EventsApi
9391
+ */
9392
+ estimateOpenEventBookingJoinPrice(requestParameters, options) {
9393
+ return (0, exports.EventsApiFp)(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
9394
+ }
9253
9395
  /**
9254
9396
  * Get a specific event by ID
9255
9397
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
package/dist/base.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/base.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).
package/dist/common.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/common.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).
@@ -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).
@@ -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).