@blues-inc/notehub-js 2.3.0 → 3.0.0-beta.2

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 (144) hide show
  1. package/README.md +250 -241
  2. package/dist/ApiClient.js +154 -154
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +843 -831
  7. package/dist/api/EventApi.js +178 -178
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +562 -562
  11. package/dist/api/RouteApi.js +77 -77
  12. package/dist/api/UsageApi.js +65 -44
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/index.js +80 -73
  15. package/dist/model/{PutDeviceFleetsRequest.js → AddDeviceToFleetsRequest.js} +26 -26
  16. package/dist/model/Alert.js +76 -74
  17. package/dist/model/AlertDataInner.js +35 -35
  18. package/dist/model/AlertNotificationsInner.js +18 -18
  19. package/dist/model/AwsRoute.js +65 -65
  20. package/dist/model/AzureRoute.js +43 -43
  21. package/dist/model/BillingAccount.js +21 -21
  22. package/dist/model/BillingAccountRole.js +9 -9
  23. package/dist/model/BlynkRoute.js +28 -28
  24. package/dist/model/Body.js +5 -5
  25. package/dist/model/CellularPlan.js +34 -34
  26. package/dist/model/CloneProjectRequest.js +20 -20
  27. package/dist/model/Contact.js +22 -22
  28. package/dist/model/CreateFleetRequest.js +17 -17
  29. package/dist/model/CreateMonitor.js +126 -125
  30. package/dist/model/CreateProductRequest.js +22 -22
  31. package/dist/model/CreateProjectRequest.js +16 -16
  32. package/dist/model/CreateUpdateRepository.js +17 -17
  33. package/dist/model/CurrentFirmware.js +12 -12
  34. package/dist/model/DFUEnv.js +12 -12
  35. package/dist/model/DFUState.js +65 -65
  36. package/dist/model/DataField.js +7 -7
  37. package/dist/model/DataSetField.js +19 -19
  38. package/dist/model/DataUsage.js +14 -14
  39. package/dist/model/DatacakeRoute.js +35 -35
  40. package/dist/model/{DeleteDeviceFleetsRequest.js → DeleteDeviceFromFleetsRequest.js} +26 -26
  41. package/dist/model/{HandleNotefileDeleteRequest.js → DeleteNotefilesRequest.js} +24 -24
  42. package/dist/model/Device.js +115 -101
  43. package/dist/model/DeviceDfuHistory.js +20 -19
  44. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  45. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  46. package/dist/model/DeviceDfuStateMachine.js +25 -24
  47. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  48. package/dist/model/DeviceDfuStatus.js +20 -20
  49. package/dist/model/DeviceDfuStatusPage.js +13 -12
  50. package/dist/model/DeviceSession.js +221 -221
  51. package/dist/model/DeviceTowerInfo.js +14 -14
  52. package/dist/model/DeviceUsage.js +32 -32
  53. package/dist/model/DfuActionRequest.js +7 -7
  54. package/dist/model/EmailNotification.js +7 -7
  55. package/dist/model/EnvTreeJsonNode.js +69 -67
  56. package/dist/model/EnvVar.js +18 -18
  57. package/dist/model/EnvironmentVariables.js +8 -8
  58. package/dist/model/Error.js +31 -31
  59. package/dist/model/Event.js +248 -248
  60. package/dist/model/Filter.js +16 -16
  61. package/dist/model/Firmware.js +49 -49
  62. package/dist/model/FirmwareInfo.js +60 -60
  63. package/dist/model/Fleet.js +35 -35
  64. package/dist/model/FleetConnectivityAssurance.js +8 -31
  65. package/dist/model/GetAlerts200Response.js +15 -14
  66. package/dist/model/GetBillingAccounts200Response.js +10 -9
  67. package/dist/model/GetDataUsage200Response.js +10 -9
  68. package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
  69. package/dist/model/{HandleNoteGet200Response.js → GetDbNote200Response.js} +29 -29
  70. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  71. package/dist/model/GetDeviceFleets200Response.js +12 -11
  72. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  73. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  74. package/dist/model/{GetDeviceLatest200Response.js → GetDeviceLatestEvents200Response.js} +26 -25
  75. package/dist/model/GetDevicePlans200Response.js +10 -9
  76. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  77. package/dist/model/{GetProjectDevicePublicKeys200Response.js → GetDevicePublicKeys200Response.js} +38 -37
  78. package/dist/model/{GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetDevicePublicKeys200ResponseDevicePublicKeysInner.js} +28 -28
  79. package/dist/model/GetDeviceSessions200Response.js +17 -16
  80. package/dist/model/{GetProjectDevices200Response.js → GetDevices200Response.js} +35 -34
  81. package/dist/model/{GetProjectEvents200Response.js → GetEvents200Response.js} +39 -38
  82. package/dist/model/{GetProjectEventsByCursor200Response.js → GetEventsByCursor200Response.js} +42 -41
  83. package/dist/model/{HandleNoteChanges200Response.js → GetNotefile200Response.js} +27 -27
  84. package/dist/model/GetProducts200Response.js +10 -9
  85. package/dist/model/GetProjectMembers200Response.js +12 -11
  86. package/dist/model/GetProjects200Response.js +10 -9
  87. package/dist/model/GetSessionsUsage200Response.js +12 -11
  88. package/dist/model/GetWebhooks200Response.js +10 -9
  89. package/dist/model/GoogleRoute.js +33 -33
  90. package/dist/model/HttpRoute.js +35 -35
  91. package/dist/model/{HandleNotefileChanges200Response.js → ListNotefiles200Response.js} +27 -27
  92. package/dist/model/{HandleNotefileChangesPending200Response.js → ListPendingNotefiles200Response.js} +30 -30
  93. package/dist/model/Location.js +40 -40
  94. package/dist/model/Login200Response.js +7 -7
  95. package/dist/model/LoginRequest.js +12 -12
  96. package/dist/model/Monitor.js +100 -99
  97. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  98. package/dist/model/MqttRoute.js +68 -68
  99. package/dist/model/Note.js +10 -10
  100. package/dist/model/NotefileSchema.js +19 -18
  101. package/dist/model/NotehubRoute.js +112 -98
  102. package/dist/model/NotehubRouteSummary.js +23 -23
  103. package/dist/model/OAuth2Error.js +20 -20
  104. package/dist/model/OAuth2TokenResponse.js +23 -23
  105. package/dist/model/PersonalAccessToken.js +34 -34
  106. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  107. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  108. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  109. package/dist/model/Product.js +26 -26
  110. package/dist/model/Project.js +34 -34
  111. package/dist/model/ProjectMember.js +22 -22
  112. package/dist/model/{PostProvisionProjectDeviceRequest.js → ProvisionDeviceRequest.js} +36 -36
  113. package/dist/model/ProxyRoute.js +29 -29
  114. package/dist/model/QubitroRoute.js +33 -33
  115. package/dist/model/RadRoute.js +31 -31
  116. package/dist/model/Repository.js +22 -22
  117. package/dist/model/Role.js +9 -9
  118. package/dist/model/RouteLog.js +38 -38
  119. package/dist/model/RouteTransformSettings.js +18 -18
  120. package/dist/model/S3ArchiveRoute.js +79 -79
  121. package/dist/model/SatellitePlan.js +26 -26
  122. package/dist/model/SchemaProperty.js +38 -36
  123. package/dist/model/{HandleNoteSignal200Response.js → SignalDevice200Response.js} +21 -21
  124. package/dist/model/SimUsage.js +19 -19
  125. package/dist/model/SlackBearerNotification.js +25 -25
  126. package/dist/model/SlackRoute.js +48 -48
  127. package/dist/model/SlackWebHookNotification.js +20 -20
  128. package/dist/model/SnowflakeRoute.js +45 -45
  129. package/dist/model/SnowpipeStreamingRoute.js +223 -0
  130. package/dist/model/ThingworxRoute.js +33 -33
  131. package/dist/model/TowerLocation.js +54 -54
  132. package/dist/model/TwilioRoute.js +43 -43
  133. package/dist/model/UpdateFleetRequest.js +30 -30
  134. package/dist/model/UploadMetadata.js +64 -64
  135. package/dist/model/UsageData.js +18 -18
  136. package/dist/model/UsageEventsData.js +40 -29
  137. package/dist/model/UsageEventsResponse.js +12 -11
  138. package/dist/model/UsageRouteLogsData.js +27 -27
  139. package/dist/model/UsageSessionsData.js +27 -27
  140. package/dist/model/UserDfuStateMachine.js +20 -20
  141. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  142. package/dist/model/UserFirmwareInfo.js +12 -12
  143. package/dist/model/WebhookSettings.js +15 -15
  144. package/package.json +3 -3
@@ -6,26 +6,26 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Body = _interopRequireDefault(require("../model/Body"));
9
+ var _DeleteNotefilesRequest = _interopRequireDefault(require("../model/DeleteNotefilesRequest"));
9
10
  var _Device = _interopRequireDefault(require("../model/Device"));
10
11
  var _EnvTreeJsonNode = _interopRequireDefault(require("../model/EnvTreeJsonNode"));
11
12
  var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
12
13
  var _Error = _interopRequireDefault(require("../model/Error"));
14
+ var _GetDbNote200Response = _interopRequireDefault(require("../model/GetDbNote200Response"));
13
15
  var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariablesByPin200Response"));
14
16
  var _GetDeviceHealthLog200Response = _interopRequireDefault(require("../model/GetDeviceHealthLog200Response"));
15
- var _GetDeviceLatest200Response = _interopRequireDefault(require("../model/GetDeviceLatest200Response"));
17
+ var _GetDeviceLatestEvents200Response = _interopRequireDefault(require("../model/GetDeviceLatestEvents200Response"));
16
18
  var _GetDevicePlans200Response = _interopRequireDefault(require("../model/GetDevicePlans200Response"));
17
19
  var _GetDevicePublicKey200Response = _interopRequireDefault(require("../model/GetDevicePublicKey200Response"));
20
+ var _GetDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetDevicePublicKeys200Response"));
18
21
  var _GetDeviceSessions200Response = _interopRequireDefault(require("../model/GetDeviceSessions200Response"));
19
- var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetProjectDevicePublicKeys200Response"));
20
- var _GetProjectDevices200Response = _interopRequireDefault(require("../model/GetProjectDevices200Response"));
21
- var _HandleNoteChanges200Response = _interopRequireDefault(require("../model/HandleNoteChanges200Response"));
22
- var _HandleNoteGet200Response = _interopRequireDefault(require("../model/HandleNoteGet200Response"));
23
- var _HandleNoteSignal200Response = _interopRequireDefault(require("../model/HandleNoteSignal200Response"));
24
- var _HandleNotefileChanges200Response = _interopRequireDefault(require("../model/HandleNotefileChanges200Response"));
25
- var _HandleNotefileChangesPending200Response = _interopRequireDefault(require("../model/HandleNotefileChangesPending200Response"));
26
- var _HandleNotefileDeleteRequest = _interopRequireDefault(require("../model/HandleNotefileDeleteRequest"));
22
+ var _GetDevices200Response = _interopRequireDefault(require("../model/GetDevices200Response"));
23
+ var _GetNotefile200Response = _interopRequireDefault(require("../model/GetNotefile200Response"));
24
+ var _ListNotefiles200Response = _interopRequireDefault(require("../model/ListNotefiles200Response"));
25
+ var _ListPendingNotefiles200Response = _interopRequireDefault(require("../model/ListPendingNotefiles200Response"));
27
26
  var _Note = _interopRequireDefault(require("../model/Note"));
28
- var _PostProvisionProjectDeviceRequest = _interopRequireDefault(require("../model/PostProvisionProjectDeviceRequest"));
27
+ var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
28
+ var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
29
29
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
30
30
  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); }
31
31
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -34,7 +34,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
34
34
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
35
35
  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); } /**
36
36
  * Notehub API
37
- * The OpenAPI definition for the Notehub.io API.
37
+ * The OpenAPI definition for the Notehub.io API.
38
38
  *
39
39
  * The version of the OpenAPI document: 1.2.0
40
40
  * Contact: engineering@blues.io
@@ -45,31 +45,270 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
45
45
  *
46
46
  */
