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

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 +671 -10
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -96,6 +96,12 @@ export interface AssistantEntity {
96
96
  * @memberof AssistantEntity
97
97
  */
98
98
  'configuration': object;
99
+ /**
100
+ * Attributes object for the assistant
101
+ * @type {object}
102
+ * @memberof AssistantEntity
103
+ */
104
+ 'attributes': object;
99
105
  }
100
106
  /**
101
107
  *
@@ -172,6 +178,57 @@ export interface DeviceEntity {
172
178
  */
173
179
  'status': string;
174
180
  }
181
+ /**
182
+ *
183
+ * @export
184
+ * @interface FileNameUploadDTO
185
+ */
186
+ export interface FileNameUploadDTO {
187
+ /**
188
+ * A message providing additional details about the response
189
+ * @type {string}
190
+ * @memberof FileNameUploadDTO
191
+ */
192
+ 'fileName': string;
193
+ /**
194
+ * A name of bucket where you have to upload the image
195
+ * @type {string}
196
+ * @memberof FileNameUploadDTO
197
+ */
198
+ 'bucketName': string;
199
+ }
200
+ /**
201
+ *
202
+ * @export
203
+ * @interface ForgotPasswordPayloadDTO
204
+ */
205
+ export interface ForgotPasswordPayloadDTO {
206
+ /**
207
+ * Email
208
+ * @type {string}
209
+ * @memberof ForgotPasswordPayloadDTO
210
+ */
211
+ 'email': string;
212
+ }
213
+ /**
214
+ *
215
+ * @export
216
+ * @interface ForgotPasswordResponseDTO
217
+ */
218
+ export interface ForgotPasswordResponseDTO {
219
+ /**
220
+ * statuscCode
221
+ * @type {number}
222
+ * @memberof ForgotPasswordResponseDTO
223
+ */
224
+ 'statusCode': number;
225
+ /**
226
+ * message
227
+ * @type {string}
228
+ * @memberof ForgotPasswordResponseDTO
229
+ */
230
+ 'message': string;
231
+ }
175
232
  /**
176
233
  *
177
234
  * @export
@@ -210,6 +267,38 @@ export interface GoalListResponse {
210
267
  */
211
268
  'data': Array<GoalEntity>;
212
269
  }
270
+ /**
271
+ *
272
+ * @export
273
+ * @interface GoogleOAuthResponseDTO
274
+ */
275
+ export interface GoogleOAuthResponseDTO {
276
+ /**
277
+ * statuscCode
278
+ * @type {number}
279
+ * @memberof GoogleOAuthResponseDTO
280
+ */
281
+ 'statusCode': number;
282
+ /**
283
+ * User
284
+ * @type {SignupResponse}
285
+ * @memberof GoogleOAuthResponseDTO
286
+ */
287
+ 'data': SignupResponse;
288
+ }
289
+ /**
290
+ *
291
+ * @export
292
+ * @interface GoogleVerificationPayloadDTO
293
+ */
294
+ export interface GoogleVerificationPayloadDTO {
295
+ /**
296
+ * The ID token provided by Google after authentication
297
+ * @type {string}
298
+ * @memberof GoogleVerificationPayloadDTO
299
+ */
300
+ 'token': string;
301
+ }
213
302
  /**
214
303
  *
215
304
  * @export
@@ -261,6 +350,44 @@ export interface MyAssistantResponse {
261
350
  */
262
351
  'data': AssistantEntity;
263
352
  }
