@gooday_corp/gooday-api-client 1.0.15-alpha → 1.0.16-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.
Files changed (2) hide show
  1. package/api.ts +100 -18
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -229,7 +229,7 @@ export interface FileNameUploadDTO {
229
229
  */
230
230
  export interface ForgotPasswordPayloadDTO {
231
231
  /**
232
- * Email
232
+ * User Email
233
233
  * @type {string}
234
234
  * @memberof ForgotPasswordPayloadDTO
235
235
  */
@@ -432,11 +432,11 @@ export interface OnBoardingDTO {
432
432
  */
433
433
  'assistant'?: string;
434
434
  /**
435
- * Plan
436
- * @type {string}
435
+ *
436
+ * @type {UserPlanDTO}
437
437
  * @memberof OnBoardingDTO
438
438
  */
439
- 'plan'?: string;
439
+ 'plan'?: UserPlanDTO;
440
440
  /**
441
441
  * Date of Birth
442
442
  * @type {string}
@@ -740,12 +740,6 @@ export interface SignupDto {
740
740
  * @type {string}
741
741
  * @memberof SignupDto
742
742
  */
743
- 'profile': string;
744
- /**
745
- * The password for the user account
746
- * @type {string}
747
- * @memberof SignupDto
748
- */
749
743
  'password': string;
750
744
  }
751
745
  /**
@@ -835,12 +829,6 @@ export interface UserEntity {
835
829
  * @memberof UserEntity
836
830
  */
837
831
  'lastName': string;
838
- /**
839
- * Profile Picture of User
840
- * @type {string}
841
- * @memberof UserEntity
842
- */
843
- 'profile': string;
844
832
  /**
845
833
  * Email address of the user
846
834
  * @type {string}
@@ -885,10 +873,10 @@ export interface UserEntity {
885
873
  'goals': Array<string>;
886
874
  /**
887
875
  * Plan subscribed by the user
888
- * @type {string}
876
+ * @type {UserPlanDTO}
889
877
  * @memberof UserEntity
890
878
  */
891
- 'plan': string;
879
+ 'plan': UserPlanDTO;
892
880
  /**
893
881
  * Action user has to perform
894
882
  * @type {Array<string>}
@@ -915,6 +903,33 @@ export interface UserMeDTO {
915
903
  */
916
904
  'data': UserEntity;
917
905
  }
906
+ /**
907
+ *
908
+ * @export
909
+ * @interface UserPlanDTO
910
+ */
911
+ export interface UserPlanDTO {
912
+ /**
913
+ * id
914
+ * @type {string}
915
+ * @memberof UserPlanDTO
916
+ */
917
+ 'name': UserPlanDTONameEnum;
918
+ /**
919
+ * id
920
+ * @type {string}
921
+ * @memberof UserPlanDTO
922
+ */
923
+ 'id': string;
924
+ }
925
+
926
+ export const UserPlanDTONameEnum = {
927
+ Free: 'free',
928
+ Pro: 'pro'
929
+ } as const;
930
+
931
+ export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPlanDTONameEnum];
932
+
918
933
  /**
919
934
  *
920
935
  * @export
@@ -1177,6 +1192,41 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1177
1192
 
1178
1193
 
1179
1194
 
1195
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1196
+
1197
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1199
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1200
+ localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
1201
+
1202
+ return {
1203
+ url: toPathString(localVarUrlObj),
1204
+ options: localVarRequestOptions,
1205
+ };
1206
+ },
1207
+ /**
1208
+ *
1209
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1210
+ * @param {*} [options] Override http request option.
1211
+ * @throws {RequiredError}
1212
+ */
1213
+ authControllerResentOTP: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1214
+ // verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
1215
+ assertParamExists('authControllerResentOTP', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
1216
+ const localVarPath = `/v1/auth/resend-otp`;
1217
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1218
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1219
+ let baseOptions;
1220
+ if (configuration) {
1221
+ baseOptions = configuration.baseOptions;
1222
+ }
1223
+
1224
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1225
+ const localVarHeaderParameter = {} as any;
1226
+ const localVarQueryParameter = {} as any;
1227
+
1228
+
1229
+
1180
1230
  localVarHeaderParameter['Content-Type'] = 'application/json';
1181
1231
 
1182
1232
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1406,6 +1456,18 @@ export const AuthApiFp = function(configuration?: Configuration) {
1406
1456
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerForgotPassword']?.[localVarOperationServerIndex]?.url;
1407
1457
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1408
1458
  },
1459
+ /**
1460
+ *
1461
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1462
+ * @param {*} [options] Override http request option.
1463
+ * @throws {RequiredError}
1464
+ */
1465
+ async authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ForgotPasswordResponseDTO>> {
1466
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResentOTP(forgotPasswordPayloadDTO, options);
1467
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1468
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResentOTP']?.[localVarOperationServerIndex]?.url;
1469
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1470
+ },
1409
1471
  /**
1410
1472
  *
1411
1473
  * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
@@ -1494,6 +1556,15 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1494
1556
  authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
1495
1557
  return localVarFp.authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1496
1558
  },
1559
+ /**
1560
+ *
1561
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1562
+ * @param {*} [options] Override http request option.
1563
+ * @throws {RequiredError}
1564
+ */
1565
+ authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
1566
+ return localVarFp.authControllerResentOTP(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1567
+ },
1497
1568
  /**
1498
1569
  *
1499
1570
  * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
@@ -1571,6 +1642,17 @@ export class AuthApi extends BaseAPI {
1571
1642
  return AuthApiFp(this.configuration).authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1572
1643
  }
1573
1644
 
1645
+ /**
1646
+ *
1647
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1648
+ * @param {*} [options] Override http request option.
1649
+ * @throws {RequiredError}
1650
+ * @memberof AuthApi
1651
+ */
1652
+ public authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
1653
+ return AuthApiFp(this.configuration).authControllerResentOTP(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1654
+ }
1655
+
1574
1656
  /**
1575
1657
  *
1576
1658
  * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.0.15alpha",
3
+ "version": "1.0.16alpha",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},