@gooday_corp/gooday-api-client 1.0.17-delta → 1.0.17
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/api.ts +62 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2210,6 +2210,39 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2210
2210
|
options: localVarRequestOptions,
|
|
2211
2211
|
};
|
|
2212
2212
|
},
|
|
2213
|
+
/**
|
|
2214
|
+
*
|
|
2215
|
+
* @param {*} [options] Override http request option.
|
|
2216
|
+
* @throws {RequiredError}
|
|
2217
|
+
*/
|
|
2218
|
+
businessControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2219
|
+
const localVarPath = `/v1/business/me`;
|
|
2220
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2221
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2222
|
+
let baseOptions;
|
|
2223
|
+
if (configuration) {
|
|
2224
|
+
baseOptions = configuration.baseOptions;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2228
|
+
const localVarHeaderParameter = {} as any;
|
|
2229
|
+
const localVarQueryParameter = {} as any;
|
|
2230
|
+
|
|
2231
|
+
// authentication bearer required
|
|
2232
|
+
// http bearer authentication required
|
|
2233
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2240
|
+
|
|
2241
|
+
return {
|
|
2242
|
+
url: toPathString(localVarUrlObj),
|
|
2243
|
+
options: localVarRequestOptions,
|
|
2244
|
+
};
|
|
2245
|
+
},
|
|
2213
2246
|
/**
|
|
2214
2247
|
*
|
|
2215
2248
|
* @param {*} [options] Override http request option.
|
|
@@ -2368,6 +2401,17 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2368
2401
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
|
|
2369
2402
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2370
2403
|
},
|
|
2404
|
+
/**
|
|
2405
|
+
*
|
|
2406
|
+
* @param {*} [options] Override http request option.
|
|
2407
|
+
* @throws {RequiredError}
|
|
2408
|
+
*/
|
|
2409
|
+
async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
2410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
|
|
2411
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2412
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
2413
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2414
|
+
},
|
|
2371
2415
|
/**
|
|
2372
2416
|
*
|
|
2373
2417
|
* @param {*} [options] Override http request option.
|
|
@@ -2432,6 +2476,14 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2432
2476
|
businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
2433
2477
|
return localVarFp.businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(axios, basePath));
|
|
2434
2478
|
},
|
|
2479
|
+
/**
|
|
2480
|
+
*
|
|
2481
|
+
* @param {*} [options] Override http request option.
|
|
2482
|
+
* @throws {RequiredError}
|
|
2483
|
+
*/
|
|
2484
|
+
businessControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
2485
|
+
return localVarFp.businessControllerGetMe(options).then((request) => request(axios, basePath));
|
|
2486
|
+
},
|
|
2435
2487
|
/**
|
|
2436
2488
|
*
|
|
2437
2489
|
* @param {*} [options] Override http request option.
|
|
@@ -2486,6 +2538,16 @@ export class BusinessApi extends BaseAPI {
|
|
|
2486
2538
|
return BusinessApiFp(this.configuration).businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
2487
2539
|
}
|
|
2488
2540
|
|
|
2541
|
+
/**
|
|
2542
|
+
*
|
|
2543
|
+
* @param {*} [options] Override http request option.
|
|
2544
|
+
* @throws {RequiredError}
|
|
2545
|
+
* @memberof BusinessApi
|
|
2546
|
+
*/
|
|
2547
|
+
public businessControllerGetMe(options?: RawAxiosRequestConfig) {
|
|
2548
|
+
return BusinessApiFp(this.configuration).businessControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2489
2551
|
/**
|
|
2490
2552
|
*
|
|
2491
2553
|
* @param {*} [options] Override http request option.
|