@xfloor/floor-memory-sdk-js 1.0.17 → 1.0.18

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 +1 -2
  2. package/dist/ApiClient.js +6 -6
  3. package/dist/api/DefaultApi.js +59 -28
  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 +0 -7
  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/ResetPassword200Response.js +1 -1
  33. package/dist/model/ResetPassword400Response.js +1 -1
  34. package/dist/model/SendValidationCode200Response.js +1 -1
  35. package/dist/model/SignInWithEmail200Response.js +1 -1
  36. package/dist/model/SignInWithEmail200ResponsePodInfo.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/package.json +1 -1
  46. package/dist/model/ValidateCodeRequest.js +0 -160
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.17
14
+ - Package version: 1.0.18
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/)
@@ -186,7 +186,6 @@ api.changeEmail(newEmailId, activationCode, callback);
186
186
  - [XfloorFloorMemorySdkJs.ValidateCode400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode400Response.md)
187
187
  - [XfloorFloorMemorySdkJs.ValidateCode400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode400ResponseError.md)
188
188
  - [XfloorFloorMemorySdkJs.ValidateCode412Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode412Response.md)
189
- - [XfloorFloorMemorySdkJs.ValidateCodeRequest](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCodeRequest.md)
190
189
 
191
190
 
192
191
  ### Documentation for Authorization
package/dist/ApiClient.js CHANGED
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  */
28
28
  /**
29
29
  * @module ApiClient
30
- * @version 1.0.17
30
+ * @version 1.0.18
31
31
  */