47
47
  /**
48
- * Device service.
49
- * @module api/DeviceApi
50
- * @version 2.3.0
51
- */
48
+ * Device service.
49
+ * @module api/DeviceApi
50
+ * @version 3.0.0-beta.2
51
+ */
52
52
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
53
53
  /**
54
- * Constructs a new DeviceApi.
55
- * @alias module:api/DeviceApi
56
- * @class
57
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
58
- * default to {@link module:ApiClient#instance} if unspecified.
59
- */
54
+ * Constructs a new DeviceApi.
55
+ * @alias module:api/DeviceApi
56
+ * @class
57
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
58
+ * default to {@link module:ApiClient#instance} if unspecified.
59
+ */
60
60
  function DeviceApi(apiClient) {
61
61
  _classCallCheck(this, DeviceApi);
62
62
  this.apiClient = apiClient || _ApiClient["default"].instance;
63
63
  }
64
64
 
65
65
  /**
66
- * Delete environment variable of a device
67
- * @param {String} projectOrProductUID
68
- * @param {String} deviceUID
69
- * @param {String} key The environment variable key to delete.
70
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
66
+ * Add a Note to a .db notefile
67
+ * @param {String} projectOrProductUID
68
+ * @param {String} deviceUID
69
+ * @param {String} notefileID
70
+ * @param {String} noteID
71
+ * @param {module:model/Note} note Body or payload of note to be added to the device
72
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
71
73
  */
72
74
  return _createClass(DeviceApi, [{
75
+ key: "addDbNoteWithHttpInfo",
76
+ value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
77
+ var postBody = note;
78
+ // verify the required parameter 'projectOrProductUID' is set
79
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
80
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDbNote");
81
+ }
82
+ // verify the required parameter 'deviceUID' is set
83
+ if (deviceUID === undefined || deviceUID === null) {
84
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDbNote");
85
+ }
86
+ // verify the required parameter 'notefileID' is set
87
+ if (notefileID === undefined || notefileID === null) {
88
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addDbNote");
89
+ }
90
+ // verify the required parameter 'noteID' is set
91
+ if (noteID === undefined || noteID === null) {
92
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling addDbNote");
93
+ }
94
+ // verify the required parameter 'note' is set
95
+ if (note === undefined || note === null) {
96
+ throw new _Error["default"]("Missing the required parameter 'note' when calling addDbNote");
97
+ }
98
+ var pathParams = {
99
+ 'projectOrProductUID': projectOrProductUID,
100
+ 'deviceUID': deviceUID,
101
+ 'notefileID': notefileID,
102
+ 'noteID': noteID
103
+ };
104
+ var queryParams = {};
105
+ var headerParams = {};
106
+ var formParams = {};
107
+ var authNames = ['personalAccessToken'];
108
+ var contentTypes = ['application/json'];
109
+ var accepts = ['application/json'];
110
+ var returnType = null;
111
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
112
+ }
113
+
114
+ /**
115
+ * Add a Note to a .db notefile
116
+ * @param {String} projectOrProductUID
117
+ * @param {String} deviceUID
118
+ * @param {String} notefileID
119
+ * @param {String} noteID
120
+ * @param {module:model/Note} note Body or payload of note to be added to the device
121
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
122
+ */
123
+ }, {
124
+ key: "addDbNote",
125
+ value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
126
+ return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
127
+ return response_and_data.data;
128
+ });
129
+ }
130
+
131
+ /**
132
+ * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
133
+ * @param {String} projectOrProductUID
134
+ * @param {String} deviceUID
135
+ * @param {String} notefileID
136
+ * @param {module:model/Note} note Body or payload of note to be added to the device
137
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
138
+ */
139
+ }, {
140
+ key: "addQiNoteWithHttpInfo",
141
+ value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
142
+ var postBody = note;
143
+ // verify the required parameter 'projectOrProductUID' is set
144
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
145
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
146
+ }
147
+ // verify the required parameter 'deviceUID' is set
148
+ if (deviceUID === undefined || deviceUID === null) {
149
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addQiNote");
150
+ }
151
+ // verify the required parameter 'notefileID' is set
152
+ if (notefileID === undefined || notefileID === null) {
153
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
154
+ }
155
+ // verify the required parameter 'note' is set
156
+ if (note === undefined || note === null) {
157
+ throw new _Error["default"]("Missing the required parameter 'note' when calling addQiNote");
158
+ }
159
+ var pathParams = {
160
+ 'projectOrProductUID': projectOrProductUID,
161
+ 'deviceUID': deviceUID,
162
+ 'notefileID': notefileID
163
+ };
164
+ var queryParams = {};
165
+ var headerParams = {};
166
+ var formParams = {};
167
+ var authNames = ['personalAccessToken'];
168
+ var contentTypes = ['application/json'];
169
+ var accepts = ['application/json'];
170
+ var returnType = null;
171
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
172
+ }
173
+
174
+ /**
175
+ * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
176
+ * @param {String} projectOrProductUID
177
+ * @param {String} deviceUID
178
+ * @param {String} notefileID
179
+ * @param {module:model/Note} note Body or payload of note to be added to the device
180
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
181
+ */
182
+ }, {
183
+ key: "addQiNote",
184
+ value: function addQiNote(projectOrProductUID, deviceUID, notefileID, note) {
185
+ return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
186
+ return response_and_data.data;
187
+ });
188
+ }
189
+
190
+ /**
191
+ * Delete a note from a .db notefile
192
+ * @param {String} projectOrProductUID
193
+ * @param {String} deviceUID
194
+ * @param {String} notefileID
195
+ * @param {String} noteID
196
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
197
+ */
198
+ }, {
199
+ key: "deleteDbNoteWithHttpInfo",
200
+ value: function deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
201
+ var postBody = null;
202
+ // verify the required parameter 'projectOrProductUID' is set
203
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
204
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDbNote");
205
+ }
206
+ // verify the required parameter 'deviceUID' is set
207
+ if (deviceUID === undefined || deviceUID === null) {
208
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDbNote");
209
+ }
210
+ // verify the required parameter 'notefileID' is set
211
+ if (notefileID === undefined || notefileID === null) {
212
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteDbNote");
213
+ }
214
+ // verify the required parameter 'noteID' is set
215
+ if (noteID === undefined || noteID === null) {
216
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteDbNote");
217
+ }
218
+ var pathParams = {
219
+ 'projectOrProductUID': projectOrProductUID,
220
+ 'deviceUID': deviceUID,
221
+ 'notefileID': notefileID,
222
+ 'noteID': noteID
223
+ };
224
+ var queryParams = {};
225
+ var headerParams = {};
226
+ var formParams = {};
227
+ var authNames = ['personalAccessToken'];
228
+ var contentTypes = [];
229
+ var accepts = ['application/json'];
230
+ var returnType = null;
231
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
232
+ }
233
+
234
+ /**
235
+ * Delete a note from a .db notefile
236
+ * @param {String} projectOrProductUID
237
+ * @param {String} deviceUID
238
+ * @param {String} notefileID
239
+ * @param {String} noteID
240
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
241
+ */
242
+ }, {
243
+ key: "deleteDbNote",
244
+ value: function deleteDbNote(projectOrProductUID, deviceUID, notefileID, noteID) {
245
+ return this.deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
246
+ return response_and_data.data;
247
+ });
248
+ }
249
+
250
+ /**
251
+ * Delete Device
252
+ * @param {String} projectOrProductUID
253
+ * @param {String} deviceUID
254
+ * @param {Boolean} purge
255
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
256
+ */
257
+ }, {
258
+ key: "deleteDeviceWithHttpInfo",
259
+ value: function deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge) {
260
+ var postBody = null;
261
+ // verify the required parameter 'projectOrProductUID' is set
262
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
263
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDevice");
264
+ }
265
+ // verify the required parameter 'deviceUID' is set
266
+ if (deviceUID === undefined || deviceUID === null) {
267
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDevice");
268
+ }
269
+ // verify the required parameter 'purge' is set
270
+ if (purge === undefined || purge === null) {
271
+ throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteDevice");
272
+ }
273
+ var pathParams = {
274
+ 'projectOrProductUID': projectOrProductUID,
275
+ 'deviceUID': deviceUID
276
+ };
277
+ var queryParams = {
278
+ 'purge': purge
279
+ };
280
+ var headerParams = {};
281
+ var formParams = {};
282
+ var authNames = ['personalAccessToken'];
283
+ var contentTypes = [];
284
+ var accepts = ['application/json'];
285
+ var returnType = null;
286
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
287
+ }
288
+
289
+ /**
290
+ * Delete Device
291
+ * @param {String} projectOrProductUID
292
+ * @param {String} deviceUID
293
+ * @param {Boolean} purge
294
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
295
+ */
296
+ }, {
297
+ key: "deleteDevice",
298
+ value: function deleteDevice(projectOrProductUID, deviceUID, purge) {
299
+ return this.deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge).then(function (response_and_data) {
300
+ return response_and_data.data;
301
+ });
302
+ }
303
+
304
+ /**
305
+ * Delete environment variable of a device
306
+ * @param {String} projectOrProductUID
307
+ * @param {String} deviceUID
308
+ * @param {String} key The environment variable key to delete.
309
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
310
+ */
311
+ }, {
73
312
  key: "deleteDeviceEnvironmentVariableWithHttpInfo",
74
313
  value: function deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key) {
75
314
  var postBody = null;
@@ -86,24 +325,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
86
325
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
87
326
  }
88
327
  var pathParams = {
89
- projectOrProductUID: projectOrProductUID,
90
- deviceUID: deviceUID,
91
- key: key
328
+ 'projectOrProductUID': projectOrProductUID,
329
+ 'deviceUID': deviceUID,
330
+ 'key': key
92
331
  };
93
332
  var queryParams = {};
94
333
  var headerParams = {};
95
334
  var formParams = {};
96
- var authNames = ["personalAccessToken"];
335
+ var authNames = ['personalAccessToken'];
97
336
  var contentTypes = [];
98
- var accepts = ["application/json"];
337
+ var accepts = ['application/json'];
99
338
  var returnType = _EnvironmentVariables["default"];
100
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
339
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
101
340
  }
102
341
 
103
342
  /**
104
343
  * Delete environment variable of a device
105
- * @param {String} projectOrProductUID
106
- * @param {String} deviceUID
344
+ * @param {String} projectOrProductUID
345
+ * @param {String} deviceUID
107
346
  * @param {String} key The environment variable key to delete.
108
347
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
109
348
  */
@@ -116,63 +355,61 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
116
355
  }
117
356
 
118
357
  /**
119
- * Delete Device
120
- * @param {String} projectOrProductUID
121
- * @param {String} deviceUID
122
- * @param {Boolean} purge
358
+ * Deletes Notefiles and the Notes they contain.
359
+ * @param {String} projectOrProductUID
360
+ * @param {String} deviceUID
361
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
123
362
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
124
363
  */
