@xfloor/floor-memory-sdk-js 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +4 -6
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AuthApi.js +7 -48
  4. package/dist/api/EventApi.js +1 -1
  5. package/dist/api/FloorApi.js +1 -1
  6. package/dist/api/QueryApi.js +1 -1
  7. package/dist/index.js +21 -28
  8. package/dist/model/BlockDetails.js +1 -1
  9. package/dist/model/ChangePassword200Response.js +1 -1
  10. package/dist/model/EditFloor200Response.js +1 -1
  11. package/dist/model/EditFloor400Response.js +1 -1
  12. package/dist/model/EditFloor400ResponseError.js +1 -1
  13. package/dist/model/Event400Response.js +1 -1
  14. package/dist/model/Event400ResponseError.js +1 -1
  15. package/dist/model/EventResponse.js +1 -1
  16. package/dist/model/FloorInfo.js +1 -1
  17. package/dist/model/GetRecentEvents200Response.js +1 -1
  18. package/dist/model/GetRecentEvents200ResponseItemsInner.js +1 -1
  19. package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +1 -1
  20. package/dist/model/GetRecentEvents400Response.js +1 -1
  21. package/dist/model/GetRecentEvents400ResponseError.js +1 -1
  22. package/dist/model/Media.js +1 -1
  23. package/dist/model/Model400ErrorCode.js +1 -1
  24. package/dist/model/Query422Response.js +1 -1
  25. package/dist/model/Query422ResponseError.js +1 -1
  26. package/dist/model/QueryRequest.js +1 -1
  27. package/dist/model/QueryRequestFilters.js +1 -1
  28. package/dist/model/QueryResponse.js +1 -1
  29. package/dist/model/QueryResponseItemsInner.js +1 -1
  30. package/dist/model/Remaining.js +1 -1
  31. package/dist/model/ResetPassword200Response.js +1 -1
  32. package/dist/model/ResetPassword400Response.js +1 -1
  33. package/dist/model/SendValidationCode200Response.js +1 -1
  34. package/dist/model/SignInResponse.js +11 -11
  35. package/dist/model/SignUp200Response.js +1 -1
  36. package/dist/model/SignUpResponse.js +1 -1
  37. package/dist/model/UserDetails.js +11 -11
  38. package/dist/model/{ChangeEmail200ResponsePodInfo.js → UserDetailsPodInfo.js} +27 -27
  39. package/dist/model/{ChangeEmail200ResponseProfile.js → UserDetailsProfile.js} +32 -32
  40. package/dist/model/{ChangeEmail200ResponseProfileAvatar.js → UserDetailsProfileAvatar.js} +29 -29
  41. package/dist/model/ValidateCode400Response.js +1 -1
  42. package/dist/model/ValidateCode400ResponseError.js +1 -1
  43. package/dist/model/ValidateCode412Response.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/model/ChangeEmail200Response.js +0 -145
@@ -1,145 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _ChangeEmail200ResponsePodInfo = _interopRequireDefault(require("./ChangeEmail200ResponsePodInfo"));
9
- var _ChangeEmail200ResponseProfile = _interopRequireDefault(require("./ChangeEmail200ResponseProfile"));
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.
22
- * - Memory and
23
- * - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
24
- *
25
- * The version of the OpenAPI document: 1.0.0
26
- * Contact: contact@ipomo.in
27
- *
28
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
29
- * https://openapi-generator.tech
30
- * Do not edit the class manually.
31
- *
32
- */
33
- /**
34
- * The ChangeEmail200Response model module.
35
- * @module model/ChangeEmail200Response
36
- * @version 1.0.21
37
- */
38
- var ChangeEmail200Response = /*#__PURE__*/function () {
39
- /**
40
- * Constructs a new <code>ChangeEmail200Response</code>.
41
- * @alias module:model/ChangeEmail200Response
42
- * @param profile {module:model/ChangeEmail200ResponseProfile}
43
- * @param podInfo {module:model/ChangeEmail200ResponsePodInfo}
44
- */
45
- function ChangeEmail200Response(profile, podInfo) {
46
- _classCallCheck(this, ChangeEmail200Response);
47
- ChangeEmail200Response.initialize(this, profile, podInfo);
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(ChangeEmail200Response, null, [{
56
- key: "initialize",
57
- value: function initialize(obj, profile, podInfo) {
58
- obj['profile'] = profile;
59
- obj['pod_info'] = podInfo;
60
- }
61
-
62
- /**
63
- * Constructs a <code>ChangeEmail200Response</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/ChangeEmail200Response} obj Optional instance to populate.
67
- * @return {module:model/ChangeEmail200Response} The populated <code>ChangeEmail200Response</code> instance.
68
- */
69
- }, {
70
- key: "constructFromObject",
71
- value: function constructFromObject(data, obj) {
72
- if (data) {
73
- obj = obj || new ChangeEmail200Response();
74
- if (data.hasOwnProperty('profile')) {
75
- obj['profile'] = _ChangeEmail200ResponseProfile["default"].constructFromObject(data['profile']);
76
- }
77
- if (data.hasOwnProperty('pod_info')) {
78
- obj['pod_info'] = _ChangeEmail200ResponsePodInfo["default"].constructFromObject(data['pod_info']);
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>ChangeEmail200Response</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>ChangeEmail200Response</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(ChangeEmail200Response.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 `profile`
106
- } catch (err) {
107
- _iterator.e(err);
108
- } finally {
109
- _iterator.f();
110
- }
111
- if (data['profile']) {
112
- // data not null
113
- _ChangeEmail200ResponseProfile["default"].validateJSON(data['profile']);
114
- }
115
- // validate the optional field `pod_info`
116
- if (data['pod_info']) {
117
- // data not null
118
- _ChangeEmail200ResponsePodInfo["default"].validateJSON(data['pod_info']);
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
- ChangeEmail200Response.RequiredProperties = ["profile", "pod_info"];
129
-
130
- /**
131
- * @member {module:model/ChangeEmail200ResponseProfile} profile
132
- */
133
- ChangeEmail200Response.prototype['profile'] = undefined;
134
-
135
- /**
136
- * @member {module:model/ChangeEmail200ResponsePodInfo} pod_info
137
- */
138
- ChangeEmail200Response.prototype['pod_info'] = undefined;
139
-
140
- /**
141
- * App ID
142
- * @member {String} app_id
143
- */
144
- ChangeEmail200Response.prototype['app_id'] = undefined;
145
- var _default = exports["default"] = ChangeEmail200Response;