@xfloor/memory-sdk-js 1.0.1

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 (62) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +220 -0
  3. package/dist/ApiClient.js +701 -0
  4. package/dist/api/DefaultApi.js +734 -0
  5. package/dist/api/EditFloorApi.js +103 -0
  6. package/dist/api/EventApi.js +86 -0
  7. package/dist/api/GetFloorInformationApi.js +89 -0
  8. package/dist/api/GetRecentEventsApi.js +88 -0
  9. package/dist/api/QueryApi.js +81 -0
  10. package/dist/index.js +412 -0
  11. package/dist/model/BlockDetails.js +144 -0
  12. package/dist/model/ChangePassword200Response.js +113 -0
  13. package/dist/model/ConversationThreads200Response.js +144 -0
  14. package/dist/model/ConversationThreads200ResponseThreadsInner.js +140 -0
  15. package/dist/model/EditFloor400Response.js +114 -0
  16. package/dist/model/EditFloor400ResponseError.js +158 -0
  17. package/dist/model/Event400Response.js +114 -0
  18. package/dist/model/Event400ResponseError.js +155 -0
  19. package/dist/model/EventResponse.js +112 -0
  20. package/dist/model/FloorInfo.js +202 -0
  21. package/dist/model/GetConversations200Response.js +158 -0
  22. package/dist/model/GetConversations200ResponseConversationInner.js +105 -0
  23. package/dist/model/GetConversations200ResponseConversationInnerAssistant.js +226 -0
  24. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInner.js +139 -0
  25. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails.js +210 -0
  26. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage.js +126 -0
  27. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails.js +126 -0
  28. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.js +186 -0
  29. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.js +216 -0
  30. package/dist/model/GetConversations200ResponseConversationInnerUser.js +170 -0
  31. package/dist/model/GetConversations200ResponseConversationInnerUserContext.js +168 -0
  32. package/dist/model/GetFloorInformation200Response.js +201 -0
  33. package/dist/model/GetRecentEvents200Response.js +146 -0
  34. package/dist/model/GetRecentEvents200ResponseItemsInner.js +217 -0
  35. package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +131 -0
  36. package/dist/model/GetRecentEvents400Response.js +114 -0
  37. package/dist/model/GetRecentEvents400ResponseError.js +154 -0
  38. package/dist/model/Media.js +128 -0
  39. package/dist/model/Model400ErrorCode.js +158 -0
  40. package/dist/model/PostAdd.js +173 -0
  41. package/dist/model/Query422Response.js +114 -0
  42. package/dist/model/Query422ResponseError.js +113 -0
  43. package/dist/model/QueryRequest.js +196 -0
  44. package/dist/model/QueryRequestFilters.js +159 -0
  45. package/dist/model/QueryResponse.js +124 -0
  46. package/dist/model/QueryResponseItemsInner.js +213 -0
  47. package/dist/model/SendSignInValidationCode200Response.js +141 -0
  48. package/dist/model/SendSignInValidationCode400Response.js +158 -0
  49. package/dist/model/SendValidationCode200Response.js +113 -0
  50. package/dist/model/SendValidationCodeRequest.js +128 -0
  51. package/dist/model/SignInWithEmail200Response.js +145 -0
  52. package/dist/model/SignInWithEmail200ResponseProfile.js +230 -0
  53. package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +129 -0
  54. package/dist/model/SignUp200Response.js +128 -0
  55. package/dist/model/SignUpResponse.js +128 -0
  56. package/dist/model/Threads.js +140 -0
  57. package/dist/model/UserDetails.js +145 -0
  58. package/dist/model/ValidateCode400Response.js +114 -0
  59. package/dist/model/ValidateCode400ResponseError.js +156 -0
  60. package/dist/model/ValidateCode412Response.js +113 -0
  61. package/dist/model/ValidateCodeRequest.js +158 -0
  62. package/package.json +64 -0
