@xfloor/floor-memory-sdk-js 1.0.20 → 1.0.22

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 +22 -22
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/{DefaultApi.js → AuthApi.js} +40 -194
  4. package/dist/api/EventApi.js +49 -1
  5. package/dist/api/FloorApi.js +306 -0
  6. package/dist/api/QueryApi.js +1 -1
  7. package/dist/index.js +33 -47
  8. package/dist/model/BlockDetails.js +1 -1
  9. package/dist/model/ChangePassword200Response.js +1 -1
  10. package/dist/model/{GetFloorInformation200Response.js → EditFloor200Response.js} +28 -28
  11. package/dist/model/EditFloor400Response.js +1 -1
  12. package/dist/model/EditFloor400ResponseError.js +1 -1
  13. package/dist/model/Event400Response.js +1 -1
  14. package/dist/model/Event400ResponseError.js +1 -1
  15. package/dist/model/EventResponse.js +1 -1
  16. package/dist/model/FloorInfo.js +1 -1
  17. package/dist/model/GetRecentEvents200Response.js +1 -1
  18. package/dist/model/GetRecentEvents200ResponseItemsInner.js +1 -1
  19. package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +1 -1
  20. package/dist/model/GetRecentEvents400Response.js +1 -1
  21. package/dist/model/GetRecentEvents400ResponseError.js +1 -1
  22. package/dist/model/Media.js +1 -1
  23. package/dist/model/Model400ErrorCode.js +1 -1
  24. package/dist/model/Query422Response.js +1 -1
  25. package/dist/model/Query422ResponseError.js +1 -1
  26. package/dist/model/QueryRequest.js +1 -1
  27. package/dist/model/QueryRequestFilters.js +1 -1
  28. package/dist/model/QueryResponse.js +1 -1
  29. package/dist/model/QueryResponseItemsInner.js +1 -1
  30. package/dist/model/Remaining.js +1 -1
  31. package/dist/model/ResetPassword200Response.js +1 -1
  32. package/dist/model/ResetPassword400Response.js +1 -1
  33. package/dist/model/SendValidationCode200Response.js +1 -1
  34. package/dist/model/{SignInWithEmail200Response.js → SignInResponse.js} +32 -32
  35. package/dist/model/SignUp200Response.js +1 -1
  36. package/dist/model/SignUpResponse.js +1 -1
  37. package/dist/model/UserDetails.js +11 -11
  38. package/dist/model/{SignInWithEmail200ResponsePodInfo.js → UserDetailsPodInfo.js} +27 -27
  39. package/dist/model/{SignInWithEmail200ResponseProfile.js → UserDetailsProfile.js} +32 -32
  40. package/dist/model/{SignInWithEmail200ResponseProfileAvatar.js → UserDetailsProfileAvatar.js} +21 -21
  41. package/dist/model/ValidateCode400Response.js +1 -1
  42. package/dist/model/ValidateCode400ResponseError.js +1 -1
  43. package/dist/model/ValidateCode412Response.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/api/EditFloorApi.js +0 -105
  46. package/dist/api/GetFloorInformationApi.js +0 -95
  47. package/dist/api/GetRecentEventsApi.js +0 -94
@@ -31,22 +31,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  *
32
32
  */
33
33
  /**
34
- * The SignInWithEmail200ResponsePodInfo model module.
35
- * @module model/SignInWithEmail200ResponsePodInfo
36
- * @version 1.0.20
34
+ * The UserDetailsPodInfo model module.
35
+ * @module model/UserDetailsPodInfo
36
+ * @version 1.0.22
37
37
  */