125
364
  }, {
126
- key: "deleteProjectDeviceWithHttpInfo",
127
- value: function deleteProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge) {
128
- var postBody = null;
365
+ key: "deleteNotefilesWithHttpInfo",
366
+ value: function deleteNotefilesWithHttpInfo(projectOrProductUID, deviceUID, deleteNotefilesRequest) {
367
+ var postBody = deleteNotefilesRequest;
129
368
  // verify the required parameter 'projectOrProductUID' is set
130
369
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
131
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProjectDevice");
370
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNotefiles");
132
371
  }
133
372
  // verify the required parameter 'deviceUID' is set
134
373
  if (deviceUID === undefined || deviceUID === null) {
135
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteProjectDevice");
374
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNotefiles");
136
375
  }
137
- // verify the required parameter 'purge' is set
138
- if (purge === undefined || purge === null) {
139
- throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
376
+ // verify the required parameter 'deleteNotefilesRequest' is set
377
+ if (deleteNotefilesRequest === undefined || deleteNotefilesRequest === null) {
378
+ throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
140
379
  }
141
380
  var pathParams = {
142
- projectOrProductUID: projectOrProductUID,
143
- deviceUID: deviceUID
144
- };
145
- var queryParams = {
146
- purge: purge
381
+ 'projectOrProductUID': projectOrProductUID,
382
+ 'deviceUID': deviceUID
147
383
  };
384
+ var queryParams = {};
148
385
  var headerParams = {};
149
386
  var formParams = {};
150
- var authNames = ["personalAccessToken"];
151
- var contentTypes = [];
152
- var accepts = ["application/json"];
387
+ var authNames = ['personalAccessToken'];
388
+ var contentTypes = ['application/json'];
389
+ var accepts = ['application/json'];
153
390
  var returnType = null;
154
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
391
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
155
392
  }
156
393
 
157
394
  /**
158
- * Delete Device
159
- * @param {String} projectOrProductUID
160
- * @param {String} deviceUID
161
- * @param {Boolean} purge
395
+ * Deletes Notefiles and the Notes they contain.
396
+ * @param {String} projectOrProductUID
397
+ * @param {String} deviceUID
398
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
162
399
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
163
400
  */
164
401
  }, {
165
- key: "deleteProjectDevice",
166
- value: function deleteProjectDevice(projectOrProductUID, deviceUID, purge) {
167
- return this.deleteProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge).then(function (response_and_data) {
402
+ key: "deleteNotefiles",
403
+ value: function deleteNotefiles(projectOrProductUID, deviceUID, deleteNotefilesRequest) {
404
+ return this.deleteNotefilesWithHttpInfo(projectOrProductUID, deviceUID, deleteNotefilesRequest).then(function (response_and_data) {
168
405
  return response_and_data.data;
169
406
  });
170
407
  }
171
408
 
172
409
  /**
173
410
  * Disable Device
174
- * @param {String} projectOrProductUID
175
- * @param {String} deviceUID
411
+ * @param {String} projectOrProductUID
412
+ * @param {String} deviceUID
176
413
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
177
414
  */
178
415
  }, {
@@ -188,23 +425,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
188
425
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
189
426
  }
190
427
  var pathParams = {
191
- projectOrProductUID: projectOrProductUID,
192
- deviceUID: deviceUID
428
+ 'projectOrProductUID': projectOrProductUID,
429
+ 'deviceUID': deviceUID
193
430
  };
194
431
  var queryParams = {};
195
432
  var headerParams = {};
196
433
  var formParams = {};
197
- var authNames = ["personalAccessToken"];
434
+ var authNames = ['personalAccessToken'];
198
435
  var contentTypes = [];
199
- var accepts = ["application/json"];
436
+ var accepts = ['application/json'];
200
437
  var returnType = null;
201
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
438
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
202
439
  }
203
440
 
204
441
  /**
205
442
  * Disable Device
206
- * @param {String} projectOrProductUID
207
- * @param {String} deviceUID
443
+ * @param {String} projectOrProductUID
444
+ * @param {String} deviceUID
208
445
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
209
446
  */
210
447
  }, {
@@ -217,8 +454,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
217
454
 
218
455
  /**
219
456
  * Disable Connectivity Assurance
220
- * @param {String} projectOrProductUID
221
- * @param {String} deviceUID
457
+ * @param {String} projectOrProductUID
458
+ * @param {String} deviceUID
222
459
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
223
460
  */
224
461
  }, {
@@ -234,23 +471,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
234
471
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
235
472
  }
236
473
  var pathParams = {
237
- projectOrProductUID: projectOrProductUID,
238
- deviceUID: deviceUID
474
+ 'projectOrProductUID': projectOrProductUID,
475
+ 'deviceUID': deviceUID
239
476
  };
240
477
  var queryParams = {};
241
478
  var headerParams = {};
242
479
  var formParams = {};
243
- var authNames = ["personalAccessToken"];
480
+ var authNames = ['personalAccessToken'];
244
481
  var contentTypes = [];
245
- var accepts = ["application/json"];
482
+ var accepts = ['application/json'];
246
483
  var returnType = null;
247
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
484
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
248
485
  }
249
486
 
250
487
  /**
251
488
  * Disable Connectivity Assurance
252
- * @param {String} projectOrProductUID
253
- * @param {String} deviceUID
489
+ * @param {String} projectOrProductUID
490
+ * @param {String} deviceUID
254
491
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
255
492
  */
256
493
  }, {
@@ -263,8 +500,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
263
500
 
264
501
  /**
265
502
  * Enable Device
266
- * @param {String} projectOrProductUID
267
- * @param {String} deviceUID
503
+ * @param {String} projectOrProductUID
504
+ * @param {String} deviceUID
268
505
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
269
506
  */
270
507
  }, {
@@ -280,23 +517,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
280
517
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
281
518
  }
282
519
  var pathParams = {
283
- projectOrProductUID: projectOrProductUID,
284
- deviceUID: deviceUID
520
+ 'projectOrProductUID': projectOrProductUID,
521
+ 'deviceUID': deviceUID
285
522
  };
286
523
  var queryParams = {};
287
524
  var headerParams = {};
288
525
  var formParams = {};
289
- var authNames = ["personalAccessToken"];
526
+ var authNames = ['personalAccessToken'];
290
527
  var contentTypes = [];
291
- var accepts = ["application/json"];
528
+ var accepts = ['application/json'];
292
529
  var returnType = null;
293
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
530
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
294
531
  }
295
532
 
296
533
  /**
297
534
  * Enable Device
298
- * @param {String} projectOrProductUID
299
- * @param {String} deviceUID
535
+ * @param {String} projectOrProductUID
536
+ * @param {String} deviceUID
300
537
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
301
538
  */
302
539
  }, {
@@ -309,8 +546,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
309
546
 
310
547
  /**
311
548
  * Enable Connectivity Assurance
312
- * @param {String} projectOrProductUID
313
- * @param {String} deviceUID
549
+ * @param {String} projectOrProductUID
550
+ * @param {String} deviceUID
314
551
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
315
552
  */
316
553
  }, {
@@ -326,23 +563,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
326
563
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
327
564
  }
328
565
  var pathParams = {
329
- projectOrProductUID: projectOrProductUID,
330
- deviceUID: deviceUID
566
+ 'projectOrProductUID': projectOrProductUID,
567
+ 'deviceUID': deviceUID
331
568
  };
332
569
  var queryParams = {};
333
570
  var headerParams = {};
334
571
  var formParams = {};
335
- var authNames = ["personalAccessToken"];
572
+ var authNames = ['personalAccessToken'];
336
573
  var contentTypes = [];
337
- var accepts = ["application/json"];
574
+ var accepts = ['application/json'];
338
575
  var returnType = null;
339
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
576
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
340
577
  }
341
578
 
342
579
  /**
343
580
  * Enable Connectivity Assurance
344
- * @param {String} projectOrProductUID
345
- * @param {String} deviceUID
581
+ * @param {String} projectOrProductUID
582
+ * @param {String} deviceUID
346
583
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
347
584
  */
348
585
  }, {
@@ -353,10 +590,80 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
353
590
  });
354
591
  }
355
592
 
593
+ /**
594
+ * Get a note from a .db notefile
595
+ * @param {String} projectOrProductUID
596
+ * @param {String} deviceUID
597
+ * @param {String} notefileID
598
+ * @param {String} noteID
599
+ * @param {Object} opts Optional parameters
600
+ * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
601
+ * @param {Boolean} opts.deleted Whether to return deleted notes
602
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDbNote200Response} and HTTP response
603
+ */
604
+ }, {
605
+ key: "getDbNoteWithHttpInfo",
606
+ value: function getDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
607
+ opts = opts || {};
608
+ var postBody = null;
609
+ // verify the required parameter 'projectOrProductUID' is set
610
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
611
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDbNote");
612
+ }
613
+ // verify the required parameter 'deviceUID' is set
614
+ if (deviceUID === undefined || deviceUID === null) {
615
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDbNote");
616
+ }
617
+ // verify the required parameter 'notefileID' is set
618
+ if (notefileID === undefined || notefileID === null) {
619
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getDbNote");
620
+ }
621
+ // verify the required parameter 'noteID' is set
622
+ if (noteID === undefined || noteID === null) {
623
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
624
+ }
625
+ var pathParams = {
626
+ 'projectOrProductUID': projectOrProductUID,
627
+ 'deviceUID': deviceUID,
628
+ 'notefileID': notefileID,
629
+ 'noteID': noteID
630
+ };
631
+ var queryParams = {
632
+ 'delete': opts['_delete'],
633
+ 'deleted': opts['deleted']
634
+ };
635
+ var headerParams = {};
636
+ var formParams = {};
637
+ var authNames = ['personalAccessToken'];
638
+ var contentTypes = [];
639
+ var accepts = ['application/json'];
640
+ var returnType = _GetDbNote200Response["default"];
641
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
642
+ }
643
+
644
+ /**
645
+ * Get a note from a .db notefile
646
+ * @param {String} projectOrProductUID
647
+ * @param {String} deviceUID
648
+ * @param {String} notefileID
649
+ * @param {String} noteID
650
+ * @param {Object} opts Optional parameters
651
+ * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
652
+ * @param {Boolean} opts.deleted Whether to return deleted notes
653
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDbNote200Response}
654
+ */
655
+ }, {
656
+ key: "getDbNote",
657
+ value: function getDbNote(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
658
+ return this.getDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts).then(function (response_and_data) {
659
+ return response_and_data.data;
660
+ });
661
+ }
662
+
356
663
  /**
357
664
  * Get Device
358
- * @param {String} projectOrProductUID
359
- * @param {String} deviceUID
665
+ * @param {String} projectOrProductUID
666
+ * @param {String} deviceUID
360
667
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
361
668
  */
362
669
  }, {
@@ -372,23 +679,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
372
679
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
373
680
  }
374
681
  var pathParams = {
375
- projectOrProductUID: projectOrProductUID,
376
- deviceUID: deviceUID
682
+ 'projectOrProductUID': projectOrProductUID,
683
+ 'deviceUID': deviceUID
377
684
  };
378
685
  var queryParams = {};
379
686
  var headerParams = {};
380
687
  var formParams = {};
381
- var authNames = ["personalAccessToken"];
688
+ var authNames = ['personalAccessToken'];
382
689
  var contentTypes = [];
383
- var accepts = ["application/json"];
690
+ var accepts = ['application/json'];
384
691
  var returnType = _Device["default"];
385
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
692
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
386
693
  }
387
694
 
388
695
  /**
389
696
  * Get Device
390
- * @param {String} projectOrProductUID
391
- * @param {String} deviceUID
697
+ * @param {String} projectOrProductUID
698
+ * @param {String} deviceUID
392
699
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
393
700
  */
394
701
  }, {
@@ -401,8 +708,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
401
708
 
402
709
  /**
403
710
  * Get environment variable hierarchy for a device
404
- * @param {String} projectOrProductUID
405
- * @param {String} deviceUID
711
+ * @param {String} projectOrProductUID
712
+ * @param {String} deviceUID
406
713
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
407
714
  */
408
715
  }, {
@@ -418,23 +725,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
418
725
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
419
726
  }
420
727
  var pathParams = {
421
- projectOrProductUID: projectOrProductUID,
422
- deviceUID: deviceUID
728
+ 'projectOrProductUID': projectOrProductUID,
729
+ 'deviceUID': deviceUID
423
730
  };
424
731
  var queryParams = {};
425
732
  var headerParams = {};
426
733
  var formParams = {};
427
- var authNames = ["personalAccessToken"];
734
+ var authNames = ['personalAccessToken'];
428
735
  var contentTypes = [];
429
- var accepts = ["application/json"];
736
+ var accepts = ['application/json'];
430
737
  var returnType = _EnvTreeJsonNode["default"];
431
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
738
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
432
739
  }
433
740
 
434
741
  /**
435
742
  * Get environment variable hierarchy for a device
436
- * @param {String} projectOrProductUID
437
- * @param {String} deviceUID
743
+ * @param {String} projectOrProductUID
744
+ * @param {String} deviceUID
438
745
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
439
746
  */
440
747
  }, {
@@ -447,8 +754,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
447
754
 
448
755
  /**
449
756
  * Get environment variables of a device
450
- * @param {String} projectOrProductUID
451
- * @param {String} deviceUID
757
+ * @param {String} projectOrProductUID
758
+ * @param {String} deviceUID
452
759
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
453
760
  */
454
761
  }, {
@@ -464,23 +771,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
464
771
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
465
772
  }
