@xfloor/floor-memory-sdk-js 1.0.17 → 1.0.19
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.
- package/README.md +2 -2
- package/dist/ApiClient.js +6 -6
- package/dist/api/DefaultApi.js +65 -34
- package/dist/api/EditFloorApi.js +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/GetFloorInformationApi.js +1 -1
- package/dist/api/GetRecentEventsApi.js +1 -1
- package/dist/api/QueryApi.js +1 -1
- package/dist/index.js +7 -7
- package/dist/model/BlockDetails.js +1 -1
- package/dist/model/ChangePassword200Response.js +1 -1
- package/dist/model/EditFloor400Response.js +1 -1
- package/dist/model/EditFloor400ResponseError.js +1 -1
- package/dist/model/Event400Response.js +1 -1
- package/dist/model/Event400ResponseError.js +1 -1
- package/dist/model/EventResponse.js +1 -1
- package/dist/model/FloorInfo.js +1 -1
- package/dist/model/GetFloorInformation200Response.js +1 -1
- package/dist/model/GetRecentEvents200Response.js +1 -1
- package/dist/model/GetRecentEvents200ResponseItemsInner.js +1 -1
- package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +1 -1
- package/dist/model/GetRecentEvents400Response.js +1 -1
- package/dist/model/GetRecentEvents400ResponseError.js +1 -1
- package/dist/model/Media.js +1 -1
- package/dist/model/Model400ErrorCode.js +1 -1
- package/dist/model/Query422Response.js +1 -1
- package/dist/model/Query422ResponseError.js +1 -1
- package/dist/model/QueryRequest.js +1 -1
- package/dist/model/QueryRequestFilters.js +1 -1
- package/dist/model/QueryResponse.js +1 -1
- package/dist/model/QueryResponseItemsInner.js +1 -1
- package/dist/model/Remaining.js +103 -0
- package/dist/model/ResetPassword200Response.js +1 -1
- package/dist/model/ResetPassword400Response.js +1 -1
- package/dist/model/SendValidationCode200Response.js +1 -1
- package/dist/model/SignInWithEmail200Response.js +1 -1
- package/dist/model/SignInWithEmail200ResponsePodInfo.js +37 -13
- package/dist/model/SignInWithEmail200ResponseProfile.js +33 -37
- package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +1 -1
- package/dist/model/SignUp200Response.js +1 -1
- package/dist/model/SignUpResponse.js +1 -1
- package/dist/model/UserDetails.js +1 -1
- package/dist/model/ValidateCode400Response.js +1 -1
- package/dist/model/ValidateCode400ResponseError.js +1 -1
- package/dist/model/ValidateCode412Response.js +1 -1
- package/package.json +1 -1
- 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.
|
|
14
|
+
- Package version: 1.0.19
|
|
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/)
|
|
@@ -173,6 +173,7 @@ api.changeEmail(newEmailId, activationCode, callback);
|
|
|
173
173
|
- [XfloorFloorMemorySdkJs.QueryRequestFilters](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/QueryRequestFilters.md)
|
|
174
174
|
- [XfloorFloorMemorySdkJs.QueryResponse](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/QueryResponse.md)
|
|
175
175
|
- [XfloorFloorMemorySdkJs.QueryResponseItemsInner](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/QueryResponseItemsInner.md)
|
|
176
|
+
- [XfloorFloorMemorySdkJs.Remaining](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Remaining.md)
|
|
176
177
|
- [XfloorFloorMemorySdkJs.ResetPassword200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ResetPassword200Response.md)
|
|
177
178
|
- [XfloorFloorMemorySdkJs.ResetPassword400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ResetPassword400Response.md)
|
|
178
179
|
- [XfloorFloorMemorySdkJs.SendValidationCode200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SendValidationCode200Response.md)
|
|
@@ -186,7 +187,6 @@ api.changeEmail(newEmailId, activationCode, callback);
|
|
|
186
187
|
- [XfloorFloorMemorySdkJs.ValidateCode400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode400Response.md)
|
|
187
188
|
- [XfloorFloorMemorySdkJs.ValidateCode400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode400ResponseError.md)
|
|
188
189
|
- [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
190
|
|
|
191
191
|
|
|
192
192
|
### 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.
|
|
30
|
+
* @version 1.0.19
|
|
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] : '
|
|
46
|
+
var basePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'https://appfloor.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
|
|
51
|
+
* @default https://appfloor.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.
|
|
71
|
+
'User-Agent': 'OpenAPI-Generator/1.0.19/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': "
|
|
527
|
+
'url': "https://appfloor.in",
|
|
528
|
+
'description': "Prod Env"
|
|
529
529
|
}];
|
|
530
530
|
}
|
|
531
531
|
}, {
|
package/dist/api/DefaultApi.js
CHANGED
|
@@ -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.
|
|
43
|
+
* @version 1.0.19
|
|
45
44
|
*/
|
|
46
45
|
var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
47
46
|
/**
|
|
@@ -60,7 +59,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
60
59
|
* Callback function to receive the result of the changeEmail operation.
|
|
61
60
|
* @callback module:api/DefaultApi~changeEmailCallback
|
|
62
61
|
* @param {String} error Error message, if any.
|
|
63
|
-
* @param {
|
|
62
|
+
* @param {module:model/SignInWithEmail200Response} data The data returned by the service call.
|
|
64
63
|
* @param {String} response The complete HTTP response.
|
|
65
64
|
*/
|
|
66
65
|
|
|
@@ -70,7 +69,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
70
69
|
* @param {String} newEmailId New Email ID
|
|
71
70
|
* @param {String} activationCode Validation code
|
|
72
71
|
* @param {module:api/DefaultApi~changeEmailCallback} callback The callback function, accepting three arguments: error, data, response
|
|
73
|
-
* data is of type: {@link
|
|
72
|
+
* data is of type: {@link module:model/SignInWithEmail200Response}
|
|
74
73
|
*/
|
|
75
74
|
return _createClass(DefaultApi, [{
|
|
76
75
|
key: "changeEmail",
|
|
@@ -94,7 +93,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
94
93
|
var authNames = ['bearer'];
|
|
95
94
|
var contentTypes = ['multipart/form-data'];
|
|
96
95
|
var accepts = ['application/json'];
|
|
97
|
-
var returnType =
|
|
96
|
+
var returnType = _SignInWithEmail200Response["default"];
|
|
98
97
|
return this.apiClient.callApi('/auth-service/change/email', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
99
98
|
}
|
|
100
99
|
|
|
@@ -102,33 +101,41 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
102
101
|
* Callback function to receive the result of the changeMobileNumber operation.
|
|
103
102
|
* @callback module:api/DefaultApi~changeMobileNumberCallback
|
|
104
103
|
* @param {String} error Error message, if any.
|
|
105
|
-
* @param {
|
|
104
|
+
* @param {module:model/SignInWithEmail200Response} data The data returned by the service call.
|
|
106
105
|
* @param {String} response The complete HTTP response.
|
|
107
106
|
*/
|
|
108
107
|
|
|
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 {
|
|
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
|
-
* data is of type: {@link
|
|
114
|
+
* data is of type: {@link module:model/SignInWithEmail200Response}
|
|
115
115
|
*/
|
|
116
116
|
}, {
|
|
117
117
|
key: "changeMobileNumber",
|
|
118
|
-
value: function changeMobileNumber(
|
|
119
|
-
var postBody =
|
|
120
|
-
// verify the required parameter '
|
|
121
|
-
if (
|
|
122
|
-
throw new Error("Missing the required parameter '
|
|
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 = ['
|
|
136
|
+
var contentTypes = ['multipart/form-data'];
|
|
130
137
|
var accepts = ['application/json'];
|
|
131
|
-
var returnType =
|
|
138
|
+
var returnType = _SignInWithEmail200Response["default"];
|
|
132
139
|
return this.apiClient.callApi('/auth-service/change/mobile', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
133
140
|
}
|
|
134
141
|
|
|
@@ -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}
|
|
351
|
+
* @param {String} newPassword
|
|
352
|
+
* @param {String} activationCode
|
|
345
353
|
* @param {Object} opts Optional parameters
|
|
346
|
-
* @param {String} [
|
|
347
|
-
* @param {String} [
|
|
348
|
-
* @param {String} [appId]
|
|
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
|
-
|
|
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 {
|
|
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(
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
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 = ['
|
|
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);
|
package/dist/api/EditFloorApi.js
CHANGED
|
@@ -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.
|
|
33
|
+
* @version 1.0.19
|
|
34
34
|
*/
|
|
35
35
|
var EditFloorApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/EventApi.js
CHANGED
|
@@ -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.
|
|
33
|
+
* @version 1.0.19
|
|
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.
|
|
33
|
+
* @version 1.0.19
|
|
34
34
|
*/
|
|
35
35
|
var GetRecentEventsApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/QueryApi.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -177,6 +177,12 @@ Object.defineProperty(exports, "QueryResponseItemsInner", {
|
|
|
177
177
|
return _QueryResponseItemsInner["default"];
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
|
+
Object.defineProperty(exports, "Remaining", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function get() {
|
|
183
|
+
return _Remaining["default"];
|
|
184
|
+
}
|
|
185
|
+
});
|
|
180
186
|
Object.defineProperty(exports, "ResetPassword200Response", {
|
|
181
187
|
enumerable: true,
|
|
182
188
|
get: function get() {
|
|
@@ -255,12 +261,6 @@ Object.defineProperty(exports, "ValidateCode412Response", {
|
|
|
255
261
|
return _ValidateCode412Response["default"];
|
|
256
262
|
}
|
|
257
263
|
});
|
|
258
|
-
Object.defineProperty(exports, "ValidateCodeRequest", {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
get: function get() {
|
|
261
|
-
return _ValidateCodeRequest["default"];
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
264
|
var _ApiClient = _interopRequireDefault(require("./ApiClient"));
|
|
265
265
|
var _BlockDetails = _interopRequireDefault(require("./model/BlockDetails"));
|
|
266
266
|
var _ChangePassword200Response = _interopRequireDefault(require("./model/ChangePassword200Response"));
|
|
@@ -284,6 +284,7 @@ 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 _Remaining = _interopRequireDefault(require("./model/Remaining"));
|
|
287
288
|
var _ResetPassword200Response = _interopRequireDefault(require("./model/ResetPassword200Response"));
|
|
288
289
|
var _ResetPassword400Response = _interopRequireDefault(require("./model/ResetPassword400Response"));
|
|
289
290
|
var _SendValidationCode200Response = _interopRequireDefault(require("./model/SendValidationCode200Response"));
|
|
@@ -297,7 +298,6 @@ var _UserDetails = _interopRequireDefault(require("./model/UserDetails"));
|
|
|
297
298
|
var _ValidateCode400Response = _interopRequireDefault(require("./model/ValidateCode400Response"));
|
|
298
299
|
var _ValidateCode400ResponseError = _interopRequireDefault(require("./model/ValidateCode400ResponseError"));
|
|
299
300
|
var _ValidateCode412Response = _interopRequireDefault(require("./model/ValidateCode412Response"));
|
|
300
|
-
var _ValidateCodeRequest = _interopRequireDefault(require("./model/ValidateCodeRequest"));
|
|
301
301
|
var _DefaultApi = _interopRequireDefault(require("./api/DefaultApi"));
|
|
302
302
|
var _EditFloorApi = _interopRequireDefault(require("./api/EditFloorApi"));
|
|
303
303
|
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 ChangePassword200Response model module.
|
|
33
33
|
* @module model/ChangePassword200Response
|
|
34
|
-
* @version 1.0.
|
|
34
|
+
* @version 1.0.19
|
|
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.
|
|
35
|
+
* @version 1.0.19
|
|
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.
|
|
34
|
+
* @version 1.0.19
|
|
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.
|
|
35
|
+
* @version 1.0.19
|
|
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.
|
|
34
|
+
* @version 1.0.19
|
|
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.
|
|
34
|
+
* @version 1.0.19
|
|
35
35
|
*/
|
|
36
36
|
var EventResponse = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/model/FloorInfo.js
CHANGED
|
@@ -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.
|
|
36
|
+
* @version 1.0.19
|
|
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.
|
|
35
|
+
* @version 1.0.19
|
|
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.
|
|
36
|
+
* @version 1.0.19
|
|
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.
|
|
32
|
+
* @version 1.0.19
|
|
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.
|
|
35
|
+
* @version 1.0.19
|
|
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.
|
|
34
|
+
* @version 1.0.19
|
|
35
35
|
*/
|
|
36
36
|
var GetRecentEvents400ResponseError = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/model/Media.js
CHANGED
|
@@ -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.
|
|
34
|
+
* @version 1.0.19
|
|
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.
|
|
35
|
+
* @version 1.0.19
|
|
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.
|
|
34
|
+
* @version 1.0.19
|
|
35
35
|
*/
|
|
36
36
|
var Query422ResponseError = /*#__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 QueryRequestFilters model module.
|
|
33
33
|
* @module model/QueryRequestFilters
|
|
34
|
-
* @version 1.0.
|
|
34
|
+
* @version 1.0.19
|
|
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.
|
|
35
|
+
* @version 1.0.19
|
|
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.
|
|
31
|
+
* @version 1.0.19
|
|
32
32
|
*/
|
|
33
33
|
var QueryResponseItemsInner = /*#__PURE__*/function () {
|
|
34
34
|
/**
|