@gooday_corp/gooday-api-client 1.1.11 → 1.1.12-alpha
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 +114 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -60,6 +60,50 @@ export interface AddDevicePayload {
|
|
|
60
60
|
*/
|
|
61
61
|
'version': string;
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @export
|
|
66
|
+
* @interface AppleOAuthResponseDTO
|
|
67
|
+
*/
|
|
68
|
+
export interface AppleOAuthResponseDTO {
|
|
69
|
+
/**
|
|
70
|
+
* statusCode
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof AppleOAuthResponseDTO
|
|
73
|
+
*/
|
|
74
|
+
'statusCode': number;
|
|
75
|
+
/**
|
|
76
|
+
* User
|
|
77
|
+
* @type {SignupResponse}
|
|
78
|
+
* @memberof AppleOAuthResponseDTO
|
|
79
|
+
*/
|
|
80
|
+
'data': SignupResponse;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @export
|
|
85
|
+
* @interface AppleVerificationPayloadDTO
|
|
86
|
+
*/
|
|
87
|
+
export interface AppleVerificationPayloadDTO {
|
|
88
|
+
/**
|
|
89
|
+
* The ID token provided by Google after authentication
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof AppleVerificationPayloadDTO
|
|
92
|
+
*/
|
|
93
|
+
'token': string;
|
|
94
|
+
/**
|
|
95
|
+
* First name of the user
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof AppleVerificationPayloadDTO
|
|
98
|
+
*/
|
|
99
|
+
'firstName': string;
|
|
100
|
+
/**
|
|
101
|
+
* Last name of the user
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof AppleVerificationPayloadDTO
|
|
104
|
+
*/
|
|
105
|
+
'lastName': string;
|
|
106
|
+
}
|
|
63
107
|
/**
|
|
64
108
|
*
|
|
65
109
|
* @export
|
|
@@ -738,7 +782,7 @@ export interface GoalListResponse {
|
|
|
738
782
|
*/
|
|
739
783
|
export interface GoogleOAuthResponseDTO {
|
|
740
784
|
/**
|
|
741
|
-
*
|
|
785
|
+
* statusCode
|
|
742
786
|
* @type {number}
|
|
743
787
|
* @memberof GoogleOAuthResponseDTO
|
|
744
788
|
*/
|
|
@@ -803,7 +847,8 @@ export interface IntegrationEntity {
|
|
|
803
847
|
|
|
804
848
|
export const IntegrationEntityIntegrationTypeEnum = {
|
|
805
849
|
Google: 'google',
|
|
806
|
-
Microsoft: 'microsoft'
|
|
850
|
+
Microsoft: 'microsoft',
|
|
851
|
+
Apple: 'apple'
|
|
807
852
|
} as const;
|
|
808
853
|
|
|
809
854
|
export type IntegrationEntityIntegrationTypeEnum = typeof IntegrationEntityIntegrationTypeEnum[keyof typeof IntegrationEntityIntegrationTypeEnum];
|
|
@@ -3589,6 +3634,41 @@ export class IntegrationApi extends BaseAPI {
|
|
|
3589
3634
|
*/
|
|
3590
3635
|
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3591
3636
|
return {
|
|
3637
|
+
/**
|
|
3638
|
+
*
|
|
3639
|
+
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
3640
|
+
* @param {*} [options] Override http request option.
|
|
3641
|
+
* @throws {RequiredError}
|
|
3642
|
+
*/
|
|
3643
|
+
oAuthControllerValidateAppleToken: async (appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3644
|
+
// verify required parameter 'appleVerificationPayloadDTO' is not null or undefined
|
|
3645
|
+
assertParamExists('oAuthControllerValidateAppleToken', 'appleVerificationPayloadDTO', appleVerificationPayloadDTO)
|
|
3646
|
+
const localVarPath = `/v1/oauth/apple`;
|
|
3647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3648
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3649
|
+
let baseOptions;
|
|
3650
|
+
if (configuration) {
|
|
3651
|
+
baseOptions = configuration.baseOptions;
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3655
|
+
const localVarHeaderParameter = {} as any;
|
|
3656
|
+
const localVarQueryParameter = {} as any;
|
|
3657
|
+
|
|
3658
|
+
|
|
3659
|
+
|
|
3660
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3661
|
+
|
|
3662
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3663
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3664
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3665
|
+
localVarRequestOptions.data = serializeDataIfNeeded(appleVerificationPayloadDTO, localVarRequestOptions, configuration)
|
|
3666
|
+
|
|
3667
|
+
return {
|
|
3668
|
+
url: toPathString(localVarUrlObj),
|
|
3669
|
+
options: localVarRequestOptions,
|
|
3670
|
+
};
|
|
3671
|
+
},
|
|
3592
3672
|
/**
|
|
3593
3673
|
*
|
|
3594
3674
|
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
@@ -3669,6 +3749,18 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3669
3749
|
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
3670
3750
|
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
3671
3751
|
return {
|
|
3752
|
+
/**
|
|
3753
|
+
*
|
|
3754
|
+
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
3755
|
+
* @param {*} [options] Override http request option.
|
|
3756
|
+
* @throws {RequiredError}
|
|
3757
|
+
*/
|
|
3758
|
+
async oAuthControllerValidateAppleToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppleOAuthResponseDTO>> {
|
|
3759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateAppleToken(appleVerificationPayloadDTO, options);
|
|
3760
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3761
|
+
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateAppleToken']?.[localVarOperationServerIndex]?.url;
|
|
3762
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3763
|
+
},
|
|
3672
3764
|
/**
|
|
3673
3765
|
*
|
|
3674
3766
|
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
@@ -3703,6 +3795,15 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
3703
3795
|
export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3704
3796
|
const localVarFp = OAuthApiFp(configuration)
|
|
3705
3797
|
return {
|
|
3798
|
+
/**
|
|
3799
|
+
*
|
|
3800
|
+
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
3801
|
+
* @param {*} [options] Override http request option.
|
|
3802
|
+
* @throws {RequiredError}
|
|
3803
|
+
*/
|
|
3804
|
+
oAuthControllerValidateAppleToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<AppleOAuthResponseDTO> {
|
|
3805
|
+
return localVarFp.oAuthControllerValidateAppleToken(appleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
|
|
3806
|
+
},
|
|
3706
3807
|
/**
|
|
3707
3808
|
*
|
|
3708
3809
|
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
@@ -3731,6 +3832,17 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
3731
3832
|
* @extends {BaseAPI}
|
|
3732
3833
|
*/
|
|
3733
3834
|
export class OAuthApi extends BaseAPI {
|
|
3835
|
+
/**
|
|
3836
|
+
*
|
|
3837
|
+
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
3838
|
+
* @param {*} [options] Override http request option.
|
|
3839
|
+
* @throws {RequiredError}
|
|
3840
|
+
* @memberof OAuthApi
|
|
3841
|
+
*/
|
|
3842
|
+
public oAuthControllerValidateAppleToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
3843
|
+
return OAuthApiFp(this.configuration).oAuthControllerValidateAppleToken(appleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3734
3846
|
/**
|
|
3735
3847
|
*
|
|
3736
3848
|
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|