@gooday_corp/gooday-api-client 1.0.16-beta → 1.0.16

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 +71 -16
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -433,10 +433,10 @@ export interface OnBoardingDTO {
433
433
  'assistant'?: string;
434
434
  /**
435
435
  * Plan
436
- * @type {string}
436
+ * @type {object}
437
437
  * @memberof OnBoardingDTO
438
438
  */
439
- 'plan'?: string;
439
+ 'plan'?: object;
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 {object}
889
877
  * @memberof UserEntity
890
878
  */
891
- 'plan': string;
879
+ 'plan': object;
892
880
  /**
893
881
  * Action user has to perform
894
882
  * @type {Array<string>}
@@ -1177,6 +1165,41 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1177
1165
 
1178
1166
 
1179
1167
 
1168
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1169
+
1170
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1171
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1172
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1173
+ localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
1174
+
1175
+ return {
1176
+ url: toPathString(localVarUrlObj),
1177
+ options: localVarRequestOptions,
1178
+ };
1179
+ },
1180
+ /**
1181
+ *
1182
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1183
+ * @param {*} [options] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ */
1186
+ authControllerResentOTP: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1187
+ // verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
1188
+ assertParamExists('authControllerResentOTP', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
1189
+ const localVarPath = `/v1/auth/resend-otp`;
1190
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1191
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1192
+ let baseOptions;
1193
+ if (configuration) {
1194
+ baseOptions = configuration.baseOptions;
1195
+ }
1196
+
1197
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1198
+ const localVarHeaderParameter = {} as any;
1199
+ const localVarQueryParameter = {} as any;
1200
+
1201
+
1202
+
1180
1203
  localVarHeaderParameter['Content-Type'] = 'application/json';
1181
1204
 
1182
1205
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1406,6 +1429,18 @@ export const AuthApiFp = function(configuration?: Configuration) {
1406
1429
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerForgotPassword']?.[localVarOperationServerIndex]?.url;
1407
1430
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1408
1431
  },
1432
+ /**
1433
+ *
1434
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1435
+ * @param {*} [options] Override http request option.
1436
+ * @throws {RequiredError}
1437
+ */
1438
+ async authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ForgotPasswordResponseDTO>> {
1439
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResentOTP(forgotPasswordPayloadDTO, options);
1440
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1441
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResentOTP']?.[localVarOperationServerIndex]?.url;
1442
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1443
+ },
1409
1444
  /**
1410
1445
  *
1411
1446
  * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
@@ -1494,6 +1529,15 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1494
1529
  authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
1495
1530
  return localVarFp.authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1496
1531
  },
1532
+ /**
1533
+ *
1534
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1535
+ * @param {*} [options] Override http request option.
1536
+ * @throws {RequiredError}
1537
+ */
1538
+ authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
1539
+ return localVarFp.authControllerResentOTP(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1540
+ },
1497
1541
  /**
1498
1542
  *
1499
1543
  * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
@@ -1571,6 +1615,17 @@ export class AuthApi extends BaseAPI {
1571
1615
  return AuthApiFp(this.configuration).authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1572
1616
  }
1573
1617
 
1618
+ /**
1619
+ *
1620
+ * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1621
+ * @param {*} [options] Override http request option.
1622
+ * @throws {RequiredError}
1623
+ * @memberof AuthApi
1624
+ */
1625
+ public authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
1626
+ return AuthApiFp(this.configuration).authControllerResentOTP(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1627
+ }
1628
+
1574
1629
  /**
1575
1630
  *
1576
1631
  * @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.16beta",
3
+ "version": "1.0.16",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},