@blues-inc/notehub-js 1.0.10 → 1.0.11

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 (82) hide show
  1. package/README.md +181 -178
  2. package/dist/ApiClient.js +157 -154
  3. package/dist/api/AuthorizationApi.js +63 -18
  4. package/dist/api/BillingAccountApi.js +15 -15
  5. package/dist/api/DeviceApi.js +159 -159
  6. package/dist/api/DevicesApi.js +58 -58
  7. package/dist/api/EnvironmentVariablesApi.js +110 -110
  8. package/dist/api/EventApi.js +94 -94
  9. package/dist/api/FilesApi.js +42 -42
  10. package/dist/api/FleetApi.js +160 -160
  11. package/dist/api/NotesApi.js +105 -105
  12. package/dist/api/ProductApi.js +29 -29
  13. package/dist/api/ProjectApi.js +139 -139
  14. package/dist/api/RouteApi.js +51 -51
  15. package/dist/index.js +7 -0
  16. package/dist/model/Aws.js +64 -64
  17. package/dist/model/Azure.js +42 -42
  18. package/dist/model/BillingAccount.js +20 -20
  19. package/dist/model/Body.js +4 -4
  20. package/dist/model/Contact.js +21 -21
  21. package/dist/model/CreateFleetRequest.js +6 -6
  22. package/dist/model/CreateProductRequest.js +21 -21
  23. package/dist/model/CreateProjectRequest.js +13 -13
  24. package/dist/model/DFUEnv.js +11 -11
  25. package/dist/model/DFUState.js +64 -64
  26. package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
  27. package/dist/model/Device.js +82 -82
  28. package/dist/model/DeviceSession.js +181 -181
  29. package/dist/model/DeviceTowerInfo.js +13 -13
  30. package/dist/model/DeviceUsage.js +31 -31
  31. package/dist/model/EnvironmentVariables.js +7 -7
  32. package/dist/model/Error.js +30 -30
  33. package/dist/model/Event.js +222 -222
  34. package/dist/model/Fleet.js +20 -20
  35. package/dist/model/GenerateAuthToken200Response.js +114 -0
  36. package/dist/model/GetBillingAccounts200Response.js +8 -9
  37. package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
  38. package/dist/model/GetDeviceHealthLog200Response.js +10 -11
  39. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
  40. package/dist/model/GetDeviceLatest200Response.js +8 -9
  41. package/dist/model/GetDevicePublicKey200Response.js +15 -15
  42. package/dist/model/GetDeviceSessions200Response.js +15 -16
  43. package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
  44. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
  45. package/dist/model/GetProjectDevices200Response.js +15 -16
  46. package/dist/model/GetProjectEvents200Response.js +20 -21
  47. package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
  48. package/dist/model/GetProjectFleets200Response.js +10 -11
  49. package/dist/model/GetProjectMembers200Response.js +10 -11
  50. package/dist/model/GetProjectProducts200Response.js +8 -9
  51. package/dist/model/GetProjects200Response.js +8 -9
  52. package/dist/model/Google.js +27 -27
  53. package/dist/model/HandleNoteChanges200Response.js +10 -10
  54. package/dist/model/HandleNoteGet200Response.js +12 -12
  55. package/dist/model/HandleNoteSignal200Response.js +4 -4
  56. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  57. package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
  58. package/dist/model/HandleNotefileDeleteRequest.js +6 -6
  59. package/dist/model/Http.js +34 -34
  60. package/dist/model/HttpFilter.js +18 -18
  61. package/dist/model/HttpTransform.js +19 -19
  62. package/dist/model/Location.js +39 -39
  63. package/dist/model/Login200Response.js +6 -6
  64. package/dist/model/LoginRequest.js +11 -11
  65. package/dist/model/Mqtt.js +65 -65
  66. package/dist/model/Note.js +9 -9
  67. package/dist/model/Product.js +25 -25
  68. package/dist/model/Project.js +33 -33
  69. package/dist/model/ProjectMember.js +21 -21
  70. package/dist/model/Proxy.js +23 -23
  71. package/dist/model/PutDeviceFleetsRequest.js +7 -7
  72. package/dist/model/Radresponder.js +24 -24
  73. package/dist/model/Route.js +35 -35
  74. package/dist/model/RouteSchema.js +39 -38
  75. package/dist/model/Snowflake.js +44 -44
  76. package/dist/model/SnowflakeTransform.js +11 -11
  77. package/dist/model/Thingworx.js +32 -32
  78. package/dist/model/TowerLocation.js +51 -51
  79. package/dist/model/Twilio.js +42 -42
  80. package/dist/model/UpdateFleetRequest.js +16 -16
  81. package/dist/model/UserDbRoute.js +24 -24
  82. package/package.json +3 -3
