@blues-inc/notehub-js 1.0.11 → 1.0.13

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 (84) hide show
  1. package/README.md +91 -97
  2. package/dist/ApiClient.js +3 -6
  3. package/dist/api/AuthorizationApi.js +5 -50
  4. package/dist/api/BillingAccountApi.js +4 -4
  5. package/dist/api/DeviceApi.js +108 -16
  6. package/dist/api/DevicesApi.js +6 -6
  7. package/dist/api/EnvironmentVariablesApi.js +10 -10
  8. package/dist/api/EventApi.js +5 -5
  9. package/dist/api/FilesApi.js +4 -4
  10. package/dist/api/FleetApi.js +14 -14
  11. package/dist/api/NotesApi.js +7 -7
  12. package/dist/api/ProductApi.js +4 -4
  13. package/dist/api/ProjectApi.js +18 -18
  14. package/dist/api/RouteApi.js +6 -6
  15. package/dist/index.js +14 -7
  16. package/dist/model/Aws.js +1 -1
  17. package/dist/model/Azure.js +1 -1
  18. package/dist/model/BillingAccount.js +1 -1
  19. package/dist/model/Body.js +1 -1
  20. package/dist/model/Contact.js +1 -1
  21. package/dist/model/CreateFleetRequest.js +1 -1
  22. package/dist/model/CreateProductRequest.js +1 -1
  23. package/dist/model/CreateProjectRequest.js +1 -1
  24. package/dist/model/DFUEnv.js +1 -1
  25. package/dist/model/DFUState.js +1 -1
  26. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  27. package/dist/model/Device.js +1 -1
  28. package/dist/model/DeviceSession.js +1 -1
  29. package/dist/model/DeviceTowerInfo.js +1 -1
  30. package/dist/model/DeviceUsage.js +1 -1
  31. package/dist/model/Edgeimpulse.js +214 -0
  32. package/dist/model/{GenerateAuthToken200Response.js → EdgeimpulseSensorsInner.js} +36 -44
  33. package/dist/model/EnvironmentVariables.js +1 -1
  34. package/dist/model/Error.js +1 -1
  35. package/dist/model/Event.js +1 -1
  36. package/dist/model/Fleet.js +1 -1
  37. package/dist/model/GetBillingAccounts200Response.js +1 -1
  38. package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
  39. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  40. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  41. package/dist/model/GetDeviceLatest200Response.js +1 -1
  42. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  43. package/dist/model/GetDeviceSessions200Response.js +1 -1
  44. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  45. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  46. package/dist/model/GetProjectDevices200Response.js +1 -1
  47. package/dist/model/GetProjectEvents200Response.js +1 -1
  48. package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
  49. package/dist/model/GetProjectFleets200Response.js +1 -1
  50. package/dist/model/GetProjectMembers200Response.js +1 -1
  51. package/dist/model/GetProjectProducts200Response.js +1 -1
  52. package/dist/model/GetProjects200Response.js +1 -1
  53. package/dist/model/Google.js +14 -1
  54. package/dist/model/HandleNoteChanges200Response.js +1 -1
  55. package/dist/model/HandleNoteGet200Response.js +1 -1
  56. package/dist/model/HandleNoteSignal200Response.js +1 -1
  57. package/dist/model/HandleNotefileChanges200Response.js +1 -1
  58. package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
  59. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  60. package/dist/model/Http.js +1 -1
  61. package/dist/model/HttpFilter.js +1 -1
  62. package/dist/model/HttpTransform.js +1 -1
  63. package/dist/model/Location.js +1 -1
  64. package/dist/model/Login200Response.js +1 -1
  65. package/dist/model/LoginRequest.js +1 -1
  66. package/dist/model/Mqtt.js +1 -1
  67. package/dist/model/Note.js +1 -1
  68. package/dist/model/Product.js +1 -1
  69. package/dist/model/Project.js +1 -1
  70. package/dist/model/ProjectMember.js +1 -1
  71. package/dist/model/Proxy.js +1 -1
  72. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  73. package/dist/model/Radresponder.js +1 -1
  74. package/dist/model/Role.js +9 -8
  75. package/dist/model/Route.js +7 -2
  76. package/dist/model/RouteSchema.js +7 -1
  77. package/dist/model/Snowflake.js +1 -1
  78. package/dist/model/SnowflakeTransform.js +1 -1
  79. package/dist/model/Thingworx.js +1 -1
  80. package/dist/model/TowerLocation.js +1 -1
  81. package/dist/model/Twilio.js +1 -1
  82. package/dist/model/UpdateFleetRequest.js +1 -1
  83. package/dist/model/UserDbRoute.js +1 -1
  84. package/package.json +1 -1
