@gooday_corp/gooday-api-client 1.1.55 → 1.1.57

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.
Files changed (2) hide show
  1. package/api.ts +68 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -3649,6 +3649,12 @@ export interface UserEntity {
3649
3649
  * @memberof UserEntity
3650
3650
  */
3651
3651
  'isDeleted': boolean;
3652
+ /**
3653
+ * Is account deleted?
3654
+ * @type {boolean}
3655
+ * @memberof UserEntity
3656
+ */
3657
+ 'isDeactivate': boolean;
3652
3658
  /**
3653
3659
  * Email address of the user
3654
3660
  * @type {string}
@@ -10906,6 +10912,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
10906
10912
 
10907
10913
 
10908
10914
 
10915
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10916
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10917
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10918
+
10919
+ return {
10920
+ url: toPathString(localVarUrlObj),
10921
+ options: localVarRequestOptions,
10922
+ };
10923
+ },
10924
+ /**
10925
+ *
10926
+ * @param {*} [options] Override http request option.
10927
+ * @throws {RequiredError}
10928
+ */
10929
+ usersControllerDeleteAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10930
+ const localVarPath = `/v1/user/delete`;
10931
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10932
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10933
+ let baseOptions;
10934
+ if (configuration) {
10935
+ baseOptions = configuration.baseOptions;
10936
+ }
10937
+
10938
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
10939
+ const localVarHeaderParameter = {} as any;
10940
+ const localVarQueryParameter = {} as any;
10941
+
10942
+ // authentication bearer required
10943
+ // http bearer authentication required
10944
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10945
+
10946
+
10947
+
10909
10948
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10910
10949
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10911
10950
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -11203,6 +11242,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
11203
11242
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerDeactivateAccount']?.[localVarOperationServerIndex]?.url;
11204
11243
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11205
11244
  },
11245
+ /**
11246
+ *
11247
+ * @param {*} [options] Override http request option.
11248
+ * @throws {RequiredError}
11249
+ */
11250
+ async usersControllerDeleteAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
11251
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerDeleteAccount(options);
11252
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11253
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerDeleteAccount']?.[localVarOperationServerIndex]?.url;
11254
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11255
+ },
11206
11256
  /**
11207
11257
  *
11208
11258
  * @param {*} [options] Override http request option.
@@ -11311,6 +11361,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
11311
11361
  usersControllerDeactivateAccount(options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
11312
11362
  return localVarFp.usersControllerDeactivateAccount(options).then((request) => request(axios, basePath));
11313
11363
  },
11364
+ /**
11365
+ *
11366
+ * @param {*} [options] Override http request option.
11367
+ * @throws {RequiredError}
11368
+ */
11369
+ usersControllerDeleteAccount(options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
11370
+ return localVarFp.usersControllerDeleteAccount(options).then((request) => request(axios, basePath));
11371
+ },
11314
11372
  /**
11315
11373
  *
11316
11374
  * @param {*} [options] Override http request option.
@@ -11402,6 +11460,16 @@ export class UsersApi extends BaseAPI {
11402
11460
  return UsersApiFp(this.configuration).usersControllerDeactivateAccount(options).then((request) => request(this.axios, this.basePath));
11403
11461
  }
11404
11462
 
11463
+ /**
11464
+ *
11465
+ * @param {*} [options] Override http request option.
11466
+ * @throws {RequiredError}
11467
+ * @memberof UsersApi
11468
+ */
11469
+ public usersControllerDeleteAccount(options?: RawAxiosRequestConfig) {
11470
+ return UsersApiFp(this.configuration).usersControllerDeleteAccount(options).then((request) => request(this.axios, this.basePath));
11471
+ }
11472
+
11405
11473
  /**
11406
11474
  *
11407
11475
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.55",
3
+ "version": "1.1.57",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},