@@ -17,18 +17,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
17
17
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
18
  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); }
19
19
  /**
20
- * Devices service.
21
- * @module api/DevicesApi
22
- * @version 1.0.10
23
- */
20
+ * Devices service.
21
+ * @module api/DevicesApi
22
+ * @version 1.0.11
23
+ */
24
24
  var DevicesApi = /*#__PURE__*/function () {
25
25
  /**
26
- * Constructs a new DevicesApi.
27
- * @alias module:api/DevicesApi
28
- * @class
29
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
30
- * default to {@link module:ApiClient#instance} if unspecified.
31
- */
26
+ * Constructs a new DevicesApi.
27
+ * @alias module:api/DevicesApi
28
+ * @class
29
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
30
+ * default to {@link module:ApiClient#instance} if unspecified.
31
+ */
32
32
  function DevicesApi(apiClient) {
33
33
  _classCallCheck(this, DevicesApi);
34
34
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -36,9 +36,9 @@ var DevicesApi = /*#__PURE__*/function () {
36
36
 
37
37
  /**
38
38
  * Delete Device
39
- * @param {String} projectUID
40
- * @param {String} deviceUID
41
- * @param {module:model/String} purge
39
+ * @param {String} projectUID
40
+ * @param {String} deviceUID
41
+ * @param {module:model/String} purge
42
42
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
43
43
  */
44
44
  _createClass(DevicesApi, [{
@@ -58,26 +58,26 @@ var DevicesApi = /*#__PURE__*/function () {
58
58
  throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
59
59
  }
60
60
  var pathParams = {
61
- 'projectUID': projectUID,
62
- 'deviceUID': deviceUID
61
+ projectUID: projectUID,
62
+ deviceUID: deviceUID
63
63
  };
64
64
  var queryParams = {
65
- 'purge': purge
65
+ purge: purge
66
66
  };
67
67
  var headerParams = {};
68
68
  var formParams = {};
69
- var authNames = ['api_key'];
69
+ var authNames = ["bearer_access_token"];
70
70
  var contentTypes = [];
71
- var accepts = ['application/json'];
71
+ var accepts = ["application/json"];
72
72
  var returnType = null;
73
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
73
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
74
74
  }
75
75
 
76
76
  /**
77
77
  * Delete Device
78
- * @param {String} projectUID
79
- * @param {String} deviceUID
80
- * @param {module:model/String} purge
78
+ * @param {String} projectUID
79
+ * @param {String} deviceUID
80
+ * @param {module:model/String} purge
81
81
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
82
82
  */
83
83
  }, {
@@ -90,8 +90,8 @@ var DevicesApi = /*#__PURE__*/function () {
90
90
 
91
91
  /**
92
92
  * Get Device
93
- * @param {String} projectUID
94
- * @param {String} deviceUID
93
+ * @param {String} projectUID
94
+ * @param {String} deviceUID
95
95
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
96
96
  */
97
97
  }, {
@@ -107,23 +107,23 @@ var DevicesApi = /*#__PURE__*/function () {
107
107
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
108
108
  }
109
109
  var pathParams = {
110
- 'projectUID': projectUID,
111
- 'deviceUID': deviceUID
110
+ projectUID: projectUID,
111
+ deviceUID: deviceUID
112
112
  };
113
113
  var queryParams = {};
114
114
  var headerParams = {};
115
115
  var formParams = {};
116
- var authNames = ['api_key'];
116
+ var authNames = ["bearer_access_token"];
117
117
  var contentTypes = [];
118
- var accepts = ['application/json'];
118
+ var accepts = ["application/json"];
119
119
  var returnType = _Device["default"];
120
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
120
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
121
121
  }
122
122
 
123
123
  /**
124
124
  * Get Device
125
- * @param {String} projectUID
126
- * @param {String} deviceUID
125
+ * @param {String} projectUID
126
+ * @param {String} deviceUID
127
127
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
128
128
  */
129
129
  }, {
@@ -136,7 +136,7 @@ var DevicesApi = /*#__PURE__*/function () {
136
136
 
137
137
  /**
138
138
  * Get Device Public Keys of a Project
139
- * @param {String} projectUID
139
+ * @param {String} projectUID
140
140
  * @param {Object} opts Optional parameters
141
141
  * @param {Number} opts.pageSize (default to 50)
142
142
  * @param {Number} opts.pageNum (default to 1)
@@ -152,24 +152,24 @@ var DevicesApi = /*#__PURE__*/function () {
152
152
  throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevicePublicKeys");
153
153
  }
154
154
  var pathParams = {
155
- 'projectUID': projectUID
155
+ projectUID: projectUID
156
156
  };
157
157
  var queryParams = {
158
- 'pageSize': opts['pageSize'],
159
- 'pageNum': opts['pageNum']
158
+ pageSize: opts["pageSize"],
159
+ pageNum: opts["pageNum"]
160
160
  };
161
161
  var headerParams = {};
162
162
  var formParams = {};
163
- var authNames = ['api_key'];
163
+ var authNames = ["bearer_access_token"];
164
164
  var contentTypes = [];
165
- var accepts = ['application/json'];
165
+ var accepts = ["application/json"];
166
166
  var returnType = _GetProjectDevicePublicKeys200Response["default"];
167
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
167
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
168
168
  }
169
169
 
170
170
  /**
171
171
  * Get Device Public Keys of a Project
172
- * @param {String} projectUID
172
+ * @param {String} projectUID
173
173
  * @param {Object} opts Optional parameters
174
174
  * @param {Number} opts.pageSize (default to 50)
175
175
  * @param {Number} opts.pageNum (default to 1)
@@ -185,7 +185,7 @@ var DevicesApi = /*#__PURE__*/function () {
185
185
 
186
186
  /**
187
187
  * Get Devices of a Project
188
- * @param {String} projectUID
188
+ * @param {String} projectUID
189
189
  * @param {Object} opts Optional parameters
190
190
  * @param {Number} opts.pageSize (default to 50)
191
191
  * @param {Number} opts.pageNum (default to 1)
@@ -201,24 +201,24 @@ var DevicesApi = /*#__PURE__*/function () {
201
201
  throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevices");
202
202
  }
203
203
  var pathParams = {
204
- 'projectUID': projectUID
204
+ projectUID: projectUID
205
205
  };
206
206
  var queryParams = {
207
- 'pageSize': opts['pageSize'],
208
- 'pageNum': opts['pageNum']
207
+ pageSize: opts["pageSize"],
208
+ pageNum: opts["pageNum"]
209
209
  };
210
210
  var headerParams = {};
211
211
  var formParams = {};
212
- var authNames = ['api_key'];
212
+ var authNames = ["bearer_access_token"];
213
213
  var contentTypes = [];
214
- var accepts = ['application/json'];
214
+ var accepts = ["application/json"];
215
215
  var returnType = _GetProjectDevices200Response["default"];
216
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
216
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
217
217
  }
218
218
 
219
219
  /**
220
220
  * Get Devices of a Project
221
- * @param {String} projectUID
221
+ * @param {String} projectUID
222
222
  * @param {Object} opts Optional parameters
223
223
  * @param {Number} opts.pageSize (default to 50)
224
224
  * @param {Number} opts.pageNum (default to 1)
@@ -234,8 +234,8 @@ var DevicesApi = /*#__PURE__*/function () {
234
234
 
235
235
  /**
236
236
  * Get Devices of a Fleet within a Project
237
- * @param {String} projectUID
238
- * @param {String} fleetUID
237
+ * @param {String} projectUID
238
+ * @param {String} fleetUID
239
239
  * @param {Object} opts Optional parameters
240
240
  * @param {Number} opts.pageSize (default to 50)
241
241
  * @param {Number} opts.pageNum (default to 1)
@@ -255,26 +255,26 @@ var DevicesApi = /*#__PURE__*/function () {
255
255
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
256
256
  }
257
257
  var pathParams = {
258
- 'projectUID': projectUID,
259
- 'fleetUID': fleetUID
258
+ projectUID: projectUID,
259
+ fleetUID: fleetUID
260
260
  };
261
261
  var queryParams = {
262
- 'pageSize': opts['pageSize'],
263
- 'pageNum': opts['pageNum']
262
+ pageSize: opts["pageSize"],
263
+ pageNum: opts["pageNum"]
264
264
  };
265
265
  var headerParams = {};
266
266
  var formParams = {};
267
- var authNames = ['api_key'];
267
+ var authNames = ["bearer_access_token"];
268
268
  var contentTypes = [];
269
- var accepts = ['application/json'];
269
+ var accepts = ["application/json"];
270
270
  var returnType = _GetProjectDevices200Response["default"];
271
- return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
271
+ return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
272
272
  }
273
273
 
274
274
  /**
275
275
  * Get Devices of a Fleet within a Project
276
- * @param {String} projectUID
277
- * @param {String} fleetUID
276
+ * @param {String} projectUID
277
+ * @param {String} fleetUID
278
278
  * @param {Object} opts Optional parameters
279
279
  * @param {Number} opts.pageSize (default to 50)
280
280
  * @param {Number} opts.pageNum (default to 1)