@tennac-booking/sdk 1.0.159 → 1.0.162

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @tennac-booking/sdk@1.0.159
1
+ ## @tennac-booking/sdk@1.0.161
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @tennac-booking/sdk@1.0.159 --save
39
+ npm install @tennac-booking/sdk@1.0.161 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -132,6 +132,7 @@ Class | Method | HTTP request | Description
132
132
  *ClubsApi* | [**getClubInfo**](docs/ClubsApi.md#getclubinfo) | **GET** /api/clubs/info |
133
133
  *ClubsApi* | [**getClubMetadata**](docs/ClubsApi.md#getclubmetadata) | **GET** /api/clubs/{clubId}/metadata |
134
134
  *ClubsApi* | [**getClubPageInfo**](docs/ClubsApi.md#getclubpageinfo) | **GET** /api/clubs/club-page/{clubId} |
135
+ *ClubsApi* | [**getClubTimezone**](docs/ClubsApi.md#getclubtimezone) | **GET** /api/clubs/{id}/timezone |
135
136
  *ClubsApi* | [**getClubUsersById**](docs/ClubsApi.md#getclubusersbyid) | **GET** /api/clubs/{id}/users |
136
137
  *ClubsApi* | [**getClubsWithVerificationDomains**](docs/ClubsApi.md#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains |
137
138
  *ClubsApi* | [**getCourtsByClubAndSportById**](docs/ClubsApi.md#getcourtsbyclubandsportbyid) | **GET** /api/clubs/{id}/sports/{sportId}/courts |
@@ -262,12 +263,12 @@ Class | Method | HTTP request | Description
262
263
  - [AgendaBooking](docs/AgendaBooking.md)
263
264
  - [AgendaBookingPlayer](docs/AgendaBookingPlayer.md)
264
265
  - [AgendaBookingSlot](docs/AgendaBookingSlot.md)
265
- - [AgendaPaymentStatus](docs/AgendaPaymentStatus.md)
266
266
  - [BookingAnalyticsResponse](docs/BookingAnalyticsResponse.md)
267
267
  - [BookingClubInfo](docs/BookingClubInfo.md)
268
268
  - [BookingCourtInfo](docs/BookingCourtInfo.md)
269
269
  - [BookingHistoryPopulated](docs/BookingHistoryPopulated.md)
270
270
  - [BookingInfo](docs/BookingInfo.md)
271
+ - [BookingInvoicePaymentStatus](docs/BookingInvoicePaymentStatus.md)
271
272
  - [BookingPaymentStatus](docs/BookingPaymentStatus.md)
272
273
  - [BookingPaymentStatusResponse](docs/BookingPaymentStatusResponse.md)
273
274
  - [BookingPaymentStatusResponseBooking](docs/BookingPaymentStatusResponseBooking.md)
@@ -410,6 +411,7 @@ Class | Method | HTTP request | Description
410
411
  - [GetAvailableSlotsBySports200Response](docs/GetAvailableSlotsBySports200Response.md)
411
412
  - [GetClubMembers200Response](docs/GetClubMembers200Response.md)
412
413
  - [GetClubRoles200Response](docs/GetClubRoles200Response.md)
414
+ - [GetClubTimezone200Response](docs/GetClubTimezone200Response.md)
413
415
  - [GetClubType200Response](docs/GetClubType200Response.md)
414
416
  - [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
415
417
  - [GetClubsWithVerificationDomains200ResponseInner](docs/GetClubsWithVerificationDomains200ResponseInner.md)
@@ -515,6 +517,7 @@ Class | Method | HTTP request | Description
515
517
  - [SendSubscriptionInvitationRequest](docs/SendSubscriptionInvitationRequest.md)
516
518
  - [SendSubscriptionInvitationResponse](docs/SendSubscriptionInvitationResponse.md)
517
519
  - [SlotInfo](docs/SlotInfo.md)
520
+ - [Sponsor](docs/Sponsor.md)
518
521
  - [SportAnalyticsResponse](docs/SportAnalyticsResponse.md)
519
522
  - [SportInfo](docs/SportInfo.md)
520
523
  - [SportKey](docs/SportKey.md)
package/api.ts 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.159
7
+ * The version of the OpenAPI document: 1.0.161
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -142,10 +142,10 @@ export interface AgendaBooking {
142
142
  'players': Array<AgendaBookingPlayer>;
143
143
  /**
144
144
  *
145
- * @type {AgendaPaymentStatus}
145
+ * @type {BookingInvoicePaymentStatus}
146
146
  * @memberof AgendaBooking
147
147
  */
148
- 'paymentStatus': AgendaPaymentStatus;
148
+ 'paymentStatus': BookingInvoicePaymentStatus;
149
149
  /**
150
150
  *
151
151
  * @type {Array<AgendaBookingSlot>}
@@ -229,21 +229,6 @@ export interface AgendaBookingSlot {
229
229
  */
230
230
  'isIndoor'?: boolean;
231
231
  }
232
- /**
233
- *
234
- * @export
235
- * @enum {string}
236
- */
237
-
238
- export const AgendaPaymentStatus = {
239
- Pay: 'payé',
240
- NonPay: 'non payé',
241
- EnAttente: 'en attente'
242
- } as const;
243
-
244
- export type AgendaPaymentStatus = typeof AgendaPaymentStatus[keyof typeof AgendaPaymentStatus];
245
-
246
-
247
232
  /**
248
233
  *
249
234
  * @export
@@ -524,6 +509,27 @@ export interface BookingInfo {
524
509
  }
525
510
 
526
511
 
512
+ /**
513
+ *
514
+ * @export
515
+ * @enum {string}
516
+ */
517
+
518
+ export const BookingInvoicePaymentStatus = {
519
+ SetupPending: 'setup_pending',
520
+ SetupSuccess: 'setup_success',
521
+ Pending: 'pending',
522
+ Paid: 'paid',
523
+ Failed: 'failed',
524
+ Authorized: 'authorized',
525
+ Canceled: 'canceled',
526
+ Expired: 'expired',
527
+ Partial: 'partial'
528
+ } as const;
529
+
530
+ export type BookingInvoicePaymentStatus = typeof BookingInvoicePaymentStatus[keyof typeof BookingInvoicePaymentStatus];
531
+
532
+
527
533
  /**
528
534
  *
529
535
  * @export
@@ -1774,6 +1780,12 @@ export interface ClientOnboardingRequestBody {
1774
1780
  * @memberof ClientOnboardingRequestBody
1775
1781
  */
1776
1782
  'clubType'?: ClientOnboardingRequestBodyClubTypeEnum;
1783
+ /**
1784
+ * Fuseau horaire du club (optionnel)
1785
+ * @type {string}
1786
+ * @memberof ClientOnboardingRequestBody
1787
+ */
1788
+ 'timezone'?: string;
1777
1789
  }
1778
1790
 
1779
1791
  export const ClientOnboardingRequestBodyClubTypeEnum = {
@@ -2032,16 +2044,16 @@ export interface ClubCustomerSettingsResponse {
2032
2044
  export interface ClubDayInterval {
2033
2045
  /**
2034
2046
  *
2035
- * @type {string}
2047
+ * @type {number}
2036
2048
  * @memberof ClubDayInterval
2037
2049
  */
2038
- 'start': string;
2050
+ 'start': number;
2039
2051
  /**
2040
2052
  *
2041
- * @type {string}
2053
+ * @type {number}
2042
2054
  * @memberof ClubDayInterval
2043
2055
  */
2044
- 'end': string;
2056
+ 'end': number;
2045
2057
  }
2046
2058
  /**
2047
2059
  *
@@ -3183,6 +3195,12 @@ export interface ClubPresentationSettingsResponse {
3183
3195
  * @memberof ClubPresentationSettingsResponse
3184
3196
  */
3185
3197
  'galleryImages': Array<string>;
3198
+ /**
3199
+ *
3200
+ * @type {Array<Sponsor>}
3201
+ * @memberof ClubPresentationSettingsResponse
3202
+ */
3203
+ 'sponsors': Array<Sponsor>;
3186
3204
  }
3187
3205
  /**
3188
3206
  *
@@ -3210,16 +3228,16 @@ export interface ClubPricingPeriodResponse {
3210
3228
  'days': Array<string>;
3211
3229
  /**
3212
3230
  *
3213
- * @type {string}
3231
+ * @type {number}
3214
3232
  * @memberof ClubPricingPeriodResponse
3215
3233
  */
3216
- 'startTime': string;
3234
+ 'startTime': number;
3217
3235
  /**
3218
3236
  *
3219
- * @type {string}
3237
+ * @type {number}
3220
3238
  * @memberof ClubPricingPeriodResponse
3221
3239
  */
3222
- 'endTime': string;
3240
+ 'endTime': number;
3223
3241
  /**
3224
3242
  *
3225
3243
  * @type {number}
@@ -5794,6 +5812,19 @@ export interface GetClubRoles200Response {
5794
5812
  */
5795
5813
  'roles': Array<any>;
5796
5814
  }
5815
+ /**
5816
+ *
5817
+ * @export
5818
+ * @interface GetClubTimezone200Response
5819
+ */
5820
+ export interface GetClubTimezone200Response {
5821
+ /**
5822
+ *
5823
+ * @type {string}
5824
+ * @memberof GetClubTimezone200Response
5825
+ */
5826
+ 'timezone': string;
5827
+ }
5797
5828
  /**
5798
5829
  *
5799
5830
  * @export
@@ -6209,16 +6240,16 @@ export interface HotelAccessSettings {
6209
6240
  'accessCode'?: string | null;
6210
6241
  /**
6211
6242
  *
6212
- * @type {string}
6243
+ * @type {number}
6213
6244
  * @memberof HotelAccessSettings
6214
6245
  */
6215
- 'validFrom'?: string | null;
6246
+ 'validFrom'?: number | null;
6216
6247
  /**
6217
6248
  *
6218
- * @type {string}
6249
+ * @type {number}
6219
6250
  * @memberof HotelAccessSettings
6220
6251
  */
6221
- 'validUntil'?: string | null;
6252
+ 'validUntil'?: number | null;
6222
6253
  }
6223
6254
  /**
6224
6255
  *
@@ -7736,16 +7767,16 @@ export interface PartialHotelAccessSettings {
7736
7767
  'accessCode'?: string;
7737
7768
  /**
7738
7769
  *
7739
- * @type {string}
7770
+ * @type {number}
7740
7771
  * @memberof PartialHotelAccessSettings
7741
7772
  */
7742
- 'validFrom'?: string;
7773
+ 'validFrom'?: number;
7743
7774
  /**
7744
7775
  *
7745
- * @type {string}
7776
+ * @type {number}
7746
7777
  * @memberof PartialHotelAccessSettings
7747
7778
  */
7748
- 'validUntil'?: string;
7779
+ 'validUntil'?: number;
7749
7780
  /**
7750
7781
  *
7751
7782
  * @type {boolean}
@@ -9449,6 +9480,31 @@ export interface SlotInfo {
9449
9480
  */
9450
9481
  'court': CourtInfo;
9451
9482
  }
9483
+ /**
9484
+ *
9485
+ * @export
9486
+ * @interface Sponsor
9487
+ */
9488
+ export interface Sponsor {
9489
+ /**
9490
+ *
9491
+ * @type {string}
9492
+ * @memberof Sponsor
9493
+ */
9494
+ 'name': string;
9495
+ /**
9496
+ *
9497
+ * @type {string}
9498
+ * @memberof Sponsor
9499
+ */
9500
+ 'logo'?: string;
9501
+ /**
9502
+ *
9503
+ * @type {string}
9504
+ * @memberof Sponsor
9505
+ */
9506
+ 'websiteUrl'?: string;
9507
+ }
9452
9508
  /**
9453
9509
  *
9454
9510
  * @export
@@ -10822,6 +10878,12 @@ export interface UpdateClubPresentationSettingsRequest {
10822
10878
  * @memberof UpdateClubPresentationSettingsRequest
10823
10879
  */
10824
10880
  'galleryImages'?: Array<UpdateClubGeneralSettingsRequestLogo>;
10881
+ /**
10882
+ *
10883
+ * @type {Array<Sponsor>}
10884
+ * @memberof UpdateClubPresentationSettingsRequest
10885
+ */
10886
+ 'sponsors'?: Array<Sponsor>;
10825
10887
  }
10826
10888
  /**
10827
10889
  *
@@ -19398,6 +19460,39 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
19398
19460
 
19399
19461
 
19400
19462
 
19463
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19464
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19465
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19466
+
19467
+ return {
19468
+ url: toPathString(localVarUrlObj),
19469
+ options: localVarRequestOptions,
19470
+ };
19471
+ },
19472
+ /**
19473
+ * Récupère le fuseau horaire d\'un club
19474
+ * @param {string} id
19475
+ * @param {*} [options] Override http request option.
19476
+ * @throws {RequiredError}
19477
+ */
19478
+ getClubTimezone: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19479
+ // verify required parameter 'id' is not null or undefined
19480
+ assertParamExists('getClubTimezone', 'id', id)
19481
+ const localVarPath = `/api/clubs/{id}/timezone`
19482
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19483
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19484
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19485
+ let baseOptions;
19486
+ if (configuration) {
19487
+ baseOptions = configuration.baseOptions;
19488
+ }
19489
+
19490
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19491
+ const localVarHeaderParameter = {} as any;
19492
+ const localVarQueryParameter = {} as any;
19493
+
19494
+
19495
+
19401
19496
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19402
19497
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19403
19498
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -19754,6 +19849,18 @@ export const ClubsApiFp = function(configuration?: Configuration) {
19754
19849
  const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubPageInfo']?.[localVarOperationServerIndex]?.url;
19755
19850
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19756
19851
  },
19852
+ /**
19853
+ * Récupère le fuseau horaire d\'un club
19854
+ * @param {string} id
19855
+ * @param {*} [options] Override http request option.
19856
+ * @throws {RequiredError}
19857
+ */
19858
+ async getClubTimezone(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubTimezone200Response>> {
19859
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubTimezone(id, options);
19860
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19861
+ const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubTimezone']?.[localVarOperationServerIndex]?.url;
19862
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19863
+ },
19757
19864
  /**
19758
19865
  *
19759
19866
  * @param {string} id
@@ -19919,6 +20026,15 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
19919
20026
  getClubPageInfo(requestParameters: ClubsApiGetClubPageInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPageResponse> {
19920
20027
  return localVarFp.getClubPageInfo(requestParameters.clubId, options).then((request) => request(axios, basePath));
19921
20028
  },
20029
+ /**
20030
+ * Récupère le fuseau horaire d\'un club
20031
+ * @param {ClubsApiGetClubTimezoneRequest} requestParameters Request parameters.
20032
+ * @param {*} [options] Override http request option.
20033
+ * @throws {RequiredError}
20034
+ */
20035
+ getClubTimezone(requestParameters: ClubsApiGetClubTimezoneRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubTimezone200Response> {
20036
+ return localVarFp.getClubTimezone(requestParameters.id, options).then((request) => request(axios, basePath));
20037
+ },
19922
20038
  /**
19923
20039
  *
19924
20040
  * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
@@ -20075,6 +20191,20 @@ export interface ClubsApiGetClubPageInfoRequest {
20075
20191
  readonly clubId: string
20076
20192
  }
20077
20193
 
20194
+ /**
20195
+ * Request parameters for getClubTimezone operation in ClubsApi.
20196
+ * @export
20197
+ * @interface ClubsApiGetClubTimezoneRequest
20198
+ */
20199
+ export interface ClubsApiGetClubTimezoneRequest {
20200
+ /**
20201
+ *
20202
+ * @type {string}
20203
+ * @memberof ClubsApiGetClubTimezone
20204
+ */
20205
+ readonly id: string
20206
+ }
20207
+
20078
20208
  /**
20079
20209
  * Request parameters for getClubUsersById operation in ClubsApi.
20080
20210
  * @export
@@ -20272,6 +20402,17 @@ export class ClubsApi extends BaseAPI {
20272
20402
  return ClubsApiFp(this.configuration).getClubPageInfo(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
20273
20403
  }
20274
20404
 
20405
+ /**
20406
+ * Récupère le fuseau horaire d\'un club
20407
+ * @param {ClubsApiGetClubTimezoneRequest} requestParameters Request parameters.
20408
+ * @param {*} [options] Override http request option.
20409
+ * @throws {RequiredError}
20410
+ * @memberof ClubsApi
20411
+ */
20412
+ public getClubTimezone(requestParameters: ClubsApiGetClubTimezoneRequest, options?: RawAxiosRequestConfig) {
20413
+ return ClubsApiFp(this.configuration).getClubTimezone(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
20414
+ }
20415
+
20275
20416
  /**
20276
20417
  *
20277
20418
  * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
package/base.ts 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.159
7
+ * The version of the OpenAPI document: 1.0.161
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts 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.159
7
+ * The version of the OpenAPI document: 1.0.161
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts 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.159
7
+ * The version of the OpenAPI document: 1.0.161
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).