466
773
  var pathParams = {
467
- projectOrProductUID: projectOrProductUID,
468
- deviceUID: deviceUID
774
+ 'projectOrProductUID': projectOrProductUID,
775
+ 'deviceUID': deviceUID
469
776
  };
470
777
  var queryParams = {};
471
778
  var headerParams = {};
472
779
  var formParams = {};
473
- var authNames = ["personalAccessToken"];
780
+ var authNames = ['personalAccessToken'];
474
781
  var contentTypes = [];
475
- var accepts = ["application/json"];
782
+ var accepts = ['application/json'];
476
783
  var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
477
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
784
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
478
785
  }
479
786
 
480
787
  /**
481
788
  * Get environment variables of a device
482
- * @param {String} projectOrProductUID
483
- * @param {String} deviceUID
789
+ * @param {String} projectOrProductUID
790
+ * @param {String} deviceUID
484
791
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
485
792
  */
486
793
  }, {
@@ -493,8 +800,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
493
800
 
494
801
  /**
495
802
  * Get environment variables of a device with device pin authorization
496
- * @param {String} productUID
497
- * @param {String} deviceUID
803
+ * @param {String} productUID
804
+ * @param {String} deviceUID
498
805
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
499
806
  */
500
807
  }, {
@@ -510,23 +817,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
510
817
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
511
818
  }
512
819
  var pathParams = {
513
- productUID: productUID,
514
- deviceUID: deviceUID
820
+ 'productUID': productUID,
821
+ 'deviceUID': deviceUID
515
822
  };
516
823
  var queryParams = {};
517
824
  var headerParams = {};
518
825
  var formParams = {};
519
- var authNames = ["pin"];
826
+ var authNames = ['pin'];
520
827
  var contentTypes = [];
521
- var accepts = ["application/json"];
828
+ var accepts = ['application/json'];
522
829
  var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
523
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
830
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
524
831
  }
525
832
 
526
833
  /**
527
834
  * Get environment variables of a device with device pin authorization
528
- * @param {String} productUID
529
- * @param {String} deviceUID
835
+ * @param {String} productUID
836
+ * @param {String} deviceUID
530
837
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
531
838
  */
532
839
  }, {
@@ -539,8 +846,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
539
846
 
540
847
  /**
541
848
  * Get Device Health Log
542
- * @param {String} projectOrProductUID
543
- * @param {String} deviceUID
849
+ * @param {String} projectOrProductUID
850
+ * @param {String} deviceUID
544
851
  * @param {Object} opts Optional parameters
545
852
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
546
853
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -561,27 +868,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
561
868
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
562
869
  }
563
870
  var pathParams = {
564
- projectOrProductUID: projectOrProductUID,
565
- deviceUID: deviceUID
871
+ 'projectOrProductUID': projectOrProductUID,
872
+ 'deviceUID': deviceUID
566
873
  };
567
874
  var queryParams = {
568
- startDate: opts["startDate"],
569
- endDate: opts["endDate"],
570
- log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
875
+ 'startDate': opts['startDate'],
876
+ 'endDate': opts['endDate'],
877
+ 'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
571
878
  };
572
879
  var headerParams = {};
573
880
  var formParams = {};
574
- var authNames = ["personalAccessToken"];
881
+ var authNames = ['personalAccessToken'];
575
882
  var contentTypes = [];
576
- var accepts = ["application/json"];
883
+ var accepts = ['application/json'];
577
884
  var returnType = _GetDeviceHealthLog200Response["default"];
578
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
885
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
579
886
  }
580
887
 
581
888
  /**
582
889
  * Get Device Health Log
583
- * @param {String} projectOrProductUID
584
- * @param {String} deviceUID
890
+ * @param {String} projectOrProductUID
891
+ * @param {String} deviceUID
585
892
  * @param {Object} opts Optional parameters
586
893
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
587
894
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -598,54 +905,54 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
598
905
 
599
906
  /**
600
907
  * Get Device Latest Events
601
- * @param {String} projectOrProductUID
602
- * @param {String} deviceUID
603
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
908
+ * @param {String} projectOrProductUID
909
+ * @param {String} deviceUID
910
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
604
911
  */
605
912
  }, {
606
- key: "getDeviceLatestWithHttpInfo",
607
- value: function getDeviceLatestWithHttpInfo(projectOrProductUID, deviceUID) {
913
+ key: "getDeviceLatestEventsWithHttpInfo",
914
+ value: function getDeviceLatestEventsWithHttpInfo(projectOrProductUID, deviceUID) {
608
915
  var postBody = null;
609
916
  // verify the required parameter 'projectOrProductUID' is set
610
917
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
611
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceLatest");
918
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceLatestEvents");
612
919
  }
613
920
  // verify the required parameter 'deviceUID' is set
614
921
  if (deviceUID === undefined || deviceUID === null) {
615
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
922
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
616
923
  }
617
924
  var pathParams = {
618
- projectOrProductUID: projectOrProductUID,
619
- deviceUID: deviceUID
925
+ 'projectOrProductUID': projectOrProductUID,
926
+ 'deviceUID': deviceUID
620
927
  };
621
928
  var queryParams = {};
622
929
  var headerParams = {};
623
930
  var formParams = {};
624
- var authNames = ["personalAccessToken"];
931
+ var authNames = ['personalAccessToken'];
625
932
  var contentTypes = [];
626
- var accepts = ["application/json"];
627
- var returnType = _GetDeviceLatest200Response["default"];
628
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
933
+ var accepts = ['application/json'];
934
+ var returnType = _GetDeviceLatestEvents200Response["default"];
935
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
629
936
  }
630
937
 
631
938
  /**
632
939
  * Get Device Latest Events
633
- * @param {String} projectOrProductUID
634
- * @param {String} deviceUID
635
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
940
+ * @param {String} projectOrProductUID
941
+ * @param {String} deviceUID
942
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
636
943
  */
637
944
  }, {
638
- key: "getDeviceLatest",
639
- value: function getDeviceLatest(projectOrProductUID, deviceUID) {
640
- return this.getDeviceLatestWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
945
+ key: "getDeviceLatestEvents",
946
+ value: function getDeviceLatestEvents(projectOrProductUID, deviceUID) {
947
+ return this.getDeviceLatestEventsWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
641
948
  return response_and_data.data;
642
949
  });
643
950
  }
644
951
 
645
952
  /**
646
953
  * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
647
- * @param {String} projectOrProductUID
648
- * @param {String} deviceUID
954
+ * @param {String} projectOrProductUID
955
+ * @param {String} deviceUID
649
956
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
650
957
  */
651
958
  }, {
@@ -661,23 +968,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
661
968
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
662
969
  }
663
970
  var pathParams = {
664
- projectOrProductUID: projectOrProductUID,
665
- deviceUID: deviceUID
971
+ 'projectOrProductUID': projectOrProductUID,
972
+ 'deviceUID': deviceUID
666
973
  };
667
974
  var queryParams = {};
668
975
  var headerParams = {};
669
976
  var formParams = {};
670
- var authNames = ["personalAccessToken"];
977
+ var authNames = ['personalAccessToken'];
671
978
  var contentTypes = [];
672
- var accepts = ["application/json"];
979
+ var accepts = ['application/json'];
673
980
  var returnType = _GetDevicePlans200Response["default"];
674
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
981
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
675
982
  }
676
983
 
677
984
  /**
678
985
  * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
679
- * @param {String} projectOrProductUID
680
- * @param {String} deviceUID
986
+ * @param {String} projectOrProductUID
987
+ * @param {String} deviceUID
681
988
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
682
989
  */
683
990
  }, {
@@ -690,8 +997,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
690
997
 
691
998
  /**
692
999
  * Get Device Public Key
693
- * @param {String} projectOrProductUID
694
- * @param {String} deviceUID
1000
+ * @param {String} projectOrProductUID
1001
+ * @param {String} deviceUID
695
1002
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
696
1003
  */
697
1004
  }, {
@@ -707,23 +1014,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
707
1014
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
708
1015
  }
709
1016
  var pathParams = {
710
- projectOrProductUID: projectOrProductUID,
711
- deviceUID: deviceUID
1017
+ 'projectOrProductUID': projectOrProductUID,
1018
+ 'deviceUID': deviceUID
712
1019
  };
713
1020
  var queryParams = {};
714
1021
  var headerParams = {};
715
1022
  var formParams = {};
716
- var authNames = ["personalAccessToken"];
1023
+ var authNames = ['personalAccessToken'];
717
1024
  var contentTypes = [];
718
- var accepts = ["application/json"];
1025
+ var accepts = ['application/json'];
719
1026
  var returnType = _GetDevicePublicKey200Response["default"];
720
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1027
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
721
1028
  }
722
1029
 
723
1030
  /**
724
1031
  * Get Device Public Key
725
- * @param {String} projectOrProductUID
726
- * @param {String} deviceUID
1032
+ * @param {String} projectOrProductUID
1033
+ * @param {String} deviceUID
727
1034
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
728
1035
  */
729
1036
  }, {
@@ -735,196 +1042,196 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
735
1042
  }
736
1043
 
737
1044
  /**
738
- * Get Device Sessions
739
- * @param {String} projectOrProductUID
740
- * @param {String} deviceUID
1045
+ * Get Device Public Keys of a Project
1046
+ * @param {String} projectOrProductUID
741
1047
  * @param {Object} opts Optional parameters
742
1048
  * @param {Number} opts.pageSize (default to 50)
743
1049
  * @param {Number} opts.pageNum (default to 1)
744
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
745
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
746
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
1050
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKeys200Response} and HTTP response
747
1051
  */
748
1052
  }, {
749
- key: "getDeviceSessionsWithHttpInfo",
750
- value: function getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts) {
1053
+ key: "getDevicePublicKeysWithHttpInfo",
1054
+ value: function getDevicePublicKeysWithHttpInfo(projectOrProductUID, opts) {
751
1055
  opts = opts || {};
752
1056
  var postBody = null;
753
1057
  // verify the required parameter 'projectOrProductUID' is set
754
1058
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
755
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceSessions");
756
- }
757
- // verify the required parameter 'deviceUID' is set
758
- if (deviceUID === undefined || deviceUID === null) {
759
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
1059
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
760
1060
  }
761
1061
  var pathParams = {
762
- projectOrProductUID: projectOrProductUID,
763
- deviceUID: deviceUID
1062
+ 'projectOrProductUID': projectOrProductUID
764
1063
  };
765
1064
  var queryParams = {
766
- pageSize: opts["pageSize"],
767
- pageNum: opts["pageNum"],
768
- startDate: opts["startDate"],
769
- endDate: opts["endDate"]
1065
+ 'pageSize': opts['pageSize'],
1066
+ 'pageNum': opts['pageNum']
770
1067
  };
771
1068
  var headerParams = {};
772
1069
  var formParams = {};
773
- var authNames = ["personalAccessToken"];
1070
+ var authNames = ['personalAccessToken'];
774
1071
  var contentTypes = [];
775
- var accepts = ["application/json"];
776
- var returnType = _GetDeviceSessions200Response["default"];
777
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1072
+ var accepts = ['application/json'];
1073
+ var returnType = _GetDevicePublicKeys200Response["default"];
1074
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
778
1075
  }
779
1076
 
780
1077
  /**
781
- * Get Device Sessions
782
- * @param {String} projectOrProductUID
783
- * @param {String} deviceUID
1078
+ * Get Device Public Keys of a Project
1079
+ * @param {String} projectOrProductUID
784
1080
  * @param {Object} opts Optional parameters
785
1081
  * @param {Number} opts.pageSize (default to 50)
786
1082
  * @param {Number} opts.pageNum (default to 1)
787
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
788
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
789
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
1083
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKeys200Response}
790
1084
  */
791
1085
  }, {
792
- key: "getDeviceSessions",
793
- value: function getDeviceSessions(projectOrProductUID, deviceUID, opts) {
794
- return this.getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
1086
+ key: "getDevicePublicKeys",
1087
+ value: function getDevicePublicKeys(projectOrProductUID, opts) {
1088
+ return this.getDevicePublicKeysWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
795
1089
  return response_and_data.data;
796
1090
  });
797
1091
  }
798
1092
 
