@xfloor/floor-memory-sdk-js 1.0.4 → 1.0.5

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 (63) hide show
  1. package/README.md +155 -36
  2. package/dist/ApiClient.js +5 -3
  3. package/dist/api/DefaultApi.js +214 -9
  4. package/dist/api/EditFloorApi.js +4 -2
  5. package/dist/api/EventApi.js +5 -3
  6. package/dist/api/GetFloorInformationApi.js +5 -3
  7. package/dist/api/GetRecentEventsApi.js +4 -2
  8. package/dist/api/QueryApi.js +4 -2
  9. package/dist/index.js +112 -0
  10. package/dist/model/BlockDetails.js +16 -14
  11. package/dist/model/ChangePassword200Response.js +4 -2
  12. package/dist/model/ConversationThreads200Response.js +146 -0
  13. package/dist/model/ConversationThreads200ResponseThreadsInner.js +142 -0
  14. package/dist/model/EditFloor400Response.js +4 -2
  15. package/dist/model/EditFloor400ResponseError.js +4 -2
  16. package/dist/model/Event400Response.js +4 -2
  17. package/dist/model/Event400ResponseError.js +4 -2
  18. package/dist/model/EventResponse.js +4 -2
  19. package/dist/model/FloorInfo.js +4 -2
  20. package/dist/model/GetConversations200Response.js +160 -0
  21. package/dist/model/GetConversations200ResponseConversationInner.js +107 -0
  22. package/dist/model/GetConversations200ResponseConversationInnerAssistant.js +228 -0
  23. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInner.js +141 -0
  24. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails.js +212 -0
  25. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage.js +128 -0
  26. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails.js +128 -0
  27. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.js +188 -0
  28. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.js +218 -0
  29. package/dist/model/GetConversations200ResponseConversationInnerUser.js +172 -0
  30. package/dist/model/GetConversations200ResponseConversationInnerUserContext.js +170 -0
  31. package/dist/model/GetFloorInformation200Response.js +4 -2
  32. package/dist/model/GetRecentEvents200Response.js +4 -2
  33. package/dist/model/GetRecentEvents200ResponseItemsInner.js +4 -2
  34. package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +4 -2
  35. package/dist/model/GetRecentEvents400Response.js +4 -2
  36. package/dist/model/GetRecentEvents400ResponseError.js +4 -2
  37. package/dist/model/Media.js +4 -2
  38. package/dist/model/Model400ErrorCode.js +4 -2
  39. package/dist/model/PostAdd.js +175 -0
  40. package/dist/model/Query422Response.js +4 -2
  41. package/dist/model/Query422ResponseError.js +4 -2
  42. package/dist/model/QueryRequest.js +4 -2
  43. package/dist/model/QueryRequestFilters.js +4 -2
  44. package/dist/model/QueryResponse.js +4 -2
  45. package/dist/model/QueryResponseItemsInner.js +4 -2
  46. package/dist/model/ResetPassword200Response.js +4 -2
  47. package/dist/model/ResetPassword400Response.js +4 -2
  48. package/dist/model/SendSignInValidationCode200Response.js +143 -0
  49. package/dist/model/SendValidationCode200Response.js +4 -2
  50. package/dist/model/SendValidationCodeRequest.js +4 -2
  51. package/dist/model/SignInWithEmail200Response.js +4 -2
  52. package/dist/model/SignInWithEmail200ResponsePodInfo.js +4 -2
  53. package/dist/model/SignInWithEmail200ResponseProfile.js +4 -2
  54. package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +4 -2
  55. package/dist/model/SignUp200Response.js +4 -2
  56. package/dist/model/SignUpResponse.js +4 -2
  57. package/dist/model/Threads.js +142 -0
  58. package/dist/model/UserDetails.js +4 -2
  59. package/dist/model/ValidateCode400Response.js +4 -2
  60. package/dist/model/ValidateCode400ResponseError.js +4 -2
  61. package/dist/model/ValidateCode412Response.js +4 -2
  62. package/dist/model/ValidateCodeRequest.js +4 -2
  63. package/package.json +1 -1
