@blues-inc/notehub-js 6.0.0-beta.9 → 6.1.0

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 (160) hide show
  1. package/README.md +268 -250
  2. package/dist/ApiClient.js +150 -150
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +106 -16
  6. package/dist/api/DeviceApi.js +397 -341
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/JobsApi.js +438 -0
  10. package/dist/api/MonitorApi.js +52 -52
  11. package/dist/api/ProjectApi.js +403 -403
  12. package/dist/api/RouteApi.js +83 -83
  13. package/dist/api/UsageApi.js +67 -67
  14. package/dist/api/WebhookApi.js +51 -51
  15. package/dist/index.js +91 -0
  16. package/dist/model/AWSRoleConfig.js +14 -14
  17. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  18. package/dist/model/Alert.js +74 -76
  19. package/dist/model/AlertDataInner.js +36 -36
  20. package/dist/model/AlertNotificationsInner.js +18 -18
  21. package/dist/model/AwsRoute.js +70 -70
  22. package/dist/model/AzureRoute.js +43 -43
  23. package/dist/model/BillingAccount.js +21 -21
  24. package/dist/model/BillingAccountRole.js +9 -9
  25. package/dist/model/BlynkRoute.js +28 -28
  26. package/dist/model/Body.js +5 -5
  27. package/dist/model/CancelJobRun200Response.js +111 -0
  28. package/dist/model/CellularPlan.js +34 -34
  29. package/dist/model/CloneProjectRequest.js +20 -20
  30. package/dist/model/Contact.js +22 -22
  31. package/dist/model/CreateFleetRequest.js +20 -20
  32. package/dist/model/CreateJob201Response.js +115 -0
  33. package/dist/model/CreateMonitor.js +127 -128
  34. package/dist/model/CreateProductRequest.js +22 -22
  35. package/dist/model/CreateProjectRequest.js +16 -16
  36. package/dist/model/CreateUpdateRepository.js +17 -17
  37. package/dist/model/CurrentFirmware.js +12 -12
  38. package/dist/model/DFUEnv.js +12 -12
  39. package/dist/model/DFUState.js +65 -65
  40. package/dist/model/DataField.js +7 -7
  41. package/dist/model/DataSetField.js +19 -19
  42. package/dist/model/DataUsage.js +14 -14
  43. package/dist/model/DatacakeRoute.js +35 -35
  44. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  45. package/dist/model/DeleteJob200Response.js +111 -0
  46. package/dist/model/DeleteNotefilesRequest.js +7 -7
  47. package/dist/model/Device.js +106 -107
  48. package/dist/model/DeviceDfuHistory.js +19 -20
  49. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  50. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  51. package/dist/model/DeviceDfuStateMachine.js +24 -25
  52. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  53. package/dist/model/DeviceDfuStatus.js +20 -20
  54. package/dist/model/DeviceDfuStatusPage.js +12 -13
  55. package/dist/model/DeviceSession.js +221 -221
  56. package/dist/model/DeviceTowerInfo.js +14 -14
  57. package/dist/model/DeviceUsage.js +32 -32
  58. package/dist/model/DfuActionRequest.js +7 -7
  59. package/dist/model/EmailNotification.js +7 -7
  60. package/dist/model/EnvTreeJsonNode.js +67 -69
  61. package/dist/model/EnvVar.js +18 -18
  62. package/dist/model/EnvironmentVariables.js +8 -8
  63. package/dist/model/Error.js +31 -31
  64. package/dist/model/Event.js +248 -248
  65. package/dist/model/Filter.js +16 -16
  66. package/dist/model/Firmware.js +49 -49
  67. package/dist/model/FirmwareInfo.js +82 -60
  68. package/dist/model/Fleet.js +38 -38
  69. package/dist/model/FleetConnectivityAssurance.js +5 -5
  70. package/dist/model/GetAlerts200Response.js +14 -15
  71. package/dist/model/GetBillingAccount200Response.js +137 -0
  72. package/dist/model/GetBillingAccount200ResponsePlan.js +141 -0
  73. package/dist/model/GetBillingAccountBalanceHistory200Response.js +111 -0
  74. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +130 -0
  75. package/dist/model/GetBillingAccounts200Response.js +9 -10
  76. package/dist/model/GetDataUsage200Response.js +12 -13
  77. package/dist/model/GetDataUsage200ResponseDataInner.js +43 -44
  78. package/dist/model/GetDbNote200Response.js +13 -13
  79. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  80. package/dist/model/GetDeviceFleets200Response.js +11 -12
  81. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  82. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  83. package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
  84. package/dist/model/GetDevicePlans200Response.js +9 -10
  85. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  86. package/dist/model/GetDevicePublicKeys200Response.js +16 -17
  87. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  88. package/dist/model/GetDeviceSessions200Response.js +16 -17
  89. package/dist/model/GetDevices200Response.js +16 -17
  90. package/dist/model/GetEvents200Response.js +20 -21
  91. package/dist/model/GetEventsByCursor200Response.js +23 -24
  92. package/dist/model/GetJobRuns200Response.js +131 -0
  93. package/dist/model/GetJobs200Response.js +131 -0
  94. package/dist/model/GetNotefile200Response.js +11 -11
  95. package/dist/model/GetProducts200Response.js +9 -10
  96. package/dist/model/GetProjectMembers200Response.js +11 -12
  97. package/dist/model/GetProjects200Response.js +9 -10
  98. package/dist/model/GetRouteLogsUsage200Response.js +14 -15
  99. package/dist/model/GetSessionsUsage200Response.js +15 -16
  100. package/dist/model/GetWebhooks200Response.js +9 -10
  101. package/dist/model/GoogleRoute.js +33 -33
  102. package/dist/model/HttpRoute.js +35 -35
  103. package/dist/model/Job.js +167 -0
  104. package/dist/model/JobRun.js +246 -0
  105. package/dist/model/Location.js +40 -40
  106. package/dist/model/Login200Response.js +7 -7
  107. package/dist/model/LoginRequest.js +12 -12
  108. package/dist/model/Monitor.js +101 -102
  109. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  110. package/dist/model/MqttRoute.js +68 -68
  111. package/dist/model/Note.js +31 -31
  112. package/dist/model/NoteInput.js +9 -9
  113. package/dist/model/Notefile.js +22 -23
  114. package/dist/model/NotefileSchema.js +18 -19
  115. package/dist/model/NotehubRoute.js +103 -103
  116. package/dist/model/NotehubRouteSummary.js +23 -23
  117. package/dist/model/OAuth2Error.js +20 -20
  118. package/dist/model/OAuth2TokenResponse.js +23 -23
  119. package/dist/model/PersonalAccessToken.js +34 -34
  120. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  121. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  122. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  123. package/dist/model/Product.js +26 -26
  124. package/dist/model/Project.js +34 -34
  125. package/dist/model/ProjectMember.js +22 -22
  126. package/dist/model/ProvisionDeviceRequest.js +18 -18
  127. package/dist/model/ProxyRoute.js +29 -29
  128. package/dist/model/QubitroRoute.js +33 -33
  129. package/dist/model/RadRoute.js +31 -31
  130. package/dist/model/Repository.js +22 -22
  131. package/dist/model/Role.js +9 -9
  132. package/dist/model/RouteLog.js +38 -38
  133. package/dist/model/RouteTransformSettings.js +18 -18
  134. package/dist/model/RunJob200Response.js +115 -0
  135. package/dist/model/S3ArchiveRoute.js +79 -79
  136. package/dist/model/SatelliteDataUsage.js +18 -18
  137. package/dist/model/SatellitePlan.js +29 -29
  138. package/dist/model/SchemaProperty.js +36 -38
  139. package/dist/model/SignalDevice200Response.js +5 -5
  140. package/dist/model/SimUsage.js +19 -19
  141. package/dist/model/SlackBearerNotification.js +25 -25
  142. package/dist/model/SlackRoute.js +48 -48
  143. package/dist/model/SlackWebHookNotification.js +20 -20
  144. package/dist/model/SnowflakeRoute.js +45 -45
  145. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  146. package/dist/model/ThingworxRoute.js +33 -33
  147. package/dist/model/TowerLocation.js +54 -54
  148. package/dist/model/TwilioRoute.js +43 -43
  149. package/dist/model/UpdateFleetRequest.js +33 -33
  150. package/dist/model/UploadMetadata.js +64 -64
  151. package/dist/model/UsageData.js +33 -33
  152. package/dist/model/UsageEventsData.js +61 -43
  153. package/dist/model/UsageEventsResponse.js +14 -15
  154. package/dist/model/UsageRouteLogsData.js +36 -27
  155. package/dist/model/UsageSessionsData.js +67 -36
  156. package/dist/model/UserDfuStateMachine.js +20 -20
  157. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  158. package/dist/model/UserFirmwareInfo.js +12 -12
  159. package/dist/model/WebhookSettings.js +15 -15
  160. package/package.json +3 -3
