@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.
Files changed (47) hide show
  1. package/README.md +2 -2
  2. package/dist/ApiClient.js +6 -6
  3. package/dist/api/DefaultApi.js +65 -34
  4. package/dist/api/EditFloorApi.js +1 -1
  5. package/dist/api/EventApi.js +1 -1
  6. package/dist/api/GetFloorInformationApi.js +1 -1
  7. package/dist/api/GetRecentEventsApi.js +1 -1
  8. package/dist/api/QueryApi.js +1 -1
  9. package/dist/index.js +7 -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/Remaining.js +103 -0
  33. package/dist/model/ResetPassword200Response.js +1 -1
  34. package/dist/model/ResetPassword400Response.js +1 -1
  35. package/dist/model/SendValidationCode200Response.js +1 -1
  36. package/dist/model/SignInWithEmail200Response.js +1 -1
  37. package/dist/model/SignInWithEmail200ResponsePodInfo.js +37 -13
  38. package/dist/model/SignInWithEmail200ResponseProfile.js +33 -37
  39. package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +1 -1
  40. package/dist/model/SignUp200Response.js +1 -1
  41. package/dist/model/SignUpResponse.js +1 -1
  42. package/dist/model/UserDetails.js +1 -1
  43. package/dist/model/ValidateCode400Response.js +1 -1
  44. package/dist/model/ValidateCode400ResponseError.js +1 -1
  45. package/dist/model/ValidateCode412Response.js +1 -1
  46. package/package.json +1 -1
  47. package/dist/model/ValidateCodeRequest.js +0 -160
@@ -0,0 +1,103 @@
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
+ 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); } /**
15
+ * Floor Memory
16
+ * 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.
17
+ * - Memory and
18
+ * - 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.
19
+ *
20
+ * The version of the OpenAPI document: 1.0.0
21
+ * Contact: contact@ipomo.in
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The Remaining model module.
30
+ * @module model/Remaining
31
+ * @version 1.0.19
32
+ */
33
+ var Remaining = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>Remaining</code>.
36
+ * @alias module:model/Remaining
37
+ */
38
+ function Remaining() {
39
+ _classCallCheck(this, Remaining);
40
+ Remaining.initialize(this);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ return _createClass(Remaining, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj) {}
51
+
52
+ /**
53
+ * Constructs a <code>Remaining</code> from a plain JavaScript object, optionally creating a new instance.
54
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
55
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
56
+ * @param {module:model/Remaining} obj Optional instance to populate.
57
+ * @return {module:model/Remaining} The populated <code>Remaining</code> instance.
58
+ */
59
+ }, {
60
+ key: "constructFromObject",
61
+ value: function constructFromObject(data, obj) {
62
+ if (data) {
63
+ obj = obj || new Remaining();
64
+ if (data.hasOwnProperty('permitted')) {
65
+ obj['permitted'] = _ApiClient["default"].convertToType(data['permitted'], 'String');
66
+ }
67
+ if (data.hasOwnProperty('remaining')) {
68
+ obj['remaining'] = _ApiClient["default"].convertToType(data['remaining'], 'String');
69
+ }
70
+ }
71
+ return obj;
72
+ }
73
+
74
+ /**
75
+ * Validates the JSON data with respect to <code>Remaining</code>.
76
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
77
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Remaining</code>.
78
+ */
79
+ }, {
80
+ key: "validateJSON",
81
+ value: function validateJSON(data) {
82
+ // ensure the json data is a string
83
+ if (data['permitted'] && !(typeof data['permitted'] === 'string' || data['permitted'] instanceof String)) {
84
+ throw new Error("Expected the field `permitted` to be a primitive type in the JSON string but got " + data['permitted']);
85
+ }
86
+ // ensure the json data is a string
87
+ if (data['remaining'] && !(typeof data['remaining'] === 'string' || data['remaining'] instanceof String)) {
88
+ throw new Error("Expected the field `remaining` to be a primitive type in the JSON string but got " + data['remaining']);
89
+ }
90
+ return true;
91
+ }
92
+ }]);
93
+ }();
94
+ /**
95
+ * @member {String} permitted
96
+ */
97
+ Remaining.prototype['permitted'] = undefined;
98
+
99
+ /**
100
+ * @member {String} remaining
101
+ */
102
+ Remaining.prototype['remaining'] = undefined;
103
+ var _default = exports["default"] = Remaining;
@@ -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.19
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.19
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.19
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.19
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.19
37
37
  */
