@tennac-booking/sdk 1.0.244 → 1.0.245

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.
@@ -177,6 +177,10 @@ docs/EstimateEventPriceRequestSharesInner.md
177
177
  docs/EstimateOpenBookingJoinRequest.md
178
178
  docs/EstimateOpenEventBookingJoinPrice200Response.md
179
179
  docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md
180
+ docs/EventBookingDetailClubInfo.md
181
+ docs/EventBookingDetailEventSummary.md
182
+ docs/EventBookingDetailResponse.md
183
+ docs/EventBookingDetailResponseBooking.md
180
184
  docs/EventBookingDetailSummary.md
181
185
  docs/EventBookingDetailSummaryPartnersInner.md
182
186
  docs/EventBookingDetailSummaryPaymentPerPlayersInner.md
package/README.md CHANGED
@@ -263,6 +263,7 @@ Class | Method | HTTP request | Description
263
263
  *UsersApi* | [**completeRegister**](docs/UsersApi.md#completeregister) | **POST** /api/users/complete-register |
264
264
  *UsersApi* | [**getAllUsers**](docs/UsersApi.md#getallusers) | **GET** /api/users |
265
265
  *UsersApi* | [**getBookingDetail**](docs/UsersApi.md#getbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} |
266
+ *UsersApi* | [**getEventBookingDetail**](docs/UsersApi.md#geteventbookingdetail) | **GET** /api/users/me/event-booking-detail/{eventBookingId} |
266
267
  *UsersApi* | [**getFavoriteClubs**](docs/UsersApi.md#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs |
267
268
  *UsersApi* | [**getFavoritesPlayers**](docs/UsersApi.md#getfavoritesplayers) | **GET** /api/users/me/favoritesPlayers |
268
269
  *UsersApi* | [**getFrequentlyPlayedWith**](docs/UsersApi.md#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith |
@@ -476,6 +477,10 @@ Class | Method | HTTP request | Description
476
477
  - [EstimateOpenBookingJoinRequest](docs/EstimateOpenBookingJoinRequest.md)
477
478
  - [EstimateOpenEventBookingJoinPrice200Response](docs/EstimateOpenEventBookingJoinPrice200Response.md)
478
479
  - [EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo](docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md)
480
+ - [EventBookingDetailClubInfo](docs/EventBookingDetailClubInfo.md)
481
+ - [EventBookingDetailEventSummary](docs/EventBookingDetailEventSummary.md)
482
+ - [EventBookingDetailResponse](docs/EventBookingDetailResponse.md)
483
+ - [EventBookingDetailResponseBooking](docs/EventBookingDetailResponseBooking.md)
479
484
  - [EventBookingDetailSummary](docs/EventBookingDetailSummary.md)
480
485
  - [EventBookingDetailSummaryPartnersInner](docs/EventBookingDetailSummaryPartnersInner.md)
481
486
  - [EventBookingDetailSummaryPaymentPerPlayersInner](docs/EventBookingDetailSummaryPaymentPerPlayersInner.md)
package/api.ts CHANGED
@@ -5863,6 +5863,286 @@ export interface EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo {
5863
5863
  */
5864
5864
  'hasSubscription': boolean;
5865
5865
  }
5866
+ /**
5867
+ *
5868
+ * @export
5869
+ * @interface EventBookingDetailClubInfo
5870
+ */
5871
+ export interface EventBookingDetailClubInfo {
5872
+ /**
5873
+ *
5874
+ * @type {string}
5875
+ * @memberof EventBookingDetailClubInfo
5876
+ */
5877
+ 'id': string;
5878
+ /**
5879
+ *
5880
+ * @type {string}
5881
+ * @memberof EventBookingDetailClubInfo
5882
+ */
5883
+ 'name'?: string | null;
5884
+ /**
5885
+ *
5886
+ * @type {string}
5887
+ * @memberof EventBookingDetailClubInfo
5888
+ */
5889
+ 'picture'?: string | null;
5890
+ /**
5891
+ *
5892
+ * @type {string}
5893
+ * @memberof EventBookingDetailClubInfo
5894
+ */
5895
+ 'address'?: string | null;
5896
+ }
5897
+ /**
5898
+ *
5899
+ * @export
5900
+ * @interface EventBookingDetailEventSummary
5901
+ */
5902
+ export interface EventBookingDetailEventSummary {
5903
+ /**
5904
+ *
5905
+ * @type {string}
5906
+ * @memberof EventBookingDetailEventSummary
5907
+ */
5908
+ 'id': string;
5909
+ /**
5910
+ *
5911
+ * @type {string}
5912
+ * @memberof EventBookingDetailEventSummary
5913
+ */
5914
+ 'clubId': string;
5915
+ /**
5916
+ *
5917
+ * @type {string}
5918
+ * @memberof EventBookingDetailEventSummary
5919
+ */
5920
+ 'type': EventBookingDetailEventSummaryTypeEnum;
5921
+ /**
5922
+ *
5923
+ * @type {string}
5924
+ * @memberof EventBookingDetailEventSummary
5925
+ */
5926
+ 'title': string;
5927
+ /**
5928
+ *
5929
+ * @type {string}
5930
+ * @memberof EventBookingDetailEventSummary
5931
+ */
5932
+ 'category'?: string;
5933
+ /**
5934
+ *
5935
+ * @type {string}
5936
+ * @memberof EventBookingDetailEventSummary
5937
+ */
5938
+ 'description'?: string;
5939
+ /**
5940
+ *
5941
+ * @type {string}
5942
+ * @memberof EventBookingDetailEventSummary
5943
+ */
5944
+ 'photoUrl'?: string;
5945
+ /**
5946
+ *
5947
+ * @type {boolean}
5948
+ * @memberof EventBookingDetailEventSummary
5949
+ */
5950
+ 'isAllDay': boolean;
5951
+ /**
5952
+ *
5953
+ * @type {string}
5954
+ * @memberof EventBookingDetailEventSummary
5955
+ */
5956
+ 'date': string;
5957
+ /**
5958
+ *
5959
+ * @type {number}
5960
+ * @memberof EventBookingDetailEventSummary
5961
+ */
5962
+ 'startTime'?: number;
5963
+ /**
5964
+ *
5965
+ * @type {number}
5966
+ * @memberof EventBookingDetailEventSummary
5967
+ */
5968
+ 'endTime'?: number;
5969
+ /**
5970
+ *
5971
+ * @type {Array<string>}
5972
+ * @memberof EventBookingDetailEventSummary
5973
+ */
5974
+ 'courts': Array<string>;
5975
+ /**
5976
+ *
5977
+ * @type {Array<SportWithLevels>}
5978
+ * @memberof EventBookingDetailEventSummary
5979
+ */
5980
+ 'sports': Array<SportWithLevels>;
5981
+ /**
5982
+ *
5983
+ * @type {string}
5984
+ * @memberof EventBookingDetailEventSummary
5985
+ */
5986
+ 'recurringType': EventBookingDetailEventSummaryRecurringTypeEnum;
5987
+ /**
5988
+ *
5989
+ * @type {string}
5990
+ * @memberof EventBookingDetailEventSummary
5991
+ */
5992
+ 'recurrenceEndDate'?: string;
5993
+ /**
5994
+ *
5995
+ * @type {string}
5996
+ * @memberof EventBookingDetailEventSummary
5997
+ */
5998
+ 'participationType': EventBookingDetailEventSummaryParticipationTypeEnum;
5999
+ /**
6000
+ *
6001
+ * @type {number}
6002
+ * @memberof EventBookingDetailEventSummary
6003
+ */
6004
+ 'playersPerTeam'?: number;
6005
+ /**
6006
+ *
6007
+ * @type {Array<string | null>}
6008
+ * @memberof EventBookingDetailEventSummary
6009
+ */
6010
+ 'levels'?: Array<string | null>;
6011
+ /**
6012
+ *
6013
+ * @type {Array<EventSponsor>}
6014
+ * @memberof EventBookingDetailEventSummary
6015
+ */
6016
+ 'sponsors'?: Array<EventSponsor>;
6017
+ }
6018
+
6019
+ export const EventBookingDetailEventSummaryTypeEnum = {
6020
+ Event: 'event',
6021
+ Closure: 'closure'
6022
+ } as const;
6023
+
6024
+ export type EventBookingDetailEventSummaryTypeEnum = typeof EventBookingDetailEventSummaryTypeEnum[keyof typeof EventBookingDetailEventSummaryTypeEnum];
6025
+ export const EventBookingDetailEventSummaryRecurringTypeEnum = {
6026
+ Unique: 'unique',
6027
+ Daily: 'daily',
6028
+ Weekly: 'weekly',
6029
+ Monthly: 'monthly'
6030
+ } as const;
6031
+
6032
+ export type EventBookingDetailEventSummaryRecurringTypeEnum = typeof EventBookingDetailEventSummaryRecurringTypeEnum[keyof typeof EventBookingDetailEventSummaryRecurringTypeEnum];
6033
+ export const EventBookingDetailEventSummaryParticipationTypeEnum = {
6034
+ Solo: 'solo',
6035
+ Team: 'team'
6036
+ } as const;
6037
+
6038
+ export type EventBookingDetailEventSummaryParticipationTypeEnum = typeof EventBookingDetailEventSummaryParticipationTypeEnum[keyof typeof EventBookingDetailEventSummaryParticipationTypeEnum];
6039
+
6040
+ /**
6041
+ *
6042
+ * @export
6043
+ * @interface EventBookingDetailResponse
6044
+ */
6045
+ export interface EventBookingDetailResponse {
6046
+ /**
6047
+ *
6048
+ * @type {EventBookingDetailClubInfo}
6049
+ * @memberof EventBookingDetailResponse
6050
+ */
6051
+ 'club': EventBookingDetailClubInfo;
6052
+ /**
6053
+ *
6054
+ * @type {EventBookingDetailEventSummary}
6055
+ * @memberof EventBookingDetailResponse
6056
+ */
6057
+ 'event': EventBookingDetailEventSummary;
6058
+ /**
6059
+ *
6060
+ * @type {EventBookingDetailResponseBooking}
6061
+ * @memberof EventBookingDetailResponse
6062
+ */
6063
+ 'booking': EventBookingDetailResponseBooking;
6064
+ /**
6065
+ *
6066
+ * @type {Array<BookingPlayerPaymentSummary>}
6067
+ * @memberof EventBookingDetailResponse
6068
+ */
6069
+ 'players': Array<BookingPlayerPaymentSummary>;
6070
+ /**
6071
+ *
6072
+ * @type {Array<BookingHistoryPopulated>}
6073
+ * @memberof EventBookingDetailResponse
6074
+ */
6075
+ 'history': Array<BookingHistoryPopulated>;
6076
+ }
6077
+ /**
6078
+ *
6079
+ * @export
6080
+ * @interface EventBookingDetailResponseBooking
6081
+ */
6082
+ export interface EventBookingDetailResponseBooking {
6083
+ /**
6084
+ *
6085
+ * @type {number}
6086
+ * @memberof EventBookingDetailResponseBooking
6087
+ */
6088
+ 'participantsCount': number;
6089
+ /**
6090
+ *
6091
+ * @type {string}
6092
+ * @memberof EventBookingDetailResponseBooking
6093
+ */
6094
+ 'updatedAt': string;
6095
+ /**
6096
+ *
6097
+ * @type {string}
6098
+ * @memberof EventBookingDetailResponseBooking
6099
+ */
6100
+ 'createdAt': string;
6101
+ /**
6102
+ *
6103
+ * @type {string}
6104
+ * @memberof EventBookingDetailResponseBooking
6105
+ */
6106
+ 'limitCancellationDate'?: string | null;
6107
+ /**
6108
+ *
6109
+ * @type {string}
6110
+ * @memberof EventBookingDetailResponseBooking
6111
+ */
6112
+ 'limitSetupDate'?: string | null;
6113
+ /**
6114
+ *
6115
+ * @type {boolean}
6116
+ * @memberof EventBookingDetailResponseBooking
6117
+ */
6118
+ 'paymentMethodSetupCompleted': boolean;
6119
+ /**
6120
+ *
6121
+ * @type {boolean}
6122
+ * @memberof EventBookingDetailResponseBooking
6123
+ */
6124
+ 'isCreatorPayingAll': boolean;
6125
+ /**
6126
+ *
6127
+ * @type {string}
6128
+ * @memberof EventBookingDetailResponseBooking
6129
+ */
6130
+ 'teamName'?: string | null;
6131
+ /**
6132
+ *
6133
+ * @type {EventBookingStatus}
6134
+ * @memberof EventBookingDetailResponseBooking
6135
+ */
6136
+ 'status': EventBookingStatus;
6137
+ /**
6138
+ *
6139
+ * @type {string}
6140
+ * @memberof EventBookingDetailResponseBooking
6141
+ */
6142
+ 'id': string;
6143
+ }
6144
+
6145
+
5866
6146
  /**
5867
6147
  *
5868
6148
  * @export
@@ -13405,7 +13685,13 @@ export interface SubscriptionPaymentSheetResponse {
13405
13685
  * @type {string}
13406
13686
  * @memberof SubscriptionPaymentSheetResponse
13407
13687
  */
13408
- 'paymentIntentClientSecret': string;
13688
+ 'setupIntentClientSecret'?: string;
13689
+ /**
13690
+ *
13691
+ * @type {string}
13692
+ * @memberof SubscriptionPaymentSheetResponse
13693
+ */
13694
+ 'paymentIntentClientSecret'?: string;
13409
13695
  }
13410
13696
  /**
13411
13697
  *
@@ -35738,6 +36024,43 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
35738
36024
 
35739
36025
 
35740
36026
 
36027
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
36028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36029
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
36030
+
36031
+ return {
36032
+ url: toPathString(localVarUrlObj),
36033
+ options: localVarRequestOptions,
36034
+ };
36035
+ },
36036
+ /**
36037
+ *
36038
+ * @param {string} eventBookingId
36039
+ * @param {*} [options] Override http request option.
36040
+ * @throws {RequiredError}
36041
+ */
36042
+ getEventBookingDetail: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
36043
+ // verify required parameter 'eventBookingId' is not null or undefined
36044
+ assertParamExists('getEventBookingDetail', 'eventBookingId', eventBookingId)
36045
+ const localVarPath = `/api/users/me/event-booking-detail/{eventBookingId}`
36046
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
36047
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36048
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
36049
+ let baseOptions;
36050
+ if (configuration) {
36051
+ baseOptions = configuration.baseOptions;
36052
+ }
36053
+
36054
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
36055
+ const localVarHeaderParameter = {} as any;
36056
+ const localVarQueryParameter = {} as any;
36057
+
36058
+ // authentication bearerAuth required
36059
+ // http bearer authentication required
36060
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
36061
+
36062
+
36063
+
35741
36064
  setSearchParams(localVarUrlObj, localVarQueryParameter);
35742
36065
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35743
36066
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -37457,6 +37780,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
37457
37780
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getBookingDetail']?.[localVarOperationServerIndex]?.url;
37458
37781
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37459
37782
  },
37783
+ /**
37784
+ *
37785
+ * @param {string} eventBookingId
37786
+ * @param {*} [options] Override http request option.
37787
+ * @throws {RequiredError}
37788
+ */
37789
+ async getEventBookingDetail(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventBookingDetailResponse>> {
37790
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventBookingDetail(eventBookingId, options);
37791
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
37792
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.getEventBookingDetail']?.[localVarOperationServerIndex]?.url;
37793
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37794
+ },
37460
37795
  /**
37461
37796
  *
37462
37797
  * @param {*} [options] Override http request option.
@@ -38040,6 +38375,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
38040
38375
  getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingSummary> {
38041
38376
  return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
38042
38377
  },
38378
+ /**
38379
+ *
38380
+ * @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
38381
+ * @param {*} [options] Override http request option.
38382
+ * @throws {RequiredError}
38383
+ */
38384
+ getEventBookingDetail(requestParameters: UsersApiGetEventBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventBookingDetailResponse> {
38385
+ return localVarFp.getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
38386
+ },
38043
38387
  /**
38044
38388
  *
38045
38389
  * @param {*} [options] Override http request option.
@@ -38488,6 +38832,20 @@ export interface UsersApiGetBookingDetailRequest {
38488
38832
  readonly bookingId: string
38489
38833
  }
38490
38834
 
38835
+ /**
38836
+ * Request parameters for getEventBookingDetail operation in UsersApi.
38837
+ * @export
38838
+ * @interface UsersApiGetEventBookingDetailRequest
38839
+ */
38840
+ export interface UsersApiGetEventBookingDetailRequest {
38841
+ /**
38842
+ *
38843
+ * @type {string}
38844
+ * @memberof UsersApiGetEventBookingDetail
38845
+ */
38846
+ readonly eventBookingId: string
38847
+ }
38848
+
38491
38849
  /**
38492
38850
  * Request parameters for getNearestClubs operation in UsersApi.
38493
38851
  * @export
@@ -39222,6 +39580,17 @@ export class UsersApi extends BaseAPI {
39222
39580
  return UsersApiFp(this.configuration).getBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
39223
39581
  }
39224
39582
 
39583
+ /**
39584
+ *
39585
+ * @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
39586
+ * @param {*} [options] Override http request option.
39587
+ * @throws {RequiredError}
39588
+ * @memberof UsersApi
39589
+ */
39590
+ public getEventBookingDetail(requestParameters: UsersApiGetEventBookingDetailRequest, options?: RawAxiosRequestConfig) {
39591
+ return UsersApiFp(this.configuration).getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
39592
+ }
39593
+
39225
39594
  /**
39226
39595
  *
39227
39596
  * @param {*} [options] Override http request option.