@gooday_corp/gooday-api-client 1.0.10 → 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 +411 -25
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -23,6 +23,43 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface AddDevicePayload
30
+ */
31
+ export interface AddDevicePayload {
32
+ /**
33
+ * Name of the device
34
+ * @type {string}
35
+ * @memberof AddDevicePayload
36
+ */
37
+ 'name': string;
38
+ /**
39
+ * Unique identifier for the device
40
+ * @type {string}
41
+ * @memberof AddDevicePayload
42
+ */
43
+ 'identifier': string;
44
+ /**
45
+ * Token associated with the device
46
+ * @type {string}
47
+ * @memberof AddDevicePayload
48
+ */
49
+ 'token': string;
50
+ /**
51
+ * Device os
52
+ * @type {string}
53
+ * @memberof AddDevicePayload
54
+ */
55
+ 'os': string;
56
+ /**
57
+ * Device version
58
+ * @type {string}
59
+ * @memberof AddDevicePayload
60
+ */
61
+ 'version': string;
62
+ }
26
63
  /**
27
64
  *
28
65
  * @export
@@ -79,6 +116,62 @@ export interface AssistantListResponse {
79
116
  */
80
117
  'data': Array<AssistantEntity>;
81
118
  }
119
+ /**
120
+ *
121
+ * @export
122
+ * @interface DeviceAddResponse
123
+ */
124
+ export interface DeviceAddResponse {
125
+ /**
126
+ * Status code of the response
127
+ * @type {number}
128
+ * @memberof DeviceAddResponse
129
+ */
130
+ 'statusCode': number;
131
+ /**
132
+ * Device details
133
+ * @type {DeviceEntity}
134
+ * @memberof DeviceAddResponse
135
+ */
136
+ 'data': DeviceEntity;
137
+ }
138
+ /**
139
+ *
140
+ * @export
141
+ * @interface DeviceEntity
142
+ */
143
+ export interface DeviceEntity {
144
+ /**
145
+ * Name of the device
146
+ * @type {string}
147
+ * @memberof DeviceEntity
148
+ */
149
+ 'name': string;
150
+ /**
151
+ * Unique identifier for the device
152
+ * @type {string}
153
+ * @memberof DeviceEntity
154
+ */
155
+ 'identifier': string;
156
+ /**
157
+ * Last used date of the device
158
+ * @type {string}
159
+ * @memberof DeviceEntity
160
+ */
161
+ 'lastUsed': string;
162
+ /**
163
+ * Token associated with the device
164
+ * @type {string}
165
+ * @memberof DeviceEntity
166
+ */
167
+ 'token': string;
168
+ /**
169
+ * Activation status of the device
170
+ * @type {string}
171
+ * @memberof DeviceEntity
172
+ */
173
+ 'status': string;
174
+ }
82
175
  /**
83
176
  *
84
177
  * @export
@@ -117,6 +210,70 @@ export interface GoalListResponse {
117
210
  */
118
211
  'data': Array<GoalEntity>;
119
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
+ }
245
+ /**
246
+ *
247
+ * @export
248
+ * @interface LoggedOutPayloadDTO
249
+ */
250
+ export interface LoggedOutPayloadDTO {
251
+ /**
252
+ * Unique identifier for the device
253
+ * @type {string}
254
+ * @memberof LoggedOutPayloadDTO
255
+ */
256
+ 'identifier': string;
257
+ }
258
+ /**
259
+ *
260
+ * @export
261
+ * @interface LoggedOutResponse
262
+ */
263
+ export interface LoggedOutResponse {
264
+ /**
265
+ * Status code of the response
266
+ * @type {number}
267
+ * @memberof LoggedOutResponse
268
+ */
269
+ 'statusCode': number;
270
+ /**
271
+ * Response Message
272
+ * @type {string}
273
+ * @memberof LoggedOutResponse
274
+ */
275
+ 'message': string;
276
+ }
120
277
  /**
121
278
  *
122
279
  * @export
@@ -718,11 +875,14 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
718
875
  return {
719
876
  /**
720
877
  *
878
+ * @param {SignInDto} signInDto
721
879
  * @param {*} [options] Override http request option.
722
880
  * @throws {RequiredError}
723
881
  */
