@tennac-booking/sdk 1.0.112 → 1.0.113

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.
@@ -59,6 +59,8 @@ docs/ClubHoursSettingsResponse.md
59
59
  docs/ClubLocationSettings.md
60
60
  docs/ClubMemberResponse.md
61
61
  docs/ClubMemberResponseUser.md
62
+ docs/ClubMetadataResponse.md
63
+ docs/ClubMetadataResponseLocation.md
62
64
  docs/ClubPageResponse.md
63
65
  docs/ClubPlayerBookingItem.md
64
66
  docs/ClubPlayerBookingsPagination.md
package/README.md CHANGED
@@ -105,6 +105,7 @@ Class | Method | HTTP request | Description
105
105
  *ClubsApi* | [**getAvailableSlotsBySports**](docs/ClubsApi.md#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots |
106
106
  *ClubsApi* | [**getAvailableSlotsBySportsAndDay**](docs/ClubsApi.md#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} |
107
107
  *ClubsApi* | [**getClubInfo**](docs/ClubsApi.md#getclubinfo) | **GET** /api/clubs/info |
108
+ *ClubsApi* | [**getClubMetadata**](docs/ClubsApi.md#getclubmetadata) | **GET** /api/clubs/{clubId}/metadata |
108
109
  *ClubsApi* | [**getClubPageInfo**](docs/ClubsApi.md#getclubpageinfo) | **GET** /api/clubs/club-page/{clubId} |
109
110
  *ClubsApi* | [**getClubUsersById**](docs/ClubsApi.md#getclubusersbyid) | **GET** /api/clubs/{id}/users |
110
111
  *ClubsApi* | [**getClubsWithVerificationDomains**](docs/ClubsApi.md#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains |
@@ -255,6 +256,8 @@ Class | Method | HTTP request | Description
255
256
  - [ClubLocationSettings](docs/ClubLocationSettings.md)
256
257
  - [ClubMemberResponse](docs/ClubMemberResponse.md)
257
258
  - [ClubMemberResponseUser](docs/ClubMemberResponseUser.md)
259
+ - [ClubMetadataResponse](docs/ClubMetadataResponse.md)
260
+ - [ClubMetadataResponseLocation](docs/ClubMetadataResponseLocation.md)
258
261
  - [ClubPageResponse](docs/ClubPageResponse.md)
259
262
  - [ClubPlayerBookingItem](docs/ClubPlayerBookingItem.md)
260
263
  - [ClubPlayerBookingsPagination](docs/ClubPlayerBookingsPagination.md)
package/api.ts CHANGED
@@ -1812,6 +1812,80 @@ export interface ClubMemberResponseUser {
1812
1812
  */
1813
1813
  'id': string;
1814
1814
  }
1815
+ /**
1816
+ *
1817
+ * @export
1818
+ * @interface ClubMetadataResponse
1819
+ */
1820
+ export interface ClubMetadataResponse {
1821
+ /**
1822
+ * ID unique du club
1823
+ * @type {string}
1824
+ * @memberof ClubMetadataResponse
1825
+ */
1826
+ 'id': string;
1827
+ /**
1828
+ * Nom du club
1829
+ * @type {string}
1830
+ * @memberof ClubMetadataResponse
1831
+ */
1832
+ 'name': string;
1833
+ /**
1834
+ * Description du club
1835
+ * @type {string}
1836
+ * @memberof ClubMetadataResponse
1837
+ */
1838
+ 'description'?: string;
1839
+ /**
1840
+ * URL de la photo de profil (pdp)
1841
+ * @type {string}
1842
+ * @memberof ClubMetadataResponse
1843
+ */
1844
+ 'picture'?: string;
1845
+ /**
1846
+ * URL de la bannière principale
1847
+ * @type {string}
1848
+ * @memberof ClubMetadataResponse
1849
+ */
1850
+ 'primaryBannerPicture'?: string;
1851
+ /**
1852
+ *
1853
+ * @type {ClubMetadataResponseLocation}
1854
+ * @memberof ClubMetadataResponse
1855
+ */
1856
+ 'location'?: ClubMetadataResponseLocation;
1857
+ }
1858
+ /**
1859
+ * Localisation du club
1860
+ * @export
1861
+ * @interface ClubMetadataResponseLocation
1862
+ */
1863
+ export interface ClubMetadataResponseLocation {
1864
+ /**
1865
+ *
1866
+ * @type {string}
1867
+ * @memberof ClubMetadataResponseLocation
1868
+ */
1869
+ 'country'?: string;
1870
+ /**
1871
+ *
1872
+ * @type {string}
1873
+ * @memberof ClubMetadataResponseLocation
1874
+ */
1875
+ 'zipCode'?: string;
1876
+ /**
1877
+ *
1878
+ * @type {string}
1879
+ * @memberof ClubMetadataResponseLocation
1880
+ */
1881
+ 'city'?: string;
1882
+ /**
1883
+ *
1884
+ * @type {string}
1885
+ * @memberof ClubMetadataResponseLocation
1886
+ */
1887
+ 'address'?: string;
1888
+ }
1815
1889
  /**
1816
1890
  *
1817
1891
  * @export
@@ -14393,6 +14467,39 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
14393
14467
 
14394
14468
 
14395
14469
 
14470
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14471
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14472
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14473
+
14474
+ return {
14475
+ url: toPathString(localVarUrlObj),
14476
+ options: localVarRequestOptions,
14477
+ };
14478
+ },
14479
+ /**
14480
+ * Récupère les métadonnées publiques d\'un club
14481
+ * @param {string} clubId
14482
+ * @param {*} [options] Override http request option.
14483
+ * @throws {RequiredError}
14484
+ */
14485
+ getClubMetadata: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14486
+ // verify required parameter 'clubId' is not null or undefined
14487
+ assertParamExists('getClubMetadata', 'clubId', clubId)
14488
+ const localVarPath = `/api/clubs/{clubId}/metadata`
14489
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
14490
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14491
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14492
+ let baseOptions;
14493
+ if (configuration) {
14494
+ baseOptions = configuration.baseOptions;
14495
+ }
14496
+
14497
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14498
+ const localVarHeaderParameter = {} as any;
14499
+ const localVarQueryParameter = {} as any;
14500
+
14501
+
14502
+
14396
14503
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14397
14504
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14398
14505
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -14715,6 +14822,18 @@ export const ClubsApiFp = function(configuration?: Configuration) {
14715
14822
  const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubInfo']?.[localVarOperationServerIndex]?.url;
14716
14823
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14717
14824
  },
14825
+ /**
14826
+ * Récupère les métadonnées publiques d\'un club
14827
+ * @param {string} clubId
14828
+ * @param {*} [options] Override http request option.
14829
+ * @throws {RequiredError}
14830
+ */
14831
+ async getClubMetadata(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubMetadataResponse>> {
14832
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubMetadata(clubId, options);
14833
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14834
+ const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubMetadata']?.[localVarOperationServerIndex]?.url;
14835
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14836
+ },
14718
14837
  /**
14719
14838
  *
14720
14839
  * @param {string} clubId
@@ -14860,6 +14979,15 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
14860
14979
  getClubInfo(options?: RawAxiosRequestConfig): AxiosPromise<ClubResponse> {
14861
14980
  return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
14862
14981
  },
14982
+ /**
14983
+ * Récupère les métadonnées publiques d\'un club
14984
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
14985
+ * @param {*} [options] Override http request option.
14986
+ * @throws {RequiredError}
14987
+ */
14988
+ getClubMetadata(requestParameters: ClubsApiGetClubMetadataRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubMetadataResponse> {
14989
+ return localVarFp.getClubMetadata(requestParameters.clubId, options).then((request) => request(axios, basePath));
14990
+ },
14863
14991
  /**
14864
14992
  *
14865
14993
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -14988,6 +15116,20 @@ export interface ClubsApiGetAvailableSlotsBySportsAndDayRequest {
14988
15116
  readonly day: string
14989
15117
  }
14990
15118
 
15119
+ /**
15120
+ * Request parameters for getClubMetadata operation in ClubsApi.
15121
+ * @export
15122
+ * @interface ClubsApiGetClubMetadataRequest
15123
+ */
15124
+ export interface ClubsApiGetClubMetadataRequest {
15125
+ /**
15126
+ *
15127
+ * @type {string}
15128
+ * @memberof ClubsApiGetClubMetadata
15129
+ */
15130
+ readonly clubId: string
15131
+ }
15132
+
14991
15133
  /**
14992
15134
  * Request parameters for getClubPageInfo operation in ClubsApi.
14993
15135
  * @export
@@ -15149,6 +15291,17 @@ export class ClubsApi extends BaseAPI {
15149
15291
  return ClubsApiFp(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
15150
15292
  }
15151
15293
 
15294
+ /**
15295
+ * Récupère les métadonnées publiques d\'un club
15296
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
15297
+ * @param {*} [options] Override http request option.
15298
+ * @throws {RequiredError}
15299
+ * @memberof ClubsApi
15300
+ */
15301
+ public getClubMetadata(requestParameters: ClubsApiGetClubMetadataRequest, options?: RawAxiosRequestConfig) {
15302
+ return ClubsApiFp(this.configuration).getClubMetadata(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
15303
+ }
15304
+
15152
15305
  /**
15153
15306
  *
15154
15307
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
package/dist/api.d.ts CHANGED
@@ -1779,6 +1779,80 @@ export interface ClubMemberResponseUser {
1779
1779
  */
1780
1780
  'id': string;
1781
1781
  }
1782
+ /**
1783
+ *
1784
+ * @export
1785
+ * @interface ClubMetadataResponse
1786
+ */
1787
+ export interface ClubMetadataResponse {
1788
+ /**
1789
+ * ID unique du club
1790
+ * @type {string}
1791
+ * @memberof ClubMetadataResponse
1792
+ */
1793
+ 'id': string;
1794
+ /**
1795
+ * Nom du club
1796
+ * @type {string}
1797
+ * @memberof ClubMetadataResponse
1798
+ */
1799
+ 'name': string;
1800
+ /**
1801
+ * Description du club
1802
+ * @type {string}
1803
+ * @memberof ClubMetadataResponse
1804
+ */
1805
+ 'description'?: string;
1806
+ /**
1807
+ * URL de la photo de profil (pdp)
1808
+ * @type {string}
1809
+ * @memberof ClubMetadataResponse
1810
+ */
1811
+ 'picture'?: string;
1812
+ /**
1813
+ * URL de la bannière principale
1814
+ * @type {string}
1815
+ * @memberof ClubMetadataResponse
1816
+ */
1817
+ 'primaryBannerPicture'?: string;
1818
+ /**
1819
+ *
1820
+ * @type {ClubMetadataResponseLocation}
1821
+ * @memberof ClubMetadataResponse
1822
+ */
1823
+ 'location'?: ClubMetadataResponseLocation;
1824
+ }
1825
+ /**
1826
+ * Localisation du club
1827
+ * @export
1828
+ * @interface ClubMetadataResponseLocation
1829
+ */
1830
+ export interface ClubMetadataResponseLocation {
1831
+ /**
1832
+ *
1833
+ * @type {string}
1834
+ * @memberof ClubMetadataResponseLocation
1835
+ */
1836
+ 'country'?: string;
1837
+ /**
1838
+ *
1839
+ * @type {string}
1840
+ * @memberof ClubMetadataResponseLocation
1841
+ */
1842
+ 'zipCode'?: string;
1843
+ /**
1844
+ *
1845
+ * @type {string}
1846
+ * @memberof ClubMetadataResponseLocation
1847
+ */
1848
+ 'city'?: string;
1849
+ /**
1850
+ *
1851
+ * @type {string}
1852
+ * @memberof ClubMetadataResponseLocation
1853
+ */
1854
+ 'address'?: string;
1855
+ }
1782
1856
  /**
1783
1857
  *
1784
1858
  * @export
@@ -11916,6 +11990,13 @@ export declare const ClubsApiAxiosParamCreator: (configuration?: Configuration)
11916
11990
  * @throws {RequiredError}
11917
11991
  */
11918
11992
  getClubInfo: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11993
+ /**
11994
+ * Récupère les métadonnées publiques d\'un club
11995
+ * @param {string} clubId
11996
+ * @param {*} [options] Override http request option.
11997
+ * @throws {RequiredError}
11998
+ */
11999
+ getClubMetadata: (clubId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11919
12000
  /**
11920
12001
  *
11921
12002
  * @param {string} clubId
@@ -12013,6 +12094,13 @@ export declare const ClubsApiFp: (configuration?: Configuration) => {
12013
12094
  * @throws {RequiredError}
12014
12095
  */
12015
12096
  getClubInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubResponse>>;
12097
+ /**
12098
+ * Récupère les métadonnées publiques d\'un club
12099
+ * @param {string} clubId
12100
+ * @param {*} [options] Override http request option.
12101
+ * @throws {RequiredError}
12102
+ */
12103
+ getClubMetadata(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubMetadataResponse>>;
12016
12104
  /**
12017
12105
  *
12018
12106
  * @param {string} clubId
@@ -12107,6 +12195,13 @@ export declare const ClubsApiFactory: (configuration?: Configuration, basePath?:
12107
12195
  * @throws {RequiredError}
12108
12196
  */
12109
12197
  getClubInfo(options?: RawAxiosRequestConfig): AxiosPromise<ClubResponse>;
12198
+ /**
12199
+ * Récupère les métadonnées publiques d\'un club
12200
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
12201
+ * @param {*} [options] Override http request option.
12202
+ * @throws {RequiredError}
12203
+ */
12204
+ getClubMetadata(requestParameters: ClubsApiGetClubMetadataRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubMetadataResponse>;
12110
12205
  /**
12111
12206
  *
12112
12207
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -12213,6 +12308,19 @@ export interface ClubsApiGetAvailableSlotsBySportsAndDayRequest {
12213
12308
  */
12214
12309
  readonly day: string;
12215
12310
  }
12311
+ /**
12312
+ * Request parameters for getClubMetadata operation in ClubsApi.
12313
+ * @export
12314
+ * @interface ClubsApiGetClubMetadataRequest
12315
+ */
12316
+ export interface ClubsApiGetClubMetadataRequest {
12317
+ /**
12318
+ *
12319
+ * @type {string}
12320
+ * @memberof ClubsApiGetClubMetadata
12321
+ */
12322
+ readonly clubId: string;
12323
+ }
12216
12324
  /**
12217
12325
  * Request parameters for getClubPageInfo operation in ClubsApi.
12218
12326
  * @export
@@ -12349,6 +12457,14 @@ export declare class ClubsApi extends BaseAPI {
12349
12457
  * @memberof ClubsApi
12350
12458
  */
12351
12459
  getClubInfo(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubResponse, any, {}>>;
12460
+ /**
12461
+ * Récupère les métadonnées publiques d\'un club
12462
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
12463
+ * @param {*} [options] Override http request option.
12464
+ * @throws {RequiredError}
12465
+ * @memberof ClubsApi
12466
+ */
12467
+ getClubMetadata(requestParameters: ClubsApiGetClubMetadataRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubMetadataResponse, any, {}>>;
12352
12468
  /**
12353
12469
  *
12354
12470
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
package/dist/api.js CHANGED
@@ -4050,6 +4050,34 @@ const ClubsApiAxiosParamCreator = function (configuration) {
4050
4050
  options: localVarRequestOptions,
4051
4051
  };
4052
4052
  }),
4053
+ /**
4054
+ * Récupère les métadonnées publiques d\'un club
4055
+ * @param {string} clubId
4056
+ * @param {*} [options] Override http request option.
4057
+ * @throws {RequiredError}
4058
+ */
4059
+ getClubMetadata: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
4060
+ // verify required parameter 'clubId' is not null or undefined
4061
+ (0, common_1.assertParamExists)('getClubMetadata', 'clubId', clubId);
4062
+ const localVarPath = `/api/clubs/{clubId}/metadata`
4063
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
4064
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4065
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4066
+ let baseOptions;
4067
+ if (configuration) {
4068
+ baseOptions = configuration.baseOptions;
4069
+ }
4070
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4071
+ const localVarHeaderParameter = {};
4072
+ const localVarQueryParameter = {};
4073
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4075
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4076
+ return {
4077
+ url: (0, common_1.toPathString)(localVarUrlObj),
4078
+ options: localVarRequestOptions,
4079
+ };
4080
+ }),
4053
4081
  /**
4054
4082
  *
4055
4083
  * @param {string} clubId
@@ -4346,6 +4374,21 @@ const ClubsApiFp = function (configuration) {
4346
4374
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4347
4375
  });
4348
4376
  },
4377
+ /**
4378
+ * Récupère les métadonnées publiques d\'un club
4379
+ * @param {string} clubId
4380
+ * @param {*} [options] Override http request option.
4381
+ * @throws {RequiredError}
4382
+ */
4383
+ getClubMetadata(clubId, options) {
4384
+ return __awaiter(this, void 0, void 0, function* () {
4385
+ var _a, _b, _c;
4386
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMetadata(clubId, options);
4387
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4388
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getClubMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4389
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4390
+ });
4391
+ },
4349
4392
  /**
4350
4393
  *
4351
4394
  * @param {string} clubId
@@ -4512,6 +4555,15 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
4512
4555
  getClubInfo(options) {
4513
4556
  return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
4514
4557
  },
4558
+ /**
4559
+ * Récupère les métadonnées publiques d\'un club
4560
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
4561
+ * @param {*} [options] Override http request option.
4562
+ * @throws {RequiredError}
4563
+ */
4564
+ getClubMetadata(requestParameters, options) {
4565
+ return localVarFp.getClubMetadata(requestParameters.clubId, options).then((request) => request(axios, basePath));
4566
+ },
4515
4567
  /**
4516
4568
  *
4517
4569
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -4641,6 +4693,16 @@ class ClubsApi extends base_1.BaseAPI {
4641
4693
  getClubInfo(options) {
4642
4694
  return (0, exports.ClubsApiFp)(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
4643
4695
  }
4696
+ /**
4697
+ * Récupère les métadonnées publiques d\'un club
4698
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
4699
+ * @param {*} [options] Override http request option.
4700
+ * @throws {RequiredError}
4701
+ * @memberof ClubsApi
4702
+ */
4703
+ getClubMetadata(requestParameters, options) {
4704
+ return (0, exports.ClubsApiFp)(this.configuration).getClubMetadata(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
4705
+ }
4644
4706
  /**
4645
4707
  *
4646
4708
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
package/dist/esm/api.d.ts CHANGED
@@ -1779,6 +1779,80 @@ export interface ClubMemberResponseUser {
1779
1779
  */
1780
1780
  'id': string;
1781
1781
  }
1782
+ /**
1783
+ *
1784
+ * @export
1785
+ * @interface ClubMetadataResponse
1786
+ */
1787
+ export interface ClubMetadataResponse {
1788
+ /**
1789
+ * ID unique du club
1790
+ * @type {string}
1791
+ * @memberof ClubMetadataResponse
1792
+ */
1793
+ 'id': string;
1794
+ /**
1795
+ * Nom du club
1796
+ * @type {string}
1797
+ * @memberof ClubMetadataResponse
1798
+ */
1799
+ 'name': string;
1800
+ /**
1801
+ * Description du club
1802
+ * @type {string}
1803
+ * @memberof ClubMetadataResponse
1804
+ */
1805
+ 'description'?: string;
1806
+ /**
1807
+ * URL de la photo de profil (pdp)
1808
+ * @type {string}
1809
+ * @memberof ClubMetadataResponse
1810
+ */
1811
+ 'picture'?: string;
1812
+ /**
1813
+ * URL de la bannière principale
1814
+ * @type {string}
1815
+ * @memberof ClubMetadataResponse
1816
+ */
1817
+ 'primaryBannerPicture'?: string;
1818
+ /**
1819
+ *
1820
+ * @type {ClubMetadataResponseLocation}
1821
+ * @memberof ClubMetadataResponse
1822
+ */
1823
+ 'location'?: ClubMetadataResponseLocation;
1824
+ }
1825
+ /**
1826
+ * Localisation du club
1827
+ * @export
1828
+ * @interface ClubMetadataResponseLocation
1829
+ */
1830
+ export interface ClubMetadataResponseLocation {
1831
+ /**
1832
+ *
1833
+ * @type {string}
1834
+ * @memberof ClubMetadataResponseLocation
1835
+ */
1836
+ 'country'?: string;
1837
+ /**
1838
+ *
1839
+ * @type {string}
1840
+ * @memberof ClubMetadataResponseLocation
1841
+ */
1842
+ 'zipCode'?: string;
1843
+ /**
1844
+ *
1845
+ * @type {string}
1846
+ * @memberof ClubMetadataResponseLocation
1847
+ */
1848
+ 'city'?: string;
1849
+ /**
1850
+ *
1851
+ * @type {string}
1852
+ * @memberof ClubMetadataResponseLocation
1853
+ */
1854
+ 'address'?: string;
1855
+ }
1782
1856
  /**
1783
1857
  *
1784
1858
  * @export
@@ -11916,6 +11990,13 @@ export declare const ClubsApiAxiosParamCreator: (configuration?: Configuration)
11916
11990
  * @throws {RequiredError}
11917
11991
  */
11918
11992
  getClubInfo: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11993
+ /**
11994
+ * Récupère les métadonnées publiques d\'un club
11995
+ * @param {string} clubId
11996
+ * @param {*} [options] Override http request option.
11997
+ * @throws {RequiredError}
11998
+ */
11999
+ getClubMetadata: (clubId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11919
12000
  /**
11920
12001
  *
11921
12002
  * @param {string} clubId
@@ -12013,6 +12094,13 @@ export declare const ClubsApiFp: (configuration?: Configuration) => {
12013
12094
  * @throws {RequiredError}
12014
12095
  */
12015
12096
  getClubInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubResponse>>;
12097
+ /**
12098
+ * Récupère les métadonnées publiques d\'un club
12099
+ * @param {string} clubId
12100
+ * @param {*} [options] Override http request option.
12101
+ * @throws {RequiredError}
12102
+ */
12103
+ getClubMetadata(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubMetadataResponse>>;
12016
12104
  /**
12017
12105
  *
12018
12106
  * @param {string} clubId
@@ -12107,6 +12195,13 @@ export declare const ClubsApiFactory: (configuration?: Configuration, basePath?:
12107
12195
  * @throws {RequiredError}
12108
12196
  */
12109
12197
  getClubInfo(options?: RawAxiosRequestConfig): AxiosPromise<ClubResponse>;
12198
+ /**
12199
+ * Récupère les métadonnées publiques d\'un club
12200
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
12201
+ * @param {*} [options] Override http request option.
12202
+ * @throws {RequiredError}
12203
+ */
12204
+ getClubMetadata(requestParameters: ClubsApiGetClubMetadataRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubMetadataResponse>;
12110
12205
  /**
12111
12206
  *
12112
12207
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -12213,6 +12308,19 @@ export interface ClubsApiGetAvailableSlotsBySportsAndDayRequest {
12213
12308
  */
12214
12309
  readonly day: string;
12215
12310
  }
12311
+ /**
12312
+ * Request parameters for getClubMetadata operation in ClubsApi.
12313
+ * @export
12314
+ * @interface ClubsApiGetClubMetadataRequest
12315
+ */
12316
+ export interface ClubsApiGetClubMetadataRequest {
12317
+ /**
12318
+ *
12319
+ * @type {string}
12320
+ * @memberof ClubsApiGetClubMetadata
12321
+ */
12322
+ readonly clubId: string;
12323
+ }
12216
12324
  /**
12217
12325
  * Request parameters for getClubPageInfo operation in ClubsApi.
12218
12326
  * @export
@@ -12349,6 +12457,14 @@ export declare class ClubsApi extends BaseAPI {
12349
12457
  * @memberof ClubsApi
12350
12458
  */
12351
12459
  getClubInfo(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubResponse, any, {}>>;
12460
+ /**
12461
+ * Récupère les métadonnées publiques d\'un club
12462
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
12463
+ * @param {*} [options] Override http request option.
12464
+ * @throws {RequiredError}
12465
+ * @memberof ClubsApi
12466
+ */
12467
+ getClubMetadata(requestParameters: ClubsApiGetClubMetadataRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubMetadataResponse, any, {}>>;
12352
12468
  /**
12353
12469
  *
12354
12470
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
package/dist/esm/api.js CHANGED
@@ -4000,6 +4000,34 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
4000
4000
  options: localVarRequestOptions,
4001
4001
  };
4002
4002
  }),
4003
+ /**
4004
+ * Récupère les métadonnées publiques d\'un club
4005
+ * @param {string} clubId
4006
+ * @param {*} [options] Override http request option.
4007
+ * @throws {RequiredError}
4008
+ */
4009
+ getClubMetadata: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
4010
+ // verify required parameter 'clubId' is not null or undefined
4011
+ assertParamExists('getClubMetadata', 'clubId', clubId);
4012
+ const localVarPath = `/api/clubs/{clubId}/metadata`
4013
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
4014
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4015
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4016
+ let baseOptions;
4017
+ if (configuration) {
4018
+ baseOptions = configuration.baseOptions;
4019
+ }
4020
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4021
+ const localVarHeaderParameter = {};
4022
+ const localVarQueryParameter = {};
4023
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4024
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4025
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4026
+ return {
4027
+ url: toPathString(localVarUrlObj),
4028
+ options: localVarRequestOptions,
4029
+ };
4030
+ }),
4003
4031
  /**
4004
4032
  *
4005
4033
  * @param {string} clubId
@@ -4295,6 +4323,21 @@ export const ClubsApiFp = function (configuration) {
4295
4323
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4296
4324
  });
4297
4325
  },
4326
+ /**
4327
+ * Récupère les métadonnées publiques d\'un club
4328
+ * @param {string} clubId
4329
+ * @param {*} [options] Override http request option.
4330
+ * @throws {RequiredError}
4331
+ */
4332
+ getClubMetadata(clubId, options) {
4333
+ return __awaiter(this, void 0, void 0, function* () {
4334
+ var _a, _b, _c;
4335
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMetadata(clubId, options);
4336
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4337
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getClubMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4338
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4339
+ });
4340
+ },
4298
4341
  /**
4299
4342
  *
4300
4343
  * @param {string} clubId
@@ -4460,6 +4503,15 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
4460
4503
  getClubInfo(options) {
4461
4504
  return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
4462
4505
  },
4506
+ /**
4507
+ * Récupère les métadonnées publiques d\'un club
4508
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
4509
+ * @param {*} [options] Override http request option.
4510
+ * @throws {RequiredError}
4511
+ */
4512
+ getClubMetadata(requestParameters, options) {
4513
+ return localVarFp.getClubMetadata(requestParameters.clubId, options).then((request) => request(axios, basePath));
4514
+ },
4463
4515
  /**
4464
4516
  *
4465
4517
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -4588,6 +4640,16 @@ export class ClubsApi extends BaseAPI {
4588
4640
  getClubInfo(options) {
4589
4641
  return ClubsApiFp(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
4590
4642
  }
4643
+ /**
4644
+ * Récupère les métadonnées publiques d\'un club
4645
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
4646
+ * @param {*} [options] Override http request option.
4647
+ * @throws {RequiredError}
4648
+ * @memberof ClubsApi
4649
+ */
4650
+ getClubMetadata(requestParameters, options) {
4651
+ return ClubsApiFp(this.configuration).getClubMetadata(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
4652
+ }
4591
4653
  /**
4592
4654
  *
4593
4655
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -0,0 +1,30 @@
1
+ # ClubMetadataResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID unique du club | [default to undefined]
9
+ **name** | **string** | Nom du club | [default to undefined]
10
+ **description** | **string** | Description du club | [optional] [default to undefined]
11
+ **picture** | **string** | URL de la photo de profil (pdp) | [optional] [default to undefined]
12
+ **primaryBannerPicture** | **string** | URL de la bannière principale | [optional] [default to undefined]
13
+ **location** | [**ClubMetadataResponseLocation**](ClubMetadataResponseLocation.md) | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ClubMetadataResponse } from '@tennac-booking/sdk';
19
+
20
+ const instance: ClubMetadataResponse = {
21
+ id,
22
+ name,
23
+ description,
24
+ picture,
25
+ primaryBannerPicture,
26
+ location,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,27 @@
1
+ # ClubMetadataResponseLocation
2
+
3
+ Localisation du club
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **country** | **string** | | [optional] [default to undefined]
10
+ **zipCode** | **string** | | [optional] [default to undefined]
11
+ **city** | **string** | | [optional] [default to undefined]
12
+ **address** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ClubMetadataResponseLocation } from '@tennac-booking/sdk';
18
+
19
+ const instance: ClubMetadataResponseLocation = {
20
+ country,
21
+ zipCode,
22
+ city,
23
+ address,
24
+ };
25
+ ```
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/ClubsApi.md CHANGED
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost*
10
10
  |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | |
11
11
  |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | |
12
12
  |[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/info | |
13
+ |[**getClubMetadata**](#getclubmetadata) | **GET** /api/clubs/{clubId}/metadata | |
13
14
  |[**getClubPageInfo**](#getclubpageinfo) | **GET** /api/clubs/club-page/{clubId} | |
14
15
  |[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/users | |
15
16
  |[**getClubsWithVerificationDomains**](#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains | |
@@ -313,6 +314,60 @@ This endpoint does not have any parameters.
313
314
 
314
315
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
315
316
 
317
+ # **getClubMetadata**
318
+ > ClubMetadataResponse getClubMetadata()
319
+
320
+ Récupère les métadonnées publiques d\'un club
321
+
322
+ ### Example
323
+
324
+ ```typescript
325
+ import {
326
+ ClubsApi,
327
+ Configuration
328
+ } from '@tennac-booking/sdk';
329
+
330
+ const configuration = new Configuration();
331
+ const apiInstance = new ClubsApi(configuration);
332
+
333
+ let clubId: string; // (default to undefined)
334
+
335
+ const { status, data } = await apiInstance.getClubMetadata(
336
+ clubId
337
+ );
338
+ ```
339
+
340
+ ### Parameters
341
+
342
+ |Name | Type | Description | Notes|
343
+ |------------- | ------------- | ------------- | -------------|
344
+ | **clubId** | [**string**] | | defaults to undefined|
345
+
346
+
347
+ ### Return type
348
+
349
+ **ClubMetadataResponse**
350
+
351
+ ### Authorization
352
+
353
+ No authorization required
354
+
355
+ ### HTTP request headers
356
+
357
+ - **Content-Type**: Not defined
358
+ - **Accept**: application/json
359
+
360
+
361
+ ### HTTP response details
362
+ | Status code | Description | Response headers |
363
+ |-------------|-------------|------------------|
364
+ |**200** | Métadonnées publiques du club | - |
365
+ |**400** | Bad Request | - |
366
+ |**404** | Club non trouvé | - |
367
+ |**500** | Server Error | - |
368
+
369
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
370
+
316
371
  # **getClubPageInfo**
317
372
  > ClubPageResponse getClubPageInfo()
318
373
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.112",
3
+ "version": "1.0.113",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {