@xfloor/memory-sdk-js 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -0
- package/README.md +220 -0
- package/dist/ApiClient.js +701 -0
- package/dist/api/DefaultApi.js +734 -0
- package/dist/api/EditFloorApi.js +103 -0
- package/dist/api/EventApi.js +86 -0
- package/dist/api/GetFloorInformationApi.js +89 -0
- package/dist/api/GetRecentEventsApi.js +88 -0
- package/dist/api/QueryApi.js +81 -0
- package/dist/index.js +412 -0
- package/dist/model/BlockDetails.js +144 -0
- package/dist/model/ChangePassword200Response.js +113 -0
- package/dist/model/ConversationThreads200Response.js +144 -0
- package/dist/model/ConversationThreads200ResponseThreadsInner.js +140 -0
- package/dist/model/EditFloor400Response.js +114 -0
- package/dist/model/EditFloor400ResponseError.js +158 -0
- package/dist/model/Event400Response.js +114 -0
- package/dist/model/Event400ResponseError.js +155 -0
- package/dist/model/EventResponse.js +112 -0
- package/dist/model/FloorInfo.js +202 -0
- package/dist/model/GetConversations200Response.js +158 -0
- package/dist/model/GetConversations200ResponseConversationInner.js +105 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistant.js +226 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInner.js +139 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails.js +210 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage.js +126 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails.js +126 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.js +186 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.js +216 -0
- package/dist/model/GetConversations200ResponseConversationInnerUser.js +170 -0
- package/dist/model/GetConversations200ResponseConversationInnerUserContext.js +168 -0
- package/dist/model/GetFloorInformation200Response.js +201 -0
- package/dist/model/GetRecentEvents200Response.js +146 -0
- package/dist/model/GetRecentEvents200ResponseItemsInner.js +217 -0
- package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +131 -0
- package/dist/model/GetRecentEvents400Response.js +114 -0
- package/dist/model/GetRecentEvents400ResponseError.js +154 -0
- package/dist/model/Media.js +128 -0
- package/dist/model/Model400ErrorCode.js +158 -0
- package/dist/model/PostAdd.js +173 -0
- package/dist/model/Query422Response.js +114 -0
- package/dist/model/Query422ResponseError.js +113 -0
- package/dist/model/QueryRequest.js +196 -0
- package/dist/model/QueryRequestFilters.js +159 -0
- package/dist/model/QueryResponse.js +124 -0
- package/dist/model/QueryResponseItemsInner.js +213 -0
- package/dist/model/SendSignInValidationCode200Response.js +141 -0
- package/dist/model/SendSignInValidationCode400Response.js +158 -0
- package/dist/model/SendValidationCode200Response.js +113 -0
- package/dist/model/SendValidationCodeRequest.js +128 -0
- package/dist/model/SignInWithEmail200Response.js +145 -0
- package/dist/model/SignInWithEmail200ResponseProfile.js +230 -0
- package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +129 -0
- package/dist/model/SignUp200Response.js +128 -0
- package/dist/model/SignUpResponse.js +128 -0
- package/dist/model/Threads.js +140 -0
- package/dist/model/UserDetails.js +145 -0
- package/dist/model/ValidateCode400Response.js +114 -0
- package/dist/model/ValidateCode400ResponseError.js +156 -0
- package/dist/model/ValidateCode412Response.js +113 -0
- package/dist/model/ValidateCodeRequest.js +158 -0
- package/package.json +64 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Floor Memory
|
|
19
|
+
* The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts. - Memory and - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.0.0
|
|
22
|
+
* Contact: contact@ipomo.in
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The Query422ResponseError model module.
|
|
31
|
+
* @module model/Query422ResponseError
|
|
32
|
+
* @version 1.0.1
|
|
33
|
+
*/
|
|
34
|
+
var Query422ResponseError = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>Query422ResponseError</code>.
|
|
37
|
+
* @alias module:model/Query422ResponseError
|
|
38
|
+
* @param message {String} Error Message
|
|
39
|
+
*/
|
|
40
|
+
function Query422ResponseError(message) {
|
|
41
|
+
_classCallCheck(this, Query422ResponseError);
|
|
42
|
+
Query422ResponseError.initialize(this, message);
|
|
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(Query422ResponseError, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, message) {
|
|
53
|
+
obj['message'] = message;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>Query422ResponseError</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/Query422ResponseError} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/Query422ResponseError} The populated <code>Query422ResponseError</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new Query422ResponseError();
|
|
68
|
+
if (data.hasOwnProperty('message')) {
|
|
69
|
+
obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Validates the JSON data with respect to <code>Query422ResponseError</code>.
|
|
77
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
78
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Query422ResponseError</code>.
|
|
79
|
+
*/
|
|
80
|
+
}, {
|
|
81
|
+
key: "validateJSON",
|
|
82
|
+
value: function validateJSON(data) {
|
|
83
|
+
// check to make sure all required properties are present in the JSON string
|
|
84
|
+
var _iterator = _createForOfIteratorHelper(Query422ResponseError.RequiredProperties),
|
|
85
|
+
_step;
|
|
86
|
+
try {
|
|
87
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
88
|
+
var property = _step.value;
|
|
89
|
+
if (!data.hasOwnProperty(property)) {
|
|
90
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
// ensure the json data is a string
|
|
94
|
+
} catch (err) {
|
|
95
|
+
_iterator.e(err);
|
|
96
|
+
} finally {
|
|
97
|
+
_iterator.f();
|
|
98
|
+
}
|
|
99
|
+
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
100
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
101
|
+
}
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
}]);
|
|
105
|
+
}();
|
|
106
|
+
Query422ResponseError.RequiredProperties = ["message"];
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Error Message
|
|
110
|
+
* @member {String} message
|
|
111
|
+
*/
|
|
112
|
+
Query422ResponseError.prototype['message'] = undefined;
|
|
113
|
+
var _default = exports["default"] = Query422ResponseError;
|
|
@@ -0,0 +1,196 @@
|
|
|
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 _QueryRequestFilters = _interopRequireDefault(require("./QueryRequestFilters"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Floor Memory
|
|
20
|
+
* The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts. - Memory and - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.0.0
|
|
23
|
+
* Contact: contact@ipomo.in
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The QueryRequest model module.
|
|
32
|
+
* @module model/QueryRequest
|
|
33
|
+
* @version 1.0.1
|
|
34
|
+
*/
|
|
35
|
+
var QueryRequest = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>QueryRequest</code>.
|
|
38
|
+
* @alias module:model/QueryRequest
|
|
39
|
+
* @param userId {String} User ID
|
|
40
|
+
* @param query {String} Query text for conversations
|
|
41
|
+
* @param floorIds {Array.<String>} List of floor IDs
|
|
42
|
+
*/
|
|
43
|
+
function QueryRequest(userId, query, floorIds) {
|
|
44
|
+
_classCallCheck(this, QueryRequest);
|
|
45
|
+
QueryRequest.initialize(this, userId, query, floorIds);
|
|
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(QueryRequest, null, [{
|
|
54
|
+
key: "initialize",
|
|
55
|
+
value: function initialize(obj, userId, query, floorIds) {
|
|
56
|
+
obj['user_id'] = userId;
|
|
57
|
+
obj['query'] = query;
|
|
58
|
+
obj['floor_ids'] = floorIds;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a <code>QueryRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
+
* @param {module:model/QueryRequest} obj Optional instance to populate.
|
|
66
|
+
* @return {module:model/QueryRequest} The populated <code>QueryRequest</code> instance.
|
|
67
|
+
*/
|
|
68
|
+
}, {
|
|
69
|
+
key: "constructFromObject",
|
|
70
|
+
value: function constructFromObject(data, obj) {
|
|
71
|
+
if (data) {
|
|
72
|
+
obj = obj || new QueryRequest();
|
|
73
|
+
if (data.hasOwnProperty('user_id')) {
|
|
74
|
+
obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('query')) {
|
|
77
|
+
obj['query'] = _ApiClient["default"].convertToType(data['query'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('floor_ids')) {
|
|
80
|
+
obj['floor_ids'] = _ApiClient["default"].convertToType(data['floor_ids'], ['String']);
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('include_metadata')) {
|
|
83
|
+
obj['include_metadata'] = _ApiClient["default"].convertToType(data['include_metadata'], 'String');
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('summary_needed')) {
|
|
86
|
+
obj['summary_needed'] = _ApiClient["default"].convertToType(data['summary_needed'], 'String');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('app_id')) {
|
|
89
|
+
obj['app_id'] = _ApiClient["default"].convertToType(data['app_id'], 'String');
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('filters')) {
|
|
92
|
+
obj['filters'] = _QueryRequestFilters["default"].constructFromObject(data['filters']);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return obj;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Validates the JSON data with respect to <code>QueryRequest</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>QueryRequest</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(QueryRequest.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
|
+
// ensure the json data is a string
|
|
117
|
+
} catch (err) {
|
|
118
|
+
_iterator.e(err);
|
|
119
|
+
} finally {
|
|
120
|
+
_iterator.f();
|
|
121
|
+
}
|
|
122
|
+
if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
|
|
123
|
+
throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
|
|
124
|
+
}
|
|
125
|
+
// ensure the json data is a string
|
|
126
|
+
if (data['query'] && !(typeof data['query'] === 'string' || data['query'] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `query` to be a primitive type in the JSON string but got " + data['query']);
|
|
128
|
+
}
|
|
129
|
+
// ensure the json data is an array
|
|
130
|
+
if (!Array.isArray(data['floor_ids'])) {
|
|
131
|
+
throw new Error("Expected the field `floor_ids` to be an array in the JSON data but got " + data['floor_ids']);
|
|
132
|
+
}
|
|
133
|
+
// ensure the json data is a string
|
|
134
|
+
if (data['include_metadata'] && !(typeof data['include_metadata'] === 'string' || data['include_metadata'] instanceof String)) {
|
|
135
|
+
throw new Error("Expected the field `include_metadata` to be a primitive type in the JSON string but got " + data['include_metadata']);
|
|
136
|
+
}
|
|
137
|
+
// ensure the json data is a string
|
|
138
|
+
if (data['summary_needed'] && !(typeof data['summary_needed'] === 'string' || data['summary_needed'] instanceof String)) {
|
|
139
|
+
throw new Error("Expected the field `summary_needed` to be a primitive type in the JSON string but got " + data['summary_needed']);
|
|
140
|
+
}
|
|
141
|
+
// ensure the json data is a string
|
|
142
|
+
if (data['app_id'] && !(typeof data['app_id'] === 'string' || data['app_id'] instanceof String)) {
|
|
143
|
+
throw new Error("Expected the field `app_id` to be a primitive type in the JSON string but got " + data['app_id']);
|
|
144
|
+
}
|
|
145
|
+
// validate the optional field `filters`
|
|
146
|
+
if (data['filters']) {
|
|
147
|
+
// data not null
|
|
148
|
+
_QueryRequestFilters["default"].validateJSON(data['filters']);
|
|
149
|
+
}
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
}]);
|
|
153
|
+
}();
|
|
154
|
+
QueryRequest.RequiredProperties = ["user_id", "query", "floor_ids"];
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* User ID
|
|
158
|
+
* @member {String} user_id
|
|
159
|
+
*/
|
|
160
|
+
QueryRequest.prototype['user_id'] = undefined;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Query text for conversations
|
|
164
|
+
* @member {String} query
|
|
165
|
+
*/
|
|
166
|
+
QueryRequest.prototype['query'] = undefined;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* List of floor IDs
|
|
170
|
+
* @member {Array.<String>} floor_ids
|
|
171
|
+
*/
|
|
172
|
+
QueryRequest.prototype['floor_ids'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Include meta data or not
|
|
176
|
+
* @member {String} include_metadata
|
|
177
|
+
*/
|
|
178
|
+
QueryRequest.prototype['include_metadata'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Need LLM summary for the lists of posts sent
|
|
182
|
+
* @member {String} summary_needed
|
|
183
|
+
*/
|
|
184
|
+
QueryRequest.prototype['summary_needed'] = undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* App ID
|
|
188
|
+
* @member {String} app_id
|
|
189
|
+
*/
|
|
190
|
+
QueryRequest.prototype['app_id'] = undefined;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @member {module:model/QueryRequestFilters} filters
|
|
194
|
+
*/
|
|
195
|
+
QueryRequest.prototype['filters'] = undefined;
|
|
196
|
+
var _default = exports["default"] = QueryRequest;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Floor Memory
|
|
19
|
+
* The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts. - Memory and - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.0.0
|
|
22
|
+
* Contact: contact@ipomo.in
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The QueryRequestFilters model module.
|
|
31
|
+
* @module model/QueryRequestFilters
|
|
32
|
+
* @version 1.0.1
|
|
33
|
+
*/
|
|
34
|
+
var QueryRequestFilters = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>QueryRequestFilters</code>.
|
|
37
|
+
* JSON format filters
|
|
38
|
+
* @alias module:model/QueryRequestFilters
|
|
39
|
+
* @param timeFrom {String} Start timestamp for filtering content by creation or update time.
|
|
40
|
+
* @param timeTo {String} End timestamp for filtering content by creation or update time.
|
|
41
|
+
* @param filterTypes {String} Content types to include (e.g., post, forum).
|
|
42
|
+
* @param filterTags {String} Tags used to further refine the query results.
|
|
43
|
+
*/
|
|
44
|
+
function QueryRequestFilters(timeFrom, timeTo, filterTypes, filterTags) {
|
|
45
|
+
_classCallCheck(this, QueryRequestFilters);
|
|
46
|
+
QueryRequestFilters.initialize(this, timeFrom, timeTo, filterTypes, filterTags);
|
|
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(QueryRequestFilters, null, [{
|
|
55
|
+
key: "initialize",
|
|
56
|
+
value: function initialize(obj, timeFrom, timeTo, filterTypes, filterTags) {
|
|
57
|
+
obj['time_from'] = timeFrom;
|
|
58
|
+
obj['time_to'] = timeTo;
|
|
59
|
+
obj['filter_types'] = filterTypes;
|
|
60
|
+
obj['filter_tags'] = filterTags;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Constructs a <code>QueryRequestFilters</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/QueryRequestFilters} obj Optional instance to populate.
|
|
68
|
+
* @return {module:model/QueryRequestFilters} The populated <code>QueryRequestFilters</code> instance.
|
|
69
|
+
*/
|
|
70
|
+
}, {
|
|
71
|
+
key: "constructFromObject",
|
|
72
|
+
value: function constructFromObject(data, obj) {
|
|
73
|
+
if (data) {
|
|
74
|
+
obj = obj || new QueryRequestFilters();
|
|
75
|
+
if (data.hasOwnProperty('time_from')) {
|
|
76
|
+
obj['time_from'] = _ApiClient["default"].convertToType(data['time_from'], 'String');
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('time_to')) {
|
|
79
|
+
obj['time_to'] = _ApiClient["default"].convertToType(data['time_to'], 'String');
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('filter_types')) {
|
|
82
|
+
obj['filter_types'] = _ApiClient["default"].convertToType(data['filter_types'], 'String');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('filter_tags')) {
|
|
85
|
+
obj['filter_tags'] = _ApiClient["default"].convertToType(data['filter_tags'], 'String');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Validates the JSON data with respect to <code>QueryRequestFilters</code>.
|
|
93
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
94
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>QueryRequestFilters</code>.
|
|
95
|
+
*/
|
|
96
|
+
}, {
|
|
97
|
+
key: "validateJSON",
|
|
98
|
+
value: function validateJSON(data) {
|
|
99
|
+
// check to make sure all required properties are present in the JSON string
|
|
100
|
+
var _iterator = _createForOfIteratorHelper(QueryRequestFilters.RequiredProperties),
|
|
101
|
+
_step;
|
|
102
|
+
try {
|
|
103
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
104
|
+
var property = _step.value;
|
|
105
|
+
if (!data.hasOwnProperty(property)) {
|
|
106
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
// ensure the json data is a string
|
|
110
|
+
} catch (err) {
|
|
111
|
+
_iterator.e(err);
|
|
112
|
+
} finally {
|
|
113
|
+
_iterator.f();
|
|
114
|
+
}
|
|
115
|
+
if (data['time_from'] && !(typeof data['time_from'] === 'string' || data['time_from'] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `time_from` to be a primitive type in the JSON string but got " + data['time_from']);
|
|
117
|
+
}
|
|
118
|
+
// ensure the json data is a string
|
|
119
|
+
if (data['time_to'] && !(typeof data['time_to'] === 'string' || data['time_to'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `time_to` to be a primitive type in the JSON string but got " + data['time_to']);
|
|
121
|
+
}
|
|
122
|
+
// ensure the json data is a string
|
|
123
|
+
if (data['filter_types'] && !(typeof data['filter_types'] === 'string' || data['filter_types'] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `filter_types` to be a primitive type in the JSON string but got " + data['filter_types']);
|
|
125
|
+
}
|
|
126
|
+
// ensure the json data is a string
|
|
127
|
+
if (data['filter_tags'] && !(typeof data['filter_tags'] === 'string' || data['filter_tags'] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `filter_tags` to be a primitive type in the JSON string but got " + data['filter_tags']);
|
|
129
|
+
}
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
}]);
|
|
133
|
+
}();
|
|
134
|
+
QueryRequestFilters.RequiredProperties = ["time_from", "time_to", "filter_types", "filter_tags"];
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Start timestamp for filtering content by creation or update time.
|
|
138
|
+
* @member {String} time_from
|
|
139
|
+
*/
|
|
140
|
+
QueryRequestFilters.prototype['time_from'] = undefined;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* End timestamp for filtering content by creation or update time.
|
|
144
|
+
* @member {String} time_to
|
|
145
|
+
*/
|
|
146
|
+
QueryRequestFilters.prototype['time_to'] = undefined;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Content types to include (e.g., post, forum).
|
|
150
|
+
* @member {String} filter_types
|
|
151
|
+
*/
|
|
152
|
+
QueryRequestFilters.prototype['filter_types'] = undefined;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Tags used to further refine the query results.
|
|
156
|
+
* @member {String} filter_tags
|
|
157
|
+
*/
|
|
158
|
+
QueryRequestFilters.prototype['filter_tags'] = undefined;
|
|
159
|
+
var _default = exports["default"] = QueryRequestFilters;
|
|
@@ -0,0 +1,124 @@
|
|
|
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 _QueryResponseItemsInner = _interopRequireDefault(require("./QueryResponseItemsInner"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Floor Memory
|
|
20
|
+
* The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts. - Memory and - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.0.0
|
|
23
|
+
* Contact: contact@ipomo.in
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The QueryResponse model module.
|
|
32
|
+
* @module model/QueryResponse
|
|
33
|
+
* @version 1.0.1
|
|
34
|
+
*/
|
|
35
|
+
var QueryResponse = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>QueryResponse</code>.
|
|
38
|
+
* @alias module:model/QueryResponse
|
|
39
|
+
*/
|
|
40
|
+
function QueryResponse() {
|
|
41
|
+
_classCallCheck(this, QueryResponse);
|
|
42
|
+
QueryResponse.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(QueryResponse, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj) {}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>QueryResponse</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/QueryResponse} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/QueryResponse} The populated <code>QueryResponse</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
}, {
|
|
62
|
+
key: "constructFromObject",
|
|
63
|
+
value: function constructFromObject(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new QueryResponse();
|
|
66
|
+
if (data.hasOwnProperty('items')) {
|
|
67
|
+
obj['items'] = _ApiClient["default"].convertToType(data['items'], [_QueryResponseItemsInner["default"]]);
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('answer')) {
|
|
70
|
+
obj['answer'] = _ApiClient["default"].convertToType(data['answer'], 'String');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return obj;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Validates the JSON data with respect to <code>QueryResponse</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>QueryResponse</code>.
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "validateJSON",
|
|
83
|
+
value: function validateJSON(data) {
|
|
84
|
+
if (data['items']) {
|
|
85
|
+
// data not null
|
|
86
|
+
// ensure the json data is an array
|
|
87
|
+
if (!Array.isArray(data['items'])) {
|
|
88
|
+
throw new Error("Expected the field `items` to be an array in the JSON data but got " + data['items']);
|
|
89
|
+
}
|
|
90
|
+
// validate the optional field `items` (array)
|
|
91
|
+
var _iterator = _createForOfIteratorHelper(data['items']),
|
|
92
|
+
_step;
|
|
93
|
+
try {
|
|
94
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
95
|
+
var item = _step.value;
|
|
96
|
+
_QueryResponseItemsInner["default"].validateJSON(item);
|
|
97
|
+
}
|
|
98
|
+
} catch (err) {
|
|
99
|
+
_iterator.e(err);
|
|
100
|
+
} finally {
|
|
101
|
+
_iterator.f();
|
|
102
|
+
}
|
|
103
|
+
;
|
|
104
|
+
}
|
|
105
|
+
// ensure the json data is a string
|
|
106
|
+
if (data['answer'] && !(typeof data['answer'] === 'string' || data['answer'] instanceof String)) {
|
|
107
|
+
throw new Error("Expected the field `answer` to be a primitive type in the JSON string but got " + data['answer']);
|
|
108
|
+
}
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
}]);
|
|
112
|
+
}();
|
|
113
|
+
/**
|
|
114
|
+
* List of source content
|
|
115
|
+
* @member {Array.<module:model/QueryResponseItemsInner>} items
|
|
116
|
+
*/
|
|
117
|
+
QueryResponse.prototype['items'] = undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Summary of the posts
|
|
121
|
+
* @member {String} answer
|
|
122
|
+
*/
|
|
123
|
+
QueryResponse.prototype['answer'] = undefined;
|
|
124
|
+
var _default = exports["default"] = QueryResponse;
|