@@ -0,0 +1,142 @@
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 ConversationThreads200ResponseThreadsInner model module.
33
+ * @module model/ConversationThreads200ResponseThreadsInner
34
+ * @version 1.0.5
35
+ */
36
+ var ConversationThreads200ResponseThreadsInner = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>ConversationThreads200ResponseThreadsInner</code>.
39
+ * @alias module:model/ConversationThreads200ResponseThreadsInner
40
+ * @param threadId {String}
41
+ * @param title {String}
42
+ * @param lastUpdated {String}
43
+ */
44
+ function ConversationThreads200ResponseThreadsInner(threadId, title, lastUpdated) {
45
+ _classCallCheck(this, ConversationThreads200ResponseThreadsInner);
46
+ ConversationThreads200ResponseThreadsInner.initialize(this, threadId, title, lastUpdated);
47
+ }
48
+
49
+ /**
50
+ * Initializes the fields of this object.
51
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
52
+ * Only for internal use.
53
+ */
54
+ return _createClass(ConversationThreads200ResponseThreadsInner, null, [{
55
+ key: "initialize",
56
+ value: function initialize(obj, threadId, title, lastUpdated) {
57
+ obj['thread_id'] = threadId;
58
+ obj['title'] = title;
59
+ obj['last_updated'] = lastUpdated;
60
+ }
61
+
62
+ /**
63
+ * Constructs a <code>ConversationThreads200ResponseThreadsInner</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/ConversationThreads200ResponseThreadsInner} obj Optional instance to populate.
67
+ * @return {module:model/ConversationThreads200ResponseThreadsInner} The populated <code>ConversationThreads200ResponseThreadsInner</code> instance.
68
+ */
69
+ }, {
70
+ key: "constructFromObject",
71
+ value: function constructFromObject(data, obj) {
72
+ if (data) {
73
+ obj = obj || new ConversationThreads200ResponseThreadsInner();
74
+ if (data.hasOwnProperty('thread_id')) {
75
+ obj['thread_id'] = _ApiClient["default"].convertToType(data['thread_id'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('title')) {
78
+ obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('last_updated')) {
81
+ obj['last_updated'] = _ApiClient["default"].convertToType(data['last_updated'], 'String');
82
+ }
83
+ }
84
+ return obj;
85
+ }
86
+
87
+ /**
88
+ * Validates the JSON data with respect to <code>ConversationThreads200ResponseThreadsInner</code>.
89
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
90
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ConversationThreads200ResponseThreadsInner</code>.
91
+ */
92
+ }, {
93
+ key: "validateJSON",
94
+ value: function validateJSON(data) {
95
+ // check to make sure all required properties are present in the JSON string
96
+ var _iterator = _createForOfIteratorHelper(ConversationThreads200ResponseThreadsInner.RequiredProperties),
97
+ _step;
98
+ try {
99
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
100
+ var property = _step.value;
101
+ if (!data.hasOwnProperty(property)) {
102
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
103
+ }
104
+ }
105
+ // ensure the json data is a string
106
+ } catch (err) {
107
+ _iterator.e(err);
108
+ } finally {
109
+ _iterator.f();
110
+ }
111
+ if (data['thread_id'] && !(typeof data['thread_id'] === 'string' || data['thread_id'] instanceof String)) {
112
+ throw new Error("Expected the field `thread_id` to be a primitive type in the JSON string but got " + data['thread_id']);
113
+ }
114
+ // ensure the json data is a string
115
+ if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
116
+ throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
117
+ }
118
+ // ensure the json data is a string
119
+ if (data['last_updated'] && !(typeof data['last_updated'] === 'string' || data['last_updated'] instanceof String)) {
120
+ throw new Error("Expected the field `last_updated` to be a primitive type in the JSON string but got " + data['last_updated']);
121
+ }
122
+ return true;
123
+ }
124
+ }]);
125
+ }();
126
+ ConversationThreads200ResponseThreadsInner.RequiredProperties = ["thread_id", "title", "last_updated"];
127
+
128
+ /**
129
+ * @member {String} thread_id
130
+ */
131
+ ConversationThreads200ResponseThreadsInner.prototype['thread_id'] = undefined;
132
+
133
+ /**
134
+ * @member {String} title
135
+ */
136
+ ConversationThreads200ResponseThreadsInner.prototype['title'] = undefined;
137
+
138
+ /**
139
+ * @member {String} last_updated
140
+ */
141
+ ConversationThreads200ResponseThreadsInner.prototype['last_updated'] = undefined;
142
+ var _default = exports["default"] = ConversationThreads200ResponseThreadsInner;
@@ -17,7 +17,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
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
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.
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.
21
23
  *