@@ -20,7 +20,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
20
20
  /**
21
21
  * Product service.
22
22
  * @module api/ProductApi
23
- * @version 1.0.11
23
+ * @version 1.0.13
24
24
  */
25
25
  var ProductApi = /*#__PURE__*/function () {
26
26
  /**
@@ -59,7 +59,7 @@ var ProductApi = /*#__PURE__*/function () {
59
59
  var queryParams = {};
60
60
  var headerParams = {};
61
61
  var formParams = {};
62
- var authNames = ["bearer_access_token"];
62
+ var authNames = ["api_key"];
63
63
  var contentTypes = ["application/json"];
64
64
  var accepts = ["application/json"];
65
65
  var returnType = _Product["default"];
@@ -99,7 +99,7 @@ var ProductApi = /*#__PURE__*/function () {
99
99
  var queryParams = {};
100
100
  var headerParams = {};
101
101
  var formParams = {};
102
- var authNames = ["bearer_access_token"];
102
+ var authNames = ["api_key"];
103
103
  var contentTypes = [];
104
104
  var accepts = ["application/json"];
105
105
  var returnType = _Project["default"];
@@ -138,7 +138,7 @@ var ProductApi = /*#__PURE__*/function () {
138
138
  var queryParams = {};
139
139
  var headerParams = {};
140
140
  var formParams = {};
141
- var authNames = ["bearer_access_token"];
141
+ var authNames = ["api_key"];
142
142
  var contentTypes = [];
143
143
  var accepts = ["application/json"];
144
144
  var returnType = _GetProjectProducts200Response["default"];
@@ -28,7 +28,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
28
28
  /**
29
29
  * Project service.
30
30
  * @module api/ProjectApi
31
- * @version 1.0.11
31
+ * @version 1.0.13
32
32
  */
33
33
  var ProjectApi = /*#__PURE__*/function () {
34
34
  /**
@@ -67,7 +67,7 @@ var ProjectApi = /*#__PURE__*/function () {
67
67
  var queryParams = {};
68
68
  var headerParams = {};
69
69
  var formParams = {};
70
- var authNames = ["bearer_access_token"];
70
+ var authNames = ["api_key"];
71
71
  var contentTypes = ["application/json"];
72
72
  var accepts = ["application/json"];
73
73
  var returnType = _Product["default"];
@@ -105,7 +105,7 @@ var ProjectApi = /*#__PURE__*/function () {
105
105
  var queryParams = {};
106
106
  var headerParams = {};
107
107
  var formParams = {};
108
- var authNames = ["bearer_access_token"];
108
+ var authNames = ["api_key"];
109
109
  var contentTypes = ["application/json"];
110
110
  var accepts = ["application/json"];
111
111
  var returnType = _Project["default"];
@@ -150,7 +150,7 @@ var ProjectApi = /*#__PURE__*/function () {
150
150
  var queryParams = {};
151
151
  var headerParams = {};
152
152
  var formParams = {};
153
- var authNames = ["bearer_access_token"];
153
+ var authNames = ["api_key"];
154
154
  var contentTypes = [];
155
155
  var accepts = ["application/json"];
156
156
  var returnType = _EnvironmentVariables["default"];
@@ -190,7 +190,7 @@ var ProjectApi = /*#__PURE__*/function () {
190
190
  var queryParams = {};
191
191
  var headerParams = {};
192
192
  var formParams = {};
193
- var authNames = ["bearer_access_token"];
193
+ var authNames = ["api_key"];
194
194
  var contentTypes = [];
195
195
  var accepts = ["application/json"];
196
196
  var returnType = _Project["default"];
@@ -229,7 +229,7 @@ var ProjectApi = /*#__PURE__*/function () {
229
229
  var queryParams = {};
230
230
  var headerParams = {};
231
231
  var formParams = {};
232
- var authNames = ["bearer_access_token"];
232
+ var authNames = ["api_key"];
233
233
  var contentTypes = [];
234
234
  var accepts = ["application/json"];
235
235
  var returnType = _Project["default"];
@@ -275,7 +275,7 @@ var ProjectApi = /*#__PURE__*/function () {
275
275
  };
276
276
  var headerParams = {};
277
277
  var formParams = {};
278
- var authNames = ["bearer_access_token"];
278
+ var authNames = ["api_key"];
279
279
  var contentTypes = [];
280
280
  var accepts = ["application/json"];
281
281
  var returnType = _GetProjectDevicePublicKeys200Response["default"];
@@ -324,7 +324,7 @@ var ProjectApi = /*#__PURE__*/function () {
324
324
  };
325
325
  var headerParams = {};
326
326
  var formParams = {};
327
- var authNames = ["bearer_access_token"];
327
+ var authNames = ["api_key"];
328
328
  var contentTypes = [];
329
329
  var accepts = ["application/json"];
330
330
  var returnType = _GetProjectDevices200Response["default"];
@@ -366,7 +366,7 @@ var ProjectApi = /*#__PURE__*/function () {
366
366
  var queryParams = {};
367
367
  var headerParams = {};
368
368
  var formParams = {};
369
- var authNames = ["bearer_access_token"];
369
+ var authNames = ["api_key"];
370
370
  var contentTypes = [];
371
371
  var accepts = ["application/json"];
372
372
  var returnType = _EnvironmentVariables["default"];
@@ -426,7 +426,7 @@ var ProjectApi = /*#__PURE__*/function () {
426
426
  };
427
427
  var headerParams = {};
428
428
  var formParams = {};
429
- var authNames = ["bearer_access_token"];
429
+ var authNames = ["api_key"];
430
430
  var contentTypes = [];
431
431
  var accepts = ["application/json"];
432
432
  var returnType = _GetProjectEvents200Response["default"];
@@ -494,7 +494,7 @@ var ProjectApi = /*#__PURE__*/function () {
494
494
  };
495
495
  var headerParams = {};
496
496
  var formParams = {};
497
- var authNames = ["bearer_access_token"];
497
+ var authNames = ["api_key"];
498
498
  var contentTypes = [];
499
499
  var accepts = ["application/json"];
500
500
  var returnType = _GetProjectEventsByCursor200Response["default"];
@@ -555,7 +555,7 @@ var ProjectApi = /*#__PURE__*/function () {
555
555
  };
556
556
  var headerParams = {};
557
557
  var formParams = {};
558
- var authNames = ["bearer_access_token"];
558
+ var authNames = ["api_key"];
559
559
  var contentTypes = [];
560
560
  var accepts = ["application/json"];
561
561
  var returnType = _GetProjectDevices200Response["default"];
@@ -598,7 +598,7 @@ var ProjectApi = /*#__PURE__*/function () {
598
598
  var queryParams = {};
599
599
  var headerParams = {};
600
600
  var formParams = {};
601
- var authNames = ["bearer_access_token"];
601
+ var authNames = ["api_key"];
602
602
  var contentTypes = [];
603
603
  var accepts = ["application/json"];
604
604
  var returnType = _GetProjectMembers200Response["default"];
@@ -637,7 +637,7 @@ var ProjectApi = /*#__PURE__*/function () {
637
637
  var queryParams = {};
638
638
  var headerParams = {};
639
639
  var formParams = {};
640
- var authNames = ["bearer_access_token"];
640
+ var authNames = ["api_key"];
641
641
  var contentTypes = [];
642
642
  var accepts = ["application/json"];
643
643
  var returnType = _GetProjectProducts200Response["default"];
@@ -658,7 +658,7 @@ var ProjectApi = /*#__PURE__*/function () {
658
658
  }
659
659
 
660
660
  /**
661
- * Get Projects accessible by the OAuth access token
661
+ * Get Projects accessible by the api_key
662
662
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
663
663
  */
664
664
  }, {
@@ -669,7 +669,7 @@ var ProjectApi = /*#__PURE__*/function () {
669
669
  var queryParams = {};
670
670
  var headerParams = {};
671
671
  var formParams = {};
672
- var authNames = ["bearer_access_token"];
672
+ var authNames = ["api_key"];
673
673
  var contentTypes = [];
674
674
  var accepts = ["application/json"];
675
675
  var returnType = _GetProjects200Response["default"];
@@ -677,7 +677,7 @@ var ProjectApi = /*#__PURE__*/function () {
677
677
  }
678
678
 
679
679
  /**
680
- * Get Projects accessible by the OAuth access token
680
+ * Get Projects accessible by the api_key
681
681
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
682
682
  */
683
683
  }, {
@@ -710,7 +710,7 @@ var ProjectApi = /*#__PURE__*/function () {
710
710
  var queryParams = {};
711
711
  var headerParams = {};
712
712
  var formParams = {};
713
- var authNames = ["bearer_access_token"];
713
+ var authNames = ["api_key"];
714
714
  var contentTypes = ["application/json"];
715
715
  var accepts = ["application/json"];
716
716
  var returnType = _EnvironmentVariables["default"];
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * Route service.
20
20
  * @module api/RouteApi
21
- * @version 1.0.11
21
+ * @version 1.0.13
22
22
  */
23
23
  var RouteApi = /*#__PURE__*/function () {
24
24
  /**
@@ -57,7 +57,7 @@ var RouteApi = /*#__PURE__*/function () {
57
57
  var queryParams = {};
58
58
  var headerParams = {};
59
59
  var formParams = {};
60
- var authNames = ["bearer_access_token"];
60
+ var authNames = ["api_key"];
61
61
  var contentTypes = ["application/json"];
62
62
  var accepts = ["application/json"];
63
63
  var returnType = _Route["default"];
@@ -103,7 +103,7 @@ var RouteApi = /*#__PURE__*/function () {
103
103
  var queryParams = {};
104
104
  var headerParams = {};
105
105
  var formParams = {};
106
- var authNames = ["bearer_access_token"];
106
+ var authNames = ["api_key"];
107
107
  var contentTypes = [];
108
108
  var accepts = ["application/json"];
109
109
  var returnType = Object;
@@ -149,7 +149,7 @@ var RouteApi = /*#__PURE__*/function () {
149
149
  var queryParams = {};
150
150
  var headerParams = {};
151
151
  var formParams = {};
152
- var authNames = ["bearer_access_token"];
152
+ var authNames = ["api_key"];
153
153
  var contentTypes = [];
154
154
  var accepts = ["application/json"];
155
155
  var returnType = _Route["default"];
@@ -189,7 +189,7 @@ var RouteApi = /*#__PURE__*/function () {
189
189
  var queryParams = {};
190
190
  var headerParams = {};
191
191
  var formParams = {};
192
- var authNames = ["bearer_access_token"];
192
+ var authNames = ["api_key"];
193
193
  var contentTypes = [];
194
194
  var accepts = ["application/json"];
195
195
  var returnType = [_UserDbRoute["default"]];
@@ -239,7 +239,7 @@ var RouteApi = /*#__PURE__*/function () {
239
239
  var queryParams = {};
240
240
  var headerParams = {};
241
241
  var formParams = {};
242
- var authNames = ["bearer_access_token"];
242
+ var authNames = ["api_key"];
243
243
  var contentTypes = ["application/json"];
244
244
  var accepts = ["application/json"];
245
245
  var returnType = _Route["default"];
package/dist/index.js CHANGED
@@ -129,6 +129,18 @@ Object.defineProperty(exports, "DevicesApi", {
129
129
  return _DevicesApi["default"];
130
130
  }
131
131
  });
132
+ Object.defineProperty(exports, "Edgeimpulse", {
133
+ enumerable: true,
134
+ get: function get() {
135
+ return _Edgeimpulse["default"];
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "EdgeimpulseSensorsInner", {
139
+ enumerable: true,
140
+ get: function get() {
141
+ return _EdgeimpulseSensorsInner["default"];
142
+ }
143
+ });
132
144
  Object.defineProperty(exports, "EnvironmentVariables", {
133
145
  enumerable: true,
134
146
  get: function get() {
@@ -177,12 +189,6 @@ Object.defineProperty(exports, "FleetApi", {
177
189
  return _FleetApi["default"];
178
190
  }
179
191
  });
180
- Object.defineProperty(exports, "GenerateAuthToken200Response", {
181
- enumerable: true,
182
- get: function get() {
183
- return _GenerateAuthToken200Response["default"];
184
- }
185
- });
186
192
  Object.defineProperty(exports, "GetBillingAccounts200Response", {
187
193
  enumerable: true,
188
194
  get: function get() {
@@ -506,11 +512,12 @@ var _Device = _interopRequireDefault(require("./model/Device"));
506
512
  var _DeviceSession = _interopRequireDefault(require("./model/DeviceSession"));
507
513
  var _DeviceTowerInfo = _interopRequireDefault(require("./model/DeviceTowerInfo"));
508
514
  var _DeviceUsage = _interopRequireDefault(require("./model/DeviceUsage"));
515
+ var _Edgeimpulse = _interopRequireDefault(require("./model/Edgeimpulse"));
516
+ var _EdgeimpulseSensorsInner = _interopRequireDefault(require("./model/EdgeimpulseSensorsInner"));
509
517
  var _EnvironmentVariables = _interopRequireDefault(require("./model/EnvironmentVariables"));
510
518
  var _Error = _interopRequireDefault(require("./model/Error"));
511
519
  var _Event = _interopRequireDefault(require("./model/Event"));
512
520
  var _Fleet = _interopRequireDefault(require("./model/Fleet"));
513
- var _GenerateAuthToken200Response = _interopRequireDefault(require("./model/GenerateAuthToken200Response"));
514
521
  var _GetBillingAccounts200Response = _interopRequireDefault(require("./model/GetBillingAccounts200Response"));
515
522
  var _GetDeviceEnvironmentVariables200Response = _interopRequireDefault(require("./model/GetDeviceEnvironmentVariables200Response"));
516
523
  var _GetDeviceHealthLog200Response = _interopRequireDefault(require("./model/GetDeviceHealthLog200Response"));
package/dist/model/Aws.js CHANGED
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * The Aws model module.
19
19
  * @module model/Aws
20
- * @version 1.0.11
20
+ * @version 1.0.13
21
21
  */
22
22
  var Aws = /*#__PURE__*/function () {
23
23
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * The Azure model module.
19
19
  * @module model/Azure
20
- * @version 1.0.11
20
+ * @version 1.0.13
21
21
  */
22
22
  var Azure = /*#__PURE__*/function () {
23
23
  /**
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * The BillingAccount model module.
21
21
  * @module model/BillingAccount
22
- * @version 1.0.11
22
+ * @version 1.0.13
23
23
  */
24
24
  var BillingAccount = /*#__PURE__*/function () {
25
25
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The Body model module.
17
17
  * @module model/Body
18
- * @version 1.0.11
18
+ * @version 1.0.13
19
19
  */
20
20
  var Body = /*#__PURE__*/function () {
21
21
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The Contact model module.
17
17
  * @module model/Contact
18
- * @version 1.0.11
18
+ * @version 1.0.13
19
19
  */
20
20
  var Contact = /*#__PURE__*/function () {
21
21
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The CreateFleetRequest model module.
17
17
  * @module model/CreateFleetRequest
18
- * @version 1.0.11
18
+ * @version 1.0.13
19
19
  */
20
20
  var CreateFleetRequest = /*#__PURE__*/function () {
21
21
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The CreateProductRequest model module.
20
20
  * @module model/CreateProductRequest
21
- * @version 1.0.11
21
+ * @version 1.0.13
22
22
  */
23
23
  var CreateProductRequest = /*#__PURE__*/function () {
24
24
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The CreateProjectRequest model module.
20
20
  * @module model/CreateProjectRequest
21
- * @version 1.0.11
21
+ * @version 1.0.13
22
22
  */
23
23
  var CreateProjectRequest = /*#__PURE__*/function () {
24
24
  /**
@@ -16,7 +16,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
16
16
  /**
17
17
  * The DFUEnv model module.
18
18
  * @module model/DFUEnv
19
- * @version 1.0.11
19
+ * @version 1.0.13
20
20
  */
21
21
  var DFUEnv = /*#__PURE__*/function () {
22
22
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The DFUState model module.
17
17
  * @module model/DFUState
18
- * @version 1.0.11
18
+ * @version 1.0.13
19
19
  */
20
20
  var DFUState = /*#__PURE__*/function () {
21
21
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The DeleteDeviceFleetsRequest model module.
20
20
  * @module model/DeleteDeviceFleetsRequest
21
- * @version 1.0.11
21
+ * @version 1.0.13
22
22
  */
23
23
  var DeleteDeviceFleetsRequest = /*#__PURE__*/function () {
24
24
  /**
@@ -22,7 +22,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
22
22
  /**
23
23
  * The Device model module.
24
24
  * @module model/Device
25
- * @version 1.0.11
25
+ * @version 1.0.13
26
26
  */
27
27
  var Device = /*#__PURE__*/function () {
28
28
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * The DeviceSession model module.
19
19
  * @module model/DeviceSession
20
- * @version 1.0.11
20
+ * @version 1.0.13
21
21
  */
22
22
  var DeviceSession = /*#__PURE__*/function () {
23
23
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The DeviceTowerInfo model module.
17
17
  * @module model/DeviceTowerInfo
18
- * @version 1.0.11
18
+ * @version 1.0.13
19
19
  */
20
20
  var DeviceTowerInfo = /*#__PURE__*/function () {
21
21
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The DeviceUsage model module.
17
17
  * @module model/DeviceUsage
18
- * @version 1.0.11
18
+ * @version 1.0.13
19
19
  */
20
20
  var DeviceUsage = /*#__PURE__*/function () {
21
21
  /**
@@ -0,0 +1,214 @@
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 _EdgeimpulseSensorsInner = _interopRequireDefault(require("./EdgeimpulseSensorsInner"));
9
+ var _HttpFilter = _interopRequireDefault(require("./HttpFilter"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
12
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
13
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
15
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
+ /**
21
+ * The Edgeimpulse model module.
22
+ * @module model/Edgeimpulse
23
+ * @version 1.0.13
24
+ */
25
+ var Edgeimpulse = /*#__PURE__*/function () {
26
+ /**
27
+ * Constructs a new <code>Edgeimpulse</code>.
28
+ * Route settings specific to edgeimpulse routes. Only used for edgeimpulse route types
29
+ * @alias module:model/Edgeimpulse
30
+ */
31
+ function Edgeimpulse() {
32
+ _classCallCheck(this, Edgeimpulse);
33
+ Edgeimpulse.initialize(this);
34
+ }
35
+
36
+ /**
37
+ * Initializes the fields of this object.
38
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
39
+ * Only for internal use.
40
+ */
41
+ _createClass(Edgeimpulse, null, [{
42
+ key: "initialize",
43
+ value: function initialize(obj) {}
44
+
45
+ /**
46
+ * Constructs a <code>Edgeimpulse</code> from a plain JavaScript object, optionally creating a new instance.
47
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
48
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
49
+ * @param {module:model/Edgeimpulse} obj Optional instance to populate.
50
+ * @return {module:model/Edgeimpulse} The populated <code>Edgeimpulse</code> instance.
51
+ */
52
+ }, {
53
+ key: "constructFromObject",
54
+ value: function constructFromObject(data, obj) {
55
+ if (data) {
56
+ obj = obj || new Edgeimpulse();
57
+ if (data.hasOwnProperty("fleets")) {
58
+ obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
59
+ }
60
+ if (data.hasOwnProperty("filter")) {
61
+ obj["filter"] = _HttpFilter["default"].constructFromObject(data["filter"]);
62
+ }
63
+ if (data.hasOwnProperty("timeout")) {
64
+ obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
65
+ }
66
+ if (data.hasOwnProperty("api_key")) {
67
+ obj["api_key"] = _ApiClient["default"].convertToType(data["api_key"], "String");
68
+ }
69
+ if (data.hasOwnProperty("filename")) {
70
+ obj["filename"] = _ApiClient["default"].convertToType(data["filename"], "String");
71
+ }
72
+ if (data.hasOwnProperty("device_type")) {
73
+ obj["device_type"] = _ApiClient["default"].convertToType(data["device_type"], "String");
74
+ }
75
+ if (data.hasOwnProperty("interval_ms")) {
76
+ obj["interval_ms"] = _ApiClient["default"].convertToType(data["interval_ms"], "Number");
77
+ }
78
+ if (data.hasOwnProperty("device_name")) {
79
+ obj["device_name"] = _ApiClient["default"].convertToType(data["device_name"], "String");
80
+ }
81
+ if (data.hasOwnProperty("label")) {
82
+ obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
83
+ }
84
+ if (data.hasOwnProperty("sensors")) {
85
+ obj["sensors"] = _ApiClient["default"].convertToType(data["sensors"], [_EdgeimpulseSensorsInner["default"]]);
86
+ }
87
+ } else if (data === null) {
88
+ return null;
89
+ }
90
+ return obj;
91
+ }
92
+
93
+ /**
94
+ * Validates the JSON data with respect to <code>Edgeimpulse</code>.
95
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
96
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Edgeimpulse</code>.
97
+ */
98
+ }, {
99
+ key: "validateJSON",
100
+ value: function validateJSON(data) {
101
+ // ensure the json data is an array
102
+ if (!Array.isArray(data["fleets"])) {
103
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
104
+ }
105
+ // validate the optional field `filter`
106
+ if (data["filter"]) {
107
+ // data not null
108
+ _HttpFilter["default"].validateJSON(data["filter"]);
109
+ }
110
+ // ensure the json data is a string
111
+ if (data["api_key"] && !(typeof data["api_key"] === "string" || data["api_key"] instanceof String)) {
112
+ throw new Error("Expected the field `api_key` to be a primitive type in the JSON string but got " + data["api_key"]);
113
+ }
114
+ // ensure the json data is a string
115
+ if (data["filename"] && !(typeof data["filename"] === "string" || data["filename"] instanceof String)) {
116
+ throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data["filename"]);
117
+ }
118
+ // ensure the json data is a string
119
+ if (data["device_type"] && !(typeof data["device_type"] === "string" || data["device_type"] instanceof String)) {
120
+ throw new Error("Expected the field `device_type` to be a primitive type in the JSON string but got " + data["device_type"]);
121
+ }
122
+ // ensure the json data is a string
123
+ if (data["device_name"] && !(typeof data["device_name"] === "string" || data["device_name"] instanceof String)) {
124
+ throw new Error("Expected the field `device_name` to be a primitive type in the JSON string but got " + data["device_name"]);
125
+ }
126
+ // ensure the json data is a string
127
+ if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
128
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
129
+ }
130
+ if (data["sensors"]) {
131
+ // data not null
132
+ // ensure the json data is an array
133
+ if (!Array.isArray(data["sensors"])) {
134
+ throw new Error("Expected the field `sensors` to be an array in the JSON data but got " + data["sensors"]);
135
+ }
136
+ // validate the optional field `sensors` (array)
137
+ var _iterator = _createForOfIteratorHelper(data["sensors"]),
138
+ _step;
139
+ try {
140
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
141
+ var item = _step.value;
142
+ _EdgeimpulseSensorsInner["default"].validateJsonObject(item);
143
+ }
144
+ } catch (err) {
145
+ _iterator.e(err);
146
+ } finally {
147
+ _iterator.f();
148
+ }
149
+ }
150
+ return true;
151
+ }
152
+ }]);
153
+ return Edgeimpulse;
154
+ }();
155
+ /**
156
+ * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
157
+ * @member {Array.<String>} fleets
158
+ */
159
+ Edgeimpulse.prototype["fleets"] = undefined;
160
+
161
+ /**
162
+ * @member {module:model/HttpFilter} filter
163
+ */
164
+ Edgeimpulse.prototype["filter"] = undefined;
165
+
166
+ /**
167
+ * Timeout in seconds for each request
168
+ * @member {Number} timeout
169
+ * @default 15
170
+ */
171
+ Edgeimpulse.prototype["timeout"] = 15;
172
+
173
+ /**
174
+ * EdgeImpulse API Key
175
+ * @member {String} api_key
176
+ */
177
+ Edgeimpulse.prototype["api_key"] = undefined;
178
+
179
+ /**
180
+ * An identifier the collection of data points
181
+ * @member {String} filename
182
+ */
183
+ Edgeimpulse.prototype["filename"] = undefined;
184
+
185
+ /**
186
+ * An identifier for the type of device generating the data
187
+ * @member {String} device_type
188
+ */
189
+ Edgeimpulse.prototype["device_type"] = undefined;
190
+
191
+ /**
192
+ * Frequency of data in miliseconds
193
+ * @member {Number} interval_ms
194
+ */
195
+ Edgeimpulse.prototype["interval_ms"] = undefined;
196
+
197
+ /**
198
+ * An identifier for the device generating the data
199
+ * @member {String} device_name
200
+ */
201
+ Edgeimpulse.prototype["device_name"] = undefined;
202
+
203
+ /**
204
+ * A label for the data point
205
+ * @member {String} label
206
+ */
207
+ Edgeimpulse.prototype["label"] = undefined;
208
+
209
+ /**
210
+ * @member {Array.<module:model/EdgeimpulseSensorsInner>} sensors
211
+ */
212
+ Edgeimpulse.prototype["sensors"] = undefined;
213
+ var _default = Edgeimpulse;
214
+ exports["default"] = _default;