@@ -0,0 +1,217 @@
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 _GetRecentEvents200ResponseItemsInnerAuthor = _interopRequireDefault(require("./GetRecentEvents200ResponseItemsInnerAuthor"));
9
+ var _Media = _interopRequireDefault(require("./Media"));
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. - Memory and - 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 GetRecentEvents200ResponseItemsInner model module.
33
+ * @module model/GetRecentEvents200ResponseItemsInner
34
+ * @version 1.0.1
35
+ */
36
+ var GetRecentEvents200ResponseItemsInner = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>GetRecentEvents200ResponseItemsInner</code>.
39
+ * Each post item
40
+ * @alias module:model/GetRecentEvents200ResponseItemsInner
41
+ */
42
+ function GetRecentEvents200ResponseItemsInner() {
43
+ _classCallCheck(this, GetRecentEvents200ResponseItemsInner);
44
+ GetRecentEvents200ResponseItemsInner.initialize(this);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(GetRecentEvents200ResponseItemsInner, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj) {}
55
+
56
+ /**
57
+ * Constructs a <code>GetRecentEvents200ResponseItemsInner</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/GetRecentEvents200ResponseItemsInner} obj Optional instance to populate.
61
+ * @return {module:model/GetRecentEvents200ResponseItemsInner} The populated <code>GetRecentEvents200ResponseItemsInner</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new GetRecentEvents200ResponseItemsInner();
68
+ if (data.hasOwnProperty('event_id')) {
69
+ obj['event_id'] = _ApiClient["default"].convertToType(data['event_id'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('block_type')) {
72
+ obj['block_type'] = _ApiClient["default"].convertToType(data['block_type'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('author')) {
75
+ obj['author'] = _GetRecentEvents200ResponseItemsInnerAuthor["default"].constructFromObject(data['author']);
76
+ }
77
+ if (data.hasOwnProperty('media')) {
78
+ obj['media'] = _ApiClient["default"].convertToType(data['media'], [_Media["default"]]);
79
+ }
80
+ if (data.hasOwnProperty('floor_uid')) {
81
+ obj['floor_uid'] = _ApiClient["default"].convertToType(data['floor_uid'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('title')) {
84
+ obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('text')) {
87
+ obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String');
88
+ }
89
+ if (data.hasOwnProperty('created_at_ms')) {
90
+ obj['created_at_ms'] = _ApiClient["default"].convertToType(data['created_at_ms'], 'String');
91
+ }
92
+ if (data.hasOwnProperty('block_id')) {
93
+ obj['block_id'] = _ApiClient["default"].convertToType(data['block_id'], 'String');
94
+ }
95
+ }
96
+ return obj;
97
+ }
98
+
99
+ /**
100
+ * Validates the JSON data with respect to <code>GetRecentEvents200ResponseItemsInner</code>.
101
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
102
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetRecentEvents200ResponseItemsInner</code>.
103
+ */
104
+ }, {
105
+ key: "validateJSON",
106
+ value: function validateJSON(data) {
107
+ // ensure the json data is a string
108
+ if (data['event_id'] && !(typeof data['event_id'] === 'string' || data['event_id'] instanceof String)) {
109
+ throw new Error("Expected the field `event_id` to be a primitive type in the JSON string but got " + data['event_id']);
110
+ }
111
+ // ensure the json data is a string
112
+ if (data['block_type'] && !(typeof data['block_type'] === 'string' || data['block_type'] instanceof String)) {
113
+ throw new Error("Expected the field `block_type` to be a primitive type in the JSON string but got " + data['block_type']);
114
+ }
115
+ // validate the optional field `author`
116
+ if (data['author']) {
117
+ // data not null
118
+ _GetRecentEvents200ResponseItemsInnerAuthor["default"].validateJSON(data['author']);
119
+ }
120
+ if (data['media']) {
121
+ // data not null
122
+ // ensure the json data is an array
123
+ if (!Array.isArray(data['media'])) {
124
+ throw new Error("Expected the field `media` to be an array in the JSON data but got " + data['media']);
125
+ }
126
+ // validate the optional field `media` (array)
127
+ var _iterator = _createForOfIteratorHelper(data['media']),
128
+ _step;
129
+ try {
130
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
131
+ var item = _step.value;
132
+ _Media["default"].validateJSON(item);
133
+ }
134
+ } catch (err) {
135
+ _iterator.e(err);
136
+ } finally {
137
+ _iterator.f();
138
+ }
139
+ ;
140
+ }
141
+ // ensure the json data is a string
142
+ if (data['floor_uid'] && !(typeof data['floor_uid'] === 'string' || data['floor_uid'] instanceof String)) {
143
+ throw new Error("Expected the field `floor_uid` to be a primitive type in the JSON string but got " + data['floor_uid']);
144
+ }
145
+ // ensure the json data is a string
146
+ if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
147
+ throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
148
+ }
149
+ // ensure the json data is a string
150
+ if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) {
151
+ throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']);
152
+ }
153
+ // ensure the json data is a string
154
+ if (data['created_at_ms'] && !(typeof data['created_at_ms'] === 'string' || data['created_at_ms'] instanceof String)) {
155
+ throw new Error("Expected the field `created_at_ms` to be a primitive type in the JSON string but got " + data['created_at_ms']);
156
+ }
157
+ // ensure the json data is a string
158
+ if (data['block_id'] && !(typeof data['block_id'] === 'string' || data['block_id'] instanceof String)) {
159
+ throw new Error("Expected the field `block_id` to be a primitive type in the JSON string but got " + data['block_id']);
160
+ }
161
+ return true;
162
+ }
163
+ }]);
164
+ }();
165
+ /**
166
+ * Post ID
167
+ * @member {String} event_id
168
+ */
169
+ GetRecentEvents200ResponseItemsInner.prototype['event_id'] = undefined;
170
+
171
+ /**
172
+ * Block Type
173
+ * @member {String} block_type
174
+ */
175
+ GetRecentEvents200ResponseItemsInner.prototype['block_type'] = undefined;
176
+
177
+ /**
178
+ * @member {module:model/GetRecentEvents200ResponseItemsInnerAuthor} author
179
+ */
180
+ GetRecentEvents200ResponseItemsInner.prototype['author'] = undefined;
181
+
182
+ /**
183
+ * Any media attached
184
+ * @member {Array.<module:model/Media>} media
185
+ */
186
+ GetRecentEvents200ResponseItemsInner.prototype['media'] = undefined;
187
+
188
+ /**
189
+ * 13 digit ID of the floor in which the post is residing
190
+ * @member {String} floor_uid
191
+ */
192
+ GetRecentEvents200ResponseItemsInner.prototype['floor_uid'] = undefined;
193
+
194
+ /**
195
+ * Post title
196
+ * @member {String} title
197
+ */
198
+ GetRecentEvents200ResponseItemsInner.prototype['title'] = undefined;
199
+
200
+ /**
201
+ * Post details
202
+ * @member {String} text
203
+ */
204
+ GetRecentEvents200ResponseItemsInner.prototype['text'] = undefined;
205
+
206
+ /**
207
+ * Created time in milli seconds
208
+ * @member {String} created_at_ms
209
+ */
210
+ GetRecentEvents200ResponseItemsInner.prototype['created_at_ms'] = undefined;
211
+
212
+ /**
213
+ * Numeric ID of the block
214
+ * @member {String} block_id
215
+ */
216
+ GetRecentEvents200ResponseItemsInner.prototype['block_id'] = undefined;
217
+ var _default = exports["default"] = GetRecentEvents200ResponseItemsInner;
@@ -0,0 +1,131 @@
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 _Media = _interopRequireDefault(require("./Media"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ 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); }
11
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
+ 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); } }
13
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Floor Memory
17
+ * 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. - Memory and - 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.
18
+ *
19
+ * The version of the OpenAPI document: 1.0.0
20
+ * Contact: contact@ipomo.in
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The GetRecentEvents200ResponseItemsInnerAuthor model module.
29
+ * @module model/GetRecentEvents200ResponseItemsInnerAuthor
30
+ * @version 1.0.1
31
+ */
32
+ var GetRecentEvents200ResponseItemsInnerAuthor = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>GetRecentEvents200ResponseItemsInnerAuthor</code>.
35
+ * Author details
36
+ * @alias module:model/GetRecentEvents200ResponseItemsInnerAuthor
37
+ */
38
+ function GetRecentEvents200ResponseItemsInnerAuthor() {
39
+ _classCallCheck(this, GetRecentEvents200ResponseItemsInnerAuthor);
40
+ GetRecentEvents200ResponseItemsInnerAuthor.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(GetRecentEvents200ResponseItemsInnerAuthor, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj) {}
51
+
52
+ /**
53
+ * Constructs a <code>GetRecentEvents200ResponseItemsInnerAuthor</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/GetRecentEvents200ResponseItemsInnerAuthor} obj Optional instance to populate.
57
+ * @return {module:model/GetRecentEvents200ResponseItemsInnerAuthor} The populated <code>GetRecentEvents200ResponseItemsInnerAuthor</code> instance.
58
+ */
59
+ }, {
60
+ key: "constructFromObject",
61
+ value: function constructFromObject(data, obj) {
62
+ if (data) {
63
+ obj = obj || new GetRecentEvents200ResponseItemsInnerAuthor();
64
+ if (data.hasOwnProperty('name')) {
65
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
66
+ }
67
+ if (data.hasOwnProperty('floor_id')) {
68
+ obj['floor_id'] = _ApiClient["default"].convertToType(data['floor_id'], 'String');
69
+ }
70
+ if (data.hasOwnProperty('avatar')) {
71
+ obj['avatar'] = _Media["default"].constructFromObject(data['avatar']);
72
+ }
73
+ if (data.hasOwnProperty('floor_uid')) {
74
+ obj['floor_uid'] = _ApiClient["default"].convertToType(data['floor_uid'], 'String');
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+
80
+ /**
81
+ * Validates the JSON data with respect to <code>GetRecentEvents200ResponseItemsInnerAuthor</code>.
82
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
83
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetRecentEvents200ResponseItemsInnerAuthor</code>.
84
+ */
85
+ }, {
86
+ key: "validateJSON",
87
+ value: function validateJSON(data) {
88
+ // ensure the json data is a string
89
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
90
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
91
+ }
92
+ // ensure the json data is a string
93
+ if (data['floor_id'] && !(typeof data['floor_id'] === 'string' || data['floor_id'] instanceof String)) {
94
+ throw new Error("Expected the field `floor_id` to be a primitive type in the JSON string but got " + data['floor_id']);
95
+ }
96
+ // validate the optional field `avatar`
97
+ if (data['avatar']) {
98
+ // data not null
99
+ _Media["default"].validateJSON(data['avatar']);
100
+ }
101
+ // ensure the json data is a string
102
+ if (data['floor_uid'] && !(typeof data['floor_uid'] === 'string' || data['floor_uid'] instanceof String)) {
103
+ throw new Error("Expected the field `floor_uid` to be a primitive type in the JSON string but got " + data['floor_uid']);
104
+ }
105
+ return true;
106
+ }
107
+ }]);
108
+ }();
109
+ /**
110
+ * Name of the author
111
+ * @member {String} name
112
+ */
113
+ GetRecentEvents200ResponseItemsInnerAuthor.prototype['name'] = undefined;
114
+
115
+ /**
116
+ * Profile floor of the auther
117
+ * @member {String} floor_id
118
+ */
119
+ GetRecentEvents200ResponseItemsInnerAuthor.prototype['floor_id'] = undefined;
120
+
121
+ /**
122
+ * @member {module:model/Media} avatar
123
+ */
124
+ GetRecentEvents200ResponseItemsInnerAuthor.prototype['avatar'] = undefined;
125
+
126
+ /**
127
+ * Unique 13 digit id of the profile floor
128
+ * @member {String} floor_uid
129
+ */
130
+ GetRecentEvents200ResponseItemsInnerAuthor.prototype['floor_uid'] = undefined;
131
+ var _default = exports["default"] = GetRecentEvents200ResponseItemsInnerAuthor;
@@ -0,0 +1,114 @@
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 _GetRecentEvents400ResponseError = _interopRequireDefault(require("./GetRecentEvents400ResponseError"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ 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); }
11
+ 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; } } }; }
12
+ 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; } }
13
+ 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; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); } /**
19
+ * Floor Memory
20
+ * 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. - Memory and - 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
+ * The GetRecentEvents400Response model module.
32
+ * @module model/GetRecentEvents400Response
33
+ * @version 1.0.1
34
+ */
35
+ var GetRecentEvents400Response = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>GetRecentEvents400Response</code>.
38
+ * @alias module:model/GetRecentEvents400Response
39
+ * @param error {module:model/GetRecentEvents400ResponseError}
40
+ */
41
+ function GetRecentEvents400Response(error) {
42
+ _classCallCheck(this, GetRecentEvents400Response);
43
+ GetRecentEvents400Response.initialize(this, error);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(GetRecentEvents400Response, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, error) {
54
+ obj['error'] = error;
55
+ }
56
+
57
+ /**
58
+ * Constructs a <code>GetRecentEvents400Response</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/GetRecentEvents400Response} obj Optional instance to populate.
62
+ * @return {module:model/GetRecentEvents400Response} The populated <code>GetRecentEvents400Response</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new GetRecentEvents400Response();
69
+ if (data.hasOwnProperty('error')) {
70
+ obj['error'] = _GetRecentEvents400ResponseError["default"].constructFromObject(data['error']);
71
+ }
72
+ }
73
+ return obj;
74
+ }
75
+
76
+ /**
77
+ * Validates the JSON data with respect to <code>GetRecentEvents400Response</code>.
78
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
79
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetRecentEvents400Response</code>.
80
+ */
81
+ }, {
82
+ key: "validateJSON",
83
+ value: function validateJSON(data) {
84
+ // check to make sure all required properties are present in the JSON string
85
+ var _iterator = _createForOfIteratorHelper(GetRecentEvents400Response.RequiredProperties),
86
+ _step;
87
+ try {
88
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
89
+ var property = _step.value;
90
+ if (!data.hasOwnProperty(property)) {
91
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
92
+ }
93
+ }
94
+ // validate the optional field `error`
95
+ } catch (err) {
96
+ _iterator.e(err);
97
+ } finally {
98
+ _iterator.f();
99
+ }
100
+ if (data['error']) {
101
+ // data not null
102
+ _GetRecentEvents400ResponseError["default"].validateJSON(data['error']);
103
+ }
104
+ return true;
105
+ }
106
+ }]);
107
+ }();
108
+ GetRecentEvents400Response.RequiredProperties = ["error"];
109
+
110
+ /**
111
+ * @member {module:model/GetRecentEvents400ResponseError} error
112
+ */
113
+ GetRecentEvents400Response.prototype['error'] = undefined;
114
+ var _default = exports["default"] = GetRecentEvents400Response;
@@ -0,0 +1,154 @@
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. - Memory and - 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.
20
+ *
21
+ * The version of the OpenAPI document: 1.0.0
22
+ * Contact: contact@ipomo.in
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The GetRecentEvents400ResponseError model module.
31
+ * @module model/GetRecentEvents400ResponseError
32
+ * @version 1.0.1
33
+ */
34
+ var GetRecentEvents400ResponseError = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>GetRecentEvents400ResponseError</code>.
37
+ * @alias module:model/GetRecentEvents400ResponseError
38
+ * @param code {String}
39
+ * @param message {String}
40
+ * @param path {String}
41
+ * @param timestamp {String}
42
+ */
43
+ function GetRecentEvents400ResponseError(code, message, path, timestamp) {
44
+ _classCallCheck(this, GetRecentEvents400ResponseError);
45
+ GetRecentEvents400ResponseError.initialize(this, code, message, path, timestamp);
46
+ }
47
+
48
+ /**
49
+ * Initializes the fields of this object.
50
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
+ * Only for internal use.
52
+ */
53
+ return _createClass(GetRecentEvents400ResponseError, null, [{
54
+ key: "initialize",
55
+ value: function initialize(obj, code, message, path, timestamp) {
56
+ obj['code'] = code;
57
+ obj['message'] = message;
58
+ obj['path'] = path;
59
+ obj['timestamp'] = timestamp;
60
+ }
61
+
62
+ /**
63
+ * Constructs a <code>GetRecentEvents400ResponseError</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/GetRecentEvents400ResponseError} obj Optional instance to populate.
67
+ * @return {module:model/GetRecentEvents400ResponseError} The populated <code>GetRecentEvents400ResponseError</code> instance.
68
+ */
69
+ }, {
70
+ key: "constructFromObject",
71
+ value: function constructFromObject(data, obj) {
72
+ if (data) {
73
+ obj = obj || new GetRecentEvents400ResponseError();
74
+ if (data.hasOwnProperty('code')) {
75
+ obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('message')) {
78
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('path')) {
81
+ obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('timestamp')) {
84
+ obj['timestamp'] = _ApiClient["default"].convertToType(data['timestamp'], 'String');
85
+ }
86
+ }
87
+ return obj;
88
+ }
89
+
90
+ /**
91
+ * Validates the JSON data with respect to <code>GetRecentEvents400ResponseError</code>.
92
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
93
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetRecentEvents400ResponseError</code>.
94
+ */
95
+ }, {
96
+ key: "validateJSON",
97
+ value: function validateJSON(data) {
98
+ // check to make sure all required properties are present in the JSON string
99
+ var _iterator = _createForOfIteratorHelper(GetRecentEvents400ResponseError.RequiredProperties),
100
+ _step;
101
+ try {
102
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
103
+ var property = _step.value;
104
+ if (!data.hasOwnProperty(property)) {
105
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
106
+ }
107
+ }
108
+ // ensure the json data is a string
109
+ } catch (err) {
110
+ _iterator.e(err);
111
+ } finally {
112
+ _iterator.f();
113
+ }
114
+ if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) {
115
+ throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']);
116
+ }
117
+ // ensure the json data is a string
118
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
119
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
120
+ }
121
+ // ensure the json data is a string
122
+ if (data['path'] && !(typeof data['path'] === 'string' || data['path'] instanceof String)) {
123
+ throw new Error("Expected the field `path` to be a primitive type in the JSON string but got " + data['path']);
124
+ }
125
+ // ensure the json data is a string
126
+ if (data['timestamp'] && !(typeof data['timestamp'] === 'string' || data['timestamp'] instanceof String)) {
127
+ throw new Error("Expected the field `timestamp` to be a primitive type in the JSON string but got " + data['timestamp']);
128
+ }
129
+ return true;
130
+ }
131
+ }]);
132
+ }();
133
+ GetRecentEvents400ResponseError.RequiredProperties = ["code", "message", "path", "timestamp"];
134
+
135
+ /**
136
+ * @member {String} code
137
+ */
138
+ GetRecentEvents400ResponseError.prototype['code'] = undefined;
139
+
140
+ /**
141
+ * @member {String} message
142
+ */
143
+ GetRecentEvents400ResponseError.prototype['message'] = undefined;
144
+
145
+ /**
146
+ * @member {String} path
147
+ */
148
+ GetRecentEvents400ResponseError.prototype['path'] = undefined;
149
+
150
+ /**
151
+ * @member {String} timestamp
152
+ */
153
+ GetRecentEvents400ResponseError.prototype['timestamp'] = undefined;
154
+ var _default = exports["default"] = GetRecentEvents400ResponseError;