@gooday_corp/gooday-api-client 1.3.25 → 1.3.27
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 +92 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -224,6 +224,31 @@ export interface AddDevicePayload {
|
|
|
224
224
|
*/
|
|
225
225
|
'version': string;
|
|
226
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @export
|
|
230
|
+
* @interface AppleDashboardPayloadDTO
|
|
231
|
+
*/
|
|
232
|
+
export interface AppleDashboardPayloadDTO {
|
|
233
|
+
/**
|
|
234
|
+
* The ID token provided by apple after authentication
|
|
235
|
+
* @type {string}
|
|
236
|
+
* @memberof AppleDashboardPayloadDTO
|
|
237
|
+
*/
|
|
238
|
+
'id_token': string;
|
|
239
|
+
/**
|
|
240
|
+
* First name of the user
|
|
241
|
+
* @type {string}
|
|
242
|
+
* @memberof AppleDashboardPayloadDTO
|
|
243
|
+
*/
|
|
244
|
+
'refresh_token': string;
|
|
245
|
+
/**
|
|
246
|
+
* Last name of the user
|
|
247
|
+
* @type {string}
|
|
248
|
+
* @memberof AppleDashboardPayloadDTO
|
|
249
|
+
*/
|
|
250
|
+
'clientSecret': string;
|
|
251
|
+
}
|
|
227
252
|
/**
|
|
228
253
|
*
|
|
229
254
|
* @export
|
|
@@ -16924,6 +16949,41 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
16924
16949
|
options: localVarRequestOptions,
|
|
16925
16950
|
};
|
|
16926
16951
|
},
|
|
16952
|
+
/**
|
|
16953
|
+
*
|
|
16954
|
+
* @param {AppleDashboardPayloadDTO} appleDashboardPayloadDTO
|
|
16955
|
+
* @param {*} [options] Override http request option.
|
|
16956
|
+
* @throws {RequiredError}
|
|
16957
|
+
*/
|
|
16958
|
+
oAuthControllerValidateAppleDashboardBusinessToken: async (appleDashboardPayloadDTO: AppleDashboardPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16959
|
+
// verify required parameter 'appleDashboardPayloadDTO' is not null or undefined
|
|
16960
|
+
assertParamExists('oAuthControllerValidateAppleDashboardBusinessToken', 'appleDashboardPayloadDTO', appleDashboardPayloadDTO)
|
|
16961
|
+
const localVarPath = `/v1/oauth/apple/dashboard/business`;
|
|
16962
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16963
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16964
|
+
let baseOptions;
|
|
16965
|
+
if (configuration) {
|
|
16966
|
+
baseOptions = configuration.baseOptions;
|
|
16967
|
+
}
|
|
16968
|
+
|
|
16969
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16970
|
+
const localVarHeaderParameter = {} as any;
|
|
16971
|
+
const localVarQueryParameter = {} as any;
|
|
16972
|
+
|
|
16973
|
+
|
|
16974
|
+
|
|
16975
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16976
|
+
|
|
16977
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16978
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16979
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16980
|
+
localVarRequestOptions.data = serializeDataIfNeeded(appleDashboardPayloadDTO, localVarRequestOptions, configuration)
|
|
16981
|
+
|
|
16982
|
+
return {
|
|
16983
|
+
url: toPathString(localVarUrlObj),
|
|
16984
|
+
options: localVarRequestOptions,
|
|
16985
|
+
};
|
|
16986
|
+
},
|
|
16927
16987
|
/**
|
|
16928
16988
|
*
|
|
16929
16989
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -17051,6 +17111,18 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
17051
17111
|
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateAppleBusinessToken']?.[localVarOperationServerIndex]?.url;
|
|
17052
17112
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17053
17113
|
},
|
|
17114
|
+
/**
|
|
17115
|
+
*
|
|
17116
|
+
* @param {AppleDashboardPayloadDTO} appleDashboardPayloadDTO
|
|
17117
|
+
* @param {*} [options] Override http request option.
|
|
17118
|
+
* @throws {RequiredError}
|
|
17119
|
+
*/
|
|
17120
|
+
async oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO: AppleDashboardPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppleOAuthResponseDTO>> {
|
|
17121
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO, options);
|
|
17122
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17123
|
+
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateAppleDashboardBusinessToken']?.[localVarOperationServerIndex]?.url;
|
|
17124
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17125
|
+
},
|
|
17054
17126
|
/**
|
|
17055
17127
|
*
|
|
17056
17128
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -17106,6 +17178,15 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
17106
17178
|
oAuthControllerValidateAppleBusinessToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<AppleOAuthResponseDTO> {
|
|
17107
17179
|
return localVarFp.oAuthControllerValidateAppleBusinessToken(appleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
|
|
17108
17180
|
},
|
|
17181
|
+
/**
|
|
17182
|
+
*
|
|
17183
|
+
* @param {AppleDashboardPayloadDTO} appleDashboardPayloadDTO
|
|
17184
|
+
* @param {*} [options] Override http request option.
|
|
17185
|
+
* @throws {RequiredError}
|
|
17186
|
+
*/
|
|
17187
|
+
oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO: AppleDashboardPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<AppleOAuthResponseDTO> {
|
|
17188
|
+
return localVarFp.oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO, options).then((request) => request(axios, basePath));
|
|
17189
|
+
},
|
|
17109
17190
|
/**
|
|
17110
17191
|
*
|
|
17111
17192
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -17154,6 +17235,17 @@ export class OAuthApi extends BaseAPI {
|
|
|
17154
17235
|
return OAuthApiFp(this.configuration).oAuthControllerValidateAppleBusinessToken(appleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17155
17236
|
}
|
|
17156
17237
|
|
|
17238
|
+
/**
|
|
17239
|
+
*
|
|
17240
|
+
* @param {AppleDashboardPayloadDTO} appleDashboardPayloadDTO
|
|
17241
|
+
* @param {*} [options] Override http request option.
|
|
17242
|
+
* @throws {RequiredError}
|
|
17243
|
+
* @memberof OAuthApi
|
|
17244
|
+
*/
|
|
17245
|
+
public oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO: AppleDashboardPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
17246
|
+
return OAuthApiFp(this.configuration).oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17247
|
+
}
|
|
17248
|
+
|
|
17157
17249
|
/**
|
|
17158
17250
|
*
|
|
17159
17251
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|