@@ -0,0 +1,246 @@
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
+ * Notehub API
19
+ * The OpenAPI definition for the Notehub.io API.
20
+ *
21
+ * The version of the OpenAPI document: 1.2.0
22
+ * Contact: engineering@blues.io
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 JobRun model module.
31
+ * @module model/JobRun
32
+ * @version 6.1.0
33
+ */
34
+ var JobRun = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>JobRun</code>.
37
+ * @alias module:model/JobRun
38
+ * @param dryRun {Boolean} Whether this was a dry run
39
+ * @param jobName {String} Name of the job
40
+ * @param jobUid {String} Unique identifier for the job
41
+ * @param reportUid {String} Unique identifier for this run
42
+ * @param status {String} Current status (submitted, running, completed, cancelled, failed)
43
+ * @param submitted {Number} Unix timestamp when submitted
44
+ * @param submittedBy {String} User who submitted the run
45
+ * @param updated {Number} Unix timestamp of last update
46
+ */
47
+ function JobRun(dryRun, jobName, jobUid, reportUid, status, submitted, submittedBy, updated) {
48
+ _classCallCheck(this, JobRun);
49
+ JobRun.initialize(this, dryRun, jobName, jobUid, reportUid, status, submitted, submittedBy, updated);
50
+ }
51
+
52
+ /**
53
+ * Initializes the fields of this object.
54
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
55
+ * Only for internal use.
56
+ */
57
+ return _createClass(JobRun, null, [{
58
+ key: "initialize",
59
+ value: function initialize(obj, dryRun, jobName, jobUid, reportUid, status, submitted, submittedBy, updated) {
60
+ obj["dry_run"] = dryRun;
61
+ obj["job_name"] = jobName;
62
+ obj["job_uid"] = jobUid;
63
+ obj["report_uid"] = reportUid;
64
+ obj["status"] = status;
65
+ obj["submitted"] = submitted;
66
+ obj["submitted_by"] = submittedBy;
67
+ obj["updated"] = updated;
68
+ }
69
+
70
+ /**
71
+ * Constructs a <code>JobRun</code> from a plain JavaScript object, optionally creating a new instance.
72
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
73
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
74
+ * @param {module:model/JobRun} obj Optional instance to populate.
75
+ * @return {module:model/JobRun} The populated <code>JobRun</code> instance.
76
+ */
77
+ }, {
78
+ key: "constructFromObject",
79
+ value: function constructFromObject(data, obj) {
80
+ if (data) {
81
+ obj = obj || new JobRun();
82
+ if (data.hasOwnProperty("cancel")) {
83
+ obj["cancel"] = _ApiClient["default"].convertToType(data["cancel"], "Boolean");
84
+ }
85
+ if (data.hasOwnProperty("completed")) {
86
+ obj["completed"] = _ApiClient["default"].convertToType(data["completed"], "Number");
87
+ }
88
+ if (data.hasOwnProperty("dry_run")) {
89
+ obj["dry_run"] = _ApiClient["default"].convertToType(data["dry_run"], "Boolean");
90
+ }
91
+ if (data.hasOwnProperty("job_name")) {
92
+ obj["job_name"] = _ApiClient["default"].convertToType(data["job_name"], "String");
93
+ }
94
+ if (data.hasOwnProperty("job_uid")) {
95
+ obj["job_uid"] = _ApiClient["default"].convertToType(data["job_uid"], "String");
96
+ }
97
+ if (data.hasOwnProperty("report_uid")) {
98
+ obj["report_uid"] = _ApiClient["default"].convertToType(data["report_uid"], "String");
99
+ }
100
+ if (data.hasOwnProperty("results")) {
101
+ obj["results"] = _ApiClient["default"].convertToType(data["results"], {
102
+ String: Object
103
+ });
104
+ }
105
+ if (data.hasOwnProperty("started")) {
106
+ obj["started"] = _ApiClient["default"].convertToType(data["started"], "Number");
107
+ }
108
+ if (data.hasOwnProperty("status")) {
109
+ obj["status"] = _ApiClient["default"].convertToType(data["status"], "String");
110
+ }
111
+ if (data.hasOwnProperty("submitted")) {
112
+ obj["submitted"] = _ApiClient["default"].convertToType(data["submitted"], "Number");
113
+ }
114
+ if (data.hasOwnProperty("submitted_by")) {
115
+ obj["submitted_by"] = _ApiClient["default"].convertToType(data["submitted_by"], "String");
116
+ }
117
+ if (data.hasOwnProperty("updated")) {
118
+ obj["updated"] = _ApiClient["default"].convertToType(data["updated"], "Number");
119
+ }
120
+ } else if (data === null) {
121
+ return null;
122
+ }
123
+ return obj;
124
+ }
125
+
126
+ /**
127
+ * Validates the JSON data with respect to <code>JobRun</code>.
128
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
129
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>JobRun</code>.
130
+ */
131
+ }, {
132
+ key: "validateJSON",
133
+ value: function validateJSON(data) {
134
+ // check to make sure all required properties are present in the JSON string
135
+ var _iterator = _createForOfIteratorHelper(JobRun.RequiredProperties),
136
+ _step;
137
+ try {
138
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
139
+ var property = _step.value;
140
+ if (!data[property]) {
141
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
142
+ }
143
+ }
144
+ // ensure the json data is a string
145
+ } catch (err) {
146
+ _iterator.e(err);
147
+ } finally {
148
+ _iterator.f();
149
+ }
150
+ if (data["job_name"] && !(typeof data["job_name"] === "string" || data["job_name"] instanceof String)) {
151
+ throw new Error("Expected the field `job_name` to be a primitive type in the JSON string but got " + data["job_name"]);
152
+ }
153
+ // ensure the json data is a string
154
+ if (data["job_uid"] && !(typeof data["job_uid"] === "string" || data["job_uid"] instanceof String)) {
155
+ throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data["job_uid"]);
156
+ }
157
+ // ensure the json data is a string
158
+ if (data["report_uid"] && !(typeof data["report_uid"] === "string" || data["report_uid"] instanceof String)) {
159
+ throw new Error("Expected the field `report_uid` to be a primitive type in the JSON string but got " + data["report_uid"]);
160
+ }
161
+ // ensure the json data is a string
162
+ if (data["status"] && !(typeof data["status"] === "string" || data["status"] instanceof String)) {
163
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data["status"]);
164
+ }
165
+ // ensure the json data is a string
166
+ if (data["submitted_by"] && !(typeof data["submitted_by"] === "string" || data["submitted_by"] instanceof String)) {
167
+ throw new Error("Expected the field `submitted_by` to be a primitive type in the JSON string but got " + data["submitted_by"]);
168
+ }
169
+ return true;
170
+ }
171
+ }]);
172
+ }();
173
+ JobRun.RequiredProperties = ["dry_run", "job_name", "job_uid", "report_uid", "status", "submitted", "submitted_by", "updated"];
174
+
175
+ /**
176
+ * Whether cancellation was requested
177
+ * @member {Boolean} cancel
178
+ */
179
+ JobRun.prototype["cancel"] = undefined;
180
+
181
+ /**
182
+ * Unix timestamp when completed
183
+ * @member {Number} completed
184
+ */
185
+ JobRun.prototype["completed"] = undefined;
186
+
187
+ /**
188
+ * Whether this was a dry run
189
+ * @member {Boolean} dry_run
190
+ */
191
+ JobRun.prototype["dry_run"] = undefined;
192
+
193
+ /**
194
+ * Name of the job
195
+ * @member {String} job_name
196
+ */
197
+ JobRun.prototype["job_name"] = undefined;
198
+
199
+ /**
200
+ * Unique identifier for the job
201
+ * @member {String} job_uid
202
+ */
203
+ JobRun.prototype["job_uid"] = undefined;
204
+
205
+ /**
206
+ * Unique identifier for this run
207
+ * @member {String} report_uid
208
+ */
209
+ JobRun.prototype["report_uid"] = undefined;
210
+
211
+ /**
212
+ * Full results (only in detail view)
213
+ * @member {Object.<String, Object>} results
214
+ */
215
+ JobRun.prototype["results"] = undefined;
216
+
217
+ /**
218
+ * Unix timestamp when started
219
+ * @member {Number} started
220
+ */
221
+ JobRun.prototype["started"] = undefined;
222
+
223
+ /**
224
+ * Current status (submitted, running, completed, cancelled, failed)
225
+ * @member {String} status
226
+ */
227
+ JobRun.prototype["status"] = undefined;
228
+
229
+ /**
230
+ * Unix timestamp when submitted
231
+ * @member {Number} submitted
232
+ */
233
+ JobRun.prototype["submitted"] = undefined;
234
+
235
+ /**
236
+ * User who submitted the run
237
+ * @member {String} submitted_by
238
+ */
239
+ JobRun.prototype["submitted_by"] = undefined;
240
+
241
+ /**
242
+ * Unix timestamp of last update
243
+ * @member {Number} updated
244
+ */
245
+ JobRun.prototype["updated"] = undefined;
246
+ var _default = exports["default"] = JobRun;
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
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
18
  * Notehub API