38
- var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
38
+ var UserDetailsPodInfo = /*#__PURE__*/function () {
39
39
  /**
40
- * Constructs a new <code>SignInWithEmail200ResponsePodInfo</code>.
41
- * @alias module:model/SignInWithEmail200ResponsePodInfo
40
+ * Constructs a new <code>UserDetailsPodInfo</code>.
41
+ * @alias module:model/UserDetailsPodInfo
42
42
  * @param floorId {String}
43
43
  * @param title {String}
44
44
  * @param floorUid {String}
45
45
  * @param blocks {Array.<module:model/BlockDetails>}
46
46
  */
47
- function SignInWithEmail200ResponsePodInfo(floorId, title, floorUid, blocks) {
48
- _classCallCheck(this, SignInWithEmail200ResponsePodInfo);
49
- SignInWithEmail200ResponsePodInfo.initialize(this, floorId, title, floorUid, blocks);
47
+ function UserDetailsPodInfo(floorId, title, floorUid, blocks) {
48
+ _classCallCheck(this, UserDetailsPodInfo);
49
+ UserDetailsPodInfo.initialize(this, floorId, title, floorUid, blocks);
50
50
  }
51
51
 
52
52
  /**
@@ -54,7 +54,7 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
54
54
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
55
55
  * Only for internal use.
56
56
  */
57
- return _createClass(SignInWithEmail200ResponsePodInfo, null, [{
57
+ return _createClass(UserDetailsPodInfo, null, [{
58
58
  key: "initialize",
59
59
  value: function initialize(obj, floorId, title, floorUid, blocks) {
60
60
  obj['floor_id'] = floorId;
@@ -64,17 +64,17 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
64
64
  }
65
65
 
66
66
  /**
67
- * Constructs a <code>SignInWithEmail200ResponsePodInfo</code> from a plain JavaScript object, optionally creating a new instance.
67
+ * Constructs a <code>UserDetailsPodInfo</code> from a plain JavaScript object, optionally creating a new instance.
68
68
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
69
69
  * @param {Object} data The plain JavaScript object bearing properties of interest.
70
- * @param {module:model/SignInWithEmail200ResponsePodInfo} obj Optional instance to populate.
71
- * @return {module:model/SignInWithEmail200ResponsePodInfo} The populated <code>SignInWithEmail200ResponsePodInfo</code> instance.
70
+ * @param {module:model/UserDetailsPodInfo} obj Optional instance to populate.
71
+ * @return {module:model/UserDetailsPodInfo} The populated <code>UserDetailsPodInfo</code> instance.
72
72
  */
73
73
  }, {
74
74
  key: "constructFromObject",
75
75
  value: function constructFromObject(data, obj) {
76
76
  if (data) {
77
- obj = obj || new SignInWithEmail200ResponsePodInfo();
77
+ obj = obj || new UserDetailsPodInfo();
78
78
  if (data.hasOwnProperty('floor_id')) {
79
79
  obj['floor_id'] = _ApiClient["default"].convertToType(data['floor_id'], 'String');
80
80
  }
@@ -104,15 +104,15 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
104
104
  }
105
105
 
106
106
  /**
107
- * Validates the JSON data with respect to <code>SignInWithEmail200ResponsePodInfo</code>.
107
+ * Validates the JSON data with respect to <code>UserDetailsPodInfo</code>.
108
108
  * @param {Object} data The plain JavaScript object bearing properties of interest.
109
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SignInWithEmail200ResponsePodInfo</code>.
109
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UserDetailsPodInfo</code>.
110
110
  */
111
111
  }, {
112
112
  key: "validateJSON",
113
113
  value: function validateJSON(data) {
114
114
  // check to make sure all required properties are present in the JSON string
115
- var _iterator = _createForOfIteratorHelper(SignInWithEmail200ResponsePodInfo.RequiredProperties),
115
+ var _iterator = _createForOfIteratorHelper(UserDetailsPodInfo.RequiredProperties),
116
116
  _step;
117
117
  try {
118
118
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -180,45 +180,45 @@ var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
180
180
  }
181
181
  }]);
182
182
  }();
183
- SignInWithEmail200ResponsePodInfo.RequiredProperties = ["floor_id", "title", "floor_uid", "blocks"];
183
+ UserDetailsPodInfo.RequiredProperties = ["floor_id", "title", "floor_uid", "blocks"];
184
184
 
185
185
  /**
186
186
  * @member {String} floor_id
187
187
  */
188
- SignInWithEmail200ResponsePodInfo.prototype['floor_id'] = undefined;
188
+ UserDetailsPodInfo.prototype['floor_id'] = undefined;
189
189
 
190
190
  /**
191
191
  * @member {String} is_owner
192
192
  */
193
- SignInWithEmail200ResponsePodInfo.prototype['is_owner'] = undefined;
193
+ UserDetailsPodInfo.prototype['is_owner'] = undefined;
194
194
 
195
195
  /**
196
196
  * @member {String} app_id
197
197
  */
198
- SignInWithEmail200ResponsePodInfo.prototype['app_id'] = undefined;
198
+ UserDetailsPodInfo.prototype['app_id'] = undefined;
199
199
 
200
200
  /**
201
201
  * @member {String} title
202
202
  */
203
- SignInWithEmail200ResponsePodInfo.prototype['title'] = undefined;
203
+ UserDetailsPodInfo.prototype['title'] = undefined;
204
204
 
205
205
  /**
206
206
  * @member {String} details
207
207
  */
208
- SignInWithEmail200ResponsePodInfo.prototype['details'] = undefined;
208
+ UserDetailsPodInfo.prototype['details'] = undefined;
209
209
 
210
210
  /**
211
211
  * @member {String} floor_uid
212
212
  */
213
- SignInWithEmail200ResponsePodInfo.prototype['floor_uid'] = undefined;
213
+ UserDetailsPodInfo.prototype['floor_uid'] = undefined;
214
214
 
215
215
  /**
216
216
  * @member {Array.<module:model/BlockDetails>} blocks
217
217
  */
218
- SignInWithEmail200ResponsePodInfo.prototype['blocks'] = undefined;
218
+ UserDetailsPodInfo.prototype['blocks'] = undefined;
219
219
 
220
220
  /**
221
221
  * @member {module:model/Media} avatar
222
222
  */
223
- SignInWithEmail200ResponsePodInfo.prototype['avatar'] = undefined;
224
- var _default = exports["default"] = SignInWithEmail200ResponsePodInfo;
223
+ UserDetailsPodInfo.prototype['avatar'] = undefined;
224
+ var _default = exports["default"] = UserDetailsPodInfo;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Remaining = _interopRequireDefault(require("./Remaining"));
9
- var _SignInWithEmail200ResponseProfileAvatar = _interopRequireDefault(require("./SignInWithEmail200ResponseProfileAvatar"));
9
+ var _UserDetailsProfileAvatar = _interopRequireDefault(require("./UserDetailsProfileAvatar"));
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; } } }; }
@@ -31,22 +31,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  *
32
32
  */
33
33
  /**
34
- * The SignInWithEmail200ResponseProfile model module.
35
- * @module model/SignInWithEmail200ResponseProfile
36
- * @version 1.0.20
34
+ * The UserDetailsProfile model module.
35
+ * @module model/UserDetailsProfile
36
+ * @version 1.0.22
37
37
  */
38
- var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
38
+ var UserDetailsProfile = /*#__PURE__*/function () {
39
39
  /**
40
- * Constructs a new <code>SignInWithEmail200ResponseProfile</code>.
40
+ * Constructs a new <code>UserDetailsProfile</code>.
41
41
  * User profile details
42
- * @alias module:model/SignInWithEmail200ResponseProfile
42
+ * @alias module:model/UserDetailsProfile
43
43
  * @param floorId {String} Associated floor ID
44
44
  * @param FID {String} Unique ID of floor
45
45
  * @param userId {String} Unique User ID
46
46
  */
47
- function SignInWithEmail200ResponseProfile(floorId, FID, userId) {
48
- _classCallCheck(this, SignInWithEmail200ResponseProfile);
49
- SignInWithEmail200ResponseProfile.initialize(this, floorId, FID, userId);
47
+ function UserDetailsProfile(floorId, FID, userId) {
48
+ _classCallCheck(this, UserDetailsProfile);
49
+ UserDetailsProfile.initialize(this, floorId, FID, userId);
50
50
  }
51
51
 
52
52
  /**
@@ -54,7 +54,7 @@ var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
54
54
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
55
55
  * Only for internal use.
56
56
  */
57
- return _createClass(SignInWithEmail200ResponseProfile, null, [{
57
+ return _createClass(UserDetailsProfile, null, [{
58
58
  key: "initialize",
59
59
  value: function initialize(obj, floorId, FID, userId) {
60
60
  obj['floor_id'] = floorId;
@@ -63,17 +63,17 @@ var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
63
63
  }
64
64
 
65
65
  /**
66
- * Constructs a <code>SignInWithEmail200ResponseProfile</code> from a plain JavaScript object, optionally creating a new instance.
66
+ * Constructs a <code>UserDetailsProfile</code> from a plain JavaScript object, optionally creating a new instance.
67
67
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
68
68
  * @param {Object} data The plain JavaScript object bearing properties of interest.
69
- * @param {module:model/SignInWithEmail200ResponseProfile} obj Optional instance to populate.
70
- * @return {module:model/SignInWithEmail200ResponseProfile} The populated <code>SignInWithEmail200ResponseProfile</code> instance.
69
+ * @param {module:model/UserDetailsProfile} obj Optional instance to populate.
70
+ * @return {module:model/UserDetailsProfile} The populated <code>UserDetailsProfile</code> instance.
71
71
  */
72
72
  }, {
73
73
  key: "constructFromObject",
74
74
  value: function constructFromObject(data, obj) {
75
75
  if (data) {
76
- obj = obj || new SignInWithEmail200ResponseProfile();
76
+ obj = obj || new UserDetailsProfile();
77
77
  if (data.hasOwnProperty('floor_id')) {
78
78
  obj['floor_id'] = _ApiClient["default"].convertToType(data['floor_id'], 'String');
79
79
  }
@@ -99,22 +99,22 @@ var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
99
99
  obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
100
100
  }
101
101
  if (data.hasOwnProperty('avatar')) {
102
- obj['avatar'] = _SignInWithEmail200ResponseProfileAvatar["default"].constructFromObject(data['avatar']);
102
+ obj['avatar'] = _UserDetailsProfileAvatar["default"].constructFromObject(data['avatar']);
103
103
  }
104
104
  }
105
105
  return obj;
106
106
  }
107
107
 
108
108
  /**
109
- * Validates the JSON data with respect to <code>SignInWithEmail200ResponseProfile</code>.
109
+ * Validates the JSON data with respect to <code>UserDetailsProfile</code>.
110
110
  * @param {Object} data The plain JavaScript object bearing properties of interest.
111
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SignInWithEmail200ResponseProfile</code>.
111
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UserDetailsProfile</code>.
112
112
  */
113
113
  }, {
114
114
  key: "validateJSON",
115
115
  value: function validateJSON(data) {
116
116
  // check to make sure all required properties are present in the JSON string
117
- var _iterator = _createForOfIteratorHelper(SignInWithEmail200ResponseProfile.RequiredProperties),
117
+ var _iterator = _createForOfIteratorHelper(UserDetailsProfile.RequiredProperties),
118
118
  _step;
119
119
  try {
120
120
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -165,62 +165,62 @@ var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
165
165
  // validate the optional field `avatar`
166
166
  if (data['avatar']) {
167
167
  // data not null
168
- _SignInWithEmail200ResponseProfileAvatar["default"].validateJSON(data['avatar']);
168
+ _UserDetailsProfileAvatar["default"].validateJSON(data['avatar']);
169
169
  }
170
170
  return true;
171
171
  }
172
172
  }]);
173
173
  }();
174
- SignInWithEmail200ResponseProfile.RequiredProperties = ["floor_id", "FID", "user_id"];
174
+ UserDetailsProfile.RequiredProperties = ["floor_id", "FID", "user_id"];
175
175
 
176
176
  /**
177
177
  * Associated floor ID
178
178
  * @member {String} floor_id
179
179
  */
180
- SignInWithEmail200ResponseProfile.prototype['floor_id'] = undefined;
180
+ UserDetailsProfile.prototype['floor_id'] = undefined;
181
181
 
182
182
  /**
183
183
  * @member {module:model/Remaining} floor_count_info
184
184
  */
185
- SignInWithEmail200ResponseProfile.prototype['floor_count_info'] = undefined;
185
+ UserDetailsProfile.prototype['floor_count_info'] = undefined;
186
186
 
187
187
  /**
188
188
  * @member {module:model/Remaining} block_count_info
189
189
  */
190
- SignInWithEmail200ResponseProfile.prototype['block_count_info'] = undefined;
190
+ UserDetailsProfile.prototype['block_count_info'] = undefined;
191
191
 
192
192
  /**
193
193
  * Unique ID of floor
194
194
  * @member {String} FID
195
195
  */
196
- SignInWithEmail200ResponseProfile.prototype['FID'] = undefined;
196
+ UserDetailsProfile.prototype['FID'] = undefined;
197
197
 
198
198
  /**
199
199
  * User Name
200
200
  * @member {String} name
201
201
  */
202
- SignInWithEmail200ResponseProfile.prototype['name'] = undefined;
202
+ UserDetailsProfile.prototype['name'] = undefined;
203
203
 
204
204
  /**
205
205
  * Email ID
206
206
  * @member {String} email
207
207
  */
208
- SignInWithEmail200ResponseProfile.prototype['email'] = undefined;
208
+ UserDetailsProfile.prototype['email'] = undefined;
209
209
 
210
210
  /**
211
211
  * Mobile number
212
212
  * @member {String} mobile_number
213
213
  */
214
- SignInWithEmail200ResponseProfile.prototype['mobile_number'] = undefined;
214
+ UserDetailsProfile.prototype['mobile_number'] = undefined;
215
215
 
216
216
  /**
217
217
  * Unique User ID
218
218
  * @member {String} user_id
219
219
  */
220
- SignInWithEmail200ResponseProfile.prototype['user_id'] = undefined;
220
+ UserDetailsProfile.prototype['user_id'] = undefined;
221
221
 
222
222
  /**
223
- * @member {module:model/SignInWithEmail200ResponseProfileAvatar} avatar
223
+ * @member {module:model/UserDetailsProfileAvatar} avatar
224
224
  */
225
- SignInWithEmail200ResponseProfile.prototype['avatar'] = undefined;
226
- var _default = exports["default"] = SignInWithEmail200ResponseProfile;
225
+ UserDetailsProfile.prototype['avatar'] = undefined;
226
+ var _default = exports["default"] = UserDetailsProfile;
@@ -29,21 +29,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  *
30
30
  */
31
31
  /**
32
- * The SignInWithEmail200ResponseProfileAvatar model module.
33
- * @module model/SignInWithEmail200ResponseProfileAvatar
34
- * @version 1.0.20
32
+ * The UserDetailsProfileAvatar model module.
33
+ * @module model/UserDetailsProfileAvatar
34
+ * @version 1.0.22
35
35
  */
36
- var SignInWithEmail200ResponseProfileAvatar = /*#__PURE__*/function () {
36
+ var UserDetailsProfileAvatar = /*#__PURE__*/function () {
37
37
  /**
38
- * Constructs a new <code>SignInWithEmail200ResponseProfileAvatar</code>.
38
+ * Constructs a new <code>UserDetailsProfileAvatar</code>.
39
39
  * Profile Pick details
40
- * @alias module:model/SignInWithEmail200ResponseProfileAvatar
40
+ * @alias module:model/UserDetailsProfileAvatar
41
41
  * @param url {String} Image URL
42
42
  * @param id {String} Image ID
43
43
  */
44
- function SignInWithEmail200ResponseProfileAvatar(url, id) {
45
- _classCallCheck(this, SignInWithEmail200ResponseProfileAvatar);
46
- SignInWithEmail200ResponseProfileAvatar.initialize(this, url, id);
44
+ function UserDetailsProfileAvatar(url, id) {
45
+ _classCallCheck(this, UserDetailsProfileAvatar);
46
+ UserDetailsProfileAvatar.initialize(this, url, id);
47
47
  }
48
48
 
49
49
  /**
@@ -51,7 +51,7 @@ var SignInWithEmail200ResponseProfileAvatar = /*#__PURE__*/function () {
51
51
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
52
52
  * Only for internal use.
53
53
  */
54
- return _createClass(SignInWithEmail200ResponseProfileAvatar, null, [{
54
+ return _createClass(UserDetailsProfileAvatar, null, [{
55
55
  key: "initialize",
56
56
  value: function initialize(obj, url, id) {
57
57
  obj['url'] = url;
@@ -59,17 +59,17 @@ var SignInWithEmail200ResponseProfileAvatar = /*#__PURE__*/function () {
59
59
  }
60
60
 
61
61
  /**
62
- * Constructs a <code>SignInWithEmail200ResponseProfileAvatar</code> from a plain JavaScript object, optionally creating a new instance.
62
+ * Constructs a <code>UserDetailsProfileAvatar</code> from a plain JavaScript object, optionally creating a new instance.
63
63
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
64
64
  * @param {Object} data The plain JavaScript object bearing properties of interest.
65
- * @param {module:model/SignInWithEmail200ResponseProfileAvatar} obj Optional instance to populate.
66
- * @return {module:model/SignInWithEmail200ResponseProfileAvatar} The populated <code>SignInWithEmail200ResponseProfileAvatar</code> instance.
65
+ * @param {module:model/UserDetailsProfileAvatar} obj Optional instance to populate.
66
+ * @return {module:model/UserDetailsProfileAvatar} The populated <code>UserDetailsProfileAvatar</code> instance.
67
67
  */
68
68
  }, {
69
69
  key: "constructFromObject",
70
70
  value: function constructFromObject(data, obj) {
71
71
  if (data) {
72
- obj = obj || new SignInWithEmail200ResponseProfileAvatar();
72
+ obj = obj || new UserDetailsProfileAvatar();
73
73
  if (data.hasOwnProperty('url')) {
74
74
  obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
75
75
  }
@@ -81,15 +81,15 @@ var SignInWithEmail200ResponseProfileAvatar = /*#__PURE__*/function () {
81
81
  }
82
82
 
83
83
  /**
84
- * Validates the JSON data with respect to <code>SignInWithEmail200ResponseProfileAvatar</code>.
84
+ * Validates the JSON data with respect to <code>UserDetailsProfileAvatar</code>.
85
85
  * @param {Object} data The plain JavaScript object bearing properties of interest.
86
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SignInWithEmail200ResponseProfileAvatar</code>.
86
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UserDetailsProfileAvatar</code>.
87
87
  */
88
88
  }, {
89
89
  key: "validateJSON",
90
90
  value: function validateJSON(data) {
91
91
  // check to make sure all required properties are present in the JSON string
92
- var _iterator = _createForOfIteratorHelper(SignInWithEmail200ResponseProfileAvatar.RequiredProperties),
92
+ var _iterator = _createForOfIteratorHelper(UserDetailsProfileAvatar.RequiredProperties),
93
93
  _step;
94
94
  try {
95
95
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -115,17 +115,17 @@ var SignInWithEmail200ResponseProfileAvatar = /*#__PURE__*/function () {
115
115
  }
116
116
  }]);
117
117
  }();
118
- SignInWithEmail200ResponseProfileAvatar.RequiredProperties = ["url", "id"];
118
+ UserDetailsProfileAvatar.RequiredProperties = ["url", "id"];
119
119
 
120
120
  /**
121
121
  * Image URL
122
122
  * @member {String} url
123
123
  */
124
- SignInWithEmail200ResponseProfileAvatar.prototype['url'] = undefined;
124
+ UserDetailsProfileAvatar.prototype['url'] = undefined;
125
125
 
126
126
  /**
127
127
  * Image ID
128
128
  * @member {String} id
129
129
  */
130
- SignInWithEmail200ResponseProfileAvatar.prototype['id'] = undefined;
131
- var _default = exports["default"] = SignInWithEmail200ResponseProfileAvatar;
130
+ UserDetailsProfileAvatar.prototype['id'] = undefined;
131
+ var _default = exports["default"] = UserDetailsProfileAvatar;
@@ -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.20
35
+ * @version 1.0.22
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.20
34
+ * @version 1.0.22
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.20
34
+ * @version 1.0.22
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.20",
3
+ "version": "1.0.22",
4
4
  "description": "JavaScript SDK for xFloor Memory APIs (Memory + Registration).",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,105 +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
- var _EditFloor400Response = _interopRequireDefault(require("../model/EditFloor400Response"));
9
- var _GetFloorInformation200Response = _interopRequireDefault(require("../model/GetFloorInformation200Response"));
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
13
- 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); } }
14
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
15
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
- 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); } /**
17
- * Floor Memory
18
- * 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.
19
- * - Memory and
20
- * - 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.
21
- *
22
- * The version of the OpenAPI document: 1.0.0
23
- * Contact: contact@ipomo.in
24
- *
25
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
- * https://openapi-generator.tech
27
- * Do not edit the class manually.
28
- *
29
- */
30
- /**
31
- * EditFloor service.
32
- * @module api/EditFloorApi
33
- * @version 1.0.20
34
- */
35
- var EditFloorApi = exports["default"] = /*#__PURE__*/function () {
36
- /**
37
- * Constructs a new EditFloorApi.
38
- * @alias module:api/EditFloorApi
39
- * @class
40
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
- * default to {@link module:ApiClient#instance} if unspecified.
42
- */
43
- function EditFloorApi(apiClient) {
44
- _classCallCheck(this, EditFloorApi);
45
- this.apiClient = apiClient || _ApiClient["default"].instance;
46
- }
47
-
48
- /**
49
- * Callback function to receive the result of the editFloor operation.
50
- * @callback module:api/EditFloorApi~editFloorCallback
51
- * @param {String} error Error message, if any.
52
- * @param {module:model/GetFloorInformation200Response} data The data returned by the service call.
53
- * @param {String} response The complete HTTP response.
54
- */
55
-
56
- /**
57
- * Edit floor
58
- * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
59
- * @param {String} floorId
60
- * @param {String} userId User ID
61
- * @param {String} appId App ID
62
- * @param {Object} opts Optional parameters
63
- * @param {File} [logoFile] Floor avatar
64
- * @param {String} [title] Floor title
65
- * @param {String} [details] Floor decription
66
- * @param {module:api/EditFloorApi~editFloorCallback} callback The callback function, accepting three arguments: error, data, response
67
- * data is of type: {@link module:model/GetFloorInformation200Response}
68
- */
69
- return _createClass(EditFloorApi, [{
70
- key: "editFloor",
71
- value: function editFloor(floorId, userId, appId, opts, callback) {
72
- opts = opts || {};
73
- var postBody = null;
74
- // verify the required parameter 'floorId' is set
75
- if (floorId === undefined || floorId === null) {
76
- throw new Error("Missing the required parameter 'floorId' when calling editFloor");
77
- }
78
- // verify the required parameter 'userId' is set
79
- if (userId === undefined || userId === null) {
80
- throw new Error("Missing the required parameter 'userId' when calling editFloor");
81
- }
82
- // verify the required parameter 'appId' is set
83
- if (appId === undefined || appId === null) {
84
- throw new Error("Missing the required parameter 'appId' when calling editFloor");
85
- }
86
- var pathParams = {
87
- 'floor_id': floorId
88
- };
89
- var queryParams = {};
90
- var headerParams = {};
91
- var formParams = {
92
- 'user_id': userId,
93
- 'app_id': appId,
94
- 'logo_file': opts['logoFile'],
95
- 'title': opts['title'],
96
- 'details': opts['details']
97
- };
98
- var authNames = ['bearer'];
99
- var contentTypes = ['multipart/form-data'];
100
- var accepts = ['application/json'];
101
- var returnType = _GetFloorInformation200Response["default"];
102
- return this.apiClient.callApi('/api/memory/edit/floor/{floor_id}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
103
- }
104
- }]);
105
- }();