353
+ /**
354
+ *
355
+ * @export
356
+ * @interface NewPasswordPayloadDTO
357
+ */
358
+ export interface NewPasswordPayloadDTO {
359
+ /**
360
+ * email
361
+ * @type {string}
362
+ * @memberof NewPasswordPayloadDTO
363
+ */
364
+ 'email': string;
365
+ /**
366
+ * New password User
367
+ * @type {string}
368
+ * @memberof NewPasswordPayloadDTO
369
+ */
370
+ 'password': string;
371
+ }
372
+ /**
373
+ *
374
+ * @export
375
+ * @interface NewPasswordResponseDTO
376
+ */
377
+ export interface NewPasswordResponseDTO {
378
+ /**
379
+ * statuscCode
380
+ * @type {number}
381
+ * @memberof NewPasswordResponseDTO
382
+ */
383
+ 'statusCode': number;
384
+ /**
385
+ * message
386
+ * @type {string}
387
+ * @memberof NewPasswordResponseDTO
388
+ */
389
+ 'message': string;
390
+ }
264
391
  /**
265
392
  *
266
393
  * @export
@@ -439,6 +566,44 @@ export const PriceEntityIntervalEnum = {
439
566
 
440
567
  export type PriceEntityIntervalEnum = typeof PriceEntityIntervalEnum[keyof typeof PriceEntityIntervalEnum];
441
568
 
569
+ /**
570
+ *
571
+ * @export
572
+ * @interface ResetPasswordPayloadDTO
573
+ */
574
+ export interface ResetPasswordPayloadDTO {
575
+ /**
576
+ * Old password for the user
577
+ * @type {string}
578
+ * @memberof ResetPasswordPayloadDTO
579
+ */
580
+ 'currentPasword': string;
581
+ /**
582
+ * The New password for the user account
583
+ * @type {string}
584
+ * @memberof ResetPasswordPayloadDTO
585
+ */
586
+ 'newPassword': string;
587
+ }
588
+ /**
589
+ *
590
+ * @export
591
+ * @interface ResetPasswordResponseDTO
592
+ */
593
+ export interface ResetPasswordResponseDTO {
594
+ /**
595
+ * statuscCode
596
+ * @type {number}
597
+ * @memberof ResetPasswordResponseDTO
598
+ */
599
+ 'statusCode': number;
600
+ /**
601
+ * message
602
+ * @type {string}
603
+ * @memberof ResetPasswordResponseDTO
604
+ */
605
+ 'message': string;
606
+ }
442
607
  /**
443
608
  *
444
609
  * @export
@@ -446,7 +611,7 @@ export type PriceEntityIntervalEnum = typeof PriceEntityIntervalEnum[keyof typeo
446
611
  */
