@tennac-booking/sdk 1.0.249 → 1.0.250

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.
@@ -8,6 +8,8 @@ common.ts
8
8
  configuration.ts
9
9
  docs/AcceptBookingInvitationRequest.md
10
10
  docs/AcceptBookingInvitationResponse.md
11
+ docs/AccountDeletionRequestBody.md
12
+ docs/AccountDeletionRequestResponse.md
11
13
  docs/AddClubMember201Response.md
12
14
  docs/AddClubMemberRequest.md
13
15
  docs/AddOrganizationRequest.md
package/README.md CHANGED
@@ -296,6 +296,7 @@ Class | Method | HTTP request | Description
296
296
  *UsersApi* | [**removeFavoriteClub**](docs/UsersApi.md#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} |
297
297
  *UsersApi* | [**removeFavoritePlayer**](docs/UsersApi.md#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} |
298
298
  *UsersApi* | [**removeOrganization**](docs/UsersApi.md#removeorganization) | **POST** /api/users/me/remove-organization |
299
+ *UsersApi* | [**requestAccountDeletion**](docs/UsersApi.md#requestaccountdeletion) | **POST** /api/users/me/request-account-deletion |
299
300
  *UsersApi* | [**requestEmailVerification**](docs/UsersApi.md#requestemailverification) | **POST** /api/users/me/request-email-verification |
300
301
  *UsersApi* | [**requestOrganizationCode**](docs/UsersApi.md#requestorganizationcode) | **POST** /api/users/me/request-organization-code |
301
302
  *UsersApi* | [**requestPasswordReset**](docs/UsersApi.md#requestpasswordreset) | **POST** /api/users/request-password-reset |
@@ -331,6 +332,8 @@ Class | Method | HTTP request | Description
331
332
 
332
333
  - [AcceptBookingInvitationRequest](docs/AcceptBookingInvitationRequest.md)
333
334
  - [AcceptBookingInvitationResponse](docs/AcceptBookingInvitationResponse.md)
335
+ - [AccountDeletionRequestBody](docs/AccountDeletionRequestBody.md)
336
+ - [AccountDeletionRequestResponse](docs/AccountDeletionRequestResponse.md)
334
337
  - [AddClubMember201Response](docs/AddClubMember201Response.md)
335
338
  - [AddClubMemberRequest](docs/AddClubMemberRequest.md)
336
339
  - [AddOrganizationRequest](docs/AddOrganizationRequest.md)
package/api.ts CHANGED
@@ -67,6 +67,44 @@ export interface AcceptBookingInvitationResponse {
67
67
  */
68
68
  'paymentUrl'?: string;
69
69
  }
70
+ /**
71
+ *
72
+ * @export
73
+ * @interface AccountDeletionRequestBody
74
+ */
75
+ export interface AccountDeletionRequestBody {
76
+ /**
77
+ * Message libre décrivant la demande de suppression.
78
+ * @type {string}
79
+ * @memberof AccountDeletionRequestBody
80
+ */
81
+ 'message': string;
82
+ /**
83
+ * Raison courte de la demande (ex: RGPD, ne plus utiliser l\'application). Optionnelle.
84
+ * @type {string}
85
+ * @memberof AccountDeletionRequestBody
86
+ */
87
+ 'reason'?: string;
88
+ }
89
+ /**
90
+ *
91
+ * @export
92
+ * @interface AccountDeletionRequestResponse
93
+ */
94
+ export interface AccountDeletionRequestResponse {
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof AccountDeletionRequestResponse
99
+ */
100
+ 'requestId': string;
101
+ /**
102
+ *
103
+ * @type {boolean}
104
+ * @memberof AccountDeletionRequestResponse
105
+ */
106
+ 'success': boolean;
107
+ }
70
108
  /**
71
109
  *
72
110
  * @export
@@ -37829,6 +37867,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
37829
37867
  options: localVarRequestOptions,
37830
37868
  };
37831
37869
  },
37870
+ /**
37871
+ *
37872
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
37873
+ * @param {*} [options] Override http request option.
37874
+ * @throws {RequiredError}
37875
+ */
37876
+ requestAccountDeletion: async (accountDeletionRequestBody: AccountDeletionRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
37877
+ // verify required parameter 'accountDeletionRequestBody' is not null or undefined
37878
+ assertParamExists('requestAccountDeletion', 'accountDeletionRequestBody', accountDeletionRequestBody)
37879
+ const localVarPath = `/api/users/me/request-account-deletion`;
37880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37881
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37882
+ let baseOptions;
37883
+ if (configuration) {
37884
+ baseOptions = configuration.baseOptions;
37885
+ }
37886
+
37887
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
37888
+ const localVarHeaderParameter = {} as any;
37889
+ const localVarQueryParameter = {} as any;
37890
+
37891
+ // authentication bearerAuth required
37892
+ // http bearer authentication required
37893
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
37894
+
37895
+
37896
+
37897
+ localVarHeaderParameter['Content-Type'] = 'application/json';
37898
+
37899
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
37900
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37901
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
37902
+ localVarRequestOptions.data = serializeDataIfNeeded(accountDeletionRequestBody, localVarRequestOptions, configuration)
37903
+
37904
+ return {
37905
+ url: toPathString(localVarUrlObj),
37906
+ options: localVarRequestOptions,
37907
+ };
37908
+ },
37832
37909
  /**
37833
37910
  *
37834
37911
  * @param {*} [options] Override http request option.
@@ -38792,6 +38869,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
38792
38869
  const localVarOperationServerBasePath = operationServerMap['UsersApi.removeOrganization']?.[localVarOperationServerIndex]?.url;
38793
38870
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
38794
38871
  },
38872
+ /**
38873
+ *
38874
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
38875
+ * @param {*} [options] Override http request option.
38876
+ * @throws {RequiredError}
38877
+ */
38878
+ async requestAccountDeletion(accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDeletionRequestResponse>> {
38879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestAccountDeletion(accountDeletionRequestBody, options);
38880
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
38881
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.requestAccountDeletion']?.[localVarOperationServerIndex]?.url;
38882
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
38883
+ },
38795
38884
  /**
38796
38885
  *
38797
38886
  * @param {*} [options] Override http request option.
@@ -39278,6 +39367,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
39278
39367
  removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
39279
39368
  return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
39280
39369
  },
39370
+ /**
39371
+ *
39372
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
39373
+ * @param {*} [options] Override http request option.
39374
+ * @throws {RequiredError}
39375
+ */
39376
+ requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountDeletionRequestResponse> {
39377
+ return localVarFp.requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(axios, basePath));
39378
+ },
39281
39379
  /**
39282
39380
  *
39283
39381
  * @param {*} [options] Override http request option.
@@ -39943,6 +40041,20 @@ export interface UsersApiRemoveOrganizationRequest {
39943
40041
  readonly addOrganizationRequest: AddOrganizationRequest
39944
40042
  }
39945
40043
 
40044
+ /**
40045
+ * Request parameters for requestAccountDeletion operation in UsersApi.
40046
+ * @export
40047
+ * @interface UsersApiRequestAccountDeletionRequest
40048
+ */
40049
+ export interface UsersApiRequestAccountDeletionRequest {
40050
+ /**
40051
+ *
40052
+ * @type {AccountDeletionRequestBody}
40053
+ * @memberof UsersApiRequestAccountDeletion
40054
+ */
40055
+ readonly accountDeletionRequestBody: AccountDeletionRequestBody
40056
+ }
40057
+
39946
40058
  /**
39947
40059
  * Request parameters for requestOrganizationCode operation in UsersApi.
39948
40060
  * @export
@@ -40541,6 +40653,17 @@ export class UsersApi extends BaseAPI {
40541
40653
  return UsersApiFp(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
40542
40654
  }
40543
40655
 
40656
+ /**
40657
+ *
40658
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
40659
+ * @param {*} [options] Override http request option.
40660
+ * @throws {RequiredError}
40661
+ * @memberof UsersApi
40662
+ */
40663
+ public requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig) {
40664
+ return UsersApiFp(this.configuration).requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(this.axios, this.basePath));
40665
+ }
40666
+
40544
40667
  /**
40545
40668
  *
40546
40669
  * @param {*} [options] Override http request option.
package/dist/api.d.ts CHANGED
@@ -57,6 +57,44 @@ export interface AcceptBookingInvitationResponse {
57
57
  */
58
58
  'paymentUrl'?: string;
59
59
  }
60
+ /**
61
+ *
62
+ * @export
63
+ * @interface AccountDeletionRequestBody
64
+ */
65
+ export interface AccountDeletionRequestBody {
66
+ /**
67
+ * Message libre décrivant la demande de suppression.
68
+ * @type {string}
69
+ * @memberof AccountDeletionRequestBody
70
+ */
71
+ 'message': string;
72
+ /**
73
+ * Raison courte de la demande (ex: RGPD, ne plus utiliser l\'application). Optionnelle.
74
+ * @type {string}
75
+ * @memberof AccountDeletionRequestBody
76
+ */
77
+ 'reason'?: string;
78
+ }
79
+ /**
80
+ *
81
+ * @export
82
+ * @interface AccountDeletionRequestResponse
83
+ */
84
+ export interface AccountDeletionRequestResponse {
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof AccountDeletionRequestResponse
89
+ */
90
+ 'requestId': string;
91
+ /**
92
+ *
93
+ * @type {boolean}
94
+ * @memberof AccountDeletionRequestResponse
95
+ */
96
+ 'success': boolean;
97
+ }
60
98
  /**
61
99
  *
62
100
  * @export
@@ -27087,6 +27125,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
27087
27125
  * @throws {RequiredError}
27088
27126
  */
27089
27127
  removeOrganization: (addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27128
+ /**
27129
+ *
27130
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
27131
+ * @param {*} [options] Override http request option.
27132
+ * @throws {RequiredError}
27133
+ */
27134
+ requestAccountDeletion: (accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27090
27135
  /**
27091
27136
  *
27092
27137
  * @param {*} [options] Override http request option.
@@ -27462,6 +27507,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
27462
27507
  * @throws {RequiredError}
27463
27508
  */
27464
27509
  removeOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>>;
27510
+ /**
27511
+ *
27512
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
27513
+ * @param {*} [options] Override http request option.
27514
+ * @throws {RequiredError}
27515
+ */
27516
+ requestAccountDeletion(accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDeletionRequestResponse>>;
27465
27517
  /**
27466
27518
  *
27467
27519
  * @param {*} [options] Override http request option.
@@ -27815,6 +27867,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
27815
27867
  * @throws {RequiredError}
27816
27868
  */
27817
27869
  removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response>;
27870
+ /**
27871
+ *
27872
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
27873
+ * @param {*} [options] Override http request option.
27874
+ * @throws {RequiredError}
27875
+ */
27876
+ requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountDeletionRequestResponse>;
27818
27877
  /**
27819
27878
  *
27820
27879
  * @param {*} [options] Override http request option.
@@ -28402,6 +28461,19 @@ export interface UsersApiRemoveOrganizationRequest {
28402
28461
  */
28403
28462
  readonly addOrganizationRequest: AddOrganizationRequest;
28404
28463
  }
28464
+ /**
28465
+ * Request parameters for requestAccountDeletion operation in UsersApi.
28466
+ * @export
28467
+ * @interface UsersApiRequestAccountDeletionRequest
28468
+ */
28469
+ export interface UsersApiRequestAccountDeletionRequest {
28470
+ /**
28471
+ *
28472
+ * @type {AccountDeletionRequestBody}
28473
+ * @memberof UsersApiRequestAccountDeletion
28474
+ */
28475
+ readonly accountDeletionRequestBody: AccountDeletionRequestBody;
28476
+ }
28405
28477
  /**
28406
28478
  * Request parameters for requestOrganizationCode operation in UsersApi.
28407
28479
  * @export
@@ -28883,6 +28955,14 @@ export declare class UsersApi extends BaseAPI {
28883
28955
  * @memberof UsersApi
28884
28956
  */
28885
28957
  removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LeaveEventWaitList200Response, any, {}>>;
28958
+ /**
28959
+ *
28960
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
28961
+ * @param {*} [options] Override http request option.
28962
+ * @throws {RequiredError}
28963
+ * @memberof UsersApi
28964
+ */
28965
+ requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountDeletionRequestResponse, any, {}>>;
28886
28966
  /**
28887
28967
  *
28888
28968
  * @param {*} [options] Override http request option.
package/dist/api.js CHANGED
@@ -16890,6 +16890,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
16890
16890
  options: localVarRequestOptions,
16891
16891
  };
16892
16892
  }),
16893
+ /**
16894
+ *
16895
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
16896
+ * @param {*} [options] Override http request option.
16897
+ * @throws {RequiredError}
16898
+ */
16899
+ requestAccountDeletion: (accountDeletionRequestBody_1, ...args_1) => __awaiter(this, [accountDeletionRequestBody_1, ...args_1], void 0, function* (accountDeletionRequestBody, options = {}) {
16900
+ // verify required parameter 'accountDeletionRequestBody' is not null or undefined
16901
+ (0, common_1.assertParamExists)('requestAccountDeletion', 'accountDeletionRequestBody', accountDeletionRequestBody);
16902
+ const localVarPath = `/api/users/me/request-account-deletion`;
16903
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16904
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16905
+ let baseOptions;
16906
+ if (configuration) {
16907
+ baseOptions = configuration.baseOptions;
16908
+ }
16909
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16910
+ const localVarHeaderParameter = {};
16911
+ const localVarQueryParameter = {};
16912
+ // authentication bearerAuth required
16913
+ // http bearer authentication required
16914
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16915
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16916
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16917
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16918
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16919
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountDeletionRequestBody, localVarRequestOptions, configuration);
16920
+ return {
16921
+ url: (0, common_1.toPathString)(localVarUrlObj),
16922
+ options: localVarRequestOptions,
16923
+ };
16924
+ }),
16893
16925
  /**
16894
16926
  *
16895
16927
  * @param {*} [options] Override http request option.
@@ -17871,6 +17903,21 @@ const UsersApiFp = function (configuration) {
17871
17903
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17872
17904
  });
17873
17905
  },
17906
+ /**
17907
+ *
17908
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
17909
+ * @param {*} [options] Override http request option.
17910
+ * @throws {RequiredError}
17911
+ */
17912
+ requestAccountDeletion(accountDeletionRequestBody, options) {
17913
+ return __awaiter(this, void 0, void 0, function* () {
17914
+ var _a, _b, _c;
17915
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestAccountDeletion(accountDeletionRequestBody, options);
17916
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17917
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.requestAccountDeletion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17918
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17919
+ });
17920
+ },
17874
17921
  /**
17875
17922
  *
17876
17923
  * @param {*} [options] Override http request option.
@@ -18396,6 +18443,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
18396
18443
  removeOrganization(requestParameters, options) {
18397
18444
  return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
18398
18445
  },
18446
+ /**
18447
+ *
18448
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
18449
+ * @param {*} [options] Override http request option.
18450
+ * @throws {RequiredError}
18451
+ */
18452
+ requestAccountDeletion(requestParameters, options) {
18453
+ return localVarFp.requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(axios, basePath));
18454
+ },
18399
18455
  /**
18400
18456
  *
18401
18457
  * @param {*} [options] Override http request option.
@@ -18874,6 +18930,16 @@ class UsersApi extends base_1.BaseAPI {
18874
18930
  removeOrganization(requestParameters, options) {
18875
18931
  return (0, exports.UsersApiFp)(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
18876
18932
  }
18933
+ /**
18934
+ *
18935
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
18936
+ * @param {*} [options] Override http request option.
18937
+ * @throws {RequiredError}
18938
+ * @memberof UsersApi
18939
+ */
18940
+ requestAccountDeletion(requestParameters, options) {
18941
+ return (0, exports.UsersApiFp)(this.configuration).requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(this.axios, this.basePath));
18942
+ }
18877
18943
  /**
18878
18944
  *
18879
18945
  * @param {*} [options] Override http request option.
package/dist/esm/api.d.ts CHANGED
@@ -57,6 +57,44 @@ export interface AcceptBookingInvitationResponse {
57
57
  */
58
58
  'paymentUrl'?: string;
59
59
  }
60
+ /**
61
+ *
62
+ * @export
63
+ * @interface AccountDeletionRequestBody
64
+ */
65
+ export interface AccountDeletionRequestBody {
66
+ /**
67
+ * Message libre décrivant la demande de suppression.
68
+ * @type {string}
69
+ * @memberof AccountDeletionRequestBody
70
+ */
71
+ 'message': string;
72
+ /**
73
+ * Raison courte de la demande (ex: RGPD, ne plus utiliser l\'application). Optionnelle.
74
+ * @type {string}
75
+ * @memberof AccountDeletionRequestBody
76
+ */
77
+ 'reason'?: string;
78
+ }
79
+ /**
80
+ *
81
+ * @export
82
+ * @interface AccountDeletionRequestResponse
83
+ */
84
+ export interface AccountDeletionRequestResponse {
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof AccountDeletionRequestResponse
89
+ */
90
+ 'requestId': string;
91
+ /**
92
+ *
93
+ * @type {boolean}
94
+ * @memberof AccountDeletionRequestResponse
95
+ */
96
+ 'success': boolean;
97
+ }
60
98
  /**
61
99
  *
62
100
  * @export
@@ -27087,6 +27125,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
27087
27125
  * @throws {RequiredError}
27088
27126
  */
27089
27127
  removeOrganization: (addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27128
+ /**
27129
+ *
27130
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
27131
+ * @param {*} [options] Override http request option.
27132
+ * @throws {RequiredError}
27133
+ */
27134
+ requestAccountDeletion: (accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27090
27135
  /**
27091
27136
  *
27092
27137
  * @param {*} [options] Override http request option.
@@ -27462,6 +27507,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
27462
27507
  * @throws {RequiredError}
27463
27508
  */
27464
27509
  removeOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>>;
27510
+ /**
27511
+ *
27512
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
27513
+ * @param {*} [options] Override http request option.
27514
+ * @throws {RequiredError}
27515
+ */
27516
+ requestAccountDeletion(accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDeletionRequestResponse>>;
27465
27517
  /**
27466
27518
  *
27467
27519
  * @param {*} [options] Override http request option.
@@ -27815,6 +27867,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
27815
27867
  * @throws {RequiredError}
27816
27868
  */
27817
27869
  removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response>;
27870
+ /**
27871
+ *
27872
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
27873
+ * @param {*} [options] Override http request option.
27874
+ * @throws {RequiredError}
27875
+ */
27876
+ requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountDeletionRequestResponse>;
27818
27877
  /**
27819
27878
  *
27820
27879
  * @param {*} [options] Override http request option.
@@ -28402,6 +28461,19 @@ export interface UsersApiRemoveOrganizationRequest {
28402
28461
  */
28403
28462
  readonly addOrganizationRequest: AddOrganizationRequest;
28404
28463
  }
28464
+ /**
28465
+ * Request parameters for requestAccountDeletion operation in UsersApi.
28466
+ * @export
28467
+ * @interface UsersApiRequestAccountDeletionRequest
28468
+ */
28469
+ export interface UsersApiRequestAccountDeletionRequest {
28470
+ /**
28471
+ *
28472
+ * @type {AccountDeletionRequestBody}
28473
+ * @memberof UsersApiRequestAccountDeletion
28474
+ */
28475
+ readonly accountDeletionRequestBody: AccountDeletionRequestBody;
28476
+ }
28405
28477
  /**
28406
28478
  * Request parameters for requestOrganizationCode operation in UsersApi.
28407
28479
  * @export
@@ -28883,6 +28955,14 @@ export declare class UsersApi extends BaseAPI {
28883
28955
  * @memberof UsersApi
28884
28956
  */
28885
28957
  removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LeaveEventWaitList200Response, any, {}>>;
28958
+ /**
28959
+ *
28960
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
28961
+ * @param {*} [options] Override http request option.
28962
+ * @throws {RequiredError}
28963
+ * @memberof UsersApi
28964
+ */
28965
+ requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountDeletionRequestResponse, any, {}>>;
28886
28966
  /**
28887
28967
  *
28888
28968
  * @param {*} [options] Override http request option.
package/dist/esm/api.js CHANGED
@@ -16739,6 +16739,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
16739
16739
  options: localVarRequestOptions,
16740
16740
  };
16741
16741
  }),
16742
+ /**
16743
+ *
16744
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
16745
+ * @param {*} [options] Override http request option.
16746
+ * @throws {RequiredError}
16747
+ */
16748
+ requestAccountDeletion: (accountDeletionRequestBody_1, ...args_1) => __awaiter(this, [accountDeletionRequestBody_1, ...args_1], void 0, function* (accountDeletionRequestBody, options = {}) {
16749
+ // verify required parameter 'accountDeletionRequestBody' is not null or undefined
16750
+ assertParamExists('requestAccountDeletion', 'accountDeletionRequestBody', accountDeletionRequestBody);
16751
+ const localVarPath = `/api/users/me/request-account-deletion`;
16752
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16753
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16754
+ let baseOptions;
16755
+ if (configuration) {
16756
+ baseOptions = configuration.baseOptions;
16757
+ }
16758
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16759
+ const localVarHeaderParameter = {};
16760
+ const localVarQueryParameter = {};
16761
+ // authentication bearerAuth required
16762
+ // http bearer authentication required
16763
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16764
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16765
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16766
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16767
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16768
+ localVarRequestOptions.data = serializeDataIfNeeded(accountDeletionRequestBody, localVarRequestOptions, configuration);
16769
+ return {
16770
+ url: toPathString(localVarUrlObj),
16771
+ options: localVarRequestOptions,
16772
+ };
16773
+ }),
16742
16774
  /**
16743
16775
  *
16744
16776
  * @param {*} [options] Override http request option.
@@ -17719,6 +17751,21 @@ export const UsersApiFp = function (configuration) {
17719
17751
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17720
17752
  });
17721
17753
  },
17754
+ /**
17755
+ *
17756
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
17757
+ * @param {*} [options] Override http request option.
17758
+ * @throws {RequiredError}
17759
+ */
17760
+ requestAccountDeletion(accountDeletionRequestBody, options) {
17761
+ return __awaiter(this, void 0, void 0, function* () {
17762
+ var _a, _b, _c;
17763
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestAccountDeletion(accountDeletionRequestBody, options);
17764
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17765
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestAccountDeletion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17766
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17767
+ });
17768
+ },
17722
17769
  /**
17723
17770
  *
17724
17771
  * @param {*} [options] Override http request option.
@@ -18243,6 +18290,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
18243
18290
  removeOrganization(requestParameters, options) {
18244
18291
  return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
18245
18292
  },
18293
+ /**
18294
+ *
18295
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
18296
+ * @param {*} [options] Override http request option.
18297
+ * @throws {RequiredError}
18298
+ */
18299
+ requestAccountDeletion(requestParameters, options) {
18300
+ return localVarFp.requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(axios, basePath));
18301
+ },
18246
18302
  /**
18247
18303
  *
18248
18304
  * @param {*} [options] Override http request option.
@@ -18720,6 +18776,16 @@ export class UsersApi extends BaseAPI {
18720
18776
  removeOrganization(requestParameters, options) {
18721
18777
  return UsersApiFp(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
18722
18778
  }
18779
+ /**
18780
+ *
18781
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
18782
+ * @param {*} [options] Override http request option.
18783
+ * @throws {RequiredError}
18784
+ * @memberof UsersApi
18785
+ */
18786
+ requestAccountDeletion(requestParameters, options) {
18787
+ return UsersApiFp(this.configuration).requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(this.axios, this.basePath));
18788
+ }
18723
18789
  /**
18724
18790
  *
18725
18791
  * @param {*} [options] Override http request option.
@@ -0,0 +1,22 @@
1
+ # AccountDeletionRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | Message libre décrivant la demande de suppression. | [default to undefined]
9
+ **reason** | **string** | Raison courte de la demande (ex: RGPD, ne plus utiliser l\&#39;application). Optionnelle. | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AccountDeletionRequestBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: AccountDeletionRequestBody = {
17
+ message,
18
+ reason,
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)
@@ -0,0 +1,22 @@
1
+ # AccountDeletionRequestResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **requestId** | **string** | | [default to undefined]
9
+ **success** | **boolean** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AccountDeletionRequestResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: AccountDeletionRequestResponse = {
17
+ requestId,
18
+ success,
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)
package/docs/UsersApi.md CHANGED
@@ -40,6 +40,7 @@ All URIs are relative to *http://localhost*
40
40
  |[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
41
41
  |[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
42
42
  |[**removeOrganization**](#removeorganization) | **POST** /api/users/me/remove-organization | |
43
+ |[**requestAccountDeletion**](#requestaccountdeletion) | **POST** /api/users/me/request-account-deletion | |
43
44
  |[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
44
45
  |[**requestOrganizationCode**](#requestorganizationcode) | **POST** /api/users/me/request-organization-code | |
45
46
  |[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
@@ -1886,6 +1887,60 @@ const { status, data } = await apiInstance.removeOrganization(
1886
1887
 
1887
1888
  [[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)
1888
1889
 
1890
+ # **requestAccountDeletion**
1891
+ > AccountDeletionRequestResponse requestAccountDeletion(accountDeletionRequestBody)
1892
+
1893
+
1894
+ ### Example
1895
+
1896
+ ```typescript
1897
+ import {
1898
+ UsersApi,
1899
+ Configuration,
1900
+ AccountDeletionRequestBody
1901
+ } from '@tennac-booking/sdk';
1902
+
1903
+ const configuration = new Configuration();
1904
+ const apiInstance = new UsersApi(configuration);
1905
+
1906
+ let accountDeletionRequestBody: AccountDeletionRequestBody; //
1907
+
1908
+ const { status, data } = await apiInstance.requestAccountDeletion(
1909
+ accountDeletionRequestBody
1910
+ );
1911
+ ```
1912
+
1913
+ ### Parameters
1914
+
1915
+ |Name | Type | Description | Notes|
1916
+ |------------- | ------------- | ------------- | -------------|
1917
+ | **accountDeletionRequestBody** | **AccountDeletionRequestBody**| | |
1918
+
1919
+
1920
+ ### Return type
1921
+
1922
+ **AccountDeletionRequestResponse**
1923
+
1924
+ ### Authorization
1925
+
1926
+ [bearerAuth](../README.md#bearerAuth)
1927
+
1928
+ ### HTTP request headers
1929
+
1930
+ - **Content-Type**: application/json
1931
+ - **Accept**: application/json
1932
+
1933
+
1934
+ ### HTTP response details
1935
+ | Status code | Description | Response headers |
1936
+ |-------------|-------------|------------------|
1937
+ |**201** | Demande enregistrée | - |
1938
+ |**400** | Payload invalide | - |
1939
+ |**404** | Utilisateur non trouvé | - |
1940
+ |**500** | Erreur envoi email | - |
1941
+
1942
+ [[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)
1943
+
1889
1944
  # **requestEmailVerification**
1890
1945
  > LeaveEventWaitList200Response requestEmailVerification()
1891
1946
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.249",
3
+ "version": "1.0.250",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {