@xfloor/floor-memory-sdk-js 1.0.0 → 1.0.1

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 (46) hide show
  1. package/README.md +5 -5
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/DefaultApi.js +44 -34
  4. package/dist/api/EditFloorApi.js +1 -1
  5. package/dist/api/EventApi.js +1 -1
  6. package/dist/api/GetFloorInformationApi.js +1 -1
  7. package/dist/api/GetRecentEventsApi.js +1 -1
  8. package/dist/api/QueryApi.js +1 -1
  9. package/dist/index.js +6 -6
  10. package/dist/model/BlockDetails.js +1 -1
  11. package/dist/model/ChangePassword200Response.js +1 -1
  12. package/dist/model/EditFloor400Response.js +1 -1
  13. package/dist/model/EditFloor400ResponseError.js +1 -1
  14. package/dist/model/Event400Response.js +1 -1
  15. package/dist/model/Event400ResponseError.js +1 -1
  16. package/dist/model/EventResponse.js +1 -1
  17. package/dist/model/FloorInfo.js +1 -1
  18. package/dist/model/GetFloorInformation200Response.js +1 -1
  19. package/dist/model/GetRecentEvents200Response.js +1 -1
  20. package/dist/model/GetRecentEvents200ResponseItemsInner.js +1 -1
  21. package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +1 -1
  22. package/dist/model/GetRecentEvents400Response.js +1 -1
  23. package/dist/model/GetRecentEvents400ResponseError.js +1 -1
  24. package/dist/model/Media.js +1 -1
  25. package/dist/model/Model400ErrorCode.js +1 -1
  26. package/dist/model/Query422Response.js +1 -1
  27. package/dist/model/Query422ResponseError.js +1 -1
  28. package/dist/model/QueryRequest.js +1 -1
  29. package/dist/model/QueryRequestFilters.js +1 -1
  30. package/dist/model/QueryResponse.js +1 -1
  31. package/dist/model/QueryResponseItemsInner.js +1 -1
  32. package/dist/model/{SendSignInValidationCode200Response.js → ResetPassword200Response.js} +23 -51
  33. package/dist/model/{SendSignInValidationCode400Response.js → ResetPassword400Response.js} +23 -23
  34. package/dist/model/SendValidationCode200Response.js +1 -1
  35. package/dist/model/SendValidationCodeRequest.js +31 -9
  36. package/dist/model/SignInWithEmail200Response.js +1 -1
  37. package/dist/model/SignInWithEmail200ResponseProfile.js +1 -1
  38. package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +1 -1
  39. package/dist/model/SignUp200Response.js +1 -1
  40. package/dist/model/SignUpResponse.js +1 -1
  41. package/dist/model/UserDetails.js +1 -1
  42. package/dist/model/ValidateCode400Response.js +1 -1
  43. package/dist/model/ValidateCode400ResponseError.js +1 -1
  44. package/dist/model/ValidateCode412Response.js +1 -1
  45. package/dist/model/ValidateCodeRequest.js +1 -1
  46. package/package.json +1 -1
package/README.md CHANGED
@@ -11,7 +11,7 @@ The developer has two ways of using the APIs for the app development. Developer
11
11
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
12
12
 
13
13
  - API version: 1.0.0
14
- - Package version: 1.0.0
14
+ - Package version: 1.0.1
15
15
  - Generator version: 7.18.0
