@gooday_corp/gooday-api-client 1.0.11-beta → 1.0.12

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 +138 -58
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -210,6 +210,38 @@ export interface GoalListResponse {
210
210
  */
211
211
  'data': Array<GoalEntity>;
212
212
  }
213
+ /**
214
+ *
215
+ * @export
216
+ * @interface GoogleOAuthResponseDTO
217
+ */
218
+ export interface GoogleOAuthResponseDTO {
219
+ /**
220
+ * statuscCode
221
+ * @type {number}
222
+ * @memberof GoogleOAuthResponseDTO
223
+ */
224
+ 'statusCode': number;
225
+ /**
226
+ * User
227
+ * @type {SignupResponse}
228
+ * @memberof GoogleOAuthResponseDTO
229
+ */
230
+ 'data': SignupResponse;
231
+ }
232
+ /**
233
+ *
234
+ * @export
235
+ * @interface GoogleVerificationPayloadDTO
236
+ */
237
+ export interface GoogleVerificationPayloadDTO {
238
+ /**
239
+ * The ID token provided by Google after authentication
240
+ * @type {string}
241
+ * @memberof GoogleVerificationPayloadDTO
242
+ */
243
+ 'token': string;
244
+ }
213
245
  /**
214
246
  *
215
247
  * @export
@@ -841,35 +873,6 @@ export class AIApi extends BaseAPI {
841
873
  */
842
874
  export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
843
875
  return {
844
- /**
845
- *
846
- * @param {*} [options] Override http request option.
847
- * @throws {RequiredError}
848
- */
849
- authControllerGoogleLogin: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
850
- const localVarPath = `/auth/google-login`;
851
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
852
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
853
- let baseOptions;
854
- if (configuration) {
855
- baseOptions = configuration.baseOptions;
856
- }
857
-
858
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
859
- const localVarHeaderParameter = {} as any;
860
- const localVarQueryParameter = {} as any;
861
-
862
-
863
-
864
- setSearchParams(localVarUrlObj, localVarQueryParameter);
865
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
866
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
867
-
868
- return {
869
- url: toPathString(localVarUrlObj),
870
- options: localVarRequestOptions,
871
- };
872
- },
873
876
  /**
874
877
  *
875
878
  * @param {SignInDto} signInDto
@@ -989,17 +992,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
989
992
  export const AuthApiFp = function(configuration?: Configuration) {
990
993
  const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
991
994
  return {
992
- /**
993
- *
994
- * @param {*} [options] Override http request option.
995
- * @throws {RequiredError}
996
- */
997
- async authControllerGoogleLogin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
998
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGoogleLogin(options);
999
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1000
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerGoogleLogin']?.[localVarOperationServerIndex]?.url;
1001
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1002
- },
1003
995
  /**
1004
996
  *
1005
997
  * @param {SignInDto} signInDto
@@ -1046,14 +1038,6 @@ export const AuthApiFp = function(configuration?: Configuration) {
1046
1038
  export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1047
1039
  const localVarFp = AuthApiFp(configuration)
1048
1040
  return {
1049
- /**
1050
- *
1051
- * @param {*} [options] Override http request option.
1052
- * @throws {RequiredError}
1053
- */
1054
- authControllerGoogleLogin(options?: RawAxiosRequestConfig): AxiosPromise<void> {
1055
- return localVarFp.authControllerGoogleLogin(options).then((request) => request(axios, basePath));
1056
- },
1057
1041
  /**
1058
1042
  *
1059
1043
  * @param {SignInDto} signInDto
@@ -1091,16 +1075,6 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1091
1075
  * @extends {BaseAPI}
1092
1076
  */
1093
1077
  export class AuthApi extends BaseAPI {
1094
- /**
1095
- *
1096
- * @param {*} [options] Override http request option.
1097
- * @throws {RequiredError}
1098
- * @memberof AuthApi
1099
- */
1100
- public authControllerGoogleLogin(options?: RawAxiosRequestConfig) {
1101
- return AuthApiFp(this.configuration).authControllerGoogleLogin(options).then((request) => request(this.axios, this.basePath));
1102
- }
1103
-
1104
1078
  /**
1105
1079
  *
1106
1080
  * @param {SignInDto} signInDto
@@ -1344,6 +1318,112 @@ export class GoalsApi extends BaseAPI {
1344
1318
 
1345
1319
 
1346
1320
 
1321
+ /**
1322
+ * OAuthApi - axios parameter creator
1323
+ * @export
1324
+ */
1325
+ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
1326
+ return {
1327
+ /**
1328
+ *
1329
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
1330
+ * @param {*} [options] Override http request option.
1331
+ * @throws {RequiredError}
1332
+ */
1333
+ oAuthControllerValidateGoogleToken: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1334
+ // verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
1335
+ assertParamExists('oAuthControllerValidateGoogleToken', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
1336
+ const localVarPath = `/v1/oauth/google`;
1337
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1338
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1339
+ let baseOptions;
1340
+ if (configuration) {
1341
+ baseOptions = configuration.baseOptions;
1342
+ }
1343
+
1344
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1345
+ const localVarHeaderParameter = {} as any;
1346
+ const localVarQueryParameter = {} as any;
1347
+
1348
+
1349
+
1350
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1351
+
1352
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1353
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1354
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1355
+ localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
1356
+
1357
+ return {
1358
+ url: toPathString(localVarUrlObj),
1359
+ options: localVarRequestOptions,
1360
+ };
1361
+ },
1362
+ }
1363
+ };
1364
+
1365
+ /**
1366
+ * OAuthApi - functional programming interface
1367
+ * @export
1368
+ */
1369
+ export const OAuthApiFp = function(configuration?: Configuration) {
1370
+ const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
1371
+ return {
1372
+ /**
1373
+ *
1374
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
1375
+ * @param {*} [options] Override http request option.
1376
+ * @throws {RequiredError}
1377
+ */
1378
+ async oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleOAuthResponseDTO>> {
1379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options);
1380
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1381
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleToken']?.[localVarOperationServerIndex]?.url;
1382
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1383
+ },
1384
+ }
1385
+ };
1386
+
1387
+ /**
1388
+ * OAuthApi - factory interface
1389
+ * @export
1390
+ */
1391
+ export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1392
+ const localVarFp = OAuthApiFp(configuration)
1393
+ return {
1394
+ /**
1395
+ *
1396
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
1397
+ * @param {*} [options] Override http request option.
1398
+ * @throws {RequiredError}
1399
+ */
1400
+ oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<GoogleOAuthResponseDTO> {
1401
+ return localVarFp.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
1402
+ },
1403
+ };
1404
+ };
1405
+
1406
+ /**
1407
+ * OAuthApi - object-oriented interface
1408
+ * @export
1409
+ * @class OAuthApi
1410
+ * @extends {BaseAPI}
1411
+ */
1412
+ export class OAuthApi extends BaseAPI {
1413
+ /**
1414
+ *
1415
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
1416
+ * @param {*} [options] Override http request option.
1417
+ * @throws {RequiredError}
1418
+ * @memberof OAuthApi
1419
+ */
1420
+ public oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig) {
1421
+ return OAuthApiFp(this.configuration).oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1422
+ }
1423
+ }
1424
+
1425
+
1426
+
1347
1427
  /**
1348
1428
  * PlansApi - axios parameter creator
1349
1429
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.0.11-beta",
3
+ "version": "1.0.12",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},