@xfloor/floor-memory-sdk-js 1.0.15 → 1.0.17

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/README.md +8 -28
  2. package/dist/ApiClient.js +6 -6
  3. package/dist/api/DefaultApi.js +8 -251
  4. package/dist/api/EditFloorApi.js +1 -1
  5. package/dist/api/EventApi.js +3 -3
  6. package/dist/api/GetFloorInformationApi.js +1 -1
  7. package/dist/api/GetRecentEventsApi.js +1 -1
  8. package/dist/api/QueryApi.js +1 -1
  9. package/dist/index.js +0 -112
  10. package/dist/model/BlockDetails.js +1 -1
  11. package/dist/model/ChangePassword200Response.js +1 -1
  12. package/dist/model/EditFloor400Response.js +1 -1
  13. package/dist/model/EditFloor400ResponseError.js +1 -1
  14. package/dist/model/Event400Response.js +1 -1
  15. package/dist/model/Event400ResponseError.js +1 -1
  16. package/dist/model/EventResponse.js +1 -1
  17. package/dist/model/FloorInfo.js +1 -1
  18. package/dist/model/GetFloorInformation200Response.js +1 -1
  19. package/dist/model/GetRecentEvents200Response.js +1 -1
  20. package/dist/model/GetRecentEvents200ResponseItemsInner.js +1 -1
  21. package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +1 -1
  22. package/dist/model/GetRecentEvents400Response.js +1 -1
  23. package/dist/model/GetRecentEvents400ResponseError.js +1 -1
  24. package/dist/model/Media.js +1 -1
  25. package/dist/model/Model400ErrorCode.js +1 -1
  26. package/dist/model/Query422Response.js +1 -1
  27. package/dist/model/Query422ResponseError.js +1 -1
  28. package/dist/model/QueryRequest.js +1 -1
  29. package/dist/model/QueryRequestFilters.js +1 -1
  30. package/dist/model/QueryResponse.js +1 -1
  31. package/dist/model/QueryResponseItemsInner.js +1 -1
  32. package/dist/model/ResetPassword200Response.js +1 -1
  33. package/dist/model/ResetPassword400Response.js +1 -1
  34. package/dist/model/SendValidationCode200Response.js +1 -1
  35. package/dist/model/SignInWithEmail200Response.js +1 -1
  36. package/dist/model/SignInWithEmail200ResponsePodInfo.js +1 -1
  37. package/dist/model/SignInWithEmail200ResponseProfile.js +1 -1
  38. package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +1 -1
  39. package/dist/model/SignUp200Response.js +1 -1
  40. package/dist/model/SignUpResponse.js +1 -1
  41. package/dist/model/UserDetails.js +1 -1
  42. package/dist/model/ValidateCode400Response.js +1 -1
  43. package/dist/model/ValidateCode400ResponseError.js +1 -1
  44. package/dist/model/ValidateCode412Response.js +1 -1
  45. package/dist/model/ValidateCodeRequest.js +1 -1
  46. package/package.json +1 -1
  47. package/dist/model/ConversationThreads200Response.js +0 -146
  48. package/dist/model/ConversationThreads200ResponseThreadsInner.js +0 -142
  49. package/dist/model/GetConversations200Response.js +0 -160
  50. package/dist/model/GetConversations200ResponseConversationInner.js +0 -107
  51. package/dist/model/GetConversations200ResponseConversationInnerAssistant.js +0 -228
  52. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInner.js +0 -141
  53. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails.js +0 -212
  54. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage.js +0 -128
  55. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails.js +0 -128
  56. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.js +0 -188
  57. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.js +0 -218
  58. package/dist/model/GetConversations200ResponseConversationInnerUser.js +0 -172
  59. package/dist/model/GetConversations200ResponseConversationInnerUserContext.js +0 -170
  60. package/dist/model/PostAdd.js +0 -175
  61. package/dist/model/SendSignInValidationCode200Response.js +0 -143
  62. package/dist/model/Threads.js +0 -142