799
1093
  /**
800
- * Get Device Public Keys of a Project
801
- * @param {String} projectOrProductUID
1094
+ * Get Device Sessions
1095
+ * @param {String} projectOrProductUID
1096
+ * @param {String} deviceUID
802
1097
  * @param {Object} opts Optional parameters
803
1098
  * @param {Number} opts.pageSize (default to 50)
804
1099
  * @param {Number} opts.pageNum (default to 1)
805
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevicePublicKeys200Response} and HTTP response
1100
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1101
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1102
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
806
1103
  */
807
1104
  }, {
808
- key: "getProjectDevicePublicKeysWithHttpInfo",
809
- value: function getProjectDevicePublicKeysWithHttpInfo(projectOrProductUID, opts) {
1105
+ key: "getDeviceSessionsWithHttpInfo",
1106
+ value: function getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts) {
810
1107
  opts = opts || {};
811
1108
  var postBody = null;
812
1109
  // verify the required parameter 'projectOrProductUID' is set
813
1110
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
814
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevicePublicKeys");
1111
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceSessions");
1112
+ }
1113
+ // verify the required parameter 'deviceUID' is set
1114
+ if (deviceUID === undefined || deviceUID === null) {
1115
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
815
1116
  }
816
1117
  var pathParams = {
817
- projectOrProductUID: projectOrProductUID
1118
+ 'projectOrProductUID': projectOrProductUID,
1119
+ 'deviceUID': deviceUID
818
1120
  };
819
1121
  var queryParams = {
820
- pageSize: opts["pageSize"],
821
- pageNum: opts["pageNum"]
1122
+ 'pageSize': opts['pageSize'],
1123
+ 'pageNum': opts['pageNum'],
1124
+ 'startDate': opts['startDate'],
1125
+ 'endDate': opts['endDate']
822
1126
  };
823
1127
  var headerParams = {};
824
1128
  var formParams = {};
825
- var authNames = ["personalAccessToken"];
1129
+ var authNames = ['personalAccessToken'];
826
1130
  var contentTypes = [];
827
- var accepts = ["application/json"];
828
- var returnType = _GetProjectDevicePublicKeys200Response["default"];
829
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1131
+ var accepts = ['application/json'];
1132
+ var returnType = _GetDeviceSessions200Response["default"];
1133
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
830
1134
  }
831
1135
 
832
1136
  /**
833
- * Get Device Public Keys of a Project
834
- * @param {String} projectOrProductUID
1137
+ * Get Device Sessions
1138
+ * @param {String} projectOrProductUID
1139
+ * @param {String} deviceUID
835
1140
  * @param {Object} opts Optional parameters
836
1141
  * @param {Number} opts.pageSize (default to 50)
837
1142
  * @param {Number} opts.pageNum (default to 1)
838
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevicePublicKeys200Response}
1143
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1144
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1145
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
839
1146
  */
840
1147
  }, {
841
- key: "getProjectDevicePublicKeys",
842
- value: function getProjectDevicePublicKeys(projectOrProductUID, opts) {
843
- return this.getProjectDevicePublicKeysWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1148
+ key: "getDeviceSessions",
1149
+ value: function getDeviceSessions(projectOrProductUID, deviceUID, opts) {
1150
+ return this.getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
844
1151
  return response_and_data.data;
845
1152
  });
846
1153
  }
847
1154
 
848
1155
  /**
849
1156
  * Get Devices of a Project
850
- * @param {String} projectOrProductUID
1157
+ * @param {String} projectOrProductUID
851
1158
  * @param {Object} opts Optional parameters
852
1159
  * @param {Number} opts.pageSize (default to 50)
853
1160
  * @param {Number} opts.pageNum (default to 1)
854
1161
  * @param {Array.<String>} opts.deviceUID A Device UID.
855
1162
  * @param {Array.<String>} opts.tag Tag filter
856
1163
  * @param {Array.<String>} opts.serialNumber Serial number filter
857
- * @param {Array.<String>} opts.fleetUID
1164
+ * @param {Array.<String>} opts.fleetUID
858
1165
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
859
1166
  * @param {Array.<String>} opts.location Location filter
860
1167
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
861
- * @param {Array.<String>} opts.productUID
1168
+ * @param {Array.<String>} opts.productUID
862
1169
  * @param {Array.<String>} opts.sku SKU filter
863
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
1170
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
864
1171
  */
865
1172
  }, {
866
- key: "getProjectDevicesWithHttpInfo",
867
- value: function getProjectDevicesWithHttpInfo(projectOrProductUID, opts) {
1173
+ key: "getDevicesWithHttpInfo",
1174
+ value: function getDevicesWithHttpInfo(projectOrProductUID, opts) {
868
1175
  opts = opts || {};
869
1176
  var postBody = null;
870
1177
  // verify the required parameter 'projectOrProductUID' is set
871
1178
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
872
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevices");
1179
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevices");
873
1180
  }
874
1181
  var pathParams = {
875
- projectOrProductUID: projectOrProductUID
1182
+ 'projectOrProductUID': projectOrProductUID
876
1183
  };
877
1184
  var queryParams = {
878
- pageSize: opts["pageSize"],
879
- pageNum: opts["pageNum"],
880
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
881
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
882
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
883
- fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
884
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
885
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
886
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
887
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
888
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
1185
+ 'pageSize': opts['pageSize'],
1186
+ 'pageNum': opts['pageNum'],
1187
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1188
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1189
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1190
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
1191
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1192
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1193
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1194
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1195
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
889
1196
  };
890
1197
  var headerParams = {};
891
1198
  var formParams = {};
892
- var authNames = ["personalAccessToken"];
1199
+ var authNames = ['personalAccessToken'];
893
1200
  var contentTypes = [];
894
- var accepts = ["application/json"];
895
- var returnType = _GetProjectDevices200Response["default"];
896
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1201
+ var accepts = ['application/json'];
1202
+ var returnType = _GetDevices200Response["default"];
1203
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
897
1204
  }
898
1205
 
899
1206
  /**
900
1207
  * Get Devices of a Project
901
- * @param {String} projectOrProductUID
1208
+ * @param {String} projectOrProductUID
902
1209
  * @param {Object} opts Optional parameters
903
1210
  * @param {Number} opts.pageSize (default to 50)
904
1211
  * @param {Number} opts.pageNum (default to 1)
905
1212
  * @param {Array.<String>} opts.deviceUID A Device UID.
906
1213
  * @param {Array.<String>} opts.tag Tag filter
907
1214
  * @param {Array.<String>} opts.serialNumber Serial number filter
908
- * @param {Array.<String>} opts.fleetUID
1215
+ * @param {Array.<String>} opts.fleetUID
909
1216
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
910
1217
  * @param {Array.<String>} opts.location Location filter
911
1218
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
912
- * @param {Array.<String>} opts.productUID
1219
+ * @param {Array.<String>} opts.productUID
913
1220
  * @param {Array.<String>} opts.sku SKU filter
914
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
1221
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
915
1222
  */
916
1223
  }, {
917
- key: "getProjectDevices",
918
- value: function getProjectDevices(projectOrProductUID, opts) {
919
- return this.getProjectDevicesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1224
+ key: "getDevices",
1225
+ value: function getDevices(projectOrProductUID, opts) {
1226
+ return this.getDevicesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
920
1227
  return response_and_data.data;
921
1228
  });
922
1229
  }
923
1230
 
924
1231
  /**
925
1232
  * Get Devices of a Fleet within a Project
926
- * @param {String} projectOrProductUID
927
- * @param {String} fleetUID
1233
+ * @param {String} projectOrProductUID
1234
+ * @param {String} fleetUID
928
1235
  * @param {Object} opts Optional parameters
929
1236
  * @param {Number} opts.pageSize (default to 50)
930
1237
  * @param {Number} opts.pageNum (default to 1)
@@ -934,52 +1241,52 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
934
1241
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
935
1242
  * @param {Array.<String>} opts.location Location filter
936
1243
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
937
- * @param {Array.<String>} opts.productUID
1244
+ * @param {Array.<String>} opts.productUID
938
1245
  * @param {Array.<String>} opts.sku SKU filter
939
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
1246
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
940
1247
  */
941
1248
  }, {
942
- key: "getProjectFleetDevicesWithHttpInfo",
943
- value: function getProjectFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts) {
1249
+ key: "getFleetDevicesWithHttpInfo",
1250
+ value: function getFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts) {
944
1251
  opts = opts || {};
945
1252
  var postBody = null;
946
1253
  // verify the required parameter 'projectOrProductUID' is set
947
1254
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
948
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleetDevices");
1255
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetDevices");
949
1256
  }
950
1257
  // verify the required parameter 'fleetUID' is set
951
1258
  if (fleetUID === undefined || fleetUID === null) {
952
- throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
1259
+ throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetDevices");
953
1260
  }
954
1261
  var pathParams = {
955
- projectOrProductUID: projectOrProductUID,
956
- fleetUID: fleetUID
1262
+ 'projectOrProductUID': projectOrProductUID,
1263
+ 'fleetUID': fleetUID
957
1264
  };
958
1265
  var queryParams = {
959
- pageSize: opts["pageSize"],
960
- pageNum: opts["pageNum"],
961
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
962
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
963
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
964
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
965
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
966
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
967
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
968
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
1266
+ 'pageSize': opts['pageSize'],
1267
+ 'pageNum': opts['pageNum'],
1268
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1269
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1270
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1271
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1272
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1273
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1274
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1275
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
969
1276
  };
970
1277
  var headerParams = {};
971
1278
  var formParams = {};
972
- var authNames = ["personalAccessToken"];
1279
+ var authNames = ['personalAccessToken'];
973
1280
  var contentTypes = [];
974
- var accepts = ["application/json"];
975
- var returnType = _GetProjectDevices200Response["default"];
976
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1281
+ var accepts = ['application/json'];
1282
+ var returnType = _GetDevices200Response["default"];
1283
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
977
1284
  }
978
1285
 
979
1286
  /**
980
1287
  * Get Devices of a Fleet within a Project
981
- * @param {String} projectOrProductUID
982
- * @param {String} fleetUID
1288
+ * @param {String} projectOrProductUID
1289
+ * @param {String} fleetUID
983
1290
  * @param {Object} opts Optional parameters
984
1291
  * @param {Number} opts.pageSize (default to 50)
985
1292
  * @param {Number} opts.pageNum (default to 1)
@@ -989,760 +1296,465 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
989
1296
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
990
1297
  * @param {Array.<String>} opts.location Location filter
991
1298
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
992
- * @param {Array.<String>} opts.productUID
1299
+ * @param {Array.<String>} opts.productUID
993
1300
  * @param {Array.<String>} opts.sku SKU filter
994
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
1301
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
995
1302
  */
996
1303
  }, {
997
- key: "getProjectFleetDevices",
998
- value: function getProjectFleetDevices(projectOrProductUID, fleetUID, opts) {
999
- return this.getProjectFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
1304
+ key: "getFleetDevices",
1305
+ value: function getFleetDevices(projectOrProductUID, fleetUID, opts) {
1306
+ return this.getFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
1000
1307
  return response_and_data.data;
1001
1308
  });
1002
1309
  }
1003
1310
 
