@tennac-booking/sdk 1.0.26 → 1.0.28

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/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.26
7
+ * The version of the OpenAPI document: 1.0.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1955,6 +1955,109 @@ export const GetInvoicesStatusEnum = {
1955
1955
  Canceled: 'canceled',
1956
1956
  Expired: 'expired'
1957
1957
  };
1958
+ /**
1959
+ * ClubsApi - axios parameter creator
1960
+ * @export
1961
+ */
1962
+ export const ClubsApiAxiosParamCreator = function (configuration) {
1963
+ return {
1964
+ /**
1965
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
1966
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
1967
+ * @param {string} id ID du club
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ */
1971
+ getClubUsersById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1972
+ // verify required parameter 'id' is not null or undefined
1973
+ assertParamExists('getClubUsersById', 'id', id);
1974
+ const localVarPath = `/api/clubs/{id}/clubUsers`
1975
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1978
+ let baseOptions;
1979
+ if (configuration) {
1980
+ baseOptions = configuration.baseOptions;
1981
+ }
1982
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1983
+ const localVarHeaderParameter = {};
1984
+ const localVarQueryParameter = {};
1985
+ // authentication bearerAuth required
1986
+ // http bearer authentication required
1987
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1988
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1989
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1990
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1991
+ return {
1992
+ url: toPathString(localVarUrlObj),
1993
+ options: localVarRequestOptions,
1994
+ };
1995
+ }),
1996
+ };
1997
+ };
1998
+ /**
1999
+ * ClubsApi - functional programming interface
2000
+ * @export
2001
+ */
2002
+ export const ClubsApiFp = function (configuration) {
2003
+ const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration);
2004
+ return {
2005
+ /**
2006
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2007
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2008
+ * @param {string} id ID du club
2009
+ * @param {*} [options] Override http request option.
2010
+ * @throws {RequiredError}
2011
+ */
2012
+ getClubUsersById(id, options) {
2013
+ return __awaiter(this, void 0, void 0, function* () {
2014
+ var _a, _b, _c;
2015
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubUsersById(id, options);
2016
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2017
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getClubUsersById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2019
+ });
2020
+ },
2021
+ };
2022
+ };
2023
+ /**
2024
+ * ClubsApi - factory interface
2025
+ * @export
2026
+ */
2027
+ export const ClubsApiFactory = function (configuration, basePath, axios) {
2028
+ const localVarFp = ClubsApiFp(configuration);
2029
+ return {
2030
+ /**
2031
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2032
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2033
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2034
+ * @param {*} [options] Override http request option.
2035
+ * @throws {RequiredError}
2036
+ */
2037
+ getClubUsersById(requestParameters, options) {
2038
+ return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
2039
+ },
2040
+ };
2041
+ };
2042
+ /**
2043
+ * ClubsApi - object-oriented interface
2044
+ * @export
2045
+ * @class ClubsApi
2046
+ * @extends {BaseAPI}
2047
+ */
2048
+ export class ClubsApi extends BaseAPI {
2049
+ /**
2050
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2051
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2052
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2053
+ * @param {*} [options] Override http request option.
2054
+ * @throws {RequiredError}
2055
+ * @memberof ClubsApi
2056
+ */
2057
+ getClubUsersById(requestParameters, options) {
2058
+ return ClubsApiFp(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2059
+ }
2060
+ }
1958
2061
  /**
1959
2062
  * EventsApi - axios parameter creator
1960
2063
  * @export
@@ -6536,6 +6639,39 @@ export class UserPaymentApi extends BaseAPI {
6536
6639
  */
6537
6640
  export const UserProfileApiAxiosParamCreator = function (configuration) {
6538
6641
  return {
6642
+ /**
6643
+ *
6644
+ * @summary Add a club to the user\'s favorite list
6645
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
6646
+ * @param {*} [options] Override http request option.
6647
+ * @throws {RequiredError}
6648
+ */
6649
+ addFavoriteClub: (addFavoriteClubRequestBody_1, ...args_1) => __awaiter(this, [addFavoriteClubRequestBody_1, ...args_1], void 0, function* (addFavoriteClubRequestBody, options = {}) {
6650
+ // verify required parameter 'addFavoriteClubRequestBody' is not null or undefined
6651
+ assertParamExists('addFavoriteClub', 'addFavoriteClubRequestBody', addFavoriteClubRequestBody);
6652
+ const localVarPath = `/api/users/me/favorite-clubs`;
6653
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6654
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6655
+ let baseOptions;
6656
+ if (configuration) {
6657
+ baseOptions = configuration.baseOptions;
6658
+ }
6659
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6660
+ const localVarHeaderParameter = {};
6661
+ const localVarQueryParameter = {};
6662
+ // authentication bearerAuth required
6663
+ // http bearer authentication required
6664
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6665
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6666
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6667
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6668
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6669
+ localVarRequestOptions.data = serializeDataIfNeeded(addFavoriteClubRequestBody, localVarRequestOptions, configuration);
6670
+ return {
6671
+ url: toPathString(localVarUrlObj),
6672
+ options: localVarRequestOptions,
6673
+ };
6674
+ }),
6539
6675
  /**
6540
6676
  *
6541
6677
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -6609,6 +6745,34 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6609
6745
  options: localVarRequestOptions,
6610
6746
  };
6611
6747
  }),
6748
+ /**
6749
+ *
6750
+ * @summary Retrieve the list of favorite clubs for the logged-in user
6751
+ * @param {*} [options] Override http request option.
6752
+ * @throws {RequiredError}
6753
+ */
6754
+ getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6755
+ const localVarPath = `/api/users/me/favorite-clubs`;
6756
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6757
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6758
+ let baseOptions;
6759
+ if (configuration) {
6760
+ baseOptions = configuration.baseOptions;
6761
+ }
6762
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6763
+ const localVarHeaderParameter = {};
6764
+ const localVarQueryParameter = {};
6765
+ // authentication bearerAuth required
6766
+ // http bearer authentication required
6767
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6768
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6769
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6770
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6771
+ return {
6772
+ url: toPathString(localVarUrlObj),
6773
+ options: localVarRequestOptions,
6774
+ };
6775
+ }),
6612
6776
  /**
6613
6777
  *
6614
6778
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -6805,6 +6969,40 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6805
6969
  options: localVarRequestOptions,
6806
6970
  };
6807
6971
  }),
6972
+ /**
6973
+ *
6974
+ * @summary Remove a club from the user\'s favorite list
6975
+ * @param {string} clubId ID of the club to remove from favorites
6976
+ * @param {*} [options] Override http request option.
6977
+ * @throws {RequiredError}
6978
+ */
6979
+ removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
6980
+ // verify required parameter 'clubId' is not null or undefined
6981
+ assertParamExists('removeFavoriteClub', 'clubId', clubId);
6982
+ const localVarPath = `/api/users/me/favorite-clubs`;
6983
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6984
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6985
+ let baseOptions;
6986
+ if (configuration) {
6987
+ baseOptions = configuration.baseOptions;
6988
+ }
6989
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
6990
+ const localVarHeaderParameter = {};
6991
+ const localVarQueryParameter = {};
6992
+ // authentication bearerAuth required
6993
+ // http bearer authentication required
6994
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6995
+ if (clubId !== undefined) {
6996
+ localVarQueryParameter['clubId'] = clubId;
6997
+ }
6998
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6999
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7000
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7001
+ return {
7002
+ url: toPathString(localVarUrlObj),
7003
+ options: localVarRequestOptions,
7004
+ };
7005
+ }),
6808
7006
  /**
6809
7007
  *
6810
7008
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7012,6 +7210,22 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
7012
7210
  export const UserProfileApiFp = function (configuration) {
7013
7211
  const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration);
7014
7212
  return {
7213
+ /**
7214
+ *
7215
+ * @summary Add a club to the user\'s favorite list
7216
+ * @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
7217
+ * @param {*} [options] Override http request option.
7218
+ * @throws {RequiredError}
7219
+ */
7220
+ addFavoriteClub(addFavoriteClubRequestBody, options) {
7221
+ return __awaiter(this, void 0, void 0, function* () {
7222
+ var _a, _b, _c;
7223
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
7224
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7225
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.addFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7226
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7227
+ });
7228
+ },
7015
7229
  /**
7016
7230
  *
7017
7231
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7046,6 +7260,21 @@ export const UserProfileApiFp = function (configuration) {
7046
7260
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7047
7261
  });
7048
7262
  },
7263
+ /**
7264
+ *
7265
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7266
+ * @param {*} [options] Override http request option.
7267
+ * @throws {RequiredError}
7268
+ */
7269
+ getFavoriteClubs(options) {
7270
+ return __awaiter(this, void 0, void 0, function* () {
7271
+ var _a, _b, _c;
7272
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoriteClubs(options);
7273
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7274
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getFavoriteClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7275
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7276
+ });
7277
+ },
7049
7278
  /**
7050
7279
  *
7051
7280
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7151,6 +7380,22 @@ export const UserProfileApiFp = function (configuration) {
7151
7380
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7152
7381
  });
7153
7382
  },
7383
+ /**
7384
+ *
7385
+ * @summary Remove a club from the user\'s favorite list
7386
+ * @param {string} clubId ID of the club to remove from favorites
7387
+ * @param {*} [options] Override http request option.
7388
+ * @throws {RequiredError}
7389
+ */
7390
+ removeFavoriteClub(clubId, options) {
7391
+ return __awaiter(this, void 0, void 0, function* () {
7392
+ var _a, _b, _c;
7393
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
7394
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7395
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.removeFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7396
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7397
+ });
7398
+ },
7154
7399
  /**
7155
7400
  *
7156
7401
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7256,6 +7501,16 @@ export const UserProfileApiFp = function (configuration) {
7256
7501
  export const UserProfileApiFactory = function (configuration, basePath, axios) {
7257
7502
  const localVarFp = UserProfileApiFp(configuration);
7258
7503
  return {
7504
+ /**
7505
+ *
7506
+ * @summary Add a club to the user\'s favorite list
7507
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
7508
+ * @param {*} [options] Override http request option.
7509
+ * @throws {RequiredError}
7510
+ */
7511
+ addFavoriteClub(requestParameters, options) {
7512
+ return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
7513
+ },
7259
7514
  /**
7260
7515
  *
7261
7516
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7276,6 +7531,15 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
7276
7531
  getAllUsers(requestParameters = {}, options) {
7277
7532
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
7278
7533
  },
7534
+ /**
7535
+ *
7536
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7537
+ * @param {*} [options] Override http request option.
7538
+ * @throws {RequiredError}
7539
+ */
7540
+ getFavoriteClubs(options) {
7541
+ return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
7542
+ },
7279
7543
  /**
7280
7544
  *
7281
7545
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7339,6 +7603,16 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
7339
7603
  getUserProfileVisibility(options) {
7340
7604
  return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
7341
7605
  },
7606
+ /**
7607
+ *
7608
+ * @summary Remove a club from the user\'s favorite list
7609
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
7610
+ * @param {*} [options] Override http request option.
7611
+ * @throws {RequiredError}
7612
+ */
7613
+ removeFavoriteClub(requestParameters, options) {
7614
+ return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
7615
+ },
7342
7616
  /**
7343
7617
  *
7344
7618
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -7408,6 +7682,17 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
7408
7682
  * @extends {BaseAPI}
7409
7683
  */