447
612
  export interface SignInDto {
448
613
  /**
449
- * Email of user
614
+ * Email
450
615
  * @type {string}
451
616
  * @memberof SignInDto
452
617
  */
@@ -502,6 +667,25 @@ export interface SignInResponseDto {
502
667
  */
503
668
  'data': SignInResponse;
504
669
  }
670
+ /**
671
+ *
672
+ * @export
673
+ * @interface SignedUrlResponseDTO
674
+ */
675
+ export interface SignedUrlResponseDTO {
676
+ /**
677
+ * Status code of the response
678
+ * @type {number}
679
+ * @memberof SignedUrlResponseDTO
680
+ */
681
+ 'statusCode': number;
682
+ /**
683
+ * A pre-signed Url from the Google..
684
+ * @type {string}
685
+ * @memberof SignedUrlResponseDTO
686
+ */
687
+ 'signedUrl': string;
688
+ }
505
689
  /**
506
690
  *
507
691
  * @export
@@ -526,6 +710,12 @@ export interface SignupDto {
526
710
  * @memberof SignupDto
527
711
  */
528
712
  'email': string;
713
+ /**
714
+ * User Profile Name
715
+ * @type {string}
716
+ * @memberof SignupDto
717
+ */
718
+ 'profile': string;
529
719
  /**
530
720
  * The password for the user account
531
721
  * @type {string}
@@ -601,6 +791,12 @@ export interface UserEntity {
601
791
  * @memberof UserEntity
602
792
  */
603
793
  'lastName': string;
794
+ /**
795
+ * Profile Picture of User
796
+ * @type {string}
797
+ * @memberof UserEntity
798
+ */
799
+ 'profile': string;
604
800
  /**
605
801
  * Email address of the user
606
802
  * @type {string}
@@ -843,11 +1039,84 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
843
1039
  return {
844
1040
  /**
845
1041
  *
1042
+ * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1043
+ * @param {*} [options] Override http request option.
1044
+ * @throws {RequiredError}
1045
+ */
1046
+ authControllerCreateNewPassword: async (newPasswordPayloadDTO: NewPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1047
+ // verify required parameter 'newPasswordPayloadDTO' is not null or undefined
1048
+ assertParamExists('authControllerCreateNewPassword', 'newPasswordPayloadDTO', newPasswordPayloadDTO)
1049
+ const localVarPath = `/v1/auth/new-password`;
1050
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1051
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1052
+ let baseOptions;
1053
+ if (configuration) {
1054
+ baseOptions = configuration.baseOptions;
1055
+ }
1056
+
1057
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1058
+ const localVarHeaderParameter = {} as any;
1059
+ const localVarQueryParameter = {} as any;
1060
+
1061
+
1062
+
1063
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1064
+
1065
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1066
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1067
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1068
+ localVarRequestOptions.data = serializeDataIfNeeded(newPasswordPayloadDTO, localVarRequestOptions, configuration)
1069
+
1070
+ return {
1071
+ url: toPathString(localVarUrlObj),
1072
+ options: localVarRequestOptions,
1073
+ };
1074
+ },
1075
+ /**
1076
+ *
1077
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1078
+ * @param {*} [options] Override http request option.
1079
+ * @throws {RequiredError}
1080
+ */
1081
+ authControllerForgotPassword: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1082
+ // verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
1083
+ assertParamExists('authControllerForgotPassword', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
1084
+ const localVarPath = `/v1/auth/forgot-password`;
1085
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1086
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1087
+ let baseOptions;
1088
+ if (configuration) {
1089
+ baseOptions = configuration.baseOptions;
1090
+ }
1091
+
1092
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1093
+ const localVarHeaderParameter = {} as any;
1094
+ const localVarQueryParameter = {} as any;
1095
+
1096
+
1097
+
1098
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1099
+
1100
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1101
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1102
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1103
+ localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
1104
+
1105
+ return {
1106
+ url: toPathString(localVarUrlObj),
1107
+ options: localVarRequestOptions,
1108
+ };
1109
+ },
1110
+ /**
1111
+ *
1112
+ * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
846
1113
  * @param {*} [options] Override http request option.
847
1114
  * @throws {RequiredError}
848
1115
  */
849
- authControllerGoogleLogin: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
850
- const localVarPath = `/auth/google-login`;
1116
+ authControllerResetPassword: async (resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1117
+ // verify required parameter 'resetPasswordPayloadDTO' is not null or undefined
1118
+ assertParamExists('authControllerResetPassword', 'resetPasswordPayloadDTO', resetPasswordPayloadDTO)
1119
+ const localVarPath = `/v1/auth/reset-password`;
851
1120
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
852
1121
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
853
1122
  let baseOptions;
@@ -859,11 +1128,18 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
859
1128
  const localVarHeaderParameter = {} as any;
860
1129
  const localVarQueryParameter = {} as any;
861
1130
 
1131
+ // authentication bearer required
1132
+ // http bearer authentication required
1133
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1134
+
862
1135
 
863
1136
 
1137
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1138
+
864
1139
  setSearchParams(localVarUrlObj, localVarQueryParameter);
865
1140
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
866
1141
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1142
+ localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordPayloadDTO, localVarRequestOptions, configuration)
867
1143
 
868
1144
  return {
869
1145
  url: toPathString(localVarUrlObj),
@@ -991,13 +1267,38 @@ export const AuthApiFp = function(configuration?: Configuration) {
991
1267
  return {
992
1268
  /**
993
1269
  *
1270
+ * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1271
+ * @param {*} [options] Override http request option.
1272
+ * @throws {RequiredError}
1273
+ */
1274
+ async authControllerCreateNewPassword(newPasswordPayloadDTO: NewPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NewPasswordResponseDTO>> {
1275
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerCreateNewPassword(newPasswordPayloadDTO, options);
1276
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1277
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerCreateNewPassword']?.[localVarOperationServerIndex]?.url;
1278
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1279
+ },
1280
+ /**
1281
+ *
1282
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
994
1283
  * @param {*} [options] Override http request option.
995
1284
  * @throws {RequiredError}
996
1285
  */
997
- async authControllerGoogleLogin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
998
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGoogleLogin(options);
1286
+ async authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ForgotPasswordResponseDTO>> {
1287
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerForgotPassword(forgotPasswordPayloadDTO, options);
999
1288
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1000
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerGoogleLogin']?.[localVarOperationServerIndex]?.url;
1289
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerForgotPassword']?.[localVarOperationServerIndex]?.url;
1290
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1291
+ },
1292
+ /**
1293
+ *
1294
+ * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
1295
+ * @param {*} [options] Override http request option.
1296
+ * @throws {RequiredError}
1297
+ */
1298
+ async authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResetPasswordResponseDTO>> {
1299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResetPassword(resetPasswordPayloadDTO, options);
1300
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1301
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResetPassword']?.[localVarOperationServerIndex]?.url;
1001
1302
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1002
1303
  },
1003
1304
  /**
@@ -1048,11 +1349,30 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1048
1349
  return {
1049
1350
  /**
1050
1351
  *
1352
+ * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1353
+ * @param {*} [options] Override http request option.
1354
+ * @throws {RequiredError}
1355
+ */
1356
+ authControllerCreateNewPassword(newPasswordPayloadDTO: NewPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<NewPasswordResponseDTO> {
1357
+ return localVarFp.authControllerCreateNewPassword(newPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1358
+ },
1359
+ /**
1360
+ *
1361
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1362
+ * @param {*} [options] Override http request option.
1363
+ * @throws {RequiredError}
1364
+ */
1365
+ authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
1366
+ return localVarFp.authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1367
+ },
1368
+ /**
1369
+ *
1370
+ * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
1051
1371
  * @param {*} [options] Override http request option.
1052
1372
  * @throws {RequiredError}
1053
1373
  */
1054
- authControllerGoogleLogin(options?: RawAxiosRequestConfig): AxiosPromise<void> {
1055
- return localVarFp.authControllerGoogleLogin(options).then((request) => request(axios, basePath));
1374
+ authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ResetPasswordResponseDTO> {
1375
+ return localVarFp.authControllerResetPassword(resetPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1056
1376
  },
1057
1377
  /**
1058
1378
  *
@@ -1093,12 +1413,35 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1093
1413
  export class AuthApi extends BaseAPI {
1094
1414
  /**
1095
1415
  *
1416
+ * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1417
+ * @param {*} [options] Override http request option.
1418
+ * @throws {RequiredError}
1419
+ * @memberof AuthApi
1420
+ */
1421
+ public authControllerCreateNewPassword(newPasswordPayloadDTO: NewPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
1422
+ return AuthApiFp(this.configuration).authControllerCreateNewPassword(newPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1423
+ }
1424
+
1425
+ /**
1426
+ *
1427
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1428
+ * @param {*} [options] Override http request option.
1429
+ * @throws {RequiredError}
1430
+ * @memberof AuthApi
1431
+ */
1432
+ public authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
1433
+ return AuthApiFp(this.configuration).authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1434
+ }
1435
+
1436
+ /**
1437
+ *
1438
+ * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
1096
1439
  * @param {*} [options] Override http request option.
1097
1440
  * @throws {RequiredError}
1098
1441
  * @memberof AuthApi
1099
1442
  */
1100
- public authControllerGoogleLogin(options?: RawAxiosRequestConfig) {
1101
- return AuthApiFp(this.configuration).authControllerGoogleLogin(options).then((request) => request(this.axios, this.basePath));
1443
+ public authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
1444
+ return AuthApiFp(this.configuration).authControllerResetPassword(resetPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1102
1445
  }
1103
1446
 
1104
1447
  /**
@@ -1247,6 +1590,112 @@ export class DeviceApi extends BaseAPI {
1247
1590
 
1248
1591
 
1249
1592
 
1593
+ /**
1594
+ * GcsApi - axios parameter creator
1595
+ * @export
1596
+ */
1597
+ export const GcsApiAxiosParamCreator = function (configuration?: Configuration) {
1598
+ return {
1599
+ /**
1600
+ *
1601
+ * @param {FileNameUploadDTO} fileNameUploadDTO
1602
+ * @param {*} [options] Override http request option.
1603
+ * @throws {RequiredError}
1604
+ */
1605
+ gcpControllerUploadFile: async (fileNameUploadDTO: FileNameUploadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1606
+ // verify required parameter 'fileNameUploadDTO' is not null or undefined
1607
+ assertParamExists('gcpControllerUploadFile', 'fileNameUploadDTO', fileNameUploadDTO)
1608
+ const localVarPath = `/v1/gcs/file`;
1609
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1610
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1611
+ let baseOptions;
1612
+ if (configuration) {
1613
+ baseOptions = configuration.baseOptions;
1614
+ }
1615
+
1616
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1617
+ const localVarHeaderParameter = {} as any;
1618
+ const localVarQueryParameter = {} as any;
1619
+
1620
+
1621
+
1622
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1623
+
1624
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1625
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1626
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1627
+ localVarRequestOptions.data = serializeDataIfNeeded(fileNameUploadDTO, localVarRequestOptions, configuration)
1628
+
1629
+ return {
1630
+ url: toPathString(localVarUrlObj),
1631
+ options: localVarRequestOptions,
1632
+ };
1633
+ },
1634
+ }
1635
+ };
1636
+
1637
+ /**
1638
+ * GcsApi - functional programming interface
1639
+ * @export
1640
+ */
1641
+ export const GcsApiFp = function(configuration?: Configuration) {
1642
+ const localVarAxiosParamCreator = GcsApiAxiosParamCreator(configuration)
1643
+ return {
1644
+ /**
1645
+ *
1646
+ * @param {FileNameUploadDTO} fileNameUploadDTO
1647
+ * @param {*} [options] Override http request option.
1648
+ * @throws {RequiredError}
1649
+ */
1650
+ async gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignedUrlResponseDTO>> {
1651
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gcpControllerUploadFile(fileNameUploadDTO, options);
1652
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1653
+ const localVarOperationServerBasePath = operationServerMap['GcsApi.gcpControllerUploadFile']?.[localVarOperationServerIndex]?.url;
1654
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1655
+ },
1656
+ }
1657
+ };
1658
+
1659
+ /**
1660
+ * GcsApi - factory interface
1661
+ * @export
1662
+ */
1663
+ export const GcsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1664
+ const localVarFp = GcsApiFp(configuration)
1665
+ return {
1666
+ /**
1667
+ *
1668
+ * @param {FileNameUploadDTO} fileNameUploadDTO
1669
+ * @param {*} [options] Override http request option.
1670
+ * @throws {RequiredError}
1671
+ */
1672
+ gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): AxiosPromise<SignedUrlResponseDTO> {
1673
+ return localVarFp.gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(axios, basePath));
1674
+ },
1675
+ };
1676
+ };
1677
+
1678
+ /**
1679
+ * GcsApi - object-oriented interface
1680
+ * @export
1681
+ * @class GcsApi
1682
+ * @extends {BaseAPI}
1683
+ */
1684
+ export class GcsApi extends BaseAPI {
1685
+ /**
1686
+ *
1687
+ * @param {FileNameUploadDTO} fileNameUploadDTO
1688
+ * @param {*} [options] Override http request option.
1689
+ * @throws {RequiredError}
1690
+ * @memberof GcsApi
1691
+ */
1692
+ public gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig) {
1693
+ return GcsApiFp(this.configuration).gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(this.axios, this.basePath));
1694
+ }
1695
+ }
1696
+
1697
+
1698
+
1250
1699
  /**
1251
1700
  * GoalsApi - axios parameter creator
1252
1701
  * @export
@@ -1344,6 +1793,112 @@ export class GoalsApi extends BaseAPI {
1344
1793
 
1345
1794
 
1346
1795
 
1796
+ /**
1797
+ * OAuthApi - axios parameter creator
1798
+ * @export
1799
+ */
1800
+ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
1801
+ return {
1802
+ /**
1803
+ *
1804
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
1805
+ * @param {*} [options] Override http request option.
1806
+ * @throws {RequiredError}
1807
+ */
1808
+ oAuthControllerValidateGoogleToken: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1809
+ // verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
1810
+ assertParamExists('oAuthControllerValidateGoogleToken', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
1811
+ const localVarPath = `/v1/oauth/google`;
1812
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1813
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1814
+ let baseOptions;
1815
+ if (configuration) {
1816
+ baseOptions = configuration.baseOptions;
1817
+ }
1818
+
1819
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1820
+ const localVarHeaderParameter = {} as any;
1821
+ const localVarQueryParameter = {} as any;
1822
+
1823
+
1824
+
1825
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1826
+
1827
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1828
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1829
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1830
+ localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
1831
+
1832
+ return {
1833
+ url: toPathString(localVarUrlObj),
1834
+ options: localVarRequestOptions,
1835
+ };
1836
+ },
1837
+ }
1838
+ };
1839
+
1840
+ /**
1841
+ * OAuthApi - functional programming interface
1842
+ * @export
1843
+ */
1844
+ export const OAuthApiFp = function(configuration?: Configuration) {
1845
+ const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
1846
+ return {
1847
+ /**
1848
+ *
1849
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
1850
+ * @param {*} [options] Override http request option.
1851
+ * @throws {RequiredError}
1852
+ */
1853
+ async oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleOAuthResponseDTO>> {
1854
+ const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options);
1855
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1856
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleToken']?.[localVarOperationServerIndex]?.url;
1857
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1858
+ },
1859
+ }
1860
+ };
1861
+
1862
+ /**
1863
+ * OAuthApi - factory interface
1864
+ * @export
1865
+ */
1866
+ export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1867
+ const localVarFp = OAuthApiFp(configuration)
1868
+ return {
1869
+ /**
1870
+ *
1871
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
1872
+ * @param {*} [options] Override http request option.
1873
+ * @throws {RequiredError}
1874
+ */
1875
+ oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<GoogleOAuthResponseDTO> {
1876
+ return localVarFp.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
1877
+ },
1878
+ };
1879
+ };
1880
+
1881
+ /**
1882
+ * OAuthApi - object-oriented interface
1883
+ * @export
1884
+ * @class OAuthApi
1885
+ * @extends {BaseAPI}
1886
+ */
1887
+ export class OAuthApi extends BaseAPI {
1888
+ /**
1889
+ *
1890
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
1891
+ * @param {*} [options] Override http request option.
1892
+ * @throws {RequiredError}
1893
+ * @memberof OAuthApi
1894
+ */
1895
+ public oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig) {
1896
+ return OAuthApiFp(this.configuration).oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1897
+ }
1898
+ }
1899
+
1900
+
1901
+
1347
1902
  /**
1348
1903
  * PlansApi - axios parameter creator
1349
1904
  * @export
@@ -1441,6 +1996,112 @@ export class PlansApi extends BaseAPI {
1441
1996
 
1442
1997
 
1443
1998
 
1999
+ /**
2000
+ * PostApi - axios parameter creator
2001
+ * @export
2002
+ */
2003
+ export const PostApiAxiosParamCreator = function (configuration?: Configuration) {
2004
+ return {
2005
+ /**
2006
+ *
2007
+ * @param {FileNameUploadDTO} fileNameUploadDTO
2008
+ * @param {*} [options] Override http request option.
2009
+ * @throws {RequiredError}
2010
+ */
2011
+ gcpControllerUploadFile: async (fileNameUploadDTO: FileNameUploadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2012
+ // verify required parameter 'fileNameUploadDTO' is not null or undefined
2013
+ assertParamExists('gcpControllerUploadFile', 'fileNameUploadDTO', fileNameUploadDTO)
2014
+ const localVarPath = `/v1/gcs/file`;
2015
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2016
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2017
+ let baseOptions;
2018
+ if (configuration) {
2019
+ baseOptions = configuration.baseOptions;
2020
+ }
2021
+
2022
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2023
+ const localVarHeaderParameter = {} as any;
2024
+ const localVarQueryParameter = {} as any;
2025
+
2026
+
2027
+
2028
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2029
+
2030
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2031
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2032
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2033
+ localVarRequestOptions.data = serializeDataIfNeeded(fileNameUploadDTO, localVarRequestOptions, configuration)
2034
+
2035
+ return {
2036
+ url: toPathString(localVarUrlObj),
2037
+ options: localVarRequestOptions,
2038
+ };
2039
+ },
2040
+ }
2041
+ };
2042
+
2043
+ /**
2044
+ * PostApi - functional programming interface
2045
+ * @export
2046
+ */
2047
+ export const PostApiFp = function(configuration?: Configuration) {
2048
+ const localVarAxiosParamCreator = PostApiAxiosParamCreator(configuration)
2049
+ return {
2050
+ /**
2051
+ *
2052
+ * @param {FileNameUploadDTO} fileNameUploadDTO
2053
+ * @param {*} [options] Override http request option.
2054
+ * @throws {RequiredError}
2055
+ */
2056
+ async gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignedUrlResponseDTO>> {
2057
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gcpControllerUploadFile(fileNameUploadDTO, options);
2058
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2059
+ const localVarOperationServerBasePath = operationServerMap['PostApi.gcpControllerUploadFile']?.[localVarOperationServerIndex]?.url;
2060
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2061
+ },
2062
+ }
2063
+ };
2064
+
2065
+ /**
2066
+ * PostApi - factory interface
2067
+ * @export
2068
+ */
2069
+ export const PostApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2070
+ const localVarFp = PostApiFp(configuration)
2071
+ return {
2072
+ /**
2073
+ *
2074
+ * @param {FileNameUploadDTO} fileNameUploadDTO
2075
+ * @param {*} [options] Override http request option.
2076
+ * @throws {RequiredError}
2077
+ */
2078
+ gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): AxiosPromise<SignedUrlResponseDTO> {
2079
+ return localVarFp.gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(axios, basePath));
2080
+ },
2081
+ };
2082
+ };
2083
+
2084
+ /**
2085
+ * PostApi - object-oriented interface
2086
+ * @export
2087
+ * @class PostApi
2088
+ * @extends {BaseAPI}
2089
+ */
2090
+ export class PostApi extends BaseAPI {
2091
+ /**
2092
+ *
2093
+ * @param {FileNameUploadDTO} fileNameUploadDTO
2094
+ * @param {*} [options] Override http request option.
2095
+ * @throws {RequiredError}
2096
+ * @memberof PostApi
2097
+ */
2098
+ public gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig) {
2099
+ return PostApiFp(this.configuration).gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(this.axios, this.basePath));
2100
+ }
2101
+ }
2102
+
2103
+
2104
+
1444
2105
  /**
1445
2106
  * UsersApi - axios parameter creator
1446
2107
  * @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.13",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},