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

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