@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,186 @@
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 _GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner = _interopRequireDefault(require("./GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner"));
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 GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts model module.
32
+ * @module model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts
33
+ * @version 1.0.1
34
+ */
35
+ var GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts</code>.
38
+ * @alias module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts
39
+ * @param contentType {String}
40
+ * @param query {String}
41
+ * @param status {String}
42
+ * @param message {String}
43
+ * @param results {Array.<module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner>}
44
+ */
45
+ function GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts(contentType, query, status, message, results) {
46
+ _classCallCheck(this, GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts);
47
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.initialize(this, contentType, query, status, message, results);
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(GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts, null, [{
56
+ key: "initialize",
57
+ value: function initialize(obj, contentType, query, status, message, results) {
58
+ obj['content_type'] = contentType;
59
+ obj['query'] = query;
60
+ obj['status'] = status;
61
+ obj['message'] = message;
62
+ obj['results'] = results;
63
+ }
64
+
65
+ /**
66
+ * Constructs a <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts</code> from a plain JavaScript object, optionally creating a new instance.
67
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
68
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
69
+ * @param {module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts} obj Optional instance to populate.
70
+ * @return {module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts} The populated <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts</code> instance.
71
+ */
72
+ }, {
73
+ key: "constructFromObject",
74
+ value: function constructFromObject(data, obj) {
75
+ if (data) {
76
+ obj = obj || new GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts();
77
+ if (data.hasOwnProperty('content_type')) {
78
+ obj['content_type'] = _ApiClient["default"].convertToType(data['content_type'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('query')) {
81
+ obj['query'] = _ApiClient["default"].convertToType(data['query'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('status')) {
84
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('message')) {
87
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
88
+ }
89
+ if (data.hasOwnProperty('results')) {
90
+ obj['results'] = _ApiClient["default"].convertToType(data['results'], [_GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner["default"]]);
91
+ }
92
+ }
93
+ return obj;
94
+ }
95
+
96
+ /**
97
+ * Validates the JSON data with respect to <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts</code>.
98
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
99
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts</code>.
100
+ */
101
+ }, {
102
+ key: "validateJSON",
103
+ value: function validateJSON(data) {
104
+ // check to make sure all required properties are present in the JSON string
105
+ var _iterator = _createForOfIteratorHelper(GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.RequiredProperties),
106
+ _step;
107
+ try {
108
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
109
+ var property = _step.value;
110
+ if (!data.hasOwnProperty(property)) {
111
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
112
+ }
113
+ }
114
+ // ensure the json data is a string
115
+ } catch (err) {
116
+ _iterator.e(err);
117
+ } finally {
118
+ _iterator.f();
119
+ }
120
+ if (data['content_type'] && !(typeof data['content_type'] === 'string' || data['content_type'] instanceof String)) {
121
+ throw new Error("Expected the field `content_type` to be a primitive type in the JSON string but got " + data['content_type']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['query'] && !(typeof data['query'] === 'string' || data['query'] instanceof String)) {
125
+ throw new Error("Expected the field `query` to be a primitive type in the JSON string but got " + data['query']);
126
+ }
127
+ // ensure the json data is a string
128
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
129
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
130
+ }
131
+ // ensure the json data is a string
132
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
133
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
134
+ }
135
+ if (data['results']) {
136
+ // data not null
137
+ // ensure the json data is an array
138
+ if (!Array.isArray(data['results'])) {
139
+ throw new Error("Expected the field `results` to be an array in the JSON data but got " + data['results']);
140
+ }
141
+ // validate the optional field `results` (array)
142
+ var _iterator2 = _createForOfIteratorHelper(data['results']),
143
+ _step2;
144
+ try {
145
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
146
+ var item = _step2.value;
147
+ _GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner["default"].validateJSON(item);
148
+ }
149
+ } catch (err) {
150
+ _iterator2.e(err);
151
+ } finally {
152
+ _iterator2.f();
153
+ }
154
+ ;
155
+ }
156
+ return true;
157
+ }
158
+ }]);
159
+ }();
160
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.RequiredProperties = ["content_type", "query", "status", "message", "results"];
161
+
162
+ /**
163
+ * @member {String} content_type
164
+ */
165
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.prototype['content_type'] = undefined;
166
+
167
+ /**
168
+ * @member {String} query
169
+ */
170
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.prototype['query'] = undefined;
171
+
172
+ /**
173
+ * @member {String} status
174
+ */
175
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.prototype['status'] = undefined;
176
+
177
+ /**
178
+ * @member {String} message
179
+ */
180
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.prototype['message'] = undefined;
181
+
182
+ /**
183
+ * @member {Array.<module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner>} results
184
+ */
185
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.prototype['results'] = undefined;
186
+ var _default = exports["default"] = GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts;
@@ -0,0 +1,216 @@
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 GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner model module.
31
+ * @module model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner
32
+ * @version 1.0.1
33
+ */
34
+ var GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code>.
37
+ * @alias module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner
38
+ * @param fromFloor {String}
39
+ * @param content {String}
40
+ * @param author {String}
41
+ * @param blockType {Number}
42
+ * @param pid {String}
43
+ * @param bid {String}
44
+ * @param fid {String}
45
+ * @param score {Number}
46
+ * @param matchType {String}
47
+ */
48
+ function GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner(fromFloor, content, author, blockType, pid, bid, fid, score, matchType) {
49
+ _classCallCheck(this, GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner);
50
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.initialize(this, fromFloor, content, author, blockType, pid, bid, fid, score, matchType);
51
+ }
52
+
53
+ /**
54
+ * Initializes the fields of this object.
55
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
56
+ * Only for internal use.
57
+ */
58
+ return _createClass(GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner, null, [{
59
+ key: "initialize",
60
+ value: function initialize(obj, fromFloor, content, author, blockType, pid, bid, fid, score, matchType) {
61
+ obj['from_floor'] = fromFloor;
62
+ obj['content'] = content;
63
+ obj['author'] = author;
64
+ obj['block_type'] = blockType;
65
+ obj['pid'] = pid;
66
+ obj['bid'] = bid;
67
+ obj['fid'] = fid;
68
+ obj['score'] = score;
69
+ obj['match_type'] = matchType;
70
+ }
71
+
72
+ /**
73
+ * Constructs a <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code> from a plain JavaScript object, optionally creating a new instance.
74
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @param {module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner} obj Optional instance to populate.
77
+ * @return {module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner} The populated <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code> instance.
78
+ */
79
+ }, {
80
+ key: "constructFromObject",
81
+ value: function constructFromObject(data, obj) {
82
+ if (data) {
83
+ obj = obj || new GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner();
84
+ if (data.hasOwnProperty('from_floor')) {
85
+ obj['from_floor'] = _ApiClient["default"].convertToType(data['from_floor'], 'String');
86
+ }
87
+ if (data.hasOwnProperty('content')) {
88
+ obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
89
+ }
90
+ if (data.hasOwnProperty('author')) {
91
+ obj['author'] = _ApiClient["default"].convertToType(data['author'], 'String');
92
+ }
93
+ if (data.hasOwnProperty('block_type')) {
94
+ obj['block_type'] = _ApiClient["default"].convertToType(data['block_type'], 'Number');
95
+ }
96
+ if (data.hasOwnProperty('pid')) {
97
+ obj['pid'] = _ApiClient["default"].convertToType(data['pid'], 'String');
98
+ }
99
+ if (data.hasOwnProperty('bid')) {
100
+ obj['bid'] = _ApiClient["default"].convertToType(data['bid'], 'String');
101
+ }
102
+ if (data.hasOwnProperty('fid')) {
103
+ obj['fid'] = _ApiClient["default"].convertToType(data['fid'], 'String');
104
+ }
105
+ if (data.hasOwnProperty('score')) {
106
+ obj['score'] = _ApiClient["default"].convertToType(data['score'], 'Number');
107
+ }
108
+ if (data.hasOwnProperty('match_type')) {
109
+ obj['match_type'] = _ApiClient["default"].convertToType(data['match_type'], 'String');
110
+ }
111
+ }
112
+ return obj;
113
+ }
114
+
115
+ /**
116
+ * Validates the JSON data with respect to <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code>.
117
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
118
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code>.
119
+ */
120
+ }, {
121
+ key: "validateJSON",
122
+ value: function validateJSON(data) {
123
+ // check to make sure all required properties are present in the JSON string
124
+ var _iterator = _createForOfIteratorHelper(GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.RequiredProperties),
125
+ _step;
126
+ try {
127
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
128
+ var property = _step.value;
129
+ if (!data.hasOwnProperty(property)) {
130
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
131
+ }
132
+ }
133
+ // ensure the json data is a string
134
+ } catch (err) {
135
+ _iterator.e(err);
136
+ } finally {
137
+ _iterator.f();
138
+ }
139
+ if (data['from_floor'] && !(typeof data['from_floor'] === 'string' || data['from_floor'] instanceof String)) {
140
+ throw new Error("Expected the field `from_floor` to be a primitive type in the JSON string but got " + data['from_floor']);
141
+ }
142
+ // ensure the json data is a string
143
+ if (data['content'] && !(typeof data['content'] === 'string' || data['content'] instanceof String)) {
144
+ throw new Error("Expected the field `content` to be a primitive type in the JSON string but got " + data['content']);
145
+ }
146
+ // ensure the json data is a string
147
+ if (data['author'] && !(typeof data['author'] === 'string' || data['author'] instanceof String)) {
148
+ throw new Error("Expected the field `author` to be a primitive type in the JSON string but got " + data['author']);
149
+ }
150
+ // ensure the json data is a string
151
+ if (data['pid'] && !(typeof data['pid'] === 'string' || data['pid'] instanceof String)) {
152
+ throw new Error("Expected the field `pid` to be a primitive type in the JSON string but got " + data['pid']);
153
+ }
154
+ // ensure the json data is a string
155
+ if (data['bid'] && !(typeof data['bid'] === 'string' || data['bid'] instanceof String)) {
156
+ throw new Error("Expected the field `bid` to be a primitive type in the JSON string but got " + data['bid']);
157
+ }
158
+ // ensure the json data is a string
159
+ if (data['fid'] && !(typeof data['fid'] === 'string' || data['fid'] instanceof String)) {
160
+ throw new Error("Expected the field `fid` to be a primitive type in the JSON string but got " + data['fid']);
161
+ }
162
+ // ensure the json data is a string
163
+ if (data['match_type'] && !(typeof data['match_type'] === 'string' || data['match_type'] instanceof String)) {
164
+ throw new Error("Expected the field `match_type` to be a primitive type in the JSON string but got " + data['match_type']);
165
+ }
166
+ return true;
167
+ }
168
+ }]);
169
+ }();
170
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.RequiredProperties = ["from_floor", "content", "author", "block_type", "pid", "bid", "fid", "score", "match_type"];
171
+
172
+ /**
173
+ * @member {String} from_floor
174
+ */
175
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['from_floor'] = undefined;
176
+
177
+ /**
178
+ * @member {String} content
179
+ */
180
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['content'] = undefined;
181
+
182
+ /**
183
+ * @member {String} author
184
+ */
185
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['author'] = undefined;
186
+
187
+ /**
188
+ * @member {Number} block_type
189
+ */
190
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['block_type'] = undefined;
191
+
192
+ /**
193
+ * @member {String} pid
194
+ */
195
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['pid'] = undefined;
196
+
197
+ /**
198
+ * @member {String} bid
199
+ */
200
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['bid'] = undefined;
201
+
202
+ /**
203
+ * @member {String} fid
204
+ */
205
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['fid'] = undefined;
206
+
207
+ /**
208
+ * @member {Number} score
209
+ */
210
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['score'] = undefined;
211
+
212
+ /**
213
+ * @member {String} match_type
214
+ */
215
+ GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['match_type'] = undefined;
216
+ var _default = exports["default"] = GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner;
@@ -0,0 +1,170 @@
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 _GetConversations200ResponseConversationInnerUserContext = _interopRequireDefault(require("./GetConversations200ResponseConversationInnerUserContext"));
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 GetConversations200ResponseConversationInnerUser model module.
32
+ * @module model/GetConversations200ResponseConversationInnerUser
33
+ * @version 1.0.1
34
+ */
35
+ var GetConversations200ResponseConversationInnerUser = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>GetConversations200ResponseConversationInnerUser</code>.
38
+ * @alias module:model/GetConversations200ResponseConversationInnerUser
39
+ * @param context {module:model/GetConversations200ResponseConversationInnerUserContext}
40
+ * @param userQuery {String}
41
+ * @param userId {String}
42
+ * @param userThread {String}
43
+ * @param recordedContent {String}
44
+ */
45
+ function GetConversations200ResponseConversationInnerUser(context, userQuery, userId, userThread, recordedContent) {
46
+ _classCallCheck(this, GetConversations200ResponseConversationInnerUser);
47
+ GetConversations200ResponseConversationInnerUser.initialize(this, context, userQuery, userId, userThread, recordedContent);
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(GetConversations200ResponseConversationInnerUser, null, [{
56
+ key: "initialize",
57
+ value: function initialize(obj, context, userQuery, userId, userThread, recordedContent) {
58
+ obj['context'] = context;
59
+ obj['user_query'] = userQuery;
60
+ obj['user_id'] = userId;
61
+ obj['user_thread'] = userThread;
62
+ obj['recorded_content'] = recordedContent;
63
+ }
64
+
65
+ /**
66
+ * Constructs a <code>GetConversations200ResponseConversationInnerUser</code> from a plain JavaScript object, optionally creating a new instance.
67
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
68
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
69
+ * @param {module:model/GetConversations200ResponseConversationInnerUser} obj Optional instance to populate.
70
+ * @return {module:model/GetConversations200ResponseConversationInnerUser} The populated <code>GetConversations200ResponseConversationInnerUser</code> instance.
71
+ */
72
+ }, {
73
+ key: "constructFromObject",
74
+ value: function constructFromObject(data, obj) {
75
+ if (data) {
76
+ obj = obj || new GetConversations200ResponseConversationInnerUser();
77
+ if (data.hasOwnProperty('context')) {
78
+ obj['context'] = _GetConversations200ResponseConversationInnerUserContext["default"].constructFromObject(data['context']);
79
+ }
80
+ if (data.hasOwnProperty('user_query')) {
81
+ obj['user_query'] = _ApiClient["default"].convertToType(data['user_query'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('user_id')) {
84
+ obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('user_thread')) {
87
+ obj['user_thread'] = _ApiClient["default"].convertToType(data['user_thread'], 'String');
88
+ }
89
+ if (data.hasOwnProperty('recorded_content')) {
90
+ obj['recorded_content'] = _ApiClient["default"].convertToType(data['recorded_content'], 'String');
91
+ }
92
+ }
93
+ return obj;
94
+ }
95
+
96
+ /**
97
+ * Validates the JSON data with respect to <code>GetConversations200ResponseConversationInnerUser</code>.
98
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
99
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetConversations200ResponseConversationInnerUser</code>.
100
+ */
101
+ }, {
102
+ key: "validateJSON",
103
+ value: function validateJSON(data) {
104
+ // check to make sure all required properties are present in the JSON string
105
+ var _iterator = _createForOfIteratorHelper(GetConversations200ResponseConversationInnerUser.RequiredProperties),
106
+ _step;
107
+ try {
108
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
109
+ var property = _step.value;
110
+ if (!data.hasOwnProperty(property)) {
111
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
112
+ }
113
+ }
114
+ // validate the optional field `context`
115
+ } catch (err) {
116
+ _iterator.e(err);
117
+ } finally {
118
+ _iterator.f();
119
+ }
120
+ if (data['context']) {
121
+ // data not null
122
+ _GetConversations200ResponseConversationInnerUserContext["default"].validateJSON(data['context']);
123
+ }
124
+ // ensure the json data is a string
125
+ if (data['user_query'] && !(typeof data['user_query'] === 'string' || data['user_query'] instanceof String)) {
126
+ throw new Error("Expected the field `user_query` to be a primitive type in the JSON string but got " + data['user_query']);
127
+ }
128
+ // ensure the json data is a string
129
+ if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
130
+ throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
131
+ }
132
+ // ensure the json data is a string
133
+ if (data['user_thread'] && !(typeof data['user_thread'] === 'string' || data['user_thread'] instanceof String)) {
134
+ throw new Error("Expected the field `user_thread` to be a primitive type in the JSON string but got " + data['user_thread']);
135
+ }
136
+ // ensure the json data is a string
137
+ if (data['recorded_content'] && !(typeof data['recorded_content'] === 'string' || data['recorded_content'] instanceof String)) {
138
+ throw new Error("Expected the field `recorded_content` to be a primitive type in the JSON string but got " + data['recorded_content']);
139
+ }
140
+ return true;
141
+ }
142
+ }]);
143
+ }();
144
+ GetConversations200ResponseConversationInnerUser.RequiredProperties = ["context", "user_query", "user_id", "user_thread", "recorded_content"];
145
+
146
+ /**
147
+ * @member {module:model/GetConversations200ResponseConversationInnerUserContext} context
148
+ */
149
+ GetConversations200ResponseConversationInnerUser.prototype['context'] = undefined;
150
+
151
+ /**
152
+ * @member {String} user_query
153
+ */
154
+ GetConversations200ResponseConversationInnerUser.prototype['user_query'] = undefined;
155
+
156
+ /**
157
+ * @member {String} user_id
158
+ */
159
+ GetConversations200ResponseConversationInnerUser.prototype['user_id'] = undefined;
160
+
161
+ /**
162
+ * @member {String} user_thread
163
+ */
164
+ GetConversations200ResponseConversationInnerUser.prototype['user_thread'] = undefined;
165
+
166
+ /**
167
+ * @member {String} recorded_content
168
+ */
169
+ GetConversations200ResponseConversationInnerUser.prototype['recorded_content'] = undefined;
170
+ var _default = exports["default"] = GetConversations200ResponseConversationInnerUser;