@tennac-booking/sdk 1.0.66 → 1.0.68

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.63
1
+ ## @tennac-booking/sdk@1.0.67
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.63 --save
39
+ npm install @tennac-booking/sdk@1.0.67 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -166,6 +166,7 @@ Class | Method | HTTP request | Description
166
166
  *UsersApi* | [**register**](docs/UsersApi.md#register) | **POST** /api/users |
167
167
  *UsersApi* | [**removeFavoriteClub**](docs/UsersApi.md#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} |
168
168
  *UsersApi* | [**removeFavoritePlayer**](docs/UsersApi.md#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} |
169
+ *UsersApi* | [**removeOrganization**](docs/UsersApi.md#removeorganization) | **POST** /api/users/me/remove-organization |
169
170
  *UsersApi* | [**requestEmailVerification**](docs/UsersApi.md#requestemailverification) | **POST** /api/users/me/request-email-verification |
170
171
  *UsersApi* | [**requestPasswordReset**](docs/UsersApi.md#requestpasswordreset) | **POST** /api/users/request-password-reset |
171
172
  *UsersApi* | [**resetPassword**](docs/UsersApi.md#resetpassword) | **POST** /api/users/reset-password |
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.63
7
+ * The version of the OpenAPI document: 1.0.67
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1147,6 +1147,12 @@ export interface ClubResponse {
1147
1147
  * @memberof ClubResponse
1148
1148
  */
1149
1149
  'isNoShowEnabled'?: boolean;
1150
+ /**
1151
+ * Liste des sports proposés par le club (identifiés par leur clé)
1152
+ * @type {Array<string>}
1153
+ * @memberof ClubResponse
1154
+ */
1155
+ 'sports'?: Array<string>;
1150
1156
  /**
1151
1157
  *
1152
1158
  * @type {ClubResponseCreatedAt}
@@ -3485,6 +3491,12 @@ export interface PartialClubResponse {
3485
3491
  * @memberof PartialClubResponse
3486
3492
  */
3487
3493
  'isNoShowEnabled'?: boolean;
3494
+ /**
3495
+ * Liste des sports proposés par le club (identifiés par leur clé)
3496
+ * @type {Array<string>}
3497
+ * @memberof PartialClubResponse
3498
+ */
3499
+ 'sports'?: Array<string>;
3488
3500
  /**
3489
3501
  *
3490
3502
  * @type {ClubResponseCreatedAt}
@@ -15931,6 +15943,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
15931
15943
  options: localVarRequestOptions,
15932
15944
  };
15933
15945
  },
15946
+ /**
15947
+ *
15948
+ * @param {AddOrganizationRequest} addOrganizationRequest
15949
+ * @param {*} [options] Override http request option.
15950
+ * @throws {RequiredError}
15951
+ */
15952
+ removeOrganization: async (addOrganizationRequest: AddOrganizationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15953
+ // verify required parameter 'addOrganizationRequest' is not null or undefined
15954
+ assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest)
15955
+ const localVarPath = `/api/users/me/remove-organization`;
15956
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15957
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15958
+ let baseOptions;
15959
+ if (configuration) {
15960
+ baseOptions = configuration.baseOptions;
15961
+ }
15962
+
15963
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15964
+ const localVarHeaderParameter = {} as any;
15965
+ const localVarQueryParameter = {} as any;
15966
+
15967
+ // authentication bearerAuth required
15968
+ // http bearer authentication required
15969
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15970
+
15971
+
15972
+
15973
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15974
+
15975
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15976
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15977
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15978
+ localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration)
15979
+
15980
+ return {
15981
+ url: toPathString(localVarUrlObj),
15982
+ options: localVarRequestOptions,
15983
+ };
15984
+ },
15934
15985
  /**
15935
15986
  *
15936
15987
  * @param {*} [options] Override http request option.
@@ -16635,6 +16686,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
16635
16686
  const localVarOperationServerBasePath = operationServerMap['UsersApi.removeFavoritePlayer']?.[localVarOperationServerIndex]?.url;
16636
16687
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16637
16688
  },
16689
+ /**
16690
+ *
16691
+ * @param {AddOrganizationRequest} addOrganizationRequest
16692
+ * @param {*} [options] Override http request option.
16693
+ * @throws {RequiredError}
16694
+ */
16695
+ async removeOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
16696
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeOrganization(addOrganizationRequest, options);
16697
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16698
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.removeOrganization']?.[localVarOperationServerIndex]?.url;
16699
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16700
+ },
16638
16701
  /**
16639
16702
  *
16640
16703
  * @param {*} [options] Override http request option.
@@ -16986,6 +17049,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
16986
17049
  removeFavoritePlayer(requestParameters: UsersApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayerMutationResponse> {
16987
17050
  return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
16988
17051
  },
17052
+ /**
17053
+ *
17054
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
17055
+ * @param {*} [options] Override http request option.
17056
+ * @throws {RequiredError}
17057
+ */
17058
+ removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
17059
+ return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
17060
+ },
16989
17061
  /**
16990
17062
  *
16991
17063
  * @param {*} [options] Override http request option.
@@ -17402,6 +17474,20 @@ export interface UsersApiRemoveFavoritePlayerRequest {
17402
17474
  readonly favoritePlayerId: string
17403
17475
  }
17404
17476
 
17477
+ /**
17478
+ * Request parameters for removeOrganization operation in UsersApi.
17479
+ * @export
17480
+ * @interface UsersApiRemoveOrganizationRequest
17481
+ */
17482
+ export interface UsersApiRemoveOrganizationRequest {
17483
+ /**
17484
+ *
17485
+ * @type {AddOrganizationRequest}
17486
+ * @memberof UsersApiRemoveOrganization
17487
+ */
17488
+ readonly addOrganizationRequest: AddOrganizationRequest
17489
+ }
17490
+
17405
17491
  /**
17406
17492
  * Request parameters for requestPasswordReset operation in UsersApi.
17407
17493
  * @export
@@ -17807,6 +17893,17 @@ export class UsersApi extends BaseAPI {
17807
17893
  return UsersApiFp(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
17808
17894
  }
17809
17895
 
17896
+ /**
17897
+ *
17898
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
17899
+ * @param {*} [options] Override http request option.
17900
+ * @throws {RequiredError}
17901
+ * @memberof UsersApi
17902
+ */
17903
+ public removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig) {
17904
+ return UsersApiFp(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
17905
+ }
17906
+
17810
17907
  /**
17811
17908
  *
17812
17909
  * @param {*} [options] Override http request option.
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.63
7
+ * The version of the OpenAPI document: 1.0.67
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.63
7
+ * The version of the OpenAPI document: 1.0.67
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.63
7
+ * The version of the OpenAPI document: 1.0.67
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1124,6 +1124,12 @@ export interface ClubResponse {
1124
1124
  * @memberof ClubResponse
1125
1125
  */
1126
1126
  'isNoShowEnabled'?: boolean;
1127
+ /**
1128
+ * Liste des sports proposés par le club (identifiés par leur clé)
1129
+ * @type {Array<string>}
1130
+ * @memberof ClubResponse
1131
+ */
1132
+ 'sports'?: Array<string>;
1127
1133
  /**
1128
1134
  *
1129
1135
  * @type {ClubResponseCreatedAt}
@@ -3437,6 +3443,12 @@ export interface PartialClubResponse {
3437
3443
  * @memberof PartialClubResponse
3438
3444
  */
3439
3445
  'isNoShowEnabled'?: boolean;
3446
+ /**
3447
+ * Liste des sports proposés par le club (identifiés par leur clé)
3448
+ * @type {Array<string>}
3449
+ * @memberof PartialClubResponse
3450
+ */
3451
+ 'sports'?: Array<string>;
3440
3452
  /**
3441
3453
  *
3442
3454
  * @type {ClubResponseCreatedAt}
@@ -11085,6 +11097,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
11085
11097
  * @throws {RequiredError}
11086
11098
  */
11087
11099
  removeFavoritePlayer: (favoritePlayerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11100
+ /**
11101
+ *
11102
+ * @param {AddOrganizationRequest} addOrganizationRequest
11103
+ * @param {*} [options] Override http request option.
11104
+ * @throws {RequiredError}
11105
+ */
11106
+ removeOrganization: (addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11088
11107
  /**
11089
11108
  *
11090
11109
  * @param {*} [options] Override http request option.
@@ -11346,6 +11365,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
11346
11365
  * @throws {RequiredError}
11347
11366
  */
11348
11367
  removeFavoritePlayer(favoritePlayerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoritePlayerMutationResponse>>;
11368
+ /**
11369
+ *
11370
+ * @param {AddOrganizationRequest} addOrganizationRequest
11371
+ * @param {*} [options] Override http request option.
11372
+ * @throws {RequiredError}
11373
+ */
11374
+ removeOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>>;
11349
11375
  /**
11350
11376
  *
11351
11377
  * @param {*} [options] Override http request option.
@@ -11598,6 +11624,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
11598
11624
  * @throws {RequiredError}
11599
11625
  */
11600
11626
  removeFavoritePlayer(requestParameters: UsersApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayerMutationResponse>;
11627
+ /**
11628
+ *
11629
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
11630
+ * @param {*} [options] Override http request option.
11631
+ * @throws {RequiredError}
11632
+ */
11633
+ removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response>;
11601
11634
  /**
11602
11635
  *
11603
11636
  * @param {*} [options] Override http request option.
@@ -11963,6 +11996,19 @@ export interface UsersApiRemoveFavoritePlayerRequest {
11963
11996
  */
11964
11997
  readonly favoritePlayerId: string;
11965
11998
  }
11999
+ /**
12000
+ * Request parameters for removeOrganization operation in UsersApi.
12001
+ * @export
12002
+ * @interface UsersApiRemoveOrganizationRequest
12003
+ */
12004
+ export interface UsersApiRemoveOrganizationRequest {
12005
+ /**
12006
+ *
12007
+ * @type {AddOrganizationRequest}
12008
+ * @memberof UsersApiRemoveOrganization
12009
+ */
12010
+ readonly addOrganizationRequest: AddOrganizationRequest;
12011
+ }
11966
12012
  /**
11967
12013
  * Request parameters for requestPasswordReset operation in UsersApi.
11968
12014
  * @export
@@ -12294,6 +12340,14 @@ export declare class UsersApi extends BaseAPI {
12294
12340
  * @memberof UsersApi
12295
12341
  */
12296
12342
  removeFavoritePlayer(requestParameters: UsersApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FavoritePlayerMutationResponse, any, {}>>;
12343
+ /**
12344
+ *
12345
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
12346
+ * @param {*} [options] Override http request option.
12347
+ * @throws {RequiredError}
12348
+ * @memberof UsersApi
12349
+ */
12350
+ removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestPasswordReset200Response, any, {}>>;
12297
12351
  /**
12298
12352
  *
12299
12353
  * @param {*} [options] Override http request option.
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.63
8
+ * The version of the OpenAPI document: 1.0.67
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7657,6 +7657,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
7657
7657
  options: localVarRequestOptions,
7658
7658
  };
7659
7659
  }),
7660
+ /**
7661
+ *
7662
+ * @param {AddOrganizationRequest} addOrganizationRequest
7663
+ * @param {*} [options] Override http request option.
7664
+ * @throws {RequiredError}
7665
+ */
7666
+ removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
7667
+ // verify required parameter 'addOrganizationRequest' is not null or undefined
7668
+ (0, common_1.assertParamExists)('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
7669
+ const localVarPath = `/api/users/me/remove-organization`;
7670
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7671
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7672
+ let baseOptions;
7673
+ if (configuration) {
7674
+ baseOptions = configuration.baseOptions;
7675
+ }
7676
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7677
+ const localVarHeaderParameter = {};
7678
+ const localVarQueryParameter = {};
7679
+ // authentication bearerAuth required
7680
+ // http bearer authentication required
7681
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7682
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7683
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7684
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7685
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7686
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
7687
+ return {
7688
+ url: (0, common_1.toPathString)(localVarUrlObj),
7689
+ options: localVarRequestOptions,
7690
+ };
7691
+ }),
7660
7692
  /**
7661
7693
  *
7662
7694
  * @param {*} [options] Override http request option.
@@ -8362,6 +8394,21 @@ const UsersApiFp = function (configuration) {
8362
8394
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8363
8395
  });
8364
8396
  },
8397
+ /**
8398
+ *
8399
+ * @param {AddOrganizationRequest} addOrganizationRequest
8400
+ * @param {*} [options] Override http request option.
8401
+ * @throws {RequiredError}
8402
+ */
8403
+ removeOrganization(addOrganizationRequest, options) {
8404
+ return __awaiter(this, void 0, void 0, function* () {
8405
+ var _a, _b, _c;
8406
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeOrganization(addOrganizationRequest, options);
8407
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8408
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.removeOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8409
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8410
+ });
8411
+ },
8365
8412
  /**
8366
8413
  *
8367
8414
  * @param {*} [options] Override http request option.
@@ -8746,6 +8793,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
8746
8793
  removeFavoritePlayer(requestParameters, options) {
8747
8794
  return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
8748
8795
  },
8796
+ /**
8797
+ *
8798
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
8799
+ * @param {*} [options] Override http request option.
8800
+ * @throws {RequiredError}
8801
+ */
8802
+ removeOrganization(requestParameters, options) {
8803
+ return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
8804
+ },
8749
8805
  /**
8750
8806
  *
8751
8807
  * @param {*} [options] Override http request option.
@@ -9088,6 +9144,16 @@ class UsersApi extends base_1.BaseAPI {
9088
9144
  removeFavoritePlayer(requestParameters, options) {
9089
9145
  return (0, exports.UsersApiFp)(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
9090
9146
  }
9147
+ /**
9148
+ *
9149
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
9150
+ * @param {*} [options] Override http request option.
9151
+ * @throws {RequiredError}
9152
+ * @memberof UsersApi
9153
+ */
9154
+ removeOrganization(requestParameters, options) {
9155
+ return (0, exports.UsersApiFp)(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
9156
+ }
9091
9157
  /**
9092
9158
  *
9093
9159
  * @param {*} [options] Override http request option.
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.63
8
+ * The version of the OpenAPI document: 1.0.67
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.63
8
+ * The version of the OpenAPI document: 1.0.67
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.63
8
+ * The version of the OpenAPI document: 1.0.67
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1124,6 +1124,12 @@ export interface ClubResponse {
1124
1124
  * @memberof ClubResponse
1125
1125
  */
1126
1126
  'isNoShowEnabled'?: boolean;
1127
+ /**
1128
+ * Liste des sports proposés par le club (identifiés par leur clé)
1129
+ * @type {Array<string>}
1130
+ * @memberof ClubResponse
1131
+ */
1132
+ 'sports'?: Array<string>;
1127
1133
  /**
1128
1134
  *
1129
1135
  * @type {ClubResponseCreatedAt}
@@ -3437,6 +3443,12 @@ export interface PartialClubResponse {
3437
3443
  * @memberof PartialClubResponse
3438
3444
  */
3439
3445
  'isNoShowEnabled'?: boolean;
3446
+ /**
3447
+ * Liste des sports proposés par le club (identifiés par leur clé)
3448
+ * @type {Array<string>}
3449
+ * @memberof PartialClubResponse
3450
+ */
3451
+ 'sports'?: Array<string>;
3440
3452
  /**
3441
3453
  *
3442
3454
  * @type {ClubResponseCreatedAt}
@@ -11085,6 +11097,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
11085
11097
  * @throws {RequiredError}
11086
11098
  */
11087
11099
  removeFavoritePlayer: (favoritePlayerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11100
+ /**
11101
+ *
11102
+ * @param {AddOrganizationRequest} addOrganizationRequest
11103
+ * @param {*} [options] Override http request option.
11104
+ * @throws {RequiredError}
11105
+ */
11106
+ removeOrganization: (addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11088
11107
  /**
11089
11108
  *
11090
11109
  * @param {*} [options] Override http request option.
@@ -11346,6 +11365,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
11346
11365
  * @throws {RequiredError}
11347
11366
  */
11348
11367
  removeFavoritePlayer(favoritePlayerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoritePlayerMutationResponse>>;
11368
+ /**
11369
+ *
11370
+ * @param {AddOrganizationRequest} addOrganizationRequest
11371
+ * @param {*} [options] Override http request option.
11372
+ * @throws {RequiredError}
11373
+ */
11374
+ removeOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>>;
11349
11375
  /**
11350
11376
  *
11351
11377
  * @param {*} [options] Override http request option.
@@ -11598,6 +11624,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
11598
11624
  * @throws {RequiredError}
11599
11625
  */
11600
11626
  removeFavoritePlayer(requestParameters: UsersApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayerMutationResponse>;
11627
+ /**
11628
+ *
11629
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
11630
+ * @param {*} [options] Override http request option.
11631
+ * @throws {RequiredError}
11632
+ */
11633
+ removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response>;
11601
11634
  /**
11602
11635
  *
11603
11636
  * @param {*} [options] Override http request option.
@@ -11963,6 +11996,19 @@ export interface UsersApiRemoveFavoritePlayerRequest {
11963
11996
  */
11964
11997
  readonly favoritePlayerId: string;
11965
11998
  }
11999
+ /**
12000
+ * Request parameters for removeOrganization operation in UsersApi.
12001
+ * @export
12002
+ * @interface UsersApiRemoveOrganizationRequest
12003
+ */
12004
+ export interface UsersApiRemoveOrganizationRequest {
12005
+ /**
12006
+ *
12007
+ * @type {AddOrganizationRequest}
12008
+ * @memberof UsersApiRemoveOrganization
12009
+ */
12010
+ readonly addOrganizationRequest: AddOrganizationRequest;
12011
+ }
11966
12012
  /**
11967
12013
  * Request parameters for requestPasswordReset operation in UsersApi.
11968
12014
  * @export
@@ -12294,6 +12340,14 @@ export declare class UsersApi extends BaseAPI {
12294
12340
  * @memberof UsersApi
12295
12341
  */
12296
12342
  removeFavoritePlayer(requestParameters: UsersApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FavoritePlayerMutationResponse, any, {}>>;
12343
+ /**
12344
+ *
12345
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
12346
+ * @param {*} [options] Override http request option.
12347
+ * @throws {RequiredError}
12348
+ * @memberof UsersApi
12349
+ */
12350
+ removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestPasswordReset200Response, any, {}>>;
12297
12351
  /**
12298
12352
  *
12299
12353
  * @param {*} [options] Override http request option.
package/dist/esm/api.js 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.63
7
+ * The version of the OpenAPI document: 1.0.67
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7564,6 +7564,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
7564
7564
  options: localVarRequestOptions,
7565
7565
  };
7566
7566
  }),
7567
+ /**
7568
+ *
7569
+ * @param {AddOrganizationRequest} addOrganizationRequest
7570
+ * @param {*} [options] Override http request option.
7571
+ * @throws {RequiredError}
7572
+ */
7573
+ removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
7574
+ // verify required parameter 'addOrganizationRequest' is not null or undefined
7575
+ assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
7576
+ const localVarPath = `/api/users/me/remove-organization`;
7577
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7578
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7579
+ let baseOptions;
7580
+ if (configuration) {
7581
+ baseOptions = configuration.baseOptions;
7582
+ }
7583
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7584
+ const localVarHeaderParameter = {};
7585
+ const localVarQueryParameter = {};
7586
+ // authentication bearerAuth required
7587
+ // http bearer authentication required
7588
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7589
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7590
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7591
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7592
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7593
+ localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
7594
+ return {
7595
+ url: toPathString(localVarUrlObj),
7596
+ options: localVarRequestOptions,
7597
+ };
7598
+ }),
7567
7599
  /**
7568
7600
  *
7569
7601
  * @param {*} [options] Override http request option.
@@ -8268,6 +8300,21 @@ export const UsersApiFp = function (configuration) {
8268
8300
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8269
8301
  });
8270
8302
  },
8303
+ /**
8304
+ *
8305
+ * @param {AddOrganizationRequest} addOrganizationRequest
8306
+ * @param {*} [options] Override http request option.
8307
+ * @throws {RequiredError}
8308
+ */
8309
+ removeOrganization(addOrganizationRequest, options) {
8310
+ return __awaiter(this, void 0, void 0, function* () {
8311
+ var _a, _b, _c;
8312
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeOrganization(addOrganizationRequest, options);
8313
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8314
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.removeOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8315
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8316
+ });
8317
+ },
8271
8318
  /**
8272
8319
  *
8273
8320
  * @param {*} [options] Override http request option.
@@ -8651,6 +8698,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
8651
8698
  removeFavoritePlayer(requestParameters, options) {
8652
8699
  return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
8653
8700
  },
8701
+ /**
8702
+ *
8703
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
8704
+ * @param {*} [options] Override http request option.
8705
+ * @throws {RequiredError}
8706
+ */
8707
+ removeOrganization(requestParameters, options) {
8708
+ return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
8709
+ },
8654
8710
  /**
8655
8711
  *
8656
8712
  * @param {*} [options] Override http request option.
@@ -8992,6 +9048,16 @@ export class UsersApi extends BaseAPI {
8992
9048
  removeFavoritePlayer(requestParameters, options) {
8993
9049
  return UsersApiFp(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
8994
9050
  }
9051
+ /**
9052
+ *
9053
+ * @param {UsersApiRemoveOrganizationRequest} requestParameters Request parameters.
9054
+ * @param {*} [options] Override http request option.
9055
+ * @throws {RequiredError}
9056
+ * @memberof UsersApi
9057
+ */
9058
+ removeOrganization(requestParameters, options) {
9059
+ return UsersApiFp(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
9060
+ }
8995
9061
  /**
8996
9062
  *
8997
9063
  * @param {*} [options] Override http request option.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
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
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.63
7
+ * The version of the OpenAPI document: 1.0.67
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
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
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
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.63
7
+ * The version of the OpenAPI document: 1.0.67
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
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
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
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.63
7
+ * The version of the OpenAPI document: 1.0.67
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
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
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
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.63
7
+ * The version of the OpenAPI document: 1.0.67
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
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.63
5
+ * The version of the OpenAPI document: 1.0.67
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
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.63
8
+ * The version of the OpenAPI document: 1.0.67
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
  **stripeAccountId** | **string** | ID du compte Stripe du club | [optional] [default to undefined]
19
19
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
20
20
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \&quot;no show\&quot; est activée | [optional] [default to undefined]
21
+ **sports** | **Array&lt;string&gt;** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
21
22
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
22
23
  **updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
23
24
 
@@ -40,6 +41,7 @@ const instance: ClubResponse = {
40
41
  stripeAccountId,
41
42
  clubDashBoardUrl,
42
43
  isNoShowEnabled,
44
+ sports,
43
45
  createdAt,
44
46
  updatedAt,
45
47
  };
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
19
19
  **stripeAccountId** | **string** | ID du compte Stripe du club | [optional] [default to undefined]
20
20
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
21
21
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \&quot;no show\&quot; est activée | [optional] [default to undefined]
22
+ **sports** | **Array&lt;string&gt;** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
22
23
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
23
24
  **updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
24
25
 
@@ -41,6 +42,7 @@ const instance: PartialClubResponse = {
41
42
  stripeAccountId,
42
43
  clubDashBoardUrl,
43
44
  isNoShowEnabled,
45
+ sports,
44
46
  createdAt,
45
47
  updatedAt,
46
48
  };
package/docs/UsersApi.md CHANGED
@@ -28,6 +28,7 @@ All URIs are relative to *http://localhost*
28
28
  |[**register**](#register) | **POST** /api/users | |
29
29
  |[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
30
30
  |[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
31
+ |[**removeOrganization**](#removeorganization) | **POST** /api/users/me/remove-organization | |
31
32
  |[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
32
33
  |[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
33
34
  |[**resetPassword**](#resetpassword) | **POST** /api/users/reset-password | |
@@ -1227,6 +1228,57 @@ const { status, data } = await apiInstance.removeFavoritePlayer(
1227
1228
  - **Accept**: application/json
1228
1229
 
1229
1230
 
1231
+ ### HTTP response details
1232
+ | Status code | Description | Response headers |
1233
+ |-------------|-------------|------------------|
1234
+ |**200** | Ok | - |
1235
+
1236
+ [[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)
1237
+
1238
+ # **removeOrganization**
1239
+ > RequestPasswordReset200Response removeOrganization(addOrganizationRequest)
1240
+
1241
+
1242
+ ### Example
1243
+
1244
+ ```typescript
1245
+ import {
1246
+ UsersApi,
1247
+ Configuration,
1248
+ AddOrganizationRequest
1249
+ } from '@tennac-booking/sdk';
1250
+
1251
+ const configuration = new Configuration();
1252
+ const apiInstance = new UsersApi(configuration);
1253
+
1254
+ let addOrganizationRequest: AddOrganizationRequest; //
1255
+
1256
+ const { status, data } = await apiInstance.removeOrganization(
1257
+ addOrganizationRequest
1258
+ );
1259
+ ```
1260
+
1261
+ ### Parameters
1262
+
1263
+ |Name | Type | Description | Notes|
1264
+ |------------- | ------------- | ------------- | -------------|
1265
+ | **addOrganizationRequest** | **AddOrganizationRequest**| | |
1266
+
1267
+
1268
+ ### Return type
1269
+
1270
+ **RequestPasswordReset200Response**
1271
+
1272
+ ### Authorization
1273
+
1274
+ [bearerAuth](../README.md#bearerAuth)
1275
+
1276
+ ### HTTP request headers
1277
+
1278
+ - **Content-Type**: application/json
1279
+ - **Accept**: application/json
1280
+
1281
+
1230
1282
  ### HTTP response details
1231
1283
  | Status code | Description | Response headers |
1232
1284
  |-------------|-------------|------------------|
package/index.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.63
7
+ * The version of the OpenAPI document: 1.0.67
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {