@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,128 @@
|
|
|
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 SignUp200Response model module.
|
|
31
|
+
* @module model/SignUp200Response
|
|
32
|
+
* @version 1.0.1
|
|
33
|
+
*/
|
|
34
|
+
var SignUp200Response = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>SignUp200Response</code>.
|
|
37
|
+
* @alias module:model/SignUp200Response
|
|
38
|
+
* @param userId {String} User ID
|
|
39
|
+
* @param success {String} Success string - \"Enter Validation code\"
|
|
40
|
+
*/
|
|
41
|
+
function SignUp200Response(userId, success) {
|
|
42
|
+
_classCallCheck(this, SignUp200Response);
|
|
43
|
+
SignUp200Response.initialize(this, userId, success);
|
|
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(SignUp200Response, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, userId, success) {
|
|
54
|
+
obj['user_id'] = userId;
|
|
55
|
+
obj['success'] = success;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>SignUp200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/SignUp200Response} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/SignUp200Response} The populated <code>SignUp200Response</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new SignUp200Response();
|
|
70
|
+
if (data.hasOwnProperty('user_id')) {
|
|
71
|
+
obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('success')) {
|
|
74
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'String');
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return obj;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Validates the JSON data with respect to <code>SignUp200Response</code>.
|
|
82
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
83
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SignUp200Response</code>.
|
|
84
|
+
*/
|
|
85
|
+
}, {
|
|
86
|
+
key: "validateJSON",
|
|
87
|
+
value: function validateJSON(data) {
|
|
88
|
+
// check to make sure all required properties are present in the JSON string
|
|
89
|
+
var _iterator = _createForOfIteratorHelper(SignUp200Response.RequiredProperties),
|
|
90
|
+
_step;
|
|
91
|
+
try {
|
|
92
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
93
|
+
var property = _step.value;
|
|
94
|
+
if (!data.hasOwnProperty(property)) {
|
|
95
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// ensure the json data is a string
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
|
|
106
|
+
}
|
|
107
|
+
// ensure the json data is a string
|
|
108
|
+
if (data['success'] && !(typeof data['success'] === 'string' || data['success'] instanceof String)) {
|
|
109
|
+
throw new Error("Expected the field `success` to be a primitive type in the JSON string but got " + data['success']);
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}]);
|
|
114
|
+
}();
|
|
115
|
+
SignUp200Response.RequiredProperties = ["user_id", "success"];
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* User ID
|
|
119
|
+
* @member {String} user_id
|
|
120
|
+
*/
|
|
121
|
+
SignUp200Response.prototype['user_id'] = undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Success string - \"Enter Validation code\"
|
|
125
|
+
* @member {String} success
|
|
126
|
+
*/
|
|
127
|
+
SignUp200Response.prototype['success'] = undefined;
|
|
128
|
+
var _default = exports["default"] = SignUp200Response;
|
|
@@ -0,0 +1,128 @@
|
|
|
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 SignUpResponse model module.
|
|
31
|
+
* @module model/SignUpResponse
|
|
32
|
+
* @version 1.0.1
|
|
33
|
+
*/
|
|
34
|
+
var SignUpResponse = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>SignUpResponse</code>.
|
|
37
|
+
* @alias module:model/SignUpResponse
|
|
38
|
+
* @param userId {String} User ID
|
|
39
|
+
* @param success {String} Success string - \"Enter Validation code\"
|
|
40
|
+
*/
|
|
41
|
+
function SignUpResponse(userId, success) {
|
|
42
|
+
_classCallCheck(this, SignUpResponse);
|
|
43
|
+
SignUpResponse.initialize(this, userId, success);
|
|
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(SignUpResponse, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, userId, success) {
|
|
54
|
+
obj['user_id'] = userId;
|
|
55
|
+
obj['success'] = success;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>SignUpResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/SignUpResponse} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/SignUpResponse} The populated <code>SignUpResponse</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new SignUpResponse();
|
|
70
|
+
if (data.hasOwnProperty('user_id')) {
|
|
71
|
+
obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('success')) {
|
|
74
|
+
obj['success'] = _ApiClient["default"].convertToType(data['success'], 'String');
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return obj;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Validates the JSON data with respect to <code>SignUpResponse</code>.
|
|
82
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
83
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SignUpResponse</code>.
|
|
84
|
+
*/
|
|
85
|
+
}, {
|
|
86
|
+
key: "validateJSON",
|
|
87
|
+
value: function validateJSON(data) {
|
|
88
|
+
// check to make sure all required properties are present in the JSON string
|
|
89
|
+
var _iterator = _createForOfIteratorHelper(SignUpResponse.RequiredProperties),
|
|
90
|
+
_step;
|
|
91
|
+
try {
|
|
92
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
93
|
+
var property = _step.value;
|
|
94
|
+
if (!data.hasOwnProperty(property)) {
|
|
95
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// ensure the json data is a string
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
|
|
106
|
+
}
|
|
107
|
+
// ensure the json data is a string
|
|
108
|
+
if (data['success'] && !(typeof data['success'] === 'string' || data['success'] instanceof String)) {
|
|
109
|
+
throw new Error("Expected the field `success` to be a primitive type in the JSON string but got " + data['success']);
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}]);
|
|
114
|
+
}();
|
|
115
|
+
SignUpResponse.RequiredProperties = ["user_id", "success"];
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* User ID
|
|
119
|
+
* @member {String} user_id
|
|
120
|
+
*/
|
|
121
|
+
SignUpResponse.prototype['user_id'] = undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Success string - \"Enter Validation code\"
|
|
125
|
+
* @member {String} success
|
|
126
|
+
*/
|
|
127
|
+
SignUpResponse.prototype['success'] = undefined;
|
|
128
|
+
var _default = exports["default"] = SignUpResponse;
|
|
@@ -0,0 +1,140 @@
|
|
|
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 Threads model module.
|
|
31
|
+
* @module model/Threads
|
|
32
|
+
* @version 1.0.1
|
|
33
|
+
*/
|
|
34
|
+
var Threads = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>Threads</code>.
|
|
37
|
+
* @alias module:model/Threads
|
|
38
|
+
* @param threadId {String}
|
|
39
|
+
* @param title {String}
|
|
40
|
+
* @param lastUpdated {String}
|
|
41
|
+
*/
|
|
42
|
+
function Threads(threadId, title, lastUpdated) {
|
|
43
|
+
_classCallCheck(this, Threads);
|
|
44
|
+
Threads.initialize(this, threadId, title, lastUpdated);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Initializes the fields of this object.
|
|
49
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
50
|
+
* Only for internal use.
|
|
51
|
+
*/
|
|
52
|
+
return _createClass(Threads, null, [{
|
|
53
|
+
key: "initialize",
|
|
54
|
+
value: function initialize(obj, threadId, title, lastUpdated) {
|
|
55
|
+
obj['thread_id'] = threadId;
|
|
56
|
+
obj['title'] = title;
|
|
57
|
+
obj['last_updated'] = lastUpdated;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Constructs a <code>Threads</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/Threads} obj Optional instance to populate.
|
|
65
|
+
* @return {module:model/Threads} The populated <code>Threads</code> instance.
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "constructFromObject",
|
|
69
|
+
value: function constructFromObject(data, obj) {
|
|
70
|
+
if (data) {
|
|
71
|
+
obj = obj || new Threads();
|
|
72
|
+
if (data.hasOwnProperty('thread_id')) {
|
|
73
|
+
obj['thread_id'] = _ApiClient["default"].convertToType(data['thread_id'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('title')) {
|
|
76
|
+
obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('last_updated')) {
|
|
79
|
+
obj['last_updated'] = _ApiClient["default"].convertToType(data['last_updated'], 'String');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Validates the JSON data with respect to <code>Threads</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>Threads</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(Threads.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['thread_id'] && !(typeof data['thread_id'] === 'string' || data['thread_id'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `thread_id` to be a primitive type in the JSON string but got " + data['thread_id']);
|
|
111
|
+
}
|
|
112
|
+
// ensure the json data is a string
|
|
113
|
+
if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
|
|
115
|
+
}
|
|
116
|
+
// ensure the json data is a string
|
|
117
|
+
if (data['last_updated'] && !(typeof data['last_updated'] === 'string' || data['last_updated'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `last_updated` to be a primitive type in the JSON string but got " + data['last_updated']);
|
|
119
|
+
}
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
}]);
|
|
123
|
+
}();
|
|
124
|
+
Threads.RequiredProperties = ["thread_id", "title", "last_updated"];
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @member {String} thread_id
|
|
128
|
+
*/
|
|
129
|
+
Threads.prototype['thread_id'] = undefined;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @member {String} title
|
|
133
|
+
*/
|
|
134
|
+
Threads.prototype['title'] = undefined;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @member {String} last_updated
|
|
138
|
+
*/
|
|
139
|
+
Threads.prototype['last_updated'] = undefined;
|
|
140
|
+
var _default = exports["default"] = Threads;
|
|
@@ -0,0 +1,145 @@
|
|
|
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 _FloorInfo = _interopRequireDefault(require("./FloorInfo"));
|
|
9
|
+
var _SignInWithEmail200ResponseProfile = _interopRequireDefault(require("./SignInWithEmail200ResponseProfile"));
|
|
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 UserDetails model module.
|
|
33
|
+
* @module model/UserDetails
|
|
34
|
+
* @version 1.0.1
|
|
35
|
+
*/
|
|
36
|
+
var UserDetails = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>UserDetails</code>.
|
|
39
|
+
* @alias module:model/UserDetails
|
|
40
|
+
* @param podInfo {module:model/FloorInfo}
|
|
41
|
+
* @param profile {module:model/SignInWithEmail200ResponseProfile}
|
|
42
|
+
* @param appId {String} App ID
|
|
43
|
+
*/
|
|
44
|
+
function UserDetails(podInfo, profile, appId) {
|
|
45
|
+
_classCallCheck(this, UserDetails);
|
|
46
|
+
UserDetails.initialize(this, podInfo, profile, appId);
|
|
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(UserDetails, null, [{
|
|
55
|
+
key: "initialize",
|
|
56
|
+
value: function initialize(obj, podInfo, profile, appId) {
|
|
57
|
+
obj['pod_info'] = podInfo;
|
|
58
|
+
obj['profile'] = profile;
|
|
59
|
+
obj['app_id'] = appId;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a <code>UserDetails</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/UserDetails} obj Optional instance to populate.
|
|
67
|
+
* @return {module:model/UserDetails} The populated <code>UserDetails</code> instance.
|
|
68
|
+
*/
|
|
69
|
+
}, {
|
|
70
|
+
key: "constructFromObject",
|
|
71
|
+
value: function constructFromObject(data, obj) {
|
|
72
|
+
if (data) {
|
|
73
|
+
obj = obj || new UserDetails();
|
|
74
|
+
if (data.hasOwnProperty('pod_info')) {
|
|
75
|
+
obj['pod_info'] = _FloorInfo["default"].constructFromObject(data['pod_info']);
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('profile')) {
|
|
78
|
+
obj['profile'] = _SignInWithEmail200ResponseProfile["default"].constructFromObject(data['profile']);
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('app_id')) {
|
|
81
|
+
obj['app_id'] = _ApiClient["default"].convertToType(data['app_id'], 'String');
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return obj;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Validates the JSON data with respect to <code>UserDetails</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>UserDetails</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(UserDetails.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
|
+
// validate the optional field `pod_info`
|
|
106
|
+
} catch (err) {
|
|
107
|
+
_iterator.e(err);
|
|
108
|
+
} finally {
|
|
109
|
+
_iterator.f();
|
|
110
|
+
}
|
|
111
|
+
if (data['pod_info']) {
|
|
112
|
+
// data not null
|
|
113
|
+
_FloorInfo["default"].validateJSON(data['pod_info']);
|
|
114
|
+
}
|
|
115
|
+
// validate the optional field `profile`
|
|
116
|
+
if (data['profile']) {
|
|
117
|
+
// data not null
|
|
118
|
+
_SignInWithEmail200ResponseProfile["default"].validateJSON(data['profile']);
|
|
119
|
+
}
|
|
120
|
+
// ensure the json data is a string
|
|
121
|
+
if (data['app_id'] && !(typeof data['app_id'] === 'string' || data['app_id'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `app_id` to be a primitive type in the JSON string but got " + data['app_id']);
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
}]);
|
|
127
|
+
}();
|
|
128
|
+
UserDetails.RequiredProperties = ["pod_info", "profile", "app_id"];
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @member {module:model/FloorInfo} pod_info
|
|
132
|
+
*/
|
|
133
|
+
UserDetails.prototype['pod_info'] = undefined;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @member {module:model/SignInWithEmail200ResponseProfile} profile
|
|
137
|
+
*/
|
|
138
|
+
UserDetails.prototype['profile'] = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* App ID
|
|
142
|
+
* @member {String} app_id
|
|
143
|
+
*/
|
|
144
|
+
UserDetails.prototype['app_id'] = undefined;
|
|
145
|
+
var _default = exports["default"] = UserDetails;
|