1004
1311
  /**
1005
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1006
- * @param {String} projectOrProductUID
1007
- * @param {String} deviceUID
1008
- * @param {String} notefileID
1009
- * @param {module:model/Note} note Body or payload of note to be added to the device
1010
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1011
- */
1012
- }, {
1013
- key: "handleNoteAddWithHttpInfo",
1014
- value: function handleNoteAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
1015
- var postBody = note;
1016
- // verify the required parameter 'projectOrProductUID' is set
1017
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1018
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteAdd");
1019
- }
1020
- // verify the required parameter 'deviceUID' is set
1021
- if (deviceUID === undefined || deviceUID === null) {
1022
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteAdd");
1023
- }
1024
- // verify the required parameter 'notefileID' is set
1025
- if (notefileID === undefined || notefileID === null) {
1026
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteAdd");
1027
- }
1028
- // verify the required parameter 'note' is set
1029
- if (note === undefined || note === null) {
1030
- throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
1031
- }
1032
- var pathParams = {
1033
- projectOrProductUID: projectOrProductUID,
1034
- deviceUID: deviceUID,
1035
- notefileID: notefileID
1036
- };
1037
- var queryParams = {};
1038
- var headerParams = {};
1039
- var formParams = {};
1040
- var authNames = ["personalAccessToken"];
1041
- var contentTypes = ["application/json"];
1042
- var accepts = ["application/json"];
1043
- var returnType = null;
1044
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1045
- }
1046
-
1047
- /**
1048
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1049
- * @param {String} projectOrProductUID
1050
- * @param {String} deviceUID
1051
- * @param {String} notefileID
1052
- * @param {module:model/Note} note Body or payload of note to be added to the device
1053
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1054
- */
1055
- }, {
1056
- key: "handleNoteAdd",
1057
- value: function handleNoteAdd(projectOrProductUID, deviceUID, notefileID, note) {
1058
- return this.handleNoteAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
1059
- return response_and_data.data;
1060
- });
1061
- }
1062
-
1063
- /**
1064
- * Incrementally retrieve changes within a specific Notefile.
1065
- * @param {String} projectOrProductUID
1066
- * @param {String} deviceUID
1067
- * @param {String} notefileID
1312
+ * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1313
+ * @param {String} projectOrProductUID
1314
+ * @param {String} deviceUID
1315
+ * @param {String} notefileID
1068
1316
  * @param {Object} opts Optional parameters
1317
+ * @param {String} opts.tracker The change tracker ID.
1069
1318
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1319
+ * @param {Boolean} opts.start true to reset the tracker to the beginning.
1320
+ * @param {Boolean} opts.stop true to delete the tracker.
1070
1321
  * @param {Boolean} opts.deleted true to return deleted notes.
1071
1322
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1072
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteChanges200Response} and HTTP response
1323
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
1073
1324
  */
1074
1325
  }, {
1075
- key: "handleNoteChangesWithHttpInfo",
1076
- value: function handleNoteChangesWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts) {
1326
+ key: "getNotefileWithHttpInfo",
1327
+ value: function getNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts) {
1077
1328
  opts = opts || {};
1078
1329
  var postBody = null;
1079
1330
  // verify the required parameter 'projectOrProductUID' is set
1080
1331
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1081
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteChanges");
1332
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefile");
1082
1333
  }
1083
1334
  // verify the required parameter 'deviceUID' is set
1084
1335
  if (deviceUID === undefined || deviceUID === null) {
1085
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteChanges");
1336
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getNotefile");
1086
1337
  }
1087
1338
  // verify the required parameter 'notefileID' is set
1088
1339
  if (notefileID === undefined || notefileID === null) {
1089
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
1340
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
1090
1341
  }
1091
1342
  var pathParams = {
1092
- projectOrProductUID: projectOrProductUID,
1093
- deviceUID: deviceUID,
1094
- notefileID: notefileID
1343
+ 'projectOrProductUID': projectOrProductUID,
1344
+ 'deviceUID': deviceUID,
1345
+ 'notefileID': notefileID
1095
1346
  };
1096
1347
  var queryParams = {
1097
- max: opts["max"],
1098
- deleted: opts["deleted"],
1099
- "delete": opts["_delete"]
1348
+ 'tracker': opts['tracker'],
1349
+ 'max': opts['max'],
1350
+ 'start': opts['start'],
1351
+ 'stop': opts['stop'],
1352
+ 'deleted': opts['deleted'],
1353
+ 'delete': opts['_delete']
1100
1354
  };
1101
1355
  var headerParams = {};
1102
1356
  var formParams = {};
1103
- var authNames = ["personalAccessToken"];
1357
+ var authNames = ['personalAccessToken'];
1104
1358
  var contentTypes = [];
1105
- var accepts = ["application/json"];
1106
- var returnType = _HandleNoteChanges200Response["default"];
1107
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1359
+ var accepts = ['application/json'];
1360
+ var returnType = _GetNotefile200Response["default"];
1361
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1108
1362
  }
1109
1363
 
1110
1364
  /**
1111
- * Incrementally retrieve changes within a specific Notefile.
1112
- * @param {String} projectOrProductUID
1113
- * @param {String} deviceUID
1114
- * @param {String} notefileID
1365
+ * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1366
+ * @param {String} projectOrProductUID
1367
+ * @param {String} deviceUID
1368
+ * @param {String} notefileID
1115
1369
  * @param {Object} opts Optional parameters
1370
+ * @param {String} opts.tracker The change tracker ID.
1116
1371
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1372
+ * @param {Boolean} opts.start true to reset the tracker to the beginning.
1373
+ * @param {Boolean} opts.stop true to delete the tracker.
1117
1374
  * @param {Boolean} opts.deleted true to return deleted notes.
1118
1375
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1119
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteChanges200Response}
1120
- */
1121
- }, {
1122
- key: "handleNoteChanges",
1123
- value: function handleNoteChanges(projectOrProductUID, deviceUID, notefileID, opts) {
1124
- return this.handleNoteChangesWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts).then(function (response_and_data) {
1125
- return response_and_data.data;
1126
- });
1127
- }
1128
-
1129
- /**
1130
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1131
- * @param {String} projectOrProductUID
1132
- * @param {String} deviceUID
1133
- * @param {String} notefileID
1134
- * @param {String} noteID
1135
- * @param {module:model/Note} note Body or payload of note to be added to the device
1136
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1137
- */
1138
- }, {
1139
- key: "handleNoteCreateAddWithHttpInfo",
1140
- value: function handleNoteCreateAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1141
- var postBody = note;
1142
- // verify the required parameter 'projectOrProductUID' is set
1143
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1144
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteCreateAdd");
1145
- }
1146
- // verify the required parameter 'deviceUID' is set
1147
- if (deviceUID === undefined || deviceUID === null) {
1148
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteCreateAdd");
1149
- }
1150
- // verify the required parameter 'notefileID' is set
1151
- if (notefileID === undefined || notefileID === null) {
1152
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteCreateAdd");
1153
- }
1154
- // verify the required parameter 'noteID' is set
1155
- if (noteID === undefined || noteID === null) {
1156
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteCreateAdd");
1157
- }
1158
- // verify the required parameter 'note' is set
1159
- if (note === undefined || note === null) {
1160
- throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
1161
- }
1162
- var pathParams = {
1163
- projectOrProductUID: projectOrProductUID,
1164
- deviceUID: deviceUID,
1165
- notefileID: notefileID,
1166
- noteID: noteID
1167
- };
1168
- var queryParams = {};
1169
- var headerParams = {};
1170
- var formParams = {};
1171
- var authNames = ["personalAccessToken"];
1172
- var contentTypes = ["application/json"];
1173
- var accepts = ["application/json"];
1174
- var returnType = null;
1175
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1176
- }
1177
-
1178
- /**
1179
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1180
- * @param {String} projectOrProductUID
1181
- * @param {String} deviceUID
1182
- * @param {String} notefileID
1183
- * @param {String} noteID
1184
- * @param {module:model/Note} note Body or payload of note to be added to the device
1185
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1186
- */
1187
- }, {
1188
- key: "handleNoteCreateAdd",
1189
- value: function handleNoteCreateAdd(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1190
- return this.handleNoteCreateAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1191
- return response_and_data.data;
1192
- });
1193
- }
1194
-
1195
- /**
1196
- * Delete a note from a DB notefile
1197
- * @param {String} projectOrProductUID
1198
- * @param {String} deviceUID
1199
- * @param {String} notefileID
1200
- * @param {String} noteID
1201
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1376
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
1202
1377
  */
1203
1378
  }, {
1204
- key: "handleNoteDeleteWithHttpInfo",
1205
- value: function handleNoteDeleteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
1206
- var postBody = null;
1207
- // verify the required parameter 'projectOrProductUID' is set
1208
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1209
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteDelete");
1210
- }
1211
- // verify the required parameter 'deviceUID' is set
1212
- if (deviceUID === undefined || deviceUID === null) {
1213
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteDelete");
1214
- }
1215
- // verify the required parameter 'notefileID' is set
1216
- if (notefileID === undefined || notefileID === null) {
1217
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteDelete");
1218
- }
1219
- // verify the required parameter 'noteID' is set
1220
- if (noteID === undefined || noteID === null) {
1221
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
1222
- }
1223
- var pathParams = {
1224
- projectOrProductUID: projectOrProductUID,
1225
- deviceUID: deviceUID,
1226
- notefileID: notefileID,
1227
- noteID: noteID
1228
- };
1229
- var queryParams = {};
1230
- var headerParams = {};
1231
- var formParams = {};
1232
- var authNames = ["personalAccessToken"];
1233
- var contentTypes = [];
1234
- var accepts = ["application/json"];
1235
- var returnType = null;
1236
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1237
- }
1238
-
1239
- /**
1240
- * Delete a note from a DB notefile
1241
- * @param {String} projectOrProductUID
1242
- * @param {String} deviceUID
1243
- * @param {String} notefileID
1244
- * @param {String} noteID
1245
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1246
- */
1247
- }, {
1248
- key: "handleNoteDelete",
1249
- value: function handleNoteDelete(projectOrProductUID, deviceUID, notefileID, noteID) {
1250
- return this.handleNoteDeleteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
1379
+ key: "getNotefile",
1380
+ value: function getNotefile(projectOrProductUID, deviceUID, notefileID, opts) {
1381
+ return this.getNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts).then(function (response_and_data) {
1251
1382
  return response_and_data.data;
1252
1383
  });
1253
1384
  }
1254
1385
 
1255
1386
  /**
1256
- * Get a note from a DB notefile
1257
- * @param {String} projectOrProductUID
1258
- * @param {String} deviceUID
1259
- * @param {String} notefileID
1260
- * @param {String} noteID
1387
+ * Lists .qi and .db files for the device
1388
+ * @param {String} projectOrProductUID
1389
+ * @param {String} deviceUID
1261
1390
  * @param {Object} opts Optional parameters
1262
- * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1263
- * @param {Boolean} opts.deleted Whether to return deleted notes
1264
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteGet200Response} and HTTP response
1391
+ * @param {String} opts.tracker The change tracker ID.
1392
+ * @param {Array.<String>} opts.files One or more files to obtain change information from.
1393
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
1265
1394
  */
1266
1395
  }, {
1267
- key: "handleNoteGetWithHttpInfo",
1268
- value: function handleNoteGetWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
1396
+ key: "listNotefilesWithHttpInfo",
1397
+ value: function listNotefilesWithHttpInfo(projectOrProductUID, deviceUID, opts) {
1269
1398
  opts = opts || {};
1270
1399
  var postBody = null;
1271
1400
  // verify the required parameter 'projectOrProductUID' is set
1272
1401
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1273
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteGet");
1402
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listNotefiles");
1274
1403
  }
1275
1404
  // verify the required parameter 'deviceUID' is set
1276
1405
  if (deviceUID === undefined || deviceUID === null) {
1277
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteGet");
1278
- }
1279
- // verify the required parameter 'notefileID' is set
1280
- if (notefileID === undefined || notefileID === null) {
1281
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteGet");
1282
- }
1283
- // verify the required parameter 'noteID' is set
1284
- if (noteID === undefined || noteID === null) {
1285
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
1406
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
1286
1407
  }
1287
1408
  var pathParams = {
1288
- projectOrProductUID: projectOrProductUID,
1289
- deviceUID: deviceUID,
1290
- notefileID: notefileID,
1291
- noteID: noteID
1409
+ 'projectOrProductUID': projectOrProductUID,
1410
+ 'deviceUID': deviceUID
1292
1411
  };
1293
1412
  var queryParams = {
1294
- "delete": opts["_delete"],
1295
- deleted: opts["deleted"]
1413
+ 'tracker': opts['tracker'],
1414
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1296
1415
  };
1297
1416
  var headerParams = {};
1298
1417
  var formParams = {};
1299
- var authNames = ["personalAccessToken"];
1418
+ var authNames = ['personalAccessToken'];
1300
1419
  var contentTypes = [];
1301
- var accepts = ["application/json"];
1302
- var returnType = _HandleNoteGet200Response["default"];
1303
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1420
+ var accepts = ['application/json'];
1421
+ var returnType = _ListNotefiles200Response["default"];
1422
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1304
1423
  }
1305
1424
 