724
- authControllerGoogleLogin: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
725
- const localVarPath = `/auth/google-login`;
882
+ authControllerSignIn: async (signInDto: SignInDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
883
+ // verify required parameter 'signInDto' is not null or undefined
884
+ assertParamExists('authControllerSignIn', 'signInDto', signInDto)
885
+ const localVarPath = `/v1/auth/user-login`;
726
886
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
727
887
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
728
888
  let baseOptions;
@@ -736,9 +896,12 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
736
896
 
737
897
 
738
898
 
899
+ localVarHeaderParameter['Content-Type'] = 'application/json';
900
+
739
901
  setSearchParams(localVarUrlObj, localVarQueryParameter);
740
902
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
741
903
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
904
+ localVarRequestOptions.data = serializeDataIfNeeded(signInDto, localVarRequestOptions, configuration)
742
905
 
743
906
  return {
744
907
  url: toPathString(localVarUrlObj),
@@ -747,14 +910,14 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
747
910
  },
748
911
  /**
749
912
  *
750
- * @param {SignInDto} signInDto
913
+ * @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
751
914
  * @param {*} [options] Override http request option.
752
915
  * @throws {RequiredError}
753
916
  */
754
- authControllerSignIn: async (signInDto: SignInDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
755
- // verify required parameter 'signInDto' is not null or undefined
756
- assertParamExists('authControllerSignIn', 'signInDto', signInDto)
757
- const localVarPath = `/v1/auth/user-login`;
917
+ authControllerSignOut: async (loggedOutPayloadDTO: LoggedOutPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
918
+ // verify required parameter 'loggedOutPayloadDTO' is not null or undefined
919
+ assertParamExists('authControllerSignOut', 'loggedOutPayloadDTO', loggedOutPayloadDTO)
920
+ const localVarPath = `/v1/auth/user-logout`;
758
921
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
759
922
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
760
923
  let baseOptions;
@@ -766,6 +929,10 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
766
929
  const localVarHeaderParameter = {} as any;
767
930
  const localVarQueryParameter = {} as any;
768
931
 
932
+ // authentication bearer required
933
+ // http bearer authentication required
934
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
935
+
769
936
 
770
937
 
771
938
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -773,7 +940,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
773
940
  setSearchParams(localVarUrlObj, localVarQueryParameter);
774
941
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
775
942
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
776
- localVarRequestOptions.data = serializeDataIfNeeded(signInDto, localVarRequestOptions, configuration)
943
+ localVarRequestOptions.data = serializeDataIfNeeded(loggedOutPayloadDTO, localVarRequestOptions, configuration)
777
944
 
778
945
  return {
779
946
  url: toPathString(localVarUrlObj),
@@ -827,25 +994,26 @@ export const AuthApiFp = function(configuration?: Configuration) {
827
994
  return {
828
995
  /**
829
996
  *
997
+ * @param {SignInDto} signInDto
830
998
  * @param {*} [options] Override http request option.
831
999
  * @throws {RequiredError}
832
1000
  */
833
- async authControllerGoogleLogin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
834
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGoogleLogin(options);
1001
+ async authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignInResponseDto>> {
1002
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignIn(signInDto, options);
835
1003
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
836
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerGoogleLogin']?.[localVarOperationServerIndex]?.url;
1004
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignIn']?.[localVarOperationServerIndex]?.url;
837
1005
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
838
1006
  },
839
1007
  /**
840
1008
  *
841
- * @param {SignInDto} signInDto
1009
+ * @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
842
1010
  * @param {*} [options] Override http request option.
843
1011
  * @throws {RequiredError}
844
1012
  */
845
- async authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignInResponseDto>> {
846
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignIn(signInDto, options);
1013
+ async authControllerSignOut(loggedOutPayloadDTO: LoggedOutPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoggedOutResponse>> {
1014
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignOut(loggedOutPayloadDTO, options);
847
1015
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
848
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignIn']?.[localVarOperationServerIndex]?.url;
1016
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignOut']?.[localVarOperationServerIndex]?.url;
849
1017
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
850
1018
  },
851
1019
  /**
@@ -872,20 +1040,21 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
872
1040
  return {
873
1041
  /**
874
1042
  *
1043
+ * @param {SignInDto} signInDto
875
1044
  * @param {*} [options] Override http request option.
876
1045
  * @throws {RequiredError}
877
1046
  */
878
- authControllerGoogleLogin(options?: RawAxiosRequestConfig): AxiosPromise<void> {
879
- return localVarFp.authControllerGoogleLogin(options).then((request) => request(axios, basePath));
1047
+ authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): AxiosPromise<SignInResponseDto> {
1048
+ return localVarFp.authControllerSignIn(signInDto, options).then((request) => request(axios, basePath));
880
1049
  },
881
1050
  /**
882
1051
  *
883
- * @param {SignInDto} signInDto
1052
+ * @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
884
1053
  * @param {*} [options] Override http request option.
885
1054
  * @throws {RequiredError}
886
1055
  */
887
- authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): AxiosPromise<SignInResponseDto> {
888
- return localVarFp.authControllerSignIn(signInDto, options).then((request) => request(axios, basePath));
1056
+ authControllerSignOut(loggedOutPayloadDTO: LoggedOutPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<LoggedOutResponse> {
1057
+ return localVarFp.authControllerSignOut(loggedOutPayloadDTO, options).then((request) => request(axios, basePath));
889
1058
  },
890
1059
  /**
891
1060
  *
@@ -908,23 +1077,24 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
908
1077
  export class AuthApi extends BaseAPI {
909
1078
  /**
910
1079
  *
1080
+ * @param {SignInDto} signInDto
911
1081
  * @param {*} [options] Override http request option.
912
1082
  * @throws {RequiredError}
913
1083
  * @memberof AuthApi
914
1084
  */
915
- public authControllerGoogleLogin(options?: RawAxiosRequestConfig) {
916
- return AuthApiFp(this.configuration).authControllerGoogleLogin(options).then((request) => request(this.axios, this.basePath));
1085
+ public authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig) {
1086
+ return AuthApiFp(this.configuration).authControllerSignIn(signInDto, options).then((request) => request(this.axios, this.basePath));
917
1087
  }
918
1088
 
919
1089
  /**
920
1090
  *
921
- * @param {SignInDto} signInDto
1091
+ * @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
922
1092
  * @param {*} [options] Override http request option.
923
1093
  * @throws {RequiredError}
924
1094
  * @memberof AuthApi
925
1095
  */
926
- public authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig) {
927
- return AuthApiFp(this.configuration).authControllerSignIn(signInDto, options).then((request) => request(this.axios, this.basePath));
1096
+ public authControllerSignOut(loggedOutPayloadDTO: LoggedOutPayloadDTO, options?: RawAxiosRequestConfig) {
1097
+ return AuthApiFp(this.configuration).authControllerSignOut(loggedOutPayloadDTO, options).then((request) => request(this.axios, this.basePath));
928
1098
  }
929
1099
 
930
1100
  /**
@@ -941,6 +1111,116 @@ export class AuthApi extends BaseAPI {
941
1111
 
942
1112
 
943
1113
 
1114
+ /**
1115
+ * DeviceApi - axios parameter creator
1116
+ * @export
1117
+ */
1118
+ export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
1119
+ return {
1120
+ /**
1121
+ *
1122
+ * @param {AddDevicePayload} addDevicePayload
1123
+ * @param {*} [options] Override http request option.
1124
+ * @throws {RequiredError}
1125
+ */
1126
+ deviceControllerAddDevice: async (addDevicePayload: AddDevicePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1127
+ // verify required parameter 'addDevicePayload' is not null or undefined
1128
+ assertParamExists('deviceControllerAddDevice', 'addDevicePayload', addDevicePayload)
1129
+ const localVarPath = `/v1/device`;
1130
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1131
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1132
+ let baseOptions;
1133
+ if (configuration) {
1134
+ baseOptions = configuration.baseOptions;
1135
+ }
1136
+
1137
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1138
+ const localVarHeaderParameter = {} as any;
1139
+ const localVarQueryParameter = {} as any;
1140
+
1141
+ // authentication bearer required
1142
+ // http bearer authentication required
1143
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1144
+
1145
+
1146
+
1147
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1148
+
1149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1151
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1152
+ localVarRequestOptions.data = serializeDataIfNeeded(addDevicePayload, localVarRequestOptions, configuration)
1153
+
1154
+ return {
1155
+ url: toPathString(localVarUrlObj),
1156
+ options: localVarRequestOptions,
1157
+ };
1158
+ },
1159
+ }
1160
+ };
1161
+
1162
+ /**
1163
+ * DeviceApi - functional programming interface
1164
+ * @export
1165
+ */
1166
+ export const DeviceApiFp = function(configuration?: Configuration) {
1167
+ const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
1168
+ return {
1169
+ /**
1170
+ *
1171
+ * @param {AddDevicePayload} addDevicePayload
1172
+ * @param {*} [options] Override http request option.
1173
+ * @throws {RequiredError}
1174
+ */
1175
+ async deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceAddResponse>> {
1176
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deviceControllerAddDevice(addDevicePayload, options);
1177
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1178
+ const localVarOperationServerBasePath = operationServerMap['DeviceApi.deviceControllerAddDevice']?.[localVarOperationServerIndex]?.url;
1179
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1180
+ },
1181
+ }
1182
+ };
1183
+
1184
+ /**
1185
+ * DeviceApi - factory interface
1186
+ * @export
1187
+ */
1188
+ export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1189
+ const localVarFp = DeviceApiFp(configuration)
1190
+ return {
1191
+ /**
1192
+ *
1193
+ * @param {AddDevicePayload} addDevicePayload
1194
+ * @param {*} [options] Override http request option.
1195
+ * @throws {RequiredError}
1196
+ */
1197
+ deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): AxiosPromise<DeviceAddResponse> {
1198
+ return localVarFp.deviceControllerAddDevice(addDevicePayload, options).then((request) => request(axios, basePath));
1199
+ },
1200
+ };
1201
+ };
1202
+
1203
+ /**
1204
+ * DeviceApi - object-oriented interface
1205
+ * @export
1206
+ * @class DeviceApi
1207
+ * @extends {BaseAPI}
1208
+ */
1209
+ export class DeviceApi extends BaseAPI {
1210
+ /**
1211
+ *
1212
+ * @param {AddDevicePayload} addDevicePayload
1213
+ * @param {*} [options] Override http request option.
1214
+ * @throws {RequiredError}
1215
+ * @memberof DeviceApi
1216
+ */
1217
+ public deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig) {
1218
+ return DeviceApiFp(this.configuration).deviceControllerAddDevice(addDevicePayload, options).then((request) => request(this.axios, this.basePath));
1219
+ }
1220
+ }
1221
+
1222
+
1223
+
944
1224
  /**
945
1225
  * GoalsApi - axios parameter creator
946
1226
  * @export
@@ -1038,6 +1318,112 @@ export class GoalsApi extends BaseAPI {
1038
1318
 
1039
1319
 
1040
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
+
1041
1427
  /**
1042
1428
  * PlansApi - axios parameter creator
1043
1429
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},