38
38
  var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
39
39
  /**
@@ -41,12 +41,12 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
41
41
  * @alias module:model/SignInWithEmail200ResponsePodInfo
42
42
  * @param floorId {String}
43
43
  * @param title {String}
44
- * @param fid {String}
44
+ * @param floorUid {String}
45
45
  * @param blocks {Array.<module:model/BlockDetails>}
46
46
  */
47
- function SignInWithEmail200ResponsePodInfo(floorId, title, fid, blocks) {
47
+ function SignInWithEmail200ResponsePodInfo(floorId, title, floorUid, blocks) {
48
48
  _classCallCheck(this, SignInWithEmail200ResponsePodInfo);
49
- SignInWithEmail200ResponsePodInfo.initialize(this, floorId, title, fid, blocks);
49
+ SignInWithEmail200ResponsePodInfo.initialize(this, floorId, title, floorUid, blocks);
50
50
  }
51
51
 
52
52
  /**
@@ -56,10 +56,10 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
56
56
  */
57
57
  return _createClass(SignInWithEmail200ResponsePodInfo, null, [{
58
58
  key: "initialize",
59
- value: function initialize(obj, floorId, title, fid, blocks) {
59
+ value: function initialize(obj, floorId, title, floorUid, blocks) {
60
60
  obj['floor_id'] = floorId;
61
61
  obj['title'] = title;
62
- obj['fid'] = fid;
62
+ obj['floor_uid'] = floorUid;
63
63
  obj['blocks'] = blocks;
64
64
  }
65
65
 
@@ -78,14 +78,20 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
78
78
  if (data.hasOwnProperty('floor_id')) {
79
79
  obj['floor_id'] = _ApiClient["default"].convertToType(data['floor_id'], 'String');
80
80
  }
81
+ if (data.hasOwnProperty('is_owner')) {
82
+ obj['is_owner'] = _ApiClient["default"].convertToType(data['is_owner'], 'String');
83
+ }
84
+ if (data.hasOwnProperty('app_id')) {
85
+ obj['app_id'] = _ApiClient["default"].convertToType(data['app_id'], 'String');
86
+ }
81
87
  if (data.hasOwnProperty('title')) {
82
88
  obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
83
89
  }
84
90
  if (data.hasOwnProperty('details')) {
85
91
  obj['details'] = _ApiClient["default"].convertToType(data['details'], 'String');
86
92
  }
87
- if (data.hasOwnProperty('fid')) {
88
- obj['fid'] = _ApiClient["default"].convertToType(data['fid'], 'String');
93
+ if (data.hasOwnProperty('floor_uid')) {
94
+ obj['floor_uid'] = _ApiClient["default"].convertToType(data['floor_uid'], 'String');
89
95
  }
90
96
  if (data.hasOwnProperty('blocks')) {
91
97
  obj['blocks'] = _ApiClient["default"].convertToType(data['blocks'], [_BlockDetails["default"]]);
@@ -125,6 +131,14 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
125
131
  throw new Error("Expected the field `floor_id` to be a primitive type in the JSON string but got " + data['floor_id']);
126
132
  }
127
133
  // ensure the json data is a string
134
+ if (data['is_owner'] && !(typeof data['is_owner'] === 'string' || data['is_owner'] instanceof String)) {
135
+ throw new Error("Expected the field `is_owner` to be a primitive type in the JSON string but got " + data['is_owner']);
136
+ }
137
+ // ensure the json data is a string
138
+ if (data['app_id'] && !(typeof data['app_id'] === 'string' || data['app_id'] instanceof String)) {
139
+ throw new Error("Expected the field `app_id` to be a primitive type in the JSON string but got " + data['app_id']);
140
+ }
141
+ // ensure the json data is a string
128
142
  if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
129
143
  throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
130
144
  }
@@ -133,8 +147,8 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
133
147
  throw new Error("Expected the field `details` to be a primitive type in the JSON string but got " + data['details']);
134
148
  }
135
149
  // ensure the json data is a string
136
- if (data['fid'] && !(typeof data['fid'] === 'string' || data['fid'] instanceof String)) {
137
- throw new Error("Expected the field `fid` to be a primitive type in the JSON string but got " + data['fid']);
150
+ if (data['floor_uid'] && !(typeof data['floor_uid'] === 'string' || data['floor_uid'] instanceof String)) {
151
+ throw new Error("Expected the field `floor_uid` to be a primitive type in the JSON string but got " + data['floor_uid']);
138
152
  }
139
153
  if (data['blocks']) {
140
154
  // data not null
@@ -166,13 +180,23 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
166
180
  }
167
181
  }]);
168
182
  }();
169
- SignInWithEmail200ResponsePodInfo.RequiredProperties = ["floor_id", "title", "fid", "blocks"];
183
+ SignInWithEmail200ResponsePodInfo.RequiredProperties = ["floor_id", "title", "floor_uid", "blocks"];
170
184
 
171
185
  /**
172
186
  * @member {String} floor_id
173
187
  */
174
188
  SignInWithEmail200ResponsePodInfo.prototype['floor_id'] = undefined;
175
189
 
190
+ /**
191
+ * @member {String} is_owner
192
+ */
193
+ SignInWithEmail200ResponsePodInfo.prototype['is_owner'] = undefined;
194
+
195
+ /**
196
+ * @member {String} app_id
197
+ */
198
+ SignInWithEmail200ResponsePodInfo.prototype['app_id'] = undefined;
199
+
176
200
  /**
177
201
  * @member {String} title
178
202
  */
@@ -184,9 +208,9 @@ SignInWithEmail200ResponsePodInfo.prototype['title'] = undefined;
184
208
  SignInWithEmail200ResponsePodInfo.prototype['details'] = undefined;
185
209
 
186
210
  /**
187
- * @member {String} fid
211
+ * @member {String} floor_uid
188
212
  */
189
- SignInWithEmail200ResponsePodInfo.prototype['fid'] = undefined;
213
+ SignInWithEmail200ResponsePodInfo.prototype['floor_uid'] = undefined;
190
214
 
191
215
  /**
192
216
  * @member {Array.<module:model/BlockDetails>} blocks
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _BlockDetails = _interopRequireDefault(require("./BlockDetails"));
8
+ var _Remaining = _interopRequireDefault(require("./Remaining"));
9
9
  var _SignInWithEmail200ResponseProfileAvatar = _interopRequireDefault(require("./SignInWithEmail200ResponseProfileAvatar"));
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); }
@@ -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.19
37
37
  */
38
38
  var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
39
39
  /**
@@ -41,12 +41,12 @@ var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
41
41
  * User profile details
42
42
  * @alias module:model/SignInWithEmail200ResponseProfile
43
43
  * @param floorId {String} Associated floor ID
44
- * @param fid {String} Unique ID of floor
44
+ * @param FID {String} Unique ID of floor
45
45
  * @param userId {String} Unique User ID
46
46
  */
47
- function SignInWithEmail200ResponseProfile(floorId, fid, userId) {
47
+ function SignInWithEmail200ResponseProfile(floorId, FID, userId) {
48
48
  _classCallCheck(this, SignInWithEmail200ResponseProfile);
49
- SignInWithEmail200ResponseProfile.initialize(this, floorId, fid, userId);
49
+ SignInWithEmail200ResponseProfile.initialize(this, floorId, FID, userId);
50
50
  }
51
51
 
52
52
  /**
@@ -56,9 +56,9 @@ var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
56
56
  */
57
57
  return _createClass(SignInWithEmail200ResponseProfile, null, [{
58
58
  key: "initialize",
59
- value: function initialize(obj, floorId, fid, userId) {
59
+ value: function initialize(obj, floorId, FID, userId) {
60
60
  obj['floor_id'] = floorId;
61
- obj['fid'] = fid;
61
+ obj['FID'] = FID;
62
62
  obj['user_id'] = userId;
63
63
  }
64
64
 
@@ -77,11 +77,14 @@ var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
77
77
  if (data.hasOwnProperty('floor_id')) {
78
78
  obj['floor_id'] = _ApiClient["default"].convertToType(data['floor_id'], 'String');
79
79
  }
80
- if (data.hasOwnProperty('fid')) {
81
- obj['fid'] = _ApiClient["default"].convertToType(data['fid'], 'String');
80
+ if (data.hasOwnProperty('floors')) {
81
+ obj['floors'] = _Remaining["default"].constructFromObject(data['floors']);
82
82
  }
83
83
  if (data.hasOwnProperty('blocks')) {
84
- obj['blocks'] = _ApiClient["default"].convertToType(data['blocks'], [_BlockDetails["default"]]);
84
+ obj['blocks'] = _Remaining["default"].constructFromObject(data['blocks']);
85
+ }
86
+ if (data.hasOwnProperty('FID')) {
87
+ obj['FID'] = _ApiClient["default"].convertToType(data['FID'], 'String');
85
88
  }
86
89
  if (data.hasOwnProperty('name')) {
87
90
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
@@ -129,30 +132,19 @@ var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
129
132
  if (data['floor_id'] && !(typeof data['floor_id'] === 'string' || data['floor_id'] instanceof String)) {
130
133
  throw new Error("Expected the field `floor_id` to be a primitive type in the JSON string but got " + data['floor_id']);
131
134
  }
132
- // ensure the json data is a string
133
- if (data['fid'] && !(typeof data['fid'] === 'string' || data['fid'] instanceof String)) {
134
- throw new Error("Expected the field `fid` to be a primitive type in the JSON string but got " + data['fid']);
135
+ // validate the optional field `floors`
136
+ if (data['floors']) {
137
+ // data not null
138
+ _Remaining["default"].validateJSON(data['floors']);
135
139
  }
140
+ // validate the optional field `blocks`
136
141
  if (data['blocks']) {
137
142
  // data not null
138
- // ensure the json data is an array
139
- if (!Array.isArray(data['blocks'])) {
140
- throw new Error("Expected the field `blocks` to be an array in the JSON data but got " + data['blocks']);
141
- }
142
- // validate the optional field `blocks` (array)
143
- var _iterator2 = _createForOfIteratorHelper(data['blocks']),
144
- _step2;
145
- try {
146
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
147
- var item = _step2.value;
148
- _BlockDetails["default"].validateJSON(item);
149
- }
150
- } catch (err) {
151
- _iterator2.e(err);
152
- } finally {
153
- _iterator2.f();
154
- }
155
- ;
143
+ _Remaining["default"].validateJSON(data['blocks']);
144
+ }
145
+ // ensure the json data is a string
146
+ if (data['FID'] && !(typeof data['FID'] === 'string' || data['FID'] instanceof String)) {
147
+ throw new Error("Expected the field `FID` to be a primitive type in the JSON string but got " + data['FID']);
156
148
  }
157
149
  // ensure the json data is a string
158
150
  if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
@@ -179,7 +171,7 @@ var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
179
171
  }
180
172
  }]);
181
173
  }();
182
- SignInWithEmail200ResponseProfile.RequiredProperties = ["floor_id", "fid", "user_id"];
174
+ SignInWithEmail200ResponseProfile.RequiredProperties = ["floor_id", "FID", "user_id"];
183
175
 
184
176
  /**
185
177
  * Associated floor ID
@@ -188,17 +180,21 @@ SignInWithEmail200ResponseProfile.RequiredProperties = ["floor_id", "fid", "user
188
180
  SignInWithEmail200ResponseProfile.prototype['floor_id'] = undefined;
189
181
 
190
182
  /**
191
- * Unique ID of floor
192
- * @member {String} fid
183
+ * @member {module:model/Remaining} floors
193
184
  */
194
- SignInWithEmail200ResponseProfile.prototype['fid'] = undefined;
185
+ SignInWithEmail200ResponseProfile.prototype['floors'] = undefined;
195
186
 
196
187
  /**
197
- * List of Blocks
198
- * @member {Array.<module:model/BlockDetails>} blocks
188
+ * @member {module:model/Remaining} blocks
199
189
  */
200
190
  SignInWithEmail200ResponseProfile.prototype['blocks'] = undefined;
201
191
 
192
+ /**
193
+ * Unique ID of floor
194
+ * @member {String} FID
195
+ */
196
+ SignInWithEmail200ResponseProfile.prototype['FID'] = undefined;
197
+
202
198
  /**
203
199
  * User Name
204
200
  * @member {String} name
@@ -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.19
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.19
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.19
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.19
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.19
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.19
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.19
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.19",
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;