7410
7684
  export class UserProfileApi extends BaseAPI {
7685
+ /**
7686
+ *
7687
+ * @summary Add a club to the user\'s favorite list
7688
+ * @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
7689
+ * @param {*} [options] Override http request option.
7690
+ * @throws {RequiredError}
7691
+ * @memberof UserProfileApi
7692
+ */
7693
+ addFavoriteClub(requestParameters, options) {
7694
+ return UserProfileApiFp(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
7695
+ }
7411
7696
  /**
7412
7697
  *
7413
7698
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -7430,6 +7715,16 @@ export class UserProfileApi extends BaseAPI {
7430
7715
  getAllUsers(requestParameters = {}, options) {
7431
7716
  return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
7432
7717
  }
7718
+ /**
7719
+ *
7720
+ * @summary Retrieve the list of favorite clubs for the logged-in user
7721
+ * @param {*} [options] Override http request option.
7722
+ * @throws {RequiredError}
7723
+ * @memberof UserProfileApi
7724
+ */
7725
+ getFavoriteClubs(options) {
7726
+ return UserProfileApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
7727
+ }
7433
7728
  /**
7434
7729
  *
7435
7730
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -7500,6 +7795,17 @@ export class UserProfileApi extends BaseAPI {
7500
7795
  getUserProfileVisibility(options) {
7501
7796
  return UserProfileApiFp(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
7502
7797
  }
7798
+ /**
7799
+ *
7800
+ * @summary Remove a club from the user\'s favorite list
7801
+ * @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
7802
+ * @param {*} [options] Override http request option.
7803
+ * @throws {RequiredError}
7804
+ * @memberof UserProfileApi
7805
+ */
7806
+ removeFavoriteClub(requestParameters, options) {
7807
+ return UserProfileApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
7808
+ }
7503
7809
  /**
7504
7810
  *
7505
7811
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.26
5
+ * The version of the OpenAPI document: 1.0.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.26
7
+ * The version of the OpenAPI document: 1.0.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.26
5
+ * The version of the OpenAPI document: 1.0.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.26
7
+ * The version of the OpenAPI document: 1.0.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.26
5
+ * The version of the OpenAPI document: 1.0.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.26
7
+ * The version of the OpenAPI document: 1.0.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.26
5
+ * The version of the OpenAPI document: 1.0.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.26
7
+ * The version of the OpenAPI document: 1.0.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.26
5
+ * The version of the OpenAPI document: 1.0.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.26
8
+ * The version of the OpenAPI document: 1.0.28
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,61 @@
1
+ # ClubsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/clubUsers | Récupérer la liste publique des utilisateurs d\'un club|
8
+
9
+ # **getClubUsersById**
10
+ > GetClubUsersById200Response getClubUsersById()
11
+
12
+ Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ ClubsApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new ClubsApi(configuration);
24
+
25
+ let id: string; //ID du club (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.getClubUsersById(
28
+ id
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **id** | [**string**] | ID du club | defaults to undefined|
37
+
38
+
39
+ ### Return type
40
+
41
+ **GetClubUsersById200Response**
42
+
43
+ ### Authorization
44
+
45
+ [bearerAuth](../README.md#bearerAuth)
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: Not defined
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | Liste des utilisateurs publics du club | - |
57
+ |**400** | Requête invalide | - |
58
+ |**500** | Erreur serveur interne | - |
59
+
60
+ [[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)
61
+
@@ -0,0 +1,20 @@
1
+ # GetClubUsersById200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **users** | [**Array<PublicClubUser>**](PublicClubUser.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetClubUsersById200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: GetClubUsersById200Response = {
16
+ users,
17
+ };
18
+ ```
19
+
20
+ [[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,20 @@
1
+ # GetFavoriteClubs200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetFavoriteClubs200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: GetFavoriteClubs200Response = {
16
+ favoriteClubs,
17
+ };
18
+ ```
19
+
20
+ [[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,34 @@
1
+ # PublicClubUser
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_id** | **string** | | [optional] [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **levelBySports** | [**Array<PublicClubUserLevelBySportsInner>**](PublicClubUserLevelBySportsInner.md) | | [optional] [default to undefined]
13
+ **profilePicture** | **string** | | [optional] [default to undefined]
14
+ **description** | **string** | | [optional] [default to undefined]
15
+ **city** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { PublicClubUser } from '@tennac-booking/sdk';
21
+
22
+ const instance: PublicClubUser = {
23
+ _id,
24
+ firstName,
25
+ lastName,
26
+ email,
27
+ levelBySports,
28
+ profilePicture,
29
+ description,
30
+ city,
31
+ };
32
+ ```
33
+
34
+ [[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,22 @@
1
+ # PublicClubUserLevelBySportsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sport** | **string** | | [optional] [default to undefined]
9
+ **level** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PublicClubUserLevelBySportsInner } from '@tennac-booking/sdk';
15
+
16
+ const instance: PublicClubUserLevelBySportsInner = {
17
+ sport,
18
+ level,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)