@tennac-booking/sdk 1.0.149 → 1.0.150

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/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.149
5
+ * The version of the OpenAPI document: 1.0.150
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.149
8
+ * The version of the OpenAPI document: 1.0.150
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.149
5
+ * The version of the OpenAPI document: 1.0.150
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.149
8
+ * The version of the OpenAPI document: 1.0.150
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.149
5
+ * The version of the OpenAPI document: 1.0.150
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4102,6 +4102,55 @@ export declare const CreateEventRequestVisibilityTypeEnum: {
4102
4102
  readonly Invitation: "invitation";
4103
4103
  };
4104
4104
  export type CreateEventRequestVisibilityTypeEnum = typeof CreateEventRequestVisibilityTypeEnum[keyof typeof CreateEventRequestVisibilityTypeEnum];
4105
+ /**
4106
+ *
4107
+ * @export
4108
+ * @interface CreateGuestBookingRequest
4109
+ */
4110
+ export interface CreateGuestBookingRequest {
4111
+ /**
4112
+ * ID du créneau à réserver
4113
+ * @type {Array<string>}
4114
+ * @memberof CreateGuestBookingRequest
4115
+ */
4116
+ 'slotIds': Array<string>;
4117
+ /**
4118
+ * Prénom de l\'invité
4119
+ * @type {string}
4120
+ * @memberof CreateGuestBookingRequest
4121
+ */
4122
+ 'firstName': string;
4123
+ /**
4124
+ * Nom de famille de l\'invité
4125
+ * @type {string}
4126
+ * @memberof CreateGuestBookingRequest
4127
+ */
4128
+ 'lastName': string;
4129
+ /**
4130
+ * Email de l\'invité
4131
+ * @type {string}
4132
+ * @memberof CreateGuestBookingRequest
4133
+ */
4134
+ 'email': string;
4135
+ /**
4136
+ * Numéro de téléphone de l\'invité
4137
+ * @type {string}
4138
+ * @memberof CreateGuestBookingRequest
4139
+ */
4140
+ 'phoneNumber'?: string;
4141
+ /**
4142
+ *
4143
+ * @type {PaymentMethod}
4144
+ * @memberof CreateGuestBookingRequest
4145
+ */
4146
+ 'paymentMethod': PaymentMethod;
4147
+ /**
4148
+ * Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut
4149
+ * @type {boolean}
4150
+ * @memberof CreateGuestBookingRequest
4151
+ */
4152
+ 'useDefaultPaymentMethod'?: boolean;
4153
+ }
4105
4154
  /**
4106
4155
  *
4107
4156
  * @export
@@ -5709,6 +5758,25 @@ export interface GetOpenBookings200Response {
5709
5758
  */
5710
5759
  'bookings': Array<BookingInfo>;
5711
5760
  }
5761
+ /**
5762
+ *
5763
+ * @export
5764
+ * @interface GetOpenEventBookingJoinPrice200Response
5765
+ */
5766
+ export interface GetOpenEventBookingJoinPrice200Response {
5767
+ /**
5768
+ *
5769
+ * @type {number}
5770
+ * @memberof GetOpenEventBookingJoinPrice200Response
5771
+ */
5772
+ 'availableCreditsInCents': number;
5773
+ /**
5774
+ *
5775
+ * @type {number}
5776
+ * @memberof GetOpenEventBookingJoinPrice200Response
5777
+ */
5778
+ 'priceToPayInCents': number;
5779
+ }
5712
5780
  /**
5713
5781
  *
5714
5782
  * @export
@@ -6102,6 +6170,12 @@ export interface IUserAttributes {
6102
6170
  * @memberof IUserAttributes
6103
6171
  */
6104
6172
  'organizations'?: Array<IUserAttributesOrganizationsInner>;
6173
+ /**
6174
+ *
6175
+ * @type {boolean}
6176
+ * @memberof IUserAttributes
6177
+ */
6178
+ 'isGuest'?: boolean;
6105
6179
  /**
6106
6180
  *
6107
6181
  * @type {boolean}
@@ -9721,6 +9795,12 @@ export interface StaffUserProfileResponse {
9721
9795
  * @memberof StaffUserProfileResponse
9722
9796
  */
9723
9797
  'organizations'?: Array<IUserAttributesOrganizationsInner>;
9798
+ /**
9799
+ *
9800
+ * @type {boolean}
9801
+ * @memberof StaffUserProfileResponse
9802
+ */
9803
+ 'isGuest'?: boolean;
9724
9804
  /**
9725
9805
  *
9726
9806
  * @type {boolean}
@@ -11058,6 +11138,18 @@ export interface UpdateUserRequestBody {
11058
11138
  * @memberof UpdateUserRequestBody
11059
11139
  */
11060
11140
  'phone'?: string;
11141
+ /**
11142
+ *
11143
+ * @type {Gender}
11144
+ * @memberof UpdateUserRequestBody
11145
+ */
11146
+ 'gender'?: Gender;
11147
+ /**
11148
+ *
11149
+ * @type {string}
11150
+ * @memberof UpdateUserRequestBody
11151
+ */
11152
+ 'birthDate'?: string;
11061
11153
  /**
11062
11154
  *
11063
11155
  * @type {string}
@@ -11738,6 +11830,12 @@ export interface UserProfileResponse {
11738
11830
  * @memberof UserProfileResponse
11739
11831
  */