16
16
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
17
17
  For more information, please visit [https://xfloor.ai/ipomo/blog1551084548304/](https://xfloor.ai/ipomo/blog1551084548304/)
@@ -135,12 +135,12 @@ Class | Method | HTTP request | Description
135
135
  ------------ | ------------- | ------------- | -------------
136
136
  *XfloorFloorMemorySdkJs.DefaultApi* | [**changeEmail**](docs/DefaultApi.md#changeEmail) | **POST** /auth-service/change/email | Change email ID
137
137
  *XfloorFloorMemorySdkJs.DefaultApi* | [**changeMobileNumber**](docs/DefaultApi.md#changeMobileNumber) | **POST** /auth-service/change/mobile | Change Mobile number
138
- *XfloorFloorMemorySdkJs.DefaultApi* | [**changePassword**](docs/DefaultApi.md#changePassword) | **POST** /auth-service/change/password | Change Password
138
+ *XfloorFloorMemorySdkJs.DefaultApi* | [**changePassword**](docs/DefaultApi.md#changePassword) | **POST** /auth-service/password/change | Change Password
139
139
  *XfloorFloorMemorySdkJs.DefaultApi* | [**makeFloorPrivate**](docs/DefaultApi.md#makeFloorPrivate) | **POST** /api/memory/make/floor/private | Make floor Private
140
140
  *XfloorFloorMemorySdkJs.DefaultApi* | [**makeFloorPublic**](docs/DefaultApi.md#makeFloorPublic) | **POST** /api/memory/make/floor/public | Make floor public
141
141
  *XfloorFloorMemorySdkJs.DefaultApi* | [**registerExternalUserIdentity**](docs/DefaultApi.md#registerExternalUserIdentity) | **POST** /memory/identity/external-user | External User Registration
142
142
  *XfloorFloorMemorySdkJs.DefaultApi* | [**renameFloor**](docs/DefaultApi.md#renameFloor) | **POST** /api/memory/change/floor/id | Rename floor
143
- *XfloorFloorMemorySdkJs.DefaultApi* | [**sendSignInValidationCode**](docs/DefaultApi.md#sendSignInValidationCode) | **POST** /auth-service/send/sign/in/validation/code | Send Sign-In Validation Code (OTP)
143
+ *XfloorFloorMemorySdkJs.DefaultApi* | [**resetPassword**](docs/DefaultApi.md#resetPassword) | **POST** /auth-service/password/reset | Reset Password
144
144
  *XfloorFloorMemorySdkJs.DefaultApi* | [**sendValidationCode**](docs/DefaultApi.md#sendValidationCode) | **POST** /auth-service/send/validation/code | Send Validation code
145
145
  *XfloorFloorMemorySdkJs.DefaultApi* | [**signInWithEmail**](docs/DefaultApi.md#signInWithEmail) | **POST** /auth-service/sign/in/with/email | Sign In with email ID
146
146
  *XfloorFloorMemorySdkJs.DefaultApi* | [**signInWithMobileNumber**](docs/DefaultApi.md#signInWithMobileNumber) | **POST** /auth-service/sign/in/with/mobile/number | Sign In with Mobile number
@@ -177,8 +177,8 @@ Class | Method | HTTP request | Description
177
177
  - [XfloorFloorMemorySdkJs.QueryRequestFilters](docs/QueryRequestFilters.md)
178
178
  - [XfloorFloorMemorySdkJs.QueryResponse](docs/QueryResponse.md)
179
179
  - [XfloorFloorMemorySdkJs.QueryResponseItemsInner](docs/QueryResponseItemsInner.md)
180
- - [XfloorFloorMemorySdkJs.SendSignInValidationCode200Response](docs/SendSignInValidationCode200Response.md)
181
- - [XfloorFloorMemorySdkJs.SendSignInValidationCode400Response](docs/SendSignInValidationCode400Response.md)
180
+ - [XfloorFloorMemorySdkJs.ResetPassword200Response](docs/ResetPassword200Response.md)
181
+ - [XfloorFloorMemorySdkJs.ResetPassword400Response](docs/ResetPassword400Response.md)
182
182
  - [XfloorFloorMemorySdkJs.SendValidationCode200Response](docs/SendValidationCode200Response.md)
183
183
  - [XfloorFloorMemorySdkJs.SendValidationCodeRequest](docs/SendValidationCodeRequest.md)
184
184
  - [XfloorFloorMemorySdkJs.SignInWithEmail200Response](docs/SignInWithEmail200Response.md)
package/dist/ApiClient.js CHANGED
@@ -25,7 +25,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
25
25
  */
26
26
  /**
27
27
  * @module ApiClient
28
- * @version 1.0.0
28
+ * @version 1.0.1
29
29
  */
30
30
  /**
31
31
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -66,7 +66,7 @@ var ApiClient = /*#__PURE__*/function () {
66
66
  * @default {}
67
67
  */
68
68
  this.defaultHeaders = {
69
- 'User-Agent': 'OpenAPI-Generator/1.0.0/Javascript'
69
+ 'User-Agent': 'OpenAPI-Generator/1.0.1/Javascript'
70
70
  };
71
71
 
72
72
  /**
@@ -9,8 +9,8 @@ var _ChangePassword200Response = _interopRequireDefault(require("../model/Change
9
9
  var _EditFloor400Response = _interopRequireDefault(require("../model/EditFloor400Response"));
10
10
  var _GetFloorInformation200Response = _interopRequireDefault(require("../model/GetFloorInformation200Response"));
11
11
  var _GetRecentEvents400Response = _interopRequireDefault(require("../model/GetRecentEvents400Response"));
12
- var _SendSignInValidationCode200Response = _interopRequireDefault(require("../model/SendSignInValidationCode200Response"));
13
- var _SendSignInValidationCode400Response = _interopRequireDefault(require("../model/SendSignInValidationCode400Response"));
12
+ var _ResetPassword200Response = _interopRequireDefault(require("../model/ResetPassword200Response"));
13
+ var _ResetPassword400Response = _interopRequireDefault(require("../model/ResetPassword400Response"));
14
14
  var _SendValidationCode200Response = _interopRequireDefault(require("../model/SendValidationCode200Response"));
15
15
  var _SendValidationCodeRequest = _interopRequireDefault(require("../model/SendValidationCodeRequest"));
16
16
  var _SignInWithEmail200Response = _interopRequireDefault(require("../model/SignInWithEmail200Response"));
@@ -40,7 +40,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
40
40
  /**
41
41
  * Default service.
42
42
  * @module api/DefaultApi
43
- * @version 1.0.0
43
+ * @version 1.0.1
44
44
  */
45
45
  var DefaultApi = exports["default"] = /*#__PURE__*/function () {
46
46
  /**
@@ -141,32 +141,40 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
141
141
 
142
142
  /**
143
143
  * Change Password
144
- * Changes the password of an existing user after validating a one-time password change activation code. This API validates the provided `activation_code` for the given `user_id`. If the activation code is valid and not expired, the user’s password is updated to the supplied `new_password` and takes effect immediately. If the activation code validation fails, the password remains unchanged and an error response is returned. --- ### **Authentication** This endpoint requires **Bearer Token authentication**. ``` Authorization: Bearer <access_token> ``` --- ### **Request Body (Form Data)** | Field | Type | Required | Description | | ------------ | ------------- | -------- | ----------------------------------------------------------------- | | `user_id` | string | Yes | User ID | | `new_password` | string | Yes | New Password | | `activation_code` | string | Yes | Activation code | **Field Description** * `user_id` Unique identifier of the user requesting the password change * `new_password` – New password to be set for the user * `activation_code` One-time activation code generated for password change verification --- ### **Successful Response** On successful validation: * The activation code is verified * The user password is updated immediately * The API returns a `success` string indicating that the password change was completed --- ### **Error Response** The API returns an error response if: * The activation code is invalid or expired * The activation code does not match the specified user * The password does not meet security or policy requirements * Authorization fails or the bearer token is missing or invalid In all error cases, the existing password remains unchanged. --- ### **Behavior Notes** * Requires a prior call to `/auth-service/send/validation/code` with the proper mode. --- ### **Security Notes** * Activation codes are single-use and time-bound * Passwords are never returned in API responses * Rate limiting may be applied to prevent brute-force attempts --- ### **One-Line Summary** > Updates a user’s password after validating a one-time activation code.
144
+ * ## 1) `POST /password/change` — Change Password (Logged-in User) Changes the password of an **authenticated user** who is currently logged in. This endpoint is used when a user is already signed in and wants to update their password as a security or preference action. The system validates a **one-time password-change verification code** (`activation_code`) issued specifically for the change-password flow. If the code is valid and not expired, the user’s password is updated to `new_password` and takes effect immediately. If verification fails, the password remains unchanged and an error response is returned. ### Authentication **Required**: Bearer token for the logged-in session ``` Authorization: Bearer <access_token> ``` ### Request Body (Form Data) * `user_id` (optional if derived from token) * `activation_code` (required) * `new_password` (required) ### Behavior Notes * Typically requires a prior call to **send a verification code** for password change (mode = password change). * `user_id` can be taken from the access token; include it only if your system requires it explicitly. ### One-Line Summary > Changes the password for a logged-in user after validating a one-time password-change code.
145
+ * @param {String} newPassword New Password
146
+ * @param {String} activationCode Validation code
145
147
  * @param {Object} opts Optional parameters
146
148
  * @param {String} [userId] User ID
147
- * @param {String} [newPassword] New Password
148
- * @param {String} [acticationCode] Validation code
149
149
  * @param {module:api/DefaultApi~changePasswordCallback} callback The callback function, accepting three arguments: error, data, response
150
150
  * data is of type: {@link module:model/ChangePassword200Response}
151
151
  */
152
152
  }, {
153
153
  key: "changePassword",
154
- value: function changePassword(opts, callback) {
154
+ value: function changePassword(newPassword, activationCode, opts, callback) {
155
155
  opts = opts || {};
156
156
  var postBody = null;
157
+ // verify the required parameter 'newPassword' is set
158
+ if (newPassword === undefined || newPassword === null) {
159
+ throw new Error("Missing the required parameter 'newPassword' when calling changePassword");
160
+ }
161
+ // verify the required parameter 'activationCode' is set
162
+ if (activationCode === undefined || activationCode === null) {
163
+ throw new Error("Missing the required parameter 'activationCode' when calling changePassword");
164
+ }
157
165
  var pathParams = {};
158
166
  var queryParams = {};
159
167
  var headerParams = {};
160
168
  var formParams = {
161
169
  'user_id': opts['userId'],
162
- 'new_password': opts['newPassword'],
163
- 'actication_code': opts['acticationCode']
170
+ 'new_password': newPassword,
171
+ 'activation_code': activationCode
164
172
  };
165
173
  var authNames = ['bearer'];
166
174
  var contentTypes = ['multipart/form-data'];
167
175
  var accepts = ['application/json'];
168
176
  var returnType = _ChangePassword200Response["default"];
169
- return this.apiClient.callApi('/auth-service/change/password', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
177
+ return this.apiClient.callApi('/auth-service/password/change', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
170
178
  }
171
179
 
172
180
  /**
@@ -326,45 +334,47 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
326
334
  }
327
335
 
328
336
  /**
329
- * Callback function to receive the result of the sendSignInValidationCode operation.
330
- * @callback module:api/DefaultApi~sendSignInValidationCodeCallback
337
+ * Callback function to receive the result of the resetPassword operation.
338
+ * @callback module:api/DefaultApi~resetPasswordCallback
331
339
  * @param {String} error Error message, if any.
332
- * @param {module:model/SendSignInValidationCode200Response} data The data returned by the service call.
340
+ * @param {module:model/ResetPassword200Response} data The data returned by the service call.
333
341
  * @param {String} response The complete HTTP response.
334
342
  */
335
343
 
336
344
  /**
337
- * Send Sign-In Validation Code (OTP)
338
- * This API initiates the **sign-in validation process** by sending a **one-time validation code (OTP)** to the user. The OTP is delivered to **either the mobile number or the email address** provided in the request. This endpoint is typically called **before completing sign-in**, to verify that the user owns the supplied contact identifier. The calling application is responsible for: * Collecting the OTP from the user * Submitting it to the OTP verification API (handled separately) --- ## **Use Case** * User attempts to sign in * User provides **mobile number or email** * System sends a **validation code (OTP)** * User enters OTP to complete sign-in --- ## **Request Method** `POST` --- ## **Formdata Parameters** | Parameter Name | Type | Required | Description | | --------------- | ------ | --------- | ------------------------------------------- | | `mobile_number` | String | Optional* | Mobile number to which the OTP will be sent | | `email_id` | String | Optional* | Email address to which the OTP will be sent | | `app_id` | String | Optional | Identifier of the calling application | * **Either `mobile_number` or `email_id` must be provided.** Providing both is allowed; the system may choose one based on configuration. --- ## **Request Rules** * At least **one** of `mobile_number` or `email_id` is mandatory * If both are missing, the request will be rejected * OTP delivery channel depends on the provided identifier --- ## **Response Format** `application/json` --- ## **Sample Success Response** ```json { \"status\": \"SUCCESS\", \"message\": \"Validation code sent successfully\" } ``` --- ## **Sample Error Responses** ### Missing Identifier ```json { \"status\": \"ERROR\", \"message\": \"Either mobile_number or email_id must be provided\" } ``` ### Invalid Identifier ```json { \"status\": \"ERROR\", \"message\": \"Invalid mobile number or email address\" } ``` --- ## **Notes** * This API **only sends** the validation code * OTP verification must be performed using the corresponding **verify validation code** API * Rate limiting and retry restrictions may apply to prevent abuse
339
- * @param {String} appId App ID
345
+ * Reset Password
346
+ * --- ## Reset Password (Forgot Password, Not Logged In) Resets the password of a user who **cannot log in** and is using a **forgot-password** flow. This endpoint is used when the user is not authenticated and requests a password reset using a verified identity channel such as **email** or **mobile number**. The system validates a **one-time reset verification code** (`activation_code`) issued for the reset-password flow. If valid and not expired, the password is updated to `new_password` and takes effect immediately. If verification fails, the password remains unchanged and an error response is returned. ### Authentication ✅ **Recommended** (better security): a short-lived **reset token** issued after initiating reset ``` Authorization: Bearer <reset_token> ``` > If you don’t use a reset token, you must enforce strong rate limiting + OTP attempt throttling on this endpoint. ### Request Body (Form Data) * `email_id` or `mobile_number` (required to identify user) * `activation_code` (required) * `new_password` (required) * `user_id` (optional, if your reset flow already resolved it) ### Behavior Notes * Requires a prior call to **initiate reset** and send OTP/code (mode = forgot password). * Must enforce code attempt limits and expiration strictly. ### One-Line Summary > Resets a user’s password (forgot-password flow) after validating a one-time reset code sent to email or mobile.
347
+ * @param {String} activationCode Activation Code
340
348
  * @param {Object} opts Optional parameters
341
- * @param {String} [mobileNumber] Mobile number
342
349
  * @param {String} [emailId] Email ID
343
- * @param {module:api/DefaultApi~sendSignInValidationCodeCallback} callback The callback function, accepting three arguments: error, data, response
344
- * data is of type: {@link module:model/SendSignInValidationCode200Response}
350
+ * @param {String} [mobileNumber] Mobile number
351
+ * @param {String} [appId] App ID
352
+ * @param {module:api/DefaultApi~resetPasswordCallback} callback The callback function, accepting three arguments: error, data, response
353
+ * data is of type: {@link module:model/ResetPassword200Response}
345
354
  */
346
355
  }, {
347
- key: "sendSignInValidationCode",
348
- value: function sendSignInValidationCode(appId, opts, callback) {
356
+ key: "resetPassword",
357
+ value: function resetPassword(activationCode, opts, callback) {
349
358
  opts = opts || {};
350
359
  var postBody = null;
351
- // verify the required parameter 'appId' is set
352
- if (appId === undefined || appId === null) {
353
- throw new Error("Missing the required parameter 'appId' when calling sendSignInValidationCode");
360
+ // verify the required parameter 'activationCode' is set
361
+ if (activationCode === undefined || activationCode === null) {
362
+ throw new Error("Missing the required parameter 'activationCode' when calling resetPassword");
354
363
  }
355
364
  var pathParams = {};
356
- var queryParams = {};
357
- var headerParams = {};
358
- var formParams = {
359
- 'mobile_number': opts['mobileNumber'],
365
+ var queryParams = {
360
366
  'email_id': opts['emailId'],
361
- 'app_id': appId
367
+ 'mobile_number': opts['mobileNumber'],
368
+ 'activation_code': activationCode,
369
+ 'app_id': opts['appId']
362
370
  };
363
- var authNames = ['bearer'];
364
- var contentTypes = ['multipart/form-data'];
371
+ var headerParams = {};
372
+ var formParams = {};
373
+ var authNames = [];
374
+ var contentTypes = [];
365
375
  var accepts = ['application/json'];
366
- var returnType = _SendSignInValidationCode200Response["default"];
367
- return this.apiClient.callApi('/auth-service/send/sign/in/validation/code', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
376
+ var returnType = _ResetPassword200Response["default"];
377
+ return this.apiClient.callApi('/auth-service/password/reset', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
368
378
  }
369
379
 
370
380
  /**
@@ -547,7 +557,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
547
557
 
548
558
  /**
549
559
  * Validation
550
- * Validates the activation code submitted by a newly registered user and completes the account activation process. This API verifies the provided `activation_code` against the specified `user_id` and activation `mode` (e.g., email or mobile). Upon successful validation, the user account is activated and the API returns the associated **POD information** along with the user’s **profile details**. If the activation code is invalid, expired, or does not match the user context, the API returns an appropriate error response and the account remains inactive. --- ### **Authentication** This endpoint requires **Bearer Token authentication**. * The token must be included in the `Authorization` header: ``` Authorization: Bearer <access_token> ``` --- ### **Request Body** ```json { \"user_id\": \"string\", \"activation_code\": \"string\", \"app_id\": \"string\", \"mode\": \"string\" } ``` **Field Description** * `user_id` – Unique identifier of the newly registered user * `activation_code` – One-time validation code sent to the user * `app_id` – Application identifier (optional or context-specific) * `mode`Activation channel used (e.g., `email`, `mobile`) --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `5` | Login verification | ### **Successful Response** On successful validation: * The user account is activated * The API returns: * `pod_info` associated with the user * User `profile` information The activated account can now be used for login and other Floor POD operations. --- ### **Error Response** The API returns an error response when: * The activation code is invalid or expired * The activation code does not match the user or mode * The user is already activated * Authorization fails or the bearer token is missing/invalid In all error cases, **account activation is not completed**. --- ### **One-Line Summary** > Validates a user’s activation code, activates the account, and returns POD and profile details on success.
560
+ * ## **Validate Activation / Verification Code** This API **validates a one-time verification code** submitted by a user and **executes the corresponding account operation** based on the specified **mode**. Depending on the mode, the API may: * Activate a newly registered account * Confirm a login attempt * Verify a password change or reset * Validate email or mobile updates * Confirm account deletion or clearing requests The API verifies the provided `activation_code` against the given `user_id`, `mode`, and application context. If validation succeeds, the requested operation is completed and the API returns the relevant **POD information** and **user profile details** (where applicable). If validation fails, the operation is **not performed** and an appropriate error response is returned. --- ## **Authentication** This endpoint requires **Bearer Token authentication**. **Header** ``` Authorization: Bearer <access_token> ``` --- ## **Request Body** ```json { \"user_id\": \"string\", \"activation_code\": \"string\", \"app_id\": \"string\", \"mode\": \"string\" } ``` ### **Field Descriptions** * **user_id** – Unique identifier of the user initiating the operation * **activation_code** – One-time verification code sent to the user * **app_id** – Application identifier (optional or context-specific) * **mode**Operation context for which the verification is being performed --- ## **Usage Scenarios (Mode Definitions)** | Mode | Purpose | | ---- | ---------------------------------------- | | 0 | Email or mobile number change | | 1 | Password change | | 2 | Delete account | | 3 | Clear account | | 4 | Signup verification (account activation) | | 5 | Login verification | | 6 | Forgot password verification | --- ## **Successful Response** On successful validation: * The requested operation (based on `mode`) is completed * The API returns: * **POD information** associated with the user (if applicable) * **User profile details** (if applicable) Examples: * For **signup verification**, the user account is activated * For **login**, access is confirmed * For **password reset**, the user may proceed to set a new password * For **account deletion**, the request is confirmed --- ## **Error Response** The API returns an error response when: * The activation code is invalid or expired * The activation code does not match the user or operation mode * The requested operation is already completed (e.g., user already activated) * Authorization fails or the bearer token is missing or invalid ⚠️ In all error cases, **no account state change occurs**. --- ## **One-Line Summary** > Validates a one-time verification code and securely completes the requested user account operation (signup, login, password change, or account actions), returning POD and profile details on success.
551
561
  * @param {module:model/ValidateCodeRequest} validateCodeRequest
552
562
  * @param {module:api/DefaultApi~validateCodeCallback} callback The callback function, accepting three arguments: error, data, response
553
563
  * data is of type: {@link module:model/UserDetails}
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * EditFloor service.
30
30
  * @module api/EditFloorApi
31
- * @version 1.0.0
31
+ * @version 1.0.1
32
32
  */
33
33
  var EditFloorApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * Event service.
30
30
  * @module api/EventApi
31
- * @version 1.0.0
31
+ * @version 1.0.1
32
32
  */
33
33
  var EventApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * GetFloorInformation service.
30
30
  * @module api/GetFloorInformationApi
31
- * @version 1.0.0
31
+ * @version 1.0.1
32
32
  */
33
33
  var GetFloorInformationApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * GetRecentEvents service.
30
30
  * @module api/GetRecentEventsApi
31
- * @version 1.0.0
31
+ * @version 1.0.1
32
32
  */
33
33
  var GetRecentEventsApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Query service.
31
31
  * @module api/QueryApi
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var QueryApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
package/dist/index.js CHANGED
@@ -177,16 +177,16 @@ Object.defineProperty(exports, "QueryResponseItemsInner", {
177
177
  return _QueryResponseItemsInner["default"];
178
178
  }
179
179
  });
180
- Object.defineProperty(exports, "SendSignInValidationCode200Response", {
180
+ Object.defineProperty(exports, "ResetPassword200Response", {
181
181
  enumerable: true,
182
182
  get: function get() {
183
- return _SendSignInValidationCode200Response["default"];
183
+ return _ResetPassword200Response["default"];
184
184
  }
185
185
  });
186
- Object.defineProperty(exports, "SendSignInValidationCode400Response", {
186
+ Object.defineProperty(exports, "ResetPassword400Response", {
187
187
  enumerable: true,
188
188
  get: function get() {
189
- return _SendSignInValidationCode400Response["default"];
189
+ return _ResetPassword400Response["default"];
190
190
  }
191
191
  });
192
192
  Object.defineProperty(exports, "SendValidationCode200Response", {
@@ -284,8 +284,8 @@ var _QueryRequest = _interopRequireDefault(require("./model/QueryRequest"));
284
284
  var _QueryRequestFilters = _interopRequireDefault(require("./model/QueryRequestFilters"));
285
285
  var _QueryResponse = _interopRequireDefault(require("./model/QueryResponse"));
286
286
  var _QueryResponseItemsInner = _interopRequireDefault(require("./model/QueryResponseItemsInner"));
287
- var _SendSignInValidationCode200Response = _interopRequireDefault(require("./model/SendSignInValidationCode200Response"));
288
- var _SendSignInValidationCode400Response = _interopRequireDefault(require("./model/SendSignInValidationCode400Response"));
287
+ var _ResetPassword200Response = _interopRequireDefault(require("./model/ResetPassword200Response"));
288
+ var _ResetPassword400Response = _interopRequireDefault(require("./model/ResetPassword400Response"));
289
289
  var _SendValidationCode200Response = _interopRequireDefault(require("./model/SendValidationCode200Response"));
290
290
  var _SendValidationCodeRequest = _interopRequireDefault(require("./model/SendValidationCodeRequest"));
291
291
  var _SignInWithEmail200Response = _interopRequireDefault(require("./model/SignInWithEmail200Response"));
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The BlockDetails model module.
31
31
  * @module model/BlockDetails
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var BlockDetails = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The ChangePassword200Response model module.
31
31
  * @module model/ChangePassword200Response
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var ChangePassword200Response = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The EditFloor400Response model module.
32
32
  * @module model/EditFloor400Response
33
- * @version 1.0.0
33
+ * @version 1.0.1
34
34
  */
35
35
  var EditFloor400Response = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The EditFloor400ResponseError model module.
31
31
  * @module model/EditFloor400ResponseError
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var EditFloor400ResponseError = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The Event400Response model module.
32
32
  * @module model/Event400Response
33
- * @version 1.0.0
33
+ * @version 1.0.1
34
34
  */
35
35
  var Event400Response = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The Event400ResponseError model module.
31
31
  * @module model/Event400ResponseError
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var Event400ResponseError = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The EventResponse model module.
31
31
  * @module model/EventResponse
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var EventResponse = /*#__PURE__*/function () {
35
35
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The FloorInfo model module.
33
33
  * @module model/FloorInfo
34
- * @version 1.0.0
34
+ * @version 1.0.1
35
35
  */
36
36
  var FloorInfo = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetFloorInformation200Response model module.
33
33
  * @module model/GetFloorInformation200Response
34
- * @version 1.0.0
34
+ * @version 1.0.1
35
35
  */
36
36
  var GetFloorInformation200Response = /*#__PURE__*/function () {
37
37
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetRecentEvents200Response model module.
32
32
  * @module model/GetRecentEvents200Response
33
- * @version 1.0.0
33
+ * @version 1.0.1
34
34
  */
35
35
  var GetRecentEvents200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetRecentEvents200ResponseItemsInner model module.
33
33
  * @module model/GetRecentEvents200ResponseItemsInner
34
- * @version 1.0.0
34
+ * @version 1.0.1
35
35
  */
36
36
  var GetRecentEvents200ResponseItemsInner = /*#__PURE__*/function () {
37
37
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The GetRecentEvents200ResponseItemsInnerAuthor model module.
29
29
  * @module model/GetRecentEvents200ResponseItemsInnerAuthor
30
- * @version 1.0.0
30
+ * @version 1.0.1
31
31
  */
32
32
  var GetRecentEvents200ResponseItemsInnerAuthor = /*#__PURE__*/function () {
33
33
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetRecentEvents400Response model module.
32
32
  * @module model/GetRecentEvents400Response
33
- * @version 1.0.0
33
+ * @version 1.0.1
34
34
  */
35
35
  var GetRecentEvents400Response = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The GetRecentEvents400ResponseError model module.
31
31
  * @module model/GetRecentEvents400ResponseError
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var GetRecentEvents400ResponseError = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The Media model module.
31
31
  * @module model/Media
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var Media = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The Model400ErrorCode model module.
31
31
  * @module model/Model400ErrorCode
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var Model400ErrorCode = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The Query422Response model module.
32
32
  * @module model/Query422Response
33
- * @version 1.0.0
33
+ * @version 1.0.1
34
34
  */
35
35
  var Query422Response = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The Query422ResponseError model module.
31
31
  * @module model/Query422ResponseError
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var Query422ResponseError = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The QueryRequest model module.
32
32
  * @module model/QueryRequest
33
- * @version 1.0.0
33
+ * @version 1.0.1
34
34
  */
35
35
  var QueryRequest = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The QueryRequestFilters model module.
31
31
  * @module model/QueryRequestFilters
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var QueryRequestFilters = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The QueryResponse model module.
32
32
  * @module model/QueryResponse
33
- * @version 1.0.0
33
+ * @version 1.0.1
34
34
  */
35
35
  var QueryResponse = /*#__PURE__*/function () {
36
36
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The QueryResponseItemsInner model module.
28
28
  * @module model/QueryResponseItemsInner
29
- * @version 1.0.0
29
+ * @version 1.0.1
30
30
  */
31
31
  var QueryResponseItemsInner = /*#__PURE__*/function () {
32
32
  /**
@@ -27,20 +27,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  *
28
28
  */
29
29
  /**
30
- * The SendSignInValidationCode200Response model module.
31
- * @module model/SendSignInValidationCode200Response
32
- * @version 1.0.0
30
+ * The ResetPassword200Response model module.
31
+ * @module model/ResetPassword200Response
32
+ * @version 1.0.1
33
33
  */
34
- var SendSignInValidationCode200Response = /*#__PURE__*/function () {
34
+ var ResetPassword200Response = /*#__PURE__*/function () {
35
35
  /**
36
- * Constructs a new <code>SendSignInValidationCode200Response</code>.
37
- * @alias module:model/SendSignInValidationCode200Response
38
- * @param success {String} Operation successful
39
- * @param emailId {String} Email ID if signed through email
36
+ * Constructs a new <code>ResetPassword200Response</code>.
37
+ * @alias module:model/ResetPassword200Response
38
+ * @param success {String} Password Reset
40
39
  */
41
- function SendSignInValidationCode200Response(success, emailId) {
42
- _classCallCheck(this, SendSignInValidationCode200Response);
43
- SendSignInValidationCode200Response.initialize(this, success, emailId);
40
+ function ResetPassword200Response(success) {
41
+ _classCallCheck(this, ResetPassword200Response);
42
+ ResetPassword200Response.initialize(this, success);
44
43
  }
45
44
 
46
45
  /**
@@ -48,48 +47,41 @@ var SendSignInValidationCode200Response = /*#__PURE__*/function () {
48
47
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
48
  * Only for internal use.
50
49
  */
51
- return _createClass(SendSignInValidationCode200Response, null, [{
50
+ return _createClass(ResetPassword200Response, null, [{
52
51
  key: "initialize",
53
- value: function initialize(obj, success, emailId) {
52
+ value: function initialize(obj, success) {
54
53
  obj['success'] = success;
55
- obj['email_id'] = emailId;
56
54
  }
57
55
 
58
56
  /**
59
- * Constructs a <code>SendSignInValidationCode200Response</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Constructs a <code>ResetPassword200Response</code> from a plain JavaScript object, optionally creating a new instance.
60
58
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
59
  * @param {Object} data The plain JavaScript object bearing properties of interest.
62
- * @param {module:model/SendSignInValidationCode200Response} obj Optional instance to populate.
63
- * @return {module:model/SendSignInValidationCode200Response} The populated <code>SendSignInValidationCode200Response</code> instance.
60
+ * @param {module:model/ResetPassword200Response} obj Optional instance to populate.
61
+ * @return {module:model/ResetPassword200Response} The populated <code>ResetPassword200Response</code> instance.
64
62
  */
65
63
  }, {
66
64
  key: "constructFromObject",
67
65
  value: function constructFromObject(data, obj) {
68
66
  if (data) {
69
- obj = obj || new SendSignInValidationCode200Response();
67
+ obj = obj || new ResetPassword200Response();
70
68
  if (data.hasOwnProperty('success')) {
71
69
  obj['success'] = _ApiClient["default"].convertToType(data['success'], 'String');
72
70
  }
73
- if (data.hasOwnProperty('mobile_number')) {
74
- obj['mobile_number'] = _ApiClient["default"].convertToType(data['mobile_number'], 'String');
75
- }
76
- if (data.hasOwnProperty('email_id')) {
77
- obj['email_id'] = _ApiClient["default"].convertToType(data['email_id'], 'String');
78
- }
79
71
  }
80
72
  return obj;
81
73
  }
82
74
 
83
75
  /**
84
- * Validates the JSON data with respect to <code>SendSignInValidationCode200Response</code>.
76
+ * Validates the JSON data with respect to <code>ResetPassword200Response</code>.
85
77
  * @param {Object} data The plain JavaScript object bearing properties of interest.
86
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SendSignInValidationCode200Response</code>.
78
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ResetPassword200Response</code>.
87
79
  */
88
80
  }, {
89
81
  key: "validateJSON",
90
82
  value: function validateJSON(data) {
91
83
  // check to make sure all required properties are present in the JSON string
92
- var _iterator = _createForOfIteratorHelper(SendSignInValidationCode200Response.RequiredProperties),
84
+ var _iterator = _createForOfIteratorHelper(ResetPassword200Response.RequiredProperties),
93
85
  _step;
94
86
  try {
95
87
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -107,35 +99,15 @@ var SendSignInValidationCode200Response = /*#__PURE__*/function () {
107
99
  if (data['success'] && !(typeof data['success'] === 'string' || data['success'] instanceof String)) {
108
100
  throw new Error("Expected the field `success` to be a primitive type in the JSON string but got " + data['success']);
109
101
  }
110
- // ensure the json data is a string
111
- if (data['mobile_number'] && !(typeof data['mobile_number'] === 'string' || data['mobile_number'] instanceof String)) {
112
- throw new Error("Expected the field `mobile_number` to be a primitive type in the JSON string but got " + data['mobile_number']);
113
- }
114
- // ensure the json data is a string
115
- if (data['email_id'] && !(typeof data['email_id'] === 'string' || data['email_id'] instanceof String)) {
116
- throw new Error("Expected the field `email_id` to be a primitive type in the JSON string but got " + data['email_id']);
117
- }
118
102
  return true;
119
103
  }
120
104
  }]);
121
105
  }();
122
- SendSignInValidationCode200Response.RequiredProperties = ["success", "email_id"];
106
+ ResetPassword200Response.RequiredProperties = ["success"];
123
107
 
124
108
  /**
125
- * Operation successful
109
+ * Password Reset
126
110
  * @member {String} success
127
111
  */
128
- SendSignInValidationCode200Response.prototype['success'] = undefined;
129
-
130
- /**
131
- * Mobile number if signed in through mobile number
132
- * @member {String} mobile_number
133
- */
134
- SendSignInValidationCode200Response.prototype['mobile_number'] = undefined;
135
-
136
- /**
137
- * Email ID if signed through email
138
- * @member {String} email_id
139
- */
140
- SendSignInValidationCode200Response.prototype['email_id'] = undefined;
141
- var _default = exports["default"] = SendSignInValidationCode200Response;
112
+ ResetPassword200Response.prototype['success'] = undefined;
113
+ var _default = exports["default"] = ResetPassword200Response;
@@ -27,22 +27,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  *
28
28
  */
29
29
  /**
30
- * The SendSignInValidationCode400Response model module.
31
- * @module model/SendSignInValidationCode400Response
32
- * @version 1.0.0
30
+ * The ResetPassword400Response model module.
31
+ * @module model/ResetPassword400Response
32
+ * @version 1.0.1
33
33
  */
34
- var SendSignInValidationCode400Response = /*#__PURE__*/function () {
34
+ var ResetPassword400Response = /*#__PURE__*/function () {
35
35
  /**
36
- * Constructs a new <code>SendSignInValidationCode400Response</code>.
37
- * @alias module:model/SendSignInValidationCode400Response
36
+ * Constructs a new <code>ResetPassword400Response</code>.
37
+ * @alias module:model/ResetPassword400Response
38
38
  * @param code {String} Validation Error
39
39
  * @param message {String} Error Message
40
40
  * @param path {String} REST api path
41
41
  * @param timestamp {String} Time stamp
42
42
  */
43
- function SendSignInValidationCode400Response(code, message, path, timestamp) {
44
- _classCallCheck(this, SendSignInValidationCode400Response);
45
- SendSignInValidationCode400Response.initialize(this, code, message, path, timestamp);
43
+ function ResetPassword400Response(code, message, path, timestamp) {
44
+ _classCallCheck(this, ResetPassword400Response);
45
+ ResetPassword400Response.initialize(this, code, message, path, timestamp);
46
46
  }
47
47
 
48
48
  /**
@@ -50,7 +50,7 @@ var SendSignInValidationCode400Response = /*#__PURE__*/function () {
50
50
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
51
  * Only for internal use.
52
52
  */
53
- return _createClass(SendSignInValidationCode400Response, null, [{
53
+ return _createClass(ResetPassword400Response, null, [{
54
54
  key: "initialize",
55
55
  value: function initialize(obj, code, message, path, timestamp) {
56
56
  obj['code'] = code;
@@ -60,17 +60,17 @@ var SendSignInValidationCode400Response = /*#__PURE__*/function () {
60
60
  }
61
61
 
62
62
  /**
63
- * Constructs a <code>SendSignInValidationCode400Response</code> from a plain JavaScript object, optionally creating a new instance.
63
+ * Constructs a <code>ResetPassword400Response</code> from a plain JavaScript object, optionally creating a new instance.
64
64
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
65
65
  * @param {Object} data The plain JavaScript object bearing properties of interest.
66
- * @param {module:model/SendSignInValidationCode400Response} obj Optional instance to populate.
67
- * @return {module:model/SendSignInValidationCode400Response} The populated <code>SendSignInValidationCode400Response</code> instance.
66
+ * @param {module:model/ResetPassword400Response} obj Optional instance to populate.
67
+ * @return {module:model/ResetPassword400Response} The populated <code>ResetPassword400Response</code> instance.
68
68
  */
69
69
  }, {
70
70
  key: "constructFromObject",
71
71
  value: function constructFromObject(data, obj) {
72
72
  if (data) {
73
- obj = obj || new SendSignInValidationCode400Response();
73
+ obj = obj || new ResetPassword400Response();
74
74
  if (data.hasOwnProperty('code')) {
75
75
  obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
76
76
  }
@@ -88,15 +88,15 @@ var SendSignInValidationCode400Response = /*#__PURE__*/function () {
88
88
  }
89
89
 
90
90
  /**
91
- * Validates the JSON data with respect to <code>SendSignInValidationCode400Response</code>.
91
+ * Validates the JSON data with respect to <code>ResetPassword400Response</code>.
92
92
  * @param {Object} data The plain JavaScript object bearing properties of interest.
93
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SendSignInValidationCode400Response</code>.
93
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ResetPassword400Response</code>.
94
94
  */
95
95
  }, {
96
96
  key: "validateJSON",
97
97
  value: function validateJSON(data) {
98
98
  // check to make sure all required properties are present in the JSON string
99
- var _iterator = _createForOfIteratorHelper(SendSignInValidationCode400Response.RequiredProperties),
99
+ var _iterator = _createForOfIteratorHelper(ResetPassword400Response.RequiredProperties),
100
100
  _step;
101
101
  try {
102
102
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -130,29 +130,29 @@ var SendSignInValidationCode400Response = /*#__PURE__*/function () {
130
130
  }
131
131
  }]);
132
132
  }();
133
- SendSignInValidationCode400Response.RequiredProperties = ["code", "message", "path", "timestamp"];
133
+ ResetPassword400Response.RequiredProperties = ["code", "message", "path", "timestamp"];
134
134
 
135
135
  /**
136
136
  * Validation Error
137
137
  * @member {String} code
138
138
  */
139
- SendSignInValidationCode400Response.prototype['code'] = undefined;
139
+ ResetPassword400Response.prototype['code'] = undefined;
140
140
 
141
141
  /**
142
142
  * Error Message
143
143
  * @member {String} message
144
144
  */
145
- SendSignInValidationCode400Response.prototype['message'] = undefined;
145
+ ResetPassword400Response.prototype['message'] = undefined;
146
146
 
147
147
  /**
148
148
  * REST api path
149
149
  * @member {String} path
150
150
  */
151
- SendSignInValidationCode400Response.prototype['path'] = undefined;
151
+ ResetPassword400Response.prototype['path'] = undefined;
152
152
 
153
153
  /**
154
154
  * Time stamp
155
155
  * @member {String} timestamp
156
156
  */
157
- SendSignInValidationCode400Response.prototype['timestamp'] = undefined;
158
- var _default = exports["default"] = SendSignInValidationCode400Response;
157
+ ResetPassword400Response.prototype['timestamp'] = undefined;
158
+ var _default = exports["default"] = ResetPassword400Response;
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The SendValidationCode200Response model module.
31
31
  * @module model/SendValidationCode200Response
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var SendValidationCode200Response = /*#__PURE__*/function () {
35
35
  /**
@@ -29,18 +29,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The SendValidationCodeRequest model module.
31
31
  * @module model/SendValidationCodeRequest
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var SendValidationCodeRequest = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>SendValidationCodeRequest</code>.
37
37
  * @alias module:model/SendValidationCodeRequest
38
- * @param userId {String} user id
39
- * @param mode {String} Mode - 0 for getting activation code, 1 for password change
38
+ * @param mode {String} Mode - 0 for getting activation code to change email or mobile number, 1 for password change
40
39
  */
41
- function SendValidationCodeRequest(userId, mode) {
40
+ function SendValidationCodeRequest(mode) {
42
41
  _classCallCheck(this, SendValidationCodeRequest);
43
- SendValidationCodeRequest.initialize(this, userId, mode);
42
+ SendValidationCodeRequest.initialize(this, mode);
44
43
  }
45
44
 
46
45
  /**
@@ -50,8 +49,7 @@ var SendValidationCodeRequest = /*#__PURE__*/function () {
50
49
  */
51
50
  return _createClass(SendValidationCodeRequest, null, [{
52
51
  key: "initialize",
53
- value: function initialize(obj, userId, mode) {
54
- obj['user_id'] = userId;
52
+ value: function initialize(obj, mode) {
55
53
  obj['mode'] = mode;
56
54
  }
57
55
 
@@ -73,6 +71,12 @@ var SendValidationCodeRequest = /*#__PURE__*/function () {
73
71
  if (data.hasOwnProperty('mode')) {
74
72
  obj['mode'] = _ApiClient["default"].convertToType(data['mode'], 'String');
75
73
  }
74
+ if (data.hasOwnProperty('mobiles_number')) {
75
+ obj['mobiles_number'] = _ApiClient["default"].convertToType(data['mobiles_number'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('email_id')) {
78
+ obj['email_id'] = _ApiClient["default"].convertToType(data['email_id'], 'String');
79
+ }
76
80
  }
77
81
  return obj;
78
82
  }
@@ -108,11 +112,19 @@ var SendValidationCodeRequest = /*#__PURE__*/function () {
108
112
  if (data['mode'] && !(typeof data['mode'] === 'string' || data['mode'] instanceof String)) {
109
113
  throw new Error("Expected the field `mode` to be a primitive type in the JSON string but got " + data['mode']);
110
114
  }
115
+ // ensure the json data is a string
116
+ if (data['mobiles_number'] && !(typeof data['mobiles_number'] === 'string' || data['mobiles_number'] instanceof String)) {
117
+ throw new Error("Expected the field `mobiles_number` to be a primitive type in the JSON string but got " + data['mobiles_number']);
118
+ }
119
+ // ensure the json data is a string
120
+ if (data['email_id'] && !(typeof data['email_id'] === 'string' || data['email_id'] instanceof String)) {
121
+ throw new Error("Expected the field `email_id` to be a primitive type in the JSON string but got " + data['email_id']);
122
+ }
111
123
  return true;
112
124
  }
113
125
  }]);
114
126
  }();
115
- SendValidationCodeRequest.RequiredProperties = ["user_id", "mode"];
127
+ SendValidationCodeRequest.RequiredProperties = ["mode"];
116
128
 
117
129
  /**
118
130
  * user id
@@ -121,8 +133,18 @@ SendValidationCodeRequest.RequiredProperties = ["user_id", "mode"];
121
133
  SendValidationCodeRequest.prototype['user_id'] = undefined;
122
134
 
123
135
  /**
124
- * Mode - 0 for getting activation code, 1 for password change
136
+ * Mode - 0 for getting activation code to change email or mobile number, 1 for password change
125
137
  * @member {String} mode
126
138
  */
127
139
  SendValidationCodeRequest.prototype['mode'] = undefined;
140
+
141
+ /**
142
+ * @member {String} mobiles_number
143
+ */
144
+ SendValidationCodeRequest.prototype['mobiles_number'] = undefined;
145
+
146
+ /**
147
+ * @member {String} email_id
148
+ */
149
+ SendValidationCodeRequest.prototype['email_id'] = undefined;
128
150
  var _default = exports["default"] = SendValidationCodeRequest;
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The SignInWithEmail200Response model module.
33
33
  * @module model/SignInWithEmail200Response
34
- * @version 1.0.0
34
+ * @version 1.0.1
35
35
  */
36
36
  var SignInWithEmail200Response = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The SignInWithEmail200ResponseProfile model module.
33
33
  * @module model/SignInWithEmail200ResponseProfile
34
- * @version 1.0.0
34
+ * @version 1.0.1
35
35
  */
36
36
  var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
37
37
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The SignInWithEmail200ResponseProfileAvatar model module.
31
31
  * @module model/SignInWithEmail200ResponseProfileAvatar
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var SignInWithEmail200ResponseProfileAvatar = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The SignUp200Response model module.
31
31
  * @module model/SignUp200Response
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var SignUp200Response = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The SignUpResponse model module.
31
31
  * @module model/SignUpResponse
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var SignUpResponse = /*#__PURE__*/function () {
35
35
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The UserDetails model module.
33
33
  * @module model/UserDetails
34
- * @version 1.0.0
34
+ * @version 1.0.1
35
35
  */
36
36
  var UserDetails = /*#__PURE__*/function () {
37
37
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The ValidateCode400Response model module.
32
32
  * @module model/ValidateCode400Response
33
- * @version 1.0.0
33
+ * @version 1.0.1
34
34
  */
35
35
  var ValidateCode400Response = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The ValidateCode400ResponseError model module.
31
31
  * @module model/ValidateCode400ResponseError
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var ValidateCode400ResponseError = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The ValidateCode412Response model module.
31
31
  * @module model/ValidateCode412Response
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var ValidateCode412Response = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The ValidateCodeRequest model module.
31
31
  * @module model/ValidateCodeRequest
32
- * @version 1.0.0
32
+ * @version 1.0.1
33
33
  */
34
34
  var ValidateCodeRequest = /*#__PURE__*/function () {
35
35
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfloor/floor-memory-sdk-js",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "JavaScript SDK for xFloor Memory APIs (Memory + Registration).",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",