1306
1425
  /**
1307
- * Get a note from a DB notefile
1308
- * @param {String} projectOrProductUID
1309
- * @param {String} deviceUID
1310
- * @param {String} notefileID
1311
- * @param {String} noteID
1426
+ * Lists .qi and .db files for the device
1427
+ * @param {String} projectOrProductUID
1428
+ * @param {String} deviceUID
1312
1429
  * @param {Object} opts Optional parameters
1313
- * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1314
- * @param {Boolean} opts.deleted Whether to return deleted notes
1315
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteGet200Response}
1430
+ * @param {String} opts.tracker The change tracker ID.
1431
+ * @param {Array.<String>} opts.files One or more files to obtain change information from.
1432
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListNotefiles200Response}
1316
1433
  */
1317
1434
  }, {
1318
- key: "handleNoteGet",
1319
- value: function handleNoteGet(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
1320
- return this.handleNoteGetWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts).then(function (response_and_data) {
1435
+ key: "listNotefiles",
1436
+ value: function listNotefiles(projectOrProductUID, deviceUID, opts) {
1437
+ return this.listNotefilesWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
1321
1438
  return response_and_data.data;
1322
1439
  });
1323
1440
  }
1324
1441
 
1325
1442
  /**
1326
- * Send a signal from Notehub to a Notecard.
1327
- * @param {String} projectOrProductUID
1328
- * @param {String} deviceUID
1329
- * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1330
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
1443
+ * Lists .qi and .db files that are pending sync to the Notecard
1444
+ * @param {String} projectOrProductUID
1445
+ * @param {String} deviceUID
1446
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPendingNotefiles200Response} and HTTP response
1331
1447
  */
1332
1448
  }, {
1333
- key: "handleNoteSignalWithHttpInfo",
1334
- value: function handleNoteSignalWithHttpInfo(projectOrProductUID, deviceUID, body) {
1335
- var postBody = body;
1449
+ key: "listPendingNotefilesWithHttpInfo",
1450
+ value: function listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID) {
1451
+ var postBody = null;
1336
1452
  // verify the required parameter 'projectOrProductUID' is set
1337
1453
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1338
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteSignal");
1454
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listPendingNotefiles");
1339
1455
  }
1340
1456
  // verify the required parameter 'deviceUID' is set
1341
1457
  if (deviceUID === undefined || deviceUID === null) {
1342
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteSignal");
1343
- }
1344
- // verify the required parameter 'body' is set
1345
- if (body === undefined || body === null) {
1346
- throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
1458
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listPendingNotefiles");
1347
1459
  }
1348
1460
  var pathParams = {
1349
- projectOrProductUID: projectOrProductUID,
1350
- deviceUID: deviceUID
1461
+ 'projectOrProductUID': projectOrProductUID,
1462
+ 'deviceUID': deviceUID
1351
1463
  };
1352
1464
  var queryParams = {};
1353
1465
  var headerParams = {};
1354
1466
  var formParams = {};
1355
- var authNames = ["personalAccessToken"];
1356
- var contentTypes = ["application/json"];
1357
- var accepts = ["application/json"];
1358
- var returnType = _HandleNoteSignal200Response["default"];
1359
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1467
+ var authNames = ['personalAccessToken'];
1468
+ var contentTypes = [];
1469
+ var accepts = ['application/json'];
1470
+ var returnType = _ListPendingNotefiles200Response["default"];
1471
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1360
1472
  }
1361
1473
 
1362
1474
  /**
1363
- * Send a signal from Notehub to a Notecard.
1364
- * @param {String} projectOrProductUID
1365
- * @param {String} deviceUID
1366
- * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1367
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
1475
+ * Lists .qi and .db files that are pending sync to the Notecard
1476
+ * @param {String} projectOrProductUID
1477
+ * @param {String} deviceUID
1478
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPendingNotefiles200Response}
1368
1479
  */
1369
1480
  }, {
1370
- key: "handleNoteSignal",
1371
- value: function handleNoteSignal(projectOrProductUID, deviceUID, body) {
1372
- return this.handleNoteSignalWithHttpInfo(projectOrProductUID, deviceUID, body).then(function (response_and_data) {
1481
+ key: "listPendingNotefiles",
1482
+ value: function listPendingNotefiles(projectOrProductUID, deviceUID) {
1483
+ return this.listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1373
1484
  return response_and_data.data;
1374
1485
  });
1375
1486
  }
1376
1487
 
1377
1488
  /**
1378
- * Update a note in a DB notefile
1379
- * @param {String} projectOrProductUID
1380
- * @param {String} deviceUID
1381
- * @param {String} notefileID
1382
- * @param {String} noteID
1383
- * @param {module:model/Note} note Body or payload of note to be added to the device
1384
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1489
+ * Provision Device for a Project
1490
+ * @param {String} projectOrProductUID
1491
+ * @param {String} deviceUID
1492
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1493
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1385
1494
  */
1386
1495
  }, {
1387
- key: "handleNoteUpdateWithHttpInfo",
1388
- value: function handleNoteUpdateWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1389
- var postBody = note;
1496
+ key: "provisionDeviceWithHttpInfo",
1497
+ value: function provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1498
+ var postBody = provisionDeviceRequest;
1390
1499
  // verify the required parameter 'projectOrProductUID' is set
1391
1500
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1392
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteUpdate");
1501
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling provisionDevice");
1393
1502
  }
1394
1503
  // verify the required parameter 'deviceUID' is set
1395
1504
  if (deviceUID === undefined || deviceUID === null) {
1396
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteUpdate");
1397
- }
1398
- // verify the required parameter 'notefileID' is set
1399
- if (notefileID === undefined || notefileID === null) {
1400
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteUpdate");
1401
- }
1402
- // verify the required parameter 'noteID' is set
1403
- if (noteID === undefined || noteID === null) {
1404
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteUpdate");
1505
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling provisionDevice");
1405
1506
  }
1406
- // verify the required parameter 'note' is set
1407
- if (note === undefined || note === null) {
1408
- throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
1507
+ // verify the required parameter 'provisionDeviceRequest' is set
1508
+ if (provisionDeviceRequest === undefined || provisionDeviceRequest === null) {
1509
+ throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
1409
1510
  }
1410
1511
  var pathParams = {
1411
- projectOrProductUID: projectOrProductUID,
1412
- deviceUID: deviceUID,
1413
- notefileID: notefileID,
1414
- noteID: noteID
1512
+ 'projectOrProductUID': projectOrProductUID,
1513
+ 'deviceUID': deviceUID
1415
1514
  };
1416
1515
  var queryParams = {};
1417
1516
  var headerParams = {};
1418
1517
  var formParams = {};
1419
- var authNames = ["personalAccessToken"];
1420
- var contentTypes = ["application/json"];
1421
- var accepts = ["application/json"];
1422
- var returnType = null;
1423
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1518
+ var authNames = ['personalAccessToken'];
1519
+ var contentTypes = ['application/json'];
1520
+ var accepts = ['application/json'];
1521
+ var returnType = Object;
1522
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1424
1523
  }
1425
1524
 
1426
1525
  /**
1427
- * Update a note in a DB notefile
1428
- * @param {String} projectOrProductUID
1429
- * @param {String} deviceUID
1430
- * @param {String} notefileID
1431
- * @param {String} noteID
1432
- * @param {module:model/Note} note Body or payload of note to be added to the device
1433
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1526
+ * Provision Device for a Project
1527
+ * @param {String} projectOrProductUID
1528
+ * @param {String} deviceUID
1529
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1530
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1434
1531
  */
1435
1532
  }, {
1436
- key: "handleNoteUpdate",
1437
- value: function handleNoteUpdate(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1438
- return this.handleNoteUpdateWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1533
+ key: "provisionDevice",
1534
+ value: function provisionDevice(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1535
+ return this.provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest).then(function (response_and_data) {
1439
1536
  return response_and_data.data;
1440
1537
  });
1441
1538
  }
1442
1539
 
1443
1540
  /**
1444
- * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1445
- * @param {String} projectOrProductUID
1446
- * @param {String} deviceUID
1447
- * @param {Object} opts Optional parameters
1448
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1449
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChanges200Response} and HTTP response
1541
+ * Set environment variables of a device
1542
+ * @param {String} projectOrProductUID
1543
+ * @param {String} deviceUID
1544
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1545
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1450
1546
  */
1451
1547
  }, {
1452
- key: "handleNotefileChangesWithHttpInfo",
1453
- value: function handleNotefileChangesWithHttpInfo(projectOrProductUID, deviceUID, opts) {
1454
- opts = opts || {};
1455
- var postBody = null;
1548
+ key: "setDeviceEnvironmentVariablesWithHttpInfo",
1549
+ value: function setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
1550
+ var postBody = environmentVariables;
1456
1551
  // verify the required parameter 'projectOrProductUID' is set
1457
1552
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1458
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileChanges");
1553
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setDeviceEnvironmentVariables");
1459
1554
  }
1460
1555
  // verify the required parameter 'deviceUID' is set
1461
1556
  if (deviceUID === undefined || deviceUID === null) {
1462
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
1557
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariables");
1463
1558
  }
1464
- var pathParams = {
1465
- projectOrProductUID: projectOrProductUID,
1466
- deviceUID: deviceUID
1467
- };
1468
- var queryParams = {
1469
- files: this.apiClient.buildCollectionParam(opts["files"], "multi")
1470
- };
1471
- var headerParams = {};
1472
- var formParams = {};
1473
- var authNames = ["personalAccessToken"];
1474
- var contentTypes = [];
1475
- var accepts = ["application/json"];
1476
- var returnType = _HandleNotefileChanges200Response["default"];
1477
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1478
- }
1479
-
1480
- /**
1481
- * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1482
- * @param {String} projectOrProductUID
1483
- * @param {String} deviceUID
1484
- * @param {Object} opts Optional parameters
1485
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1486
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChanges200Response}
1487
- */
1488
- }, {
1489
- key: "handleNotefileChanges",
1490
- value: function handleNotefileChanges(projectOrProductUID, deviceUID, opts) {
1491
- return this.handleNotefileChangesWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
1492
- return response_and_data.data;
1493
- });
1494
- }
1495
-
1496
- /**
1497
- * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1498
- * @param {String} projectOrProductUID
1499
- * @param {String} deviceUID
1500
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
1501
- */
1502
- }, {
1503
- key: "handleNotefileChangesPendingWithHttpInfo",
1504
- value: function handleNotefileChangesPendingWithHttpInfo(projectOrProductUID, deviceUID) {
1505
- var postBody = null;
1506
- // verify the required parameter 'projectOrProductUID' is set
1507
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1508
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileChangesPending");
1509
- }
1510
- // verify the required parameter 'deviceUID' is set
1511
- if (deviceUID === undefined || deviceUID === null) {
1512
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
1559
+ // verify the required parameter 'environmentVariables' is set
1560
+ if (environmentVariables === undefined || environmentVariables === null) {
1561
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
1513
1562
  }
1514
1563
  var pathParams = {
1515
- projectOrProductUID: projectOrProductUID,
1516
- deviceUID: deviceUID
1564
+ 'projectOrProductUID': projectOrProductUID,
1565
+ 'deviceUID': deviceUID
1517
1566
  };
1518
1567
  var queryParams = {};
1519
1568
  var headerParams = {};
1520
1569
  var formParams = {};
1521
- var authNames = ["personalAccessToken"];
1522
- var contentTypes = [];
1523
- var accepts = ["application/json"];
1524
- var returnType = _HandleNotefileChangesPending200Response["default"];
1525
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1570
+ var authNames = ['personalAccessToken'];
1571
+ var contentTypes = ['application/json'];
1572
+ var accepts = ['application/json'];
1573
+ var returnType = _EnvironmentVariables["default"];
1574
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1526
1575
  }
1527
1576
 
1528
1577
  /**
1529
- * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1530
- * @param {String} projectOrProductUID
1531
- * @param {String} deviceUID
1532
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
1578
+ * Set environment variables of a device
1579
+ * @param {String} projectOrProductUID
1580
+ * @param {String} deviceUID
1581
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1582
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1533
1583
  */
1534
1584
  }, {
1535
- key: "handleNotefileChangesPending",
1536
- value: function handleNotefileChangesPending(projectOrProductUID, deviceUID) {
1537
- return this.handleNotefileChangesPendingWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1585
+ key: "setDeviceEnvironmentVariables",
1586
+ value: function setDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
1587
+ return this.setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
1538
1588
  return response_and_data.data;
1539
1589
  });
