@xfloor/floor-memory-sdk-js 1.0.16 → 1.0.18

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 -29
  2. package/dist/ApiClient.js +6 -6
  3. package/dist/api/DefaultApi.js +66 -278
  4. package/dist/api/EditFloorApi.js +1 -1
  5. package/dist/api/EventApi.js +1 -1
  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 -119
  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/package.json +1 -1
  46. package/dist/model/ConversationThreads200Response.js +0 -146
  47. package/dist/model/ConversationThreads200ResponseThreadsInner.js +0 -142
  48. package/dist/model/GetConversations200Response.js +0 -160
  49. package/dist/model/GetConversations200ResponseConversationInner.js +0 -107
  50. package/dist/model/GetConversations200ResponseConversationInnerAssistant.js +0 -228
  51. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInner.js +0 -141
  52. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails.js +0 -212
  53. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage.js +0 -128
  54. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails.js +0 -128
  55. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.js +0 -188
  56. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.js +0 -218
  57. package/dist/model/GetConversations200ResponseConversationInnerUser.js +0 -172
  58. package/dist/model/GetConversations200ResponseConversationInnerUserContext.js +0 -170
  59. package/dist/model/PostAdd.js +0 -175
  60. package/dist/model/SendSignInValidationCode200Response.js +0 -143
  61. package/dist/model/Threads.js +0 -142
  62. package/dist/model/ValidateCodeRequest.js +0 -160
