@xfloor/floor-memory-sdk-js 1.0.20 → 1.0.21
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 +24 -22
- package/dist/ApiClient.js +2 -2
- package/dist/api/{DefaultApi.js → AuthApi.js} +66 -179
- package/dist/api/EventApi.js +49 -1
- package/dist/api/FloorApi.js +306 -0
- package/dist/api/QueryApi.js +1 -1
- package/dist/index.js +46 -53
- package/dist/model/BlockDetails.js +1 -1
- package/dist/model/{SignInWithEmail200Response.js → ChangeEmail200Response.js} +32 -32
- package/dist/model/{SignInWithEmail200ResponsePodInfo.js → ChangeEmail200ResponsePodInfo.js} +27 -27
- package/dist/model/{SignInWithEmail200ResponseProfile.js → ChangeEmail200ResponseProfile.js} +32 -32
- package/dist/model/{SignInWithEmail200ResponseProfileAvatar.js → ChangeEmail200ResponseProfileAvatar.js} +21 -21
- package/dist/model/ChangePassword200Response.js +1 -1
- package/dist/model/{GetFloorInformation200Response.js → EditFloor200Response.js} +28 -28
- 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/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 +1 -1
- package/dist/model/ResetPassword200Response.js +1 -1
- package/dist/model/ResetPassword400Response.js +1 -1
- package/dist/model/SendValidationCode200Response.js +1 -1
- package/dist/model/SignInResponse.js +145 -0
- package/dist/model/SignUp200Response.js +1 -1
- package/dist/model/SignUpResponse.js +1 -1
- package/dist/model/UserDetails.js +11 -11
- 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/api/EditFloorApi.js +0 -105
- package/dist/api/GetFloorInformationApi.js +0 -95
- package/dist/api/GetRecentEventsApi.js +0 -94
|
@@ -31,23 +31,23 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
/**
|
|
34
|
-
* The
|
|
35
|
-
* @module model/
|
|
36
|
-
* @version 1.0.
|
|
34
|
+
* The EditFloor200Response model module.
|
|
35
|
+
* @module model/EditFloor200Response
|
|
36
|
+
* @version 1.0.21
|
|
37
37
|
*/
|
|
38
|
-
var
|
|
38
|
+
var EditFloor200Response = /*#__PURE__*/function () {
|
|
39
39
|
/**
|
|
40
|
-
* Constructs a new <code>
|
|
41
|
-
* @alias module:model/
|
|
40
|
+
* Constructs a new <code>EditFloor200Response</code>.
|
|
41
|
+
* @alias module:model/EditFloor200Response
|
|
42
42
|
* @param floorId {String} Pod floor ID
|
|
43
43
|
* @param title {String} Title
|
|
44
44
|
* @param floorUid {String} Unique numeric ID of the pod floor
|
|
45
45
|
* @param isOwner {String} Is the user Owner
|
|
46
46
|
* @param floorType {String} Type of floor (POD, PUBLIC or PRIVATE)
|
|
47
47
|
*/
|
|
48
|
-
function
|
|
49
|
-
_classCallCheck(this,
|
|
50
|
-
|
|
48
|
+
function EditFloor200Response(floorId, title, floorUid, isOwner, floorType) {
|
|
49
|
+
_classCallCheck(this, EditFloor200Response);
|
|
50
|
+
EditFloor200Response.initialize(this, floorId, title, floorUid, isOwner, floorType);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
@@ -55,7 +55,7 @@ var GetFloorInformation200Response = /*#__PURE__*/function () {
|
|
|
55
55
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
56
56
|
* Only for internal use.
|
|
57
57
|
*/
|
|
58
|
-
return _createClass(
|
|
58
|
+
return _createClass(EditFloor200Response, null, [{
|
|
59
59
|
key: "initialize",
|
|
60
60
|
value: function initialize(obj, floorId, title, floorUid, isOwner, floorType) {
|
|
61
61
|
obj['floor_id'] = floorId;
|
|
@@ -66,17 +66,17 @@ var GetFloorInformation200Response = /*#__PURE__*/function () {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Constructs a <code>
|
|
69
|
+
* Constructs a <code>EditFloor200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
70
70
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
71
71
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
72
|
-
* @param {module:model/
|
|
73
|
-
* @return {module:model/
|
|
72
|
+
* @param {module:model/EditFloor200Response} obj Optional instance to populate.
|
|
73
|
+
* @return {module:model/EditFloor200Response} The populated <code>EditFloor200Response</code> instance.
|
|
74
74
|
*/
|
|
75
75
|
}, {
|
|
76
76
|
key: "constructFromObject",
|
|
77
77
|
value: function constructFromObject(data, obj) {
|
|
78
78
|
if (data) {
|
|
79
|
-
obj = obj || new
|
|
79
|
+
obj = obj || new EditFloor200Response();
|
|
80
80
|
if (data.hasOwnProperty('floor_id')) {
|
|
81
81
|
obj['floor_id'] = _ApiClient["default"].convertToType(data['floor_id'], 'String');
|
|
82
82
|
}
|
|
@@ -109,15 +109,15 @@ var GetFloorInformation200Response = /*#__PURE__*/function () {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* Validates the JSON data with respect to <code>
|
|
112
|
+
* Validates the JSON data with respect to <code>EditFloor200Response</code>.
|
|
113
113
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
114
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
114
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>EditFloor200Response</code>.
|
|
115
115
|
*/
|
|
116
116
|
}, {
|
|
117
117
|
key: "validateJSON",
|
|
118
118
|
value: function validateJSON(data) {
|
|
119
119
|
// check to make sure all required properties are present in the JSON string
|
|
120
|
-
var _iterator = _createForOfIteratorHelper(
|
|
120
|
+
var _iterator = _createForOfIteratorHelper(EditFloor200Response.RequiredProperties),
|
|
121
121
|
_step;
|
|
122
122
|
try {
|
|
123
123
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -189,58 +189,58 @@ var GetFloorInformation200Response = /*#__PURE__*/function () {
|
|
|
189
189
|
}
|
|
190
190
|
}]);
|
|
191
191
|
}();
|
|
192
|
-
|
|
192
|
+
EditFloor200Response.RequiredProperties = ["floor_id", "title", "floor_uid", "is_owner", "floor_type"];
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* Pod floor ID
|
|
196
196
|
* @member {String} floor_id
|
|
197
197
|
*/
|
|
198
|
-
|
|
198
|
+
EditFloor200Response.prototype['floor_id'] = undefined;
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* Title
|
|
202
202
|
* @member {String} title
|
|
203
203
|
*/
|
|
204
|
-
|
|
204
|
+
EditFloor200Response.prototype['title'] = undefined;
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* Brief description about the Pod floor
|
|
208
208
|
* @member {String} details
|
|
209
209
|
*/
|
|
210
|
-
|
|
210
|
+
EditFloor200Response.prototype['details'] = undefined;
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* Unique numeric ID of the pod floor
|
|
214
214
|
* @member {String} floor_uid
|
|
215
215
|
*/
|
|
216
|
-
|
|
216
|
+
EditFloor200Response.prototype['floor_uid'] = undefined;
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
219
|
* List of blocks
|
|
220
220
|
* @member {Array.<module:model/BlockDetails>} blocks
|
|
221
221
|
*/
|
|
222
|
-
|
|
222
|
+
EditFloor200Response.prototype['blocks'] = undefined;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* @member {module:model/Media} avatar
|
|
226
226
|
*/
|
|
227
|
-
|
|
227
|
+
EditFloor200Response.prototype['avatar'] = undefined;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
230
|
* Is the user Owner
|
|
231
231
|
* @member {String} is_owner
|
|
232
232
|
*/
|
|
233
|
-
|
|
233
|
+
EditFloor200Response.prototype['is_owner'] = undefined;
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
236
|
* Type of floor (POD, PUBLIC or PRIVATE)
|
|
237
237
|
* @member {String} floor_type
|
|
238
238
|
*/
|
|
239
|
-
|
|
239
|
+
EditFloor200Response.prototype['floor_type'] = undefined;
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Optional - Applicable only if pod is present.
|
|
243
243
|
* @member {String} app_id
|
|
244
244
|
*/
|
|
245
|
-
|
|
246
|
-
var _default = exports["default"] =
|
|
245
|
+
EditFloor200Response.prototype['app_id'] = undefined;
|
|
246
|
+
var _default = exports["default"] = EditFloor200Response;
|
|
@@ -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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
35
35
|
*/
|
|
36
36
|
var EventResponse = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/model/FloorInfo.js
CHANGED
|
@@ -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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
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.21
|
|
32
32
|
*/
|
|
33
33
|
var QueryResponseItemsInner = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/model/Remaining.js
CHANGED
|
@@ -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.
|
|
34
|
+
* @version 1.0.21
|
|
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.
|
|
34
|
+
* @version 1.0.21
|
|
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.
|
|
34
|
+
* @version 1.0.21
|
|
35
35
|
*/
|
|
36
36
|
var SendValidationCode200Response = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -0,0 +1,145 @@
|
|
|
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
|
+
var _ChangeEmail200ResponsePodInfo = _interopRequireDefault(require("./ChangeEmail200ResponsePodInfo"));
|
|
9
|
+
var _ChangeEmail200ResponseProfile = _interopRequireDefault(require("./ChangeEmail200ResponseProfile"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
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); }
|
|
12
|
+
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; } } }; }
|
|
13
|
+
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; } }
|
|
14
|
+
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; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
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); } /**
|
|
20
|
+
* Floor Memory
|
|
21
|
+
* 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.
|
|
22
|
+
* - Memory and
|
|
23
|
+
* - 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.
|
|
24
|
+
*
|
|
25
|
+
* The version of the OpenAPI document: 1.0.0
|
|
26
|
+
* Contact: contact@ipomo.in
|
|
27
|
+
*
|
|
28
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
29
|
+
* https://openapi-generator.tech
|
|
30
|
+
* Do not edit the class manually.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* The SignInResponse model module.
|
|
35
|
+
* @module model/SignInResponse
|
|
36
|
+
* @version 1.0.21
|
|
37
|
+
*/
|
|
38
|
+
var SignInResponse = /*#__PURE__*/function () {
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a new <code>SignInResponse</code>.
|
|
41
|
+
* @alias module:model/SignInResponse
|
|
42
|
+
* @param profile {module:model/ChangeEmail200ResponseProfile}
|
|
43
|
+
* @param podInfo {module:model/ChangeEmail200ResponsePodInfo}
|
|
44
|
+
*/
|
|
45
|
+
function SignInResponse(profile, podInfo) {
|
|
46
|
+
_classCallCheck(this, SignInResponse);
|
|
47
|
+
SignInResponse.initialize(this, profile, podInfo);
|
|
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(SignInResponse, null, [{
|
|
56
|
+
key: "initialize",
|
|
57
|
+
value: function initialize(obj, profile, podInfo) {
|
|
58
|
+
obj['profile'] = profile;
|
|
59
|
+
obj['pod_info'] = podInfo;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a <code>SignInResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
64
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
65
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
66
|
+
* @param {module:model/SignInResponse} obj Optional instance to populate.
|
|
67
|
+
* @return {module:model/SignInResponse} The populated <code>SignInResponse</code> instance.
|
|
68
|
+
*/
|
|
69
|
+
}, {
|
|
70
|
+
key: "constructFromObject",
|
|
71
|
+
value: function constructFromObject(data, obj) {
|
|
72
|
+
if (data) {
|
|
73
|
+
obj = obj || new SignInResponse();
|
|
74
|
+
if (data.hasOwnProperty('profile')) {
|
|
75
|
+
obj['profile'] = _ChangeEmail200ResponseProfile["default"].constructFromObject(data['profile']);
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('pod_info')) {
|
|
78
|
+
obj['pod_info'] = _ChangeEmail200ResponsePodInfo["default"].constructFromObject(data['pod_info']);
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('app_id')) {
|
|
81
|
+
obj['app_id'] = _ApiClient["default"].convertToType(data['app_id'], 'String');
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return obj;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Validates the JSON data with respect to <code>SignInResponse</code>.
|
|
89
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
90
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SignInResponse</code>.
|
|
91
|
+
*/
|
|
92
|
+
}, {
|
|
93
|
+
key: "validateJSON",
|
|
94
|
+
value: function validateJSON(data) {
|
|
95
|
+
// check to make sure all required properties are present in the JSON string
|
|
96
|
+
var _iterator = _createForOfIteratorHelper(SignInResponse.RequiredProperties),
|
|
97
|
+
_step;
|
|
98
|
+
try {
|
|
99
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
100
|
+
var property = _step.value;
|
|
101
|
+
if (!data.hasOwnProperty(property)) {
|
|
102
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
// validate the optional field `profile`
|
|
106
|
+
} catch (err) {
|
|
107
|
+
_iterator.e(err);
|
|
108
|
+
} finally {
|
|
109
|
+
_iterator.f();
|
|
110
|
+
}
|
|
111
|
+
if (data['profile']) {
|
|
112
|
+
// data not null
|
|
113
|
+
_ChangeEmail200ResponseProfile["default"].validateJSON(data['profile']);
|
|
114
|
+
}
|
|
115
|
+
// validate the optional field `pod_info`
|
|
116
|
+
if (data['pod_info']) {
|
|
117
|
+
// data not null
|
|
118
|
+
_ChangeEmail200ResponsePodInfo["default"].validateJSON(data['pod_info']);
|
|
119
|
+
}
|
|
120
|
+
// ensure the json data is a string
|
|
121
|
+
if (data['app_id'] && !(typeof data['app_id'] === 'string' || data['app_id'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `app_id` to be a primitive type in the JSON string but got " + data['app_id']);
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
}]);
|
|
127
|
+
}();
|
|
128
|
+
SignInResponse.RequiredProperties = ["profile", "pod_info"];
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @member {module:model/ChangeEmail200ResponseProfile} profile
|
|
132
|
+
*/
|
|
133
|
+
SignInResponse.prototype['profile'] = undefined;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @member {module:model/ChangeEmail200ResponsePodInfo} pod_info
|
|
137
|
+
*/
|
|
138
|
+
SignInResponse.prototype['pod_info'] = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* App ID
|
|
142
|
+
* @member {String} app_id
|
|
143
|
+
*/
|
|
144
|
+
SignInResponse.prototype['app_id'] = undefined;
|
|
145
|
+
var _default = exports["default"] = SignInResponse;
|
|
@@ -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.
|
|
34
|
+
* @version 1.0.21
|
|
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.
|
|
34
|
+
* @version 1.0.21
|
|
35
35
|
*/
|
|
36
36
|
var SignUpResponse = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _ChangeEmail200ResponsePodInfo = _interopRequireDefault(require("./ChangeEmail200ResponsePodInfo"));
|
|
9
|
+
var _ChangeEmail200ResponseProfile = _interopRequireDefault(require("./ChangeEmail200ResponseProfile"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
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); }
|
|
12
12
|
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; } } }; }
|
|
@@ -33,14 +33,14 @@ 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.
|
|
36
|
+
* @version 1.0.21
|
|
37
37
|
*/
|
|
38
38
|
var UserDetails = /*#__PURE__*/function () {
|
|
39
39
|
/**
|
|
40
40
|
* Constructs a new <code>UserDetails</code>.
|
|
41
41
|
* @alias module:model/UserDetails
|
|
42
|
-
* @param profile {module:model/
|
|
43
|
-
* @param podInfo {module:model/
|
|
42
|
+
* @param profile {module:model/ChangeEmail200ResponseProfile}
|
|
43
|
+
* @param podInfo {module:model/ChangeEmail200ResponsePodInfo}
|
|
44
44
|
*/
|
|
45
45
|
function UserDetails(profile, podInfo) {
|
|
46
46
|
_classCallCheck(this, UserDetails);
|
|
@@ -72,10 +72,10 @@ var UserDetails = /*#__PURE__*/function () {
|
|
|
72
72
|
if (data) {
|
|
73
73
|
obj = obj || new UserDetails();
|
|
74
74
|
if (data.hasOwnProperty('profile')) {
|
|
75
|
-
obj['profile'] =
|
|
75
|
+
obj['profile'] = _ChangeEmail200ResponseProfile["default"].constructFromObject(data['profile']);
|
|
76
76
|
}
|
|
77
77
|
if (data.hasOwnProperty('pod_info')) {
|
|
78
|
-
obj['pod_info'] =
|
|
78
|
+
obj['pod_info'] = _ChangeEmail200ResponsePodInfo["default"].constructFromObject(data['pod_info']);
|
|
79
79
|
}
|
|
80
80
|
if (data.hasOwnProperty('app_id')) {
|
|
81
81
|
obj['app_id'] = _ApiClient["default"].convertToType(data['app_id'], 'String');
|
|
@@ -110,12 +110,12 @@ var UserDetails = /*#__PURE__*/function () {
|
|
|
110
110
|
}
|
|
111
111
|
if (data['profile']) {
|
|
112
112
|
// data not null
|
|
113
|
-
|
|
113
|
+
_ChangeEmail200ResponseProfile["default"].validateJSON(data['profile']);
|
|
114
114
|
}
|
|
115
115
|
// validate the optional field `pod_info`
|
|
116
116
|
if (data['pod_info']) {
|
|
117
117
|
// data not null
|
|
118
|
-
|
|
118
|
+
_ChangeEmail200ResponsePodInfo["default"].validateJSON(data['pod_info']);
|
|
119
119
|
}
|
|
120
120
|
// ensure the json data is a string
|
|
121
121
|
if (data['app_id'] && !(typeof data['app_id'] === 'string' || data['app_id'] instanceof String)) {
|
|
@@ -128,12 +128,12 @@ var UserDetails = /*#__PURE__*/function () {
|
|
|
128
128
|
UserDetails.RequiredProperties = ["profile", "pod_info"];
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* @member {module:model/
|
|
131
|
+
* @member {module:model/ChangeEmail200ResponseProfile} profile
|
|
132
132
|
*/
|
|
133
133
|
UserDetails.prototype['profile'] = undefined;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* @member {module:model/
|
|
136
|
+
* @member {module:model/ChangeEmail200ResponsePodInfo} pod_info
|
|
137
137
|
*/
|
|
138
138
|
UserDetails.prototype['pod_info'] = undefined;
|
|
139
139
|
|
|
@@ -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.
|
|
35
|
+
* @version 1.0.21
|
|
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.
|
|
34
|
+
* @version 1.0.21
|
|
35
35
|
*/
|
|
36
36
|
var ValidateCode400ResponseError = /*#__PURE__*/function () {
|
|
37
37
|
/**
|