@gooday_corp/gooday-api-client 1.3.26 → 1.3.28
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 +169 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -224,6 +224,50 @@ export interface AddDevicePayload {
|
|
|
224
224
|
*/
|
|
225
225
|
'version': string;
|
|
226
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @export
|
|
230
|
+
* @interface AppleClientResponseDTO
|
|
231
|
+
*/
|
|
232
|
+
export interface AppleClientResponseDTO {
|
|
233
|
+
/**
|
|
234
|
+
* statusCode
|
|
235
|
+
* @type {number}
|
|
236
|
+
* @memberof AppleClientResponseDTO
|
|
237
|
+
*/
|
|
238
|
+
'statusCode': number;
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @type {string}
|
|
242
|
+
* @memberof AppleClientResponseDTO
|
|
243
|
+
*/
|
|
244
|
+
'clientSecret': string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @export
|
|
249
|
+
* @interface AppleDashboardPayloadDTO
|
|
250
|
+
*/
|
|
251
|
+
export interface AppleDashboardPayloadDTO {
|
|
252
|
+
/**
|
|
253
|
+
* The ID token provided by apple after authentication
|
|
254
|
+
* @type {string}
|
|
255
|
+
* @memberof AppleDashboardPayloadDTO
|
|
256
|
+
*/
|
|
257
|
+
'id_token': string;
|
|
258
|
+
/**
|
|
259
|
+
* First name of the user
|
|
260
|
+
* @type {string}
|
|
261
|
+
* @memberof AppleDashboardPayloadDTO
|
|
262
|
+
*/
|
|
263
|
+
'refresh_token': string;
|
|
264
|
+
/**
|
|
265
|
+
* Last name of the user
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof AppleDashboardPayloadDTO
|
|
268
|
+
*/
|
|
269
|
+
'clientSecret': string;
|
|
270
|
+
}
|
|
227
271
|
/**
|
|
228
272
|
*
|
|
229
273
|
* @export
|
|
@@ -16889,6 +16933,35 @@ export type NotificationControllerGetNotificationCategoryEnum = typeof Notificat
|
|
|
16889
16933
|
*/
|
|
16890
16934
|
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
16891
16935
|
return {
|
|
16936
|
+
/**
|
|
16937
|
+
*
|
|
16938
|
+
* @param {*} [options] Override http request option.
|
|
16939
|
+
* @throws {RequiredError}
|
|
16940
|
+
*/
|
|
16941
|
+
oAuthControllerAppleClient: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16942
|
+
const localVarPath = `/v1/oauth/apple/client`;
|
|
16943
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16944
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16945
|
+
let baseOptions;
|
|
16946
|
+
if (configuration) {
|
|
16947
|
+
baseOptions = configuration.baseOptions;
|
|
16948
|
+
}
|
|
16949
|
+
|
|
16950
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16951
|
+
const localVarHeaderParameter = {} as any;
|
|
16952
|
+
const localVarQueryParameter = {} as any;
|
|
16953
|
+
|
|
16954
|
+
|
|
16955
|
+
|
|
16956
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16957
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16958
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16959
|
+
|
|
16960
|
+
return {
|
|
16961
|
+
url: toPathString(localVarUrlObj),
|
|
16962
|
+
options: localVarRequestOptions,
|
|
16963
|
+
};
|
|
16964
|
+
},
|
|
16892
16965
|
/**
|
|
16893
16966
|
*
|
|
16894
16967
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -16924,6 +16997,41 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
16924
16997
|
options: localVarRequestOptions,
|
|
16925
16998
|
};
|
|
16926
16999
|
},
|
|
17000
|
+
/**
|
|
17001
|
+
*
|
|
17002
|
+
* @param {AppleDashboardPayloadDTO} appleDashboardPayloadDTO
|
|
17003
|
+
* @param {*} [options] Override http request option.
|
|
17004
|
+
* @throws {RequiredError}
|
|
17005
|
+
*/
|
|
17006
|
+
oAuthControllerValidateAppleDashboardBusinessToken: async (appleDashboardPayloadDTO: AppleDashboardPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17007
|
+
// verify required parameter 'appleDashboardPayloadDTO' is not null or undefined
|
|
17008
|
+
assertParamExists('oAuthControllerValidateAppleDashboardBusinessToken', 'appleDashboardPayloadDTO', appleDashboardPayloadDTO)
|
|
17009
|
+
const localVarPath = `/v1/oauth/apple/dashboard/business`;
|
|
17010
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17011
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17012
|
+
let baseOptions;
|
|
17013
|
+
if (configuration) {
|
|
17014
|
+
baseOptions = configuration.baseOptions;
|
|
17015
|
+
}
|
|
17016
|
+
|
|
17017
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17018
|
+
const localVarHeaderParameter = {} as any;
|
|
17019
|
+
const localVarQueryParameter = {} as any;
|
|
17020
|
+
|
|
17021
|
+
|
|
17022
|
+
|
|
17023
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17024
|
+
|
|
17025
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17026
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17027
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17028
|
+
localVarRequestOptions.data = serializeDataIfNeeded(appleDashboardPayloadDTO, localVarRequestOptions, configuration)
|
|
17029
|
+
|
|
17030
|
+
return {
|
|
17031
|
+
url: toPathString(localVarUrlObj),
|
|
17032
|
+
options: localVarRequestOptions,
|
|
17033
|
+
};
|
|
17034
|
+
},
|
|
16927
17035
|
/**
|
|
16928
17036
|
*
|
|
16929
17037
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -17039,6 +17147,17 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
17039
17147
|
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
17040
17148
|
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
17041
17149
|
return {
|
|
17150
|
+
/**
|
|
17151
|
+
*
|
|
17152
|
+
* @param {*} [options] Override http request option.
|
|
17153
|
+
* @throws {RequiredError}
|
|
17154
|
+
*/
|
|
17155
|
+
async oAuthControllerAppleClient(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppleClientResponseDTO>> {
|
|
17156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerAppleClient(options);
|
|
17157
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17158
|
+
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerAppleClient']?.[localVarOperationServerIndex]?.url;
|
|
17159
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17160
|
+
},
|
|
17042
17161
|
/**
|
|
17043
17162
|
*
|
|
17044
17163
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -17051,6 +17170,18 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
17051
17170
|
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateAppleBusinessToken']?.[localVarOperationServerIndex]?.url;
|
|
17052
17171
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17053
17172
|
},
|
|
17173
|
+
/**
|
|
17174
|
+
*
|
|
17175
|
+
* @param {AppleDashboardPayloadDTO} appleDashboardPayloadDTO
|
|
17176
|
+
* @param {*} [options] Override http request option.
|
|
17177
|
+
* @throws {RequiredError}
|
|
17178
|
+
*/
|
|
17179
|
+
async oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO: AppleDashboardPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppleOAuthResponseDTO>> {
|
|
17180
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO, options);
|
|
17181
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17182
|
+
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateAppleDashboardBusinessToken']?.[localVarOperationServerIndex]?.url;
|
|
17183
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17184
|
+
},
|
|
17054
17185
|
/**
|
|
17055
17186
|
*
|
|
17056
17187
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -17097,6 +17228,14 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
17097
17228
|
export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
17098
17229
|
const localVarFp = OAuthApiFp(configuration)
|
|
17099
17230
|
return {
|
|
17231
|
+
/**
|
|
17232
|
+
*
|
|
17233
|
+
* @param {*} [options] Override http request option.
|
|
17234
|
+
* @throws {RequiredError}
|
|
17235
|
+
*/
|
|
17236
|
+
oAuthControllerAppleClient(options?: RawAxiosRequestConfig): AxiosPromise<AppleClientResponseDTO> {
|
|
17237
|
+
return localVarFp.oAuthControllerAppleClient(options).then((request) => request(axios, basePath));
|
|
17238
|
+
},
|
|
17100
17239
|
/**
|
|
17101
17240
|
*
|
|
17102
17241
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -17106,6 +17245,15 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
17106
17245
|
oAuthControllerValidateAppleBusinessToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<AppleOAuthResponseDTO> {
|
|
17107
17246
|
return localVarFp.oAuthControllerValidateAppleBusinessToken(appleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
|
|
17108
17247
|
},
|
|
17248
|
+
/**
|
|
17249
|
+
*
|
|
17250
|
+
* @param {AppleDashboardPayloadDTO} appleDashboardPayloadDTO
|
|
17251
|
+
* @param {*} [options] Override http request option.
|
|
17252
|
+
* @throws {RequiredError}
|
|
17253
|
+
*/
|
|
17254
|
+
oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO: AppleDashboardPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<AppleOAuthResponseDTO> {
|
|
17255
|
+
return localVarFp.oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO, options).then((request) => request(axios, basePath));
|
|
17256
|
+
},
|
|
17109
17257
|
/**
|
|
17110
17258
|
*
|
|
17111
17259
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -17143,6 +17291,16 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
17143
17291
|
* @extends {BaseAPI}
|
|
17144
17292
|
*/
|
|
17145
17293
|
export class OAuthApi extends BaseAPI {
|
|
17294
|
+
/**
|
|
17295
|
+
*
|
|
17296
|
+
* @param {*} [options] Override http request option.
|
|
17297
|
+
* @throws {RequiredError}
|
|
17298
|
+
* @memberof OAuthApi
|
|
17299
|
+
*/
|
|
17300
|
+
public oAuthControllerAppleClient(options?: RawAxiosRequestConfig) {
|
|
17301
|
+
return OAuthApiFp(this.configuration).oAuthControllerAppleClient(options).then((request) => request(this.axios, this.basePath));
|
|
17302
|
+
}
|
|
17303
|
+
|
|
17146
17304
|
/**
|
|
17147
17305
|
*
|
|
17148
17306
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
@@ -17154,6 +17312,17 @@ export class OAuthApi extends BaseAPI {
|
|
|
17154
17312
|
return OAuthApiFp(this.configuration).oAuthControllerValidateAppleBusinessToken(appleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17155
17313
|
}
|
|
17156
17314
|
|
|
17315
|
+
/**
|
|
17316
|
+
*
|
|
17317
|
+
* @param {AppleDashboardPayloadDTO} appleDashboardPayloadDTO
|
|
17318
|
+
* @param {*} [options] Override http request option.
|
|
17319
|
+
* @throws {RequiredError}
|
|
17320
|
+
* @memberof OAuthApi
|
|
17321
|
+
*/
|
|
17322
|
+
public oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO: AppleDashboardPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
17323
|
+
return OAuthApiFp(this.configuration).oAuthControllerValidateAppleDashboardBusinessToken(appleDashboardPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17324
|
+
}
|
|
17325
|
+
|
|
17157
17326
|
/**
|
|
17158
17327
|
*
|
|
17159
17328
|
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|