22
24
  * The version of the OpenAPI document: 1.0.0
23
25
  * Contact: contact@ipomo.in
@@ -30,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
32
  /**
31
33
  * The EditFloor400Response model module.
32
34
  * @module model/EditFloor400Response
33
- * @version 1.0.4
35
+ * @version 1.0.5
34
36
  */
35
37
  var EditFloor400Response = /*#__PURE__*/function () {
36
38
  /**
@@ -16,7 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
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
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.
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.
20
22
  *
21
23
  * The version of the OpenAPI document: 1.0.0
22
24
  * Contact: contact@ipomo.in
@@ -29,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
31
  /**
30
32
  * The EditFloor400ResponseError model module.
31
33
  * @module model/EditFloor400ResponseError
32
- * @version 1.0.4
34
+ * @version 1.0.5
33
35
  */
34
36
  var EditFloor400ResponseError = /*#__PURE__*/function () {
35
37
  /**
@@ -17,7 +17,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
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
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.
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.
21
23
  *
22
24
  * The version of the OpenAPI document: 1.0.0
23
25
  * Contact: contact@ipomo.in
@@ -30,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
32
  /**
31
33
  * The Event400Response model module.
32
34
  * @module model/Event400Response
33
- * @version 1.0.4
35
+ * @version 1.0.5
34
36
  */
35
37
  var Event400Response = /*#__PURE__*/function () {
36
38
  /**
@@ -16,7 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
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
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.
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.
20
22
  *
21
23
  * The version of the OpenAPI document: 1.0.0
22
24
  * Contact: contact@ipomo.in
@@ -29,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
31
  /**
30
32
  * The Event400ResponseError model module.
31
33
  * @module model/Event400ResponseError
32
- * @version 1.0.4
34
+ * @version 1.0.5
33
35
  */
34
36
  var Event400ResponseError = /*#__PURE__*/function () {
35
37
  /**
@@ -16,7 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
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
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.
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.
20
22
  *
21
23
  * The version of the OpenAPI document: 1.0.0
22
24
  * Contact: contact@ipomo.in
@@ -29,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
31
  /**
30
32
  * The EventResponse model module.
31
33
  * @module model/EventResponse
32
- * @version 1.0.4
34
+ * @version 1.0.5
33
35
  */
34
36
  var EventResponse = /*#__PURE__*/function () {
35
37
  /**
@@ -18,7 +18,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
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
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.
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.
22
+ * - Memory and
23
+ * - 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
24
  *
23
25
  * The version of the OpenAPI document: 1.0.0
24
26
  * Contact: contact@ipomo.in
@@ -31,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
33
  /**
32
34
  * The FloorInfo model module.
33
35
  * @module model/FloorInfo
34
- * @version 1.0.4
36
+ * @version 1.0.5
35
37
  */
36
38
  var FloorInfo = /*#__PURE__*/function () {
37
39
  /**
@@ -0,0 +1,160 @@
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 _GetConversations200ResponseConversationInner = _interopRequireDefault(require("./GetConversations200ResponseConversationInner"));
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 GetConversations200Response model module.
34
+ * @module model/GetConversations200Response
35
+ * @version 1.0.5
36
+ */
37
+ var GetConversations200Response = /*#__PURE__*/function () {
38
+ /**
39
+ * Constructs a new <code>GetConversations200Response</code>.
40
+ * @alias module:model/GetConversations200Response
41
+ * @param userId {String}
42
+ * @param threadId {String}
43
+ * @param conversation {Array.<module:model/GetConversations200ResponseConversationInner>}
44
+ */
45
+ function GetConversations200Response(userId, threadId, conversation) {
46
+ _classCallCheck(this, GetConversations200Response);
47
+ GetConversations200Response.initialize(this, userId, threadId, conversation);
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(GetConversations200Response, null, [{
56
+ key: "initialize",
57
+ value: function initialize(obj, userId, threadId, conversation) {
58
+ obj['user_id'] = userId;
59
+ obj['thread_id'] = threadId;
60
+ obj['conversation'] = conversation;
61
+ }
62
+
63
+ /**
64
+ * Constructs a <code>GetConversations200Response</code> from a plain JavaScript object, optionally creating a new instance.
65
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
66
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
67
+ * @param {module:model/GetConversations200Response} obj Optional instance to populate.
68
+ * @return {module:model/GetConversations200Response} The populated <code>GetConversations200Response</code> instance.
69
+ */
70
+ }, {
71
+ key: "constructFromObject",
72
+ value: function constructFromObject(data, obj) {
73
+ if (data) {
74
+ obj = obj || new GetConversations200Response();
75
+ if (data.hasOwnProperty('user_id')) {
76
+ obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('thread_id')) {
79
+ obj['thread_id'] = _ApiClient["default"].convertToType(data['thread_id'], 'String');
80
+ }
81
+ if (data.hasOwnProperty('conversation')) {
82
+ obj['conversation'] = _ApiClient["default"].convertToType(data['conversation'], [_GetConversations200ResponseConversationInner["default"]]);
83
+ }
84
+ }
85
+ return obj;
86
+ }
87
+
88
+ /**
89
+ * Validates the JSON data with respect to <code>GetConversations200Response</code>.
90
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
91
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetConversations200Response</code>.
92
+ */
93
+ }, {
94
+ key: "validateJSON",
95
+ value: function validateJSON(data) {
96
+ // check to make sure all required properties are present in the JSON string
97
+ var _iterator = _createForOfIteratorHelper(GetConversations200Response.RequiredProperties),
98
+ _step;
99
+ try {
100
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
101
+ var property = _step.value;
102
+ if (!data.hasOwnProperty(property)) {
103
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
104
+ }
105
+ }
106
+ // ensure the json data is a string
107
+ } catch (err) {
108
+ _iterator.e(err);
109
+ } finally {
110
+ _iterator.f();
111
+ }
112
+ if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
113
+ throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
114
+ }
115
+ // ensure the json data is a string
116
+ if (data['thread_id'] && !(typeof data['thread_id'] === 'string' || data['thread_id'] instanceof String)) {
117
+ throw new Error("Expected the field `thread_id` to be a primitive type in the JSON string but got " + data['thread_id']);
118
+ }
119
+ if (data['conversation']) {
120
+ // data not null
121
+ // ensure the json data is an array
122
+ if (!Array.isArray(data['conversation'])) {
123
+ throw new Error("Expected the field `conversation` to be an array in the JSON data but got " + data['conversation']);
124
+ }
125
+ // validate the optional field `conversation` (array)
126
+ var _iterator2 = _createForOfIteratorHelper(data['conversation']),
127
+ _step2;
128
+ try {
129
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
130
+ var item = _step2.value;
131
+ _GetConversations200ResponseConversationInner["default"].validateJSON(item);
132
+ }
133
+ } catch (err) {
134
+ _iterator2.e(err);
135
+ } finally {
136
+ _iterator2.f();
137
+ }
138
+ ;
139
+ }
140
+ return true;
141
+ }
142
+ }]);
143
+ }();
144
+ GetConversations200Response.RequiredProperties = ["user_id", "thread_id", "conversation"];
145
+
146
+ /**
147
+ * @member {String} user_id
148
+ */
149
+ GetConversations200Response.prototype['user_id'] = undefined;
150
+
151
+ /**
152
+ * @member {String} thread_id
153
+ */
154
+ GetConversations200Response.prototype['thread_id'] = undefined;
155
+
156
+ /**
157
+ * @member {Array.<module:model/GetConversations200ResponseConversationInner>} conversation
158
+ */
159
+ GetConversations200Response.prototype['conversation'] = undefined;
160
+ var _default = exports["default"] = GetConversations200Response;
@@ -0,0 +1,107 @@
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 _GetConversations200ResponseConversationInnerAssistant = _interopRequireDefault(require("./GetConversations200ResponseConversationInnerAssistant"));
9
+ var _GetConversations200ResponseConversationInnerUser = _interopRequireDefault(require("./GetConversations200ResponseConversationInnerUser"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
13
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
14
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
+ * Floor Memory
18
+ * The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts.
19
+ * - Memory and
20
+ * - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
21
+ *
22
+ * The version of the OpenAPI document: 1.0.0
23
+ * Contact: contact@ipomo.in
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * The GetConversations200ResponseConversationInner model module.
32
+ * @module model/GetConversations200ResponseConversationInner
33
+ * @version 1.0.5
34
+ */
35
+ var GetConversations200ResponseConversationInner = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>GetConversations200ResponseConversationInner</code>.
38
+ * @alias module:model/GetConversations200ResponseConversationInner
39
+ */
40
+ function GetConversations200ResponseConversationInner() {
41
+ _classCallCheck(this, GetConversations200ResponseConversationInner);
42
+ GetConversations200ResponseConversationInner.initialize(this);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(GetConversations200ResponseConversationInner, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+
54
+ /**
55
+ * Constructs a <code>GetConversations200ResponseConversationInner</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
58
+ * @param {module:model/GetConversations200ResponseConversationInner} obj Optional instance to populate.
59
+ * @return {module:model/GetConversations200ResponseConversationInner} The populated <code>GetConversations200ResponseConversationInner</code> instance.
60
+ */
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new GetConversations200ResponseConversationInner();
66
+ if (data.hasOwnProperty('user')) {
67
+ obj['user'] = _GetConversations200ResponseConversationInnerUser["default"].constructFromObject(data['user']);
68
+ }
69
+ if (data.hasOwnProperty('assistant')) {
70
+ obj['assistant'] = _GetConversations200ResponseConversationInnerAssistant["default"].constructFromObject(data['assistant']);
71
+ }
72
+ }
73
+ return obj;
74
+ }
75
+
76
+ /**
77
+ * Validates the JSON data with respect to <code>GetConversations200ResponseConversationInner</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>GetConversations200ResponseConversationInner</code>.
80
+ */
81
+ }, {
82
+ key: "validateJSON",
83
+ value: function validateJSON(data) {
84
+ // validate the optional field `user`
85
+ if (data['user']) {
86
+ // data not null
87
+ _GetConversations200ResponseConversationInnerUser["default"].validateJSON(data['user']);
88
+ }
89
+ // validate the optional field `assistant`
90
+ if (data['assistant']) {
91
+ // data not null
92
+ _GetConversations200ResponseConversationInnerAssistant["default"].validateJSON(data['assistant']);
93
+ }
94
+ return true;
95
+ }
96
+ }]);
97
+ }();
98
+ /**
99
+ * @member {module:model/GetConversations200ResponseConversationInnerUser} user
100
+ */
101
+ GetConversations200ResponseConversationInner.prototype['user'] = undefined;
102
+
103
+ /**
104
+ * @member {module:model/GetConversations200ResponseConversationInnerAssistant} assistant
105
+ */
106
+ GetConversations200ResponseConversationInner.prototype['assistant'] = undefined;
107
+ var _default = exports["default"] = GetConversations200ResponseConversationInner;