32
32
  /**
33
33
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -43,12 +43,12 @@ var ApiClient = /*#__PURE__*/function () {
43
43
  * @param {String} basePath
44
44
  */
45
45
  function ApiClient() {
46
- var basePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'http://localhost';
46
+ var basePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'https://floortv.in';
47
47
  _classCallCheck(this, ApiClient);
48
48
  /**
49
49
  * The base URL against which to resolve every API call's (relative) path.
50
50
  * @type {String}
51
- * @default http://localhost
51
+ * @default https://floortv.in
52
52
  */
53
53
  this.basePath = basePath.replace(/\/+$/, '');
54
54
 
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
68
68
  * @default {}
69
69
  */
70
70
  this.defaultHeaders = {
71
- 'User-Agent': 'OpenAPI-Generator/1.0.17/Javascript'
71
+ 'User-Agent': 'OpenAPI-Generator/1.0.18/Javascript'
72
72
  };
73
73
 
74
74
  /**
@@ -524,8 +524,8 @@ var ApiClient = /*#__PURE__*/function () {
524
524
  */
525
525
  function hostSettings() {
526
526
  return [{
527
- 'url': "",
528
- 'description': "No description provided"
527
+ 'url': "https://floortv.in",
528
+ 'description': "Testing Env"
529
529
  }];
530
530
  }
531
531
  }, {
@@ -17,7 +17,6 @@ var _SignUp200Response = _interopRequireDefault(require("../model/SignUp200Respo
17
17
  var _UserDetails = _interopRequireDefault(require("../model/UserDetails"));
18
18
  var _ValidateCode400Response = _interopRequireDefault(require("../model/ValidateCode400Response"));
19
19
  var _ValidateCode412Response = _interopRequireDefault(require("../model/ValidateCode412Response"));
20
- var _ValidateCodeRequest = _interopRequireDefault(require("../model/ValidateCodeRequest"));
21
20
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
22
21
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
23
22
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -41,7 +40,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
41
40
  /**
42
41
  * Default service.
43
42
  * @module api/DefaultApi
44
- * @version 1.0.17
43
+ * @version 1.0.18
45
44
  */
46
45
  var DefaultApi = exports["default"] = /*#__PURE__*/function () {
47
46
  /**
@@ -109,24 +108,32 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
109
108
  /**
110
109
  * Change Mobile number
111
110
  * Updates the mobile number associated with an existing user account after validating a one-time activation code sent to the **new mobile number**. This operation can only be performed by a **logged-in user**. When a user initiates a mobile number change, an activation code is sent to the newly provided mobile number. The mobile number update takes effect only after the activation code is successfully validated. If the activation code validation fails, the mobile number remains unchanged. --- ### **Authentication** This endpoint requires **Bearer Token authentication**. ``` Authorization: Bearer <access_token> ``` --- ### **Request Body** ```json { \"user_id\": \"string\", \"new_mobile_number\": \"string\", \"activation_code\": \"string\" } ``` **Field Description** * `user_id` – Unique identifier of the logged-in user * `new_mobile_number` – New mobile number to be associated with the account * `activation_code` – One-time activation code sent to the new mobile number for verification --- ### **Flow Summary** 1. User is authenticated and logged in 2. User requests to change mobile number 3. System sends an activation code to the **new mobile number** 4. User submits the activation code via this API 5. On successful validation, the mobile number is updated --- ### **Successful Response** On successful validation: * The activation code is verified * The user’s mobile number is updated immediately * A `success` string is returned confirming the mobile number change --- ### **Error Response** The API returns an error response if: * The activation code is invalid or expired * The activation code does not match the user or mobile number * The new mobile number is already in use * Authorization fails or the bearer token is missing or invalid In all error cases, the existing mobile number remains unchanged. --- ### **Behavior Notes** * Requires a prior call to `/auth-service/send/validation/code` with the proper mode. --- ### **Security Notes (Recommended)** * Activation codes are single-use and time-bound * Mobile number changes require prior authentication * Rate limiting may be applied to prevent abuse --- ### **One-Line Summary** > Changes a user’s mobile number after validating an activation code sent to the new mobile number.
112
- * @param {Object.<String, Object>} body
111
+ * @param {String} newMobileNumber New mobile number
112
+ * @param {String} activationCode Activation code
113
113
  * @param {module:api/DefaultApi~changeMobileNumberCallback} callback The callback function, accepting three arguments: error, data, response
114
114
  * data is of type: {@link Object}
115
115
  */
116
116
  }, {
117
117
  key: "changeMobileNumber",
118
- value: function changeMobileNumber(body, callback) {
119
- var postBody = body;
120
- // verify the required parameter 'body' is set
121
- if (body === undefined || body === null) {
122
- throw new Error("Missing the required parameter 'body' when calling changeMobileNumber");
118
+ value: function changeMobileNumber(newMobileNumber, activationCode, callback) {
119
+ var postBody = null;
120
+ // verify the required parameter 'newMobileNumber' is set
121
+ if (newMobileNumber === undefined || newMobileNumber === null) {
122
+ throw new Error("Missing the required parameter 'newMobileNumber' when calling changeMobileNumber");
123
+ }
124
+ // verify the required parameter 'activationCode' is set
125
+ if (activationCode === undefined || activationCode === null) {
126
+ throw new Error("Missing the required parameter 'activationCode' when calling changeMobileNumber");
123
127
  }
124
128
  var pathParams = {};
125
129
  var queryParams = {};
126
130
  var headerParams = {};
127
- var formParams = {};
131
+ var formParams = {
132
+ 'new_mobile_number': newMobileNumber,
133
+ 'activation_code': activationCode
134
+ };
128
135
  var authNames = ['bearer'];
129
- var contentTypes = ['application/json'];
136
+ var contentTypes = ['multipart/form-data'];
130
137
  var accepts = ['application/json'];
131
138
  var returnType = Object;
132
139
  return this.apiClient.callApi('/auth-service/change/mobile', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
@@ -341,34 +348,40 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
341
348
  /**
342
349
  * Reset Password
343
350
  * --- ## 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.
344
- * @param {String} activationCode Activation Code
351
+ * @param {String} newPassword
352
+ * @param {String} activationCode
345
353
  * @param {Object} opts Optional parameters
346
- * @param {String} [emailId] Email ID
347
- * @param {String} [mobileNumber] Mobile number
348
- * @param {String} [appId] App ID
354
+ * @param {String} [mobileNumber]
355
+ * @param {String} [emailId]
356
+ * @param {String} [appId]
349
357
  * @param {module:api/DefaultApi~resetPasswordCallback} callback The callback function, accepting three arguments: error, data, response
350
358
  * data is of type: {@link module:model/ResetPassword200Response}
351
359
  */
352
360
  }, {
353
361
  key: "resetPassword",
354
- value: function resetPassword(activationCode, opts, callback) {
362
+ value: function resetPassword(newPassword, activationCode, opts, callback) {
355
363
  opts = opts || {};
356
364
  var postBody = null;
365
+ // verify the required parameter 'newPassword' is set
366
+ if (newPassword === undefined || newPassword === null) {
367
+ throw new Error("Missing the required parameter 'newPassword' when calling resetPassword");
368
+ }
357
369
  // verify the required parameter 'activationCode' is set
358
370
  if (activationCode === undefined || activationCode === null) {
359
371
  throw new Error("Missing the required parameter 'activationCode' when calling resetPassword");
360
372
  }
361
373
  var pathParams = {};
362
- var queryParams = {
363
- 'email_id': opts['emailId'],
374
+ var queryParams = {};
375
+ var headerParams = {};
376
+ var formParams = {
364
377
  'mobile_number': opts['mobileNumber'],
378
+ 'email_id': opts['emailId'],
379
+ 'new_password': newPassword,
365
380
  'activation_code': activationCode,
366
381
  'app_id': opts['appId']
367
382
  };
368
- var headerParams = {};
369
- var formParams = {};
370
383
  var authNames = [];
371
- var contentTypes = [];
384
+ var contentTypes = ['multipart/form-data'];
372
385
  var accepts = ['application/json'];
373
386
  var returnType = _ResetPassword200Response["default"];
374
387
  return this.apiClient.callApi('/auth-service/password/reset', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
@@ -585,24 +598,42 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
585
598
  /**
586
599
  * Validation
587
600
  * ## **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.
588
- * @param {module:model/ValidateCodeRequest} validateCodeRequest
601
+ * @param {String} userId
602
+ * @param {String} activationCode
603
+ * @param {String} mode
604
+ * @param {Object} opts Optional parameters
605
+ * @param {String} [appId]
589
606
  * @param {module:api/DefaultApi~validateCodeCallback} callback The callback function, accepting three arguments: error, data, response
590
607
  * data is of type: {@link module:model/UserDetails}
591
608
  */
592
609
  }, {
593
610
  key: "validateCode",
594
- value: function validateCode(validateCodeRequest, callback) {
595
- var postBody = validateCodeRequest;
596
- // verify the required parameter 'validateCodeRequest' is set
597
- if (validateCodeRequest === undefined || validateCodeRequest === null) {
598
- throw new Error("Missing the required parameter 'validateCodeRequest' when calling validateCode");
611
+ value: function validateCode(userId, activationCode, mode, opts, callback) {
612
+ opts = opts || {};
613
+ var postBody = null;
614
+ // verify the required parameter 'userId' is set
615
+ if (userId === undefined || userId === null) {
616
+ throw new Error("Missing the required parameter 'userId' when calling validateCode");
617
+ }
618
+ // verify the required parameter 'activationCode' is set
619
+ if (activationCode === undefined || activationCode === null) {
620
+ throw new Error("Missing the required parameter 'activationCode' when calling validateCode");
621
+ }
622
+ // verify the required parameter 'mode' is set
623
+ if (mode === undefined || mode === null) {
624
+ throw new Error("Missing the required parameter 'mode' when calling validateCode");
599
625
  }
600
626
  var pathParams = {};
601
627
  var queryParams = {};
602
628
  var headerParams = {};
603
- var formParams = {};
629
+ var formParams = {
630
+ 'user_id': userId,
631
+ 'activation_code': activationCode,
632
+ 'mode': mode,
633
+ 'app_id': opts['appId']
634
+ };
604
635
  var authNames = ['bearer'];
605
- var contentTypes = ['application/json'];
636
+ var contentTypes = ['multipart/form-data'];
606
637
  var accepts = ['application/json'];
607
638
  var returnType = _UserDetails["default"];
608
639
  return this.apiClient.callApi('/auth-service/validate/activation/code', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * EditFloor service.
32
32
  * @module api/EditFloorApi
33
- * @version 1.0.17
33
+ * @version 1.0.18
34
34
  */
35
35
  var EditFloorApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Event service.
32
32
  * @module api/EventApi
33
- * @version 1.0.17
33
+ * @version 1.0.18
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * GetFloorInformation service.
32
32
  * @module api/GetFloorInformationApi
33
- * @version 1.0.17
33
+ * @version 1.0.18
34
34
  */
35
35
  var GetFloorInformationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * GetRecentEvents service.
32
32
  * @module api/GetRecentEventsApi
33
- * @version 1.0.17
33
+ * @version 1.0.18
34
34
  */
35
35
  var GetRecentEventsApi = exports["default"] = /*#__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
  * Query service.
33
33
  * @module api/QueryApi
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var QueryApi = exports["default"] = /*#__PURE__*/function () {
37
37
  /**
package/dist/index.js CHANGED
@@ -255,12 +255,6 @@ Object.defineProperty(exports, "ValidateCode412Response", {
255
255
  return _ValidateCode412Response["default"];
256
256
  }
257
257
  });
258
- Object.defineProperty(exports, "ValidateCodeRequest", {
259
- enumerable: true,
260
- get: function get() {
261
- return _ValidateCodeRequest["default"];
262
- }
263
- });
264
258
  var _ApiClient = _interopRequireDefault(require("./ApiClient"));
265
259
  var _BlockDetails = _interopRequireDefault(require("./model/BlockDetails"));
266
260
  var _ChangePassword200Response = _interopRequireDefault(require("./model/ChangePassword200Response"));
@@ -297,7 +291,6 @@ var _UserDetails = _interopRequireDefault(require("./model/UserDetails"));
297
291
  var _ValidateCode400Response = _interopRequireDefault(require("./model/ValidateCode400Response"));
298
292
  var _ValidateCode400ResponseError = _interopRequireDefault(require("./model/ValidateCode400ResponseError"));
299
293
  var _ValidateCode412Response = _interopRequireDefault(require("./model/ValidateCode412Response"));
300
- var _ValidateCodeRequest = _interopRequireDefault(require("./model/ValidateCodeRequest"));
301
294
  var _DefaultApi = _interopRequireDefault(require("./api/DefaultApi"));
302
295
  var _EditFloorApi = _interopRequireDefault(require("./api/EditFloorApi"));
303
296
  var _EventApi = _interopRequireDefault(require("./api/EventApi"));
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The BlockDetails model module.
33
33
  * @module model/BlockDetails
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var BlockDetails = /*#__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 ChangePassword200Response model module.
33
33
  * @module model/ChangePassword200Response
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var ChangePassword200Response = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The EditFloor400Response model module.
34
34
  * @module model/EditFloor400Response
35
- * @version 1.0.17
35
+ * @version 1.0.18
36
36
  */
37
37
  var EditFloor400Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The EditFloor400ResponseError model module.
33
33
  * @module model/EditFloor400ResponseError
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var EditFloor400ResponseError = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The Event400Response model module.
34
34
  * @module model/Event400Response
35
- * @version 1.0.17
35
+ * @version 1.0.18
36
36
  */
37
37
  var Event400Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Event400ResponseError model module.
33
33
  * @module model/Event400ResponseError
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var Event400ResponseError = /*#__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 EventResponse model module.
33
33
  * @module model/EventResponse
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var EventResponse = /*#__PURE__*/function () {
37
37
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The FloorInfo model module.
35
35
  * @module model/FloorInfo
36
- * @version 1.0.17
36
+ * @version 1.0.18
37
37
  */
38
38
  var FloorInfo = /*#__PURE__*/function () {
39
39
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The GetFloorInformation200Response model module.
35
35
  * @module model/GetFloorInformation200Response
36
- * @version 1.0.17
36
+ * @version 1.0.18
37
37
  */
38
38
  var GetFloorInformation200Response = /*#__PURE__*/function () {
39
39
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The GetRecentEvents200Response model module.
34
34
  * @module model/GetRecentEvents200Response
35
- * @version 1.0.17
35
+ * @version 1.0.18
36
36
  */
37
37
  var GetRecentEvents200Response = /*#__PURE__*/function () {
38
38
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The GetRecentEvents200ResponseItemsInner model module.
35
35
  * @module model/GetRecentEvents200ResponseItemsInner
36
- * @version 1.0.17
36
+ * @version 1.0.18
37
37
  */
38
38
  var GetRecentEvents200ResponseItemsInner = /*#__PURE__*/function () {
39
39
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The GetRecentEvents200ResponseItemsInnerAuthor model module.
31
31
  * @module model/GetRecentEvents200ResponseItemsInnerAuthor
32
- * @version 1.0.17
32
+ * @version 1.0.18
33
33
  */
34
34
  var GetRecentEvents200ResponseItemsInnerAuthor = /*#__PURE__*/function () {
35
35
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The GetRecentEvents400Response model module.
34
34
  * @module model/GetRecentEvents400Response
35
- * @version 1.0.17
35
+ * @version 1.0.18
36
36
  */
37
37
  var GetRecentEvents400Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetRecentEvents400ResponseError model module.
33
33
  * @module model/GetRecentEvents400ResponseError
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var GetRecentEvents400ResponseError = /*#__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 Media model module.
33
33
  * @module model/Media
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var Media = /*#__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 Model400ErrorCode model module.
33
33
  * @module model/Model400ErrorCode
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var Model400ErrorCode = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The Query422Response model module.
34
34
  * @module model/Query422Response
35
- * @version 1.0.17
35
+ * @version 1.0.18
36
36
  */
37
37
  var Query422Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Query422ResponseError model module.
33
33
  * @module model/Query422ResponseError
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var Query422ResponseError = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The QueryRequest model module.
34
34
  * @module model/QueryRequest
35
- * @version 1.0.17
35
+ * @version 1.0.18
36
36
  */
37
37
  var QueryRequest = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The QueryRequestFilters model module.
33
33
  * @module model/QueryRequestFilters
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var QueryRequestFilters = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The QueryResponse model module.
34
34
  * @module model/QueryResponse
35
- * @version 1.0.17
35
+ * @version 1.0.18
36
36
  */
37
37
  var QueryResponse = /*#__PURE__*/function () {
38
38
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The QueryResponseItemsInner model module.
30
30
  * @module model/QueryResponseItemsInner
31
- * @version 1.0.17
31
+ * @version 1.0.18
32
32
  */
33
33
  var QueryResponseItemsInner = /*#__PURE__*/function () {
34
34
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The ResetPassword200Response model module.
33
33
  * @module model/ResetPassword200Response
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var ResetPassword200Response = /*#__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 ResetPassword400Response model module.
33
33
  * @module model/ResetPassword400Response
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var ResetPassword400Response = /*#__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 SendValidationCode200Response model module.
33
33
  * @module model/SendValidationCode200Response
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var SendValidationCode200Response = /*#__PURE__*/function () {
37
37
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The SignInWithEmail200Response model module.
35
35
  * @module model/SignInWithEmail200Response
36
- * @version 1.0.17
36
+ * @version 1.0.18
37
37
  */
38
38
  var SignInWithEmail200Response = /*#__PURE__*/function () {
39
39
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The SignInWithEmail200ResponsePodInfo model module.
35
35
  * @module model/SignInWithEmail200ResponsePodInfo
36
- * @version 1.0.17
36
+ * @version 1.0.18
37
37
  */
38
38
  var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
39
39
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The SignInWithEmail200ResponseProfile model module.
35
35
  * @module model/SignInWithEmail200ResponseProfile
36
- * @version 1.0.17
36
+ * @version 1.0.18
37
37
  */
38
38
  var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
39
39
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The SignInWithEmail200ResponseProfileAvatar model module.
33
33
  * @module model/SignInWithEmail200ResponseProfileAvatar
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var SignInWithEmail200ResponseProfileAvatar = /*#__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 SignUp200Response model module.
33
33
  * @module model/SignUp200Response
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var SignUp200Response = /*#__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 SignUpResponse model module.
33
33
  * @module model/SignUpResponse
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var SignUpResponse = /*#__PURE__*/function () {
37
37
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The UserDetails model module.
35
35
  * @module model/UserDetails
36
- * @version 1.0.17
36
+ * @version 1.0.18
37
37
  */
38
38
  var UserDetails = /*#__PURE__*/function () {
39
39
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The ValidateCode400Response model module.
34
34
  * @module model/ValidateCode400Response
35
- * @version 1.0.17
35
+ * @version 1.0.18
36
36
  */
37
37
  var ValidateCode400Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The ValidateCode400ResponseError model module.
33
33
  * @module model/ValidateCode400ResponseError
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var ValidateCode400ResponseError = /*#__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 ValidateCode412Response model module.
33
33
  * @module model/ValidateCode412Response
34
- * @version 1.0.17
34
+ * @version 1.0.18
35
35
  */
36
36
  var ValidateCode412Response = /*#__PURE__*/function () {
37
37
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfloor/floor-memory-sdk-js",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "JavaScript SDK for xFloor Memory APIs (Memory + Registration).",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,160 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
- * Floor Memory
19
- * The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts.
20
- * - Memory and
21
- * - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
22
- *
23
- * The version of the OpenAPI document: 1.0.0
24
- * Contact: contact@ipomo.in
25
- *
26
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
- * https://openapi-generator.tech
28
- * Do not edit the class manually.
29
- *
30
- */
31
- /**
32
- * The ValidateCodeRequest model module.
33
- * @module model/ValidateCodeRequest
34
- * @version 1.0.17
35
- */
36
- var ValidateCodeRequest = /*#__PURE__*/function () {
37
- /**
38
- * Constructs a new <code>ValidateCodeRequest</code>.
39
- * @alias module:model/ValidateCodeRequest
40
- * @param userId {String} User ID
41
- * @param activationCode {String} Validation code
42
- * @param appId {String} App ID which is given while registering as developer
43
- * @param mode {String} 4 for sign up, 5 for login
44
- */
45
- function ValidateCodeRequest(userId, activationCode, appId, mode) {
46
- _classCallCheck(this, ValidateCodeRequest);
47
- ValidateCodeRequest.initialize(this, userId, activationCode, appId, mode);
48
- }
49
-
50
- /**
51
- * Initializes the fields of this object.
52
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
53
- * Only for internal use.
54
- */
55
- return _createClass(ValidateCodeRequest, null, [{
56
- key: "initialize",
57
- value: function initialize(obj, userId, activationCode, appId, mode) {
58
- obj['user_id'] = userId;
59
- obj['activation_code'] = activationCode;
60
- obj['app_id'] = appId;
61
- obj['mode'] = mode;
62
- }
63
-
64
- /**
65
- * Constructs a <code>ValidateCodeRequest</code> from a plain JavaScript object, optionally creating a new instance.
66
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
67
- * @param {Object} data The plain JavaScript object bearing properties of interest.
68
- * @param {module:model/ValidateCodeRequest} obj Optional instance to populate.
69
- * @return {module:model/ValidateCodeRequest} The populated <code>ValidateCodeRequest</code> instance.
70
- */
71
- }, {
72
- key: "constructFromObject",
73
- value: function constructFromObject(data, obj) {
74
- if (data) {
75
- obj = obj || new ValidateCodeRequest();
76
- if (data.hasOwnProperty('user_id')) {
77
- obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
78
- }
79
- if (data.hasOwnProperty('activation_code')) {
80
- obj['activation_code'] = _ApiClient["default"].convertToType(data['activation_code'], 'String');
81
- }
82
- if (data.hasOwnProperty('app_id')) {
83
- obj['app_id'] = _ApiClient["default"].convertToType(data['app_id'], 'String');
84
- }
85
- if (data.hasOwnProperty('mode')) {
86
- obj['mode'] = _ApiClient["default"].convertToType(data['mode'], 'String');
87
- }
88
- }
89
- return obj;
90
- }
91
-
92
- /**
93
- * Validates the JSON data with respect to <code>ValidateCodeRequest</code>.
94
- * @param {Object} data The plain JavaScript object bearing properties of interest.
95
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ValidateCodeRequest</code>.
96
- */
97
- }, {
98
- key: "validateJSON",
99
- value: function validateJSON(data) {
100
- // check to make sure all required properties are present in the JSON string
101
- var _iterator = _createForOfIteratorHelper(ValidateCodeRequest.RequiredProperties),
102
- _step;
103
- try {
104
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
105
- var property = _step.value;
106
- if (!data.hasOwnProperty(property)) {
107
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
108
- }
109
- }
110
- // ensure the json data is a string
111
- } catch (err) {
112
- _iterator.e(err);
113
- } finally {
114
- _iterator.f();
115
- }
116
- if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
117
- throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
118
- }
119
- // ensure the json data is a string
120
- if (data['activation_code'] && !(typeof data['activation_code'] === 'string' || data['activation_code'] instanceof String)) {
121
- throw new Error("Expected the field `activation_code` to be a primitive type in the JSON string but got " + data['activation_code']);
122
- }
123
- // ensure the json data is a string
124
- if (data['app_id'] && !(typeof data['app_id'] === 'string' || data['app_id'] instanceof String)) {
125
- throw new Error("Expected the field `app_id` to be a primitive type in the JSON string but got " + data['app_id']);
126
- }
127
- // ensure the json data is a string
128
- if (data['mode'] && !(typeof data['mode'] === 'string' || data['mode'] instanceof String)) {
129
- throw new Error("Expected the field `mode` to be a primitive type in the JSON string but got " + data['mode']);
130
- }
131
- return true;
132
- }
133
- }]);
134
- }();
135
- ValidateCodeRequest.RequiredProperties = ["user_id", "activation_code", "app_id", "mode"];
136
-
137
- /**
138
- * User ID
139
- * @member {String} user_id
140
- */
141
- ValidateCodeRequest.prototype['user_id'] = undefined;
142
-
143
- /**
144
- * Validation code
145
- * @member {String} activation_code
146
- */
147
- ValidateCodeRequest.prototype['activation_code'] = undefined;
148
-
149
- /**
150
- * App ID which is given while registering as developer
151
- * @member {String} app_id
152
- */
153
- ValidateCodeRequest.prototype['app_id'] = undefined;
154
-
155
- /**
156
- * 4 for sign up, 5 for login
157
- * @member {String} mode
158
- */
159
- ValidateCodeRequest.prototype['mode'] = undefined;
160
- var _default = exports["default"] = ValidateCodeRequest;