11740
11832
  'organizations'?: Array<IUserAttributesOrganizationsInner>;
11833
+ /**
11834
+ *
11835
+ * @type {boolean}
11836
+ * @memberof UserProfileResponse
11837
+ */
11838
+ 'isGuest'?: boolean;
11741
11839
  /**
11742
11840
  *
11743
11841
  * @type {boolean}
@@ -11997,6 +12095,13 @@ export interface YearlyTurnoverResponse {
11997
12095
  * @export
11998
12096
  */
11999
12097
  export declare const BookingsApiAxiosParamCreator: (configuration?: Configuration) => {
12098
+ /**
12099
+ * Créer une réservation en tant qu\'invité (guest)
12100
+ * @param {CreateGuestBookingRequest} createGuestBookingRequest
12101
+ * @param {*} [options] Override http request option.
12102
+ * @throws {RequiredError}
12103
+ */
12104
+ createGuestBooking: (createGuestBookingRequest: CreateGuestBookingRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12000
12105
  /**
12001
12106
  * Estimer le prix pour rejoindre une réservation ouverte
12002
12107
  * @param {string} bookingId
@@ -12019,6 +12124,13 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
12019
12124
  * @throws {RequiredError}
12020
12125
  */
12021
12126
  getBookingPrice: (bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12127
+ /**
12128
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12129
+ * @param {string} bookingId
12130
+ * @param {*} [options] Override http request option.
12131
+ * @throws {RequiredError}
12132
+ */
12133
+ getOpenBookingJoinPrice: (bookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12022
12134
  /**
12023
12135
  *
12024
12136
  * @param {string} [clubId]
@@ -12064,6 +12176,13 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
12064
12176
  * @export
12065
12177
  */
12066
12178
  export declare const BookingsApiFp: (configuration?: Configuration) => {
12179
+ /**
12180
+ * Créer une réservation en tant qu\'invité (guest)
12181
+ * @param {CreateGuestBookingRequest} createGuestBookingRequest
12182
+ * @param {*} [options] Override http request option.
12183
+ * @throws {RequiredError}
12184
+ */
12185
+ createGuestBooking(createGuestBookingRequest: CreateGuestBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponse>>;
12067
12186
  /**
12068
12187
  * Estimer le prix pour rejoindre une réservation ouverte
12069
12188
  * @param {string} bookingId
@@ -12086,6 +12205,13 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
12086
12205
  * @throws {RequiredError}
12087
12206
  */
12088
12207
  getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>>;
12208
+ /**
12209
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12210
+ * @param {string} bookingId
12211
+ * @param {*} [options] Override http request option.
12212
+ * @throws {RequiredError}
12213
+ */
12214
+ getOpenBookingJoinPrice(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenEventBookingJoinPrice200Response>>;
12089
12215
  /**
12090
12216
  *
12091
12217
  * @param {string} [clubId]
@@ -12131,6 +12257,13 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
12131
12257
  * @export
12132
12258
  */
12133
12259
  export declare const BookingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
12260
+ /**
12261
+ * Créer une réservation en tant qu\'invité (guest)
12262
+ * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
12263
+ * @param {*} [options] Override http request option.
12264
+ * @throws {RequiredError}
12265
+ */
12266
+ createGuestBooking(requestParameters: BookingsApiCreateGuestBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse>;
12134
12267
  /**
12135
12268
  * Estimer le prix pour rejoindre une réservation ouverte
12136
12269
  * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -12152,6 +12285,13 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
12152
12285
  * @throws {RequiredError}
12153
12286
  */
12154
12287
  getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse>;
12288
+ /**
12289
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12290
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
12291
+ * @param {*} [options] Override http request option.
12292
+ * @throws {RequiredError}
12293
+ */
12294
+ getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenEventBookingJoinPrice200Response>;
12155
12295
  /**
12156
12296
  *
12157
12297
  * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
@@ -12181,6 +12321,19 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
12181
12321
  */
12182
12322
  leaveOpenBooking(requestParameters: BookingsApiLeaveOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response>;
12183
12323
  };
12324
+ /**
12325
+ * Request parameters for createGuestBooking operation in BookingsApi.
12326
+ * @export
12327
+ * @interface BookingsApiCreateGuestBookingRequest
12328
+ */
12329
+ export interface BookingsApiCreateGuestBookingRequest {
12330
+ /**
12331
+ *
12332
+ * @type {CreateGuestBookingRequest}
12333
+ * @memberof BookingsApiCreateGuestBooking
12334
+ */
12335
+ readonly createGuestBookingRequest: CreateGuestBookingRequest;
12336
+ }
12184
12337
  /**
12185
12338
  * Request parameters for estimateOpenBookingJoinPrice operation in BookingsApi.
12186
12339
  * @export
@@ -12226,6 +12379,19 @@ export interface BookingsApiGetBookingPriceRequest {
12226
12379
  */
12227
12380
  readonly bookingPriceBody: BookingPriceBody;
12228
12381
  }
12382
+ /**
12383
+ * Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
12384
+ * @export
12385
+ * @interface BookingsApiGetOpenBookingJoinPriceRequest
12386
+ */
12387
+ export interface BookingsApiGetOpenBookingJoinPriceRequest {
12388
+ /**
12389
+ *
12390
+ * @type {string}
12391
+ * @memberof BookingsApiGetOpenBookingJoinPrice
12392
+ */
12393
+ readonly bookingId: string;
12394
+ }
12229
12395
  /**
12230
12396
  * Request parameters for getOpenBookings operation in BookingsApi.
12231
12397
  * @export
@@ -12351,6 +12517,14 @@ export interface BookingsApiLeaveOpenBookingRequest {
12351
12517
  * @extends {BaseAPI}
12352
12518
  */
12353
12519
  export declare class BookingsApi extends BaseAPI {
12520
+ /**
12521
+ * Créer une réservation en tant qu\'invité (guest)
12522
+ * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
12523
+ * @param {*} [options] Override http request option.
12524
+ * @throws {RequiredError}
12525
+ * @memberof BookingsApi
12526
+ */
12527
+ createGuestBooking(requestParameters: BookingsApiCreateGuestBookingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingResponse, any, {}>>;
12354
12528
  /**
12355
12529
  * Estimer le prix pour rejoindre une réservation ouverte
12356
12530
  * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -12375,6 +12549,14 @@ export declare class BookingsApi extends BaseAPI {
12375
12549
  * @memberof BookingsApi
12376
12550
  */
12377
12551
  getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPriceResponse, any, {}>>;
12552
+ /**
12553
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12554
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
12555
+ * @param {*} [options] Override http request option.
12556
+ * @throws {RequiredError}
12557
+ * @memberof BookingsApi
12558
+ */
12559
+ getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOpenEventBookingJoinPrice200Response, any, {}>>;
12378
12560
  /**
12379
12561
  *
12380
12562
  * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
@@ -17300,6 +17482,13 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
17300
17482
  * @throws {RequiredError}
17301
17483
  */
17302
17484
  getEventById: (eventId: string, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17485
+ /**
17486
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
17487
+ * @param {string} eventBookingId
17488
+ * @param {*} [options] Override http request option.
17489
+ * @throws {RequiredError}
17490
+ */
17491
+ getOpenEventBookingJoinPrice: (eventBookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17303
17492
  /**
17304
17493
  *
17305
17494
  * @param {string} [clubId]
@@ -17386,6 +17575,13 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
17386
17575
  * @throws {RequiredError}
17387
17576
  */
17388
17577
  getEventById(eventId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
17578
+ /**
17579
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
17580
+ * @param {string} eventBookingId
17581
+ * @param {*} [options] Override http request option.
17582
+ * @throws {RequiredError}
17583
+ */
17584
+ getOpenEventBookingJoinPrice(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenEventBookingJoinPrice200Response>>;
17389
17585
  /**
17390
17586
  *
17391
17587
  * @param {string} [clubId]
@@ -17468,6 +17664,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
17468
17664
  * @throws {RequiredError}
17469
17665
  */
17470
17666
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
17667
+ /**
17668
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
17669
+ * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
17670
+ * @param {*} [options] Override http request option.
17671
+ * @throws {RequiredError}
17672
+ */
17673
+ getOpenEventBookingJoinPrice(requestParameters: EventsApiGetOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenEventBookingJoinPrice200Response>;
17471
17674
  /**
17472
17675
  *
17473
17676
  * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
@@ -17587,6 +17790,19 @@ export interface EventsApiGetEventByIdRequest {
17587
17790
  */
17588
17791
  readonly userId?: string;
17589
17792
  }
17793
+ /**
17794
+ * Request parameters for getOpenEventBookingJoinPrice operation in EventsApi.
17795
+ * @export
17796
+ * @interface EventsApiGetOpenEventBookingJoinPriceRequest
17797
+ */
17798
+ export interface EventsApiGetOpenEventBookingJoinPriceRequest {
17799
+ /**
17800
+ *
17801
+ * @type {string}
17802
+ * @memberof EventsApiGetOpenEventBookingJoinPrice
17803
+ */
17804
+ readonly eventBookingId: string;
17805
+ }
17590
17806
  /**
17591
17807
  * Request parameters for getOpenEventBookings operation in EventsApi.
17592
17808
  * @export
@@ -17740,6 +17956,14 @@ export declare class EventsApi extends BaseAPI {
17740
17956
  * @memberof EventsApi
17741
17957
  */
17742
17958
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
17959
+ /**
17960
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
17961
+ * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
17962
+ * @param {*} [options] Override http request option.
17963
+ * @throws {RequiredError}
17964
+ * @memberof EventsApi
17965
+ */
17966
+ getOpenEventBookingJoinPrice(requestParameters: EventsApiGetOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOpenEventBookingJoinPrice200Response, any, {}>>;
17743
17967
  /**
17744
17968
  *
17745
17969
  * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.