19
- * The OpenAPI definition for the Notehub.io API.
19
+ * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
21
  * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
@@ -29,18 +29,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The Location model module.
31
31
  * @module model/Location
32
- * @version 6.0.0-beta.9
32
+ * @version 6.1.0
33
33
  */
34
34
  var Location = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>Location</code>.
37
37
  * @alias module:model/Location
38
- * @param country {String}
39
- * @param latitude {Number}
40
- * @param longitude {Number}
41
- * @param name {String}
42
- * @param timezone {String}
43
- * @param when {String}
38
+ * @param country {String}
39
+ * @param latitude {Number}
40
+ * @param longitude {Number}
41
+ * @param name {String}
42
+ * @param timezone {String}
43
+ * @param when {String}
44
44
  */
45
45
  function Location(country, latitude, longitude, name, timezone, when) {
46
46
  _classCallCheck(this, Location);
@@ -55,12 +55,12 @@ var Location = /*#__PURE__*/function () {
55
55
  return _createClass(Location, null, [{
56
56
  key: "initialize",
57
57
  value: function initialize(obj, country, latitude, longitude, name, timezone, when) {
58
- obj['country'] = country;
59
- obj['latitude'] = latitude;
60
- obj['longitude'] = longitude;
61
- obj['name'] = name;
62
- obj['timezone'] = timezone;
63
- obj['when'] = when;
58
+ obj["country"] = country;
59
+ obj["latitude"] = latitude;
60
+ obj["longitude"] = longitude;
61
+ obj["name"] = name;
62
+ obj["timezone"] = timezone;
63
+ obj["when"] = when;
64
64
  }
65
65
 
66
66
  /**
@@ -75,23 +75,23 @@ var Location = /*#__PURE__*/function () {
75
75
  value: function constructFromObject(data, obj) {
76
76
  if (data) {
77
77
  obj = obj || new Location();
78
- if (data.hasOwnProperty('country')) {
79
- obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
78
+ if (data.hasOwnProperty("country")) {
79
+ obj["country"] = _ApiClient["default"].convertToType(data["country"], "String");
80
80
  }
81
- if (data.hasOwnProperty('latitude')) {
82
- obj['latitude'] = _ApiClient["default"].convertToType(data['latitude'], 'Number');
81
+ if (data.hasOwnProperty("latitude")) {
82
+ obj["latitude"] = _ApiClient["default"].convertToType(data["latitude"], "Number");
83
83
  }
84
- if (data.hasOwnProperty('longitude')) {
85
- obj['longitude'] = _ApiClient["default"].convertToType(data['longitude'], 'Number');
84
+ if (data.hasOwnProperty("longitude")) {
85
+ obj["longitude"] = _ApiClient["default"].convertToType(data["longitude"], "Number");
86
86
  }
87
- if (data.hasOwnProperty('name')) {
88
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
87
+ if (data.hasOwnProperty("name")) {
88
+ obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
89
89
  }
90
- if (data.hasOwnProperty('timezone')) {
91
- obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String');
90
+ if (data.hasOwnProperty("timezone")) {
91
+ obj["timezone"] = _ApiClient["default"].convertToType(data["timezone"], "String");
92
92
  }
93
- if (data.hasOwnProperty('when')) {
94
- obj['when'] = _ApiClient["default"].convertToType(data['when'], 'String');
93
+ if (data.hasOwnProperty("when")) {
94
+ obj["when"] = _ApiClient["default"].convertToType(data["when"], "String");
95
95
  }
96
96
  } else if (data === null) {
97
97
  return null;
@@ -123,20 +123,20 @@ var Location = /*#__PURE__*/function () {
123
123
  } finally {
124
124
  _iterator.f();
125
125
  }
126
- if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
127
- throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
126
+ if (data["country"] && !(typeof data["country"] === "string" || data["country"] instanceof String)) {
127
+ throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data["country"]);
128
128
  }
129
129
  // ensure the json data is a string
130
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
131
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
130
+ if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
131
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
132
132
  }
133
133
  // ensure the json data is a string
134
- if (data['timezone'] && !(typeof data['timezone'] === 'string' || data['timezone'] instanceof String)) {
135
- throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data['timezone']);
134
+ if (data["timezone"] && !(typeof data["timezone"] === "string" || data["timezone"] instanceof String)) {
135
+ throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data["timezone"]);
136
136
  }
137
137
  // ensure the json data is a string
138
- if (data['when'] && !(typeof data['when'] === 'string' || data['when'] instanceof String)) {
139
- throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data['when']);
138
+ if (data["when"] && !(typeof data["when"] === "string" || data["when"] instanceof String)) {
139
+ throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data["when"]);
140
140
  }
141
141
  return true;
142
142
  }
@@ -147,30 +147,30 @@ Location.RequiredProperties = ["country", "latitude", "longitude", "name", "time
147
147
  /**
148
148
  * @member {String} country
149
149
  */
150
- Location.prototype['country'] = undefined;
150
+ Location.prototype["country"] = undefined;
151
151
 
152
152
  /**
153
153
  * @member {Number} latitude
154
154
  */
155
- Location.prototype['latitude'] = undefined;
155
+ Location.prototype["latitude"] = undefined;
156
156
 
157
157
  /**
158
158
  * @member {Number} longitude
159
159
  */
160
- Location.prototype['longitude'] = undefined;
160
+ Location.prototype["longitude"] = undefined;
161
161
 
162
162
  /**
163
163
  * @member {String} name
164
164
  */
165
- Location.prototype['name'] = undefined;
165
+ Location.prototype["name"] = undefined;
166
166
 
167
167
  /**
168
168
  * @member {String} timezone
169
169
  */
170
- Location.prototype['timezone'] = undefined;
170
+ Location.prototype["timezone"] = undefined;
171
171
 
172
172
  /**
173
173
  * @member {String} when
174
174
  */
175
- Location.prototype['when'] = undefined;
175
+ Location.prototype["when"] = undefined;
176
176
  var _default = exports["default"] = Location;
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  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); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Login200Response model module.
28
28
  * @module model/Login200Response
29
- * @version 6.0.0-beta.9
29
+ * @version 6.1.0
30
30
  */
31
31
  var Login200Response = /*#__PURE__*/function () {
32
32
  /**
@@ -59,8 +59,8 @@ var Login200Response = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new Login200Response();
62
- if (data.hasOwnProperty('session_token')) {
63
- obj['session_token'] = _ApiClient["default"].convertToType(data['session_token'], 'String');
62
+ if (data.hasOwnProperty("session_token")) {
63
+ obj["session_token"] = _ApiClient["default"].convertToType(data["session_token"], "String");
64
64
  }
65
65
  } else if (data === null) {
66
66
  return null;
@@ -77,8 +77,8 @@ var Login200Response = /*#__PURE__*/function () {
77
77
  key: "validateJSON",
78
78
  value: function validateJSON(data) {
79
79
  // ensure the json data is a string
80
- if (data['session_token'] && !(typeof data['session_token'] === 'string' || data['session_token'] instanceof String)) {
81
- throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data['session_token']);
80
+ if (data["session_token"] && !(typeof data["session_token"] === "string" || data["session_token"] instanceof String)) {
81
+ throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data["session_token"]);
82
82
  }
83
83
  return true;
84
84
  }
@@ -87,5 +87,5 @@ var Login200Response = /*#__PURE__*/function () {
87
87
  /**
88
88
  * @member {String} session_token
89
89
  */
90
- Login200Response.prototype['session_token'] = undefined;
90
+ Login200Response.prototype["session_token"] = undefined;
91
91
  var _default = exports["default"] = Login200Response;
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  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); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The LoginRequest model module.
28
28
  * @module model/LoginRequest
29
- * @version 6.0.0-beta.9
29
+ * @version 6.1.0
30
30
  */
31
31
  var LoginRequest = /*#__PURE__*/function () {
32
32
  /**
@@ -59,11 +59,11 @@ var LoginRequest = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new LoginRequest();
62
- if (data.hasOwnProperty('password')) {
63
- obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
62
+ if (data.hasOwnProperty("password")) {
63
+ obj["password"] = _ApiClient["default"].convertToType(data["password"], "String");
64
64
  }
65
- if (data.hasOwnProperty('username')) {
66
- obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
65
+ if (data.hasOwnProperty("username")) {
66
+ obj["username"] = _ApiClient["default"].convertToType(data["username"], "String");
67
67
  }
68
68
  } else if (data === null) {
69
69
  return null;
@@ -80,12 +80,12 @@ var LoginRequest = /*#__PURE__*/function () {
80
80
  key: "validateJSON",
81
81
  value: function validateJSON(data) {
82
82
  // ensure the json data is a string
83
- if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
84
- throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
83
+ if (data["password"] && !(typeof data["password"] === "string" || data["password"] instanceof String)) {
84
+ throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data["password"]);
85
85
  }
86
86
  // ensure the json data is a string
87
- if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
88
- throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
87
+ if (data["username"] && !(typeof data["username"] === "string" || data["username"] instanceof String)) {
88
+ throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data["username"]);
89
89
  }
90
90
  return true;
91
91
  }
@@ -94,10 +94,10 @@ var LoginRequest = /*#__PURE__*/function () {
94
94
  /**
95
95
  * @member {String} password
96
96
  */
97
- LoginRequest.prototype['password'] = undefined;
97
+ LoginRequest.prototype["password"] = undefined;
98
98
 
99
99
  /**
100
100
  * @member {String} username
101
101
  */
102
- LoginRequest.prototype['username'] = undefined;
102
+ LoginRequest.prototype["username"] = undefined;
103
103
  var _default = exports["default"] = LoginRequest;