@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,114 @@
|
|
|
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 _Event400ResponseError = _interopRequireDefault(require("./Event400ResponseError"));
|
|
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 Event400Response model module.
|
|
32
|
+
* @module model/Event400Response
|
|
33
|
+
* @version 1.0.1
|
|
34
|
+
*/
|
|
35
|
+
var Event400Response = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>Event400Response</code>.
|
|
38
|
+
* @alias module:model/Event400Response
|
|
39
|
+
* @param error {module:model/Event400ResponseError}
|
|
40
|
+
*/
|
|
41
|
+
function Event400Response(error) {
|
|
42
|
+
_classCallCheck(this, Event400Response);
|
|
43
|
+
Event400Response.initialize(this, error);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(Event400Response, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, error) {
|
|
54
|
+
obj['error'] = error;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a <code>Event400Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
+
* @param {module:model/Event400Response} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/Event400Response} The populated <code>Event400Response</code> instance.
|
|
63
|
+
*/
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new Event400Response();
|
|
69
|
+
if (data.hasOwnProperty('error')) {
|
|
70
|
+
obj['error'] = _Event400ResponseError["default"].constructFromObject(data['error']);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return obj;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Validates the JSON data with respect to <code>Event400Response</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>Event400Response</code>.
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "validateJSON",
|
|
83
|
+
value: function validateJSON(data) {
|
|
84
|
+
// check to make sure all required properties are present in the JSON string
|
|
85
|
+
var _iterator = _createForOfIteratorHelper(Event400Response.RequiredProperties),
|
|
86
|
+
_step;
|
|
87
|
+
try {
|
|
88
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
89
|
+
var property = _step.value;
|
|
90
|
+
if (!data.hasOwnProperty(property)) {
|
|
91
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
// validate the optional field `error`
|
|
95
|
+
} catch (err) {
|
|
96
|
+
_iterator.e(err);
|
|
97
|
+
} finally {
|
|
98
|
+
_iterator.f();
|
|
99
|
+
}
|
|
100
|
+
if (data['error']) {
|
|
101
|
+
// data not null
|
|
102
|
+
_Event400ResponseError["default"].validateJSON(data['error']);
|
|
103
|
+
}
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
}]);
|
|
107
|
+
}();
|
|
108
|
+
Event400Response.RequiredProperties = ["error"];
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @member {module:model/Event400ResponseError} error
|
|
112
|
+
*/
|
|
113
|
+
Event400Response.prototype['error'] = undefined;
|
|
114
|
+
var _default = exports["default"] = Event400Response;
|
|
@@ -0,0 +1,155 @@
|
|
|
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 Event400ResponseError model module.
|
|
31
|
+
* @module model/Event400ResponseError
|
|
32
|
+
* @version 1.0.1
|
|
33
|
+
*/
|
|
34
|
+
var Event400ResponseError = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>Event400ResponseError</code>.
|
|
37
|
+
* @alias module:model/Event400ResponseError
|
|
38
|
+
* @param code {String}
|
|
39
|
+
* @param message {String} Invalid block type or Invalid Bid type
|
|
40
|
+
* @param path {String}
|
|
41
|
+
* @param timestamp {String}
|
|
42
|
+
*/
|
|
43
|
+
function Event400ResponseError(code, message, path, timestamp) {
|
|
44
|
+
_classCallCheck(this, Event400ResponseError);
|
|
45
|
+
Event400ResponseError.initialize(this, code, message, path, timestamp);
|
|
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(Event400ResponseError, null, [{
|
|
54
|
+
key: "initialize",
|
|
55
|
+
value: function initialize(obj, code, message, path, timestamp) {
|
|
56
|
+
obj['code'] = code;
|
|
57
|
+
obj['message'] = message;
|
|
58
|
+
obj['path'] = path;
|
|
59
|
+
obj['timestamp'] = timestamp;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a <code>Event400ResponseError</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/Event400ResponseError} obj Optional instance to populate.
|
|
67
|
+
* @return {module:model/Event400ResponseError} The populated <code>Event400ResponseError</code> instance.
|
|
68
|
+
*/
|
|
69
|
+
}, {
|
|
70
|
+
key: "constructFromObject",
|
|
71
|
+
value: function constructFromObject(data, obj) {
|
|
72
|
+
if (data) {
|
|
73
|
+
obj = obj || new Event400ResponseError();
|
|
74
|
+
if (data.hasOwnProperty('code')) {
|
|
75
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('message')) {
|
|
78
|
+
obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('path')) {
|
|
81
|
+
obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('timestamp')) {
|
|
84
|
+
obj['timestamp'] = _ApiClient["default"].convertToType(data['timestamp'], 'String');
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return obj;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Validates the JSON data with respect to <code>Event400ResponseError</code>.
|
|
92
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
93
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Event400ResponseError</code>.
|
|
94
|
+
*/
|
|
95
|
+
}, {
|
|
96
|
+
key: "validateJSON",
|
|
97
|
+
value: function validateJSON(data) {
|
|
98
|
+
// check to make sure all required properties are present in the JSON string
|
|
99
|
+
var _iterator = _createForOfIteratorHelper(Event400ResponseError.RequiredProperties),
|
|
100
|
+
_step;
|
|
101
|
+
try {
|
|
102
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
103
|
+
var property = _step.value;
|
|
104
|
+
if (!data.hasOwnProperty(property)) {
|
|
105
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// ensure the json data is a string
|
|
109
|
+
} catch (err) {
|
|
110
|
+
_iterator.e(err);
|
|
111
|
+
} finally {
|
|
112
|
+
_iterator.f();
|
|
113
|
+
}
|
|
114
|
+
if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']);
|
|
116
|
+
}
|
|
117
|
+
// ensure the json data is a string
|
|
118
|
+
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
119
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
120
|
+
}
|
|
121
|
+
// ensure the json data is a string
|
|
122
|
+
if (data['path'] && !(typeof data['path'] === 'string' || data['path'] instanceof String)) {
|
|
123
|
+
throw new Error("Expected the field `path` to be a primitive type in the JSON string but got " + data['path']);
|
|
124
|
+
}
|
|
125
|
+
// ensure the json data is a string
|
|
126
|
+
if (data['timestamp'] && !(typeof data['timestamp'] === 'string' || data['timestamp'] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `timestamp` to be a primitive type in the JSON string but got " + data['timestamp']);
|
|
128
|
+
}
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
}]);
|
|
132
|
+
}();
|
|
133
|
+
Event400ResponseError.RequiredProperties = ["code", "message", "path", "timestamp"];
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @member {String} code
|
|
137
|
+
*/
|
|
138
|
+
Event400ResponseError.prototype['code'] = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Invalid block type or Invalid Bid type
|
|
142
|
+
* @member {String} message
|
|
143
|
+
*/
|
|
144
|
+
Event400ResponseError.prototype['message'] = undefined;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @member {String} path
|
|
148
|
+
*/
|
|
149
|
+
Event400ResponseError.prototype['path'] = undefined;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @member {String} timestamp
|
|
153
|
+
*/
|
|
154
|
+
Event400ResponseError.prototype['timestamp'] = undefined;
|
|
155
|
+
var _default = exports["default"] = Event400ResponseError;
|
|
@@ -0,0 +1,112 @@
|
|
|
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 EventResponse model module.
|
|
31
|
+
* @module model/EventResponse
|
|
32
|
+
* @version 1.0.1
|
|
33
|
+
*/
|
|
34
|
+
var EventResponse = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>EventResponse</code>.
|
|
37
|
+
* @alias module:model/EventResponse
|
|
38
|
+
* @param success {String}
|
|
39
|
+
*/
|
|
40
|
+
function EventResponse(success) {
|
|
41
|
+
_classCallCheck(this, EventResponse);
|
|
42
|
+
EventResponse.initialize(this, success);
|
|
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(EventResponse, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, success) {
|
|
53
|
+
obj['success'] = success;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>EventResponse</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/EventResponse} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/EventResponse} The populated <code>EventResponse</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new EventResponse();
|
|
68
|
+
if (data.hasOwnProperty('success')) {
|
|
69
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'String');
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Validates the JSON data with respect to <code>EventResponse</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>EventResponse</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(EventResponse.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['success'] && !(typeof data['success'] === 'string' || data['success'] instanceof String)) {
|
|
100
|
+
throw new Error("Expected the field `success` to be a primitive type in the JSON string but got " + data['success']);
|
|
101
|
+
}
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
}]);
|
|
105
|
+
}();
|
|
106
|
+
EventResponse.RequiredProperties = ["success"];
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @member {String} success
|
|
110
|
+
*/
|
|
111
|
+
EventResponse.prototype['success'] = undefined;
|
|
112
|
+
var _default = exports["default"] = EventResponse;
|
|
@@ -0,0 +1,202 @@
|
|
|
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 _BlockDetails = _interopRequireDefault(require("./BlockDetails"));
|
|
9
|
+
var _Media = _interopRequireDefault(require("./Media"));
|
|
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 _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; } } }; }
|
|
13
|
+
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; } }
|
|
14
|
+
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; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
* 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.
|
|
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 FloorInfo model module.
|
|
33
|
+
* @module model/FloorInfo
|
|
34
|
+
* @version 1.0.1
|
|
35
|
+
*/
|
|
36
|
+
var FloorInfo = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>FloorInfo</code>.
|
|
39
|
+
* User's Pod floor Infomation
|
|
40
|
+
* @alias module:model/FloorInfo
|
|
41
|
+
* @param floorId {String} Pod floor ID
|
|
42
|
+
* @param title {String} Title
|
|
43
|
+
* @param fid {String} Unique numeric ID of the pod floor
|
|
44
|
+
*/
|
|
45
|
+
function FloorInfo(floorId, title, fid) {
|
|
46
|
+
_classCallCheck(this, FloorInfo);
|
|
47
|
+
FloorInfo.initialize(this, floorId, title, fid);
|
|
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(FloorInfo, null, [{
|
|
56
|
+
key: "initialize",
|
|
57
|
+
value: function initialize(obj, floorId, title, fid) {
|
|
58
|
+
obj['floor_id'] = floorId;
|
|
59
|
+
obj['title'] = title;
|
|
60
|
+
obj['fid'] = fid;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Constructs a <code>FloorInfo</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/FloorInfo} obj Optional instance to populate.
|
|
68
|
+
* @return {module:model/FloorInfo} The populated <code>FloorInfo</code> instance.
|
|
69
|
+
*/
|
|
70
|
+
}, {
|
|
71
|
+
key: "constructFromObject",
|
|
72
|
+
value: function constructFromObject(data, obj) {
|
|
73
|
+
if (data) {
|
|
74
|
+
obj = obj || new FloorInfo();
|
|
75
|
+
if (data.hasOwnProperty('floor_id')) {
|
|
76
|
+
obj['floor_id'] = _ApiClient["default"].convertToType(data['floor_id'], 'String');
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('title')) {
|
|
79
|
+
obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('details')) {
|
|
82
|
+
obj['details'] = _ApiClient["default"].convertToType(data['details'], 'String');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('fid')) {
|
|
85
|
+
obj['fid'] = _ApiClient["default"].convertToType(data['fid'], 'String');
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('blocks')) {
|
|
88
|
+
obj['blocks'] = _ApiClient["default"].convertToType(data['blocks'], [_BlockDetails["default"]]);
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('avatar')) {
|
|
91
|
+
obj['avatar'] = _Media["default"].constructFromObject(data['avatar']);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return obj;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Validates the JSON data with respect to <code>FloorInfo</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>FloorInfo</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(FloorInfo.RequiredProperties),
|
|
107
|
+
_step;
|
|
108
|
+
try {
|
|
109
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
110
|
+
var property = _step.value;
|
|
111
|
+
if (!data.hasOwnProperty(property)) {
|
|
112
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
// ensure the json data is a string
|
|
116
|
+
} catch (err) {
|
|
117
|
+
_iterator.e(err);
|
|
118
|
+
} finally {
|
|
119
|
+
_iterator.f();
|
|
120
|
+
}
|
|
121
|
+
if (data['floor_id'] && !(typeof data['floor_id'] === 'string' || data['floor_id'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `floor_id` to be a primitive type in the JSON string but got " + data['floor_id']);
|
|
123
|
+
}
|
|
124
|
+
// ensure the json data is a string
|
|
125
|
+
if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
|
|
127
|
+
}
|
|
128
|
+
// ensure the json data is a string
|
|
129
|
+
if (data['details'] && !(typeof data['details'] === 'string' || data['details'] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `details` to be a primitive type in the JSON string but got " + data['details']);
|
|
131
|
+
}
|
|
132
|
+
// ensure the json data is a string
|
|
133
|
+
if (data['fid'] && !(typeof data['fid'] === 'string' || data['fid'] instanceof String)) {
|
|
134
|
+
throw new Error("Expected the field `fid` to be a primitive type in the JSON string but got " + data['fid']);
|
|
135
|
+
}
|
|
136
|
+
if (data['blocks']) {
|
|
137
|
+
// data not null
|
|
138
|
+
// ensure the json data is an array
|
|
139
|
+
if (!Array.isArray(data['blocks'])) {
|
|
140
|
+
throw new Error("Expected the field `blocks` to be an array in the JSON data but got " + data['blocks']);
|
|
141
|
+
}
|
|
142
|
+
// validate the optional field `blocks` (array)
|
|
143
|
+
var _iterator2 = _createForOfIteratorHelper(data['blocks']),
|
|
144
|
+
_step2;
|
|
145
|
+
try {
|
|
146
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
147
|
+
var item = _step2.value;
|
|
148
|
+
_BlockDetails["default"].validateJSON(item);
|
|
149
|
+
}
|
|
150
|
+
} catch (err) {
|
|
151
|
+
_iterator2.e(err);
|
|
152
|
+
} finally {
|
|
153
|
+
_iterator2.f();
|
|
154
|
+
}
|
|
155
|
+
;
|
|
156
|
+
}
|
|
157
|
+
// validate the optional field `avatar`
|
|
158
|
+
if (data['avatar']) {
|
|
159
|
+
// data not null
|
|
160
|
+
_Media["default"].validateJSON(data['avatar']);
|
|
161
|
+
}
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
}]);
|
|
165
|
+
}();
|
|
166
|
+
FloorInfo.RequiredProperties = ["floor_id", "title", "fid"];
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Pod floor ID
|
|
170
|
+
* @member {String} floor_id
|
|
171
|
+
*/
|
|
172
|
+
FloorInfo.prototype['floor_id'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Title
|
|
176
|
+
* @member {String} title
|
|
177
|
+
*/
|
|
178
|
+
FloorInfo.prototype['title'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Brief description about the Pod floor
|
|
182
|
+
* @member {String} details
|
|
183
|
+
*/
|
|
184
|
+
FloorInfo.prototype['details'] = undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Unique numeric ID of the pod floor
|
|
188
|
+
* @member {String} fid
|
|
189
|
+
*/
|
|
190
|
+
FloorInfo.prototype['fid'] = undefined;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* List of blocks
|
|
194
|
+
* @member {Array.<module:model/BlockDetails>} blocks
|
|
195
|
+
*/
|
|
196
|
+
FloorInfo.prototype['blocks'] = undefined;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @member {module:model/Media} avatar
|
|
200
|
+
*/
|
|
201
|
+
FloorInfo.prototype['avatar'] = undefined;
|
|
202
|
+
var _default = exports["default"] = FloorInfo;
|