@@ -1,175 +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 PostAdd model module.
33
- * @module model/PostAdd
34
- * @version 1.0.16
35
- */
36
- var PostAdd = /*#__PURE__*/function () {
37
- /**
38
- * Constructs a new <code>PostAdd</code>.
39
- * @alias module:model/PostAdd
40
- * @param floorId {String} Floor ID to which the post needs to be added
41
- * @param BID {String} Block type (0 or 1)
42
- * @param userId {String} User Identifcation who has added the post
43
- * @param title {String} Title of the post
44
- * @param description {String} Description or Details
45
- */
46
- function PostAdd(floorId, BID, userId, title, description) {
47
- _classCallCheck(this, PostAdd);
48
- PostAdd.initialize(this, floorId, BID, userId, title, description);
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(PostAdd, null, [{
57
- key: "initialize",
58
- value: function initialize(obj, floorId, BID, userId, title, description) {
59
- obj['floor_id'] = floorId;
60
- obj['BID'] = BID;
61
- obj['user_id'] = userId;
62
- obj['title'] = title;
63
- obj['description'] = description;
64
- }
65
-
66
- /**
67
- * Constructs a <code>PostAdd</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/PostAdd} obj Optional instance to populate.
71
- * @return {module:model/PostAdd} The populated <code>PostAdd</code> instance.
72
- */
73
- }, {
74
- key: "constructFromObject",
75
- value: function constructFromObject(data, obj) {
76
- if (data) {
77
- obj = obj || new PostAdd();
78
- if (data.hasOwnProperty('floor_id')) {
79
- obj['floor_id'] = _ApiClient["default"].convertToType(data['floor_id'], 'String');
80
- }
81
- if (data.hasOwnProperty('BID')) {
82
- obj['BID'] = _ApiClient["default"].convertToType(data['BID'], 'String');
83
- }
84
- if (data.hasOwnProperty('user_id')) {
85
- obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
86
- }
87
- if (data.hasOwnProperty('title')) {
88
- obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
89
- }
90
- if (data.hasOwnProperty('description')) {
91
- obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
92
- }
93
- }
94
- return obj;
95
- }
96
-
97
- /**
98
- * Validates the JSON data with respect to <code>PostAdd</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>PostAdd</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(PostAdd.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['BID'] && !(typeof data['BID'] === 'string' || data['BID'] instanceof String)) {
126
- throw new Error("Expected the field `BID` to be a primitive type in the JSON string but got " + data['BID']);
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['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
134
- throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
135
- }
136
- // ensure the json data is a string
137
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
138
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
139
- }
140
- return true;
141
- }
142
- }]);
143
- }();
144
- PostAdd.RequiredProperties = ["floor_id", "BID", "user_id", "title", "description"];
145
-
146
- /**
147
- * Floor ID to which the post needs to be added
148
- * @member {String} floor_id
149
- */
150
- PostAdd.prototype['floor_id'] = undefined;
151
-
152
- /**
153
- * Block type (0 or 1)
154
- * @member {String} BID
155
- */
156
- PostAdd.prototype['BID'] = undefined;
157
-
158
- /**
159
- * User Identifcation who has added the post
160
- * @member {String} user_id
161
- */
162
- PostAdd.prototype['user_id'] = undefined;
163
-
164
- /**
165
- * Title of the post
166
- * @member {String} title
167
- */
168
- PostAdd.prototype['title'] = undefined;
169
-
170
- /**
171
- * Description or Details
172
- * @member {String} description
173
- */
174
- PostAdd.prototype['description'] = undefined;
175
- var _default = exports["default"] = PostAdd;
@@ -1,143 +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 SendSignInValidationCode200Response model module.
33
- * @module model/SendSignInValidationCode200Response
34
- * @version 1.0.16
35
- */
36
- var SendSignInValidationCode200Response = /*#__PURE__*/function () {
37
- /**
38
- * Constructs a new <code>SendSignInValidationCode200Response</code>.
39
- * @alias module:model/SendSignInValidationCode200Response
40
- * @param success {String} Operation successful
41
- * @param emailId {String} Email ID if signed through email
42
- */
43
- function SendSignInValidationCode200Response(success, emailId) {
44
- _classCallCheck(this, SendSignInValidationCode200Response);
45
- SendSignInValidationCode200Response.initialize(this, success, emailId);
46
- }
47
-
48
- /**
49
- * Initializes the fields of this object.
50
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
- * Only for internal use.
52
- */
53
- return _createClass(SendSignInValidationCode200Response, null, [{
54
- key: "initialize",
55
- value: function initialize(obj, success, emailId) {
56
- obj['success'] = success;
57
- obj['email_id'] = emailId;
58
- }
59
-
60
- /**
61
- * Constructs a <code>SendSignInValidationCode200Response</code> from a plain JavaScript object, optionally creating a new instance.
62
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
63
- * @param {Object} data The plain JavaScript object bearing properties of interest.
64
- * @param {module:model/SendSignInValidationCode200Response} obj Optional instance to populate.
65
- * @return {module:model/SendSignInValidationCode200Response} The populated <code>SendSignInValidationCode200Response</code> instance.
66
- */
67
- }, {
68
- key: "constructFromObject",
69
- value: function constructFromObject(data, obj) {
70
- if (data) {
71
- obj = obj || new SendSignInValidationCode200Response();
72
- if (data.hasOwnProperty('success')) {
73
- obj['success'] = _ApiClient["default"].convertToType(data['success'], 'String');
74
- }
75
- if (data.hasOwnProperty('mobile_number')) {
76
- obj['mobile_number'] = _ApiClient["default"].convertToType(data['mobile_number'], 'String');
77
- }
78
- if (data.hasOwnProperty('email_id')) {
79
- obj['email_id'] = _ApiClient["default"].convertToType(data['email_id'], 'String');
80
- }
81
- }
82
- return obj;
83
- }
84
-
85
- /**
86
- * Validates the JSON data with respect to <code>SendSignInValidationCode200Response</code>.
87
- * @param {Object} data The plain JavaScript object bearing properties of interest.
88
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SendSignInValidationCode200Response</code>.
89
- */
90
- }, {
91
- key: "validateJSON",
92
- value: function validateJSON(data) {
93
- // check to make sure all required properties are present in the JSON string
94
- var _iterator = _createForOfIteratorHelper(SendSignInValidationCode200Response.RequiredProperties),
95
- _step;
96
- try {
97
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
98
- var property = _step.value;
99
- if (!data.hasOwnProperty(property)) {
100
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
101
- }
102
- }
103
- // ensure the json data is a string
104
- } catch (err) {
105
- _iterator.e(err);
106
- } finally {
107
- _iterator.f();
108
- }
109
- if (data['success'] && !(typeof data['success'] === 'string' || data['success'] instanceof String)) {
110
- throw new Error("Expected the field `success` to be a primitive type in the JSON string but got " + data['success']);
111
- }
112
- // ensure the json data is a string
113
- if (data['mobile_number'] && !(typeof data['mobile_number'] === 'string' || data['mobile_number'] instanceof String)) {
114
- throw new Error("Expected the field `mobile_number` to be a primitive type in the JSON string but got " + data['mobile_number']);
115
- }
116
- // ensure the json data is a string
117
- if (data['email_id'] && !(typeof data['email_id'] === 'string' || data['email_id'] instanceof String)) {
118
- throw new Error("Expected the field `email_id` to be a primitive type in the JSON string but got " + data['email_id']);
119
- }
120
- return true;
121
- }
122
- }]);
123
- }();
124
- SendSignInValidationCode200Response.RequiredProperties = ["success", "email_id"];
125
-
126
- /**
127
- * Operation successful
128
- * @member {String} success
129
- */
130
- SendSignInValidationCode200Response.prototype['success'] = undefined;
131
-
132
- /**
133
- * Mobile number if signed in through mobile number
134
- * @member {String} mobile_number
135
- */
136
- SendSignInValidationCode200Response.prototype['mobile_number'] = undefined;
137
-
138
- /**
139
- * Email ID if signed through email
140
- * @member {String} email_id
141
- */
142
- SendSignInValidationCode200Response.prototype['email_id'] = undefined;
143
- var _default = exports["default"] = SendSignInValidationCode200Response;
@@ -1,142 +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 Threads model module.
33
- * @module model/Threads
34
- * @version 1.0.16
35
- */
36
- var Threads = /*#__PURE__*/function () {
37
- /**
38
- * Constructs a new <code>Threads</code>.
39
- * @alias module:model/Threads
40
- * @param threadId {String}
41
- * @param title {String}
42
- * @param lastUpdated {String}
43
- */
44
- function Threads(threadId, title, lastUpdated) {
45
- _classCallCheck(this, Threads);
46
- Threads.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(Threads, 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>Threads</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/Threads} obj Optional instance to populate.
67
- * @return {module:model/Threads} The populated <code>Threads</code> instance.
68
- */
69
- }, {
70
- key: "constructFromObject",
71
- value: function constructFromObject(data, obj) {
72
- if (data) {
73
- obj = obj || new Threads();
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>Threads</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>Threads</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(Threads.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
- Threads.RequiredProperties = ["thread_id", "title", "last_updated"];
127
-
128
- /**
129
- * @member {String} thread_id
130
- */
131
- Threads.prototype['thread_id'] = undefined;
132
-
133
- /**
134
- * @member {String} title
135
- */
136
- Threads.prototype['title'] = undefined;
137
-
138
- /**
139
- * @member {String} last_updated
140
- */
141
- Threads.prototype['last_updated'] = undefined;
142
- var _default = exports["default"] = Threads;
@@ -1,160 +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 ValidateCodeRequest model module.
33
- * @module model/ValidateCodeRequest
34
- * @version 1.0.16
35
- */
36
- var ValidateCodeRequest = /*#__PURE__*/function () {
37
- /**
38
- * Constructs a new <code>ValidateCodeRequest</code>.
39
- * @alias module:model/ValidateCodeRequest
40
- * @param userId {String} User ID
41
- * @param activationCode {String} Validation code
42
- * @param appId {String} App ID which is given while registering as developer
43
- * @param mode {String} 4 for sign up, 5 for login
44
- */
45
- function ValidateCodeRequest(userId, activationCode, appId, mode) {
46
- _classCallCheck(this, ValidateCodeRequest);
47
- ValidateCodeRequest.initialize(this, userId, activationCode, appId, mode);
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(ValidateCodeRequest, null, [{
56
- key: "initialize",
57
- value: function initialize(obj, userId, activationCode, appId, mode) {
58
- obj['user_id'] = userId;
59
- obj['activation_code'] = activationCode;
60
- obj['app_id'] = appId;
61
- obj['mode'] = mode;
62
- }
63
-
64
- /**
65
- * Constructs a <code>ValidateCodeRequest</code> from a plain JavaScript object, optionally creating a new instance.
66
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
67
- * @param {Object} data The plain JavaScript object bearing properties of interest.
68
- * @param {module:model/ValidateCodeRequest} obj Optional instance to populate.
69
- * @return {module:model/ValidateCodeRequest} The populated <code>ValidateCodeRequest</code> instance.
70
- */
71
- }, {
72
- key: "constructFromObject",
73
- value: function constructFromObject(data, obj) {
74
- if (data) {
75
- obj = obj || new ValidateCodeRequest();
76
- if (data.hasOwnProperty('user_id')) {
77
- obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
78
- }
79
- if (data.hasOwnProperty('activation_code')) {
80
- obj['activation_code'] = _ApiClient["default"].convertToType(data['activation_code'], 'String');
81
- }
82
- if (data.hasOwnProperty('app_id')) {
83
- obj['app_id'] = _ApiClient["default"].convertToType(data['app_id'], 'String');
84
- }
85
- if (data.hasOwnProperty('mode')) {
86
- obj['mode'] = _ApiClient["default"].convertToType(data['mode'], 'String');
87
- }
88
- }
89
- return obj;
90
- }
91
-
92
- /**
93
- * Validates the JSON data with respect to <code>ValidateCodeRequest</code>.
94
- * @param {Object} data The plain JavaScript object bearing properties of interest.
95
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ValidateCodeRequest</code>.
96
- */
97
- }, {
98
- key: "validateJSON",
99
- value: function validateJSON(data) {
100
- // check to make sure all required properties are present in the JSON string
101
- var _iterator = _createForOfIteratorHelper(ValidateCodeRequest.RequiredProperties),
102
- _step;
103
- try {
104
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
105
- var property = _step.value;
106
- if (!data.hasOwnProperty(property)) {
107
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
108
- }
109
- }
110
- // ensure the json data is a string
111
- } catch (err) {
112
- _iterator.e(err);
113
- } finally {
114
- _iterator.f();
115
- }
116
- if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
117
- throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
118
- }
119
- // ensure the json data is a string
120
- if (data['activation_code'] && !(typeof data['activation_code'] === 'string' || data['activation_code'] instanceof String)) {
121
- throw new Error("Expected the field `activation_code` to be a primitive type in the JSON string but got " + data['activation_code']);
122
- }
123
- // ensure the json data is a string
124
- if (data['app_id'] && !(typeof data['app_id'] === 'string' || data['app_id'] instanceof String)) {
125
- throw new Error("Expected the field `app_id` to be a primitive type in the JSON string but got " + data['app_id']);
126
- }
127
- // ensure the json data is a string
128
- if (data['mode'] && !(typeof data['mode'] === 'string' || data['mode'] instanceof String)) {
129
- throw new Error("Expected the field `mode` to be a primitive type in the JSON string but got " + data['mode']);
130
- }
131
- return true;
132
- }
133
- }]);
134
- }();
135
- ValidateCodeRequest.RequiredProperties = ["user_id", "activation_code", "app_id", "mode"];
136
-
137
- /**
138
- * User ID
139
- * @member {String} user_id
140
- */
141
- ValidateCodeRequest.prototype['user_id'] = undefined;
142
-
143
- /**
144
- * Validation code
145
- * @member {String} activation_code
146
- */
147
- ValidateCodeRequest.prototype['activation_code'] = undefined;
148
-
149
- /**
150
- * App ID which is given while registering as developer
151
- * @member {String} app_id
152
- */
153
- ValidateCodeRequest.prototype['app_id'] = undefined;
154
-
155
- /**
156
- * 4 for sign up, 5 for login
157
- * @member {String} mode
158
- */
159
- ValidateCodeRequest.prototype['mode'] = undefined;
160
- var _default = exports["default"] = ValidateCodeRequest;