@@ -1,218 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
- * Floor Memory
19
- * The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts.
20
- * - Memory and
21
- * - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
22
- *
23
- * The version of the OpenAPI document: 1.0.0
24
- * Contact: contact@ipomo.in
25
- *
26
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
- * https://openapi-generator.tech
28
- * Do not edit the class manually.
29
- *
30
- */
31
- /**
32
- * The GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner model module.
33
- * @module model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner
34
- * @version 1.0.15
35
- */
36
- var GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner = /*#__PURE__*/function () {
37
- /**
38
- * Constructs a new <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code>.
39
- * @alias module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner
40
- * @param fromFloor {String}
41
- * @param content {String}
42
- * @param author {String}
43
- * @param blockType {Number}
44
- * @param pid {String}
45
- * @param bid {String}
46
- * @param fid {String}
47
- * @param score {Number}
48
- * @param matchType {String}
49
- */
50
- function GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner(fromFloor, content, author, blockType, pid, bid, fid, score, matchType) {
51
- _classCallCheck(this, GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner);
52
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.initialize(this, fromFloor, content, author, blockType, pid, bid, fid, score, matchType);
53
- }
54
-
55
- /**
56
- * Initializes the fields of this object.
57
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
58
- * Only for internal use.
59
- */
60
- return _createClass(GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner, null, [{
61
- key: "initialize",
62
- value: function initialize(obj, fromFloor, content, author, blockType, pid, bid, fid, score, matchType) {
63
- obj['from_floor'] = fromFloor;
64
- obj['content'] = content;
65
- obj['author'] = author;
66
- obj['block_type'] = blockType;
67
- obj['pid'] = pid;
68
- obj['bid'] = bid;
69
- obj['fid'] = fid;
70
- obj['score'] = score;
71
- obj['match_type'] = matchType;
72
- }
73
-
74
- /**
75
- * Constructs a <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code> from a plain JavaScript object, optionally creating a new instance.
76
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
77
- * @param {Object} data The plain JavaScript object bearing properties of interest.
78
- * @param {module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner} obj Optional instance to populate.
79
- * @return {module:model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner} The populated <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code> instance.
80
- */
81
- }, {
82
- key: "constructFromObject",
83
- value: function constructFromObject(data, obj) {
84
- if (data) {
85
- obj = obj || new GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner();
86
- if (data.hasOwnProperty('from_floor')) {
87
- obj['from_floor'] = _ApiClient["default"].convertToType(data['from_floor'], 'String');
88
- }
89
- if (data.hasOwnProperty('content')) {
90
- obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
91
- }
92
- if (data.hasOwnProperty('author')) {
93
- obj['author'] = _ApiClient["default"].convertToType(data['author'], 'String');
94
- }
95
- if (data.hasOwnProperty('block_type')) {
96
- obj['block_type'] = _ApiClient["default"].convertToType(data['block_type'], 'Number');
97
- }
98
- if (data.hasOwnProperty('pid')) {
99
- obj['pid'] = _ApiClient["default"].convertToType(data['pid'], 'String');
100
- }
101
- if (data.hasOwnProperty('bid')) {
102
- obj['bid'] = _ApiClient["default"].convertToType(data['bid'], 'String');
103
- }
104
- if (data.hasOwnProperty('fid')) {
105
- obj['fid'] = _ApiClient["default"].convertToType(data['fid'], 'String');
106
- }
107
- if (data.hasOwnProperty('score')) {
108
- obj['score'] = _ApiClient["default"].convertToType(data['score'], 'Number');
109
- }
110
- if (data.hasOwnProperty('match_type')) {
111
- obj['match_type'] = _ApiClient["default"].convertToType(data['match_type'], 'String');
112
- }
113
- }
114
- return obj;
115
- }
116
-
117
- /**
118
- * Validates the JSON data with respect to <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code>.
119
- * @param {Object} data The plain JavaScript object bearing properties of interest.
120
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner</code>.
121
- */
122
- }, {
123
- key: "validateJSON",
124
- value: function validateJSON(data) {
125
- // check to make sure all required properties are present in the JSON string
126
- var _iterator = _createForOfIteratorHelper(GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.RequiredProperties),
127
- _step;
128
- try {
129
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
130
- var property = _step.value;
131
- if (!data.hasOwnProperty(property)) {
132
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
133
- }
134
- }
135
- // ensure the json data is a string
136
- } catch (err) {
137
- _iterator.e(err);
138
- } finally {
139
- _iterator.f();
140
- }
141
- if (data['from_floor'] && !(typeof data['from_floor'] === 'string' || data['from_floor'] instanceof String)) {
142
- throw new Error("Expected the field `from_floor` to be a primitive type in the JSON string but got " + data['from_floor']);
143
- }
144
- // ensure the json data is a string
145
- if (data['content'] && !(typeof data['content'] === 'string' || data['content'] instanceof String)) {
146
- throw new Error("Expected the field `content` to be a primitive type in the JSON string but got " + data['content']);
147
- }
148
- // ensure the json data is a string
149
- if (data['author'] && !(typeof data['author'] === 'string' || data['author'] instanceof String)) {
150
- throw new Error("Expected the field `author` to be a primitive type in the JSON string but got " + data['author']);
151
- }
152
- // ensure the json data is a string
153
- if (data['pid'] && !(typeof data['pid'] === 'string' || data['pid'] instanceof String)) {
154
- throw new Error("Expected the field `pid` to be a primitive type in the JSON string but got " + data['pid']);
155
- }
156
- // ensure the json data is a string
157
- if (data['bid'] && !(typeof data['bid'] === 'string' || data['bid'] instanceof String)) {
158
- throw new Error("Expected the field `bid` to be a primitive type in the JSON string but got " + data['bid']);
159
- }
160
- // ensure the json data is a string
161
- if (data['fid'] && !(typeof data['fid'] === 'string' || data['fid'] instanceof String)) {
162
- throw new Error("Expected the field `fid` to be a primitive type in the JSON string but got " + data['fid']);
163
- }
164
- // ensure the json data is a string
165
- if (data['match_type'] && !(typeof data['match_type'] === 'string' || data['match_type'] instanceof String)) {
166
- throw new Error("Expected the field `match_type` to be a primitive type in the JSON string but got " + data['match_type']);
167
- }
168
- return true;
169
- }
170
- }]);
171
- }();
172
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.RequiredProperties = ["from_floor", "content", "author", "block_type", "pid", "bid", "fid", "score", "match_type"];
173
-
174
- /**
175
- * @member {String} from_floor
176
- */
177
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['from_floor'] = undefined;
178
-
179
- /**
180
- * @member {String} content
181
- */
182
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['content'] = undefined;
183
-
184
- /**
185
- * @member {String} author
186
- */
187
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['author'] = undefined;
188
-
189
- /**
190
- * @member {Number} block_type
191
- */
192
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['block_type'] = undefined;
193
-
194
- /**
195
- * @member {String} pid
196
- */
197
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['pid'] = undefined;
198
-
199
- /**
200
- * @member {String} bid
201
- */
202
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['bid'] = undefined;
203
-
204
- /**
205
- * @member {String} fid
206
- */
207
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['fid'] = undefined;
208
-
209
- /**
210
- * @member {Number} score
211
- */
212
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['score'] = undefined;
213
-
214
- /**
215
- * @member {String} match_type
216
- */
217
- GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.prototype['match_type'] = undefined;
218
- var _default = exports["default"] = GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner;
@@ -1,172 +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 _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.
21
- * - Memory and
22
- * - 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.
23
- *
24
- * The version of the OpenAPI document: 1.0.0
25
- * Contact: contact@ipomo.in
26
- *
27
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
28
- * https://openapi-generator.tech
29
- * Do not edit the class manually.
30
- *
31
- */
32
- /**
33
- * The GetConversations200ResponseConversationInnerUser model module.
34
- * @module model/GetConversations200ResponseConversationInnerUser
35
- * @version 1.0.15
36
- */
37
- var GetConversations200ResponseConversationInnerUser = /*#__PURE__*/function () {
38
- /**
39
- * Constructs a new <code>GetConversations200ResponseConversationInnerUser</code>.
40
- * @alias module:model/GetConversations200ResponseConversationInnerUser
41
- * @param context {module:model/GetConversations200ResponseConversationInnerUserContext}
42
- * @param userQuery {String}
43
- * @param userId {String}
44
- * @param userThread {String}
45
- * @param recordedContent {String}
46
- */
47
- function GetConversations200ResponseConversationInnerUser(context, userQuery, userId, userThread, recordedContent) {
48
- _classCallCheck(this, GetConversations200ResponseConversationInnerUser);
49
- GetConversations200ResponseConversationInnerUser.initialize(this, context, userQuery, userId, userThread, recordedContent);
50
- }
51
-
52
- /**
53
- * Initializes the fields of this object.
54
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
55
- * Only for internal use.
56
- */
57
- return _createClass(GetConversations200ResponseConversationInnerUser, null, [{
58
- key: "initialize",
59
- value: function initialize(obj, context, userQuery, userId, userThread, recordedContent) {
60
- obj['context'] = context;
61
- obj['user_query'] = userQuery;
62
- obj['user_id'] = userId;
63
- obj['user_thread'] = userThread;
64
- obj['recorded_content'] = recordedContent;
65
- }
66
-
67
- /**
68
- * Constructs a <code>GetConversations200ResponseConversationInnerUser</code> from a plain JavaScript object, optionally creating a new instance.
69
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
70
- * @param {Object} data The plain JavaScript object bearing properties of interest.
71
- * @param {module:model/GetConversations200ResponseConversationInnerUser} obj Optional instance to populate.
72
- * @return {module:model/GetConversations200ResponseConversationInnerUser} The populated <code>GetConversations200ResponseConversationInnerUser</code> instance.
73
- */
74
- }, {
75
- key: "constructFromObject",
76
- value: function constructFromObject(data, obj) {
77
- if (data) {
78
- obj = obj || new GetConversations200ResponseConversationInnerUser();
79
- if (data.hasOwnProperty('context')) {
80
- obj['context'] = _GetConversations200ResponseConversationInnerUserContext["default"].constructFromObject(data['context']);
81
- }
82
- if (data.hasOwnProperty('user_query')) {
83
- obj['user_query'] = _ApiClient["default"].convertToType(data['user_query'], 'String');
84
- }
85
- if (data.hasOwnProperty('user_id')) {
86
- obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
87
- }
88
- if (data.hasOwnProperty('user_thread')) {
89
- obj['user_thread'] = _ApiClient["default"].convertToType(data['user_thread'], 'String');
90
- }
91
- if (data.hasOwnProperty('recorded_content')) {
92
- obj['recorded_content'] = _ApiClient["default"].convertToType(data['recorded_content'], 'String');
93
- }
94
- }
95
- return obj;
96
- }
97
-
98
- /**
99
- * Validates the JSON data with respect to <code>GetConversations200ResponseConversationInnerUser</code>.
100
- * @param {Object} data The plain JavaScript object bearing properties of interest.
101
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetConversations200ResponseConversationInnerUser</code>.
102
- */
103
- }, {
104
- key: "validateJSON",
105
- value: function validateJSON(data) {
106
- // check to make sure all required properties are present in the JSON string
107
- var _iterator = _createForOfIteratorHelper(GetConversations200ResponseConversationInnerUser.RequiredProperties),
108
- _step;
109
- try {
110
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
111
- var property = _step.value;
112
- if (!data.hasOwnProperty(property)) {
113
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
114
- }
115
- }
116
- // validate the optional field `context`
117
- } catch (err) {
118
- _iterator.e(err);
119
- } finally {
120
- _iterator.f();
121
- }
122
- if (data['context']) {
123
- // data not null
124
- _GetConversations200ResponseConversationInnerUserContext["default"].validateJSON(data['context']);
125
- }
126
- // ensure the json data is a string
127
- if (data['user_query'] && !(typeof data['user_query'] === 'string' || data['user_query'] instanceof String)) {
128
- throw new Error("Expected the field `user_query` to be a primitive type in the JSON string but got " + data['user_query']);
129
- }
130
- // ensure the json data is a string
131
- if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
132
- throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
133
- }
134
- // ensure the json data is a string
135
- if (data['user_thread'] && !(typeof data['user_thread'] === 'string' || data['user_thread'] instanceof String)) {
136
- throw new Error("Expected the field `user_thread` to be a primitive type in the JSON string but got " + data['user_thread']);
137
- }
138
- // ensure the json data is a string
139
- if (data['recorded_content'] && !(typeof data['recorded_content'] === 'string' || data['recorded_content'] instanceof String)) {
140
- throw new Error("Expected the field `recorded_content` to be a primitive type in the JSON string but got " + data['recorded_content']);
141
- }
142
- return true;
143
- }
144
- }]);
145
- }();
146
- GetConversations200ResponseConversationInnerUser.RequiredProperties = ["context", "user_query", "user_id", "user_thread", "recorded_content"];
147
-
148
- /**
149
- * @member {module:model/GetConversations200ResponseConversationInnerUserContext} context
150
- */
151
- GetConversations200ResponseConversationInnerUser.prototype['context'] = undefined;
152
-
153
- /**
154
- * @member {String} user_query
155
- */
156
- GetConversations200ResponseConversationInnerUser.prototype['user_query'] = undefined;
157
-
158
- /**
159
- * @member {String} user_id
160
- */
161
- GetConversations200ResponseConversationInnerUser.prototype['user_id'] = undefined;
162
-
163
- /**
164
- * @member {String} user_thread
165
- */
166
- GetConversations200ResponseConversationInnerUser.prototype['user_thread'] = undefined;
167
-
168
- /**
169
- * @member {String} recorded_content
170
- */
171
- GetConversations200ResponseConversationInnerUser.prototype['recorded_content'] = undefined;
172
- var _default = exports["default"] = GetConversations200ResponseConversationInnerUser;
@@ -1,170 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
- * Floor Memory
19
- * The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts.
20
- * - Memory and
21
- * - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
22
- *
23
- * The version of the OpenAPI document: 1.0.0
24
- * Contact: contact@ipomo.in
25
- *
26
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
- * https://openapi-generator.tech
28
- * Do not edit the class manually.
29
- *
30
- */
31
- /**
32
- * The GetConversations200ResponseConversationInnerUserContext model module.
33
- * @module model/GetConversations200ResponseConversationInnerUserContext
34
- * @version 1.0.15
35
- */
36
- var GetConversations200ResponseConversationInnerUserContext = /*#__PURE__*/function () {
37
- /**
38
- * Constructs a new <code>GetConversations200ResponseConversationInnerUserContext</code>.
39
- * @alias module:model/GetConversations200ResponseConversationInnerUserContext
40
- * @param floorId {String}
41
- * @param title {String}
42
- * @param fid {String}
43
- * @param floorCategory {String}
44
- * @param floorMode {String}
45
- */
46
- function GetConversations200ResponseConversationInnerUserContext(floorId, title, fid, floorCategory, floorMode) {
47
- _classCallCheck(this, GetConversations200ResponseConversationInnerUserContext);
48
- GetConversations200ResponseConversationInnerUserContext.initialize(this, floorId, title, fid, floorCategory, floorMode);
49
- }
50
-
51
- /**
52
- * Initializes the fields of this object.
53
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
54
- * Only for internal use.
55
- */
56
- return _createClass(GetConversations200ResponseConversationInnerUserContext, null, [{
57
- key: "initialize",
58
- value: function initialize(obj, floorId, title, fid, floorCategory, floorMode) {
59
- obj['floor_id'] = floorId;
60
- obj['title'] = title;
61
- obj['fid'] = fid;
62
- obj['floor_category'] = floorCategory;
63
- obj['floor_mode'] = floorMode;
64
- }
65
-
66
- /**
67
- * Constructs a <code>GetConversations200ResponseConversationInnerUserContext</code> from a plain JavaScript object, optionally creating a new instance.
68
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
69
- * @param {Object} data The plain JavaScript object bearing properties of interest.
70
- * @param {module:model/GetConversations200ResponseConversationInnerUserContext} obj Optional instance to populate.
71
- * @return {module:model/GetConversations200ResponseConversationInnerUserContext} The populated <code>GetConversations200ResponseConversationInnerUserContext</code> instance.
72
- */
73
- }, {
74
- key: "constructFromObject",
75
- value: function constructFromObject(data, obj) {
76
- if (data) {
77
- obj = obj || new GetConversations200ResponseConversationInnerUserContext();
78
- if (data.hasOwnProperty('floor_id')) {
79
- obj['floor_id'] = _ApiClient["default"].convertToType(data['floor_id'], 'String');
80
- }
81
- if (data.hasOwnProperty('title')) {
82
- obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
83
- }
84
- if (data.hasOwnProperty('fid')) {
85
- obj['fid'] = _ApiClient["default"].convertToType(data['fid'], 'String');
86
- }
87
- if (data.hasOwnProperty('floor_category')) {
88
- obj['floor_category'] = _ApiClient["default"].convertToType(data['floor_category'], 'String');
89
- }
90
- if (data.hasOwnProperty('floor_mode')) {
91
- obj['floor_mode'] = _ApiClient["default"].convertToType(data['floor_mode'], 'String');
92
- }
93
- }
94
- return obj;
95
- }
96
-
97
- /**
98
- * Validates the JSON data with respect to <code>GetConversations200ResponseConversationInnerUserContext</code>.
99
- * @param {Object} data The plain JavaScript object bearing properties of interest.
100
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetConversations200ResponseConversationInnerUserContext</code>.
101
- */
102
- }, {
103
- key: "validateJSON",
104
- value: function validateJSON(data) {
105
- // check to make sure all required properties are present in the JSON string
106
- var _iterator = _createForOfIteratorHelper(GetConversations200ResponseConversationInnerUserContext.RequiredProperties),
107
- _step;
108
- try {
109
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
110
- var property = _step.value;
111
- if (!data.hasOwnProperty(property)) {
112
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
113
- }
114
- }
115
- // ensure the json data is a string
116
- } catch (err) {
117
- _iterator.e(err);
118
- } finally {
119
- _iterator.f();
120
- }
121
- if (data['floor_id'] && !(typeof data['floor_id'] === 'string' || data['floor_id'] instanceof String)) {
122
- throw new Error("Expected the field `floor_id` to be a primitive type in the JSON string but got " + data['floor_id']);
123
- }
124
- // ensure the json data is a string
125
- if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
126
- throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
127
- }
128
- // ensure the json data is a string
129
- if (data['fid'] && !(typeof data['fid'] === 'string' || data['fid'] instanceof String)) {
130
- throw new Error("Expected the field `fid` to be a primitive type in the JSON string but got " + data['fid']);
131
- }
132
- // ensure the json data is a string
133
- if (data['floor_category'] && !(typeof data['floor_category'] === 'string' || data['floor_category'] instanceof String)) {
134
- throw new Error("Expected the field `floor_category` to be a primitive type in the JSON string but got " + data['floor_category']);
135
- }
136
- // ensure the json data is a string
137
- if (data['floor_mode'] && !(typeof data['floor_mode'] === 'string' || data['floor_mode'] instanceof String)) {
138
- throw new Error("Expected the field `floor_mode` to be a primitive type in the JSON string but got " + data['floor_mode']);
139
- }
140
- return true;
141
- }
142
- }]);
143
- }();
144
- GetConversations200ResponseConversationInnerUserContext.RequiredProperties = ["floor_id", "title", "fid", "floor_category", "floor_mode"];
145
-
146
- /**
147
- * @member {String} floor_id
148
- */
149
- GetConversations200ResponseConversationInnerUserContext.prototype['floor_id'] = undefined;
150
-
151
- /**
152
- * @member {String} title
153
- */
154
- GetConversations200ResponseConversationInnerUserContext.prototype['title'] = undefined;
155
-
156
- /**
157
- * @member {String} fid
158
- */
159
- GetConversations200ResponseConversationInnerUserContext.prototype['fid'] = undefined;
160
-
161
- /**
162
- * @member {String} floor_category
163
- */
164
- GetConversations200ResponseConversationInnerUserContext.prototype['floor_category'] = undefined;
165
-
166
- /**
167
- * @member {String} floor_mode
168
- */
169
- GetConversations200ResponseConversationInnerUserContext.prototype['floor_mode'] = undefined;
170
- var _default = exports["default"] = GetConversations200ResponseConversationInnerUserContext;