1540
1590
  }
1541
1591
 
1542
1592
  /**
1543
- * Deletes Notefiles and the Notes they contain.
1544
- * @param {String} projectOrProductUID
1545
- * @param {String} deviceUID
1546
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1547
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1593
+ * Set environment variables of a device with device pin authorization
1594
+ * @param {String} productUID
1595
+ * @param {String} deviceUID
1596
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1597
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1548
1598
  */
1549
1599
  }, {
1550
- key: "handleNotefileDeleteWithHttpInfo",
1551
- value: function handleNotefileDeleteWithHttpInfo(projectOrProductUID, deviceUID, handleNotefileDeleteRequest) {
1552
- var postBody = handleNotefileDeleteRequest;
1553
- // verify the required parameter 'projectOrProductUID' is set
1554
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1555
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileDelete");
1600
+ key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
1601
+ value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1602
+ var postBody = environmentVariables;
1603
+ // verify the required parameter 'productUID' is set
1604
+ if (productUID === undefined || productUID === null) {
1605
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling setDeviceEnvironmentVariablesByPin");
1556
1606
  }
1557
1607
  // verify the required parameter 'deviceUID' is set
1558
1608
  if (deviceUID === undefined || deviceUID === null) {
1559
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileDelete");
1609
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
1560
1610
  }
1561
- // verify the required parameter 'handleNotefileDeleteRequest' is set
1562
- if (handleNotefileDeleteRequest === undefined || handleNotefileDeleteRequest === null) {
1563
- throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
1611
+ // verify the required parameter 'environmentVariables' is set
1612
+ if (environmentVariables === undefined || environmentVariables === null) {
1613
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
1564
1614
  }
1565
1615
  var pathParams = {
1566
- projectOrProductUID: projectOrProductUID,
1567
- deviceUID: deviceUID
1616
+ 'productUID': productUID,
1617
+ 'deviceUID': deviceUID
1568
1618
  };
1569
1619
  var queryParams = {};
1570
1620
  var headerParams = {};
1571
1621
  var formParams = {};
1572
- var authNames = ["personalAccessToken"];
1573
- var contentTypes = ["application/json"];
1574
- var accepts = ["application/json"];
1575
- var returnType = null;
1576
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1622
+ var authNames = ['pin'];
1623
+ var contentTypes = ['application/json'];
1624
+ var accepts = ['application/json'];
1625
+ var returnType = _EnvironmentVariables["default"];
1626
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1577
1627
  }
1578
1628
 
1579
1629
  /**
1580
- * Deletes Notefiles and the Notes they contain.
1581
- * @param {String} projectOrProductUID
1582
- * @param {String} deviceUID
1583
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1584
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1630
+ * Set environment variables of a device with device pin authorization
1631
+ * @param {String} productUID
1632
+ * @param {String} deviceUID
1633
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1634
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1585
1635
  */
1586
1636
  }, {
1587
- key: "handleNotefileDelete",
1588
- value: function handleNotefileDelete(projectOrProductUID, deviceUID, handleNotefileDeleteRequest) {
1589
- return this.handleNotefileDeleteWithHttpInfo(projectOrProductUID, deviceUID, handleNotefileDeleteRequest).then(function (response_and_data) {
1637
+ key: "setDeviceEnvironmentVariablesByPin",
1638
+ value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1639
+ return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1590
1640
  return response_and_data.data;
1591
1641
  });
1592
1642
  }
1593
1643
 
1594
1644
  /**
1595
- * Provision Device for a Project
1596
- * @param {String} projectOrProductUID
1597
- * @param {String} deviceUID
1598
- * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1599
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1645
+ * Send a signal from Notehub to a Notecard.
1646
+ * @param {String} projectOrProductUID
1647
+ * @param {String} deviceUID
1648
+ * @param {module:model/Body} body Body or payload of signal to be sent to the device
1649
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1600
1650
  */
1601
1651
  }, {
1602
- key: "postProvisionProjectDeviceWithHttpInfo",
1603
- value: function postProvisionProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest) {
1604
- var postBody = postProvisionProjectDeviceRequest;
1652
+ key: "signalDeviceWithHttpInfo",
1653
+ value: function signalDeviceWithHttpInfo(projectOrProductUID, deviceUID, body) {
1654
+ var postBody = body;
1605
1655
  // verify the required parameter 'projectOrProductUID' is set
1606
1656
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1607
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling postProvisionProjectDevice");
1657
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling signalDevice");
1608
1658
  }
1609
1659
  // verify the required parameter 'deviceUID' is set
1610
1660
  if (deviceUID === undefined || deviceUID === null) {
1611
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling postProvisionProjectDevice");
1661
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling signalDevice");
1612
1662
  }
1613
- // verify the required parameter 'postProvisionProjectDeviceRequest' is set
1614
- if (postProvisionProjectDeviceRequest === undefined || postProvisionProjectDeviceRequest === null) {
1615
- throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
1663
+ // verify the required parameter 'body' is set
1664
+ if (body === undefined || body === null) {
1665
+ throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
1616
1666
  }
1617
1667
  var pathParams = {
1618
- projectOrProductUID: projectOrProductUID,
1619
- deviceUID: deviceUID
1668
+ 'projectOrProductUID': projectOrProductUID,
1669
+ 'deviceUID': deviceUID
1620
1670
  };
1621
1671
  var queryParams = {};
1622
1672
  var headerParams = {};
1623
1673
  var formParams = {};
1624
- var authNames = ["personalAccessToken"];
1625
- var contentTypes = ["application/json"];
1626
- var accepts = ["application/json"];
1627
- var returnType = Object;
1628
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1674
+ var authNames = ['personalAccessToken'];
1675
+ var contentTypes = ['application/json'];
1676
+ var accepts = ['application/json'];
1677
+ var returnType = _SignalDevice200Response["default"];
1678
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1629
1679
  }
1630
1680
 
1631
1681
  /**
1632
- * Provision Device for a Project
1633
- * @param {String} projectOrProductUID
1634
- * @param {String} deviceUID
1635
- * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1636
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1682
+ * Send a signal from Notehub to a Notecard.
1683
+ * @param {String} projectOrProductUID
1684
+ * @param {String} deviceUID
1685
+ * @param {module:model/Body} body Body or payload of signal to be sent to the device
1686
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1637
1687
  */
1638
1688
  }, {
1639
- key: "postProvisionProjectDevice",
1640
- value: function postProvisionProjectDevice(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest) {
1641
- return this.postProvisionProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest).then(function (response_and_data) {
1689
+ key: "signalDevice",
1690
+ value: function signalDevice(projectOrProductUID, deviceUID, body) {
1691
+ return this.signalDeviceWithHttpInfo(projectOrProductUID, deviceUID, body).then(function (response_and_data) {
1642
1692
  return response_and_data.data;
1643
1693
  });
1644
1694
  }
1645
1695
 
1646
1696
  /**
1647
- * Put environment variables of a device
1648
- * @param {String} projectOrProductUID
1649
- * @param {String} deviceUID
1650
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1651
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1697
+ * Update a note in a .db notefile
1698
+ * @param {String} projectOrProductUID
1699
+ * @param {String} deviceUID
1700
+ * @param {String} notefileID
1701
+ * @param {String} noteID
1702
+ * @param {module:model/Note} note Body or payload of note to be added to the device
1703
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1652
1704
  */
1653
1705
  }, {
1654
- key: "putDeviceEnvironmentVariablesWithHttpInfo",
1655
- value: function putDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
1656
- var postBody = environmentVariables;
1706
+ key: "updateDbNoteWithHttpInfo",
1707
+ value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1708
+ var postBody = note;
1657
1709
  // verify the required parameter 'projectOrProductUID' is set
1658
1710
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1659
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putDeviceEnvironmentVariables");
1711
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
1660
1712
  }
1661
1713
  // verify the required parameter 'deviceUID' is set
1662
1714
  if (deviceUID === undefined || deviceUID === null) {
1663
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceEnvironmentVariables");
1664
- }
1665
- // verify the required parameter 'environmentVariables' is set
1666
- if (environmentVariables === undefined || environmentVariables === null) {
1667
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
1715
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling updateDbNote");
1668
1716
  }
1669
- var pathParams = {
1670
- projectOrProductUID: projectOrProductUID,
1671
- deviceUID: deviceUID
1672
- };
1673
- var queryParams = {};
1674
- var headerParams = {};
1675
- var formParams = {};
1676
- var authNames = ["personalAccessToken"];
1677
- var contentTypes = ["application/json"];
1678
- var accepts = ["application/json"];
1679
- var returnType = _EnvironmentVariables["default"];
1680
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1681
- }
1682
-
1683
- /**
1684
- * Put environment variables of a device
1685
- * @param {String} projectOrProductUID
1686
- * @param {String} deviceUID
1687
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1688
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1689
- */
1690
- }, {
1691
- key: "putDeviceEnvironmentVariables",
1692
- value: function putDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
1693
- return this.putDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
1694
- return response_and_data.data;
1695
- });
1696
- }
1697
-
1698
- /**
1699
- * Put environment variables of a device with device pin authorization
1700
- * @param {String} productUID
1701
- * @param {String} deviceUID
1702
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1703
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1704
- */
1705
- }, {
1706
- key: "putDeviceEnvironmentVariablesByPinWithHttpInfo",
1707
- value: function putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1708
- var postBody = environmentVariables;
1709
- // verify the required parameter 'productUID' is set
1710
- if (productUID === undefined || productUID === null) {
1711
- throw new _Error["default"]("Missing the required parameter 'productUID' when calling putDeviceEnvironmentVariablesByPin");
1717
+ // verify the required parameter 'notefileID' is set
1718
+ if (notefileID === undefined || notefileID === null) {
1719
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling updateDbNote");
1712
1720
  }
1713
- // verify the required parameter 'deviceUID' is set
1714
- if (deviceUID === undefined || deviceUID === null) {
1715
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceEnvironmentVariablesByPin");
1721
+ // verify the required parameter 'noteID' is set
1722
+ if (noteID === undefined || noteID === null) {
1723
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
1716
1724
  }
1717
- // verify the required parameter 'environmentVariables' is set
1718
- if (environmentVariables === undefined || environmentVariables === null) {
1719
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
1725
+ // verify the required parameter 'note' is set
1726
+ if (note === undefined || note === null) {
1727
+ throw new _Error["default"]("Missing the required parameter 'note' when calling updateDbNote");
1720
1728
  }
1721
1729
  var pathParams = {
1722
- productUID: productUID,
1723
- deviceUID: deviceUID
1730
+ 'projectOrProductUID': projectOrProductUID,
1731
+ 'deviceUID': deviceUID,
1732
+ 'notefileID': notefileID,
1733
+ 'noteID': noteID
1724
1734
  };
1725
1735
  var queryParams = {};
1726
1736
  var headerParams = {};
1727
1737
  var formParams = {};
1728
- var authNames = ["pin"];
1729
- var contentTypes = ["application/json"];
1730
- var accepts = ["application/json"];
1731
- var returnType = _EnvironmentVariables["default"];
1732
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1738
+ var authNames = ['personalAccessToken'];
1739
+ var contentTypes = ['application/json'];
1740
+ var accepts = ['application/json'];
1741
+ var returnType = null;
1742
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1733
1743
  }
1734
1744
 
1735
1745
  /**
1736
- * Put environment variables of a device with device pin authorization
1737
- * @param {String} productUID
1738
- * @param {String} deviceUID
1739
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1740
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1746
+ * Update a note in a .db notefile
1747
+ * @param {String} projectOrProductUID
1748
+ * @param {String} deviceUID
1749
+ * @param {String} notefileID
1750
+ * @param {String} noteID
1751
+ * @param {module:model/Note} note Body or payload of note to be added to the device
1752
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1741
1753
  */
1742
1754
  }, {
1743
- key: "putDeviceEnvironmentVariablesByPin",
1744
- value: function putDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1745
- return this.putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1755
+ key: "updateDbNote",
1756
+ value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1757
+ return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1746
1758
  return response_and_data.data;
1747
1759
  });
1748
1760
  }